agentfootprint 11.4.0 → 11.5.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 (116) hide show
  1. package/CAPABILITIES.md +2 -1
  2. package/dist/adapters/mcp/agentcoreRuntime/invoke.js +7 -6
  3. package/dist/adapters/mcp/agentcoreRuntime/invoke.js.map +1 -1
  4. package/dist/adapters/mcp/agentcoreRuntime/sessionBusy.js +36 -2
  5. package/dist/adapters/mcp/agentcoreRuntime/sessionBusy.js.map +1 -1
  6. package/dist/adapters/mcp/agentcoreRuntime/transport.js +3 -1
  7. package/dist/adapters/mcp/agentcoreRuntime/transport.js.map +1 -1
  8. package/dist/esm/adapters/mcp/agentcoreRuntime/invoke.d.ts +7 -6
  9. package/dist/esm/adapters/mcp/agentcoreRuntime/invoke.js +7 -6
  10. package/dist/esm/adapters/mcp/agentcoreRuntime/invoke.js.map +1 -1
  11. package/dist/esm/adapters/mcp/agentcoreRuntime/sessionBusy.d.ts +32 -1
  12. package/dist/esm/adapters/mcp/agentcoreRuntime/sessionBusy.js +35 -1
  13. package/dist/esm/adapters/mcp/agentcoreRuntime/sessionBusy.js.map +1 -1
  14. package/dist/esm/adapters/mcp/agentcoreRuntime/transport.js +4 -2
  15. package/dist/esm/adapters/mcp/agentcoreRuntime/transport.js.map +1 -1
  16. package/dist/esm/events/payloads.d.ts +128 -27
  17. package/dist/esm/mcp/callLifetime.d.ts +57 -14
  18. package/dist/esm/mcp/callLifetime.js +67 -19
  19. package/dist/esm/mcp/callLifetime.js.map +1 -1
  20. package/dist/esm/mcp/callMarker.d.ts +43 -0
  21. package/dist/esm/mcp/callMarker.js +69 -0
  22. package/dist/esm/mcp/callMarker.js.map +1 -0
  23. package/dist/esm/mcp/connectionRefusals.js +7 -0
  24. package/dist/esm/mcp/connectionRefusals.js.map +1 -1
  25. package/dist/esm/mcp/index.d.ts +2 -0
  26. package/dist/esm/mcp/index.js +3 -0
  27. package/dist/esm/mcp/index.js.map +1 -1
  28. package/dist/esm/mcp/mcpClient.js +93 -26
  29. package/dist/esm/mcp/mcpClient.js.map +1 -1
  30. package/dist/esm/mcp/replay.d.ts +283 -0
  31. package/dist/esm/mcp/replay.js +401 -0
  32. package/dist/esm/mcp/replay.js.map +1 -0
  33. package/dist/esm/mcp/replayUnavailable.d.ts +55 -0
  34. package/dist/esm/mcp/replayUnavailable.js +74 -0
  35. package/dist/esm/mcp/replayUnavailable.js.map +1 -0
  36. package/dist/esm/mcp/requestLedger.d.ts +115 -32
  37. package/dist/esm/mcp/requestLedger.js +193 -52
  38. package/dist/esm/mcp/requestLedger.js.map +1 -1
  39. package/dist/esm/mcp/seriesEvidence.d.ts +73 -15
  40. package/dist/esm/mcp/seriesEvidence.js +114 -21
  41. package/dist/esm/mcp/seriesEvidence.js.map +1 -1
  42. package/dist/esm/mcp/throttleRetry.d.ts +86 -42
  43. package/dist/esm/mcp/throttleRetry.js +158 -50
  44. package/dist/esm/mcp/throttleRetry.js.map +1 -1
  45. package/dist/esm/mcp/toolResult.d.ts +6 -0
  46. package/dist/esm/mcp/toolResult.js +15 -0
  47. package/dist/esm/mcp/toolResult.js.map +1 -1
  48. package/dist/esm/mcp/types.d.ts +70 -8
  49. package/dist/esm/redaction/knownStrings.js +13 -0
  50. package/dist/esm/redaction/knownStrings.js.map +1 -1
  51. package/dist/esm/tool-providers/index.d.ts +2 -2
  52. package/dist/esm/tool-providers/index.js +4 -0
  53. package/dist/esm/tool-providers/index.js.map +1 -1
  54. package/dist/esm/tools/requestEvidence.js +60 -0
  55. package/dist/esm/tools/requestEvidence.js.map +1 -1
  56. package/dist/mcp/callLifetime.js +66 -18
  57. package/dist/mcp/callLifetime.js.map +1 -1
  58. package/dist/mcp/callMarker.js +74 -0
  59. package/dist/mcp/callMarker.js.map +1 -0
  60. package/dist/mcp/connectionRefusals.js +7 -0
  61. package/dist/mcp/connectionRefusals.js.map +1 -1
  62. package/dist/mcp/index.js +5 -1
  63. package/dist/mcp/index.js.map +1 -1
  64. package/dist/mcp/mcpClient.js +91 -24
  65. package/dist/mcp/mcpClient.js.map +1 -1
  66. package/dist/mcp/replay.js +411 -0
  67. package/dist/mcp/replay.js.map +1 -0
  68. package/dist/mcp/replayUnavailable.js +79 -0
  69. package/dist/mcp/replayUnavailable.js.map +1 -0
  70. package/dist/mcp/requestLedger.js +193 -52
  71. package/dist/mcp/requestLedger.js.map +1 -1
  72. package/dist/mcp/seriesEvidence.js +116 -22
  73. package/dist/mcp/seriesEvidence.js.map +1 -1
  74. package/dist/mcp/throttleRetry.js +160 -51
  75. package/dist/mcp/throttleRetry.js.map +1 -1
  76. package/dist/mcp/toolResult.js +17 -1
  77. package/dist/mcp/toolResult.js.map +1 -1
  78. package/dist/redaction/knownStrings.js +13 -0
  79. package/dist/redaction/knownStrings.js.map +1 -1
  80. package/dist/tool-providers/index.js +5 -1
  81. package/dist/tool-providers/index.js.map +1 -1
  82. package/dist/tools/requestEvidence.js +60 -0
  83. package/dist/tools/requestEvidence.js.map +1 -1
  84. package/dist/types/adapters/mcp/agentcoreRuntime/invoke.d.ts +7 -6
  85. package/dist/types/adapters/mcp/agentcoreRuntime/invoke.d.ts.map +1 -1
  86. package/dist/types/adapters/mcp/agentcoreRuntime/sessionBusy.d.ts +32 -1
  87. package/dist/types/adapters/mcp/agentcoreRuntime/sessionBusy.d.ts.map +1 -1
  88. package/dist/types/adapters/mcp/agentcoreRuntime/transport.d.ts.map +1 -1
  89. package/dist/types/events/payloads.d.ts +128 -27
  90. package/dist/types/events/payloads.d.ts.map +1 -1
  91. package/dist/types/mcp/callLifetime.d.ts +57 -14
  92. package/dist/types/mcp/callLifetime.d.ts.map +1 -1
  93. package/dist/types/mcp/callMarker.d.ts +44 -0
  94. package/dist/types/mcp/callMarker.d.ts.map +1 -0
  95. package/dist/types/mcp/index.d.ts +2 -0
  96. package/dist/types/mcp/index.d.ts.map +1 -1
  97. package/dist/types/mcp/mcpClient.d.ts.map +1 -1
  98. package/dist/types/mcp/replay.d.ts +284 -0
  99. package/dist/types/mcp/replay.d.ts.map +1 -0
  100. package/dist/types/mcp/replayUnavailable.d.ts +56 -0
  101. package/dist/types/mcp/replayUnavailable.d.ts.map +1 -0
  102. package/dist/types/mcp/requestLedger.d.ts +115 -32
  103. package/dist/types/mcp/requestLedger.d.ts.map +1 -1
  104. package/dist/types/mcp/seriesEvidence.d.ts +73 -15
  105. package/dist/types/mcp/seriesEvidence.d.ts.map +1 -1
  106. package/dist/types/mcp/throttleRetry.d.ts +86 -42
  107. package/dist/types/mcp/throttleRetry.d.ts.map +1 -1
  108. package/dist/types/mcp/toolResult.d.ts +6 -0
  109. package/dist/types/mcp/toolResult.d.ts.map +1 -1
  110. package/dist/types/mcp/types.d.ts +70 -8
  111. package/dist/types/mcp/types.d.ts.map +1 -1
  112. package/dist/types/redaction/knownStrings.d.ts.map +1 -1
  113. package/dist/types/tool-providers/index.d.ts +2 -2
  114. package/dist/types/tool-providers/index.d.ts.map +1 -1
  115. package/dist/types/tools/requestEvidence.d.ts.map +1 -1
  116. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"requestLedger.d.ts","sourceRoot":"","sources":["../../../src/mcp/requestLedger.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAEvE,gDAAgD;AAChD,MAAM,WAAW,aAAa;IAC5B,8CAA8C;IAC9C,QAAQ,CAAC,IAAI,EAAE,mBAAmB,CAAC;IACnC,+FAA+F;IAC/F,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC;CAC/B;AAED,kEAAkE;AAClE,MAAM,WAAW,cAAc;IAC7B,2FAA2F;IAC3F,QAAQ,CAAC,MAAM,CAAC,EAAE,aAAa,CAAC;IAChC,+EAA+E;IAC/E,QAAQ,CAAC,SAAS,EAAE,WAAW,CAAC;CACjC;AAgBD,wF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AEA,OAAO,GAAE,oBAA8B;IAEpE;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CAAC,EAAE,aAAa,GAAG,UAAU;IAUzC,yEAAyE;IACzE,MAAM,CAAC,IAAI,EAAE,UAAU,GAAG,IAAI;IAQ9B,2FAA2F;IAC3F,KAAK,IAAI,IAAI;IAMb;;;OAGG;IACH,IAAI,eAAe,IAAI,OAAO,CAE7B;IAED,gGAAgG;IAChG,IAAI,aAAa,IAAI,MAAM,CAE1B;IAED;;;OAGG;IACH,IAAI,QAAQ,IAAI,MAAM,CAErB;IAED,8GAA8G;IAC9G,YAAY,IAAI,OAAO;IAMvB;;;;;;;;;;OAUG;IACH,KAAK,CAAC,CAAC,SAAS,MAAM,EAAE,SAAS,EAAE,CAAC,GAAG,CAAC,GAAG,SAAS;IAyBpD,4FAA4F;IAC5F,OAAO,CAAC,aAAa;IAcrB,0FAA0F;IAC1F,OAAO,CAAC,OAAO;IAUf;;;;OAIG;IACH,KAAK,CAAC,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,SAAS;IAkBhD,iDAAiD;IACjD,OAAO,CAAC,IAAI;IA0CZ,4FAA4F;IAC5F,OAAO,CAAC,cAAc;IAQtB,iGAAiG;IACjG,OAAO,CAAC,aAAa;CAStB"}
