@animalabs/agent-framework 0.33.0 → 0.34.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 (176) hide show
  1. package/README.md +136 -8
  2. package/dist/src/agent.d.ts +25 -4
  3. package/dist/src/agent.d.ts.map +1 -1
  4. package/dist/src/agent.js +68 -13
  5. package/dist/src/agent.js.map +1 -1
  6. package/dist/src/append-all.d.ts +5 -0
  7. package/dist/src/append-all.d.ts.map +1 -0
  8. package/dist/src/append-all.js +8 -0
  9. package/dist/src/append-all.js.map +1 -0
  10. package/dist/src/context-options.d.ts +9 -6
  11. package/dist/src/context-options.d.ts.map +1 -1
  12. package/dist/src/context-options.js +13 -8
  13. package/dist/src/context-options.js.map +1 -1
  14. package/dist/src/cut-off-round.js +4 -4
  15. package/dist/src/dendrite/registry.d.ts.map +1 -1
  16. package/dist/src/dendrite/registry.js +4 -2
  17. package/dist/src/dendrite/registry.js.map +1 -1
  18. package/dist/src/failure-text.d.ts +36 -0
  19. package/dist/src/failure-text.d.ts.map +1 -0
  20. package/dist/src/failure-text.js +89 -0
  21. package/dist/src/failure-text.js.map +1 -0
  22. package/dist/src/framework.d.ts +94 -30
  23. package/dist/src/framework.d.ts.map +1 -1
  24. package/dist/src/framework.js +987 -284
  25. package/dist/src/framework.js.map +1 -1
  26. package/dist/src/gate/event-gate.d.ts +40 -6
  27. package/dist/src/gate/event-gate.d.ts.map +1 -1
  28. package/dist/src/gate/event-gate.js +66 -25
  29. package/dist/src/gate/event-gate.js.map +1 -1
  30. package/dist/src/gate/reply-judge.d.ts +4 -0
  31. package/dist/src/gate/reply-judge.d.ts.map +1 -1
  32. package/dist/src/gate/reply-judge.js +12 -3
  33. package/dist/src/gate/reply-judge.js.map +1 -1
  34. package/dist/src/gate/suppression-review.js +2 -2
  35. package/dist/src/gate/suppression-review.js.map +1 -1
  36. package/dist/src/gate/types.d.ts +7 -0
  37. package/dist/src/gate/types.d.ts.map +1 -1
  38. package/dist/src/heartbeat/heartbeat.js +1 -1
  39. package/dist/src/heartbeat/heartbeat.js.map +1 -1
  40. package/dist/src/index.d.ts +1 -0
  41. package/dist/src/index.d.ts.map +1 -1
  42. package/dist/src/index.js +1 -0
  43. package/dist/src/index.js.map +1 -1
  44. package/dist/src/inference-bounds.d.ts +2 -1
  45. package/dist/src/inference-bounds.d.ts.map +1 -1
  46. package/dist/src/inference-bounds.js +9 -6
  47. package/dist/src/inference-bounds.js.map +1 -1
  48. package/dist/src/mcpl/channel-registry.d.ts +57 -13
  49. package/dist/src/mcpl/channel-registry.d.ts.map +1 -1
  50. package/dist/src/mcpl/channel-registry.js +136 -24
  51. package/dist/src/mcpl/channel-registry.js.map +1 -1
  52. package/dist/src/mcpl/modern-connection.d.ts +109 -15
  53. package/dist/src/mcpl/modern-connection.d.ts.map +1 -1
  54. package/dist/src/mcpl/modern-connection.js +593 -86
  55. package/dist/src/mcpl/modern-connection.js.map +1 -1
  56. package/dist/src/mcpl/protocol-family.d.ts +3 -1
  57. package/dist/src/mcpl/protocol-family.d.ts.map +1 -1
  58. package/dist/src/mcpl/protocol-family.js +15 -9
  59. package/dist/src/mcpl/protocol-family.js.map +1 -1
  60. package/dist/src/mcpl/server-connection.d.ts +37 -18
  61. package/dist/src/mcpl/server-connection.d.ts.map +1 -1
  62. package/dist/src/mcpl/server-connection.js +31 -16
  63. package/dist/src/mcpl/server-connection.js.map +1 -1
  64. package/dist/src/mcpl/tool-presence.d.ts.map +1 -1
  65. package/dist/src/mcpl/tool-presence.js +10 -6
  66. package/dist/src/mcpl/tool-presence.js.map +1 -1
  67. package/dist/src/mcpl/toolset-host.d.ts.map +1 -1
  68. package/dist/src/mcpl/toolset-host.js +7 -6
  69. package/dist/src/mcpl/toolset-host.js.map +1 -1
  70. package/dist/src/mcpl/toolsets-module.d.ts.map +1 -1
  71. package/dist/src/mcpl/toolsets-module.js +2 -1
  72. package/dist/src/mcpl/toolsets-module.js.map +1 -1
  73. package/dist/src/mcpl/types.d.ts +25 -4
  74. package/dist/src/mcpl/types.d.ts.map +1 -1
  75. package/dist/src/mcpl/types.js.map +1 -1
  76. package/dist/src/modules/discord/index.js +1 -1
  77. package/dist/src/modules/discord/index.js.map +1 -1
  78. package/dist/src/modules/health/index.js +2 -2
  79. package/dist/src/modules/health/index.js.map +1 -1
  80. package/dist/src/modules/history/semantic.js +3 -3
  81. package/dist/src/modules/history/semantic.js.map +1 -1
  82. package/dist/src/modules/workspace/index.d.ts.map +1 -1
  83. package/dist/src/modules/workspace/index.js +4 -3
  84. package/dist/src/modules/workspace/index.js.map +1 -1
  85. package/dist/src/modules/workspace/observe.d.ts.map +1 -1
  86. package/dist/src/modules/workspace/observe.js +2 -1
  87. package/dist/src/modules/workspace/observe.js.map +1 -1
  88. package/dist/src/modules/workspace/reconcile.d.ts.map +1 -1
  89. package/dist/src/modules/workspace/reconcile.js +3 -2
  90. package/dist/src/modules/workspace/reconcile.js.map +1 -1
  91. package/dist/src/notice-tags.d.ts +10 -8
  92. package/dist/src/notice-tags.d.ts.map +1 -1
  93. package/dist/src/notice-tags.js +10 -8
  94. package/dist/src/notice-tags.js.map +1 -1
  95. package/dist/src/presentation.d.ts +2 -1
  96. package/dist/src/presentation.d.ts.map +1 -1
  97. package/dist/src/presentation.js +4 -2
  98. package/dist/src/presentation.js.map +1 -1
  99. package/dist/src/reasoning-loss.d.ts +5 -0
  100. package/dist/src/reasoning-loss.d.ts.map +1 -0
  101. package/dist/src/reasoning-loss.js +8 -0
  102. package/dist/src/reasoning-loss.js.map +1 -0
  103. package/dist/src/recovery/offline-branch.d.ts.map +1 -1
  104. package/dist/src/recovery/offline-branch.js +5 -4
  105. package/dist/src/recovery/offline-branch.js.map +1 -1
  106. package/dist/src/recovery/recover-cli.js +2 -1
  107. package/dist/src/recovery/recover-cli.js.map +1 -1
  108. package/dist/src/sent-rows.js +1 -1
  109. package/dist/src/supplied-text.d.ts +1 -1
  110. package/dist/src/supplied-text.js +3 -3
  111. package/dist/src/supplied-text.js.map +1 -1
  112. package/dist/src/thinking-drops.d.ts +2 -0
  113. package/dist/src/thinking-drops.d.ts.map +1 -1
  114. package/dist/src/thinking-drops.js.map +1 -1
  115. package/dist/src/tool-presentation.d.ts.map +1 -1
  116. package/dist/src/tool-presentation.js +38 -9
  117. package/dist/src/tool-presentation.js.map +1 -1
  118. package/dist/src/tune-out/coordinator.d.ts +13 -4
  119. package/dist/src/tune-out/coordinator.d.ts.map +1 -1
  120. package/dist/src/tune-out/coordinator.js +33 -16
  121. package/dist/src/tune-out/coordinator.js.map +1 -1
  122. package/dist/src/tune-out/tools.d.ts.map +1 -1
  123. package/dist/src/tune-out/tools.js +2 -1
  124. package/dist/src/tune-out/tools.js.map +1 -1
  125. package/dist/src/types/agent.d.ts +39 -5
  126. package/dist/src/types/agent.d.ts.map +1 -1
  127. package/dist/src/types/framework.d.ts +43 -8
  128. package/dist/src/types/framework.d.ts.map +1 -1
  129. package/dist/src/types/inference-log.d.ts +1 -0
  130. package/dist/src/types/inference-log.d.ts.map +1 -1
  131. package/dist/src/types/trace.d.ts +64 -4
  132. package/dist/src/types/trace.d.ts.map +1 -1
  133. package/package.json +3 -3
  134. package/src/agent.ts +71 -14
  135. package/src/append-all.ts +6 -0
  136. package/src/context-options.ts +18 -8
  137. package/src/cut-off-round.ts +4 -4
  138. package/src/dendrite/registry.ts +4 -2
  139. package/src/failure-text.ts +88 -0
  140. package/src/framework.ts +1018 -293
  141. package/src/gate/event-gate.ts +90 -26
  142. package/src/gate/reply-judge.ts +12 -3
  143. package/src/gate/suppression-review.ts +2 -2
  144. package/src/gate/types.ts +7 -0
  145. package/src/heartbeat/heartbeat.ts +1 -1
  146. package/src/index.ts +1 -0
  147. package/src/inference-bounds.ts +11 -6
  148. package/src/mcpl/channel-registry.ts +160 -31
  149. package/src/mcpl/modern-connection.ts +629 -91
  150. package/src/mcpl/protocol-family.ts +15 -9
  151. package/src/mcpl/server-connection.ts +28 -15
  152. package/src/mcpl/tool-presence.ts +10 -5
  153. package/src/mcpl/toolset-host.ts +7 -6
  154. package/src/mcpl/toolsets-module.ts +2 -1
  155. package/src/mcpl/types.ts +25 -4
  156. package/src/modules/discord/index.ts +1 -1
  157. package/src/modules/health/index.ts +2 -2
  158. package/src/modules/history/semantic.ts +3 -3
  159. package/src/modules/workspace/index.ts +4 -3
  160. package/src/modules/workspace/observe.ts +2 -1
  161. package/src/modules/workspace/reconcile.ts +3 -2
  162. package/src/notice-tags.ts +11 -8
  163. package/src/presentation.ts +4 -2
  164. package/src/reasoning-loss.ts +7 -0
  165. package/src/recovery/offline-branch.ts +5 -4
  166. package/src/recovery/recover-cli.ts +2 -1
  167. package/src/sent-rows.ts +1 -1
  168. package/src/supplied-text.ts +3 -3
  169. package/src/thinking-drops.ts +2 -0
  170. package/src/tool-presentation.ts +34 -9
  171. package/src/tune-out/coordinator.ts +32 -15
  172. package/src/tune-out/tools.ts +2 -1
  173. package/src/types/agent.ts +36 -5
  174. package/src/types/framework.ts +44 -8
  175. package/src/types/inference-log.ts +1 -0
  176. package/src/types/trace.ts +66 -4
