@workglow/tasks 0.2.6 → 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 +42 -7
- 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 +42 -5
- 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 +42 -5
- package/dist/server.d.ts +8 -0
- package/dist/server.d.ts.map +1 -0
- 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,84 @@
|
|
|
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 to get the attribute from";
|
|
20
|
+
};
|
|
21
|
+
readonly attribute: {
|
|
22
|
+
readonly type: "string";
|
|
23
|
+
readonly title: "Attribute Name";
|
|
24
|
+
readonly description: "The name of the attribute to retrieve";
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
readonly required: readonly ["sessionId", "ref", "attribute"];
|
|
28
|
+
readonly additionalProperties: false;
|
|
29
|
+
};
|
|
30
|
+
export type BrowserAttributeTaskInput = FromSchema<typeof inputSchema>;
|
|
31
|
+
export type BrowserAttributeTaskOutput = {
|
|
32
|
+
sessionId: string;
|
|
33
|
+
value: string | null;
|
|
34
|
+
};
|
|
35
|
+
export declare class BrowserAttributeTask extends Task<BrowserAttributeTaskInput, BrowserAttributeTaskOutput, TaskConfig> {
|
|
36
|
+
static readonly type = "BrowserAttributeTask";
|
|
37
|
+
static readonly category = "Browser";
|
|
38
|
+
static title: string;
|
|
39
|
+
static description: string;
|
|
40
|
+
static readonly cacheable = false;
|
|
41
|
+
static configSchema(): DataPortSchema;
|
|
42
|
+
static inputSchema(): {
|
|
43
|
+
readonly type: "object";
|
|
44
|
+
readonly properties: {
|
|
45
|
+
readonly sessionId: {
|
|
46
|
+
readonly type: "string";
|
|
47
|
+
readonly title: "Session ID";
|
|
48
|
+
readonly description: "The browser session to use";
|
|
49
|
+
};
|
|
50
|
+
readonly ref: {
|
|
51
|
+
readonly type: "string";
|
|
52
|
+
readonly title: "Element Ref";
|
|
53
|
+
readonly description: "The element reference to get the attribute from";
|
|
54
|
+
};
|
|
55
|
+
readonly attribute: {
|
|
56
|
+
readonly type: "string";
|
|
57
|
+
readonly title: "Attribute Name";
|
|
58
|
+
readonly description: "The name of the attribute to retrieve";
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
readonly required: readonly ["sessionId", "ref", "attribute"];
|
|
62
|
+
readonly additionalProperties: false;
|
|
63
|
+
};
|
|
64
|
+
static outputSchema(): {
|
|
65
|
+
readonly type: "object";
|
|
66
|
+
readonly properties: {
|
|
67
|
+
readonly sessionId: {
|
|
68
|
+
readonly type: "string";
|
|
69
|
+
readonly title: "Session ID";
|
|
70
|
+
readonly description: "The browser session ID";
|
|
71
|
+
};
|
|
72
|
+
readonly value: {
|
|
73
|
+
readonly type: readonly ["string", "null"];
|
|
74
|
+
readonly title: "Value";
|
|
75
|
+
readonly description: "The attribute value, or null if not present";
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
readonly required: readonly ["sessionId", "value"];
|
|
79
|
+
readonly additionalProperties: false;
|
|
80
|
+
};
|
|
81
|
+
execute(input: BrowserAttributeTaskInput, _executeContext: IExecuteContext): Promise<BrowserAttributeTaskOutput>;
|
|
82
|
+
}
|
|
83
|
+
export {};
|
|
84
|
+
//# sourceMappingURL=BrowserAttributeTask.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BrowserAttributeTask.d.ts","sourceRoot":"","sources":["../../../../src/task/browser-control/tasks/BrowserAttributeTask.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,iDAAiD;;iBAEhE,SAAS;qBACP,IAAI,EAAE,QAAQ;qBACd,KAAK,EAAE,gBAAgB;qBACvB,WAAW,EAAE,uCAAuC;;;;;CAKvB,CAAC;AAoBpC,MAAM,MAAM,yBAAyB,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AACvE,MAAM,MAAM,0BAA0B,GAAG;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,CAAC;AAErF,qBAAa,oBAAqB,SAAQ,IAAI,CAC5C,yBAAyB,EACzB,0BAA0B,EAC1B,UAAU,CACX;IACC,gBAAyB,IAAI,0BAA0B;IACvD,gBAAyB,QAAQ,aAAa;IAC9C,OAAuB,KAAK,SAAuB;IACnD,OAAuB,WAAW,SAAgE;IAClG,gBAAyB,SAAS,SAAS;IAE3C,OAAuB,YAAY,IAAI,cAAc,CAEpD;IAED,OAAgB,WAAW;uBA1DrB,QAAQ;;qBAEZ,SAAS;yBACP,IAAI,EAAE,QAAQ;yBACd,KAAK,EAAE,YAAY;yBACnB,WAAW,EAAE,4BAA4B;;qBAE3C,GAAG;yBACD,IAAI,EAAE,QAAQ;yBACd,KAAK,EAAE,aAAa;yBACpB,WAAW,EAAE,iDAAiD;;qBAEhE,SAAS;yBACP,IAAI,EAAE,QAAQ;yBACd,KAAK,EAAE,gBAAgB;yBACvB,WAAW,EAAE,uCAAuC;;;;;MA6CvD;IAED,OAAgB,YAAY;uBAvCtB,QAAQ;;qBAEZ,SAAS;yBACP,IAAI,EAAE,QAAQ;yBACd,KAAK,EAAE,YAAY;yBACnB,WAAW,EAAE,wBAAwB;;qBAEvC,KAAK;yBACH,IAAI;yBACJ,KAAK,EAAE,OAAO;yBACd,WAAW,EAAE,6CAA6C;;;;;MA+B7D;IAEc,OAAO,CACpB,KAAK,EAAE,yBAAyB,EAChC,eAAe,EAAE,eAAe,GAC/B,OAAO,CAAC,0BAA0B,CAAC,CAIrC;CACF"}
|
|
@@ -0,0 +1,78 @@
|
|
|
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
|
+
readonly url: {
|
|
29
|
+
readonly type: "string";
|
|
30
|
+
readonly title: "URL";
|
|
31
|
+
readonly description: "The current URL after navigating back";
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
readonly required: readonly ["sessionId", "url"];
|
|
35
|
+
readonly additionalProperties: false;
|
|
36
|
+
};
|
|
37
|
+
export type BrowserBackTaskInput = FromSchema<typeof inputSchema>;
|
|
38
|
+
export type BrowserBackTaskOutput = FromSchema<typeof outputSchema>;
|
|
39
|
+
export declare class BrowserBackTask extends Task<BrowserBackTaskInput, BrowserBackTaskOutput, TaskConfig> {
|
|
40
|
+
static readonly type = "BrowserBackTask";
|
|
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
|
+
readonly url: {
|
|
67
|
+
readonly type: "string";
|
|
68
|
+
readonly title: "URL";
|
|
69
|
+
readonly description: "The current URL after navigating back";
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
readonly required: readonly ["sessionId", "url"];
|
|
73
|
+
readonly additionalProperties: false;
|
|
74
|
+
};
|
|
75
|
+
execute(input: BrowserBackTaskInput, _executeContext: IExecuteContext): Promise<BrowserBackTaskOutput>;
|
|
76
|
+
}
|
|
77
|
+
export {};
|
|
78
|
+
//# sourceMappingURL=BrowserBackTask.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BrowserBackTask.d.ts","sourceRoot":"","sources":["../../../../src/task/browser-control/tasks/BrowserBackTask.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;;;;;CAKZ,CAAC;AAEpC,QAAA,MAAM,YAAY;mBACV,QAAQ;;iBAEZ,SAAS;qBACP,IAAI,EAAE,QAAQ;qBACd,KAAK,EAAE,YAAY;qBACnB,WAAW,EAAE,wBAAwB;;iBAEvC,GAAG;qBACD,IAAI,EAAE,QAAQ;qBACd,KAAK,EAAE,KAAK;qBACZ,WAAW,EAAE,uCAAuC;;;;;CAKvB,CAAC;AAEpC,MAAM,MAAM,oBAAoB,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AAClE,MAAM,MAAM,qBAAqB,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AAEpE,qBAAa,eAAgB,SAAQ,IAAI,CAAC,oBAAoB,EAAE,qBAAqB,EAAE,UAAU,CAAC;IAChG,gBAAyB,IAAI,qBAAqB;IAClD,gBAAyB,QAAQ,aAAa;IAC9C,OAAuB,KAAK,SAAkB;IAC9C,OAAuB,WAAW,SACoC;IACtE,gBAAyB,SAAS,SAAS;IAE3C,OAAuB,YAAY,IAAI,cAAc,CAEpD;IAED,OAAgB,WAAW;uBA7CrB,QAAQ;;qBAEZ,SAAS;yBACP,IAAI,EAAE,QAAQ;yBACd,KAAK,EAAE,YAAY;yBACnB,WAAW,EAAE,4BAA4B;;;;;MA0C5C;IAED,OAAgB,YAAY;uBApCtB,QAAQ;;qBAEZ,SAAS;yBACP,IAAI,EAAE,QAAQ;yBACd,KAAK,EAAE,YAAY;yBACnB,WAAW,EAAE,wBAAwB;;qBAEvC,GAAG;yBACD,IAAI,EAAE,QAAQ;yBACd,KAAK,EAAE,KAAK;yBACZ,WAAW,EAAE,uCAAuC;;;;;MA4BvD;IAEc,OAAO,CACpB,KAAK,EAAE,oBAAoB,EAC3B,eAAe,EAAE,eAAe,GAC/B,OAAO,CAAC,qBAAqB,CAAC,CAKhC;CACF"}
|
|
@@ -0,0 +1,101 @@
|
|
|
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 BrowserClickTaskConfig = 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 ref: {
|
|
20
|
+
readonly type: "string";
|
|
21
|
+
readonly title: "Element Ref";
|
|
22
|
+
readonly description: "The element reference to click";
|
|
23
|
+
};
|
|
24
|
+
readonly role: {
|
|
25
|
+
readonly type: "string";
|
|
26
|
+
readonly title: "ARIA Role";
|
|
27
|
+
readonly description: "The ARIA role of the element to click";
|
|
28
|
+
};
|
|
29
|
+
readonly name: {
|
|
30
|
+
readonly type: "string";
|
|
31
|
+
readonly title: "Accessible Name";
|
|
32
|
+
readonly description: "The accessible name of the element to click";
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
readonly required: readonly ["sessionId"];
|
|
36
|
+
readonly additionalProperties: false;
|
|
37
|
+
};
|
|
38
|
+
declare const outputSchema: {
|
|
39
|
+
readonly type: "object";
|
|
40
|
+
readonly properties: {
|
|
41
|
+
readonly sessionId: {
|
|
42
|
+
readonly type: "string";
|
|
43
|
+
readonly title: "Session ID";
|
|
44
|
+
readonly description: "The browser session ID";
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
readonly required: readonly ["sessionId"];
|
|
48
|
+
readonly additionalProperties: false;
|
|
49
|
+
};
|
|
50
|
+
export type BrowserClickTaskInput = FromSchema<typeof inputSchema>;
|
|
51
|
+
export type BrowserClickTaskOutput = FromSchema<typeof outputSchema>;
|
|
52
|
+
export declare class BrowserClickTask extends Task<BrowserClickTaskInput, BrowserClickTaskOutput, BrowserClickTaskConfig> {
|
|
53
|
+
static readonly type = "BrowserClickTask";
|
|
54
|
+
static readonly category = "Browser";
|
|
55
|
+
static title: string;
|
|
56
|
+
static description: string;
|
|
57
|
+
static readonly cacheable = false;
|
|
58
|
+
static configSchema(): DataPortSchema;
|
|
59
|
+
static inputSchema(): {
|
|
60
|
+
readonly type: "object";
|
|
61
|
+
readonly properties: {
|
|
62
|
+
readonly sessionId: {
|
|
63
|
+
readonly type: "string";
|
|
64
|
+
readonly title: "Session ID";
|
|
65
|
+
readonly description: "The browser session to use";
|
|
66
|
+
};
|
|
67
|
+
readonly ref: {
|
|
68
|
+
readonly type: "string";
|
|
69
|
+
readonly title: "Element Ref";
|
|
70
|
+
readonly description: "The element reference to click";
|
|
71
|
+
};
|
|
72
|
+
readonly role: {
|
|
73
|
+
readonly type: "string";
|
|
74
|
+
readonly title: "ARIA Role";
|
|
75
|
+
readonly description: "The ARIA role of the element to click";
|
|
76
|
+
};
|
|
77
|
+
readonly name: {
|
|
78
|
+
readonly type: "string";
|
|
79
|
+
readonly title: "Accessible Name";
|
|
80
|
+
readonly description: "The accessible name of the element to click";
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
readonly required: readonly ["sessionId"];
|
|
84
|
+
readonly additionalProperties: false;
|
|
85
|
+
};
|
|
86
|
+
static outputSchema(): {
|
|
87
|
+
readonly type: "object";
|
|
88
|
+
readonly properties: {
|
|
89
|
+
readonly sessionId: {
|
|
90
|
+
readonly type: "string";
|
|
91
|
+
readonly title: "Session ID";
|
|
92
|
+
readonly description: "The browser session ID";
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
readonly required: readonly ["sessionId"];
|
|
96
|
+
readonly additionalProperties: false;
|
|
97
|
+
};
|
|
98
|
+
execute(input: BrowserClickTaskInput, _executeContext: IExecuteContext): Promise<BrowserClickTaskOutput>;
|
|
99
|
+
}
|
|
100
|
+
export {};
|
|
101
|
+
//# sourceMappingURL=BrowserClickTask.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BrowserClickTask.d.ts","sourceRoot":"","sources":["../../../../src/task/browser-control/tasks/BrowserClickTask.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,sBAAsB,GAAG,UAAU,GAAG;IAChD,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,aAAa;qBACpB,WAAW,EAAE,gCAAgC;;iBAE/C,IAAI;qBACF,IAAI,EAAE,QAAQ;qBACd,KAAK,EAAE,WAAW;qBAClB,WAAW,EAAE,uCAAuC;;iBAEtD,IAAI;qBACF,IAAI,EAAE,QAAQ;qBACd,KAAK,EAAE,iBAAiB;qBACxB,WAAW,EAAE,6CAA6C;;;;;CAK7B,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,qBAAqB,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AACnE,MAAM,MAAM,sBAAsB,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AAErE,qBAAa,gBAAiB,SAAQ,IAAI,CACxC,qBAAqB,EACrB,sBAAsB,EACtB,sBAAsB,CACvB;IACC,gBAAyB,IAAI,sBAAsB;IACnD,gBAAyB,QAAQ,aAAa;IAC9C,OAAuB,KAAK,SAAmB;IAC/C,OAAuB,WAAW,SACmC;IACrE,gBAAyB,SAAS,SAAS;IAE3C,OAAuB,YAAY,IAAI,cAAc,CAEpD;IAED,OAAgB,WAAW;uBA3DrB,QAAQ;;qBAEZ,SAAS;yBACP,IAAI,EAAE,QAAQ;yBACd,KAAK,EAAE,YAAY;yBACnB,WAAW,EAAE,4BAA4B;;qBAE3C,GAAG;yBACD,IAAI,EAAE,QAAQ;yBACd,KAAK,EAAE,aAAa;yBACpB,WAAW,EAAE,gCAAgC;;qBAE/C,IAAI;yBACF,IAAI,EAAE,QAAQ;yBACd,KAAK,EAAE,WAAW;yBAClB,WAAW,EAAE,uCAAuC;;qBAEtD,IAAI;yBACF,IAAI,EAAE,QAAQ;yBACd,KAAK,EAAE,iBAAiB;yBACxB,WAAW,EAAE,6CAA6C;;;;;MAyC7D;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,qBAAqB,EAC5B,eAAe,EAAE,eAAe,GAC/B,OAAO,CAAC,sBAAsB,CAAC,CAWjC;CACF"}
|
|
@@ -0,0 +1,71 @@
|
|
|
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 BrowserCloseTabTaskConfig = TaskConfig & {
|
|
9
|
+
tabId?: string;
|
|
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
|
+
};
|
|
20
|
+
readonly required: readonly ["sessionId"];
|
|
21
|
+
readonly additionalProperties: false;
|
|
22
|
+
};
|
|
23
|
+
declare const outputSchema: {
|
|
24
|
+
readonly type: "object";
|
|
25
|
+
readonly properties: {
|
|
26
|
+
readonly sessionId: {
|
|
27
|
+
readonly type: "string";
|
|
28
|
+
readonly title: "Session ID";
|
|
29
|
+
readonly description: "The browser session ID";
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
readonly required: readonly ["sessionId"];
|
|
33
|
+
readonly additionalProperties: false;
|
|
34
|
+
};
|
|
35
|
+
export type BrowserCloseTabTaskInput = FromSchema<typeof inputSchema>;
|
|
36
|
+
export type BrowserCloseTabTaskOutput = FromSchema<typeof outputSchema>;
|
|
37
|
+
export declare class BrowserCloseTabTask extends Task<BrowserCloseTabTaskInput, BrowserCloseTabTaskOutput, BrowserCloseTabTaskConfig> {
|
|
38
|
+
static readonly type = "BrowserCloseTabTask";
|
|
39
|
+
static readonly category = "Browser";
|
|
40
|
+
static title: string;
|
|
41
|
+
static description: string;
|
|
42
|
+
static readonly cacheable = false;
|
|
43
|
+
static configSchema(): DataPortSchema;
|
|
44
|
+
static inputSchema(): {
|
|
45
|
+
readonly type: "object";
|
|
46
|
+
readonly properties: {
|
|
47
|
+
readonly sessionId: {
|
|
48
|
+
readonly type: "string";
|
|
49
|
+
readonly title: "Session ID";
|
|
50
|
+
readonly description: "The browser session to use";
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
readonly required: readonly ["sessionId"];
|
|
54
|
+
readonly additionalProperties: false;
|
|
55
|
+
};
|
|
56
|
+
static outputSchema(): {
|
|
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 ID";
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
readonly required: readonly ["sessionId"];
|
|
66
|
+
readonly additionalProperties: false;
|
|
67
|
+
};
|
|
68
|
+
execute(input: BrowserCloseTabTaskInput, _executeContext: IExecuteContext): Promise<BrowserCloseTabTaskOutput>;
|
|
69
|
+
}
|
|
70
|
+
export {};
|
|
71
|
+
//# sourceMappingURL=BrowserCloseTabTask.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BrowserCloseTabTask.d.ts","sourceRoot":"","sources":["../../../../src/task/browser-control/tasks/BrowserCloseTabTask.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;AAgBnE,MAAM,MAAM,yBAAyB,GAAG,UAAU,GAAG;IACnD,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,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,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,SAAoC;IACtE,gBAAyB,SAAS,SAAS;IAE3C,OAAuB,YAAY,IAAI,cAAc,CAEpD;IAED,OAAgB,WAAW;uBA3CrB,QAAQ;;qBAEZ,SAAS;yBACP,IAAI,EAAE,QAAQ;yBACd,KAAK,EAAE,YAAY;yBACnB,WAAW,EAAE,4BAA4B;;;;;MAwC5C;IAED,OAAgB,YAAY;uBAlCtB,QAAQ;;qBAEZ,SAAS;yBACP,IAAI,EAAE,QAAQ;yBACd,KAAK,EAAE,YAAY;yBACnB,WAAW,EAAE,wBAAwB;;;;;MA+BxC;IAEc,OAAO,CACpB,KAAK,EAAE,wBAAwB,EAC/B,eAAe,EAAE,eAAe,GAC/B,OAAO,CAAC,yBAAyB,CAAC,CAOpC;CACF"}
|
|
@@ -0,0 +1,54 @@
|
|
|
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 session ID of the browser session to close";
|
|
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 additionalProperties: false;
|
|
24
|
+
};
|
|
25
|
+
export type BrowserCloseTaskInput = FromSchema<typeof inputSchema>;
|
|
26
|
+
export type BrowserCloseTaskOutput = FromSchema<typeof outputSchema>;
|
|
27
|
+
export declare class BrowserCloseTask extends Task<BrowserCloseTaskInput, BrowserCloseTaskOutput, TaskConfig> {
|
|
28
|
+
static readonly type = "BrowserCloseTask";
|
|
29
|
+
static readonly category = "Browser";
|
|
30
|
+
static title: string;
|
|
31
|
+
static description: string;
|
|
32
|
+
static readonly cacheable = false;
|
|
33
|
+
static configSchema(): DataPortSchema;
|
|
34
|
+
static inputSchema(): {
|
|
35
|
+
readonly type: "object";
|
|
36
|
+
readonly properties: {
|
|
37
|
+
readonly sessionId: {
|
|
38
|
+
readonly type: "string";
|
|
39
|
+
readonly title: "Session ID";
|
|
40
|
+
readonly description: "The session ID of the browser session to close";
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
readonly required: readonly ["sessionId"];
|
|
44
|
+
readonly additionalProperties: false;
|
|
45
|
+
};
|
|
46
|
+
static outputSchema(): {
|
|
47
|
+
readonly type: "object";
|
|
48
|
+
readonly properties: {};
|
|
49
|
+
readonly additionalProperties: false;
|
|
50
|
+
};
|
|
51
|
+
execute(input: BrowserCloseTaskInput, _executeContext: IExecuteContext): Promise<BrowserCloseTaskOutput>;
|
|
52
|
+
}
|
|
53
|
+
export {};
|
|
54
|
+
//# sourceMappingURL=BrowserCloseTask.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BrowserCloseTask.d.ts","sourceRoot":"","sources":["../../../../src/task/browser-control/tasks/BrowserCloseTask.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,gDAAgD;;;;;CAKhC,CAAC;AAEpC,QAAA,MAAM,YAAY;mBACV,QAAQ;;;CAGmB,CAAC;AAEpC,MAAM,MAAM,qBAAqB,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AACnE,MAAM,MAAM,sBAAsB,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AAErE,qBAAa,gBAAiB,SAAQ,IAAI,CACxC,qBAAqB,EACrB,sBAAsB,EACtB,UAAU,CACX;IACC,gBAAyB,IAAI,sBAAsB;IACnD,gBAAyB,QAAQ,aAAa;IAC9C,OAAuB,KAAK,SAAmB;IAC/C,OAAuB,WAAW,SAAwD;IAC1F,gBAAyB,SAAS,SAAS;IAE3C,OAAuB,YAAY,IAAI,cAAc,CAEpD;IAED,OAAgB,WAAW;uBApCrB,QAAQ;;qBAEZ,SAAS;yBACP,IAAI,EAAE,QAAQ;yBACd,KAAK,EAAE,YAAY;yBACnB,WAAW,EAAE,gDAAgD;;;;;MAiChE;IAED,OAAgB,YAAY;uBA3BtB,QAAQ;;;MA6Bb;IAEc,OAAO,CACpB,KAAK,EAAE,qBAAqB,EAC5B,eAAe,EAAE,eAAe,GAC/B,OAAO,CAAC,sBAAsB,CAAC,CAKjC;CACF"}
|
|
@@ -0,0 +1,74 @@
|
|
|
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
|
+
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 expression: {
|
|
17
|
+
readonly type: "string";
|
|
18
|
+
readonly title: "Expression";
|
|
19
|
+
readonly description: "The JavaScript expression to evaluate in the page context";
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
readonly required: readonly ["sessionId", "expression"];
|
|
23
|
+
readonly additionalProperties: false;
|
|
24
|
+
};
|
|
25
|
+
export type BrowserEvaluateTaskInput = FromSchema<typeof inputSchema>;
|
|
26
|
+
export type BrowserEvaluateTaskOutput = {
|
|
27
|
+
sessionId: string;
|
|
28
|
+
result: unknown;
|
|
29
|
+
};
|
|
30
|
+
export declare class BrowserEvaluateTask extends Task<BrowserEvaluateTaskInput, BrowserEvaluateTaskOutput, TaskConfig> {
|
|
31
|
+
static readonly type = "BrowserEvaluateTask";
|
|
32
|
+
static readonly category = "Browser";
|
|
33
|
+
static title: string;
|
|
34
|
+
static description: string;
|
|
35
|
+
static readonly cacheable = false;
|
|
36
|
+
static configSchema(): DataPortSchema;
|
|
37
|
+
static inputSchema(): {
|
|
38
|
+
readonly type: "object";
|
|
39
|
+
readonly properties: {
|
|
40
|
+
readonly sessionId: {
|
|
41
|
+
readonly type: "string";
|
|
42
|
+
readonly title: "Session ID";
|
|
43
|
+
readonly description: "The browser session to use";
|
|
44
|
+
};
|
|
45
|
+
readonly expression: {
|
|
46
|
+
readonly type: "string";
|
|
47
|
+
readonly title: "Expression";
|
|
48
|
+
readonly description: "The JavaScript expression to evaluate in the page context";
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
readonly required: readonly ["sessionId", "expression"];
|
|
52
|
+
readonly additionalProperties: false;
|
|
53
|
+
};
|
|
54
|
+
static outputSchema(): {
|
|
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 ID";
|
|
61
|
+
};
|
|
62
|
+
readonly result: {
|
|
63
|
+
readonly title: "Result";
|
|
64
|
+
readonly description: "The result of the evaluated expression";
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
readonly required: readonly ["sessionId"];
|
|
68
|
+
readonly additionalProperties: false;
|
|
69
|
+
};
|
|
70
|
+
static entitlements(): TaskEntitlements;
|
|
71
|
+
execute(input: BrowserEvaluateTaskInput, _executeContext: IExecuteContext): Promise<BrowserEvaluateTaskOutput>;
|
|
72
|
+
}
|
|
73
|
+
export {};
|
|
74
|
+
//# sourceMappingURL=BrowserEvaluateTask.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BrowserEvaluateTask.d.ts","sourceRoot":"","sources":["../../../../src/task/browser-control/tasks/BrowserEvaluateTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAEL,eAAe,EACf,IAAI,EACJ,UAAU,EAEV,gBAAgB,EACjB,MAAM,sBAAsB,CAAC;AAC9B,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,UAAU;qBACR,IAAI,EAAE,QAAQ;qBACd,KAAK,EAAE,YAAY;qBACnB,WAAW,EAAE,2DAA2D;;;;;CAK3C,CAAC;AAmBpC,MAAM,MAAM,wBAAwB,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AACtE,MAAM,MAAM,yBAAyB,GAAG;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,OAAO,CAAA;CAAE,CAAC;AAE/E,qBAAa,mBAAoB,SAAQ,IAAI,CAC3C,wBAAwB,EACxB,yBAAyB,EACzB,UAAU,CACX;IACC,gBAAyB,IAAI,yBAAyB;IACtD,gBAAyB,QAAQ,aAAa;IAC9C,OAAuB,KAAK,SAAsB;IAClD,OAAuB,WAAW,SACgC;IAClE,gBAAyB,SAAS,SAAS;IAE3C,OAAuB,YAAY,IAAI,cAAc,CAEpD;IAED,OAAgB,WAAW;uBArDrB,QAAQ;;qBAEZ,SAAS;yBACP,IAAI,EAAE,QAAQ;yBACd,KAAK,EAAE,YAAY;yBACnB,WAAW,EAAE,4BAA4B;;qBAE3C,UAAU;yBACR,IAAI,EAAE,QAAQ;yBACd,KAAK,EAAE,YAAY;yBACnB,WAAW,EAAE,2DAA2D;;;;;MA6C3E;IAED,OAAgB,YAAY;uBAvCtB,QAAQ;;qBAEZ,SAAS;yBACP,IAAI,EAAE,QAAQ;yBACd,KAAK,EAAE,YAAY;yBACnB,WAAW,EAAE,wBAAwB;;qBAEvC,MAAM;yBACJ,KAAK,EAAE,QAAQ;yBACf,WAAW,EAAE,wCAAwC;;;;;MAgCxD;IAED,OAAuB,YAAY,IAAI,gBAAgB,CAStD;IAEc,OAAO,CACpB,KAAK,EAAE,wBAAwB,EAC/B,eAAe,EAAE,eAAe,GAC/B,OAAO,CAAC,yBAAyB,CAAC,CAIpC;CACF"}
|
|
@@ -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 BrowserExtractHtmlTaskConfig = TaskConfig & {
|
|
9
|
+
ref?: string;
|
|
10
|
+
selector?: string;
|
|
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
|
+
declare const outputSchema: {
|
|
25
|
+
readonly type: "object";
|
|
26
|
+
readonly properties: {
|
|
27
|
+
readonly sessionId: {
|
|
28
|
+
readonly type: "string";
|
|
29
|
+
readonly title: "Session ID";
|
|
30
|
+
readonly description: "The browser session ID";
|
|
31
|
+
};
|
|
32
|
+
readonly html: {
|
|
33
|
+
readonly type: "string";
|
|
34
|
+
readonly title: "HTML";
|
|
35
|
+
readonly description: "The extracted HTML content";
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
readonly required: readonly ["sessionId", "html"];
|
|
39
|
+
readonly additionalProperties: false;
|
|
40
|
+
};
|
|
41
|
+
export type BrowserExtractHtmlTaskInput = FromSchema<typeof inputSchema>;
|
|
42
|
+
export type BrowserExtractHtmlTaskOutput = FromSchema<typeof outputSchema>;
|
|
43
|
+
export declare class BrowserExtractHtmlTask extends Task<BrowserExtractHtmlTaskInput, BrowserExtractHtmlTaskOutput, BrowserExtractHtmlTaskConfig> {
|
|
44
|
+
static readonly type = "BrowserExtractHtmlTask";
|
|
45
|
+
static readonly category = "Browser";
|
|
46
|
+
static title: string;
|
|
47
|
+
static description: string;
|
|
48
|
+
static readonly cacheable = false;
|
|
49
|
+
static configSchema(): DataPortSchema;
|
|
50
|
+
static inputSchema(): {
|
|
51
|
+
readonly type: "object";
|
|
52
|
+
readonly properties: {
|
|
53
|
+
readonly sessionId: {
|
|
54
|
+
readonly type: "string";
|
|
55
|
+
readonly title: "Session ID";
|
|
56
|
+
readonly description: "The browser session to use";
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
readonly required: readonly ["sessionId"];
|
|
60
|
+
readonly additionalProperties: false;
|
|
61
|
+
};
|
|
62
|
+
static outputSchema(): {
|
|
63
|
+
readonly type: "object";
|
|
64
|
+
readonly properties: {
|
|
65
|
+
readonly sessionId: {
|
|
66
|
+
readonly type: "string";
|
|
67
|
+
readonly title: "Session ID";
|
|
68
|
+
readonly description: "The browser session ID";
|
|
69
|
+
};
|
|
70
|
+
readonly html: {
|
|
71
|
+
readonly type: "string";
|
|
72
|
+
readonly title: "HTML";
|
|
73
|
+
readonly description: "The extracted HTML content";
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
readonly required: readonly ["sessionId", "html"];
|
|
77
|
+
readonly additionalProperties: false;
|
|
78
|
+
};
|
|
79
|
+
execute(input: BrowserExtractHtmlTaskInput, _executeContext: IExecuteContext): Promise<BrowserExtractHtmlTaskOutput>;
|
|
80
|
+
}
|
|
81
|
+
export {};
|
|
82
|
+
//# sourceMappingURL=BrowserExtractHtmlTask.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BrowserExtractHtmlTask.d.ts","sourceRoot":"","sources":["../../../../src/task/browser-control/tasks/BrowserExtractHtmlTask.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;AAqBnE,MAAM,MAAM,4BAA4B,GAAG,UAAU,GAAG;IACtD,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,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;;iBAEvC,IAAI;qBACF,IAAI,EAAE,QAAQ;qBACd,KAAK,EAAE,MAAM;qBACb,WAAW,EAAE,4BAA4B;;;;;CAKZ,CAAC;AAEpC,MAAM,MAAM,2BAA2B,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AACzE,MAAM,MAAM,4BAA4B,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AAE3E,qBAAa,sBAAuB,SAAQ,IAAI,CAC9C,2BAA2B,EAC3B,4BAA4B,EAC5B,4BAA4B,CAC7B;IACC,gBAAyB,IAAI,4BAA4B;IACzD,gBAAyB,QAAQ,aAAa;IAC9C,OAAuB,KAAK,SAA0B;IACtD,OAAuB,WAAW,SACuC;IACzE,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,IAAI;yBACF,IAAI,EAAE,QAAQ;yBACd,KAAK,EAAE,MAAM;yBACb,WAAW,EAAE,4BAA4B;;;;;MAgC5C;IAEc,OAAO,CACpB,KAAK,EAAE,2BAA2B,EAClC,eAAe,EAAE,eAAe,GAC/B,OAAO,CAAC,4BAA4B,CAAC,CAiBvC;CACF"}
|
|
@@ -0,0 +1,81 @@
|
|
|
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 BrowserExtractTextTaskConfig = TaskConfig & {
|
|
9
|
+
ref?: string;
|
|
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
|
+
};
|
|
20
|
+
readonly required: readonly ["sessionId"];
|
|
21
|
+
readonly additionalProperties: false;
|
|
22
|
+
};
|
|
23
|
+
declare const outputSchema: {
|
|
24
|
+
readonly type: "object";
|
|
25
|
+
readonly properties: {
|
|
26
|
+
readonly sessionId: {
|
|
27
|
+
readonly type: "string";
|
|
28
|
+
readonly title: "Session ID";
|
|
29
|
+
readonly description: "The browser session ID";
|
|
30
|
+
};
|
|
31
|
+
readonly text: {
|
|
32
|
+
readonly type: "string";
|
|
33
|
+
readonly title: "Text";
|
|
34
|
+
readonly description: "The extracted text content";
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
readonly required: readonly ["sessionId", "text"];
|
|
38
|
+
readonly additionalProperties: false;
|
|
39
|
+
};
|
|
40
|
+
export type BrowserExtractTextTaskInput = FromSchema<typeof inputSchema>;
|
|
41
|
+
export type BrowserExtractTextTaskOutput = FromSchema<typeof outputSchema>;
|
|
42
|
+
export declare class BrowserExtractTextTask extends Task<BrowserExtractTextTaskInput, BrowserExtractTextTaskOutput, BrowserExtractTextTaskConfig> {
|
|
43
|
+
static readonly type = "BrowserExtractTextTask";
|
|
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
|
+
};
|
|
58
|
+
readonly required: readonly ["sessionId"];
|
|
59
|
+
readonly additionalProperties: false;
|
|
60
|
+
};
|
|
61
|
+
static outputSchema(): {
|
|
62
|
+
readonly type: "object";
|
|
63
|
+
readonly properties: {
|
|
64
|
+
readonly sessionId: {
|
|
65
|
+
readonly type: "string";
|
|
66
|
+
readonly title: "Session ID";
|
|
67
|
+
readonly description: "The browser session ID";
|
|
68
|
+
};
|
|
69
|
+
readonly text: {
|
|
70
|
+
readonly type: "string";
|
|
71
|
+
readonly title: "Text";
|
|
72
|
+
readonly description: "The extracted text content";
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
readonly required: readonly ["sessionId", "text"];
|
|
76
|
+
readonly additionalProperties: false;
|
|
77
|
+
};
|
|
78
|
+
execute(input: BrowserExtractTextTaskInput, _executeContext: IExecuteContext): Promise<BrowserExtractTextTaskOutput>;
|
|
79
|
+
}
|
|
80
|
+
export {};
|
|
81
|
+
//# sourceMappingURL=BrowserExtractTextTask.d.ts.map
|