@namzu/sdk 39.0.0 → 41.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 (289) hide show
  1. package/CHANGELOG.md +328 -0
  2. package/dist/bridge/a2a/mapper.d.ts.map +1 -1
  3. package/dist/bridge/a2a/mapper.js +8 -0
  4. package/dist/bridge/a2a/mapper.js.map +1 -1
  5. package/dist/bridge/sse/mapper.d.ts.map +1 -1
  6. package/dist/bridge/sse/mapper.js +11 -0
  7. package/dist/bridge/sse/mapper.js.map +1 -1
  8. package/dist/connector/index.d.ts +2 -2
  9. package/dist/connector/index.d.ts.map +1 -1
  10. package/dist/connector/index.js +1 -1
  11. package/dist/connector/index.js.map +1 -1
  12. package/dist/connector/mcp/adapter.d.ts.map +1 -1
  13. package/dist/connector/mcp/adapter.js +112 -10
  14. package/dist/connector/mcp/adapter.js.map +1 -1
  15. package/dist/connector/mcp/audio-admission.d.ts +17 -0
  16. package/dist/connector/mcp/audio-admission.d.ts.map +1 -0
  17. package/dist/connector/mcp/audio-admission.js +171 -0
  18. package/dist/connector/mcp/audio-admission.js.map +1 -0
  19. package/dist/connector/mcp/client.d.ts +252 -1
  20. package/dist/connector/mcp/client.d.ts.map +1 -1
  21. package/dist/connector/mcp/client.js +611 -39
  22. package/dist/connector/mcp/client.js.map +1 -1
  23. package/dist/connector/mcp/envelope.d.ts +91 -0
  24. package/dist/connector/mcp/envelope.d.ts.map +1 -0
  25. package/dist/connector/mcp/envelope.js +173 -0
  26. package/dist/connector/mcp/envelope.js.map +1 -0
  27. package/dist/connector/mcp/era.d.ts +130 -0
  28. package/dist/connector/mcp/era.d.ts.map +1 -0
  29. package/dist/connector/mcp/era.js +304 -0
  30. package/dist/connector/mcp/era.js.map +1 -0
  31. package/dist/connector/mcp/errors.d.ts +106 -0
  32. package/dist/connector/mcp/errors.d.ts.map +1 -0
  33. package/dist/connector/mcp/errors.js +154 -0
  34. package/dist/connector/mcp/errors.js.map +1 -0
  35. package/dist/connector/mcp/http-sse.d.ts +11 -0
  36. package/dist/connector/mcp/http-sse.d.ts.map +1 -1
  37. package/dist/connector/mcp/http-sse.js +21 -6
  38. package/dist/connector/mcp/http-sse.js.map +1 -1
  39. package/dist/connector/mcp/index.d.ts +7 -0
  40. package/dist/connector/mcp/index.d.ts.map +1 -1
  41. package/dist/connector/mcp/index.js +10 -0
  42. package/dist/connector/mcp/index.js.map +1 -1
  43. package/dist/connector/mcp/streamable-http.d.ts +83 -0
  44. package/dist/connector/mcp/streamable-http.d.ts.map +1 -1
  45. package/dist/connector/mcp/streamable-http.js +177 -11
  46. package/dist/connector/mcp/streamable-http.js.map +1 -1
  47. package/dist/connector/mcp/x-mcp-header.d.ts +56 -0
  48. package/dist/connector/mcp/x-mcp-header.d.ts.map +1 -0
  49. package/dist/connector/mcp/x-mcp-header.js +254 -0
  50. package/dist/connector/mcp/x-mcp-header.js.map +1 -0
  51. package/dist/constants/mcp/index.d.ts +123 -15
  52. package/dist/constants/mcp/index.d.ts.map +1 -1
  53. package/dist/constants/mcp/index.js +135 -16
  54. package/dist/constants/mcp/index.js.map +1 -1
  55. package/dist/manager/agent/lifecycle.d.ts.map +1 -1
  56. package/dist/manager/agent/lifecycle.js +23 -0
  57. package/dist/manager/agent/lifecycle.js.map +1 -1
  58. package/dist/manager/run/persistence.d.ts +8 -0
  59. package/dist/manager/run/persistence.d.ts.map +1 -1
  60. package/dist/manager/run/persistence.js +12 -0
  61. package/dist/manager/run/persistence.js.map +1 -1
  62. package/dist/prompt/coding-agent-doctrine.d.ts +20 -0
  63. package/dist/prompt/coding-agent-doctrine.d.ts.map +1 -1
  64. package/dist/prompt/coding-agent-doctrine.js +19 -3
  65. package/dist/prompt/coding-agent-doctrine.js.map +1 -1
  66. package/dist/prompt/index.d.ts +1 -1
  67. package/dist/prompt/index.d.ts.map +1 -1
  68. package/dist/prompt/index.js +1 -1
  69. package/dist/prompt/index.js.map +1 -1
  70. package/dist/public-runtime.d.ts +6 -4
  71. package/dist/public-runtime.d.ts.map +1 -1
  72. package/dist/public-runtime.js +8 -4
  73. package/dist/public-runtime.js.map +1 -1
  74. package/dist/public-tools.d.ts +11 -0
  75. package/dist/public-tools.d.ts.map +1 -1
  76. package/dist/public-tools.js +14 -0
  77. package/dist/public-tools.js.map +1 -1
  78. package/dist/registry/tool/execute.d.ts.map +1 -1
  79. package/dist/registry/tool/execute.js +2 -3
  80. package/dist/registry/tool/execute.js.map +1 -1
  81. package/dist/registry/tool/portable.d.ts +65 -0
  82. package/dist/registry/tool/portable.d.ts.map +1 -0
  83. package/dist/registry/tool/portable.js +244 -0
  84. package/dist/registry/tool/portable.js.map +1 -0
  85. package/dist/registry/tool/schema.d.ts +32 -5
  86. package/dist/registry/tool/schema.d.ts.map +1 -1
  87. package/dist/registry/tool/schema.js +35 -9
  88. package/dist/registry/tool/schema.js.map +1 -1
  89. package/dist/registry/toolset/catalog.js +8 -8
  90. package/dist/registry/toolset/catalog.js.map +1 -1
  91. package/dist/runtime/jobs/awaited-jobs.d.ts +215 -0
  92. package/dist/runtime/jobs/awaited-jobs.d.ts.map +1 -0
  93. package/dist/runtime/jobs/awaited-jobs.js +259 -0
  94. package/dist/runtime/jobs/awaited-jobs.js.map +1 -0
  95. package/dist/runtime/jobs/registry.d.ts +33 -2
  96. package/dist/runtime/jobs/registry.d.ts.map +1 -1
  97. package/dist/runtime/jobs/registry.js +37 -0
  98. package/dist/runtime/jobs/registry.js.map +1 -1
  99. package/dist/runtime/query/executor.d.ts +28 -0
  100. package/dist/runtime/query/executor.d.ts.map +1 -1
  101. package/dist/runtime/query/executor.js +39 -1
  102. package/dist/runtime/query/executor.js.map +1 -1
  103. package/dist/runtime/query/file-evidence-context.d.ts.map +1 -1
  104. package/dist/runtime/query/file-evidence-context.js +159 -43
  105. package/dist/runtime/query/file-evidence-context.js.map +1 -1
  106. package/dist/runtime/query/file-evidence-replay.d.ts +260 -0
  107. package/dist/runtime/query/file-evidence-replay.d.ts.map +1 -0
  108. package/dist/runtime/query/file-evidence-replay.js +647 -0
  109. package/dist/runtime/query/file-evidence-replay.js.map +1 -0
  110. package/dist/runtime/query/file-evidence-seed.d.ts +50 -0
  111. package/dist/runtime/query/file-evidence-seed.d.ts.map +1 -0
  112. package/dist/runtime/query/file-evidence-seed.js +100 -0
  113. package/dist/runtime/query/file-evidence-seed.js.map +1 -0
  114. package/dist/runtime/query/index.d.ts.map +1 -1
  115. package/dist/runtime/query/index.js +94 -2
  116. package/dist/runtime/query/index.js.map +1 -1
  117. package/dist/runtime/query/iteration/index.d.ts +87 -9
  118. package/dist/runtime/query/iteration/index.d.ts.map +1 -1
  119. package/dist/runtime/query/iteration/index.js +193 -28
  120. package/dist/runtime/query/iteration/index.js.map +1 -1
  121. package/dist/runtime/query/iteration/phases/context.d.ts +10 -0
  122. package/dist/runtime/query/iteration/phases/context.d.ts.map +1 -1
  123. package/dist/runtime/query/iteration/phases/context.js.map +1 -1
  124. package/dist/runtime/query/iteration/phases/tool-review.d.ts.map +1 -1
  125. package/dist/runtime/query/iteration/phases/tool-review.js +5 -1
  126. package/dist/runtime/query/iteration/phases/tool-review.js.map +1 -1
  127. package/dist/runtime/query/plugin-hooks.d.ts +14 -0
  128. package/dist/runtime/query/plugin-hooks.d.ts.map +1 -1
  129. package/dist/runtime/query/plugin-hooks.js +18 -0
  130. package/dist/runtime/query/plugin-hooks.js.map +1 -1
  131. package/dist/runtime/query/repeat-call.d.ts +17 -4
  132. package/dist/runtime/query/repeat-call.d.ts.map +1 -1
  133. package/dist/runtime/query/repeat-call.js +26 -19
  134. package/dist/runtime/query/repeat-call.js.map +1 -1
  135. package/dist/runtime/query/steering.d.ts +11 -1
  136. package/dist/runtime/query/steering.d.ts.map +1 -1
  137. package/dist/runtime/query/steering.js +12 -1
  138. package/dist/runtime/query/steering.js.map +1 -1
  139. package/dist/runtime/query/tooling.d.ts +2 -0
  140. package/dist/runtime/query/tooling.d.ts.map +1 -1
  141. package/dist/runtime/query/tooling.js +1 -0
  142. package/dist/runtime/query/tooling.js.map +1 -1
  143. package/dist/sandbox/provider/local.d.ts.map +1 -1
  144. package/dist/sandbox/provider/local.js +46 -3
  145. package/dist/sandbox/provider/local.js.map +1 -1
  146. package/dist/scheduler/completion-inbox.d.ts +48 -2
  147. package/dist/scheduler/completion-inbox.d.ts.map +1 -1
  148. package/dist/scheduler/completion-inbox.js +102 -10
  149. package/dist/scheduler/completion-inbox.js.map +1 -1
  150. package/dist/scheduler/local.d.ts.map +1 -1
  151. package/dist/scheduler/local.js +8 -0
  152. package/dist/scheduler/local.js.map +1 -1
  153. package/dist/store/run/disk.d.ts +35 -1
  154. package/dist/store/run/disk.d.ts.map +1 -1
  155. package/dist/store/run/disk.js +100 -0
  156. package/dist/store/run/disk.js.map +1 -1
  157. package/dist/tools/builtins/bash.d.ts.map +1 -1
  158. package/dist/tools/builtins/bash.js +4 -10
  159. package/dist/tools/builtins/bash.js.map +1 -1
  160. package/dist/tools/builtins/edit-apply.d.ts +126 -0
  161. package/dist/tools/builtins/edit-apply.d.ts.map +1 -0
  162. package/dist/tools/builtins/edit-apply.js +360 -0
  163. package/dist/tools/builtins/edit-apply.js.map +1 -0
  164. package/dist/tools/builtins/edit.d.ts +143 -1
  165. package/dist/tools/builtins/edit.d.ts.map +1 -1
  166. package/dist/tools/builtins/edit.js +37 -219
  167. package/dist/tools/builtins/edit.js.map +1 -1
  168. package/dist/tools/builtins/index.d.ts +1 -0
  169. package/dist/tools/builtins/index.d.ts.map +1 -1
  170. package/dist/tools/builtins/index.js +9 -3
  171. package/dist/tools/builtins/index.js.map +1 -1
  172. package/dist/tools/builtins/job.js +1 -1
  173. package/dist/tools/builtins/job.js.map +1 -1
  174. package/dist/tools/builtins/read-file.d.ts +2 -2
  175. package/dist/tools/builtins/read-file.d.ts.map +1 -1
  176. package/dist/tools/builtins/read-file.js +50 -65
  177. package/dist/tools/builtins/read-file.js.map +1 -1
  178. package/dist/tools/builtins/read-render.d.ts +56 -0
  179. package/dist/tools/builtins/read-render.d.ts.map +1 -0
  180. package/dist/tools/builtins/read-render.js +73 -0
  181. package/dist/tools/builtins/read-render.js.map +1 -0
  182. package/dist/tools/builtins/wait-for-job-bounds.d.ts +67 -0
  183. package/dist/tools/builtins/wait-for-job-bounds.d.ts.map +1 -0
  184. package/dist/tools/builtins/wait-for-job-bounds.js +108 -0
  185. package/dist/tools/builtins/wait-for-job-bounds.js.map +1 -0
  186. package/dist/tools/builtins/wait-for-job.d.ts +6 -0
  187. package/dist/tools/builtins/wait-for-job.d.ts.map +1 -0
  188. package/dist/tools/builtins/wait-for-job.js +162 -0
  189. package/dist/tools/builtins/wait-for-job.js.map +1 -0
  190. package/dist/tools/builtins/write-file.js +5 -0
  191. package/dist/tools/builtins/write-file.js.map +1 -1
  192. package/dist/tools/coordinator/index.d.ts.map +1 -1
  193. package/dist/tools/coordinator/index.js +1 -7
  194. package/dist/tools/coordinator/index.js.map +1 -1
  195. package/dist/tools/file-read-tracker.d.ts.map +1 -1
  196. package/dist/tools/file-read-tracker.js +88 -10
  197. package/dist/tools/file-read-tracker.js.map +1 -1
  198. package/dist/types/agent/scheduler.d.ts +20 -0
  199. package/dist/types/agent/scheduler.d.ts.map +1 -1
  200. package/dist/types/agent/task.d.ts +20 -0
  201. package/dist/types/agent/task.d.ts.map +1 -1
  202. package/dist/types/connector/mcp.d.ts +205 -0
  203. package/dist/types/connector/mcp.d.ts.map +1 -1
  204. package/dist/types/message/index.d.ts +1 -1
  205. package/dist/types/message/index.d.ts.map +1 -1
  206. package/dist/types/message/index.js +2 -0
  207. package/dist/types/message/index.js.map +1 -1
  208. package/dist/types/run/entity.d.ts +13 -0
  209. package/dist/types/run/entity.d.ts.map +1 -1
  210. package/dist/types/run/events.d.ts +56 -0
  211. package/dist/types/run/events.d.ts.map +1 -1
  212. package/dist/types/run/events.js.map +1 -1
  213. package/dist/types/run/store.d.ts +41 -0
  214. package/dist/types/run/store.d.ts.map +1 -1
  215. package/dist/types/sandbox/index.d.ts +83 -15
  216. package/dist/types/sandbox/index.d.ts.map +1 -1
  217. package/dist/types/sandbox/index.js.map +1 -1
  218. package/dist/types/tool/index.d.ts +109 -0
  219. package/dist/types/tool/index.d.ts.map +1 -1
  220. package/dist/types/tool/index.js.map +1 -1
  221. package/dist/utils/env.d.ts +19 -0
  222. package/dist/utils/env.d.ts.map +1 -0
  223. package/dist/utils/env.js +25 -0
  224. package/dist/utils/env.js.map +1 -0
  225. package/package.json +1 -1
  226. package/src/bridge/a2a/mapper.ts +8 -0
  227. package/src/bridge/sse/mapper.ts +11 -0
  228. package/src/connector/index.ts +27 -0
  229. package/src/connector/mcp/adapter.ts +123 -10
  230. package/src/connector/mcp/audio-admission.ts +173 -0
  231. package/src/connector/mcp/client.ts +694 -45
  232. package/src/connector/mcp/envelope.ts +235 -0
  233. package/src/connector/mcp/era.ts +400 -0
  234. package/src/connector/mcp/errors.ts +171 -0
  235. package/src/connector/mcp/http-sse.ts +23 -6
  236. package/src/connector/mcp/index.ts +37 -0
  237. package/src/connector/mcp/streamable-http.ts +199 -11
  238. package/src/connector/mcp/x-mcp-header.ts +322 -0
  239. package/src/constants/mcp/index.ts +145 -16
  240. package/src/manager/agent/lifecycle.ts +29 -0
  241. package/src/manager/run/persistence.ts +12 -0
  242. package/src/prompt/coding-agent-doctrine.ts +31 -4
  243. package/src/prompt/index.ts +1 -0
  244. package/src/public-runtime.ts +37 -1
  245. package/src/public-tools.ts +18 -0
  246. package/src/registry/tool/execute.ts +2 -4
  247. package/src/registry/tool/portable.ts +264 -0
  248. package/src/registry/tool/schema.ts +38 -8
  249. package/src/registry/toolset/catalog.ts +8 -9
  250. package/src/runtime/jobs/awaited-jobs.ts +271 -0
  251. package/src/runtime/jobs/registry.ts +50 -0
  252. package/src/runtime/query/executor.ts +49 -1
  253. package/src/runtime/query/file-evidence-context.ts +190 -46
  254. package/src/runtime/query/file-evidence-replay.ts +776 -0
  255. package/src/runtime/query/file-evidence-seed.ts +126 -0
  256. package/src/runtime/query/index.ts +104 -2
  257. package/src/runtime/query/iteration/index.ts +202 -28
  258. package/src/runtime/query/iteration/phases/context.ts +10 -0
  259. package/src/runtime/query/iteration/phases/tool-review.ts +4 -0
  260. package/src/runtime/query/plugin-hooks.ts +20 -0
  261. package/src/runtime/query/repeat-call.ts +28 -18
  262. package/src/runtime/query/steering.ts +11 -0
  263. package/src/runtime/query/tooling.ts +3 -0
  264. package/src/sandbox/provider/local.ts +45 -2
  265. package/src/scheduler/completion-inbox.ts +105 -9
  266. package/src/scheduler/local.ts +8 -0
  267. package/src/store/run/disk.ts +108 -0
  268. package/src/tools/builtins/bash.ts +4 -10
  269. package/src/tools/builtins/edit-apply.ts +456 -0
  270. package/src/tools/builtins/edit.ts +39 -270
  271. package/src/tools/builtins/index.ts +9 -3
  272. package/src/tools/builtins/job.ts +1 -1
  273. package/src/tools/builtins/read-file.ts +56 -77
  274. package/src/tools/builtins/read-render.ts +104 -0
  275. package/src/tools/builtins/wait-for-job-bounds.ts +179 -0
  276. package/src/tools/builtins/wait-for-job.ts +184 -0
  277. package/src/tools/builtins/write-file.ts +5 -0
  278. package/src/tools/coordinator/index.ts +1 -7
  279. package/src/tools/file-read-tracker.ts +85 -7
  280. package/src/types/agent/scheduler.ts +21 -0
  281. package/src/types/agent/task.ts +21 -0
  282. package/src/types/connector/mcp.ts +205 -1
  283. package/src/types/message/index.ts +2 -0
  284. package/src/types/run/entity.ts +14 -0
  285. package/src/types/run/events.ts +56 -0
  286. package/src/types/run/store.ts +42 -0
  287. package/src/types/sandbox/index.ts +84 -15
  288. package/src/types/tool/index.ts +104 -0
  289. package/src/utils/env.ts +23 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,333 @@
