@mnemonik/claude-code-hooks 0.9.324 → 0.9.325

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/hook.js CHANGED
@@ -643,8 +643,8 @@ async function handlePreBash(input, config) {
643
643
  * ordering-rule engine and maps the verdict to a Claude Code permissionDecision.
644
644
  *
645
645
  * allow → supply omitted call scope
646
- * deny → deny with reason (advisory mode includes a softer phrasing;
647
- * enforce mode is a hard block)
646
+ * deny → deny with reason in every mode (the verdict decides, not the
647
+ * mode constant)
648
648
  * ask → enforce: deny + reason so the agent confirms with the user *in
649
649
  * chat* and re-runs on approval (never `permissionDecision: 'ask'`,
650
650
  * which renders an IDE dialog a remote user can't answer);
@@ -78,9 +78,10 @@ export declare const STOP_CHECKPOINT_GATE: GateMode;
78
78
  * for Mnemonik MCP calls (matcher: `mcp__mnemonik__.*`). See
79
79
  * cursor-hooks.plan.md §16 for the host-agnostic rule taxonomy.
80
80
  *
81
- * Currently advisory: emits a system-reminder when the rule engine returns
82
- * deny / ask, but does not actually block the call. Matches the cursor-hooks
83
- * default. Will flip to enforce when telemetry warrants.
81
+ * A deny verdict denies in every mode: the verdict, not this constant, decides
82
+ * (de23c9be2). The mode governs only ask verdicts: advisory allows the call
83
+ * and hands the agent the reason; enforce denies so the agent confirms with
84
+ * the user in chat.
84
85
  */
85
86
  export declare const PRE_MCP_GATE: GateMode;
86
87
  /** SessionStart bootstrap pre-injection. */
@@ -74,9 +74,10 @@ export const STOP_CHECKPOINT_GATE = 'advisory';
74
74
  * for Mnemonik MCP calls (matcher: `mcp__mnemonik__.*`). See
75
75
  * cursor-hooks.plan.md §16 for the host-agnostic rule taxonomy.
76
76
  *
77
- * Currently advisory: emits a system-reminder when the rule engine returns
78
- * deny / ask, but does not actually block the call. Matches the cursor-hooks
79
- * default. Will flip to enforce when telemetry warrants.
77
+ * A deny verdict denies in every mode: the verdict, not this constant, decides
78
+ * (de23c9be2). The mode governs only ask verdicts: advisory allows the call
79
+ * and hands the agent the reason; enforce denies so the agent confirms with
80
+ * the user in chat.
80
81
  */
81
82
  export const PRE_MCP_GATE = 'advisory';
82
83
  /** SessionStart bootstrap pre-injection. */
@@ -1 +1 @@
1
- {"version":3,"file":"behavior.js","sourceRoot":"","sources":["../../src/lib/behavior.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAQH;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,aAAa,GAAa,UAAU,CAAC;AAElD;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,IAAI,CAAC;AAEjD;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAa,UAAU,CAAC;AAEzD;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,YAAY,GAAa,UAAU,CAAC;AAEjD,4CAA4C;AAC5C,MAAM,CAAC,MAAM,uBAAuB,GAAmB,IAAI,CAAC;AAE5D,iDAAiD;AACjD,MAAM,CAAC,MAAM,oBAAoB,GAAmB,IAAI,CAAC;AAEzD,uCAAuC;AACvC,MAAM,CAAC,MAAM,gBAAgB,GAAmB,IAAI,CAAC;AAErD,8CAA8C;AAC9C,MAAM,CAAC,MAAM,mBAAmB,GAAmB,IAAI,CAAC"}
1
+ {"version":3,"file":"behavior.js","sourceRoot":"","sources":["../../src/lib/behavior.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAQH;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,aAAa,GAAa,UAAU,CAAC;AAElD;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,IAAI,CAAC;AAEjD;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAa,UAAU,CAAC;AAEzD;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,YAAY,GAAa,UAAU,CAAC;AAEjD,4CAA4C;AAC5C,MAAM,CAAC,MAAM,uBAAuB,GAAmB,IAAI,CAAC;AAE5D,iDAAiD;AACjD,MAAM,CAAC,MAAM,oBAAoB,GAAmB,IAAI,CAAC;AAEzD,uCAAuC;AACvC,MAAM,CAAC,MAAM,gBAAgB,GAAmB,IAAI,CAAC;AAErD,8CAA8C;AAC9C,MAAM,CAAC,MAAM,mBAAmB,GAAmB,IAAI,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mnemonik/claude-code-hooks",
3
- "version": "0.9.324",
3
+ "version": "0.9.325",
4
4
  "description": "Claude Code lifecycle contextual hooks for Mnemonik. PreToolUse Edit/Write/NotebookEdit/Bash gates plus SessionStart bootstrap warming, clean Stop, PreCompact context_snapshot creation, bounded SessionEnd cleanup, and UserPromptSubmit context injection. This hooks-only package does not install skills, rules, project identity, or MCP config. Versioned independently from the @mnemonik/server release cadence (mirrors @mnemonik/scanner).",
5
5
  "repository": {
6
6
  "type": "git",
@@ -41,8 +41,8 @@
41
41
  ],
42
42
  "license": "SEE LICENSE IN LICENSE",
43
43
  "dependencies": {
44
- "@mnemonik/local-setup": "0.1.145",
45
- "@mnemonik/shared": "7.139.6",
46
- "@mnemonik/credentials": "0.1.145"
44
+ "@mnemonik/local-setup": "0.1.146",
45
+ "@mnemonik/shared": "7.139.7",
46
+ "@mnemonik/credentials": "0.1.146"
47
47
  }
48
48
  }