openpond-sdk 0.12.11 → 0.12.13
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/LEARNING.md +11 -0
- package/dist/{chunk-RIN6Z56W.js → chunk-47I6LT4X.js} +4 -2
- package/dist/chunk-47I6LT4X.js.map +1 -0
- package/dist/{chunk-NKF5NIML.js → chunk-RN5G3DQN.js} +91 -15
- package/dist/chunk-RN5G3DQN.js.map +1 -0
- package/dist/experiment-evaluation-schedules.js +1 -1
- package/dist/experiments.js +1 -1
- package/dist/index.js +1 -1
- package/dist/model-starter-catalog.js +1 -1
- package/dist/model-starters.js +1 -1
- package/dist/taskset-packages.js +1 -1
- package/dist/tool-learning.js +238 -104
- package/dist/tool-learning.js.map +1 -1
- package/dist/types/packages/sdk/src/model-ordinary-taskset-reward.d.ts.map +1 -1
- package/dist/types/packages/sdk/src/model-supervised-training-defaults.d.ts +7 -0
- package/dist/types/packages/sdk/src/model-supervised-training-defaults.d.ts.map +1 -0
- package/dist/types/packages/sdk/src/model-taskset-runs.d.ts +216 -216
- package/dist/types/packages/sdk/src/model-training-defaults.d.ts +9 -2
- package/dist/types/packages/sdk/src/model-training-defaults.d.ts.map +1 -1
- package/dist/types/packages/sdk/src/tool-learning-client.d.ts +20 -1
- package/dist/types/packages/sdk/src/tool-learning-client.d.ts.map +1 -1
- package/dist/types/packages/sdk/src/tool-learning-episodes.d.ts +58 -0
- package/dist/types/packages/sdk/src/tool-learning-episodes.d.ts.map +1 -0
- package/dist/types/packages/sdk/src/tool-learning-responses.d.ts +713 -0
- package/dist/types/packages/sdk/src/tool-learning-responses.d.ts.map +1 -0
- package/dist/types/packages/sdk/src/tool-learning.d.ts +2 -0
- package/dist/types/packages/sdk/src/tool-learning.d.ts.map +1 -1
- package/dist/types/packages/sdk/src/training-learning-batch.d.ts +40 -40
- package/fixtures/python-foundation/operation-matrix.json +239 -1
- package/fixtures/python-foundation/schemas.json +24720 -19214
- package/package.json +1 -1
- package/dist/chunk-NKF5NIML.js.map +0 -1
- package/dist/chunk-RIN6Z56W.js.map +0 -1
|
@@ -0,0 +1,713 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/** Shared wire envelopes used by native clients and the Python schema exporter. */
|
|
3
|
+
export declare const ToolLearningRegistrationReceiptSchema: z.ZodObject<{
|
|
4
|
+
installation: z.ZodObject<{
|
|
5
|
+
schemaVersion: z.ZodLiteral<"openpond.toolLearningInstallation.v1">;
|
|
6
|
+
id: z.ZodString;
|
|
7
|
+
revision: z.ZodNumber;
|
|
8
|
+
scope: z.ZodObject<{
|
|
9
|
+
teamId: z.ZodString;
|
|
10
|
+
projectId: z.ZodString;
|
|
11
|
+
}, z.core.$strict>;
|
|
12
|
+
ownerUserId: z.ZodString;
|
|
13
|
+
machineSourceId: z.ZodString;
|
|
14
|
+
client: z.ZodEnum<{
|
|
15
|
+
claude_code: "claude_code";
|
|
16
|
+
codex: "codex";
|
|
17
|
+
opencode: "opencode";
|
|
18
|
+
openpond: "openpond";
|
|
19
|
+
}>;
|
|
20
|
+
clientVersion: z.ZodString;
|
|
21
|
+
adapterRelease: z.ZodObject<{
|
|
22
|
+
id: z.ZodString;
|
|
23
|
+
contentHash: z.ZodString;
|
|
24
|
+
}, z.core.$strict>;
|
|
25
|
+
state: z.ZodEnum<{
|
|
26
|
+
disabled: "disabled";
|
|
27
|
+
enabled: "enabled";
|
|
28
|
+
pending_client_trust: "pending_client_trust";
|
|
29
|
+
revoked: "revoked";
|
|
30
|
+
}>;
|
|
31
|
+
collectionPolicy: z.ZodObject<{
|
|
32
|
+
revision: z.ZodNumber;
|
|
33
|
+
permittedTools: z.ZodArray<z.ZodString>;
|
|
34
|
+
workspaceRootHashes: z.ZodArray<z.ZodString>;
|
|
35
|
+
permittedFields: z.ZodArray<z.ZodEnum<{
|
|
36
|
+
action: "action";
|
|
37
|
+
artifact_reference: "artifact_reference";
|
|
38
|
+
intent: "intent";
|
|
39
|
+
result_excerpt: "result_excerpt";
|
|
40
|
+
state: "state";
|
|
41
|
+
}>>;
|
|
42
|
+
unchangedControls: z.ZodObject<{
|
|
43
|
+
numerator: z.ZodNumber;
|
|
44
|
+
denominator: z.ZodNumber;
|
|
45
|
+
}, z.core.$strict>;
|
|
46
|
+
maximumEventBytes: z.ZodNumber;
|
|
47
|
+
maximumEpisodeBytes: z.ZodNumber;
|
|
48
|
+
maximumEpisodeEvents: z.ZodNumber;
|
|
49
|
+
maximumQueueBytes: z.ZodNumber;
|
|
50
|
+
maximumQueueEvents: z.ZodNumber;
|
|
51
|
+
maximumQueueAgeSeconds: z.ZodNumber;
|
|
52
|
+
rawRetentionDays: z.ZodNumber;
|
|
53
|
+
purposes: z.ZodArray<z.ZodEnum<{
|
|
54
|
+
capture: "capture";
|
|
55
|
+
consultation: "consultation";
|
|
56
|
+
}>>;
|
|
57
|
+
modelUpdates: z.ZodLiteral<"requires_separate_review">;
|
|
58
|
+
variantGeneration: z.ZodLiteral<"disabled">;
|
|
59
|
+
}, z.core.$strict>;
|
|
60
|
+
collectionPolicyHash: z.ZodString;
|
|
61
|
+
coverage: z.ZodObject<{
|
|
62
|
+
receipt: z.ZodNullable<z.ZodObject<{
|
|
63
|
+
id: z.ZodString;
|
|
64
|
+
contentHash: z.ZodString;
|
|
65
|
+
}, z.core.$strict>>;
|
|
66
|
+
start: z.ZodEnum<{
|
|
67
|
+
documented: "documented";
|
|
68
|
+
observed: "observed";
|
|
69
|
+
unqualified: "unqualified";
|
|
70
|
+
unsupported: "unsupported";
|
|
71
|
+
}>;
|
|
72
|
+
resume: z.ZodEnum<{
|
|
73
|
+
documented: "documented";
|
|
74
|
+
observed: "observed";
|
|
75
|
+
unqualified: "unqualified";
|
|
76
|
+
unsupported: "unsupported";
|
|
77
|
+
}>;
|
|
78
|
+
compaction: z.ZodEnum<{
|
|
79
|
+
documented: "documented";
|
|
80
|
+
observed: "observed";
|
|
81
|
+
unqualified: "unqualified";
|
|
82
|
+
unsupported: "unsupported";
|
|
83
|
+
}>;
|
|
84
|
+
executionFailure: z.ZodEnum<{
|
|
85
|
+
documented: "documented";
|
|
86
|
+
observed: "observed";
|
|
87
|
+
unqualified: "unqualified";
|
|
88
|
+
unsupported: "unsupported";
|
|
89
|
+
}>;
|
|
90
|
+
processFailure: z.ZodEnum<{
|
|
91
|
+
documented: "documented";
|
|
92
|
+
observed: "observed";
|
|
93
|
+
unqualified: "unqualified";
|
|
94
|
+
unsupported: "unsupported";
|
|
95
|
+
}>;
|
|
96
|
+
validationFailure: z.ZodEnum<{
|
|
97
|
+
documented: "documented";
|
|
98
|
+
observed: "observed";
|
|
99
|
+
unqualified: "unqualified";
|
|
100
|
+
unsupported: "unsupported";
|
|
101
|
+
}>;
|
|
102
|
+
nestedCalls: z.ZodEnum<{
|
|
103
|
+
documented: "documented";
|
|
104
|
+
observed: "observed";
|
|
105
|
+
unqualified: "unqualified";
|
|
106
|
+
unsupported: "unsupported";
|
|
107
|
+
}>;
|
|
108
|
+
contextRefresh: z.ZodEnum<{
|
|
109
|
+
revision_aware_turn: "revision_aware_turn";
|
|
110
|
+
session_start: "session_start";
|
|
111
|
+
start_resume: "start_resume";
|
|
112
|
+
start_resume_compaction: "start_resume_compaction";
|
|
113
|
+
unqualified: "unqualified";
|
|
114
|
+
}>;
|
|
115
|
+
gaps: z.ZodArray<z.ZodString>;
|
|
116
|
+
}, z.core.$strict>;
|
|
117
|
+
credential: z.ZodNullable<z.ZodObject<{
|
|
118
|
+
id: z.ZodString;
|
|
119
|
+
expiresAt: z.ZodString;
|
|
120
|
+
revokedAt: z.ZodNullable<z.ZodString>;
|
|
121
|
+
capabilities: z.ZodArray<z.ZodEnum<{
|
|
122
|
+
consultation_read: "consultation_read";
|
|
123
|
+
consultation_submit: "consultation_submit";
|
|
124
|
+
episode_append: "episode_append";
|
|
125
|
+
manifest_read: "manifest_read";
|
|
126
|
+
}>>;
|
|
127
|
+
}, z.core.$strict>>;
|
|
128
|
+
createdAt: z.ZodString;
|
|
129
|
+
updatedAt: z.ZodString;
|
|
130
|
+
}, z.core.$strict>;
|
|
131
|
+
apiKey: z.ZodString;
|
|
132
|
+
}, z.core.$strict>;
|
|
133
|
+
export declare const ToolLearningInstallationPageSchema: z.ZodObject<{
|
|
134
|
+
items: z.ZodArray<z.ZodObject<{
|
|
135
|
+
schemaVersion: z.ZodLiteral<"openpond.toolLearningInstallation.v1">;
|
|
136
|
+
id: z.ZodString;
|
|
137
|
+
revision: z.ZodNumber;
|
|
138
|
+
scope: z.ZodObject<{
|
|
139
|
+
teamId: z.ZodString;
|
|
140
|
+
projectId: z.ZodString;
|
|
141
|
+
}, z.core.$strict>;
|
|
142
|
+
ownerUserId: z.ZodString;
|
|
143
|
+
machineSourceId: z.ZodString;
|
|
144
|
+
client: z.ZodEnum<{
|
|
145
|
+
claude_code: "claude_code";
|
|
146
|
+
codex: "codex";
|
|
147
|
+
opencode: "opencode";
|
|
148
|
+
openpond: "openpond";
|
|
149
|
+
}>;
|
|
150
|
+
clientVersion: z.ZodString;
|
|
151
|
+
adapterRelease: z.ZodObject<{
|
|
152
|
+
id: z.ZodString;
|
|
153
|
+
contentHash: z.ZodString;
|
|
154
|
+
}, z.core.$strict>;
|
|
155
|
+
state: z.ZodEnum<{
|
|
156
|
+
disabled: "disabled";
|
|
157
|
+
enabled: "enabled";
|
|
158
|
+
pending_client_trust: "pending_client_trust";
|
|
159
|
+
revoked: "revoked";
|
|
160
|
+
}>;
|
|
161
|
+
collectionPolicy: z.ZodObject<{
|
|
162
|
+
revision: z.ZodNumber;
|
|
163
|
+
permittedTools: z.ZodArray<z.ZodString>;
|
|
164
|
+
workspaceRootHashes: z.ZodArray<z.ZodString>;
|
|
165
|
+
permittedFields: z.ZodArray<z.ZodEnum<{
|
|
166
|
+
action: "action";
|
|
167
|
+
artifact_reference: "artifact_reference";
|
|
168
|
+
intent: "intent";
|
|
169
|
+
result_excerpt: "result_excerpt";
|
|
170
|
+
state: "state";
|
|
171
|
+
}>>;
|
|
172
|
+
unchangedControls: z.ZodObject<{
|
|
173
|
+
numerator: z.ZodNumber;
|
|
174
|
+
denominator: z.ZodNumber;
|
|
175
|
+
}, z.core.$strict>;
|
|
176
|
+
maximumEventBytes: z.ZodNumber;
|
|
177
|
+
maximumEpisodeBytes: z.ZodNumber;
|
|
178
|
+
maximumEpisodeEvents: z.ZodNumber;
|
|
179
|
+
maximumQueueBytes: z.ZodNumber;
|
|
180
|
+
maximumQueueEvents: z.ZodNumber;
|
|
181
|
+
maximumQueueAgeSeconds: z.ZodNumber;
|
|
182
|
+
rawRetentionDays: z.ZodNumber;
|
|
183
|
+
purposes: z.ZodArray<z.ZodEnum<{
|
|
184
|
+
capture: "capture";
|
|
185
|
+
consultation: "consultation";
|
|
186
|
+
}>>;
|
|
187
|
+
modelUpdates: z.ZodLiteral<"requires_separate_review">;
|
|
188
|
+
variantGeneration: z.ZodLiteral<"disabled">;
|
|
189
|
+
}, z.core.$strict>;
|
|
190
|
+
collectionPolicyHash: z.ZodString;
|
|
191
|
+
coverage: z.ZodObject<{
|
|
192
|
+
receipt: z.ZodNullable<z.ZodObject<{
|
|
193
|
+
id: z.ZodString;
|
|
194
|
+
contentHash: z.ZodString;
|
|
195
|
+
}, z.core.$strict>>;
|
|
196
|
+
start: z.ZodEnum<{
|
|
197
|
+
documented: "documented";
|
|
198
|
+
observed: "observed";
|
|
199
|
+
unqualified: "unqualified";
|
|
200
|
+
unsupported: "unsupported";
|
|
201
|
+
}>;
|
|
202
|
+
resume: z.ZodEnum<{
|
|
203
|
+
documented: "documented";
|
|
204
|
+
observed: "observed";
|
|
205
|
+
unqualified: "unqualified";
|
|
206
|
+
unsupported: "unsupported";
|
|
207
|
+
}>;
|
|
208
|
+
compaction: z.ZodEnum<{
|
|
209
|
+
documented: "documented";
|
|
210
|
+
observed: "observed";
|
|
211
|
+
unqualified: "unqualified";
|
|
212
|
+
unsupported: "unsupported";
|
|
213
|
+
}>;
|
|
214
|
+
executionFailure: z.ZodEnum<{
|
|
215
|
+
documented: "documented";
|
|
216
|
+
observed: "observed";
|
|
217
|
+
unqualified: "unqualified";
|
|
218
|
+
unsupported: "unsupported";
|
|
219
|
+
}>;
|
|
220
|
+
processFailure: z.ZodEnum<{
|
|
221
|
+
documented: "documented";
|
|
222
|
+
observed: "observed";
|
|
223
|
+
unqualified: "unqualified";
|
|
224
|
+
unsupported: "unsupported";
|
|
225
|
+
}>;
|
|
226
|
+
validationFailure: z.ZodEnum<{
|
|
227
|
+
documented: "documented";
|
|
228
|
+
observed: "observed";
|
|
229
|
+
unqualified: "unqualified";
|
|
230
|
+
unsupported: "unsupported";
|
|
231
|
+
}>;
|
|
232
|
+
nestedCalls: z.ZodEnum<{
|
|
233
|
+
documented: "documented";
|
|
234
|
+
observed: "observed";
|
|
235
|
+
unqualified: "unqualified";
|
|
236
|
+
unsupported: "unsupported";
|
|
237
|
+
}>;
|
|
238
|
+
contextRefresh: z.ZodEnum<{
|
|
239
|
+
revision_aware_turn: "revision_aware_turn";
|
|
240
|
+
session_start: "session_start";
|
|
241
|
+
start_resume: "start_resume";
|
|
242
|
+
start_resume_compaction: "start_resume_compaction";
|
|
243
|
+
unqualified: "unqualified";
|
|
244
|
+
}>;
|
|
245
|
+
gaps: z.ZodArray<z.ZodString>;
|
|
246
|
+
}, z.core.$strict>;
|
|
247
|
+
credential: z.ZodNullable<z.ZodObject<{
|
|
248
|
+
id: z.ZodString;
|
|
249
|
+
expiresAt: z.ZodString;
|
|
250
|
+
revokedAt: z.ZodNullable<z.ZodString>;
|
|
251
|
+
capabilities: z.ZodArray<z.ZodEnum<{
|
|
252
|
+
consultation_read: "consultation_read";
|
|
253
|
+
consultation_submit: "consultation_submit";
|
|
254
|
+
episode_append: "episode_append";
|
|
255
|
+
manifest_read: "manifest_read";
|
|
256
|
+
}>>;
|
|
257
|
+
}, z.core.$strict>>;
|
|
258
|
+
createdAt: z.ZodString;
|
|
259
|
+
updatedAt: z.ZodString;
|
|
260
|
+
}, z.core.$strict>>;
|
|
261
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
262
|
+
}, z.core.$strict>;
|
|
263
|
+
export declare const ToolLearningEpisodePageSchema: z.ZodObject<{
|
|
264
|
+
installationId: z.ZodString;
|
|
265
|
+
scope: z.ZodObject<{
|
|
266
|
+
teamId: z.ZodString;
|
|
267
|
+
projectId: z.ZodString;
|
|
268
|
+
}, z.core.$strict>;
|
|
269
|
+
items: z.ZodArray<z.ZodObject<{
|
|
270
|
+
episodeId: z.ZodString;
|
|
271
|
+
eventCount: z.ZodNumber;
|
|
272
|
+
lastReceivedAt: z.ZodISODateTime;
|
|
273
|
+
}, z.core.$strict>>;
|
|
274
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
275
|
+
learningEnrollment: z.ZodLiteral<false>;
|
|
276
|
+
}, z.core.$strict>;
|
|
277
|
+
export declare const ToolLearningEpisodeDetailSchema: z.ZodObject<{
|
|
278
|
+
installationId: z.ZodString;
|
|
279
|
+
episodeId: z.ZodString;
|
|
280
|
+
scope: z.ZodObject<{
|
|
281
|
+
teamId: z.ZodString;
|
|
282
|
+
projectId: z.ZodString;
|
|
283
|
+
}, z.core.$strict>;
|
|
284
|
+
events: z.ZodArray<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
285
|
+
schemaVersion: z.ZodLiteral<"openpond.toolEpisodeEvent.v1">;
|
|
286
|
+
operationId: z.ZodString;
|
|
287
|
+
installationId: z.ZodString;
|
|
288
|
+
episodeId: z.ZodString;
|
|
289
|
+
eventId: z.ZodString;
|
|
290
|
+
sessionId: z.ZodString;
|
|
291
|
+
parentSessionId: z.ZodNullable<z.ZodString>;
|
|
292
|
+
turnId: z.ZodNullable<z.ZodString>;
|
|
293
|
+
callId: z.ZodString;
|
|
294
|
+
occurredAt: z.ZodString;
|
|
295
|
+
sequence: z.ZodNumber;
|
|
296
|
+
adapterVersion: z.ZodString;
|
|
297
|
+
sanitization: z.ZodObject<{
|
|
298
|
+
policyRevision: z.ZodNumber;
|
|
299
|
+
policyHash: z.ZodString;
|
|
300
|
+
redactedFields: z.ZodNumber;
|
|
301
|
+
omittedFields: z.ZodNumber;
|
|
302
|
+
truncated: z.ZodBoolean;
|
|
303
|
+
}, z.core.$strict>;
|
|
304
|
+
contentHash: z.ZodString;
|
|
305
|
+
eventKind: z.ZodLiteral<"attempt">;
|
|
306
|
+
payload: z.ZodObject<{
|
|
307
|
+
intent: z.ZodString;
|
|
308
|
+
tool: z.ZodObject<{
|
|
309
|
+
name: z.ZodString;
|
|
310
|
+
version: z.ZodNullable<z.ZodString>;
|
|
311
|
+
server: z.ZodNullable<z.ZodString>;
|
|
312
|
+
}, z.core.$strict>;
|
|
313
|
+
action: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
314
|
+
kind: z.ZodLiteral<"python">;
|
|
315
|
+
code: z.ZodString;
|
|
316
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
317
|
+
kind: z.ZodLiteral<"shell">;
|
|
318
|
+
command: z.ZodString;
|
|
319
|
+
shell: z.ZodString;
|
|
320
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
321
|
+
kind: z.ZodLiteral<"tool_arguments">;
|
|
322
|
+
arguments: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
323
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
324
|
+
kind: z.ZodLiteral<"edit">;
|
|
325
|
+
patch: z.ZodString;
|
|
326
|
+
baseFiles: z.ZodArray<z.ZodObject<{
|
|
327
|
+
path: z.ZodString;
|
|
328
|
+
contentHash: z.ZodNullable<z.ZodString>;
|
|
329
|
+
}, z.core.$strict>>;
|
|
330
|
+
}, z.core.$strict>], "kind">>;
|
|
331
|
+
actionHash: z.ZodString;
|
|
332
|
+
environment: z.ZodObject<{
|
|
333
|
+
application: z.ZodString;
|
|
334
|
+
version: z.ZodString;
|
|
335
|
+
state: z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
|
|
336
|
+
fingerprint: z.ZodString;
|
|
337
|
+
}, z.core.$strict>;
|
|
338
|
+
contextAssets: z.ZodArray<z.ZodObject<{
|
|
339
|
+
id: z.ZodString;
|
|
340
|
+
contentHash: z.ZodString;
|
|
341
|
+
mediaType: z.ZodEnum<{
|
|
342
|
+
"application/json": "application/json";
|
|
343
|
+
"text/plain": "text/plain";
|
|
344
|
+
"text/x-diff": "text/x-diff";
|
|
345
|
+
"text/x-python": "text/x-python";
|
|
346
|
+
}>;
|
|
347
|
+
sizeBytes: z.ZodNumber;
|
|
348
|
+
purpose: z.ZodEnum<{
|
|
349
|
+
action: "action";
|
|
350
|
+
result: "result";
|
|
351
|
+
state: "state";
|
|
352
|
+
verification: "verification";
|
|
353
|
+
}>;
|
|
354
|
+
}, z.core.$strict>>;
|
|
355
|
+
selection: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
356
|
+
kind: z.ZodLiteral<"eligible_attempt">;
|
|
357
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
358
|
+
kind: z.ZodLiteral<"unchanged_control">;
|
|
359
|
+
numerator: z.ZodNumber;
|
|
360
|
+
denominator: z.ZodNumber;
|
|
361
|
+
policyHash: z.ZodString;
|
|
362
|
+
}, z.core.$strict>], "kind">;
|
|
363
|
+
}, z.core.$strict>;
|
|
364
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
365
|
+
schemaVersion: z.ZodLiteral<"openpond.toolEpisodeEvent.v1">;
|
|
366
|
+
operationId: z.ZodString;
|
|
367
|
+
installationId: z.ZodString;
|
|
368
|
+
episodeId: z.ZodString;
|
|
369
|
+
eventId: z.ZodString;
|
|
370
|
+
sessionId: z.ZodString;
|
|
371
|
+
parentSessionId: z.ZodNullable<z.ZodString>;
|
|
372
|
+
turnId: z.ZodNullable<z.ZodString>;
|
|
373
|
+
callId: z.ZodString;
|
|
374
|
+
occurredAt: z.ZodString;
|
|
375
|
+
sequence: z.ZodNumber;
|
|
376
|
+
adapterVersion: z.ZodString;
|
|
377
|
+
sanitization: z.ZodObject<{
|
|
378
|
+
policyRevision: z.ZodNumber;
|
|
379
|
+
policyHash: z.ZodString;
|
|
380
|
+
redactedFields: z.ZodNumber;
|
|
381
|
+
omittedFields: z.ZodNumber;
|
|
382
|
+
truncated: z.ZodBoolean;
|
|
383
|
+
}, z.core.$strict>;
|
|
384
|
+
contentHash: z.ZodString;
|
|
385
|
+
eventKind: z.ZodLiteral<"observation">;
|
|
386
|
+
payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
387
|
+
attempt: z.ZodObject<{
|
|
388
|
+
id: z.ZodString;
|
|
389
|
+
contentHash: z.ZodString;
|
|
390
|
+
}, z.core.$strict>;
|
|
391
|
+
actionHash: z.ZodString;
|
|
392
|
+
execution: z.ZodEnum<{
|
|
393
|
+
executed: "executed";
|
|
394
|
+
not_executed: "not_executed";
|
|
395
|
+
unknown: "unknown";
|
|
396
|
+
}>;
|
|
397
|
+
sideEffects: z.ZodEnum<{
|
|
398
|
+
none: "none";
|
|
399
|
+
observed: "observed";
|
|
400
|
+
possible: "possible";
|
|
401
|
+
unknown: "unknown";
|
|
402
|
+
}>;
|
|
403
|
+
resultExcerpt: z.ZodString;
|
|
404
|
+
resultHash: z.ZodNullable<z.ZodString>;
|
|
405
|
+
assets: z.ZodArray<z.ZodObject<{
|
|
406
|
+
id: z.ZodString;
|
|
407
|
+
contentHash: z.ZodString;
|
|
408
|
+
mediaType: z.ZodEnum<{
|
|
409
|
+
"application/json": "application/json";
|
|
410
|
+
"text/plain": "text/plain";
|
|
411
|
+
"text/x-diff": "text/x-diff";
|
|
412
|
+
"text/x-python": "text/x-python";
|
|
413
|
+
}>;
|
|
414
|
+
sizeBytes: z.ZodNumber;
|
|
415
|
+
purpose: z.ZodEnum<{
|
|
416
|
+
action: "action";
|
|
417
|
+
result: "result";
|
|
418
|
+
state: "state";
|
|
419
|
+
verification: "verification";
|
|
420
|
+
}>;
|
|
421
|
+
}, z.core.$strict>>;
|
|
422
|
+
outcome: z.ZodLiteral<"succeeded">;
|
|
423
|
+
exitCode: z.ZodNullable<z.ZodLiteral<0>>;
|
|
424
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
425
|
+
attempt: z.ZodObject<{
|
|
426
|
+
id: z.ZodString;
|
|
427
|
+
contentHash: z.ZodString;
|
|
428
|
+
}, z.core.$strict>;
|
|
429
|
+
actionHash: z.ZodString;
|
|
430
|
+
execution: z.ZodEnum<{
|
|
431
|
+
executed: "executed";
|
|
432
|
+
not_executed: "not_executed";
|
|
433
|
+
unknown: "unknown";
|
|
434
|
+
}>;
|
|
435
|
+
sideEffects: z.ZodEnum<{
|
|
436
|
+
none: "none";
|
|
437
|
+
observed: "observed";
|
|
438
|
+
possible: "possible";
|
|
439
|
+
unknown: "unknown";
|
|
440
|
+
}>;
|
|
441
|
+
resultExcerpt: z.ZodString;
|
|
442
|
+
resultHash: z.ZodNullable<z.ZodString>;
|
|
443
|
+
assets: z.ZodArray<z.ZodObject<{
|
|
444
|
+
id: z.ZodString;
|
|
445
|
+
contentHash: z.ZodString;
|
|
446
|
+
mediaType: z.ZodEnum<{
|
|
447
|
+
"application/json": "application/json";
|
|
448
|
+
"text/plain": "text/plain";
|
|
449
|
+
"text/x-diff": "text/x-diff";
|
|
450
|
+
"text/x-python": "text/x-python";
|
|
451
|
+
}>;
|
|
452
|
+
sizeBytes: z.ZodNumber;
|
|
453
|
+
purpose: z.ZodEnum<{
|
|
454
|
+
action: "action";
|
|
455
|
+
result: "result";
|
|
456
|
+
state: "state";
|
|
457
|
+
verification: "verification";
|
|
458
|
+
}>;
|
|
459
|
+
}, z.core.$strict>>;
|
|
460
|
+
outcome: z.ZodLiteral<"failed">;
|
|
461
|
+
classification: z.ZodEnum<{
|
|
462
|
+
authorization_denied: "authorization_denied";
|
|
463
|
+
cancelled: "cancelled";
|
|
464
|
+
execution_failure: "execution_failure";
|
|
465
|
+
infrastructure_failure: "infrastructure_failure";
|
|
466
|
+
outcome_failure: "outcome_failure";
|
|
467
|
+
process_failure: "process_failure";
|
|
468
|
+
timeout: "timeout";
|
|
469
|
+
unknown_failure: "unknown_failure";
|
|
470
|
+
validation_failure: "validation_failure";
|
|
471
|
+
}>;
|
|
472
|
+
errorCode: z.ZodString;
|
|
473
|
+
message: z.ZodString;
|
|
474
|
+
exitCode: z.ZodNullable<z.ZodNumber>;
|
|
475
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
476
|
+
attempt: z.ZodObject<{
|
|
477
|
+
id: z.ZodString;
|
|
478
|
+
contentHash: z.ZodString;
|
|
479
|
+
}, z.core.$strict>;
|
|
480
|
+
actionHash: z.ZodString;
|
|
481
|
+
execution: z.ZodEnum<{
|
|
482
|
+
executed: "executed";
|
|
483
|
+
not_executed: "not_executed";
|
|
484
|
+
unknown: "unknown";
|
|
485
|
+
}>;
|
|
486
|
+
sideEffects: z.ZodEnum<{
|
|
487
|
+
none: "none";
|
|
488
|
+
observed: "observed";
|
|
489
|
+
possible: "possible";
|
|
490
|
+
unknown: "unknown";
|
|
491
|
+
}>;
|
|
492
|
+
resultExcerpt: z.ZodString;
|
|
493
|
+
resultHash: z.ZodNullable<z.ZodString>;
|
|
494
|
+
assets: z.ZodArray<z.ZodObject<{
|
|
495
|
+
id: z.ZodString;
|
|
496
|
+
contentHash: z.ZodString;
|
|
497
|
+
mediaType: z.ZodEnum<{
|
|
498
|
+
"application/json": "application/json";
|
|
499
|
+
"text/plain": "text/plain";
|
|
500
|
+
"text/x-diff": "text/x-diff";
|
|
501
|
+
"text/x-python": "text/x-python";
|
|
502
|
+
}>;
|
|
503
|
+
sizeBytes: z.ZodNumber;
|
|
504
|
+
purpose: z.ZodEnum<{
|
|
505
|
+
action: "action";
|
|
506
|
+
result: "result";
|
|
507
|
+
state: "state";
|
|
508
|
+
verification: "verification";
|
|
509
|
+
}>;
|
|
510
|
+
}, z.core.$strict>>;
|
|
511
|
+
outcome: z.ZodLiteral<"incomplete">;
|
|
512
|
+
reason: z.ZodEnum<{
|
|
513
|
+
completion_not_observed: "completion_not_observed";
|
|
514
|
+
coverage_gap: "coverage_gap";
|
|
515
|
+
observer_restarted: "observer_restarted";
|
|
516
|
+
transport_interrupted: "transport_interrupted";
|
|
517
|
+
}>;
|
|
518
|
+
}, z.core.$strict>], "outcome">;
|
|
519
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
520
|
+
schemaVersion: z.ZodLiteral<"openpond.toolEpisodeEvent.v1">;
|
|
521
|
+
operationId: z.ZodString;
|
|
522
|
+
installationId: z.ZodString;
|
|
523
|
+
episodeId: z.ZodString;
|
|
524
|
+
eventId: z.ZodString;
|
|
525
|
+
sessionId: z.ZodString;
|
|
526
|
+
parentSessionId: z.ZodNullable<z.ZodString>;
|
|
527
|
+
turnId: z.ZodNullable<z.ZodString>;
|
|
528
|
+
callId: z.ZodString;
|
|
529
|
+
occurredAt: z.ZodString;
|
|
530
|
+
sequence: z.ZodNumber;
|
|
531
|
+
adapterVersion: z.ZodString;
|
|
532
|
+
sanitization: z.ZodObject<{
|
|
533
|
+
policyRevision: z.ZodNumber;
|
|
534
|
+
policyHash: z.ZodString;
|
|
535
|
+
redactedFields: z.ZodNumber;
|
|
536
|
+
omittedFields: z.ZodNumber;
|
|
537
|
+
truncated: z.ZodBoolean;
|
|
538
|
+
}, z.core.$strict>;
|
|
539
|
+
contentHash: z.ZodString;
|
|
540
|
+
eventKind: z.ZodLiteral<"recovery_link">;
|
|
541
|
+
payload: z.ZodObject<{
|
|
542
|
+
failedAttempt: z.ZodObject<{
|
|
543
|
+
id: z.ZodString;
|
|
544
|
+
contentHash: z.ZodString;
|
|
545
|
+
}, z.core.$strict>;
|
|
546
|
+
failedObservation: z.ZodObject<{
|
|
547
|
+
id: z.ZodString;
|
|
548
|
+
contentHash: z.ZodString;
|
|
549
|
+
}, z.core.$strict>;
|
|
550
|
+
replacementAttempt: z.ZodObject<{
|
|
551
|
+
id: z.ZodString;
|
|
552
|
+
contentHash: z.ZodString;
|
|
553
|
+
}, z.core.$strict>;
|
|
554
|
+
goalId: z.ZodString;
|
|
555
|
+
basis: z.ZodEnum<{
|
|
556
|
+
artifact_lineage: "artifact_lineage";
|
|
557
|
+
explicit_relation: "explicit_relation";
|
|
558
|
+
unverified: "unverified";
|
|
559
|
+
}>;
|
|
560
|
+
attributionEvidence: z.ZodArray<z.ZodObject<{
|
|
561
|
+
id: z.ZodString;
|
|
562
|
+
contentHash: z.ZodString;
|
|
563
|
+
}, z.core.$strict>>;
|
|
564
|
+
}, z.core.$strict>;
|
|
565
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
566
|
+
schemaVersion: z.ZodLiteral<"openpond.toolEpisodeEvent.v1">;
|
|
567
|
+
operationId: z.ZodString;
|
|
568
|
+
installationId: z.ZodString;
|
|
569
|
+
episodeId: z.ZodString;
|
|
570
|
+
eventId: z.ZodString;
|
|
571
|
+
sessionId: z.ZodString;
|
|
572
|
+
parentSessionId: z.ZodNullable<z.ZodString>;
|
|
573
|
+
turnId: z.ZodNullable<z.ZodString>;
|
|
574
|
+
callId: z.ZodString;
|
|
575
|
+
occurredAt: z.ZodString;
|
|
576
|
+
sequence: z.ZodNumber;
|
|
577
|
+
adapterVersion: z.ZodString;
|
|
578
|
+
sanitization: z.ZodObject<{
|
|
579
|
+
policyRevision: z.ZodNumber;
|
|
580
|
+
policyHash: z.ZodString;
|
|
581
|
+
redactedFields: z.ZodNumber;
|
|
582
|
+
omittedFields: z.ZodNumber;
|
|
583
|
+
truncated: z.ZodBoolean;
|
|
584
|
+
}, z.core.$strict>;
|
|
585
|
+
contentHash: z.ZodString;
|
|
586
|
+
eventKind: z.ZodLiteral<"verification">;
|
|
587
|
+
payload: z.ZodObject<{
|
|
588
|
+
attempt: z.ZodObject<{
|
|
589
|
+
id: z.ZodString;
|
|
590
|
+
contentHash: z.ZodString;
|
|
591
|
+
}, z.core.$strict>;
|
|
592
|
+
actionHash: z.ZodString;
|
|
593
|
+
outcome: z.ZodEnum<{
|
|
594
|
+
failed: "failed";
|
|
595
|
+
passed: "passed";
|
|
596
|
+
unknown: "unknown";
|
|
597
|
+
}>;
|
|
598
|
+
verifierRelease: z.ZodNullable<z.ZodObject<{
|
|
599
|
+
id: z.ZodString;
|
|
600
|
+
contentHash: z.ZodString;
|
|
601
|
+
}, z.core.$strict>>;
|
|
602
|
+
verifierReceipt: z.ZodNullable<z.ZodObject<{
|
|
603
|
+
id: z.ZodString;
|
|
604
|
+
contentHash: z.ZodString;
|
|
605
|
+
}, z.core.$strict>>;
|
|
606
|
+
environmentFingerprint: z.ZodString;
|
|
607
|
+
resetStateHash: z.ZodNullable<z.ZodString>;
|
|
608
|
+
outputArtifacts: z.ZodArray<z.ZodObject<{
|
|
609
|
+
id: z.ZodString;
|
|
610
|
+
contentHash: z.ZodString;
|
|
611
|
+
mediaType: z.ZodEnum<{
|
|
612
|
+
"application/json": "application/json";
|
|
613
|
+
"text/plain": "text/plain";
|
|
614
|
+
"text/x-diff": "text/x-diff";
|
|
615
|
+
"text/x-python": "text/x-python";
|
|
616
|
+
}>;
|
|
617
|
+
sizeBytes: z.ZodNumber;
|
|
618
|
+
purpose: z.ZodEnum<{
|
|
619
|
+
action: "action";
|
|
620
|
+
result: "result";
|
|
621
|
+
state: "state";
|
|
622
|
+
verification: "verification";
|
|
623
|
+
}>;
|
|
624
|
+
}, z.core.$strict>>;
|
|
625
|
+
reason: z.ZodString;
|
|
626
|
+
}, z.core.$strict>;
|
|
627
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
628
|
+
schemaVersion: z.ZodLiteral<"openpond.toolEpisodeEvent.v1">;
|
|
629
|
+
operationId: z.ZodString;
|
|
630
|
+
installationId: z.ZodString;
|
|
631
|
+
episodeId: z.ZodString;
|
|
632
|
+
eventId: z.ZodString;
|
|
633
|
+
sessionId: z.ZodString;
|
|
634
|
+
parentSessionId: z.ZodNullable<z.ZodString>;
|
|
635
|
+
turnId: z.ZodNullable<z.ZodString>;
|
|
636
|
+
callId: z.ZodString;
|
|
637
|
+
occurredAt: z.ZodString;
|
|
638
|
+
sequence: z.ZodNumber;
|
|
639
|
+
adapterVersion: z.ZodString;
|
|
640
|
+
sanitization: z.ZodObject<{
|
|
641
|
+
policyRevision: z.ZodNumber;
|
|
642
|
+
policyHash: z.ZodString;
|
|
643
|
+
redactedFields: z.ZodNumber;
|
|
644
|
+
omittedFields: z.ZodNumber;
|
|
645
|
+
truncated: z.ZodBoolean;
|
|
646
|
+
}, z.core.$strict>;
|
|
647
|
+
contentHash: z.ZodString;
|
|
648
|
+
eventKind: z.ZodLiteral<"lineage">;
|
|
649
|
+
payload: z.ZodObject<{
|
|
650
|
+
relation: z.ZodEnum<{
|
|
651
|
+
fork: "fork";
|
|
652
|
+
reopen: "reopen";
|
|
653
|
+
split: "split";
|
|
654
|
+
}>;
|
|
655
|
+
parentEpisode: z.ZodObject<{
|
|
656
|
+
id: z.ZodString;
|
|
657
|
+
contentHash: z.ZodString;
|
|
658
|
+
}, z.core.$strict>;
|
|
659
|
+
parentSessionId: z.ZodString;
|
|
660
|
+
reason: z.ZodString;
|
|
661
|
+
}, z.core.$strict>;
|
|
662
|
+
}, z.core.$strict>], "eventKind">>>;
|
|
663
|
+
state: z.ZodEnum<{
|
|
664
|
+
ambiguous: "ambiguous";
|
|
665
|
+
awaiting_owner_review: "awaiting_owner_review";
|
|
666
|
+
incomplete: "incomplete";
|
|
667
|
+
}>;
|
|
668
|
+
assembly: z.ZodObject<{
|
|
669
|
+
state: z.ZodEnum<{
|
|
670
|
+
ambiguous: "ambiguous";
|
|
671
|
+
awaiting_owner_review: "awaiting_owner_review";
|
|
672
|
+
incomplete: "incomplete";
|
|
673
|
+
}>;
|
|
674
|
+
issues: z.ZodArray<z.ZodEnum<{
|
|
675
|
+
completion_not_observed: "completion_not_observed";
|
|
676
|
+
conflicting_event: "conflicting_event";
|
|
677
|
+
conflicting_observations: "conflicting_observations";
|
|
678
|
+
lineage_mismatch: "lineage_mismatch";
|
|
679
|
+
missing_attempt: "missing_attempt";
|
|
680
|
+
missing_observation: "missing_observation";
|
|
681
|
+
mixed_scope: "mixed_scope";
|
|
682
|
+
reference_mismatch: "reference_mismatch";
|
|
683
|
+
}>>;
|
|
684
|
+
groups: z.ZodArray<z.ZodObject<{
|
|
685
|
+
key: z.ZodString;
|
|
686
|
+
application: z.ZodString;
|
|
687
|
+
applicationVersion: z.ZodString;
|
|
688
|
+
tool: z.ZodObject<{
|
|
689
|
+
name: z.ZodString;
|
|
690
|
+
version: z.ZodNullable<z.ZodString>;
|
|
691
|
+
server: z.ZodNullable<z.ZodString>;
|
|
692
|
+
}, z.core.$strict>;
|
|
693
|
+
environmentFingerprints: z.ZodArray<z.ZodString>;
|
|
694
|
+
attempts: z.ZodArray<z.ZodObject<{
|
|
695
|
+
id: z.ZodString;
|
|
696
|
+
contentHash: z.ZodString;
|
|
697
|
+
}, z.core.$strict>>;
|
|
698
|
+
}, z.core.$strict>>;
|
|
699
|
+
}, z.core.$strict>;
|
|
700
|
+
verificationAuthority: z.ZodLiteral<"not_granted">;
|
|
701
|
+
learningEnrollment: z.ZodLiteral<false>;
|
|
702
|
+
}, z.core.$strict>;
|
|
703
|
+
export declare const ToolLearningPurgeRequestSchema: z.ZodObject<{
|
|
704
|
+
operationId: z.ZodString;
|
|
705
|
+
expectedRevision: z.ZodNumber;
|
|
706
|
+
}, z.core.$strict>;
|
|
707
|
+
export declare const ToolLearningPurgeReceiptSchema: z.ZodObject<{
|
|
708
|
+
installationId: z.ZodString;
|
|
709
|
+
operationId: z.ZodString;
|
|
710
|
+
purgedEvents: z.ZodNumber;
|
|
711
|
+
learningEnrollment: z.ZodLiteral<false>;
|
|
712
|
+
}, z.core.$strict>;
|
|
713
|
+
//# sourceMappingURL=tool-learning-responses.d.ts.map
|