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