warp-agent-sdk 0.3.0 → 1.0.0-alpha.0

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.
Files changed (48) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/README.md +2 -2
  3. package/package.json +1 -1
  4. package/resources/agent/agent.d.mts +25 -21
  5. package/resources/agent/agent.d.mts.map +1 -1
  6. package/resources/agent/agent.d.ts +25 -21
  7. package/resources/agent/agent.d.ts.map +1 -1
  8. package/resources/agent/agent.js +5 -5
  9. package/resources/agent/agent.js.map +1 -1
  10. package/resources/agent/agent.mjs +5 -5
  11. package/resources/agent/agent.mjs.map +1 -1
  12. package/resources/agent/index.d.mts +1 -1
  13. package/resources/agent/index.d.mts.map +1 -1
  14. package/resources/agent/index.d.ts +1 -1
  15. package/resources/agent/index.d.ts.map +1 -1
  16. package/resources/agent/index.js +3 -3
  17. package/resources/agent/index.js.map +1 -1
  18. package/resources/agent/index.mjs +1 -1
  19. package/resources/agent/index.mjs.map +1 -1
  20. package/resources/agent/runs.d.mts +222 -0
  21. package/resources/agent/runs.d.mts.map +1 -0
  22. package/resources/agent/runs.d.ts +222 -0
  23. package/resources/agent/runs.d.ts.map +1 -0
  24. package/resources/agent/runs.js +34 -0
  25. package/resources/agent/runs.js.map +1 -0
  26. package/resources/agent/runs.mjs +30 -0
  27. package/resources/agent/runs.mjs.map +1 -0
  28. package/src/resources/agent/agent.ts +32 -27
  29. package/src/resources/agent/index.ts +7 -7
  30. package/src/resources/agent/runs.ts +276 -0
  31. package/src/version.ts +1 -1
  32. package/version.d.mts +1 -1
  33. package/version.d.mts.map +1 -1
  34. package/version.d.ts +1 -1
  35. package/version.d.ts.map +1 -1
  36. package/version.js +1 -1
  37. package/version.js.map +1 -1
  38. package/version.mjs +1 -1
  39. package/version.mjs.map +1 -1
  40. package/resources/agent/tasks.d.mts +0 -183
  41. package/resources/agent/tasks.d.mts.map +0 -1
  42. package/resources/agent/tasks.d.ts +0 -183
  43. package/resources/agent/tasks.d.ts.map +0 -1
  44. package/resources/agent/tasks.js +0 -36
  45. package/resources/agent/tasks.js.map +0 -1
  46. package/resources/agent/tasks.mjs +0 -32
  47. package/resources/agent/tasks.mjs.map +0 -1
  48. package/src/resources/agent/tasks.ts +0 -231
