@mnemonik/claude-code-hooks 0.9.47 → 0.9.50

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.
@@ -111,7 +111,47 @@ export interface InjectionsResponse {
111
111
  * an old server that omits the field never downgrades a forbiddenCommand.
112
112
  */
113
113
  hostDecision?: 'deny' | 'ask';
114
+ /** Private capture metadata. Never included in additionalContext text. */
115
+ creditCapture?: {
116
+ deliveryRef: string;
117
+ expectedFragmentHashes: string[];
118
+ rendererVersion: string;
119
+ };
114
120
  }>;
121
+ confirmedDeliveryRefs?: string[];
122
+ }
123
+ export interface DeliveryConfirmation {
124
+ deliveryRef: string;
125
+ emittedHashes: string[];
126
+ transcriptHashes: string[];
127
+ positions: Array<{
128
+ transcriptRef: string;
129
+ byteOffset: number;
130
+ contentIndex: number;
131
+ fragmentIndex: number;
132
+ }>;
133
+ rendererVersion: string;
134
+ /** Per-session fingerprint salt, disclosed only with the signed delivery ref. */
135
+ sessionSalt: string;
136
+ }
137
+ export interface TokenFingerprint {
138
+ hash: string;
139
+ length: number;
140
+ }
141
+ export interface ActionObservationPayload {
142
+ event: 'pre_tool_use' | 'post_tool_use' | 'user_prompt' | 'compaction' | 'session_end';
143
+ nativeActionRef: string;
144
+ seq?: number;
145
+ transcriptRef?: string;
146
+ actionClass: string;
147
+ targetHashes: string[];
148
+ argHash?: string;
149
+ resultHash?: string;
150
+ exitStatus?: string;
151
+ fingerprintSet: {
152
+ args: TokenFingerprint[];
153
+ preImage: TokenFingerprint[];
154
+ };
115
155
  }
116
156
  /**
117
157
  * Server response from /api/v1/hooks/jit — JIT Knowledge Injector gate
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/lib/types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAqPH,MAAM,CAAC,MAAM,cAAc,GAAG,0BAA0B,CAAC"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/lib/types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAgSH,MAAM,CAAC,MAAM,cAAc,GAAG,0BAA0B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mnemonik/claude-code-hooks",
3
- "version": "0.9.47",
3
+ "version": "0.9.50",
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",
@@ -32,7 +32,7 @@
32
32
  ],
33
33
  "license": "SEE LICENSE IN LICENSE",
34
34
  "dependencies": {
35
- "@mnemonik/shared": "^7.41.0"
35
+ "@mnemonik/shared": "^7.42.0"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@types/node": "^20.19.43",