@evolvingmachines/sdk 0.0.4 → 0.0.7
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/LICENSE +193 -16
- package/dist/index.cjs +39 -35
- package/dist/index.d.cts +11 -7
- package/dist/index.d.ts +11 -7
- package/dist/index.js +39 -35
- package/package.json +7 -2
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import * as zod from 'zod';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { EventEmitter } from 'events';
|
|
4
|
+
export { E2BProvider } from '@evolvingmachines/e2b';
|
|
5
|
+
export { DaytonaProvider } from '@evolvingmachines/daytona';
|
|
6
|
+
export { ModalProvider } from '@evolvingmachines/modal';
|
|
4
7
|
|
|
5
8
|
/**
|
|
6
9
|
* ACP-inspired output types for unified agent event streaming.
|
|
@@ -290,13 +293,13 @@ interface SandboxCommandResult {
|
|
|
290
293
|
}
|
|
291
294
|
/** Handle to a running background process in sandbox */
|
|
292
295
|
interface SandboxCommandHandle {
|
|
293
|
-
readonly
|
|
296
|
+
readonly processId: string;
|
|
294
297
|
wait(): Promise<SandboxCommandResult>;
|
|
295
298
|
kill(): Promise<boolean>;
|
|
296
299
|
}
|
|
297
300
|
/** Information about a running process */
|
|
298
301
|
interface ProcessInfo {
|
|
299
|
-
|
|
302
|
+
processId: string;
|
|
300
303
|
cmd: string;
|
|
301
304
|
args: string[];
|
|
302
305
|
envs: Record<string, string>;
|
|
@@ -317,7 +320,7 @@ interface SandboxSpawnOptions extends SandboxRunOptions {
|
|
|
317
320
|
}
|
|
318
321
|
/** Options for creating a sandbox */
|
|
319
322
|
interface SandboxCreateOptions {
|
|
320
|
-
|
|
323
|
+
image: string;
|
|
321
324
|
envs?: Record<string, string>;
|
|
322
325
|
metadata?: Record<string, string>;
|
|
323
326
|
timeoutMs?: number;
|
|
@@ -328,7 +331,7 @@ interface SandboxCommands {
|
|
|
328
331
|
run(command: string, options?: SandboxRunOptions): Promise<SandboxCommandResult>;
|
|
329
332
|
spawn(command: string, options?: SandboxSpawnOptions): Promise<SandboxCommandHandle>;
|
|
330
333
|
list(): Promise<ProcessInfo[]>;
|
|
331
|
-
kill(
|
|
334
|
+
kill(processId: string): Promise<boolean>;
|
|
332
335
|
}
|
|
333
336
|
/** File system operations */
|
|
334
337
|
interface SandboxFiles {
|
|
@@ -345,7 +348,8 @@ interface SandboxInstance {
|
|
|
345
348
|
readonly sandboxId: string;
|
|
346
349
|
readonly commands: SandboxCommands;
|
|
347
350
|
readonly files: SandboxFiles;
|
|
348
|
-
|
|
351
|
+
/** Get host URL for a port */
|
|
352
|
+
getHost(port: number): Promise<string>;
|
|
349
353
|
kill(): Promise<void>;
|
|
350
354
|
pause(): Promise<void>;
|
|
351
355
|
}
|
|
@@ -2139,8 +2143,8 @@ interface BuildCommandOptions {
|
|
|
2139
2143
|
skills?: string[];
|
|
2140
2144
|
}
|
|
2141
2145
|
interface AgentRegistryEntry {
|
|
2142
|
-
/**
|
|
2143
|
-
|
|
2146
|
+
/** Sandbox image/template identifier (provider maps to its own concept) */
|
|
2147
|
+
image: string;
|
|
2144
2148
|
/** Environment variable name for API key */
|
|
2145
2149
|
apiKeyEnv: string;
|
|
2146
2150
|
/** Environment variable name for OAuth token (Claude only - Max subscription) */
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import * as zod from 'zod';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { EventEmitter } from 'events';
|
|
4
|
+
export { E2BProvider } from '@evolvingmachines/e2b';
|
|
5
|
+
export { DaytonaProvider } from '@evolvingmachines/daytona';
|
|
6
|
+
export { ModalProvider } from '@evolvingmachines/modal';
|
|
4
7
|
|
|
5
8
|
/**
|
|
6
9
|
* ACP-inspired output types for unified agent event streaming.
|
|
@@ -290,13 +293,13 @@ interface SandboxCommandResult {
|
|
|
290
293
|
}
|
|
291
294
|
/** Handle to a running background process in sandbox */
|
|
292
295
|
interface SandboxCommandHandle {
|
|
293
|
-
readonly
|
|
296
|
+
readonly processId: string;
|
|
294
297
|
wait(): Promise<SandboxCommandResult>;
|
|
295
298
|
kill(): Promise<boolean>;
|
|
296
299
|
}
|
|
297
300
|
/** Information about a running process */
|
|
298
301
|
interface ProcessInfo {
|
|
299
|
-
|
|
302
|
+
processId: string;
|
|
300
303
|
cmd: string;
|
|
301
304
|
args: string[];
|
|
302
305
|
envs: Record<string, string>;
|
|
@@ -317,7 +320,7 @@ interface SandboxSpawnOptions extends SandboxRunOptions {
|
|
|
317
320
|
}
|
|
318
321
|
/** Options for creating a sandbox */
|
|
319
322
|
interface SandboxCreateOptions {
|
|
320
|
-
|
|
323
|
+
image: string;
|
|
321
324
|
envs?: Record<string, string>;
|
|
322
325
|
metadata?: Record<string, string>;
|
|
323
326
|
timeoutMs?: number;
|
|
@@ -328,7 +331,7 @@ interface SandboxCommands {
|
|
|
328
331
|
run(command: string, options?: SandboxRunOptions): Promise<SandboxCommandResult>;
|
|
329
332
|
spawn(command: string, options?: SandboxSpawnOptions): Promise<SandboxCommandHandle>;
|
|
330
333
|
list(): Promise<ProcessInfo[]>;
|
|
331
|
-
kill(
|
|
334
|
+
kill(processId: string): Promise<boolean>;
|
|
332
335
|
}
|
|
333
336
|
/** File system operations */
|
|
334
337
|
interface SandboxFiles {
|
|
@@ -345,7 +348,8 @@ interface SandboxInstance {
|
|
|
345
348
|
readonly sandboxId: string;
|
|
346
349
|
readonly commands: SandboxCommands;
|
|
347
350
|
readonly files: SandboxFiles;
|
|
348
|
-
|
|
351
|
+
/** Get host URL for a port */
|
|
352
|
+
getHost(port: number): Promise<string>;
|
|
349
353
|
kill(): Promise<void>;
|
|
350
354
|
pause(): Promise<void>;
|
|
351
355
|
}
|
|
@@ -2139,8 +2143,8 @@ interface BuildCommandOptions {
|
|
|
2139
2143
|
skills?: string[];
|
|
2140
2144
|
}
|
|
2141
2145
|
interface AgentRegistryEntry {
|
|
2142
|
-
/**
|
|
2143
|
-
|
|
2146
|
+
/** Sandbox image/template identifier (provider maps to its own concept) */
|
|
2147
|
+
image: string;
|
|
2144
2148
|
/** Environment variable name for API key */
|
|
2145
2149
|
apiKeyEnv: string;
|
|
2146
2150
|
/** Environment variable name for OAuth token (Claude only - Max subscription) */
|