@cloudflare/sandbox 0.13.0-next.769.1 → 1.0.0-rc.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.
Files changed (63) hide show
  1. package/README.md +62 -219
  2. package/dist/index.d.mts +548 -0
  3. package/dist/index.mjs +2452 -0
  4. package/package.json +17 -118
  5. package/Dockerfile +0 -327
  6. package/dist/bridge/index.d.ts +0 -181
  7. package/dist/bridge/index.d.ts.map +0 -1
  8. package/dist/bridge/index.js +0 -3053
  9. package/dist/bridge/index.js.map +0 -1
  10. package/dist/contexts-1EsLHByO.d.ts +0 -463
  11. package/dist/contexts-1EsLHByO.d.ts.map +0 -1
  12. package/dist/dist-Duor5GbS.js +0 -752
  13. package/dist/dist-Duor5GbS.js.map +0 -1
  14. package/dist/errors/index.d.ts +0 -4
  15. package/dist/errors/index.js +0 -4
  16. package/dist/errors-CXR0xBpw.js +0 -285
  17. package/dist/errors-CXR0xBpw.js.map +0 -1
  18. package/dist/errors-QYlSkVGz.js +0 -893
  19. package/dist/errors-QYlSkVGz.js.map +0 -1
  20. package/dist/extensions/index.d.ts +0 -4
  21. package/dist/extensions/index.js +0 -6
  22. package/dist/extensions-CFB2xHqY.js +0 -1023
  23. package/dist/extensions-CFB2xHqY.js.map +0 -1
  24. package/dist/filesystem-BWAZCZER.d.ts +0 -732
  25. package/dist/filesystem-BWAZCZER.d.ts.map +0 -1
  26. package/dist/git/index.d.ts +0 -63
  27. package/dist/git/index.d.ts.map +0 -1
  28. package/dist/git/index.js +0 -338
  29. package/dist/git/index.js.map +0 -1
  30. package/dist/index-Bs4bqXDR.d.ts +0 -438
  31. package/dist/index-Bs4bqXDR.d.ts.map +0 -1
  32. package/dist/index-HNYBk-az.d.ts +0 -444
  33. package/dist/index-HNYBk-az.d.ts.map +0 -1
  34. package/dist/index.d.ts +0 -576
  35. package/dist/index.d.ts.map +0 -1
  36. package/dist/index.js +0 -33
  37. package/dist/index.js.map +0 -1
  38. package/dist/interpreter/index.d.ts +0 -311
  39. package/dist/interpreter/index.d.ts.map +0 -1
  40. package/dist/interpreter/index.js +0 -292
  41. package/dist/interpreter/index.js.map +0 -1
  42. package/dist/openai/index.d.ts +0 -68
  43. package/dist/openai/index.d.ts.map +0 -1
  44. package/dist/openai/index.js +0 -367
  45. package/dist/openai/index.js.map +0 -1
  46. package/dist/opencode/index.d.ts +0 -182
  47. package/dist/opencode/index.d.ts.map +0 -1
  48. package/dist/opencode/index.js +0 -454
  49. package/dist/opencode/index.js.map +0 -1
  50. package/dist/process-types-GStiZ8f8.d.ts +0 -73
  51. package/dist/process-types-GStiZ8f8.d.ts.map +0 -1
  52. package/dist/sandbox-BbAabq93.d.ts +0 -42
  53. package/dist/sandbox-BbAabq93.d.ts.map +0 -1
  54. package/dist/sandbox-cmlgGVYX.js +0 -10056
  55. package/dist/sandbox-cmlgGVYX.js.map +0 -1
  56. package/dist/sidecar/index.d.ts +0 -77
  57. package/dist/sidecar/index.d.ts.map +0 -1
  58. package/dist/sidecar/index.js +0 -201
  59. package/dist/sidecar/index.js.map +0 -1
  60. package/dist/xterm/index.d.ts +0 -93
  61. package/dist/xterm/index.d.ts.map +0 -1
  62. package/dist/xterm/index.js +0 -220
  63. package/dist/xterm/index.js.map +0 -1
