@namzu/sdk 51.1.0 → 52.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 (323) hide show
  1. package/CHANGELOG.md +100 -0
  2. package/dist/agents/QueryAgent.d.ts.map +1 -1
  3. package/dist/agents/QueryAgent.js +2 -0
  4. package/dist/agents/QueryAgent.js.map +1 -1
  5. package/dist/agents/SupervisorAgent.d.ts +1 -1
  6. package/dist/agents/SupervisorAgent.d.ts.map +1 -1
  7. package/dist/agents/SupervisorAgent.js.map +1 -1
  8. package/dist/agents/examples/SupervisorAgent.d.ts +42 -0
  9. package/dist/agents/examples/SupervisorAgent.d.ts.map +1 -1
  10. package/dist/agents/examples/SupervisorAgent.js +80 -4
  11. package/dist/agents/examples/SupervisorAgent.js.map +1 -1
  12. package/dist/agents/index.d.ts +1 -1
  13. package/dist/agents/index.d.ts.map +1 -1
  14. package/dist/agents/index.js.map +1 -1
  15. package/dist/authorization/protected-paths.d.ts +36 -0
  16. package/dist/authorization/protected-paths.d.ts.map +1 -0
  17. package/dist/authorization/protected-paths.js +107 -0
  18. package/dist/authorization/protected-paths.js.map +1 -0
  19. package/dist/authorization/readonly-commands.d.ts +39 -0
  20. package/dist/authorization/readonly-commands.d.ts.map +1 -0
  21. package/dist/authorization/readonly-commands.js +797 -0
  22. package/dist/authorization/readonly-commands.js.map +1 -0
  23. package/dist/authorization/readonly-flags.d.ts +19 -0
  24. package/dist/authorization/readonly-flags.d.ts.map +1 -0
  25. package/dist/authorization/readonly-flags.js +178 -0
  26. package/dist/authorization/readonly-flags.js.map +1 -0
  27. package/dist/authorization/removal.d.ts +52 -0
  28. package/dist/authorization/removal.d.ts.map +1 -0
  29. package/dist/authorization/removal.js +283 -0
  30. package/dist/authorization/removal.js.map +1 -0
  31. package/dist/authorization/shell-paths.d.ts +66 -0
  32. package/dist/authorization/shell-paths.d.ts.map +1 -0
  33. package/dist/authorization/shell-paths.js +697 -0
  34. package/dist/authorization/shell-paths.js.map +1 -0
  35. package/dist/bridge/acp/update.d.ts.map +1 -1
  36. package/dist/bridge/acp/update.js +1 -0
  37. package/dist/bridge/acp/update.js.map +1 -1
  38. package/dist/compaction/context-window.d.ts +24 -0
  39. package/dist/compaction/context-window.d.ts.map +1 -1
  40. package/dist/compaction/context-window.js +34 -0
  41. package/dist/compaction/context-window.js.map +1 -1
  42. package/dist/compaction/manual.d.ts.map +1 -1
  43. package/dist/compaction/manual.js +10 -2
  44. package/dist/compaction/manual.js.map +1 -1
  45. package/dist/compaction/plan.d.ts +4 -0
  46. package/dist/compaction/plan.d.ts.map +1 -1
  47. package/dist/compaction/plan.js +6 -2
  48. package/dist/compaction/plan.js.map +1 -1
  49. package/dist/compaction/verifier.d.ts +11 -1
  50. package/dist/compaction/verifier.d.ts.map +1 -1
  51. package/dist/compaction/verifier.js +19 -7
  52. package/dist/compaction/verifier.js.map +1 -1
  53. package/dist/config/runtime.d.ts +55 -7
  54. package/dist/config/runtime.d.ts.map +1 -1
  55. package/dist/config/runtime.js +23 -2
  56. package/dist/config/runtime.js.map +1 -1
  57. package/dist/connector/web/guarded-fetch.d.ts.map +1 -1
  58. package/dist/connector/web/guarded-fetch.js +24 -0
  59. package/dist/connector/web/guarded-fetch.js.map +1 -1
  60. package/dist/connector/web/index.d.ts +1 -1
  61. package/dist/connector/web/index.d.ts.map +1 -1
  62. package/dist/connector/web/page.d.ts +59 -0
  63. package/dist/connector/web/page.d.ts.map +1 -0
  64. package/dist/connector/web/page.js +112 -0
  65. package/dist/connector/web/page.js.map +1 -0
  66. package/dist/connector/web/types.d.ts +47 -0
  67. package/dist/connector/web/types.d.ts.map +1 -1
  68. package/dist/connector/web/types.js.map +1 -1
  69. package/dist/constants/continuation.d.ts +8 -0
  70. package/dist/constants/continuation.d.ts.map +1 -1
  71. package/dist/constants/continuation.js +8 -0
  72. package/dist/constants/continuation.js.map +1 -1
  73. package/dist/constants/plugin/index.d.ts +1 -1
  74. package/dist/constants/plugin/index.d.ts.map +1 -1
  75. package/dist/constants/plugin/index.js +1 -1
  76. package/dist/constants/plugin/index.js.map +1 -1
  77. package/dist/manager/agent/lifecycle.d.ts +7 -0
  78. package/dist/manager/agent/lifecycle.d.ts.map +1 -1
  79. package/dist/manager/agent/lifecycle.js +11 -2
  80. package/dist/manager/agent/lifecycle.js.map +1 -1
  81. package/dist/manager/session/turn-recorder.d.ts.map +1 -1
  82. package/dist/manager/session/turn-recorder.js +4 -2
  83. package/dist/manager/session/turn-recorder.js.map +1 -1
  84. package/dist/plugin/index.d.ts +1 -1
  85. package/dist/plugin/index.d.ts.map +1 -1
  86. package/dist/plugin/index.js +1 -1
  87. package/dist/plugin/index.js.map +1 -1
  88. package/dist/plugin/lifecycle.d.ts +6 -0
  89. package/dist/plugin/lifecycle.d.ts.map +1 -1
  90. package/dist/plugin/lifecycle.js +98 -114
  91. package/dist/plugin/lifecycle.js.map +1 -1
  92. package/dist/plugin/shell-hook.d.ts +90 -22
  93. package/dist/plugin/shell-hook.d.ts.map +1 -1
  94. package/dist/plugin/shell-hook.js +434 -41
  95. package/dist/plugin/shell-hook.js.map +1 -1
  96. package/dist/public-runtime.d.ts +4 -1
  97. package/dist/public-runtime.d.ts.map +1 -1
  98. package/dist/public-runtime.js +4 -1
  99. package/dist/public-runtime.js.map +1 -1
  100. package/dist/public-types.d.ts +2 -2
  101. package/dist/public-types.d.ts.map +1 -1
  102. package/dist/runtime/jobs/registry.d.ts +21 -0
  103. package/dist/runtime/jobs/registry.d.ts.map +1 -1
  104. package/dist/runtime/jobs/registry.js +15 -2
  105. package/dist/runtime/jobs/registry.js.map +1 -1
  106. package/dist/runtime/query/executor/tool-call-admission.d.ts +10 -0
  107. package/dist/runtime/query/executor/tool-call-admission.d.ts.map +1 -1
  108. package/dist/runtime/query/executor/tool-call-admission.js +74 -13
  109. package/dist/runtime/query/executor/tool-call-admission.js.map +1 -1
  110. package/dist/runtime/query/executor.d.ts +41 -2
  111. package/dist/runtime/query/executor.d.ts.map +1 -1
  112. package/dist/runtime/query/executor.js +190 -6
  113. package/dist/runtime/query/executor.js.map +1 -1
  114. package/dist/runtime/query/finalize-turn.d.ts +6 -0
  115. package/dist/runtime/query/finalize-turn.d.ts.map +1 -1
  116. package/dist/runtime/query/finalize-turn.js +1 -1
  117. package/dist/runtime/query/finalize-turn.js.map +1 -1
  118. package/dist/runtime/query/index.d.ts +29 -0
  119. package/dist/runtime/query/index.d.ts.map +1 -1
  120. package/dist/runtime/query/index.js +15 -3
  121. package/dist/runtime/query/index.js.map +1 -1
  122. package/dist/runtime/query/iteration/index.d.ts +31 -0
  123. package/dist/runtime/query/iteration/index.d.ts.map +1 -1
  124. package/dist/runtime/query/iteration/index.js +216 -7
  125. package/dist/runtime/query/iteration/index.js.map +1 -1
  126. package/dist/runtime/query/iteration/phases/compaction-breaker.d.ts +58 -0
  127. package/dist/runtime/query/iteration/phases/compaction-breaker.d.ts.map +1 -0
  128. package/dist/runtime/query/iteration/phases/compaction-breaker.js +91 -0
  129. package/dist/runtime/query/iteration/phases/compaction-breaker.js.map +1 -0
  130. package/dist/runtime/query/iteration/phases/compaction.d.ts.map +1 -1
  131. package/dist/runtime/query/iteration/phases/compaction.js +89 -7
  132. package/dist/runtime/query/iteration/phases/compaction.js.map +1 -1
  133. package/dist/runtime/query/iteration/phases/context.d.ts +10 -0
  134. package/dist/runtime/query/iteration/phases/context.d.ts.map +1 -1
  135. package/dist/runtime/query/iteration/phases/context.js.map +1 -1
  136. package/dist/runtime/query/iteration/phases/tool-review.d.ts.map +1 -1
  137. package/dist/runtime/query/iteration/phases/tool-review.js +165 -2
  138. package/dist/runtime/query/iteration/phases/tool-review.js.map +1 -1
  139. package/dist/runtime/query/path-escalation.d.ts +36 -0
  140. package/dist/runtime/query/path-escalation.d.ts.map +1 -0
  141. package/dist/runtime/query/path-escalation.js +184 -0
  142. package/dist/runtime/query/path-escalation.js.map +1 -0
  143. package/dist/runtime/query/plugin-hooks.d.ts.map +1 -1
  144. package/dist/runtime/query/plugin-hooks.js +8 -0
  145. package/dist/runtime/query/plugin-hooks.js.map +1 -1
  146. package/dist/runtime/query/reminders.d.ts +35 -0
  147. package/dist/runtime/query/reminders.d.ts.map +1 -0
  148. package/dist/runtime/query/reminders.js +7 -0
  149. package/dist/runtime/query/reminders.js.map +1 -0
  150. package/dist/runtime/query/resume-pending.d.ts.map +1 -1
  151. package/dist/runtime/query/resume-pending.js +26 -0
  152. package/dist/runtime/query/resume-pending.js.map +1 -1
  153. package/dist/runtime/query/review-policy.d.ts +26 -0
  154. package/dist/runtime/query/review-policy.d.ts.map +1 -1
  155. package/dist/runtime/query/review-policy.js +79 -5
  156. package/dist/runtime/query/review-policy.js.map +1 -1
  157. package/dist/runtime/query/tool-output-budget.d.ts +46 -0
  158. package/dist/runtime/query/tool-output-budget.d.ts.map +1 -1
  159. package/dist/runtime/query/tool-output-budget.js +85 -1
  160. package/dist/runtime/query/tool-output-budget.js.map +1 -1
  161. package/dist/runtime/query/tooling.d.ts +1 -0
  162. package/dist/runtime/query/tooling.d.ts.map +1 -1
  163. package/dist/runtime/query/tooling.js +5 -0
  164. package/dist/runtime/query/tooling.js.map +1 -1
  165. package/dist/session/paths.d.ts +5 -1
  166. package/dist/session/paths.d.ts.map +1 -1
  167. package/dist/session/paths.js +8 -0
  168. package/dist/session/paths.js.map +1 -1
  169. package/dist/store/memory/disk.d.ts.map +1 -1
  170. package/dist/store/memory/disk.js +2 -2
  171. package/dist/store/memory/disk.js.map +1 -1
  172. package/dist/store/memory/markdown.d.ts.map +1 -1
  173. package/dist/store/memory/markdown.js +2 -2
  174. package/dist/store/memory/markdown.js.map +1 -1
  175. package/dist/store/memory/naming.d.ts +9 -0
  176. package/dist/store/memory/naming.d.ts.map +1 -1
  177. package/dist/store/memory/naming.js +12 -0
  178. package/dist/store/memory/naming.js.map +1 -1
  179. package/dist/tools/builtins/bash.d.ts +30 -1
  180. package/dist/tools/builtins/bash.d.ts.map +1 -1
  181. package/dist/tools/builtins/bash.js +170 -26
  182. package/dist/tools/builtins/bash.js.map +1 -1
  183. package/dist/tools/builtins/content-fingerprint.d.ts +2 -0
  184. package/dist/tools/builtins/content-fingerprint.d.ts.map +1 -1
  185. package/dist/tools/builtins/content-fingerprint.js +4 -0
  186. package/dist/tools/builtins/content-fingerprint.js.map +1 -1
  187. package/dist/tools/builtins/edit.d.ts.map +1 -1
  188. package/dist/tools/builtins/edit.js +60 -18
  189. package/dist/tools/builtins/edit.js.map +1 -1
  190. package/dist/tools/builtins/grep.d.ts +8 -1
  191. package/dist/tools/builtins/grep.d.ts.map +1 -1
  192. package/dist/tools/builtins/grep.js +152 -33
  193. package/dist/tools/builtins/grep.js.map +1 -1
  194. package/dist/tools/builtins/read-file.d.ts +1 -0
  195. package/dist/tools/builtins/read-file.d.ts.map +1 -1
  196. package/dist/tools/builtins/read-file.js +44 -5
  197. package/dist/tools/builtins/read-file.js.map +1 -1
  198. package/dist/tools/builtins/read-render.d.ts +52 -0
  199. package/dist/tools/builtins/read-render.d.ts.map +1 -1
  200. package/dist/tools/builtins/read-render.js +143 -0
  201. package/dist/tools/builtins/read-render.js.map +1 -1
  202. package/dist/tools/builtins/web.d.ts +13 -2
  203. package/dist/tools/builtins/web.d.ts.map +1 -1
  204. package/dist/tools/builtins/web.js +225 -32
  205. package/dist/tools/builtins/web.js.map +1 -1
  206. package/dist/tools/coordinator/ask-user-question.d.ts +2 -0
  207. package/dist/tools/coordinator/ask-user-question.d.ts.map +1 -1
  208. package/dist/tools/coordinator/ask-user-question.js +256 -92
  209. package/dist/tools/coordinator/ask-user-question.js.map +1 -1
  210. package/dist/tools/coordinator/question-options.d.ts +1 -0
  211. package/dist/tools/coordinator/question-options.d.ts.map +1 -1
  212. package/dist/tools/coordinator/question-options.js +6 -1
  213. package/dist/tools/coordinator/question-options.js.map +1 -1
  214. package/dist/tools/defineTool.d.ts +4 -1
  215. package/dist/tools/defineTool.d.ts.map +1 -1
  216. package/dist/tools/defineTool.js +6 -1
  217. package/dist/tools/defineTool.js.map +1 -1
  218. package/dist/tools/paths.d.ts +6 -0
  219. package/dist/tools/paths.d.ts.map +1 -1
  220. package/dist/tools/paths.js +1 -1
  221. package/dist/tools/paths.js.map +1 -1
  222. package/dist/types/agent/query.d.ts +3 -0
  223. package/dist/types/agent/query.d.ts.map +1 -1
  224. package/dist/types/errors/catalog.js +1 -1
  225. package/dist/types/errors/catalog.js.map +1 -1
  226. package/dist/types/hitl/index.d.ts +104 -0
  227. package/dist/types/hitl/index.d.ts.map +1 -1
  228. package/dist/types/hitl/index.js.map +1 -1
  229. package/dist/types/message/index.d.ts +1 -1
  230. package/dist/types/message/index.d.ts.map +1 -1
  231. package/dist/types/message/index.js +2 -0
  232. package/dist/types/message/index.js.map +1 -1
  233. package/dist/types/plugin/index.d.ts +93 -19
  234. package/dist/types/plugin/index.d.ts.map +1 -1
  235. package/dist/types/plugin/index.js +3 -0
  236. package/dist/types/plugin/index.js.map +1 -1
  237. package/dist/types/provider/errors.d.ts +19 -0
  238. package/dist/types/provider/errors.d.ts.map +1 -1
  239. package/dist/types/provider/errors.js +24 -0
  240. package/dist/types/provider/errors.js.map +1 -1
  241. package/dist/types/session/events.d.ts +10 -2
  242. package/dist/types/session/events.d.ts.map +1 -1
  243. package/dist/types/session/events.js.map +1 -1
  244. package/dist/types/session/records.d.ts +9 -9
  245. package/dist/types/session/records.d.ts.map +1 -1
  246. package/dist/types/session/records.js +1 -0
  247. package/dist/types/session/records.js.map +1 -1
  248. package/dist/types/session/stop-reason.d.ts +5 -0
  249. package/dist/types/session/stop-reason.d.ts.map +1 -1
  250. package/dist/types/tool/index.d.ts +52 -0
  251. package/dist/types/tool/index.d.ts.map +1 -1
  252. package/dist/types/tool/index.js.map +1 -1
  253. package/package.json +4 -2
  254. package/src/agents/QueryAgent.ts +5 -1
  255. package/src/agents/SupervisorAgent.ts +1 -1
  256. package/src/agents/examples/SupervisorAgent.ts +217 -106
  257. package/src/agents/index.ts +1 -1
  258. package/src/authorization/protected-paths.ts +110 -0
  259. package/src/authorization/readonly-commands.ts +771 -0
  260. package/src/authorization/readonly-flags.ts +196 -0
  261. package/src/authorization/removal.ts +326 -0
  262. package/src/authorization/shell-paths.ts +927 -0
  263. package/src/bridge/acp/update.ts +1 -0
  264. package/src/compaction/context-window.ts +41 -0
  265. package/src/compaction/manual.ts +10 -2
  266. package/src/compaction/plan.ts +11 -2
  267. package/src/compaction/verifier.ts +28 -3
  268. package/src/config/runtime.ts +23 -2
  269. package/src/connector/web/guarded-fetch.ts +26 -0
  270. package/src/connector/web/index.ts +3 -0
  271. package/src/connector/web/page.ts +130 -0
  272. package/src/connector/web/types.ts +47 -0
  273. package/src/constants/continuation.ts +10 -0
  274. package/src/constants/plugin/index.ts +1 -1
  275. package/src/manager/agent/lifecycle.ts +12 -4
  276. package/src/manager/session/turn-recorder.ts +10 -2
  277. package/src/plugin/index.ts +1 -0
  278. package/src/plugin/lifecycle.ts +107 -119
  279. package/src/plugin/shell-hook.ts +477 -43
  280. package/src/public-runtime.ts +8 -0
  281. package/src/public-types.ts +4 -0
  282. package/src/runtime/jobs/registry.ts +39 -2
  283. package/src/runtime/query/executor/tool-call-admission.ts +79 -13
  284. package/src/runtime/query/executor.ts +242 -8
  285. package/src/runtime/query/finalize-turn.ts +7 -1
  286. package/src/runtime/query/index.ts +45 -3
  287. package/src/runtime/query/iteration/index.ts +251 -12
  288. package/src/runtime/query/iteration/phases/compaction-breaker.ts +106 -0
  289. package/src/runtime/query/iteration/phases/compaction.ts +99 -12
  290. package/src/runtime/query/iteration/phases/context.ts +11 -0
  291. package/src/runtime/query/iteration/phases/tool-review.ts +177 -2
  292. package/src/runtime/query/path-escalation.ts +204 -0
  293. package/src/runtime/query/plugin-hooks.ts +8 -0
  294. package/src/runtime/query/reminders.ts +45 -0
  295. package/src/runtime/query/resume-pending.ts +27 -0
  296. package/src/runtime/query/review-policy.ts +106 -5
  297. package/src/runtime/query/tool-output-budget.ts +115 -1
  298. package/src/runtime/query/tooling.ts +6 -0
  299. package/src/session/paths.ts +11 -1
  300. package/src/store/memory/disk.ts +2 -1
  301. package/src/store/memory/markdown.ts +2 -1
  302. package/src/store/memory/naming.ts +13 -0
  303. package/src/tools/builtins/bash.ts +203 -34
  304. package/src/tools/builtins/content-fingerprint.ts +5 -0
  305. package/src/tools/builtins/edit.ts +69 -19
  306. package/src/tools/builtins/grep.ts +159 -38
  307. package/src/tools/builtins/read-file.ts +48 -5
  308. package/src/tools/builtins/read-render.ts +193 -0
  309. package/src/tools/builtins/web.ts +258 -33
  310. package/src/tools/coordinator/ask-user-question.ts +309 -103
  311. package/src/tools/coordinator/question-options.ts +8 -1
  312. package/src/tools/defineTool.ts +11 -2
  313. package/src/tools/paths.ts +1 -1
  314. package/src/types/agent/query.ts +3 -0
  315. package/src/types/errors/catalog.ts +1 -1
  316. package/src/types/hitl/index.ts +104 -0
  317. package/src/types/message/index.ts +2 -0
  318. package/src/types/plugin/index.ts +101 -18
  319. package/src/types/provider/errors.ts +33 -0
  320. package/src/types/session/events.ts +10 -2
  321. package/src/types/session/records.ts +1 -0
  322. package/src/types/session/stop-reason.ts +5 -0
  323. package/src/types/tool/index.ts +53 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,105 @@
