@sdux-vault/engine 0.0.9 → 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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sdux-vault/engine",
3
- "version": "0.0.9",
3
+ "version": "0.1.0",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -11,11 +11,11 @@
11
11
  },
12
12
  "homepage": "https://www.sdux-vault.com",
13
13
  "dependencies": {
14
- "@sdux-vault/devtools": ">=0.0.6 <0.1.0",
14
+ "@sdux-vault/devtools": "0.1.1",
15
+ "@sdux-vault/shared": "0.1.0",
15
16
  "tslib": "^2.3.0"
16
17
  },
17
18
  "peerDependencies": {
18
- "@sdux-vault/shared": ">=0.0.6 <0.1.0",
19
19
  "rxjs": "^7.0.0"
20
20
  },
21
21
  "files": [
@@ -1,5 +1,5 @@
1
1
  import * as _sdux_vault_shared from '@sdux-vault/shared';
2
- import { TapCallback, BehaviorClassContract, FeatureCellBaseShape, CoreEmitStateCallback, VaultErrorCallback, FilterFunction, DeferredType, ReducerFunction, InterceptorBehaviorClassContract, OperatorsBehaviorClassContract, ControllerClassContract, ControllerContract, ControllerContext, VaultErrorShape, BehaviorContext, VaultPrivateErrorServiceContract, StateInputType, VAULT_NOOP, DecisionOutcomeType, OperationType, InsightConfig, PipelineValue, StateEmitSnapshotShape, CellBuilderContract, VaultConfig, VaultRegistrationShape, BehaviorContract, FinalState, BehaviorClassContext } from '@sdux-vault/shared';
2
+ import { TapCallback, BehaviorClassContract, FeatureCellBaseShape, CoreEmitStateCallback, VaultErrorCallback, FilterFunction, DeferredType, ReducerFunction, InterceptorBehaviorClassContract, OperatorsBehaviorClassContract, ControllerClassContract, ControllerContract, ControllerContext, VaultErrorShape, BehaviorContext, VaultPrivateErrorServiceContract, StateInputType, DecisionOutcomeType, OperationType, VAULT_NOOP, VAULT_CLEAR_STATE, InsightConfig, PipelineValue, StateEmitSnapshotShape, CellBuilderContract, VaultConfig, VaultRegistrationShape, BehaviorClassContext, FinalState } from '@sdux-vault/shared';
3
3
  import * as rxjs from 'rxjs';
4
4
  import { Subject } from 'rxjs';
5
5
 
@@ -203,12 +203,11 @@ declare abstract class Orchestrator<T> {
203
203
  protected initializeFeatureCell(ctx: BehaviorContext<T>): Promise<void>;
204
204
  protected destroyBehaviors(ctx: BehaviorContext<T>): void;
205
205
  protected resetBehaviors(ctx: BehaviorContext<T>): void;
206
- protected preparingIncoming(ctx: BehaviorContext<T>): StateInputType<T> | typeof VAULT_NOOP;
207
206
  protected orchestrate(ctx: BehaviorContext<T>, options?: unknown): Promise<void>;
208
207
  protected buildControllerCtx(ctx: BehaviorContext<T>): ControllerContext<T>;
209
208
  protected normalizeIncoming<T>(incoming: StateInputType<T>): StateInputType<T>;
210
209
  protected controllerOutcomeNotification(type: DecisionOutcomeType, ctx: BehaviorContext<T>): void;
211
- protected prepIncomingForOrchestration(ctx: BehaviorContext<T>, incoming: StateInputType<T>, operation: OperationType): BehaviorContext<T>;
210
+ protected prepareIncoming(ctx: BehaviorContext<T>, incoming: StateInputType<T>, operation: OperationType): StateInputType<T> | typeof VAULT_NOOP | typeof VAULT_CLEAR_STATE;
212
211
  }
213
212
 
214
213
  declare class Conductor<T> extends Orchestrator<T> {
@@ -337,65 +336,6 @@ declare function resetVaultForTests(): void;
337
336
  declare function resetFeatureCellRegistry(): void;
338
337
  declare function getVaultRegistryForTests(): ReadonlyMap<string, VaultRegistrationShape> | undefined;
339
338
 
340
- /**
341
- * Contract for behaviors that normalize raw errors into structured vault errors.
342
- */
343
- interface CoreErrorBehaviorContract<T> extends BehaviorContract<T> {
344
- /**
345
- * Converts an unknown error value into a normalized vault error shape.
346
- *
347
- * @param error - The raw error value captured during execution.
348
- * @param featureCellKey - The FeatureCell key where the error originated.
349
- * @returns A normalized vault error representation.
350
- */
351
- handleError(error: unknown, featureCellKey: string): VaultErrorShape;
352
- }
353
-
354
- /**
355
- * Contract for the core behavior responsible for committing pipeline state.
356
- */
357
- interface CoreStateBehaviorContract<T> extends BehaviorContract<T> {
358
- /**
359
- * Finalizes an error state for the current pipeline execution.
360
- *
361
- * @param error - The error to commit or null to clear error state.
362
- * @param ctx - The active behavior context.
363
- */
364
- finalizePipelineError(error: VaultErrorShape | null, ctx: BehaviorContext<T>): void;
365
- /**
366
- * Finalizes a resolved pipeline value.
367
- *
368
- * @param value - The computed pipeline result.
369
- * @param ctx - The active behavior context.
370
- */
371
- finalizePipelineState(value: FinalState<T>, ctx: BehaviorContext<T>): void;
372
- /**
373
- * Finalizes a pipeline stop condition without applying state.
374
- *
375
- * @param ctx - The active behavior context.
376
- */
377
- finalizePipelineVaultStop(ctx: BehaviorContext<T>): void;
378
- /**
379
- * Prepares an incoming value for pipeline processing.
380
- *
381
- * @param ctx - The active behavior context.
382
- * @returns The prepared input or a no-op sentinel.
383
- */
384
- preparePipelineIncoming(ctx: BehaviorContext<T>): StateInputType<T> | typeof VAULT_NOOP;
385
- /**
386
- * Finalizes a controller abort condition without applying state.
387
- *
388
- * @param ctx - The active behavior context.
389
- */
390
- finalizeControllerAbort(ctx: BehaviorContext<T>): void;
391
- /**
392
- * Finalizes a controller deny condition without applying state.
393
- *
394
- * @param ctx - The active behavior context.
395
- */
396
- finalizeControllerDeny(ctx: BehaviorContext<T>): void;
397
- }
398
-
399
339
  declare abstract class LicensingAbstract<T> {
400
340
  #private;
401
341
  static readonly needsLicense: boolean;
@@ -437,4 +377,4 @@ declare function getFeatureCellToken(key: string): FeatureCellToken;
437
377
  declare const isPipelineTerminal: <T>(current: FinalState<T>) => boolean;
438
378
 
439
379
  export { Conductor, FeatureCellClass, LicensingAbstract, VaultCore, createFeatureCellToken, getFeatureCellToken, getLicensePayload, getVaultRegistryForTests, isPipelineTerminal, registerFeatureCell, registerVaultSettled, resetFeatureCellRegistry, resetVaultForTests, vaultAllSettled, vaultSettled };
440
- export type { ConductorConfig, CoreErrorBehaviorContract, CoreStateBehaviorContract, FeatureCellConfig, FeatureCellShape, VaultStateRef };
380
+ export type { ConductorConfig, FeatureCellConfig, FeatureCellShape, VaultStateRef };