@endora-commerce/platform 0.100.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +58 -0
- package/dist/cli/dispatch.d.ts +146 -0
- package/dist/cli/dispatch.d.ts.map +1 -0
- package/dist/cli/dispatch.js +259 -0
- package/dist/cli/dispatch.js.map +1 -0
- package/dist/cli/index.d.ts +58 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +58 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/cli/module-commands.d.ts +118 -0
- package/dist/cli/module-commands.d.ts.map +1 -0
- package/dist/cli/module-commands.js +120 -0
- package/dist/cli/module-commands.js.map +1 -0
- package/dist/commands/actor.d.ts +19 -0
- package/dist/commands/actor.d.ts.map +1 -0
- package/dist/commands/actor.js +45 -0
- package/dist/commands/actor.js.map +1 -0
- package/dist/commands/audit-from-context.d.ts +24 -0
- package/dist/commands/audit-from-context.d.ts.map +1 -0
- package/dist/commands/audit-from-context.js +28 -0
- package/dist/commands/audit-from-context.js.map +1 -0
- package/dist/commands/command-bus.d.ts +40 -0
- package/dist/commands/command-bus.d.ts.map +1 -0
- package/dist/commands/command-bus.js +46 -0
- package/dist/commands/command-bus.js.map +1 -0
- package/dist/commands/command.d.ts +76 -0
- package/dist/commands/command.d.ts.map +1 -0
- package/dist/commands/command.js +2 -0
- package/dist/commands/command.js.map +1 -0
- package/dist/commands/index.d.ts +65 -0
- package/dist/commands/index.d.ts.map +1 -0
- package/dist/commands/index.js +57 -0
- package/dist/commands/index.js.map +1 -0
- package/dist/commands/reversible.d.ts +66 -0
- package/dist/commands/reversible.d.ts.map +1 -0
- package/dist/commands/reversible.js +41 -0
- package/dist/commands/reversible.js.map +1 -0
- package/dist/composition/compose-app.d.ts +305 -0
- package/dist/composition/compose-app.d.ts.map +1 -0
- package/dist/composition/compose-app.js +939 -0
- package/dist/composition/compose-app.js.map +1 -0
- package/dist/composition/index.d.ts +92 -0
- package/dist/composition/index.d.ts.map +1 -0
- package/dist/composition/index.js +175 -0
- package/dist/composition/index.js.map +1 -0
- package/dist/composition/newsletter-token-secret.d.ts +19 -0
- package/dist/composition/newsletter-token-secret.d.ts.map +1 -0
- package/dist/composition/newsletter-token-secret.js +24 -0
- package/dist/composition/newsletter-token-secret.js.map +1 -0
- package/dist/composition/process-runs-workers.d.ts +17 -0
- package/dist/composition/process-runs-workers.d.ts.map +1 -0
- package/dist/composition/process-runs-workers.js +19 -0
- package/dist/composition/process-runs-workers.js.map +1 -0
- package/dist/db/baseline-migration-inventory.d.ts +15 -0
- package/dist/db/baseline-migration-inventory.d.ts.map +1 -0
- package/dist/db/baseline-migration-inventory.js +115 -0
- package/dist/db/baseline-migration-inventory.js.map +1 -0
- package/dist/db/configured-entities.d.ts +74 -0
- package/dist/db/configured-entities.d.ts.map +1 -0
- package/dist/db/configured-entities.js +20 -0
- package/dist/db/configured-entities.js.map +1 -0
- package/dist/db/configured-migrations.d.ts +199 -0
- package/dist/db/configured-migrations.d.ts.map +1 -0
- package/dist/db/configured-migrations.js +181 -0
- package/dist/db/configured-migrations.js.map +1 -0
- package/dist/db/index.d.ts +54 -0
- package/dist/db/index.d.ts.map +1 -0
- package/dist/db/index.js +54 -0
- package/dist/db/index.js.map +1 -0
- package/dist/db/migrate.d.ts +21 -0
- package/dist/db/migrate.d.ts.map +1 -0
- package/dist/db/migrate.js +48 -0
- package/dist/db/migrate.js.map +1 -0
- package/dist/db/migration-order.d.ts +159 -0
- package/dist/db/migration-order.d.ts.map +1 -0
- package/dist/db/migration-order.js +273 -0
- package/dist/db/migration-order.js.map +1 -0
- package/dist/db/mikro-orm.config.d.ts +51 -0
- package/dist/db/mikro-orm.config.d.ts.map +1 -0
- package/dist/db/mikro-orm.config.js +64 -0
- package/dist/db/mikro-orm.config.js.map +1 -0
- package/dist/db/orm.d.ts +40 -0
- package/dist/db/orm.d.ts.map +1 -0
- package/dist/db/orm.js +25 -0
- package/dist/db/orm.js.map +1 -0
- package/dist/db/platform-schema.d.ts +102 -0
- package/dist/db/platform-schema.d.ts.map +1 -0
- package/dist/db/platform-schema.js +79 -0
- package/dist/db/platform-schema.js.map +1 -0
- package/dist/db/pluralizing-naming-strategy.d.ts +16 -0
- package/dist/db/pluralizing-naming-strategy.d.ts.map +1 -0
- package/dist/db/pluralizing-naming-strategy.js +66 -0
- package/dist/db/pluralizing-naming-strategy.js.map +1 -0
- package/dist/demo/guard.d.ts +101 -0
- package/dist/demo/guard.d.ts.map +1 -0
- package/dist/demo/guard.js +168 -0
- package/dist/demo/guard.js.map +1 -0
- package/dist/demo/host-command.d.ts +133 -0
- package/dist/demo/host-command.d.ts.map +1 -0
- package/dist/demo/host-command.js +113 -0
- package/dist/demo/host-command.js.map +1 -0
- package/dist/demo/index.d.ts +82 -0
- package/dist/demo/index.d.ts.map +1 -0
- package/dist/demo/index.js +82 -0
- package/dist/demo/index.js.map +1 -0
- package/dist/demo/packages.d.ts +67 -0
- package/dist/demo/packages.d.ts.map +1 -0
- package/dist/demo/packages.js +132 -0
- package/dist/demo/packages.js.map +1 -0
- package/dist/demo/plan.d.ts +111 -0
- package/dist/demo/plan.d.ts.map +1 -0
- package/dist/demo/plan.js +74 -0
- package/dist/demo/plan.js.map +1 -0
- package/dist/demo/report.d.ts +17 -0
- package/dist/demo/report.d.ts.map +1 -0
- package/dist/demo/report.js +85 -0
- package/dist/demo/report.js.map +1 -0
- package/dist/demo/runner.d.ts +207 -0
- package/dist/demo/runner.d.ts.map +1 -0
- package/dist/demo/runner.js +169 -0
- package/dist/demo/runner.js.map +1 -0
- package/dist/demo/scope.d.ts +44 -0
- package/dist/demo/scope.d.ts.map +1 -0
- package/dist/demo/scope.js +44 -0
- package/dist/demo/scope.js.map +1 -0
- package/dist/env/index.d.ts +68 -0
- package/dist/env/index.d.ts.map +1 -0
- package/dist/env/index.js +427 -0
- package/dist/env/index.js.map +1 -0
- package/dist/events/bus.d.ts +29 -0
- package/dist/events/bus.d.ts.map +1 -0
- package/dist/events/bus.js +67 -0
- package/dist/events/bus.js.map +1 -0
- package/dist/events/index.d.ts +19 -0
- package/dist/events/index.d.ts.map +1 -0
- package/dist/events/index.js +19 -0
- package/dist/events/index.js.map +1 -0
- package/dist/http/cursor.d.ts +10 -0
- package/dist/http/cursor.d.ts.map +1 -0
- package/dist/http/cursor.js +20 -0
- package/dist/http/cursor.js.map +1 -0
- package/dist/http/error-envelope.d.ts +127 -0
- package/dist/http/error-envelope.d.ts.map +1 -0
- package/dist/http/error-envelope.js +402 -0
- package/dist/http/error-envelope.js.map +1 -0
- package/dist/http/health.d.ts +88 -0
- package/dist/http/health.d.ts.map +1 -0
- package/dist/http/health.js +77 -0
- package/dist/http/health.js.map +1 -0
- package/dist/http/index.d.ts +50 -0
- package/dist/http/index.d.ts.map +1 -0
- package/dist/http/index.js +50 -0
- package/dist/http/index.js.map +1 -0
- package/dist/http/interceptors/dispatch.d.ts +14 -0
- package/dist/http/interceptors/dispatch.d.ts.map +1 -0
- package/dist/http/interceptors/dispatch.js +113 -0
- package/dist/http/interceptors/dispatch.js.map +1 -0
- package/dist/http/interceptors/index.d.ts +6 -0
- package/dist/http/interceptors/index.d.ts.map +1 -0
- package/dist/http/interceptors/index.js +5 -0
- package/dist/http/interceptors/index.js.map +1 -0
- package/dist/http/interceptors/registry.d.ts +44 -0
- package/dist/http/interceptors/registry.d.ts.map +1 -0
- package/dist/http/interceptors/registry.js +123 -0
- package/dist/http/interceptors/registry.js.map +1 -0
- package/dist/http/interceptors/route-table.d.ts +33 -0
- package/dist/http/interceptors/route-table.d.ts.map +1 -0
- package/dist/http/interceptors/route-table.js +39 -0
- package/dist/http/interceptors/route-table.js.map +1 -0
- package/dist/http/interceptors/types.d.ts +101 -0
- package/dist/http/interceptors/types.d.ts.map +1 -0
- package/dist/http/interceptors/types.js +2 -0
- package/dist/http/interceptors/types.js.map +1 -0
- package/dist/http/interceptors/validation.d.ts +22 -0
- package/dist/http/interceptors/validation.d.ts.map +1 -0
- package/dist/http/interceptors/validation.js +39 -0
- package/dist/http/interceptors/validation.js.map +1 -0
- package/dist/http/logger.d.ts +9 -0
- package/dist/http/logger.d.ts.map +1 -0
- package/dist/http/logger.js +25 -0
- package/dist/http/logger.js.map +1 -0
- package/dist/http/openapi.d.ts +21 -0
- package/dist/http/openapi.d.ts.map +1 -0
- package/dist/http/openapi.js +114 -0
- package/dist/http/openapi.js.map +1 -0
- package/dist/http/product-audience.d.ts +78 -0
- package/dist/http/product-audience.d.ts.map +1 -0
- package/dist/http/product-audience.js +92 -0
- package/dist/http/product-audience.js.map +1 -0
- package/dist/http/request-actor.d.ts +82 -0
- package/dist/http/request-actor.d.ts.map +1 -0
- package/dist/http/request-actor.js +2 -0
- package/dist/http/request-actor.js.map +1 -0
- package/dist/http/server.d.ts +60 -0
- package/dist/http/server.d.ts.map +1 -0
- package/dist/http/server.js +117 -0
- package/dist/http/server.js.map +1 -0
- package/dist/http/storefront-revalidator.d.ts +29 -0
- package/dist/http/storefront-revalidator.d.ts.map +1 -0
- package/dist/http/storefront-revalidator.js +34 -0
- package/dist/http/storefront-revalidator.js.map +1 -0
- package/dist/http/test-actor-carrier.d.ts +28 -0
- package/dist/http/test-actor-carrier.d.ts.map +1 -0
- package/dist/http/test-actor-carrier.js +10 -0
- package/dist/http/test-actor-carrier.js.map +1 -0
- package/dist/http/trusted-proxy.d.ts +48 -0
- package/dist/http/trusted-proxy.d.ts.map +1 -0
- package/dist/http/trusted-proxy.js +136 -0
- package/dist/http/trusted-proxy.js.map +1 -0
- package/dist/kernel/audit/audit-log-entry.entity.d.ts +33 -0
- package/dist/kernel/audit/audit-log-entry.entity.d.ts.map +1 -0
- package/dist/kernel/audit/audit-log-entry.entity.js +102 -0
- package/dist/kernel/audit/audit-log-entry.entity.js.map +1 -0
- package/dist/kernel/audit/audit-log-service.d.ts +63 -0
- package/dist/kernel/audit/audit-log-service.d.ts.map +1 -0
- package/dist/kernel/audit/audit-log-service.js +107 -0
- package/dist/kernel/audit/audit-log-service.js.map +1 -0
- package/dist/kernel/cache/in-process-cache-registry.d.ts +93 -0
- package/dist/kernel/cache/in-process-cache-registry.d.ts.map +1 -0
- package/dist/kernel/cache/in-process-cache-registry.js +78 -0
- package/dist/kernel/cache/in-process-cache-registry.js.map +1 -0
- package/dist/kernel/cache/shared-drop-marks.d.ts +39 -0
- package/dist/kernel/cache/shared-drop-marks.d.ts.map +1 -0
- package/dist/kernel/cache/shared-drop-marks.js +68 -0
- package/dist/kernel/cache/shared-drop-marks.js.map +1 -0
- package/dist/kernel/compose.d.ts +234 -0
- package/dist/kernel/compose.d.ts.map +1 -0
- package/dist/kernel/compose.js +279 -0
- package/dist/kernel/compose.js.map +1 -0
- package/dist/kernel/container.d.ts +95 -0
- package/dist/kernel/container.d.ts.map +1 -0
- package/dist/kernel/container.js +90 -0
- package/dist/kernel/container.js.map +1 -0
- package/dist/kernel/contribution-sinks.d.ts +106 -0
- package/dist/kernel/contribution-sinks.d.ts.map +1 -0
- package/dist/kernel/contribution-sinks.js +153 -0
- package/dist/kernel/contribution-sinks.js.map +1 -0
- package/dist/kernel/crypto/password-hasher.d.ts +3 -0
- package/dist/kernel/crypto/password-hasher.d.ts.map +1 -0
- package/dist/kernel/crypto/password-hasher.js +44 -0
- package/dist/kernel/crypto/password-hasher.js.map +1 -0
- package/dist/kernel/i18n/error-envelope-options.d.ts +56 -0
- package/dist/kernel/i18n/error-envelope-options.d.ts.map +1 -0
- package/dist/kernel/i18n/error-envelope-options.js +46 -0
- package/dist/kernel/i18n/error-envelope-options.js.map +1 -0
- package/dist/kernel/i18n/error-translation.d.ts +144 -0
- package/dist/kernel/i18n/error-translation.d.ts.map +1 -0
- package/dist/kernel/i18n/error-translation.js +84 -0
- package/dist/kernel/i18n/error-translation.js.map +1 -0
- package/dist/kernel/i18n/request-language.d.ts +80 -0
- package/dist/kernel/i18n/request-language.d.ts.map +1 -0
- package/dist/kernel/i18n/request-language.js +168 -0
- package/dist/kernel/i18n/request-language.js.map +1 -0
- package/dist/kernel/index.d.ts +142 -0
- package/dist/kernel/index.d.ts.map +1 -0
- package/dist/kernel/index.js +160 -0
- package/dist/kernel/index.js.map +1 -0
- package/dist/kernel/lazy-port.d.ts +59 -0
- package/dist/kernel/lazy-port.d.ts.map +1 -0
- package/dist/kernel/lazy-port.js +78 -0
- package/dist/kernel/lazy-port.js.map +1 -0
- package/dist/kernel/lifecycle/activation-resolver.d.ts +63 -0
- package/dist/kernel/lifecycle/activation-resolver.d.ts.map +1 -0
- package/dist/kernel/lifecycle/activation-resolver.js +70 -0
- package/dist/kernel/lifecycle/activation-resolver.js.map +1 -0
- package/dist/kernel/lifecycle/capability-registry.d.ts +145 -0
- package/dist/kernel/lifecycle/capability-registry.d.ts.map +1 -0
- package/dist/kernel/lifecycle/capability-registry.js +170 -0
- package/dist/kernel/lifecycle/capability-registry.js.map +1 -0
- package/dist/kernel/lifecycle/effective-state.d.ts +126 -0
- package/dist/kernel/lifecycle/effective-state.d.ts.map +1 -0
- package/dist/kernel/lifecycle/effective-state.js +111 -0
- package/dist/kernel/lifecycle/effective-state.js.map +1 -0
- package/dist/kernel/lifecycle/module-registration.entity.d.ts +57 -0
- package/dist/kernel/lifecycle/module-registration.entity.d.ts.map +1 -0
- package/dist/kernel/lifecycle/module-registration.entity.js +111 -0
- package/dist/kernel/lifecycle/module-registration.entity.js.map +1 -0
- package/dist/kernel/lifecycle/plugin-helpers.d.ts +165 -0
- package/dist/kernel/lifecycle/plugin-helpers.d.ts.map +1 -0
- package/dist/kernel/lifecycle/plugin-helpers.js +395 -0
- package/dist/kernel/lifecycle/plugin-helpers.js.map +1 -0
- package/dist/kernel/lifecycle/registry-cache.d.ts +318 -0
- package/dist/kernel/lifecycle/registry-cache.d.ts.map +1 -0
- package/dist/kernel/lifecycle/registry-cache.js +509 -0
- package/dist/kernel/lifecycle/registry-cache.js.map +1 -0
- package/dist/kernel/lifecycle/required-modules.d.ts +137 -0
- package/dist/kernel/lifecycle/required-modules.d.ts.map +1 -0
- package/dist/kernel/lifecycle/required-modules.js +80 -0
- package/dist/kernel/lifecycle/required-modules.js.map +1 -0
- package/dist/kernel/lifecycle/unique-module-ids.d.ts +58 -0
- package/dist/kernel/lifecycle/unique-module-ids.d.ts.map +1 -0
- package/dist/kernel/lifecycle/unique-module-ids.js +82 -0
- package/dist/kernel/lifecycle/unique-module-ids.js.map +1 -0
- package/dist/kernel/logging.d.ts +116 -0
- package/dist/kernel/logging.d.ts.map +1 -0
- package/dist/kernel/logging.js +71 -0
- package/dist/kernel/logging.js.map +1 -0
- package/dist/kernel/module-context.d.ts +563 -0
- package/dist/kernel/module-context.d.ts.map +1 -0
- package/dist/kernel/module-context.js +670 -0
- package/dist/kernel/module-context.js.map +1 -0
- package/dist/kernel/ports/audit.d.ts +115 -0
- package/dist/kernel/ports/audit.d.ts.map +1 -0
- package/dist/kernel/ports/audit.js +2 -0
- package/dist/kernel/ports/audit.js.map +1 -0
- package/dist/kernel/ports/organizations.d.ts +56 -0
- package/dist/kernel/ports/organizations.d.ts.map +1 -0
- package/dist/kernel/ports/organizations.js +2 -0
- package/dist/kernel/ports/organizations.js.map +1 -0
- package/dist/kernel/ports/provide.d.ts +14 -0
- package/dist/kernel/ports/provide.d.ts.map +1 -0
- package/dist/kernel/ports/provide.js +50 -0
- package/dist/kernel/ports/provide.js.map +1 -0
- package/dist/kernel/ports/require-admin.d.ts +61 -0
- package/dist/kernel/ports/require-admin.d.ts.map +1 -0
- package/dist/kernel/ports/require-admin.js +2 -0
- package/dist/kernel/ports/require-admin.js.map +1 -0
- package/dist/kernel/ports/require-customer.d.ts +17 -0
- package/dist/kernel/ports/require-customer.d.ts.map +1 -0
- package/dist/kernel/ports/require-customer.js +2 -0
- package/dist/kernel/ports/require-customer.js.map +1 -0
- package/dist/kernel/ports/sales-channel.d.ts +84 -0
- package/dist/kernel/ports/sales-channel.d.ts.map +1 -0
- package/dist/kernel/ports/sales-channel.js +2 -0
- package/dist/kernel/ports/sales-channel.js.map +1 -0
- package/dist/kernel/ports/settings.d.ts +59 -0
- package/dist/kernel/ports/settings.d.ts.map +1 -0
- package/dist/kernel/ports/settings.js +2 -0
- package/dist/kernel/ports/settings.js.map +1 -0
- package/dist/kernel/public-api-base-url.d.ts +98 -0
- package/dist/kernel/public-api-base-url.d.ts.map +1 -0
- package/dist/kernel/public-api-base-url.js +144 -0
- package/dist/kernel/public-api-base-url.js.map +1 -0
- package/dist/kernel/request-scope-hook.d.ts +63 -0
- package/dist/kernel/request-scope-hook.d.ts.map +1 -0
- package/dist/kernel/request-scope-hook.js +67 -0
- package/dist/kernel/request-scope-hook.js.map +1 -0
- package/dist/kernel/sales-channels/channel-bridge-registry.d.ts +109 -0
- package/dist/kernel/sales-channels/channel-bridge-registry.d.ts.map +1 -0
- package/dist/kernel/sales-channels/channel-bridge-registry.js +75 -0
- package/dist/kernel/sales-channels/channel-bridge-registry.js.map +1 -0
- package/dist/kernel/sales-channels/compose.d.ts +69 -0
- package/dist/kernel/sales-channels/compose.d.ts.map +1 -0
- package/dist/kernel/sales-channels/compose.js +43 -0
- package/dist/kernel/sales-channels/compose.js.map +1 -0
- package/dist/kernel/sales-channels/default-channel-reconciler.d.ts +66 -0
- package/dist/kernel/sales-channels/default-channel-reconciler.d.ts.map +1 -0
- package/dist/kernel/sales-channels/default-channel-reconciler.js +91 -0
- package/dist/kernel/sales-channels/default-channel-reconciler.js.map +1 -0
- package/dist/kernel/sales-channels/no-system-default-channel.error.d.ts +28 -0
- package/dist/kernel/sales-channels/no-system-default-channel.error.d.ts.map +1 -0
- package/dist/kernel/sales-channels/no-system-default-channel.error.js +33 -0
- package/dist/kernel/sales-channels/no-system-default-channel.error.js.map +1 -0
- package/dist/kernel/sales-channels/request-channel-assortment.d.ts +72 -0
- package/dist/kernel/sales-channels/request-channel-assortment.d.ts.map +1 -0
- package/dist/kernel/sales-channels/request-channel-assortment.js +83 -0
- package/dist/kernel/sales-channels/request-channel-assortment.js.map +1 -0
- package/dist/kernel/sales-channels/sales-channel-membership.service.d.ts +157 -0
- package/dist/kernel/sales-channels/sales-channel-membership.service.d.ts.map +1 -0
- package/dist/kernel/sales-channels/sales-channel-membership.service.js +302 -0
- package/dist/kernel/sales-channels/sales-channel-membership.service.js.map +1 -0
- package/dist/kernel/sales-channels/sales-channel-resolver.middleware.d.ts +76 -0
- package/dist/kernel/sales-channels/sales-channel-resolver.middleware.d.ts.map +1 -0
- package/dist/kernel/sales-channels/sales-channel-resolver.middleware.js +184 -0
- package/dist/kernel/sales-channels/sales-channel-resolver.middleware.js.map +1 -0
- package/dist/kernel/sales-channels/sales-channel-resolver.service.d.ts +82 -0
- package/dist/kernel/sales-channels/sales-channel-resolver.service.d.ts.map +1 -0
- package/dist/kernel/sales-channels/sales-channel-resolver.service.js +126 -0
- package/dist/kernel/sales-channels/sales-channel-resolver.service.js.map +1 -0
- package/dist/kernel/sales-channels/sales-channel.entity.d.ts +50 -0
- package/dist/kernel/sales-channels/sales-channel.entity.d.ts.map +1 -0
- package/dist/kernel/sales-channels/sales-channel.entity.js +132 -0
- package/dist/kernel/sales-channels/sales-channel.entity.js.map +1 -0
- package/dist/kernel/sales-channels/sales-channels-cache.d.ts +170 -0
- package/dist/kernel/sales-channels/sales-channels-cache.d.ts.map +1 -0
- package/dist/kernel/sales-channels/sales-channels-cache.js +243 -0
- package/dist/kernel/sales-channels/sales-channels-cache.js.map +1 -0
- package/dist/kernel/scope.d.ts +153 -0
- package/dist/kernel/scope.d.ts.map +1 -0
- package/dist/kernel/scope.js +172 -0
- package/dist/kernel/scope.js.map +1 -0
- package/dist/kernel/settings/compose.d.ts +49 -0
- package/dist/kernel/settings/compose.d.ts.map +1 -0
- package/dist/kernel/settings/compose.js +21 -0
- package/dist/kernel/settings/compose.js.map +1 -0
- package/dist/kernel/settings/manifest-reconciler.d.ts +78 -0
- package/dist/kernel/settings/manifest-reconciler.d.ts.map +1 -0
- package/dist/kernel/settings/manifest-reconciler.js +343 -0
- package/dist/kernel/settings/manifest-reconciler.js.map +1 -0
- package/dist/kernel/settings/secret-value-codec.d.ts +52 -0
- package/dist/kernel/settings/secret-value-codec.d.ts.map +1 -0
- package/dist/kernel/settings/secret-value-codec.js +102 -0
- package/dist/kernel/settings/secret-value-codec.js.map +1 -0
- package/dist/kernel/settings/setting-group.entity.d.ts +25 -0
- package/dist/kernel/settings/setting-group.entity.d.ts.map +1 -0
- package/dist/kernel/settings/setting-group.entity.js +79 -0
- package/dist/kernel/settings/setting-group.entity.js.map +1 -0
- package/dist/kernel/settings/setting-value.entity.d.ts +23 -0
- package/dist/kernel/settings/setting-value.entity.d.ts.map +1 -0
- package/dist/kernel/settings/setting-value.entity.js +66 -0
- package/dist/kernel/settings/setting-value.entity.js.map +1 -0
- package/dist/kernel/settings/setting.entity.d.ts +56 -0
- package/dist/kernel/settings/setting.entity.d.ts.map +1 -0
- package/dist/kernel/settings/setting.entity.js +147 -0
- package/dist/kernel/settings/setting.entity.js.map +1 -0
- package/dist/kernel/settings/settings-cache.d.ts +158 -0
- package/dist/kernel/settings/settings-cache.d.ts.map +1 -0
- package/dist/kernel/settings/settings-cache.js +253 -0
- package/dist/kernel/settings/settings-cache.js.map +1 -0
- package/dist/kernel/settings/settings.service.d.ts +142 -0
- package/dist/kernel/settings/settings.service.d.ts.map +1 -0
- package/dist/kernel/settings/settings.service.js +294 -0
- package/dist/kernel/settings/settings.service.js.map +1 -0
- package/dist/lifecycle/backend.d.ts +51 -0
- package/dist/lifecycle/backend.d.ts.map +1 -0
- package/dist/lifecycle/backend.js +40 -0
- package/dist/lifecycle/backend.js.map +1 -0
- package/dist/lifecycle/commands/activation.commands.d.ts +97 -0
- package/dist/lifecycle/commands/activation.commands.d.ts.map +1 -0
- package/dist/lifecycle/commands/activation.commands.js +142 -0
- package/dist/lifecycle/commands/activation.commands.js.map +1 -0
- package/dist/lifecycle/commands/disable.d.ts +3 -0
- package/dist/lifecycle/commands/disable.d.ts.map +1 -0
- package/dist/lifecycle/commands/disable.js +126 -0
- package/dist/lifecycle/commands/disable.js.map +1 -0
- package/dist/lifecycle/commands/enable.d.ts +3 -0
- package/dist/lifecycle/commands/enable.d.ts.map +1 -0
- package/dist/lifecycle/commands/enable.js +102 -0
- package/dist/lifecycle/commands/enable.js.map +1 -0
- package/dist/lifecycle/commands/install.d.ts +3 -0
- package/dist/lifecycle/commands/install.d.ts.map +1 -0
- package/dist/lifecycle/commands/install.js +263 -0
- package/dist/lifecycle/commands/install.js.map +1 -0
- package/dist/lifecycle/commands/operator-entry.d.ts +104 -0
- package/dist/lifecycle/commands/operator-entry.d.ts.map +1 -0
- package/dist/lifecycle/commands/operator-entry.js +127 -0
- package/dist/lifecycle/commands/operator-entry.js.map +1 -0
- package/dist/lifecycle/commands/operator-runtime.d.ts +147 -0
- package/dist/lifecycle/commands/operator-runtime.d.ts.map +1 -0
- package/dist/lifecycle/commands/operator-runtime.js +40 -0
- package/dist/lifecycle/commands/operator-runtime.js.map +1 -0
- package/dist/lifecycle/commands/status.d.ts +3 -0
- package/dist/lifecycle/commands/status.d.ts.map +1 -0
- package/dist/lifecycle/commands/status.js +108 -0
- package/dist/lifecycle/commands/status.js.map +1 -0
- package/dist/lifecycle/commands/uninstall.d.ts +3 -0
- package/dist/lifecycle/commands/uninstall.d.ts.map +1 -0
- package/dist/lifecycle/commands/uninstall.js +223 -0
- package/dist/lifecycle/commands/uninstall.js.map +1 -0
- package/dist/lifecycle/divergence-declaration.d.ts +74 -0
- package/dist/lifecycle/divergence-declaration.d.ts.map +1 -0
- package/dist/lifecycle/divergence-declaration.js +92 -0
- package/dist/lifecycle/divergence-declaration.js.map +1 -0
- package/dist/lifecycle/i18n/en.json +4 -0
- package/dist/lifecycle/i18n/pl.json +4 -0
- package/dist/lifecycle/index.d.ts +110 -0
- package/dist/lifecycle/index.d.ts.map +1 -0
- package/dist/lifecycle/index.js +189 -0
- package/dist/lifecycle/index.js.map +1 -0
- package/dist/lifecycle/manifest-registry.d.ts +244 -0
- package/dist/lifecycle/manifest-registry.d.ts.map +1 -0
- package/dist/lifecycle/manifest-registry.js +223 -0
- package/dist/lifecycle/manifest-registry.js.map +1 -0
- package/dist/lifecycle/manifest.d.ts +166 -0
- package/dist/lifecycle/manifest.d.ts.map +1 -0
- package/dist/lifecycle/manifest.js +121 -0
- package/dist/lifecycle/manifest.js.map +1 -0
- package/dist/lifecycle/plugin.d.ts +56 -0
- package/dist/lifecycle/plugin.d.ts.map +1 -0
- package/dist/lifecycle/plugin.js +59 -0
- package/dist/lifecycle/plugin.js.map +1 -0
- package/dist/lifecycle/resident.d.ts +16 -0
- package/dist/lifecycle/resident.d.ts.map +1 -0
- package/dist/lifecycle/resident.js +59 -0
- package/dist/lifecycle/resident.js.map +1 -0
- package/dist/lifecycle/routes.admin.d.ts +57 -0
- package/dist/lifecycle/routes.admin.d.ts.map +1 -0
- package/dist/lifecycle/routes.admin.js +162 -0
- package/dist/lifecycle/routes.admin.js.map +1 -0
- package/dist/lifecycle/routes.storefront.d.ts +26 -0
- package/dist/lifecycle/routes.storefront.d.ts.map +1 -0
- package/dist/lifecycle/routes.storefront.js +36 -0
- package/dist/lifecycle/routes.storefront.js.map +1 -0
- package/dist/lifecycle/services/deactivation-ledger.d.ts +216 -0
- package/dist/lifecycle/services/deactivation-ledger.d.ts.map +1 -0
- package/dist/lifecycle/services/deactivation-ledger.js +171 -0
- package/dist/lifecycle/services/deactivation-ledger.js.map +1 -0
- package/dist/lifecycle/services/dep-graph.d.ts +119 -0
- package/dist/lifecycle/services/dep-graph.d.ts.map +1 -0
- package/dist/lifecycle/services/dep-graph.js +334 -0
- package/dist/lifecycle/services/dep-graph.js.map +1 -0
- package/dist/lifecycle/services/gating-graph.d.ts +164 -0
- package/dist/lifecycle/services/gating-graph.d.ts.map +1 -0
- package/dist/lifecycle/services/gating-graph.js +203 -0
- package/dist/lifecycle/services/gating-graph.js.map +1 -0
- package/dist/lifecycle/services/lock.d.ts +27 -0
- package/dist/lifecycle/services/lock.d.ts.map +1 -0
- package/dist/lifecycle/services/lock.js +82 -0
- package/dist/lifecycle/services/lock.js.map +1 -0
- package/dist/lifecycle/services/manifest-loader.d.ts +125 -0
- package/dist/lifecycle/services/manifest-loader.d.ts.map +1 -0
- package/dist/lifecycle/services/manifest-loader.js +210 -0
- package/dist/lifecycle/services/manifest-loader.js.map +1 -0
- package/dist/lifecycle/services/migration-ownership.d.ts +36 -0
- package/dist/lifecycle/services/migration-ownership.d.ts.map +1 -0
- package/dist/lifecycle/services/migration-ownership.js +15 -0
- package/dist/lifecycle/services/migration-ownership.js.map +1 -0
- package/dist/lifecycle/services/module-id-claims.d.ts +38 -0
- package/dist/lifecycle/services/module-id-claims.d.ts.map +1 -0
- package/dist/lifecycle/services/module-id-claims.js +123 -0
- package/dist/lifecycle/services/module-id-claims.js.map +1 -0
- package/dist/lifecycle/services/module-origin.d.ts +55 -0
- package/dist/lifecycle/services/module-origin.d.ts.map +1 -0
- package/dist/lifecycle/services/module-origin.js +47 -0
- package/dist/lifecycle/services/module-origin.js.map +1 -0
- package/dist/lifecycle/services/orchestrator.d.ts +235 -0
- package/dist/lifecycle/services/orchestrator.d.ts.map +1 -0
- package/dist/lifecycle/services/orchestrator.js +954 -0
- package/dist/lifecycle/services/orchestrator.js.map +1 -0
- package/dist/lifecycle/services/presence-load.d.ts +281 -0
- package/dist/lifecycle/services/presence-load.d.ts.map +1 -0
- package/dist/lifecycle/services/presence-load.js +437 -0
- package/dist/lifecycle/services/presence-load.js.map +1 -0
- package/dist/lifecycle/services/static-registry.d.ts +47 -0
- package/dist/lifecycle/services/static-registry.d.ts.map +1 -0
- package/dist/lifecycle/services/static-registry.js +41 -0
- package/dist/lifecycle/services/static-registry.js.map +1 -0
- package/dist/migrations/20260424T165847_core_foundation_init.d.ts +25 -0
- package/dist/migrations/20260424T165847_core_foundation_init.d.ts.map +1 -0
- package/dist/migrations/20260424T165847_core_foundation_init.js +238 -0
- package/dist/migrations/20260424T165847_core_foundation_init.js.map +1 -0
- package/dist/migrations/20260425T050720_core_commerce_init.d.ts +19 -0
- package/dist/migrations/20260425T050720_core_commerce_init.d.ts.map +1 -0
- package/dist/migrations/20260425T050720_core_commerce_init.js +200 -0
- package/dist/migrations/20260425T050720_core_commerce_init.js.map +1 -0
- package/dist/migrations/20260430T101450_core_settings_init.d.ts +25 -0
- package/dist/migrations/20260430T101450_core_settings_init.d.ts.map +1 -0
- package/dist/migrations/20260430T101450_core_settings_init.js +113 -0
- package/dist/migrations/20260430T101450_core_settings_init.js.map +1 -0
- package/dist/migrations/20260430T170044_core_sales_channels_promote.d.ts +67 -0
- package/dist/migrations/20260430T170044_core_sales_channels_promote.d.ts.map +1 -0
- package/dist/migrations/20260430T170044_core_sales_channels_promote.js +101 -0
- package/dist/migrations/20260430T170044_core_sales_channels_promote.js.map +1 -0
- package/dist/migrations/20260506T200657_core_module_lifecycle_init.d.ts +21 -0
- package/dist/migrations/20260506T200657_core_module_lifecycle_init.d.ts.map +1 -0
- package/dist/migrations/20260506T200657_core_module_lifecycle_init.js +41 -0
- package/dist/migrations/20260506T200657_core_module_lifecycle_init.js.map +1 -0
- package/dist/migrations/20260514T111329_core_settings_global_value.d.ts +30 -0
- package/dist/migrations/20260514T111329_core_settings_global_value.d.ts.map +1 -0
- package/dist/migrations/20260514T111329_core_settings_global_value.js +34 -0
- package/dist/migrations/20260514T111329_core_settings_global_value.js.map +1 -0
- package/dist/migrations/20260611T140411_core_settings_secret_value_type.d.ts +26 -0
- package/dist/migrations/20260611T140411_core_settings_secret_value_type.d.ts.map +1 -0
- package/dist/migrations/20260611T140411_core_settings_secret_value_type.js +63 -0
- package/dist/migrations/20260611T140411_core_settings_secret_value_type.js.map +1 -0
- package/dist/migrations/20260611T140419_core_settings_enum_options.d.ts +19 -0
- package/dist/migrations/20260611T140419_core_settings_enum_options.d.ts.map +1 -0
- package/dist/migrations/20260611T140419_core_settings_enum_options.js +23 -0
- package/dist/migrations/20260611T140419_core_settings_enum_options.js.map +1 -0
- package/dist/migrations/20260629T090100_core_settings_hidden_flag.d.ts +20 -0
- package/dist/migrations/20260629T090100_core_settings_hidden_flag.d.ts.map +1 -0
- package/dist/migrations/20260629T090100_core_settings_hidden_flag.js +24 -0
- package/dist/migrations/20260629T090100_core_settings_hidden_flag.js.map +1 -0
- package/dist/migrations/20260717T134752_core_tenant_scope_indexes.d.ts +27 -0
- package/dist/migrations/20260717T134752_core_tenant_scope_indexes.d.ts.map +1 -0
- package/dist/migrations/20260717T134752_core_tenant_scope_indexes.js +32 -0
- package/dist/migrations/20260717T134752_core_tenant_scope_indexes.js.map +1 -0
- package/dist/migrations/20260721T011510_core_settings_credential_ref_value_type.d.ts +24 -0
- package/dist/migrations/20260721T011510_core_settings_credential_ref_value_type.d.ts.map +1 -0
- package/dist/migrations/20260721T011510_core_settings_credential_ref_value_type.js +57 -0
- package/dist/migrations/20260721T011510_core_settings_credential_ref_value_type.js.map +1 -0
- package/dist/migrations/20260816T203339_core_retire_core_activation_settings.d.ts +39 -0
- package/dist/migrations/20260816T203339_core_retire_core_activation_settings.d.ts.map +1 -0
- package/dist/migrations/20260816T203339_core_retire_core_activation_settings.js +59 -0
- package/dist/migrations/20260816T203339_core_retire_core_activation_settings.js.map +1 -0
- package/dist/migrations/20260919T101500_core_module_registrations_boot_converged.d.ts +34 -0
- package/dist/migrations/20260919T101500_core_module_registrations_boot_converged.d.ts.map +1 -0
- package/dist/migrations/20260919T101500_core_module_registrations_boot_converged.js +38 -0
- package/dist/migrations/20260919T101500_core_module_registrations_boot_converged.js.map +1 -0
- package/dist/migrations/baseline-migrations.generated.d.ts +2 -0
- package/dist/migrations/baseline-migrations.generated.d.ts.map +1 -0
- package/dist/migrations/baseline-migrations.generated.js +136 -0
- package/dist/migrations/baseline-migrations.generated.js.map +1 -0
- package/dist/migrations/index.d.ts +62 -0
- package/dist/migrations/index.d.ts.map +1 -0
- package/dist/migrations/index.js +75 -0
- package/dist/migrations/index.js.map +1 -0
- package/dist/overlay/deployment-roots.d.ts +37 -0
- package/dist/overlay/deployment-roots.d.ts.map +1 -0
- package/dist/overlay/deployment-roots.js +90 -0
- package/dist/overlay/deployment-roots.js.map +1 -0
- package/dist/overlay/index.d.ts +62 -0
- package/dist/overlay/index.d.ts.map +1 -0
- package/dist/overlay/index.js +62 -0
- package/dist/overlay/index.js.map +1 -0
- package/dist/overlay/overlay-runtime.d.ts +173 -0
- package/dist/overlay/overlay-runtime.d.ts.map +1 -0
- package/dist/overlay/overlay-runtime.js +281 -0
- package/dist/overlay/overlay-runtime.js.map +1 -0
- package/dist/overlay/resolve-overlay.d.ts +41 -0
- package/dist/overlay/resolve-overlay.d.ts.map +1 -0
- package/dist/overlay/resolve-overlay.js +72 -0
- package/dist/overlay/resolve-overlay.js.map +1 -0
- package/dist/packages/index.d.ts +57 -0
- package/dist/packages/index.d.ts.map +1 -0
- package/dist/packages/index.js +57 -0
- package/dist/packages/index.js.map +1 -0
- package/dist/packages/installed-packages.d.ts +79 -0
- package/dist/packages/installed-packages.d.ts.map +1 -0
- package/dist/packages/installed-packages.js +312 -0
- package/dist/packages/installed-packages.js.map +1 -0
- package/dist/packages/package-entity-lookup.d.ts +120 -0
- package/dist/packages/package-entity-lookup.d.ts.map +1 -0
- package/dist/packages/package-entity-lookup.js +17 -0
- package/dist/packages/package-entity-lookup.js.map +1 -0
- package/dist/packages/package-runtime.d.ts +177 -0
- package/dist/packages/package-runtime.d.ts.map +1 -0
- package/dist/packages/package-runtime.js +386 -0
- package/dist/packages/package-runtime.js.map +1 -0
- package/dist/tenancy/derived-scope.d.ts +43 -0
- package/dist/tenancy/derived-scope.d.ts.map +1 -0
- package/dist/tenancy/derived-scope.js +76 -0
- package/dist/tenancy/derived-scope.js.map +1 -0
- package/dist/tenancy/escape-hatch.d.ts +30 -0
- package/dist/tenancy/escape-hatch.d.ts.map +1 -0
- package/dist/tenancy/escape-hatch.js +50 -0
- package/dist/tenancy/escape-hatch.js.map +1 -0
- package/dist/tenancy/filters.d.ts +87 -0
- package/dist/tenancy/filters.d.ts.map +1 -0
- package/dist/tenancy/filters.js +126 -0
- package/dist/tenancy/filters.js.map +1 -0
- package/dist/tenancy/index.d.ts +63 -0
- package/dist/tenancy/index.d.ts.map +1 -0
- package/dist/tenancy/index.js +61 -0
- package/dist/tenancy/index.js.map +1 -0
- package/dist/tenancy/org-scoped.decorator.d.ts +150 -0
- package/dist/tenancy/org-scoped.decorator.d.ts.map +1 -0
- package/dist/tenancy/org-scoped.decorator.js +339 -0
- package/dist/tenancy/org-scoped.decorator.js.map +1 -0
- package/dist/tenancy/org-write-guard.d.ts +106 -0
- package/dist/tenancy/org-write-guard.d.ts.map +1 -0
- package/dist/tenancy/org-write-guard.js +141 -0
- package/dist/tenancy/org-write-guard.js.map +1 -0
- package/dist/tenancy/resolve-tenant-context.d.ts +91 -0
- package/dist/tenancy/resolve-tenant-context.d.ts.map +1 -0
- package/dist/tenancy/resolve-tenant-context.js +85 -0
- package/dist/tenancy/resolve-tenant-context.js.map +1 -0
- package/dist/tenancy/scoped-em.d.ts +10 -0
- package/dist/tenancy/scoped-em.d.ts.map +1 -0
- package/dist/tenancy/scoped-em.js +11 -0
- package/dist/tenancy/scoped-em.js.map +1 -0
- package/dist/tenancy/tenant-context.d.ts +154 -0
- package/dist/tenancy/tenant-context.d.ts.map +1 -0
- package/dist/tenancy/tenant-context.js +109 -0
- package/dist/tenancy/tenant-context.js.map +1 -0
- package/package.json +123 -0
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `./lifecycle` — the platform's operator surface, and the third subpath that is
|
|
3
|
+
* **declared and not published** (`specs/115-lifecycle-container-move/`, D115-4;
|
|
4
|
+
* `contracts/operator-half.md` §5).
|
|
5
|
+
*
|
|
6
|
+
* ## Why it exists at all
|
|
7
|
+
*
|
|
8
|
+
* `_lifecycle` is one module whose sources sit in two artefacts. The manifest,
|
|
9
|
+
* the routes, the Commands, the orchestrator and eight services are in
|
|
10
|
+
* `packages/platform/src/lifecycle/`; the manifest registry, the divergence
|
|
11
|
+
* loader and the five `module:*` commands are still in the application. The
|
|
12
|
+
* application reaches the first half through twelve re-export shims, and each of
|
|
13
|
+
* those shims forwards to `../../../../packages/platform/dist/lifecycle/…` — a
|
|
14
|
+
* relative path into a sibling package's build output, which resolves in this
|
|
15
|
+
* checkout and in **no client instance**. `manifest-index.generated.ts` carries
|
|
16
|
+
* the same reach for `_lifecycle`'s manifest, which is the sharpest form of it:
|
|
17
|
+
* the artefact whose whole job is to register the modules a build ships cannot
|
|
18
|
+
* register `_lifecycle` anywhere but here.
|
|
19
|
+
*
|
|
20
|
+
* This barrel is the address those reaches are drained onto. It is one subpath
|
|
21
|
+
* for one surface, deliberately — a second, `./lifecycle/commands`, would be a
|
|
22
|
+
* second address for one thing, and a consumer that wants one symbol imports one
|
|
23
|
+
* symbol.
|
|
24
|
+
*
|
|
25
|
+
* ## The rule it carries: no module may name it, ever
|
|
26
|
+
*
|
|
27
|
+
* D-160.11 refused to make `_lifecycle` its own package on the ground that it
|
|
28
|
+
* would be *"a public API with one consumer forever"*. That is an argument
|
|
29
|
+
* against **publishing** a surface and not against giving it an address, which
|
|
30
|
+
* is the distinction this subpath is built on: it is declared by the `exports`
|
|
31
|
+
* map, so `node` and `tsc` resolve it for the host, its five entry points and
|
|
32
|
+
* the test kit, and it is carried by no *published* barrel, so
|
|
33
|
+
* `check:platform-surface` reports a module naming it as `host-internal-subpath`
|
|
34
|
+
* — with no change to that check, because `declaredSubpaths` is read off the
|
|
35
|
+
* manifest rather than written down.
|
|
36
|
+
*
|
|
37
|
+
* `PUBLISHED_SUBPATHS` therefore stays at five, and that is not an omission to
|
|
38
|
+
* be tidied later. `PlatformSurface.published` is keyed by target file with no
|
|
39
|
+
* subpath dimension, so a sixth entry there would publish
|
|
40
|
+
* `ModuleLifecycleOrchestrator` and `installGatingGraph` for a module's
|
|
41
|
+
* *relative* reach at those files too, and — the check reporting `violations=0`
|
|
42
|
+
* — would change nothing it prints. A blindness that arrives green.
|
|
43
|
+
*
|
|
44
|
+
* The rule the class encodes is one sentence: this surface **drives** the
|
|
45
|
+
* platform's own presence axis, so a module that could name it could install,
|
|
46
|
+
* uninstall, enable or disable its siblings. That is `./composition`'s reason
|
|
47
|
+
* with one noun changed.
|
|
48
|
+
*
|
|
49
|
+
* ## What is on it, and why exactly this
|
|
50
|
+
*
|
|
51
|
+
* Exactly the names a first-party source outside the platform imports through
|
|
52
|
+
* `@endora-commerce/platform/lifecycle`, and nothing else. It is a
|
|
53
|
+
* **consequence** rather than a ruling — unlike `./composition`, whose 27
|
|
54
|
+
* symbols D-160.14 names one by one — so writing the set down anywhere would be
|
|
55
|
+
* a derived fact copied into a second place (D-100).
|
|
56
|
+
* `test/unit/kernel/published-surface.test.ts` derives it from the consumers on
|
|
57
|
+
* every run and holds the two to each other in both directions: a name here
|
|
58
|
+
* that nobody imports is surface parked against a future need, and a name
|
|
59
|
+
* imported that is not here is a consumer that cannot compile.
|
|
60
|
+
*
|
|
61
|
+
* A symbol **graduates** to a public barrel in the merge request that first
|
|
62
|
+
* gives it a module-package production consumer, and leaves this one in the same
|
|
63
|
+
* merge request (§5, R5.5). Two homes would be two answers to "is this public
|
|
64
|
+
* API?". There is no such consumer today and none is anticipated.
|
|
65
|
+
*
|
|
66
|
+
* ## The population it was derived from until Phase 7, and why that ended
|
|
67
|
+
*
|
|
68
|
+
* The consumer rule could not be the rule while the application reached this
|
|
69
|
+
* surface through fifteen re-export shims: nothing outside the platform named
|
|
70
|
+
* the specifier, so the ratchet would have been green over nothing — issue
|
|
71
|
+
* #113's shape. What stood in its place was a *ledger*-derived rule. Each shim
|
|
72
|
+
* spells `export * from '<target>'`, so the application holds that file's whole
|
|
73
|
+
* namespace, and a reach could retire onto this barrel only if every name it
|
|
74
|
+
* yielded were here; the expected set was therefore a function of
|
|
75
|
+
* `RELATIVE_HOST_REACHES` and the fourteen files it named.
|
|
76
|
+
*
|
|
77
|
+
* Phase 3 gave the subpath its first consumers, Phase 5 and Phase 6 added the
|
|
78
|
+
* five command bodies and the two generated artefacts, and Phase 7 re-pointed
|
|
79
|
+
* the 112 reaches in `backend/test/**` and deleted the last nine shims. So the
|
|
80
|
+
* ledger derivation has no population left — no ledgered reach names a platform
|
|
81
|
+
* lifecycle file, and none will again, because the address exists — and 28
|
|
82
|
+
* names left with it: symbols that were here only because some shim's
|
|
83
|
+
* `export *` yielded them and that nobody had ever asked for by name.
|
|
84
|
+
* `routes.storefront.ts` and `commands/activation.commands.ts` were absent for
|
|
85
|
+
* that same reason all along.
|
|
86
|
+
*/
|
|
87
|
+
// --- the five `module:*` command bodies, and the seam they take -----------
|
|
88
|
+
// D115-1: the argv grammar, the exit-code table, the orchestrator wiring and
|
|
89
|
+
// the operator's output moved here in Phase 5; five ~20-line entry points stay
|
|
90
|
+
// at their application paths and build the runtime. They were the first names
|
|
91
|
+
// here that no shim ever yielded — the host names them through this specifier —
|
|
92
|
+
// and since Phase 7 that is the only way any name earns its place.
|
|
93
|
+
export {} from './commands/operator-runtime.js';
|
|
94
|
+
export { runInstallCommand } from './commands/install.js';
|
|
95
|
+
export { runUninstallCommand } from './commands/uninstall.js';
|
|
96
|
+
export { runEnableCommand } from './commands/enable.js';
|
|
97
|
+
export { runDisableCommand } from './commands/disable.js';
|
|
98
|
+
export { runStatusCommand } from './commands/status.js';
|
|
99
|
+
// The entry point itself, since `fix/instance-wiring-operator-runtime`. An
|
|
100
|
+
// instance's five files were five lines each over a **90-line** `runtime.ts`
|
|
101
|
+
// that named nothing but platform symbols, and R1.4 bounds the wiring a client
|
|
102
|
+
// maintains at 250 lines in total. What is genuinely the application's is the
|
|
103
|
+
// directory holding `apps/` and its own `mikro-orm.config.js`; both are
|
|
104
|
+
// parameters here, and the rendered file is fourteen lines.
|
|
105
|
+
//
|
|
106
|
+
// **One name, and it is the one the rendered tree imports.**
|
|
107
|
+
// `instanceOperatorRuntime`, `instanceManifestEntries` and
|
|
108
|
+
// `InstanceOperatorRuntimeOptions` were here in that same merge request and are
|
|
109
|
+
// not any more: no consumer outside the platform names one of them.
|
|
110
|
+
// `cli/dispatch.ts` wants the manifest set and reaches `operator-entry.js`
|
|
111
|
+
// directly for it, which is what a file inside the platform does — a barrel
|
|
112
|
+
// exists for the consumers that cannot. R5.4 is the rule: a host-internal
|
|
113
|
+
// subpath is not a place to park surface against a future need, and the three
|
|
114
|
+
// stay exported from their own file, one relative import away, for the merge
|
|
115
|
+
// request that first gives one of them a consumer out here.
|
|
116
|
+
export { runInstanceOperatorCommand } from './commands/operator-entry.js';
|
|
117
|
+
// --- the module itself, as the generated artefacts name it ----------------
|
|
118
|
+
// Phase 6 made this comment literally true: `composition.generated.ts` and
|
|
119
|
+
// `manifest-index.generated.ts` name **this specifier** for `_lifecycle`, so
|
|
120
|
+
// `backend.ts`, `manifest.ts` and `plugin.ts` are reached by nothing relative
|
|
121
|
+
// any more and are here because a consumer asks for these three names.
|
|
122
|
+
//
|
|
123
|
+
// Which is why five names left in that same merge request. `LifecycleCradle`,
|
|
124
|
+
// `lifecycleModule`, `LifecycleModule`, `LifecycleModuleDeps` and
|
|
125
|
+
// `LifecycleModuleHandle` were here only because the ledger rule then in force
|
|
126
|
+
// demanded **every** name a reached file exports, and with the reach gone
|
|
127
|
+
// nobody asks for them: the generated composition reads `registerModule` off
|
|
128
|
+
// its namespace import and `composition.ts` takes
|
|
129
|
+
// `lifecycleModuleFromStaticEntries`, and that is the whole of it. Parking a
|
|
130
|
+
// name against a future need is what R5.4 refuses, and
|
|
131
|
+
// `published-surface.test.ts` is what said so — in the phase that changed the
|
|
132
|
+
// specifier, not in the one that would later have wondered why they were here.
|
|
133
|
+
// Phase 7 repeated the exercise across the whole barrel, for 28 more.
|
|
134
|
+
export { registerModule } from './backend.js';
|
|
135
|
+
export { manifest } from './manifest.js';
|
|
136
|
+
export { lifecycleModuleFromStaticEntries } from './plugin.js';
|
|
137
|
+
export { registerLifecycleAdminRoutes, } from './routes.admin.js';
|
|
138
|
+
// --- the orchestrator, and the lock every write takes ---------------------
|
|
139
|
+
export { LifecycleError, ModuleLifecycleOrchestrator, } from './services/orchestrator.js';
|
|
140
|
+
// `acquireLifecycleLock` and `LifecycleLockError` left this barrel with
|
|
141
|
+
// `specs/110-instance-repository/` T119a, for `dep-graph.ts`' three functions'
|
|
142
|
+
// reason one population over: their one consumer outside the platform was
|
|
143
|
+
// `test/unit/_lifecycle/lock.test.ts`, which is now `services/lock.test.ts`
|
|
144
|
+
// inside the package and names the file directly. `LOCK_KEY` stays — the
|
|
145
|
+
// application's `module:*` entry points still read it. R5.4.
|
|
146
|
+
export { LOCK_KEY } from './services/lock.js';
|
|
147
|
+
// --- the two graphs a presence decision is computed over ------------------
|
|
148
|
+
//
|
|
149
|
+
// The three free functions of `dep-graph.ts` left this barrel with
|
|
150
|
+
// `specs/110-instance-repository/` T116: their one consumer outside the
|
|
151
|
+
// platform was `migration-order.ts`, which is now inside it and names the file
|
|
152
|
+
// directly. R5.4 — a name here that no first-party source outside the platform
|
|
153
|
+
// imports is surface parked against a future need.
|
|
154
|
+
export { ModuleDepGraph } from './services/dep-graph.js';
|
|
155
|
+
export { acknowledgedPortEdgesFrom, gatingGraph, installGatingGraph, ModuleGatingGraph, nonBindingPortEdgesFrom, provideDefaultGatingManifests, } from './services/gating-graph.js';
|
|
156
|
+
export { buildDeactivationLedger, deactivationConsequencesFor, } from './services/deactivation-ledger.js';
|
|
157
|
+
// --- discovering manifests, and what a build ships ------------------------
|
|
158
|
+
export { discoverManifests, folderNameFromPath, ManifestLoadError, } from './services/manifest-loader.js';
|
|
159
|
+
// `module-origin.ts`'s shim had no importer left once Phase 6 re-pointed the
|
|
160
|
+
// application, which cost it `OriginatedManifestEntry` — a name nothing outside
|
|
161
|
+
// the platform asks for.
|
|
162
|
+
export { deploymentShippedEntries, } from './services/module-origin.js';
|
|
163
|
+
export { assertNoModuleIdCollisions, moduleIdCollisions, ModuleIdCollisionError, } from './services/module-id-claims.js';
|
|
164
|
+
// `DiscoveredManifestEntry`, `OverlayModuleFound` and `PackageModuleFound` left
|
|
165
|
+
// this barrel with T119a: `manifest-registry.test.ts` was the only first-party
|
|
166
|
+
// source outside the platform naming them, and it is `lifecycle/manifest-registry.test.ts`
|
|
167
|
+
// inside the package now. `ManifestSources` stays — `backend/src/lifecycle/`'s
|
|
168
|
+
// registry binding is written against it.
|
|
169
|
+
export { coreManifestEntries, ManifestPathMissingError, resolveManifestEntries, } from './manifest-registry.js';
|
|
170
|
+
export { buildStaticRegistry } from './services/static-registry.js';
|
|
171
|
+
// `MigrationOwnership` left this barrel with `specs/110-instance-repository/`
|
|
172
|
+
// T116 for `dep-graph.ts`' three functions' reason: the merge that builds one is
|
|
173
|
+
// `db/configured-migrations.ts`, which is inside the platform now, and the one
|
|
174
|
+
// address a consumer outside it uses is `./db`. Two homes would be two answers
|
|
175
|
+
// to which subpath owns the shape (R5.5).
|
|
176
|
+
// --- what a deployment declares about differing from core -----------------
|
|
177
|
+
// The shape half only. The locator is `backend/src/overlay/divergence-loader.ts`
|
|
178
|
+
// and may not follow it here (D115-3): it composes a path in the tree that
|
|
179
|
+
// installs the platform, and the platform receives the parsed value as a field
|
|
180
|
+
// of `ComposeModulesOptions`, which is the seam it already had.
|
|
181
|
+
export { emptyDivergenceDeclaration, parseDivergenceDeclaration, } from './divergence-declaration.js';
|
|
182
|
+
// --- reading presence out of the registry at boot -------------------------
|
|
183
|
+
export { assertLockedModulesPresent,
|
|
184
|
+
// The `BootConvergenceWarning` shape is deliberately **not** re-exported:
|
|
185
|
+
// nothing outside the platform names it, and R5.4 refuses surface parked
|
|
186
|
+
// against a future need. A consumer that needs it says
|
|
187
|
+
// `ReturnType<typeof bootConvergenceWarnings>[number]`.
|
|
188
|
+
bootConvergenceWarnings, firstBootInsertPopulation, loadModulePresence, ReducedDeploymentError, } from './services/presence-load.js';
|
|
189
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/lifecycle/index.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The manifest registry's **derivation** — the core entries, the origin field,
|
|
3
|
+
* the path refusal, the collision assembly and the three-way merge
|
|
4
|
+
* (`specs/115-lifecycle-container-move/`, D115-2;
|
|
5
|
+
* `contracts/operator-half.md` §3).
|
|
6
|
+
*
|
|
7
|
+
* ## Why it is here and its input is not
|
|
8
|
+
*
|
|
9
|
+
* All of this lived in `backend/src/lifecycle/registered-manifests.ts`, because
|
|
10
|
+
* its **input** does: the generated manifest index is a fact about one
|
|
11
|
+
* repository's tree, is bare core under every value of `DEPLOYMENT` (D-104), and
|
|
12
|
+
* an instance's is a different file (D-160.3). But *"which modules exist, which
|
|
13
|
+
* of them claim the same id, and where did each entry come from"* is platform
|
|
14
|
+
* logic, and it sat in the application only because the artefact that answers
|
|
15
|
+
* the first clause is the application's.
|
|
16
|
+
*
|
|
17
|
+
* So the index is a **parameter**, never a reach: {@link coreManifestEntries}
|
|
18
|
+
* takes the discovered array and {@link resolveManifestEntries} takes
|
|
19
|
+
* {@link ManifestSources}. That is `specs/110-instance-repository/` FR-014
|
|
20
|
+
* stated as a mechanism, and the precedent is one directory over —
|
|
21
|
+
* `services/gating-graph.ts`'s `provideDefaultGatingManifests` is the host
|
|
22
|
+
* installing a supplier the platform refuses to default, with a comment saying
|
|
23
|
+
* exactly why the platform cannot read the registry itself. What that comment
|
|
24
|
+
* did not do is apply the reasoning to the derivation, which is what this file
|
|
25
|
+
* is.
|
|
26
|
+
*
|
|
27
|
+
* A parameter rather than a supplier slot, and the distinction is R3.2's: a slot
|
|
28
|
+
* is right for a *fallback* most processes never need and that must refuse
|
|
29
|
+
* rather than default. "Which modules exist" is answered at import,
|
|
30
|
+
* deterministically, by whoever built the binding; a slot would make *"did
|
|
31
|
+
* anyone supply it, and when?"* a runtime question in the one file whose job is
|
|
32
|
+
* to have the answer.
|
|
33
|
+
*
|
|
34
|
+
* ## What is left in the application, and why it is twenty lines
|
|
35
|
+
*
|
|
36
|
+
* `backend/src/lifecycle/registered-manifests.ts` keeps its path and every name
|
|
37
|
+
* it exports, and binds three suppliers — the generated index, this deployment's
|
|
38
|
+
* overlay scan and this instance's installed packages. 121 files import that
|
|
39
|
+
* path; moving the *file* would be a 121-file rewrite whose entire content is a
|
|
40
|
+
* path, and moving the *derivation* is a one-file edit. An instance writes the
|
|
41
|
+
* same twenty lines against its own three answers, which it owns regardless.
|
|
42
|
+
*/
|
|
43
|
+
import type { ModuleManifest, ModuleManifestExports } from '@endora-commerce/contracts';
|
|
44
|
+
import { type ModuleIdClaimOrigin } from './services/module-id-claims.js';
|
|
45
|
+
/**
|
|
46
|
+
* One entry of the host's generated manifest index, as this derivation reads it.
|
|
47
|
+
*
|
|
48
|
+
* Declared here rather than imported, because the artefact that emits it is the
|
|
49
|
+
* host's (D-160.3) and the platform may not name a file in the tree that
|
|
50
|
+
* installs it (D-52/D-53). `tsc` is what holds the two shapes together: the
|
|
51
|
+
* generated interface is structurally assignable to this one at the call site,
|
|
52
|
+
* so a generator that dropped a field fails in the host's own type-check.
|
|
53
|
+
*/
|
|
54
|
+
export interface DiscoveredManifestEntry {
|
|
55
|
+
id: string;
|
|
56
|
+
manifest: ModuleManifest;
|
|
57
|
+
/**
|
|
58
|
+
* The real path of the file this entry's manifest was imported from —
|
|
59
|
+
* `<module>/manifest.ts` in an application tree, `<package>/package.json` for
|
|
60
|
+
* a packaged module. Every consumer takes `dirname` of it.
|
|
61
|
+
*/
|
|
62
|
+
manifestPath: string;
|
|
63
|
+
installHook?: ModuleManifestExports['installHook'];
|
|
64
|
+
uninstallHook?: ModuleManifestExports['uninstallHook'];
|
|
65
|
+
lifecycleParticipant?: ModuleManifestExports['lifecycleParticipant'];
|
|
66
|
+
cliCommands?: ModuleManifestExports['cliCommands'];
|
|
67
|
+
recentActivity?: ModuleManifestExports['recentActivity'];
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Each entry carries a real `filePath` so downstream reconcilers can locate the
|
|
71
|
+
* module's directory on disk — notably the i18n bundle loader
|
|
72
|
+
* (`_i18n/plugin.ts`) does `dirname(entry.filePath)` and joins `bundlesDir` to
|
|
73
|
+
* find each module's `i18n/<lang>.json` files. Without a real path,
|
|
74
|
+
* `dirname('<static>')` resolves to `.`, no bundle ever loads, and every action
|
|
75
|
+
* label renders as its raw i18n key.
|
|
76
|
+
*/
|
|
77
|
+
export interface RegisteredManifestEntry {
|
|
78
|
+
manifest: ModuleManifest;
|
|
79
|
+
filePath: string;
|
|
80
|
+
/**
|
|
81
|
+
* Where this entry came from — set where it is **constructed**, never derived
|
|
82
|
+
* from {@link RegisteredManifestEntry.filePath} (feature 080, T040b).
|
|
83
|
+
*
|
|
84
|
+
* D-157.6(b) read the origin off the path, on the ground that everything this
|
|
85
|
+
* build ships is under `backend/src`. That stopped being true with the first
|
|
86
|
+
* module package: `packages/modules/blog` is under neither root, so it read as
|
|
87
|
+
* `'package'`, and the two decisions resting on the answer — the first-boot
|
|
88
|
+
* `module_registrations` insert and the boot settings reconcile — silently
|
|
89
|
+
* skipped it. A module the build composes, whose migrations the committed
|
|
90
|
+
* registry runs, would have had no activation Setting and no registry row, so
|
|
91
|
+
* it would not have appeared on `/platform/modules` at all: Principle XVII
|
|
92
|
+
* defeated by a path test, with nothing raised.
|
|
93
|
+
*
|
|
94
|
+
* There is no containment test that could be right here, which is why this is
|
|
95
|
+
* a field. A workspace module package and an installed one are the same
|
|
96
|
+
* directory shape, and in a deployed build both sit under `node_modules`. What
|
|
97
|
+
* separates them is *which discovery produced the entry*, and that is known
|
|
98
|
+
* exactly once — at the three construction sites below.
|
|
99
|
+
*/
|
|
100
|
+
origin: ModuleIdClaimOrigin;
|
|
101
|
+
installHook?: ModuleManifestExports['installHook'];
|
|
102
|
+
uninstallHook?: ModuleManifestExports['uninstallHook'];
|
|
103
|
+
/**
|
|
104
|
+
* This module's interest in every *other* module's install and hard
|
|
105
|
+
* uninstall — feature 080, T036a / D-159. Travels with the entry so that a
|
|
106
|
+
* `module:*` command, which composes nothing, gets the same reconcile the
|
|
107
|
+
* admin path does.
|
|
108
|
+
*/
|
|
109
|
+
lifecycleParticipant?: ModuleManifestExports['lifecycleParticipant'];
|
|
110
|
+
/**
|
|
111
|
+
* The operator commands this module declares — feature 080, T042b / D-160.9.
|
|
112
|
+
* Travels with the entry for the same reason the hooks do: the host's CLI
|
|
113
|
+
* runner reads them off the resolved set, so a core module, an overlay module
|
|
114
|
+
* and an installed package are reachable by one path.
|
|
115
|
+
*/
|
|
116
|
+
cliCommands?: ModuleManifestExports['cliCommands'];
|
|
117
|
+
/**
|
|
118
|
+
* This module's declaration that its activity is eligible for the dashboard's
|
|
119
|
+
* recent-activity card — feature 080, T042j / D-163.1. Travels with the entry
|
|
120
|
+
* for the reason the hooks do: the derivation that replaced four
|
|
121
|
+
* hand-maintained action tables reads it off the resolved set, so a core
|
|
122
|
+
* module, an overlay module and an installed package reach the card by one
|
|
123
|
+
* path.
|
|
124
|
+
*/
|
|
125
|
+
recentActivity?: ModuleManifestExports['recentActivity'];
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* What an overlay scan yields for one of this deployment's own modules.
|
|
129
|
+
*
|
|
130
|
+
* Declared structurally for the reason {@link DiscoveredManifestEntry} is: the
|
|
131
|
+
* scan reads a directory in the deployment tree, which is the installing tree's,
|
|
132
|
+
* so the platform takes its **answer** and never its implementation.
|
|
133
|
+
*/
|
|
134
|
+
export interface OverlayModuleFound {
|
|
135
|
+
readonly id: string;
|
|
136
|
+
readonly manifest: ModuleManifest;
|
|
137
|
+
readonly filePath: string;
|
|
138
|
+
readonly installHook?: ModuleManifestExports['installHook'];
|
|
139
|
+
readonly uninstallHook?: ModuleManifestExports['uninstallHook'];
|
|
140
|
+
readonly lifecycleParticipant?: ModuleManifestExports['lifecycleParticipant'];
|
|
141
|
+
readonly cliCommands?: ModuleManifestExports['cliCommands'];
|
|
142
|
+
readonly recentActivity?: ModuleManifestExports['recentActivity'];
|
|
143
|
+
}
|
|
144
|
+
/** What a `node_modules` scan yields for one installed Endora module package. */
|
|
145
|
+
export interface PackageModuleFound extends OverlayModuleFound {
|
|
146
|
+
/** The npm package name, for diagnostics. Never the platform's identity (D-142). */
|
|
147
|
+
readonly packageName: string;
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* The three answers a resolved registry is made of, supplied by whoever knows
|
|
151
|
+
* them (R3.1, R3.3).
|
|
152
|
+
*
|
|
153
|
+
* They stay three rather than collapsing into one supplier because they are
|
|
154
|
+
* three different questions about *the process* with three different answers —
|
|
155
|
+
* what this build ships, which deployment this is, and which packages an
|
|
156
|
+
* operator installed — and a single supplier would hide which one raised a
|
|
157
|
+
* collision.
|
|
158
|
+
*/
|
|
159
|
+
export interface ManifestSources {
|
|
160
|
+
/** Every module this build ships, already derived from the host's generated index. */
|
|
161
|
+
readonly core: readonly RegisteredManifestEntry[];
|
|
162
|
+
/** This deployment's overlay modules. Empty for a bare-core build. */
|
|
163
|
+
readonly overlay: () => Promise<readonly OverlayModuleFound[]>;
|
|
164
|
+
/** Every Endora module package installed in this instance. Empty for a bare-core build. */
|
|
165
|
+
readonly packages: () => Promise<readonly PackageModuleFound[]>;
|
|
166
|
+
}
|
|
167
|
+
/** Raised when an index entry carries no location for the manifest it imported. */
|
|
168
|
+
export declare class ManifestPathMissingError extends Error {
|
|
169
|
+
readonly name = "ManifestPathMissingError";
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* The core registry: every discovered module, with the location the generator
|
|
173
|
+
* recorded for it.
|
|
174
|
+
*
|
|
175
|
+
* The index has no deployment entry to filter out any more (D-104). It is a
|
|
176
|
+
* walk of the shared core tree and nothing else, whatever `DEPLOYMENT` is set
|
|
177
|
+
* to when it is generated — which is what makes the committed artefact mean the
|
|
178
|
+
* same thing in every environment, and what makes a stale one detectable
|
|
179
|
+
* (FR-004, issue #120).
|
|
180
|
+
*
|
|
181
|
+
* **The path is read, not computed** (feature 080, T041a). It used to be
|
|
182
|
+
* `join(MODULES_ROOT, entry.id, 'manifest.ts')` — a convention, holding for as
|
|
183
|
+
* long as every module sits at `backend/src/modules/<id>/`, and giving a
|
|
184
|
+
* confident wrong answer the moment one does not. There is no reader of
|
|
185
|
+
* `filePath` that does not take `dirname` of it and join a directory: the
|
|
186
|
+
* `_i18n` boot reconciler joins `bundlesDir`, the orchestrator hands the same
|
|
187
|
+
* directory to the install-time bundle load, and both **skip** a directory that
|
|
188
|
+
* is absent. So a packaged module would have loaded no bundle, rendered every
|
|
189
|
+
* command-palette label as its raw key, and reported nothing anywhere.
|
|
190
|
+
*
|
|
191
|
+
* An entry with no path is therefore refused rather than defaulted. There is no
|
|
192
|
+
* honest fallback: the only candidate is the convention that just stopped
|
|
193
|
+
* holding, and a registry that answers with a directory nobody verified is the
|
|
194
|
+
* failure this replaces. The type makes the field required, which is what stops
|
|
195
|
+
* a *new* emitter from omitting it; this refusal is for the older artefact — a
|
|
196
|
+
* committed index generated before the field existed, or a hand-edited one —
|
|
197
|
+
* which the type cannot reach because it was compiled against a different shape.
|
|
198
|
+
*/
|
|
199
|
+
export declare function coreManifestEntries(discovered: ReadonlyArray<DiscoveredManifestEntry>): RegisteredManifestEntry[];
|
|
200
|
+
/**
|
|
201
|
+
* The **instance-resolved** manifest set = the core registry, PLUS every
|
|
202
|
+
* overlay module the active deployment ships (feature 057, D-104), PLUS every
|
|
203
|
+
* Endora module package installed in this instance's `node_modules` (feature
|
|
204
|
+
* 080, D-119/D-155).
|
|
205
|
+
*
|
|
206
|
+
* All three arrive through {@link ManifestSources}, each from the one
|
|
207
|
+
* implementation that discovers it. There used to be two overlay
|
|
208
|
+
* implementations: this function merged the generated index's overlay entries,
|
|
209
|
+
* `composition.ts` merged the runtime scan's, and the one under test was not
|
|
210
|
+
* the one that ran.
|
|
211
|
+
*
|
|
212
|
+
* Runtime discovery is not an optimisation, it is the only correct answer, and
|
|
213
|
+
* D-104's predicate gives it for both: an artefact is committed when its
|
|
214
|
+
* content is a fact about *the tree*, and resolved at runtime when it is a fact
|
|
215
|
+
* about *the process*. Which deployment this process runs as is one; which
|
|
216
|
+
* packages an operator installed into this instance is the other. For a
|
|
217
|
+
* bare-core build with nothing installed — every developer checkout and every
|
|
218
|
+
* test run — both discoveries come back empty and this returns the core
|
|
219
|
+
* registry unchanged (FR-008).
|
|
220
|
+
*
|
|
221
|
+
* ## Collisions: one rule, whoever the claimants are
|
|
222
|
+
*
|
|
223
|
+
* A module id claimed twice is **refused**, naming every claimant's file
|
|
224
|
+
* (T030c, D-155.7; widened to the overlay by feature 103, FR-004).
|
|
225
|
+
*
|
|
226
|
+
* The overlay half used to be answered differently — dropped with a `continue`,
|
|
227
|
+
* on the reading that a deployment shadowing a module it authored is what the
|
|
228
|
+
* overlay mechanism is for. File shadowing is retired (D-201), so that reading
|
|
229
|
+
* has nothing left to refer to, and it was never the whole answer anyway: this
|
|
230
|
+
* function dropped the manifest while `overlayModuleEntriesUnder` composed the
|
|
231
|
+
* module, so the deployment ran a module the resolved registry did not know
|
|
232
|
+
* about — no `module_registrations` row, no permission-catalogue entry, and its
|
|
233
|
+
* routes gated on the effective state of somebody else's module of the same id.
|
|
234
|
+
* Principle XVII defeated in silence.
|
|
235
|
+
*
|
|
236
|
+
* The refusal an overlay claim reaches is raised **before** this function sees
|
|
237
|
+
* it, inside the overlay scan, so that the composition path reaches the same
|
|
238
|
+
* rule without depending on a composition root calling this function first.
|
|
239
|
+
* What is left here is the claim set no single scan can assemble: core, the
|
|
240
|
+
* overlay and every installed package at once, so an operator with two bad
|
|
241
|
+
* packages has to run this only once.
|
|
242
|
+
*/
|
|
243
|
+
export declare function resolveManifestEntries(sources: ManifestSources): Promise<RegisteredManifestEntry[]>;
|
|
244
|
+
//# sourceMappingURL=manifest-registry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manifest-registry.d.ts","sourceRoot":"","sources":["../../src/lifecycle/manifest-registry.ts"],"names":[],"mappings":"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"}
|