@evolvingmachines/sdk 0.0.50 → 0.0.52

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.d.ts CHANGED
@@ -285,6 +285,201 @@ interface OutputEvent {
285
285
  update: SessionUpdate;
286
286
  }
287
287
 
288
+ /**
289
+ * Agent Registry
290
+ *
291
+ * Single source of truth for agent-specific behavior.
292
+ * All differences between agents are data, not code.
293
+ *
294
+ * Evidence: sdk-rewrite-v3.md Agent Registry section
295
+ */
296
+
297
+ /** Model configuration */
298
+ interface ModelInfo {
299
+ /** Model alias (short name used with --model) */
300
+ alias: string;
301
+ /** Full model ID */
302
+ modelId: string;
303
+ /** What this model is best for */
304
+ description: string;
305
+ }
306
+ /** MCP configuration for an agent */
307
+ interface McpConfigInfo {
308
+ /** Settings directory (e.g., "~/.claude") */
309
+ settingsDir: string;
310
+ /** Config filename (e.g., "settings.json" or "config.toml") */
311
+ filename: string;
312
+ /** Config format */
313
+ format: "json" | "toml";
314
+ /** Whether to use workingDir for project-level config (Claude only) */
315
+ projectConfig?: boolean;
316
+ }
317
+ /** Options for building agent commands */
318
+ interface BuildCommandOptions {
319
+ prompt: string;
320
+ model: string;
321
+ isResume: boolean;
322
+ sessionId?: string;
323
+ reasoningEffort?: string;
324
+ isDirectMode?: boolean;
325
+ /** Skills enabled for this run */
326
+ skills?: string[];
327
+ }
328
+ interface AgentRegistryEntry {
329
+ /** Sandbox image/template identifier (provider maps to its own concept) */
330
+ image: string;
331
+ /** Environment variable name for API key */
332
+ apiKeyEnv: string;
333
+ /** Environment variable name for OAuth (file path or token depending on agent) */
334
+ oauthEnv?: string;
335
+ /** OAuth credentials filename (e.g., "auth.json" for Codex, "oauth_creds.json" for Gemini) */
336
+ oauthFileName?: string;
337
+ /** Environment variable to set when OAuth is active (e.g., GOOGLE_GENAI_USE_GCA=true for Gemini) */
338
+ oauthActivationEnv?: {
339
+ key: string;
340
+ value: string;
341
+ };
342
+ /** Environment variable name for base URL, if this CLI supports one */
343
+ baseUrlEnv?: string;
344
+ /** Default model alias */
345
+ defaultModel: string;
346
+ /** Available models for this agent */
347
+ models: ModelInfo[];
348
+ /** System prompt filename (e.g., "CLAUDE.md") */
349
+ systemPromptFile: string;
350
+ /** MCP configuration */
351
+ mcpConfig: McpConfigInfo;
352
+ /** Build the CLI command for this agent */
353
+ buildCommand: (opts: BuildCommandOptions) => string;
354
+ /** Extra setup step (e.g., codex login) */
355
+ setupCommand?: string;
356
+ /** Gateway path prefix for CLIs that use a provider-native passthrough endpoint */
357
+ gatewayPath?: string;
358
+ /** Default base URL for direct mode (only needed if provider requires specific endpoint, e.g., Qwen → Dashscope) */
359
+ defaultBaseUrl?: string;
360
+ /** Available beta headers for this agent (for reference) */
361
+ availableBetas?: Record<string, string>;
362
+ /** Skills configuration for this agent */
363
+ skillsConfig: SkillsConfig;
364
+ /** Multi-provider env mapping: model prefix → keyEnv (for CLIs like OpenCode that resolve provider from model string) */
365
+ providerEnvMap?: Record<string, {
366
+ keyEnv: string;
367
+ }>;
368
+ /** Env var for inline config (e.g., OPENCODE_CONFIG_CONTENT) — used in gateway mode to set provider base URLs */
369
+ gatewayConfigEnv?: string;
370
+ /** Gateway-only model aliases for CLIs whose native model IDs differ from LiteLLM route names */
371
+ gatewayModelAliases?: Record<string, string>;
372
+ /** Direct-mode model aliases for CLIs whose public model names differ from CLI-native model IDs */
373
+ directModelAliases?: Record<string, string>;
374
+ /** Do not set provider API key env in gateway mode (used when routing via generated settings instead) */
375
+ skipApiKeyEnvInGateway?: boolean;
376
+ /** Dedicated Droid settings file for Evolve gateway custom model routing */
377
+ droidGatewaySettings?: {
378
+ settingsPath: string;
379
+ displayName: string;
380
+ provider: "generic-chat-completion-api" | "openai" | "anthropic";
381
+ maxOutputTokens?: number;
382
+ };
383
+ /** Environment variable that CLI reads for custom outbound HTTP headers */
384
+ customHeadersEnv?: string;
385
+ /** Format for custom headers env var: "newline" (Claude) or "comma" (Gemini). Default: "newline" */
386
+ customHeadersFormat?: "newline" | "comma";
387
+ /**
388
+ * Per-env-var spend tracking for CLIs that support env_http_headers in config
389
+ * (e.g., Codex TOML). Maps LiteLLM header names to env var names that the CLI
390
+ * reads at request time. Alternative to customHeadersEnv for agents without a
391
+ * single custom-headers env var.
392
+ */
393
+ spendTrackingEnvs?: {
394
+ /** Env var name for x-litellm-customer-id value */
395
+ sessionTagEnv: string;
396
+ /** Env var name for x-litellm-tags value */
397
+ runTagEnv: string;
398
+ };
399
+ /**
400
+ * Config-file-based spend tracking for CLIs that read custom headers from a
401
+ * JSON settings file (e.g., Qwen settings.json → model.generationConfig.customHeaders).
402
+ * The SDK writes headers to this file before each run.
403
+ * Source-verified: Qwen reads customHeaders from settings.json, not env vars.
404
+ */
405
+ spendTrackingJsonConfig?: {
406
+ /** JSON path to the customHeaders object (dot-separated) */
407
+ headersPath: string;
408
+ };
409
+ /**
410
+ * TOML provider-based spend tracking for CLIs that read custom_headers from a
411
+ * provider entry in config.toml (e.g., Kimi Code).
412
+ * The SDK writes a provider+model entry with custom_headers before each run.
413
+ * Source-verified: Kimi Code reads custom_headers from
414
+ * providers[name].custom_headers in ~/.kimi-code/config.toml.
415
+ */
416
+ spendTrackingTomlProvider?: {
417
+ /** Config file path (e.g., "~/.kimi-code/config.toml") */
418
+ configPath: string;
419
+ /** Provider name in config (e.g., "evolve-gateway") */
420
+ providerName: string;
421
+ /** Model entry name (e.g., "evolve-default") */
422
+ modelName: string;
423
+ /** Max context size for the model entry */
424
+ maxContextSize: number;
425
+ };
426
+ /** Additional directories to include in checkpoint tar (beyond mcpConfig.settingsDir).
427
+ * Used for agents like OpenCode that spread state across XDG directories. */
428
+ checkpointDirs?: string[];
429
+ /** Additional relative paths to exclude from checkpoint tar. */
430
+ checkpointExcludes?: string[];
431
+ }
432
+ /**
433
+ * Registry of all supported agents.
434
+ *
435
+ * Each agent defines a buildCommand function that constructs the CLI command.
436
+ * This is type-safe and handles conditional logic cleanly.
437
+ */
438
+ declare const AGENT_REGISTRY: Record<AgentType, AgentRegistryEntry>;
439
+ /**
440
+ * Get registry entry for an agent type
441
+ */
442
+ declare function getAgentConfig(agentType: AgentType): AgentRegistryEntry;
443
+ /**
444
+ * Check if an agent type is valid
445
+ */
446
+ declare function isValidAgentType(type: string): type is AgentType;
447
+ /**
448
+ * Expand path with ~ to /home/user
449
+ */
450
+ declare function expandPath(path: string): string;
451
+ /**
452
+ * Get MCP settings path for an agent
453
+ */
454
+ declare function getMcpSettingsPath(agentType: AgentType): string;
455
+ /**
456
+ * Get MCP settings directory for an agent
457
+ */
458
+ declare function getMcpSettingsDir(agentType: AgentType): string;
459
+
460
+ interface ManagedSecretRef {
461
+ name: string;
462
+ as?: string;
463
+ }
464
+ interface ManagedSecretMetadata {
465
+ id: string;
466
+ name: string;
467
+ allowedHosts: string[];
468
+ allowedPathPrefixes: string[];
469
+ allowedMethods: string[];
470
+ createdAt: string;
471
+ updatedAt: string;
472
+ lastUsedAt: string | null;
473
+ }
474
+ interface ManagedSecretsClientConfig {
475
+ apiKey?: string;
476
+ dashboardUrl?: string;
477
+ }
478
+ interface ManagedSecretsClient {
479
+ list(): Promise<ManagedSecretMetadata[]>;
480
+ }
481
+ declare function managedSecrets(config?: ManagedSecretsClientConfig): ManagedSecretsClient;
482
+
288
483
  /** Result of a completed sandbox command */
