@endge/core 9.0.0 → 11.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 (131) hide show
  1. package/dist/core.js +41944 -40206
  2. package/dist/features/core/kernel/config/debugger.config.d.ts +3 -0
  3. package/dist/features/core/kernel/config/kernel.config.d.ts +2 -2
  4. package/dist/features/core/kernel/config/modules.config.d.ts +6 -1
  5. package/dist/features/core/kernel/constants/kernel.constants.d.ts +1 -3
  6. package/dist/features/core/kernel/endge.d.ts +20 -6
  7. package/dist/features/core/kernel/errors/EndgeDebuggerReadOnlyError.d.ts +5 -0
  8. package/dist/features/core/kernel/tools/debugger-snapshot.d.ts +13 -0
  9. package/dist/features/core/kernel/tools/read-only-document.d.ts +2 -0
  10. package/dist/features/core/kernel/types/bootstrap.types.d.ts +8 -2
  11. package/dist/features/core/modules/bridge/adapters/BrowserBridge_Adapter.d.ts +0 -3
  12. package/dist/features/core/modules/bridge/config/bridge.config.d.ts +17 -0
  13. package/dist/features/core/modules/bridge/debug/EndgeBridgeDebug_Module.d.ts +59 -4
  14. package/dist/features/core/modules/bridge/domain/bridge-sync.type.d.ts +30 -0
  15. package/dist/features/core/modules/bridge/tools/bridge-sync.d.ts +16 -0
  16. package/dist/features/core/modules/commands/EndgeCommands_Module.d.ts +17 -0
  17. package/dist/features/core/modules/commands/config/commands.config.d.ts +9 -0
  18. package/dist/features/core/modules/commands/domain/commands.types.d.ts +38 -0
  19. package/dist/features/core/modules/commands/services/LocalCommandExecutor.d.ts +9 -0
  20. package/dist/features/core/modules/commands/services/RemoteCommandExecutor.d.ts +9 -0
  21. package/dist/features/core/modules/commands/services/context/SetDataModeCommand.d.ts +9 -0
  22. package/dist/features/core/modules/commands/services/context/SetFacetCommand.d.ts +9 -0
  23. package/dist/features/core/modules/commands/services/context/SetLocaleCommand.d.ts +9 -0
  24. package/dist/features/core/modules/commands/services/context/SetThemeCommand.d.ts +9 -0
  25. package/dist/features/core/modules/commands/services/context/SetTimezoneCommand.d.ts +9 -0
  26. package/dist/features/core/modules/commands/services/context/SetUserCommand.d.ts +9 -0
  27. package/dist/features/core/modules/commands/services/context/SetWorkspaceCommand.d.ts +9 -0
  28. package/dist/features/core/modules/commands/services/runtime/PauseRuntimeCommand.d.ts +9 -0
  29. package/dist/features/core/modules/commands/services/runtime/ResumeRuntimeCommand.d.ts +9 -0
  30. package/dist/features/core/modules/commands/services/runtime/StopRuntimeCommand.d.ts +9 -0
  31. package/dist/features/core/modules/commands/tools/command-payload.d.ts +4 -0
  32. package/dist/features/core/modules/commands/types/command-executor.type.d.ts +19 -0
  33. package/dist/features/core/modules/commands/types/context-command-target.type.d.ts +12 -0
  34. package/dist/features/core/modules/commands/types/runtime-command-target.type.d.ts +5 -0
  35. package/dist/features/core/modules/compiler/EndgeCompiler_Module.d.ts +7 -6
  36. package/dist/features/core/modules/compiler/services/action/action-compile.d.ts +2 -0
  37. package/dist/features/core/modules/compiler/services/computation/computation-compile.d.ts +2 -0
  38. package/dist/features/core/modules/computations/model/ComputationResource.d.ts +11 -1
  39. package/dist/features/core/modules/computations/model/ComputationResourceRegistry.d.ts +9 -0
  40. package/dist/features/core/modules/configuration/EndgeConfiguration_Module.d.ts +4 -2
  41. package/dist/features/core/modules/configuration/domain/endge-configuration.d.ts +1 -1
  42. package/dist/features/core/modules/configuration/domain/tooltip.config.d.ts +1 -1
  43. package/dist/features/core/modules/configuration/domain/types/configuration.type.d.ts +3 -1
  44. package/dist/features/core/modules/context/EndgeContext_Module.d.ts +33 -22
  45. package/dist/features/core/modules/context/domain/context-events.types.d.ts +8 -0
  46. package/dist/features/core/modules/context/domain/context-persistence.types.d.ts +8 -8
  47. package/dist/features/core/modules/domain/EndgeDomain_Module.d.ts +20 -201
  48. package/dist/features/core/modules/domain/documents/document-metadata.d.ts +7 -0
  49. package/dist/features/core/modules/domain/documents/domain-document-descriptors.d.ts +4 -10
  50. package/dist/features/core/modules/domain/documents/service-document-serializer.d.ts +0 -1
  51. package/dist/features/core/modules/domain/entities/RComponentBase.d.ts +0 -1
  52. package/dist/features/core/modules/domain/entities/RComposition.d.ts +1 -1
  53. package/dist/features/core/modules/domain/entities/REntity.d.ts +2 -0
  54. package/dist/features/core/modules/domain/entities/RFacet.d.ts +14 -0
  55. package/dist/features/core/modules/domain/entities/RFacetDocument.d.ts +12 -0
  56. package/dist/features/core/modules/domain/entities/RFolder.d.ts +5 -0
  57. package/dist/features/core/modules/domain/entities/RSimulation.d.ts +1 -1
  58. package/dist/features/core/modules/domain/entities/RWorkspace.d.ts +3 -1
  59. package/dist/features/core/modules/domain/types/document/codegen.types.d.ts +14 -4
  60. package/dist/features/core/modules/domain/types/document/document-metadata.types.d.ts +38 -0
  61. package/dist/features/core/modules/domain/types/document/document.types.d.ts +4 -15
  62. package/dist/features/core/modules/domain/types/document/domain-export.type.d.ts +4 -7
  63. package/dist/features/core/modules/domain/types/document/domain-provider.type.d.ts +48 -1
  64. package/dist/features/core/modules/domain/types/document/domain-snapshot.type.d.ts +6 -1
  65. package/dist/features/core/modules/domain/types/document/query.types.d.ts +0 -48
  66. package/dist/features/core/modules/domain-repository/EndgeDomainRepository_Module.d.ts +25 -2
  67. package/dist/features/core/modules/events/EndgeEvents_Module.d.ts +13 -63
  68. package/dist/features/core/modules/events/domain/events.types.d.ts +34 -22
  69. package/dist/features/core/modules/i18n/services/composition-i18n-catalog-projection.d.ts +1 -3
  70. package/dist/features/core/modules/i18n/tools/resolve-runtime-translation.d.ts +3 -0
  71. package/dist/features/core/modules/program/domain/types/program.types.d.ts +1 -1
  72. package/dist/features/core/modules/runtime/ComponentSFCEventBoundary.d.ts +1 -1
  73. package/dist/features/core/modules/runtime/EndgeRuntimeScopes_Module.d.ts +5 -0
  74. package/dist/features/core/modules/runtime/EndgeRuntime_Module.d.ts +45 -8
  75. package/dist/features/core/modules/runtime/domain/component-sfc-render-port.types.d.ts +8 -0
  76. package/dist/features/core/modules/runtime/domain/execution-context.types.d.ts +5 -12
  77. package/dist/features/core/modules/runtime/domain/runtime-entity-map.types.d.ts +3 -3
  78. package/dist/features/core/modules/runtime/domain/runtime-host.types.d.ts +3 -4
  79. package/dist/features/core/modules/runtime/domain/runtime-inspection.types.d.ts +28 -0
  80. package/dist/features/core/modules/runtime/domain/runtime-render-inspection.types.d.ts +27 -0
  81. package/dist/features/core/modules/runtime/domain/runtime.types.d.ts +4 -3
  82. package/dist/features/core/modules/runtime/domain/simulation-runtime.types.d.ts +25 -0
  83. package/dist/features/core/modules/runtime/domain/stream-runtime.types.d.ts +3 -1
  84. package/dist/features/core/modules/runtime/execution/endge-simulation.d.ts +5 -0
  85. package/dist/features/core/modules/runtime/hosts/ComponentSFCRuntimeHost.d.ts +3 -0
  86. package/dist/features/core/modules/runtime/hosts/CompositionRuntimeHost.d.ts +2 -3
  87. package/dist/features/core/modules/runtime/hosts/FilterViewRuntimeHost.d.ts +5 -0
  88. package/dist/features/core/modules/runtime/hosts/SimulationRuntimeHost.d.ts +52 -0
  89. package/dist/features/core/modules/runtime/hosts/StreamRuntimeHost.d.ts +7 -4
  90. package/dist/features/core/modules/runtime/services/simulation/create-simulation-schema.d.ts +5 -0
  91. package/dist/features/core/modules/runtime/services/simulation/find-simulation-runtime.d.ts +4 -0
  92. package/dist/features/core/modules/runtime/services/simulation/prepare-simulation-overrides.d.ts +14 -0
  93. package/dist/features/core/modules/runtime/services/strategies/CompositionRuntimeStrategy.d.ts +1 -1
  94. package/dist/features/core/modules/runtime/services/strategies/SimulationRuntimeStrategy.d.ts +9 -0
  95. package/dist/features/core/modules/runtime/services/transports/BrowserWebSocketStreamTransportFactory.d.ts +6 -0
  96. package/dist/features/core/modules/runtime/tools/runtime-inspection.d.ts +10 -0
  97. package/dist/features/core/modules/runtime/tools/runtime-render-inspection.d.ts +6 -0
  98. package/dist/features/core/modules/runtime/tools/runtime-render-values.d.ts +4 -0
  99. package/dist/features/core/modules/source/EndgeSource_Module.d.ts +2 -2
  100. package/dist/features/core/modules/source/domain/types/composition-source.types.d.ts +14 -1
  101. package/dist/features/core/modules/source/domain/types/configuration-source.types.d.ts +2 -0
  102. package/dist/features/core/modules/source/domain/types/simulation-source.types.d.ts +25 -7
  103. package/dist/features/core/modules/source/domain/types/source-engine.types.d.ts +9 -4
  104. package/dist/features/core/modules/source/domain/types/store-source.types.d.ts +2 -0
  105. package/dist/features/core/modules/source/domain/types/stream-source.types.d.ts +15 -1
  106. package/dist/features/core/modules/source/domain/types/type-source.types.d.ts +2 -0
  107. package/dist/features/core/modules/source/domain/types/update-source.types.d.ts +2 -0
  108. package/dist/features/core/modules/source/services/SimulationSourceResolver.d.ts +3 -2
  109. package/dist/features/core/modules/source/services/compilers/action-source-compile.d.ts +2 -0
  110. package/dist/features/core/modules/source/services/compilers/composition-source-compile.d.ts +1 -1
  111. package/dist/features/core/modules/source/services/component-sfc/component-sfc-metadata-source-patch.d.ts +2 -2
  112. package/dist/features/core/modules/source/services/strategies/CompositionSourceEngineStrategy.d.ts +2 -2
  113. package/dist/features/core/modules/source/services/strategies/SimulationSourceEngineStrategy.d.ts +2 -2
  114. package/dist/features/core/modules/source/templates/simulation.default.source.d.ts +2 -2
  115. package/dist/features/core/modules/workspace/EndgeWorkspace_Module.d.ts +2 -0
  116. package/dist/features/core/modules/workspace/domain/workspace.types.d.ts +5 -0
  117. package/dist/features/federation/EndgeFederation.d.ts +3 -0
  118. package/dist/features/federation/types/federation.types.d.ts +5 -0
  119. package/dist/main.d.ts +22 -9
  120. package/package.json +3 -3
  121. package/dist/features/core/modules/domain/entities/REnvironment.d.ts +0 -9
  122. package/dist/features/core/modules/domain/entities/RParameter.d.ts +0 -11
  123. package/dist/features/core/modules/domain/entities/RProject.d.ts +0 -64
  124. package/dist/features/core/modules/domain/entities/RQueryFilter.d.ts +0 -12
  125. package/dist/features/core/modules/domain/entities/RTenant.d.ts +0 -10
  126. package/dist/features/core/modules/events/domain/EndgeEvent.d.ts +0 -33
  127. package/dist/features/core/modules/runtime/domain/runtime-project-session.types.d.ts +0 -31
  128. package/dist/features/core/modules/runtime/execution/endge-project.d.ts +0 -6
  129. package/dist/features/core/modules/runtime/hosts/ProjectRuntimeHost.d.ts +0 -21
  130. package/dist/features/core/modules/runtime/services/strategies/ProjectRuntimeStrategy.d.ts +0 -9
  131. package/dist/features/core/modules/source/templates/project.default.source.d.ts +0 -2
