@elyx-code/project-logic-tree 0.0.6369 → 0.0.6370
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.ts +18 -11
- package/dist/index.js +15964 -15747
- package/dist/index.umd.cjs +223 -223
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1582,7 +1582,9 @@ export declare type CanvasEntityDisabledReason = CanvasEntityConnectionDisabledR
|
|
|
1582
1582
|
|
|
1583
1583
|
export declare enum CanvasEntityOtherDisabledReason {
|
|
1584
1584
|
Suggestion = "suggestion",
|
|
1585
|
-
CanvasGloballyDisabled = "canvas-globally-disabled"
|
|
1585
|
+
CanvasGloballyDisabled = "canvas-globally-disabled",
|
|
1586
|
+
CannotInteractWithInputInVariableWithInternalCalls = "cannot-interact-with-input-in-variable-with-internal-calls",
|
|
1587
|
+
CannotInteractWithOutputInVariableWithInternalCalls = "cannot-interact-with-output-in-variable-with-internal-calls"
|
|
1586
1588
|
}
|
|
1587
1589
|
|
|
1588
1590
|
export declare type CanvasEntityState = InstalledProjectState | DefinitionEntityState | FunctionDeclarationState | GlobalEventState | VariableState | ConditionState | OperationState | FunctionCallState | ReturnStatementState | ContinueStatementState | BreakStatementState | LoopState | SearchState;
|
|
@@ -3352,6 +3354,7 @@ export declare class Execution extends Events {
|
|
|
3352
3354
|
executing: TestableEntityState[];
|
|
3353
3355
|
executed: TestableEntityState[];
|
|
3354
3356
|
skipped: TestableEntityState[];
|
|
3357
|
+
scheduled: TestableEntityState[];
|
|
3355
3358
|
localTestValues: EfimeralValueStore;
|
|
3356
3359
|
resolvedValues: EfimeralValueStore;
|
|
3357
3360
|
persistedExecutionResults: EfimeralValueStore;
|
|
@@ -3368,6 +3371,7 @@ export declare class Execution extends Events {
|
|
|
3368
3371
|
}[];
|
|
3369
3372
|
error: string | null;
|
|
3370
3373
|
}>;
|
|
3374
|
+
static builtInFunctionImplementations: Record<BuiltInFunctionIds, (entity: InternalCallState, inputs: IDynamicValue[]) => Promise<IExecutionResult>>;
|
|
3371
3375
|
constructor(project: ProjectState, entities: TestableEntityState[], entryPoint: DraggablePlayableEntityState, parentExecution?: Execution | null);
|
|
3372
3376
|
get valueResolutionContext(): IValueResolutionContext;
|
|
3373
3377
|
static injectSearchImplementation(implementation: (entity: SearchState, inputs: IDynamicValue[]) => Promise<{
|
|
@@ -3378,8 +3382,11 @@ export declare class Execution extends Events {
|
|
|
3378
3382
|
}[];
|
|
3379
3383
|
error: string | null;
|
|
3380
3384
|
}>): void;
|
|
3385
|
+
skip(entity: TestableEntityState): void;
|
|
3386
|
+
schedule(entity: TestableEntityState, inputs?: IDynamicValue[], client?: IExecutionClient): Promise<IExecutionResult | null>;
|
|
3381
3387
|
mergeExernalValuesWithInternalInputs(externalValues: IDynamicValue[], entity: EntityState): IDynamicValue[];
|
|
3382
3388
|
inheritValuesFromContext(context: IValueResolutionContext): void;
|
|
3389
|
+
executeInternalCall(entity: InternalCallState, inputs: IDynamicValue[], project: ProjectState, client?: IExecutionClient): Promise<IExecutionResult>;
|
|
3383
3390
|
static executeOperation(operation: OperationState, inputs: IDynamicValue[], project: ProjectState): Promise<IExecutionResult>;
|
|
3384
3391
|
executeSearch(entity: SearchState, inputs: IDynamicValue[], project: ProjectState): Promise<IExecutionResult>;
|
|
3385
3392
|
executeLoop(loop: LoopState, inputs: IDynamicValue[], project: ProjectState, client?: IExecutionClient): Promise<IExecutionResult>;
|
|
@@ -3393,14 +3400,18 @@ export declare class Execution extends Events {
|
|
|
3393
3400
|
static executeContinueStatement(continueStatement: ContinueStatementState, inputs: IDynamicValue[]): Promise<IExecutionResult>;
|
|
3394
3401
|
static executeBreakStatement(breakStatement: BreakStatementState, inputs: IDynamicValue[]): Promise<IExecutionResult>;
|
|
3395
3402
|
mergeValues(inputs: IDynamicValue[], defaultValues: IDynamicValue[]): IDynamicValue[];
|
|
3396
|
-
executeEntity(entity:
|
|
3403
|
+
executeEntity(entity: ExecutableEntityState, inputs?: IDynamicValue[], client?: IExecutionClient): Promise<IExecutionResult>;
|
|
3397
3404
|
storeLastExecutionValues(result: IExecutionResult): void;
|
|
3398
|
-
executeBranch(localEntryPoint:
|
|
3405
|
+
executeBranch(localEntryPoint: TestableEntityState, client?: IExecutionClient, values?: IDynamicValue[]): Promise<IExecutionResult | null>;
|
|
3399
3406
|
execute(client?: IExecutionClient, values?: IDynamicValue[]): Promise<IExecutionResult>;
|
|
3400
3407
|
addEntity(entity: TestableEntityState): void;
|
|
3401
3408
|
addEntities(entities: TestableEntityState[]): void;
|
|
3402
3409
|
removeEntity(entity: TestableEntityState): void;
|
|
3403
3410
|
hasEntity(entity: EntityState): boolean;
|
|
3411
|
+
removeScheduled(entity: TestableEntityState): void;
|
|
3412
|
+
hasScheduled(entity: TestableEntityState): boolean;
|
|
3413
|
+
hasSkipped(entity: TestableEntityState): boolean;
|
|
3414
|
+
hasExecuted(entity: TestableEntityState): boolean;
|
|
3404
3415
|
hasEntityWithId(id: string): boolean;
|
|
3405
3416
|
onAddToSkippedList(callback: (entity: TestableEntityState) => void): void;
|
|
3406
3417
|
onAddEntity(callback: (entity: TestableEntityState) => void): void;
|
|
@@ -9375,13 +9386,13 @@ export declare interface IExecutionCallbackContext {
|
|
|
9375
9386
|
}
|
|
9376
9387
|
|
|
9377
9388
|
export declare interface IExecutionClient {
|
|
9378
|
-
onBeforeEntityExecution?: (entity:
|
|
9379
|
-
onEntityExecuted?: (entity:
|
|
9389
|
+
onBeforeEntityExecution?: (entity: EntityState, inputs: IDynamicValue[], context: IExecutionCallbackContext) => Promise<any>;
|
|
9390
|
+
onEntityExecuted?: (entity: EntityState, result: IExecutionResult, context: IExecutionCallbackContext) => Promise<any>;
|
|
9380
9391
|
}
|
|
9381
9392
|
|
|
9382
9393
|
export declare interface IExecutionResult {
|
|
9383
9394
|
value: ExecutionTerminationType;
|
|
9384
|
-
entity:
|
|
9395
|
+
entity: ExecutableEntityState | VariableState;
|
|
9385
9396
|
error: IDynamicValue | null;
|
|
9386
9397
|
results: IDynamicValue[];
|
|
9387
9398
|
}
|
|
@@ -14426,7 +14437,7 @@ export declare type TerminationState = ReturnStatementState | BreakStatementStat
|
|
|
14426
14437
|
|
|
14427
14438
|
export declare const test_primitive_entities_export = "test_primitive_entities_export";
|
|
14428
14439
|
|
|
14429
|
-
export declare type TestableEntityState =
|
|
14440
|
+
export declare type TestableEntityState = ExecutableEntityState;
|
|
14430
14441
|
|
|
14431
14442
|
export declare function toCamelCase(str: string): string;
|
|
14432
14443
|
|
|
@@ -14675,8 +14686,6 @@ export declare function validateDefinitionEntityName(entity: DefinitionEntitySta
|
|
|
14675
14686
|
|
|
14676
14687
|
declare function validateDefinitionEntityName_2(self: DefinitionEntityState): EntityError[];
|
|
14677
14688
|
|
|
14678
|
-
export declare function validateEntityValues(entity: CanvasEntityState | CallableEntityState, context: IValueResolutionContext): IDynamicValue[];
|
|
14679
|
-
|
|
14680
14689
|
export declare function validateEntryCaller(data: ElementGenerationTarget, callerEntity: CallerEntityState): EntityGenerationError[];
|
|
14681
14690
|
|
|
14682
14691
|
export declare function validateErrorCaller(data: ElementGenerationTarget, callerEntity: CallerEntityState): EntityGenerationError[];
|
|
@@ -14706,8 +14715,6 @@ declare function validateImplementation(self: PropertyState): EntityError[];
|
|
|
14706
14715
|
|
|
14707
14716
|
declare function validateListLoop(self: LoopState): EntityError[];
|
|
14708
14717
|
|
|
14709
|
-
export declare function validateLogic(logic: (CanvasEntityState | CallableEntityState)[], context: IValueResolutionContext): IDynamicValue[];
|
|
14710
|
-
|
|
14711
14718
|
export declare function validateLoopEntityDeclaration(loopDeclarationId: EntityId, project: ProjectState): EntityGenerationError[];
|
|
14712
14719
|
|
|
14713
14720
|
export declare function validateMissingValue(self: EntityWithValueState): EntityError[];
|