stitchkit 0.110.3 → 0.110.5
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.
- package/CHANGELOG.md +12 -0
- package/dist/agent-runtime/branch-messages.d.ts.map +1 -1
- package/dist/agent-runtime/branch-provider.d.ts +123 -8
- package/dist/agent-runtime/branch-provider.d.ts.map +1 -1
- package/dist/agent-runtime/provider-content.d.ts +183 -0
- package/dist/agent-runtime/provider-content.d.ts.map +1 -0
- package/dist/agent-runtime/provider-journal.d.ts +209 -0
- package/dist/agent-runtime/provider-journal.d.ts.map +1 -0
- package/dist/agent-runtime/run-provider-ledger.d.ts.map +1 -1
- package/dist/entrypoints/agent-runtime/harness.js +2 -2
- package/dist/entrypoints/agent-runtime/sqlite/bun.js +3 -3
- package/dist/entrypoints/agent-runtime/sqlite/node.js +3 -3
- package/dist/entrypoints/agent-runtime/testing.js +3 -3
- package/dist/entrypoints/agent-runtime.js +4 -4
- package/dist/entrypoints/cli.js +1 -1
- package/dist/entrypoints/tools.js +1 -1
- package/dist/{index-dgfah0g8.js → index-5pbtbce0.js} +2 -2
- package/dist/{index-ddkwkcvn.js → index-8jv0trhg.js} +10 -7
- package/dist/{index-w619fqvv.js → index-9ket8wzx.js} +2 -2
- package/dist/{index-4fgg1507.js → index-jna0ejsa.js} +155 -1
- package/dist/{index-j1cwtyk1.js → index-mpg1t7nv.js} +90 -140
- package/dist/{index-2tazbwhv.js → index-n7hrpngg.js} +151 -92
- package/dist/tools/cli/args-json.d.ts +12 -0
- package/dist/tools/cli/args-json.d.ts.map +1 -0
- package/dist/tools/cli/args-tokens.d.ts +27 -0
- package/dist/tools/cli/args-tokens.d.ts.map +1 -0
- package/dist/tools/cli/args.d.ts +4 -0
- package/dist/tools/cli/args.d.ts.map +1 -1
- package/dist/tools/cli/help.d.ts.map +1 -1
- package/llms/agent-runtime.txt +6 -0
- package/llms/cli.2.txt +7 -2
- package/llms/cli.txt +17 -0
- package/llms-full.txt +30 -2
- package/llms.txt +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -15,6 +15,18 @@ additive**; the first breaking change landed in 0.10.0. Grep the file for
|
|
|
15
15
|
|
|
16
16
|
## [Unreleased]
|
|
17
17
|
|
|
18
|
+
## [0.110.5] - 2026-10-15
|
|
19
|
+
|
|
20
|
+
### Added
|
|
21
|
+
|
|
22
|
+
- `stitchkit/cli`: `--field:=JSON` assigns a whole JSON value, including explicit `null` for nullable fields, through the existing schema-driven parser. Ordinary `--field null` remains the string `"null"`; optional omission stays absent. Native/discovered help advertises the syntax; malformed JSON and conflicting assignments refuse before dispatch.
|
|
23
|
+
|
|
24
|
+
## [0.110.4] - 2026-10-15
|
|
25
|
+
|
|
26
|
+
### Fixed
|
|
27
|
+
|
|
28
|
+
- `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.
|
|
29
|
+
|
|
18
30
|
## [0.110.3] - 2026-10-15
|
|
19
31
|
|
|
20
32
|
### Added
|
|
@@ -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;
|
|
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
|
-
|
|
11
|
+
providerOptions?: Record<string, Record<string, z.JSONType>> | undefined;
|
|
12
|
+
role: "assistant" | "system" | "tool" | "user";
|
|
12
13
|
content: string | ({
|
|
13
|
-
|
|
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
|
-
|
|
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;
|
|
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"}
|
|
@@ -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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider-journal.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/provider-journal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAYxB,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAE9B,CAAC;AACZ,eAAO,MAAM,4BAA4B;;;;;;;;kBAU9B,CAAC;AACZ,eAAO,MAAM,6BAA6B;;;;;;;;kBAO/B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-provider-ledger.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/run-provider-ledger.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AACrD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"run-provider-ledger.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/run-provider-ledger.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AACrD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAMnD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAoCjD,6EAA6E;AAC7E,MAAM,WAAW,iBAAiB;IAChC,aAAa,CAAC,OAAO,EAAE;QACrB,UAAU,EAAE,MAAM,CAAC;QACnB,OAAO,EAAE,MAAM,CAAC;QAChB,YAAY,EAAE,YAAY,CAAC;QAC3B,QAAQ,EAAE,SAAS,YAAY,EAAE,CAAC;KACnC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAClB,cAAc,CAAC,QAAQ,EAAE;QACvB,EAAE,EAAE,MAAM,CAAC;QACX,gBAAgB,EAAE,OAAO,CAAC;QAC1B,UAAU,EAAE,MAAM,CAAC;QACnB,OAAO,EAAE,MAAM,CAAC;KACjB,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,wBAAwB,CAAC,CAAC,CAAC;CAC1D;AAED,wBAAsB,uBAAuB,CAAC,KAAK,EAAE;IACnD,KAAK,EAAE,iBAAiB,CAAC;IACzB,KAAK,EAAE,iBAAiB,CAAC;IACzB,aAAa,EAAE,kBAAkB,CAAC;IAClC,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAgH7B"}
|
|
@@ -5,7 +5,7 @@ import"../../index-8kzct1d6.js";
|
|
|
5
5
|
import {
|
|
6
6
|
composeAgentPrompt2,
|
|
7
7
|
createAgentRuntime2
|
|
8
|
-
} from "../../index-
|
|
8
|
+
} from "../../index-8jv0trhg.js";
|
|
9
9
|
import"../../index-qaet40b2.js";
|
|
10
10
|
import"../../index-mnkk1ffz.js";
|
|
11
11
|
import"../../index-fynr93w4.js";
|
|
@@ -16,7 +16,7 @@ import"../../index-q6crhe1n.js";
|
|
|
16
16
|
import"../../index-mha6b4vk.js";
|
|
17
17
|
import"../../index-snef22zr.js";
|
|
18
18
|
import"../../index-56yx8dxp.js";
|
|
19
|
-
import"../../index-
|
|
19
|
+
import"../../index-jna0ejsa.js";
|
|
20
20
|
import"../../index-5w6t91ze.js";
|
|
21
21
|
import"../../index-2kbysk9s.js";
|
|
22
22
|
import"../../index-b0w7rbpt.js";
|