From bb0b3e26b6478e245f5aa540e0a380266cd89c83 Mon Sep 17 00:00:00 2001 From: RealDiligent Date: Fri, 24 Jul 2026 20:47:22 +0800 Subject: [PATCH] chore(mcp): drop three unused settings/autonomy imports from server.ts AGENT_ACTION_CLASSES, isActingAutonomyLevel, and resolveAutonomy were imported into src/mcp/server.ts but referenced nowhere in it; only AUTONOMY_LEVELS is used. src/** has no ESLint config and the root tsconfig sets neither noUnusedLocals nor noUnusedParameters, so neither static-analysis layer flags this. The autonomy module's exports are unchanged (other callers use them), and MAINTAIN_AUTONOMY_ACTION_CLASSES is deliberately left alone as the documented intentional divergence it is. Closes #8339 --- src/mcp/server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mcp/server.ts b/src/mcp/server.ts index 9cca35c24b..532e3b2c0a 100644 --- a/src/mcp/server.ts +++ b/src/mcp/server.ts @@ -172,7 +172,7 @@ import { buildTestEvidenceReport, classifyTestCoverage, hasLocalTestEvidence, is import { applyStepResult, buildPlanDag, nextReadySteps, planProgress, validatePlanDag, type PlanDag } from "../services/plan-dag"; import { buildFocusManifestValidation } from "../services/focus-manifest-validation"; import { isGlobalAgentPause, resolveAgentActionMode, resolveAgentPermissionReadiness } from "../settings/agent-execution"; -import { AGENT_ACTION_CLASSES, AUTONOMY_LEVELS, isActingAutonomyLevel, resolveAutonomy } from "../settings/autonomy"; +import { AUTONOMY_LEVELS } from "../settings/autonomy"; import { resolveRepositorySettings } from "../settings/repository-settings"; import { isDuplicateWinnerEnabledGlobally, resolveDuplicateWinnerEnabled } from "../settings/duplicate-winner-mode"; import { compileFocusManifestPolicy, MAX_FOCUS_MANIFEST_BYTES } from "../signals/focus-manifest";