@endge/core 3.2.1 → 5.0.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 (150) hide show
  1. package/ReadMe.md +1 -1
  2. package/dist/core.cjs +488 -513
  3. package/dist/core.js +85221 -84928
  4. package/dist/domain/entities/endge/EndgeFederation.d.ts +8 -8
  5. package/dist/domain/entities/endge/EndgeFederationStorage.d.ts +5 -0
  6. package/dist/domain/entities/endge/EndgeModule.d.ts +1 -1
  7. package/dist/domain/entities/endge/EndgeSlotRegistry.d.ts +4 -4
  8. package/dist/domain/entities/endge/Subscribable.d.ts +20 -0
  9. package/dist/domain/entities/reflect/RAction.d.ts +1 -1
  10. package/dist/domain/entities/reflect/RAuthProfile.d.ts +1 -1
  11. package/dist/domain/entities/reflect/RComponent.d.ts +1 -1
  12. package/dist/domain/entities/reflect/RComponentBase.d.ts +2 -2
  13. package/dist/domain/entities/reflect/RComponentCore.d.ts +1 -1
  14. package/dist/domain/entities/reflect/RComponentSFC.d.ts +1 -1
  15. package/dist/domain/entities/reflect/RComponentTableColumn.d.ts +2 -2
  16. package/dist/domain/entities/reflect/RConverter.d.ts +1 -1
  17. package/dist/domain/entities/reflect/RFilter.d.ts +1 -1
  18. package/dist/domain/entities/reflect/RMock.d.ts +1 -1
  19. package/dist/domain/entities/reflect/RNavigation.d.ts +1 -1
  20. package/dist/domain/entities/reflect/RParameter.d.ts +1 -1
  21. package/dist/domain/entities/reflect/RQuery.d.ts +1 -1
  22. package/dist/domain/entities/runtime/ComponentSFCEventBoundary.d.ts +14 -14
  23. package/dist/domain/entities/runtime/RuntimeAppScope.d.ts +2 -2
  24. package/dist/domain/entities/runtime/RuntimeHostBase.d.ts +5 -5
  25. package/dist/domain/entities/runtime/RuntimeHostRegistry.d.ts +2 -2
  26. package/dist/domain/entities/runtime/RuntimeScopeRegistry.d.ts +1 -1
  27. package/dist/domain/entities/runtime/hosts/ComponentSFCRuntimeHost.d.ts +5 -5
  28. package/dist/domain/entities/runtime/hosts/CompositionRuntimeHost.d.ts +3 -3
  29. package/dist/domain/entities/runtime/hosts/FilterRuntimeHost.d.ts +1 -1
  30. package/dist/domain/entities/runtime/hosts/FilterViewRuntimeHost.d.ts +2 -2
  31. package/dist/domain/entities/runtime/hosts/StoreRuntimeHost.d.ts +1 -1
  32. package/dist/domain/types/auth/auth-profile.types.d.ts +5 -5
  33. package/dist/domain/types/component/sfc/ir.types.d.ts +2 -2
  34. package/dist/domain/types/component/sfc/metadata-visual.types.d.ts +1 -1
  35. package/dist/domain/types/component/sfc/ports-source.types.d.ts +2 -2
  36. package/dist/domain/types/component/sfc/ports.types.d.ts +1 -1
  37. package/dist/domain/types/component/sfc/props-visual.types.d.ts +1 -1
  38. package/dist/domain/types/component/sfc/tag-input-contract.types.d.ts +1 -1
  39. package/dist/domain/types/component/sfc/visual-projection.types.d.ts +3 -3
  40. package/dist/domain/types/computation/computation-program.types.d.ts +1 -1
  41. package/dist/domain/types/computation/computation-runtime.types.d.ts +9 -9
  42. package/dist/domain/types/computation/computation-source.types.d.ts +1 -1
  43. package/dist/domain/types/configuration/configuration.type.d.ts +1 -1
  44. package/dist/domain/types/diagnostics/diagnostics-adapter.type.d.ts +6 -6
  45. package/dist/domain/types/diagnostics/diagnostics.types.d.ts +11 -11
  46. package/dist/domain/types/document/document.types.d.ts +15 -15
  47. package/dist/domain/types/document/domain-export.type.d.ts +21 -21
  48. package/dist/domain/types/document/domain-provider.type.d.ts +8 -8
  49. package/dist/domain/types/document/workspace.types.d.ts +1 -1
  50. package/dist/domain/types/kernel/bootstrap.types.d.ts +2 -2
  51. package/dist/domain/types/kernel/endge-modules.types.d.ts +1 -1
  52. package/dist/domain/types/kernel/events.types.d.ts +4 -4
  53. package/dist/domain/types/kernel/federation.types.d.ts +1 -1
  54. package/dist/domain/types/kernel/forge.types.d.ts +5 -5
  55. package/dist/domain/types/program/action-program.types.d.ts +1 -1
  56. package/dist/domain/types/program/program.types.d.ts +5 -5
  57. package/dist/domain/types/runtime/context-persistence.types.d.ts +9 -9
  58. package/dist/domain/types/runtime/runtime-entity-map.types.d.ts +10 -10
  59. package/dist/domain/types/runtime/runtime-host.types.d.ts +11 -11
  60. package/dist/domain/types/runtime/runtime-project-session.types.d.ts +2 -2
  61. package/dist/domain/types/runtime/runtime-registry.types.d.ts +12 -12
  62. package/dist/domain/types/runtime/runtime.types.d.ts +4 -4
  63. package/dist/domain/types/runtime/table-binding.types.d.ts +2 -2
  64. package/dist/domain/types/source/composition-source.types.d.ts +12 -10
  65. package/dist/domain/types/source/data-view-source.types.d.ts +1 -1
  66. package/dist/domain/types/source/filter-source.types.d.ts +1 -1
  67. package/dist/domain/types/source/query-source.types.d.ts +2 -2
  68. package/dist/domain/types/source/store-source.types.d.ts +1 -1
  69. package/dist/domain/types/source/vocab-source.types.d.ts +1 -1
  70. package/dist/main.d.ts +11 -9
  71. package/dist/model/{services/auth/OidcBrowserSession_Service.d.ts → adapters/auth/OidcBrowserSession_Adapter.d.ts} +3 -1
  72. package/dist/{domain/entities/endge → model/adapters/http}/EndgeApi.d.ts +9 -3
  73. package/dist/model/{services/query/QueryExecutor.d.ts → adapters/query/QueryExecutor_Adapter.d.ts} +14 -3
  74. package/dist/model/config/ui-composition.config.d.ts +12 -12
  75. package/dist/model/helpers/raph-phases/endge-runtime-boundary.d.ts +1 -1
  76. package/dist/model/helpers/raph-phases/runtime-boundary-update-phase.d.ts +1 -1
  77. package/dist/model/kernel/endge.d.ts +22 -22
  78. package/dist/model/modules/context/endge-configuration-schema.d.ts +1 -1
  79. package/dist/model/modules/context/endge-context.d.ts +7 -13
  80. package/dist/model/modules/context/endge-vars.d.ts +6 -6
  81. package/dist/model/modules/context/endge-workspace.d.ts +1 -1
  82. package/dist/model/modules/context/persistence/RuntimeStateController.d.ts +2 -2
  83. package/dist/model/modules/context/persistence/adapters/LocalStorageContextAdapter.d.ts +2 -0
  84. package/dist/model/modules/diagnostics/endge-diagnostics.d.ts +36 -14
  85. package/dist/model/modules/diagnostics/endge-problems.d.ts +1 -1
  86. package/dist/model/modules/diagnostics/endge-telemetry.d.ts +3 -3
  87. package/dist/model/modules/domain/endge-domain-repository.d.ts +8 -8
  88. package/dist/model/modules/domain/endge-domain.d.ts +12 -12
  89. package/dist/model/modules/domain/endge-types.d.ts +3 -3
  90. package/dist/model/modules/domain/endge-vocabs.d.ts +29 -29
  91. package/dist/model/modules/events/endge-events.d.ts +1 -1
  92. package/dist/model/modules/program/endge-compiler.d.ts +17 -17
  93. package/dist/model/modules/program/endge-program.d.ts +4 -4
  94. package/dist/model/modules/program/endge-source.d.ts +1 -1
  95. package/dist/model/modules/runtime/core/endge-actions.d.ts +4 -4
  96. package/dist/model/modules/runtime/core/endge-runtime.d.ts +18 -18
  97. package/dist/model/modules/runtime/execution/action/action-program-executor.d.ts +8 -8
  98. package/dist/model/modules/runtime/execution/computation/ComputationGraphExecutor.d.ts +8 -8
  99. package/dist/model/modules/runtime/execution/computation/ComputationResource.d.ts +5 -5
  100. package/dist/model/modules/runtime/execution/computation/ComputationResourceRegistry.d.ts +3 -3
  101. package/dist/model/modules/runtime/execution/computation/EndgeComputation.d.ts +19 -19
  102. package/dist/model/modules/runtime/execution/endge-composition.d.ts +2 -2
  103. package/dist/model/modules/runtime/execution/endge-computation.d.ts +1 -1
  104. package/dist/model/modules/runtime/execution/endge-converters.d.ts +7 -7
  105. package/dist/model/modules/runtime/execution/endge-data-view.d.ts +2 -2
  106. package/dist/model/modules/runtime/execution/endge-query.d.ts +4 -7
  107. package/dist/model/modules/runtime/operation/endge-operations.d.ts +6 -6
  108. package/dist/model/modules/runtime/operation/operation-history.d.ts +10 -10
  109. package/dist/model/modules/security/endge-auth.d.ts +4 -4
  110. package/dist/model/modules/ui/endge-styles.d.ts +1 -1
  111. package/dist/model/modules/ui/endge-ui-registry.d.ts +2 -2
  112. package/dist/model/modules/ui/endge-ui.d.ts +11 -11
  113. package/dist/model/modules/ui/registry/UIAdapterRegistry.d.ts +1 -1
  114. package/dist/model/services/compiler/component-sfc/component-sfc-compile.d.ts +4 -4
  115. package/dist/model/services/compiler/component-sfc/component-sfc-dependencies.d.ts +1 -1
  116. package/dist/model/services/compiler/component-sfc/component-sfc-expression.d.ts +1 -1
  117. package/dist/model/services/compiler/component-sfc/component-sfc-forward.d.ts +1 -1
  118. package/dist/model/services/compiler/component-sfc/component-sfc-parse.d.ts +1 -1
  119. package/dist/model/services/compiler/component-sfc/component-sfc-ports.d.ts +2 -2
  120. package/dist/model/services/compiler/component-sfc/component-sfc-script.d.ts +1 -1
  121. package/dist/model/services/compiler/component-sfc/component-sfc-table-menu.d.ts +1 -1
  122. package/dist/model/services/compiler/component-sfc/component-sfc-table-visibility.d.ts +1 -1
  123. package/dist/model/services/compiler/component-sfc/component-sfc-template.d.ts +2 -2
  124. package/dist/model/services/compiler/type/type-program-validation.d.ts +1 -1
  125. package/dist/model/services/runtime/strategies/ActionRuntimeStrategy.d.ts +1 -1
  126. package/dist/model/services/runtime/strategies/ComponentSFCRuntimeStrategy.d.ts +1 -1
  127. package/dist/model/services/runtime/strategies/CompositionRuntimeStrategy.d.ts +1 -1
  128. package/dist/model/services/runtime/strategies/FilterRuntimeStrategy.d.ts +1 -1
  129. package/dist/model/services/runtime/strategies/PageRuntimeStrategy.d.ts +1 -1
  130. package/dist/model/services/runtime/strategies/ProjectRuntimeStrategy.d.ts +1 -1
  131. package/dist/model/services/runtime/strategies/QueryRuntimeStrategy.d.ts +1 -1
  132. package/dist/model/services/runtime/strategies/StoreRuntimeStrategy.d.ts +1 -1
  133. package/dist/model/services/runtime/strategies/StreamRuntimeStrategy.d.ts +1 -1
  134. package/dist/model/services/source-engine/compilers/source-field-compile.d.ts +1 -1
  135. package/dist/model/services/source-engine/compilers/type-source-compile.d.ts +1 -1
  136. package/dist/model/services/source-engine/component-sfc/component-sfc-props-source-patch.d.ts +1 -1
  137. package/dist/model/services/source-engine/strategies/VocabSourcePatchStrategy.d.ts +1 -1
  138. package/dist/model/services/source-engine/vocab-source-patch.d.ts +1 -1
  139. package/dist/model/services/tooltip/endge-tooltip-markdown.d.ts +1 -1
  140. package/dist/test/domain/entities/endge/subscribable.test.d.ts +1 -0
  141. package/dist/test/model/modules/diagnostics/endge-diagnostics-submodules.test.d.ts +1 -0
  142. package/dist/tools/component-sfc-edit-trigger.d.ts +1 -1
  143. package/package.json +20 -26
  144. /package/dist/domain/types/{ui → presentation}/context-menu.types.d.ts +0 -0
  145. /package/dist/domain/types/{ui → presentation}/filter-view.type.d.ts +0 -0
  146. /package/dist/domain/types/{ui → presentation}/jsx.types.d.ts +0 -0
  147. /package/dist/domain/types/{ui → presentation}/tooltip-markdown.types.d.ts +0 -0
  148. /package/dist/domain/types/{ui → presentation}/ui-composition.types.d.ts +0 -0
  149. /package/dist/domain/types/{ui → presentation}/ui-render-adapter.type.d.ts +0 -0
  150. /package/dist/domain/types/{ui → presentation}/ui.types.d.ts +0 -0
