chore: Enable eslint/no-unused-vars.

This commit is contained in:
cpojer
2026-01-31 16:06:39 +09:00
parent 15792b153f
commit 9c4cbaab7b
20 changed files with 11 additions and 46 deletions

View File

@@ -1,4 +1,4 @@
import { getOAuthApiKey, type OAuthCredentials, type OAuthProvider } from "@mariozechner/pi-ai";
import { getOAuthApiKey, type OAuthCredentials } from "@mariozechner/pi-ai";
import lockfile from "proper-lockfile";
import type { OpenClawConfig } from "../../config/config.js";

View File

@@ -3,7 +3,6 @@ import fs from "node:fs/promises";
import path from "node:path";
import type { AgentMessage, StreamFn } from "@mariozechner/pi-agent-core";
import type { Api, Model } from "@mariozechner/pi-ai";
import type { OpenClawConfig } from "../config/config.js";
import { resolveStateDir } from "../config/paths.js";

View File

@@ -1,5 +1,5 @@
import type { StreamFn } from "@mariozechner/pi-agent-core";
import type { Api, Model, SimpleStreamOptions } from "@mariozechner/pi-ai";
import type { SimpleStreamOptions } from "@mariozechner/pi-ai";
import { streamSimple } from "@mariozechner/pi-ai";
import type { OpenClawConfig } from "../../config/config.js";

View File

@@ -1,5 +1,4 @@
import type { AgentEvent, AgentMessage } from "@mariozechner/pi-agent-core";
import type { AssistantMessage } from "@mariozechner/pi-ai";
import { parseReplyDirectives } from "../auto-reply/reply/reply-directives.js";
import { emitAgentEvent } from "../infra/agent-events.js";

View File

@@ -1,13 +1,7 @@
import fs from "node:fs/promises";
import path from "node:path";
import {
type Api,
type AssistantMessage,
type Context,
complete,
type Model,
} from "@mariozechner/pi-ai";
import { type Api, type Context, complete, type Model } from "@mariozechner/pi-ai";
import { discoverAuthStorage, discoverModels } from "../pi-model-discovery.js";
import { Type } from "@sinclair/typebox";