@namzu/sdk 63.0.0 → 64.0.0

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.
Files changed (123) hide show
  1. package/CHANGELOG.md +60 -0
  2. package/dist/agents/QueryAgent.d.ts.map +1 -1
  3. package/dist/agents/QueryAgent.js +2 -1
  4. package/dist/agents/QueryAgent.js.map +1 -1
  5. package/dist/compaction/hooks.d.ts +57 -0
  6. package/dist/compaction/hooks.d.ts.map +1 -0
  7. package/dist/compaction/hooks.js +44 -0
  8. package/dist/compaction/hooks.js.map +1 -0
  9. package/dist/compaction/manual.d.ts +9 -0
  10. package/dist/compaction/manual.d.ts.map +1 -1
  11. package/dist/compaction/manual.js +74 -5
  12. package/dist/compaction/manual.js.map +1 -1
  13. package/dist/compaction/model-summary.d.ts +6 -0
  14. package/dist/compaction/model-summary.d.ts.map +1 -1
  15. package/dist/compaction/model-summary.js +13 -3
  16. package/dist/compaction/model-summary.js.map +1 -1
  17. package/dist/compaction/verifier.d.ts +8 -2
  18. package/dist/compaction/verifier.d.ts.map +1 -1
  19. package/dist/compaction/verifier.js +23 -7
  20. package/dist/compaction/verifier.js.map +1 -1
  21. package/dist/plugin/hook-context.d.ts +16 -0
  22. package/dist/plugin/hook-context.d.ts.map +1 -1
  23. package/dist/plugin/hook-context.js +40 -0
  24. package/dist/plugin/hook-context.js.map +1 -1
  25. package/dist/plugin/index.d.ts +4 -3
  26. package/dist/plugin/index.d.ts.map +1 -1
  27. package/dist/plugin/index.js +3 -2
  28. package/dist/plugin/index.js.map +1 -1
  29. package/dist/plugin/shell-hook-command.d.ts +25 -0
  30. package/dist/plugin/shell-hook-command.d.ts.map +1 -0
  31. package/dist/plugin/shell-hook-command.js +218 -0
  32. package/dist/plugin/shell-hook-command.js.map +1 -0
  33. package/dist/plugin/shell-hook-tool-names.d.ts +20 -0
  34. package/dist/plugin/shell-hook-tool-names.d.ts.map +1 -0
  35. package/dist/plugin/shell-hook-tool-names.js +43 -0
  36. package/dist/plugin/shell-hook-tool-names.js.map +1 -0
  37. package/dist/plugin/shell-hook.d.ts +62 -20
  38. package/dist/plugin/shell-hook.d.ts.map +1 -1
  39. package/dist/plugin/shell-hook.js +372 -85
  40. package/dist/plugin/shell-hook.js.map +1 -1
  41. package/dist/public-runtime.d.ts +3 -1
  42. package/dist/public-runtime.d.ts.map +1 -1
  43. package/dist/public-runtime.js +2 -1
  44. package/dist/public-runtime.js.map +1 -1
  45. package/dist/public-types.d.ts +2 -1
  46. package/dist/public-types.d.ts.map +1 -1
  47. package/dist/runtime/query/compact-session.d.ts +7 -1
  48. package/dist/runtime/query/compact-session.d.ts.map +1 -1
  49. package/dist/runtime/query/compact-session.js +8 -3
  50. package/dist/runtime/query/compact-session.js.map +1 -1
  51. package/dist/runtime/query/executor/tool-call-admission.d.ts +1 -1
  52. package/dist/runtime/query/executor/tool-call-admission.d.ts.map +1 -1
  53. package/dist/runtime/query/executor/tool-call-admission.js +4 -3
  54. package/dist/runtime/query/executor/tool-call-admission.js.map +1 -1
  55. package/dist/runtime/query/executor.d.ts +8 -0
  56. package/dist/runtime/query/executor.d.ts.map +1 -1
  57. package/dist/runtime/query/executor.js +17 -7
  58. package/dist/runtime/query/executor.js.map +1 -1
  59. package/dist/runtime/query/finalize-turn.d.ts.map +1 -1
  60. package/dist/runtime/query/finalize-turn.js +9 -2
  61. package/dist/runtime/query/finalize-turn.js.map +1 -1
  62. package/dist/runtime/query/iteration/index.d.ts.map +1 -1
  63. package/dist/runtime/query/iteration/index.js +4 -1
  64. package/dist/runtime/query/iteration/index.js.map +1 -1
  65. package/dist/runtime/query/iteration/phases/compaction.d.ts.map +1 -1
  66. package/dist/runtime/query/iteration/phases/compaction.js +24 -12
  67. package/dist/runtime/query/iteration/phases/compaction.js.map +1 -1
  68. package/dist/runtime/query/iteration/phases/tool-review.d.ts.map +1 -1
  69. package/dist/runtime/query/iteration/phases/tool-review.js +2 -0
  70. package/dist/runtime/query/iteration/phases/tool-review.js.map +1 -1
  71. package/dist/runtime/query/plugin-hooks.d.ts +13 -0
  72. package/dist/runtime/query/plugin-hooks.d.ts.map +1 -1
  73. package/dist/runtime/query/plugin-hooks.js +29 -2
  74. package/dist/runtime/query/plugin-hooks.js.map +1 -1
  75. package/dist/runtime/query/turn/outcome-ledger.d.ts +4 -0
  76. package/dist/runtime/query/turn/outcome-ledger.d.ts.map +1 -1
  77. package/dist/runtime/query/turn/outcome-ledger.js +2 -1
  78. package/dist/runtime/query/turn/outcome-ledger.js.map +1 -1
  79. package/dist/tools/builtins/bash.d.ts.map +1 -1
  80. package/dist/tools/builtins/bash.js +10 -2
  81. package/dist/tools/builtins/bash.js.map +1 -1
  82. package/dist/tools/coordinator/index.d.ts.map +1 -1
  83. package/dist/tools/coordinator/index.js +1 -0
  84. package/dist/tools/coordinator/index.js.map +1 -1
  85. package/dist/types/agent/query.d.ts +8 -0
  86. package/dist/types/agent/query.d.ts.map +1 -1
  87. package/dist/types/plugin/index.d.ts +55 -11
  88. package/dist/types/plugin/index.d.ts.map +1 -1
  89. package/dist/types/plugin/index.js.map +1 -1
  90. package/dist/types/session/events.d.ts +2 -0
  91. package/dist/types/session/events.d.ts.map +1 -1
  92. package/dist/types/session/events.js.map +1 -1
  93. package/dist/types/tool/index.d.ts +13 -1
  94. package/dist/types/tool/index.d.ts.map +1 -1
  95. package/dist/types/tool/index.js.map +1 -1
  96. package/package.json +1 -1
  97. package/src/agents/QueryAgent.ts +2 -1
  98. package/src/compaction/hooks.ts +104 -0
  99. package/src/compaction/manual.ts +117 -4
  100. package/src/compaction/model-summary.ts +19 -3
  101. package/src/compaction/verifier.ts +33 -3
  102. package/src/plugin/hook-context.ts +46 -0
  103. package/src/plugin/index.ts +14 -0
  104. package/src/plugin/shell-hook-command.ts +215 -0
  105. package/src/plugin/shell-hook-tool-names.ts +46 -0
  106. package/src/plugin/shell-hook.ts +405 -79
  107. package/src/public-runtime.ts +12 -0
  108. package/src/public-types.ts +2 -0
  109. package/src/runtime/query/compact-session.ts +16 -4
  110. package/src/runtime/query/executor/tool-call-admission.ts +10 -2
  111. package/src/runtime/query/executor.ts +33 -8
  112. package/src/runtime/query/finalize-turn.ts +9 -2
  113. package/src/runtime/query/iteration/index.ts +4 -1
  114. package/src/runtime/query/iteration/phases/compaction.ts +31 -12
  115. package/src/runtime/query/iteration/phases/tool-review.ts +2 -0
  116. package/src/runtime/query/plugin-hooks.ts +32 -2
  117. package/src/runtime/query/turn/outcome-ledger.ts +6 -1
  118. package/src/tools/builtins/bash.ts +16 -3
  119. package/src/tools/coordinator/index.ts +1 -0
  120. package/src/types/agent/query.ts +9 -0
  121. package/src/types/plugin/index.ts +66 -22
  122. package/src/types/session/events.ts +2 -0
  123. package/src/types/tool/index.ts +14 -1
