stitchkit 0.136.0 → 0.136.1

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 (123) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/README.md +12 -0
  3. package/dist/agent-executor/executor-contract.d.ts.map +1 -1
  4. package/dist/agent-executor/vocabulary.d.ts +80 -0
  5. package/dist/agent-executor/vocabulary.d.ts.map +1 -1
  6. package/dist/agent-parts/model.d.ts +94 -0
  7. package/dist/agent-parts/model.d.ts.map +1 -1
  8. package/dist/agent-parts/parts.d.ts +176 -0
  9. package/dist/agent-parts/parts.d.ts.map +1 -1
  10. package/dist/agent-runtime/browser/browser-control-contract.d.ts +440 -0
  11. package/dist/agent-runtime/browser/browser-control-contract.d.ts.map +1 -1
  12. package/dist/agent-runtime/browser/control-schema.d.ts +528 -0
  13. package/dist/agent-runtime/browser/control-schema.d.ts.map +1 -1
  14. package/dist/agent-runtime/event-schema.d.ts +704 -0
  15. package/dist/agent-runtime/event-schema.d.ts.map +1 -1
  16. package/dist/agent-runtime/history/run-history-parts.d.ts.map +1 -1
  17. package/dist/agent-runtime/loop/provider-stream-parts.d.ts.map +1 -1
  18. package/dist/agent-runtime/loop/provider-stream-segments.d.ts +0 -2
  19. package/dist/agent-runtime/loop/provider-stream-segments.d.ts.map +1 -1
  20. package/dist/agent-runtime/loop/run-approval-signature.d.ts +5 -1
  21. package/dist/agent-runtime/loop/run-approval-signature.d.ts.map +1 -1
  22. package/dist/agent-runtime/loop/run-loop-events.d.ts +6 -1
  23. package/dist/agent-runtime/loop/run-loop-events.d.ts.map +1 -1
  24. package/dist/agent-runtime/loop/run-stream-parts.d.ts.map +1 -1
  25. package/dist/agent-runtime/loop/run-stream-recorded.d.ts.map +1 -1
  26. package/dist/agent-runtime/loop/run-tool-call.d.ts +11 -3
  27. package/dist/agent-runtime/loop/run-tool-call.d.ts.map +1 -1
  28. package/dist/agent-runtime/providers/ai-sdk-normalize.d.ts +4 -0
  29. package/dist/agent-runtime/providers/ai-sdk-normalize.d.ts.map +1 -1
  30. package/dist/agent-runtime/providers/ai-sdk-tools.d.ts.map +1 -1
  31. package/dist/agent-runtime/runtime-internals.d.ts +1 -3
  32. package/dist/agent-runtime/runtime-internals.d.ts.map +1 -1
  33. package/dist/agent-runtime/schemas-json-projection.d.ts +29 -0
  34. package/dist/agent-runtime/schemas-json-projection.d.ts.map +1 -0
  35. package/dist/agent-runtime/schemas-message.d.ts +88 -0
  36. package/dist/agent-runtime/schemas-message.d.ts.map +1 -1
  37. package/dist/agent-runtime/schemas-run.d.ts +88 -0
  38. package/dist/agent-runtime/schemas-run.d.ts.map +1 -1
  39. package/dist/agent-runtime/stores/branch-messages.d.ts.map +1 -1
  40. package/dist/agent-runtime/stores/branch-replay.d.ts +264 -0
  41. package/dist/agent-runtime/stores/branch-replay.d.ts.map +1 -1
  42. package/dist/agent-runtime/stores/conversations.d.ts +88 -0
  43. package/dist/agent-runtime/stores/conversations.d.ts.map +1 -1
  44. package/dist/agent-runtime/stores/sql-rows.d.ts +64 -0
  45. package/dist/agent-runtime/stores/sql-rows.d.ts.map +1 -1
  46. package/dist/agent-runtime/stores/store-driver-contract.d.ts +616 -0
  47. package/dist/agent-runtime/stores/store-driver-contract.d.ts.map +1 -1
  48. package/dist/agent-runtime/stores/store-events.d.ts +1056 -0
  49. package/dist/agent-runtime/stores/store-events.d.ts.map +1 -1
  50. package/dist/agent-runtime/stores/store.d.ts +1232 -0
  51. package/dist/agent-runtime/stores/store.d.ts.map +1 -1
  52. package/dist/agent-runtime/terminal-commit.d.ts +69 -5
  53. package/dist/agent-runtime/terminal-commit.d.ts.map +1 -1
  54. package/dist/agent-runtime/testing/store-conformance-lifecycle.d.ts +164 -36
  55. package/dist/agent-runtime/testing/store-conformance-lifecycle.d.ts.map +1 -1
  56. package/dist/agent-runtime/testing/store-conformance-support.d.ts +82 -18
  57. package/dist/agent-runtime/testing/store-conformance-support.d.ts.map +1 -1
  58. package/dist/application/diagnostic-journal-manager.d.ts +1 -1
  59. package/dist/application/diagnostic-journal-manager.d.ts.map +1 -1
  60. package/dist/application/notification-delivery.d.ts.map +1 -1
  61. package/dist/entrypoints/agent-executor/acp.js +5 -4
  62. package/dist/entrypoints/agent-executor/claude-sdk.js +7 -6
  63. package/dist/entrypoints/agent-executor/claude.js +7 -6
  64. package/dist/entrypoints/agent-executor/codex.js +6 -5
  65. package/dist/entrypoints/agent-executor/testing/claude-sdk.js +4 -3
  66. package/dist/entrypoints/agent-executor/testing.js +7 -6
  67. package/dist/entrypoints/agent-executor.js +7 -7
  68. package/dist/entrypoints/agent-runtime/ai-sdk.js +30 -24
  69. package/dist/entrypoints/agent-runtime/anthropic.js +3 -3
  70. package/dist/entrypoints/agent-runtime/browser.js +8 -7
  71. package/dist/entrypoints/agent-runtime/harness.js +14 -14
  72. package/dist/entrypoints/agent-runtime/openai.js +3 -3
  73. package/dist/entrypoints/agent-runtime/openrouter.js +3 -3
  74. package/dist/entrypoints/agent-runtime/postgres.js +9 -9
  75. package/dist/entrypoints/agent-runtime/realtime.js +9 -8
  76. package/dist/entrypoints/agent-runtime/sqlite/bun.js +10 -10
  77. package/dist/entrypoints/agent-runtime/sqlite/node.js +10 -10
  78. package/dist/entrypoints/agent-runtime/testing.js +8 -8
  79. package/dist/entrypoints/agent-runtime.js +21 -21
  80. package/dist/entrypoints/application/diagnostic-journal.js +14 -10
  81. package/dist/entrypoints/application.js +16 -4
  82. package/dist/entrypoints/tools/agent.js +2 -2
  83. package/dist/entrypoints/tools/toolkit.js +1 -1
  84. package/dist/entrypoints/tools.js +5 -3
  85. package/dist/index-1psbyyhj.js +21 -0
  86. package/dist/{index-kzsetgh9.js → index-26v8hjqm.js} +4 -4
  87. package/dist/{index-4243301z.js → index-2wm9b9vs.js} +5 -5
  88. package/dist/{index-tb36xawm.js → index-32ew02z1.js} +1 -1
  89. package/dist/{index-1en7k3q5.js → index-4q9tmzea.js} +3 -3
  90. package/dist/{index-shte29pg.js → index-8cnfgwg8.js} +148 -106
  91. package/dist/{index-mkmep637.js → index-9m1m92rg.js} +1 -1
  92. package/dist/index-a1rjr381.js +114 -0
  93. package/dist/{index-6kwdfb9m.js → index-akesakvj.js} +23 -4
  94. package/dist/{index-rg08syp1.js → index-d5mhgx72.js} +7 -5
  95. package/dist/{index-36mtj8xm.js → index-e4w0sfm1.js} +2 -2
  96. package/dist/{index-jperyn0c.js → index-gj4wdts6.js} +1 -1
  97. package/dist/{index-pd9e8rz4.js → index-gvv7y0s4.js} +1 -1
  98. package/dist/{index-vebzvse6.js → index-jy907kcs.js} +24 -1
  99. package/dist/{index-54wp467c.js → index-k5azb3v3.js} +4 -21
  100. package/dist/{index-qcy8et93.js → index-kaq9nb7h.js} +6 -6
  101. package/dist/{index-vse7x1qt.js → index-knqye3gv.js} +1 -1
  102. package/dist/{index-tav72wz5.js → index-ks4rhtcc.js} +5 -0
  103. package/dist/{index-xnqab06h.js → index-mtpcax6d.js} +3 -3
  104. package/dist/{index-7qza24g1.js → index-px9r6wv1.js} +1 -1
  105. package/dist/{index-epwvp88y.js → index-r9w7wfgn.js} +1 -1
  106. package/dist/{index-aacwkve4.js → index-sjq4akrx.js} +3 -5
  107. package/dist/{index-5dxgx3yj.js → index-tcv71frn.js} +1 -1
  108. package/dist/{index-1zy31r3b.js → index-v92djygb.js} +1 -1
  109. package/dist/{index-9f60gnfn.js → index-xaa3603f.js} +4 -11
  110. package/dist/{index-j3r7r1mh.js → index-yv7d6tav.js} +1 -1
  111. package/dist/{index-hberxns4.js → index-zagc12j1.js} +5 -5
  112. package/dist/{index-j5vzhj3d.js → index-zqc64g69.js} +3 -3
  113. package/dist/{index-hpzhz1vm.js → index-zthekmrt.js} +2 -2
  114. package/dist/internal/json-stringify.d.ts +37 -0
  115. package/dist/internal/json-stringify.d.ts.map +1 -0
  116. package/llms/agent-runtime.5.txt +1 -1
  117. package/llms/agent-runtime.txt +14 -0
  118. package/llms/application.2.txt +6 -3
  119. package/llms/application.3.txt +2 -1
  120. package/llms/application.txt +4 -1
  121. package/llms-full.txt +27 -6
  122. package/llms.txt +2 -2
  123. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -15,6 +15,19 @@ additive**; the first breaking change landed in 0.10.0. Grep the file for
