@sdux-vault/engine 0.0.10 → 0.1.2
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.
|
|
3
|
+
"version": "0.1.2",
|
|
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": "
|
|
14
|
+
"@sdux-vault/devtools": "0.1.2",
|
|
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, DecisionOutcomeType, OperationType, VAULT_NOOP, InsightConfig, PipelineValue, StateEmitSnapshotShape, CellBuilderContract, VaultConfig, VaultRegistrationShape,
|
|
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
|
|
|
@@ -207,7 +207,7 @@ declare abstract class Orchestrator<T> {
|
|
|
207
207
|
protected buildControllerCtx(ctx: BehaviorContext<T>): ControllerContext<T>;
|
|
208
208
|
protected normalizeIncoming<T>(incoming: StateInputType<T>): StateInputType<T>;
|
|
209
209
|
protected controllerOutcomeNotification(type: DecisionOutcomeType, ctx: BehaviorContext<T>): void;
|
|
210
|
-
protected prepareIncoming(ctx: BehaviorContext<T>, incoming: StateInputType<T>, operation: OperationType): StateInputType<T> | typeof VAULT_NOOP;
|
|
210
|
+
protected prepareIncoming(ctx: BehaviorContext<T>, incoming: StateInputType<T>, operation: OperationType): StateInputType<T> | typeof VAULT_NOOP | typeof VAULT_CLEAR_STATE;
|
|
211
211
|
}
|
|
212
212
|
|
|
213
213
|
declare class Conductor<T> extends Orchestrator<T> {
|
|
@@ -336,65 +336,6 @@ declare function resetVaultForTests(): void;
|
|
|
336
336
|
declare function resetFeatureCellRegistry(): void;
|
|
337
337
|
declare function getVaultRegistryForTests(): ReadonlyMap<string, VaultRegistrationShape> | undefined;
|
|
338
338
|
|
|
339
|
-
/**
|
|
340
|
-
* Contract for behaviors that normalize raw errors into structured vault errors.
|
|
341
|
-
*/
|
|
342
|
-
interface CoreErrorBehaviorContract<T> extends BehaviorContract<T> {
|
|
343
|
-
/**
|
|
344
|
-
* Converts an unknown error value into a normalized vault error shape.
|
|
345
|
-
*
|
|
346
|
-
* @param error - The raw error value captured during execution.
|
|
347
|
-
* @param featureCellKey - The FeatureCell key where the error originated.
|
|
348
|
-
* @returns A normalized vault error representation.
|
|
349
|
-
*/
|
|
350
|
-
handleError(error: unknown, featureCellKey: string): VaultErrorShape;
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
/**
|
|
354
|
-
* Contract for the core behavior responsible for committing pipeline state.
|
|
355
|
-
*/
|
|
356
|
-
interface CoreStateBehaviorContract<T> extends BehaviorContract<T> {
|
|
357
|
-
/**
|
|
358
|
-
* Finalizes an error state for the current pipeline execution.
|
|
359
|
-
*
|
|
360
|
-
* @param error - The error to commit or null to clear error state.
|
|
361
|
-
* @param ctx - The active behavior context.
|
|
362
|
-
*/
|
|
363
|
-
finalizePipelineError(error: VaultErrorShape | null, ctx: BehaviorContext<T>): void;
|
|
364
|
-
/**
|
|
365
|
-
* Finalizes a resolved pipeline value.
|
|
366
|
-
*
|
|
367
|
-
* @param value - The computed pipeline result.
|
|
368
|
-
* @param ctx - The active behavior context.
|
|
369
|
-
*/
|
|
370
|
-
finalizePipelineState(value: FinalState<T>, ctx: BehaviorContext<T>): void;
|
|
371
|
-
/**
|
|
372
|
-
* Finalizes a pipeline stop condition without applying state.
|
|
373
|
-
*
|
|
374
|
-
* @param ctx - The active behavior context.
|
|
375
|
-
*/
|
|
376
|
-
finalizePipelineVaultStop(ctx: BehaviorContext<T>): void;
|
|
377
|
-
/**
|
|
378
|
-
* Prepares an incoming value for pipeline processing.
|
|
379
|
-
*
|
|
380
|
-
* @param ctx - The active behavior context.
|
|
381
|
-
* @returns The prepared input or a no-op sentinel.
|
|
382
|
-
*/
|
|
383
|
-
preparePipelineIncoming(ctx: BehaviorContext<T>): StateInputType<T> | typeof VAULT_NOOP;
|
|
384
|
-
/**
|
|
385
|
-
* Finalizes a controller abort condition without applying state.
|
|
386
|
-
*
|
|
387
|
-
* @param ctx - The active behavior context.
|
|
388
|
-
*/
|
|
389
|
-
finalizeControllerAbort(ctx: BehaviorContext<T>): void;
|
|
390
|
-
/**
|
|
391
|
-
* Finalizes a controller deny condition without applying state.
|
|
392
|
-
*
|
|
393
|
-
* @param ctx - The active behavior context.
|
|
394
|
-
*/
|
|
395
|
-
finalizeControllerDeny(ctx: BehaviorContext<T>): void;
|
|
396
|
-
}
|
|
397
|
-
|
|
398
339
|
declare abstract class LicensingAbstract<T> {
|
|
399
340
|
#private;
|
|
400
341
|
static readonly needsLicense: boolean;
|
|
@@ -436,4 +377,4 @@ declare function getFeatureCellToken(key: string): FeatureCellToken;
|
|
|
436
377
|
declare const isPipelineTerminal: <T>(current: FinalState<T>) => boolean;
|
|
437
378
|
|
|
438
379
|
export { Conductor, FeatureCellClass, LicensingAbstract, VaultCore, createFeatureCellToken, getFeatureCellToken, getLicensePayload, getVaultRegistryForTests, isPipelineTerminal, registerFeatureCell, registerVaultSettled, resetFeatureCellRegistry, resetVaultForTests, vaultAllSettled, vaultSettled };
|
|
439
|
-
export type { ConductorConfig,
|
|
380
|
+
export type { ConductorConfig, FeatureCellConfig, FeatureCellShape, VaultStateRef };
|