@@ -28,17 +28,31 @@
28
28
  * timed out, or failed — was sent, and the server may have received it and run
29
29
  * it. Its row says so (`remote: 'unknown'`); nothing here records it as not run.
30
30
  *
31
- * WHEN IT FILES. When the series ends — and, for a cancellation, at the moment the
32
- * signal fires: a cancelled run stops waiting for its stage at once, so a record
33
- * filed when the series later unwinds would land after the run was saved. The
34
- * runner makes no record for an attempt it abandons at that moment or for a wait
35
- * it was cut out of, so those are written here: the cut attempt's row and
36
- * `during: 'request'`, or `during: 'wait'`. Anything the series reports after it
37
- * has filed is not part of the request's story any more and is ignored.
31
+ * THREE FACTS PER ATTEMPT, NONE READ FROM ANOTHER (`replay.ts`): the failure
32
+ * (footprintjs's category), what is known of its effect (`unknown` for every
33
+ * attempt sent that did not complete — a refusal included; `applied` when the
34
+ * call completed, never proof of a write; `none` only for what was never
35
+ * sent), and — on an attempt the series asked again after — what permitted it.
36
+ * Each row also says how long it took. The end says how many requests were
37
+ * sent and what is known of the whole series' effect; uncertainty survives
38
+ * (`SeriesKnowledge`).
39
+ *
40
+ * WHEN IT FILES. When the call settles — the series has ended by then, and the
41
+ * call's verdict is what says whether an answered attempt completed (a 200 can
42
+ * carry a tool error) — and, for a cancellation, at the moment the signal
43
+ * fires: a cancelled run stops waiting for its stage at once, so a record filed
44
+ * when the series later unwinds would land after the run was saved. The runner
45
+ * makes no record for an attempt it abandons at that moment or for a wait it
46
+ * was cut out of, so those are written here: the cut attempt's row and
47
+ * `during: 'request'`, or `during: 'wait'`. A series ended and waiting for its
48
+ * call files at once if the call is cancelled first, with what it knows.
49
+ * Anything the series reports after it has filed is not part of the request's
50
+ * story any more and is ignored.
38
51
  */
