@namzu/sdk 41.0.0 → 42.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 (81) hide show
  1. package/CHANGELOG.md +59 -0
  2. package/dist/agents/ReactiveAgent.d.ts.map +1 -1
  3. package/dist/agents/ReactiveAgent.js +3 -0
  4. package/dist/agents/ReactiveAgent.js.map +1 -1
  5. package/dist/agents/SupervisorAgent.d.ts.map +1 -1
  6. package/dist/agents/SupervisorAgent.js +11 -0
  7. package/dist/agents/SupervisorAgent.js.map +1 -1
  8. package/dist/agents/runAgent.d.ts +14 -0
  9. package/dist/agents/runAgent.d.ts.map +1 -1
  10. package/dist/agents/runAgent.js +3 -0
  11. package/dist/agents/runAgent.js.map +1 -1
  12. package/dist/manager/agent/lifecycle.d.ts.map +1 -1
  13. package/dist/manager/agent/lifecycle.js +20 -0
  14. package/dist/manager/agent/lifecycle.js.map +1 -1
  15. package/dist/public-runtime.d.ts +4 -1
  16. package/dist/public-runtime.d.ts.map +1 -1
  17. package/dist/public-runtime.js +13 -1
  18. package/dist/public-runtime.js.map +1 -1
  19. package/dist/public-tools.d.ts +1 -1
  20. package/dist/public-tools.d.ts.map +1 -1
  21. package/dist/public-tools.js +4 -2
  22. package/dist/public-tools.js.map +1 -1
  23. package/dist/registry/tool/execute.d.ts.map +1 -1
  24. package/dist/registry/tool/execute.js +10 -1
  25. package/dist/registry/tool/execute.js.map +1 -1
  26. package/dist/runtime/bidi/session.d.ts +11 -0
  27. package/dist/runtime/bidi/session.d.ts.map +1 -1
  28. package/dist/runtime/bidi/session.js +2 -0
  29. package/dist/runtime/bidi/session.js.map +1 -1
  30. package/dist/runtime/query/executor.d.ts +6 -0
  31. package/dist/runtime/query/executor.d.ts.map +1 -1
  32. package/dist/runtime/query/executor.js +6 -0
  33. package/dist/runtime/query/executor.js.map +1 -1
  34. package/dist/runtime/query/guardrail-presets.d.ts +187 -1
  35. package/dist/runtime/query/guardrail-presets.d.ts.map +1 -1
  36. package/dist/runtime/query/guardrail-presets.js +298 -0
  37. package/dist/runtime/query/guardrail-presets.js.map +1 -1
  38. package/dist/runtime/query/index.d.ts +14 -0
  39. package/dist/runtime/query/index.d.ts.map +1 -1
  40. package/dist/runtime/query/index.js +3 -0
  41. package/dist/runtime/query/index.js.map +1 -1
  42. package/dist/runtime/query/tooling.d.ts +2 -0
  43. package/dist/runtime/query/tooling.d.ts.map +1 -1
  44. package/dist/runtime/query/tooling.js +3 -0
  45. package/dist/runtime/query/tooling.js.map +1 -1
  46. package/dist/tools/coordinator/agent.d.ts.map +1 -1
  47. package/dist/tools/coordinator/agent.js +17 -2
  48. package/dist/tools/coordinator/agent.js.map +1 -1
  49. package/dist/tools/coordinator/index.d.ts.map +1 -1
  50. package/dist/tools/coordinator/index.js +17 -3
  51. package/dist/tools/coordinator/index.js.map +1 -1
  52. package/dist/tools/untrusted-envelope.d.ts +35 -0
  53. package/dist/tools/untrusted-envelope.d.ts.map +1 -1
  54. package/dist/tools/untrusted-envelope.js +91 -3
  55. package/dist/tools/untrusted-envelope.js.map +1 -1
  56. package/dist/types/agent/base.d.ts +23 -0
  57. package/dist/types/agent/base.d.ts.map +1 -1
  58. package/dist/types/agent/task.d.ts +19 -0
  59. package/dist/types/agent/task.d.ts.map +1 -1
  60. package/dist/types/tool/index.d.ts +19 -0
  61. package/dist/types/tool/index.d.ts.map +1 -1
  62. package/dist/types/tool/index.js.map +1 -1
  63. package/package.json +1 -1
  64. package/src/agents/ReactiveAgent.ts +3 -0
  65. package/src/agents/SupervisorAgent.ts +11 -0
  66. package/src/agents/runAgent.ts +18 -0
  67. package/src/manager/agent/lifecycle.ts +22 -0
  68. package/src/public-runtime.ts +14 -0
  69. package/src/public-tools.ts +8 -2
  70. package/src/registry/tool/execute.ts +9 -1
  71. package/src/runtime/bidi/session.ts +13 -0
  72. package/src/runtime/query/executor.ts +13 -0
  73. package/src/runtime/query/guardrail-presets.ts +356 -0
  74. package/src/runtime/query/index.ts +17 -0
  75. package/src/runtime/query/tooling.ts +5 -0
  76. package/src/tools/coordinator/agent.ts +17 -2
  77. package/src/tools/coordinator/index.ts +17 -3
  78. package/src/tools/untrusted-envelope.ts +94 -3
  79. package/src/types/agent/base.ts +24 -0
  80. package/src/types/agent/task.ts +20 -0
  81. package/src/types/tool/index.ts +20 -0
