@elyx-code/project-logic-tree 0.0.6789 → 0.0.6790

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 CHANGED
@@ -12586,7 +12586,8 @@ export declare type EntityPayloadUnion = BuiltInBaseEntityPayloadUnion | Project
12586
12586
  export declare enum EntityPrintingFields {
12587
12587
  All = "all",
12588
12588
  Callers = "callers",
12589
- ValueReaders = "value-readers",
12589
+ ReadsValue = "reads-value",
12590
+ WritesValues = "writes-values",
12590
12591
  Declaration = "declaration",
12591
12592
  Id = "id",
12592
12593
  Type = "type",
@@ -12594,7 +12595,8 @@ export declare enum EntityPrintingFields {
12594
12595
  Description = "description",
12595
12596
  Extends = "extends",
12596
12597
  Implements = "implements",
12597
- CodeName = "code-name"
12598
+ CodeName = "code-name",
12599
+ DataType = "data-type"
12598
12600
  }
12599
12601
 
12600
12602
  export declare type EntityState = BuiltInBaseEntityState | ProjectState | InstalledProjectState | DefinitionEntityState | FunctionDeclarationState | GlobalEventState | VariableState | InputMapState | OutputMapState | ConditionState | OperationState | FunctionCallState | ArgumentDeclarationState | PrimitiveEntityState | DataTypeState | PropertyState | ActionDescriptorState | ReturnStatementState | ContinueStatementState | BreakStatementState | LoopState | SearchState | ValueDescriptorState | InternalCallState | LiteralValueState;
@@ -14266,6 +14268,8 @@ export declare function flattenDefinitionEntityAsync(entity: IDefinitionEntity |
14266
14268
  allKnownEntities?: Record<EntityId, Element_2 | ElementTransfer | ElementShallowTransfer>;
14267
14269
  } & YieldOptions): Promise<(Element_2 | ElementTransfer | ElementShallowTransfer)[]>;
14268
14270
 
14271
+ export declare function flattenDefinitionEntityExtensionAndImplementations(entity: DefinitionEntityState): (BuiltInBaseEntityState | DefinitionEntityState)[];
14272
+
14269
14273
  export declare function flattenDefinitionEntityExtensionAndImplementationTypes(entity: DefinitionEntityState): (BaseEntityNames | EntityType.DefinitionEntity)[];
14270
14274
 
14271
14275
  export declare function flattenDefinitionEntityExtensions(entity: DefinitionEntityState | BuiltInBaseEntityState): (BuiltInBaseEntityState | DefinitionEntityState)[];
@@ -15014,6 +15018,15 @@ export declare function generate(value: ILiteralValue): UntypedValue;
15014
15018
 
15015
15019
  export declare function generateActionExample(actionName: string, properties: Record<string, string>): string;
15016
15020
 
15021
+ export declare function generateCaughtErrorOutputLogLines(entity: PassThroughCallableEntityWithOutputsState, options?: IPrintEntityOptions & {
15022
+ prefix?: string;
15023
+ }): {
15024
+ lines: {
15025
+ text: string;
15026
+ indentLevel: number;
15027
+ }[];
15028
+ };
15029
+
15017
15030
  export declare const generateContentConnectionInputDataTypeTransfer: IDataTypeTransfer;
15018
15031
 
15019
15032
  export declare const generateContentConnectionInputTransfer: IValueDescriptorTransfer;
@@ -15036,6 +15049,13 @@ export declare const generateContentResponseDataTypeTransfer: IDataTypeTransfer;
15036
15049
 
15037
15050
  export declare const generateContentResponseEntityTransfer: IDefinitionEntityTransfer;
15038
15051
 
