Repository navigation
v0.8.6
[0.8.6] - 2026-09-14
Security
- MCP parameter validation hardening (
mcp-server/src/index.ts, Round 5 F5 + Round 6 G1): action parameters are validated as legal Zod schemas before registration (coarse typeof + duck-typedshapeOf: z.object auto-unwraps, non-Zod fails fast). - Readonly-mode execution surface hardening (
cli/src/readonly-allow.ts, Round 5 F6/F7):date -s/--setandfind -ok/-okdirjoin the dangerous-substring / defensive blacklist, blocking system-time writes and interactive execution. - Env-var sanitization expansion (
cli/src/env-policy.ts, Round 5 F8): the SECRET_HINT regex adds AUTH/CRED/ACCESS patterns. - jobs.json read-modify-write race (
cli/src/jobs.ts, Round 6 G9): the load→mutate→save window of spawn/finish/cancel gains a mutex (withBoardLockSync); interleaved calls no longer lose updates.
Fixed
- MCP tool-call timeout (
mcp-server/src/index.ts, Round 6 G3): per-call 120s timeout (AIH_MCP_TOOL_TIMEOUT_MSoverridable); timer unref+clear does not hold the event loop. - MCP error serialization crash (Round 6 G2): the textResult JSON replacer handles circular refs / bigint / functions.
- jobs.json non-atomic write (Round 6 G10):
saveBoardswitches to temp+rename atomic publish. - Update staging-dir collision (
cli/src/index.ts, Round 6 G11): the staging dir gains a PID+random suffix. - Unbounded piped stdin (Round 6 G12):
aih run <input is capped at 10 MiB, erroring above the limit. - @aih/core dependency version mismatch (
cli/package.json, Round 6 G15): 0.2.0 → 0.7.2 (fixesnpm lsELSPROBLEMS).
Full changelog: https://github.com/summit4you/aih/blob/main/CHANGELOG.md