@endge/core 12.0.3 → 14.0.0-dev.2
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 +26657 -25069
- package/dist/features/core/kernel/config/debugger.config.d.ts +0 -1
- package/dist/features/core/kernel/config/kernel.config.d.ts +0 -6
- package/dist/features/core/kernel/config/modules.config.d.ts +0 -1
- package/dist/features/core/kernel/endge.d.ts +15 -7
- package/dist/features/core/kernel/errors/EndgeDebuggerReadOnlyError.d.ts +3 -1
- package/dist/features/core/kernel/services/EndgeBundleCodec_Service.d.ts +3 -2
- package/dist/features/core/kernel/tools/bundle-json.d.ts +0 -4
- package/dist/features/core/kernel/tools/debugger-snapshot.d.ts +0 -1
- package/dist/features/core/kernel/tools/read-only-document.d.ts +0 -1
- package/dist/features/core/kernel/types/bootstrap.types.d.ts +0 -37
- package/dist/features/core/kernel/types/endge-bundle.types.d.ts +0 -1
- package/dist/features/core/modules/EndgeTypes_Module.d.ts +3 -1
- package/dist/features/core/modules/EndgeVocabs_Module.d.ts +33 -15
- package/dist/features/core/modules/actions/EndgeActions_Module.d.ts +38 -22
- package/dist/features/core/modules/actions/domain/action.types.d.ts +0 -12
- package/dist/features/core/modules/actions/services/ActionProgramExecutor.d.ts +3 -2
- package/dist/features/core/modules/actions/services/table-actions.d.ts +0 -1
- package/dist/features/core/modules/auth/EndgeAuth_Module.d.ts +24 -8
- package/dist/features/core/modules/auth/adapters/BasicAuthAdapter.d.ts +9 -3
- package/dist/features/core/modules/auth/adapters/BearerAuthAdapter.d.ts +9 -3
- package/dist/features/core/modules/auth/adapters/OAuth2ClientCredentialsAuthAdapter.d.ts +3 -1
- package/dist/features/core/modules/auth/adapters/OAuth2PasswordAuthAdapter.d.ts +3 -1
- package/dist/features/core/modules/auth/adapters/OidcAuthAdapter.d.ts +3 -1
- package/dist/features/core/modules/auth/adapters/OidcBrowserSession_Adapter.d.ts +33 -11
- package/dist/features/core/modules/auth/domain/AuthInteractionRequiredError.d.ts +3 -1
- package/dist/features/core/modules/auth/domain/types/auth-profile.types.d.ts +0 -6
- package/dist/features/core/modules/auth/services/AuthAdapterRegistry.d.ts +15 -5
- package/dist/features/core/modules/auth/services/AuthProfileRegistry.d.ts +24 -8
- package/dist/features/core/modules/auth/services/AuthRequestResolver.d.ts +9 -3
- package/dist/features/core/modules/auth/services/AuthSessionManager.d.ts +48 -16
- package/dist/features/core/modules/auth/services/AuthSessionStore.d.ts +21 -7
- package/dist/features/core/modules/auth/services/auth-context.d.ts +0 -3
- package/dist/features/core/modules/bridge/EndgeBridge_Module.d.ts +27 -20
- package/dist/features/core/modules/bridge/adapters/BrowserBridge_Adapter.d.ts +12 -4
- package/dist/features/core/modules/bridge/config/bridge.config.d.ts +0 -5
- package/dist/features/core/modules/bridge/configurator/EndgeBridgeConfigurator_Module.d.ts +14 -12
- package/dist/features/core/modules/bridge/debug/EndgeBridgeDebug_Module.d.ts +72 -35
- package/dist/features/core/modules/bridge/domain/bridge-sync.type.d.ts +0 -3
- package/dist/features/core/modules/bridge/domain/bridge.type.d.ts +0 -3
- package/dist/features/core/modules/bridge/services/BridgeConnection_Service.d.ts +15 -5
- package/dist/features/core/modules/bridge/tools/bridge-sync.d.ts +0 -6
- package/dist/features/core/modules/commands/EndgeCommands_Module.d.ts +12 -4
- package/dist/features/core/modules/commands/config/commands.config.d.ts +0 -3
- package/dist/features/core/modules/commands/domain/commands.types.d.ts +0 -2
- package/dist/features/core/modules/commands/services/LocalCommandExecutor.d.ts +6 -2
- package/dist/features/core/modules/commands/services/RemoteCommandExecutor.d.ts +6 -2
- package/dist/features/core/modules/commands/services/context/SetDataModeCommand.d.ts +3 -1
- package/dist/features/core/modules/commands/services/context/SetFacetCommand.d.ts +3 -1
- package/dist/features/core/modules/commands/services/context/SetLocaleCommand.d.ts +3 -1
- package/dist/features/core/modules/commands/services/context/SetThemeCommand.d.ts +3 -1
- package/dist/features/core/modules/commands/services/context/SetTimezoneCommand.d.ts +3 -1
- package/dist/features/core/modules/commands/services/context/SetUserCommand.d.ts +3 -1
- package/dist/features/core/modules/commands/services/context/SetWorkspaceCommand.d.ts +3 -1
- package/dist/features/core/modules/commands/services/runtime/PauseRuntimeCommand.d.ts +3 -1
- package/dist/features/core/modules/commands/services/runtime/ResumeRuntimeCommand.d.ts +3 -1
- package/dist/features/core/modules/commands/services/runtime/StopRuntimeCommand.d.ts +3 -1
- package/dist/features/core/modules/commands/tools/command-payload.d.ts +0 -2
- package/dist/features/core/modules/commands/types/command-executor.type.d.ts +0 -4
- package/dist/features/core/modules/commands/types/context-command-target.type.d.ts +0 -1
- package/dist/features/core/modules/commands/types/runtime-command-target.type.d.ts +0 -1
- package/dist/features/core/modules/compiler/EndgeCompiler_Module.d.ts +193 -74
- package/dist/features/core/modules/compiler/services/action/action-compile.d.ts +0 -1
- package/dist/features/core/modules/compiler/services/action/action-target-validation.d.ts +0 -2
- package/dist/features/core/modules/compiler/services/component-sfc/component-sfc-attributes.d.ts +0 -3
- package/dist/features/core/modules/compiler/services/component-sfc/component-sfc-built-in-tags.d.ts +0 -1
- package/dist/features/core/modules/compiler/services/component-sfc/component-sfc-compile.d.ts +0 -22
- package/dist/features/core/modules/compiler/services/component-sfc/component-sfc-dependencies.d.ts +0 -1
- package/dist/features/core/modules/compiler/services/component-sfc/component-sfc-expression-ir.d.ts +0 -1
- package/dist/features/core/modules/compiler/services/component-sfc/component-sfc-expression.d.ts +0 -14
- package/dist/features/core/modules/compiler/services/component-sfc/component-sfc-forward.d.ts +0 -3
- package/dist/features/core/modules/compiler/services/component-sfc/component-sfc-interactions.d.ts +0 -2
- package/dist/features/core/modules/compiler/services/component-sfc/component-sfc-parse.d.ts +0 -5
- package/dist/features/core/modules/compiler/services/component-sfc/component-sfc-ports.d.ts +0 -3
- package/dist/features/core/modules/compiler/services/component-sfc/component-sfc-script.d.ts +0 -10
- package/dist/features/core/modules/compiler/services/component-sfc/component-sfc-style.d.ts +0 -1
- package/dist/features/core/modules/compiler/services/component-sfc/component-sfc-table-menu.d.ts +0 -5
- package/dist/features/core/modules/compiler/services/component-sfc/component-sfc-table-pin.d.ts +0 -1
- package/dist/features/core/modules/compiler/services/component-sfc/component-sfc-table-sort.d.ts +0 -1
- package/dist/features/core/modules/compiler/services/component-sfc/component-sfc-table-visibility.d.ts +0 -1
- package/dist/features/core/modules/compiler/services/component-sfc/component-sfc-template.d.ts +0 -18
- package/dist/features/core/modules/compiler/services/computation/computation-compile.d.ts +0 -1
- package/dist/features/core/modules/compiler/services/type/type-program-validation.d.ts +0 -7
- package/dist/features/core/modules/compiler/tools/compiled-program-catalog.d.ts +0 -1
- package/dist/features/core/modules/computations/EndgeComputations_Module.d.ts +18 -16
- package/dist/features/core/modules/computations/model/ComputationResource.d.ts +6 -2
- package/dist/features/core/modules/computations/model/ComputationResourceRegistry.d.ts +9 -4
- package/dist/features/core/modules/computations/services/ComputationGraphExecutor.d.ts +3 -1
- package/dist/features/core/modules/configuration/EndgeConfigurationSchema_Module.d.ts +6 -2
- package/dist/features/core/modules/configuration/EndgeConfiguration_Module.d.ts +39 -13
- package/dist/features/core/modules/configuration/domain/configuration-value.d.ts +0 -2
- package/dist/features/core/modules/configuration/domain/endge-configuration.d.ts +0 -6
- package/dist/features/core/modules/configuration/domain/tooltip.config.d.ts +0 -1
- package/dist/features/core/modules/configuration/domain/types/configuration.type.d.ts +0 -22
- package/dist/features/core/modules/context/EndgeContext_Module.d.ts +186 -62
- package/dist/features/core/modules/context/domain/context-events.types.d.ts +0 -1
- package/dist/features/core/modules/context/domain/context-persistence.types.d.ts +0 -4
- package/dist/features/core/modules/context/domain/context-state.types.d.ts +0 -5
- package/dist/features/core/modules/context/endge-vars.d.ts +12 -4
- package/dist/features/core/modules/context/persistence/RuntimeStateController.d.ts +6 -2
- package/dist/features/core/modules/context/persistence/adapters/LocalStorageContextAdapter.d.ts +3 -1
- package/dist/features/core/modules/context/persistence/context-state.d.ts +0 -2
- package/dist/features/core/modules/converters/EndgeConverters_Module.d.ts +3 -6
- package/dist/features/core/modules/converters/tools/arrays/split.d.ts +0 -1
- package/dist/features/core/modules/converters/tools/arrays/to-array.d.ts +0 -1
- package/dist/features/core/modules/converters/tools/date/date-to-date-string.d.ts +0 -1
- package/dist/features/core/modules/converters/tools/date/date-to-iso-string.d.ts +0 -1
- package/dist/features/core/modules/converters/tools/date/date-to-iso-z.d.ts +0 -1
- package/dist/features/core/modules/converters/tools/date/date-to-time-string.d.ts +0 -1
- package/dist/features/core/modules/converters/tools/date/iso-string-to-date.d.ts +0 -1
- package/dist/features/core/modules/converters/tools/date/iso-string-to-time-string.d.ts +0 -1
- package/dist/features/core/modules/converters/tools/date/string-to-date.d.ts +0 -1
- package/dist/features/core/modules/converters/tools/date/time-string-to-date.d.ts +0 -1
- package/dist/features/core/modules/converters/tools/date/timestamp-to-date.d.ts +0 -1
- package/dist/features/core/modules/converters/tools/date/weekdays-range.d.ts +0 -4
- package/dist/features/core/modules/converters/tools/json/json-parse.d.ts +0 -1
- package/dist/features/core/modules/converters/tools/json/json-stringify.d.ts +0 -1
- package/dist/features/core/modules/converters/tools/numbers/number-to-string.d.ts +0 -1
- package/dist/features/core/modules/converters/tools/numbers/string-to-number.d.ts +0 -1
- package/dist/features/core/modules/converters/tools/strings/default-if-empty.d.ts +0 -1
- package/dist/features/core/modules/converters/tools/strings/string-to-boolean.d.ts +0 -1
- package/dist/features/core/modules/converters/tools/strings/string-trim.d.ts +0 -1
- package/dist/features/core/modules/diagnostics/EndgeDiagnosticsSnapshots_Module.d.ts +54 -18
- package/dist/features/core/modules/diagnostics/EndgeDiagnostics_Module.d.ts +101 -45
- package/dist/features/core/modules/diagnostics/EndgeProblems_Module.d.ts +39 -14
- package/dist/features/core/modules/diagnostics/EndgeTelemetry_Module.d.ts +177 -59
- package/dist/features/core/modules/diagnostics/adapters/BrowserDiagnosticsSnapshot_Adapter.d.ts +9 -3
- package/dist/features/core/modules/diagnostics/adapters/ConsoleDiagnosticsAdapter.d.ts +21 -8
- package/dist/features/core/modules/diagnostics/adapters/DiagnosticsAdapterRegistry.d.ts +21 -7
- package/dist/features/core/modules/diagnostics/adapters/SentryDiagnosticsAdapter.d.ts +75 -26
- package/dist/features/core/modules/diagnostics/adapters/SentryDiagnosticsAdapter.types.d.ts +0 -9
- package/dist/features/core/modules/diagnostics/config/diagnostics.config.d.ts +0 -2
- package/dist/features/core/modules/diagnostics/domain/diagnostics-snapshot.d.ts +0 -1
- package/dist/features/core/modules/diagnostics/domain/entities/DiagnosticsRecordStore.d.ts +60 -20
- package/dist/features/core/modules/diagnostics/domain/entities/DiagnosticsSpan.d.ts +24 -8
- package/dist/features/core/modules/diagnostics/domain/types/diagnostics-adapter.type.d.ts +0 -14
- package/dist/features/core/modules/diagnostics/domain/types/diagnostics-snapshot-runtime-adapter.type.d.ts +0 -2
- package/dist/features/core/modules/diagnostics/domain/types/diagnostics.types.d.ts +0 -66
- package/dist/features/core/modules/document-import/EndgeDocumentImport_Module.d.ts +17 -14
- package/dist/features/core/modules/document-import/domain/types/document-import.type.d.ts +0 -11
- package/dist/features/core/modules/document-import/services/parsers/DocumentImportParser.d.ts +0 -3
- package/dist/features/core/modules/document-import/services/parsers/GraphQLDocumentImportParser.d.ts +6 -2
- package/dist/features/core/modules/document-import/services/parsers/OpenAPIDocumentImportParser.d.ts +6 -2
- package/dist/features/core/modules/domain/EndgeDomain_Module.d.ts +165 -64
- package/dist/features/core/modules/domain/component/component-sfc-edit-trigger.d.ts +9 -11
- package/dist/features/core/modules/domain/component/sfc/component-sfc-source-parts.d.ts +0 -4
- package/dist/features/core/modules/domain/component/sfc-editing.config.d.ts +0 -1
- package/dist/features/core/modules/domain/documents/domain-document-descriptors.d.ts +0 -3
- package/dist/features/core/modules/domain/documents/service-document-serializer.d.ts +0 -3
- package/dist/features/core/modules/domain/entities/RAction.d.ts +3 -1
- package/dist/features/core/modules/domain/entities/RComponent.d.ts +0 -7
- package/dist/features/core/modules/domain/entities/RComponentBase.d.ts +0 -1
- package/dist/features/core/modules/domain/entities/RComponentCore.d.ts +12 -8
- package/dist/features/core/modules/domain/entities/RComponentDSL.d.ts +3 -1
- package/dist/features/core/modules/domain/entities/RComponentSFC.d.ts +18 -10
- package/dist/features/core/modules/domain/entities/RComponentTable.d.ts +3 -5
- package/dist/features/core/modules/domain/entities/RComponentTableColumn.d.ts +0 -20
- package/dist/features/core/modules/domain/entities/RComposition.d.ts +3 -3
- package/dist/features/core/modules/domain/entities/RComputation.d.ts +6 -2
- package/dist/features/core/modules/domain/entities/RConfiguration.d.ts +3 -1
- package/dist/features/core/modules/domain/entities/RDataView.d.ts +6 -4
- package/dist/features/core/modules/domain/entities/REntity.d.ts +12 -15
- package/dist/features/core/modules/domain/entities/RFacet.d.ts +3 -3
- package/dist/features/core/modules/domain/entities/RFacetDocument.d.ts +3 -2
- package/dist/features/core/modules/domain/entities/RFilter.d.ts +0 -2
- package/dist/features/core/modules/domain/entities/RFolder.d.ts +6 -6
- package/dist/features/core/modules/domain/entities/RI18nBundle.d.ts +6 -4
- package/dist/features/core/modules/domain/entities/RIntegration.d.ts +3 -1
- package/dist/features/core/modules/domain/entities/RMock.d.ts +15 -5
- package/dist/features/core/modules/domain/entities/RNavigation.d.ts +6 -2
- package/dist/features/core/modules/domain/entities/RPage.d.ts +6 -4
- package/dist/features/core/modules/domain/entities/RPageTemplate.d.ts +6 -3
- package/dist/features/core/modules/domain/entities/RPolicy.d.ts +3 -1
- package/dist/features/core/modules/domain/entities/RQuery.d.ts +0 -3
- package/dist/features/core/modules/domain/entities/RSimulation.d.ts +3 -1
- package/dist/features/core/modules/domain/entities/RStore.d.ts +3 -1
- package/dist/features/core/modules/domain/entities/RStream.d.ts +3 -1
- package/dist/features/core/modules/domain/entities/RStyle.d.ts +3 -2
- package/dist/features/core/modules/domain/entities/RType.d.ts +0 -1
- package/dist/features/core/modules/domain/entities/RUpdate.d.ts +3 -2
- package/dist/features/core/modules/domain/entities/RVersion.d.ts +3 -2
- package/dist/features/core/modules/domain/entities/RVocabs.d.ts +6 -2
- package/dist/features/core/modules/domain/entities/RWorkspace.d.ts +3 -1
- package/dist/features/core/modules/domain/resolved/resolved-entity-index.d.ts +6 -2
- package/dist/features/core/modules/domain/types/component/component-core.types.d.ts +0 -39
- package/dist/features/core/modules/domain/types/component/component.types.d.ts +0 -6
- package/dist/features/core/modules/domain/types/component/sfc/ast.types.d.ts +0 -67
- package/dist/features/core/modules/domain/types/component/sfc/dependencies.types.d.ts +0 -37
- package/dist/features/core/modules/domain/types/component/sfc/expression-ir.types.d.ts +0 -1
- package/dist/features/core/modules/domain/types/component/sfc/intrinsic-events.types.d.ts +0 -1
- package/dist/features/core/modules/domain/types/component/sfc/ir.types.d.ts +0 -127
- package/dist/features/core/modules/domain/types/component/sfc/location.types.d.ts +0 -7
- package/dist/features/core/modules/domain/types/component/sfc/metadata-visual.types.d.ts +0 -2
- package/dist/features/core/modules/domain/types/component/sfc/ports-source.types.d.ts +0 -4
- package/dist/features/core/modules/domain/types/component/sfc/ports.types.d.ts +0 -25
- package/dist/features/core/modules/domain/types/component/sfc/props-visual.types.d.ts +0 -2
- package/dist/features/core/modules/domain/types/component/sfc/source.types.d.ts +0 -11
- package/dist/features/core/modules/domain/types/component/sfc/table-events.types.d.ts +0 -1
- package/dist/features/core/modules/domain/types/component/sfc/table-visibility.types.d.ts +0 -1
- package/dist/features/core/modules/domain/types/component/sfc/tag-attribute-contract.types.d.ts +0 -12
- package/dist/features/core/modules/domain/types/component/sfc/tag-input-contract.types.d.ts +0 -7
- package/dist/features/core/modules/domain/types/component/sfc/visual-projection.types.d.ts +0 -23
- package/dist/features/core/modules/domain/types/computation/computation-program.types.d.ts +0 -3
- package/dist/features/core/modules/domain/types/computation/computation-runtime.types.d.ts +0 -2
- package/dist/features/core/modules/domain/types/computation/computation-source.types.d.ts +0 -1
- package/dist/features/core/modules/domain/types/document/document-create.type.d.ts +0 -2
- package/dist/features/core/modules/domain/types/document/document-draft.type.d.ts +0 -4
- package/dist/features/core/modules/domain/types/document/document-metadata.types.d.ts +0 -2
- package/dist/features/core/modules/domain/types/document/document-move.type.d.ts +0 -1
- package/dist/features/core/modules/domain/types/document/document.types.d.ts +0 -20
- package/dist/features/core/modules/domain/types/document/domain-export.type.d.ts +0 -4
- package/dist/features/core/modules/domain/types/document/domain-provider.type.d.ts +0 -10
- package/dist/features/core/modules/domain/types/document/domain-snapshot.type.d.ts +0 -8
- package/dist/features/core/modules/domain/types/document/entity-management.type.d.ts +0 -5
- package/dist/features/core/modules/domain/types/document/filter.types.d.ts +0 -8
- package/dist/features/core/modules/domain/types/document/navigation.types.d.ts +0 -2
- package/dist/features/core/modules/domain/types/document/query.types.d.ts +0 -8
- package/dist/features/core/modules/domain-repository/EndgeDomainRepository_Module.d.ts +33 -11
- package/dist/features/core/modules/domain-repository/services/domain-provider.d.ts +0 -1
- package/dist/features/core/modules/events/EndgeEvents_Module.d.ts +6 -2
- package/dist/features/core/modules/events/domain/events.types.d.ts +0 -4
- package/dist/features/core/modules/i18n/EndgeI18n_Module.d.ts +33 -11
- package/dist/features/core/modules/i18n/domain/i18n.types.d.ts +0 -5
- package/dist/features/core/modules/i18n/services/composition-i18n-catalog-projection.d.ts +0 -4
- package/dist/features/core/modules/i18n/services/i18n-catalog.d.ts +0 -5
- package/dist/features/core/modules/i18n/tools/resolve-runtime-translation.d.ts +0 -1
- package/dist/features/core/modules/implementations/EndgeImplementations_Module.d.ts +24 -16
- package/dist/features/core/modules/implementations/services/ImplementationBindingRegistry.d.ts +3 -1
- package/dist/features/core/modules/implementations/services/ImplementationProviderRegistry.d.ts +3 -1
- package/dist/features/core/modules/inspection/EndgeInspection_Module.d.ts +12 -4
- package/dist/features/core/modules/inspection/services/InspectionCapture_Service.d.ts +6 -2
- package/dist/features/core/modules/inspection/tools/inspection-recording.d.ts +0 -4
- package/dist/features/core/modules/inspection/types/inspection.types.d.ts +0 -1
- package/dist/features/core/modules/mock/EndgeMock_Module.d.ts +30 -10
- package/dist/features/core/modules/mock/domain/types/mock-data.type.d.ts +3 -9
- package/dist/features/core/modules/program/EndgeProgram_Module.d.ts +69 -23
- package/dist/features/core/modules/program/domain/types/action-program.types.d.ts +0 -1
- package/dist/features/core/modules/program/domain/types/execution-bundle.types.d.ts +0 -4
- package/dist/features/core/modules/program/domain/types/program-metadata.types.d.ts +0 -11
- package/dist/features/core/modules/program/domain/types/program.types.d.ts +0 -109
- package/dist/features/core/modules/program/tools/execution-bundle.d.ts +0 -2
- package/dist/features/core/modules/program/tools/portable-program-payload.d.ts +0 -1
- package/dist/features/core/modules/program/tools/restore-program-source.d.ts +0 -1
- package/dist/features/core/modules/runtime/ComponentSFCEventBoundary.d.ts +18 -6
- package/dist/features/core/modules/runtime/EndgeRuntimeScopes_Module.d.ts +7 -11
- package/dist/features/core/modules/runtime/EndgeRuntime_Module.d.ts +100 -33
- package/dist/features/core/modules/runtime/RuntimeActionRegistry.d.ts +3 -1
- package/dist/features/core/modules/runtime/RuntimeAppScope.d.ts +21 -11
- package/dist/features/core/modules/runtime/RuntimeBindingScope.d.ts +0 -25
- package/dist/features/core/modules/runtime/RuntimeHostBase.d.ts +11 -63
- package/dist/features/core/modules/runtime/RuntimeHostFactory.d.ts +0 -3
- package/dist/features/core/modules/runtime/RuntimeHostRegistry.d.ts +2 -33
- package/dist/features/core/modules/runtime/RuntimeResourceBag.d.ts +3 -1
- package/dist/features/core/modules/runtime/RuntimeScope.d.ts +3 -1
- package/dist/features/core/modules/runtime/adapters/QueryExecutor_Adapter.d.ts +39 -22
- package/dist/features/core/modules/runtime/domain/component-sfc-render-port.types.d.ts +0 -1
- package/dist/features/core/modules/runtime/domain/execution-context.types.d.ts +0 -1
- package/dist/features/core/modules/runtime/domain/query-execution.types.d.ts +0 -4
- package/dist/features/core/modules/runtime/domain/runtime-entity-map.types.d.ts +0 -13
- package/dist/features/core/modules/runtime/domain/runtime-execute.type.d.ts +0 -12
- package/dist/features/core/modules/runtime/domain/runtime-host.types.d.ts +2 -119
- package/dist/features/core/modules/runtime/domain/runtime-inspection.types.d.ts +0 -2
- package/dist/features/core/modules/runtime/domain/runtime-registry.types.d.ts +0 -17
- package/dist/features/core/modules/runtime/domain/runtime-render-inspection.types.d.ts +0 -2
- package/dist/features/core/modules/runtime/domain/runtime-scope.types.d.ts +0 -1
- package/dist/features/core/modules/runtime/domain/runtime-strategy.types.d.ts +0 -14
- package/dist/features/core/modules/runtime/domain/runtime.types.d.ts +0 -16
- package/dist/features/core/modules/runtime/domain/sfc-render-inspection.type.d.ts +0 -6
- package/dist/features/core/modules/runtime/domain/simulation-runtime.types.d.ts +0 -4
- package/dist/features/core/modules/runtime/domain/stream-runtime.types.d.ts +0 -1
- package/dist/features/core/modules/runtime/domain/table.types.d.ts +0 -11
- package/dist/features/core/modules/runtime/domain/vocab-cache.types.d.ts +0 -9
- package/dist/features/core/modules/runtime/execution/endge-composition.d.ts +6 -3
- package/dist/features/core/modules/runtime/execution/endge-data-view.d.ts +72 -24
- package/dist/features/core/modules/runtime/execution/endge-query.d.ts +9 -3
- package/dist/features/core/modules/runtime/execution/endge-response-output.d.ts +0 -1
- package/dist/features/core/modules/runtime/execution/endge-simulation.d.ts +3 -1
- package/dist/features/core/modules/runtime/helpers/raph-phases/runtime-boundary-update-phase.d.ts +9 -6
- package/dist/features/core/modules/runtime/helpers/raph-phases/runtime-node-update-phase.d.ts +2 -2
- package/dist/features/core/modules/runtime/hosts/ActionRuntimeHost.d.ts +0 -4
- package/dist/features/core/modules/runtime/hosts/ComponentSFCRuntimeHost.d.ts +93 -31
- package/dist/features/core/modules/runtime/hosts/CompositionRuntimeHost.d.ts +90 -30
- package/dist/features/core/modules/runtime/hosts/FilterRuntimeHost.d.ts +12 -4
- package/dist/features/core/modules/runtime/hosts/FilterViewRuntimeHost.d.ts +21 -7
- package/dist/features/core/modules/runtime/hosts/QueryRuntimeHost.d.ts +12 -4
- package/dist/features/core/modules/runtime/hosts/SimulationRuntimeHost.d.ts +12 -4
- package/dist/features/core/modules/runtime/hosts/StoreRuntimeHost.d.ts +33 -11
- package/dist/features/core/modules/runtime/hosts/StreamRuntimeHost.d.ts +9 -3
- package/dist/features/core/modules/runtime/operation/EndgeOperations_Module.d.ts +8 -12
- package/dist/features/core/modules/runtime/operation/operation-executor.d.ts +0 -1
- package/dist/features/core/modules/runtime/operation/operation-history.d.ts +6 -2
- package/dist/features/core/modules/runtime/services/RuntimeStrategyRegistry.d.ts +12 -4
- package/dist/features/core/modules/runtime/services/SFCRenderInspectionSession.d.ts +21 -7
- package/dist/features/core/modules/runtime/services/component-sfc-expression-evaluate.d.ts +0 -1
- package/dist/features/core/modules/runtime/services/simulation/create-simulation-schema.d.ts +0 -1
- package/dist/features/core/modules/runtime/services/simulation/find-simulation-runtime.d.ts +0 -1
- package/dist/features/core/modules/runtime/services/simulation/prepare-simulation-overrides.d.ts +0 -1
- package/dist/features/core/modules/runtime/services/transports/BrowserSseStreamTransportFactory.d.ts +3 -1
- package/dist/features/core/modules/runtime/services/transports/BrowserWebSocketStreamTransportFactory.d.ts +6 -2
- package/dist/features/core/modules/runtime/tools/runtime-inspection.d.ts +0 -3
- package/dist/features/core/modules/runtime/tools/runtime-render-inspection.d.ts +0 -1
- package/dist/features/core/modules/runtime/tools/runtime-render-values.d.ts +0 -1
- package/dist/features/core/modules/source/EndgeSource_Module.d.ts +81 -27
- package/dist/features/core/modules/source/domain/types/composition-source.types.d.ts +0 -42
- package/dist/features/core/modules/source/domain/types/configuration-source.types.d.ts +0 -7
- package/dist/features/core/modules/source/domain/types/data-view-source.types.d.ts +0 -1
- package/dist/features/core/modules/source/domain/types/filter-source.types.d.ts +0 -12
- package/dist/features/core/modules/source/domain/types/filter-view.type.d.ts +0 -10
- package/dist/features/core/modules/source/domain/types/query-source.types.d.ts +0 -42
- package/dist/features/core/modules/source/domain/types/response-output.types.d.ts +0 -1
- package/dist/features/core/modules/source/domain/types/simulation-source.types.d.ts +0 -6
- package/dist/features/core/modules/source/domain/types/source-engine.types.d.ts +0 -81
- package/dist/features/core/modules/source/domain/types/source-expression.types.d.ts +0 -19
- package/dist/features/core/modules/source/domain/types/store-source.types.d.ts +0 -3
- package/dist/features/core/modules/source/domain/types/stream-source.types.d.ts +0 -4
- package/dist/features/core/modules/source/domain/types/type-source.types.d.ts +0 -11
- package/dist/features/core/modules/source/domain/types/update-source.types.d.ts +0 -2
- package/dist/features/core/modules/source/services/SimulationSourceResolver.d.ts +3 -1
- package/dist/features/core/modules/source/services/SourceEngineRegistry.d.ts +12 -4
- package/dist/features/core/modules/source/services/SourceLanguageRegistry.d.ts +12 -4
- package/dist/features/core/modules/source/services/SourcePatchRegistry.d.ts +12 -4
- package/dist/features/core/modules/source/services/compilers/action-source-compile.d.ts +0 -1
- package/dist/features/core/modules/source/services/compilers/composition-source-compile.d.ts +0 -2
- package/dist/features/core/modules/source/services/compilers/configuration-source-compile.d.ts +0 -1
- package/dist/features/core/modules/source/services/compilers/data-view-source-compile.d.ts +0 -1
- package/dist/features/core/modules/source/services/compilers/filter-source-compile.d.ts +0 -1
- package/dist/features/core/modules/source/services/compilers/query-source-compile.d.ts +0 -1
- package/dist/features/core/modules/source/services/compilers/simulation-source-compile.d.ts +0 -1
- package/dist/features/core/modules/source/services/compilers/source-expression-compile.d.ts +0 -4
- package/dist/features/core/modules/source/services/compilers/source-field-compile.d.ts +0 -1
- package/dist/features/core/modules/source/services/compilers/source-metadata-compile.d.ts +0 -4
- package/dist/features/core/modules/source/services/compilers/source-model-reference-compile.d.ts +0 -2
- package/dist/features/core/modules/source/services/compilers/store-source-compile.d.ts +0 -1
- package/dist/features/core/modules/source/services/compilers/stream-source-compile.d.ts +0 -1
- package/dist/features/core/modules/source/services/compilers/type-source-compile.d.ts +0 -2
- package/dist/features/core/modules/source/services/compilers/update-source-compile.d.ts +0 -1
- package/dist/features/core/modules/source/services/component-sfc/component-sfc-metadata-source-patch.d.ts +0 -2
- package/dist/features/core/modules/source/services/component-sfc/component-sfc-props-source-patch.d.ts +0 -2
- package/dist/features/core/modules/source/services/component-sfc/component-sfc-table-source-patch.d.ts +0 -1
- package/dist/features/core/modules/source/services/component-sfc/component-sfc-visual-projection.d.ts +0 -1
- package/dist/features/core/modules/source/services/composition-activation.d.ts +0 -1
- package/dist/features/core/modules/source/services/composition-source-i18n-hints.d.ts +0 -2
- package/dist/features/core/modules/source/services/composition-source-normalize.d.ts +0 -1
- package/dist/features/core/modules/source/services/composition-source-patch.d.ts +0 -2
- package/dist/features/core/modules/source/services/configuration-source-patch.d.ts +0 -2
- package/dist/features/core/modules/source/services/document-metadata.d.ts +0 -2
- package/dist/features/core/modules/source/services/filter-source-patch.d.ts +0 -2
- package/dist/features/core/modules/source/services/migrations/query-source-v1-migration.d.ts +0 -7
- package/dist/features/core/modules/source/services/query-source-patch.d.ts +0 -2
- package/dist/features/core/modules/source/services/source-document-reference.d.ts +0 -9
- package/dist/features/core/modules/source/services/source-expression-evaluate.d.ts +0 -2
- package/dist/features/core/modules/source/services/source-language-syntax.d.ts +0 -1
- package/dist/features/core/modules/source/services/strategies/CompositionSourcePatchStrategy.d.ts +12 -4
- package/dist/features/core/modules/source/services/strategies/DataViewSourceEngineStrategy.d.ts +12 -4
- package/dist/features/core/modules/source/services/strategies/DataViewSourceLanguageStrategy.d.ts +15 -5
- package/dist/features/core/modules/source/services/strategies/FilterSourceEngineStrategy.d.ts +3 -1
- package/dist/features/core/modules/source/services/strategies/FilterSourcePatchStrategy.d.ts +3 -1
- package/dist/features/core/modules/source/services/strategies/QuerySourceEngineStrategy.d.ts +12 -4
- package/dist/features/core/modules/source/services/strategies/QuerySourceLanguageStrategy.d.ts +15 -5
- package/dist/features/core/modules/source/services/strategies/QuerySourcePatchStrategy.d.ts +12 -4
- package/dist/features/core/modules/source/services/strategies/TypeSourceEngineStrategy.d.ts +3 -1
- package/dist/features/core/modules/source/services/type-source-references.d.ts +0 -4
- package/dist/features/core/modules/source/services/type-source-serialize.d.ts +0 -2
- package/dist/features/core/modules/source/services/typescript-type-source.d.ts +0 -2
- package/dist/features/core/modules/source/services/value-expression-language.d.ts +0 -1
- package/dist/features/core/modules/source/services/value-expression-operations.d.ts +0 -1
- package/dist/features/core/modules/source/templates/component-sfc/component-sfc.default.source.d.ts +0 -1
- package/dist/features/core/modules/source/templates/configuration.default.source.d.ts +0 -1
- package/dist/features/core/modules/source/templates/filter.default.source.d.ts +0 -1
- package/dist/features/core/modules/source/templates/query.default.source.d.ts +0 -2
- package/dist/features/core/modules/source/templates/simulation.default.source.d.ts +0 -1
- package/dist/features/core/modules/source/templates/type.default.source.d.ts +0 -1
- package/dist/features/core/modules/styles/EndgeStyles_Module.d.ts +12 -4
- package/dist/features/core/modules/styles/domain/types/style.types.d.ts +0 -7
- package/dist/features/core/modules/ui/EndgeUIRegistry_Module.d.ts +3 -1
- package/dist/features/core/modules/ui/EndgeUI_Module.d.ts +18 -6
- package/dist/features/core/modules/ui/domain/types/jsx.types.d.ts +0 -9
- package/dist/features/core/modules/ui/domain/types/ui-render-adapter.type.d.ts +0 -8
- package/dist/features/core/modules/ui/registry/UIAdapterRegistry.d.ts +39 -13
- package/dist/features/core/modules/ui/tooltip/endge-tooltip-markdown.d.ts +0 -2
- package/dist/features/core/modules/ui/ui-composition.config.d.ts +0 -1
- package/dist/features/core/modules/updates/EndgeUpdates_Module.d.ts +3 -1
- package/dist/features/core/modules/workspace/EndgeWorkspace_Module.d.ts +97 -34
- package/dist/features/core/modules/workspace/domain/workspace.types.d.ts +0 -3
- package/dist/features/federation/EndgeFederation.d.ts +33 -11
- package/dist/features/federation/EndgeModule.d.ts +0 -1
- package/dist/features/federation/constants/federation.constants.d.ts +0 -1
- package/dist/features/federation/services/EndgeModuleController.d.ts +0 -2
- package/dist/features/federation/tools/endge-token.d.ts +0 -1
- package/dist/features/federation/types/endge-modules.types.d.ts +0 -5
- package/dist/features/federation/types/federation.types.d.ts +0 -12
- package/dist/features/federation/types/forge.types.d.ts +0 -6
- package/package.json +8 -3
- package/dist/features/core/modules/runtime/helpers/raph-phases/endge-runtime-boundary.d.ts +0 -13
|
@@ -7,51 +7,68 @@ export interface QueryExecutorDependencies {
|
|
|
7
7
|
resolveAuth: (policy: AuthRequestPolicy, options?: AuthResolveOptions) => Promise<AuthResolvedSession>;
|
|
8
8
|
reportWarning: (message: string, data?: unknown) => void;
|
|
9
9
|
}
|
|
10
|
-
/**
|
|
10
|
+
/**
|
|
11
|
+
* Выполняет source-only compiled query artifact.
|
|
12
|
+
*/
|
|
11
13
|
export declare class QueryExecutor_Adapter {
|
|
12
14
|
private readonly _dependencies;
|
|
13
|
-
/** Transport capability для REST и GraphQL requests. */
|
|
14
15
|
private readonly _http;
|
|
16
|
+
constructor(_dependencies: QueryExecutorDependencies, http?: AxiosInstance);
|
|
15
17
|
/**
|
|
16
|
-
*
|
|
17
|
-
* PUBLIC
|
|
18
|
-
* ----------------------------------------
|
|
18
|
+
* Выполняет только transport/mock слой; output graph материализует QueryRuntimeHost через Raph.
|
|
19
19
|
*/
|
|
20
|
-
constructor(_dependencies: QueryExecutorDependencies, http?: AxiosInstance);
|
|
21
|
-
/** Выполняет только transport/mock слой; output graph материализует QueryRuntimeHost через Raph. */
|
|
22
20
|
execute(context: QueryExecutionContext): Promise<any>;
|
|
23
|
-
/**
|
|
21
|
+
/**
|
|
22
|
+
* Извлекает response-backed source output без запуска DataView.
|
|
23
|
+
*/
|
|
24
24
|
readResponseOutput(output: QueryProgramOutput, response: unknown): unknown;
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
27
|
-
* PRIVATE
|
|
28
|
-
* ----------------------------------------
|
|
26
|
+
* Выбирает protocol executor по compiled artifact type.
|
|
29
27
|
*/
|
|
30
|
-
/** Выбирает protocol executor по compiled artifact type. */
|
|
31
28
|
private _executeByProtocol;
|
|
32
|
-
/**
|
|
29
|
+
/**
|
|
30
|
+
* Выполняет GraphQL operation и возвращает ее data, отделяя transport errors от GraphQL errors.
|
|
31
|
+
*/
|
|
33
32
|
private _runGraphQL;
|
|
34
|
-
/**
|
|
33
|
+
/**
|
|
34
|
+
* Выполняет REST artifact.
|
|
35
|
+
*/
|
|
35
36
|
private _runRest;
|
|
36
37
|
private _throwHttpError;
|
|
37
|
-
/**
|
|
38
|
+
/**
|
|
39
|
+
* Пишет краткую transport-индикацию без request body, headers и response payload.
|
|
40
|
+
*/
|
|
38
41
|
private _writeRequestError;
|
|
39
|
-
/**
|
|
42
|
+
/**
|
|
43
|
+
* Публикует runtime warning безопасного expression evaluator.
|
|
44
|
+
*/
|
|
40
45
|
private _writeExpressionWarning;
|
|
41
46
|
private _asRecord;
|
|
42
|
-
/**
|
|
47
|
+
/**
|
|
48
|
+
* Вычисляет скомпилированное выражение запроса с поддержкой legacy-полей статической нагрузки.
|
|
49
|
+
*/
|
|
43
50
|
private _evaluateRequestValue;
|
|
44
51
|
private _isSourceExpression;
|
|
45
52
|
private _asHeaders;
|
|
46
53
|
private _asOptionalNumber;
|
|
47
|
-
/**
|
|
54
|
+
/**
|
|
55
|
+
* Читает mock payload из artifact.
|
|
56
|
+
*/
|
|
48
57
|
private _readMockData;
|
|
49
|
-
/**
|
|
58
|
+
/**
|
|
59
|
+
* Читает dot-path из backend response без исключений.
|
|
60
|
+
*/
|
|
50
61
|
private _path;
|
|
51
|
-
/**
|
|
62
|
+
/**
|
|
63
|
+
* Безопасно склеивает endpoint и path.
|
|
64
|
+
*/
|
|
52
65
|
private _buildUrl;
|
|
53
|
-
/**
|
|
66
|
+
/**
|
|
67
|
+
* Применяет auth к headers или query params.
|
|
68
|
+
*/
|
|
54
69
|
private _applyAuth;
|
|
55
|
-
/**
|
|
70
|
+
/**
|
|
71
|
+
* Разрешает environment placeholder через переданный composition owner.
|
|
72
|
+
*/
|
|
56
73
|
private _resolveVariable;
|
|
57
74
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ComponentSFCRuntimeHost } from '../hosts/ComponentSFCRuntimeHost';
|
|
2
2
|
import { EndgeStyleSheetArtifact } from '../../styles/domain/types/style.types';
|
|
3
|
-
/** Renderer потребляет этот порт. Его реализация не обязана быть исполняемым RuntimeHost. */
|
|
4
3
|
export type ComponentSFCRenderPort = Pick<ComponentSFCRuntimeHost, 'id' | 'entityIdentity' | 'runtimeState' | 'getIr' | 'getArtifact' | 'getArtifactReader' | 'getComputationResource' | 'releaseComputationResources' | 'readDataMeta' | 'translate' | 'resolveVocabOptions' | 'getEditSession' | 'beginEditSession' | 'updateEditDraft' | 'commitEditSession' | 'cancelEditSession' | 'executeEventPortAction' | 'publishEventPort' | 'setInputSource' | 'on' | 'off' | 'emit'> & {
|
|
5
4
|
readonly readonly?: boolean;
|
|
6
5
|
readonly styleArtifacts?: readonly EndgeStyleSheetArtifact[];
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { QueryProgramPayload } from '../../program/domain/types/program.types';
|
|
2
|
-
/** Runtime context одного выполнения compiled query artifact. */
|
|
3
2
|
export interface QueryExecutionContext {
|
|
4
|
-
/** Runtime-ready query payload из Endge.program. */
|
|
5
3
|
payload: QueryProgramPayload;
|
|
6
|
-
/** Входные параметры одноразового или реактивного запуска. */
|
|
7
4
|
vars?: Record<string, unknown>;
|
|
8
|
-
/** AbortSignal текущего runtime run. */
|
|
9
5
|
signal?: AbortSignal;
|
|
10
6
|
}
|
|
@@ -7,28 +7,15 @@ import { RQuery } from '../../domain/entities/RQuery';
|
|
|
7
7
|
import { RSimulation } from '../../domain/entities/RSimulation';
|
|
8
8
|
import { RStore } from '../../domain/entities/RStore';
|
|
9
9
|
import { RStream } from '../../domain/entities/RStream';
|
|
10
|
-
/**
|
|
11
|
-
* Канонический перечень сущностей, для которых может существовать runtime-host.
|
|
12
|
-
*/
|
|
13
10
|
export interface RuntimeEntityModelMap {
|
|
14
|
-
/** Владелец отдельного запуска target с локальными подменами. */
|
|
15
11
|
'simulation': RSimulation;
|
|
16
|
-
/** Доменная модель страницы. */
|
|
17
12
|
'page': RPage;
|
|
18
|
-
/** Доменная модель SFC-компонента нового API. */
|
|
19
13
|
'component-sfc': RComponentSFC;
|
|
20
|
-
/** Доменная модель запроса. */
|
|
21
14
|
'query': RQuery;
|
|
22
|
-
/** Source-first runtime для Filter. */
|
|
23
15
|
'filter': RFilter;
|
|
24
|
-
/** Граф оркестрации runtime. */
|
|
25
16
|
'composition': RComposition;
|
|
26
|
-
/** Source-first реактивный runtime Store. */
|
|
27
17
|
'store': RStore;
|
|
28
|
-
/** Внешний или эмулируемый нормализованный поток событий. */
|
|
29
18
|
'stream': RStream;
|
|
30
|
-
/** Доменная модель action. */
|
|
31
19
|
'action': RAction;
|
|
32
20
|
}
|
|
33
|
-
/** Дискриминатор типа runtime-сущности. */
|
|
34
21
|
export type RuntimeEntityType = keyof RuntimeEntityModelMap;
|
|
@@ -1,30 +1,18 @@
|
|
|
1
1
|
import { EndgePersistenceDriver } from '../../context/domain/context-persistence.types';
|
|
2
2
|
import { RuntimeArtifactReader } from './runtime-host.types';
|
|
3
3
|
import { AnyRuntimeHost } from './runtime-strategy.types';
|
|
4
|
-
/** Допустимая ссылка на зарегистрированный родительский runtime-host. */
|
|
5
4
|
export type RuntimeParentRef = AnyRuntimeHost | string;
|
|
6
|
-
/** Публичная ссылка на зарегистрированный runtime app scope без зависимости Domain от Model. */
|
|
7
5
|
export interface RuntimeAppScopeReference {
|
|
8
6
|
readonly id: string;
|
|
9
7
|
}
|
|
10
|
-
/** Типизированные параметры создания runtime-host. */
|
|
11
8
|
export interface RuntimeExecuteOptions {
|
|
12
|
-
/** Явный runtime-id вместо автоматически выделенного адреса. */
|
|
13
9
|
id?: string;
|
|
14
|
-
/** Локальный id экземпляра внутри app scope. */
|
|
15
10
|
instanceId?: string;
|
|
16
|
-
/** Зарегистрированный родительский host или его runtime-id. */
|
|
17
11
|
parent?: RuntimeParentRef | null;
|
|
18
|
-
/** App scope или id зарегистрированного app scope. */
|
|
19
12
|
appScope?: RuntimeAppScopeReference | string;
|
|
20
|
-
/** Read-only источник compiled artifacts. */
|
|
21
13
|
artifactReader?: RuntimeArtifactReader;
|
|
22
|
-
/** Политика persistence для runtime state. */
|
|
23
14
|
persistence?: EndgePersistenceDriver;
|
|
24
|
-
/** Стабильный storage-id для persisted runtime state. */
|
|
25
15
|
persistenceKey?: string;
|
|
26
|
-
/** Strategy-specific metadata, не участвующая в создании runtime tree. */
|
|
27
16
|
meta?: Record<string, unknown>;
|
|
28
17
|
}
|
|
29
|
-
/** Параметры запуска host через конкретный app scope. */
|
|
30
18
|
export type RuntimeAppScopeExecuteOptions = Omit<RuntimeExecuteOptions, 'appScope'>;
|
|
@@ -1,35 +1,24 @@
|
|
|
1
|
-
import { PhaseEvent, PhaseName, RaphFrameContext, RaphNode } from '
|
|
1
|
+
import { PhaseEvent, PhaseName, RaphFrameContext, RaphNode } from '@raphy-js/raph';
|
|
2
2
|
import { RuntimeStateControllerLike } from '../../context/domain/context-persistence.types';
|
|
3
3
|
import { ProgramArtifact, ProgramEntityType } from '../../program/domain/types/program.types';
|
|
4
4
|
import { RuntimeEntityModelMap, RuntimeEntityType } from './runtime-entity-map.types';
|
|
5
5
|
import { RuntimeKind } from './runtime.types';
|
|
6
6
|
export type RuntimeHostStatus = 'created' | 'mounted' | 'running' | 'active' | 'pausing' | 'paused' | 'stopping' | 'stopped' | 'unmounted' | 'destroyed' | 'error';
|
|
7
|
-
/** Возможность, которую runtime-host предоставляет внешним consumers. */
|
|
8
7
|
export type RuntimeHostCapability = 'renderable';
|
|
9
|
-
export type RuntimeHostResourceKind = 'raph-node' | 'event-subscription' | 'scope' | 'meta';
|
|
8
|
+
export type RuntimeHostResourceKind = 'raph-node' | 'derived' | 'event-subscription' | 'scope' | 'meta';
|
|
10
9
|
export interface RuntimeHostResource {
|
|
11
|
-
/** Уникальный идентификатор ресурса внутри host. */
|
|
12
10
|
id: string;
|
|
13
|
-
/** Тип ресурса (raph-node, binding, contract и т.д.). */
|
|
14
11
|
kind: RuntimeHostResourceKind;
|
|
15
|
-
/** Короткий заголовок для UI/инспектора. */
|
|
16
12
|
title: string;
|
|
17
|
-
/** Дополнительная подпись для контекста. */
|
|
18
13
|
subtitle?: string;
|
|
19
|
-
/** Произвольные метаданные ресурса. */
|
|
20
14
|
payload?: Record<string, unknown>;
|
|
21
15
|
}
|
|
22
16
|
export type RuntimeHostChannelKind = 'raph' | 'event-bus' | 'external';
|
|
23
17
|
export interface RuntimeHostChannel {
|
|
24
|
-
/** Уникальный идентификатор канала. */
|
|
25
18
|
id: string;
|
|
26
|
-
/** Семантический тип канала коммуникации. */
|
|
27
19
|
kind: RuntimeHostChannelKind;
|
|
28
|
-
/** Отображаемое имя канала. */
|
|
29
20
|
name: string;
|
|
30
|
-
/** Направление потока сообщений для канала. */
|
|
31
21
|
direction: 'in' | 'out' | 'both';
|
|
32
|
-
/** Дополнительная поясняющая подпись. */
|
|
33
22
|
subtitle?: string;
|
|
34
23
|
}
|
|
35
24
|
export interface RuntimeHostContextBase {
|
|
@@ -38,7 +27,6 @@ export interface RuntimeHostContextBase {
|
|
|
38
27
|
updatedAt: string | null;
|
|
39
28
|
}
|
|
40
29
|
export interface ActionRuntimeHostContext extends RuntimeHostContextBase {
|
|
41
|
-
/** Неизменяемый вход текущего вызова Action из Source. */
|
|
42
30
|
input: Record<string, unknown>;
|
|
43
31
|
result: unknown;
|
|
44
32
|
parent?: ActionRuntimeHostContext | null;
|
|
@@ -64,13 +52,9 @@ export interface StreamRuntimeHostContext extends RuntimeHostContextBase {
|
|
|
64
52
|
receivedCount: number;
|
|
65
53
|
}
|
|
66
54
|
export interface ComponentSFCRuntimeHostContext extends RuntimeHostContextBase {
|
|
67
|
-
/** Target последней подготовки SFC. */
|
|
68
55
|
target: 'dom' | 'canvas' | null;
|
|
69
|
-
/** Время последнего разбора source на вкладки. */
|
|
70
56
|
lastParseAt: string | null;
|
|
71
|
-
/** Время последней подготовки compiler placeholders. */
|
|
72
57
|
lastCompileAt: string | null;
|
|
73
|
-
/** Время последней попытки render/projection. */
|
|
74
58
|
lastRenderAt: string | null;
|
|
75
59
|
}
|
|
76
60
|
export interface PageRuntimeHostContext extends RuntimeHostContextBase {
|
|
@@ -89,40 +73,23 @@ export interface RuntimeHostContextMap {
|
|
|
89
73
|
}
|
|
90
74
|
export type RuntimeHostContext<TType extends RuntimeEntityType> = RuntimeHostContextMap[TType];
|
|
91
75
|
export interface RuntimeHostSnapshot {
|
|
92
|
-
/** Идентификатор runtime-host. */
|
|
93
76
|
id: string;
|
|
94
|
-
/** Публичный runtime-scoped путь данных host в Raph. */
|
|
95
77
|
basePath: string;
|
|
96
|
-
/** Runtime-id родительского host, если host запущен как дочерний. */
|
|
97
78
|
parentId: string | null;
|
|
98
|
-
/** Время удаления host, если snapshot попал в debug-архив удалённых. */
|
|
99
79
|
removedAt: number | null;
|
|
100
|
-
/** Технический тип runtime-host реализации. */
|
|
101
80
|
runtimeType: string;
|
|
102
|
-
/** Возможности runtime-host, доступные внешним consumers. */
|
|
103
81
|
capabilities: RuntimeHostCapability[];
|
|
104
|
-
/** Тип доменной сущности, к которой привязан host. */
|
|
105
82
|
entityType: RuntimeEntityType;
|
|
106
|
-
/** Identity доменной сущности. */
|
|
107
83
|
entityIdentity: string;
|
|
108
|
-
/** Заголовок host для отображения в UI. */
|
|
109
84
|
title: string;
|
|
110
|
-
/** Текущий статус жизненного цикла host. */
|
|
111
85
|
status: RuntimeHostStatus;
|
|
112
|
-
/** Время создания host (timestamp ms). */
|
|
113
86
|
createdAt: number;
|
|
114
|
-
/** Время последнего изменения host (timestamp ms). */
|
|
115
87
|
updatedAt: number;
|
|
116
|
-
/** Список ресурсов, связанных с host. */
|
|
117
88
|
resources: RuntimeHostResource[];
|
|
118
|
-
/** Список каналов, через которые host взаимодействует с окружением. */
|
|
119
89
|
channels: RuntimeHostChannel[];
|
|
120
|
-
/** Произвольные метаданные host. */
|
|
121
90
|
meta: Record<string, unknown>;
|
|
122
|
-
/** Контекст host (для debug/inspection). */
|
|
123
91
|
context: Record<string, unknown>;
|
|
124
92
|
}
|
|
125
|
-
/** Лёгкий архивный описатель. Runtime-данные намеренно исключены. */
|
|
126
93
|
export interface DestroyedRuntimeHostSnapshot {
|
|
127
94
|
id: string;
|
|
128
95
|
basePath: string;
|
|
@@ -144,7 +111,6 @@ export interface RuntimeInspectionLease {
|
|
|
144
111
|
release: () => void;
|
|
145
112
|
}
|
|
146
113
|
export interface RuntimeHostLifecycle {
|
|
147
|
-
/** Точка входа совместимости: mount и start. */
|
|
148
114
|
create: () => Promise<void> | void;
|
|
149
115
|
mount: () => Promise<void> | void;
|
|
150
116
|
start: () => Promise<void> | void;
|
|
@@ -153,11 +119,8 @@ export interface RuntimeHostLifecycle {
|
|
|
153
119
|
reconcile: () => Promise<void> | void;
|
|
154
120
|
stop: () => Promise<void> | void;
|
|
155
121
|
unmount: () => Promise<void> | void;
|
|
156
|
-
/** Синхронно запрещает новые updates перед освобождением runtime tree. */
|
|
157
122
|
quiesce: () => Promise<void> | void;
|
|
158
|
-
/** Корректно остановить host и освободить ресурсы. */
|
|
159
123
|
destroy: () => Promise<void> | void;
|
|
160
|
-
/** Обработать runtime update, пришедший из логической либо boundary Raph-фазы. */
|
|
161
124
|
update: (ctx: RuntimeHostUpdateContext) => Promise<void> | void;
|
|
162
125
|
}
|
|
163
126
|
export interface RuntimeArtifactReader {
|
|
@@ -168,11 +131,8 @@ export interface RuntimeHostArtifactRef {
|
|
|
168
131
|
id?: string | number;
|
|
169
132
|
identity?: string;
|
|
170
133
|
}
|
|
171
|
-
/** Каноническое имя Raph-фазы, которая агрегирует dirty runtime-ноды к root host. */
|
|
172
134
|
export declare const RUNTIME_BOUNDARY_UPDATE_PHASE_NAME: PhaseName;
|
|
173
|
-
/** Фаза логического обновления root-ноды runtime-host. */
|
|
174
135
|
export declare const RUNTIME_NODE_UPDATE_PHASE_NAME: PhaseName;
|
|
175
|
-
/** Значение входа runtime-host: literal либо прямая ссылка на Raph data path. */
|
|
176
136
|
export type RuntimeHostInputBinding = {
|
|
177
137
|
kind: 'literal';
|
|
178
138
|
value: unknown;
|
|
@@ -180,7 +140,6 @@ export type RuntimeHostInputBinding = {
|
|
|
180
140
|
kind: 'raph';
|
|
181
141
|
path: string;
|
|
182
142
|
};
|
|
183
|
-
/** Декларативная команда, которую host должен обработать при изменении sourcePath. */
|
|
184
143
|
export interface RuntimeHostUpdateBinding {
|
|
185
144
|
id: string;
|
|
186
145
|
sourcePath: string;
|
|
@@ -192,99 +151,67 @@ export interface RuntimeHostUpdateBinding {
|
|
|
192
151
|
debounceMs?: number;
|
|
193
152
|
};
|
|
194
153
|
}
|
|
195
|
-
/** Конкретное логическое обновление, разрешённое из Raph events. */
|
|
196
154
|
export interface RuntimeHostResolvedUpdate {
|
|
197
155
|
bindingId: string;
|
|
198
156
|
sourcePath: string;
|
|
199
157
|
kind: string;
|
|
200
158
|
payload?: unknown;
|
|
201
159
|
}
|
|
202
|
-
/** Локальный input source runtime-host-а без привязки к Raph. */
|
|
203
160
|
export interface RuntimeHostLocalInputSource {
|
|
204
161
|
kind: 'local';
|
|
205
162
|
props: Record<string, unknown>;
|
|
206
163
|
}
|
|
207
|
-
/** Binding входного prop на путь в Raph data storage. */
|
|
208
164
|
export interface RuntimeHostRaphInputBinding {
|
|
209
165
|
path: string;
|
|
210
166
|
wildcardDynamic?: boolean;
|
|
211
|
-
/** Необязательный исходный DataPath для Meta, если value был преобразован. */
|
|
212
167
|
metaSource?: {
|
|
213
168
|
path: string;
|
|
214
169
|
key?: string;
|
|
215
170
|
fields?: Record<string, string>;
|
|
216
171
|
};
|
|
217
172
|
}
|
|
218
|
-
/** Raph-backed input source runtime-host-а. */
|
|
219
173
|
export interface RuntimeHostRaphInputSource {
|
|
220
174
|
kind: 'raph';
|
|
221
175
|
bindings: Record<string, RuntimeHostRaphInputBinding>;
|
|
222
|
-
/** Literal props, которые объединяются с Raph bindings. */
|
|
223
176
|
props?: Record<string, unknown>;
|
|
224
177
|
}
|
|
225
|
-
/** Унифицированный источник входных данных runtime-host-а. */
|
|
226
178
|
export type RuntimeHostInputSource = RuntimeHostLocalInputSource | RuntimeHostRaphInputSource;
|
|
227
|
-
/** Группа dirty-ноды, агрегированная к runtime boundary. */
|
|
228
179
|
export interface RuntimeDirtyBoundary {
|
|
229
180
|
boundary: RaphNode;
|
|
230
181
|
dirtyNodes: RaphNode[];
|
|
231
182
|
events: PhaseEvent[];
|
|
232
183
|
}
|
|
233
|
-
/** Контекст универсального runtime update, который получает root runtime-host. */
|
|
234
184
|
export interface RuntimeHostUpdateContext {
|
|
235
185
|
node: RaphNode;
|
|
236
186
|
events: PhaseEvent[];
|
|
237
187
|
boundaries: RuntimeDirtyBoundary[];
|
|
238
188
|
frame: RaphFrameContext;
|
|
239
|
-
/** Логические обновления root runtime-ноды. Boundary-фаза это поле не заполняет. */
|
|
240
189
|
updates?: RuntimeHostResolvedUpdate[];
|
|
241
190
|
}
|
|
242
|
-
/** Проекция patchable collection boundary, которую можно обновить точечно. */
|
|
243
191
|
export interface RuntimeCollectionProjectionPatch {
|
|
244
|
-
/** Boundary-id дочерней проекции, например колонки таблицы. */
|
|
245
192
|
boundaryId: string;
|
|
246
|
-
/** Семантический ключ проекции, например key колонки. */
|
|
247
193
|
key: string;
|
|
248
|
-
/** Индекс проекции в render target, например индекс колонки. */
|
|
249
194
|
index: number;
|
|
250
195
|
}
|
|
251
|
-
/** Patch обновления части коллекции внутри runtime boundary. */
|
|
252
196
|
export interface RuntimeCollectionProjectionUpdatePatch {
|
|
253
|
-
/** Тип patch payload. */
|
|
254
197
|
kind: 'collection-projection-update';
|
|
255
|
-
/** Boundary-id владельца коллекции, например Table. */
|
|
256
198
|
boundaryId: string;
|
|
257
|
-
/** Тип boundary владельца коллекции. */
|
|
258
199
|
boundaryType: 'table';
|
|
259
|
-
/** Source path, на который подписана boundary-нода. */
|
|
260
200
|
sourcePath: string;
|
|
261
|
-
/** Индекс элемента коллекции, если его можно извлечь из Raph event path. */
|
|
262
201
|
itemIndex: number | null;
|
|
263
|
-
/** Ключ элемента коллекции, если runtime смог его прочитать. */
|
|
264
202
|
itemKey: unknown;
|
|
265
|
-
/** Снимок элемента коллекции после изменения. */
|
|
266
203
|
itemSnapshot: unknown;
|
|
267
|
-
/** Измененные относительные paths внутри элемента коллекции. */
|
|
268
204
|
changedPaths: string[][];
|
|
269
|
-
/** Проекции, которые зависят от измененных paths. */
|
|
270
205
|
affectedProjections: RuntimeCollectionProjectionPatch[];
|
|
271
|
-
/** Исходные события Raph, из которых собран patch. */
|
|
272
206
|
events: PhaseEvent[];
|
|
273
|
-
/** Raph-нода, которая стала верхней dirty boundary. */
|
|
274
207
|
node: RaphNode;
|
|
275
208
|
}
|
|
276
|
-
/** Одно keyed изменение строки внутри пакетного patch коллекции. */
|
|
277
209
|
export interface RuntimeCollectionItemPatch {
|
|
278
|
-
/** Текущий индекс строки; null означает, что строка удалена из результата. */
|
|
279
210
|
itemIndex: number | null;
|
|
280
|
-
/** Стабильный ключ строки из selector или актуального snapshot. */
|
|
281
211
|
itemKey: unknown;
|
|
282
|
-
/** Актуальный snapshot строки; null/undefined означает удаление. */
|
|
283
212
|
itemSnapshot: unknown;
|
|
284
|
-
/** Измененные относительные paths внутри строки. */
|
|
285
213
|
changedPaths: string[][];
|
|
286
214
|
}
|
|
287
|
-
/** Пакет keyed изменений одной коллекции за один Raph frame. */
|
|
288
215
|
export interface RuntimeCollectionProjectionBatchPatch {
|
|
289
216
|
kind: 'collection-projection-batch';
|
|
290
217
|
boundaryId: string;
|
|
@@ -295,91 +222,47 @@ export interface RuntimeCollectionProjectionBatchPatch {
|
|
|
295
222
|
events: PhaseEvent[];
|
|
296
223
|
node: RaphNode;
|
|
297
224
|
}
|
|
298
|
-
/** Нейтральный patch runtime boundary для render adapter-а. */
|
|
299
225
|
export type RuntimeBoundaryPatch = RuntimeCollectionProjectionUpdatePatch | RuntimeCollectionProjectionBatchPatch;
|
|
300
226
|
export interface RuntimeHost<TType extends RuntimeEntityType = RuntimeEntityType, TContext extends RuntimeHostContext<TType> = RuntimeHostContext<TType>, TArtifactPayload = unknown> extends RuntimeHostLifecycle {
|
|
301
|
-
/** Уникальный runtime-id host. */
|
|
302
227
|
readonly id: string;
|
|
303
|
-
/** Родительский runtime-host для отладки вложенных запусков. */
|
|
304
228
|
readonly parent: RuntimeHost<any, any> | null;
|
|
305
|
-
/** Канонический runtime kind (query/table/action/runtime). */
|
|
306
229
|
readonly kind: RuntimeKind | 'runtime';
|
|
307
|
-
/**
|
|
308
|
-
* Имя конкретной runtime-реализации host.
|
|
309
|
-
*/
|
|
310
230
|
readonly runtimeType: string;
|
|
311
|
-
/** Возможности runtime-host, доступные внешним consumers. */
|
|
312
231
|
readonly capabilities: readonly RuntimeHostCapability[];
|
|
313
|
-
/** Тип привязанной доменной сущности. */
|
|
314
232
|
readonly entityType: TType;
|
|
315
|
-
/** Привязанная доменная модель. */
|
|
316
233
|
readonly model: RuntimeEntityModelMap[TType];
|
|
317
|
-
/** Identity привязанной доменной сущности. */
|
|
318
234
|
readonly entityIdentity: string;
|
|
319
|
-
/** Человекочитаемое имя host. */
|
|
320
235
|
readonly title: string;
|
|
321
|
-
/** Текущее состояние жизненного цикла host. */
|
|
322
236
|
status: RuntimeHostStatus;
|
|
323
|
-
/** Время создания host (timestamp ms). */
|
|
324
237
|
readonly createdAt: number;
|
|
325
|
-
/** Время последнего изменения host (timestamp ms). */
|
|
326
238
|
updatedAt: number;
|
|
327
|
-
/** Связанные runtime-ресурсы host. */
|
|
328
239
|
readonly resources: RuntimeHostResource[];
|
|
329
|
-
/** Связанные каналы взаимодействия host. */
|
|
330
240
|
readonly channels: RuntimeHostChannel[];
|
|
331
|
-
/** Произвольные runtime-метаданные host. */
|
|
332
241
|
readonly meta: Record<string, unknown>;
|
|
333
|
-
/** Контекст runtime-host (тип зависит от host). */
|
|
334
242
|
context: TContext;
|
|
335
|
-
/** Runtime-scoped persistence controller, если host запущен с persistence. */
|
|
336
243
|
readonly runtimeState: RuntimeStateControllerLike | null;
|
|
337
|
-
/** Корневая raph-нода host (если есть). */
|
|
338
244
|
readonly node: RaphNode | null;
|
|
339
|
-
/** Runtime-scoped базовый путь host в Raph data storage. */
|
|
340
245
|
readonly basePath: string;
|
|
341
|
-
/** Возвращает путь runtime state. */
|
|
342
246
|
statePath: (path?: string) => string;
|
|
343
|
-
/** Возвращает путь output runtime-host. */
|
|
344
247
|
outputPath: (name: string) => string;
|
|
345
|
-
/** Привязывает локальное имя входа к literal либо Raph path. */
|
|
346
248
|
bindInput: (name: string, binding: RuntimeHostInputBinding) => void;
|
|
347
|
-
/** Читает разрешённое значение входа. */
|
|
348
249
|
readInput: (name: string) => unknown;
|
|
349
|
-
/** Читает все входы одним snapshot. */
|
|
350
250
|
readInputs: () => Readonly<Record<string, unknown>>;
|
|
351
|
-
/** Подписывает root runtime-ноду на data path и тип логического обновления. */
|
|
352
251
|
bindUpdate: (binding: RuntimeHostUpdateBinding) => () => void;
|
|
353
|
-
/** Возвращает compiled artifact, связанный с host, если он доступен. */
|
|
354
252
|
getArtifact: () => ProgramArtifact<TArtifactPayload> | null;
|
|
355
|
-
/** Возвращает session-local reader, через который host читает compiled artifacts. */
|
|
356
253
|
getArtifactReader: () => RuntimeArtifactReader | null;
|
|
357
|
-
/** Возвращает payload compiled artifact, связанный с host, если он доступен. */
|
|
358
254
|
getArtifactPayload: () => TArtifactPayload | null;
|
|
359
|
-
/** Изменить статус host и обновить updatedAt. */
|
|
360
255
|
setStatus: (status: RuntimeHostStatus) => void;
|
|
361
|
-
/** Проверить наличие runtime capability. */
|
|
362
256
|
hasCapability: (capability: RuntimeHostCapability) => boolean;
|
|
363
|
-
/** Добавить/обновить runtime-ресурс host. */
|
|
364
257
|
addResource: (resource: RuntimeHostResource) => void;
|
|
365
|
-
/** Добавить/обновить канал host. */
|
|
366
258
|
addChannel: (channel: RuntimeHostChannel) => void;
|
|
367
|
-
/** Сгенерировать runtime-событие host. */
|
|
368
259
|
emit: (event: string, payload: any) => void;
|
|
369
|
-
/** Подписаться на runtime-событие host. */
|
|
370
260
|
on: (event: string, listener: (payload: any) => void) => any;
|
|
371
|
-
/** Отписаться от runtime-события host. */
|
|
372
261
|
off: (event: string, listener: (payload: any) => void) => any;
|
|
373
|
-
/** Частично обновить context host. */
|
|
374
262
|
setContext: (patch: Partial<TContext>) => void;
|
|
375
|
-
/** Полностью заменить context host. */
|
|
376
263
|
replaceContext: (context: TContext) => void;
|
|
377
|
-
/** Привязать runtime-scoped persistence controller. */
|
|
378
264
|
attachRuntimeState: (runtimeState: RuntimeStateControllerLike | null) => void;
|
|
379
|
-
/** Обработать runtime update, пришедший из логической либо boundary Raph-фазы. */
|
|
380
265
|
update: (ctx: RuntimeHostUpdateContext) => Promise<void> | void;
|
|
381
|
-
/** Сериализовать host в снимок для UI/диагностики. */
|
|
382
266
|
snapshot: () => RuntimeHostSnapshot;
|
|
383
|
-
/** Чистый снимок привязок renderer, без запуска или изменения host. */
|
|
384
267
|
captureRenderInspection?: () => import('./runtime-render-inspection.types').RuntimeRenderableInspection;
|
|
385
268
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { RuntimeHostStatus } from './runtime-host.types';
|
|
2
2
|
import { RuntimeRenderInspection } from './runtime-render-inspection.types';
|
|
3
3
|
import { EndgeRuntimeSnapshot } from './runtime.types';
|
|
4
|
-
/** Наблюдаемое состояние Runtime. Данные никогда не исполняются при импорте. */
|
|
5
4
|
export interface RuntimeInspectionSnapshot {
|
|
6
5
|
version: 1;
|
|
7
6
|
runtime: EndgeRuntimeSnapshot;
|
|
@@ -10,7 +9,6 @@ export interface RuntimeInspectionSnapshot {
|
|
|
10
9
|
dataGeneratedAt?: number;
|
|
11
10
|
dataError?: string;
|
|
12
11
|
}
|
|
13
|
-
/** Клиентский идентификатор экземпляра и его поколение защищают от повторного использования id. */
|
|
14
12
|
export type RuntimeControlTarget = {
|
|
15
13
|
kind: 'host';
|
|
16
14
|
id: string;
|
|
@@ -1,40 +1,23 @@
|
|
|
1
1
|
import { RuntimeEntityType } from './runtime-entity-map.types';
|
|
2
2
|
import { DestroyedRuntimeHostSnapshot, RuntimeHost, RuntimeHostSnapshot } from './runtime-host.types';
|
|
3
3
|
export interface RuntimeHostRegistrySnapshot {
|
|
4
|
-
/** Общее количество зарегистрированных host. */
|
|
5
4
|
total: number;
|
|
6
|
-
/** Группировка host по статусу. */
|
|
7
5
|
byStatus: Record<string, number>;
|
|
8
|
-
/** Снимки всех host на момент запроса. */
|
|
9
6
|
hosts: RuntimeHostSnapshot[];
|
|
10
|
-
/** Общее количество удалённых host, сохранённых в debug-архиве. */
|
|
11
7
|
deletedTotal: number;
|
|
12
|
-
/** Снимки удалённых host из debug-архива. */
|
|
13
8
|
deletedHosts: DestroyedRuntimeHostSnapshot[];
|
|
14
9
|
}
|
|
15
10
|
export interface RuntimeHostRegistryLike {
|
|
16
|
-
/** Зарегистрировать host в registry и вернуть его же. */
|
|
17
11
|
register: <T extends RuntimeHost<any, any>>(host: T) => T;
|
|
18
|
-
/** Найти host по runtime-id. */
|
|
19
12
|
getById: (id: string) => RuntimeHost<any, any> | null;
|
|
20
|
-
/** Получить список всех host. */
|
|
21
13
|
getAll: () => RuntimeHost<any, any>[];
|
|
22
|
-
/** Получить host для конкретной доменной сущности. */
|
|
23
14
|
getByEntity: (entityType: RuntimeEntityType, entityIdentity: string) => RuntimeHost<any, any>[];
|
|
24
|
-
/** Удалить host по runtime-id и вернуть удаленный экземпляр. */
|
|
25
15
|
removeById: (id: string) => RuntimeHost<any, any> | null;
|
|
26
|
-
/** Очистить registry и разрушить все host. */
|
|
27
16
|
clear: () => void;
|
|
28
|
-
/** Сохранить snapshot удалённого host в debug-архив. */
|
|
29
17
|
rememberDeletedSnapshot: (snapshot: DestroyedRuntimeHostSnapshot) => void;
|
|
30
|
-
/** Получить снимки удалённых host из debug-архива. */
|
|
31
18
|
getDeletedSnapshots: () => DestroyedRuntimeHostSnapshot[];
|
|
32
|
-
/** Удалить один snapshot из debug-архива по runtime-id. */
|
|
33
19
|
removeDeletedSnapshot: (id: string) => DestroyedRuntimeHostSnapshot | null;
|
|
34
|
-
/** Немедленно применяет фактическую ограниченную ёмкость инспекции. */
|
|
35
20
|
setDeletedSnapshotLimit: (limit: number) => void;
|
|
36
|
-
/** Очистить debug-архив удалённых host. */
|
|
37
21
|
clearDeleted: () => void;
|
|
38
|
-
/** Получить сериализованный snapshot registry. */
|
|
39
22
|
snapshot: () => RuntimeHostRegistrySnapshot;
|
|
40
23
|
}
|
|
@@ -2,7 +2,6 @@ import { ComputationRuntimeErrorShape } from '../../domain/types/computation/com
|
|
|
2
2
|
import { RuntimeHostInputSource } from './runtime-host.types';
|
|
3
3
|
import { FilterViewRenderModel } from '../../source/domain/types/filter-view.type';
|
|
4
4
|
import { EndgeStyleSheetArtifact } from '../../styles/domain/types/style.types';
|
|
5
|
-
/** Готовое состояние вычисления клиента; observer не исполняет computation повторно. */
|
|
6
5
|
export interface RuntimeComputationInspection {
|
|
7
6
|
identity: string;
|
|
8
7
|
input: unknown;
|
|
@@ -20,7 +19,6 @@ export type RuntimeRenderableInspection = {
|
|
|
20
19
|
kind: 'filter-view';
|
|
21
20
|
model: FilterViewRenderModel;
|
|
22
21
|
};
|
|
23
|
-
/** Дополнение к данным Raph: фактические привязки и presentation state экземпляров. */
|
|
24
22
|
export interface RuntimeRenderInspection {
|
|
25
23
|
hosts: Record<string, RuntimeRenderableInspection>;
|
|
26
24
|
styles: readonly EndgeStyleSheetArtifact[];
|
|
@@ -37,7 +37,6 @@ export interface RuntimeScopeLifecycleHooks {
|
|
|
37
37
|
reconcile?: () => Promise<void> | void;
|
|
38
38
|
deactivate?: () => Promise<void> | void;
|
|
39
39
|
dispose?: () => Promise<void> | void;
|
|
40
|
-
/** Централизованное завершение сохраняет согласованность RuntimeHostRegistry и индексов scope. */
|
|
41
40
|
destroyRuntime?: (runtimeId: string) => Promise<void> | void;
|
|
42
41
|
resolveRuntime?: (path: string) => RuntimeHost<any, any> | null;
|
|
43
42
|
resolveOutput?: (name: string) => unknown;
|
|
@@ -2,35 +2,21 @@ import { RuntimeEntityType } from './runtime-entity-map.types';
|
|
|
2
2
|
import { RuntimeArtifactReader, RuntimeHost } from './runtime-host.types';
|
|
3
3
|
export type RuntimeStrategyMeta = Record<string, any>;
|
|
4
4
|
export type AnyRuntimeHost = RuntimeHost<any, any>;
|
|
5
|
-
/** Контекст создания runtime-host конкретной стратегией. */
|
|
6
5
|
export interface RuntimeCreateContext<TModel = unknown> {
|
|
7
|
-
/** Уникальный runtime-id, выделенный EndgeRuntime_Module. */
|
|
8
6
|
id: string;
|
|
9
|
-
/** Доменная модель, для которой создается runtime-host. */
|
|
10
7
|
model: TModel;
|
|
11
|
-
/** Runtime meta/options без служебного parent. */
|
|
12
8
|
meta: RuntimeStrategyMeta;
|
|
13
|
-
/** Родительский runtime-host, если запуск вложенный. */
|
|
14
9
|
parent: AnyRuntimeHost | null;
|
|
15
|
-
/** Read-only доступ к compiled artifacts текущей Endge.program. */
|
|
16
10
|
artifacts: RuntimeArtifactReader;
|
|
17
11
|
}
|
|
18
|
-
/** Контекст разрушения runtime-host, если стратегии нужна своя очистка. */
|
|
19
12
|
export interface RuntimeDestroyContext<THost extends AnyRuntimeHost = AnyRuntimeHost> {
|
|
20
|
-
/** Разрушаемый runtime-host. */
|
|
21
13
|
host: THost;
|
|
22
14
|
}
|
|
23
|
-
/** Strategy запуска runtime-сущности одного типа. */
|
|
24
15
|
export interface RuntimeStrategy<TModel = unknown, THost extends AnyRuntimeHost = AnyRuntimeHost> {
|
|
25
|
-
/** Стабильный id стратегии для debug/плагинов. */
|
|
26
16
|
id: string;
|
|
27
|
-
/** Канонический runtime entity type, который создает стратегия. */
|
|
28
17
|
entityType: RuntimeEntityType;
|
|
29
|
-
/** Проверяет, умеет ли стратегия запустить переданную модель. */
|
|
30
18
|
supports: (model: unknown) => model is TModel;
|
|
31
|
-
/** Создает runtime-host. Регистрация в EndgeRuntime_Module здесь не выполняется. */
|
|
32
19
|
create: (ctx: RuntimeCreateContext<TModel>) => THost | null;
|
|
33
|
-
/** Выполняет strategy-specific cleanup перед общим host.destroy(). */
|
|
34
20
|
destroy?: (ctx: RuntimeDestroyContext<THost>) => Promise<void> | void;
|
|
35
21
|
}
|
|
36
22
|
export type AnyRuntimeStrategy = RuntimeStrategy<any, any>;
|