mirror of
https://github.com/qwibitai/nanoclaw.git
synced 2026-07-12 19:00:58 +08:00
7ce25de444
TOOL_ALLOWLIST named five tools that don't exist on claude-code 2.1.197 (Task was renamed Agent upstream; TodoWrite, TeamCreate, TeamDelete, and ToolSearch are gone). Remove the phantoms and correct the comment (and the stale claim in docs/agent-runner-details.md): allowedTools is a permission auto-approve list, not an availability filter — paired wire captures show no allowlist effect on the offered tool surface, and this runner's bypassPermissions moots its permission role. No wire-visible change. Add a wire-captured fixture (sdk-tools-baseline.json, regenerated via dump-sdk-tools.ts inside the agent image with a zero-API-cost 401-stub capture) and claude.tools.test.ts, which fails on any future claude-code CLI or Agent SDK bump until the fixture is regenerated and the lists re-verified. The SDK dep is pinned exactly (0.3.197, was caret) so drift can only enter deliberately. Wire measurement on this pin also shows run-to-run NONDETERMINISM in the offered surface: conditional tools (Glob/Grep) flicker, and disallowedTools stripping of flag-gated tools is per-query best-effort. The fixture pairs captures within one regen run to control for this, records a disallow probe as a diagnostic, and the dump-script header documents the variance; the deterministic tool block remains the runner's PreToolUse hook. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
24 lines
568 B
JSON
24 lines
568 B
JSON
{
|
|
"name": "nanoclaw-agent-runner",
|
|
"version": "1.0.0",
|
|
"type": "module",
|
|
"description": "Container-side agent runner for NanoClaw",
|
|
"scripts": {
|
|
"start": "bun src/index.ts",
|
|
"typecheck": "tsc --noEmit",
|
|
"test": "bun test"
|
|
},
|
|
"dependencies": {
|
|
"@anthropic-ai/claude-agent-sdk": "0.3.197",
|
|
"@anthropic-ai/sdk": "^0.108.0",
|
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
"cron-parser": "^5.0.0",
|
|
"zod": "^4.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/bun": "^1.1.0",
|
|
"@types/node": "^22.10.7",
|
|
"typescript": "^5.7.3"
|
|
}
|
|
}
|