15
15
 
16
16
  ## [Unreleased]
17
17
 
18
+ ## [0.136.1] - 2026-12-01
19
+
20
+ ### Fixed
21
+
22
+ - `stitchkit/agent-runtime` — a later turn sends what a tool's `toModelOutput` showed the model in the live step: the run records it as `tool-result.modelOutput` and history reads it back, instead of calling `toModelOutput` a second time on the JSON form of the output, where a `Date` is already a string. `toModelOutput: ({ output }) => ({ type: 'text', value: output.at.toISOString() })` passed its first turn and failed the next as `runtime_failure`; a `mountAgentTools` presenter over an output schema with `z.date()` silently became `JSON.stringify` of the output on later turns; and a changed `toModelOutput` rewrote what earlier turns said. A record without the field — written by an earlier version, holding a `file` content part, or branched — is presented through `toModelOutput` as before, and `resolveToolModelOutput` still runs first. A string output of a tool without `toModelOutput` is `{ type: 'text' }` on later turns as in the live step (it was a JSON string there). The field is optional and additive: `AgentToolResultPartSchema` accepts records without it, an earlier version drops it, and it does not cross the executor ↔ server wire. → ADR 0342
23
+ **Affects:** `stitchkit/agent-runtime` behaviour; `stitchkit/agent-runtime` AgentToolResultPartSchema, AgentMessagePartSchema, projectAgentHistory
24
+ - `stitchkit/agent-runtime`, `stitchkit/agent-runtime/ai-sdk` — a tool output reaches the model, and every later turn that reads the run back from the store, as `JSON.stringify` writes it: a field left `undefined` drops its key, a `Date` becomes its ISO string, `NaN` becomes `null`. The runtime checked the output against `z.json()` and, on any miss — one optional field set to `undefined` was enough, and so was a `Date` — replaced the whole successful result with `{ message: 'Non-JSON tool output omitted' }`, with no error and nothing in the record to say so; the model then answered as if the tool had returned nothing. The same reading applies to `createAgentRuntime`, `completeText` / `streamComplete` / `completeObject`, a streaming tool's last chunk and a `toModelOutput` JSON value, live and when a later turn replays it (that replay failed the run with a `ZodError` on an `undefined` key). An output `JSON.stringify` cannot write (a BigInt, a cycle, a throwing `toJSON` or getter) fails the call with an `AgentToolError` naming the tool and the field and saying the tool ran, which the model and the record both read — a tool with its own `toModelOutput` too, because a branch presents the result again from the recorded output; a value the runtime did not produce — a provider-executed tool's result, a raw provider chunk, a tool input — is recorded, and a provider's result also sent, as `{ unrecordable: 'a BigInt at <field>' }` instead of failing the run; a provider's failure whose detail JSON cannot carry reads `{ message: 'Tool execution failed' }` in the step and in the record alike. `fromAiSdkTools` reads an AI SDK `toModelOutput` JSON value the same way, where it turned a `Date` into `{}`, `NaN` into `"NaN"`, an `undefined` array item into `"undefined"` and a BigInt into a string. Before: `execute: () => ({ items: [{ a: 1, b: undefined }] })` reached the model as `{"message":"Non-JSON tool output omitted"}`; after: `{"items":[{"a":1}]}`, and `{ n: 2n }` fails the call with `Tool "list_tasks" ran, but its output cannot be sent as JSON: a BigInt at n`.
25
+ **Affects:** `stitchkit/agent-runtime` behaviour; `stitchkit/agent-runtime/ai-sdk` fromAiSdkTools
26
+ - `stitchkit/application` — `createNotificationOutbox` keeps an action's receipt as `JSON.stringify` writes it: a field left `undefined` drops its key and a `Date` becomes its ISO string. The receipt was checked against `z.json()`, and one such field recorded the whole receipt as `receipt: null, unrecorded: 'not-json'` although the send succeeded. A receipt JSON cannot carry (a BigInt, a cycle) is still recorded as `unrecorded: 'not-json'`, and the error reported to `onError` now names the field: `Notification action "telegram" returned a receipt that is not JSON: a BigInt at chatId`. Before: `send: () => ({ messageId: 42, sentAt: new Date(0) })` projected `{ receipt: null, unrecorded: 'not-json' }`; after: `{ receipt: { messageId: 42, sentAt: '1970-01-01T00:00:00.000Z' } }`.
27
+ **Affects:** `stitchkit/application` behaviour
28
+ - `stitchkit/application/diagnostic-journal` — `createDiagnosticJournal` accepts an event whose optional field is left `undefined`: the event is kept as `JSON.stringify` writes it, and only if `eventSchema` reads that form back. It was refused as `invalid` after passing `eventSchema`, and an event holding a cycle threw a `TypeError` out of `submit` instead of being refused. Before: `journal.submit({ message: 'a', detail: undefined })` → `{ outcome: 'refused', reason: 'invalid' }`; after: accepted.
29
+ **Affects:** `stitchkit/application/diagnostic-journal` createDiagnosticJournal
30
+
18
31
  ## [0.136.0] - 2026-12-01
