@rsconcept/domain 3.1.1 → 3.2.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.
Files changed (69) hide show
  1. package/dist/{analyzer-B35QsI3L.d.ts → analyzer-BcPMzR38.d.ts} +2 -2
  2. package/dist/{api-DgecYHjR.d.ts → api-BRrnB6yd.d.ts} +4 -2
  3. package/dist/{ast-annotations-DclU1Ser.d.ts → ast-annotations-B0XO6380.d.ts} +2 -2
  4. package/dist/{calculator-B-1p712X.d.ts → calculator-SVf1trzN.d.ts} +2 -2
  5. package/dist/cctext/index.js +1 -2
  6. package/dist/cctext/language-api.d.ts +11 -12
  7. package/dist/cctext/language.d.ts +13 -14
  8. package/dist/{diagnostics-D4_B7rt2.d.ts → diagnostics-DC6QECex.d.ts} +3 -3
  9. package/dist/{error-S1JghCNN.d.ts → error-DBbO_NIg.d.ts} +2 -1
  10. package/dist/graph/index.js +1 -2
  11. package/dist/{index-DzvllU3P.d.ts → index-CEOeehqz.d.ts} +5 -5
  12. package/dist/{index-D-w-bgei.d.ts → index-CEUOBGLn.d.ts} +6 -5
  13. package/dist/index.d.ts +8 -7
  14. package/dist/index.js +2 -1
  15. package/dist/library/diagnostics.d.ts +1 -1
  16. package/dist/library/diagnostics.js +1 -2
  17. package/dist/library/folder-tree.d.ts +2 -3
  18. package/dist/library/index.d.ts +5 -5
  19. package/dist/library/library-api.d.ts +2 -3
  20. package/dist/library/oss-api.d.ts +5 -6
  21. package/dist/library/oss-layout-api.d.ts +4 -5
  22. package/dist/library/oss.d.ts +16 -16
  23. package/dist/library/rsengine.d.ts +6 -7
  24. package/dist/library/rsengine.js +19 -21
  25. package/dist/library/rsengine.js.map +1 -1
  26. package/dist/library/rsform-api/index.d.ts +1 -1
  27. package/dist/library/rsform-api/index.js +1 -2
  28. package/dist/library/rsform.d.ts +1 -1
  29. package/dist/library/rsmodel-api.d.ts +17 -18
  30. package/dist/library/rsmodel.d.ts +1 -1
  31. package/dist/library/structure-planner.d.ts +4 -5
  32. package/dist/rslang/api.d.ts +2 -2
  33. package/dist/rslang/api.js +3 -1
  34. package/dist/rslang/api.js.map +1 -1
  35. package/dist/rslang/ast-annotations.d.ts +1 -1
  36. package/dist/rslang/error.d.ts +1 -1
  37. package/dist/rslang/error.js +1 -0
  38. package/dist/rslang/error.js.map +1 -1
  39. package/dist/rslang/eval/calculator.d.ts +1 -1
  40. package/dist/rslang/eval/evaluation-cache.d.ts +3 -4
  41. package/dist/rslang/eval/evaluator.d.ts +3 -4
  42. package/dist/rslang/eval/value-api.js +1 -2
  43. package/dist/rslang/eval/value.js +1 -2
  44. package/dist/rslang/index.d.ts +8 -7
  45. package/dist/rslang/index.js +2 -1
  46. package/dist/rslang/labels.d.ts +5 -6
  47. package/dist/rslang/parser/normalize.d.ts +1 -2
  48. package/dist/rslang/parser/parser.terms.d.ts +1 -2
  49. package/dist/rslang/parser/syntax-errors/index.d.ts +3 -4
  50. package/dist/rslang/parser/syntax-errors/index.js +1 -2
  51. package/dist/rslang/semantic/analyzer.d.ts +1 -1
  52. package/dist/rslang/semantic/analyzer.js +1 -1
  53. package/dist/rslang/semantic/type-auditor.d.ts +2 -3
  54. package/dist/rslang/semantic/typification-api.d.ts +10 -11
  55. package/dist/rslang/semantic/value-auditor.d.ts +2 -3
  56. package/dist/shared/index.js +1 -2
  57. package/dist/{syntax-errors-BN_bqTaX.js → syntax-errors-WGLQNaNe.js} +19 -4
  58. package/dist/{syntax-errors-BN_bqTaX.js.map → syntax-errors-WGLQNaNe.js.map} +1 -1
  59. package/package.json +24 -25
  60. package/src/index.ts +2 -1
  61. package/src/library/rsengine.test.ts +164 -0
  62. package/src/library/rsengine.ts +25 -24
  63. package/src/rslang/api.ts +3 -0
  64. package/src/rslang/error.ts +1 -0
  65. package/src/rslang/index.ts +2 -1
  66. package/src/rslang/parser/parser.test.ts +38 -0
  67. package/src/rslang/parser/syntax-errors/README.md +2 -2
  68. package/src/rslang/parser/syntax-errors/expression-errors.ts +18 -0
  69. package/src/rslang/parser/syntax-errors/index.ts +11 -4
@@ -1,7 +1,7 @@
1
1
  import { t as AstNode } from "./ast-D-D6Rq3T.js";
2
2
  import "./index-D5RahF1K.js";
3
3
  import { f as ExpressionType, g as TypeClass } from "./typification-hWUoWCba.js";
4
- import { a as RSErrorDescription } from "./error-S1JghCNN.js";
4
+ import { a as RSErrorDescription } from "./error-DBbO_NIg.js";
5
5
  import { t as ValueClass } from "./value-class-CNI-lqXJ.js";
6
6
  //#region src/rslang/semantic/analyzer.d.ts
