mirror of
https://github.com/thedotmack/claude-mem.git
synced 2026-09-20 04:23:02 +08:00
ce13c887fd
- src/sdk/hardened-options.ts: single buildHardenedSdkOptions() — tools:[], allowedTools:[], full disallowedTools deny-list, permissionMode:'dontAsk', denying+audit-logging canUseTool, additionalDirectories:[], cwd jailed to OBSERVER_SESSIONS_DIR. Both Observer (ClaudeProvider) and KnowledgeAgent route through it so they can't drift. (#2332) - src/utils/observer-audit.ts: append-only NDJSON audit log of denied tool attempts. - Verified SDK options exist in @anthropic-ai/claude-agent-sdk v0.2.141; documented per-token cap as unavailable (Phase 4). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>