@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
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { EndgeModule } from './EndgeModule';
|
|
1
2
|
import { EndgeBootContext } from '../../types/kernel/bootstrap.types';
|
|
2
3
|
import { EndgeModuleDescriptor, EndgePlugin } from '../../types/kernel/endge-modules.types';
|
|
3
4
|
import { EndgeFederationHost } from '../../types/kernel/federation.types';
|
|
4
|
-
import { EndgeModule } from './EndgeModule';
|
|
5
5
|
/**
|
|
6
6
|
* Общая статическая федерация модулей.
|
|
7
7
|
* Хост федерации живёт в `globalThis`, поэтому один и тот же класс
|
|
@@ -58,11 +58,11 @@ export declare abstract class EndgeFederation {
|
|
|
58
58
|
static tryGetModule<T extends EndgeModule = EndgeModule>(key: string): T | null;
|
|
59
59
|
static hasModule(key: string): boolean;
|
|
60
60
|
protected static get host(): EndgeFederationHost;
|
|
61
|
-
private static
|
|
62
|
-
private static
|
|
63
|
-
private static
|
|
64
|
-
private static
|
|
65
|
-
private static
|
|
66
|
-
private static
|
|
67
|
-
private static
|
|
61
|
+
private static _getFederationId;
|
|
62
|
+
private static _createHost;
|
|
63
|
+
private static _getOrCreateHost;
|
|
64
|
+
private static _requireBootContext;
|
|
65
|
+
private static _installPlugins;
|
|
66
|
+
private static _finalizeModules;
|
|
67
|
+
private static _registry;
|
|
68
68
|
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { EndgeStorageAdapter } from '../../types/runtime/context-persistence.types';
|
|
2
|
+
/** Регистрирует platform adapter для persistence всех федераций. */
|
|
3
|
+
export declare function setEndgeFederationStorageAdapter(adapter: EndgeStorageAdapter | null): void;
|
|
4
|
+
/** Возвращает доступный platform adapter federation persistence. */
|
|
5
|
+
export declare function getEndgeFederationStorageAdapter(): EndgeStorageAdapter | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EndgeBootContext } from '../../types/kernel/bootstrap.types';
|
|
2
|
-
import { Subscribable } from '
|
|
2
|
+
import { Subscribable } from './Subscribable';
|
|
3
3
|
/**
|
|
4
4
|
* Базовый модуль федерации.
|
|
5
5
|
* Все модули являются `Subscribable` и при необходимости могут уведомлять подписчиков через `notify()`.
|
|
@@ -2,13 +2,13 @@ import { VoidFunction } from '@endge/utils';
|
|
|
2
2
|
export declare class EndgeSlotRegistry<T extends {
|
|
3
3
|
id?: string;
|
|
4
4
|
}> {
|
|
5
|
-
private
|
|
6
|
-
private
|
|
7
|
-
private
|
|
5
|
+
private _items;
|
|
6
|
+
private _byId;
|
|
7
|
+
private _listeners;
|
|
8
8
|
add(item: T): VoidFunction;
|
|
9
9
|
remove(item: T): void;
|
|
10
10
|
list(): readonly T[];
|
|
11
11
|
get(id: string): T | undefined;
|
|
12
12
|
subscribe(cb: () => void): VoidFunction;
|
|
13
|
-
private
|
|
13
|
+
private _emit;
|
|
14
14
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/** Минимальный framework-independent contract объекта с подпиской на изменения. */
|
|
2
|
+
export interface SubscribableLike {
|
|
3
|
+
subscribe: (listener: () => void) => () => void;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Публикует изменения владельца состояния без зависимости от UI framework.
|
|
7
|
+
*/
|
|
8
|
+
export declare class Subscribable implements SubscribableLike {
|
|
9
|
+
/** Подписчики текущего владельца состояния. */
|
|
10
|
+
private readonly _subscribers;
|
|
11
|
+
/**
|
|
12
|
+
* ----------------------------------------
|
|
13
|
+
* PUBLIC
|
|
14
|
+
* ----------------------------------------
|
|
15
|
+
*/
|
|
16
|
+
/** Подписывает listener и возвращает идемпотентную функцию отписки. */
|
|
17
|
+
subscribe(listener: () => void): () => void;
|
|
18
|
+
/** Уведомляет текущих подписчиков об изменении владельца состояния. */
|
|
19
|
+
notify(): void;
|
|
20
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { DuplicateOptions, REntity } from './REntity';
|
|
1
2
|
import { EntityRef } from '../../types/document/entity-management.type';
|
|
2
3
|
import { ActionImplementation, ActionTargetSelector } from '../../types/runtime/action.types';
|
|
3
|
-
import { DuplicateOptions, REntity } from './REntity';
|
|
4
4
|
/** Canonical source-backed Action definition. Executable code is supplied by a provider. */
|
|
5
5
|
export declare class RAction extends REntity {
|
|
6
6
|
displayName: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AuthProfileAdapterId, AuthProfileConfig, AuthProfileCredentials, AuthSessionPolicy } from '../../types/auth/auth-profile.types';
|
|
2
1
|
import { DuplicateOptions, REntity } from './REntity';
|
|
2
|
+
import { AuthProfileAdapterId, AuthProfileConfig, AuthProfileCredentials, AuthSessionPolicy } from '../../types/auth/auth-profile.types';
|
|
3
3
|
export declare class RAuthProfile extends REntity {
|
|
4
4
|
displayName: string;
|
|
5
5
|
description: string | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RComponent } from '../../types/component/component.types';
|
|
2
1
|
import { DuplicateOptions } from './REntity';
|
|
2
|
+
import { RComponent } from '../../types/component/component.types';
|
|
3
3
|
/**
|
|
4
4
|
* Создает экземпляр ComponentModel из JSON-объекта.
|
|
5
5
|
* Ожидается, что JSON имеет следующие поля:
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { ComponentType } from '../../types/document/document.types';
|
|
2
|
+
import { REntity } from './REntity';
|
|
1
3
|
import { RField } from './RField';
|
|
2
4
|
import { ComponentKind } from '../../types/types';
|
|
3
|
-
import { REntity } from './REntity';
|
|
4
|
-
import { ComponentType } from '../../types/document/document.types';
|
|
5
5
|
/**
|
|
6
6
|
* Архивная persisted-модель legacy-компонента.
|
|
7
7
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DuplicateOptions, REntity } from './REntity';
|
|
2
2
|
import { RComponentRenderTarget, RComponentSourceKind } from '../../types/component/component-core.types';
|
|
3
3
|
/**
|
|
4
4
|
* Чистая базовая модель компонента нового поколения.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DuplicateOptions } from './REntity';
|
|
2
|
-
import { RComponentCore } from './RComponentCore';
|
|
3
2
|
import { RComponentSFCSource_Parts } from '../../types/component/sfc/source.types';
|
|
3
|
+
import { RComponentCore } from './RComponentCore';
|
|
4
4
|
import { ComponentType } from '../../types/document/document.types';
|
|
5
5
|
/**
|
|
6
6
|
* Новый SFC-компонент Endge.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { EndgeEventBinding } from '../../types/kernel/events.types';
|
|
2
|
-
import { ColumnSortConfig } from '../../types/runtime/table.types';
|
|
3
1
|
import { Constructor } from '@endge/utils';
|
|
4
2
|
import { ColumnComponentType } from '../../types/component/component.types';
|
|
3
|
+
import { EndgeEventBinding } from '../../types/kernel/events.types';
|
|
4
|
+
import { ColumnSortConfig } from '../../types/runtime/table.types';
|
|
5
5
|
export declare class ReflectComponentTableColumnBase {
|
|
6
6
|
id: string;
|
|
7
7
|
isActive: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FilterFieldItemSchema, RFilterSchema } from '../../types/document/filter.types';
|
|
2
1
|
import { DomainDocumentType } from '../../types/document/document.types';
|
|
2
|
+
import { FilterFieldItemSchema, RFilterSchema } from '../../types/document/filter.types';
|
|
3
3
|
import { REntity } from './REntity';
|
|
4
4
|
export declare class RFilter extends REntity {
|
|
5
5
|
displayName: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DuplicateOptions, REntity } from './REntity';
|
|
2
|
-
import { RMockContentSource, RMockContentType } from '../../types/mock/mock-data.type';
|
|
3
2
|
import { DiagnosticsProblemInput } from '../../types/diagnostics/diagnostics.types';
|
|
3
|
+
import { RMockContentSource, RMockContentType } from '../../types/mock/mock-data.type';
|
|
4
4
|
/** Persisted source-first mock document. */
|
|
5
5
|
export declare class RMock extends REntity {
|
|
6
6
|
displayName: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DuplicateOptions, REntity } from './REntity';
|
|
2
2
|
import { DomainDocumentType } from '../../types/document/document.types';
|
|
3
|
-
import { NavigationTreeNodeDoc } from '../../types/document/navigation.types';
|
|
4
3
|
import { EntityManagement } from '../../types/document/entity-management.type';
|
|
4
|
+
import { NavigationTreeNodeDoc } from '../../types/document/navigation.types';
|
|
5
5
|
export interface RNavigationSchema extends EntityManagement {
|
|
6
6
|
id: string;
|
|
7
7
|
identity: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FilterFieldSchema, RParameterSchema, RuntimeFilterLinkEntity } from '../../types/document/query.types';
|
|
2
1
|
import { DomainDocumentType } from '../../types/document/document.types';
|
|
2
|
+
import { FilterFieldSchema, RParameterSchema, RuntimeFilterLinkEntity } from '../../types/document/query.types';
|
|
3
3
|
import { REntity } from './REntity';
|
|
4
4
|
export declare class RParameter extends REntity {
|
|
5
5
|
displayName: string;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { ComponentSFCRuntimeHost } from './hosts/ComponentSFCRuntimeHost';
|
|
2
|
-
import { ComponentSFCEventRuntimeSource, ComponentSFCRequiredPortBinding, ComponentSFCPortManifest } from '../../types/component/sfc/ports.types';
|
|
3
2
|
import { RComponentSFC_IR_EventBinding } from '../../types/component/sfc/ir.types';
|
|
3
|
+
import { ComponentSFCEventRuntimeSource, ComponentSFCPortManifest, ComponentSFCRequiredPortBinding } from '../../types/component/sfc/ports.types';
|
|
4
4
|
/** Mount-scoped Event router for one Component SFC artifact boundary. */
|
|
5
5
|
export declare class ComponentSFCEventBoundary {
|
|
6
|
-
private readonly
|
|
6
|
+
private readonly _host;
|
|
7
7
|
readonly componentIdentity: string;
|
|
8
|
-
private readonly
|
|
9
|
-
private readonly
|
|
10
|
-
private readonly
|
|
11
|
-
private readonly
|
|
12
|
-
private readonly
|
|
13
|
-
private readonly
|
|
14
|
-
private readonly
|
|
15
|
-
constructor(
|
|
8
|
+
private readonly _manifest;
|
|
9
|
+
private readonly _parent;
|
|
10
|
+
private readonly _parentSource?;
|
|
11
|
+
private readonly _parentBindings;
|
|
12
|
+
private readonly _parentEventTransform?;
|
|
13
|
+
private readonly _requiredPortBindings;
|
|
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) => {
|
|
16
16
|
event: string;
|
|
17
17
|
payload: unknown;
|
|
18
|
-
} | null) | undefined,
|
|
18
|
+
} | null) | undefined, _requiredPortBindings?: readonly ComponentSFCRequiredPortBinding[]);
|
|
19
19
|
createChild(componentIdentity: string, manifest: ComponentSFCPortManifest, source: ComponentSFCEventRuntimeSource, bindings?: readonly RComponentSFC_IR_EventBinding[], transform?: (event: string, payload: unknown) => {
|
|
20
20
|
event: string;
|
|
21
21
|
payload: unknown;
|
|
@@ -30,7 +30,7 @@ export declare class ComponentSFCEventBoundary {
|
|
|
30
30
|
emitChild(source: ComponentSFCEventRuntimeSource, event: string, payload: unknown, trace?: string[], depth?: number): Promise<void>;
|
|
31
31
|
/** Emits an Event declared as own by this component. */
|
|
32
32
|
emitOwn(name: string, payload: unknown, trace?: string[], depth?: number): Promise<void>;
|
|
33
|
-
private
|
|
34
|
-
private
|
|
35
|
-
private
|
|
33
|
+
private _dispatch;
|
|
34
|
+
private _resolveRequiredPortAction;
|
|
35
|
+
private _reportError;
|
|
36
36
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RuntimeEntityType } from '../../types/runtime/runtime-entity-map.types';
|
|
2
|
-
import { RuntimeExecutableModel } from '../../types/runtime/runtime.types';
|
|
3
|
-
import { AnyRuntimeHost } from '../../types/runtime/runtime-strategy.types';
|
|
4
2
|
import { RuntimeAppScopeExecuteOptions, RuntimeExecuteOptions } from '../../types/runtime/runtime-execute.type';
|
|
3
|
+
import { AnyRuntimeHost } from '../../types/runtime/runtime-strategy.types';
|
|
4
|
+
import { RuntimeExecutableModel } from '../../types/runtime/runtime.types';
|
|
5
5
|
export type RuntimeAppScopeCollisionPolicy = 'multi' | 'reject' | 'replace';
|
|
6
6
|
export interface RuntimeAppScopeOptions {
|
|
7
7
|
/** Уникальный id scope внутри EndgeRuntime. */
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RaphNode } from '../../../../../@endge-raph/dist/main.d.ts';
|
|
2
|
+
import { ProgramArtifact } from '../../types/program/program.types';
|
|
2
3
|
import { RuntimeStateControllerLike } from '../../types/runtime/context-persistence.types';
|
|
4
|
+
import { RuntimeEntityModelMap, RuntimeEntityType } from '../../types/runtime/runtime-entity-map.types';
|
|
3
5
|
import { RuntimeArtifactReader, RuntimeHost, RuntimeHostArtifactRef, RuntimeHostCapability, RuntimeHostChannel, RuntimeHostContext, RuntimeHostInputBinding, RuntimeHostResource, RuntimeHostSnapshot, RuntimeHostStatus, RuntimeHostUpdateBinding, RuntimeHostUpdateContext } from '../../types/runtime/runtime-host.types';
|
|
4
|
-
import { ProgramArtifact } from '../../types/program/program.types';
|
|
5
6
|
import { RuntimeKind } from '../../types/runtime/runtime.types';
|
|
6
|
-
import { RaphNode } from '../../../../../@endge-raph/dist/main.d.ts';
|
|
7
7
|
import { EventBus } from '@endge/utils';
|
|
8
8
|
export declare abstract class RuntimeHostBase<TType extends RuntimeEntityType, TContext extends RuntimeHostContext<TType> = RuntimeHostContext<TType>, TArtifactPayload = unknown> extends EventBus<Record<string, any>> implements RuntimeHost<TType, TContext, TArtifactPayload> {
|
|
9
9
|
/** Уникальный runtime-id host. */
|
|
@@ -117,7 +117,7 @@ export declare abstract class RuntimeHostBase<TType extends RuntimeEntityType, T
|
|
|
117
117
|
readInput(name: string): unknown;
|
|
118
118
|
readInputs(): Readonly<Record<string, unknown>>;
|
|
119
119
|
bindUpdate(binding: RuntimeHostUpdateBinding): () => void;
|
|
120
|
-
private
|
|
120
|
+
private _unbindUpdate;
|
|
121
121
|
/**
|
|
122
122
|
* ACCESS
|
|
123
123
|
*/
|
|
@@ -157,5 +157,5 @@ export declare abstract class RuntimeHostBase<TType extends RuntimeEntityType, T
|
|
|
157
157
|
* ACCESS
|
|
158
158
|
*/
|
|
159
159
|
protected touch(): void;
|
|
160
|
-
private
|
|
160
|
+
private _serializeContext;
|
|
161
161
|
}
|
|
@@ -51,7 +51,7 @@ export declare class RuntimeHostRegistry implements RuntimeHostRegistryLike {
|
|
|
51
51
|
*/
|
|
52
52
|
clearDeleted(): void;
|
|
53
53
|
setDeletedSnapshotLimit(limit: number): void;
|
|
54
|
-
private
|
|
54
|
+
private _trimDeletedSnapshots;
|
|
55
55
|
/**
|
|
56
56
|
* ACCESS
|
|
57
57
|
*/
|
|
@@ -59,5 +59,5 @@ export declare class RuntimeHostRegistry implements RuntimeHostRegistryLike {
|
|
|
59
59
|
/**
|
|
60
60
|
* ACCESS
|
|
61
61
|
*/
|
|
62
|
-
private
|
|
62
|
+
private _entityKey;
|
|
63
63
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RuntimeHost } from '../../types/runtime/runtime-host.types';
|
|
2
1
|
import { RuntimeScope } from './RuntimeScope';
|
|
2
|
+
import { RuntimeHost } from '../../types/runtime/runtime-host.types';
|
|
3
3
|
/** Индексирует runtime scopes и membership RuntimeHost. */
|
|
4
4
|
export declare class RuntimeScopeRegistry {
|
|
5
5
|
private readonly _scopes;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { RComponentSFC } from '../../reflect/RComponentSFC';
|
|
2
2
|
import { RComponentContract, RComponentDependencies, RComponentRenderTarget } from '../../../types/component/component-core.types';
|
|
3
3
|
import { RComponentSFC_AST } from '../../../types/component/sfc/ast.types';
|
|
4
|
-
import { RComponentSFC_IR, ComponentSFCEditedEventPayload } from '../../../types/component/sfc/ir.types';
|
|
5
4
|
import { RComponentSFC_RuntimeDependencies } from '../../../types/component/sfc/dependencies.types';
|
|
5
|
+
import { ComponentSFCEditedEventPayload, RComponentSFC_IR } from '../../../types/component/sfc/ir.types';
|
|
6
|
+
import { ComponentSFCEventOccurrence, ComponentSFCEventPort, ComponentSFCEventRuntimeSource } from '../../../types/component/sfc/ports.types';
|
|
6
7
|
import { RComponentSFCSource_Parts } from '../../../types/component/sfc/source.types';
|
|
8
|
+
import { ComputationResource } from '../../../types/computation/computation-runtime.types';
|
|
7
9
|
import { ComponentSFCPreviewOptions, ComponentSFCProgramPayload, ProgramDiagnostic } from '../../../types/program/program.types';
|
|
8
|
-
import { ComponentSFCEventOccurrence, ComponentSFCEventPort, ComponentSFCEventRuntimeSource } from '../../../types/component/sfc/ports.types';
|
|
9
10
|
import { RuntimeArtifactReader, RuntimeHost, RuntimeHostContext, RuntimeHostInputSource, RuntimeHostUpdateContext } from '../../../types/runtime/runtime-host.types';
|
|
10
|
-
import { ComputationResource } from '../../../types/computation/computation-runtime.types';
|
|
11
|
-
import { SourceFieldOption } from '../../../types/source/source-expression.types';
|
|
12
11
|
import { VocabOptionMapping } from '../../../types/runtime/vocab-cache.types';
|
|
12
|
+
import { SourceFieldOption } from '../../../types/source/source-expression.types';
|
|
13
13
|
import { RuntimeHostBase } from '../RuntimeHostBase';
|
|
14
14
|
export interface ComponentSFCEditSession {
|
|
15
15
|
key: string;
|
|
@@ -122,7 +122,7 @@ export declare class ComponentSFCRuntimeHost extends RuntimeHostBase<'component-
|
|
|
122
122
|
syncArtifactState(target: RComponentRenderTarget | null): void;
|
|
123
123
|
/** Backward-compatible alias для старого runtime prepare API. */
|
|
124
124
|
preparePlaceholders(target: RComponentRenderTarget | null): void;
|
|
125
|
-
private
|
|
125
|
+
private _makeArtifactResourcePayload;
|
|
126
126
|
/** Подписывает host на shared Vocab path один раз, включая вложенные SFC artifacts. */
|
|
127
127
|
private _ensureVocabSubscription;
|
|
128
128
|
private _createRuntimeBoundaryNodes;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { RComposition } from '../../reflect/RComposition';
|
|
2
2
|
import { FilterViewRuntimeHost } from './FilterViewRuntimeHost';
|
|
3
|
-
import { StoreMutationPlan } from '../../../types/source/update-source.types';
|
|
4
|
-
import { CompositionFilterFieldsSlice, CompositionProgramPayload, CompositionPublicOutputHandle, CompositionRuntimeActivationHandle, CompositionRuntimeChildHandle } from '../../../types/source/composition-source.types';
|
|
5
|
-
import { RuntimeArtifactReader, RuntimeHost, RuntimeHostContext, RuntimeHostInputSource, RuntimeHostUpdateContext } from '../../../types/runtime/runtime-host.types';
|
|
6
3
|
import { I18nRuntimeCatalog } from '../../../types/i18n.types';
|
|
4
|
+
import { RuntimeArtifactReader, RuntimeHost, RuntimeHostContext, RuntimeHostInputSource, RuntimeHostUpdateContext } from '../../../types/runtime/runtime-host.types';
|
|
7
5
|
import { VocabRuntimeCatalog } from '../../../types/runtime/vocab-cache.types';
|
|
6
|
+
import { CompositionFilterFieldsSlice, CompositionProgramPayload, CompositionPublicOutputHandle, CompositionRuntimeActivationHandle, CompositionRuntimeChildHandle } from '../../../types/source/composition-source.types';
|
|
7
|
+
import { StoreMutationPlan } from '../../../types/source/update-source.types';
|
|
8
8
|
import { RuntimeHostBase } from '../RuntimeHostBase';
|
|
9
9
|
import { RuntimeScope } from '../RuntimeScope';
|
|
10
10
|
/** Runtime orchestration host: children, bindings, hooks и public handles. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RFilter } from '../../reflect/RFilter';
|
|
2
|
-
import { FilterProgramPayload, FilterRuntimeActionHandle, FilterRuntimeActionId, FilterRuntimeOutput } from '../../../types/source/filter-source.types';
|
|
3
2
|
import { RuntimeArtifactReader, RuntimeHost, RuntimeHostContext } from '../../../types/runtime/runtime-host.types';
|
|
3
|
+
import { FilterProgramPayload, FilterRuntimeActionHandle, FilterRuntimeActionId, FilterRuntimeOutput } from '../../../types/source/filter-source.types';
|
|
4
4
|
import { SourceFieldDefinition } from '../../../types/source/source-expression.types';
|
|
5
5
|
import { RuntimeHostBase } from '../RuntimeHostBase';
|
|
6
6
|
/** Runtime-владелец Filter state, outputs и Actions. */
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { RFilter } from '../../reflect/RFilter';
|
|
2
2
|
import { FilterRuntimeHost } from './FilterRuntimeHost';
|
|
3
|
+
import { FilterViewControlDefinition, FilterViewRenderModel } from '../../../types/presentation/filter-view.type';
|
|
4
|
+
import { RuntimeHost, RuntimeHostContext } from '../../../types/runtime/runtime-host.types';
|
|
3
5
|
import { CompositionFilterFieldsSlice } from '../../../types/source/composition-source.types';
|
|
4
6
|
import { FilterProgramPayload } from '../../../types/source/filter-source.types';
|
|
5
|
-
import { FilterViewControlDefinition, FilterViewRenderModel } from '../../../types/ui/filter-view.type';
|
|
6
|
-
import { RuntimeHost, RuntimeHostContext } from '../../../types/runtime/runtime-host.types';
|
|
7
7
|
import { RuntimeHostBase } from '../RuntimeHostBase';
|
|
8
8
|
/** Renderable UI-проекция одного Filter runtime без собственного filter state. */
|
|
9
9
|
export declare class FilterViewRuntimeHost extends RuntimeHostBase<'filter', RuntimeHostContext<'filter'>, FilterProgramPayload> {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { RStore } from '../../reflect/RStore';
|
|
2
2
|
import { RuntimeArtifactReader, RuntimeHost, RuntimeHostContext } from '../../../types/runtime/runtime-host.types';
|
|
3
3
|
import { StoreDataDescriptor, StoreSourceArtifact } from '../../../types/source/store-source.types';
|
|
4
|
-
import { StoreMutationPlan } from '../../../types/source/update-source.types';
|
|
5
4
|
import { StreamEventEnvelope } from '../../../types/source/stream-source.types';
|
|
5
|
+
import { StoreMutationPlan } from '../../../types/source/update-source.types';
|
|
6
6
|
import { RuntimeHostBase } from '../RuntimeHostBase';
|
|
7
7
|
/** Runtime-владелец writable Store state и реактивных DataView projections. */
|
|
8
8
|
export declare class StoreRuntimeHost extends RuntimeHostBase<'store', RuntimeHostContext<'store'>, StoreSourceArtifact> {
|
|
@@ -154,11 +154,11 @@ export interface AuthAdapterContext {
|
|
|
154
154
|
export interface AuthProfileAdapter {
|
|
155
155
|
id: AuthProfileAdapterId;
|
|
156
156
|
label: string;
|
|
157
|
-
validate(profile: AuthProfileSchema)
|
|
158
|
-
authenticate(context: AuthAdapterContext)
|
|
159
|
-
refresh
|
|
160
|
-
logout
|
|
161
|
-
loadUserInfo
|
|
157
|
+
validate: (profile: AuthProfileSchema) => void;
|
|
158
|
+
authenticate: (context: AuthAdapterContext) => Promise<AuthTokenSet>;
|
|
159
|
+
refresh?: (context: AuthAdapterContext) => Promise<AuthTokenSet>;
|
|
160
|
+
logout?: (context: AuthAdapterContext) => Promise<void>;
|
|
161
|
+
loadUserInfo?: (context: AuthAdapterContext) => Promise<Record<string, unknown> | null>;
|
|
162
162
|
}
|
|
163
163
|
export interface AuthProfileTestResult {
|
|
164
164
|
authenticated: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { RComponentSFC_SourceRange } from './location.types';
|
|
2
1
|
import { RComponentDiagnostic } from '../component-core.types';
|
|
3
|
-
import {
|
|
2
|
+
import { RComponentSFC_SourceRange } from './location.types';
|
|
3
|
+
import { ComponentSFCEventAction, ComponentSFCPortForwardOrigin, ComponentSFCPortManifest, ComponentSFCRequiredPortBinding, RComponentSFC_IR_ComponentPortMarker, RComponentSFC_IR_PortCall } from './ports.types';
|
|
4
4
|
import { EndgeStyleSheetArtifact } from '../../style/style.types';
|
|
5
5
|
/** Семантическая модель компонента после compiler pipeline, независимая от DOM и Nova. */
|
|
6
6
|
export interface RComponentSFC_IR {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { RComponentSFC_SourceRange } from './location.types';
|
|
1
2
|
import { RComponentDiagnostic } from '../component-core.types';
|
|
2
3
|
import { ProgramMetadataMap } from '../../program/program-metadata.types';
|
|
3
|
-
import { RComponentSFC_SourceRange } from './location.types';
|
|
4
4
|
/** Source-backed read model of component-level defineMetadata. */
|
|
5
5
|
export interface ComponentSFCMetadataVisualProjection {
|
|
6
6
|
mode: 'missing' | 'static' | 'invalid' | 'duplicate';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { RComponentDiagnostic } from '../component-core.types';
|
|
2
|
-
import { ComponentSFCEventSource, ComponentSFCPortManifest, ComponentSFCPortRole } from './ports.types';
|
|
3
1
|
import { RComponentSFC_SourceRange } from './location.types';
|
|
2
|
+
import { ComponentSFCEventSource, ComponentSFCPortManifest, ComponentSFCPortRole } from './ports.types';
|
|
3
|
+
import { RComponentDiagnostic } from '../component-core.types';
|
|
4
4
|
export interface ComponentSFCPortsSourceProjection {
|
|
5
5
|
editable: boolean;
|
|
6
6
|
message?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { RComponentContractInput } from '../component-core.types';
|
|
2
1
|
import { RComponentSFC_IR_Value } from './ir.types';
|
|
3
2
|
import { RComponentSFC_SourceRange } from './location.types';
|
|
3
|
+
import { RComponentContractInput } from '../component-core.types';
|
|
4
4
|
export type ComponentSFCPortRole = 'require' | 'provides' | 'emits';
|
|
5
5
|
export type ComponentSFCPortKind = 'computation' | 'component' | 'action' | 'query' | 'event';
|
|
6
6
|
export type ComponentSFCRequiredPortKind = Exclude<ComponentSFCPortKind, 'event'>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { RComponentDiagnostic } from '../component-core.types';
|
|
2
1
|
import { RComponentSFC_IR_Prop } from './ir.types';
|
|
3
2
|
import { RComponentSFC_SourceRange } from './location.types';
|
|
3
|
+
import { RComponentDiagnostic } from '../component-core.types';
|
|
4
4
|
/** Source-backed projection of the SFC public props contract for visual editors. */
|
|
5
5
|
export interface ComponentSFCPropsVisualProjection {
|
|
6
6
|
mode: 'missing' | 'inline-type' | 'named-type' | 'runtime';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RComponentContractInput } from '../component-core.types';
|
|
2
1
|
import { RComponentSFC_IR_Tag } from './ir.types';
|
|
2
|
+
import { RComponentContractInput } from '../component-core.types';
|
|
3
3
|
/** Публичный входной параметр renderer-neutral встроенного SFC tag. */
|
|
4
4
|
export type ComponentSFCTagInputContract = Readonly<RComponentContractInput> & {
|
|
5
5
|
/** Допустимые SFC spelling aliases для одного renderer-facing параметра. */
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { RComponentDiagnostic } from '../component-core.types';
|
|
2
|
-
import { TypeSourceDefinition } from '../../source/type-source.types';
|
|
3
|
-
import { EndgeSFCEditingConfiguration } from '../../configuration/configuration.type';
|
|
4
1
|
import { RComponentSFC_IR_Tag } from './ir.types';
|
|
5
2
|
import { RComponentSFC_SourceRange } from './location.types';
|
|
3
|
+
import { RComponentDiagnostic } from '../component-core.types';
|
|
4
|
+
import { EndgeSFCEditingConfiguration } from '../../configuration/configuration.type';
|
|
5
|
+
import { TypeSourceDefinition } from '../../source/type-source.types';
|
|
6
6
|
/** Значение SFC source, подготовленное для безопасного отображения в visual editor. */
|
|
7
7
|
export type ComponentSFCVisualSourceValue = {
|
|
8
8
|
kind: 'boolean';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SourceExpressionIR } from '../source/source-expression.types';
|
|
2
1
|
import { ComputationSourceDocument } from './computation-source.types';
|
|
2
|
+
import { SourceExpressionIR } from '../source/source-expression.types';
|
|
3
3
|
/** Optional persisted metadata; v1 compiler does not compare contracts. */
|
|
4
4
|
export interface ComputationContractField {
|
|
5
5
|
type: string;
|
|
@@ -12,9 +12,9 @@ export interface ComputationResource<T = unknown> {
|
|
|
12
12
|
readonly loading: boolean;
|
|
13
13
|
readonly value: T | undefined;
|
|
14
14
|
readonly error: ComputationRuntimeErrorShape | null;
|
|
15
|
-
refresh()
|
|
16
|
-
subscribe(listener: VoidFunction)
|
|
17
|
-
dispose()
|
|
15
|
+
refresh: () => Promise<void>;
|
|
16
|
+
subscribe: (listener: VoidFunction) => VoidFunction;
|
|
17
|
+
dispose: () => void;
|
|
18
18
|
}
|
|
19
19
|
export interface ComputationSandboxRequest {
|
|
20
20
|
computationIdentity: string;
|
|
@@ -24,8 +24,8 @@ export interface ComputationSandboxRequest {
|
|
|
24
24
|
inputs: Record<string, unknown>;
|
|
25
25
|
}
|
|
26
26
|
export interface ComputationSandboxAdapter {
|
|
27
|
-
execute(request: ComputationSandboxRequest)
|
|
28
|
-
dispose
|
|
27
|
+
execute: (request: ComputationSandboxRequest) => Promise<unknown>;
|
|
28
|
+
dispose?: () => void | Promise<void>;
|
|
29
29
|
}
|
|
30
30
|
/** Shared execution scope одного root computation call. */
|
|
31
31
|
export interface ComputationExecutionScope {
|
|
@@ -36,13 +36,13 @@ export interface ComputationExecutionScope {
|
|
|
36
36
|
}
|
|
37
37
|
/** Runtime boundary для вызова compiler-linked computation dependency. */
|
|
38
38
|
export interface ComputationDependencyRunner {
|
|
39
|
-
run(identity: string, input: unknown, scope: ComputationExecutionScope)
|
|
40
|
-
runSync(identity: string, input: unknown, scope: ComputationExecutionScope)
|
|
39
|
+
run: (identity: string, input: unknown, scope: ComputationExecutionScope) => Promise<unknown>;
|
|
40
|
+
runSync: (identity: string, input: unknown, scope: ComputationExecutionScope) => unknown;
|
|
41
41
|
}
|
|
42
42
|
export interface ComputationExecutionApi {
|
|
43
|
-
evaluate(expression: SourceExpressionIR, scope?: unknown)
|
|
43
|
+
evaluate: (expression: SourceExpressionIR, scope?: unknown) => unknown;
|
|
44
44
|
}
|
|
45
45
|
export interface ComputationOverride {
|
|
46
46
|
execution: 'sync' | 'async';
|
|
47
|
-
run(input: unknown, api: ComputationExecutionApi)
|
|
47
|
+
run: (input: unknown, api: ComputationExecutionApi) => unknown | Promise<unknown>;
|
|
48
48
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SourceExpressionIR } from '../source/source-expression.types';
|
|
2
1
|
import { ComputationContractField } from './computation-program.types';
|
|
2
|
+
import { SourceExpressionIR } from '../source/source-expression.types';
|
|
3
3
|
export interface ComputationSourceRange {
|
|
4
4
|
start: number;
|
|
5
5
|
end: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentSFCInteractionKeyboardCondition, ComponentSFCInteractionTrigger } from '../component/sfc/ir.types';
|
|
2
|
-
import { DiagnosticsSeverityNumber, DiagnosticsSignal,
|
|
2
|
+
import { DiagnosticsSeverityNumber, DiagnosticsSignal, EndgeDiagnosticsConfiguration, EndgeDiagnosticsOutputConfiguration, EndgeDiagnosticsRoute } from '../diagnostics/diagnostics.types';
|
|
3
3
|
import { EndgeExecutionContext } from '../runtime/execution-context.types';
|
|
4
4
|
import { EndgeJSONValue } from '../source/configuration-source.types';
|
|
5
5
|
export type EndgeConfigurationValues = Record<string, Record<string, EndgeJSONValue>>;
|
|
@@ -26,22 +26,22 @@ export interface DiagnosticsAdapterSnapshotContext extends DiagnosticsAdapterCre
|
|
|
26
26
|
export interface DiagnosticsAdapter {
|
|
27
27
|
readonly id: string;
|
|
28
28
|
/** Принимает record, прошедший маршрутизацию в текущий output. */
|
|
29
|
-
acceptRecord(record: DiagnosticsRecord, context: DiagnosticsAdapterRecordContext)
|
|
29
|
+
acceptRecord: (record: DiagnosticsRecord, context: DiagnosticsAdapterRecordContext) => void | Promise<void>;
|
|
30
30
|
/** Принимает полный JSON-safe snapshot, если adapter поддерживает snapshots. */
|
|
31
|
-
acceptSnapshot
|
|
31
|
+
acceptSnapshot?: (snapshot: DiagnosticsSnapshot, context: DiagnosticsAdapterSnapshotContext) => void | Promise<void>;
|
|
32
32
|
/** Проверяет доступность output без изменения diagnostics history. */
|
|
33
|
-
test
|
|
33
|
+
test?: () => void | Promise<void>;
|
|
34
34
|
/** Доставляет накопленный adapter buffer без завершения session. */
|
|
35
|
-
flush
|
|
35
|
+
flush?: () => void | Promise<void>;
|
|
36
36
|
/** Освобождает внешние ресурсы adapter при пересборке или reset. */
|
|
37
|
-
dispose
|
|
37
|
+
dispose?: () => void | Promise<void>;
|
|
38
38
|
}
|
|
39
39
|
/** Фабрика одного расширяемого типа diagnostics adapter. */
|
|
40
40
|
export interface DiagnosticsAdapterFactory {
|
|
41
41
|
readonly type: string;
|
|
42
42
|
readonly capabilities: DiagnosticsAdapterCapabilities;
|
|
43
43
|
/** Создаёт runtime adapter для конкретного output из effective configuration. */
|
|
44
|
-
create(output: EndgeDiagnosticsOutputConfiguration, context: DiagnosticsAdapterCreateContext)
|
|
44
|
+
create: (output: EndgeDiagnosticsOutputConfiguration, context: DiagnosticsAdapterCreateContext) => DiagnosticsAdapter;
|
|
45
45
|
}
|
|
46
46
|
/** Результат best-effort flush всех активных output adapters. */
|
|
47
47
|
export interface DiagnosticsFlushResult {
|