@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.
- package/dist/core.js +41944 -40206
- package/dist/features/core/kernel/config/debugger.config.d.ts +3 -0
- package/dist/features/core/kernel/config/kernel.config.d.ts +2 -2
- package/dist/features/core/kernel/config/modules.config.d.ts +6 -1
- package/dist/features/core/kernel/constants/kernel.constants.d.ts +1 -3
- package/dist/features/core/kernel/endge.d.ts +20 -6
- package/dist/features/core/kernel/errors/EndgeDebuggerReadOnlyError.d.ts +5 -0
- package/dist/features/core/kernel/tools/debugger-snapshot.d.ts +13 -0
- package/dist/features/core/kernel/tools/read-only-document.d.ts +2 -0
- package/dist/features/core/kernel/types/bootstrap.types.d.ts +8 -2
- package/dist/features/core/modules/bridge/adapters/BrowserBridge_Adapter.d.ts +0 -3
- package/dist/features/core/modules/bridge/config/bridge.config.d.ts +17 -0
- package/dist/features/core/modules/bridge/debug/EndgeBridgeDebug_Module.d.ts +59 -4
- package/dist/features/core/modules/bridge/domain/bridge-sync.type.d.ts +30 -0
- package/dist/features/core/modules/bridge/tools/bridge-sync.d.ts +16 -0
- package/dist/features/core/modules/commands/EndgeCommands_Module.d.ts +17 -0
- package/dist/features/core/modules/commands/config/commands.config.d.ts +9 -0
- package/dist/features/core/modules/commands/domain/commands.types.d.ts +38 -0
- package/dist/features/core/modules/commands/services/LocalCommandExecutor.d.ts +9 -0
- package/dist/features/core/modules/commands/services/RemoteCommandExecutor.d.ts +9 -0
- package/dist/features/core/modules/commands/services/context/SetDataModeCommand.d.ts +9 -0
- package/dist/features/core/modules/commands/services/context/SetFacetCommand.d.ts +9 -0
- package/dist/features/core/modules/commands/services/context/SetLocaleCommand.d.ts +9 -0
- package/dist/features/core/modules/commands/services/context/SetThemeCommand.d.ts +9 -0
- package/dist/features/core/modules/commands/services/context/SetTimezoneCommand.d.ts +9 -0
- package/dist/features/core/modules/commands/services/context/SetUserCommand.d.ts +9 -0
- package/dist/features/core/modules/commands/services/context/SetWorkspaceCommand.d.ts +9 -0
- package/dist/features/core/modules/commands/services/runtime/PauseRuntimeCommand.d.ts +9 -0
- package/dist/features/core/modules/commands/services/runtime/ResumeRuntimeCommand.d.ts +9 -0
- package/dist/features/core/modules/commands/services/runtime/StopRuntimeCommand.d.ts +9 -0
- package/dist/features/core/modules/commands/tools/command-payload.d.ts +4 -0
- package/dist/features/core/modules/commands/types/command-executor.type.d.ts +19 -0
- package/dist/features/core/modules/commands/types/context-command-target.type.d.ts +12 -0
- package/dist/features/core/modules/commands/types/runtime-command-target.type.d.ts +5 -0
- package/dist/features/core/modules/compiler/EndgeCompiler_Module.d.ts +7 -6
- package/dist/features/core/modules/compiler/services/action/action-compile.d.ts +2 -0
- package/dist/features/core/modules/compiler/services/computation/computation-compile.d.ts +2 -0
- package/dist/features/core/modules/computations/model/ComputationResource.d.ts +11 -1
- package/dist/features/core/modules/computations/model/ComputationResourceRegistry.d.ts +9 -0
- package/dist/features/core/modules/configuration/EndgeConfiguration_Module.d.ts +4 -2
- package/dist/features/core/modules/configuration/domain/endge-configuration.d.ts +1 -1
- package/dist/features/core/modules/configuration/domain/tooltip.config.d.ts +1 -1
- package/dist/features/core/modules/configuration/domain/types/configuration.type.d.ts +3 -1
- package/dist/features/core/modules/context/EndgeContext_Module.d.ts +33 -22
- package/dist/features/core/modules/context/domain/context-events.types.d.ts +8 -0
- package/dist/features/core/modules/context/domain/context-persistence.types.d.ts +8 -8
- package/dist/features/core/modules/domain/EndgeDomain_Module.d.ts +20 -201
- package/dist/features/core/modules/domain/documents/document-metadata.d.ts +7 -0
- package/dist/features/core/modules/domain/documents/domain-document-descriptors.d.ts +4 -10
- package/dist/features/core/modules/domain/documents/service-document-serializer.d.ts +0 -1
- package/dist/features/core/modules/domain/entities/RComponentBase.d.ts +0 -1
- package/dist/features/core/modules/domain/entities/RComposition.d.ts +1 -1
- package/dist/features/core/modules/domain/entities/REntity.d.ts +2 -0
- package/dist/features/core/modules/domain/entities/RFacet.d.ts +14 -0
- package/dist/features/core/modules/domain/entities/RFacetDocument.d.ts +12 -0
- package/dist/features/core/modules/domain/entities/RFolder.d.ts +5 -0
- package/dist/features/core/modules/domain/entities/RSimulation.d.ts +1 -1
- package/dist/features/core/modules/domain/entities/RWorkspace.d.ts +3 -1
- package/dist/features/core/modules/domain/types/document/codegen.types.d.ts +14 -4
- package/dist/features/core/modules/domain/types/document/document-metadata.types.d.ts +38 -0
- package/dist/features/core/modules/domain/types/document/document.types.d.ts +4 -15
- package/dist/features/core/modules/domain/types/document/domain-export.type.d.ts +4 -7
- package/dist/features/core/modules/domain/types/document/domain-provider.type.d.ts +48 -1
- package/dist/features/core/modules/domain/types/document/domain-snapshot.type.d.ts +6 -1
- package/dist/features/core/modules/domain/types/document/query.types.d.ts +0 -48
- package/dist/features/core/modules/domain-repository/EndgeDomainRepository_Module.d.ts +25 -2
- package/dist/features/core/modules/events/EndgeEvents_Module.d.ts +13 -63
- package/dist/features/core/modules/events/domain/events.types.d.ts +34 -22
- package/dist/features/core/modules/i18n/services/composition-i18n-catalog-projection.d.ts +1 -3
- package/dist/features/core/modules/i18n/tools/resolve-runtime-translation.d.ts +3 -0
- package/dist/features/core/modules/program/domain/types/program.types.d.ts +1 -1
- package/dist/features/core/modules/runtime/ComponentSFCEventBoundary.d.ts +1 -1
- package/dist/features/core/modules/runtime/EndgeRuntimeScopes_Module.d.ts +5 -0
- package/dist/features/core/modules/runtime/EndgeRuntime_Module.d.ts +45 -8
- package/dist/features/core/modules/runtime/domain/component-sfc-render-port.types.d.ts +8 -0
- package/dist/features/core/modules/runtime/domain/execution-context.types.d.ts +5 -12
- package/dist/features/core/modules/runtime/domain/runtime-entity-map.types.d.ts +3 -3
- package/dist/features/core/modules/runtime/domain/runtime-host.types.d.ts +3 -4
- package/dist/features/core/modules/runtime/domain/runtime-inspection.types.d.ts +28 -0
- package/dist/features/core/modules/runtime/domain/runtime-render-inspection.types.d.ts +27 -0
- package/dist/features/core/modules/runtime/domain/runtime.types.d.ts +4 -3
- package/dist/features/core/modules/runtime/domain/simulation-runtime.types.d.ts +25 -0
- package/dist/features/core/modules/runtime/domain/stream-runtime.types.d.ts +3 -1
- package/dist/features/core/modules/runtime/execution/endge-simulation.d.ts +5 -0
- package/dist/features/core/modules/runtime/hosts/ComponentSFCRuntimeHost.d.ts +3 -0
- package/dist/features/core/modules/runtime/hosts/CompositionRuntimeHost.d.ts +2 -3
- package/dist/features/core/modules/runtime/hosts/FilterViewRuntimeHost.d.ts +5 -0
- package/dist/features/core/modules/runtime/hosts/SimulationRuntimeHost.d.ts +52 -0
- package/dist/features/core/modules/runtime/hosts/StreamRuntimeHost.d.ts +7 -4
- package/dist/features/core/modules/runtime/services/simulation/create-simulation-schema.d.ts +5 -0
- package/dist/features/core/modules/runtime/services/simulation/find-simulation-runtime.d.ts +4 -0
- package/dist/features/core/modules/runtime/services/simulation/prepare-simulation-overrides.d.ts +14 -0
- package/dist/features/core/modules/runtime/services/strategies/CompositionRuntimeStrategy.d.ts +1 -1
- package/dist/features/core/modules/runtime/services/strategies/SimulationRuntimeStrategy.d.ts +9 -0
- package/dist/features/core/modules/runtime/services/transports/BrowserWebSocketStreamTransportFactory.d.ts +6 -0
- package/dist/features/core/modules/runtime/tools/runtime-inspection.d.ts +10 -0
- package/dist/features/core/modules/runtime/tools/runtime-render-inspection.d.ts +6 -0
- package/dist/features/core/modules/runtime/tools/runtime-render-values.d.ts +4 -0
- package/dist/features/core/modules/source/EndgeSource_Module.d.ts +2 -2
- package/dist/features/core/modules/source/domain/types/composition-source.types.d.ts +14 -1
- package/dist/features/core/modules/source/domain/types/configuration-source.types.d.ts +2 -0
- package/dist/features/core/modules/source/domain/types/simulation-source.types.d.ts +25 -7
- package/dist/features/core/modules/source/domain/types/source-engine.types.d.ts +9 -4
- package/dist/features/core/modules/source/domain/types/store-source.types.d.ts +2 -0
- package/dist/features/core/modules/source/domain/types/stream-source.types.d.ts +15 -1
- package/dist/features/core/modules/source/domain/types/type-source.types.d.ts +2 -0
- package/dist/features/core/modules/source/domain/types/update-source.types.d.ts +2 -0
- package/dist/features/core/modules/source/services/SimulationSourceResolver.d.ts +3 -2
- package/dist/features/core/modules/source/services/compilers/action-source-compile.d.ts +2 -0
- package/dist/features/core/modules/source/services/compilers/composition-source-compile.d.ts +1 -1
- package/dist/features/core/modules/source/services/component-sfc/component-sfc-metadata-source-patch.d.ts +2 -2
- package/dist/features/core/modules/source/services/strategies/CompositionSourceEngineStrategy.d.ts +2 -2
- package/dist/features/core/modules/source/services/strategies/SimulationSourceEngineStrategy.d.ts +2 -2
- package/dist/features/core/modules/source/templates/simulation.default.source.d.ts +2 -2
- package/dist/features/core/modules/workspace/EndgeWorkspace_Module.d.ts +2 -0
- package/dist/features/core/modules/workspace/domain/workspace.types.d.ts +5 -0
- package/dist/features/federation/EndgeFederation.d.ts +3 -0
- package/dist/features/federation/types/federation.types.d.ts +5 -0
- package/dist/main.d.ts +22 -9
- package/package.json +3 -3
- package/dist/features/core/modules/domain/entities/REnvironment.d.ts +0 -9
- package/dist/features/core/modules/domain/entities/RParameter.d.ts +0 -11
- package/dist/features/core/modules/domain/entities/RProject.d.ts +0 -64
- package/dist/features/core/modules/domain/entities/RQueryFilter.d.ts +0 -12
- package/dist/features/core/modules/domain/entities/RTenant.d.ts +0 -10
- package/dist/features/core/modules/events/domain/EndgeEvent.d.ts +0 -33
- package/dist/features/core/modules/runtime/domain/runtime-project-session.types.d.ts +0 -31
- package/dist/features/core/modules/runtime/execution/endge-project.d.ts +0 -6
- package/dist/features/core/modules/runtime/hosts/ProjectRuntimeHost.d.ts +0 -21
- package/dist/features/core/modules/runtime/services/strategies/ProjectRuntimeStrategy.d.ts +0 -9
- package/dist/features/core/modules/source/templates/project.default.source.d.ts +0 -2
|
@@ -3,7 +3,8 @@ import { EndgeWorkspaceDefinition } from '../../../workspace/domain/workspace.ty
|
|
|
3
3
|
export type EndgeWorkspaceExport = EndgeWorkspaceDefinition;
|
|
4
4
|
/** Persisted-срез домена, который можно восстановить через plain provider. */
|
|
5
5
|
export interface EndgeDomainPlain {
|
|
6
|
-
|
|
6
|
+
facets: unknown[];
|
|
7
|
+
facetDocuments: unknown[];
|
|
7
8
|
types: unknown[];
|
|
8
9
|
queries: unknown[];
|
|
9
10
|
dataViews: unknown[];
|
|
@@ -20,10 +21,7 @@ export interface EndgeDomainPlain {
|
|
|
20
21
|
computations: unknown[];
|
|
21
22
|
integrations: unknown[];
|
|
22
23
|
folders: unknown[];
|
|
23
|
-
parameters: unknown[];
|
|
24
24
|
filters: unknown[];
|
|
25
|
-
environments: unknown[];
|
|
26
|
-
tenants: unknown[];
|
|
27
25
|
policies: unknown[];
|
|
28
26
|
styles: unknown[];
|
|
29
27
|
configurations: unknown[];
|
|
@@ -36,9 +34,8 @@ export interface EndgeDomainPlain {
|
|
|
36
34
|
}
|
|
37
35
|
/** Коллекции документов канонического snapshot нового backend-сервиса. */
|
|
38
36
|
export interface EndgePortableDocuments {
|
|
39
|
-
'
|
|
40
|
-
'
|
|
41
|
-
'environments': unknown[];
|
|
37
|
+
'facets': unknown[];
|
|
38
|
+
'facet-documents': unknown[];
|
|
42
39
|
'folders': unknown[];
|
|
43
40
|
'types': unknown[];
|
|
44
41
|
'queries': unknown[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EndgeLiveDomainDocument, EndgeLiveDomainSnapshot, EndgeWorkspaceServerState } from './domain-snapshot.type';
|
|
2
2
|
/** Канонические коллекции persisted-домена нового backend. */
|
|
3
|
-
export type EndgeDomainCollection = '
|
|
3
|
+
export type EndgeDomainCollection = 'facets' | 'facet-documents' | 'folders' | 'types' | 'queries' | 'data-views' | 'compositions' | 'stores' | 'streams' | 'simulations' | 'updates' | 'mocks' | 'components' | 'actions' | 'filters' | 'converters' | 'computations' | 'vocabs' | 'i18n-bundles' | 'auth-profiles' | 'navigations' | 'styles' | 'configurations';
|
|
4
4
|
/** Возможности выбранного источника домена. */
|
|
5
5
|
export interface EndgeDomainProviderCapabilities {
|
|
6
6
|
snapshot: true;
|
|
@@ -36,6 +36,7 @@ export interface EndgeDocumentsMoveRequest {
|
|
|
36
36
|
workspaceIdentity: string;
|
|
37
37
|
documents: EndgeDocumentMoveRequestItem[];
|
|
38
38
|
folderIdentity: string;
|
|
39
|
+
placement: 'frontend' | 'workspace';
|
|
39
40
|
signal?: AbortSignal;
|
|
40
41
|
}
|
|
41
42
|
/** Актуальный документ и его transport-коллекция после перемещения. */
|
|
@@ -60,6 +61,41 @@ export interface EndgeWorkspaceMutationResult {
|
|
|
60
61
|
};
|
|
61
62
|
etag: string | null;
|
|
62
63
|
}
|
|
64
|
+
export interface EndgeFacetListRequest {
|
|
65
|
+
workspaceIdentity: string;
|
|
66
|
+
includeDeleted?: boolean;
|
|
67
|
+
signal?: AbortSignal;
|
|
68
|
+
}
|
|
69
|
+
export interface EndgeFacetDocumentListRequest extends EndgeFacetListRequest {
|
|
70
|
+
facetIdentity: string;
|
|
71
|
+
}
|
|
72
|
+
export interface EndgeFacetMutationRequest {
|
|
73
|
+
workspaceIdentity: string;
|
|
74
|
+
identity: string;
|
|
75
|
+
document?: Record<string, unknown>;
|
|
76
|
+
expectedRevision?: number;
|
|
77
|
+
signal?: AbortSignal;
|
|
78
|
+
}
|
|
79
|
+
export interface EndgeFacetDocumentMutationRequest extends EndgeFacetMutationRequest {
|
|
80
|
+
facetIdentity: string;
|
|
81
|
+
}
|
|
82
|
+
export interface EndgeFacetReorderItem {
|
|
83
|
+
identity: string;
|
|
84
|
+
expectedRevision: number;
|
|
85
|
+
}
|
|
86
|
+
export interface EndgeFacetReorderRequest {
|
|
87
|
+
workspaceIdentity: string;
|
|
88
|
+
items: EndgeFacetReorderItem[];
|
|
89
|
+
signal?: AbortSignal;
|
|
90
|
+
}
|
|
91
|
+
export interface EndgeFacetMutationResult {
|
|
92
|
+
document: EndgeLiveDomainDocument;
|
|
93
|
+
etag: string | null;
|
|
94
|
+
}
|
|
95
|
+
export interface EndgeFacetReorderResult {
|
|
96
|
+
documents: EndgeLiveDomainDocument[];
|
|
97
|
+
etag: string | null;
|
|
98
|
+
}
|
|
63
99
|
/** Транспортно-независимый источник полного workspace snapshot. */
|
|
64
100
|
export interface EndgeDomainProvider {
|
|
65
101
|
readonly id: string;
|
|
@@ -72,6 +108,17 @@ export interface EndgeDomainProvider {
|
|
|
72
108
|
restoreDocument: (request: EndgeDocumentMutationRequest) => Promise<EndgeDocumentMutationResult>;
|
|
73
109
|
moveDocuments?: (request: EndgeDocumentsMoveRequest) => Promise<EndgeDocumentsMoveResult>;
|
|
74
110
|
updateWorkspace: (request: EndgeWorkspaceMutationRequest) => Promise<EndgeWorkspaceMutationResult>;
|
|
111
|
+
listFacets?: (request: EndgeFacetListRequest) => Promise<EndgeLiveDomainDocument[]>;
|
|
112
|
+
createFacet?: (request: EndgeFacetMutationRequest) => Promise<EndgeFacetMutationResult>;
|
|
113
|
+
updateFacet?: (request: EndgeFacetMutationRequest) => Promise<EndgeFacetMutationResult>;
|
|
114
|
+
softDeleteFacet?: (request: EndgeFacetMutationRequest) => Promise<EndgeFacetMutationResult>;
|
|
115
|
+
restoreFacet?: (request: EndgeFacetMutationRequest) => Promise<EndgeFacetMutationResult>;
|
|
116
|
+
reorderFacets?: (request: EndgeFacetReorderRequest) => Promise<EndgeFacetReorderResult>;
|
|
117
|
+
listFacetDocuments?: (request: EndgeFacetDocumentListRequest) => Promise<EndgeLiveDomainDocument[]>;
|
|
118
|
+
createFacetDocument?: (request: EndgeFacetDocumentMutationRequest) => Promise<EndgeFacetMutationResult>;
|
|
119
|
+
updateFacetDocument?: (request: EndgeFacetDocumentMutationRequest) => Promise<EndgeFacetMutationResult>;
|
|
120
|
+
softDeleteFacetDocument?: (request: EndgeFacetDocumentMutationRequest) => Promise<EndgeFacetMutationResult>;
|
|
121
|
+
restoreFacetDocument?: (request: EndgeFacetDocumentMutationRequest) => Promise<EndgeFacetMutationResult>;
|
|
75
122
|
}
|
|
76
123
|
export type EndgeDomainRepositoryProviderId = 'service-backend' | 'bundle' | 'plain';
|
|
77
124
|
/** Публичные возможности активного источника persisted domain. */
|
|
@@ -26,7 +26,12 @@ export type EndgeLiveDomainDocument = Record<string, unknown> & {
|
|
|
26
26
|
};
|
|
27
27
|
/** Коллекции документов live snapshot нового backend. */
|
|
28
28
|
export type EndgeLivePortableDocuments = {
|
|
29
|
-
[K in keyof EndgePortableDocuments]: EndgeLiveDomainDocument[];
|
|
29
|
+
[K in Exclude<keyof EndgePortableDocuments, 'facets' | 'facet-documents'>]: EndgeLiveDomainDocument[];
|
|
30
|
+
} & {
|
|
31
|
+
/** Optional only for backward-compatible materialization of pre-v6 in-memory snapshots. */
|
|
32
|
+
'facets'?: EndgeLiveDomainDocument[];
|
|
33
|
+
/** Optional only for backward-compatible materialization of pre-v6 in-memory snapshots. */
|
|
34
|
+
'facet-documents'?: EndgeLiveDomainDocument[];
|
|
30
35
|
};
|
|
31
36
|
/** Консистентный live snapshot одного workspace. */
|
|
32
37
|
export type EndgeLiveDomainSnapshot = Omit<EndgeDomainBundle, 'documents' | 'workspace'> & {
|
|
@@ -15,51 +15,3 @@ export interface RQueryAuth {
|
|
|
15
15
|
/** Имя query-параметра (если sendAs='query', по умолчанию 'access_token'). */
|
|
16
16
|
queryParamName?: string;
|
|
17
17
|
}
|
|
18
|
-
/** Режим применения списка фильтров запроса (пока только слияние по порядку). */
|
|
19
|
-
export type RQueryFilterApplyMode = 'merge';
|
|
20
|
-
export type FilterFieldType = 'string' | 'number' | 'boolean' | 'date' | 'datetime' | 'select' | 'multi-select';
|
|
21
|
-
export interface FilterStaticValue {
|
|
22
|
-
label: string;
|
|
23
|
-
value: string;
|
|
24
|
-
}
|
|
25
|
-
export interface FilterDynamicSource {
|
|
26
|
-
type: 'payload' | 'vocabs' | 'query';
|
|
27
|
-
collection?: string;
|
|
28
|
-
mapLabel?: string;
|
|
29
|
-
mapValue?: string;
|
|
30
|
-
queryIdentity?: string;
|
|
31
|
-
}
|
|
32
|
-
export interface FilterFieldSchema {
|
|
33
|
-
key: string;
|
|
34
|
-
label: string;
|
|
35
|
-
description?: string;
|
|
36
|
-
required?: boolean;
|
|
37
|
-
multiple?: boolean;
|
|
38
|
-
type: FilterFieldType;
|
|
39
|
-
staticValues?: FilterStaticValue[];
|
|
40
|
-
dynamicSource?: FilterDynamicSource | null;
|
|
41
|
-
}
|
|
42
|
-
export interface RuntimeFilterLink {
|
|
43
|
-
identity: string;
|
|
44
|
-
displayName: string;
|
|
45
|
-
description?: string;
|
|
46
|
-
}
|
|
47
|
-
/** Схема параметра (коллекция parameters в Payload). */
|
|
48
|
-
export interface RParameterSchema {
|
|
49
|
-
identity: string;
|
|
50
|
-
displayName: string;
|
|
51
|
-
description?: string | null;
|
|
52
|
-
fields: FilterFieldSchema[];
|
|
53
|
-
runtimeFilters?: RuntimeFilterLink[];
|
|
54
|
-
folder?: string | null;
|
|
55
|
-
folderId?: string | number | null;
|
|
56
|
-
author?: string;
|
|
57
|
-
active: boolean;
|
|
58
|
-
deletedAt?: string | null;
|
|
59
|
-
meta?: Record<string, unknown>;
|
|
60
|
-
}
|
|
61
|
-
export declare class RuntimeFilterLinkEntity {
|
|
62
|
-
identity: string;
|
|
63
|
-
displayName: string;
|
|
64
|
-
description?: string;
|
|
65
|
-
}
|
|
@@ -4,6 +4,8 @@ import { EndgeDomainDocumentMove } from '../domain/types/document/document-move.
|
|
|
4
4
|
import { DomainDocumentType } from '../domain/types/document/document.types';
|
|
5
5
|
import { EndgeDomainRepositoryCapabilities } from '../domain/types/document/domain-provider.type';
|
|
6
6
|
import { EndgeDocumentServerState, EndgeLiveDomainSnapshot } from '../domain/types/document/domain-snapshot.type';
|
|
7
|
+
import { RFacet } from '../domain/entities/RFacet';
|
|
8
|
+
import { RFacetDocument } from '../domain/entities/RFacetDocument';
|
|
7
9
|
import { EndgeModule } from '../../../federation/EndgeModule';
|
|
8
10
|
/** Явная ошибка записи через bundle/plain или live backend только для чтения. */
|
|
9
11
|
export declare class EndgeDomainRepositoryReadOnlyError extends Error {
|
|
@@ -32,6 +34,7 @@ export declare class EndgeDomainRepository_Module extends EndgeModule<EndgeBootC
|
|
|
32
34
|
loadSnapshot(ctx: EndgeBootContext): Promise<EndgeLiveDomainSnapshot>;
|
|
33
35
|
getLoadedSnapshot(): EndgeLiveDomainSnapshot | null;
|
|
34
36
|
getDocumentServerState(documentType: string, identity: string): EndgeDocumentServerState | null;
|
|
37
|
+
getFacetDocumentServerState(facetIdentity: string, documentIdentity: string): EndgeDocumentServerState | null;
|
|
35
38
|
reset(): void;
|
|
36
39
|
isDocumentIdentityAvailable(documentType: DomainDocumentType, identity: string): Promise<boolean>;
|
|
37
40
|
createDocument(request: DocumentCreateRequest): Promise<DocumentCreateResult>;
|
|
@@ -41,22 +44,42 @@ export declare class EndgeDomainRepository_Module extends EndgeModule<EndgeBootC
|
|
|
41
44
|
}): Promise<void>;
|
|
42
45
|
deleteDocument(documentIdOrIdentity: string, documentType: DomainDocumentType): Promise<void>;
|
|
43
46
|
restoreDocument(documentIdOrIdentity: string, documentType: DomainDocumentType): Promise<void>;
|
|
44
|
-
changeDocumentFolder(documentId: string | number, documentType: DomainDocumentType, folderIdOrIdentity: string | number | null): Promise<void>;
|
|
47
|
+
changeDocumentFolder(documentId: string | number, documentType: DomainDocumentType, folderIdOrIdentity: string | number | null, placement?: 'frontend' | 'workspace'): Promise<void>;
|
|
45
48
|
/** Атомарно переносит несколько persisted-документов в одну папку. */
|
|
46
|
-
changeDocumentsFolder(documents: readonly EndgeDomainDocumentMove[], folderIdOrIdentity: string | number): Promise<number>;
|
|
49
|
+
changeDocumentsFolder(documents: readonly EndgeDomainDocumentMove[], folderIdOrIdentity: string | number, placement?: 'frontend' | 'workspace'): Promise<number>;
|
|
47
50
|
saveFolder(folderId: string): Promise<void>;
|
|
48
51
|
deleteFolder(folderIdentity: string): Promise<void>;
|
|
49
52
|
restoreFolder(folderIdentity: string): Promise<void>;
|
|
53
|
+
listFacets(includeDeleted?: boolean): Promise<RFacet[]>;
|
|
54
|
+
createFacet(document: Record<string, unknown>): Promise<RFacet>;
|
|
55
|
+
updateFacet(identity: string, document: Record<string, unknown>): Promise<RFacet>;
|
|
56
|
+
deleteFacet(identity: string): Promise<RFacet>;
|
|
57
|
+
restoreFacet(identity: string): Promise<RFacet>;
|
|
58
|
+
reorderFacets(identities: readonly string[]): Promise<RFacet[]>;
|
|
59
|
+
listFacetDocuments(facetIdentity: string, includeDeleted?: boolean): Promise<RFacetDocument[]>;
|
|
60
|
+
createFacetDocument(facetIdentity: string, document: Record<string, unknown>): Promise<RFacetDocument>;
|
|
61
|
+
updateFacetDocument(facetIdentity: string, identity: string, document: Record<string, unknown>): Promise<RFacetDocument>;
|
|
62
|
+
deleteFacetDocument(facetIdentity: string, identity: string): Promise<RFacetDocument>;
|
|
63
|
+
restoreFacetDocument(facetIdentity: string, identity: string): Promise<RFacetDocument>;
|
|
50
64
|
toJSON(): Record<string, unknown>;
|
|
51
65
|
/** Не позволяет позднему ответу предыдущего контекста изменить новый Domain. */
|
|
52
66
|
private _captureGeneration;
|
|
53
67
|
private _indexSnapshotServerState;
|
|
54
68
|
private _serverStateKey;
|
|
69
|
+
private _facetDocumentServerStateKey;
|
|
55
70
|
private _requireDocumentServerState;
|
|
56
71
|
private _findServerIdentity;
|
|
72
|
+
private _requireFacetDocumentServerState;
|
|
73
|
+
private _materializeFacet;
|
|
74
|
+
private _materializeFacetDocument;
|
|
75
|
+
private _applyFacet;
|
|
76
|
+
private _applyFacetDocument;
|
|
77
|
+
private _mutateFacetLifecycle;
|
|
78
|
+
private _mutateFacetDocumentLifecycle;
|
|
57
79
|
private _assertMutationsSupported;
|
|
58
80
|
private _serviceProvider;
|
|
59
81
|
private _requireServiceProvider;
|
|
82
|
+
private _requireFacetProviderOperation;
|
|
60
83
|
private _serviceWorkspaceIdentity;
|
|
61
84
|
private _serviceFolderIds;
|
|
62
85
|
private _saveServiceDocument;
|
|
@@ -1,72 +1,22 @@
|
|
|
1
1
|
import { EventCallback, OneOrMany } from '@endge/utils';
|
|
2
|
-
import {
|
|
2
|
+
import { EndgeCoreEventMap, EndgeCustomEventMap, EndgeEvent, EndgePublishedEvent } from './domain/events.types';
|
|
3
3
|
import { EndgeModule } from '../../../federation/EndgeModule';
|
|
4
|
-
/**
|
|
5
|
-
* Модуль событий Endge.
|
|
6
|
-
* Инкапсулирует core/custom event bus и небольшой runtime-кеш последних событий.
|
|
7
|
-
*/
|
|
4
|
+
/** Синхронная шина Core: только подписки, без кеша событий и очереди доставки. */
|
|
8
5
|
export declare class EndgeEvents_Module extends EndgeModule {
|
|
9
|
-
static EVENTS_CACHE_SIZE: number;
|
|
10
6
|
private readonly _bus;
|
|
11
|
-
private
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
setCacheSize(next: number): void;
|
|
20
|
-
/**
|
|
21
|
-
* Внутренний helper модуля: make Cache.
|
|
22
|
-
*/
|
|
23
|
-
private _makeCache;
|
|
24
|
-
/**
|
|
25
|
-
* Возвращает текущую емкость кеша событий.
|
|
26
|
-
*/
|
|
27
|
-
get cacheSize(): number;
|
|
28
|
-
/**
|
|
29
|
-
* Возвращает количество событий, сохраненных в кеше.
|
|
30
|
-
*/
|
|
31
|
-
get cachedCount(): number;
|
|
32
|
-
/**
|
|
33
|
-
* Возвращает снимок кеша событий от старых к новым.
|
|
34
|
-
*/
|
|
35
|
-
get lastEvents(): CachedEvent[];
|
|
36
|
-
/**
|
|
37
|
-
* Очищает кеш последних событий.
|
|
38
|
-
*/
|
|
39
|
-
clearCache(): void;
|
|
40
|
-
/**
|
|
41
|
-
* Подписывает обработчик на типизированные core-события Endge.
|
|
42
|
-
*/
|
|
43
|
-
onEvent<K extends keyof EndgeCoreEventMap & string>(events: OneOrMany<K>, callback: (e: EndgeEvent<EndgeCoreEventMap[K]>) => void): () => void;
|
|
44
|
-
/**
|
|
45
|
-
* Публикует типизированное core-событие Endge.
|
|
46
|
-
*/
|
|
47
|
-
emitEvent<K extends keyof EndgeCoreEventMap & string>(event: K, payload: EndgeCoreEventMap[K], opts?: EndgeEmitOptions): EndgeEvent<EndgeCoreEventMap[K]>;
|
|
48
|
-
/**
|
|
49
|
-
* Подписывает обработчик на динамические пользовательские события.
|
|
50
|
-
*/
|
|
51
|
-
onDynamic<K extends keyof EndgeCustomEventMap & string>(events: OneOrMany<K>, callback: (e: EndgeEvent<EndgeCustomEventMap[K]>) => void): () => void;
|
|
52
|
-
/**
|
|
53
|
-
* Публикует динамическое пользовательское событие.
|
|
54
|
-
*/
|
|
55
|
-
emitDynamic<K extends keyof EndgeCustomEventMap & string>(event: K, payload: EndgeCustomEventMap[K], opts?: EndgeEmitOptions): EndgeEvent<EndgeCustomEventMap[K]>;
|
|
56
|
-
/**
|
|
57
|
-
* Подписывает raw-callback на core-события без обертки EndgeEvent.
|
|
58
|
-
*/
|
|
7
|
+
private readonly _observers;
|
|
8
|
+
private _sequence;
|
|
9
|
+
/** Подписывает наблюдателя на все последующие публикации. */
|
|
10
|
+
onAny(callback: (event: EndgePublishedEvent) => void): () => void;
|
|
11
|
+
onEvent<K extends keyof EndgeCoreEventMap & string>(events: OneOrMany<K>, callback: (event: EndgeEvent<EndgeCoreEventMap[K]>) => void): () => void;
|
|
12
|
+
emitEvent<K extends keyof EndgeCoreEventMap & string>(name: K, payload: EndgeCoreEventMap[K]): EndgePublishedEvent<EndgeCoreEventMap[K]>;
|
|
13
|
+
onDynamic<K extends keyof EndgeCustomEventMap & string>(events: OneOrMany<K>, callback: (event: EndgeEvent<EndgeCustomEventMap[K]>) => void): () => void;
|
|
14
|
+
emitDynamic<K extends keyof EndgeCustomEventMap & string>(name: K, payload: EndgeCustomEventMap[K]): EndgePublishedEvent<EndgeCustomEventMap[K]>;
|
|
59
15
|
on<K extends keyof EndgeCoreEventMap & string>(events: OneOrMany<K>, callback: EventCallback<EndgeCoreEventMap[K]>): void;
|
|
60
|
-
/**
|
|
61
|
-
* Снимает raw-callback с core-событий.
|
|
62
|
-
*/
|
|
63
16
|
off<K extends keyof EndgeCoreEventMap & string>(events: OneOrMany<K>, callback: EventCallback<EndgeCoreEventMap[K]>): void;
|
|
64
|
-
/**
|
|
65
|
-
* Подписывает raw-callback на пользовательские события.
|
|
66
|
-
*/
|
|
67
17
|
onCustom<K extends keyof EndgeCustomEventMap & string>(events: OneOrMany<K>, callback: EventCallback<EndgeCustomEventMap[K]>): void;
|
|
68
|
-
/**
|
|
69
|
-
* Снимает raw-callback с пользовательских событий.
|
|
70
|
-
*/
|
|
71
18
|
offCustom<K extends keyof EndgeCustomEventMap & string>(events: OneOrMany<K>, callback: EventCallback<EndgeCustomEventMap[K]>): void;
|
|
19
|
+
reset(): void;
|
|
20
|
+
private _publish;
|
|
21
|
+
private _reportListenerError;
|
|
72
22
|
}
|
|
@@ -1,22 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*/
|
|
1
|
+
import { RuntimeHostStatus } from '../../runtime/domain/runtime-host.types';
|
|
2
|
+
import { EndgeDataMode } from '../../workspace/domain/workspace.types';
|
|
3
|
+
/** Связка события и identity действия из Domain. */
|
|
4
4
|
export interface EndgeEventBinding {
|
|
5
5
|
event: string;
|
|
6
6
|
actionId: string | null;
|
|
7
7
|
}
|
|
8
|
-
export
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
name: AnyEventName;
|
|
12
|
-
payload: AnyPayload;
|
|
13
|
-
at: number;
|
|
8
|
+
export interface ContextValueChange<T> {
|
|
9
|
+
readonly previous: T;
|
|
10
|
+
readonly value: T;
|
|
14
11
|
}
|
|
15
|
-
|
|
16
|
-
[event: string]: unknown;
|
|
17
|
-
}
|
|
18
|
-
/** Статические события Endge Core. */
|
|
12
|
+
/** Статические события Endge Core о фактически произошедших изменениях. */
|
|
19
13
|
export interface EndgeCoreEventMap {
|
|
14
|
+
'context:workspace-changed': ContextValueChange<string | null>;
|
|
15
|
+
'context:facets-changed': ContextValueChange<Readonly<Record<string, string>>>;
|
|
16
|
+
'context:user-changed': ContextValueChange<string>;
|
|
17
|
+
'context:locale-changed': ContextValueChange<string>;
|
|
18
|
+
'context:theme-changed': ContextValueChange<string>;
|
|
19
|
+
'context:timezone-changed': ContextValueChange<string>;
|
|
20
|
+
'context:data-mode-changed': ContextValueChange<EndgeDataMode>;
|
|
21
|
+
'runtime:data-changed': {
|
|
22
|
+
readonly revision: number;
|
|
23
|
+
};
|
|
24
|
+
'runtime:registry-changed': Record<string, never>;
|
|
25
|
+
'runtime:scopes-changed': Record<string, never>;
|
|
26
|
+
'runtime:host-status-changed': {
|
|
27
|
+
readonly id: string;
|
|
28
|
+
readonly previous: RuntimeHostStatus;
|
|
29
|
+
readonly value: RuntimeHostStatus;
|
|
30
|
+
};
|
|
20
31
|
'updates:message': {
|
|
21
32
|
type: string;
|
|
22
33
|
message: unknown;
|
|
@@ -26,15 +37,16 @@ export interface EndgeCoreEventMap {
|
|
|
26
37
|
count: number;
|
|
27
38
|
};
|
|
28
39
|
}
|
|
29
|
-
export interface
|
|
30
|
-
|
|
40
|
+
export interface EndgeCustomEventMap {
|
|
41
|
+
[event: string]: unknown;
|
|
31
42
|
}
|
|
32
|
-
/**
|
|
33
|
-
|
|
34
|
-
*/
|
|
35
|
-
export declare class EndgeEvent<T> {
|
|
43
|
+
/** Уведомление о свершившемся факте не отменяет операцию owner-а. */
|
|
44
|
+
export interface EndgeEvent<T> {
|
|
36
45
|
readonly payload: T;
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
46
|
+
}
|
|
47
|
+
/** Метаданные одной публикации. Историю хранит потребитель, а не шина. */
|
|
48
|
+
export interface EndgePublishedEvent<T = unknown> extends EndgeEvent<T> {
|
|
49
|
+
readonly name: string;
|
|
50
|
+
readonly at: number;
|
|
51
|
+
readonly sequence: number;
|
|
40
52
|
}
|
|
@@ -10,12 +10,10 @@ export interface CompositionI18nCatalogProjectionOccurrence {
|
|
|
10
10
|
export interface CompositionI18nCatalogProjectionInput {
|
|
11
11
|
artifacts: RuntimeArtifactReader;
|
|
12
12
|
rootIdentities: readonly string[];
|
|
13
|
-
rootEntityType?: 'composition' | 'project';
|
|
14
|
-
targetEntityType?: 'composition' | 'project';
|
|
15
13
|
targetIdentity: string;
|
|
16
14
|
}
|
|
17
15
|
/**
|
|
18
16
|
* Проецирует фактические каталоги i18n только из скомпилированных артефактов Composition.
|
|
19
17
|
* RuntimeHost, lifecycle-хуки и пользовательский runtime source не выполняются.
|
|
20
18
|
*/
|
|
21
|
-
export declare function
|
|
19
|
+
export declare function compositionI18nCatalogs(input: CompositionI18nCatalogProjectionInput): CompositionI18nCatalogProjectionOccurrence[];
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { I18nRuntimeCatalog } from '../domain/i18n.types';
|
|
2
|
+
/** Одно разрешение translation catalog для живого и наблюдаемого renderer. */
|
|
3
|
+
export declare function resolveRuntimeTranslation(catalog: I18nRuntimeCatalog, key: string, locale: string, fallbackLocale: string, fallback?: string): string;
|
|
@@ -14,7 +14,7 @@ export type { ActionProgramPayload } from './action-program.types';
|
|
|
14
14
|
export type { ConfigurationProgramPayload } from '../../../source/domain/types/configuration-source.types';
|
|
15
15
|
export type ProgramArtifactKey = string;
|
|
16
16
|
/** Тип доменной сущности, для которой compiler может построить program artifact. */
|
|
17
|
-
export type ProgramEntityType = 'type' | 'component-sfc' | 'computation' | 'action' | 'query' | 'vocab' | 'data-view' | 'store' | 'stream' | 'simulation' | 'update' | 'filter' | 'composition' | '
|
|
17
|
+
export type ProgramEntityType = 'type' | 'component-sfc' | 'computation' | 'action' | 'query' | 'vocab' | 'data-view' | 'store' | 'stream' | 'simulation' | 'update' | 'filter' | 'composition' | 'style' | 'configuration';
|
|
18
18
|
/** Итоговый статус artifact после компиляции и валидации. */
|
|
19
19
|
export type ProgramArtifactStatus = 'valid' | 'warning' | 'error';
|
|
20
20
|
/** Возможность, которую artifact предоставляет runtime/render слоям. */
|
|
@@ -12,7 +12,7 @@ export declare class ComponentSFCEventBoundary {
|
|
|
12
12
|
private readonly _parentEventTransform?;
|
|
13
13
|
private readonly _requiredPortBindings;
|
|
14
14
|
private readonly _consumedLocalOnce;
|
|
15
|
-
constructor(_host: ComponentSFCRuntimeHost | null, componentIdentity: string, _manifest: ComponentSFCPortManifest, _parent?: ComponentSFCEventBoundary | null, _parentSource?: ComponentSFCEventRuntimeSource | undefined, _parentBindings?: readonly RComponentSFC_IR_EventBinding[], _parentEventTransform?: ((event: string, payload: unknown) => {
|
|
15
|
+
constructor(_host: Pick<ComponentSFCRuntimeHost, 'executeEventPortAction' | 'publishEventPort' | 'emit'> | null, componentIdentity: string, _manifest: ComponentSFCPortManifest, _parent?: ComponentSFCEventBoundary | null, _parentSource?: ComponentSFCEventRuntimeSource | undefined, _parentBindings?: readonly RComponentSFC_IR_EventBinding[], _parentEventTransform?: ((event: string, payload: unknown) => {
|
|
16
16
|
event: string;
|
|
17
17
|
payload: unknown;
|
|
18
18
|
} | null) | undefined, _requiredPortBindings?: readonly ComponentSFCRequiredPortBinding[]);
|
|
@@ -3,6 +3,7 @@ import { RuntimeScope } from './RuntimeScope';
|
|
|
3
3
|
import { EndgeModule } from '../../../federation/EndgeModule';
|
|
4
4
|
/** Индексирует runtime scopes и membership RuntimeHost. */
|
|
5
5
|
export declare class EndgeRuntimeScopes_Module extends EndgeModule {
|
|
6
|
+
private readonly _onChange;
|
|
6
7
|
private readonly _scopes;
|
|
7
8
|
private readonly _scopeByRuntime;
|
|
8
9
|
private readonly _scopeDisposers;
|
|
@@ -13,6 +14,10 @@ export declare class EndgeRuntimeScopes_Module extends EndgeModule {
|
|
|
13
14
|
* PUBLIC
|
|
14
15
|
* ----------------------------------------
|
|
15
16
|
*/
|
|
17
|
+
/** Получает уведомление владельца Runtime без обращения к Core при создании. */
|
|
18
|
+
constructor(_onChange?: () => void);
|
|
19
|
+
/** Публикует завершённое изменение scopes; состояние остаётся у их owners. */
|
|
20
|
+
notify(): void;
|
|
16
21
|
register(scope: RuntimeScope): RuntimeScope;
|
|
17
22
|
transaction<T>(operation: () => T): T;
|
|
18
23
|
get(id: string): RuntimeScope | null;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
import { EndgeBootContext } from '../../kernel/types/bootstrap.types';
|
|
1
2
|
import { RuntimeEntityType } from './domain/runtime-entity-map.types';
|
|
2
3
|
import { RuntimeExecuteOptions } from './domain/runtime-execute.type';
|
|
3
4
|
import { DestroyedRuntimeHostSnapshot, RuntimeHost, RuntimeInspectionLease } from './domain/runtime-host.types';
|
|
5
|
+
import { RuntimeControlOperation, RuntimeControlTarget, RuntimeInspectionSnapshot, RuntimeStatusChange } from './domain/runtime-inspection.types';
|
|
6
|
+
import { RuntimeRenderInspection } from './domain/runtime-render-inspection.types';
|
|
4
7
|
import { AnyRuntimeHost, AnyRuntimeStrategy } from './domain/runtime-strategy.types';
|
|
5
8
|
import { EndgeRuntimeRaphSnapshot, EndgeRuntimeSnapshot, RuntimeExecutableModel } from './domain/runtime.types';
|
|
6
9
|
import { RuntimeAppScopeOptions, RuntimeAppScope } from './RuntimeAppScope';
|
|
@@ -8,19 +11,27 @@ import { EndgeDataMode } from '../workspace/domain/workspace.types';
|
|
|
8
11
|
import { EndgeRuntimeScopes_Module } from './EndgeRuntimeScopes_Module';
|
|
9
12
|
import { EndgeComposition } from './execution/endge-composition';
|
|
10
13
|
import { EndgeDataView } from './execution/endge-data-view';
|
|
11
|
-
import { EndgeProject } from './execution/endge-project';
|
|
12
14
|
import { EndgeQuery } from './execution/endge-query';
|
|
15
|
+
import { EndgeSimulation } from './execution/endge-simulation';
|
|
13
16
|
import { EndgeOperations_Module } from './operation/EndgeOperations_Module';
|
|
14
17
|
import { RuntimeScope } from './RuntimeScope';
|
|
15
18
|
import { EndgeModule } from '../../../federation/EndgeModule';
|
|
16
19
|
/** Модуль создания, регистрации и уничтожения runtime hosts и app scopes. */
|
|
17
|
-
export declare class EndgeRuntime_Module extends EndgeModule {
|
|
20
|
+
export declare class EndgeRuntime_Module extends EndgeModule<EndgeBootContext> {
|
|
18
21
|
readonly query: EndgeQuery;
|
|
19
22
|
readonly dataView: EndgeDataView;
|
|
20
23
|
readonly composition: EndgeComposition;
|
|
21
|
-
readonly
|
|
24
|
+
readonly simulation: EndgeSimulation;
|
|
22
25
|
readonly operations: EndgeOperations_Module;
|
|
23
26
|
readonly scopes: EndgeRuntimeScopes_Module;
|
|
27
|
+
private readonly _onHostStatusChanged;
|
|
28
|
+
private readonly _onRenderChanged;
|
|
29
|
+
private _inspectionMode;
|
|
30
|
+
private _inspection;
|
|
31
|
+
private readonly _dataLeases;
|
|
32
|
+
private _unsubscribeData;
|
|
33
|
+
private _dataRevision;
|
|
34
|
+
private readonly _renderDataOff;
|
|
24
35
|
private _hosts;
|
|
25
36
|
private _strategies;
|
|
26
37
|
private _inited;
|
|
@@ -39,10 +50,12 @@ export declare class EndgeRuntime_Module extends EndgeModule {
|
|
|
39
50
|
acquireDestroyedHostSnapshots(limit: number): RuntimeInspectionLease;
|
|
40
51
|
/** Создаёт default app scope и регистрирует runtime strategies. */
|
|
41
52
|
constructor();
|
|
53
|
+
/** Уведомляет consumers об изменении реестра без передачи runtime data. */
|
|
54
|
+
notify(): void;
|
|
42
55
|
/**
|
|
43
56
|
* Настраивает Raph runtime до загрузки и сборки домена.
|
|
44
57
|
*/
|
|
45
|
-
setup(): void;
|
|
58
|
+
setup(ctx: EndgeBootContext): void;
|
|
46
59
|
/**
|
|
47
60
|
* Регистрирует runtime-фазы в Raph один раз.
|
|
48
61
|
*/
|
|
@@ -55,12 +68,15 @@ export declare class EndgeRuntime_Module extends EndgeModule {
|
|
|
55
68
|
executeAsync(model: RuntimeExecutableModel, options?: RuntimeExecuteOptions): Promise<AnyRuntimeHost | null>;
|
|
56
69
|
/** Разрешает data mode по ближайшему Composition override с fallback на общий Endge context. */
|
|
57
70
|
resolveDataMode(host: RuntimeHost<any, any> | null | undefined): EndgeDataMode;
|
|
71
|
+
/** Монтирует единственную startup Composition текущего Workspace без legacy fallback. */
|
|
72
|
+
mountStartup(options?: Parameters<EndgeComposition['mount']>[1]): Promise<import('../source/domain/types/composition-source.types').CompositionSession<import('./hosts/CompositionRuntimeHost').CompositionRuntimeHost>>;
|
|
58
73
|
/**
|
|
59
74
|
* Регистрирует стратегию запуска runtime-сущности.
|
|
60
75
|
*/
|
|
61
76
|
registerStrategy(strategy: AnyRuntimeStrategy): void;
|
|
62
77
|
/** Создаёт или возвращает именованный root runtime scope приложения. */
|
|
63
78
|
createAppScope(options: RuntimeAppScopeOptions): RuntimeAppScope;
|
|
79
|
+
private _createAppScope;
|
|
64
80
|
/** Возвращает lifecycle scope, которому принадлежит RuntimeHost. */
|
|
65
81
|
getRuntimeScopeByHost(runtimeId: string): RuntimeScope | null;
|
|
66
82
|
/** Возвращает корневой scope обычного запуска приложения. */
|
|
@@ -110,6 +126,31 @@ export declare class EndgeRuntime_Module extends EndgeModule {
|
|
|
110
126
|
includeData: boolean;
|
|
111
127
|
includeGraph: boolean;
|
|
112
128
|
}): EndgeRuntimeRaphSnapshot;
|
|
129
|
+
/** JSON-safe проекция owner-а; Bridge задаёт частоту и набор передаваемых частей. */
|
|
130
|
+
captureInspection(includeData?: boolean): RuntimeInspectionSnapshot;
|
|
131
|
+
/** Прямой импорт факта: не создаёт hosts, не пишет Raph и не выполняет Commands. */
|
|
132
|
+
applyInspectionSnapshot(value: unknown): void;
|
|
133
|
+
/** Событие обновляет только известный экземпляр; новую структуру приносит следующий snapshot. */
|
|
134
|
+
applyInspectionEvent(change: RuntimeStatusChange): void;
|
|
135
|
+
/** Данные остаются снимком для чтения, даже когда локальный Raph уже существует. */
|
|
136
|
+
applyInspectionData(data: unknown, generatedAt: number, render?: RuntimeRenderInspection): void;
|
|
137
|
+
/** Ошибка передачи не маскируется под свежий или пустой снимок данных. */
|
|
138
|
+
applyInspectionDataError(message: string): void;
|
|
139
|
+
/** JSON-safe снимок только данных, без пересборки структуры и Raph graph. */
|
|
140
|
+
captureInspectionData(): {
|
|
141
|
+
data: unknown;
|
|
142
|
+
render?: RuntimeRenderInspection;
|
|
143
|
+
generatedAt: number;
|
|
144
|
+
};
|
|
145
|
+
/** Смена debug session удаляет прошлые данные, не затрагивая локальный runtime. */
|
|
146
|
+
clearInspection(): void;
|
|
147
|
+
get inspection(): Readonly<RuntimeInspectionSnapshot>;
|
|
148
|
+
/** Наблюдение Raph существует только пока у Runtime есть явный consumer. */
|
|
149
|
+
acquireDataChanges(): RuntimeInspectionLease;
|
|
150
|
+
/** Локальная операция над конкретным экземпляром; удалённый вызов идёт через Commands. */
|
|
151
|
+
control(operation: RuntimeControlOperation, input: RuntimeControlTarget): Promise<void>;
|
|
152
|
+
private _requireInspection;
|
|
153
|
+
private _observeRenderChanges;
|
|
113
154
|
/**
|
|
114
155
|
* Корректно разрушает runtime-host по runtime-id.
|
|
115
156
|
*/
|
|
@@ -126,10 +167,6 @@ export declare class EndgeRuntime_Module extends EndgeModule {
|
|
|
126
167
|
reset(): Promise<void>;
|
|
127
168
|
/** Проецирует фактические переменные workspace в runtime namespace Raph. */
|
|
128
169
|
private _syncWorkspaceVariablesToRaph;
|
|
129
|
-
/** Восстанавливает сохранённые значения runtime-фильтров независимо от переменных workspace. */
|
|
130
|
-
private _hydrateRuntimeFilters;
|
|
131
|
-
/** Однократно переносит прежний глобальный storage runtime-фильтров. */
|
|
132
|
-
private _migrateLegacyRuntimeFilters;
|
|
133
170
|
/**
|
|
134
171
|
* Внутренний destroy для host с контролем уведомления подписчиков.
|
|
135
172
|
*/
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ComponentSFCRuntimeHost } from '../hosts/ComponentSFCRuntimeHost';
|
|
2
|
+
import { EndgeStyleSheetArtifact } from '../../styles/domain/types/style.types';
|
|
3
|
+
/** Renderer потребляет этот порт. Его реализация не обязана быть исполняемым RuntimeHost. */
|
|
4
|
+
export type ComponentSFCRenderPort = Pick<ComponentSFCRuntimeHost, 'id' | 'entityIdentity' | 'runtimeState' | 'getIr' | 'getArtifact' | 'getArtifactReader' | 'getComputationResource' | 'releaseComputationResources' | 'readDataMeta' | 'translate' | 'resolveVocabOptions' | 'getEditSession' | 'beginEditSession' | 'updateEditDraft' | 'commitEditSession' | 'cancelEditSession' | 'executeEventPortAction' | 'publishEventPort' | 'setInputSource' | 'on' | 'off' | 'emit'> & {
|
|
5
|
+
readonly readonly?: boolean;
|
|
6
|
+
readonly styleArtifacts?: readonly EndgeStyleSheetArtifact[];
|
|
7
|
+
readonly runtimeScopeIds?: readonly string[];
|
|
8
|
+
};
|
|
@@ -1,20 +1,13 @@
|
|
|
1
1
|
/** Structural context одного полного boot/build lifecycle. */
|
|
2
2
|
export interface EndgeExecutionContext {
|
|
3
|
-
|
|
4
|
-
projectIdentity: string;
|
|
5
|
-
environmentIdentity: string;
|
|
3
|
+
readonly facets: Readonly<Record<string, string>>;
|
|
6
4
|
}
|
|
7
|
-
export interface
|
|
8
|
-
identity: string;
|
|
9
|
-
allowedEnvironmentIds: readonly number[];
|
|
10
|
-
}
|
|
11
|
-
export interface EndgeExecutionContextEnvironmentCandidate {
|
|
12
|
-
id: string | number;
|
|
5
|
+
export interface EndgeExecutionContextFacetCandidate {
|
|
13
6
|
identity: string;
|
|
7
|
+
position: number;
|
|
8
|
+
documents: readonly string[];
|
|
14
9
|
}
|
|
15
10
|
export interface EndgeExecutionContextResolutionInput {
|
|
16
11
|
explicit?: Partial<EndgeExecutionContext>;
|
|
17
|
-
|
|
18
|
-
projects: readonly EndgeExecutionContextProjectCandidate[];
|
|
19
|
-
environments: readonly EndgeExecutionContextEnvironmentCandidate[];
|
|
12
|
+
facets: readonly EndgeExecutionContextFacetCandidate[];
|
|
20
13
|
}
|
|
@@ -3,16 +3,16 @@ import { RComponentSFC } from '../../domain/entities/RComponentSFC';
|
|
|
3
3
|
import { RComposition } from '../../domain/entities/RComposition';
|
|
4
4
|
import { RFilter } from '../../domain/entities/RFilter';
|
|
5
5
|
import { RPage } from '../../domain/entities/RPage';
|
|
6
|
-
import { RProject } from '../../domain/entities/RProject';
|
|
7
6
|
import { RQuery } from '../../domain/entities/RQuery';
|
|
7
|
+
import { RSimulation } from '../../domain/entities/RSimulation';
|
|
8
8
|
import { RStore } from '../../domain/entities/RStore';
|
|
9
9
|
import { RStream } from '../../domain/entities/RStream';
|
|
10
10
|
/**
|
|
11
11
|
* Канонический перечень сущностей, для которых может существовать runtime-host.
|
|
12
12
|
*/
|
|
13
13
|
export interface RuntimeEntityModelMap {
|
|
14
|
-
/**
|
|
15
|
-
'
|
|
14
|
+
/** Владелец отдельного запуска target с локальными подменами. */
|
|
15
|
+
'simulation': RSimulation;
|
|
16
16
|
/** Доменная модель страницы. */
|
|
17
17
|
'page': RPage;
|
|
18
18
|
/** Доменная модель SFC-компонента нового API. */
|