@endge/core 8.0.0 → 9.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.
@@ -59,7 +59,7 @@ export declare const ENDGE_CORE_MODULES: readonly [{
59
59
  readonly after: readonly ["workspace", "domain", "context", "configurationSchema"];
60
60
  }, {
61
61
  readonly key: "diagnostics";
62
- readonly create: ({ createDiagnosticsSnapshot, getModule }: import('../../../federation/types/endge-modules.types').EndgeModuleFactoryContext) => EndgeDiagnostics_Module;
62
+ readonly create: () => EndgeDiagnostics_Module;
63
63
  readonly after: "configuration";
64
64
  }, {
65
65
  readonly key: "source";
@@ -127,7 +127,7 @@ export declare const ENDGE_CORE_MODULES: readonly [{
127
127
  readonly after: "ui";
128
128
  }, {
129
129
  readonly key: "bridge";
130
- readonly create: ({ getModule }: import('../../../federation/types/endge-modules.types').EndgeModuleFactoryContext) => EndgeBridge_Module;
130
+ readonly create: () => EndgeBridge_Module;
131
131
  readonly after: readonly ["diagnostics", "runtime", "domain"];
132
132
  }, {
133
133
  readonly key: "styles";
@@ -35,7 +35,7 @@ declare const EndgeCore: import('../../federation/EndgeFederation').DefinedEndge
35
35
  readonly after: readonly ["workspace", "domain", "context", "configurationSchema"];
36
36
  }, {
37
37
  readonly key: "diagnostics";
38
- readonly create: ({ createDiagnosticsSnapshot, getModule }: import('../../../main').EndgeModuleFactoryContext) => import('../modules/diagnostics/EndgeDiagnostics_Module').EndgeDiagnostics_Module;
38
+ readonly create: () => import('../modules/diagnostics/EndgeDiagnostics_Module').EndgeDiagnostics_Module;
39
39
  readonly after: "configuration";
40
40
  }, {
41
41
  readonly key: "source";
@@ -103,7 +103,7 @@ declare const EndgeCore: import('../../federation/EndgeFederation').DefinedEndge
103
103
  readonly after: "ui";
104
104
  }, {
105
105
  readonly key: "bridge";
106
- readonly create: ({ getModule }: import('../../../main').EndgeModuleFactoryContext) => import('../modules/bridge/EndgeBridge_Module').EndgeBridge_Module;
106
+ readonly create: () => import('../modules/bridge/EndgeBridge_Module').EndgeBridge_Module;
107
107
  readonly after: readonly ["diagnostics", "runtime", "domain"];
108
108
  }, {
109
109
  readonly key: "styles";
@@ -1,5 +1,5 @@
1
1
  import { EndgeBootContext } from '../../kernel/types/bootstrap.types';
2
- import { BridgeConnectionState, BridgeDebugProviders } from './domain/bridge.type';
2
+ import { BridgeConnectionState } from './domain/bridge.type';
3
3
  import { BrowserBridge_Adapter } from './adapters/BrowserBridge_Adapter';
4
4
  import { EndgeBridgeConfigurator_Module } from './configurator/EndgeBridgeConfigurator_Module';
5
5
  import { EndgeBridgeDebug_Module } from './debug/EndgeBridgeDebug_Module';
@@ -23,7 +23,7 @@ export declare class EndgeBridge_Module extends EndgeModule<EndgeBootContext> {
23
23
  * ----------------------------------------
24
24
  */
25
25
  /** Создаёт owner и его явные зависимости без запуска транспорта. */
26
- constructor(providers: BridgeDebugProviders, _adapter?: BrowserBridge_Adapter);
26
+ constructor(_adapter?: BrowserBridge_Adapter);
27
27
  /** Принимает optional host policy без network/DOM side effects. */
28
28
  setup(ctx: EndgeBootContext): void;
29
29
  /** Запускает live transports после загрузки Domain и diagnostics. */
@@ -8,6 +8,18 @@ export declare const BRIDGE_CONFIG: {
8
8
  readonly maxMessageBytes: number;
9
9
  readonly maxPendingRequests: 16;
10
10
  };
11
+ /** Полный диагностический снимок для согласованной debug session. */
12
+ export declare const BRIDGE_SNAPSHOT_OPTIONS: {
13
+ readonly includeTelemetry: true;
14
+ readonly includeProblems: true;
15
+ readonly includeConfiguration: true;
16
+ readonly includeEffectiveConfiguration: true;
17
+ readonly includeDomain: true;
18
+ readonly includeProgram: true;
19
+ readonly includeRuntime: true;
20
+ readonly includeRaphData: true;
21
+ readonly includeRaphGraph: true;
22
+ };
11
23
  /** Нормализует точный backend URL без credentials, query и fragment. */
12
24
  export declare function normalizeBridgeServer(raw: string): string;
13
25
  /** Разбирает CSV environment value на стороне host до передачи массива в boot. */
@@ -1,11 +1,10 @@
1
1
  import { BrowserBridge_Adapter } from '../adapters/BrowserBridge_Adapter';
2
- import { BridgeCommands, BridgeDebugClient, BridgeDebugProviders, BridgeDebugSession, BridgeMessage, SimulationRunResult } from '../domain/bridge.type';
2
+ import { BridgeCommands, BridgeDebugClient, BridgeDebugSession, BridgeMessage, SimulationRunResult } from '../domain/bridge.type';
3
3
  import { DiagnosticsSnapshot } from '../../diagnostics/domain/types/diagnostics.types';
4
4
  import { EndgeModule } from '../../../../federation/EndgeModule';
5
5
  /** Debug policy и единственная client reservation сразу для всех backend. */
6
6
  export declare class EndgeBridgeDebug_Module extends EndgeModule {
7
7
  private readonly _commands;
8
- private readonly _providers;
9
8
  private readonly _adapter;
10
9
  private _role;
11
10
  private _enabled;
@@ -19,7 +18,7 @@ export declare class EndgeBridgeDebug_Module extends EndgeModule {
19
18
  * ----------------------------------------
20
19
  */
21
20
  /** Создаёт owner и его явные зависимости без запуска транспорта. */
22
- constructor(_commands: BridgeCommands, _providers: BridgeDebugProviders, _adapter: BrowserBridge_Adapter);
21
+ constructor(_commands: BridgeCommands, _adapter: BrowserBridge_Adapter);
23
22
  /** Настраивается только родителем из host boot options. */
24
23
  configure(role: 'client' | 'configurator', enabled: boolean): void;
25
24
  /** Запрашивает сессию; Promise завершается после подтверждения в приложении. */
@@ -1,4 +1,3 @@
1
- import { DiagnosticsSnapshot } from '../../diagnostics/domain/types/diagnostics.types';
2
1
  /** Локальная политика host, не сохраняемая в Domain. URL включает backend base path. */
3
2
  export type EndgeBridgeBootOptions = {
4
3
  role: 'client';
@@ -68,13 +67,6 @@ export interface BridgeMessage {
68
67
  data?: unknown;
69
68
  error?: string;
70
69
  }
71
- export interface BridgeDebugProviders {
72
- getSimulation: (identity: string) => {
73
- source: string;
74
- sourceVersion: number;
75
- } | null;
76
- snapshot: () => DiagnosticsSnapshot;
77
- }
78
70
  /** Внутренний порт подмодулей к единственному владельцу соединений. */
79
71
  export interface BridgeCommands {
80
72
  request: (serverUrl: string, message: BridgeMessage) => Promise<unknown>;
@@ -1,6 +1,6 @@
1
1
  import { EndgeBootContext } from '../../kernel/types/bootstrap.types';
2
2
  import { DiagnosticsSnapshotRuntimeAdapter } from './domain/types/diagnostics-snapshot-runtime-adapter.type';
3
- import { DiagnosticsSnapshot, DiagnosticsSnapshotOptions, DiagnosticsSnapshotProviders } from './domain/types/diagnostics.types';
3
+ import { DiagnosticsSnapshot, DiagnosticsSnapshotOptions } from './domain/types/diagnostics.types';
4
4
  import { EndgeProblems_Module } from './EndgeProblems_Module';
5
5
  import { EndgeTelemetry_Module } from './EndgeTelemetry_Module';
6
6
  import { EndgeModule } from '../../../federation/EndgeModule';
@@ -8,7 +8,6 @@ import { EndgeModule } from '../../../federation/EndgeModule';
8
8
  export declare class EndgeDiagnosticsSnapshots_Module extends EndgeModule<EndgeBootContext> {
9
9
  private readonly _telemetry;
10
10
  private readonly _problems;
11
- private readonly _providers;
12
11
  private readonly _runtimeAdapter;
13
12
  private _automaticErrorTimestamps;
14
13
  private _automaticCooldownUntil;
@@ -17,7 +16,7 @@ export declare class EndgeDiagnosticsSnapshots_Module extends EndgeModule<EndgeB
17
16
  private _shortcutMatcher;
18
17
  private _started;
19
18
  /** Создаёт snapshots owner поверх telemetry, problems и platform adapter. */
20
- constructor(_telemetry: EndgeTelemetry_Module, _problems: EndgeProblems_Module, _providers?: DiagnosticsSnapshotProviders, _runtimeAdapter?: DiagnosticsSnapshotRuntimeAdapter);
19
+ constructor(_telemetry: EndgeTelemetry_Module, _problems: EndgeProblems_Module, _runtimeAdapter?: DiagnosticsSnapshotRuntimeAdapter);
21
20
  /** Восстанавливает internal policy subscriptions после telemetry build/reset. */
22
21
  build(_ctx: EndgeBootContext): void;
23
22
  /** Включает глобальную shortcut subscription только в live lifecycle. */
@@ -40,8 +39,6 @@ export declare class EndgeDiagnosticsSnapshots_Module extends EndgeModule<EndgeB
40
39
  private _captureSection;
41
40
  /** Сохраняет прежние top-level поля, получая их из нового дерева владельцев. */
42
41
  private _federationOwnerSections;
43
- /** Поддерживает независимое использование Diagnostics без владеющей Federation. */
44
- private _legacyOwnerSections;
45
42
  /** Применяет существующие content toggles к тяжёлым Core Modules до чтения их состояния. */
46
43
  private _federationOptions;
47
44
  /** Переносит snapshot Core Module в совместимое top-level поле без повторного сбора. */
@@ -1,6 +1,6 @@
1
1
  import { EndgeBootContext } from '../../kernel/types/bootstrap.types';
2
2
  import { DiagnosticsAdapter, DiagnosticsAdapterFactory, DiagnosticsFlushResult } from './domain/types/diagnostics-adapter.type';
3
- import { DiagnosticsContextProvider, DiagnosticsExceptionOptions, DiagnosticsFilter, DiagnosticsListener, DiagnosticsLogInput, DiagnosticsLogOptions, DiagnosticsLogRecord, DiagnosticsRecord, DiagnosticsResource, DiagnosticsSnapshot, DiagnosticsSnapshotOptions, DiagnosticsSnapshotProviders, DiagnosticsSpanHandle, DiagnosticsSpanOptions, DiagnosticsSpanRecord, DiagnosticsSubscribeOptions, EndgeDiagnosticsConfiguration } from './domain/types/diagnostics.types';
3
+ import { DiagnosticsContextProvider, DiagnosticsExceptionOptions, DiagnosticsFilter, DiagnosticsListener, DiagnosticsLogInput, DiagnosticsLogOptions, DiagnosticsLogRecord, DiagnosticsRecord, DiagnosticsResource, DiagnosticsSnapshot, DiagnosticsSnapshotOptions, DiagnosticsSpanHandle, DiagnosticsSpanOptions, DiagnosticsSpanRecord, DiagnosticsSubscribeOptions, EndgeDiagnosticsConfiguration } from './domain/types/diagnostics.types';
4
4
  import { DiagnosticsAdapterRegistry } from './adapters/DiagnosticsAdapterRegistry';
5
5
  import { EndgeDiagnosticsSnapshots_Module } from './EndgeDiagnosticsSnapshots_Module';
6
6
  import { EndgeProblems_Module } from './EndgeProblems_Module';
@@ -25,7 +25,7 @@ export declare class EndgeDiagnostics_Module extends EndgeModule<EndgeBootContex
25
25
  * ----------------------------------------
26
26
  */
27
27
  /** Связывает независимые уведомления подмодулей с родительским diagnostics-модулем. */
28
- constructor(snapshotProviders?: DiagnosticsSnapshotProviders);
28
+ constructor();
29
29
  /** Передаёт setup lifecycle подмодулям в порядке их зависимостей. */
30
30
  setup(ctx: EndgeBootContext): Promise<void>;
31
31
  /** Передаёт load lifecycle подмодулям в порядке их зависимостей. */
@@ -1,5 +1,4 @@
1
1
  import { ComponentSFCInteractionTriggerActivation } from '../../../domain/types/component/sfc/ir.types';
2
- import { EndgeFederationDiagnosticsSnapshot, EndgeFederationDiagnosticsSnapshotOptions } from '../../../../../federation/types/federation.types';
3
2
  /** Сигналы, которые поддерживает первая версия модуля диагностики. */
4
3
  export type DiagnosticsSignal = 'log' | 'span';
5
4
  /** Фаза жизненного цикла, в которой создана диагностическая запись. */
@@ -300,15 +299,6 @@ export interface DiagnosticsRaphSnapshotOptions {
300
299
  includeData: boolean;
301
300
  includeGraph: boolean;
302
301
  }
303
- /** Lazy providers state owners, подключаемые composition root ядра. */
304
- export interface DiagnosticsSnapshotProviders {
305
- federation?: (options: EndgeFederationDiagnosticsSnapshotOptions) => EndgeFederationDiagnosticsSnapshot;
306
- effectiveConfiguration?: () => unknown;
307
- domain?: () => unknown;
308
- program?: () => unknown;
309
- runtime?: () => unknown;
310
- raph?: (options: DiagnosticsRaphSnapshotOptions) => unknown;
311
- }
312
302
  /** Ошибка чтения одной запрошенной части snapshot без отмены остальных частей. */
313
303
  export interface DiagnosticsSnapshotCaptureError {
314
304
  section: 'federation' | 'effectiveConfiguration' | 'domain' | 'program' | 'runtime' | 'raph';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@endge/core",
3
3
  "type": "module",
4
- "version": "8.0.0",
4
+ "version": "9.0.0",
5
5
  "private": false,
6
6
  "packageManager": "pnpm@8.8.0",
7
7
  "license": "Apache-2.0",