@@ -24,8 +24,8 @@
24
24
  * same facts as `NAMZU_HOOK_EVENT`, `NAMZU_SESSION_ID`, `NAMZU_TURN_ID`,
25
25
  * `NAMZU_TOOL_NAME` and, when the input names a file, `NAMZU_TOOL_PATH`;
26
26
  * `NAMZU_PROJECT_DIR` is the folder the session was started for.
27
- * `session_start` also sends `source` (`startup` or `resume`) and `session_end`
28
- * `reason` (`exit` or `replaced`).
27
+ * `session_start` also sends `source` (`startup`, `resume` or `clear`) and
28
+ * `session_end` `reason` (`exit`, `replaced` or `clear`).
29
29
  *
30
30
  * `session_start` and `session_end` run outside any turn, so they carry no
31
31
  * `turn_id` on stdin and no `NAMZU_TURN_ID` in the environment — not even
@@ -36,7 +36,8 @@
36
36
  * stdout. The exit codes:
37
37
  *
38
38
  * - `0` — carry on. On `user_prompt_submit`, `subagent_start` and
39
- * `session_start`, plain (non-JSON) stdout becomes context for the model.
39
+ * `session_start`, plain (non-JSON) stdout becomes context for the model;
40
+ * on `pre_compact` it is instructions for the summariser.
40
41
  * - `2` — **block**, read per event: before a tool (`pre_tool_use`) the call is
