@elyx-code/project-logic-tree 0.0.6816 → 0.0.6819

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.
Files changed (4) hide show
  1. package/dist/index.cjs +189 -189
  2. package/dist/index.d.ts +51 -24
  3. package/dist/index.js +23759 -23731
  4. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -339,7 +339,7 @@ declare enum AggregationStatementType {
339
339
  Natural = "natural"
340
340
  }
341
341
 
342
- export declare const AI_VALUE_CONNECTION_GENERATION_ACTION_EXPLANATION = "To establish a connection of a reader and writter value during the generation process you can use the 'connect_values' generation action, like so:\n```json\n{\n\t\"connect_values\": {\n\t\t\"writerEntityId\": \"writer-entity-id\"; // Id of the entity that will give the value\n \"readerEntityId\": \"reader-entity-id\"; // Id of the entity that will receive the value\n\t}\n}\n```\nYou can use the 'disconnect_values' generation action to remove the connection between two value holding entities in the same way.";
342
+ export declare const AI_VALUE_CONNECTION_GENERATION_ACTION_EXPLANATION = "To establish a connection of a reader and writer value during the generation process you can use the 'connect_values' generation action, like so:\n```json\n{\n\t\"connect_values\": {\n\t\t\"writerEntityId\": \"writer-entity-id\"; // Id of the entity that will give the value\n \"readerEntityId\": \"reader-entity-id\"; // Id of the entity that will receive the value\n\t}\n}\n```\nYou can use the 'disconnect_values' generation action to remove the connection between two value holding entities in the same way.";
343
343
 
344
344
  export declare const airtableAuthExternalConnectionBuiltInBaseEntity: IBuiltInBaseEntityTransfer;
345
345
 