@@ -8,7 +8,7 @@ interface SimulationCompositionBranch {
8
8
  }
9
9
  export interface SimulationSourceTarget {
10
10
  alias: string;
11
- kind: 'project' | 'composition' | 'scope' | 'query' | 'unsupported';
11
+ kind: 'composition' | 'scope' | 'query' | 'stream' | 'unsupported';
12
12
  identity: string;
13
13
  branch: SimulationCompositionBranch | null;
14
14
  }
@@ -20,9 +20,10 @@ interface QueryArrayContract {
20
20
  /** Read-only разрешение aliases и контрактов; не создаёт RuntimeHost или generator payload. */
21
21
  export declare class SimulationSourceResolver {
22
22
  private readonly _catalog;
23
+ private readonly _executionContext;
23
24
  private readonly _branches;
24
25
  private readonly _queryContracts;
25
- constructor(_catalog: SimulationSourceCatalog);
26
+ constructor(_catalog: SimulationSourceCatalog, _executionContext?: Readonly<Record<string, string>>);
26
27
  composition(identity: string): SimulationCompositionBranch | null;
27
28
  graph(reference: SimulationTargetReference): SimulationCompositionBranch | null;
28
29
  children(branch: SimulationCompositionBranch): SimulationSourceTarget[];
@@ -1,5 +1,6 @@
1
1
  import { ActionTargetSelector } from '../../../actions/domain/action.types';
2
2
  import { ActionProgramPayload } from '../../../program/domain/types/action-program.types';
3
+ import { ProgramMetadataMap } from '../../../program/domain/types/program-metadata.types';
3
4
  import { ProgramDependency, ProgramDiagnostic } from '../../../program/domain/types/program.types';
4
5
  type DiagnosticDraft = Omit<ProgramDiagnostic, 'entityRef'>;
5
6
  export interface ActionSourceCompileInput {
@@ -9,6 +10,7 @@ export interface ActionSourceCompileInput {
9
10
  }
10
11
  export interface ActionSourceCompileResult {
11
12
  payload: ActionProgramPayload;
13
+ metadata: ProgramMetadataMap;
12
14
  diagnostics: DiagnosticDraft[];
13
15
  dependencies: ProgramDependency[];
14
16
  }
@@ -1,5 +1,5 @@
1
1
  import { CompositionRuntimeGraph, CompositionSourceCompileResult, CompositionSourceDocument } from '../../domain/types/composition-source.types';
2
2
  /** Компилирует Composition source v1 в runtime graph artifact. */
3
- export declare function compileCompositionSource(source: string, sourceVersion?: number): CompositionSourceCompileResult;
3
+ export declare function compileCompositionSource(source: string, sourceVersion?: number, executionContext?: Readonly<Record<string, string>>): CompositionSourceCompileResult;
4
4
  /** Строит normalized graph отдельно от source AST, чтобы runtime не интерпретировал DSL. */
5
5
  export declare function buildRuntimeGraph(document: CompositionSourceDocument): CompositionRuntimeGraph;
@@ -1,6 +1,6 @@
1
1
  import { ComponentSFCMetadataSourcePatchResult, ComponentSFCMetadataVisualProjection } from '../../../domain/types/component/sfc/metadata-visual.types';
2
2
  import { ProgramMetadataMap } from '../../../program/domain/types/program-metadata.types';
3
- /** Читает defineMetadata уровня компонента как строгий JSON для визуального редактора. */
3
+ /** Совместимый фасад старого SFC API над общим descriptor-driven metadata contract. */
4
4
  export declare function inspectComponentSFCMetadata(source: string): ComponentSFCMetadataVisualProjection;
5
- /** Заменяет один вызов defineMetadata или вставляет его в script setup. */
5
+ /** Совместимый фасад старого SFC patch API над общим descriptor-driven metadata contract. */
6
6
  export declare function patchComponentSFCMetadataSource(source: string, metadata: ProgramMetadataMap): ComponentSFCMetadataSourcePatchResult;
@@ -1,7 +1,7 @@
1
- import { SourceEngineCompileResult, SourceEngineStrategy, SourceKind } from '../../domain/types/source-engine.types';
1
+ import { SourceEngineCompileContext, SourceEngineCompileResult, SourceEngineStrategy, SourceKind } from '../../domain/types/source-engine.types';
2
2
  export declare class CompositionSourceEngineStrategy implements SourceEngineStrategy {
3
3
  readonly id = "source:composition";
4
4
  readonly sourceKind: SourceKind;
5
5
  supports(sourceKind: SourceKind | string): boolean;
6
- compile(source: string): SourceEngineCompileResult;
6
+ compile(source: string, context?: SourceEngineCompileContext): SourceEngineCompileResult;
7
7
  }
@@ -1,10 +1,10 @@
1
1
  import { SimulationSourceCatalog } from '../../domain/types/simulation-source.types';
2
- import { SourceEngineCompileResult, SourceEngineStrategy, SourceKind } from '../../domain/types/source-engine.types';
2
+ import { SourceEngineCompileContext, SourceEngineCompileResult, SourceEngineStrategy, SourceKind } from '../../domain/types/source-engine.types';
3
3
  export declare class SimulationSourceEngineStrategy implements SourceEngineStrategy {
4
4
  private readonly _catalog;
5
5
  readonly id = "source:simulation";
6
6
  readonly sourceKind: SourceKind;
7
7
  constructor(_catalog: () => SimulationSourceCatalog);
8
8
  supports(sourceKind: SourceKind | string): boolean;
9
- compile(source: string): SourceEngineCompileResult;
9
+ compile(source: string, context?: SourceEngineCompileContext): SourceEngineCompileResult;
10
10
  }
@@ -1,2 +1,2 @@
1
- /** Новый документ требует выбора целевой Composition или Project. */
2
- export declare const SIMULATION_DEFAULT_SOURCE = "defineSimulation({\n target: composition(''),\n overrides: {\n runtimes: {},\n },\n})";
1
+ /** Новый документ требует выбора целевой Composition. */
2
+ export declare const SIMULATION_DEFAULT_SOURCE = "defineSimulation({\n target: composition(''),\n dataMode: 'mock',\n overrides: {\n runtimes: {},\n },\n})";
@@ -35,6 +35,8 @@ export declare class EndgeWorkspace_Module extends EndgeModule<EndgeBootContext>
35
35
  getTimezoneLabel(timezone: string): string;
36
36
  /** Применяет и публикует новую workspace-конфигурацию. */
37
37
  apply(input: unknown): void;
38
+ /** Applies captured metadata for document inspection without changing authorization or starting integrations. */
39
+ applyInspection(input: EndgeWorkspaceDefinition): void;
38
40
  /** Сериализует текущую workspace-конфигурацию. */
39
41
  serialize(): EndgeWorkspaceDefinition;
40
42
  /** Возвращает workspace или сообщает о нарушении boot lifecycle. */
@@ -2,6 +2,7 @@ import { EndgeConfiguration, EndgeLocaleDefinition, EndgeThemeDefinition, EndgeT
2
2
  import { EntityManagement } from '../../domain/types/document/entity-management.type';
3
3
  export type EndgeWorkspaceLocale = EndgeLocaleDefinition;
4
4
  export type EndgeDataMode = 'live' | 'mock';
5
+ export type EndgeWorkspaceDocumentStructure = 'frontend' | 'custom';
5
6
  export type EndgeWorkspaceLocaleLabelMode = keyof Pick<EndgeWorkspaceLocale, 'displayName' | 'shortLabel'>;
6
7
  export type EndgeWorkspaceTheme = EndgeThemeDefinition;
7
8
  export type EndgeWorkspaceTimezone = EndgeTimezoneDefinition;
@@ -21,6 +22,10 @@ export interface EndgeWorkspaceDefinition extends EntityManagement {
21
22
  identity: string;
22
23
  displayName: string;
23
24
  dataMode: EndgeDataMode;
25
+ /** Способ организации документов; legacy payloads без поля нормализуются в frontend. */
26
+ documentStructure?: EndgeWorkspaceDocumentStructure;
27
+ /** Единственная Composition, запускаемая как корень Workspace. */
28
+ startupCompositionIdentity: string | null;
24
29
  meta?: Record<string, unknown>;
25
30
  installedIntegrations: WorkspaceIntegrationReference[];
26
31
  configuration: EndgeConfiguration;
@@ -45,8 +45,11 @@ export declare abstract class EndgeFederation {
45
45
  static createDiagnosticsSnapshot(options?: EndgeFederationDiagnosticsSnapshotOptions): EndgeFederationDiagnosticsSnapshot;
46
46
  /** Хук одноразовой декларации собственных lifecycle-узлов Federation. */
47
47
  protected static configureFederation(): void;
48
+ /** Selects the lifecycle graph without creating a second owner for its nodes. */
49
+ protected static selectLifecycleNodes(nodes: readonly EndgeLifecycleNodeDescriptor[], _ctx: EndgeFederationContext): readonly EndgeLifecycleNodeDescriptor[];
48
50
  /** Запускает всё дерево Federation по pipeline `setup -> load -> build -> start`. */
49
51
  static boot(ctx: EndgeFederationContext): Promise<void>;
52
+ private static _selectLifecycleNodes;
50
53
  private static _runBoot;
51
54
  /** Регистрирует декларативное расширение до configuration Federation. */
52
55
  static use(plugin: EndgePlugin): void;
@@ -70,6 +70,8 @@ export interface EndgePlugin<TModules extends EndgeModuleDefinitions = EndgeModu
70
70
  readonly id: string;
71
71
  readonly modules?: TModules;
72
72
  readonly federations?: TFederations;
73
+ /** Selects an ordered subset once per boot; reset uses the same nodes. */
74
+ readonly selectLifecycleNodes?: (nodes: readonly EndgeLifecycleNodeDescriptor[], ctx: EndgeFederationContext) => readonly EndgeLifecycleNodeDescriptor[];
73
75
  }
74
76
  /** Полное декларативное описание автоматически собираемой федерации. */
75
77
  export interface EndgeFederationDefinition<TDefinitions extends EndgeModuleDefinitions, TFederations extends EndgeChildFederationDefinitions = readonly []> {
@@ -77,6 +79,8 @@ export interface EndgeFederationDefinition<TDefinitions extends EndgeModuleDefin
77
79
  readonly name?: string;
78
80
  readonly modules: TDefinitions;
79
81
  readonly federations?: TFederations;
82
+ /** Selects an ordered subset once per boot; reset uses the same nodes. */
83
+ readonly selectLifecycleNodes?: (nodes: readonly EndgeLifecycleNodeDescriptor[], ctx: EndgeFederationContext) => readonly EndgeLifecycleNodeDescriptor[];
80
84
  }
81
85
  export type EndgeLifecycleNodeDescriptor = {
82
86
  readonly kind: 'module';
@@ -101,6 +105,7 @@ export interface EndgeFederationHost {
101
105
  state: EndgeFederationState;
102
106
  lastError: unknown | null;
103
107
  bootContext: EndgeFederationContext | null;
108
+ lifecycleNodes: readonly EndgeLifecycleNodeDescriptor[] | null;
104
109
  bootPromise: Promise<void> | null;
105
110
  resetPromise: Promise<void> | null;
106
111
  buildQueue: Promise<void>;
package/dist/main.d.ts CHANGED
@@ -6,8 +6,10 @@ export * from './features/federation/types/endge-modules.types';
6
6
  export * from './features/federation/constants/federation.constants';
7
7
  export * from './features/federation/types/federation.types';
8
8
  export * from './features/core/kernel/endge';
9
+ export * from './features/core/modules/commands/EndgeCommands_Module';
9
10
  export * from './features/core/modules/bridge/EndgeBridge_Module';
10
11
  export * from './features/core/modules/bridge/domain/bridge.type';
12
+ export * from './features/core/modules/bridge/domain/bridge-sync.type';
11
13
  export { parseBridgeAllowedServers } from './features/core/modules/bridge/config/bridge.config';
12
14
  export * from './features/core/modules/domain/EndgeDomain_Module';
13
15
  export * from './features/core/modules/document-import/EndgeDocumentImport_Module';
@@ -20,7 +22,8 @@ export * from './features/core/modules/compiler/EndgeCompiler_Module';
20
22
  export * from './features/core/modules/source/EndgeSource_Module';
21
23
  export * from './features/core/modules/mock/EndgeMock_Module';
22
24
  export * from './features/core/modules/runtime/execution/endge-composition';
23
- export * from './features/core/modules/runtime/execution/endge-project';
25
+ export * from './features/core/modules/runtime/execution/endge-simulation';
26
+ export * from './features/core/modules/runtime/domain/simulation-runtime.types';
24
27
  export * from './features/core/modules/runtime/execution/endge-data-view';
25
28
  export * from './features/core/modules/runtime/execution/endge-response-output';
26
29
  export * from './features/core/modules/runtime/execution/endge-query';
@@ -70,6 +73,7 @@ export * from './features/core/modules/domain/types/component/sfc/ports.types';
70
73
  export * from './features/core/modules/domain/types/component/sfc/ports-source.types';
71
74
  export * from './features/core/modules/domain/types/component/sfc/props-visual.types';
72
75
  export * from './features/core/modules/domain/types/component/sfc/metadata-visual.types';
76
+ export * from './features/core/modules/domain/types/document/document-metadata.types';
73
77
  export * from './features/core/modules/domain/types/component/sfc/visual-projection.types';
74
78
  export * from './features/core/modules/configuration/domain/types/configuration.type';
75
79
  export * from './features/core/modules/domain/types/computation/computation.types';
@@ -92,6 +96,10 @@ export * from './features/core/modules/domain/types/document/query.types';
92
96
  export * from './features/core/modules/workspace/domain/workspace.types';
93
97
  export * from './features/core/kernel/types/bootstrap.types';
94
98
  export * from './features/core/modules/events/domain/events.types';
99
+ export * from './features/core/modules/commands/domain/commands.types';
100
+ export { createContextCommandExecutor } from './features/core/modules/commands/config/commands.config';
101
+ export type { EndgeContextCommandTarget } from './features/core/modules/commands/types/context-command-target.type';
102
+ export type { EndgeCommandExecutor, EndgeCommandsBootOptions, EndgeRemoteCommandTransport } from './features/core/modules/commands/types/command-executor.type';
95
103
  export * from './features/core/modules/mock/domain/types/mock-data.type';
96
104
  export * from './features/core/modules/program/domain/types/program.types';
97
105
  export * from './features/core/modules/program/domain/types/action-program.types';
@@ -101,6 +109,7 @@ export * from './features/core/modules/runtime/domain/vocab-cache.types';
101
109
  export * from './features/core/modules/implementations/domain/implementation.types';
102
110
  export * from './features/core/modules/source/domain/types/action-source.types';
103
111
  export * from './features/core/modules/context/domain/context-persistence.types';
112
+ export * from './features/core/modules/context/domain/context-events.types';
104
113
  export * from './features/core/modules/context/domain/context-state.types';
105
114
  export * from './features/core/modules/runtime/domain/execution-context.types';
106
115
  export * from './features/core/modules/runtime/domain/query-execution.types';
@@ -111,9 +120,12 @@ export * from './features/core/modules/runtime/domain/runtime-registry.types';
111
120
  export * from './features/core/modules/runtime/domain/runtime-resource.types';
112
121
  export * from './features/core/modules/runtime/domain/runtime-scope.types';
113
122
  export * from './features/core/modules/runtime/domain/sfc-render-inspection.type';
114
- export * from './features/core/modules/runtime/domain/runtime-project-session.types';
115
123
  export * from './features/core/modules/runtime/domain/runtime-strategy.types';
116
124
  export * from './features/core/modules/runtime/domain/runtime.types';
125
+ export * from './features/core/modules/runtime/domain/runtime-inspection.types';
126
+ export * from './features/core/modules/runtime/domain/runtime-render-inspection.types';
127
+ export * from './features/core/modules/runtime/domain/component-sfc-render-port.types';
128
+ export { runtimeInspectionMetaKey } from './features/core/modules/runtime/tools/runtime-render-inspection';
117
129
  export * from './features/core/modules/runtime/domain/table-binding.types';
118
130
  export * from './features/core/modules/runtime/domain/table.types';
119
131
  export * from './features/core/modules/source/domain/types/composition-source.types';
@@ -152,7 +164,6 @@ export * from './features/core/modules/domain/entities/RStream';
152
164
  export * from './features/core/modules/domain/entities/RSimulation';
153
165
  export * from './features/core/modules/domain/entities/RUpdate';
154
166
  export * from './features/core/modules/domain/entities/RMock';
155
- export * from './features/core/modules/domain/entities/RQueryFilter';
156
167
  export * from './features/core/modules/domain/entities/RType';
157
168
  export * from './features/core/modules/domain/entities/RComponentDSL';
158
169
  export * from './features/core/modules/domain/entities/RComponentTable';
@@ -160,8 +171,8 @@ export * from './features/core/modules/domain/entities/RComponentTableColumn';
160
171
  export * from './features/core/modules/domain/entities/RConverter';
161
172
  export * from './features/core/modules/domain/entities/RComputation';
162
173
  export * from './features/core/modules/domain/entities/RIntegration';
163
- export * from './features/core/modules/domain/entities/REnvironment';
164
- export * from './features/core/modules/domain/entities/RTenant';
174
+ export * from './features/core/modules/domain/entities/RFacet';
175
+ export * from './features/core/modules/domain/entities/RFacetDocument';
165
176
  export * from './features/core/modules/domain/entities/RPolicy';
166
177
  export * from './features/core/modules/domain/entities/RStyle';
167
178
  export * from './features/core/modules/domain/entities/RConfiguration';
@@ -175,8 +186,6 @@ export * from './features/core/modules/runtime/RuntimeActionRegistry';
175
186
  export * from './features/core/modules/runtime/hosts/FilterViewRuntimeHost';
176
187
  export * from './features/core/modules/domain/entities/RField';
177
188
  export * from './features/core/modules/domain/entities/RFilter';
178
- export * from './features/core/modules/domain/entities/RParameter';
179
- export * from './features/core/modules/domain/entities/RProject';
180
189
  export * from './features/core/modules/domain/entities/RFolder';
181
190
  export * from './features/core/modules/domain/entities/RVersion';
182
191
  export * from './features/core/modules/domain/entities/RPageTemplate';
@@ -200,6 +209,7 @@ export * from './features/core/modules/context/persistence/adapters/LocalStorage
200
209
  export * from './features/core/modules/converters/tools/date/string-to-date';
201
210
  export * from './features/core/modules/converters/tools/date/weekdays-range';
202
211
  export * from './features/core/modules/domain/documents/domain-document-descriptors';
212
+ export * from './features/core/modules/domain/documents/document-metadata';
203
213
  export * from './features/core/modules/domain/documents/service-document-serializer';
204
214
  export * from './features/core/modules/configuration/domain/endge-configuration';
205
215
  export * from './features/core/modules/configuration/domain/configuration-value';
@@ -213,7 +223,7 @@ export * from './features/core/modules/runtime/RuntimeScope';
213
223
  export * from './features/core/modules/runtime/EndgeRuntimeScopes_Module';
214
224
  export * from './features/core/modules/runtime/RuntimeResourceBag';
215
225
  export * from './features/core/modules/runtime/RuntimeHostFactory';
216
- export * from './features/core/modules/runtime/hosts/ProjectRuntimeHost';
226
+ export * from './features/core/modules/runtime/hosts/SimulationRuntimeHost';
217
227
  export * from './features/core/modules/runtime/hosts/PageRuntimeHost';
218
228
  export * from './features/core/modules/runtime/hosts/ComponentSFCRuntimeHost';
219
229
  export * from './features/core/modules/runtime/ComponentSFCEventBoundary';
@@ -257,7 +267,6 @@ export * from './features/core/modules/actions/services/table-actions';
257
267
  export * from './features/core/modules/runtime/services/strategies/ActionRuntimeStrategy';
258
268
  export * from './features/core/modules/runtime/services/strategies/ComponentSFCRuntimeStrategy';
259
269
  export * from './features/core/modules/runtime/services/strategies/PageRuntimeStrategy';
260
- export * from './features/core/modules/runtime/services/strategies/ProjectRuntimeStrategy';
261
270
  export * from './features/core/modules/runtime/services/strategies/QueryRuntimeStrategy';
262
271
  export * from './features/core/modules/runtime/services/strategies/FilterRuntimeStrategy';
263
272
  export * from './features/core/modules/runtime/services/strategies/CompositionRuntimeStrategy';
@@ -265,3 +274,7 @@ export * from './features/core/modules/runtime/services/strategies/StoreRuntimeS
265
274
  export * from './features/core/modules/runtime/services/strategies/StreamRuntimeStrategy';
266
275
  export * from './features/core/modules/runtime/hosts/StreamRuntimeHost';
267
276
  export * from './features/core/modules/runtime/domain/stream-runtime.types';
277
+ export { EndgeDebuggerReadOnlyError } from './features/core/kernel/errors/EndgeDebuggerReadOnlyError';
278
+ export { readOnlyDocument } from './features/core/kernel/tools/read-only-document';
279
+ export { resolveRuntimeTranslation } from './features/core/modules/i18n/tools/resolve-runtime-translation';
280
+ export { resolveRuntimeVocabOptions } from './features/core/modules/runtime/tools/runtime-render-values';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@endge/core",
3
3
  "type": "module",
4
- "version": "9.0.0",
4
+ "version": "11.0.0",
5
5
  "private": false,
6
6
  "packageManager": "pnpm@8.8.0",
7
7
  "license": "Apache-2.0",
@@ -38,7 +38,7 @@
38
38
  "dependencies": {
39
39
  "@babel/parser": "^7.27.2",
40
40
  "@babel/types": "^7.27.1",
41
- "@endge/utils": "^0.26.1",
41
+ "@endge/utils": "^0.27.0",
42
42
  "@vue/compiler-dom": "^3.5.24",
43
43
  "@vue/compiler-sfc": "^3.5.24",
44
44
  "axios": "^1.13.2",
@@ -65,5 +65,5 @@
65
65
  "vite": "^6.1.0",
66
66
  "vitest": "^2.1.9"
67
67
  },
68
- "version_updated": "09.09.2026"
68
+ "version_updated": "11.09.2026"
69
69
  }
@@ -1,9 +0,0 @@
1
- import { EndgeConfigurationContribution } from '../../configuration/domain/types/configuration.type';
2
- import { DuplicateOptions, REntity } from './REntity';
3
- /** Сущность окружения (коллекция environments). Без привязки к проекту. */
4
- export declare class REnvironment extends REntity {
5
- configuration: EndgeConfigurationContribution;
6
- static fromPlain(input: Record<string, unknown>): REnvironment;
7
- toPlain(): Record<string, unknown>;
8
- duplicate(options: DuplicateOptions): REnvironment;
9
- }
@@ -1,11 +0,0 @@
1
- import { DomainDocumentType } from '../types/document/document.types';
2
- import { FilterFieldSchema, RParameterSchema, RuntimeFilterLinkEntity } from '../types/document/query.types';
3
- import { REntity } from './REntity';
4
- export declare class RParameter extends REntity {
5
- description: string | null;
6
- fields: Map<string, FilterFieldSchema>;
7
- runtimeFilters: RuntimeFilterLinkEntity[];
8
- get type(): DomainDocumentType;
9
- static fromPlain(json: RParameterSchema): RParameter;
10
- toPlain(): RParameterSchema;
11
- }
@@ -1,64 +0,0 @@
1
- import { EndgeConfigurationContribution } from '../../configuration/domain/types/configuration.type';
2
- import { DiagnosticsProblemInput } from '../../diagnostics/domain/types/diagnostics.types';
3
- import { REntity } from './REntity';
4
- /**
5
- * Доменная сущность для проекта (projects).
6
- *
7
- * Схема (schema-часть):
8
- * - id: string // identity или строковый id
9
- * - identity: string
10
- * - name: string
11
- * - displayName: string
12
- *
13
- * Storage-мета (через REntity.applyStorageMeta):
14
- * - createdAt, updatedAt, deletedAt, author, active
15
- */
16
- export declare class RProject extends REntity {
17
- /** Source единственного корневого графа принадлежит документу проекта. */
18
- source: string;
19
- sourceVersion: number;
20
- /** Project-level contribution к effective configuration. */
21
- configuration: EndgeConfigurationContribution;
22
- /** Описание проекта */
23
- description: string | null;
24
- /** Slug (URL-имя) */
25
- slug?: string | null;
26
- /** Порядок сортировки в списке */
27
- order?: number | null;
28
- /** Список разрешённых окружений проекта (relationship[] - environments). */
29
- allowedEnvironmentIds: number[];
30
- /**
31
- * Создание проекта из payload-документа:
32
- *
33
- * {
34
- * id: number,
35
- * identity: string,
36
- * displayName: string,
37
- * deletedAt?: string | null,
38
- * author?: string,
39
- * createdAt?: string,
40
- * updatedAt?: string,
41
- * ...
42
- * }
43
- */
44
- /**
45
- * Создание проекта из plain-схемы (schema.toPlain()).
46
- *
47
- * Ожидается структура:
48
- * {
49
- * id: string
50
- * identity?: string
51
- * name?: string
52
- * displayName?: string
53
- * folder?: string | null
54
- * }
55
- */
56
- static fromPlain(json: any): RProject;
57
- /**
58
- * Экспорт только схемы (без storage-меты).
59
- * Используется в EndgeDomain_Module.toPlain().
60
- */
61
- toPlain(): any;
62
- /** Возвращает validation problems проекта без сохранения их внутри entity. */
63
- getDiagnosticProblems(): DiagnosticsProblemInput[];
64
- }
@@ -1,12 +0,0 @@
1
- /** Режим элемента фильтра: свой JSON или ссылка на фильтр из коллекции. */
2
- export type RQueryFilterItemMode = 'inline' | 'reference';
3
- /**
4
- * Один элемент фильтра запроса: либо inline JSON, либо ссылка на доменный фильтр (parameters).
5
- */
6
- export declare class RQueryFilter {
7
- mode: RQueryFilterItemMode;
8
- /** Identity фильтра из коллекции (parameters), если mode === 'reference'. */
9
- filterId: string | null;
10
- inlineJson: string | null;
11
- constructor(init?: Partial<RQueryFilter>);
12
- }
@@ -1,10 +0,0 @@
1
- import { EndgeConfigurationContribution } from '../../configuration/domain/types/configuration.type';
2
- import { DuplicateOptions, REntity } from './REntity';
3
- /** Сущность тенанта (коллекция tenants). */
4
- export declare class RTenant extends REntity {
5
- configuration: EndgeConfigurationContribution;
6
- code: string;
7
- description: string | null;
8
- toPlain(): Record<string, unknown>;
9
- duplicate(options: DuplicateOptions): RTenant;
10
- }
@@ -1,33 +0,0 @@
1
- /**
2
- * Базовая оболочка события, которую можно "отменить".
3
- * Отмена может быть использована эмиттером для stopPropagation.
4
- */
5
- export interface EndgeEventBase<T = unknown> {
6
- readonly isCanceled: boolean;
7
- readonly payload: T;
8
- cancel: () => void;
9
- }
10
- /**
11
- * Базовый класс события (cancellable envelope).
12
- */
13
- export declare class EndgeEvent<T> implements EndgeEventBase<T> {
14
- readonly payload: T;
15
- isCanceled: boolean;
16
- constructor(payload: T);
17
- cancel(): void;
18
- }
19
- /**
20
- * Опции эмита (для stopPropagation).
21
- */
22
- export interface EndgeEmitOptions {
23
- /**
24
- * Если true - прекращает вызов следующих слушателей после cancel().
25
- */
26
- stopOnCancel?: boolean;
27
- }
28
- /**
29
- * События ядра (строго типизированные) - подставь свой интерфейс payloads.
30
- * Например:
31
- * export interface EndgeEventPayloads { 'app:init': {}; ... }
32
- */
33
- export type EndgeEventPayloads = Record<string, unknown>;
@@ -1,31 +0,0 @@
1
- import { RuntimeArtifactReader } from './runtime-host.types';
2
- import { RuntimeScopeHandle } from './runtime-scope.types';
3
- import { CompositionPublicOutputHandle, CompositionRuntimeHostHandle, CompositionSession } from '../../source/domain/types/composition-source.types';
4
- export interface ProjectCompositionHandle<THost extends CompositionRuntimeHostHandle = CompositionRuntimeHostHandle> {
5
- readonly identity: string;
6
- readonly state: 'inactive' | 'active' | 'paused' | 'disposed';
7
- readonly host: THost | null;
8
- readonly outputs: Readonly<Record<string, CompositionPublicOutputHandle>>;
9
- activate: () => Promise<CompositionSession<THost>>;
10
- pause: () => Promise<void>;
11
- resume: () => Promise<void>;
12
- restart: () => Promise<CompositionSession<THost>>;
13
- deactivate: () => Promise<void>;
14
- output: <T = unknown>(name: string) => T | undefined;
15
- }
16
- export interface ProjectRuntimeMountOptions {
17
- /** `declared` сохраняет корневой activateOn; `none` создаёт стабильные handles для сессии по требованию или отладки. */
18
- autoActivate?: 'declared' | 'none';
19
- /** Локальная для сессии проекция артефактов, используемая Preview без изменения Endge.program. */
20
- artifactReader?: RuntimeArtifactReader;
21
- }
22
- export interface ProjectRuntimeSession<THost extends CompositionRuntimeHostHandle = CompositionRuntimeHostHandle> {
23
- readonly id: string;
24
- readonly composition: ProjectCompositionHandle<THost>;
25
- switchScope: (options: {
26
- from?: RuntimeScopeHandle | null;
27
- to: RuntimeScopeHandle;
28
- previous?: 'pause' | 'deactivate';
29
- }) => Promise<void>;
30
- unmount: () => Promise<void>;
31
- }
@@ -1,6 +0,0 @@
1
- import { ProjectRuntimeMountOptions, ProjectRuntimeSession } from '../domain/runtime-project-session.types';
2
- import { ProjectRuntimeHost } from '../hosts/ProjectRuntimeHost';
3
- /** Монтирует один project в изолированную runtime-сессию. */
4
- export declare class EndgeProject {
5
- mount(identity: string, options?: ProjectRuntimeMountOptions): Promise<ProjectRuntimeSession<ProjectRuntimeHost>>;
6
- }
@@ -1,21 +0,0 @@
1
- import { RProject } from '../../domain/entities/RProject';
2
- import { RuntimeArtifactReader, RuntimeHost } from '../domain/runtime-host.types';
3
- import { CompositionRuntimeHost } from './CompositionRuntimeHost';
4
- /** Исполняет собственный корневой граф проекта через общий механизм Composition. */
5
- export declare class ProjectRuntimeHost extends CompositionRuntimeHost<'project'> {
6
- constructor(input: {
7
- id: string;
8
- model: RProject;
9
- parent?: RuntimeHost<any, any> | null;
10
- meta?: Record<string, unknown>;
11
- artifactReader: RuntimeArtifactReader;
12
- });
13
- /** Создаёт host только из валидного артефакта проекта; старые композиции не участвуют. */
14
- static createProjectRuntime(input: {
15
- id: string;
16
- model: RProject;
17
- meta?: Record<string, any>;
18
- parent?: RuntimeHost<any, any> | null;
19
- artifacts: RuntimeArtifactReader;
20
- }): ProjectRuntimeHost | null;
21
- }
@@ -1,9 +0,0 @@
1
- import { RuntimeStrategy } from '../../domain/runtime-strategy.types';
2
- import { RProject } from '../../../domain/entities/RProject';
3
- import { ProjectRuntimeHost } from '../../hosts/ProjectRuntimeHost';
4
- export declare class ProjectRuntimeStrategy implements RuntimeStrategy<RProject> {
5
- readonly id = "runtime:project";
6
- readonly entityType = "project";
7
- supports(model: unknown): model is RProject;
8
- create(ctx: Parameters<RuntimeStrategy<RProject>['create']>[0]): ProjectRuntimeHost | null;
9
- }
@@ -1,2 +0,0 @@
1
- /** Пустой корневой граф нового проекта, готовый к запуску без внешних ресурсов. */
2
- export declare const PROJECT_DEFAULT_SOURCE = "defineComposition({\n activateOn: startup(),\n data: {},\n resources: {},\n runtimes: {},\n hooks: [],\n outputs: {},\n})\n";