41
42
  * skipped and the model is told why, with the hook's stderr as the reason;
42
43
  * on `user_prompt_submit` the turn ends; on `turn_end` and `subagent_stop`
@@ -107,6 +108,7 @@ import type { PluginId } from '../types/ids/index.js';
107
108
  import type { PluginCompactionInfo, PluginHookDefinition, PluginHookEvent, PluginHookResult, PluginNotificationInfo, PluginToolBatchCall } from '../types/plugin/index.js';
108
109
  import type { Logger } from '../utils/logger.js';
109
110
  import type { PluginLifecycleManager } from './lifecycle.js';
111
+ import { type ShellHookToolNames } from './shell-hook-tool-names.js';
110
112
  /**
111
113
  * The events a shell hook may attach to: the ones an operator can act on
112
114
  * from a script. The model-call and iteration events stay in-process —
@@ -158,6 +160,15 @@ interface ShellHookEntryBase {
158
160
  * here are the same entry.
159
161
  */
160
162
  readonly source?: string;
163
+ /**
164
+ * Which spelling of a tool's name the hook is sent as `tool_name` (and
165
+ * `NAMZU_TOOL_NAME`): `namzu`, the name the tool is registered under
166
+ * (`bash`; the default), or `written`, the capitalised name a person writes
167
+ * in a matcher (`Bash`). A tool with no written name, and every tool-server
168
+ * tool, keeps its own. `matcher` and `if` read either spelling whatever this
169
+ * says. An entry read from the common hook contract is `written`.
170
+ */
171
+ readonly toolNames?: ShellHookToolNames;
161
172
  }
162
173
  /** One shell command at one event. */
