kit 6.4.1
Fixed
-
npm testdeleted the developer's real MCP tokens.
src/mcp-orchestrator.test.tsoperated on~/.kit/mcp-tokens.json— the actual
path, not a fixture — and callsrmSyncon it before every test and in
afterEach. It had no choice:mcp-orchestrator.tsboundTOKEN_FILEto
homedir()in a module-levelconst, so no test could redirect it. Measured
both ways: with a sentinel file at that path, the old code left
No such file or directorybehind and the fixed code leaves the sentinel
untouched. The path now resolves per call and honoursKIT_MCP_TOKENS_DIR,
matchingidentityDir()/KIT_AUDIT_ANCHOR_DIR/KIT_MEMORY_DIR, and the
test redirects into a temp dir. Also listed inkit knobs. -
A failing test could lose its own name. A run of the suite reported
# fail 1while piped throughtail, which discarded everything above the
summary; four re-runs were green, so the flake was never named.npm testnow
always writes a complete TAP report to.kit-test-run.tap(gitignored) in
addition to stdout, so the detail no longer depends on how the caller redirected
output. Proven by failing a test on purpose and reading the name out of the log
while stdout was piped totail -1. The stdout reporter deliberately reproduces
node's own adaptive default (specon a TTY,tapwhen piped) rather than
forcing one, because naming a reporter replaces that default and would have
silently brokennpm test | grep '# fail'.The intermittent failure itself is still unidentified — eight clean full runs
since. One later run showed 75 failures with whole test files erroring, but that
was self-inflicted:dist/was rebuilt while the suite was running.
Full changelog: https://github.com/sandstream/kit/blob/v6.4.1/CHANGELOG.md
Verify this release:
git tag -v v6.4.1
npm audit signatures