@@ -20,7 +20,8 @@ export declare class ModernMcpConnection extends EventEmitter {
20
20
  readonly id: string;
21
21
  readonly family: 'modern';
22
22
  readonly transportKind: 'stdio' | 'http';
23
- /** The pinned revision, once a connect has established it; null before. */
23
+ /** The revision the last connect established (over HTTP, the one it
24
+ * negotiated); null before any has. */
24
25
  protocolVersion: string | null;
25
26
  private session;
26
27
  /** A connect in flight, owned so `close()` can end it. */
@@ -32,6 +33,10 @@ export declare class ModernMcpConnection extends EventEmitter {
32
33
  private readonly reconnectMaxIntervalMs;
33
34
  private reconnectTimer;
34
35
  private reconnectAttempts;
36
+ private restarting;
37
+ private adoptedAt;
38
+ private youngRestartFree;
39
+ private stopped;
35
40
  /** At most one pending reopen, and only ever for the current generation. */
36
41
  private relisten;
37
42
  private relistenAttempts;
@@ -54,10 +59,15 @@ export declare class ModernMcpConnection extends EventEmitter {
54
59
  /** The per-call deadline: `requestTimeoutMs`, validated positive. */
55
60
  get requestTimeoutMs(): number;
56
61
  get isConnected(): boolean;
57
- /** Whether a lost connection will be re-established in the background. */
62
+ /** Whether a lost connection will be re-established in the background:
63
+ * with `reconnect` set, or while a new session starts in place of one the
64
+ * server ended. */
58
65
  get willReconnect(): boolean;
59
66
  /**
60
- * Stop reconnecting, closing nothing, as the legacy engine's does.
67
+ * Stop reconnecting, as the legacy engine's does, leaving the live session
68
+ * open. A session the server ends from then on isn't restarted either (see
69
+ * {@link sessionEnded}), and a reconnect or restart still connecting
70
+ * doesn't come up: its new session is closed.
61
71
  * @internal For the framework's stop(); not a host API.
62
72
  */
63
73
  stopReconnecting(): void;
@@ -119,10 +129,9 @@ export declare class ModernMcpConnection extends EventEmitter {
119
129
  /** Connect one generation's client, and adopt it if it's still current. */
120
130
  private establish;
121
131
  /**
122
- * The server refused the pinned revision (no common one in its
123
- * `server/discover` answer, or an unsupported-version error): a
124
- * configuration verdict, as for the legacy engine, in the same type, so
125
- * every reader treats both engines alike. Retrying can't change it.
132
+ * This client and the server couldn't negotiate a revision: a configuration
133
+ * verdict, as for the legacy engine, in the same type, so every reader
134
+ * treats both engines alike. Retrying can't change it.
126
135
  */
127
136
  private versionVerdict;
128
137
  /**
@@ -138,6 +147,76 @@ export declare class ModernMcpConnection extends EventEmitter {
138
147
  private cancelRelisten;
139
148
  private scheduleRelisten;
140
149
  private reopenSubscription;
150
+ /**
151
+ * The HTTP transport's fetch, observed for one session. It observes a
152
+ * 2025 connection's requests: those carrying a 2025 revision in
153
+ * `MCP-Protocol-Version`, which the SDK sends on each request after
154
+ * `initialize`, with a session id or without one (the id is optional). The
155
+ * handshake's own requests and a 2026-07-28 connection's pass through. The
156
+ * transport reports these HTTP outcomes only as errors, or not at all:
157
+ * - A 404 to a request that carried the session's id: the server has ended
158
+ * the session. A POST's 404 is also that request's answer: the server
159
+ * refused it without running it. That's marked on the leg's record (its
160
+ * body's id names the leg) before anything else runs, since ending the
161
+ * session closes its client, which can fail the call before the
162
+ * transport's own 404 error reaches it.
163
+ * - The standalone stream's first open, the one GET without
164
+ * `Last-Event-ID` before that stream has opened, is the exception. Its
165
+ * 404 can also mean the server has no GET route at all, which a server
166
+ * that routes only POST answers, and reading it as the session's end
167
+ * would make such a server unreachable. It ends nothing: the SDK reports
168
+ * it as an error and opens no stream, as it does for any refusal of that
169
+ * open but a 405, which it takes quietly, and a 401, which its credential
170
+ * refresh tries once more. A session that really ended
171
+ * meets the 404 on its next POST, such as the framework's relist after
172
+ * the connect. The SDK never retries this open, so {@link firstOpen}
173
+ * does, on a failure that may pass.
174
+ * - A 400 carrying the JSON-RPC error -32022 (unsupported protocol
175
+ * version), to any request: the server no longer serves this revision,
176
+ * as the SDK's 2026 handler answers a 2025 request when it refuses
177
+ * legacy traffic (`legacy: 'reject'`). The connection negotiates again,
178
+ * and settles on 2026-07-28 when the server offers it. A POST's refusal
179
+ * is that request's answer, a JSON-RPC error, as the SDK reads such a 400
180
+ * on 2026-07-28: marked on its record as a 404 is.
181
+ * - A 405 to a GET for one of the session's streams that the server had
182
+ * served: the standalone stream opening again after it had opened, or a
183
+ * request's stream resumed, which the server gave an event id. The server
184
+ * no longer serves this session a stream, as the SDK's 2026 handler
185
+ * answers a 2025 session it now serves statelessly, or refuses. The
186
+ * connection negotiates again. A first open's 405 says only that the
187
+ * server offers no stream, so it changes nothing. Each of these three,
188
+ * the 404, the -32022 and the 405, marks the session ended at once
189
+ * (`http.ended`), so it gets no DELETE: the server has let it go.
190
+ * - The standalone stream opening again, after it had opened, without
191
+ * `Last-Event-ID`: it couldn't ask for what it missed, whether because
192
+ * the server's events carry no ids or because the stream that dropped
193
+ * had carried none (the SDK keeps a stream's last id only for that
194
+ * stream). See {@link streamReopened}. A GET that carries one resumes a
195
+ * stream, the standalone one or a request's, and the server replays
196
+ * what that stream missed.
197
+ * - A standalone resume the server refuses with 400, as one does for an
198
+ * event id it no longer holds: retrying the same id can't succeed, and
199
+ * the SDK would retry it for the session's life. The stream opens again
200
+ * without the id instead, which is a reopen that missed what came between.
201
+ * A request stream's resume refused that way is left to the SDK: it is
202
+ * retried until its request's answer arrives on it, or its deadline
203
+ * cancels it (see ObservedTransport's `aborts`).
204
+ */
205
+ private observedFetch;
206
+ /** The SDK makes the standalone stream's first open once, and never
207
+ * retries it. */
208
+ private firstOpen;
209
+ /**
210
+ * The HTTP transport's scheduler for trying a stream again, for both
211
+ * streams it retries: the standalone stream and a request's stream the
212
+ * server closed after a priming event (2025-11-25). The server's `retry`
213
+ * hint is respected, as the spec requires. `hinted` is the server's hint
214
+ * alone, or 0, since the transport's own backoff is zeroed.
215
+ */
216
+ private readonly streamRetry;
217
+ /** The spec has a client whose session met a 404 start a new one. */
218
+ private sessionEnded;
219
+ private streamReopened;
141
220
  /** The transport went away (child exit, or a closed HTTP client). */
142
221
  private handleLost;
143
222
  /** The legacy engine's backoff: doubling from the base interval, capped,
@@ -158,7 +237,8 @@ export declare class ModernMcpConnection extends EventEmitter {
158
237
  * Call a tool within the configured deadline. One budget covers the whole
159
238
  * logical call: the SDK's per-leg timer and its `maxTotalTimeout` across
160
239
  * continuation rounds, and an abort signal around any retry the SDK makes
161
- * before dispatch (an auth refresh, or a header-mismatch relist).
240
+ * before dispatch (an auth refresh, or a header-mismatch relist). That
241
+ * signal also fires when the call's stream is lost (WireRecord's `cancel`).
162
242
  */
163
243
  callTool(name: string, args: Record<string, unknown>): Promise<ModernToolCallResult>;
164
244
  /** Run one logical request in a wire scope, and classify its failure by
@@ -173,6 +253,16 @@ export declare class ModernMcpConnection extends EventEmitter {
173
253
  * framework's unguarded wait on it rely on.
174
254
  */
175
255
  private static closeSession;
256
+ /**
257
+ * End an HTTP session on the server (a DELETE), as the spec asks of a
258
+ * client that no longer needs it. It runs before the inner transport
259
+ * closes, since that close would abort it. When a connect fails after its
260
+ * `initialize` was answered, the SDK closes the transport itself before
261
+ * the error reaches `establish`. The transport sends nothing for a session
262
+ * without an id, and the SDK reports a DELETE's failure through the
263
+ * transport's onerror.
264
+ */
265
+ private static endSession;
176
266
  /** The close in flight, which later calls wait behind. */
177
267
  private closing;
178
268
  /** Set when the host closes a live session; cleared, with the one
@@ -215,13 +305,17 @@ export declare class ModernMcpConnection extends EventEmitter {
215
305
  * rounds cap). Nothing is in flight then, so nothing is cancelled. A
216
306
  * result of a type this client doesn't recognize ends the call where it
217
307
  * is;
218
- * - an HTTP 401/403 refusal of the current leg: `error-response`, the
219
- * status in `data.httpStatus` (the server answered at the HTTP layer,
220
- * outside the JSON-RPC code space). After an earlier leg
221
- * asked for another round it is `no-response` instead: the server may
222
- * already have acted on the call;
223
- * - handed off and unanswered: `no-response`. At the deadline, cancellation
224
- * was requested and the outcome is unknown.
308
+ * - an HTTP refusal of the current leg: `error-response`, the status in
309
+ * `data.httpStatus` (the server answered at the HTTP layer, outside the
310
+ * JSON-RPC code space). That's a 401 or 403, or a 404 to a POST from a
311
+ * server that had ended the session (`sessionEnded`, read at the HTTP
312
+ * layer, whatever error the call then met as its session closed). After
313
+ * an earlier leg asked for another round it is `no-response` instead:
314
+ * the server may already have acted on the call;
315
+ * - handed off and unanswered: `no-response`, and the outcome is unknown.
316
+ * At the deadline, cancellation was requested, and so it was when the
317
+ * stream that would carry the answer ended unresumed (WireRecord's
318
+ * `cancel`).
225
319
  *
226
320
  * The message is the agent's, in the legacy engine's words where it has
227
321
  * words for the same outcome (#506), and in their shape where it hasn't:
@@ -1 +1 @@
1
- {"version":3,"file":"modern-connection.d.ts","sourceRoot":"","sources":["../../../src/mcpl/modern-connection.ts"],"names":[],"mappings":"AAgDA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C,OAAO,EAUL,KAAK,cAAc,EAMpB,MAAM,8BAA8B,CAAC;AAKtC,OAAO,KAAK,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAWtE;yEACyE;AACzE,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,cAAc,CAAC,SAAS,CAAC,CAAC;IACnC,OA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