@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.
- package/ReadMe.md +1 -1
- package/dist/core.cjs +488 -513
- package/dist/core.js +85221 -84928
- package/dist/domain/entities/endge/EndgeFederation.d.ts +8 -8
- package/dist/domain/entities/endge/EndgeFederationStorage.d.ts +5 -0
- package/dist/domain/entities/endge/EndgeModule.d.ts +1 -1
- package/dist/domain/entities/endge/EndgeSlotRegistry.d.ts +4 -4
- package/dist/domain/entities/endge/Subscribable.d.ts +20 -0
- package/dist/domain/entities/reflect/RAction.d.ts +1 -1
- package/dist/domain/entities/reflect/RAuthProfile.d.ts +1 -1
- package/dist/domain/entities/reflect/RComponent.d.ts +1 -1
- package/dist/domain/entities/reflect/RComponentBase.d.ts +2 -2
- package/dist/domain/entities/reflect/RComponentCore.d.ts +1 -1
- package/dist/domain/entities/reflect/RComponentSFC.d.ts +1 -1
- package/dist/domain/entities/reflect/RComponentTableColumn.d.ts +2 -2
- package/dist/domain/entities/reflect/RConverter.d.ts +1 -1
- package/dist/domain/entities/reflect/RFilter.d.ts +1 -1
- package/dist/domain/entities/reflect/RMock.d.ts +1 -1
- package/dist/domain/entities/reflect/RNavigation.d.ts +1 -1
- package/dist/domain/entities/reflect/RParameter.d.ts +1 -1
- package/dist/domain/entities/reflect/RQuery.d.ts +1 -1
- package/dist/domain/entities/runtime/ComponentSFCEventBoundary.d.ts +14 -14
- package/dist/domain/entities/runtime/RuntimeAppScope.d.ts +2 -2
- package/dist/domain/entities/runtime/RuntimeHostBase.d.ts +5 -5
- package/dist/domain/entities/runtime/RuntimeHostRegistry.d.ts +2 -2
- package/dist/domain/entities/runtime/RuntimeScopeRegistry.d.ts +1 -1
- package/dist/domain/entities/runtime/hosts/ComponentSFCRuntimeHost.d.ts +5 -5
- package/dist/domain/entities/runtime/hosts/CompositionRuntimeHost.d.ts +3 -3
- package/dist/domain/entities/runtime/hosts/FilterRuntimeHost.d.ts +1 -1
- package/dist/domain/entities/runtime/hosts/FilterViewRuntimeHost.d.ts +2 -2
- package/dist/domain/entities/runtime/hosts/StoreRuntimeHost.d.ts +1 -1
- package/dist/domain/types/auth/auth-profile.types.d.ts +5 -5
- package/dist/domain/types/component/sfc/ir.types.d.ts +2 -2
- package/dist/domain/types/component/sfc/metadata-visual.types.d.ts +1 -1
- package/dist/domain/types/component/sfc/ports-source.types.d.ts +2 -2
- package/dist/domain/types/component/sfc/ports.types.d.ts +1 -1
- package/dist/domain/types/component/sfc/props-visual.types.d.ts +1 -1
- package/dist/domain/types/component/sfc/tag-input-contract.types.d.ts +1 -1
- package/dist/domain/types/component/sfc/visual-projection.types.d.ts +3 -3
- package/dist/domain/types/computation/computation-program.types.d.ts +1 -1
- package/dist/domain/types/computation/computation-runtime.types.d.ts +9 -9
- package/dist/domain/types/computation/computation-source.types.d.ts +1 -1
- package/dist/domain/types/configuration/configuration.type.d.ts +1 -1
- package/dist/domain/types/diagnostics/diagnostics-adapter.type.d.ts +6 -6
- package/dist/domain/types/diagnostics/diagnostics.types.d.ts +11 -11
- package/dist/domain/types/document/document.types.d.ts +15 -15
- package/dist/domain/types/document/domain-export.type.d.ts +21 -21
- package/dist/domain/types/document/domain-provider.type.d.ts +8 -8
- package/dist/domain/types/document/workspace.types.d.ts +1 -1
- package/dist/domain/types/kernel/bootstrap.types.d.ts +2 -2
- package/dist/domain/types/kernel/endge-modules.types.d.ts +1 -1
- package/dist/domain/types/kernel/events.types.d.ts +4 -4
- package/dist/domain/types/kernel/federation.types.d.ts +1 -1
- package/dist/domain/types/kernel/forge.types.d.ts +5 -5
- package/dist/domain/types/program/action-program.types.d.ts +1 -1
- package/dist/domain/types/program/program.types.d.ts +5 -5
- package/dist/domain/types/runtime/context-persistence.types.d.ts +9 -9
- package/dist/domain/types/runtime/runtime-entity-map.types.d.ts +10 -10
- package/dist/domain/types/runtime/runtime-host.types.d.ts +11 -11
- package/dist/domain/types/runtime/runtime-project-session.types.d.ts +2 -2
- package/dist/domain/types/runtime/runtime-registry.types.d.ts +12 -12
- package/dist/domain/types/runtime/runtime.types.d.ts +4 -4
- package/dist/domain/types/runtime/table-binding.types.d.ts +2 -2
- package/dist/domain/types/source/composition-source.types.d.ts +12 -10
- package/dist/domain/types/source/data-view-source.types.d.ts +1 -1
- package/dist/domain/types/source/filter-source.types.d.ts +1 -1
- package/dist/domain/types/source/query-source.types.d.ts +2 -2
- package/dist/domain/types/source/store-source.types.d.ts +1 -1
- package/dist/domain/types/source/vocab-source.types.d.ts +1 -1
- package/dist/main.d.ts +11 -9
- package/dist/model/{services/auth/OidcBrowserSession_Service.d.ts → adapters/auth/OidcBrowserSession_Adapter.d.ts} +3 -1
- package/dist/{domain/entities/endge → model/adapters/http}/EndgeApi.d.ts +9 -3
- package/dist/model/{services/query/QueryExecutor.d.ts → adapters/query/QueryExecutor_Adapter.d.ts} +14 -3
- package/dist/model/config/ui-composition.config.d.ts +12 -12
- package/dist/model/helpers/raph-phases/endge-runtime-boundary.d.ts +1 -1
- package/dist/model/helpers/raph-phases/runtime-boundary-update-phase.d.ts +1 -1
- package/dist/model/kernel/endge.d.ts +22 -22
- package/dist/model/modules/context/endge-configuration-schema.d.ts +1 -1
- package/dist/model/modules/context/endge-context.d.ts +7 -13
- package/dist/model/modules/context/endge-vars.d.ts +6 -6
- package/dist/model/modules/context/endge-workspace.d.ts +1 -1
- package/dist/model/modules/context/persistence/RuntimeStateController.d.ts +2 -2
- package/dist/model/modules/context/persistence/adapters/LocalStorageContextAdapter.d.ts +2 -0
- package/dist/model/modules/diagnostics/endge-diagnostics.d.ts +36 -14
- package/dist/model/modules/diagnostics/endge-problems.d.ts +1 -1
- package/dist/model/modules/diagnostics/endge-telemetry.d.ts +3 -3
- package/dist/model/modules/domain/endge-domain-repository.d.ts +8 -8
- package/dist/model/modules/domain/endge-domain.d.ts +12 -12
- package/dist/model/modules/domain/endge-types.d.ts +3 -3
- package/dist/model/modules/domain/endge-vocabs.d.ts +29 -29
- package/dist/model/modules/events/endge-events.d.ts +1 -1
- package/dist/model/modules/program/endge-compiler.d.ts +17 -17
- package/dist/model/modules/program/endge-program.d.ts +4 -4
- package/dist/model/modules/program/endge-source.d.ts +1 -1
- package/dist/model/modules/runtime/core/endge-actions.d.ts +4 -4
- package/dist/model/modules/runtime/core/endge-runtime.d.ts +18 -18
- package/dist/model/modules/runtime/execution/action/action-program-executor.d.ts +8 -8
- package/dist/model/modules/runtime/execution/computation/ComputationGraphExecutor.d.ts +8 -8
- package/dist/model/modules/runtime/execution/computation/ComputationResource.d.ts +5 -5
- package/dist/model/modules/runtime/execution/computation/ComputationResourceRegistry.d.ts +3 -3
- package/dist/model/modules/runtime/execution/computation/EndgeComputation.d.ts +19 -19
- package/dist/model/modules/runtime/execution/endge-composition.d.ts +2 -2
- package/dist/model/modules/runtime/execution/endge-computation.d.ts +1 -1
- package/dist/model/modules/runtime/execution/endge-converters.d.ts +7 -7
- package/dist/model/modules/runtime/execution/endge-data-view.d.ts +2 -2
- package/dist/model/modules/runtime/execution/endge-query.d.ts +4 -7
- package/dist/model/modules/runtime/operation/endge-operations.d.ts +6 -6
- package/dist/model/modules/runtime/operation/operation-history.d.ts +10 -10
- package/dist/model/modules/security/endge-auth.d.ts +4 -4
- package/dist/model/modules/ui/endge-styles.d.ts +1 -1
- package/dist/model/modules/ui/endge-ui-registry.d.ts +2 -2
- package/dist/model/modules/ui/endge-ui.d.ts +11 -11
- package/dist/model/modules/ui/registry/UIAdapterRegistry.d.ts +1 -1
- package/dist/model/services/compiler/component-sfc/component-sfc-compile.d.ts +4 -4
- package/dist/model/services/compiler/component-sfc/component-sfc-dependencies.d.ts +1 -1
- package/dist/model/services/compiler/component-sfc/component-sfc-expression.d.ts +1 -1
- package/dist/model/services/compiler/component-sfc/component-sfc-forward.d.ts +1 -1
- package/dist/model/services/compiler/component-sfc/component-sfc-parse.d.ts +1 -1
- package/dist/model/services/compiler/component-sfc/component-sfc-ports.d.ts +2 -2
- package/dist/model/services/compiler/component-sfc/component-sfc-script.d.ts +1 -1
- package/dist/model/services/compiler/component-sfc/component-sfc-table-menu.d.ts +1 -1
- package/dist/model/services/compiler/component-sfc/component-sfc-table-visibility.d.ts +1 -1
- package/dist/model/services/compiler/component-sfc/component-sfc-template.d.ts +2 -2
- package/dist/model/services/compiler/type/type-program-validation.d.ts +1 -1
- package/dist/model/services/runtime/strategies/ActionRuntimeStrategy.d.ts +1 -1
- package/dist/model/services/runtime/strategies/ComponentSFCRuntimeStrategy.d.ts +1 -1
- package/dist/model/services/runtime/strategies/CompositionRuntimeStrategy.d.ts +1 -1
- package/dist/model/services/runtime/strategies/FilterRuntimeStrategy.d.ts +1 -1
- package/dist/model/services/runtime/strategies/PageRuntimeStrategy.d.ts +1 -1
- package/dist/model/services/runtime/strategies/ProjectRuntimeStrategy.d.ts +1 -1
- package/dist/model/services/runtime/strategies/QueryRuntimeStrategy.d.ts +1 -1
- package/dist/model/services/runtime/strategies/StoreRuntimeStrategy.d.ts +1 -1
- package/dist/model/services/runtime/strategies/StreamRuntimeStrategy.d.ts +1 -1
- package/dist/model/services/source-engine/compilers/source-field-compile.d.ts +1 -1
- package/dist/model/services/source-engine/compilers/type-source-compile.d.ts +1 -1
- package/dist/model/services/source-engine/component-sfc/component-sfc-props-source-patch.d.ts +1 -1
- package/dist/model/services/source-engine/strategies/VocabSourcePatchStrategy.d.ts +1 -1
- package/dist/model/services/source-engine/vocab-source-patch.d.ts +1 -1
- package/dist/model/services/tooltip/endge-tooltip-markdown.d.ts +1 -1
- package/dist/test/domain/entities/endge/subscribable.test.d.ts +1 -0
- package/dist/test/model/modules/diagnostics/endge-diagnostics-submodules.test.d.ts +1 -0
- package/dist/tools/component-sfc-edit-trigger.d.ts +1 -1
- package/package.json +20 -26
- /package/dist/domain/types/{ui → presentation}/context-menu.types.d.ts +0 -0
- /package/dist/domain/types/{ui → presentation}/filter-view.type.d.ts +0 -0
- /package/dist/domain/types/{ui → presentation}/jsx.types.d.ts +0 -0
- /package/dist/domain/types/{ui → presentation}/tooltip-markdown.types.d.ts +0 -0
- /package/dist/domain/types/{ui → presentation}/ui-composition.types.d.ts +0 -0
- /package/dist/domain/types/{ui → presentation}/ui-render-adapter.type.d.ts +0 -0
- /package/dist/domain/types/{ui → presentation}/ui.types.d.ts +0 -0
package/dist/main.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export * from './model/modules/runtime/operation/endge-operations';
|
|
|
20
20
|
export * from './model/modules/runtime/core/endge-runtime';
|
|
21
21
|
export * from './model/modules/security/endge-auth';
|
|
22
22
|
export * from './model/modules/security/auth/AuthInteractionRequiredError';
|
|
23
|
-
export * from './model/
|
|
23
|
+
export * from './model/adapters/auth/OidcBrowserSession_Adapter';
|
|
24
24
|
export * from './model/modules/context/endge-i18n';
|
|
25
25
|
export * from './model/modules/context/endge-workspace';
|
|
26
26
|
export * from './model/modules/context/endge-vars';
|
|
@@ -115,17 +115,19 @@ export * from './domain/types/source/update-source.types';
|
|
|
115
115
|
export * from './domain/types/source/type-source.types';
|
|
116
116
|
export * from './domain/types/source/configuration-source.types';
|
|
117
117
|
export * from './domain/types/style/style.types';
|
|
118
|
-
export * from './domain/types/
|
|
119
|
-
export * from './domain/types/
|
|
120
|
-
export * from './domain/types/
|
|
121
|
-
export * from './domain/types/
|
|
122
|
-
export * from './domain/types/
|
|
123
|
-
export * from './domain/types/
|
|
124
|
-
export * from './domain/types/
|
|
118
|
+
export * from './domain/types/presentation/context-menu.types';
|
|
119
|
+
export * from './domain/types/presentation/filter-view.type';
|
|
120
|
+
export * from './domain/types/presentation/jsx.types';
|
|
121
|
+
export * from './domain/types/presentation/ui-composition.types';
|
|
122
|
+
export * from './domain/types/presentation/ui-render-adapter.type';
|
|
123
|
+
export * from './domain/types/presentation/tooltip-markdown.types';
|
|
124
|
+
export * from './domain/types/presentation/ui.types';
|
|
125
125
|
export * from './domain/types/i18n.types';
|
|
126
126
|
export * from './domain/entities/endge/EndgeModuleController';
|
|
127
127
|
export * from './domain/entities/endge/EndgeFederation';
|
|
128
|
+
export * from './domain/entities/endge/EndgeFederationStorage';
|
|
128
129
|
export * from './domain/entities/endge/EndgeModule';
|
|
130
|
+
export * from './domain/entities/endge/Subscribable';
|
|
129
131
|
export * from './domain/entities/reflect/RAction';
|
|
130
132
|
export * from './domain/entities/reflect/RComponent';
|
|
131
133
|
export * from './domain/entities/reflect/RComponentBase';
|
|
@@ -159,7 +161,7 @@ export * from './domain/entities/reflect/REntity';
|
|
|
159
161
|
export * from './domain/entities/runtime/RuntimeBindingScope';
|
|
160
162
|
export * from './domain/entities/runtime/RuntimeActionRegistry';
|
|
161
163
|
export * from './domain/entities/runtime/hosts/FilterViewRuntimeHost';
|
|
162
|
-
export * from './
|
|
164
|
+
export * from './model/adapters/http/EndgeApi';
|
|
163
165
|
export * from './domain/entities/endge/EndgeSlotRegistry';
|
|
164
166
|
export * from './domain/entities/reflect/RField';
|
|
165
167
|
export * from './domain/entities/reflect/RFilter';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AuthSessionSource, AuthSessionSourceResolveOptions, AuthTokenSet, OidcBrowserSessionOptions } from '../../../domain/types/auth/auth-profile.types';
|
|
2
2
|
/** Общий browser OIDC runtime для popup и redirect Authorization Code + PKCE flows. */
|
|
3
|
-
export declare class
|
|
3
|
+
export declare class OidcBrowserSession_Adapter implements AuthSessionSource {
|
|
4
4
|
readonly options: OidcBrowserSessionOptions;
|
|
5
5
|
private readonly _userStore;
|
|
6
6
|
private readonly _manager;
|
|
@@ -24,3 +24,5 @@ export declare class OidcBrowserSession_Service implements AuthSessionSource {
|
|
|
24
24
|
/** Завершает provider session выбранным host flow и всегда удаляет local user. */
|
|
25
25
|
logout(): Promise<void>;
|
|
26
26
|
}
|
|
27
|
+
/** @deprecated Используйте OidcBrowserSession_Adapter. */
|
|
28
|
+
export { OidcBrowserSession_Adapter as OidcBrowserSession_Service };
|
|
@@ -1,11 +1,17 @@
|
|
|
1
|
-
import { HttpMethod, RequestOptions, ServiceDescriptor } from '
|
|
1
|
+
import { HttpMethod, RequestOptions, ServiceDescriptor } from '../../../domain/types/api.types';
|
|
2
2
|
export declare function makeForm(data: Record<string, unknown>): URLSearchParams;
|
|
3
3
|
/**
|
|
4
4
|
* Лёгкая axios-обёртка: JSON по умолчанию, query/headers/abort, генератор сервисов.
|
|
5
5
|
*/
|
|
6
6
|
export declare class EndgeApi {
|
|
7
|
-
|
|
8
|
-
private readonly
|
|
7
|
+
/** HTTP client и изменяемые заголовки принадлежат adapter. */
|
|
8
|
+
private readonly _client;
|
|
9
|
+
private _defaultHeaders;
|
|
10
|
+
/**
|
|
11
|
+
* ----------------------------------------
|
|
12
|
+
* PUBLIC
|
|
13
|
+
* ----------------------------------------
|
|
14
|
+
*/
|
|
9
15
|
constructor(baseUrl: string, defaultHeaders?: Record<string, string>);
|
|
10
16
|
/** При необходимости можно динамически добавить/переопределить заголовки по умолчанию */
|
|
11
17
|
setDefaultHeaders(next: Record<string, string>): void;
|
package/dist/model/{services/query/QueryExecutor.d.ts → adapters/query/QueryExecutor_Adapter.d.ts}
RENAMED
|
@@ -1,14 +1,25 @@
|
|
|
1
|
+
import { AxiosInstance } from 'axios';
|
|
1
2
|
import { QueryProgramOutput } from '../../../domain/types/program/program.types';
|
|
2
3
|
import { QueryExecutionContext } from '../../../domain/types/runtime/query-execution.types';
|
|
3
|
-
import { AxiosInstance } from 'axios';
|
|
4
4
|
/** Выполняет source-only compiled query artifact. */
|
|
5
|
-
export declare class
|
|
6
|
-
|
|
5
|
+
export declare class QueryExecutor_Adapter {
|
|
6
|
+
/** Transport capability для REST и GraphQL requests. */
|
|
7
|
+
private readonly _http;
|
|
8
|
+
/**
|
|
9
|
+
* ----------------------------------------
|
|
10
|
+
* PUBLIC
|
|
11
|
+
* ----------------------------------------
|
|
12
|
+
*/
|
|
7
13
|
constructor(http?: AxiosInstance);
|
|
8
14
|
/** Выполняет только transport/mock слой; output graph материализует QueryRuntimeHost через Raph. */
|
|
9
15
|
execute(context: QueryExecutionContext): Promise<any>;
|
|
10
16
|
/** Извлекает response-backed source output без запуска DataView. */
|
|
11
17
|
readResponseOutput(output: QueryProgramOutput, response: unknown): unknown;
|
|
18
|
+
/**
|
|
19
|
+
* ----------------------------------------
|
|
20
|
+
* PRIVATE
|
|
21
|
+
* ----------------------------------------
|
|
22
|
+
*/
|
|
12
23
|
/** Выбирает protocol executor по compiled artifact type. */
|
|
13
24
|
private _executeByProtocol;
|
|
14
25
|
/** Выполняет GraphQL operation и возвращает ее data, отделяя transport errors от GraphQL errors. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UIAstNodeBase } from '../../domain/types/
|
|
1
|
+
import { UIAstNodeBase } from '../../domain/types/presentation/ui-composition.types';
|
|
2
2
|
/** Декларативная конфигурация встроенных UI-компонентов. */
|
|
3
3
|
export declare const UI_COMPONENT_HOST_DEFINITION_ID = "ui.component-host";
|
|
4
4
|
export declare const ENDGE_UI_DEFAULT_DEFINITIONS: ({
|
|
@@ -33,7 +33,7 @@ export declare const ENDGE_UI_DEFAULT_DEFINITIONS: ({
|
|
|
33
33
|
roles: {
|
|
34
34
|
role: string;
|
|
35
35
|
description: string;
|
|
36
|
-
supportedSurfaces: ("
|
|
36
|
+
supportedSurfaces: ("runtime" | "canvas" | "admin")[];
|
|
37
37
|
}[];
|
|
38
38
|
};
|
|
39
39
|
defaultLayout?: undefined;
|
|
@@ -78,7 +78,7 @@ export declare const ENDGE_UI_DEFAULT_DEFINITIONS: ({
|
|
|
78
78
|
roles: {
|
|
79
79
|
role: string;
|
|
80
80
|
description: string;
|
|
81
|
-
supportedSurfaces: ("
|
|
81
|
+
supportedSurfaces: ("runtime" | "canvas" | "admin")[];
|
|
82
82
|
defaultRendererRefs: {
|
|
83
83
|
admin: string;
|
|
84
84
|
runtime: string;
|
|
@@ -126,7 +126,7 @@ export declare const ENDGE_UI_DEFAULT_DEFINITIONS: ({
|
|
|
126
126
|
roles: {
|
|
127
127
|
role: string;
|
|
128
128
|
description: string;
|
|
129
|
-
supportedSurfaces: ("
|
|
129
|
+
supportedSurfaces: ("runtime" | "canvas" | "admin")[];
|
|
130
130
|
defaultRendererRefs: {
|
|
131
131
|
admin: string;
|
|
132
132
|
runtime: string;
|
|
@@ -174,7 +174,7 @@ export declare const ENDGE_UI_DEFAULT_DEFINITIONS: ({
|
|
|
174
174
|
roles: {
|
|
175
175
|
role: string;
|
|
176
176
|
description: string;
|
|
177
|
-
supportedSurfaces: ("
|
|
177
|
+
supportedSurfaces: ("runtime" | "canvas" | "admin")[];
|
|
178
178
|
defaultRendererRefs: {
|
|
179
179
|
admin: string;
|
|
180
180
|
runtime: string;
|
|
@@ -222,7 +222,7 @@ export declare const ENDGE_UI_DEFAULT_DEFINITIONS: ({
|
|
|
222
222
|
roles: {
|
|
223
223
|
role: string;
|
|
224
224
|
description: string;
|
|
225
|
-
supportedSurfaces: ("
|
|
225
|
+
supportedSurfaces: ("runtime" | "canvas" | "admin")[];
|
|
226
226
|
defaultRendererRefs: {
|
|
227
227
|
admin: string;
|
|
228
228
|
runtime: string;
|
|
@@ -270,7 +270,7 @@ export declare const ENDGE_UI_DEFAULT_DEFINITIONS: ({
|
|
|
270
270
|
roles: {
|
|
271
271
|
role: string;
|
|
272
272
|
description: string;
|
|
273
|
-
supportedSurfaces: ("
|
|
273
|
+
supportedSurfaces: ("runtime" | "canvas" | "admin")[];
|
|
274
274
|
defaultRendererRefs: {
|
|
275
275
|
admin: string;
|
|
276
276
|
runtime: string;
|
|
@@ -319,7 +319,7 @@ export declare const ENDGE_UI_DEFAULT_DEFINITIONS: ({
|
|
|
319
319
|
roles: ({
|
|
320
320
|
role: string;
|
|
321
321
|
description: string;
|
|
322
|
-
supportedSurfaces: ("
|
|
322
|
+
supportedSurfaces: ("runtime" | "canvas" | "admin")[];
|
|
323
323
|
defaultRendererRefs: {
|
|
324
324
|
admin: string;
|
|
325
325
|
runtime: string;
|
|
@@ -375,7 +375,7 @@ export declare const ENDGE_UI_DEFAULT_DEFINITIONS: ({
|
|
|
375
375
|
roles: {
|
|
376
376
|
role: string;
|
|
377
377
|
description: string;
|
|
378
|
-
supportedSurfaces: ("
|
|
378
|
+
supportedSurfaces: ("runtime" | "canvas" | "admin")[];
|
|
379
379
|
defaultRendererRefs: {
|
|
380
380
|
admin: string;
|
|
381
381
|
runtime: string;
|
|
@@ -423,7 +423,7 @@ export declare const ENDGE_UI_DEFAULT_DEFINITIONS: ({
|
|
|
423
423
|
roles: ({
|
|
424
424
|
role: string;
|
|
425
425
|
description: string;
|
|
426
|
-
supportedSurfaces: ("
|
|
426
|
+
supportedSurfaces: ("runtime" | "canvas" | "admin")[];
|
|
427
427
|
defaultRendererRefs: {
|
|
428
428
|
admin: string;
|
|
429
429
|
runtime: string;
|
|
@@ -481,7 +481,7 @@ export declare const ENDGE_UI_DEFAULT_DEFINITIONS: ({
|
|
|
481
481
|
roles: {
|
|
482
482
|
role: string;
|
|
483
483
|
description: string;
|
|
484
|
-
supportedSurfaces: ("
|
|
484
|
+
supportedSurfaces: ("runtime" | "canvas" | "admin")[];
|
|
485
485
|
defaultRendererRefs: {
|
|
486
486
|
admin: string;
|
|
487
487
|
runtime: string;
|
|
@@ -519,6 +519,6 @@ export declare const ENDGE_UI_DEFAULT_JSX_COMPONENTS: {
|
|
|
519
519
|
keywords: string[];
|
|
520
520
|
ast: {
|
|
521
521
|
rootId: string;
|
|
522
|
-
nodes: Record<string, UIAstNodeBase<import('../../domain/types/
|
|
522
|
+
nodes: Record<string, UIAstNodeBase<import('../../domain/types/presentation/ui-composition.types').UIPrimitiveKind, Record<string, unknown>>>;
|
|
523
523
|
};
|
|
524
524
|
}[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DepGraph, PhaseExecutorContext, PhaseName,
|
|
1
|
+
import { DepGraph, PhaseExecutorContext, PhaseName, RaphNode, RaphPhase } from '../../../../../@endge-raph/dist/main.d.ts';
|
|
2
2
|
/** Опции фабрики */
|
|
3
3
|
export interface BoundaryPhaseOptions {
|
|
4
4
|
isBoundary: (n: RaphNode) => boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DepGraph, PhaseEvent, PhaseExecutorContext, PhaseName,
|
|
1
|
+
import { DepGraph, PhaseEvent, PhaseExecutorContext, PhaseName, RaphNode, RaphPhase } from '../../../../../@endge-raph/dist/main.d.ts';
|
|
2
2
|
import { RuntimeDirtyBoundary, RuntimeHost } from '../../../domain/types/runtime/runtime-host.types';
|
|
3
3
|
export interface RuntimeBoundaryAggregatedUpdate {
|
|
4
4
|
node: RaphNode;
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { EndgeFederation } from '../../domain/entities/endge/EndgeFederation';
|
|
2
|
-
import { EndgeBootContext } from '../../domain/types/kernel/bootstrap.types';
|
|
3
1
|
import { EndgeDomainSelection } from '../../domain/types/document/domain-export.type';
|
|
4
|
-
import {
|
|
5
|
-
import { EndgeActions } from '../modules/runtime/core/endge-actions';
|
|
6
|
-
import { EndgeContext } from '../modules/context/endge-context';
|
|
2
|
+
import { EndgeBootContext } from '../../domain/types/kernel/bootstrap.types';
|
|
7
3
|
import { EndgeConfigurationModule } from '../modules/context/endge-configuration';
|
|
8
4
|
import { EndgeConfigurationSchemaModule } from '../modules/context/endge-configuration-schema';
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
5
|
+
import { EndgeContext } from '../modules/context/endge-context';
|
|
6
|
+
import { EndgeI18n } from '../modules/context/endge-i18n';
|
|
7
|
+
import { WorkspaceVariables } from '../modules/context/endge-vars';
|
|
8
|
+
import { EndgeWorkspace } from '../modules/context/endge-workspace';
|
|
11
9
|
import { EndgeDiagnostics } from '../modules/diagnostics/endge-diagnostics';
|
|
10
|
+
import { EndgeRuntimeDebugger } from '../modules/diagnostics/endge-runtime-debugger';
|
|
12
11
|
import { EndgeDomain } from '../modules/domain/endge-domain';
|
|
12
|
+
import { EndgeDomainRepository } from '../modules/domain/endge-domain-repository';
|
|
13
13
|
import { EndgeTypes } from '../modules/domain/endge-types';
|
|
14
|
+
import { EndgeVocabs } from '../modules/domain/endge-vocabs';
|
|
14
15
|
import { EndgeEvents } from '../modules/events/endge-events';
|
|
15
|
-
import { EndgeI18n } from '../modules/context/endge-i18n';
|
|
16
16
|
import { EndgeMock } from '../modules/mock/EndgeMock';
|
|
17
|
+
import { EndgeCompiler } from '../modules/program/endge-compiler';
|
|
17
18
|
import { EndgeProgram } from '../modules/program/endge-program';
|
|
18
|
-
import { EndgeQuery } from '../modules/runtime/execution/endge-query';
|
|
19
|
-
import { EndgeRuntime } from '../modules/runtime/core/endge-runtime';
|
|
20
|
-
import { EndgeRuntimeDebugger } from '../modules/diagnostics/endge-runtime-debugger';
|
|
21
|
-
import { EndgeDomainRepository } from '../modules/domain/endge-domain-repository';
|
|
22
19
|
import { EndgeSource } from '../modules/program/endge-source';
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
20
|
+
import { EndgeActions } from '../modules/runtime/core/endge-actions';
|
|
21
|
+
import { EndgeRuntime } from '../modules/runtime/core/endge-runtime';
|
|
25
22
|
import { EndgeUpdates } from '../modules/runtime/core/endge-updates';
|
|
26
|
-
import { WorkspaceVariables } from '../modules/context/endge-vars';
|
|
27
|
-
import { EndgeVocabs } from '../modules/domain/endge-vocabs';
|
|
28
|
-
import { EndgeWorkspace } from '../modules/context/endge-workspace';
|
|
29
|
-
import { EndgeUIRegistry } from '../modules/ui/endge-ui-registry';
|
|
30
23
|
import { EndgeComposition } from '../modules/runtime/execution/endge-composition';
|
|
31
24
|
import { EndgeComputation } from '../modules/runtime/execution/endge-computation';
|
|
32
25
|
import { EndgeConverters } from '../modules/runtime/execution/endge-converters';
|
|
26
|
+
import { EndgeDataView } from '../modules/runtime/execution/endge-data-view';
|
|
27
|
+
import { EndgeQuery } from '../modules/runtime/execution/endge-query';
|
|
28
|
+
import { EndgeAuth } from '../modules/security/endge-auth';
|
|
29
|
+
import { EndgeStyles } from '../modules/ui/endge-styles';
|
|
30
|
+
import { EndgeUI } from '../modules/ui/endge-ui';
|
|
31
|
+
import { EndgeUIRegistry } from '../modules/ui/endge-ui-registry';
|
|
32
|
+
import { EndgeFederation } from '../../domain/entities/endge/EndgeFederation';
|
|
33
33
|
/**
|
|
34
34
|
* Единая статическая федерация Endge.
|
|
35
35
|
* Хост живёт в `globalThis`, поэтому `Endge` не дублируется даже если пакет подтянут из разных зависимостей.
|
|
@@ -38,7 +38,7 @@ export declare class Endge extends EndgeFederation {
|
|
|
38
38
|
protected static readonly federationId = "endge";
|
|
39
39
|
/**
|
|
40
40
|
* Запрещает создание экземпляров `Endge`.
|
|
41
|
-
* Федерация используется только через статический
|
|
41
|
+
* Федерация используется только через статический public API.
|
|
42
42
|
*/
|
|
43
43
|
private constructor();
|
|
44
44
|
/**
|
|
@@ -59,8 +59,8 @@ export declare class Endge extends EndgeFederation {
|
|
|
59
59
|
* Возвращает domain только с перечисленными документами, сохраняя полную структуру коллекций.
|
|
60
60
|
* Тип секции обязателен, потому что id сущностей уникален только внутри своей коллекции.
|
|
61
61
|
*/
|
|
62
|
-
private static
|
|
63
|
-
private static
|
|
62
|
+
private static _selectDomain;
|
|
63
|
+
private static _createDomainBundle;
|
|
64
64
|
/** Преобразует domain-документы в переносимые записи backend без локального состояния. */
|
|
65
65
|
private static _portableDocuments;
|
|
66
66
|
/** Переводит legacy Query source в обязательный portable Query v2 contract. */
|
|
@@ -73,7 +73,7 @@ export declare class Endge extends EndgeFederation {
|
|
|
73
73
|
private static _portableIdentityIndex;
|
|
74
74
|
/** Разрешает relation object, runtime id или готовую identity в стабильную identity. */
|
|
75
75
|
private static _portableRelationIdentity;
|
|
76
|
-
private static
|
|
76
|
+
private static _resolveSelectionCollection;
|
|
77
77
|
/**
|
|
78
78
|
* Доступ к централизованному модулю logs, spans и adapters.
|
|
79
79
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { EndgeConfigurationValues } from '../../../domain/types/configuration/configuration.type';
|
|
1
2
|
import { EndgeBootContext } from '../../../domain/types/kernel/bootstrap.types';
|
|
2
3
|
import { ProgramDiagnostic } from '../../../domain/types/program/program.types';
|
|
3
|
-
import { EndgeConfigurationValues } from '../../../domain/types/configuration/configuration.type';
|
|
4
4
|
import { EndgeConfigurationSchemaEntry } from '../../../domain/types/source/configuration-source.types';
|
|
5
5
|
import { TypeProgramCatalogEntry } from '../../../domain/types/source/type-source.types';
|
|
6
6
|
import { EndgeModule } from '../../../domain/entities/endge/EndgeModule';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { EndgeContextPersistenceConfig, EndgeKeyboardContextSnapshot, EndgeContextSnapshot, EndgePersistenceScope, EndgeRuntimeContextSnapshot, EndgeSessionIdentityProvider, EndgeStorageAdapter } from '../../../domain/types/runtime/context-persistence.types';
|
|
2
1
|
import { EndgeConfiguration } from '../../../domain/types/configuration/configuration.type';
|
|
3
2
|
import { EndgeDataMode } from '../../../domain/types/document/workspace.types';
|
|
4
3
|
import { EndgeBootContext } from '../../../domain/types/kernel/bootstrap.types';
|
|
4
|
+
import { EndgeContextPersistenceConfig, EndgeContextSnapshot, EndgeKeyboardContextSnapshot, EndgePersistenceScope, EndgeRuntimeContextSnapshot, EndgeSessionIdentityProvider, EndgeStorageAdapter } from '../../../domain/types/runtime/context-persistence.types';
|
|
5
5
|
import { EndgeExecutionContext, EndgeExecutionContextResolutionInput } from '../../../domain/types/runtime/execution-context.types';
|
|
6
|
-
import { EndgeModule } from '../../../domain/entities/endge/EndgeModule';
|
|
7
6
|
import { EndgePersistenceInput } from './persistence/EndgeStorageAdapterRegistry';
|
|
7
|
+
import { EndgeModule } from '../../../domain/entities/endge/EndgeModule';
|
|
8
8
|
import { RuntimeStateController } from './persistence/RuntimeStateController';
|
|
9
9
|
/**
|
|
10
10
|
* Контекст выполнения Endge: текущий workspace/project/environment/user scope
|
|
@@ -119,24 +119,18 @@ export declare class EndgeContext extends EndgeModule {
|
|
|
119
119
|
/** Возвращает текущую locale контекста. */
|
|
120
120
|
get currentLocale(): string;
|
|
121
121
|
/** Нормализует, сохраняет и публикует новую locale. */
|
|
122
|
-
set currentLocale(value: string);
|
|
123
|
-
/** Устанавливает текущую locale через публичный method API. */
|
|
124
122
|
setCurrentLocale(locale: string | null): void;
|
|
125
123
|
/** Согласует текущую locale с effective configuration после workspace resolution. */
|
|
126
124
|
reconcileCurrentLocaleWithWorkspace(configuration?: EndgeConfiguration): void;
|
|
127
125
|
/** Возвращает текущую тему контекста. */
|
|
128
126
|
get currentTheme(): string;
|
|
129
127
|
/** Нормализует, сохраняет и публикует пользовательскую тему. */
|
|
130
|
-
set currentTheme(value: string);
|
|
131
|
-
/** Устанавливает текущую пользовательскую тему. */
|
|
132
128
|
setCurrentTheme(theme: string | null): void;
|
|
133
129
|
/** Согласует сохранённую тему с effective configuration после workspace resolution. */
|
|
134
130
|
reconcileCurrentThemeWithWorkspace(configuration?: EndgeConfiguration): void;
|
|
135
131
|
/** Возвращает текущую временную зону контекста. */
|
|
136
132
|
get currentTimezone(): string;
|
|
137
133
|
/** Нормализует, сохраняет и публикует новую временную зону. */
|
|
138
|
-
set currentTimezone(value: string);
|
|
139
|
-
/** Устанавливает текущую временную зону через публичный method API. */
|
|
140
134
|
setCurrentTimezone(timezone: string | null): void;
|
|
141
135
|
/** Согласует сохранённую временную зону с effective configuration. */
|
|
142
136
|
reconcileCurrentTimezoneWithWorkspace(configuration?: EndgeConfiguration): void;
|
|
@@ -148,16 +142,16 @@ export declare class EndgeContext extends EndgeModule {
|
|
|
148
142
|
/** Persists only an explicit preference; the effective default remains configuration-owned. */
|
|
149
143
|
private _serializeForPersistence;
|
|
150
144
|
/** Выбирает storage adapter для заданной persistence policy. */
|
|
151
|
-
private
|
|
145
|
+
private _resolveAdapter;
|
|
152
146
|
private _syncPersistentContextToRaph;
|
|
153
147
|
private _setRaphValueIfChanged;
|
|
154
148
|
/** Возвращает identity активного workspace для persistence scope. */
|
|
155
149
|
private _requireCurrentWorkspace;
|
|
156
150
|
/** Builds a harmless scope for a controller that never reads or writes state. */
|
|
157
|
-
private
|
|
151
|
+
private _getDisabledPersistenceScope;
|
|
158
152
|
/** Вычисляет tenant и user identity текущей сессии. */
|
|
159
|
-
private
|
|
153
|
+
private _resolveSessionIdentity;
|
|
160
154
|
/** Обновляет одно поле scope и публикует изменение контекста. */
|
|
161
|
-
private
|
|
162
|
-
private
|
|
155
|
+
private _setScopeValue;
|
|
156
|
+
private _assertStructuralContextMutable;
|
|
163
157
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { EndgeGlobalVar } from '../../../domain/types/types';
|
|
2
1
|
import { EndgeWorkspaceVar } from '../../../domain/types/document/workspace.types';
|
|
2
|
+
import { EndgeGlobalVar } from '../../../domain/types/types';
|
|
3
3
|
type EnvRecord = Record<string, unknown>;
|
|
4
4
|
/**
|
|
5
5
|
* WorkspaceVariables resolves effective values of workspace variable definitions.
|
|
@@ -16,9 +16,9 @@ type EnvRecord = Record<string, unknown>;
|
|
|
16
16
|
* Runtime projections are owned by EndgeRuntime, not by this service.
|
|
17
17
|
*/
|
|
18
18
|
export declare class WorkspaceVariables {
|
|
19
|
-
private readonly
|
|
19
|
+
private readonly _getDefinitions;
|
|
20
20
|
private _envyRecord;
|
|
21
|
-
constructor(
|
|
21
|
+
constructor(_getDefinitions: () => EndgeWorkspaceVar[]);
|
|
22
22
|
/**
|
|
23
23
|
* Устанавливает внешние overrides переменных и сразу пересинхронизирует Raph.
|
|
24
24
|
*/
|
|
@@ -30,7 +30,7 @@ export declare class WorkspaceVariables {
|
|
|
30
30
|
/**
|
|
31
31
|
* Возвращает Domain Vars.
|
|
32
32
|
*/
|
|
33
|
-
private
|
|
33
|
+
private _getDomainVars;
|
|
34
34
|
/**
|
|
35
35
|
* Порядок поиска:
|
|
36
36
|
* 1) ENVY
|
|
@@ -75,8 +75,8 @@ export declare class WorkspaceVariables {
|
|
|
75
75
|
/**
|
|
76
76
|
* Внутренний helper модуля: parse Var Token.
|
|
77
77
|
*/
|
|
78
|
-
private static
|
|
78
|
+
private static _parseVarToken;
|
|
79
79
|
/** Читает variable из внешнего environment без изменения module state. */
|
|
80
|
-
private
|
|
80
|
+
private _getExternalValue;
|
|
81
81
|
}
|
|
82
82
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { EndgeBootContext } from '../../../domain/types/kernel/bootstrap.types';
|
|
2
1
|
import { EndgeDataMode, EndgeWorkspaceDefinition, EndgeWorkspaceLocale, EndgeWorkspaceLocaleLabelMode, EndgeWorkspaceTheme, EndgeWorkspaceTimezone, EndgeWorkspaceVar } from '../../../domain/types/document/workspace.types';
|
|
2
|
+
import { EndgeBootContext } from '../../../domain/types/kernel/bootstrap.types';
|
|
3
3
|
import { EndgeModule } from '../../../domain/entities/endge/EndgeModule';
|
|
4
4
|
import { WorkspaceVariables } from './endge-vars';
|
|
5
5
|
/**
|
|
@@ -19,6 +19,6 @@ export declare class RuntimeStateController implements RuntimeStateControllerLik
|
|
|
19
19
|
set<T>(entityKey: string, section: string, value: T): void;
|
|
20
20
|
remove(entityKey: string, section?: string): void;
|
|
21
21
|
clear(): void;
|
|
22
|
-
private
|
|
23
|
-
private
|
|
22
|
+
private _readDocument;
|
|
23
|
+
private _createDefaultDocument;
|
|
24
24
|
}
|
|
@@ -3,6 +3,8 @@ export declare class LocalStorageContextAdapter implements EndgeStorageAdapter {
|
|
|
3
3
|
readonly id: "local";
|
|
4
4
|
isAvailable(): boolean;
|
|
5
5
|
read<T>(key: string): T | undefined;
|
|
6
|
+
/** Читает legacy raw string, который ещё не использовал JSON serialization. */
|
|
7
|
+
readRaw(key: string): string | null;
|
|
6
8
|
write<T>(key: string, value: T): void;
|
|
7
9
|
remove(key: string): void;
|
|
8
10
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { EndgeBootContext } from '../../../domain/types/kernel/bootstrap.types';
|
|
2
|
-
import { EndgeModule } from '../../../domain/entities/endge/EndgeModule';
|
|
3
1
|
import { DiagnosticsAdapter, DiagnosticsAdapterFactory, DiagnosticsFlushResult } from '../../../domain/types/diagnostics/diagnostics-adapter.type';
|
|
4
2
|
import { DiagnosticsContextProvider, DiagnosticsExceptionOptions, DiagnosticsFilter, DiagnosticsListener, DiagnosticsLogInput, DiagnosticsLogOptions, DiagnosticsLogRecord, DiagnosticsRecord, DiagnosticsResource, DiagnosticsSnapshot, DiagnosticsSnapshotOptions, DiagnosticsSpanHandle, DiagnosticsSpanOptions, DiagnosticsSpanRecord, DiagnosticsSubscribeOptions, EndgeDiagnosticsConfiguration } from '../../../domain/types/diagnostics/diagnostics.types';
|
|
3
|
+
import { EndgeBootContext } from '../../../domain/types/kernel/bootstrap.types';
|
|
4
|
+
import { EndgeModule } from '../../../domain/entities/endge/EndgeModule';
|
|
5
5
|
import { DiagnosticsAdapterRegistry } from '../../adapters/diagnostics/DiagnosticsAdapterRegistry';
|
|
6
6
|
import { EndgeProblems } from './endge-problems';
|
|
7
7
|
import { EndgeTelemetry } from './endge-telemetry';
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Родительский diagnostics-модуль ядра.
|
|
10
10
|
* Объединяет append-only telemetry history и replaceable registry актуальных problems.
|
|
11
11
|
*/
|
|
12
12
|
export declare class EndgeDiagnostics extends EndgeModule {
|
|
@@ -16,20 +16,26 @@ export declare class EndgeDiagnostics extends EndgeModule {
|
|
|
16
16
|
readonly telemetry: EndgeTelemetry;
|
|
17
17
|
/** Подмодуль актуальных authoring/build/runtime problems. */
|
|
18
18
|
readonly problems: EndgeProblems;
|
|
19
|
+
/** Состояние automatic snapshot policy и её внутренней подписки. */
|
|
19
20
|
private _automaticErrorTimestamps;
|
|
20
21
|
private _automaticCooldownUntil;
|
|
21
22
|
private _unsubscribeAutomaticRecords;
|
|
22
|
-
/**
|
|
23
|
+
/**
|
|
24
|
+
* ----------------------------------------
|
|
25
|
+
* PUBLIC
|
|
26
|
+
* ----------------------------------------
|
|
27
|
+
*/
|
|
28
|
+
/** Связывает независимые уведомления подмодулей с родительским diagnostics-модулем. */
|
|
23
29
|
constructor();
|
|
24
|
-
/**
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
|
|
32
|
-
/** Сбрасывает
|
|
30
|
+
/** Передаёт setup lifecycle подмодулям в порядке их зависимостей. */
|
|
31
|
+
setup(ctx: EndgeBootContext): Promise<void>;
|
|
32
|
+
/** Передаёт load lifecycle подмодулям в порядке их зависимостей. */
|
|
33
|
+
load(ctx: EndgeBootContext): Promise<void>;
|
|
34
|
+
/** Передаёт build lifecycle подмодулям в порядке их зависимостей. */
|
|
35
|
+
build(ctx: EndgeBootContext): Promise<void>;
|
|
36
|
+
/** Передаёт start lifecycle подмодулям в порядке их зависимостей. */
|
|
37
|
+
start(ctx: EndgeBootContext): Promise<void>;
|
|
38
|
+
/** Сбрасывает подмодули в обратном порядке их запуска. */
|
|
33
39
|
reset(): Promise<void>;
|
|
34
40
|
/** Применяет telemetry, outputs, routes и snapshots configuration. */
|
|
35
41
|
configure(configuration: EndgeDiagnosticsConfiguration, resource?: DiagnosticsResource): void;
|
|
@@ -53,7 +59,7 @@ export declare class EndgeDiagnostics extends EndgeModule {
|
|
|
53
59
|
startSpan(name: string, options?: DiagnosticsSpanOptions): DiagnosticsSpanHandle;
|
|
54
60
|
/** Завершает span, созданный через низкоуровневый DiagnosticsSpanOwner contract. */
|
|
55
61
|
finishSpan(input: Parameters<EndgeTelemetry['finishSpan']>[0]): DiagnosticsSpanRecord | null;
|
|
56
|
-
/** Подписывает listener на любое изменение diagnostics
|
|
62
|
+
/** Подписывает listener на любое изменение родительского diagnostics-модуля. */
|
|
57
63
|
subscribe(listener: () => void): () => void;
|
|
58
64
|
/** Подписывает listener на отфильтрованный telemetry stream. */
|
|
59
65
|
subscribe(filter: DiagnosticsFilter, listener: DiagnosticsListener, options?: DiagnosticsSubscribeOptions): () => void;
|
|
@@ -79,8 +85,24 @@ export declare class EndgeDiagnostics extends EndgeModule {
|
|
|
79
85
|
unregisterAdapter(adapterId: string): Promise<void>;
|
|
80
86
|
/** Выполняет best-effort flush всех telemetry adapters. */
|
|
81
87
|
flush(): Promise<DiagnosticsFlushResult>;
|
|
88
|
+
/**
|
|
89
|
+
* ----------------------------------------
|
|
90
|
+
* PRIVATE
|
|
91
|
+
* ----------------------------------------
|
|
92
|
+
*/
|
|
82
93
|
/** Восстанавливает внутреннюю подписку на ERROR/FATAL records после reset. */
|
|
83
94
|
private _subscribeAutomaticSnapshots;
|
|
84
95
|
/** Применяет sliding window и cooldown политики автоматического snapshot. */
|
|
85
96
|
private _handleAutomaticSnapshotRecord;
|
|
97
|
+
/**
|
|
98
|
+
* ----------------------------------------
|
|
99
|
+
* ACCESS
|
|
100
|
+
* ----------------------------------------
|
|
101
|
+
*/
|
|
102
|
+
/** Возвращает идентификатор текущей telemetry session. */
|
|
103
|
+
get sessionId(): string;
|
|
104
|
+
/** Возвращает effective telemetry configuration. */
|
|
105
|
+
get configuration(): EndgeDiagnosticsConfiguration;
|
|
106
|
+
/** Возвращает resource текущей telemetry session. */
|
|
107
|
+
get resource(): DiagnosticsResource;
|
|
86
108
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { EndgeModule } from '../../../domain/entities/endge/EndgeModule';
|
|
2
1
|
import { DiagnosticsEntityRef, DiagnosticsProblem, DiagnosticsProblemFilter, DiagnosticsProblemInput, DiagnosticsProblemOwner, DiagnosticsProblemsSnapshot } from '../../../domain/types/diagnostics/diagnostics.types';
|
|
2
|
+
import { EndgeModule } from '../../../domain/entities/endge/EndgeModule';
|
|
3
3
|
/** Создаёт стабильного owner для проблем одной доменной сущности и фазы. */
|
|
4
4
|
export declare function createDiagnosticsEntityOwner(entityRef: DiagnosticsEntityRef, phase?: DiagnosticsProblemOwner['phase']): DiagnosticsProblemOwner;
|
|
5
5
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { EndgeBootContext } from '../../../domain/types/kernel/bootstrap.types';
|
|
2
|
-
import { EndgeModule } from '../../../domain/entities/endge/EndgeModule';
|
|
3
1
|
import { DiagnosticsAdapter, DiagnosticsFlushResult } from '../../../domain/types/diagnostics/diagnostics-adapter.type';
|
|
4
|
-
import { DiagnosticsAttributes,
|
|
2
|
+
import { DiagnosticsAttributes, DiagnosticsContextProvider, DiagnosticsCounters, DiagnosticsExceptionOptions, DiagnosticsFilter, DiagnosticsInstrumentationScope, DiagnosticsListener, DiagnosticsLogInput, DiagnosticsLogOptions, DiagnosticsLogRecord, DiagnosticsRecord, DiagnosticsResource, DiagnosticsSnapshot, DiagnosticsSpanEndOptions, DiagnosticsSpanHandle, DiagnosticsSpanOptions, DiagnosticsSpanOwner, DiagnosticsSpanRecord, DiagnosticsSubscribeOptions, DiagnosticsTelemetrySnapshot, EndgeDiagnosticsConfiguration } from '../../../domain/types/diagnostics/diagnostics.types';
|
|
3
|
+
import { EndgeBootContext } from '../../../domain/types/kernel/bootstrap.types';
|
|
5
4
|
import { DiagnosticsAdapterRegistry } from '../../adapters/diagnostics/DiagnosticsAdapterRegistry';
|
|
5
|
+
import { EndgeModule } from '../../../domain/entities/endge/EndgeModule';
|
|
6
6
|
/**
|
|
7
7
|
* Telemetry-подмодуль диагностики Endge.
|
|
8
8
|
* Собирает logs и завершённые spans, хранит bounded session history и маршрутизирует records в adapters.
|
|
@@ -1,10 +1,15 @@
|
|
|
1
|
-
import { DomainDocumentType } from '../../../domain/types/document/document.types';
|
|
2
1
|
import { DocumentCreateRequest, DocumentCreateResult } from '../../../domain/types/document/document-create.type';
|
|
3
2
|
import { EndgeDomainDocumentMove } from '../../../domain/types/document/document-move.type';
|
|
3
|
+
import { DomainDocumentType } from '../../../domain/types/document/document.types';
|
|
4
4
|
import { EndgeDomainRepositoryCapabilities } from '../../../domain/types/document/domain-provider.type';
|
|
5
5
|
import { EndgeDocumentServerState, EndgeLiveDomainSnapshot } from '../../../domain/types/document/domain-snapshot.type';
|
|
6
6
|
import { EndgeBootContext } from '../../../domain/types/kernel/bootstrap.types';
|
|
7
7
|
import { EndgeModule } from '../../../domain/entities/endge/EndgeModule';
|
|
8
|
+
/** Explicit error for writes through bundle/plain or a read-only live backend. */
|
|
9
|
+
export declare class EndgeDomainRepositoryReadOnlyError extends Error {
|
|
10
|
+
readonly code = "provider_read_only";
|
|
11
|
+
constructor(provider: string);
|
|
12
|
+
}
|
|
8
13
|
/** Persistence boundary for live service-backend and read-only local sources. */
|
|
9
14
|
export declare class EndgeDomainRepository extends EndgeModule {
|
|
10
15
|
private _loadedSnapshot;
|
|
@@ -50,14 +55,9 @@ export declare class EndgeDomainRepository extends EndgeModule {
|
|
|
50
55
|
private _saveServiceDocument;
|
|
51
56
|
private _applyServiceDocument;
|
|
52
57
|
private _applyServiceFolder;
|
|
53
|
-
private
|
|
54
|
-
private
|
|
58
|
+
private _resolveDocumentIdentity;
|
|
59
|
+
private _getDomainDocumentByType;
|
|
55
60
|
private _removeDomainDocumentByType;
|
|
56
61
|
private _getDomainCollectionKey;
|
|
57
62
|
private _notifyDomainChanged;
|
|
58
63
|
}
|
|
59
|
-
/** Explicit error for writes through bundle/plain or a read-only live backend. */
|
|
60
|
-
export declare class EndgeDomainRepositoryReadOnlyError extends Error {
|
|
61
|
-
readonly code = "provider_read_only";
|
|
62
|
-
constructor(provider: string);
|
|
63
|
-
}
|