@@ -1,25 +1,24 @@
1
1
  import { RVersion } from '../../../domain/entities/reflect/RVersion';
2
2
  import { RComponent } from '../../../domain/types/component/component.types';
3
- import { EndgeBootContext } from '../../../domain/types/kernel/bootstrap.types';
4
- import { EndgeLiveDomainDocument, EndgeLiveDomainSnapshot } from '../../../domain/types/document/domain-snapshot.type';
5
3
  import { EndgeDomainBundle, EndgeDomainPlain } from '../../../domain/types/document/domain-export.type';
4
+ import { EndgeLiveDomainDocument, EndgeLiveDomainSnapshot } from '../../../domain/types/document/domain-snapshot.type';
6
5
  import { FilterFieldSchema } from '../../../domain/types/document/query.types';
6
+ import { EndgeBootContext } from '../../../domain/types/kernel/bootstrap.types';
7
+ import { EndgeModule } from '../../../domain/entities/endge/EndgeModule';
7
8
  import { RAction } from '../../../domain/entities/reflect/RAction';
8
9
  import { RAuthProfile } from '../../../domain/entities/reflect/RAuthProfile';
9
- import { EndgeModule } from '../../../domain/entities/endge/EndgeModule';
10
10
  import { RComponentSFC } from '../../../domain/entities/reflect/RComponentSFC';
