Skip to content

v1.10.47 — Hardened init against partial installs

Latest

Choose a tag to compare

@nokhodian nokhodian released this 19 May 15:24
· 1236 commits to main since this release

Fixes

  • Sentinel array validation: findSourceHelpersDir() now checks for all 4 required files (hook-handler.cjs, utils/telemetry.cjs, utils/monograph.cjs, utils/micro-agents.cjs) before accepting a helpers source directory — prevents silent detection of incomplete npm installs
  • Recursive upgrade sync: executeUpgrade() now uses copyDirRecursive() for utils/ and handlers/ subdirectories — closes the regression where upgrade left subdirs absent
  • .cjs extension fix: Generated stub require() paths corrected from .js.cjs for session, router, memory helpers — eliminates module-not-found crash on fresh init
  • Fallback filename fix: Internal fallback map updated to use .cjs extensions consistently with loader expectations
  • Regression tests: tests/cli/init-helpers.test.mjs — verifies source integrity, post-init structure, and that hook-handler.cjs loads without CJS crash