19
32
 
20
33
  ### ⚠️ Breaking changes
package/README.md CHANGED
@@ -567,6 +567,18 @@ The full guide and API reference, in [`docs/`](./docs/README.md):
567
567
  - **[Roadmap](./ROADMAP.md)** · **[Changelog](./CHANGELOG.md)** ·
568
568
  security via **[SECURITY.md](./SECURITY.md)**.
569
569
 
570
+ ## The Stitch family
571
+
572
+ stitchkit is the building-block layer of a family of focused, independently usable open-source tools for
573
+ building software with coding agents. Each runs on its own, and stitchkit depends on none of them.
574
+
575
+ | Project | Role |
576
+ |---------|------|
577
+ | **stitchkit** (this repository) | **Building blocks.** One contract becomes an HTTP API, MCP tools, AI-agent tools, a CLI and a typed client. |
578
+ | **[StitchMux](https://github.com/max-listov/stitchmux)** | **Runs the agents.** A persistent, self-healing session supervisor and typed control plane. |
579
+ | **[StitchWire](https://github.com/max-listov/stitchwire)** | **Links machines into a fleet.** Broker-mediated typed RPC, bounded streams and volatile events between machines behind NAT — no inbound ports. |
580
+ | **[StitchDevKit](https://github.com/max-listov/stitchdevkit)** | **Keeps the work accurate.** Typed project gates, task discipline and exact-SHA releases (`stitchdevkit` on npm). When its `devkit` binary is on `PATH`, this repository's heavy scripts queue through `devkit run`. |
581
+
570
582
  ## License
571
583
 
572
584
  [MIT](./LICENSE) © Max Listov
@@ -1 +1 @@
1
- {"version":3,"file":"executor-contract.d.ts","sourceRoot":"","sources":["../../src/agent-executor/executor-contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yFAAyF;AACzF,eAAO,MAAM,gBAAgB,aAA6B,CAAC;AAG3D;;;GAGG;AACH,eAAO,MAAM,iBAAiB,UAAqB,CAAC;AAEpD;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB;;;;;kBAK5B,CAAC;AAC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C;AACxD,sEAAsE;AACtE,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAC1D,iFAAiF;AACjF,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,sFAAsF;AACtF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
@@ -1,4 +1,84 @@
1
1
  import { z } from 'zod';
2
+ /**
3
+ * A message part as it crosses the executor ↔ server wire: every block of
4
+ * `AgentMessagePartSchema`, the tool result without `modelOutput`.
5
+ */
6
+ export declare const ExecutorMessagePartSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7
+ type: z.ZodLiteral<"text">;
8
+ text: z.ZodString;
9
+ provider: z.ZodOptional<z.ZodObject<{
10
+ schemaVersion: z.ZodInt;
11
+ provider: z.ZodString;
12
+ data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
13
+ }, z.core.$strip>>;
14
+ }, z.core.$strip>, z.ZodObject<{
15
+ type: z.ZodLiteral<"reasoning">;
16
+ text: z.ZodString;
17
+ provider: z.ZodOptional<z.ZodObject<{
18
+ schemaVersion: z.ZodInt;
19
+ provider: z.ZodString;
20
+ data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
21
+ }, z.core.$strip>>;
22
+ }, z.core.$strip>, z.ZodObject<{
23
+ type: z.ZodLiteral<"file">;
24
+ mediaType: z.ZodString;
25
+ reference: z.ZodString;
26
+ filename: z.ZodOptional<z.ZodString>;
27
+ }, z.core.$strip>, z.ZodObject<{
28
+ type: z.ZodLiteral<"source">;
29
+ sourceId: z.ZodString;
30
+ url: z.ZodOptional<z.ZodURL>;
31
+ title: z.ZodOptional<z.ZodString>;
32
+ }, z.core.$strip>, z.ZodObject<{
33
+ type: z.ZodLiteral<"tool-call">;
34
+ callId: z.ZodString;
35
+ toolName: z.ZodString;
36
+ input: z.ZodJSONSchema;
37
+ provider: z.ZodOptional<z.ZodObject<{
38
+ schemaVersion: z.ZodInt;
39
+ provider: z.ZodString;
40
+ data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
41
+ }, z.core.$strip>>;
42
+ }, z.core.$strip>, z.ZodObject<{
43
+ type: z.ZodLiteral<"tool-result">;
44
+ callId: z.ZodString;
45
+ toolName: z.ZodString;
46
+ outcome: z.ZodEnum<{
47
+ error: "error";
48
+ interrupted: "interrupted";
49
+ success: "success";
50
+ }>;
51
+ output: z.ZodOptional<z.ZodJSONSchema>;
52
+ provider: z.ZodOptional<z.ZodObject<{
53
+ schemaVersion: z.ZodInt;
54
+ provider: z.ZodString;
55
+ data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
56
+ }, z.core.$strip>>;
57
+ }, z.core.$strip>, z.ZodObject<{
58
+ type: z.ZodLiteral<"tool-approval-request">;
59
+ approvalId: z.ZodString;
60
+ callId: z.ZodString;
61
+ isAutomatic: z.ZodOptional<z.ZodBoolean>;
62
+ signature: z.ZodOptional<z.ZodString>;
63
+ }, z.core.$strip>, z.ZodObject<{
64
+ type: z.ZodLiteral<"tool-approval-response">;
65
+ approvalId: z.ZodString;
66
+ approved: z.ZodBoolean;
67
+ reason: z.ZodOptional<z.ZodString>;
68
+ }, z.core.$strip>, z.ZodObject<{
69
+ type: z.ZodLiteral<"provider">;
70
+ envelope: z.ZodObject<{
71
+ schemaVersion: z.ZodInt;
72
+ provider: z.ZodString;
73
+ data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
74
+ }, z.core.$strip>;
75
+ }, z.core.$strip>, z.ZodObject<{
76
+ type: z.ZodLiteral<"control">;
77
+ reason: z.ZodEnum<{
78
+ "run-interrupted": "run-interrupted";
79
+ "stale-run": "stale-run";
80
+ }>;
81
+ }, z.core.$strip>], "type">;
2
82
  /**
3
83
  * What an engine said, as the executor streams it: the blocks of
4
84
  * `agent-parts`, each tagged with the turn, the item it belongs to and the
@@ -1 +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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAc9B,CAAC;AAEH,qEAAqE;AACrE,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,qEAAqE;AACrE,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,6DAA6D;AAC7D,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,sEAAsE;AACtE,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AACpF,0EAA0E;AAC1E,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AACxF,6EAA6E;AAC7E,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,sFAAsF;AACtF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AACxF,6FAA6F;AAC7F,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,qEAAqE;AACrE,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC1E,qFAAqF;AACrF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
@@ -233,6 +233,100 @@ export declare const AgentToolModelOutputSchema: z.ZodDiscriminatedUnion<[z.ZodO
233
233
  }, z.core.$strip>], "type">>;
234
234
  }, z.core.$strip>], "type">;
235
235
  export type AgentToolModelOutput = z.infer<typeof AgentToolModelOutputSchema>;
236
+ /**
237
+ * `AgentToolModelOutputSchema` as a run record keeps it beside a tool result: the same forms,
238
+ * JSON throughout, without the `file` content part — a file's bytes and `URL` belong to the tool,
239
+ * not to the record.
240
+ */
241
+ export declare const AgentRecordedToolModelOutputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
242
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
243
+ cacheControl: z.ZodOptional<z.ZodObject<{
244
+ type: z.ZodLiteral<"ephemeral">;
245
+ ttl: z.ZodOptional<z.ZodEnum<{
246
+ "1h": "1h";
247
+ "5m": "5m";
248
+ }>>;
249
+ }, z.core.$strict>>;
250
+ type: z.ZodLiteral<"text">;
251
+ value: z.ZodString;
252
+ }, z.core.$strip>, z.ZodObject<{
253
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
254
+ cacheControl: z.ZodOptional<z.ZodObject<{
255
+ type: z.ZodLiteral<"ephemeral">;
256
+ ttl: z.ZodOptional<z.ZodEnum<{
257
+ "1h": "1h";
258
+ "5m": "5m";
259
+ }>>;
260
+ }, z.core.$strict>>;
261
+ type: z.ZodLiteral<"error-text">;
262
+ value: z.ZodString;
263
+ }, z.core.$strip>, z.ZodObject<{
264
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
265
+ cacheControl: z.ZodOptional<z.ZodObject<{
266
+ type: z.ZodLiteral<"ephemeral">;
267
+ ttl: z.ZodOptional<z.ZodEnum<{
268
+ "1h": "1h";
269
+ "5m": "5m";
270
+ }>>;
271
+ }, z.core.$strict>>;
272
+ type: z.ZodLiteral<"json">;
273
+ value: z.ZodJSONSchema;
274
+ }, z.core.$strip>, z.ZodObject<{
275
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
276
+ cacheControl: z.ZodOptional<z.ZodObject<{
277
+ type: z.ZodLiteral<"ephemeral">;
278
+ ttl: z.ZodOptional<z.ZodEnum<{
279
+ "1h": "1h";
280
+ "5m": "5m";
281
+ }>>;
282
+ }, z.core.$strict>>;
283
+ type: z.ZodLiteral<"error-json">;
284
+ value: z.ZodJSONSchema;
285
+ }, z.core.$strip>, z.ZodObject<{
286
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
287
+ cacheControl: z.ZodOptional<z.ZodObject<{
288
+ type: z.ZodLiteral<"ephemeral">;
289
+ ttl: z.ZodOptional<z.ZodEnum<{
290
+ "1h": "1h";
291
+ "5m": "5m";
292
+ }>>;
293
+ }, z.core.$strict>>;
294
+ type: z.ZodLiteral<"execution-denied">;
295
+ reason: z.ZodOptional<z.ZodString>;
296
+ }, z.core.$strip>, z.ZodObject<{
297
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
298
+ cacheControl: z.ZodOptional<z.ZodObject<{
299
+ type: z.ZodLiteral<"ephemeral">;
300
+ ttl: z.ZodOptional<z.ZodEnum<{
301
+ "1h": "1h";
302
+ "5m": "5m";
303
+ }>>;
304
+ }, z.core.$strict>>;
305
+ type: z.ZodLiteral<"content">;
306
+ value: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
307
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
308
+ cacheControl: z.ZodOptional<z.ZodObject<{
309
+ type: z.ZodLiteral<"ephemeral">;
310
+ ttl: z.ZodOptional<z.ZodEnum<{
311
+ "1h": "1h";
312
+ "5m": "5m";
313
+ }>>;
314
+ }, z.core.$strict>>;
315
+ type: z.ZodLiteral<"text">;
316
+ text: z.ZodString;
317
+ }, z.core.$strip>, z.ZodObject<{
318
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
319
+ cacheControl: z.ZodOptional<z.ZodObject<{
320
+ type: z.ZodLiteral<"ephemeral">;
321
+ ttl: z.ZodOptional<z.ZodEnum<{
322
+ "1h": "1h";
323
+ "5m": "5m";
324
+ }>>;
325
+ }, z.core.$strict>>;
326
+ type: z.ZodLiteral<"custom">;
327
+ }, z.core.$strip>], "type">>;
328
+ }, z.core.$strip>], "type">;
329
+ export type AgentRecordedToolModelOutput = z.infer<typeof AgentRecordedToolModelOutputSchema>;
236
330
  /** One system instruction block, with optional provider-specific cache/routing options. */
