@cloudflare/sandbox 0.5.2 → 0.5.3
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/.turbo/turbo-build.log +9 -9
- package/CHANGELOG.md +6 -0
- package/dist/index.d.ts +19 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +56 -13
- package/dist/index.js.map +1 -1
- package/dist/openai/index.d.ts +1 -1
- package/dist/{sandbox-B3vJ541e.d.ts → sandbox-HQazw9bn.d.ts} +24 -12
- package/dist/sandbox-HQazw9bn.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/clients/command-client.ts +31 -13
- package/src/clients/process-client.ts +20 -2
- package/src/sandbox.ts +56 -9
- package/src/version.ts +1 -1
- package/tests/sandbox.test.ts +48 -24
- package/dist/sandbox-B3vJ541e.d.ts.map +0 -1
package/dist/openai/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as Sandbox } from "../sandbox-
|
|
1
|
+
import { t as Sandbox } from "../sandbox-HQazw9bn.js";
|
|
2
2
|
import { ApplyPatchOperation, ApplyPatchResult, Editor as Editor$1, Shell as Shell$1, ShellAction, ShellResult } from "@openai/agents";
|
|
3
3
|
|
|
4
4
|
//#region src/openai/index.d.ts
|
|
@@ -347,7 +347,9 @@ interface BaseExecOptions {
|
|
|
347
347
|
*/
|
|
348
348
|
timeout?: number;
|
|
349
349
|
/**
|
|
350
|
-
* Environment variables for
|
|
350
|
+
* Environment variables for this command invocation.
|
|
351
|
+
* Values temporarily override session-level/container-level env for the
|
|
352
|
+
* duration of the command but do not persist after it completes.
|
|
351
353
|
*/
|
|
352
354
|
env?: Record<string, string>;
|
|
353
355
|
/**
|
|
@@ -986,6 +988,7 @@ interface ISandbox {
|
|
|
986
988
|
branch?: string;
|
|
987
989
|
targetDir?: string;
|
|
988
990
|
}): Promise<GitCheckoutResult>;
|
|
991
|
+
setEnvVars(envVars: Record<string, string>): Promise<void>;
|
|
989
992
|
mountBucket(bucket: string, mountPath: string, options: MountBucketOptions): Promise<void>;
|
|
990
993
|
unmountBucket(mountPath: string): Promise<void>;
|
|
991
994
|
createSession(options?: SessionOptions): Promise<ExecutionSession>;
|
|
@@ -1118,13 +1121,6 @@ declare abstract class BaseHttpClient {
|
|
|
1118
1121
|
}
|
|
1119
1122
|
//#endregion
|
|
1120
1123
|
//#region src/clients/command-client.d.ts
|
|
1121
|
-
/**
|
|
1122
|
-
* Request interface for command execution
|
|
1123
|
-
*/
|
|
1124
|
-
interface ExecuteRequest extends SessionRequest {
|
|
1125
|
-
command: string;
|
|
1126
|
-
timeoutMs?: number;
|
|
1127
|
-
}
|
|
1128
1124
|
/**
|
|
1129
1125
|
* Response interface for command execution
|
|
1130
1126
|
*/
|
|
@@ -1143,14 +1139,25 @@ declare class CommandClient extends BaseHttpClient {
|
|
|
1143
1139
|
* @param command - The command to execute
|
|
1144
1140
|
* @param sessionId - The session ID for this command execution
|
|
1145
1141
|
* @param timeoutMs - Optional timeout in milliseconds (unlimited by default)
|
|
1142
|
+
* @param env - Optional environment variables for this command
|
|
1143
|
+
* @param cwd - Optional working directory for this command
|
|
1146
1144
|
*/
|
|
1147
|
-
execute(command: string, sessionId: string,
|
|
1145
|
+
execute(command: string, sessionId: string, options?: {
|
|
1146
|
+
timeoutMs?: number;
|
|
1147
|
+
env?: Record<string, string>;
|
|
1148
|
+
cwd?: string;
|
|
1149
|
+
}): Promise<ExecuteResponse>;
|
|
1148
1150
|
/**
|
|
1149
1151
|
* Execute a command and return a stream of events
|
|
1150
1152
|
* @param command - The command to execute
|
|
1151
1153
|
* @param sessionId - The session ID for this command execution
|
|
1154
|
+
* @param options - Optional per-command execution settings
|
|
1152
1155
|
*/
|
|
1153
|
-
executeStream(command: string, sessionId: string
|
|
1156
|
+
executeStream(command: string, sessionId: string, options?: {
|
|
1157
|
+
timeoutMs?: number;
|
|
1158
|
+
env?: Record<string, string>;
|
|
1159
|
+
cwd?: string;
|
|
1160
|
+
}): Promise<ReadableStream<Uint8Array>>;
|
|
1154
1161
|
}
|
|
1155
1162
|
//#endregion
|
|
1156
1163
|
//#region src/clients/file-client.d.ts
|
|
@@ -1362,6 +1369,11 @@ declare class ProcessClient extends BaseHttpClient {
|
|
|
1362
1369
|
*/
|
|
1363
1370
|
startProcess(command: string, sessionId: string, options?: {
|
|
1364
1371
|
processId?: string;
|
|
1372
|
+
timeoutMs?: number;
|
|
1373
|
+
env?: Record<string, string>;
|
|
1374
|
+
cwd?: string;
|
|
1375
|
+
encoding?: string;
|
|
1376
|
+
autoCleanup?: boolean;
|
|
1365
1377
|
}): Promise<ProcessStartResult>;
|
|
1366
1378
|
/**
|
|
1367
1379
|
* List all processes (sandbox-scoped, not session-scoped)
|
|
@@ -1725,5 +1737,5 @@ declare class Sandbox<Env = unknown> extends Container<Env> implements ISandbox
|
|
|
1725
1737
|
deleteCodeContext(contextId: string): Promise<void>;
|
|
1726
1738
|
}
|
|
1727
1739
|
//#endregion
|
|
1728
|
-
export {
|
|
1729
|
-
//# sourceMappingURL=sandbox-
|
|
1740
|
+
export { ProcessInfoResult as $, RequestConfig as A, FileChunk as B, WriteFileRequest as C, ContainerStub as D, BaseApiResponse as E, BucketProvider as F, ListFilesOptions as G, FileStreamEvent as H, ExecEvent as I, PortCloseResult as J, LogEvent as K, ExecOptions as L, SessionRequest as M, BaseExecOptions as N, ErrorResponse as O, BucketCredentials as P, ProcessCleanupResult as Q, ExecResult as R, ReadFileRequest as S, ExecuteResponse as T, GitCheckoutResult as U, FileMetadata as V, ISandbox as W, PortListResult as X, PortExposeResult as Y, Process as Z, GitCheckoutRequest as _, CreateSessionRequest as a, ProcessStatus as at, FileOperationRequest as b, DeleteSessionResponse as c, StreamOptions as ct, ProcessClient as d, isProcessStatus as dt, ProcessKillResult as et, ExposePortRequest as f, CodeContext as ft, InterpreterClient as g, RunCodeOptions as gt, ExecutionCallbacks as h, ExecutionResult as ht, CommandsResponse as i, ProcessStartResult as it, ResponseHandler as j, HttpClientOptions as k, PingResponse as l, isExecResult as lt, UnexposePortRequest as m, Execution as mt, getSandbox as n, ProcessLogsResult as nt, CreateSessionResponse as o, SandboxOptions as ot, PortClient as p, CreateContextOptions as pt, MountBucketOptions as q, SandboxClient as r, ProcessOptions as rt, DeleteSessionRequest as s, SessionOptions as st, Sandbox as t, ProcessListResult as tt, UtilityClient as u, isProcess as ut, GitClient as v, CommandClient as w, MkdirRequest as x, FileClient as y, ExecutionSession as z };
|
|
1741
|
+
//# sourceMappingURL=sandbox-HQazw9bn.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sandbox-HQazw9bn.d.ts","names":["LogLevel","LogComponent","LogContext","Logger","Partial","Error","CreateContextOptions","Record","CodeContext","Date","RunCodeOptions","AbortSignal","OutputMessage","Promise","Result","ExecutionError","ChartData","ExecutionResult","Array","Execution","ResultImpl","CodeContext","CreateContextOptions","ExecutionResult","RunCodeOptions","BaseExecOptions","Record","ExecOptions","ExecResult","Error","AbortSignal","ProcessOptions","Process","ProcessStatus","Date","Promise","ExecEvent","LogEvent","StreamOptions","SessionOptions","SandboxOptions","MkdirResult","WriteFileResult","ReadFileResult","DeleteFileResult","RenameFileResult","MoveFileResult","FileExistsResult","FileInfo","ListFilesOptions","ListFilesResult","GitCheckoutResult","FileStreamEvent","FileMetadata","FileChunk","Uint8Array","ProcessStartResult","ProcessListResult","Array","ProcessInfoResult","ProcessKillResult","ProcessLogsResult","ProcessCleanupResult","SessionCreateResult","SessionDeleteResult","EnvSetResult","PortExposeResult","PortStatusResult","PortListResult","PortCloseResult","InterpreterHealthResult","ContextCreateResult","ContextListResult","ContextDeleteResult","HealthCheckResult","ShutdownResult","ExecutionSession","ReadableStream","MountBucketOptions","BucketProvider","BucketCredentials","ISandbox","Request","Response","isExecResult","isProcess","isProcessStatus","ChartData","ExecutionError","OutputMessage","Result","Execution","ResultImpl"],"sources":["../../shared/dist/logger/types.d.ts","../../shared/dist/interpreter-types.d.ts","../../shared/dist/types.d.ts","../src/clients/types.ts","../src/clients/base-client.ts","../src/clients/command-client.ts","../src/clients/file-client.ts","../src/clients/git-client.ts","../src/clients/interpreter-client.ts","../src/clients/port-client.ts","../src/clients/process-client.ts","../src/clients/utility-client.ts","../src/clients/sandbox-client.ts","../src/sandbox.ts"],"sourcesContent":["/**\n * Logger types for Cloudflare Sandbox SDK\n *\n * Provides structured, trace-aware logging across Worker, Durable Object, and Container.\n */\n/**\n * Log levels (from most to least verbose)\n */\nexport declare enum LogLevel {\n DEBUG = 0,\n INFO = 1,\n WARN = 2,\n ERROR = 3\n}\nexport type LogComponent = 'container' | 'sandbox-do' | 'executor';\n/**\n * Context metadata included in every log entry\n */\nexport interface LogContext {\n /**\n * Unique trace ID for request correlation across distributed components\n * Format: \"tr_\" + 16 hex chars (e.g., \"tr_7f3a9b2c4e5d6f1a\")\n */\n traceId: string;\n /**\n * Component that generated the log\n */\n component: LogComponent;\n /**\n * Sandbox identifier (which sandbox instance)\n */\n sandboxId?: string;\n /**\n * Session identifier (which session within sandbox)\n */\n sessionId?: string;\n /**\n * Process identifier (which background process)\n */\n processId?: string;\n /**\n * Command identifier (which command execution)\n */\n commandId?: string;\n /**\n * Operation name (e.g., 'exec', 'startProcess', 'writeFile')\n */\n operation?: string;\n /**\n * Duration in milliseconds\n */\n duration?: number;\n /**\n * Extensible for additional metadata\n */\n [key: string]: unknown;\n}\n/**\n * Logger interface for structured logging\n *\n * All methods accept optional context that gets merged with the logger's base context.\n */\nexport interface Logger {\n /**\n * Log debug-level message (most verbose, typically disabled in production)\n *\n * @param message Human-readable message\n * @param context Optional additional context\n */\n debug(message: string, context?: Partial<LogContext>): void;\n /**\n * Log info-level message (normal operational events)\n *\n * @param message Human-readable message\n * @param context Optional additional context\n */\n info(message: string, context?: Partial<LogContext>): void;\n /**\n * Log warning-level message (recoverable issues, degraded state)\n *\n * @param message Human-readable message\n * @param context Optional additional context\n */\n warn(message: string, context?: Partial<LogContext>): void;\n /**\n * Log error-level message (failures, exceptions)\n *\n * @param message Human-readable message\n * @param error Optional Error object to include\n * @param context Optional additional context\n */\n error(message: string, error?: Error, context?: Partial<LogContext>): void;\n /**\n * Create a child logger with additional context\n *\n * The child logger inherits all context from the parent and adds new context.\n * This is useful for adding operation-specific context without passing through parameters.\n *\n * @param context Additional context to merge\n * @returns New logger instance with merged context\n *\n * @example\n * const logger = createLogger({ component: 'sandbox-do', traceId: 'tr_abc123' });\n * const execLogger = logger.child({ operation: 'exec', commandId: 'cmd-456' });\n * execLogger.info('Command started'); // Includes all context: component, traceId, operation, commandId\n */\n child(context: Partial<LogContext>): Logger;\n}\n//# sourceMappingURL=types.d.ts.map","export interface CreateContextOptions {\n /**\n * Programming language for the context\n * @default 'python'\n */\n language?: 'python' | 'javascript' | 'typescript';\n /**\n * Working directory for the context\n * @default '/workspace'\n */\n cwd?: string;\n /**\n * Environment variables for the context\n */\n envVars?: Record<string, string>;\n /**\n * Request timeout in milliseconds\n * @default 30000\n */\n timeout?: number;\n}\nexport interface CodeContext {\n /**\n * Unique identifier for the context\n */\n readonly id: string;\n /**\n * Programming language of the context\n */\n readonly language: string;\n /**\n * Current working directory\n */\n readonly cwd: string;\n /**\n * When the context was created\n */\n readonly createdAt: Date;\n /**\n * When the context was last used\n */\n readonly lastUsed: Date;\n}\nexport interface RunCodeOptions {\n /**\n * Context to run the code in. If not provided, uses default context for the language\n */\n context?: CodeContext;\n /**\n * Language to use if context is not provided\n * @default 'python'\n */\n language?: 'python' | 'javascript' | 'typescript';\n /**\n * Environment variables for this execution\n */\n envVars?: Record<string, string>;\n /**\n * Execution timeout in milliseconds\n * @default 60000\n */\n timeout?: number;\n /**\n * AbortSignal for cancelling execution\n */\n signal?: AbortSignal;\n /**\n * Callback for stdout output\n */\n onStdout?: (output: OutputMessage) => void | Promise<void>;\n /**\n * Callback for stderr output\n */\n onStderr?: (output: OutputMessage) => void | Promise<void>;\n /**\n * Callback for execution results (charts, tables, etc)\n */\n onResult?: (result: Result) => void | Promise<void>;\n /**\n * Callback for execution errors\n */\n onError?: (error: ExecutionError) => void | Promise<void>;\n}\nexport interface OutputMessage {\n /**\n * The output text\n */\n text: string;\n /**\n * Timestamp of the output\n */\n timestamp: number;\n}\nexport interface Result {\n /**\n * Plain text representation\n */\n text?: string;\n /**\n * HTML representation (tables, formatted output)\n */\n html?: string;\n /**\n * PNG image data (base64 encoded)\n */\n png?: string;\n /**\n * JPEG image data (base64 encoded)\n */\n jpeg?: string;\n /**\n * SVG image data\n */\n svg?: string;\n /**\n * LaTeX representation\n */\n latex?: string;\n /**\n * Markdown representation\n */\n markdown?: string;\n /**\n * JavaScript code to execute\n */\n javascript?: string;\n /**\n * JSON data\n */\n json?: any;\n /**\n * Chart data if the result is a visualization\n */\n chart?: ChartData;\n /**\n * Raw data object\n */\n data?: any;\n /**\n * Available output formats\n */\n formats(): string[];\n}\nexport interface ChartData {\n /**\n * Type of chart\n */\n type: 'line' | 'bar' | 'scatter' | 'pie' | 'histogram' | 'heatmap' | 'unknown';\n /**\n * Chart title\n */\n title?: string;\n /**\n * Chart data (format depends on library)\n */\n data: any;\n /**\n * Chart layout/configuration\n */\n layout?: any;\n /**\n * Additional configuration\n */\n config?: any;\n /**\n * Library that generated the chart\n */\n library?: 'matplotlib' | 'plotly' | 'altair' | 'seaborn' | 'unknown';\n /**\n * Base64 encoded image if available\n */\n image?: string;\n}\nexport interface ExecutionError {\n /**\n * Error name/type (e.g., 'NameError', 'SyntaxError')\n */\n name: string;\n /**\n * Error message\n */\n message: string;\n /**\n * Stack trace\n */\n traceback: string[];\n /**\n * Line number where error occurred\n */\n lineNumber?: number;\n}\nexport interface ExecutionResult {\n code: string;\n logs: {\n stdout: string[];\n stderr: string[];\n };\n error?: ExecutionError;\n executionCount?: number;\n results: Array<{\n text?: string;\n html?: string;\n png?: string;\n jpeg?: string;\n svg?: string;\n latex?: string;\n markdown?: string;\n javascript?: string;\n json?: any;\n chart?: ChartData;\n data?: any;\n }>;\n}\nexport declare class Execution {\n readonly code: string;\n readonly context: CodeContext;\n /**\n * All results from the execution\n */\n results: Result[];\n /**\n * Accumulated stdout and stderr\n */\n logs: {\n stdout: string[];\n stderr: string[];\n };\n /**\n * Execution error if any\n */\n error?: ExecutionError;\n /**\n * Execution count (for interpreter)\n */\n executionCount?: number;\n constructor(code: string, context: CodeContext);\n /**\n * Convert to a plain object for serialization\n */\n toJSON(): ExecutionResult;\n}\nexport declare class ResultImpl implements Result {\n private raw;\n constructor(raw: any);\n get text(): string | undefined;\n get html(): string | undefined;\n get png(): string | undefined;\n get jpeg(): string | undefined;\n get svg(): string | undefined;\n get latex(): string | undefined;\n get markdown(): string | undefined;\n get javascript(): string | undefined;\n get json(): any;\n get chart(): ChartData | undefined;\n get data(): any;\n formats(): string[];\n}\n//# sourceMappingURL=interpreter-types.d.ts.map","import type { CodeContext, CreateContextOptions, ExecutionResult, RunCodeOptions } from './interpreter-types';\nexport interface BaseExecOptions {\n /**\n * Maximum execution time in milliseconds\n */\n timeout?: number;\n /**\n * Environment variables for this command invocation.\n * Values temporarily override session-level/container-level env for the\n * duration of the command but do not persist after it completes.\n */\n env?: Record<string, string>;\n /**\n * Working directory for command execution\n */\n cwd?: string;\n /**\n * Text encoding for output (default: 'utf8')\n */\n encoding?: string;\n}\nexport interface ExecOptions extends BaseExecOptions {\n /**\n * Enable real-time output streaming via callbacks\n */\n stream?: boolean;\n /**\n * Callback for real-time output data\n */\n onOutput?: (stream: 'stdout' | 'stderr', data: string) => void;\n /**\n * Callback when command completes (only when stream: true)\n */\n onComplete?: (result: ExecResult) => void;\n /**\n * Callback for execution errors\n */\n onError?: (error: Error) => void;\n /**\n * AbortSignal for cancelling execution\n */\n signal?: AbortSignal;\n}\nexport interface ExecResult {\n /**\n * Whether the command succeeded (exitCode === 0)\n */\n success: boolean;\n /**\n * Process exit code\n */\n exitCode: number;\n /**\n * Standard output content\n */\n stdout: string;\n /**\n * Standard error content\n */\n stderr: string;\n /**\n * Command that was executed\n */\n command: string;\n /**\n * Execution duration in milliseconds\n */\n duration: number;\n /**\n * ISO timestamp when command started\n */\n timestamp: string;\n /**\n * Session ID if provided\n */\n sessionId?: string;\n}\nexport interface ProcessOptions extends BaseExecOptions {\n /**\n * Custom process ID for later reference\n * If not provided, a UUID will be generated\n */\n processId?: string;\n /**\n * Automatically cleanup process record after exit (default: true)\n */\n autoCleanup?: boolean;\n /**\n * Callback when process exits\n */\n onExit?: (code: number | null) => void;\n /**\n * Callback for real-time output (background processes)\n */\n onOutput?: (stream: 'stdout' | 'stderr', data: string) => void;\n /**\n * Callback when process starts successfully\n */\n onStart?: (process: Process) => void;\n /**\n * Callback for process errors\n */\n onError?: (error: Error) => void;\n}\nexport type ProcessStatus = 'starting' | 'running' | 'completed' | 'failed' | 'killed' | 'error';\nexport interface Process {\n /**\n * Unique process identifier\n */\n readonly id: string;\n /**\n * System process ID (if available and running)\n */\n readonly pid?: number;\n /**\n * Command that was executed\n */\n readonly command: string;\n /**\n * Current process status\n */\n readonly status: ProcessStatus;\n /**\n * When the process was started\n */\n readonly startTime: Date;\n /**\n * When the process ended (if completed)\n */\n readonly endTime?: Date;\n /**\n * Process exit code (if completed)\n */\n readonly exitCode?: number;\n /**\n * Session ID if provided\n */\n readonly sessionId?: string;\n /**\n * Kill the process\n */\n kill(signal?: string): Promise<void>;\n /**\n * Get current process status (refreshed)\n */\n getStatus(): Promise<ProcessStatus>;\n /**\n * Get accumulated logs\n */\n getLogs(): Promise<{\n stdout: string;\n stderr: string;\n }>;\n}\nexport interface ExecEvent {\n type: 'start' | 'stdout' | 'stderr' | 'complete' | 'error';\n timestamp: string;\n data?: string;\n command?: string;\n exitCode?: number;\n result?: ExecResult;\n error?: string;\n sessionId?: string;\n}\nexport interface LogEvent {\n type: 'stdout' | 'stderr' | 'exit' | 'error';\n timestamp: string;\n data: string;\n processId: string;\n sessionId?: string;\n exitCode?: number;\n}\nexport interface StreamOptions extends BaseExecOptions {\n /**\n * Buffer size for streaming output\n */\n bufferSize?: number;\n /**\n * AbortSignal for cancelling stream\n */\n signal?: AbortSignal;\n}\nexport interface SessionOptions {\n /**\n * Optional session ID (auto-generated if not provided)\n */\n id?: string;\n /**\n * Session name for identification\n */\n name?: string;\n /**\n * Environment variables for this session\n */\n env?: Record<string, string>;\n /**\n * Working directory\n */\n cwd?: string;\n /**\n * Enable PID namespace isolation (requires CAP_SYS_ADMIN)\n */\n isolation?: boolean;\n}\nexport interface SandboxOptions {\n /**\n * Duration after which the sandbox instance will sleep if no requests are received\n * Can be:\n * - A string like \"30s\", \"3m\", \"5m\", \"1h\" (seconds, minutes, or hours)\n * - A number representing seconds (e.g., 180 for 3 minutes)\n * Default: \"10m\" (10 minutes)\n *\n * Note: Ignored when keepAlive is true\n */\n sleepAfter?: string | number;\n /**\n * Base URL for the sandbox API\n */\n baseUrl?: string;\n /**\n * Keep the container alive indefinitely by preventing automatic shutdown\n * When true, the container will never auto-timeout and must be explicitly destroyed\n * - Any scenario where activity can't be automatically detected\n *\n * Important: You MUST call sandbox.destroy() when done to avoid resource leaks\n *\n * Default: false\n */\n keepAlive?: boolean;\n /**\n * Normalize sandbox ID to lowercase for preview URL compatibility\n *\n * Required for preview URLs because hostnames are case-insensitive (RFC 3986), which\n * would route requests to a different Durable Object instance with IDs containing uppercase letters.\n *\n * **Important:** Different normalizeId values create different Durable Object instances:\n * - `getSandbox(ns, \"MyProject\")` → DO key: \"MyProject\"\n * - `getSandbox(ns, \"MyProject\", {normalizeId: true})` → DO key: \"myproject\"\n *\n * **Future change:** In a future version, this will default to `true` (automatically lowercase all IDs).\n * IDs with uppercase letters will trigger a warning. To prepare, use lowercase IDs or explicitly\n * pass `normalizeId: true`.\n *\n * @example\n * getSandbox(ns, \"my-project\") // Works with preview URLs (lowercase)\n * getSandbox(ns, \"MyProject\", {normalizeId: true}) // Normalized to \"myproject\"\n *\n * @default false\n */\n normalizeId?: boolean;\n /**\n * Container startup timeout configuration\n *\n * Tune timeouts based on your container's characteristics. SDK defaults (30s instance, 90s ports)\n * work for most use cases. Adjust for heavy containers or fail-fast applications.\n *\n * Can also be configured via environment variables:\n * - SANDBOX_INSTANCE_TIMEOUT_MS\n * - SANDBOX_PORT_TIMEOUT_MS\n * - SANDBOX_POLL_INTERVAL_MS\n *\n * Precedence: options > env vars > SDK defaults\n *\n * @example\n * // Heavy containers (ML models, large apps)\n * getSandbox(ns, id, {\n * containerTimeouts: { portReadyTimeoutMS: 180_000 }\n * })\n *\n * @example\n * // Fail-fast for latency-sensitive apps\n * getSandbox(ns, id, {\n * containerTimeouts: {\n * instanceGetTimeoutMS: 15_000,\n * portReadyTimeoutMS: 30_000\n * }\n * })\n */\n containerTimeouts?: {\n /**\n * Time to wait for container instance provisioning\n * @default 30000 (30s) - or SANDBOX_INSTANCE_TIMEOUT_MS env var\n */\n instanceGetTimeoutMS?: number;\n /**\n * Time to wait for application startup and ports to be ready\n * @default 90000 (90s) - or SANDBOX_PORT_TIMEOUT_MS env var\n */\n portReadyTimeoutMS?: number;\n /**\n * How often to poll for container readiness\n * @default 1000 (1s) - or SANDBOX_POLL_INTERVAL_MS env var\n */\n waitIntervalMS?: number;\n };\n}\n/**\n * Execution session - isolated execution context within a sandbox\n * Returned by sandbox.createSession()\n * Provides the same API as ISandbox but bound to a specific session\n */\nexport interface MkdirResult {\n success: boolean;\n path: string;\n recursive: boolean;\n timestamp: string;\n exitCode?: number;\n}\nexport interface WriteFileResult {\n success: boolean;\n path: string;\n timestamp: string;\n exitCode?: number;\n}\nexport interface ReadFileResult {\n success: boolean;\n path: string;\n content: string;\n timestamp: string;\n exitCode?: number;\n /**\n * Encoding used for content (utf-8 for text, base64 for binary)\n */\n encoding?: 'utf-8' | 'base64';\n /**\n * Whether the file is detected as binary\n */\n isBinary?: boolean;\n /**\n * MIME type of the file (e.g., 'image/png', 'text/plain')\n */\n mimeType?: string;\n /**\n * File size in bytes\n */\n size?: number;\n}\nexport interface DeleteFileResult {\n success: boolean;\n path: string;\n timestamp: string;\n exitCode?: number;\n}\nexport interface RenameFileResult {\n success: boolean;\n path: string;\n newPath: string;\n timestamp: string;\n exitCode?: number;\n}\nexport interface MoveFileResult {\n success: boolean;\n path: string;\n newPath: string;\n timestamp: string;\n exitCode?: number;\n}\nexport interface FileExistsResult {\n success: boolean;\n path: string;\n exists: boolean;\n timestamp: string;\n}\nexport interface FileInfo {\n name: string;\n absolutePath: string;\n relativePath: string;\n type: 'file' | 'directory' | 'symlink' | 'other';\n size: number;\n modifiedAt: string;\n mode: string;\n permissions: {\n readable: boolean;\n writable: boolean;\n executable: boolean;\n };\n}\nexport interface ListFilesOptions {\n recursive?: boolean;\n includeHidden?: boolean;\n}\nexport interface ListFilesResult {\n success: boolean;\n path: string;\n files: FileInfo[];\n count: number;\n timestamp: string;\n exitCode?: number;\n}\nexport interface GitCheckoutResult {\n success: boolean;\n repoUrl: string;\n branch: string;\n targetDir: string;\n timestamp: string;\n exitCode?: number;\n}\n/**\n * SSE events for file streaming\n */\nexport type FileStreamEvent = {\n type: 'metadata';\n mimeType: string;\n size: number;\n isBinary: boolean;\n encoding: 'utf-8' | 'base64';\n} | {\n type: 'chunk';\n data: string;\n} | {\n type: 'complete';\n bytesRead: number;\n} | {\n type: 'error';\n error: string;\n};\n/**\n * File metadata from streaming\n */\nexport interface FileMetadata {\n mimeType: string;\n size: number;\n isBinary: boolean;\n encoding: 'utf-8' | 'base64';\n}\n/**\n * File stream chunk - either string (text) or Uint8Array (binary, auto-decoded)\n */\nexport type FileChunk = string | Uint8Array;\nexport interface ProcessStartResult {\n success: boolean;\n processId: string;\n pid?: number;\n command: string;\n timestamp: string;\n}\nexport interface ProcessListResult {\n success: boolean;\n processes: Array<{\n id: string;\n pid?: number;\n command: string;\n status: ProcessStatus;\n startTime: string;\n endTime?: string;\n exitCode?: number;\n }>;\n timestamp: string;\n}\nexport interface ProcessInfoResult {\n success: boolean;\n process: {\n id: string;\n pid?: number;\n command: string;\n status: ProcessStatus;\n startTime: string;\n endTime?: string;\n exitCode?: number;\n };\n timestamp: string;\n}\nexport interface ProcessKillResult {\n success: boolean;\n processId: string;\n signal?: string;\n timestamp: string;\n}\nexport interface ProcessLogsResult {\n success: boolean;\n processId: string;\n stdout: string;\n stderr: string;\n timestamp: string;\n}\nexport interface ProcessCleanupResult {\n success: boolean;\n cleanedCount: number;\n timestamp: string;\n}\nexport interface SessionCreateResult {\n success: boolean;\n sessionId: string;\n name?: string;\n cwd?: string;\n timestamp: string;\n}\nexport interface SessionDeleteResult {\n success: boolean;\n sessionId: string;\n timestamp: string;\n}\nexport interface EnvSetResult {\n success: boolean;\n timestamp: string;\n}\nexport interface PortExposeResult {\n success: boolean;\n port: number;\n url: string;\n timestamp: string;\n}\nexport interface PortStatusResult {\n success: boolean;\n port: number;\n status: 'active' | 'inactive';\n url?: string;\n timestamp: string;\n}\nexport interface PortListResult {\n success: boolean;\n ports: Array<{\n port: number;\n url: string;\n status: 'active' | 'inactive';\n }>;\n timestamp: string;\n}\nexport interface PortCloseResult {\n success: boolean;\n port: number;\n timestamp: string;\n}\nexport interface InterpreterHealthResult {\n success: boolean;\n status: 'healthy' | 'unhealthy';\n timestamp: string;\n}\nexport interface ContextCreateResult {\n success: boolean;\n contextId: string;\n language: string;\n cwd?: string;\n timestamp: string;\n}\nexport interface ContextListResult {\n success: boolean;\n contexts: Array<{\n id: string;\n language: string;\n cwd?: string;\n }>;\n timestamp: string;\n}\nexport interface ContextDeleteResult {\n success: boolean;\n contextId: string;\n timestamp: string;\n}\nexport interface HealthCheckResult {\n success: boolean;\n status: 'healthy' | 'unhealthy';\n timestamp: string;\n}\nexport interface ShutdownResult {\n success: boolean;\n message: string;\n timestamp: string;\n}\nexport interface ExecutionSession {\n /** Unique session identifier */\n readonly id: string;\n exec(command: string, options?: ExecOptions): Promise<ExecResult>;\n execStream(command: string, options?: StreamOptions): Promise<ReadableStream<Uint8Array>>;\n startProcess(command: string, options?: ProcessOptions): Promise<Process>;\n listProcesses(): Promise<Process[]>;\n getProcess(id: string): Promise<Process | null>;\n killProcess(id: string, signal?: string): Promise<void>;\n killAllProcesses(): Promise<number>;\n cleanupCompletedProcesses(): Promise<number>;\n getProcessLogs(id: string): Promise<{\n stdout: string;\n stderr: string;\n processId: string;\n }>;\n streamProcessLogs(processId: string, options?: {\n signal?: AbortSignal;\n }): Promise<ReadableStream<Uint8Array>>;\n writeFile(path: string, content: string, options?: {\n encoding?: string;\n }): Promise<WriteFileResult>;\n readFile(path: string, options?: {\n encoding?: string;\n }): Promise<ReadFileResult>;\n readFileStream(path: string): Promise<ReadableStream<Uint8Array>>;\n mkdir(path: string, options?: {\n recursive?: boolean;\n }): Promise<MkdirResult>;\n deleteFile(path: string): Promise<DeleteFileResult>;\n renameFile(oldPath: string, newPath: string): Promise<RenameFileResult>;\n moveFile(sourcePath: string, destinationPath: string): Promise<MoveFileResult>;\n listFiles(path: string, options?: ListFilesOptions): Promise<ListFilesResult>;\n exists(path: string): Promise<FileExistsResult>;\n gitCheckout(repoUrl: string, options?: {\n branch?: string;\n targetDir?: string;\n }): Promise<GitCheckoutResult>;\n setEnvVars(envVars: Record<string, string>): Promise<void>;\n createCodeContext(options?: CreateContextOptions): Promise<CodeContext>;\n runCode(code: string, options?: RunCodeOptions): Promise<ExecutionResult>;\n runCodeStream(code: string, options?: RunCodeOptions): Promise<ReadableStream<Uint8Array>>;\n listCodeContexts(): Promise<CodeContext[]>;\n deleteCodeContext(contextId: string): Promise<void>;\n mountBucket(bucket: string, mountPath: string, options: MountBucketOptions): Promise<void>;\n unmountBucket(mountPath: string): Promise<void>;\n}\n/**\n * Supported S3-compatible storage providers\n */\nexport type BucketProvider = 'r2' | 's3' | 'gcs';\n/**\n * Credentials for S3-compatible storage\n */\nexport interface BucketCredentials {\n accessKeyId: string;\n secretAccessKey: string;\n}\n/**\n * Options for mounting an S3-compatible bucket\n */\nexport interface MountBucketOptions {\n /**\n * S3-compatible endpoint URL\n *\n * Examples:\n * - R2: 'https://abc123.r2.cloudflarestorage.com'\n * - AWS S3: 'https://s3.us-west-2.amazonaws.com'\n * - GCS: 'https://storage.googleapis.com'\n *\n * Required field\n */\n endpoint: string;\n /**\n * Optional provider hint for automatic s3fs flag configuration\n * If not specified, will attempt to detect from endpoint URL.\n *\n * Examples:\n * - 'r2' - Cloudflare R2 (adds nomixupload)\n * - 's3' - Amazon S3 (standard configuration)\n * - 'gcs' - Google Cloud Storage (no special flags needed)\n */\n provider?: BucketProvider;\n /**\n * Explicit credentials (overrides env var auto-detection)\n */\n credentials?: BucketCredentials;\n /**\n * Mount filesystem as read-only\n * Default: false\n */\n readOnly?: boolean;\n /**\n * Advanced: Override or extend s3fs options\n *\n * These will be merged with provider-specific defaults.\n * To override defaults completely, specify all options here.\n *\n * Common options:\n * - 'use_path_request_style' - Use path-style URLs (bucket/path vs bucket.host/path)\n * - 'nomixupload' - Disable mixed multipart uploads (needed for some providers)\n * - 'nomultipart' - Disable all multipart operations\n * - 'sigv2' - Use signature version 2 instead of v4\n * - 'no_check_certificate' - Skip SSL certificate validation (dev/testing only)\n */\n s3fsOptions?: string[];\n}\nexport interface ISandbox {\n exec(command: string, options?: ExecOptions): Promise<ExecResult>;\n startProcess(command: string, options?: ProcessOptions): Promise<Process>;\n listProcesses(): Promise<Process[]>;\n getProcess(id: string): Promise<Process | null>;\n killProcess(id: string, signal?: string): Promise<void>;\n killAllProcesses(): Promise<number>;\n execStream(command: string, options?: StreamOptions): Promise<ReadableStream<Uint8Array>>;\n streamProcessLogs(processId: string, options?: {\n signal?: AbortSignal;\n }): Promise<ReadableStream<Uint8Array>>;\n cleanupCompletedProcesses(): Promise<number>;\n getProcessLogs(id: string): Promise<{\n stdout: string;\n stderr: string;\n processId: string;\n }>;\n writeFile(path: string, content: string, options?: {\n encoding?: string;\n }): Promise<WriteFileResult>;\n readFile(path: string, options?: {\n encoding?: string;\n }): Promise<ReadFileResult>;\n readFileStream(path: string): Promise<ReadableStream<Uint8Array>>;\n mkdir(path: string, options?: {\n recursive?: boolean;\n }): Promise<MkdirResult>;\n deleteFile(path: string): Promise<DeleteFileResult>;\n renameFile(oldPath: string, newPath: string): Promise<RenameFileResult>;\n moveFile(sourcePath: string, destinationPath: string): Promise<MoveFileResult>;\n listFiles(path: string, options?: ListFilesOptions): Promise<ListFilesResult>;\n exists(path: string, sessionId?: string): Promise<FileExistsResult>;\n gitCheckout(repoUrl: string, options?: {\n branch?: string;\n targetDir?: string;\n }): Promise<GitCheckoutResult>;\n setEnvVars(envVars: Record<string, string>): Promise<void>;\n mountBucket(bucket: string, mountPath: string, options: MountBucketOptions): Promise<void>;\n unmountBucket(mountPath: string): Promise<void>;\n createSession(options?: SessionOptions): Promise<ExecutionSession>;\n deleteSession(sessionId: string): Promise<SessionDeleteResult>;\n createCodeContext(options?: CreateContextOptions): Promise<CodeContext>;\n runCode(code: string, options?: RunCodeOptions): Promise<ExecutionResult>;\n runCodeStream(code: string, options?: RunCodeOptions): Promise<ReadableStream>;\n listCodeContexts(): Promise<CodeContext[]>;\n deleteCodeContext(contextId: string): Promise<void>;\n wsConnect(request: Request, port: number): Promise<Response>;\n}\nexport declare function isExecResult(value: any): value is ExecResult;\nexport declare function isProcess(value: any): value is Process;\nexport declare function isProcessStatus(value: string): value is ProcessStatus;\nexport type { ChartData, CodeContext, CreateContextOptions, ExecutionError, ExecutionResult, OutputMessage, Result, RunCodeOptions } from './interpreter-types';\nexport { Execution, ResultImpl } from './interpreter-types';\n//# sourceMappingURL=types.d.ts.map"],"mappings":";;;;AA2FoDI,KA7ExCH,YAAAA,GA6EwCG,WAAAA,GAAAA,YAAAA,GAAAA,UAAAA;;;;AAeL,UAxF9BF,UAAAA,CAwF8B;;;;AC1G/C;EAqBiBM,OAAAA,EAAAA,MAAW;EAsBXE;;;EAsBJC,SAAAA,EDtCEV,YCsCFU;EAIWC;;;EAIyBC,SAAAA,CAAAA,EAAAA,MAAAA;EAIzBC;;;EAIwBD,SAAAA,CAAAA,EAAAA,MAAAA;EAAO;AAEvD;AAUA;EAkDiBG,SAAAA,CAAAA,EAAS,MAAA;EA8BTD;AAkB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AAAA,iBAAAA;EAARhD,iBAAAA,CAAAA,OAAAA,CAAAA,EW6qCjC,oBX7qCiCA,CAAAA,EW8qC1C,OX9qC0CA,CW8qClC,WX9qCkCA,CAAAA;EAAO,OAAA,CAAA,IAAA,EAAA,MAAA,EAAA,OAAA,CAAA,EWorCxC,cXprCwC,CAAA,EWqrCjD,OXrrCiD,CWqrCzC,eXrrCyC,CAAA;EAE9BiD,aAAAA,CAAAA,IAAY,EAAA,MAAA,EAAuBxD,OAAU,CAAVA,EW0rC7C,cX1rCuD,CAAA,EW2rChE,OX3rCgE,CW2rCxD,cX3rCwD,CAAA;EAC7CyD,gBAAS,CAAA,CAAA,EW8rCL,OX9rC4BrD,CW8rCpB,WX9rC2B,EAAA,CAAA;EACvCsD,iBAAAA,CAAe,SAAA,EAAA,MAA0BrD,CAAAA,EWisCnB,OXjsCgC,CAAA,IAAA,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,17 +1,11 @@
|
|
|
1
|
+
import type { ExecuteRequest } from '@repo/shared';
|
|
1
2
|
import { BaseHttpClient } from './base-client';
|
|
2
|
-
import type {
|
|
3
|
-
BaseApiResponse,
|
|
4
|
-
HttpClientOptions,
|
|
5
|
-
SessionRequest
|
|
6
|
-
} from './types';
|
|
3
|
+
import type { BaseApiResponse } from './types';
|
|
7
4
|
|
|
8
5
|
/**
|
|
9
6
|
* Request interface for command execution
|
|
10
7
|
*/
|
|
11
|
-
export
|
|
12
|
-
command: string;
|
|
13
|
-
timeoutMs?: number;
|
|
14
|
-
}
|
|
8
|
+
export type { ExecuteRequest };
|
|
15
9
|
|
|
16
10
|
/**
|
|
17
11
|
* Response interface for command execution
|
|
@@ -32,17 +26,27 @@ export class CommandClient extends BaseHttpClient {
|
|
|
32
26
|
* @param command - The command to execute
|
|
33
27
|
* @param sessionId - The session ID for this command execution
|
|
34
28
|
* @param timeoutMs - Optional timeout in milliseconds (unlimited by default)
|
|
29
|
+
* @param env - Optional environment variables for this command
|
|
30
|
+
* @param cwd - Optional working directory for this command
|
|
35
31
|
*/
|
|
36
32
|
async execute(
|
|
37
33
|
command: string,
|
|
38
34
|
sessionId: string,
|
|
39
|
-
|
|
35
|
+
options?: {
|
|
36
|
+
timeoutMs?: number;
|
|
37
|
+
env?: Record<string, string>;
|
|
38
|
+
cwd?: string;
|
|
39
|
+
}
|
|
40
40
|
): Promise<ExecuteResponse> {
|
|
41
41
|
try {
|
|
42
42
|
const data: ExecuteRequest = {
|
|
43
43
|
command,
|
|
44
44
|
sessionId,
|
|
45
|
-
...(timeoutMs !== undefined && {
|
|
45
|
+
...(options?.timeoutMs !== undefined && {
|
|
46
|
+
timeoutMs: options.timeoutMs
|
|
47
|
+
}),
|
|
48
|
+
...(options?.env !== undefined && { env: options.env }),
|
|
49
|
+
...(options?.cwd !== undefined && { cwd: options.cwd })
|
|
46
50
|
};
|
|
47
51
|
|
|
48
52
|
const response = await this.post<ExecuteResponse>('/api/execute', data);
|
|
@@ -79,13 +83,27 @@ export class CommandClient extends BaseHttpClient {
|
|
|
79
83
|
* Execute a command and return a stream of events
|
|
80
84
|
* @param command - The command to execute
|
|
81
85
|
* @param sessionId - The session ID for this command execution
|
|
86
|
+
* @param options - Optional per-command execution settings
|
|
82
87
|
*/
|
|
83
88
|
async executeStream(
|
|
84
89
|
command: string,
|
|
85
|
-
sessionId: string
|
|
90
|
+
sessionId: string,
|
|
91
|
+
options?: {
|
|
92
|
+
timeoutMs?: number;
|
|
93
|
+
env?: Record<string, string>;
|
|
94
|
+
cwd?: string;
|
|
95
|
+
}
|
|
86
96
|
): Promise<ReadableStream<Uint8Array>> {
|
|
87
97
|
try {
|
|
88
|
-
const data = {
|
|
98
|
+
const data = {
|
|
99
|
+
command,
|
|
100
|
+
sessionId,
|
|
101
|
+
...(options?.timeoutMs !== undefined && {
|
|
102
|
+
timeoutMs: options.timeoutMs
|
|
103
|
+
}),
|
|
104
|
+
...(options?.env !== undefined && { env: options.env }),
|
|
105
|
+
...(options?.cwd !== undefined && { cwd: options.cwd })
|
|
106
|
+
};
|
|
89
107
|
|
|
90
108
|
const response = await this.doFetch('/api/execute/stream', {
|
|
91
109
|
method: 'POST',
|
|
@@ -34,13 +34,31 @@ export class ProcessClient extends BaseHttpClient {
|
|
|
34
34
|
async startProcess(
|
|
35
35
|
command: string,
|
|
36
36
|
sessionId: string,
|
|
37
|
-
options?: {
|
|
37
|
+
options?: {
|
|
38
|
+
processId?: string;
|
|
39
|
+
timeoutMs?: number;
|
|
40
|
+
env?: Record<string, string>;
|
|
41
|
+
cwd?: string;
|
|
42
|
+
encoding?: string;
|
|
43
|
+
autoCleanup?: boolean;
|
|
44
|
+
}
|
|
38
45
|
): Promise<ProcessStartResult> {
|
|
39
46
|
try {
|
|
40
47
|
const data: StartProcessRequest = {
|
|
41
48
|
command,
|
|
42
49
|
sessionId,
|
|
43
|
-
|
|
50
|
+
...(options?.processId !== undefined && {
|
|
51
|
+
processId: options.processId
|
|
52
|
+
}),
|
|
53
|
+
...(options?.timeoutMs !== undefined && {
|
|
54
|
+
timeoutMs: options.timeoutMs
|
|
55
|
+
}),
|
|
56
|
+
...(options?.env !== undefined && { env: options.env }),
|
|
57
|
+
...(options?.cwd !== undefined && { cwd: options.cwd }),
|
|
58
|
+
...(options?.encoding !== undefined && { encoding: options.encoding }),
|
|
59
|
+
...(options?.autoCleanup !== undefined && {
|
|
60
|
+
autoCleanup: options.autoCleanup
|
|
61
|
+
})
|
|
44
62
|
};
|
|
45
63
|
|
|
46
64
|
const response = await this.post<ProcessStartResult>(
|
package/src/sandbox.ts
CHANGED
|
@@ -1060,7 +1060,23 @@ export class Sandbox<Env = unknown> extends Container<Env> implements ISandbox {
|
|
|
1060
1060
|
);
|
|
1061
1061
|
} else {
|
|
1062
1062
|
// Regular execution with session
|
|
1063
|
-
const
|
|
1063
|
+
const commandOptions =
|
|
1064
|
+
options &&
|
|
1065
|
+
(options.timeout !== undefined ||
|
|
1066
|
+
options.env !== undefined ||
|
|
1067
|
+
options.cwd !== undefined)
|
|
1068
|
+
? {
|
|
1069
|
+
timeoutMs: options.timeout,
|
|
1070
|
+
env: options.env,
|
|
1071
|
+
cwd: options.cwd
|
|
1072
|
+
}
|
|
1073
|
+
: undefined;
|
|
1074
|
+
|
|
1075
|
+
const response = await this.client.commands.execute(
|
|
1076
|
+
command,
|
|
1077
|
+
sessionId,
|
|
1078
|
+
commandOptions
|
|
1079
|
+
);
|
|
1064
1080
|
|
|
1065
1081
|
const duration = Date.now() - startTime;
|
|
1066
1082
|
result = this.mapExecuteResponseToExecResult(
|
|
@@ -1101,7 +1117,12 @@ export class Sandbox<Env = unknown> extends Container<Env> implements ISandbox {
|
|
|
1101
1117
|
try {
|
|
1102
1118
|
const stream = await this.client.commands.executeStream(
|
|
1103
1119
|
command,
|
|
1104
|
-
sessionId
|
|
1120
|
+
sessionId,
|
|
1121
|
+
{
|
|
1122
|
+
timeoutMs: options.timeout,
|
|
1123
|
+
env: options.env,
|
|
1124
|
+
cwd: options.cwd
|
|
1125
|
+
}
|
|
1105
1126
|
);
|
|
1106
1127
|
|
|
1107
1128
|
for await (const event of parseSSEStream<ExecEvent>(stream)) {
|
|
@@ -1231,12 +1252,23 @@ export class Sandbox<Env = unknown> extends Container<Env> implements ISandbox {
|
|
|
1231
1252
|
// Use the new HttpClient method to start the process
|
|
1232
1253
|
try {
|
|
1233
1254
|
const session = sessionId ?? (await this.ensureDefaultSession());
|
|
1255
|
+
const requestOptions = {
|
|
1256
|
+
...(options?.processId !== undefined && {
|
|
1257
|
+
processId: options.processId
|
|
1258
|
+
}),
|
|
1259
|
+
...(options?.timeout !== undefined && { timeoutMs: options.timeout }),
|
|
1260
|
+
...(options?.env !== undefined && { env: options.env }),
|
|
1261
|
+
...(options?.cwd !== undefined && { cwd: options.cwd }),
|
|
1262
|
+
...(options?.encoding !== undefined && { encoding: options.encoding }),
|
|
1263
|
+
...(options?.autoCleanup !== undefined && {
|
|
1264
|
+
autoCleanup: options.autoCleanup
|
|
1265
|
+
})
|
|
1266
|
+
};
|
|
1267
|
+
|
|
1234
1268
|
const response = await this.client.processes.startProcess(
|
|
1235
1269
|
command,
|
|
1236
1270
|
session,
|
|
1237
|
-
|
|
1238
|
-
processId: options?.processId
|
|
1239
|
-
}
|
|
1271
|
+
requestOptions
|
|
1240
1272
|
);
|
|
1241
1273
|
|
|
1242
1274
|
const processObj = this.createProcessFromDTO(
|
|
@@ -1356,7 +1388,11 @@ export class Sandbox<Env = unknown> extends Container<Env> implements ISandbox {
|
|
|
1356
1388
|
|
|
1357
1389
|
const session = await this.ensureDefaultSession();
|
|
1358
1390
|
// Get the stream from CommandClient
|
|
1359
|
-
return this.client.commands.executeStream(command, session
|
|
1391
|
+
return this.client.commands.executeStream(command, session, {
|
|
1392
|
+
timeoutMs: options?.timeout,
|
|
1393
|
+
env: options?.env,
|
|
1394
|
+
cwd: options?.cwd
|
|
1395
|
+
});
|
|
1360
1396
|
}
|
|
1361
1397
|
|
|
1362
1398
|
/**
|
|
@@ -1372,7 +1408,11 @@ export class Sandbox<Env = unknown> extends Container<Env> implements ISandbox {
|
|
|
1372
1408
|
throw new Error('Operation was aborted');
|
|
1373
1409
|
}
|
|
1374
1410
|
|
|
1375
|
-
return this.client.commands.executeStream(command, sessionId
|
|
1411
|
+
return this.client.commands.executeStream(command, sessionId, {
|
|
1412
|
+
timeoutMs: options?.timeout,
|
|
1413
|
+
env: options?.env,
|
|
1414
|
+
cwd: options?.cwd
|
|
1415
|
+
});
|
|
1376
1416
|
}
|
|
1377
1417
|
|
|
1378
1418
|
/**
|
|
@@ -1706,11 +1746,18 @@ export class Sandbox<Env = unknown> extends Container<Env> implements ISandbox {
|
|
|
1706
1746
|
async createSession(options?: SessionOptions): Promise<ExecutionSession> {
|
|
1707
1747
|
const sessionId = options?.id || `session-${Date.now()}`;
|
|
1708
1748
|
|
|
1749
|
+
const mergedEnv = {
|
|
1750
|
+
...this.envVars,
|
|
1751
|
+
...(options?.env ?? {})
|
|
1752
|
+
};
|
|
1753
|
+
const envPayload =
|
|
1754
|
+
Object.keys(mergedEnv).length > 0 ? mergedEnv : undefined;
|
|
1755
|
+
|
|
1709
1756
|
// Create session in container
|
|
1710
1757
|
await this.client.utils.createSession({
|
|
1711
1758
|
id: sessionId,
|
|
1712
|
-
env:
|
|
1713
|
-
cwd: options
|
|
1759
|
+
...(envPayload && { env: envPayload }),
|
|
1760
|
+
...(options?.cwd && { cwd: options.cwd })
|
|
1714
1761
|
});
|
|
1715
1762
|
|
|
1716
1763
|
// Return wrapper that binds sessionId to all operations
|
package/src/version.ts
CHANGED
package/tests/sandbox.test.ts
CHANGED
|
@@ -139,15 +139,35 @@ describe('Sandbox - Automatic Session Management', () => {
|
|
|
139
139
|
await sandbox.exec('echo test');
|
|
140
140
|
|
|
141
141
|
expect(sandbox.client.utils.createSession).toHaveBeenCalledTimes(1);
|
|
142
|
-
expect(sandbox.client.utils.createSession).toHaveBeenCalledWith(
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
142
|
+
expect(sandbox.client.utils.createSession).toHaveBeenCalledWith(
|
|
143
|
+
expect.objectContaining({
|
|
144
|
+
id: expect.stringMatching(/^sandbox-/),
|
|
145
|
+
cwd: '/workspace'
|
|
146
|
+
})
|
|
147
|
+
);
|
|
147
148
|
|
|
148
149
|
expect(sandbox.client.commands.execute).toHaveBeenCalledWith(
|
|
149
150
|
'echo test',
|
|
150
|
-
expect.stringMatching(/^sandbox-/)
|
|
151
|
+
expect.stringMatching(/^sandbox-/),
|
|
152
|
+
undefined
|
|
153
|
+
);
|
|
154
|
+
});
|
|
155
|
+
|
|
156
|
+
it('should forward exec options to the command client', async () => {
|
|
157
|
+
await sandbox.exec('echo $OPTION', {
|
|
158
|
+
env: { OPTION: 'value' },
|
|
159
|
+
cwd: '/workspace/project',
|
|
160
|
+
timeout: 5000
|
|
161
|
+
});
|
|
162
|
+
|
|
163
|
+
expect(sandbox.client.commands.execute).toHaveBeenCalledWith(
|
|
164
|
+
'echo $OPTION',
|
|
165
|
+
expect.stringMatching(/^sandbox-/),
|
|
166
|
+
{
|
|
167
|
+
timeoutMs: 5000,
|
|
168
|
+
env: { OPTION: 'value' },
|
|
169
|
+
cwd: '/workspace/project'
|
|
170
|
+
}
|
|
151
171
|
);
|
|
152
172
|
});
|
|
153
173
|
|
|
@@ -241,11 +261,12 @@ describe('Sandbox - Automatic Session Management', () => {
|
|
|
241
261
|
|
|
242
262
|
await sandbox.exec('pwd');
|
|
243
263
|
|
|
244
|
-
expect(sandbox.client.utils.createSession).toHaveBeenCalledWith(
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
264
|
+
expect(sandbox.client.utils.createSession).toHaveBeenCalledWith(
|
|
265
|
+
expect.objectContaining({
|
|
266
|
+
id: 'sandbox-my-sandbox',
|
|
267
|
+
cwd: '/workspace'
|
|
268
|
+
})
|
|
269
|
+
);
|
|
249
270
|
});
|
|
250
271
|
});
|
|
251
272
|
|
|
@@ -289,7 +310,8 @@ describe('Sandbox - Automatic Session Management', () => {
|
|
|
289
310
|
|
|
290
311
|
expect(sandbox.client.commands.execute).toHaveBeenCalledWith(
|
|
291
312
|
'echo test',
|
|
292
|
-
'isolated-session'
|
|
313
|
+
'isolated-session',
|
|
314
|
+
undefined
|
|
293
315
|
);
|
|
294
316
|
});
|
|
295
317
|
|
|
@@ -367,11 +389,11 @@ describe('Sandbox - Automatic Session Management', () => {
|
|
|
367
389
|
|
|
368
390
|
await sandbox.createSession();
|
|
369
391
|
|
|
370
|
-
expect(sandbox.client.utils.createSession).toHaveBeenCalledWith(
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
392
|
+
expect(sandbox.client.utils.createSession).toHaveBeenCalledWith(
|
|
393
|
+
expect.objectContaining({
|
|
394
|
+
id: expect.stringMatching(/^session-/)
|
|
395
|
+
})
|
|
396
|
+
);
|
|
375
397
|
});
|
|
376
398
|
});
|
|
377
399
|
|
|
@@ -392,7 +414,8 @@ describe('Sandbox - Automatic Session Management', () => {
|
|
|
392
414
|
await session.exec('pwd');
|
|
393
415
|
expect(sandbox.client.commands.execute).toHaveBeenCalledWith(
|
|
394
416
|
'pwd',
|
|
395
|
-
'test-session'
|
|
417
|
+
'test-session',
|
|
418
|
+
undefined
|
|
396
419
|
);
|
|
397
420
|
});
|
|
398
421
|
|
|
@@ -413,7 +436,7 @@ describe('Sandbox - Automatic Session Management', () => {
|
|
|
413
436
|
expect(sandbox.client.processes.startProcess).toHaveBeenCalledWith(
|
|
414
437
|
'sleep 10',
|
|
415
438
|
'test-session',
|
|
416
|
-
{
|
|
439
|
+
{}
|
|
417
440
|
);
|
|
418
441
|
});
|
|
419
442
|
|
|
@@ -468,11 +491,12 @@ describe('Sandbox - Automatic Session Management', () => {
|
|
|
468
491
|
it('should initialize with empty environment when not set', async () => {
|
|
469
492
|
await sandbox.exec('pwd');
|
|
470
493
|
|
|
471
|
-
expect(sandbox.client.utils.createSession).toHaveBeenCalledWith(
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
494
|
+
expect(sandbox.client.utils.createSession).toHaveBeenCalledWith(
|
|
495
|
+
expect.objectContaining({
|
|
496
|
+
id: expect.any(String),
|
|
497
|
+
cwd: '/workspace'
|
|
498
|
+
})
|
|
499
|
+
);
|
|
476
500
|
});
|
|
477
501
|
|
|
478
502
|
it('should use updated environment after setEnvVars', async () => {
|