@workglow/task-graph 0.0.104 → 0.0.106
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 +19 -4
- package/dist/browser.js.map +8 -8
- package/dist/bun.js +19 -4
- package/dist/bun.js.map +8 -8
- package/dist/node.js +19 -4
- package/dist/node.js.map +8 -8
- package/dist/task/InputResolver.d.ts.map +1 -1
- package/dist/task/StreamTypes.d.ts +3 -3
- package/dist/task/StreamTypes.d.ts.map +1 -1
- package/dist/task-graph/GraphSchemaUtils.d.ts.map +1 -1
- package/dist/task-graph/TaskGraph.d.ts.map +1 -1
- package/dist/task-graph/TaskGraphRunner.d.ts.map +1 -1
- package/package.json +7 -7
package/dist/browser.js
CHANGED
|
@@ -426,7 +426,11 @@ function stripOriginAnnotations(schema) {
|
|
|
426
426
|
strippedProperties[key] = prop;
|
|
427
427
|
continue;
|
|
428
428
|
}
|
|
429
|
-
const {
|
|
429
|
+
const {
|
|
430
|
+
"x-source-task-id": _id,
|
|
431
|
+
"x-source-task-ids": _ids,
|
|
432
|
+
...rest
|
|
433
|
+
} = prop;
|
|
430
434
|
strippedProperties[key] = rest;
|
|
431
435
|
}
|
|
432
436
|
return { ...schema, properties: strippedProperties };
|
|
@@ -897,7 +901,7 @@ function getOutputStreamMode(outputSchema) {
|
|
|
897
901
|
const mode = ports[0].mode;
|
|
898
902
|
for (let i = 1;i < ports.length; i++) {
|
|
899
903
|
if (ports[i].mode !== mode) {
|
|
900
|
-
|
|
904
|
+
return "mixed";
|
|
901
905
|
}
|
|
902
906
|
}
|
|
903
907
|
return mode;
|
|
@@ -2278,13 +2282,24 @@ class TaskGraphRunner {
|
|
|
2278
2282
|
const dataflows = this.graph.getTargetDataflows(node.id);
|
|
2279
2283
|
for (const dataflow of dataflows) {
|
|
2280
2284
|
const compatibility = dataflow.semanticallyCompatible(this.graph, dataflow);
|
|
2285
|
+
getLogger3().debug("pushOutputFromNodeToEdges", {
|
|
2286
|
+
dataflowId: dataflow.id,
|
|
2287
|
+
compatibility,
|
|
2288
|
+
resultsKeys: Object.keys(results)
|
|
2289
|
+
});
|
|
2281
2290
|
if (compatibility === "static") {
|
|
2282
2291
|
dataflow.setPortData(results);
|
|
2283
2292
|
} else if (compatibility === "runtime") {
|
|
2284
2293
|
const task = this.graph.getTask(dataflow.targetTaskId);
|
|
2285
2294
|
const narrowed = await task.narrowInput({ ...results }, this.registry);
|
|
2286
2295
|
dataflow.setPortData(narrowed);
|
|
2287
|
-
} else {
|
|
2296
|
+
} else {
|
|
2297
|
+
getLogger3().warn("pushOutputFromNodeToEdges", {
|
|
2298
|
+
dataflowId: dataflow.id,
|
|
2299
|
+
compatibility,
|
|
2300
|
+
resultsKeys: Object.keys(results)
|
|
2301
|
+
});
|
|
2302
|
+
}
|
|
2288
2303
|
}
|
|
2289
2304
|
}
|
|
2290
2305
|
pushStatusFromNodeToEdges(graph, node, status) {
|
|
@@ -6194,4 +6209,4 @@ export {
|
|
|
6194
6209
|
ConditionalTask
|
|
6195
6210
|
};
|
|
6196
6211
|
|
|
6197
|
-
//# debugId=
|
|
6212
|
+
//# debugId=00AC99F9F04A67EB64756E2164756E21
|