@evolvingmachines/sdk 0.0.40 → 0.0.42

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.cts CHANGED
@@ -1,6 +1,6 @@
1
+ import { EventEmitter } from 'events';
1
2
  import * as zod from 'zod';
2
3
  import { z } from 'zod';
3
- import { EventEmitter } from 'events';
4
4
  export { E2BConfig, E2BProvider, createE2BProvider } from '@evolvingmachines/e2b';
5
5
  export { DaytonaConfig, DaytonaProvider, createDaytonaProvider } from '@evolvingmachines/daytona';
6
6
  export { ModalConfig, ModalProvider, createModalProvider } from '@evolvingmachines/modal';
@@ -571,6 +571,11 @@ interface AgentOptions {
571
571
  dashboardUrl?: string;
572
572
  config?: BrowserCredentialsConfig;
573
573
  };
574
+ /** Evolve-managed app integrations */
575
+ integrations?: IntegrationsSetup & {
576
+ apiKey: string;
577
+ dashboardUrl?: string;
578
+ };
574
579
  /** Plugins/extensions to install in the sandbox user profile before first run */
575
580
  plugins?: AgentPluginConfig[];
576
581
  /** Skills to enable (e.g., ["pdf", "dev-browser"]) */
@@ -602,11 +607,6 @@ interface AgentOptions {
602
607
  sessionTagPrefix?: string;
603
608
  /** Observability metadata for trace grouping (generic key-value, domain-agnostic) */
604
609
  observability?: Record<string, unknown>;
605
- /**
606
- * Composio Tool Router configuration
607
- * Set via withComposio() - provides access to 1000+ tools
608
- */
609
- composio?: ComposioSetup;
610
610
  /** Resolved storage configuration (set via Evolve.withStorage()) */
611
611
  storage?: ResolvedStorageConfig;
612
612
  }
@@ -749,65 +749,58 @@ interface StreamCallbacks {
749
749
  onLifecycle?: (event: LifecycleEvent) => void;
750
750
  }
751
751
  /**
752
- * Configuration for Composio Tool Router integration
753
- *
754
- * Provides access to 1000+ tools (GitHub, Gmail, Slack, etc.) via MCP.
755
- * Evidence: tool-router/quickstart.mdx
752
+ * Configuration for managed integrations.
756
753
  */
