@endge/core 6.0.0 → 7.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core.js +20554 -19375
- package/dist/features/core/kernel/config/modules.config.d.ts +1 -1
- package/dist/features/core/kernel/endge.d.ts +10 -4
- package/dist/features/core/modules/EndgeRuntimeDebugger_Module.d.ts +2 -0
- package/dist/features/core/modules/auth/EndgeAuth_Module.d.ts +3 -1
- package/dist/features/core/modules/configuration/EndgeConfiguration_Module.d.ts +2 -0
- package/dist/features/core/modules/configuration/domain/types/configuration.type.d.ts +13 -1
- package/dist/features/core/modules/context/EndgeContext_Module.d.ts +13 -0
- package/dist/features/core/modules/context/domain/context-state.types.d.ts +12 -0
- package/dist/features/core/modules/context/persistence/context-state.d.ts +7 -0
- package/dist/features/core/modules/diagnostics/EndgeDiagnosticsSnapshots_Module.d.ts +55 -0
- package/dist/features/core/modules/diagnostics/EndgeDiagnostics_Module.d.ts +10 -16
- package/dist/features/core/modules/diagnostics/adapters/BrowserDiagnosticsSnapshot_Adapter.d.ts +9 -0
- package/dist/features/core/modules/diagnostics/domain/diagnostics-snapshot.d.ts +7 -0
- package/dist/features/core/modules/diagnostics/domain/types/diagnostics-snapshot-runtime-adapter.type.d.ts +15 -0
- package/dist/features/core/modules/diagnostics/domain/types/diagnostics.types.d.ts +60 -3
- package/dist/features/core/modules/domain/EndgeDomain_Module.d.ts +3 -3
- package/dist/features/core/modules/domain/component/component-sfc-edit-trigger.d.ts +32 -1
- package/dist/features/core/modules/domain/types/component/sfc/dependencies.types.d.ts +11 -1
- package/dist/features/core/modules/domain/types/component/sfc/ir.types.d.ts +31 -0
- package/dist/features/core/modules/implementations/EndgeImplementations_Module.d.ts +2 -0
- package/dist/features/core/modules/program/EndgeProgram_Module.d.ts +3 -3
- package/dist/features/core/modules/runtime/EndgeRuntime_Module.d.ts +13 -4
- package/dist/features/core/modules/runtime/domain/runtime-host.types.d.ts +6 -0
- package/dist/features/core/modules/runtime/domain/runtime.types.d.ts +12 -0
- package/dist/features/core/modules/runtime/hosts/ComponentSFCRuntimeHost.d.ts +10 -1
- package/dist/features/core/modules/runtime/hosts/CompositionRuntimeHost.d.ts +1 -0
- package/dist/features/core/modules/runtime/hosts/StoreRuntimeHost.d.ts +4 -0
- package/dist/features/core/modules/runtime/operation/EndgeOperations_Module.d.ts +2 -0
- package/dist/features/core/modules/source/domain/types/composition-source.types.d.ts +9 -0
- package/dist/features/core/modules/source/domain/types/source-expression.types.d.ts +1 -1
- package/dist/features/core/modules/source/domain/types/update-source.types.d.ts +7 -0
- package/dist/features/core/modules/ui/EndgeUI_Module.d.ts +10 -13
- package/dist/features/core/modules/ui/ui-composition.config.d.ts +10 -10
- package/dist/features/federation/EndgeFederation.d.ts +69 -41
- package/dist/features/federation/EndgeModule.d.ts +7 -0
- package/dist/features/federation/tools/sort-endge-modules.d.ts +7 -0
- package/dist/features/federation/types/endge-modules.types.d.ts +2 -5
- package/dist/features/federation/types/federation.types.d.ts +91 -2
- package/dist/main.d.ts +5 -0
- package/package.json +3 -2
|
@@ -1,17 +1,99 @@
|
|
|
1
1
|
import { EndgeModule } from '../EndgeModule';
|
|
2
|
-
import { EndgeModuleDefinitions, EndgeModuleDescriptor,
|
|
2
|
+
import { AnyEndgeModule, EndgeModuleDefinitions, EndgeModuleDescriptor, EndgeModuleOrder } from './endge-modules.types';
|
|
3
3
|
/** Минимальный context, общий для lifecycle любой федерации. */
|
|
4
4
|
export interface EndgeFederationContext {
|
|
5
5
|
signal?: AbortSignal;
|
|
6
6
|
}
|
|
7
7
|
export type EndgeFederationState = 'idle' | 'booting' | 'ready' | 'building' | 'resetting' | 'failed';
|
|
8
|
+
export type EndgeModuleDiagnosticsSnapshotStatus = 'captured' | 'empty' | 'skipped' | 'failed' | 'referenced';
|
|
9
|
+
/** Стабильная ссылка на Module внутри декларативного дерева Federation. */
|
|
10
|
+
export interface EndgeModuleDiagnosticsSnapshotReference {
|
|
11
|
+
federationId: string;
|
|
12
|
+
key: string;
|
|
13
|
+
path: string[];
|
|
14
|
+
moduleName: string;
|
|
15
|
+
}
|
|
16
|
+
/** Настройки рекурсивного сбора диагностического дерева Federation. */
|
|
17
|
+
export interface EndgeFederationDiagnosticsSnapshotOptions {
|
|
18
|
+
shouldCaptureModule?: (module: EndgeModuleDiagnosticsSnapshotReference) => boolean;
|
|
19
|
+
}
|
|
20
|
+
/** Диагностический узел зарегистрированного Module. */
|
|
21
|
+
export interface EndgeModuleDiagnosticsSnapshotNode extends EndgeModuleDiagnosticsSnapshotReference {
|
|
22
|
+
kind: 'module';
|
|
23
|
+
status: EndgeModuleDiagnosticsSnapshotStatus;
|
|
24
|
+
snapshot?: unknown;
|
|
25
|
+
snapshotRef?: string;
|
|
26
|
+
error?: string;
|
|
27
|
+
}
|
|
28
|
+
/** Диагностический узел дочерней Federation. */
|
|
29
|
+
export interface EndgeChildFederationDiagnosticsSnapshotNode {
|
|
30
|
+
kind: 'federation';
|
|
31
|
+
key: string;
|
|
32
|
+
path: string[];
|
|
33
|
+
status: 'captured' | 'failed';
|
|
34
|
+
federation?: EndgeFederationDiagnosticsSnapshot;
|
|
35
|
+
error?: string;
|
|
36
|
+
}
|
|
37
|
+
export type EndgeFederationDiagnosticsSnapshotNode = EndgeModuleDiagnosticsSnapshotNode | EndgeChildFederationDiagnosticsSnapshotNode;
|
|
38
|
+
/** Рекурсивная диагностическая проекция одного декларативного Federation graph. */
|
|
39
|
+
export interface EndgeFederationDiagnosticsSnapshot {
|
|
40
|
+
id: string;
|
|
41
|
+
name: string;
|
|
42
|
+
path: string[];
|
|
43
|
+
state: EndgeFederationState;
|
|
44
|
+
plugins: string[];
|
|
45
|
+
nodes: EndgeFederationDiagnosticsSnapshotNode[];
|
|
46
|
+
}
|
|
47
|
+
/** Публичный lifecycle-контракт статического facade Federation. */
|
|
48
|
+
export interface EndgeFederationFacade<in TContext extends EndgeFederationContext = EndgeFederationContext> {
|
|
49
|
+
readonly id: string;
|
|
50
|
+
readonly isConfigured: boolean;
|
|
51
|
+
readonly isInitialized: boolean;
|
|
52
|
+
readonly lastError: unknown | null;
|
|
53
|
+
readonly state: EndgeFederationState;
|
|
54
|
+
createDiagnosticsSnapshot: (options?: EndgeFederationDiagnosticsSnapshotOptions) => EndgeFederationDiagnosticsSnapshot;
|
|
55
|
+
boot: (ctx: TContext) => Promise<void>;
|
|
56
|
+
build: (ctx?: TContext) => Promise<void>;
|
|
57
|
+
reset: () => Promise<void>;
|
|
58
|
+
}
|
|
59
|
+
export type AnyEndgeFederation = EndgeFederationFacade<any>;
|
|
60
|
+
/** Дочерняя Federation как один composite lifecycle-узел родительского graph. */
|
|
61
|
+
export interface EndgeChildFederationDefinition<TKey extends string = string, TFederation extends AnyEndgeFederation = AnyEndgeFederation> {
|
|
62
|
+
readonly key: TKey;
|
|
63
|
+
readonly federation: TFederation;
|
|
64
|
+
readonly before?: EndgeModuleOrder;
|
|
65
|
+
readonly after?: EndgeModuleOrder;
|
|
66
|
+
}
|
|
67
|
+
export type EndgeChildFederationDefinitions = readonly EndgeChildFederationDefinition[];
|
|
68
|
+
/** Plugin декларативно расширяет одну Federation до её configuration/boot. */
|
|
69
|
+
export interface EndgePlugin<TModules extends EndgeModuleDefinitions = EndgeModuleDefinitions, TFederations extends EndgeChildFederationDefinitions = EndgeChildFederationDefinitions> {
|
|
70
|
+
readonly id: string;
|
|
71
|
+
readonly modules?: TModules;
|
|
72
|
+
readonly federations?: TFederations;
|
|
73
|
+
}
|
|
8
74
|
/** Полное декларативное описание автоматически собираемой федерации. */
|
|
9
|
-
export interface EndgeFederationDefinition<TDefinitions extends EndgeModuleDefinitions> {
|
|
75
|
+
export interface EndgeFederationDefinition<TDefinitions extends EndgeModuleDefinitions, TFederations extends EndgeChildFederationDefinitions = readonly []> {
|
|
10
76
|
readonly id: string;
|
|
11
77
|
readonly name?: string;
|
|
12
78
|
readonly modules: TDefinitions;
|
|
79
|
+
readonly federations?: TFederations;
|
|
13
80
|
}
|
|
81
|
+
export type EndgeLifecycleNodeDescriptor = {
|
|
82
|
+
readonly kind: 'module';
|
|
83
|
+
readonly key: string;
|
|
84
|
+
readonly module: AnyEndgeModule;
|
|
85
|
+
readonly before?: EndgeModuleOrder;
|
|
86
|
+
readonly after?: EndgeModuleOrder;
|
|
87
|
+
} | {
|
|
88
|
+
readonly kind: 'federation';
|
|
89
|
+
readonly key: string;
|
|
90
|
+
readonly federation: AnyEndgeFederation;
|
|
91
|
+
readonly before?: EndgeModuleOrder;
|
|
92
|
+
readonly after?: EndgeModuleOrder;
|
|
93
|
+
};
|
|
14
94
|
export interface EndgeFederationHost {
|
|
95
|
+
definitionSignature: string | null;
|
|
96
|
+
parentFederationId: string | null;
|
|
15
97
|
isConfigured: boolean;
|
|
16
98
|
isConfiguring: boolean;
|
|
17
99
|
isSetup: boolean;
|
|
@@ -23,8 +105,15 @@ export interface EndgeFederationHost {
|
|
|
23
105
|
resetPromise: Promise<void> | null;
|
|
24
106
|
buildQueue: Promise<void>;
|
|
25
107
|
pendingBuilds: number;
|
|
108
|
+
moduleDefinitions: EndgeModuleDefinitions[number][];
|
|
109
|
+
federationDefinitions: EndgeChildFederationDefinition[];
|
|
26
110
|
moduleDescriptors: EndgeModuleDescriptor[];
|
|
111
|
+
nodes: EndgeLifecycleNodeDescriptor[];
|
|
27
112
|
modules: Map<string, EndgeModule<any>>;
|
|
113
|
+
federations: Map<string, AnyEndgeFederation>;
|
|
114
|
+
facades: Set<AnyEndgeFederation>;
|
|
28
115
|
plugins: EndgePlugin[];
|
|
116
|
+
pluginSignatures: Map<string, string>;
|
|
29
117
|
installedPluginIds: Set<string>;
|
|
118
|
+
attachedTouchedNodes: Set<EndgeLifecycleNodeDescriptor>;
|
|
30
119
|
}
|
package/dist/main.d.ts
CHANGED
|
@@ -36,8 +36,10 @@ export * from './features/core/modules/i18n/EndgeI18n_Module';
|
|
|
36
36
|
export * from './features/core/modules/workspace/EndgeWorkspace_Module';
|
|
37
37
|
export * from './features/core/modules/context/endge-vars';
|
|
38
38
|
export * from './features/core/modules/diagnostics/EndgeDiagnostics_Module';
|
|
39
|
+
export * from './features/core/modules/diagnostics/EndgeDiagnosticsSnapshots_Module';
|
|
39
40
|
export * from './features/core/modules/diagnostics/EndgeProblems_Module';
|
|
40
41
|
export * from './features/core/modules/diagnostics/EndgeTelemetry_Module';
|
|
42
|
+
export * from './features/core/modules/diagnostics/adapters/BrowserDiagnosticsSnapshot_Adapter';
|
|
41
43
|
export * from './features/core/modules/context/EndgeContext_Module';
|
|
42
44
|
export * from './features/core/modules/configuration/EndgeConfiguration_Module';
|
|
43
45
|
export * from './features/core/modules/configuration/EndgeConfigurationSchema_Module';
|
|
@@ -48,6 +50,7 @@ export * from './features/core/modules/styles/EndgeStyles_Module';
|
|
|
48
50
|
export * from './features/core/modules/diagnostics/domain/entities/DiagnosticsRecordStore';
|
|
49
51
|
export * from './features/core/modules/diagnostics/domain/entities/DiagnosticsSpan';
|
|
50
52
|
export * from './features/core/modules/auth/domain/types/auth-profile.types';
|
|
53
|
+
export * from './features/core/modules/auth/services/auth-context';
|
|
51
54
|
export * from './features/core/modules/domain/types/component/component-core.types';
|
|
52
55
|
export * from './features/core/modules/domain/types/component/component.types';
|
|
53
56
|
export * from './features/core/modules/domain/types/component/sfc/source.types';
|
|
@@ -68,6 +71,7 @@ export * from './features/core/modules/domain/types/component/sfc/visual-project
|
|
|
68
71
|
export * from './features/core/modules/configuration/domain/types/configuration.type';
|
|
69
72
|
export * from './features/core/modules/domain/types/computation/computation.types';
|
|
70
73
|
export * from './features/core/modules/diagnostics/domain/types/diagnostics-adapter.type';
|
|
74
|
+
export * from './features/core/modules/diagnostics/domain/types/diagnostics-snapshot-runtime-adapter.type';
|
|
71
75
|
export * from './features/core/modules/diagnostics/domain/types/diagnostics.types';
|
|
72
76
|
export * from './features/core/modules/domain/types/document/codegen.types';
|
|
73
77
|
export * from './features/core/modules/domain/types/document/document.types';
|
|
@@ -94,6 +98,7 @@ export * from './features/core/modules/runtime/domain/vocab-cache.types';
|
|
|
94
98
|
export * from './features/core/modules/implementations/domain/implementation.types';
|
|
95
99
|
export * from './features/core/modules/source/domain/types/action-source.types';
|
|
96
100
|
export * from './features/core/modules/context/domain/context-persistence.types';
|
|
101
|
+
export * from './features/core/modules/context/domain/context-state.types';
|
|
97
102
|
export * from './features/core/modules/runtime/domain/execution-context.types';
|
|
98
103
|
export * from './features/core/modules/runtime/domain/query-execution.types';
|
|
99
104
|
export * from './features/core/modules/runtime/domain/runtime-entity-map.types';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@endge/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "7.0.1",
|
|
5
5
|
"private": false,
|
|
6
6
|
"packageManager": "pnpm@8.8.0",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"lint-fix": "eslint . --fix --cache"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@endge/raph": "^3.
|
|
33
|
+
"@endge/raph": "^3.2.0",
|
|
34
34
|
"class-transformer": "^0.5.1",
|
|
35
35
|
"class-validator": "^0.14.1",
|
|
36
36
|
"reflect-metadata": "^0.2.2"
|
|
@@ -57,6 +57,7 @@
|
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@antfu/eslint-config": "9.3.0",
|
|
59
59
|
"@types/lodash": "^4.14.202",
|
|
60
|
+
"@vue/language-core": "^3.3.11",
|
|
60
61
|
"eslint": "10.9.1",
|
|
61
62
|
"rimraf": "^6.0.1",
|
|
62
63
|
"typescript": "~6.0.3",
|