@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,268 @@
|
|
|
1
|
+
import { PhaseEvent, PhaseName, RaphFrameContext, RaphNode } from '@raphy-js/raph';
|
|
2
|
+
import { RuntimeStateControllerLike } from '../../context/domain/context-persistence.types';
|
|
3
|
+
import { ProgramArtifact, ProgramEntityType } from '../../program/domain/types/program.types';
|
|
4
|
+
import { RuntimeEntityModelMap, RuntimeEntityType } from './runtime-entity-map.types';
|
|
5
|
+
import { RuntimeKind } from './runtime.types';
|
|
6
|
+
export type RuntimeHostStatus = 'created' | 'mounted' | 'running' | 'active' | 'pausing' | 'paused' | 'stopping' | 'stopped' | 'unmounted' | 'destroyed' | 'error';
|
|
7
|
+
export type RuntimeHostCapability = 'renderable';
|
|
8
|
+
export type RuntimeHostResourceKind = 'raph-node' | 'derived' | 'event-subscription' | 'scope' | 'meta';
|
|
9
|
+
export interface RuntimeHostResource {
|
|
10
|
+
id: string;
|
|
11
|
+
kind: RuntimeHostResourceKind;
|
|
12
|
+
title: string;
|
|
13
|
+
subtitle?: string;
|
|
14
|
+
payload?: Record<string, unknown>;
|
|
15
|
+
}
|
|
16
|
+
export type RuntimeHostChannelKind = 'raph' | 'event-bus' | 'external';
|
|
17
|
+
export interface RuntimeHostChannel {
|
|
18
|
+
id: string;
|
|
19
|
+
kind: RuntimeHostChannelKind;
|
|
20
|
+
name: string;
|
|
21
|
+
direction: 'in' | 'out' | 'both';
|
|
22
|
+
subtitle?: string;
|
|
23
|
+
}
|
|
24
|
+
export interface RuntimeHostContextBase {
|
|
25
|
+
status: 'idle' | 'running' | 'success' | 'error';
|
|
26
|
+
startedAt: string | null;
|
|
27
|
+
updatedAt: string | null;
|
|
28
|
+
}
|
|
29
|
+
export interface ActionRuntimeHostContext extends RuntimeHostContextBase {
|
|
30
|
+
input: Record<string, unknown>;
|
|
31
|
+
result: unknown;
|
|
32
|
+
parent?: ActionRuntimeHostContext | null;
|
|
33
|
+
}
|
|
34
|
+
export interface QueryRuntimeHostContext extends RuntimeHostContextBase {
|
|
35
|
+
lastFilterChangeAt: string | null;
|
|
36
|
+
}
|
|
37
|
+
export interface FilterRuntimeHostContext extends RuntimeHostContextBase {
|
|
38
|
+
instance: string;
|
|
39
|
+
lastStateChangeAt: string | null;
|
|
40
|
+
}
|
|
41
|
+
export interface CompositionRuntimeHostContext extends RuntimeHostContextBase {
|
|
42
|
+
mountedChildren: number;
|
|
43
|
+
lastHookAt: string | null;
|
|
44
|
+
}
|
|
45
|
+
export interface StoreRuntimeHostContext extends RuntimeHostContextBase {
|
|
46
|
+
lastStateChangeAt: string | null;
|
|
47
|
+
writableFields: string[];
|
|
48
|
+
derivedFields: string[];
|
|
49
|
+
}
|
|
50
|
+
export interface StreamRuntimeHostContext extends RuntimeHostContextBase {
|
|
51
|
+
lastEventAt: string | null;
|
|
52
|
+
receivedCount: number;
|
|
53
|
+
}
|
|
54
|
+
export interface ComponentSFCRuntimeHostContext extends RuntimeHostContextBase {
|
|
55
|
+
target: 'dom' | 'canvas' | null;
|
|
56
|
+
lastParseAt: string | null;
|
|
57
|
+
lastCompileAt: string | null;
|
|
58
|
+
lastRenderAt: string | null;
|
|
59
|
+
}
|
|
60
|
+
export interface PageRuntimeHostContext extends RuntimeHostContextBase {
|
|
61
|
+
lastRenderAt: string | null;
|
|
62
|
+
}
|
|
63
|
+
export interface RuntimeHostContextMap {
|
|
64
|
+
'simulation': RuntimeHostContextBase;
|
|
65
|
+
'action': ActionRuntimeHostContext;
|
|
66
|
+
'query': QueryRuntimeHostContext;
|
|
67
|
+
'filter': FilterRuntimeHostContext;
|
|
68
|
+
'composition': CompositionRuntimeHostContext;
|
|
69
|
+
'store': StoreRuntimeHostContext;
|
|
70
|
+
'stream': StreamRuntimeHostContext;
|
|
71
|
+
'component-sfc': ComponentSFCRuntimeHostContext;
|
|
72
|
+
'page': PageRuntimeHostContext;
|
|
73
|
+
}
|
|
74
|
+
export type RuntimeHostContext<TType extends RuntimeEntityType> = RuntimeHostContextMap[TType];
|
|
75
|
+
export interface RuntimeHostSnapshot {
|
|
76
|
+
id: string;
|
|
77
|
+
basePath: string;
|
|
78
|
+
parentId: string | null;
|
|
79
|
+
removedAt: number | null;
|
|
80
|
+
runtimeType: string;
|
|
81
|
+
capabilities: RuntimeHostCapability[];
|
|
82
|
+
entityType: RuntimeEntityType;
|
|
83
|
+
entityIdentity: string;
|
|
84
|
+
title: string;
|
|
85
|
+
status: RuntimeHostStatus;
|
|
86
|
+
createdAt: number;
|
|
87
|
+
updatedAt: number;
|
|
88
|
+
resources: RuntimeHostResource[];
|
|
89
|
+
channels: RuntimeHostChannel[];
|
|
90
|
+
meta: Record<string, unknown>;
|
|
91
|
+
context: Record<string, unknown>;
|
|
92
|
+
}
|
|
93
|
+
export interface DestroyedRuntimeHostSnapshot {
|
|
94
|
+
id: string;
|
|
95
|
+
basePath: string;
|
|
96
|
+
parentId: string | null;
|
|
97
|
+
runtimeType: string;
|
|
98
|
+
capabilities: RuntimeHostCapability[];
|
|
99
|
+
entityType: RuntimeEntityType;
|
|
100
|
+
entityIdentity: string;
|
|
101
|
+
title: string;
|
|
102
|
+
previousStatus: RuntimeHostStatus;
|
|
103
|
+
status: 'destroyed';
|
|
104
|
+
createdAt: number;
|
|
105
|
+
updatedAt: number;
|
|
106
|
+
removedAt: number;
|
|
107
|
+
resources: Array<Omit<RuntimeHostResource, 'payload'>>;
|
|
108
|
+
channels: RuntimeHostChannel[];
|
|
109
|
+
}
|
|
110
|
+
export interface RuntimeInspectionLease {
|
|
111
|
+
release: () => void;
|
|
112
|
+
}
|
|
113
|
+
export interface RuntimeHostLifecycle {
|
|
114
|
+
create: () => Promise<void> | void;
|
|
115
|
+
mount: () => Promise<void> | void;
|
|
116
|
+
start: () => Promise<void> | void;
|
|
117
|
+
pause: () => Promise<void> | void;
|
|
118
|
+
resume: () => Promise<void> | void;
|
|
119
|
+
reconcile: () => Promise<void> | void;
|
|
120
|
+
stop: () => Promise<void> | void;
|
|
121
|
+
unmount: () => Promise<void> | void;
|
|
122
|
+
quiesce: () => Promise<void> | void;
|
|
123
|
+
destroy: () => Promise<void> | void;
|
|
124
|
+
update: (ctx: RuntimeHostUpdateContext) => Promise<void> | void;
|
|
125
|
+
}
|
|
126
|
+
export interface RuntimeArtifactReader {
|
|
127
|
+
getArtifact: <TPayload = unknown>(entityType: ProgramEntityType, idOrIdentity: string | number) => ProgramArtifact<TPayload> | null;
|
|
128
|
+
}
|
|
129
|
+
export interface RuntimeHostArtifactRef {
|
|
130
|
+
entityType: ProgramEntityType;
|
|
131
|
+
id?: string | number;
|
|
132
|
+
identity?: string;
|
|
133
|
+
}
|
|
134
|
+
export declare const RUNTIME_BOUNDARY_UPDATE_PHASE_NAME: PhaseName;
|
|
135
|
+
export declare const RUNTIME_NODE_UPDATE_PHASE_NAME: PhaseName;
|
|
136
|
+
export type RuntimeHostInputBinding = {
|
|
137
|
+
kind: 'literal';
|
|
138
|
+
value: unknown;
|
|
139
|
+
} | {
|
|
140
|
+
kind: 'raph';
|
|
141
|
+
path: string;
|
|
142
|
+
};
|
|
143
|
+
export interface RuntimeHostUpdateBinding {
|
|
144
|
+
id: string;
|
|
145
|
+
sourcePath: string;
|
|
146
|
+
update: {
|
|
147
|
+
kind: string;
|
|
148
|
+
payload?: unknown;
|
|
149
|
+
};
|
|
150
|
+
policy?: {
|
|
151
|
+
debounceMs?: number;
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
export interface RuntimeHostResolvedUpdate {
|
|
155
|
+
bindingId: string;
|
|
156
|
+
sourcePath: string;
|
|
157
|
+
kind: string;
|
|
158
|
+
payload?: unknown;
|
|
159
|
+
}
|
|
160
|
+
export interface RuntimeHostLocalInputSource {
|
|
161
|
+
kind: 'local';
|
|
162
|
+
props: Record<string, unknown>;
|
|
163
|
+
}
|
|
164
|
+
export interface RuntimeHostRaphInputBinding {
|
|
165
|
+
path: string;
|
|
166
|
+
wildcardDynamic?: boolean;
|
|
167
|
+
metaSource?: {
|
|
168
|
+
path: string;
|
|
169
|
+
key?: string;
|
|
170
|
+
fields?: Record<string, string>;
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
export interface RuntimeHostRaphInputSource {
|
|
174
|
+
kind: 'raph';
|
|
175
|
+
bindings: Record<string, RuntimeHostRaphInputBinding>;
|
|
176
|
+
props?: Record<string, unknown>;
|
|
177
|
+
}
|
|
178
|
+
export type RuntimeHostInputSource = RuntimeHostLocalInputSource | RuntimeHostRaphInputSource;
|
|
179
|
+
export interface RuntimeDirtyBoundary {
|
|
180
|
+
boundary: RaphNode;
|
|
181
|
+
dirtyNodes: RaphNode[];
|
|
182
|
+
events: PhaseEvent[];
|
|
183
|
+
}
|
|
184
|
+
export interface RuntimeHostUpdateContext {
|
|
185
|
+
node: RaphNode;
|
|
186
|
+
events: PhaseEvent[];
|
|
187
|
+
boundaries: RuntimeDirtyBoundary[];
|
|
188
|
+
frame: RaphFrameContext;
|
|
189
|
+
updates?: RuntimeHostResolvedUpdate[];
|
|
190
|
+
}
|
|
191
|
+
export interface RuntimeCollectionProjectionPatch {
|
|
192
|
+
boundaryId: string;
|
|
193
|
+
key: string;
|
|
194
|
+
index: number;
|
|
195
|
+
}
|
|
196
|
+
export interface RuntimeCollectionProjectionUpdatePatch {
|
|
197
|
+
kind: 'collection-projection-update';
|
|
198
|
+
boundaryId: string;
|
|
199
|
+
boundaryType: 'table';
|
|
200
|
+
sourcePath: string;
|
|
201
|
+
itemIndex: number | null;
|
|
202
|
+
itemKey: unknown;
|
|
203
|
+
itemSnapshot: unknown;
|
|
204
|
+
changedPaths: string[][];
|
|
205
|
+
affectedProjections: RuntimeCollectionProjectionPatch[];
|
|
206
|
+
events: PhaseEvent[];
|
|
207
|
+
node: RaphNode;
|
|
208
|
+
}
|
|
209
|
+
export interface RuntimeCollectionItemPatch {
|
|
210
|
+
itemIndex: number | null;
|
|
211
|
+
itemKey: unknown;
|
|
212
|
+
itemSnapshot: unknown;
|
|
213
|
+
changedPaths: string[][];
|
|
214
|
+
}
|
|
215
|
+
export interface RuntimeCollectionProjectionBatchPatch {
|
|
216
|
+
kind: 'collection-projection-batch';
|
|
217
|
+
boundaryId: string;
|
|
218
|
+
boundaryType: 'table';
|
|
219
|
+
sourcePath: string;
|
|
220
|
+
items: RuntimeCollectionItemPatch[];
|
|
221
|
+
affectedProjections: RuntimeCollectionProjectionPatch[];
|
|
222
|
+
events: PhaseEvent[];
|
|
223
|
+
node: RaphNode;
|
|
224
|
+
}
|
|
225
|
+
export type RuntimeBoundaryPatch = RuntimeCollectionProjectionUpdatePatch | RuntimeCollectionProjectionBatchPatch;
|
|
226
|
+
export interface RuntimeHost<TType extends RuntimeEntityType = RuntimeEntityType, TContext extends RuntimeHostContext<TType> = RuntimeHostContext<TType>, TArtifactPayload = unknown> extends RuntimeHostLifecycle {
|
|
227
|
+
readonly id: string;
|
|
228
|
+
readonly parent: RuntimeHost<any, any> | null;
|
|
229
|
+
readonly kind: RuntimeKind | 'runtime';
|
|
230
|
+
readonly runtimeType: string;
|
|
231
|
+
readonly capabilities: readonly RuntimeHostCapability[];
|
|
232
|
+
readonly entityType: TType;
|
|
233
|
+
readonly model: RuntimeEntityModelMap[TType];
|
|
234
|
+
readonly entityIdentity: string;
|
|
235
|
+
readonly title: string;
|
|
236
|
+
status: RuntimeHostStatus;
|
|
237
|
+
readonly createdAt: number;
|
|
238
|
+
updatedAt: number;
|
|
239
|
+
readonly resources: RuntimeHostResource[];
|
|
240
|
+
readonly channels: RuntimeHostChannel[];
|
|
241
|
+
readonly meta: Record<string, unknown>;
|
|
242
|
+
context: TContext;
|
|
243
|
+
readonly runtimeState: RuntimeStateControllerLike | null;
|
|
244
|
+
readonly node: RaphNode | null;
|
|
245
|
+
readonly basePath: string;
|
|
246
|
+
statePath: (path?: string) => string;
|
|
247
|
+
outputPath: (name: string) => string;
|
|
248
|
+
bindInput: (name: string, binding: RuntimeHostInputBinding) => void;
|
|
249
|
+
readInput: (name: string) => unknown;
|
|
250
|
+
readInputs: () => Readonly<Record<string, unknown>>;
|
|
251
|
+
bindUpdate: (binding: RuntimeHostUpdateBinding) => () => void;
|
|
252
|
+
getArtifact: () => ProgramArtifact<TArtifactPayload> | null;
|
|
253
|
+
getArtifactReader: () => RuntimeArtifactReader | null;
|
|
254
|
+
getArtifactPayload: () => TArtifactPayload | null;
|
|
255
|
+
setStatus: (status: RuntimeHostStatus) => void;
|
|
256
|
+
hasCapability: (capability: RuntimeHostCapability) => boolean;
|
|
257
|
+
addResource: (resource: RuntimeHostResource) => void;
|
|
258
|
+
addChannel: (channel: RuntimeHostChannel) => void;
|
|
259
|
+
emit: (event: string, payload: any) => void;
|
|
260
|
+
on: (event: string, listener: (payload: any) => void) => any;
|
|
261
|
+
off: (event: string, listener: (payload: any) => void) => any;
|
|
262
|
+
setContext: (patch: Partial<TContext>) => void;
|
|
263
|
+
replaceContext: (context: TContext) => void;
|
|
264
|
+
attachRuntimeState: (runtimeState: RuntimeStateControllerLike | null) => void;
|
|
265
|
+
update: (ctx: RuntimeHostUpdateContext) => Promise<void> | void;
|
|
266
|
+
snapshot: () => RuntimeHostSnapshot;
|
|
267
|
+
captureRenderInspection?: () => import('./runtime-render-inspection.types').RuntimeRenderableInspection;
|
|
268
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { RuntimeHostStatus } from './runtime-host.types';
|
|
2
|
+
import { RuntimeRenderInspection } from './runtime-render-inspection.types';
|
|
3
|
+
import { EndgeRuntimeSnapshot } from './runtime.types';
|
|
4
|
+
export interface RuntimeInspectionSnapshot {
|
|
5
|
+
version: 1;
|
|
6
|
+
runtime: EndgeRuntimeSnapshot;
|
|
7
|
+
data?: unknown;
|
|
8
|
+
render?: RuntimeRenderInspection;
|
|
9
|
+
dataGeneratedAt?: number;
|
|
10
|
+
dataError?: string;
|
|
11
|
+
}
|
|
12
|
+
export type RuntimeControlTarget = {
|
|
13
|
+
kind: 'host';
|
|
14
|
+
id: string;
|
|
15
|
+
createdAt: number;
|
|
16
|
+
} | {
|
|
17
|
+
kind: 'scope';
|
|
18
|
+
id: string;
|
|
19
|
+
generation: number;
|
|
20
|
+
};
|
|
21
|
+
export type RuntimeControlOperation = 'pause' | 'resume' | 'stop';
|
|
22
|
+
export interface RuntimeStatusChange {
|
|
23
|
+
readonly id: string;
|
|
24
|
+
readonly previous: RuntimeHostStatus;
|
|
25
|
+
readonly value: RuntimeHostStatus;
|
|
26
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { RuntimeEntityType } from './runtime-entity-map.types';
|
|
2
|
+
import { DestroyedRuntimeHostSnapshot, RuntimeHost, RuntimeHostSnapshot } from './runtime-host.types';
|
|
3
|
+
export interface RuntimeHostRegistrySnapshot {
|
|
4
|
+
total: number;
|
|
5
|
+
byStatus: Record<string, number>;
|
|
6
|
+
hosts: RuntimeHostSnapshot[];
|
|
7
|
+
deletedTotal: number;
|
|
8
|
+
deletedHosts: DestroyedRuntimeHostSnapshot[];
|
|
9
|
+
}
|
|
10
|
+
export interface RuntimeHostRegistryLike {
|
|
11
|
+
register: <T extends RuntimeHost<any, any>>(host: T) => T;
|
|
12
|
+
getById: (id: string) => RuntimeHost<any, any> | null;
|
|
13
|
+
getAll: () => RuntimeHost<any, any>[];
|
|
14
|
+
getByEntity: (entityType: RuntimeEntityType, entityIdentity: string) => RuntimeHost<any, any>[];
|
|
15
|
+
removeById: (id: string) => RuntimeHost<any, any> | null;
|
|
16
|
+
clear: () => void;
|
|
17
|
+
rememberDeletedSnapshot: (snapshot: DestroyedRuntimeHostSnapshot) => void;
|
|
18
|
+
getDeletedSnapshots: () => DestroyedRuntimeHostSnapshot[];
|
|
19
|
+
removeDeletedSnapshot: (id: string) => DestroyedRuntimeHostSnapshot | null;
|
|
20
|
+
setDeletedSnapshotLimit: (limit: number) => void;
|
|
21
|
+
clearDeleted: () => void;
|
|
22
|
+
snapshot: () => RuntimeHostRegistrySnapshot;
|
|
23
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ComputationRuntimeErrorShape } from '../../domain/types/computation/computation-runtime.types';
|
|
2
|
+
import { RuntimeHostInputSource } from './runtime-host.types';
|
|
3
|
+
import { FilterViewRenderModel } from '../../source/domain/types/filter-view.type';
|
|
4
|
+
import { EndgeStyleSheetArtifact } from '../../styles/domain/types/style.types';
|
|
5
|
+
export interface RuntimeComputationInspection {
|
|
6
|
+
identity: string;
|
|
7
|
+
input: unknown;
|
|
8
|
+
status: 'idle' | 'pending' | 'success' | 'error';
|
|
9
|
+
loading: boolean;
|
|
10
|
+
value: unknown;
|
|
11
|
+
error: ComputationRuntimeErrorShape | null;
|
|
12
|
+
}
|
|
13
|
+
export type RuntimeRenderableInspection = {
|
|
14
|
+
kind: 'component-sfc';
|
|
15
|
+
input: RuntimeHostInputSource | null;
|
|
16
|
+
computations: RuntimeComputationInspection[];
|
|
17
|
+
dataMeta: Record<string, unknown>;
|
|
18
|
+
} | {
|
|
19
|
+
kind: 'filter-view';
|
|
20
|
+
model: FilterViewRenderModel;
|
|
21
|
+
};
|
|
22
|
+
export interface RuntimeRenderInspection {
|
|
23
|
+
hosts: Record<string, RuntimeRenderableInspection>;
|
|
24
|
+
styles: readonly EndgeStyleSheetArtifact[];
|
|
25
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface RuntimeOwnedResource {
|
|
2
|
+
readonly id: string;
|
|
3
|
+
readonly kind: string;
|
|
4
|
+
pause?: () => Promise<void> | void;
|
|
5
|
+
resume?: () => Promise<void> | void;
|
|
6
|
+
dispose: () => Promise<void> | void;
|
|
7
|
+
}
|
|
8
|
+
export interface RuntimeResourceBagSnapshot {
|
|
9
|
+
total: number;
|
|
10
|
+
paused: boolean;
|
|
11
|
+
resources: Array<{
|
|
12
|
+
id: string;
|
|
13
|
+
kind: string;
|
|
14
|
+
}>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { RuntimeHost } from './runtime-host.types';
|
|
2
|
+
import { RuntimeResourceBagSnapshot } from './runtime-resource.types';
|
|
3
|
+
export type RuntimeScopeState = 'inactive' | 'activating' | 'active' | 'pausing' | 'paused' | 'resuming' | 'deactivating' | 'error' | 'disposed';
|
|
4
|
+
export interface RuntimeScopeSnapshot {
|
|
5
|
+
id: string;
|
|
6
|
+
path: string;
|
|
7
|
+
parentScopeId: string | null;
|
|
8
|
+
ownerRuntimeId: string | null;
|
|
9
|
+
boundaryId: string;
|
|
10
|
+
state: RuntimeScopeState;
|
|
11
|
+
generation: number;
|
|
12
|
+
stale: boolean;
|
|
13
|
+
updateGateOpen: boolean;
|
|
14
|
+
childScopeIds: string[];
|
|
15
|
+
memberRuntimeIds: string[];
|
|
16
|
+
resources: RuntimeResourceBagSnapshot;
|
|
17
|
+
lastError: string | null;
|
|
18
|
+
}
|
|
19
|
+
export interface RuntimeScopeHandle {
|
|
20
|
+
readonly id: string;
|
|
21
|
+
readonly path: string;
|
|
22
|
+
readonly state: RuntimeScopeState;
|
|
23
|
+
readonly boundaryId: string;
|
|
24
|
+
activate: () => Promise<void>;
|
|
25
|
+
pause: () => Promise<void>;
|
|
26
|
+
resume: () => Promise<void>;
|
|
27
|
+
deactivate: () => Promise<void>;
|
|
28
|
+
dispose: () => Promise<void>;
|
|
29
|
+
getRuntime: (path: string) => RuntimeHost<any, any> | null;
|
|
30
|
+
getOutput: (name: string) => unknown;
|
|
31
|
+
snapshot: () => RuntimeScopeSnapshot;
|
|
32
|
+
}
|
|
33
|
+
export interface RuntimeScopeLifecycleHooks {
|
|
34
|
+
activate?: (signal: AbortSignal, generation: number) => Promise<void> | void;
|
|
35
|
+
pause?: () => Promise<void> | void;
|
|
36
|
+
resume?: (signal: AbortSignal, generation: number) => Promise<void> | void;
|
|
37
|
+
reconcile?: () => Promise<void> | void;
|
|
38
|
+
deactivate?: () => Promise<void> | void;
|
|
39
|
+
dispose?: () => Promise<void> | void;
|
|
40
|
+
destroyRuntime?: (runtimeId: string) => Promise<void> | void;
|
|
41
|
+
resolveRuntime?: (path: string) => RuntimeHost<any, any> | null;
|
|
42
|
+
resolveOutput?: (name: string) => unknown;
|
|
43
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { RuntimeEntityType } from './runtime-entity-map.types';
|
|
2
|
+
import { RuntimeArtifactReader, RuntimeHost } from './runtime-host.types';
|
|
3
|
+
export type RuntimeStrategyMeta = Record<string, any>;
|
|
4
|
+
export type AnyRuntimeHost = RuntimeHost<any, any>;
|
|
5
|
+
export interface RuntimeCreateContext<TModel = unknown> {
|
|
6
|
+
id: string;
|
|
7
|
+
model: TModel;
|
|
8
|
+
meta: RuntimeStrategyMeta;
|
|
9
|
+
parent: AnyRuntimeHost | null;
|
|
10
|
+
artifacts: RuntimeArtifactReader;
|
|
11
|
+
}
|
|
12
|
+
export interface RuntimeDestroyContext<THost extends AnyRuntimeHost = AnyRuntimeHost> {
|
|
13
|
+
host: THost;
|
|
14
|
+
}
|
|
15
|
+
export interface RuntimeStrategy<TModel = unknown, THost extends AnyRuntimeHost = AnyRuntimeHost> {
|
|
16
|
+
id: string;
|
|
17
|
+
entityType: RuntimeEntityType;
|
|
18
|
+
supports: (model: unknown) => model is TModel;
|
|
19
|
+
create: (ctx: RuntimeCreateContext<TModel>) => THost | null;
|
|
20
|
+
destroy?: (ctx: RuntimeDestroyContext<THost>) => Promise<void> | void;
|
|
21
|
+
}
|
|
22
|
+
export type AnyRuntimeStrategy = RuntimeStrategy<any, any>;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { RAction } from '../../domain/entities/RAction';
|
|
2
|
+
import { RComponentSFC } from '../../domain/entities/RComponentSFC';
|
|
3
|
+
import { RComposition } from '../../domain/entities/RComposition';
|
|
4
|
+
import { RFilter } from '../../domain/entities/RFilter';
|
|
5
|
+
import { RPage } from '../../domain/entities/RPage';
|
|
6
|
+
import { RQuery } from '../../domain/entities/RQuery';
|
|
7
|
+
import { RSimulation } from '../../domain/entities/RSimulation';
|
|
8
|
+
import { RStore } from '../../domain/entities/RStore';
|
|
9
|
+
import { RStream } from '../../domain/entities/RStream';
|
|
10
|
+
import { RuntimeHostRegistrySnapshot } from './runtime-registry.types';
|
|
11
|
+
export type RuntimeKind = 'query' | 'filter' | 'composition' | 'store' | 'stream' | 'action' | 'simulation' | 'runtime';
|
|
12
|
+
export type RuntimeExecutableModel = RQuery | RAction | RPage | RComponentSFC | RFilter | RComposition | RStore | RStream | RSimulation;
|
|
13
|
+
export interface EndgeRuntimeSnapshot extends RuntimeHostRegistrySnapshot {
|
|
14
|
+
generatedAt: number;
|
|
15
|
+
scopes: import('./runtime-scope.types').RuntimeScopeSnapshot[];
|
|
16
|
+
}
|
|
17
|
+
export interface EndgeRuntimeRaphSnapshot {
|
|
18
|
+
data?: unknown;
|
|
19
|
+
render?: import('./runtime-render-inspection.types').RuntimeRenderInspection;
|
|
20
|
+
graph?: {
|
|
21
|
+
runtimeId: string;
|
|
22
|
+
loopEnabled: boolean;
|
|
23
|
+
frame: unknown;
|
|
24
|
+
nodes: unknown[];
|
|
25
|
+
tree: unknown[];
|
|
26
|
+
derived: unknown;
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
export interface FilterChangeEvent {
|
|
30
|
+
filterId: string;
|
|
31
|
+
}
|
|
32
|
+
export interface QueryRuntimeEvents {
|
|
33
|
+
'filter:change': FilterChangeEvent;
|
|
34
|
+
}
|
|
35
|
+
export interface ActionRuntimeEvents {
|
|
36
|
+
'source:change': {
|
|
37
|
+
events?: unknown[];
|
|
38
|
+
meta?: Record<string, unknown>;
|
|
39
|
+
};
|
|
40
|
+
'step:start': {
|
|
41
|
+
stepId: string;
|
|
42
|
+
runtimeId?: string | null;
|
|
43
|
+
actionId?: string | null;
|
|
44
|
+
title?: string | null;
|
|
45
|
+
meta?: Record<string, unknown>;
|
|
46
|
+
};
|
|
47
|
+
'step:success': {
|
|
48
|
+
stepId: string;
|
|
49
|
+
runtimeId?: string | null;
|
|
50
|
+
actionId?: string | null;
|
|
51
|
+
title?: string | null;
|
|
52
|
+
output?: unknown;
|
|
53
|
+
meta?: Record<string, unknown>;
|
|
54
|
+
};
|
|
55
|
+
'step:error': {
|
|
56
|
+
stepId: string;
|
|
57
|
+
runtimeId?: string | null;
|
|
58
|
+
actionId?: string | null;
|
|
59
|
+
title?: string | null;
|
|
60
|
+
error: unknown;
|
|
61
|
+
meta?: Record<string, unknown>;
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
export interface RuntimeProfile<K extends RuntimeKind, E extends Record<string, any>> {
|
|
65
|
+
kind: K;
|
|
66
|
+
events: E;
|
|
67
|
+
}
|
|
68
|
+
export interface RuntimeProfiles {
|
|
69
|
+
query: RuntimeProfile<'query', QueryRuntimeEvents>;
|
|
70
|
+
action: RuntimeProfile<'action', ActionRuntimeEvents>;
|
|
71
|
+
}
|
|
72
|
+
export type RuntimeProfileByKind<K extends keyof RuntimeProfiles> = RuntimeProfiles[K];
|
|
73
|
+
export type RuntimeEventsByKind<K extends keyof RuntimeProfiles> = RuntimeProfileByKind<K>['events'];
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { RComponentSFC_SourceRange } from '../../domain/types/component/sfc/location.types';
|
|
2
|
+
export type SFCRenderInspectionNodeKind = 'component' | 'element' | 'text' | 'expression';
|
|
3
|
+
export interface SFCRenderInspectionBinding {
|
|
4
|
+
kind: 'literal' | 'expression';
|
|
5
|
+
source?: string;
|
|
6
|
+
reads: string[];
|
|
7
|
+
value: unknown;
|
|
8
|
+
}
|
|
9
|
+
export interface SFCRenderInspectionNodeInput {
|
|
10
|
+
runtimeId: string;
|
|
11
|
+
componentIdentity: string;
|
|
12
|
+
componentStack: string[];
|
|
13
|
+
scope: string;
|
|
14
|
+
parentId: string | null;
|
|
15
|
+
nodeId: string;
|
|
16
|
+
kind: SFCRenderInspectionNodeKind;
|
|
17
|
+
tag: string;
|
|
18
|
+
componentTag?: string;
|
|
19
|
+
calledComponentIdentity?: string;
|
|
20
|
+
sourceRange?: RComponentSFC_SourceRange;
|
|
21
|
+
props: Record<string, unknown>;
|
|
22
|
+
componentProps: Record<string, unknown>;
|
|
23
|
+
locals: Record<string, unknown>;
|
|
24
|
+
bindings: Record<string, SFCRenderInspectionBinding>;
|
|
25
|
+
meta?: Record<string, unknown>;
|
|
26
|
+
}
|
|
27
|
+
export interface SFCRenderInspectionNode extends SFCRenderInspectionNodeInput {
|
|
28
|
+
id: string;
|
|
29
|
+
updatedAt: number;
|
|
30
|
+
}
|
|
31
|
+
export interface SFCRenderInspectionTreeNode extends SFCRenderInspectionNode {
|
|
32
|
+
children: SFCRenderInspectionTreeNode[];
|
|
33
|
+
}
|
|
34
|
+
export interface SFCRenderInspectionSessionLike {
|
|
35
|
+
registerNode: (input: SFCRenderInspectionNodeInput) => string;
|
|
36
|
+
unregisterNode: (id: string) => void;
|
|
37
|
+
getNode: (id: string) => SFCRenderInspectionNode | null;
|
|
38
|
+
getTree: (runtimeId?: string) => SFCRenderInspectionTreeNode[];
|
|
39
|
+
subscribe: (listener: () => void) => VoidFunction;
|
|
40
|
+
clearRuntime: (runtimeId: string) => void;
|
|
41
|
+
clear: () => void;
|
|
42
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { RuntimeArtifactReader } from './runtime-host.types';
|
|
2
|
+
import { StreamTransportConnection, StreamTransportFactory } from './stream-runtime.types';
|
|
3
|
+
import { SimulationRuntimeHost } from '../hosts/SimulationRuntimeHost';
|
|
4
|
+
import { SimulationMockStream } from '../../source/domain/types/simulation-source.types';
|
|
5
|
+
export interface SimulationGenerator {
|
|
6
|
+
generate: (schema: Record<string, unknown>, seed: string, signal: AbortSignal) => Promise<unknown>;
|
|
7
|
+
openStream: (schema: Record<string, unknown>, options: SimulationMockStream, callbacks: Parameters<StreamTransportFactory['open']>[1]) => StreamTransportConnection;
|
|
8
|
+
}
|
|
9
|
+
export interface SimulationMountOptions {
|
|
10
|
+
generator?: SimulationGenerator;
|
|
11
|
+
artifactReader?: RuntimeArtifactReader;
|
|
12
|
+
forceMock?: boolean;
|
|
13
|
+
props?: Record<string, unknown>;
|
|
14
|
+
}
|
|
15
|
+
export interface SimulationRuntimeSession {
|
|
16
|
+
readonly id: string;
|
|
17
|
+
readonly host: SimulationRuntimeHost;
|
|
18
|
+
pause: () => Promise<void>;
|
|
19
|
+
resume: () => Promise<void>;
|
|
20
|
+
unmount: () => Promise<void>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { StreamSourceArtifact } from '../../source/domain/types/stream-source.types';
|
|
2
|
+
export interface StreamTransportMessage {
|
|
3
|
+
sourceEvent: string;
|
|
4
|
+
id: string | null;
|
|
5
|
+
data: unknown;
|
|
6
|
+
}
|
|
7
|
+
export interface StreamTransportConnection {
|
|
8
|
+
close: () => void | Promise<void>;
|
|
9
|
+
pause?: () => Promise<void>;
|
|
10
|
+
resume?: () => Promise<void>;
|
|
11
|
+
}
|
|
12
|
+
export interface StreamTransportFactory {
|
|
13
|
+
open: (artifact: StreamSourceArtifact, callbacks: {
|
|
14
|
+
message: (message: StreamTransportMessage) => void;
|
|
15
|
+
error: (error: unknown) => void;
|
|
16
|
+
open: () => void;
|
|
17
|
+
}) => StreamTransportConnection;
|
|
18
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export type VocabReference = string | number;
|
|
2
|
+
export type VocabLoadStrategy = 'cache-first' | 'network-first' | 'stale-while-revalidate';
|
|
3
|
+
export type VocabLoadErrorPolicy = 'fail' | 'use-cache';
|
|
4
|
+
export interface VocabLoadPolicy {
|
|
5
|
+
strategy: VocabLoadStrategy;
|
|
6
|
+
maxAgeMs: number | null;
|
|
7
|
+
onError: VocabLoadErrorPolicy;
|
|
8
|
+
}
|
|
9
|
+
export declare const DEFAULT_VOCAB_LOAD_POLICY: Readonly<VocabLoadPolicy>;
|
|
10
|
+
export type VocabCacheOperationStatus = 'cache-hit' | 'loaded' | 'refreshed' | 'refreshing' | 'invalidated';
|
|
11
|
+
export interface VocabCacheOperationResult {
|
|
12
|
+
identity: string;
|
|
13
|
+
status: VocabCacheOperationStatus;
|
|
14
|
+
count: number;
|
|
15
|
+
}
|
|
16
|
+
export interface VocabRuntimeCatalogEntry {
|
|
17
|
+
identity: string;
|
|
18
|
+
path: string;
|
|
19
|
+
}
|
|
20
|
+
export type VocabRuntimeCatalog = Record<string, VocabRuntimeCatalogEntry>;
|
|
21
|
+
export interface VocabOptionMapping {
|
|
22
|
+
valuePath: string;
|
|
23
|
+
labelPath: string;
|
|
24
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CompositionRuntimeHost } from '../hosts/CompositionRuntimeHost';
|
|
2
|
+
import { CompositionMountOptions, CompositionPreviewProps, CompositionSession } from '../../source/domain/types/composition-source.types';
|
|
3
|
+
import { EndgeDataMode } from '../../workspace/domain/workspace.types';
|
|
4
|
+
/**
|
|
5
|
+
* Публичный API монтирования Composition runtime sessions.
|
|
6
|
+
*/
|
|
7
|
+
export declare class EndgeComposition {
|
|
8
|
+
/**
|
|
9
|
+
* Монтирует Composition runtime и возвращает управляемую session.
|
|
10
|
+
*/
|
|
11
|
+
mount(identity: string, options?: CompositionMountOptions): Promise<CompositionSession<CompositionRuntimeHost>>;
|
|
12
|
+
}
|
|
13
|
+
export declare function materializeCompositionPreviewProps(previewProps: CompositionPreviewProps | null | undefined, dataMode?: EndgeDataMode): Record<string, unknown>;
|