@nylorun/core 0.22.0-beta → 0.24.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 +126 -0
- package/README.md +1 -1
- package/dist/compatibility.d.ts +120 -47
- package/dist/compatibility.js +122 -49
- package/dist/contracts.d.ts +2824 -907
- package/dist/contracts.js +1286 -585
- package/dist/define.d.ts +9 -12
- package/dist/define.js +8 -11
- package/dist/definition/assemble.d.ts +1 -3
- package/dist/definition/assemble.js +4 -8
- package/dist/definition/bound.d.ts +1 -1
- package/dist/definition/delegate.d.ts +5 -0
- package/dist/definition/delegate.js +6 -1
- package/dist/definition/from.d.ts +4 -2
- package/dist/definition/from.js +11 -29
- package/dist/definition/http-tool.d.ts +5 -3
- package/dist/definition/http-tool.js +8 -5
- package/dist/definition/manifest.d.ts +7 -6
- package/dist/definition/manifest.js +7 -6
- package/dist/definition/mcp.d.ts +1 -1
- package/dist/definition/media-reference.d.ts +2 -11
- package/dist/definition/media-reference.js +0 -12
- package/dist/definition/model-failure.js +1 -0
- package/dist/definition/removed.d.ts +7 -0
- package/dist/definition/removed.js +21 -0
- package/dist/definition/sections.d.ts +63 -0
- package/dist/definition/sections.js +204 -0
- package/dist/definition/trace.d.ts +0 -7
- package/dist/definition/trace.js +0 -34
- package/dist/definition/variant.d.ts +1 -1
- package/dist/definition/variant.js +1 -3
- package/dist/harness-api/artifacts.d.ts +84 -0
- package/dist/harness-api/artifacts.js +128 -0
- package/dist/harness-api/gates.d.ts +0 -4
- package/dist/harness-api/gates.js +0 -4
- package/dist/harness-api/harness-api.schema.json +2798 -1124
- package/dist/harness-api/index.d.ts +9 -6
- package/dist/harness-api/index.js +9 -6
- package/dist/harness-api/json-schema.js +5 -2
- package/dist/harness-api/mcp.d.ts +77 -30
- package/dist/harness-api/mcp.js +42 -25
- package/dist/harness-api/messages.d.ts +47 -17
- package/dist/harness-api/messages.js +20 -5
- package/dist/harness-api/schema.d.ts +609 -200
- package/dist/harness-api/schema.js +345 -62
- package/dist/harness-api/transcript.d.ts +8 -10
- package/dist/harness-api/transcript.js +27 -11
- package/dist/harness-api/transport.d.ts +7 -1
- package/dist/harness-api/transport.js +10 -7
- package/dist/manifest-schemas.d.ts +9 -5
- package/dist/manifest-schemas.js +23 -27
- package/dist/schemas/agent-manifest.schema.json +1508 -365
- package/dist/schemas/harness-manifest.schema.json +1273 -0
- package/dist/schemas/{environment-manifest.schema.json → runtime-manifest.schema.json} +165 -84
- package/dist/types/manifest.d.ts +72 -14
- package/dist/types/manifest.js +4 -0
- package/dist/types/model.d.ts +15 -5
- package/dist/utils/definition-files.d.ts +20 -6
- package/dist/utils/definition-files.js +31 -17
- package/dist/utils/file-systems.d.ts +20 -0
- package/dist/utils/file-systems.js +20 -0
- package/dist/utils/harness-id.d.ts +4 -1
- package/dist/utils/harness-id.js +4 -1
- package/dist/utils/media-types.d.ts +30 -0
- package/dist/utils/media-types.js +128 -0
- package/dist/utils/memory.d.ts +64 -0
- package/dist/utils/memory.js +139 -0
- package/dist/utils/runtime-limits.d.ts +280 -0
- package/dist/utils/runtime-limits.js +585 -0
- package/dist/utils/runtime-tools.d.ts +8 -16
- package/dist/utils/runtime-tools.js +8 -27
- package/dist/utils/sandbox.d.ts +4 -1
- package/dist/utils/sandbox.js +4 -1
- package/package.json +6 -5
- package/dist/definition/deferred-tools.d.ts +0 -27
- package/dist/definition/deferred-tools.js +0 -82
- package/dist/definition/runtime-manifest.d.ts +0 -30
- package/dist/definition/runtime-manifest.js +0 -132
- package/dist/definition/sandbox-tools.d.ts +0 -5
- package/dist/definition/sandbox-tools.js +0 -109
- package/dist/definition/skill-tools.d.ts +0 -23
- package/dist/definition/skill-tools.js +0 -76
|
@@ -5,12 +5,45 @@
|
|
|
5
5
|
* checked by the engine and the record, not here.
|
|
6
6
|
*/
|
|
7
7
|
import { z } from "zod";
|
|
8
|
-
/**
|
|
9
|
-
|
|
8
|
+
/**
|
|
9
|
+
* What a harness says of a compaction it made (protocol 15): why, its estimated tokens before and
|
|
10
|
+
* after, and the model calls of this turn that wrote the summary (`purpose: "summary"`), in
|
|
11
|
+
* order. Core checks them and writes one `context.compacted` from them and the last call.
|
|
12
|
+
*/
|
|
13
|
+
export declare const CompactionFactsSchema: z.ZodObject<{
|
|
14
|
+
trigger: z.ZodEnum<{
|
|
15
|
+
overflow: "overflow";
|
|
16
|
+
threshold: "threshold";
|
|
17
|
+
}>;
|
|
18
|
+
tokensBefore: z.ZodNumber;
|
|
19
|
+
tokensAfter: z.ZodNumber;
|
|
20
|
+
summaryEffectIds: z.ZodArray<z.ZodString>;
|
|
21
|
+
}, z.core.$strict>;
|
|
22
|
+
/**
|
|
23
|
+
* The payload of one `transcript.updated` event: keep the first `keep` entries, append `entries`,
|
|
24
|
+
* giving `length` entries. A harness that replaced older history with a summary marks the edit
|
|
25
|
+
* `kind: "compaction"` with its facts (the first chunk of the edit; the record never parses the
|
|
26
|
+
* entries to find one).
|
|
27
|
+
*/
|
|
28
|
+
export declare const TranscriptUpdateSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
10
29
|
keep: z.ZodNumber;
|
|
11
30
|
entries: z.ZodArray<z.ZodUnknown>;
|
|
12
31
|
length: z.ZodNumber;
|
|
13
|
-
}, z.core.$strict
|
|
32
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
33
|
+
keep: z.ZodNumber;
|
|
34
|
+
entries: z.ZodArray<z.ZodUnknown>;
|
|
35
|
+
length: z.ZodNumber;
|
|
36
|
+
kind: z.ZodLiteral<"compaction">;
|
|
37
|
+
compaction: z.ZodObject<{
|
|
38
|
+
trigger: z.ZodEnum<{
|
|
39
|
+
overflow: "overflow";
|
|
40
|
+
threshold: "threshold";
|
|
41
|
+
}>;
|
|
42
|
+
tokensBefore: z.ZodNumber;
|
|
43
|
+
tokensAfter: z.ZodNumber;
|
|
44
|
+
summaryEffectIds: z.ZodArray<z.ZodString>;
|
|
45
|
+
}, z.core.$strict>;
|
|
46
|
+
}, z.core.$strict>]>;
|
|
14
47
|
export declare const FrameSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
15
48
|
t: z.ZodLiteral<"req">;
|
|
16
49
|
id: z.ZodNumber;
|
|
@@ -30,6 +63,8 @@ export declare const FrameSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
30
63
|
effect_drift: "effect_drift";
|
|
31
64
|
internal: "internal";
|
|
32
65
|
invalid: "invalid";
|
|
66
|
+
limit_exceeded: "limit_exceeded";
|
|
67
|
+
not_found: "not_found";
|
|
33
68
|
ownership_lost: "ownership_lost";
|
|
34
69
|
run_not_held: "run_not_held";
|
|
35
70
|
turn_cancelled: "turn_cancelled";
|
|
@@ -47,12 +82,63 @@ export declare const FrameSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
47
82
|
}, z.core.$strict>, z.ZodObject<{
|
|
48
83
|
t: z.ZodLiteral<"ping">;
|
|
49
84
|
}, z.core.$strict>]>;
|
|
85
|
+
/**
|
|
86
|
+
* What a tool call runs (protocol 15). The record routes a call by its target, never by the
|
|
87
|
+
* tool's name: the name the model used (`toolName`) is for display, and no name is reserved.
|
|
88
|
+
*
|
|
89
|
+
* - `mcp`: the tool `tool` (its own name on the server) of the MCP server `server` that the call's
|
|
90
|
+
* agent declares (`effect.agent`, absent for the root), as the session discovered it
|
|
91
|
+
* (`turn.start.mcp`); the harness calls it through the Tool Gate. The record refuses one the
|
|
92
|
+
* session did not discover (`tool.unknown`) or the turn disables (`tool.disabled`).
|
|
93
|
+
* - `http`: the HTTP tool the agent declares as `tool`; the harness calls it through the Tool Gate.
|
|
94
|
+
* - `sandbox`: one of the sandbox operations (`bash`, `read`, `write`, `edit`, `grep`, `glob`,
|
|
95
|
+
* named by `toolName`) in the session's sandbox, which the harness runs. Only a session with a
|
|
96
|
+
* sandbox runs one.
|
|
97
|
+
* - `harness`: a tool the harness runs in its own process over the Harness API's seams, such as
|
|
98
|
+
* our engine's `load_skill`, `read_artifact` and `tool_search`. Its egress gate is its only
|
|
99
|
+
* control.
|
|
100
|
+
*
|
|
101
|
+
* Tool policy and approval key on the identity (`server` and `tool`, or the HTTP tool's declared
|
|
102
|
+
* name), never on the model's name. A tool call without a target, or with one the session lacks,
|
|
103
|
+
* fails to the model (`tool.unavailable`), and nothing runs.
|
|
104
|
+
*/
|
|
105
|
+
export declare const EffectTargetSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
106
|
+
kind: z.ZodLiteral<"mcp">;
|
|
107
|
+
server: z.ZodString;
|
|
108
|
+
tool: z.ZodString;
|
|
109
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
110
|
+
kind: z.ZodLiteral<"http">;
|
|
111
|
+
tool: z.ZodString;
|
|
112
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
113
|
+
kind: z.ZodLiteral<"sandbox">;
|
|
114
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
115
|
+
kind: z.ZodLiteral<"harness">;
|
|
116
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
117
|
+
kind: z.ZodLiteral<"runtime">;
|
|
118
|
+
operation: z.ZodEnum<{
|
|
119
|
+
memory: "memory";
|
|
120
|
+
schedule_wake: "schedule_wake";
|
|
121
|
+
}>;
|
|
122
|
+
}, z.core.$strict>], "kind">;
|
|
50
123
|
/**
|
|
51
124
|
* One effect the engine asks for: a `HostEffect`, by structure. Model intents carry no `input`.
|
|
52
125
|
* `context` carries the ids the record derives its events from: a model effect's
|
|
53
126
|
* `invocationId` (the step), and a tool effect's `callId` (the model's tool call id) and
|
|
54
127
|
* `invocationId`; without them the call is journaled but no `tool.completed` is written. A
|
|
55
|
-
* tool effect may name its step (`stepId`)
|
|
128
|
+
* tool effect may name its step (`stepId`).
|
|
129
|
+
*
|
|
130
|
+
* A model effect that writes a compaction's summary says so (`purpose: "summary"`): it is no
|
|
131
|
+
* assistant message, and the compaction edit that follows names it (`CompactionFactsSchema`).
|
|
132
|
+
*
|
|
133
|
+
* An agent's tool effect names its `target` (what runs it: for an MCP or HTTP tool, its
|
|
134
|
+
* identity) beside the name the model used (`toolName`, for display), and may name the `skill` it
|
|
135
|
+
* ran (a skill tool's skill, or a sandbox call in a skill's folder): the record keeps the skill,
|
|
136
|
+
* and the plugin that brought it, when the agent has that skill. The target is in the request
|
|
137
|
+
* hash, so a replay that names another tool is `effect_drift`.
|
|
138
|
+
*
|
|
139
|
+
* Each outcome the harness reports is one record entry: past `turn.start.limits.recordEntryBytes`
|
|
140
|
+
* it is refused (`limit_exceeded`), so a harness stores a large tool result with
|
|
141
|
+
* `artifact.write` and reports a preview.
|
|
56
142
|
*
|
|
57
143
|
* `requestHash` (`effectRequestHash`) covers the whole request: for a model effect, the intent
|
|
58
144
|
* with `input` set to its `ModelCall`, though the intent is sent without it. A replay that asks
|
|
@@ -76,6 +162,26 @@ export declare const EffectIntentSchema: z.ZodObject<{
|
|
|
76
162
|
delegationId: z.ZodOptional<z.ZodString>;
|
|
77
163
|
}, z.core.$strict>>;
|
|
78
164
|
toolName: z.ZodOptional<z.ZodString>;
|
|
165
|
+
target: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
166
|
+
kind: z.ZodLiteral<"mcp">;
|
|
167
|
+
server: z.ZodString;
|
|
168
|
+
tool: z.ZodString;
|
|
169
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
170
|
+
kind: z.ZodLiteral<"http">;
|
|
171
|
+
tool: z.ZodString;
|
|
172
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
173
|
+
kind: z.ZodLiteral<"sandbox">;
|
|
174
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
175
|
+
kind: z.ZodLiteral<"harness">;
|
|
176
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
177
|
+
kind: z.ZodLiteral<"runtime">;
|
|
178
|
+
operation: z.ZodEnum<{
|
|
179
|
+
memory: "memory";
|
|
180
|
+
schedule_wake: "schedule_wake";
|
|
181
|
+
}>;
|
|
182
|
+
}, z.core.$strict>], "kind">>;
|
|
183
|
+
skill: z.ZodOptional<z.ZodString>;
|
|
184
|
+
purpose: z.ZodOptional<z.ZodLiteral<"summary">>;
|
|
79
185
|
path: z.ZodOptional<z.ZodString>;
|
|
80
186
|
key: z.ZodOptional<z.ZodString>;
|
|
81
187
|
iterations: z.ZodOptional<z.ZodString>;
|
|
@@ -91,6 +197,24 @@ export declare const RecordedOutcomeSchema: z.ZodObject<{
|
|
|
91
197
|
statePatch: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
92
198
|
}, z.core.$strict>;
|
|
93
199
|
}, z.core.$strict>;
|
|
200
|
+
/**
|
|
201
|
+
* An artifact as the artifact seam shows it to a harness: one version of a file (or a folder,
|
|
202
|
+
* whose bytes the seam does not serve). `tenantWide` marks a Tenant-wide artifact (no session),
|
|
203
|
+
* which the run reads only because the session's messages named it.
|
|
204
|
+
*/
|
|
205
|
+
export declare const ArtifactMetaSchema: z.ZodObject<{
|
|
206
|
+
artifactId: z.ZodString;
|
|
207
|
+
kind: z.ZodEnum<{
|
|
208
|
+
file: "file";
|
|
209
|
+
folder: "folder";
|
|
210
|
+
}>;
|
|
211
|
+
name: z.ZodString;
|
|
212
|
+
version: z.ZodNumber;
|
|
213
|
+
contentType: z.ZodString;
|
|
214
|
+
size: z.ZodNumber;
|
|
215
|
+
sha256: z.ZodString;
|
|
216
|
+
tenantWide: z.ZodBoolean;
|
|
217
|
+
}, z.core.$strict>;
|
|
94
218
|
/** A workspace's compute record, as the harness keeps it. */
|
|
95
219
|
export declare const WorkspaceRecordSchema: z.ZodObject<{
|
|
96
220
|
key: z.ZodString;
|
|
@@ -130,40 +254,6 @@ export declare const WorkspaceCallSchema: z.ZodObject<{
|
|
|
130
254
|
}>;
|
|
131
255
|
input: z.ZodUnknown;
|
|
132
256
|
}, z.core.$strict>;
|
|
133
|
-
/**
|
|
134
|
-
* A file of a workspace read as bytes (`save_artifact`, F8.1), at most `maxBytes`. The answer is
|
|
135
|
-
* `{kind: "read", path, base64}`, `{kind: "missing", path}` or a failed tool outcome.
|
|
136
|
-
*/
|
|
137
|
-
export declare const WorkspaceBytesCallSchema: z.ZodObject<{
|
|
138
|
-
session: z.ZodObject<{
|
|
139
|
-
ownerId: z.ZodString;
|
|
140
|
-
environmentId: z.ZodOptional<z.ZodString>;
|
|
141
|
-
activeTurnId: z.ZodNullable<z.ZodString>;
|
|
142
|
-
}, z.core.$strict>;
|
|
143
|
-
spec: z.ZodUnknown;
|
|
144
|
-
bytes: z.ZodObject<{
|
|
145
|
-
path: z.ZodString;
|
|
146
|
-
maxBytes: z.ZodNumber;
|
|
147
|
-
}, z.core.$strict>;
|
|
148
|
-
}, z.core.$strict>;
|
|
149
|
-
/**
|
|
150
|
-
* The regular files under a directory of a workspace, recursively, at most `maxEntries + 1`
|
|
151
|
-
* (the turn-end export, F8.2). The answer is `{kind: "listed", path, listing: {entries,
|
|
152
|
-
* truncated}}`, `{kind: "missing", path}` (no sandbox yet, or not a directory) or a failed tool
|
|
153
|
-
* outcome.
|
|
154
|
-
*/
|
|
155
|
-
export declare const WorkspaceListCallSchema: z.ZodObject<{
|
|
156
|
-
session: z.ZodObject<{
|
|
157
|
-
ownerId: z.ZodString;
|
|
158
|
-
environmentId: z.ZodOptional<z.ZodString>;
|
|
159
|
-
activeTurnId: z.ZodNullable<z.ZodString>;
|
|
160
|
-
}, z.core.$strict>;
|
|
161
|
-
spec: z.ZodUnknown;
|
|
162
|
-
list: z.ZodObject<{
|
|
163
|
-
dir: z.ZodString;
|
|
164
|
-
maxEntries: z.ZodNumber;
|
|
165
|
-
}, z.core.$strict>;
|
|
166
|
-
}, z.core.$strict>;
|
|
167
257
|
/**
|
|
168
258
|
* One operation on the disk of a workspace (R2d step 3): `list` its entries (files with mode and
|
|
169
259
|
* modification time, links, empty directories; paths relative to the volume, `workspace/…` and
|
|
@@ -245,29 +335,6 @@ export declare const RunGrantSchema: z.ZodObject<{
|
|
|
245
335
|
/** Where a harness sends the session's tool calls. */
|
|
246
336
|
export declare const RunRoutingSchema: z.ZodObject<{
|
|
247
337
|
rootManifest: z.ZodType<object, unknown, z.core.$ZodTypeInternals<object, unknown>>;
|
|
248
|
-
mcpSnapshot: z.ZodOptional<z.ZodObject<{
|
|
249
|
-
snapshotSchemaVersion: z.ZodLiteral<1>;
|
|
250
|
-
manifestHash: z.ZodString;
|
|
251
|
-
mcpTools: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
252
|
-
agentId: z.ZodOptional<z.ZodString>;
|
|
253
|
-
serverName: z.ZodString;
|
|
254
|
-
serverToolName: z.ZodString;
|
|
255
|
-
name: z.ZodString;
|
|
256
|
-
description: z.ZodOptional<z.ZodString>;
|
|
257
|
-
inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
258
|
-
outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
259
|
-
annotations: z.ZodOptional<z.ZodObject<{
|
|
260
|
-
readOnlyHint: z.ZodOptional<z.ZodBoolean>;
|
|
261
|
-
idempotentHint: z.ZodOptional<z.ZodBoolean>;
|
|
262
|
-
}, z.core.$strip>>;
|
|
263
|
-
deferred: z.ZodOptional<z.ZodLiteral<true>>;
|
|
264
|
-
}, z.core.$strip>>>;
|
|
265
|
-
servers: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
266
|
-
agentId: z.ZodOptional<z.ZodString>;
|
|
267
|
-
serverName: z.ZodString;
|
|
268
|
-
instructions: z.ZodString;
|
|
269
|
-
}, z.core.$strip>>>>;
|
|
270
|
-
}, z.core.$strip>>;
|
|
271
338
|
sandbox: z.ZodOptional<z.ZodObject<{
|
|
272
339
|
ownerId: z.ZodString;
|
|
273
340
|
environmentId: z.ZodOptional<z.ZodString>;
|
|
@@ -278,10 +345,12 @@ export declare const RunRoutingSchema: z.ZodObject<{
|
|
|
278
345
|
/**
|
|
279
346
|
* The fields of `TurnStart.checkpoint` a harness reads (R4.2); the rest are our engine's. An
|
|
280
347
|
* agent turn's `input` is the turn's message: a string, `{text, metadata?}`, `{content,
|
|
281
|
-
* metadata?}` with user content parts, `{kind: "
|
|
282
|
-
*
|
|
348
|
+
* metadata?}` with user content parts, `{kind: "messages", messages}` for messages that waited in
|
|
349
|
+
* the session's queue (protocol 17: each one of the shapes before, each its own user message, in
|
|
350
|
+
* order), `{kind: "continue"}` for the next segment of a yielded turn, or an approval or response
|
|
351
|
+
* event. Effect ids are prefixed `<turnId>:<segment>:`
|
|
283
352
|
* (`effectIdOf`), and every intent carries `manifestHash`. `state` is the harness's own, as its
|
|
284
|
-
* last output left it: core stores it unread (at most `
|
|
353
|
+
* last output left it: core stores it unread (at most `limits.harnessStateBytes` for a harness
|
|
285
354
|
* other than ours) and folds the transcript every segment, whatever the state holds. A model
|
|
286
355
|
* call's `executionId` is the session id.
|
|
287
356
|
*/
|
|
@@ -299,15 +368,62 @@ export declare const TraceContextSchema: z.ZodObject<{
|
|
|
299
368
|
tracestate: z.ZodOptional<z.ZodString>;
|
|
300
369
|
}, z.core.$strict>;
|
|
301
370
|
/**
|
|
302
|
-
*
|
|
303
|
-
*
|
|
304
|
-
*
|
|
305
|
-
*
|
|
371
|
+
* The model a turn's calls use when they name none (protocol 15): the Tenant's model, as the
|
|
372
|
+
* Model Gate resolves it. `provider` and `id` name it (`fixture` for the fixture model); `inputs`
|
|
373
|
+
* is what it reads, text first, in `MODEL_INPUTS` order (its catalog's inputs and the operator's
|
|
374
|
+
* additions); `contextWindow` and `maxOutputTokens` are in tokens. A harness decides from it how
|
|
375
|
+
* each file reaches the model; the gate refuses a part the model cannot take
|
|
376
|
+
* (`unsupported_input`).
|
|
306
377
|
*/
|
|
307
|
-
export declare const
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
378
|
+
export declare const ModelDescriptorSchema: z.ZodObject<{
|
|
379
|
+
provider: z.ZodString;
|
|
380
|
+
id: z.ZodString;
|
|
381
|
+
inputs: z.ZodArray<z.ZodEnum<{
|
|
382
|
+
audio: "audio";
|
|
383
|
+
image: "image";
|
|
384
|
+
office: "office";
|
|
385
|
+
pdf: "pdf";
|
|
386
|
+
text: "text";
|
|
387
|
+
video: "video";
|
|
388
|
+
}>>;
|
|
389
|
+
contextWindow: z.ZodNumber;
|
|
390
|
+
maxOutputTokens: z.ZodNumber;
|
|
391
|
+
reasoning: z.ZodOptional<z.ZodBoolean>;
|
|
392
|
+
}, z.core.$strict>;
|
|
393
|
+
/**
|
|
394
|
+
* The Agent a turn runs on (Harness API 5, protocol 16): its id and kind and, when it has a
|
|
395
|
+
* sandbox, the workspace its commands start in. A harness writes the model's instructions and
|
|
396
|
+
* defines its sandbox tools from it; the sandbox's spec is the routing's (`routing.sandbox.spec`).
|
|
397
|
+
* The Agent's runtime section never reaches the harness.
|
|
398
|
+
*/
|
|
399
|
+
export declare const TurnAgentSchema: z.ZodObject<{
|
|
400
|
+
id: z.ZodString;
|
|
401
|
+
kind: z.ZodEnum<{
|
|
402
|
+
none: "none";
|
|
403
|
+
pod: "pod";
|
|
404
|
+
virtual: "virtual";
|
|
405
|
+
}>;
|
|
406
|
+
sandbox: z.ZodOptional<z.ZodObject<{
|
|
407
|
+
workspace: z.ZodString;
|
|
408
|
+
}, z.core.$strict>>;
|
|
409
|
+
selfWake: z.ZodOptional<z.ZodBoolean>;
|
|
410
|
+
}, z.core.$strict>;
|
|
411
|
+
/**
|
|
412
|
+
* The Agent's memory as a turn starts (track T5, D72), present when the version its session runs
|
|
413
|
+
* sets `harness.memory`: its access in every turn, the agent's own `instructions`, and the index a
|
|
414
|
+
* harness pins in the session (one line per memory, newest first, with its description, within
|
|
415
|
+
* the Runtime limits `memoryIndexLines` and `memoryIndexBytes`; `truncated` when some were left
|
|
416
|
+
* out). A harness offers the `memory` tool (a `runtime` effect, operation `memory`), view only for
|
|
417
|
+
* `read_only` and for its sub-agents.
|
|
418
|
+
*/
|
|
419
|
+
export declare const TurnMemorySchema: z.ZodObject<{
|
|
420
|
+
access: z.ZodEnum<{
|
|
421
|
+
read_only: "read_only";
|
|
422
|
+
read_write: "read_write";
|
|
423
|
+
}>;
|
|
424
|
+
instructions: z.ZodOptional<z.ZodString>;
|
|
425
|
+
index: z.ZodString;
|
|
426
|
+
truncated: z.ZodBoolean;
|
|
311
427
|
}, z.core.$strict>;
|
|
312
428
|
/** What a run starts from: `turn.start` (message, continue, resume) or `approval.answer`. */
|
|
313
429
|
export declare const TurnStartSchema: z.ZodObject<{
|
|
@@ -320,8 +436,37 @@ export declare const TurnStartSchema: z.ZodObject<{
|
|
|
320
436
|
flow: "flow";
|
|
321
437
|
}>;
|
|
322
438
|
manifest: z.ZodType<object, unknown, z.core.$ZodTypeInternals<object, unknown>>;
|
|
439
|
+
definition: z.ZodOptional<z.ZodObject<{
|
|
440
|
+
name: z.ZodString;
|
|
441
|
+
version: z.ZodNumber;
|
|
442
|
+
}, z.core.$strict>>;
|
|
443
|
+
loop: z.ZodOptional<z.ZodType<object, unknown, z.core.$ZodTypeInternals<object, unknown>>>;
|
|
444
|
+
memory: z.ZodOptional<z.ZodObject<{
|
|
445
|
+
access: z.ZodEnum<{
|
|
446
|
+
read_only: "read_only";
|
|
447
|
+
read_write: "read_write";
|
|
448
|
+
}>;
|
|
449
|
+
instructions: z.ZodOptional<z.ZodString>;
|
|
450
|
+
index: z.ZodString;
|
|
451
|
+
truncated: z.ZodBoolean;
|
|
452
|
+
}, z.core.$strict>>;
|
|
323
453
|
checkpoint: z.ZodType<object, unknown, z.core.$ZodTypeInternals<object, unknown>>;
|
|
324
|
-
|
|
454
|
+
mcp: z.ZodOptional<z.ZodObject<{
|
|
455
|
+
servers: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
456
|
+
agentId: z.ZodOptional<z.ZodString>;
|
|
457
|
+
name: z.ZodString;
|
|
458
|
+
instructions: z.ZodOptional<z.ZodString>;
|
|
459
|
+
tools: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
460
|
+
name: z.ZodString;
|
|
461
|
+
description: z.ZodOptional<z.ZodString>;
|
|
462
|
+
inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
463
|
+
outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
464
|
+
annotations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
465
|
+
enabled: z.ZodBoolean;
|
|
466
|
+
deferred: z.ZodOptional<z.ZodBoolean>;
|
|
467
|
+
}, z.core.$strip>>>;
|
|
468
|
+
}, z.core.$strip>>>;
|
|
469
|
+
}, z.core.$strip>>;
|
|
325
470
|
outcomes: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
326
471
|
effectId: z.ZodString;
|
|
327
472
|
requestHash: z.ZodString;
|
|
@@ -343,29 +488,6 @@ export declare const TurnStartSchema: z.ZodObject<{
|
|
|
343
488
|
}, z.core.$strict>;
|
|
344
489
|
routing: z.ZodObject<{
|
|
345
490
|
rootManifest: z.ZodType<object, unknown, z.core.$ZodTypeInternals<object, unknown>>;
|
|
346
|
-
mcpSnapshot: z.ZodOptional<z.ZodObject<{
|
|
347
|
-
snapshotSchemaVersion: z.ZodLiteral<1>;
|
|
348
|
-
manifestHash: z.ZodString;
|
|
349
|
-
mcpTools: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
350
|
-
agentId: z.ZodOptional<z.ZodString>;
|
|
351
|
-
serverName: z.ZodString;
|
|
352
|
-
serverToolName: z.ZodString;
|
|
353
|
-
name: z.ZodString;
|
|
354
|
-
description: z.ZodOptional<z.ZodString>;
|
|
355
|
-
inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
356
|
-
outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
357
|
-
annotations: z.ZodOptional<z.ZodObject<{
|
|
358
|
-
readOnlyHint: z.ZodOptional<z.ZodBoolean>;
|
|
359
|
-
idempotentHint: z.ZodOptional<z.ZodBoolean>;
|
|
360
|
-
}, z.core.$strip>>;
|
|
361
|
-
deferred: z.ZodOptional<z.ZodLiteral<true>>;
|
|
362
|
-
}, z.core.$strip>>>;
|
|
363
|
-
servers: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
364
|
-
agentId: z.ZodOptional<z.ZodString>;
|
|
365
|
-
serverName: z.ZodString;
|
|
366
|
-
instructions: z.ZodString;
|
|
367
|
-
}, z.core.$strip>>>>;
|
|
368
|
-
}, z.core.$strip>>;
|
|
369
491
|
sandbox: z.ZodOptional<z.ZodObject<{
|
|
370
492
|
ownerId: z.ZodString;
|
|
371
493
|
environmentId: z.ZodOptional<z.ZodString>;
|
|
@@ -377,6 +499,42 @@ export declare const TurnStartSchema: z.ZodObject<{
|
|
|
377
499
|
traceparent: z.ZodString;
|
|
378
500
|
tracestate: z.ZodOptional<z.ZodString>;
|
|
379
501
|
}, z.core.$strict>>;
|
|
502
|
+
limits: z.ZodObject<{
|
|
503
|
+
recordEntryBytes: z.ZodNumber;
|
|
504
|
+
modelCallBytes: z.ZodNumber;
|
|
505
|
+
modelFileBytes: z.ZodNumber;
|
|
506
|
+
toolAnswerBytes: z.ZodNumber;
|
|
507
|
+
harnessStateBytes: z.ZodNumber;
|
|
508
|
+
chunkBytes: z.ZodNumber;
|
|
509
|
+
folderEntries: z.ZodNumber;
|
|
510
|
+
}, z.core.$strip>;
|
|
511
|
+
model: z.ZodOptional<z.ZodObject<{
|
|
512
|
+
provider: z.ZodString;
|
|
513
|
+
id: z.ZodString;
|
|
514
|
+
inputs: z.ZodArray<z.ZodEnum<{
|
|
515
|
+
audio: "audio";
|
|
516
|
+
image: "image";
|
|
517
|
+
office: "office";
|
|
518
|
+
pdf: "pdf";
|
|
519
|
+
text: "text";
|
|
520
|
+
video: "video";
|
|
521
|
+
}>>;
|
|
522
|
+
contextWindow: z.ZodNumber;
|
|
523
|
+
maxOutputTokens: z.ZodNumber;
|
|
524
|
+
reasoning: z.ZodOptional<z.ZodBoolean>;
|
|
525
|
+
}, z.core.$strict>>;
|
|
526
|
+
agent: z.ZodOptional<z.ZodObject<{
|
|
527
|
+
id: z.ZodString;
|
|
528
|
+
kind: z.ZodEnum<{
|
|
529
|
+
none: "none";
|
|
530
|
+
pod: "pod";
|
|
531
|
+
virtual: "virtual";
|
|
532
|
+
}>;
|
|
533
|
+
sandbox: z.ZodOptional<z.ZodObject<{
|
|
534
|
+
workspace: z.ZodString;
|
|
535
|
+
}, z.core.$strict>>;
|
|
536
|
+
selfWake: z.ZodOptional<z.ZodBoolean>;
|
|
537
|
+
}, z.core.$strict>>;
|
|
380
538
|
}, z.core.$strict>;
|
|
381
539
|
/**
|
|
382
540
|
* A segment's end. `state` is the harness's state for the next segment (our engine's has no
|
|
@@ -405,11 +563,25 @@ export declare const TurnOutputSchema: z.ZodObject<{
|
|
|
405
563
|
error: z.ZodOptional<z.ZodUnknown>;
|
|
406
564
|
effectIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
407
565
|
cancelEffectIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
408
|
-
transcript: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
566
|
+
transcript: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
409
567
|
keep: z.ZodNumber;
|
|
410
568
|
entries: z.ZodArray<z.ZodUnknown>;
|
|
411
569
|
length: z.ZodNumber;
|
|
412
|
-
}, z.core.$strict
|
|
570
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
571
|
+
keep: z.ZodNumber;
|
|
572
|
+
entries: z.ZodArray<z.ZodUnknown>;
|
|
573
|
+
length: z.ZodNumber;
|
|
574
|
+
kind: z.ZodLiteral<"compaction">;
|
|
575
|
+
compaction: z.ZodObject<{
|
|
576
|
+
trigger: z.ZodEnum<{
|
|
577
|
+
overflow: "overflow";
|
|
578
|
+
threshold: "threshold";
|
|
579
|
+
}>;
|
|
580
|
+
tokensBefore: z.ZodNumber;
|
|
581
|
+
tokensAfter: z.ZodNumber;
|
|
582
|
+
summaryEffectIds: z.ZodArray<z.ZodString>;
|
|
583
|
+
}, z.core.$strict>;
|
|
584
|
+
}, z.core.$strict>]>>>>;
|
|
413
585
|
thrown: z.ZodOptional<z.ZodObject<{
|
|
414
586
|
code: z.ZodOptional<z.ZodString>;
|
|
415
587
|
message: z.ZodString;
|
|
@@ -471,15 +643,10 @@ export declare const harnessRequests: {
|
|
|
471
643
|
version: z.ZodString;
|
|
472
644
|
features: z.ZodObject<{
|
|
473
645
|
workspace: z.ZodOptional<z.ZodUnknown>;
|
|
474
|
-
tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
475
|
-
name: z.ZodString;
|
|
476
|
-
description: z.ZodOptional<z.ZodString>;
|
|
477
|
-
inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
478
|
-
}, z.core.$strict>>>;
|
|
479
646
|
}, z.core.$strict>;
|
|
480
647
|
}, z.core.$strict>;
|
|
481
648
|
result: z.ZodObject<{
|
|
482
|
-
api: z.ZodLiteral<
|
|
649
|
+
api: z.ZodLiteral<5>;
|
|
483
650
|
tenantId: z.ZodString;
|
|
484
651
|
sandbox: z.ZodObject<{
|
|
485
652
|
backend: z.ZodNullable<z.ZodString>;
|
|
@@ -510,8 +677,37 @@ export declare const harnessRequests: {
|
|
|
510
677
|
flow: "flow";
|
|
511
678
|
}>;
|
|
512
679
|
manifest: z.ZodType<object, unknown, z.core.$ZodTypeInternals<object, unknown>>;
|
|
680
|
+
definition: z.ZodOptional<z.ZodObject<{
|
|
681
|
+
name: z.ZodString;
|
|
682
|
+
version: z.ZodNumber;
|
|
683
|
+
}, z.core.$strict>>;
|
|
684
|
+
loop: z.ZodOptional<z.ZodType<object, unknown, z.core.$ZodTypeInternals<object, unknown>>>;
|
|
685
|
+
memory: z.ZodOptional<z.ZodObject<{
|
|
686
|
+
access: z.ZodEnum<{
|
|
687
|
+
read_only: "read_only";
|
|
688
|
+
read_write: "read_write";
|
|
689
|
+
}>;
|
|
690
|
+
instructions: z.ZodOptional<z.ZodString>;
|
|
691
|
+
index: z.ZodString;
|
|
692
|
+
truncated: z.ZodBoolean;
|
|
693
|
+
}, z.core.$strict>>;
|
|
513
694
|
checkpoint: z.ZodType<object, unknown, z.core.$ZodTypeInternals<object, unknown>>;
|
|
514
|
-
|
|
695
|
+
mcp: z.ZodOptional<z.ZodObject<{
|
|
696
|
+
servers: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
697
|
+
agentId: z.ZodOptional<z.ZodString>;
|
|
698
|
+
name: z.ZodString;
|
|
699
|
+
instructions: z.ZodOptional<z.ZodString>;
|
|
700
|
+
tools: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
701
|
+
name: z.ZodString;
|
|
702
|
+
description: z.ZodOptional<z.ZodString>;
|
|
703
|
+
inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
704
|
+
outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
705
|
+
annotations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
706
|
+
enabled: z.ZodBoolean;
|
|
707
|
+
deferred: z.ZodOptional<z.ZodBoolean>;
|
|
708
|
+
}, z.core.$strip>>>;
|
|
709
|
+
}, z.core.$strip>>>;
|
|
710
|
+
}, z.core.$strip>>;
|
|
515
711
|
outcomes: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
516
712
|
effectId: z.ZodString;
|
|
517
713
|
requestHash: z.ZodString;
|
|
@@ -533,29 +729,6 @@ export declare const harnessRequests: {
|
|
|
533
729
|
}, z.core.$strict>;
|
|
534
730
|
routing: z.ZodObject<{
|
|
535
731
|
rootManifest: z.ZodType<object, unknown, z.core.$ZodTypeInternals<object, unknown>>;
|
|
536
|
-
mcpSnapshot: z.ZodOptional<z.ZodObject<{
|
|
537
|
-
snapshotSchemaVersion: z.ZodLiteral<1>;
|
|
538
|
-
manifestHash: z.ZodString;
|
|
539
|
-
mcpTools: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
540
|
-
agentId: z.ZodOptional<z.ZodString>;
|
|
541
|
-
serverName: z.ZodString;
|
|
542
|
-
serverToolName: z.ZodString;
|
|
543
|
-
name: z.ZodString;
|
|
544
|
-
description: z.ZodOptional<z.ZodString>;
|
|
545
|
-
inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
546
|
-
outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
547
|
-
annotations: z.ZodOptional<z.ZodObject<{
|
|
548
|
-
readOnlyHint: z.ZodOptional<z.ZodBoolean>;
|
|
549
|
-
idempotentHint: z.ZodOptional<z.ZodBoolean>;
|
|
550
|
-
}, z.core.$strip>>;
|
|
551
|
-
deferred: z.ZodOptional<z.ZodLiteral<true>>;
|
|
552
|
-
}, z.core.$strip>>>;
|
|
553
|
-
servers: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
554
|
-
agentId: z.ZodOptional<z.ZodString>;
|
|
555
|
-
serverName: z.ZodString;
|
|
556
|
-
instructions: z.ZodString;
|
|
557
|
-
}, z.core.$strip>>>>;
|
|
558
|
-
}, z.core.$strip>>;
|
|
559
732
|
sandbox: z.ZodOptional<z.ZodObject<{
|
|
560
733
|
ownerId: z.ZodString;
|
|
561
734
|
environmentId: z.ZodOptional<z.ZodString>;
|
|
@@ -567,6 +740,42 @@ export declare const harnessRequests: {
|
|
|
567
740
|
traceparent: z.ZodString;
|
|
568
741
|
tracestate: z.ZodOptional<z.ZodString>;
|
|
569
742
|
}, z.core.$strict>>;
|
|
743
|
+
limits: z.ZodObject<{
|
|
744
|
+
recordEntryBytes: z.ZodNumber;
|
|
745
|
+
modelCallBytes: z.ZodNumber;
|
|
746
|
+
modelFileBytes: z.ZodNumber;
|
|
747
|
+
toolAnswerBytes: z.ZodNumber;
|
|
748
|
+
harnessStateBytes: z.ZodNumber;
|
|
749
|
+
chunkBytes: z.ZodNumber;
|
|
750
|
+
folderEntries: z.ZodNumber;
|
|
751
|
+
}, z.core.$strip>;
|
|
752
|
+
model: z.ZodOptional<z.ZodObject<{
|
|
753
|
+
provider: z.ZodString;
|
|
754
|
+
id: z.ZodString;
|
|
755
|
+
inputs: z.ZodArray<z.ZodEnum<{
|
|
756
|
+
audio: "audio";
|
|
757
|
+
image: "image";
|
|
758
|
+
office: "office";
|
|
759
|
+
pdf: "pdf";
|
|
760
|
+
text: "text";
|
|
761
|
+
video: "video";
|
|
762
|
+
}>>;
|
|
763
|
+
contextWindow: z.ZodNumber;
|
|
764
|
+
maxOutputTokens: z.ZodNumber;
|
|
765
|
+
reasoning: z.ZodOptional<z.ZodBoolean>;
|
|
766
|
+
}, z.core.$strict>>;
|
|
767
|
+
agent: z.ZodOptional<z.ZodObject<{
|
|
768
|
+
id: z.ZodString;
|
|
769
|
+
kind: z.ZodEnum<{
|
|
770
|
+
none: "none";
|
|
771
|
+
pod: "pod";
|
|
772
|
+
virtual: "virtual";
|
|
773
|
+
}>;
|
|
774
|
+
sandbox: z.ZodOptional<z.ZodObject<{
|
|
775
|
+
workspace: z.ZodString;
|
|
776
|
+
}, z.core.$strict>>;
|
|
777
|
+
selfWake: z.ZodOptional<z.ZodBoolean>;
|
|
778
|
+
}, z.core.$strict>>;
|
|
570
779
|
}, z.core.$strict>;
|
|
571
780
|
}, z.core.$strict>;
|
|
572
781
|
};
|
|
@@ -614,6 +823,26 @@ export declare const harnessRequests: {
|
|
|
614
823
|
delegationId: z.ZodOptional<z.ZodString>;
|
|
615
824
|
}, z.core.$strict>>;
|
|
616
825
|
toolName: z.ZodOptional<z.ZodString>;
|
|
826
|
+
target: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
827
|
+
kind: z.ZodLiteral<"mcp">;
|
|
828
|
+
server: z.ZodString;
|
|
829
|
+
tool: z.ZodString;
|
|
830
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
831
|
+
kind: z.ZodLiteral<"http">;
|
|
832
|
+
tool: z.ZodString;
|
|
833
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
834
|
+
kind: z.ZodLiteral<"sandbox">;
|
|
835
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
836
|
+
kind: z.ZodLiteral<"harness">;
|
|
837
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
838
|
+
kind: z.ZodLiteral<"runtime">;
|
|
839
|
+
operation: z.ZodEnum<{
|
|
840
|
+
memory: "memory";
|
|
841
|
+
schedule_wake: "schedule_wake";
|
|
842
|
+
}>;
|
|
843
|
+
}, z.core.$strict>], "kind">>;
|
|
844
|
+
skill: z.ZodOptional<z.ZodString>;
|
|
845
|
+
purpose: z.ZodOptional<z.ZodLiteral<"summary">>;
|
|
617
846
|
path: z.ZodOptional<z.ZodString>;
|
|
618
847
|
key: z.ZodOptional<z.ZodString>;
|
|
619
848
|
iterations: z.ZodOptional<z.ZodString>;
|
|
@@ -674,6 +903,8 @@ export declare const harnessRequests: {
|
|
|
674
903
|
sessionId: z.ZodString;
|
|
675
904
|
turnId: z.ZodNullable<z.ZodString>;
|
|
676
905
|
type: z.ZodEnum<{
|
|
906
|
+
"artifact.export.failed": "artifact.export.failed";
|
|
907
|
+
"artifact.export.skipped": "artifact.export.skipped";
|
|
677
908
|
"environment.exec": "environment.exec";
|
|
678
909
|
"environment.state": "environment.state";
|
|
679
910
|
}>;
|
|
@@ -699,70 +930,201 @@ export declare const harnessRequests: {
|
|
|
699
930
|
params: z.ZodObject<{
|
|
700
931
|
runId: z.ZodString;
|
|
701
932
|
snapshot: z.ZodOptional<z.ZodObject<{
|
|
702
|
-
snapshotSchemaVersion: z.ZodLiteral<
|
|
933
|
+
snapshotSchemaVersion: z.ZodLiteral<2>;
|
|
703
934
|
manifestHash: z.ZodString;
|
|
704
|
-
|
|
935
|
+
servers: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
705
936
|
agentId: z.ZodOptional<z.ZodString>;
|
|
706
|
-
serverName: z.ZodString;
|
|
707
|
-
serverToolName: z.ZodString;
|
|
708
937
|
name: z.ZodString;
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
938
|
+
instructions: z.ZodOptional<z.ZodString>;
|
|
939
|
+
tools: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
940
|
+
name: z.ZodString;
|
|
941
|
+
description: z.ZodOptional<z.ZodString>;
|
|
942
|
+
inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
943
|
+
outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
944
|
+
annotations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
945
|
+
}, z.core.$strip>>>;
|
|
717
946
|
}, z.core.$strip>>>;
|
|
718
|
-
servers: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
719
|
-
agentId: z.ZodOptional<z.ZodString>;
|
|
720
|
-
serverName: z.ZodString;
|
|
721
|
-
instructions: z.ZodString;
|
|
722
|
-
}, z.core.$strip>>>>;
|
|
723
947
|
}, z.core.$strip>>;
|
|
724
948
|
diagnostics: z.ZodArray<z.ZodUnknown>;
|
|
725
949
|
}, z.core.$strict>;
|
|
726
950
|
result: z.ZodObject<{
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
manifestHash: z.ZodString;
|
|
730
|
-
mcpTools: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
951
|
+
mcp: z.ZodOptional<z.ZodObject<{
|
|
952
|
+
servers: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
731
953
|
agentId: z.ZodOptional<z.ZodString>;
|
|
732
|
-
serverName: z.ZodString;
|
|
733
|
-
serverToolName: z.ZodString;
|
|
734
954
|
name: z.ZodString;
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
955
|
+
instructions: z.ZodOptional<z.ZodString>;
|
|
956
|
+
tools: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
957
|
+
name: z.ZodString;
|
|
958
|
+
description: z.ZodOptional<z.ZodString>;
|
|
959
|
+
inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
960
|
+
outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
961
|
+
annotations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
962
|
+
enabled: z.ZodBoolean;
|
|
963
|
+
deferred: z.ZodOptional<z.ZodBoolean>;
|
|
964
|
+
}, z.core.$strip>>>;
|
|
743
965
|
}, z.core.$strip>>>;
|
|
744
|
-
servers: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
745
|
-
agentId: z.ZodOptional<z.ZodString>;
|
|
746
|
-
serverName: z.ZodString;
|
|
747
|
-
instructions: z.ZodString;
|
|
748
|
-
}, z.core.$strip>>>>;
|
|
749
966
|
}, z.core.$strip>>;
|
|
750
|
-
sessionTools: z.ZodArray<z.ZodUnknown>;
|
|
751
967
|
}, z.core.$strict>;
|
|
752
968
|
};
|
|
753
969
|
/**
|
|
754
970
|
* A definition file's bytes, base64 (track R2 M4): one the run's definition names, for the
|
|
755
|
-
* skills its sandbox mounts.
|
|
971
|
+
* skills its sandbox mounts. With `offset` and `length` (at most `turn.start.limits.chunkBytes`,
|
|
972
|
+
* its default without `length`; more is `limit_exceeded`), only those bytes: fewer than
|
|
973
|
+
* `length`, none past the end, once the file ends. Without them the whole file, which must then
|
|
974
|
+
* fit one frame.
|
|
756
975
|
*/
|
|
757
976
|
"definition.file": {
|
|
758
977
|
params: z.ZodObject<{
|
|
759
978
|
runId: z.ZodString;
|
|
760
979
|
sha256: z.ZodString;
|
|
980
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
981
|
+
length: z.ZodOptional<z.ZodNumber>;
|
|
761
982
|
}, z.core.$strict>;
|
|
762
983
|
result: z.ZodObject<{
|
|
763
984
|
base64: z.ZodString;
|
|
764
985
|
}, z.core.$strict>;
|
|
765
986
|
};
|
|
987
|
+
/**
|
|
988
|
+
* An artifact the run's session may read (the artifact seam, protocol 15): one of the session's
|
|
989
|
+
* own, or a Tenant-wide one its messages named; anything else is `not_found`, alike. The answer
|
|
990
|
+
* carries the version's metadata (`version`, default the latest) and its bytes from `offset`
|
|
991
|
+
* (default 0), base64: at most `length`, which defaults to and is held to
|
|
992
|
+
* `turn.start.limits.chunkBytes`; `length: 0` asks for the metadata alone. `eof` says no bytes
|
|
993
|
+
* are left past this chunk. A folder answers its metadata, with no bytes.
|
|
994
|
+
*/
|
|
995
|
+
"artifact.read": {
|
|
996
|
+
params: z.ZodObject<{
|
|
997
|
+
runId: z.ZodString;
|
|
998
|
+
artifactId: z.ZodString;
|
|
999
|
+
version: z.ZodOptional<z.ZodNumber>;
|
|
1000
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
1001
|
+
length: z.ZodOptional<z.ZodNumber>;
|
|
1002
|
+
}, z.core.$strict>;
|
|
1003
|
+
result: z.ZodObject<{
|
|
1004
|
+
artifact: z.ZodObject<{
|
|
1005
|
+
artifactId: z.ZodString;
|
|
1006
|
+
kind: z.ZodEnum<{
|
|
1007
|
+
file: "file";
|
|
1008
|
+
folder: "folder";
|
|
1009
|
+
}>;
|
|
1010
|
+
name: z.ZodString;
|
|
1011
|
+
version: z.ZodNumber;
|
|
1012
|
+
contentType: z.ZodString;
|
|
1013
|
+
size: z.ZodNumber;
|
|
1014
|
+
sha256: z.ZodString;
|
|
1015
|
+
tenantWide: z.ZodBoolean;
|
|
1016
|
+
}, z.core.$strict>;
|
|
1017
|
+
offset: z.ZodNumber;
|
|
1018
|
+
base64: z.ZodString;
|
|
1019
|
+
eof: z.ZodBoolean;
|
|
1020
|
+
}, z.core.$strict>;
|
|
1021
|
+
};
|
|
1022
|
+
/**
|
|
1023
|
+
* Writes a file artifact of the run's session, or a new version of one of its own (the artifact
|
|
1024
|
+
* seam, protocol 15), streamed in chunks of at most `turn.start.limits.chunkBytes`:
|
|
1025
|
+
*
|
|
1026
|
+
* - `begin` opens an upload, answered `open` with its `uploadId` and the most bytes it may hold
|
|
1027
|
+
* now (`maxBytes`: the file limit, or the room left in a total). `key` makes the write
|
|
1028
|
+
* idempotent within the session: a key already written answers `written` with `created:
|
|
1029
|
+
* false` and the version it wrote. With `base64`, the whole body comes in the `begin`, which
|
|
1030
|
+
* then commits at once. `effectId` links the artifact to a tool call of the run's turn, whose
|
|
1031
|
+
* call id its `artifact.created` event carries.
|
|
1032
|
+
* - `chunk` sends the bytes from `offset`, which must equal the bytes received so far; a repeat
|
|
1033
|
+
* of the last chunk is answered as before.
|
|
1034
|
+
* - `commit` stores the version (`written`); `abort` drops the upload. An upload the run leaves
|
|
1035
|
+
* open ends with the run.
|
|
1036
|
+
*
|
|
1037
|
+
* With `kind: "folder"`, `begin` opens a folder version instead: a new version of the session's
|
|
1038
|
+
* folder `artifactId`, or with `sameName` of its newest folder named `name` (made when there is
|
|
1039
|
+
* none), or else a new folder. Its answer adds `maxFileBytes` (one file's limit) and
|
|
1040
|
+
* `maxEntries` (`limits.folderEntries`); `maxBytes` is the most its files may hold together.
|
|
1041
|
+
* Each file starts with `file` (its path in the folder, size and SHA-256, the whole body in
|
|
1042
|
+
* `base64` when it fits one chunk), and goes on with `chunk`s naming it by `sha256`, from
|
|
1043
|
+
* `offset` within the file. Core always takes every byte, stored or not (it holds content once,
|
|
1044
|
+
* by hash), and refuses a file whose bytes do not match its hash (`invalid`; the upload ends).
|
|
1045
|
+
* `commit` answers `written` with `unchanged: true` and no new version when the files are the
|
|
1046
|
+
* folder's latest version's, and `refused` when a total would be passed.
|
|
1047
|
+
*/
|
|
1048
|
+
"artifact.write": {
|
|
1049
|
+
params: z.ZodUnion<readonly [z.ZodObject<{
|
|
1050
|
+
runId: z.ZodString;
|
|
1051
|
+
op: z.ZodLiteral<"begin">;
|
|
1052
|
+
key: z.ZodString;
|
|
1053
|
+
artifactId: z.ZodOptional<z.ZodString>;
|
|
1054
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1055
|
+
contentType: z.ZodOptional<z.ZodString>;
|
|
1056
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
1057
|
+
effectId: z.ZodOptional<z.ZodString>;
|
|
1058
|
+
base64: z.ZodOptional<z.ZodString>;
|
|
1059
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1060
|
+
runId: z.ZodString;
|
|
1061
|
+
op: z.ZodLiteral<"begin">;
|
|
1062
|
+
kind: z.ZodLiteral<"folder">;
|
|
1063
|
+
key: z.ZodString;
|
|
1064
|
+
name: z.ZodString;
|
|
1065
|
+
artifactId: z.ZodOptional<z.ZodString>;
|
|
1066
|
+
sameName: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1067
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1068
|
+
runId: z.ZodString;
|
|
1069
|
+
op: z.ZodLiteral<"file">;
|
|
1070
|
+
uploadId: z.ZodString;
|
|
1071
|
+
path: z.ZodString;
|
|
1072
|
+
size: z.ZodNumber;
|
|
1073
|
+
sha256: z.ZodString;
|
|
1074
|
+
contentType: z.ZodOptional<z.ZodString>;
|
|
1075
|
+
base64: z.ZodOptional<z.ZodString>;
|
|
1076
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1077
|
+
runId: z.ZodString;
|
|
1078
|
+
op: z.ZodLiteral<"chunk">;
|
|
1079
|
+
uploadId: z.ZodString;
|
|
1080
|
+
sha256: z.ZodOptional<z.ZodString>;
|
|
1081
|
+
offset: z.ZodNumber;
|
|
1082
|
+
base64: z.ZodString;
|
|
1083
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1084
|
+
runId: z.ZodString;
|
|
1085
|
+
op: z.ZodLiteral<"commit">;
|
|
1086
|
+
uploadId: z.ZodString;
|
|
1087
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1088
|
+
runId: z.ZodString;
|
|
1089
|
+
op: z.ZodLiteral<"abort">;
|
|
1090
|
+
uploadId: z.ZodString;
|
|
1091
|
+
}, z.core.$strict>]>;
|
|
1092
|
+
result: z.ZodUnion<readonly [z.ZodObject<{
|
|
1093
|
+
status: z.ZodLiteral<"open">;
|
|
1094
|
+
uploadId: z.ZodString;
|
|
1095
|
+
maxBytes: z.ZodNumber;
|
|
1096
|
+
maxFileBytes: z.ZodOptional<z.ZodNumber>;
|
|
1097
|
+
maxEntries: z.ZodOptional<z.ZodNumber>;
|
|
1098
|
+
received: z.ZodNumber;
|
|
1099
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1100
|
+
status: z.ZodLiteral<"written">;
|
|
1101
|
+
artifact: z.ZodObject<{
|
|
1102
|
+
artifactId: z.ZodString;
|
|
1103
|
+
kind: z.ZodEnum<{
|
|
1104
|
+
file: "file";
|
|
1105
|
+
folder: "folder";
|
|
1106
|
+
}>;
|
|
1107
|
+
name: z.ZodString;
|
|
1108
|
+
version: z.ZodNumber;
|
|
1109
|
+
contentType: z.ZodString;
|
|
1110
|
+
size: z.ZodNumber;
|
|
1111
|
+
sha256: z.ZodString;
|
|
1112
|
+
tenantWide: z.ZodBoolean;
|
|
1113
|
+
}, z.core.$strict>;
|
|
1114
|
+
created: z.ZodBoolean;
|
|
1115
|
+
unchanged: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1116
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1117
|
+
status: z.ZodLiteral<"refused">;
|
|
1118
|
+
reason: z.ZodEnum<{
|
|
1119
|
+
environment_total: "environment_total";
|
|
1120
|
+
tenant_total: "tenant_total";
|
|
1121
|
+
}>;
|
|
1122
|
+
message: z.ZodString;
|
|
1123
|
+
limit: z.ZodNumber;
|
|
1124
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1125
|
+
status: z.ZodLiteral<"aborted">;
|
|
1126
|
+
}, z.core.$strict>]>;
|
|
1127
|
+
};
|
|
766
1128
|
"turn.completed": {
|
|
767
1129
|
params: z.ZodObject<{
|
|
768
1130
|
runId: z.ZodString;
|
|
@@ -781,11 +1143,25 @@ export declare const harnessRequests: {
|
|
|
781
1143
|
error: z.ZodOptional<z.ZodUnknown>;
|
|
782
1144
|
effectIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
783
1145
|
cancelEffectIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
784
|
-
transcript: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
1146
|
+
transcript: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
785
1147
|
keep: z.ZodNumber;
|
|
786
1148
|
entries: z.ZodArray<z.ZodUnknown>;
|
|
787
1149
|
length: z.ZodNumber;
|
|
788
|
-
}, z.core.$strict
|
|
1150
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1151
|
+
keep: z.ZodNumber;
|
|
1152
|
+
entries: z.ZodArray<z.ZodUnknown>;
|
|
1153
|
+
length: z.ZodNumber;
|
|
1154
|
+
kind: z.ZodLiteral<"compaction">;
|
|
1155
|
+
compaction: z.ZodObject<{
|
|
1156
|
+
trigger: z.ZodEnum<{
|
|
1157
|
+
overflow: "overflow";
|
|
1158
|
+
threshold: "threshold";
|
|
1159
|
+
}>;
|
|
1160
|
+
tokensBefore: z.ZodNumber;
|
|
1161
|
+
tokensAfter: z.ZodNumber;
|
|
1162
|
+
summaryEffectIds: z.ZodArray<z.ZodString>;
|
|
1163
|
+
}, z.core.$strict>;
|
|
1164
|
+
}, z.core.$strict>]>>>>;
|
|
789
1165
|
thrown: z.ZodOptional<z.ZodObject<{
|
|
790
1166
|
code: z.ZodOptional<z.ZodString>;
|
|
791
1167
|
message: z.ZodString;
|
|
@@ -813,11 +1189,25 @@ export declare const harnessRequests: {
|
|
|
813
1189
|
error: z.ZodOptional<z.ZodUnknown>;
|
|
814
1190
|
effectIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
815
1191
|
cancelEffectIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
816
|
-
transcript: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
1192
|
+
transcript: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1193
|
+
keep: z.ZodNumber;
|
|
1194
|
+
entries: z.ZodArray<z.ZodUnknown>;
|
|
1195
|
+
length: z.ZodNumber;
|
|
1196
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
817
1197
|
keep: z.ZodNumber;
|
|
818
1198
|
entries: z.ZodArray<z.ZodUnknown>;
|
|
819
1199
|
length: z.ZodNumber;
|
|
820
|
-
|
|
1200
|
+
kind: z.ZodLiteral<"compaction">;
|
|
1201
|
+
compaction: z.ZodObject<{
|
|
1202
|
+
trigger: z.ZodEnum<{
|
|
1203
|
+
overflow: "overflow";
|
|
1204
|
+
threshold: "threshold";
|
|
1205
|
+
}>;
|
|
1206
|
+
tokensBefore: z.ZodNumber;
|
|
1207
|
+
tokensAfter: z.ZodNumber;
|
|
1208
|
+
summaryEffectIds: z.ZodArray<z.ZodString>;
|
|
1209
|
+
}, z.core.$strict>;
|
|
1210
|
+
}, z.core.$strict>]>>>>;
|
|
821
1211
|
thrown: z.ZodOptional<z.ZodObject<{
|
|
822
1212
|
code: z.ZodOptional<z.ZodString>;
|
|
823
1213
|
message: z.ZodString;
|
|
@@ -845,11 +1235,25 @@ export declare const harnessRequests: {
|
|
|
845
1235
|
error: z.ZodOptional<z.ZodUnknown>;
|
|
846
1236
|
effectIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
847
1237
|
cancelEffectIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
848
|
-
transcript: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
1238
|
+
transcript: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
849
1239
|
keep: z.ZodNumber;
|
|
850
1240
|
entries: z.ZodArray<z.ZodUnknown>;
|
|
851
1241
|
length: z.ZodNumber;
|
|
852
|
-
}, z.core.$strict
|
|
1242
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1243
|
+
keep: z.ZodNumber;
|
|
1244
|
+
entries: z.ZodArray<z.ZodUnknown>;
|
|
1245
|
+
length: z.ZodNumber;
|
|
1246
|
+
kind: z.ZodLiteral<"compaction">;
|
|
1247
|
+
compaction: z.ZodObject<{
|
|
1248
|
+
trigger: z.ZodEnum<{
|
|
1249
|
+
overflow: "overflow";
|
|
1250
|
+
threshold: "threshold";
|
|
1251
|
+
}>;
|
|
1252
|
+
tokensBefore: z.ZodNumber;
|
|
1253
|
+
tokensAfter: z.ZodNumber;
|
|
1254
|
+
summaryEffectIds: z.ZodArray<z.ZodString>;
|
|
1255
|
+
}, z.core.$strict>;
|
|
1256
|
+
}, z.core.$strict>]>>>>;
|
|
853
1257
|
thrown: z.ZodOptional<z.ZodObject<{
|
|
854
1258
|
code: z.ZodOptional<z.ZodString>;
|
|
855
1259
|
message: z.ZodString;
|
|
@@ -877,11 +1281,25 @@ export declare const harnessRequests: {
|
|
|
877
1281
|
error: z.ZodOptional<z.ZodUnknown>;
|
|
878
1282
|
effectIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
879
1283
|
cancelEffectIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
880
|
-
transcript: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
1284
|
+
transcript: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1285
|
+
keep: z.ZodNumber;
|
|
1286
|
+
entries: z.ZodArray<z.ZodUnknown>;
|
|
1287
|
+
length: z.ZodNumber;
|
|
1288
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
881
1289
|
keep: z.ZodNumber;
|
|
882
1290
|
entries: z.ZodArray<z.ZodUnknown>;
|
|
883
1291
|
length: z.ZodNumber;
|
|
884
|
-
|
|
1292
|
+
kind: z.ZodLiteral<"compaction">;
|
|
1293
|
+
compaction: z.ZodObject<{
|
|
1294
|
+
trigger: z.ZodEnum<{
|
|
1295
|
+
overflow: "overflow";
|
|
1296
|
+
threshold: "threshold";
|
|
1297
|
+
}>;
|
|
1298
|
+
tokensBefore: z.ZodNumber;
|
|
1299
|
+
tokensAfter: z.ZodNumber;
|
|
1300
|
+
summaryEffectIds: z.ZodArray<z.ZodString>;
|
|
1301
|
+
}, z.core.$strict>;
|
|
1302
|
+
}, z.core.$strict>]>>>>;
|
|
885
1303
|
thrown: z.ZodOptional<z.ZodObject<{
|
|
886
1304
|
code: z.ZodOptional<z.ZodString>;
|
|
887
1305
|
message: z.ZodString;
|
|
@@ -910,11 +1328,25 @@ export declare const harnessRequests: {
|
|
|
910
1328
|
error: z.ZodOptional<z.ZodUnknown>;
|
|
911
1329
|
effectIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
912
1330
|
cancelEffectIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
913
|
-
transcript: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
1331
|
+
transcript: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
914
1332
|
keep: z.ZodNumber;
|
|
915
1333
|
entries: z.ZodArray<z.ZodUnknown>;
|
|
916
1334
|
length: z.ZodNumber;
|
|
917
|
-
}, z.core.$strict
|
|
1335
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1336
|
+
keep: z.ZodNumber;
|
|
1337
|
+
entries: z.ZodArray<z.ZodUnknown>;
|
|
1338
|
+
length: z.ZodNumber;
|
|
1339
|
+
kind: z.ZodLiteral<"compaction">;
|
|
1340
|
+
compaction: z.ZodObject<{
|
|
1341
|
+
trigger: z.ZodEnum<{
|
|
1342
|
+
overflow: "overflow";
|
|
1343
|
+
threshold: "threshold";
|
|
1344
|
+
}>;
|
|
1345
|
+
tokensBefore: z.ZodNumber;
|
|
1346
|
+
tokensAfter: z.ZodNumber;
|
|
1347
|
+
summaryEffectIds: z.ZodArray<z.ZodString>;
|
|
1348
|
+
}, z.core.$strict>;
|
|
1349
|
+
}, z.core.$strict>]>>>>;
|
|
918
1350
|
thrown: z.ZodOptional<z.ZodObject<{
|
|
919
1351
|
code: z.ZodOptional<z.ZodString>;
|
|
920
1352
|
message: z.ZodString;
|
|
@@ -928,8 +1360,7 @@ export declare const harnessRequests: {
|
|
|
928
1360
|
/**
|
|
929
1361
|
* Requests core sends to a harness that declared `workspace` (F6.2), with their answers. A
|
|
930
1362
|
* sandbox tool's answer is its `SandboxToolOutcome`; the harness claims its `environment.*` events
|
|
931
|
-
* while the request is in flight.
|
|
932
|
-
* through it.
|
|
1363
|
+
* while the request is in flight.
|
|
933
1364
|
*/
|
|
934
1365
|
export declare const coreRequests: {
|
|
935
1366
|
"workspace.read": {
|
|
@@ -949,28 +1380,6 @@ export declare const coreRequests: {
|
|
|
949
1380
|
write: "write";
|
|
950
1381
|
}>;
|
|
951
1382
|
input: z.ZodUnknown;
|
|
952
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
953
|
-
session: z.ZodObject<{
|
|
954
|
-
ownerId: z.ZodString;
|
|
955
|
-
environmentId: z.ZodOptional<z.ZodString>;
|
|
956
|
-
activeTurnId: z.ZodNullable<z.ZodString>;
|
|
957
|
-
}, z.core.$strict>;
|
|
958
|
-
spec: z.ZodUnknown;
|
|
959
|
-
bytes: z.ZodObject<{
|
|
960
|
-
path: z.ZodString;
|
|
961
|
-
maxBytes: z.ZodNumber;
|
|
962
|
-
}, z.core.$strict>;
|
|
963
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
964
|
-
session: z.ZodObject<{
|
|
965
|
-
ownerId: z.ZodString;
|
|
966
|
-
environmentId: z.ZodOptional<z.ZodString>;
|
|
967
|
-
activeTurnId: z.ZodNullable<z.ZodString>;
|
|
968
|
-
}, z.core.$strict>;
|
|
969
|
-
spec: z.ZodUnknown;
|
|
970
|
-
list: z.ZodObject<{
|
|
971
|
-
dir: z.ZodString;
|
|
972
|
-
maxEntries: z.ZodNumber;
|
|
973
|
-
}, z.core.$strict>;
|
|
974
1383
|
}, z.core.$strict>, z.ZodObject<{
|
|
975
1384
|
session: z.ZodObject<{
|
|
976
1385
|
ownerId: z.ZodString;
|