1
1
  # Changelog
2
2
 
3
+ ## 41.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - d0227e2: `MCPClient.connect()` now negotiates across four legacy MCP protocol revisions — `2025-11-25`, `2025-06-18`, `2025-03-26`, `2024-11-05` — instead of only `2024-11-05`. It offers `2025-11-25` (the newest) in a single `initialize` request and accepts whatever the server answers with, as long as the answer is one of the four; a server negotiating to anything else is refused, naming the version offered, the version answered, and the full supported list. This is one round trip, never a per-version retry loop.
8
+
9
+ **This is the changed default that makes the release major:** the version this client advertises in `initialize` moves from `2024-11-05` to `2025-11-25`. A server that tailors its response to the client's claimed version — richer content blocks, a different capability set — now sees a different value on the wire, and (for a server negotiating to `2025-06-18` or `2025-11-25`) now also receives an `MCP-Protocol-Version` header on every request after `initialize`, which it did not receive before. There is no per-call way to pin the old advertised version or suppress the new header: a caller that needs the previous behavior stays on the previous major version of `@namzu/sdk`.
10
+
11
+ New on the public surface, both additive: the `McpEra` type (`{ kind: 'modern'; version } | { kind: 'legacy'; version }` — only `legacy` is reachable today) and `MCPClient.getEra()`, which returns the era the last `connect()` negotiated, or `undefined` before one has. `MCPTransportSendOptions` gains an optional `headers` field.
12
+
13
+ See [MCP protocol eras](../docs/sdk/mcp-protocol-eras.md) for the full model, why there is no waterfall, and what this workstream deliberately does not build yet (the 2026-07-28 "modern" era).
14
+
15
+ - 5663108: `MCPClient.connect()` no longer opens with `initialize`. It opens with a `server/discover` probe at MCP `2026-07-28` and offers the legacy handshake only when that probe says the peer does not speak it. The first request a server sees from this client is therefore a method that did not exist before 2026-07-28 — that is the breaking change, and there is no opt out.
16
+
17
+ **What an operator observes.** One extra round trip on first contact with a given HTTP origin or stdio command, then nothing: the resolved era is cached per origin (or per resolved command and arguments) and a remembered legacy peer skips the probe entirely. Against a server that answers an unknown method with an error the probe costs a round trip's latency; against one that ignores unknown methods it costs `MCPClientConfig.eraProbeTimeoutMs`, new here and defaulting to `2000` (clamped to `requestTimeoutMs`). The CLI's 10s `connectTimeoutMs` default accommodates that, measured against a real child process rather than assumed.
18
+
19
+ **What a modern connection does differently.** No `initialize`, no `notifications/initialized`, no `Mcp-Session-Id` sent or captured even if the origin offers one, no `GET`, no `DELETE`, no `Last-Event-ID` — and no `notifications/cancelled` POST on Streamable HTTP, where closing the SSE response stream is itself the cancellation signal. stdio still sends the cancellation notification, in every era. Every modern request instead carries `_meta` (`protocolVersion` and `clientCapabilities` required, `clientInfo` a SHOULD) mirrored into `MCP-Protocol-Version`, `Mcp-Method` and `Mcp-Name` headers. Those three header names now belong to the protocol rather than to the caller: an `MCPRequestOptions.headers` entry colliding with one of them, matched case-insensitively, is refused and warn-logged instead of winning the merge, in both eras. A caller that was setting `MCP-Protocol-Version` by hand no longer can — a server rejects a header that disagrees with the body it mirrors, so the value the client negotiated is the only one it will send. Every other per-request header behaves exactly as before. `connect()` still returns an `MCPInitializeResult` of the same shape, synthesised from the `DiscoverResult`, so no caller branches on the era.
20
+
21
+ **A caller that needs the previous behaviour — the legacy handshake and nothing before it — pins the previous major.**
22
+
23
+ Additive alongside it: `MCPClientConfig.eraCache` and `eraProbeTimeoutMs`; the `MCPEraCache` and `MCPDiscoverResult` types; `resolveMcpEra`, `createMcpEraCache`, `defaultMcpEraCache`, `mcpEraCacheKey`, `isRecognizedModernError`, `classifyModernHttpFailure`, `buildEnvelope` and `encodeMcpHeaderValue`; and `MCPHttpStatusError`, which carries the status and the response body a failed HTTP send used to discard — the body is what tells a modern origin's `404` apart from a legacy one's.
24
+
25
+ See [MCP protocol eras](../docs/sdk/mcp-protocol-eras.md#resolving-the-era-two-probes-never-a-waterfall) for the state machine, the cache and its invalidation, and the `-32022` rule.
26
+
27
+ - 6283f8d: `MCPClient.listTools()` can now return fewer tools than the server published. A tool whose `inputSchema` carries an invalid `x-mcp-header` annotation is excluded from the listing, with the tool name and the reason logged at `warn` (`namzu.mcp.tool`, `namzu.mcp.reason`). That is the breaking part: a tool a host used to receive, and a model used to be offered, can now be absent. Only tools carrying that annotation can be affected, and only on the Streamable HTTP transport — stdio and HTTP+SSE ignore the annotation entirely and exclude nothing.
28
+
29
+ **What the annotation is.** A server may ask that a tool parameter's value be mirrored into an `Mcp-Param-{name}` HTTP request header, so a load balancer or policy proxy can route and authorise a call without parsing JSON-RPC. A client on Streamable HTTP must support it, and must refuse a definition whose annotation breaks any of six constraints: non-empty; RFC 9110 `1*tchar` field-name syntax; no control characters, CR and LF in particular; case-insensitively unique across the whole `inputSchema`; applied only to a `string`, `boolean` or `integer` parameter, never a `number`; and statically reachable from the schema root through a chain of `properties` keys alone — never through `items`, `oneOf`/`anyOf`/`allOf`/`not`, `if`/`then`/`else` or `$ref`.
30
+
31
+ **What a call sends now.** On a modern (2026-07-28) Streamable HTTP connection, `callTool()` writes one `Mcp-Param-*` header per annotated parameter present in its arguments, read out of the same `params` object the request body carries. Values are written as the string, lowercase `true`/`false`, or a decimal integer, then wrapped in the `=?base64?…?=` sentinel when they cannot go into a field verbatim. The header is omitted — never sent empty — for an argument that is absent or `null`, for a value whose runtime type contradicts the schema, and for an integer outside ±(2^53−1). A legacy-era connection sends none of these, and neither does a call made before any `listTools()`.
32
+
33
+ **What a server can now make happen twice.** A `-32020` (`HeaderMismatch`) answer to a tool call triggers exactly one `tools/list` re-read and one retry of the same call, so a tool whose schema changed between the listing and the call recovers instead of failing. A second `-32020` surfaces to the caller. A tool call is therefore issued twice in that one case; a caller for whom a repeated call is unsafe should treat `-32020` as it would any other retried request.
34
+
35
+ **There is no opt out.** The exclusion is the spec's requirement, not a policy this client chooses, and a host that needs the previous behaviour — every published tool exposed regardless of its annotations — pins the previous major.
36
+
37
+ Additive alongside it: `validateMcpHeaderAnnotations`, which answers the same question about a schema a host holds, with the `McpHeaderAnnotationVerdict` and `McpParamHeaderBinding` types; and `McpEnvelopeInput.paramHeaders`, optional, so every existing `buildEnvelope` call is unchanged.
38
+
39
+ See [MCP protocol eras](../docs/sdk/mcp-protocol-eras.md#mirroring-tool-parameters-into-headers-x-mcp-header) for the constraints, the encoding table and the recovery.
40
+
41
+ ### Minor Changes
42
+
43
+ - bd32216: Delegation display labels now ride the `agent_pending` event. `RunEvent`'s `agent_pending` variant, `CreateTaskOptions` and `SendMessageOptions` each gain optional `workflow`, `phase`, `phaseDetail` and `phaseOrder`, and the SSE bridge carries them on `agent.pending` as `workflow`, `phase`, `phase_detail` and `phase_order`.
44
+
45
+ **These are display annotations only; they do not create dependencies, barriers, or serial execution.** Nothing in the kernel reads them back: admission, capacity, ordering and concurrency are decided by the scheduler, and two children naming the same phase are not thereby sequenced, synchronised or joined. `planId`/`planStepId` remain the delegation fields that carry correlation a host may act on. A reader who infers execution structure from a label here has inferred it from a caption.
46
+
47
+ What they buy is reach. A label that stays in the delegating process's memory is visible to that process and to nothing else; on the event it reaches every listener the delegation was given, and through `mapRunToStreamEvent` the SSE wire, so a consumer watching from elsewhere rebuilds the same grouping instead of seeing an undifferentiated list of children.
48
+
49
+ **Reach is not durability, and this does not add persistence.** Delegation lifecycle events are handed straight to a host's listener without passing through the run's event translator, so `agent_pending` enters no run's log — which is what the absent `seq` on these variants has always meant. A label supplied here is written nowhere by the kernel and does not survive a restart; a host that wants the grouping to outlive its process records it from the listener, into whatever store it already keeps.
50
+
51
+ Minor, and nothing to do on the upgrade: every field is optional and absent unless a host supplies one, no export was removed or renamed, no union narrowed, no default changed. A host that supplies none sees byte-identical events and wire payloads. The A2A bridge continues to emit nothing for delegation events — deliberately, and now said so in its comment: a peer models one task lifecycle and has no screen of ours to caption.
52
+
53
+ The CLI change is behaviour-preserving (`patch`): the `Agent` tool sends the labels it already collected down onto the delegation, and its activity monitor reads them off the event with the launch-time values kept as the seed, so a child that fails before `agent_pending` still groups where it was launched. For a run supplying the same labels on both paths — which is every CLI run — the grouping is byte-identical to before.
54
+
55
+ - c272993: `MCPContentBlock` gains `audio` (`{ type: 'audio', data, mimeType }`, part of the schema since 2025-03-26) and `resource_link` (`{ type: 'resource_link', uri, name, description?, mimeType? }`, since 2025-06-18), and the existing `resource` variant gains optional `blob?` (a binary embedded resource) and `annotations?` (a new `MCPContentAnnotations` type: `audience`, `priority`, `lastModified`). `mcpToolResultToToolResult` now renders all of it instead of silently dropping it: an admitted `audio` clip is named by its media type in the tool result's `output`; a malformed audio batch is withheld with a notice, atomically, the same as the existing image-admission behavior (new `audio-admission.ts`, supporting `audio/wav`, `audio/ogg` and `audio/mpeg`); a `resource_link` is rendered as a named pointer (`[MCP resource link: <name> (<uri>)]`) since it carries no content to show; a `resource` with `blob` and no `text` no longer risks mishandling — it is left out of model-visible content without throwing, consistent with how a URI-only resource has always been handled; `annotations` pass through untouched into `ToolResult.data`.
56
+
57
+ Minor by the letter of the rule — every change here is additive — but read this if your code pattern-matches `MCPContentBlock` exhaustively (a `switch` with a `default: assertNever(block)` or equivalent): it will fail to compile until you add cases for `audio` and `resource_link`. Add a case (or a catch-all) for each before taking this upgrade if you switch over this union anywhere.
58
+
59
+ This is meant to ship in the same release as the MCP protocol-era negotiation work: namzu now reaches servers that negotiate past 2024-11-05, and those servers are the ones that actually send these block types.
60
+
61
+ - c99f088: `MCPClient` now protects `MCP-Protocol-Version`, `Mcp-Method` and `Mcp-Name` from a caller-supplied per-request header on **every** connection, including a 2024-11-05 or 2025-03-26 legacy session — the two eras that send none of their own headers, where the protection previously derived its refused set from the era's own header keys and so refused nothing. `Mcp-Method` and `Mcp-Name` are modern-only headers this client never writes on any legacy connection, so this closes the gap on every legacy era, not only the two oldest. A caller relying on setting one of these three by hand on a legacy connection will now have it silently dropped and warn-logged, matching the modern-era behavior this package already documented as universal.
62
+
63
+ New `isResourceNotFoundError(error)`, alongside the existing `isHeaderMismatchError`/`isUnsupportedProtocolVersionError`/`isMissingRequiredClientCapabilityError`, recognizing the two JSON-RPC codes a server may use for "that resource, prompt or tool does not exist" (`-32002`, current spec; `-32602`, an older server's application-defined equivalent) — the codes `RESOURCE_NOT_FOUND_CODES` already listed but nothing had consumed.
64
+
65
+ No wire-format or default-behavior change beyond the header fix above; both changes are exports/behavior a consumer only gains.
66
+
67
+ - 359b27f: Legacy (2025-03-26 through 2025-11-25) Streamable HTTP connections now match three things those revisions specify and namzu did not do: a session that the server has forgotten answers `404`, and the client re-initializes once before retrying; `close()` sends a best-effort `DELETE` to tell a cooperative server the session is done; and an SSE event's `id:` field is captured and offered back as `Last-Event-ID` on the request after a reconnect, so a server that supports resumption can replay whatever this client may have missed.
68
+
69
+ All three are additive behavior on legacy connections only. A modern (2026-07-28) connection never establishes a session in the first place — it has nothing to re-initialize, nothing to `DELETE`, and nothing to resume — so it is unaffected structurally, not by an opt-out. The zero-config request shape for every existing caller is unchanged.
70
+
71
+ New on the public surface: `StreamableHttpTransport.resetSession()` and `.hasSession()`. `parseSseMessages`/`MCPSseParseResult` are also now exported from `connector/mcp/streamable-http.ts` for direct testing, but that module has no subpath in the package's `exports` map, so this is not reachable from outside the package and is not a public-surface change.
72
+
73
+ - 165fd64: Both MCP HTTP transports (`StreamableHttpTransport`, `HttpSseTransport`) now accept an optional `fetch?: MCPFetchLike` in their config, used in place of the ambient global `fetch` for every HTTP call the transport makes. `MCPFetchLike` (`{ok, status, headers, body, json(), text()}` via a real `Response`) is a new exported type — the same injectable, socket-free idea as `FetchLike` in the A2A bridge, re-declared here because both MCP transports read `.headers` and one reads a streamed `.body`.
74
+
75
+ `MCPRequestOptions` — already accepted by `listTools()`, `callTool()`, `readResource()`, `getPrompt()` and the rest — gains two more optional fields: `headers?: Record<string, string>`, merged over the transport's static config headers for that one request, and `bearerToken?: string`, sent as `Authorization: Bearer <token>` and applied after the merge so it overrides a configured `Authorization` header without touching a differently-named one such as a static `X-API-Key`. A per-request credential is refused at the same redirect boundary as a static one — `refuseMcpHttpRedirect` is untouched.
76
+
77
+ Everything here is additive and optional: a call that supplies none of the new fields sends the exact request it sent before this release. `HttpSseTransport`'s message POST is also fixed in passing to read `MCPTransportSendOptions.headers` at all — previously a per-send header (including the `MCP-Protocol-Version` header from the last release) silently never reached that transport's wire.
78
+
79
+ See [MCP protocol eras](../docs/sdk/mcp-protocol-eras.md#per-request-authority-injectable-fetch-bearer-token-headers) for the full model.
80
+
81
+ - 93f8d1e: `MCPClient` now understands MRTR's `resultType` envelope on a `tools/call` result: absent or `"complete"` is unchanged from before, `"input_required"` is read as `{ inputRequests?, requestState? }`, and any other value is refused (the spec's own "MUST be considered invalid") through the new `MCPInvalidResultTypeError` rather than being passed through as an ordinary result.
82
+
83
+ **Automatic recovery, once.** A `requestState`-only `InputRequiredResult` — the only shape a conforming server can send, since `namzu` declares `clientCapabilities: {}` and MRTR rule 7 forbids asking for anything else — is retried immediately, echoing `requestState` byte-for-byte under a fresh JSON-RPC id. `requestState` itself is opaque: never parsed, inspected or logged in full.
84
+
85
+ **A typed, catchable outcome for everything else.** An `InputRequiredResult` carrying `inputRequests` this client cannot satisfy, a second `input_required` after the one retry, or a `-32021 MissingRequiredClientCapability` error — the failure a no-capability host is actually likely to see — no longer reach a tool call's caller as an unexplained rejection. `mcpToolToToolDefinition`'s `execute` catches all three and returns a `ToolResult` with `success: false` and a `data.code` of `mcp_tool_input_required` (naming the requested method(s) in `data.requested`) or `mcp_tool_missing_client_capability` (naming `data.requiredCapabilities`), both `retrySafety: 'safe'`. Both still pass through the existing untrusted-content framing before reaching a model.
86
+
87
+ New on the public surface: `decodeResult`, `MCPDecodedResult`, `MCPInputRequest`, `MCPInputRequiredError`, `MCPInvalidResultTypeError`. Nothing existing changes shape — a legacy result with no `resultType`, which is every result a pre-MRTR server has ever sent, decodes exactly as it always has, and `MCPClient.callTool`'s own throw behaviour for an ordinary transport or protocol error is untouched.
88
+
89
+ See [MCP protocol eras](../docs/sdk/mcp-protocol-eras.md#mrtr-resulttype-and-a-typed-input_required-outcome) for the full design and why a conforming server can only ever ask for a retry, never for input this client has no way to give it.
90
+
91
+ - 7694a82: An MCP tool or connection failure that came back as a JSON-RPC error reply now rejects with a new exported `MCPProtocolError` (a subclass of `Error`) carrying the reply's numeric `code` and its `data` payload untouched, instead of only a formatted string. Three narrow predicates — `isUnsupportedProtocolVersionError`, `isMissingRequiredClientCapabilityError`, `isHeaderMismatchError` — let a caller react to a specific MCP error code without comparing magic numbers itself. A new `RESOURCE_NOT_FOUND_CODES` constant lists the JSON-RPC codes a server may use for "that resource doesn't exist."
92
+
93
+ Additive only: `error.message` still reads exactly `MCP error {code}: {message}` as before, so an existing `catch` block or a test matching on that string is unaffected, and `MCPProtocolError` is a subclass of `Error`, never a replacement for it. A malformed error reply (a missing or non-integer `code`) still rejects, with a distinctly-named local error that none of the three predicates match.
94
+
95
+ - 449642e: Add `/orchestrate`, a session mode layered above reasoning effort rather than inside it.
96
+
97
+ `@namzu/cli`: `/orchestrate [on|off]` (no argument toggles) turns the mode on or off for the current session. It is deliberately not a `ReasoningEffort` value — typing `/effort orchestrate` still reports "unavailable for this model", exactly as `ultracode` does today. When the `/effort` picker can open, the mode also appears there as its own row below a rule, apart from the model's own levels. Turning the mode on pins reasoning effort to the model's highest published level and strengthens delegation guidance for future turns toward delegating by default; when the model publishes no exact effort menu the mode still turns on and still strengthens guidance, but pins nothing and says so. Like effort, the mode is in-memory and per-session — nothing is written to preferences. A model switch still resets an explicit effort override to the new model's default, but while the mode is on it re-pins to the new model's highest level instead. The status line shows the level and the mode together (`effort high · orchestrate`), or the mode alone when nothing is pinned — never a fabricated effort value.
98
+
99
+ `@namzu/sdk`: `codingAgentDoctrineContribution` gains an optional `orchestrate` field on `CodingAgentDoctrineOptions`, and a new exported `CODING_AGENT_ORCHESTRATE_DOCTRINE` constant. Passing `orchestrate: true` (and leaving `delegation` at its default) appends that text after the existing delegation doctrine. Leaving the new field unset — the only behavior any existing caller can observe — renders byte-identical output to before this field existed. No default changed and no export was renamed or removed, so this is additive for every current consumer.
100
+
101
+ - 3e6980d: Open a finished delegated child from the evidence it already writes to disk.
102
+
103
+ **`@namzu/sdk`** gains one static method and the type it returns:
104
+ `RunDiskStore.listChildren(baseDir, parentRunId)` and `DelegatedChildRun`. It
105
+ walks `<baseDir>/<parentRunId>/children/`, reads each child's `run.json`, and
106
+ reports the run id, its directory, and whatever the file recorded of the agent,
107
+ the model, the status, the timings and the token total. Every field from the
108
+ file is optional: `run.json` is written on a run's terminal path, so a child
109
+ killed before it got there leaves a transcript worth reading and no recorded
110
+ ending, and absent means "the file did not say" rather than zero.
111
+
112
+ Additive. Nothing existing changed, and in particular **`listRuns` is
113
+ unchanged** — do not read this as a fix to the index. `addToIndex` still
114
+ returns early for any run with a `parentRunId`, so a delegated child still
115
+ never appears in the browsable catalogue, which is what keeps it out of a
116
+ host's conversation listing. `listChildren` is the separate read for a caller
117
+ that wants the evidence anyway. It performs no writes: binding a `RunDiskStore`
118
+ to a run creates that run's directory, which is why discovery is a static walk
119
+ and not a bound method.
120
+
121
+ **`@namzu/cli`** can now open a delegated child that is no longer live — evicted
122
+ by the activity monitor's eighty-agent bound, or left behind by a process that
123
+ has since exited. The agent cockpit lists it from disk and drills into its saved
124
+ transcript, rebuilt through the same projection a live child renders through, so
125
+ the past and the present look alike.
126
+
127
+ It cannot be continued, and the screen says so: a replayed row is marked `saved`,
128
+ its transcript is headed `Replayed from saved evidence. This child cannot be
129
+ continued.`, it never appears in the live panel above the composer, and there is
130
+ no message or cancel affordance on it. Resume has never restarted delegated
131
+ tasks or reconnected their processes, and opening one does not either. Replay is
132
+ read-only — no file is written, moved or pruned by looking at a past run — and a
133
+ torn transcript opens with the records that could be read plus a row saying it is
134
+ partial; one that cannot be read at all opens with that row alone, beside what
135
+ `run.json` recorded, rather than dropping the child from the list.
136
+
137
+ Two limits worth knowing before relying on it. Streaming deltas never enter a
138
+ run's durable log, so a replayed transcript carries tool calls, their results and
139
+ any failure text but not the assistant prose that streamed between them; the
140
+ child's `report.md` holds its answer. Delegation lifecycle events enter no log
141
+ either, so a replayed child's `workflow` and `phase` labels are not recovered:
142
+ saved children are grouped by the parent run they belonged to and carry the
143
+ unlabelled default workflow, as a live child launched without labels does.
144
+
145
+ Child run directories accumulate and nothing prunes them. That predates this
146
+ change — the directories were always written — but this is what makes the growth
147
+ visible. Reclaiming the space today means deleting `children/` directories by
148
+ hand; a prune command is follow-up work.
149
+
150
+ - feaeaba: `Sandbox.readFile` takes an optional options parameter, and `Sandbox` gains an
151
+ optional `readFileStream`.
152
+
153
+ `readFile(path, options?: SandboxReadFileOptions)` accepts `offset`, `length`
154
+ and `signal`. It is source-compatible in both directions: callers may go on
155
+ writing `readFile(path)`, and a backend may go on declaring the one-parameter
156
+ form and still satisfy the widened signature — no implementation has to change.
157
+ A backend that accepts the parameter and then ignores `offset`/`length` does
158
+ not satisfy it: returning the whole file where a slice was asked for is a wrong
159
+ answer, not a degraded one, so such a backend must reject instead.
160
+
161
+ `readFileStream?(path, options?): AsyncIterable<Buffer>` is optional in the
162
+ same way `openTerminal?` is. A backend that cannot read a file incrementally
163
+ omits it rather than implementing it by reading the file whole and chopping the
164
+ result up, so a caller that needs bounded memory refuses an absent method
165
+ instead of silently getting the behaviour it was trying to avoid.
166
+
167
+ The SDK's own local provider serves the range rather than refusing it: a slice
168
+ of a file on a local filesystem is one positional read, and a range that runs
169
+ past the end returns the bytes that exist. `signal` is honoured on both shapes
170
+ — handed to the whole-file read, and checked on either side of the positional
171
+ one, which takes no signal of its own.
172
+
173
+ What this changes for a caller of the agent-backed backends in
174
+ `@namzu/sandbox`: a `readFile` of a file around 384 MiB or larger used to fail
175
+ with `Cannot create a string longer than 0x1fffffe8 characters`, because the
176
+ guest base64-encoded the whole file into one string. It now succeeds. Hosts
177
+ that drain agent-produced output files before `destroy()` are the case this is
178
+ for.
179
+
180
+ ## 40.0.0
181
+
182
+ ### Major Changes
183
+
184
+ - 8bfe291: Tool schemas now go on the wire in a shape every provider reads the same way, instead of a draft-07 rendering each driver was expected to translate.
185
+
186
+ **What broke, and why this is the fix.** `read`'s `readRange` was a `z.tuple`, which renders as the draft-07 tuple `items: [a, b]`. A wire that validates a tool's `parameters` against the JSON Schema 2020-12 metaschema does not read that as a tuple — it reads it as "not a schema" and refuses the entire request, so one field in one tool killed every other tool in the call and the turn produced nothing. Three of the ten driver packages convert dialects at their boundary; the other seven forward the rendering verbatim, because their wires had never been measured. Converting in seven more places would need seven more measurements, including for endpoints a user configures and nobody here can probe. So the schema is fixed where it is made: the renderer now emits the intersection of draft-07 and 2020-12, which needs no conversion anywhere.
187
+
188
+ **Take this upgrade if you talk to any provider that is not Claude-backed.** Nothing you write changes; what changes is which requests come back 400.
189
+
190
+ Breaking:
191
+
192
+ - **`renderToolSchema` no longer emits a tuple.** A `z.tuple([a, b])` now renders as `{"type":"array","items":{…},"minItems":2,"maxItems":2}` — members deduplicated, or `anyOf` of them when they differ — rather than `items: [a, b]`. If you pinned the rendered bytes of a tuple-shaped tool, or built a driver that depends on receiving the draft-07 spelling in order to convert it, update the expectation. `toSchemaDialect` still exists and still converts; it is simply no longer needed for schemas this kernel rendered.
193
+ - **`ReadWindowRequest.readRange` is `readonly number[]`, not `readonly [number, number]`.** `z.infer` over `read`'s input schema changes with it. Passing a pair still type-checks; reading one out now needs an undefined check. `resolveReadWindow` already does that and ignores a range that is not two numbers, which the tool's own parser rejects before it ever gets there.
194
+ - **A bridged MCP tool's positional array reaches the model as a uniform array plus a description naming each position**, where a server that pinned the arity and closed the tail previously produced `prefixItems`. The Zod parser is unchanged and still enforces the order and the member types; only the hint the model is shown is now portable.
195
+
196
+ `read`'s parameter did NOT change for the model. It is still `readRange: [start, end]`, 1-indexed and inclusive, and the same calls parse to the same values — both members already carried the identical `integer, minimum 1` constraint, so nothing was expressible in the tuple that the array cannot say.
197
+
198
+ Added:
199
+
200
+ - `findPortableSchemaViolations(schema)` — every place a schema leaves the intersection, each with its dotted path, keyword and remedy. Use it as a gate over your own tools; the kernel sweeps all of its own with it.
201
+ - `toPortableToolSchema(schema)` — the normaliser, returning the input unchanged when there is nothing to rewrite.
202
+ - `toolWireSchema(tool)` — the schema a tool actually sends: its hand-written `modelInputSchema` when it has one, else its rendering, portable either way.
203
+ - `PortableSchemaViolation`.
204
+
205
+ ### Minor Changes
206
+
207
+ - 86a3818: A file written and then edited in the same conversation keeps its evidence: the derived step context now references the write call plus the `edit` calls applied on top of it, so the model no longer re-reads a file whose content is fully determined by history it can already see.
208
+
209
+ `FileReadTracker` gains four OPTIONAL methods: `recordEdit(key, content, callId)` and `editChain(key)` for the chain, and `recordDriftObserved(key)`/`driftObserved(key)` for the one below. Nothing is required of an existing tracker — the built-in `edit` tool falls back to today's `recordRead(key, content)` when a tracker does not implement `recordEdit`, and `writeCallId(key)` keeps its exact meaning ("the write call whose body IS the current content"), returning `undefined` as soon as an edit lands on the path. A custom tracker that implements only the old shape sees the behavior it saw before, entry for entry.
210
+
211
+ The projection admits a chain only after replaying every visible hop through the same apply core the `edit` tool runs and finding the result equal to the ledger's disk-derived fingerprint; it reads no files, never writes that fingerprint, and withholds the whole path if any hop is missing, cleared by compaction, truncated, errored, ambiguous, names another file, or no longer applies. Chains are bounded to eight edit calls, and one request may replay at most 262,144 UTF-16 code units of content — string length, not bytes on disk. A hop is replayed one operation at a time, each operation's post-image length worked out exactly from the body it is about to be applied to and checked against the request's remaining room before it is built, so the ceiling refuses work instead of measuring it and refuses none that would have fitted. The charge is the largest body the hop actually built — for a batch the largest intermediate of the fold rather than the body it ends on, since a batch that grows a file to twenty megabytes and then deletes every character has still built the twenty megabytes. An operation the ceiling turns away costs nothing, leaving the paths behind it their room.
212
+
213
+ Mutation-time drift checks still decide what reaches disk, and now also say so: `edit` on either branch, and `write`'s fresh-overwrite check, call `recordDriftObserved(key)` before returning a refusal. That refusal had already read the real file; the flag carries no body, because recording what was read there would re-baseline the comparison that refused. It leaves `fingerprint`, `hasRead`, `writeCallId` and `editChain` untouched, is cleared by the next observation of any kind, and makes the projection withhold the path in the meantime — so a reference is never offered for a body the runtime has been told is behind disk. The projection still reads no files.
214
+
215
+ - 03630cd: Admit a whole-file `read` as visible file evidence, so the derived work context
216
+ references a body the model already has in a receipt instead of leaving it to
217
+ read the file again.
218
+
219
+ `FileReadTracker` gains two optional methods. `recordFullRead(key, content,
220
+ callId, renderedFingerprint)` does everything `recordRead(key, content)` does —
221
+ always with the whole file, never the window — and additionally records that the
222
+ body is visible in that call's receipt; `readWitness(key)` reports
223
+ `{ callId, renderedFingerprint }`. Both are optional, so a custom tracker that
224
+ implements neither keeps its behavior exactly, and `createFileReadTracker()`
225
+ implements both. The built-in `read` calls `recordFullRead` only when the
226
+ window covered the whole file, and falls back to `recordRead` for a tracker
227
+ without it.
228
+
229
+ `renderedFingerprint` is of the tool's own output string, not of the file's
230
+ body: a read's body survives only as the line-numbered rendering its receipt
231
+ carries, so the projection admits the entry only while the receipt it can see
232
+ fingerprints to exactly what the tool emitted. A result the output budget elided
233
+ or spilled, one compaction cleared, or one changed in any other way withholds
234
+ the path, and nothing anywhere recovers a body by undoing the numbering. A
235
+ receipt over 32,000 UTF-16 units is not read at all; a larger file is not
236
+ admitted this way.
237
+
238
+ Such an entry carries `kind: "read"` and never `editsInCalls` — a read roots no
239
+ chain, and the first `edit` on the path withdraws it. Read-rooted entries count
240
+ against the same six paths as the write-rooted ones, which keep a path both
241
+ could claim. Existing write and chain entries are unchanged, mutation-time
242
+ drift checks are untouched, and nothing here reads the filesystem.
243
+
244
+ - f33c62b: A run now suspends for a background job the model said it was waiting on, instead of settling over it. When the model stops calling tools and a job named by `wait_for_job` is still running, the run waits — no provider request, no tokens — for the job's exit, an operator message, or the settle grace, whichever comes first. On an exit the model gets one more turn with the `[Background job update]` line in front of it; on neither, the run settles and names the job.
245
+
246
+ This is the same bounded, zero-token wait `CompletionInbox` already gave a delegated task, and it shares the delegated task's grace — half of what the run has left before it must start finishing — under a ceiling of its own: two minutes, or `NAMZU_JOB_HOLD_MAX_MS`. On a run with a `timeoutMs` the grace comes out of what is left rather than being added to it, so time a `wait_for_job` call already spent shortens the hold by the same amount. On a run WITHOUT one — no run deadline, which is what the CLI ships — there is no remainder to take a share of, and the task ceiling would be a flat hour; that hour is sound for a task, which cannot outlive it, and wrong for a job, which can run forever. The two-minute job ceiling is what bounds that case, so a `wait_for_job` that ran its own bound out is followed by two more minutes at most, not by a second hour. The iteration limit still bounds all of it, and the wait starts nothing and stops nothing.
247
+
248
+ **Wait-intent is explicit.** Only a job `wait_for_job` named is awaited, and only for the rest of the run that named it. A job nobody waited on — a dev server, a watcher — never holds a run open, and there is no opt-in flag on `bash run_in_background` that changes that.
249
+
250
+ **Why this is `minor` and not `major`.** The signal is new: no run that exists today can have an awaited job, because nothing before this could mark one. A host that never calls `wait_for_job` sees the loop it saw before, so no default changes and no existing behaviour is withdrawn.
251
+
252
+ Additive API:
253
+
254
+ - `Run.abandonedJobIds` — awaited jobs still running when the run ended, the job-side counterpart to `abandonedTaskIds`. Naming them is not stopping them: a run-owned job is still stopped by the run's own teardown, and one bound to the host's session keeps running.
255
+ - `RUNTIME_CONTEXT_MESSAGE_KINDS` gains `'job-exit'`, the provenance on the message that carries an exit delivered by the wait. Consumers that exhaustively switch on `RuntimeContextMessageKind` need a case for it.
256
+ - `BackgroundJobRegistryRef` gains an optional `markAwaited(id)`, and `bindOwner`'s options take an `onAwaited(id)` callback that backs it. Both are optional; a host that wires neither gets the previous behaviour, which is no hold.
257
+ - `NAMZU_JOB_HOLD_MAX_MS` sets the job ceiling above, in milliseconds, beside the `NAMZU_JOB_WAIT_*` knobs `wait_for_job` already reads. Unset is two minutes.
258
+
259
+ - 6ae4072: The repeat-call advisory (notices, then escalates, when a tool is called with identical arguments over and over) now reaches the model even when the repeated tool's result is structured content — an image, a document, an MCP resource block — rather than plain text. `attachRepeatNotice` previously required the trailing tool result to be a string and silently dropped the notice otherwise; it now falls back to delivering the advisory as its own runtime-context message immediately after the tool-result batch. No thresholds changed, and a repeat that keeps succeeding is still only ever noticed, never refused.
260
+
261
+ `RuntimeContextMessageKind` gains a `'repeat-call'` member for this fallback message. A consumer that exhaustively switches over the union (the CLI's transcript labeling did) needs a case for it; `@namzu/cli` adds one in this release.
262
+
263
+ - 92ab1d9: A resumed conversation keeps the file witnesses it earned. The observation ledger is process memory, and every resume path handed the run an empty one: the derived work context could admit nothing, and the first thing a resumed agent did was read back a file whose whole body was in the transcript it had just been given.
264
+
265
+ The new export `seedObservationLedger(messages, tracker, { workingDirectory, additionalDirectories, sandboxed })` rebuilds a ledger from a conversation's own history. `resumeRun` and `query`'s checkpoint resume call it for you, from the history as repaired rather than as checkpointed, so the ledger describes exactly what the model is about to be shown; the CLI calls it the first time a turn asks for a conversation's tracker, which covers `/resume`, `namzu run --resume`/`--continue`, and a forked conversation — each seeded from its own messages, once. Call it directly if you keep a tracker per conversation and restore one yourself. Nothing is persisted and no session-store schema changes; a host that does nothing sees exactly today's behaviour.
266
+
267
+ What a replay may conclude is what the projection would admit, by the same predicates and the same bounded replay. A `write` whose call and successful receipt are both intact restores its body and its witness; the `edit` calls above it are replayed hop by hop and restore the chain. A `read` never supplies a body — the line numbering is never undone to recover one — and can only confirm one already reconstructed, by rendering it forward through the read tool's own renderer and comparing the whole rendering with the receipt. A windowed read, a read that shows something else, a cleared receipt, a hop that no longer applies, a body past the bounds and a call whose arguments run past what a replay reads as evidence each withdraw whatever the pass held for that path. So do the two cases where the transcript settles no outcome: a call it never answered — the unknown-outcome result the kernel's own repair writes for one included — may have landed with the file half written, and a mutation it refused is a tool's own report about that path, a drift refusal above all, made after reading the disk. Each of those costs the path it names and no other. A path whose walk ends holding no body is entered in the ledger nowhere, and a path this conversation only ever read establishes nothing.
268
+
269
+ No file's content is read. The one thing the seed does touch the filesystem for is the key each entry is filed under: a ledger entry identifies a file rather than a spelling, so `read`, `write` and `edit` all key on the path canonicalized through its symlinks, and entries filed any other way would be entries no mutation ever checks and no drift refusal can ever withdraw. The paths named in the history are therefore resolved exactly as the tools resolve them — `additionalDirectories` included — before the walk begins. Under a sandbox the keys are the paths as written and no host path is consulted.
270
+
271
+ Only content-backed observations are restored, so a seeded ledger is never weaker than the empty one a resume starts from. A path whose body could not be reconstructed is left OUT of the ledger rather than entered without a fingerprint: `hasRead` is the read-before-overwrite refusal, and granting it with no body to compare would let a full overwrite of a file that changed while the session was closed through with nothing checked. Every path the replay does not restore therefore behaves exactly as it does today. A fingerprint it does restore is a claim derived from history and is still compared with the real file at mutation time, so a file changed while the session was closed is refused there and the refusal withdraws the path from the projection.
272
+
273
+ Three things seed nothing at all, each leaving today's empty ledger: a history naming more than 1,024 distinct path spellings — the ones only `read` names included, and two spellings of one file counting twice — which is resolved whole or not at all rather than in a prefix that cannot say what a mutation replaced; a tool call id claimed by two calls or answered by two receipts, `read` included, since the receipt that was hidden could be the observation that withdrew a claim; and a mutation no path can be recovered from, whatever came back to it — one declaring no `path`, one whose path no longer resolves inside the directories the run may reach (a refused write to a path outside them is one of these: a key is what withdrawing one path rather than the whole pass takes), or one the provider stream cut off mid-JSON, whose arguments are recorded as `{}`. A merely large call is none of these: the argument bound governs what may be believed, not what may be attributed, so an oversize `write` withdraws its own path's body and leaves every other witness standing.
274
+
275
+ `read`'s numbering and windowing move to `tools/builtins/read-render.ts` as pure functions, which is what lets the forward-render comparison run the tool's own renderer rather than a copy of it. The tool's output is unchanged, byte for byte.
276
+
277
+ - 7ca8c7d: Add a `wait_for_job` builtin tool: it blocks on a background job's exit under a run-length bound and an idle bound that resets on new output, and returns the job's accumulated output in one call — the shell-job counterpart to the existing `wait_for_task`. Neither bound stops the job; a timeout reports which clock ran out and the output read so far, with a `next_offset` to resume from. Ships by default alongside `job` and `bash`, and refuses cleanly on a host with no background job registry.
278
+
279
+ `job`'s own description no longer instructs polling with `action: "read"` in a loop; it now points at `wait_for_job` instead. `read` and `list` are unchanged.
280
+
281
+ `BackgroundJobRegistry` gains a public `waitForExit(id, { signal })`, resolving immediately for a job that has already exited and honouring an abort signal. `BackgroundJobRegistryRef` (the tool-context surface) gains an optional `waitForExit` of the same shape — additive, so an existing host implementing this interface directly keeps working without it; `wait_for_job` refuses cleanly when it is absent.
282
+
283
+ ### Patch Changes
284
+
285
+ - 68e535b: Three fixes to the bookkeeping behind the run suspend for a background job the model awaited. Nothing about when a run holds itself open changes; what changes is that the record of an exit no longer outlives the exit.
286
+
287
+ - **A job exit that has been read stops counting as pending work.** The record of an exit used to survive the notice that delivered it, gated only by whether anything at all was queued on the job-notice channel — so the next job to end, awaited or not, made that stale record read as news and bought the model a turn to re-read an exit it had already seen. The record is now dropped by the delivery that accounts for it.
288
+ - **A hold takes an exit only together with the notice that delivers it.** The delivery path took the exits first and asked for the text afterwards; on the branch that found none, the exits were already gone and nothing carried them. Neither is taken unless both are there.
289
+ - **An exit that lands while the run is settling is delivered, not lost.** An awaited job ending in the moment between the hold's grace expiring and the run finishing was delivered by nobody — the hold had already looked, `abandonedJobIds` could not honestly name a job that had finished, and the host's own between-turns announcer stays quiet while a run is in flight. It now arrives as the same `{ type: 'runtime-context', kind: 'job-exit' }` message on `Run.messages`, so the transcript has it and a continued thread opens with it.
290
+
291
+ No API is added or withdrawn. `NAMZU_JOB_HOLD_MAX_MS` is now read with the same parse the `NAMZU_JOB_WAIT_*` bounds use, which only makes an invalid value fall back to the two-minute default the way the others already did.
292
+
293
+ - a9e4b19: `bash`'s own `timeout` and `run_in_background` parameter descriptions no longer tell the model to "poll with the `job` tool" — they now point at `wait_for_job` (one call, no waiting turns) the same way `job`'s own description already does, and reserve `job` with action `"read"` for incremental output or picking up after a `wait_for_job` timeout. The tool result returned when a background job starts is worded the same way. No schema, behavior or tool-result shape changed.
294
+ - a54dc71: Internal only: `edit`'s apply core (normalizing a call's arguments and applying its replacements or insertion) now lives in a shared internal module instead of being private to the `edit` tool's file. No exported symbol, tool behavior, error message or file output changes — this is a pure refactor that lets a later projection reuse the exact same apply logic instead of a separate reimplementation.
295
+ - a8df193: `CompletionInbox.describeOwnedWork()`'s owned-work projection no longer drops a still-running task purely because more tasks were launched after it. It used to keep a single FIFO over every owned task, so a long-running task launched early fell out of the model's visibility permanently once sixteen more tasks were merely LAUNCHED — whether or not any of those newer ones had actually finished.
296
+
297
+ It now lists running tasks first, most recently launched first, and fills whatever slots are left with the most recently settled tasks — still bounded to sixteen entries. A running task that does not fit is named honestly in the preamble ("N running tasks are shown below, and N more still running.") instead of disappearing without a trace. A settled task bumped out is not individually counted; its result already reached the model once, inline or as a notification.
298
+
299
+ Model-facing text only. No exported symbol, method signature or wire shape changed.
300
+
301
+ - dd8702d: Tighten the resume seed's accounting and guards.
302
+
303
+ A `write` a `pre_tool_use` hook SKIPPED gets a non-error receipt — the hook
304
+ declined the call, nothing failed — and the ledger replay read that as a
305
+ successful write, restoring a fingerprint for a body that never reached the
306
+ disk. The next edit to that file was then refused for a drift the ledger had
307
+ invented. The skip is now recognised through the same function the executor
308
+ writes it with, and withdraws the path instead.
309
+
310
+ Three other corrections to the same pass. A read that withdraws a path no
311
+ longer counts toward the six-body bound, so a later mutation cannot evict a
312
+ path still holding a body. Attribution reads each call's `path` at most once
313
+ per seeding and not at all past about a megabyte of arguments; past that the
314
+ call is a mutation that can be placed nowhere, and the seeding establishes
315
+ nothing rather than carry a body it may have replaced. And `query`'s checkpoint
316
+ resume seeds from the repaired history plus whatever of an owned resume turn a
317
+ completed scan says already ran — a recovered `write` restores the body it put
318
+ there, an unknown outcome withdraws the path, and a call proved never started
319
+ is left out because it is about to execute. Previously the seed never saw that
320
+ turn, so an executed write inside it left the body it replaced standing as a
321
+ claim.
322
+
323
+ A seeding that throws no longer propagates out of a resume: it is logged at
324
+ debug and the run continues with the empty ledger it would otherwise have had.
325
+
326
+ No public surface changed. Hosts calling `seedObservationLedger` directly get
327
+ the corrected pass with no change to the call.
328
+
329
+ - e6d6d1e: `bash`'s and the delegation coordinator's private copies of `readPositiveIntEnv` are gone; both now import the one already shared with `wait_for_job` and the iteration runtime. Each call site still samples its environment variable at the same point it always did — module load for `NAMZU_BASH_TIMEOUT_MS`, `NAMZU_BASH_MAX_BUFFER_BYTES`, `NAMZU_BASH_MAX_TIMEOUT_MS` and `NAMZU_DELEGATION_IDLE_MS` — so no knob starts reading its variable at a different time. No behavior, schema or default changed.
330
+
3
331
  ## 39.0.0
4
332
 
5
333
  ### Major Changes
@@ -1 +1 @@
1
- {"version":3,"file":"mapper.d.ts","sourceRoot":"","sources":["../../../src/bridge/a2a/mapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,cAAc,EAGd,MAAM,0BAA0B,CAAA;AAEjC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAA;AA6TzD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,QAAQ,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,cAAc,GAAG,IAAI,CAO3F;AAED,uCAAuC;AACvC,eAAO,MAAM,oBAAoB,yBAAmB,CAAA"}
1
+ {"version":3,"file":"mapper.d.ts","sourceRoot":"","sources":["../../../src/bridge/a2a/mapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,cAAc,EAGd,MAAM,0BAA0B,CAAA;AAEjC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAA;AAqUzD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,QAAQ,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,cAAc,GAAG,IAAI,CAO3F;AAED,uCAAuC;AACvC,eAAO,MAAM,oBAAoB,yBAAmB,CAAA"}
@@ -215,6 +215,14 @@ const MAPPING = {
215
215
  plan_step_updated: null,
216
216
  plan_completed: null,
217
217
  plan_failed: null,
218
+ // Delegation is this runtime's internal division of labour: a peer asked
219
+ // for one task and models one task lifecycle, so who this runtime spawned
220
+ // to serve it is not a fact about the peer's task. The display grouping
221
+ // `agent_pending` carries (workflow, phase, phase detail, phase order) is
222
+ // deliberately not on this wire either — it is caption text for an
223
+ // operator's screen, it creates no dependencies, barriers or serial
224
+ // execution, and a peer has no screen of ours to put it on. Hosts that do
225
+ // want it read the SSE wire, where `agent.pending` carries it.
218
226
  agent_pending: null,
219
227
  agent_completed: null,
220
228
  agent_failed: null,
@@ -1 +1 @@
1
- {"version":3,"file":"mapper.js","sourceRoot":"","sources":["../../../src/bridge/a2a/mapper.ts"],"names":[],"mappings":"AAQA,SAAS,WAAW,CACnB,MAAc,EACd,KAA+C,EAC/C,OAAgB,EAChB,SAAkB,EAClB,OAAoD,EACpD,QAAkC;IAElC,OAAO;QACN,MAAM;QACN,SAAS;QACT,MAAM,EAAE;YACP,KAAK;YACL,OAAO;YACP,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;SACn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;AACrD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAA;AAEzD,MAAM,WAAW,iBAAiB;IACjC,IAAI,EAAE,eAAe,CAAA;IACrB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC7B;;;;;;;;;;;;;;;;;OAiBG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;CACX;AAkkBD,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,GAAG,iBAAiB,GAAG,IAAI,CA0B3F;AAED,0CAA0C;AAC1C,eAAO,MAAM,uBAAuB,4BAAsB,CAAA"}
1
+ {"version":3,"file":"mapper.d.ts","sourceRoot":"","sources":["../../../src/bridge/sse/mapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAC/D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAA;AACrD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAA;AAEzD,MAAM,WAAW,iBAAiB;IACjC,IAAI,EAAE,eAAe,CAAA;IACrB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC7B;;;;;;;;;;;;;;;;;OAiBG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;CACX;AA6kBD,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,GAAG,iBAAiB,GAAG,IAAI,CA0B3F;AAED,0CAA0C;AAC1C,eAAO,MAAM,uBAAuB,4BAAsB,CAAA"}
@@ -367,6 +367,17 @@ const MAPPING = {
367
367
  depth: e.depth,
368
368
  ...(e.planId ? { plan_id: e.planId } : {}),
369
369
  ...(e.planStepId ? { plan_step_id: e.planStepId } : {}),
370
+ // Display grouping, so a remote consumer can rebuild the tree the
371
+ // operator sees instead of a flat list of children. These fields are
372
+ // display annotations only; they do not create dependencies,
373
+ // barriers, or serial execution — `plan_id`/`plan_step_id` above are
374
+ // the correlation a consumer may act on. Spread conditionally: this
375
+ // transform is an allowlist, and a key that is always present would
376
+ // tell a consumer a host had grouped work when it had not.
377
+ ...(e.workflow ? { workflow: e.workflow } : {}),
378
+ ...(e.phase ? { phase: e.phase } : {}),
379
+ ...(e.phaseDetail ? { phase_detail: e.phaseDetail } : {}),
380
+ ...(e.phaseOrder !== undefined ? { phase_order: e.phaseOrder } : {}),
370
381
  }),
371
382
  },
372
383
  agent_completed: {
@@ -1 +1 @@
1
- {"version":3,"file":"mapper.js","sourceRoot":"","sources":["../../../src/bridge/sse/mapper.ts"],"names":[],"mappings":"AAiCA,MAAM,OAAO,GAET;IACH,+DAA+D;IAC/D,mBAAmB,EAAE,IAAI;IACzB,WAAW,EAAE;QACZ,IAAI,EAAE,aAAa;QACnB,SAAS,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC;YACzB,MAAM,EAAE,KAAK;YACb,SAAS,EAAE,CAAC,CAAC,SAAS;YACtB,IAAI,EAAE,CAAC,CAAC,IAAI;SACZ,CAAC;KACF;IACD,WAAW,EAAE;QACZ,IAAI,EAAE,aAAa;QACnB,SAAS,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC;YACzB,MAAM,EAAE,KAAK;YACb,aAAa,EAAE,CAAC,CAAC,YAAY,IAAI,IAAI;SACrC,CAAC;KACF;IAED,iBAAiB,EAAE;QAClB,IAAI,EAAE,mBAAmB;QACzB,SAAS,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC,SAAS,EAAE,CAAC;KACpE;IAED,kEAAkE;IAClE,mEAAmE;IACnE,4CAA4C;IAC5C,uBAAuB,EAAE;QACxB,IAAI,EAAE,yBAAyB;QAC/B,SAAS,EAAE,CAAC,CAAC,EAAE,KAAK,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GAAG,SAAS,CAAC,aAAa,CAAA;IAC/C,CAAC;IACD,IAAI,cAAc,IAAI,SAAS,IAAI,SAAS,CAAC,YAAY,EAAE,CAAC;QAC3D,IAAI,CAAC,cAAc,GAAG,SAAS,CAAC,YAAY,CAAA;IAC7C,CAAC;IAED,qEAAqE;IACrE,4EAA4E;IAC5E,yEAAyE;IACzE,sCAAsC;IACtC,OAAO;QACN,IAAI,EAAE,OAAO,CAAC,IAAI;QAClB,IAAI;QACJ,GAAG,CAAC,KAAK,CAAC,GAAG,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC,KAAK,IAAI,KAAK,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KACzE,CAAA;AACF,CAAC;AAED,0CAA0C;AAC1C,MAAM,CAAC,MAAM,uBAAuB,GAAG,mBAAmB,CAAA"}
@@ -11,6 +11,6 @@ export { HttpConnector } from './builtins/http.js';
11
11
  export { WebhookConnector } from './builtins/webhook.js';
12
12
  export { BaseExecutionContext, CommandCancellationUnsupportedError, ExecutionContextFactory, HybridExecutionContext, LocalExecutionContext, RemoteExecutionBusyError, RemoteExecutionContext, } from '../execution/index.js';
13
13
  export type { HybridExecutionContextOptions, LocalExecutionContextOptions, RemoteExecutionContextOptions, } from '../execution/index.js';
14
- export { applyNamePolicy, applyToolPolicy, diffTools, hasDrift, HttpSseTransport, MCPClient, MCPConnectorBridge, MCPMethodNotFound, MCPServer, MCPToolDiscovery, mcpJsonSchemaToZod, mcpPromptToToolDefinition, mcpToolResultToToolResult, mcpToolToToolDefinition, renderPromptMessages, ServerStdioTransport, StdioTransport, StreamableHttpTransport, toolDefinitionToMCPTool, toolResultToMCPToolResult, toolsHash, zodToMCPJsonSchema, } from './mcp/index.js';
15
- export type { MCPServerPromptProvider, MCPServerResourceProvider, MCPServerToolProvider, MCPToolDiscoveryOptions, MCPToolDrift, MCPToolPolicy, MCPToolPolicyDecision, } from './mcp/index.js';
14
+ export { applyNamePolicy, applyToolPolicy, buildEnvelope, classifyModernHttpFailure, createMcpEraCache, defaultMcpEraCache, diffTools, encodeMcpHeaderValue, hasDrift, HttpSseTransport, isHeaderMismatchError, isMissingRequiredClientCapabilityError, isRecognizedModernError, isResourceNotFoundError, isUnsupportedProtocolVersionError, mcpEraCacheKey, MCPClient, MCPConnectorBridge, decodeResult, MCPHttpStatusError, MCPInputRequiredError, MCPInvalidResultTypeError, MCPMethodNotFound, MCPProtocolError, MCPServer, MCPToolDiscovery, mcpJsonSchemaToZod, mcpPromptToToolDefinition, mcpToolResultToToolResult, mcpToolToToolDefinition, renderPromptMessages, resolveMcpEra, ServerStdioTransport, StdioTransport, StreamableHttpTransport, toolDefinitionToMCPTool, toolResultToMCPToolResult, toolsHash, validateMcpHeaderAnnotations, zodToMCPJsonSchema, } from './mcp/index.js';
15
+ export type { McpEnvelope, McpEnvelopeInput, McpEraProbe, McpHeaderAnnotationVerdict, McpParamHeaderBinding, McpEraProbeAnswer, McpEraResolution, McpEraResolutionInput, MCPDecodedResult, MCPServerPromptProvider, MCPServerResourceProvider, MCPServerToolProvider, MCPToolDiscoveryOptions, MCPToolDrift, MCPToolPolicy, MCPToolPolicyDecision, } from './mcp/index.js';
16
16
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/connector/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAElD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAA;AACxE,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAA;AAEzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAA;AACpE,YAAY,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAA;AAE/E,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAA;AACvE,YAAY,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAA;AAElF,OAAO,EAAE,2BAA2B,EAAE,MAAM,qCAAqC,CAAA;AACjF,YAAY,EACX,yBAAyB,EACzB,iCAAiC,GACjC,MAAM,qCAAqC,CAAA;AAE5C,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAMxD,OAAO,EACN,oBAAoB,EACpB,mCAAmC,EACnC,uBAAuB,EACvB,sBAAsB,EACtB,qBAAqB,EACrB,wBAAwB,EACxB,sBAAsB,GACtB,MAAM,uBAAuB,CAAA;AAC9B,YAAY,EACX,6BAA6B,EAC7B,4BAA4B,EAC5B,6BAA6B,GAC7B,MAAM,uBAAuB,CAAA;AAQ9B,OAAO,EACN,eAAe,EACf,eAAe,EACf,SAAS,EACT,QAAQ,EACR,gBAAgB,EAChB,SAAS,EACT,kBAAkB,EAClB,iBAAiB,EACjB,SAAS,EACT,gBAAgB,EAChB,kBAAkB,EAClB,yBAAyB,EACzB,yBAAyB,EACzB,uBAAuB,EACvB,oBAAoB,EACpB,oBAAoB,EACpB,cAAc,EACd,uBAAuB,EACvB,uBAAuB,EACvB,yBAAyB,EACzB,SAAS,EACT,kBAAkB,GAClB,MAAM,gBAAgB,CAAA;AACvB,YAAY,EACX,uBAAuB,EACvB,yBAAyB,EACzB,qBAAqB,EACrB,uBAAuB,EACvB,YAAY,EACZ,aAAa,EACb,qBAAqB,GACrB,MAAM,gBAAgB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/connector/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAElD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAA;AACxE,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAA;AAEzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAA;AACpE,YAAY,EAA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EAC1B,qBAAqB,EACrB,iBAAiB,EACjB,gBAAgB,EAChB,qBAAqB,EACrB,gBAAgB,EAChB,uBAAuB,EACvB,yBAAyB,EACzB,qBAAqB,EACrB,uBAAuB,EACvB,YAAY,EACZ,aAAa,EACb,qBAAqB,GACrB,MAAM,gBAAgB,CAAA"}
@@ -17,5 +17,5 @@ export { BaseExecutionContext, CommandCancellationUnsupportedError, ExecutionCon
17
17
  // `MCPServer` was public with no public way to serve it — a consumer could
18
18
  // construct the thing and not run it. Sourcing from the barrel means a name
19
19
  // added there cannot be silently dropped on the way out.
20
- export { applyNamePolicy, applyToolPolicy, diffTools, hasDrift, HttpSseTransport, MCPClient, MCPConnectorBridge, MCPMethodNotFound, MCPServer, MCPToolDiscovery, mcpJsonSchemaToZod, mcpPromptToToolDefinition, mcpToolResultToToolResult, mcpToolToToolDefinition, renderPromptMessages, ServerStdioTransport, StdioTransport, StreamableHttpTransport, toolDefinitionToMCPTool, toolResultToMCPToolResult, toolsHash, zodToMCPJsonSchema, } from './mcp/index.js';
20
+ export { applyNamePolicy, applyToolPolicy, buildEnvelope, classifyModernHttpFailure, createMcpEraCache, defaultMcpEraCache, diffTools, encodeMcpHeaderValue, hasDrift, HttpSseTransport, isHeaderMismatchError, isMissingRequiredClientCapabilityError, isRecognizedModernError, isResourceNotFoundError, isUnsupportedProtocolVersionError, mcpEraCacheKey, MCPClient, MCPConnectorBridge, decodeResult, MCPHttpStatusError, MCPInputRequiredError, MCPInvalidResultTypeError, MCPMethodNotFound, MCPProtocolError, MCPServer, MCPToolDiscovery, mcpJsonSchemaToZod, mcpPromptToToolDefinition, mcpToolResultToToolResult, mcpToolToToolDefinition, renderPromptMessages, resolveMcpEra, ServerStdioTransport, StdioTransport, StreamableHttpTransport, toolDefinitionToMCPTool, toolResultToMCPToolResult, toolsHash, validateMcpHeaderAnnotations, zodToMCPJsonSchema, } from './mcp/index.js';
21
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/connector/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAElD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAA;AACxE,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAA;AAEzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAA;AAGpE,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAA;AAGvE,OAAO,EAAE,2BAA2B,EAAE,MAAM,qCAAqC,CAAA;AAMjF,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAExD,sEAAsE;AACtE,4EAA4E;AAC5E,0EAA0E;AAC1E,0BAA0B;AAC1B,OAAO,EACN,oBAAoB,EACpB,mCAAmC,EACnC,uBAAuB,EACvB,sBAAsB,EACtB,qBAAqB,EACrB,wBAAwB,EACxB,sBAAsB,GACtB,MAAM,uBAAuB,CAAA;AAO9B,0EAA0E;AAC1E,yEAAyE;AACzE,kEAAkE;AAClE,2EAA2E;AAC3E,4EAA4E;AAC5E,yDAAyD;AACzD,OAAO,EACN,eAAe,EACf,eAAe,EACf,SAAS,EACT,QAAQ,EACR,gBAAgB,EAChB,SAAS,EACT,kBAAkB,EAClB,iBAAiB,EACjB,SAAS,EACT,gBAAgB,EAChB,kBAAkB,EAClB,yBAAyB,EACzB,yBAAyB,EACzB,uBAAuB,EACvB,oBAAoB,EACpB,oBAAoB,EACpB,cAAc,EACd,uBAAuB,EACvB,uBAAuB,EACvB,yBAAyB,EACzB,SAAS,EACT,kBAAkB,GAClB,MAAM,gBAAgB,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/connector/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAElD,OAAO,EAAE,iBA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@
1
- {"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../../src/connector/mcp/adapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAIvB,OAAO,KAAK,EACX,aAAa,EACb,iBAAiB,EACjB,aAAa,EACb,MAAM,gCAAgC,CAAA;AAEvC,OAAO,KAAK,EAAe,cAAc,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAA;AACxF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAI5C,gFAAgF;AAChF,eAAO,MAAM,kBAAkB,6CAA6C,CAAA;AAsB5E;;;;;;;;;;;;;GAaG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,aAAa,GAAG,CAAC,CAAC,OAAO,CAOnE;AA0XD,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,CAAC,CAAC,OAAO,GAAG,aAAa,CAMtE;AAED,wBAAgB,uBAAuB,CACtC,IAAI,EAAE,iBAAiB,EACvB,MAAM,EAAE,SAAS,EACjB,UAAU,EAAE,MAAM;AAClB;;;;GAIG;AACH,mBAAmB,UAAQ,GACzB,cAAc,CAqDhB;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,cAAc,GAAG,iBAAiB,CAa/E;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAgB,iBAAiB,CAChC,MAAM,EAAE,UAAU,EAClB,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,GACd,UAAU,CA2BZ;AAED,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,aAAa,GAAG,UAAU,CAiF3E;AAaD,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,UAAU,GAAG,aAAa,CAmB3E"}
1
+ {"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../../src/connector/mcp/adapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAIvB,OAAO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