diff --git a/.oxlintrc.json b/.oxlintrc.json index 3876f8e04..6ae3380b5 100644 --- a/.oxlintrc.json +++ b/.oxlintrc.json @@ -8,5 +8,5 @@ "categories": { "correctness": "error" }, - "ignorePatterns": ["src/canvas-host/a2ui/a2ui.bundle.js"] + "ignorePatterns": ["src/canvas-host/a2ui/a2ui.bundle.js", "**/*.d.ts"] } diff --git a/src/response/discord-reply.ts b/src/response/discord-reply.ts index 62150ac3a..6f6ad3ad5 100644 --- a/src/response/discord-reply.ts +++ b/src/response/discord-reply.ts @@ -7,7 +7,6 @@ import type { Message } from "@buape/carbon"; import type { ReplyOptions, ReplyData, ReplyEmbed, QuoteMetadata, ReplyAuthor } from "./types.js"; -import { ResponseFormat } from "./types.js"; /** * Discordリプライオプション拡張 diff --git a/src/review/codex-reviewer.test.ts b/src/review/codex-reviewer.test.ts index 23aaf317d..80dd9be96 100644 --- a/src/review/codex-reviewer.test.ts +++ b/src/review/codex-reviewer.test.ts @@ -4,7 +4,6 @@ import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"; import { - runCodexReview, parseCodexOutput, createReviewRequest, evaluateReview, diff --git a/src/review/codex-reviewer.ts b/src/review/codex-reviewer.ts index 6dc308b5b..22680eec7 100644 --- a/src/review/codex-reviewer.ts +++ b/src/review/codex-reviewer.ts @@ -6,7 +6,7 @@ import { exec } from "child_process"; import { promisify } from "util"; -import { mkdtempSync, writeFileSync, unlinkSync, rmSync, rmdirSync } from "node:fs"; +import { mkdtempSync, writeFileSync, unlinkSync, rmdirSync } from "node:fs"; import { join } from "node:path"; import type { CodexReview, diff --git a/src/session/manager.test.ts b/src/session/manager.test.ts index 5d83eba91..84a106f6e 100644 --- a/src/session/manager.test.ts +++ b/src/session/manager.test.ts @@ -3,7 +3,6 @@ */ import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"; -import { SessionStatus } from "./types.js"; // DynamoDBモック vi.mock("@aws-sdk/client-dynamodb"); diff --git a/src/session/recovery.ts b/src/session/recovery.ts index 9dbce8ce8..7e009d9cc 100644 --- a/src/session/recovery.ts +++ b/src/session/recovery.ts @@ -69,7 +69,7 @@ export async function recoverPendingSessions( // 期限切れチェック const validSessions = sessions.filter((s) => { if (Date.now() > s.metadata.expiresAt * 1000) { - deleteSession(s.metadata.sessionId); + void deleteSession(s.metadata.sessionId); result.expired++; return false; } diff --git a/src/theta/execute.ts b/src/theta/execute.ts index ea0338837..2ad4252de 100644 --- a/src/theta/execute.ts +++ b/src/theta/execute.ts @@ -204,7 +204,7 @@ function withTimeout( }, timeoutMs); // Promiseが解決したらクリアンアップ(キャンセルされても実行) - promise.finally?.(() => clearTimeout(timeoutId)); + void promise.finally?.(() => clearTimeout(timeoutId)); }), ]); } diff --git a/src/theta/index.ts b/src/theta/index.ts index acff658c1..653554072 100644 --- a/src/theta/index.ts +++ b/src/theta/index.ts @@ -63,7 +63,10 @@ import { ThetaPhase } from "./types.js"; /** * 新しいθサイクル状態を作成する */ -export function createThetaCycleState(runId: string, options?: ThetaCycleOptions): ThetaCycleState { +export function createThetaCycleState( + runId: string, + _options?: ThetaCycleOptions, +): ThetaCycleState { return { runId, startTime: Date.now(), @@ -127,7 +130,7 @@ export async function runThetaCycle( const improveState = improveResult.state; // サマリー生成 - const summary = generateCycleSummary(improveState); + const _summary = generateCycleSummary(improveState); // オプションのコールバック if (options?.onEvent) { diff --git a/test/integration/agent-flow.test.ts b/test/integration/agent-flow.test.ts index 8b22c0e7b..52a1f30ad 100644 --- a/test/integration/agent-flow.test.ts +++ b/test/integration/agent-flow.test.ts @@ -467,7 +467,7 @@ ${handoff.context} // Simulate θサイクル ["observe", "analyze", "decide", "allocate", "execute", "improve"].forEach(() => { // Simulate phase - 1 + 1; + void 1; }); const cycleEnd = Date.now(); diff --git a/test/unit/agent.test.ts b/test/unit/agent.test.ts index a10ffd832..db6b0f2ce 100644 --- a/test/unit/agent.test.ts +++ b/test/unit/agent.test.ts @@ -9,8 +9,8 @@ * - Session-based agent selection */ -import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"; -import { mkdirSync, rmSync, existsSync, writeFileSync } from "fs"; +import { afterEach, beforeEach, describe, expect, it } from "vitest"; +import { mkdirSync, rmSync, existsSync } from "fs"; import { join } from "path"; import { tmpdir } from "os"; import { randomBytes } from "crypto"; diff --git a/test/unit/engine.test.ts b/test/unit/engine.test.ts index 4cb976bea..f11057522 100644 --- a/test/unit/engine.test.ts +++ b/test/unit/engine.test.ts @@ -42,7 +42,6 @@ import { getModelRefStatus, resolveAllowedModelRef, resolveThinkingDefault, - type ModelRef, type ThinkLevel, } from "../../src/agents/model-selection.js"; @@ -864,7 +863,7 @@ describe("Engine Unit Tests", () => { }, }); - const primary = resolveAgentModelPrimary(cfg, "main"); + const _primary = resolveAgentModelPrimary(cfg, "main"); const fallbacks = resolveAgentModelFallbacksOverride(cfg, "main"); // main agent has no model override, so it inherits from defaults diff --git a/test/unit/mcp.test.ts b/test/unit/mcp.test.ts index 2e70644d3..8161ca1cd 100644 --- a/test/unit/mcp.test.ts +++ b/test/unit/mcp.test.ts @@ -9,7 +9,7 @@ * - Error handling and retries */ -import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"; +import { afterEach, beforeEach, describe, expect, it } from "vitest"; // Mock MCP tool types interface MCPTool {