11
- import { RConverter } from '../../../domain/entities/reflect/RConverter';
12
- import { RDataView } from '../../../domain/entities/reflect/RDataView';
13
11
  import { RComposition } from '../../../domain/entities/reflect/RComposition';
14
- import { RStore } from '../../../domain/entities/reflect/RStore';
15
- import { RStream } from '../../../domain/entities/reflect/RStream';
16
- import { RUpdate } from '../../../domain/entities/reflect/RUpdate';
17
- import { RMock } from '../../../domain/entities/reflect/RMock';
18
12
  import { RComputation } from '../../../domain/entities/reflect/RComputation';
13
+ import { RConfiguration } from '../../../domain/entities/reflect/RConfiguration';
14
+ import { RConverter } from '../../../domain/entities/reflect/RConverter';
15
+ import { RDataView } from '../../../domain/entities/reflect/RDataView';
19
16
  import { REnvironment } from '../../../domain/entities/reflect/REnvironment';
20
17
  import { RFilter } from '../../../domain/entities/reflect/RFilter';
21
18
  import { RFolder } from '../../../domain/entities/reflect/RFolder';
19
+ import { RI18nBundle } from '../../../domain/entities/reflect/RI18nBundle';
22
20
  import { RIntegration } from '../../../domain/entities/reflect/RIntegration';
21
+ import { RMock } from '../../../domain/entities/reflect/RMock';
23
22
  import { RNavigation } from '../../../domain/entities/reflect/RNavigation';
24
23
  import { RPage } from '../../../domain/entities/reflect/RPage';
25
24
  import { RPageTemplate } from '../../../domain/entities/reflect/RPageTemplate';
@@ -27,12 +26,13 @@ import { RParameter } from '../../../domain/entities/reflect/RParameter';
27
26
  import { RPolicy } from '../../../domain/entities/reflect/RPolicy';
28
27
  import { RProject } from '../../../domain/entities/reflect/RProject';
29
28
  import { RQuery } from '../../../domain/entities/reflect/RQuery';
29
+ import { RStore } from '../../../domain/entities/reflect/RStore';
30
+ import { RStream } from '../../../domain/entities/reflect/RStream';
30
31
  import { RStyle } from '../../../domain/entities/reflect/RStyle';
31
- import { RConfiguration } from '../../../domain/entities/reflect/RConfiguration';
32
32
  import { RTenant } from '../../../domain/entities/reflect/RTenant';
33
33
  import { RType } from '../../../domain/entities/reflect/RType';
34
+ import { RUpdate } from '../../../domain/entities/reflect/RUpdate';
34
35
  import { RVocabs } from '../../../domain/entities/reflect/RVocabs';
35
- import { RI18nBundle } from '../../../domain/entities/reflect/RI18nBundle';
36
36
  import { ResolvedEntityIndex } from './resolved/resolved-entity-index';
37
37
  /** Материализует только активные документы; tombstones остаются в repository server state. */
38
38
  export declare function normalizeSnapshotDocuments(documents: readonly EndgeLiveDomainDocument[], folderIds: ReadonlyMap<string, string>): Record<string, unknown>[];
