@endge/core 1.0.0-dev
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/LICENSE +202 -0
- package/dist/core.js +124692 -0
- package/dist/features/core/kernel/config/debugger.config.d.ts +2 -0
- package/dist/features/core/kernel/config/kernel.config.d.ts +29 -0
- package/dist/features/core/kernel/config/modules.config.d.ts +145 -0
- package/dist/features/core/kernel/constants/kernel.constants.d.ts +8 -0
- package/dist/features/core/kernel/endge.d.ts +149 -0
- package/dist/features/core/kernel/errors/EndgeDebuggerReadOnlyError.d.ts +7 -0
- package/dist/features/core/kernel/services/EndgeBundleCodec_Service.d.ts +15 -0
- package/dist/features/core/kernel/tools/bundle-json.d.ts +5 -0
- package/dist/features/core/kernel/tools/debugger-snapshot.d.ts +12 -0
- package/dist/features/core/kernel/tools/read-only-document.d.ts +1 -0
- package/dist/features/core/kernel/types/bootstrap.types.d.ts +32 -0
- package/dist/features/core/kernel/types/endge-bundle.types.d.ts +12 -0
- package/dist/features/core/modules/EndgeTypes_Module.d.ts +14 -0
- package/dist/features/core/modules/EndgeVocabs_Module.d.ts +178 -0
- package/dist/features/core/modules/actions/EndgeActions_Module.d.ts +107 -0
- package/dist/features/core/modules/actions/domain/action.types.d.ts +177 -0
- package/dist/features/core/modules/actions/services/ActionProgramExecutor.d.ts +36 -0
- package/dist/features/core/modules/actions/services/table-actions.d.ts +2 -0
- package/dist/features/core/modules/auth/EndgeAuth_Module.d.ts +57 -0
- package/dist/features/core/modules/auth/adapters/BasicAuthAdapter.d.ts +16 -0
- package/dist/features/core/modules/auth/adapters/BearerAuthAdapter.d.ts +16 -0
- package/dist/features/core/modules/auth/adapters/OAuth2ClientCredentialsAuthAdapter.d.ts +10 -0
- package/dist/features/core/modules/auth/adapters/OAuth2PasswordAuthAdapter.d.ts +13 -0
- package/dist/features/core/modules/auth/adapters/OidcAuthAdapter.d.ts +10 -0
- package/dist/features/core/modules/auth/adapters/OidcBrowserSession_Adapter.d.ts +50 -0
- package/dist/features/core/modules/auth/domain/AuthInteractionRequiredError.d.ts +8 -0
- package/dist/features/core/modules/auth/domain/types/auth-profile.types.d.ts +175 -0
- package/dist/features/core/modules/auth/domain/types/auth-runtime.types.d.ts +12 -0
- package/dist/features/core/modules/auth/services/AuthAdapterRegistry.d.ts +23 -0
- package/dist/features/core/modules/auth/services/AuthProfileRegistry.d.ts +48 -0
- package/dist/features/core/modules/auth/services/AuthRequestResolver.d.ts +22 -0
- package/dist/features/core/modules/auth/services/AuthSessionManager.d.ts +99 -0
- package/dist/features/core/modules/auth/services/AuthSessionStore.d.ts +34 -0
- package/dist/features/core/modules/auth/services/auth-context.d.ts +11 -0
- package/dist/features/core/modules/bridge/EndgeBridge_Module.d.ts +62 -0
- package/dist/features/core/modules/bridge/adapters/BrowserBridge_Adapter.d.ts +20 -0
- package/dist/features/core/modules/bridge/config/bridge.config.d.ts +38 -0
- package/dist/features/core/modules/bridge/configurator/EndgeBridgeConfigurator_Module.d.ts +28 -0
- package/dist/features/core/modules/bridge/debug/EndgeBridgeDebug_Module.d.ts +145 -0
- package/dist/features/core/modules/bridge/domain/bridge-sync.type.d.ts +27 -0
- package/dist/features/core/modules/bridge/domain/bridge.type.d.ts +75 -0
- package/dist/features/core/modules/bridge/services/BridgeConnection_Service.d.ts +41 -0
- package/dist/features/core/modules/bridge/tools/bridge-sync.d.ts +10 -0
- package/dist/features/core/modules/commands/EndgeCommands_Module.d.ts +25 -0
- package/dist/features/core/modules/commands/config/commands.config.d.ts +6 -0
- package/dist/features/core/modules/commands/domain/commands.types.d.ts +36 -0
- package/dist/features/core/modules/commands/services/LocalCommandExecutor.d.ts +13 -0
- package/dist/features/core/modules/commands/services/RemoteCommandExecutor.d.ts +13 -0
- package/dist/features/core/modules/commands/services/context/SetDataModeCommand.d.ts +11 -0
- package/dist/features/core/modules/commands/services/context/SetFacetCommand.d.ts +11 -0
- package/dist/features/core/modules/commands/services/context/SetLocaleCommand.d.ts +11 -0
- package/dist/features/core/modules/commands/services/context/SetThemeCommand.d.ts +11 -0
- package/dist/features/core/modules/commands/services/context/SetTimezoneCommand.d.ts +11 -0
- package/dist/features/core/modules/commands/services/context/SetUserCommand.d.ts +11 -0
- package/dist/features/core/modules/commands/services/context/SetWorkspaceCommand.d.ts +11 -0
- package/dist/features/core/modules/commands/services/runtime/PauseRuntimeCommand.d.ts +11 -0
- package/dist/features/core/modules/commands/services/runtime/ResumeRuntimeCommand.d.ts +11 -0
- package/dist/features/core/modules/commands/services/runtime/StopRuntimeCommand.d.ts +11 -0
- package/dist/features/core/modules/commands/tools/command-payload.d.ts +2 -0
- package/dist/features/core/modules/commands/types/command-executor.type.d.ts +15 -0
- package/dist/features/core/modules/commands/types/context-command-target.type.d.ts +11 -0
- package/dist/features/core/modules/commands/types/runtime-command-target.type.d.ts +4 -0
- package/dist/features/core/modules/compiler/EndgeCompiler_Module.d.ts +375 -0
- package/dist/features/core/modules/compiler/services/action/action-compile.d.ts +10 -0
- package/dist/features/core/modules/compiler/services/action/action-target-validation.d.ts +8 -0
- package/dist/features/core/modules/compiler/services/component-sfc/component-sfc-attributes.d.ts +6 -0
- package/dist/features/core/modules/compiler/services/component-sfc/component-sfc-built-in-tags.d.ts +3 -0
- package/dist/features/core/modules/compiler/services/component-sfc/component-sfc-compile.d.ts +34 -0
- package/dist/features/core/modules/compiler/services/component-sfc/component-sfc-dependencies.d.ts +3 -0
- package/dist/features/core/modules/compiler/services/component-sfc/component-sfc-expression-ir.d.ts +3 -0
- package/dist/features/core/modules/compiler/services/component-sfc/component-sfc-expression.d.ts +37 -0
- package/dist/features/core/modules/compiler/services/component-sfc/component-sfc-forward.d.ts +16 -0
- package/dist/features/core/modules/compiler/services/component-sfc/component-sfc-interactions.d.ts +10 -0
- package/dist/features/core/modules/compiler/services/component-sfc/component-sfc-parse.d.ts +9 -0
- package/dist/features/core/modules/compiler/services/component-sfc/component-sfc-ports.d.ts +20 -0
- package/dist/features/core/modules/compiler/services/component-sfc/component-sfc-script.d.ts +22 -0
- package/dist/features/core/modules/compiler/services/component-sfc/component-sfc-style.d.ts +11 -0
- package/dist/features/core/modules/compiler/services/component-sfc/component-sfc-table-menu.d.ts +15 -0
- package/dist/features/core/modules/compiler/services/component-sfc/component-sfc-table-pin.d.ts +24 -0
- package/dist/features/core/modules/compiler/services/component-sfc/component-sfc-table-sort.d.ts +28 -0
- package/dist/features/core/modules/compiler/services/component-sfc/component-sfc-table-visibility.d.ts +3 -0
- package/dist/features/core/modules/compiler/services/component-sfc/component-sfc-template.d.ts +27 -0
- package/dist/features/core/modules/compiler/services/computation/computation-compile.d.ts +17 -0
- package/dist/features/core/modules/compiler/services/type/type-program-validation.d.ts +11 -0
- package/dist/features/core/modules/compiler/tools/compiled-program-catalog.d.ts +4 -0
- package/dist/features/core/modules/computations/EndgeComputations_Module.d.ts +80 -0
- package/dist/features/core/modules/computations/model/ComputationResource.d.ts +41 -0
- package/dist/features/core/modules/computations/model/ComputationResourceRegistry.d.ts +27 -0
- package/dist/features/core/modules/computations/services/ComputationGraphExecutor.d.ts +30 -0
- package/dist/features/core/modules/configuration/EndgeConfigurationSchema_Module.d.ts +28 -0
- package/dist/features/core/modules/configuration/EndgeConfiguration_Module.d.ts +59 -0
- package/dist/features/core/modules/configuration/domain/configuration-value.d.ts +18 -0
- package/dist/features/core/modules/configuration/domain/endge-configuration.d.ts +8 -0
- package/dist/features/core/modules/configuration/domain/tooltip.config.d.ts +2 -0
- package/dist/features/core/modules/configuration/domain/types/configuration.type.d.ts +158 -0
- package/dist/features/core/modules/context/EndgeContext_Module.d.ts +311 -0
- package/dist/features/core/modules/context/domain/context-events.types.d.ts +7 -0
- package/dist/features/core/modules/context/domain/context-persistence.types.d.ts +80 -0
- package/dist/features/core/modules/context/domain/context-state.types.d.ts +7 -0
- package/dist/features/core/modules/context/endge-vars.d.ts +89 -0
- package/dist/features/core/modules/context/persistence/EndgeStorageAdapterRegistry.d.ts +9 -0
- package/dist/features/core/modules/context/persistence/RuntimeStateController.d.ts +28 -0
- package/dist/features/core/modules/context/persistence/adapters/DisabledContextAdapter.d.ts +8 -0
- package/dist/features/core/modules/context/persistence/adapters/LocalStorageContextAdapter.d.ts +12 -0
- package/dist/features/core/modules/context/persistence/context-state.d.ts +7 -0
- package/dist/features/core/modules/converters/EndgeConverters_Module.d.ts +39 -0
- package/dist/features/core/modules/converters/tools/arrays/split.d.ts +1 -0
- package/dist/features/core/modules/converters/tools/arrays/to-array.d.ts +1 -0
- package/dist/features/core/modules/converters/tools/date/date-to-date-string.d.ts +1 -0
- package/dist/features/core/modules/converters/tools/date/date-to-iso-string.d.ts +1 -0
- package/dist/features/core/modules/converters/tools/date/date-to-iso-z.d.ts +1 -0
- package/dist/features/core/modules/converters/tools/date/date-to-time-string.d.ts +1 -0
- package/dist/features/core/modules/converters/tools/date/iso-string-to-date.d.ts +1 -0
- package/dist/features/core/modules/converters/tools/date/iso-string-to-time-string.d.ts +1 -0
- package/dist/features/core/modules/converters/tools/date/string-to-date.d.ts +1 -0
- package/dist/features/core/modules/converters/tools/date/time-string-to-date.d.ts +1 -0
- package/dist/features/core/modules/converters/tools/date/timestamp-to-date.d.ts +1 -0
- package/dist/features/core/modules/converters/tools/date/weekdays-range.d.ts +1 -0
- package/dist/features/core/modules/converters/tools/json/json-parse.d.ts +1 -0
- package/dist/features/core/modules/converters/tools/json/json-stringify.d.ts +1 -0
- package/dist/features/core/modules/converters/tools/numbers/number-to-string.d.ts +1 -0
- package/dist/features/core/modules/converters/tools/numbers/string-to-number.d.ts +1 -0
- package/dist/features/core/modules/converters/tools/strings/default-if-empty.d.ts +1 -0
- package/dist/features/core/modules/converters/tools/strings/string-to-boolean.d.ts +1 -0
- package/dist/features/core/modules/converters/tools/strings/string-trim.d.ts +1 -0
- package/dist/features/core/modules/diagnostics/EndgeDiagnosticsSnapshots_Module.d.ts +88 -0
- package/dist/features/core/modules/diagnostics/EndgeDiagnostics_Module.d.ts +158 -0
- package/dist/features/core/modules/diagnostics/EndgeProblems_Module.d.ts +63 -0
- package/dist/features/core/modules/diagnostics/EndgeTelemetry_Module.d.ts +280 -0
- package/dist/features/core/modules/diagnostics/adapters/BrowserDiagnosticsSnapshot_Adapter.d.ts +15 -0
- package/dist/features/core/modules/diagnostics/adapters/ConsoleDiagnosticsAdapter.d.ts +39 -0
- package/dist/features/core/modules/diagnostics/adapters/DiagnosticsAdapterRegistry.d.ts +33 -0
- package/dist/features/core/modules/diagnostics/adapters/SentryDiagnosticsAdapter.d.ts +115 -0
- package/dist/features/core/modules/diagnostics/adapters/SentryDiagnosticsAdapter.types.d.ts +11 -0
- package/dist/features/core/modules/diagnostics/config/diagnostics.config.d.ts +3 -0
- package/dist/features/core/modules/diagnostics/domain/diagnostics-snapshot.d.ts +6 -0
- package/dist/features/core/modules/diagnostics/domain/entities/DiagnosticsRecordStore.d.ts +92 -0
- package/dist/features/core/modules/diagnostics/domain/entities/DiagnosticsSpan.d.ts +45 -0
- package/dist/features/core/modules/diagnostics/domain/types/diagnostics-adapter.type.d.ts +39 -0
- package/dist/features/core/modules/diagnostics/domain/types/diagnostics-snapshot-runtime-adapter.type.d.ts +13 -0
- package/dist/features/core/modules/diagnostics/domain/types/diagnostics.types.d.ts +296 -0
- package/dist/features/core/modules/document-import/EndgeDocumentImport_Module.d.ts +36 -0
- package/dist/features/core/modules/document-import/domain/types/document-import.type.d.ts +65 -0
- package/dist/features/core/modules/document-import/services/parsers/DocumentImportParser.d.ts +20 -0
- package/dist/features/core/modules/document-import/services/parsers/GraphQLDocumentImportParser.d.ts +11 -0
- package/dist/features/core/modules/document-import/services/parsers/OpenAPIDocumentImportParser.d.ts +11 -0
- package/dist/features/core/modules/domain/EndgeDomain_Module.d.ts +1202 -0
- package/dist/features/core/modules/domain/component/component-sfc-edit-trigger.d.ts +48 -0
- package/dist/features/core/modules/domain/component/sfc/component-sfc-source-parts.d.ts +5 -0
- package/dist/features/core/modules/domain/component/sfc-editing.config.d.ts +2 -0
- package/dist/features/core/modules/domain/component/table.d.ts +4 -0
- package/dist/features/core/modules/domain/documents/domain-document-descriptors.d.ts +95 -0
- package/dist/features/core/modules/domain/documents/service-document-serializer.d.ts +6 -0
- package/dist/features/core/modules/domain/entities/RAction.d.ts +22 -0
- package/dist/features/core/modules/domain/entities/RAuthProfile.d.ts +14 -0
- package/dist/features/core/modules/domain/entities/RComponent.d.ts +18 -0
- package/dist/features/core/modules/domain/entities/RComponentBase.d.ts +16 -0
- package/dist/features/core/modules/domain/entities/RComponentCore.d.ts +30 -0
- package/dist/features/core/modules/domain/entities/RComponentDSL.d.ts +7 -0
- package/dist/features/core/modules/domain/entities/RComponentSFC.d.ts +41 -0
- package/dist/features/core/modules/domain/entities/RComponentTable.d.ts +12 -0
- package/dist/features/core/modules/domain/entities/RComponentTableColumn.d.ts +40 -0
- package/dist/features/core/modules/domain/entities/RComposition.d.ts +18 -0
- package/dist/features/core/modules/domain/entities/RComputation.d.ts +19 -0
- package/dist/features/core/modules/domain/entities/RConfiguration.d.ts +13 -0
- package/dist/features/core/modules/domain/entities/RConverter.d.ts +15 -0
- package/dist/features/core/modules/domain/entities/RDataView.d.ts +12 -0
- package/dist/features/core/modules/domain/entities/REntity.d.ts +48 -0
- package/dist/features/core/modules/domain/entities/RFacet.d.ts +14 -0
- package/dist/features/core/modules/domain/entities/RFacetDocument.d.ts +13 -0
- package/dist/features/core/modules/domain/entities/RField.d.ts +9 -0
- package/dist/features/core/modules/domain/entities/RFilter.d.ts +11 -0
- package/dist/features/core/modules/domain/entities/RFolder.d.ts +24 -0
- package/dist/features/core/modules/domain/entities/RI18nBundle.d.ts +18 -0
- package/dist/features/core/modules/domain/entities/RIntegration.d.ts +17 -0
- package/dist/features/core/modules/domain/entities/RMock.d.ts +30 -0
- package/dist/features/core/modules/domain/entities/RNavigation.d.ts +27 -0
- package/dist/features/core/modules/domain/entities/RPage.d.ts +45 -0
- package/dist/features/core/modules/domain/entities/RPageTemplate.d.ts +35 -0
- package/dist/features/core/modules/domain/entities/RPolicy.d.ts +9 -0
- package/dist/features/core/modules/domain/entities/RQuery.d.ts +13 -0
- package/dist/features/core/modules/domain/entities/RSimulation.d.ts +10 -0
- package/dist/features/core/modules/domain/entities/RStore.d.ts +10 -0
- package/dist/features/core/modules/domain/entities/RStream.d.ts +10 -0
- package/dist/features/core/modules/domain/entities/RStyle.d.ts +14 -0
- package/dist/features/core/modules/domain/entities/RType.d.ts +12 -0
- package/dist/features/core/modules/domain/entities/RUpdate.d.ts +11 -0
- package/dist/features/core/modules/domain/entities/RVersion.d.ts +29 -0
- package/dist/features/core/modules/domain/entities/RVocabs.d.ts +31 -0
- package/dist/features/core/modules/domain/entities/RWorkspace.d.ts +17 -0
- package/dist/features/core/modules/domain/resolved/resolved-entity-index.d.ts +16 -0
- package/dist/features/core/modules/domain/types/component/component-core.types.d.ts +50 -0
- package/dist/features/core/modules/domain/types/component/component.types.d.ts +11 -0
- package/dist/features/core/modules/domain/types/component/sfc/ast.types.d.ts +86 -0
- package/dist/features/core/modules/domain/types/component/sfc/dependencies.types.d.ts +51 -0
- package/dist/features/core/modules/domain/types/component/sfc/expression-ir.types.d.ts +51 -0
- package/dist/features/core/modules/domain/types/component/sfc/intrinsic-events.types.d.ts +44 -0
- package/dist/features/core/modules/domain/types/component/sfc/ir.types.d.ts +269 -0
- package/dist/features/core/modules/domain/types/component/sfc/location.types.d.ts +8 -0
- package/dist/features/core/modules/domain/types/component/sfc/metadata-visual.types.d.ts +19 -0
- package/dist/features/core/modules/domain/types/component/sfc/ports-source.types.d.ts +40 -0
- package/dist/features/core/modules/domain/types/component/sfc/ports.types.d.ts +253 -0
- package/dist/features/core/modules/domain/types/component/sfc/props-visual.types.d.ts +18 -0
- package/dist/features/core/modules/domain/types/component/sfc/source.types.d.ts +15 -0
- package/dist/features/core/modules/domain/types/component/sfc/table-events.types.d.ts +88 -0
- package/dist/features/core/modules/domain/types/component/sfc/table-visibility.types.d.ts +5 -0
- package/dist/features/core/modules/domain/types/component/sfc/tag-attribute-contract.types.d.ts +140 -0
- package/dist/features/core/modules/domain/types/component/sfc/tag-input-contract.types.d.ts +211 -0
- package/dist/features/core/modules/domain/types/component/sfc/visual-projection.types.d.ts +311 -0
- package/dist/features/core/modules/domain/types/computation/computation-program.types.d.ts +35 -0
- package/dist/features/core/modules/domain/types/computation/computation-runtime.types.d.ts +46 -0
- package/dist/features/core/modules/domain/types/computation/computation-source.types.d.ts +30 -0
- package/dist/features/core/modules/domain/types/computation/computation.types.d.ts +3 -0
- package/dist/features/core/modules/domain/types/document/document-create.type.d.ts +16 -0
- package/dist/features/core/modules/domain/types/document/document-draft.type.d.ts +5 -0
- package/dist/features/core/modules/domain/types/document/document-identity.types.d.ts +28 -0
- package/dist/features/core/modules/domain/types/document/document-metadata.types.d.ts +36 -0
- package/dist/features/core/modules/domain/types/document/document-move.type.d.ts +5 -0
- package/dist/features/core/modules/domain/types/document/document.types.d.ts +76 -0
- package/dist/features/core/modules/domain/types/document/domain-export.type.d.ts +73 -0
- package/dist/features/core/modules/domain/types/document/domain-provider.type.d.ts +140 -0
- package/dist/features/core/modules/domain/types/document/domain-snapshot.type.d.ts +34 -0
- package/dist/features/core/modules/domain/types/document/entity-management.type.d.ts +28 -0
- package/dist/features/core/modules/domain/types/document/filter.types.d.ts +32 -0
- package/dist/features/core/modules/domain/types/document/navigation.types.d.ts +34 -0
- package/dist/features/core/modules/domain/types/document/query.types.d.ts +9 -0
- package/dist/features/core/modules/domain-repository/EndgeDomainRepository_Module.d.ts +126 -0
- package/dist/features/core/modules/domain-repository/services/domain-provider.d.ts +9 -0
- package/dist/features/core/modules/events/EndgeEvents_Module.d.ts +26 -0
- package/dist/features/core/modules/events/domain/events.types.d.ts +48 -0
- package/dist/features/core/modules/i18n/EndgeI18n_Module.d.ts +110 -0
- package/dist/features/core/modules/i18n/domain/i18n.types.d.ts +20 -0
- package/dist/features/core/modules/i18n/services/composition-i18n-catalog-projection.d.ts +15 -0
- package/dist/features/core/modules/i18n/services/i18n-catalog.d.ts +7 -0
- package/dist/features/core/modules/i18n/tools/resolve-runtime-translation.d.ts +2 -0
- package/dist/features/core/modules/implementations/EndgeImplementations_Module.d.ts +44 -0
- package/dist/features/core/modules/implementations/domain/implementation.types.d.ts +59 -0
- package/dist/features/core/modules/implementations/services/ImplementationBindingRegistry.d.ts +11 -0
- package/dist/features/core/modules/implementations/services/ImplementationProviderRegistry.d.ts +11 -0
- package/dist/features/core/modules/inspection/EndgeInspection_Module.d.ts +92 -0
- package/dist/features/core/modules/inspection/services/InspectionCapture_Service.d.ts +40 -0
- package/dist/features/core/modules/inspection/tools/inspection-recording.d.ts +11 -0
- package/dist/features/core/modules/inspection/types/inspection.types.d.ts +72 -0
- package/dist/features/core/modules/mock/EndgeMock_Module.d.ts +49 -0
- package/dist/features/core/modules/mock/domain/types/mock-data.type.d.ts +31 -0
- package/dist/features/core/modules/program/EndgeProgram_Module.d.ts +181 -0
- package/dist/features/core/modules/program/domain/types/action-program.types.d.ts +9 -0
- package/dist/features/core/modules/program/domain/types/execution-bundle.types.d.ts +71 -0
- package/dist/features/core/modules/program/domain/types/program-metadata.types.d.ts +15 -0
- package/dist/features/core/modules/program/domain/types/program.types.d.ts +186 -0
- package/dist/features/core/modules/program/tools/execution-bundle.d.ts +4 -0
- package/dist/features/core/modules/program/tools/portable-program-payload.d.ts +2 -0
- package/dist/features/core/modules/program/tools/restore-program-source.d.ts +2 -0
- package/dist/features/core/modules/runtime/ComponentSFCEventBoundary.d.ts +48 -0
- package/dist/features/core/modules/runtime/EndgeRuntimeScopes_Module.d.ts +34 -0
- package/dist/features/core/modules/runtime/EndgeRuntime_Module.d.ts +262 -0
- package/dist/features/core/modules/runtime/RuntimeActionRegistry.d.ts +20 -0
- package/dist/features/core/modules/runtime/RuntimeAppScope.d.ts +74 -0
- package/dist/features/core/modules/runtime/RuntimeBindingScope.d.ts +23 -0
- package/dist/features/core/modules/runtime/RuntimeHostBase.d.ts +109 -0
- package/dist/features/core/modules/runtime/RuntimeHostFactory.d.ts +13 -0
- package/dist/features/core/modules/runtime/RuntimeHostRegistry.d.ts +32 -0
- package/dist/features/core/modules/runtime/RuntimeResourceBag.d.ts +14 -0
- package/dist/features/core/modules/runtime/RuntimeScope.d.ts +60 -0
- package/dist/features/core/modules/runtime/adapters/QueryExecutor_Adapter.d.ts +74 -0
- package/dist/features/core/modules/runtime/domain/EndgeActionJsonScript.d.ts +2 -0
- package/dist/features/core/modules/runtime/domain/component-sfc-render-port.types.d.ts +7 -0
- package/dist/features/core/modules/runtime/domain/execution-context.types.d.ts +12 -0
- package/dist/features/core/modules/runtime/domain/query-execution.types.d.ts +6 -0
- package/dist/features/core/modules/runtime/domain/runtime-entity-map.types.d.ts +21 -0
- package/dist/features/core/modules/runtime/domain/runtime-execute.type.d.ts +18 -0
- package/dist/features/core/modules/runtime/domain/runtime-host.types.d.ts +268 -0
- package/dist/features/core/modules/runtime/domain/runtime-inspection.types.d.ts +26 -0
- package/dist/features/core/modules/runtime/domain/runtime-registry.types.d.ts +23 -0
- package/dist/features/core/modules/runtime/domain/runtime-render-inspection.types.d.ts +25 -0
- package/dist/features/core/modules/runtime/domain/runtime-resource.types.d.ts +15 -0
- package/dist/features/core/modules/runtime/domain/runtime-scope.types.d.ts +43 -0
- package/dist/features/core/modules/runtime/domain/runtime-strategy.types.d.ts +22 -0
- package/dist/features/core/modules/runtime/domain/runtime.types.d.ts +73 -0
- package/dist/features/core/modules/runtime/domain/sfc-render-inspection.type.d.ts +42 -0
- package/dist/features/core/modules/runtime/domain/simulation-runtime.types.d.ts +21 -0
- package/dist/features/core/modules/runtime/domain/stream-runtime.types.d.ts +18 -0
- package/dist/features/core/modules/runtime/domain/table-binding.types.d.ts +7 -0
- package/dist/features/core/modules/runtime/domain/table.types.d.ts +4 -0
- package/dist/features/core/modules/runtime/domain/vocab-cache.types.d.ts +24 -0
- package/dist/features/core/modules/runtime/execution/endge-composition.d.ts +13 -0
- package/dist/features/core/modules/runtime/execution/endge-data-view.d.ts +107 -0
- package/dist/features/core/modules/runtime/execution/endge-query.d.ts +30 -0
- package/dist/features/core/modules/runtime/execution/endge-response-output.d.ts +4 -0
- package/dist/features/core/modules/runtime/execution/endge-simulation.d.ts +7 -0
- package/dist/features/core/modules/runtime/helpers/raph-phases/runtime-boundary-update-phase.d.ts +23 -0
- package/dist/features/core/modules/runtime/helpers/raph-phases/runtime-node-update-phase.d.ts +16 -0
- package/dist/features/core/modules/runtime/hosts/ActionRuntimeHost.d.ts +26 -0
- package/dist/features/core/modules/runtime/hosts/ComponentSFCRuntimeHost.d.ts +225 -0
- package/dist/features/core/modules/runtime/hosts/CompositionRuntimeHost.d.ts +225 -0
- package/dist/features/core/modules/runtime/hosts/FilterRuntimeHost.d.ts +52 -0
- package/dist/features/core/modules/runtime/hosts/FilterViewRuntimeHost.d.ts +76 -0
- package/dist/features/core/modules/runtime/hosts/PageRuntimeHost.d.ts +22 -0
- package/dist/features/core/modules/runtime/hosts/QueryRuntimeHost.d.ts +71 -0
- package/dist/features/core/modules/runtime/hosts/SimulationRuntimeHost.d.ts +60 -0
- package/dist/features/core/modules/runtime/hosts/StoreRuntimeHost.d.ts +80 -0
- package/dist/features/core/modules/runtime/hosts/StreamRuntimeHost.d.ts +48 -0
- package/dist/features/core/modules/runtime/operation/EndgeOperations_Module.d.ts +29 -0
- package/dist/features/core/modules/runtime/operation/operation-executor.d.ts +16 -0
- package/dist/features/core/modules/runtime/operation/operation-history.d.ts +65 -0
- package/dist/features/core/modules/runtime/services/RuntimeStrategyRegistry.d.ts +19 -0
- package/dist/features/core/modules/runtime/services/SFCRenderInspectionSession.d.ts +43 -0
- package/dist/features/core/modules/runtime/services/component-sfc-expression-evaluate.d.ts +13 -0
- package/dist/features/core/modules/runtime/services/simulation/create-simulation-schema.d.ts +4 -0
- package/dist/features/core/modules/runtime/services/simulation/find-simulation-runtime.d.ts +3 -0
- package/dist/features/core/modules/runtime/services/simulation/prepare-simulation-overrides.d.ts +13 -0
- package/dist/features/core/modules/runtime/services/strategies/ActionRuntimeStrategy.d.ts +8 -0
- package/dist/features/core/modules/runtime/services/strategies/ComponentSFCRuntimeStrategy.d.ts +9 -0
- package/dist/features/core/modules/runtime/services/strategies/CompositionRuntimeStrategy.d.ts +9 -0
- package/dist/features/core/modules/runtime/services/strategies/FilterRuntimeStrategy.d.ts +9 -0
- package/dist/features/core/modules/runtime/services/strategies/PageRuntimeStrategy.d.ts +8 -0
- package/dist/features/core/modules/runtime/services/strategies/QueryRuntimeStrategy.d.ts +9 -0
- package/dist/features/core/modules/runtime/services/strategies/SimulationRuntimeStrategy.d.ts +9 -0
- package/dist/features/core/modules/runtime/services/strategies/StoreRuntimeStrategy.d.ts +9 -0
- package/dist/features/core/modules/runtime/services/strategies/StreamRuntimeStrategy.d.ts +12 -0
- package/dist/features/core/modules/runtime/services/transports/BrowserSseStreamTransportFactory.d.ts +11 -0
- package/dist/features/core/modules/runtime/services/transports/BrowserWebSocketStreamTransportFactory.d.ts +10 -0
- package/dist/features/core/modules/runtime/tools/runtime-inspection.d.ts +7 -0
- package/dist/features/core/modules/runtime/tools/runtime-render-inspection.d.ts +5 -0
- package/dist/features/core/modules/runtime/tools/runtime-render-values.d.ts +3 -0
- package/dist/features/core/modules/source/EndgeSource_Module.d.ts +115 -0
- package/dist/features/core/modules/source/domain/types/action-source.types.d.ts +40 -0
- package/dist/features/core/modules/source/domain/types/composition-source.types.d.ts +390 -0
- package/dist/features/core/modules/source/domain/types/configuration-source.types.d.ts +46 -0
- package/dist/features/core/modules/source/domain/types/data-view-source.types.d.ts +127 -0
- package/dist/features/core/modules/source/domain/types/filter-source.types.d.ts +94 -0
- package/dist/features/core/modules/source/domain/types/filter-view.type.d.ts +35 -0
- package/dist/features/core/modules/source/domain/types/query-source.types.d.ts +78 -0
- package/dist/features/core/modules/source/domain/types/response-output.types.d.ts +9 -0
- package/dist/features/core/modules/source/domain/types/simulation-source.types.d.ts +67 -0
- package/dist/features/core/modules/source/domain/types/source-engine.types.d.ts +166 -0
- package/dist/features/core/modules/source/domain/types/source-expression.types.d.ts +94 -0
- package/dist/features/core/modules/source/domain/types/store-source.types.d.ts +44 -0
- package/dist/features/core/modules/source/domain/types/stream-source.types.d.ts +52 -0
- package/dist/features/core/modules/source/domain/types/type-source.types.d.ts +73 -0
- package/dist/features/core/modules/source/domain/types/update-source.types.d.ts +41 -0
- package/dist/features/core/modules/source/domain/types/vocab-source.types.d.ts +37 -0
- package/dist/features/core/modules/source/services/SimulationSourceResolver.d.ts +36 -0
- package/dist/features/core/modules/source/services/SourceEngineRegistry.d.ts +19 -0
- package/dist/features/core/modules/source/services/SourceLanguageRegistry.d.ts +19 -0
- package/dist/features/core/modules/source/services/SourcePatchRegistry.d.ts +19 -0
- package/dist/features/core/modules/source/services/compilers/action-source-compile.d.ts +18 -0
- package/dist/features/core/modules/source/services/compilers/composition-source-compile.d.ts +3 -0
- package/dist/features/core/modules/source/services/compilers/configuration-source-compile.d.ts +3 -0
- package/dist/features/core/modules/source/services/compilers/data-view-source-compile.d.ts +2 -0
- package/dist/features/core/modules/source/services/compilers/filter-source-compile.d.ts +2 -0
- package/dist/features/core/modules/source/services/compilers/query-source-compile.d.ts +2 -0
- package/dist/features/core/modules/source/services/compilers/simulation-source-compile.d.ts +2 -0
- package/dist/features/core/modules/source/services/compilers/source-expression-compile.d.ts +12 -0
- package/dist/features/core/modules/source/services/compilers/source-field-compile.d.ts +13 -0
- package/dist/features/core/modules/source/services/compilers/source-metadata-compile.d.ts +13 -0
- package/dist/features/core/modules/source/services/compilers/source-model-reference-compile.d.ts +14 -0
- package/dist/features/core/modules/source/services/compilers/store-source-compile.d.ts +2 -0
- package/dist/features/core/modules/source/services/compilers/stream-source-compile.d.ts +2 -0
- package/dist/features/core/modules/source/services/compilers/type-source-compile.d.ts +7 -0
- package/dist/features/core/modules/source/services/compilers/update-source-compile.d.ts +2 -0
- package/dist/features/core/modules/source/services/compilers/vocab-source-compile.d.ts +2 -0
- package/dist/features/core/modules/source/services/component-sfc/component-sfc-metadata-source-patch.d.ts +4 -0
- package/dist/features/core/modules/source/services/component-sfc/component-sfc-ports-source-patch.d.ts +4 -0
- package/dist/features/core/modules/source/services/component-sfc/component-sfc-props-source-patch.d.ts +4 -0
- package/dist/features/core/modules/source/services/component-sfc/component-sfc-table-source-patch.d.ts +2 -0
- package/dist/features/core/modules/source/services/component-sfc/component-sfc-visual-projection.d.ts +2 -0
- package/dist/features/core/modules/source/services/composition-activation.d.ts +2 -0
- package/dist/features/core/modules/source/services/composition-source-i18n-hints.d.ts +3 -0
- package/dist/features/core/modules/source/services/composition-source-normalize.d.ts +1 -0
- package/dist/features/core/modules/source/services/composition-source-patch.d.ts +4 -0
- package/dist/features/core/modules/source/services/configuration-source-patch.d.ts +14 -0
- package/dist/features/core/modules/source/services/document-metadata.d.ts +5 -0
- package/dist/features/core/modules/source/services/filter-source-patch.d.ts +10 -0
- package/dist/features/core/modules/source/services/migrations/query-source-v1-migration.d.ts +10 -0
- package/dist/features/core/modules/source/services/query-source-patch.d.ts +10 -0
- package/dist/features/core/modules/source/services/source-document-reference.d.ts +14 -0
- package/dist/features/core/modules/source/services/source-expression-evaluate.d.ts +3 -0
- package/dist/features/core/modules/source/services/source-language-syntax.d.ts +10 -0
- package/dist/features/core/modules/source/services/strategies/ActionSourceEngineStrategy.d.ts +7 -0
- package/dist/features/core/modules/source/services/strategies/ActionSourceLanguageStrategy.d.ts +23 -0
- package/dist/features/core/modules/source/services/strategies/CompositionSourceEngineStrategy.d.ts +7 -0
- package/dist/features/core/modules/source/services/strategies/CompositionSourceLanguageStrategy.d.ts +14 -0
- package/dist/features/core/modules/source/services/strategies/CompositionSourcePatchStrategy.d.ts +21 -0
- package/dist/features/core/modules/source/services/strategies/ComputationSourceEngineStrategy.d.ts +7 -0
- package/dist/features/core/modules/source/services/strategies/ComputationSourceLanguageStrategy.d.ts +12 -0
- package/dist/features/core/modules/source/services/strategies/ConfigurationSourceEngineStrategy.d.ts +7 -0
- package/dist/features/core/modules/source/services/strategies/ConfigurationSourceLanguageStrategy.d.ts +12 -0
- package/dist/features/core/modules/source/services/strategies/DataViewSourceEngineStrategy.d.ts +20 -0
- package/dist/features/core/modules/source/services/strategies/DataViewSourceLanguageStrategy.d.ts +27 -0
- package/dist/features/core/modules/source/services/strategies/FilterSourceEngineStrategy.d.ts +10 -0
- package/dist/features/core/modules/source/services/strategies/FilterSourceLanguageStrategy.d.ts +12 -0
- package/dist/features/core/modules/source/services/strategies/FilterSourcePatchStrategy.d.ts +12 -0
- package/dist/features/core/modules/source/services/strategies/QuerySourceEngineStrategy.d.ts +20 -0
- package/dist/features/core/modules/source/services/strategies/QuerySourceLanguageStrategy.d.ts +27 -0
- package/dist/features/core/modules/source/services/strategies/QuerySourcePatchStrategy.d.ts +21 -0
- package/dist/features/core/modules/source/services/strategies/SimulationSourceEngineStrategy.d.ts +10 -0
- package/dist/features/core/modules/source/services/strategies/SimulationSourceLanguageStrategy.d.ts +14 -0
- package/dist/features/core/modules/source/services/strategies/StoreSourceEngineStrategy.d.ts +7 -0
- package/dist/features/core/modules/source/services/strategies/StoreSourceLanguageStrategy.d.ts +12 -0
- package/dist/features/core/modules/source/services/strategies/StreamSourceEngineStrategy.d.ts +7 -0
- package/dist/features/core/modules/source/services/strategies/StreamSourceLanguageStrategy.d.ts +10 -0
- package/dist/features/core/modules/source/services/strategies/StyleSourceEngineStrategy.d.ts +7 -0
- package/dist/features/core/modules/source/services/strategies/StyleSourceLanguageStrategy.d.ts +43 -0
- package/dist/features/core/modules/source/services/strategies/TypeSourceEngineStrategy.d.ts +10 -0
- package/dist/features/core/modules/source/services/strategies/TypeSourceLanguageStrategy.d.ts +13 -0
- package/dist/features/core/modules/source/services/strategies/UpdateSourceEngineStrategy.d.ts +7 -0
- package/dist/features/core/modules/source/services/strategies/UpdateSourceLanguageStrategy.d.ts +10 -0
- package/dist/features/core/modules/source/services/strategies/VocabSourceEngineStrategy.d.ts +8 -0
- package/dist/features/core/modules/source/services/strategies/VocabSourceLanguageStrategy.d.ts +11 -0
- package/dist/features/core/modules/source/services/strategies/VocabSourcePatchStrategy.d.ts +9 -0
- package/dist/features/core/modules/source/services/type-source-references.d.ts +10 -0
- package/dist/features/core/modules/source/services/type-source-serialize.d.ts +4 -0
- package/dist/features/core/modules/source/services/typescript-type-source.d.ts +16 -0
- package/dist/features/core/modules/source/services/value-expression-language.d.ts +4 -0
- package/dist/features/core/modules/source/services/value-expression-operations.d.ts +9 -0
- package/dist/features/core/modules/source/services/vocab-source-patch.d.ts +10 -0
- package/dist/features/core/modules/source/templates/action.default.source.d.ts +1 -0
- package/dist/features/core/modules/source/templates/component-sfc/component-sfc.default.source.d.ts +1 -0
- package/dist/features/core/modules/source/templates/composition.default.source.d.ts +1 -0
- package/dist/features/core/modules/source/templates/computation.default.source.d.ts +1 -0
- package/dist/features/core/modules/source/templates/configuration.default.source.d.ts +1 -0
- package/dist/features/core/modules/source/templates/data-view.default.source.d.ts +1 -0
- package/dist/features/core/modules/source/templates/filter.default.source.d.ts +1 -0
- package/dist/features/core/modules/source/templates/query.default.source.d.ts +2 -0
- package/dist/features/core/modules/source/templates/simulation.default.source.d.ts +1 -0
- package/dist/features/core/modules/source/templates/store.default.source.d.ts +1 -0
- package/dist/features/core/modules/source/templates/stream.default.source.d.ts +1 -0
- package/dist/features/core/modules/source/templates/type.default.source.d.ts +1 -0
- package/dist/features/core/modules/source/templates/update.default.source.d.ts +1 -0
- package/dist/features/core/modules/source/templates/vocab.default.source.d.ts +1 -0
- package/dist/features/core/modules/styles/EndgeStyles_Module.d.ts +34 -0
- package/dist/features/core/modules/styles/domain/types/style.types.d.ts +195 -0
- package/dist/features/core/modules/styles/services/endgecss-compile.d.ts +4 -0
- package/dist/features/core/modules/styles/services/endgecss-match.d.ts +5 -0
- package/dist/features/core/modules/ui/EndgeUIRegistry_Module.d.ts +130 -0
- package/dist/features/core/modules/ui/EndgeUI_Module.d.ts +108 -0
- package/dist/features/core/modules/ui/domain/types/context-menu.types.d.ts +20 -0
- package/dist/features/core/modules/ui/domain/types/jsx.types.d.ts +7 -0
- package/dist/features/core/modules/ui/domain/types/tooltip-markdown.types.d.ts +32 -0
- package/dist/features/core/modules/ui/domain/types/ui-composition.types.d.ts +167 -0
- package/dist/features/core/modules/ui/domain/types/ui-render-adapter.type.d.ts +29 -0
- package/dist/features/core/modules/ui/domain/types/ui.types.d.ts +17 -0
- package/dist/features/core/modules/ui/registry/UIAdapterRegistry.d.ts +58 -0
- package/dist/features/core/modules/ui/tooltip/endge-tooltip-markdown.d.ts +3 -0
- package/dist/features/core/modules/ui/ui-composition.config.d.ts +523 -0
- package/dist/features/core/modules/updates/EndgeUpdates_Module.d.ts +14 -0
- package/dist/features/core/modules/updates/tools/ScheduleUpdate-sse-generator.d.ts +9 -0
- package/dist/features/core/modules/workspace/EndgeWorkspace_Module.d.ts +145 -0
- package/dist/features/core/modules/workspace/domain/workspace.types.d.ts +30 -0
- package/dist/features/federation/EndgeFederation.d.ts +133 -0
- package/dist/features/federation/EndgeModule.d.ts +58 -0
- package/dist/features/federation/constants/federation.constants.d.ts +1 -0
- package/dist/features/federation/services/EndgeModuleController.d.ts +16 -0
- package/dist/features/federation/services/EndgeSlotRegistry.d.ts +14 -0
- package/dist/features/federation/tools/endge-token.d.ts +2 -0
- package/dist/features/federation/tools/sort-endge-modules.d.ts +9 -0
- package/dist/features/federation/types/endge-modules.types.d.ts +28 -0
- package/dist/features/federation/types/federation.types.d.ts +112 -0
- package/dist/features/federation/types/forge.types.d.ts +23 -0
- package/dist/main.d.ts +288 -0
- package/package.json +77 -0
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { ComponentSFCTagRegistryEntry, ProgramArtifact, ProgramArtifactKey } from './program.types';
|
|
2
|
+
import { BundleJsonValue } from '../../../../kernel/types/endge-bundle.types';
|
|
3
|
+
import { EndgeConfiguration } from '../../../configuration/domain/types/configuration.type';
|
|
4
|
+
import { EndgeContextSnapshot } from '../../../context/domain/context-persistence.types';
|
|
5
|
+
export interface CompiledFolderDescriptor {
|
|
6
|
+
id: string;
|
|
7
|
+
identity: string;
|
|
8
|
+
displayName: string;
|
|
9
|
+
parentId: string | null;
|
|
10
|
+
scope: 'workspace' | 'collection';
|
|
11
|
+
entityType: string | null;
|
|
12
|
+
position: number;
|
|
13
|
+
icon?: string;
|
|
14
|
+
color?: string;
|
|
15
|
+
}
|
|
16
|
+
export interface CompiledDocumentDescriptor {
|
|
17
|
+
id: string;
|
|
18
|
+
identity: string;
|
|
19
|
+
entityType: string;
|
|
20
|
+
displayName: string;
|
|
21
|
+
folderId: string | null;
|
|
22
|
+
workspaceFolderId: string | null;
|
|
23
|
+
position: number;
|
|
24
|
+
documentType?: string;
|
|
25
|
+
facetIdentity?: string;
|
|
26
|
+
kind?: string;
|
|
27
|
+
kindIdentity?: string;
|
|
28
|
+
storeIdentity?: string;
|
|
29
|
+
icon?: string;
|
|
30
|
+
color?: string;
|
|
31
|
+
artifactKeys: ProgramArtifactKey[];
|
|
32
|
+
status: 'compiled' | 'not-compiled';
|
|
33
|
+
}
|
|
34
|
+
export interface CompiledWorkspaceDescriptor {
|
|
35
|
+
identity: string;
|
|
36
|
+
displayName: string;
|
|
37
|
+
startupCompositionIdentity: string | null;
|
|
38
|
+
documentStructure?: 'frontend' | 'custom';
|
|
39
|
+
}
|
|
40
|
+
export interface CompiledProgramCatalog {
|
|
41
|
+
workspace?: CompiledWorkspaceDescriptor;
|
|
42
|
+
folders: Record<string, CompiledFolderDescriptor>;
|
|
43
|
+
documents: Record<string, CompiledDocumentDescriptor>;
|
|
44
|
+
}
|
|
45
|
+
export type PortableProgramArtifact = ProgramArtifact<BundleJsonValue>;
|
|
46
|
+
export interface CompiledContextDescriptor extends EndgeContextSnapshot {
|
|
47
|
+
configuration: EndgeConfiguration;
|
|
48
|
+
}
|
|
49
|
+
export interface ProgramHostActionRequirement {
|
|
50
|
+
identity: string;
|
|
51
|
+
owner: string;
|
|
52
|
+
providerKey: string;
|
|
53
|
+
}
|
|
54
|
+
export interface ProgramRequirements {
|
|
55
|
+
hostActions?: ProgramHostActionRequirement[];
|
|
56
|
+
artifactTypes: string[];
|
|
57
|
+
componentTags: ComponentSFCTagRegistryEntry[];
|
|
58
|
+
}
|
|
59
|
+
export interface ExecutionBundle {
|
|
60
|
+
version: 1;
|
|
61
|
+
programId: string;
|
|
62
|
+
compilerVersion: string;
|
|
63
|
+
createdAt: string;
|
|
64
|
+
context: CompiledContextDescriptor;
|
|
65
|
+
requirements: ProgramRequirements;
|
|
66
|
+
catalog: CompiledProgramCatalog;
|
|
67
|
+
artifacts: Record<ProgramArtifactKey, PortableProgramArtifact>;
|
|
68
|
+
}
|
|
69
|
+
export interface PreparedProgramInstall {
|
|
70
|
+
readonly bundle: ExecutionBundle;
|
|
71
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type ProgramMetadataValue = null | boolean | number | string | ProgramMetadataValue[] | {
|
|
2
|
+
[key: string]: ProgramMetadataValue;
|
|
3
|
+
};
|
|
4
|
+
export type ProgramMetadataMap = Record<string, ProgramMetadataValue>;
|
|
5
|
+
export interface ProgramNodeMetadata {
|
|
6
|
+
nodeId: string;
|
|
7
|
+
nodeKind: string;
|
|
8
|
+
key?: string;
|
|
9
|
+
values: ProgramMetadataMap;
|
|
10
|
+
}
|
|
11
|
+
export interface ProgramMetadata {
|
|
12
|
+
self: ProgramMetadataMap;
|
|
13
|
+
nodes: ProgramNodeMetadata[];
|
|
14
|
+
}
|
|
15
|
+
export declare function createEmptyProgramMetadata(): ProgramMetadata;
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
import { RComponentContract, RComponentDependencies } from '../../../domain/types/component/component-core.types';
|
|
2
|
+
import { RComponentSFC_AST } from '../../../domain/types/component/sfc/ast.types';
|
|
3
|
+
import { RComponentSFC_RuntimeDependencies } from '../../../domain/types/component/sfc/dependencies.types';
|
|
4
|
+
import { RComponentSFC_IR } from '../../../domain/types/component/sfc/ir.types';
|
|
5
|
+
import { RComponentSFCSource_Parts } from '../../../domain/types/component/sfc/source.types';
|
|
6
|
+
import { ComputationProgramPayload } from '../../../domain/types/computation/computation-program.types';
|
|
7
|
+
import { ProgramMetadata } from './program-metadata.types';
|
|
8
|
+
import { DataViewManualTransform, DataViewPipelineStep, DataViewRef, DataViewSourceDocument } from '../../../source/domain/types/data-view-source.types';
|
|
9
|
+
import { ResponseOutputTransform } from '../../../source/domain/types/response-output.types';
|
|
10
|
+
import { QueryProgramProp, SourceExpressionIR, SourceFieldDefinition } from '../../../source/domain/types/source-expression.types';
|
|
11
|
+
import { VocabProgramPayload } from '../../../source/domain/types/vocab-source.types';
|
|
12
|
+
import { EndgeStyleSheetArtifact } from '../../../styles/domain/types/style.types';
|
|
13
|
+
export type { ActionProgramPayload } from './action-program.types';
|
|
14
|
+
export type { ConfigurationProgramPayload } from '../../../source/domain/types/configuration-source.types';
|
|
15
|
+
export type ProgramArtifactKey = string;
|
|
16
|
+
export type ProgramEntityType = 'type' | 'component-sfc' | 'computation' | 'action' | 'query' | 'vocab' | 'data-view' | 'store' | 'stream' | 'simulation' | 'update' | 'filter' | 'composition' | 'style' | 'configuration';
|
|
17
|
+
export type ProgramArtifactStatus = 'valid' | 'warning' | 'error';
|
|
18
|
+
export type ProgramCapability = 'compilable' | 'runnable' | 'executable' | 'renderable' | 'data-provider' | 'configuration';
|
|
19
|
+
export interface ProgramArtifactRef {
|
|
20
|
+
entityType: ProgramEntityType;
|
|
21
|
+
id: string | number;
|
|
22
|
+
identity: string;
|
|
23
|
+
}
|
|
24
|
+
export interface ProgramDiagnostic {
|
|
25
|
+
severity: 'info' | 'warning' | 'error';
|
|
26
|
+
code: string;
|
|
27
|
+
message: string;
|
|
28
|
+
entityRef?: ProgramArtifactRef;
|
|
29
|
+
sourcePath?: string;
|
|
30
|
+
start?: number;
|
|
31
|
+
end?: number;
|
|
32
|
+
}
|
|
33
|
+
export interface ProgramDependency {
|
|
34
|
+
entityType: ProgramEntityType | string;
|
|
35
|
+
id: string | number;
|
|
36
|
+
identity?: string;
|
|
37
|
+
role?: string;
|
|
38
|
+
sourcePath?: string;
|
|
39
|
+
start?: number;
|
|
40
|
+
end?: number;
|
|
41
|
+
}
|
|
42
|
+
export interface ProgramArtifact<TPayload = unknown> {
|
|
43
|
+
ref: ProgramArtifactRef;
|
|
44
|
+
sourceHash: string;
|
|
45
|
+
compilerVersion: string;
|
|
46
|
+
contextHash?: string;
|
|
47
|
+
status: ProgramArtifactStatus;
|
|
48
|
+
diagnostics: ProgramDiagnostic[];
|
|
49
|
+
dependencies: ProgramDependency[];
|
|
50
|
+
capabilities: ProgramCapability[];
|
|
51
|
+
metadata: ProgramMetadata;
|
|
52
|
+
payload: TPayload;
|
|
53
|
+
children?: ProgramArtifact[];
|
|
54
|
+
}
|
|
55
|
+
export type QueryProgramOutputSource = {
|
|
56
|
+
type: 'response';
|
|
57
|
+
path: string | null;
|
|
58
|
+
expression?: import('../../../source/domain/types/source-expression.types').SourceExpressionIR;
|
|
59
|
+
} | {
|
|
60
|
+
type: 'output';
|
|
61
|
+
key: string;
|
|
62
|
+
};
|
|
63
|
+
export interface QueryProgramOutput {
|
|
64
|
+
key: string;
|
|
65
|
+
source: QueryProgramOutputSource;
|
|
66
|
+
transforms?: ResponseOutputTransform[];
|
|
67
|
+
dataViews: DataViewRef[];
|
|
68
|
+
contract?: SourceFieldDefinition | null;
|
|
69
|
+
materialization: {
|
|
70
|
+
kind: 'source';
|
|
71
|
+
} | {
|
|
72
|
+
kind: 'derived';
|
|
73
|
+
strategy: import('../../../source/domain/types/data-view-source.types').DataViewMaterializationStrategy;
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
export type QueryProgramRequestValue<T> = T | SourceExpressionIR;
|
|
77
|
+
export interface QueryProgramPayload {
|
|
78
|
+
sourceVersion: number;
|
|
79
|
+
ast?: unknown;
|
|
80
|
+
sourceDocument?: unknown;
|
|
81
|
+
type: string;
|
|
82
|
+
method?: QueryProgramRequestValue<string>;
|
|
83
|
+
endpoint: QueryProgramRequestValue<string>;
|
|
84
|
+
query: QueryProgramRequestValue<string>;
|
|
85
|
+
operationName?: string;
|
|
86
|
+
errorPolicy?: 'throw' | 'ignore';
|
|
87
|
+
headers?: QueryProgramRequestValue<Record<string, string>>;
|
|
88
|
+
auth?: QueryProgramRequestValue<unknown>;
|
|
89
|
+
timeoutMs?: QueryProgramRequestValue<number>;
|
|
90
|
+
sendAsFormUrlencoded?: QueryProgramRequestValue<boolean>;
|
|
91
|
+
props: QueryProgramProp[];
|
|
92
|
+
requestBody: SourceExpressionIR | null;
|
|
93
|
+
requestVariables?: SourceExpressionIR | null;
|
|
94
|
+
mockDataEnabled?: boolean;
|
|
95
|
+
mockData?: unknown;
|
|
96
|
+
outputs: QueryProgramOutput[];
|
|
97
|
+
}
|
|
98
|
+
export type { VocabProgramPayload };
|
|
99
|
+
export interface DataViewProgramPayload {
|
|
100
|
+
ast?: unknown;
|
|
101
|
+
type: 'data-view';
|
|
102
|
+
mode: 'manual' | 'pipeline' | 'projection' | 'expression';
|
|
103
|
+
materializationStrategy: import('../../../source/domain/types/data-view-source.types').DataViewMaterializationStrategy;
|
|
104
|
+
sourceDocument: DataViewSourceDocument | null;
|
|
105
|
+
contract?: DataViewSourceDocument['contract'];
|
|
106
|
+
props?: SourceFieldDefinition[];
|
|
107
|
+
filter?: SourceExpressionIR | null;
|
|
108
|
+
transform: DataViewManualTransform | null;
|
|
109
|
+
steps: DataViewPipelineStep[];
|
|
110
|
+
output: Record<string, SourceExpressionIR>;
|
|
111
|
+
expression?: SourceExpressionIR | null;
|
|
112
|
+
}
|
|
113
|
+
export interface ComponentSFCProgramPayload {
|
|
114
|
+
sections?: Record<'script' | 'template' | 'style', ProgramArtifactStatus>;
|
|
115
|
+
sourceParts: RComponentSFCSource_Parts;
|
|
116
|
+
contract: RComponentContract;
|
|
117
|
+
dependencies: RComponentDependencies;
|
|
118
|
+
runtimeDependencies: RComponentSFC_RuntimeDependencies;
|
|
119
|
+
previewProps: ComponentSFCPreviewProps | null;
|
|
120
|
+
previewOptions: ComponentSFCPreviewOptions | null;
|
|
121
|
+
ast?: RComponentSFC_AST | null;
|
|
122
|
+
ir: RComponentSFC_IR | null;
|
|
123
|
+
}
|
|
124
|
+
export interface EndgeStyleProgramPayload {
|
|
125
|
+
ast?: unknown;
|
|
126
|
+
stylesheet: EndgeStyleSheetArtifact;
|
|
127
|
+
themes: string[];
|
|
128
|
+
dependencies: ProgramDependency[];
|
|
129
|
+
}
|
|
130
|
+
export type { ComputationProgramPayload };
|
|
131
|
+
export interface ComponentSFCTagRegistryEntry {
|
|
132
|
+
tag: string;
|
|
133
|
+
identity: string;
|
|
134
|
+
}
|
|
135
|
+
export type ComponentSFCPreviewLiteral = null | string | number | boolean | ComponentSFCPreviewLiteral[] | {
|
|
136
|
+
[key: string]: ComponentSFCPreviewLiteral;
|
|
137
|
+
};
|
|
138
|
+
export interface ComponentSFCPreviewStoreProp {
|
|
139
|
+
type: 'store';
|
|
140
|
+
path: string;
|
|
141
|
+
}
|
|
142
|
+
export interface ComponentSFCPreviewDataProp {
|
|
143
|
+
type: 'data';
|
|
144
|
+
store: string;
|
|
145
|
+
path: string;
|
|
146
|
+
}
|
|
147
|
+
export type ComponentSFCPreviewPropValue = ComponentSFCPreviewLiteral | ComponentSFCPreviewStoreProp | ComponentSFCPreviewDataProp;
|
|
148
|
+
export type ComponentSFCPreviewProps = Record<string, ComponentSFCPreviewPropValue>;
|
|
149
|
+
export interface ComponentSFCPreviewRunTarget {
|
|
150
|
+
type: 'query';
|
|
151
|
+
identity: string;
|
|
152
|
+
storeTo?: {
|
|
153
|
+
store: string;
|
|
154
|
+
fields: Record<string, string>;
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
export interface ComponentSFCPreviewOptions {
|
|
158
|
+
seed?: Record<string, ComponentSFCPreviewLiteral>;
|
|
159
|
+
run?: ComponentSFCPreviewRunTarget[];
|
|
160
|
+
}
|
|
161
|
+
export interface ProgramCompileContext {
|
|
162
|
+
compilerVersion: string;
|
|
163
|
+
buildContext: import('../../../configuration/domain/types/configuration.type').EndgeBuildContext;
|
|
164
|
+
}
|
|
165
|
+
export interface EntityCompilerHandler<TEntity = unknown, TPayload = unknown> {
|
|
166
|
+
entityType: ProgramEntityType;
|
|
167
|
+
compile: (entity: TEntity, context: ProgramCompileContext) => ProgramArtifact<TPayload>;
|
|
168
|
+
}
|
|
169
|
+
export interface EndgeProgramSnapshot {
|
|
170
|
+
generatedAt: number;
|
|
171
|
+
status: ProgramArtifactStatus;
|
|
172
|
+
compilerVersion: string;
|
|
173
|
+
total: number;
|
|
174
|
+
byStatus: Record<ProgramArtifactStatus, number>;
|
|
175
|
+
byEntityType: Record<string, number>;
|
|
176
|
+
diagnostics: ProgramDiagnostic[];
|
|
177
|
+
artifacts: Array<{
|
|
178
|
+
ref: ProgramArtifactRef;
|
|
179
|
+
status: ProgramArtifactStatus;
|
|
180
|
+
diagnostics: number;
|
|
181
|
+
dependencies: number;
|
|
182
|
+
capabilities: ProgramCapability[];
|
|
183
|
+
sourceHash: string;
|
|
184
|
+
compilerVersion: string;
|
|
185
|
+
}>;
|
|
186
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ExecutionBundle, PortableProgramArtifact } from '../domain/types/execution-bundle.types';
|
|
2
|
+
import { ProgramArtifact } from '../domain/types/program.types';
|
|
3
|
+
export declare function packProgramArtifact(artifact: ProgramArtifact, includeAst: boolean): PortableProgramArtifact;
|
|
4
|
+
export declare function readExecutionBundle(input: unknown): ExecutionBundle;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { RComponentSFC_IR_EventBinding } from '../domain/types/component/sfc/ir.types';
|
|
2
|
+
import { ComponentSFCEventRuntimeSource, ComponentSFCPortManifest, ComponentSFCRequiredPortBinding } from '../domain/types/component/sfc/ports.types';
|
|
3
|
+
import { ComponentSFCRuntimeHost } from './hosts/ComponentSFCRuntimeHost';
|
|
4
|
+
/**
|
|
5
|
+
* Router Event уровня mount для границы одного артефакта Component SFC.
|
|
6
|
+
*/
|
|
7
|
+
export declare class ComponentSFCEventBoundary {
|
|
8
|
+
private readonly _host;
|
|
9
|
+
readonly componentIdentity: string;
|
|
10
|
+
private readonly _manifest;
|
|
11
|
+
private readonly _parent;
|
|
12
|
+
private readonly _parentSource?;
|
|
13
|
+
private readonly _parentBindings;
|
|
14
|
+
private readonly _parentEventTransform?;
|
|
15
|
+
private readonly _requiredPortBindings;
|
|
16
|
+
private readonly _consumedLocalOnce;
|
|
17
|
+
constructor(_host: Pick<ComponentSFCRuntimeHost, 'executeEventPortAction' | 'publishEventPort' | 'emit'> | null, componentIdentity: string, _manifest: ComponentSFCPortManifest, _parent?: ComponentSFCEventBoundary | null, _parentSource?: ComponentSFCEventRuntimeSource | undefined, _parentBindings?: readonly RComponentSFC_IR_EventBinding[], _parentEventTransform?: ((event: string, payload: unknown) => {
|
|
18
|
+
event: string;
|
|
19
|
+
payload: unknown;
|
|
20
|
+
} | null) | undefined, _requiredPortBindings?: readonly ComponentSFCRequiredPortBinding[]);
|
|
21
|
+
createChild(componentIdentity: string, manifest: ComponentSFCPortManifest, source: ComponentSFCEventRuntimeSource, bindings?: readonly RComponentSFC_IR_EventBinding[], transform?: (event: string, payload: unknown) => {
|
|
22
|
+
event: string;
|
|
23
|
+
payload: unknown;
|
|
24
|
+
} | null, requiredPortBindings?: readonly ComponentSFCRequiredPortBinding[]): ComponentSFCEventBoundary;
|
|
25
|
+
/**
|
|
26
|
+
* True, когда текущий публичный манифест наблюдает один Event этого дочернего source.
|
|
27
|
+
*/
|
|
28
|
+
observesChild(source: ComponentSFCEventRuntimeSource, event: string): boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Фиксирует логическое правило `.once` уровня mount после его совпадения.
|
|
31
|
+
*/
|
|
32
|
+
claimLocalOnce(key: string): boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Выполняет локальные реакции `@event`, затем маршрутизирует событие, если отсутствует `.stop`.
|
|
35
|
+
*/
|
|
36
|
+
routeChild(source: ComponentSFCEventRuntimeSource, event: string, payload: unknown, bindings?: readonly RComponentSFC_IR_EventBinding[], trace?: string[], depth?: number, scope?: Record<string, unknown>): Promise<void>;
|
|
37
|
+
/**
|
|
38
|
+
* Получает событие встроенного или вложенного дочернего элемента и вычисляет публичные порты по источнику.
|
|
39
|
+
*/
|
|
40
|
+
emitChild(source: ComponentSFCEventRuntimeSource, event: string, payload: unknown, trace?: string[], depth?: number): Promise<void>;
|
|
41
|
+
/**
|
|
42
|
+
* Отправляет Event, объявленный собственным событием этого компонента.
|
|
43
|
+
*/
|
|
44
|
+
emitOwn(name: string, payload: unknown, trace?: string[], depth?: number): Promise<void>;
|
|
45
|
+
private _dispatch;
|
|
46
|
+
private _resolveRequiredPortAction;
|
|
47
|
+
private _reportError;
|
|
48
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { RuntimeHost } from './domain/runtime-host.types';
|
|
2
|
+
import { RuntimeScope } from './RuntimeScope';
|
|
3
|
+
import { EndgeModule } from '../../../federation/EndgeModule';
|
|
4
|
+
/**
|
|
5
|
+
* Индексирует runtime scopes и membership RuntimeHost.
|
|
6
|
+
*/
|
|
7
|
+
export declare class EndgeRuntimeScopes_Module extends EndgeModule {
|
|
8
|
+
private readonly _onChange;
|
|
9
|
+
private readonly _scopes;
|
|
10
|
+
private readonly _scopeByRuntime;
|
|
11
|
+
private readonly _scopeDisposers;
|
|
12
|
+
private _transactionDepth;
|
|
13
|
+
private _notificationPending;
|
|
14
|
+
/**
|
|
15
|
+
* Получает уведомление владельца Runtime без обращения к Core при создании.
|
|
16
|
+
*/
|
|
17
|
+
constructor(_onChange?: () => void);
|
|
18
|
+
/**
|
|
19
|
+
* Публикует завершённое изменение scopes; состояние остаётся у их owners.
|
|
20
|
+
*/
|
|
21
|
+
notify(): void;
|
|
22
|
+
register(scope: RuntimeScope): RuntimeScope;
|
|
23
|
+
transaction<T>(operation: () => T): T;
|
|
24
|
+
get(id: string): RuntimeScope | null;
|
|
25
|
+
getAll(): RuntimeScope[];
|
|
26
|
+
snapshot(): import('./domain/runtime-scope.types').RuntimeScopeSnapshot[];
|
|
27
|
+
attachRuntime(scopeId: string, host: RuntimeHost<any, any>): void;
|
|
28
|
+
detachRuntime(runtimeId: string): void;
|
|
29
|
+
getByRuntime(runtimeId: string): RuntimeScope | null;
|
|
30
|
+
remove(id: string): Promise<void>;
|
|
31
|
+
reset(): Promise<void>;
|
|
32
|
+
private _removeScope;
|
|
33
|
+
private _changed;
|
|
34
|
+
}
|
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
import { EndgeBootContext } from '../../kernel/types/bootstrap.types';
|
|
2
|
+
import { RuntimeEntityType } from './domain/runtime-entity-map.types';
|
|
3
|
+
import { RuntimeExecuteOptions } from './domain/runtime-execute.type';
|
|
4
|
+
import { DestroyedRuntimeHostSnapshot, RuntimeHost, RuntimeInspectionLease } from './domain/runtime-host.types';
|
|
5
|
+
import { RuntimeControlOperation, RuntimeControlTarget, RuntimeInspectionSnapshot, RuntimeStatusChange } from './domain/runtime-inspection.types';
|
|
6
|
+
import { RuntimeRenderInspection } from './domain/runtime-render-inspection.types';
|
|
7
|
+
import { AnyRuntimeHost, AnyRuntimeStrategy } from './domain/runtime-strategy.types';
|
|
8
|
+
import { EndgeRuntimeRaphSnapshot, EndgeRuntimeSnapshot, RuntimeExecutableModel } from './domain/runtime.types';
|
|
9
|
+
import { RuntimeAppScopeOptions, RuntimeAppScope } from './RuntimeAppScope';
|
|
10
|
+
import { EndgeDataMode } from '../workspace/domain/workspace.types';
|
|
11
|
+
import { EndgeRuntimeScopes_Module } from './EndgeRuntimeScopes_Module';
|
|
12
|
+
import { EndgeComposition } from './execution/endge-composition';
|
|
13
|
+
import { EndgeDataView } from './execution/endge-data-view';
|
|
14
|
+
import { EndgeQuery } from './execution/endge-query';
|
|
15
|
+
import { EndgeSimulation } from './execution/endge-simulation';
|
|
16
|
+
import { EndgeOperations_Module } from './operation/EndgeOperations_Module';
|
|
17
|
+
import { RuntimeScope } from './RuntimeScope';
|
|
18
|
+
import { EndgeModule } from '../../../federation/EndgeModule';
|
|
19
|
+
/**
|
|
20
|
+
* Модуль создания, регистрации и уничтожения runtime hosts и app scopes.
|
|
21
|
+
*/
|
|
22
|
+
export declare class EndgeRuntime_Module extends EndgeModule<EndgeBootContext> {
|
|
23
|
+
readonly query: EndgeQuery;
|
|
24
|
+
readonly dataView: EndgeDataView;
|
|
25
|
+
readonly composition: EndgeComposition;
|
|
26
|
+
readonly simulation: EndgeSimulation;
|
|
27
|
+
readonly operations: EndgeOperations_Module;
|
|
28
|
+
readonly scopes: EndgeRuntimeScopes_Module;
|
|
29
|
+
private readonly _onHostStatusChanged;
|
|
30
|
+
private readonly _onRenderChanged;
|
|
31
|
+
private _inspectionMode;
|
|
32
|
+
private _inspection;
|
|
33
|
+
private readonly _dataLeases;
|
|
34
|
+
private _unsubscribeData;
|
|
35
|
+
private _dataRevision;
|
|
36
|
+
private readonly _renderDataOff;
|
|
37
|
+
private _hosts;
|
|
38
|
+
private _strategies;
|
|
39
|
+
private _inited;
|
|
40
|
+
private _phaseRuntime;
|
|
41
|
+
private _appNode;
|
|
42
|
+
private _scopeNodes;
|
|
43
|
+
private _appScopes;
|
|
44
|
+
private _defaultAppScope;
|
|
45
|
+
private _unsubscribeWorkspace;
|
|
46
|
+
private _unsubscribeContext;
|
|
47
|
+
private _destroyedSnapshotLeases;
|
|
48
|
+
private _destroyingRuntimes;
|
|
49
|
+
private _destroyingTrees;
|
|
50
|
+
private _generation;
|
|
51
|
+
private _executions;
|
|
52
|
+
/**
|
|
53
|
+
* Сохраняет только ограниченные лёгкие описатели для явного inspector.
|
|
54
|
+
*/
|
|
55
|
+
acquireDestroyedHostSnapshots(limit: number): RuntimeInspectionLease;
|
|
56
|
+
/**
|
|
57
|
+
* Создаёт default app scope и регистрирует runtime strategies.
|
|
58
|
+
*/
|
|
59
|
+
constructor();
|
|
60
|
+
/**
|
|
61
|
+
* Уведомляет consumers об изменении реестра без передачи runtime data.
|
|
62
|
+
*/
|
|
63
|
+
notify(): void;
|
|
64
|
+
/**
|
|
65
|
+
* Настраивает Raph runtime до загрузки и сборки домена.
|
|
66
|
+
*/
|
|
67
|
+
setup(ctx: EndgeBootContext): void;
|
|
68
|
+
/**
|
|
69
|
+
* Регистрирует runtime-фазы в Raph один раз.
|
|
70
|
+
*/
|
|
71
|
+
start(): void;
|
|
72
|
+
/**
|
|
73
|
+
* Создаёт runtime-host для переданной доменной модели.
|
|
74
|
+
*/
|
|
75
|
+
execute(model: RuntimeExecutableModel, options?: RuntimeExecuteOptions): AnyRuntimeHost | null;
|
|
76
|
+
/**
|
|
77
|
+
* Awaits teardown before reusing a root address; serializes competing replacements.
|
|
78
|
+
*/
|
|
79
|
+
executeAsync(model: RuntimeExecutableModel, options?: RuntimeExecuteOptions): Promise<AnyRuntimeHost | null>;
|
|
80
|
+
/**
|
|
81
|
+
* Разрешает data mode по ближайшему Composition override с fallback на общий Endge context.
|
|
82
|
+
*/
|
|
83
|
+
resolveDataMode(host: RuntimeHost<any, any> | null | undefined): EndgeDataMode;
|
|
84
|
+
/**
|
|
85
|
+
* Монтирует единственную startup Composition текущего Workspace без legacy fallback.
|
|
86
|
+
*/
|
|
87
|
+
mountStartup(options?: Parameters<EndgeComposition['mount']>[1]): Promise<import('../source/domain/types/composition-source.types').CompositionSession<import('./hosts/CompositionRuntimeHost').CompositionRuntimeHost>>;
|
|
88
|
+
/**
|
|
89
|
+
* Регистрирует стратегию запуска runtime-сущности.
|
|
90
|
+
*/
|
|
91
|
+
registerStrategy(strategy: AnyRuntimeStrategy): void;
|
|
92
|
+
/**
|
|
93
|
+
* Создаёт или возвращает именованный root runtime scope приложения.
|
|
94
|
+
*/
|
|
95
|
+
createAppScope(options: RuntimeAppScopeOptions): RuntimeAppScope;
|
|
96
|
+
private _createAppScope;
|
|
97
|
+
/**
|
|
98
|
+
* Возвращает lifecycle scope, которому принадлежит RuntimeHost.
|
|
99
|
+
*/
|
|
100
|
+
getRuntimeScopeByHost(runtimeId: string): RuntimeScope | null;
|
|
101
|
+
/**
|
|
102
|
+
* Возвращает корневой scope обычного запуска приложения.
|
|
103
|
+
*/
|
|
104
|
+
getDefaultAppScope(): RuntimeAppScope;
|
|
105
|
+
/**
|
|
106
|
+
* Возвращает зарегистрированный AppScope.
|
|
107
|
+
*/
|
|
108
|
+
getAppScope(id: string): RuntimeAppScope | null;
|
|
109
|
+
/**
|
|
110
|
+
* Возвращает runtime-host по его runtime-id.
|
|
111
|
+
*/
|
|
112
|
+
getRuntimeById<T = AnyRuntimeHost>(runtimeId: string): T | null;
|
|
113
|
+
/**
|
|
114
|
+
* Возвращает список всех активных runtime-host.
|
|
115
|
+
*/
|
|
116
|
+
getRuntimeHosts(): AnyRuntimeHost[];
|
|
117
|
+
/**
|
|
118
|
+
* Инвалидирует все renderable roots активных application scopes.
|
|
119
|
+
* Операция намеренно coarse-grained: context preferences меняются редко,
|
|
120
|
+
* поэтому отдельный dependency graph на этом этапе не нужен.
|
|
121
|
+
*/
|
|
122
|
+
invalidateApplicationScopes(): void;
|
|
123
|
+
/**
|
|
124
|
+
* Регистрирует host, созданный владельцем составной runtime-сущности.
|
|
125
|
+
*/
|
|
126
|
+
registerRuntimeHost(host: AnyRuntimeHost): boolean;
|
|
127
|
+
/**
|
|
128
|
+
* Возвращает snapshots удалённых runtime hosts для inspection tools.
|
|
129
|
+
*/
|
|
130
|
+
getDeletedRuntimeHostSnapshots(): DestroyedRuntimeHostSnapshot[];
|
|
131
|
+
/**
|
|
132
|
+
* Полностью удаляет один snapshot уничтоженного runtime host.
|
|
133
|
+
*/
|
|
134
|
+
removeDeletedRuntimeHostSnapshot(runtimeId: string): void;
|
|
135
|
+
/**
|
|
136
|
+
* Полностью очищает snapshots уничтоженных runtime hosts.
|
|
137
|
+
*/
|
|
138
|
+
clearDeletedRuntimeHostSnapshots(): void;
|
|
139
|
+
/**
|
|
140
|
+
* Возвращает runtime-host по доменной сущности.
|
|
141
|
+
*/
|
|
142
|
+
getRuntimeHostsByEntity(entityType: RuntimeEntityType, entityIdentity: string, appScopeId?: string): AnyRuntimeHost[];
|
|
143
|
+
/**
|
|
144
|
+
* Включает hosts, scopes и operation histories в диагностическое дерево Module.
|
|
145
|
+
*/
|
|
146
|
+
createDiagnosticsSnapshot(): EndgeRuntimeSnapshot & {
|
|
147
|
+
operations: unknown;
|
|
148
|
+
};
|
|
149
|
+
/**
|
|
150
|
+
* Возвращает общий snapshot runtime-состояния.
|
|
151
|
+
*/
|
|
152
|
+
snapshot(): EndgeRuntimeSnapshot;
|
|
153
|
+
/**
|
|
154
|
+
* Формирует принадлежащую runtime-модулю диагностическую проекцию Raph.
|
|
155
|
+
*/
|
|
156
|
+
snapshotRaph(options: {
|
|
157
|
+
includeData: boolean;
|
|
158
|
+
includeGraph: boolean;
|
|
159
|
+
}): EndgeRuntimeRaphSnapshot;
|
|
160
|
+
/**
|
|
161
|
+
* JSON-safe проекция owner-а; Bridge задаёт частоту и набор передаваемых частей.
|
|
162
|
+
*/
|
|
163
|
+
captureInspection(includeData?: boolean): RuntimeInspectionSnapshot;
|
|
164
|
+
/**
|
|
165
|
+
* Прямой импорт факта: не создаёт hosts, не пишет Raph и не выполняет Commands.
|
|
166
|
+
*/
|
|
167
|
+
applyInspectionSnapshot(value: unknown): void;
|
|
168
|
+
/**
|
|
169
|
+
* Полная замена состояния выбранного момента; отсутствие data не наследует более поздние значения.
|
|
170
|
+
*/
|
|
171
|
+
replaceInspectionSnapshot(value: unknown): void;
|
|
172
|
+
/**
|
|
173
|
+
* Событие обновляет только известный экземпляр; новую структуру приносит следующий snapshot.
|
|
174
|
+
*/
|
|
175
|
+
applyInspectionEvent(change: RuntimeStatusChange): void;
|
|
176
|
+
/**
|
|
177
|
+
* Данные остаются снимком для чтения, даже когда локальный Raph уже существует.
|
|
178
|
+
*/
|
|
179
|
+
applyInspectionData(data: unknown, generatedAt: number, render?: RuntimeRenderInspection): void;
|
|
180
|
+
/**
|
|
181
|
+
* Ошибка передачи не маскируется под свежий или пустой снимок данных.
|
|
182
|
+
*/
|
|
183
|
+
applyInspectionDataError(message: string): void;
|
|
184
|
+
/**
|
|
185
|
+
* JSON-safe снимок только данных, без пересборки структуры и Raph graph.
|
|
186
|
+
*/
|
|
187
|
+
captureInspectionData(): {
|
|
188
|
+
data: unknown;
|
|
189
|
+
render?: RuntimeRenderInspection;
|
|
190
|
+
generatedAt: number;
|
|
191
|
+
};
|
|
192
|
+
/**
|
|
193
|
+
* Смена debug session удаляет прошлые данные, не затрагивая локальный runtime.
|
|
194
|
+
*/
|
|
195
|
+
clearInspection(): void;
|
|
196
|
+
get inspection(): Readonly<RuntimeInspectionSnapshot>;
|
|
197
|
+
/**
|
|
198
|
+
* Наблюдение Raph существует только пока у Runtime есть явный consumer.
|
|
199
|
+
*/
|
|
200
|
+
acquireDataChanges(): RuntimeInspectionLease;
|
|
201
|
+
/**
|
|
202
|
+
* Локальная операция над конкретным экземпляром; удалённый вызов идёт через Commands.
|
|
203
|
+
*/
|
|
204
|
+
control(operation: RuntimeControlOperation, input: RuntimeControlTarget): Promise<void>;
|
|
205
|
+
private _requireInspection;
|
|
206
|
+
private _observeRenderChanges;
|
|
207
|
+
/**
|
|
208
|
+
* Корректно разрушает runtime-host по runtime-id.
|
|
209
|
+
*/
|
|
210
|
+
destroyRuntime(runtimeId: string): void;
|
|
211
|
+
/**
|
|
212
|
+
* Корректно разрушает runtime-host и всех его дочерних host.
|
|
213
|
+
*/
|
|
214
|
+
destroyRuntimeTree(runtimeId: string): void;
|
|
215
|
+
/**
|
|
216
|
+
* Concurrent callers await the same tree, including every child's async cleanup.
|
|
217
|
+
*/
|
|
218
|
+
destroyRuntimeTreeAsync(runtimeId: string): Promise<void>;
|
|
219
|
+
/**
|
|
220
|
+
* Корректно разрушает все зарегистрированные runtime-host.
|
|
221
|
+
*/
|
|
222
|
+
reset(): Promise<void>;
|
|
223
|
+
/**
|
|
224
|
+
* Проецирует фактические переменные workspace в runtime namespace Raph.
|
|
225
|
+
*/
|
|
226
|
+
private _syncWorkspaceVariablesToRaph;
|
|
227
|
+
/**
|
|
228
|
+
* Внутренний destroy для host с контролем уведомления подписчиков.
|
|
229
|
+
*/
|
|
230
|
+
private _destroyRuntimeInternal;
|
|
231
|
+
private _disposeHost;
|
|
232
|
+
private _syncDestroyedSnapshotLimit;
|
|
233
|
+
private _createDestroyedSnapshot;
|
|
234
|
+
/**
|
|
235
|
+
* Регистрирует host, подключает infrastructure и только затем активирует его.
|
|
236
|
+
*/
|
|
237
|
+
private _registerAndActivateHost;
|
|
238
|
+
/**
|
|
239
|
+
* Лениво пересоздаёт корень жизненного цикла после полного Endge.reset().
|
|
240
|
+
*/
|
|
241
|
+
private _ensureLifecycleAppScope;
|
|
242
|
+
/**
|
|
243
|
+
* Регистрирует встроенные стратегии в порядке от специальных к общим.
|
|
244
|
+
*/
|
|
245
|
+
private _registerDefaultStrategies;
|
|
246
|
+
/**
|
|
247
|
+
* Разрешает scope запуска: explicit -> parent -> default app.
|
|
248
|
+
*/
|
|
249
|
+
private _resolveAppScope;
|
|
250
|
+
/**
|
|
251
|
+
* Создаёт Raph graph node для AppScope независимо от data namespace.
|
|
252
|
+
*/
|
|
253
|
+
private _ensureScopeNode;
|
|
254
|
+
/**
|
|
255
|
+
* Разрешает и проверяет явно переданный parent host.
|
|
256
|
+
*/
|
|
257
|
+
private _resolveParentHost;
|
|
258
|
+
/**
|
|
259
|
+
* Разрешает artifact reader и запрещает невалидную явную зависимость.
|
|
260
|
+
*/
|
|
261
|
+
private _resolveArtifactReader;
|
|
262
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { AnyRuntimeAction, RuntimeAction, RuntimeActionContext, RuntimeActionId, RuntimeActionRegistrySnapshot } from '../actions/domain/action.types';
|
|
2
|
+
/**
|
|
3
|
+
* Реестр вызываемых runtime-провайдеров Action.
|
|
4
|
+
*/
|
|
5
|
+
export declare class RuntimeActionRegistry {
|
|
6
|
+
private readonly _actions;
|
|
7
|
+
register<TContext extends RuntimeActionContext, TPayload = unknown, TResult = void>(action: RuntimeAction<TContext, TPayload, TResult>): () => void;
|
|
8
|
+
registerMany(actions: AnyRuntimeAction[]): void;
|
|
9
|
+
unregister(id: RuntimeActionId): void;
|
|
10
|
+
clear(): void;
|
|
11
|
+
has(id: RuntimeActionId): boolean;
|
|
12
|
+
get<TContext extends RuntimeActionContext, TPayload = unknown, TResult = void>(id: RuntimeActionId): RuntimeAction<TContext, TPayload, TResult> | null;
|
|
13
|
+
list(input?: {
|
|
14
|
+
surface?: string;
|
|
15
|
+
}): AnyRuntimeAction[];
|
|
16
|
+
canExecute<TContext extends RuntimeActionContext, TPayload = unknown>(id: RuntimeActionId, context: TContext, payload?: TPayload): boolean;
|
|
17
|
+
execute<TContext extends RuntimeActionContext, TPayload = unknown, TResult = void>(id: RuntimeActionId, context: TContext, payload?: TPayload): Promise<TResult | undefined>;
|
|
18
|
+
snapshot(): RuntimeActionRegistrySnapshot;
|
|
19
|
+
private _assertActionId;
|
|
20
|
+
}
|