oz-agent-sdk 1.0.0-alpha.7
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/CHANGELOG.md +145 -0
- package/LICENSE +201 -0
- package/README.md +422 -0
- package/api-promise.d.mts +2 -0
- package/api-promise.d.mts.map +1 -0
- package/api-promise.d.ts +2 -0
- package/api-promise.d.ts.map +1 -0
- package/api-promise.js +6 -0
- package/api-promise.js.map +1 -0
- package/api-promise.mjs +2 -0
- package/api-promise.mjs.map +1 -0
- package/client.d.mts +179 -0
- package/client.d.mts.map +1 -0
- package/client.d.ts +179 -0
- package/client.d.ts.map +1 -0
- package/client.js +454 -0
- package/client.js.map +1 -0
- package/client.mjs +450 -0
- package/client.mjs.map +1 -0
- package/core/api-promise.d.mts +46 -0
- package/core/api-promise.d.mts.map +1 -0
- package/core/api-promise.d.ts +46 -0
- package/core/api-promise.d.ts.map +1 -0
- package/core/api-promise.js +74 -0
- package/core/api-promise.js.map +1 -0
- package/core/api-promise.mjs +70 -0
- package/core/api-promise.mjs.map +1 -0
- package/core/error.d.mts +46 -0
- package/core/error.d.mts.map +1 -0
- package/core/error.d.ts +46 -0
- package/core/error.d.ts.map +1 -0
- package/core/error.js +113 -0
- package/core/error.js.map +1 -0
- package/core/error.mjs +97 -0
- package/core/error.mjs.map +1 -0
- package/core/resource.d.mts +6 -0
- package/core/resource.d.mts.map +1 -0
- package/core/resource.d.ts +6 -0
- package/core/resource.d.ts.map +1 -0
- package/core/resource.js +11 -0
- package/core/resource.js.map +1 -0
- package/core/resource.mjs +7 -0
- package/core/resource.mjs.map +1 -0
- package/core/uploads.d.mts +3 -0
- package/core/uploads.d.mts.map +1 -0
- package/core/uploads.d.ts +3 -0
- package/core/uploads.d.ts.map +1 -0
- package/core/uploads.js +6 -0
- package/core/uploads.js.map +1 -0
- package/core/uploads.mjs +2 -0
- package/core/uploads.mjs.map +1 -0
- package/error.d.mts +2 -0
- package/error.d.mts.map +1 -0
- package/error.d.ts +2 -0
- package/error.d.ts.map +1 -0
- package/error.js +6 -0
- package/error.js.map +1 -0
- package/error.mjs +2 -0
- package/error.mjs.map +1 -0
- package/index.d.mts +6 -0
- package/index.d.mts.map +1 -0
- package/index.d.ts +6 -0
- package/index.d.ts.map +1 -0
- package/index.js +30 -0
- package/index.js.map +1 -0
- package/index.mjs +7 -0
- package/index.mjs.map +1 -0
- package/internal/builtin-types.d.mts +73 -0
- package/internal/builtin-types.d.mts.map +1 -0
- package/internal/builtin-types.d.ts +73 -0
- package/internal/builtin-types.d.ts.map +1 -0
- package/internal/builtin-types.js +4 -0
- package/internal/builtin-types.js.map +1 -0
- package/internal/builtin-types.mjs +3 -0
- package/internal/builtin-types.mjs.map +1 -0
- package/internal/detect-platform.d.mts +15 -0
- package/internal/detect-platform.d.mts.map +1 -0
- package/internal/detect-platform.d.ts +15 -0
- package/internal/detect-platform.d.ts.map +1 -0
- package/internal/detect-platform.js +162 -0
- package/internal/detect-platform.js.map +1 -0
- package/internal/detect-platform.mjs +157 -0
- package/internal/detect-platform.mjs.map +1 -0
- package/internal/errors.d.mts +3 -0
- package/internal/errors.d.mts.map +1 -0
- package/internal/errors.d.ts +3 -0
- package/internal/errors.d.ts.map +1 -0
- package/internal/errors.js +41 -0
- package/internal/errors.js.map +1 -0
- package/internal/errors.mjs +36 -0
- package/internal/errors.mjs.map +1 -0
- package/internal/headers.d.mts +20 -0
- package/internal/headers.d.mts.map +1 -0
- package/internal/headers.d.ts +20 -0
- package/internal/headers.d.ts.map +1 -0
- package/internal/headers.js +79 -0
- package/internal/headers.js.map +1 -0
- package/internal/headers.mjs +74 -0
- package/internal/headers.mjs.map +1 -0
- package/internal/parse.d.mts +12 -0
- package/internal/parse.d.mts.map +1 -0
- package/internal/parse.d.ts +12 -0
- package/internal/parse.d.ts.map +1 -0
- package/internal/parse.js +40 -0
- package/internal/parse.js.map +1 -0
- package/internal/parse.mjs +37 -0
- package/internal/parse.mjs.map +1 -0
- package/internal/qs/formats.d.mts +7 -0
- package/internal/qs/formats.d.mts.map +1 -0
- package/internal/qs/formats.d.ts +7 -0
- package/internal/qs/formats.d.ts.map +1 -0
- package/internal/qs/formats.js +13 -0
- package/internal/qs/formats.js.map +1 -0
- package/internal/qs/formats.mjs +9 -0
- package/internal/qs/formats.mjs.map +1 -0
- package/internal/qs/index.d.mts +10 -0
- package/internal/qs/index.d.mts.map +1 -0
- package/internal/qs/index.d.ts +10 -0
- package/internal/qs/index.d.ts.map +1 -0
- package/internal/qs/index.js +14 -0
- package/internal/qs/index.js.map +1 -0
- package/internal/qs/index.mjs +10 -0
- package/internal/qs/index.mjs.map +1 -0
- package/internal/qs/stringify.d.mts +3 -0
- package/internal/qs/stringify.d.mts.map +1 -0
- package/internal/qs/stringify.d.ts +3 -0
- package/internal/qs/stringify.d.ts.map +1 -0
- package/internal/qs/stringify.js +277 -0
- package/internal/qs/stringify.js.map +1 -0
- package/internal/qs/stringify.mjs +274 -0
- package/internal/qs/stringify.mjs.map +1 -0
- package/internal/qs/types.d.mts +57 -0
- package/internal/qs/types.d.mts.map +1 -0
- package/internal/qs/types.d.ts +57 -0
- package/internal/qs/types.d.ts.map +1 -0
- package/internal/qs/types.js +3 -0
- package/internal/qs/types.js.map +1 -0
- package/internal/qs/types.mjs +2 -0
- package/internal/qs/types.mjs.map +1 -0
- package/internal/qs/utils.d.mts +15 -0
- package/internal/qs/utils.d.mts.map +1 -0
- package/internal/qs/utils.d.ts +15 -0
- package/internal/qs/utils.d.ts.map +1 -0
- package/internal/qs/utils.js +230 -0
- package/internal/qs/utils.js.map +1 -0
- package/internal/qs/utils.mjs +217 -0
- package/internal/qs/utils.mjs.map +1 -0
- package/internal/request-options.d.mts +75 -0
- package/internal/request-options.d.mts.map +1 -0
- package/internal/request-options.d.ts +75 -0
- package/internal/request-options.d.ts.map +1 -0
- package/internal/request-options.js +14 -0
- package/internal/request-options.js.map +1 -0
- package/internal/request-options.mjs +10 -0
- package/internal/request-options.mjs.map +1 -0
- package/internal/shim-types.d.mts +17 -0
- package/internal/shim-types.d.mts.map +1 -0
- package/internal/shim-types.d.ts +17 -0
- package/internal/shim-types.d.ts.map +1 -0
- package/internal/shim-types.js +4 -0
- package/internal/shim-types.js.map +1 -0
- package/internal/shim-types.mjs +3 -0
- package/internal/shim-types.mjs.map +1 -0
- package/internal/shims.d.mts +20 -0
- package/internal/shims.d.mts.map +1 -0
- package/internal/shims.d.ts +20 -0
- package/internal/shims.d.ts.map +1 -0
- package/internal/shims.js +92 -0
- package/internal/shims.js.map +1 -0
- package/internal/shims.mjs +85 -0
- package/internal/shims.mjs.map +1 -0
- package/internal/to-file.d.mts +45 -0
- package/internal/to-file.d.mts.map +1 -0
- package/internal/to-file.d.ts +45 -0
- package/internal/to-file.d.ts.map +1 -0
- package/internal/to-file.js +91 -0
- package/internal/to-file.js.map +1 -0
- package/internal/to-file.mjs +88 -0
- package/internal/to-file.mjs.map +1 -0
- package/internal/tslib.js +81 -0
- package/internal/tslib.mjs +17 -0
- package/internal/types.d.mts +69 -0
- package/internal/types.d.mts.map +1 -0
- package/internal/types.d.ts +69 -0
- package/internal/types.d.ts.map +1 -0
- package/internal/types.js +4 -0
- package/internal/types.js.map +1 -0
- package/internal/types.mjs +3 -0
- package/internal/types.mjs.map +1 -0
- package/internal/uploads.d.mts +42 -0
- package/internal/uploads.d.mts.map +1 -0
- package/internal/uploads.d.ts +42 -0
- package/internal/uploads.d.ts.map +1 -0
- package/internal/uploads.js +141 -0
- package/internal/uploads.js.map +1 -0
- package/internal/uploads.mjs +131 -0
- package/internal/uploads.mjs.map +1 -0
- package/internal/utils/base64.d.mts +3 -0
- package/internal/utils/base64.d.mts.map +1 -0
- package/internal/utils/base64.d.ts +3 -0
- package/internal/utils/base64.d.ts.map +1 -0
- package/internal/utils/base64.js +38 -0
- package/internal/utils/base64.js.map +1 -0
- package/internal/utils/base64.mjs +33 -0
- package/internal/utils/base64.mjs.map +1 -0
- package/internal/utils/bytes.d.mts +4 -0
- package/internal/utils/bytes.d.mts.map +1 -0
- package/internal/utils/bytes.d.ts +4 -0
- package/internal/utils/bytes.d.ts.map +1 -0
- package/internal/utils/bytes.js +31 -0
- package/internal/utils/bytes.js.map +1 -0
- package/internal/utils/bytes.mjs +26 -0
- package/internal/utils/bytes.mjs.map +1 -0
- package/internal/utils/env.d.mts +9 -0
- package/internal/utils/env.d.mts.map +1 -0
- package/internal/utils/env.d.ts +9 -0
- package/internal/utils/env.d.ts.map +1 -0
- package/internal/utils/env.js +22 -0
- package/internal/utils/env.js.map +1 -0
- package/internal/utils/env.mjs +18 -0
- package/internal/utils/env.mjs.map +1 -0
- package/internal/utils/log.d.mts +37 -0
- package/internal/utils/log.d.mts.map +1 -0
- package/internal/utils/log.d.ts +37 -0
- package/internal/utils/log.d.ts.map +1 -0
- package/internal/utils/log.js +85 -0
- package/internal/utils/log.js.map +1 -0
- package/internal/utils/log.mjs +79 -0
- package/internal/utils/log.mjs.map +1 -0
- package/internal/utils/path.d.mts +15 -0
- package/internal/utils/path.d.mts.map +1 -0
- package/internal/utils/path.d.ts +15 -0
- package/internal/utils/path.d.ts.map +1 -0
- package/internal/utils/path.js +79 -0
- package/internal/utils/path.js.map +1 -0
- package/internal/utils/path.mjs +74 -0
- package/internal/utils/path.mjs.map +1 -0
- package/internal/utils/sleep.d.mts +2 -0
- package/internal/utils/sleep.d.mts.map +1 -0
- package/internal/utils/sleep.d.ts +2 -0
- package/internal/utils/sleep.d.ts.map +1 -0
- package/internal/utils/sleep.js +7 -0
- package/internal/utils/sleep.js.map +1 -0
- package/internal/utils/sleep.mjs +3 -0
- package/internal/utils/sleep.mjs.map +1 -0
- package/internal/utils/uuid.d.mts +5 -0
- package/internal/utils/uuid.d.mts.map +1 -0
- package/internal/utils/uuid.d.ts +5 -0
- package/internal/utils/uuid.d.ts.map +1 -0
- package/internal/utils/uuid.js +19 -0
- package/internal/utils/uuid.js.map +1 -0
- package/internal/utils/uuid.mjs +15 -0
- package/internal/utils/uuid.mjs.map +1 -0
- package/internal/utils/values.d.mts +18 -0
- package/internal/utils/values.d.mts.map +1 -0
- package/internal/utils/values.d.ts +18 -0
- package/internal/utils/values.d.ts.map +1 -0
- package/internal/utils/values.js +112 -0
- package/internal/utils/values.js.map +1 -0
- package/internal/utils/values.mjs +94 -0
- package/internal/utils/values.mjs.map +1 -0
- package/internal/utils.d.mts +7 -0
- package/internal/utils.d.mts.map +1 -0
- package/internal/utils.d.ts +7 -0
- package/internal/utils.d.ts.map +1 -0
- package/internal/utils.js +11 -0
- package/internal/utils.js.map +1 -0
- package/internal/utils.mjs +8 -0
- package/internal/utils.mjs.map +1 -0
- package/package.json +137 -0
- package/resource.d.mts +2 -0
- package/resource.d.mts.map +1 -0
- package/resource.d.ts +2 -0
- package/resource.d.ts.map +1 -0
- package/resource.js +6 -0
- package/resource.js.map +1 -0
- package/resource.mjs +2 -0
- package/resource.mjs.map +1 -0
- package/resources/agent/agent.d.mts +336 -0
- package/resources/agent/agent.d.mts.map +1 -0
- package/resources/agent/agent.d.ts +336 -0
- package/resources/agent/agent.d.ts.map +1 -0
- package/resources/agent/agent.js +47 -0
- package/resources/agent/agent.js.map +1 -0
- package/resources/agent/agent.mjs +42 -0
- package/resources/agent/agent.mjs.map +1 -0
- package/resources/agent/index.d.mts +4 -0
- package/resources/agent/index.d.mts.map +1 -0
- package/resources/agent/index.d.ts +4 -0
- package/resources/agent/index.d.ts.map +1 -0
- package/resources/agent/index.js +11 -0
- package/resources/agent/index.js.map +1 -0
- package/resources/agent/index.mjs +5 -0
- package/resources/agent/index.mjs.map +1 -0
- package/resources/agent/runs.d.mts +381 -0
- package/resources/agent/runs.d.mts.map +1 -0
- package/resources/agent/runs.d.ts +381 -0
- package/resources/agent/runs.d.ts.map +1 -0
- package/resources/agent/runs.js +46 -0
- package/resources/agent/runs.js.map +1 -0
- package/resources/agent/runs.mjs +42 -0
- package/resources/agent/runs.mjs.map +1 -0
- package/resources/agent/schedules.d.mts +240 -0
- package/resources/agent/schedules.d.mts.map +1 -0
- package/resources/agent/schedules.d.ts +240 -0
- package/resources/agent/schedules.d.ts.map +1 -0
- package/resources/agent/schedules.js +111 -0
- package/resources/agent/schedules.js.map +1 -0
- package/resources/agent/schedules.mjs +107 -0
- package/resources/agent/schedules.mjs.map +1 -0
- package/resources/agent.d.mts +2 -0
- package/resources/agent.d.mts.map +1 -0
- package/resources/agent.d.ts +2 -0
- package/resources/agent.d.ts.map +1 -0
- package/resources/agent.js +6 -0
- package/resources/agent.js.map +1 -0
- package/resources/agent.mjs +3 -0
- package/resources/agent.mjs.map +1 -0
- package/resources/index.d.mts +2 -0
- package/resources/index.d.mts.map +1 -0
- package/resources/index.d.ts +2 -0
- package/resources/index.d.ts.map +1 -0
- package/resources/index.js +7 -0
- package/resources/index.js.map +1 -0
- package/resources/index.mjs +3 -0
- package/resources/index.mjs.map +1 -0
- package/resources.d.mts +2 -0
- package/resources.d.mts.map +1 -0
- package/resources.d.ts +2 -0
- package/resources.d.ts.map +1 -0
- package/resources.js +5 -0
- package/resources.js.map +1 -0
- package/resources.mjs +2 -0
- package/resources.mjs.map +1 -0
- package/src/api-promise.ts +2 -0
- package/src/client.ts +741 -0
- package/src/core/README.md +3 -0
- package/src/core/api-promise.ts +92 -0
- package/src/core/error.ts +130 -0
- package/src/core/resource.ts +11 -0
- package/src/core/uploads.ts +2 -0
- package/src/error.ts +2 -0
- package/src/index.ts +22 -0
- package/src/internal/README.md +3 -0
- package/src/internal/builtin-types.ts +93 -0
- package/src/internal/detect-platform.ts +196 -0
- package/src/internal/errors.ts +33 -0
- package/src/internal/headers.ts +97 -0
- package/src/internal/parse.ts +56 -0
- package/src/internal/qs/LICENSE.md +13 -0
- package/src/internal/qs/README.md +3 -0
- package/src/internal/qs/formats.ts +10 -0
- package/src/internal/qs/index.ts +13 -0
- package/src/internal/qs/stringify.ts +385 -0
- package/src/internal/qs/types.ts +71 -0
- package/src/internal/qs/utils.ts +265 -0
- package/src/internal/request-options.ts +91 -0
- package/src/internal/shim-types.ts +26 -0
- package/src/internal/shims.ts +107 -0
- package/src/internal/to-file.ts +154 -0
- package/src/internal/types.ts +95 -0
- package/src/internal/uploads.ts +187 -0
- package/src/internal/utils/base64.ts +40 -0
- package/src/internal/utils/bytes.ts +32 -0
- package/src/internal/utils/env.ts +18 -0
- package/src/internal/utils/log.ts +126 -0
- package/src/internal/utils/path.ts +88 -0
- package/src/internal/utils/sleep.ts +3 -0
- package/src/internal/utils/uuid.ts +17 -0
- package/src/internal/utils/values.ts +105 -0
- package/src/internal/utils.ts +8 -0
- package/src/lib/.keep +4 -0
- package/src/resource.ts +2 -0
- package/src/resources/agent/agent.ts +443 -0
- package/src/resources/agent/index.ts +32 -0
- package/src/resources/agent/runs.ts +478 -0
- package/src/resources/agent/schedules.ts +305 -0
- package/src/resources/agent.ts +3 -0
- package/src/resources/index.ts +14 -0
- package/src/resources.ts +1 -0
- package/src/tsconfig.json +11 -0
- package/src/uploads.ts +2 -0
- package/src/version.ts +1 -0
- package/uploads.d.mts +2 -0
- package/uploads.d.mts.map +1 -0
- package/uploads.d.ts +2 -0
- package/uploads.d.ts.map +1 -0
- package/uploads.js +6 -0
- package/uploads.js.map +1 -0
- package/uploads.mjs +2 -0
- package/uploads.mjs.map +1 -0
- package/version.d.mts +2 -0
- package/version.d.mts.map +1 -0
- package/version.d.ts +2 -0
- package/version.d.ts.map +1 -0
- package/version.js +5 -0
- package/version.js.map +1 -0
- package/version.mjs +2 -0
- package/version.mjs.map +1 -0
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Agent = void 0;
|
|
5
|
+
const tslib_1 = require("../../internal/tslib.js");
|
|
6
|
+
const resource_1 = require("../../core/resource.js");
|
|
7
|
+
const RunsAPI = tslib_1.__importStar(require("./runs.js"));
|
|
8
|
+
const runs_1 = require("./runs.js");
|
|
9
|
+
const SchedulesAPI = tslib_1.__importStar(require("./schedules.js"));
|
|
10
|
+
const schedules_1 = require("./schedules.js");
|
|
11
|
+
class Agent extends resource_1.APIResource {
|
|
12
|
+
constructor() {
|
|
13
|
+
super(...arguments);
|
|
14
|
+
this.runs = new RunsAPI.Runs(this._client);
|
|
15
|
+
this.schedules = new SchedulesAPI.Schedules(this._client);
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Retrieve a list of available agents (skills) that can be used to run tasks.
|
|
19
|
+
* Agents are discovered from environments or a specific repository.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```ts
|
|
23
|
+
* const agents = await client.agent.list();
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
list(query = {}, options) {
|
|
27
|
+
return this._client.get('/agent', { query, ...options });
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Spawn an cloud agent with a prompt and optional configuration. The agent will be
|
|
31
|
+
* queued for execution and assigned a unique run ID.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```ts
|
|
35
|
+
* const response = await client.agent.run({
|
|
36
|
+
* prompt: 'Fix the bug in auth.go',
|
|
37
|
+
* });
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
run(body, options) {
|
|
41
|
+
return this._client.post('/agent/run', { body, ...options });
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.Agent = Agent;
|
|
45
|
+
Agent.Runs = runs_1.Runs;
|
|
46
|
+
Agent.Schedules = schedules_1.Schedules;
|
|
47
|
+
//# sourceMappingURL=agent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent.js","sourceRoot":"","sources":["../../src/resources/agent/agent.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,2DAAkC;AAClC,oCASgB;AAChB,qEAA4C;AAC5C,8CAOqB;AAIrB,MAAa,KAAM,SAAQ,sBAAW;IAAtC;;QACE,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACpD,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAgC/E,CAAC;IA9BC;;;;;;;;OAQG;IACH,IAAI,CACF,QAA4C,EAAE,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3D,CAAC;IAED;;;;;;;;;;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;AAlCD,sBAkCC;AA2VD,KAAK,CAAC,IAAI,GAAG,WAAI,CAAC;AAClB,KAAK,CAAC,SAAS,GAAG,qBAAS,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import * as RunsAPI from "./runs.mjs";
|
|
4
|
+
import { Runs, } from "./runs.mjs";
|
|
5
|
+
import * as SchedulesAPI from "./schedules.mjs";
|
|
6
|
+
import { Schedules, } from "./schedules.mjs";
|
|
7
|
+
export class Agent extends APIResource {
|
|
8
|
+
constructor() {
|
|
9
|
+
super(...arguments);
|
|
10
|
+
this.runs = new RunsAPI.Runs(this._client);
|
|
11
|
+
this.schedules = new SchedulesAPI.Schedules(this._client);
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Retrieve a list of available agents (skills) that can be used to run tasks.
|
|
15
|
+
* Agents are discovered from environments or a specific repository.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```ts
|
|
19
|
+
* const agents = await client.agent.list();
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
list(query = {}, options) {
|
|
23
|
+
return this._client.get('/agent', { query, ...options });
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Spawn an cloud agent with a prompt and optional configuration. The agent will be
|
|
27
|
+
* queued for execution and assigned a unique run ID.
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```ts
|
|
31
|
+
* const response = await client.agent.run({
|
|
32
|
+
* prompt: 'Fix the bug in auth.go',
|
|
33
|
+
* });
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
run(body, options) {
|
|
37
|
+
return this._client.post('/agent/run', { body, ...options });
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
Agent.Runs = Runs;
|
|
41
|
+
Agent.Schedules = Schedules;
|
|
42
|
+
//# sourceMappingURL=agent.mjs.map
|
|
@@ -0,0 +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,OAAO;OACZ,EAQL,IAAI,GACL;OACM,KAAK,YAAY;OACjB,EAML,SAAS,GACV;AAID,MAAM,OAAO,KAAM,SAAQ,WAAW;IAAtC;;QACE,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACpD,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAgC/E,CAAC;IA9BC;;;;;;;;OAQG;IACH,IAAI,CACF,QAA4C,EAAE,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3D,CAAC;IAED;;;;;;;;;;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;AA2VD,KAAK,CAAC,IAAI,GAAG,IAAI,CAAC;AAClB,KAAK,CAAC,SAAS,GAAG,SAAS,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { Agent, type AgentSkill, type AmbientAgentConfig, type CloudEnvironmentConfig, type McpServerConfig, type UserProfile, type AgentListResponse, type AgentRunResponse, type AgentListParams, type AgentRunParams, } from "./agent.mjs";
|
|
2
|
+
export { Runs, type ArtifactItem, type RunItem, type RunSourceType, type RunState, type RunListResponse, type RunCancelResponse, type RunListParams, } from "./runs.mjs";
|
|
3
|
+
export { Schedules, type ScheduledAgentItem, type ScheduleListResponse, type ScheduleDeleteResponse, type ScheduleCreateParams, type ScheduleUpdateParams, } from "./schedules.mjs";
|
|
4
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/agent/index.ts"],"names":[],"mappings":"OAEO,EACL,KAAK,EACL,KAAK,UAAU,EACf,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,cAAc,GACpB;OACM,EACL,IAAI,EACJ,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,aAAa,EAClB,KAAK,QAAQ,EACb,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,aAAa,GACnB;OACM,EACL,SAAS,EACT,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,GAC1B"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { Agent, type AgentSkill, type AmbientAgentConfig, type CloudEnvironmentConfig, type McpServerConfig, type UserProfile, type AgentListResponse, type AgentRunResponse, type AgentListParams, type AgentRunParams, } from "./agent.js";
|
|
2
|
+
export { Runs, type ArtifactItem, type RunItem, type RunSourceType, type RunState, type RunListResponse, type RunCancelResponse, type RunListParams, } from "./runs.js";
|
|
3
|
+
export { Schedules, type ScheduledAgentItem, type ScheduleListResponse, type ScheduleDeleteResponse, type ScheduleCreateParams, type ScheduleUpdateParams, } from "./schedules.js";
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/agent/index.ts"],"names":[],"mappings":"OAEO,EACL,KAAK,EACL,KAAK,UAAU,EACf,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,cAAc,GACpB;OACM,EACL,IAAI,EACJ,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,aAAa,EAClB,KAAK,QAAQ,EACb,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,aAAa,GACnB;OACM,EACL,SAAS,EACT,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,GAC1B"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Schedules = exports.Runs = exports.Agent = void 0;
|
|
5
|
+
var agent_1 = require("./agent.js");
|
|
6
|
+
Object.defineProperty(exports, "Agent", { enumerable: true, get: function () { return agent_1.Agent; } });
|
|
7
|
+
var runs_1 = require("./runs.js");
|
|
8
|
+
Object.defineProperty(exports, "Runs", { enumerable: true, get: function () { return runs_1.Runs; } });
|
|
9
|
+
var schedules_1 = require("./schedules.js");
|
|
10
|
+
Object.defineProperty(exports, "Schedules", { enumerable: true, get: function () { return schedules_1.Schedules; } });
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/agent/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oCAWiB;AAVf,8FAAA,KAAK,OAAA;AAWP,kCASgB;AARd,4FAAA,IAAI,OAAA;AASN,4CAOqB;AANnB,sGAAA,SAAS,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/agent/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,KAAK,GAUN;OACM,EACL,IAAI,GAQL;OACM,EACL,SAAS,GAMV"}
|
|
@@ -0,0 +1,381 @@
|
|
|
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
|
+
* Cancel an agent run that is currently queued or in progress. Once cancelled, the
|
|
28
|
+
* run will transition to a failed state.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```ts
|
|
32
|
+
* const response = await client.agent.runs.cancel('runId');
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
cancel(runID: string, options?: RequestOptions): APIPromise<string>;
|
|
36
|
+
}
|
|
37
|
+
export type ArtifactItem = ArtifactItem.PlanArtifact | ArtifactItem.PullRequestArtifact;
|
|
38
|
+
export declare namespace ArtifactItem {
|
|
39
|
+
interface PlanArtifact {
|
|
40
|
+
/**
|
|
41
|
+
* Type of the artifact
|
|
42
|
+
*/
|
|
43
|
+
artifact_type: 'PLAN';
|
|
44
|
+
/**
|
|
45
|
+
* Timestamp when the artifact was created (RFC3339)
|
|
46
|
+
*/
|
|
47
|
+
created_at: string;
|
|
48
|
+
data: PlanArtifact.Data;
|
|
49
|
+
}
|
|
50
|
+
namespace PlanArtifact {
|
|
51
|
+
interface Data {
|
|
52
|
+
/**
|
|
53
|
+
* Unique identifier for the plan document
|
|
54
|
+
*/
|
|
55
|
+
document_uid: string;
|
|
56
|
+
/**
|
|
57
|
+
* Unique identifier for the associated notebook
|
|
58
|
+
*/
|
|
59
|
+
notebook_uid?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Title of the plan
|
|
62
|
+
*/
|
|
63
|
+
title?: string;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
interface PullRequestArtifact {
|
|
67
|
+
/**
|
|
68
|
+
* Type of the artifact
|
|
69
|
+
*/
|
|
70
|
+
artifact_type: 'PULL_REQUEST';
|
|
71
|
+
/**
|
|
72
|
+
* Timestamp when the artifact was created (RFC3339)
|
|
73
|
+
*/
|
|
74
|
+
created_at: string;
|
|
75
|
+
data: PullRequestArtifact.Data;
|
|
76
|
+
}
|
|
77
|
+
namespace PullRequestArtifact {
|
|
78
|
+
interface Data {
|
|
79
|
+
/**
|
|
80
|
+
* Branch name for the pull request
|
|
81
|
+
*/
|
|
82
|
+
branch: string;
|
|
83
|
+
/**
|
|
84
|
+
* URL of the pull request
|
|
85
|
+
*/
|
|
86
|
+
url: string;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
export interface RunItem {
|
|
91
|
+
/**
|
|
92
|
+
* Timestamp when the run was created (RFC3339)
|
|
93
|
+
*/
|
|
94
|
+
created_at: string;
|
|
95
|
+
/**
|
|
96
|
+
* The prompt/instruction for the agent
|
|
97
|
+
*/
|
|
98
|
+
prompt: string;
|
|
99
|
+
/**
|
|
100
|
+
* Unique identifier for the run
|
|
101
|
+
*/
|
|
102
|
+
run_id: string;
|
|
103
|
+
/**
|
|
104
|
+
* Current state of the run:
|
|
105
|
+
*
|
|
106
|
+
* - QUEUED: Run is waiting to be picked up
|
|
107
|
+
* - PENDING: Run is being prepared
|
|
108
|
+
* - CLAIMED: Run has been claimed by a worker
|
|
109
|
+
* - INPROGRESS: Run is actively being executed
|
|
110
|
+
* - SUCCEEDED: Run completed successfully
|
|
111
|
+
* - FAILED: Run failed
|
|
112
|
+
* - CANCELLED: Run was cancelled by user
|
|
113
|
+
*/
|
|
114
|
+
state: RunState;
|
|
115
|
+
/**
|
|
116
|
+
* @deprecated Use run_id instead.
|
|
117
|
+
*/
|
|
118
|
+
task_id: string;
|
|
119
|
+
/**
|
|
120
|
+
* Human-readable title for the run
|
|
121
|
+
*/
|
|
122
|
+
title: string;
|
|
123
|
+
/**
|
|
124
|
+
* Timestamp when the run was last updated (RFC3339)
|
|
125
|
+
*/
|
|
126
|
+
updated_at: string;
|
|
127
|
+
/**
|
|
128
|
+
* Configuration for an cloud agent run
|
|
129
|
+
*/
|
|
130
|
+
agent_config?: AgentAPI.AmbientAgentConfig;
|
|
131
|
+
/**
|
|
132
|
+
* Information about the agent skill used for the run. Either full_path or
|
|
133
|
+
* bundled_skill_id will be set, but not both.
|
|
134
|
+
*/
|
|
135
|
+
agent_skill?: RunItem.AgentSkill;
|
|
136
|
+
/**
|
|
137
|
+
* Artifacts created during the run (plans, pull requests, etc.)
|
|
138
|
+
*/
|
|
139
|
+
artifacts?: Array<ArtifactItem>;
|
|
140
|
+
/**
|
|
141
|
+
* UUID of the conversation associated with the run
|
|
142
|
+
*/
|
|
143
|
+
conversation_id?: string;
|
|
144
|
+
creator?: AgentAPI.UserProfile;
|
|
145
|
+
/**
|
|
146
|
+
* Whether the sandbox environment is currently running
|
|
147
|
+
*/
|
|
148
|
+
is_sandbox_running?: boolean;
|
|
149
|
+
/**
|
|
150
|
+
* Resource usage information for the run
|
|
151
|
+
*/
|
|
152
|
+
request_usage?: RunItem.RequestUsage;
|
|
153
|
+
/**
|
|
154
|
+
* Information about the schedule that triggered this run (only present for
|
|
155
|
+
* scheduled runs)
|
|
156
|
+
*/
|
|
157
|
+
schedule?: RunItem.Schedule;
|
|
158
|
+
/**
|
|
159
|
+
* Ownership scope for a resource (team or personal)
|
|
160
|
+
*/
|
|
161
|
+
scope?: RunItem.Scope;
|
|
162
|
+
/**
|
|
163
|
+
* UUID of the shared session (if available)
|
|
164
|
+
*/
|
|
165
|
+
session_id?: string;
|
|
166
|
+
/**
|
|
167
|
+
* URL to view the agent session
|
|
168
|
+
*/
|
|
169
|
+
session_link?: string;
|
|
170
|
+
/**
|
|
171
|
+
* Source that created the run:
|
|
172
|
+
*
|
|
173
|
+
* - LINEAR: Created from Linear integration
|
|
174
|
+
* - API: Created via the Warp API
|
|
175
|
+
* - SLACK: Created from Slack integration
|
|
176
|
+
* - LOCAL: Created from local CLI/app
|
|
177
|
+
* - SCHEDULED_AGENT: Created by a scheduled agent
|
|
178
|
+
* - WEB_APP: Created from the Warp web app
|
|
179
|
+
* - GITHUB_ACTION: Created from a GitHub action
|
|
180
|
+
* - CLOUD_MODE: Created from a Cloud Mode
|
|
181
|
+
* - CLI: Created from the CLI
|
|
182
|
+
*/
|
|
183
|
+
source?: RunSourceType;
|
|
184
|
+
/**
|
|
185
|
+
* Timestamp when the agent started working on the run (RFC3339)
|
|
186
|
+
*/
|
|
187
|
+
started_at?: string | null;
|
|
188
|
+
status_message?: RunItem.StatusMessage;
|
|
189
|
+
}
|
|
190
|
+
export declare namespace RunItem {
|
|
191
|
+
/**
|
|
192
|
+
* Information about the agent skill used for the run. Either full_path or
|
|
193
|
+
* bundled_skill_id will be set, but not both.
|
|
194
|
+
*/
|
|
195
|
+
interface AgentSkill {
|
|
196
|
+
/**
|
|
197
|
+
* Unique identifier for bundled skills
|
|
198
|
+
*/
|
|
199
|
+
bundled_skill_id?: string;
|
|
200
|
+
/**
|
|
201
|
+
* Description of the skill
|
|
202
|
+
*/
|
|
203
|
+
description?: string;
|
|
204
|
+
/**
|
|
205
|
+
* Path to the SKILL.md file (for file-based skills)
|
|
206
|
+
*/
|
|
207
|
+
full_path?: string;
|
|
208
|
+
/**
|
|
209
|
+
* Human-readable name of the skill
|
|
210
|
+
*/
|
|
211
|
+
name?: string;
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* Resource usage information for the run
|
|
215
|
+
*/
|
|
216
|
+
interface RequestUsage {
|
|
217
|
+
/**
|
|
218
|
+
* Cost of compute resources for the run
|
|
219
|
+
*/
|
|
220
|
+
compute_cost?: number;
|
|
221
|
+
/**
|
|
222
|
+
* Cost of LLM inference for the run
|
|
223
|
+
*/
|
|
224
|
+
inference_cost?: number;
|
|
225
|
+
}
|
|
226
|
+
/**
|
|
227
|
+
* Information about the schedule that triggered this run (only present for
|
|
228
|
+
* scheduled runs)
|
|
229
|
+
*/
|
|
230
|
+
interface Schedule {
|
|
231
|
+
/**
|
|
232
|
+
* Cron expression at the time the run was created
|
|
233
|
+
*/
|
|
234
|
+
cron_schedule: string;
|
|
235
|
+
/**
|
|
236
|
+
* Unique identifier for the schedule
|
|
237
|
+
*/
|
|
238
|
+
schedule_id: string;
|
|
239
|
+
/**
|
|
240
|
+
* Name of the schedule at the time the run was created
|
|
241
|
+
*/
|
|
242
|
+
schedule_name: string;
|
|
243
|
+
}
|
|
244
|
+
/**
|
|
245
|
+
* Ownership scope for a resource (team or personal)
|
|
246
|
+
*/
|
|
247
|
+
interface Scope {
|
|
248
|
+
/**
|
|
249
|
+
* Type of ownership ("User" for personal, "Team" for team-owned)
|
|
250
|
+
*/
|
|
251
|
+
type: 'User' | 'Team';
|
|
252
|
+
/**
|
|
253
|
+
* UID of the owning user or team
|
|
254
|
+
*/
|
|
255
|
+
uid?: string;
|
|
256
|
+
}
|
|
257
|
+
interface StatusMessage {
|
|
258
|
+
/**
|
|
259
|
+
* Human-readable status message
|
|
260
|
+
*/
|
|
261
|
+
message?: string;
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
/**
|
|
265
|
+
* Source that created the run:
|
|
266
|
+
*
|
|
267
|
+
* - LINEAR: Created from Linear integration
|
|
268
|
+
* - API: Created via the Warp API
|
|
269
|
+
* - SLACK: Created from Slack integration
|
|
270
|
+
* - LOCAL: Created from local CLI/app
|
|
271
|
+
* - SCHEDULED_AGENT: Created by a scheduled agent
|
|
272
|
+
* - WEB_APP: Created from the Warp web app
|
|
273
|
+
* - GITHUB_ACTION: Created from a GitHub action
|
|
274
|
+
* - CLOUD_MODE: Created from a Cloud Mode
|
|
275
|
+
* - CLI: Created from the CLI
|
|
276
|
+
*/
|
|
277
|
+
export type RunSourceType = 'LINEAR' | 'API' | 'SLACK' | 'LOCAL' | 'SCHEDULED_AGENT' | 'WEB_APP' | 'GITHUB_ACTION' | 'CLOUD_MODE' | 'CLI';
|
|
278
|
+
/**
|
|
279
|
+
* Current state of the run:
|
|
280
|
+
*
|
|
281
|
+
* - QUEUED: Run is waiting to be picked up
|
|
282
|
+
* - PENDING: Run is being prepared
|
|
283
|
+
* - CLAIMED: Run has been claimed by a worker
|
|
284
|
+
* - INPROGRESS: Run is actively being executed
|
|
285
|
+
* - SUCCEEDED: Run completed successfully
|
|
286
|
+
* - FAILED: Run failed
|
|
287
|
+
* - CANCELLED: Run was cancelled by user
|
|
288
|
+
*/
|
|
289
|
+
export type RunState = 'QUEUED' | 'PENDING' | 'CLAIMED' | 'INPROGRESS' | 'SUCCEEDED' | 'FAILED' | 'CANCELLED';
|
|
290
|
+
export interface RunListResponse {
|
|
291
|
+
page_info: RunListResponse.PageInfo;
|
|
292
|
+
runs: Array<RunItem>;
|
|
293
|
+
}
|
|
294
|
+
export declare namespace RunListResponse {
|
|
295
|
+
interface PageInfo {
|
|
296
|
+
/**
|
|
297
|
+
* Whether there are more results available
|
|
298
|
+
*/
|
|
299
|
+
has_next_page: boolean;
|
|
300
|
+
/**
|
|
301
|
+
* Opaque cursor for fetching the next page
|
|
302
|
+
*/
|
|
303
|
+
next_cursor?: string;
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
/**
|
|
307
|
+
* The ID of the cancelled run
|
|
308
|
+
*/
|
|
309
|
+
export type RunCancelResponse = string;
|
|
310
|
+
export interface RunListParams {
|
|
311
|
+
/**
|
|
312
|
+
* Filter runs by artifact type (PLAN or PULL_REQUEST)
|
|
313
|
+
*/
|
|
314
|
+
artifact_type?: 'PLAN' | 'PULL_REQUEST';
|
|
315
|
+
/**
|
|
316
|
+
* Filter runs created after this timestamp (RFC3339 format)
|
|
317
|
+
*/
|
|
318
|
+
created_after?: string;
|
|
319
|
+
/**
|
|
320
|
+
* Filter runs created before this timestamp (RFC3339 format)
|
|
321
|
+
*/
|
|
322
|
+
created_before?: string;
|
|
323
|
+
/**
|
|
324
|
+
* Filter by creator UID (user or service account)
|
|
325
|
+
*/
|
|
326
|
+
creator?: string;
|
|
327
|
+
/**
|
|
328
|
+
* Pagination cursor from previous response
|
|
329
|
+
*/
|
|
330
|
+
cursor?: string;
|
|
331
|
+
/**
|
|
332
|
+
* Filter runs by environment ID
|
|
333
|
+
*/
|
|
334
|
+
environment_id?: string;
|
|
335
|
+
/**
|
|
336
|
+
* Maximum number of runs to return
|
|
337
|
+
*/
|
|
338
|
+
limit?: number;
|
|
339
|
+
/**
|
|
340
|
+
* Filter by model ID
|
|
341
|
+
*/
|
|
342
|
+
model_id?: string;
|
|
343
|
+
/**
|
|
344
|
+
* Filter by agent config name
|
|
345
|
+
*/
|
|
346
|
+
name?: string;
|
|
347
|
+
/**
|
|
348
|
+
* Fuzzy search query across run title, prompt, and skill_spec
|
|
349
|
+
*/
|
|
350
|
+
q?: string;
|
|
351
|
+
/**
|
|
352
|
+
* Filter runs by the scheduled agent ID that created them
|
|
353
|
+
*/
|
|
354
|
+
schedule_id?: string;
|
|
355
|
+
/**
|
|
356
|
+
* Filter runs by skill spec (e.g., "owner/repo:path/to/SKILL.md"). Alias for
|
|
357
|
+
* skill_spec.
|
|
358
|
+
*/
|
|
359
|
+
skill?: string;
|
|
360
|
+
/**
|
|
361
|
+
* Filter runs by skill spec (e.g., "owner/repo:path/to/SKILL.md")
|
|
362
|
+
*/
|
|
363
|
+
skill_spec?: string;
|
|
364
|
+
/**
|
|
365
|
+
* Filter by run source type
|
|
366
|
+
*/
|
|
367
|
+
source?: RunSourceType;
|
|
368
|
+
/**
|
|
369
|
+
* Filter by run state. Can be specified multiple times to match any of the given
|
|
370
|
+
* states.
|
|
371
|
+
*/
|
|
372
|
+
state?: Array<RunState>;
|
|
373
|
+
/**
|
|
374
|
+
* Filter runs updated after this timestamp (RFC3339 format)
|
|
375
|
+
*/
|
|
376
|
+
updated_after?: string;
|
|
377
|
+
}
|
|
378
|
+
export declare namespace Runs {
|
|
379
|
+
export { type ArtifactItem as ArtifactItem, type RunItem as RunItem, type RunSourceType as RunSourceType, type RunState as RunState, type RunListResponse as RunListResponse, type RunCancelResponse as RunCancelResponse, type RunListParams as RunListParams, };
|
|
380
|
+
}
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