@cadenza.io/core 1.7.7 → 1.7.9
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/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +10 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -527,6 +527,9 @@ var GraphContext = class _GraphContext {
|
|
|
527
527
|
getFullContext() {
|
|
528
528
|
return this.fullContext;
|
|
529
529
|
}
|
|
530
|
+
getClonedFullContext() {
|
|
531
|
+
return deepCloneFilter(this.fullContext);
|
|
532
|
+
}
|
|
530
533
|
/**
|
|
531
534
|
* Gets frozen metadata (read-only).
|
|
532
535
|
* @returns Frozen metadata object.
|
|
@@ -771,7 +774,7 @@ var GraphNode = class _GraphNode extends SignalEmitter {
|
|
|
771
774
|
if (!this.divided && !this.processing) {
|
|
772
775
|
this.processing = true;
|
|
773
776
|
const inputValidation = this.task.validateInput(
|
|
774
|
-
this.context.getContext()
|
|
777
|
+
this.isMeta() ? this.context.getMetaData() : this.context.getContext()
|
|
775
778
|
);
|
|
776
779
|
if (inputValidation !== true) {
|
|
777
780
|
this.onError(inputValidation.__validationErrors);
|
|
@@ -1476,7 +1479,10 @@ var Task = class extends SignalParticipant {
|
|
|
1476
1479
|
* @edge If validateOutputContext is true, validates output; on failure, emits 'meta.task.outputValidationFailed' with detailed errors.
|
|
1477
1480
|
*/
|
|
1478
1481
|
execute(context, progressCallback) {
|
|
1479
|
-
return this.taskFunction(
|
|
1482
|
+
return this.taskFunction(
|
|
1483
|
+
this.isMeta ? context.getClonedFullContext() : context.getClonedContext(),
|
|
1484
|
+
progressCallback
|
|
1485
|
+
);
|
|
1480
1486
|
}
|
|
1481
1487
|
doAfter(...tasks) {
|
|
1482
1488
|
for (const pred of tasks) {
|
|
@@ -1916,9 +1922,9 @@ var GraphRunner = class extends SignalEmitter {
|
|
|
1916
1922
|
if (this.debug) {
|
|
1917
1923
|
console.log(
|
|
1918
1924
|
`${this.isMeta ? "Meta" : ""}Runner added tasks`,
|
|
1919
|
-
allTasks,
|
|
1925
|
+
allTasks.map((t) => t.name),
|
|
1920
1926
|
"with context",
|
|
1921
|
-
ctx
|
|
1927
|
+
ctx.getFullContext()
|
|
1922
1928
|
);
|
|
1923
1929
|
}
|
|
1924
1930
|
allTasks.forEach(
|