stitchkit 0.110.2 → 0.110.4

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 (37) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/agent-runtime/archive-projection.d.ts +10 -0
  3. package/dist/agent-runtime/archive-projection.d.ts.map +1 -0
  4. package/dist/agent-runtime/branch-messages.d.ts.map +1 -1
  5. package/dist/agent-runtime/branch-provider.d.ts +123 -8
  6. package/dist/agent-runtime/branch-provider.d.ts.map +1 -1
  7. package/dist/agent-runtime/branch-replay.d.ts.map +1 -1
  8. package/dist/agent-runtime/branch-source.d.ts.map +1 -1
  9. package/dist/agent-runtime/provider-content.d.ts +183 -0
  10. package/dist/agent-runtime/provider-content.d.ts.map +1 -0
  11. package/dist/agent-runtime/provider-journal.d.ts +209 -0
  12. package/dist/agent-runtime/provider-journal.d.ts.map +1 -0
  13. package/dist/agent-runtime/run-provider-ledger.d.ts.map +1 -1
  14. package/dist/agent-runtime/sqlite-events.d.ts.map +1 -1
  15. package/dist/agent-runtime/store-archive.d.ts.map +1 -1
  16. package/dist/agent-runtime/store-branch.d.ts.map +1 -1
  17. package/dist/agent-runtime/store-events.d.ts +1041 -0
  18. package/dist/agent-runtime/store-events.d.ts.map +1 -1
  19. package/dist/agent-runtime/store-replay.d.ts +4 -0
  20. package/dist/agent-runtime/store-replay.d.ts.map +1 -0
  21. package/dist/entrypoints/agent-runtime/harness.js +2 -2
  22. package/dist/entrypoints/agent-runtime/sqlite/bun.js +3 -3
  23. package/dist/entrypoints/agent-runtime/sqlite/node.js +3 -3
  24. package/dist/entrypoints/agent-runtime/testing.js +3 -3
  25. package/dist/entrypoints/agent-runtime.d.ts +1 -1
  26. package/dist/entrypoints/agent-runtime.d.ts.map +1 -1
  27. package/dist/entrypoints/agent-runtime.js +6 -4
  28. package/dist/{index-zbssway3.js → index-5pbtbce0.js} +4 -9
  29. package/dist/{index-79zxnh52.js → index-8jv0trhg.js} +10 -7
  30. package/dist/{index-e9rbhw1s.js → index-9ket8wzx.js} +2 -2
  31. package/dist/{index-6qeqdz0z.js → index-jna0ejsa.js} +178 -1
  32. package/dist/{index-s2bgwsyr.js → index-mpg1t7nv.js} +1058 -1119
  33. package/llms/agent-runtime.3.txt +1 -0
  34. package/llms/agent-runtime.txt +23 -2
  35. package/llms-full.txt +24 -2
  36. package/llms.txt +1 -1
  37. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -15,6 +15,22 @@ additive**; the first breaking change landed in 0.10.0. Grep the file for
15
15
 
16
16
  ## [Unreleased]
17
17
 
18
+ ## [0.110.4] - 2026-10-15
19
+
20
+ ### Fixed
21
+
22
+ - `stitchkit/agent-runtime`: conversation branch and restore retain provider options on recorded message parts and canonical reasoning/tool calls. The writer and branch reader share strict journal schemas; unknown fields, invalid digests and foreign runtime references still refuse atomically. Installed Bun/Node proofs cover fresh streaming exports and a synthetic archive produced by 0.109.4.
23
+
24
+ ## [0.110.3] - 2026-10-15
25
+
26
+ ### Added
27
+
28
+ - `stitchkit/agent-runtime`: `AgentStoreTransitionRecordSchema` and its inferred `AgentStoreTransitionRecord` type inspect the persisted journal, including full transitions and compact hash-only streaming checkpoints. `AgentStoreTransitionSchema` continues to describe executable mutations. These two names belong to the runtime entrypoint (I3, I8, I15).
29
+
30
+ ### Fixed
31
+
32
+ - `stitchkit/agent-runtime`: branch and restore accept complete SQLite streaming exports with companion projections, including schema v4 exports written by 0.109.4. Companion cache envelopes are validated and their values discarded; destination projections rebuild from the rekeyed ledger without importing source state or effects. Ordinary archive import also restores compacted history and admissions through the shared replay writer. Unknown journal payloads still refuse atomically; see ADR 0259.
33
+
18
34
  ## [0.110.2] - 2026-10-15
19
35
 
20
36
  ### Added