package/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.0-alpha.0 (2026-01-21)
4
+
5
+ Full Changelog: [v0.3.0...v1.0.0-alpha.0](https://github.com/warpdotdev/warp-sdk-typescript/compare/v0.3.0...v1.0.0-alpha.0)
6
+
7
+ ### ⚠ BREAKING CHANGES
8
+
9
+ * **api:** catch up openapi, rename tasks -> runs
10
+
11
+ ### Features
12
+
13
+ * **api:** catch up openapi, rename tasks -> runs ([ba37afd](https://github.com/warpdotdev/warp-sdk-typescript/commit/ba37afdd4058e549d5f91d849c4ded22909ba2ec))
14
+ * **api:** created at filter in list view ([7594f38](https://github.com/warpdotdev/warp-sdk-typescript/commit/7594f384c04394aa1088c3c132579da450f60e23))
15
+
16
+
17
+ ### Chores
18
+
19
+ * break long lines in snippets into multiline ([98aa96c](https://github.com/warpdotdev/warp-sdk-typescript/commit/98aa96ceed31e121df6b97593289bbc663178a8c))
20
+ * **internal:** update `actions/checkout` version ([a7cc203](https://github.com/warpdotdev/warp-sdk-typescript/commit/a7cc2030b6b76b88a3b0824d0bb0329779b0e5f2))
21
+ * **internal:** update lock file ([7bfcb75](https://github.com/warpdotdev/warp-sdk-typescript/commit/7bfcb758c3bd90a63d48b03c95ee362eb43aa7a8))
22
+ * **internal:** upgrade babel, qs, js-yaml ([6f26eb0](https://github.com/warpdotdev/warp-sdk-typescript/commit/6f26eb04ad4dc02fdfd2d686d8f559345ce9dbfa))
23
+ * **internal:** upgrade brace-expansion and @babel/helpers ([d446259](https://github.com/warpdotdev/warp-sdk-typescript/commit/d4462597cd87304f04d0c2a8452fdba579939e4b))
24
+
3
25
  ## 0.3.0 (2026-01-05)
4
26
 
5
27
  Full Changelog: [v0.2.0...v0.3.0](https://github.com/warpdotdev/warp-sdk-typescript/compare/v0.2.0...v0.3.0)
package/README.md CHANGED
@@ -28,7 +28,7 @@ const client = new WarpAPI({
28
28
 
29
29
  const response = await client.agent.run({ prompt: 'Fix the bug in auth.go' });
30
30
 
31
- console.log(response.task_id);
31
+ console.log(response.run_id);
32
32
  ```
33
33
 
34
34
  ### Using environments and configuration
@@ -206,7 +206,7 @@ const { data: response, response: raw } = await client.agent
206
206
  .run({ prompt: 'Fix the bug in auth.go' })
207
207
  .withResponse();
208
208
  console.log(raw.headers.get('X-My-Header'));
209
- console.log(response.task_id);
209
+ console.log(response.run_id);
210
210
  ```
211
211
 
212
212
  ### Logging
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "warp-agent-sdk",
3
- "version": "0.3.0",
3
+ "version": "1.0.0-alpha.0",
4
4
  "description": "The official TypeScript library for the Warp API API",
5
5
  "author": "Warp API <>",
6
6
  "types": "./index.d.ts",
@@ -1,13 +1,13 @@
1
1
  import { APIResource } from "../../core/resource.mjs";
2
- import * as TasksAPI from "./tasks.mjs";
3
- import { TaskItem, TaskListParams, TaskListResponse, TaskSourceType, TaskState, Tasks } from "./tasks.mjs";
2
+ import * as RunsAPI from "./runs.mjs";
3
+ import { RunItem, RunListParams, RunListResponse, RunSourceType, RunState, Runs } from "./runs.mjs";
4
4
  import { APIPromise } from "../../core/api-promise.mjs";
5
5
  import { RequestOptions } from "../../internal/request-options.mjs";
6
6
  export declare class Agent extends APIResource {
7
- tasks: TasksAPI.Tasks;
7
+ runs: RunsAPI.Runs;
8
8
  /**
9
9
  * Spawn an ambient agent with a prompt and optional configuration. The agent will
10
- * be queued for execution and assigned a unique task ID.
10
+ * be queued for execution and assigned a unique run ID.
11
11
  *
12
12
  * @example
13
13
  * ```ts
@@ -19,7 +19,7 @@ export declare class Agent extends APIResource {
19
19
  run(body: AgentRunParams, options?: RequestOptions): APIPromise<AgentRunResponse>;
20
20
  }
21
21
  /**
22
- * Configuration for an ambient agent task
22
+ * Configuration for an ambient agent run
23
23
  */
24
24
  export interface AmbientAgentConfig {
25
25
  /**
@@ -27,7 +27,7 @@ export interface AmbientAgentConfig {
27
27
  */
28
28
  base_prompt?: string;
29
29
  /**
30
- * UID of a CloudEnvironment GSO to use
30
+ * UID of the environment to run the agent in
31
31
  */
32
32
  environment_id?: string;
33
33
  /**
@@ -37,7 +37,7 @@ export interface AmbientAgentConfig {
37
37
  [key: string]: AmbientAgentConfig.McpServers;
38
38
  };
39
39
  /**
40
- * LLM model to use (uses workspace default if not specified)
40
+ * LLM model to use (uses team default if not specified)
41
41
  */
42
42
  model_id?: string;
43
43
  /**
@@ -83,20 +83,20 @@ export declare namespace AmbientAgentConfig {
83
83
  }
84
84
  export interface AgentRunResponse {
85
85
  /**
86
- * Current state of the task:
87
- *
88
- * - QUEUED: Task is waiting to be picked up
89
- * - PENDING: Task is being prepared
90
- * - CLAIMED: Task has been claimed by a worker
91
- * - INPROGRESS: Task is actively being executed
92
- * - SUCCEEDED: Task completed successfully
93
- * - FAILED: Task failed
86
+ * Unique identifier for the created run
94
87
  */
95
- state: TasksAPI.TaskState;
88
+ run_id: string;
96
89
  /**
97
- * Unique identifier for the created task
90
+ * Current state of the run:
91
+ *
92
+ * - QUEUED: Run is waiting to be picked up
93
+ * - PENDING: Run is being prepared
94
+ * - CLAIMED: Run has been claimed by a worker
95
+ * - INPROGRESS: Run is actively being executed
96
+ * - SUCCEEDED: Run completed successfully
97
+ * - FAILED: Run failed
98
98
  */
99
- task_id: string;
99
+ state: RunsAPI.RunState;
100
100
  }
101
101
  export interface AgentRunParams {
102
102
  /**
@@ -104,16 +104,20 @@ export interface AgentRunParams {
104
104
  */
105
105
  prompt: string;
106
106
  /**
107
- * Configuration for an ambient agent task
107
+ * Configuration for an ambient agent run
108
108
  */
109
109
  config?: AmbientAgentConfig;
110
110
  /**
111
- * Custom title for the task (auto-generated if not provided)
111
+ * Make the run visible to all team members, not only the calling user
112
+ */
113
+ team?: boolean;
114
+ /**
115
+ * Custom title for the run (auto-generated if not provided)
112
116
  */
113
117
  title?: string;
114
118
  }
115
119
  export declare namespace Agent {
116
120
  export { type AmbientAgentConfig as AmbientAgentConfig, type AgentRunResponse as AgentRunResponse, type AgentRunParams as AgentRunParams, };
117
- export { Tasks as Tasks, type TaskItem as TaskItem, type TaskSourceType as TaskSourceType, type TaskState as TaskState, type TaskListResponse as TaskListResponse, type TaskListParams as TaskListParams, };
121
+ export { Runs as Runs, type RunItem as RunItem, type RunSourceType as RunSourceType, type RunState as RunState, type RunListResponse as RunListResponse, type RunListParams as RunListParams, };
118
122
  }
119
123
  //# sourceMappingURL=agent.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"agent.d.mts","sourceRoot":"","sources":["../../src/resources/agent/agent.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,EAAE,QAAQ,EAAE,cAAc,EAAE,gBAAgB,EAAE,cAAc,EAAE,SAAS,EAAE,KAAK,EAAE;OAChF,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,KAAM,SAAQ,WAAW;IACpC,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAoC;IAEzD;;;;;;;;;;OAUG;IACH,GAAG,CAAC,IAAI,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,gBAAgB,CAAC;CAGlF;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,WAAW,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,kBAAkB,CAAC,UAAU,CAAA;KAAE,CAAC;IAE/D;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;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MAAM,CAAC;KAClB;CACF;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;;;;;;;;OASG;IACH,KAAK,EAAE,OAAO,CAAC,QAAQ,CAAC;CACzB;AAED,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,MAAM,CAAC,EAAE,kBAAkB,CAAC;IAE5B;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IAEf;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAID,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,cAAc,IAAI,cAAc,GACtC,CAAC;IAEF,OAAO,EACL,IAAI,IAAI,IAAI,EACZ,KAAK,OAAO,IAAI,OAAO,EACvB,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,QAAQ,IAAI,QAAQ,EACzB,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,aAAa,IAAI,aAAa,GACpC,CAAC;CACH"}
@@ -1,13 +1,13 @@
1
1
  import { APIResource } from "../../core/resource.js";
2
- import * as TasksAPI from "./tasks.js";
3
- import { TaskItem, TaskListParams, TaskListResponse, TaskSourceType, TaskState, Tasks } from "./tasks.js";
2
+ import * as RunsAPI from "./runs.js";
3
+ import { RunItem, RunListParams, RunListResponse, RunSourceType, RunState, Runs } from "./runs.js";
4
4
  import { APIPromise } from "../../core/api-promise.js";
5
5
  import { RequestOptions } from "../../internal/request-options.js";
6
6
  export declare class Agent extends APIResource {
7
- tasks: TasksAPI.Tasks;
7
+ runs: RunsAPI.Runs;
8
8
  /**
9
9
  * Spawn an ambient agent with a prompt and optional configuration. The agent will
10
- * be queued for execution and assigned a unique task ID.
10
+ * be queued for execution and assigned a unique run ID.
11
11
  *
12
12
  * @example
13
13
  * ```ts
@@ -19,7 +19,7 @@ export declare class Agent extends APIResource {
19
19
  run(body: AgentRunParams, options?: RequestOptions): APIPromise<AgentRunResponse>;
20
20
  }
21
21
  /**
22
- * Configuration for an ambient agent task
22
+ * Configuration for an ambient agent run
23
23
  */
24
24
  export interface AmbientAgentConfig {
25
25
  /**
@@ -27,7 +27,7 @@ export interface AmbientAgentConfig {
27
27
  */
28
28
  base_prompt?: string;
29
29
  /**
30
- * UID of a CloudEnvironment GSO to use
30
+ * UID of the environment to run the agent in
31
31
  */
32
32
  environment_id?: string;
33
33
  /**
@@ -37,7 +37,7 @@ export interface AmbientAgentConfig {
37
37
  [key: string]: AmbientAgentConfig.McpServers;
38
38
  };
39
39
  /**
40
- * LLM model to use (uses workspace default if not specified)
40
+ * LLM model to use (uses team default if not specified)
41
41
  */
42
42
  model_id?: string;
43
43
  /**
@@ -83,20 +83,20 @@ export declare namespace AmbientAgentConfig {
83
83
  }
84
84
  export interface AgentRunResponse {
85
85
  /**
86
- * Current state of the task:
87
- *
88
- * - QUEUED: Task is waiting to be picked up
89
- * - PENDING: Task is being prepared
90
- * - CLAIMED: Task has been claimed by a worker
91
- * - INPROGRESS: Task is actively being executed
92
- * - SUCCEEDED: Task completed successfully
93
- * - FAILED: Task failed
86
+ * Unique identifier for the created run
94
87
  */
95
- state: TasksAPI.TaskState;
88
+ run_id: string;
96
89
  /**
97
- * Unique identifier for the created task
90
+ * Current state of the run:
91
+ *
92
+ * - QUEUED: Run is waiting to be picked up
93
+ * - PENDING: Run is being prepared
94
+ * - CLAIMED: Run has been claimed by a worker
95
+ * - INPROGRESS: Run is actively being executed
96
+ * - SUCCEEDED: Run completed successfully
97
+ * - FAILED: Run failed
98
98
  */
99
- task_id: string;
99
+ state: RunsAPI.RunState;
100
100
  }
101
101
  export interface AgentRunParams {
102
102
  /**
@@ -104,16 +104,20 @@ export interface AgentRunParams {
104
104
  */
105
105
  prompt: string;
106
106
  /**
107
- * Configuration for an ambient agent task
107
+ * Configuration for an ambient agent run
108
108
  */
109
109
  config?: AmbientAgentConfig;
110
110
  /**
111
- * Custom title for the task (auto-generated if not provided)
111
+ * Make the run visible to all team members, not only the calling user
112
+ */
113
+ team?: boolean;
114
+ /**
115
+ * Custom title for the run (auto-generated if not provided)
112
116
  */
113
117
  title?: string;
114
118
  }
115
119
  export declare namespace Agent {
116
120
  export { type AmbientAgentConfig as AmbientAgentConfig, type AgentRunResponse as AgentRunResponse, type AgentRunParams as AgentRunParams, };
117
- export { Tasks as Tasks, type TaskItem as TaskItem, type TaskSourceType as TaskSourceType, type TaskState as TaskState, type TaskListResponse as TaskListResponse, type TaskListParams as TaskListParams, };
121
+ export { Runs as Runs, type RunItem as RunItem, type RunSourceType as RunSourceType, type RunState as RunState, type RunListResponse as RunListResponse, type RunListParams as RunListParams, };
118
122
  }
119
123
  //# sourceMappingURL=agent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../src/resources/agent/agent.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,EAAE,QAAQ,EAAE,cAAc,EAAE,gBAAgB,EAAE,cAAc,EAAE,SAAS,EAAE,KAAK,EAAE;OAChF,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,KAAM,SAAQ,WAAW;IACpC,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAoC;IAEzD;;;;;;;;;;OAUG;IACH,GAAG,CAAC,IAAI,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,gBAAgB,CAAC;CAGlF;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,WAAW,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,kBA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;SAAE,CAAC;QAEpC;;WAEG;QACH,GAAG,CAAC,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB;CACF;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;;;;;;;;OASG;IACH,KAAK,EAAE,OAAO,CAAC,QAAQ,CAAC;CACzB;AAED,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,MAAM,CAAC,EAAE,kBAAkB,CAAC;IAE5B;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IAEf;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAID,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,cAAc,IAAI,cAAc,GACtC,CAAC;IAEF,OAAO,EACL,IAAI,IAAI,IAAI,EACZ,KAAK,OAAO,IAAI,OAAO,EACvB,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,QAAQ,IAAI,QAAQ,EACzB,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,aAAa,IAAI,aAAa,GACpC,CAAC;CACH"}
@@ -4,16 +4,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.Agent = void 0;
5
5
  const tslib_1 = require("../../internal/tslib.js");
6
6
  const resource_1 = require("../../core/resource.js");
7
- const TasksAPI = tslib_1.__importStar(require("./tasks.js"));
8
- const tasks_1 = require("./tasks.js");
7
+ const RunsAPI = tslib_1.__importStar(require("./runs.js"));
8
+ const runs_1 = require("./runs.js");
9
9
  class Agent extends resource_1.APIResource {
10
10
  constructor() {
11
11
  super(...arguments);
12
- this.tasks = new TasksAPI.Tasks(this._client);
12
+ this.runs = new RunsAPI.Runs(this._client);
13
13
  }
14
14
  /**
15
15
  * Spawn an ambient agent with a prompt and optional configuration. The agent will
16
- * be queued for execution and assigned a unique task ID.
16
+ * be queued for execution and assigned a unique run ID.
17
17
  *
18
18
  * @example
19
19
  * ```ts
@@ -27,5 +27,5 @@ class Agent extends resource_1.APIResource {
27
27
  }
28
28
  }
29
29
  exports.Agent = Agent;
30
- Agent.Tasks = tasks_1.Tasks;
30
+ Agent.Runs = runs_1.Runs;
31
31
  //# sourceMappingURL=agent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"agent.js","sourceRoot":"","sources":["../../src/resources/agent/agent.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,6DAAoC;AACpC,sCAAuG;AAIvG,MAAa,KAAM,SAAQ,sBAAW;IAAtC;;QACE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAgB3D,CAAC;IAdC;;;;;;;;;;OAUG;IACH,GAAG,CAAC,IAAoB,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/D,CAAC;CACF;AAjBD,sBAiBC;AA0GD,KAAK,CAAC,KAAK,GAAG,aAAK,CAAC"}
1
+ {"version":3,"file":"agent.js","sourceRoot":"","sources":["../../src/resources/agent/agent.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,2DAAkC;AAClC,oCAAgG;AAIhG,MAAa,KAAM,SAAQ,sBAAW;IAAtC;;QACE,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAgBtD,CAAC;IAdC;;;;;;;;;;OAUG;IACH,GAAG,CAAC,IAAoB,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/D,CAAC;CACF;AAjBD,sBAiBC;AA+GD,KAAK,CAAC,IAAI,GAAG,WAAI,CAAC"}
@@ -1,15 +1,15 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
  import { APIResource } from "../../core/resource.mjs";
3
- import * as TasksAPI from "./tasks.mjs";
4
- import { Tasks } from "./tasks.mjs";
3
+ import * as RunsAPI from "./runs.mjs";
4
+ import { Runs } from "./runs.mjs";
5
5
  export class Agent extends APIResource {
6
6
  constructor() {
7
7
  super(...arguments);
8
- this.tasks = new TasksAPI.Tasks(this._client);
8
+ this.runs = new RunsAPI.Runs(this._client);
9
9
  }
10
10
  /**
11
11
  * Spawn an ambient agent with a prompt and optional configuration. The agent will
12
- * be queued for execution and assigned a unique task ID.
12
+ * be queued for execution and assigned a unique run ID.
13
13
  *
14
14
  * @example
15
15
  * ```ts
@@ -22,5 +22,5 @@ export class Agent extends APIResource {
22
22
  return this._client.post('/agent/run', { body, ...options });
23
23
  }
24
24
  }
25
- Agent.Tasks = Tasks;
25
+ Agent.Runs = Runs;
26
26
  //# sourceMappingURL=agent.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"agent.mjs","sourceRoot":"","sources":["../../src/resources/agent/agent.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,EAAyE,KAAK,EAAE;AAIvF,MAAM,OAAO,KAAM,SAAQ,WAAW;IAAtC;;QACE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAgB3D,CAAC;IAdC;;;;;;;;;;OAUG;IACH,GAAG,CAAC,IAAoB,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/D,CAAC;CACF;AA0GD,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC"}
1
+ {"version":3,"file":"agent.mjs","sourceRoot":"","sources":["../../src/resources/agent/agent.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,EAAoE,IAAI,EAAE;AAIjF,MAAM,OAAO,KAAM,SAAQ,WAAW;IAAtC;;QACE,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAgBtD,CAAC;IAdC;;;;;;;;;;OAUG;IACH,GAAG,CAAC,IAAoB,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/D,CAAC;CACF;AA+GD,KAAK,CAAC,IAAI,GAAG,IAAI,CAAC"}
@@ -1,3 +1,3 @@
1
1
  export { Agent, type AmbientAgentConfig, type AgentRunResponse, type AgentRunParams } from "./agent.mjs";
2
- export { Tasks, type TaskItem, type TaskSourceType, type TaskState, type TaskListResponse, type TaskListParams, } from "./tasks.mjs";
2
+ export { Runs, type RunItem, type RunSourceType, type RunState, type RunListResponse, type RunListParams, } from "./runs.mjs";
3
3
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/agent/index.ts"],"names":[],"mappings":"OAEO,EAAE,KAAK,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,KAAK,cAAc,EAAE;OAC9E,EACL,KAAK,EACL,KAAK,QAAQ,EACb,KAAK,cAAc,EACnB,KAAK,SAAS,EACd,KAAK,gBAAgB,EACrB,KAAK,cAAc,GACpB"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/agent/index.ts"],"names":[],"mappings":"OAEO,EAAE,KAAK,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,KAAK,cAAc,EAAE;OAC9E,EACL,IAAI,EACJ,KAAK,OAAO,EACZ,KAAK,aAAa,EAClB,KAAK,QAAQ,EACb,KAAK,eAAe,EACpB,KAAK,aAAa,GACnB"}
@@ -1,3 +1,3 @@
1
1
  export { Agent, type AmbientAgentConfig, type AgentRunResponse, type AgentRunParams } from "./agent.js";
2
- export { Tasks, type TaskItem, type TaskSourceType, type TaskState, type TaskListResponse, type TaskListParams, } from "./tasks.js";
2
+ export { Runs, type RunItem, type RunSourceType, type RunState, type RunListResponse, type RunListParams, } from "./runs.js";
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/agent/index.ts"],"names":[],"mappings":"OAEO,EAAE,KAAK,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,KAAK,cAAc,EAAE;OAC9E,EACL,KAAK,EACL,KAAK,QAAQ,EACb,KAAK,cAAc,EACnB,KAAK,SAAS,EACd,KAAK,gBAAgB,EACrB,KAAK,cAAc,GACpB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/agent/index.ts"],"names":[],"mappings":"OAEO,EAAE,KAAK,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,KAAK,cAAc,EAAE;OAC9E,EACL,IAAI,EACJ,KAAK,OAAO,EACZ,KAAK,aAAa,EAClB,KAAK,QAAQ,EACb,KAAK,eAAe,EACpB,KAAK,aAAa,GACnB"}
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Tasks = exports.Agent = void 0;
4
+ exports.Runs = exports.Agent = void 0;
5
5
  var agent_1 = require("./agent.js");
6
6
  Object.defineProperty(exports, "Agent", { enumerable: true, get: function () { return agent_1.Agent; } });
7
- var tasks_1 = require("./tasks.js");
8
- Object.defineProperty(exports, "Tasks", { enumerable: true, get: function () { return tasks_1.Tasks; } });
7
+ var runs_1 = require("./runs.js");
8
+ Object.defineProperty(exports, "Runs", { enumerable: true, get: function () { return runs_1.Runs; } });
9
9
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/agent/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oCAAqG;AAA5F,8FAAA,KAAK,OAAA;AACd,oCAOiB;AANf,8FAAA,KAAK,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/agent/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oCAAqG;AAA5F,8FAAA,KAAK,OAAA;AACd,kCAOgB;AANd,4FAAA,IAAI,OAAA"}
@@ -1,4 +1,4 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
  export { Agent } from "./agent.mjs";
3
- export { Tasks, } from "./tasks.mjs";
3
+ export { Runs, } from "./runs.mjs";
4
4
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/agent/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,KAAK,EAAuE;OAC9E,EACL,KAAK,GAMN"}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/agent/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,KAAK,EAAuE;OAC9E,EACL,IAAI,GAML"}
@@ -0,0 +1,222 @@
1
+ import { APIResource } from "../../core/resource.mjs";
2
+ import * as AgentAPI from "./agent.mjs";
3
+ import { APIPromise } from "../../core/api-promise.mjs";
4
+ import { RequestOptions } from "../../internal/request-options.mjs";
5
+ export declare class Runs extends APIResource {
6
+ /**
7
+ * Retrieve detailed information about a specific agent run, including the full
8
+ * prompt, session link, and resolved configuration.
9
+ *
10
+ * @example
11
+ * ```ts
12
+ * const runItem = await client.agent.runs.retrieve('runId');
13
+ * ```
14
+ */
15
+ retrieve(runID: string, options?: RequestOptions): APIPromise<RunItem>;
16
+ /**
17
+ * Retrieve a paginated list of agent runs with optional filtering. Results are
18
+ * ordered by creation time (newest first).
19
+ *
20
+ * @example
21
+ * ```ts
22
+ * const runs = await client.agent.runs.list();
23
+ * ```
24
+ */
25
+ list(query?: RunListParams | null | undefined, options?: RequestOptions): APIPromise<RunListResponse>;
26
+ }
27
+ export interface RunItem {
28
+ /**
29
+ * Timestamp when the run was created (RFC3339)
30
+ */
31
+ created_at: string;
32
+ /**
33
+ * The prompt/instruction for the agent
34
+ */
35
+ prompt: string;
36
+ /**
37
+ * Unique identifier for the run
38
+ */
39
+ run_id: string;
40
+ /**
41
+ * Current state of the run:
42
+ *
43
+ * - QUEUED: Run is waiting to be picked up
44
+ * - PENDING: Run is being prepared
45
+ * - CLAIMED: Run has been claimed by a worker
46
+ * - INPROGRESS: Run is actively being executed
47
+ * - SUCCEEDED: Run completed successfully
48
+ * - FAILED: Run failed
49
+ */
50
+ state: RunState;
51
+ /**
52
+ * @deprecated Use run_id instead.
53
+ */
54
+ task_id: string;
55
+ /**
56
+ * Human-readable title for the run
57
+ */
58
+ title: string;
59
+ /**
60
+ * Timestamp when the run was last updated (RFC3339)
61
+ */
62
+ updated_at: string;
63
+ /**
64
+ * Configuration for an ambient agent run
65
+ */
66
+ agent_config?: AgentAPI.AmbientAgentConfig;
67
+ /**
68
+ * UUID of the conversation associated with the run
69
+ */
70
+ conversation_id?: string;
71
+ creator?: RunItem.Creator;
72
+ /**
73
+ * Whether the sandbox environment is currently running
74
+ */
75
+ is_sandbox_running?: boolean;
76
+ /**
77
+ * Resource usage information for the run
78
+ */
79
+ request_usage?: RunItem.RequestUsage;
80
+ /**
81
+ * UUID of the shared session (if available)
82
+ */
83
+ session_id?: string;
84
+ /**
85
+ * URL to view the agent session
86
+ */
87
+ session_link?: string;
88
+ /**
89
+ * Source that created the run:
90
+ *
91
+ * - LINEAR: Created from Linear integration
92
+ * - API: Created via the Warp API
93
+ * - SLACK: Created from Slack integration
94
+ * - LOCAL: Created from local CLI/app
95
+ * - SCHEDULED_AGENT: Created by a scheduled agent
96
+ */
97
+ source?: RunSourceType;
98
+ /**
99
+ * Timestamp when the agent started working on the run (RFC3339)
100
+ */
101
+ started_at?: string | null;
102
+ status_message?: RunItem.StatusMessage;
103
+ }
104
+ export declare namespace RunItem {
105
+ interface Creator {
106
+ /**
107
+ * Display name of the creator
108
+ */
109
+ display_name?: string;
110
+ /**
111
+ * URL to the creator's photo
112
+ */
113
+ photo_url?: string;
114
+ /**
115
+ * Type of the creator principal
116
+ */
117
+ type?: 'user' | 'service_account';
118
+ /**
119
+ * Unique identifier of the creator
120
+ */
121
+ uid?: string;
122
+ }
123
+ /**
124
+ * Resource usage information for the run
125
+ */
126
+ interface RequestUsage {
127
+ /**
128
+ * Cost of compute resources for the run
129
+ */
130
+ compute_cost?: number;
131
+ /**
132
+ * Cost of LLM inference for the run
133
+ */
134
+ inference_cost?: number;
135
+ }
136
+ interface StatusMessage {
137
+ /**
138
+ * Human-readable status message
139
+ */
140
+ message?: string;
141
+ }
142
+ }
143
+ /**
144
+ * Source that created the run:
145
+ *
146
+ * - LINEAR: Created from Linear integration
147
+ * - API: Created via the Warp API
148
+ * - SLACK: Created from Slack integration
149
+ * - LOCAL: Created from local CLI/app
150
+ * - SCHEDULED_AGENT: Created by a scheduled agent
151
+ */
152
+ export type RunSourceType = 'LINEAR' | 'API' | 'SLACK' | 'LOCAL' | 'SCHEDULED_AGENT';
153
+ /**
154
+ * Current state of the run:
155
+ *
156
+ * - QUEUED: Run is waiting to be picked up
157
+ * - PENDING: Run is being prepared
158
+ * - CLAIMED: Run has been claimed by a worker
159
+ * - INPROGRESS: Run is actively being executed
160
+ * - SUCCEEDED: Run completed successfully
161
+ * - FAILED: Run failed
162
+ */
163
+ export type RunState = 'QUEUED' | 'PENDING' | 'CLAIMED' | 'INPROGRESS' | 'SUCCEEDED' | 'FAILED';
164
+ export interface RunListResponse {
165
+ page_info: RunListResponse.PageInfo;
166
+ runs: Array<RunItem>;
167
+ }
168
+ export declare namespace RunListResponse {
169
+ interface PageInfo {
170
+ /**
171
+ * Whether there are more results available
172
+ */
173
+ has_next_page: boolean;
174
+ /**
175
+ * Opaque cursor for fetching the next page
176
+ */
177
+ next_cursor?: string;
178
+ }
179
+ }
180
+ export interface RunListParams {
181
+ /**
182
+ * Filter by agent config name
183
+ */
184
+ config_name?: string;
185
+ /**
186
+ * Filter runs created after this timestamp (RFC3339 format)
187
+ */
188
+ created_after?: string;
189
+ /**
190
+ * Filter runs created before this timestamp (RFC3339 format)
191
+ */
192
+ created_before?: string;
193
+ /**
194
+ * Filter by creator UID (user or service account)
195
+ */
196
+ creator?: string;
197
+ /**
198
+ * Pagination cursor from previous response
199
+ */
200
+ cursor?: string;
201
+ /**
202
+ * Maximum number of runs to return
203
+ */
204
+ limit?: number;
205
+ /**
206
+ * Filter by model ID
207
+ */
208
+ model_id?: string;
209
+ /**
210
+ * Filter by run source type
211
+ */
212
+ source?: RunSourceType;
213
+ /**
214
+ * Filter by run state. Can be specified multiple times to match any of the given
215
+ * states.
216
+ */
217
+ state?: Array<RunState>;
218
+ }
219
+ export declare namespace Runs {
220
+ export { type RunItem as RunItem, type RunSourceType as RunSourceType, type RunState as RunState, type RunListResponse as RunListResponse, type RunListParams as RunListParams, };
221
+ }
222
+ //# sourceMappingURL=runs.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runs.d.mts","sourceRoot":"","sources":["../../src/resources/agent/runs.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;;;;;;OAQG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,OAA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