@evolvingmachines/sdk 0.0.20 → 0.0.21

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
@@ -549,6 +549,29 @@ interface ExecuteCommandOptions {
549
549
  /** Run in background (default: false) */
550
550
  background?: boolean;
551
551
  }
552
+ /** High-level sandbox lifecycle state */
553
+ type SandboxLifecycleState = "booting" | "error" | "ready" | "running" | "paused" | "stopped";
554
+ /** High-level agent runtime state */
555
+ type AgentRuntimeState = "idle" | "running" | "interrupted" | "error";
556
+ /** Lifecycle transition reason */
557
+ 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";
558
+ /** Lifecycle event emitted by the runtime */
559
+ interface LifecycleEvent {
560
+ sandboxId: string | null;
561
+ sandbox: SandboxLifecycleState;
562
+ agent: AgentRuntimeState;
563
+ timestamp: string;
564
+ reason: LifecycleReason;
565
+ }
566
+ /** Snapshot of current runtime status */
567
+ interface SessionStatus {
568
+ sandboxId: string | null;
569
+ sandbox: SandboxLifecycleState;
570
+ agent: AgentRuntimeState;
571
+ activeProcessId: string | null;
572
+ hasRun: boolean;
573
+ timestamp: string;
574
+ }
552
575
  /** Response from run() and executeCommand() */