39
52
  import type { AttemptRecord } from 'footprintjs';
40
- import type { ToolRequestAttempt, ToolRequestReason } from '../events/payloads.js';
53
+ import type { ToolRequestAttempt, ToolRequestEffect, ToolRequestPermission, ToolRequestReason } from '../events/payloads.js';
41
54
  import { type RequestEvidence, type RequestEvidenceSink } from '../tools/requestEvidence.js';
55
+ import { type RequestReplay } from './replay.js';
42
56
  /** Where the request went, as a row may say it: the app's label for it, or its origin. */
43
57
  export type RequestWhere = Pick<RequestEvidence, 'endpoint' | 'origin'>;
44
58
  /** What the series saw of one attempt that its record does not hold. */
@@ -52,24 +66,49 @@ export interface AttemptSeen {
52
66
  };
53
67
  }
54
68
  /** Why the series' `retryOn` said no — the reasons the runner calls `declined`. */
55
- export type DeclineReason = Extract<ToolRequestReason, 'exhausted' | 'wait-limit' | 'no-time-left' | 'not-replayable' | 'not-retryable'>;
69
+ export type DeclineReason = Extract<ToolRequestReason, 'exhausted' | 'wait-limit' | 'no-time-left' | 'not-replayable' | 'not-retryable' | 'not-permitted' | 'changes-without-key'>;
70
+ /**
71
+ * What the series knows of one attempt beyond the runner's record (`replay.ts`):
72
+ * its effect — absent for an answered attempt, which the call's verdict decides
73
+ * when the record is filed — what permitted the next attempt, and how long it
74
+ * took.
75
+ */
76
+ export interface AttemptFacts {
77
+ readonly effect?: ToolRequestEffect;
78
+ readonly permission?: ToolRequestPermission;
79
+ readonly durationMs: number;
80
+ }
81
+ /**
82
+ * Where the record waits for its call: the call's signal (it fires when the
83
+ * call settles or is cancelled), and the facts the call leaves there.
84
+ */
85
+ export interface Settlement {
86
+ readonly signal: AbortSignal;
87
+ readonly replay: RequestReplay;
88
+ }
56
89
  /** One request's evidence, collected as its series runs and filed once. */
57
90
  export declare class SeriesEvidence {
58
91
  private readonly sink;
59
92
  private readonly where;
93
+ private readonly settlement?;
60
94
  private readonly rows;
61
95
  private omitted;
62
96
  private last;
63
97
  private filed;
64
- constructor(sink: RequestEvidenceSink, where: RequestWhere);
65
- /** One attempt as the runner recorded it. */
66
- attempt(record: AttemptRecord, seen: AttemptSeen | undefined, declined?: DeclineReason): void;
98
+ private waiting;
99
+ /** What is known of the series' effect, attempt by attempt — the answer's excepted. */
100
+ private readonly knowledge;
101
+ /** The answered attempt, while its effect waits for the call's verdict. */
102
+ private answer;
103
+ constructor(sink: RequestEvidenceSink, where: RequestWhere, settlement?: Settlement | undefined);
104
+ /** One attempt as the runner recorded it, with what the series knows of it. */
105
+ attempt(record: AttemptRecord, seen: AttemptSeen | undefined, declined?: DeclineReason, facts?: AttemptFacts): void;
67
106
  /**
68
107
  * The caller's cancellation cut attempt `n` in flight. It was sent — the
69
108
  * server may have it, and may have run it — so it is a row, `cut`, with the
70
109
  * remote outcome `unknown`; then the request's end says the same.
71
110
  */
72
- cutInFlight(n: number): void;
111
+ cutInFlight(n: number, durationMs?: number): void;
73
112
  /**
74
113
  * The caller's cancellation landed with NO request in flight: between two —
75
114
  * `during: 'wait'`, the next request never sent — or before the first, when
@@ -82,7 +121,7 @@ export declare class SeriesEvidence {
82
121
  * refusal it will not ask again after. A refusal it MEANT to ask again after
83
122
  * is delivered when the deadline lands inside the wait: the runner's wait
84
123
  * ends early, the series stops, and the end says so (`no-time-left`, during
85
- * the `wait`).
124
+ * the `wait`). Filed when the call has read it.
86
125
  */
87
126
  delivered(): void;
88
127
  /**
@@ -92,12 +131,31 @@ export declare class SeriesEvidence {
92
131
  * as one: a deadline that had passed before the first request (`timed-out`,
93
132
  * no `during`, nothing sent) or one a future runner reports from inside a wait
94
133
  * (`during: 'wait'`); anything else is filed as a failure the record cannot
95
- * account for, so a request is never left unfiled.
134
+ * account for, so a request is never left unfiled. Filed when the call settles.
96
135
  */
97
136
  threw(outOfTime: boolean): void;
98
137
  private add;
138
+ /**
139
+ * File `end` once the call has settled — its verdict is what says whether an
140
+ * answered attempt completed — or at once, when the call is already settled
141
+ * or cancelled, or there is no call to wait for.
142
+ */
143
+ private fileWhenSettled;
99
144
  private file;
145
+ /**
146
+ * The rows, the answered one given its effect: `applied` when the call
147
+ * completed — the server answered it, and not with an error — else `unknown`
148
+ * (a 5xx, a JSON-RPC error, a tool error, a call cancelled before it read the
149
+ * answer). The answer's effect joins the series' knowledge here.
150
+ */
151
+ private settleAnswer;
100
152
  }
101
153
  /** One record as a row — see the module note for what a row may say. */
102
154
  export declare function rowOf(record: AttemptRecord, seen: AttemptSeen | undefined, declined?: DeclineReason): ToolRequestAttempt;
155
+ /**
156
+ * `row` with what the series knows of its attempt beyond the record — its
157
+ * effect, what permitted the next attempt, how long it took. Without `facts`,
158
+ * the row as the record alone says it.
159
+ */
160
+ export declare function withFacts(row: ToolRequestAttempt, facts: AttemptFacts | undefined): ToolRequestAttempt;
103
161
  //# sourceMappingURL=seriesEvidence.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"seriesEvidence.d.ts","sourceRoot":"","sources":["../../../src/mcp/seriesEvidence.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAA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AajB;;;;;;;;OAQG;IACH,KAAK,CAAC,SAAS,EAAE,OAAO,GAAG,IAAI;IAmB/B,OAAO,CAAC,GAAG;IAOX;;;;OAIG;IACH,OAAO,CAAC,eAAe;IAWvB,OAAO,CAAC,IAAI;IAsBZ;;;;;OAKG;IACH,OAAO,CAAC,YAAY;CAQrB;AAcD,wEAAwE;AACxE,wBAAgB,KAAK,CACnB,MAAM,EAAE,aAAa,EACrB,IAAI,EAAE,WAAW,GAAG,SAAS,EAC7B,QAAQ,CAAC,EAAE,aAAa,GACvB,kBAAkB,CAqBpB;AAED;;;;GAIG;AACH,wBAAgB,SAAS,CACvB,GAAG,EAAE,kBAAkB,EACvB,KAAK,EAAE,YAAY,GAAG,SAAS,GAC9B,kBAAkB,CASpB"}
