@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,90 @@
|
|
|
1
|
+
// Where a deployment's files are, given the directory that holds `apps/`.
|
|
2
|
+
//
|
|
3
|
+
// Every function here takes that directory as its first argument and derives
|
|
4
|
+
// nothing from its own location. That is the whole of
|
|
5
|
+
// `specs/110-instance-repository/contracts/application-root-supplier.md` §1: the
|
|
6
|
+
// root is one value, it is a directory, and it is **supplied** — never derived
|
|
7
|
+
// by the file that uses it.
|
|
8
|
+
//
|
|
9
|
+
// The reason is not tidiness. `backend/src/overlay/overlay-roots.ts` derives it
|
|
10
|
+
// from `import.meta.url` and gets `backend/src` under `tsx` and `backend/dist`
|
|
11
|
+
// under a compiled run; three `dirname`s from a file in this package give
|
|
12
|
+
// `packages/platform/src` in both, which is a directory holding no `apps/` at
|
|
13
|
+
// all. The failure is **silent** in the one mechanism where it matters most —
|
|
14
|
+
// an absent declaration and an empty one are deliberately the same answer, and
|
|
15
|
+
// an overlay module the loader cannot see is skipped with no error and no
|
|
16
|
+
// warning (D115-3; D-165 step C). A derivation here would reproduce that state
|
|
17
|
+
// exactly, in every instance, because in an instance `apps/` is a sibling of
|
|
18
|
+
// the backend member rather than a directory inside it and this package came
|
|
19
|
+
// out of `node_modules`.
|
|
20
|
+
//
|
|
21
|
+
// So the application keeps one expression — R6.1 classifies a root directory as
|
|
22
|
+
// **wiring**, in so many words — and hands it in.
|
|
23
|
+
import { existsSync, readdirSync, statSync } from 'node:fs';
|
|
24
|
+
import { join } from 'node:path';
|
|
25
|
+
/**
|
|
26
|
+
* The active deployment name, or `null` for a bare-core build.
|
|
27
|
+
*
|
|
28
|
+
* Read from `DEPLOYMENT`; blank/whitespace is treated as unset. It names no
|
|
29
|
+
* path, which is why it moved whole: the environment is the same environment in
|
|
30
|
+
* every tree.
|
|
31
|
+
*
|
|
32
|
+
* `env` is an argument rather than an ambient read because one process resolves
|
|
33
|
+
* both answers — a suite proves a module present with the deployment selected
|
|
34
|
+
* and absent without it, in one run.
|
|
35
|
+
*/
|
|
36
|
+
export function selectedDeployment(env = process.env) {
|
|
37
|
+
const raw = env['DEPLOYMENT'];
|
|
38
|
+
if (typeof raw !== 'string')
|
|
39
|
+
return null;
|
|
40
|
+
const trimmed = raw.trim();
|
|
41
|
+
return trimmed.length > 0 ? trimmed : null;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Absolute path to a deployment's overlay modules root (whether or not it
|
|
45
|
+
* exists), under the supplied deployment root.
|
|
46
|
+
*/
|
|
47
|
+
export function overlayModulesRootFor(deploymentRoot, deployment) {
|
|
48
|
+
return join(deploymentRoot, 'apps', deployment, 'modules');
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Every deployment under the supplied root, sorted — one directory under
|
|
52
|
+
* `<deploymentRoot>/apps/`.
|
|
53
|
+
*
|
|
54
|
+
* `DEPLOYMENT` selects which one a *build* composes; this is the whole set, and
|
|
55
|
+
* it exists so the determinism gate can verify each deployment's committed
|
|
56
|
+
* artefacts without being run once per deployment (issue #120). An artefact only
|
|
57
|
+
* a run nobody makes would check is an artefact nothing checks.
|
|
58
|
+
*
|
|
59
|
+
* A root with no `apps/` is the empty list rather than a throw: a tree that
|
|
60
|
+
* ships no deployment is bare core, which is a supported state and not an error.
|
|
61
|
+
*/
|
|
62
|
+
export function deploymentsOnDisk(deploymentRoot) {
|
|
63
|
+
const appsRoot = join(deploymentRoot, 'apps');
|
|
64
|
+
if (!existsSync(appsRoot))
|
|
65
|
+
return [];
|
|
66
|
+
return readdirSync(appsRoot, { withFileTypes: true })
|
|
67
|
+
.filter((entry) => entry.isDirectory() && !entry.name.startsWith('.'))
|
|
68
|
+
.map((entry) => entry.name)
|
|
69
|
+
.sort();
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* The active overlay modules root, or `null` when there is no deployment or the
|
|
73
|
+
* deployment ships no overlay directory. A non-directory path resolves to null
|
|
74
|
+
* (core-only) rather than raising — a missing overlay is not an error.
|
|
75
|
+
*/
|
|
76
|
+
export function activeOverlayModulesRoot(deploymentRoot, env = process.env) {
|
|
77
|
+
const deployment = selectedDeployment(env);
|
|
78
|
+
if (deployment === null)
|
|
79
|
+
return null;
|
|
80
|
+
const root = overlayModulesRootFor(deploymentRoot, deployment);
|
|
81
|
+
if (!existsSync(root))
|
|
82
|
+
return null;
|
|
83
|
+
try {
|
|
84
|
+
return statSync(root).isDirectory() ? root : null;
|
|
85
|
+
}
|
|
86
|
+
catch {
|
|
87
|
+
return null;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
//# sourceMappingURL=deployment-roots.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deployment-roots.js","sourceRoot":"","sources":["../../src/overlay/deployment-roots.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,EAAE;AACF,6EAA6E;AAC7E,sDAAsD;AACtD,iFAAiF;AACjF,+EAA+E;AAC/E,4BAA4B;AAC5B,EAAE;AACF,gFAAgF;AAChF,+EAA+E;AAC/E,0EAA0E;AAC1E,8EAA8E;AAC9E,8EAA8E;AAC9E,+EAA+E;AAC/E,0EAA0E;AAC1E,+EAA+E;AAC/E,6EAA6E;AAC7E,6EAA6E;AAC7E,yBAAyB;AACzB,EAAE;AACF,gFAAgF;AAChF,kDAAkD;AAElD,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAC5D,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC;;;;;;;;;;GAUG;AACH,MAAM,UAAU,kBAAkB,CAAC,MAAyB,OAAO,CAAC,GAAG;IACrE,MAAM,GAAG,GAAG,GAAG,CAAC,YAAY,CAAC,CAAC;IAC9B,IAAI,OAAO,GAAG,KAAK,QAAQ;QAAE,OAAO,IAAI,CAAC;IACzC,MAAM,OAAO,GAAG,GAAG,CAAC,IAAI,EAAE,CAAC;IAC3B,OAAO,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC;AAC7C,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,qBAAqB,CAAC,cAAsB,EAAE,UAAkB;IAC9E,OAAO,IAAI,CAAC,cAAc,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,CAAC,CAAC;AAC7D,CAAC;AAED;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,iBAAiB,CAAC,cAAsB;IACtD,MAAM,QAAQ,GAAG,IAAI,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC;IAC9C,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC;QAAE,OAAO,EAAE,CAAC;IACrC,OAAO,WAAW,CAAC,QAAQ,EAAE,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC;SAClD,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;SACrE,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC;SAC1B,IAAI,EAAE,CAAC;AACZ,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,wBAAwB,CACtC,cAAsB,EACtB,MAAyB,OAAO,CAAC,GAAG;IAEpC,MAAM,UAAU,GAAG,kBAAkB,CAAC,GAAG,CAAC,CAAC;IAC3C,IAAI,UAAU,KAAK,IAAI;QAAE,OAAO,IAAI,CAAC;IACrC,MAAM,IAAI,GAAG,qBAAqB,CAAC,cAAc,EAAE,UAAU,CAAC,CAAC;IAC/D,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;QAAE,OAAO,IAAI,CAAC;IACnC,IAAI,CAAC;QACH,OAAO,QAAQ,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC;IACpD,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `./overlay` — the overlay loader, and the platform's eleventh subpath
|
|
3
|
+
* (`specs/110-instance-repository/` T114, FR-013).
|
|
4
|
+
*
|
|
5
|
+
* ## What is on it
|
|
6
|
+
*
|
|
7
|
+
* The code that turns a directory of client-only modules into things the kernel
|
|
8
|
+
* container composes: the deterministic listing of an overlay root, the
|
|
9
|
+
* `.js`/`.ts` unit resolution a compiled tree needs, the id-collision seam both
|
|
10
|
+
* overlay readers go through, and the two loaders — manifests for the
|
|
11
|
+
* deployment-resolved registry, `ModuleEntry`s for `composeModules`.
|
|
12
|
+
*
|
|
13
|
+
* ## What is *not* on it, and that is the whole shape of this move
|
|
14
|
+
*
|
|
15
|
+
* **Every path.** This directory derives none: the deployment root and the
|
|
16
|
+
* claims already made on a module id both arrive as parameters. The first is a
|
|
17
|
+
* fact about the application — `backend/src/overlay/overlay-roots.ts` derives it
|
|
18
|
+
* once from its own `import.meta.url`, in one expression (D115-3;
|
|
19
|
+
* `specs/110-instance-repository/contracts/application-root-supplier.md` R6.1
|
|
20
|
+
* classifies a root directory as **wiring**) — and in an instance the
|
|
21
|
+
* application is a member the CLI scaffolded, which this package cannot see. The
|
|
22
|
+
* second's core half comes off the generated manifest index, which R7.4 says a
|
|
23
|
+
* relocated platform file receives rather than reaches for.
|
|
24
|
+
*
|
|
25
|
+
* So the application keeps a **binding** at `backend/src/overlay/overlay-runtime.ts`
|
|
26
|
+
* carrying every name and signature its consumers already write —
|
|
27
|
+
* `discoverOverlayModuleManifests(env)` and `loadOverlayModuleEntries(env)`
|
|
28
|
+
* among them — and an instance writes the same twenty lines over its own two
|
|
29
|
+
* answers. That is `registered-manifests.ts`' split, one directory over.
|
|
30
|
+
*
|
|
31
|
+
* `deployment-roots.ts` joined it in T114a and is that split at its purest:
|
|
32
|
+
* *"which directory holds `apps/`"* is a **parameter** of every function that
|
|
33
|
+
* composes a path under it, so `overlay-roots.ts` keeps the derivation and
|
|
34
|
+
* nothing else (R1.3).
|
|
35
|
+
*
|
|
36
|
+
* One file stayed behind for a reason of its own, written in place: `types.ts`,
|
|
37
|
+
* named **by relative path** from every deployment's generated divergence
|
|
38
|
+
* artefact, deliberately, so that a committed artefact's import does not depend
|
|
39
|
+
* on the deployment's dependency graph. `divergence-loader.ts` is no longer one
|
|
40
|
+
* of them: T114a deleted its `RUNNING_FROM_DIST` in favour of
|
|
41
|
+
* {@link resolveOverlayUnit}, so it derives nothing and is movable (R3).
|
|
42
|
+
*
|
|
43
|
+
* **`divergence-report.ts` was named here as a second and is gone** — not to this
|
|
44
|
+
* package but to `@endora-commerce/cli`, with the derivation that feeds it
|
|
45
|
+
* (`specs/110-instance-repository/` T138a). The report has two hosts, a client's
|
|
46
|
+
* instance renders one over its own `apps/` tree, and a build-time renderer has
|
|
47
|
+
* no runtime reader that would justify a package every instance loads at boot
|
|
48
|
+
* carrying it. This paragraph said it *"stays with them"*; it did not.
|
|
49
|
+
*
|
|
50
|
+
* ## Why no module may name it
|
|
51
|
+
*
|
|
52
|
+
* D-160.14's third state. An overlay module is the deployment's answer to
|
|
53
|
+
* "customise without forking", and the loader that composes one decides which
|
|
54
|
+
* modules a deployment runs at all — a module that could name this could compose
|
|
55
|
+
* its siblings, which is `./composition`'s own argument. Declared by the
|
|
56
|
+
* `exports` map, carried by no published barrel, and answered for a module's
|
|
57
|
+
* reach with `host-internal-subpath`.
|
|
58
|
+
*/
|
|
59
|
+
export { activeOverlayModulesRoot, deploymentsOnDisk, overlayModulesRootFor, selectedDeployment, } from './deployment-roots.js';
|
|
60
|
+
export { listOverlayModuleDirs, resolveOverlay, type OverlayResolution, } from './resolve-overlay.js';
|
|
61
|
+
export { overlayModuleEntriesUnder, overlayModuleIdsUnder, overlayModuleManifestsUnder, overlayModulesUnder, resolveOverlayUnit, type OverlayModuleManifest, type OverlayModules, } from './overlay-runtime.js';
|
|
62
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/overlay/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyDG;AAEH,OAAO,EACL,wBAAwB,EACxB,iBAAiB,EACjB,qBAAqB,EACrB,kBAAkB,GACnB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EACL,qBAAqB,EACrB,cAAc,EACd,KAAK,iBAAiB,GACvB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EACL,yBAAyB,EACzB,qBAAqB,EACrB,2BAA2B,EAC3B,mBAAmB,EACnB,kBAAkB,EAClB,KAAK,qBAAqB,EAC1B,KAAK,cAAc,GACpB,MAAM,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `./overlay` — the overlay loader, and the platform's eleventh subpath
|
|
3
|
+
* (`specs/110-instance-repository/` T114, FR-013).
|
|
4
|
+
*
|
|
5
|
+
* ## What is on it
|
|
6
|
+
*
|
|
7
|
+
* The code that turns a directory of client-only modules into things the kernel
|
|
8
|
+
* container composes: the deterministic listing of an overlay root, the
|
|
9
|
+
* `.js`/`.ts` unit resolution a compiled tree needs, the id-collision seam both
|
|
10
|
+
* overlay readers go through, and the two loaders — manifests for the
|
|
11
|
+
* deployment-resolved registry, `ModuleEntry`s for `composeModules`.
|
|
12
|
+
*
|
|
13
|
+
* ## What is *not* on it, and that is the whole shape of this move
|
|
14
|
+
*
|
|
15
|
+
* **Every path.** This directory derives none: the deployment root and the
|
|
16
|
+
* claims already made on a module id both arrive as parameters. The first is a
|
|
17
|
+
* fact about the application — `backend/src/overlay/overlay-roots.ts` derives it
|
|
18
|
+
* once from its own `import.meta.url`, in one expression (D115-3;
|
|
19
|
+
* `specs/110-instance-repository/contracts/application-root-supplier.md` R6.1
|
|
20
|
+
* classifies a root directory as **wiring**) — and in an instance the
|
|
21
|
+
* application is a member the CLI scaffolded, which this package cannot see. The
|
|
22
|
+
* second's core half comes off the generated manifest index, which R7.4 says a
|
|
23
|
+
* relocated platform file receives rather than reaches for.
|
|
24
|
+
*
|
|
25
|
+
* So the application keeps a **binding** at `backend/src/overlay/overlay-runtime.ts`
|
|
26
|
+
* carrying every name and signature its consumers already write —
|
|
27
|
+
* `discoverOverlayModuleManifests(env)` and `loadOverlayModuleEntries(env)`
|
|
28
|
+
* among them — and an instance writes the same twenty lines over its own two
|
|
29
|
+
* answers. That is `registered-manifests.ts`' split, one directory over.
|
|
30
|
+
*
|
|
31
|
+
* `deployment-roots.ts` joined it in T114a and is that split at its purest:
|
|
32
|
+
* *"which directory holds `apps/`"* is a **parameter** of every function that
|
|
33
|
+
* composes a path under it, so `overlay-roots.ts` keeps the derivation and
|
|
34
|
+
* nothing else (R1.3).
|
|
35
|
+
*
|
|
36
|
+
* One file stayed behind for a reason of its own, written in place: `types.ts`,
|
|
37
|
+
* named **by relative path** from every deployment's generated divergence
|
|
38
|
+
* artefact, deliberately, so that a committed artefact's import does not depend
|
|
39
|
+
* on the deployment's dependency graph. `divergence-loader.ts` is no longer one
|
|
40
|
+
* of them: T114a deleted its `RUNNING_FROM_DIST` in favour of
|
|
41
|
+
* {@link resolveOverlayUnit}, so it derives nothing and is movable (R3).
|
|
42
|
+
*
|
|
43
|
+
* **`divergence-report.ts` was named here as a second and is gone** — not to this
|
|
44
|
+
* package but to `@endora-commerce/cli`, with the derivation that feeds it
|
|
45
|
+
* (`specs/110-instance-repository/` T138a). The report has two hosts, a client's
|
|
46
|
+
* instance renders one over its own `apps/` tree, and a build-time renderer has
|
|
47
|
+
* no runtime reader that would justify a package every instance loads at boot
|
|
48
|
+
* carrying it. This paragraph said it *"stays with them"*; it did not.
|
|
49
|
+
*
|
|
50
|
+
* ## Why no module may name it
|
|
51
|
+
*
|
|
52
|
+
* D-160.14's third state. An overlay module is the deployment's answer to
|
|
53
|
+
* "customise without forking", and the loader that composes one decides which
|
|
54
|
+
* modules a deployment runs at all — a module that could name this could compose
|
|
55
|
+
* its siblings, which is `./composition`'s own argument. Declared by the
|
|
56
|
+
* `exports` map, carried by no published barrel, and answered for a module's
|
|
57
|
+
* reach with `host-internal-subpath`.
|
|
58
|
+
*/
|
|
59
|
+
export { activeOverlayModulesRoot, deploymentsOnDisk, overlayModulesRootFor, selectedDeployment, } from './deployment-roots.js';
|
|
60
|
+
export { listOverlayModuleDirs, resolveOverlay, } from './resolve-overlay.js';
|
|
61
|
+
export { overlayModuleEntriesUnder, overlayModuleIdsUnder, overlayModuleManifestsUnder, overlayModulesUnder, resolveOverlayUnit, } from './overlay-runtime.js';
|
|
62
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/overlay/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyDG;AAEH,OAAO,EACL,wBAAwB,EACxB,iBAAiB,EACjB,qBAAqB,EACrB,kBAAkB,GACnB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EACL,qBAAqB,EACrB,cAAc,GAEf,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EACL,yBAAyB,EACzB,qBAAqB,EACrB,2BAA2B,EAC3B,mBAAmB,EACnB,kBAAkB,GAGnB,MAAM,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import type { ModuleManifest, ModuleManifestExports } from '@endora-commerce/contracts';
|
|
2
|
+
import type { ModuleEntry } from '../kernel/compose.js';
|
|
3
|
+
import { type ModuleIdClaim } from '../lifecycle/services/module-id-claims.js';
|
|
4
|
+
/**
|
|
5
|
+
* The real path of the overlay unit `<dir>/<stem>`, or `null` when the module
|
|
6
|
+
* ships neither spelling.
|
|
7
|
+
*
|
|
8
|
+
* A **resolution**, never a derivation. The path this returns is a file that
|
|
9
|
+
* exists, so `existsSync` on it is redundant by construction and a caller
|
|
10
|
+
* cannot end up importing a name the build never emitted.
|
|
11
|
+
*/
|
|
12
|
+
export declare function resolveOverlayUnit(dir: string, stem: string): string | null;
|
|
13
|
+
/** An overlay module's manifest + on-disk location (no registration wiring yet). */
|
|
14
|
+
export interface OverlayModuleManifest {
|
|
15
|
+
id: string;
|
|
16
|
+
manifest: ModuleManifest;
|
|
17
|
+
filePath: string;
|
|
18
|
+
/** Install-time work lives in `manifest.ts` (D-46), overlay modules included. */
|
|
19
|
+
installHook?: ModuleManifestExports['installHook'];
|
|
20
|
+
uninstallHook?: ModuleManifestExports['uninstallHook'];
|
|
21
|
+
/**
|
|
22
|
+
* This module's interest in every *other* module's install and hard
|
|
23
|
+
* uninstall — feature 080, T036a / D-159. Read here for the same reason the
|
|
24
|
+
* two hooks are: the export travels with the manifest, so an overlay module
|
|
25
|
+
* and an installed package declare one on exactly core's terms.
|
|
26
|
+
*/
|
|
27
|
+
lifecycleParticipant?: ModuleManifestExports['lifecycleParticipant'];
|
|
28
|
+
/**
|
|
29
|
+
* The operator commands this module declares — feature 080, T042b / D-160.9.
|
|
30
|
+
* Read here for the same reason the hooks are: the export travels with the
|
|
31
|
+
* manifest, so an overlay module declares one on exactly core's terms.
|
|
32
|
+
*/
|
|
33
|
+
cliCommands?: ModuleManifestExports['cliCommands'];
|
|
34
|
+
/**
|
|
35
|
+
* The module's recent-activity eligibility — feature 080, T042j / D-163.1.
|
|
36
|
+
* Read here for the same reason the hooks are: the export travels with the
|
|
37
|
+
* manifest, so an overlay module declares one on exactly core's terms.
|
|
38
|
+
*/
|
|
39
|
+
recentActivity?: ModuleManifestExports['recentActivity'];
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* The overlay module ids under one overlay modules root, **and the one place
|
|
43
|
+
* their claim on those ids is checked** (feature 103, FR-004).
|
|
44
|
+
*
|
|
45
|
+
* Both overlay seams go through here — `overlayModuleManifestsUnder`, which is
|
|
46
|
+
* what `resolvedManifestEntries()` reads, and `overlayModuleEntriesUnder`,
|
|
47
|
+
* which is what a composition root composes — so the two cannot answer
|
|
48
|
+
* differently, which is exactly what they used to do: one dropped a colliding
|
|
49
|
+
* manifest with a `continue` while the other composed the module, leaving it
|
|
50
|
+
* with no registry row, no permission-catalogue entry and its routes gated on
|
|
51
|
+
* the effective state of somebody else's module of the same id.
|
|
52
|
+
*
|
|
53
|
+
* The claimed set is derived from what this instance ships and what is
|
|
54
|
+
* installed in it, never written down — so a module that arrives, moves or
|
|
55
|
+
* leaves changes the answer in the same run. It arrives as
|
|
56
|
+
* {@link claimsOutsideTheOverlay}, a **parameter**: its core half comes off the
|
|
57
|
+
* generated manifest index, which is a fact about one tree (D-104, D-160.3), and
|
|
58
|
+
* R7.4 is that a relocated platform file receives such a thing rather than
|
|
59
|
+
* reaching for it. `backend/src/overlay/overlay-runtime.ts` is the binding that
|
|
60
|
+
* supplies it, and an instance writes the same one.
|
|
61
|
+
*
|
|
62
|
+
* This used to be `scanOverlay(root, indexCore(coreModulesRoot())).newModules`
|
|
63
|
+
* — a file-shadowing scan whose core index resolved `backend/src/modules`,
|
|
64
|
+
* which has held no module since F4. With the index empty **every** overlay
|
|
65
|
+
* directory came back as a new module claiming its id, unchecked (D-201).
|
|
66
|
+
*/
|
|
67
|
+
export declare function overlayModuleIdsUnder(root: string, claimsOutsideTheOverlay: readonly ModuleIdClaim[]): string[];
|
|
68
|
+
/**
|
|
69
|
+
* Discover overlay MODULE manifests under one root WITHOUT composing them. Used
|
|
70
|
+
* early in composition to build the deployment-resolved registry the permission
|
|
71
|
+
* catalogue + lifecycle consume (FR-009, FR-012).
|
|
72
|
+
*
|
|
73
|
+
* The **root** is a parameter, not a derivation of this file's own path: which
|
|
74
|
+
* directory holds `apps/<deployment>/modules` is a fact about the application,
|
|
75
|
+
* derived once by `backend/src/overlay/overlay-roots.ts` from its own
|
|
76
|
+
* `import.meta.url` (D115-3), and the platform is not in that tree. The binding
|
|
77
|
+
* beside that derivation is what answers "the active deployment's" — see
|
|
78
|
+
* `backend/src/overlay/overlay-runtime.ts`.
|
|
79
|
+
*
|
|
80
|
+
* The fixture is therefore a directory on disk, scanned and imported by the code
|
|
81
|
+
* the deployment path runs, rather than a value handed to the last function in
|
|
82
|
+
* the chain (issue #130).
|
|
83
|
+
*/
|
|
84
|
+
export declare function overlayModuleManifestsUnder(root: string, ids: readonly string[]): Promise<OverlayModuleManifest[]>;
|
|
85
|
+
/**
|
|
86
|
+
* One overlay root's converted modules, as composer entries (D-103/D-104).
|
|
87
|
+
*
|
|
88
|
+
* The root and the claims are parameters for the reason
|
|
89
|
+
* {@link overlayModuleManifestsUnder} gives: both are facts about the
|
|
90
|
+
* application, and `backend/src/overlay/overlay-runtime.ts` is the binding that
|
|
91
|
+
* answers "the active deployment's" over them.
|
|
92
|
+
*
|
|
93
|
+
* This is the **one** composition path for an overlay module: a root appends
|
|
94
|
+
* these to the core list and passes the single array to `composeModules`, so an
|
|
95
|
+
* overlay module receives an ordinary `ModuleContext` and reaches every seam a
|
|
96
|
+
* core module reaches — `ctx.routes` and its lifecycle gate, `ctx.worker`,
|
|
97
|
+
* `ctx.subscribe`, `ctx.interceptors`, `ctx.onBoot`, ports, and the decoration
|
|
98
|
+
* exemption. The path it replaces handed a frozen seven-field context to a
|
|
99
|
+
* `plugin.ts` factory and could gate nothing.
|
|
100
|
+
*
|
|
101
|
+
* **Discovered at runtime, not baked into a generated core artefact** (D-104).
|
|
102
|
+
* A deployment's manifests already resolve this way and for the stated reason:
|
|
103
|
+
* the answer depends on which deployment the *process* runs as, not on which
|
|
104
|
+
* tree a generator was run against. Registrations have the identical property
|
|
105
|
+
* and used to be given the opposite treatment, which made
|
|
106
|
+
* `composition.generated.ts` and `manifest-index.generated.ts` environment-
|
|
107
|
+
* dependent — an artefact that is always stale for a deployment is one nobody
|
|
108
|
+
* can use to detect a genuinely stale one (issue #120, applied to the family it
|
|
109
|
+
* was missed in).
|
|
110
|
+
*
|
|
111
|
+
* `overlay: true` is set **from the root the module was found under**, which is
|
|
112
|
+
* what `ModuleEntry.overlay`'s own contract requires: it exempts the module
|
|
113
|
+
* from the rule that a module may decorate only what it registered, so it may
|
|
114
|
+
* never be a claim a module makes about itself.
|
|
115
|
+
*
|
|
116
|
+
* Ordering is deterministic — the entries come back in id order and a root
|
|
117
|
+
* appends them after a frozen core list — and it decides nothing about
|
|
118
|
+
* decoration. It used to: this paragraph read "so a deployment's decoration
|
|
119
|
+
* always wraps a core registration that is already there", which was the
|
|
120
|
+
* composer's array position doing policy work. Since D-176 every
|
|
121
|
+
* `ctx.di.decorate` is queued during registration and drained once the last
|
|
122
|
+
* module has registered, so where a module sits in the array cannot grant or
|
|
123
|
+
* refuse a wrap; the ownership guard decides, alone.
|
|
124
|
+
*
|
|
125
|
+
* A module directory with no backend entry point **in either spelling** is
|
|
126
|
+
* skipped, not thrown at — a deployment may ship an overlay directory that only
|
|
127
|
+
* shadows core files. "Either spelling" is the whole of D-165 step C's repair
|
|
128
|
+
* here: this used to ask `existsSync('backend.ts')`, so a compiled deployment's
|
|
129
|
+
* every module took the skip and vanished with no error. A `backend.js`/`.ts`
|
|
130
|
+
* that exports no `registerModule` is a different thing and is refused:
|
|
131
|
+
* skipping it would compose nothing, and the first symptom would be a 404
|
|
132
|
+
* nobody connects to this file.
|
|
133
|
+
*/
|
|
134
|
+
export declare function overlayModuleEntriesUnder(root: string, claimsOutsideTheOverlay: readonly ModuleIdClaim[]): Promise<ModuleEntry[]>;
|
|
135
|
+
/**
|
|
136
|
+
* One deployment's overlay modules, read **once** for both seams
|
|
137
|
+
* (`specs/124-instance-customisation-gap/` FR-001, FR-002).
|
|
138
|
+
*
|
|
139
|
+
* Every composition root that has an overlay root needs the same two answers —
|
|
140
|
+
* the `ModuleEntry` list it composes and the `OverlayModuleManifest` list
|
|
141
|
+
* `resolveManifestEntries` resolves the registry from — and needs them over the
|
|
142
|
+
* **same** ids. Written out at each site that is three lines repeated, and the
|
|
143
|
+
* repetition is what produced the defect this function exists to close:
|
|
144
|
+
* `defaultComposition` composed `overlayModuleEntriesUnder(...)` and passed
|
|
145
|
+
* `overlay: async () => []` four lines below it, so an instance's overlay module
|
|
146
|
+
* reached the container, the permission gate and the presence projection and
|
|
147
|
+
* never `lifecycleManifestRegistry` — the state `resolveManifestEntries`' own
|
|
148
|
+
* doc block calls *"Principle XVII defeated in silence"*, reproduced by
|
|
149
|
+
* construction on the one path an instance takes.
|
|
150
|
+
*
|
|
151
|
+
* `root` is `string | null` on purpose: "this deployment has no overlay root"
|
|
152
|
+
* is the answer {@link activeOverlayModulesRoot} gives, and taking the ternary
|
|
153
|
+
* in here is what stops a caller writing the empty case for one seam and
|
|
154
|
+
* forgetting it for the other.
|
|
155
|
+
*
|
|
156
|
+
* The ids are derived **lazily and once**. Lazily, because the claim set is a
|
|
157
|
+
* `node_modules` scan a root with no overlay must not pay for and because the
|
|
158
|
+
* collision refusal must stay where it fires today — inside the supplier a
|
|
159
|
+
* caller hands to `resolveManifestEntries`, not before it. Once, because
|
|
160
|
+
* `overlayModuleIdsUnder` asserts the claims as it derives them, and asserting
|
|
161
|
+
* the same set twice is wasteful rather than wrong only for as long as the two
|
|
162
|
+
* derivations cannot drift.
|
|
163
|
+
*/
|
|
164
|
+
export interface OverlayModules {
|
|
165
|
+
/** The overlay module ids under this root — `[]` when there is no root. */
|
|
166
|
+
ids(): readonly string[];
|
|
167
|
+
/** The manifest half: what the resolved registry is built from. */
|
|
168
|
+
manifests(): Promise<OverlayModuleManifest[]>;
|
|
169
|
+
/** The registration half: what a composition root composes. */
|
|
170
|
+
entries(): Promise<ModuleEntry[]>;
|
|
171
|
+
}
|
|
172
|
+
export declare function overlayModulesUnder(root: string | null, claimsOutsideTheOverlay: () => readonly ModuleIdClaim[]): OverlayModules;
|
|
173
|
+
//# sourceMappingURL=overlay-runtime.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"overlay-runtime.d.ts","sourceRoot":"","sources":["../../src/overlay/overlay-runtime.ts"],"names":[],"mappings":"AAqCA,OAAO,KAAK,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACxF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAEL,KAAK,aAAa,EACnB,MAAM,2CAA2C,CAAC;AAWnD;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAM3E;AAcD,oFAAoF;AACpF,MAAM,WAAW,qBAAqB;IACpC,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,cAAc,CAAC;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,iFAAiF;IACjF,WAAW,CAAC,EAAE,qBAAqB,CAAC,aAAa,CAAC,CAAC;IACnD,aAAa,CAAC,EAAE,qBAAqB,CAAC,eAAe,CAAC,CAAC;IACvD;;;;;OAKG;IACH,oBAAoB,CAAC,EAAE,qBAAqB,CAAC,sBAAsB,CAAC,CAAC;IACrE;;;;OAIG;IACH,WAAW,CAAC,EAAE,qBAAqB,CAAC,aAAa,CAAC,CAAC;IACnD;;;;OAIG;IACH,cAAc,CAAC,EAAE,qBAAqB,CAAC,gBAAgB,CAAC,CAAC;CAC1D;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,MAAM,EACZ,uBAAuB,EAAE,SAAS,aAAa,EAAE,GAChD,MAAM,EAAE,CAeV;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAsB,2BAA2B,CAC/C,IAAI,EAAE,MAAM,EACZ,GAAG,EAAE,SAAS,MAAM,EAAE,GACrB,OAAO,CAAC,qBAAqB,EAAE,CAAC,CA8ClC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDG;AACH,wBAAsB,yBAAyB,CAC7C,IAAI,EAAE,MAAM,EACZ,uBAAuB,EAAE,SAAS,aAAa,EAAE,GAChD,OAAO,CAAC,WAAW,EAAE,CAAC,CAExB;AA0DD;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAM,WAAW,cAAc;IAC7B,2EAA2E;IAC3E,GAAG,IAAI,SAAS,MAAM,EAAE,CAAC;IACzB,mEAAmE;IACnE,SAAS,IAAI,OAAO,CAAC,qBAAqB,EAAE,CAAC,CAAC;IAC9C,+DAA+D;IAC/D,OAAO,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC;CACnC;AAED,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,MAAM,GAAG,IAAI,EACnB,uBAAuB,EAAE,MAAM,SAAS,aAAa,EAAE,GACtD,cAAc,CAahB"}
|