@evolvingmachines/sdk 0.0.34 → 0.0.35
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 +44 -41
- package/dist/index.d.cts +39 -9
- package/dist/index.d.ts +39 -9
- package/dist/index.js +44 -41
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -380,7 +380,15 @@ type WorkspaceMode = "knowledge" | "swe";
|
|
|
380
380
|
/** Available skills that can be enabled */
|
|
381
381
|
type SkillName = "pdf" | "dev-browser" | (string & {});
|
|
382
382
|
/** Browser automation providers that can be enabled explicitly */
|
|
383
|
-
type BrowserProvider = "browser-use";
|
|
383
|
+
type BrowserProvider = "browser-use" | "actionbook";
|
|
384
|
+
/** Actionbook browser configuration. */
|
|
385
|
+
interface ActionbookBrowserConfig {
|
|
386
|
+
provider: "actionbook";
|
|
387
|
+
/** Use Evolve-managed browser transport. Enabled by default for object config. */
|
|
388
|
+
superstealth?: boolean;
|
|
389
|
+
}
|
|
390
|
+
/** Browser automation configuration. */
|
|
391
|
+
type BrowserConfig = BrowserProvider | ActionbookBrowserConfig;
|
|
384
392
|
/** Marketplace plugin shape for CLIs with explicit plugin install commands. */
|
|
385
393
|
interface MarketplaceAgentPluginConfig {
|
|
386
394
|
/** Marketplace URL/source to register in the sandbox user profile */
|
|
@@ -529,6 +537,13 @@ interface AgentOptions {
|
|
|
529
537
|
files?: FileMap;
|
|
530
538
|
/** MCP server configurations */
|
|
531
539
|
mcpServers?: Record<string, McpServerConfig>;
|
|
540
|
+
/** Runtime browser prompt fragment appended to the agent system prompt */
|
|
541
|
+
browserPrompt?: string;
|
|
542
|
+
/** Evolve-managed browser transport for browser automation */
|
|
543
|
+
managedBrowser?: {
|
|
544
|
+
apiKey: string;
|
|
545
|
+
dashboardUrl?: string;
|
|
546
|
+
};
|
|
532
547
|
/** Plugins/extensions to install in the sandbox user profile before first run */
|
|
533
548
|
plugins?: AgentPluginConfig[];
|
|
534
549
|
/** Skills to enable (e.g., ["pdf", "dev-browser"]) */
|
|
@@ -593,7 +608,11 @@ type SandboxLifecycleState = "booting" | "error" | "ready" | "running" | "paused
|
|
|
593
608
|
/** High-level agent runtime state */
|
|
594
609
|
type AgentRuntimeState = "idle" | "running" | "interrupted" | "error";
|
|
595
610
|
/** Lifecycle transition reason */
|
|
596
|
-
type LifecycleReason = "sandbox_boot" | "sandbox_connected" | "sandbox_ready" | "sandbox_pause" | "sandbox_resume" | "sandbox_killed" | "sandbox_error" | "run_start" | "run_complete" | "run_interrupted" | "run_failed" | "run_background_complete" | "run_background_failed" | "command_start" | "command_complete" | "command_interrupted" | "command_failed" | "command_background_complete" | "command_background_failed";
|
|
611
|
+
type LifecycleReason = "browser_ready" | "sandbox_boot" | "sandbox_connected" | "sandbox_ready" | "sandbox_pause" | "sandbox_resume" | "sandbox_killed" | "sandbox_error" | "run_start" | "run_complete" | "run_interrupted" | "run_failed" | "run_background_complete" | "run_background_failed" | "command_start" | "command_complete" | "command_interrupted" | "command_failed" | "command_background_complete" | "command_background_failed";
|
|
612
|
+
/** Browser runtime info exposed to host applications. */
|
|
613
|
+
interface BrowserRuntimeInfo {
|
|
614
|
+
liveUrl: string;
|
|
615
|
+
}
|
|
597
616
|
/** Lifecycle event emitted by the runtime */
|
|
598
617
|
interface LifecycleEvent {
|
|
599
618
|
sandboxId: string | null;
|
|
@@ -601,6 +620,7 @@ interface LifecycleEvent {
|
|
|
601
620
|
agent: AgentRuntimeState;
|
|
602
621
|
timestamp: string;
|
|
603
622
|
reason: LifecycleReason;
|
|
623
|
+
browser?: BrowserRuntimeInfo;
|
|
604
624
|
}
|
|
605
625
|
/** Snapshot of current runtime status */
|
|
606
626
|
interface SessionStatus {
|
|
@@ -610,6 +630,7 @@ interface SessionStatus {
|
|
|
610
630
|
activeProcessId: string | null;
|
|
611
631
|
hasRun: boolean;
|
|
612
632
|
timestamp: string;
|
|
633
|
+
browser?: BrowserRuntimeInfo;
|
|
613
634
|
}
|
|
614
635
|
/** Response from run() and executeCommand() */
|
|
615
636
|
interface AgentResponse {
|
|
@@ -976,6 +997,7 @@ declare class Agent {
|
|
|
976
997
|
private sandboxState;
|
|
977
998
|
private agentState;
|
|
978
999
|
private droidSessionId?;
|
|
1000
|
+
private managedBrowserSession?;
|
|
979
1001
|
private readonly skills?;
|
|
980
1002
|
private readonly storage?;
|
|
981
1003
|
private lastCheckpointId?;
|
|
@@ -984,6 +1006,7 @@ declare class Agent {
|
|
|
984
1006
|
private readonly schemaOptions?;
|
|
985
1007
|
private readonly compiledValidator?;
|
|
986
1008
|
constructor(agentConfig: ResolvedAgentConfig, options?: AgentOptions);
|
|
1009
|
+
private browserRuntimeInfo;
|
|
987
1010
|
private emitLifecycle;
|
|
988
1011
|
private invalidateActiveOperation;
|
|
989
1012
|
private beginOperation;
|
|
@@ -1001,6 +1024,8 @@ declare class Agent {
|
|
|
1001
1024
|
* Build environment variables for sandbox
|
|
1002
1025
|
*/
|
|
1003
1026
|
private buildEnvironmentVariables;
|
|
1027
|
+
private ensureManagedBrowserSession;
|
|
1028
|
+
private closeManagedBrowserSession;
|
|
1004
1029
|
/**
|
|
1005
1030
|
* Build the inline gateway config JSON for agents using gatewayConfigEnv
|
|
1006
1031
|
* (e.g., OpenCode OPENCODE_CONFIG_CONTENT). Centralizes the provider config
|
|
@@ -1375,7 +1400,7 @@ interface EvolveConfig {
|
|
|
1375
1400
|
files?: FileMap;
|
|
1376
1401
|
mcpServers?: Record<string, McpServerConfig>;
|
|
1377
1402
|
/** Browser automation provider to enable explicitly */
|
|
1378
|
-
browser?:
|
|
1403
|
+
browser?: BrowserConfig;
|
|
1379
1404
|
/** Agent plugins/extensions to install before first run */
|
|
1380
1405
|
plugins?: AgentPluginConfig[];
|
|
1381
1406
|
/** Skills to enable (e.g., ["pdf", "dev-browser"]) */
|
|
@@ -1462,16 +1487,16 @@ declare class Evolve extends EventEmitter {
|
|
|
1462
1487
|
/**
|
|
1463
1488
|
* Enable browser automation.
|
|
1464
1489
|
*
|
|
1465
|
-
*
|
|
1466
|
-
*
|
|
1490
|
+
* Default browser automation uses Actionbook with Evolve-managed browser
|
|
1491
|
+
* transport in gateway mode. Pass "browser-use" to use the legacy MCP server.
|
|
1467
1492
|
*
|
|
1468
1493
|
* @example
|
|
1469
|
-
* kit.withBrowser("browser-use") //
|
|
1494
|
+
* kit.withBrowser("browser-use") // legacy MCP provider
|
|
1470
1495
|
*
|
|
1471
1496
|
* @example
|
|
1472
|
-
* kit.withBrowser() // defaults to
|
|
1497
|
+
* kit.withBrowser() // defaults to managed Actionbook
|
|
1473
1498
|
*/
|
|
1474
|
-
withBrowser(provider?:
|
|
1499
|
+
withBrowser(provider?: BrowserConfig | false): this;
|
|
1475
1500
|
/**
|
|
1476
1501
|
* Install agent plugins/extensions in the sandbox user profile.
|
|
1477
1502
|
*
|
|
@@ -2862,6 +2887,10 @@ declare const SYSTEM_PROMPT: string;
|
|
|
2862
2887
|
* - {{schema}} - JSON schema for the expected output
|
|
2863
2888
|
*/
|
|
2864
2889
|
declare const SCHEMA_PROMPT: string;
|
|
2890
|
+
/**
|
|
2891
|
+
* Actionbook browser automation prompt fragment
|
|
2892
|
+
*/
|
|
2893
|
+
declare const BROWSER_ACTIONBOOK_PROMPT: string;
|
|
2865
2894
|
/**
|
|
2866
2895
|
* Judge system prompt template (for Swarm best_of)
|
|
2867
2896
|
*
|
|
@@ -2903,6 +2932,7 @@ declare function applyTemplate(template: string, variables: Record<string, strin
|
|
|
2903
2932
|
declare function buildWorkerSystemPrompt(options: {
|
|
2904
2933
|
workingDir: string;
|
|
2905
2934
|
systemPrompt?: string;
|
|
2935
|
+
browserPrompt?: string;
|
|
2906
2936
|
schema?: z.ZodType<unknown> | Record<string, unknown>;
|
|
2907
2937
|
mode?: "knowledge" | "swe";
|
|
2908
2938
|
}): string;
|
|
@@ -3069,4 +3099,4 @@ interface SessionsClient {
|
|
|
3069
3099
|
*/
|
|
3070
3100
|
declare function sessions(config?: SessionsConfig): SessionsClient;
|
|
3071
3101
|
|
|
3072
|
-
export { AGENT_REGISTRY, AGENT_TYPES, Agent, type AgentConfig, type AgentOptions, type AgentOverride, type AgentParser, type AgentPluginConfig, type AgentRegistryEntry, type AgentResponse, type AgentRuntimeState, type AgentType, type BaseMeta, type BestOfConfig, type BestOfParams, type BestOfResult, type BrowserProvider, type CandidateCompleteEvent, type CheckpointInfo, type CodexAgentPluginConfig, type ComposioAuthResult, type ComposioConfig, type ComposioConnectionStatus, type ComposioSetup, type DownloadCheckpointOptions, type DownloadFilesOptions, type DownloadSessionOptions, type EmitOption, type EventHandler, type EventName, Evolve, type EvolveConfig, type EvolveEvents, type ExecuteCommandOptions, type FileMap, type FilterConfig, type FilterParams, type GeminiAgentPluginConfig, type GetEventsOptions, type IndexedMeta, type ItemInput, type ItemRetryEvent, JUDGE_PROMPT, type JsonSchema, type JudgeCompleteEvent, type JudgeDecision, type JudgeMeta, type LifecycleEvent, type LifecycleReason, type ListSessionsOptions, type MapConfig, type MapParams, type MarketplaceAgentPluginConfig, type McpConfigInfo, type McpServerConfig, type ModelInfo, type OnCandidateCompleteCallback, type OnItemRetryCallback, type OnJudgeCompleteCallback, type OnVerifierCompleteCallback, type OnWorkerCompleteCallback, type OperationType, type OutputEvent, type OutputResult, Pipeline, type PipelineContext, type PipelineEventMap, type PipelineEvents, type PipelineResult, type ProcessInfo, type Prompt, type PromptFn, RETRY_FEEDBACK_PROMPT, type ReasoningEffort, type ReduceConfig, type ReduceMeta, type ReduceParams, type ReduceResult, type ResolvedStorageConfig, type RetryConfig, type RunCost, type RunOptions, SCHEMA_PROMPT, SWARM_RESULT_BRAND, SYSTEM_PROMPT, type SandboxCommandHandle, type SandboxCommandResult, type SandboxCommands, type SandboxCreateOptions, type SandboxFiles, type SandboxInstance, type SandboxLifecycleState, type SandboxProvider, type SandboxRunOptions, type SandboxSpawnOptions, type SchemaValidationOptions, Semaphore, type SessionCost, type SessionEvent, type SessionInfo, type SessionPage, type SessionStatus, type SessionsClient, type SessionsConfig, type SkillName, type SkillsConfig, type StepCompleteEvent, type StepErrorEvent, type StepEvent, type StepResult, type StepStartEvent, type StorageClient, type StorageConfig, type StreamCallbacks, Swarm, type SwarmConfig, type SwarmResult, SwarmResultList, TerminalPipeline, type ToolsFilter, VALIDATION_PRESETS, VERIFY_PROMPT, type ValidationMode, type VerifierCompleteEvent, type VerifyConfig, type VerifyDecision, type VerifyInfo, type VerifyMeta, WORKSPACE_PROMPT, WORKSPACE_SWE_PROMPT, type WorkerCompleteEvent, type WorkspaceMode, applyTemplate, buildWorkerSystemPrompt, createAgentParser, createClaudeParser, createCodexParser, createDroidParser, createGeminiParser, executeWithRetry, expandPath, getAgentConfig, getMcpSettingsDir, getMcpSettingsPath, isValidAgentType, isZodSchema, jsonSchemaToString, parseNdjsonLine, parseNdjsonOutput, parseQwenOutput, readLocalDir, resolveStorageConfig, saveLocalDir, sessions, storage, writeClaudeMcpConfig, writeCodexMcpConfig, writeDroidGatewaySettings, writeDroidMcpConfig, writeGeminiMcpConfig, writeMcpConfig, writeQwenMcpConfig, zodSchemaToJson };
|
|
3102
|
+
export { AGENT_REGISTRY, AGENT_TYPES, type ActionbookBrowserConfig, Agent, type AgentConfig, type AgentOptions, type AgentOverride, type AgentParser, type AgentPluginConfig, type AgentRegistryEntry, type AgentResponse, type AgentRuntimeState, type AgentType, BROWSER_ACTIONBOOK_PROMPT, type BaseMeta, type BestOfConfig, type BestOfParams, type BestOfResult, type BrowserConfig, type BrowserProvider, type BrowserRuntimeInfo, type CandidateCompleteEvent, type CheckpointInfo, type CodexAgentPluginConfig, type ComposioAuthResult, type ComposioConfig, type ComposioConnectionStatus, type ComposioSetup, type DownloadCheckpointOptions, type DownloadFilesOptions, type DownloadSessionOptions, type EmitOption, type EventHandler, type EventName, Evolve, type EvolveConfig, type EvolveEvents, type ExecuteCommandOptions, type FileMap, type FilterConfig, type FilterParams, type GeminiAgentPluginConfig, type GetEventsOptions, type IndexedMeta, type ItemInput, type ItemRetryEvent, JUDGE_PROMPT, type JsonSchema, type JudgeCompleteEvent, type JudgeDecision, type JudgeMeta, type LifecycleEvent, type LifecycleReason, type ListSessionsOptions, type MapConfig, type MapParams, type MarketplaceAgentPluginConfig, type McpConfigInfo, type McpServerConfig, type ModelInfo, type OnCandidateCompleteCallback, type OnItemRetryCallback, type OnJudgeCompleteCallback, type OnVerifierCompleteCallback, type OnWorkerCompleteCallback, type OperationType, type OutputEvent, type OutputResult, Pipeline, type PipelineContext, type PipelineEventMap, type PipelineEvents, type PipelineResult, type ProcessInfo, type Prompt, type PromptFn, RETRY_FEEDBACK_PROMPT, type ReasoningEffort, type ReduceConfig, type ReduceMeta, type ReduceParams, type ReduceResult, type ResolvedStorageConfig, type RetryConfig, type RunCost, type RunOptions, SCHEMA_PROMPT, SWARM_RESULT_BRAND, SYSTEM_PROMPT, type SandboxCommandHandle, type SandboxCommandResult, type SandboxCommands, type SandboxCreateOptions, type SandboxFiles, type SandboxInstance, type SandboxLifecycleState, type SandboxProvider, type SandboxRunOptions, type SandboxSpawnOptions, type SchemaValidationOptions, Semaphore, type SessionCost, type SessionEvent, type SessionInfo, type SessionPage, type SessionStatus, type SessionsClient, type SessionsConfig, type SkillName, type SkillsConfig, type StepCompleteEvent, type StepErrorEvent, type StepEvent, type StepResult, type StepStartEvent, type StorageClient, type StorageConfig, type StreamCallbacks, Swarm, type SwarmConfig, type SwarmResult, SwarmResultList, TerminalPipeline, type ToolsFilter, VALIDATION_PRESETS, VERIFY_PROMPT, type ValidationMode, type VerifierCompleteEvent, type VerifyConfig, type VerifyDecision, type VerifyInfo, type VerifyMeta, WORKSPACE_PROMPT, WORKSPACE_SWE_PROMPT, type WorkerCompleteEvent, type WorkspaceMode, applyTemplate, buildWorkerSystemPrompt, createAgentParser, createClaudeParser, createCodexParser, createDroidParser, createGeminiParser, executeWithRetry, expandPath, getAgentConfig, getMcpSettingsDir, getMcpSettingsPath, isValidAgentType, isZodSchema, jsonSchemaToString, parseNdjsonLine, parseNdjsonOutput, parseQwenOutput, readLocalDir, resolveStorageConfig, saveLocalDir, sessions, storage, writeClaudeMcpConfig, writeCodexMcpConfig, writeDroidGatewaySettings, writeDroidMcpConfig, writeGeminiMcpConfig, writeMcpConfig, writeQwenMcpConfig, zodSchemaToJson };
|
package/dist/index.d.ts
CHANGED
|
@@ -380,7 +380,15 @@ type WorkspaceMode = "knowledge" | "swe";
|
|
|
380
380
|
/** Available skills that can be enabled */
|
|
381
381
|
type SkillName = "pdf" | "dev-browser" | (string & {});
|
|
382
382
|
/** Browser automation providers that can be enabled explicitly */
|
|
383
|
-
type BrowserProvider = "browser-use";
|
|
383
|
+
type BrowserProvider = "browser-use" | "actionbook";
|
|
384
|
+
/** Actionbook browser configuration. */
|
|
385
|
+
interface ActionbookBrowserConfig {
|
|
386
|
+
provider: "actionbook";
|
|
387
|
+
/** Use Evolve-managed browser transport. Enabled by default for object config. */
|
|
388
|
+
superstealth?: boolean;
|
|
389
|
+
}
|
|
390
|
+
/** Browser automation configuration. */
|
|
391
|
+
type BrowserConfig = BrowserProvider | ActionbookBrowserConfig;
|
|
384
392
|
/** Marketplace plugin shape for CLIs with explicit plugin install commands. */
|
|
385
393
|
interface MarketplaceAgentPluginConfig {
|
|
386
394
|
/** Marketplace URL/source to register in the sandbox user profile */
|
|
@@ -529,6 +537,13 @@ interface AgentOptions {
|
|
|
529
537
|
files?: FileMap;
|
|
530
538
|
/** MCP server configurations */
|
|
531
539
|
mcpServers?: Record<string, McpServerConfig>;
|
|
540
|
+
/** Runtime browser prompt fragment appended to the agent system prompt */
|
|
541
|
+
browserPrompt?: string;
|
|
542
|
+
/** Evolve-managed browser transport for browser automation */
|
|
543
|
+
managedBrowser?: {
|
|
544
|
+
apiKey: string;
|
|
545
|
+
dashboardUrl?: string;
|
|
546
|
+
};
|
|
532
547
|
/** Plugins/extensions to install in the sandbox user profile before first run */
|
|
533
548
|
plugins?: AgentPluginConfig[];
|
|
534
549
|
/** Skills to enable (e.g., ["pdf", "dev-browser"]) */
|
|
@@ -593,7 +608,11 @@ type SandboxLifecycleState = "booting" | "error" | "ready" | "running" | "paused
|
|
|
593
608
|
/** High-level agent runtime state */
|
|
594
609
|
type AgentRuntimeState = "idle" | "running" | "interrupted" | "error";
|
|
595
610
|
/** Lifecycle transition reason */
|
|
596
|
-
type LifecycleReason = "sandbox_boot" | "sandbox_connected" | "sandbox_ready" | "sandbox_pause" | "sandbox_resume" | "sandbox_killed" | "sandbox_error" | "run_start" | "run_complete" | "run_interrupted" | "run_failed" | "run_background_complete" | "run_background_failed" | "command_start" | "command_complete" | "command_interrupted" | "command_failed" | "command_background_complete" | "command_background_failed";
|
|
611
|
+
type LifecycleReason = "browser_ready" | "sandbox_boot" | "sandbox_connected" | "sandbox_ready" | "sandbox_pause" | "sandbox_resume" | "sandbox_killed" | "sandbox_error" | "run_start" | "run_complete" | "run_interrupted" | "run_failed" | "run_background_complete" | "run_background_failed" | "command_start" | "command_complete" | "command_interrupted" | "command_failed" | "command_background_complete" | "command_background_failed";
|
|
612
|
+
/** Browser runtime info exposed to host applications. */
|
|
613
|
+
interface BrowserRuntimeInfo {
|
|
614
|
+
liveUrl: string;
|
|
615
|
+
}
|
|
597
616
|
/** Lifecycle event emitted by the runtime */
|
|
598
617
|
interface LifecycleEvent {
|
|
599
618
|
sandboxId: string | null;
|
|
@@ -601,6 +620,7 @@ interface LifecycleEvent {
|
|
|
601
620
|
agent: AgentRuntimeState;
|
|
602
621
|
timestamp: string;
|
|
603
622
|
reason: LifecycleReason;
|
|
623
|
+
browser?: BrowserRuntimeInfo;
|
|
604
624
|
}
|
|
605
625
|
/** Snapshot of current runtime status */
|
|
606
626
|
interface SessionStatus {
|
|
@@ -610,6 +630,7 @@ interface SessionStatus {
|
|
|
610
630
|
activeProcessId: string | null;
|
|
611
631
|
hasRun: boolean;
|
|
612
632
|
timestamp: string;
|
|
633
|
+
browser?: BrowserRuntimeInfo;
|
|
613
634
|
}
|
|
614
635
|
/** Response from run() and executeCommand() */
|
|
615
636
|
interface AgentResponse {
|
|
@@ -976,6 +997,7 @@ declare class Agent {
|
|
|
976
997
|
private sandboxState;
|
|
977
998
|
private agentState;
|
|
978
999
|
private droidSessionId?;
|
|
1000
|
+
private managedBrowserSession?;
|
|
979
1001
|
private readonly skills?;
|
|
980
1002
|
private readonly storage?;
|
|
981
1003
|
private lastCheckpointId?;
|
|
@@ -984,6 +1006,7 @@ declare class Agent {
|
|
|
984
1006
|
private readonly schemaOptions?;
|
|
985
1007
|
private readonly compiledValidator?;
|
|
986
1008
|
constructor(agentConfig: ResolvedAgentConfig, options?: AgentOptions);
|
|
1009
|
+
private browserRuntimeInfo;
|
|
987
1010
|
private emitLifecycle;
|
|
988
1011
|
private invalidateActiveOperation;
|
|
989
1012
|
private beginOperation;
|
|
@@ -1001,6 +1024,8 @@ declare class Agent {
|
|
|
1001
1024
|
* Build environment variables for sandbox
|
|
1002
1025
|
*/
|
|
1003
1026
|
private buildEnvironmentVariables;
|
|
1027
|
+
private ensureManagedBrowserSession;
|
|
1028
|
+
private closeManagedBrowserSession;
|
|
1004
1029
|
/**
|
|
1005
1030
|
* Build the inline gateway config JSON for agents using gatewayConfigEnv
|
|
1006
1031
|
* (e.g., OpenCode OPENCODE_CONFIG_CONTENT). Centralizes the provider config
|
|
@@ -1375,7 +1400,7 @@ interface EvolveConfig {
|
|
|
1375
1400
|
files?: FileMap;
|
|
1376
1401
|
mcpServers?: Record<string, McpServerConfig>;
|
|
1377
1402
|
/** Browser automation provider to enable explicitly */
|
|
1378
|
-
browser?:
|
|
1403
|
+
browser?: BrowserConfig;
|
|
1379
1404
|
/** Agent plugins/extensions to install before first run */
|
|
1380
1405
|
plugins?: AgentPluginConfig[];
|
|
1381
1406
|
/** Skills to enable (e.g., ["pdf", "dev-browser"]) */
|
|
@@ -1462,16 +1487,16 @@ declare class Evolve extends EventEmitter {
|
|
|
1462
1487
|
/**
|
|
1463
1488
|
* Enable browser automation.
|
|
1464
1489
|
*
|
|
1465
|
-
*
|
|
1466
|
-
*
|
|
1490
|
+
* Default browser automation uses Actionbook with Evolve-managed browser
|
|
1491
|
+
* transport in gateway mode. Pass "browser-use" to use the legacy MCP server.
|
|
1467
1492
|
*
|
|
1468
1493
|
* @example
|
|
1469
|
-
* kit.withBrowser("browser-use") //
|
|
1494
|
+
* kit.withBrowser("browser-use") // legacy MCP provider
|
|
1470
1495
|
*
|
|
1471
1496
|
* @example
|
|
1472
|
-
* kit.withBrowser() // defaults to
|
|
1497
|
+
* kit.withBrowser() // defaults to managed Actionbook
|
|
1473
1498
|
*/
|
|
1474
|
-
withBrowser(provider?:
|
|
1499
|
+
withBrowser(provider?: BrowserConfig | false): this;
|
|
1475
1500
|
/**
|
|
1476
1501
|
* Install agent plugins/extensions in the sandbox user profile.
|
|
1477
1502
|
*
|
|
@@ -2862,6 +2887,10 @@ declare const SYSTEM_PROMPT: string;
|
|
|
2862
2887
|
* - {{schema}} - JSON schema for the expected output
|
|
2863
2888
|
*/
|
|
2864
2889
|
declare const SCHEMA_PROMPT: string;
|
|
2890
|
+
/**
|
|
2891
|
+
* Actionbook browser automation prompt fragment
|
|
2892
|
+
*/
|
|
2893
|
+
declare const BROWSER_ACTIONBOOK_PROMPT: string;
|
|
2865
2894
|
/**
|
|
2866
2895
|
* Judge system prompt template (for Swarm best_of)
|
|
2867
2896
|
*
|
|
@@ -2903,6 +2932,7 @@ declare function applyTemplate(template: string, variables: Record<string, strin
|
|
|
2903
2932
|
declare function buildWorkerSystemPrompt(options: {
|
|
2904
2933
|
workingDir: string;
|
|
2905
2934
|
systemPrompt?: string;
|
|
2935
|
+
browserPrompt?: string;
|
|
2906
2936
|
schema?: z.ZodType<unknown> | Record<string, unknown>;
|
|
2907
2937
|
mode?: "knowledge" | "swe";
|
|
2908
2938
|
}): string;
|
|
@@ -3069,4 +3099,4 @@ interface SessionsClient {
|
|
|
3069
3099
|
*/
|
|
3070
3100
|
declare function sessions(config?: SessionsConfig): SessionsClient;
|
|
3071
3101
|
|
|
3072
|
-
export { AGENT_REGISTRY, AGENT_TYPES, Agent, type AgentConfig, type AgentOptions, type AgentOverride, type AgentParser, type AgentPluginConfig, type AgentRegistryEntry, type AgentResponse, type AgentRuntimeState, type AgentType, type BaseMeta, type BestOfConfig, type BestOfParams, type BestOfResult, type BrowserProvider, type CandidateCompleteEvent, type CheckpointInfo, type CodexAgentPluginConfig, type ComposioAuthResult, type ComposioConfig, type ComposioConnectionStatus, type ComposioSetup, type DownloadCheckpointOptions, type DownloadFilesOptions, type DownloadSessionOptions, type EmitOption, type EventHandler, type EventName, Evolve, type EvolveConfig, type EvolveEvents, type ExecuteCommandOptions, type FileMap, type FilterConfig, type FilterParams, type GeminiAgentPluginConfig, type GetEventsOptions, type IndexedMeta, type ItemInput, type ItemRetryEvent, JUDGE_PROMPT, type JsonSchema, type JudgeCompleteEvent, type JudgeDecision, type JudgeMeta, type LifecycleEvent, type LifecycleReason, type ListSessionsOptions, type MapConfig, type MapParams, type MarketplaceAgentPluginConfig, type McpConfigInfo, type McpServerConfig, type ModelInfo, type OnCandidateCompleteCallback, type OnItemRetryCallback, type OnJudgeCompleteCallback, type OnVerifierCompleteCallback, type OnWorkerCompleteCallback, type OperationType, type OutputEvent, type OutputResult, Pipeline, type PipelineContext, type PipelineEventMap, type PipelineEvents, type PipelineResult, type ProcessInfo, type Prompt, type PromptFn, RETRY_FEEDBACK_PROMPT, type ReasoningEffort, type ReduceConfig, type ReduceMeta, type ReduceParams, type ReduceResult, type ResolvedStorageConfig, type RetryConfig, type RunCost, type RunOptions, SCHEMA_PROMPT, SWARM_RESULT_BRAND, SYSTEM_PROMPT, type SandboxCommandHandle, type SandboxCommandResult, type SandboxCommands, type SandboxCreateOptions, type SandboxFiles, type SandboxInstance, type SandboxLifecycleState, type SandboxProvider, type SandboxRunOptions, type SandboxSpawnOptions, type SchemaValidationOptions, Semaphore, type SessionCost, type SessionEvent, type SessionInfo, type SessionPage, type SessionStatus, type SessionsClient, type SessionsConfig, type SkillName, type SkillsConfig, type StepCompleteEvent, type StepErrorEvent, type StepEvent, type StepResult, type StepStartEvent, type StorageClient, type StorageConfig, type StreamCallbacks, Swarm, type SwarmConfig, type SwarmResult, SwarmResultList, TerminalPipeline, type ToolsFilter, VALIDATION_PRESETS, VERIFY_PROMPT, type ValidationMode, type VerifierCompleteEvent, type VerifyConfig, type VerifyDecision, type VerifyInfo, type VerifyMeta, WORKSPACE_PROMPT, WORKSPACE_SWE_PROMPT, type WorkerCompleteEvent, type WorkspaceMode, applyTemplate, buildWorkerSystemPrompt, createAgentParser, createClaudeParser, createCodexParser, createDroidParser, createGeminiParser, executeWithRetry, expandPath, getAgentConfig, getMcpSettingsDir, getMcpSettingsPath, isValidAgentType, isZodSchema, jsonSchemaToString, parseNdjsonLine, parseNdjsonOutput, parseQwenOutput, readLocalDir, resolveStorageConfig, saveLocalDir, sessions, storage, writeClaudeMcpConfig, writeCodexMcpConfig, writeDroidGatewaySettings, writeDroidMcpConfig, writeGeminiMcpConfig, writeMcpConfig, writeQwenMcpConfig, zodSchemaToJson };
|
|
3102
|
+
export { AGENT_REGISTRY, AGENT_TYPES, type ActionbookBrowserConfig, Agent, type AgentConfig, type AgentOptions, type AgentOverride, type AgentParser, type AgentPluginConfig, type AgentRegistryEntry, type AgentResponse, type AgentRuntimeState, type AgentType, BROWSER_ACTIONBOOK_PROMPT, type BaseMeta, type BestOfConfig, type BestOfParams, type BestOfResult, type BrowserConfig, type BrowserProvider, type BrowserRuntimeInfo, type CandidateCompleteEvent, type CheckpointInfo, type CodexAgentPluginConfig, type ComposioAuthResult, type ComposioConfig, type ComposioConnectionStatus, type ComposioSetup, type DownloadCheckpointOptions, type DownloadFilesOptions, type DownloadSessionOptions, type EmitOption, type EventHandler, type EventName, Evolve, type EvolveConfig, type EvolveEvents, type ExecuteCommandOptions, type FileMap, type FilterConfig, type FilterParams, type GeminiAgentPluginConfig, type GetEventsOptions, type IndexedMeta, type ItemInput, type ItemRetryEvent, JUDGE_PROMPT, type JsonSchema, type JudgeCompleteEvent, type JudgeDecision, type JudgeMeta, type LifecycleEvent, type LifecycleReason, type ListSessionsOptions, type MapConfig, type MapParams, type MarketplaceAgentPluginConfig, type McpConfigInfo, type McpServerConfig, type ModelInfo, type OnCandidateCompleteCallback, type OnItemRetryCallback, type OnJudgeCompleteCallback, type OnVerifierCompleteCallback, type OnWorkerCompleteCallback, type OperationType, type OutputEvent, type OutputResult, Pipeline, type PipelineContext, type PipelineEventMap, type PipelineEvents, type PipelineResult, type ProcessInfo, type Prompt, type PromptFn, RETRY_FEEDBACK_PROMPT, type ReasoningEffort, type ReduceConfig, type ReduceMeta, type ReduceParams, type ReduceResult, type ResolvedStorageConfig, type RetryConfig, type RunCost, type RunOptions, SCHEMA_PROMPT, SWARM_RESULT_BRAND, SYSTEM_PROMPT, type SandboxCommandHandle, type SandboxCommandResult, type SandboxCommands, type SandboxCreateOptions, type SandboxFiles, type SandboxInstance, type SandboxLifecycleState, type SandboxProvider, type SandboxRunOptions, type SandboxSpawnOptions, type SchemaValidationOptions, Semaphore, type SessionCost, type SessionEvent, type SessionInfo, type SessionPage, type SessionStatus, type SessionsClient, type SessionsConfig, type SkillName, type SkillsConfig, type StepCompleteEvent, type StepErrorEvent, type StepEvent, type StepResult, type StepStartEvent, type StorageClient, type StorageConfig, type StreamCallbacks, Swarm, type SwarmConfig, type SwarmResult, SwarmResultList, TerminalPipeline, type ToolsFilter, VALIDATION_PRESETS, VERIFY_PROMPT, type ValidationMode, type VerifierCompleteEvent, type VerifyConfig, type VerifyDecision, type VerifyInfo, type VerifyMeta, WORKSPACE_PROMPT, WORKSPACE_SWE_PROMPT, type WorkerCompleteEvent, type WorkspaceMode, applyTemplate, buildWorkerSystemPrompt, createAgentParser, createClaudeParser, createCodexParser, createDroidParser, createGeminiParser, executeWithRetry, expandPath, getAgentConfig, getMcpSettingsDir, getMcpSettingsPath, isValidAgentType, isZodSchema, jsonSchemaToString, parseNdjsonLine, parseNdjsonOutput, parseQwenOutput, readLocalDir, resolveStorageConfig, saveLocalDir, sessions, storage, writeClaudeMcpConfig, writeCodexMcpConfig, writeDroidGatewaySettings, writeDroidMcpConfig, writeGeminiMcpConfig, writeMcpConfig, writeQwenMcpConfig, zodSchemaToJson };
|