@evolvingmachines/sdk 0.0.22 → 0.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +43 -39
- package/dist/index.d.cts +13 -1
- package/dist/index.d.ts +13 -1
- package/dist/index.js +43 -39
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -364,13 +364,15 @@ interface SandboxProvider {
|
|
|
364
364
|
connect(sandboxId: string, timeoutMs?: number): Promise<SandboxInstance>;
|
|
365
365
|
}
|
|
366
366
|
/** Supported agent types (headless CLI agents only, no ACP) */
|
|
367
|
-
type AgentType = "claude" | "codex" | "gemini" | "qwen";
|
|
367
|
+
type AgentType = "claude" | "codex" | "gemini" | "qwen" | "kimi" | "opencode";
|
|
368
368
|
/** Agent type constants for use in code */
|
|
369
369
|
declare const AGENT_TYPES: {
|
|
370
370
|
readonly CLAUDE: "claude";
|
|
371
371
|
readonly CODEX: "codex";
|
|
372
372
|
readonly GEMINI: "gemini";
|
|
373
373
|
readonly QWEN: "qwen";
|
|
374
|
+
readonly KIMI: "kimi";
|
|
375
|
+
readonly OPENCODE: "opencode";
|
|
374
376
|
};
|
|
375
377
|
/** Workspace mode determines folder structure and system prompt */
|
|
376
378
|
type WorkspaceMode = "knowledge" | "swe";
|
|
@@ -2381,6 +2383,15 @@ interface AgentRegistryEntry {
|
|
|
2381
2383
|
availableBetas?: Record<string, string>;
|
|
2382
2384
|
/** Skills configuration for this agent */
|
|
2383
2385
|
skillsConfig: SkillsConfig;
|
|
2386
|
+
/** Multi-provider env mapping: model prefix → keyEnv (for CLIs like OpenCode that resolve provider from model string) */
|
|
2387
|
+
providerEnvMap?: Record<string, {
|
|
2388
|
+
keyEnv: string;
|
|
2389
|
+
}>;
|
|
2390
|
+
/** Env var for inline config (e.g., OPENCODE_CONFIG_CONTENT) — used in gateway mode to set provider base URLs */
|
|
2391
|
+
gatewayConfigEnv?: string;
|
|
2392
|
+
/** Additional directories to include in checkpoint tar (beyond mcpConfig.settingsDir).
|
|
2393
|
+
* Used for agents like OpenCode that spread state across XDG directories. */
|
|
2394
|
+
checkpointDirs?: string[];
|
|
2384
2395
|
}
|
|
2385
2396
|
/**
|
|
2386
2397
|
* Registry of all supported agents.
|
|
@@ -2465,6 +2476,7 @@ declare function writeCodexMcpConfig(sandbox: SandboxInstance, servers: Record<s
|
|
|
2465
2476
|
* - Codex: TOML to ~/.codex/config.toml
|
|
2466
2477
|
* - Gemini: JSON to ~/.gemini/settings.json
|
|
2467
2478
|
* - Qwen: JSON to ~/.qwen/settings.json
|
|
2479
|
+
* - OpenCode: JSON to ${workingDir}/opencode.json (mcp key)
|
|
2468
2480
|
*/
|
|
2469
2481
|
declare function writeMcpConfig(agentType: AgentType, sandbox: SandboxInstance, workingDir: string, servers: Record<string, McpServerConfig>): Promise<void>;
|
|
2470
2482
|
|
package/dist/index.d.ts
CHANGED
|
@@ -364,13 +364,15 @@ interface SandboxProvider {
|
|
|
364
364
|
connect(sandboxId: string, timeoutMs?: number): Promise<SandboxInstance>;
|
|
365
365
|
}
|
|
366
366
|
/** Supported agent types (headless CLI agents only, no ACP) */
|
|
367
|
-
type AgentType = "claude" | "codex" | "gemini" | "qwen";
|
|
367
|
+
type AgentType = "claude" | "codex" | "gemini" | "qwen" | "kimi" | "opencode";
|
|
368
368
|
/** Agent type constants for use in code */
|
|
369
369
|
declare const AGENT_TYPES: {
|
|
370
370
|
readonly CLAUDE: "claude";
|
|
371
371
|
readonly CODEX: "codex";
|
|
372
372
|
readonly GEMINI: "gemini";
|
|
373
373
|
readonly QWEN: "qwen";
|
|
374
|
+
readonly KIMI: "kimi";
|
|
375
|
+
readonly OPENCODE: "opencode";
|
|
374
376
|
};
|
|
375
377
|
/** Workspace mode determines folder structure and system prompt */
|
|
376
378
|
type WorkspaceMode = "knowledge" | "swe";
|
|
@@ -2381,6 +2383,15 @@ interface AgentRegistryEntry {
|
|
|
2381
2383
|
availableBetas?: Record<string, string>;
|
|
2382
2384
|
/** Skills configuration for this agent */
|
|
2383
2385
|
skillsConfig: SkillsConfig;
|
|
2386
|
+
/** Multi-provider env mapping: model prefix → keyEnv (for CLIs like OpenCode that resolve provider from model string) */
|
|
2387
|
+
providerEnvMap?: Record<string, {
|
|
2388
|
+
keyEnv: string;
|
|
2389
|
+
}>;
|
|
2390
|
+
/** Env var for inline config (e.g., OPENCODE_CONFIG_CONTENT) — used in gateway mode to set provider base URLs */
|
|
2391
|
+
gatewayConfigEnv?: string;
|
|
2392
|
+
/** Additional directories to include in checkpoint tar (beyond mcpConfig.settingsDir).
|
|
2393
|
+
* Used for agents like OpenCode that spread state across XDG directories. */
|
|
2394
|
+
checkpointDirs?: string[];
|
|
2384
2395
|
}
|
|
2385
2396
|
/**
|
|
2386
2397
|
* Registry of all supported agents.
|
|
@@ -2465,6 +2476,7 @@ declare function writeCodexMcpConfig(sandbox: SandboxInstance, servers: Record<s
|
|
|
2465
2476
|
* - Codex: TOML to ~/.codex/config.toml
|
|
2466
2477
|
* - Gemini: JSON to ~/.gemini/settings.json
|
|
2467
2478
|
* - Qwen: JSON to ~/.qwen/settings.json
|
|
2479
|
+
* - OpenCode: JSON to ${workingDir}/opencode.json (mcp key)
|
|
2468
2480
|
*/
|
|
2469
2481
|
declare function writeMcpConfig(agentType: AgentType, sandbox: SandboxInstance, workingDir: string, servers: Record<string, McpServerConfig>): Promise<void>;
|
|
2470
2482
|
|