@evolvingmachines/sdk 0.0.20 → 0.0.22
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 +49 -47
- package/dist/index.d.cts +246 -12
- package/dist/index.d.ts +246 -12
- package/dist/index.js +49 -47
- package/package.json +20 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as zod from 'zod';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { EventEmitter } from 'events';
|
|
4
|
-
export { E2BProvider } from '@evolvingmachines/e2b';
|
|
5
|
-
export { DaytonaProvider } from '@evolvingmachines/daytona';
|
|
6
|
-
export { ModalProvider } from '@evolvingmachines/modal';
|
|
4
|
+
export { E2BProvider, createE2BProvider } from '@evolvingmachines/e2b';
|
|
5
|
+
export { DaytonaProvider, createDaytonaProvider } from '@evolvingmachines/daytona';
|
|
6
|
+
export { ModalProvider, createModalProvider } from '@evolvingmachines/modal';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* ACP-inspired output types for unified agent event streaming.
|
|
@@ -532,6 +532,8 @@ interface AgentOptions {
|
|
|
532
532
|
* Set via withComposio() - provides access to 1000+ tools
|
|
533
533
|
*/
|
|
534
534
|
composio?: ComposioSetup;
|
|
535
|
+
/** Resolved storage configuration (set via Evolve.withStorage()) */
|
|
536
|
+
storage?: ResolvedStorageConfig;
|
|
535
537
|
}
|
|
536
538
|
/** Options for run() */
|
|
537
539
|
interface RunOptions {
|
|
@@ -541,6 +543,10 @@ interface RunOptions {
|
|
|
541
543
|
timeoutMs?: number;
|
|
542
544
|
/** Run in background (returns immediately, process continues) */
|
|
543
545
|
background?: boolean;
|
|
546
|
+
/** Restore from checkpoint ID or "latest" before running (requires .withStorage()) */
|
|
547
|
+
from?: string;
|
|
548
|
+
/** Optional comment for the auto-checkpoint created after this run */
|
|
549
|
+
checkpointComment?: string;
|
|
544
550
|
}
|
|
545
551
|
/** Options for executeCommand() */
|
|
546
552
|
interface ExecuteCommandOptions {
|
|
@@ -549,6 +555,29 @@ interface ExecuteCommandOptions {
|
|
|
549
555
|
/** Run in background (default: false) */
|
|
550
556
|
background?: boolean;
|
|
551
557
|
}
|
|
558
|
+
/** High-level sandbox lifecycle state */
|
|
559
|
+
type SandboxLifecycleState = "booting" | "error" | "ready" | "running" | "paused" | "stopped";
|
|
560
|
+
/** High-level agent runtime state */
|
|
561
|
+
type AgentRuntimeState = "idle" | "running" | "interrupted" | "error";
|
|
562
|
+
/** Lifecycle transition reason */
|
|
563
|
+
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";
|
|
564
|
+
/** Lifecycle event emitted by the runtime */
|
|
565
|
+
interface LifecycleEvent {
|
|
566
|
+
sandboxId: string | null;
|
|
567
|
+
sandbox: SandboxLifecycleState;
|
|
568
|
+
agent: AgentRuntimeState;
|
|
569
|
+
timestamp: string;
|
|
570
|
+
reason: LifecycleReason;
|
|
571
|
+
}
|
|
572
|
+
/** Snapshot of current runtime status */
|
|
573
|
+
interface SessionStatus {
|
|
574
|
+
sandboxId: string | null;
|
|
575
|
+
sandbox: SandboxLifecycleState;
|
|
576
|
+
agent: AgentRuntimeState;
|
|
577
|
+
activeProcessId: string | null;
|
|
578
|
+
hasRun: boolean;
|
|
579
|
+
timestamp: string;
|
|
580
|
+
}
|
|
552
581
|
/** Response from run() and executeCommand() */
|
|
553
582
|
interface AgentResponse {
|
|
554
583
|
/** Sandbox ID for session management */
|
|
@@ -559,6 +588,8 @@ interface AgentResponse {
|
|
|
559
588
|
stdout: string;
|
|
560
589
|
/** Standard error */
|
|
561
590
|
stderr: string;
|
|
591
|
+
/** Checkpoint info if storage configured and run succeeded (undefined otherwise) */
|
|
592
|
+
checkpoint?: CheckpointInfo;
|
|
562
593
|
}
|
|
563
594
|
/** Result from getOutputFiles() with optional schema validation */
|
|
564
595
|
interface OutputResult<T = unknown> {
|
|
@@ -579,6 +610,8 @@ interface StreamCallbacks {
|
|
|
579
610
|
onStderr?: (data: string) => void;
|
|
580
611
|
/** Called for each parsed content event */
|
|
581
612
|
onContent?: (event: OutputEvent) => void;
|
|
613
|
+
/** Called for sandbox/agent lifecycle transitions */
|
|
614
|
+
onLifecycle?: (event: LifecycleEvent) => void;
|
|
582
615
|
}
|
|
583
616
|
/**
|
|
584
617
|
* Configuration for Composio Tool Router integration
|
|
@@ -641,6 +674,80 @@ interface ComposioSetup {
|
|
|
641
674
|
/** Optional Composio configuration */
|
|
642
675
|
config?: ComposioConfig;
|
|
643
676
|
}
|
|
677
|
+
/**
|
|
678
|
+
* Storage configuration for .withStorage()
|
|
679
|
+
*
|
|
680
|
+
* BYOK mode: provide url (e.g., "s3://my-bucket/prefix/")
|
|
681
|
+
* Gateway mode: omit url (uses Evolve-managed storage)
|
|
682
|
+
*
|
|
683
|
+
* @example
|
|
684
|
+
* // BYOK — user's own S3 bucket
|
|
685
|
+
* .withStorage({ url: "s3://my-bucket/agent-snapshots/" })
|
|
686
|
+
*
|
|
687
|
+
* // BYOK — Cloudflare R2
|
|
688
|
+
* .withStorage({ url: "s3://my-bucket/prefix/", endpoint: "https://acct.r2.cloudflarestorage.com" })
|
|
689
|
+
*
|
|
690
|
+
* // Gateway — Evolve-managed storage
|
|
691
|
+
* .withStorage()
|
|
692
|
+
*/
|
|
693
|
+
interface StorageConfig {
|
|
694
|
+
/** S3 URL: "s3://bucket/prefix" or "https://endpoint/bucket/prefix" */
|
|
695
|
+
url?: string;
|
|
696
|
+
/** Explicit bucket name (overrides URL parsing) */
|
|
697
|
+
bucket?: string;
|
|
698
|
+
/** Key prefix (overrides URL parsing) */
|
|
699
|
+
prefix?: string;
|
|
700
|
+
/** AWS region (default from env or us-east-1) */
|
|
701
|
+
region?: string;
|
|
702
|
+
/** Custom S3 endpoint (R2, MinIO, GCS) */
|
|
703
|
+
endpoint?: string;
|
|
704
|
+
/** Explicit credentials (default: AWS SDK credential chain) */
|
|
705
|
+
credentials?: {
|
|
706
|
+
accessKeyId: string;
|
|
707
|
+
secretAccessKey: string;
|
|
708
|
+
};
|
|
709
|
+
}
|
|
710
|
+
/** Resolved storage configuration (internal) */
|
|
711
|
+
interface ResolvedStorageConfig {
|
|
712
|
+
bucket: string;
|
|
713
|
+
prefix: string;
|
|
714
|
+
region: string;
|
|
715
|
+
endpoint?: string;
|
|
716
|
+
credentials?: {
|
|
717
|
+
accessKeyId: string;
|
|
718
|
+
secretAccessKey: string;
|
|
719
|
+
};
|
|
720
|
+
mode: "byok" | "gateway";
|
|
721
|
+
gatewayUrl?: string;
|
|
722
|
+
gatewayApiKey?: string;
|
|
723
|
+
}
|
|
724
|
+
/**
|
|
725
|
+
* Checkpoint info returned after a successful run
|
|
726
|
+
*
|
|
727
|
+
* Pass `checkpoint.id` as `from` to restore into a fresh sandbox.
|
|
728
|
+
*/
|
|
729
|
+
interface CheckpointInfo {
|
|
730
|
+
/** Checkpoint ID — pass as `from` to restore */
|
|
731
|
+
id: string;
|
|
732
|
+
/** SHA-256 of tar.gz — integrity verification */
|
|
733
|
+
hash: string;
|
|
734
|
+
/** Session tag at checkpoint time — lineage tracking */
|
|
735
|
+
tag: string;
|
|
736
|
+
/** ISO 8601 timestamp */
|
|
737
|
+
timestamp: string;
|
|
738
|
+
/** Archive size in bytes */
|
|
739
|
+
sizeBytes?: number;
|
|
740
|
+
/** Agent type that produced this checkpoint */
|
|
741
|
+
agentType?: string;
|
|
742
|
+
/** Model that produced this checkpoint */
|
|
743
|
+
model?: string;
|
|
744
|
+
/** Workspace mode used when checkpoint was created */
|
|
745
|
+
workspaceMode?: string;
|
|
746
|
+
/** Parent checkpoint ID — the checkpoint this was restored from (lineage tracking) */
|
|
747
|
+
parentId?: string;
|
|
748
|
+
/** User-provided label for this checkpoint */
|
|
749
|
+
comment?: string;
|
|
750
|
+
}
|
|
644
751
|
|
|
645
752
|
/**
|
|
646
753
|
* Composio Auth Helpers
|
|
@@ -740,12 +847,27 @@ declare class Agent {
|
|
|
740
847
|
private lastRunTimestamp?;
|
|
741
848
|
private readonly registry;
|
|
742
849
|
private sessionLogger?;
|
|
850
|
+
private activeCommand?;
|
|
851
|
+
private activeProcessId;
|
|
852
|
+
private activeOperationId;
|
|
853
|
+
private activeOperationKind;
|
|
854
|
+
private nextOperationId;
|
|
855
|
+
private interruptedOperations;
|
|
856
|
+
private sandboxState;
|
|
857
|
+
private agentState;
|
|
743
858
|
private readonly skills?;
|
|
859
|
+
private readonly storage?;
|
|
860
|
+
private lastCheckpointId?;
|
|
744
861
|
private readonly zodSchema?;
|
|
745
862
|
private readonly jsonSchema?;
|
|
746
863
|
private readonly schemaOptions?;
|
|
747
864
|
private readonly compiledValidator?;
|
|
748
865
|
constructor(agentConfig: ResolvedAgentConfig, options?: AgentOptions);
|
|
866
|
+
private emitLifecycle;
|
|
867
|
+
private invalidateActiveOperation;
|
|
868
|
+
private beginOperation;
|
|
869
|
+
private finalizeOperation;
|
|
870
|
+
private watchBackgroundOperation;
|
|
749
871
|
/**
|
|
750
872
|
* Create Ajv validator instance with configured options
|
|
751
873
|
*/
|
|
@@ -753,7 +875,7 @@ declare class Agent {
|
|
|
753
875
|
/**
|
|
754
876
|
* Get or create sandbox instance
|
|
755
877
|
*/
|
|
756
|
-
getSandbox(): Promise<SandboxInstance>;
|
|
878
|
+
getSandbox(callbacks?: StreamCallbacks): Promise<SandboxInstance>;
|
|
757
879
|
/**
|
|
758
880
|
* Build environment variables for sandbox
|
|
759
881
|
*/
|
|
@@ -764,6 +886,9 @@ declare class Agent {
|
|
|
764
886
|
private setupAgentAuth;
|
|
765
887
|
/**
|
|
766
888
|
* Setup workspace structure and files
|
|
889
|
+
*
|
|
890
|
+
* @param opts.skipSystemPrompt - When true, skip writing the system prompt file.
|
|
891
|
+
* Used on restore from checkpoint: the tar already contains the correct file.
|
|
767
892
|
*/
|
|
768
893
|
private setupWorkspace;
|
|
769
894
|
/**
|
|
@@ -812,6 +937,16 @@ declare class Agent {
|
|
|
812
937
|
* @param recursive - Include files in subdirectories (default: false)
|
|
813
938
|
*/
|
|
814
939
|
getOutputFiles<T = unknown>(recursive?: boolean): Promise<OutputResult<T>>;
|
|
940
|
+
/**
|
|
941
|
+
* Create an explicit checkpoint of the current sandbox state.
|
|
942
|
+
*
|
|
943
|
+
* Requires an active sandbox (call run() first).
|
|
944
|
+
*
|
|
945
|
+
* @param options.comment - Optional label for this checkpoint
|
|
946
|
+
*/
|
|
947
|
+
checkpoint(options?: {
|
|
948
|
+
comment?: string;
|
|
949
|
+
}): Promise<CheckpointInfo>;
|
|
815
950
|
/**
|
|
816
951
|
* Get current session (sandbox ID)
|
|
817
952
|
*/
|
|
@@ -827,15 +962,23 @@ declare class Agent {
|
|
|
827
962
|
/**
|
|
828
963
|
* Pause sandbox
|
|
829
964
|
*/
|
|
830
|
-
pause(): Promise<void>;
|
|
965
|
+
pause(callbacks?: StreamCallbacks): Promise<void>;
|
|
831
966
|
/**
|
|
832
967
|
* Resume sandbox
|
|
833
968
|
*/
|
|
834
|
-
resume(): Promise<void>;
|
|
969
|
+
resume(callbacks?: StreamCallbacks): Promise<void>;
|
|
970
|
+
/**
|
|
971
|
+
* Interrupt active command without killing the sandbox.
|
|
972
|
+
*/
|
|
973
|
+
interrupt(callbacks?: StreamCallbacks): Promise<boolean>;
|
|
974
|
+
/**
|
|
975
|
+
* Get current runtime status for sandbox and agent.
|
|
976
|
+
*/
|
|
977
|
+
status(): SessionStatus;
|
|
835
978
|
/**
|
|
836
979
|
* Kill sandbox (terminates all processes)
|
|
837
980
|
*/
|
|
838
|
-
kill(): Promise<void>;
|
|
981
|
+
kill(callbacks?: StreamCallbacks): Promise<void>;
|
|
839
982
|
/**
|
|
840
983
|
* Get host URL for a port
|
|
841
984
|
*/
|
|
@@ -995,17 +1138,17 @@ declare function parseNdjsonOutput(agentType: AgentType, output: string): Output
|
|
|
995
1138
|
/**
|
|
996
1139
|
* Evolve events
|
|
997
1140
|
*
|
|
998
|
-
*
|
|
1141
|
+
* Runtime streams:
|
|
999
1142
|
* - stdout: Raw NDJSON lines
|
|
1000
1143
|
* - stderr: Process stderr
|
|
1001
1144
|
* - content: Parsed OutputEvent
|
|
1002
|
-
*
|
|
1003
|
-
* Removed: update, error (see sdk-rewrite-v3.md)
|
|
1145
|
+
* - lifecycle: Sandbox/agent lifecycle transitions
|
|
1004
1146
|
*/
|
|
1005
1147
|
interface EvolveEvents {
|
|
1006
1148
|
stdout: (chunk: string) => void;
|
|
1007
1149
|
stderr: (chunk: string) => void;
|
|
1008
1150
|
content: (event: OutputEvent) => void;
|
|
1151
|
+
lifecycle: (event: LifecycleEvent) => void;
|
|
1009
1152
|
}
|
|
1010
1153
|
interface EvolveConfig {
|
|
1011
1154
|
agent?: AgentConfig;
|
|
@@ -1029,6 +1172,8 @@ interface EvolveConfig {
|
|
|
1029
1172
|
observability?: Record<string, unknown>;
|
|
1030
1173
|
/** Composio user ID and config */
|
|
1031
1174
|
composio?: ComposioSetup;
|
|
1175
|
+
/** Storage configuration for checkpointing */
|
|
1176
|
+
storage?: StorageConfig;
|
|
1032
1177
|
}
|
|
1033
1178
|
/**
|
|
1034
1179
|
* Evolve orchestrator with builder pattern
|
|
@@ -1047,6 +1192,9 @@ interface EvolveConfig {
|
|
|
1047
1192
|
declare class Evolve extends EventEmitter {
|
|
1048
1193
|
private config;
|
|
1049
1194
|
private agent?;
|
|
1195
|
+
private fallbackSandboxState;
|
|
1196
|
+
private fallbackAgentState;
|
|
1197
|
+
private fallbackHasRun;
|
|
1050
1198
|
constructor();
|
|
1051
1199
|
on<K extends keyof EvolveEvents>(event: K, listener: EvolveEvents[K]): this;
|
|
1052
1200
|
off<K extends keyof EvolveEvents>(event: K, listener: EvolveEvents[K]): this;
|
|
@@ -1169,6 +1317,23 @@ declare class Evolve extends EventEmitter {
|
|
|
1169
1317
|
* })
|
|
1170
1318
|
*/
|
|
1171
1319
|
withComposio(userId: string, config?: ComposioConfig): this;
|
|
1320
|
+
/**
|
|
1321
|
+
* Configure storage for checkpoint persistence
|
|
1322
|
+
*
|
|
1323
|
+
* BYOK mode: provide URL to your S3-compatible bucket.
|
|
1324
|
+
* Gateway mode: omit config (uses Evolve-managed storage, requires EVOLVE_API_KEY).
|
|
1325
|
+
*
|
|
1326
|
+
* @example
|
|
1327
|
+
* // BYOK — user's own S3 bucket
|
|
1328
|
+
* kit.withStorage({ url: "s3://my-bucket/agent-snapshots/" })
|
|
1329
|
+
*
|
|
1330
|
+
* // BYOK — Cloudflare R2
|
|
1331
|
+
* kit.withStorage({ url: "s3://my-bucket/prefix/", endpoint: "https://acct.r2.cloudflarestorage.com" })
|
|
1332
|
+
*
|
|
1333
|
+
* // Gateway — Evolve-managed storage
|
|
1334
|
+
* kit.withStorage()
|
|
1335
|
+
*/
|
|
1336
|
+
withStorage(config?: StorageConfig): this;
|
|
1172
1337
|
/**
|
|
1173
1338
|
* Static helpers for Composio auth management
|
|
1174
1339
|
*
|
|
@@ -1203,13 +1368,18 @@ declare class Evolve extends EventEmitter {
|
|
|
1203
1368
|
* Create stream callbacks based on registered listeners
|
|
1204
1369
|
*/
|
|
1205
1370
|
private createStreamCallbacks;
|
|
1371
|
+
private emitLifecycleFromStatus;
|
|
1206
1372
|
/**
|
|
1207
1373
|
* Run agent with prompt
|
|
1374
|
+
*
|
|
1375
|
+
* @param from - Restore from checkpoint ID before running (requires .withStorage())
|
|
1208
1376
|
*/
|
|
1209
|
-
run({ prompt, timeoutMs, background, }: {
|
|
1377
|
+
run({ prompt, timeoutMs, background, from, checkpointComment, }: {
|
|
1210
1378
|
prompt: string;
|
|
1211
1379
|
timeoutMs?: number;
|
|
1212
1380
|
background?: boolean;
|
|
1381
|
+
from?: string;
|
|
1382
|
+
checkpointComment?: string;
|
|
1213
1383
|
}): Promise<AgentResponse>;
|
|
1214
1384
|
/**
|
|
1215
1385
|
* Execute arbitrary command in sandbox
|
|
@@ -1218,6 +1388,10 @@ declare class Evolve extends EventEmitter {
|
|
|
1218
1388
|
timeoutMs?: number;
|
|
1219
1389
|
background?: boolean;
|
|
1220
1390
|
}): Promise<AgentResponse>;
|
|
1391
|
+
/**
|
|
1392
|
+
* Interrupt active process without killing sandbox.
|
|
1393
|
+
*/
|
|
1394
|
+
interrupt(): Promise<boolean>;
|
|
1221
1395
|
/**
|
|
1222
1396
|
* Upload context files (runtime - immediate upload)
|
|
1223
1397
|
*/
|
|
@@ -1232,6 +1406,28 @@ declare class Evolve extends EventEmitter {
|
|
|
1232
1406
|
* @param recursive - Include files in subdirectories (default: false)
|
|
1233
1407
|
*/
|
|
1234
1408
|
getOutputFiles<T = unknown>(recursive?: boolean): Promise<OutputResult<T>>;
|
|
1409
|
+
/**
|
|
1410
|
+
* Create an explicit checkpoint of the current sandbox state.
|
|
1411
|
+
*
|
|
1412
|
+
* Requires a prior run() call (needs an active sandbox to snapshot).
|
|
1413
|
+
*
|
|
1414
|
+
* @param options.comment - Optional label for this checkpoint
|
|
1415
|
+
*/
|
|
1416
|
+
checkpoint(options?: {
|
|
1417
|
+
comment?: string;
|
|
1418
|
+
}): Promise<CheckpointInfo>;
|
|
1419
|
+
/**
|
|
1420
|
+
* List checkpoints (requires .withStorage()).
|
|
1421
|
+
*
|
|
1422
|
+
* Does not require an agent or sandbox — only storage configuration.
|
|
1423
|
+
*
|
|
1424
|
+
* @param options.limit - Maximum number of checkpoints to return
|
|
1425
|
+
* @param options.tag - Filter by session tag (gateway mode: server-side, BYOK: post-filter)
|
|
1426
|
+
*/
|
|
1427
|
+
listCheckpoints(options?: {
|
|
1428
|
+
limit?: number;
|
|
1429
|
+
tag?: string;
|
|
1430
|
+
}): Promise<CheckpointInfo[]>;
|
|
1235
1431
|
/**
|
|
1236
1432
|
* Get current session (sandbox ID)
|
|
1237
1433
|
*/
|
|
@@ -1240,6 +1436,10 @@ declare class Evolve extends EventEmitter {
|
|
|
1240
1436
|
* Set session to connect to
|
|
1241
1437
|
*/
|
|
1242
1438
|
setSession(sandboxId: string): Promise<void>;
|
|
1439
|
+
/**
|
|
1440
|
+
* Get runtime status for sandbox and agent.
|
|
1441
|
+
*/
|
|
1442
|
+
status(): SessionStatus;
|
|
1243
1443
|
/**
|
|
1244
1444
|
* Pause sandbox
|
|
1245
1445
|
*/
|
|
@@ -2404,4 +2604,38 @@ declare function readLocalDir(localPath: string, recursive?: boolean): FileMap;
|
|
|
2404
2604
|
*/
|
|
2405
2605
|
declare function saveLocalDir(localPath: string, files: FileMap): void;
|
|
2406
2606
|
|
|
2407
|
-
|
|
2607
|
+
/**
|
|
2608
|
+
* Storage & Checkpointing Module
|
|
2609
|
+
*
|
|
2610
|
+
* Provides durable persistence for agent workspaces beyond sandbox lifetime.
|
|
2611
|
+
* Supports BYOK (user's S3 bucket) and Gateway (Evolve-managed) modes.
|
|
2612
|
+
*
|
|
2613
|
+
* Evidence: storage-checkpointing plan v2.2
|
|
2614
|
+
*/
|
|
2615
|
+
|
|
2616
|
+
/**
|
|
2617
|
+
* Resolve storage configuration from user input.
|
|
2618
|
+
*
|
|
2619
|
+
* BYOK mode: URL provided → parse into bucket/prefix, use S3 client directly
|
|
2620
|
+
* Gateway mode: no URL → use dashboard API endpoints
|
|
2621
|
+
*/
|
|
2622
|
+
declare function resolveStorageConfig(config: StorageConfig | undefined, isGateway: boolean, gatewayUrl?: string, gatewayApiKey?: string): ResolvedStorageConfig;
|
|
2623
|
+
/**
|
|
2624
|
+
* List checkpoints (standalone — no Evolve instance needed).
|
|
2625
|
+
*
|
|
2626
|
+
* BYOK mode: reads directly from S3.
|
|
2627
|
+
* Gateway mode: reads EVOLVE_API_KEY from env, calls dashboard API.
|
|
2628
|
+
*
|
|
2629
|
+
* @example
|
|
2630
|
+
* // BYOK
|
|
2631
|
+
* const all = await listCheckpoints({ url: "s3://my-bucket/project/" });
|
|
2632
|
+
*
|
|
2633
|
+
* // Gateway
|
|
2634
|
+
* const all = await listCheckpoints({});
|
|
2635
|
+
*/
|
|
2636
|
+
declare function listCheckpoints(config: StorageConfig, options?: {
|
|
2637
|
+
limit?: number;
|
|
2638
|
+
tag?: string;
|
|
2639
|
+
}): Promise<CheckpointInfo[]>;
|
|
2640
|
+
|
|
2641
|
+
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 CheckpointInfo, 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 ResolvedStorageConfig, 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 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, createGeminiParser, executeWithRetry, expandPath, getAgentConfig, getMcpSettingsDir, getMcpSettingsPath, isValidAgentType, isZodSchema, jsonSchemaToString, listCheckpoints, parseNdjsonLine, parseNdjsonOutput, parseQwenOutput, readLocalDir, resolveStorageConfig, saveLocalDir, writeClaudeMcpConfig, writeCodexMcpConfig, writeGeminiMcpConfig, writeMcpConfig, writeQwenMcpConfig, zodSchemaToJson };
|