@sdux-vault/engine 0.0.10 → 0.1.0

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.
@@ -11,7 +11,7 @@ import { EventBus } from '@sdux-vault/devtools';
11
11
  // cmd+alt+j (see .vscode/keybindings.json)
12
12
  // --- END AI MODEL FILE PATH ---
13
13
  const SDUX_PACKAGE = '@sdux-vault/engine';
14
- const SDUX_VERSION = '0.0.10';
14
+ const SDUX_VERSION = '0.1.0';
15
15
  registerVersion(SDUX_PACKAGE, SDUX_VERSION);
16
16
 
17
17
  /**
@@ -2295,6 +2295,13 @@ class Orchestrator {
2295
2295
  this.#runStateBehaviors(ctx);
2296
2296
  this.vaultMonitor.endCoreState(this.cellKey, VAULT_ORCHESTRATOR, ctx);
2297
2297
  }
2298
+ if (isVaultClearState(normalizedIncoming)) {
2299
+ this.vaultMonitor.startCoreState(this.cellKey, VAULT_ORCHESTRATOR, ctx);
2300
+ this.#resetBehaviors(ctx);
2301
+ this.#runStateBehaviors(ctx);
2302
+ this.vaultMonitor.endCoreState(this.cellKey, VAULT_ORCHESTRATOR, ctx);
2303
+ return;
2304
+ }
2298
2305
  return normalizedIncoming;
2299
2306
  }
2300
2307
  //#endregion
@@ -3153,11 +3160,11 @@ class Conductor extends Orchestrator {
3153
3160
  //#region public method
3154
3161
  conduct(ctx, incoming, operation, options) {
3155
3162
  const behaviorCtx = this.#buildPipelineCtx(ctx, operation, options);
3156
- const ensuredIncoming = this.prepareIncoming(behaviorCtx, incoming, operation);
3157
- if (isVaultNoop(ensuredIncoming)) {
3163
+ const preparedIncoming = this.prepareIncoming(behaviorCtx, incoming, operation);
3164
+ if (isVaultNoop(preparedIncoming) || isVaultClearState(preparedIncoming)) {
3158
3165
  return;
3159
3166
  }
3160
- behaviorCtx.incoming = ensuredIncoming;
3167
+ behaviorCtx.incoming = preparedIncoming;
3161
3168
  const controllerCtx = this.buildControllerCtx(behaviorCtx);
3162
3169
  this.#enqueueAttempt({ behaviorCtx, controllerCtx, options });
3163
3170
  }