@workglow/tasks 0.2.5 → 0.2.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/dist/browser.d.ts +2 -1
- package/dist/browser.d.ts.map +1 -1
- package/dist/browser.js +4047 -986
- package/dist/browser.js.map +43 -8
- package/dist/bun.d.ts +3 -1
- package/dist/bun.d.ts.map +1 -1
- package/dist/bun.js +4153 -580
- package/dist/bun.js.map +43 -6
- package/dist/common.d.ts +8 -4
- package/dist/common.d.ts.map +1 -1
- package/dist/electron.d.ts +19 -0
- package/dist/electron.d.ts.map +1 -0
- package/dist/electron.js +16526 -0
- package/dist/electron.js.map +146 -0
- package/dist/node.d.ts +3 -1
- package/dist/node.d.ts.map +1 -1
- package/dist/node.js +4153 -580
- package/dist/node.js.map +43 -6
- package/dist/server.d.ts +8 -0
- package/dist/server.d.ts.map +1 -0
- package/dist/task/ArrayTask.d.ts +1 -1
- package/dist/task/ArrayTask.d.ts.map +1 -1
- package/dist/task/browser-control/BrowserSessionRegistry.d.ts +34 -0
- package/dist/task/browser-control/BrowserSessionRegistry.d.ts.map +1 -0
- package/dist/task/browser-control/BunWebViewBackend.d.ts +59 -0
- package/dist/task/browser-control/BunWebViewBackend.d.ts.map +1 -0
- package/dist/task/browser-control/CDPBrowserBackend.d.ts +52 -0
- package/dist/task/browser-control/CDPBrowserBackend.d.ts.map +1 -0
- package/dist/task/browser-control/ElectronBackend.d.ts +57 -0
- package/dist/task/browser-control/ElectronBackend.d.ts.map +1 -0
- package/dist/task/browser-control/IBrowserContext.d.ts +177 -0
- package/dist/task/browser-control/IBrowserContext.d.ts.map +1 -0
- package/dist/task/browser-control/PlaywrightBackend.d.ts +78 -0
- package/dist/task/browser-control/PlaywrightBackend.d.ts.map +1 -0
- package/dist/task/browser-control/index.d.ts +11 -0
- package/dist/task/browser-control/index.d.ts.map +1 -0
- package/dist/task/browser-control/register.d.ts +34 -0
- package/dist/task/browser-control/register.d.ts.map +1 -0
- package/dist/task/browser-control/tasks/BrowserAttributeTask.d.ts +84 -0
- package/dist/task/browser-control/tasks/BrowserAttributeTask.d.ts.map +1 -0
- package/dist/task/browser-control/tasks/BrowserBackTask.d.ts +78 -0
- package/dist/task/browser-control/tasks/BrowserBackTask.d.ts.map +1 -0
- package/dist/task/browser-control/tasks/BrowserClickTask.d.ts +101 -0
- package/dist/task/browser-control/tasks/BrowserClickTask.d.ts.map +1 -0
- package/dist/task/browser-control/tasks/BrowserCloseTabTask.d.ts +71 -0
- package/dist/task/browser-control/tasks/BrowserCloseTabTask.d.ts.map +1 -0
- package/dist/task/browser-control/tasks/BrowserCloseTask.d.ts +54 -0
- package/dist/task/browser-control/tasks/BrowserCloseTask.d.ts.map +1 -0
- package/dist/task/browser-control/tasks/BrowserEvaluateTask.d.ts +74 -0
- package/dist/task/browser-control/tasks/BrowserEvaluateTask.d.ts.map +1 -0
- package/dist/task/browser-control/tasks/BrowserExtractHtmlTask.d.ts +82 -0
- package/dist/task/browser-control/tasks/BrowserExtractHtmlTask.d.ts.map +1 -0
- package/dist/task/browser-control/tasks/BrowserExtractTextTask.d.ts +81 -0
- package/dist/task/browser-control/tasks/BrowserExtractTextTask.d.ts.map +1 -0
- package/dist/task/browser-control/tasks/BrowserFillTask.d.ts +101 -0
- package/dist/task/browser-control/tasks/BrowserFillTask.d.ts.map +1 -0
- package/dist/task/browser-control/tasks/BrowserForwardTask.d.ts +78 -0
- package/dist/task/browser-control/tasks/BrowserForwardTask.d.ts.map +1 -0
- package/dist/task/browser-control/tasks/BrowserHoverTask.d.ts +98 -0
- package/dist/task/browser-control/tasks/BrowserHoverTask.d.ts.map +1 -0
- package/dist/task/browser-control/tasks/BrowserLoginTask.d.ts +87 -0
- package/dist/task/browser-control/tasks/BrowserLoginTask.d.ts.map +1 -0
- package/dist/task/browser-control/tasks/BrowserNavigateTask.d.ts +104 -0
- package/dist/task/browser-control/tasks/BrowserNavigateTask.d.ts.map +1 -0
- package/dist/task/browser-control/tasks/BrowserNewTabTask.d.ts +89 -0
- package/dist/task/browser-control/tasks/BrowserNewTabTask.d.ts.map +1 -0
- package/dist/task/browser-control/tasks/BrowserPressKeyTask.d.ts +82 -0
- package/dist/task/browser-control/tasks/BrowserPressKeyTask.d.ts.map +1 -0
- package/dist/task/browser-control/tasks/BrowserQuerySelectorTask.d.ts +94 -0
- package/dist/task/browser-control/tasks/BrowserQuerySelectorTask.d.ts.map +1 -0
- package/dist/task/browser-control/tasks/BrowserReloadTask.d.ts +68 -0
- package/dist/task/browser-control/tasks/BrowserReloadTask.d.ts.map +1 -0
- package/dist/task/browser-control/tasks/BrowserScreenshotTask.d.ts +69 -0
- package/dist/task/browser-control/tasks/BrowserScreenshotTask.d.ts.map +1 -0
- package/dist/task/browser-control/tasks/BrowserScrollTask.d.ts +73 -0
- package/dist/task/browser-control/tasks/BrowserScrollTask.d.ts.map +1 -0
- package/dist/task/browser-control/tasks/BrowserSelectTask.d.ts +98 -0
- package/dist/task/browser-control/tasks/BrowserSelectTask.d.ts.map +1 -0
- package/dist/task/browser-control/tasks/BrowserSessionTask.d.ts +63 -0
- package/dist/task/browser-control/tasks/BrowserSessionTask.d.ts.map +1 -0
- package/dist/task/browser-control/tasks/BrowserSnapshotTask.d.ts +66 -0
- package/dist/task/browser-control/tasks/BrowserSnapshotTask.d.ts.map +1 -0
- package/dist/task/browser-control/tasks/BrowserSwitchTabTask.d.ts +79 -0
- package/dist/task/browser-control/tasks/BrowserSwitchTabTask.d.ts.map +1 -0
- package/dist/task/browser-control/tasks/BrowserTypeTask.d.ts +79 -0
- package/dist/task/browser-control/tasks/BrowserTypeTask.d.ts.map +1 -0
- package/dist/task/browser-control/tasks/BrowserUploadTask.d.ts +96 -0
- package/dist/task/browser-control/tasks/BrowserUploadTask.d.ts.map +1 -0
- package/dist/task/browser-control/tasks/BrowserWaitTask.d.ts +73 -0
- package/dist/task/browser-control/tasks/BrowserWaitTask.d.ts.map +1 -0
- package/dist/task/browser-control/tasks/index.d.ts +32 -0
- package/dist/task/browser-control/tasks/index.d.ts.map +1 -0
- package/dist/task/image/ImageTextTask.d.ts +392 -0
- package/dist/task/image/ImageTextTask.d.ts.map +1 -0
- package/dist/task/image/imageTextRender.browser.d.ts +8 -0
- package/dist/task/image/imageTextRender.browser.d.ts.map +1 -0
- package/dist/task/image/imageTextRender.d.ts +42 -0
- package/dist/task/image/imageTextRender.d.ts.map +1 -0
- package/dist/task/image/imageTextRender.server.d.ts +8 -0
- package/dist/task/image/imageTextRender.server.d.ts.map +1 -0
- package/dist/task/image/registerImageTextRenderer.browser.d.ts +7 -0
- package/dist/task/image/registerImageTextRenderer.browser.d.ts.map +1 -0
- package/dist/task/image/registerImageTextRenderer.node.d.ts +7 -0
- package/dist/task/image/registerImageTextRenderer.node.d.ts.map +1 -0
- package/dist/util/BrowserTaskDeps.d.ts +21 -0
- package/dist/util/BrowserTaskDeps.d.ts.map +1 -0
- package/package.json +21 -14
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Steven Roussey <sroussey@gmail.com>
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { IExecuteContext, Task, TaskConfig } from "@workglow/task-graph";
|
|
7
|
+
import { DataPortSchema, FromSchema } from "@workglow/util/schema";
|
|
8
|
+
export type BrowserPressKeyTaskConfig = TaskConfig & {
|
|
9
|
+
modifiers?: Array<"Alt" | "Control" | "Meta" | "Shift">;
|
|
10
|
+
};
|
|
11
|
+
declare const inputSchema: {
|
|
12
|
+
readonly type: "object";
|
|
13
|
+
readonly properties: {
|
|
14
|
+
readonly sessionId: {
|
|
15
|
+
readonly type: "string";
|
|
16
|
+
readonly title: "Session ID";
|
|
17
|
+
readonly description: "The browser session to use";
|
|
18
|
+
};
|
|
19
|
+
readonly key: {
|
|
20
|
+
readonly type: "string";
|
|
21
|
+
readonly title: "Key";
|
|
22
|
+
readonly description: "The key to press (e.g. Enter, Tab, ArrowDown)";
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
readonly required: readonly ["sessionId", "key"];
|
|
26
|
+
readonly additionalProperties: false;
|
|
27
|
+
};
|
|
28
|
+
declare const outputSchema: {
|
|
29
|
+
readonly type: "object";
|
|
30
|
+
readonly properties: {
|
|
31
|
+
readonly sessionId: {
|
|
32
|
+
readonly type: "string";
|
|
33
|
+
readonly title: "Session ID";
|
|
34
|
+
readonly description: "The browser session ID";
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
readonly required: readonly ["sessionId"];
|
|
38
|
+
readonly additionalProperties: false;
|
|
39
|
+
};
|
|
40
|
+
export type BrowserPressKeyTaskInput = FromSchema<typeof inputSchema>;
|
|
41
|
+
export type BrowserPressKeyTaskOutput = FromSchema<typeof outputSchema>;
|
|
42
|
+
export declare class BrowserPressKeyTask extends Task<BrowserPressKeyTaskInput, BrowserPressKeyTaskOutput, BrowserPressKeyTaskConfig> {
|
|
43
|
+
static readonly type = "BrowserPressKeyTask";
|
|
44
|
+
static readonly category = "Browser";
|
|
45
|
+
static title: string;
|
|
46
|
+
static description: string;
|
|
47
|
+
static readonly cacheable = false;
|
|
48
|
+
static configSchema(): DataPortSchema;
|
|
49
|
+
static inputSchema(): {
|
|
50
|
+
readonly type: "object";
|
|
51
|
+
readonly properties: {
|
|
52
|
+
readonly sessionId: {
|
|
53
|
+
readonly type: "string";
|
|
54
|
+
readonly title: "Session ID";
|
|
55
|
+
readonly description: "The browser session to use";
|
|
56
|
+
};
|
|
57
|
+
readonly key: {
|
|
58
|
+
readonly type: "string";
|
|
59
|
+
readonly title: "Key";
|
|
60
|
+
readonly description: "The key to press (e.g. Enter, Tab, ArrowDown)";
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
readonly required: readonly ["sessionId", "key"];
|
|
64
|
+
readonly additionalProperties: false;
|
|
65
|
+
};
|
|
66
|
+
static outputSchema(): {
|
|
67
|
+
readonly type: "object";
|
|
68
|
+
readonly properties: {
|
|
69
|
+
readonly sessionId: {
|
|
70
|
+
readonly type: "string";
|
|
71
|
+
readonly title: "Session ID";
|
|
72
|
+
readonly description: "The browser session ID";
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
readonly required: readonly ["sessionId"];
|
|
76
|
+
readonly additionalProperties: false;
|
|
77
|
+
};
|
|
78
|
+
private buildKeyChord;
|
|
79
|
+
execute(input: BrowserPressKeyTaskInput, _executeContext: IExecuteContext): Promise<BrowserPressKeyTaskOutput>;
|
|
80
|
+
}
|
|
81
|
+
export {};
|
|
82
|
+
//# sourceMappingURL=BrowserPressKeyTask.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BrowserPressKeyTask.d.ts","sourceRoot":"","sources":["../../../../src/task/browser-control/tasks/BrowserPressKeyTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,eAAe,EAAE,IAAI,EAAE,UAAU,EAAoB,MAAM,sBAAsB,CAAC;AAC3F,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAoBnE,MAAM,MAAM,yBAAyB,GAAG,UAAU,GAAG;IACnD,SAAS,CAAC,EAAE,KAAK,CAAC,KAAK,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC;CACzD,CAAC;AAEF,QAAA,MAAM,WAAW;mBACT,QAAQ;;iBAEZ,SAAS;qBACP,IAAI,EAAE,QAAQ;qBACd,KAAK,EAAE,YAAY;qBACnB,WAAW,EAAE,4BAA4B;;iBAE3C,GAAG;qBACD,IAAI,EAAE,QAAQ;qBACd,KAAK,EAAE,KAAK;qBACZ,WAAW,EAAE,+CAA+C;;;;;CAK/B,CAAC;AAEpC,QAAA,MAAM,YAAY;mBACV,QAAQ;;iBAEZ,SAAS;qBACP,IAAI,EAAE,QAAQ;qBACd,KAAK,EAAE,YAAY;qBACnB,WAAW,EAAE,wBAAwB;;;;;CAKR,CAAC;AAEpC,MAAM,MAAM,wBAAwB,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AACtE,MAAM,MAAM,yBAAyB,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AAExE,qBAAa,mBAAoB,SAAQ,IAAI,CAC3C,wBAAwB,EACxB,yBAAyB,EACzB,yBAAyB,CAC1B;IACC,gBAAyB,IAAI,yBAAyB;IACtD,gBAAyB,QAAQ,aAAa;IAC9C,OAAuB,KAAK,SAAuB;IACnD,OAAuB,WAAW,SACmC;IACrE,gBAAyB,SAAS,SAAS;IAE3C,OAAuB,YAAY,IAAI,cAAc,CAEpD;IAED,OAAgB,WAAW;uBAjDrB,QAAQ;;qBAEZ,SAAS;yBACP,IAAI,EAAE,QAAQ;yBACd,KAAK,EAAE,YAAY;yBACnB,WAAW,EAAE,4BAA4B;;qBAE3C,GAAG;yBACD,IAAI,EAAE,QAAQ;yBACd,KAAK,EAAE,KAAK;yBACZ,WAAW,EAAE,+CAA+C;;;;;MAyC/D;IAED,OAAgB,YAAY;uBAnCtB,QAAQ;;qBAEZ,SAAS;yBACP,IAAI,EAAE,QAAQ;yBACd,KAAK,EAAE,YAAY;yBACnB,WAAW,EAAE,wBAAwB;;;;;MAgCxC;IAED,OAAO,CAAC,aAAa;IAKN,OAAO,CACpB,KAAK,EAAE,wBAAwB,EAC/B,eAAe,EAAE,eAAe,GAC/B,OAAO,CAAC,yBAAyB,CAAC,CAIpC;CACF"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Steven Roussey <sroussey@gmail.com>
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { IExecuteContext, Task, TaskConfig } from "@workglow/task-graph";
|
|
7
|
+
import { DataPortSchema, FromSchema } from "@workglow/util/schema";
|
|
8
|
+
declare const inputSchema: {
|
|
9
|
+
readonly type: "object";
|
|
10
|
+
readonly properties: {
|
|
11
|
+
readonly sessionId: {
|
|
12
|
+
readonly type: "string";
|
|
13
|
+
readonly title: "Session ID";
|
|
14
|
+
readonly description: "The browser session to use";
|
|
15
|
+
};
|
|
16
|
+
readonly selector: {
|
|
17
|
+
readonly type: "string";
|
|
18
|
+
readonly title: "CSS Selector";
|
|
19
|
+
readonly description: "The CSS selector to query for";
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
readonly required: readonly ["sessionId", "selector"];
|
|
23
|
+
readonly additionalProperties: false;
|
|
24
|
+
};
|
|
25
|
+
declare const outputSchema: {
|
|
26
|
+
readonly type: "object";
|
|
27
|
+
readonly properties: {
|
|
28
|
+
readonly sessionId: {
|
|
29
|
+
readonly type: "string";
|
|
30
|
+
readonly title: "Session ID";
|
|
31
|
+
readonly description: "The browser session ID";
|
|
32
|
+
};
|
|
33
|
+
readonly refs: {
|
|
34
|
+
readonly type: "array";
|
|
35
|
+
readonly items: {
|
|
36
|
+
readonly type: "string";
|
|
37
|
+
};
|
|
38
|
+
readonly title: "Element Refs";
|
|
39
|
+
readonly description: "The element references matching the selector";
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
readonly required: readonly ["sessionId", "refs"];
|
|
43
|
+
readonly additionalProperties: false;
|
|
44
|
+
};
|
|
45
|
+
export type BrowserQuerySelectorTaskInput = FromSchema<typeof inputSchema>;
|
|
46
|
+
export type BrowserQuerySelectorTaskOutput = FromSchema<typeof outputSchema>;
|
|
47
|
+
export declare class BrowserQuerySelectorTask extends Task<BrowserQuerySelectorTaskInput, BrowserQuerySelectorTaskOutput, TaskConfig> {
|
|
48
|
+
static readonly type = "BrowserQuerySelectorTask";
|
|
49
|
+
static readonly category = "Browser";
|
|
50
|
+
static title: string;
|
|
51
|
+
static description: string;
|
|
52
|
+
static readonly cacheable = false;
|
|
53
|
+
static configSchema(): DataPortSchema;
|
|
54
|
+
static inputSchema(): {
|
|
55
|
+
readonly type: "object";
|
|
56
|
+
readonly properties: {
|
|
57
|
+
readonly sessionId: {
|
|
58
|
+
readonly type: "string";
|
|
59
|
+
readonly title: "Session ID";
|
|
60
|
+
readonly description: "The browser session to use";
|
|
61
|
+
};
|
|
62
|
+
readonly selector: {
|
|
63
|
+
readonly type: "string";
|
|
64
|
+
readonly title: "CSS Selector";
|
|
65
|
+
readonly description: "The CSS selector to query for";
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
readonly required: readonly ["sessionId", "selector"];
|
|
69
|
+
readonly additionalProperties: false;
|
|
70
|
+
};
|
|
71
|
+
static outputSchema(): {
|
|
72
|
+
readonly type: "object";
|
|
73
|
+
readonly properties: {
|
|
74
|
+
readonly sessionId: {
|
|
75
|
+
readonly type: "string";
|
|
76
|
+
readonly title: "Session ID";
|
|
77
|
+
readonly description: "The browser session ID";
|
|
78
|
+
};
|
|
79
|
+
readonly refs: {
|
|
80
|
+
readonly type: "array";
|
|
81
|
+
readonly items: {
|
|
82
|
+
readonly type: "string";
|
|
83
|
+
};
|
|
84
|
+
readonly title: "Element Refs";
|
|
85
|
+
readonly description: "The element references matching the selector";
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
readonly required: readonly ["sessionId", "refs"];
|
|
89
|
+
readonly additionalProperties: false;
|
|
90
|
+
};
|
|
91
|
+
execute(input: BrowserQuerySelectorTaskInput, _executeContext: IExecuteContext): Promise<BrowserQuerySelectorTaskOutput>;
|
|
92
|
+
}
|
|
93
|
+
export {};
|
|
94
|
+
//# sourceMappingURL=BrowserQuerySelectorTask.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BrowserQuerySelectorTask.d.ts","sourceRoot":"","sources":["../../../../src/task/browser-control/tasks/BrowserQuerySelectorTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,eAAe,EAAE,IAAI,EAAE,UAAU,EAAoB,MAAM,sBAAsB,CAAC;AAC3F,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,uBAAuB,CA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AQ;yBACd,KAAK,EAAE,YAAY;yBACnB,WAAW,EAAE,wBAAwB;;qBAEvC,IAAI;yBACF,IAAI,EAAE,OAAO;yBACb,KAAK;6BAAI,IAAI,EAAE,QAAQ;;yBACvB,KAAK,EAAE,cAAc;yBACrB,WAAW,EAAE,8CAA8C;;;;;MAgC9D;IAEc,OAAO,CACpB,KAAK,EAAE,6BAA6B,EACpC,eAAe,EAAE,eAAe,GAC/B,OAAO,CAAC,8BAA8B,CAAC,CAIzC;CACF"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Steven Roussey <sroussey@gmail.com>
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { IExecuteContext, Task, TaskConfig } from "@workglow/task-graph";
|
|
7
|
+
import { DataPortSchema, FromSchema } from "@workglow/util/schema";
|
|
8
|
+
declare const inputSchema: {
|
|
9
|
+
readonly type: "object";
|
|
10
|
+
readonly properties: {
|
|
11
|
+
readonly sessionId: {
|
|
12
|
+
readonly type: "string";
|
|
13
|
+
readonly title: "Session ID";
|
|
14
|
+
readonly description: "The browser session to use";
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
readonly required: readonly ["sessionId"];
|
|
18
|
+
readonly additionalProperties: false;
|
|
19
|
+
};
|
|
20
|
+
declare const outputSchema: {
|
|
21
|
+
readonly type: "object";
|
|
22
|
+
readonly properties: {
|
|
23
|
+
readonly sessionId: {
|
|
24
|
+
readonly type: "string";
|
|
25
|
+
readonly title: "Session ID";
|
|
26
|
+
readonly description: "The browser session ID";
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
readonly required: readonly ["sessionId"];
|
|
30
|
+
readonly additionalProperties: false;
|
|
31
|
+
};
|
|
32
|
+
export type BrowserReloadTaskInput = FromSchema<typeof inputSchema>;
|
|
33
|
+
export type BrowserReloadTaskOutput = FromSchema<typeof outputSchema>;
|
|
34
|
+
export declare class BrowserReloadTask extends Task<BrowserReloadTaskInput, BrowserReloadTaskOutput, TaskConfig> {
|
|
35
|
+
static readonly type = "BrowserReloadTask";
|
|
36
|
+
static readonly category = "Browser";
|
|
37
|
+
static title: string;
|
|
38
|
+
static description: string;
|
|
39
|
+
static readonly cacheable = false;
|
|
40
|
+
static configSchema(): DataPortSchema;
|
|
41
|
+
static inputSchema(): {
|
|
42
|
+
readonly type: "object";
|
|
43
|
+
readonly properties: {
|
|
44
|
+
readonly sessionId: {
|
|
45
|
+
readonly type: "string";
|
|
46
|
+
readonly title: "Session ID";
|
|
47
|
+
readonly description: "The browser session to use";
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
readonly required: readonly ["sessionId"];
|
|
51
|
+
readonly additionalProperties: false;
|
|
52
|
+
};
|
|
53
|
+
static outputSchema(): {
|
|
54
|
+
readonly type: "object";
|
|
55
|
+
readonly properties: {
|
|
56
|
+
readonly sessionId: {
|
|
57
|
+
readonly type: "string";
|
|
58
|
+
readonly title: "Session ID";
|
|
59
|
+
readonly description: "The browser session ID";
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
readonly required: readonly ["sessionId"];
|
|
63
|
+
readonly additionalProperties: false;
|
|
64
|
+
};
|
|
65
|
+
execute(input: BrowserReloadTaskInput, _executeContext: IExecuteContext): Promise<BrowserReloadTaskOutput>;
|
|
66
|
+
}
|
|
67
|
+
export {};
|
|
68
|
+
//# sourceMappingURL=BrowserReloadTask.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BrowserReloadTask.d.ts","sourceRoot":"","sources":["../../../../src/task/browser-control/tasks/BrowserReloadTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,eAAe,EAAE,IAAI,EAAE,UAAU,EAAoB,MAAM,sBAAsB,CAAC;AAC3F,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAGnE,QAAA,MAAM,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6
|
+
import { IExecuteContext, Task, TaskConfig } from "@workglow/task-graph";
|
|
7
|
+
import { DataPortSchema, FromSchema } from "@workglow/util/schema";
|
|
8
|
+
export type BrowserScreenshotTaskConfig = TaskConfig & {
|
|
9
|
+
format?: "png" | "jpeg";
|
|
10
|
+
fullPage?: boolean;
|
|
11
|
+
};
|
|
12
|
+
declare const inputSchema: {
|
|
13
|
+
readonly type: "object";
|
|
14
|
+
readonly properties: {
|
|
15
|
+
readonly sessionId: {
|
|
16
|
+
readonly type: "string";
|
|
17
|
+
readonly title: "Session ID";
|
|
18
|
+
readonly description: "The browser session to use";
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
readonly required: readonly ["sessionId"];
|
|
22
|
+
readonly additionalProperties: false;
|
|
23
|
+
};
|
|
24
|
+
export type BrowserScreenshotTaskInput = FromSchema<typeof inputSchema>;
|
|
25
|
+
export type BrowserScreenshotTaskOutput = {
|
|
26
|
+
sessionId: string;
|
|
27
|
+
image: Uint8Array;
|
|
28
|
+
};
|
|
29
|
+
export declare class BrowserScreenshotTask extends Task<BrowserScreenshotTaskInput, BrowserScreenshotTaskOutput, BrowserScreenshotTaskConfig> {
|
|
30
|
+
static readonly type = "BrowserScreenshotTask";
|
|
31
|
+
static readonly category = "Browser";
|
|
32
|
+
static title: string;
|
|
33
|
+
static description: string;
|
|
34
|
+
static readonly cacheable = false;
|
|
35
|
+
static configSchema(): DataPortSchema;
|
|
36
|
+
static inputSchema(): {
|
|
37
|
+
readonly type: "object";
|
|
38
|
+
readonly properties: {
|
|
39
|
+
readonly sessionId: {
|
|
40
|
+
readonly type: "string";
|
|
41
|
+
readonly title: "Session ID";
|
|
42
|
+
readonly description: "The browser session to use";
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
readonly required: readonly ["sessionId"];
|
|
46
|
+
readonly additionalProperties: false;
|
|
47
|
+
};
|
|
48
|
+
static outputSchema(): {
|
|
49
|
+
readonly type: "object";
|
|
50
|
+
readonly properties: {
|
|
51
|
+
readonly sessionId: {
|
|
52
|
+
readonly type: "string";
|
|
53
|
+
readonly title: "Session ID";
|
|
54
|
+
readonly description: "The browser session ID";
|
|
55
|
+
};
|
|
56
|
+
readonly image: {
|
|
57
|
+
readonly type: "string";
|
|
58
|
+
readonly format: "binary";
|
|
59
|
+
readonly title: "Image";
|
|
60
|
+
readonly description: "The screenshot image data";
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
readonly required: readonly ["sessionId", "image"];
|
|
64
|
+
readonly additionalProperties: false;
|
|
65
|
+
};
|
|
66
|
+
execute(input: BrowserScreenshotTaskInput, _executeContext: IExecuteContext): Promise<BrowserScreenshotTaskOutput>;
|
|
67
|
+
}
|
|
68
|
+
export {};
|
|
69
|
+
//# sourceMappingURL=BrowserScreenshotTask.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BrowserScreenshotTask.d.ts","sourceRoot":"","sources":["../../../../src/task/browser-control/tasks/BrowserScreenshotTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,eAAe,EAAE,IAAI,EAAE,UAAU,EAAoB,MAAM,sBAAsB,CAAC;AAC3F,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAwBnE,MAAM,MAAM,2BAA2B,GAAG,UAAU,GAAG;IACrD,MAAM,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,QAAA,MAAM,WAAW;mBACT,QAAQ;;iBAEZ,SAAS;qBACP,IAAI,EAAE,QAAQ;qBACd,KAAK,EAAE,YAAY;qBACnB,WAAW,EAAE,4BAA4B;;;;;CAKZ,CAAC;AAqBpC,MAAM,MAAM,0BAA0B,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AACxE,MAAM,MAAM,2BAA2B,GAAG;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,UAAU,CAAA;CAAE,CAAC;AAEnF,qBAAa,qBAAsB,SAAQ,IAAI,CAC7C,0BAA0B,EAC1B,2BAA2B,EAC3B,2BAA2B,CAC5B;IACC,gBAAyB,IAAI,2BAA2B;IACxD,gBAAyB,QAAQ,aAAa;IAC9C,OAAuB,KAAK,SAAwB;IACpD,OAAuB,WAAW,SAAoD;IACtF,gBAAyB,SAAS,SAAS;IAE3C,OAAuB,YAAY,IAAI,cAAc,CAEpD;IAED,OAAgB,WAAW;uBAjDrB,QAAQ;;qBAEZ,SAAS;yBACP,IAAI,EAAE,QAAQ;yBACd,KAAK,EAAE,YAAY;yBACnB,WAAW,EAAE,4BAA4B;;;;;MA8C5C;IAED,OAAgB,YAAY;uBAxCtB,QAAQ;;qBAEZ,SAAS;yBACP,IAAI,EAAE,QAAQ;yBACd,KAAK,EAAE,YAAY;yBACnB,WAAW,EAAE,wBAAwB;;qBAEvC,KAAK;yBACH,IAAI,EAAE,QAAQ;yBACd,MAAM,EAAE,QAAQ;yBAChB,KAAK,EAAE,OAAO;yBACd,WAAW,EAAE,2BAA2B;;;;;MA+B3C;IAEc,OAAO,CACpB,KAAK,EAAE,0BAA0B,EACjC,eAAe,EAAE,eAAe,GAC/B,OAAO,CAAC,2BAA2B,CAAC,CAMtC;CACF"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Steven Roussey <sroussey@gmail.com>
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { IExecuteContext, Task, TaskConfig } from "@workglow/task-graph";
|
|
7
|
+
import { DataPortSchema, FromSchema } from "@workglow/util/schema";
|
|
8
|
+
export type BrowserScrollTaskConfig = TaskConfig & {
|
|
9
|
+
x?: number;
|
|
10
|
+
y?: number;
|
|
11
|
+
ref?: string;
|
|
12
|
+
};
|
|
13
|
+
declare const inputSchema: {
|
|
14
|
+
readonly type: "object";
|
|
15
|
+
readonly properties: {
|
|
16
|
+
readonly sessionId: {
|
|
17
|
+
readonly type: "string";
|
|
18
|
+
readonly title: "Session ID";
|
|
19
|
+
readonly description: "The browser session to use";
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
readonly required: readonly ["sessionId"];
|
|
23
|
+
readonly additionalProperties: false;
|
|
24
|
+
};
|
|
25
|
+
declare const outputSchema: {
|
|
26
|
+
readonly type: "object";
|
|
27
|
+
readonly properties: {
|
|
28
|
+
readonly sessionId: {
|
|
29
|
+
readonly type: "string";
|
|
30
|
+
readonly title: "Session ID";
|
|
31
|
+
readonly description: "The browser session ID";
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
readonly required: readonly ["sessionId"];
|
|
35
|
+
readonly additionalProperties: false;
|
|
36
|
+
};
|
|
37
|
+
export type BrowserScrollTaskInput = FromSchema<typeof inputSchema>;
|
|
38
|
+
export type BrowserScrollTaskOutput = FromSchema<typeof outputSchema>;
|
|
39
|
+
export declare class BrowserScrollTask extends Task<BrowserScrollTaskInput, BrowserScrollTaskOutput, BrowserScrollTaskConfig> {
|
|
40
|
+
static readonly type = "BrowserScrollTask";
|
|
41
|
+
static readonly category = "Browser";
|
|
42
|
+
static title: string;
|
|
43
|
+
static description: string;
|
|
44
|
+
static readonly cacheable = false;
|
|
45
|
+
static configSchema(): DataPortSchema;
|
|
46
|
+
static inputSchema(): {
|
|
47
|
+
readonly type: "object";
|
|
48
|
+
readonly properties: {
|
|
49
|
+
readonly sessionId: {
|
|
50
|
+
readonly type: "string";
|
|
51
|
+
readonly title: "Session ID";
|
|
52
|
+
readonly description: "The browser session to use";
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
readonly required: readonly ["sessionId"];
|
|
56
|
+
readonly additionalProperties: false;
|
|
57
|
+
};
|
|
58
|
+
static outputSchema(): {
|
|
59
|
+
readonly type: "object";
|
|
60
|
+
readonly properties: {
|
|
61
|
+
readonly sessionId: {
|
|
62
|
+
readonly type: "string";
|
|
63
|
+
readonly title: "Session ID";
|
|
64
|
+
readonly description: "The browser session ID";
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
readonly required: readonly ["sessionId"];
|
|
68
|
+
readonly additionalProperties: false;
|
|
69
|
+
};
|
|
70
|
+
execute(input: BrowserScrollTaskInput, _executeContext: IExecuteContext): Promise<BrowserScrollTaskOutput>;
|
|
71
|
+
}
|
|
72
|
+
export {};
|
|
73
|
+
//# sourceMappingURL=BrowserScrollTask.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BrowserScrollTask.d.ts","sourceRoot":"","sources":["../../../../src/task/browser-control/tasks/BrowserScrollTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,eAAe,EAAE,IAAI,EAAE,UAAU,EAAoB,MAAM,sBAAsB,CAAC;AAC3F,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AA4BnE,MAAM,MAAM,uBAAuB,GAAG,UAAU,GAAG;IACjD,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,QAAA,MAAM,WAAW;mBACT,QAAQ;;iBAEZ,SAAS;qBACP,IAAI,EAAE,QAAQ;qBACd,KAAK,EAAE,YAAY;qBACnB,WAAW,EAAE,4BAA4B;;;;;CAKZ,CAAC;AAEpC,QAAA,MAAM,YAAY;mBACV,QAAQ;;iBAEZ,SAAS;qBACP,IAAI,EAAE,QAAQ;qBACd,KAAK,EAAE,YAAY;qBACnB,WAAW,EAAE,wBAAwB;;;;;CAKR,CAAC;AAEpC,MAAM,MAAM,sBAAsB,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AACpE,MAAM,MAAM,uBAAuB,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AAEtE,qBAAa,iBAAkB,SAAQ,IAAI,CACzC,sBAAsB,EACtB,uBAAuB,EACvB,uBAAuB,CACxB;IACC,gBAAyB,IAAI,uBAAuB;IACpD,gBAAyB,QAAQ,aAAa;IAC9C,OAAuB,KAAK,SAAoB;IAChD,OAAuB,WAAW,SACmC;IACrE,gBAAyB,SAAS,SAAS;IAE3C,OAAuB,YAAY,IAAI,cAAc,CAEpD;IAED,OAAgB,WAAW;uBA5CrB,QAAQ;;qBAEZ,SAAS;yBACP,IAAI,EAAE,QAAQ;yBACd,KAAK,EAAE,YAAY;yBACnB,WAAW,EAAE,4BAA4B;;;;;MAyC5C;IAED,OAAgB,YAAY;uBAnCtB,QAAQ;;qBAEZ,SAAS;yBACP,IAAI,EAAE,QAAQ;yBACd,KAAK,EAAE,YAAY;yBACnB,WAAW,EAAE,wBAAwB;;;;;MAgCxC;IAEc,OAAO,CACpB,KAAK,EAAE,sBAAsB,EAC7B,eAAe,EAAE,eAAe,GAC/B,OAAO,CAAC,uBAAuB,CAAC,CAIlC;CACF"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Steven Roussey <sroussey@gmail.com>
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { IExecuteContext, Task, TaskConfig } from "@workglow/task-graph";
|
|
7
|
+
import { DataPortSchema, FromSchema } from "@workglow/util/schema";
|
|
8
|
+
declare const inputSchema: {
|
|
9
|
+
readonly type: "object";
|
|
10
|
+
readonly properties: {
|
|
11
|
+
readonly sessionId: {
|
|
12
|
+
readonly type: "string";
|
|
13
|
+
readonly title: "Session ID";
|
|
14
|
+
readonly description: "The browser session to use";
|
|
15
|
+
};
|
|
16
|
+
readonly ref: {
|
|
17
|
+
readonly type: "string";
|
|
18
|
+
readonly title: "Element Ref";
|
|
19
|
+
readonly description: "The element reference of the select element";
|
|
20
|
+
};
|
|
21
|
+
readonly label: {
|
|
22
|
+
readonly type: "string";
|
|
23
|
+
readonly title: "Label";
|
|
24
|
+
readonly description: "The label text of the select element (not yet supported, use ref)";
|
|
25
|
+
};
|
|
26
|
+
readonly value: {
|
|
27
|
+
readonly type: "string";
|
|
28
|
+
readonly title: "Value";
|
|
29
|
+
readonly description: "The option value to select";
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
readonly required: readonly ["sessionId", "value"];
|
|
33
|
+
readonly additionalProperties: false;
|
|
34
|
+
};
|
|
35
|
+
declare const outputSchema: {
|
|
36
|
+
readonly type: "object";
|
|
37
|
+
readonly properties: {
|
|
38
|
+
readonly sessionId: {
|
|
39
|
+
readonly type: "string";
|
|
40
|
+
readonly title: "Session ID";
|
|
41
|
+
readonly description: "The browser session ID";
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
readonly required: readonly ["sessionId"];
|
|
45
|
+
readonly additionalProperties: false;
|
|
46
|
+
};
|
|
47
|
+
export type BrowserSelectTaskInput = FromSchema<typeof inputSchema>;
|
|
48
|
+
export type BrowserSelectTaskOutput = FromSchema<typeof outputSchema>;
|
|
49
|
+
export declare class BrowserSelectTask extends Task<BrowserSelectTaskInput, BrowserSelectTaskOutput, TaskConfig> {
|
|
50
|
+
static readonly type = "BrowserSelectTask";
|
|
51
|
+
static readonly category = "Browser";
|
|
52
|
+
static title: string;
|
|
53
|
+
static description: string;
|
|
54
|
+
static readonly cacheable = false;
|
|
55
|
+
static configSchema(): DataPortSchema;
|
|
56
|
+
static inputSchema(): {
|
|
57
|
+
readonly type: "object";
|
|
58
|
+
readonly properties: {
|
|
59
|
+
readonly sessionId: {
|
|
60
|
+
readonly type: "string";
|
|
61
|
+
readonly title: "Session ID";
|
|
62
|
+
readonly description: "The browser session to use";
|
|
63
|
+
};
|
|
64
|
+
readonly ref: {
|
|
65
|
+
readonly type: "string";
|
|
66
|
+
readonly title: "Element Ref";
|
|
67
|
+
readonly description: "The element reference of the select element";
|
|
68
|
+
};
|
|
69
|
+
readonly label: {
|
|
70
|
+
readonly type: "string";
|
|
71
|
+
readonly title: "Label";
|
|
72
|
+
readonly description: "The label text of the select element (not yet supported, use ref)";
|
|
73
|
+
};
|
|
74
|
+
readonly value: {
|
|
75
|
+
readonly type: "string";
|
|
76
|
+
readonly title: "Value";
|
|
77
|
+
readonly description: "The option value to select";
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
readonly required: readonly ["sessionId", "value"];
|
|
81
|
+
readonly additionalProperties: false;
|
|
82
|
+
};
|
|
83
|
+
static outputSchema(): {
|
|
84
|
+
readonly type: "object";
|
|
85
|
+
readonly properties: {
|
|
86
|
+
readonly sessionId: {
|
|
87
|
+
readonly type: "string";
|
|
88
|
+
readonly title: "Session ID";
|
|
89
|
+
readonly description: "The browser session ID";
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
readonly required: readonly ["sessionId"];
|
|
93
|
+
readonly additionalProperties: false;
|
|
94
|
+
};
|
|
95
|
+
execute(input: BrowserSelectTaskInput, _executeContext: IExecuteContext): Promise<BrowserSelectTaskOutput>;
|
|
96
|
+
}
|
|
97
|
+
export {};
|
|
98
|
+
//# sourceMappingURL=BrowserSelectTask.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BrowserSelectTask.d.ts","sourceRoot":"","sources":["../../../../src/task/browser-control/tasks/BrowserSelectTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,eAAe,EAAE,IAAI,EAAE,UAAU,EAAoB,MAAM,sBAAsB,CAAC;AAC3F,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAGnE,QAAA,MAAM,WAAW;mBACT,QAAQ;;iBAEZ,SAAS;qBACP,IAAI,EAAE,QAAQ;qBACd,KAAK,EAAE,YAAY;qBACnB,WAAW,EAAE,4BAA4B;;iBAE3C,GAAG;qBACD,IAAI,EAAE,QAAQ;qBACd,KAAK,EAAE,aAAa;qBACpB,WAAW,EAAE,6CAA6C;;iBAE5D,KA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AK,EAAE,YAAY;yBACnB,WAAW,EAAE,wBAAwB;;;;;MA+BxC;IAEc,OAAO,CACpB,KAAK,EAAE,sBAAsB,EAC7B,eAAe,EAAE,eAAe,GAC/B,OAAO,CAAC,uBAAuB,CAAC,CAQlC;CACF"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Steven Roussey <sroussey@gmail.com>
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { IExecuteContext, Task, TaskConfig, TaskEntitlements } from "@workglow/task-graph";
|
|
7
|
+
import { DataPortSchema, FromSchema } from "@workglow/util/schema";
|
|
8
|
+
export type BrowserSessionTaskConfig = TaskConfig & {
|
|
9
|
+
backend?: "local" | "cloud" | "electron-native";
|
|
10
|
+
projectId?: string;
|
|
11
|
+
profileName?: string;
|
|
12
|
+
headless?: boolean;
|
|
13
|
+
};
|
|
14
|
+
declare const inputSchema: {
|
|
15
|
+
readonly type: "object";
|
|
16
|
+
readonly properties: {};
|
|
17
|
+
readonly additionalProperties: false;
|
|
18
|
+
};
|
|
19
|
+
declare const outputSchema: {
|
|
20
|
+
readonly type: "object";
|
|
21
|
+
readonly properties: {
|
|
22
|
+
readonly sessionId: {
|
|
23
|
+
readonly type: "string";
|
|
24
|
+
readonly title: "Session ID";
|
|
25
|
+
readonly description: "The unique identifier for the created browser session";
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
readonly required: readonly ["sessionId"];
|
|
29
|
+
readonly additionalProperties: false;
|
|
30
|
+
};
|
|
31
|
+
export type BrowserSessionTaskInput = FromSchema<typeof inputSchema>;
|
|
32
|
+
export type BrowserSessionTaskOutput = FromSchema<typeof outputSchema>;
|
|
33
|
+
export declare class BrowserSessionTask extends Task<BrowserSessionTaskInput, BrowserSessionTaskOutput, BrowserSessionTaskConfig> {
|
|
34
|
+
static readonly type = "BrowserSessionTask";
|
|
35
|
+
static readonly category = "Browser";
|
|
36
|
+
static title: string;
|
|
37
|
+
static description: string;
|
|
38
|
+
static readonly cacheable = false;
|
|
39
|
+
static hasDynamicEntitlements: boolean;
|
|
40
|
+
static configSchema(): DataPortSchema;
|
|
41
|
+
static inputSchema(): {
|
|
42
|
+
readonly type: "object";
|
|
43
|
+
readonly properties: {};
|
|
44
|
+
readonly additionalProperties: false;
|
|
45
|
+
};
|
|
46
|
+
static outputSchema(): {
|
|
47
|
+
readonly type: "object";
|
|
48
|
+
readonly properties: {
|
|
49
|
+
readonly sessionId: {
|
|
50
|
+
readonly type: "string";
|
|
51
|
+
readonly title: "Session ID";
|
|
52
|
+
readonly description: "The unique identifier for the created browser session";
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
readonly required: readonly ["sessionId"];
|
|
56
|
+
readonly additionalProperties: false;
|
|
57
|
+
};
|
|
58
|
+
static entitlements(): TaskEntitlements;
|
|
59
|
+
entitlements(): TaskEntitlements;
|
|
60
|
+
execute(_input: BrowserSessionTaskInput, executeContext: IExecuteContext): Promise<BrowserSessionTaskOutput>;
|
|
61
|
+
}
|
|
62
|
+
export {};
|
|
63
|
+
//# sourceMappingURL=BrowserSessionTask.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BrowserSessionTask.d.ts","sourceRoot":"","sources":["../../../../src/task/browser-control/tasks/BrowserSessionTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAEL,eAAe,EAEf,IAAI,EACJ,UAAU,EAEV,gBAAgB,EACjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAkCnE,MAAM,MAAM,wBAAwB,GAAG,UAAU,GAAG;IAClD,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,iBAAiB,CAAC;IAChD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IAC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, Task, TaskConfig } from "@workglow/task-graph";
|
|
7
|
+
import { DataPortSchema, FromSchema } from "@workglow/util/schema";
|
|
8
|
+
import type { AccessibilityTree } from "../IBrowserContext";
|
|
9
|
+
declare const inputSchema: {
|
|
10
|
+
readonly type: "object";
|
|
11
|
+
readonly properties: {
|
|
12
|
+
readonly sessionId: {
|
|
13
|
+
readonly type: "string";
|
|
14
|
+
readonly title: "Session ID";
|
|
15
|
+
readonly description: "The browser session to use";
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
readonly required: readonly ["sessionId"];
|
|
19
|
+
readonly additionalProperties: false;
|
|
20
|
+
};
|
|
21
|
+
export type BrowserSnapshotTaskInput = FromSchema<typeof inputSchema>;
|
|
22
|
+
export type BrowserSnapshotTaskOutput = {
|
|
23
|
+
sessionId: string;
|
|
24
|
+
tree: AccessibilityTree;
|
|
25
|
+
};
|
|
26
|
+
export declare class BrowserSnapshotTask extends Task<BrowserSnapshotTaskInput, BrowserSnapshotTaskOutput, TaskConfig> {
|
|
27
|
+
static readonly type = "BrowserSnapshotTask";
|
|
28
|
+
static readonly category = "Browser";
|
|
29
|
+
static title: string;
|
|
30
|
+
static description: string;
|
|
31
|
+
static readonly cacheable = false;
|
|
32
|
+
static configSchema(): DataPortSchema;
|
|
33
|
+
static inputSchema(): {
|
|
34
|
+
readonly type: "object";
|
|
35
|
+
readonly properties: {
|
|
36
|
+
readonly sessionId: {
|
|
37
|
+
readonly type: "string";
|
|
38
|
+
readonly title: "Session ID";
|
|
39
|
+
readonly description: "The browser session to use";
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
readonly required: readonly ["sessionId"];
|
|
43
|
+
readonly additionalProperties: false;
|
|
44
|
+
};
|
|
45
|
+
static outputSchema(): {
|
|
46
|
+
readonly type: "object";
|
|
47
|
+
readonly properties: {
|
|
48
|
+
readonly sessionId: {
|
|
49
|
+
readonly type: "string";
|
|
50
|
+
readonly title: "Session ID";
|
|
51
|
+
readonly description: "The browser session ID";
|
|
52
|
+
};
|
|
53
|
+
readonly tree: {
|
|
54
|
+
readonly type: "object";
|
|
55
|
+
readonly title: "Accessibility Tree";
|
|
56
|
+
readonly description: "The accessibility tree of the current page";
|
|
57
|
+
readonly additionalProperties: true;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
readonly required: readonly ["sessionId", "tree"];
|
|
61
|
+
readonly additionalProperties: false;
|
|
62
|
+
};
|
|
63
|
+
execute(input: BrowserSnapshotTaskInput, _executeContext: IExecuteContext): Promise<BrowserSnapshotTaskOutput>;
|
|
64
|
+
}
|
|
65
|
+
export {};
|
|
66
|
+
//# sourceMappingURL=BrowserSnapshotTask.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BrowserSnapshotTask.d.ts","sourceRoot":"","sources":["../../../../src/task/browser-control/tasks/BrowserSnapshotTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,eAAe,EAAE,IAAI,EAAE,UAAU,EAAoB,MAAM,sBAAsB,CAAC;AAC3F,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAG5D,QAAA,MAAM,WAAW;mBACT,QAAQ;;iBAEZ,SAAS;qBACP,IAAI,EAAE,QAAQ;qBACd,KAAK,EAAE,YAAY;qBACnB,WAAW,EAAE,4BAA4B;;;;;CAKZ,CAAC;AAqBpC,MAAM,MAAM,wBAAwB,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AACtE,MAAM,MAAM,yBAAyB,GAAG;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,iBAAiB,CAAA;CAAE,CAAC;AAEvF,qBAAa,mBAAoB,SAAQ,IAAI,CAC3C,wBAAwB,EACxB,yBAAyB,EACzB,UAAU,CACX;IACC,gBAAyB,IAAI,yBAAyB;IACtD,gBAAyB,QAAQ,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