anchorbrowser 1.0.0-dev.0 → 1.0.0-dev.2
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 +28 -0
- package/client.d.mts +3 -3
- package/client.d.mts.map +1 -1
- package/client.d.ts +3 -3
- package/client.d.ts.map +1 -1
- package/client.js +3 -3
- package/client.js.map +1 -1
- package/client.mjs +3 -3
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/sessions/sessions.d.mts +2 -2
- package/resources/sessions/sessions.d.mts.map +1 -1
- package/resources/sessions/sessions.d.ts +2 -2
- package/resources/sessions/sessions.d.ts.map +1 -1
- package/resources/tasks/generations.d.mts +42 -0
- package/resources/tasks/generations.d.mts.map +1 -0
- package/resources/tasks/generations.d.ts +42 -0
- package/resources/tasks/generations.d.ts.map +1 -0
- package/resources/tasks/generations.js +24 -0
- package/resources/tasks/generations.js.map +1 -0
- package/resources/tasks/generations.mjs +20 -0
- package/resources/tasks/generations.mjs.map +1 -0
- package/resources/tasks/index.d.mts +4 -0
- package/resources/tasks/index.d.mts.map +1 -0
- package/resources/tasks/index.d.ts +4 -0
- package/resources/tasks/index.d.ts.map +1 -0
- package/resources/tasks/index.js +11 -0
- package/resources/tasks/index.js.map +1 -0
- package/resources/tasks/index.mjs +5 -0
- package/resources/tasks/index.mjs.map +1 -0
- package/resources/tasks/runs.d.mts +42 -0
- package/resources/tasks/runs.d.mts.map +1 -0
- package/resources/tasks/runs.d.ts +42 -0
- package/resources/tasks/runs.d.ts.map +1 -0
- package/resources/tasks/runs.js +21 -0
- package/resources/tasks/runs.js.map +1 -0
- package/resources/tasks/runs.mjs +17 -0
- package/resources/tasks/runs.mjs.map +1 -0
- package/resources/tasks/tasks.d.mts +310 -0
- package/resources/tasks/tasks.d.mts.map +1 -0
- package/resources/tasks/tasks.d.ts +310 -0
- package/resources/tasks/tasks.d.ts.map +1 -0
- package/resources/tasks/tasks.js +80 -0
- package/resources/tasks/tasks.js.map +1 -0
- package/resources/tasks/tasks.mjs +75 -0
- package/resources/tasks/tasks.mjs.map +1 -0
- package/resources/tasks.d.mts +2 -0
- package/resources/tasks.d.mts.map +1 -0
- package/resources/tasks.d.ts +2 -0
- package/resources/tasks.d.ts.map +1 -0
- package/resources/tasks.js +6 -0
- package/resources/tasks.js.map +1 -0
- package/resources/tasks.mjs +3 -0
- package/resources/tasks.mjs.map +1 -0
- package/resources/tools.d.mts +1 -1
- package/resources/tools.d.mts.map +1 -1
- package/resources/tools.d.ts +1 -1
- package/resources/tools.d.ts.map +1 -1
- package/src/client.ts +16 -4
- package/src/resources/index.ts +7 -1
- package/src/resources/sessions/sessions.ts +2 -2
- package/src/resources/tasks/generations.ts +52 -0
- package/src/resources/tasks/index.ts +11 -0
- package/src/resources/tasks/runs.ts +51 -0
- package/src/resources/tasks/tasks.ts +518 -0
- package/src/resources/tasks.ts +3 -0
- package/src/resources/tools.ts +1 -1
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/task.d.mts +0 -4
- package/resources/task.d.mts.map +0 -1
- package/resources/task.d.ts +0 -4
- package/resources/task.d.ts.map +0 -1
- package/resources/task.js +0 -9
- package/resources/task.js.map +0 -1
- package/resources/task.mjs +0 -5
- package/resources/task.mjs.map +0 -1
- package/src/resources/task.ts +0 -5
|
@@ -0,0 +1,80 @@
|
|
|
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.Tasks = void 0;
|
|
5
|
+
const tslib_1 = require("../../internal/tslib.js");
|
|
6
|
+
const resource_1 = require("../../core/resource.js");
|
|
7
|
+
const GenerationsAPI = tslib_1.__importStar(require("./generations.js"));
|
|
8
|
+
const generations_1 = require("./generations.js");
|
|
9
|
+
const RunsAPI = tslib_1.__importStar(require("./runs.js"));
|
|
10
|
+
const runs_1 = require("./runs.js");
|
|
11
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
12
|
+
class Tasks extends resource_1.APIResource {
|
|
13
|
+
constructor() {
|
|
14
|
+
super(...arguments);
|
|
15
|
+
this.runs = new RunsAPI.Runs(this._client);
|
|
16
|
+
this.generations = new GenerationsAPI.Generations(this._client);
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Initiates asynchronous task generation. Use the returned task ID to poll for
|
|
20
|
+
* completion, then execute the task.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```ts
|
|
24
|
+
* const response = await client.tasks.generate({
|
|
25
|
+
* description: 'Download a specific file from a URL',
|
|
26
|
+
* name: 'file-downloader',
|
|
27
|
+
* user_task: 'Create a task that downloads a specific file from a given URL.',
|
|
28
|
+
* input_schema: [
|
|
29
|
+
* {
|
|
30
|
+
* display_name: 'URL',
|
|
31
|
+
* type: 'string',
|
|
32
|
+
* required: true,
|
|
33
|
+
* description: 'URL of the file to download',
|
|
34
|
+
* },
|
|
35
|
+
* {
|
|
36
|
+
* display_name: 'File Name',
|
|
37
|
+
* type: 'string',
|
|
38
|
+
* required: true,
|
|
39
|
+
* description: 'Name of the file to download',
|
|
40
|
+
* },
|
|
41
|
+
* ],
|
|
42
|
+
* output_schema: [
|
|
43
|
+
* {
|
|
44
|
+
* display_name: 'Success',
|
|
45
|
+
* type: 'boolean',
|
|
46
|
+
* description: 'Whether the download succeeded',
|
|
47
|
+
* },
|
|
48
|
+
* {
|
|
49
|
+
* display_name: 'Message',
|
|
50
|
+
* type: 'string',
|
|
51
|
+
* description: 'Status or error message',
|
|
52
|
+
* },
|
|
53
|
+
* ],
|
|
54
|
+
* });
|
|
55
|
+
* ```
|
|
56
|
+
*/
|
|
57
|
+
generate(body, options) {
|
|
58
|
+
return this._client.post('/v2/tasks/generate', { body, ...options });
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Triggers execution of a task by ID using the V2 tasks API.
|
|
62
|
+
*
|
|
63
|
+
* @example
|
|
64
|
+
* ```ts
|
|
65
|
+
* const response = await client.tasks.run('taskId', {
|
|
66
|
+
* input_params: {
|
|
67
|
+
* 'File Name': 'invoice-2026-02.pdf',
|
|
68
|
+
* Operation: 'extract_text',
|
|
69
|
+
* },
|
|
70
|
+
* });
|
|
71
|
+
* ```
|
|
72
|
+
*/
|
|
73
|
+
run(taskID, body, options) {
|
|
74
|
+
return this._client.post((0, path_1.path) `/v2/tasks/${taskID}/run`, { body, ...options });
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
exports.Tasks = Tasks;
|
|
78
|
+
Tasks.Runs = runs_1.Runs;
|
|
79
|
+
Tasks.Generations = generations_1.Generations;
|
|
80
|
+
//# sourceMappingURL=tasks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tasks.js","sourceRoot":"","sources":["../../src/resources/tasks/tasks.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,yEAAgD;AAChD,kDAAyE;AACzE,2DAAkC;AAClC,oCAAoD;AAGpD,uDAAiD;AAEjD,MAAa,KAAM,SAAQ,sBAAW;IAAtC;;QACE,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACpD,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA6DzF,CAAC;IA3DC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAsCG;IACH,QAAQ,CAAC,IAAwB,EAAE,OAAwB;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,GAAG,CAAC,MAAc,EAAE,IAAmB,EAAE,OAAwB;QAC/D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,aAAa,MAAM,MAAM,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChF,CAAC;CACF;AA/DD,sBA+DC;AA6aD,KAAK,CAAC,IAAI,GAAG,WAAI,CAAC;AAClB,KAAK,CAAC,WAAW,GAAG,yBAAW,CAAC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import * as GenerationsAPI from "./generations.mjs";
|
|
4
|
+
import { Generations } from "./generations.mjs";
|
|
5
|
+
import * as RunsAPI from "./runs.mjs";
|
|
6
|
+
import { Runs } from "./runs.mjs";
|
|
7
|
+
import { path } from "../../internal/utils/path.mjs";
|
|
8
|
+
export class Tasks extends APIResource {
|
|
9
|
+
constructor() {
|
|
10
|
+
super(...arguments);
|
|
11
|
+
this.runs = new RunsAPI.Runs(this._client);
|
|
12
|
+
this.generations = new GenerationsAPI.Generations(this._client);
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Initiates asynchronous task generation. Use the returned task ID to poll for
|
|
16
|
+
* completion, then execute the task.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```ts
|
|
20
|
+
* const response = await client.tasks.generate({
|
|
21
|
+
* description: 'Download a specific file from a URL',
|
|
22
|
+
* name: 'file-downloader',
|
|
23
|
+
* user_task: 'Create a task that downloads a specific file from a given URL.',
|
|
24
|
+
* input_schema: [
|
|
25
|
+
* {
|
|
26
|
+
* display_name: 'URL',
|
|
27
|
+
* type: 'string',
|
|
28
|
+
* required: true,
|
|
29
|
+
* description: 'URL of the file to download',
|
|
30
|
+
* },
|
|
31
|
+
* {
|
|
32
|
+
* display_name: 'File Name',
|
|
33
|
+
* type: 'string',
|
|
34
|
+
* required: true,
|
|
35
|
+
* description: 'Name of the file to download',
|
|
36
|
+
* },
|
|
37
|
+
* ],
|
|
38
|
+
* output_schema: [
|
|
39
|
+
* {
|
|
40
|
+
* display_name: 'Success',
|
|
41
|
+
* type: 'boolean',
|
|
42
|
+
* description: 'Whether the download succeeded',
|
|
43
|
+
* },
|
|
44
|
+
* {
|
|
45
|
+
* display_name: 'Message',
|
|
46
|
+
* type: 'string',
|
|
47
|
+
* description: 'Status or error message',
|
|
48
|
+
* },
|
|
49
|
+
* ],
|
|
50
|
+
* });
|
|
51
|
+
* ```
|
|
52
|
+
*/
|
|
53
|
+
generate(body, options) {
|
|
54
|
+
return this._client.post('/v2/tasks/generate', { body, ...options });
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Triggers execution of a task by ID using the V2 tasks API.
|
|
58
|
+
*
|
|
59
|
+
* @example
|
|
60
|
+
* ```ts
|
|
61
|
+
* const response = await client.tasks.run('taskId', {
|
|
62
|
+
* input_params: {
|
|
63
|
+
* 'File Name': 'invoice-2026-02.pdf',
|
|
64
|
+
* Operation: 'extract_text',
|
|
65
|
+
* },
|
|
66
|
+
* });
|
|
67
|
+
* ```
|
|
68
|
+
*/
|
|
69
|
+
run(taskID, body, options) {
|
|
70
|
+
return this._client.post(path `/v2/tasks/${taskID}/run`, { body, ...options });
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
Tasks.Runs = Runs;
|
|
74
|
+
Tasks.Generations = Generations;
|
|
75
|
+
//# sourceMappingURL=tasks.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tasks.mjs","sourceRoot":"","sources":["../../src/resources/tasks/tasks.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,cAAc;OACnB,EAA+B,WAAW,EAAE;OAC5C,KAAK,OAAO;OACZ,EAAwB,IAAI,EAAE;OAG9B,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,KAAM,SAAQ,WAAW;IAAtC;;QACE,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACpD,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA6DzF,CAAC;IA3DC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAsCG;IACH,QAAQ,CAAC,IAAwB,EAAE,OAAwB;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,GAAG,CAAC,MAAc,EAAE,IAAmB,EAAE,OAAwB;QAC/D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,aAAa,MAAM,MAAM,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChF,CAAC;CACF;AA6aD,KAAK,CAAC,IAAI,GAAG,IAAI,CAAC;AAClB,KAAK,CAAC,WAAW,GAAG,WAAW,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tasks.d.mts","sourceRoot":"","sources":["../src/resources/tasks.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tasks.d.ts","sourceRoot":"","sources":["../src/resources/tasks.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,6 @@
|
|
|
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
|
+
const tslib_1 = require("../internal/tslib.js");
|
|
5
|
+
tslib_1.__exportStar(require("./tasks/index.js"), exports);
|
|
6
|
+
//# sourceMappingURL=tasks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tasks.js","sourceRoot":"","sources":["../src/resources/tasks.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,2DAA8B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tasks.mjs","sourceRoot":"","sources":["../src/resources/tasks.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|
package/resources/tools.d.mts
CHANGED
|
@@ -116,7 +116,7 @@ export interface ToolPerformWebTaskParams {
|
|
|
116
116
|
/**
|
|
117
117
|
* Body param: The AI agent to use for task completion. Defaults to browser-use.
|
|
118
118
|
*/
|
|
119
|
-
agent?: 'browser-use' | 'openai-cua';
|
|
119
|
+
agent?: 'browser-use' | 'openai-cua' | 'yutori';
|
|
120
120
|
/**
|
|
121
121
|
* Body param: Enable element detection for better interaction accuracy. Improves
|
|
122
122
|
* the agent's ability to identify and interact with UI elements.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.d.mts","sourceRoot":"","sources":["../src/resources/tools.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;OAGG;IACH,YAAY,CAAC,MAAM,EAAE,sBAAsB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC;IAU1F;;OAEG;IACH,uBAAuB,CACrB,UAAU,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mCAAmC,CAAC;IAIlD;;OAEG;IACH,cAAc,CACZ,MAAM,EAAE,wBAAwB,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,0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,OAAO,CAAC;IAExB;;OAEG;IACH,QAAQ,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,CAAC;IAE1D;;;OAGG;IACH,aAAa,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IAE1C;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,MAAM,WAAW,2BAA2B;IAC1C;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAE9B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAE7B;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,mCAAmC,IAAI,mCAAmC,EAC/E,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;CACH"}
|
package/resources/tools.d.ts
CHANGED
|
@@ -116,7 +116,7 @@ export interface ToolPerformWebTaskParams {
|
|
|
116
116
|
/**
|
|
117
117
|
* Body param: The AI agent to use for task completion. Defaults to browser-use.
|
|
118
118
|
*/
|
|
119
|
-
agent?: 'browser-use' | 'openai-cua';
|
|
119
|
+
agent?: 'browser-use' | 'openai-cua' | 'yutori';
|
|
120
120
|
/**
|
|
121
121
|
* Body param: Enable element detection for better interaction accuracy. Improves
|
|
122
122
|
* the agent's ability to identify and interact with UI elements.
|
package/resources/tools.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../src/resources/tools.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;OAGG;IACH,YAAY,CAAC,MAAM,EAAE,sBAAsB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC;IAU1F;;OAEG;IACH,uBAAuB,CACrB,UAAU,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mCAAmC,CAAC;IAIlD;;OAEG;IACH,cAAc,CACZ,MAAM,EAAE,wBAAwB,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,0BAA0B,CAAC;IAKzC;;;OAGG;IACH,iBAAiB,CAAC,MAAM,EAAE,2BAA2B,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,QAAQ,CAAC;CAUvG;AAED;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG,MAAM,CAAC;AAE9C,MAAM,WAAW,mCAAmC;IAClD,IAAI,EACA,mCAAmC,CAAC,uCAAuC,GAC3E,mCAAmC,CAAC,uCAAuC,GAC3E,mCAAmC,CAAC,sCAAsC,CAAC;CAChF;AAED,yBAAiB,mCAAmC,CAAC;IACnD,UAAiB,uCAAuC;QACtD;;WAEG;QACH,MAAM,EAAE,OAAO,CAAC;QAEhB;;WAEG;QACH,MAAM,EAAE,WAAW,CAAC;KACrB;IAED,UAAiB,uCAAuC;Q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C;IAEhB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAE7B;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,mCAAmC,IAAI,mCAAmC,EAC/E,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;CACH"}
|
package/src/client.ts
CHANGED
|
@@ -35,7 +35,6 @@ import {
|
|
|
35
35
|
ProfileRetrieveResponse,
|
|
36
36
|
Profiles,
|
|
37
37
|
} from './resources/profiles';
|
|
38
|
-
import { Task } from './resources/task';
|
|
39
38
|
import {
|
|
40
39
|
ToolFetchWebpageParams,
|
|
41
40
|
ToolFetchWebpageResponse,
|
|
@@ -73,6 +72,13 @@ import {
|
|
|
73
72
|
SessionUploadFileResponse,
|
|
74
73
|
Sessions,
|
|
75
74
|
} from './resources/sessions/sessions';
|
|
75
|
+
import {
|
|
76
|
+
TaskGenerateParams,
|
|
77
|
+
TaskGenerateResponse,
|
|
78
|
+
TaskRunParams,
|
|
79
|
+
TaskRunResponse,
|
|
80
|
+
Tasks,
|
|
81
|
+
} from './resources/tasks/tasks';
|
|
76
82
|
import { type Fetch } from './internal/builtin-types';
|
|
77
83
|
import { HeadersLike, NullableHeaders, buildHeaders } from './internal/headers';
|
|
78
84
|
import { FinalRequestOptions, RequestOptions } from './internal/request-options';
|
|
@@ -782,7 +788,7 @@ export class Anchorbrowser {
|
|
|
782
788
|
browser: API.Browser = new API.Browser(this);
|
|
783
789
|
agent: API.Agent = new API.Agent(this);
|
|
784
790
|
events: API.Events = new API.Events(this);
|
|
785
|
-
|
|
791
|
+
tasks: API.Tasks = new API.Tasks(this);
|
|
786
792
|
identities: API.Identities = new API.Identities(this);
|
|
787
793
|
applications: API.Applications = new API.Applications(this);
|
|
788
794
|
}
|
|
@@ -792,7 +798,7 @@ Anchorbrowser.Sessions = Sessions;
|
|
|
792
798
|
Anchorbrowser.Tools = Tools;
|
|
793
799
|
Anchorbrowser.Extensions = Extensions;
|
|
794
800
|
Anchorbrowser.Events = Events;
|
|
795
|
-
Anchorbrowser.
|
|
801
|
+
Anchorbrowser.Tasks = Tasks;
|
|
796
802
|
Anchorbrowser.Identities = Identities;
|
|
797
803
|
Anchorbrowser.Applications = Applications;
|
|
798
804
|
|
|
@@ -845,7 +851,13 @@ export declare namespace Anchorbrowser {
|
|
|
845
851
|
type EventWaitForParams as EventWaitForParams,
|
|
846
852
|
};
|
|
847
853
|
|
|
848
|
-
export {
|
|
854
|
+
export {
|
|
855
|
+
Tasks as Tasks,
|
|
856
|
+
type TaskGenerateResponse as TaskGenerateResponse,
|
|
857
|
+
type TaskRunResponse as TaskRunResponse,
|
|
858
|
+
type TaskGenerateParams as TaskGenerateParams,
|
|
859
|
+
type TaskRunParams as TaskRunParams,
|
|
860
|
+
};
|
|
849
861
|
|
|
850
862
|
export {
|
|
851
863
|
Identities as Identities,
|
package/src/resources/index.ts
CHANGED
|
@@ -47,7 +47,13 @@ export {
|
|
|
47
47
|
type SessionScrollParams,
|
|
48
48
|
type SessionUploadFileParams,
|
|
49
49
|
} from './sessions/sessions';
|
|
50
|
-
export {
|
|
50
|
+
export {
|
|
51
|
+
Tasks,
|
|
52
|
+
type TaskGenerateResponse,
|
|
53
|
+
type TaskRunResponse,
|
|
54
|
+
type TaskGenerateParams,
|
|
55
|
+
type TaskRunParams,
|
|
56
|
+
} from './tasks/tasks';
|
|
51
57
|
export {
|
|
52
58
|
Tools,
|
|
53
59
|
type ToolFetchWebpageResponse,
|
|
@@ -290,9 +290,9 @@ export namespace SessionRetrieveResponse {
|
|
|
290
290
|
status?: string;
|
|
291
291
|
|
|
292
292
|
/**
|
|
293
|
-
*
|
|
293
|
+
* Number of AI agent steps executed in the session.
|
|
294
294
|
*/
|
|
295
|
-
steps?:
|
|
295
|
+
steps?: number;
|
|
296
296
|
|
|
297
297
|
/**
|
|
298
298
|
* Tags associated with the session.
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import { APIPromise } from '../../core/api-promise';
|
|
5
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
6
|
+
import { path } from '../../internal/utils/path';
|
|
7
|
+
|
|
8
|
+
export class Generations extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Returns the current status of asynchronous task generation. Poll this endpoint
|
|
11
|
+
* after generating a task until status is ready or failed.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const response = await client.tasks.generations.getStatus(
|
|
16
|
+
* 'taskId',
|
|
17
|
+
* );
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
getStatus(taskID: string, options?: RequestOptions): APIPromise<GenerationGetStatusResponse> {
|
|
21
|
+
return this._client.get(path`/v2/tasks/${taskID}/generation-status`, options);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Current status of asynchronous task generation.
|
|
27
|
+
*/
|
|
28
|
+
export interface GenerationGetStatusResponse {
|
|
29
|
+
/**
|
|
30
|
+
* The task ID
|
|
31
|
+
*/
|
|
32
|
+
id: string;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Whether the task is still generating, ready to run, or failed.
|
|
36
|
+
*/
|
|
37
|
+
status: 'generating' | 'ready' | 'failed';
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Error message when status is failed
|
|
41
|
+
*/
|
|
42
|
+
error?: string;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Optional internal project state
|
|
46
|
+
*/
|
|
47
|
+
project_state?: string;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export declare namespace Generations {
|
|
51
|
+
export { type GenerationGetStatusResponse as GenerationGetStatusResponse };
|
|
52
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
export { Generations, type GenerationGetStatusResponse } from './generations';
|
|
4
|
+
export { Runs, type RunGetStatusResponse } from './runs';
|
|
5
|
+
export {
|
|
6
|
+
Tasks,
|
|
7
|
+
type TaskGenerateResponse,
|
|
8
|
+
type TaskRunResponse,
|
|
9
|
+
type TaskGenerateParams,
|
|
10
|
+
type TaskRunParams,
|
|
11
|
+
} from './tasks';
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import { APIPromise } from '../../core/api-promise';
|
|
5
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
6
|
+
import { path } from '../../internal/utils/path';
|
|
7
|
+
|
|
8
|
+
export class Runs extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Retrieves the current status and result of a task run in the V2 tasks API.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const response = await client.tasks.runs.getStatus('runId');
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
getStatus(runID: string, options?: RequestOptions): APIPromise<RunGetStatusResponse> {
|
|
18
|
+
return this._client.get(path`/v2/tasks/runs/${runID}/status`, options);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface RunGetStatusResponse {
|
|
23
|
+
/**
|
|
24
|
+
* The ID of the task run
|
|
25
|
+
*/
|
|
26
|
+
run_id: string;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Current task run status
|
|
30
|
+
*/
|
|
31
|
+
status: 'queued' | 'running' | 'success' | 'failure' | 'timeout' | 'cancelled';
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Error message when the run fails
|
|
35
|
+
*/
|
|
36
|
+
error?: string;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Task output when available
|
|
40
|
+
*/
|
|
41
|
+
result?: { [key: string]: unknown };
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Session ID used for this task run
|
|
45
|
+
*/
|
|
46
|
+
session_id?: string;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export declare namespace Runs {
|
|
50
|
+
export { type RunGetStatusResponse as RunGetStatusResponse };
|
|
51
|
+
}
|