@@ -954,7 +954,7 @@ export declare enum BaseValueDescriptorIds {
954
954
  getDefaultValue(): LiteralValueState | null;
955
955
  setDefaultValue(value: LiteralValueState | null, changeSet?: ChangeSet | null): BreakStatementState;
956
956
  clone(changeSet?: ChangeSet | null, parent?: LoopState | null, newId?: string | null, subscribe?: boolean): BreakStatementState;
957
- getMasterInputWithValueWritterFromAllInstances(input: TerminationInputMapState): TerminationInputMapState;
957
+ getMasterInputWithValueWriterFromAllInstances(input: TerminationInputMapState): TerminationInputMapState;
958
958
  syncInputs(changeSet?: ChangeSet | null): IChangeSet<BreakStatementState>;
959
959
  setDataType(dataType: DataTypeState | null, changeSet?: ChangeSet | null): BreakStatementState;
960
960
  removeDataType(changeSet?: ChangeSet | null): BreakStatementState;
@@ -9557,6 +9557,7 @@ export declare enum BaseValueDescriptorIds {
9557
9557
  CallerIsInLowerScope = "caller-is-in-lower-scope",
9558
9558
  CallIsInHigherScope = "call-is-in-higher-scope",
9559
9559
  CallIsInLowerScope = "call-is-in-lower-scope",
9560
+ CalledBySourceMustBeCallerEntity = "called-by-source-must-be-caller-entity",
9560
9561
  OtherIncompatibleScopeReason = "other-incompatible-scope-reason",
9561
9562
  SiblingInternalCallAlreadyUsedInParentVariable = "sibling-internal-call-already-used-in-parent-variable",
9562
9563
  ErrorOututMapCannotBeConnectedToParentSuccessBranchCallees = "error-output-map-cannot-be-connected-to-parent-success-branch-callees",
@@ -9569,7 +9570,8 @@ export declare enum BaseValueDescriptorIds {
9569
9570
  CannotConnectToOwnNode = "cannot-connect-to-own-node",
9570
9571
  VariableDeclarationCannotBeMovedToLowerScopeBecauseInstancesUsage = "variable-declaration-cannot-be-moved-to-lower-scope-because-instances-usage",
9571
9572
  CannotChangeScopeBecauseItIsCalledByOtherEntities = "cannot-change-scope-because-it-is-called-by-other-entities",
9572
- CannotChangeScopeBecauseItCallsOtherEntities = "cannot-change-scope-because-it-calls-other-entities"
9573
+ CannotChangeScopeBecauseItCallsOtherEntities = "cannot-change-scope-because-it-calls-other-entities",
9574
+ CalledByErrorMustBePassThroughCallable = "called-by-error-must-be-pass-through-callable"
9573
9575
  }
9574
9576
 
9575
9577
  export declare type CanvasEntityDisabledReason = CanvasEntityConnectionDisabledReason | CanvasEntityTestingDisabledReason | CanvasEntityOtherDisabledReason | StateMutationErrorCode;
@@ -9701,7 +9703,7 @@ export declare enum BaseValueDescriptorIds {
9701
9703
  /**
9702
9704
  * Checks whether two data-type entities are compatible.
9703
9705
  * Order matters. In places where one data-type is constrained and the other is not,
9704
- * the first data-type (dataTypeA) is considered the value writter (source).
9706
+ * the first data-type (dataTypeA) is considered the value writer (source).
9705
9707
  * while the second data-type (dataTypeB) is considered the value reader (target).
9706
9708
  *
9707
9709
  * @param dataTypeA
@@ -10259,7 +10261,8 @@ export declare enum BaseValueDescriptorIds {
10259
10261
  EntryPointCaller = "entry-point-caller",
10260
10262
  SuccessCaller = "success-caller",
10261
10263
  ErrorCaller = "error-caller",
10262
- CalledBy = "called-by"
10264
+ CalledBy = "called-by",
10265
+ CalledByError = "called-by-error"
10263
10266
  }
10264
10267
 
10265
10268
  /** Constant-time equality for two byte arrays (equal length required). */
@@ -10410,7 +10413,7 @@ export declare enum BaseValueDescriptorIds {
10410
10413
  getDefaultValue(): LiteralValueState | null;
10411
10414
  setDefaultValue(value: LiteralValueState | null, changeSet?: ChangeSet | null): ContinueStatementState;
10412
10415
  clone(changeSet?: ChangeSet | null, parent?: LoopState | null, newId?: string | null, subscribe?: boolean): ContinueStatementState;
10413
- getMasterInputWithValueWritterFromAllInstances(input: TerminationInputMapState): TerminationInputMapState;
10416
+ getMasterInputWithValueWriterFromAllInstances(input: TerminationInputMapState): TerminationInputMapState;
10414
10417
  syncInputs(changeSet?: ChangeSet | null): IChangeSet<ContinueStatementState>;
10415
10418
  setDataType(dataType: DataTypeState | null, changeSet?: ChangeSet | null): ContinueStatementState;
10416
10419
  removeDataType(changeSet?: ChangeSet | null): ContinueStatementState;
@@ -12537,7 +12540,7 @@ export declare enum BaseValueDescriptorIds {
12537
12540
  InvalidUUIDStringFormat = "invalid-uuid-string-format",
12538
12541
  ReferencedEntityNotFound = "referenced-entity-not-found",
12539
12542
  ReferencedValueReaderEntityNotFound = "referenced--value-reader-entity-not-found",
12540
- InvalidValueWritterReference = "invalid-value-writter-reference",
12543
+ InvalidValueWriterReference = "invalid-value-writer-reference",
12541
12544
  EntityIdNotUnique = "entity-id-not-unique",
12542
12545
  BuiltInEntityGenerated = "built-in-entity-generated",
12543
12546
  BuiltInEntityUpdated = "built-in-entity-updated",
@@ -15327,7 +15330,7 @@ export declare enum BaseValueDescriptorIds {
15327
15330
  NonInteractiveBaseEntities = "non-interactive-base-entities-explanation",
15328
15331
  ValueReadingEntities = "value-reading-entities-explanation",
15329
15332
  ValueWritingEntities = "value-writing-entities-explanation",
15330
- PropertyNotValueReaderWritter = "property-not-value-reader-writter-explanation",
15333
+ PropertyNotValueReaderWriter = "property-not-value-reader-writer-explanation",
15331
15334
  EntitiesWithValues = "entities-with-values-explanation",
15332
15335
  AIValueConnectionGenerationAction = "ai-value-connection-generation-action-explanation",
15333
15336
  ParentAutoCalculationFromCaller = "parent-auto-calculation-from-caller-explanation",
@@ -15337,9 +15340,16 @@ export declare enum BaseValueDescriptorIds {
15337
15340
  PropertyParentFieldOptions = "property-parent-field-options-explanation",
15338
15341
  MethodParentFieldOptions = "method-parent-field-options-explanation",
15339
15342
  AllAvailableValueReaderEntities = "all-available-value-reader-entities-explanation",
15340
- AllAvailableValueWritterEntities = "all-available-value-writter-entities-explanation",
15341
- AvailableValueReadersForGivenWritter = "available-value-readers-for-given-writter-explanation",
15342
- AvailableValueWrittersForGivenReader = "available-value-writters-for-given-reader-explanation",
15343
+ AllAvailableValueWriterEntities = "all-available-value-writer-entities-explanation",
15344
+ AvailableValueReadersForGivenWriter = "available-value-readers-for-given-writer-explanation",
15345
+ AvailableValueWritersForGivenReader = "available-value-writers-for-given-reader-explanation",
15346
+ AllAvailableCallableEntities = "all-available-callable-entities-explanation",
15347
+ AllAvailableEntryPointEntities = "all-available-entry-point-entities-explanation",
15348
+ AllAvailablePassThroughCallableEntities = "all-available-pass-through-callable-entities-explanation",
15349
+ AllAvailableCallerEntities = "all-available-caller-entities-explanation",
15350
+ AllAvailableTerminationEntities = "all-available-termination-entities-explanation",
15351
+ AllAvailableCallerEntitiesForGivenCallee = "all-available-caller-entities-for-given-callee-explanation",
15352
+ AllAvailableCalleeEntitiesForGivenCaller = "all-available-callee-entities-for-given-caller-explanation",
15343
15353
  AllAvailableGlobalFunctionDeclarationsForFunctionCall = "all-available-global-function-declarations-for-function-call-explanation",
15344
15354
  AllNoneInteractiveBaseEntities = "all-non-interactive-base-entities-explanation",
15345
15355
  AllOperationActionDescriptors = "all-operation-action-descriptors-explanation",
@@ -18618,6 +18628,15 @@ export declare enum BaseValueDescriptorIds {
18618
18628
 
18619
18629
  export declare function getImplementedBuiltInEntity(entity: DefinitionEntityState): BuiltInBaseEntityState | null;
18620
18630
 
18631
+ /**
18632
+ * Returns a list of all entities that the current entity can connect to and not connect to
18633
+ *
18634
+ * @param {ArgumentDeclarationState | InputMapState | OutputMapState | LoopState | CallerEntityState | VariableState | ValueDescriptorState | ExecutableEntityState} entity The entity for which we want to find compatible and incompatible connections
18635
+ * @param {ConnectionNodeType} connectionType The type of connection we want to create
18636
+ * @param {YieldOptions & { allowReadWriteToFixableScope?: boolean }} options Additional options for the function, including yield options and whether to allow connections to entities that could become compatible if the scope is changed
18637
+ *
18638
+ * @returns {Promise<IConnectionCompatibilityResult>} An object containing two lists: one for compatible entities and one for incompatible entities, each with the reasons for their compatibility or incompatibility
18639
+ */
18621
18640
  export declare function getIncompatibleConnectionEntitiesAsync(entity: ArgumentDeclarationState | InputMapState | OutputMapState | LoopState | CallerEntityState | VariableState | ValueDescriptorState | ExecutableEntityState, connectionType: ConnectionNodeType, options?: YieldOptions & {
18622
18641
  allowReadWriteToFixableScope?: boolean;
18623
18642
  }): Promise<IConnectionCompatibilityResult>;
@@ -21269,6 +21288,12 @@ export declare enum BaseValueDescriptorIds {
21269
21288
  type: ScopeCompatibilityType.BInA;
21270
21289
  }
21271
21290
 
21291
+ export declare interface ICompatibleConnectionOption {
21292
+ requiresCallConnectionTo: CallableEntityState | null;
21293
+ requiresCallConnectionToFrom: CallerEntityState | null;
21294
+ entity: UserManagedEntityState;
21295
+ }
21296
+
21272
21297
  export declare interface ICompatibleSameBothGlobalScope extends IScopeCompatibility {
21273
21298
  compatible: true;
21274
21299
  type: ScopeCompatibilityType.SameBothGlobal;
@@ -21347,7 +21372,7 @@ export declare enum BaseValueDescriptorIds {
21347
21372
  }
21348
21373
 
21349
21374
  export declare interface IConnectionCompatibleOptions {
21350
- [id: string]: {
21375
+ [id: EntityId]: {
21351
21376
  requiresCallConnectionTo: CallableEntityState | null;
21352
21377
  requiresCallConnectionToFrom: CallerEntityState | null;
21353
21378
  entity: UserManagedEntityState;
@@ -21355,14 +21380,7 @@ export declare enum BaseValueDescriptorIds {
21355
21380
  }
21356
21381
 
21357
21382
  export declare interface IConnectionIncompatibleOptions {
21358
- [id: string]: {
21359
- entity: UserManagedEntityState;
21360
- reasons: CanvasEntityConnectionDisabledReason[];
21361
- fixable: boolean;
21362
- requiresCallConnectionTo: CallableEntityState | null;
21363
- requiresCallConnectionToFrom: CallerEntityState | null;
21364
- nonAutofixableReasons: (CanvasEntityConnectionDisabledReason.VariableDeclarationCannotBeMovedToLowerScopeBecauseInstancesUsage | CanvasEntityConnectionDisabledReason.CannotChangeScopeBecauseItCallsOtherEntities | CanvasEntityConnectionDisabledReason.CannotChangeScopeBecauseItIsCalledByOtherEntities)[];
21365
- };
21383
+ [id: EntityId]: IIncompatibleConnectionOption;
21366
21384
  }
21367
21385
 
21368
21386
  export declare interface IContinueStatement extends ITerminationStatement, IContinueStatement_meta {
@@ -21914,6 +21932,15 @@ export declare enum BaseValueDescriptorIds {
21914
21932
  type: ScopeCompatibilityType.BIsGlobalAIsNot;
21915
21933
  }
21916
21934
 
21935
+ export declare interface IIncompatibleConnectionOption {
21936
+ entity: UserManagedEntityState;
21937
+ reasons: CanvasEntityConnectionDisabledReason[];
21938
+ fixable: boolean;
21939
+ requiresCallConnectionTo: CallableEntityState | null;
21940
+ requiresCallConnectionToFrom: CallerEntityState | null;
21941
+ nonAutofixableReasons: (CanvasEntityConnectionDisabledReason.VariableDeclarationCannotBeMovedToLowerScopeBecauseInstancesUsage | CanvasEntityConnectionDisabledReason.CannotChangeScopeBecauseItCallsOtherEntities | CanvasEntityConnectionDisabledReason.CannotChangeScopeBecauseItIsCalledByOtherEntities)[];
21942
+ }
21943
+
21917
21944
  export declare interface IIncompatibleParallelInCommonParentScope extends IScopeCompatibility {
21918
21945
  compatible: false;
21919
21946
  type: ScopeCompatibilityType.ParallelInCommonParent;
@@ -30439,7 +30466,7 @@ export declare enum BaseValueDescriptorIds {
30439
30466
 
30440
30467
  export declare const PROPERTY_IMPLEMENTATION_AND_EXTENSION_AUTO_ENRICHMENT_EXPLANATION = "When a 'property' entity is added to a 'definition-entity', the system will automatically enrich the property based on the parent definition-entity's implemented and extended entities.\nThis means that if a property is required, the parent 'definition-entity' will have auto-generated it. If a manually added property can fit into a parent, it will be auto-enriched with any required 'implementation' or 'extension' references, and the data-type will be recalculated or constrained based on said extensions and implementations.\nThis means that manually adding an 'extends' field to a new property is not necessary, and only specific, non-required 'implements' references need to be added manually if needed.";
30441
30468
 
30442
- export declare const PROPERTY_NOT_VALUE_READER_WRITTER_EXPLANATION = "A property entity, is neither a value reading, or a value writting entity, but they are often confused with one.\nA 'property' can have a default value through its nested 'data-type' entity.\nThe 'property' entity only represents the data field in the declaration, and it can't write or read values.\nWhen a 'definition-entity' is instantiated as a variable, any writes or reads to its properties are done through 'input-map's and 'output-map's.";
30469
+ export declare const PROPERTY_NOT_VALUE_READER_WRITER_EXPLANATION = "A property entity, is neither a value reading, or a value writting entity, but they are often confused with one.\nA 'property' can have a default value through its nested 'data-type' entity.\nThe 'property' entity only represents the data field in the declaration, and it can't write or read values.\nWhen a 'definition-entity' is instantiated as a variable, any writes or reads to its properties are done through 'input-map's and 'output-map's.";
30443
30470
 
30444
30471
  export declare enum PropertyDependencyField {
30445
30472
  PropertyImplements = "property-implements-field",
@@ -30882,7 +30909,7 @@ export declare enum BaseValueDescriptorIds {
30882
30909
 
30883
30910
  export declare function readObjectNestedKey(obj: unknown, path: unknown, defaultValue?: unknown): unknown;
30884
30911
 
30885
- export declare function readValueFromWritter(entity: ValueReadingEntityState, context: IValueResolutionContext, onlyDefault?: boolean): IDynamicValue | null;
30912
+ export declare function readValueFromWriter(entity: ValueReadingEntityState, context: IValueResolutionContext, onlyDefault?: boolean): IDynamicValue | null;
30886
30913
 
30887
30914
  export declare function rebaseStack<T = any>(undoableStackValueIndex: number, history: T[], newItem: T): number;
30888
30915
 
@@ -34248,7 +34275,7 @@ export declare enum BaseValueDescriptorIds {
34248
34275
  modifiedData: Partial<IValueReadingEntityGenerationTarget>;
34249
34276
  };
34250
34277
 
34251
- export declare function validateValueWritter(data: ElementGenerationTarget, valueWritterEntity: ValueWritingEntityState): EntityGenerationError[];
34278
+ export declare function validateValueWriter(data: ElementGenerationTarget, valueWriterEntity: ValueWritingEntityState): EntityGenerationError[];
34252
34279
 
34253
34280
  export declare function validateVariableDeclarationName(entity: VariableDeclarationState | IVariableDeclarationGenerationTarget | IVariableDeclarationShallowTransfer | IVariableDeclarationTransfer, project: ProjectState): EntityGenerationError[];
34254
34281
 
@@ -35033,7 +35060,7 @@ export declare enum BaseValueDescriptorIds {
35033
35060
  removeValueWriter(changeSet?: ChangeSet | null): VariableDeclarationState;
35034
35061
  subscribe(): VariableDeclarationState;
35035
35062
  unsubscribe(): VariableDeclarationState;
35036
- getMasterInputWithValueWritterFromAllInstances(input: VariableInputMapState): VariableInputMapState;
35063
+ getMasterInputWithValueWriterFromAllInstances(input: VariableInputMapState): VariableInputMapState;
35037
35064
  inferDataTypeAndSyncInstancesInputsAndOutputs(changeSet?: ChangeSet | null): IChangeSet<VariableDeclarationState>;
35038
35065
  metaSync(changedData: Partial<IVariableDeclaration_meta | IVariableDeclaration | IVariableDeclarationTransfer | IVariableDeclarationShallowTransfer>, changeSet?: ChangeSet | null): VariableDeclarationState;
35039
35066
  APILoad(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<VariableDeclarationState>;