@@ -0,0 +1,10 @@
1
+ import { z } from 'zod';
2
+ /** Derived companion cache, distinct from the authoritative runtime snapshot. */
3
+ export declare const ArchiveProjectionSchema: z.ZodObject<{
4
+ name: z.ZodString;
5
+ version: z.ZodInt;
6
+ uptoSeq: z.ZodInt;
7
+ value: z.ZodJSONSchema;
8
+ updatedAt: z.ZodString;
9
+ }, z.core.$strict>;
10
+ //# sourceMappingURL=archive-projection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"archive-projection.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/archive-projection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,iFAAiF;AACjF,eAAO,MAAM,uBAAuB;;;;;;kBAQzB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"branch-messages.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/branch-messages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAG5D,OAAO,KAAK,EAAE,YAAY,EAAoB,QAAQ,EAAE,MAAM,WAAW,CAAC;AAE1E,+EAA+E;AAC/E,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,OAAO,KAAK,CAoBxF;AAgCD,wBAAgB,cAAc,CAC5B,GAAG,EAAE,gBAAgB,EACrB,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,EACzC,MAAM,EAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;SA4BhB;AA6CD,wBAAgB,aAAa,CAC3B,GAAG,EAAE,gBAAgB,EACrB,oBAAoB,EAAE,MAAM,EAC5B,OAAO,EAAE,YAAY,GACpB,YAAY,CAad;AAED,wBAAgB,SAAS,CACvB,GAAG,EAAE,gBAAgB,EACrB,oBAAoB,EAAE,MAAM,EAC5B,GAAG,EAAE,QAAQ,EACb,OAAO,EAAE,OAAO,GACf,QAAQ,CAsBV"}
1
+ {"version":3,"file":"branch-messages.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/branch-messages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAG5D,OAAO,KAAK,EAAE,YAAY,EAAoB,QAAQ,EAAE,MAAM,WAAW,CAAC;AAE1E,+EAA+E;AAC/E,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,OAAO,KAAK,CAoBxF;AAgCD,wBAAgB,cAAc,CAC5B,GAAG,EAAE,gBAAgB,EACrB,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,EACzC,MAAM,EAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;SA4BhB;AA2CD,wBAAgB,aAAa,CAC3B,GAAG,EAAE,gBAAgB,EACrB,oBAAoB,EAAE,MAAM,EAC5B,OAAO,EAAE,YAAY,GACpB,YAAY,CAad;AAED,wBAAgB,SAAS,CACvB,GAAG,EAAE,gBAAgB,EACrB,oBAAoB,EAAE,MAAM,EAC5B,GAAG,EAAE,QAAQ,EACb,OAAO,EAAE,OAAO,GACf,QAAQ,CAsBV"}
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import type { z } from 'zod';
2
2
  import type { BranchIdentities } from './branch-identities.js';
3
3
  /** Provider IDs stay provider IDs; runtime call references and their content digests are rekeyed. */