@@ -1,463 +0,0 @@
1
- import { t as ProcessExit } from "./process-types-GStiZ8f8.js";
2
-
3
- //#region ../shared/dist/errors/codes.d.ts
4
-
5
- /**
6
- * Centralized error code registry
7
- * Each code maps to a specific error type with consistent semantics
8
- */
9
- declare const ErrorCode: {
10
- readonly FILE_NOT_FOUND: "FILE_NOT_FOUND";
11
- readonly PERMISSION_DENIED: "PERMISSION_DENIED";
12
- readonly FILE_EXISTS: "FILE_EXISTS";
13
- readonly IS_DIRECTORY: "IS_DIRECTORY";
14
- readonly NOT_DIRECTORY: "NOT_DIRECTORY";
15
- readonly FILE_TOO_LARGE: "FILE_TOO_LARGE";
16
- readonly NO_SPACE: "NO_SPACE";
17
- readonly TOO_MANY_FILES: "TOO_MANY_FILES";
18
- readonly RESOURCE_BUSY: "RESOURCE_BUSY";
19
- readonly READ_ONLY: "READ_ONLY";
20
- readonly NAME_TOO_LONG: "NAME_TOO_LONG";
21
- readonly TOO_MANY_LINKS: "TOO_MANY_LINKS";
22
- readonly FILESYSTEM_ERROR: "FILESYSTEM_ERROR";
23
- readonly COMMAND_NOT_FOUND: "COMMAND_NOT_FOUND";
24
- readonly COMMAND_PERMISSION_DENIED: "COMMAND_PERMISSION_DENIED";
25
- readonly INVALID_COMMAND: "INVALID_COMMAND";
26
- readonly COMMAND_EXECUTION_ERROR: "COMMAND_EXECUTION_ERROR";
27
- readonly STREAM_START_ERROR: "STREAM_START_ERROR";
28
- readonly PROCESS_NOT_FOUND: "PROCESS_NOT_FOUND";
29
- readonly TERMINAL_NOT_FOUND: "TERMINAL_NOT_FOUND";
30
- readonly INVALID_PROCESS_CWD: "INVALID_PROCESS_CWD";
31
- readonly INVALID_PROCESS_ENVIRONMENT: "INVALID_PROCESS_ENVIRONMENT";
32
- readonly INVALID_PROCESS_CURSOR: "INVALID_PROCESS_CURSOR";
33
- readonly INVALID_TERMINAL_CWD: "INVALID_TERMINAL_CWD";
34
- readonly INVALID_TERMINAL_CURSOR: "INVALID_TERMINAL_CURSOR";
35
- readonly STALE_PROCESS_HANDLE: "STALE_PROCESS_HANDLE";
36
- readonly STALE_TERMINAL_HANDLE: "STALE_TERMINAL_HANDLE";
37
- readonly PROCESS_WAIT_TIMEOUT: "PROCESS_WAIT_TIMEOUT";
38
- readonly PROCESS_ABORTED: "PROCESS_ABORTED";
39
- readonly PROCESS_PERMISSION_DENIED: "PROCESS_PERMISSION_DENIED";
40
- readonly PROCESS_ERROR: "PROCESS_ERROR";
41
- readonly PROCESS_SPAWN_FAILED: "PROCESS_SPAWN_FAILED";
42
- readonly TERMINAL_CONTROL_ERROR: "TERMINAL_CONTROL_ERROR";
43
- readonly PORT_ALREADY_EXPOSED: "PORT_ALREADY_EXPOSED";
44
- readonly PORT_IN_USE: "PORT_IN_USE";
45
- readonly PORT_NOT_EXPOSED: "PORT_NOT_EXPOSED";
46
- readonly INVALID_PORT_NUMBER: "INVALID_PORT_NUMBER";
47
- readonly INVALID_PORT: "INVALID_PORT";
48
- readonly SERVICE_NOT_RESPONDING: "SERVICE_NOT_RESPONDING";
49
- readonly PORT_OPERATION_ERROR: "PORT_OPERATION_ERROR";
50
- readonly CUSTOM_DOMAIN_REQUIRED: "CUSTOM_DOMAIN_REQUIRED";
51
- readonly GIT_REPOSITORY_NOT_FOUND: "GIT_REPOSITORY_NOT_FOUND";
52
- readonly GIT_BRANCH_NOT_FOUND: "GIT_BRANCH_NOT_FOUND";
53
- readonly GIT_AUTH_FAILED: "GIT_AUTH_FAILED";
54
- readonly GIT_NETWORK_ERROR: "GIT_NETWORK_ERROR";
55
- readonly INVALID_GIT_URL: "INVALID_GIT_URL";
56
- readonly GIT_CLONE_FAILED: "GIT_CLONE_FAILED";
57
- readonly GIT_CHECKOUT_FAILED: "GIT_CHECKOUT_FAILED";
58
- readonly GIT_OPERATION_FAILED: "GIT_OPERATION_FAILED";
59
- readonly BUCKET_MOUNT_ERROR: "BUCKET_MOUNT_ERROR";
60
- readonly BUCKET_UNMOUNT_ERROR: "BUCKET_UNMOUNT_ERROR";
61
- readonly S3FS_MOUNT_ERROR: "S3FS_MOUNT_ERROR";
62
- readonly MISSING_CREDENTIALS: "MISSING_CREDENTIALS";
63
- readonly INVALID_MOUNT_CONFIG: "INVALID_MOUNT_CONFIG";
64
- readonly BACKUP_CREATE_FAILED: "BACKUP_CREATE_FAILED";
65
- readonly BACKUP_RESTORE_FAILED: "BACKUP_RESTORE_FAILED";
66
- readonly BACKUP_NOT_FOUND: "BACKUP_NOT_FOUND";
67
- readonly BACKUP_EXPIRED: "BACKUP_EXPIRED";
68
- readonly INVALID_BACKUP_CONFIG: "INVALID_BACKUP_CONFIG";
69
- readonly INTERPRETER_NOT_READY: "INTERPRETER_NOT_READY";
70
- readonly CONTEXT_NOT_FOUND: "CONTEXT_NOT_FOUND";
71
- readonly CODE_EXECUTION_ERROR: "CODE_EXECUTION_ERROR";
72
- readonly PYTHON_NOT_AVAILABLE: "PYTHON_NOT_AVAILABLE";
73
- readonly JAVASCRIPT_NOT_AVAILABLE: "JAVASCRIPT_NOT_AVAILABLE";
74
- readonly OPENCODE_STARTUP_FAILED: "OPENCODE_STARTUP_FAILED";
75
- readonly PROCESS_READY_TIMEOUT: "PROCESS_READY_TIMEOUT";
76
- readonly PROCESS_EXITED_BEFORE_READY: "PROCESS_EXITED_BEFORE_READY";
77
- readonly PROCESS_EXITED_BEFORE_LOG: "PROCESS_EXITED_BEFORE_LOG";
78
- readonly WATCH_NOT_FOUND: "WATCH_NOT_FOUND";
79
- readonly WATCH_START_ERROR: "WATCH_START_ERROR";
80
- readonly WATCH_STOP_ERROR: "WATCH_STOP_ERROR";
81
- readonly VALIDATION_FAILED: "VALIDATION_FAILED";
82
- readonly INVALID_JSON_RESPONSE: "INVALID_JSON_RESPONSE";
83
- readonly UNKNOWN_ERROR: "UNKNOWN_ERROR";
84
- readonly INTERNAL_ERROR: "INTERNAL_ERROR";
85
- readonly CONTAINER_UNAVAILABLE: "CONTAINER_UNAVAILABLE";
86
- readonly CONTROL_PROTOCOL_INCOMPATIBLE: "CONTROL_PROTOCOL_INCOMPATIBLE";
87
- readonly OPERATION_INTERRUPTED: "OPERATION_INTERRUPTED";
88
- readonly RPC_TRANSPORT_ERROR: "RPC_TRANSPORT_ERROR";
89
- };
90
- type ErrorCode = (typeof ErrorCode)[keyof typeof ErrorCode];
91
- //#endregion
92
- //#region ../shared/dist/errors/types.d.ts
93
- /**
94
- * Standard operation types
95
- */
96
- declare const Operation: {
97
- readonly FILE_READ: "file.read";
98
- readonly FILE_WRITE: "file.write";
99
- readonly FILE_DELETE: "file.delete";
100
- readonly FILE_MOVE: "file.move";
101
- readonly FILE_RENAME: "file.rename";
102
- readonly FILE_STAT: "file.stat";
103
- readonly DIRECTORY_CREATE: "directory.create";
104
- readonly DIRECTORY_LIST: "directory.list";
105
- readonly COMMAND_EXECUTE: "command.execute";
106
- readonly COMMAND_STREAM: "command.stream";
107
- readonly PROCESS_START: "process.start";
108
- readonly PROCESS_KILL: "process.kill";
109
- readonly PROCESS_LIST: "process.list";
110
- readonly PROCESS_GET: "process.get";
111
- readonly PROCESS_LOGS: "process.logs";
112
- readonly GIT_CLONE: "git.clone";
113
- readonly GIT_CHECKOUT: "git.checkout";
114
- readonly GIT_OPERATION: "git.operation";
115
- readonly BACKUP_CREATE: "backup.create";
116
- readonly BACKUP_RESTORE: "backup.restore";
117
- readonly BACKUP_UNMOUNT: "backup.unmount";
118
- readonly CODE_EXECUTE: "code.execute";
119
- readonly CODE_CONTEXT_CREATE: "code.context.create";
120
- readonly CODE_CONTEXT_DELETE: "code.context.delete";
121
- };
122
- type OperationType = (typeof Operation)[keyof typeof Operation];
123
- /**
124
- * Standard error response format with generic context type
125
- * TContext allows type-safe access to error-specific context
126
- */
127
- interface ErrorResponse<TContext = Record<string, unknown>> {
128
- /**
129
- * Error type code (machine-readable)
130
- */
131
- code: ErrorCode;
132
- /**
133
- * Human-readable error message
134
- */
135
- message: string;
136
- /**
137
- * Operation that was attempted (useful for debugging and logging)
138
- */
139
- operation?: OperationType;
140
- /**
141
- * Structured error context with relevant details
142
- * Type varies based on error code
143
- */
144
- context: TContext;
145
- /**
146
- * HTTP status code (for client SDK)
147
- */
148
- httpStatus: number;
149
- /**
150
- * Timestamp when error occurred
151
- */
152
- timestamp: string;
153
- /**
154
- * Actionable suggestion for fixing the error
155
- */
156
- suggestion?: string;
157
- /**
158
- * Link to documentation
159
- */
160
- documentation?: string;
161
- }
162
- //#endregion
163
- //#region ../shared/dist/errors/contexts.d.ts
164
- /**
165
- * File system error contexts
166
- */
167
- interface FileNotFoundContext {
168
- path: string;
169
- operation: OperationType;
170
- }
171
- interface FileExistsContext {
172
- path: string;
173
- operation: OperationType;
174
- }
175
- interface FileTooLargeContext {
176
- path: string;
177
- operation: OperationType;
178
- maxSize: number;
179
- actualSize: number;
180
- }
181
- interface FileSystemContext {
182
- path: string;
183
- operation: OperationType;
184
- stderr?: string;
185
- exitCode?: number;
186
- }
187
- /**
188
- * Command error contexts
189
- */
190
- interface CommandNotFoundContext {
191
- command: string;
192
- }
193
- interface CommandErrorContext {
194
- command: string;
195
- exitCode?: number;
196
- stdout?: string;
197
- stderr?: string;
198
- }
199
- /**
200
- * Process error contexts
201
- */
202
- interface ProcessNotFoundContext {
203
- processId: string;
204
- }
205
- interface ProcessErrorContext {
206
- processId: string;
207
- pid?: number;
208
- exitCode?: number;
209
- stderr?: string;
210
- }
211
- interface InvalidProcessCwdContext {
212
- processId?: string;
213
- cwd: string;
214
- reason: string;
215
- }
216
- interface InvalidProcessEnvironmentContext {
217
- processId?: string;
218
- name?: string;
219
- reason: string;
220
- }
221
- interface ProcessSpawnFailedContext {
222
- processId: string;
223
- command: string;
224
- cwd?: string;
225
- stderr?: string;
226
- }
227
- interface InvalidProcessCursorContext {
228
- processId: string;
229
- cursor?: string;
230
- reason: string;
231
- }
232
- interface StaleProcessHandleContext {
233
- processId: string;
234
- pid: number;
235
- operation: string;
236
- }
237
- interface ProcessWaitTimeoutContext {
238
- processId: string;
239
- operation: 'output' | 'waitForExit' | 'waitForLog';
240
- timeout: number;
241
- }
242
- interface ProcessAbortedContext {
243
- processId: string;
244
- operation: string;
245
- }
246
- interface TerminalNotFoundContext {
247
- terminalId: string;
248
- }
249
- interface InvalidTerminalCwdContext {
250
- terminalId: string;
251
- cwd: string;
252
- reason: string;
253
- }
254
- interface InvalidTerminalCursorContext {
255
- terminalId: string;
256
- cursor?: string;
257
- reason: string;
258
- }
259
- interface TerminalControlErrorContext {
260
- terminalId: string;
261
- operation: string;
262
- reason?: string;
263
- failure?: {
264
- code: string;
265
- message: string;
266
- };
267
- }
268
- interface StaleTerminalHandleContext {
269
- terminalId: string;
270
- operation: string;
271
- }
272
- /**
273
- * Process readiness error contexts
274
- */
275
- interface ProcessReadyTimeoutContext {
276
- processId: string;
277
- command: string;
278
- condition: string;
279
- timeout: number;
280
- }
281
- interface ProcessExitedBeforeReadyContext {
282
- processId: string;
283
- command: string;
284
- condition: string;
285
- exitCode: number;
286
- }
287
- interface ProcessExitedBeforeLogContext {
288
- processId: string;
289
- pid: number;
290
- exit: ProcessExit;
291
- }
292
- /**
293
- * Port error contexts
294
- */
295
- interface PortAlreadyExposedContext {
296
- port: number;
297
- portName?: string;
298
- }
299
- interface PortNotExposedContext {
300
- port: number;
301
- }
302
- interface InvalidPortContext {
303
- port: number;
304
- reason: string;
305
- }
306
- interface PortErrorContext {
307
- port: number;
308
- portName?: string;
309
- stderr?: string;
310
- }
311
- /**
312
- * Git error contexts
313
- */
314
- interface GitRepositoryNotFoundContext {
315
- repository: string;
316
- }
317
- interface GitAuthFailedContext {
318
- repository: string;
319
- }
320
- interface GitBranchNotFoundContext {
321
- branch: string;
322
- repository?: string;
323
- }
324
- interface GitErrorContext {
325
- repository?: string;
326
- branch?: string;
327
- targetDir?: string;
328
- stderr?: string;
329
- exitCode?: number;
330
- }
331
- /**
332
- * Code interpreter error contexts
333
- */
334
- interface InterpreterNotReadyContext {
335
- retryAfter?: number;
336
- progress?: number;
337
- }
338
- interface ContextNotFoundContext {
339
- contextId: string;
340
- }
341
- interface CodeExecutionContext {
342
- contextId?: string;
343
- ename?: string;
344
- evalue?: string;
345
- traceback?: string[];
346
- }
347
- /**
348
- * Validation error contexts
349
- */
350
- interface ValidationFailedContext {
351
- validationErrors: Array<{
352
- field: string;
353
- message: string;
354
- code?: string;
355
- }>;
356
- }
357
- /**
358
- * Backup error contexts
359
- */
360
- interface BackupCreateContext {
361
- dir: string;
362
- backupId?: string;
363
- stderr?: string;
364
- exitCode?: number;
365
- }
366
- interface BackupRestoreContext {
367
- dir: string;
368
- backupId: string;
369
- stderr?: string;
370
- exitCode?: number;
371
- }
372
- interface BackupNotFoundContext {
373
- backupId: string;
374
- }
375
- interface BackupExpiredContext {
376
- backupId: string;
377
- expiredAt?: string;
378
- }
379
- interface InvalidBackupConfigContext {
380
- reason: string;
381
- }
382
- /**
383
- * OpenCode error contexts
384
- */
385
- interface OpenCodeStartupContext {
386
- port: number;
387
- stderr?: string;
388
- command?: string;
389
- }
390
- /**
391
- * Generic error contexts
392
- */
393
- interface InternalErrorContext {
394
- originalError?: string;
395
- stack?: string;
396
- [key: string]: unknown;
397
- }
398
- /**
399
- * Container availability error context. Surfaced when the sandbox container
400
- * cannot accept the incoming RPC connection. The container may be starting
401
- * up, undergoing a runtime replacement, or temporarily unhealthy. The
402
- * caller should retry the same operation.
403
- */
404
- interface ContainerUnavailableContext {
405
- /**
406
- * Categorical reason distinguishing startup unavailability from runtime
407
- * replacement and exhausted upgrade retries.
408
- */
409
- reason: 'container_starting' | 'container_unhealthy' | 'container_replaced' | 'rpc_upgrade_failed';
410
- /**
411
- * Always true — this error represents a transient unavailability, not a
412
- * permanent failure. Callers should retry the same operation.
413
- */
414
- retryable: true;
415
- /** Suggested delay in milliseconds before the next retry attempt. */
416
- retryAfterMs?: number;
417
- }
418
- type OperationInterruptedReason = 'runtime_replaced' | 'container_stopped' | 'transport_disposed' | 'sandbox_destroyed' | 'sandbox_lifetime_changed' | 'recovery_exhausted' | 'unknown';
419
- interface OperationInterruptedContext {
420
- reason: OperationInterruptedReason;
421
- operation: string;
422
- phase?: string;
423
- admitted: true | 'unknown';
424
- retryable: boolean;
425
- operationId?: string;
426
- operationKey?: string;
427
- idempotencyKey?: string;
428
- recoveryAttempts?: number;
429
- maxRecoveryAttempts?: number;
430
- backupId?: string;
431
- dir?: string;
432
- }
433
- /**
434
- * RPC transport error contexts. Surfaced when the capnweb WebSocket session
435
- * fails on the SDK side rather than the container reporting a structured
436
- * error. Always retryable — the next call will open a fresh connection.
437
- */
438
- type RPCTransportErrorKind = /** Server closed the WebSocket (container crash, DO eviction, network blip). */
439
- 'peer_closed'
440
- /** Underlying socket fired the `error` event. */ | 'connection_failed'
441
- /** WebSocket upgrade failed before the session was established. */ | 'upgrade_failed'
442
- /** Peer sent a non-string frame; capnweb's wire format is JSON text only. */ | 'invalid_frame'
443
- /** Peer sent a frame the wire-format parser rejected (capnweb readLoop SyntaxError). */ | 'protocol_error' | 'session_disposed'
444
- /** Anything else that bubbled up from the transport with no recognisable shape. */ | 'unknown';
445
- interface RPCTransportContext {
446
- /** Categorical bucket so callers can branch on `peer_closed` vs `upgrade_failed` etc. */
447
- kind: RPCTransportErrorKind;
448
- /** Original error message, verbatim from capnweb / our DeferredTransport. */
449
- originalMessage: string;
450
- /**
451
- * The underlying Error's `name` property. capnweb preserves this across
452
- * the wire for the standard built-ins (TypeError, SyntaxError, etc.), so
453
- * it's a more reliable hint than the message string for those cases.
454
- */
455
- errorName: string;
456
- /** WebSocket close code, when available (kind === 'peer_closed'). */
457
- closeCode?: number;
458
- /** WebSocket close reason, when available (kind === 'peer_closed'). */
459
- closeReason?: string;
460
- }
461
- //#endregion
462
- export { PortAlreadyExposedContext as A, ProcessWaitTimeoutContext as B, InvalidProcessCwdContext as C, OpenCodeStartupContext as D, InvalidTerminalCwdContext as E, ProcessExitedBeforeLogContext as F, TerminalControlErrorContext as G, RPCTransportErrorKind as H, ProcessExitedBeforeReadyContext as I, ErrorResponse as J, TerminalNotFoundContext as K, ProcessNotFoundContext as L, PortNotExposedContext as M, ProcessAbortedContext as N, OperationInterruptedContext as O, ProcessErrorContext as P, ProcessReadyTimeoutContext as R, InvalidProcessCursorContext as S, InvalidTerminalCursorContext as T, StaleProcessHandleContext as U, RPCTransportContext as V, StaleTerminalHandleContext as W, OperationType as X, Operation as Y, ErrorCode as Z, GitRepositoryNotFoundContext as _, CodeExecutionContext as a, InvalidBackupConfigContext as b, ContainerUnavailableContext as c, FileNotFoundContext as d, FileSystemContext as f, GitErrorContext as g, GitBranchNotFoundContext as h, BackupRestoreContext as i, PortErrorContext as j, OperationInterruptedReason as k, ContextNotFoundContext as l, GitAuthFailedContext as m, BackupExpiredContext as n, CommandErrorContext as o, FileTooLargeContext as p, ValidationFailedContext as q, BackupNotFoundContext as r, CommandNotFoundContext as s, BackupCreateContext as t, FileExistsContext as u, InternalErrorContext as v, InvalidProcessEnvironmentContext as w, InvalidPortContext as x, InterpreterNotReadyContext as y, ProcessSpawnFailedContext as z };
463
- //# sourceMappingURL=contexts-1EsLHByO.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"contexts-1EsLHByO.d.ts","names":["ErrorCode","ErrorCode","Operation","OperationType","ErrorResponse","TContext","Record","ServiceError","ServiceResult","T","ProcessExit","OperationType","FileNotFoundContext","FileExistsContext","FileTooLargeContext","FileSystemContext","CommandNotFoundContext","CommandErrorContext","ProcessNotFoundContext","ProcessErrorContext","InvalidProcessCwdContext","InvalidProcessEnvironmentContext","ProcessSpawnFailedContext","InvalidProcessCursorContext","StaleProcessHandleContext","ProcessWaitTimeoutContext","ProcessAbortedContext","TerminalNotFoundContext","InvalidTerminalCwdContext","InvalidTerminalCursorContext","TerminalControlErrorContext","StaleTerminalHandleContext","ProcessReadyTimeoutContext","ProcessExitedBeforeReadyContext","ProcessExitedBeforeLogContext","PortAlreadyExposedContext","PortNotExposedContext","InvalidPortContext","PortErrorContext","GitRepositoryNotFoundContext","GitAuthFailedContext","GitBranchNotFoundContext","GitErrorContext","InterpreterNotReadyContext","ContextNotFoundContext","CodeExecutionContext","ValidationFailedContext","Array","BucketMountContext","MissingCredentialsContext","InvalidMountConfigContext","BackupCreateContext","BackupRestoreContext","BackupNotFoundContext","BackupExpiredContext","InvalidBackupConfigContext","OpenCodeStartupContext","InternalErrorContext","ContainerUnavailableContext","OperationInterruptedReason","OperationInterruptedContext","RPCTransportErrorKind","RPCTransportContext"],"sources":["../../shared/dist/errors/codes.d.ts","../../shared/dist/errors/types.d.ts","../../shared/dist/errors/contexts.d.ts"],"sourcesContent":["/**\n * Centralized error code registry\n * Each code maps to a specific error type with consistent semantics\n */\nexport declare const ErrorCode: {\n readonly FILE_NOT_FOUND: \"FILE_NOT_FOUND\";\n readonly PERMISSION_DENIED: \"PERMISSION_DENIED\";\n readonly FILE_EXISTS: \"FILE_EXISTS\";\n readonly IS_DIRECTORY: \"IS_DIRECTORY\";\n readonly NOT_DIRECTORY: \"NOT_DIRECTORY\";\n readonly FILE_TOO_LARGE: \"FILE_TOO_LARGE\";\n readonly NO_SPACE: \"NO_SPACE\";\n readonly TOO_MANY_FILES: \"TOO_MANY_FILES\";\n readonly RESOURCE_BUSY: \"RESOURCE_BUSY\";\n readonly READ_ONLY: \"READ_ONLY\";\n readonly NAME_TOO_LONG: \"NAME_TOO_LONG\";\n readonly TOO_MANY_LINKS: \"TOO_MANY_LINKS\";\n readonly FILESYSTEM_ERROR: \"FILESYSTEM_ERROR\";\n readonly COMMAND_NOT_FOUND: \"COMMAND_NOT_FOUND\";\n readonly COMMAND_PERMISSION_DENIED: \"COMMAND_PERMISSION_DENIED\";\n readonly INVALID_COMMAND: \"INVALID_COMMAND\";\n readonly COMMAND_EXECUTION_ERROR: \"COMMAND_EXECUTION_ERROR\";\n readonly STREAM_START_ERROR: \"STREAM_START_ERROR\";\n readonly PROCESS_NOT_FOUND: \"PROCESS_NOT_FOUND\";\n readonly TERMINAL_NOT_FOUND: \"TERMINAL_NOT_FOUND\";\n readonly INVALID_PROCESS_CWD: \"INVALID_PROCESS_CWD\";\n readonly INVALID_PROCESS_ENVIRONMENT: \"INVALID_PROCESS_ENVIRONMENT\";\n readonly INVALID_PROCESS_CURSOR: \"INVALID_PROCESS_CURSOR\";\n readonly INVALID_TERMINAL_CWD: \"INVALID_TERMINAL_CWD\";\n readonly INVALID_TERMINAL_CURSOR: \"INVALID_TERMINAL_CURSOR\";\n readonly STALE_PROCESS_HANDLE: \"STALE_PROCESS_HANDLE\";\n readonly STALE_TERMINAL_HANDLE: \"STALE_TERMINAL_HANDLE\";\n readonly PROCESS_WAIT_TIMEOUT: \"PROCESS_WAIT_TIMEOUT\";\n readonly PROCESS_ABORTED: \"PROCESS_ABORTED\";\n readonly PROCESS_PERMISSION_DENIED: \"PROCESS_PERMISSION_DENIED\";\n readonly PROCESS_ERROR: \"PROCESS_ERROR\";\n readonly PROCESS_SPAWN_FAILED: \"PROCESS_SPAWN_FAILED\";\n readonly TERMINAL_CONTROL_ERROR: \"TERMINAL_CONTROL_ERROR\";\n readonly PORT_ALREADY_EXPOSED: \"PORT_ALREADY_EXPOSED\";\n readonly PORT_IN_USE: \"PORT_IN_USE\";\n readonly PORT_NOT_EXPOSED: \"PORT_NOT_EXPOSED\";\n readonly INVALID_PORT_NUMBER: \"INVALID_PORT_NUMBER\";\n readonly INVALID_PORT: \"INVALID_PORT\";\n readonly SERVICE_NOT_RESPONDING: \"SERVICE_NOT_RESPONDING\";\n readonly PORT_OPERATION_ERROR: \"PORT_OPERATION_ERROR\";\n readonly CUSTOM_DOMAIN_REQUIRED: \"CUSTOM_DOMAIN_REQUIRED\";\n readonly GIT_REPOSITORY_NOT_FOUND: \"GIT_REPOSITORY_NOT_FOUND\";\n readonly GIT_BRANCH_NOT_FOUND: \"GIT_BRANCH_NOT_FOUND\";\n readonly GIT_AUTH_FAILED: \"GIT_AUTH_FAILED\";\n readonly GIT_NETWORK_ERROR: \"GIT_NETWORK_ERROR\";\n readonly INVALID_GIT_URL: \"INVALID_GIT_URL\";\n readonly GIT_CLONE_FAILED: \"GIT_CLONE_FAILED\";\n readonly GIT_CHECKOUT_FAILED: \"GIT_CHECKOUT_FAILED\";\n readonly GIT_OPERATION_FAILED: \"GIT_OPERATION_FAILED\";\n readonly BUCKET_MOUNT_ERROR: \"BUCKET_MOUNT_ERROR\";\n readonly BUCKET_UNMOUNT_ERROR: \"BUCKET_UNMOUNT_ERROR\";\n readonly S3FS_MOUNT_ERROR: \"S3FS_MOUNT_ERROR\";\n readonly MISSING_CREDENTIALS: \"MISSING_CREDENTIALS\";\n readonly INVALID_MOUNT_CONFIG: \"INVALID_MOUNT_CONFIG\";\n readonly BACKUP_CREATE_FAILED: \"BACKUP_CREATE_FAILED\";\n readonly BACKUP_RESTORE_FAILED: \"BACKUP_RESTORE_FAILED\";\n readonly BACKUP_NOT_FOUND: \"BACKUP_NOT_FOUND\";\n readonly BACKUP_EXPIRED: \"BACKUP_EXPIRED\";\n readonly INVALID_BACKUP_CONFIG: \"INVALID_BACKUP_CONFIG\";\n readonly INTERPRETER_NOT_READY: \"INTERPRETER_NOT_READY\";\n readonly CONTEXT_NOT_FOUND: \"CONTEXT_NOT_FOUND\";\n readonly CODE_EXECUTION_ERROR: \"CODE_EXECUTION_ERROR\";\n readonly PYTHON_NOT_AVAILABLE: \"PYTHON_NOT_AVAILABLE\";\n readonly JAVASCRIPT_NOT_AVAILABLE: \"JAVASCRIPT_NOT_AVAILABLE\";\n readonly OPENCODE_STARTUP_FAILED: \"OPENCODE_STARTUP_FAILED\";\n readonly PROCESS_READY_TIMEOUT: \"PROCESS_READY_TIMEOUT\";\n readonly PROCESS_EXITED_BEFORE_READY: \"PROCESS_EXITED_BEFORE_READY\";\n readonly PROCESS_EXITED_BEFORE_LOG: \"PROCESS_EXITED_BEFORE_LOG\";\n readonly WATCH_NOT_FOUND: \"WATCH_NOT_FOUND\";\n readonly WATCH_START_ERROR: \"WATCH_START_ERROR\";\n readonly WATCH_STOP_ERROR: \"WATCH_STOP_ERROR\";\n readonly VALIDATION_FAILED: \"VALIDATION_FAILED\";\n readonly INVALID_JSON_RESPONSE: \"INVALID_JSON_RESPONSE\";\n readonly UNKNOWN_ERROR: \"UNKNOWN_ERROR\";\n readonly INTERNAL_ERROR: \"INTERNAL_ERROR\";\n readonly CONTAINER_UNAVAILABLE: \"CONTAINER_UNAVAILABLE\";\n readonly CONTROL_PROTOCOL_INCOMPATIBLE: \"CONTROL_PROTOCOL_INCOMPATIBLE\";\n readonly OPERATION_INTERRUPTED: \"OPERATION_INTERRUPTED\";\n readonly RPC_TRANSPORT_ERROR: \"RPC_TRANSPORT_ERROR\";\n};\nexport type ErrorCode = (typeof ErrorCode)[keyof typeof ErrorCode];\n//# sourceMappingURL=codes.d.ts.map","import type { ErrorCode } from './codes';\n/**\n * Standard operation types\n */\nexport declare const Operation: {\n readonly FILE_READ: \"file.read\";\n readonly FILE_WRITE: \"file.write\";\n readonly FILE_DELETE: \"file.delete\";\n readonly FILE_MOVE: \"file.move\";\n readonly FILE_RENAME: \"file.rename\";\n readonly FILE_STAT: \"file.stat\";\n readonly DIRECTORY_CREATE: \"directory.create\";\n readonly DIRECTORY_LIST: \"directory.list\";\n readonly COMMAND_EXECUTE: \"command.execute\";\n readonly COMMAND_STREAM: \"command.stream\";\n readonly PROCESS_START: \"process.start\";\n readonly PROCESS_KILL: \"process.kill\";\n readonly PROCESS_LIST: \"process.list\";\n readonly PROCESS_GET: \"process.get\";\n readonly PROCESS_LOGS: \"process.logs\";\n readonly GIT_CLONE: \"git.clone\";\n readonly GIT_CHECKOUT: \"git.checkout\";\n readonly GIT_OPERATION: \"git.operation\";\n readonly BACKUP_CREATE: \"backup.create\";\n readonly BACKUP_RESTORE: \"backup.restore\";\n readonly BACKUP_UNMOUNT: \"backup.unmount\";\n readonly CODE_EXECUTE: \"code.execute\";\n readonly CODE_CONTEXT_CREATE: \"code.context.create\";\n readonly CODE_CONTEXT_DELETE: \"code.context.delete\";\n};\nexport type OperationType = (typeof Operation)[keyof typeof Operation];\n/**\n * Standard error response format with generic context type\n * TContext allows type-safe access to error-specific context\n */\nexport interface ErrorResponse<TContext = Record<string, unknown>> {\n /**\n * Error type code (machine-readable)\n */\n code: ErrorCode;\n /**\n * Human-readable error message\n */\n message: string;\n /**\n * Operation that was attempted (useful for debugging and logging)\n */\n operation?: OperationType;\n /**\n * Structured error context with relevant details\n * Type varies based on error code\n */\n context: TContext;\n /**\n * HTTP status code (for client SDK)\n */\n httpStatus: number;\n /**\n * Timestamp when error occurred\n */\n timestamp: string;\n /**\n * Actionable suggestion for fixing the error\n */\n suggestion?: string;\n /**\n * Link to documentation\n */\n documentation?: string;\n}\n/**\n * Container ServiceError (lightweight, enriched by handlers)\n */\nexport interface ServiceError {\n message: string;\n code: ErrorCode;\n details?: Record<string, unknown>;\n}\n/**\n * ServiceResult type for container services\n */\nexport type ServiceResult<T> = {\n success: true;\n data: T;\n} | {\n success: false;\n error: ServiceError;\n};\n//# sourceMappingURL=types.d.ts.map","import type { ProcessExit } from '../process-types';\nimport type { OperationType } from './types';\n/**\n * File system error contexts\n */\nexport interface FileNotFoundContext {\n path: string;\n operation: OperationType;\n}\nexport interface FileExistsContext {\n path: string;\n operation: OperationType;\n}\nexport interface FileTooLargeContext {\n path: string;\n operation: OperationType;\n maxSize: number;\n actualSize: number;\n}\nexport interface FileSystemContext {\n path: string;\n operation: OperationType;\n stderr?: string;\n exitCode?: number;\n}\n/**\n * Command error contexts\n */\nexport interface CommandNotFoundContext {\n command: string;\n}\nexport interface CommandErrorContext {\n command: string;\n exitCode?: number;\n stdout?: string;\n stderr?: string;\n}\n/**\n * Process error contexts\n */\nexport interface ProcessNotFoundContext {\n processId: string;\n}\nexport interface ProcessErrorContext {\n processId: string;\n pid?: number;\n exitCode?: number;\n stderr?: string;\n}\nexport interface InvalidProcessCwdContext {\n processId?: string;\n cwd: string;\n reason: string;\n}\nexport interface InvalidProcessEnvironmentContext {\n processId?: string;\n name?: string;\n reason: string;\n}\nexport interface ProcessSpawnFailedContext {\n processId: string;\n command: string;\n cwd?: string;\n stderr?: string;\n}\nexport interface InvalidProcessCursorContext {\n processId: string;\n cursor?: string;\n reason: string;\n}\nexport interface StaleProcessHandleContext {\n processId: string;\n pid: number;\n operation: string;\n}\nexport interface ProcessWaitTimeoutContext {\n processId: string;\n operation: 'output' | 'waitForExit' | 'waitForLog';\n timeout: number;\n}\nexport interface ProcessAbortedContext {\n processId: string;\n operation: string;\n}\nexport interface TerminalNotFoundContext {\n terminalId: string;\n}\nexport interface InvalidTerminalCwdContext {\n terminalId: string;\n cwd: string;\n reason: string;\n}\nexport interface InvalidTerminalCursorContext {\n terminalId: string;\n cursor?: string;\n reason: string;\n}\nexport interface TerminalControlErrorContext {\n terminalId: string;\n operation: string;\n reason?: string;\n failure?: {\n code: string;\n message: string;\n };\n}\nexport interface StaleTerminalHandleContext {\n terminalId: string;\n operation: string;\n}\n/**\n * Process readiness error contexts\n */\nexport interface ProcessReadyTimeoutContext {\n processId: string;\n command: string;\n condition: string;\n timeout: number;\n}\nexport interface ProcessExitedBeforeReadyContext {\n processId: string;\n command: string;\n condition: string;\n exitCode: number;\n}\nexport interface ProcessExitedBeforeLogContext {\n processId: string;\n pid: number;\n exit: ProcessExit;\n}\n/**\n * Port error contexts\n */\nexport interface PortAlreadyExposedContext {\n port: number;\n portName?: string;\n}\nexport interface PortNotExposedContext {\n port: number;\n}\nexport interface InvalidPortContext {\n port: number;\n reason: string;\n}\nexport interface PortErrorContext {\n port: number;\n portName?: string;\n stderr?: string;\n}\n/**\n * Git error contexts\n */\nexport interface GitRepositoryNotFoundContext {\n repository: string;\n}\nexport interface GitAuthFailedContext {\n repository: string;\n}\nexport interface GitBranchNotFoundContext {\n branch: string;\n repository?: string;\n}\nexport interface GitErrorContext {\n repository?: string;\n branch?: string;\n targetDir?: string;\n stderr?: string;\n exitCode?: number;\n}\n/**\n * Code interpreter error contexts\n */\nexport interface InterpreterNotReadyContext {\n retryAfter?: number;\n progress?: number;\n}\nexport interface ContextNotFoundContext {\n contextId: string;\n}\nexport interface CodeExecutionContext {\n contextId?: string;\n ename?: string;\n evalue?: string;\n traceback?: string[];\n}\n/**\n * Validation error contexts\n */\nexport interface ValidationFailedContext {\n validationErrors: Array<{\n field: string;\n message: string;\n code?: string;\n }>;\n}\n/**\n * Bucket mounting error contexts\n */\nexport interface BucketMountContext {\n bucket: string;\n mountPath: string;\n endpoint: string;\n stderr?: string;\n exitCode?: number;\n}\nexport interface MissingCredentialsContext {\n bucket: string;\n endpoint: string;\n}\nexport interface InvalidMountConfigContext {\n bucket?: string;\n mountPath?: string;\n endpoint?: string;\n reason?: string;\n}\n/**\n * Backup error contexts\n */\nexport interface BackupCreateContext {\n dir: string;\n backupId?: string;\n stderr?: string;\n exitCode?: number;\n}\nexport interface BackupRestoreContext {\n dir: string;\n backupId: string;\n stderr?: string;\n exitCode?: number;\n}\nexport interface BackupNotFoundContext {\n backupId: string;\n}\nexport interface BackupExpiredContext {\n backupId: string;\n expiredAt?: string;\n}\nexport interface InvalidBackupConfigContext {\n reason: string;\n}\n/**\n * OpenCode error contexts\n */\nexport interface OpenCodeStartupContext {\n port: number;\n stderr?: string;\n command?: string;\n}\n/**\n * Generic error contexts\n */\nexport interface InternalErrorContext {\n originalError?: string;\n stack?: string;\n [key: string]: unknown;\n}\n/**\n * Container availability error context. Surfaced when the sandbox container\n * cannot accept the incoming RPC connection. The container may be starting\n * up, undergoing a runtime replacement, or temporarily unhealthy. The\n * caller should retry the same operation.\n */\nexport interface ContainerUnavailableContext {\n /**\n * Categorical reason distinguishing startup unavailability from runtime\n * replacement and exhausted upgrade retries.\n */\n reason: 'container_starting' | 'container_unhealthy' | 'container_replaced' | 'rpc_upgrade_failed';\n /**\n * Always true — this error represents a transient unavailability, not a\n * permanent failure. Callers should retry the same operation.\n */\n retryable: true;\n /** Suggested delay in milliseconds before the next retry attempt. */\n retryAfterMs?: number;\n}\nexport type OperationInterruptedReason = 'runtime_replaced' | 'container_stopped' | 'transport_disposed' | 'sandbox_destroyed' | 'sandbox_lifetime_changed' | 'recovery_exhausted' | 'unknown';\nexport interface OperationInterruptedContext {\n reason: OperationInterruptedReason;\n operation: string;\n phase?: string;\n admitted: true | 'unknown';\n retryable: boolean;\n operationId?: string;\n operationKey?: string;\n idempotencyKey?: string;\n recoveryAttempts?: number;\n maxRecoveryAttempts?: number;\n backupId?: string;\n dir?: string;\n}\n/**\n * RPC transport error contexts. Surfaced when the capnweb WebSocket session\n * fails on the SDK side rather than the container reporting a structured\n * error. Always retryable — the next call will open a fresh connection.\n */\nexport type RPCTransportErrorKind = \n/** Server closed the WebSocket (container crash, DO eviction, network blip). */\n'peer_closed'\n/** Underlying socket fired the `error` event. */\n | 'connection_failed'\n/** WebSocket upgrade failed before the session was established. */\n | 'upgrade_failed'\n/** Peer sent a non-string frame; capnweb's wire format is JSON text only. */\n | 'invalid_frame'\n/** Peer sent a frame the wire-format parser rejected (capnweb readLoop SyntaxError). */\n | 'protocol_error' | 'session_disposed'\n/** Anything else that bubbled up from the transport with no recognisable shape. */\n | 'unknown';\nexport interface RPCTransportContext {\n /** Categorical bucket so callers can branch on `peer_closed` vs `upgrade_failed` etc. */\n kind: RPCTransportErrorKind;\n /** Original error message, verbatim from capnweb / our DeferredTransport. */\n originalMessage: string;\n /**\n * The underlying Error's `name` property. capnweb preserves this across\n * the wire for the standard built-ins (TypeError, SyntaxError, etc.), so\n * it's a more reliable hint than the message string for those cases.\n */\n errorName: string;\n /** WebSocket close code, when available (kind === 'peer_closed'). */\n closeCode?: number;\n /** WebSocket close reason, when available (kind === 'peer_closed'). */\n closeReason?: string;\n}\n//# sourceMappingURL=contexts.d.ts.map"],"mappings":";;;;;;;AAIA;AAiFYA,cAjFSA,SAiFWA,EAAAA;;;;ECjFXE,SAAAA,YAyBpB,EAAA,cAAA;EACWC,SAAAA,aAAa,EAAA,eAAWD;EAKnBE,SAAAA,cAAaC,EAAAA,gBAAA;EAAYC,SAAAA,QAAAA,EAAAA,UAAAA;EAIhCL,SAAAA,cAAAA,EAAAA,gBAAAA;EAQME,SAAAA,aAAAA,EAAAA,eAAAA;EAKHE,SAAAA,SAAAA,EAAAA,WAAAA;EAAQ,SAAA,aAAA,EAAA,eAAA;;;;EC/CJO,SAAAA,yBAAmB,EAErBD,2BAAa;EAEXE,SAAAA,eAAiB,EAAA,iBAEnBF;EAEEG,SAAAA,uBAAmB,EAAA,yBAER;EAIXC,SAAAA,kBAAiB,EAAA,oBAEN;EAOXC,SAAAA,iBAAsB,EAAA,mBAAA;EAGtBC,SAAAA,kBAAmB,EAAA,oBAAA;EASnBC,SAAAA,mBAAsB,EAAA,qBAAA;EAGtBC,SAAAA,2BAAmB,EAAA,6BAAA;EAMnBC,SAAAA,sBAAw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