237
331
  export declare const AgentModelSystemMessageSchema: z.ZodObject<{
238
332
  providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<AgentModelProviderOptionValue, AgentModelProviderOptionValue, z.core.$ZodTypeInternals<AgentModelProviderOptionValue, AgentModelProviderOptionValue>>>>>>>;
@@ -1 +1 @@
1
- {"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../src/agent-parts/model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;;;;GAOG;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;AAErE,6HAA6H;AAC7H,MAAM,MAAM,6BAA6B,GACrC,MAAM,GACN,MAAM,GACN,OAAO,GACP,IAAI,GACJ,SAAS,6BAA6B,EAAE,GACxC;IAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,GAAG,6BAA6B,GAAG,SAAS,CAAA;CAAE,CAAC;AAgB1E,mFAAmF;AACnF,eAAO,MAAM,+BAA+B,mPAG3C,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AAExF,oFAAoF;AACpF,e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 -67,6 +67,94 @@ export declare const AgentToolResultPartSchema: z.ZodObject<{
67
67
  success: "success";
68
68
  }>;
69
69
  output: z.ZodOptional<z.ZodJSONSchema>;
70
+ modelOutput: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
71
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
72
+ cacheControl: z.ZodOptional<z.ZodObject<{
73
+ type: z.ZodLiteral<"ephemeral">;
74
+ ttl: z.ZodOptional<z.ZodEnum<{
75
+ "1h": "1h";
76
+ "5m": "5m";
77
+ }>>;
78
+ }, z.core.$strict>>;
79
+ type: z.ZodLiteral<"text">;
80
+ value: z.ZodString;
81
+ }, z.core.$strip>, z.ZodObject<{
82
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
83
+ cacheControl: z.ZodOptional<z.ZodObject<{
84
+ type: z.ZodLiteral<"ephemeral">;
85
+ ttl: z.ZodOptional<z.ZodEnum<{
86
+ "1h": "1h";
87
+ "5m": "5m";
88
+ }>>;
89
+ }, z.core.$strict>>;
90
+ type: z.ZodLiteral<"error-text">;
91
+ value: z.ZodString;
92
+ }, z.core.$strip>, z.ZodObject<{
93
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
94
+ cacheControl: z.ZodOptional<z.ZodObject<{
95
+ type: z.ZodLiteral<"ephemeral">;
96
+ ttl: z.ZodOptional<z.ZodEnum<{
97
+ "1h": "1h";
98
+ "5m": "5m";
99
+ }>>;
100
+ }, z.core.$strict>>;
101
+ type: z.ZodLiteral<"json">;
102
+ value: z.ZodJSONSchema;
103
+ }, z.core.$strip>, z.ZodObject<{
104
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
105
+ cacheControl: z.ZodOptional<z.ZodObject<{
106
+ type: z.ZodLiteral<"ephemeral">;
107
+ ttl: z.ZodOptional<z.ZodEnum<{
108
+ "1h": "1h";
109
+ "5m": "5m";
110
+ }>>;
111
+ }, z.core.$strict>>;
112
+ type: z.ZodLiteral<"error-json">;
113
+ value: z.ZodJSONSchema;
114
+ }, z.core.$strip>, z.ZodObject<{
115
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
116
+ cacheControl: z.ZodOptional<z.ZodObject<{
117
+ type: z.ZodLiteral<"ephemeral">;
118
+ ttl: z.ZodOptional<z.ZodEnum<{
119
+ "1h": "1h";
120
+ "5m": "5m";
121
+ }>>;
122
+ }, z.core.$strict>>;
123
+ type: z.ZodLiteral<"execution-denied">;
124
+ reason: z.ZodOptional<z.ZodString>;
125
+ }, z.core.$strip>, z.ZodObject<{
126
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
127
+ cacheControl: z.ZodOptional<z.ZodObject<{
128
+ type: z.ZodLiteral<"ephemeral">;
129
+ ttl: z.ZodOptional<z.ZodEnum<{
130
+ "1h": "1h";
131
+ "5m": "5m";
132
+ }>>;
133
+ }, z.core.$strict>>;
134
+ type: z.ZodLiteral<"content">;
135
+ value: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
136
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
137
+ cacheControl: z.ZodOptional<z.ZodObject<{
138
+ type: z.ZodLiteral<"ephemeral">;
139
+ ttl: z.ZodOptional<z.ZodEnum<{
140
+ "1h": "1h";
141
+ "5m": "5m";
142
+ }>>;
143
+ }, z.core.$strict>>;
144
+ type: z.ZodLiteral<"text">;
145
+ text: z.ZodString;
146
+ }, z.core.$strip>, z.ZodObject<{
147
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
148
+ cacheControl: z.ZodOptional<z.ZodObject<{
149
+ type: z.ZodLiteral<"ephemeral">;
150
+ ttl: z.ZodOptional<z.ZodEnum<{
151
+ "1h": "1h";
152
+ "5m": "5m";
153
+ }>>;
154
+ }, z.core.$strict>>;
155
+ type: z.ZodLiteral<"custom">;
156
+ }, z.core.$strip>], "type">>;
157
+ }, z.core.$strip>], "type">>;
70
158
  provider: z.ZodOptional<z.ZodObject<{
71
159
  schemaVersion: z.ZodInt;
72
160
  provider: z.ZodString;
@@ -147,6 +235,94 @@ export declare const AgentMessagePartSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
147
235
  success: "success";
148
236
  }>;
