@ekairos/sandbox 1.22.81-beta.development.0 → 1.22.83-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/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
- sandbox_sandboxes: import("@instantdb/core").EntityDef<{
172
- sandboxUrl: import("@instantdb/core").DataAttrDef<string, false, false, false>;
173
- status: import("@instantdb/core").DataAttrDef<string, true, true, false>;
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
- sandbox_user: {
212
- readonly forward: {
213
- readonly on: "sandbox_sandboxes";
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<Record<string, unknown>, SandboxConfig, ServiceResult<{
249
- sandboxId: string;
250
- }>, SandboxRuntime, unknown, never>;
251
- stopSandbox: import("@ekairos/domain").DomainActionRegistration<Record<string, unknown>, {
252
- sandboxId: string;
253
- }, ServiceResult<void>, SandboxRuntime, unknown, never>;
254
- runCommand: import("@ekairos/domain").DomainActionRegistration<Record<string, unknown>, SandboxRunCommandInput, ServiceResult<CommandResult>, SandboxRuntime, unknown, never>;
255
- runCommandProcess: import("@ekairos/domain").DomainActionRegistration<Record<string, unknown>, SandboxRunCommandInput & {
256
- cwd?: string;
257
- env?: Record<string, unknown>;
258
- kind?: "command" | "service" | "codex-app-server" | "dev-server" | "test-runner" | "watcher";
259
- mode?: "foreground" | "background";
260
- metadata?: Record<string, unknown>;
261
- }, ServiceResult<SandboxProcessRunResult>, SandboxRuntime, unknown, never>;
262
- readProcessStream: import("@ekairos/domain").DomainActionRegistration<Record<string, unknown>, {
263
- processId: string;
264
- }, ServiceResult<{
265
- chunks: SandboxProcessStreamChunk[];
266
- byteOffset: number;
267
- }>, SandboxRuntime, unknown, never>;
268
- startObservedProcess: import("@ekairos/domain").DomainActionRegistration<Record<string, unknown>, SandboxObservedProcessStartInput, ServiceResult<SandboxProcessRunResult>, SandboxRuntime, unknown, never>;
269
- appendObservedProcessChunk: import("@ekairos/domain").DomainActionRegistration<Record<string, unknown>, SandboxObservedProcessAppendInput, ServiceResult<void>, SandboxRuntime, unknown, never>;
270
- finishObservedProcess: import("@ekairos/domain").DomainActionRegistration<Record<string, unknown>, SandboxObservedProcessFinishInput, ServiceResult<void>, SandboxRuntime, unknown, never>;
271
- writeFiles: import("@ekairos/domain").DomainActionRegistration<Record<string, unknown>, {
272
- sandboxId: string;
273
- files: SandboxFileInput[];
274
- }, ServiceResult<void>, SandboxRuntime, unknown, never>;
275
- readFile: import("@ekairos/domain").DomainActionRegistration<Record<string, unknown>, {
276
- sandboxId: string;
277
- path: string;
278
- }, ServiceResult<{
279
- contentBase64: string;
280
- }>, SandboxRuntime, unknown, never>;
281
- installCodexAuth: import("@ekairos/domain").DomainActionRegistration<Record<string, unknown>, SandboxAuthInstallInput, ServiceResult<{
282
- authJson: boolean;
283
- credentialsJson: boolean;
284
- configToml: boolean;
285
- }>, SandboxRuntime, unknown, never>;
286
- getSandbox: import("@ekairos/domain").DomainActionRegistration<Record<string, unknown>, {
287
- sandboxId: string;
288
- }, ServiceResult<Record<string, unknown>>, SandboxRuntime, unknown, never>;
289
- createCheckpoint: import("@ekairos/domain").DomainActionRegistration<Record<string, unknown>, {
290
- sandboxId: string;
291
- comment?: string;
292
- }, ServiceResult<{
293
- checkpointId: string;
294
- }>, SandboxRuntime, unknown, never>;
295
- getPortUrl: import("@ekairos/domain").DomainActionRegistration<Record<string, unknown>, {
296
- sandboxId: string;
297
- port: number;
298
- }, ServiceResult<{
299
- url: string;
300
- }>, SandboxRuntime, unknown, never>;
301
- createEkairosApp: import("@ekairos/domain").DomainActionRegistration<Record<string, unknown>, SandboxCreateEkairosAppInput, ServiceResult<SandboxProcessRunResult>, SandboxRuntime, unknown, never>;
302
- }, "sandbox", "sandbox">;
303
- export {};
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
@@ -1 +1 @@
1
- {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../src/actions.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAClD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAE/C,KAAK,aAAa,CAAC,CAAC,GAAG,OAAO,IAAI;IAAE,EA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