@agent-vm/agent-portal-sdk 0.0.120 → 0.0.121
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/dist/adapter-boundary/index.d.ts +2 -0
- package/dist/adapter-boundary/index.js +2 -0
- package/dist/adapter-boundary-BIagsTUH.js +29 -0
- package/dist/adapter-boundary-BIagsTUH.js.map +1 -0
- package/dist/approval-surface/index.d.ts +2 -0
- package/dist/approval-surface/index.js +2 -0
- package/dist/approval-surface-en5VAY5h.js +20 -0
- package/dist/approval-surface-en5VAY5h.js.map +1 -0
- package/dist/artifact-reference-schema-CiEjxYPd.js +13 -0
- package/dist/artifact-reference-schema-CiEjxYPd.js.map +1 -0
- package/dist/artifact-surface/index.d.ts +2 -0
- package/dist/artifact-surface/index.js +3 -0
- package/dist/artifact-surface-BstQxq6b.js +65 -0
- package/dist/artifact-surface-BstQxq6b.js.map +1 -0
- package/dist/capability-description-surface/index.d.ts +2 -0
- package/dist/capability-description-surface/index.js +3 -0
- package/dist/capability-description-surface-BdzknTKT.js +2 -0
- package/dist/capability-descriptor-schema-zRnfGjBc.js +86 -0
- package/dist/capability-descriptor-schema-zRnfGjBc.js.map +1 -0
- package/dist/cli/tool-portal.d.ts +1 -0
- package/dist/cli/tool-portal.js +207 -0
- package/dist/cli/tool-portal.js.map +1 -0
- package/dist/contracts/index.d.ts +2 -0
- package/dist/contracts/index.js +2 -0
- package/dist/contracts-RgGW0RX2.js +611 -0
- package/dist/contracts-RgGW0RX2.js.map +1 -0
- package/dist/gateway-runtime-client/index.d.ts +385 -0
- package/dist/gateway-runtime-client/index.d.ts.map +1 -0
- package/dist/gateway-runtime-client/index.js +1439 -0
- package/dist/gateway-runtime-client/index.js.map +1 -0
- package/dist/gateway-runtime-local-exec/gateway-runtime-local-exec-helper.d.ts +1 -0
- package/dist/gateway-runtime-local-exec/gateway-runtime-local-exec-helper.js +125 -0
- package/dist/gateway-runtime-local-exec/gateway-runtime-local-exec-helper.js.map +1 -0
- package/dist/gateway-runtime-local-exec/index.d.ts +54 -0
- package/dist/gateway-runtime-local-exec/index.d.ts.map +1 -0
- package/dist/gateway-runtime-local-exec/index.js +2 -0
- package/dist/gateway-runtime-local-exec-transport-B1hy2A3Q.js +427 -0
- package/dist/gateway-runtime-local-exec-transport-B1hy2A3Q.js.map +1 -0
- package/dist/index-B5hgm1KH.d.ts +84 -0
- package/dist/index-B5hgm1KH.d.ts.map +1 -0
- package/dist/index-BWE2_BcN.d.ts +64 -0
- package/dist/index-BWE2_BcN.d.ts.map +1 -0
- package/dist/index-Bdnvj5j3.d.ts +142 -0
- package/dist/index-Bdnvj5j3.d.ts.map +1 -0
- package/dist/index-BmH68K78.d.ts +41 -0
- package/dist/index-BmH68K78.d.ts.map +1 -0
- package/dist/index-C-NPMMvc.d.ts +2396 -0
- package/dist/index-C-NPMMvc.d.ts.map +1 -0
- package/dist/index-DKBSYuxW.d.ts +239 -0
- package/dist/index-DKBSYuxW.d.ts.map +1 -0
- package/dist/index-Dj4galCJ.d.ts +17 -0
- package/dist/index-Dj4galCJ.d.ts.map +1 -0
- package/dist/index-Dxoz-ORl.d.ts +229 -0
- package/dist/index-Dxoz-ORl.d.ts.map +1 -0
- package/dist/index-v8suC0qe.d.ts +69 -0
- package/dist/index-v8suC0qe.d.ts.map +1 -0
- package/dist/index-yeFGRMdv.d.ts +152 -0
- package/dist/index-yeFGRMdv.d.ts.map +1 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +16 -0
- package/dist/json-value-schema-M87sjwWL.d.ts +18 -0
- package/dist/json-value-schema-M87sjwWL.d.ts.map +1 -0
- package/dist/json-value-schema-hdPkabRZ.js +29 -0
- package/dist/json-value-schema-hdPkabRZ.js.map +1 -0
- package/dist/node-tool-portal-mcp-transport-Cl2VKbLY.js +156 -0
- package/dist/node-tool-portal-mcp-transport-Cl2VKbLY.js.map +1 -0
- package/dist/portable-contracts/index.d.ts +2 -0
- package/dist/portable-contracts/index.js +3 -0
- package/dist/portable-contracts-Bca33zVa.js +326 -0
- package/dist/portable-contracts-Bca33zVa.js.map +1 -0
- package/dist/portable-refinement-authoring-ZSmR-amG.js +196 -0
- package/dist/portable-refinement-authoring-ZSmR-amG.js.map +1 -0
- package/dist/portal-call-request-schema-Cp6CMGs9.js +41 -0
- package/dist/portal-call-request-schema-Cp6CMGs9.js.map +1 -0
- package/dist/portal-call-result-schema-ByxHRCEN.js +158 -0
- package/dist/portal-call-result-schema-ByxHRCEN.js.map +1 -0
- package/dist/portal-call-result-schema-wSCaz3mC.d.ts +1485 -0
- package/dist/portal-call-result-schema-wSCaz3mC.d.ts.map +1 -0
- package/dist/portal-call-surface/index.d.ts +3 -0
- package/dist/portal-call-surface/index.js +5 -0
- package/dist/portal-call-surface-DjZVquFt.js +83 -0
- package/dist/portal-call-surface-DjZVquFt.js.map +1 -0
- package/dist/portal-error-schema-CQHgoFq4.js +71 -0
- package/dist/portal-error-schema-CQHgoFq4.js.map +1 -0
- package/dist/portal-event-surface/index.d.ts +2 -0
- package/dist/portal-event-surface/index.js +3 -0
- package/dist/portal-event-surface-CdScrgoN.js +51 -0
- package/dist/portal-event-surface-CdScrgoN.js.map +1 -0
- package/dist/testing/index.d.ts +19 -0
- package/dist/testing/index.d.ts.map +1 -0
- package/dist/testing/index.js +36 -0
- package/dist/testing/index.js.map +1 -0
- package/dist/tool-portal-mcp-client/index.d.ts +2 -0
- package/dist/tool-portal-mcp-client/index.js +2 -0
- package/dist/tool-portal-mcp-client/node-tool-portal-mcp-transport.d.ts +17 -0
- package/dist/tool-portal-mcp-client/node-tool-portal-mcp-transport.d.ts.map +1 -0
- package/dist/tool-portal-mcp-client/node-tool-portal-mcp-transport.js +2 -0
- package/dist/tool-portal-mcp-client-DwJF-48Y.js +90 -0
- package/dist/tool-portal-mcp-client-DwJF-48Y.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,2396 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/contracts/contract-foundations.d.ts
|
|
4
|
+
declare const PORTABLE_MAXIMUM_SAFE_INTEGER: number;
|
|
5
|
+
declare const SANDBOX_MAXIMUM_ENVIRONMENT_VARIABLES = 100;
|
|
6
|
+
declare const SANDBOX_MAXIMUM_IDENTIFIER_CHARACTERS = 256;
|
|
7
|
+
declare const SANDBOX_MAXIMUM_PATH_CHARACTERS = 1024;
|
|
8
|
+
declare const SANDBOX_MAXIMUM_TEXT_CHARACTERS: number;
|
|
9
|
+
declare const SANDBOX_MAXIMUM_BINARY_BYTES: number;
|
|
10
|
+
declare const SANDBOX_MAXIMUM_LIST_ITEMS = 1000;
|
|
11
|
+
declare const SANDBOX_MAXIMUM_OPERATION_MILLISECONDS: number;
|
|
12
|
+
declare const BoundedOpaqueIdentifierSchema: z.ZodString;
|
|
13
|
+
declare const PositiveSafeIntegerSchema: z.ZodNumber;
|
|
14
|
+
declare const NonnegativeSafeIntegerSchema: z.ZodNumber;
|
|
15
|
+
declare const BoundedOperationMillisecondsSchema: z.ZodNumber;
|
|
16
|
+
declare const BoundedByteCountSchema: z.ZodNumber;
|
|
17
|
+
declare const BoundedTextSchema: z.ZodString;
|
|
18
|
+
declare const SandboxShellCommandSchema: z.ZodString;
|
|
19
|
+
declare const SandboxGuestAbsolutePathSchema: z.ZodString;
|
|
20
|
+
declare const SandboxGuestPathSchema: z.ZodString;
|
|
21
|
+
declare const SandboxEnvironmentVariableNameSchema: z.ZodString;
|
|
22
|
+
declare const SandboxEnvironmentVariableValueSchema: z.ZodString;
|
|
23
|
+
declare const CanonicalBase64Schema: z.ZodString;
|
|
24
|
+
declare const Sha256DigestSchema: z.ZodString;
|
|
25
|
+
declare const SandboxWorkRelativePathSchema: z.ZodString;
|
|
26
|
+
declare const SandboxHandleKindSchema: z.ZodEnum<{
|
|
27
|
+
environment: "environment";
|
|
28
|
+
process: "process";
|
|
29
|
+
stream: "stream";
|
|
30
|
+
terminal: "terminal";
|
|
31
|
+
}>;
|
|
32
|
+
declare const SandboxStreamChannelSchema: z.ZodEnum<{
|
|
33
|
+
stdin: "stdin";
|
|
34
|
+
stdout: "stdout";
|
|
35
|
+
stderr: "stderr";
|
|
36
|
+
pty: "pty";
|
|
37
|
+
}>;
|
|
38
|
+
declare const SandboxBoundHandleSchema: z.ZodObject<{
|
|
39
|
+
handleId: z.ZodString;
|
|
40
|
+
kind: z.ZodEnum<{
|
|
41
|
+
environment: "environment";
|
|
42
|
+
process: "process";
|
|
43
|
+
stream: "stream";
|
|
44
|
+
terminal: "terminal";
|
|
45
|
+
}>;
|
|
46
|
+
owningGeneration: z.ZodString;
|
|
47
|
+
}, z.core.$strict>;
|
|
48
|
+
declare function createSandboxBoundHandleSchema<THandleKind extends z.infer<typeof SandboxHandleKindSchema>>(kind: THandleKind): z.ZodObject<{
|
|
49
|
+
handleId: z.ZodString;
|
|
50
|
+
owningGeneration: z.ZodString;
|
|
51
|
+
kind: z.ZodLiteral<THandleKind>;
|
|
52
|
+
}, z.core.$strict>;
|
|
53
|
+
declare const SandboxEnvironmentHandleSchema: z.ZodObject<{
|
|
54
|
+
handleId: z.ZodString;
|
|
55
|
+
owningGeneration: z.ZodString;
|
|
56
|
+
kind: z.ZodLiteral<"environment">;
|
|
57
|
+
}, z.core.$strict>;
|
|
58
|
+
declare const SandboxProcessHandleSchema: z.ZodObject<{
|
|
59
|
+
handleId: z.ZodString;
|
|
60
|
+
owningGeneration: z.ZodString;
|
|
61
|
+
kind: z.ZodLiteral<"process">;
|
|
62
|
+
}, z.core.$strict>;
|
|
63
|
+
declare const SandboxStreamHandleSchema: z.ZodObject<{
|
|
64
|
+
handleId: z.ZodString;
|
|
65
|
+
owningGeneration: z.ZodString;
|
|
66
|
+
kind: z.ZodLiteral<"stream">;
|
|
67
|
+
channel: z.ZodEnum<{
|
|
68
|
+
stdin: "stdin";
|
|
69
|
+
stdout: "stdout";
|
|
70
|
+
stderr: "stderr";
|
|
71
|
+
pty: "pty";
|
|
72
|
+
}>;
|
|
73
|
+
}, z.core.$strict>;
|
|
74
|
+
declare const SandboxTerminalHandleSchema: z.ZodObject<{
|
|
75
|
+
handleId: z.ZodString;
|
|
76
|
+
owningGeneration: z.ZodString;
|
|
77
|
+
kind: z.ZodLiteral<"terminal">;
|
|
78
|
+
}, z.core.$strict>;
|
|
79
|
+
declare const SandboxEnvironmentVariableSchema: z.ZodReadonly<z.ZodObject<{
|
|
80
|
+
name: z.ZodString;
|
|
81
|
+
value: z.ZodString;
|
|
82
|
+
}, z.core.$strict>>;
|
|
83
|
+
declare const SandboxDirectShellStartRequestSchema: z.ZodObject<{
|
|
84
|
+
command: z.ZodString;
|
|
85
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
86
|
+
environment: z.ZodObject<{
|
|
87
|
+
handleId: z.ZodString;
|
|
88
|
+
owningGeneration: z.ZodString;
|
|
89
|
+
kind: z.ZodLiteral<"environment">;
|
|
90
|
+
}, z.core.$strict>;
|
|
91
|
+
environmentVariables: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
92
|
+
name: z.ZodString;
|
|
93
|
+
value: z.ZodString;
|
|
94
|
+
}, z.core.$strict>>>>>;
|
|
95
|
+
}, z.core.$strict>;
|
|
96
|
+
declare const SandboxBinaryChunkSchema: z.ZodObject<{
|
|
97
|
+
byteLength: z.ZodNumber;
|
|
98
|
+
contentBase64: z.ZodString;
|
|
99
|
+
encoding: z.ZodLiteral<"base64">;
|
|
100
|
+
}, z.core.$strict>;
|
|
101
|
+
type SandboxBoundHandle = z.infer<typeof SandboxBoundHandleSchema>;
|
|
102
|
+
type SandboxDirectShellStartRequest = z.infer<typeof SandboxDirectShellStartRequestSchema>;
|
|
103
|
+
type SandboxEnvironmentVariable = z.infer<typeof SandboxEnvironmentVariableSchema>;
|
|
104
|
+
type SandboxEnvironmentHandle = z.infer<typeof SandboxEnvironmentHandleSchema>;
|
|
105
|
+
type SandboxProcessHandle = z.infer<typeof SandboxProcessHandleSchema>;
|
|
106
|
+
type SandboxStreamHandle = z.infer<typeof SandboxStreamHandleSchema>;
|
|
107
|
+
type SandboxTerminalHandle = z.infer<typeof SandboxTerminalHandleSchema>;
|
|
108
|
+
//#endregion
|
|
109
|
+
//#region src/contracts/operation-contracts.d.ts
|
|
110
|
+
declare const SandboxOperationIdentitySchema: z.ZodObject<{
|
|
111
|
+
operationId: z.ZodString;
|
|
112
|
+
owningGeneration: z.ZodString;
|
|
113
|
+
}, z.core.$strict>;
|
|
114
|
+
declare const SandboxProvenTerminationOutcomeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
115
|
+
certainty: z.ZodLiteral<"proven-terminated">;
|
|
116
|
+
kind: z.ZodLiteral<"cancelled-proven">;
|
|
117
|
+
retryClass: z.ZodLiteral<"manual-only">;
|
|
118
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
119
|
+
certainty: z.ZodLiteral<"proven-terminated">;
|
|
120
|
+
kind: z.ZodLiteral<"timed-out-proven">;
|
|
121
|
+
retryClass: z.ZodLiteral<"manual-only">;
|
|
122
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
123
|
+
certainty: z.ZodLiteral<"proven-terminated">;
|
|
124
|
+
kind: z.ZodLiteral<"replaced-proven">;
|
|
125
|
+
priorSideEffects: z.ZodLiteral<"possible">;
|
|
126
|
+
retryClass: z.ZodLiteral<"manual-only">;
|
|
127
|
+
}, z.core.$strict>], "kind">;
|
|
128
|
+
declare const SandboxAmbiguousOutcomeSchema: z.ZodObject<{
|
|
129
|
+
certainty: z.ZodLiteral<"side-effects-and-termination-unknown">;
|
|
130
|
+
kind: z.ZodLiteral<"ambiguous">;
|
|
131
|
+
retryClass: z.ZodLiteral<"forbidden">;
|
|
132
|
+
}, z.core.$strict>;
|
|
133
|
+
declare const SandboxTerminalOutcomeSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
134
|
+
certainty: z.ZodLiteral<"proven">;
|
|
135
|
+
kind: z.ZodLiteral<"not-dispatched">;
|
|
136
|
+
retryClass: z.ZodLiteral<"safe-before-dispatch">;
|
|
137
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
138
|
+
certainty: z.ZodLiteral<"proven">;
|
|
139
|
+
completion: z.ZodLiteral<"succeeded">;
|
|
140
|
+
kind: z.ZodLiteral<"completed">;
|
|
141
|
+
retryClass: z.ZodLiteral<"forbidden">;
|
|
142
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
143
|
+
certainty: z.ZodLiteral<"proven">;
|
|
144
|
+
completion: z.ZodLiteral<"failed">;
|
|
145
|
+
kind: z.ZodLiteral<"completed">;
|
|
146
|
+
retryClass: z.ZodEnum<{
|
|
147
|
+
forbidden: "forbidden";
|
|
148
|
+
"policy-gated": "policy-gated";
|
|
149
|
+
}>;
|
|
150
|
+
}, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
151
|
+
certainty: z.ZodLiteral<"proven-terminated">;
|
|
152
|
+
kind: z.ZodLiteral<"cancelled-proven">;
|
|
153
|
+
retryClass: z.ZodLiteral<"manual-only">;
|
|
154
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
155
|
+
certainty: z.ZodLiteral<"proven-terminated">;
|
|
156
|
+
kind: z.ZodLiteral<"timed-out-proven">;
|
|
157
|
+
retryClass: z.ZodLiteral<"manual-only">;
|
|
158
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
159
|
+
certainty: z.ZodLiteral<"proven-terminated">;
|
|
160
|
+
kind: z.ZodLiteral<"replaced-proven">;
|
|
161
|
+
priorSideEffects: z.ZodLiteral<"possible">;
|
|
162
|
+
retryClass: z.ZodLiteral<"manual-only">;
|
|
163
|
+
}, z.core.$strict>], "kind">, z.ZodObject<{
|
|
164
|
+
certainty: z.ZodLiteral<"side-effects-and-termination-unknown">;
|
|
165
|
+
kind: z.ZodLiteral<"ambiguous">;
|
|
166
|
+
retryClass: z.ZodLiteral<"forbidden">;
|
|
167
|
+
}, z.core.$strict>]>;
|
|
168
|
+
declare const SandboxOperationControlResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
169
|
+
kind: z.ZodLiteral<"running">;
|
|
170
|
+
operation: z.ZodObject<{
|
|
171
|
+
operationId: z.ZodString;
|
|
172
|
+
owningGeneration: z.ZodString;
|
|
173
|
+
}, z.core.$strict>;
|
|
174
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
175
|
+
kind: z.ZodLiteral<"cancel-request-accepted">;
|
|
176
|
+
operation: z.ZodObject<{
|
|
177
|
+
operationId: z.ZodString;
|
|
178
|
+
owningGeneration: z.ZodString;
|
|
179
|
+
}, z.core.$strict>;
|
|
180
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
181
|
+
kind: z.ZodLiteral<"cancellation-pending">;
|
|
182
|
+
operation: z.ZodObject<{
|
|
183
|
+
operationId: z.ZodString;
|
|
184
|
+
owningGeneration: z.ZodString;
|
|
185
|
+
}, z.core.$strict>;
|
|
186
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
187
|
+
kind: z.ZodLiteral<"termination-proven">;
|
|
188
|
+
operation: z.ZodObject<{
|
|
189
|
+
operationId: z.ZodString;
|
|
190
|
+
owningGeneration: z.ZodString;
|
|
191
|
+
}, z.core.$strict>;
|
|
192
|
+
outcome: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
193
|
+
certainty: z.ZodLiteral<"proven-terminated">;
|
|
194
|
+
kind: z.ZodLiteral<"cancelled-proven">;
|
|
195
|
+
retryClass: z.ZodLiteral<"manual-only">;
|
|
196
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
197
|
+
certainty: z.ZodLiteral<"proven-terminated">;
|
|
198
|
+
kind: z.ZodLiteral<"timed-out-proven">;
|
|
199
|
+
retryClass: z.ZodLiteral<"manual-only">;
|
|
200
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
201
|
+
certainty: z.ZodLiteral<"proven-terminated">;
|
|
202
|
+
kind: z.ZodLiteral<"replaced-proven">;
|
|
203
|
+
priorSideEffects: z.ZodLiteral<"possible">;
|
|
204
|
+
retryClass: z.ZodLiteral<"manual-only">;
|
|
205
|
+
}, z.core.$strict>], "kind">;
|
|
206
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
207
|
+
kind: z.ZodLiteral<"already-terminal">;
|
|
208
|
+
operation: z.ZodObject<{
|
|
209
|
+
operationId: z.ZodString;
|
|
210
|
+
owningGeneration: z.ZodString;
|
|
211
|
+
}, z.core.$strict>;
|
|
212
|
+
outcome: z.ZodUnion<readonly [z.ZodObject<{
|
|
213
|
+
certainty: z.ZodLiteral<"proven">;
|
|
214
|
+
kind: z.ZodLiteral<"not-dispatched">;
|
|
215
|
+
retryClass: z.ZodLiteral<"safe-before-dispatch">;
|
|
216
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
217
|
+
certainty: z.ZodLiteral<"proven">;
|
|
218
|
+
completion: z.ZodLiteral<"succeeded">;
|
|
219
|
+
kind: z.ZodLiteral<"completed">;
|
|
220
|
+
retryClass: z.ZodLiteral<"forbidden">;
|
|
221
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
222
|
+
certainty: z.ZodLiteral<"proven">;
|
|
223
|
+
completion: z.ZodLiteral<"failed">;
|
|
224
|
+
kind: z.ZodLiteral<"completed">;
|
|
225
|
+
retryClass: z.ZodEnum<{
|
|
226
|
+
forbidden: "forbidden";
|
|
227
|
+
"policy-gated": "policy-gated";
|
|
228
|
+
}>;
|
|
229
|
+
}, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
230
|
+
certainty: z.ZodLiteral<"proven-terminated">;
|
|
231
|
+
kind: z.ZodLiteral<"cancelled-proven">;
|
|
232
|
+
retryClass: z.ZodLiteral<"manual-only">;
|
|
233
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
234
|
+
certainty: z.ZodLiteral<"proven-terminated">;
|
|
235
|
+
kind: z.ZodLiteral<"timed-out-proven">;
|
|
236
|
+
retryClass: z.ZodLiteral<"manual-only">;
|
|
237
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
238
|
+
certainty: z.ZodLiteral<"proven-terminated">;
|
|
239
|
+
kind: z.ZodLiteral<"replaced-proven">;
|
|
240
|
+
priorSideEffects: z.ZodLiteral<"possible">;
|
|
241
|
+
retryClass: z.ZodLiteral<"manual-only">;
|
|
242
|
+
}, z.core.$strict>], "kind">, z.ZodObject<{
|
|
243
|
+
certainty: z.ZodLiteral<"side-effects-and-termination-unknown">;
|
|
244
|
+
kind: z.ZodLiteral<"ambiguous">;
|
|
245
|
+
retryClass: z.ZodLiteral<"forbidden">;
|
|
246
|
+
}, z.core.$strict>]>;
|
|
247
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
248
|
+
kind: z.ZodLiteral<"ambiguous">;
|
|
249
|
+
operation: z.ZodObject<{
|
|
250
|
+
operationId: z.ZodString;
|
|
251
|
+
owningGeneration: z.ZodString;
|
|
252
|
+
}, z.core.$strict>;
|
|
253
|
+
outcome: z.ZodObject<{
|
|
254
|
+
certainty: z.ZodLiteral<"side-effects-and-termination-unknown">;
|
|
255
|
+
kind: z.ZodLiteral<"ambiguous">;
|
|
256
|
+
retryClass: z.ZodLiteral<"forbidden">;
|
|
257
|
+
}, z.core.$strict>;
|
|
258
|
+
}, z.core.$strict>], "kind">;
|
|
259
|
+
declare const SandboxRetainedResultLookupRequestSchema: z.ZodObject<{
|
|
260
|
+
operation: z.ZodObject<{
|
|
261
|
+
operationId: z.ZodString;
|
|
262
|
+
owningGeneration: z.ZodString;
|
|
263
|
+
}, z.core.$strict>;
|
|
264
|
+
}, z.core.$strict>;
|
|
265
|
+
declare const SandboxRetainedResultLookupResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
266
|
+
kind: z.ZodLiteral<"retained">;
|
|
267
|
+
operation: z.ZodObject<{
|
|
268
|
+
operationId: z.ZodString;
|
|
269
|
+
owningGeneration: z.ZodString;
|
|
270
|
+
}, z.core.$strict>;
|
|
271
|
+
outcome: z.ZodUnion<readonly [z.ZodObject<{
|
|
272
|
+
certainty: z.ZodLiteral<"proven">;
|
|
273
|
+
kind: z.ZodLiteral<"not-dispatched">;
|
|
274
|
+
retryClass: z.ZodLiteral<"safe-before-dispatch">;
|
|
275
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
276
|
+
certainty: z.ZodLiteral<"proven">;
|
|
277
|
+
completion: z.ZodLiteral<"succeeded">;
|
|
278
|
+
kind: z.ZodLiteral<"completed">;
|
|
279
|
+
retryClass: z.ZodLiteral<"forbidden">;
|
|
280
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
281
|
+
certainty: z.ZodLiteral<"proven">;
|
|
282
|
+
completion: z.ZodLiteral<"failed">;
|
|
283
|
+
kind: z.ZodLiteral<"completed">;
|
|
284
|
+
retryClass: z.ZodEnum<{
|
|
285
|
+
forbidden: "forbidden";
|
|
286
|
+
"policy-gated": "policy-gated";
|
|
287
|
+
}>;
|
|
288
|
+
}, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
289
|
+
certainty: z.ZodLiteral<"proven-terminated">;
|
|
290
|
+
kind: z.ZodLiteral<"cancelled-proven">;
|
|
291
|
+
retryClass: z.ZodLiteral<"manual-only">;
|
|
292
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
293
|
+
certainty: z.ZodLiteral<"proven-terminated">;
|
|
294
|
+
kind: z.ZodLiteral<"timed-out-proven">;
|
|
295
|
+
retryClass: z.ZodLiteral<"manual-only">;
|
|
296
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
297
|
+
certainty: z.ZodLiteral<"proven-terminated">;
|
|
298
|
+
kind: z.ZodLiteral<"replaced-proven">;
|
|
299
|
+
priorSideEffects: z.ZodLiteral<"possible">;
|
|
300
|
+
retryClass: z.ZodLiteral<"manual-only">;
|
|
301
|
+
}, z.core.$strict>], "kind">, z.ZodObject<{
|
|
302
|
+
certainty: z.ZodLiteral<"side-effects-and-termination-unknown">;
|
|
303
|
+
kind: z.ZodLiteral<"ambiguous">;
|
|
304
|
+
retryClass: z.ZodLiteral<"forbidden">;
|
|
305
|
+
}, z.core.$strict>]>;
|
|
306
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
307
|
+
kind: z.ZodLiteral<"pending">;
|
|
308
|
+
operation: z.ZodObject<{
|
|
309
|
+
operationId: z.ZodString;
|
|
310
|
+
owningGeneration: z.ZodString;
|
|
311
|
+
}, z.core.$strict>;
|
|
312
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
313
|
+
kind: z.ZodLiteral<"unavailable">;
|
|
314
|
+
reason: z.ZodLiteral<"not-retained-or-not-authorized">;
|
|
315
|
+
}, z.core.$strict>], "kind">;
|
|
316
|
+
type SandboxOperationIdentity = z.infer<typeof SandboxOperationIdentitySchema>;
|
|
317
|
+
type SandboxOperationControlResult = z.infer<typeof SandboxOperationControlResultSchema>;
|
|
318
|
+
type SandboxRetainedResultLookupRequest = z.infer<typeof SandboxRetainedResultLookupRequestSchema>;
|
|
319
|
+
type SandboxRetainedResultLookupResult = z.infer<typeof SandboxRetainedResultLookupResultSchema>;
|
|
320
|
+
type SandboxTerminalOutcome = z.infer<typeof SandboxTerminalOutcomeSchema>;
|
|
321
|
+
//#endregion
|
|
322
|
+
//#region src/contracts/sandbox-environment-contracts.d.ts
|
|
323
|
+
declare const SandboxEnvironmentOpenRequestSchema: z.ZodObject<{
|
|
324
|
+
logicalCwd: z.ZodOptional<z.ZodString>;
|
|
325
|
+
}, z.core.$strict>;
|
|
326
|
+
declare const SandboxEnvironmentOpenResultSchema: z.ZodObject<{
|
|
327
|
+
environment: z.ZodObject<{
|
|
328
|
+
handleId: z.ZodString;
|
|
329
|
+
owningGeneration: z.ZodString;
|
|
330
|
+
kind: z.ZodLiteral<"environment">;
|
|
331
|
+
}, z.core.$strict>;
|
|
332
|
+
kind: z.ZodLiteral<"opened">;
|
|
333
|
+
logicalCwd: z.ZodOptional<z.ZodString>;
|
|
334
|
+
}, z.core.$strict>;
|
|
335
|
+
declare const SandboxEnvironmentHandleRequestSchema: z.ZodObject<{
|
|
336
|
+
environment: z.ZodObject<{
|
|
337
|
+
handleId: z.ZodString;
|
|
338
|
+
owningGeneration: z.ZodString;
|
|
339
|
+
kind: z.ZodLiteral<"environment">;
|
|
340
|
+
}, z.core.$strict>;
|
|
341
|
+
}, z.core.$strict>;
|
|
342
|
+
declare const SandboxEnvironmentCloseResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
343
|
+
environment: z.ZodObject<{
|
|
344
|
+
handleId: z.ZodString;
|
|
345
|
+
owningGeneration: z.ZodString;
|
|
346
|
+
kind: z.ZodLiteral<"environment">;
|
|
347
|
+
}, z.core.$strict>;
|
|
348
|
+
kind: z.ZodLiteral<"closed">;
|
|
349
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
350
|
+
environment: z.ZodObject<{
|
|
351
|
+
handleId: z.ZodString;
|
|
352
|
+
owningGeneration: z.ZodString;
|
|
353
|
+
kind: z.ZodLiteral<"environment">;
|
|
354
|
+
}, z.core.$strict>;
|
|
355
|
+
kind: z.ZodLiteral<"already-closed">;
|
|
356
|
+
}, z.core.$strict>], "kind">;
|
|
357
|
+
declare const SandboxEnvironmentStatusResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
358
|
+
environment: z.ZodObject<{
|
|
359
|
+
handleId: z.ZodString;
|
|
360
|
+
owningGeneration: z.ZodString;
|
|
361
|
+
kind: z.ZodLiteral<"environment">;
|
|
362
|
+
}, z.core.$strict>;
|
|
363
|
+
kind: z.ZodLiteral<"active">;
|
|
364
|
+
logicalCwd: z.ZodOptional<z.ZodString>;
|
|
365
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
366
|
+
environment: z.ZodObject<{
|
|
367
|
+
handleId: z.ZodString;
|
|
368
|
+
owningGeneration: z.ZodString;
|
|
369
|
+
kind: z.ZodLiteral<"environment">;
|
|
370
|
+
}, z.core.$strict>;
|
|
371
|
+
kind: z.ZodLiteral<"closed">;
|
|
372
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
373
|
+
environment: z.ZodObject<{
|
|
374
|
+
handleId: z.ZodString;
|
|
375
|
+
owningGeneration: z.ZodString;
|
|
376
|
+
kind: z.ZodLiteral<"environment">;
|
|
377
|
+
}, z.core.$strict>;
|
|
378
|
+
kind: z.ZodLiteral<"replaced">;
|
|
379
|
+
}, z.core.$strict>], "kind">;
|
|
380
|
+
type SandboxEnvironmentOpenRequest = z.infer<typeof SandboxEnvironmentOpenRequestSchema>;
|
|
381
|
+
type SandboxEnvironmentOpenResult = z.infer<typeof SandboxEnvironmentOpenResultSchema>;
|
|
382
|
+
type SandboxEnvironmentCloseRequest = z.infer<typeof SandboxEnvironmentHandleRequestSchema>;
|
|
383
|
+
type SandboxEnvironmentCloseResult = z.infer<typeof SandboxEnvironmentCloseResultSchema>;
|
|
384
|
+
type SandboxEnvironmentStatusRequest = z.infer<typeof SandboxEnvironmentHandleRequestSchema>;
|
|
385
|
+
type SandboxEnvironmentStatusResult = z.infer<typeof SandboxEnvironmentStatusResultSchema>;
|
|
386
|
+
//#endregion
|
|
387
|
+
//#region src/contracts/sandbox-execution-contracts.d.ts
|
|
388
|
+
declare const SandboxExecStartModeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
389
|
+
kind: z.ZodLiteral<"direct">;
|
|
390
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
391
|
+
attachTimeoutMs: z.ZodNumber;
|
|
392
|
+
kind: z.ZodLiteral<"attachment-reserved">;
|
|
393
|
+
terminal: z.ZodBoolean;
|
|
394
|
+
}, z.core.$strict>], "kind">;
|
|
395
|
+
declare const SandboxExecStartRequestSchema: z.ZodObject<{
|
|
396
|
+
command: z.ZodString;
|
|
397
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
398
|
+
environment: z.ZodObject<{
|
|
399
|
+
handleId: z.ZodString;
|
|
400
|
+
owningGeneration: z.ZodString;
|
|
401
|
+
kind: z.ZodLiteral<"environment">;
|
|
402
|
+
}, z.core.$strict>;
|
|
403
|
+
environmentVariables: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
404
|
+
name: z.ZodString;
|
|
405
|
+
value: z.ZodString;
|
|
406
|
+
}, z.core.$strict>>>>>;
|
|
407
|
+
mode: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
408
|
+
kind: z.ZodLiteral<"direct">;
|
|
409
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
410
|
+
attachTimeoutMs: z.ZodNumber;
|
|
411
|
+
kind: z.ZodLiteral<"attachment-reserved">;
|
|
412
|
+
terminal: z.ZodBoolean;
|
|
413
|
+
}, z.core.$strict>], "kind">;
|
|
414
|
+
timeoutMs: z.ZodNumber;
|
|
415
|
+
}, z.core.$strict>;
|
|
416
|
+
declare const SandboxExecStartResultSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
417
|
+
kind: z.ZodLiteral<"started">;
|
|
418
|
+
mode: z.ZodLiteral<"direct">;
|
|
419
|
+
operation: z.ZodObject<{
|
|
420
|
+
operationId: z.ZodString;
|
|
421
|
+
owningGeneration: z.ZodString;
|
|
422
|
+
}, z.core.$strict>;
|
|
423
|
+
streams: z.ZodArray<z.ZodObject<{
|
|
424
|
+
handleId: z.ZodString;
|
|
425
|
+
owningGeneration: z.ZodString;
|
|
426
|
+
kind: z.ZodLiteral<"stream">;
|
|
427
|
+
channel: z.ZodEnum<{
|
|
428
|
+
stdin: "stdin";
|
|
429
|
+
stdout: "stdout";
|
|
430
|
+
stderr: "stderr";
|
|
431
|
+
pty: "pty";
|
|
432
|
+
}>;
|
|
433
|
+
}, z.core.$strict>>;
|
|
434
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
435
|
+
kind: z.ZodLiteral<"started">;
|
|
436
|
+
mode: z.ZodLiteral<"attachment-reserved">;
|
|
437
|
+
operation: z.ZodObject<{
|
|
438
|
+
operationId: z.ZodString;
|
|
439
|
+
owningGeneration: z.ZodString;
|
|
440
|
+
}, z.core.$strict>;
|
|
441
|
+
terminal: z.ZodObject<{
|
|
442
|
+
handleId: z.ZodString;
|
|
443
|
+
owningGeneration: z.ZodString;
|
|
444
|
+
kind: z.ZodLiteral<"terminal">;
|
|
445
|
+
}, z.core.$strict>;
|
|
446
|
+
}, z.core.$strict>]>;
|
|
447
|
+
declare const SandboxExecWaitRequestSchema: z.ZodObject<{
|
|
448
|
+
operation: z.ZodObject<{
|
|
449
|
+
operationId: z.ZodString;
|
|
450
|
+
owningGeneration: z.ZodString;
|
|
451
|
+
}, z.core.$strict>;
|
|
452
|
+
timeoutMs: z.ZodNumber;
|
|
453
|
+
}, z.core.$strict>;
|
|
454
|
+
declare const SandboxExecWaitResultSchema: z.ZodObject<{
|
|
455
|
+
exitCode: z.ZodOptional<z.ZodNumber>;
|
|
456
|
+
operation: z.ZodObject<{
|
|
457
|
+
operationId: z.ZodString;
|
|
458
|
+
owningGeneration: z.ZodString;
|
|
459
|
+
}, z.core.$strict>;
|
|
460
|
+
outcome: z.ZodUnion<readonly [z.ZodObject<{
|
|
461
|
+
certainty: z.ZodLiteral<"proven">;
|
|
462
|
+
kind: z.ZodLiteral<"not-dispatched">;
|
|
463
|
+
retryClass: z.ZodLiteral<"safe-before-dispatch">;
|
|
464
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
465
|
+
certainty: z.ZodLiteral<"proven">;
|
|
466
|
+
completion: z.ZodLiteral<"succeeded">;
|
|
467
|
+
kind: z.ZodLiteral<"completed">;
|
|
468
|
+
retryClass: z.ZodLiteral<"forbidden">;
|
|
469
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
470
|
+
certainty: z.ZodLiteral<"proven">;
|
|
471
|
+
completion: z.ZodLiteral<"failed">;
|
|
472
|
+
kind: z.ZodLiteral<"completed">;
|
|
473
|
+
retryClass: z.ZodEnum<{
|
|
474
|
+
forbidden: "forbidden";
|
|
475
|
+
"policy-gated": "policy-gated";
|
|
476
|
+
}>;
|
|
477
|
+
}, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
478
|
+
certainty: z.ZodLiteral<"proven-terminated">;
|
|
479
|
+
kind: z.ZodLiteral<"cancelled-proven">;
|
|
480
|
+
retryClass: z.ZodLiteral<"manual-only">;
|
|
481
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
482
|
+
certainty: z.ZodLiteral<"proven-terminated">;
|
|
483
|
+
kind: z.ZodLiteral<"timed-out-proven">;
|
|
484
|
+
retryClass: z.ZodLiteral<"manual-only">;
|
|
485
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
486
|
+
certainty: z.ZodLiteral<"proven-terminated">;
|
|
487
|
+
kind: z.ZodLiteral<"replaced-proven">;
|
|
488
|
+
priorSideEffects: z.ZodLiteral<"possible">;
|
|
489
|
+
retryClass: z.ZodLiteral<"manual-only">;
|
|
490
|
+
}, z.core.$strict>], "kind">, z.ZodObject<{
|
|
491
|
+
certainty: z.ZodLiteral<"side-effects-and-termination-unknown">;
|
|
492
|
+
kind: z.ZodLiteral<"ambiguous">;
|
|
493
|
+
retryClass: z.ZodLiteral<"forbidden">;
|
|
494
|
+
}, z.core.$strict>]>;
|
|
495
|
+
}, z.core.$strict>;
|
|
496
|
+
declare const SandboxExecCancelRequestSchema: z.ZodObject<{
|
|
497
|
+
operation: z.ZodObject<{
|
|
498
|
+
operationId: z.ZodString;
|
|
499
|
+
owningGeneration: z.ZodString;
|
|
500
|
+
}, z.core.$strict>;
|
|
501
|
+
}, z.core.$strict>;
|
|
502
|
+
declare const SandboxExecCancelResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
503
|
+
kind: z.ZodLiteral<"running">;
|
|
504
|
+
operation: z.ZodObject<{
|
|
505
|
+
operationId: z.ZodString;
|
|
506
|
+
owningGeneration: z.ZodString;
|
|
507
|
+
}, z.core.$strict>;
|
|
508
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
509
|
+
kind: z.ZodLiteral<"cancel-request-accepted">;
|
|
510
|
+
operation: z.ZodObject<{
|
|
511
|
+
operationId: z.ZodString;
|
|
512
|
+
owningGeneration: z.ZodString;
|
|
513
|
+
}, z.core.$strict>;
|
|
514
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
515
|
+
kind: z.ZodLiteral<"cancellation-pending">;
|
|
516
|
+
operation: z.ZodObject<{
|
|
517
|
+
operationId: z.ZodString;
|
|
518
|
+
owningGeneration: z.ZodString;
|
|
519
|
+
}, z.core.$strict>;
|
|
520
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
521
|
+
kind: z.ZodLiteral<"termination-proven">;
|
|
522
|
+
operation: z.ZodObject<{
|
|
523
|
+
operationId: z.ZodString;
|
|
524
|
+
owningGeneration: z.ZodString;
|
|
525
|
+
}, z.core.$strict>;
|
|
526
|
+
outcome: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
527
|
+
certainty: z.ZodLiteral<"proven-terminated">;
|
|
528
|
+
kind: z.ZodLiteral<"cancelled-proven">;
|
|
529
|
+
retryClass: z.ZodLiteral<"manual-only">;
|
|
530
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
531
|
+
certainty: z.ZodLiteral<"proven-terminated">;
|
|
532
|
+
kind: z.ZodLiteral<"timed-out-proven">;
|
|
533
|
+
retryClass: z.ZodLiteral<"manual-only">;
|
|
534
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
535
|
+
certainty: z.ZodLiteral<"proven-terminated">;
|
|
536
|
+
kind: z.ZodLiteral<"replaced-proven">;
|
|
537
|
+
priorSideEffects: z.ZodLiteral<"possible">;
|
|
538
|
+
retryClass: z.ZodLiteral<"manual-only">;
|
|
539
|
+
}, z.core.$strict>], "kind">;
|
|
540
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
541
|
+
kind: z.ZodLiteral<"already-terminal">;
|
|
542
|
+
operation: z.ZodObject<{
|
|
543
|
+
operationId: z.ZodString;
|
|
544
|
+
owningGeneration: z.ZodString;
|
|
545
|
+
}, z.core.$strict>;
|
|
546
|
+
outcome: z.ZodUnion<readonly [z.ZodObject<{
|
|
547
|
+
certainty: z.ZodLiteral<"proven">;
|
|
548
|
+
kind: z.ZodLiteral<"not-dispatched">;
|
|
549
|
+
retryClass: z.ZodLiteral<"safe-before-dispatch">;
|
|
550
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
551
|
+
certainty: z.ZodLiteral<"proven">;
|
|
552
|
+
completion: z.ZodLiteral<"succeeded">;
|
|
553
|
+
kind: z.ZodLiteral<"completed">;
|
|
554
|
+
retryClass: z.ZodLiteral<"forbidden">;
|
|
555
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
556
|
+
certainty: z.ZodLiteral<"proven">;
|
|
557
|
+
completion: z.ZodLiteral<"failed">;
|
|
558
|
+
kind: z.ZodLiteral<"completed">;
|
|
559
|
+
retryClass: z.ZodEnum<{
|
|
560
|
+
forbidden: "forbidden";
|
|
561
|
+
"policy-gated": "policy-gated";
|
|
562
|
+
}>;
|
|
563
|
+
}, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
564
|
+
certainty: z.ZodLiteral<"proven-terminated">;
|
|
565
|
+
kind: z.ZodLiteral<"cancelled-proven">;
|
|
566
|
+
retryClass: z.ZodLiteral<"manual-only">;
|
|
567
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
568
|
+
certainty: z.ZodLiteral<"proven-terminated">;
|
|
569
|
+
kind: z.ZodLiteral<"timed-out-proven">;
|
|
570
|
+
retryClass: z.ZodLiteral<"manual-only">;
|
|
571
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
572
|
+
certainty: z.ZodLiteral<"proven-terminated">;
|
|
573
|
+
kind: z.ZodLiteral<"replaced-proven">;
|
|
574
|
+
priorSideEffects: z.ZodLiteral<"possible">;
|
|
575
|
+
retryClass: z.ZodLiteral<"manual-only">;
|
|
576
|
+
}, z.core.$strict>], "kind">, z.ZodObject<{
|
|
577
|
+
certainty: z.ZodLiteral<"side-effects-and-termination-unknown">;
|
|
578
|
+
kind: z.ZodLiteral<"ambiguous">;
|
|
579
|
+
retryClass: z.ZodLiteral<"forbidden">;
|
|
580
|
+
}, z.core.$strict>]>;
|
|
581
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
582
|
+
kind: z.ZodLiteral<"ambiguous">;
|
|
583
|
+
operation: z.ZodObject<{
|
|
584
|
+
operationId: z.ZodString;
|
|
585
|
+
owningGeneration: z.ZodString;
|
|
586
|
+
}, z.core.$strict>;
|
|
587
|
+
outcome: z.ZodObject<{
|
|
588
|
+
certainty: z.ZodLiteral<"side-effects-and-termination-unknown">;
|
|
589
|
+
kind: z.ZodLiteral<"ambiguous">;
|
|
590
|
+
retryClass: z.ZodLiteral<"forbidden">;
|
|
591
|
+
}, z.core.$strict>;
|
|
592
|
+
}, z.core.$strict>], "kind">;
|
|
593
|
+
declare const SandboxTerminalSizeSchema: z.ZodObject<{
|
|
594
|
+
columns: z.ZodNumber;
|
|
595
|
+
rows: z.ZodNumber;
|
|
596
|
+
}, z.core.$strict>;
|
|
597
|
+
type SandboxExecStartRequest = z.infer<typeof SandboxExecStartRequestSchema>;
|
|
598
|
+
type SandboxExecStartResult = z.infer<typeof SandboxExecStartResultSchema>;
|
|
599
|
+
type SandboxExecWaitRequest = z.infer<typeof SandboxExecWaitRequestSchema>;
|
|
600
|
+
type SandboxExecWaitResult = z.infer<typeof SandboxExecWaitResultSchema>;
|
|
601
|
+
type SandboxExecCancelRequest = z.infer<typeof SandboxExecCancelRequestSchema>;
|
|
602
|
+
type SandboxExecCancelResult = z.infer<typeof SandboxExecCancelResultSchema>;
|
|
603
|
+
//#endregion
|
|
604
|
+
//#region src/contracts/sandbox-filesystem-contracts.d.ts
|
|
605
|
+
declare const SandboxFsStatRequestSchema: z.ZodObject<{
|
|
606
|
+
environment: z.ZodObject<{
|
|
607
|
+
handleId: z.ZodString;
|
|
608
|
+
owningGeneration: z.ZodString;
|
|
609
|
+
kind: z.ZodLiteral<"environment">;
|
|
610
|
+
}, z.core.$strict>;
|
|
611
|
+
path: z.ZodString;
|
|
612
|
+
}, z.core.$strict>;
|
|
613
|
+
declare const SandboxFilesystemEntrySchema: z.ZodObject<{
|
|
614
|
+
byteLength: z.ZodOptional<z.ZodNumber>;
|
|
615
|
+
kind: z.ZodEnum<{
|
|
616
|
+
file: "file";
|
|
617
|
+
directory: "directory";
|
|
618
|
+
symlink: "symlink";
|
|
619
|
+
}>;
|
|
620
|
+
path: z.ZodString;
|
|
621
|
+
}, z.core.$strict>;
|
|
622
|
+
declare const SandboxFsStatResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
623
|
+
entry: z.ZodObject<{
|
|
624
|
+
byteLength: z.ZodOptional<z.ZodNumber>;
|
|
625
|
+
kind: z.ZodEnum<{
|
|
626
|
+
file: "file";
|
|
627
|
+
directory: "directory";
|
|
628
|
+
symlink: "symlink";
|
|
629
|
+
}>;
|
|
630
|
+
path: z.ZodString;
|
|
631
|
+
}, z.core.$strict>;
|
|
632
|
+
kind: z.ZodLiteral<"stat">;
|
|
633
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
634
|
+
kind: z.ZodLiteral<"not-found">;
|
|
635
|
+
path: z.ZodString;
|
|
636
|
+
}, z.core.$strict>], "kind">;
|
|
637
|
+
declare const SandboxFsListRequestSchema: z.ZodObject<{
|
|
638
|
+
environment: z.ZodObject<{
|
|
639
|
+
handleId: z.ZodString;
|
|
640
|
+
owningGeneration: z.ZodString;
|
|
641
|
+
kind: z.ZodLiteral<"environment">;
|
|
642
|
+
}, z.core.$strict>;
|
|
643
|
+
path: z.ZodString;
|
|
644
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
645
|
+
maxDepth: z.ZodNumber;
|
|
646
|
+
maxEntries: z.ZodNumber;
|
|
647
|
+
}, z.core.$strict>;
|
|
648
|
+
declare const SandboxFsListResultSchema: z.ZodObject<{
|
|
649
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
650
|
+
byteLength: z.ZodOptional<z.ZodNumber>;
|
|
651
|
+
kind: z.ZodEnum<{
|
|
652
|
+
file: "file";
|
|
653
|
+
directory: "directory";
|
|
654
|
+
symlink: "symlink";
|
|
655
|
+
}>;
|
|
656
|
+
path: z.ZodString;
|
|
657
|
+
}, z.core.$strict>>;
|
|
658
|
+
kind: z.ZodLiteral<"listed">;
|
|
659
|
+
nextCursor: z.ZodOptional<z.ZodString>;
|
|
660
|
+
}, z.core.$strict>;
|
|
661
|
+
declare const SandboxFsReadRequestSchema: z.ZodObject<{
|
|
662
|
+
environment: z.ZodObject<{
|
|
663
|
+
handleId: z.ZodString;
|
|
664
|
+
owningGeneration: z.ZodString;
|
|
665
|
+
kind: z.ZodLiteral<"environment">;
|
|
666
|
+
}, z.core.$strict>;
|
|
667
|
+
path: z.ZodString;
|
|
668
|
+
maxBytes: z.ZodNumber;
|
|
669
|
+
offsetBytes: z.ZodNumber;
|
|
670
|
+
}, z.core.$strict>;
|
|
671
|
+
declare const SandboxFsReadResultSchema: z.ZodObject<{
|
|
672
|
+
chunk: z.ZodObject<{
|
|
673
|
+
byteLength: z.ZodNumber;
|
|
674
|
+
contentBase64: z.ZodString;
|
|
675
|
+
encoding: z.ZodLiteral<"base64">;
|
|
676
|
+
}, z.core.$strict>;
|
|
677
|
+
eof: z.ZodBoolean;
|
|
678
|
+
kind: z.ZodLiteral<"read">;
|
|
679
|
+
nextOffsetBytes: z.ZodNumber;
|
|
680
|
+
path: z.ZodString;
|
|
681
|
+
}, z.core.$strict>;
|
|
682
|
+
declare const SandboxFsWriteRequestSchema: z.ZodObject<{
|
|
683
|
+
environment: z.ZodObject<{
|
|
684
|
+
handleId: z.ZodString;
|
|
685
|
+
owningGeneration: z.ZodString;
|
|
686
|
+
kind: z.ZodLiteral<"environment">;
|
|
687
|
+
}, z.core.$strict>;
|
|
688
|
+
path: z.ZodString;
|
|
689
|
+
atomic: z.ZodBoolean;
|
|
690
|
+
content: z.ZodObject<{
|
|
691
|
+
byteLength: z.ZodNumber;
|
|
692
|
+
contentBase64: z.ZodString;
|
|
693
|
+
encoding: z.ZodLiteral<"base64">;
|
|
694
|
+
}, z.core.$strict>;
|
|
695
|
+
offsetBytes: z.ZodOptional<z.ZodNumber>;
|
|
696
|
+
}, z.core.$strict>;
|
|
697
|
+
declare const SandboxFsWriteResultSchema: z.ZodObject<{
|
|
698
|
+
bytesWritten: z.ZodNumber;
|
|
699
|
+
contentDigest: z.ZodString;
|
|
700
|
+
kind: z.ZodLiteral<"written">;
|
|
701
|
+
path: z.ZodString;
|
|
702
|
+
}, z.core.$strict>;
|
|
703
|
+
declare const SandboxFsMkdirRequestSchema: z.ZodObject<{
|
|
704
|
+
environment: z.ZodObject<{
|
|
705
|
+
handleId: z.ZodString;
|
|
706
|
+
owningGeneration: z.ZodString;
|
|
707
|
+
kind: z.ZodLiteral<"environment">;
|
|
708
|
+
}, z.core.$strict>;
|
|
709
|
+
path: z.ZodString;
|
|
710
|
+
recursive: z.ZodBoolean;
|
|
711
|
+
}, z.core.$strict>;
|
|
712
|
+
declare const SandboxFsMkdirResultSchema: z.ZodObject<{
|
|
713
|
+
created: z.ZodBoolean;
|
|
714
|
+
kind: z.ZodLiteral<"directory-ready">;
|
|
715
|
+
path: z.ZodString;
|
|
716
|
+
}, z.core.$strict>;
|
|
717
|
+
declare const SandboxFsRenameRequestSchema: z.ZodObject<{
|
|
718
|
+
destinationPath: z.ZodString;
|
|
719
|
+
environment: z.ZodObject<{
|
|
720
|
+
handleId: z.ZodString;
|
|
721
|
+
owningGeneration: z.ZodString;
|
|
722
|
+
kind: z.ZodLiteral<"environment">;
|
|
723
|
+
}, z.core.$strict>;
|
|
724
|
+
replace: z.ZodBoolean;
|
|
725
|
+
sourcePath: z.ZodString;
|
|
726
|
+
}, z.core.$strict>;
|
|
727
|
+
declare const SandboxFsRenameResultSchema: z.ZodObject<{
|
|
728
|
+
destinationPath: z.ZodString;
|
|
729
|
+
kind: z.ZodLiteral<"renamed">;
|
|
730
|
+
sourcePath: z.ZodString;
|
|
731
|
+
}, z.core.$strict>;
|
|
732
|
+
declare const SandboxFsRemoveRequestSchema: z.ZodObject<{
|
|
733
|
+
environment: z.ZodObject<{
|
|
734
|
+
handleId: z.ZodString;
|
|
735
|
+
owningGeneration: z.ZodString;
|
|
736
|
+
kind: z.ZodLiteral<"environment">;
|
|
737
|
+
}, z.core.$strict>;
|
|
738
|
+
path: z.ZodString;
|
|
739
|
+
recursive: z.ZodBoolean;
|
|
740
|
+
}, z.core.$strict>;
|
|
741
|
+
declare const SandboxFsRemoveResultSchema: z.ZodObject<{
|
|
742
|
+
kind: z.ZodLiteral<"removed">;
|
|
743
|
+
path: z.ZodString;
|
|
744
|
+
removed: z.ZodBoolean;
|
|
745
|
+
}, z.core.$strict>;
|
|
746
|
+
type SandboxFsStatRequest = z.infer<typeof SandboxFsStatRequestSchema>;
|
|
747
|
+
type SandboxFsStatResult = z.infer<typeof SandboxFsStatResultSchema>;
|
|
748
|
+
type SandboxFsListRequest = z.infer<typeof SandboxFsListRequestSchema>;
|
|
749
|
+
type SandboxFsListResult = z.infer<typeof SandboxFsListResultSchema>;
|
|
750
|
+
type SandboxFsReadRequest = z.infer<typeof SandboxFsReadRequestSchema>;
|
|
751
|
+
type SandboxFsReadResult = z.infer<typeof SandboxFsReadResultSchema>;
|
|
752
|
+
type SandboxFsWriteRequest = z.infer<typeof SandboxFsWriteRequestSchema>;
|
|
753
|
+
type SandboxFsWriteResult = z.infer<typeof SandboxFsWriteResultSchema>;
|
|
754
|
+
type SandboxFsMkdirRequest = z.infer<typeof SandboxFsMkdirRequestSchema>;
|
|
755
|
+
type SandboxFsMkdirResult = z.infer<typeof SandboxFsMkdirResultSchema>;
|
|
756
|
+
type SandboxFsRenameRequest = z.infer<typeof SandboxFsRenameRequestSchema>;
|
|
757
|
+
type SandboxFsRenameResult = z.infer<typeof SandboxFsRenameResultSchema>;
|
|
758
|
+
type SandboxFsRemoveRequest = z.infer<typeof SandboxFsRemoveRequestSchema>;
|
|
759
|
+
type SandboxFsRemoveResult = z.infer<typeof SandboxFsRemoveResultSchema>;
|
|
760
|
+
//#endregion
|
|
761
|
+
//#region src/contracts/sandbox-process-contracts.d.ts
|
|
762
|
+
declare const SandboxProcessStartRequestSchema: z.ZodObject<{
|
|
763
|
+
command: z.ZodString;
|
|
764
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
765
|
+
environment: z.ZodObject<{
|
|
766
|
+
handleId: z.ZodString;
|
|
767
|
+
owningGeneration: z.ZodString;
|
|
768
|
+
kind: z.ZodLiteral<"environment">;
|
|
769
|
+
}, z.core.$strict>;
|
|
770
|
+
environmentVariables: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
771
|
+
name: z.ZodString;
|
|
772
|
+
value: z.ZodString;
|
|
773
|
+
}, z.core.$strict>>>>>;
|
|
774
|
+
maxRuntimeMs: z.ZodNumber;
|
|
775
|
+
retainOutputBytes: z.ZodNumber;
|
|
776
|
+
}, z.core.$strict>;
|
|
777
|
+
declare const SandboxProcessStartResultSchema: z.ZodObject<{
|
|
778
|
+
kind: z.ZodLiteral<"started">;
|
|
779
|
+
operation: z.ZodObject<{
|
|
780
|
+
operationId: z.ZodString;
|
|
781
|
+
owningGeneration: z.ZodString;
|
|
782
|
+
}, z.core.$strict>;
|
|
783
|
+
process: z.ZodObject<{
|
|
784
|
+
handleId: z.ZodString;
|
|
785
|
+
owningGeneration: z.ZodString;
|
|
786
|
+
kind: z.ZodLiteral<"process">;
|
|
787
|
+
}, z.core.$strict>;
|
|
788
|
+
streams: z.ZodArray<z.ZodObject<{
|
|
789
|
+
handleId: z.ZodString;
|
|
790
|
+
owningGeneration: z.ZodString;
|
|
791
|
+
kind: z.ZodLiteral<"stream">;
|
|
792
|
+
channel: z.ZodEnum<{
|
|
793
|
+
stdin: "stdin";
|
|
794
|
+
stdout: "stdout";
|
|
795
|
+
stderr: "stderr";
|
|
796
|
+
pty: "pty";
|
|
797
|
+
}>;
|
|
798
|
+
}, z.core.$strict>>;
|
|
799
|
+
}, z.core.$strict>;
|
|
800
|
+
declare const SandboxProcessHandleRequestSchema: z.ZodObject<{
|
|
801
|
+
process: z.ZodObject<{
|
|
802
|
+
handleId: z.ZodString;
|
|
803
|
+
owningGeneration: z.ZodString;
|
|
804
|
+
kind: z.ZodLiteral<"process">;
|
|
805
|
+
}, z.core.$strict>;
|
|
806
|
+
}, z.core.$strict>;
|
|
807
|
+
declare const SandboxProcessStatusResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
808
|
+
kind: z.ZodLiteral<"running">;
|
|
809
|
+
operation: z.ZodObject<{
|
|
810
|
+
operationId: z.ZodString;
|
|
811
|
+
owningGeneration: z.ZodString;
|
|
812
|
+
}, z.core.$strict>;
|
|
813
|
+
process: z.ZodObject<{
|
|
814
|
+
handleId: z.ZodString;
|
|
815
|
+
owningGeneration: z.ZodString;
|
|
816
|
+
kind: z.ZodLiteral<"process">;
|
|
817
|
+
}, z.core.$strict>;
|
|
818
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
819
|
+
kind: z.ZodLiteral<"terminal">;
|
|
820
|
+
operation: z.ZodObject<{
|
|
821
|
+
operationId: z.ZodString;
|
|
822
|
+
owningGeneration: z.ZodString;
|
|
823
|
+
}, z.core.$strict>;
|
|
824
|
+
outcome: z.ZodUnion<readonly [z.ZodObject<{
|
|
825
|
+
certainty: z.ZodLiteral<"proven">;
|
|
826
|
+
kind: z.ZodLiteral<"not-dispatched">;
|
|
827
|
+
retryClass: z.ZodLiteral<"safe-before-dispatch">;
|
|
828
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
829
|
+
certainty: z.ZodLiteral<"proven">;
|
|
830
|
+
completion: z.ZodLiteral<"succeeded">;
|
|
831
|
+
kind: z.ZodLiteral<"completed">;
|
|
832
|
+
retryClass: z.ZodLiteral<"forbidden">;
|
|
833
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
834
|
+
certainty: z.ZodLiteral<"proven">;
|
|
835
|
+
completion: z.ZodLiteral<"failed">;
|
|
836
|
+
kind: z.ZodLiteral<"completed">;
|
|
837
|
+
retryClass: z.ZodEnum<{
|
|
838
|
+
forbidden: "forbidden";
|
|
839
|
+
"policy-gated": "policy-gated";
|
|
840
|
+
}>;
|
|
841
|
+
}, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
842
|
+
certainty: z.ZodLiteral<"proven-terminated">;
|
|
843
|
+
kind: z.ZodLiteral<"cancelled-proven">;
|
|
844
|
+
retryClass: z.ZodLiteral<"manual-only">;
|
|
845
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
846
|
+
certainty: z.ZodLiteral<"proven-terminated">;
|
|
847
|
+
kind: z.ZodLiteral<"timed-out-proven">;
|
|
848
|
+
retryClass: z.ZodLiteral<"manual-only">;
|
|
849
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
850
|
+
certainty: z.ZodLiteral<"proven-terminated">;
|
|
851
|
+
kind: z.ZodLiteral<"replaced-proven">;
|
|
852
|
+
priorSideEffects: z.ZodLiteral<"possible">;
|
|
853
|
+
retryClass: z.ZodLiteral<"manual-only">;
|
|
854
|
+
}, z.core.$strict>], "kind">, z.ZodObject<{
|
|
855
|
+
certainty: z.ZodLiteral<"side-effects-and-termination-unknown">;
|
|
856
|
+
kind: z.ZodLiteral<"ambiguous">;
|
|
857
|
+
retryClass: z.ZodLiteral<"forbidden">;
|
|
858
|
+
}, z.core.$strict>]>;
|
|
859
|
+
process: z.ZodObject<{
|
|
860
|
+
handleId: z.ZodString;
|
|
861
|
+
owningGeneration: z.ZodString;
|
|
862
|
+
kind: z.ZodLiteral<"process">;
|
|
863
|
+
}, z.core.$strict>;
|
|
864
|
+
}, z.core.$strict>], "kind">;
|
|
865
|
+
declare const SandboxProcessWaitRequestSchema: z.ZodObject<{
|
|
866
|
+
process: z.ZodObject<{
|
|
867
|
+
handleId: z.ZodString;
|
|
868
|
+
owningGeneration: z.ZodString;
|
|
869
|
+
kind: z.ZodLiteral<"process">;
|
|
870
|
+
}, z.core.$strict>;
|
|
871
|
+
timeoutMs: z.ZodNumber;
|
|
872
|
+
}, z.core.$strict>;
|
|
873
|
+
declare const SandboxProcessWaitResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
874
|
+
kind: z.ZodLiteral<"running">;
|
|
875
|
+
operation: z.ZodObject<{
|
|
876
|
+
operationId: z.ZodString;
|
|
877
|
+
owningGeneration: z.ZodString;
|
|
878
|
+
}, z.core.$strict>;
|
|
879
|
+
process: z.ZodObject<{
|
|
880
|
+
handleId: z.ZodString;
|
|
881
|
+
owningGeneration: z.ZodString;
|
|
882
|
+
kind: z.ZodLiteral<"process">;
|
|
883
|
+
}, z.core.$strict>;
|
|
884
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
885
|
+
kind: z.ZodLiteral<"terminal">;
|
|
886
|
+
operation: z.ZodObject<{
|
|
887
|
+
operationId: z.ZodString;
|
|
888
|
+
owningGeneration: z.ZodString;
|
|
889
|
+
}, z.core.$strict>;
|
|
890
|
+
outcome: z.ZodUnion<readonly [z.ZodObject<{
|
|
891
|
+
certainty: z.ZodLiteral<"proven">;
|
|
892
|
+
kind: z.ZodLiteral<"not-dispatched">;
|
|
893
|
+
retryClass: z.ZodLiteral<"safe-before-dispatch">;
|
|
894
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
895
|
+
certainty: z.ZodLiteral<"proven">;
|
|
896
|
+
completion: z.ZodLiteral<"succeeded">;
|
|
897
|
+
kind: z.ZodLiteral<"completed">;
|
|
898
|
+
retryClass: z.ZodLiteral<"forbidden">;
|
|
899
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
900
|
+
certainty: z.ZodLiteral<"proven">;
|
|
901
|
+
completion: z.ZodLiteral<"failed">;
|
|
902
|
+
kind: z.ZodLiteral<"completed">;
|
|
903
|
+
retryClass: z.ZodEnum<{
|
|
904
|
+
forbidden: "forbidden";
|
|
905
|
+
"policy-gated": "policy-gated";
|
|
906
|
+
}>;
|
|
907
|
+
}, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
908
|
+
certainty: z.ZodLiteral<"proven-terminated">;
|
|
909
|
+
kind: z.ZodLiteral<"cancelled-proven">;
|
|
910
|
+
retryClass: z.ZodLiteral<"manual-only">;
|
|
911
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
912
|
+
certainty: z.ZodLiteral<"proven-terminated">;
|
|
913
|
+
kind: z.ZodLiteral<"timed-out-proven">;
|
|
914
|
+
retryClass: z.ZodLiteral<"manual-only">;
|
|
915
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
916
|
+
certainty: z.ZodLiteral<"proven-terminated">;
|
|
917
|
+
kind: z.ZodLiteral<"replaced-proven">;
|
|
918
|
+
priorSideEffects: z.ZodLiteral<"possible">;
|
|
919
|
+
retryClass: z.ZodLiteral<"manual-only">;
|
|
920
|
+
}, z.core.$strict>], "kind">, z.ZodObject<{
|
|
921
|
+
certainty: z.ZodLiteral<"side-effects-and-termination-unknown">;
|
|
922
|
+
kind: z.ZodLiteral<"ambiguous">;
|
|
923
|
+
retryClass: z.ZodLiteral<"forbidden">;
|
|
924
|
+
}, z.core.$strict>]>;
|
|
925
|
+
process: z.ZodObject<{
|
|
926
|
+
handleId: z.ZodString;
|
|
927
|
+
owningGeneration: z.ZodString;
|
|
928
|
+
kind: z.ZodLiteral<"process">;
|
|
929
|
+
}, z.core.$strict>;
|
|
930
|
+
}, z.core.$strict>], "kind">;
|
|
931
|
+
declare const SandboxProcessLogsRequestSchema: z.ZodObject<{
|
|
932
|
+
process: z.ZodObject<{
|
|
933
|
+
handleId: z.ZodString;
|
|
934
|
+
owningGeneration: z.ZodString;
|
|
935
|
+
kind: z.ZodLiteral<"process">;
|
|
936
|
+
}, z.core.$strict>;
|
|
937
|
+
channels: z.ZodArray<z.ZodEnum<{
|
|
938
|
+
stdin: "stdin";
|
|
939
|
+
stdout: "stdout";
|
|
940
|
+
stderr: "stderr";
|
|
941
|
+
pty: "pty";
|
|
942
|
+
}>>;
|
|
943
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
944
|
+
maxBytes: z.ZodNumber;
|
|
945
|
+
}, z.core.$strict>;
|
|
946
|
+
declare const SandboxProcessLogChunkSchema: z.ZodObject<{
|
|
947
|
+
channel: z.ZodEnum<{
|
|
948
|
+
stdin: "stdin";
|
|
949
|
+
stdout: "stdout";
|
|
950
|
+
stderr: "stderr";
|
|
951
|
+
pty: "pty";
|
|
952
|
+
}>;
|
|
953
|
+
chunk: z.ZodObject<{
|
|
954
|
+
byteLength: z.ZodNumber;
|
|
955
|
+
contentBase64: z.ZodString;
|
|
956
|
+
encoding: z.ZodLiteral<"base64">;
|
|
957
|
+
}, z.core.$strict>;
|
|
958
|
+
sequence: z.ZodNumber;
|
|
959
|
+
}, z.core.$strict>;
|
|
960
|
+
declare const SandboxProcessLogsResultSchema: z.ZodObject<{
|
|
961
|
+
chunks: z.ZodArray<z.ZodObject<{
|
|
962
|
+
channel: z.ZodEnum<{
|
|
963
|
+
stdin: "stdin";
|
|
964
|
+
stdout: "stdout";
|
|
965
|
+
stderr: "stderr";
|
|
966
|
+
pty: "pty";
|
|
967
|
+
}>;
|
|
968
|
+
chunk: z.ZodObject<{
|
|
969
|
+
byteLength: z.ZodNumber;
|
|
970
|
+
contentBase64: z.ZodString;
|
|
971
|
+
encoding: z.ZodLiteral<"base64">;
|
|
972
|
+
}, z.core.$strict>;
|
|
973
|
+
sequence: z.ZodNumber;
|
|
974
|
+
}, z.core.$strict>>;
|
|
975
|
+
kind: z.ZodLiteral<"logs">;
|
|
976
|
+
nextCursor: z.ZodOptional<z.ZodString>;
|
|
977
|
+
process: z.ZodObject<{
|
|
978
|
+
handleId: z.ZodString;
|
|
979
|
+
owningGeneration: z.ZodString;
|
|
980
|
+
kind: z.ZodLiteral<"process">;
|
|
981
|
+
}, z.core.$strict>;
|
|
982
|
+
truncated: z.ZodBoolean;
|
|
983
|
+
}, z.core.$strict>;
|
|
984
|
+
declare const SandboxProcessCancelRequestSchema: z.ZodObject<{
|
|
985
|
+
process: z.ZodObject<{
|
|
986
|
+
handleId: z.ZodString;
|
|
987
|
+
owningGeneration: z.ZodString;
|
|
988
|
+
kind: z.ZodLiteral<"process">;
|
|
989
|
+
}, z.core.$strict>;
|
|
990
|
+
}, z.core.$strict>;
|
|
991
|
+
declare const SandboxProcessCancelResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
992
|
+
kind: z.ZodLiteral<"running">;
|
|
993
|
+
operation: z.ZodObject<{
|
|
994
|
+
operationId: z.ZodString;
|
|
995
|
+
owningGeneration: z.ZodString;
|
|
996
|
+
}, z.core.$strict>;
|
|
997
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
998
|
+
kind: z.ZodLiteral<"cancel-request-accepted">;
|
|
999
|
+
operation: z.ZodObject<{
|
|
1000
|
+
operationId: z.ZodString;
|
|
1001
|
+
owningGeneration: z.ZodString;
|
|
1002
|
+
}, z.core.$strict>;
|
|
1003
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1004
|
+
kind: z.ZodLiteral<"cancellation-pending">;
|
|
1005
|
+
operation: z.ZodObject<{
|
|
1006
|
+
operationId: z.ZodString;
|
|
1007
|
+
owningGeneration: z.ZodString;
|
|
1008
|
+
}, z.core.$strict>;
|
|
1009
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1010
|
+
kind: z.ZodLiteral<"termination-proven">;
|
|
1011
|
+
operation: z.ZodObject<{
|
|
1012
|
+
operationId: z.ZodString;
|
|
1013
|
+
owningGeneration: z.ZodString;
|
|
1014
|
+
}, z.core.$strict>;
|
|
1015
|
+
outcome: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1016
|
+
certainty: z.ZodLiteral<"proven-terminated">;
|
|
1017
|
+
kind: z.ZodLiteral<"cancelled-proven">;
|
|
1018
|
+
retryClass: z.ZodLiteral<"manual-only">;
|
|
1019
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1020
|
+
certainty: z.ZodLiteral<"proven-terminated">;
|
|
1021
|
+
kind: z.ZodLiteral<"timed-out-proven">;
|
|
1022
|
+
retryClass: z.ZodLiteral<"manual-only">;
|
|
1023
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1024
|
+
certainty: z.ZodLiteral<"proven-terminated">;
|
|
1025
|
+
kind: z.ZodLiteral<"replaced-proven">;
|
|
1026
|
+
priorSideEffects: z.ZodLiteral<"possible">;
|
|
1027
|
+
retryClass: z.ZodLiteral<"manual-only">;
|
|
1028
|
+
}, z.core.$strict>], "kind">;
|
|
1029
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1030
|
+
kind: z.ZodLiteral<"already-terminal">;
|
|
1031
|
+
operation: z.ZodObject<{
|
|
1032
|
+
operationId: z.ZodString;
|
|
1033
|
+
owningGeneration: z.ZodString;
|
|
1034
|
+
}, z.core.$strict>;
|
|
1035
|
+
outcome: z.ZodUnion<readonly [z.ZodObject<{
|
|
1036
|
+
certainty: z.ZodLiteral<"proven">;
|
|
1037
|
+
kind: z.ZodLiteral<"not-dispatched">;
|
|
1038
|
+
retryClass: z.ZodLiteral<"safe-before-dispatch">;
|
|
1039
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1040
|
+
certainty: z.ZodLiteral<"proven">;
|
|
1041
|
+
completion: z.ZodLiteral<"succeeded">;
|
|
1042
|
+
kind: z.ZodLiteral<"completed">;
|
|
1043
|
+
retryClass: z.ZodLiteral<"forbidden">;
|
|
1044
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1045
|
+
certainty: z.ZodLiteral<"proven">;
|
|
1046
|
+
completion: z.ZodLiteral<"failed">;
|
|
1047
|
+
kind: z.ZodLiteral<"completed">;
|
|
1048
|
+
retryClass: z.ZodEnum<{
|
|
1049
|
+
forbidden: "forbidden";
|
|
1050
|
+
"policy-gated": "policy-gated";
|
|
1051
|
+
}>;
|
|
1052
|
+
}, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1053
|
+
certainty: z.ZodLiteral<"proven-terminated">;
|
|
1054
|
+
kind: z.ZodLiteral<"cancelled-proven">;
|
|
1055
|
+
retryClass: z.ZodLiteral<"manual-only">;
|
|
1056
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1057
|
+
certainty: z.ZodLiteral<"proven-terminated">;
|
|
1058
|
+
kind: z.ZodLiteral<"timed-out-proven">;
|
|
1059
|
+
retryClass: z.ZodLiteral<"manual-only">;
|
|
1060
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1061
|
+
certainty: z.ZodLiteral<"proven-terminated">;
|
|
1062
|
+
kind: z.ZodLiteral<"replaced-proven">;
|
|
1063
|
+
priorSideEffects: z.ZodLiteral<"possible">;
|
|
1064
|
+
retryClass: z.ZodLiteral<"manual-only">;
|
|
1065
|
+
}, z.core.$strict>], "kind">, z.ZodObject<{
|
|
1066
|
+
certainty: z.ZodLiteral<"side-effects-and-termination-unknown">;
|
|
1067
|
+
kind: z.ZodLiteral<"ambiguous">;
|
|
1068
|
+
retryClass: z.ZodLiteral<"forbidden">;
|
|
1069
|
+
}, z.core.$strict>]>;
|
|
1070
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1071
|
+
kind: z.ZodLiteral<"ambiguous">;
|
|
1072
|
+
operation: z.ZodObject<{
|
|
1073
|
+
operationId: z.ZodString;
|
|
1074
|
+
owningGeneration: z.ZodString;
|
|
1075
|
+
}, z.core.$strict>;
|
|
1076
|
+
outcome: z.ZodObject<{
|
|
1077
|
+
certainty: z.ZodLiteral<"side-effects-and-termination-unknown">;
|
|
1078
|
+
kind: z.ZodLiteral<"ambiguous">;
|
|
1079
|
+
retryClass: z.ZodLiteral<"forbidden">;
|
|
1080
|
+
}, z.core.$strict>;
|
|
1081
|
+
}, z.core.$strict>], "kind">;
|
|
1082
|
+
type SandboxProcessStartRequest = z.infer<typeof SandboxProcessStartRequestSchema>;
|
|
1083
|
+
type SandboxProcessStartResult = z.infer<typeof SandboxProcessStartResultSchema>;
|
|
1084
|
+
type SandboxProcessStatusRequest = z.infer<typeof SandboxProcessHandleRequestSchema>;
|
|
1085
|
+
type SandboxProcessStatusResult = z.infer<typeof SandboxProcessStatusResultSchema>;
|
|
1086
|
+
type SandboxProcessWaitRequest = z.infer<typeof SandboxProcessWaitRequestSchema>;
|
|
1087
|
+
type SandboxProcessWaitResult = z.infer<typeof SandboxProcessWaitResultSchema>;
|
|
1088
|
+
type SandboxProcessLogsRequest = z.infer<typeof SandboxProcessLogsRequestSchema>;
|
|
1089
|
+
type SandboxProcessLogsResult = z.infer<typeof SandboxProcessLogsResultSchema>;
|
|
1090
|
+
type SandboxProcessCancelRequest = z.infer<typeof SandboxProcessCancelRequestSchema>;
|
|
1091
|
+
type SandboxProcessCancelResult = z.infer<typeof SandboxProcessCancelResultSchema>;
|
|
1092
|
+
//#endregion
|
|
1093
|
+
//#region src/contracts/sandbox-stream-contracts.d.ts
|
|
1094
|
+
declare const SandboxStreamReadRequestSchema: z.ZodObject<{
|
|
1095
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
1096
|
+
maxBytes: z.ZodNumber;
|
|
1097
|
+
stream: z.ZodObject<{
|
|
1098
|
+
handleId: z.ZodString;
|
|
1099
|
+
owningGeneration: z.ZodString;
|
|
1100
|
+
kind: z.ZodLiteral<"stream">;
|
|
1101
|
+
channel: z.ZodEnum<{
|
|
1102
|
+
stdin: "stdin";
|
|
1103
|
+
stdout: "stdout";
|
|
1104
|
+
stderr: "stderr";
|
|
1105
|
+
pty: "pty";
|
|
1106
|
+
}>;
|
|
1107
|
+
}, z.core.$strict>;
|
|
1108
|
+
}, z.core.$strict>;
|
|
1109
|
+
declare const SandboxStreamReadResultSchema: z.ZodObject<{
|
|
1110
|
+
chunk: z.ZodObject<{
|
|
1111
|
+
byteLength: z.ZodNumber;
|
|
1112
|
+
contentBase64: z.ZodString;
|
|
1113
|
+
encoding: z.ZodLiteral<"base64">;
|
|
1114
|
+
}, z.core.$strict>;
|
|
1115
|
+
eof: z.ZodBoolean;
|
|
1116
|
+
kind: z.ZodLiteral<"read">;
|
|
1117
|
+
nextCursor: z.ZodOptional<z.ZodString>;
|
|
1118
|
+
sequence: z.ZodNumber;
|
|
1119
|
+
stream: z.ZodObject<{
|
|
1120
|
+
handleId: z.ZodString;
|
|
1121
|
+
owningGeneration: z.ZodString;
|
|
1122
|
+
kind: z.ZodLiteral<"stream">;
|
|
1123
|
+
channel: z.ZodEnum<{
|
|
1124
|
+
stdin: "stdin";
|
|
1125
|
+
stdout: "stdout";
|
|
1126
|
+
stderr: "stderr";
|
|
1127
|
+
pty: "pty";
|
|
1128
|
+
}>;
|
|
1129
|
+
}, z.core.$strict>;
|
|
1130
|
+
}, z.core.$strict>;
|
|
1131
|
+
declare const SandboxStreamWriteRequestSchema: z.ZodObject<{
|
|
1132
|
+
content: z.ZodObject<{
|
|
1133
|
+
byteLength: z.ZodNumber;
|
|
1134
|
+
contentBase64: z.ZodString;
|
|
1135
|
+
encoding: z.ZodLiteral<"base64">;
|
|
1136
|
+
}, z.core.$strict>;
|
|
1137
|
+
contentDigest: z.ZodString;
|
|
1138
|
+
sequence: z.ZodNumber;
|
|
1139
|
+
stream: z.ZodObject<{
|
|
1140
|
+
handleId: z.ZodString;
|
|
1141
|
+
owningGeneration: z.ZodString;
|
|
1142
|
+
kind: z.ZodLiteral<"stream">;
|
|
1143
|
+
channel: z.ZodEnum<{
|
|
1144
|
+
stdin: "stdin";
|
|
1145
|
+
stdout: "stdout";
|
|
1146
|
+
stderr: "stderr";
|
|
1147
|
+
pty: "pty";
|
|
1148
|
+
}>;
|
|
1149
|
+
}, z.core.$strict>;
|
|
1150
|
+
}, z.core.$strict>;
|
|
1151
|
+
declare const SandboxStreamWriteResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1152
|
+
bytesWritten: z.ZodNumber;
|
|
1153
|
+
kind: z.ZodLiteral<"written">;
|
|
1154
|
+
sequence: z.ZodNumber;
|
|
1155
|
+
stream: z.ZodObject<{
|
|
1156
|
+
handleId: z.ZodString;
|
|
1157
|
+
owningGeneration: z.ZodString;
|
|
1158
|
+
kind: z.ZodLiteral<"stream">;
|
|
1159
|
+
channel: z.ZodEnum<{
|
|
1160
|
+
stdin: "stdin";
|
|
1161
|
+
stdout: "stdout";
|
|
1162
|
+
stderr: "stderr";
|
|
1163
|
+
pty: "pty";
|
|
1164
|
+
}>;
|
|
1165
|
+
}, z.core.$strict>;
|
|
1166
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1167
|
+
kind: z.ZodLiteral<"already-written">;
|
|
1168
|
+
sequence: z.ZodNumber;
|
|
1169
|
+
stream: z.ZodObject<{
|
|
1170
|
+
handleId: z.ZodString;
|
|
1171
|
+
owningGeneration: z.ZodString;
|
|
1172
|
+
kind: z.ZodLiteral<"stream">;
|
|
1173
|
+
channel: z.ZodEnum<{
|
|
1174
|
+
stdin: "stdin";
|
|
1175
|
+
stdout: "stdout";
|
|
1176
|
+
stderr: "stderr";
|
|
1177
|
+
pty: "pty";
|
|
1178
|
+
}>;
|
|
1179
|
+
}, z.core.$strict>;
|
|
1180
|
+
}, z.core.$strict>], "kind">;
|
|
1181
|
+
declare const SandboxStreamCloseRequestSchema: z.ZodObject<{
|
|
1182
|
+
stream: z.ZodObject<{
|
|
1183
|
+
handleId: z.ZodString;
|
|
1184
|
+
owningGeneration: z.ZodString;
|
|
1185
|
+
kind: z.ZodLiteral<"stream">;
|
|
1186
|
+
channel: z.ZodEnum<{
|
|
1187
|
+
stdin: "stdin";
|
|
1188
|
+
stdout: "stdout";
|
|
1189
|
+
stderr: "stderr";
|
|
1190
|
+
pty: "pty";
|
|
1191
|
+
}>;
|
|
1192
|
+
}, z.core.$strict>;
|
|
1193
|
+
}, z.core.$strict>;
|
|
1194
|
+
declare const SandboxStreamCloseResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1195
|
+
kind: z.ZodLiteral<"closed">;
|
|
1196
|
+
stream: z.ZodObject<{
|
|
1197
|
+
handleId: z.ZodString;
|
|
1198
|
+
owningGeneration: z.ZodString;
|
|
1199
|
+
kind: z.ZodLiteral<"stream">;
|
|
1200
|
+
channel: z.ZodEnum<{
|
|
1201
|
+
stdin: "stdin";
|
|
1202
|
+
stdout: "stdout";
|
|
1203
|
+
stderr: "stderr";
|
|
1204
|
+
pty: "pty";
|
|
1205
|
+
}>;
|
|
1206
|
+
}, z.core.$strict>;
|
|
1207
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1208
|
+
kind: z.ZodLiteral<"already-closed">;
|
|
1209
|
+
stream: z.ZodObject<{
|
|
1210
|
+
handleId: z.ZodString;
|
|
1211
|
+
owningGeneration: z.ZodString;
|
|
1212
|
+
kind: z.ZodLiteral<"stream">;
|
|
1213
|
+
channel: z.ZodEnum<{
|
|
1214
|
+
stdin: "stdin";
|
|
1215
|
+
stdout: "stdout";
|
|
1216
|
+
stderr: "stderr";
|
|
1217
|
+
pty: "pty";
|
|
1218
|
+
}>;
|
|
1219
|
+
}, z.core.$strict>;
|
|
1220
|
+
}, z.core.$strict>], "kind">;
|
|
1221
|
+
type SandboxStreamReadRequest = z.infer<typeof SandboxStreamReadRequestSchema>;
|
|
1222
|
+
type SandboxStreamReadResult = z.infer<typeof SandboxStreamReadResultSchema>;
|
|
1223
|
+
type SandboxStreamWriteRequest = z.infer<typeof SandboxStreamWriteRequestSchema>;
|
|
1224
|
+
type SandboxStreamWriteResult = z.infer<typeof SandboxStreamWriteResultSchema>;
|
|
1225
|
+
type SandboxStreamCloseRequest = z.infer<typeof SandboxStreamCloseRequestSchema>;
|
|
1226
|
+
type SandboxStreamCloseResult = z.infer<typeof SandboxStreamCloseResultSchema>;
|
|
1227
|
+
//#endregion
|
|
1228
|
+
//#region src/contracts/sandbox-terminal-contracts.d.ts
|
|
1229
|
+
declare const SandboxTerminalAttachRequestSchema: z.ZodObject<{
|
|
1230
|
+
operation: z.ZodObject<{
|
|
1231
|
+
operationId: z.ZodString;
|
|
1232
|
+
owningGeneration: z.ZodString;
|
|
1233
|
+
}, z.core.$strict>;
|
|
1234
|
+
size: z.ZodObject<{
|
|
1235
|
+
columns: z.ZodNumber;
|
|
1236
|
+
rows: z.ZodNumber;
|
|
1237
|
+
}, z.core.$strict>;
|
|
1238
|
+
}, z.core.$strict>;
|
|
1239
|
+
declare const SandboxTerminalAttachResultSchema: z.ZodObject<{
|
|
1240
|
+
input: z.ZodObject<{
|
|
1241
|
+
handleId: z.ZodString;
|
|
1242
|
+
owningGeneration: z.ZodString;
|
|
1243
|
+
kind: z.ZodLiteral<"stream">;
|
|
1244
|
+
channel: z.ZodEnum<{
|
|
1245
|
+
stdin: "stdin";
|
|
1246
|
+
stdout: "stdout";
|
|
1247
|
+
stderr: "stderr";
|
|
1248
|
+
pty: "pty";
|
|
1249
|
+
}>;
|
|
1250
|
+
}, z.core.$strict>;
|
|
1251
|
+
kind: z.ZodLiteral<"attached">;
|
|
1252
|
+
output: z.ZodObject<{
|
|
1253
|
+
handleId: z.ZodString;
|
|
1254
|
+
owningGeneration: z.ZodString;
|
|
1255
|
+
kind: z.ZodLiteral<"stream">;
|
|
1256
|
+
channel: z.ZodEnum<{
|
|
1257
|
+
stdin: "stdin";
|
|
1258
|
+
stdout: "stdout";
|
|
1259
|
+
stderr: "stderr";
|
|
1260
|
+
pty: "pty";
|
|
1261
|
+
}>;
|
|
1262
|
+
}, z.core.$strict>;
|
|
1263
|
+
terminal: z.ZodObject<{
|
|
1264
|
+
handleId: z.ZodString;
|
|
1265
|
+
owningGeneration: z.ZodString;
|
|
1266
|
+
kind: z.ZodLiteral<"terminal">;
|
|
1267
|
+
}, z.core.$strict>;
|
|
1268
|
+
}, z.core.$strict>;
|
|
1269
|
+
declare const SandboxTerminalResizeRequestSchema: z.ZodObject<{
|
|
1270
|
+
size: z.ZodObject<{
|
|
1271
|
+
columns: z.ZodNumber;
|
|
1272
|
+
rows: z.ZodNumber;
|
|
1273
|
+
}, z.core.$strict>;
|
|
1274
|
+
terminal: z.ZodObject<{
|
|
1275
|
+
handleId: z.ZodString;
|
|
1276
|
+
owningGeneration: z.ZodString;
|
|
1277
|
+
kind: z.ZodLiteral<"terminal">;
|
|
1278
|
+
}, z.core.$strict>;
|
|
1279
|
+
}, z.core.$strict>;
|
|
1280
|
+
declare const SandboxTerminalResizeResultSchema: z.ZodObject<{
|
|
1281
|
+
kind: z.ZodLiteral<"resized">;
|
|
1282
|
+
size: z.ZodObject<{
|
|
1283
|
+
columns: z.ZodNumber;
|
|
1284
|
+
rows: z.ZodNumber;
|
|
1285
|
+
}, z.core.$strict>;
|
|
1286
|
+
terminal: z.ZodObject<{
|
|
1287
|
+
handleId: z.ZodString;
|
|
1288
|
+
owningGeneration: z.ZodString;
|
|
1289
|
+
kind: z.ZodLiteral<"terminal">;
|
|
1290
|
+
}, z.core.$strict>;
|
|
1291
|
+
}, z.core.$strict>;
|
|
1292
|
+
type SandboxTerminalAttachRequest = z.infer<typeof SandboxTerminalAttachRequestSchema>;
|
|
1293
|
+
type SandboxTerminalAttachResult = z.infer<typeof SandboxTerminalAttachResultSchema>;
|
|
1294
|
+
type SandboxTerminalResizeRequest = z.infer<typeof SandboxTerminalResizeRequestSchema>;
|
|
1295
|
+
type SandboxTerminalResizeResult = z.infer<typeof SandboxTerminalResizeResultSchema>;
|
|
1296
|
+
//#endregion
|
|
1297
|
+
//#region src/contracts/trusted-context-contracts.d.ts
|
|
1298
|
+
declare const GatewayRuntimeFrameworkKindSchema: z.ZodEnum<{
|
|
1299
|
+
openclaw: "openclaw";
|
|
1300
|
+
hermes: "hermes";
|
|
1301
|
+
}>;
|
|
1302
|
+
declare const GatewayRuntimeManagedPluginClientKindSchema: z.ZodEnum<{
|
|
1303
|
+
"openclaw-managed-plugin": "openclaw-managed-plugin";
|
|
1304
|
+
"hermes-managed-plugin": "hermes-managed-plugin";
|
|
1305
|
+
}>;
|
|
1306
|
+
declare const GatewayRuntimeFrameworkIdentitySchema: z.ZodReadonly<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1307
|
+
agentId: z.ZodString;
|
|
1308
|
+
kind: z.ZodLiteral<"openclaw">;
|
|
1309
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1310
|
+
kind: z.ZodLiteral<"hermes">;
|
|
1311
|
+
profileName: z.ZodString;
|
|
1312
|
+
}, z.core.$strict>], "kind">>;
|
|
1313
|
+
declare const GatewayRuntimeProjectionCohortDigestSchema: z.ZodString;
|
|
1314
|
+
declare const ManagedAgentProjectionSchema: z.ZodReadonly<z.ZodObject<{
|
|
1315
|
+
agentId: z.ZodString;
|
|
1316
|
+
frameworkIdentity: z.ZodReadonly<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1317
|
+
agentId: z.ZodString;
|
|
1318
|
+
kind: z.ZodLiteral<"openclaw">;
|
|
1319
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1320
|
+
kind: z.ZodLiteral<"hermes">;
|
|
1321
|
+
profileName: z.ZodString;
|
|
1322
|
+
}, z.core.$strict>], "kind">>;
|
|
1323
|
+
profileAssignmentRevision: z.ZodString;
|
|
1324
|
+
toolPortalProfileId: z.ZodString;
|
|
1325
|
+
}, z.core.$strict>>;
|
|
1326
|
+
declare const GatewayRuntimeAttachmentMetadataSchema: z.ZodObject<{
|
|
1327
|
+
attachmentGeneration: z.ZodNumber;
|
|
1328
|
+
clientKind: z.ZodEnum<{
|
|
1329
|
+
"openclaw-managed-plugin": "openclaw-managed-plugin";
|
|
1330
|
+
"hermes-managed-plugin": "hermes-managed-plugin";
|
|
1331
|
+
}>;
|
|
1332
|
+
configuredAgentIds: z.ZodArray<z.ZodString>;
|
|
1333
|
+
frameworkEpoch: z.ZodString;
|
|
1334
|
+
gatewayEpoch: z.ZodString;
|
|
1335
|
+
protocolVersion: z.ZodNumber;
|
|
1336
|
+
projectionCohortDigest: z.ZodString;
|
|
1337
|
+
runtimeEpoch: z.ZodString;
|
|
1338
|
+
schemaVersion: z.ZodNumber;
|
|
1339
|
+
}, z.core.$strict>;
|
|
1340
|
+
declare const GatewayStablePrincipalDigestSchema: z.ZodString;
|
|
1341
|
+
declare const GatewayRuntimeTrustedInvocationPrincipalSchema: z.ZodObject<{
|
|
1342
|
+
agentId: z.ZodString;
|
|
1343
|
+
frameworkIdentity: z.ZodReadonly<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1344
|
+
agentId: z.ZodString;
|
|
1345
|
+
kind: z.ZodLiteral<"openclaw">;
|
|
1346
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1347
|
+
kind: z.ZodLiteral<"hermes">;
|
|
1348
|
+
profileName: z.ZodString;
|
|
1349
|
+
}, z.core.$strict>], "kind">>;
|
|
1350
|
+
profileAssignmentRevision: z.ZodString;
|
|
1351
|
+
toolPortalProfileId: z.ZodString;
|
|
1352
|
+
}, z.core.$strict>;
|
|
1353
|
+
declare const GatewayRuntimeTrustedInvocationRequesterSchema: z.ZodObject<{
|
|
1354
|
+
authenticatedSubjectId: z.ZodString;
|
|
1355
|
+
}, z.core.$strict>;
|
|
1356
|
+
declare const GatewayRuntimeTrustedInvocationCorrelationSchema: z.ZodObject<{
|
|
1357
|
+
runId: z.ZodOptional<z.ZodString>;
|
|
1358
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
1359
|
+
sessionKey: z.ZodOptional<z.ZodString>;
|
|
1360
|
+
toolCallId: z.ZodOptional<z.ZodString>;
|
|
1361
|
+
}, z.core.$strict>;
|
|
1362
|
+
declare const GatewayRuntimeTrustedInvocationContextSchema: z.ZodObject<{
|
|
1363
|
+
correlation: z.ZodOptional<z.ZodObject<{
|
|
1364
|
+
runId: z.ZodOptional<z.ZodString>;
|
|
1365
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
1366
|
+
sessionKey: z.ZodOptional<z.ZodString>;
|
|
1367
|
+
toolCallId: z.ZodOptional<z.ZodString>;
|
|
1368
|
+
}, z.core.$strict>>;
|
|
1369
|
+
principal: z.ZodObject<{
|
|
1370
|
+
agentId: z.ZodString;
|
|
1371
|
+
frameworkIdentity: z.ZodReadonly<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1372
|
+
agentId: z.ZodString;
|
|
1373
|
+
kind: z.ZodLiteral<"openclaw">;
|
|
1374
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1375
|
+
kind: z.ZodLiteral<"hermes">;
|
|
1376
|
+
profileName: z.ZodString;
|
|
1377
|
+
}, z.core.$strict>], "kind">>;
|
|
1378
|
+
profileAssignmentRevision: z.ZodString;
|
|
1379
|
+
toolPortalProfileId: z.ZodString;
|
|
1380
|
+
}, z.core.$strict>;
|
|
1381
|
+
requester: z.ZodOptional<z.ZodObject<{
|
|
1382
|
+
authenticatedSubjectId: z.ZodString;
|
|
1383
|
+
}, z.core.$strict>>;
|
|
1384
|
+
}, z.core.$strict>;
|
|
1385
|
+
type GatewayRuntimeAttachmentMetadata = z.infer<typeof GatewayRuntimeAttachmentMetadataSchema>;
|
|
1386
|
+
type GatewayRuntimeFrameworkIdentity = z.infer<typeof GatewayRuntimeFrameworkIdentitySchema>;
|
|
1387
|
+
type GatewayRuntimeFrameworkKind = z.infer<typeof GatewayRuntimeFrameworkKindSchema>;
|
|
1388
|
+
type GatewayRuntimeManagedPluginClientKind = z.infer<typeof GatewayRuntimeManagedPluginClientKindSchema>;
|
|
1389
|
+
type ManagedAgentProjection = z.infer<typeof ManagedAgentProjectionSchema>;
|
|
1390
|
+
type GatewayRuntimeTrustedInvocationCorrelation = z.infer<typeof GatewayRuntimeTrustedInvocationCorrelationSchema>;
|
|
1391
|
+
type GatewayRuntimeTrustedInvocationContext = z.infer<typeof GatewayRuntimeTrustedInvocationContextSchema>;
|
|
1392
|
+
type GatewayStablePrincipalDigest = z.infer<typeof GatewayStablePrincipalDigestSchema>;
|
|
1393
|
+
type GatewayRuntimeTrustedInvocationPrincipal = z.infer<typeof GatewayRuntimeTrustedInvocationPrincipalSchema>;
|
|
1394
|
+
type GatewayRuntimeTrustedInvocationRequester = z.infer<typeof GatewayRuntimeTrustedInvocationRequesterSchema>;
|
|
1395
|
+
//#endregion
|
|
1396
|
+
//#region src/contracts/index.d.ts
|
|
1397
|
+
declare const SANDBOX_METHOD_CONTRACTS: {
|
|
1398
|
+
readonly 'sandbox.environment.close': {
|
|
1399
|
+
readonly request: z.ZodObject<{
|
|
1400
|
+
environment: z.ZodObject<{
|
|
1401
|
+
handleId: z.ZodString;
|
|
1402
|
+
owningGeneration: z.ZodString;
|
|
1403
|
+
kind: z.ZodLiteral<"environment">;
|
|
1404
|
+
}, z.core.$strict>;
|
|
1405
|
+
}, z.core.$strict>;
|
|
1406
|
+
readonly result: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1407
|
+
environment: z.ZodObject<{
|
|
1408
|
+
handleId: z.ZodString;
|
|
1409
|
+
owningGeneration: z.ZodString;
|
|
1410
|
+
kind: z.ZodLiteral<"environment">;
|
|
1411
|
+
}, z.core.$strict>;
|
|
1412
|
+
kind: z.ZodLiteral<"closed">;
|
|
1413
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1414
|
+
environment: z.ZodObject<{
|
|
1415
|
+
handleId: z.ZodString;
|
|
1416
|
+
owningGeneration: z.ZodString;
|
|
1417
|
+
kind: z.ZodLiteral<"environment">;
|
|
1418
|
+
}, z.core.$strict>;
|
|
1419
|
+
kind: z.ZodLiteral<"already-closed">;
|
|
1420
|
+
}, z.core.$strict>], "kind">;
|
|
1421
|
+
};
|
|
1422
|
+
readonly 'sandbox.environment.open': {
|
|
1423
|
+
readonly request: z.ZodObject<{
|
|
1424
|
+
logicalCwd: z.ZodOptional<z.ZodString>;
|
|
1425
|
+
}, z.core.$strict>;
|
|
1426
|
+
readonly result: z.ZodObject<{
|
|
1427
|
+
environment: z.ZodObject<{
|
|
1428
|
+
handleId: z.ZodString;
|
|
1429
|
+
owningGeneration: z.ZodString;
|
|
1430
|
+
kind: z.ZodLiteral<"environment">;
|
|
1431
|
+
}, z.core.$strict>;
|
|
1432
|
+
kind: z.ZodLiteral<"opened">;
|
|
1433
|
+
logicalCwd: z.ZodOptional<z.ZodString>;
|
|
1434
|
+
}, z.core.$strict>;
|
|
1435
|
+
};
|
|
1436
|
+
readonly 'sandbox.environment.status': {
|
|
1437
|
+
readonly request: z.ZodObject<{
|
|
1438
|
+
environment: z.ZodObject<{
|
|
1439
|
+
handleId: z.ZodString;
|
|
1440
|
+
owningGeneration: z.ZodString;
|
|
1441
|
+
kind: z.ZodLiteral<"environment">;
|
|
1442
|
+
}, z.core.$strict>;
|
|
1443
|
+
}, z.core.$strict>;
|
|
1444
|
+
readonly result: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1445
|
+
environment: z.ZodObject<{
|
|
1446
|
+
handleId: z.ZodString;
|
|
1447
|
+
owningGeneration: z.ZodString;
|
|
1448
|
+
kind: z.ZodLiteral<"environment">;
|
|
1449
|
+
}, z.core.$strict>;
|
|
1450
|
+
kind: z.ZodLiteral<"active">;
|
|
1451
|
+
logicalCwd: z.ZodOptional<z.ZodString>;
|
|
1452
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1453
|
+
environment: z.ZodObject<{
|
|
1454
|
+
handleId: z.ZodString;
|
|
1455
|
+
owningGeneration: z.ZodString;
|
|
1456
|
+
kind: z.ZodLiteral<"environment">;
|
|
1457
|
+
}, z.core.$strict>;
|
|
1458
|
+
kind: z.ZodLiteral<"closed">;
|
|
1459
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1460
|
+
environment: z.ZodObject<{
|
|
1461
|
+
handleId: z.ZodString;
|
|
1462
|
+
owningGeneration: z.ZodString;
|
|
1463
|
+
kind: z.ZodLiteral<"environment">;
|
|
1464
|
+
}, z.core.$strict>;
|
|
1465
|
+
kind: z.ZodLiteral<"replaced">;
|
|
1466
|
+
}, z.core.$strict>], "kind">;
|
|
1467
|
+
};
|
|
1468
|
+
readonly 'sandbox.exec.cancel': {
|
|
1469
|
+
readonly request: z.ZodObject<{
|
|
1470
|
+
operation: z.ZodObject<{
|
|
1471
|
+
operationId: z.ZodString;
|
|
1472
|
+
owningGeneration: z.ZodString;
|
|
1473
|
+
}, z.core.$strict>;
|
|
1474
|
+
}, z.core.$strict>;
|
|
1475
|
+
readonly result: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1476
|
+
kind: z.ZodLiteral<"running">;
|
|
1477
|
+
operation: z.ZodObject<{
|
|
1478
|
+
operationId: z.ZodString;
|
|
1479
|
+
owningGeneration: z.ZodString;
|
|
1480
|
+
}, z.core.$strict>;
|
|
1481
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1482
|
+
kind: z.ZodLiteral<"cancel-request-accepted">;
|
|
1483
|
+
operation: z.ZodObject<{
|
|
1484
|
+
operationId: z.ZodString;
|
|
1485
|
+
owningGeneration: z.ZodString;
|
|
1486
|
+
}, z.core.$strict>;
|
|
1487
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1488
|
+
kind: z.ZodLiteral<"cancellation-pending">;
|
|
1489
|
+
operation: z.ZodObject<{
|
|
1490
|
+
operationId: z.ZodString;
|
|
1491
|
+
owningGeneration: z.ZodString;
|
|
1492
|
+
}, z.core.$strict>;
|
|
1493
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1494
|
+
kind: z.ZodLiteral<"termination-proven">;
|
|
1495
|
+
operation: z.ZodObject<{
|
|
1496
|
+
operationId: z.ZodString;
|
|
1497
|
+
owningGeneration: z.ZodString;
|
|
1498
|
+
}, z.core.$strict>;
|
|
1499
|
+
outcome: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1500
|
+
certainty: z.ZodLiteral<"proven-terminated">;
|
|
1501
|
+
kind: z.ZodLiteral<"cancelled-proven">;
|
|
1502
|
+
retryClass: z.ZodLiteral<"manual-only">;
|
|
1503
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1504
|
+
certainty: z.ZodLiteral<"proven-terminated">;
|
|
1505
|
+
kind: z.ZodLiteral<"timed-out-proven">;
|
|
1506
|
+
retryClass: z.ZodLiteral<"manual-only">;
|
|
1507
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1508
|
+
certainty: z.ZodLiteral<"proven-terminated">;
|
|
1509
|
+
kind: z.ZodLiteral<"replaced-proven">;
|
|
1510
|
+
priorSideEffects: z.ZodLiteral<"possible">;
|
|
1511
|
+
retryClass: z.ZodLiteral<"manual-only">;
|
|
1512
|
+
}, z.core.$strict>], "kind">;
|
|
1513
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1514
|
+
kind: z.ZodLiteral<"already-terminal">;
|
|
1515
|
+
operation: z.ZodObject<{
|
|
1516
|
+
operationId: z.ZodString;
|
|
1517
|
+
owningGeneration: z.ZodString;
|
|
1518
|
+
}, z.core.$strict>;
|
|
1519
|
+
outcome: z.ZodUnion<readonly [z.ZodObject<{
|
|
1520
|
+
certainty: z.ZodLiteral<"proven">;
|
|
1521
|
+
kind: z.ZodLiteral<"not-dispatched">;
|
|
1522
|
+
retryClass: z.ZodLiteral<"safe-before-dispatch">;
|
|
1523
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1524
|
+
certainty: z.ZodLiteral<"proven">;
|
|
1525
|
+
completion: z.ZodLiteral<"succeeded">;
|
|
1526
|
+
kind: z.ZodLiteral<"completed">;
|
|
1527
|
+
retryClass: z.ZodLiteral<"forbidden">;
|
|
1528
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1529
|
+
certainty: z.ZodLiteral<"proven">;
|
|
1530
|
+
completion: z.ZodLiteral<"failed">;
|
|
1531
|
+
kind: z.ZodLiteral<"completed">;
|
|
1532
|
+
retryClass: z.ZodEnum<{
|
|
1533
|
+
forbidden: "forbidden";
|
|
1534
|
+
"policy-gated": "policy-gated";
|
|
1535
|
+
}>;
|
|
1536
|
+
}, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1537
|
+
certainty: z.ZodLiteral<"proven-terminated">;
|
|
1538
|
+
kind: z.ZodLiteral<"cancelled-proven">;
|
|
1539
|
+
retryClass: z.ZodLiteral<"manual-only">;
|
|
1540
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1541
|
+
certainty: z.ZodLiteral<"proven-terminated">;
|
|
1542
|
+
kind: z.ZodLiteral<"timed-out-proven">;
|
|
1543
|
+
retryClass: z.ZodLiteral<"manual-only">;
|
|
1544
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1545
|
+
certainty: z.ZodLiteral<"proven-terminated">;
|
|
1546
|
+
kind: z.ZodLiteral<"replaced-proven">;
|
|
1547
|
+
priorSideEffects: z.ZodLiteral<"possible">;
|
|
1548
|
+
retryClass: z.ZodLiteral<"manual-only">;
|
|
1549
|
+
}, z.core.$strict>], "kind">, z.ZodObject<{
|
|
1550
|
+
certainty: z.ZodLiteral<"side-effects-and-termination-unknown">;
|
|
1551
|
+
kind: z.ZodLiteral<"ambiguous">;
|
|
1552
|
+
retryClass: z.ZodLiteral<"forbidden">;
|
|
1553
|
+
}, z.core.$strict>]>;
|
|
1554
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1555
|
+
kind: z.ZodLiteral<"ambiguous">;
|
|
1556
|
+
operation: z.ZodObject<{
|
|
1557
|
+
operationId: z.ZodString;
|
|
1558
|
+
owningGeneration: z.ZodString;
|
|
1559
|
+
}, z.core.$strict>;
|
|
1560
|
+
outcome: z.ZodObject<{
|
|
1561
|
+
certainty: z.ZodLiteral<"side-effects-and-termination-unknown">;
|
|
1562
|
+
kind: z.ZodLiteral<"ambiguous">;
|
|
1563
|
+
retryClass: z.ZodLiteral<"forbidden">;
|
|
1564
|
+
}, z.core.$strict>;
|
|
1565
|
+
}, z.core.$strict>], "kind">;
|
|
1566
|
+
};
|
|
1567
|
+
readonly 'sandbox.exec.start': {
|
|
1568
|
+
readonly request: z.ZodObject<{
|
|
1569
|
+
command: z.ZodString;
|
|
1570
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
1571
|
+
environment: z.ZodObject<{
|
|
1572
|
+
handleId: z.ZodString;
|
|
1573
|
+
owningGeneration: z.ZodString;
|
|
1574
|
+
kind: z.ZodLiteral<"environment">;
|
|
1575
|
+
}, z.core.$strict>;
|
|
1576
|
+
environmentVariables: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
1577
|
+
name: z.ZodString;
|
|
1578
|
+
value: z.ZodString;
|
|
1579
|
+
}, z.core.$strict>>>>>;
|
|
1580
|
+
mode: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1581
|
+
kind: z.ZodLiteral<"direct">;
|
|
1582
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1583
|
+
attachTimeoutMs: z.ZodNumber;
|
|
1584
|
+
kind: z.ZodLiteral<"attachment-reserved">;
|
|
1585
|
+
terminal: z.ZodBoolean;
|
|
1586
|
+
}, z.core.$strict>], "kind">;
|
|
1587
|
+
timeoutMs: z.ZodNumber;
|
|
1588
|
+
}, z.core.$strict>;
|
|
1589
|
+
readonly result: z.ZodUnion<readonly [z.ZodObject<{
|
|
1590
|
+
kind: z.ZodLiteral<"started">;
|
|
1591
|
+
mode: z.ZodLiteral<"direct">;
|
|
1592
|
+
operation: z.ZodObject<{
|
|
1593
|
+
operationId: z.ZodString;
|
|
1594
|
+
owningGeneration: z.ZodString;
|
|
1595
|
+
}, z.core.$strict>;
|
|
1596
|
+
streams: z.ZodArray<z.ZodObject<{
|
|
1597
|
+
handleId: z.ZodString;
|
|
1598
|
+
owningGeneration: z.ZodString;
|
|
1599
|
+
kind: z.ZodLiteral<"stream">;
|
|
1600
|
+
channel: z.ZodEnum<{
|
|
1601
|
+
stdin: "stdin";
|
|
1602
|
+
stdout: "stdout";
|
|
1603
|
+
stderr: "stderr";
|
|
1604
|
+
pty: "pty";
|
|
1605
|
+
}>;
|
|
1606
|
+
}, z.core.$strict>>;
|
|
1607
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1608
|
+
kind: z.ZodLiteral<"started">;
|
|
1609
|
+
mode: z.ZodLiteral<"attachment-reserved">;
|
|
1610
|
+
operation: z.ZodObject<{
|
|
1611
|
+
operationId: z.ZodString;
|
|
1612
|
+
owningGeneration: z.ZodString;
|
|
1613
|
+
}, z.core.$strict>;
|
|
1614
|
+
terminal: z.ZodObject<{
|
|
1615
|
+
handleId: z.ZodString;
|
|
1616
|
+
owningGeneration: z.ZodString;
|
|
1617
|
+
kind: z.ZodLiteral<"terminal">;
|
|
1618
|
+
}, z.core.$strict>;
|
|
1619
|
+
}, z.core.$strict>]>;
|
|
1620
|
+
};
|
|
1621
|
+
readonly 'sandbox.exec.wait': {
|
|
1622
|
+
readonly request: z.ZodObject<{
|
|
1623
|
+
operation: z.ZodObject<{
|
|
1624
|
+
operationId: z.ZodString;
|
|
1625
|
+
owningGeneration: z.ZodString;
|
|
1626
|
+
}, z.core.$strict>;
|
|
1627
|
+
timeoutMs: z.ZodNumber;
|
|
1628
|
+
}, z.core.$strict>;
|
|
1629
|
+
readonly result: z.ZodObject<{
|
|
1630
|
+
exitCode: z.ZodOptional<z.ZodNumber>;
|
|
1631
|
+
operation: z.ZodObject<{
|
|
1632
|
+
operationId: z.ZodString;
|
|
1633
|
+
owningGeneration: z.ZodString;
|
|
1634
|
+
}, z.core.$strict>;
|
|
1635
|
+
outcome: z.ZodUnion<readonly [z.ZodObject<{
|
|
1636
|
+
certainty: z.ZodLiteral<"proven">;
|
|
1637
|
+
kind: z.ZodLiteral<"not-dispatched">;
|
|
1638
|
+
retryClass: z.ZodLiteral<"safe-before-dispatch">;
|
|
1639
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1640
|
+
certainty: z.ZodLiteral<"proven">;
|
|
1641
|
+
completion: z.ZodLiteral<"succeeded">;
|
|
1642
|
+
kind: z.ZodLiteral<"completed">;
|
|
1643
|
+
retryClass: z.ZodLiteral<"forbidden">;
|
|
1644
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1645
|
+
certainty: z.ZodLiteral<"proven">;
|
|
1646
|
+
completion: z.ZodLiteral<"failed">;
|
|
1647
|
+
kind: z.ZodLiteral<"completed">;
|
|
1648
|
+
retryClass: z.ZodEnum<{
|
|
1649
|
+
forbidden: "forbidden";
|
|
1650
|
+
"policy-gated": "policy-gated";
|
|
1651
|
+
}>;
|
|
1652
|
+
}, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1653
|
+
certainty: z.ZodLiteral<"proven-terminated">;
|
|
1654
|
+
kind: z.ZodLiteral<"cancelled-proven">;
|
|
1655
|
+
retryClass: z.ZodLiteral<"manual-only">;
|
|
1656
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1657
|
+
certainty: z.ZodLiteral<"proven-terminated">;
|
|
1658
|
+
kind: z.ZodLiteral<"timed-out-proven">;
|
|
1659
|
+
retryClass: z.ZodLiteral<"manual-only">;
|
|
1660
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1661
|
+
certainty: z.ZodLiteral<"proven-terminated">;
|
|
1662
|
+
kind: z.ZodLiteral<"replaced-proven">;
|
|
1663
|
+
priorSideEffects: z.ZodLiteral<"possible">;
|
|
1664
|
+
retryClass: z.ZodLiteral<"manual-only">;
|
|
1665
|
+
}, z.core.$strict>], "kind">, z.ZodObject<{
|
|
1666
|
+
certainty: z.ZodLiteral<"side-effects-and-termination-unknown">;
|
|
1667
|
+
kind: z.ZodLiteral<"ambiguous">;
|
|
1668
|
+
retryClass: z.ZodLiteral<"forbidden">;
|
|
1669
|
+
}, z.core.$strict>]>;
|
|
1670
|
+
}, z.core.$strict>;
|
|
1671
|
+
};
|
|
1672
|
+
readonly 'sandbox.retained-result.lookup': {
|
|
1673
|
+
readonly request: z.ZodObject<{
|
|
1674
|
+
operation: z.ZodObject<{
|
|
1675
|
+
operationId: z.ZodString;
|
|
1676
|
+
owningGeneration: z.ZodString;
|
|
1677
|
+
}, z.core.$strict>;
|
|
1678
|
+
}, z.core.$strict>;
|
|
1679
|
+
readonly result: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1680
|
+
kind: z.ZodLiteral<"retained">;
|
|
1681
|
+
operation: z.ZodObject<{
|
|
1682
|
+
operationId: z.ZodString;
|
|
1683
|
+
owningGeneration: z.ZodString;
|
|
1684
|
+
}, z.core.$strict>;
|
|
1685
|
+
outcome: z.ZodUnion<readonly [z.ZodObject<{
|
|
1686
|
+
certainty: z.ZodLiteral<"proven">;
|
|
1687
|
+
kind: z.ZodLiteral<"not-dispatched">;
|
|
1688
|
+
retryClass: z.ZodLiteral<"safe-before-dispatch">;
|
|
1689
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1690
|
+
certainty: z.ZodLiteral<"proven">;
|
|
1691
|
+
completion: z.ZodLiteral<"succeeded">;
|
|
1692
|
+
kind: z.ZodLiteral<"completed">;
|
|
1693
|
+
retryClass: z.ZodLiteral<"forbidden">;
|
|
1694
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1695
|
+
certainty: z.ZodLiteral<"proven">;
|
|
1696
|
+
completion: z.ZodLiteral<"failed">;
|
|
1697
|
+
kind: z.ZodLiteral<"completed">;
|
|
1698
|
+
retryClass: z.ZodEnum<{
|
|
1699
|
+
forbidden: "forbidden";
|
|
1700
|
+
"policy-gated": "policy-gated";
|
|
1701
|
+
}>;
|
|
1702
|
+
}, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1703
|
+
certainty: z.ZodLiteral<"proven-terminated">;
|
|
1704
|
+
kind: z.ZodLiteral<"cancelled-proven">;
|
|
1705
|
+
retryClass: z.ZodLiteral<"manual-only">;
|
|
1706
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1707
|
+
certainty: z.ZodLiteral<"proven-terminated">;
|
|
1708
|
+
kind: z.ZodLiteral<"timed-out-proven">;
|
|
1709
|
+
retryClass: z.ZodLiteral<"manual-only">;
|
|
1710
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1711
|
+
certainty: z.ZodLiteral<"proven-terminated">;
|
|
1712
|
+
kind: z.ZodLiteral<"replaced-proven">;
|
|
1713
|
+
priorSideEffects: z.ZodLiteral<"possible">;
|
|
1714
|
+
retryClass: z.ZodLiteral<"manual-only">;
|
|
1715
|
+
}, z.core.$strict>], "kind">, z.ZodObject<{
|
|
1716
|
+
certainty: z.ZodLiteral<"side-effects-and-termination-unknown">;
|
|
1717
|
+
kind: z.ZodLiteral<"ambiguous">;
|
|
1718
|
+
retryClass: z.ZodLiteral<"forbidden">;
|
|
1719
|
+
}, z.core.$strict>]>;
|
|
1720
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1721
|
+
kind: z.ZodLiteral<"pending">;
|
|
1722
|
+
operation: z.ZodObject<{
|
|
1723
|
+
operationId: z.ZodString;
|
|
1724
|
+
owningGeneration: z.ZodString;
|
|
1725
|
+
}, z.core.$strict>;
|
|
1726
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1727
|
+
kind: z.ZodLiteral<"unavailable">;
|
|
1728
|
+
reason: z.ZodLiteral<"not-retained-or-not-authorized">;
|
|
1729
|
+
}, z.core.$strict>], "kind">;
|
|
1730
|
+
};
|
|
1731
|
+
readonly 'sandbox.fs.list': {
|
|
1732
|
+
readonly request: z.ZodObject<{
|
|
1733
|
+
environment: z.ZodObject<{
|
|
1734
|
+
handleId: z.ZodString;
|
|
1735
|
+
owningGeneration: z.ZodString;
|
|
1736
|
+
kind: z.ZodLiteral<"environment">;
|
|
1737
|
+
}, z.core.$strict>;
|
|
1738
|
+
path: z.ZodString;
|
|
1739
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
1740
|
+
maxDepth: z.ZodNumber;
|
|
1741
|
+
maxEntries: z.ZodNumber;
|
|
1742
|
+
}, z.core.$strict>;
|
|
1743
|
+
readonly result: z.ZodObject<{
|
|
1744
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
1745
|
+
byteLength: z.ZodOptional<z.ZodNumber>;
|
|
1746
|
+
kind: z.ZodEnum<{
|
|
1747
|
+
file: "file";
|
|
1748
|
+
directory: "directory";
|
|
1749
|
+
symlink: "symlink";
|
|
1750
|
+
}>;
|
|
1751
|
+
path: z.ZodString;
|
|
1752
|
+
}, z.core.$strict>>;
|
|
1753
|
+
kind: z.ZodLiteral<"listed">;
|
|
1754
|
+
nextCursor: z.ZodOptional<z.ZodString>;
|
|
1755
|
+
}, z.core.$strict>;
|
|
1756
|
+
};
|
|
1757
|
+
readonly 'sandbox.fs.mkdir': {
|
|
1758
|
+
readonly request: z.ZodObject<{
|
|
1759
|
+
environment: z.ZodObject<{
|
|
1760
|
+
handleId: z.ZodString;
|
|
1761
|
+
owningGeneration: z.ZodString;
|
|
1762
|
+
kind: z.ZodLiteral<"environment">;
|
|
1763
|
+
}, z.core.$strict>;
|
|
1764
|
+
path: z.ZodString;
|
|
1765
|
+
recursive: z.ZodBoolean;
|
|
1766
|
+
}, z.core.$strict>;
|
|
1767
|
+
readonly result: z.ZodObject<{
|
|
1768
|
+
created: z.ZodBoolean;
|
|
1769
|
+
kind: z.ZodLiteral<"directory-ready">;
|
|
1770
|
+
path: z.ZodString;
|
|
1771
|
+
}, z.core.$strict>;
|
|
1772
|
+
};
|
|
1773
|
+
readonly 'sandbox.fs.read': {
|
|
1774
|
+
readonly request: z.ZodObject<{
|
|
1775
|
+
environment: z.ZodObject<{
|
|
1776
|
+
handleId: z.ZodString;
|
|
1777
|
+
owningGeneration: z.ZodString;
|
|
1778
|
+
kind: z.ZodLiteral<"environment">;
|
|
1779
|
+
}, z.core.$strict>;
|
|
1780
|
+
path: z.ZodString;
|
|
1781
|
+
maxBytes: z.ZodNumber;
|
|
1782
|
+
offsetBytes: z.ZodNumber;
|
|
1783
|
+
}, z.core.$strict>;
|
|
1784
|
+
readonly result: z.ZodObject<{
|
|
1785
|
+
chunk: z.ZodObject<{
|
|
1786
|
+
byteLength: z.ZodNumber;
|
|
1787
|
+
contentBase64: z.ZodString;
|
|
1788
|
+
encoding: z.ZodLiteral<"base64">;
|
|
1789
|
+
}, z.core.$strict>;
|
|
1790
|
+
eof: z.ZodBoolean;
|
|
1791
|
+
kind: z.ZodLiteral<"read">;
|
|
1792
|
+
nextOffsetBytes: z.ZodNumber;
|
|
1793
|
+
path: z.ZodString;
|
|
1794
|
+
}, z.core.$strict>;
|
|
1795
|
+
};
|
|
1796
|
+
readonly 'sandbox.fs.remove': {
|
|
1797
|
+
readonly request: z.ZodObject<{
|
|
1798
|
+
environment: z.ZodObject<{
|
|
1799
|
+
handleId: z.ZodString;
|
|
1800
|
+
owningGeneration: z.ZodString;
|
|
1801
|
+
kind: z.ZodLiteral<"environment">;
|
|
1802
|
+
}, z.core.$strict>;
|
|
1803
|
+
path: z.ZodString;
|
|
1804
|
+
recursive: z.ZodBoolean;
|
|
1805
|
+
}, z.core.$strict>;
|
|
1806
|
+
readonly result: z.ZodObject<{
|
|
1807
|
+
kind: z.ZodLiteral<"removed">;
|
|
1808
|
+
path: z.ZodString;
|
|
1809
|
+
removed: z.ZodBoolean;
|
|
1810
|
+
}, z.core.$strict>;
|
|
1811
|
+
};
|
|
1812
|
+
readonly 'sandbox.fs.rename': {
|
|
1813
|
+
readonly request: z.ZodObject<{
|
|
1814
|
+
destinationPath: z.ZodString;
|
|
1815
|
+
environment: z.ZodObject<{
|
|
1816
|
+
handleId: z.ZodString;
|
|
1817
|
+
owningGeneration: z.ZodString;
|
|
1818
|
+
kind: z.ZodLiteral<"environment">;
|
|
1819
|
+
}, z.core.$strict>;
|
|
1820
|
+
replace: z.ZodBoolean;
|
|
1821
|
+
sourcePath: z.ZodString;
|
|
1822
|
+
}, z.core.$strict>;
|
|
1823
|
+
readonly result: z.ZodObject<{
|
|
1824
|
+
destinationPath: z.ZodString;
|
|
1825
|
+
kind: z.ZodLiteral<"renamed">;
|
|
1826
|
+
sourcePath: z.ZodString;
|
|
1827
|
+
}, z.core.$strict>;
|
|
1828
|
+
};
|
|
1829
|
+
readonly 'sandbox.fs.stat': {
|
|
1830
|
+
readonly request: z.ZodObject<{
|
|
1831
|
+
environment: z.ZodObject<{
|
|
1832
|
+
handleId: z.ZodString;
|
|
1833
|
+
owningGeneration: z.ZodString;
|
|
1834
|
+
kind: z.ZodLiteral<"environment">;
|
|
1835
|
+
}, z.core.$strict>;
|
|
1836
|
+
path: z.ZodString;
|
|
1837
|
+
}, z.core.$strict>;
|
|
1838
|
+
readonly result: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1839
|
+
entry: z.ZodObject<{
|
|
1840
|
+
byteLength: z.ZodOptional<z.ZodNumber>;
|
|
1841
|
+
kind: z.ZodEnum<{
|
|
1842
|
+
file: "file";
|
|
1843
|
+
directory: "directory";
|
|
1844
|
+
symlink: "symlink";
|
|
1845
|
+
}>;
|
|
1846
|
+
path: z.ZodString;
|
|
1847
|
+
}, z.core.$strict>;
|
|
1848
|
+
kind: z.ZodLiteral<"stat">;
|
|
1849
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1850
|
+
kind: z.ZodLiteral<"not-found">;
|
|
1851
|
+
path: z.ZodString;
|
|
1852
|
+
}, z.core.$strict>], "kind">;
|
|
1853
|
+
};
|
|
1854
|
+
readonly 'sandbox.fs.write': {
|
|
1855
|
+
readonly request: z.ZodObject<{
|
|
1856
|
+
environment: z.ZodObject<{
|
|
1857
|
+
handleId: z.ZodString;
|
|
1858
|
+
owningGeneration: z.ZodString;
|
|
1859
|
+
kind: z.ZodLiteral<"environment">;
|
|
1860
|
+
}, z.core.$strict>;
|
|
1861
|
+
path: z.ZodString;
|
|
1862
|
+
atomic: z.ZodBoolean;
|
|
1863
|
+
content: z.ZodObject<{
|
|
1864
|
+
byteLength: z.ZodNumber;
|
|
1865
|
+
contentBase64: z.ZodString;
|
|
1866
|
+
encoding: z.ZodLiteral<"base64">;
|
|
1867
|
+
}, z.core.$strict>;
|
|
1868
|
+
offsetBytes: z.ZodOptional<z.ZodNumber>;
|
|
1869
|
+
}, z.core.$strict>;
|
|
1870
|
+
readonly result: z.ZodObject<{
|
|
1871
|
+
bytesWritten: z.ZodNumber;
|
|
1872
|
+
contentDigest: z.ZodString;
|
|
1873
|
+
kind: z.ZodLiteral<"written">;
|
|
1874
|
+
path: z.ZodString;
|
|
1875
|
+
}, z.core.$strict>;
|
|
1876
|
+
};
|
|
1877
|
+
readonly 'sandbox.process.cancel': {
|
|
1878
|
+
readonly request: z.ZodObject<{
|
|
1879
|
+
process: z.ZodObject<{
|
|
1880
|
+
handleId: z.ZodString;
|
|
1881
|
+
owningGeneration: z.ZodString;
|
|
1882
|
+
kind: z.ZodLiteral<"process">;
|
|
1883
|
+
}, z.core.$strict>;
|
|
1884
|
+
}, z.core.$strict>;
|
|
1885
|
+
readonly result: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1886
|
+
kind: z.ZodLiteral<"running">;
|
|
1887
|
+
operation: z.ZodObject<{
|
|
1888
|
+
operationId: z.ZodString;
|
|
1889
|
+
owningGeneration: z.ZodString;
|
|
1890
|
+
}, z.core.$strict>;
|
|
1891
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1892
|
+
kind: z.ZodLiteral<"cancel-request-accepted">;
|
|
1893
|
+
operation: z.ZodObject<{
|
|
1894
|
+
operationId: z.ZodString;
|
|
1895
|
+
owningGeneration: z.ZodString;
|
|
1896
|
+
}, z.core.$strict>;
|
|
1897
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1898
|
+
kind: z.ZodLiteral<"cancellation-pending">;
|
|
1899
|
+
operation: z.ZodObject<{
|
|
1900
|
+
operationId: z.ZodString;
|
|
1901
|
+
owningGeneration: z.ZodString;
|
|
1902
|
+
}, z.core.$strict>;
|
|
1903
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1904
|
+
kind: z.ZodLiteral<"termination-proven">;
|
|
1905
|
+
operation: z.ZodObject<{
|
|
1906
|
+
operationId: z.ZodString;
|
|
1907
|
+
owningGeneration: z.ZodString;
|
|
1908
|
+
}, z.core.$strict>;
|
|
1909
|
+
outcome: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1910
|
+
certainty: z.ZodLiteral<"proven-terminated">;
|
|
1911
|
+
kind: z.ZodLiteral<"cancelled-proven">;
|
|
1912
|
+
retryClass: z.ZodLiteral<"manual-only">;
|
|
1913
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1914
|
+
certainty: z.ZodLiteral<"proven-terminated">;
|
|
1915
|
+
kind: z.ZodLiteral<"timed-out-proven">;
|
|
1916
|
+
retryClass: z.ZodLiteral<"manual-only">;
|
|
1917
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1918
|
+
certainty: z.ZodLiteral<"proven-terminated">;
|
|
1919
|
+
kind: z.ZodLiteral<"replaced-proven">;
|
|
1920
|
+
priorSideEffects: z.ZodLiteral<"possible">;
|
|
1921
|
+
retryClass: z.ZodLiteral<"manual-only">;
|
|
1922
|
+
}, z.core.$strict>], "kind">;
|
|
1923
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1924
|
+
kind: z.ZodLiteral<"already-terminal">;
|
|
1925
|
+
operation: z.ZodObject<{
|
|
1926
|
+
operationId: z.ZodString;
|
|
1927
|
+
owningGeneration: z.ZodString;
|
|
1928
|
+
}, z.core.$strict>;
|
|
1929
|
+
outcome: z.ZodUnion<readonly [z.ZodObject<{
|
|
1930
|
+
certainty: z.ZodLiteral<"proven">;
|
|
1931
|
+
kind: z.ZodLiteral<"not-dispatched">;
|
|
1932
|
+
retryClass: z.ZodLiteral<"safe-before-dispatch">;
|
|
1933
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1934
|
+
certainty: z.ZodLiteral<"proven">;
|
|
1935
|
+
completion: z.ZodLiteral<"succeeded">;
|
|
1936
|
+
kind: z.ZodLiteral<"completed">;
|
|
1937
|
+
retryClass: z.ZodLiteral<"forbidden">;
|
|
1938
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1939
|
+
certainty: z.ZodLiteral<"proven">;
|
|
1940
|
+
completion: z.ZodLiteral<"failed">;
|
|
1941
|
+
kind: z.ZodLiteral<"completed">;
|
|
1942
|
+
retryClass: z.ZodEnum<{
|
|
1943
|
+
forbidden: "forbidden";
|
|
1944
|
+
"policy-gated": "policy-gated";
|
|
1945
|
+
}>;
|
|
1946
|
+
}, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1947
|
+
certainty: z.ZodLiteral<"proven-terminated">;
|
|
1948
|
+
kind: z.ZodLiteral<"cancelled-proven">;
|
|
1949
|
+
retryClass: z.ZodLiteral<"manual-only">;
|
|
1950
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1951
|
+
certainty: z.ZodLiteral<"proven-terminated">;
|
|
1952
|
+
kind: z.ZodLiteral<"timed-out-proven">;
|
|
1953
|
+
retryClass: z.ZodLiteral<"manual-only">;
|
|
1954
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1955
|
+
certainty: z.ZodLiteral<"proven-terminated">;
|
|
1956
|
+
kind: z.ZodLiteral<"replaced-proven">;
|
|
1957
|
+
priorSideEffects: z.ZodLiteral<"possible">;
|
|
1958
|
+
retryClass: z.ZodLiteral<"manual-only">;
|
|
1959
|
+
}, z.core.$strict>], "kind">, z.ZodObject<{
|
|
1960
|
+
certainty: z.ZodLiteral<"side-effects-and-termination-unknown">;
|
|
1961
|
+
kind: z.ZodLiteral<"ambiguous">;
|
|
1962
|
+
retryClass: z.ZodLiteral<"forbidden">;
|
|
1963
|
+
}, z.core.$strict>]>;
|
|
1964
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1965
|
+
kind: z.ZodLiteral<"ambiguous">;
|
|
1966
|
+
operation: z.ZodObject<{
|
|
1967
|
+
operationId: z.ZodString;
|
|
1968
|
+
owningGeneration: z.ZodString;
|
|
1969
|
+
}, z.core.$strict>;
|
|
1970
|
+
outcome: z.ZodObject<{
|
|
1971
|
+
certainty: z.ZodLiteral<"side-effects-and-termination-unknown">;
|
|
1972
|
+
kind: z.ZodLiteral<"ambiguous">;
|
|
1973
|
+
retryClass: z.ZodLiteral<"forbidden">;
|
|
1974
|
+
}, z.core.$strict>;
|
|
1975
|
+
}, z.core.$strict>], "kind">;
|
|
1976
|
+
};
|
|
1977
|
+
readonly 'sandbox.process.logs': {
|
|
1978
|
+
readonly request: z.ZodObject<{
|
|
1979
|
+
process: z.ZodObject<{
|
|
1980
|
+
handleId: z.ZodString;
|
|
1981
|
+
owningGeneration: z.ZodString;
|
|
1982
|
+
kind: z.ZodLiteral<"process">;
|
|
1983
|
+
}, z.core.$strict>;
|
|
1984
|
+
channels: z.ZodArray<z.ZodEnum<{
|
|
1985
|
+
stdin: "stdin";
|
|
1986
|
+
stdout: "stdout";
|
|
1987
|
+
stderr: "stderr";
|
|
1988
|
+
pty: "pty";
|
|
1989
|
+
}>>;
|
|
1990
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
1991
|
+
maxBytes: z.ZodNumber;
|
|
1992
|
+
}, z.core.$strict>;
|
|
1993
|
+
readonly result: z.ZodObject<{
|
|
1994
|
+
chunks: z.ZodArray<z.ZodObject<{
|
|
1995
|
+
channel: z.ZodEnum<{
|
|
1996
|
+
stdin: "stdin";
|
|
1997
|
+
stdout: "stdout";
|
|
1998
|
+
stderr: "stderr";
|
|
1999
|
+
pty: "pty";
|
|
2000
|
+
}>;
|
|
2001
|
+
chunk: z.ZodObject<{
|
|
2002
|
+
byteLength: z.ZodNumber;
|
|
2003
|
+
contentBase64: z.ZodString;
|
|
2004
|
+
encoding: z.ZodLiteral<"base64">;
|
|
2005
|
+
}, z.core.$strict>;
|
|
2006
|
+
sequence: z.ZodNumber;
|
|
2007
|
+
}, z.core.$strict>>;
|
|
2008
|
+
kind: z.ZodLiteral<"logs">;
|
|
2009
|
+
nextCursor: z.ZodOptional<z.ZodString>;
|
|
2010
|
+
process: z.ZodObject<{
|
|
2011
|
+
handleId: z.ZodString;
|
|
2012
|
+
owningGeneration: z.ZodString;
|
|
2013
|
+
kind: z.ZodLiteral<"process">;
|
|
2014
|
+
}, z.core.$strict>;
|
|
2015
|
+
truncated: z.ZodBoolean;
|
|
2016
|
+
}, z.core.$strict>;
|
|
2017
|
+
};
|
|
2018
|
+
readonly 'sandbox.process.start': {
|
|
2019
|
+
readonly request: z.ZodObject<{
|
|
2020
|
+
command: z.ZodString;
|
|
2021
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
2022
|
+
environment: z.ZodObject<{
|
|
2023
|
+
handleId: z.ZodString;
|
|
2024
|
+
owningGeneration: z.ZodString;
|
|
2025
|
+
kind: z.ZodLiteral<"environment">;
|
|
2026
|
+
}, z.core.$strict>;
|
|
2027
|
+
environmentVariables: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
2028
|
+
name: z.ZodString;
|
|
2029
|
+
value: z.ZodString;
|
|
2030
|
+
}, z.core.$strict>>>>>;
|
|
2031
|
+
maxRuntimeMs: z.ZodNumber;
|
|
2032
|
+
retainOutputBytes: z.ZodNumber;
|
|
2033
|
+
}, z.core.$strict>;
|
|
2034
|
+
readonly result: z.ZodObject<{
|
|
2035
|
+
kind: z.ZodLiteral<"started">;
|
|
2036
|
+
operation: z.ZodObject<{
|
|
2037
|
+
operationId: z.ZodString;
|
|
2038
|
+
owningGeneration: z.ZodString;
|
|
2039
|
+
}, z.core.$strict>;
|
|
2040
|
+
process: z.ZodObject<{
|
|
2041
|
+
handleId: z.ZodString;
|
|
2042
|
+
owningGeneration: z.ZodString;
|
|
2043
|
+
kind: z.ZodLiteral<"process">;
|
|
2044
|
+
}, z.core.$strict>;
|
|
2045
|
+
streams: z.ZodArray<z.ZodObject<{
|
|
2046
|
+
handleId: z.ZodString;
|
|
2047
|
+
owningGeneration: z.ZodString;
|
|
2048
|
+
kind: z.ZodLiteral<"stream">;
|
|
2049
|
+
channel: z.ZodEnum<{
|
|
2050
|
+
stdin: "stdin";
|
|
2051
|
+
stdout: "stdout";
|
|
2052
|
+
stderr: "stderr";
|
|
2053
|
+
pty: "pty";
|
|
2054
|
+
}>;
|
|
2055
|
+
}, z.core.$strict>>;
|
|
2056
|
+
}, z.core.$strict>;
|
|
2057
|
+
};
|
|
2058
|
+
readonly 'sandbox.process.status': {
|
|
2059
|
+
readonly request: z.ZodObject<{
|
|
2060
|
+
process: z.ZodObject<{
|
|
2061
|
+
handleId: z.ZodString;
|
|
2062
|
+
owningGeneration: z.ZodString;
|
|
2063
|
+
kind: z.ZodLiteral<"process">;
|
|
2064
|
+
}, z.core.$strict>;
|
|
2065
|
+
}, z.core.$strict>;
|
|
2066
|
+
readonly result: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2067
|
+
kind: z.ZodLiteral<"running">;
|
|
2068
|
+
operation: z.ZodObject<{
|
|
2069
|
+
operationId: z.ZodString;
|
|
2070
|
+
owningGeneration: z.ZodString;
|
|
2071
|
+
}, z.core.$strict>;
|
|
2072
|
+
process: z.ZodObject<{
|
|
2073
|
+
handleId: z.ZodString;
|
|
2074
|
+
owningGeneration: z.ZodString;
|
|
2075
|
+
kind: z.ZodLiteral<"process">;
|
|
2076
|
+
}, z.core.$strict>;
|
|
2077
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2078
|
+
kind: z.ZodLiteral<"terminal">;
|
|
2079
|
+
operation: z.ZodObject<{
|
|
2080
|
+
operationId: z.ZodString;
|
|
2081
|
+
owningGeneration: z.ZodString;
|
|
2082
|
+
}, z.core.$strict>;
|
|
2083
|
+
outcome: z.ZodUnion<readonly [z.ZodObject<{
|
|
2084
|
+
certainty: z.ZodLiteral<"proven">;
|
|
2085
|
+
kind: z.ZodLiteral<"not-dispatched">;
|
|
2086
|
+
retryClass: z.ZodLiteral<"safe-before-dispatch">;
|
|
2087
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2088
|
+
certainty: z.ZodLiteral<"proven">;
|
|
2089
|
+
completion: z.ZodLiteral<"succeeded">;
|
|
2090
|
+
kind: z.ZodLiteral<"completed">;
|
|
2091
|
+
retryClass: z.ZodLiteral<"forbidden">;
|
|
2092
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2093
|
+
certainty: z.ZodLiteral<"proven">;
|
|
2094
|
+
completion: z.ZodLiteral<"failed">;
|
|
2095
|
+
kind: z.ZodLiteral<"completed">;
|
|
2096
|
+
retryClass: z.ZodEnum<{
|
|
2097
|
+
forbidden: "forbidden";
|
|
2098
|
+
"policy-gated": "policy-gated";
|
|
2099
|
+
}>;
|
|
2100
|
+
}, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2101
|
+
certainty: z.ZodLiteral<"proven-terminated">;
|
|
2102
|
+
kind: z.ZodLiteral<"cancelled-proven">;
|
|
2103
|
+
retryClass: z.ZodLiteral<"manual-only">;
|
|
2104
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2105
|
+
certainty: z.ZodLiteral<"proven-terminated">;
|
|
2106
|
+
kind: z.ZodLiteral<"timed-out-proven">;
|
|
2107
|
+
retryClass: z.ZodLiteral<"manual-only">;
|
|
2108
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2109
|
+
certainty: z.ZodLiteral<"proven-terminated">;
|
|
2110
|
+
kind: z.ZodLiteral<"replaced-proven">;
|
|
2111
|
+
priorSideEffects: z.ZodLiteral<"possible">;
|
|
2112
|
+
retryClass: z.ZodLiteral<"manual-only">;
|
|
2113
|
+
}, z.core.$strict>], "kind">, z.ZodObject<{
|
|
2114
|
+
certainty: z.ZodLiteral<"side-effects-and-termination-unknown">;
|
|
2115
|
+
kind: z.ZodLiteral<"ambiguous">;
|
|
2116
|
+
retryClass: z.ZodLiteral<"forbidden">;
|
|
2117
|
+
}, z.core.$strict>]>;
|
|
2118
|
+
process: z.ZodObject<{
|
|
2119
|
+
handleId: z.ZodString;
|
|
2120
|
+
owningGeneration: z.ZodString;
|
|
2121
|
+
kind: z.ZodLiteral<"process">;
|
|
2122
|
+
}, z.core.$strict>;
|
|
2123
|
+
}, z.core.$strict>], "kind">;
|
|
2124
|
+
};
|
|
2125
|
+
readonly 'sandbox.process.wait': {
|
|
2126
|
+
readonly request: z.ZodObject<{
|
|
2127
|
+
process: z.ZodObject<{
|
|
2128
|
+
handleId: z.ZodString;
|
|
2129
|
+
owningGeneration: z.ZodString;
|
|
2130
|
+
kind: z.ZodLiteral<"process">;
|
|
2131
|
+
}, z.core.$strict>;
|
|
2132
|
+
timeoutMs: z.ZodNumber;
|
|
2133
|
+
}, z.core.$strict>;
|
|
2134
|
+
readonly result: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2135
|
+
kind: z.ZodLiteral<"running">;
|
|
2136
|
+
operation: z.ZodObject<{
|
|
2137
|
+
operationId: z.ZodString;
|
|
2138
|
+
owningGeneration: z.ZodString;
|
|
2139
|
+
}, z.core.$strict>;
|
|
2140
|
+
process: z.ZodObject<{
|
|
2141
|
+
handleId: z.ZodString;
|
|
2142
|
+
owningGeneration: z.ZodString;
|
|
2143
|
+
kind: z.ZodLiteral<"process">;
|
|
2144
|
+
}, z.core.$strict>;
|
|
2145
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2146
|
+
kind: z.ZodLiteral<"terminal">;
|
|
2147
|
+
operation: z.ZodObject<{
|
|
2148
|
+
operationId: z.ZodString;
|
|
2149
|
+
owningGeneration: z.ZodString;
|
|
2150
|
+
}, z.core.$strict>;
|
|
2151
|
+
outcome: z.ZodUnion<readonly [z.ZodObject<{
|
|
2152
|
+
certainty: z.ZodLiteral<"proven">;
|
|
2153
|
+
kind: z.ZodLiteral<"not-dispatched">;
|
|
2154
|
+
retryClass: z.ZodLiteral<"safe-before-dispatch">;
|
|
2155
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2156
|
+
certainty: z.ZodLiteral<"proven">;
|
|
2157
|
+
completion: z.ZodLiteral<"succeeded">;
|
|
2158
|
+
kind: z.ZodLiteral<"completed">;
|
|
2159
|
+
retryClass: z.ZodLiteral<"forbidden">;
|
|
2160
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2161
|
+
certainty: z.ZodLiteral<"proven">;
|
|
2162
|
+
completion: z.ZodLiteral<"failed">;
|
|
2163
|
+
kind: z.ZodLiteral<"completed">;
|
|
2164
|
+
retryClass: z.ZodEnum<{
|
|
2165
|
+
forbidden: "forbidden";
|
|
2166
|
+
"policy-gated": "policy-gated";
|
|
2167
|
+
}>;
|
|
2168
|
+
}, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2169
|
+
certainty: z.ZodLiteral<"proven-terminated">;
|
|
2170
|
+
kind: z.ZodLiteral<"cancelled-proven">;
|
|
2171
|
+
retryClass: z.ZodLiteral<"manual-only">;
|
|
2172
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2173
|
+
certainty: z.ZodLiteral<"proven-terminated">;
|
|
2174
|
+
kind: z.ZodLiteral<"timed-out-proven">;
|
|
2175
|
+
retryClass: z.ZodLiteral<"manual-only">;
|
|
2176
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2177
|
+
certainty: z.ZodLiteral<"proven-terminated">;
|
|
2178
|
+
kind: z.ZodLiteral<"replaced-proven">;
|
|
2179
|
+
priorSideEffects: z.ZodLiteral<"possible">;
|
|
2180
|
+
retryClass: z.ZodLiteral<"manual-only">;
|
|
2181
|
+
}, z.core.$strict>], "kind">, z.ZodObject<{
|
|
2182
|
+
certainty: z.ZodLiteral<"side-effects-and-termination-unknown">;
|
|
2183
|
+
kind: z.ZodLiteral<"ambiguous">;
|
|
2184
|
+
retryClass: z.ZodLiteral<"forbidden">;
|
|
2185
|
+
}, z.core.$strict>]>;
|
|
2186
|
+
process: z.ZodObject<{
|
|
2187
|
+
handleId: z.ZodString;
|
|
2188
|
+
owningGeneration: z.ZodString;
|
|
2189
|
+
kind: z.ZodLiteral<"process">;
|
|
2190
|
+
}, z.core.$strict>;
|
|
2191
|
+
}, z.core.$strict>], "kind">;
|
|
2192
|
+
};
|
|
2193
|
+
readonly 'sandbox.stream.close': {
|
|
2194
|
+
readonly request: z.ZodObject<{
|
|
2195
|
+
stream: z.ZodObject<{
|
|
2196
|
+
handleId: z.ZodString;
|
|
2197
|
+
owningGeneration: z.ZodString;
|
|
2198
|
+
kind: z.ZodLiteral<"stream">;
|
|
2199
|
+
channel: z.ZodEnum<{
|
|
2200
|
+
stdin: "stdin";
|
|
2201
|
+
stdout: "stdout";
|
|
2202
|
+
stderr: "stderr";
|
|
2203
|
+
pty: "pty";
|
|
2204
|
+
}>;
|
|
2205
|
+
}, z.core.$strict>;
|
|
2206
|
+
}, z.core.$strict>;
|
|
2207
|
+
readonly result: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2208
|
+
kind: z.ZodLiteral<"closed">;
|
|
2209
|
+
stream: z.ZodObject<{
|
|
2210
|
+
handleId: z.ZodString;
|
|
2211
|
+
owningGeneration: z.ZodString;
|
|
2212
|
+
kind: z.ZodLiteral<"stream">;
|
|
2213
|
+
channel: z.ZodEnum<{
|
|
2214
|
+
stdin: "stdin";
|
|
2215
|
+
stdout: "stdout";
|
|
2216
|
+
stderr: "stderr";
|
|
2217
|
+
pty: "pty";
|
|
2218
|
+
}>;
|
|
2219
|
+
}, z.core.$strict>;
|
|
2220
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2221
|
+
kind: z.ZodLiteral<"already-closed">;
|
|
2222
|
+
stream: z.ZodObject<{
|
|
2223
|
+
handleId: z.ZodString;
|
|
2224
|
+
owningGeneration: z.ZodString;
|
|
2225
|
+
kind: z.ZodLiteral<"stream">;
|
|
2226
|
+
channel: z.ZodEnum<{
|
|
2227
|
+
stdin: "stdin";
|
|
2228
|
+
stdout: "stdout";
|
|
2229
|
+
stderr: "stderr";
|
|
2230
|
+
pty: "pty";
|
|
2231
|
+
}>;
|
|
2232
|
+
}, z.core.$strict>;
|
|
2233
|
+
}, z.core.$strict>], "kind">;
|
|
2234
|
+
};
|
|
2235
|
+
readonly 'sandbox.stream.read': {
|
|
2236
|
+
readonly request: z.ZodObject<{
|
|
2237
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
2238
|
+
maxBytes: z.ZodNumber;
|
|
2239
|
+
stream: z.ZodObject<{
|
|
2240
|
+
handleId: z.ZodString;
|
|
2241
|
+
owningGeneration: z.ZodString;
|
|
2242
|
+
kind: z.ZodLiteral<"stream">;
|
|
2243
|
+
channel: z.ZodEnum<{
|
|
2244
|
+
stdin: "stdin";
|
|
2245
|
+
stdout: "stdout";
|
|
2246
|
+
stderr: "stderr";
|
|
2247
|
+
pty: "pty";
|
|
2248
|
+
}>;
|
|
2249
|
+
}, z.core.$strict>;
|
|
2250
|
+
}, z.core.$strict>;
|
|
2251
|
+
readonly result: z.ZodObject<{
|
|
2252
|
+
chunk: z.ZodObject<{
|
|
2253
|
+
byteLength: z.ZodNumber;
|
|
2254
|
+
contentBase64: z.ZodString;
|
|
2255
|
+
encoding: z.ZodLiteral<"base64">;
|
|
2256
|
+
}, z.core.$strict>;
|
|
2257
|
+
eof: z.ZodBoolean;
|
|
2258
|
+
kind: z.ZodLiteral<"read">;
|
|
2259
|
+
nextCursor: z.ZodOptional<z.ZodString>;
|
|
2260
|
+
sequence: z.ZodNumber;
|
|
2261
|
+
stream: z.ZodObject<{
|
|
2262
|
+
handleId: z.ZodString;
|
|
2263
|
+
owningGeneration: z.ZodString;
|
|
2264
|
+
kind: z.ZodLiteral<"stream">;
|
|
2265
|
+
channel: z.ZodEnum<{
|
|
2266
|
+
stdin: "stdin";
|
|
2267
|
+
stdout: "stdout";
|
|
2268
|
+
stderr: "stderr";
|
|
2269
|
+
pty: "pty";
|
|
2270
|
+
}>;
|
|
2271
|
+
}, z.core.$strict>;
|
|
2272
|
+
}, z.core.$strict>;
|
|
2273
|
+
};
|
|
2274
|
+
readonly 'sandbox.stream.write': {
|
|
2275
|
+
readonly request: z.ZodObject<{
|
|
2276
|
+
content: z.ZodObject<{
|
|
2277
|
+
byteLength: z.ZodNumber;
|
|
2278
|
+
contentBase64: z.ZodString;
|
|
2279
|
+
encoding: z.ZodLiteral<"base64">;
|
|
2280
|
+
}, z.core.$strict>;
|
|
2281
|
+
contentDigest: z.ZodString;
|
|
2282
|
+
sequence: z.ZodNumber;
|
|
2283
|
+
stream: z.ZodObject<{
|
|
2284
|
+
handleId: z.ZodString;
|
|
2285
|
+
owningGeneration: z.ZodString;
|
|
2286
|
+
kind: z.ZodLiteral<"stream">;
|
|
2287
|
+
channel: z.ZodEnum<{
|
|
2288
|
+
stdin: "stdin";
|
|
2289
|
+
stdout: "stdout";
|
|
2290
|
+
stderr: "stderr";
|
|
2291
|
+
pty: "pty";
|
|
2292
|
+
}>;
|
|
2293
|
+
}, z.core.$strict>;
|
|
2294
|
+
}, z.core.$strict>;
|
|
2295
|
+
readonly result: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2296
|
+
bytesWritten: z.ZodNumber;
|
|
2297
|
+
kind: z.ZodLiteral<"written">;
|
|
2298
|
+
sequence: z.ZodNumber;
|
|
2299
|
+
stream: z.ZodObject<{
|
|
2300
|
+
handleId: z.ZodString;
|
|
2301
|
+
owningGeneration: z.ZodString;
|
|
2302
|
+
kind: z.ZodLiteral<"stream">;
|
|
2303
|
+
channel: z.ZodEnum<{
|
|
2304
|
+
stdin: "stdin";
|
|
2305
|
+
stdout: "stdout";
|
|
2306
|
+
stderr: "stderr";
|
|
2307
|
+
pty: "pty";
|
|
2308
|
+
}>;
|
|
2309
|
+
}, z.core.$strict>;
|
|
2310
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2311
|
+
kind: z.ZodLiteral<"already-written">;
|
|
2312
|
+
sequence: z.ZodNumber;
|
|
2313
|
+
stream: z.ZodObject<{
|
|
2314
|
+
handleId: z.ZodString;
|
|
2315
|
+
owningGeneration: z.ZodString;
|
|
2316
|
+
kind: z.ZodLiteral<"stream">;
|
|
2317
|
+
channel: z.ZodEnum<{
|
|
2318
|
+
stdin: "stdin";
|
|
2319
|
+
stdout: "stdout";
|
|
2320
|
+
stderr: "stderr";
|
|
2321
|
+
pty: "pty";
|
|
2322
|
+
}>;
|
|
2323
|
+
}, z.core.$strict>;
|
|
2324
|
+
}, z.core.$strict>], "kind">;
|
|
2325
|
+
};
|
|
2326
|
+
readonly 'sandbox.terminal.attach': {
|
|
2327
|
+
readonly request: z.ZodObject<{
|
|
2328
|
+
operation: z.ZodObject<{
|
|
2329
|
+
operationId: z.ZodString;
|
|
2330
|
+
owningGeneration: z.ZodString;
|
|
2331
|
+
}, z.core.$strict>;
|
|
2332
|
+
size: z.ZodObject<{
|
|
2333
|
+
columns: z.ZodNumber;
|
|
2334
|
+
rows: z.ZodNumber;
|
|
2335
|
+
}, z.core.$strict>;
|
|
2336
|
+
}, z.core.$strict>;
|
|
2337
|
+
readonly result: z.ZodObject<{
|
|
2338
|
+
input: z.ZodObject<{
|
|
2339
|
+
handleId: z.ZodString;
|
|
2340
|
+
owningGeneration: z.ZodString;
|
|
2341
|
+
kind: z.ZodLiteral<"stream">;
|
|
2342
|
+
channel: z.ZodEnum<{
|
|
2343
|
+
stdin: "stdin";
|
|
2344
|
+
stdout: "stdout";
|
|
2345
|
+
stderr: "stderr";
|
|
2346
|
+
pty: "pty";
|
|
2347
|
+
}>;
|
|
2348
|
+
}, z.core.$strict>;
|
|
2349
|
+
kind: z.ZodLiteral<"attached">;
|
|
2350
|
+
output: z.ZodObject<{
|
|
2351
|
+
handleId: z.ZodString;
|
|
2352
|
+
owningGeneration: z.ZodString;
|
|
2353
|
+
kind: z.ZodLiteral<"stream">;
|
|
2354
|
+
channel: z.ZodEnum<{
|
|
2355
|
+
stdin: "stdin";
|
|
2356
|
+
stdout: "stdout";
|
|
2357
|
+
stderr: "stderr";
|
|
2358
|
+
pty: "pty";
|
|
2359
|
+
}>;
|
|
2360
|
+
}, z.core.$strict>;
|
|
2361
|
+
terminal: z.ZodObject<{
|
|
2362
|
+
handleId: z.ZodString;
|
|
2363
|
+
owningGeneration: z.ZodString;
|
|
2364
|
+
kind: z.ZodLiteral<"terminal">;
|
|
2365
|
+
}, z.core.$strict>;
|
|
2366
|
+
}, z.core.$strict>;
|
|
2367
|
+
};
|
|
2368
|
+
readonly 'sandbox.terminal.resize': {
|
|
2369
|
+
readonly request: z.ZodObject<{
|
|
2370
|
+
size: z.ZodObject<{
|
|
2371
|
+
columns: z.ZodNumber;
|
|
2372
|
+
rows: z.ZodNumber;
|
|
2373
|
+
}, z.core.$strict>;
|
|
2374
|
+
terminal: z.ZodObject<{
|
|
2375
|
+
handleId: z.ZodString;
|
|
2376
|
+
owningGeneration: z.ZodString;
|
|
2377
|
+
kind: z.ZodLiteral<"terminal">;
|
|
2378
|
+
}, z.core.$strict>;
|
|
2379
|
+
}, z.core.$strict>;
|
|
2380
|
+
readonly result: z.ZodObject<{
|
|
2381
|
+
kind: z.ZodLiteral<"resized">;
|
|
2382
|
+
size: z.ZodObject<{
|
|
2383
|
+
columns: z.ZodNumber;
|
|
2384
|
+
rows: z.ZodNumber;
|
|
2385
|
+
}, z.core.$strict>;
|
|
2386
|
+
terminal: z.ZodObject<{
|
|
2387
|
+
handleId: z.ZodString;
|
|
2388
|
+
owningGeneration: z.ZodString;
|
|
2389
|
+
kind: z.ZodLiteral<"terminal">;
|
|
2390
|
+
}, z.core.$strict>;
|
|
2391
|
+
}, z.core.$strict>;
|
|
2392
|
+
};
|
|
2393
|
+
};
|
|
2394
|
+
//#endregion
|
|
2395
|
+
export { SandboxProcessStartRequest as $, SandboxShellCommandSchema as $n, SandboxEnvironmentCloseRequest as $t, SandboxTerminalResizeResultSchema as A, SANDBOX_MAXIMUM_BINARY_BYTES as An, SandboxFsRenameResultSchema as At, SandboxStreamWriteRequestSchema as B, SandboxDirectShellStartRequest as Bn, SandboxExecCancelRequestSchema as Bt, SandboxTerminalAttachRequest as C, BoundedOpaqueIdentifierSchema as Cn, SandboxFsRemoveRequest as Ct, SandboxTerminalResizeRequest as D, NonnegativeSafeIntegerSchema as Dn, SandboxFsRenameRequest as Dt, SandboxTerminalAttachResultSchema as E, CanonicalBase64Schema as En, SandboxFsRemoveResultSchema as Et, SandboxStreamReadRequest as F, SANDBOX_MAXIMUM_PATH_CHARACTERS as Fn, SandboxFsWriteRequest as Ft, SandboxProcessCancelResult as G, SandboxEnvironmentVariableNameSchema as Gn, SandboxExecStartRequestSchema as Gt, SandboxStreamWriteResultSchema as H, SandboxEnvironmentHandle as Hn, SandboxExecCancelResultSchema as Ht, SandboxStreamReadRequestSchema as I, SANDBOX_MAXIMUM_TEXT_CHARACTERS as In, SandboxFsWriteRequestSchema as It, SandboxProcessLogChunkSchema as J, SandboxGuestAbsolutePathSchema as Jn, SandboxExecWaitRequest as Jt, SandboxProcessCancelResultSchema as K, SandboxEnvironmentVariableSchema as Kn, SandboxExecStartResult as Kt, SandboxStreamReadResult as L, SandboxBinaryChunkSchema as Ln, SandboxFsWriteResult as Lt, SandboxStreamCloseRequestSchema as M, SANDBOX_MAXIMUM_IDENTIFIER_CHARACTERS as Mn, SandboxFsStatRequestSchema as Mt, SandboxStreamCloseResult as N, SANDBOX_MAXIMUM_LIST_ITEMS as Nn, SandboxFsStatResult as Nt, SandboxTerminalResizeRequestSchema as O, PORTABLE_MAXIMUM_SAFE_INTEGER as On, SandboxFsRenameRequestSchema as Ot, SandboxStreamCloseResultSchema as P, SANDBOX_MAXIMUM_OPERATION_MILLISECONDS as Pn, SandboxFsStatResultSchema as Pt, SandboxProcessLogsResultSchema as Q, SandboxProcessHandleSchema as Qn, SandboxTerminalSizeSchema as Qt, SandboxStreamReadResultSchema as R, SandboxBoundHandle as Rn, SandboxFsWriteResultSchema as Rt, ManagedAgentProjectionSchema as S, BoundedByteCountSchema as Sn, SandboxFsReadResultSchema as St, SandboxTerminalAttachResult as T, BoundedTextSchema as Tn, SandboxFsRemoveResult as Tt, SandboxProcessCancelRequest as U, SandboxEnvironmentHandleSchema as Un, SandboxExecStartModeSchema as Ut, SandboxStreamWriteResult as V, SandboxDirectShellStartRequestSchema as Vn, SandboxExecCancelResult as Vt, SandboxProcessCancelRequestSchema as W, SandboxEnvironmentVariable as Wn, SandboxExecStartRequest as Wt, SandboxProcessLogsRequestSchema as X, SandboxHandleKindSchema as Xn, SandboxExecWaitResult as Xt, SandboxProcessLogsRequest as Y, SandboxGuestPathSchema as Yn, SandboxExecWaitRequestSchema as Yt, SandboxProcessLogsResult as Z, SandboxProcessHandle as Zn, SandboxExecWaitResultSchema as Zt, GatewayRuntimeTrustedInvocationRequester as _, SandboxRetainedResultLookupRequestSchema as _n, SandboxFsMkdirResult as _t, GatewayRuntimeFrameworkIdentitySchema as a, SandboxEnvironmentOpenResult as an, SandboxWorkRelativePathSchema as ar, SandboxProcessStatusResultSchema as at, GatewayStablePrincipalDigestSchema as b, SandboxTerminalOutcome as bn, SandboxFsReadRequestSchema as bt, GatewayRuntimeManagedPluginClientKind as c, SandboxEnvironmentStatusResult as cn, SandboxProcessWaitResult as ct, GatewayRuntimeTrustedInvocationContext as d, SandboxOperationControlResult as dn, SandboxFsListRequest as dt, SandboxEnvironmentCloseResult as en, SandboxStreamChannelSchema as er, SandboxProcessStartRequestSchema as et, GatewayRuntimeTrustedInvocationContextSchema as f, SandboxOperationControlResultSchema as fn, SandboxFsListRequestSchema as ft, GatewayRuntimeTrustedInvocationPrincipalSchema as g, SandboxRetainedResultLookupRequest as gn, SandboxFsMkdirRequestSchema as gt, GatewayRuntimeTrustedInvocationPrincipal as h, SandboxProvenTerminationOutcomeSchema as hn, SandboxFsMkdirRequest as ht, GatewayRuntimeFrameworkIdentity as i, SandboxEnvironmentOpenRequestSchema as in, SandboxTerminalHandleSchema as ir, SandboxProcessStatusResult as it, SandboxStreamCloseRequest as j, SANDBOX_MAXIMUM_ENVIRONMENT_VARIABLES as jn, SandboxFsStatRequest as jt, SandboxTerminalResizeResult as k, PositiveSafeIntegerSchema as kn, SandboxFsRenameResult as kt, GatewayRuntimeManagedPluginClientKindSchema as l, SandboxEnvironmentStatusResultSchema as ln, SandboxProcessWaitResultSchema as lt, GatewayRuntimeTrustedInvocationCorrelationSchema as m, SandboxOperationIdentitySchema as mn, SandboxFsListResultSchema as mt, GatewayRuntimeAttachmentMetadata as n, SandboxEnvironmentHandleRequestSchema as nn, SandboxStreamHandleSchema as nr, SandboxProcessStartResultSchema as nt, GatewayRuntimeFrameworkKind as o, SandboxEnvironmentOpenResultSchema as on, Sha256DigestSchema as or, SandboxProcessWaitRequest as ot, GatewayRuntimeTrustedInvocationCorrelation as p, SandboxOperationIdentity as pn, SandboxFsListResult as pt, SandboxProcessHandleRequestSchema as q, SandboxEnvironmentVariableValueSchema as qn, SandboxExecStartResultSchema as qt, GatewayRuntimeAttachmentMetadataSchema as r, SandboxEnvironmentOpenRequest as rn, SandboxTerminalHandle as rr, SandboxProcessStatusRequest as rt, GatewayRuntimeFrameworkKindSchema as s, SandboxEnvironmentStatusRequest as sn, createSandboxBoundHandleSchema as sr, SandboxProcessWaitRequestSchema as st, SANDBOX_METHOD_CONTRACTS as t, SandboxEnvironmentCloseResultSchema as tn, SandboxStreamHandle as tr, SandboxProcessStartResult as tt, GatewayRuntimeProjectionCohortDigestSchema as u, SandboxAmbiguousOutcomeSchema as un, SandboxFilesystemEntrySchema as ut, GatewayRuntimeTrustedInvocationRequesterSchema as v, SandboxRetainedResultLookupResult as vn, SandboxFsMkdirResultSchema as vt, SandboxTerminalAttachRequestSchema as w, BoundedOperationMillisecondsSchema as wn, SandboxFsRemoveRequestSchema as wt, ManagedAgentProjection as x, SandboxTerminalOutcomeSchema as xn, SandboxFsReadResult as xt, GatewayStablePrincipalDigest as y, SandboxRetainedResultLookupResultSchema as yn, SandboxFsReadRequest as yt, SandboxStreamWriteRequest as z, SandboxBoundHandleSchema as zn, SandboxExecCancelRequest as zt };
|
|
2396
|
+
//# sourceMappingURL=index-C-NPMMvc.d.ts.map
|