Stability Fixes
node-ai-path pattern tightened — No longer flags every node process in AI directories. Now requires /mcp/, /agent/, or /server/ in the path.
- Batch limit warning visible — When
maxKillBatch is exceeded, the warning is now displayed to the user.
- Field naming unified — Internal
rss/mem mismatch resolved.
Test Suite (58 tests)
process-tree: Tree construction, orphan detection, ancestor traversal, cycle protection
patterns: AI_TOOL_DIRS (14 dirs), aiPathRequired false positive (7 cases) + true positive (5 cases)
killer: Rate limiting, warning generation
scanner: ProcessTree integration, tmux orphan bug fix, aiPathRequired filter
node --test test/*.test.js # 58 pass, 0 fail, ~300ms
Docs
- README updated with
maxKillBatch, customAiDirs config options
- Supported Tools table expanded
Upgrade
npx @thestackai/zclean@latest