289
484
  interface SandboxCommandResult {
290
485
  exitCode: number;
@@ -555,6 +750,12 @@ interface AgentOptions {
555
750
  sandboxProvider?: SandboxProvider;
556
751
  /** Additional environment secrets */
557
752
  secrets?: Record<string, string>;
753
+ /** Dashboard-stored managed secrets exposed through opaque env vars. */
754
+ managedSecrets?: {
755
+ secrets: ManagedSecretRef[];
756
+ apiKey: string;
757
+ dashboardUrl?: string;
758
+ };
558
759
  /** Existing sandbox ID to connect to */
559
760
  sandboxId?: string;
560
761
  /** Working directory path */
@@ -589,6 +790,11 @@ interface AgentOptions {
589
790
  apiKey: string;
590
791
  dashboardUrl?: string;
591
792
  };
793
+ /** Evolve-managed provider routing tokens for dashboard-stored BYOK provider keys. */
794
+ providerRouting?: {
795
+ apiKey: string;
796
+ dashboardUrl?: string;
797
+ };
592
798
  /** Plugins/extensions to install in the sandbox user profile before first run */
593
799
  plugins?: AgentPluginConfig[];
594
800
  /** Skills to enable (e.g., ["pdf", "dev-browser"]) */
@@ -1014,6 +1220,9 @@ declare class Agent {
1014
1220
  private agentState;
1015
1221
  private droidSessionId?;
1016
1222
  private managedBrowserSession?;
1223
+ private providerRuntimeToken?;
1224
+ private managedSecretRuntimeToken?;
1225
+ private managedSecretProxy?;
1017
1226
  private readonly skills?;
1018
1227
  private readonly storage?;
1019
1228
  private lastCheckpointId?;
@@ -1041,9 +1250,17 @@ declare class Agent {
1041
1250
  * Build environment variables for sandbox
1042
1251
  */
1043
1252
  private buildEnvironmentVariables;
1253
+ private validatedUserSecretsForEnvironment;
1044
1254
  private ensureManagedBrowserSession;
1255
+ private ensureProviderRuntimeToken;
1256
+ private bindProviderRuntimeToken;
1045
1257
  private setupManagedBrowser;
1046
1258
  private closeManagedBrowserSession;
1259
+ private closeProviderRuntimeToken;
1260
+ private ensureManagedSecretRuntimeToken;
1261
+ private bindManagedSecretRuntimeToken;
1262
+ private setupManagedSecretEgress;
1263
+ private closeManagedSecretRuntimeToken;
1047
1264
  /**
1048
1265
  * Build the inline gateway config JSON for agents using gatewayConfigEnv
1049
1266
  * (e.g., OpenCode OPENCODE_CONFIG_CONTENT). Centralizes the provider config
@@ -1056,6 +1273,14 @@ declare class Agent {
1056
1273
  * Source-verified: model.headers → provider.ts:1061 → llm.ts:221 → HTTP request.
1057
1274
  */
1058
1275
  private buildGatewayConfigJson;
1276
+ private activeProviderRuntimeToken;
1277
+ private requireActiveProviderRuntimeToken;
1278
+ private ensureSessionLogger;
1279
+ private flushSessionLoggerWithTimeout;
1280
+ private requiresPreRunDashboardIngest;
1281
+ private providerRuntimeHeaderUpdates;
1282
+ private shouldExposeProviderRuntimeTokenEnv;
1283
+ private buildProviderRuntimeProcessEnvs;
1059
1284
  /**
1060
1285
  * Build per-run env overrides for spend tracking.
1061
1286
  * Merges session + run headers into the custom headers env var,
@@ -1063,6 +1288,7 @@ declare class Agent {
1063
1288
  * Passed to spawn() so each .run() gets a unique run tag.
1064
1289
  */
1065
1290
  private buildRunEnvs;
1291
+ private writeCodexGatewayProviderConfig;
1066
1292
  private captureDroidSession;
1067
1293
  private extractDroidSessionId;
1068
1294
  private findDroidSessionId;
@@ -1074,7 +1300,9 @@ declare class Agent {
1074
1300
  * Agent-specific authentication setup
1075
1301
  */
1076
1302
  private setupAgentAuth;
1303
+ private writeGeminiGatewayAuthSettings;
1077
1304
  private setupAgentPlugins;
1305
+ private assertProviderRuntimeDoesNotExposeGatewayKey;
1078
1306
  /**
1079
1307
  * Setup workspace structure and files
1080
1308
  *
@@ -1493,6 +1721,7 @@ interface EvolveConfig {
1493
1721
  workingDirectory?: string;
1494
1722
  workspaceMode?: WorkspaceMode;
1495
1723
  secrets?: Record<string, string>;
1724
+ managedSecrets?: ManagedSecretRef[];
1496
1725
  sandboxId?: string;
1497
1726
  systemPrompt?: string;
1498
1727
  context?: FileMap;
@@ -1565,6 +1794,12 @@ declare class Evolve extends EventEmitter {
1565
1794
  * Add environment secrets
1566
1795
  */
1567
1796
  withSecrets(secrets: Record<string, string>): this;
1797
+ /**
1798
+ * Attach Dashboard-stored managed secrets to the sandbox.
1799
+ *
1800
+ * The sandbox receives opaque env var values; raw secret values stay server-side.
1801
+ */
1802
+ withManagedSecrets(secrets: ManagedSecretRef[]): this;
1568
1803
  /**
1569
1804
  * Connect to existing session
1570
1805
  */
@@ -1693,6 +1928,8 @@ declare class Evolve extends EventEmitter {
1693
1928
  static browserCredentials: typeof browserCredentials;
1694
1929
  /** Static browser profile client for listing and deleting reusable browser profiles. */
1695
1930
  static browserProfiles: typeof browserProfiles;
1931
+ /** Static managed secrets client for listing Dashboard-stored secret metadata. */
1932
+ static managedSecrets: typeof managedSecrets;
1696
1933
  /**
1697
1934
  * Initialize agent on first use
1698
1935
  */
@@ -2667,178 +2904,6 @@ declare class TerminalPipeline<T> extends Pipeline<T> {
2667
2904
  reduce(): never;
2668
2905
  }
2669
2906
 
2670
- /**
2671
- * Agent Registry
2672
- *
2673
- * Single source of truth for agent-specific behavior.
2674
- * All differences between agents are data, not code.
2675
- *
2676
- * Evidence: sdk-rewrite-v3.md Agent Registry section
2677
- */
2678
-
2679
- /** Model configuration */
2680
- interface ModelInfo {
2681
- /** Model alias (short name used with --model) */
2682
- alias: string;
2683
- /** Full model ID */
2684
- modelId: string;
2685
- /** What this model is best for */
2686
- description: string;
2687
- }
2688
- /** MCP configuration for an agent */
2689
- interface McpConfigInfo {
2690
- /** Settings directory (e.g., "~/.claude") */
2691
- settingsDir: string;
2692
- /** Config filename (e.g., "settings.json" or "config.toml") */
2693
- filename: string;
2694
- /** Config format */
2695
- format: "json" | "toml";
2696
- /** Whether to use workingDir for project-level config (Claude only) */
2697
- projectConfig?: boolean;
2698
- }
2699
- /** Options for building agent commands */
2700
- interface BuildCommandOptions {
2701
- prompt: string;
2702
- model: string;
2703
- isResume: boolean;
2704
- sessionId?: string;
2705
- reasoningEffort?: string;
2706
- isDirectMode?: boolean;
2707
- /** Skills enabled for this run */
2708
- skills?: string[];
2709
- }
2710
- interface AgentRegistryEntry {
2711
- /** Sandbox image/template identifier (provider maps to its own concept) */
2712
- image: string;
2713
- /** Environment variable name for API key */
2714
- apiKeyEnv: string;
2715
- /** Environment variable name for OAuth (file path or token depending on agent) */
2716
- oauthEnv?: string;
2717
- /** OAuth credentials filename (e.g., "auth.json" for Codex, "oauth_creds.json" for Gemini) */
2718
- oauthFileName?: string;
2719
- /** Environment variable to set when OAuth is active (e.g., GOOGLE_GENAI_USE_GCA=true for Gemini) */
2720
- oauthActivationEnv?: {
2721
- key: string;
2722
- value: string;
2723
- };
2724
- /** Environment variable name for base URL, if this CLI supports one */
2725
- baseUrlEnv?: string;
2726
- /** Default model alias */
2727
- defaultModel: string;
2728
- /** Available models for this agent */
2729
- models: ModelInfo[];
2730
- /** System prompt filename (e.g., "CLAUDE.md") */
2731
- systemPromptFile: string;
2732
- /** MCP configuration */
2733
- mcpConfig: McpConfigInfo;
2734
- /** Build the CLI command for this agent */
2735
- buildCommand: (opts: BuildCommandOptions) => string;
2736
- /** Extra setup step (e.g., codex login) */
2737
- setupCommand?: string;
2738
- /** Gateway path prefix for CLIs that use a provider-native passthrough endpoint */
2739
- gatewayPath?: string;
2740
- /** Default base URL for direct mode (only needed if provider requires specific endpoint, e.g., Qwen → Dashscope) */
2741
- defaultBaseUrl?: string;
2742
- /** Available beta headers for this agent (for reference) */
2743
- availableBetas?: Record<string, string>;
2744
- /** Skills configuration for this agent */
2745
- skillsConfig: SkillsConfig;
2746
- /** Multi-provider env mapping: model prefix → keyEnv (for CLIs like OpenCode that resolve provider from model string) */
2747
- providerEnvMap?: Record<string, {
2748
- keyEnv: string;
2749
- }>;
2750
- /** Env var for inline config (e.g., OPENCODE_CONFIG_CONTENT) — used in gateway mode to set provider base URLs */
2751
- gatewayConfigEnv?: string;
2752
- /** Gateway-only model aliases for CLIs whose native model IDs differ from LiteLLM route names */
2753
- gatewayModelAliases?: Record<string, string>;
2754
- /** Direct-mode model aliases for CLIs whose public model names differ from CLI-native model IDs */
2755
- directModelAliases?: Record<string, string>;
2756
- /** Do not set provider API key env in gateway mode (used when routing via generated settings instead) */
2757
- skipApiKeyEnvInGateway?: boolean;
2758
- /** Dedicated Droid settings file for Evolve gateway custom model routing */
2759
- droidGatewaySettings?: {
2760
- settingsPath: string;
2761
- displayName: string;
2762
- provider: "generic-chat-completion-api" | "openai" | "anthropic";
2763
- maxOutputTokens?: number;
2764
- };
2765
- /** Environment variable that CLI reads for custom outbound HTTP headers */
2766
- customHeadersEnv?: string;
2767
- /** Format for custom headers env var: "newline" (Claude) or "comma" (Gemini). Default: "newline" */
2768
- customHeadersFormat?: "newline" | "comma";
2769
- /**
2770
- * Per-env-var spend tracking for CLIs that support env_http_headers in config
2771
- * (e.g., Codex TOML). Maps LiteLLM header names to env var names that the CLI
2772
- * reads at request time. Alternative to customHeadersEnv for agents without a
2773
- * single custom-headers env var.
2774
- */
2775
- spendTrackingEnvs?: {
2776
- /** Env var name for x-litellm-customer-id value */
2777
- sessionTagEnv: string;
2778
- /** Env var name for x-litellm-tags value */
2779
- runTagEnv: string;
2780
- };
2781
- /**
2782
- * Config-file-based spend tracking for CLIs that read custom headers from a
2783
- * JSON settings file (e.g., Qwen settings.json → model.generationConfig.customHeaders).
2784
- * The SDK writes headers to this file before each run.
2785
- * Source-verified: Qwen reads customHeaders from settings.json, not env vars.
2786
- */
2787
- spendTrackingJsonConfig?: {
2788
- /** JSON path to the customHeaders object (dot-separated) */
2789
- headersPath: string;
2790
- };
2791
- /**
2792
- * TOML provider-based spend tracking for CLIs that read custom_headers from a
2793
- * provider entry in config.toml (e.g., Kimi Code).
2794
- * The SDK writes a provider+model entry with custom_headers before each run.
2795
- * Source-verified: Kimi Code reads custom_headers from
2796
- * providers[name].custom_headers in ~/.kimi-code/config.toml.
2797
- */
2798
- spendTrackingTomlProvider?: {
2799
- /** Config file path (e.g., "~/.kimi-code/config.toml") */
2800
- configPath: string;
2801
- /** Provider name in config (e.g., "evolve-gateway") */
2802
- providerName: string;
2803
- /** Model entry name (e.g., "evolve-default") */
2804
- modelName: string;
2805
- /** Max context size for the model entry */
2806
- maxContextSize: number;
2807
- };
2808
- /** Additional directories to include in checkpoint tar (beyond mcpConfig.settingsDir).
2809
- * Used for agents like OpenCode that spread state across XDG directories. */
2810
- checkpointDirs?: string[];
2811
- /** Additional relative paths to exclude from checkpoint tar. */
2812
- checkpointExcludes?: string[];
2813
- }
2814
- /**
2815
- * Registry of all supported agents.
2816
- *
2817
- * Each agent defines a buildCommand function that constructs the CLI command.
2818
- * This is type-safe and handles conditional logic cleanly.
2819
- */
2820
- declare const AGENT_REGISTRY: Record<AgentType, AgentRegistryEntry>;
2821
- /**
2822
- * Get registry entry for an agent type
2823
- */
2824
- declare function getAgentConfig(agentType: AgentType): AgentRegistryEntry;
2825
- /**
2826
- * Check if an agent type is valid
2827
- */
2828
- declare function isValidAgentType(type: string): type is AgentType;
2829
- /**
2830
- * Expand path with ~ to /home/user
2831
- */
2832
- declare function expandPath(path: string): string;
2833
- /**
2834
- * Get MCP settings path for an agent
2835
- */
2836
- declare function getMcpSettingsPath(agentType: AgentType): string;
2837
- /**
2838
- * Get MCP settings directory for an agent
2839
- */
2840
- declare function getMcpSettingsDir(agentType: AgentType): string;
2841
-
2842
2907
  /**
2843
2908
  * MCP JSON Configuration Writer
2844
2909
  *
@@ -3189,4 +3254,4 @@ interface SessionsClient {
3189
3254
  */
3190
3255
  declare function sessions(config?: SessionsConfig): SessionsClient;
3191
3256
 
3192
- export { AGENT_REGISTRY, AGENT_TYPES, type ActionbookBrowserConfig, Agent, type AgentBrowserConfig, type AgentConfig, type AgentOptions, type AgentOverride, type AgentParser, type AgentPluginConfig, type AgentRegistryEntry, type AgentResponse, type AgentRuntimeState, type AgentType, BROWSER_ACTIONBOOK_PROMPT, BROWSER_LOGIN_MCP_SERVER_NAME, type BaseMeta, type BestOfConfig, type BestOfParams, type BestOfResult, type BrowserConfig, type BrowserCredentialCreateInput, type BrowserCredentialDeleteInput, type BrowserCredentialListOptions, type BrowserCredentialMetadata, type BrowserCredentialScopeEntry, BrowserCredentialsClient, type BrowserCredentialsClientConfig, type BrowserCredentialsConfig, type BrowserProfileDeleteInput, type BrowserProfileMetadata, BrowserProfilesClient, type BrowserProfilesClientConfig, type BrowserProvider, type BrowserReplay, type BrowserReplayOptions, type BrowserRuntimeInfo, type CandidateCompleteEvent, type CheckpointInfo, type CodexAgentPluginConfig, type DefaultBrowserConfig, 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 IntegrationAccount, type IntegrationAccountDeleteParams, type IntegrationAccountDeleteResult, type IntegrationAccountListParams, type IntegrationAccountUpdateParams, type IntegrationAccountUpdateResult, type IntegrationAuthParams, type IntegrationAuthResult, type IntegrationToolsFilter, type IntegrationsConfig, type IntegrationsSetup, type ItemInput, type ItemRetryEvent, JUDGE_PROMPT, type JsonSchema, type JudgeCompleteEvent, type JudgeDecision, type JudgeMeta, type LifecycleEvent, type LifecycleReason, type ListSessionsOptions, type ManagedBrowserProvider, 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, 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, browserCredentials, browserProfiles, 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 };
3257
+ export { AGENT_REGISTRY, AGENT_TYPES, type ActionbookBrowserConfig, Agent, type AgentBrowserConfig, type AgentConfig, type AgentOptions, type AgentOverride, type AgentParser, type AgentPluginConfig, type AgentRegistryEntry, type AgentResponse, type AgentRuntimeState, type AgentType, BROWSER_ACTIONBOOK_PROMPT, BROWSER_LOGIN_MCP_SERVER_NAME, type BaseMeta, type BestOfConfig, type BestOfParams, type BestOfResult, type BrowserConfig, type BrowserCredentialCreateInput, type BrowserCredentialDeleteInput, type BrowserCredentialListOptions, type BrowserCredentialMetadata, type BrowserCredentialScopeEntry, BrowserCredentialsClient, type BrowserCredentialsClientConfig, type BrowserCredentialsConfig, type BrowserProfileDeleteInput, type BrowserProfileMetadata, BrowserProfilesClient, type BrowserProfilesClientConfig, type BrowserProvider, type BrowserReplay, type BrowserReplayOptions, type BrowserRuntimeInfo, type CandidateCompleteEvent, type CheckpointInfo, type CodexAgentPluginConfig, type DefaultBrowserConfig, 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 IntegrationAccount, type IntegrationAccountDeleteParams, type IntegrationAccountDeleteResult, type IntegrationAccountListParams, type IntegrationAccountUpdateParams, type IntegrationAccountUpdateResult, type IntegrationAuthParams, type IntegrationAuthResult, type IntegrationToolsFilter, type IntegrationsConfig, type IntegrationsSetup, type ItemInput, type ItemRetryEvent, JUDGE_PROMPT, type JsonSchema, type JudgeCompleteEvent, type JudgeDecision, type JudgeMeta, type LifecycleEvent, type LifecycleReason, type ListSessionsOptions, type ManagedBrowserProvider, type ManagedSecretMetadata, type ManagedSecretRef, type ManagedSecretsClient, type ManagedSecretsClientConfig, 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, 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, browserCredentials, browserProfiles, buildWorkerSystemPrompt, createAgentParser, createClaudeParser, createCodexParser, createDroidParser, createGeminiParser, executeWithRetry, expandPath, getAgentConfig, getMcpSettingsDir, getMcpSettingsPath, isValidAgentType, isZodSchema, jsonSchemaToString, managedSecrets, parseNdjsonLine, parseNdjsonOutput, parseQwenOutput, readLocalDir, resolveStorageConfig, saveLocalDir, sessions, storage, writeClaudeMcpConfig, writeCodexMcpConfig, writeDroidGatewaySettings, writeDroidMcpConfig, writeGeminiMcpConfig, writeMcpConfig, writeQwenMcpConfig, zodSchemaToJson };