@@ -1259,7 +1259,7 @@ export declare class EndgeDomain extends EndgeModule {
1259
1259
  * Нормализует блоки областей страницы: из формата Payload (entity: { relationTo, value }) в entityType/entityIdentity.
1260
1260
  * Если блок уже имеет entityType/entityIdentity (после normalizePage в exportAll), не перезаписываем их.
1261
1261
  */
1262
- private static normalizePageBlocksFromPayload;
1262
+ private static _normalizePageBlocksFromPayload;
1263
1263
  /**
1264
1264
  * Парсит JSON в объект всех сущностей без добавления в домен.
1265
1265
  */
@@ -1,12 +1,12 @@
1
- import { RType } from '../../../domain/entities/reflect/RType';
2
1
  import { EndgeModule } from '../../../domain/entities/endge/EndgeModule';
2
+ import { RType } from '../../../domain/entities/reflect/RType';
3
3
  /** Effective Type Registry: code-owned built-ins plus persisted user Types. */
4
4
  export declare class EndgeTypes extends EndgeModule {
5
- private readonly builtins;
5
+ private readonly _builtins;
6
6
  constructor();
7
7
  listBuiltins(): RType[];
8
8
  listResolved(): RType[];
9
9
  getCodeDefinition(identity: string): RType | null;
10
10
  getDefinition(identity: string): RType | null;
11
- private createBuiltin;
11
+ private _createBuiltin;
12
12
  }
@@ -1,5 +1,5 @@
1
- import { EndgeModule } from '../../../domain/entities/endge/EndgeModule';
2
1
  import { VocabCacheOperationResult, VocabLoadPolicy, VocabReference } from '../../../domain/types/runtime/vocab-cache.types';
2
+ import { EndgeModule } from '../../../domain/entities/endge/EndgeModule';
3
3
  export interface VocabAcquireOptions {
4
4
  dataMode?: 'live' | 'mock';
5
5
  }
@@ -11,13 +11,13 @@ export declare class EndgeVocabs extends EndgeModule {
11
11
  * slug -> namespace
12
12
  * Можно оставить для getNamespaceValues (чтобы понимать какие slugs в пространстве)
13
13
  */
14
- private index;
15
- private byIdCache;
16
- private readonly loadedIdentities;
17
- private readonly loadedAtByIdentity;
18
- private readonly loadedModeByIdentity;
19
- private readonly inFlight;
20
- private readonly cacheVersions;
14
+ private _index;
15
+ private _byIdCache;
16
+ private readonly _loadedIdentities;
17
+ private readonly _loadedAtByIdentity;
18
+ private readonly _loadedModeByIdentity;
19
+ private readonly _inFlight;
20
+ private readonly _cacheVersions;
21
21
  private _loadingRequests;
22
22
  loading: boolean;
23
23
  /**
@@ -99,51 +99,51 @@ export declare class EndgeVocabs extends EndgeModule {
99
99
  throwOnError?: boolean;
100
100
  }): Promise<unknown>;
101
101
  /** Применяет pipeline source-outputs и проверяет обязательный массив items. */
102
- private applyOutputs;
102
+ private _applyOutputs;
103
103
  /** Читает explicit Mock JSON; отсутствие ссылки штатно означает пустой Vocab. */
104
- private resolveMockValue;
104
+ private _resolveMockValue;
105
105
  /**
106
106
  * Нормализует Vocab Id.
107
107
  */
108
- private normalizeVocabId;
109
- private normalizeReferences;
110
- private requireVocabConfig;
111
- private loadShared;
112
- private bumpCacheVersion;
113
- private normalizePolicy;
114
- private isFresh;
115
- private markLoaded;
108
+ private _normalizeVocabId;
109
+ private _normalizeReferences;
110
+ private _requireVocabConfig;
111
+ private _loadShared;
112
+ private _bumpCacheVersion;
113
+ private _normalizePolicy;
114
+ private _isFresh;
115
+ private _markLoaded;
116
116
  /**
117
117
  * Устанавливает By Identity Cache.
118
118
  */
119
- private setByIdentityCache;
119
+ private _setByIdentityCache;
120
120
  /** Пишет canonical identity cache и переходный alias provider.collection. */
121
- private setCache;
121
+ private _setCache;
122
122
  /** Читает canonical identity cache с переходным fallback на collection alias. */
123
- private getCache;
123
+ private _getCache;
124
124
  /**
125
125
  * Разрешает Vocab Config By Id.
126
126
  */
127
- private resolveVocabConfigById;
127
+ private _resolveVocabConfigById;
128
128
  /**
129
129
  * Разрешает Vocab Config By Id Or Identity.
130
130
  */
131
- private resolveVocabConfigByIdOrIdentity;
132
- private createRuntimeConfig;
131
+ private _resolveVocabConfigByIdOrIdentity;
132
+ private _createRuntimeConfig;
133
133
  /** Находит runtime config справочника по identity или collection slug. */
134
- private resolveVocabConfigByIdentityOrSlug;
134
+ private _resolveVocabConfigByIdentityOrSlug;
135
135
  /** Собирает auth headers для обращения к внешнему справочнику. */
136
- private resolveAuthHeaders;
136
+ private _resolveAuthHeaders;
137
137
  /**
138
138
  * Разрешает Base Url.
139
139
  */
140
- private resolveBaseUrl;
140
+ private _resolveBaseUrl;
141
141
  /**
142
142
  * Внутренний helper модуля: extract Docs.
143
143
  */
144
- private extractDocs;
144
+ private _extractDocs;
145
145
  /**
146
146
  * Устанавливает Loading State.
147
147
  */
148
- private setLoadingState;
148
+ private _setLoadingState;
149
149
  }
@@ -20,7 +20,7 @@ export declare class EndgeEvents extends EndgeModule {
20
20
  /**
21
21
  * Внутренний helper модуля: make Cache.
22
22
  */
23
- private makeCache;
23
+ private _makeCache;
24
24
  /**
25
25
  * Возвращает текущую емкость кеша событий.
26
26
  */
@@ -1,31 +1,31 @@
1
+ import { RStore } from '../../../domain/entities/reflect/RStore';
2
+ import { RStream } from '../../../domain/entities/reflect/RStream';
3
+ import { RStyle } from '../../../domain/entities/reflect/RStyle';
4
+ import { RType } from '../../../domain/entities/reflect/RType';
5
+ import { RUpdate } from '../../../domain/entities/reflect/RUpdate';
6
+ import { RVocabs } from '../../../domain/entities/reflect/RVocabs';
1
7
  import { EndgeBootContext } from '../../../domain/types/kernel/bootstrap.types';
2
- import { FilterProgramPayload } from '../../../domain/types/source/filter-source.types';
8
+ import { ActionProgramPayload, ComponentSFCProgramPayload, ComputationProgramPayload, DataViewProgramPayload, EndgeStyleProgramPayload, ProgramArtifact, QueryProgramPayload } from '../../../domain/types/program/program.types';
3
9
  import { CompositionProgramPayload } from '../../../domain/types/source/composition-source.types';
10
+ import { FilterProgramPayload } from '../../../domain/types/source/filter-source.types';
4
11
  import { StoreSourceArtifact } from '../../../domain/types/source/store-source.types';
5
12
  import { StreamSourceArtifact } from '../../../domain/types/source/stream-source.types';
6
- import { UpdateSourceArtifact } from '../../../domain/types/source/update-source.types';
7
13
  import { TypeProgramPayload } from '../../../domain/types/source/type-source.types';
8
- import { ComponentSFCProgramPayload, ActionProgramPayload, ComputationProgramPayload, DataViewProgramPayload, ProgramArtifact, QueryProgramPayload, EndgeStyleProgramPayload } from '../../../domain/types/program/program.types';
14
+ import { UpdateSourceArtifact } from '../../../domain/types/source/update-source.types';
9
15
  import { VocabProgramPayload } from '../../../domain/types/source/vocab-source.types';
10
16
  import { EndgeModule } from '../../../domain/entities/endge/EndgeModule';
11
- import { RComponentSFC } from '../../../domain/entities/reflect/RComponentSFC';
12
17
  import { RAction } from '../../../domain/entities/reflect/RAction';
18
+ import { RComponentSFC } from '../../../domain/entities/reflect/RComponentSFC';
19
+ import { RComposition } from '../../../domain/entities/reflect/RComposition';
13
20
  import { RComputation } from '../../../domain/entities/reflect/RComputation';
14
21
  import { RDataView } from '../../../domain/entities/reflect/RDataView';
15
- import { RQuery } from '../../../domain/entities/reflect/RQuery';
16
- import { RVocabs } from '../../../domain/entities/reflect/RVocabs';
17
22
  import { RFilter } from '../../../domain/entities/reflect/RFilter';
18
- import { RComposition } from '../../../domain/entities/reflect/RComposition';
19
- import { RStore } from '../../../domain/entities/reflect/RStore';
20
- import { RStream } from '../../../domain/entities/reflect/RStream';
21
- import { RUpdate } from '../../../domain/entities/reflect/RUpdate';
22
- import { RStyle } from '../../../domain/entities/reflect/RStyle';
23
- import { RType } from '../../../domain/entities/reflect/RType';
23
+ import { RQuery } from '../../../domain/entities/reflect/RQuery';
24
24
  /**
25
25
  * Компилятор persisted domain model в compiled program artifacts.
26
26
  */
27
27
  export declare class EndgeCompiler extends EndgeModule {
28
- private readonly handlers;
28
+ private readonly _handlers;
29
29
  private _localDataViewCounter;
30
30
  private _localFilterCounter;
31
31
  private _componentTagDiagnosticsByIdentity;
@@ -82,7 +82,7 @@ export declare class EndgeCompiler extends EndgeModule {
82
82
  *
83
83
  * Сейчас используется только для встроенной SFC-регистрации.
84
84
  */
85
- private registerHandler;
85
+ private _registerHandler;
86
86
  /** Создаёт единый immutable context для полного и точечного compiler entry points. */
87
87
  private _createCompileContext;
88
88
  /**
@@ -91,21 +91,21 @@ export declare class EndgeCompiler extends EndgeModule {
91
91
  * Метод отвечает за единый diagnostics span, обработку ошибок и перевод
92
92
  * `Endge.program` в error status при неуспешной фазе.
93
93
  */
94
- private compilePhase;
94
+ private _compilePhase;
95
95
  /**
96
96
  * Компилирует одну доменную сущность и добавляет artifact в активный `Endge.program`.
97
97
  *
98
98
  * Само преобразование делегируется handler-у, зарегистрированному для
99
99
  * конкретного `ProgramEntityType`.
100
100
  */
101
- private compileEntity;
101
+ private _compileEntity;
102
102
  /**
103
103
  * Регистрирует built-in handlers для SFC-компонентов.
104
104
  *
105
105
  * Сейчас compiler сознательно строит program artifacts только для новой
106
106
  * source-first ветки `component-sfc`.
107
107
  */
108
- private registerDefaultHandlers;
108
+ private _registerDefaultHandlers;
109
109
  /** Stable source order: system documents first, then authored documents by identity. */
110
110
  private _orderedStyles;
111
111
  /** Возвращает static artifact dependencies внешних computation calls. */
@@ -1,12 +1,12 @@
1
- import { FilterProgramPayload } from '../../../domain/types/source/filter-source.types';
1
+ import { ActionProgramPayload, ComponentSFCTagRegistryEntry, ComputationProgramPayload, DataViewProgramPayload, EndgeProgramSnapshot, EndgeStyleProgramPayload, ProgramArtifact, ProgramArtifactRef, ProgramArtifactStatus, ProgramDiagnostic, ProgramEntityType, QueryProgramPayload } from '../../../domain/types/program/program.types';
2
2
  import { CompositionProgramPayload } from '../../../domain/types/source/composition-source.types';
3
+ import { FilterProgramPayload } from '../../../domain/types/source/filter-source.types';
3
4
  import { StoreSourceArtifact } from '../../../domain/types/source/store-source.types';
4
5
  import { StreamSourceArtifact } from '../../../domain/types/source/stream-source.types';
5
- import { UpdateSourceArtifact } from '../../../domain/types/source/update-source.types';
6
6
  import { TypeProgramCatalogEntry, TypeProgramPayload } from '../../../domain/types/source/type-source.types';
7
+ import { UpdateSourceArtifact } from '../../../domain/types/source/update-source.types';
7
8
  import { VocabProgramPayload } from '../../../domain/types/source/vocab-source.types';
8
9
  import { EndgeModule } from '../../../domain/entities/endge/EndgeModule';
9
- import { DataViewProgramPayload, EndgeProgramSnapshot, ProgramArtifact, ProgramArtifactRef, ProgramArtifactStatus, ComponentSFCTagRegistryEntry, ComputationProgramPayload, ActionProgramPayload, ProgramDiagnostic, ProgramEntityType, QueryProgramPayload, EndgeStyleProgramPayload } from '../../../domain/types/program/program.types';
10
10
  /**
11
11
  * Хранилище compiled artifacts, полученных после компиляции домена.
12
12
  */
@@ -107,5 +107,5 @@ export declare class EndgeProgram extends EndgeModule {
107
107
  /**
108
108
  * Внутренний helper модуля: key For.
109
109
  */
110
- private keyFor;
110
+ private _keyFor;
111
111
  }
@@ -1,4 +1,4 @@
1
- import { SourceEngineCompileResult, SourceEngineGenerateResult, SourceEngineStrategy, SourceLanguageCompletion, SourceLanguageContext, SourceLanguageInlineHint, SourceLanguageSignatureHelp, SourceLanguageSemanticHighlight, SourceDocumentReference, SourceLanguageStrategy, SourceLanguageValidationResult, SourceKind, SourceParseResult, SourcePatchResult, SourcePatchStrategy } from '../../../domain/types/source/source-engine.types';
1
+ import { SourceDocumentReference, SourceEngineCompileResult, SourceEngineGenerateResult, SourceEngineStrategy, SourceKind, SourceLanguageCompletion, SourceLanguageContext, SourceLanguageInlineHint, SourceLanguageSemanticHighlight, SourceLanguageSignatureHelp, SourceLanguageStrategy, SourceLanguageValidationResult, SourceParseResult, SourcePatchResult, SourcePatchStrategy } from '../../../domain/types/source/source-engine.types';
2
2
  import { EndgeModule } from '../../../domain/entities/endge/EndgeModule';
3
3
  /** Модуль authoring-операций над source-документами Endge. */
4
4
  export declare class EndgeSource extends EndgeModule {
@@ -1,9 +1,9 @@
1
- import { RAction } from '../../../../domain/entities/reflect/RAction';
1
+ import { EntityOrigin } from '../../../../domain/types/document/entity-management.type';
2
2
  import { ActionDefinitionInput, ActionExecuteOptions, ImplementationBindingScope, ResolvedActionDescriptor, RuntimeAction, RuntimeActionContext, RuntimeActionId, RuntimeActionRegistrySnapshot } from '../../../../domain/types/runtime/action.types';
3
3
  import { ImplementationProvider } from '../../../../domain/types/runtime/implementation.types';
4
- import { EntityOrigin } from '../../../../domain/types/document/entity-management.type';
5
- import { Subscribable } from '@endge/utils';
6
4
  import { EndgeImplementations } from '../implementation/endge-implementations';
5
+ import { Subscribable } from '../../../../domain/entities/endge/Subscribable';
6
+ import { RAction } from '../../../../domain/entities/reflect/RAction';
7
7
  export interface CodeActionDefinition extends Omit<ActionDefinitionInput, 'owner'> {
8
8
  owner: string;
9
9
  catalogPath?: readonly string[];
@@ -25,7 +25,7 @@ export interface ActionDefinitionDescriptor extends ActionDefinitionInput {
25
25
  export interface ActionProviderDescriptor extends Omit<ImplementationProvider, 'contract'> {
26
26
  identity: string;
27
27
  }
28
- /** Action-specific facade over semantic definitions and generic implementations. */
28
+ /** Координирует semantic definitions и generic implementations для Actions. */
29
29
  export declare class EndgeActions extends Subscribable {
30
30
  private readonly _implementations;
31
31
  private readonly _codeActions;
@@ -1,21 +1,21 @@
1
+ import { RuntimeAppScopeOptions, RuntimeAppScope } from '../../../../domain/entities/runtime/RuntimeAppScope';
2
+ import { EndgeDataMode } from '../../../../domain/types/document/workspace.types';
1
3
  import { RuntimeEntityType } from '../../../../domain/types/runtime/runtime-entity-map.types';
2
- import { AnyRuntimeStrategy, AnyRuntimeHost } from '../../../../domain/types/runtime/runtime-strategy.types';
3
4
  import { RuntimeExecuteOptions } from '../../../../domain/types/runtime/runtime-execute.type';
4
5
  import { DestroyedRuntimeHostSnapshot, RuntimeHost, RuntimeInspectionLease } from '../../../../domain/types/runtime/runtime-host.types';
6
+ import { AnyRuntimeHost, AnyRuntimeStrategy } from '../../../../domain/types/runtime/runtime-strategy.types';
5
7
  import { EndgeRuntimeSnapshot, RuntimeExecutableModel } from '../../../../domain/types/runtime/runtime.types';
6
- import { EndgeDataMode } from '../../../../domain/types/document/workspace.types';
7
8
  import { EndgeModule } from '../../../../domain/entities/endge/EndgeModule';
8
- import { RuntimeAppScope, RuntimeAppScopeOptions } from '../../../../domain/entities/runtime/RuntimeAppScope';
9
9
  import { RuntimeScope } from '../../../../domain/entities/runtime/RuntimeScope';
10
10
  import { RuntimeScopeRegistry } from '../../../../domain/entities/runtime/RuntimeScopeRegistry';
11
11
  import { EndgeActions } from './endge-actions';
12
- import { EndgeImplementations } from '../implementation/endge-implementations';
13
12
  import { EndgeComposition } from '../execution/endge-composition';
14
- import { EndgeProject } from '../execution/endge-project';
15
- import { EndgeDataView } from '../execution/endge-data-view';
16
- import { EndgeQuery } from '../execution/endge-query';
17
13
  import { EndgeComputation } from '../execution/endge-computation';
18
14
  import { EndgeConverters } from '../execution/endge-converters';
15
+ import { EndgeDataView } from '../execution/endge-data-view';
16
+ import { EndgeProject } from '../execution/endge-project';
17
+ import { EndgeQuery } from '../execution/endge-query';
18
+ import { EndgeImplementations } from '../implementation/endge-implementations';
19
19
  import { EndgeOperations } from '../operation/endge-operations';
20
20
  /** Модуль создания, регистрации и уничтожения runtime hosts и app scopes. */
21
21
  export declare class EndgeRuntime extends EndgeModule {
@@ -121,29 +121,29 @@ export declare class EndgeRuntime extends EndgeModule {
121
121
  */
122
122
  reset(): Promise<void>;
123
123
  /** Projects effective workspace variables into the runtime Raph namespace. */
124
- private syncWorkspaceVariablesToRaph;
124
+ private _syncWorkspaceVariablesToRaph;
125
125
  /** Restores persisted runtime filter values independently of workspace variables. */
126
- private hydrateRuntimeFilters;
126
+ private _hydrateRuntimeFilters;
127
127
  /**
128
128
  * Внутренний destroy для host с контролем уведомления подписчиков.
129
129
  */
130
- private destroyRuntimeInternal;
131
- private syncDestroyedSnapshotLimit;
132
- private createDestroyedSnapshot;
130
+ private _destroyRuntimeInternal;
131
+ private _syncDestroyedSnapshotLimit;
132
+ private _createDestroyedSnapshot;
133
133
  /** Регистрирует host, подключает infrastructure и только затем активирует его. */
134
- private registerAndActivateHost;
134
+ private _registerAndActivateHost;
135
135
  /** Creates the lifecycle root lazily again after a full Endge.reset(). */
136
- private ensureLifecycleAppScope;
136
+ private _ensureLifecycleAppScope;
137
137
  /**
138
138
  * Регистрирует встроенные стратегии в порядке от специальных к общим.
139
139
  */
140
- private registerDefaultStrategies;
140
+ private _registerDefaultStrategies;
141
141
  /** Разрешает scope запуска: explicit -> parent -> default app. */
142
- private resolveAppScope;
142
+ private _resolveAppScope;
143
143
  /** Создаёт Raph graph node для AppScope независимо от data namespace. */
144
- private ensureScopeNode;
144
+ private _ensureScopeNode;
145
145
  /** Разрешает и проверяет явно переданный parent host. */
146
- private resolveParentHost;
146
+ private _resolveParentHost;
147
147
  /** Разрешает artifact reader и запрещает невалидную явную зависимость. */
148
148
  private _resolveArtifactReader;
149
149
  }
@@ -1,13 +1,13 @@
1
- import { RuntimeHost } from '../../../../../domain/types/runtime/runtime-host.types';
2
1
  import { ActionProgramPayload } from '../../../../../domain/types/program/action-program.types';
2
+ import { RuntimeHost } from '../../../../../domain/types/runtime/runtime-host.types';
3
3
  /** Executes compiler-produced Action IR without interpreting Source. */
4
4
  export declare class ActionProgramExecutor {
5
5
  run(payload: ActionProgramPayload, input: unknown, parent: RuntimeHost<any, any> | null): Promise<unknown>;
6
- private runBlock;
7
- private runStep;
8
- private runOperation;
9
- private evaluate;
10
- private findComposition;
11
- private requireObject;
12
- private optionalObject;
6
+ private _runBlock;
7
+ private _runStep;
8
+ private _runOperation;
9
+ private _evaluate;
10
+ private _findComposition;
11
+ private _requireObject;
12
+ private _optionalObject;
13
13
  }
@@ -1,5 +1,5 @@
1
- import { ComputationDependencyRunner, ComputationExecutionScope, ComputationSandboxAdapter } from '../../../../../domain/types/computation/computation-runtime.types';
2
1
  import { ComputationProgramPayload } from '../../../../../domain/types/computation/computation-program.types';
2
+ import { ComputationDependencyRunner, ComputationExecutionScope, ComputationSandboxAdapter } from '../../../../../domain/types/computation/computation-runtime.types';
3
3
  export declare class ComputationRuntimeError extends Error {
4
4
  readonly computationIdentity: string;
5
5
  readonly kind: string;
@@ -16,13 +16,13 @@ export declare class ComputationRuntimeError extends Error {
16
16
  }
17
17
  /** Executes compiler-ordered computation graphs without evaluating authored JS in core. */
18
18
  export declare class ComputationGraphExecutor {
19
- private readonly sandbox;
20
- private readonly dependencies;
21
- constructor(sandbox: () => ComputationSandboxAdapter | null, dependencies?: ComputationDependencyRunner | null);
19
+ private readonly _sandbox;
20
+ private readonly _dependencies;
21
+ constructor(_sandbox: () => ComputationSandboxAdapter | null, _dependencies?: ComputationDependencyRunner | null);
22
22
  runSync(payload: ComputationProgramPayload, input: unknown, identity: string, scope?: ComputationExecutionScope): unknown;
23
23
  run(payload: ComputationProgramPayload, input: unknown, identity: string, scope?: ComputationExecutionScope): Promise<unknown>;
24
- private executeNode;
25
- private evaluate;
26
- private evaluateResult;
27
- private evaluateNode;
24
+ private _executeNode;
25
+ private _evaluate;
26
+ private _evaluateResult;
27
+ private _evaluateNode;
28
28
  }
@@ -3,8 +3,8 @@ type AsyncRunner<T> = (input: unknown) => Promise<T>;
3
3
  type SyncRunner<T> = (input: unknown) => T;
4
4
  /** Renderer-neutral latest-wins state for one computation consumer. */
5
5
  export declare class ComputationResourceState<T = unknown> implements ComputationResourceContract<T> {
6
- private readonly asyncRunner;
7
- private readonly syncRunner;
6
+ private readonly _asyncRunner;
7
+ private readonly _syncRunner;
8
8
  private _status;
9
9
  private _value;
10
10
  private _error;
@@ -12,7 +12,7 @@ export declare class ComputationResourceState<T = unknown> implements Computatio
12
12
  private _revision;
13
13
  private _disposed;
14
14
  private _input;
15
- constructor(input: unknown, asyncRunner: AsyncRunner<T>, syncRunner?: SyncRunner<T> | null);
15
+ constructor(input: unknown, _asyncRunner: AsyncRunner<T>, _syncRunner?: SyncRunner<T> | null);
16
16
  get status(): import('../../../../../domain/types/computation/computation-runtime.types').ComputationResourceStatus;
17
17
  get loading(): boolean;
18
18
  get value(): T | undefined;
@@ -21,7 +21,7 @@ export declare class ComputationResourceState<T = unknown> implements Computatio
21
21
  refresh(): Promise<void>;
22
22
  subscribe(listener: VoidFunction): VoidFunction;
23
23
  dispose(): void;
24
- private runSync;
25
- private notify;
24
+ private _runSync;
25
+ private _notify;
26
26
  }
27
27
  export {};
@@ -1,9 +1,9 @@
1
- import { ComputationResource as ComputationResourceContract } from '../../../../../domain/types/computation/computation-runtime.types';
2
1
  import { ComputationResourceState } from './ComputationResource';
2
+ import { ComputationResource as ComputationResourceContract } from '../../../../../domain/types/computation/computation-runtime.types';
3
3
  /** Host-owned registry that isolates resources by call site and row consumer key. */
4
4
  export declare class ComputationResourceRegistry {
5
- private readonly resources;
6
- private readonly disposers;
5
+ private readonly _resources;
6
+ private readonly _disposers;
7
7
  /** Resource inputs currently pulled by the active renderer pass. */
8
8
  private readonly _updatingInputs;
9
9
  getOrCreate(key: string, input: unknown, create: () => ComputationResourceState, onChange?: VoidFunction): ComputationResourceContract;
@@ -1,22 +1,22 @@
1
- import { ComputationSandboxAdapter, ComputationSandboxRequest, ComputationOverride } from '../../../../../domain/types/computation/computation-runtime.types';
2
- import { EntityOrigin } from '../../../../../domain/types/document/entity-management.type';
3
- import { ImplementationBindingScope } from '../../../../../domain/types/runtime/action.types';
4
1
  import { ComputationProgramPayload } from '../../../../../domain/types/computation/computation-program.types';
2
+ import { ComputationOverride, ComputationSandboxAdapter, ComputationSandboxRequest } from '../../../../../domain/types/computation/computation-runtime.types';
3
+ import { EntityOrigin } from '../../../../../domain/types/document/entity-management.type';
5
4
  import { ProgramArtifact } from '../../../../../domain/types/program/program.types';
6
- import { ComputationResourceState } from './ComputationResource';
5
+ import { ImplementationBindingScope } from '../../../../../domain/types/runtime/action.types';
7
6
  import { EndgeImplementations } from '../../implementation/endge-implementations';
7
+ import { ComputationResourceState } from './ComputationResource';
8
8
  /** Executes compiled computation graphs and creates renderer-neutral resources. */
9
9
  export declare class EndgeComputation {
10
- private readonly implementations;
11
- private readonly definitions;
12
- private readonly providers;
13
- private readonly providerDisposers;
14
- private readonly definitionDisposers;
15
- private readonly bindingDisposers;
16
- private sandbox;
17
- private readonly executor;
18
- private readonly api;
19
- constructor(implementations: EndgeImplementations);
10
+ private readonly _implementations;
11
+ private readonly _definitions;
12
+ private readonly _providers;
13
+ private readonly _providerDisposers;
14
+ private readonly _definitionDisposers;
15
+ private readonly _bindingDisposers;
16
+ private _sandbox;
17
+ private readonly _executor;
18
+ private readonly _api;
19
+ constructor(_implementations: EndgeImplementations);
20
20
  hasDefinition(identity: string): boolean;
21
21
  /** Installs a serializable code-owned Computation definition. */
22
22
  define(definition: {
@@ -56,12 +56,12 @@ export declare class EndgeComputation {
56
56
  private _run;
57
57
  private _runSync;
58
58
  createResource(identity: string, input: unknown, _consumerKey: string): ComputationResourceState;
59
- private requireArtifact;
60
- private assertArtifact;
59
+ private _requireArtifact;
60
+ private _assertArtifact;
61
61
  /** Создает child scope и блокирует runtime recursion или чрезмерно глубокий call graph. */
62
62
  private _enterExecution;
63
- private runOverrideSync;
64
- private runOverride;
65
- private resolveProvider;
63
+ private _runOverrideSync;
64
+ private _runOverride;
65
+ private _resolveProvider;
66
66
  reset(): void;
67
67
  }
@@ -1,6 +1,6 @@
1
- import { CompositionMountOptions, CompositionPreviewProps, CompositionSession } from '../../../../domain/types/source/composition-source.types';
2
1
  import { EndgeDataMode } from '../../../../domain/types/document/workspace.types';
3
- /** Публичный facade монтирования Composition runtime sessions. */
2
+ import { CompositionMountOptions, CompositionPreviewProps, CompositionSession } from '../../../../domain/types/source/composition-source.types';
3
+ /** Публичный API монтирования Composition runtime sessions. */
4
4
  export declare class EndgeComposition {
5
5
  /** Монтирует Composition runtime и возвращает управляемую session. */
6
6
  mount(identity: string, options?: CompositionMountOptions): Promise<CompositionSession>;
@@ -1,4 +1,4 @@
1
- export * from './computation/EndgeComputation';
2
1
  export * from './computation/ComputationGraphExecutor';
3
2
  export * from './computation/ComputationResource';
4
3
  export * from './computation/ComputationResourceRegistry';
4
+ export * from './computation/EndgeComputation';
@@ -2,14 +2,14 @@ import { EntityOrigin } from '../../../../domain/types/document/entity-managemen
2
2
  import { ImplementationBindingScope } from '../../../../domain/types/runtime/action.types';
3
3
  import { EndgeImplementations } from '../implementation/endge-implementations';
4
4
  type ConverterProvider = (value: unknown, options?: Record<string, unknown>) => unknown;
5
- /** Synchronous Converter facade with separate definitions, providers and bindings. */
5
+ /** Синхронно координирует definitions, providers и bindings конвертеров. */
6
6
  export declare class EndgeConverters {
7
- private readonly implementations;
8
- private readonly definitions;
9
- private readonly providerDisposers;
10
- private readonly definitionDisposers;
11
- private started;
12
- constructor(implementations: EndgeImplementations);
7
+ private readonly _implementations;
8
+ private readonly _definitions;
9
+ private readonly _providerDisposers;
10
+ private readonly _definitionDisposers;
11
+ private _started;
12
+ constructor(_implementations: EndgeImplementations);
13
13
  has(identity: string): boolean;
14
14
  define(definition: {
15
15
  identity: string;
@@ -1,5 +1,5 @@
1
- import { DataViewRef, DataViewRunContext, DataViewRunTools } from '../../../../domain/types/source/data-view-source.types';
2
1
  import { DataViewProgramPayload, ProgramArtifact } from '../../../../domain/types/program/program.types';
2
+ import { DataViewRef, DataViewRunContext, DataViewRunTools } from '../../../../domain/types/source/data-view-source.types';
3
3
  import { RDataView } from '../../../../domain/entities/reflect/RDataView';
4
4
  /** Модуль выполнения скомпилированных RDataView artifacts. */
5
5
  export declare class EndgeDataView {
@@ -25,7 +25,7 @@ export declare class EndgeDataView {
25
25
  private _resolveDataView;
26
26
  /** Возвращает compiled artifact, компилируя DataView локально при необходимости. */
27
27
  private _resolveArtifact;
28
- /** Выполняет manual transform в controlled wrapper текущего frontend runtime. */
28
+ /** Останавливает manual DataView до появления безопасного runtime. */
29
29
  private _runManual;
30
30
  /** Интерпретирует декларативные pipeline steps без eval. */
31
31
  private _runPipeline;