4
4
  export declare class BranchProvider {
@@ -8,30 +8,79 @@ export declare class BranchProvider {
8
8
  rekey(kind: string, raw: z.infer<ReturnType<typeof z.json>>): {
9
9
  sha256: string;
10
10
  message: {
11
- role: "assistant" | "tool" | "user";
11
+ providerOptions?: Record<string, Record<string, z.JSONType>> | undefined;
12
+ role: "assistant" | "system" | "tool" | "user";
12
13
  content: string | ({
13
- type: "reasoning" | "text";
14
+ providerOptions?: Record<string, Record<string, z.JSONType>> | undefined;
15
+ type: "text";
14
16
  text: string;
15
17
  } | {
18
+ providerOptions?: Record<string, Record<string, z.JSONType>> | undefined;
16
19
  type: "file";
17
- data: string | {
20
+ data: string | Record<string, string> | {
18
21
  binary: true;
19
22
  sha256: string;
20
23
  bytes: number;
24
+ } | {
25
+ type: "data";
26
+ data: string | {
27
+ binary: true;
28
+ sha256: string;
29
+ bytes: number;
30
+ };
31
+ } | {
32
+ type: "url";
33
+ url: string;
34
+ } | {
35
+ type: "reference";
36
+ reference: Record<string, string>;
37
+ } | {
38
+ type: "text";
39
+ text: string;
21
40
  };
22
41
  mediaType: string;
23
42
  filename?: string | undefined;
24
43
  } | {
44
+ providerOptions?: Record<string, Record<string, z.JSONType>> | undefined;
45
+ type: "reasoning";
46
+ text: string;
47
+ } | {
48
+ providerOptions?: Record<string, Record<string, z.JSONType>> | undefined;
49
+ type: "custom";
50
+ kind: string;
51
+ } | {
52
+ providerOptions?: Record<string, Record<string, z.JSONType>> | undefined;
53
+ type: "reasoning-file";
54
+ data: string | {
55
+ binary: true;
56
+ sha256: string;
57
+ bytes: number;
58
+ } | {
59
+ type: "data";
60
+ data: string | {
61
+ binary: true;
62
+ sha256: string;
63
+ bytes: number;
64
+ };
65
+ } | {
66
+ type: "url";
67
+ url: string;
68
+ };
69
+ mediaType: string;
70
+ } | {
71
+ providerOptions?: Record<string, Record<string, z.JSONType>> | undefined;
25
72
  type: "image";
26
- image: string | {
73
+ image: string | Record<string, string> | {
27
74
  binary: true;
28
75
  sha256: string;
29
76
  bytes: number;
30
77
  };
31
78
  mediaType?: string | undefined;
32
79
  } | {
80
+ providerOptions?: Record<string, Record<string, z.JSONType>> | undefined;
33
81
  type: "tool-call";
34
82
  toolName: string;
83
+ providerExecuted?: boolean | undefined;
35
84
  toolCallId: string;
36
85
  input: string | number | boolean | z.JSONType[] | {
37
86
  [key: string]: z.JSONType;
@@ -57,15 +106,81 @@ export declare class BranchProvider {
57
106
  omittedBytes: number;
58
107
  } | undefined;
59
108
  } | null;
60
- approvalId?: undefined;
61
109
  } | {
110
+ providerOptions?: Record<string, Record<string, z.JSONType>> | undefined;
62
111
  type: "tool-result";
63
112
  toolName: string;
64
113
  toolCallId: string;
65
114
  output: {
115
+ providerOptions?: Record<string, Record<string, z.JSONType>> | undefined;
66
116
  type: "error-text" | "text";
67
117
  value: string;
68
118
  } | {
119
+ providerOptions?: Record<string, Record<string, z.JSONType>> | undefined;
120
+ type: "execution-denied";
121
+ reason?: string | undefined;
122
+ } | {
123
+ type: "content";
124
+ value: ({
125
+ providerOptions?: Record<string, Record<string, z.JSONType>> | undefined;
126
+ type: "text";
127
+ text: string;
128
+ } | {
129
+ providerOptions?: Record<string, Record<string, z.JSONType>> | undefined;
130
+ type: "file";
131
+ data: {
132
+ type: "data";
133
+ data: string | {
134
+ binary: true;
135
+ sha256: string;
136
+ bytes: number;
137
+ };
138
+ } | {
139
+ type: "url";
140
+ url: string;
141
+ } | {
142
+ type: "reference";
143
+ reference: Record<string, string>;
144
+ } | {
145
+ type: "text";
146
+ text: string;
147
+ };
148
+ mediaType: string;
149
+ filename?: string | undefined;
150
+ } | {
151
+ providerOptions?: Record<string, Record<string, z.JSONType>> | undefined;
152
+ type: "file-data";
153
+ data: string;
154
+ mediaType: string;
155
+ filename?: string | undefined;
156
+ } | {
157
+ providerOptions?: Record<string, Record<string, z.JSONType>> | undefined;
158
+ type: "image-data";
159
+ data: string;
160
+ mediaType: string;
161
+ } | {
162
+ providerOptions?: Record<string, Record<string, z.JSONType>> | undefined;
163
+ type: "file-url";
164
+ url: string;
165
+ mediaType?: string | undefined;
166
+ } | {
167
+ providerOptions?: Record<string, Record<string, z.JSONType>> | undefined;
168
+ type: "image-url";
169
+ url: string;
170
+ } | {
171
+ providerOptions?: Record<string, Record<string, z.JSONType>> | undefined;
172
+ type: "file-id" | "image-file-id";
173
+ fileId: string | Record<string, string>;
174
+ } | {
175
+ providerOptions?: Record<string, Record<string, z.JSONType>> | undefined;
176
+ type: "file-reference" | "image-file-reference";
177
+ providerReference: Record<string, string>;
178
+ } | {
179
+ providerOptions?: Record<string, Record<string, z.JSONType>> | undefined;
180
+ type: "custom";
181
+ })[];
182
+ } | {
183
+ providerOptions?: Record<string, Record<string, z.JSONType>> | undefined;
69
184
  type: "error-json" | "json";
70
185
  value: string | number | boolean | z.JSONType[] | {
71
186
  [key: string]: z.JSONType;
@@ -92,16 +207,16 @@ export declare class BranchProvider {
92
207
  } | undefined;
93
208
  } | null;
94
209
  };
95
- approvalId?: undefined;
96
210
  } | {
97
211
  type: "tool-approval-request";
98
212
  approvalId: string;
99
213
  toolCallId: string;
214
+ reason?: string | undefined;
100
215
  } | {
101
216
  type: "tool-approval-response";
102
217
  approved: boolean;
103
218
  reason?: string | undefined;
104
- toolCallId?: undefined;
219
+ providerExecuted?: boolean | undefined;
105
220
  approvalId: string;
106
221
  })[];
107
222
  };
@@ -1 +1 @@
1
- {"version":3,"file":"branch-provider.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/branch-provider.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAmH5D,qGAAqG;AACrG,qBAAa,cAAc;IAEb,OAAO,CAAC,QAAQ,CAAC,GAAG;IADhC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAA6B;IACrD,YAA6B,GAAG,EAAE,gBAAgB,EAAI;IACtD,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAgF1D;CACF"}
1
+ {"version":3,"file":"branch-provider.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/branch-provider.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAC7B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAmB5D,qGAAqG;AACrG,qBAAa,cAAc;IAEb,OAAO,CAAC,QAAQ,CAAC,GAAG;IADhC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAA6B;IACrD,YAA6B,GAAG,EAAE,gBAAgB,EAAI;IACtD,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAkG1D;CACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"branch-replay.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/branch-replay.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAEpE,OAAO,EACL,KAAK,YAAY,EAEjB,KAAK,aAAa,EAGnB,MAAM,WAAW,CAAC;AAOnB,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAI5E,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAUtB,CAAC;AAsCZ,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,uBAAuB,GAAG,cAAc,CAyB/E;AAED,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,aAAa,CAAC;IACxB,OAAO,EAAE,IAAI,CAAC,cAAc,EAAE,SAAS,GAAG,UAAU,CAAC,EAAE,CAAC;IACxD,QAAQ,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;IAChD,2EAA2E;IAC3E,gBAAgB,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC9B,gBAAgB,EAAE,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;CAC7C;AAED,wBAAgB,kBAAkB,CAChC,cAAc,EAAE,MAAM,EACtB,MAAM,EAAE,SAAS,uBAAuB,EAAE,EAC1C,gBAAgB,CAAC,EAAE,aAAa,GAC/B,YAAY,CAyJd"}
1
+ {"version":3,"file":"branch-replay.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/branch-replay.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAEpE,OAAO,EACL,KAAK,YAAY,EAEjB,KAAK,aAAa,EAEnB,MAAM,WAAW,CAAC;AAWnB,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAI5E,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAUtB,CAAC;AAEZ,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,uBAAuB,GAAG,cAAc,CAyB/E;AAED,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,aAAa,CAAC;IACxB,OAAO,EAAE,IAAI,CAAC,cAAc,EAAE,SAAS,GAAG,UAAU,CAAC,EAAE,CAAC;IACxD,QAAQ,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;IAChD,2EAA2E;IAC3E,gBAAgB,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC9B,gBAAgB,EAAE,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;CAC7C;AAED,wBAAgB,kBAAkB,CAChC,cAAc,EAAE,MAAM,EACtB,MAAM,EAAE,SAAS,uBAAuB,EAAE,EAC1C,gBAAgB,CAAC,EAAE,aAAa,GAC/B,YAAY,CAyJd"}
@@ -1 +1 @@
1
- {"version":3,"file":"branch-source.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/branch-source.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AACpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,mBAAmB,CAAC;AAGtE,OAAO,EAAE,KAAK,YAAY,EAAsB,MAAM,iBAAiB,CAAC;AASxE,wBAAgB,UAAU,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAEjD;AA8CD,MAAM,WAAW,YAAY;IAC3B,cAAc,EAAE,MAAM,CAAC;IACvB,MAAM,EAAE,uBAAuB,EAAE,CAAC;IAClC,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,EAAE,CAAC;IAC7C,MAAM,EAAE,YAAY,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,sGAAsG;AACtG,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,UAAU,EACjB,MAAM,EAAE,4BAA4B,CAAC,QAAQ,CAAC,GAC7C,YAAY,CAsFd"}
1
+ {"version":3,"file":"branch-source.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/branch-source.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAEpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,mBAAmB,CAAC;AAGtE,OAAO,EAAE,KAAK,YAAY,EAAsB,MAAM,iBAAiB,CAAC;AASxE,wBAAgB,UAAU,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAEjD;AA8CD,MAAM,WAAW,YAAY;IAC3B,cAAc,EAAE,MAAM,CAAC;IACvB,MAAM,EAAE,uBAAuB,EAAE,CAAC;IAClC,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,EAAE,CAAC;IAC7C,MAAM,EAAE,YAAY,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,sGAAsG;AACtG,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,UAAU,EACjB,MAAM,EAAE,4BAA4B,CAAC,QAAQ,CAAC,GAC7C,YAAY,CAgGd"}
@@ -0,0 +1,183 @@
1
+ import { z } from 'zod';
2
+ /** JSON form after the ledger replaces binary content and URLs with durable evidence. */
3
+ export declare const ProviderJournalOptions: {
4
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
5
+ };
6
+ export declare const ProviderJournalContentSchema: z.ZodUnion<readonly [z.ZodObject<{
7
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
8
+ type: z.ZodLiteral<"text">;
9
+ text: z.ZodString;
10
+ }, z.core.$strict>, z.ZodObject<{
11
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
12
+ type: z.ZodLiteral<"file">;
13
+ data: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
14
+ type: z.ZodLiteral<"data">;
15
+ data: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
16
+ binary: z.ZodLiteral<true>;
17
+ sha256: z.ZodString;
18
+ bytes: z.ZodInt;
19
+ }, z.core.$strict>]>;
20
+ }, z.core.$strict>, z.ZodObject<{
21
+ type: z.ZodLiteral<"url">;
22
+ url: z.ZodString;
23
+ }, z.core.$strict>, z.ZodObject<{
24
+ type: z.ZodLiteral<"reference">;
25
+ reference: z.ZodRecord<z.ZodString, z.ZodString>;
26
+ }, z.core.$strict>, z.ZodObject<{
27
+ type: z.ZodLiteral<"text">;
28
+ text: z.ZodString;
29
+ }, z.core.$strict>]>, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
30
+ binary: z.ZodLiteral<true>;
31
+ sha256: z.ZodString;
32
+ bytes: z.ZodInt;
33
+ }, z.core.$strict>]>, z.ZodRecord<z.ZodString, z.ZodString>]>;
34
+ mediaType: z.ZodString;
35
+ filename: z.ZodOptional<z.ZodString>;
36
+ }, z.core.$strict>, z.ZodObject<{
37
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
38
+ type: z.ZodLiteral<"reasoning">;
39
+ text: z.ZodString;
40
+ }, z.core.$strict>, z.ZodObject<{
41
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
42
+ type: z.ZodLiteral<"custom">;
43
+ kind: z.ZodString;
44
+ }, z.core.$strict>, z.ZodObject<{
45
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
46
+ type: z.ZodLiteral<"reasoning-file">;
47
+ data: z.ZodUnion<readonly [z.ZodObject<{
48
+ type: z.ZodLiteral<"data">;
49
+ data: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
50
+ binary: z.ZodLiteral<true>;
51
+ sha256: z.ZodString;
52
+ bytes: z.ZodInt;
53
+ }, z.core.$strict>]>;
54
+ }, z.core.$strict>, z.ZodObject<{
55
+ type: z.ZodLiteral<"url">;
56
+ url: z.ZodString;
57
+ }, z.core.$strict>, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
58
+ binary: z.ZodLiteral<true>;
59
+ sha256: z.ZodString;
60
+ bytes: z.ZodInt;
61
+ }, z.core.$strict>]>]>;
62
+ mediaType: z.ZodString;
63
+ }, z.core.$strict>, z.ZodObject<{
64
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
65
+ type: z.ZodLiteral<"image">;
66
+ image: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
67
+ binary: z.ZodLiteral<true>;
68
+ sha256: z.ZodString;
69
+ bytes: z.ZodInt;
70
+ }, z.core.$strict>]>, z.ZodRecord<z.ZodString, z.ZodString>]>;
71
+ mediaType: z.ZodOptional<z.ZodString>;
72
+ }, z.core.$strict>, z.ZodObject<{
73
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
74
+ type: z.ZodLiteral<"tool-call">;
75
+ toolCallId: z.ZodString;
76
+ toolName: z.ZodString;
77
+ input: z.ZodJSONSchema;
78
+ providerExecuted: z.ZodOptional<z.ZodBoolean>;
79
+ }, z.core.$strict>, z.ZodObject<{
80
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
81
+ type: z.ZodLiteral<"tool-result">;
82
+ toolCallId: z.ZodString;
83
+ toolName: z.ZodString;
84
+ output: z.ZodDiscriminatedUnion<[z.ZodObject<{
85
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
86
+ type: z.ZodEnum<{
87
+ "error-text": "error-text";
88
+ text: "text";
89
+ }>;
90
+ value: z.ZodString;
91
+ }, z.core.$strict>, z.ZodObject<{
92
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
93
+ type: z.ZodEnum<{
94
+ "error-json": "error-json";
95
+ json: "json";
96
+ }>;
97
+ value: z.ZodJSONSchema;
98
+ }, z.core.$strict>, z.ZodObject<{
99
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
100
+ type: z.ZodLiteral<"execution-denied">;
101
+ reason: z.ZodOptional<z.ZodString>;
102
+ }, z.core.$strict>, z.ZodObject<{
103
+ type: z.ZodLiteral<"content">;
104
+ value: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
105
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
106
+ type: z.ZodLiteral<"text">;
107
+ text: z.ZodString;
108
+ }, z.core.$strict>, z.ZodObject<{
109
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
110
+ type: z.ZodLiteral<"file">;
111
+ data: z.ZodUnion<readonly [z.ZodObject<{
112
+ type: z.ZodLiteral<"data">;
113
+ data: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
114
+ binary: z.ZodLiteral<true>;
115
+ sha256: z.ZodString;
116
+ bytes: z.ZodInt;
117
+ }, z.core.$strict>]>;
118
+ }, z.core.$strict>, z.ZodObject<{
119
+ type: z.ZodLiteral<"url">;
120
+ url: z.ZodString;
121
+ }, z.core.$strict>, z.ZodObject<{
122
+ type: z.ZodLiteral<"reference">;
123
+ reference: z.ZodRecord<z.ZodString, z.ZodString>;
124
+ }, z.core.$strict>, z.ZodObject<{
125
+ type: z.ZodLiteral<"text">;
126
+ text: z.ZodString;
127
+ }, z.core.$strict>]>;
128
+ mediaType: z.ZodString;
129
+ filename: z.ZodOptional<z.ZodString>;
130
+ }, z.core.$strict>, z.ZodObject<{
131
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
132
+ type: z.ZodLiteral<"file-data">;
133
+ data: z.ZodString;
134
+ mediaType: z.ZodString;
135
+ filename: z.ZodOptional<z.ZodString>;
136
+ }, z.core.$strict>, z.ZodObject<{
137
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
138
+ type: z.ZodLiteral<"image-data">;
139
+ data: z.ZodString;
140
+ mediaType: z.ZodString;
141
+ }, z.core.$strict>, z.ZodObject<{
142
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
143
+ type: z.ZodLiteral<"file-url">;
144
+ url: z.ZodString;
145
+ mediaType: z.ZodOptional<z.ZodString>;
146
+ }, z.core.$strict>, z.ZodObject<{
147
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
148
+ type: z.ZodLiteral<"image-url">;
149
+ url: z.ZodString;
150
+ }, z.core.$strict>, z.ZodObject<{
151
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
152
+ type: z.ZodEnum<{
153
+ "file-id": "file-id";
154
+ "image-file-id": "image-file-id";
155
+ }>;
156
+ fileId: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>;
157
+ }, z.core.$strict>, z.ZodObject<{
158
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
159
+ type: z.ZodEnum<{
160
+ "file-reference": "file-reference";
161
+ "image-file-reference": "image-file-reference";
162
+ }>;
163
+ providerReference: z.ZodRecord<z.ZodString, z.ZodString>;
164
+ }, z.core.$strict>, z.ZodObject<{
165
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
166
+ type: z.ZodLiteral<"custom">;
167
+ }, z.core.$strict>]>>;
168
+ }, z.core.$strict>], "type">;
169
+ }, z.core.$strict>, z.ZodObject<{
170
+ type: z.ZodLiteral<"tool-approval-request">;
171
+ approvalId: z.ZodString;
172
+ toolCallId: z.ZodString;
173
+ signature: z.ZodOptional<z.ZodString>;
174
+ isAutomatic: z.ZodOptional<z.ZodBoolean>;
175
+ reason: z.ZodOptional<z.ZodString>;
176
+ }, z.core.$strict>, z.ZodObject<{
177
+ type: z.ZodLiteral<"tool-approval-response">;
178
+ approvalId: z.ZodString;
179
+ approved: z.ZodBoolean;
180
+ reason: z.ZodOptional<z.ZodString>;
181
+ providerExecuted: z.ZodOptional<z.ZodBoolean>;
182
+ }, z.core.$strict>]>;
183
+ //# sourceMappingURL=provider-content.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"provider-content.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/provider-content.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,yFAAyF;AACzF,eAAO,MAAM,sBAAsB;IACjC,eAAe;CAChB,CAAC;AAuGF,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBA2DvC,CAAC"}
@@ -0,0 +1,209 @@
1
+ import { z } from 'zod';
2
+ export declare const ProviderJournalMessageSchema: z.ZodObject<{
3
+ sha256: z.ZodString;
4
+ message: z.ZodObject<{
5
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
6
+ role: z.ZodEnum<{
7
+ assistant: "assistant";
8
+ system: "system";
9
+ tool: "tool";
10
+ user: "user";
11
+ }>;
12
+ content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
13
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
14
+ type: z.ZodLiteral<"text">;
15
+ text: z.ZodString;
16
+ }, z.core.$strict>, z.ZodObject<{
17
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
18
+ type: z.ZodLiteral<"file">;
19
+ data: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
20
+ type: z.ZodLiteral<"data">;
21
+ data: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
22
+ binary: z.ZodLiteral<true>;
23
+ sha256: z.ZodString;
24
+ bytes: z.ZodInt;
25
+ }, z.core.$strict>]>;
26
+ }, z.core.$strict>, z.ZodObject<{
27
+ type: z.ZodLiteral<"url">;
28
+ url: z.ZodString;
29
+ }, z.core.$strict>, z.ZodObject<{
30
+ type: z.ZodLiteral<"reference">;
31
+ reference: z.ZodRecord<z.ZodString, z.ZodString>;
32
+ }, z.core.$strict>, z.ZodObject<{
33
+ type: z.ZodLiteral<"text">;
34
+ text: z.ZodString;
35
+ }, z.core.$strict>]>, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
36
+ binary: z.ZodLiteral<true>;
37
+ sha256: z.ZodString;
38
+ bytes: z.ZodInt;
39
+ }, z.core.$strict>]>, z.ZodRecord<z.ZodString, z.ZodString>]>;
40
+ mediaType: z.ZodString;
41
+ filename: z.ZodOptional<z.ZodString>;
42
+ }, z.core.$strict>, z.ZodObject<{
43
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
44
+ type: z.ZodLiteral<"reasoning">;
45
+ text: z.ZodString;
46
+ }, z.core.$strict>, z.ZodObject<{
47
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
48
+ type: z.ZodLiteral<"custom">;
49
+ kind: z.ZodString;
50
+ }, z.core.$strict>, z.ZodObject<{
51
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
52
+ type: z.ZodLiteral<"reasoning-file">;
53
+ data: z.ZodUnion<readonly [z.ZodObject<{
54
+ type: z.ZodLiteral<"data">;
55
+ data: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
56
+ binary: z.ZodLiteral<true>;
57
+ sha256: z.ZodString;
58
+ bytes: z.ZodInt;
59
+ }, z.core.$strict>]>;
60
+ }, z.core.$strict>, z.ZodObject<{
61
+ type: z.ZodLiteral<"url">;
62
+ url: z.ZodString;
63
+ }, z.core.$strict>, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
64
+ binary: z.ZodLiteral<true>;
65
+ sha256: z.ZodString;
66
+ bytes: z.ZodInt;
67
+ }, z.core.$strict>]>]>;
68
+ mediaType: z.ZodString;
69
+ }, z.core.$strict>, z.ZodObject<{
70
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
71
+ type: z.ZodLiteral<"image">;
72
+ image: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
73
+ binary: z.ZodLiteral<true>;
74
+ sha256: z.ZodString;
75
+ bytes: z.ZodInt;
76
+ }, z.core.$strict>]>, z.ZodRecord<z.ZodString, z.ZodString>]>;
77
+ mediaType: z.ZodOptional<z.ZodString>;
78
+ }, z.core.$strict>, z.ZodObject<{
79
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
80
+ type: z.ZodLiteral<"tool-call">;
81
+ toolCallId: z.ZodString;
82
+ toolName: z.ZodString;
83
+ input: z.ZodJSONSchema;
84
+ providerExecuted: z.ZodOptional<z.ZodBoolean>;
85
+ }, z.core.$strict>, z.ZodObject<{
86
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
87
+ type: z.ZodLiteral<"tool-result">;
88
+ toolCallId: z.ZodString;
89
+ toolName: z.ZodString;
90
+ output: z.ZodDiscriminatedUnion<[z.ZodObject<{
91
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
92
+ type: z.ZodEnum<{
93
+ "error-text": "error-text";
94
+ text: "text";
95
+ }>;
96
+ value: z.ZodString;
97
+ }, z.core.$strict>, z.ZodObject<{
98
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
99
+ type: z.ZodEnum<{
100
+ "error-json": "error-json";
101
+ json: "json";
102
+ }>;
103
+ value: z.ZodJSONSchema;
104
+ }, z.core.$strict>, z.ZodObject<{
105
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
106
+ type: z.ZodLiteral<"execution-denied">;
107
+ reason: z.ZodOptional<z.ZodString>;
108
+ }, z.core.$strict>, z.ZodObject<{
109
+ type: z.ZodLiteral<"content">;
110
+ value: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
111
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
112
+ type: z.ZodLiteral<"text">;
113
+ text: z.ZodString;
114
+ }, z.core.$strict>, z.ZodObject<{
115
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
116
+ type: z.ZodLiteral<"file">;
117
+ data: z.ZodUnion<readonly [z.ZodObject<{
118
+ type: z.ZodLiteral<"data">;
119
+ data: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
120
+ binary: z.ZodLiteral<true>;
121
+ sha256: z.ZodString;
122
+ bytes: z.ZodInt;
123
+ }, z.core.$strict>]>;
124
+ }, z.core.$strict>, z.ZodObject<{
125
+ type: z.ZodLiteral<"url">;
126
+ url: z.ZodString;
127
+ }, z.core.$strict>, z.ZodObject<{
128
+ type: z.ZodLiteral<"reference">;
129
+ reference: z.ZodRecord<z.ZodString, z.ZodString>;
130
+ }, z.core.$strict>, z.ZodObject<{
131
+ type: z.ZodLiteral<"text">;
132
+ text: z.ZodString;
133
+ }, z.core.$strict>]>;
134
+ mediaType: z.ZodString;
135
+ filename: z.ZodOptional<z.ZodString>;
136
+ }, z.core.$strict>, z.ZodObject<{
137
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
138
+ type: z.ZodLiteral<"file-data">;
139
+ data: z.ZodString;
140
+ mediaType: z.ZodString;
141
+ filename: z.ZodOptional<z.ZodString>;
142
+ }, z.core.$strict>, z.ZodObject<{
143
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
144
+ type: z.ZodLiteral<"image-data">;
145
+ data: z.ZodString;
146
+ mediaType: z.ZodString;
147
+ }, z.core.$strict>, z.ZodObject<{
148
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
149
+ type: z.ZodLiteral<"file-url">;
150
+ url: z.ZodString;
151
+ mediaType: z.ZodOptional<z.ZodString>;
152
+ }, z.core.$strict>, z.ZodObject<{
153
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
154
+ type: z.ZodLiteral<"image-url">;
155
+ url: z.ZodString;
156
+ }, z.core.$strict>, z.ZodObject<{
157
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
158
+ type: z.ZodEnum<{
159
+ "file-id": "file-id";
160
+ "image-file-id": "image-file-id";
161
+ }>;
162
+ fileId: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>;
163
+ }, z.core.$strict>, z.ZodObject<{
164
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
165
+ type: z.ZodEnum<{
166
+ "file-reference": "file-reference";
167
+ "image-file-reference": "image-file-reference";
168
+ }>;
169
+ providerReference: z.ZodRecord<z.ZodString, z.ZodString>;
170
+ }, z.core.$strict>, z.ZodObject<{
171
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
172
+ type: z.ZodLiteral<"custom">;
173
+ }, z.core.$strict>]>>;
174
+ }, z.core.$strict>], "type">;
175
+ }, z.core.$strict>, z.ZodObject<{
176
+ type: z.ZodLiteral<"tool-approval-request">;
177
+ approvalId: z.ZodString;
178
+ toolCallId: z.ZodString;
179
+ signature: z.ZodOptional<z.ZodString>;
180
+ isAutomatic: z.ZodOptional<z.ZodBoolean>;
181
+ reason: z.ZodOptional<z.ZodString>;
182
+ }, z.core.$strict>, z.ZodObject<{
183
+ type: z.ZodLiteral<"tool-approval-response">;
184
+ approvalId: z.ZodString;
185
+ approved: z.ZodBoolean;
186
+ reason: z.ZodOptional<z.ZodString>;
187
+ providerExecuted: z.ZodOptional<z.ZodBoolean>;
188
+ }, z.core.$strict>]>>]>;
189
+ }, z.core.$strict>;
190
+ }, z.core.$strict>;
191
+ export declare const ProviderJournalRequestSchema: z.ZodObject<{
192
+ runId: z.ZodString;
193
+ attempt: z.ZodInt;
194
+ stepNumber: z.ZodInt;
195
+ modelId: z.ZodString;
196
+ instructionsSha256: z.ZodString;
197
+ messageShas: z.ZodArray<z.ZodString>;
198
+ bodySha256: z.ZodString;
199
+ }, z.core.$strict>;
200
+ export declare const ProviderJournalResponseSchema: z.ZodObject<{
201
+ runId: z.ZodString;
202
+ attempt: z.ZodInt;
203
+ stepNumber: z.ZodInt;
204
+ response: z.ZodObject<{
205
+ id: z.ZodString;
206
+ provider: z.ZodOptional<z.ZodString>;
207
+ }, z.core.$strict>;
208
+ }, z.core.$strict>;
209
+ //# sourceMappingURL=provider-journal.d.ts.map