@cadenza.io/core 1.7.8 → 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 CHANGED
@@ -19,6 +19,7 @@ declare class GraphContext {
19
19
  * @returns Cloned full context.
20
20
  */
21
21
  getFullContext(): AnyObject;
22
+ getClonedFullContext(): AnyObject;
22
23
  /**
23
24
  * Gets frozen metadata (read-only).
24
25
  * @returns Frozen metadata object.
package/dist/index.d.ts CHANGED
@@ -19,6 +19,7 @@ declare class GraphContext {
19
19
  * @returns Cloned full context.
20
20
  */
21
21
  getFullContext(): AnyObject;
22
+ getClonedFullContext(): AnyObject;
22
23
  /**
23
24
  * Gets frozen metadata (read-only).
24
25
  * @returns Frozen metadata object.
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(context.getClonedContext(), progressCallback);
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) {