163
174
  export interface ShellHookEntry extends ShellHookEntryBase {
@@ -217,21 +228,26 @@ export declare const MAX_SHELL_HOOK_TIMEOUT_MS: number;
217
228
  * Empty or `*` matches everything. A list of names separated by `|` or `,`
218
229
  * matches exactly, each part optionally ending in `*` as a prefix (the
219
230
  * spelling this adapter has always taken). Anything else is a regular
220
- * expression, tested unanchored against the name; one that does not compile
221
- * matches nothing. A matcher on an event that has no name (`turn_start`)
222
- * matches nothing unless it is `*`.
231
+ * expression, tested unanchored against the name. This function called with no
232
+ * name matches only `*`; a hook on an event that has no name (`turn_end`)
233
+ * ignores its matcher and fires (see `createShellHook`).
234
+ *
235
+ * A text that reads both ways (it is a list, and it holds a `.*`
236
+ * that a regular expression reads differently: `Bash.*`,
237
+ * `mcp__.*__search`) fires when either reading matches. A pattern that does
238
+ * not compile cannot be read, and a guard that silently matches nothing is
239
+ * the failure to avoid, so it matches every name; `/hooks` and
240
+ * `namzu doctor` say that it cannot be read (`shellHookMatcherProblem`).
223
241
  *
224
242
  * Names in a list compare without regard to case. With `tool: true` (the
225
243
  * event's name is a tool: the tool events and `permission_request`) they also
226
- * take the names skills write, the way an entry's `if` does: `Bash` matches
227
- * the tool `bash`, `MultiEdit` matches `edit`, and a prefix such as `Web*`
228
- * matches `web_fetch` by its written name too. Where the name is not a tool
229
- * (a notification's type, an agent's name, a session's `source` or `reason`)
230
- * no tool alias applies, since those words are not tool names; case is still
231
- * ignored there, because a guard that silently never runs over a capital
232
- * letter is worse than one that also runs for a name differing only in case.
233
- *
234
- * A list part ending in `.*` is also tried as a regular expression.
244
+ * take the names skills write, the way an entry's `if` does, and a tool name
245
+ * compares without its `_` and `-`: `Bash` matches the tool `bash`,
246
+ * `MultiEdit` matches `edit`, `ViewImage` matches `view_image`, `Task` and
247
+ * `Agent` match the sub-agent tool `Agent`, and a prefix such as `Web*`
248
+ * matches `web_fetch`. Where the name is not a tool (a notification's type,
249
+ * an agent's name, a session's `source` or `reason`) no tool alias applies,
250
+ * since those words are not tool names; case is still ignored there.
235
251
  *
236
252
  * A regular expression is tested, case-sensitively as written, against the
237
253
  * real name and, with `tool: true`, against each name skills write for that
@@ -241,12 +257,25 @@ export declare const MAX_SHELL_HOOK_TIMEOUT_MS: number;
241
257
  export declare function shellHookMatches(matcher: string | undefined, toolName: string | undefined, options?: {
242
258
  readonly tool?: boolean;
243
259
  }): boolean;
260
+ /**
261
+ * Why a `matcher` cannot be read, or `undefined` when it can. A matcher that
262
+ * is not a list of names and does not compile as a regular expression fires
263
+ * for every name (see {@link shellHookMatches}).
264
+ */
265
+ export declare function shellHookMatcherProblem(matcher: string | undefined): string | undefined;
266
+ /**
267
+ * Why an `if` cannot be read, or `undefined` when it can. A filter that
268
+ * cannot be read runs the hook.
269
+ */
270
+ export declare function shellHookIfProblem(filter: string | undefined): string | undefined;
244
271
  /**
245
272
  * A hook's `if` against one tool call: `Tool` or `Tool(pattern)`. The tool
246
- * part is case-insensitive and takes the names skills write (`Bash`,
247
- * `Read`). A pattern is matched against a shell tool's command line and only
248
- * there; for a tool with no command line the filter cannot be read, which
249
- * runs the hook.
273
+ * part takes every spelling a `matcher` takes as a list: names skills write
274
+ * (`Bash`, `Read`, `Agent`), separated by `|` or `,`, a prefix ending in `*`,
275
+ * case ignored; a regular expression is not read here (use `matcher`). A
276
+ * pattern is matched against a shell tool's command line (one command at a
277
+ * time) or, for a file tool, a path the host reads; for a tool with neither
278
+ * the filter cannot be read, which runs the hook.
250
279
  */
251
280
  export declare function shellHookIfMatches(filter: string | undefined, toolName: string | undefined, toolInput: unknown, pathFilter?: ShellHookPathFilter): boolean;
252
281
  /**
@@ -290,6 +319,10 @@ export interface ShellHookInput {
290
319
  readonly prompt?: string;
291
320
  readonly compaction?: PluginCompactionInfo;
292
321
  readonly toolName?: string;
322
+ /** The spelling `toolName` (and each `toolCalls` name) is sent in; absent is `namzu`. */
323
+ readonly toolNames?: ShellHookToolNames;
324
+ /** The call's id, on the single-call tool events. Sent as `tool_use_id`. */
325
+ readonly toolCallId?: string;
293
326
  readonly toolInput?: unknown;
294
327
  readonly toolResult?: {
295
328
  readonly success: boolean;
@@ -306,6 +339,8 @@ export interface ShellHookInput {
306
339
  readonly notification?: PluginNotificationInfo;
307
340
  /** On `turn_end` and `subagent_stop`: an earlier answer already kept this turn going. */
308
341
  readonly stopHookActive?: boolean;
342
+ /** On `turn_end` and `subagent_stop`: the model's last message of the turn. Sent as `last_assistant_message`. */
343
+ readonly lastAssistantMessage?: string;
309
344
  /** The session's transcript file, when the host has one. Sent as `transcript_path`. */
310
345
  readonly transcriptPath?: string;
311
346
  /** How tool calls are being decided right now. Sent as `permission_mode`. */
@@ -315,12 +350,19 @@ export interface ShellHookInput {
315
350
  export declare function shellHookPayload(input: ShellHookInput): string;
316
351
  /** Run one hook command to completion, bounded by its deadline and capture. */
317
352
  export declare function runShellHook(entry: ShellHookEntry, input: ShellHookInput, signal?: AbortSignal): Promise<ShellHookOutcome>;
353
+ /** The PascalCase spelling of each event name, which a hook's JSON may use. */
354
+ export declare const SHELL_HOOK_PASCAL_EVENT_NAMES: Readonly<Partial<Record<ShellHookEvent, string>>>;
355
+ /** The tool tied to an answer: what a rewrite or a replacement is read against. */
356
+ export interface ShellHookCall {
357
+ readonly toolName?: string;
358
+ readonly toolInput?: unknown;
359
+ }
318
360
  /**
319
361
  * The verdict, from the outcome and the event. Pure apart from the logger,
320
362
  * so the mapping — the part that decides what the model is told — is
321
363
  * testable without a process.
322
364
  */
323
- export declare function shellHookVerdict(event: ShellHookEvent, entry: ShellHookHandler, outcome: ShellHookOutcome, log?: Logger): PluginHookResult;
365
+ export declare function shellHookVerdict(event: ShellHookEvent, entry: ShellHookHandler, outcome: ShellHookOutcome, log?: Logger, call?: ShellHookCall): PluginHookResult;
324
366
  /** A short name for a hook in logs: its command, its url, or the start of its prompt. */
325
367
  export declare function describeShellHook(entry: ShellHookHandler): string;
326
368
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"shell-hook.d.ts","sourceRoot":"","sources":["../../src/plugin/shell-hook.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwGG;AAWH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AACrD,OAAO,KAAK,EACX,oBAAoB,EAEpB,oBAAoB,EACpB,eAAe,EAEf,gBAAgB,EAChB,sBAAsB,EACtB,mBAAmB,EACnB,MAAM,0BAA0B,CAAA;AAIjC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAEhD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAA;AAG5D;;;;GAIG;AACH,MAAM,MAAM,cAAc,GAAG,OAAO,CACnC,eAAe,E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