@workglow/tasks 0.2.26 → 0.2.28
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 +1 -5
- package/dist/browser.d.ts.map +1 -1
- package/dist/browser.js +2542 -11979
- package/dist/browser.js.map +5 -56
- package/dist/bun.d.ts +1 -6
- package/dist/bun.d.ts.map +1 -1
- package/dist/bun.js +2204 -12152
- package/dist/bun.js.map +5 -58
- package/dist/common.d.ts +1 -21
- package/dist/common.d.ts.map +1 -1
- package/dist/electron.d.ts +1 -7
- package/dist/electron.d.ts.map +1 -1
- package/dist/electron.js +2200 -12367
- package/dist/electron.js.map +5 -59
- package/dist/node.d.ts +1 -6
- package/dist/node.d.ts.map +1 -1
- package/dist/node.js +2204 -12152
- package/dist/node.js.map +5 -58
- package/package.json +10 -16
- package/dist/mcp-server/InMemoryMcpServerRepository.d.ts +0 -10
- package/dist/mcp-server/InMemoryMcpServerRepository.d.ts.map +0 -1
- package/dist/mcp-server/McpServerRegistry.d.ts +0 -18
- package/dist/mcp-server/McpServerRegistry.d.ts.map +0 -1
- package/dist/mcp-server/McpServerRepository.d.ts +0 -34
- package/dist/mcp-server/McpServerRepository.d.ts.map +0 -1
- package/dist/mcp-server/McpServerSchema.d.ts +0 -127
- package/dist/mcp-server/McpServerSchema.d.ts.map +0 -1
- package/dist/mcp-server/getMcpServerConfig.d.ts +0 -14
- package/dist/mcp-server/getMcpServerConfig.d.ts.map +0 -1
- package/dist/mcp-server/mcpServerReferenceObjectSchema.d.ts +0 -37
- package/dist/mcp-server/mcpServerReferenceObjectSchema.d.ts.map +0 -1
- package/dist/server.d.ts +0 -8
- package/dist/server.d.ts.map +0 -1
- package/dist/task/JavaScriptTask.d.ts +0 -153
- package/dist/task/JavaScriptTask.d.ts.map +0 -1
- package/dist/task/McpElicitationConnector.d.ts +0 -40
- package/dist/task/McpElicitationConnector.d.ts.map +0 -1
- package/dist/task/browser-control/BrowserSessionRegistry.d.ts +0 -34
- package/dist/task/browser-control/BrowserSessionRegistry.d.ts.map +0 -1
- package/dist/task/browser-control/BunWebViewBackend.d.ts +0 -59
- package/dist/task/browser-control/BunWebViewBackend.d.ts.map +0 -1
- package/dist/task/browser-control/CDPBrowserBackend.d.ts +0 -52
- package/dist/task/browser-control/CDPBrowserBackend.d.ts.map +0 -1
- package/dist/task/browser-control/ElectronBackend.d.ts +0 -57
- package/dist/task/browser-control/ElectronBackend.d.ts.map +0 -1
- package/dist/task/browser-control/IBrowserContext.d.ts +0 -177
- package/dist/task/browser-control/IBrowserContext.d.ts.map +0 -1
- package/dist/task/browser-control/PlaywrightBackend.d.ts +0 -78
- package/dist/task/browser-control/PlaywrightBackend.d.ts.map +0 -1
- package/dist/task/browser-control/index.d.ts +0 -11
- package/dist/task/browser-control/index.d.ts.map +0 -1
- package/dist/task/browser-control/register.d.ts +0 -34
- package/dist/task/browser-control/register.d.ts.map +0 -1
- package/dist/task/browser-control/tasks/BrowserAttributeTask.d.ts +0 -84
- package/dist/task/browser-control/tasks/BrowserAttributeTask.d.ts.map +0 -1
- package/dist/task/browser-control/tasks/BrowserBackTask.d.ts +0 -78
- package/dist/task/browser-control/tasks/BrowserBackTask.d.ts.map +0 -1
- package/dist/task/browser-control/tasks/BrowserClickTask.d.ts +0 -101
- package/dist/task/browser-control/tasks/BrowserClickTask.d.ts.map +0 -1
- package/dist/task/browser-control/tasks/BrowserCloseTabTask.d.ts +0 -71
- package/dist/task/browser-control/tasks/BrowserCloseTabTask.d.ts.map +0 -1
- package/dist/task/browser-control/tasks/BrowserCloseTask.d.ts +0 -54
- package/dist/task/browser-control/tasks/BrowserCloseTask.d.ts.map +0 -1
- package/dist/task/browser-control/tasks/BrowserEvaluateTask.d.ts +0 -74
- package/dist/task/browser-control/tasks/BrowserEvaluateTask.d.ts.map +0 -1
- package/dist/task/browser-control/tasks/BrowserExtractHtmlTask.d.ts +0 -82
- package/dist/task/browser-control/tasks/BrowserExtractHtmlTask.d.ts.map +0 -1
- package/dist/task/browser-control/tasks/BrowserExtractTextTask.d.ts +0 -81
- package/dist/task/browser-control/tasks/BrowserExtractTextTask.d.ts.map +0 -1
- package/dist/task/browser-control/tasks/BrowserFillTask.d.ts +0 -101
- package/dist/task/browser-control/tasks/BrowserFillTask.d.ts.map +0 -1
- package/dist/task/browser-control/tasks/BrowserForwardTask.d.ts +0 -78
- package/dist/task/browser-control/tasks/BrowserForwardTask.d.ts.map +0 -1
- package/dist/task/browser-control/tasks/BrowserHoverTask.d.ts +0 -98
- package/dist/task/browser-control/tasks/BrowserHoverTask.d.ts.map +0 -1
- package/dist/task/browser-control/tasks/BrowserLoginTask.d.ts +0 -87
- package/dist/task/browser-control/tasks/BrowserLoginTask.d.ts.map +0 -1
- package/dist/task/browser-control/tasks/BrowserNavigateTask.d.ts +0 -104
- package/dist/task/browser-control/tasks/BrowserNavigateTask.d.ts.map +0 -1
- package/dist/task/browser-control/tasks/BrowserNewTabTask.d.ts +0 -89
- package/dist/task/browser-control/tasks/BrowserNewTabTask.d.ts.map +0 -1
- package/dist/task/browser-control/tasks/BrowserPressKeyTask.d.ts +0 -82
- package/dist/task/browser-control/tasks/BrowserPressKeyTask.d.ts.map +0 -1
- package/dist/task/browser-control/tasks/BrowserQuerySelectorTask.d.ts +0 -94
- package/dist/task/browser-control/tasks/BrowserQuerySelectorTask.d.ts.map +0 -1
- package/dist/task/browser-control/tasks/BrowserReloadTask.d.ts +0 -68
- package/dist/task/browser-control/tasks/BrowserReloadTask.d.ts.map +0 -1
- package/dist/task/browser-control/tasks/BrowserScreenshotTask.d.ts +0 -69
- package/dist/task/browser-control/tasks/BrowserScreenshotTask.d.ts.map +0 -1
- package/dist/task/browser-control/tasks/BrowserScrollTask.d.ts +0 -73
- package/dist/task/browser-control/tasks/BrowserScrollTask.d.ts.map +0 -1
- package/dist/task/browser-control/tasks/BrowserSelectTask.d.ts +0 -98
- package/dist/task/browser-control/tasks/BrowserSelectTask.d.ts.map +0 -1
- package/dist/task/browser-control/tasks/BrowserSessionTask.d.ts +0 -63
- package/dist/task/browser-control/tasks/BrowserSessionTask.d.ts.map +0 -1
- package/dist/task/browser-control/tasks/BrowserSnapshotTask.d.ts +0 -66
- package/dist/task/browser-control/tasks/BrowserSnapshotTask.d.ts.map +0 -1
- package/dist/task/browser-control/tasks/BrowserSwitchTabTask.d.ts +0 -79
- package/dist/task/browser-control/tasks/BrowserSwitchTabTask.d.ts.map +0 -1
- package/dist/task/browser-control/tasks/BrowserTypeTask.d.ts +0 -79
- package/dist/task/browser-control/tasks/BrowserTypeTask.d.ts.map +0 -1
- package/dist/task/browser-control/tasks/BrowserUploadTask.d.ts +0 -96
- package/dist/task/browser-control/tasks/BrowserUploadTask.d.ts.map +0 -1
- package/dist/task/browser-control/tasks/BrowserWaitTask.d.ts +0 -73
- package/dist/task/browser-control/tasks/BrowserWaitTask.d.ts.map +0 -1
- package/dist/task/browser-control/tasks/index.d.ts +0 -32
- package/dist/task/browser-control/tasks/index.d.ts.map +0 -1
- package/dist/task/mcp/McpListTask.d.ts +0 -572
- package/dist/task/mcp/McpListTask.d.ts.map +0 -1
- package/dist/task/mcp/McpPromptGetTask.d.ts +0 -591
- package/dist/task/mcp/McpPromptGetTask.d.ts.map +0 -1
- package/dist/task/mcp/McpResourceReadTask.d.ts +0 -148
- package/dist/task/mcp/McpResourceReadTask.d.ts.map +0 -1
- package/dist/task/mcp/McpSearchTask.d.ts +0 -111
- package/dist/task/mcp/McpSearchTask.d.ts.map +0 -1
- package/dist/task/mcp/McpToolCallTask.d.ts +0 -309
- package/dist/task/mcp/McpToolCallTask.d.ts.map +0 -1
- package/dist/util/BrowserTaskDeps.d.ts +0 -21
- package/dist/util/BrowserTaskDeps.d.ts.map +0 -1
- package/dist/util/McpAuthProvider.d.ts +0 -70
- package/dist/util/McpAuthProvider.d.ts.map +0 -1
- package/dist/util/McpAuthTypes.d.ts +0 -217
- package/dist/util/McpAuthTypes.d.ts.map +0 -1
- package/dist/util/McpClientUtil.d.ts +0 -121
- package/dist/util/McpClientUtil.d.ts.map +0 -1
- package/dist/util/McpTaskDeps.d.ts +0 -41
- package/dist/util/McpTaskDeps.d.ts.map +0 -1
- package/dist/util/acorn.d.ts +0 -14
- package/dist/util/acorn.d.ts.map +0 -1
- package/dist/util/getMcpServerTransport.d.ts +0 -13
- package/dist/util/getMcpServerTransport.d.ts.map +0 -1
- package/dist/util/interpreter.d.ts +0 -17
- package/dist/util/interpreter.d.ts.map +0 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workglow/tasks",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.28",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/workglow-dev/workglow.git",
|
|
@@ -61,16 +61,12 @@
|
|
|
61
61
|
"undici": "^8.2.0"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
|
-
"@
|
|
65
|
-
"@workglow/
|
|
66
|
-
"@workglow/
|
|
67
|
-
"@workglow/
|
|
68
|
-
"@workglow/storage": "0.2.26"
|
|
64
|
+
"@workglow/task-graph": "0.2.28",
|
|
65
|
+
"@workglow/util": "0.2.28",
|
|
66
|
+
"@workglow/job-queue": "0.2.28",
|
|
67
|
+
"@workglow/storage": "0.2.28"
|
|
69
68
|
},
|
|
70
69
|
"peerDependenciesMeta": {
|
|
71
|
-
"@modelcontextprotocol/sdk": {
|
|
72
|
-
"optional": false
|
|
73
|
-
},
|
|
74
70
|
"@workglow/task-graph": {
|
|
75
71
|
"optional": false
|
|
76
72
|
},
|
|
@@ -85,15 +81,13 @@
|
|
|
85
81
|
}
|
|
86
82
|
},
|
|
87
83
|
"devDependencies": {
|
|
88
|
-
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
89
84
|
"@types/papaparse": "^5.5.2",
|
|
90
|
-
"@workglow/job-queue": "0.2.
|
|
91
|
-
"@workglow/storage": "0.2.
|
|
92
|
-
"@workglow/task-graph": "0.2.
|
|
93
|
-
"@workglow/util": "0.2.
|
|
85
|
+
"@workglow/job-queue": "0.2.28",
|
|
86
|
+
"@workglow/storage": "0.2.28",
|
|
87
|
+
"@workglow/task-graph": "0.2.28",
|
|
88
|
+
"@workglow/util": "0.2.28"
|
|
94
89
|
},
|
|
95
90
|
"optionalDependencies": {
|
|
96
|
-
"papaparse": "^5.5.3"
|
|
97
|
-
"playwright": "^1.59.1"
|
|
91
|
+
"papaparse": "^5.5.3"
|
|
98
92
|
}
|
|
99
93
|
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2025 Steven Roussey <sroussey@gmail.com>
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import { McpServerRepository } from "./McpServerRepository";
|
|
7
|
-
export declare class InMemoryMcpServerRepository extends McpServerRepository {
|
|
8
|
-
constructor();
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=InMemoryMcpServerRepository.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InMemoryMcpServerRepository.d.ts","sourceRoot":"","sources":["../../src/mcp-server/InMemoryMcpServerRepository.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAG5D,qBAAa,2BAA4B,SAAQ,mBAAmB;IAClE,cAEC;CACF"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2025 Steven Roussey <sroussey@gmail.com>
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import { McpServerRepository } from "./McpServerRepository";
|
|
7
|
-
import type { McpServerRecord } from "./McpServerSchema";
|
|
8
|
-
export interface McpServerConnection {
|
|
9
|
-
readonly config: McpServerRecord;
|
|
10
|
-
}
|
|
11
|
-
export declare const MCP_SERVERS: import("@workglow/util").ServiceToken<Map<string, McpServerConnection>>;
|
|
12
|
-
export declare const MCP_SERVER_REPOSITORY: import("@workglow/util").ServiceToken<McpServerRepository>;
|
|
13
|
-
export declare function getGlobalMcpServers(): Map<string, McpServerConnection>;
|
|
14
|
-
export declare function getGlobalMcpServerRepository(): McpServerRepository;
|
|
15
|
-
export declare function setGlobalMcpServerRepository(repository: McpServerRepository): void;
|
|
16
|
-
export declare function registerMcpServer(config: McpServerRecord): Promise<void>;
|
|
17
|
-
export declare function getMcpServer(id: string): McpServerConnection | undefined;
|
|
18
|
-
//# sourceMappingURL=McpServerRegistry.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"McpServerRegistry.d.ts","sourceRoot":"","sources":["../../src/mcp-server/McpServerRegistry.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAUH,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEzD,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,MAAM,EAAE,eAAe,CAAC;CAClC;AAED,eAAO,MAAM,WAAW,yEACqD,CAAC;AAE9E,eAAO,MAAM,qBAAqB,4DACgC,CAAC;AAcnE,wBAAgB,mBAAmB,IAAI,GAAG,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAEtE;AAED,wBAAgB,4BAA4B,IAAI,mBAAmB,CAElE;AAED,wBAAgB,4BAA4B,CAAC,UAAU,EAAE,mBAAmB,GAAG,IAAI,CAElF;AAED,wBAAsB,iBAAiB,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC,CAM9E;AAED,wBAAgB,YAAY,CAAC,EAAE,EAAE,MAAM,GAAG,mBAAmB,GAAG,SAAS,CAExE"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2025 Steven Roussey <sroussey@gmail.com>
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import type { ITabularStorage } from "@workglow/storage";
|
|
7
|
-
import { EventEmitter } from "@workglow/util";
|
|
8
|
-
import type { EventParameters } from "@workglow/util";
|
|
9
|
-
import { McpServerPrimaryKeyNames, McpServerRecordSchema } from "./McpServerSchema";
|
|
10
|
-
import type { McpServerRecord } from "./McpServerSchema";
|
|
11
|
-
export type McpServerEventListeners = {
|
|
12
|
-
server_added: (record: McpServerRecord) => void;
|
|
13
|
-
server_removed: (record: McpServerRecord) => void;
|
|
14
|
-
server_updated: (record: McpServerRecord) => void;
|
|
15
|
-
};
|
|
16
|
-
export type McpServerEvents = keyof McpServerEventListeners;
|
|
17
|
-
export type McpServerEventListener<Event extends McpServerEvents> = McpServerEventListeners[Event];
|
|
18
|
-
export type McpServerEventParameters<Event extends McpServerEvents> = EventParameters<McpServerEventListeners, Event>;
|
|
19
|
-
export declare class McpServerRepository {
|
|
20
|
-
protected readonly storage: ITabularStorage<typeof McpServerRecordSchema, typeof McpServerPrimaryKeyNames>;
|
|
21
|
-
constructor(storage: ITabularStorage<typeof McpServerRecordSchema, typeof McpServerPrimaryKeyNames>);
|
|
22
|
-
protected events: EventEmitter<McpServerEventListeners>;
|
|
23
|
-
setupDatabase(): Promise<void>;
|
|
24
|
-
on<Event extends McpServerEvents>(name: Event, fn: McpServerEventListener<Event>): void;
|
|
25
|
-
off<Event extends McpServerEvents>(name: Event, fn: McpServerEventListener<Event>): void;
|
|
26
|
-
once<Event extends McpServerEvents>(name: Event, fn: McpServerEventListener<Event>): void;
|
|
27
|
-
waitOn<Event extends McpServerEvents>(name: Event): Promise<import("@workglow/util").EmittedReturnType<McpServerEventListeners, Event>>;
|
|
28
|
-
addServer(record: McpServerRecord): Promise<McpServerRecord>;
|
|
29
|
-
removeServer(server_id: string): Promise<void>;
|
|
30
|
-
getServer(server_id: string): Promise<McpServerRecord | undefined>;
|
|
31
|
-
enumerateAll(): Promise<McpServerRecord[]>;
|
|
32
|
-
size(): Promise<number>;
|
|
33
|
-
}
|
|
34
|
-
//# sourceMappingURL=McpServerRepository.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"McpServerRepository.d.ts","sourceRoot":"","sources":["../../src/mcp-server/McpServerRepository.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEtD,OAAO,EAAE,wBAAwB,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AACpF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEzD,MAAM,MAAM,uBAAuB,GAAG;IACpC,YAAY,EAAE,CAAC,MAAM,EAAE,eAAe,KAAK,IAAI,CAAC;IAChD,cAAc,EAAE,CAAC,MAAM,EAAE,eAAe,KAAK,IAAI,CAAC;IAClD,cAAc,EAAE,CAAC,MAAM,EAAE,eAAe,KAAK,IAAI,CAAC;CACnD,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,MAAM,uBAAuB,CAAC;AAE5D,MAAM,MAAM,sBAAsB,CAAC,KAAK,SAAS,eAAe,IAAI,uBAAuB,CAAC,KAAK,CAAC,CAAC;AAEnG,MAAM,MAAM,wBAAwB,CAAC,KAAK,SAAS,eAAe,IAAI,eAAe,CACnF,uBAAuB,EACvB,KAAK,CACN,CAAC;AAEF,qBAAa,mBAAmB;IAC9B,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,eAAe,CACzC,OAAO,qBAAqB,EAC5B,OAAO,wBAAwB,CAChC,CAAC;IAEF,YACE,OAAO,EAAE,eAAe,CAAC,OAAO,qBAAqB,EAAE,OAAO,wBAAwB,CAAC,EAGxF;IAED,SAAS,CAAC,MAAM,wCAA+C;IAEzD,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC,CAEnC;IAED,EAAE,CAAC,KAAK,SAAS,eAAe,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,EAAE,sBAAsB,CAAC,KAAK,CAAC,QAE/E;IAED,GAAG,CAAC,KAAK,SAAS,eAAe,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,EAAE,sBAAsB,CAAC,KAAK,CAAC,QAEhF;IAED,IAAI,CAAC,KAAK,SAAS,eAAe,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,EAAE,sBAAsB,CAAC,KAAK,CAAC,QAEjF;IAED,MAAM,CAAC,KAAK,SAAS,eAAe,EAAE,IAAI,EAAE,KAAK,uFAEhD;IAEK,SAAS,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC,eAAe,CAAC,CAKjE;IAEK,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAOnD;IAEK,SAAS,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,GAAG,SAAS,CAAC,CAIvE;IAEK,YAAY,IAAI,OAAO,CAAC,eAAe,EAAE,CAAC,CAI/C;IAEK,IAAI,IAAI,OAAO,CAAC,MAAM,CAAC,CAE5B;CACF"}
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2025 Steven Roussey <sroussey@gmail.com>
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import type { FromSchema } from "@workglow/util/schema";
|
|
7
|
-
export declare const McpServerRecordSchema: {
|
|
8
|
-
readonly type: "object";
|
|
9
|
-
readonly properties: {
|
|
10
|
-
readonly auth_type: {
|
|
11
|
-
readonly type: "string";
|
|
12
|
-
readonly enum: readonly ["none", "bearer", "client_credentials", "private_key_jwt", "static_private_key_jwt", "authorization_code"];
|
|
13
|
-
readonly title: "Auth Type";
|
|
14
|
-
readonly description: "Authentication method for connecting to the MCP server";
|
|
15
|
-
};
|
|
16
|
-
readonly auth_token: {
|
|
17
|
-
readonly type: "string";
|
|
18
|
-
readonly format: "credential";
|
|
19
|
-
readonly title: "Bearer Token";
|
|
20
|
-
readonly description: "Static bearer token or API key (for bearer auth)";
|
|
21
|
-
};
|
|
22
|
-
readonly auth_client_id: {
|
|
23
|
-
readonly type: "string";
|
|
24
|
-
readonly title: "Client ID";
|
|
25
|
-
readonly description: "OAuth client ID (for OAuth auth types)";
|
|
26
|
-
};
|
|
27
|
-
readonly auth_client_secret: {
|
|
28
|
-
readonly type: "string";
|
|
29
|
-
readonly format: "credential";
|
|
30
|
-
readonly title: "Client Secret";
|
|
31
|
-
readonly description: "OAuth client secret (for client_credentials auth)";
|
|
32
|
-
};
|
|
33
|
-
readonly auth_private_key: {
|
|
34
|
-
readonly type: "string";
|
|
35
|
-
readonly format: "credential";
|
|
36
|
-
readonly title: "Private Key";
|
|
37
|
-
readonly description: "PEM or JWK private key (for private_key_jwt auth)";
|
|
38
|
-
};
|
|
39
|
-
readonly auth_algorithm: {
|
|
40
|
-
readonly type: "string";
|
|
41
|
-
readonly title: "Algorithm";
|
|
42
|
-
readonly description: "JWT signing algorithm, e.g. RS256, ES256 (for private_key_jwt auth)";
|
|
43
|
-
};
|
|
44
|
-
readonly auth_jwt_bearer_assertion: {
|
|
45
|
-
readonly type: "string";
|
|
46
|
-
readonly format: "credential";
|
|
47
|
-
readonly title: "JWT Assertion";
|
|
48
|
-
readonly description: "Pre-built JWT assertion (for static_private_key_jwt auth)";
|
|
49
|
-
};
|
|
50
|
-
readonly auth_redirect_url: {
|
|
51
|
-
readonly type: "string";
|
|
52
|
-
readonly format: "uri";
|
|
53
|
-
readonly title: "Redirect URL";
|
|
54
|
-
readonly description: "OAuth redirect URL (for authorization_code auth)";
|
|
55
|
-
};
|
|
56
|
-
readonly auth_scope: {
|
|
57
|
-
readonly type: "string";
|
|
58
|
-
readonly title: "Scope";
|
|
59
|
-
readonly description: "OAuth scope (space-separated)";
|
|
60
|
-
};
|
|
61
|
-
readonly auth_client_name: {
|
|
62
|
-
readonly type: "string";
|
|
63
|
-
readonly title: "Client Name";
|
|
64
|
-
readonly description: "Optional OAuth client display name";
|
|
65
|
-
};
|
|
66
|
-
readonly auth_jwt_lifetime_seconds: {
|
|
67
|
-
readonly type: "number";
|
|
68
|
-
readonly title: "JWT Lifetime";
|
|
69
|
-
readonly description: "JWT lifetime in seconds (default: 300)";
|
|
70
|
-
readonly minimum: 1;
|
|
71
|
-
};
|
|
72
|
-
readonly transport: {
|
|
73
|
-
readonly type: "string";
|
|
74
|
-
readonly enum: readonly ["stdio", "sse", "streamable-http"];
|
|
75
|
-
readonly title: "Transport";
|
|
76
|
-
readonly description: "The transport type to use for connecting to the MCP server";
|
|
77
|
-
};
|
|
78
|
-
readonly server_url: {
|
|
79
|
-
readonly type: "string";
|
|
80
|
-
readonly format: "uri";
|
|
81
|
-
readonly title: "Server URL";
|
|
82
|
-
readonly description: "The URL of the MCP server (for sse and streamable-http transports)";
|
|
83
|
-
};
|
|
84
|
-
readonly command: {
|
|
85
|
-
readonly type: "string";
|
|
86
|
-
readonly title: "Command";
|
|
87
|
-
readonly description: "The command to run (for stdio transport)";
|
|
88
|
-
};
|
|
89
|
-
readonly args: {
|
|
90
|
-
readonly type: "array";
|
|
91
|
-
readonly items: {
|
|
92
|
-
readonly type: "string";
|
|
93
|
-
};
|
|
94
|
-
readonly title: "Arguments";
|
|
95
|
-
readonly description: "Command arguments (for stdio transport)";
|
|
96
|
-
};
|
|
97
|
-
readonly env: {
|
|
98
|
-
readonly type: "object";
|
|
99
|
-
readonly additionalProperties: {
|
|
100
|
-
readonly type: "string";
|
|
101
|
-
};
|
|
102
|
-
readonly title: "Environment";
|
|
103
|
-
readonly description: "Environment variables (for stdio transport)";
|
|
104
|
-
};
|
|
105
|
-
readonly server_id: {
|
|
106
|
-
readonly type: "string";
|
|
107
|
-
readonly title: "Server ID";
|
|
108
|
-
readonly description: "MCP server repository id; present when the server reference was resolved from the registry";
|
|
109
|
-
};
|
|
110
|
-
readonly label: {
|
|
111
|
-
readonly type: "string";
|
|
112
|
-
readonly title: "Label";
|
|
113
|
-
readonly description: "Display label for the server (optional)";
|
|
114
|
-
};
|
|
115
|
-
readonly description: {
|
|
116
|
-
readonly type: "string";
|
|
117
|
-
readonly title: "Description";
|
|
118
|
-
readonly description: "Optional human-readable description";
|
|
119
|
-
};
|
|
120
|
-
};
|
|
121
|
-
readonly required: readonly ["server_id", "transport"];
|
|
122
|
-
readonly allOf: readonly Record<string, unknown>[];
|
|
123
|
-
readonly additionalProperties: false;
|
|
124
|
-
};
|
|
125
|
-
export type McpServerRecord = FromSchema<typeof McpServerRecordSchema>;
|
|
126
|
-
export declare const McpServerPrimaryKeyNames: readonly ["server_id"];
|
|
127
|
-
//# sourceMappingURL=McpServerSchema.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"McpServerSchema.d.ts","sourceRoot":"","sources":["../../src/mcp-server/McpServerSchema.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAwB,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAI9E,eAAO,MAAM,qBAAqB;mBAC1B,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQyB,CAAC;AAE1C,MAAM,MAAM,eAAe,GAAG,UAAU,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACvE,eAAO,MAAM,wBAAwB,YAAI,WAAW,CAAU,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2025 Steven Roussey <sroussey@gmail.com>
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import type { McpServerConfig } from "../util/McpTaskDeps";
|
|
7
|
-
/**
|
|
8
|
-
* Extracts a McpServerConfig from a task's config or input object.
|
|
9
|
-
*
|
|
10
|
-
* Expects `configOrInput.server` to be an object with all connection fields.
|
|
11
|
-
* If `server` is a string (unresolved reference ID), an error is thrown.
|
|
12
|
-
*/
|
|
13
|
-
export declare function getMcpServerConfig(configOrInput: Readonly<Record<string, unknown>>): McpServerConfig;
|
|
14
|
-
//# sourceMappingURL=getMcpServerConfig.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getMcpServerConfig.d.ts","sourceRoot":"","sources":["../../src/mcp-server/getMcpServerConfig.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3D;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAChC,aAAa,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAC/C,eAAe,CAmCjB"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2025 Steven Roussey <sroussey@gmail.com>
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*
|
|
6
|
-
* Builds the JSON Schema for the `server` object in MCP task config/input schemas.
|
|
7
|
-
* Uses the platform-injected {@link McpTaskDeps.mcpServerConfigSchema} so browser
|
|
8
|
-
* builds get the correct (stdio-free) transport enum.
|
|
9
|
-
*/
|
|
10
|
-
import type { JsonSchema } from "@workglow/util/schema";
|
|
11
|
-
import type { McpTaskDeps } from "../util/McpTaskDeps";
|
|
12
|
-
/** Optional fields from {@link McpServerRecordSchema} not present on {@link mcpServerConfigSchema}. */
|
|
13
|
-
export declare const mcpServerRecordMetadataProperties: {
|
|
14
|
-
readonly server_id: {
|
|
15
|
-
readonly type: "string";
|
|
16
|
-
readonly title: "Server ID";
|
|
17
|
-
readonly description: "MCP server repository id; present when the server reference was resolved from the registry";
|
|
18
|
-
};
|
|
19
|
-
readonly label: {
|
|
20
|
-
readonly type: "string";
|
|
21
|
-
readonly title: "Label";
|
|
22
|
-
readonly description: "Display label for the server (optional)";
|
|
23
|
-
};
|
|
24
|
-
readonly description: {
|
|
25
|
-
readonly type: "string";
|
|
26
|
-
readonly title: "Description";
|
|
27
|
-
readonly description: "Optional human-readable description";
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
/**
|
|
31
|
-
* Builds the complete `server` oneOf schema for MCP task config/input schemas.
|
|
32
|
-
*
|
|
33
|
-
* Accepts the platform-injected `mcpServerConfigSchema` so that the transport
|
|
34
|
-
* enum and conditional validation rules match the current runtime.
|
|
35
|
-
*/
|
|
36
|
-
export declare function TypeMcpServer(mcpServerConfigSchema: McpTaskDeps["mcpServerConfigSchema"]): JsonSchema;
|
|
37
|
-
//# sourceMappingURL=mcpServerReferenceObjectSchema.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mcpServerReferenceObjectSchema.d.ts","sourceRoot":"","sources":["../../src/mcp-server/mcpServerReferenceObjectSchema.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAwB,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAC9E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAEvD,uGAAuG;AACvG,eAAO,MAAM,iCAAiC;;iBAE1C,IAAI,EAAE,QAAQ;iBACd,KAAK,EAAE,WAAW;iBAClB,WAAW,EACT,4FAA4F;;;iBAG9F,IAAI,EAAE,QAAQ;iBACd,KAAK,EAAE,OAAO;iBACd,WAAW,EAAE,yCAAyC;;;iBAGtD,IAAI,EAAE,QAAQ;iBACd,KAAK,EAAE,aAAa;iBACpB,WAAW,EAAE,qCAAqC;;CAEC,CAAC;AAExD;;;;;GAKG;AACH,wBAAgB,aAAa,CAC3B,qBAAqB,EAAE,WAAW,CAAC,uBAAuB,CAAC,GAC1D,UAAU,CAmBZ"}
|
package/dist/server.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2025 Steven Roussey <sroussey@gmail.com>
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
export declare function registerMcpTaskDepsServer(): void;
|
|
7
|
-
export declare function registerBrowserDepsServer(): void;
|
|
8
|
-
//# sourceMappingURL=server.d.ts.map
|
package/dist/server.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAqBH,wBAAgB,yBAAyB,IAAI,IAAI,CAahD;AAED,wBAAgB,yBAAyB,IAAI,IAAI,CAwDhD"}
|
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2025 Steven Roussey <sroussey@gmail.com>
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import type { TaskEntitlements } from "@workglow/task-graph";
|
|
7
|
-
import { CreateWorkflow, Task, TaskConfig } from "@workglow/task-graph";
|
|
8
|
-
import { FromSchema } from "@workglow/util/schema";
|
|
9
|
-
declare const inputSchema: {
|
|
10
|
-
readonly type: "object";
|
|
11
|
-
readonly properties: {
|
|
12
|
-
readonly javascript_code: {
|
|
13
|
-
readonly type: "string";
|
|
14
|
-
readonly title: "Code";
|
|
15
|
-
readonly minLength: 1;
|
|
16
|
-
readonly description: "JavaScript code to execute";
|
|
17
|
-
readonly format: "code:javascript";
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
readonly required: readonly ["javascript_code"];
|
|
21
|
-
readonly additionalProperties: true;
|
|
22
|
-
};
|
|
23
|
-
declare const outputSchema: {
|
|
24
|
-
readonly type: "object";
|
|
25
|
-
readonly properties: {
|
|
26
|
-
readonly output: {
|
|
27
|
-
readonly title: "Output";
|
|
28
|
-
readonly description: "The output of the JavaScript code";
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
readonly required: readonly ["output"];
|
|
32
|
-
readonly additionalProperties: false;
|
|
33
|
-
};
|
|
34
|
-
export type JavaScriptTaskInput = FromSchema<typeof inputSchema>;
|
|
35
|
-
export type JavaScriptTaskOutput = FromSchema<typeof outputSchema>;
|
|
36
|
-
export type JavaScriptTaskConfig = TaskConfig & {
|
|
37
|
-
javascript_code?: string;
|
|
38
|
-
};
|
|
39
|
-
export declare class JavaScriptTask extends Task<JavaScriptTaskInput, JavaScriptTaskOutput, JavaScriptTaskConfig> {
|
|
40
|
-
static type: string;
|
|
41
|
-
static category: string;
|
|
42
|
-
static title: string;
|
|
43
|
-
static description: string;
|
|
44
|
-
static customizable: boolean;
|
|
45
|
-
static hasDynamicSchemas: boolean;
|
|
46
|
-
static entitlements(): TaskEntitlements;
|
|
47
|
-
static configSchema(): {
|
|
48
|
-
readonly type: "object";
|
|
49
|
-
readonly properties: {
|
|
50
|
-
readonly id: {
|
|
51
|
-
readonly "x-ui-hidden": true;
|
|
52
|
-
};
|
|
53
|
-
readonly title: {
|
|
54
|
-
readonly type: "string";
|
|
55
|
-
};
|
|
56
|
-
readonly description: {
|
|
57
|
-
readonly type: "string";
|
|
58
|
-
};
|
|
59
|
-
readonly cacheable: {
|
|
60
|
-
readonly type: "boolean";
|
|
61
|
-
};
|
|
62
|
-
readonly timeout: {
|
|
63
|
-
readonly type: "number";
|
|
64
|
-
readonly description: "Max execution time in milliseconds";
|
|
65
|
-
};
|
|
66
|
-
readonly inputSchema: {
|
|
67
|
-
readonly type: "object";
|
|
68
|
-
readonly properties: {};
|
|
69
|
-
readonly additionalProperties: true;
|
|
70
|
-
readonly "x-ui-hidden": true;
|
|
71
|
-
};
|
|
72
|
-
readonly outputSchema: {
|
|
73
|
-
readonly type: "object";
|
|
74
|
-
readonly properties: {};
|
|
75
|
-
readonly additionalProperties: true;
|
|
76
|
-
readonly "x-ui-hidden": true;
|
|
77
|
-
};
|
|
78
|
-
readonly extras: {
|
|
79
|
-
readonly type: "object";
|
|
80
|
-
readonly additionalProperties: true;
|
|
81
|
-
readonly "x-ui-hidden": true;
|
|
82
|
-
};
|
|
83
|
-
readonly defaults: {
|
|
84
|
-
readonly type: "object";
|
|
85
|
-
readonly additionalProperties: true;
|
|
86
|
-
readonly "x-ui-hidden": true;
|
|
87
|
-
};
|
|
88
|
-
readonly javascript_code: {
|
|
89
|
-
readonly type: "string";
|
|
90
|
-
readonly title: "Code";
|
|
91
|
-
readonly minLength: 1;
|
|
92
|
-
readonly description: "JavaScript code to execute";
|
|
93
|
-
readonly format: "code:javascript";
|
|
94
|
-
};
|
|
95
|
-
};
|
|
96
|
-
readonly additionalProperties: false;
|
|
97
|
-
};
|
|
98
|
-
static inputSchema(): {
|
|
99
|
-
readonly type: "object";
|
|
100
|
-
readonly properties: {
|
|
101
|
-
readonly javascript_code: {
|
|
102
|
-
readonly type: "string";
|
|
103
|
-
readonly title: "Code";
|
|
104
|
-
readonly minLength: 1;
|
|
105
|
-
readonly description: "JavaScript code to execute";
|
|
106
|
-
readonly format: "code:javascript";
|
|
107
|
-
};
|
|
108
|
-
};
|
|
109
|
-
readonly required: readonly ["javascript_code"];
|
|
110
|
-
readonly additionalProperties: true;
|
|
111
|
-
};
|
|
112
|
-
static outputSchema(): {
|
|
113
|
-
readonly type: "object";
|
|
114
|
-
readonly properties: {
|
|
115
|
-
readonly output: {
|
|
116
|
-
readonly title: "Output";
|
|
117
|
-
readonly description: "The output of the JavaScript code";
|
|
118
|
-
};
|
|
119
|
-
};
|
|
120
|
-
readonly required: readonly ["output"];
|
|
121
|
-
readonly additionalProperties: false;
|
|
122
|
-
};
|
|
123
|
-
inputSchema(): true | {
|
|
124
|
-
readonly type: "object";
|
|
125
|
-
readonly properties: {
|
|
126
|
-
readonly javascript_code: {
|
|
127
|
-
readonly type: "string";
|
|
128
|
-
readonly title: "Code";
|
|
129
|
-
readonly minLength: 1;
|
|
130
|
-
readonly description: "JavaScript code to execute";
|
|
131
|
-
readonly format: "code:javascript";
|
|
132
|
-
};
|
|
133
|
-
};
|
|
134
|
-
readonly required: readonly ["javascript_code"];
|
|
135
|
-
readonly additionalProperties: true;
|
|
136
|
-
} | import("@workglow/util/schema").DataPortSchemaObject<import("@workglow/util/schema").JsonSchemaCustomProps>;
|
|
137
|
-
execute(input: JavaScriptTaskInput): Promise<{
|
|
138
|
-
output: unknown;
|
|
139
|
-
}>;
|
|
140
|
-
executePreview(input: JavaScriptTaskInput): Promise<{
|
|
141
|
-
output: unknown;
|
|
142
|
-
}>;
|
|
143
|
-
}
|
|
144
|
-
export declare const javaScript: (input: JavaScriptTaskInput, config?: TaskConfig) => Promise<{
|
|
145
|
-
output: unknown;
|
|
146
|
-
}>;
|
|
147
|
-
declare module "@workglow/task-graph" {
|
|
148
|
-
interface Workflow {
|
|
149
|
-
javaScript: CreateWorkflow<JavaScriptTaskInput, JavaScriptTaskOutput, TaskConfig>;
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
export {};
|
|
153
|
-
//# sourceMappingURL=JavaScriptTask.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"JavaScriptTask.d.ts","sourceRoot":"","sources":["../../src/task/JavaScriptTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EACL,cAAc,EAEd,IAAI,EACJ,UAAU,EAIX,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAkB,UAAU,EAAE,MAAM,uBAAuB,CAAC;AA8CnE,QAAA,MAAM,WAAW;mBACT,QAAQ;;iBAEZ,eAAe;qBACb,IAAI,EAAE,QAAQ;qBACd,KAAK,EAAE,MAAM;qBACb,SAAS,EAAE,CAAC;qBACZ,WAAW,EAAE,4BAA4B;qBACzC,MAAM,EAAE,iBAAiB;;;;;CAKI,CAAC;AAEpC,QAAA,MAAM,YAAY;mBACV,QAAQ;;iBAEZ,MAAM;qBACJ,KAAK,EAAE,QAAQ;qBACf,WAAW,EAAE,mCAAmC;;;;;CAKnB,CAAC;AAEpC,MAAM,MAAM,mBAAmB,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AACjE,MAAM,MAAM,oBAAoB,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AACnE,MAAM,MAAM,oBAAoB,GAAG,UAAU,GAAG;IAC9C,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,qBAAa,cAAe,SAAQ,IAAI,CACtC,mBAAmB,EACnB,oBAAoB,EACpB,oBAAoB,CACrB;IACC,OAAuB,IAAI,SAAoB;IAC/C,OAAuB,QAAQ,SAAa;IAC5C,OAAuB,KAAK,SAA4B;IACxD,OAAuB,WAAW,SACkC;IACpE,OAAuB,YAAY,UAAQ;IAC3C,OAAuB,iBAAiB,UAAQ;IAEhD,OAAuB,YAAY,IAAI,gBAAgB,CAStD;IAED,OAAuB,YAAY;uBAvE7B,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAIV,IAAI,EAAE,QAAQ;yBACd,KAAK,EAAE,MAAM;yBACb,SAAS,EAAE,CAAC;yBACZ,WAAW,EAAE,4BAA4B;yBACzC,MAAM,EAAE,iBAAiB;;;;MAiE5B;IAED,OAAuB,WAAW;uBA5D5B,QAAQ;;qBAEZ,eAAe;yBACb,IAAI,EAAE,QAAQ;yBACd,KAAK,EAAE,MAAM;yBACb,SAAS,EAAE,CAAC;yBACZ,WAAW,EAAE,4BAA4B;yBACzC,MAAM,EAAE,iBAAiB;;;;;MAuD5B;IAED,OAAuB,YAAY;uBAjD7B,QAAQ;;qBAEZ,MAAM;yBACJ,KAAK,EAAE,QAAQ;yBACf,WAAW,EAAE,mCAAmC;;;;;MA+CnD;IAEe,WAAW;uBApErB,QAAQ;;qBAEZ,eAAe;yBACb,IAAI,EAAE,QAAQ;yBACd,KAAK,EAAE,MAAM;yBACb,SAAS,EAAE,CAAC;yBACZ,WAAW,EAAE,4BAA4B;yBACzC,MAAM,EAAE,iBAAiB;;;;;oHAyE5B;IAEc,OAAO,CAAC,KAAK,EAAE,mBAAmB;;OAEhD;IAEc,cAAc,CAAC,KAAK,EAAE,mBAAmB;;OAEvD;CACF;AAED,eAAO,MAAM,UAAU,UAAW,mBAAmB,WAAU,UAAU;;EAExE,CAAC;AAEF,OAAO,QAAQ,sBAAsB,CAAC,CAAC;IACrC,UAAU,QAAQ;QAChB,UAAU,EAAE,cAAc,CAAC,mBAAmB,EAAE,oBAAoB,EAAE,UAAU,CAAC,CAAC;KACnF;CACF"}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2025 Steven Roussey <sroussey@gmail.com>
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import type { Server } from "@modelcontextprotocol/sdk/server";
|
|
7
|
-
import type { IHumanConnector, IHumanRequest, IHumanResponse } from "@workglow/util";
|
|
8
|
-
/**
|
|
9
|
-
* IHumanConnector implementation that delegates to MCP Server.elicitInput().
|
|
10
|
-
*
|
|
11
|
-
* Handles all three interaction kinds:
|
|
12
|
-
* - "notify": Sends a notification via MCP logging, resolves immediately.
|
|
13
|
-
* - "display": Sends content for display, resolves immediately.
|
|
14
|
-
* - "elicit": Delegates to Server.elicitInput() for structured form input.
|
|
15
|
-
*
|
|
16
|
-
* Usage:
|
|
17
|
-
* ```ts
|
|
18
|
-
* import { Server } from "@modelcontextprotocol/sdk/server";
|
|
19
|
-
* import { McpElicitationConnector } from "@workglow/tasks";
|
|
20
|
-
* import { HUMAN_CONNECTOR } from "@workglow/util";
|
|
21
|
-
*
|
|
22
|
-
* const mcpServer: Server = ...; // your MCP server instance
|
|
23
|
-
* const connector = new McpElicitationConnector(mcpServer);
|
|
24
|
-
* registry.registerInstance(HUMAN_CONNECTOR, connector);
|
|
25
|
-
* ```
|
|
26
|
-
*/
|
|
27
|
-
export declare class McpElicitationConnector implements IHumanConnector {
|
|
28
|
-
private readonly server;
|
|
29
|
-
constructor(server: Server);
|
|
30
|
-
send(request: IHumanRequest, signal: AbortSignal): Promise<IHumanResponse>;
|
|
31
|
-
/**
|
|
32
|
-
* Multi-turn follow-up via MCP elicitation.
|
|
33
|
-
* Each follow-up is a separate elicitInput() call.
|
|
34
|
-
*/
|
|
35
|
-
followUp(request: IHumanRequest, _previousResponse: IHumanResponse, signal: AbortSignal): Promise<IHumanResponse>;
|
|
36
|
-
private handleNotify;
|
|
37
|
-
private handleDisplay;
|
|
38
|
-
private handleElicit;
|
|
39
|
-
}
|
|
40
|
-
//# sourceMappingURL=McpElicitationConnector.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"McpElicitationConnector.d.ts","sourceRoot":"","sources":["../../src/task/McpElicitationConnector.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAE/D,OAAO,KAAK,EAAE,eAAe,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AA2BrF;;;;;;;;;;;;;;;;;;GAkBG;AACH,qBAAa,uBAAwB,YAAW,eAAe;IACjD,OAAO,CAAC,QAAQ,CAAC,MAAM;IAAnC,YAA6B,MAAM,EAAE,MAAM,EAAI;IAEzC,IAAI,CAAC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,WAAW,GAAG,OAAO,CAAC,cAAc,CAAC,CAc/E;IAED;;;OAGG;IACG,QAAQ,CACZ,OAAO,EAAE,aAAa,EACtB,iBAAiB,EAAE,cAAc,EACjC,MAAM,EAAE,WAAW,GAClB,OAAO,CAAC,cAAc,CAAC,CAEzB;YAMa,YAAY;YA4BZ,aAAa;YAgCb,YAAY;CAkB3B"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2025 Steven Roussey <sroussey@gmail.com>
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import type { IBrowserContext } from "./IBrowserContext";
|
|
7
|
-
export declare const BrowserSessionRegistry: {
|
|
8
|
-
/**
|
|
9
|
-
* Register a browser context and return a unique session ID.
|
|
10
|
-
*/
|
|
11
|
-
register(context: IBrowserContext): string;
|
|
12
|
-
/**
|
|
13
|
-
* Retrieve a registered browser context by session ID.
|
|
14
|
-
* Throws if the session does not exist or has been disconnected.
|
|
15
|
-
*/
|
|
16
|
-
get(sessionId: string): IBrowserContext;
|
|
17
|
-
/**
|
|
18
|
-
* Remove a session from the registry.
|
|
19
|
-
*/
|
|
20
|
-
unregister(sessionId: string): void;
|
|
21
|
-
/**
|
|
22
|
-
* Returns true if a session with the given ID exists.
|
|
23
|
-
*/
|
|
24
|
-
has(sessionId: string): boolean;
|
|
25
|
-
/**
|
|
26
|
-
* Disconnect all registered contexts using Promise.allSettled, then clear the registry.
|
|
27
|
-
*/
|
|
28
|
-
disconnectAll(): Promise<void>;
|
|
29
|
-
/**
|
|
30
|
-
* Clear all sessions without disconnecting (for tests).
|
|
31
|
-
*/
|
|
32
|
-
clear(): void;
|
|
33
|
-
};
|
|
34
|
-
//# sourceMappingURL=BrowserSessionRegistry.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BrowserSessionRegistry.d.ts","sourceRoot":"","sources":["../../../src/task/browser-control/BrowserSessionRegistry.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAIzD,eAAO,MAAM,sBAAsB;IACjC;;OAEG;IACH,QAAQ,UAAU,eAAe,GAAG,MAAM;IAM1C;;;OAGG;IACH,GAAG,YAAY,MAAM,GAAG,eAAe;IAYvC;;OAEG;IACH,UAAU,YAAY,MAAM,GAAG,IAAI;IAInC;;OAEG;IACH,GAAG,YAAY,MAAM,GAAG,OAAO;IAI/B;;OAEG;IACG,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC;IAMpC;;OAEG;IACH,KAAK,IAAI,IAAI;CAGL,CAAC"}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2025 Steven Roussey <sroussey@gmail.com>
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import { CDPBrowserBackend } from "./CDPBrowserBackend";
|
|
7
|
-
import type { BrowserConnectOptions, ConsoleMessage, DialogAction, DialogInfo, DownloadOptions, DownloadResult, ElementRef, IBrowserContext, NavigateOptions, NetworkFilter, NetworkRequest, ScreenshotOptions, TabInfo, WaitOptions } from "./IBrowserContext";
|
|
8
|
-
/**
|
|
9
|
-
* IBrowserContext implementation using Bun's built-in WebView API + CDP.
|
|
10
|
-
*
|
|
11
|
-
* Bun.WebView provides a headless browser with Chrome DevTools Protocol
|
|
12
|
-
* access. This backend wraps the WebView, delegating CDP operations to the
|
|
13
|
-
* abstract CDPBrowserBackend base class and using native WebView methods
|
|
14
|
-
* for navigation, screenshots, and keyboard input.
|
|
15
|
-
*
|
|
16
|
-
* This file should only be imported in Bun environments.
|
|
17
|
-
*/
|
|
18
|
-
export declare class BunWebViewBackend extends CDPBrowserBackend implements IBrowserContext {
|
|
19
|
-
private readonly defaultChromePath?;
|
|
20
|
-
private _wv;
|
|
21
|
-
private _connected;
|
|
22
|
-
private _dialogHandler;
|
|
23
|
-
protected readonly backendName = "BunWebViewBackend";
|
|
24
|
-
/**
|
|
25
|
-
* @param defaultChromePath Optional default Chrome binary path. Used when
|
|
26
|
-
* `connect()` is called without `chromePath` in options (e.g., via
|
|
27
|
-
* BrowserSessionTask which doesn't expose chromePath in its config).
|
|
28
|
-
*/
|
|
29
|
-
constructor(defaultChromePath?: string | undefined);
|
|
30
|
-
protected cdp(method: string, params?: Record<string, unknown>): Promise<unknown>;
|
|
31
|
-
protected evaluateInPage<T>(script: string): Promise<T>;
|
|
32
|
-
connect(options?: BrowserConnectOptions): Promise<void>;
|
|
33
|
-
disconnect(): Promise<void>;
|
|
34
|
-
isConnected(): boolean;
|
|
35
|
-
private get wv();
|
|
36
|
-
navigate(url: string, options?: NavigateOptions): Promise<void>;
|
|
37
|
-
goBack(_options?: NavigateOptions): Promise<void>;
|
|
38
|
-
goForward(_options?: NavigateOptions): Promise<void>;
|
|
39
|
-
reload(_options?: NavigateOptions): Promise<void>;
|
|
40
|
-
currentUrl(): Promise<string>;
|
|
41
|
-
title(): Promise<string>;
|
|
42
|
-
content(): Promise<string>;
|
|
43
|
-
evaluate<T>(expression: string): Promise<T>;
|
|
44
|
-
screenshot(options?: ScreenshotOptions): Promise<Buffer>;
|
|
45
|
-
pressKey(key: string, _options?: WaitOptions): Promise<void>;
|
|
46
|
-
type(text: string, _options?: WaitOptions): Promise<void>;
|
|
47
|
-
download(_trigger: () => Promise<void>, _options?: DownloadOptions): Promise<DownloadResult>;
|
|
48
|
-
onDialog(handler: (info: DialogInfo) => DialogAction | Promise<DialogAction>): void;
|
|
49
|
-
tabs(): Promise<readonly TabInfo[]>;
|
|
50
|
-
switchTab(_tabId: string): Promise<void>;
|
|
51
|
-
newTab(url?: string): Promise<TabInfo>;
|
|
52
|
-
closeTab(_tabId: string): Promise<void>;
|
|
53
|
-
waitForNavigation(options?: NavigateOptions): Promise<void>;
|
|
54
|
-
waitForSelector(selector: string, options?: WaitOptions): Promise<ElementRef>;
|
|
55
|
-
waitForIdle(options?: WaitOptions): Promise<void>;
|
|
56
|
-
readonly networkRequests: (_filter?: NetworkFilter) => Promise<readonly NetworkRequest[]>;
|
|
57
|
-
readonly consoleMessages: () => Promise<readonly ConsoleMessage[]>;
|
|
58
|
-
}
|
|
59
|
-
//# sourceMappingURL=BunWebViewBackend.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BunWebViewBackend.d.ts","sourceRoot":"","sources":["../../../src/task/browser-control/BunWebViewBackend.ts"],"names":[],"mappings":"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"}
|