@wildo-ai/wildo-cli 1.1.2 → 1.1.3
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/dist/bin/wildo.d.ts.map +1 -1
- package/dist/src/__tests__/sandbox-dependencies.test-helpers.d.ts.map +1 -1
- package/dist/src/commands/acp/probe.command.d.ts.map +1 -1
- package/dist/src/commands/acp/probe.command.js +13 -0
- package/dist/src/commands/acp/probe.command.js.map +1 -1
- package/dist/src/commands/align-deps.command.d.ts.map +1 -1
- package/dist/src/commands/assets/sync.command.d.ts +6 -0
- package/dist/src/commands/assets/sync.command.d.ts.map +1 -1
- package/dist/src/commands/assets/sync.command.js +13 -3
- package/dist/src/commands/assets/sync.command.js.map +1 -1
- package/dist/src/commands/brand/propagate.command.d.ts.map +1 -1
- package/dist/src/commands/compose.command.d.ts.map +1 -1
- package/dist/src/commands/compose.command.js +16 -0
- package/dist/src/commands/compose.command.js.map +1 -1
- package/dist/src/commands/config/__tests__/reapply-declaration.command.test.d.ts.map +1 -1
- package/dist/src/commands/config/__tests__/reapply-declaration.command.test.js +1 -1
- package/dist/src/commands/config/__tests__/reapply-declaration.command.test.js.map +1 -1
- package/dist/src/commands/config/__tests__/sync.command.test.d.ts.map +1 -1
- package/dist/src/commands/config/__tests__/sync.command.test.js +115 -8
- package/dist/src/commands/config/__tests__/sync.command.test.js.map +1 -1
- package/dist/src/commands/config/__tests__/validate.command.test.d.ts.map +1 -1
- package/dist/src/commands/config/mutate.command.d.ts.map +1 -1
- package/dist/src/commands/config/reapply-declaration.command.d.ts.map +1 -1
- package/dist/src/commands/config/sync.command.d.ts +36 -0
- package/dist/src/commands/config/sync.command.d.ts.map +1 -1
- package/dist/src/commands/config/sync.command.js +61 -7
- package/dist/src/commands/config/sync.command.js.map +1 -1
- package/dist/src/commands/config/validate.command.d.ts.map +1 -1
- package/dist/src/commands/context/__tests__/jurisdictions.command.test.d.ts +19 -0
- package/dist/src/commands/context/__tests__/jurisdictions.command.test.d.ts.map +1 -0
- package/dist/src/commands/context/__tests__/jurisdictions.command.test.js +106 -0
- package/dist/src/commands/context/__tests__/jurisdictions.command.test.js.map +1 -0
- package/dist/src/commands/context/coherence.command.d.ts.map +1 -1
- package/dist/src/commands/context/context-command.utils.d.ts.map +1 -1
- package/dist/src/commands/context/health.command.d.ts.map +1 -1
- package/dist/src/commands/context/info.command.d.ts.map +1 -1
- package/dist/src/commands/context/journey.command.d.ts +6 -2
- package/dist/src/commands/context/journey.command.d.ts.map +1 -1
- package/dist/src/commands/context/journey.command.js +8 -4
- package/dist/src/commands/context/journey.command.js.map +1 -1
- package/dist/src/commands/context/jurisdictions.command.d.ts +36 -0
- package/dist/src/commands/context/jurisdictions.command.d.ts.map +1 -0
- package/dist/src/commands/context/jurisdictions.command.js +115 -0
- package/dist/src/commands/context/jurisdictions.command.js.map +1 -0
- package/dist/src/commands/context/list.command.d.ts.map +1 -1
- package/dist/src/commands/db/db-schema-plan.utils.d.ts.map +1 -1
- package/dist/src/commands/db/diff.command.d.ts.map +1 -1
- package/dist/src/commands/db/generate.command.d.ts.map +1 -1
- package/dist/src/commands/db/migrate.command.d.ts.map +1 -1
- package/dist/src/commands/db/resolve.command.d.ts.map +1 -1
- package/dist/src/commands/dev/__tests__/design-tokens.command.test.d.ts.map +1 -1
- package/dist/src/commands/dev/__tests__/start.command.test.d.ts.map +1 -1
- package/dist/src/commands/dev/__tests__/start.command.test.js +6 -6
- package/dist/src/commands/dev/__tests__/start.command.test.js.map +1 -1
- package/dist/src/commands/dev/__tests__/stop.command.test.d.ts.map +1 -1
- package/dist/src/commands/dev/__tests__/sync-csp.command.test.d.ts.map +1 -1
- package/dist/src/commands/dev/__tests__/sync-csp.command.test.js +71 -0
- package/dist/src/commands/dev/__tests__/sync-csp.command.test.js.map +1 -1
- package/dist/src/commands/dev/charts-audit.command.d.ts.map +1 -1
- package/dist/src/commands/dev/charts-audit.command.js +1 -1
- package/dist/src/commands/dev/charts-audit.command.js.map +1 -1
- package/dist/src/commands/dev/design-tokens-generate.command.d.ts.map +1 -1
- package/dist/src/commands/dev/design-tokens-init.command.d.ts.map +1 -1
- package/dist/src/commands/dev/design-tokens-validate.command.d.ts.map +1 -1
- package/dist/src/commands/dev/force-stop.command.d.ts.map +1 -1
- package/dist/src/commands/dev/resources.command.d.ts.map +1 -1
- package/dist/src/commands/dev/start.command.d.ts.map +1 -1
- package/dist/src/commands/dev/start.command.js +8 -7
- package/dist/src/commands/dev/start.command.js.map +1 -1
- package/dist/src/commands/dev/stop-all.command.d.ts.map +1 -1
- package/dist/src/commands/dev/sync-csp.command.d.ts.map +1 -1
- package/dist/src/commands/dev/sync-csp.command.js +35 -7
- package/dist/src/commands/dev/sync-csp.command.js.map +1 -1
- package/dist/src/commands/docs/__tests__/publish.command.test.d.ts +2 -0
- package/dist/src/commands/docs/__tests__/publish.command.test.d.ts.map +1 -0
- package/dist/src/commands/docs/__tests__/publish.command.test.js +101 -0
- package/dist/src/commands/docs/__tests__/publish.command.test.js.map +1 -0
- package/dist/src/commands/docs/publish.command.d.ts +29 -0
- package/dist/src/commands/docs/publish.command.d.ts.map +1 -0
- package/dist/src/commands/docs/publish.command.js +82 -0
- package/dist/src/commands/docs/publish.command.js.map +1 -0
- package/dist/src/commands/frontend/publish.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/__tests__/dev-skills.command.test.d.ts.map +1 -1
- package/dist/src/commands/fwk/__tests__/generate-docs.command.test.d.ts.map +1 -1
- package/dist/src/commands/fwk/__tests__/generate-docs.command.test.js.map +1 -1
- package/dist/src/commands/fwk/audit.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/dev-skills.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/dev-skills.command.js +12 -0
- package/dist/src/commands/fwk/dev-skills.command.js.map +1 -1
- package/dist/src/commands/fwk/generate-docs.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/generate-providers.command.d.ts +21 -0
- package/dist/src/commands/fwk/generate-providers.command.d.ts.map +1 -0
- package/dist/src/commands/fwk/generate-providers.command.js +309 -0
- package/dist/src/commands/fwk/generate-providers.command.js.map +1 -0
- package/dist/src/commands/fwk/graph.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/publish-all.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/publish-docker.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/publish-npm.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/version-bump.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/version-set.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/version-show.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/version-show.command.js +9 -1
- package/dist/src/commands/fwk/version-show.command.js.map +1 -1
- package/dist/src/commands/fwk/version-sync.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/what-touches.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/wt-status.command.d.ts +13 -4
- package/dist/src/commands/fwk/wt-status.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/wt-status.command.js +34 -5
- package/dist/src/commands/fwk/wt-status.command.js.map +1 -1
- package/dist/src/commands/fwk/wt-tail.command.d.ts +12 -6
- package/dist/src/commands/fwk/wt-tail.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/wt-tail.command.js +40 -10
- package/dist/src/commands/fwk/wt-tail.command.js.map +1 -1
- package/dist/src/commands/generate/__tests__/email-command.utils.test.d.ts.map +1 -1
- package/dist/src/commands/generate/__tests__/email-command.utils.test.js +0 -1
- package/dist/src/commands/generate/__tests__/email-command.utils.test.js.map +1 -1
- package/dist/src/commands/generate/email-command.utils.d.ts.map +1 -1
- package/dist/src/commands/generate/email-command.utils.js +1 -0
- package/dist/src/commands/generate/email-command.utils.js.map +1 -1
- package/dist/src/commands/generate/email-preview.command.d.ts.map +1 -1
- package/dist/src/commands/generate/email-status.command.d.ts.map +1 -1
- package/dist/src/commands/generate/email-test-send.command.d.ts.map +1 -1
- package/dist/src/commands/generate/email-translate.command.d.ts.map +1 -1
- package/dist/src/commands/generate/email.command.d.ts.map +1 -1
- package/dist/src/commands/generate/labelling-command.utils.d.ts.map +1 -1
- package/dist/src/commands/generate/labelling-command.utils.js +1 -0
- package/dist/src/commands/generate/labelling-command.utils.js.map +1 -1
- package/dist/src/commands/generate/labels-plan.command.d.ts.map +1 -1
- package/dist/src/commands/generate/labels.command.d.ts.map +1 -1
- package/dist/src/commands/generate/translate.command.d.ts.map +1 -1
- package/dist/src/commands/help.command.d.ts.map +1 -1
- package/dist/src/commands/help.command.js +2 -0
- package/dist/src/commands/help.command.js.map +1 -1
- package/dist/src/commands/init.command.d.ts +17 -0
- package/dist/src/commands/init.command.d.ts.map +1 -1
- package/dist/src/commands/init.command.js +57 -4
- package/dist/src/commands/init.command.js.map +1 -1
- package/dist/src/commands/local/__tests__/dev-status.command.test.d.ts.map +1 -1
- package/dist/src/commands/local/__tests__/dev.command.test.d.ts.map +1 -1
- package/dist/src/commands/local/__tests__/dev.command.test.js +60 -0
- package/dist/src/commands/local/__tests__/dev.command.test.js.map +1 -1
- package/dist/src/commands/local/__tests__/doctor.command.test.d.ts.map +1 -1
- package/dist/src/commands/local/__tests__/doctor.command.test.js +16 -2
- package/dist/src/commands/local/__tests__/doctor.command.test.js.map +1 -1
- package/dist/src/commands/local/__tests__/init.command.test.d.ts.map +1 -1
- package/dist/src/commands/local/__tests__/init.command.test.js +28 -1
- package/dist/src/commands/local/__tests__/init.command.test.js.map +1 -1
- package/dist/src/commands/local/__tests__/reinit.command.test.d.ts.map +1 -1
- package/dist/src/commands/local/__tests__/reset.command.test.d.ts.map +1 -1
- package/dist/src/commands/local/__tests__/up.command.test.d.ts.map +1 -1
- package/dist/src/commands/local/__tests__/up.command.test.js +7 -0
- package/dist/src/commands/local/__tests__/up.command.test.js.map +1 -1
- package/dist/src/commands/local/dev-status.command.d.ts.map +1 -1
- package/dist/src/commands/local/dev.command.d.ts +6 -3
- package/dist/src/commands/local/dev.command.d.ts.map +1 -1
- package/dist/src/commands/local/dev.command.js +13 -4
- package/dist/src/commands/local/dev.command.js.map +1 -1
- package/dist/src/commands/local/doctor.command.d.ts +9 -0
- package/dist/src/commands/local/doctor.command.d.ts.map +1 -1
- package/dist/src/commands/local/doctor.command.js +24 -6
- package/dist/src/commands/local/doctor.command.js.map +1 -1
- package/dist/src/commands/local/down.command.d.ts.map +1 -1
- package/dist/src/commands/local/init.command.d.ts.map +1 -1
- package/dist/src/commands/local/init.command.js +11 -2
- package/dist/src/commands/local/init.command.js.map +1 -1
- package/dist/src/commands/local/logs.command.d.ts.map +1 -1
- package/dist/src/commands/local/reinit.command.d.ts.map +1 -1
- package/dist/src/commands/local/reset.command.d.ts.map +1 -1
- package/dist/src/commands/local/status.command.d.ts.map +1 -1
- package/dist/src/commands/local/up.command.d.ts.map +1 -1
- package/dist/src/commands/local/up.command.js.map +1 -1
- package/dist/src/commands/lock/__tests__/check.command.test.d.ts.map +1 -1
- package/dist/src/commands/lock/__tests__/check.live.contract.test.d.ts.map +1 -1
- package/dist/src/commands/lock/check.command.d.ts.map +1 -1
- package/dist/src/commands/lock/check.command.js +3 -10
- package/dist/src/commands/lock/check.command.js.map +1 -1
- package/dist/src/commands/market/__tests__/generate.command.test.d.ts.map +1 -1
- package/dist/src/commands/market/__tests__/market-command.utils.test.d.ts.map +1 -1
- package/dist/src/commands/market/__tests__/market-command.utils.test.js +0 -1
- package/dist/src/commands/market/__tests__/market-command.utils.test.js.map +1 -1
- package/dist/src/commands/market/generate.command.d.ts.map +1 -1
- package/dist/src/commands/market/market-command.utils.d.ts.map +1 -1
- package/dist/src/commands/market/market-command.utils.js +1 -0
- package/dist/src/commands/market/market-command.utils.js.map +1 -1
- package/dist/src/commands/providers/__tests__/required-inputs.test.d.ts +2 -0
- package/dist/src/commands/providers/__tests__/required-inputs.test.d.ts.map +1 -0
- package/dist/src/commands/providers/__tests__/required-inputs.test.js +35 -0
- package/dist/src/commands/providers/__tests__/required-inputs.test.js.map +1 -0
- package/dist/src/commands/providers/show.command.d.ts +51 -0
- package/dist/src/commands/providers/show.command.d.ts.map +1 -0
- package/dist/src/commands/providers/show.command.js +152 -0
- package/dist/src/commands/providers/show.command.js.map +1 -0
- package/dist/src/commands/registry/add.command.d.ts.map +1 -1
- package/dist/src/commands/registry/info.command.d.ts.map +1 -1
- package/dist/src/commands/registry/lockfile-smoke.command.d.ts.map +1 -1
- package/dist/src/commands/registry/login.command.d.ts.map +1 -1
- package/dist/src/commands/registry/logout.command.d.ts.map +1 -1
- package/dist/src/commands/registry/ping.command.d.ts.map +1 -1
- package/dist/src/commands/registry/publish.command.d.ts.map +1 -1
- package/dist/src/commands/registry/remove.command.d.ts.map +1 -1
- package/dist/src/commands/registry/repair-lockfile.command.d.ts.map +1 -1
- package/dist/src/commands/registry/search.command.d.ts.map +1 -1
- package/dist/src/commands/registry/update.command.d.ts.map +1 -1
- package/dist/src/commands/registry/whoami.command.d.ts.map +1 -1
- package/dist/src/commands/remote/__tests__/remote-commands.test.d.ts.map +1 -1
- package/dist/src/commands/remote/create.command.d.ts.map +1 -1
- package/dist/src/commands/remote/list.command.d.ts.map +1 -1
- package/dist/src/commands/remote/status.command.d.ts.map +1 -1
- package/dist/src/commands/remote/sync.command.d.ts.map +1 -1
- package/dist/src/commands/setup.command.d.ts.map +1 -1
- package/dist/src/commands/version.command.d.ts.map +1 -1
- package/dist/src/commands/website/__tests__/audit.command.test.d.ts.map +1 -1
- package/dist/src/commands/website/audit.command.d.ts.map +1 -1
- package/dist/src/commands/workbench/__tests__/workbench.commands.test.d.ts.map +1 -1
- package/dist/src/commands/workbench/open.command.d.ts.map +1 -1
- package/dist/src/commands/workbench/status.command.d.ts.map +1 -1
- package/dist/src/infrastructure/errors/error.utils.d.ts.map +1 -1
- package/dist/src/infrastructure/io/file.utils.d.ts.map +1 -1
- package/dist/src/infrastructure/io/io.schemas.d.ts.map +1 -1
- package/dist/src/infrastructure/io/template-processor.d.ts.map +1 -1
- package/dist/src/infrastructure/logger/logger.service.d.ts.map +1 -1
- package/dist/src/infrastructure/process/__tests__/spawn.utils.test.d.ts.map +1 -1
- package/dist/src/infrastructure/process/spawn.utils.d.ts.map +1 -1
- package/dist/src/infrastructure/ui/formatting.service.d.ts.map +1 -1
- package/dist/src/infrastructure/ui/interaction-engine.service.d.ts.map +1 -1
- package/dist/src/infrastructure/ui/markdown-renderer.service.d.ts.map +1 -1
- package/dist/src/infrastructure/ui/ui.schemas.d.ts.map +1 -1
- package/dist/src/infrastructure/utils/string.utils.d.ts.map +1 -1
- package/dist/src/infrastructure/validation/validator.service.d.ts.map +1 -1
- package/dist/src/kernel/__tests__/bootstrap.test.d.ts.map +1 -1
- package/dist/src/kernel/__tests__/command-registry.test.d.ts.map +1 -1
- package/dist/src/kernel/__tests__/command-registry.test.js +9 -0
- package/dist/src/kernel/__tests__/command-registry.test.js.map +1 -1
- package/dist/src/kernel/__tests__/command-runner.test.d.ts.map +1 -1
- package/dist/src/kernel/__tests__/command-scope-utils.test.d.ts.map +1 -1
- package/dist/src/kernel/__tests__/flag-utils.test.d.ts.map +1 -1
- package/dist/src/kernel/__tests__/hooks.test.d.ts.map +1 -1
- package/dist/src/kernel/base-command.d.ts.map +1 -1
- package/dist/src/kernel/bootstrap.d.ts.map +1 -1
- package/dist/src/kernel/command-registry.d.ts.map +1 -1
- package/dist/src/kernel/command-registry.js +6 -0
- package/dist/src/kernel/command-registry.js.map +1 -1
- package/dist/src/kernel/command-runner.d.ts.map +1 -1
- package/dist/src/kernel/command-scope-utils.d.ts.map +1 -1
- package/dist/src/kernel/flag-utils.d.ts.map +1 -1
- package/dist/src/kernel/hooks.d.ts.map +1 -1
- package/dist/src/kernel/logger.d.ts.map +1 -1
- package/dist/src/kernel/types.d.ts +17 -1
- package/dist/src/kernel/types.d.ts.map +1 -1
- package/dist/src/kernel/types.js +16 -0
- package/dist/src/kernel/types.js.map +1 -1
- package/dist/src/main.d.ts.map +1 -1
- package/dist/src/modules/domain/credentials/__tests__/admin-user.module.test.d.ts.map +1 -1
- package/dist/src/modules/domain/credentials/__tests__/providers-config.module.test.d.ts.map +1 -1
- package/dist/src/modules/domain/credentials/__tests__/providers-config.module.test.js +2 -2
- package/dist/src/modules/domain/credentials/__tests__/providers-config.module.test.js.map +1 -1
- package/dist/src/modules/domain/credentials/admin-user.module.d.ts.map +1 -1
- package/dist/src/modules/domain/credentials/module.types.d.ts.map +1 -1
- package/dist/src/modules/domain/credentials/providers-config.module.d.ts +17 -9
- package/dist/src/modules/domain/credentials/providers-config.module.d.ts.map +1 -1
- package/dist/src/modules/domain/credentials/providers-config.module.js +18 -10
- package/dist/src/modules/domain/credentials/providers-config.module.js.map +1 -1
- package/dist/src/modules/domain/environment/__tests__/database-config.module.test.d.ts.map +1 -1
- package/dist/src/modules/domain/environment/database-config.module.d.ts.map +1 -1
- package/dist/src/modules/domain/environment/module.types.d.ts.map +1 -1
- package/dist/src/modules/domain/environment/paths-config.module.d.ts.map +1 -1
- package/dist/src/modules/domain/environment/runtime-selector.module.d.ts.map +1 -1
- package/dist/src/modules/domain/environment/runtime-semantics.module.d.ts.map +1 -1
- package/dist/src/modules/domain/module.types.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/app-bootstrap.service.apps-manager-reconnect.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/app-bootstrap.service.degraded-env.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/app-bootstrap.service.operation-timeout.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/app-bootstrap.service.operation-timeout.test.js +1 -1
- package/dist/src/services/application/__tests__/app-bootstrap.service.operation-timeout.test.js.map +1 -1
- package/dist/src/services/application/__tests__/app-bootstrap.service.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/app-bootstrap.service.test.js +22 -29
- package/dist/src/services/application/__tests__/app-bootstrap.service.test.js.map +1 -1
- package/dist/src/services/application/__tests__/app-bootstrap.two-phase-seeding.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/app-bootstrap.two-phase-seeding.test.js +1 -1
- package/dist/src/services/application/__tests__/app-bootstrap.two-phase-seeding.test.js.map +1 -1
- package/dist/src/services/application/__tests__/app-runtime-targets.service.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/app-runtime-targets.service.test.js +2 -2
- package/dist/src/services/application/__tests__/app-runtime-targets.service.test.js.map +1 -1
- package/dist/src/services/application/__tests__/application-assets-delivery.service.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/application-assets-delivery.service.test.js +19 -0
- package/dist/src/services/application/__tests__/application-assets-delivery.service.test.js.map +1 -1
- package/dist/src/services/application/__tests__/application-dependency-alignment.service.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/application-initialization-verification.service.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/application-runtime-bootstrap.service.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/apps-manager-unavailable-classification.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/apps-manager-unavailable-classification.test.js.map +1 -1
- package/dist/src/services/application/__tests__/audit-provider-immudb-backing.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/dev-orchestrator.service.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/dev-schema-drift.service.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/existing-app-bootstrap.service.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/existing-app-bootstrap.service.test.js +0 -1
- package/dist/src/services/application/__tests__/existing-app-bootstrap.service.test.js.map +1 -1
- package/dist/src/services/application/__tests__/local-app-reinit.service.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/local-app-reinit.service.test.js +8 -1
- package/dist/src/services/application/__tests__/local-app-reinit.service.test.js.map +1 -1
- package/dist/src/services/application/__tests__/local-application-initialization.guard.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/local-application-initialization.service.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/local-application-initialization.service.test.js +35 -0
- package/dist/src/services/application/__tests__/local-application-initialization.service.test.js.map +1 -1
- package/dist/src/services/application/__tests__/provider-package-links.service.test.d.ts +2 -0
- package/dist/src/services/application/__tests__/provider-package-links.service.test.d.ts.map +1 -0
- package/dist/src/services/application/__tests__/provider-package-links.service.test.js +156 -0
- package/dist/src/services/application/__tests__/provider-package-links.service.test.js.map +1 -0
- package/dist/src/services/application/__tests__/provider-runtime-sync.service.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/provider-runtime-sync.service.test.js +28 -0
- package/dist/src/services/application/__tests__/provider-runtime-sync.service.test.js.map +1 -1
- package/dist/src/services/application/__tests__/saas-and-infra-contracts.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/saas-and-infra-contracts.test.js +0 -1
- package/dist/src/services/application/__tests__/saas-and-infra-contracts.test.js.map +1 -1
- package/dist/src/services/application/__tests__/saas-scaffold.service.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/saas-skeleton.service.test.d.ts.map +1 -1
- package/dist/src/services/application/__tests__/saas-skeleton.service.test.js.map +1 -1
- package/dist/src/services/application/app-bootstrap.service.d.ts +34 -10
- package/dist/src/services/application/app-bootstrap.service.d.ts.map +1 -1
- package/dist/src/services/application/app-bootstrap.service.js +62 -48
- package/dist/src/services/application/app-bootstrap.service.js.map +1 -1
- package/dist/src/services/application/app-env.service.d.ts.map +1 -1
- package/dist/src/services/application/app-local-runtime-addresses.service.d.ts.map +1 -1
- package/dist/src/services/application/app-runtime-targets.service.d.ts.map +1 -1
- package/dist/src/services/application/app-schema-bootstrap.service.d.ts.map +1 -1
- package/dist/src/services/application/application-assets-delivery.service.d.ts +22 -1
- package/dist/src/services/application/application-assets-delivery.service.d.ts.map +1 -1
- package/dist/src/services/application/application-assets-delivery.service.js +35 -7
- package/dist/src/services/application/application-assets-delivery.service.js.map +1 -1
- package/dist/src/services/application/application-dependency-alignment.service.d.ts.map +1 -1
- package/dist/src/services/application/application-dev-port-offsets.d.ts.map +1 -1
- package/dist/src/services/application/application-initialization-verification.service.d.ts.map +1 -1
- package/dist/src/services/application/application-root.utils.d.ts.map +1 -1
- package/dist/src/services/application/application-runtime-bootstrap.service.d.ts.map +1 -1
- package/dist/src/services/application/application-runtime-bootstrap.service.js +0 -2
- package/dist/src/services/application/application-runtime-bootstrap.service.js.map +1 -1
- package/dist/src/services/application/dev-orchestrator.service.d.ts.map +1 -1
- package/dist/src/services/application/dev-schema-drift.service.d.ts.map +1 -1
- package/dist/src/services/application/existing-app-bootstrap.service.d.ts.map +1 -1
- package/dist/src/services/application/local-app-reinit.service.d.ts.map +1 -1
- package/dist/src/services/application/local-application-initialization.service.d.ts.map +1 -1
- package/dist/src/services/application/local-application-initialization.service.js +22 -6
- package/dist/src/services/application/local-application-initialization.service.js.map +1 -1
- package/dist/src/services/application/provider-package-links.service.d.ts +130 -0
- package/dist/src/services/application/provider-package-links.service.d.ts.map +1 -0
- package/dist/src/services/application/provider-package-links.service.js +280 -0
- package/dist/src/services/application/provider-package-links.service.js.map +1 -0
- package/dist/src/services/application/provider-runtime-sync.service.d.ts.map +1 -1
- package/dist/src/services/application/provider-runtime-sync.service.js +6 -20
- package/dist/src/services/application/provider-runtime-sync.service.js.map +1 -1
- package/dist/src/services/application/saas-scaffold.service.d.ts.map +1 -1
- package/dist/src/services/application/saas-scaffold.service.js +11 -2
- package/dist/src/services/application/saas-scaffold.service.js.map +1 -1
- package/dist/src/services/application/saas-skeleton.service.d.ts.map +1 -1
- package/dist/src/services/application/saas-skeleton.service.js +24 -24
- package/dist/src/services/application/saas-skeleton.service.js.map +1 -1
- package/dist/src/services/brand/__tests__/brand-asset-delivery.test.d.ts.map +1 -1
- package/dist/src/services/brand/brand-asset-projection.d.ts.map +1 -1
- package/dist/src/services/brand/brand-destination-utils.d.ts.map +1 -1
- package/dist/src/services/brand/brand-propagation.types.d.ts.map +1 -1
- package/dist/src/services/brand/brand-ssot-reader.d.ts.map +1 -1
- package/dist/src/services/brand/destinations/app-public.destination.d.ts.map +1 -1
- package/dist/src/services/brand/destinations/runtime-app-config.destination.d.ts.map +1 -1
- package/dist/src/services/brand/destinations/technical-doc-static.destination.d.ts.map +1 -1
- package/dist/src/services/brand/destinations/website-og.destination.d.ts.map +1 -1
- package/dist/src/services/brand/destinations/website-public.destination.d.ts.map +1 -1
- package/dist/src/services/catalog/__tests__/durable-state-classification.test.d.ts +2 -0
- package/dist/src/services/catalog/__tests__/durable-state-classification.test.d.ts.map +1 -0
- package/dist/src/services/catalog/__tests__/durable-state-classification.test.js +93 -0
- package/dist/src/services/catalog/__tests__/durable-state-classification.test.js.map +1 -0
- package/dist/src/services/catalog/__tests__/service-address-resolver.service.test.d.ts.map +1 -1
- package/dist/src/services/catalog/__tests__/service-address-resolver.service.test.js +25 -5
- package/dist/src/services/catalog/__tests__/service-address-resolver.service.test.js.map +1 -1
- package/dist/src/services/catalog/__tests__/service-catalog.schemas.test.d.ts.map +1 -1
- package/dist/src/services/catalog/__tests__/service-catalog.schemas.test.js +109 -51
- package/dist/src/services/catalog/__tests__/service-catalog.schemas.test.js.map +1 -1
- package/dist/src/services/catalog/service-address-resolver.service.d.ts +0 -1
- package/dist/src/services/catalog/service-address-resolver.service.d.ts.map +1 -1
- package/dist/src/services/catalog/service-address-resolver.service.js +23 -7
- package/dist/src/services/catalog/service-address-resolver.service.js.map +1 -1
- package/dist/src/services/catalog/service-catalog.schemas.d.ts +148 -51
- package/dist/src/services/catalog/service-catalog.schemas.d.ts.map +1 -1
- package/dist/src/services/catalog/service-catalog.schemas.js +230 -78
- package/dist/src/services/catalog/service-catalog.schemas.js.map +1 -1
- package/dist/src/services/coding-agents/__tests__/acp-conformance-probe.service.test.d.ts +2 -0
- package/dist/src/services/coding-agents/__tests__/acp-conformance-probe.service.test.d.ts.map +1 -0
- package/dist/src/services/coding-agents/__tests__/acp-conformance-probe.service.test.js +110 -0
- package/dist/src/services/coding-agents/__tests__/acp-conformance-probe.service.test.js.map +1 -0
- package/dist/src/services/coding-agents/acp-conformance-probe.service.d.ts +32 -0
- package/dist/src/services/coding-agents/acp-conformance-probe.service.d.ts.map +1 -1
- package/dist/src/services/coding-agents/acp-conformance-probe.service.js +165 -7
- package/dist/src/services/coding-agents/acp-conformance-probe.service.js.map +1 -1
- package/dist/src/services/companion/__tests__/companion-client.service.test.d.ts.map +1 -1
- package/dist/src/services/companion/__tests__/companion-client.service.test.js +96 -0
- package/dist/src/services/companion/__tests__/companion-client.service.test.js.map +1 -1
- package/dist/src/services/companion/__tests__/companion-lifecycle.service.test.d.ts.map +1 -1
- package/dist/src/services/companion/__tests__/workbench-browser-launcher.service.test.d.ts.map +1 -1
- package/dist/src/services/companion/__tests__/workbench-cli.service.test.d.ts.map +1 -1
- package/dist/src/services/companion/companion-client-options.utils.d.ts.map +1 -1
- package/dist/src/services/companion/companion-client-options.utils.js +6 -0
- package/dist/src/services/companion/companion-client-options.utils.js.map +1 -1
- package/dist/src/services/companion/companion-client.service.d.ts.map +1 -1
- package/dist/src/services/companion/companion-client.service.js +34 -0
- package/dist/src/services/companion/companion-client.service.js.map +1 -1
- package/dist/src/services/companion/companion-lifecycle.service.d.ts.map +1 -1
- package/dist/src/services/companion/companion-local-token.utils.d.ts +20 -0
- package/dist/src/services/companion/companion-local-token.utils.d.ts.map +1 -0
- package/dist/src/services/companion/companion-local-token.utils.js +62 -0
- package/dist/src/services/companion/companion-local-token.utils.js.map +1 -0
- package/dist/src/services/companion/companion.schemas.d.ts +12 -0
- package/dist/src/services/companion/companion.schemas.d.ts.map +1 -1
- package/dist/src/services/companion/companion.schemas.js.map +1 -1
- package/dist/src/services/companion/git-helper.service.d.ts.map +1 -1
- package/dist/src/services/companion/local-companion-authority.service.d.ts.map +1 -1
- package/dist/src/services/companion/local-companion-authority.service.js +9 -30
- package/dist/src/services/companion/local-companion-authority.service.js.map +1 -1
- package/dist/src/services/companion/workbench-browser-launcher.service.d.ts.map +1 -1
- package/dist/src/services/companion/workbench-cli.service.d.ts.map +1 -1
- package/dist/src/services/context/__tests__/context-manager.installed-assets.test.d.ts.map +1 -1
- package/dist/src/services/context/__tests__/context-manager.installed-assets.test.js +7 -0
- package/dist/src/services/context/__tests__/context-manager.installed-assets.test.js.map +1 -1
- package/dist/src/services/context/__tests__/context-manager.service.test.d.ts.map +1 -1
- package/dist/src/services/context/context-manager.service.d.ts +9 -0
- package/dist/src/services/context/context-manager.service.d.ts.map +1 -1
- package/dist/src/services/context/context-manager.service.js +13 -1
- package/dist/src/services/context/context-manager.service.js.map +1 -1
- package/dist/src/services/context/context.schemas.d.ts.map +1 -1
- package/dist/src/services/context/state-manager.service.d.ts.map +1 -1
- package/dist/src/services/credentials/__tests__/ci-secrets-mapping.test.d.ts +28 -0
- package/dist/src/services/credentials/__tests__/ci-secrets-mapping.test.d.ts.map +1 -0
- package/dist/src/services/credentials/__tests__/ci-secrets-mapping.test.js +197 -0
- package/dist/src/services/credentials/__tests__/ci-secrets-mapping.test.js.map +1 -0
- package/dist/src/services/credentials/__tests__/composed-provider-secrets.guard.test.d.ts +2 -0
- package/dist/src/services/credentials/__tests__/composed-provider-secrets.guard.test.d.ts.map +1 -0
- package/dist/src/services/credentials/__tests__/composed-provider-secrets.guard.test.js +327 -0
- package/dist/src/services/credentials/__tests__/composed-provider-secrets.guard.test.js.map +1 -0
- package/dist/src/services/credentials/__tests__/framework-managed-secrets.test.d.ts.map +1 -1
- package/dist/src/services/credentials/__tests__/secrets-contracts.test.d.ts.map +1 -1
- package/dist/src/services/credentials/ci-secrets-adapter.service.d.ts.map +1 -1
- package/dist/src/services/credentials/ci-secrets-adapter.service.js +98 -37
- package/dist/src/services/credentials/ci-secrets-adapter.service.js.map +1 -1
- package/dist/src/services/credentials/composed-provider-catalogue.d.ts +175 -0
- package/dist/src/services/credentials/composed-provider-catalogue.d.ts.map +1 -0
- package/dist/src/services/credentials/composed-provider-catalogue.js +228 -0
- package/dist/src/services/credentials/composed-provider-catalogue.js.map +1 -0
- package/dist/src/services/credentials/credentials.schemas.d.ts +2 -22
- package/dist/src/services/credentials/credentials.schemas.d.ts.map +1 -1
- package/dist/src/services/credentials/credentials.schemas.js +17 -5
- package/dist/src/services/credentials/credentials.schemas.js.map +1 -1
- package/dist/src/services/credentials/credentials.service.d.ts.map +1 -1
- package/dist/src/services/credentials/framework-managed-secrets.d.ts +105 -1
- package/dist/src/services/credentials/framework-managed-secrets.d.ts.map +1 -1
- package/dist/src/services/credentials/framework-managed-secrets.js +2 -0
- package/dist/src/services/credentials/framework-managed-secrets.js.map +1 -1
- package/dist/src/services/credentials/provider-env-vars.utils.d.ts +127 -7
- package/dist/src/services/credentials/provider-env-vars.utils.d.ts.map +1 -1
- package/dist/src/services/credentials/provider-env-vars.utils.js +189 -45
- package/dist/src/services/credentials/provider-env-vars.utils.js.map +1 -1
- package/dist/src/services/credentials/secrets-provisioning.service.d.ts.map +1 -1
- package/dist/src/services/credentials/secrets-reader.service.d.ts.map +1 -1
- package/dist/src/services/credentials/secrets-rotation.service.d.ts.map +1 -1
- package/dist/src/services/credentials/secrets-writer.service.d.ts.map +1 -1
- package/dist/src/services/data-services/data-services.schemas.d.ts +0 -1
- package/dist/src/services/data-services/data-services.schemas.d.ts.map +1 -1
- package/dist/src/services/data-services/data-services.schemas.js +0 -1
- package/dist/src/services/data-services/data-services.schemas.js.map +1 -1
- package/dist/src/services/data-services/data-services.service.d.ts.map +1 -1
- package/dist/src/services/deployment/__tests__/apps-manager-diagnostics.service.test.d.ts.map +1 -1
- package/dist/src/services/deployment/__tests__/ci-deploy-generator.service.test.d.ts.map +1 -1
- package/dist/src/services/deployment/__tests__/ci-deploy-generator.service.test.js +91 -1
- package/dist/src/services/deployment/__tests__/ci-deploy-generator.service.test.js.map +1 -1
- package/dist/src/services/deployment/__tests__/ci-workflow-generator.service.test.d.ts.map +1 -1
- package/dist/src/services/deployment/__tests__/deployment-template-contracts.test.d.ts.map +1 -1
- package/dist/src/services/deployment/__tests__/deployment-template-contracts.test.js +45 -15
- package/dist/src/services/deployment/__tests__/deployment-template-contracts.test.js.map +1 -1
- package/dist/src/services/deployment/__tests__/host-toolchain-readiness.service.test.d.ts.map +1 -1
- package/dist/src/services/deployment/__tests__/host-toolchain-readiness.service.test.js +33 -1
- package/dist/src/services/deployment/__tests__/host-toolchain-readiness.service.test.js.map +1 -1
- package/dist/src/services/deployment/__tests__/infra-templates-render-smoke.test.d.ts.map +1 -1
- package/dist/src/services/deployment/__tests__/local-dev-observer-lifecycle.test.d.ts.map +1 -1
- package/dist/src/services/deployment/__tests__/local-dev-output-boundary.test.d.ts.map +1 -1
- package/dist/src/services/deployment/__tests__/local-dev-session-lease.service.test.d.ts.map +1 -1
- package/dist/src/services/deployment/__tests__/local-dev-shutdown-coordinator.test.d.ts.map +1 -1
- package/dist/src/services/deployment/__tests__/local-precondition-checks.service.test.d.ts.map +1 -1
- package/dist/src/services/deployment/__tests__/local-precondition-checks.service.test.js +44 -1
- package/dist/src/services/deployment/__tests__/local-precondition-checks.service.test.js.map +1 -1
- package/dist/src/services/deployment/__tests__/local-runtime-process-cleanup.service.test.d.ts.map +1 -1
- package/dist/src/services/deployment/__tests__/parity.compose-vs-k8s.test.d.ts.map +1 -1
- package/dist/src/services/deployment/__tests__/parity.compose-vs-k8s.test.js +82 -87
- package/dist/src/services/deployment/__tests__/parity.compose-vs-k8s.test.js.map +1 -1
- package/dist/src/services/deployment/__tests__/platform-lifecycle.service.test.d.ts.map +1 -1
- package/dist/src/services/deployment/__tests__/platform-runtime-policy.service.test.d.ts.map +1 -1
- package/dist/src/services/deployment/apps-manager-diagnostics.service.d.ts.map +1 -1
- package/dist/src/services/deployment/ci-deploy-generator.service.d.ts.map +1 -1
- package/dist/src/services/deployment/ci-deploy-generator.service.js +11 -1
- package/dist/src/services/deployment/ci-deploy-generator.service.js.map +1 -1
- package/dist/src/services/deployment/ci-workflow-generator.service.d.ts.map +1 -1
- package/dist/src/services/deployment/ci-workflow-generator.service.js +23 -4
- package/dist/src/services/deployment/ci-workflow-generator.service.js.map +1 -1
- package/dist/src/services/deployment/docker/__tests__/compose-env-value-encoding.test.d.ts.map +1 -1
- package/dist/src/services/deployment/docker/__tests__/compose-host-mounted-artifact.test.d.ts.map +1 -1
- package/dist/src/services/deployment/docker/__tests__/docker-compose-generator.service.test.d.ts.map +1 -1
- package/dist/src/services/deployment/docker/__tests__/docker-compose-generator.service.test.js +150 -7
- package/dist/src/services/deployment/docker/__tests__/docker-compose-generator.service.test.js.map +1 -1
- package/dist/src/services/deployment/docker/__tests__/docker-compose-readiness.service.test.d.ts.map +1 -1
- package/dist/src/services/deployment/docker/docker-compose-generator.service.d.ts +1 -1
- package/dist/src/services/deployment/docker/docker-compose-generator.service.d.ts.map +1 -1
- package/dist/src/services/deployment/docker/docker-compose-generator.service.js +60 -12
- package/dist/src/services/deployment/docker/docker-compose-generator.service.js.map +1 -1
- package/dist/src/services/deployment/docker/docker-compose-readiness.service.d.ts.map +1 -1
- package/dist/src/services/deployment/docker/docker.schemas.d.ts.map +1 -1
- package/dist/src/services/deployment/docker/docker.service.d.ts.map +1 -1
- package/dist/src/services/deployment/host-toolchain-readiness.service.d.ts.map +1 -1
- package/dist/src/services/deployment/infra-writer.service.d.ts.map +1 -1
- package/dist/src/services/deployment/infra-writer.service.js +11 -3
- package/dist/src/services/deployment/infra-writer.service.js.map +1 -1
- package/dist/src/services/deployment/k8s/__tests__/k8s-bootstrap.service.test.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/__tests__/k8s-manifest-generator.service.test.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/__tests__/k8s-manifest-generator.service.test.js +110 -9
- package/dist/src/services/deployment/k8s/__tests__/k8s-manifest-generator.service.test.js.map +1 -1
- package/dist/src/services/deployment/k8s/__tests__/k8s-operations.service.test.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/__tests__/k8s-runtime-env-secrets.test.d.ts +2 -0
- package/dist/src/services/deployment/k8s/__tests__/k8s-runtime-env-secrets.test.d.ts.map +1 -0
- package/dist/src/services/deployment/k8s/__tests__/k8s-runtime-env-secrets.test.js +226 -0
- package/dist/src/services/deployment/k8s/__tests__/k8s-runtime-env-secrets.test.js.map +1 -0
- package/dist/src/services/deployment/k8s/__tests__/k8s-secrets-generator.service.test.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/__tests__/k8s-secrets-generator.service.test.js +132 -12
- package/dist/src/services/deployment/k8s/__tests__/k8s-secrets-generator.service.test.js.map +1 -1
- package/dist/src/services/deployment/k8s/__tests__/kind.service.test.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/__tests__/local-k8s-application-pruning.service.test.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-bootstrap.service.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-bootstrap.service.js +3 -0
- package/dist/src/services/deployment/k8s/k8s-bootstrap.service.js.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-local-infra-readiness.service.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.js +45 -9
- package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.js.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-manifest.schemas.d.ts +4 -3
- package/dist/src/services/deployment/k8s/k8s-manifest.schemas.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-manifest.schemas.js +0 -4
- package/dist/src/services/deployment/k8s/k8s-manifest.schemas.js.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-operations.service.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-secrets-generator.service.d.ts +10 -1
- package/dist/src/services/deployment/k8s/k8s-secrets-generator.service.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-secrets-generator.service.js +193 -33
- package/dist/src/services/deployment/k8s/k8s-secrets-generator.service.js.map +1 -1
- package/dist/src/services/deployment/k8s/k8s.schemas.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/kind.service.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/local-k8s-application-pruning.service.d.ts.map +1 -1
- package/dist/src/services/deployment/local-dev-observer-lifecycle.d.ts.map +1 -1
- package/dist/src/services/deployment/local-dev-output-boundary.d.ts.map +1 -1
- package/dist/src/services/deployment/local-dev-session-lease.service.d.ts.map +1 -1
- package/dist/src/services/deployment/local-dev-shutdown-coordinator.d.ts.map +1 -1
- package/dist/src/services/deployment/local-infrastructure-initialization.service.d.ts.map +1 -1
- package/dist/src/services/deployment/local-precondition-checks.schemas.d.ts.map +1 -1
- package/dist/src/services/deployment/local-precondition-checks.service.d.ts +28 -17
- package/dist/src/services/deployment/local-precondition-checks.service.d.ts.map +1 -1
- package/dist/src/services/deployment/local-precondition-checks.service.js +83 -3
- package/dist/src/services/deployment/local-precondition-checks.service.js.map +1 -1
- package/dist/src/services/deployment/local-runtime-process-cleanup.service.d.ts.map +1 -1
- package/dist/src/services/deployment/platform-lifecycle.service.d.ts.map +1 -1
- package/dist/src/services/deployment/platform-runtime-policy.service.d.ts.map +1 -1
- package/dist/src/services/deployment/version-compare.utils.d.ts.map +1 -1
- package/dist/src/services/design-tokens/design-tokens-command.service.d.ts.map +1 -1
- package/dist/src/services/design-tokens/design-tokens-config.service.d.ts.map +1 -1
- package/dist/src/services/design-tokens/design-tokens-config.template.d.ts.map +1 -1
- package/dist/src/services/design-tokens/design-tokens-css-block.service.d.ts.map +1 -1
- package/dist/src/services/design-tokens/design-tokens-paths.service.d.ts.map +1 -1
- package/dist/src/services/design-tokens/design-tokens.constants.d.ts.map +1 -1
- package/dist/src/services/design-tokens/design-tokens.models.d.ts.map +1 -1
- package/dist/src/services/environment/__tests__/compose-converge-args.test.d.ts.map +1 -1
- package/dist/src/services/environment/__tests__/config-hydration-seam.test.d.ts.map +1 -1
- package/dist/src/services/environment/__tests__/env-configuration-generator.service.test.d.ts.map +1 -1
- package/dist/src/services/environment/__tests__/env-configuration-generator.service.test.js +36 -20
- package/dist/src/services/environment/__tests__/env-configuration-generator.service.test.js.map +1 -1
- package/dist/src/services/environment/__tests__/env-sync.service.test.d.ts.map +1 -1
- package/dist/src/services/environment/__tests__/env-sync.service.test.js +6 -4
- package/dist/src/services/environment/__tests__/env-sync.service.test.js.map +1 -1
- package/dist/src/services/environment/__tests__/env-vars-builder.service.test.d.ts.map +1 -1
- package/dist/src/services/environment/__tests__/env-vars-builder.service.test.js +89 -8
- package/dist/src/services/environment/__tests__/env-vars-builder.service.test.js.map +1 -1
- package/dist/src/services/environment/__tests__/environment-hydration.utils.test.d.ts.map +1 -1
- package/dist/src/services/environment/__tests__/environment-lifecycle.needs-local-mongodb.test.d.ts.map +1 -1
- package/dist/src/services/environment/__tests__/environment-lifecycle.needs-local-postgresql.test.d.ts.map +1 -1
- package/dist/src/services/environment/__tests__/environment-lifecycle.self-hosts-backing-service.test.d.ts +2 -0
- package/dist/src/services/environment/__tests__/environment-lifecycle.self-hosts-backing-service.test.d.ts.map +1 -0
- package/dist/src/services/environment/__tests__/environment-lifecycle.self-hosts-backing-service.test.js +136 -0
- package/dist/src/services/environment/__tests__/environment-lifecycle.self-hosts-backing-service.test.js.map +1 -0
- package/dist/src/services/environment/__tests__/environment-paths.service.test.d.ts.map +1 -1
- package/dist/src/services/environment/__tests__/environment-registry.service.test.d.ts.map +1 -1
- package/dist/src/services/environment/__tests__/environment-setup.non-interactive.test.d.ts.map +1 -1
- package/dist/src/services/environment/__tests__/environment-setup.non-interactive.test.js +23 -0
- package/dist/src/services/environment/__tests__/environment-setup.non-interactive.test.js.map +1 -1
- package/dist/src/services/environment/__tests__/platform-engine-change.utils.test.d.ts.map +1 -1
- package/dist/src/services/environment/__tests__/platform-image-ref.test.d.ts.map +1 -1
- package/dist/src/services/environment/__tests__/platform-image-ref.test.js.map +1 -1
- package/dist/src/services/environment/__tests__/platform-runtime-state.service.test.d.ts.map +1 -1
- package/dist/src/services/environment/__tests__/provider-secrets-env.service.test.d.ts.map +1 -1
- package/dist/src/services/environment/__tests__/runtime-bootstrap.authored-database-refresh.test.d.ts.map +1 -1
- package/dist/src/services/environment/authored-infra-config.utils.d.ts.map +1 -1
- package/dist/src/services/environment/env-configuration-generator.service.d.ts +52 -14
- package/dist/src/services/environment/env-configuration-generator.service.d.ts.map +1 -1
- package/dist/src/services/environment/env-configuration-generator.service.js +41 -38
- package/dist/src/services/environment/env-configuration-generator.service.js.map +1 -1
- package/dist/src/services/environment/env-sync.service.d.ts.map +1 -1
- package/dist/src/services/environment/env-sync.service.js +13 -13
- package/dist/src/services/environment/env-sync.service.js.map +1 -1
- package/dist/src/services/environment/env-vars-builder.service.d.ts +28 -0
- package/dist/src/services/environment/env-vars-builder.service.d.ts.map +1 -1
- package/dist/src/services/environment/env-vars-builder.service.js +169 -41
- package/dist/src/services/environment/env-vars-builder.service.js.map +1 -1
- package/dist/src/services/environment/environment-hydration.utils.d.ts.map +1 -1
- package/dist/src/services/environment/environment-lifecycle.service.d.ts +53 -1
- package/dist/src/services/environment/environment-lifecycle.service.d.ts.map +1 -1
- package/dist/src/services/environment/environment-lifecycle.service.js +65 -1
- package/dist/src/services/environment/environment-lifecycle.service.js.map +1 -1
- package/dist/src/services/environment/environment-paths.service.d.ts +2 -1
- package/dist/src/services/environment/environment-paths.service.d.ts.map +1 -1
- package/dist/src/services/environment/environment-paths.service.js +5 -3
- package/dist/src/services/environment/environment-paths.service.js.map +1 -1
- package/dist/src/services/environment/environment-registry.service.d.ts.map +1 -1
- package/dist/src/services/environment/environment-setup.service.d.ts.map +1 -1
- package/dist/src/services/environment/environment-setup.service.js +23 -9
- package/dist/src/services/environment/environment-setup.service.js.map +1 -1
- package/dist/src/services/environment/environment.schemas.d.ts.map +1 -1
- package/dist/src/services/environment/environment.service.d.ts +6 -1
- package/dist/src/services/environment/environment.service.d.ts.map +1 -1
- package/dist/src/services/environment/environment.service.js +2 -0
- package/dist/src/services/environment/environment.service.js.map +1 -1
- package/dist/src/services/environment/platform-engine-change.utils.d.ts.map +1 -1
- package/dist/src/services/environment/platform-runtime-state.service.d.ts.map +1 -1
- package/dist/src/services/environment/platform-runtime.schemas.d.ts.map +1 -1
- package/dist/src/services/environment/platform-runtime.schemas.js.map +1 -1
- package/dist/src/services/environment/runtime-bootstrap.service.d.ts.map +1 -1
- package/dist/src/services/framework/__tests__/application-rule-imports.test.d.ts +2 -0
- package/dist/src/services/framework/__tests__/application-rule-imports.test.d.ts.map +1 -0
- package/dist/src/services/framework/__tests__/application-rule-imports.test.js +58 -0
- package/dist/src/services/framework/__tests__/application-rule-imports.test.js.map +1 -0
- package/dist/src/services/framework/__tests__/engine-provider-specifications.reconciliation.test.d.ts +2 -0
- package/dist/src/services/framework/__tests__/engine-provider-specifications.reconciliation.test.d.ts.map +1 -0
- package/dist/src/services/framework/__tests__/engine-provider-specifications.reconciliation.test.js +47 -0
- package/dist/src/services/framework/__tests__/engine-provider-specifications.reconciliation.test.js.map +1 -0
- package/dist/src/services/framework/__tests__/fixtures/framework-knowledge-package-only.fixture.d.ts.map +1 -1
- package/dist/src/services/framework/__tests__/fixtures/framework-knowledge-package-only.fixture.js.map +1 -1
- package/dist/src/services/framework/__tests__/framework-development-skills-sync.installed-package.test.d.ts.map +1 -1
- package/dist/src/services/framework/__tests__/framework-development-skills-sync.installed-package.test.js.map +1 -1
- package/dist/src/services/framework/__tests__/framework-development-skills-sync.package-only.test.d.ts.map +1 -1
- package/dist/src/services/framework/__tests__/framework-development-skills-sync.service.test.d.ts.map +1 -1
- package/dist/src/services/framework/__tests__/framework-docker-publish.service.test.d.ts.map +1 -1
- package/dist/src/services/framework/__tests__/framework-docker-publish.service.test.js.map +1 -1
- package/dist/src/services/framework/__tests__/framework-knowledge-application-guidance.validator.test.d.ts.map +1 -1
- package/dist/src/services/framework/__tests__/framework-knowledge-audit.live.contract.test.d.ts.map +1 -1
- package/dist/src/services/framework/__tests__/framework-knowledge-audit.live.contract.test.js.map +1 -1
- package/dist/src/services/framework/__tests__/framework-knowledge-audit.service.test.d.ts.map +1 -1
- package/dist/src/services/framework/__tests__/framework-knowledge-audit.service.test.js +50 -0
- package/dist/src/services/framework/__tests__/framework-knowledge-audit.service.test.js.map +1 -1
- package/dist/src/services/framework/__tests__/framework-knowledge-generation.service.test.d.ts.map +1 -1
- package/dist/src/services/framework/__tests__/framework-knowledge-generation.service.test.js +4 -70
- package/dist/src/services/framework/__tests__/framework-knowledge-generation.service.test.js.map +1 -1
- package/dist/src/services/framework/__tests__/framework-npm-publish.service.test.d.ts.map +1 -1
- package/dist/src/services/framework/__tests__/framework-npm-publish.service.test.js.map +1 -1
- package/dist/src/services/framework/__tests__/framework-publish-manifest.service.test.d.ts.map +1 -1
- package/dist/src/services/framework/__tests__/framework-publish-manifest.service.test.js +78 -6
- package/dist/src/services/framework/__tests__/framework-publish-manifest.service.test.js.map +1 -1
- package/dist/src/services/framework/__tests__/framework-release.service.test.d.ts.map +1 -1
- package/dist/src/services/framework/__tests__/framework-release.service.test.js.map +1 -1
- package/dist/src/services/framework/__tests__/framework-secrets-writer.test.d.ts.map +1 -1
- package/dist/src/services/framework/__tests__/framework-version.service.test.d.ts.map +1 -1
- package/dist/src/services/framework/__tests__/framework-version.service.test.js.map +1 -1
- package/dist/src/services/framework/__tests__/installed-framework-assets.service.test.d.ts.map +1 -1
- package/dist/src/services/framework/application-rule-imports.d.ts +36 -0
- package/dist/src/services/framework/application-rule-imports.d.ts.map +1 -0
- package/dist/src/services/framework/application-rule-imports.js +77 -0
- package/dist/src/services/framework/application-rule-imports.js.map +1 -0
- package/dist/src/services/framework/framework-development-skills-sync.service.d.ts +23 -0
- package/dist/src/services/framework/framework-development-skills-sync.service.d.ts.map +1 -1
- package/dist/src/services/framework/framework-development-skills-sync.service.js +51 -0
- package/dist/src/services/framework/framework-development-skills-sync.service.js.map +1 -1
- package/dist/src/services/framework/framework-docker-publish.service.d.ts.map +1 -1
- package/dist/src/services/framework/framework-docker-publish.service.js.map +1 -1
- package/dist/src/services/framework/framework-knowledge-application-guidance.validator.d.ts.map +1 -1
- package/dist/src/services/framework/framework-knowledge-audit.service.d.ts +45 -0
- package/dist/src/services/framework/framework-knowledge-audit.service.d.ts.map +1 -1
- package/dist/src/services/framework/framework-knowledge-audit.service.js +122 -1
- package/dist/src/services/framework/framework-knowledge-audit.service.js.map +1 -1
- package/dist/src/services/framework/framework-knowledge-generation.service.d.ts +0 -1
- package/dist/src/services/framework/framework-knowledge-generation.service.d.ts.map +1 -1
- package/dist/src/services/framework/framework-knowledge-generation.service.js +29 -215
- package/dist/src/services/framework/framework-knowledge-generation.service.js.map +1 -1
- package/dist/src/services/framework/framework-knowledge-scan.constants.d.ts.map +1 -1
- package/dist/src/services/framework/framework-npm-publish.service.d.ts.map +1 -1
- package/dist/src/services/framework/framework-npm-publish.service.js +7 -3
- package/dist/src/services/framework/framework-npm-publish.service.js.map +1 -1
- package/dist/src/services/framework/framework-publish-manifest.service.d.ts +44 -1
- package/dist/src/services/framework/framework-publish-manifest.service.d.ts.map +1 -1
- package/dist/src/services/framework/framework-publish-manifest.service.js +79 -4
- package/dist/src/services/framework/framework-publish-manifest.service.js.map +1 -1
- package/dist/src/services/framework/framework-release.service.d.ts.map +1 -1
- package/dist/src/services/framework/framework-version.service.d.ts +13 -0
- package/dist/src/services/framework/framework-version.service.d.ts.map +1 -1
- package/dist/src/services/framework/framework-version.service.js +23 -24
- package/dist/src/services/framework/framework-version.service.js.map +1 -1
- package/dist/src/services/framework/installed-framework-assets.service.d.ts.map +1 -1
- package/dist/src/services/framework/provider-transposition/__tests__/client-and-schema-agree.test.d.ts +2 -0
- package/dist/src/services/framework/provider-transposition/__tests__/client-and-schema-agree.test.d.ts.map +1 -0
- package/dist/src/services/framework/provider-transposition/__tests__/client-and-schema-agree.test.js +92 -0
- package/dist/src/services/framework/provider-transposition/__tests__/client-and-schema-agree.test.js.map +1 -0
- package/dist/src/services/framework/provider-transposition/__tests__/decision-projection.test.d.ts +2 -0
- package/dist/src/services/framework/provider-transposition/__tests__/decision-projection.test.d.ts.map +1 -0
- package/dist/src/services/framework/provider-transposition/__tests__/decision-projection.test.js +83 -0
- package/dist/src/services/framework/provider-transposition/__tests__/decision-projection.test.js.map +1 -0
- package/dist/src/services/framework/provider-transposition/__tests__/plan-matches-emit.test.d.ts +2 -0
- package/dist/src/services/framework/provider-transposition/__tests__/plan-matches-emit.test.d.ts.map +1 -0
- package/dist/src/services/framework/provider-transposition/__tests__/plan-matches-emit.test.js +166 -0
- package/dist/src/services/framework/provider-transposition/__tests__/plan-matches-emit.test.js.map +1 -0
- package/dist/src/services/framework/provider-transposition/__tests__/provider-catalogue-record.test.d.ts +2 -0
- package/dist/src/services/framework/provider-transposition/__tests__/provider-catalogue-record.test.d.ts.map +1 -0
- package/dist/src/services/framework/provider-transposition/__tests__/provider-catalogue-record.test.js +372 -0
- package/dist/src/services/framework/provider-transposition/__tests__/provider-catalogue-record.test.js.map +1 -0
- package/dist/src/services/framework/provider-transposition/__tests__/transposition-contract.test.d.ts +2 -0
- package/dist/src/services/framework/provider-transposition/__tests__/transposition-contract.test.d.ts.map +1 -0
- package/dist/src/services/framework/provider-transposition/__tests__/transposition-contract.test.js +794 -0
- package/dist/src/services/framework/provider-transposition/__tests__/transposition-contract.test.js.map +1 -0
- package/dist/src/services/framework/provider-transposition/activepieces-source.reader.d.ts +14 -0
- package/dist/src/services/framework/provider-transposition/activepieces-source.reader.d.ts.map +1 -0
- package/dist/src/services/framework/provider-transposition/activepieces-source.reader.js +1047 -0
- package/dist/src/services/framework/provider-transposition/activepieces-source.reader.js.map +1 -0
- package/dist/src/services/framework/provider-transposition/openapi-enrichment.d.ts +26 -0
- package/dist/src/services/framework/provider-transposition/openapi-enrichment.d.ts.map +1 -0
- package/dist/src/services/framework/provider-transposition/openapi-enrichment.js +57 -0
- package/dist/src/services/framework/provider-transposition/openapi-enrichment.js.map +1 -0
- package/dist/src/services/framework/provider-transposition/openapi-source.reader.d.ts +35 -0
- package/dist/src/services/framework/provider-transposition/openapi-source.reader.d.ts.map +1 -0
- package/dist/src/services/framework/provider-transposition/openapi-source.reader.js +204 -0
- package/dist/src/services/framework/provider-transposition/openapi-source.reader.js.map +1 -0
- package/dist/src/services/framework/provider-transposition/provider-catalogue-record.d.ts +410 -0
- package/dist/src/services/framework/provider-transposition/provider-catalogue-record.d.ts.map +1 -0
- package/dist/src/services/framework/provider-transposition/provider-catalogue-record.js +434 -0
- package/dist/src/services/framework/provider-transposition/provider-catalogue-record.js.map +1 -0
- package/dist/src/services/framework/provider-transposition/provider-merge.d.ts +39 -0
- package/dist/src/services/framework/provider-transposition/provider-merge.d.ts.map +1 -0
- package/dist/src/services/framework/provider-transposition/provider-merge.js +274 -0
- package/dist/src/services/framework/provider-transposition/provider-merge.js.map +1 -0
- package/dist/src/services/framework/provider-transposition/provider-package.emitter.d.ts +130 -0
- package/dist/src/services/framework/provider-transposition/provider-package.emitter.d.ts.map +1 -0
- package/dist/src/services/framework/provider-transposition/provider-package.emitter.js +1466 -0
- package/dist/src/services/framework/provider-transposition/provider-package.emitter.js.map +1 -0
- package/dist/src/services/framework/provider-transposition/sim-source.reader.d.ts +35 -0
- package/dist/src/services/framework/provider-transposition/sim-source.reader.d.ts.map +1 -0
- package/dist/src/services/framework/provider-transposition/sim-source.reader.js +527 -0
- package/dist/src/services/framework/provider-transposition/sim-source.reader.js.map +1 -0
- package/dist/src/services/framework/provider-transposition/transposed-provider.model.d.ts +229 -0
- package/dist/src/services/framework/provider-transposition/transposed-provider.model.d.ts.map +1 -0
- package/dist/src/services/framework/provider-transposition/transposed-provider.model.js +96 -0
- package/dist/src/services/framework/provider-transposition/transposed-provider.model.js.map +1 -0
- package/dist/src/services/framework/provider-transposition/url-template.extractor.d.ts +55 -0
- package/dist/src/services/framework/provider-transposition/url-template.extractor.d.ts.map +1 -0
- package/dist/src/services/framework/provider-transposition/url-template.extractor.js +196 -0
- package/dist/src/services/framework/provider-transposition/url-template.extractor.js.map +1 -0
- package/dist/src/services/frontend/__tests__/cloudflare-cdn.service.test.d.ts.map +1 -1
- package/dist/src/services/frontend/__tests__/frontend-dist-uploader.service.test.d.ts.map +1 -1
- package/dist/src/services/frontend/__tests__/frontend-publish.service.test.d.ts.map +1 -1
- package/dist/src/services/frontend/cloudflare-cdn.service.d.ts.map +1 -1
- package/dist/src/services/frontend/frontend-dist-uploader.service.d.ts.map +1 -1
- package/dist/src/services/frontend/frontend-publish.service.d.ts.map +1 -1
- package/dist/src/services/frontend/frontend-publish.service.js +1 -1
- package/dist/src/services/frontend/frontend-publish.service.js.map +1 -1
- package/dist/src/services/generation/domain-generator.service.d.ts.map +1 -1
- package/dist/src/services/generation/generator.schemas.d.ts.map +1 -1
- package/dist/src/services/generation/operation-generator.service.d.ts.map +1 -1
- package/dist/src/services/generation/resource-generator.service.d.ts.map +1 -1
- package/dist/src/services/generation/template-registry.service.d.ts.map +1 -1
- package/dist/src/services/registry/artifact-extractor.utils.d.ts.map +1 -1
- package/dist/src/services/registry/boundary-fanout.utils.d.ts.map +1 -1
- package/dist/src/services/registry/index.d.ts.map +1 -1
- package/dist/src/services/registry/registry-command.utils.d.ts.map +1 -1
- package/dist/src/services/registry/registry-config-resolver.service.d.ts.map +1 -1
- package/dist/src/services/registry/registry-credentials.service.d.ts.map +1 -1
- package/dist/src/services/registry/saas-root-required.error.d.ts.map +1 -1
- package/dist/src/services/security/__tests__/csp-artifact-currency.live.contract.test.d.ts +67 -0
- package/dist/src/services/security/__tests__/csp-artifact-currency.live.contract.test.d.ts.map +1 -0
- package/dist/src/services/security/__tests__/csp-artifact-currency.live.contract.test.js +212 -0
- package/dist/src/services/security/__tests__/csp-artifact-currency.live.contract.test.js.map +1 -0
- package/dist/src/services/security/__tests__/csp-boundary.test.d.ts.map +1 -1
- package/dist/src/services/security/__tests__/csp-sync.service.test.d.ts.map +1 -1
- package/dist/src/services/security/__tests__/csp-sync.service.test.js +411 -5
- package/dist/src/services/security/__tests__/csp-sync.service.test.js.map +1 -1
- package/dist/src/services/security/csp-sync.service.d.ts +27 -5
- package/dist/src/services/security/csp-sync.service.d.ts.map +1 -1
- package/dist/src/services/security/csp-sync.service.js +204 -16
- package/dist/src/services/security/csp-sync.service.js.map +1 -1
- package/dist/src/services/tools/utility-tools.service.d.ts.map +1 -1
- package/dist/src/services/website/__tests__/website-structured-data-audit.adapter-seam.test.d.ts +2 -0
- package/dist/src/services/website/__tests__/website-structured-data-audit.adapter-seam.test.d.ts.map +1 -0
- package/dist/src/services/website/__tests__/website-structured-data-audit.adapter-seam.test.js +94 -0
- package/dist/src/services/website/__tests__/website-structured-data-audit.adapter-seam.test.js.map +1 -0
- package/dist/src/services/website/website-structured-data-audit.service.d.ts +9 -0
- package/dist/src/services/website/website-structured-data-audit.service.d.ts.map +1 -1
- package/dist/src/services/website/website-structured-data-audit.service.js +72 -11
- package/dist/src/services/website/website-structured-data-audit.service.js.map +1 -1
- package/dist/src/test-utils/resolved-homes.test.utils.d.ts.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/framework-root-package.json +2 -0
- package/package.json +19 -17
- package/scripts/app-dependency-alignment/propagated-engine-overrides.json +2 -0
- package/templates/infra/ci/deploy-docker-compose.yml.hbs +1 -1
- package/templates/infra/ci/deploy-k8s.yml.hbs +1 -1
- package/templates/infra/docker-compose/docker-compose.wildo-platform.yml.hbs +330 -74
- package/templates/infra/docker-images/backend/Dockerfile.backend-base +7 -1
- package/templates/infra/docker-images/backend/Dockerfile.backend-base-java +7 -1
- package/templates/infra/docker-images/platform/Dockerfile.platform-base.dockerignore +23 -0
- package/templates/infra/k8s/applications/wildo-ai-application/backend.deployment.yaml.hbs +8 -5
- package/templates/infra/k8s/applications/wildo-ai-application/ingress.yaml.hbs +3 -2
- package/templates/infra/k8s/applications/wildo-ai-application/minion.deployment.yaml.hbs +22 -6
- package/templates/infra/k8s/applications/wildo-ai-application/worker.deployment.yaml.hbs +17 -13
- package/templates/infra/k8s/platform/platform-crontabs-batches-manager/deployment.yaml.hbs +11 -0
- package/templates/infra/k8s/storage/local/persistent-volumes.yaml.hbs +18 -4
- package/templates/saas/i18n/email/components/EmailHeader.tsx +9 -0
- package/templates/saas/i18n/email/components/EmailLayout.tsx +14 -0
- package/templates/saas/i18n/email/resources/applicationApiKeys/create.application-administrator/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/applicationApiKeys/deactivate.application-administrator/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/applicationApiKeys/reactivate.application-administrator/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/applicationApiKeys/regenerate.application-administrator/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/applicationApiKeys/rotate.application-administrator/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/applicationOAuthClients/create.application-administrator/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/applicationOAuthClients/regenerate.application-administrator/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/applicationOAuthClients/rotate.application-administrator/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/applicationVersions/create.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/applicationVersions/delete.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/applicationVersions/deprecate.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/applicationVersions/promote.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/applicationVersions/rollback.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/applications/create.admin.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/applications/create.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/applications/delete.admin.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/applications/delete.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/applications/transfer.admin.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/applications/transfer.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/applications/update.admin.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/applications/update.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationApiKeys/create.admin.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationApiKeys/create.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationApiKeys/deactivate.admin.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationApiKeys/deactivate.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationApiKeys/delete.admin.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationApiKeys/delete.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationApiKeys/reactivate.admin.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationApiKeys/reactivate.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationApiKeys/regenerate.admin.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationApiKeys/regenerate.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationApiKeys/rotate.admin.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationApiKeys/rotate.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationFeatures/disable_feature.organization-users/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationFeatures/enable_feature.organization-users/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationFeatures/reset_features.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationFeatures/update.organization-users/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationMembers/create.user-self/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationMembers/delete.organization-users/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationMembers/grantOwnership.organization-users/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationMembers/reactivate.organization-users/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationMembers/reactivate.user-self/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationMembers/resend.user-self/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationMembers/revoke.user-self_admin/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationMembers/revoke.user-self_invitee/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationMembers/suspend.organization-users/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationMembers/suspend.user-self/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationMembers/update.organization-users/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationOAuthClients/create.admin.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationOAuthClients/create.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationOAuthClients/delete.admin.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationOAuthClients/delete.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationOAuthClients/regenerate.admin.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationOAuthClients/regenerate.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationOAuthClients/rotate.admin.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationOAuthClients/rotate.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationUnits/archive.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationUnits/create.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationUnits/delete.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationUnits/move.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationUnits/restore.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizationUnits/update.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizations/activate.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizations/create.admin.user-self/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizations/create.user-self/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizations/request_deletion.admin.organization-users/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizations/request_deletion.organization-users/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizations/restore.organization-users/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizations/suspend.organization-users/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizations/update.admin.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/organizations/update.organization-administrative/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/platformAccessGrants/requestAccess.organization-users/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/user_self/deactivate_account.user-self/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/user_self/reactivate_account.user-self/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/users/assign_roles.application-administrator/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/users/create.application-administrator/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/users/delete.application-administrator/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/users/force_password_reset.application-administrator/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/users/revoke_roles.application-administrator/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/users/send_invitation.application-administrator/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/users/suspend_user.application-administrator/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/users/unsuspend_user.application-administrator/template.tsx +1 -1
- package/templates/saas/i18n/email/resources/users/update.application-administrator/template.tsx +1 -1
- package/templates/saas/i18n/email/system/email-otp/template.tsx +1 -0
- package/templates/saas/i18n/email/system/email-verification/template.tsx +1 -1
- package/templates/saas/i18n/email/system/magic-link/template.tsx +1 -1
- package/templates/saas/i18n/email/system/new-device-login/template.tsx +1 -1
- package/templates/saas/i18n/email/system/organization-invitation/template.tsx +1 -0
- package/templates/saas/i18n/email/system/organization-member-removed/template.tsx +1 -0
- package/templates/saas/i18n/email/system/password-reset/template.tsx +1 -1
- package/templates/saas/i18n/email/system/payment-failed/template.tsx +1 -1
- package/templates/saas/i18n/email/system/security-alert/template.tsx +1 -0
- package/templates/saas/i18n/email/system/subscription-cancelled/template.tsx +1 -1
- package/templates/saas/i18n/email/system/subscription-confirmation/template.tsx +1 -0
- package/templates/saas/i18n/email/system/welcome-email/template.tsx +1 -1
- package/templates/saas/scenarios/add-backend-provider/scenario.json +2 -2
- package/templates/saas/scenarios/add-file-picker-provider/files/frontend/src/engine/providers/__providerRef__.frontend-app.module.ts.hbs +10 -4
- package/templates/saas/scenarios/add-minion/files/minions/__minionDir__/src/index.ts.hbs +9 -5
- package/templates/saas/scenarios/add-module/scenario.json +3 -3
- package/templates/saas/scenarios/add-provider/scenario.json +36 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/docusaurus.config.ts.hbs +18 -2
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/csp.config.ts +20 -3
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/pages/auth/exchange.tsx +52 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/pages/search.tsx.hbs +47 -3
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/theme/Root.tsx +26 -4
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/static/img/favicon.svg +5 -4
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/static/img/logo.svg +11 -5
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/wildo.tech-doc.config.ts.hbs +18 -7
- package/templates/saas/scenarios/add-website/files/website/src/app-origin.ts.hbs +32 -16
- package/templates/saas/scenarios/add-website/files/website/src/components/HeaderComponent.tsx +2 -2
- package/templates/saas/scenarios/add-website/files/website/src/pages/index.astro +1 -0
- package/templates/saas/scenarios/add-website/files/website/src/sections/landing.sections.tsx +2 -2
- package/templates/saas/scenarios/add-worker-node/files/workers/__workerDir__/src/index.ts.hbs +9 -5
- package/templates/saas/skeleton/.wildo-saas/dev-framework-scripts/sync-engine.sh +46 -14
- package/templates/saas/skeleton/CLAUDE.md.hbs +12 -0
- package/templates/saas/skeleton/backend-api/src/index.ts +16 -0
- package/templates/saas/skeleton/frontend/src/config/settings-hub.config.ts +11 -5
- package/templates/saas/skeleton/frontend/src/engine/app-level-views/app-level-views.definitions.module.frontend.ts +1 -1
- package/templates/saas/skeleton/frontend/src/generated/csp.generated.json.hbs +17 -0
- package/templates/saas/skeleton/infrastructure/local/wildo.infra.local.config.ts.hbs +19 -0
- package/templates/saas/skeleton/wildo.saas.config.ts.init.hbs +59 -2
- package/wildo-framework.info.json +1 -1
- package/templates/infra/k8s/internal/gotenberg/deployment.yaml.hbs +0 -46
- package/templates/infra/k8s/internal/gotenberg/service.yaml.hbs +0 -19
- package/templates/infra/k8s/middleware.yaml.hbs +0 -101
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/static/img/favicon.png +0 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/static/img/logo.png +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-env.service.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"app-env.service.d.ts","sourceRoot":"","sources":["../../../../src/services/application/app-env.service.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAuBH,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,eAAO,MAAM,aAAa;kBACV,MAAM,GAAG,gBAAgB;kBAczB,MAAM,GAAG,KAAK,CAAC;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;oBAY7C,MAAM,GAAG,OAAO;CAGjC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-local-runtime-addresses.service.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"app-local-runtime-addresses.service.d.ts","sourceRoot":"","sources":["../../../../src/services/application/app-local-runtime-addresses.service.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,0BAA0B;IACzC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAoED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAsB,mCAAmC,CACvD,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,GAAG,SAAS,CAAC,CA8BjE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-runtime-targets.service.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"app-runtime-targets.service.d.ts","sourceRoot":"","sources":["../../../../src/services/application/app-runtime-targets.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAIL,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAE/B,KAAK,0CAA0C,EAC/C,KAAK,gBAAgB,EACrB,KAAK,eAAe,EAErB,MAAM,+BAA+B,CAAC;AAGvC,MAAM,WAAW,4BAA4B;IAC3C,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC;;;;OAIG;IACH,SAAS,EAAE,gBAAgB,CAAC;CAC7B;AAED,MAAM,WAAW,6BAA6B;IAC5C,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,YAAY,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,SAAS,EAAE,gBAAgB,CAAC;CAC7B;AAED,MAAM,WAAW,wBAAwB;IACvC,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-schema-bootstrap.service.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"app-schema-bootstrap.service.d.ts","sourceRoot":"","sources":["../../../../src/services/application/app-schema-bootstrap.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAIH,OAAO,EAKL,KAAK,2BAA2B,EACjC,MAAM,4BAA4B,CAAC;AAMpC;;;;;;;;;;;;GAYG;AACH,wBAAsB,6BAA6B,CAAC,KAAK,EAAE;IACzD,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CAC1C,GAAG,OAAO,CAAC,2BAA2B,GAAG,SAAS,CAAC,CA+BnD;AAED,sGAAsG;AACtG,wBAAgB,6BAA6B,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAGlF;AAED,oBAAY,yBAAyB;IACnC,+DAA+D;IAC/D,OAAO,YAAY;IACnB,mFAAmF;IACnF,aAAa,kBAAkB;CAChC;AAED,MAAM,WAAW,wBAAwB;IACvC,OAAO,EAAE,yBAAyB,CAAC;IACnC,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;CACvB;AAED;;;;;;;;;GASG;AACH,wBAAsB,wBAAwB,CAAC,KAAK,EAAE;IACpD,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,GAAG,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CACjC,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAyCpC"}
|
|
@@ -43,8 +43,21 @@ export interface ApplicationAssetsDeliveryInput {
|
|
|
43
43
|
*/
|
|
44
44
|
readonly frameworkAssetsRoot: string | null;
|
|
45
45
|
}
|
|
46
|
+
/**
|
|
47
|
+
* Whether one asset lane materialized files, or ran and deliberately did not.
|
|
48
|
+
*
|
|
49
|
+
* SKIPPED is an ANSWER, never a failure: a lane skips when its input is legitimately absent — no
|
|
50
|
+
* framework-assets root outside a checkout, `@wildo-ai/framework-knowledge` not yet installed — and
|
|
51
|
+
* every skip carries the reason in `detail`. That is why there is no FAILED member: a lane that
|
|
52
|
+
* cannot proceed says why and the delivery continues, so the caller reads a reason rather than
|
|
53
|
+
* inferring one from an absence.
|
|
54
|
+
*/
|
|
55
|
+
export declare enum ApplicationAssetsLaneStatus {
|
|
56
|
+
DELIVERED = "delivered",
|
|
57
|
+
SKIPPED = "skipped"
|
|
58
|
+
}
|
|
46
59
|
export interface ApplicationAssetsLaneOutcome {
|
|
47
|
-
readonly status:
|
|
60
|
+
readonly status: ApplicationAssetsLaneStatus;
|
|
48
61
|
/** Files materialized (delivered) or the reason nothing was (skipped). */
|
|
49
62
|
readonly detail: string;
|
|
50
63
|
}
|
|
@@ -69,6 +82,14 @@ export declare class ApplicationAssetsDeliveryService {
|
|
|
69
82
|
/** Full replacement: after this, target ≡ source. Returns the number of regular files copied. */
|
|
70
83
|
private static mirrorDirectory;
|
|
71
84
|
private static countRegularFiles;
|
|
85
|
+
/**
|
|
86
|
+
* The one thing an upgrade can leave behind. The knowledge package moves with the application's
|
|
87
|
+
* `@wildo-ai/*` pins; the templates, the compose/k8s templates and the platform image tag move
|
|
88
|
+
* with the CLI, which only the installer replaces. When the two disagree, the templates just
|
|
89
|
+
* delivered are the OLD framework's and the compose file will name the OLD image — and nothing
|
|
90
|
+
* else says so. Returns the sentence to print, or `null` when the versions agree or one is unknown.
|
|
91
|
+
*/
|
|
92
|
+
static describeFrameworkVersionSkew(cliVersion: string | null, knowledgeVersion: string | null): string | null;
|
|
72
93
|
/** The version the knowledge lanes delivered from, for reporting. */
|
|
73
94
|
static readInstalledPackageVersion(packageRoot: string | null): string | null;
|
|
74
95
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application-assets-delivery.service.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"application-assets-delivery.service.d.ts","sourceRoot":"","sources":["../../../../src/services/application/application-assets-delivery.service.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,eAAO,MAAM,qCAAqC,0BAA0B,CAAC;AAC7E,eAAO,MAAM,gCAAgC,qBAAqB,CAAC;AAEnE,0FAA0F;AAC1F,eAAO,MAAM,gCAAgC,kCAAkC,CAAC;AAShF,MAAM,WAAW,8BAA8B;IAC7C,2EAA2E;IAC3E,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC;;;OAGG;IACH,QAAQ,CAAC,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7C;AAED;;;;;;;;GAQG;AACH,oBAAY,2BAA2B;IACrC,SAAS,cAAc;IACvB,OAAO,YAAY;CACpB;AAED,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,CAAC,MAAM,EAAE,2BAA2B,CAAC;IAC7C,0EAA0E;IAC1E,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,+BAA+B;IAC9C,QAAQ,CAAC,SAAS,EAAE,4BAA4B,CAAC;IACjD,QAAQ,CAAC,IAAI,EAAE,4BAA4B,CAAC;IAC5C,QAAQ,CAAC,MAAM,EAAE,4BAA4B,CAAC;IAC9C,oFAAoF;IACpF,QAAQ,CAAC,oBAAoB,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9C;AAED,qBAAa,gCAAgC;IAC3C,MAAM,CAAC,OAAO,CAAC,KAAK,EAAE,8BAA8B,GAAG,+BAA+B;IAatF;;;;OAIG;IACH,MAAM,CAAC,2BAA2B,CAAC,eAAe,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI;IAW/F,OAAO,CAAC,MAAM,CAAC,gBAAgB;IAY/B,OAAO,CAAC,MAAM,CAAC,WAAW;IAuB1B,OAAO,CAAC,MAAM,CAAC,aAAa;IAc5B,iGAAiG;IACjG,OAAO,CAAC,MAAM,CAAC,eAAe;IAO9B,OAAO,CAAC,MAAM,CAAC,iBAAiB;IAUhC;;;;;;OAMG;IACH,MAAM,CAAC,4BAA4B,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,EAAE,gBAAgB,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,GAAG,IAAI;IAS9G,qEAAqE;IACrE,MAAM,CAAC,2BAA2B,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,GAAG,IAAI;CAS9E"}
|
|
@@ -43,6 +43,20 @@ const DOCS_LANES = [
|
|
|
43
43
|
{ sourceRelative: ['references'], targetRelative: 'references', directory: true },
|
|
44
44
|
{ sourceRelative: ['topic-index.json'], targetRelative: 'topic-index.json', directory: false },
|
|
45
45
|
];
|
|
46
|
+
/**
|
|
47
|
+
* Whether one asset lane materialized files, or ran and deliberately did not.
|
|
48
|
+
*
|
|
49
|
+
* SKIPPED is an ANSWER, never a failure: a lane skips when its input is legitimately absent — no
|
|
50
|
+
* framework-assets root outside a checkout, `@wildo-ai/framework-knowledge` not yet installed — and
|
|
51
|
+
* every skip carries the reason in `detail`. That is why there is no FAILED member: a lane that
|
|
52
|
+
* cannot proceed says why and the delivery continues, so the caller reads a reason rather than
|
|
53
|
+
* inferring one from an absence.
|
|
54
|
+
*/
|
|
55
|
+
export var ApplicationAssetsLaneStatus;
|
|
56
|
+
(function (ApplicationAssetsLaneStatus) {
|
|
57
|
+
ApplicationAssetsLaneStatus["DELIVERED"] = "delivered";
|
|
58
|
+
ApplicationAssetsLaneStatus["SKIPPED"] = "skipped";
|
|
59
|
+
})(ApplicationAssetsLaneStatus || (ApplicationAssetsLaneStatus = {}));
|
|
46
60
|
export class ApplicationAssetsDeliveryService {
|
|
47
61
|
static deliver(input) {
|
|
48
62
|
const knowledgePackageRoot = ApplicationAssetsDeliveryService.resolveInstalledPackageRoot(input.applicationRoot, FRAMEWORK_KNOWLEDGE_PACKAGE_NAME);
|
|
@@ -72,18 +86,18 @@ export class ApplicationAssetsDeliveryService {
|
|
|
72
86
|
}
|
|
73
87
|
static deliverTemplates(applicationRoot, frameworkAssetsRoot) {
|
|
74
88
|
if (frameworkAssetsRoot === null) {
|
|
75
|
-
return { status:
|
|
89
|
+
return { status: ApplicationAssetsLaneStatus.SKIPPED, detail: 'no framework-assets root resolved (neither a checkout nor an npm-installed @wildo-ai/wildo-cli)' };
|
|
76
90
|
}
|
|
77
91
|
const source = join(frameworkAssetsRoot, ...TEMPLATES_SOURCE_RELATIVE);
|
|
78
92
|
if (!existsSync(source)) {
|
|
79
|
-
return { status:
|
|
93
|
+
return { status: ApplicationAssetsLaneStatus.SKIPPED, detail: `${source} does not exist` };
|
|
80
94
|
}
|
|
81
95
|
const count = ApplicationAssetsDeliveryService.mirrorDirectory(source, join(applicationRoot, APPLICATION_TEMPLATES_TARGET_RELATIVE));
|
|
82
|
-
return { status:
|
|
96
|
+
return { status: ApplicationAssetsLaneStatus.DELIVERED, detail: `${count} file(s) → ${APPLICATION_TEMPLATES_TARGET_RELATIVE}` };
|
|
83
97
|
}
|
|
84
98
|
static deliverDocs(applicationRoot, knowledgePackageRoot) {
|
|
85
99
|
if (knowledgePackageRoot === null) {
|
|
86
|
-
return { status:
|
|
100
|
+
return { status: ApplicationAssetsLaneStatus.SKIPPED, detail: `${FRAMEWORK_KNOWLEDGE_PACKAGE_NAME} is not installed in the application (run pnpm install first)` };
|
|
87
101
|
}
|
|
88
102
|
const knowledgeDist = join(knowledgePackageRoot, ...KNOWLEDGE_DIST_RELATIVE);
|
|
89
103
|
const target = join(applicationRoot, APPLICATION_DOCS_TARGET_RELATIVE);
|
|
@@ -103,18 +117,18 @@ export class ApplicationAssetsDeliveryService {
|
|
|
103
117
|
count += 1;
|
|
104
118
|
}
|
|
105
119
|
}
|
|
106
|
-
return { status:
|
|
120
|
+
return { status: ApplicationAssetsLaneStatus.DELIVERED, detail: `${count} file(s) → ${APPLICATION_DOCS_TARGET_RELATIVE}` };
|
|
107
121
|
}
|
|
108
122
|
static deliverSkills(applicationRoot, knowledgePackageRoot) {
|
|
109
123
|
if (knowledgePackageRoot === null) {
|
|
110
|
-
return { status:
|
|
124
|
+
return { status: ApplicationAssetsLaneStatus.SKIPPED, detail: `${FRAMEWORK_KNOWLEDGE_PACKAGE_NAME} is not installed in the application (run pnpm install first)` };
|
|
111
125
|
}
|
|
112
126
|
const result = FrameworkDevelopmentSkillsSyncService.sync({
|
|
113
127
|
applicationRoot,
|
|
114
128
|
knowledgeOutputHome: join(knowledgePackageRoot, ...KNOWLEDGE_DIST_RELATIVE),
|
|
115
129
|
});
|
|
116
130
|
return {
|
|
117
|
-
status:
|
|
131
|
+
status: ApplicationAssetsLaneStatus.DELIVERED,
|
|
118
132
|
detail: `${result.installedCount} installed, ${result.updatedCount} updated, ${result.removedCount} removed → .claude/skills + .claude/rules`,
|
|
119
133
|
};
|
|
120
134
|
}
|
|
@@ -136,6 +150,20 @@ export class ApplicationAssetsDeliveryService {
|
|
|
136
150
|
}
|
|
137
151
|
return count;
|
|
138
152
|
}
|
|
153
|
+
/**
|
|
154
|
+
* The one thing an upgrade can leave behind. The knowledge package moves with the application's
|
|
155
|
+
* `@wildo-ai/*` pins; the templates, the compose/k8s templates and the platform image tag move
|
|
156
|
+
* with the CLI, which only the installer replaces. When the two disagree, the templates just
|
|
157
|
+
* delivered are the OLD framework's and the compose file will name the OLD image — and nothing
|
|
158
|
+
* else says so. Returns the sentence to print, or `null` when the versions agree or one is unknown.
|
|
159
|
+
*/
|
|
160
|
+
static describeFrameworkVersionSkew(cliVersion, knowledgeVersion) {
|
|
161
|
+
if (cliVersion === null || knowledgeVersion === null || cliVersion === knowledgeVersion)
|
|
162
|
+
return null;
|
|
163
|
+
return (`Framework version skew: this CLI is ${cliVersion} but the application installed ${FRAMEWORK_KNOWLEDGE_PACKAGE_NAME} ${knowledgeVersion}. ` +
|
|
164
|
+
'Templates and the platform image tag follow the CLI, docs/skills/rules follow the package — re-run the installer at the ' +
|
|
165
|
+
`application's version (--cli-version=${knowledgeVersion}) and then \`wildo assets sync\` again.`);
|
|
166
|
+
}
|
|
139
167
|
/** The version the knowledge lanes delivered from, for reporting. */
|
|
140
168
|
static readInstalledPackageVersion(packageRoot) {
|
|
141
169
|
if (packageRoot === null)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application-assets-delivery.service.js","sourceRoot":"","sources":["../../../../../../src/services/application/application-assets-delivery.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,IAAI,CAAC;AAChG,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AACrC,OAAO,EAAE,qCAAqC,EAAE,MAAM,yEAAyE,CAAC;AAEhI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,MAAM,CAAC,MAAM,qCAAqC,GAAG,uBAAuB,CAAC;AAC7E,MAAM,CAAC,MAAM,gCAAgC,GAAG,kBAAkB,CAAC;AAEnE,0FAA0F;AAC1F,MAAM,CAAC,MAAM,gCAAgC,GAAG,+BAA+B,CAAC;AAEhF,MAAM,yBAAyB,GAAG,CAAC,WAAW,EAAE,MAAM,CAAU,CAAC;AACjE,MAAM,uBAAuB,GAAG,CAAC,MAAM,EAAE,WAAW,CAAU,CAAC;AAC/D,MAAM,UAAU,GAAgI;IAC9I,EAAE,cAAc,EAAE,CAAC,YAAY,CAAC,EAAE,cAAc,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE;IACjF,EAAE,cAAc,EAAE,CAAC,kBAAkB,CAAC,EAAE,cAAc,EAAE,kBAAkB,EAAE,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irname, join } from 'path';\nimport { FrameworkDevelopmentSkillsSyncService } from '~wildo-cli/services/framework/framework-development-skills-sync.service';\n\n/**\n * Delivers the framework-owned asset homes an application consumes, from the packages the\n * application actually INSTALLED — the app-creator counterpart of the framework-developer\n * orchestrator (`scripts/dev-orchestrator/dev-app-assets-deliver.mjs` + `wildo fwk dev-skills`),\n * which reads the same three homes from a checkout.\n *\n * | Home | Source (app-creator) | Target in the application |\n * |---|---|---|\n * | skeleton + scenario templates | `<framework-assets root>/templates/saas/` — the `templates/` the published CLI carries | `.wildo-saas/templates/` |\n * | references + topic index | `@wildo-ai/framework-knowledge` → `dist/knowledge/{references,topic-index.json}` | `.wildo-saas/docs/` |\n * | compiled skills + rules | the same package → `dist/knowledge/{skills,rules}` | `.claude/skills/`, `.claude/rules/` |\n *\n * ## Why this exists\n *\n * Until 2026-09-05 only the framework-developer lane delivered these; an app-creator application\n * got none of them, while `wildo compose` told it to \"run the framework sync\" and the skeleton's\n * own comment said such applications COMMIT their `.claude/`. The first angle considered — fetch\n * the assets from GitHub — was rejected: the bytes already travel in two npm packages the\n * application resolves at the framework version it installed, and a second download channel is\n * a second copy that can drift from those packages. So the version of every delivered file is\n * the version of the package it came from, and re-running the delivery after\n * `wildo align-deps --write` to a newer framework re-materializes them from the newer packages.\n *\n * ## Mirrors versus managed files\n *\n * `.wildo-saas/templates` and `.wildo-saas/docs` are MIRRORS: gitignored, framework-owned, safe\n * to delete, rebuilt here by full replacement (the orchestrator's doctrine, minus its hard links —\n * an npm package and an application may sit on different filesystems). `.claude/` is different:\n * an application keeps its own material beside the delivered skills, so that lane goes through\n * `FrameworkDevelopmentSkillsSyncService`, which owns an exact-file manifest, staging and\n * rollback and refuses to replace a file it does not own.\n */\nexport const APPLICATION_TEMPLATES_TARGET_RELATIVE = '.wildo-saas/templates';\nexport const APPLICATION_DOCS_TARGET_RELATIVE = '.wildo-saas/docs';\n\n/** The npm package that carries the compiled knowledge, resolved from the application. */\nexport const FRAMEWORK_KNOWLEDGE_PACKAGE_NAME = '@wildo-ai/framework-knowledge';\n\nconst TEMPLATES_SOURCE_RELATIVE = ['templates', 'saas'] as const;\nconst KNOWLEDGE_DIST_RELATIVE = ['dist', 'knowledge'] as const;\nconst DOCS_LANES: ReadonlyArray<{ readonly sourceRelative: readonly string[]; readonly targetRelative: string; readonly directory: boolean }> = [\n { sourceRelative: ['references'], targetRelative: 'references', directory: true },\n { sourceRelative: ['topic-index.json'], targetRelative: 'topic-index.json', directory: false },\n];\n\nexport interface ApplicationAssetsDeliveryInput {\n /** The application root (the directory holding `wildo.saas.config.ts`). */\n readonly applicationRoot: string;\n /**\n * The framework-assets root `templates/` is read from: a checkout, or the installed CLI package\n * (`resolveInstalledFrameworkAssetsRoot`). `null` skips the templates lane with a reason.\n */\n readonly frameworkAssetsRoot: string | null;\n}\n\nexport interface ApplicationAssetsLaneOutcome {\n readonly status: 'delivered' | 'skipped';\n /** Files materialized (delivered) or the reason nothing was (skipped). */\n readonly detail: string;\n}\n\nexport interface ApplicationAssetsDeliveryResult {\n readonly templates: ApplicationAssetsLaneOutcome;\n readonly docs: ApplicationAssetsLaneOutcome;\n readonly skills: ApplicationAssetsLaneOutcome;\n /** The knowledge package root the docs and skills lanes read, when one resolved. */\n readonly knowledgePackageRoot: string | null;\n}\n\nexport class ApplicationAssetsDeliveryService {\n static deliver(input: ApplicationAssetsDeliveryInput): ApplicationAssetsDeliveryResult {\n const knowledgePackageRoot = ApplicationAssetsDeliveryService.resolveInstalledPackageRoot(\n input.applicationRoot,\n FRAMEWORK_KNOWLEDGE_PACKAGE_NAME,\n );\n return {\n templates: ApplicationAssetsDeliveryService.deliverTemplates(input.applicationRoot, input.frameworkAssetsRoot),\n docs: ApplicationAssetsDeliveryService.deliverDocs(input.applicationRoot, knowledgePackageRoot),\n skills: ApplicationAssetsDeliveryService.deliverSkills(input.applicationRoot, knowledgePackageRoot),\n knowledgePackageRoot,\n };\n }\n\n /**\n * Node's package LOOKUP, bounded to the application: walk `node_modules/<name>/package.json`\n * from the application root upward, never above it. Not `require.resolve` — the knowledge\n * package's `exports` map owns what may be imported, and `package.json` is not part of it.\n */\n static resolveInstalledPackageRoot(applicationRoot: string, packageName: string): string | null {\n let directory = applicationRoot;\n for (;;) {\n const candidate = join(directory, 'node_modules', ...packageName.split('/'));\n if (existsSync(join(candidate, 'package.json'))) return candidate;\n const parent = dirname(directory);\n if (parent === directory || !parent.startsWith(applicationRoot)) return null;\n directory = parent;\n }\n }\n\n private static deliverTemplates(applicationRoot: string, frameworkAssetsRoot: string | null): ApplicationAssetsLaneOutcome {\n if (frameworkAssetsRoot === null) {\n return { status: 'skipped', detail: 'no framework-assets root resolved (neither a checkout nor an npm-installed @wildo-ai/wildo-cli)' };\n }\n const source = join(frameworkAssetsRoot, ...TEMPLATES_SOURCE_RELATIVE);\n if (!existsSync(source)) {\n return { status: 'skipped', detail: `${source} does not exist` };\n }\n const count = ApplicationAssetsDeliveryService.mirrorDirectory(source, join(applicationRoot, APPLICATION_TEMPLATES_TARGET_RELATIVE));\n return { status: 'delivered', detail: `${count} file(s) → ${APPLICATION_TEMPLATES_TARGET_RELATIVE}` };\n }\n\n private static deliverDocs(applicationRoot: string, knowledgePackageRoot: string | null): ApplicationAssetsLaneOutcome {\n if (knowledgePackageRoot === null) {\n return { status: 'skipped', detail: `${FRAMEWORK_KNOWLEDGE_PACKAGE_NAME} is not installed in the application (run pnpm install first)` };\n }\n const knowledgeDist = join(knowledgePackageRoot, ...KNOWLEDGE_DIST_RELATIVE);\n const target = join(applicationRoot, APPLICATION_DOCS_TARGET_RELATIVE);\n rmSync(target, { recursive: true, force: true });\n mkdirSync(target, { recursive: true });\n let count = 0;\n for (const lane of DOCS_LANES) {\n const source = join(knowledgeDist, ...lane.sourceRelative);\n if (!existsSync(source)) continue;\n const destination = join(target, lane.targetRelative);\n if (lane.directory) {\n count += ApplicationAssetsDeliveryService.mirrorDirectory(source, destination);\n } else {\n cpSync(source, destination);\n count += 1;\n }\n }\n return { status: 'delivered', detail: `${count} file(s) → ${APPLICATION_DOCS_TARGET_RELATIVE}` };\n }\n\n private static deliverSkills(applicationRoot: string, knowledgePackageRoot: string | null): ApplicationAssetsLaneOutcome {\n if (knowledgePackageRoot === null) {\n return { status: 'skipped', detail: `${FRAMEWORK_KNOWLEDGE_PACKAGE_NAME} is not installed in the application (run pnpm install first)` };\n }\n const result = FrameworkDevelopmentSkillsSyncService.sync({\n applicationRoot,\n knowledgeOutputHome: join(knowledgePackageRoot, ...KNOWLEDGE_DIST_RELATIVE),\n });\n return {\n status: 'delivered',\n detail: `${result.installedCount} installed, ${result.updatedCount} updated, ${result.removedCount} removed → .claude/skills + .claude/rules`,\n };\n }\n\n /** Full replacement: after this, target ≡ source. Returns the number of regular files copied. */\n private static mirrorDirectory(source: string, target: string): number {\n rmSync(target, { recursive: true, force: true });\n mkdirSync(dirname(target), { recursive: true });\n cpSync(source, target, { recursive: true, filter: (entry) => !entry.split('/').pop()?.startsWith('.DS_Store') });\n return ApplicationAssetsDeliveryService.countRegularFiles(target);\n }\n\n private static countRegularFiles(root: string): number {\n let count = 0;\n for (const entry of readdirSync(root, { withFileTypes: true })) {\n const path = join(root, entry.name);\n if (entry.isDirectory()) count += ApplicationAssetsDeliveryService.countRegularFiles(path);\n else if (statSync(path).isFile()) count += 1;\n }\n return count;\n }\n\n /** The version the knowledge lanes delivered from, for reporting. */\n static readInstalledPackageVersion(packageRoot: string | null): string | null {\n if (packageRoot === null) return null;\n try {\n const manifest = JSON.parse(readFileSync(join(packageRoot, 'package.json'), 'utf8')) as { version?: unknown };\n return typeof manifest.version === 'string' ? manifest.version : null;\n } catch {\n return null;\n }\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"application-assets-delivery.service.js","sourceRoot":"","sources":["../../../../src/services/application/application-assets-delivery.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,EAAE,QAAQ,EAA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Sync, readFileSync, rmSync, statSync } from 'fs';\nimport { dirname, join } from 'path';\nimport { FrameworkDevelopmentSkillsSyncService } from '~wildo-cli/services/framework/framework-development-skills-sync.service';\n\n/**\n * Delivers the framework-owned asset homes an application consumes, from the packages the\n * application actually INSTALLED — the app-creator counterpart of the framework-developer\n * orchestrator (`scripts/dev-orchestrator/dev-app-assets-deliver.mjs` + `wildo fwk dev-skills`),\n * which reads the same three homes from a checkout.\n *\n * | Home | Source (app-creator) | Target in the application |\n * |---|---|---|\n * | skeleton + scenario templates | `<framework-assets root>/templates/saas/` — the `templates/` the published CLI carries | `.wildo-saas/templates/` |\n * | references + topic index | `@wildo-ai/framework-knowledge` → `dist/knowledge/{references,topic-index.json}` | `.wildo-saas/docs/` |\n * | compiled skills + rules | the same package → `dist/knowledge/{skills,rules}` | `.claude/skills/`, `.claude/rules/` |\n *\n * ## Why this exists\n *\n * Until 2026-09-05 only the framework-developer lane delivered these; an app-creator application\n * got none of them, while `wildo compose` told it to \"run the framework sync\" and the skeleton's\n * own comment said such applications COMMIT their `.claude/`. The first angle considered — fetch\n * the assets from GitHub — was rejected: the bytes already travel in two npm packages the\n * application resolves at the framework version it installed, and a second download channel is\n * a second copy that can drift from those packages. So the version of every delivered file is\n * the version of the package it came from, and re-running the delivery after\n * `wildo align-deps --write` to a newer framework re-materializes them from the newer packages.\n *\n * ## Mirrors versus managed files\n *\n * `.wildo-saas/templates` and `.wildo-saas/docs` are MIRRORS: gitignored, framework-owned, safe\n * to delete, rebuilt here by full replacement (the orchestrator's doctrine, minus its hard links —\n * an npm package and an application may sit on different filesystems). `.claude/` is different:\n * an application keeps its own material beside the delivered skills, so that lane goes through\n * `FrameworkDevelopmentSkillsSyncService`, which owns an exact-file manifest, staging and\n * rollback and refuses to replace a file it does not own.\n */\nexport const APPLICATION_TEMPLATES_TARGET_RELATIVE = '.wildo-saas/templates';\nexport const APPLICATION_DOCS_TARGET_RELATIVE = '.wildo-saas/docs';\n\n/** The npm package that carries the compiled knowledge, resolved from the application. */\nexport const FRAMEWORK_KNOWLEDGE_PACKAGE_NAME = '@wildo-ai/framework-knowledge';\n\nconst TEMPLATES_SOURCE_RELATIVE = ['templates', 'saas'] as const;\nconst KNOWLEDGE_DIST_RELATIVE = ['dist', 'knowledge'] as const;\nconst DOCS_LANES: ReadonlyArray<{ readonly sourceRelative: readonly string[]; readonly targetRelative: string; readonly directory: boolean }> = [\n { sourceRelative: ['references'], targetRelative: 'references', directory: true },\n { sourceRelative: ['topic-index.json'], targetRelative: 'topic-index.json', directory: false },\n];\n\nexport interface ApplicationAssetsDeliveryInput {\n /** The application root (the directory holding `wildo.saas.config.ts`). */\n readonly applicationRoot: string;\n /**\n * The framework-assets root `templates/` is read from: a checkout, or the installed CLI package\n * (`resolveInstalledFrameworkAssetsRoot`). `null` skips the templates lane with a reason.\n */\n readonly frameworkAssetsRoot: string | null;\n}\n\n/**\n * Whether one asset lane materialized files, or ran and deliberately did not.\n *\n * SKIPPED is an ANSWER, never a failure: a lane skips when its input is legitimately absent — no\n * framework-assets root outside a checkout, `@wildo-ai/framework-knowledge` not yet installed — and\n * every skip carries the reason in `detail`. That is why there is no FAILED member: a lane that\n * cannot proceed says why and the delivery continues, so the caller reads a reason rather than\n * inferring one from an absence.\n */\nexport enum ApplicationAssetsLaneStatus {\n DELIVERED = 'delivered',\n SKIPPED = 'skipped',\n}\n\nexport interface ApplicationAssetsLaneOutcome {\n readonly status: ApplicationAssetsLaneStatus;\n /** Files materialized (delivered) or the reason nothing was (skipped). */\n readonly detail: string;\n}\n\nexport interface ApplicationAssetsDeliveryResult {\n readonly templates: ApplicationAssetsLaneOutcome;\n readonly docs: ApplicationAssetsLaneOutcome;\n readonly skills: ApplicationAssetsLaneOutcome;\n /** The knowledge package root the docs and skills lanes read, when one resolved. */\n readonly knowledgePackageRoot: string | null;\n}\n\nexport class ApplicationAssetsDeliveryService {\n static deliver(input: ApplicationAssetsDeliveryInput): ApplicationAssetsDeliveryResult {\n const knowledgePackageRoot = ApplicationAssetsDeliveryService.resolveInstalledPackageRoot(\n input.applicationRoot,\n FRAMEWORK_KNOWLEDGE_PACKAGE_NAME,\n );\n return {\n templates: ApplicationAssetsDeliveryService.deliverTemplates(input.applicationRoot, input.frameworkAssetsRoot),\n docs: ApplicationAssetsDeliveryService.deliverDocs(input.applicationRoot, knowledgePackageRoot),\n skills: ApplicationAssetsDeliveryService.deliverSkills(input.applicationRoot, knowledgePackageRoot),\n knowledgePackageRoot,\n };\n }\n\n /**\n * Node's package LOOKUP, bounded to the application: walk `node_modules/<name>/package.json`\n * from the application root upward, never above it. Not `require.resolve` — the knowledge\n * package's `exports` map owns what may be imported, and `package.json` is not part of it.\n */\n static resolveInstalledPackageRoot(applicationRoot: string, packageName: string): string | null {\n let directory = applicationRoot;\n for (;;) {\n const candidate = join(directory, 'node_modules', ...packageName.split('/'));\n if (existsSync(join(candidate, 'package.json'))) return candidate;\n const parent = dirname(directory);\n if (parent === directory || !parent.startsWith(applicationRoot)) return null;\n directory = parent;\n }\n }\n\n private static deliverTemplates(applicationRoot: string, frameworkAssetsRoot: string | null): ApplicationAssetsLaneOutcome {\n if (frameworkAssetsRoot === null) {\n return { status: ApplicationAssetsLaneStatus.SKIPPED, detail: 'no framework-assets root resolved (neither a checkout nor an npm-installed @wildo-ai/wildo-cli)' };\n }\n const source = join(frameworkAssetsRoot, ...TEMPLATES_SOURCE_RELATIVE);\n if (!existsSync(source)) {\n return { status: ApplicationAssetsLaneStatus.SKIPPED, detail: `${source} does not exist` };\n }\n const count = ApplicationAssetsDeliveryService.mirrorDirectory(source, join(applicationRoot, APPLICATION_TEMPLATES_TARGET_RELATIVE));\n return { status: ApplicationAssetsLaneStatus.DELIVERED, detail: `${count} file(s) → ${APPLICATION_TEMPLATES_TARGET_RELATIVE}` };\n }\n\n private static deliverDocs(applicationRoot: string, knowledgePackageRoot: string | null): ApplicationAssetsLaneOutcome {\n if (knowledgePackageRoot === null) {\n return { status: ApplicationAssetsLaneStatus.SKIPPED, detail: `${FRAMEWORK_KNOWLEDGE_PACKAGE_NAME} is not installed in the application (run pnpm install first)` };\n }\n const knowledgeDist = join(knowledgePackageRoot, ...KNOWLEDGE_DIST_RELATIVE);\n const target = join(applicationRoot, APPLICATION_DOCS_TARGET_RELATIVE);\n rmSync(target, { recursive: true, force: true });\n mkdirSync(target, { recursive: true });\n let count = 0;\n for (const lane of DOCS_LANES) {\n const source = join(knowledgeDist, ...lane.sourceRelative);\n if (!existsSync(source)) continue;\n const destination = join(target, lane.targetRelative);\n if (lane.directory) {\n count += ApplicationAssetsDeliveryService.mirrorDirectory(source, destination);\n } else {\n cpSync(source, destination);\n count += 1;\n }\n }\n return { status: ApplicationAssetsLaneStatus.DELIVERED, detail: `${count} file(s) → ${APPLICATION_DOCS_TARGET_RELATIVE}` };\n }\n\n private static deliverSkills(applicationRoot: string, knowledgePackageRoot: string | null): ApplicationAssetsLaneOutcome {\n if (knowledgePackageRoot === null) {\n return { status: ApplicationAssetsLaneStatus.SKIPPED, detail: `${FRAMEWORK_KNOWLEDGE_PACKAGE_NAME} is not installed in the application (run pnpm install first)` };\n }\n const result = FrameworkDevelopmentSkillsSyncService.sync({\n applicationRoot,\n knowledgeOutputHome: join(knowledgePackageRoot, ...KNOWLEDGE_DIST_RELATIVE),\n });\n return {\n status: ApplicationAssetsLaneStatus.DELIVERED,\n detail: `${result.installedCount} installed, ${result.updatedCount} updated, ${result.removedCount} removed → .claude/skills + .claude/rules`,\n };\n }\n\n /** Full replacement: after this, target ≡ source. Returns the number of regular files copied. */\n private static mirrorDirectory(source: string, target: string): number {\n rmSync(target, { recursive: true, force: true });\n mkdirSync(dirname(target), { recursive: true });\n cpSync(source, target, { recursive: true, filter: (entry) => !entry.split('/').pop()?.startsWith('.DS_Store') });\n return ApplicationAssetsDeliveryService.countRegularFiles(target);\n }\n\n private static countRegularFiles(root: string): number {\n let count = 0;\n for (const entry of readdirSync(root, { withFileTypes: true })) {\n const path = join(root, entry.name);\n if (entry.isDirectory()) count += ApplicationAssetsDeliveryService.countRegularFiles(path);\n else if (statSync(path).isFile()) count += 1;\n }\n return count;\n }\n\n /**\n * The one thing an upgrade can leave behind. The knowledge package moves with the application's\n * `@wildo-ai/*` pins; the templates, the compose/k8s templates and the platform image tag move\n * with the CLI, which only the installer replaces. When the two disagree, the templates just\n * delivered are the OLD framework's and the compose file will name the OLD image — and nothing\n * else says so. Returns the sentence to print, or `null` when the versions agree or one is unknown.\n */\n static describeFrameworkVersionSkew(cliVersion: string | null, knowledgeVersion: string | null): string | null {\n if (cliVersion === null || knowledgeVersion === null || cliVersion === knowledgeVersion) return null;\n return (\n `Framework version skew: this CLI is ${cliVersion} but the application installed ${FRAMEWORK_KNOWLEDGE_PACKAGE_NAME} ${knowledgeVersion}. ` +\n 'Templates and the platform image tag follow the CLI, docs/skills/rules follow the package — re-run the installer at the ' +\n `application's version (--cli-version=${knowledgeVersion}) and then \\`wildo assets sync\\` again.`\n );\n }\n\n /** The version the knowledge lanes delivered from, for reporting. */\n static readInstalledPackageVersion(packageRoot: string | null): string | null {\n if (packageRoot === null) return null;\n try {\n const manifest = JSON.parse(readFileSync(join(packageRoot, 'package.json'), 'utf8')) as { version?: unknown };\n return typeof manifest.version === 'string' ? manifest.version : null;\n } catch {\n return null;\n }\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application-dependency-alignment.service.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"application-dependency-alignment.service.d.ts","sourceRoot":"","sources":["../../../../src/services/application/application-dependency-alignment.service.ts"],"names":[],"mappings":"AAyCA,8FAA8F;AAC9F,eAAO,MAAM,0CAA0C,2CAA2C,CAAC;AAKnG,UAAU,eAAe;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACtC,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC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,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;CAO9E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application-dev-port-offsets.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"application-dev-port-offsets.d.ts","sourceRoot":"","sources":["../../../../src/services/application/application-dev-port-offsets.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,4EAA4E;AAC5E,eAAO,MAAM,qBAAqB,MAAM,CAAC;AAEzC;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,MAAM,CAAC;AAEzC;;;;;GAKG;AACH,eAAO,MAAM,oCAAoC,QAAgD,CAAC"}
|
package/dist/src/services/application/application-initialization-verification.service.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application-initialization-verification.service.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"application-initialization-verification.service.d.ts","sourceRoot":"","sources":["../../../../src/services/application/application-initialization-verification.service.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,+BAA+B,CAAC;AAEhF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AAClG,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,qDAAqD,CAAC;AAU5G,+FAA+F;AAC/F,wBAAgB,kCAAkC,CAAC,UAAU,EAAE,MAAM,EAAE,UAAU,SAAiC,GAAG,MAAM,CAgB1H;AAED,MAAM,WAAW,0CAA0C;IACzD,GAAG,EAAE,gCAAgC,CAAC;IACtC,WAAW,EAAE,sBAAsB,CAAC;IACpC,OAAO,EAAE,MAAM,CAAC;IAChB;;;;;;;;OAQG;IACH,kBAAkB,EAAE,0BAA0B,CAAC;IAC/C,yGAAyG;IACzG,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;;;;;;;;;GAUG;AACH,qBAAa,4CAA4C;WAC1C,cAAc,CACzB,KAAK,EAAE,0CAA0C,GAChD,OAAO,CAAC,IAAI,CAAC;IA+DhB;;;;;;;;;;;;OAYG;mBACkB,oCAAoC;CA0B1D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application-root.utils.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"application-root.utils.d.ts","sourceRoot":"","sources":["../../../../src/services/application/application-root.utils.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,kBAAkB,yBAAyB,CAAC;AAEzD;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,cAAc,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAQzE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application-runtime-bootstrap.service.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"application-runtime-bootstrap.service.d.ts","sourceRoot":"","sources":["../../../../src/services/application/application-runtime-bootstrap.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAEtD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AAElG,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,qDAAqD,CAAC;AAK5G,MAAM,WAAW,gCAAgC;IAC/C,GAAG,EAAE,gCAAgC,CAAC;IACtC,WAAW,EAAE,sBAAsB,CAAC;IACpC,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,oBAAoB,EAAE,OAAO,CAAC;IAC9B,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACtC,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,iCAAiC;IAChD,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,qBAAa,kCAAkC;WAChC,UAAU,CACrB,KAAK,EAAE,gCAAgC,GACtC,OAAO,CAAC,iCAAiC,CAAC;CAqG9C"}
|
|
@@ -37,7 +37,6 @@ export class ApplicationRuntimeBootstrapService {
|
|
|
37
37
|
const registeredTargetInput = {
|
|
38
38
|
env: resolvedEnv,
|
|
39
39
|
credentials: input.credentials,
|
|
40
|
-
frameworkPath: input.frameworkPath,
|
|
41
40
|
saasRoot: input.saasRoot,
|
|
42
41
|
config,
|
|
43
42
|
requestedAppSlug: input.requestedAppSlug,
|
|
@@ -56,7 +55,6 @@ export class ApplicationRuntimeBootstrapService {
|
|
|
56
55
|
const applicationWorkers = await AppBootstrapService.buildApplicationWorkerTargets(projectionInput);
|
|
57
56
|
const applicationMinions = await AppBootstrapService.buildApplicationMinionTargets(projectionInput);
|
|
58
57
|
const applicationFrontends = await AppBootstrapService.buildApplicationFrontendTargets({
|
|
59
|
-
frameworkPath: input.frameworkPath,
|
|
60
58
|
saasRoot: input.saasRoot,
|
|
61
59
|
requestedAppSlug: input.requestedAppSlug,
|
|
62
60
|
prepared,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application-runtime-bootstrap.service.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"application-runtime-bootstrap.service.js","sourceRoot":"","sources":["../../../../src/services/application/application-runtime-bootstrap.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAGH,OAAO,EAAE,mBAAmB,EAAE,MAAM,uDAAuD,CAAC;AAE5F,OAAO,EAAE,IAAI,IAAI,OAAO,EAAE,MAAM,kDAAkD,CAAC;AAEnF,OAAO,EAAE,gBAAgB,EAAE,MAAM,qDAAqD,CAAC;AACvF,OAAO,EAAE,4BAA4B,EAAE,MAAM,6DAA6D,CAAC;AAC3G,OAAO,EAAE,4CAA4C,EAAE,MAAM,mDAAmD,CAAC;AAo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kB;SAC9D,CAAC,CAAC;QAEH,KAAK,CAAC,GAAG,CAAC,OAAO,CACf,uCAAuC,MAAM,CAAC,YAAY,YAAY;cACpE,GAAG,MAAM,CAAC,cAAc,eAAe,MAAM,CAAC,aAAa,aAAa;cACxE,GAAG,MAAM,CAAC,WAAW,YAAY,MAAM,CAAC,WAAW,oBAAoB,CAC1E,CAAC;QACF,OAAO,MAAM,CAAC;IAChB,CAAC;CACF","sourcesContent":["/**\n * Canonical application-runtime bootstrap orchestration.\n *\n * This service is the single local lifecycle seam that turns an authored SaaS\n * application declaration into runnable process configuration:\n *\n * apps-manager registration by stable slug\n * -> bootstrap credential fetch\n * -> derived APPLICATION_ID persistence\n * -> backend/companion/frontend/worker/minion target projection\n * -> generated env materialization\n *\n * Callers must make apps-manager ready before entering this service. Keeping\n * that boundary explicit prevents application processes from racing the\n * database-owned identity/config/secrets records they consume at startup.\n */\n\nimport type { Logger } from '~wildo-cli/kernel/types';\nimport { AppBootstrapService } from '~wildo-cli/services/application/app-bootstrap.service';\nimport type { PlatformEnvSecretsJson } from '~wildo-cli/services/credentials/credentials.schemas';\nimport { sync as envSync } from '~wildo-cli/services/environment/env-sync.service';\nimport type { PlatformEnvironmentConfiguration } from '~wildo-cli/services/environment/environment.schemas';\nimport { EnvironmentUtils } from '~wildo-cli/services/environment/environment.service';\nimport { hydrateEnvironmentFromConfig } from '~wildo-cli/services/environment/environment-hydration.utils';\nimport { ApplicationInitializationVerificationService } from './application-initialization-verification.service';\n\nexport interface ApplicationRuntimeBootstrapInput {\n env: PlatformEnvironmentConfiguration;\n credentials: PlatformEnvSecretsJson;\n frameworkPath: string;\n saasRoot: string;\n isFrameworkDeveloper: boolean;\n requestedAppSlug?: string | undefined;\n log: Logger;\n}\n\nexport interface ApplicationRuntimeBootstrapResult {\n backendCount: number;\n companionCount: number;\n frontendCount: number;\n workerCount: number;\n minionCount: number;\n}\n\nexport class ApplicationRuntimeBootstrapService {\n static async initialize(\n input: ApplicationRuntimeBootstrapInput,\n ): Promise<ApplicationRuntimeBootstrapResult> {\n const config = EnvironmentUtils.loadConfigJson(input.env.name);\n if (!config) {\n throw new Error(`No config for '${input.env.name}'. Run 'wildo setup' first.`);\n }\n\n /**\n * Reconcile the caller's environment record against `config.json` before any target is\n * projected from it. The record is a registry CACHE that persists only a subset of the\n * authored environment, so an identity field authored since the last write reads as\n * `undefined` here and every generator silently takes its default — see the contract on\n * {@link hydrateEnvironmentFromConfig} for what that cost when the default was `http`\n * against a TLS dev edge.\n */\n const resolvedEnv = hydrateEnvironmentFromConfig(input.env, config);\n\n const registeredTargetInput = {\n env: resolvedEnv,\n credentials: input.credentials,\n saasRoot: input.saasRoot,\n config,\n requestedAppSlug: input.requestedAppSlug,\n };\n\n input.log.info(' Registering application once and materializing every runtime target from one snapshot...');\n\n const prepared = await AppBootstrapService.prepareApplicationEnvTargets(registeredTargetInput);\n if (!prepared) {\n throw new Error(\n 'Application bootstrap resolved no application target. Check wildo.saas.config.ts and the selected application slug.',\n );\n }\n const projectionInput = { ...registeredTargetInput, prepared };\n\n // These builders are projections over the same prepared registration/credential generation. They no\n // longer make independent initialize + credential-fetch requests, so a single logical bootstrap cannot\n // mix observations from multiple control-plane generations.\n const applicationBackends = await AppBootstrapService.buildApplicationBackendTargets(\n projectionInput,\n );\n const companionApis = await AppBootstrapService.buildApplicationCompanionTargets(\n projectionInput,\n );\n const applicationWorkers = await AppBootstrapService.buildApplicationWorkerTargets(\n projectionInput,\n );\n const applicationMinions = await AppBootstrapService.buildApplicationMinionTargets(\n projectionInput,\n );\n const applicationFrontends = await AppBootstrapService.buildApplicationFrontendTargets({\n saasRoot: input.saasRoot,\n requestedAppSlug: input.requestedAppSlug,\n prepared,\n });\n\n const result: ApplicationRuntimeBootstrapResult = {\n backendCount: applicationBackends.length,\n companionCount: companionApis.length,\n frontendCount: applicationFrontends.length,\n workerCount: applicationWorkers.length,\n minionCount: applicationMinions.length,\n };\n const targetCount = Object.values(result).reduce((total, count) => total + count, 0);\n if (targetCount === 0) {\n throw new Error(\n 'Application bootstrap resolved no runtime targets. Check wildo.saas.config.ts and the selected application slug.',\n );\n }\n\n await envSync(\n resolvedEnv,\n input.credentials,\n {\n frameworkPath: input.frameworkPath,\n isFrameworkDeveloper: input.isFrameworkDeveloper,\n applicationBackends,\n companionApis,\n applicationFrontends,\n applicationWorkers,\n applicationMinions,\n },\n input.log,\n );\n\n input.log.info(' Verifying the registered platform JWT door and managed application config...');\n await ApplicationInitializationVerificationService.assertCoherent({\n env: resolvedEnv,\n credentials: input.credentials,\n appSlug: prepared.runtimeTarget.appSlug,\n // The declaration this run initialized against — what makes the postcondition a COMPARISON\n // rather than an existence assertion (issue #97).\n managedDeclaration: prepared.runtimeTarget.managedDeclaration,\n });\n\n input.log.success(\n ` Application runtime materialized: ${result.backendCount} backend, `\n + `${result.companionCount} companion, ${result.frontendCount} frontend, `\n + `${result.workerCount} worker, ${result.minionCount} minion target(s).`,\n );\n return result;\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dev-orchestrator.service.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"dev-orchestrator.service.d.ts","sourceRoot":"","sources":["../../../../src/services/application/dev-orchestrator.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAMH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAGtD,MAAM,WAAW,aAAa;IAC5B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,4FAA4F;IAC5F,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,4FAA4F;IAC5F,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,SAAS;IACxB,OAAO,EAAE,OAAO,CAAC;IACjB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAqBD,eAAO,MAAM,sBAAsB;mCACF,MAAM,mBAAmB,MAAM,GAAG,MAAM;0BAkBjD,MAAM,GAAG,SAAS;qBAYjB,MAAM,OAAO,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;oBA4BvC,MAAM,WAAW,aAAa,OAAO,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;CAmGpF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dev-schema-drift.service.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"dev-schema-drift.service.d.ts","sourceRoot":"","sources":["../../../../src/services/application/dev-schema-drift.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAYH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAS9D,iFAAiF;AACjF,oBAAY,qBAAqB;IAC/B,sGAAsG;IACtG,WAAW,gBAAgB;IAC3B,gGAAgG;IAChG,OAAO,YAAY;IACnB,sGAAsG;IACtG,mBAAmB,wBAAwB;IAC3C,8EAA8E;IAC9E,yBAAyB,8BAA8B;IACvD,qFAAqF;IACrF,qBAAqB,0BAA0B;IAC/C,qGAAqG;IACrG,sBAAsB,2BAA2B;IACjD,0EAA0E;IAC1E,OAAO,YAAY;CACpB;AAED,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,qBAAqB,CAAC;IAC/B,sFAAsF;IACtF,OAAO,EAAE,MAAM,CAAC;IAChB,kDAAkD;IAClD,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AA0DD;;;;;;;GAOG;AACH,wBAAsB,+BAA+B,CAAC,KAAK,EAAE;IAC3D,GAAG,EAAE,cAAc,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CACjC,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAuGhC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"existing-app-bootstrap.service.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"existing-app-bootstrap.service.d.ts","sourceRoot":"","sources":["../../../../src/services/application/existing-app-bootstrap.service.ts"],"names":[],"mappings":"AA8DA;;;;;;;;;GASG;AACH,qBAAa,2BAA2B;WACzB,sBAAsB,CACjC,OAAO,EAAE,MAAM,GAAG,IAAI,EACtB,aAAa,EAAE,MAAM,GAAG,IAAI,GAC3B,OAAO,CAAC,IAAI,CAAC;IA+DhB,OAAO,CAAC,MAAM,CAAC,uBAAuB;mBA+GjB,6BAA6B;mBA+C7B,uBAAuB;mBASvB,kBAAkB;CAQxC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"local-app-reinit.service.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"local-app-reinit.service.d.ts","sourceRoot":"","sources":["../../../../src/services/application/local-app-reinit.service.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,qDAAqD,CAAC;AAE5G,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAOtD,MAAM,WAAW,mBAAmB;IAClC,GAAG,EAAE,gCAAgC,CAAC;IACtC,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,oBAAoB,EAAE,OAAO,CAAC;IAC9B,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACtC,GAAG,EAAE,MAAM,CAAC;CACb;AAED;;;;;;;;;;;;;;;;;;;;;;;;IAwBI;AACJ,qBAAa,qBAAqB;WACnB,YAAY,CAAC,KAAK,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC;IAyCpE,OAAO,CAAC,MAAM,CAAC,cAAc;mBASR,gBAAgB;CAgDtC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"local-application-initialization.service.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"local-application-initialization.service.d.ts","sourceRoot":"","sources":["../../../../src/services/application/local-application-initialization.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,qDAAqD,CAAC;AAC5G,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,yCAAyC,CAAC;AAWjG,MAAM,WAAW,mCAAmC;IAClD,GAAG,EAAE,gCAAgC,CAAC;IACtC,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,oBAAoB,EAAE,OAAO,CAAC;IAC9B,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACtC,0GAA0G;IAC1G,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC;;;;;OAKG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,oCAAoC;IACnD,mBAAmB,EAAE,MAAM,CAAC;IAC5B,kBAAkB,EAAE,iCAAiC,CAAC;CACvD;AAED;;;;;;;GAOG;AACH,qBAAa,qCAAqC;WACnC,UAAU,CACrB,KAAK,EAAE,mCAAmC,GACzC,OAAO,CAAC,oCAAoC,CAAC;CA4GjD"}
|
|
@@ -58,7 +58,10 @@ export class LocalApplicationInitializationService {
|
|
|
58
58
|
catch (error) {
|
|
59
59
|
input.log.warn(` Could not stop a tracked platform lifecycle: ${ErrorUtils.extractErrorMessage(error)}`);
|
|
60
60
|
}
|
|
61
|
-
stoppedProcessTrees = await LocalRuntimeProcessCleanupService.stop(
|
|
61
|
+
stoppedProcessTrees = await LocalRuntimeProcessCleanupService.stop(
|
|
62
|
+
// The framework root only owns process trees for a framework developer; for an application
|
|
63
|
+
// creator it is the installed CLI package, which runs nothing.
|
|
64
|
+
input.isFrameworkDeveloper ? [input.frameworkPath, input.saasRoot] : [input.saasRoot], input.log);
|
|
62
65
|
}
|
|
63
66
|
input.log.info('\n Converging generated local runtime artifacts...');
|
|
64
67
|
await RuntimeBootstrap.ensureLocalRuntimeArtifacts({
|
|
@@ -74,12 +77,25 @@ export class LocalApplicationInitializationService {
|
|
|
74
77
|
isFrameworkDeveloper: input.isFrameworkDeveloper,
|
|
75
78
|
log: input.log,
|
|
76
79
|
});
|
|
77
|
-
if (
|
|
78
|
-
|
|
79
|
-
|
|
80
|
+
if (shouldRunPlatformServicesNatively(input.env, input.isFrameworkDeveloper)) {
|
|
81
|
+
input.log.info('\n Reconciling platform initialization and waiting for the normal control plane...');
|
|
82
|
+
await PlatformLifecycle.start(input.env, { frameworkPath: input.frameworkPath, skipInit: false }, input.log);
|
|
83
|
+
}
|
|
84
|
+
else {
|
|
85
|
+
/*
|
|
86
|
+
* App-creator lane: the platform services are compose services of the SAME project the
|
|
87
|
+
* backing services belong to, so `ensureReady` above already started them (and `platform-init`,
|
|
88
|
+
* the one-shot INIT job the compose file declares) and waited on their container health. What
|
|
89
|
+
* remains is the same readiness contract the native lane holds application bootstrap to:
|
|
90
|
+
* apps-manager answering `/health/ready` on its published port, bounded by the standard health
|
|
91
|
+
* timeout (this command is not the long-running `local dev` loop, so an unbounded wait would be
|
|
92
|
+
* a hang, not patience). Until 2026-09-06 this branch threw "requires the registered native
|
|
93
|
+
* platform lifecycle", which left an application creator with no command that registers an
|
|
94
|
+
* application.
|
|
95
|
+
*/
|
|
96
|
+
input.log.info('\n Waiting for the in-runtime apps-manager to answer its readiness contract...');
|
|
97
|
+
await PlatformLifecycle.waitForAppsManagerReady(input.env, input.log);
|
|
80
98
|
}
|
|
81
|
-
input.log.info('\n Reconciling platform initialization and waiting for the normal control plane...');
|
|
82
|
-
await PlatformLifecycle.start(input.env, { frameworkPath: input.frameworkPath, skipInit: false }, input.log);
|
|
83
99
|
input.log.info('\n Reconciling the application and every runtime projection...');
|
|
84
100
|
const applicationRuntime = await ApplicationRuntimeBootstrapService.initialize({
|
|
85
101
|
env: input.env,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"local-application-initialization.service.js","sourceRoot":"","sources":["../../../../../../src/services/application/local-application-initialization.service.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qDAAqD,CAAC;AACvF,OAAO,EAAE,gBAAgB,EAAE,MAAM,2DAA2D,CAAC;AAC7F,OAAO,EAAE,wCAAwC,EAAE,MAAM,4EAA4E,CAAC;AACtI,OAAO,EAAE,iCAAiC,EAAE,MAAM,sEAAsE,CAAC;AACzH,OAAO,KAAK,iBAAiB,MAAM,2DAA2D,CAAC;AAC/F,OAAO,EAAE,iCAAiC,EAAE,MAAM,gEAAgE,CAAC;AACnH,OAAO,EAAE,kCAAkC,EAAE,MAAM,yCAAyC,CAAC;AAC7F,OAAO,EAAE,UAAU,EAAE,MAAM,8CAA8C,CAAC;AAC1E,OAAO,EAAE,6BAA6B,EAAE,MAAM,gEAAgE,CAAC;AAyB/G;;;;;;;GAOG;AACH,MAAM,OAAO,qCAAqC;IAChD,MAAM,CAAC,KAAK,CAAC,UAAU,CACrB,KAA0C;QAE1C,MAAM,WAAW,GAAG,gBAAgB,CAAC,eAAe,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QACrE,IAAI,CAAC,WAAW,EAAE,CAAC;YACjB,MAAM,IAAI,KAAK,CAAC,mBAAmB,KAAK,CAAC,GAAG,CAAC,IAAI,6BAA6B,CAAC,CAAC;QAClF,CAAC;QAED;;;;;;WAMG;QACH,MAAM,iBAAiB,GAAG,6BAA6B,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;QAC7E,IAAI,iBAAiB,IAAI,CAAC,KAAK,CAAC,YAAY,EAAE,CAAC;YAC7C,MAAM,IAAI,KAAK,CACb,uEAAuE,iBAAiB,CAAC,GAAG,IAAI;gBAChG,OAAO,iBAAiB,CAAC,OAAO,WAAW,iBA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,CAAC,GAAG;SACf,CAAC,CAAC;QAEH,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,CAAC;IACrD,CAAC;CACF","sourcesContent":["import type { Logger } from '~wildo-cli/kernel/types';\nimport type { PlatformEnvironmentConfiguration } from '~wildo-cli/services/environment/environment.schemas';\nimport type { ApplicationRuntimeBootstrapResult } from './application-runtime-bootstrap.service';\nimport { EnvironmentUtils } from '~wildo-cli/services/environment/environment.service';\nimport { RuntimeBootstrap } from '~wildo-cli/services/environment/runtime-bootstrap.service';\nimport { LocalInfrastructureInitializationService } from '~wildo-cli/services/deployment/local-infrastructure-initialization.service';\nimport { LocalRuntimeProcessCleanupService } from '~wildo-cli/services/deployment/local-runtime-process-cleanup.service';\nimport * as PlatformLifecycle from '~wildo-cli/services/deployment/platform-lifecycle.service';\nimport { shouldRunPlatformServicesNatively } from '~wildo-cli/services/deployment/platform-runtime-policy.service';\nimport { ApplicationRuntimeBootstrapService } from './application-runtime-bootstrap.service';\nimport { ErrorUtils } from '~wildo-cli/infrastructure/errors/error.utils';\nimport { readLiveLocalDevPlatformOwner } from '~wildo-cli/services/deployment/local-dev-session-lease.service';\n\nexport interface LocalApplicationInitializationInput {\n env: PlatformEnvironmentConfiguration;\n frameworkPath: string;\n saasRoot: string;\n isFrameworkDeveloper: boolean;\n requestedAppSlug?: string | undefined;\n /** Destructive reinit already reaped every process before wiping data; avoid a redundant second sweep. */\n processStateAlreadyClean?: boolean;\n /**\n * Register THIS application against an already-running platform and materialize its own runtime\n * projections — touching NO shared substrate. This is the second-app path (issue #50): no process\n * sweep, no artifact/infra convergence, no platform INIT. The control plane must already be healthy;\n * the application bootstrap fails with its own diagnostics otherwise.\n */\n registerOnly?: boolean;\n log: Logger;\n}\n\nexport interface LocalApplicationInitializationResult {\n stoppedProcessTrees: number;\n applicationRuntime: ApplicationRuntimeBootstrapResult;\n}\n\n/**\n * The registered, non-destructive local project initialization journey.\n *\n * It converges every derived layer in dependency order: authored artifacts -> backing-service readiness ->\n * platform INIT postconditions -> normal control-plane readiness -> one application registration snapshot ->\n * runtime projections -> executable JWT/config verification. It never wipes backing-service data; callers\n * needing a clean-room generation run their destructive reset first and then delegate here.\n */\nexport class LocalApplicationInitializationService {\n static async initialize(\n input: LocalApplicationInitializationInput,\n ): Promise<LocalApplicationInitializationResult> {\n const credentials = EnvironmentUtils.loadSecretsJson(input.env.name);\n if (!credentials) {\n throw new Error(`No secrets for '${input.env.name}'. Run 'wildo setup' first.`);\n }\n\n /*\n * REFUSE full platform convergence under a live owner (issue #50). The phases below stop every\n * process tree under the framework root, rewrite the shared platform generation, recreate the\n * backing containers and run the apps-manager INIT job — each of which is an OUTAGE, not an\n * initialization, when a `wildo local dev` session is actively running the platform. It happened\n * twice on 2026-08-25 before this guard existed. The refusal names the owner and both doors.\n */\n const livePlatformOwner = readLiveLocalDevPlatformOwner(input.frameworkPath);\n if (livePlatformOwner && !input.registerOnly) {\n throw new Error(\n `an active \\`wildo local dev\\` session owns the shared platform (pid ${livePlatformOwner.pid}, ` +\n `app ${livePlatformOwner.appRoot}, since ${livePlatformOwner.acquiredAt}). Full initialization stops ` +\n 'every running process tree and rewrites the shared platform generation — refusing while the owner is ' +\n 'live. Either stop that session first, or run `wildo local init --register-only` to register THIS ' +\n 'application against the running platform without touching shared substrate.',\n );\n }\n\n if (input.registerOnly) {\n input.log.info('\\n Register-only: reconciling THIS application against the running platform (no shared substrate is touched)...');\n const applicationRuntime = await ApplicationRuntimeBootstrapService.initialize({\n env: input.env,\n credentials,\n frameworkPath: input.frameworkPath,\n saasRoot: input.saasRoot,\n isFrameworkDeveloper: input.isFrameworkDeveloper,\n requestedAppSlug: input.requestedAppSlug,\n log: input.log,\n });\n return { stoppedProcessTrees: 0, applicationRuntime };\n }\n\n let stoppedProcessTrees = 0;\n if (!input.processStateAlreadyClean) {\n input.log.info('\\n Stopping prior graph-supervised and tracked platform process trees...');\n try {\n await PlatformLifecycle.stop(input.env, input.log);\n } catch (error) {\n input.log.warn(\n ` Could not stop a tracked platform lifecycle: ${ErrorUtils.extractErrorMessage(error)}`,\n );\n }\n stoppedProcessTrees = await LocalRuntimeProcessCleanupService.stop(\n [input.frameworkPath, input.saasRoot],\n input.log,\n );\n }\n\n input.log.info('\\n Converging generated local runtime artifacts...');\n await RuntimeBootstrap.ensureLocalRuntimeArtifacts({\n env: input.env,\n saasRoot: input.saasRoot,\n frameworkPath: input.frameworkPath,\n isFrameworkDeveloper: input.isFrameworkDeveloper,\n log: input.log,\n });\n\n input.log.info('\\n Starting backing services and waiting for readiness...');\n await LocalInfrastructureInitializationService.ensureReady({\n env: input.env,\n isFrameworkDeveloper: input.isFrameworkDeveloper,\n log: input.log,\n });\n\n if (!shouldRunPlatformServicesNatively(input.env, input.isFrameworkDeveloper)) {\n throw new Error(\n '`wildo local init` currently requires the registered native platform lifecycle. ' +\n 'Start the in-runtime platform services and use the remote initialization journey for this environment.',\n );\n }\n\n input.log.info('\\n Reconciling platform initialization and waiting for the normal control plane...');\n await PlatformLifecycle.start(\n input.env,\n { frameworkPath: input.frameworkPath, skipInit: false },\n input.log,\n );\n\n input.log.info('\\n Reconciling the application and every runtime projection...');\n const applicationRuntime = await ApplicationRuntimeBootstrapService.initialize({\n env: input.env,\n credentials,\n frameworkPath: input.frameworkPath,\n saasRoot: input.saasRoot,\n isFrameworkDeveloper: input.isFrameworkDeveloper,\n requestedAppSlug: input.requestedAppSlug,\n log: input.log,\n });\n\n return { stoppedProcessTrees, applicationRuntime };\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"local-application-initialization.service.js","sourceRoot":"","sources":["../../../../src/services/application/local-application-initialization.service.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qDAAqD,CAAC;AACvF,OAAO,EAAE,gBAAgB,EAAE,MAAM,2DAA2D,CAAC;AAC7F,OAAO,EAAE,wCAAwC,EAAE,MAAM,4EAA4E,CAAC;AACtI,OAAO,EAAE,iCAAiC,EAAE,MAAM,sEAAsE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/kernel/types';\nimport type { PlatformEnvironmentConfiguration } from '~wildo-cli/services/environment/environment.schemas';\nimport type { ApplicationRuntimeBootstrapResult } from './application-runtime-bootstrap.service';\nimport { EnvironmentUtils } from '~wildo-cli/services/environment/environment.service';\nimport { RuntimeBootstrap } from '~wildo-cli/services/environment/runtime-bootstrap.service';\nimport { LocalInfrastructureInitializationService } from '~wildo-cli/services/deployment/local-infrastructure-initialization.service';\nimport { LocalRuntimeProcessCleanupService } from '~wildo-cli/services/deployment/local-runtime-process-cleanup.service';\nimport * as PlatformLifecycle from '~wildo-cli/services/deployment/platform-lifecycle.service';\nimport { shouldRunPlatformServicesNatively } from '~wildo-cli/services/deployment/platform-runtime-policy.service';\nimport { ApplicationRuntimeBootstrapService } from './application-runtime-bootstrap.service';\nimport { ErrorUtils } from '~wildo-cli/infrastructure/errors/error.utils';\nimport { readLiveLocalDevPlatformOwner } from '~wildo-cli/services/deployment/local-dev-session-lease.service';\n\nexport interface LocalApplicationInitializationInput {\n env: PlatformEnvironmentConfiguration;\n frameworkPath: string;\n saasRoot: string;\n isFrameworkDeveloper: boolean;\n requestedAppSlug?: string | undefined;\n /** Destructive reinit already reaped every process before wiping data; avoid a redundant second sweep. */\n processStateAlreadyClean?: boolean;\n /**\n * Register THIS application against an already-running platform and materialize its own runtime\n * projections — touching NO shared substrate. This is the second-app path (issue #50): no process\n * sweep, no artifact/infra convergence, no platform INIT. The control plane must already be healthy;\n * the application bootstrap fails with its own diagnostics otherwise.\n */\n registerOnly?: boolean;\n log: Logger;\n}\n\nexport interface LocalApplicationInitializationResult {\n stoppedProcessTrees: number;\n applicationRuntime: ApplicationRuntimeBootstrapResult;\n}\n\n/**\n * The registered, non-destructive local project initialization journey.\n *\n * It converges every derived layer in dependency order: authored artifacts -> backing-service readiness ->\n * platform INIT postconditions -> normal control-plane readiness -> one application registration snapshot ->\n * runtime projections -> executable JWT/config verification. It never wipes backing-service data; callers\n * needing a clean-room generation run their destructive reset first and then delegate here.\n */\nexport class LocalApplicationInitializationService {\n static async initialize(\n input: LocalApplicationInitializationInput,\n ): Promise<LocalApplicationInitializationResult> {\n const credentials = EnvironmentUtils.loadSecretsJson(input.env.name);\n if (!credentials) {\n throw new Error(`No secrets for '${input.env.name}'. Run 'wildo setup' first.`);\n }\n\n /*\n * REFUSE full platform convergence under a live owner (issue #50). The phases below stop every\n * process tree under the framework root, rewrite the shared platform generation, recreate the\n * backing containers and run the apps-manager INIT job — each of which is an OUTAGE, not an\n * initialization, when a `wildo local dev` session is actively running the platform. It happened\n * twice on 2026-08-25 before this guard existed. The refusal names the owner and both doors.\n */\n const livePlatformOwner = readLiveLocalDevPlatformOwner(input.frameworkPath);\n if (livePlatformOwner && !input.registerOnly) {\n throw new Error(\n `an active \\`wildo local dev\\` session owns the shared platform (pid ${livePlatformOwner.pid}, ` +\n `app ${livePlatformOwner.appRoot}, since ${livePlatformOwner.acquiredAt}). Full initialization stops ` +\n 'every running process tree and rewrites the shared platform generation — refusing while the owner is ' +\n 'live. Either stop that session first, or run `wildo local init --register-only` to register THIS ' +\n 'application against the running platform without touching shared substrate.',\n );\n }\n\n if (input.registerOnly) {\n input.log.info('\\n Register-only: reconciling THIS application against the running platform (no shared substrate is touched)...');\n const applicationRuntime = await ApplicationRuntimeBootstrapService.initialize({\n env: input.env,\n credentials,\n frameworkPath: input.frameworkPath,\n saasRoot: input.saasRoot,\n isFrameworkDeveloper: input.isFrameworkDeveloper,\n requestedAppSlug: input.requestedAppSlug,\n log: input.log,\n });\n return { stoppedProcessTrees: 0, applicationRuntime };\n }\n\n let stoppedProcessTrees = 0;\n if (!input.processStateAlreadyClean) {\n input.log.info('\\n Stopping prior graph-supervised and tracked platform process trees...');\n try {\n await PlatformLifecycle.stop(input.env, input.log);\n } catch (error) {\n input.log.warn(\n ` Could not stop a tracked platform lifecycle: ${ErrorUtils.extractErrorMessage(error)}`,\n );\n }\n stoppedProcessTrees = await LocalRuntimeProcessCleanupService.stop(\n // The framework root only owns process trees for a framework developer; for an application\n // creator it is the installed CLI package, which runs nothing.\n input.isFrameworkDeveloper ? [input.frameworkPath, input.saasRoot] : [input.saasRoot],\n input.log,\n );\n }\n\n input.log.info('\\n Converging generated local runtime artifacts...');\n await RuntimeBootstrap.ensureLocalRuntimeArtifacts({\n env: input.env,\n saasRoot: input.saasRoot,\n frameworkPath: input.frameworkPath,\n isFrameworkDeveloper: input.isFrameworkDeveloper,\n log: input.log,\n });\n\n input.log.info('\\n Starting backing services and waiting for readiness...');\n await LocalInfrastructureInitializationService.ensureReady({\n env: input.env,\n isFrameworkDeveloper: input.isFrameworkDeveloper,\n log: input.log,\n });\n\n if (shouldRunPlatformServicesNatively(input.env, input.isFrameworkDeveloper)) {\n input.log.info('\\n Reconciling platform initialization and waiting for the normal control plane...');\n await PlatformLifecycle.start(\n input.env,\n { frameworkPath: input.frameworkPath, skipInit: false },\n input.log,\n );\n } else {\n /*\n * App-creator lane: the platform services are compose services of the SAME project the\n * backing services belong to, so `ensureReady` above already started them (and `platform-init`,\n * the one-shot INIT job the compose file declares) and waited on their container health. What\n * remains is the same readiness contract the native lane holds application bootstrap to:\n * apps-manager answering `/health/ready` on its published port, bounded by the standard health\n * timeout (this command is not the long-running `local dev` loop, so an unbounded wait would be\n * a hang, not patience). Until 2026-09-06 this branch threw \"requires the registered native\n * platform lifecycle\", which left an application creator with no command that registers an\n * application.\n */\n input.log.info('\\n Waiting for the in-runtime apps-manager to answer its readiness contract...');\n await PlatformLifecycle.waitForAppsManagerReady(input.env, input.log);\n }\n\n input.log.info('\\n Reconciling the application and every runtime projection...');\n const applicationRuntime = await ApplicationRuntimeBootstrapService.initialize({\n env: input.env,\n credentials,\n frameworkPath: input.frameworkPath,\n saasRoot: input.saasRoot,\n isFrameworkDeveloper: input.isFrameworkDeveloper,\n requestedAppSlug: input.requestedAppSlug,\n log: input.log,\n });\n\n return { stoppedProcessTrees, applicationRuntime };\n }\n}\n"]}
|