@workglow/tasks 0.0.109 → 0.0.111
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.js +4 -4
- package/dist/browser.js.map +4 -4
- package/dist/bun.js +4 -4
- package/dist/bun.js.map +4 -4
- package/dist/node.js +4 -4
- package/dist/node.js.map +4 -4
- package/dist/task/ArrayTask.d.ts.map +1 -1
- package/dist/task/mcp/McpListTask.d.ts +126 -0
- package/dist/task/mcp/McpListTask.d.ts.map +1 -1
- package/dist/task/mcp/McpPromptGetTask.d.ts +126 -0
- package/dist/task/mcp/McpPromptGetTask.d.ts.map +1 -1
- package/dist/task/mcp/McpResourceReadTask.d.ts +126 -0
- package/dist/task/mcp/McpResourceReadTask.d.ts.map +1 -1
- package/dist/task/mcp/McpToolCallTask.d.ts +126 -0
- package/dist/task/mcp/McpToolCallTask.d.ts.map +1 -1
- package/package.json +11 -9
package/dist/browser.js
CHANGED
|
@@ -593,7 +593,7 @@ class ArrayTask extends GraphAsTask {
|
|
|
593
593
|
const combinations = this.generateCombinations(inputObject, inputIds);
|
|
594
594
|
const tasks = combinations.map((combination) => {
|
|
595
595
|
const { id, title, ...rest } = this.config;
|
|
596
|
-
const task = new this.constructor({ ...this.defaults, ...this.runInputData, ...combination }, { ...rest, id: `${id}_${uuid4()}` });
|
|
596
|
+
const task = new this.constructor({ ...this.defaults, ...this.runInputData, ...combination }, { ...rest, id: `${id}_${uuid4()}` }, this.runConfig);
|
|
597
597
|
return task;
|
|
598
598
|
});
|
|
599
599
|
this.subGraph.addTasks(tasks);
|
|
@@ -5786,12 +5786,12 @@ class JsonTask extends GraphAsTask2 {
|
|
|
5786
5786
|
return;
|
|
5787
5787
|
const data = JSON.parse(this.runInputData.json);
|
|
5788
5788
|
if (data && typeof data === "object" && "tasks" in data && Array.isArray(data.tasks) && "dataflows" in data && Array.isArray(data.dataflows)) {
|
|
5789
|
-
this.subGraph = createGraphFromGraphJSON(data);
|
|
5789
|
+
this.subGraph = createGraphFromGraphJSON(data, this.runConfig?.registry);
|
|
5790
5790
|
super.regenerateGraph();
|
|
5791
5791
|
return;
|
|
5792
5792
|
}
|
|
5793
5793
|
let jsonItems = Array.isArray(data) ? data : [data];
|
|
5794
|
-
this.subGraph = createGraphFromDependencyJSON(jsonItems);
|
|
5794
|
+
this.subGraph = createGraphFromDependencyJSON(jsonItems, this.runConfig?.registry);
|
|
5795
5795
|
for (const item of jsonItems) {
|
|
5796
5796
|
if (!item.dependencies)
|
|
5797
5797
|
continue;
|
|
@@ -8834,4 +8834,4 @@ export {
|
|
|
8834
8834
|
ArrayTask
|
|
8835
8835
|
};
|
|
8836
8836
|
|
|
8837
|
-
//# debugId=
|
|
8837
|
+
//# debugId=292EEA2EE91046DB64756E2164756E21
|