github mksglu/context-mode v1.0.40
1.0.40

latest release: v1.0.41
3 hours ago

Fixes

#158 — start.mjs unconditionally writes routing file

  • Hook-capable platforms (Claude Code, Gemini CLI, OpenCode, OpenClaw) no longer get routing instructions written to disk — the SessionStart hook handles it, keeping your git tree clean.

#159 — OpenCode hook interface mismatch (BREAKING for OpenCode users)

  • Fixed opencode-plugin.ts to use OpenCode's actual two-parameter hook signature (input, output).
  • Field mapping corrected: tool_nameinput.tool, tool_inputoutput.args, tool_outputoutput.output.
  • Arg mutation now correctly targets output.args so OpenCode reads the modified values.
  • Note: This was always broken — the old single-param interface meant routing enforcement never triggered for OpenCode/Kilo Code users.

#160 — Marketplace sync: cli.bundle.mjs missing

  • ctx_doctor now runs all diagnostics server-side (no CLI file dependency).
  • ctx_upgrade falls back to a temp .mjs script when CLI files are missing.
  • start.mjs self-heals cli.bundle.mjs from build/cli.js when the bundle is absent.
  • session-loaders.mjs falls back to build/session/*.js when bundles are missing.
  • Skills (ctx-doctor, ctx-upgrade) prefer MCP tool, Bash as fallback.

Additional

  • Replaced fabricated OPENCLAW_PROJECT_DIR env var with real OPENCLAW_CLI (verified against upstream openclaw/openclaw source).
  • postinstall.mjs: improved nvm4w shim detection + isSafeWindowsPath guard against cmd.exe injection.
  • CLI self-heal shim now gets chmod +x on Unix.

Stats

  • 19 files changed, 601 insertions, 264 deletions
  • 1194 tests passing, TypeScript clean
  • Reviewed by Staff Engineer + Principal Engineer

Don't miss a new context-mode release

NewReleases is sending notifications on new releases.