@@ -10,27 +10,33 @@
10
10
  * tool, or invents an answer. A designed, transient, self-clearing condition
11
11
  * was being turned into a wrong answer.
12
12
  *
13
- * ── What retrying a 429 assumes, and why the policy is 429-ONLY ─────────────
14
- * **Automatic 429 retries assume the server rejected the request before
15
- * executing it.** A rate limiter that refuses at the edge has not run the tool —
16
- * but HTTP 429 says only that the request was rate-limited (RFC 6585 §4), so the
17
- * saved response records the assumption's basis (the server's 429), not proof
18
- * that nothing ran. There is no side-effect guard here: a tool with side
19
- * effects is retried on 429 like any other today, and `retryOnThrottle: false`
20
- * turns that off per server. What is certain is the contrast with a 500 or a
21
- * timeout, where the call may have half-run and a retry could charge a card
22
- * twice.
13
+ * ── Who may ask again: the app, by declaration (`replay.ts`) ─────────────────
14
+ * HTTP 429 says only that the request was rate-limited (RFC 6585 §4). It does
15
+ * not prove the server ran nothing, and `Retry-After` says when to ask again,
16
+ * not that asking is safe. So permission to send a tool call again is the
17
+ * APP's, declared per (server, tool) when the client is built (`mcpClient({
18
+ * replay })`), and kept apart from what is known of an attempt's effect. Before
19
+ * every repeat the series asks `permit`; the record keeps its answer.
23
20
  *
24
- * That assumption is the whole license for this module, so the policy must
25
- * never widen. Only HTTP 429 retries here. Not 5xx, not network errors, not timeouts
26
- * — those belong to a caller who knows whether the specific tool is idempotent,
27
- * and this seam does not. A property test pins the boundary.
21
+ * - `'compatibility'` (the 11.x default) keeps today's behaviour by name: a
22
+ * 429 is repeated for every tool, ASSUMING the server refused it before
23
+ * running it — and every such repeat records that assumption.
24
+ * - `'app-authorized'` (opt-in, the next major's default) repeats a 429 only
25
+ * for a tool the app declared repeatable on it.
26
+ * - A request that failed in transport without an answer (footprintjs's
27
+ * `network`: a lost connection, a timeout below the series) is repeated
28
+ * only when the app declared that for the tool. A 5xx is an answer, never
29
+ * repeated. A cut or a deadline ends the series.
30
+ * - Under both, a tool the app declares as making changes is never repeated
31
+ * automatically unless the server is declared to deduplicate by a key the
32
+ * call carries — footprintjs's side-effect guard, now wired here.
28
33
  *
29
34
  * The loop takes its question as a {@link RetryDecision}, so the one other
30
35
  * refusal a service documents as one to retry — AgentCore Runtime's "session
31
36
  * operation in progress" — reuses this loop rather than growing a second one.
32
- * That decision is applied only by that vendor's own transport; what
33
- * `mcpClient` and `retryingFetch` retry is still a 429 and nothing else.
37
+ * That decision is applied only by that vendor's own transport, and its rule
38
+ * carries the adapter's retry assumption (`RetryRule.assumes`) — a policy,
39
+ * never evidence: its attempts record effect `unknown`, as a 429's do.
34
40
  *
35
41
  * ── Why it lives at the fetch seam and not around `Tool.execute` ─────────────
36
42
  * Because `Retry-After` is only reachable here. The MCP SDK reads the response,
@@ -58,12 +64,17 @@
58
64
  * operation that succeeded: a 503 is delivered as the answer it was, never
59
65
  * retried — and written down as `answered` with its status, never success.
60
66
  * A response a rule's decision recognises is thrown as a refusal that names
61
- * its kind, and the policy's `retryOn` accepts those refusals and nothing
62
- * else — so a 5xx, a dropped connection or a timeout ends the series on the
63
- * attempt it happened in, as it always did. When the
64
- * series ends on a refusal (attempts spent, a ceiling reached, no time left),
65
- * the refusal's response is delivered as the server sent it: the caller sees
66
- * the 429, never an error of ours.
67
+ * its kind, and the policy's `retryOn` accepts those refusals — and a network
68
+ * failure the app declared for the tool — when the replay rule permits them,
69
+ * and nothing else: a 5xx ends the series on the attempt it happened in, as it
70
+ * always did. When the series ends on a refusal (attempts spent, a ceiling
71
+ * reached, no time left, no permission), the refusal's response is delivered
72
+ * as the server sent it: the caller sees the 429, never an error of ours. The
73
+ * call decides what that means for it (`callLifetime.ts`): under
74
+ * 'app-authorized', a call that genuinely lacked an answer somewhere and does
75
+ * not complete fails as "may have run". This series reports the HTTP half of
76
+ * that — an attempt that got no response at all, and the status it delivered;
77
+ * a received refusal is an answer, its effect still unknown.
67
78
  *
68
79
  * ── A fetch that already retries is JOINED, never wrapped ────────────────────
69
80
  * A transport whose own fetch runs a series (AgentCore Runtime's session-busy
@@ -90,6 +101,7 @@
90
101
  *
91
102
  * Pattern: Decorator over `fetch`. Role: Layer-3 tool transport.
92
103
  */
104
+ import { type ReplayDeclaration } from './replay.js';
93
105
  import type { RequestLedger } from './requestLedger.js';
94
106
  /**
95
107
  * The fetch shape the MCP SDK's `fetch` hook uses — deliberately NARROWER
@@ -107,8 +119,12 @@ export type ThrottleFetch = (input: string | URL, init?: RequestInit) => Promise
107
119
  export type RetryKind = 'throttle' | 'session-busy';
108
120
  /** Reported to {@link ThrottleRetryOptions.onRetry} before each wait. */
109
121
  export interface ThrottleRetryInfo {
110
- /** Which refusal this retry answers. */
111
- readonly kind: RetryKind;
122
+ /**
123
+ * Which refusal this retry answers — or `'network'`, a tool call the app
124
+ * declared repeatable after a request that failed without an answer
125
+ * (`McpClientOptions.replay`). It is reported to the series' first rule.
126
+ */
127
+ readonly kind: RetryKind | 'network';
112
128
  /** The attempt about to START. `2` is the first retry. */
113
129
  readonly attempt: number;
114
130
  /** Ceiling in force for this refusal, including the first attempt. */
@@ -240,16 +256,18 @@ export interface RetryVerdict {
240
256
  * The one question the loop asks of each response.
241
257
  *
242
258
  * ── The license every decision must hold ─────────────────────────────────────
243
- * A decision may answer "again" ONLY for a response the library treats as a
244
- * refusal made before anything ran — the assumption a 429 retry rests on (see
245
- * the module note: the 429 is its basis, not proof). A response that could be
246
- * the record of half-done work is never one.
247
- * The library holds exactly two such decisions: {@link throttled} below, and
248
- * AgentCore Runtime's documented "session operation in progress" refusal,
249
- * which lives with that vendor's adapter (`adapters/mcp/agentcoreRuntime/`).
250
- * Each stays ONE small function, so a retry has exactly one place it is
251
- * decided — and each attempt is written down as one footprintjs attempt
252
- * record.
259
+ * A decision RECOGNISES a refusal; whether the request is sent again is the
260
+ * replay rule's (`replay.ts`), never the decision's. It may recognise only a
261
+ * response that is a refusal — never one that could be the record of
262
+ * half-done work. The library holds exactly two: {@link throttled} below, a
263
+ * 429, and AgentCore Runtime's "session operation in progress" refusal, which
264
+ * lives with that vendor's adapter (`adapters/mcp/agentcoreRuntime/`) and whose
265
+ * rule carries the adapter's retry assumption (`RetryRule.assumes`). Either
266
+ * one's effect stays unknown: a 429 says the request was rate-limited, and the
267
+ * busy body is matched by its code and words, which a server behind the
268
+ * runtime can send after it ran the call. Each stays ONE small function, so a
269
+ * refusal has exactly one place it is recognised — and each attempt is written
270
+ * down as one footprintjs attempt record.
253
271
  */
254
272
  export type RetryDecision = (response: Response,
255
273
  /**
@@ -297,6 +315,13 @@ export interface RetryRule {
297
315
  /** The caller's own name for the endpoint, reported as `endpoint`. */
298
316
  readonly endpointLabel?: string;
299
317
  readonly onRetry?: (info: ThrottleRetryInfo) => void;
318
+ /**
319
+ * Set only by an adapter that retries this refusal as its own policy
320
+ * (`sessionBusy.ts`): what it assumes in doing so. The assumption is recorded
321
+ * beside each repeat (`permission: { by: 'adapter', assumes }`) — never as
322
+ * evidence: the attempt's effect stays `unknown`.
323
+ */
324
+ readonly assumes?: 'refused-before-execution';
300
325
  }
301
326
  /**
302
327
  * @internal A rule from a caller's options — `undefined` when retry is off
@@ -307,7 +332,7 @@ export interface RetryRule {
307
332
  * @throws TypeError, when the rule is BUILT, for a value the schedule cannot
308
333
  * mean — named by option, never echoing a value that is not a number.
309
334
  */
310
- export declare function retryRule(kind: RetryKind, decide: RetryDecision, config: RetryOnThrottle | undefined, defaults: RetryDefaults, where: string): RetryRule | undefined;
335
+ export declare function retryRule(kind: RetryKind, decide: RetryDecision, config: RetryOnThrottle | undefined, defaults: RetryDefaults, where: string, assumes?: 'refused-before-execution'): RetryRule | undefined;
311
336
  /**
312
337
  * Wrap a `fetch` so HTTP 429 responses are retried, honouring `Retry-After`.
313
338
  *
@@ -346,19 +371,37 @@ export declare function retryRule(kind: RetryKind, decide: RetryDecision, config
346
371
  */
347
372
  export declare function retryingFetch(inner: ThrottleFetch | undefined, config: RetryOnThrottle | undefined): ThrottleFetch | undefined;
348
373
  /**
349
- * @internal What one call's series is built from: the rules it asks, in order,
350
- * and the connection's ledger — which tool call each request belongs to, so the
351
- * series can file its attempts into that call's run (`requestLedger.ts`).
374
+ * @internal The series for a transport whose 429 rule is off (`retryOnThrottle:
375
+ * false`) while the app's replay declaration still needs one (`replay.ts` ·
376
+ * `needsSeries`): a tool declared repeatable on `'network'`, or the
377
+ * `'app-authorized'` policy, whose record and "may have run" rest on the series.
378
+ * `retryOnThrottle: false` turns off the 429 rule and nothing else, so its one
379
+ * rule is that rule switched off: it recognises no response and holds the
380
+ * call's budget (`retryOnThrottle`'s defaults). A transport fetch that already
381
+ * runs a series is joined, as `retryingFetch` joins it.
382
+ */
383
+ export declare function seriesWithoutThrottle(inner: ThrottleFetch | undefined): ThrottleFetch;
384
+ /**
385
+ * @internal What one call's series is built from: the rules it asks, in order;
386
+ * the connection's ledger — which tool call each request belongs to, so the
387
+ * series can file its attempts into that call's run (`requestLedger.ts`); and
388
+ * the app's replay declaration — who may send a tool call again (`replay.ts`).
389
+ * No declaration is the compatibility policy, naming no tool.
352
390
  */
353
391
  export interface SeriesSpec {
354
392
  readonly rules: readonly RetryRule[];
355
393
  readonly ledger?: RequestLedger;
394
+ readonly replay?: ReplayDeclaration;
356
395
  }
357
- /** @internal What a joinable fetch's series can be rebuilt with: one more rule, or a ledger. */
396
+ /**
397
+ * @internal What a joinable fetch's series can be rebuilt with: one more rule,
398
+ * or a ledger and the replay declaration (they arrive together, from `mcpClient`).
399
+ */
358
400
  export type SeriesJoin = {
359
401
  readonly rule: RetryRule;
360
402
  } | {
361
403
  readonly ledger: RequestLedger;
404
+ readonly replay?: ReplayDeclaration;
362
405
  };
363
406
  /** @internal `spec` with `join` in it. */
364
407
  export declare function joinedSpec(spec: SeriesSpec, join: SeriesJoin): SeriesSpec;
@@ -372,10 +415,11 @@ export declare function joinedSpec(spec: SeriesSpec, join: SeriesJoin): SeriesSp
372
415
  export declare function joinableRetry(fetch: ThrottleFetch, rebuild: (join: SeriesJoin) => ThrottleFetch): ThrottleFetch;
373
416
  /**
374
417
  * @internal `fetch` rebuilt so its series files each request's attempts through
375
- * `ledger` — or `undefined` when `fetch` runs no series (retry off), so there
376
- * is nothing to file and the caller keeps `fetch` as it is.
418
+ * `ledger`, and asks `replay` before sending a tool call again — or `undefined`
419
+ * when `fetch` runs no series (retry off), so there is nothing to file and the
420
+ * caller keeps `fetch` as it is.
377
421
  */
378
- export declare function ledgeredFetch(fetch: ThrottleFetch, ledger: RequestLedger): ThrottleFetch | undefined;
422
+ export declare function ledgeredFetch(fetch: ThrottleFetch, ledger: RequestLedger, replay?: ReplayDeclaration): ThrottleFetch | undefined;
379
423
  /**
380
424
  * @internal The one series per call over `inner`, asking `spec.rules` in order —
381
425
  * `inner` itself when there are none. The first rule holds the call's budget;
@@ -1 +1 @@
1
- {"version":3,"file":"throttleRetry.d.ts","sourceRoot":"","sources":["../../../src/mcp/throttleRetry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2FG;AAYH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAQxD;;;;;;;GAOG;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,KAAK,EAAE,MAAM,GAAG,GAAG,EAAE,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Aa,GAC3C,aAAa,CAGf;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAC3B,KAAK,EAAE,aAAa,EACpB,MAAM,EAAE,aAAa,EACrB,MAAM,CAAC,EAAE,iBAAiB,GACzB,aAAa,GAAG,SAAS,CAE3B;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE,UAAU,GAAG,aAAa,CAStF;AAgfD;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAOpF"}
@@ -3,6 +3,12 @@ import type { McpCallToolResult, McpClientOptions } from './types.js';
3
3
  type ResultMode = NonNullable<McpClientOptions['resultMode']>;
4
4
  /** Validate before opening a transport; a misspelled opt-in must not disappear. */
5
5
  export declare function resultModeOf(value: unknown, name: string): ResultMode;
6
+ /**
7
+ * Whether a `tools/call` answer is the tool's own error (`isError: true`, an
8
+ * own data property). Read once, never throwing: anything it cannot read is
9
+ * not a tool error — the decoder refuses it on its own.
10
+ */
11
+ export declare function isToolError(result: unknown): boolean;
6
12
  /** Internal shared decoder for the real connection and curated mock. */
7
13
  export declare function readToolResult(result: McpCallToolResult, toolName: string, serverName: string, mode?: ResultMode): unknown;
8
14
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"toolResult.d.ts","sourceRoot":"","sources":["../../../src/mcp/toolResult.ts"],"names":[],"mappings":"AAAA,iFAAiF;AACjF,OAAO,KAAK,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAGtE,KAAK,UAAU,GAAG,WAAW,CAAC,gBAAgB,CAAC,YAAY,CAAC,CAAC,CAAC;AAE9D,mFAAmF;AACnF,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,UAAU,CAMrE;AAED,wEAAwE;AACxE,wBAAgB,cAAc,CAC5B,MAAM,EAAE,iBAAiB,EACzB,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,MAAM,EAClB,IAAI,GAAE,UAAmB,GACxB,OAAO,CAqDT"}
1
+ {"version":3,"file":"toolResult.d.ts","sourceRoot":"","sources":["../../../src/mcp/toolResult.ts"],"names":[],"mappings":"AAAA,iFAAiF;AACjF,OAAO,KAAK,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAGtE,KAAK,UAAU,GAAG,WAAW,CAAC,gBAAgB,CAAC,YAAY,CAAC,CAAC,CAAC;AAE9D,mFAAmF;AACnF,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,UAAU,CAMrE;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,OAAO,GAAG,OAAO,CAOpD;AAED,wEAAwE;AACxE,wBAAgB,cAAc,CAC5B,MAAM,EAAE,iBAAiB,EACzB,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,MAAM,EAClB,IAAI,GAAE,UAAmB,GACxB,OAAO,CAqDT"}
@@ -23,6 +23,7 @@
23
23
  import type { Tool } from '../tools/tools.js';
24
24
  import type { CredentialProvider } from '../identity/types.js';
25
25
  import type { RetryOnThrottle } from './throttleRetry.js';
26
+ import type { McpReplayOptions } from './replay.js';
26
27
  import type { FetchLike } from './gatewayTransport.js';
27
28
  /**
28
29
  * `stdio` transport — spawns a local subprocess and speaks MCP over
@@ -207,14 +208,17 @@ export interface McpClientOptions {
207
208
  * the transport's `retry` values as the call's overall limits and these as
208
209
  * limits on the 429 retries inside them.
209
210
  *
210
- * **What this assumes.** Automatic 429 retries assume the server rejected
211
- * the request before executing it. The saved response records that
212
- * assumption's basis (the server's 429), not proof that nothing ran: HTTP 429
213
- * says the request was rate-limited, nothing more (RFC 6585 §4). A tool with
214
- * side effects is retried on 429 like any other today — this retry has no
215
- * side-effect guard and sends no deduplication key — and
216
- * `retryOnThrottle: false` turns that off for this server. Nothing else is
217
- * retried: a 5xx or a timeout may be the record of work that ran.
211
+ * **Who may ask again is {@link McpClientOptions.replay}'s.** These
212
+ * options set the BUDGET of a call's retries; whether a tool call is sent
213
+ * again at all is the replay policy's. Under the default (`'compatibility'`)
214
+ * a 429 is repeated for every tool, ASSUMING the server refused it before
215
+ * running it — HTTP 429 says only that the request was rate-limited (RFC 6585
216
+ * §4) — and every such repeat records that assumption. A tool you declare as
217
+ * making changes is never repeated without a deduplication key, and
218
+ * `'app-authorized'` repeats only what you declare. `retryOnThrottle: false`
219
+ * turns 429 retries off for this server, and nothing else: a tool declared
220
+ * repeatable on `'network'`, and the `'app-authorized'` policy, keep their
221
+ * series and their record. A 5xx is an answer and is never repeated.
218
222
  *
219
223
  * **Why this is on by default.** Managed gateways rate-limit per principal by
220
224
  * design, and without this a designed, self-clearing condition reached the
@@ -223,6 +227,62 @@ export interface McpClientOptions {
223
227
  * Ignored for `stdio`, which has no HTTP status to read.
224
228
  */
225
229
  readonly retryOnThrottle?: RetryOnThrottle;
230
+ /**
231
+ * Who may send a tool call again, declared by YOU for this server's tools —
232
+ * never by the model, a tool's description or the server's annotations
233
+ * (`readOnlyHint`). Read once, here; a field it does not know is refused.
234
+ *
235
+ * ```ts
236
+ * const orders = await mcpClient({
237
+ * name: 'orders',
238
+ * transport: { transport: 'http', url },
239
+ * replay: {
240
+ * policy: 'app-authorized',
241
+ * tools: {
242
+ * search_orders: { on: ['throttle', 'network'] },
243
+ * create_order: { on: ['throttle'], changes: true },
244
+ * },
245
+ * deduplicates: { argument: 'idempotency_key' },
246
+ * },
247
+ * });
248
+ * ```
249
+ *
250
+ * - `policy: 'compatibility'` (the default in 11.x) — today's behaviour,
251
+ * by name: a 429 is sent again for every tool, assuming the server
252
+ * refused it before running it. Each such retry records that assumption
253
+ * (`permission: { by: 'compatibility', assumes: 'refused-before-execution' }`).
254
+ * - `policy: 'app-authorized'` (the default from the next major) — a 429
255
+ * (`'throttle'`) or a request that failed without an answer
256
+ * (`'network'`) is sent again only for a tool whose entry names it.
257
+ * - `changes: true` — the tool makes changes: never sent again
258
+ * automatically, under either policy, unless `deduplicates` is declared
259
+ * and the call carries the key. A key protects only when the server uses it.
260
+ *
261
+ * Under both policies the adapter you chose retries its own refusal —
262
+ * AgentCore Runtime's session-busy reply — within the budget, as its policy:
263
+ * each repeat records what it assumes, never proof that nothing ran. A
264
+ * repeat re-sends the SAME request: the same arguments, server and session,
265
+ * as the same identity. Each attempt's run record says what is known of its
266
+ * effect — `unknown` for anything sent that did not complete, `applied` when
267
+ * the call completed (never proof of a write) — and what permitted the next
268
+ * one. Under `'app-authorized'`, a received refusal or error (a 429, a 503,
269
+ * a JSON-RPC or tool error) reaches the caller as the server sent it, its
270
+ * effect still unknown; a call that genuinely lacked an answer somewhere —
271
+ * a request with no response, or one accepted over HTTP whose JSON-RPC
272
+ * answer never came — and then fails, fails as "may have run"
273
+ * (footprintjs's `UnknownEffectError`, its final error as the `cause`).
274
+ * Under `'compatibility'` the caller sees the error it always did.
275
+ *
276
+ * `'app-authorized'` needs each request matched to its call and each answer
277
+ * seen. A connection that cannot give both refuses the call BEFORE it is
278
+ * sent, with `McpReplayUnavailableError` and a typed `reason`: an MCP SDK
279
+ * whose `connect` replaces the transport's `onmessage` handler
280
+ * (`'answers-unobserved'`), one that drops the params' `_meta`
281
+ * (`'request-unmatched'`), or a transport whose requests the library cannot
282
+ * watch, such as `stdio` (`'requests-unwatched'`). Under `'compatibility'`,
283
+ * `stdio` ignores it: it has no retry series.
284
+ */
285
+ readonly replay?: McpReplayOptions;
226
286
  /**
227
287
  * Pre-resolved SDK modules. Give these and the library never touches its Node
228
288
  * `require` loader — which is what lets a browser bundle speak MCP over
@@ -295,6 +355,8 @@ export interface McpConnectionOptions {
295
355
  readonly clientInfo?: undefined;
296
356
  /** @see McpClientOptions — never set on this arm. */
297
357
  readonly retryOnThrottle?: undefined;
358
+ /** @see McpClientOptions — never set on this arm. */
359
+ readonly replay?: undefined;
298
360
  /** @internal @see McpClientOptions — never set on this arm. */
299
361
  readonly _client?: undefined;
300
362
  }
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/mcp/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAIvD;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;IAC5B,iEAAiE;IACjE,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,yCAAyC;IACzC,QAAQ,CAAC,IAAI,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAClC;;;;;;OAMG;IACH,QAAQ,CAAC,GAAG,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IAChD,4CAA4C;IAC5C,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,+BAA+B;IAC/B,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,iEAAiE;IACjE,QAAQ,CAAC,OAAO,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IACpD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAkCG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,GAAG,EAAE,IAAI,CAAC,EAAE,WAAW,KAAK,OAAO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rB,8BAA8B,GAC9B,MAAM,GACN,OAAO,GACP,OAAO,GACP,OAAO,GACP,OAAO,GACP,WAAW,GACX,YAAY,GACZ,QAAQ,GACR,SAAS,GACT,MAAM,GACN,UAAU,GACV,YAAY,CAAC;AAEjB,mCAAmC;AACnC,MAAM,MAAM,WAAW,GACnB,uBAAuB,GACvB,cAAc,CAAC,QAAQ,CAAC,GACxB,cAAc,CAAC,SAAS,CAAC,GACzB,OAAO,YAAY,GACnB,OAAO,qBAAqB,GAC5B,eAAe,GACf,aAAa,GACb,aAAa,GACb,gBAAgB,GAChB,gBAAgB,CAAC,MAAM,CAAC,GACxB,gBAAgB,CAAC;AAErB,iDAAiD;AACjD,MAAM,MAAM,SAAS,GAAG,YAAY,CAAC,QAAQ,CAAC,GAAG,YAAY,CAAC,SAAS,CAAC,CAAC;AAmuCzE,6DAA6D;AAC7D,eAAO,MAAM,aAAa,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CAAS,CAAC;AAEnE,2DAA2D;AAC3D,eAAO,MAAM,WAAW,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CAAU,CAAC;AAKlE,6FAA6F;AAC7F,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAElD;AAKD;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAEvD"}
@@ -51,7 +51,7 @@ export { staticTools } from './staticTools.js';
51
51
  export { gatedTools } from './gatedTools.js';
52
52
  export { skillScopedTools, skillScopedToolsTarget, SKILL_SCOPED_TOOLS_ID_PREFIX, } from '../tools/skillScopedTools.js';
53
53
  export type { ToolProvider, ToolDispatchContext, ToolGatePredicate, } from '../tools/toolProvider.js';
54
- export { mcpClient, mcpServe, mockMcpClient, gatewayTransport, GatewayAuthorizationRequiredError, MCP_TOOL_EXTRAS_KEY, retryingFetch, } from '../mcp/index.js';
54
+ export { mcpClient, mcpServe, mockMcpClient, gatewayTransport, GatewayAuthorizationRequiredError, McpReplayUnavailableError, MCP_TOOL_EXTRAS_KEY, retryingFetch, } from '../mcp/index.js';
55
55
  export { agentCoreGatewayTransport, agentCoreGatewayUrl, gatewaySearchTool, hasGatewaySearch, AGENTCORE_GATEWAY_SEARCH_TOOL, AGENTCORE_POLICY_SESSION_HEADER, AGENTCORE_SIGV4_SERVICE, } from '../adapters/mcp/agentcore.js';
56
56
  export type { AgentCoreGatewayTransportOptions, AgentCoreGatewayUrlOptions, } from '../adapters/mcp/agentcore.js';
57
57
  export { agentCoreRuntimeMcpTransport, agentCoreRuntimeUrl, } from '../adapters/mcp/agentcoreRuntime/transport.js';
@@ -59,5 +59,5 @@ export { AGENTCORE_RUNTIME_SESSION_HEADER } from '../adapters/mcp/agentcoreRunti
59
59
  export type { AgentCoreRuntimeAuth, AgentCoreRuntimeBearerAuth, AgentCoreRuntimeMcpTransportOptions, AgentCoreRuntimeRetryOptions, AgentCoreRuntimeUrlOptions, } from '../adapters/mcp/agentcoreRuntime/transport.js';
60
60
  export type { AgentCoreRuntimeSession } from '../adapters/mcp/agentcoreRuntime/session.js';
61
61
  export type { AgentCoreRuntimeSdkClient, BedrockAgentCoreRuntimeSdkModule, } from '../adapters/mcp/agentcoreRuntime/invoke.js';
62
- export type { GatewayTransportOptions, McpCallToolResult, McpClient, McpClientOptions, McpConnection, McpConnectionOptions, McpSdk, McpSdkClient, ThrottleFetch, McpTransport, McpStdioTransport, McpHttpTransport, McpGatewayTransport, MockMcpClientOptions, MockMcpTool, McpServeOptions, McpServeHandle, McpServeTransport, McpStdioServeTransport, McpHttpServeTransport, McpSdkServer, McpToolExtras, } from '../mcp/index.js';
62
+ export type { GatewayTransportOptions, McpCallToolResult, McpClient, McpClientOptions, McpReplayDeduplication, McpReplayKind, McpReplayOptions, McpReplayPolicy, McpReplayTool, McpReplayUnavailableReason, McpConnection, McpConnectionOptions, McpSdk, McpSdkClient, ThrottleFetch, McpTransport, McpStdioTransport, McpHttpTransport, McpGatewayTransport, MockMcpClientOptions, MockMcpTool, McpServeOptions, McpServeHandle, McpServeTransport, McpStdioServeTransport, McpHttpServeTransport, McpSdkServer, McpToolExtras, } from '../mcp/index.js';
63
63
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tool-providers/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EACL,gBAAgB,EAGhB,sBAAsB,EACtB,4BAA4B,GAC7B,MAAM,8BAA8B,CAAC;AACtC,YAAY,EACV,YAAY,EACZ,mBAAmB,EACnB,iBAAiB,GAClB,MAAM,0BAA0B,CAAC;AAKlC,OAAO,EACL,SAAS,EACT,QAAQ,EACR,aAAa,EACb,gBAAgB,EAChB,iCAAiC,EAIjC,mBAAmB,EAKnB,aAAa,GACd,MAAM,iBAAiB,CAAC;AAKzB,OAAO,EACL,yBAAyB,EACzB,mBAAmB,EACnB,iBAAiB,EACjB,gBAAgB,EAChB,6BAA6B,EAC7B,+BAA+B,EAC/B,uBAAuB,GACxB,MAAM,8BAA8B,CAAC;AACtC,YAAY,EACV,gCAAgC,EAChC,0BAA0B,GAC3B,MAAM,8BAA8B,CAAC;AAKtC,OAAO,EACL,4BAA4B,EAC5B,mBAAmB,GACpB,MAAM,+CAA+C,CAAC;AACvD,OAAO,EAAE,gCAAgC,EAAE,MAAM,6CAA6C,CAAC;AAC/F,YAAY,EACV,oBAAoB,EACpB,0BAA0B,EAC1B,mCAAmC,EACnC,4BAA4B,EAC5B,0BAA0B,GAC3B,MAAM,+CAA+C,CAAC;AACvD,YAAY,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AAC3F,YAAY,EACV,yBAAyB,EACzB,gCAAgC,GACjC,MAAM,4CAA4C,CAAC;AACpD,YAAY,EACV,uBAAuB,EACvB,iBAAiB,EACjB,SAAS,EACT,gBAAgB,EAIhB,aAAa,EACb,oBAAoB,EACpB,MAAM,EACN,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,iBAAiB,EACjB,gBAAgB,EAChB,mBAAmB,EACnB,oBAAoB,EACpB,WAAW,EACX,eAAe,EACf,cAAc,EACd,iBAAiB,EACjB,sBAAsB,EACtB,qBAAqB,EACrB,YAAY,EACZ,aAAa,GACd,MAAM,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tool-providers/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EACL,gBAAgB,EAGhB,sBAAsB,EACtB,4BAA4B,GAC7B,MAAM,8BAA8B,CAAC;AACtC,YAAY,EACV,YAAY,EACZ,mBAAmB,EACnB,iBAAiB,GAClB,MAAM,0BAA0B,CAAC;AAKlC,OAAO,EACL,SAAS,EACT,QAAQ,EACR,aAAa,EACb,gBAAgB,EAChB,iCAAiC,EAIjC,yBAAyB,EAIzB,mBAAmB,EAKnB,aAAa,GACd,MAAM,iBAAiB,CAAC;AAKzB,OAAO,EACL,yBAAyB,EACzB,mBAAmB,EACnB,iBAAiB,EACjB,gBAAgB,EAChB,6BAA6B,EAC7B,+BAA+B,EAC/B,uBAAuB,GACxB,MAAM,8BAA8B,CAAC;AACtC,YAAY,EACV,gCAAgC,EAChC,0BAA0B,GAC3B,MAAM,8BAA8B,CAAC;AAKtC,OAAO,EACL,4BAA4B,EAC5B,mBAAmB,GACpB,MAAM,+CAA+C,CAAC;AACvD,OAAO,EAAE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