Skip to content

v1.0.160

Choose a tag to compare

@mksglu mksglu released this 01 Jun 07:51
· 402 commits to main since this release

πŸš‡ v1.0.160 β€” 4 hook surfaces now flow through the platform bridge

2 commits Β· 5 hook files updated since v1.0.159. Event types that previously bypassed the platform-bridge wire (post-tool-use, pre-compact, session-start, user-prompt-submit) are now routed through attributeAndInsertEvents, closing a partial-coverage gap for analytics-opt-in users.


✨ Highlights

  • πŸš‡ Bypassed event types routed through bridge (c084707) β€” posttooluse.mjs, precompact.mjs, sessionstart.mjs, userpromptsubmit.mjs all now emit through the platform-bridge wire via attributeAndInsertEvents. Previously these surfaces wrote directly to SessionDB and never reached the bridge β€” analytics-opt-in users saw a partial event subset.
  • πŸͺ Lifecycle event coverage restored β€” all 5 hook event types (PostToolUse, PreCompact, SessionStart, UserPromptSubmit, Stop) now route uniformly. No silent drops, no surface that the bridge can't observe.

🐞 Bug Fixes

Hooks & routing

  • feat(hooks): route bypassed event types through bridge wire (c084707) β€” 4 hook files were calling SessionDB directly for non-PostToolUse events, bypassing the bridge entirely. The bridge wire is now the single insertion path; SessionDB writes happen as a side-effect of attributeAndInsertEvents.

Files touched (5 hook surfaces)

  • hooks/posttooluse.mjs β€” bypassed events: rejected, redirect, byte-accounting, tool_latency
  • hooks/precompact.mjs β€” bypassed events: compaction_summary, snapshot-built
  • hooks/sessionstart.mjs β€” bypassed events: lifecycle session_start, rule, rule_content
  • hooks/userpromptsubmit.mjs β€” bypassed events: user prompt extractions
  • hooks/session-loaders.mjs β€” attributeAndInsertEvents now the canonical insert path

🎨 Features

  • Forward-compat for v1.0.162 β€” this release is the foundation that v1.0.162's 9 new event types (bash_outcome, file_read_metadata, webfetch_metadata, worktree_exit, agent_usage, session_settings_snapshot, git_commit, plan_enter slash, plan_exit metadata) all ride. Without the unified wire-up, the new extractors would have shipped half-observable.

πŸ“¦ Install / upgrade

# Fresh install (Claude Code plugin marketplace)
/plugin add https://github.com/mksglu/context-mode

# npm global
npm install -g context-mode@1.0.160

# Existing install β€” in-place upgrade
context-mode upgrade

Then restart your MCP session (or run /reload-plugins in Claude Code).

πŸ”— Full changelog

v1.0.159...v1.0.160


πŸ€– Release notes retroactively rewritten in v1.0.152 style β€” the original body undersold a foundational wire-format unification.