757
- /** Tool filter configuration per toolkit */
758
- type ToolsFilter = string[] | {
754
+ /** Tool filter configuration per app */
755
+ type IntegrationToolsFilter = string[] | {
759
756
  enable: string[];
760
757
  } | {
761
758
  disable: string[];
762
759
  } | {
763
760
  tags: string[];
764
761
  };
765
- interface ComposioConfig {
762
+ interface IntegrationsConfig {
766
763
  /**
767
- * Restrict to specific toolkits
764
+ * Apps to expose to the agent.
768
765
  *
769
766
  * @example
770
- * toolkits: ["github", "gmail", "linear"]
767
+ * apps: ["github", "gmail", "linear"]
771
768
  */
772
- toolkits?: string[];
769
+ apps: string[];
773
770
  /**
774
- * Per-toolkit tool filtering
771
+ * Per-app tool filtering.
775
772
  *
776
773
  * @example
777
774
  * tools: {
778
- * github: ["github_create_issue", "github_list_repos"],
775
+ * github: { enable: ["github_create_issue", "github_list_repos"] },
779
776
  * gmail: { disable: ["gmail_delete_email"] },
780
777
  * slack: { tags: ["readOnlyHint"] }
781
778
  * }
782
779
  */
783
- tools?: Record<string, ToolsFilter>;
780
+ tools?: Record<string, IntegrationToolsFilter>;
784
781
  /**
785
- * API keys for direct authentication (bypasses OAuth)
786
- * For tools that support API key auth (e.g., Stripe, OpenAI)
787
- *
788
- * @example
789
- * keys: { stripe: "sk_live_...", openai: "sk-..." }
782
+ * Pin specific connected accounts by account ID or account label.
783
+ */
784
+ accounts?: Record<string, string[]>;
785
+ /**
786
+ * API keys for apps that use API-key auth.
787
+ * Requires a matching authConfigs entry for each app.
790
788
  */
791
789
  keys?: Record<string, string>;
792
790
  /**
793
- * Custom OAuth auth config IDs for white-labeling
794
- * Created in Composio dashboard
795
- *
796
- * @example
797
- * authConfigs: { github: "ac_your_github_config" }
791
+ * Custom auth config IDs per app.
798
792
  */
799
793
  authConfigs?: Record<string, string>;
800
794
  }
801
795
  /**
802
- * Composio setup for Tool Router integration
803
- *
804
- * Combines user identification with optional configuration.
796
+ * Managed integrations setup.
805
797
  */
806
- interface ComposioSetup {
807
- /** User's unique identifier for Composio session */
798
+ interface IntegrationsSetup extends IntegrationsConfig {
799
+ /**
800
+ * Integration user ID. Use "root" for dashboard-owned/private accounts,
801
+ * or your app's stable end-user ID for per-user accounts.
802
+ */
808
803
  userId: string;
809
- /** Optional Composio configuration */
810
- config?: ComposioConfig;
811
804
  }
812
805
  /**
813
806
  * Storage configuration for .withStorage()
@@ -921,79 +914,54 @@ interface StorageClient {
921
914
  downloadFiles(idOrLatest: string, options?: DownloadFilesOptions): Promise<FileMap>;
922
915
  }
923
916
 
924
- /**
925
- * Composio Auth Helpers
926
- *
927
- * Helper functions for managing Composio authentication in your app's UI.
928
- * Evidence: tool-router/manually-authenticating-users.mdx
929
- */
930
- /**
931
- * Result from getAuthUrl()
932
- */
933
- interface ComposioAuthResult {
934
- /** OAuth/Connect Link URL to redirect user to */
917
+ interface IntegrationAuthParams {
918
+ userId: string;
919
+ app: string;
920
+ accountLabel?: string;
921
+ apiKey?: string;
922
+ dashboardUrl?: string;
923
+ }
924
+ interface IntegrationAuthResult {
935
925
  url: string;
936
- /** Connection request ID for tracking */
937
- connectionId: string;
926
+ accountId?: string;
938
927
  }
939
- /**
940
- * Connection status for a toolkit
941
- */
942
- interface ComposioConnectionStatus {
943
- /** Toolkit slug (e.g., "github", "gmail") */
944
- toolkit: string;
945
- /** Whether the user has an active connection */
946
- connected: boolean;
947
- /** Connected account ID if connected */
928
+ interface IntegrationAccount {
929
+ userId: string;
930
+ app: string;
931
+ appName?: string;
932
+ appIcon?: string;
933
+ accountLabel?: string;
934
+ status: string;
948
935
  accountId?: string;
936
+ updatedAt?: string;
937
+ }
938
+ interface IntegrationAccountListParams {
939
+ userIds: string[];
940
+ app?: string;
941
+ statuses?: string[];
942
+ apiKey?: string;
943
+ dashboardUrl?: string;
944
+ }
945
+ interface IntegrationAccountUpdateParams {
946
+ accountId: string;
947
+ accountLabel?: string;
948
+ apiKey?: string;
949
+ dashboardUrl?: string;
950
+ }
951
+ interface IntegrationAccountDeleteParams {
952
+ accountId: string;
953
+ apiKey?: string;
954
+ dashboardUrl?: string;
955
+ }
956
+ interface IntegrationAccountUpdateResult {
957
+ success: boolean;
958
+ accountId: string;
959
+ accountLabel?: string;
960
+ }
961
+ interface IntegrationAccountDeleteResult {
962
+ success: boolean;
963
+ accountId: string;
949
964
  }
950
- /**
951
- * Get OAuth URL for a toolkit
952
- *
953
- * Returns a Connect Link URL that you can show in your app's UI.
954
- * User completes OAuth, then is redirected back to your app.
955
- *
956
- * @param userId - User's unique identifier
957
- * @param toolkit - Toolkit slug (e.g., "github", "gmail")
958
- * @returns Auth URL and connection ID
959
- *
960
- * @example
961
- * const { url } = await getAuthUrl("user_123", "github");
962
- * // Show button: <a href={url}>Connect GitHub</a>
963
- */
964
- declare function getAuthUrl(userId: string, toolkit: string): Promise<ComposioAuthResult>;
965
- /**
966
- * Get connection status for a user
967
- *
968
- * @param userId - User's unique identifier
969
- * @param toolkit - Optional toolkit slug to check specific connection
970
- * @returns Status map for all toolkits, or boolean if toolkit specified
971
- *
972
- * @example
973
- * // Get all connections
974
- * const status = await getStatus("user_123");
975
- * // { github: true, gmail: false, slack: true }
976
- *
977
- * @example
978
- * // Check single toolkit
979
- * const isConnected = await getStatus("user_123", "github");
980
- * // true
981
- */
982
- declare function getStatus(userId: string, toolkit?: string): Promise<Record<string, boolean> | boolean>;
983
- /**
984
- * Get detailed connection info for a user
985
- *
986
- * Returns array of connections with account IDs.
987
- * More detailed than getStatus() - use when you need account IDs.
988
- *
989
- * @param userId - User's unique identifier
990
- * @returns Array of connection statuses
991
- *
992
- * @example
993
- * const connections = await getConnections("user_123");
994
- * // [{ toolkit: "github", connected: true, accountId: "ca_..." }, ...]
995
- */
996
- declare function getConnections(userId: string): Promise<ComposioConnectionStatus[]>;
997
965
 
998
966
  /**
999
967
  * Unified Agent Implementation
@@ -1505,8 +1473,8 @@ interface EvolveConfig {
1505
1473
  sessionTagPrefix?: string;
1506
1474
  /** Observability metadata for trace grouping (generic key-value, domain-agnostic) */
1507
1475
  observability?: Record<string, unknown>;
1508
- /** Composio user ID and config */
1509
- composio?: ComposioSetup;
1476
+ /** Managed integrations config */
1477
+ integrations?: IntegrationsSetup;
1510
1478
  /** Storage configuration for checkpointing */
1511
1479
  storage?: StorageConfig;
1512
1480
  }
@@ -1649,38 +1617,12 @@ declare class Evolve extends EventEmitter {
1649
1617
  */
1650
1618
  withObservability(meta: Record<string, unknown>): this;
1651
1619
  /**
1652
- * Enable Composio Tool Router for 1000+ tool integrations
1653
- *
1654
- * Provides access to GitHub, Gmail, Slack, Notion, and 1000+ other
1655
- * tools via a single MCP server. Handles authentication automatically.
1656
- *
1657
- * Evidence: tool-router/quickstart.mdx
1658
- *
1659
- * @param userId - Your user's unique identifier
1660
- * @param config - Optional configuration for toolkits, API keys, and auth
1661
- *
1662
- * @example
1663
- * // Basic - all tools, in-chat auth
1664
- * kit.withComposio("user_123")
1665
- *
1666
- * @example
1667
- * // Restrict to specific toolkits
1668
- * kit.withComposio("user_123", { toolkits: ["github", "gmail"] })
1669
- *
1670
- * @example
1671
- * // With API keys for direct auth
1672
- * kit.withComposio("user_123", {
1673
- * toolkits: ["github", "stripe"],
1674
- * keys: { stripe: "sk_live_..." }
1675
- * })
1620
+ * Enable Evolve-managed integrations.
1676
1621
  *
1677
- * @example
1678
- * // With white-label OAuth
1679
- * kit.withComposio("user_123", {
1680
- * authConfigs: { github: "ac_your_oauth_config" }
1681
- * })
1622
+ * Available only in gateway mode. Integration credentials stay server-side; the
1623
+ * sandbox receives an Evolve-scoped MCP proxy.
1682
1624
  */
1683
- withComposio(userId: string, config?: ComposioConfig): this;
1625
+ withIntegrations(config: IntegrationsSetup): this;
1684
1626
  /**
1685
1627
  * Configure storage for checkpoint persistence
1686
1628
  *
@@ -1698,31 +1640,14 @@ declare class Evolve extends EventEmitter {
1698
1640
  * kit.withStorage()
1699
1641
  */
1700
1642
  withStorage(config?: StorageConfig): this;
1701
- /**
1702
- * Static helpers for Composio auth management
1703
- *
1704
- * Use these in your app's settings UI to manage user connections.
1705
- *
1706
- * Evidence: tool-router/manually-authenticating-users.mdx
1707
- *
1708
- * @example
1709
- * // Get OAuth URL for "Connect GitHub" button
1710
- * const { url } = await Evolve.composio.auth("user_123", "github");
1711
- *
1712
- * @example
1713
- * // Check connection status
1714
- * const status = await Evolve.composio.status("user_123");
1715
- * // { github: true, gmail: false, ... }
1716
- *
1717
- * @example
1718
- * // Check single toolkit
1719
- * const isConnected = await Evolve.composio.status("user_123", "github");
1720
- * // true | false
1721
- */
1722
- static composio: {
1723
- auth: typeof getAuthUrl;
1724
- status: typeof getStatus;
1725
- connections: typeof getConnections;
1643
+ /** Static helpers for managed integration auth and observability. */
1644
+ static integrations: {
1645
+ auth: (params: IntegrationAuthParams) => Promise<IntegrationAuthResult>;
1646
+ accounts: {
1647
+ list: (params: IntegrationAccountListParams) => Promise<IntegrationAccount[]>;
1648
+ update: (params: IntegrationAccountUpdateParams) => Promise<IntegrationAccountUpdateResult>;
1649
+ delete: (params: IntegrationAccountDeleteParams) => Promise<IntegrationAccountDeleteResult>;
1650
+ };
1726
1651
  };
1727
1652
  /** Static browser credential client for listing, creating, and deleting saved browser logins. */
1728
1653
  static browserCredentials: typeof browserCredentials;
@@ -1964,8 +1889,8 @@ interface SwarmConfig {
1964
1889
  mcpServers?: Record<string, McpServerConfig>;
1965
1890
  /** Default skills for all operations (per-operation config takes precedence) */
1966
1891
  skills?: SkillName[];
1967
- /** Default Composio configuration for all operations (per-operation config takes precedence) */
1968
- composio?: ComposioSetup;
1892
+ /** Default Integrations configuration for all operations (per-operation config takes precedence) */
1893
+ integrations?: IntegrationsSetup;
1969
1894
  }
1970
1895
  /** Callback for bestOf candidate completion */
1971
1896
  type OnCandidateCompleteCallback = (itemIndex: number, candidateIndex: number, status: "success" | "error") => void;
@@ -1988,10 +1913,10 @@ interface BestOfConfig {
1988
1913
  skills?: SkillName[];
1989
1914
  /** Skills for judge (defaults to skills) */
1990
1915
  judgeSkills?: SkillName[];
1991
- /** Composio config for candidates (defaults to operation composio) */
1992
- composio?: ComposioSetup;
1993
- /** Composio config for judge (defaults to composio) */
1994
- judgeComposio?: ComposioSetup;
1916
+ /** Integrations config for candidates (defaults to operation integrations) */
1917
+ integrations?: IntegrationsSetup;
1918
+ /** Integrations config for judge (defaults to integrations) */
1919
+ judgeIntegrations?: IntegrationsSetup;
1995
1920
  /** Callback when a candidate completes */
1996
1921
  onCandidateComplete?: OnCandidateCompleteCallback;
1997
1922
  /** Callback when judge completes */
@@ -2012,8 +1937,8 @@ interface VerifyConfig {
2012
1937
  verifierMcpServers?: Record<string, McpServerConfig>;
2013
1938
  /** Skills for verifier (defaults to operation skills) */
2014
1939
  verifierSkills?: SkillName[];
2015
- /** Composio config for verifier (defaults to operation composio) */
2016
- verifierComposio?: ComposioSetup;
1940
+ /** Integrations config for verifier (defaults to operation integrations) */
1941
+ verifierIntegrations?: IntegrationsSetup;
2017
1942
  /** Callback invoked after each worker completion (before verification) */
2018
1943
  onWorkerComplete?: OnWorkerCompleteCallback;
2019
1944
  /** Callback invoked after each verifier completion */
@@ -2185,8 +2110,8 @@ interface MapParams<T> {
2185
2110
  mcpServers?: Record<string, McpServerConfig>;
2186
2111
  /** Skills override (replaces swarm default) */
2187
2112
  skills?: SkillName[];
2188
- /** Composio override (replaces swarm default) */
2189
- composio?: ComposioSetup;
2113
+ /** Integrations override (replaces swarm default) */
2114
+ integrations?: IntegrationsSetup;
2190
2115
  /** Optional bestOf configuration for N candidates + judge (mutually exclusive with verify) */
2191
2116
  bestOf?: BestOfConfig;
2192
2117
  /** Optional verify configuration for LLM-as-judge quality verification with retry (mutually exclusive with bestOf) */
@@ -2220,8 +2145,8 @@ interface FilterParams<T> {
2220
2145
  mcpServers?: Record<string, McpServerConfig>;
2221
2146
  /** Skills override (replaces swarm default) */
2222
2147
  skills?: SkillName[];
2223
- /** Composio override (replaces swarm default) */
2224
- composio?: ComposioSetup;
2148
+ /** Integrations override (replaces swarm default) */
2149
+ integrations?: IntegrationsSetup;
2225
2150
  /** Optional verify configuration for LLM-as-judge quality verification with retry */
2226
2151
  verify?: VerifyConfig;
2227
2152
  /** Per-item retry configuration. Typed to allow retryOn access to SwarmResult fields. */
@@ -2251,8 +2176,8 @@ interface ReduceParams<T> {
2251
2176
  mcpServers?: Record<string, McpServerConfig>;
2252
2177
  /** Skills override (replaces swarm default) */
2253
2178
  skills?: SkillName[];
2254
- /** Composio override (replaces swarm default) */
2255
- composio?: ComposioSetup;
2179
+ /** Integrations override (replaces swarm default) */
2180
+ integrations?: IntegrationsSetup;
2256
2181
  /** Optional verify configuration for LLM-as-judge quality verification with retry */
2257
2182
  verify?: VerifyConfig;
2258
2183
  /** Retry configuration (retries entire reduce on error). Typed to allow retryOn access to ReduceResult fields. */
@@ -2268,7 +2193,7 @@ interface BestOfParams<T> {
2268
2193
  prompt: string;
2269
2194
  /** Optional operation name for observability */
2270
2195
  name?: string;
2271
- /** BestOf configuration (n, judgeCriteria, taskAgents, judgeAgent, mcpServers, skills, composio) */
2196
+ /** BestOf configuration (n, judgeCriteria, taskAgents, judgeAgent, mcpServers, skills, integrations) */
2272
2197
  config: BestOfConfig;
2273
2198
  /** Optional system prompt */
2274
2199
  systemPrompt?: string;
@@ -2458,8 +2383,8 @@ interface BaseStepConfig {
2458
2383
  mcpServers?: Record<string, McpServerConfig>;
2459
2384
  /** Skills override (replaces swarm default for this step) */
2460
2385
  skills?: SkillName[];
2461
- /** Composio override (replaces swarm default for this step) */
2462
- composio?: ComposioSetup;
2386
+ /** Integrations override (replaces swarm default for this step) */
2387
+ integrations?: IntegrationsSetup;
2463
2388
  /** Timeout in ms */
2464
2389
  timeoutMs?: number;
2465
2390
  }
@@ -3220,4 +3145,4 @@ interface SessionsClient {
3220
3145
  */
3221
3146
  declare function sessions(config?: SessionsConfig): SessionsClient;
3222
3147
 
3223
- 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 BrowserProvider, type BrowserReplay, type BrowserReplayOptions, 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 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, 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, browserCredentials, 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 };
3148
+ 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 BrowserProvider, type BrowserReplay, type BrowserReplayOptions, type BrowserRuntimeInfo, type CandidateCompleteEvent, type CheckpointInfo, type CodexAgentPluginConfig, 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, 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 };