149
237
  output: z.ZodOptional<z.ZodJSONSchema>;
238
+ modelOutput: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
239
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
240
+ cacheControl: z.ZodOptional<z.ZodObject<{
241
+ type: z.ZodLiteral<"ephemeral">;
242
+ ttl: z.ZodOptional<z.ZodEnum<{
243
+ "1h": "1h";
244
+ "5m": "5m";
245
+ }>>;
246
+ }, z.core.$strict>>;
247
+ type: z.ZodLiteral<"text">;
248
+ value: z.ZodString;
249
+ }, z.core.$strip>, z.ZodObject<{
250
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
251
+ cacheControl: z.ZodOptional<z.ZodObject<{
252
+ type: z.ZodLiteral<"ephemeral">;
253
+ ttl: z.ZodOptional<z.ZodEnum<{
254
+ "1h": "1h";
255
+ "5m": "5m";
256
+ }>>;
257
+ }, z.core.$strict>>;
258
+ type: z.ZodLiteral<"error-text">;
259
+ value: z.ZodString;
260
+ }, z.core.$strip>, z.ZodObject<{
261
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
262
+ cacheControl: z.ZodOptional<z.ZodObject<{
263
+ type: z.ZodLiteral<"ephemeral">;
264
+ ttl: z.ZodOptional<z.ZodEnum<{
265
+ "1h": "1h";
266
+ "5m": "5m";
267
+ }>>;
268
+ }, z.core.$strict>>;
269
+ type: z.ZodLiteral<"json">;
270
+ value: z.ZodJSONSchema;
271
+ }, z.core.$strip>, z.ZodObject<{
272
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
273
+ cacheControl: z.ZodOptional<z.ZodObject<{
274
+ type: z.ZodLiteral<"ephemeral">;
275
+ ttl: z.ZodOptional<z.ZodEnum<{
276
+ "1h": "1h";
277
+ "5m": "5m";
278
+ }>>;
279
+ }, z.core.$strict>>;
280
+ type: z.ZodLiteral<"error-json">;
281
+ value: z.ZodJSONSchema;
282
+ }, z.core.$strip>, z.ZodObject<{
283
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
284
+ cacheControl: z.ZodOptional<z.ZodObject<{
285
+ type: z.ZodLiteral<"ephemeral">;
286
+ ttl: z.ZodOptional<z.ZodEnum<{
287
+ "1h": "1h";
288
+ "5m": "5m";
289
+ }>>;
290
+ }, z.core.$strict>>;
291
+ type: z.ZodLiteral<"execution-denied">;
292
+ reason: z.ZodOptional<z.ZodString>;
293
+ }, z.core.$strip>, z.ZodObject<{
294
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
295
+ cacheControl: z.ZodOptional<z.ZodObject<{
296
+ type: z.ZodLiteral<"ephemeral">;
297
+ ttl: z.ZodOptional<z.ZodEnum<{
298
+ "1h": "1h";
299
+ "5m": "5m";
300
+ }>>;
301
+ }, z.core.$strict>>;
302
+ type: z.ZodLiteral<"content">;
303
+ value: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
304
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
305
+ cacheControl: z.ZodOptional<z.ZodObject<{
306
+ type: z.ZodLiteral<"ephemeral">;
307
+ ttl: z.ZodOptional<z.ZodEnum<{
308
+ "1h": "1h";
309
+ "5m": "5m";
310
+ }>>;
311
+ }, z.core.$strict>>;
312
+ type: z.ZodLiteral<"text">;
313
+ text: z.ZodString;
314
+ }, z.core.$strip>, z.ZodObject<{
315
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
316
+ cacheControl: z.ZodOptional<z.ZodObject<{
317
+ type: z.ZodLiteral<"ephemeral">;
318
+ ttl: z.ZodOptional<z.ZodEnum<{
319
+ "1h": "1h";
320
+ "5m": "5m";
321
+ }>>;
322
+ }, z.core.$strict>>;
323
+ type: z.ZodLiteral<"custom">;
324
+ }, z.core.$strip>], "type">>;
325
+ }, z.core.$strip>], "type">>;
150
326
  provider: z.ZodOptional<z.ZodObject<{
151
327
  schemaVersion: z.ZodInt;
152
328
  provider: z.ZodString;
@@ -1 +1 @@
1
- {"version":3,"file":"parts.d.ts","sourceRoot":"","sources":["../../src/agent-parts/parts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;GAQG;AAEH,kDAAkD;AAClD,eAAO,MAAM,2BAA2B;;;;iBAItC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF,eAAO,MAAM,mBAAmB;;;;;;;;iBAI9B,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;iBAInC,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;iBAK9B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;iBAKhC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO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