@nylorun/core 0.17.0-beta → 0.19.0-beta
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 +30 -0
- package/README.md +10 -0
- package/dist/compatibility.d.ts +7 -1
- package/dist/compatibility.js +6 -0
- package/dist/contracts.d.ts +83 -4
- package/dist/contracts.js +161 -33
- package/dist/definition/from.js +22 -188
- package/dist/definition/removed.d.ts +4 -2
- package/dist/definition/removed.js +8 -2
- package/dist/harness-api/messages.d.ts +30 -352
- package/dist/harness-api/messages.js +2 -6
- package/dist/harness-api/schema.d.ts +704 -13
- package/dist/harness-api/schema.js +138 -53
- package/dist/harness-api/transcript.d.ts +3 -5
- package/dist/harness-api/transcript.js +0 -5
- package/dist/project.d.ts +67 -0
- package/dist/project.js +210 -0
- package/dist/transport.d.ts +52 -0
- package/dist/transport.js +73 -0
- package/package.json +9 -1
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Schemas of the Harness API's frames and payloads
|
|
3
|
-
*
|
|
4
|
-
*
|
|
2
|
+
* Schemas of the Harness API's frames and payloads, and the source of its types (`messages.ts`
|
|
3
|
+
* infers each from its schema). A socket validates every frame it receives; the in-process
|
|
4
|
+
* channel does in JSON mode (tests). Engine documents (manifests, checkpoints, outcomes) are
|
|
5
|
+
* checked by the engine and the record, not here.
|
|
5
6
|
*/
|
|
6
7
|
import { z } from "zod";
|
|
8
|
+
/** The payload of one `transcript.updated` event. */
|
|
9
|
+
export declare const TranscriptUpdateSchema: z.ZodObject<{
|
|
10
|
+
keep: z.ZodNumber;
|
|
11
|
+
entries: z.ZodArray<z.ZodUnknown>;
|
|
12
|
+
length: z.ZodNumber;
|
|
13
|
+
}, z.core.$strict>;
|
|
7
14
|
export declare const FrameSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
8
15
|
t: z.ZodLiteral<"req">;
|
|
9
16
|
id: z.ZodNumber;
|
|
@@ -40,6 +47,7 @@ export declare const FrameSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
40
47
|
}, z.core.$strict>, z.ZodObject<{
|
|
41
48
|
t: z.ZodLiteral<"ping">;
|
|
42
49
|
}, z.core.$strict>]>;
|
|
50
|
+
/** One effect the engine asks for: a `HostEffect`, by structure. Model intents carry no `input`. */
|
|
43
51
|
export declare const EffectIntentSchema: z.ZodObject<{
|
|
44
52
|
effectId: z.ZodString;
|
|
45
53
|
sessionId: z.ZodString;
|
|
@@ -65,6 +73,109 @@ export declare const EffectIntentSchema: z.ZodObject<{
|
|
|
65
73
|
input: z.ZodOptional<z.ZodUnknown>;
|
|
66
74
|
context: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
67
75
|
}, z.core.$strict>;
|
|
76
|
+
/** A completed outcome of the segment, with the hash of the request it answered. */
|
|
77
|
+
export declare const RecordedOutcomeSchema: z.ZodObject<{
|
|
78
|
+
effectId: z.ZodString;
|
|
79
|
+
requestHash: z.ZodString;
|
|
80
|
+
outcome: z.ZodObject<{
|
|
81
|
+
value: z.ZodUnknown;
|
|
82
|
+
statePatch: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
83
|
+
}, z.core.$strict>;
|
|
84
|
+
}, z.core.$strict>;
|
|
85
|
+
/** A workspace's compute record, as the harness keeps it. */
|
|
86
|
+
export declare const WorkspaceRecordSchema: z.ZodObject<{
|
|
87
|
+
key: z.ZodString;
|
|
88
|
+
sessionId: z.ZodString;
|
|
89
|
+
sandboxId: z.ZodOptional<z.ZodString>;
|
|
90
|
+
backend: z.ZodString;
|
|
91
|
+
image: z.ZodString;
|
|
92
|
+
state: z.ZodEnum<{
|
|
93
|
+
creating: "creating";
|
|
94
|
+
running: "running";
|
|
95
|
+
stopped: "stopped";
|
|
96
|
+
}>;
|
|
97
|
+
createdAt: z.ZodString;
|
|
98
|
+
updatedAt: z.ZodString;
|
|
99
|
+
}, z.core.$strict>;
|
|
100
|
+
/** The session a workspace request acts for: the workspace's owner and its sandbox resource. */
|
|
101
|
+
export declare const WorkspaceSessionSchema: z.ZodObject<{
|
|
102
|
+
ownerId: z.ZodString;
|
|
103
|
+
sandboxId: z.ZodOptional<z.ZodString>;
|
|
104
|
+
activeTurnId: z.ZodNullable<z.ZodString>;
|
|
105
|
+
}, z.core.$strict>;
|
|
106
|
+
/** A sandbox tool call core sends to the harness that serves workspaces. */
|
|
107
|
+
export declare const WorkspaceCallSchema: z.ZodObject<{
|
|
108
|
+
session: z.ZodObject<{
|
|
109
|
+
ownerId: z.ZodString;
|
|
110
|
+
sandboxId: z.ZodOptional<z.ZodString>;
|
|
111
|
+
activeTurnId: z.ZodNullable<z.ZodString>;
|
|
112
|
+
}, z.core.$strict>;
|
|
113
|
+
spec: z.ZodUnknown;
|
|
114
|
+
tool: z.ZodEnum<{
|
|
115
|
+
bash: "bash";
|
|
116
|
+
edit: "edit";
|
|
117
|
+
glob: "glob";
|
|
118
|
+
grep: "grep";
|
|
119
|
+
read: "read";
|
|
120
|
+
write: "write";
|
|
121
|
+
}>;
|
|
122
|
+
input: z.ZodUnknown;
|
|
123
|
+
}, z.core.$strict>;
|
|
124
|
+
/**
|
|
125
|
+
* A file of a workspace read as bytes (`save_artifact`, F8.1), at most `maxBytes`. The answer is
|
|
126
|
+
* `{kind: "read", path, base64}`, `{kind: "missing", path}` or a failed tool outcome.
|
|
127
|
+
*/
|
|
128
|
+
export declare const WorkspaceBytesCallSchema: z.ZodObject<{
|
|
129
|
+
session: z.ZodObject<{
|
|
130
|
+
ownerId: z.ZodString;
|
|
131
|
+
sandboxId: z.ZodOptional<z.ZodString>;
|
|
132
|
+
activeTurnId: z.ZodNullable<z.ZodString>;
|
|
133
|
+
}, z.core.$strict>;
|
|
134
|
+
spec: z.ZodUnknown;
|
|
135
|
+
bytes: z.ZodObject<{
|
|
136
|
+
path: z.ZodString;
|
|
137
|
+
maxBytes: z.ZodNumber;
|
|
138
|
+
}, z.core.$strict>;
|
|
139
|
+
}, z.core.$strict>;
|
|
140
|
+
/**
|
|
141
|
+
* The regular files under a directory of a workspace, recursively, at most `maxEntries + 1`
|
|
142
|
+
* (the turn-end export, F8.2). The answer is `{kind: "listed", path, listing: {entries,
|
|
143
|
+
* truncated}}`, `{kind: "missing", path}` (no sandbox yet, or not a directory) or a failed tool
|
|
144
|
+
* outcome.
|
|
145
|
+
*/
|
|
146
|
+
export declare const WorkspaceListCallSchema: z.ZodObject<{
|
|
147
|
+
session: z.ZodObject<{
|
|
148
|
+
ownerId: z.ZodString;
|
|
149
|
+
sandboxId: z.ZodOptional<z.ZodString>;
|
|
150
|
+
activeTurnId: z.ZodNullable<z.ZodString>;
|
|
151
|
+
}, z.core.$strict>;
|
|
152
|
+
spec: z.ZodUnknown;
|
|
153
|
+
list: z.ZodObject<{
|
|
154
|
+
dir: z.ZodString;
|
|
155
|
+
maxEntries: z.ZodNumber;
|
|
156
|
+
}, z.core.$strict>;
|
|
157
|
+
}, z.core.$strict>;
|
|
158
|
+
/** The lease on one run. `token` is the run token (F5) when the gates require one. */
|
|
159
|
+
export declare const RunGrantSchema: z.ZodObject<{
|
|
160
|
+
runId: z.ZodString;
|
|
161
|
+
sessionId: z.ZodString;
|
|
162
|
+
turnId: z.ZodString;
|
|
163
|
+
epoch: z.ZodNumber;
|
|
164
|
+
token: z.ZodOptional<z.ZodString>;
|
|
165
|
+
tokenExpiresAt: z.ZodOptional<z.ZodString>;
|
|
166
|
+
}, z.core.$strict>;
|
|
167
|
+
/** Where a harness sends the session's tool calls. */
|
|
168
|
+
export declare const RunRoutingSchema: z.ZodObject<{
|
|
169
|
+
rootManifest: z.ZodType<object, unknown, z.core.$ZodTypeInternals<object, unknown>>;
|
|
170
|
+
mcpSnapshot: z.ZodOptional<z.ZodUnknown>;
|
|
171
|
+
sandbox: z.ZodOptional<z.ZodObject<{
|
|
172
|
+
ownerId: z.ZodString;
|
|
173
|
+
sandboxId: z.ZodOptional<z.ZodString>;
|
|
174
|
+
spec: z.ZodOptional<z.ZodUnknown>;
|
|
175
|
+
environment: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
176
|
+
}, z.core.$strict>>;
|
|
177
|
+
}, z.core.$strict>;
|
|
178
|
+
/** What a run starts from: `turn.start` (message, continue, resume) or `approval.answer`. */
|
|
68
179
|
export declare const TurnStartSchema: z.ZodObject<{
|
|
69
180
|
type: z.ZodEnum<{
|
|
70
181
|
"approval.answer": "approval.answer";
|
|
@@ -74,17 +185,17 @@ export declare const TurnStartSchema: z.ZodObject<{
|
|
|
74
185
|
agent: "agent";
|
|
75
186
|
flow: "flow";
|
|
76
187
|
}>;
|
|
77
|
-
manifest: z.
|
|
78
|
-
checkpoint: z.
|
|
79
|
-
sessionTools: z.ZodOptional<z.ZodArray<z.ZodUnknown
|
|
80
|
-
outcomes: z.ZodArray<z.ZodObject<{
|
|
188
|
+
manifest: z.ZodType<object, unknown, z.core.$ZodTypeInternals<object, unknown>>;
|
|
189
|
+
checkpoint: z.ZodType<object, unknown, z.core.$ZodTypeInternals<object, unknown>>;
|
|
190
|
+
sessionTools: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodUnknown>>>;
|
|
191
|
+
outcomes: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
81
192
|
effectId: z.ZodString;
|
|
82
193
|
requestHash: z.ZodString;
|
|
83
194
|
outcome: z.ZodObject<{
|
|
84
195
|
value: z.ZodUnknown;
|
|
85
196
|
statePatch: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
86
197
|
}, z.core.$strict>;
|
|
87
|
-
}, z.core.$strict
|
|
198
|
+
}, z.core.$strict>>>;
|
|
88
199
|
transcript: z.ZodObject<{
|
|
89
200
|
cursor: z.ZodNumber;
|
|
90
201
|
}, z.core.$strict>;
|
|
@@ -97,15 +208,20 @@ export declare const TurnStartSchema: z.ZodObject<{
|
|
|
97
208
|
fixtureModel: z.ZodBoolean;
|
|
98
209
|
}, z.core.$strict>;
|
|
99
210
|
routing: z.ZodObject<{
|
|
100
|
-
rootManifest: z.
|
|
211
|
+
rootManifest: z.ZodType<object, unknown, z.core.$ZodTypeInternals<object, unknown>>;
|
|
101
212
|
mcpSnapshot: z.ZodOptional<z.ZodUnknown>;
|
|
102
213
|
sandbox: z.ZodOptional<z.ZodObject<{
|
|
103
214
|
ownerId: z.ZodString;
|
|
104
215
|
sandboxId: z.ZodOptional<z.ZodString>;
|
|
105
216
|
spec: z.ZodOptional<z.ZodUnknown>;
|
|
217
|
+
environment: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
106
218
|
}, z.core.$strict>>;
|
|
107
219
|
}, z.core.$strict>;
|
|
108
220
|
}, z.core.$strict>;
|
|
221
|
+
/**
|
|
222
|
+
* A segment's end. `state` is the agent's engine state without its transcript; `transcript`
|
|
223
|
+
* edits the transcript the segment started from. `thrown` reports an engine that threw.
|
|
224
|
+
*/
|
|
109
225
|
export declare const TurnOutputSchema: z.ZodObject<{
|
|
110
226
|
runId: z.ZodString;
|
|
111
227
|
status: z.ZodOptional<z.ZodEnum<{
|
|
@@ -121,19 +237,594 @@ export declare const TurnOutputSchema: z.ZodObject<{
|
|
|
121
237
|
output: z.ZodOptional<z.ZodUnknown>;
|
|
122
238
|
pending: z.ZodOptional<z.ZodUnknown>;
|
|
123
239
|
error: z.ZodOptional<z.ZodUnknown>;
|
|
124
|
-
effectIds: z.ZodOptional<z.ZodArray<z.ZodString
|
|
125
|
-
cancelEffectIds: z.ZodOptional<z.ZodArray<z.ZodString
|
|
126
|
-
transcript: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
240
|
+
effectIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
241
|
+
cancelEffectIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
242
|
+
transcript: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
127
243
|
keep: z.ZodNumber;
|
|
128
244
|
entries: z.ZodArray<z.ZodUnknown>;
|
|
129
245
|
length: z.ZodNumber;
|
|
130
|
-
}, z.core.$strict
|
|
246
|
+
}, z.core.$strict>>>>;
|
|
131
247
|
thrown: z.ZodOptional<z.ZodObject<{
|
|
132
248
|
code: z.ZodOptional<z.ZodString>;
|
|
133
249
|
message: z.ZodString;
|
|
134
250
|
}, z.core.$strict>>;
|
|
135
251
|
}, z.core.$strict>;
|
|
252
|
+
/** Why a harness gave a run back without an output. */
|
|
253
|
+
export declare const ReleaseReasonSchema: z.ZodEnum<{
|
|
254
|
+
"connection.lost": "connection.lost";
|
|
255
|
+
"ownership.lost": "ownership.lost";
|
|
256
|
+
shutdown: "shutdown";
|
|
257
|
+
}>;
|
|
258
|
+
export declare const IntentAnswerSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
259
|
+
status: z.ZodLiteral<"completed">;
|
|
260
|
+
outcome: z.ZodObject<{
|
|
261
|
+
value: z.ZodUnknown;
|
|
262
|
+
statePatch: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
263
|
+
}, z.core.$strict>;
|
|
264
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
265
|
+
status: z.ZodEnum<{
|
|
266
|
+
pending: "pending";
|
|
267
|
+
uncertain: "uncertain";
|
|
268
|
+
}>;
|
|
269
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
270
|
+
status: z.ZodLiteral<"execute">;
|
|
271
|
+
rejoin: z.ZodOptional<z.ZodLiteral<true>>;
|
|
272
|
+
}, z.core.$strict>]>;
|
|
273
|
+
export declare const OutcomeAnswerSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
274
|
+
status: z.ZodLiteral<"completed">;
|
|
275
|
+
outcome: z.ZodObject<{
|
|
276
|
+
value: z.ZodUnknown;
|
|
277
|
+
statePatch: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
278
|
+
}, z.core.$strict>;
|
|
279
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
280
|
+
status: z.ZodLiteral<"uncertain">;
|
|
281
|
+
}, z.core.$strict>]>;
|
|
282
|
+
type RequestSchemas = Record<string, {
|
|
283
|
+
params: z.ZodType;
|
|
284
|
+
result: z.ZodType;
|
|
285
|
+
}>;
|
|
286
|
+
/** The params and result of each request, as its schemas infer them. */
|
|
287
|
+
export type RequestTypes<Schemas extends RequestSchemas> = {
|
|
288
|
+
[M in keyof Schemas]: {
|
|
289
|
+
params: z.infer<Schemas[M]["params"]>;
|
|
290
|
+
result: z.infer<Schemas[M]["result"]>;
|
|
291
|
+
};
|
|
292
|
+
};
|
|
293
|
+
/** Requests a harness sends to core, with their answers. */
|
|
294
|
+
export declare const harnessRequests: {
|
|
295
|
+
/**
|
|
296
|
+
* `capabilities.workspace` declares that the harness serves the Tenant's workspaces (F6.2):
|
|
297
|
+
* core then sends it the `workspace.*` requests. The answer names the Tenant (its workspace
|
|
298
|
+
* keys are scoped by it) and the sandbox backend preference the harness selects with.
|
|
299
|
+
*/
|
|
300
|
+
hello: {
|
|
301
|
+
params: z.ZodObject<{
|
|
302
|
+
api: z.ZodNumber;
|
|
303
|
+
name: z.ZodString;
|
|
304
|
+
version: z.ZodString;
|
|
305
|
+
capabilities: z.ZodObject<{
|
|
306
|
+
workspace: z.ZodOptional<z.ZodUnknown>;
|
|
307
|
+
}, z.core.$strict>;
|
|
308
|
+
}, z.core.$strict>;
|
|
309
|
+
result: z.ZodObject<{
|
|
310
|
+
api: z.ZodLiteral<2>;
|
|
311
|
+
tenantId: z.ZodString;
|
|
312
|
+
sandbox: z.ZodObject<{
|
|
313
|
+
backend: z.ZodNullable<z.ZodString>;
|
|
314
|
+
}, z.core.$strict>;
|
|
315
|
+
renewEveryMs: z.ZodNumber;
|
|
316
|
+
}, z.core.$strict>;
|
|
317
|
+
};
|
|
318
|
+
lease: {
|
|
319
|
+
params: z.ZodObject<{
|
|
320
|
+
slots: z.ZodOptional<z.ZodNumber>;
|
|
321
|
+
}, z.core.$strict>;
|
|
322
|
+
result: z.ZodObject<{
|
|
323
|
+
run: z.ZodObject<{
|
|
324
|
+
runId: z.ZodString;
|
|
325
|
+
sessionId: z.ZodString;
|
|
326
|
+
turnId: z.ZodString;
|
|
327
|
+
epoch: z.ZodNumber;
|
|
328
|
+
token: z.ZodOptional<z.ZodString>;
|
|
329
|
+
tokenExpiresAt: z.ZodOptional<z.ZodString>;
|
|
330
|
+
}, z.core.$strict>;
|
|
331
|
+
input: z.ZodObject<{
|
|
332
|
+
type: z.ZodEnum<{
|
|
333
|
+
"approval.answer": "approval.answer";
|
|
334
|
+
"turn.start": "turn.start";
|
|
335
|
+
}>;
|
|
336
|
+
engine: z.ZodEnum<{
|
|
337
|
+
agent: "agent";
|
|
338
|
+
flow: "flow";
|
|
339
|
+
}>;
|
|
340
|
+
manifest: z.ZodType<object, unknown, z.core.$ZodTypeInternals<object, unknown>>;
|
|
341
|
+
checkpoint: z.ZodType<object, unknown, z.core.$ZodTypeInternals<object, unknown>>;
|
|
342
|
+
sessionTools: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodUnknown>>>;
|
|
343
|
+
outcomes: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
344
|
+
effectId: z.ZodString;
|
|
345
|
+
requestHash: z.ZodString;
|
|
346
|
+
outcome: z.ZodObject<{
|
|
347
|
+
value: z.ZodUnknown;
|
|
348
|
+
statePatch: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
349
|
+
}, z.core.$strict>;
|
|
350
|
+
}, z.core.$strict>>>;
|
|
351
|
+
transcript: z.ZodObject<{
|
|
352
|
+
cursor: z.ZodNumber;
|
|
353
|
+
}, z.core.$strict>;
|
|
354
|
+
options: z.ZodObject<{
|
|
355
|
+
yieldAfter: z.ZodOptional<z.ZodObject<{
|
|
356
|
+
steps: z.ZodOptional<z.ZodNumber>;
|
|
357
|
+
ms: z.ZodOptional<z.ZodNumber>;
|
|
358
|
+
}, z.core.$strict>>;
|
|
359
|
+
flowLimits: z.ZodOptional<z.ZodUnknown>;
|
|
360
|
+
fixtureModel: z.ZodBoolean;
|
|
361
|
+
}, z.core.$strict>;
|
|
362
|
+
routing: z.ZodObject<{
|
|
363
|
+
rootManifest: z.ZodType<object, unknown, z.core.$ZodTypeInternals<object, unknown>>;
|
|
364
|
+
mcpSnapshot: z.ZodOptional<z.ZodUnknown>;
|
|
365
|
+
sandbox: z.ZodOptional<z.ZodObject<{
|
|
366
|
+
ownerId: z.ZodString;
|
|
367
|
+
sandboxId: z.ZodOptional<z.ZodString>;
|
|
368
|
+
spec: z.ZodOptional<z.ZodUnknown>;
|
|
369
|
+
environment: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
370
|
+
}, z.core.$strict>>;
|
|
371
|
+
}, z.core.$strict>;
|
|
372
|
+
}, z.core.$strict>;
|
|
373
|
+
}, z.core.$strict>;
|
|
374
|
+
};
|
|
375
|
+
"lease.renew": {
|
|
376
|
+
params: z.ZodObject<{
|
|
377
|
+
runId: z.ZodString;
|
|
378
|
+
}, z.core.$strict>;
|
|
379
|
+
result: z.ZodUnion<readonly [z.ZodObject<{
|
|
380
|
+
ok: z.ZodLiteral<true>;
|
|
381
|
+
token: z.ZodOptional<z.ZodString>;
|
|
382
|
+
tokenExpiresAt: z.ZodOptional<z.ZodString>;
|
|
383
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
384
|
+
ok: z.ZodLiteral<false>;
|
|
385
|
+
}, z.core.$strict>]>;
|
|
386
|
+
};
|
|
387
|
+
"lease.release": {
|
|
388
|
+
params: z.ZodObject<{
|
|
389
|
+
runId: z.ZodString;
|
|
390
|
+
reason: z.ZodEnum<{
|
|
391
|
+
"connection.lost": "connection.lost";
|
|
392
|
+
"ownership.lost": "ownership.lost";
|
|
393
|
+
shutdown: "shutdown";
|
|
394
|
+
}>;
|
|
395
|
+
}, z.core.$strict>;
|
|
396
|
+
result: z.ZodObject<{}, z.core.$strict>;
|
|
397
|
+
};
|
|
398
|
+
"effect.intent": {
|
|
399
|
+
params: z.ZodObject<{
|
|
400
|
+
runId: z.ZodString;
|
|
401
|
+
effect: z.ZodObject<{
|
|
402
|
+
effectId: z.ZodString;
|
|
403
|
+
sessionId: z.ZodString;
|
|
404
|
+
turnId: z.ZodString;
|
|
405
|
+
agentId: z.ZodString;
|
|
406
|
+
manifestHash: z.ZodString;
|
|
407
|
+
kind: z.ZodEnum<{
|
|
408
|
+
agent: "agent";
|
|
409
|
+
delegation: "delegation";
|
|
410
|
+
model: "model";
|
|
411
|
+
tool: "tool";
|
|
412
|
+
}>;
|
|
413
|
+
agent: z.ZodOptional<z.ZodObject<{
|
|
414
|
+
id: z.ZodString;
|
|
415
|
+
path: z.ZodString;
|
|
416
|
+
delegationId: z.ZodOptional<z.ZodString>;
|
|
417
|
+
}, z.core.$strict>>;
|
|
418
|
+
capabilityId: z.ZodOptional<z.ZodString>;
|
|
419
|
+
toolName: z.ZodOptional<z.ZodString>;
|
|
420
|
+
path: z.ZodOptional<z.ZodString>;
|
|
421
|
+
key: z.ZodOptional<z.ZodString>;
|
|
422
|
+
iterations: z.ZodOptional<z.ZodString>;
|
|
423
|
+
input: z.ZodOptional<z.ZodUnknown>;
|
|
424
|
+
context: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
425
|
+
}, z.core.$strict>;
|
|
426
|
+
requestHash: z.ZodString;
|
|
427
|
+
}, z.core.$strict>;
|
|
428
|
+
result: z.ZodUnion<readonly [z.ZodObject<{
|
|
429
|
+
status: z.ZodLiteral<"completed">;
|
|
430
|
+
outcome: z.ZodObject<{
|
|
431
|
+
value: z.ZodUnknown;
|
|
432
|
+
statePatch: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
433
|
+
}, z.core.$strict>;
|
|
434
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
435
|
+
status: z.ZodEnum<{
|
|
436
|
+
pending: "pending";
|
|
437
|
+
uncertain: "uncertain";
|
|
438
|
+
}>;
|
|
439
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
440
|
+
status: z.ZodLiteral<"execute">;
|
|
441
|
+
rejoin: z.ZodOptional<z.ZodLiteral<true>>;
|
|
442
|
+
}, z.core.$strict>]>;
|
|
443
|
+
};
|
|
444
|
+
"effect.outcome": {
|
|
445
|
+
params: z.ZodUnion<readonly [z.ZodObject<{
|
|
446
|
+
runId: z.ZodString;
|
|
447
|
+
effectId: z.ZodString;
|
|
448
|
+
value: z.ZodUnknown;
|
|
449
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
450
|
+
runId: z.ZodString;
|
|
451
|
+
effectId: z.ZodString;
|
|
452
|
+
error: z.ZodString;
|
|
453
|
+
}, z.core.$strict>]>;
|
|
454
|
+
result: z.ZodUnion<readonly [z.ZodObject<{
|
|
455
|
+
status: z.ZodLiteral<"completed">;
|
|
456
|
+
outcome: z.ZodObject<{
|
|
457
|
+
value: z.ZodUnknown;
|
|
458
|
+
statePatch: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
459
|
+
}, z.core.$strict>;
|
|
460
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
461
|
+
status: z.ZodLiteral<"uncertain">;
|
|
462
|
+
}, z.core.$strict>]>;
|
|
463
|
+
};
|
|
464
|
+
"transcript.read": {
|
|
465
|
+
params: z.ZodObject<{
|
|
466
|
+
runId: z.ZodString;
|
|
467
|
+
}, z.core.$strict>;
|
|
468
|
+
result: z.ZodObject<{
|
|
469
|
+
cursor: z.ZodNumber;
|
|
470
|
+
entries: z.ZodArray<z.ZodUnknown>;
|
|
471
|
+
}, z.core.$strict>;
|
|
472
|
+
};
|
|
473
|
+
event: {
|
|
474
|
+
params: z.ZodObject<{
|
|
475
|
+
runId: z.ZodOptional<z.ZodString>;
|
|
476
|
+
sessionId: z.ZodString;
|
|
477
|
+
turnId: z.ZodNullable<z.ZodString>;
|
|
478
|
+
type: z.ZodEnum<{
|
|
479
|
+
"sandbox.exec": "sandbox.exec";
|
|
480
|
+
"sandbox.state": "sandbox.state";
|
|
481
|
+
}>;
|
|
482
|
+
payload: z.ZodUnknown;
|
|
483
|
+
record: z.ZodOptional<z.ZodObject<{
|
|
484
|
+
key: z.ZodString;
|
|
485
|
+
sessionId: z.ZodString;
|
|
486
|
+
sandboxId: z.ZodOptional<z.ZodString>;
|
|
487
|
+
backend: z.ZodString;
|
|
488
|
+
image: z.ZodString;
|
|
489
|
+
state: z.ZodEnum<{
|
|
490
|
+
creating: "creating";
|
|
491
|
+
running: "running";
|
|
492
|
+
stopped: "stopped";
|
|
493
|
+
}>;
|
|
494
|
+
createdAt: z.ZodString;
|
|
495
|
+
updatedAt: z.ZodString;
|
|
496
|
+
}, z.core.$strict>>;
|
|
497
|
+
}, z.core.$strict>;
|
|
498
|
+
result: z.ZodObject<{}, z.core.$strict>;
|
|
499
|
+
};
|
|
500
|
+
"session.mcp": {
|
|
501
|
+
params: z.ZodObject<{
|
|
502
|
+
runId: z.ZodString;
|
|
503
|
+
snapshot: z.ZodOptional<z.ZodUnknown>;
|
|
504
|
+
diagnostics: z.ZodArray<z.ZodUnknown>;
|
|
505
|
+
}, z.core.$strict>;
|
|
506
|
+
result: z.ZodObject<{
|
|
507
|
+
snapshot: z.ZodUnknown;
|
|
508
|
+
sessionTools: z.ZodArray<z.ZodUnknown>;
|
|
509
|
+
}, z.core.$strict>;
|
|
510
|
+
};
|
|
511
|
+
/**
|
|
512
|
+
* A definition file's bytes, base64 (track R2 M4): one the run's definition names, for the
|
|
513
|
+
* skills its sandbox mounts.
|
|
514
|
+
*/
|
|
515
|
+
"definition.file": {
|
|
516
|
+
params: z.ZodObject<{
|
|
517
|
+
runId: z.ZodString;
|
|
518
|
+
sha256: z.ZodString;
|
|
519
|
+
}, z.core.$strict>;
|
|
520
|
+
result: z.ZodObject<{
|
|
521
|
+
base64: z.ZodString;
|
|
522
|
+
}, z.core.$strict>;
|
|
523
|
+
};
|
|
524
|
+
"turn.completed": {
|
|
525
|
+
params: z.ZodObject<{
|
|
526
|
+
runId: z.ZodString;
|
|
527
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
528
|
+
cancelled: "cancelled";
|
|
529
|
+
completed: "completed";
|
|
530
|
+
failed: "failed";
|
|
531
|
+
paused: "paused";
|
|
532
|
+
uncertain: "uncertain";
|
|
533
|
+
waiting: "waiting";
|
|
534
|
+
yielded: "yielded";
|
|
535
|
+
}>>;
|
|
536
|
+
state: z.ZodOptional<z.ZodUnknown>;
|
|
537
|
+
output: z.ZodOptional<z.ZodUnknown>;
|
|
538
|
+
pending: z.ZodOptional<z.ZodUnknown>;
|
|
539
|
+
error: z.ZodOptional<z.ZodUnknown>;
|
|
540
|
+
effectIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
541
|
+
cancelEffectIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
542
|
+
transcript: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
543
|
+
keep: z.ZodNumber;
|
|
544
|
+
entries: z.ZodArray<z.ZodUnknown>;
|
|
545
|
+
length: z.ZodNumber;
|
|
546
|
+
}, z.core.$strict>>>>;
|
|
547
|
+
thrown: z.ZodOptional<z.ZodObject<{
|
|
548
|
+
code: z.ZodOptional<z.ZodString>;
|
|
549
|
+
message: z.ZodString;
|
|
550
|
+
}, z.core.$strict>>;
|
|
551
|
+
}, z.core.$strict>;
|
|
552
|
+
result: z.ZodObject<{
|
|
553
|
+
cursor: z.ZodOptional<z.ZodNumber>;
|
|
554
|
+
}, z.core.$strict>;
|
|
555
|
+
};
|
|
556
|
+
"turn.paused": {
|
|
557
|
+
params: z.ZodObject<{
|
|
558
|
+
runId: z.ZodString;
|
|
559
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
560
|
+
cancelled: "cancelled";
|
|
561
|
+
completed: "completed";
|
|
562
|
+
failed: "failed";
|
|
563
|
+
paused: "paused";
|
|
564
|
+
uncertain: "uncertain";
|
|
565
|
+
waiting: "waiting";
|
|
566
|
+
yielded: "yielded";
|
|
567
|
+
}>>;
|
|
568
|
+
state: z.ZodOptional<z.ZodUnknown>;
|
|
569
|
+
output: z.ZodOptional<z.ZodUnknown>;
|
|
570
|
+
pending: z.ZodOptional<z.ZodUnknown>;
|
|
571
|
+
error: z.ZodOptional<z.ZodUnknown>;
|
|
572
|
+
effectIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
573
|
+
cancelEffectIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
574
|
+
transcript: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
575
|
+
keep: z.ZodNumber;
|
|
576
|
+
entries: z.ZodArray<z.ZodUnknown>;
|
|
577
|
+
length: z.ZodNumber;
|
|
578
|
+
}, z.core.$strict>>>>;
|
|
579
|
+
thrown: z.ZodOptional<z.ZodObject<{
|
|
580
|
+
code: z.ZodOptional<z.ZodString>;
|
|
581
|
+
message: z.ZodString;
|
|
582
|
+
}, z.core.$strict>>;
|
|
583
|
+
}, z.core.$strict>;
|
|
584
|
+
result: z.ZodObject<{
|
|
585
|
+
cursor: z.ZodOptional<z.ZodNumber>;
|
|
586
|
+
}, z.core.$strict>;
|
|
587
|
+
};
|
|
588
|
+
"turn.waiting": {
|
|
589
|
+
params: z.ZodObject<{
|
|
590
|
+
runId: z.ZodString;
|
|
591
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
592
|
+
cancelled: "cancelled";
|
|
593
|
+
completed: "completed";
|
|
594
|
+
failed: "failed";
|
|
595
|
+
paused: "paused";
|
|
596
|
+
uncertain: "uncertain";
|
|
597
|
+
waiting: "waiting";
|
|
598
|
+
yielded: "yielded";
|
|
599
|
+
}>>;
|
|
600
|
+
state: z.ZodOptional<z.ZodUnknown>;
|
|
601
|
+
output: z.ZodOptional<z.ZodUnknown>;
|
|
602
|
+
pending: z.ZodOptional<z.ZodUnknown>;
|
|
603
|
+
error: z.ZodOptional<z.ZodUnknown>;
|
|
604
|
+
effectIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
605
|
+
cancelEffectIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
606
|
+
transcript: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
607
|
+
keep: z.ZodNumber;
|
|
608
|
+
entries: z.ZodArray<z.ZodUnknown>;
|
|
609
|
+
length: z.ZodNumber;
|
|
610
|
+
}, z.core.$strict>>>>;
|
|
611
|
+
thrown: z.ZodOptional<z.ZodObject<{
|
|
612
|
+
code: z.ZodOptional<z.ZodString>;
|
|
613
|
+
message: z.ZodString;
|
|
614
|
+
}, z.core.$strict>>;
|
|
615
|
+
}, z.core.$strict>;
|
|
616
|
+
result: z.ZodObject<{
|
|
617
|
+
cursor: z.ZodOptional<z.ZodNumber>;
|
|
618
|
+
}, z.core.$strict>;
|
|
619
|
+
};
|
|
620
|
+
"turn.failed": {
|
|
621
|
+
params: z.ZodObject<{
|
|
622
|
+
runId: z.ZodString;
|
|
623
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
624
|
+
cancelled: "cancelled";
|
|
625
|
+
completed: "completed";
|
|
626
|
+
failed: "failed";
|
|
627
|
+
paused: "paused";
|
|
628
|
+
uncertain: "uncertain";
|
|
629
|
+
waiting: "waiting";
|
|
630
|
+
yielded: "yielded";
|
|
631
|
+
}>>;
|
|
632
|
+
state: z.ZodOptional<z.ZodUnknown>;
|
|
633
|
+
output: z.ZodOptional<z.ZodUnknown>;
|
|
634
|
+
pending: z.ZodOptional<z.ZodUnknown>;
|
|
635
|
+
error: z.ZodOptional<z.ZodUnknown>;
|
|
636
|
+
effectIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
637
|
+
cancelEffectIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
638
|
+
transcript: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
639
|
+
keep: z.ZodNumber;
|
|
640
|
+
entries: z.ZodArray<z.ZodUnknown>;
|
|
641
|
+
length: z.ZodNumber;
|
|
642
|
+
}, z.core.$strict>>>>;
|
|
643
|
+
thrown: z.ZodOptional<z.ZodObject<{
|
|
644
|
+
code: z.ZodOptional<z.ZodString>;
|
|
645
|
+
message: z.ZodString;
|
|
646
|
+
}, z.core.$strict>>;
|
|
647
|
+
}, z.core.$strict>;
|
|
648
|
+
result: z.ZodObject<{
|
|
649
|
+
cursor: z.ZodOptional<z.ZodNumber>;
|
|
650
|
+
}, z.core.$strict>;
|
|
651
|
+
};
|
|
652
|
+
/** A yielded segment's state: ends the run, the turn goes on in the next. */
|
|
653
|
+
checkpoint: {
|
|
654
|
+
params: z.ZodObject<{
|
|
655
|
+
runId: z.ZodString;
|
|
656
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
657
|
+
cancelled: "cancelled";
|
|
658
|
+
completed: "completed";
|
|
659
|
+
failed: "failed";
|
|
660
|
+
paused: "paused";
|
|
661
|
+
uncertain: "uncertain";
|
|
662
|
+
waiting: "waiting";
|
|
663
|
+
yielded: "yielded";
|
|
664
|
+
}>>;
|
|
665
|
+
state: z.ZodOptional<z.ZodUnknown>;
|
|
666
|
+
output: z.ZodOptional<z.ZodUnknown>;
|
|
667
|
+
pending: z.ZodOptional<z.ZodUnknown>;
|
|
668
|
+
error: z.ZodOptional<z.ZodUnknown>;
|
|
669
|
+
effectIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
670
|
+
cancelEffectIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
671
|
+
transcript: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
672
|
+
keep: z.ZodNumber;
|
|
673
|
+
entries: z.ZodArray<z.ZodUnknown>;
|
|
674
|
+
length: z.ZodNumber;
|
|
675
|
+
}, z.core.$strict>>>>;
|
|
676
|
+
thrown: z.ZodOptional<z.ZodObject<{
|
|
677
|
+
code: z.ZodOptional<z.ZodString>;
|
|
678
|
+
message: z.ZodString;
|
|
679
|
+
}, z.core.$strict>>;
|
|
680
|
+
}, z.core.$strict>;
|
|
681
|
+
result: z.ZodObject<{
|
|
682
|
+
cursor: z.ZodOptional<z.ZodNumber>;
|
|
683
|
+
}, z.core.$strict>;
|
|
684
|
+
};
|
|
685
|
+
};
|
|
686
|
+
/**
|
|
687
|
+
* Requests core sends to a harness that declared `workspace` (F6.2), with their answers. A
|
|
688
|
+
* sandbox tool's answer is its `SandboxToolOutcome`; the harness claims its `sandbox.*` events
|
|
689
|
+
* while the request is in flight. `workspace.read` stays generic: F8.2 exports outputs
|
|
690
|
+
* through it.
|
|
691
|
+
*/
|
|
692
|
+
export declare const coreRequests: {
|
|
693
|
+
"workspace.read": {
|
|
694
|
+
params: z.ZodUnion<readonly [z.ZodObject<{
|
|
695
|
+
session: z.ZodObject<{
|
|
696
|
+
ownerId: z.ZodString;
|
|
697
|
+
sandboxId: z.ZodOptional<z.ZodString>;
|
|
698
|
+
activeTurnId: z.ZodNullable<z.ZodString>;
|
|
699
|
+
}, z.core.$strict>;
|
|
700
|
+
spec: z.ZodUnknown;
|
|
701
|
+
tool: z.ZodEnum<{
|
|
702
|
+
bash: "bash";
|
|
703
|
+
edit: "edit";
|
|
704
|
+
glob: "glob";
|
|
705
|
+
grep: "grep";
|
|
706
|
+
read: "read";
|
|
707
|
+
write: "write";
|
|
708
|
+
}>;
|
|
709
|
+
input: z.ZodUnknown;
|
|
710
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
711
|
+
session: z.ZodObject<{
|
|
712
|
+
ownerId: z.ZodString;
|
|
713
|
+
sandboxId: z.ZodOptional<z.ZodString>;
|
|
714
|
+
activeTurnId: z.ZodNullable<z.ZodString>;
|
|
715
|
+
}, z.core.$strict>;
|
|
716
|
+
spec: z.ZodUnknown;
|
|
717
|
+
bytes: z.ZodObject<{
|
|
718
|
+
path: z.ZodString;
|
|
719
|
+
maxBytes: z.ZodNumber;
|
|
720
|
+
}, z.core.$strict>;
|
|
721
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
722
|
+
session: z.ZodObject<{
|
|
723
|
+
ownerId: z.ZodString;
|
|
724
|
+
sandboxId: z.ZodOptional<z.ZodString>;
|
|
725
|
+
activeTurnId: z.ZodNullable<z.ZodString>;
|
|
726
|
+
}, z.core.$strict>;
|
|
727
|
+
spec: z.ZodUnknown;
|
|
728
|
+
list: z.ZodObject<{
|
|
729
|
+
dir: z.ZodString;
|
|
730
|
+
maxEntries: z.ZodNumber;
|
|
731
|
+
}, z.core.$strict>;
|
|
732
|
+
}, z.core.$strict>]>;
|
|
733
|
+
result: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
734
|
+
};
|
|
735
|
+
"workspace.write": {
|
|
736
|
+
params: z.ZodObject<{
|
|
737
|
+
session: z.ZodObject<{
|
|
738
|
+
ownerId: z.ZodString;
|
|
739
|
+
sandboxId: z.ZodOptional<z.ZodString>;
|
|
740
|
+
activeTurnId: z.ZodNullable<z.ZodString>;
|
|
741
|
+
}, z.core.$strict>;
|
|
742
|
+
spec: z.ZodUnknown;
|
|
743
|
+
tool: z.ZodEnum<{
|
|
744
|
+
bash: "bash";
|
|
745
|
+
edit: "edit";
|
|
746
|
+
glob: "glob";
|
|
747
|
+
grep: "grep";
|
|
748
|
+
read: "read";
|
|
749
|
+
write: "write";
|
|
750
|
+
}>;
|
|
751
|
+
input: z.ZodUnknown;
|
|
752
|
+
}, z.core.$strict>;
|
|
753
|
+
result: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
754
|
+
};
|
|
755
|
+
"workspace.exec": {
|
|
756
|
+
params: z.ZodObject<{
|
|
757
|
+
session: z.ZodObject<{
|
|
758
|
+
ownerId: z.ZodString;
|
|
759
|
+
sandboxId: z.ZodOptional<z.ZodString>;
|
|
760
|
+
activeTurnId: z.ZodNullable<z.ZodString>;
|
|
761
|
+
}, z.core.$strict>;
|
|
762
|
+
spec: z.ZodUnknown;
|
|
763
|
+
tool: z.ZodEnum<{
|
|
764
|
+
bash: "bash";
|
|
765
|
+
edit: "edit";
|
|
766
|
+
glob: "glob";
|
|
767
|
+
grep: "grep";
|
|
768
|
+
read: "read";
|
|
769
|
+
write: "write";
|
|
770
|
+
}>;
|
|
771
|
+
input: z.ZodUnknown;
|
|
772
|
+
}, z.core.$strict>;
|
|
773
|
+
result: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
774
|
+
};
|
|
775
|
+
/** The harness's sandbox selection report (`GET /v1/tenant/sandbox`, Tenant status). */
|
|
776
|
+
"workspace.report": {
|
|
777
|
+
params: z.ZodObject<{}, z.core.$strict>;
|
|
778
|
+
result: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
779
|
+
};
|
|
780
|
+
/** Stops idle workspaces, then lists every workspace the harness keeps. */
|
|
781
|
+
"workspace.sweep": {
|
|
782
|
+
params: z.ZodObject<{
|
|
783
|
+
now: z.ZodOptional<z.ZodNumber>;
|
|
784
|
+
}, z.core.$strict>;
|
|
785
|
+
result: z.ZodObject<{
|
|
786
|
+
workspaces: z.ZodArray<z.ZodObject<{
|
|
787
|
+
key: z.ZodString;
|
|
788
|
+
sessionId: z.ZodString;
|
|
789
|
+
sandboxId: z.ZodOptional<z.ZodString>;
|
|
790
|
+
backend: z.ZodString;
|
|
791
|
+
image: z.ZodString;
|
|
792
|
+
state: z.ZodEnum<{
|
|
793
|
+
creating: "creating";
|
|
794
|
+
running: "running";
|
|
795
|
+
stopped: "stopped";
|
|
796
|
+
}>;
|
|
797
|
+
createdAt: z.ZodString;
|
|
798
|
+
updatedAt: z.ZodString;
|
|
799
|
+
}, z.core.$strict>>;
|
|
800
|
+
}, z.core.$strict>;
|
|
801
|
+
};
|
|
802
|
+
/** Deletes workspaces with their files: by key, by sandbox resource, or all of them. */
|
|
803
|
+
"workspace.remove": {
|
|
804
|
+
params: z.ZodObject<{
|
|
805
|
+
keys: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
806
|
+
sandboxIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
807
|
+
all: z.ZodOptional<z.ZodLiteral<true>>;
|
|
808
|
+
}, z.core.$strict>;
|
|
809
|
+
result: z.ZodObject<{}, z.core.$strict>;
|
|
810
|
+
};
|
|
811
|
+
};
|
|
812
|
+
/** Messages core sends to a harness, without an answer. */
|
|
813
|
+
export declare const coreMessages: {
|
|
814
|
+
/** `message` is core's abort message, which the run's executors see as theirs. */
|
|
815
|
+
cancel: z.ZodObject<{
|
|
816
|
+
runId: z.ZodString;
|
|
817
|
+
reason: z.ZodEnum<{
|
|
818
|
+
cancel: "cancel";
|
|
819
|
+
deadline: "deadline";
|
|
820
|
+
"ownership.lost": "ownership.lost";
|
|
821
|
+
shutdown: "shutdown";
|
|
822
|
+
}>;
|
|
823
|
+
message: z.ZodOptional<z.ZodString>;
|
|
824
|
+
}, z.core.$strict>;
|
|
825
|
+
};
|
|
136
826
|
export declare function validateFrame(frame: unknown): void;
|
|
137
827
|
export declare function validateParams(method: string, params: unknown): void;
|
|
138
828
|
export declare function validateResult(method: string, result: unknown): void;
|
|
139
829
|
export declare function validateMessage(method: string, params: unknown): void;
|
|
830
|
+
export {};
|