1
1
  # Changelog
2
2
 
3
+ ## 52.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - 5258c05: The `bash` tool no longer kills a foreground command that outruns its `timeout` when the turn has a background job registry (the CLI session, and any host that passes `QueryParams.backgroundJobs`). Before, the command was stopped and the call failed with `timedOut`. Now the same process is moved to a background job: the call succeeds, returns the output so far and a line naming the job, and the command keeps running until it ends or is stopped. The model awaits it with `wait_for_job`, reads it with `job` and stops it with `job` action `kill`, and is told when it ends. A host that relied on the timeout to stop a runaway command must now set `NAMZU_DISABLE_BACKGROUND_TASKS=1` (also refuses `run_in_background`) to keep the old kill, or stop the job itself. Unchanged: no registry, a sandboxed turn, a sandbox escape, a command that only runs `sleep`, and an owner at its job limit all still kill at the timeout. New and optional: `BackgroundJobRegistryRef.adopt`, `StartJobParams.initialOutput` and `hostOutput`, and the `onTimeout` option and `backgroundedJobId` result of `execHostShell`.
8
+ - 5258c05: The default point at which older history is summarised changes. `compactionConfig.triggerThreshold` no longer defaults to `0.7`; it is optional, and when absent the kernel derives the trigger as the reference terminal does: the window, less room for the reply (the model's output cap, at most 20,000 tokens), less a 13,000-token buffer. That is 167,000 tokens (83.5%) of a 200,000-token window and 967,000 (96.7%) of a 1,000,000-token one, and never less than half the window. A host with long contexts compacts later than before, so a conversation keeps more of its history and runs closer to the provider's limit.
9
+
10
+ The type of `triggerThreshold` is now `number | undefined` (it was `number` after parsing), so code that reads it from a parsed `CompactionConfig` must handle `undefined`; `resolveTriggerThreshold(configured, windowTokens, maxOutputTokens?)` is exported and returns the fraction actually used.
11
+
12
+ To keep the earlier behaviour, pass `triggerThreshold: 0.7` in `compactionConfig`. An explicit value is used exactly as before.
13
+
14
+ The CLI no longer sets 0.7 and takes the derived trigger; its footer meter and `/context details` read the same function.
15
+
16
+ - 5258c05: The file tools follow the reference terminal's rules, and four defaults change.
17
+
18
+ **What breaks, and what to do:**
19
+
20
+ - `edit` now refuses a file the session has not read (`<path> has not been read yet`). A host or test that edits without reading first gets a failed result and nothing is written. Read the file with `read` first. There is no opt-out. A host that supplies no `fileReadTracker` on the tool context is not affected, because there is nothing to ask. `write` already refused an unread existing file.
21
+ - `edit` no longer refuses every file that changed since the read. When the content changed, an edit made only of text replacements is applied if `old_string` still matches the current content uniquely (or, with `replace_all`, still matches); only then is it refused as stale. An insertion by line number is still refused after any change. Code that relied on a still-matching edit being refused after an unrelated change must now check the file itself.
22
+ - `grep` defaults to `output_mode: "files_with_matches"`: a list of paths, newest first, not matching lines. Pass `output_mode: "content"` to get the old lines back. `max_results` (was 100 matching lines) is deprecated in favour of `head_limit`, whose default is 250 entries and which counts output lines in `content` mode; `max_results` still sets it when `head_limit` is absent. `grep` also gains `count` mode, `offset`, and replaces a line over 500 characters with a notice.
23
+ - `read` refuses a file over 256 KiB when no `readRange` or `limit` is given, and cuts a result over about 25,000 tokens to a first page (or refuses, for a windowed read), where it used to return up to 2000 lines of any size. Read part of the file, or pass `allow_large: true` (four times the caps) for one call. `NAMZU_FILE_READ_MAX_OUTPUT_TOKENS` in the turn environment changes the token cap. `read` is exempt from the default 40,000-character per-result cap, because these caps bound it; a host that sets `maxToolOutputChars` explicitly still bounds it.
24
+ - The combined text of one assistant message's tool results is capped at 200,000 characters (`maxToolOutputCharsPerMessage` on `QueryParams` and `QueryAgentConfig`). Past it, the largest results are replaced, largest first, by a 2,000-character preview that names where the full text was kept. Set `maxToolOutputCharsPerMessage: 0` to keep the old behaviour of no combined bound.
25
+
26
+ New, not breaking: `ToolDefinition.selfLimitingOutput` and the matching `defineTool` option mark a tool that bounds its own output.
27
+
28
+ - 5258c05: Shell hooks can answer with JSON, and hooks gain three events and three options.
29
+
30
+ New: a hook that exits `0` with a JSON object on stdout can refuse (`decision: "block"`), stop the turn (`continue: false`), approve or ask about a tool call (`hookSpecificOutput.permissionDecision`), rewrite a tool call's input (`updatedInput`, validated like any model-supplied input) and give the model context (`additionalContext`). New events `post_tool_use_failure`, `permission_request` and `notification`; new entry options `if` (a permission-rule filter such as `Bash(git push *)`), `once` and `statusMessage`; `matcher` accepts a regular expression. A hook's `allow` never covers a sandbox escape, a path outside the roots, a call a tool always asks about, an explicit review or a destructive call, and a `deny` always wins. `@namzu/sdk` adds `shellHookIfMatches`, the `PluginHookPermission`, `PluginHookNotes` and `PluginNotificationInfo` types, optional `context`/`halt`/`notice`/`permission` fields on the `continue`, `skip` and `modify` hook results, `hookGranted` on an `approve_tools` decision, `ToolCallSummary.hookPermission`/`hookGrant`, `PluginHookDefinition.statusMessage`, a `statusMessage` on `plugin_hook_executing`, and the runtime-context kind `hook-feedback` (a host that switches exhaustively over `PluginHookEvent` or `RuntimeContextMessageKind` needs a case for the new members).
31
+
32
+ Breaking, in the order a hook author meets them:
33
+
34
+ - **Hooks of one event now run in parallel.** They used to run one after another (`post_*` in reverse registration order), each seeing the previous hook's `modify`, and a refusal stopped the chain. Now all of an event's hooks start together on the same original context and nothing short-circuits. Their answers combine as the reference terminal's do: a refusal beats `ask`, which beats `allow`; of several rewrites (`modify`, `replace`) the last in priority/registration order wins and no hook sees another's rewrite; every `context` is kept and every `halt` honoured. A hook that relied on running after another (a formatter before a linter) must be one script or one hook. Plugins that registered with `priority` still get the first refusal quoted in priority order, but priority no longer sets who starts first.
35
+ - **The default hook deadline is ten minutes, not 30 s** (`DEFAULT_SHELL_HOOK_TIMEOUT_MS`, and `HOOK_TIMEOUT_MS` for the lifecycle manager's own per-hook limit, which was 5 s). To keep the old limit set `timeoutMs: 30000` on the hook (shell hooks), or `hookTimeoutMs` on the plugin manager or in the CLI's `plugins` config.
36
+ - **Exit code `2` now acts** where it used to be logged and ignored: on `turn_end` and `subagent_stop` it keeps the model working, with stderr as its next message (the turn's iteration limit still ends a hook that never relents); on `pre_compact` it cancels a compaction the context threshold asked for (never one the provider forced); on `post_tool_use` the stderr is shown to the model beside that call's result. A hook that exits `2` on these events by habit and meant "ignore" should exit `1`, which is still logged and ignored.
37
+ - **JSON on stdout is now read.** A hook that exits `0` and prints a JSON object starting with `{` is taken as an answer. A hook that printed such text on purpose and wants it left alone should not start its output with `{`.
38
+
39
+ `@namzu/cli` is major for the same reasons: its `hooks:` config key is where these behaviours are reached, and a configured hook behaves differently for the same input.
40
+
41
+ - 5258c05: `web_fetch` now works like the reference terminal's WebFetch, which changes its input and its default output.
42
+
43
+ What breaks, and what to do:
44
+
45
+ - `prompt` is required. A caller that sent only `url` now gets an input error; send the question you want answered from the page. `offset` (optional) reads on through a page too long for one call.
46
+ - The default output changed. It used to be the response body as text. It is now the answer to `prompt` when the host supplies `context.web.extract` (a `WebContentExtractor`, a new optional member of `ToolContext.web`), and otherwise the page as markdown, in both cases cut at 100 000 characters per call; a non-2xx status reports the status instead of its body, and an HTML page is converted to markdown with `turndown` (a new dependency, loaded on first use). A host that needs the raw body can fetch through `context.web.fetch` itself.
47
+ - A redirect to another host is no longer followed. `web_fetch` asks the provider for `redirects: 'same-host'` (new optional `WebFetchRequest.redirects`, default `'follow'` as before), and the tool returns a notice with the target for the model to fetch deliberately. A custom provider that ignores the field still follows every redirect.
48
+ - Fetched pages are cached for 15 minutes per URL, per fetch provider. URLs longer than 2000 characters, with credentials, or with a host that has no dot are refused before any request.
49
+
50
+ In the CLI, `web_fetch` (with `web.fetch: true`) answers the prompt with the small model (see `smallModel`), reads up to 10 MiB per page, and counts that request on the turn's token ledger; if the small model cannot answer, the model gets the page as markdown.
51
+
52
+ There is no switch in the CLI for the old output of `web_fetch`; a caller that needs the raw body fetches it another way (for example `bash` with `curl`).
53
+
54
+ ### Minor Changes
55
+
56
+ - 5258c05: `ask_user_question` can ask up to four related questions in one call and returns one answer per question. The model-facing input is now `{ questions: [...] }`; the older single-question input (`question`, `options`, … at the top level) is still accepted as a batch of one, so nothing that sends it needs to change. A host that does not know about batches keeps working: `UserQuestionData` gains an optional `questions` list whose first entry its existing fields mirror, so it shows and answers the first question and the rest read as not answered. A host that does know sends `answer_question.answers` with one `{ questionId, selectedOptionIds, freeText? }` per question it has an answer for (a missing entry means not answered); the question ids are `<tool_use_id>#<index>`. An option can carry an optional `preview` for a host to show beside the list. Question texts and headers must be unique within one call.
57
+ - 5258c05: A host can now feed a turn hidden reminders, and give plan mode one writable file. Everything is opt-in; a host that passes none of it sees no change. `QueryParams.reminders` takes a `ReminderSource`, which the kernel calls before every model request of the turn (except the closing one a limit forces) with the session, turn, iteration and the conversation so far; each text it returns is appended as a user-role runtime message of the new kind `'reminder'` (`isReminderMessage` recognises it), kept in the durable history and never counted as operator input, so a source can read the history to set its own cadence. `ReviewPolicyOptions.planModeWrite` names the one call `plan` mode lets through (outside the roots, overwriting, and without a question); left out, plan mode refuses every change as before, and the option does nothing in any other mode. `SessionPaths.plans()` and `planFile()` give a session's plan directory and its `plans/plan.md`. `RUNTIME_CONTEXT_MESSAGE_KINDS` gains `'reminder'`, so a `switch` over `RuntimeContextMessageKind` with no default branch now needs a case for it.
58
+ - 5258c05: Context limits follow Claude Code, and every new rule that stops something is opt-in in the SDK. Nothing a host gets without asking changes in this entry.
59
+
60
+ SDK, all additive:
61
+
62
+ - `query({ maxOutputContinuations })` caps the nudges after a reply is cut at its output limit; past the cap the turn stops with the new stop reason `output_limit` (a host that switches exhaustively on `StopReason` should handle it; it only occurs with the option set). Unset keeps today's behaviour (no cap beyond `maxIterations`). A cut during reasoning, before any text or tool call, now gets its own "think more briefly" nudge instead of being treated as a finished reply.
63
+ - `compactionConfig.circuitBreaker: true` switches automatic compaction off for the turn after three failed passes, and stops the turn after three compactions each followed by a refill within three iterations. `compaction_failed` gains the causes `breaker_open` and `refilling`; a host that switches exhaustively on `cause` should handle them (they only occur with the option on).
64
+ - A provider failure saying "input length and `max_tokens` exceed context limit: A + B > C" is retried once with `max_tokens = C - A - 1000` (not below 3,000, and only when smaller than the cap just tried). This is on for everyone: it turns a failure into a retry and changes no successful call.
65
+ - `compactNow`, `compactRegion` and `compactSession` accept `instructions`, the person's words about what the summary must keep; they run the verifier model step even when `llmVerification` is off.
66
+
67
+ CLI:
68
+
69
+ - The footer shows `N% until auto-compact` once the context is within 20,000 tokens of the summary point, with the read-out counted against the real trigger.
70
+ - `/compact <text>` steers the summary.
71
+ - The CLI turns on `maxOutputContinuations: 3` and `circuitBreaker`, so a looping model or a window that refills stops the turn with a one-line explanation.
72
+
73
+ - 5258c05: Read-only shell commands no longer ask. `ls`, `cat`, `head`, `wc`, `git status`, `git diff`, `git log`, `git show` and the rest of the reference terminal's vetted list run without a prompt in `prompt` and `accept-edits`, are allowed in `plan`, and run beside other read-only tool calls instead of one at a time. Anything the list does not vouch for still asks: a write redirection, a `$variable`, a substitution, a subshell, a here-document, a glob on a command that is not a plain reader, `cd` next to `git`, and any git flag outside the vetted table (`--output`, `-c`, `--exec-path`, `--config-env`, `fetch`, `commit`, branch or tag creation).
74
+
75
+ What changes for you: a turn that used to stop at `git status` now runs it. A read-only command that reads outside the working directory and added directories is still asked about, and so are protected paths and catastrophic removals. If you embed the SDK and rely on `bash` never being exempt from review, a host that wants the old behaviour passes its own `isReviewExempt` that returns false for `bash`.
76
+
77
+ New in the SDK: the builtin `bash` tool answers `isReadOnly` and `isConcurrencySafe` per call from the command line, and `DefineToolOptions.concurrencySafe` may be a function of the input, as `readOnly` already was.
78
+
79
+ - 5258c05: "Yes, and don't ask again" now lasts. The answer used to hold for the session only; it is now saved in `namzu.config.local.json` next to the project's `namzu.config.json`, and the next session starts with it. The file is a new config layer over the project file, git-ignored (Namzu adds `**/namzu.config.local.json` to your global git ignore file the first time, unless git already ignores it), and read only where the project file is.
80
+
81
+ A command is remembered as its first two words and a star when the second word is a plain subcommand (`git commit *`, `npm run *`), and as the exact command otherwise. Shells, `env`, `xargs`, `sudo`, `timeout` and the other wrappers are never remembered as a prefix. A compound line gets one rule per command, up to five. The answer still never covers a sandbox escape, a path outside the roots, a protected path, a catastrophic removal, a rule's `ask` or a destructive call, and a deny in any layer beats it. To forget an answer, delete its line from `namzu.config.local.json`.
82
+
83
+ `namzu.config.local.json` is added to the SDK's protected paths, so a model write to it is asked about in every mode.
84
+
85
+ - 5258c05: Three safety floors follow the reference terminal, so a turn in `auto` (`--yolo`) now stops and asks where it used to run silently. No exported name, option or default value changes; `ToolCallEscalation` gains two optional fields (`protectedPaths`, `dangerousRemoval`).
86
+
87
+ What changes for you:
88
+
89
+ - **Writes to protected paths are asked every time, in every mode.** `write`, `edit`, a shell redirection (`>`, `>>`, `tee`) and the operands of `cp`, `mv`, `touch`, `mkdir`, `rm`, `rmdir` and `sed -i` are asked about when they land in `.git`, `.vscode`, `.idea`, `.husky`, `.cargo`, `.devcontainer`, `.yarn`, `.mvn`, `.config/git`, `.namzu`, or on a shell startup file, `.gitconfig`, `.envrc`, `.npmrc`, `namzu.config.json` and the other names in `authorization/protected-paths.ts`. A rule that allows the tool, `auto`, and an earlier "approve all" do not cover it. With nobody to ask (`namzu exec`, a drained turn, a scheduled run) the batch is refused. To make a change there, make it yourself, or answer the prompt.
90
+ - **A catastrophic `rm` or `rmdir` is asked every time.** The check reads the targets whatever the flags (`-fr`, `-r -f`, `--recursive --force`): `/`, a top-level directory, `~`, `$HOME`, `..`, the working directory or a parent of it, a glob across directories, `"$VAR/"` (empty means `/`). The old `rm -rf /` pattern in the dangerous-command floor is kept, so that spelling is still denied outright rather than asked.
91
+ - **A shell command's own paths are checked against the working directory.** On a turn that reviews outside paths (the CLI does), `cat /etc/passwd`, `ls ~/.ssh` and `echo x > ~/.profile` are now the same approval request a `read` outside the project is, instead of passing because `bash` declares no path argument.
92
+
93
+ If you embed the SDK with your own resume handler, read `ToolCallSummary.escalation.protectedPaths` and `.dangerousRemoval` the way you read `outsidePaths`; `createReviewHandler` does it for you. If your turn runs `bash` with no one to ask and relies on `auto`, expect those calls to be refused with a reason the model can act on.
94
+
95
+ - 5258c05: The `bash` tool now clamps a `timeout` above its maximum (`NAMZU_BASH_MAX_TIMEOUT_MS`, ten minutes by default) to that maximum instead of refusing the call. The command runs, and a timeout message reports the deadline that was applied. Nothing breaks for a caller that stayed under the maximum; a host that relied on the refusal to detect an over-long request should check `timeout` itself before calling.
96
+ - 5258c05: `SupervisorAgent.resume(input, config, { turnId, checkpointId? }, listener?)` continues a turn that ended in `turn_paused`: the same turn id, from the chosen checkpoint (default the newest), with the context folded from the session log. Tool calls that already ran are not repeated. It rebuilds the delegation, budget and scheduler wiring the way `run` does and emits the same `turn_paused` and terminal events, so a host can bound how often it resumes. Pass the `sessionLog` (and `checkpointStore`, if it is not the one beside the log) the turn was written to. It rejects with an `invalid_config` `NamzuError` when the turn already ended, has no such checkpoint or waits on a decision (pass `pendingDecision`). `SupervisorResumeTarget` is exported. Nothing changes for existing callers.
97
+
98
+ ### Patch Changes
99
+
100
+ - 5258c05: Static file tracers (`@vercel/nft`, which Next.js standalone output uses) no longer list the repository's `.json` and `.md` files as runtime assets of the SDK. The two memory stores built entry paths in a form the tracer read as a wildcard; they now build them so it has nothing to expand. The files the stores read and write are unchanged, so nothing needs doing on upgrade, and a host that added `research/**` or `docs/**` tracer ignores for this can remove them.
101
+ - 5258c05: The error returned when an agent delegates past the depth limit now ends with an instruction to do the task directly with the agent's own tools instead of delegating it again. The text still begins `Max task depth N exceeded (current: D).`; the trailing sentence about resource exhaustion is replaced. A host that matches on the old trailing sentence should match on the prefix.
102
+
3
103
  ## 51.1.0
4
104
 
5
105
  ### Minor Changes
@@ -1 +1 @@
1
- {"version":3,"file":"QueryAgent.d.ts","sourceRoot":"","sources":["../../src/agents/QueryAgent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAEX,aAAa,EACb,iBAAiB,EACjB,gBAAgB,EAChB,gBAAgB,EAChB,MAAM,yBAAyB,CAAA;AAGhC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAA;AACtE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAuIlD,qBAAa,UAAW,SAAQ,aAAa,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;IAChF,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;gBAET,QAAQ,EAAE,IAAI,CAAC,aAAa,EAAE,cAAc,CAAC,EAAE,GAAG,CAAC,EAAE,MAAM;IAiBvE;;;;;;;;OAQG;IACG,GAAG,CACR,KAAK,EAAE,iBAAiB,EACxB,MAAM,EAAE,gBAAgB,EACxB,QAAQ,CAAC,EAAE,oBAAoB,GAC7B,OAAO,CAAC,gBAAgB,CAAC;YAmBd,YAAY;IAmEX,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;CAGtC"}
1
+ {"version":3,"file":"QueryAgent.d.ts","sourceRoot":"","sources":["../../src/agents/QueryAgent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAEX,aAAa,EACb,iBAAiB,EACjB,gBAAgB,EAChB,gBAAgB,EAChB,MAAM,yBAAyB,CAAA;AAGhC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAA;AACtE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AA2IlD,qBAAa,UAAW,SAAQ,aAAa,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;IAChF,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;gBAET,QAAQ,EAAE,IAAI,CAAC,aAAa,EAAE,cAAc,CAAC,EAAE,GAAG,CAAC,EAAE,MAAM;IAiBvE;;;;;;;;OAQG;IACG,GAAG,CACR,KAAK,EAAE,iBAAiB,EACxB,MAAM,EAAE,gBAAgB,EACxB,QAAQ,CAAC,EAAE,oBAAoB,GAC7B,OAAO,CAAC,gBAAgB,CAAC;YAmBd,YAAY;IAmEX,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;CAGtC"}
@@ -63,7 +63,9 @@ const configRoutes = {
63
63
  toolTimeoutMs: 'query',
64
64
  toolRetryBackoff: 'query',
65
65
  maxToolConcurrency: 'query',
66
+ maxOutputContinuations: 'query',
66
67
  maxToolOutputChars: 'query',
68
+ maxToolOutputCharsPerMessage: 'query',
67
69
  retainedToolPreviewChars: 'query',
68
70
  maxToolContentBytes: 'query',
69
71
  repairToolCall: 'query',
@@ -1 +1 @@
1
- {"version":3,"file":"QueryAgent.js","sourceRoot":"","sources":["../../src/agents/QueryAgent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAA;AAYtD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AAExD,oFAAoF;AACpF,MAAM,YAAY,GAAG;IACpB,KAAK,EAAE,MAAM;IACb,WAAW,EAAE,MAAM;IACnB,MAAM,EAAE,OAAO;IACf,SAAS,EAAE,MAAM;IACjB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AAC,QAAQ;YACvB,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,gBAAgB,EAAE,IAAI,CAAC,gBAAgB;YACvC,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,aAAa;SACb,CAAA;IACF,CAAC;IAEQ,KAAK,CAAC,MAAM;QACpB,IAAI,CAAC,eAAe,CAAC,KAAK,EAAE,CAAA;IAC7B,CAAC;CACD"}
@@ -1,4 +1,4 @@
1
1
  /** @deprecated Example agent. Define application agents with the SDK Agent contract. */
2
- export { SupervisorAgent } from './examples/SupervisorAgent.js';
2
+ export { SupervisorAgent, type SupervisorResumeTarget } from './examples/SupervisorAgent.js';
3
3
  export { synthesizeTaskResults, countCompletedTasks } from './examples/SupervisorAgent.js';
4
4
  //# sourceMappingURL=SupervisorAgent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SupervisorAgent.d.ts","sourceRoot":"","sources":["../../src/agents/SupervisorAgent.ts"],"names":[],"mappings":"AAAA,wFAAwF;AACxF,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAC/D,OAAO,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAA"}
1
+ {"version":3,"file":"SupervisorAgent.d.ts","sourceRoot":"","sources":["../../src/agents/SupervisorAgent.ts"],"names":[],"mappings":"AAAA,wFAAwF;AACxF,OAAO,EAAE,eAAe,EAAE,KAAK,sBAAsB,EAAE,MAAM,+BAA+B,CAAA;AAC5F,OAAO,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"SupervisorAgent.js","sourceRoot":"","sources":["../../src/agents/SupervisorAgent.ts"],"names":[],"mappings":"AAAA,wFAAwF;AACxF,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAC/D,OAAO,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAA"}
1
+ {"version":3,"file":"SupervisorAgent.js","sourceRoot":"","sources":["../../src/agents/SupervisorAgent.ts"],"names":[],"mappings":"AAAA,wFAAwF;AACxF,OAAO,EAAE,eAAe,EAA+B,MAAM,+BAA+B,CAAA;AAC5F,OAAO,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAA"}
@@ -1,7 +1,9 @@
1
1
  import type { AgentInput, AgentMetadata, AgentTaskResult, SupervisorAgentConfig, SupervisorAgentResult } from '../../types/agent/index.js';
2
2
  import type { TaskHandle } from '../../types/agent/scheduler.js';
3
+ import { type HITLResumeDecision } from '../../types/hitl/index.js';
3
4
  import type { SessionId, TurnId } from '../../types/ids/index.js';
4
5
  import type { SessionEventListener } from '../../types/session/events.js';
6
+ import type { TurnState } from '../../types/session/index.js';
5
7
  import type { Logger } from '../../utils/logger.js';
6
8
  import { AbstractAgent } from '../AbstractAgent.js';
7
9
  /**
@@ -26,6 +28,23 @@ export declare function synthesizeTaskResults(taskHandles: readonly TaskHandle[]
26
28
  }, now?: number): AgentTaskResult[];
27
29
  /** Count only the task results that genuinely completed. */
28
30
  export declare function countCompletedTasks(taskResults: readonly AgentTaskResult[]): number;
31
+ /**
32
+ * Which paused turn {@link SupervisorAgent.resume} continues.
33
+ */
34
+ export interface SupervisorResumeTarget {
35
+ /** The turn that ended in `turn_paused`. It keeps this id. */
36
+ readonly turnId: TurnId;
37
+ /**
38
+ * A specific checkpoint of that turn. Absent means the one an open
39
+ * decision references, else the newest, as `resumeSession` chooses.
40
+ */
41
+ readonly checkpointId?: TurnState['checkpointId'];
42
+ /**
43
+ * The answer to a park the checkpoint is waiting on. Without it a turn
44
+ * parked on a decision is refused rather than stepped past.
45
+ */
46
+ readonly pendingDecision?: HITLResumeDecision;
47
+ }
29
48
  /** @deprecated Example of supervised delegation; hosts can compose their own agent. */
30
49
  export declare class SupervisorAgent extends AbstractAgent<SupervisorAgentConfig, SupervisorAgentResult> {
31
50
  readonly type: "supervisor";
@@ -40,6 +59,29 @@ export declare class SupervisorAgent extends AbstractAgent<SupervisorAgentConfig
40
59
  * A host that wants parallelism constructs a second instance.
41
60
  */
42
61
  run(input: AgentInput, config: SupervisorAgentConfig, listener?: SessionEventListener): Promise<SupervisorAgentResult>;
62
+ /**
63
+ * Continue a turn that ended in `turn_paused`: the SAME `turnId`, from the
64
+ * selected checkpoint, with the context folded from the session log.
65
+ *
66
+ * Takes what `run` takes and rebuilds the same delegation, budget and
67
+ * scheduler wiring for the turn, then hands the turn to `resumeSession`.
68
+ * `input.messages` is ignored: the transcript is the log's. `config` must
69
+ * carry the `sessionLog` (and `checkpointStore`, if it is not the one
70
+ * beside the log) the turn was written to.
71
+ *
72
+ * Emits the same `turn_paused` and terminal events as `run`, so a host
73
+ * bounds its resumes by counting `turn_paused`. Rejects with a
74
+ * `NamzuError` (`invalid_config`) when the turn is unknown, already
75
+ * ended, has no checkpoint, or waits on a decision `target` does not
76
+ * answer.
77
+ */
78
+ resume(input: AgentInput, config: SupervisorAgentConfig, target: SupervisorResumeTarget, listener?: SessionEventListener): Promise<SupervisorAgentResult>;
43
79
  private runExclusive;
80
+ /**
81
+ * The resumed counterpart of `drainQuery`: same params, so the wiring is
82
+ * the one a fresh turn gets, handed to `resumeSession` rather than a
83
+ * second copy of its machinery.
84
+ */
85
+ private resumeTurn;
44
86
  }
45
87
  //# sourceMappingURL=SupervisorAgent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SupervisorAgent.d.ts","sourceRoot":"","sources":["../../../src/agents/examples/SupervisorAgent.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EACX,UAAU,EACV,aAAa,EACb,eAAe,EACf,qBAAqB,EACrB,qBAAqB,EACrB,MAAM,4BAA4B,CAAA;AACnC,OAAO,KAAK,EAAE,UAAU,EAAiB,MAAM,gCAAgC,CAAA;AAE/E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAA;AAGjE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,+BA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;IACG,MAAM,CACX,KAAK,EAAE,UAAU,EACjB,MAAM,EAAE,qBAAqB,EAC7B,MAAM,EAAE,sBAAsB,EAC9B,QAAQ,CAAC,EAAE,oBAAoB,GAC7B,OAAO,CAAC,qBAAqB,CAAC;YAMnB,YAAY;IAkX1B;;;;OAIG;YACW,UAAU;CA+CxB"}
@@ -1,11 +1,14 @@
1
1
  import { EMPTY_TOKEN_USAGE } from '../../constants/limits.js';
2
2
  import { drainQuery } from '../../runtime/query/index.js';
3
3
  import { PendingAnswers, QuestionParkBinding } from '../../runtime/query/question-park.js';
4
+ import { resumeSession } from '../../runtime/query/resume-session.js';
4
5
  import { CompletionInbox } from '../../scheduler/completion-inbox.js';
5
6
  import { LocalTaskScheduler } from '../../scheduler/local.js';
6
7
  import { ASK_USER_QUESTION_TOOL_NAME, buildCoordinatorTools, } from '../../tools/coordinator/index.js';
7
8
  import { toolset } from '../../toolsets/toolset.js';
8
9
  import { deferred, filtered } from '../../toolsets/wrappers.js';
10
+ import { NamzuError } from '../../types/errors/index.js';
11
+ import { autoApproveHandler } from '../../types/hitl/index.js';
9
12
  import { deriveChildState } from '../../types/invocation/index.js';
10
13
  import { ZERO_COST } from '../../utils/cost.js';
11
14
  import { AbstractAgent } from '../AbstractAgent.js';
@@ -74,13 +77,38 @@ export class SupervisorAgent extends AbstractAgent {
74
77
  async run(input, config, listener) {
75
78
  return await this.underIdempotencyKey(config.idempotencyKey, () => this.underInvocationLock(() => this.runExclusive(input, config, listener)));
76
79
  }
77
- async runExclusive(input, config, listener) {
80
+ /**
81
+ * Continue a turn that ended in `turn_paused`: the SAME `turnId`, from the
82
+ * selected checkpoint, with the context folded from the session log.
83
+ *
84
+ * Takes what `run` takes and rebuilds the same delegation, budget and
85
+ * scheduler wiring for the turn, then hands the turn to `resumeSession`.
86
+ * `input.messages` is ignored: the transcript is the log's. `config` must
87
+ * carry the `sessionLog` (and `checkpointStore`, if it is not the one
88
+ * beside the log) the turn was written to.
89
+ *
90
+ * Emits the same `turn_paused` and terminal events as `run`, so a host
91
+ * bounds its resumes by counting `turn_paused`. Rejects with a
92
+ * `NamzuError` (`invalid_config`) when the turn is unknown, already
93
+ * ended, has no checkpoint, or waits on a decision `target` does not
94
+ * answer.
95
+ */
96
+ async resume(input, config, target, listener) {
97
+ return await this.underIdempotencyKey(config.idempotencyKey, () => this.underInvocationLock(() => this.runExclusive(input, config, listener, target)));
98
+ }
99
+ async runExclusive(input, config, listener, resume) {
78
100
  const startTime = Date.now();
79
101
  if (!config.sessionId || !config.topicId || !config.projectId || !config.tenantId) {
80
102
  throw new Error('SupervisorAgent requires sessionId, topicId, projectId, and tenantId in config (session-hierarchy.md §12.1).');
81
103
  }
82
104
  const sessionId = config.sessionId;
83
- const turnId = this.createTurnId();
105
+ if (resume && !config.sessionLog) {
106
+ throw new NamzuError({
107
+ code: 'invalid_config',
108
+ message: 'SupervisorAgent.resume requires config.sessionLog: the log the paused turn was written to.',
109
+ });
110
+ }
111
+ const turnId = resume?.turnId ?? this.createTurnId();
84
112
  this.bindTurn(sessionId, turnId, config.logger);
85
113
  const topicId = config.topicId;
86
114
  const projectId = config.projectId;
@@ -263,7 +291,7 @@ export class SupervisorAgent extends AbstractAgent {
263
291
  deferred(toolset('supervisor:coordinator:deferred', coordinatorDeferredTools)),
264
292
  ];
265
293
  const childInvocationState = deriveChildState(config.invocationState ?? { tenantId }, this.metadata.id);
266
- const turn = await drainQuery({
294
+ const queryParams = {
267
295
  systemPrompt: config.systemPrompt,
268
296
  skills: config.skills,
269
297
  provider: config.provider,
@@ -367,7 +395,10 @@ export class SupervisorAgent extends AbstractAgent {
367
395
  ...(config.paths ? { paths: config.paths } : {}),
368
396
  ...(config.sessionLog ? { sessionLog: config.sessionLog } : {}),
369
397
  ...(config.checkpointStore ? { checkpointStore: config.checkpointStore } : {}),
370
- }, listener);
398
+ };
399
+ const turn = resume
400
+ ? await this.resumeTurn(queryParams, config, resume, listener)
401
+ : await drainQuery(queryParams, listener);
371
402
  const taskHandles = gateway.listTasks();
372
403
  const taskResults = synthesizeTaskResults(taskHandles, {
373
404
  sessionId,
@@ -403,5 +434,50 @@ export class SupervisorAgent extends AbstractAgent {
403
434
  completionInbox.close();
404
435
  }
405
436
  }
437
+ /**
438
+ * The resumed counterpart of `drainQuery`: same params, so the wiring is
439
+ * the one a fresh turn gets, handed to `resumeSession` rather than a
440
+ * second copy of its machinery.
441
+ */
442
+ async resumeTurn(queryParams, config, resume, listener) {
443
+ const { messages: _messages, turnId: _turnId, ...rest } = queryParams;
444
+ const sessionLog = config.sessionLog;
445
+ if (!sessionLog ||
446
+ !config.sessionId ||
447
+ !config.topicId ||
448
+ !config.projectId ||
449
+ !config.tenantId) {
450
+ throw new NamzuError({
451
+ code: 'invalid_config',
452
+ message: 'SupervisorAgent.resume requires config.sessionLog.',
453
+ });
454
+ }
455
+ const outcome = await resumeSession({
456
+ ...rest,
457
+ resumeHandler: rest.resumeHandler ?? autoApproveHandler,
458
+ scope: {
459
+ tenantId: config.tenantId,
460
+ projectId: config.projectId,
461
+ topicId: config.topicId,
462
+ sessionId: config.sessionId,
463
+ turnId: resume.turnId,
464
+ ...(config.parentSessionId ? { parentSessionId: config.parentSessionId } : {}),
465
+ ...(config.parentTurnId ? { parentTurnId: config.parentTurnId } : {}),
466
+ },
467
+ sessionLog,
468
+ ...(resume.checkpointId ? { checkpointId: resume.checkpointId } : {}),
469
+ ...(resume.pendingDecision ? { pendingDecision: resume.pendingDecision } : {}),
470
+ ...(listener ? { listener } : {}),
471
+ });
472
+ if (outcome.resumed)
473
+ return outcome.turn;
474
+ throw new NamzuError({
475
+ code: 'invalid_config',
476
+ message: outcome.reason === 'no-checkpoint'
477
+ ? `Turn ${resume.turnId} has no checkpoint${resume.checkpointId ? ` ${resume.checkpointId}` : ''} to resume.`
478
+ : `Turn ${resume.turnId} is waiting on a decision; pass resume.pendingDecision.`,
479
+ details: { turnId: resume.turnId, reason: outcome.reason },
480
+ });
481
+ }
406
482
  }
407
483
  //# sourceMappingURL=SupervisorAgent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SupervisorAgent.js","sourceRoot":"","sources":["../../../src/agents/examples/SupervisorAgent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAC7D,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAA;AACzD,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAA;AAC1F,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAA;AACrE,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAA;AAC7D,OAAO,EACN,2BAA2B,EAC3B,qBAAqB,GACrB,MAAM,kCAAkC,CAAA;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAA;AACnD,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAA;AAW/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAA;AAIlE,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAE/C,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAA;AACjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAA;AAEnD;;;;;;;;;;;;;;;GAeG;AACH,MAAM,UAAU,qBAAqB,CACpC,WAAkC,EAClC,IAAgE,EAChE,MAAc,IAAI,CAAC,GAAG,EAAE;IAExB,OAAO,WAAW,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC;QAC1C,OAAO,EAAE,MAAM,CAAC,OAAO;QACvB,MAAM,EAAE,MAAM,CAAC,MAAM,IAAI;YACxB,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,MAAM,EAAE,QAAiB;YACzB,KAAK,EA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AM,EAAE,MAAM,EAAE,OAAO,CAAC,MAAM,EAAE;SAC1D,CAAC,CAAA;IACH,CAAC;CACD"}
@@ -3,7 +3,7 @@ export { QueryAgent } from './QueryAgent.js';
3
3
  export { ReactiveAgent } from './ReactiveAgent.js';
4
4
  export { PipelineAgent } from './PipelineAgent.js';
5
5
  export { RouterAgent } from './RouterAgent.js';
6
- export { SupervisorAgent } from './SupervisorAgent.js';
6
+ export { SupervisorAgent, type SupervisorResumeTarget } from './SupervisorAgent.js';
7
7
  export { defineAgent } from './defineAgent.js';
8
8
  export type { DefineAgentOptions } from './defineAgent.js';
9
9
  export { InvocationLock, ConcurrentInvocationError } from './lock.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/agents/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAE5C,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC9C,YAAY,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAA;AAC1D,OAAO,EAAE,cAAc,EAAE,yBAAyB,EAAE,MAAM,WAAW,CAAA;AACrE,YAAY,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAIxC,OAAO,EACN,sBAAsB,EACtB,kBAAkB,EAClB,oBAAoB,GACpB,MAAM,eAAe,CAAA;AACtB,YAAY,EAAE,aAAa,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AACnF,O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ACX,mBAAmB,EACnB,mBAAmB,EACnB,+BAA+B,EAC/B,0BAA0B,EAC1B,gBAAgB,GAChB,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,yBAAyB,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/agents/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,wFAAwF;AACxF,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAE9C,OAAO,EAAE,cAAc,EAAE,yBAAyB,EAAE,MAAM,WAAW,CAAA;AAErE,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACxC,6EAA6E;AAC7E,6EAA6E;AAC7E,wEAAwE;AACxE,OAAO,EACN,sBAAsB,EACtB,kBAAkB,EAClB,oBAAoB,GACpB,MAAM,eAAe,CAAA;AAEtB,OAAO,EACN,4BAA4B,EAC5B,oBAAoB,EACpB,wBAAwB,EACxB,cAAc,EACd,kBAAkB,GAClB,MAAM,uBAAuB,CAAA;AAQ9B,OAAO,EAAE,yBAAyB,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/agents/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,wFAAwF;AACxF,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,EAAE,eAAe,EAA+B,MAAM,sBAAsB,CAAA;AACnF,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAE9C,OAAO,EAAE,cAAc,EAAE,yBAAyB,EAAE,MAAM,WAAW,CAAA;AAErE,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACxC,6EAA6E;AAC7E,6EAA6E;AAC7E,wEAAwE;AACxE,OAAO,EACN,sBAAsB,EACtB,kBAAkB,EAClB,oBAAoB,GACpB,MAAM,eAAe,CAAA;AAEtB,OAAO,EACN,4BAA4B,EAC5B,oBAAoB,EACpB,wBAAwB,EACxB,cAAc,EACd,kBAAkB,GAClB,MAAM,uBAAuB,CAAA;AAQ9B,OAAO,EAAE,yBAAyB,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAA"}
@@ -0,0 +1,36 @@
1
+ /**
2
+ * Paths a write is always asked about, in every mode.
3
+ *
4
+ * A repository carries files that are not data but triggers: a git hook runs
5
+ * on the next commit, a shell rc file on the next terminal, `.vscode/tasks.json`
6
+ * when a folder opens, `.envrc` on the next `cd`. A model that can write them
7
+ * does not need to run anything now; it plants code that runs later, outside
8
+ * the turn, with the operator's own rights. So a write to one of them is a
9
+ * question for a person, whatever the mode and whatever a rule or an earlier
10
+ * "approve all" said. That is what a mode is, an answer given before the call
11
+ * existed, and none of them saw this path.
12
+ *
13
+ * The lists are the reference terminal's protected-directory and
14
+ * protected-file tables (version 2.1.302), with its own configuration
15
+ * directory and file mapped to Namzu's: the project directory is `.namzu` and
16
+ * the project file is `namzu.config.json`.
17
+ *
18
+ * Matching is by name, on every segment of the path. `.git` anywhere above a
19
+ * file protects it, and `.config/git` counts as one two-segment unit. Names
20
+ * are case-folded, including the dotless `ı` and long `ſ` that fold to `i`
21
+ * and `s`, so `.GIT` and `.gıt` on a case-insensitive file system are the
22
+ * same directory.
23
+ */
24
+ /** Directory names; a path with one of these as any segment is protected. */
25
+ export declare const PROTECTED_DIRECTORIES: readonly string[];
26
+ /** Directory sequences; the segments must be adjacent. */
27
+ export declare const PROTECTED_NESTED_DIRECTORIES: readonly (readonly string[])[];
28
+ /** File names; a path whose last segment is one of these is protected. */
29
+ export declare const PROTECTED_FILE_NAMES: readonly string[];
30
+ /**
31
+ * Whether a write to `path` is one of the protected kinds. Pure: it reads the
32
+ * spelling it is given, so a caller that wants a symlink's target covered
33
+ * passes the canonical path as well.
34
+ */
35
+ export declare function isProtectedPath(path: string): boolean;
36
+ //# sourceMappingURL=protected-paths.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"protected-paths.d.ts","sourceRoot":"","sources":["../../src/authorization/protected-paths.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,6EAA6E;AAC7E,eAAO,MAAM,qBAAqB,EAAE,SAAS,MAAM,EAUlD,CAAA;AAED,0DAA0D;AAC1D,eAAO,MAAM,4BAA4B,EAAE,SAAS,CAAC,SAAS,MAAM,EAAE,CAAC,EAAyB,CAAA;AAEhG,0EAA0E;AAC1E,eAAO,MAAM,oBAAoB,EAAE,SAAS,MAAM,EAwCjD,CAAA;AAWD;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAYrD"}