@ekairos/sandbox 1.22.82-beta.development.0 → 1.22.84-beta.development.0
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/action-steps.d.ts +156 -0
- package/dist/action-steps.d.ts.map +1 -0
- package/dist/action-steps.js +153 -0
- package/dist/action-steps.js.map +1 -0
- package/dist/actions.d.ts +257 -298
- package/dist/actions.d.ts.map +1 -1
- package/dist/actions.js +157 -195
- package/dist/actions.js.map +1 -1
- package/dist/contract.d.ts +86 -0
- package/dist/contract.d.ts.map +1 -0
- package/dist/contract.js +83 -0
- package/dist/contract.js.map +1 -0
- package/dist/index.d.ts +4 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/public.d.ts +1 -0
- package/dist/public.d.ts.map +1 -1
- package/dist/public.js +1 -0
- package/dist/public.js.map +1 -1
- package/dist/sandbox.d.ts +33 -64
- package/dist/sandbox.d.ts.map +1 -1
- package/dist/sandbox.js +26 -47
- package/dist/sandbox.js.map +1 -1
- package/dist/schema.d.ts +14 -152
- package/dist/schema.d.ts.map +1 -1
- package/dist/service.d.ts +9 -5
- package/dist/service.d.ts.map +1 -1
- package/dist/service.js.map +1 -1
- package/package.json +9 -3
package/dist/actions.d.ts
CHANGED
|
@@ -1,304 +1,263 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
1
2
|
import type { CommandResult } from "./commands.js";
|
|
3
|
+
import { type SandboxProcessRunResult, type SandboxProcessStreamChunk } from "./service.js";
|
|
2
4
|
import type { SandboxConfig } from "./types.js";
|
|
3
|
-
type ServiceResult<T = unknown> = {
|
|
4
|
-
ok: true;
|
|
5
|
-
data: T;
|
|
6
|
-
} | {
|
|
7
|
-
ok: false;
|
|
8
|
-
error: string;
|
|
9
|
-
};
|
|
10
|
-
type SandboxRuntime = {
|
|
11
|
-
use: (domain: unknown) => Promise<{
|
|
12
|
-
db: unknown;
|
|
13
|
-
}>;
|
|
14
|
-
};
|
|
15
|
-
type SandboxRunCommandInput = {
|
|
16
|
-
sandboxId: string;
|
|
17
|
-
command: string;
|
|
18
|
-
args?: string[];
|
|
19
|
-
};
|
|
20
|
-
type SandboxFileInput = {
|
|
21
|
-
path: string;
|
|
22
|
-
contentBase64: string;
|
|
23
|
-
};
|
|
24
|
-
type SandboxRunCommandProcessInput = SandboxRunCommandInput & {
|
|
25
|
-
cwd?: string;
|
|
26
|
-
env?: Record<string, unknown>;
|
|
27
|
-
kind?: "command" | "service" | "codex-app-server" | "dev-server" | "test-runner" | "watcher";
|
|
28
|
-
mode?: "foreground" | "background";
|
|
29
|
-
metadata?: Record<string, unknown>;
|
|
30
|
-
};
|
|
31
|
-
type SandboxObservedProcessStartInput = {
|
|
32
|
-
sandboxId: string;
|
|
33
|
-
command: string;
|
|
34
|
-
args?: string[];
|
|
35
|
-
cwd?: string;
|
|
36
|
-
env?: Record<string, unknown>;
|
|
37
|
-
kind?: "command" | "service" | "codex-app-server" | "dev-server" | "test-runner" | "watcher";
|
|
38
|
-
mode?: "foreground" | "background";
|
|
39
|
-
externalProcessId?: string;
|
|
40
|
-
metadata?: Record<string, unknown>;
|
|
41
|
-
};
|
|
42
|
-
type SandboxObservedProcessAppendInput = {
|
|
43
|
-
processId: string;
|
|
44
|
-
type: "stdout" | "stderr" | "status" | "exit" | "error" | "heartbeat" | "metadata";
|
|
45
|
-
data?: Record<string, unknown>;
|
|
46
|
-
};
|
|
47
|
-
type SandboxObservedProcessFinishInput = {
|
|
48
|
-
processId: string;
|
|
49
|
-
status?: "exited" | "failed" | "killed" | "lost";
|
|
50
|
-
exitCode?: number;
|
|
51
|
-
errorText?: string;
|
|
52
|
-
metadata?: Record<string, unknown>;
|
|
53
|
-
};
|
|
54
|
-
type SandboxProcessStreamChunk = {
|
|
55
|
-
type: "stdout" | "stderr" | "status" | "exit" | "error" | "heartbeat" | "metadata";
|
|
56
|
-
data?: Record<string, unknown>;
|
|
57
|
-
};
|
|
58
|
-
type SandboxProcessRunResult = {
|
|
59
|
-
processId: string;
|
|
60
|
-
streamId: string;
|
|
61
|
-
streamClientId: string;
|
|
62
|
-
result?: CommandResult;
|
|
63
|
-
};
|
|
64
|
-
type SandboxAuthInstallInput = {
|
|
65
|
-
sandboxId: string;
|
|
66
|
-
codexHome?: string;
|
|
67
|
-
authJsonPath?: string;
|
|
68
|
-
credentialsJsonPath?: string;
|
|
69
|
-
configTomlPath?: string;
|
|
70
|
-
};
|
|
71
|
-
type SandboxCreateEkairosAppInput = {
|
|
72
|
-
sandboxId: string;
|
|
73
|
-
appDir: string;
|
|
74
|
-
packageManager?: string;
|
|
75
|
-
instantTokenEnvName?: string;
|
|
76
|
-
};
|
|
77
|
-
export declare function createSandboxExecute({ runtime, input, }: {
|
|
78
|
-
runtime: SandboxRuntime;
|
|
79
|
-
input: SandboxConfig;
|
|
80
|
-
}): Promise<ServiceResult<{
|
|
81
|
-
sandboxId: string;
|
|
82
|
-
}>>;
|
|
83
|
-
export declare function stopSandboxExecute({ runtime, input, }: {
|
|
84
|
-
runtime: SandboxRuntime;
|
|
85
|
-
input: {
|
|
86
|
-
sandboxId: string;
|
|
87
|
-
};
|
|
88
|
-
}): Promise<ServiceResult<void>>;
|
|
89
|
-
export declare function runCommandExecute({ runtime, input, }: {
|
|
90
|
-
runtime: SandboxRuntime;
|
|
91
|
-
input: SandboxRunCommandInput;
|
|
92
|
-
}): Promise<ServiceResult<CommandResult>>;
|
|
93
|
-
export declare function runCommandProcessExecute({ runtime, input, }: {
|
|
94
|
-
runtime: SandboxRuntime;
|
|
95
|
-
input: SandboxRunCommandProcessInput;
|
|
96
|
-
}): Promise<ServiceResult<SandboxProcessRunResult>>;
|
|
97
|
-
export declare function readProcessStreamExecute({ runtime, input, }: {
|
|
98
|
-
runtime: SandboxRuntime;
|
|
99
|
-
input: {
|
|
100
|
-
processId: string;
|
|
101
|
-
};
|
|
102
|
-
}): Promise<ServiceResult<{
|
|
103
|
-
chunks: SandboxProcessStreamChunk[];
|
|
104
|
-
byteOffset: number;
|
|
105
|
-
}>>;
|
|
106
|
-
export declare function startObservedProcessExecute({ runtime, input, }: {
|
|
107
|
-
runtime: SandboxRuntime;
|
|
108
|
-
input: SandboxObservedProcessStartInput;
|
|
109
|
-
}): Promise<ServiceResult<SandboxProcessRunResult>>;
|
|
110
|
-
export declare function appendObservedProcessChunkExecute({ runtime, input, }: {
|
|
111
|
-
runtime: SandboxRuntime;
|
|
112
|
-
input: SandboxObservedProcessAppendInput;
|
|
113
|
-
}): Promise<ServiceResult<void>>;
|
|
114
|
-
export declare function finishObservedProcessExecute({ runtime, input, }: {
|
|
115
|
-
runtime: SandboxRuntime;
|
|
116
|
-
input: SandboxObservedProcessFinishInput;
|
|
117
|
-
}): Promise<ServiceResult<void>>;
|
|
118
|
-
export declare function writeFilesExecute({ runtime, input, }: {
|
|
119
|
-
runtime: SandboxRuntime;
|
|
120
|
-
input: {
|
|
121
|
-
sandboxId: string;
|
|
122
|
-
files: SandboxFileInput[];
|
|
123
|
-
};
|
|
124
|
-
}): Promise<ServiceResult<void>>;
|
|
125
|
-
export declare function readFileExecute({ runtime, input, }: {
|
|
126
|
-
runtime: SandboxRuntime;
|
|
127
|
-
input: {
|
|
128
|
-
sandboxId: string;
|
|
129
|
-
path: string;
|
|
130
|
-
};
|
|
131
|
-
}): Promise<ServiceResult<{
|
|
132
|
-
contentBase64: string;
|
|
133
|
-
}>>;
|
|
134
|
-
export declare function installCodexAuthExecute({ runtime, input, }: {
|
|
135
|
-
runtime: SandboxRuntime;
|
|
136
|
-
input: SandboxAuthInstallInput;
|
|
137
|
-
}): Promise<ServiceResult<{
|
|
138
|
-
authJson: boolean;
|
|
139
|
-
credentialsJson: boolean;
|
|
140
|
-
configToml: boolean;
|
|
141
|
-
}>>;
|
|
142
|
-
export declare function getSandboxExecute({ runtime, input, }: {
|
|
143
|
-
runtime: SandboxRuntime;
|
|
144
|
-
input: {
|
|
145
|
-
sandboxId: string;
|
|
146
|
-
};
|
|
147
|
-
}): Promise<ServiceResult<Record<string, unknown>>>;
|
|
148
|
-
export declare function createCheckpointExecute({ runtime, input, }: {
|
|
149
|
-
runtime: SandboxRuntime;
|
|
150
|
-
input: {
|
|
151
|
-
sandboxId: string;
|
|
152
|
-
comment?: string;
|
|
153
|
-
};
|
|
154
|
-
}): Promise<ServiceResult<{
|
|
155
|
-
checkpointId: string;
|
|
156
|
-
}>>;
|
|
157
|
-
export declare function getPortUrlExecute({ runtime, input, }: {
|
|
158
|
-
runtime: SandboxRuntime;
|
|
159
|
-
input: {
|
|
160
|
-
sandboxId: string;
|
|
161
|
-
port: number;
|
|
162
|
-
};
|
|
163
|
-
}): Promise<ServiceResult<{
|
|
164
|
-
url: string;
|
|
165
|
-
}>>;
|
|
166
|
-
export declare function createEkairosAppExecute({ runtime, input, }: {
|
|
167
|
-
runtime: SandboxRuntime;
|
|
168
|
-
input: SandboxCreateEkairosAppInput;
|
|
169
|
-
}): Promise<ServiceResult<SandboxProcessRunResult>>;
|
|
170
5
|
export declare const sandboxDomain: import("@ekairos/domain").DomainSchemaResult<{
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
timeout: import("@instantdb/core").DataAttrDef<number, false, false, false>;
|
|
175
|
-
runtime: import("@instantdb/core").DataAttrDef<string, false, false, false>;
|
|
176
|
-
vcpus: import("@instantdb/core").DataAttrDef<number, false, false, false>;
|
|
177
|
-
ports: import("@instantdb/core").DataAttrDef<any, false, false, false>;
|
|
178
|
-
purpose: import("@instantdb/core").DataAttrDef<string, false, true, false>;
|
|
179
|
-
createdAt: import("@instantdb/core").DataAttrDef<number, true, true, false>;
|
|
180
|
-
updatedAt: import("@instantdb/core").DataAttrDef<number, false, true, false>;
|
|
181
|
-
shutdownAt: import("@instantdb/core").DataAttrDef<number, false, true, false>;
|
|
182
|
-
externalSandboxId: import("@instantdb/core").DataAttrDef<string, false, true, false>;
|
|
183
|
-
sandboxUserId: import("@instantdb/core").DataAttrDef<string, false, true, false>;
|
|
184
|
-
provider: import("@instantdb/core").DataAttrDef<string, true, true, false>;
|
|
185
|
-
providerConfig: import("@instantdb/core").DataAttrDef<any, false, false, false>;
|
|
186
|
-
params: import("@instantdb/core").DataAttrDef<any, false, false, false>;
|
|
187
|
-
}, {}, {}>;
|
|
188
|
-
sandbox_processes: import("@instantdb/core").EntityDef<{
|
|
189
|
-
kind: import("@instantdb/core").DataAttrDef<string, true, true, false>;
|
|
190
|
-
mode: import("@instantdb/core").DataAttrDef<string, true, true, false>;
|
|
191
|
-
status: import("@instantdb/core").DataAttrDef<string, true, true, false>;
|
|
192
|
-
provider: import("@instantdb/core").DataAttrDef<string, true, true, false>;
|
|
193
|
-
command: import("@instantdb/core").DataAttrDef<string, true, false, false>;
|
|
194
|
-
args: import("@instantdb/core").DataAttrDef<any, false, false, false>;
|
|
195
|
-
cwd: import("@instantdb/core").DataAttrDef<string, false, false, false>;
|
|
196
|
-
env: import("@instantdb/core").DataAttrDef<any, false, false, false>;
|
|
197
|
-
exitCode: import("@instantdb/core").DataAttrDef<number, false, true, false>;
|
|
198
|
-
signal: import("@instantdb/core").DataAttrDef<string, false, false, false>;
|
|
199
|
-
externalProcessId: import("@instantdb/core").DataAttrDef<string, false, true, false>;
|
|
200
|
-
streamId: import("@instantdb/core").DataAttrDef<string, false, true, false>;
|
|
201
|
-
streamClientId: import("@instantdb/core").DataAttrDef<string, false, true, false>;
|
|
202
|
-
streamStartedAt: import("@instantdb/core").DataAttrDef<number, false, true, false>;
|
|
203
|
-
streamFinishedAt: import("@instantdb/core").DataAttrDef<number, false, true, false>;
|
|
204
|
-
streamAbortReason: import("@instantdb/core").DataAttrDef<string, false, false, false>;
|
|
205
|
-
startedAt: import("@instantdb/core").DataAttrDef<number, true, true, false>;
|
|
206
|
-
updatedAt: import("@instantdb/core").DataAttrDef<number, false, true, false>;
|
|
207
|
-
exitedAt: import("@instantdb/core").DataAttrDef<number, false, true, false>;
|
|
208
|
-
metadata: import("@instantdb/core").DataAttrDef<any, false, false, false>;
|
|
209
|
-
}, {}, unknown>;
|
|
6
|
+
[x: string]: any;
|
|
7
|
+
[x: number]: any;
|
|
8
|
+
[x: symbol]: any;
|
|
210
9
|
}, {
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
readonly has: "one";
|
|
215
|
-
readonly label: "user";
|
|
216
|
-
};
|
|
217
|
-
readonly reverse: {
|
|
218
|
-
readonly on: "$users";
|
|
219
|
-
readonly has: "many";
|
|
220
|
-
readonly label: "sandboxes";
|
|
221
|
-
};
|
|
222
|
-
};
|
|
223
|
-
sandboxProcessSandbox: {
|
|
224
|
-
readonly forward: {
|
|
225
|
-
readonly on: "sandbox_processes";
|
|
226
|
-
readonly has: "one";
|
|
227
|
-
readonly label: "sandbox";
|
|
228
|
-
};
|
|
229
|
-
readonly reverse: {
|
|
230
|
-
readonly on: "sandbox_sandboxes";
|
|
231
|
-
readonly has: "many";
|
|
232
|
-
readonly label: "processes";
|
|
233
|
-
};
|
|
234
|
-
};
|
|
235
|
-
sandboxProcessStream: {
|
|
236
|
-
readonly forward: {
|
|
237
|
-
readonly on: "sandbox_processes";
|
|
238
|
-
readonly has: "one";
|
|
239
|
-
readonly label: "stream";
|
|
240
|
-
};
|
|
241
|
-
readonly reverse: {
|
|
242
|
-
readonly on: "$streams";
|
|
243
|
-
readonly has: "many";
|
|
244
|
-
readonly label: "sandboxProcesses";
|
|
245
|
-
};
|
|
246
|
-
};
|
|
10
|
+
[x: string]: any;
|
|
11
|
+
[x: number]: any;
|
|
12
|
+
[x: symbol]: any;
|
|
247
13
|
}, import("@instantdb/core").RoomsDef, {
|
|
248
|
-
createSandbox: import("@ekairos/domain").DomainActionRegistration<
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
},
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
},
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
},
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
},
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
},
|
|
303
|
-
|
|
14
|
+
createSandbox: import("@ekairos/domain").DomainActionRegistration<z.ZodType<SandboxConfig, unknown, z.core.$ZodTypeInternals<SandboxConfig, unknown>>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
15
|
+
ok: z.ZodLiteral<true>;
|
|
16
|
+
data: z.ZodObject<{
|
|
17
|
+
sandboxId: z.ZodString;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
20
|
+
ok: z.ZodLiteral<false>;
|
|
21
|
+
error: z.ZodString;
|
|
22
|
+
}, z.core.$strip>], "ok">, {
|
|
23
|
+
db: unknown;
|
|
24
|
+
}, any>;
|
|
25
|
+
stopSandbox: import("@ekairos/domain").DomainActionRegistration<z.ZodObject<{
|
|
26
|
+
sandboxId: z.ZodString;
|
|
27
|
+
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
28
|
+
ok: z.ZodLiteral<true>;
|
|
29
|
+
data: z.ZodOptional<z.ZodUnknown>;
|
|
30
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
31
|
+
ok: z.ZodLiteral<false>;
|
|
32
|
+
error: z.ZodString;
|
|
33
|
+
}, z.core.$strip>], "ok">, {
|
|
34
|
+
db: unknown;
|
|
35
|
+
}, any>;
|
|
36
|
+
runCommand: import("@ekairos/domain").DomainActionRegistration<z.ZodObject<{
|
|
37
|
+
sandboxId: z.ZodString;
|
|
38
|
+
command: z.ZodString;
|
|
39
|
+
args: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
40
|
+
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
41
|
+
ok: z.ZodLiteral<true>;
|
|
42
|
+
data: z.ZodType<CommandResult, unknown, z.core.$ZodTypeInternals<CommandResult, unknown>>;
|
|
43
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
44
|
+
ok: z.ZodLiteral<false>;
|
|
45
|
+
error: z.ZodString;
|
|
46
|
+
}, z.core.$strip>], "ok">, {
|
|
47
|
+
db: unknown;
|
|
48
|
+
}, any>;
|
|
49
|
+
runCommandProcess: import("@ekairos/domain").DomainActionRegistration<z.ZodObject<{
|
|
50
|
+
sandboxId: z.ZodString;
|
|
51
|
+
command: z.ZodString;
|
|
52
|
+
args: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
53
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
54
|
+
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
55
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
56
|
+
command: "command";
|
|
57
|
+
service: "service";
|
|
58
|
+
"codex-app-server": "codex-app-server";
|
|
59
|
+
"dev-server": "dev-server";
|
|
60
|
+
"test-runner": "test-runner";
|
|
61
|
+
watcher: "watcher";
|
|
62
|
+
}>>;
|
|
63
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
64
|
+
foreground: "foreground";
|
|
65
|
+
background: "background";
|
|
66
|
+
}>>;
|
|
67
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
68
|
+
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
69
|
+
ok: z.ZodLiteral<true>;
|
|
70
|
+
data: z.ZodType<SandboxProcessRunResult, unknown, z.core.$ZodTypeInternals<SandboxProcessRunResult, unknown>>;
|
|
71
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
72
|
+
ok: z.ZodLiteral<false>;
|
|
73
|
+
error: z.ZodString;
|
|
74
|
+
}, z.core.$strip>], "ok">, {
|
|
75
|
+
db: unknown;
|
|
76
|
+
}, any>;
|
|
77
|
+
readProcessStream: import("@ekairos/domain").DomainActionRegistration<z.ZodObject<{
|
|
78
|
+
processId: z.ZodString;
|
|
79
|
+
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
80
|
+
ok: z.ZodLiteral<true>;
|
|
81
|
+
data: z.ZodObject<{
|
|
82
|
+
chunks: z.ZodArray<z.ZodType<SandboxProcessStreamChunk, unknown, z.core.$ZodTypeInternals<SandboxProcessStreamChunk, unknown>>>;
|
|
83
|
+
byteOffset: z.ZodNumber;
|
|
84
|
+
}, z.core.$strip>;
|
|
85
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
86
|
+
ok: z.ZodLiteral<false>;
|
|
87
|
+
error: z.ZodString;
|
|
88
|
+
}, z.core.$strip>], "ok">, {
|
|
89
|
+
db: unknown;
|
|
90
|
+
}, any>;
|
|
91
|
+
startObservedProcess: import("@ekairos/domain").DomainActionRegistration<z.ZodObject<{
|
|
92
|
+
sandboxId: z.ZodString;
|
|
93
|
+
command: z.ZodString;
|
|
94
|
+
args: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
95
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
96
|
+
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
97
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
98
|
+
command: "command";
|
|
99
|
+
service: "service";
|
|
100
|
+
"codex-app-server": "codex-app-server";
|
|
101
|
+
"dev-server": "dev-server";
|
|
102
|
+
"test-runner": "test-runner";
|
|
103
|
+
watcher: "watcher";
|
|
104
|
+
}>>;
|
|
105
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
106
|
+
foreground: "foreground";
|
|
107
|
+
background: "background";
|
|
108
|
+
}>>;
|
|
109
|
+
externalProcessId: z.ZodOptional<z.ZodString>;
|
|
110
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
111
|
+
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
112
|
+
ok: z.ZodLiteral<true>;
|
|
113
|
+
data: z.ZodType<SandboxProcessRunResult, unknown, z.core.$ZodTypeInternals<SandboxProcessRunResult, unknown>>;
|
|
114
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
115
|
+
ok: z.ZodLiteral<false>;
|
|
116
|
+
error: z.ZodString;
|
|
117
|
+
}, z.core.$strip>], "ok">, {
|
|
118
|
+
db: unknown;
|
|
119
|
+
}, any>;
|
|
120
|
+
appendObservedProcessChunk: import("@ekairos/domain").DomainActionRegistration<z.ZodObject<{
|
|
121
|
+
processId: z.ZodString;
|
|
122
|
+
type: z.ZodEnum<{
|
|
123
|
+
error: "error";
|
|
124
|
+
status: "status";
|
|
125
|
+
stdout: "stdout";
|
|
126
|
+
stderr: "stderr";
|
|
127
|
+
exit: "exit";
|
|
128
|
+
heartbeat: "heartbeat";
|
|
129
|
+
metadata: "metadata";
|
|
130
|
+
}>;
|
|
131
|
+
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
132
|
+
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
133
|
+
ok: z.ZodLiteral<true>;
|
|
134
|
+
data: z.ZodOptional<z.ZodUnknown>;
|
|
135
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
136
|
+
ok: z.ZodLiteral<false>;
|
|
137
|
+
error: z.ZodString;
|
|
138
|
+
}, z.core.$strip>], "ok">, {
|
|
139
|
+
db: unknown;
|
|
140
|
+
}, any>;
|
|
141
|
+
finishObservedProcess: import("@ekairos/domain").DomainActionRegistration<z.ZodObject<{
|
|
142
|
+
processId: z.ZodString;
|
|
143
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
144
|
+
exited: "exited";
|
|
145
|
+
failed: "failed";
|
|
146
|
+
killed: "killed";
|
|
147
|
+
lost: "lost";
|
|
148
|
+
}>>;
|
|
149
|
+
exitCode: z.ZodOptional<z.ZodNumber>;
|
|
150
|
+
errorText: z.ZodOptional<z.ZodString>;
|
|
151
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
152
|
+
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
153
|
+
ok: z.ZodLiteral<true>;
|
|
154
|
+
data: z.ZodOptional<z.ZodUnknown>;
|
|
155
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
156
|
+
ok: z.ZodLiteral<false>;
|
|
157
|
+
error: z.ZodString;
|
|
158
|
+
}, z.core.$strip>], "ok">, {
|
|
159
|
+
db: unknown;
|
|
160
|
+
}, any>;
|
|
161
|
+
writeFiles: import("@ekairos/domain").DomainActionRegistration<z.ZodObject<{
|
|
162
|
+
sandboxId: z.ZodString;
|
|
163
|
+
files: z.ZodArray<z.ZodObject<{
|
|
164
|
+
path: z.ZodString;
|
|
165
|
+
contentBase64: z.ZodString;
|
|
166
|
+
}, z.core.$strip>>;
|
|
167
|
+
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
168
|
+
ok: z.ZodLiteral<true>;
|
|
169
|
+
data: z.ZodOptional<z.ZodUnknown>;
|
|
170
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
171
|
+
ok: z.ZodLiteral<false>;
|
|
172
|
+
error: z.ZodString;
|
|
173
|
+
}, z.core.$strip>], "ok">, {
|
|
174
|
+
db: unknown;
|
|
175
|
+
}, any>;
|
|
176
|
+
readFile: import("@ekairos/domain").DomainActionRegistration<z.ZodObject<{
|
|
177
|
+
sandboxId: z.ZodString;
|
|
178
|
+
path: z.ZodString;
|
|
179
|
+
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
180
|
+
ok: z.ZodLiteral<true>;
|
|
181
|
+
data: z.ZodObject<{
|
|
182
|
+
contentBase64: z.ZodString;
|
|
183
|
+
}, z.core.$strip>;
|
|
184
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
185
|
+
ok: z.ZodLiteral<false>;
|
|
186
|
+
error: z.ZodString;
|
|
187
|
+
}, z.core.$strip>], "ok">, {
|
|
188
|
+
db: unknown;
|
|
189
|
+
}, any>;
|
|
190
|
+
installCodexAuth: import("@ekairos/domain").DomainActionRegistration<z.ZodObject<{
|
|
191
|
+
sandboxId: z.ZodString;
|
|
192
|
+
codexHome: z.ZodOptional<z.ZodString>;
|
|
193
|
+
authJsonPath: z.ZodOptional<z.ZodString>;
|
|
194
|
+
credentialsJsonPath: z.ZodOptional<z.ZodString>;
|
|
195
|
+
configTomlPath: z.ZodOptional<z.ZodString>;
|
|
196
|
+
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
197
|
+
ok: z.ZodLiteral<true>;
|
|
198
|
+
data: z.ZodObject<{
|
|
199
|
+
authJson: z.ZodBoolean;
|
|
200
|
+
credentialsJson: z.ZodBoolean;
|
|
201
|
+
configToml: z.ZodBoolean;
|
|
202
|
+
}, z.core.$strip>;
|
|
203
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
204
|
+
ok: z.ZodLiteral<false>;
|
|
205
|
+
error: z.ZodString;
|
|
206
|
+
}, z.core.$strip>], "ok">, {
|
|
207
|
+
db: unknown;
|
|
208
|
+
}, any>;
|
|
209
|
+
getSandbox: import("@ekairos/domain").DomainActionRegistration<z.ZodObject<{
|
|
210
|
+
sandboxId: z.ZodString;
|
|
211
|
+
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
212
|
+
ok: z.ZodLiteral<true>;
|
|
213
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
214
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
215
|
+
ok: z.ZodLiteral<false>;
|
|
216
|
+
error: z.ZodString;
|
|
217
|
+
}, z.core.$strip>], "ok">, {
|
|
218
|
+
db: unknown;
|
|
219
|
+
}, any>;
|
|
220
|
+
createCheckpoint: import("@ekairos/domain").DomainActionRegistration<z.ZodObject<{
|
|
221
|
+
sandboxId: z.ZodString;
|
|
222
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
223
|
+
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
224
|
+
ok: z.ZodLiteral<true>;
|
|
225
|
+
data: z.ZodObject<{
|
|
226
|
+
checkpointId: z.ZodString;
|
|
227
|
+
}, z.core.$strip>;
|
|
228
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
229
|
+
ok: z.ZodLiteral<false>;
|
|
230
|
+
error: z.ZodString;
|
|
231
|
+
}, z.core.$strip>], "ok">, {
|
|
232
|
+
db: unknown;
|
|
233
|
+
}, any>;
|
|
234
|
+
getPortUrl: import("@ekairos/domain").DomainActionRegistration<z.ZodObject<{
|
|
235
|
+
sandboxId: z.ZodString;
|
|
236
|
+
port: z.ZodNumber;
|
|
237
|
+
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
238
|
+
ok: z.ZodLiteral<true>;
|
|
239
|
+
data: z.ZodObject<{
|
|
240
|
+
url: z.ZodString;
|
|
241
|
+
}, z.core.$strip>;
|
|
242
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
243
|
+
ok: z.ZodLiteral<false>;
|
|
244
|
+
error: z.ZodString;
|
|
245
|
+
}, z.core.$strip>], "ok">, {
|
|
246
|
+
db: unknown;
|
|
247
|
+
}, any>;
|
|
248
|
+
createEkairosApp: import("@ekairos/domain").DomainActionRegistration<z.ZodObject<{
|
|
249
|
+
sandboxId: z.ZodString;
|
|
250
|
+
appDir: z.ZodString;
|
|
251
|
+
packageManager: z.ZodOptional<z.ZodString>;
|
|
252
|
+
instantTokenEnvName: z.ZodOptional<z.ZodString>;
|
|
253
|
+
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
254
|
+
ok: z.ZodLiteral<true>;
|
|
255
|
+
data: z.ZodType<SandboxProcessRunResult, unknown, z.core.$ZodTypeInternals<SandboxProcessRunResult, unknown>>;
|
|
256
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
257
|
+
ok: z.ZodLiteral<false>;
|
|
258
|
+
error: z.ZodString;
|
|
259
|
+
}, z.core.$strip>], "ok">, {
|
|
260
|
+
db: unknown;
|
|
261
|
+
}, any>;
|
|
262
|
+
}, "sandbox", string>;
|
|
304
263
|
//# sourceMappingURL=actions.d.ts.map
|
package/dist/actions.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../src/actions.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../src/actions.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AA0BlD,OAAO,EACL,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC/B,MAAM,cAAc,CAAA;AACrB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AA6B/C,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAoLtB,CAAA"}
|