553
576
  interface AgentResponse {
554
577
  /** Sandbox ID for session management */
@@ -579,6 +602,8 @@ interface StreamCallbacks {
579
602
  onStderr?: (data: string) => void;
580
603
  /** Called for each parsed content event */
581
604
  onContent?: (event: OutputEvent) => void;
605
+ /** Called for sandbox/agent lifecycle transitions */
606
+ onLifecycle?: (event: LifecycleEvent) => void;
582
607
  }
583
608
  /**
584
609
  * Configuration for Composio Tool Router integration
@@ -740,12 +765,25 @@ declare class Agent {
740
765
  private lastRunTimestamp?;
741
766
  private readonly registry;
742
767
  private sessionLogger?;
768
+ private activeCommand?;
769
+ private activeProcessId;
770
+ private activeOperationId;
771
+ private activeOperationKind;
772
+ private nextOperationId;
773
+ private interruptedOperations;
774
+ private sandboxState;
775
+ private agentState;
743
776
  private readonly skills?;
744
777
  private readonly zodSchema?;
745
778
  private readonly jsonSchema?;
746
779
  private readonly schemaOptions?;
747
780
  private readonly compiledValidator?;
748
781
  constructor(agentConfig: ResolvedAgentConfig, options?: AgentOptions);
782
+ private emitLifecycle;
783
+ private invalidateActiveOperation;
784
+ private beginOperation;
785
+ private finalizeOperation;
786
+ private watchBackgroundOperation;
749
787
  /**
750
788
  * Create Ajv validator instance with configured options
751
789
  */
@@ -753,7 +791,7 @@ declare class Agent {
753
791
  /**
754
792
  * Get or create sandbox instance
755
793
  */
756
- getSandbox(): Promise<SandboxInstance>;
794
+ getSandbox(callbacks?: StreamCallbacks): Promise<SandboxInstance>;
757
795
  /**
758
796
  * Build environment variables for sandbox
759
797
  */
@@ -827,15 +865,23 @@ declare class Agent {
827
865
  /**
828
866
  * Pause sandbox
829
867
  */
830
- pause(): Promise<void>;
868
+ pause(callbacks?: StreamCallbacks): Promise<void>;
831
869
  /**
832
870
  * Resume sandbox
833
871
  */
834
- resume(): Promise<void>;
872
+ resume(callbacks?: StreamCallbacks): Promise<void>;
873
+ /**
874
+ * Interrupt active command without killing the sandbox.
875
+ */
876
+ interrupt(callbacks?: StreamCallbacks): Promise<boolean>;
877
+ /**
878
+ * Get current runtime status for sandbox and agent.
879
+ */
880
+ status(): SessionStatus;
835
881
  /**
836
882
  * Kill sandbox (terminates all processes)
837
883
  */
838
- kill(): Promise<void>;
884
+ kill(callbacks?: StreamCallbacks): Promise<void>;
839
885
  /**
840
886
  * Get host URL for a port
841
887
  */
@@ -995,17 +1041,17 @@ declare function parseNdjsonOutput(agentType: AgentType, output: string): Output
995
1041
  /**
996
1042
  * Evolve events
997
1043
  *
998
- * Reduced from 5 to 3:
1044
+ * Runtime streams:
999
1045
  * - stdout: Raw NDJSON lines
1000
1046
  * - stderr: Process stderr
1001
1047
  * - content: Parsed OutputEvent
1002
- *
1003
- * Removed: update, error (see sdk-rewrite-v3.md)
1048
+ * - lifecycle: Sandbox/agent lifecycle transitions
1004
1049
  */
1005
1050
  interface EvolveEvents {
1006
1051
  stdout: (chunk: string) => void;
1007
1052
  stderr: (chunk: string) => void;
1008
1053
  content: (event: OutputEvent) => void;
1054
+ lifecycle: (event: LifecycleEvent) => void;
1009
1055
  }
1010
1056
  interface EvolveConfig {
1011
1057
  agent?: AgentConfig;
@@ -1047,6 +1093,9 @@ interface EvolveConfig {
1047
1093
  declare class Evolve extends EventEmitter {
1048
1094
  private config;
1049
1095
  private agent?;
1096
+ private fallbackSandboxState;
1097
+ private fallbackAgentState;
1098
+ private fallbackHasRun;
1050
1099
  constructor();
1051
1100
  on<K extends keyof EvolveEvents>(event: K, listener: EvolveEvents[K]): this;
1052
1101
  off<K extends keyof EvolveEvents>(event: K, listener: EvolveEvents[K]): this;
@@ -1203,6 +1252,7 @@ declare class Evolve extends EventEmitter {
1203
1252
  * Create stream callbacks based on registered listeners
1204
1253
  */
1205
1254
  private createStreamCallbacks;
1255
+ private emitLifecycleFromStatus;
1206
1256
  /**
1207
1257
  * Run agent with prompt
1208
1258
  */
@@ -1218,6 +1268,10 @@ declare class Evolve extends EventEmitter {
1218
1268
  timeoutMs?: number;
1219
1269
  background?: boolean;
1220
1270
  }): Promise<AgentResponse>;
1271
+ /**
1272
+ * Interrupt active process without killing sandbox.
1273
+ */
1274
+ interrupt(): Promise<boolean>;
1221
1275
  /**
1222
1276
  * Upload context files (runtime - immediate upload)
1223
1277
  */
@@ -1240,6 +1294,10 @@ declare class Evolve extends EventEmitter {
1240
1294
  * Set session to connect to
1241
1295
  */
1242
1296
  setSession(sandboxId: string): Promise<void>;
1297
+ /**
1298
+ * Get runtime status for sandbox and agent.
1299
+ */
1300
+ status(): SessionStatus;
1243
1301
  /**
1244
1302
  * Pause sandbox
1245
1303
  */
@@ -2404,4 +2462,4 @@ declare function readLocalDir(localPath: string, recursive?: boolean): FileMap;
2404
2462
  */
2405
2463
  declare function saveLocalDir(localPath: string, files: FileMap): void;
2406
2464
 
2407
- export { AGENT_REGISTRY, AGENT_TYPES, Agent, type AgentConfig, type AgentOptions, type AgentOverride, type AgentParser, type AgentRegistryEntry, type AgentResponse, type AgentType, type BaseMeta, type BestOfConfig, type BestOfParams, type BestOfResult, type CandidateCompleteEvent, type ComposioAuthResult, type ComposioConfig, type ComposioConnectionStatus, type ComposioSetup, type EmitOption, type EventHandler, type EventName, Evolve, type EvolveConfig, type EvolveEvents, type ExecuteCommandOptions, type FileMap, type FilterConfig, type FilterParams, type IndexedMeta, type ItemInput, type ItemRetryEvent, JUDGE_PROMPT, type JsonSchema, type JudgeCompleteEvent, type JudgeDecision, type JudgeMeta, type MapConfig, type MapParams, 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 RetryConfig, type RunOptions, SCHEMA_PROMPT, SWARM_RESULT_BRAND, SYSTEM_PROMPT, type SandboxCommandHandle, type SandboxCommandResult, type SandboxCommands, type SandboxCreateOptions, type SandboxFiles, type SandboxInstance, type SandboxProvider, type SandboxRunOptions, type SandboxSpawnOptions, type SchemaValidationOptions, Semaphore, type SkillName, type SkillsConfig, type StepCompleteEvent, type StepErrorEvent, type StepEvent, type StepResult, type StepStartEvent, 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, createGeminiParser, executeWithRetry, expandPath, getAgentConfig, getMcpSettingsDir, getMcpSettingsPath, isValidAgentType, isZodSchema, jsonSchemaToString, parseNdjsonLine, parseNdjsonOutput, parseQwenOutput, readLocalDir, saveLocalDir, writeClaudeMcpConfig, writeCodexMcpConfig, writeGeminiMcpConfig, writeMcpConfig, writeQwenMcpConfig, zodSchemaToJson };
2465
+ export { AGENT_REGISTRY, AGENT_TYPES, Agent, type AgentConfig, type AgentOptions, type AgentOverride, type AgentParser, type AgentRegistryEntry, type AgentResponse, type AgentRuntimeState, type AgentType, type BaseMeta, type BestOfConfig, type BestOfParams, type BestOfResult, type CandidateCompleteEvent, type ComposioAuthResult, type ComposioConfig, type ComposioConnectionStatus, type ComposioSetup, type EmitOption, type EventHandler, type EventName, Evolve, type EvolveConfig, type EvolveEvents, type ExecuteCommandOptions, type FileMap, type FilterConfig, type FilterParams, type IndexedMeta, type ItemInput, type ItemRetryEvent, JUDGE_PROMPT, type JsonSchema, type JudgeCompleteEvent, type JudgeDecision, type JudgeMeta, type LifecycleEvent, type LifecycleReason, type MapConfig, type MapParams, 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 RetryConfig, 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 SessionStatus, type SkillName, type SkillsConfig, type StepCompleteEvent, type StepErrorEvent, type StepEvent, type StepResult, type StepStartEvent, 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, createGeminiParser, executeWithRetry, expandPath, getAgentConfig, getMcpSettingsDir, getMcpSettingsPath, isValidAgentType, isZodSchema, jsonSchemaToString, parseNdjsonLine, parseNdjsonOutput, parseQwenOutput, readLocalDir, saveLocalDir, writeClaudeMcpConfig, writeCodexMcpConfig, writeGeminiMcpConfig, writeMcpConfig, writeQwenMcpConfig, zodSchemaToJson };
package/dist/index.d.ts CHANGED
@@ -549,6 +549,29 @@ interface ExecuteCommandOptions {
549
549
  /** Run in background (default: false) */
550
550
  background?: boolean;
551
551
  }
552
+ /** High-level sandbox lifecycle state */
553
+ type SandboxLifecycleState = "booting" | "error" | "ready" | "running" | "paused" | "stopped";
554
+ /** High-level agent runtime state */
555
+ type AgentRuntimeState = "idle" | "running" | "interrupted" | "error";
556
+ /** Lifecycle transition reason */
557
+ 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";
558
+ /** Lifecycle event emitted by the runtime */
559
+ interface LifecycleEvent {
560
+ sandboxId: string | null;
561
+ sandbox: SandboxLifecycleState;
562
+ agent: AgentRuntimeState;
563
+ timestamp: string;
564
+ reason: LifecycleReason;
565
+ }
566
+ /** Snapshot of current runtime status */
567
+ interface SessionStatus {
568
+ sandboxId: string | null;
569
+ sandbox: SandboxLifecycleState;
570
+ agent: AgentRuntimeState;
571
+ activeProcessId: string | null;
572
+ hasRun: boolean;
573
+ timestamp: string;
574
+ }
552
575
  /** Response from run() and executeCommand() */
553
576
  interface AgentResponse {
554
577
  /** Sandbox ID for session management */
@@ -579,6 +602,8 @@ interface StreamCallbacks {
579
602
  onStderr?: (data: string) => void;
580
603
  /** Called for each parsed content event */
581
604
  onContent?: (event: OutputEvent) => void;
605
+ /** Called for sandbox/agent lifecycle transitions */
606
+ onLifecycle?: (event: LifecycleEvent) => void;
582
607
  }
583
608
  /**
584
609
  * Configuration for Composio Tool Router integration
@@ -740,12 +765,25 @@ declare class Agent {
740
765
  private lastRunTimestamp?;
741
766
  private readonly registry;
742
767
  private sessionLogger?;
768
+ private activeCommand?;
769
+ private activeProcessId;
770
+ private activeOperationId;
771
+ private activeOperationKind;
772
+ private nextOperationId;
773
+ private interruptedOperations;
774
+ private sandboxState;
775
+ private agentState;
743
776
  private readonly skills?;
744
777
  private readonly zodSchema?;
745
778
  private readonly jsonSchema?;
746
779
  private readonly schemaOptions?;
747
780
  private readonly compiledValidator?;
748
781
  constructor(agentConfig: ResolvedAgentConfig, options?: AgentOptions);
782
+ private emitLifecycle;
783
+ private invalidateActiveOperation;
784
+ private beginOperation;
785
+ private finalizeOperation;
786
+ private watchBackgroundOperation;
749
787
  /**
750
788
  * Create Ajv validator instance with configured options
751
789
  */
@@ -753,7 +791,7 @@ declare class Agent {
753
791
  /**
754
792
  * Get or create sandbox instance
755
793
  */
756
- getSandbox(): Promise<SandboxInstance>;
794
+ getSandbox(callbacks?: StreamCallbacks): Promise<SandboxInstance>;
757
795
  /**
758
796
  * Build environment variables for sandbox
759
797
  */
@@ -827,15 +865,23 @@ declare class Agent {
827
865
  /**
828
866
  * Pause sandbox
829
867
  */
830
- pause(): Promise<void>;
868
+ pause(callbacks?: StreamCallbacks): Promise<void>;
831
869
  /**
832
870
  * Resume sandbox
833
871
  */
834
- resume(): Promise<void>;
872
+ resume(callbacks?: StreamCallbacks): Promise<void>;
873
+ /**
874
+ * Interrupt active command without killing the sandbox.
875
+ */
876
+ interrupt(callbacks?: StreamCallbacks): Promise<boolean>;
877
+ /**
878
+ * Get current runtime status for sandbox and agent.
879
+ */
880
+ status(): SessionStatus;
835
881
  /**
836
882
  * Kill sandbox (terminates all processes)
837
883
  */
838
- kill(): Promise<void>;
884
+ kill(callbacks?: StreamCallbacks): Promise<void>;
839
885
  /**
840
886
  * Get host URL for a port
841
887
  */
@@ -995,17 +1041,17 @@ declare function parseNdjsonOutput(agentType: AgentType, output: string): Output
995
1041
  /**
996
1042
  * Evolve events
997
1043
  *
998
- * Reduced from 5 to 3:
1044
+ * Runtime streams:
999
1045
  * - stdout: Raw NDJSON lines
1000
1046
  * - stderr: Process stderr
1001
1047
  * - content: Parsed OutputEvent
1002
- *
1003
- * Removed: update, error (see sdk-rewrite-v3.md)
1048
+ * - lifecycle: Sandbox/agent lifecycle transitions
1004
1049
  */
1005
1050
  interface EvolveEvents {
1006
1051
  stdout: (chunk: string) => void;
1007
1052
  stderr: (chunk: string) => void;
1008
1053
  content: (event: OutputEvent) => void;
1054
+ lifecycle: (event: LifecycleEvent) => void;
1009
1055
  }
1010
1056
  interface EvolveConfig {
1011
1057
  agent?: AgentConfig;
@@ -1047,6 +1093,9 @@ interface EvolveConfig {
1047
1093
  declare class Evolve extends EventEmitter {
1048
1094
  private config;
1049
1095
  private agent?;
1096
+ private fallbackSandboxState;
1097
+ private fallbackAgentState;
1098
+ private fallbackHasRun;
1050
1099
  constructor();
1051
1100
  on<K extends keyof EvolveEvents>(event: K, listener: EvolveEvents[K]): this;
1052
1101
  off<K extends keyof EvolveEvents>(event: K, listener: EvolveEvents[K]): this;
@@ -1203,6 +1252,7 @@ declare class Evolve extends EventEmitter {
1203
1252
  * Create stream callbacks based on registered listeners
1204
1253
  */
1205
1254
  private createStreamCallbacks;
1255
+ private emitLifecycleFromStatus;
1206
1256
  /**
1207
1257
  * Run agent with prompt
1208
1258
  */
@@ -1218,6 +1268,10 @@ declare class Evolve extends EventEmitter {
1218
1268
  timeoutMs?: number;
1219
1269
  background?: boolean;
1220
1270
  }): Promise<AgentResponse>;
1271
+ /**
1272
+ * Interrupt active process without killing sandbox.
1273
+ */
1274
+ interrupt(): Promise<boolean>;
1221
1275
  /**
1222
1276
  * Upload context files (runtime - immediate upload)
1223
1277
  */
@@ -1240,6 +1294,10 @@ declare class Evolve extends EventEmitter {
1240
1294
  * Set session to connect to
1241
1295
  */
1242
1296
  setSession(sandboxId: string): Promise<void>;
1297
+ /**
1298
+ * Get runtime status for sandbox and agent.
1299
+ */
1300
+ status(): SessionStatus;
1243
1301
  /**
1244
1302
  * Pause sandbox
1245
1303
  */
@@ -2404,4 +2462,4 @@ declare function readLocalDir(localPath: string, recursive?: boolean): FileMap;
2404
2462
  */
2405
2463
  declare function saveLocalDir(localPath: string, files: FileMap): void;
2406
2464
 
2407
- export { AGENT_REGISTRY, AGENT_TYPES, Agent, type AgentConfig, type AgentOptions, type AgentOverride, type AgentParser, type AgentRegistryEntry, type AgentResponse, type AgentType, type BaseMeta, type BestOfConfig, type BestOfParams, type BestOfResult, type CandidateCompleteEvent, type ComposioAuthResult, type ComposioConfig, type ComposioConnectionStatus, type ComposioSetup, type EmitOption, type EventHandler, type EventName, Evolve, type EvolveConfig, type EvolveEvents, type ExecuteCommandOptions, type FileMap, type FilterConfig, type FilterParams, type IndexedMeta, type ItemInput, type ItemRetryEvent, JUDGE_PROMPT, type JsonSchema, type JudgeCompleteEvent, type JudgeDecision, type JudgeMeta, type MapConfig, type MapParams, 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 RetryConfig, type RunOptions, SCHEMA_PROMPT, SWARM_RESULT_BRAND, SYSTEM_PROMPT, type SandboxCommandHandle, type SandboxCommandResult, type SandboxCommands, type SandboxCreateOptions, type SandboxFiles, type SandboxInstance, type SandboxProvider, type SandboxRunOptions, type SandboxSpawnOptions, type SchemaValidationOptions, Semaphore, type SkillName, type SkillsConfig, type StepCompleteEvent, type StepErrorEvent, type StepEvent, type StepResult, type StepStartEvent, 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, createGeminiParser, executeWithRetry, expandPath, getAgentConfig, getMcpSettingsDir, getMcpSettingsPath, isValidAgentType, isZodSchema, jsonSchemaToString, parseNdjsonLine, parseNdjsonOutput, parseQwenOutput, readLocalDir, saveLocalDir, writeClaudeMcpConfig, writeCodexMcpConfig, writeGeminiMcpConfig, writeMcpConfig, writeQwenMcpConfig, zodSchemaToJson };
2465
+ export { AGENT_REGISTRY, AGENT_TYPES, Agent, type AgentConfig, type AgentOptions, type AgentOverride, type AgentParser, type AgentRegistryEntry, type AgentResponse, type AgentRuntimeState, type AgentType, type BaseMeta, type BestOfConfig, type BestOfParams, type BestOfResult, type CandidateCompleteEvent, type ComposioAuthResult, type ComposioConfig, type ComposioConnectionStatus, type ComposioSetup, type EmitOption, type EventHandler, type EventName, Evolve, type EvolveConfig, type EvolveEvents, type ExecuteCommandOptions, type FileMap, type FilterConfig, type FilterParams, type IndexedMeta, type ItemInput, type ItemRetryEvent, JUDGE_PROMPT, type JsonSchema, type JudgeCompleteEvent, type JudgeDecision, type JudgeMeta, type LifecycleEvent, type LifecycleReason, type MapConfig, type MapParams, 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 RetryConfig, 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 SessionStatus, type SkillName, type SkillsConfig, type StepCompleteEvent, type StepErrorEvent, type StepEvent, type StepResult, type StepStartEvent, 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, createGeminiParser, executeWithRetry, expandPath, getAgentConfig, getMcpSettingsDir, getMcpSettingsPath, isValidAgentType, isZodSchema, jsonSchemaToString, parseNdjsonLine, parseNdjsonOutput, parseQwenOutput, readLocalDir, saveLocalDir, writeClaudeMcpConfig, writeCodexMcpConfig, writeGeminiMcpConfig, writeMcpConfig, writeQwenMcpConfig, zodSchemaToJson };