15052
+ export declare function generateDataType(dataType: DataTypeState | null, options?: IPrintEntityOptions): {
15053
+ lines: {
15054
+ text: string;
15055
+ indentLevel: number;
15056
+ }[];
15057
+ };
15058
+
15039
15059
  export declare type GeneratedPayload = ElementGenerationTarget | {
15040
15060
  id: string;
15041
15061
  } | {
@@ -15070,6 +15090,17 @@ export declare const generateIdentifierOperationResponseDataType: IDataTypeTrans
15070
15090
 
15071
15091
  export declare function generateIdFromStrategy(entity: EntityState, project: ProjectState, strategy?: 'uuid' | 'semantic'): string;
15072
15092
 
15093
+ export declare function generateInputMaps(inputs: (InputMapState | ArgumentDeclarationState | ValueDescriptorState)[], options?: IPrintEntityOptions & {
15094
+ label?: string;
15095
+ firstListItemIndent?: number;
15096
+ otherListItemIndent?: number;
15097
+ }): {
15098
+ lines: {
15099
+ text: string;
15100
+ indentLevel: number;
15101
+ }[];
15102
+ };
15103
+
15073
15104
  export declare function generateMutablePropertiesExplanation(entityToUpdate: EntityState): string;
15074
15105
 
15075
15106
  export declare function generateNewRowMigrationDefinition(project: ProjectState, updatedEntity: DefinitionEntityState, lastPublishedEntityVersion: DefinitionEntityState, changeSet: ChangeSet, offsets?: {
@@ -15077,6 +15108,15 @@ export declare function generateNewRowMigrationDefinition(project: ProjectState,
15077
15108
  y?: number;
15078
15109
  }): DefinitionEntityState;
15079
15110
 
15111
+ export declare function generateOutputMaps(outputs: OutputMapState[], options?: IPrintEntityOptions & {
15112
+ label?: string;
15113
+ }): {
15114
+ lines: {
15115
+ text: string;
15116
+ indentLevel: number;
15117
+ }[];
15118
+ };
15119
+
15080
15120
  export declare function generatePlaceholderValueResolutionContext(project: ProjectState): IValueResolutionContext;
15081
15121
 
15082
15122
  export declare function generatePlaceholderValueStore(id: string, project: ProjectState): IValueStoreClient;
@@ -15186,6 +15226,19 @@ export declare function generateStandaloneIfDefault(dynamicValue: IDynamicValue)
15186
15226
 
15187
15227
  export declare function generateUniqueUUID(): string;
15188
15228
 
15229
+ export declare function generateValueAssignmentLogLine(entity: EntityWithDefaultValueState, options?: IPrintEntityOptions & {
15230
+ prefix?: string;
15231
+ }): string;
15232
+
15233
+ export declare function generateWritesValuesToLogLine(entity: ValueWritingEntityState, options?: IPrintEntityOptions & {
15234
+ prefix?: string;
15235
+ }): {
15236
+ lines: {
15237
+ text: string;
15238
+ indentLevel: number;
15239
+ }[];
15240
+ };
15241
+
15189
15242
  export declare enum GenerationExplanationIds {
15190
15243
  PassThroughCallableEntities = "pass-through-callable-entities-explanation",
15191
15244
  EntryPointEntities = "entry-point-entities-explanation",
@@ -19814,6 +19867,7 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
19814
19867
  removeReturnStatement(statement: ReturnStatementState): GlobalEventState;
19815
19868
  removeUnrecognizedInputs(changeSet?: ChangeSet | null): IChangeSet<GlobalEventState>;
19816
19869
  syncInputs(changeSet?: ChangeSet | null): IChangeSet<GlobalEventState>;
19870
+ getDataType(changeSet?: ChangeSet | null): DataTypeState | null;
19817
19871
  }
19818
19872
 
19819
19873
  export declare type GlobalEventTypesUnion = IGlobalEvent | IGlobalEventTransfer | IGlobalEventShallowTransfer | IGlobalEventGenerationTarget;
@@ -21932,6 +21986,12 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
21932
21986
  standaloneParent: null | EntityWithValue | EntityWithValueReference;
21933
21987
  }
21934
21988
 
21989
+ export declare interface ILogicPrintOptions {
21990
+ indentSize?: number;
21991
+ maxDepth?: number;
21992
+ onPrefix?: (entity: EntityState) => string;
21993
+ }
21994
+
21935
21995
  export declare interface ILoop extends ILoop_meta, IChildEntity, ICalledEntity, IBaseActionCall {
21936
21996
  type: EntityType.Loop;
21937
21997
  declaration: IActionDescriptor;
@@ -29894,6 +29954,12 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
29894
29954
 
29895
29955
  export declare function printGenerationTarget(entity: ElementGenerationTarget, project: ProjectState): string;
29896
29956
 
29957
+ /**
29958
+ * Generates a pseudo-code representation of the call stack/logic flow
29959
+ * starting from a specific entity (usually a FunctionDeclaration).
29960
+ */
29961
+ export declare function printLogicCallStack(startEntity: CallerEntityState, project: ProjectState, options?: ILogicPrintOptions): string;
29962
+
29897
29963
  export declare type ProjectDomain = string;
29898
29964
 
29899
29965
  export declare type ProjectFetchResult = null | IProjectFetchResult;