Quick wins: - Export ToolResultBlockParam from Tool.ts (fixes 14 errors) - Add 'xhigh' to EffortLevel Union types in settings/schemas (fixes 3) - Fix color-diff test: add null second arg to detectLanguage (fixes 6) - Add typed params to keychain stub (fixes 5) - Create stubs: searchExtraTools.ts, toolIndex.ts (fixes 4) - Add CORE_TOOLS set export to constants/tools.ts (fixes 1) Remaining: 34 errors across 10 categories (ACP, SendMessageTool TCP, ListPeersTool UDS, acp-link, etc.)
4.3 KiB
TypeScript Error Baseline — chore/typecheck-green
Date: 2026-06-02
Command: bun x tsc --noEmit
Total: 62 errors across 22 files
Group 1 — Core src/runtime errors (11 errors)
| File | Line | Error | Category |
|---|---|---|---|
src/entrypoints/cli.tsx |
140 | ChannelPermissionRequestNotificationSchema not on type |
Missing export |
src/services/acp/entry.ts |
1,2,4 | Cannot find @agentclientprotocol/sdk, ./agent.js |
Missing module (ACP, gated) |
src/services/localVault/store.ts |
354,355,389,429,430 | Expected 0 arguments, got 1-2 | Decompile — Keychain.setPassword() sig mismatch |
src/commands/effort/effort.tsx |
30 | EffortLevel missing "xhigh" |
Type union incomplete |
src/components/EffortCallout.tsx |
64 | Same xhigh issue |
Type union incomplete |
src/components/ModelPicker.tsx |
204 | Same xhigh issue |
Type union incomplete |
Group 2 — provider / sideQuery / model-provider (0 errors)
✅ All clear — sideQuery routing and @ant/model-provider pass typecheck.
Group 3 — packages/@ant/* edge packages (8 errors)
| File | Line | Error | Category |
|---|---|---|---|
packages/@ant/computer-use-swift/.../win32.ts |
257 | captureWindowTarget not in ScreenshotAPI |
Stub incomplete |
packages/acp-link/src/cli/command.ts |
22-66 | Boolean/string → undefined, missing optional prop |
Decompile — Commander.js types |
Group 4 — tests (7 errors)
| File | Line | Error | Category |
|---|---|---|---|
packages/color-diff-napi/src/__tests__/color-diff.test.ts |
75-86 | Expected 2 args, got 1 (6×) | Test interface mismatch |
packages/remote-control-server/src/__tests__/disconnect-monitor.test.ts |
78 | status not in session init type |
Stale test |
Group 5 — decompile residue (36 errors)
5a — ToolResultBlockParam not exported (14 errors)
Files: CtxInspectTool, DiscoverSkillsTool, ListPeersTool, MonitorTool, PushNotificationTool, REPLTool, SendUserFileTool, SleepTool, SnipTool, SubscribePRTool, SuggestBackgroundPRTool, TerminalCaptureTool, VerifyPlanExecutionTool, WebBrowserTool, WorkflowTool
→ src/Tool.ts defines ToolResultBlockParam locally but doesn't export it. Add one export keyword.
5b — Missing searchExtraTools module (4 errors)
Files: ExecuteTool/ExecuteTool.ts, SearchExtraToolsTool/SearchExtraToolsTool.ts
→ src/utils/searchExtraTools.ts and src/services/searchExtraTools/toolIndex.ts don't exist. Create stubs.
5c — Missing CORE_TOOLS export (1 error)
File: SearchExtraToolsTool/prompt.ts
→ src/constants/tools.ts lacks CORE_TOOLS. Add the missing constant.
5d — TCP type mismatches in SendMessageTool (5 errors)
File: SendMessageTool/SendMessageTool.ts (lines 636,662,722,872,873)
→ peerType union "other" | "bridge" | "uds" doesn't include "tcp". parseTcpTarget missing from peerAddress.
5e — udsMessaging / bridge/peerSessions missing exports (3 errors)
File: ListPeersTool — getUdsMessagingSocketPath, formatUdsAddress, listPeers, listBridgePeers
→ Stub the missing exports or add to existing stub files.
5f — updateSessionInit missing status (1 error)
See Group 4 above — test uses stale interface.
Action Plan (Priority Order)
Quick wins (high impact, low risk):
- Export
ToolResultBlockParamfromsrc/Tool.ts— fixes 14 errors in one edit - Add
"xhigh"to Effort union types (3 components) — fixes 3 core errors - Fix
color-difftest — update argument count (6 errors)
Medium:
- Create stubs for
searchExtraTools.ts,toolIndex.ts— fixes 4 errors - Add
CORE_TOOLSexport — fixes 1 error - Fix
SendMessageToolTCP types — add"tcp"to union, stubparseTcpTarget
Deferred (gated features, low priority):
- ACP module (
@agentclientprotocol/sdk) — feature-gated, install as devDep or stub ChannelPermissionRequestNotificationSchema— add export or stub- localVault Keychain sig — fix method signatures on stub
- acp-link Commander.js types — add missing
optionalfield - computer-use-swift win32 — add
captureWindowTargetto interface (win32-only)