@@ -1,4 +1,6 @@
1
+ import { PLUGIN_NAMESPACE_SEPARATOR } from '../../constants/plugin/index.js';
1
2
  import { OUTPUT_SECRET_PATTERNS } from '../../constants/secret-patterns.js';
3
+ import { untrustedEnvelopeBody } from '../../tools/untrusted-envelope.js';
2
4
  /**
3
5
  * Patterns for credentials that must never leave a run.
4
6
  *
@@ -138,4 +140,300 @@ export function toolResultInjectionGuardrail() {
138
140
  },
139
141
  };
140
142
  }
143
+ /**
144
+ * Requests shorter than this are not compared against the result.
145
+ *
146
+ * A one-word echo cannot be told from a one-word answer, and the shorter the
147
+ * value the likelier it is to recur in a legitimate result by coincidence:
148
+ * `ls` of a directory holding one entry called `src`, called with
149
+ * `{ path: "src" }`, returns `src`. The value of catching a five-character
150
+ * restatement is nil — nothing rides on it — so the comparison starts where
151
+ * a restatement actually means something.
152
+ *
153
+ * Counted in CODE POINTS, not UTF-16 units. Eight emoji are eight characters
154
+ * to every reader of this file and sixteen to `String.length`, and a floor
155
+ * that lets them through while the docblock says it excludes short values is
156
+ * a floor that is not doing what it says.
157
+ */
158
+ const MIN_RESTATEMENT_LENGTH = 16;
159
+ /** Whether `text` is at least `minimum` code points long, without counting all of them. */
160
+ function isAtLeastCodePoints(text, minimum) {
161
+ let count = 0;
162
+ for (const _character of text) {
163
+ count += 1;
164
+ if (count >= minimum)
165
+ return true;
166
+ }
167
+ return false;
168
+ }
169
+ function normalizeText(text) {
170
+ return text.trim().replace(/\s+/g, ' ');
171
+ }
172
+ /**
173
+ * Every string the call was made with, and where it sat.
174
+ *
175
+ * Strings only. A number is a plausible answer — a count of 10, a port of
176
+ * 8080 — and comparing one would fire on `{ maxResults: 10 }` answered with
177
+ * `10`, which is a legitimate result from a legitimate tool.
178
+ */
179
+ function collectRequestText(value, path, into) {
180
+ if (typeof value === 'string') {
181
+ const text = normalizeText(value);
182
+ if (isAtLeastCodePoints(text, MIN_RESTATEMENT_LENGTH))
183
+ into.push({ path, text });
184
+ return;
185
+ }
186
+ if (Array.isArray(value)) {
187
+ for (const [index, item] of value.entries()) {
188
+ collectRequestText(item, `${path}[${index}]`, into);
189
+ }
190
+ return;
191
+ }
192
+ if (value === null || typeof value !== 'object')
193
+ return;
194
+ for (const [key, nested] of Object.entries(value)) {
195
+ collectRequestText(nested, path === '' ? key : `${path}.${key}`, into);
196
+ }
197
+ }
198
+ /** How the refusal names the argument that came back, for a caller that cannot see the path syntax. */
199
+ function describeSubject(path) {
200
+ if (path === '')
201
+ return 'what this call sent';
202
+ const item = /^\[(\d+)\]$/.exec(path);
203
+ if (item)
204
+ return `item ${item[1]} of the request`;
205
+ return `the "${path}" argument this call sent`;
206
+ }
207
+ /**
208
+ * Every name a tool answers to, so `passthroughTools` does not require the
209
+ * host to write the connector's own internal spelling.
210
+ *
211
+ * Each registration shape yields its own set, and the sets are NOT
212
+ * interchangeable — an exemption written for one shape does not exempt
213
+ * another:
214
+ *
215
+ * - A server connected directly registers `mcp_<server>_<tool>` (the
216
+ * adapter concatenates `mcp_${serverName}_${toolName}` verbatim). For
217
+ * `mcp_weather-co_lookup` with `server: 'weather-co'`, the accepted names
218
+ * are `mcp_weather-co_lookup`, `lookup`, and `weather-co:lookup`.
219
+ * - A server a plugin contributes registers
220
+ * `<plugin>__mcp__<server>__<tool>`. For
221
+ * `myplugin__mcp__weather__lookup` the accepted names are
222
+ * `myplugin__mcp__weather__lookup`, the bare tail after the last `__`
223
+ * (`lookup`), and `weather:lookup` — NOT `mcp_weather_lookup`, which is
224
+ * the direct shape's spelling of a name this tool does not have.
225
+ * - A tool of this process's own has no server and no namespace, so the
226
+ * registered name is the whole set.
227
+ *
228
+ * The bare name is what the server's manifest calls the tool — the name the
229
+ * operator has in front of them when they read its manifest — and
230
+ * `server:tool` is what a human writes. Both are derived from the registered
231
+ * name and the tool's provenance, so a caller that has only one of the two
232
+ * gets the registered name and nothing else.
233
+ */
234
+ export function passthroughToolNames(toolName, server) {
235
+ const names = new Set([toolName]);
236
+ const separator = toolName.lastIndexOf(PLUGIN_NAMESPACE_SEPARATOR);
237
+ const pluginBare = separator < 0 ? undefined : toolName.slice(separator + PLUGIN_NAMESPACE_SEPARATOR.length);
238
+ if (pluginBare !== undefined)
239
+ names.add(pluginBare);
240
+ const directPrefix = server === undefined ? undefined : `mcp_${server}_`;
241
+ const connectedBare = directPrefix !== undefined && toolName.startsWith(directPrefix)
242
+ ? toolName.slice(directPrefix.length)
243
+ : undefined;
244
+ if (connectedBare !== undefined)
245
+ names.add(connectedBare);
246
+ const bare = connectedBare ?? pluginBare;
247
+ if (bare !== undefined && server !== undefined)
248
+ names.add(`${server}:${bare}`);
249
+ return [...names];
250
+ }
251
+ /**
252
+ * Refuse a result that is the request rather than an answer to it.
253
+ *
254
+ * #399 recorded that a screen at this boundary cannot know what a tool SHOULD
255
+ * have answered, and the issue that asked for this screen named three
256
+ * mismatches — a weather lookup for one city answering about another, a read
257
+ * of one path returning another's contents, a search returning instructions
258
+ * rather than results. **This screen decides none of the three.** The first
259
+ * two need a declaration of which argument names the subject, and the
260
+ * framework cannot infer one: for a file read the answer is the file's
261
+ * contents, which do not name the path, so the natural rule — an answer
262
+ * mentions its subject — would refuse every ordinary read. The third is what
263
+ * {@link toolResultInjectionGuardrail} already screens for at this same
264
+ * boundary, and re-implementing it here would give the two the same blind spot
265
+ * rather than the different one this adds.
266
+ *
267
+ * What is left is the one correspondence failure that needs no domain
268
+ * knowledge and cannot be an answer: **the result restates the request**. A
269
+ * tool handed a question and returning that question has answered nothing,
270
+ * whatever it is a tool for. The comparison is exact equality after
271
+ * whitespace normalisation against each string the call carried, so a result
272
+ * that says anything extra — the answer plus anything at all — passes.
273
+ *
274
+ * ## Why it judges framed results by default
275
+ *
276
+ * Because the envelope is the only marker that means *this process did not
277
+ * write this*, and the judgment it supports is the one this screen can make.
278
+ * Content arrives framed — by `wrapUntrusted`, through `frameServerResult`
279
+ * for a connector's tool result — when it came from outside: a connected
280
+ * server answered, or a host tool decided its own answer was not this
281
+ * process's to vouch for. A result that IS the request is a signal there.
282
+ *
283
+ * An earlier version judged results whose tool definition carried
284
+ * `provenance`, which is set by the MCP adapter and by nothing else. That
285
+ * predicate and this one agree on every connector result the comparison can
286
+ * act on, and they differ exactly where registration is an accident of the
287
+ * code rather than a fact about the content: the CLI's own remote Exa search
288
+ * frames its answer with this envelope and registers as a host tool, so a
289
+ * search that restated its query was out of scope while a fetch that did was
290
+ * in it. `scope` is a statement about what the screen is willing to judge, so
291
+ * it is expressed in terms of the content rather than of who mounted the
292
+ * tool.
293
+ *
294
+ * What the default leaves alone is this process's own UNFRAMED tools.
295
+ * `web_fetch` returns the page body, and a page whose body IS the URL it was
296
+ * fetched from — a redirect stub, a "you are here" placeholder, an echo
297
+ * endpoint — is a true result from a working tool that frames nothing.
298
+ * `test/…/a-result-that-does-not-answer-its-request` runs the shipped tool
299
+ * set through this screen with real calls and asserts none is refused, which
300
+ * is where that claim is checked rather than argued.
301
+ *
302
+ * `scope: 'all'` adds those too. That is the host's call, and it is the scope
303
+ * that costs something: under it, a fetch-like tool whose answer is its own
304
+ * argument is refused until the host names it in
305
+ * {@link ToolResultCorrespondenceOptions.passthroughTools}.
306
+ *
307
+ * The two other ways out were both worse. An exemption list of builtin NAMES
308
+ * inside this preset is a list that drifts — the next fetch-like tool has to
309
+ * remember to add itself, and a host tool that happens to be called
310
+ * `web_fetch` would be exempted by accident — and a subject declaration on
311
+ * every tool would be a new field on `ToolDefinition` that exists for this one
312
+ * screen.
313
+ *
314
+ * ## Three things it deliberately does not touch
315
+ *
316
+ * - **An empty result for a non-empty request.** Real, and not a signal:
317
+ * a search that matched nothing and a file with nothing in it both return
318
+ * nothing, and refusing either tells the model to stop looking when there
319
+ * was nothing to find.
320
+ * - **A shape contradicting `ToolDefinition.outputSchema`.** The schema is
321
+ * not on {@link ToolResultGuardrailContext} and is documented as shown to
322
+ * the model, never validated. Carrying it and enforcing it are changes to
323
+ * that contract, not this screen's to make.
324
+ * - **A failed call.** On `success: false` the text is a diagnostic, and
325
+ * `screenToolResult` replaces the output when it refuses — so refusing
326
+ * here would trade an echo nobody needs to catch for the error message
327
+ * the model needs to read.
328
+ *
329
+ * The comparison runs on the frame as well as on the text: a connector's
330
+ * result reaches a screen already wrapped by `wrapUntrusted`, so comparing
331
+ * the raw output would never match the one case this is most worth having —
332
+ * a connected server returning the request. Both the whole output and, when
333
+ * it is one wrapped block, the body inside it are compared.
334
+ *
335
+ * Detection is partial and this says so rather than implying coverage: an
336
+ * answer about the wrong subject, an answer that is plausible prose, and a
337
+ * restatement shorter than {@link MIN_RESTATEMENT_LENGTH} all pass.
338
+ */
339
+ export function toolResultCorrespondenceGuardrail(options = {}) {
340
+ const passthrough = new Set(options.passthroughTools ?? []);
341
+ const scope = options.scope ?? 'framed';
342
+ return {
343
+ name: 'tool-result-correspondence',
344
+ check: ({ toolName, input, output, success, provenance }) => {
345
+ if (!success)
346
+ return { action: 'pass' };
347
+ // `output` is typed as a string and a tool that ignores its own
348
+ // contract can hand back something else. Nothing here can compare
349
+ // a number against a request, and a screen that throws fails
350
+ // CLOSED — so the one thing this must not do is refuse a result
351
+ // because it could not read it.
352
+ if (typeof output !== 'string')
353
+ return { action: 'pass' };
354
+ // The scope, and the same reader the comparison below uses rather
355
+ // than a second "looks framed" test that could disagree with it.
356
+ //
357
+ // This is a superset of the `provenance`-based predicate it
358
+ // replaced, for every result the comparison can act on. The only
359
+ // tool definition carrying `provenance` is the MCP adapter's, and
360
+ // `frameServerResult` frames every non-empty text it returns — so
361
+ // a connected result that reaches the comparison at all carries a
362
+ // legible frame. The one case the new predicate drops is a
363
+ // connected result with an EMPTY output, which the comparison
364
+ // skipped anyway (`normalizeText('')` is `''`, and an empty string
365
+ // is never a request of the minimum length).
366
+ const body = untrustedEnvelopeBody(output);
367
+ if (scope !== 'all' && body === undefined)
368
+ return { action: 'pass' };
369
+ if (passthrough.size > 0 &&
370
+ passthroughToolNames(toolName, provenance?.server).some((name) => passthrough.has(name))) {
371
+ return { action: 'pass' };
372
+ }
373
+ const request = [];
374
+ collectRequestText(input, '', request);
375
+ if (request.length === 0)
376
+ return { action: 'pass' };
377
+ // The whole output, and the body when the output is one wrapped
378
+ // block. The two are never the same string — the frame carries the
379
+ // tags — so this is two comparisons, not the same one twice, and
380
+ // the refusal says which one matched.
381
+ for (const [text, insideFrame] of [
382
+ [normalizeText(output), false],
383
+ [normalizeText(body ?? ''), true],
384
+ ]) {
385
+ if (text === '')
386
+ continue;
387
+ const restated = request.find((entry) => entry.text === text);
388
+ if (!restated)
389
+ continue;
390
+ // The reason names the tool, and says what the comparison
391
+ // actually did. Both were wrong before: a host reading the
392
+ // transcript is the person who can exempt this tool, and
393
+ // "verbatim" was a false claim about a comparison that ran
394
+ // after whitespace normalisation.
395
+ const matched = insideFrame
396
+ ? `the text inside the untrusted frame from "${toolName}"`
397
+ : `the result from "${toolName}"`;
398
+ return {
399
+ action: 'refuse',
400
+ reason: `${matched} is ${describeSubject(restated.path)}, whitespace-normalised, so it is the request rather than an answer to it`,
401
+ };
402
+ }
403
+ return { action: 'pass' };
404
+ },
405
+ };
406
+ }
407
+ /**
408
+ * The screens a run installs on itself when its host configured none.
409
+ *
410
+ * A DEFAULT, and the reason it is here rather than on
411
+ * {@link ToolRegistryConfig.resultGuardrails}: a host assembles a registry
412
+ * and hands it to `runAgent`, so a registry-constructor default would be the
413
+ * host's to write and this repository's default would reach nobody. The run
414
+ * is the thing that has to carry it, and a run that wants none says so with
415
+ * an empty array — which is the escape hatch, and it exists precisely because
416
+ * the screen below can refuse a result.
417
+ *
418
+ * One screen, scoped to results framed as untrusted. See the preset for why
419
+ * the scope is what it is: an unframed host tool whose answer IS the request —
420
+ * `web_fetch` returning a page whose body is its own URL — is an ordinary
421
+ * result, and a default that refuses those is a default that breaks a working
422
+ * tool.
423
+ *
424
+ * **A default that refuses a legitimate result is a default that gets turned
425
+ * off, so the exemption has to be reachable from wherever the screen is
426
+ * installed.** `toolResultCorrespondenceGuardrail({ passthroughTools })` is
427
+ * how a host writing SDK code says so; a run's `toolResultGuardrails` array
428
+ * is where it substitutes its own configured instance. An application that
429
+ * ships the default without also shipping a way to name an exception has
430
+ * shipped a switch with one position.
431
+ *
432
+ * Frozen, because it is handed to callers who may want to extend it:
433
+ * `[...DEFAULT_TOOL_RESULT_GUARDRAILS, myScreen()]`. A caller that could
434
+ * mutate it would be mutating the default for every other run in the process.
435
+ */
436
+ export const DEFAULT_TOOL_RESULT_GUARDRAILS = Object.freeze([
437
+ toolResultCorrespondenceGuardrail(),
438
+ ]);
141
439
  //# sourceMappingURL=guardrail-presets.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"guardrail-presets.js","sourceRoot":"","sources":["../../../src/runtime/query/guardrail-presets.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAA;AAS3E;;;;;;;;;;;;GAYG;AACH,MAAM,eAAe,GAAG,sBAAsB,CAAA;AAgB9C;;;;;;;GAOG;AACH,MAAM,UAAU,wBAAwB,CACvC,UAAkC,EAAE;IAEpC,MAAM,QAAQ,GAAG,CAAC,GAAG,eAAe,EAAE,GAAG,CAAC,OAAO,CAAC,aAAa,IAAI,EAAE,CAAC,CAAC,CAAA;IACvE,MAAM,IAAI,GAAG,OAAO,CAAC,OAAO,IAAI,QAAQ,CAAA;IAExC,OAAO;QACN,IAAI,EAAE,kBAAkB;QACxB,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,EAAoB,EAAE;YACvC,MAAM,KAAK,GAAa,EAAE,CAAA;YAC1B,IAAI,QAAQ,GAAG,MAAM,CAAA;YAErB,KAAK,MAAM,CAAC,KAAK,EAAE,OAAO,CAAC,IAAI,QAAQ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AAE,EAAE,CAAC,KAAK,CAAC,IAAI,KAAK,IAAI,CAAC,CAAA;gBAC7D,IAAI,CAAC,QAAQ;oBAAE,SAAQ;gBACvB,0DAA0D;gBAC1D,2DAA2D;gBAC3D,yDAAyD;gBACzD,2DAA2D;gBAC3D,kCAAkC;gBAClC,MAAM,OAAO,GAAG,WAAW;oBAC1B,CAAC,CAAC,6CAA6C,QAAQ,GAAG;oBAC1D,CAAC,CAAC,oBAAoB,QAAQ,GAAG,CAAA;gBAClC,OAAO;oBACN,MAAM,EAAE,QAAQ;oBAChB,MAAM,EAAE,GAAG,OAAO,OAAO,eAAe,CAAC,QAAQ,CAAC,IAAI,CAAC,2EAA2E;iBAClI,CAAA;YACF,CAAC;YAED,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,CAAA;QAC1B,CAAC;KACD,CAAA;AACF,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAuC,MAAM,CAAC,MAAM,CAAC;IAC/F,iCAAiC,EAAE;CACnC,CAAC,CAAA"}
