@agent-os-sdk/client 0.7.8 → 0.7.9

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.
@@ -36,18 +36,27 @@ export declare class CheckpointsModule {
36
36
  constructor(client: RawClient, headers: () => Record<string, string>);
37
37
  /**
38
38
  * List checkpoints for a run.
39
+ * @param workspaceId - Workspace ID
40
+ * @param runId - Run ID
39
41
  */
40
- list(runId: string): Promise<APIResponse<CheckpointsResponse>>;
42
+ list(workspaceId: string, runId: string): Promise<APIResponse<CheckpointsResponse>>;
41
43
  /**
42
44
  * Get a specific checkpoint.
45
+ * @param workspaceId - Workspace ID
46
+ * @param runId - Run ID
47
+ * @param checkpointId - Checkpoint ID
43
48
  */
44
- get(checkpointId: string): Promise<APIResponse<Checkpoint>>;
49
+ get(workspaceId: string, runId: string, checkpointId: string): Promise<APIResponse<Checkpoint>>;
45
50
  /**
46
51
  * Replay from a checkpoint.
52
+ * @param workspaceId - Workspace ID
53
+ * @param runId - Run ID
54
+ * @param checkpointId - Checkpoint ID
55
+ * @param options - Replay options
47
56
  */
48
- replay(checkpointId: string, options?: {
49
- mode?: "best_effort" | "strict";
50
- modified_state?: unknown;
57
+ replay(workspaceId: string, runId: string, checkpointId: string, options?: {
58
+ create_new_thread?: boolean;
59
+ modified_input?: string;
51
60
  }): Promise<APIResponse<ReplayResponse>>;
52
61
  }
53
62
  //# sourceMappingURL=checkpoints.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"checkpoints.d.ts","sourceRoot":"","sources":["../../src/modules/checkpoints.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAc,MAAM,kBAAkB,CAAC;AAK3E,MAAM,WAAW,UAAU;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,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,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAOrG;;;;;;OAMG;IACG,MAAM,CAAC,WAAW,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;QAC7E,iBAAiB,CAAC,EAAE,OAAO,CAAC;QAC5B,cAAc,CAAC,EAAE,MAAM,CAAC;KAC3B,GAAG,OAAO,CAAC,WAAW,CAAC,cAAc,CAAC,CAAC;CAO3C"}
@@ -10,28 +10,37 @@ export class CheckpointsModule {
10
10
  }
11
11
  /**
12
12
  * List checkpoints for a run.
13
+ * @param workspaceId - Workspace ID
14
+ * @param runId - Run ID
13
15
  */
14
- async list(runId) {
15
- return this.client.GET("/v1/api/runs/{runId}/checkpoints", {
16
- params: { path: { runId } },
16
+ async list(workspaceId, runId) {
17
+ return this.client.GET("/v1/api/workspaces/{workspaceId}/runs/{runId}/checkpoints", {
18
+ params: { path: { workspaceId, runId } },
17
19
  headers: this.headers(),
18
20
  });
19
21
  }
20
22
  /**
21
23
  * Get a specific checkpoint.
24
+ * @param workspaceId - Workspace ID
25
+ * @param runId - Run ID
26
+ * @param checkpointId - Checkpoint ID
22
27
  */
23
- async get(checkpointId) {
24
- return this.client.GET("/v1/api/checkpoints/{id}", {
25
- params: { path: { id: checkpointId } },
28
+ async get(workspaceId, runId, checkpointId) {
29
+ return this.client.GET("/v1/api/workspaces/{workspaceId}/runs/{runId}/checkpoints/{checkpointId}", {
30
+ params: { path: { workspaceId, runId, checkpointId } },
26
31
  headers: this.headers(),
27
32
  });
28
33
  }
29
34
  /**
30
35
  * Replay from a checkpoint.
36
+ * @param workspaceId - Workspace ID
37
+ * @param runId - Run ID
38
+ * @param checkpointId - Checkpoint ID
39
+ * @param options - Replay options
31
40
  */
32
- async replay(checkpointId, options) {
33
- return this.client.POST("/v1/api/checkpoints/{id}/replay", {
34
- params: { path: { id: checkpointId } },
41
+ async replay(workspaceId, runId, checkpointId, options) {
42
+ return this.client.POST("/v1/api/workspaces/{workspaceId}/runs/{runId}/checkpoints/{checkpointId}/replay", {
43
+ params: { path: { workspaceId, runId, checkpointId } },
35
44
  body: options ?? {},
36
45
  headers: this.headers(),
37
46
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agent-os-sdk/client",
3
- "version": "0.7.8",
3
+ "version": "0.7.9",
4
4
  "description": "Official TypeScript SDK for Agent OS platform",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -44,33 +44,42 @@ export class CheckpointsModule {
44
44
 
45
45
  /**
46
46
  * List checkpoints for a run.
47
+ * @param workspaceId - Workspace ID
48
+ * @param runId - Run ID
47
49
  */
48
- async list(runId: string): Promise<APIResponse<CheckpointsResponse>> {
49
- return this.client.GET<CheckpointsResponse>("/v1/api/runs/{runId}/checkpoints", {
50
- params: { path: { runId } },
50
+ async list(workspaceId: string, runId: string): Promise<APIResponse<CheckpointsResponse>> {
51
+ return this.client.GET<CheckpointsResponse>("/v1/api/workspaces/{workspaceId}/runs/{runId}/checkpoints", {
52
+ params: { path: { workspaceId, runId } },
51
53
  headers: this.headers(),
52
54
  });
53
55
  }
54
56
 
55
57
  /**
56
58
  * Get a specific checkpoint.
59
+ * @param workspaceId - Workspace ID
60
+ * @param runId - Run ID
61
+ * @param checkpointId - Checkpoint ID
57
62
  */
58
- async get(checkpointId: string): Promise<APIResponse<Checkpoint>> {
59
- return this.client.GET<Checkpoint>("/v1/api/checkpoints/{id}", {
60
- params: { path: { id: checkpointId } },
63
+ async get(workspaceId: string, runId: string, checkpointId: string): Promise<APIResponse<Checkpoint>> {
64
+ return this.client.GET<Checkpoint>("/v1/api/workspaces/{workspaceId}/runs/{runId}/checkpoints/{checkpointId}", {
65
+ params: { path: { workspaceId, runId, checkpointId } },
61
66
  headers: this.headers(),
62
67
  });
63
68
  }
64
69
 
65
70
  /**
66
71
  * Replay from a checkpoint.
72
+ * @param workspaceId - Workspace ID
73
+ * @param runId - Run ID
74
+ * @param checkpointId - Checkpoint ID
75
+ * @param options - Replay options
67
76
  */
68
- async replay(checkpointId: string, options?: {
69
- mode?: "best_effort" | "strict";
70
- modified_state?: unknown;
77
+ async replay(workspaceId: string, runId: string, checkpointId: string, options?: {
78
+ create_new_thread?: boolean;
79
+ modified_input?: string;
71
80
  }): Promise<APIResponse<ReplayResponse>> {
72
- return this.client.POST<ReplayResponse>("/v1/api/checkpoints/{id}/replay", {
73
- params: { path: { id: checkpointId } },
81
+ return this.client.POST<ReplayResponse>("/v1/api/workspaces/{workspaceId}/runs/{runId}/checkpoints/{checkpointId}/replay", {
82
+ params: { path: { workspaceId, runId, checkpointId } },
74
83
  body: options ?? {},
75
84
  headers: this.headers(),
76
85
  });