7
7
  interface AnalysisBase {
@@ -35,4 +35,4 @@ declare class RSLangAnalyzer {
35
35
  }
36
36
  //#endregion
37
37
  export { RSLangAnalyzer as a, AnalysisOptions as i, AnalysisFast as n, AnalysisFull as r, AnalysisBase as t };
38
- //# sourceMappingURL=analyzer-B35QsI3L.d.ts.map
38
+ //# sourceMappingURL=analyzer-BcPMzR38.d.ts.map
@@ -3,6 +3,8 @@ import "./index-D5RahF1K.js";
3
3
  import { n as ArgumentsType } from "./arguments-extractor-CXWRT5Ou.js";
4
4
  import "./expression-generator-CADzBw-C.js";
5
5
  //#region src/rslang/api.d.ts
6
+ /** Placeholder alias written into expressions in place of references to deleted constituents. */
7
+ declare const DELETED_ALIAS = "DEL";
6
8
  /** Represents alias mapping. */
7
9
  type AliasMapping = Record<string, string>;
8
10
  /** Whether {@link value} is a single schema global alias (e.g. `X1`, `F42`). */
@@ -55,5 +57,5 @@ declare function applyAliasMapping(target: string, mapping: AliasMapping): strin
55
57
  /** Apply alias typification mapping. */
56
58
  declare function applyTypificationMapping(target: string, mapping: AliasMapping): string;
57
59
  //#endregion
58
- export { extractGlobals as a, isSimpleExpression as c, substituteLocalAliases as d, substituteTemplateArgs as f, extractArguments as i, parseRSLangExpression as l, applyAliasMapping as n, isGlobalAlias as o, applyTypificationMapping as r, isSetTypification as s, AliasMapping as t, splitTemplateDefinition as u };
59
- //# sourceMappingURL=api-DgecYHjR.d.ts.map
60
+ export { extractArguments as a, isSetTypification as c, splitTemplateDefinition as d, substituteLocalAliases as f, applyTypificationMapping as i, isSimpleExpression as l, DELETED_ALIAS as n, extractGlobals as o, substituteTemplateArgs as p, applyAliasMapping as r, isGlobalAlias as s, AliasMapping as t, parseRSLangExpression as u };
61
+ //# sourceMappingURL=api-BRrnB6yd.d.ts.map
@@ -1,7 +1,7 @@
1
1
  import { t as AstNode } from "./ast-D-D6Rq3T.js";
2
2
  import "./index-D5RahF1K.js";
3
3
  import { f as ExpressionType } from "./typification-hWUoWCba.js";
4
- import { i as RSErrorCode, o as RSErrorInfo } from "./error-S1JghCNN.js";
4
+ import { i as RSErrorCode, o as RSErrorInfo } from "./error-DBbO_NIg.js";
5
5
  //#region src/rslang/ast-annotations.d.ts
6
6
  /** Appends {@link ExpressionType} onto the node's `annotation.rsType`. */
7
7
  declare function annotateType(node: AstNode, type: ExpressionType): void;
@@ -13,4 +13,4 @@ declare function annotateError(node: AstNode, code: RSErrorCode, params?: readon
13
13
  declare function readErrorAnnotation(node: AstNode): RSErrorInfo | null;
14
14
  //#endregion
15
15
  export { readTypeAnnotation as i, annotateType as n, readErrorAnnotation as r, annotateError as t };
16
- //# sourceMappingURL=ast-annotations-DclU1Ser.d.ts.map
16
+ //# sourceMappingURL=ast-annotations-B0XO6380.d.ts.map
@@ -1,7 +1,7 @@
1
1
  import { t as AstNode } from "./ast-D-D6Rq3T.js";
2
2
  import "./index-D5RahF1K.js";
3
3
  import { f as ExpressionType } from "./typification-hWUoWCba.js";
4
- import { a as RSErrorDescription } from "./error-S1JghCNN.js";
4
+ import { a as RSErrorDescription } from "./error-DBbO_NIg.js";
5
5
  import { l as Value } from "./value-XpJOVzMP.js";
6
6
  //#region src/rslang/eval/calculator.d.ts
7
7
  /** Result of calculator evaluation. */
@@ -36,4 +36,4 @@ declare class RSCalculator {
36
36
  }
37
37
  //#endregion
38
38
  export { CalculatorResult as n, RSCalculator as r, CalculatorEvaluateOptions as t };
39
- //# sourceMappingURL=calculator-B-1p712X.d.ts.map
39
+ //# sourceMappingURL=calculator-SVf1trzN.d.ts.map
@@ -1,2 +1 @@
1
- import { Grammeme, ReferenceType, supportedGrammemes } from "./language.js";
2
- export { Grammeme, ReferenceType, supportedGrammemes };
1
+ export { Grammeme, ReferenceType, supportedGrammemes } from "./language.js";
@@ -1,18 +1,18 @@
1
1
  import { EntityReference, Grammeme, IReference, SyntacticReference, TermContext, WordForm } from "./language.js";
2
2
  //#region src/cctext/language-api.d.ts
3
3
  /** Represents generated lexeme forms. */
4
- interface Lexeme {
4
+ export interface Lexeme {
5
5
  items: {
6
6
  text: string;
7
7
  grams: string;
8
8
  }[];
9
9
  }
10
10
  /** Equality comparator for {@link WordForm}. Compares a set of Grammemes attached to wordforms. */
11
- declare function wordFormEquals(left: WordForm, right: WordForm): boolean;
11
+ export declare function wordFormEquals(left: WordForm, right: WordForm): boolean;
12
12
  /** Transforms {@link Grammeme} enumeration to {@link Grammeme}. */
13
- declare function parseGrammemes(termForm: string): Grammeme[];
13
+ export declare function parseGrammemes(termForm: string): Grammeme[];
14
14
  /** Generates all supported noun forms using nominal text for every form. */
15
- declare function generateNominalLexeme(data: {
15
+ export declare function generateNominalLexeme(data: {
16
16
  text: string;
17
17
  }): Lexeme;
18
18
  /**
@@ -20,23 +20,22 @@ declare function generateNominalLexeme(data: {
20
20
  *
21
21
  * @param text - Reference text in a valid pattern. Must fit format '\@\{GLOBAL_ID|GRAMMEMES\}'
22
22
  */
23
- declare function parseEntityReference(text: string): EntityReference;
23
+ export declare function parseEntityReference(text: string): EntityReference;
24
24
  /**
25
25
  * Extracts {@link SyntacticReference} from string representation.
26
26
  *
27
27
  * @param text - Reference text in a valid pattern. Must fit format '\@\{OFFSET|NOMINAL_FORM\}'
28
28
  */
29
- declare function parseSyntacticReference(text: string): SyntacticReference;
29
+ export declare function parseSyntacticReference(text: string): SyntacticReference;
30
30
  /** Extracts a validated reference from string representation. */
31
- declare function parseReference(text: string): IReference | null;
31
+ export declare function parseReference(text: string): IReference | null;
32
32
  /** Apply alias mapping to entity references in terminological text. */
33
- declare function applyEntityReferenceMapping(text: string, mapping: Record<string, string>): string;
33
+ export declare function applyEntityReferenceMapping(text: string, mapping: Record<string, string>): string;
34
34
  /** Extracts unique entity aliases referenced by text. */
35
- declare function extractEntities(text: string): string[];
35
+ export declare function extractEntities(text: string): string[];
36
36
  /** Resolves text references using nominal terms and optional manually edited forms. */
37
- declare function resolveTextReferences(text: string, context: TermContext): string;
37
+ export declare function resolveTextReferences(text: string, context: TermContext): string;
38
38
  /** Transforms {@link IReference} to string representation. */
39
- declare function referenceToString(ref: IReference): string;
39
+ export declare function referenceToString(ref: IReference): string;
40
40
  //#endregion
41
- export { Lexeme, applyEntityReferenceMapping, extractEntities, generateNominalLexeme, parseEntityReference, parseGrammemes, parseReference, parseSyntacticReference, referenceToString, resolveTextReferences, wordFormEquals };
42
41
  //# sourceMappingURL=language-api.d.ts.map
@@ -3,7 +3,7 @@
3
3
  * Module: Natural language model declarations.
4
4
  */
5
5
  /** Represents single unit of language Morphology. */
6
- declare const Grammeme: {
6
+ export declare const Grammeme: {
7
7
  readonly sing: "sing";
8
8
  readonly plur: "plur";
9
9
  readonly nomn: "nomn";
@@ -13,45 +13,45 @@ declare const Grammeme: {
13
13
  readonly ablt: "ablt";
14
14
  readonly loct: "loct";
15
15
  };
16
- type Grammeme = (typeof Grammeme)[keyof typeof Grammeme];
16
+ export type Grammeme = (typeof Grammeme)[keyof typeof Grammeme];
17
17
  /** Represents case language concept. */
18
- declare const Case: Grammeme[];
18
+ export declare const Case: Grammeme[];
19
19
  /** Represents plurality language concept. */
20
- declare const Plurality: Grammeme[];
20
+ export declare const Plurality: Grammeme[];
21
21
  /** Represents specific wordform attached to {@link Grammeme}s. */
22
- interface WordForm {
22
+ export interface WordForm {
23
23
  text: string;
24
24
  grams: Grammeme[];
25
25
  }
26
26
  /** Represents a term available for text reference resolution. */
27
- interface TermContextItem {
27
+ export interface TermContextItem {
28
28
  nominal: string;
29
29
  forms?: WordForm[];
30
30
  }
31
31
  /** Represents term lookup context keyed by entity alias. */
32
- type TermContext = Record<string, TermContextItem>;
32
+ export type TermContext = Record<string, TermContextItem>;
33
33
  /**
34
34
  * Represents list of {@link Grammeme}s available in reference construction.
35
35
  */
36
- declare const supportedGrammemes: readonly ["sing", "plur", "nomn", "gent", "datv", "accs", "ablt", "loct"];
36
+ export declare const supportedGrammemes: readonly ["sing", "plur", "nomn", "gent", "datv", "accs", "ablt", "loct"];
37
37
  /** Represents text reference type. */
38
- declare const ReferenceType: {
38
+ export declare const ReferenceType: {
39
39
  readonly ENTITY: "entity";
40
40
  readonly SYNTACTIC: "syntax";
41
41
  };
42
- type ReferenceType = (typeof ReferenceType)[keyof typeof ReferenceType];
42
+ export type ReferenceType = (typeof ReferenceType)[keyof typeof ReferenceType];
43
43
  /** Represents entity reference payload. */
44
- interface EntityReference {
44
+ export interface EntityReference {
45
45
  entity: string;
46
46
  tags: Grammeme[];
47
47
  }
48
48
  /** Represents syntactic reference payload. */
49
- interface SyntacticReference {
49
+ export interface SyntacticReference {
50
50
  offset: number;
51
51
  nominal: string;
52
52
  }
53
53
  /** Represents abstract reference data. */
54
- type IReference = {
54
+ export type IReference = {
55
55
  type: typeof ReferenceType.ENTITY;
56
56
  data: EntityReference;
57
57
  } | {
@@ -59,5 +59,4 @@ type IReference = {
59
59
  data: SyntacticReference;
60
60
  };
61
61
  //#endregion
62
- export { Case, EntityReference, Grammeme, IReference, Plurality, ReferenceType, SyntacticReference, TermContext, TermContextItem, WordForm, supportedGrammemes };
63
62
  //# sourceMappingURL=language.d.ts.map
@@ -2,8 +2,8 @@ import { t as Graph } from "./graph-CL73WdW1.js";
2
2
  import "./index-DntDUXW1.js";
3
3
  import { f as ExpressionType, y as TypePath } from "./typification-hWUoWCba.js";
4
4
  import { l as Value } from "./value-XpJOVzMP.js";
5
- import { a as RSLangAnalyzer, t as AnalysisBase } from "./analyzer-B35QsI3L.js";
6
- import "./index-D-w-bgei.js";
5
+ import { a as RSLangAnalyzer, t as AnalysisBase } from "./analyzer-BcPMzR38.js";
6
+ import "./index-CEUOBGLn.js";
7
7
  import { i as LibraryItemReference, n as CurrentVersion, r as LibraryItem, s as VersionInfo } from "./library-CYun28Xz.js";
8
8
  //#region src/library/rsform.d.ts
9
9
  /** Represents {@link Constituenta} type. */
@@ -314,4 +314,4 @@ declare function detectDependencyCycleDiagnostics(graph: Graph, resolveAlias: (i
314
314
  declare function modelStatusCstDiagnostic(status: EvalStatus, cstType: CstType): CstDiagnostic | null;
315
315
  //#endregion
316
316
  export { RSFormStats as C, TypeInfo as E, RSForm as S, TermForm as T, Attribution as _, detectDependencyCycleDiagnostics as a, CstStatus as b, modelStatusCstDiagnostic as c, DEFAULT_VALUE_TEXT as d, EvalStatus as f, ArgumentValue as g, TYPE_BASIC as h, assignSchemaDiagnostics as i, BasicBinding as l, RSModelStats as m, DiagnosticKind as n, formatDependencyCycle as o, RSModel as p, RSDiagnosticCode as r, hasCstDiagnostic as s, CstDiagnostic as t, BasicsContext as u, Constituenta as v, Substitution as w, CstType as x, CstClass as y };
317
- //# sourceMappingURL=diagnostics-D4_B7rt2.d.ts.map
317
+ //# sourceMappingURL=diagnostics-DC6QECex.d.ts.map
@@ -84,6 +84,7 @@ declare const RSErrorCode: {
84
84
  readonly invalidCard: 34824;
85
85
  readonly invalidDebool: 34825;
86
86
  readonly globalFuncWithoutArgs: 34827;
87
+ readonly globalDeleted: 34828;
87
88
  readonly invalidReduce: 34832;
88
89
  readonly invalidEnumeration: 34835;
89
90
  readonly projectionSetArgumentNotSet: 34864;
@@ -135,4 +136,4 @@ declare function getRSErrorPrefix(code: RSErrorCode): string;
135
136
  declare function isCritical(code: RSErrorCode): boolean;
136
137
  //#endregion
137
138
  export { RSErrorDescription as a, getRSErrorPrefix as c, RSErrorCode as i, isCritical as l, EvalStackFrame as n, RSErrorInfo as o, RSErrorClass as r, formatEvalCallStack as s, ErrorReporter as t };
138
- //# sourceMappingURL=error-S1JghCNN.d.ts.map
139
+ //# sourceMappingURL=error-DBbO_NIg.d.ts.map
@@ -1,2 +1 @@
1
- import { Graph } from "./graph.js";
2
- export { Graph };
1
+ export { Graph } from "./graph.js";
@@ -3,12 +3,12 @@ import "./index-DntDUXW1.js";
3
3
  import { t as AstNode } from "./ast-D-D6Rq3T.js";
4
4
  import "./index-D5RahF1K.js";
5
5
  import { f as ExpressionType, g as TypeClass, y as TypePath } from "./typification-hWUoWCba.js";
6
+ import { t as AliasMapping } from "./api-BRrnB6yd.js";
6
7
  import { t as ValueClass } from "./value-class-CNI-lqXJ.js";
7
- import { r as AnalysisFull } from "./analyzer-B35QsI3L.js";
8
- import "./index-D-w-bgei.js";
8
+ import { r as AnalysisFull } from "./analyzer-BcPMzR38.js";
9
+ import "./index-CEUOBGLn.js";
9
10
  import { r as LibraryItem } from "./library-CYun28Xz.js";
10
- import { C as RSFormStats, S as RSForm, T as TermForm, _ as Attribution, b as CstStatus, g as ArgumentValue, v as Constituenta, w as Substitution, x as CstType, y as CstClass } from "./diagnostics-D4_B7rt2.js";
11
- import { t as AliasMapping } from "./api-DgecYHjR.js";
11
+ import { C as RSFormStats, S as RSForm, T as TermForm, _ as Attribution, b as CstStatus, g as ArgumentValue, v as Constituenta, w as Substitution, x as CstType, y as CstClass } from "./diagnostics-DC6QECex.js";
12
12
  //#region src/library/rsform-api/types.d.ts
13
13
  /** Fields needed to restore formal dependency order. */
14
14
  interface FormalOrderFields {
@@ -375,4 +375,4 @@ declare function insertItemAfter<T extends {
375
375
  }>(items: T[], item: T, insertAfter: number | null | undefined): void;
376
376
  //#endregion
377
377
  export { removeAliasReference as $, canProduceStructure as A, filterAttributions as B, restoreConstituentOrder as C, inferTemplatedType as D, inferTemplate as E, isBasicConcept as F, MappableFields as G, remapAttributionsUnderSubstitution as H, isFunctional as I, applyMappingToConstituents as J, addAliasReference as K, isLogical as L, guessCstType as M, inferClass as N, normalizeExpression as O, isBaseSet as P, maxAliasIndex as Q, isTemplateCst as R, buildFormalDependencyGraph as S, inferStatus as T, getAnalysisFor as U, importAttributions as V, refineAnalysisForDependencyCycles as W, buildSequentialAliasMapping as X, argumentValuesToMapping as Y, generateAlias as Z, findCstByStructure as _, buildDefinitionReferenceGraph as a, DiagnosticSourceFields as at, calculateSchemaStats as b, resolveConstituentTextChange as c, SchemaIssueFields as ct, SynthesizableFields as d, SpawnPathFields as dt, validateAliasFormat as et, inlineSynthesis as f, StructureCapableFields as ft, remapSubstitutionsAfterImport as g, applyConstituentSubstitutions as h, TextResolvableFields as ht, TextChangeOptions as i, DescribableFields as it, getCstTypePrefix as j, canHaveManualTypification as k, InlineSynthesisInput as l, SearchableFields as lt, SubstitutionResult as m, TemplateSourceFields as mt, moveIdsInOrder as n, AliasTypedFields as nt, buildTermReferenceGraph as o, FormalOrderFields as ot, sortItemsForInlineSynthesis as p, TemplateParamSourceFields as pt, allocateImportAliases as q, reorderItemsByIds as r, BasicTextCheckFields as rt, resolveAllConstituentTexts as s, ModelEvalFields as st, insertItemAfter as t, validateNewAlias as tt, InlineSynthesisResult as u, SemanticRelations as ut, getStructureName as v, applyFilterCategory as w, isSchemaIssue as x, inferNewSpawnPosition as y, typeClassForCstType as z };
378
- //# sourceMappingURL=index-DzvllU3P.d.ts.map
378
+ //# sourceMappingURL=index-CEOeehqz.d.ts.map
@@ -1,13 +1,14 @@
1
1
  import "./typification-hWUoWCba.js";
2
- import "./error-S1JghCNN.js";
3
- import "./ast-annotations-DclU1Ser.js";
2
+ import "./arguments-extractor-CXWRT5Ou.js";
3
+ import "./api-BRrnB6yd.js";
4
+ import "./error-DBbO_NIg.js";
5
+ import "./ast-annotations-B0XO6380.js";
4
6
  import "./value-XpJOVzMP.js";
5
- import "./calculator-B-1p712X.js";
7
+ import "./calculator-SVf1trzN.js";
6
8
  import "./value-api-Dw8UkwCD.js";
7
9
  import "./parser-DkejtiOR.js";
8
10
  import "./token-DeXAmzwr.js";
9
11
  import "./value-class-CNI-lqXJ.js";
10
- import "./analyzer-B35QsI3L.js";
11
- import "./arguments-extractor-CXWRT5Ou.js";
12
+ import "./analyzer-BcPMzR38.js";
12
13
  import "./typification-parser-DFxj4JiQ.js";
13
14
  import "./typification-graph-CSxDt18X.js";
package/dist/index.d.ts CHANGED
@@ -5,22 +5,23 @@ import { a as TOKEN_ERROR, c as flattenAst, d as printAst, f as visitAstDFS, i a
5
5
  import { t as Branded } from "./branded-ZlzIcxzu.js";
6
6
  import { n as generateStub, t as applyHash_fnv1a } from "./hash-Y8I4c6Al.js";
7
7
  import { A as makeTypePath, b as Typification, d as EmptySetT, f as ExpressionType, g as TypeClass, m as LogicT, t as AnyTypificationT, v as TypeID, y as TypePath } from "./typification-hWUoWCba.js";
8
- import { a as RSErrorDescription, i as RSErrorCode, n as EvalStackFrame, s as formatEvalCallStack } from "./error-S1JghCNN.js";
9
- import { i as readTypeAnnotation, r as readErrorAnnotation } from "./ast-annotations-DclU1Ser.js";
8
+ import { n as ArgumentsType } from "./arguments-extractor-CXWRT5Ou.js";
9
+ import { n as DELETED_ALIAS } from "./api-BRrnB6yd.js";
10
+ import { a as RSErrorDescription, i as RSErrorCode, n as EvalStackFrame, s as formatEvalCallStack } from "./error-DBbO_NIg.js";
11
+ import { i as readTypeAnnotation, r as readErrorAnnotation } from "./ast-annotations-B0XO6380.js";
10
12
  import { d as ValuePath, l as Value, o as TUPLE_ID, p as makeValuePath } from "./value-XpJOVzMP.js";
11
- import { n as CalculatorResult, r as RSCalculator, t as CalculatorEvaluateOptions } from "./calculator-B-1p712X.js";
13
+ import { n as CalculatorResult, r as RSCalculator, t as CalculatorEvaluateOptions } from "./calculator-SVf1trzN.js";
12
14
  import { d as printValue } from "./value-api-Dw8UkwCD.js";
13
15
  import { t as parser } from "./parser-DkejtiOR.js";
14
16
  import { t as TokenID } from "./token-DeXAmzwr.js";
15
17
  import { t as ValueClass } from "./value-class-CNI-lqXJ.js";
16
- import { a as RSLangAnalyzer, n as AnalysisFast, r as AnalysisFull, t as AnalysisBase } from "./analyzer-B35QsI3L.js";
17
- import { n as ArgumentsType } from "./arguments-extractor-CXWRT5Ou.js";
18
+ import { a as RSLangAnalyzer, n as AnalysisFast, r as AnalysisFull, t as AnalysisBase } from "./analyzer-BcPMzR38.js";
18
19
  import { n as applyAsciiTypeSubstitutions, r as parseTypeText } from "./typification-parser-DFxj4JiQ.js";
19
20
  import { n as TypificationNodeData, t as TypificationGraph } from "./typification-graph-CSxDt18X.js";
20
21
  import { a as LibraryItemType, i as LibraryItemReference, n as CurrentVersion, o as LocationHead, r as LibraryItem, s as VersionInfo, t as AccessPolicy } from "./library-CYun28Xz.js";
21
- import { C as RSFormStats, E as TypeInfo, S as RSForm, T as TermForm, _ as Attribution, a as detectDependencyCycleDiagnostics, b as CstStatus, c as modelStatusCstDiagnostic, d as DEFAULT_VALUE_TEXT, f as EvalStatus, g as ArgumentValue, i as assignSchemaDiagnostics, l as BasicBinding, m as RSModelStats, n as DiagnosticKind, o as formatDependencyCycle, p as RSModel, r as RSDiagnosticCode, s as hasCstDiagnostic, t as CstDiagnostic, u as BasicsContext, v as Constituenta, w as Substitution, x as CstType, y as CstClass } from "./diagnostics-D4_B7rt2.js";
22
+ import { C as RSFormStats, E as TypeInfo, S as RSForm, T as TermForm, _ as Attribution, a as detectDependencyCycleDiagnostics, b as CstStatus, c as modelStatusCstDiagnostic, d as DEFAULT_VALUE_TEXT, f as EvalStatus, g as ArgumentValue, i as assignSchemaDiagnostics, l as BasicBinding, m as RSModelStats, n as DiagnosticKind, o as formatDependencyCycle, p as RSModel, r as RSDiagnosticCode, s as hasCstDiagnostic, t as CstDiagnostic, u as BasicsContext, v as Constituenta, w as Substitution, x as CstType, y as CstClass } from "./diagnostics-DC6QECex.js";
22
23
  import { FolderNode, FolderTree } from "./library/folder-tree.js";
23
24
  import { n as OssLayout, r as Position2D } from "./oss-layout-3glgAqfn.js";
24
25
  import { Block, CstSubstituteInfo, NodeType, Operation, OperationInput, OperationSchema, OperationSchemaStats, OperationSynthesis, OperationType, OssItem, SubstitutionErrorDescription, SubstitutionErrorType } from "./library/oss.js";
25
26
  import { RSEngine } from "./library/rsengine.js";
26
- export { AccessPolicy, type AnalysisBase, type AnalysisFast, type AnalysisFull, AnyTypificationT, type ArgumentValue, type ArgumentsType, type AstNode, type AstNodeBase, type Attribution, type BasicBinding, type BasicsContext, type Block, type Branded, type CMSyntaxNode, type CalculatorEvaluateOptions, type CalculatorResult, type Constituenta, CstClass, type CstDiagnostic, CstStatus, type CstSubstituteInfo, CstType, type CurrentVersion, DEFAULT_VALUE_TEXT, DiagnosticKind, EmptySetT, type EntityReference, type EvalStackFrame, EvalStatus, type ExpressionType, type FlatAST, type FlatAstNode, FolderNode, FolderTree, Grammeme, Graph, type LibraryItem, type LibraryItemReference, LibraryItemType, LocationHead, LogicT, NodeType, type Operation, type OperationInput, type OperationSchema, type OperationSchemaStats, type OperationSynthesis, OperationType, type OssItem, type OssLayout, type Position2D, RSCalculator, RSDiagnosticCode, RSEngine, RSErrorCode, type RSErrorDescription, type RSForm, type RSFormStats, RSLangAnalyzer, type RSModel, type RSModelStats, ReferenceType, type Substitution, type SubstitutionErrorDescription, SubstitutionErrorType, type SyntacticReference, TOKEN_ERROR, TUPLE_ID, type TermContext, type TermForm, TokenID, TypeClass, TypeID, type TypeInfo, type TypePath, type Typification, TypificationGraph, type TypificationNodeData, type Value, ValueClass, type ValuePath, type VersionInfo, type WordForm, applyAsciiTypeSubstitutions, applyHash_fnv1a, assignSchemaDiagnostics, buildTree, detectDependencyCycleDiagnostics, findByUid, flattenAst, formatDependencyCycle, formatEvalCallStack, generateStub, getNodeIndices, getNodeText, hasCstDiagnostic, makeTypePath, makeValuePath, modelStatusCstDiagnostic, parseTypeText, printAst, printTree, printValue, readErrorAnnotation, readTypeAnnotation, parser as rslangParser, supportedGrammemes, visitAstDFS };
27
+ export { AccessPolicy, type AnalysisBase, type AnalysisFast, type AnalysisFull, AnyTypificationT, type ArgumentValue, type ArgumentsType, type AstNode, type AstNodeBase, type Attribution, type BasicBinding, type BasicsContext, type Block, type Branded, type CMSyntaxNode, type CalculatorEvaluateOptions, type CalculatorResult, type Constituenta, CstClass, type CstDiagnostic, CstStatus, type CstSubstituteInfo, CstType, type CurrentVersion, DEFAULT_VALUE_TEXT, DELETED_ALIAS, DiagnosticKind, EmptySetT, type EntityReference, type EvalStackFrame, EvalStatus, type ExpressionType, type FlatAST, type FlatAstNode, FolderNode, FolderTree, Grammeme, Graph, type LibraryItem, type LibraryItemReference, LibraryItemType, LocationHead, LogicT, NodeType, type Operation, type OperationInput, type OperationSchema, type OperationSchemaStats, type OperationSynthesis, OperationType, type OssItem, type OssLayout, type Position2D, RSCalculator, RSDiagnosticCode, RSEngine, RSErrorCode, type RSErrorDescription, type RSForm, type RSFormStats, RSLangAnalyzer, type RSModel, type RSModelStats, ReferenceType, type Substitution, type SubstitutionErrorDescription, SubstitutionErrorType, type SyntacticReference, TOKEN_ERROR, TUPLE_ID, type TermContext, type TermForm, TokenID, TypeClass, TypeID, type TypeInfo, type TypePath, type Typification, TypificationGraph, type TypificationNodeData, type Value, ValueClass, type ValuePath, type VersionInfo, type WordForm, applyAsciiTypeSubstitutions, applyHash_fnv1a, assignSchemaDiagnostics, buildTree, detectDependencyCycleDiagnostics, findByUid, flattenAst, formatDependencyCycle, formatEvalCallStack, generateStub, getNodeIndices, getNodeText, hasCstDiagnostic, makeTypePath, makeValuePath, modelStatusCstDiagnostic, parseTypeText, printAst, printTree, printValue, readErrorAnnotation, readTypeAnnotation, parser as rslangParser, supportedGrammemes, visitAstDFS };
package/dist/index.js CHANGED
@@ -6,6 +6,7 @@ import { TokenID } from "./rslang/parser/token.js";
6
6
  import { AnyTypificationT, EmptySetT, LogicT, TypeClass, TypeID, makeTypePath } from "./rslang/semantic/typification.js";
7
7
  import { parser } from "./rslang/parser/parser.js";
8
8
  import { readErrorAnnotation, readTypeAnnotation } from "./rslang/ast-annotations.js";
9
+ import { DELETED_ALIAS } from "./rslang/api.js";
9
10
  import { CstClass, CstStatus, CstType } from "./library/rsform.js";
10
11
  import { RSErrorCode, formatEvalCallStack } from "./rslang/error.js";
11
12
  import { applyHash_fnv1a, generateStub } from "./shared/hash.js";
@@ -21,4 +22,4 @@ import { FolderNode, FolderTree } from "./library/folder-tree.js";
21
22
  import { AccessPolicy, LibraryItemType, LocationHead } from "./library/library.js";
22
23
  import { NodeType, OperationType, SubstitutionErrorType } from "./library/oss.js";
23
24
  import { RSEngine } from "./library/rsengine.js";
24
- export { AccessPolicy, AnyTypificationT, CstClass, CstStatus, CstType, DEFAULT_VALUE_TEXT, DiagnosticKind, EmptySetT, EvalStatus, FolderNode, FolderTree, Grammeme, Graph, LibraryItemType, LocationHead, LogicT, NodeType, OperationType, RSCalculator, RSDiagnosticCode, RSEngine, RSErrorCode, RSLangAnalyzer, ReferenceType, SubstitutionErrorType, TOKEN_ERROR, TUPLE_ID, TokenID, TypeClass, TypeID, TypificationGraph, ValueClass, applyAsciiTypeSubstitutions, applyHash_fnv1a, assignSchemaDiagnostics, buildTree, detectDependencyCycleDiagnostics, findByUid, flattenAst, formatDependencyCycle, formatEvalCallStack, generateStub, getNodeIndices, getNodeText, hasCstDiagnostic, makeTypePath, makeValuePath, modelStatusCstDiagnostic, parseTypeText, printAst, printTree, printValue, readErrorAnnotation, readTypeAnnotation, parser as rslangParser, supportedGrammemes, visitAstDFS };
25
+ export { AccessPolicy, AnyTypificationT, CstClass, CstStatus, CstType, DEFAULT_VALUE_TEXT, DELETED_ALIAS, DiagnosticKind, EmptySetT, EvalStatus, FolderNode, FolderTree, Grammeme, Graph, LibraryItemType, LocationHead, LogicT, NodeType, OperationType, RSCalculator, RSDiagnosticCode, RSEngine, RSErrorCode, RSLangAnalyzer, ReferenceType, SubstitutionErrorType, TOKEN_ERROR, TUPLE_ID, TokenID, TypeClass, TypeID, TypificationGraph, ValueClass, applyAsciiTypeSubstitutions, applyHash_fnv1a, assignSchemaDiagnostics, buildTree, detectDependencyCycleDiagnostics, findByUid, flattenAst, formatDependencyCycle, formatEvalCallStack, generateStub, getNodeIndices, getNodeText, hasCstDiagnostic, makeTypePath, makeValuePath, modelStatusCstDiagnostic, parseTypeText, printAst, printTree, printValue, readErrorAnnotation, readTypeAnnotation, parser as rslangParser, supportedGrammemes, visitAstDFS };
@@ -1,2 +1,2 @@
1
- import { a as detectDependencyCycleDiagnostics, c as modelStatusCstDiagnostic, i as assignSchemaDiagnostics, n as DiagnosticKind, o as formatDependencyCycle, r as RSDiagnosticCode, s as hasCstDiagnostic, t as CstDiagnostic } from "../diagnostics-D4_B7rt2.js";
1
+ import { a as detectDependencyCycleDiagnostics, c as modelStatusCstDiagnostic, i as assignSchemaDiagnostics, n as DiagnosticKind, o as formatDependencyCycle, r as RSDiagnosticCode, s as hasCstDiagnostic, t as CstDiagnostic } from "../diagnostics-DC6QECex.js";
2
2
  export { CstDiagnostic, DiagnosticKind, RSDiagnosticCode, assignSchemaDiagnostics, detectDependencyCycleDiagnostics, formatDependencyCycle, hasCstDiagnostic, modelStatusCstDiagnostic };
@@ -1,2 +1 @@
1
- import { a as formatDependencyCycle, i as detectDependencyCycleDiagnostics, n as RSDiagnosticCode, o as hasCstDiagnostic, r as assignSchemaDiagnostics, s as modelStatusCstDiagnostic, t as DiagnosticKind } from "../diagnostics-D_4TpAH4.js";
2
- export { DiagnosticKind, RSDiagnosticCode, assignSchemaDiagnostics, detectDependencyCycleDiagnostics, formatDependencyCycle, hasCstDiagnostic, modelStatusCstDiagnostic };
1
+ export { t as DiagnosticKind, n as RSDiagnosticCode, r as assignSchemaDiagnostics, i as detectDependencyCycleDiagnostics, a as formatDependencyCycle, o as hasCstDiagnostic, s as modelStatusCstDiagnostic } from "../diagnostics-D_4TpAH4.js";
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * Represents single node of a {@link FolderTree}.
7
7
  */
8
- declare class FolderNode {
8
+ export declare class FolderNode {
9
9
  rank: number;
10
10
  text: string;
11
11
  children: Map<string, FolderNode>;
@@ -20,7 +20,7 @@ declare class FolderNode {
20
20
  getPath(): string;
21
21
  }
22
22
  /** Represents a FolderTree. */
23
- declare class FolderTree {
23
+ export declare class FolderTree {
24
24
  roots: Map<string, FolderNode>;
25
25
  constructor(arr?: string[]);
26
26
  at(path: string): FolderNode | undefined;
@@ -30,5 +30,4 @@ declare class FolderTree {
30
30
  private addNode;
31
31
  }
32
32
  //#endregion
33
- export { FolderNode, FolderTree };
34
33
  //# sourceMappingURL=folder-tree.d.ts.map
@@ -1,10 +1,10 @@
1
1
  import { a as LibraryItemType, i as LibraryItemReference, n as CurrentVersion, o as LocationHead, r as LibraryItem, s as VersionInfo, t as AccessPolicy } from "../library-CYun28Xz.js";
2
- import { C as RSFormStats, E as TypeInfo, S as RSForm, T as TermForm, _ as Attribution, a as detectDependencyCycleDiagnostics, b as CstStatus, c as modelStatusCstDiagnostic, d as DEFAULT_VALUE_TEXT, f as EvalStatus, g as ArgumentValue, i as assignSchemaDiagnostics, l as BasicBinding, m as RSModelStats, n as DiagnosticKind, o as formatDependencyCycle, p as RSModel, r as RSDiagnosticCode, s as hasCstDiagnostic, t as CstDiagnostic, u as BasicsContext, v as Constituenta, w as Substitution, x as CstType, y as CstClass } from "../diagnostics-D4_B7rt2.js";
2
+ import { C as RSFormStats, E as TypeInfo, S as RSForm, T as TermForm, _ as Attribution, a as detectDependencyCycleDiagnostics, b as CstStatus, c as modelStatusCstDiagnostic, d as DEFAULT_VALUE_TEXT, f as EvalStatus, g as ArgumentValue, i as assignSchemaDiagnostics, l as BasicBinding, m as RSModelStats, n as DiagnosticKind, o as formatDependencyCycle, p as RSModel, r as RSDiagnosticCode, s as hasCstDiagnostic, t as CstDiagnostic, u as BasicsContext, v as Constituenta, w as Substitution, x as CstType, y as CstClass } from "../diagnostics-DC6QECex.js";
3
3
  import { FolderNode, FolderTree } from "./folder-tree.js";
4
4
  import { n as OssLayout, r as Position2D } from "../oss-layout-3glgAqfn.js";
5
5
  import { Block, CstSubstituteInfo, NodeType, Operation, OperationInput, OperationSchema, OperationSchemaStats, OperationSynthesis, OperationType, OssItem, SubstitutionErrorDescription, SubstitutionErrorType } from "./oss.js";
6
6
  import { RSEngine } from "./rsengine.js";
7
- import { mt as TemplateSourceFields } from "../index-DzvllU3P.js";
7
+ import { mt as TemplateSourceFields } from "../index-CEOeehqz.js";
8
8
  //#region src/library/template-instantiation.d.ts
9
9
  /**
10
10
  * Payload for one {@link Constituenta} to create when instantiating an expression-bank template.
@@ -73,13 +73,13 @@ interface TemplateInstantiationInput {
73
73
  * and predicate-functions from `templateItems`, propagates argument bindings into nested calls,
74
74
  * topologically orders dependencies, and remaps bank aliases to freshly generated target aliases.
75
75
  */
76
- declare function planTemplateInstantiation(input: TemplateInstantiationInput): TemplateInstantiationPlan;
76
+ export declare function planTemplateInstantiation(input: TemplateInstantiationInput): TemplateInstantiationPlan;
77
77
  /**
78
78
  * Stateful planner for {@link planTemplateInstantiation}.
79
79
  *
80
80
  * Prefer the function wrapper unless you need to hold or reuse planner state between calls.
81
81
  */
82
- declare class TemplateInstantiationPlanner {
82
+ export declare class TemplateInstantiationPlanner {
83
83
  private readonly targetSchema;
84
84
  private readonly prototype;
85
85
  private readonly userArgs;
@@ -99,5 +99,5 @@ declare class TemplateInstantiationPlanner {
99
99
  private collectDependencies;
100
100
  }
101
101
  //#endregion
102
- export { AccessPolicy, type ArgumentValue, type Attribution, type BasicBinding, type BasicsContext, type Block, type Constituenta, CstClass, type CstDiagnostic, CstStatus, type CstSubstituteInfo, CstType, type CurrentVersion, DEFAULT_VALUE_TEXT, DiagnosticKind, EvalStatus, FolderNode, FolderTree, type LibraryItem, type LibraryItemReference, LibraryItemType, LocationHead, NodeType, type Operation, type OperationInput, type OperationSchema, type OperationSchemaStats, type OperationSynthesis, OperationType, type OssItem, type OssLayout, type Position2D, RSDiagnosticCode, RSEngine, type RSForm, type RSFormStats, type RSModel, type RSModelStats, type Substitution, type SubstitutionErrorDescription, SubstitutionErrorType, type TemplateBindingConflict, type TemplateInstantiationInput, type TemplateInstantiationItem, type TemplateInstantiationPlan, TemplateInstantiationPlanner, type TermForm, type TypeInfo, type VersionInfo, assignSchemaDiagnostics, detectDependencyCycleDiagnostics, formatDependencyCycle, hasCstDiagnostic, modelStatusCstDiagnostic, planTemplateInstantiation };
102
+ export { AccessPolicy, type ArgumentValue, type Attribution, type BasicBinding, type BasicsContext, type Block, type Constituenta, CstClass, type CstDiagnostic, CstStatus, type CstSubstituteInfo, CstType, type CurrentVersion, DEFAULT_VALUE_TEXT, DiagnosticKind, EvalStatus, FolderNode, FolderTree, type LibraryItem, type LibraryItemReference, LibraryItemType, LocationHead, NodeType, type Operation, type OperationInput, type OperationSchema, type OperationSchemaStats, type OperationSynthesis, OperationType, type OssItem, type OssLayout, type Position2D, RSDiagnosticCode, RSEngine, type RSForm, type RSFormStats, type RSModel, type RSModelStats, type Substitution, type SubstitutionErrorDescription, SubstitutionErrorType, type TemplateBindingConflict, type TemplateInstantiationInput, type TemplateInstantiationItem, type TemplateInstantiationPlan, type TermForm, type TypeInfo, type VersionInfo, assignSchemaDiagnostics, detectDependencyCycleDiagnostics, formatDependencyCycle, hasCstDiagnostic, modelStatusCstDiagnostic };
103
103
  //# sourceMappingURL=index.d.ts.map
@@ -1,8 +1,7 @@
1
1
  //#region src/library/library-api.d.ts
2
2
  /** Combining head and body into location. */
3
- declare function combineLocation(head: string, body?: string): string;
3
+ export declare function combineLocation(head: string, body?: string): string;
4
4
  /** Validation location against regexp. */
5
- declare function validateLocationFormat(location: string): boolean;
5
+ export declare function validateLocationFormat(location: string): boolean;
6
6
  //#endregion
7
- export { combineLocation, validateLocationFormat };
8
7
  //# sourceMappingURL=library-api.d.ts.map
@@ -1,12 +1,12 @@
1
1
  import { r as LibraryItem } from "../library-CYun28Xz.js";
2
- import { S as RSForm, v as Constituenta, w as Substitution } from "../diagnostics-D4_B7rt2.js";
2
+ import { S as RSForm, v as Constituenta, w as Substitution } from "../diagnostics-DC6QECex.js";
3
3
  import { NodeType, OperationSchema, SubstitutionErrorDescription } from "./oss.js";
4
4
  //#region src/library/oss-api.d.ts
5
- declare function constructNodeID(type: NodeType, itemID: number): string;
5
+ export declare function constructNodeID(type: NodeType, itemID: number): string;
6
6
  /** Sorts library items relevant for the specified {@link OperationSchema}. */
7
- declare function sortItemsForOSS(oss: OperationSchema, items: readonly LibraryItem[]): LibraryItem[];
7
+ export declare function sortItemsForOSS(oss: OperationSchema, items: readonly LibraryItem[]): LibraryItem[];
8
8
  /** Validator for Substitution table. */
9
- declare class SubstitutionValidator {
9
+ export declare class SubstitutionValidator {
10
10
  errors: SubstitutionErrorDescription[];
11
11
  suggestions: Substitution[];
12
12
  private schemas;
@@ -38,7 +38,6 @@ declare class SubstitutionValidator {
38
38
  private reportError;
39
39
  }
40
40
  /** Filter relocate candidates from gives schema. */
41
- declare function getRelocateCandidates(source: number, destination: number, schema: RSForm, oss: OperationSchema): Constituenta[];
41
+ export declare function getRelocateCandidates(source: number, destination: number, schema: RSForm, oss: OperationSchema): Constituenta[];
42
42
  //#endregion
43
- export { SubstitutionValidator, constructNodeID, getRelocateCandidates, sortItemsForOSS };
44
43
  //# sourceMappingURL=oss-api.d.ts.map
@@ -1,11 +1,11 @@
1
1
  import { i as Rectangle2D, n as OssLayout } from "../oss-layout-3glgAqfn.js";
2
2
  import { OperationSchema } from "./oss.js";
3
3
  //#region src/library/oss-layout-api.d.ts
4
- declare const GRID_SIZE = 10;
5
- declare const OPERATION_NODE_WIDTH = 150;
6
- declare const OPERATION_NODE_HEIGHT = 40;
4
+ export declare const GRID_SIZE = 10;
5
+ export declare const OPERATION_NODE_WIDTH = 150;
6
+ export declare const OPERATION_NODE_HEIGHT = 40;
7
7
  /** Layout manipulations for {@link OperationSchema}. */
8
- declare class LayoutManager {
8
+ export declare class LayoutManager {
9
9
  oss: OperationSchema;
10
10
  layout: OssLayout;
11
11
  constructor(oss: OperationSchema, layout?: OssLayout);
@@ -31,5 +31,4 @@ declare class LayoutManager {
31
31
  private calculateOffsetForParentChange;
32
32
  }
33
33
  //#endregion
34
- export { GRID_SIZE, LayoutManager, OPERATION_NODE_HEIGHT, OPERATION_NODE_WIDTH };
35
34
  //# sourceMappingURL=oss-layout-api.d.ts.map
@@ -4,25 +4,25 @@ import { r as LibraryItem } from "../library-CYun28Xz.js";
4
4
  import { n as OssLayout, t as NodePosition } from "../oss-layout-3glgAqfn.js";
5
5
  //#region src/library/oss.d.ts
6
6
  /** Represents OSS node type. */
7
- declare const NodeType: {
7
+ export declare const NodeType: {
8
8
  readonly OPERATION: 1;
9
9
  readonly BLOCK: 2;
10
10
  };
11
- type NodeType = (typeof NodeType)[keyof typeof NodeType];
11
+ export type NodeType = (typeof NodeType)[keyof typeof NodeType];
12
12
  /** Represents OSS graph node. */
13
13
  interface OssNode extends NodePosition {
14
14
  nodeType: NodeType;
15
15
  parent: number | null;
16
16
  }
17
17
  /** Represents {@link Operation} type. */
18
- declare const OperationType: {
18
+ export declare const OperationType: {
19
19
  readonly INPUT: "input";
20
20
  readonly SYNTHESIS: "synthesis";
21
21
  readonly REPLICA: "replica";
22
22
  };
23
- type OperationType = (typeof OperationType)[keyof typeof OperationType];
23
+ export type OperationType = (typeof OperationType)[keyof typeof OperationType];
24
24
  /** Represents {@link Substitution} extended data. */
25
- interface CstSubstituteInfo {
25
+ export interface CstSubstituteInfo {
26
26
  original: number;
27
27
  substitution: number;
28
28
  operation: number;
@@ -45,7 +45,7 @@ interface OperationBase extends OssNode {
45
45
  has_additions: boolean;
46
46
  }
47
47
  /** Represents Input Operation. */
48
- interface OperationInput extends OperationBase {
48
+ export interface OperationInput extends OperationBase {
49
49
  operation_type: typeof OperationType.INPUT;
50
50
  is_import: boolean;
51
51
  }
@@ -55,16 +55,16 @@ interface OperationReplica extends OperationBase {
55
55
  target: number;
56
56
  }
57
57
  /** Represents Synthesis Operation. */
58
- interface OperationSynthesis extends OperationBase {
58
+ export interface OperationSynthesis extends OperationBase {
59
59
  operation_type: typeof OperationType.SYNTHESIS;
60
60
  is_consolidation: boolean;
61
61
  substitutions: CstSubstituteInfo[];
62
62
  arguments: number[];
63
63
  }
64
64
  /** Represents Operation. */
65
- type Operation = OperationInput | OperationReplica | OperationSynthesis;
65
+ export type Operation = OperationInput | OperationReplica | OperationSynthesis;
66
66
  /** Represents Block. */
67
- interface Block extends OssNode {
67
+ export interface Block extends OssNode {
68
68
  id: number;
69
69
  oss: number;
70
70
  title: string;
@@ -73,9 +73,9 @@ interface Block extends OssNode {
73
73
  nodeType: typeof NodeType.BLOCK;
74
74
  }
75
75
  /** Represents item of OperationSchema. */
76
- type OssItem = Operation | Block;
76
+ export type OssItem = Operation | Block;
77
77
  /** Represents {@link OperationSchema} statistics. */
78
- interface OperationSchemaStats {
78
+ export interface OperationSchemaStats {
79
79
  count_all: number;
80
80
  count_inputs: number;
81
81
  count_synthesis: number;
@@ -85,7 +85,7 @@ interface OperationSchemaStats {
85
85
  count_references: number;
86
86
  }
87
87
  /** Represents OperationSchema. */
88
- interface OperationSchema extends LibraryItem {
88
+ export interface OperationSchema extends LibraryItem {
89
89
  editors: number[];
90
90
  operations: Operation[];
91
91
  blocks: Block[];
@@ -109,7 +109,7 @@ interface OperationSchema extends LibraryItem {
109
109
  itemByNodeID: Map<string, OssItem>;
110
110
  }
111
111
  /** Represents substitution error description (same code space as {@link RSDiagnosticCode}). */
112
- interface SubstitutionErrorDescription {
112
+ export interface SubstitutionErrorDescription {
113
113
  code: SubstitutionErrorType;
114
114
  params: string[];
115
115
  }
@@ -117,7 +117,7 @@ interface SubstitutionErrorDescription {
117
117
  * Substitution-table error codes — aliases into {@link RSDiagnosticCode}.
118
118
  * Logical definition cycles reuse {@link RSDiagnosticCode.schemaDependencyCycle}.
119
119
  */
120
- declare const SubstitutionErrorType: {
120
+ export declare const SubstitutionErrorType: {
121
121
  readonly invalidIDs: 35104;
122
122
  readonly incorrectCst: 35105;
123
123
  readonly invalidClasses: 35106;
@@ -133,7 +133,7 @@ declare const SubstitutionErrorType: {
133
133
  /** Same code as constituent schema dependency cycle. */
134
134
  readonly definitionCycle: 35078;
135
135
  };
136
- type SubstitutionErrorType = (typeof SubstitutionErrorType)[keyof typeof SubstitutionErrorType];
136
+ export type SubstitutionErrorType = (typeof SubstitutionErrorType)[keyof typeof SubstitutionErrorType];
137
137
  //#endregion
138
- export { Block, CstSubstituteInfo, NodeType, Operation, OperationInput, OperationSchema, OperationSchemaStats, OperationSynthesis, OperationType, OssItem, SubstitutionErrorDescription, SubstitutionErrorType };
138
+ export {};
139
139
  //# sourceMappingURL=oss.d.ts.map
@@ -1,12 +1,12 @@
1
1
  import { t as AstNode } from "../ast-D-D6Rq3T.js";
2
2
  import "../index-D5RahF1K.js";
3
3
  import { l as Value } from "../value-XpJOVzMP.js";
4
- import { n as CalculatorResult, r as RSCalculator, t as CalculatorEvaluateOptions } from "../calculator-B-1p712X.js";
5
- import "../index-D-w-bgei.js";
6
- import { S as RSForm, f as EvalStatus, l as BasicBinding, p as RSModel, u as BasicsContext, x as CstType } from "../diagnostics-D4_B7rt2.js";
4
+ import { n as CalculatorResult, r as RSCalculator, t as CalculatorEvaluateOptions } from "../calculator-SVf1trzN.js";
5
+ import "../index-CEUOBGLn.js";
6
+ import { S as RSForm, f as EvalStatus, l as BasicBinding, p as RSModel, u as BasicsContext, x as CstType } from "../diagnostics-DC6QECex.js";
7
7
  //#region src/library/rsengine.d.ts
8
8
  /** Services for {@link RSEngine}. */
9
- interface RSEngineServices {
9
+ export interface RSEngineServices {
10
10
  setCstValue: (args: {
11
11
  itemID: number;
12
12
  data: {
@@ -23,12 +23,12 @@ interface RSEngineServices {
23
23
  }) => Promise<unknown>;
24
24
  }
25
25
  /** Notifications for {@link RSEngine}. */
26
- interface RSEngineNotifications {
26
+ export interface RSEngineNotifications {
27
27
  onInvalidSetValue: () => void;
28
28
  onCalculationSuccess: (timeSpent: string) => void;
29
29
  }
30
30
  /** Calculation engine for {@link RSModel}. */
31
- declare class RSEngine {
31
+ export declare class RSEngine {
32
32
  modelID: number;
33
33
  schema: RSForm | null;
34
34
  data: RSModel | null;
@@ -105,5 +105,4 @@ declare class RSEngine {
105
105
  private recalculateInternal;
106
106
  }
107
107
  //#endregion
108
- export { RSEngine, RSEngineNotifications, RSEngineServices };
109
108
  //# sourceMappingURL=rsengine.d.ts.map