@@ -232,6 +232,20 @@ export interface QueryParams {
232
232
  * agent decides the rest is worth re-reading. Set `0` to disable.
233
233
  */
234
234
  maxToolOutputChars?: number;
235
+ /**
236
+ * Screens to run against every tool result, where the registry was not
237
+ * built with its own.
238
+ *
239
+ * This is the run's half of a boundary whose only other door is the
240
+ * registry constructor — and a registry is usually the HOST's, assembled
241
+ * before the run exists, so a run-config option is the only way a run
242
+ * screens a registry it did not build. A registry built WITH
243
+ * `resultGuardrails` states its own policy and wins, `[]` included.
244
+ *
245
+ * Absent installs {@link DEFAULT_TOOL_RESULT_GUARDRAILS}; an empty array
246
+ * installs none, which is how a caller turns the default off.
247
+ */
248
+ toolResultGuardrails?: readonly import('../../types/guardrail/index.js').ToolResultGuardrailSpec[];
235
249
  /**
236
250
  * Smaller preview for text that exceeded maxToolOutputChars, after its full
237
251
  * host output and integrity manifest have been saved. Unset/0 keeps the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982
982
  : {}),
983
+ ...(params.toolResultGuardrails !== undefined
984
+ ? { toolResultGuardrails: params.toolResultGuardrails }
985
+ : {}),
983
986
  ...(params.retainedToolPreviewChars !== undefined
984
987
  ? { retainedToolPreviewChars: params.retainedToolPreviewChars }
985
988
  : {}),