@wildo-ai/wildo-cli 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +34 -0
- package/bin/wildo-tsc-native.mjs +108 -0
- package/bin/wildo.ts +10 -0
- package/dist/bin/wildo.d.ts +3 -0
- package/dist/bin/wildo.d.ts.map +1 -0
- package/dist/bin/wildo.js +7 -0
- package/dist/bin/wildo.js.map +1 -0
- package/dist/src/__tests__/sandbox-dependencies.test-helpers.d.ts +8 -0
- package/dist/src/__tests__/sandbox-dependencies.test-helpers.d.ts.map +1 -0
- package/dist/src/__tests__/sandbox-dependencies.test-helpers.js +54 -0
- package/dist/src/__tests__/sandbox-dependencies.test-helpers.js.map +1 -0
- package/dist/src/commands/acp/probe.command.d.ts +30 -0
- package/dist/src/commands/acp/probe.command.d.ts.map +1 -0
- package/dist/src/commands/acp/probe.command.js +122 -0
- package/dist/src/commands/acp/probe.command.js.map +1 -0
- package/dist/src/commands/align-deps.command.d.ts +7 -0
- package/dist/src/commands/align-deps.command.d.ts.map +1 -0
- package/dist/src/commands/align-deps.command.js +102 -0
- package/dist/src/commands/align-deps.command.js.map +1 -0
- package/dist/src/commands/assets/sync.command.d.ts +23 -0
- package/dist/src/commands/assets/sync.command.d.ts.map +1 -0
- package/dist/src/commands/assets/sync.command.js +59 -0
- package/dist/src/commands/assets/sync.command.js.map +1 -0
- package/dist/src/commands/brand/propagate.command.d.ts +62 -0
- package/dist/src/commands/brand/propagate.command.d.ts.map +1 -0
- package/dist/src/commands/brand/propagate.command.js +193 -0
- package/dist/src/commands/brand/propagate.command.js.map +1 -0
- package/dist/src/commands/compose.command.d.ts +7 -0
- package/dist/src/commands/compose.command.d.ts.map +1 -0
- package/dist/src/commands/compose.command.js +99 -0
- package/dist/src/commands/compose.command.js.map +1 -0
- package/dist/src/commands/config/__tests__/reapply-declaration.command.test.d.ts +22 -0
- package/dist/src/commands/config/__tests__/reapply-declaration.command.test.d.ts.map +1 -0
- package/dist/src/commands/config/__tests__/reapply-declaration.command.test.js +268 -0
- package/dist/src/commands/config/__tests__/reapply-declaration.command.test.js.map +1 -0
- package/dist/src/commands/config/__tests__/sync.command.test.d.ts +2 -0
- package/dist/src/commands/config/__tests__/sync.command.test.d.ts.map +1 -0
- package/dist/src/commands/config/__tests__/sync.command.test.js +1229 -0
- package/dist/src/commands/config/__tests__/sync.command.test.js.map +1 -0
- package/dist/src/commands/config/__tests__/validate.command.test.d.ts +14 -0
- package/dist/src/commands/config/__tests__/validate.command.test.d.ts.map +1 -0
- package/dist/src/commands/config/__tests__/validate.command.test.js +375 -0
- package/dist/src/commands/config/__tests__/validate.command.test.js.map +1 -0
- package/dist/src/commands/config/mutate.command.d.ts +32 -0
- package/dist/src/commands/config/mutate.command.d.ts.map +1 -0
- package/dist/src/commands/config/mutate.command.js +119 -0
- package/dist/src/commands/config/mutate.command.js.map +1 -0
- package/dist/src/commands/config/reapply-declaration.command.d.ts +40 -0
- package/dist/src/commands/config/reapply-declaration.command.d.ts.map +1 -0
- package/dist/src/commands/config/reapply-declaration.command.js +174 -0
- package/dist/src/commands/config/reapply-declaration.command.js.map +1 -0
- package/dist/src/commands/config/sync.command.d.ts +123 -0
- package/dist/src/commands/config/sync.command.d.ts.map +1 -0
- package/dist/src/commands/config/sync.command.js +1170 -0
- package/dist/src/commands/config/sync.command.js.map +1 -0
- package/dist/src/commands/config/validate.command.d.ts +117 -0
- package/dist/src/commands/config/validate.command.d.ts.map +1 -0
- package/dist/src/commands/config/validate.command.js +563 -0
- package/dist/src/commands/config/validate.command.js.map +1 -0
- package/dist/src/commands/context/coherence.command.d.ts +13 -0
- package/dist/src/commands/context/coherence.command.d.ts.map +1 -0
- package/dist/src/commands/context/coherence.command.js +44 -0
- package/dist/src/commands/context/coherence.command.js.map +1 -0
- package/dist/src/commands/context/context-command.utils.d.ts +43 -0
- package/dist/src/commands/context/context-command.utils.d.ts.map +1 -0
- package/dist/src/commands/context/context-command.utils.js +57 -0
- package/dist/src/commands/context/context-command.utils.js.map +1 -0
- package/dist/src/commands/context/health.command.d.ts +11 -0
- package/dist/src/commands/context/health.command.d.ts.map +1 -0
- package/dist/src/commands/context/health.command.js +40 -0
- package/dist/src/commands/context/health.command.js.map +1 -0
- package/dist/src/commands/context/info.command.d.ts +20 -0
- package/dist/src/commands/context/info.command.d.ts.map +1 -0
- package/dist/src/commands/context/info.command.js +90 -0
- package/dist/src/commands/context/info.command.js.map +1 -0
- package/dist/src/commands/context/journey.command.d.ts +16 -0
- package/dist/src/commands/context/journey.command.d.ts.map +1 -0
- package/dist/src/commands/context/journey.command.js +69 -0
- package/dist/src/commands/context/journey.command.js.map +1 -0
- package/dist/src/commands/context/list.command.d.ts +15 -0
- package/dist/src/commands/context/list.command.d.ts.map +1 -0
- package/dist/src/commands/context/list.command.js +60 -0
- package/dist/src/commands/context/list.command.js.map +1 -0
- package/dist/src/commands/db/db-schema-plan.utils.d.ts +26 -0
- package/dist/src/commands/db/db-schema-plan.utils.d.ts.map +1 -0
- package/dist/src/commands/db/db-schema-plan.utils.js +89 -0
- package/dist/src/commands/db/db-schema-plan.utils.js.map +1 -0
- package/dist/src/commands/db/diff.command.d.ts +39 -0
- package/dist/src/commands/db/diff.command.d.ts.map +1 -0
- package/dist/src/commands/db/diff.command.js +153 -0
- package/dist/src/commands/db/diff.command.js.map +1 -0
- package/dist/src/commands/db/generate.command.d.ts +32 -0
- package/dist/src/commands/db/generate.command.d.ts.map +1 -0
- package/dist/src/commands/db/generate.command.js +139 -0
- package/dist/src/commands/db/generate.command.js.map +1 -0
- package/dist/src/commands/db/migrate.command.d.ts +41 -0
- package/dist/src/commands/db/migrate.command.d.ts.map +1 -0
- package/dist/src/commands/db/migrate.command.js +111 -0
- package/dist/src/commands/db/migrate.command.js.map +1 -0
- package/dist/src/commands/db/resolve.command.d.ts +22 -0
- package/dist/src/commands/db/resolve.command.d.ts.map +1 -0
- package/dist/src/commands/db/resolve.command.js +97 -0
- package/dist/src/commands/db/resolve.command.js.map +1 -0
- package/dist/src/commands/dev/__tests__/design-tokens.command.test.d.ts +2 -0
- package/dist/src/commands/dev/__tests__/design-tokens.command.test.d.ts.map +1 -0
- package/dist/src/commands/dev/__tests__/design-tokens.command.test.js +202 -0
- package/dist/src/commands/dev/__tests__/design-tokens.command.test.js.map +1 -0
- package/dist/src/commands/dev/__tests__/start.command.test.d.ts +2 -0
- package/dist/src/commands/dev/__tests__/start.command.test.d.ts.map +1 -0
- package/dist/src/commands/dev/__tests__/start.command.test.js +468 -0
- package/dist/src/commands/dev/__tests__/start.command.test.js.map +1 -0
- package/dist/src/commands/dev/__tests__/stop.command.test.d.ts +2 -0
- package/dist/src/commands/dev/__tests__/stop.command.test.d.ts.map +1 -0
- package/dist/src/commands/dev/__tests__/stop.command.test.js +72 -0
- package/dist/src/commands/dev/__tests__/stop.command.test.js.map +1 -0
- package/dist/src/commands/dev/__tests__/sync-csp.command.test.d.ts +2 -0
- package/dist/src/commands/dev/__tests__/sync-csp.command.test.d.ts.map +1 -0
- package/dist/src/commands/dev/__tests__/sync-csp.command.test.js +114 -0
- package/dist/src/commands/dev/__tests__/sync-csp.command.test.js.map +1 -0
- package/dist/src/commands/dev/charts-audit.command.d.ts +19 -0
- package/dist/src/commands/dev/charts-audit.command.d.ts.map +1 -0
- package/dist/src/commands/dev/charts-audit.command.js +74 -0
- package/dist/src/commands/dev/charts-audit.command.js.map +1 -0
- package/dist/src/commands/dev/design-tokens-generate.command.d.ts +10 -0
- package/dist/src/commands/dev/design-tokens-generate.command.d.ts.map +1 -0
- package/dist/src/commands/dev/design-tokens-generate.command.js +24 -0
- package/dist/src/commands/dev/design-tokens-generate.command.js.map +1 -0
- package/dist/src/commands/dev/design-tokens-init.command.d.ts +10 -0
- package/dist/src/commands/dev/design-tokens-init.command.d.ts.map +1 -0
- package/dist/src/commands/dev/design-tokens-init.command.js +24 -0
- package/dist/src/commands/dev/design-tokens-init.command.js.map +1 -0
- package/dist/src/commands/dev/design-tokens-validate.command.d.ts +10 -0
- package/dist/src/commands/dev/design-tokens-validate.command.d.ts.map +1 -0
- package/dist/src/commands/dev/design-tokens-validate.command.js +24 -0
- package/dist/src/commands/dev/design-tokens-validate.command.js.map +1 -0
- package/dist/src/commands/dev/force-stop.command.d.ts +29 -0
- package/dist/src/commands/dev/force-stop.command.d.ts.map +1 -0
- package/dist/src/commands/dev/force-stop.command.js +68 -0
- package/dist/src/commands/dev/force-stop.command.js.map +1 -0
- package/dist/src/commands/dev/resources.command.d.ts +16 -0
- package/dist/src/commands/dev/resources.command.d.ts.map +1 -0
- package/dist/src/commands/dev/resources.command.js +45 -0
- package/dist/src/commands/dev/resources.command.js.map +1 -0
- package/dist/src/commands/dev/start.command.d.ts +16 -0
- package/dist/src/commands/dev/start.command.d.ts.map +1 -0
- package/dist/src/commands/dev/start.command.js +409 -0
- package/dist/src/commands/dev/start.command.js.map +1 -0
- package/dist/src/commands/dev/stop-all.command.d.ts +14 -0
- package/dist/src/commands/dev/stop-all.command.d.ts.map +1 -0
- package/dist/src/commands/dev/stop-all.command.js +96 -0
- package/dist/src/commands/dev/stop-all.command.js.map +1 -0
- package/dist/src/commands/dev/sync-csp.command.d.ts +7 -0
- package/dist/src/commands/dev/sync-csp.command.d.ts.map +1 -0
- package/dist/src/commands/dev/sync-csp.command.js +61 -0
- package/dist/src/commands/dev/sync-csp.command.js.map +1 -0
- package/dist/src/commands/frontend/publish.command.d.ts +16 -0
- package/dist/src/commands/frontend/publish.command.d.ts.map +1 -0
- package/dist/src/commands/frontend/publish.command.js +91 -0
- package/dist/src/commands/frontend/publish.command.js.map +1 -0
- package/dist/src/commands/fwk/__tests__/dev-skills.command.test.d.ts +2 -0
- package/dist/src/commands/fwk/__tests__/dev-skills.command.test.d.ts.map +1 -0
- package/dist/src/commands/fwk/__tests__/dev-skills.command.test.js +79 -0
- package/dist/src/commands/fwk/__tests__/dev-skills.command.test.js.map +1 -0
- package/dist/src/commands/fwk/__tests__/generate-docs.command.test.d.ts +2 -0
- package/dist/src/commands/fwk/__tests__/generate-docs.command.test.d.ts.map +1 -0
- package/dist/src/commands/fwk/__tests__/generate-docs.command.test.js +113 -0
- package/dist/src/commands/fwk/__tests__/generate-docs.command.test.js.map +1 -0
- package/dist/src/commands/fwk/audit.command.d.ts +19 -0
- package/dist/src/commands/fwk/audit.command.d.ts.map +1 -0
- package/dist/src/commands/fwk/audit.command.js +83 -0
- package/dist/src/commands/fwk/audit.command.js.map +1 -0
- package/dist/src/commands/fwk/dev-skills.command.d.ts +12 -0
- package/dist/src/commands/fwk/dev-skills.command.d.ts.map +1 -0
- package/dist/src/commands/fwk/dev-skills.command.js +56 -0
- package/dist/src/commands/fwk/dev-skills.command.js.map +1 -0
- package/dist/src/commands/fwk/generate-docs.command.d.ts +7 -0
- package/dist/src/commands/fwk/generate-docs.command.d.ts.map +1 -0
- package/dist/src/commands/fwk/generate-docs.command.js +38 -0
- package/dist/src/commands/fwk/generate-docs.command.js.map +1 -0
- package/dist/src/commands/fwk/graph.command.d.ts +18 -0
- package/dist/src/commands/fwk/graph.command.d.ts.map +1 -0
- package/dist/src/commands/fwk/graph.command.js +56 -0
- package/dist/src/commands/fwk/graph.command.js.map +1 -0
- package/dist/src/commands/fwk/publish-all.command.d.ts +7 -0
- package/dist/src/commands/fwk/publish-all.command.d.ts.map +1 -0
- package/dist/src/commands/fwk/publish-all.command.js +51 -0
- package/dist/src/commands/fwk/publish-all.command.js.map +1 -0
- package/dist/src/commands/fwk/publish-docker.command.d.ts +8 -0
- package/dist/src/commands/fwk/publish-docker.command.d.ts.map +1 -0
- package/dist/src/commands/fwk/publish-docker.command.js +89 -0
- package/dist/src/commands/fwk/publish-docker.command.js.map +1 -0
- package/dist/src/commands/fwk/publish-npm.command.d.ts +8 -0
- package/dist/src/commands/fwk/publish-npm.command.d.ts.map +1 -0
- package/dist/src/commands/fwk/publish-npm.command.js +114 -0
- package/dist/src/commands/fwk/publish-npm.command.js.map +1 -0
- package/dist/src/commands/fwk/version-bump.command.d.ts +7 -0
- package/dist/src/commands/fwk/version-bump.command.d.ts.map +1 -0
- package/dist/src/commands/fwk/version-bump.command.js +25 -0
- package/dist/src/commands/fwk/version-bump.command.js.map +1 -0
- package/dist/src/commands/fwk/version-set.command.d.ts +7 -0
- package/dist/src/commands/fwk/version-set.command.d.ts.map +1 -0
- package/dist/src/commands/fwk/version-set.command.js +24 -0
- package/dist/src/commands/fwk/version-set.command.js.map +1 -0
- package/dist/src/commands/fwk/version-show.command.d.ts +7 -0
- package/dist/src/commands/fwk/version-show.command.d.ts.map +1 -0
- package/dist/src/commands/fwk/version-show.command.js +22 -0
- package/dist/src/commands/fwk/version-show.command.js.map +1 -0
- package/dist/src/commands/fwk/version-sync.command.d.ts +7 -0
- package/dist/src/commands/fwk/version-sync.command.d.ts.map +1 -0
- package/dist/src/commands/fwk/version-sync.command.js +18 -0
- package/dist/src/commands/fwk/version-sync.command.js.map +1 -0
- package/dist/src/commands/fwk/what-touches.command.d.ts +17 -0
- package/dist/src/commands/fwk/what-touches.command.d.ts.map +1 -0
- package/dist/src/commands/fwk/what-touches.command.js +48 -0
- package/dist/src/commands/fwk/what-touches.command.js.map +1 -0
- package/dist/src/commands/fwk/wt-status.command.d.ts +22 -0
- package/dist/src/commands/fwk/wt-status.command.d.ts.map +1 -0
- package/dist/src/commands/fwk/wt-status.command.js +60 -0
- package/dist/src/commands/fwk/wt-status.command.js.map +1 -0
- package/dist/src/commands/fwk/wt-tail.command.d.ts +22 -0
- package/dist/src/commands/fwk/wt-tail.command.d.ts.map +1 -0
- package/dist/src/commands/fwk/wt-tail.command.js +64 -0
- package/dist/src/commands/fwk/wt-tail.command.js.map +1 -0
- package/dist/src/commands/generate/__tests__/email-command.utils.test.d.ts +2 -0
- package/dist/src/commands/generate/__tests__/email-command.utils.test.d.ts.map +1 -0
- package/dist/src/commands/generate/__tests__/email-command.utils.test.js +94 -0
- package/dist/src/commands/generate/__tests__/email-command.utils.test.js.map +1 -0
- package/dist/src/commands/generate/email-command.utils.d.ts +72 -0
- package/dist/src/commands/generate/email-command.utils.d.ts.map +1 -0
- package/dist/src/commands/generate/email-command.utils.js +91 -0
- package/dist/src/commands/generate/email-command.utils.js.map +1 -0
- package/dist/src/commands/generate/email-preview.command.d.ts +7 -0
- package/dist/src/commands/generate/email-preview.command.d.ts.map +1 -0
- package/dist/src/commands/generate/email-preview.command.js +62 -0
- package/dist/src/commands/generate/email-preview.command.js.map +1 -0
- package/dist/src/commands/generate/email-status.command.d.ts +7 -0
- package/dist/src/commands/generate/email-status.command.d.ts.map +1 -0
- package/dist/src/commands/generate/email-status.command.js +42 -0
- package/dist/src/commands/generate/email-status.command.js.map +1 -0
- package/dist/src/commands/generate/email-test-send.command.d.ts +7 -0
- package/dist/src/commands/generate/email-test-send.command.d.ts.map +1 -0
- package/dist/src/commands/generate/email-test-send.command.js +67 -0
- package/dist/src/commands/generate/email-test-send.command.js.map +1 -0
- package/dist/src/commands/generate/email-translate.command.d.ts +7 -0
- package/dist/src/commands/generate/email-translate.command.d.ts.map +1 -0
- package/dist/src/commands/generate/email-translate.command.js +59 -0
- package/dist/src/commands/generate/email-translate.command.js.map +1 -0
- package/dist/src/commands/generate/email.command.d.ts +10 -0
- package/dist/src/commands/generate/email.command.d.ts.map +1 -0
- package/dist/src/commands/generate/email.command.js +62 -0
- package/dist/src/commands/generate/email.command.js.map +1 -0
- package/dist/src/commands/generate/labelling-command.utils.d.ts +138 -0
- package/dist/src/commands/generate/labelling-command.utils.d.ts.map +1 -0
- package/dist/src/commands/generate/labelling-command.utils.js +422 -0
- package/dist/src/commands/generate/labelling-command.utils.js.map +1 -0
- package/dist/src/commands/generate/labels-plan.command.d.ts +34 -0
- package/dist/src/commands/generate/labels-plan.command.d.ts.map +1 -0
- package/dist/src/commands/generate/labels-plan.command.js +103 -0
- package/dist/src/commands/generate/labels-plan.command.js.map +1 -0
- package/dist/src/commands/generate/labels.command.d.ts +29 -0
- package/dist/src/commands/generate/labels.command.d.ts.map +1 -0
- package/dist/src/commands/generate/labels.command.js +87 -0
- package/dist/src/commands/generate/labels.command.js.map +1 -0
- package/dist/src/commands/generate/translate.command.d.ts +31 -0
- package/dist/src/commands/generate/translate.command.d.ts.map +1 -0
- package/dist/src/commands/generate/translate.command.js +95 -0
- package/dist/src/commands/generate/translate.command.js.map +1 -0
- package/dist/src/commands/help.command.d.ts +7 -0
- package/dist/src/commands/help.command.d.ts.map +1 -0
- package/dist/src/commands/help.command.js +86 -0
- package/dist/src/commands/help.command.js.map +1 -0
- package/dist/src/commands/init.command.d.ts +113 -0
- package/dist/src/commands/init.command.d.ts.map +1 -0
- package/dist/src/commands/init.command.js +636 -0
- package/dist/src/commands/init.command.js.map +1 -0
- package/dist/src/commands/local/__tests__/dev-status.command.test.d.ts +2 -0
- package/dist/src/commands/local/__tests__/dev-status.command.test.d.ts.map +1 -0
- package/dist/src/commands/local/__tests__/dev-status.command.test.js +58 -0
- package/dist/src/commands/local/__tests__/dev-status.command.test.js.map +1 -0
- package/dist/src/commands/local/__tests__/dev.command.test.d.ts +2 -0
- package/dist/src/commands/local/__tests__/dev.command.test.d.ts.map +1 -0
- package/dist/src/commands/local/__tests__/dev.command.test.js +399 -0
- package/dist/src/commands/local/__tests__/dev.command.test.js.map +1 -0
- package/dist/src/commands/local/__tests__/doctor.command.test.d.ts +2 -0
- package/dist/src/commands/local/__tests__/doctor.command.test.d.ts.map +1 -0
- package/dist/src/commands/local/__tests__/doctor.command.test.js +260 -0
- package/dist/src/commands/local/__tests__/doctor.command.test.js.map +1 -0
- package/dist/src/commands/local/__tests__/init.command.test.d.ts +2 -0
- package/dist/src/commands/local/__tests__/init.command.test.d.ts.map +1 -0
- package/dist/src/commands/local/__tests__/init.command.test.js +83 -0
- package/dist/src/commands/local/__tests__/init.command.test.js.map +1 -0
- package/dist/src/commands/local/__tests__/reinit.command.test.d.ts +2 -0
- package/dist/src/commands/local/__tests__/reinit.command.test.d.ts.map +1 -0
- package/dist/src/commands/local/__tests__/reinit.command.test.js +177 -0
- package/dist/src/commands/local/__tests__/reinit.command.test.js.map +1 -0
- package/dist/src/commands/local/__tests__/reset.command.test.d.ts +2 -0
- package/dist/src/commands/local/__tests__/reset.command.test.d.ts.map +1 -0
- package/dist/src/commands/local/__tests__/reset.command.test.js +266 -0
- package/dist/src/commands/local/__tests__/reset.command.test.js.map +1 -0
- package/dist/src/commands/local/__tests__/up.command.test.d.ts +2 -0
- package/dist/src/commands/local/__tests__/up.command.test.d.ts.map +1 -0
- package/dist/src/commands/local/__tests__/up.command.test.js +207 -0
- package/dist/src/commands/local/__tests__/up.command.test.js.map +1 -0
- package/dist/src/commands/local/dev-status.command.d.ts +15 -0
- package/dist/src/commands/local/dev-status.command.d.ts.map +1 -0
- package/dist/src/commands/local/dev-status.command.js +84 -0
- package/dist/src/commands/local/dev-status.command.js.map +1 -0
- package/dist/src/commands/local/dev.command.d.ts +150 -0
- package/dist/src/commands/local/dev.command.d.ts.map +1 -0
- package/dist/src/commands/local/dev.command.js +813 -0
- package/dist/src/commands/local/dev.command.js.map +1 -0
- package/dist/src/commands/local/doctor.command.d.ts +177 -0
- package/dist/src/commands/local/doctor.command.d.ts.map +1 -0
- package/dist/src/commands/local/doctor.command.js +863 -0
- package/dist/src/commands/local/doctor.command.js.map +1 -0
- package/dist/src/commands/local/down.command.d.ts +9 -0
- package/dist/src/commands/local/down.command.d.ts.map +1 -0
- package/dist/src/commands/local/down.command.js +117 -0
- package/dist/src/commands/local/down.command.js.map +1 -0
- package/dist/src/commands/local/init.command.d.ts +15 -0
- package/dist/src/commands/local/init.command.d.ts.map +1 -0
- package/dist/src/commands/local/init.command.js +85 -0
- package/dist/src/commands/local/init.command.js.map +1 -0
- package/dist/src/commands/local/logs.command.d.ts +9 -0
- package/dist/src/commands/local/logs.command.d.ts.map +1 -0
- package/dist/src/commands/local/logs.command.js +61 -0
- package/dist/src/commands/local/logs.command.js.map +1 -0
- package/dist/src/commands/local/reinit.command.d.ts +35 -0
- package/dist/src/commands/local/reinit.command.d.ts.map +1 -0
- package/dist/src/commands/local/reinit.command.js +135 -0
- package/dist/src/commands/local/reinit.command.js.map +1 -0
- package/dist/src/commands/local/reset.command.d.ts +42 -0
- package/dist/src/commands/local/reset.command.d.ts.map +1 -0
- package/dist/src/commands/local/reset.command.js +203 -0
- package/dist/src/commands/local/reset.command.js.map +1 -0
- package/dist/src/commands/local/status.command.d.ts +9 -0
- package/dist/src/commands/local/status.command.d.ts.map +1 -0
- package/dist/src/commands/local/status.command.js +79 -0
- package/dist/src/commands/local/status.command.js.map +1 -0
- package/dist/src/commands/local/up.command.d.ts +32 -0
- package/dist/src/commands/local/up.command.d.ts.map +1 -0
- package/dist/src/commands/local/up.command.js +355 -0
- package/dist/src/commands/local/up.command.js.map +1 -0
- package/dist/src/commands/lock/__tests__/check.command.test.d.ts +11 -0
- package/dist/src/commands/lock/__tests__/check.command.test.d.ts.map +1 -0
- package/dist/src/commands/lock/__tests__/check.command.test.js +140 -0
- package/dist/src/commands/lock/__tests__/check.command.test.js.map +1 -0
- package/dist/src/commands/lock/__tests__/check.live.contract.test.d.ts +35 -0
- package/dist/src/commands/lock/__tests__/check.live.contract.test.d.ts.map +1 -0
- package/dist/src/commands/lock/__tests__/check.live.contract.test.js +122 -0
- package/dist/src/commands/lock/__tests__/check.live.contract.test.js.map +1 -0
- package/dist/src/commands/lock/check.command.d.ts +92 -0
- package/dist/src/commands/lock/check.command.d.ts.map +1 -0
- package/dist/src/commands/lock/check.command.js +242 -0
- package/dist/src/commands/lock/check.command.js.map +1 -0
- package/dist/src/commands/market/__tests__/generate.command.test.d.ts +2 -0
- package/dist/src/commands/market/__tests__/generate.command.test.d.ts.map +1 -0
- package/dist/src/commands/market/__tests__/generate.command.test.js +207 -0
- package/dist/src/commands/market/__tests__/generate.command.test.js.map +1 -0
- package/dist/src/commands/market/__tests__/market-command.utils.test.d.ts +2 -0
- package/dist/src/commands/market/__tests__/market-command.utils.test.d.ts.map +1 -0
- package/dist/src/commands/market/__tests__/market-command.utils.test.js +146 -0
- package/dist/src/commands/market/__tests__/market-command.utils.test.js.map +1 -0
- package/dist/src/commands/market/generate.command.d.ts +56 -0
- package/dist/src/commands/market/generate.command.d.ts.map +1 -0
- package/dist/src/commands/market/generate.command.js +191 -0
- package/dist/src/commands/market/generate.command.js.map +1 -0
- package/dist/src/commands/market/market-command.utils.d.ts +70 -0
- package/dist/src/commands/market/market-command.utils.d.ts.map +1 -0
- package/dist/src/commands/market/market-command.utils.js +89 -0
- package/dist/src/commands/market/market-command.utils.js.map +1 -0
- package/dist/src/commands/registry/add.command.d.ts +37 -0
- package/dist/src/commands/registry/add.command.d.ts.map +1 -0
- package/dist/src/commands/registry/add.command.js +251 -0
- package/dist/src/commands/registry/add.command.js.map +1 -0
- package/dist/src/commands/registry/info.command.d.ts +14 -0
- package/dist/src/commands/registry/info.command.d.ts.map +1 -0
- package/dist/src/commands/registry/info.command.js +83 -0
- package/dist/src/commands/registry/info.command.js.map +1 -0
- package/dist/src/commands/registry/lockfile-smoke.command.d.ts +31 -0
- package/dist/src/commands/registry/lockfile-smoke.command.d.ts.map +1 -0
- package/dist/src/commands/registry/lockfile-smoke.command.js +131 -0
- package/dist/src/commands/registry/lockfile-smoke.command.js.map +1 -0
- package/dist/src/commands/registry/login.command.d.ts +28 -0
- package/dist/src/commands/registry/login.command.d.ts.map +1 -0
- package/dist/src/commands/registry/login.command.js +117 -0
- package/dist/src/commands/registry/login.command.js.map +1 -0
- package/dist/src/commands/registry/logout.command.d.ts +15 -0
- package/dist/src/commands/registry/logout.command.d.ts.map +1 -0
- package/dist/src/commands/registry/logout.command.js +47 -0
- package/dist/src/commands/registry/logout.command.js.map +1 -0
- package/dist/src/commands/registry/ping.command.d.ts +21 -0
- package/dist/src/commands/registry/ping.command.d.ts.map +1 -0
- package/dist/src/commands/registry/ping.command.js +92 -0
- package/dist/src/commands/registry/ping.command.js.map +1 -0
- package/dist/src/commands/registry/publish.command.d.ts +37 -0
- package/dist/src/commands/registry/publish.command.d.ts.map +1 -0
- package/dist/src/commands/registry/publish.command.js +211 -0
- package/dist/src/commands/registry/publish.command.js.map +1 -0
- package/dist/src/commands/registry/remove.command.d.ts +25 -0
- package/dist/src/commands/registry/remove.command.d.ts.map +1 -0
- package/dist/src/commands/registry/remove.command.js +122 -0
- package/dist/src/commands/registry/remove.command.js.map +1 -0
- package/dist/src/commands/registry/repair-lockfile.command.d.ts +31 -0
- package/dist/src/commands/registry/repair-lockfile.command.d.ts.map +1 -0
- package/dist/src/commands/registry/repair-lockfile.command.js +174 -0
- package/dist/src/commands/registry/repair-lockfile.command.js.map +1 -0
- package/dist/src/commands/registry/search.command.d.ts +15 -0
- package/dist/src/commands/registry/search.command.d.ts.map +1 -0
- package/dist/src/commands/registry/search.command.js +76 -0
- package/dist/src/commands/registry/search.command.js.map +1 -0
- package/dist/src/commands/registry/update.command.d.ts +32 -0
- package/dist/src/commands/registry/update.command.d.ts.map +1 -0
- package/dist/src/commands/registry/update.command.js +297 -0
- package/dist/src/commands/registry/update.command.js.map +1 -0
- package/dist/src/commands/registry/whoami.command.d.ts +16 -0
- package/dist/src/commands/registry/whoami.command.d.ts.map +1 -0
- package/dist/src/commands/registry/whoami.command.js +116 -0
- package/dist/src/commands/registry/whoami.command.js.map +1 -0
- package/dist/src/commands/remote/__tests__/remote-commands.test.d.ts +2 -0
- package/dist/src/commands/remote/__tests__/remote-commands.test.d.ts.map +1 -0
- package/dist/src/commands/remote/__tests__/remote-commands.test.js +100 -0
- package/dist/src/commands/remote/__tests__/remote-commands.test.js.map +1 -0
- package/dist/src/commands/remote/create.command.d.ts +7 -0
- package/dist/src/commands/remote/create.command.d.ts.map +1 -0
- package/dist/src/commands/remote/create.command.js +110 -0
- package/dist/src/commands/remote/create.command.js.map +1 -0
- package/dist/src/commands/remote/list.command.d.ts +7 -0
- package/dist/src/commands/remote/list.command.d.ts.map +1 -0
- package/dist/src/commands/remote/list.command.js +46 -0
- package/dist/src/commands/remote/list.command.js.map +1 -0
- package/dist/src/commands/remote/status.command.d.ts +7 -0
- package/dist/src/commands/remote/status.command.d.ts.map +1 -0
- package/dist/src/commands/remote/status.command.js +67 -0
- package/dist/src/commands/remote/status.command.js.map +1 -0
- package/dist/src/commands/remote/sync.command.d.ts +7 -0
- package/dist/src/commands/remote/sync.command.d.ts.map +1 -0
- package/dist/src/commands/remote/sync.command.js +27 -0
- package/dist/src/commands/remote/sync.command.js.map +1 -0
- package/dist/src/commands/setup.command.d.ts +19 -0
- package/dist/src/commands/setup.command.d.ts.map +1 -0
- package/dist/src/commands/setup.command.js +95 -0
- package/dist/src/commands/setup.command.js.map +1 -0
- package/dist/src/commands/version.command.d.ts +7 -0
- package/dist/src/commands/version.command.d.ts.map +1 -0
- package/dist/src/commands/version.command.js +16 -0
- package/dist/src/commands/version.command.js.map +1 -0
- package/dist/src/commands/website/__tests__/audit.command.test.d.ts +2 -0
- package/dist/src/commands/website/__tests__/audit.command.test.d.ts.map +1 -0
- package/dist/src/commands/website/__tests__/audit.command.test.js +105 -0
- package/dist/src/commands/website/__tests__/audit.command.test.js.map +1 -0
- package/dist/src/commands/website/audit.command.d.ts +12 -0
- package/dist/src/commands/website/audit.command.d.ts.map +1 -0
- package/dist/src/commands/website/audit.command.js +90 -0
- package/dist/src/commands/website/audit.command.js.map +1 -0
- package/dist/src/commands/workbench/__tests__/workbench.commands.test.d.ts +2 -0
- package/dist/src/commands/workbench/__tests__/workbench.commands.test.d.ts.map +1 -0
- package/dist/src/commands/workbench/__tests__/workbench.commands.test.js +59 -0
- package/dist/src/commands/workbench/__tests__/workbench.commands.test.js.map +1 -0
- package/dist/src/commands/workbench/open.command.d.ts +7 -0
- package/dist/src/commands/workbench/open.command.d.ts.map +1 -0
- package/dist/src/commands/workbench/open.command.js +26 -0
- package/dist/src/commands/workbench/open.command.js.map +1 -0
- package/dist/src/commands/workbench/status.command.d.ts +7 -0
- package/dist/src/commands/workbench/status.command.d.ts.map +1 -0
- package/dist/src/commands/workbench/status.command.js +47 -0
- package/dist/src/commands/workbench/status.command.js.map +1 -0
- package/dist/src/infrastructure/errors/error.utils.d.ts +30 -0
- package/dist/src/infrastructure/errors/error.utils.d.ts.map +1 -0
- package/dist/src/infrastructure/errors/error.utils.js +80 -0
- package/dist/src/infrastructure/errors/error.utils.js.map +1 -0
- package/dist/src/infrastructure/io/file.utils.d.ts +11 -0
- package/dist/src/infrastructure/io/file.utils.d.ts.map +1 -0
- package/dist/src/infrastructure/io/file.utils.js +36 -0
- package/dist/src/infrastructure/io/file.utils.js.map +1 -0
- package/dist/src/infrastructure/io/io.schemas.d.ts +39 -0
- package/dist/src/infrastructure/io/io.schemas.d.ts.map +1 -0
- package/dist/src/infrastructure/io/io.schemas.js +45 -0
- package/dist/src/infrastructure/io/io.schemas.js.map +1 -0
- package/dist/src/infrastructure/io/template-processor.d.ts +31 -0
- package/dist/src/infrastructure/io/template-processor.d.ts.map +1 -0
- package/dist/src/infrastructure/io/template-processor.js +160 -0
- package/dist/src/infrastructure/io/template-processor.js.map +1 -0
- package/dist/src/infrastructure/logger/logger.service.d.ts +62 -0
- package/dist/src/infrastructure/logger/logger.service.d.ts.map +1 -0
- package/dist/src/infrastructure/logger/logger.service.js +116 -0
- package/dist/src/infrastructure/logger/logger.service.js.map +1 -0
- package/dist/src/infrastructure/process/__tests__/spawn.utils.test.d.ts +2 -0
- package/dist/src/infrastructure/process/__tests__/spawn.utils.test.d.ts.map +1 -0
- package/dist/src/infrastructure/process/__tests__/spawn.utils.test.js +138 -0
- package/dist/src/infrastructure/process/__tests__/spawn.utils.test.js.map +1 -0
- package/dist/src/infrastructure/process/spawn.utils.d.ts +60 -0
- package/dist/src/infrastructure/process/spawn.utils.d.ts.map +1 -0
- package/dist/src/infrastructure/process/spawn.utils.js +222 -0
- package/dist/src/infrastructure/process/spawn.utils.js.map +1 -0
- package/dist/src/infrastructure/ui/formatting.service.d.ts +23 -0
- package/dist/src/infrastructure/ui/formatting.service.d.ts.map +1 -0
- package/dist/src/infrastructure/ui/formatting.service.js +106 -0
- package/dist/src/infrastructure/ui/formatting.service.js.map +1 -0
- package/dist/src/infrastructure/ui/interaction-engine.service.d.ts +17 -0
- package/dist/src/infrastructure/ui/interaction-engine.service.d.ts.map +1 -0
- package/dist/src/infrastructure/ui/interaction-engine.service.js +87 -0
- package/dist/src/infrastructure/ui/interaction-engine.service.js.map +1 -0
- package/dist/src/infrastructure/ui/markdown-renderer.service.d.ts +8 -0
- package/dist/src/infrastructure/ui/markdown-renderer.service.d.ts.map +1 -0
- package/dist/src/infrastructure/ui/markdown-renderer.service.js +153 -0
- package/dist/src/infrastructure/ui/markdown-renderer.service.js.map +1 -0
- package/dist/src/infrastructure/ui/ui.schemas.d.ts +36 -0
- package/dist/src/infrastructure/ui/ui.schemas.d.ts.map +1 -0
- package/dist/src/infrastructure/ui/ui.schemas.js +12 -0
- package/dist/src/infrastructure/ui/ui.schemas.js.map +1 -0
- package/dist/src/infrastructure/utils/string.utils.d.ts +8 -0
- package/dist/src/infrastructure/utils/string.utils.d.ts.map +1 -0
- package/dist/src/infrastructure/utils/string.utils.js +10 -0
- package/dist/src/infrastructure/utils/string.utils.js.map +1 -0
- package/dist/src/infrastructure/validation/validator.service.d.ts +31 -0
- package/dist/src/infrastructure/validation/validator.service.d.ts.map +1 -0
- package/dist/src/infrastructure/validation/validator.service.js +52 -0
- package/dist/src/infrastructure/validation/validator.service.js.map +1 -0
- package/dist/src/kernel/__tests__/bootstrap.test.d.ts +2 -0
- package/dist/src/kernel/__tests__/bootstrap.test.d.ts.map +1 -0
- package/dist/src/kernel/__tests__/bootstrap.test.js +88 -0
- package/dist/src/kernel/__tests__/bootstrap.test.js.map +1 -0
- package/dist/src/kernel/__tests__/command-registry.test.d.ts +2 -0
- package/dist/src/kernel/__tests__/command-registry.test.d.ts.map +1 -0
- package/dist/src/kernel/__tests__/command-registry.test.js +188 -0
- package/dist/src/kernel/__tests__/command-registry.test.js.map +1 -0
- package/dist/src/kernel/__tests__/command-runner.test.d.ts +2 -0
- package/dist/src/kernel/__tests__/command-runner.test.d.ts.map +1 -0
- package/dist/src/kernel/__tests__/command-runner.test.js +285 -0
- package/dist/src/kernel/__tests__/command-runner.test.js.map +1 -0
- package/dist/src/kernel/__tests__/command-scope-utils.test.d.ts +2 -0
- package/dist/src/kernel/__tests__/command-scope-utils.test.d.ts.map +1 -0
- package/dist/src/kernel/__tests__/command-scope-utils.test.js +46 -0
- package/dist/src/kernel/__tests__/command-scope-utils.test.js.map +1 -0
- package/dist/src/kernel/__tests__/flag-utils.test.d.ts +2 -0
- package/dist/src/kernel/__tests__/flag-utils.test.d.ts.map +1 -0
- package/dist/src/kernel/__tests__/flag-utils.test.js +38 -0
- package/dist/src/kernel/__tests__/flag-utils.test.js.map +1 -0
- package/dist/src/kernel/__tests__/hooks.test.d.ts +2 -0
- package/dist/src/kernel/__tests__/hooks.test.d.ts.map +1 -0
- package/dist/src/kernel/__tests__/hooks.test.js +72 -0
- package/dist/src/kernel/__tests__/hooks.test.js.map +1 -0
- package/dist/src/kernel/base-command.d.ts +26 -0
- package/dist/src/kernel/base-command.d.ts.map +1 -0
- package/dist/src/kernel/base-command.js +79 -0
- package/dist/src/kernel/base-command.js.map +1 -0
- package/dist/src/kernel/bootstrap.d.ts +9 -0
- package/dist/src/kernel/bootstrap.d.ts.map +1 -0
- package/dist/src/kernel/bootstrap.js +109 -0
- package/dist/src/kernel/bootstrap.js.map +1 -0
- package/dist/src/kernel/command-registry.d.ts +44 -0
- package/dist/src/kernel/command-registry.d.ts.map +1 -0
- package/dist/src/kernel/command-registry.js +248 -0
- package/dist/src/kernel/command-registry.js.map +1 -0
- package/dist/src/kernel/command-runner.d.ts +26 -0
- package/dist/src/kernel/command-runner.d.ts.map +1 -0
- package/dist/src/kernel/command-runner.js +169 -0
- package/dist/src/kernel/command-runner.js.map +1 -0
- package/dist/src/kernel/command-scope-utils.d.ts +27 -0
- package/dist/src/kernel/command-scope-utils.d.ts.map +1 -0
- package/dist/src/kernel/command-scope-utils.js +40 -0
- package/dist/src/kernel/command-scope-utils.js.map +1 -0
- package/dist/src/kernel/flag-utils.d.ts +32 -0
- package/dist/src/kernel/flag-utils.d.ts.map +1 -0
- package/dist/src/kernel/flag-utils.js +43 -0
- package/dist/src/kernel/flag-utils.js.map +1 -0
- package/dist/src/kernel/hooks.d.ts +17 -0
- package/dist/src/kernel/hooks.d.ts.map +1 -0
- package/dist/src/kernel/hooks.js +51 -0
- package/dist/src/kernel/hooks.js.map +1 -0
- package/dist/src/kernel/logger.d.ts +3 -0
- package/dist/src/kernel/logger.d.ts.map +1 -0
- package/dist/src/kernel/logger.js +10 -0
- package/dist/src/kernel/logger.js.map +1 -0
- package/dist/src/kernel/types.d.ts +145 -0
- package/dist/src/kernel/types.d.ts.map +1 -0
- package/dist/src/kernel/types.js +66 -0
- package/dist/src/kernel/types.js.map +1 -0
- package/dist/src/main.d.ts +7 -0
- package/dist/src/main.d.ts.map +1 -0
- package/dist/src/main.js +12 -0
- package/dist/src/main.js.map +1 -0
- package/dist/src/modules/domain/credentials/__tests__/admin-user.module.test.d.ts +2 -0
- package/dist/src/modules/domain/credentials/__tests__/admin-user.module.test.d.ts.map +1 -0
- package/dist/src/modules/domain/credentials/__tests__/admin-user.module.test.js +88 -0
- package/dist/src/modules/domain/credentials/__tests__/admin-user.module.test.js.map +1 -0
- package/dist/src/modules/domain/credentials/__tests__/providers-config.module.test.d.ts +2 -0
- package/dist/src/modules/domain/credentials/__tests__/providers-config.module.test.d.ts.map +1 -0
- package/dist/src/modules/domain/credentials/__tests__/providers-config.module.test.js +96 -0
- package/dist/src/modules/domain/credentials/__tests__/providers-config.module.test.js.map +1 -0
- package/dist/src/modules/domain/credentials/admin-user.module.d.ts +53 -0
- package/dist/src/modules/domain/credentials/admin-user.module.d.ts.map +1 -0
- package/dist/src/modules/domain/credentials/admin-user.module.js +130 -0
- package/dist/src/modules/domain/credentials/admin-user.module.js.map +1 -0
- package/dist/src/modules/domain/credentials/module.types.d.ts +2 -0
- package/dist/src/modules/domain/credentials/module.types.d.ts.map +1 -0
- package/dist/src/modules/domain/credentials/module.types.js +1 -0
- package/dist/src/modules/domain/credentials/module.types.js.map +1 -0
- package/dist/src/modules/domain/credentials/providers-config.module.d.ts +31 -0
- package/dist/src/modules/domain/credentials/providers-config.module.d.ts.map +1 -0
- package/dist/src/modules/domain/credentials/providers-config.module.js +146 -0
- package/dist/src/modules/domain/credentials/providers-config.module.js.map +1 -0
- package/dist/src/modules/domain/environment/__tests__/database-config.module.test.d.ts +2 -0
- package/dist/src/modules/domain/environment/__tests__/database-config.module.test.d.ts.map +1 -0
- package/dist/src/modules/domain/environment/__tests__/database-config.module.test.js +89 -0
- package/dist/src/modules/domain/environment/__tests__/database-config.module.test.js.map +1 -0
- package/dist/src/modules/domain/environment/database-config.module.d.ts +10 -0
- package/dist/src/modules/domain/environment/database-config.module.d.ts.map +1 -0
- package/dist/src/modules/domain/environment/database-config.module.js +131 -0
- package/dist/src/modules/domain/environment/database-config.module.js.map +1 -0
- package/dist/src/modules/domain/environment/module.types.d.ts +14 -0
- package/dist/src/modules/domain/environment/module.types.d.ts.map +1 -0
- package/dist/src/modules/domain/environment/module.types.js +1 -0
- package/dist/src/modules/domain/environment/module.types.js.map +1 -0
- package/dist/src/modules/domain/environment/paths-config.module.d.ts +15 -0
- package/dist/src/modules/domain/environment/paths-config.module.d.ts.map +1 -0
- package/dist/src/modules/domain/environment/paths-config.module.js +90 -0
- package/dist/src/modules/domain/environment/paths-config.module.js.map +1 -0
- package/dist/src/modules/domain/environment/runtime-selector.module.d.ts +7 -0
- package/dist/src/modules/domain/environment/runtime-selector.module.d.ts.map +1 -0
- package/dist/src/modules/domain/environment/runtime-selector.module.js +30 -0
- package/dist/src/modules/domain/environment/runtime-selector.module.js.map +1 -0
- package/dist/src/modules/domain/environment/runtime-semantics.module.d.ts +8 -0
- package/dist/src/modules/domain/environment/runtime-semantics.module.d.ts.map +1 -0
- package/dist/src/modules/domain/environment/runtime-semantics.module.js +35 -0
- package/dist/src/modules/domain/environment/runtime-semantics.module.js.map +1 -0
- package/dist/src/modules/domain/module.types.d.ts +10 -0
- package/dist/src/modules/domain/module.types.d.ts.map +1 -0
- package/dist/src/modules/domain/module.types.js +1 -0
- package/dist/src/modules/domain/module.types.js.map +1 -0
- package/dist/src/services/application/__tests__/app-bootstrap.service.apps-manager-reconnect.test.d.ts +2 -0
- package/dist/src/services/application/__tests__/app-bootstrap.service.apps-manager-reconnect.test.d.ts.map +1 -0
- package/dist/src/services/application/__tests__/app-bootstrap.service.apps-manager-reconnect.test.js +129 -0
- package/dist/src/services/application/__tests__/app-bootstrap.service.apps-manager-reconnect.test.js.map +1 -0
- package/dist/src/services/application/__tests__/app-bootstrap.service.degraded-env.test.d.ts +2 -0
- package/dist/src/services/application/__tests__/app-bootstrap.service.degraded-env.test.d.ts.map +1 -0
- package/dist/src/services/application/__tests__/app-bootstrap.service.degraded-env.test.js +220 -0
- package/dist/src/services/application/__tests__/app-bootstrap.service.degraded-env.test.js.map +1 -0
- package/dist/src/services/application/__tests__/app-bootstrap.service.operation-timeout.test.d.ts +2 -0
- package/dist/src/services/application/__tests__/app-bootstrap.service.operation-timeout.test.d.ts.map +1 -0
- package/dist/src/services/application/__tests__/app-bootstrap.service.operation-timeout.test.js +112 -0
- package/dist/src/services/application/__tests__/app-bootstrap.service.operation-timeout.test.js.map +1 -0
- package/dist/src/services/application/__tests__/app-bootstrap.service.test.d.ts +2 -0
- package/dist/src/services/application/__tests__/app-bootstrap.service.test.d.ts.map +1 -0
- package/dist/src/services/application/__tests__/app-bootstrap.service.test.js +873 -0
- package/dist/src/services/application/__tests__/app-bootstrap.service.test.js.map +1 -0
- package/dist/src/services/application/__tests__/app-bootstrap.two-phase-seeding.test.d.ts +2 -0
- package/dist/src/services/application/__tests__/app-bootstrap.two-phase-seeding.test.d.ts.map +1 -0
- package/dist/src/services/application/__tests__/app-bootstrap.two-phase-seeding.test.js +237 -0
- package/dist/src/services/application/__tests__/app-bootstrap.two-phase-seeding.test.js.map +1 -0
- package/dist/src/services/application/__tests__/app-runtime-targets.service.test.d.ts +2 -0
- package/dist/src/services/application/__tests__/app-runtime-targets.service.test.d.ts.map +1 -0
- package/dist/src/services/application/__tests__/app-runtime-targets.service.test.js +244 -0
- package/dist/src/services/application/__tests__/app-runtime-targets.service.test.js.map +1 -0
- package/dist/src/services/application/__tests__/application-assets-delivery.service.test.d.ts +2 -0
- package/dist/src/services/application/__tests__/application-assets-delivery.service.test.d.ts.map +1 -0
- package/dist/src/services/application/__tests__/application-assets-delivery.service.test.js +81 -0
- package/dist/src/services/application/__tests__/application-assets-delivery.service.test.js.map +1 -0
- package/dist/src/services/application/__tests__/application-dependency-alignment.service.test.d.ts +2 -0
- package/dist/src/services/application/__tests__/application-dependency-alignment.service.test.d.ts.map +1 -0
- package/dist/src/services/application/__tests__/application-dependency-alignment.service.test.js +211 -0
- package/dist/src/services/application/__tests__/application-dependency-alignment.service.test.js.map +1 -0
- package/dist/src/services/application/__tests__/application-initialization-verification.service.test.d.ts +2 -0
- package/dist/src/services/application/__tests__/application-initialization-verification.service.test.d.ts.map +1 -0
- package/dist/src/services/application/__tests__/application-initialization-verification.service.test.js +159 -0
- package/dist/src/services/application/__tests__/application-initialization-verification.service.test.js.map +1 -0
- package/dist/src/services/application/__tests__/application-runtime-bootstrap.service.test.d.ts +2 -0
- package/dist/src/services/application/__tests__/application-runtime-bootstrap.service.test.d.ts.map +1 -0
- package/dist/src/services/application/__tests__/application-runtime-bootstrap.service.test.js +137 -0
- package/dist/src/services/application/__tests__/application-runtime-bootstrap.service.test.js.map +1 -0
- package/dist/src/services/application/__tests__/apps-manager-unavailable-classification.test.d.ts +2 -0
- package/dist/src/services/application/__tests__/apps-manager-unavailable-classification.test.d.ts.map +1 -0
- package/dist/src/services/application/__tests__/apps-manager-unavailable-classification.test.js +41 -0
- package/dist/src/services/application/__tests__/apps-manager-unavailable-classification.test.js.map +1 -0
- package/dist/src/services/application/__tests__/audit-provider-immudb-backing.test.d.ts +2 -0
- package/dist/src/services/application/__tests__/audit-provider-immudb-backing.test.d.ts.map +1 -0
- package/dist/src/services/application/__tests__/audit-provider-immudb-backing.test.js +65 -0
- package/dist/src/services/application/__tests__/audit-provider-immudb-backing.test.js.map +1 -0
- package/dist/src/services/application/__tests__/dev-orchestrator.service.test.d.ts +2 -0
- package/dist/src/services/application/__tests__/dev-orchestrator.service.test.d.ts.map +1 -0
- package/dist/src/services/application/__tests__/dev-orchestrator.service.test.js +46 -0
- package/dist/src/services/application/__tests__/dev-orchestrator.service.test.js.map +1 -0
- package/dist/src/services/application/__tests__/dev-schema-drift.service.test.d.ts +10 -0
- package/dist/src/services/application/__tests__/dev-schema-drift.service.test.d.ts.map +1 -0
- package/dist/src/services/application/__tests__/dev-schema-drift.service.test.js +142 -0
- package/dist/src/services/application/__tests__/dev-schema-drift.service.test.js.map +1 -0
- package/dist/src/services/application/__tests__/existing-app-bootstrap.service.test.d.ts +2 -0
- package/dist/src/services/application/__tests__/existing-app-bootstrap.service.test.d.ts.map +1 -0
- package/dist/src/services/application/__tests__/existing-app-bootstrap.service.test.js +292 -0
- package/dist/src/services/application/__tests__/existing-app-bootstrap.service.test.js.map +1 -0
- package/dist/src/services/application/__tests__/local-app-reinit.service.test.d.ts +2 -0
- package/dist/src/services/application/__tests__/local-app-reinit.service.test.d.ts.map +1 -0
- package/dist/src/services/application/__tests__/local-app-reinit.service.test.js +348 -0
- package/dist/src/services/application/__tests__/local-app-reinit.service.test.js.map +1 -0
- package/dist/src/services/application/__tests__/local-application-initialization.guard.test.d.ts +2 -0
- package/dist/src/services/application/__tests__/local-application-initialization.guard.test.d.ts.map +1 -0
- package/dist/src/services/application/__tests__/local-application-initialization.guard.test.js +98 -0
- package/dist/src/services/application/__tests__/local-application-initialization.guard.test.js.map +1 -0
- package/dist/src/services/application/__tests__/local-application-initialization.service.test.d.ts +2 -0
- package/dist/src/services/application/__tests__/local-application-initialization.service.test.d.ts.map +1 -0
- package/dist/src/services/application/__tests__/local-application-initialization.service.test.js +94 -0
- package/dist/src/services/application/__tests__/local-application-initialization.service.test.js.map +1 -0
- package/dist/src/services/application/__tests__/provider-runtime-sync.service.test.d.ts +2 -0
- package/dist/src/services/application/__tests__/provider-runtime-sync.service.test.d.ts.map +1 -0
- package/dist/src/services/application/__tests__/provider-runtime-sync.service.test.js +771 -0
- package/dist/src/services/application/__tests__/provider-runtime-sync.service.test.js.map +1 -0
- package/dist/src/services/application/__tests__/saas-and-infra-contracts.test.d.ts +19 -0
- package/dist/src/services/application/__tests__/saas-and-infra-contracts.test.d.ts.map +1 -0
- package/dist/src/services/application/__tests__/saas-and-infra-contracts.test.js +173 -0
- package/dist/src/services/application/__tests__/saas-and-infra-contracts.test.js.map +1 -0
- package/dist/src/services/application/__tests__/saas-scaffold.service.test.d.ts +2 -0
- package/dist/src/services/application/__tests__/saas-scaffold.service.test.d.ts.map +1 -0
- package/dist/src/services/application/__tests__/saas-scaffold.service.test.js +29 -0
- package/dist/src/services/application/__tests__/saas-scaffold.service.test.js.map +1 -0
- package/dist/src/services/application/__tests__/saas-skeleton.service.test.d.ts +2 -0
- package/dist/src/services/application/__tests__/saas-skeleton.service.test.d.ts.map +1 -0
- package/dist/src/services/application/__tests__/saas-skeleton.service.test.js +378 -0
- package/dist/src/services/application/__tests__/saas-skeleton.service.test.js.map +1 -0
- package/dist/src/services/application/app-bootstrap.service.d.ts +438 -0
- package/dist/src/services/application/app-bootstrap.service.d.ts.map +1 -0
- package/dist/src/services/application/app-bootstrap.service.js +1512 -0
- package/dist/src/services/application/app-bootstrap.service.js.map +1 -0
- package/dist/src/services/application/app-env.service.d.ts +18 -0
- package/dist/src/services/application/app-env.service.d.ts.map +1 -0
- package/dist/src/services/application/app-env.service.js +55 -0
- package/dist/src/services/application/app-env.service.js.map +1 -0
- package/dist/src/services/application/app-local-runtime-addresses.service.d.ts +34 -0
- package/dist/src/services/application/app-local-runtime-addresses.service.d.ts.map +1 -0
- package/dist/src/services/application/app-local-runtime-addresses.service.js +110 -0
- package/dist/src/services/application/app-local-runtime-addresses.service.js.map +1 -0
- package/dist/src/services/application/app-runtime-targets.service.d.ts +74 -0
- package/dist/src/services/application/app-runtime-targets.service.d.ts.map +1 -0
- package/dist/src/services/application/app-runtime-targets.service.js +134 -0
- package/dist/src/services/application/app-runtime-targets.service.js.map +1 -0
- package/dist/src/services/application/app-schema-bootstrap.service.d.ts +81 -0
- package/dist/src/services/application/app-schema-bootstrap.service.d.ts.map +1 -0
- package/dist/src/services/application/app-schema-bootstrap.service.js +139 -0
- package/dist/src/services/application/app-schema-bootstrap.service.js.map +1 -0
- package/dist/src/services/application/application-assets-delivery.service.d.ts +75 -0
- package/dist/src/services/application/application-assets-delivery.service.d.ts.map +1 -0
- package/dist/src/services/application/application-assets-delivery.service.js +152 -0
- package/dist/src/services/application/application-assets-delivery.service.js.map +1 -0
- package/dist/src/services/application/application-dependency-alignment.service.d.ts +142 -0
- package/dist/src/services/application/application-dependency-alignment.service.d.ts.map +1 -0
- package/dist/src/services/application/application-dependency-alignment.service.js +388 -0
- package/dist/src/services/application/application-dependency-alignment.service.js.map +1 -0
- package/dist/src/services/application/application-dev-port-offsets.d.ts +35 -0
- package/dist/src/services/application/application-dev-port-offsets.d.ts.map +1 -0
- package/dist/src/services/application/application-dev-port-offsets.js +35 -0
- package/dist/src/services/application/application-dev-port-offsets.js.map +1 -0
- package/dist/src/services/application/application-initialization-verification.service.d.ts +51 -0
- package/dist/src/services/application/application-initialization-verification.service.d.ts.map +1 -0
- package/dist/src/services/application/application-initialization-verification.service.js +124 -0
- package/dist/src/services/application/application-initialization-verification.service.js.map +1 -0
- package/dist/src/services/application/application-root.utils.d.ts +9 -0
- package/dist/src/services/application/application-root.utils.d.ts.map +1 -0
- package/dist/src/services/application/application-root.utils.js +21 -0
- package/dist/src/services/application/application-root.utils.js.map +1 -0
- package/dist/src/services/application/application-runtime-bootstrap.service.d.ts +39 -0
- package/dist/src/services/application/application-runtime-bootstrap.service.d.ts.map +1 -0
- package/dist/src/services/application/application-runtime-bootstrap.service.js +99 -0
- package/dist/src/services/application/application-runtime-bootstrap.service.js.map +1 -0
- package/dist/src/services/application/dev-orchestrator.service.d.ts +31 -0
- package/dist/src/services/application/dev-orchestrator.service.d.ts.map +1 -0
- package/dist/src/services/application/dev-orchestrator.service.js +182 -0
- package/dist/src/services/application/dev-orchestrator.service.js.map +1 -0
- package/dist/src/services/application/dev-schema-drift.service.d.ts +75 -0
- package/dist/src/services/application/dev-schema-drift.service.d.ts.map +1 -0
- package/dist/src/services/application/dev-schema-drift.service.js +210 -0
- package/dist/src/services/application/dev-schema-drift.service.js.map +1 -0
- package/dist/src/services/application/existing-app-bootstrap.service.d.ts +18 -0
- package/dist/src/services/application/existing-app-bootstrap.service.d.ts.map +1 -0
- package/dist/src/services/application/existing-app-bootstrap.service.js +221 -0
- package/dist/src/services/application/existing-app-bootstrap.service.js.map +1 -0
- package/dist/src/services/application/local-app-reinit.service.d.ts +41 -0
- package/dist/src/services/application/local-app-reinit.service.d.ts.map +1 -0
- package/dist/src/services/application/local-app-reinit.service.js +118 -0
- package/dist/src/services/application/local-app-reinit.service.js.map +1 -0
- package/dist/src/services/application/local-application-initialization.service.d.ts +36 -0
- package/dist/src/services/application/local-application-initialization.service.d.ts.map +1 -0
- package/dist/src/services/application/local-application-initialization.service.js +96 -0
- package/dist/src/services/application/local-application-initialization.service.js.map +1 -0
- package/dist/src/services/application/provider-runtime-sync.service.d.ts +63 -0
- package/dist/src/services/application/provider-runtime-sync.service.d.ts.map +1 -0
- package/dist/src/services/application/provider-runtime-sync.service.js +609 -0
- package/dist/src/services/application/provider-runtime-sync.service.js.map +1 -0
- package/dist/src/services/application/saas-scaffold.service.d.ts +14 -0
- package/dist/src/services/application/saas-scaffold.service.d.ts.map +1 -0
- package/dist/src/services/application/saas-scaffold.service.js +86 -0
- package/dist/src/services/application/saas-scaffold.service.js.map +1 -0
- package/dist/src/services/application/saas-skeleton.service.d.ts +69 -0
- package/dist/src/services/application/saas-skeleton.service.d.ts.map +1 -0
- package/dist/src/services/application/saas-skeleton.service.js +774 -0
- package/dist/src/services/application/saas-skeleton.service.js.map +1 -0
- package/dist/src/services/brand/__tests__/brand-asset-delivery.test.d.ts +23 -0
- package/dist/src/services/brand/__tests__/brand-asset-delivery.test.d.ts.map +1 -0
- package/dist/src/services/brand/__tests__/brand-asset-delivery.test.js +190 -0
- package/dist/src/services/brand/__tests__/brand-asset-delivery.test.js.map +1 -0
- package/dist/src/services/brand/brand-asset-projection.d.ts +39 -0
- package/dist/src/services/brand/brand-asset-projection.d.ts.map +1 -0
- package/dist/src/services/brand/brand-asset-projection.js +68 -0
- package/dist/src/services/brand/brand-asset-projection.js.map +1 -0
- package/dist/src/services/brand/brand-destination-utils.d.ts +137 -0
- package/dist/src/services/brand/brand-destination-utils.d.ts.map +1 -0
- package/dist/src/services/brand/brand-destination-utils.js +227 -0
- package/dist/src/services/brand/brand-destination-utils.js.map +1 -0
- package/dist/src/services/brand/brand-propagation.types.d.ts +101 -0
- package/dist/src/services/brand/brand-propagation.types.d.ts.map +1 -0
- package/dist/src/services/brand/brand-propagation.types.js +22 -0
- package/dist/src/services/brand/brand-propagation.types.js.map +1 -0
- package/dist/src/services/brand/brand-ssot-reader.d.ts +52 -0
- package/dist/src/services/brand/brand-ssot-reader.d.ts.map +1 -0
- package/dist/src/services/brand/brand-ssot-reader.js +146 -0
- package/dist/src/services/brand/brand-ssot-reader.js.map +1 -0
- package/dist/src/services/brand/destinations/app-public.destination.d.ts +30 -0
- package/dist/src/services/brand/destinations/app-public.destination.d.ts.map +1 -0
- package/dist/src/services/brand/destinations/app-public.destination.js +79 -0
- package/dist/src/services/brand/destinations/app-public.destination.js.map +1 -0
- package/dist/src/services/brand/destinations/runtime-app-config.destination.d.ts +61 -0
- package/dist/src/services/brand/destinations/runtime-app-config.destination.d.ts.map +1 -0
- package/dist/src/services/brand/destinations/runtime-app-config.destination.js +149 -0
- package/dist/src/services/brand/destinations/runtime-app-config.destination.js.map +1 -0
- package/dist/src/services/brand/destinations/technical-doc-static.destination.d.ts +22 -0
- package/dist/src/services/brand/destinations/technical-doc-static.destination.d.ts.map +1 -0
- package/dist/src/services/brand/destinations/technical-doc-static.destination.js +84 -0
- package/dist/src/services/brand/destinations/technical-doc-static.destination.js.map +1 -0
- package/dist/src/services/brand/destinations/website-og.destination.d.ts +34 -0
- package/dist/src/services/brand/destinations/website-og.destination.d.ts.map +1 -0
- package/dist/src/services/brand/destinations/website-og.destination.js +80 -0
- package/dist/src/services/brand/destinations/website-og.destination.js.map +1 -0
- package/dist/src/services/brand/destinations/website-public.destination.d.ts +40 -0
- package/dist/src/services/brand/destinations/website-public.destination.d.ts.map +1 -0
- package/dist/src/services/brand/destinations/website-public.destination.js +122 -0
- package/dist/src/services/brand/destinations/website-public.destination.js.map +1 -0
- package/dist/src/services/catalog/__tests__/service-address-resolver.service.test.d.ts +2 -0
- package/dist/src/services/catalog/__tests__/service-address-resolver.service.test.d.ts.map +1 -0
- package/dist/src/services/catalog/__tests__/service-address-resolver.service.test.js +142 -0
- package/dist/src/services/catalog/__tests__/service-address-resolver.service.test.js.map +1 -0
- package/dist/src/services/catalog/__tests__/service-catalog.schemas.test.d.ts +2 -0
- package/dist/src/services/catalog/__tests__/service-catalog.schemas.test.d.ts.map +1 -0
- package/dist/src/services/catalog/__tests__/service-catalog.schemas.test.js +94 -0
- package/dist/src/services/catalog/__tests__/service-catalog.schemas.test.js.map +1 -0
- package/dist/src/services/catalog/service-address-resolver.service.d.ts +91 -0
- package/dist/src/services/catalog/service-address-resolver.service.d.ts.map +1 -0
- package/dist/src/services/catalog/service-address-resolver.service.js +255 -0
- package/dist/src/services/catalog/service-address-resolver.service.js.map +1 -0
- package/dist/src/services/catalog/service-catalog.schemas.d.ts +165 -0
- package/dist/src/services/catalog/service-catalog.schemas.d.ts.map +1 -0
- package/dist/src/services/catalog/service-catalog.schemas.js +273 -0
- package/dist/src/services/catalog/service-catalog.schemas.js.map +1 -0
- package/dist/src/services/coding-agents/acp-conformance-probe.service.d.ts +105 -0
- package/dist/src/services/coding-agents/acp-conformance-probe.service.d.ts.map +1 -0
- package/dist/src/services/coding-agents/acp-conformance-probe.service.js +418 -0
- package/dist/src/services/coding-agents/acp-conformance-probe.service.js.map +1 -0
- package/dist/src/services/companion/__tests__/companion-client.service.test.d.ts +10 -0
- package/dist/src/services/companion/__tests__/companion-client.service.test.d.ts.map +1 -0
- package/dist/src/services/companion/__tests__/companion-client.service.test.js +95 -0
- package/dist/src/services/companion/__tests__/companion-client.service.test.js.map +1 -0
- package/dist/src/services/companion/__tests__/companion-lifecycle.service.test.d.ts +2 -0
- package/dist/src/services/companion/__tests__/companion-lifecycle.service.test.d.ts.map +1 -0
- package/dist/src/services/companion/__tests__/companion-lifecycle.service.test.js +74 -0
- package/dist/src/services/companion/__tests__/companion-lifecycle.service.test.js.map +1 -0
- package/dist/src/services/companion/__tests__/workbench-browser-launcher.service.test.d.ts +2 -0
- package/dist/src/services/companion/__tests__/workbench-browser-launcher.service.test.d.ts.map +1 -0
- package/dist/src/services/companion/__tests__/workbench-browser-launcher.service.test.js +14 -0
- package/dist/src/services/companion/__tests__/workbench-browser-launcher.service.test.js.map +1 -0
- package/dist/src/services/companion/__tests__/workbench-cli.service.test.d.ts +2 -0
- package/dist/src/services/companion/__tests__/workbench-cli.service.test.d.ts.map +1 -0
- package/dist/src/services/companion/__tests__/workbench-cli.service.test.js +50 -0
- package/dist/src/services/companion/__tests__/workbench-cli.service.test.js.map +1 -0
- package/dist/src/services/companion/companion-client-options.utils.d.ts +17 -0
- package/dist/src/services/companion/companion-client-options.utils.d.ts.map +1 -0
- package/dist/src/services/companion/companion-client-options.utils.js +31 -0
- package/dist/src/services/companion/companion-client-options.utils.js.map +1 -0
- package/dist/src/services/companion/companion-client.service.d.ts +16 -0
- package/dist/src/services/companion/companion-client.service.d.ts.map +1 -0
- package/dist/src/services/companion/companion-client.service.js +149 -0
- package/dist/src/services/companion/companion-client.service.js.map +1 -0
- package/dist/src/services/companion/companion-lifecycle.service.d.ts +18 -0
- package/dist/src/services/companion/companion-lifecycle.service.d.ts.map +1 -0
- package/dist/src/services/companion/companion-lifecycle.service.js +96 -0
- package/dist/src/services/companion/companion-lifecycle.service.js.map +1 -0
- package/dist/src/services/companion/companion.schemas.d.ts +36 -0
- package/dist/src/services/companion/companion.schemas.d.ts.map +1 -0
- package/dist/src/services/companion/companion.schemas.js +25 -0
- package/dist/src/services/companion/companion.schemas.js.map +1 -0
- package/dist/src/services/companion/git-helper.service.d.ts +29 -0
- package/dist/src/services/companion/git-helper.service.d.ts.map +1 -0
- package/dist/src/services/companion/git-helper.service.js +59 -0
- package/dist/src/services/companion/git-helper.service.js.map +1 -0
- package/dist/src/services/companion/local-companion-authority.service.d.ts +24 -0
- package/dist/src/services/companion/local-companion-authority.service.d.ts.map +1 -0
- package/dist/src/services/companion/local-companion-authority.service.js +79 -0
- package/dist/src/services/companion/local-companion-authority.service.js.map +1 -0
- package/dist/src/services/companion/workbench-browser-launcher.service.d.ts +9 -0
- package/dist/src/services/companion/workbench-browser-launcher.service.d.ts.map +1 -0
- package/dist/src/services/companion/workbench-browser-launcher.service.js +34 -0
- package/dist/src/services/companion/workbench-browser-launcher.service.js.map +1 -0
- package/dist/src/services/companion/workbench-cli.service.d.ts +41 -0
- package/dist/src/services/companion/workbench-cli.service.d.ts.map +1 -0
- package/dist/src/services/companion/workbench-cli.service.js +74 -0
- package/dist/src/services/companion/workbench-cli.service.js.map +1 -0
- package/dist/src/services/context/__tests__/context-manager.installed-assets.test.d.ts +2 -0
- package/dist/src/services/context/__tests__/context-manager.installed-assets.test.d.ts.map +1 -0
- package/dist/src/services/context/__tests__/context-manager.installed-assets.test.js +49 -0
- package/dist/src/services/context/__tests__/context-manager.installed-assets.test.js.map +1 -0
- package/dist/src/services/context/__tests__/context-manager.service.test.d.ts +2 -0
- package/dist/src/services/context/__tests__/context-manager.service.test.d.ts.map +1 -0
- package/dist/src/services/context/__tests__/context-manager.service.test.js +119 -0
- package/dist/src/services/context/__tests__/context-manager.service.test.js.map +1 -0
- package/dist/src/services/context/context-manager.service.d.ts +66 -0
- package/dist/src/services/context/context-manager.service.d.ts.map +1 -0
- package/dist/src/services/context/context-manager.service.js +161 -0
- package/dist/src/services/context/context-manager.service.js.map +1 -0
- package/dist/src/services/context/context.schemas.d.ts +31 -0
- package/dist/src/services/context/context.schemas.d.ts.map +1 -0
- package/dist/src/services/context/context.schemas.js +1 -0
- package/dist/src/services/context/context.schemas.js.map +1 -0
- package/dist/src/services/context/state-manager.service.d.ts +49 -0
- package/dist/src/services/context/state-manager.service.d.ts.map +1 -0
- package/dist/src/services/context/state-manager.service.js +94 -0
- package/dist/src/services/context/state-manager.service.js.map +1 -0
- package/dist/src/services/credentials/__tests__/framework-managed-secrets.test.d.ts +14 -0
- package/dist/src/services/credentials/__tests__/framework-managed-secrets.test.d.ts.map +1 -0
- package/dist/src/services/credentials/__tests__/framework-managed-secrets.test.js +258 -0
- package/dist/src/services/credentials/__tests__/framework-managed-secrets.test.js.map +1 -0
- package/dist/src/services/credentials/__tests__/secrets-contracts.test.d.ts +2 -0
- package/dist/src/services/credentials/__tests__/secrets-contracts.test.d.ts.map +1 -0
- package/dist/src/services/credentials/__tests__/secrets-contracts.test.js +277 -0
- package/dist/src/services/credentials/__tests__/secrets-contracts.test.js.map +1 -0
- package/dist/src/services/credentials/ci-secrets-adapter.service.d.ts +31 -0
- package/dist/src/services/credentials/ci-secrets-adapter.service.d.ts.map +1 -0
- package/dist/src/services/credentials/ci-secrets-adapter.service.js +124 -0
- package/dist/src/services/credentials/ci-secrets-adapter.service.js.map +1 -0
- package/dist/src/services/credentials/credentials.schemas.d.ts +498 -0
- package/dist/src/services/credentials/credentials.schemas.d.ts.map +1 -0
- package/dist/src/services/credentials/credentials.schemas.js +454 -0
- package/dist/src/services/credentials/credentials.schemas.js.map +1 -0
- package/dist/src/services/credentials/credentials.service.d.ts +23 -0
- package/dist/src/services/credentials/credentials.service.d.ts.map +1 -0
- package/dist/src/services/credentials/credentials.service.js +118 -0
- package/dist/src/services/credentials/credentials.service.js.map +1 -0
- package/dist/src/services/credentials/framework-managed-secrets.d.ts +169 -0
- package/dist/src/services/credentials/framework-managed-secrets.d.ts.map +1 -0
- package/dist/src/services/credentials/framework-managed-secrets.js +406 -0
- package/dist/src/services/credentials/framework-managed-secrets.js.map +1 -0
- package/dist/src/services/credentials/provider-env-vars.utils.d.ts +142 -0
- package/dist/src/services/credentials/provider-env-vars.utils.d.ts.map +1 -0
- package/dist/src/services/credentials/provider-env-vars.utils.js +420 -0
- package/dist/src/services/credentials/provider-env-vars.utils.js.map +1 -0
- package/dist/src/services/credentials/secrets-provisioning.service.d.ts +109 -0
- package/dist/src/services/credentials/secrets-provisioning.service.d.ts.map +1 -0
- package/dist/src/services/credentials/secrets-provisioning.service.js +104 -0
- package/dist/src/services/credentials/secrets-provisioning.service.js.map +1 -0
- package/dist/src/services/credentials/secrets-reader.service.d.ts +64 -0
- package/dist/src/services/credentials/secrets-reader.service.d.ts.map +1 -0
- package/dist/src/services/credentials/secrets-reader.service.js +222 -0
- package/dist/src/services/credentials/secrets-reader.service.js.map +1 -0
- package/dist/src/services/credentials/secrets-rotation.service.d.ts +21 -0
- package/dist/src/services/credentials/secrets-rotation.service.d.ts.map +1 -0
- package/dist/src/services/credentials/secrets-rotation.service.js +30 -0
- package/dist/src/services/credentials/secrets-rotation.service.js.map +1 -0
- package/dist/src/services/credentials/secrets-writer.service.d.ts +29 -0
- package/dist/src/services/credentials/secrets-writer.service.d.ts.map +1 -0
- package/dist/src/services/credentials/secrets-writer.service.js +63 -0
- package/dist/src/services/credentials/secrets-writer.service.js.map +1 -0
- package/dist/src/services/data-services/data-services.schemas.d.ts +229 -0
- package/dist/src/services/data-services/data-services.schemas.d.ts.map +1 -0
- package/dist/src/services/data-services/data-services.schemas.js +239 -0
- package/dist/src/services/data-services/data-services.schemas.js.map +1 -0
- package/dist/src/services/data-services/data-services.service.d.ts +14 -0
- package/dist/src/services/data-services/data-services.service.d.ts.map +1 -0
- package/dist/src/services/data-services/data-services.service.js +24 -0
- package/dist/src/services/data-services/data-services.service.js.map +1 -0
- package/dist/src/services/deployment/__tests__/apps-manager-diagnostics.service.test.d.ts +2 -0
- package/dist/src/services/deployment/__tests__/apps-manager-diagnostics.service.test.d.ts.map +1 -0
- package/dist/src/services/deployment/__tests__/apps-manager-diagnostics.service.test.js +64 -0
- package/dist/src/services/deployment/__tests__/apps-manager-diagnostics.service.test.js.map +1 -0
- package/dist/src/services/deployment/__tests__/ci-deploy-generator.service.test.d.ts +2 -0
- package/dist/src/services/deployment/__tests__/ci-deploy-generator.service.test.d.ts.map +1 -0
- package/dist/src/services/deployment/__tests__/ci-deploy-generator.service.test.js +147 -0
- package/dist/src/services/deployment/__tests__/ci-deploy-generator.service.test.js.map +1 -0
- package/dist/src/services/deployment/__tests__/ci-workflow-generator.service.test.d.ts +2 -0
- package/dist/src/services/deployment/__tests__/ci-workflow-generator.service.test.d.ts.map +1 -0
- package/dist/src/services/deployment/__tests__/ci-workflow-generator.service.test.js +39 -0
- package/dist/src/services/deployment/__tests__/ci-workflow-generator.service.test.js.map +1 -0
- package/dist/src/services/deployment/__tests__/deployment-template-contracts.test.d.ts +2 -0
- package/dist/src/services/deployment/__tests__/deployment-template-contracts.test.d.ts.map +1 -0
- package/dist/src/services/deployment/__tests__/deployment-template-contracts.test.js +286 -0
- package/dist/src/services/deployment/__tests__/deployment-template-contracts.test.js.map +1 -0
- package/dist/src/services/deployment/__tests__/host-toolchain-readiness.service.test.d.ts +20 -0
- package/dist/src/services/deployment/__tests__/host-toolchain-readiness.service.test.d.ts.map +1 -0
- package/dist/src/services/deployment/__tests__/host-toolchain-readiness.service.test.js +316 -0
- package/dist/src/services/deployment/__tests__/host-toolchain-readiness.service.test.js.map +1 -0
- package/dist/src/services/deployment/__tests__/infra-templates-render-smoke.test.d.ts +2 -0
- package/dist/src/services/deployment/__tests__/infra-templates-render-smoke.test.d.ts.map +1 -0
- package/dist/src/services/deployment/__tests__/infra-templates-render-smoke.test.js +211 -0
- package/dist/src/services/deployment/__tests__/infra-templates-render-smoke.test.js.map +1 -0
- package/dist/src/services/deployment/__tests__/local-dev-observer-lifecycle.test.d.ts +2 -0
- package/dist/src/services/deployment/__tests__/local-dev-observer-lifecycle.test.d.ts.map +1 -0
- package/dist/src/services/deployment/__tests__/local-dev-observer-lifecycle.test.js +97 -0
- package/dist/src/services/deployment/__tests__/local-dev-observer-lifecycle.test.js.map +1 -0
- package/dist/src/services/deployment/__tests__/local-dev-output-boundary.test.d.ts +2 -0
- package/dist/src/services/deployment/__tests__/local-dev-output-boundary.test.d.ts.map +1 -0
- package/dist/src/services/deployment/__tests__/local-dev-output-boundary.test.js +258 -0
- package/dist/src/services/deployment/__tests__/local-dev-output-boundary.test.js.map +1 -0
- package/dist/src/services/deployment/__tests__/local-dev-session-lease.service.test.d.ts +2 -0
- package/dist/src/services/deployment/__tests__/local-dev-session-lease.service.test.d.ts.map +1 -0
- package/dist/src/services/deployment/__tests__/local-dev-session-lease.service.test.js +223 -0
- package/dist/src/services/deployment/__tests__/local-dev-session-lease.service.test.js.map +1 -0
- package/dist/src/services/deployment/__tests__/local-dev-shutdown-coordinator.test.d.ts +2 -0
- package/dist/src/services/deployment/__tests__/local-dev-shutdown-coordinator.test.d.ts.map +1 -0
- package/dist/src/services/deployment/__tests__/local-dev-shutdown-coordinator.test.js +100 -0
- package/dist/src/services/deployment/__tests__/local-dev-shutdown-coordinator.test.js.map +1 -0
- package/dist/src/services/deployment/__tests__/local-precondition-checks.service.test.d.ts +11 -0
- package/dist/src/services/deployment/__tests__/local-precondition-checks.service.test.d.ts.map +1 -0
- package/dist/src/services/deployment/__tests__/local-precondition-checks.service.test.js +451 -0
- package/dist/src/services/deployment/__tests__/local-precondition-checks.service.test.js.map +1 -0
- package/dist/src/services/deployment/__tests__/local-runtime-process-cleanup.service.test.d.ts +2 -0
- package/dist/src/services/deployment/__tests__/local-runtime-process-cleanup.service.test.d.ts.map +1 -0
- package/dist/src/services/deployment/__tests__/local-runtime-process-cleanup.service.test.js +189 -0
- package/dist/src/services/deployment/__tests__/local-runtime-process-cleanup.service.test.js.map +1 -0
- package/dist/src/services/deployment/__tests__/parity.compose-vs-k8s.test.d.ts +2 -0
- package/dist/src/services/deployment/__tests__/parity.compose-vs-k8s.test.d.ts.map +1 -0
- package/dist/src/services/deployment/__tests__/parity.compose-vs-k8s.test.js +150 -0
- package/dist/src/services/deployment/__tests__/parity.compose-vs-k8s.test.js.map +1 -0
- package/dist/src/services/deployment/__tests__/platform-lifecycle.service.test.d.ts +2 -0
- package/dist/src/services/deployment/__tests__/platform-lifecycle.service.test.d.ts.map +1 -0
- package/dist/src/services/deployment/__tests__/platform-lifecycle.service.test.js +245 -0
- package/dist/src/services/deployment/__tests__/platform-lifecycle.service.test.js.map +1 -0
- package/dist/src/services/deployment/__tests__/platform-runtime-policy.service.test.d.ts +2 -0
- package/dist/src/services/deployment/__tests__/platform-runtime-policy.service.test.d.ts.map +1 -0
- package/dist/src/services/deployment/__tests__/platform-runtime-policy.service.test.js +27 -0
- package/dist/src/services/deployment/__tests__/platform-runtime-policy.service.test.js.map +1 -0
- package/dist/src/services/deployment/apps-manager-diagnostics.service.d.ts +7 -0
- package/dist/src/services/deployment/apps-manager-diagnostics.service.d.ts.map +1 -0
- package/dist/src/services/deployment/apps-manager-diagnostics.service.js +51 -0
- package/dist/src/services/deployment/apps-manager-diagnostics.service.js.map +1 -0
- package/dist/src/services/deployment/ci-deploy-generator.service.d.ts +54 -0
- package/dist/src/services/deployment/ci-deploy-generator.service.d.ts.map +1 -0
- package/dist/src/services/deployment/ci-deploy-generator.service.js +319 -0
- package/dist/src/services/deployment/ci-deploy-generator.service.js.map +1 -0
- package/dist/src/services/deployment/ci-workflow-generator.service.d.ts +109 -0
- package/dist/src/services/deployment/ci-workflow-generator.service.d.ts.map +1 -0
- package/dist/src/services/deployment/ci-workflow-generator.service.js +160 -0
- package/dist/src/services/deployment/ci-workflow-generator.service.js.map +1 -0
- package/dist/src/services/deployment/docker/__tests__/compose-env-value-encoding.test.d.ts +2 -0
- package/dist/src/services/deployment/docker/__tests__/compose-env-value-encoding.test.d.ts.map +1 -0
- package/dist/src/services/deployment/docker/__tests__/compose-env-value-encoding.test.js +45 -0
- package/dist/src/services/deployment/docker/__tests__/compose-env-value-encoding.test.js.map +1 -0
- package/dist/src/services/deployment/docker/__tests__/compose-host-mounted-artifact.test.d.ts +2 -0
- package/dist/src/services/deployment/docker/__tests__/compose-host-mounted-artifact.test.d.ts.map +1 -0
- package/dist/src/services/deployment/docker/__tests__/compose-host-mounted-artifact.test.js +81 -0
- package/dist/src/services/deployment/docker/__tests__/compose-host-mounted-artifact.test.js.map +1 -0
- package/dist/src/services/deployment/docker/__tests__/docker-compose-generator.service.test.d.ts +2 -0
- package/dist/src/services/deployment/docker/__tests__/docker-compose-generator.service.test.d.ts.map +1 -0
- package/dist/src/services/deployment/docker/__tests__/docker-compose-generator.service.test.js +814 -0
- package/dist/src/services/deployment/docker/__tests__/docker-compose-generator.service.test.js.map +1 -0
- package/dist/src/services/deployment/docker/__tests__/docker-compose-readiness.service.test.d.ts +2 -0
- package/dist/src/services/deployment/docker/__tests__/docker-compose-readiness.service.test.d.ts.map +1 -0
- package/dist/src/services/deployment/docker/__tests__/docker-compose-readiness.service.test.js +77 -0
- package/dist/src/services/deployment/docker/__tests__/docker-compose-readiness.service.test.js.map +1 -0
- package/dist/src/services/deployment/docker/docker-compose-generator.service.d.ts +225 -0
- package/dist/src/services/deployment/docker/docker-compose-generator.service.d.ts.map +1 -0
- package/dist/src/services/deployment/docker/docker-compose-generator.service.js +696 -0
- package/dist/src/services/deployment/docker/docker-compose-generator.service.js.map +1 -0
- package/dist/src/services/deployment/docker/docker-compose-readiness.service.d.ts +89 -0
- package/dist/src/services/deployment/docker/docker-compose-readiness.service.d.ts.map +1 -0
- package/dist/src/services/deployment/docker/docker-compose-readiness.service.js +198 -0
- package/dist/src/services/deployment/docker/docker-compose-readiness.service.js.map +1 -0
- package/dist/src/services/deployment/docker/docker.schemas.d.ts +17 -0
- package/dist/src/services/deployment/docker/docker.schemas.d.ts.map +1 -0
- package/dist/src/services/deployment/docker/docker.schemas.js +4 -0
- package/dist/src/services/deployment/docker/docker.schemas.js.map +1 -0
- package/dist/src/services/deployment/docker/docker.service.d.ts +23 -0
- package/dist/src/services/deployment/docker/docker.service.d.ts.map +1 -0
- package/dist/src/services/deployment/docker/docker.service.js +94 -0
- package/dist/src/services/deployment/docker/docker.service.js.map +1 -0
- package/dist/src/services/deployment/host-toolchain-readiness.service.d.ts +209 -0
- package/dist/src/services/deployment/host-toolchain-readiness.service.d.ts.map +1 -0
- package/dist/src/services/deployment/host-toolchain-readiness.service.js +283 -0
- package/dist/src/services/deployment/host-toolchain-readiness.service.js.map +1 -0
- package/dist/src/services/deployment/infra-writer.service.d.ts +16 -0
- package/dist/src/services/deployment/infra-writer.service.d.ts.map +1 -0
- package/dist/src/services/deployment/infra-writer.service.js +71 -0
- package/dist/src/services/deployment/infra-writer.service.js.map +1 -0
- package/dist/src/services/deployment/k8s/__tests__/k8s-bootstrap.service.test.d.ts +2 -0
- package/dist/src/services/deployment/k8s/__tests__/k8s-bootstrap.service.test.d.ts.map +1 -0
- package/dist/src/services/deployment/k8s/__tests__/k8s-bootstrap.service.test.js +235 -0
- package/dist/src/services/deployment/k8s/__tests__/k8s-bootstrap.service.test.js.map +1 -0
- package/dist/src/services/deployment/k8s/__tests__/k8s-manifest-generator.service.test.d.ts +2 -0
- package/dist/src/services/deployment/k8s/__tests__/k8s-manifest-generator.service.test.d.ts.map +1 -0
- package/dist/src/services/deployment/k8s/__tests__/k8s-manifest-generator.service.test.js +968 -0
- package/dist/src/services/deployment/k8s/__tests__/k8s-manifest-generator.service.test.js.map +1 -0
- package/dist/src/services/deployment/k8s/__tests__/k8s-operations.service.test.d.ts +2 -0
- package/dist/src/services/deployment/k8s/__tests__/k8s-operations.service.test.d.ts.map +1 -0
- package/dist/src/services/deployment/k8s/__tests__/k8s-operations.service.test.js +39 -0
- package/dist/src/services/deployment/k8s/__tests__/k8s-operations.service.test.js.map +1 -0
- package/dist/src/services/deployment/k8s/__tests__/k8s-secrets-generator.service.test.d.ts +2 -0
- package/dist/src/services/deployment/k8s/__tests__/k8s-secrets-generator.service.test.d.ts.map +1 -0
- package/dist/src/services/deployment/k8s/__tests__/k8s-secrets-generator.service.test.js +175 -0
- package/dist/src/services/deployment/k8s/__tests__/k8s-secrets-generator.service.test.js.map +1 -0
- package/dist/src/services/deployment/k8s/__tests__/kind.service.test.d.ts +2 -0
- package/dist/src/services/deployment/k8s/__tests__/kind.service.test.d.ts.map +1 -0
- package/dist/src/services/deployment/k8s/__tests__/kind.service.test.js +47 -0
- package/dist/src/services/deployment/k8s/__tests__/kind.service.test.js.map +1 -0
- package/dist/src/services/deployment/k8s/__tests__/local-k8s-application-pruning.service.test.d.ts +2 -0
- package/dist/src/services/deployment/k8s/__tests__/local-k8s-application-pruning.service.test.d.ts.map +1 -0
- package/dist/src/services/deployment/k8s/__tests__/local-k8s-application-pruning.service.test.js +22 -0
- package/dist/src/services/deployment/k8s/__tests__/local-k8s-application-pruning.service.test.js.map +1 -0
- package/dist/src/services/deployment/k8s/k8s-bootstrap.service.d.ts +30 -0
- package/dist/src/services/deployment/k8s/k8s-bootstrap.service.d.ts.map +1 -0
- package/dist/src/services/deployment/k8s/k8s-bootstrap.service.js +659 -0
- package/dist/src/services/deployment/k8s/k8s-bootstrap.service.js.map +1 -0
- package/dist/src/services/deployment/k8s/k8s-local-infra-readiness.service.d.ts +47 -0
- package/dist/src/services/deployment/k8s/k8s-local-infra-readiness.service.d.ts.map +1 -0
- package/dist/src/services/deployment/k8s/k8s-local-infra-readiness.service.js +135 -0
- package/dist/src/services/deployment/k8s/k8s-local-infra-readiness.service.js.map +1 -0
- package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.d.ts +283 -0
- package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.d.ts.map +1 -0
- package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.js +874 -0
- package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.js.map +1 -0
- package/dist/src/services/deployment/k8s/k8s-manifest.schemas.d.ts +164 -0
- package/dist/src/services/deployment/k8s/k8s-manifest.schemas.d.ts.map +1 -0
- package/dist/src/services/deployment/k8s/k8s-manifest.schemas.js +74 -0
- package/dist/src/services/deployment/k8s/k8s-manifest.schemas.js.map +1 -0
- package/dist/src/services/deployment/k8s/k8s-operations.service.d.ts +152 -0
- package/dist/src/services/deployment/k8s/k8s-operations.service.d.ts.map +1 -0
- package/dist/src/services/deployment/k8s/k8s-operations.service.js +430 -0
- package/dist/src/services/deployment/k8s/k8s-operations.service.js.map +1 -0
- package/dist/src/services/deployment/k8s/k8s-secrets-generator.service.d.ts +23 -0
- package/dist/src/services/deployment/k8s/k8s-secrets-generator.service.d.ts.map +1 -0
- package/dist/src/services/deployment/k8s/k8s-secrets-generator.service.js +351 -0
- package/dist/src/services/deployment/k8s/k8s-secrets-generator.service.js.map +1 -0
- package/dist/src/services/deployment/k8s/k8s.schemas.d.ts +36 -0
- package/dist/src/services/deployment/k8s/k8s.schemas.d.ts.map +1 -0
- package/dist/src/services/deployment/k8s/k8s.schemas.js +39 -0
- package/dist/src/services/deployment/k8s/k8s.schemas.js.map +1 -0
- package/dist/src/services/deployment/k8s/kind.service.d.ts +64 -0
- package/dist/src/services/deployment/k8s/kind.service.d.ts.map +1 -0
- package/dist/src/services/deployment/k8s/kind.service.js +448 -0
- package/dist/src/services/deployment/k8s/kind.service.js.map +1 -0
- package/dist/src/services/deployment/k8s/local-k8s-application-pruning.service.d.ts +11 -0
- package/dist/src/services/deployment/k8s/local-k8s-application-pruning.service.d.ts.map +1 -0
- package/dist/src/services/deployment/k8s/local-k8s-application-pruning.service.js +29 -0
- package/dist/src/services/deployment/k8s/local-k8s-application-pruning.service.js.map +1 -0
- package/dist/src/services/deployment/local-dev-observer-lifecycle.d.ts +35 -0
- package/dist/src/services/deployment/local-dev-observer-lifecycle.d.ts.map +1 -0
- package/dist/src/services/deployment/local-dev-observer-lifecycle.js +80 -0
- package/dist/src/services/deployment/local-dev-observer-lifecycle.js.map +1 -0
- package/dist/src/services/deployment/local-dev-output-boundary.d.ts +120 -0
- package/dist/src/services/deployment/local-dev-output-boundary.d.ts.map +1 -0
- package/dist/src/services/deployment/local-dev-output-boundary.js +450 -0
- package/dist/src/services/deployment/local-dev-output-boundary.js.map +1 -0
- package/dist/src/services/deployment/local-dev-session-lease.service.d.ts +63 -0
- package/dist/src/services/deployment/local-dev-session-lease.service.d.ts.map +1 -0
- package/dist/src/services/deployment/local-dev-session-lease.service.js +240 -0
- package/dist/src/services/deployment/local-dev-session-lease.service.js.map +1 -0
- package/dist/src/services/deployment/local-dev-shutdown-coordinator.d.ts +56 -0
- package/dist/src/services/deployment/local-dev-shutdown-coordinator.d.ts.map +1 -0
- package/dist/src/services/deployment/local-dev-shutdown-coordinator.js +62 -0
- package/dist/src/services/deployment/local-dev-shutdown-coordinator.js.map +1 -0
- package/dist/src/services/deployment/local-infrastructure-initialization.service.d.ts +16 -0
- package/dist/src/services/deployment/local-infrastructure-initialization.service.d.ts.map +1 -0
- package/dist/src/services/deployment/local-infrastructure-initialization.service.js +72 -0
- package/dist/src/services/deployment/local-infrastructure-initialization.service.js.map +1 -0
- package/dist/src/services/deployment/local-precondition-checks.schemas.d.ts +41 -0
- package/dist/src/services/deployment/local-precondition-checks.schemas.d.ts.map +1 -0
- package/dist/src/services/deployment/local-precondition-checks.schemas.js +32 -0
- package/dist/src/services/deployment/local-precondition-checks.schemas.js.map +1 -0
- package/dist/src/services/deployment/local-precondition-checks.service.d.ts +394 -0
- package/dist/src/services/deployment/local-precondition-checks.service.d.ts.map +1 -0
- package/dist/src/services/deployment/local-precondition-checks.service.js +785 -0
- package/dist/src/services/deployment/local-precondition-checks.service.js.map +1 -0
- package/dist/src/services/deployment/local-runtime-process-cleanup.service.d.ts +83 -0
- package/dist/src/services/deployment/local-runtime-process-cleanup.service.d.ts.map +1 -0
- package/dist/src/services/deployment/local-runtime-process-cleanup.service.js +298 -0
- package/dist/src/services/deployment/local-runtime-process-cleanup.service.js.map +1 -0
- package/dist/src/services/deployment/platform-lifecycle.service.d.ts +105 -0
- package/dist/src/services/deployment/platform-lifecycle.service.d.ts.map +1 -0
- package/dist/src/services/deployment/platform-lifecycle.service.js +509 -0
- package/dist/src/services/deployment/platform-lifecycle.service.js.map +1 -0
- package/dist/src/services/deployment/platform-runtime-policy.service.d.ts +18 -0
- package/dist/src/services/deployment/platform-runtime-policy.service.d.ts.map +1 -0
- package/dist/src/services/deployment/platform-runtime-policy.service.js +33 -0
- package/dist/src/services/deployment/platform-runtime-policy.service.js.map +1 -0
- package/dist/src/services/deployment/version-compare.utils.d.ts +38 -0
- package/dist/src/services/deployment/version-compare.utils.d.ts.map +1 -0
- package/dist/src/services/deployment/version-compare.utils.js +59 -0
- package/dist/src/services/deployment/version-compare.utils.js.map +1 -0
- package/dist/src/services/design-tokens/design-tokens-command.service.d.ts +5 -0
- package/dist/src/services/design-tokens/design-tokens-command.service.d.ts.map +1 -0
- package/dist/src/services/design-tokens/design-tokens-command.service.js +277 -0
- package/dist/src/services/design-tokens/design-tokens-command.service.js.map +1 -0
- package/dist/src/services/design-tokens/design-tokens-config.service.d.ts +5 -0
- package/dist/src/services/design-tokens/design-tokens-config.service.d.ts.map +1 -0
- package/dist/src/services/design-tokens/design-tokens-config.service.js +45 -0
- package/dist/src/services/design-tokens/design-tokens-config.service.js.map +1 -0
- package/dist/src/services/design-tokens/design-tokens-config.template.d.ts +2 -0
- package/dist/src/services/design-tokens/design-tokens-config.template.d.ts.map +1 -0
- package/dist/src/services/design-tokens/design-tokens-config.template.js +12 -0
- package/dist/src/services/design-tokens/design-tokens-config.template.js.map +1 -0
- package/dist/src/services/design-tokens/design-tokens-css-block.service.d.ts +7 -0
- package/dist/src/services/design-tokens/design-tokens-css-block.service.d.ts.map +1 -0
- package/dist/src/services/design-tokens/design-tokens-css-block.service.js +24 -0
- package/dist/src/services/design-tokens/design-tokens-css-block.service.js.map +1 -0
- package/dist/src/services/design-tokens/design-tokens-paths.service.d.ts +23 -0
- package/dist/src/services/design-tokens/design-tokens-paths.service.d.ts.map +1 -0
- package/dist/src/services/design-tokens/design-tokens-paths.service.js +49 -0
- package/dist/src/services/design-tokens/design-tokens-paths.service.js.map +1 -0
- package/dist/src/services/design-tokens/design-tokens.constants.d.ts +7 -0
- package/dist/src/services/design-tokens/design-tokens.constants.d.ts.map +1 -0
- package/dist/src/services/design-tokens/design-tokens.constants.js +16 -0
- package/dist/src/services/design-tokens/design-tokens.constants.js.map +1 -0
- package/dist/src/services/design-tokens/design-tokens.models.d.ts +7 -0
- package/dist/src/services/design-tokens/design-tokens.models.d.ts.map +1 -0
- package/dist/src/services/design-tokens/design-tokens.models.js +1 -0
- package/dist/src/services/design-tokens/design-tokens.models.js.map +1 -0
- package/dist/src/services/environment/__tests__/compose-converge-args.test.d.ts +2 -0
- package/dist/src/services/environment/__tests__/compose-converge-args.test.d.ts.map +1 -0
- package/dist/src/services/environment/__tests__/compose-converge-args.test.js +93 -0
- package/dist/src/services/environment/__tests__/compose-converge-args.test.js.map +1 -0
- package/dist/src/services/environment/__tests__/config-hydration-seam.test.d.ts +2 -0
- package/dist/src/services/environment/__tests__/config-hydration-seam.test.d.ts.map +1 -0
- package/dist/src/services/environment/__tests__/config-hydration-seam.test.js +105 -0
- package/dist/src/services/environment/__tests__/config-hydration-seam.test.js.map +1 -0
- package/dist/src/services/environment/__tests__/env-configuration-generator.service.test.d.ts +2 -0
- package/dist/src/services/environment/__tests__/env-configuration-generator.service.test.d.ts.map +1 -0
- package/dist/src/services/environment/__tests__/env-configuration-generator.service.test.js +555 -0
- package/dist/src/services/environment/__tests__/env-configuration-generator.service.test.js.map +1 -0
- package/dist/src/services/environment/__tests__/env-sync.service.test.d.ts +2 -0
- package/dist/src/services/environment/__tests__/env-sync.service.test.d.ts.map +1 -0
- package/dist/src/services/environment/__tests__/env-sync.service.test.js +122 -0
- package/dist/src/services/environment/__tests__/env-sync.service.test.js.map +1 -0
- package/dist/src/services/environment/__tests__/env-vars-builder.service.test.d.ts +2 -0
- package/dist/src/services/environment/__tests__/env-vars-builder.service.test.d.ts.map +1 -0
- package/dist/src/services/environment/__tests__/env-vars-builder.service.test.js +1547 -0
- package/dist/src/services/environment/__tests__/env-vars-builder.service.test.js.map +1 -0
- package/dist/src/services/environment/__tests__/environment-hydration.utils.test.d.ts +22 -0
- package/dist/src/services/environment/__tests__/environment-hydration.utils.test.d.ts.map +1 -0
- package/dist/src/services/environment/__tests__/environment-hydration.utils.test.js +100 -0
- package/dist/src/services/environment/__tests__/environment-hydration.utils.test.js.map +1 -0
- package/dist/src/services/environment/__tests__/environment-lifecycle.needs-local-mongodb.test.d.ts +2 -0
- package/dist/src/services/environment/__tests__/environment-lifecycle.needs-local-mongodb.test.d.ts.map +1 -0
- package/dist/src/services/environment/__tests__/environment-lifecycle.needs-local-mongodb.test.js +82 -0
- package/dist/src/services/environment/__tests__/environment-lifecycle.needs-local-mongodb.test.js.map +1 -0
- package/dist/src/services/environment/__tests__/environment-lifecycle.needs-local-postgresql.test.d.ts +2 -0
- package/dist/src/services/environment/__tests__/environment-lifecycle.needs-local-postgresql.test.d.ts.map +1 -0
- package/dist/src/services/environment/__tests__/environment-lifecycle.needs-local-postgresql.test.js +116 -0
- package/dist/src/services/environment/__tests__/environment-lifecycle.needs-local-postgresql.test.js.map +1 -0
- package/dist/src/services/environment/__tests__/environment-paths.service.test.d.ts +2 -0
- package/dist/src/services/environment/__tests__/environment-paths.service.test.d.ts.map +1 -0
- package/dist/src/services/environment/__tests__/environment-paths.service.test.js +18 -0
- package/dist/src/services/environment/__tests__/environment-paths.service.test.js.map +1 -0
- package/dist/src/services/environment/__tests__/environment-registry.service.test.d.ts +2 -0
- package/dist/src/services/environment/__tests__/environment-registry.service.test.d.ts.map +1 -0
- package/dist/src/services/environment/__tests__/environment-registry.service.test.js +175 -0
- package/dist/src/services/environment/__tests__/environment-registry.service.test.js.map +1 -0
- package/dist/src/services/environment/__tests__/environment-setup.non-interactive.test.d.ts +2 -0
- package/dist/src/services/environment/__tests__/environment-setup.non-interactive.test.d.ts.map +1 -0
- package/dist/src/services/environment/__tests__/environment-setup.non-interactive.test.js +164 -0
- package/dist/src/services/environment/__tests__/environment-setup.non-interactive.test.js.map +1 -0
- package/dist/src/services/environment/__tests__/platform-engine-change.utils.test.d.ts +2 -0
- package/dist/src/services/environment/__tests__/platform-engine-change.utils.test.d.ts.map +1 -0
- package/dist/src/services/environment/__tests__/platform-engine-change.utils.test.js +96 -0
- package/dist/src/services/environment/__tests__/platform-engine-change.utils.test.js.map +1 -0
- package/dist/src/services/environment/__tests__/platform-image-ref.test.d.ts +2 -0
- package/dist/src/services/environment/__tests__/platform-image-ref.test.d.ts.map +1 -0
- package/dist/src/services/environment/__tests__/platform-image-ref.test.js +30 -0
- package/dist/src/services/environment/__tests__/platform-image-ref.test.js.map +1 -0
- package/dist/src/services/environment/__tests__/platform-runtime-state.service.test.d.ts +2 -0
- package/dist/src/services/environment/__tests__/platform-runtime-state.service.test.d.ts.map +1 -0
- package/dist/src/services/environment/__tests__/platform-runtime-state.service.test.js +48 -0
- package/dist/src/services/environment/__tests__/platform-runtime-state.service.test.js.map +1 -0
- package/dist/src/services/environment/__tests__/provider-secrets-env.service.test.d.ts +2 -0
- package/dist/src/services/environment/__tests__/provider-secrets-env.service.test.d.ts.map +1 -0
- package/dist/src/services/environment/__tests__/provider-secrets-env.service.test.js +96 -0
- package/dist/src/services/environment/__tests__/provider-secrets-env.service.test.js.map +1 -0
- package/dist/src/services/environment/__tests__/runtime-bootstrap.authored-database-refresh.test.d.ts +2 -0
- package/dist/src/services/environment/__tests__/runtime-bootstrap.authored-database-refresh.test.d.ts.map +1 -0
- package/dist/src/services/environment/__tests__/runtime-bootstrap.authored-database-refresh.test.js +121 -0
- package/dist/src/services/environment/__tests__/runtime-bootstrap.authored-database-refresh.test.js.map +1 -0
- package/dist/src/services/environment/authored-infra-config.utils.d.ts +69 -0
- package/dist/src/services/environment/authored-infra-config.utils.d.ts.map +1 -0
- package/dist/src/services/environment/authored-infra-config.utils.js +174 -0
- package/dist/src/services/environment/authored-infra-config.utils.js.map +1 -0
- package/dist/src/services/environment/env-configuration-generator.service.d.ts +340 -0
- package/dist/src/services/environment/env-configuration-generator.service.d.ts.map +1 -0
- package/dist/src/services/environment/env-configuration-generator.service.js +560 -0
- package/dist/src/services/environment/env-configuration-generator.service.js.map +1 -0
- package/dist/src/services/environment/env-sync.service.d.ts +36 -0
- package/dist/src/services/environment/env-sync.service.d.ts.map +1 -0
- package/dist/src/services/environment/env-sync.service.js +166 -0
- package/dist/src/services/environment/env-sync.service.js.map +1 -0
- package/dist/src/services/environment/env-vars-builder.service.d.ts +301 -0
- package/dist/src/services/environment/env-vars-builder.service.d.ts.map +1 -0
- package/dist/src/services/environment/env-vars-builder.service.js +1493 -0
- package/dist/src/services/environment/env-vars-builder.service.js.map +1 -0
- package/dist/src/services/environment/environment-hydration.utils.d.ts +92 -0
- package/dist/src/services/environment/environment-hydration.utils.d.ts.map +1 -0
- package/dist/src/services/environment/environment-hydration.utils.js +178 -0
- package/dist/src/services/environment/environment-hydration.utils.js.map +1 -0
- package/dist/src/services/environment/environment-lifecycle.service.d.ts +103 -0
- package/dist/src/services/environment/environment-lifecycle.service.d.ts.map +1 -0
- package/dist/src/services/environment/environment-lifecycle.service.js +264 -0
- package/dist/src/services/environment/environment-lifecycle.service.js.map +1 -0
- package/dist/src/services/environment/environment-paths.service.d.ts +235 -0
- package/dist/src/services/environment/environment-paths.service.d.ts.map +1 -0
- package/dist/src/services/environment/environment-paths.service.js +472 -0
- package/dist/src/services/environment/environment-paths.service.js.map +1 -0
- package/dist/src/services/environment/environment-registry.service.d.ts +111 -0
- package/dist/src/services/environment/environment-registry.service.d.ts.map +1 -0
- package/dist/src/services/environment/environment-registry.service.js +391 -0
- package/dist/src/services/environment/environment-registry.service.js.map +1 -0
- package/dist/src/services/environment/environment-setup.service.d.ts +28 -0
- package/dist/src/services/environment/environment-setup.service.d.ts.map +1 -0
- package/dist/src/services/environment/environment-setup.service.js +304 -0
- package/dist/src/services/environment/environment-setup.service.js.map +1 -0
- package/dist/src/services/environment/environment.schemas.d.ts +211 -0
- package/dist/src/services/environment/environment.schemas.d.ts.map +1 -0
- package/dist/src/services/environment/environment.schemas.js +56 -0
- package/dist/src/services/environment/environment.schemas.js.map +1 -0
- package/dist/src/services/environment/environment.service.d.ts +74 -0
- package/dist/src/services/environment/environment.service.d.ts.map +1 -0
- package/dist/src/services/environment/environment.service.js +65 -0
- package/dist/src/services/environment/environment.service.js.map +1 -0
- package/dist/src/services/environment/platform-engine-change.utils.d.ts +87 -0
- package/dist/src/services/environment/platform-engine-change.utils.d.ts.map +1 -0
- package/dist/src/services/environment/platform-engine-change.utils.js +121 -0
- package/dist/src/services/environment/platform-engine-change.utils.js.map +1 -0
- package/dist/src/services/environment/platform-runtime-state.service.d.ts +14 -0
- package/dist/src/services/environment/platform-runtime-state.service.d.ts.map +1 -0
- package/dist/src/services/environment/platform-runtime-state.service.js +68 -0
- package/dist/src/services/environment/platform-runtime-state.service.js.map +1 -0
- package/dist/src/services/environment/platform-runtime.schemas.d.ts +74 -0
- package/dist/src/services/environment/platform-runtime.schemas.d.ts.map +1 -0
- package/dist/src/services/environment/platform-runtime.schemas.js +85 -0
- package/dist/src/services/environment/platform-runtime.schemas.js.map +1 -0
- package/dist/src/services/environment/runtime-bootstrap.service.d.ts +285 -0
- package/dist/src/services/environment/runtime-bootstrap.service.d.ts.map +1 -0
- package/dist/src/services/environment/runtime-bootstrap.service.js +436 -0
- package/dist/src/services/environment/runtime-bootstrap.service.js.map +1 -0
- package/dist/src/services/framework/__tests__/fixtures/framework-knowledge-package-only.fixture.d.ts +14 -0
- package/dist/src/services/framework/__tests__/fixtures/framework-knowledge-package-only.fixture.d.ts.map +1 -0
- package/dist/src/services/framework/__tests__/fixtures/framework-knowledge-package-only.fixture.js +65 -0
- package/dist/src/services/framework/__tests__/fixtures/framework-knowledge-package-only.fixture.js.map +1 -0
- package/dist/src/services/framework/__tests__/framework-development-skills-sync.installed-package.test.d.ts +2 -0
- package/dist/src/services/framework/__tests__/framework-development-skills-sync.installed-package.test.d.ts.map +1 -0
- package/dist/src/services/framework/__tests__/framework-development-skills-sync.installed-package.test.js +41 -0
- package/dist/src/services/framework/__tests__/framework-development-skills-sync.installed-package.test.js.map +1 -0
- package/dist/src/services/framework/__tests__/framework-development-skills-sync.package-only.test.d.ts +2 -0
- package/dist/src/services/framework/__tests__/framework-development-skills-sync.package-only.test.d.ts.map +1 -0
- package/dist/src/services/framework/__tests__/framework-development-skills-sync.package-only.test.js +38 -0
- package/dist/src/services/framework/__tests__/framework-development-skills-sync.package-only.test.js.map +1 -0
- package/dist/src/services/framework/__tests__/framework-development-skills-sync.service.test.d.ts +2 -0
- package/dist/src/services/framework/__tests__/framework-development-skills-sync.service.test.d.ts.map +1 -0
- package/dist/src/services/framework/__tests__/framework-development-skills-sync.service.test.js +181 -0
- package/dist/src/services/framework/__tests__/framework-development-skills-sync.service.test.js.map +1 -0
- package/dist/src/services/framework/__tests__/framework-docker-publish.service.test.d.ts +2 -0
- package/dist/src/services/framework/__tests__/framework-docker-publish.service.test.d.ts.map +1 -0
- package/dist/src/services/framework/__tests__/framework-docker-publish.service.test.js +328 -0
- package/dist/src/services/framework/__tests__/framework-docker-publish.service.test.js.map +1 -0
- package/dist/src/services/framework/__tests__/framework-knowledge-application-guidance.validator.test.d.ts +2 -0
- package/dist/src/services/framework/__tests__/framework-knowledge-application-guidance.validator.test.d.ts.map +1 -0
- package/dist/src/services/framework/__tests__/framework-knowledge-application-guidance.validator.test.js +84 -0
- package/dist/src/services/framework/__tests__/framework-knowledge-application-guidance.validator.test.js.map +1 -0
- package/dist/src/services/framework/__tests__/framework-knowledge-audit.live.contract.test.d.ts +2 -0
- package/dist/src/services/framework/__tests__/framework-knowledge-audit.live.contract.test.d.ts.map +1 -0
- package/dist/src/services/framework/__tests__/framework-knowledge-audit.live.contract.test.js +232 -0
- package/dist/src/services/framework/__tests__/framework-knowledge-audit.live.contract.test.js.map +1 -0
- package/dist/src/services/framework/__tests__/framework-knowledge-audit.service.test.d.ts +2 -0
- package/dist/src/services/framework/__tests__/framework-knowledge-audit.service.test.d.ts.map +1 -0
- package/dist/src/services/framework/__tests__/framework-knowledge-audit.service.test.js +1316 -0
- package/dist/src/services/framework/__tests__/framework-knowledge-audit.service.test.js.map +1 -0
- package/dist/src/services/framework/__tests__/framework-knowledge-generation.service.test.d.ts +2 -0
- package/dist/src/services/framework/__tests__/framework-knowledge-generation.service.test.d.ts.map +1 -0
- package/dist/src/services/framework/__tests__/framework-knowledge-generation.service.test.js +1224 -0
- package/dist/src/services/framework/__tests__/framework-knowledge-generation.service.test.js.map +1 -0
- package/dist/src/services/framework/__tests__/framework-npm-publish.service.test.d.ts +2 -0
- package/dist/src/services/framework/__tests__/framework-npm-publish.service.test.d.ts.map +1 -0
- package/dist/src/services/framework/__tests__/framework-npm-publish.service.test.js +504 -0
- package/dist/src/services/framework/__tests__/framework-npm-publish.service.test.js.map +1 -0
- package/dist/src/services/framework/__tests__/framework-publish-manifest.service.test.d.ts +2 -0
- package/dist/src/services/framework/__tests__/framework-publish-manifest.service.test.d.ts.map +1 -0
- package/dist/src/services/framework/__tests__/framework-publish-manifest.service.test.js +456 -0
- package/dist/src/services/framework/__tests__/framework-publish-manifest.service.test.js.map +1 -0
- package/dist/src/services/framework/__tests__/framework-release.service.test.d.ts +2 -0
- package/dist/src/services/framework/__tests__/framework-release.service.test.d.ts.map +1 -0
- package/dist/src/services/framework/__tests__/framework-release.service.test.js +75 -0
- package/dist/src/services/framework/__tests__/framework-release.service.test.js.map +1 -0
- package/dist/src/services/framework/__tests__/framework-secrets-writer.test.d.ts +2 -0
- package/dist/src/services/framework/__tests__/framework-secrets-writer.test.d.ts.map +1 -0
- package/dist/src/services/framework/__tests__/framework-secrets-writer.test.js +64 -0
- package/dist/src/services/framework/__tests__/framework-secrets-writer.test.js.map +1 -0
- package/dist/src/services/framework/__tests__/framework-version.service.test.d.ts +2 -0
- package/dist/src/services/framework/__tests__/framework-version.service.test.d.ts.map +1 -0
- package/dist/src/services/framework/__tests__/framework-version.service.test.js +105 -0
- package/dist/src/services/framework/__tests__/framework-version.service.test.js.map +1 -0
- package/dist/src/services/framework/__tests__/installed-framework-assets.service.test.d.ts +2 -0
- package/dist/src/services/framework/__tests__/installed-framework-assets.service.test.d.ts.map +1 -0
- package/dist/src/services/framework/__tests__/installed-framework-assets.service.test.js +60 -0
- package/dist/src/services/framework/__tests__/installed-framework-assets.service.test.js.map +1 -0
- package/dist/src/services/framework/framework-development-skills-sync.service.d.ts +67 -0
- package/dist/src/services/framework/framework-development-skills-sync.service.d.ts.map +1 -0
- package/dist/src/services/framework/framework-development-skills-sync.service.js +536 -0
- package/dist/src/services/framework/framework-development-skills-sync.service.js.map +1 -0
- package/dist/src/services/framework/framework-docker-publish.service.d.ts +82 -0
- package/dist/src/services/framework/framework-docker-publish.service.d.ts.map +1 -0
- package/dist/src/services/framework/framework-docker-publish.service.js +234 -0
- package/dist/src/services/framework/framework-docker-publish.service.js.map +1 -0
- package/dist/src/services/framework/framework-knowledge-application-guidance.validator.d.ts +42 -0
- package/dist/src/services/framework/framework-knowledge-application-guidance.validator.d.ts.map +1 -0
- package/dist/src/services/framework/framework-knowledge-application-guidance.validator.js +214 -0
- package/dist/src/services/framework/framework-knowledge-application-guidance.validator.js.map +1 -0
- package/dist/src/services/framework/framework-knowledge-audit.service.d.ts +547 -0
- package/dist/src/services/framework/framework-knowledge-audit.service.d.ts.map +1 -0
- package/dist/src/services/framework/framework-knowledge-audit.service.js +2138 -0
- package/dist/src/services/framework/framework-knowledge-audit.service.js.map +1 -0
- package/dist/src/services/framework/framework-knowledge-generation.service.d.ts +181 -0
- package/dist/src/services/framework/framework-knowledge-generation.service.d.ts.map +1 -0
- package/dist/src/services/framework/framework-knowledge-generation.service.js +1794 -0
- package/dist/src/services/framework/framework-knowledge-generation.service.js.map +1 -0
- package/dist/src/services/framework/framework-knowledge-scan.constants.d.ts +11 -0
- package/dist/src/services/framework/framework-knowledge-scan.constants.d.ts.map +1 -0
- package/dist/src/services/framework/framework-knowledge-scan.constants.js +74 -0
- package/dist/src/services/framework/framework-knowledge-scan.constants.js.map +1 -0
- package/dist/src/services/framework/framework-npm-publish.service.d.ts +82 -0
- package/dist/src/services/framework/framework-npm-publish.service.d.ts.map +1 -0
- package/dist/src/services/framework/framework-npm-publish.service.js +365 -0
- package/dist/src/services/framework/framework-npm-publish.service.js.map +1 -0
- package/dist/src/services/framework/framework-publish-manifest.service.d.ts +111 -0
- package/dist/src/services/framework/framework-publish-manifest.service.d.ts.map +1 -0
- package/dist/src/services/framework/framework-publish-manifest.service.js +520 -0
- package/dist/src/services/framework/framework-publish-manifest.service.js.map +1 -0
- package/dist/src/services/framework/framework-release.service.d.ts +40 -0
- package/dist/src/services/framework/framework-release.service.d.ts.map +1 -0
- package/dist/src/services/framework/framework-release.service.js +104 -0
- package/dist/src/services/framework/framework-release.service.js.map +1 -0
- package/dist/src/services/framework/framework-version.service.d.ts +39 -0
- package/dist/src/services/framework/framework-version.service.d.ts.map +1 -0
- package/dist/src/services/framework/framework-version.service.js +200 -0
- package/dist/src/services/framework/framework-version.service.js.map +1 -0
- package/dist/src/services/framework/installed-framework-assets.service.d.ts +61 -0
- package/dist/src/services/framework/installed-framework-assets.service.d.ts.map +1 -0
- package/dist/src/services/framework/installed-framework-assets.service.js +87 -0
- package/dist/src/services/framework/installed-framework-assets.service.js.map +1 -0
- package/dist/src/services/frontend/__tests__/cloudflare-cdn.service.test.d.ts +2 -0
- package/dist/src/services/frontend/__tests__/cloudflare-cdn.service.test.d.ts.map +1 -0
- package/dist/src/services/frontend/__tests__/cloudflare-cdn.service.test.js +69 -0
- package/dist/src/services/frontend/__tests__/cloudflare-cdn.service.test.js.map +1 -0
- package/dist/src/services/frontend/__tests__/frontend-dist-uploader.service.test.d.ts +2 -0
- package/dist/src/services/frontend/__tests__/frontend-dist-uploader.service.test.d.ts.map +1 -0
- package/dist/src/services/frontend/__tests__/frontend-dist-uploader.service.test.js +52 -0
- package/dist/src/services/frontend/__tests__/frontend-dist-uploader.service.test.js.map +1 -0
- package/dist/src/services/frontend/__tests__/frontend-publish.service.test.d.ts +2 -0
- package/dist/src/services/frontend/__tests__/frontend-publish.service.test.d.ts.map +1 -0
- package/dist/src/services/frontend/__tests__/frontend-publish.service.test.js +129 -0
- package/dist/src/services/frontend/__tests__/frontend-publish.service.test.js.map +1 -0
- package/dist/src/services/frontend/cloudflare-cdn.service.d.ts +49 -0
- package/dist/src/services/frontend/cloudflare-cdn.service.d.ts.map +1 -0
- package/dist/src/services/frontend/cloudflare-cdn.service.js +84 -0
- package/dist/src/services/frontend/cloudflare-cdn.service.js.map +1 -0
- package/dist/src/services/frontend/frontend-dist-uploader.service.d.ts +62 -0
- package/dist/src/services/frontend/frontend-dist-uploader.service.d.ts.map +1 -0
- package/dist/src/services/frontend/frontend-dist-uploader.service.js +149 -0
- package/dist/src/services/frontend/frontend-dist-uploader.service.js.map +1 -0
- package/dist/src/services/frontend/frontend-publish.service.d.ts +70 -0
- package/dist/src/services/frontend/frontend-publish.service.d.ts.map +1 -0
- package/dist/src/services/frontend/frontend-publish.service.js +211 -0
- package/dist/src/services/frontend/frontend-publish.service.js.map +1 -0
- package/dist/src/services/generation/domain-generator.service.d.ts +11 -0
- package/dist/src/services/generation/domain-generator.service.d.ts.map +1 -0
- package/dist/src/services/generation/domain-generator.service.js +35 -0
- package/dist/src/services/generation/domain-generator.service.js.map +1 -0
- package/dist/src/services/generation/generator.schemas.d.ts +27 -0
- package/dist/src/services/generation/generator.schemas.d.ts.map +1 -0
- package/dist/src/services/generation/generator.schemas.js +4 -0
- package/dist/src/services/generation/generator.schemas.js.map +1 -0
- package/dist/src/services/generation/operation-generator.service.d.ts +11 -0
- package/dist/src/services/generation/operation-generator.service.d.ts.map +1 -0
- package/dist/src/services/generation/operation-generator.service.js +42 -0
- package/dist/src/services/generation/operation-generator.service.js.map +1 -0
- package/dist/src/services/generation/resource-generator.service.d.ts +11 -0
- package/dist/src/services/generation/resource-generator.service.d.ts.map +1 -0
- package/dist/src/services/generation/resource-generator.service.js +41 -0
- package/dist/src/services/generation/resource-generator.service.js.map +1 -0
- package/dist/src/services/generation/template-registry.service.d.ts +13 -0
- package/dist/src/services/generation/template-registry.service.d.ts.map +1 -0
- package/dist/src/services/generation/template-registry.service.js +25 -0
- package/dist/src/services/generation/template-registry.service.js.map +1 -0
- package/dist/src/services/registry/artifact-extractor.utils.d.ts +49 -0
- package/dist/src/services/registry/artifact-extractor.utils.d.ts.map +1 -0
- package/dist/src/services/registry/artifact-extractor.utils.js +146 -0
- package/dist/src/services/registry/artifact-extractor.utils.js.map +1 -0
- package/dist/src/services/registry/boundary-fanout.utils.d.ts +95 -0
- package/dist/src/services/registry/boundary-fanout.utils.d.ts.map +1 -0
- package/dist/src/services/registry/boundary-fanout.utils.js +178 -0
- package/dist/src/services/registry/boundary-fanout.utils.js.map +1 -0
- package/dist/src/services/registry/index.d.ts +7 -0
- package/dist/src/services/registry/index.d.ts.map +1 -0
- package/dist/src/services/registry/index.js +7 -0
- package/dist/src/services/registry/index.js.map +1 -0
- package/dist/src/services/registry/registry-command.utils.d.ts +90 -0
- package/dist/src/services/registry/registry-command.utils.d.ts.map +1 -0
- package/dist/src/services/registry/registry-command.utils.js +164 -0
- package/dist/src/services/registry/registry-command.utils.js.map +1 -0
- package/dist/src/services/registry/registry-config-resolver.service.d.ts +50 -0
- package/dist/src/services/registry/registry-config-resolver.service.d.ts.map +1 -0
- package/dist/src/services/registry/registry-config-resolver.service.js +88 -0
- package/dist/src/services/registry/registry-config-resolver.service.js.map +1 -0
- package/dist/src/services/registry/registry-credentials.service.d.ts +64 -0
- package/dist/src/services/registry/registry-credentials.service.d.ts.map +1 -0
- package/dist/src/services/registry/registry-credentials.service.js +171 -0
- package/dist/src/services/registry/registry-credentials.service.js.map +1 -0
- package/dist/src/services/registry/saas-root-required.error.d.ts +22 -0
- package/dist/src/services/registry/saas-root-required.error.d.ts.map +1 -0
- package/dist/src/services/registry/saas-root-required.error.js +26 -0
- package/dist/src/services/registry/saas-root-required.error.js.map +1 -0
- package/dist/src/services/security/__tests__/csp-boundary.test.d.ts +2 -0
- package/dist/src/services/security/__tests__/csp-boundary.test.d.ts.map +1 -0
- package/dist/src/services/security/__tests__/csp-boundary.test.js +99 -0
- package/dist/src/services/security/__tests__/csp-boundary.test.js.map +1 -0
- package/dist/src/services/security/__tests__/csp-sync.service.test.d.ts +2 -0
- package/dist/src/services/security/__tests__/csp-sync.service.test.d.ts.map +1 -0
- package/dist/src/services/security/__tests__/csp-sync.service.test.js +158 -0
- package/dist/src/services/security/__tests__/csp-sync.service.test.js.map +1 -0
- package/dist/src/services/security/csp-sync.service.d.ts +65 -0
- package/dist/src/services/security/csp-sync.service.d.ts.map +1 -0
- package/dist/src/services/security/csp-sync.service.js +294 -0
- package/dist/src/services/security/csp-sync.service.js.map +1 -0
- package/dist/src/services/tools/utility-tools.service.d.ts +47 -0
- package/dist/src/services/tools/utility-tools.service.d.ts.map +1 -0
- package/dist/src/services/tools/utility-tools.service.js +332 -0
- package/dist/src/services/tools/utility-tools.service.js.map +1 -0
- package/dist/src/services/website/website-structured-data-audit.service.d.ts +15 -0
- package/dist/src/services/website/website-structured-data-audit.service.d.ts.map +1 -0
- package/dist/src/services/website/website-structured-data-audit.service.js +125 -0
- package/dist/src/services/website/website-structured-data-audit.service.js.map +1 -0
- package/dist/src/test-utils/resolved-homes.test.utils.d.ts +4 -0
- package/dist/src/test-utils/resolved-homes.test.utils.d.ts.map +1 -0
- package/dist/src/test-utils/resolved-homes.test.utils.js +18 -0
- package/dist/src/test-utils/resolved-homes.test.utils.js.map +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/framework-root-package.json +270 -0
- package/package.json +431 -0
- package/scripts/app-dependency-alignment/propagated-engine-overrides.json +773 -0
- package/templates/config/app-backend-env.example.hbs +47 -0
- package/templates/infra/ci/README.md +36 -0
- package/templates/infra/ci/deploy-docker-compose.yml.hbs +103 -0
- package/templates/infra/ci/deploy-k8s.yml.hbs +114 -0
- package/templates/infra/ci/wildo-config-validation.yml.hbs +40 -0
- package/templates/infra/docker-compose/.env.example +24 -0
- package/templates/infra/docker-compose/docker-compose.app.yml.hbs +174 -0
- package/templates/infra/docker-compose/docker-compose.wildo-platform.yml.hbs +1198 -0
- package/templates/infra/docker-images/application/.dockerignore +83 -0
- package/templates/infra/docker-images/backend/Dockerfile.backend-base +43 -0
- package/templates/infra/docker-images/backend/Dockerfile.backend-base-java +31 -0
- package/templates/infra/docker-images/platform/Dockerfile.platform-base +178 -0
- package/templates/infra/docker-images/platform/Dockerfile.platform-base.dockerignore +46 -0
- package/templates/infra/docker-images/platform/entrypoint.sh +191 -0
- package/templates/infra/docker-images/platform/verify-peers.mjs +67 -0
- package/templates/infra/k8s/applications/wildo-ai-application/backend.deployment.yaml.hbs +164 -0
- package/templates/infra/k8s/applications/wildo-ai-application/backend.immudb-audit-state.pvc.yaml.hbs +43 -0
- package/templates/infra/k8s/applications/wildo-ai-application/backend.service.yaml.hbs +31 -0
- package/templates/infra/k8s/applications/wildo-ai-application/frontend.deployment.yaml.hbs +117 -0
- package/templates/infra/k8s/applications/wildo-ai-application/frontend.service.yaml.hbs +27 -0
- package/templates/infra/k8s/applications/wildo-ai-application/ingress.yaml.hbs +59 -0
- package/templates/infra/k8s/applications/wildo-ai-application/minion.deployment.yaml.hbs +158 -0
- package/templates/infra/k8s/applications/wildo-ai-application/worker.deployment.yaml.hbs +145 -0
- package/templates/infra/k8s/applications/wildo-ai-application/worker.service.yaml.hbs +29 -0
- package/templates/infra/k8s/ingress/cert-manager/cluster-issuer.yaml.hbs +44 -0
- package/templates/infra/k8s/ingress/cert-manager/local/selfsigned-issuer.yaml +48 -0
- package/templates/infra/k8s/ingress/cert-manager/local/wildcard-certificate.yaml +24 -0
- package/templates/infra/k8s/ingress/cert-manager/wildcard-certificate.yaml.hbs +41 -0
- package/templates/infra/k8s/ingress/providers/scaleway-annotations.yaml.hbs +39 -0
- package/templates/infra/k8s/ingress/traefik/local/values.yaml +57 -0
- package/templates/infra/k8s/ingress/traefik/values.yaml.hbs +79 -0
- package/templates/infra/k8s/internal/clamav/deployment.yaml.hbs +96 -0
- package/templates/infra/k8s/internal/clamav/service.yaml.hbs +22 -0
- package/templates/infra/k8s/internal/gotenberg/deployment.yaml.hbs +46 -0
- package/templates/infra/k8s/internal/gotenberg/service.yaml.hbs +19 -0
- package/templates/infra/k8s/internal/immudb/deployment.yaml.hbs +153 -0
- package/templates/infra/k8s/internal/immudb/service.yaml.hbs +21 -0
- package/templates/infra/k8s/internal/minio/deployment.yaml.hbs +97 -0
- package/templates/infra/k8s/internal/minio/service.yaml.hbs +23 -0
- package/templates/infra/k8s/internal/mongodb/deployment.yaml.hbs +273 -0
- package/templates/infra/k8s/internal/mongodb/service.yaml.hbs +24 -0
- package/templates/infra/k8s/internal/mongot/configmap.yaml.hbs +53 -0
- package/templates/infra/k8s/internal/mongot/deployment.yaml.hbs +123 -0
- package/templates/infra/k8s/internal/mongot/service.yaml.hbs +33 -0
- package/templates/infra/k8s/internal/postgresql/configmap.yaml.hbs +46 -0
- package/templates/infra/k8s/internal/postgresql/deployment.yaml.hbs +131 -0
- package/templates/infra/k8s/internal/postgresql/service.yaml.hbs +19 -0
- package/templates/infra/k8s/internal/rabbitmq/deployment.yaml.hbs +105 -0
- package/templates/infra/k8s/internal/rabbitmq/service.yaml.hbs +23 -0
- package/templates/infra/k8s/internal/valkey/configmap.yaml.hbs +23 -0
- package/templates/infra/k8s/internal/valkey/deployment.yaml.hbs +129 -0
- package/templates/infra/k8s/internal/valkey/service.yaml.hbs +19 -0
- package/templates/infra/k8s/middleware.yaml.hbs +101 -0
- package/templates/infra/k8s/namespace.yaml.hbs +7 -0
- package/templates/infra/k8s/platform/platform-apps-manager/deployment.yaml.hbs +172 -0
- package/templates/infra/k8s/platform/platform-apps-manager/service.yaml +19 -0
- package/templates/infra/k8s/platform/platform-crontabs-batches-manager/deployment.yaml.hbs +161 -0
- package/templates/infra/k8s/platform/platform-crontabs-batches-manager/service.yaml +19 -0
- package/templates/infra/k8s/platform/platform-module-registry/deployment.yaml.hbs +161 -0
- package/templates/infra/k8s/platform/platform-module-registry/service.yaml +19 -0
- package/templates/infra/k8s/storage/local/persistent-volumes.yaml.hbs +221 -0
- package/templates/infra/k8s/storage/local/storage-class.yaml +74 -0
- package/templates/infra/k8s/tls-config.yaml.hbs +41 -0
- package/templates/infra/yara-rules/archives.yar +99 -0
- package/templates/infra/yara-rules/executables.yar +88 -0
- package/templates/infra/yara-rules/office_macros.yar +79 -0
- package/templates/infra/yara-rules/scripts.yar +103 -0
- package/templates/infra/yara-rules/webshells.yar +111 -0
- package/templates/infra/yara-service/Dockerfile +30 -0
- package/templates/infra/yara-service/api.py +236 -0
- package/templates/infra/yara-service/requirements.txt +3 -0
- package/templates/infra/yara-service/rules/archives.yar +99 -0
- package/templates/infra/yara-service/rules/executables.yar +88 -0
- package/templates/infra/yara-service/rules/office_macros.yar +79 -0
- package/templates/infra/yara-service/rules/scripts.yar +103 -0
- package/templates/infra/yara-service/rules/webshells.yar +111 -0
- package/templates/saas/engine-peer-closure.json +569 -0
- package/templates/saas/i18n/email/components/AlertBox.tsx +53 -0
- package/templates/saas/i18n/email/components/BodyText.tsx +25 -0
- package/templates/saas/i18n/email/components/Card.tsx +23 -0
- package/templates/saas/i18n/email/components/Divider.tsx +19 -0
- package/templates/saas/i18n/email/components/EmailFooter.tsx +47 -0
- package/templates/saas/i18n/email/components/EmailHeader.tsx +37 -0
- package/templates/saas/i18n/email/components/EmailLayout.tsx +52 -0
- package/templates/saas/i18n/email/components/HeadingText.tsx +27 -0
- package/templates/saas/i18n/email/components/InfoRow.tsx +43 -0
- package/templates/saas/i18n/email/components/OtpCodeDisplay.tsx +35 -0
- package/templates/saas/i18n/email/components/PrimaryButton.tsx +30 -0
- package/templates/saas/i18n/email/components/SecondaryButton.tsx +31 -0
- package/templates/saas/i18n/email/components/index.ts +35 -0
- package/templates/saas/i18n/email/email-template-definitions.ts +46 -0
- package/templates/saas/i18n/email/index.ts +2 -0
- package/templates/saas/i18n/email/resources/applicationApiKeys/create.application-administrator/labels.en.ts +14 -0
- package/templates/saas/i18n/email/resources/applicationApiKeys/create.application-administrator/template.tsx +49 -0
- package/templates/saas/i18n/email/resources/applicationApiKeys/deactivate.application-administrator/labels.en.ts +14 -0
- package/templates/saas/i18n/email/resources/applicationApiKeys/deactivate.application-administrator/template.tsx +49 -0
- package/templates/saas/i18n/email/resources/applicationApiKeys/reactivate.application-administrator/labels.en.ts +14 -0
- package/templates/saas/i18n/email/resources/applicationApiKeys/reactivate.application-administrator/template.tsx +49 -0
- package/templates/saas/i18n/email/resources/applicationApiKeys/regenerate.application-administrator/labels.en.ts +14 -0
- package/templates/saas/i18n/email/resources/applicationApiKeys/regenerate.application-administrator/template.tsx +49 -0
- package/templates/saas/i18n/email/resources/applicationApiKeys/rotate.application-administrator/labels.en.ts +14 -0
- package/templates/saas/i18n/email/resources/applicationApiKeys/rotate.application-administrator/template.tsx +49 -0
- package/templates/saas/i18n/email/resources/applicationOAuthClients/create.application-administrator/labels.en.ts +14 -0
- package/templates/saas/i18n/email/resources/applicationOAuthClients/create.application-administrator/template.tsx +53 -0
- package/templates/saas/i18n/email/resources/applicationOAuthClients/regenerate.application-administrator/labels.en.ts +14 -0
- package/templates/saas/i18n/email/resources/applicationOAuthClients/regenerate.application-administrator/template.tsx +53 -0
- package/templates/saas/i18n/email/resources/applicationOAuthClients/rotate.application-administrator/labels.en.ts +14 -0
- package/templates/saas/i18n/email/resources/applicationOAuthClients/rotate.application-administrator/template.tsx +53 -0
- package/templates/saas/i18n/email/resources/applicationVersions/create.organization-administrative/labels.en.ts +16 -0
- package/templates/saas/i18n/email/resources/applicationVersions/create.organization-administrative/template.tsx +60 -0
- package/templates/saas/i18n/email/resources/applicationVersions/delete.organization-administrative/labels.en.ts +13 -0
- package/templates/saas/i18n/email/resources/applicationVersions/delete.organization-administrative/template.tsx +48 -0
- package/templates/saas/i18n/email/resources/applicationVersions/deprecate.organization-administrative/labels.en.ts +14 -0
- package/templates/saas/i18n/email/resources/applicationVersions/deprecate.organization-administrative/template.tsx +51 -0
- package/templates/saas/i18n/email/resources/applicationVersions/promote.organization-administrative/labels.en.ts +14 -0
- package/templates/saas/i18n/email/resources/applicationVersions/promote.organization-administrative/template.tsx +51 -0
- package/templates/saas/i18n/email/resources/applicationVersions/rollback.organization-administrative/labels.en.ts +14 -0
- package/templates/saas/i18n/email/resources/applicationVersions/rollback.organization-administrative/template.tsx +51 -0
- package/templates/saas/i18n/email/resources/applications/create.admin.organization-administrative/labels.en.ts +14 -0
- package/templates/saas/i18n/email/resources/applications/create.admin.organization-administrative/template.tsx +51 -0
- package/templates/saas/i18n/email/resources/applications/create.organization-administrative/labels.en.ts +16 -0
- package/templates/saas/i18n/email/resources/applications/create.organization-administrative/template.tsx +61 -0
- package/templates/saas/i18n/email/resources/applications/delete.admin.organization-administrative/labels.en.ts +13 -0
- package/templates/saas/i18n/email/resources/applications/delete.admin.organization-administrative/template.tsx +48 -0
- package/templates/saas/i18n/email/resources/applications/delete.organization-administrative/labels.en.ts +13 -0
- package/templates/saas/i18n/email/resources/applications/delete.organization-administrative/template.tsx +48 -0
- package/templates/saas/i18n/email/resources/applications/transfer.admin.organization-administrative/labels.en.ts +14 -0
- package/templates/saas/i18n/email/resources/applications/transfer.admin.organization-administrative/template.tsx +51 -0
- package/templates/saas/i18n/email/resources/applications/transfer.organization-administrative/labels.en.ts +14 -0
- package/templates/saas/i18n/email/resources/applications/transfer.organization-administrative/template.tsx +51 -0
- package/templates/saas/i18n/email/resources/applications/update.admin.organization-administrative/labels.en.ts +14 -0
- package/templates/saas/i18n/email/resources/applications/update.admin.organization-administrative/template.tsx +51 -0
- package/templates/saas/i18n/email/resources/applications/update.organization-administrative/labels.en.ts +16 -0
- package/templates/saas/i18n/email/resources/applications/update.organization-administrative/template.tsx +61 -0
- package/templates/saas/i18n/email/resources/organizationApiKeys/create.admin.organization-administrative/labels.en.ts +14 -0
- package/templates/saas/i18n/email/resources/organizationApiKeys/create.admin.organization-administrative/template.tsx +50 -0
- package/templates/saas/i18n/email/resources/organizationApiKeys/create.organization-administrative/labels.en.ts +14 -0
- package/templates/saas/i18n/email/resources/organizationApiKeys/create.organization-administrative/template.tsx +50 -0
- package/templates/saas/i18n/email/resources/organizationApiKeys/deactivate.admin.organization-administrative/labels.en.ts +13 -0
- package/templates/saas/i18n/email/resources/organizationApiKeys/deactivate.admin.organization-administrative/template.tsx +50 -0
- package/templates/saas/i18n/email/resources/organizationApiKeys/deactivate.organization-administrative/labels.en.ts +13 -0
- package/templates/saas/i18n/email/resources/organizationApiKeys/deactivate.organization-administrative/template.tsx +50 -0
- package/templates/saas/i18n/email/resources/organizationApiKeys/delete.admin.organization-administrative/labels.en.ts +13 -0
- package/templates/saas/i18n/email/resources/organizationApiKeys/delete.admin.organization-administrative/template.tsx +50 -0
- package/templates/saas/i18n/email/resources/organizationApiKeys/delete.organization-administrative/labels.en.ts +14 -0
- package/templates/saas/i18n/email/resources/organizationApiKeys/delete.organization-administrative/template.tsx +50 -0
- package/templates/saas/i18n/email/resources/organizationApiKeys/reactivate.admin.organization-administrative/labels.en.ts +13 -0
- package/templates/saas/i18n/email/resources/organizationApiKeys/reactivate.admin.organization-administrative/template.tsx +50 -0
- package/templates/saas/i18n/email/resources/organizationApiKeys/reactivate.organization-administrative/labels.en.ts +13 -0
- package/templates/saas/i18n/email/resources/organizationApiKeys/reactivate.organization-administrative/template.tsx +50 -0
- package/templates/saas/i18n/email/resources/organizationApiKeys/regenerate.admin.organization-administrative/labels.en.ts +13 -0
- package/templates/saas/i18n/email/resources/organizationApiKeys/regenerate.admin.organization-administrative/template.tsx +50 -0
- package/templates/saas/i18n/email/resources/organizationApiKeys/regenerate.organization-administrative/labels.en.ts +14 -0
- package/templates/saas/i18n/email/resources/organizationApiKeys/regenerate.organization-administrative/template.tsx +50 -0
- package/templates/saas/i18n/email/resources/organizationApiKeys/rotate.admin.organization-administrative/labels.en.ts +13 -0
- package/templates/saas/i18n/email/resources/organizationApiKeys/rotate.admin.organization-administrative/template.tsx +50 -0
- package/templates/saas/i18n/email/resources/organizationApiKeys/rotate.organization-administrative/labels.en.ts +13 -0
- package/templates/saas/i18n/email/resources/organizationApiKeys/rotate.organization-administrative/template.tsx +50 -0
- package/templates/saas/i18n/email/resources/organizationFeatures/disable_feature.organization-users/labels.en.ts +22 -0
- package/templates/saas/i18n/email/resources/organizationFeatures/disable_feature.organization-users/template.tsx +80 -0
- package/templates/saas/i18n/email/resources/organizationFeatures/enable_feature.organization-users/labels.en.ts +22 -0
- package/templates/saas/i18n/email/resources/organizationFeatures/enable_feature.organization-users/template.tsx +80 -0
- package/templates/saas/i18n/email/resources/organizationFeatures/reset_features.organization-administrative/labels.en.ts +16 -0
- package/templates/saas/i18n/email/resources/organizationFeatures/reset_features.organization-administrative/template.tsx +48 -0
- package/templates/saas/i18n/email/resources/organizationFeatures/update.organization-users/labels.en.ts +22 -0
- package/templates/saas/i18n/email/resources/organizationFeatures/update.organization-users/template.tsx +80 -0
- package/templates/saas/i18n/email/resources/organizationMembers/create.user-self/labels.en.ts +30 -0
- package/templates/saas/i18n/email/resources/organizationMembers/create.user-self/template.tsx +84 -0
- package/templates/saas/i18n/email/resources/organizationMembers/delete.organization-users/labels.en.ts +20 -0
- package/templates/saas/i18n/email/resources/organizationMembers/delete.organization-users/template.tsx +77 -0
- package/templates/saas/i18n/email/resources/organizationMembers/grantOwnership.organization-users/labels.en.ts +22 -0
- package/templates/saas/i18n/email/resources/organizationMembers/grantOwnership.organization-users/template.tsx +73 -0
- package/templates/saas/i18n/email/resources/organizationMembers/reactivate.organization-users/labels.en.ts +20 -0
- package/templates/saas/i18n/email/resources/organizationMembers/reactivate.organization-users/template.tsx +77 -0
- package/templates/saas/i18n/email/resources/organizationMembers/reactivate.user-self/labels.en.ts +19 -0
- package/templates/saas/i18n/email/resources/organizationMembers/reactivate.user-self/template.tsx +53 -0
- package/templates/saas/i18n/email/resources/organizationMembers/resend.user-self/labels.en.ts +18 -0
- package/templates/saas/i18n/email/resources/organizationMembers/resend.user-self/template.tsx +63 -0
- package/templates/saas/i18n/email/resources/organizationMembers/revoke.user-self_admin/labels.en.ts +18 -0
- package/templates/saas/i18n/email/resources/organizationMembers/revoke.user-self_admin/template.tsx +49 -0
- package/templates/saas/i18n/email/resources/organizationMembers/revoke.user-self_invitee/labels.en.ts +17 -0
- package/templates/saas/i18n/email/resources/organizationMembers/revoke.user-self_invitee/template.tsx +49 -0
- package/templates/saas/i18n/email/resources/organizationMembers/suspend.organization-users/labels.en.ts +20 -0
- package/templates/saas/i18n/email/resources/organizationMembers/suspend.organization-users/template.tsx +77 -0
- package/templates/saas/i18n/email/resources/organizationMembers/suspend.user-self/labels.en.ts +17 -0
- package/templates/saas/i18n/email/resources/organizationMembers/suspend.user-self/template.tsx +43 -0
- package/templates/saas/i18n/email/resources/organizationMembers/update.organization-users/labels.en.ts +20 -0
- package/templates/saas/i18n/email/resources/organizationMembers/update.organization-users/template.tsx +77 -0
- package/templates/saas/i18n/email/resources/organizationOAuthClients/create.admin.organization-administrative/labels.en.ts +14 -0
- package/templates/saas/i18n/email/resources/organizationOAuthClients/create.admin.organization-administrative/template.tsx +53 -0
- package/templates/saas/i18n/email/resources/organizationOAuthClients/create.organization-administrative/labels.en.ts +14 -0
- package/templates/saas/i18n/email/resources/organizationOAuthClients/create.organization-administrative/template.tsx +53 -0
- package/templates/saas/i18n/email/resources/organizationOAuthClients/delete.admin.organization-administrative/labels.en.ts +14 -0
- package/templates/saas/i18n/email/resources/organizationOAuthClients/delete.admin.organization-administrative/template.tsx +53 -0
- package/templates/saas/i18n/email/resources/organizationOAuthClients/delete.organization-administrative/labels.en.ts +14 -0
- package/templates/saas/i18n/email/resources/organizationOAuthClients/delete.organization-administrative/template.tsx +53 -0
- package/templates/saas/i18n/email/resources/organizationOAuthClients/regenerate.admin.organization-administrative/labels.en.ts +14 -0
- package/templates/saas/i18n/email/resources/organizationOAuthClients/regenerate.admin.organization-administrative/template.tsx +53 -0
- package/templates/saas/i18n/email/resources/organizationOAuthClients/regenerate.organization-administrative/labels.en.ts +14 -0
- package/templates/saas/i18n/email/resources/organizationOAuthClients/regenerate.organization-administrative/template.tsx +53 -0
- package/templates/saas/i18n/email/resources/organizationOAuthClients/rotate.admin.organization-administrative/labels.en.ts +14 -0
- package/templates/saas/i18n/email/resources/organizationOAuthClients/rotate.admin.organization-administrative/template.tsx +53 -0
- package/templates/saas/i18n/email/resources/organizationOAuthClients/rotate.organization-administrative/labels.en.ts +14 -0
- package/templates/saas/i18n/email/resources/organizationOAuthClients/rotate.organization-administrative/template.tsx +53 -0
- package/templates/saas/i18n/email/resources/organizationUnits/archive.organization-administrative/labels.en.ts +16 -0
- package/templates/saas/i18n/email/resources/organizationUnits/archive.organization-administrative/template.tsx +61 -0
- package/templates/saas/i18n/email/resources/organizationUnits/create.organization-administrative/labels.en.ts +16 -0
- package/templates/saas/i18n/email/resources/organizationUnits/create.organization-administrative/template.tsx +61 -0
- package/templates/saas/i18n/email/resources/organizationUnits/delete.organization-administrative/labels.en.ts +15 -0
- package/templates/saas/i18n/email/resources/organizationUnits/delete.organization-administrative/template.tsx +58 -0
- package/templates/saas/i18n/email/resources/organizationUnits/move.organization-administrative/labels.en.ts +16 -0
- package/templates/saas/i18n/email/resources/organizationUnits/move.organization-administrative/template.tsx +61 -0
- package/templates/saas/i18n/email/resources/organizationUnits/restore.organization-administrative/labels.en.ts +14 -0
- package/templates/saas/i18n/email/resources/organizationUnits/restore.organization-administrative/template.tsx +51 -0
- package/templates/saas/i18n/email/resources/organizationUnits/update.organization-administrative/labels.en.ts +16 -0
- package/templates/saas/i18n/email/resources/organizationUnits/update.organization-administrative/template.tsx +61 -0
- package/templates/saas/i18n/email/resources/organizations/activate.organization-administrative/labels.en.ts +13 -0
- package/templates/saas/i18n/email/resources/organizations/activate.organization-administrative/template.tsx +49 -0
- package/templates/saas/i18n/email/resources/organizations/create.admin.user-self/labels.en.ts +15 -0
- package/templates/saas/i18n/email/resources/organizations/create.admin.user-self/template.tsx +54 -0
- package/templates/saas/i18n/email/resources/organizations/create.user-self/labels.en.ts +14 -0
- package/templates/saas/i18n/email/resources/organizations/create.user-self/template.tsx +52 -0
- package/templates/saas/i18n/email/resources/organizations/request_deletion.admin.organization-users/labels.en.ts +16 -0
- package/templates/saas/i18n/email/resources/organizations/request_deletion.admin.organization-users/template.tsx +48 -0
- package/templates/saas/i18n/email/resources/organizations/request_deletion.organization-users/labels.en.ts +18 -0
- package/templates/saas/i18n/email/resources/organizations/request_deletion.organization-users/template.tsx +48 -0
- package/templates/saas/i18n/email/resources/organizations/restore.organization-users/labels.en.ts +11 -0
- package/templates/saas/i18n/email/resources/organizations/restore.organization-users/template.tsx +39 -0
- package/templates/saas/i18n/email/resources/organizations/suspend.organization-users/labels.en.ts +11 -0
- package/templates/saas/i18n/email/resources/organizations/suspend.organization-users/template.tsx +37 -0
- package/templates/saas/i18n/email/resources/organizations/update.admin.organization-administrative/labels.en.ts +13 -0
- package/templates/saas/i18n/email/resources/organizations/update.admin.organization-administrative/template.tsx +50 -0
- package/templates/saas/i18n/email/resources/organizations/update.organization-administrative/labels.en.ts +13 -0
- package/templates/saas/i18n/email/resources/organizations/update.organization-administrative/template.tsx +50 -0
- package/templates/saas/i18n/email/resources/platformAccessGrants/requestAccess.organization-users/labels.en.ts +39 -0
- package/templates/saas/i18n/email/resources/platformAccessGrants/requestAccess.organization-users/template.tsx +102 -0
- package/templates/saas/i18n/email/resources/user_self/deactivate_account.user-self/labels.en.ts +13 -0
- package/templates/saas/i18n/email/resources/user_self/deactivate_account.user-self/template.tsx +46 -0
- package/templates/saas/i18n/email/resources/user_self/reactivate_account.user-self/labels.en.ts +12 -0
- package/templates/saas/i18n/email/resources/user_self/reactivate_account.user-self/template.tsx +46 -0
- package/templates/saas/i18n/email/resources/users/assign_roles.application-administrator/labels.en.ts +13 -0
- package/templates/saas/i18n/email/resources/users/assign_roles.application-administrator/template.tsx +50 -0
- package/templates/saas/i18n/email/resources/users/create.application-administrator/labels.en.ts +14 -0
- package/templates/saas/i18n/email/resources/users/create.application-administrator/template.tsx +56 -0
- package/templates/saas/i18n/email/resources/users/delete.application-administrator/labels.en.ts +13 -0
- package/templates/saas/i18n/email/resources/users/delete.application-administrator/template.tsx +50 -0
- package/templates/saas/i18n/email/resources/users/force_password_reset.application-administrator/labels.en.ts +13 -0
- package/templates/saas/i18n/email/resources/users/force_password_reset.application-administrator/template.tsx +50 -0
- package/templates/saas/i18n/email/resources/users/revoke_roles.application-administrator/labels.en.ts +13 -0
- package/templates/saas/i18n/email/resources/users/revoke_roles.application-administrator/template.tsx +50 -0
- package/templates/saas/i18n/email/resources/users/send_invitation.application-administrator/labels.en.ts +13 -0
- package/templates/saas/i18n/email/resources/users/send_invitation.application-administrator/template.tsx +50 -0
- package/templates/saas/i18n/email/resources/users/suspend_user.application-administrator/labels.en.ts +13 -0
- package/templates/saas/i18n/email/resources/users/suspend_user.application-administrator/template.tsx +50 -0
- package/templates/saas/i18n/email/resources/users/unsuspend_user.application-administrator/labels.en.ts +13 -0
- package/templates/saas/i18n/email/resources/users/unsuspend_user.application-administrator/template.tsx +50 -0
- package/templates/saas/i18n/email/resources/users/update.application-administrator/labels.en.ts +13 -0
- package/templates/saas/i18n/email/resources/users/update.application-administrator/template.tsx +50 -0
- package/templates/saas/i18n/email/system/email-otp/labels.en.ts +10 -0
- package/templates/saas/i18n/email/system/email-otp/template.tsx +44 -0
- package/templates/saas/i18n/email/system/email-verification/labels.en.ts +11 -0
- package/templates/saas/i18n/email/system/email-verification/template.tsx +39 -0
- package/templates/saas/i18n/email/system/magic-link/labels.en.ts +10 -0
- package/templates/saas/i18n/email/system/magic-link/template.tsx +44 -0
- package/templates/saas/i18n/email/system/new-device-login/labels.en.ts +18 -0
- package/templates/saas/i18n/email/system/new-device-login/template.tsx +62 -0
- package/templates/saas/i18n/email/system/organization-invitation/labels.en.ts +15 -0
- package/templates/saas/i18n/email/system/organization-invitation/template.tsx +65 -0
- package/templates/saas/i18n/email/system/organization-member-removed/labels.en.ts +14 -0
- package/templates/saas/i18n/email/system/organization-member-removed/template.tsx +54 -0
- package/templates/saas/i18n/email/system/password-reset/labels.en.ts +10 -0
- package/templates/saas/i18n/email/system/password-reset/template.tsx +42 -0
- package/templates/saas/i18n/email/system/payment-failed/labels.en.ts +16 -0
- package/templates/saas/i18n/email/system/payment-failed/template.tsx +59 -0
- package/templates/saas/i18n/email/system/security-alert/labels.en.ts +16 -0
- package/templates/saas/i18n/email/system/security-alert/template.tsx +71 -0
- package/templates/saas/i18n/email/system/subscription-cancelled/labels.en.ts +15 -0
- package/templates/saas/i18n/email/system/subscription-cancelled/template.tsx +56 -0
- package/templates/saas/i18n/email/system/subscription-confirmation/labels.en.ts +14 -0
- package/templates/saas/i18n/email/system/subscription-confirmation/template.tsx +59 -0
- package/templates/saas/i18n/email/system/welcome-email/labels.en.ts +15 -0
- package/templates/saas/i18n/email/system/welcome-email/template.tsx +42 -0
- package/templates/saas/scenarios/add-backend-provider/scenario.json +17 -0
- package/templates/saas/scenarios/add-custom-operation/files/backend-api/src/modules/__moduleDir__/resources/__resourceDir__/__resourceDir__.__operationIdentifier__.default.operation.ts.hbs +36 -0
- package/templates/saas/scenarios/add-custom-operation/scenario.json +61 -0
- package/templates/saas/scenarios/add-environment/files/infrastructure/__envName__/wildo.infra.remote.config.ts.hbs +73 -0
- package/templates/saas/scenarios/add-environment/scenario.json +53 -0
- package/templates/saas/scenarios/add-file-picker-provider/files/frontend/src/engine/providers/__providerRef__.frontend-app.module.ts.hbs +27 -0
- package/templates/saas/scenarios/add-file-picker-provider/scenario.json +27 -0
- package/templates/saas/scenarios/add-locale/files/website/src/i18n/__localePath__.json.hbs +18 -0
- package/templates/saas/scenarios/add-locale/files/website/src/pages/__localePath__/index.astro +52 -0
- package/templates/saas/scenarios/add-locale/scenario.json +19 -0
- package/templates/saas/scenarios/add-marketing-page/files/website/src/pages/__pageRef__.astro.hbs +52 -0
- package/templates/saas/scenarios/add-marketing-page/files/website/src/pages-impl/__pageRef__.bridge.tsx.hbs +22 -0
- package/templates/saas/scenarios/add-marketing-page/files/website/src/pages-impl/__pageRef__.page.tsx.hbs +49 -0
- package/templates/saas/scenarios/add-marketing-page/files/website/src/sections/__pageRef__.sections.tsx.hbs +59 -0
- package/templates/saas/scenarios/add-marketing-page/scenario.json +38 -0
- package/templates/saas/scenarios/add-minion/files/minions/__minionDir__/Dockerfile.hbs +20 -0
- package/templates/saas/scenarios/add-minion/files/minions/__minionDir__/package.json.hbs +42 -0
- package/templates/saas/scenarios/add-minion/files/minions/__minionDir__/src/application-initialization.ts.hbs +81 -0
- package/templates/saas/scenarios/add-minion/files/minions/__minionDir__/src/companion-exports.ts.hbs +15 -0
- package/templates/saas/scenarios/add-minion/files/minions/__minionDir__/src/index.ts.hbs +135 -0
- package/templates/saas/scenarios/add-minion/files/minions/__minionDir__/src/minion-init.ts.hbs +39 -0
- package/templates/saas/scenarios/add-minion/files/minions/__minionDir__/tsconfig.build.json +12 -0
- package/templates/saas/scenarios/add-minion/files/minions/__minionDir__/tsconfig.json +16 -0
- package/templates/saas/scenarios/add-minion/files/minions/__minionDir__/wildo.minion.config.ts.hbs +33 -0
- package/templates/saas/scenarios/add-minion/scenario.json +27 -0
- package/templates/saas/scenarios/add-module/files/backend-api/src/modules/__moduleId__/addons/container.ts.hbs +9 -0
- package/templates/saas/scenarios/add-module/files/backend-api/src/modules/__moduleId__/addons/container.types.ts.hbs +2 -0
- package/templates/saas/scenarios/add-module/files/backend-api/src/modules/__moduleId__/addons/controllers/index.ts.hbs +12 -0
- package/templates/saas/scenarios/add-module/files/backend-api/src/modules/__moduleId__/addons/services/index.ts.hbs +8 -0
- package/templates/saas/scenarios/add-module/files/backend-api/src/modules/__moduleId__/index.ts.hbs +17 -0
- package/templates/saas/scenarios/add-module/files/backend-api/src/modules/__moduleId__/resources/index.ts +9 -0
- package/templates/saas/scenarios/add-module/files/frontend/src/modules/__moduleId__/app-level-views/index.ts.hbs +11 -0
- package/templates/saas/scenarios/add-module/files/frontend/src/modules/__moduleId__/app-level-views/view-refs.frontend.ts.hbs +6 -0
- package/templates/saas/scenarios/add-module/files/frontend/src/modules/__moduleId__/app-shell.module.frontend.ts.hbs +33 -0
- package/templates/saas/scenarios/add-module/files/frontend/src/modules/__moduleId__/index.ts.hbs +14 -0
- package/templates/saas/scenarios/add-module/files/frontend/src/modules/__moduleId__/resources/index.ts.hbs +11 -0
- package/templates/saas/scenarios/add-module/files/shared-lib/src/modules/__moduleId__/index.ts.hbs +16 -0
- package/templates/saas/scenarios/add-module/files/shared-lib/src/modules/__moduleId__/resources/__moduleId__.relationships.ts.hbs +27 -0
- package/templates/saas/scenarios/add-module/files/shared-lib/src/modules/__moduleId__/resources/__moduleId__.resource-configs.ts.hbs +17 -0
- package/templates/saas/scenarios/add-module/files/shared-lib/src/modules/__moduleId__/resources/__moduleId__.resources-types.ts.hbs +10 -0
- package/templates/saas/scenarios/add-module/files/shared-lib/src/modules/__moduleId__/resources/index.ts.hbs +7 -0
- package/templates/saas/scenarios/add-module/files/specifications/src/modules/__moduleId__/chart-view-specifications.ts.hbs +12 -0
- package/templates/saas/scenarios/add-module/files/specifications/src/modules/__moduleId__/composite-views/index.ts.hbs +4 -0
- package/templates/saas/scenarios/add-module/files/specifications/src/modules/__moduleId__/execution-view-specifications.ts.hbs +11 -0
- package/templates/saas/scenarios/add-module/files/specifications/src/modules/__moduleId__/index.ts.hbs +31 -0
- package/templates/saas/scenarios/add-module/files/specifications/src/modules/__moduleId__/resources/index.ts.hbs +10 -0
- package/templates/saas/scenarios/add-module/scenario.json +69 -0
- package/templates/saas/scenarios/add-resource/files/shared-lib/src/modules/__moduleId__/resources/__resourceDir__/__resourceDir__.resources-config.ts.hbs +86 -0
- package/templates/saas/scenarios/add-resource/files/shared-lib/src/modules/__moduleId__/resources/__resourceDir__/__resourceDir__.schemas.ts.hbs +26 -0
- package/templates/saas/scenarios/add-resource/files/specifications/src/modules/__moduleId__/resources/__resourceDir__.resource.specification.ts.hbs +126 -0
- package/templates/saas/scenarios/add-resource/scenario.json +149 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/docusaurus.config.ts.hbs +288 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/nginx-config/README.md +195 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/nginx-config/basic.conf +20 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/nginx-config/directive-only/cross-domain-insecure.conf +12 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/nginx-config/location/cross-domain-fonts.conf.hbs +40 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/nginx-config/location/protect-system-files.conf +20 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/nginx-config/mime.types +108 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/nginx-config/nginx.conf +91 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/nginx-config/sites-enabled/default.hbs +112 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/package.json.hbs +56 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/scripts/verify-api-reference-conservation.ts +110 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/scripts/wait-for-publication.mjs +54 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/companion-exports.ts +16 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/components/VerifiedApiReference.tsx +72 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/csp.config.ts +89 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/css/custom.css +951 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/generated/csp.generated.json.hbs +13 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/generated-consumer-documentation.ts +41 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/pages/api/application-administration.tsx +5 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/pages/api/index.tsx +5 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/pages/index.tsx +12 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/pages/search.tsx.hbs +83 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/theme/Root.tsx +10 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/theme/SearchBar/index.tsx +38 -0
- 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/favicon.svg +11 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/static/img/logo.png +0 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/static/img/logo.svg +11 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/tsconfig.json +27 -0
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/wildo.tech-doc.config.ts.hbs +87 -0
- package/templates/saas/scenarios/add-technical-doc/scenario.json +27 -0
- package/templates/saas/scenarios/add-website/files/website/astro.config.ts.hbs +103 -0
- package/templates/saas/scenarios/add-website/files/website/nginx-config/default.conf.hbs +15 -0
- package/templates/saas/scenarios/add-website/files/website/package.json.hbs +32 -0
- package/templates/saas/scenarios/add-website/files/website/src/api-origin.ts.hbs +25 -0
- package/templates/saas/scenarios/add-website/files/website/src/app-origin.ts.hbs +21 -0
- package/templates/saas/scenarios/add-website/files/website/src/companion-exports.ts +7 -0
- package/templates/saas/scenarios/add-website/files/website/src/components/FooterComponent.tsx.hbs +63 -0
- package/templates/saas/scenarios/add-website/files/website/src/components/HeaderComponent.tsx +119 -0
- package/templates/saas/scenarios/add-website/files/website/src/components/index.ts +20 -0
- package/templates/saas/scenarios/add-website/files/website/src/csp.config.ts +40 -0
- package/templates/saas/scenarios/add-website/files/website/src/env.d.ts +1 -0
- package/templates/saas/scenarios/add-website/files/website/src/generated/csp.generated.json.hbs +11 -0
- package/templates/saas/scenarios/add-website/files/website/src/head-assets.ts +22 -0
- package/templates/saas/scenarios/add-website/files/website/src/i18n/en.json.hbs +18 -0
- package/templates/saas/scenarios/add-website/files/website/src/pages/index.astro +52 -0
- package/templates/saas/scenarios/add-website/files/website/src/pages/robots.txt.ts +30 -0
- package/templates/saas/scenarios/add-website/files/website/src/pages-impl/landing.bridge.tsx +34 -0
- package/templates/saas/scenarios/add-website/files/website/src/pages-impl/landing.page.tsx +50 -0
- package/templates/saas/scenarios/add-website/files/website/src/provider-contributions.ts +10 -0
- package/templates/saas/scenarios/add-website/files/website/src/sections/index.ts +59 -0
- package/templates/saas/scenarios/add-website/files/website/src/sections/landing.sections.tsx +76 -0
- package/templates/saas/scenarios/add-website/files/website/src/site.constants.ts.hbs +15 -0
- package/templates/saas/scenarios/add-website/files/website/src/styles/website.css +441 -0
- package/templates/saas/scenarios/add-website/files/website/src/website-root.config.ts.hbs +126 -0
- package/templates/saas/scenarios/add-website/files/website/src/website-site-context.ts +81 -0
- package/templates/saas/scenarios/add-website/files/website/tsconfig.json +12 -0
- package/templates/saas/scenarios/add-website/files/website/wildo.website.config.ts.hbs +32 -0
- package/templates/saas/scenarios/add-website/scenario.json +25 -0
- package/templates/saas/scenarios/add-website-section/scenario.json +43 -0
- package/templates/saas/scenarios/add-worker-node/files/workers/__workerDir__/Dockerfile.hbs +19 -0
- package/templates/saas/scenarios/add-worker-node/files/workers/__workerDir__/package.json.hbs +40 -0
- package/templates/saas/scenarios/add-worker-node/files/workers/__workerDir__/src/companion-exports.ts.hbs +17 -0
- package/templates/saas/scenarios/add-worker-node/files/workers/__workerDir__/src/index.ts.hbs +180 -0
- package/templates/saas/scenarios/add-worker-node/files/workers/__workerDir__/tsconfig.build.json +12 -0
- package/templates/saas/scenarios/add-worker-node/files/workers/__workerDir__/tsconfig.json +16 -0
- package/templates/saas/scenarios/add-worker-node/files/workers/__workerDir__/wildo.worker.config.ts.hbs +38 -0
- package/templates/saas/scenarios/add-worker-node/scenario.json +24 -0
- package/templates/saas/scenarios/add-worker-rust/files/workers/__workerDir__/Cargo.toml.hbs +21 -0
- package/templates/saas/scenarios/add-worker-rust/files/workers/__workerDir__/Dockerfile.hbs +21 -0
- package/templates/saas/scenarios/add-worker-rust/files/workers/__workerDir__/src/main.rs.hbs +408 -0
- package/templates/saas/scenarios/add-worker-rust/files/workers/__workerDir__/wildo.worker.config.ts.hbs +41 -0
- package/templates/saas/scenarios/add-worker-rust/scenario.json +22 -0
- package/templates/saas/skeleton/.wildo-saas/application-creation-workbench/package.json.hbs +10 -0
- package/templates/saas/skeleton/.wildo-saas/application-creation-workbench/scripts/dev-supervised.sh.hbs +161 -0
- package/templates/saas/skeleton/.wildo-saas/dev-framework-scripts/resolve-home-path.mts +62 -0
- package/templates/saas/skeleton/.wildo-saas/dev-framework-scripts/sync-engine.sh +552 -0
- package/templates/saas/skeleton/.wildo-saas/wildo-dev-companion/scripts/dev-supervised.sh +75 -0
- package/templates/saas/skeleton/CLAUDE.md.hbs +82 -0
- package/templates/saas/skeleton/backend-api/package.json.hbs +50 -0
- package/templates/saas/skeleton/backend-api/scripts/dev-supervised.sh.hbs +116 -0
- package/templates/saas/skeleton/backend-api/src/backend-owned-module.ts +8 -0
- package/templates/saas/skeleton/backend-api/src/bootstrap-config.ts +51 -0
- package/templates/saas/skeleton/backend-api/src/companion-exports.ts +37 -0
- package/templates/saas/skeleton/backend-api/src/engine/email/email-template-definitions.ts +46 -0
- package/templates/saas/skeleton/backend-api/src/engine/email/index.ts +2 -0
- package/templates/saas/skeleton/backend-api/src/engine/i18n/index.ts +30 -0
- package/templates/saas/skeleton/backend-api/src/engine/index.ts +16 -0
- package/templates/saas/skeleton/backend-api/src/engine/resources/index.ts +8 -0
- package/templates/saas/skeleton/backend-api/src/index.ts +99 -0
- package/templates/saas/skeleton/backend-api/src/modules/index.ts +21 -0
- package/templates/saas/skeleton/backend-api/src/modules-registry.backend.ts.hbs +71 -0
- package/templates/saas/skeleton/backend-api/src/provider-contributions.ts +44 -0
- package/templates/saas/skeleton/backend-api/src/saas-config.backend.ts.hbs +165 -0
- package/templates/saas/skeleton/backend-api/tsconfig.build.json +14 -0
- package/templates/saas/skeleton/backend-api/tsconfig.json.hbs +24 -0
- package/templates/saas/skeleton/backend-api/tsconfig.runtime.json.hbs +12 -0
- package/templates/saas/skeleton/frontend/Dockerfile +25 -0
- package/templates/saas/skeleton/frontend/index.html.hbs +57 -0
- package/templates/saas/skeleton/frontend/nginx-config/default.conf.hbs +15 -0
- package/templates/saas/skeleton/frontend/package.json.hbs +83 -0
- package/templates/saas/skeleton/frontend/scripts/dev-supervised.sh +129 -0
- package/templates/saas/skeleton/frontend/src/__tests__/setup.ts.hbs +156 -0
- package/templates/saas/skeleton/frontend/src/__tests__/vitest-jsdom-globals-setup.mjs +120 -0
- package/templates/saas/skeleton/frontend/src/browser-bootstrap/__tests__/first-paint-ownership.test.ts +41 -0
- package/templates/saas/skeleton/frontend/src/browser-bootstrap/app-shell-bootstrap.ts +46 -0
- package/templates/saas/skeleton/frontend/src/companion-exports.ts.hbs +60 -0
- package/templates/saas/skeleton/frontend/src/config/app-shell.config.ts +184 -0
- package/templates/saas/skeleton/frontend/src/config/design-system.config.ts +169 -0
- package/templates/saas/skeleton/frontend/src/config/global-views.config.ts +91 -0
- package/templates/saas/skeleton/frontend/src/config/index.ts +5 -0
- package/templates/saas/skeleton/frontend/src/config/navigation.config.ts +100 -0
- package/templates/saas/skeleton/frontend/src/config/settings-hub.config.ts +49 -0
- package/templates/saas/skeleton/frontend/src/csp.config.ts +37 -0
- package/templates/saas/skeleton/frontend/src/engine/app-level-views/app-level-views.definitions.module.frontend.ts +133 -0
- package/templates/saas/skeleton/frontend/src/engine/app-shell.module.frontend.ts +17 -0
- package/templates/saas/skeleton/frontend/src/engine/component-registrations.frontend.ts +42 -0
- package/templates/saas/skeleton/frontend/src/engine/index.ts +15 -0
- package/templates/saas/skeleton/frontend/src/engine/providers/index.ts +10 -0
- package/templates/saas/skeleton/frontend/src/engine/resources/resource-ui-behavior.frontend.ts +14 -0
- package/templates/saas/skeleton/frontend/src/generated/csp.generated.json.hbs +13 -0
- package/templates/saas/skeleton/frontend/src/index.css.hbs +714 -0
- package/templates/saas/skeleton/frontend/src/main.tsx +13 -0
- package/templates/saas/skeleton/frontend/src/modules/index.ts +17 -0
- package/templates/saas/skeleton/frontend/src/modules-registry.frontend.ts.hbs +76 -0
- package/templates/saas/skeleton/frontend/src/provider-contributions.ts.hbs +17 -0
- package/templates/saas/skeleton/frontend/src/vite-env.d.ts +1 -0
- package/templates/saas/skeleton/frontend/tsconfig.json.hbs +49 -0
- package/templates/saas/skeleton/frontend/tsconfig.library.json +39 -0
- package/templates/saas/skeleton/frontend/tsconfig.node.json +11 -0
- package/templates/saas/skeleton/frontend/vite.config.ts.hbs +439 -0
- package/templates/saas/skeleton/gitignore +75 -0
- package/templates/saas/skeleton/infrastructure/local/wildo.infra.local.config.ts.hbs +49 -0
- package/templates/saas/skeleton/shared-lib/package.json.hbs +48 -0
- package/templates/saas/skeleton/shared-lib/src/companion-exports.ts +19 -0
- package/templates/saas/skeleton/shared-lib/src/engine/features.ts +82 -0
- package/templates/saas/skeleton/shared-lib/src/engine/index.ts +27 -0
- package/templates/saas/skeleton/shared-lib/src/engine/milestones.ts +16 -0
- package/templates/saas/skeleton/shared-lib/src/engine/product.ts +18 -0
- package/templates/saas/skeleton/shared-lib/src/engine/roles.ts +8 -0
- package/templates/saas/skeleton/shared-lib/src/index.ts +11 -0
- package/templates/saas/skeleton/shared-lib/src/modules-registry.shared.ts +29 -0
- package/templates/saas/skeleton/shared-lib/tsconfig.build.json.hbs +24 -0
- package/templates/saas/skeleton/shared-lib/tsconfig.json.hbs +19 -0
- package/templates/saas/skeleton/specifications/package.json.hbs +43 -0
- package/templates/saas/skeleton/specifications/src/companion-exports.ts +37 -0
- package/templates/saas/skeleton/specifications/src/engine/engine.all-modules.specifications.ts +7 -0
- package/templates/saas/skeleton/specifications/src/index.ts +12 -0
- package/templates/saas/skeleton/specifications/src/module-registry.specification.ts.hbs +28 -0
- package/templates/saas/skeleton/specifications/tsconfig.build.json +11 -0
- package/templates/saas/skeleton/specifications/tsconfig.json +12 -0
- package/templates/saas/skeleton/tsconfig-saas.json +20 -0
- package/templates/saas/skeleton/tsconfig.common.json +60 -0
- package/templates/saas/skeleton/turbo.json +17 -0
- package/templates/saas/skeleton/wildo.saas.config.ts.init.hbs +135 -0
- package/wildo-framework.info.json +5 -0
|
@@ -0,0 +1,1547 @@
|
|
|
1
|
+
import { describe, expect, it } from 'vitest';
|
|
2
|
+
import { declaredProviderScope } from '../../../services/credentials/provider-env-vars.utils.js';
|
|
3
|
+
import { ApplicationBackendBootstrapEnvKeys, ApplicationBackendDataEnvKeys, BackingServiceKind, BackingServiceSource, BOOTSTRAP_PLATFORM_SERVICES, DatabaseEngine, PLATFORM_POSTGRES_DATABASE, PLATFORM_POSTGRES_MAINTENANCE_DATABASE, PlatformInfrastructureEnvKeys, PlatformProcessEnvKeys, PlatformSecurityEnvKeys, PlatformWildoServices, WildoDeploymentRuntime, WildoLocationType, } from '@wildo-ai/platform-config-lib';
|
|
4
|
+
import { ApplicationBackendRuntimeEnvKeys, ApplicationWorkerBootstrapEnvKeys, ApplicationWorkerHttpSurfaceEnvKeys, ApplicationWorkerRuntimeEnvKeys, } from '@wildo-ai/platform-core-shared';
|
|
5
|
+
import { EngineCapability, RuntimeEnvironment } from '@wildo-ai/saas-models';
|
|
6
|
+
import { PlatformEnvVarsBuilder, assertNoStorageSecretInGeneratedEnv, assertNoPlatformCredentialInGeneratedEnv } from '../../../services/environment/env-vars-builder.service.js';
|
|
7
|
+
import { IMMUDB_CREDENTIAL_ENV_KEYS } from '../../../services/data-services/data-services.schemas.js';
|
|
8
|
+
import { PlatformEnvOperatingSystem, SetupStatus, } from '../../../services/environment/environment.schemas.js';
|
|
9
|
+
const credentials = {
|
|
10
|
+
mongodb: {
|
|
11
|
+
rootUser: 'mongo',
|
|
12
|
+
rootPassword: 'mongo-password',
|
|
13
|
+
},
|
|
14
|
+
valkey: {
|
|
15
|
+
adminUser: 'default',
|
|
16
|
+
adminPassword: 'valkey-password',
|
|
17
|
+
},
|
|
18
|
+
postgresql: {
|
|
19
|
+
adminUser: 'postgres',
|
|
20
|
+
adminPassword: 'postgres-password',
|
|
21
|
+
},
|
|
22
|
+
rabbitmq: {
|
|
23
|
+
adminUsername: 'rabbit',
|
|
24
|
+
adminPassword: 'rabbit-password',
|
|
25
|
+
erlangCookie: 'rabbit-cookie',
|
|
26
|
+
},
|
|
27
|
+
storage: {
|
|
28
|
+
accessKey: 'minio',
|
|
29
|
+
secretKey: 'minio-secret',
|
|
30
|
+
},
|
|
31
|
+
platform: {
|
|
32
|
+
// NOT a substring of any legitimately-emitted app-tier value (the leak guard matches by
|
|
33
|
+
// CONTAINMENT since the 5.3 review — a URL-embedded credential is as leaked as a bare one —
|
|
34
|
+
// and the previous 'primary-secret' was accidentally contained in the app bootstrap fixture's
|
|
35
|
+
// own 'platform-primary-secret', which production's independently-minted secrets cannot do).
|
|
36
|
+
primarySecret: 'platform-tier-root-primary-secret-9f3a',
|
|
37
|
+
adminSecret: 'admin-secret',
|
|
38
|
+
appsManager: {
|
|
39
|
+
privateKey: 'private-key',
|
|
40
|
+
publicKey: 'public-key',
|
|
41
|
+
},
|
|
42
|
+
// Crontabs P2P signing keypair — required since the scheduled-cron JWT fix
|
|
43
|
+
// (`buildAppsManagerFullEnv` fail-louds when absent). Mirrors `appsManager`.
|
|
44
|
+
crontabsBatchesManager: {
|
|
45
|
+
privateKey: 'crontabs-private-key',
|
|
46
|
+
publicKey: 'crontabs-public-key',
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
admin: {
|
|
50
|
+
email: 'admin@example.com',
|
|
51
|
+
password: 'admin-password',
|
|
52
|
+
firstName: 'Ada',
|
|
53
|
+
lastName: 'Lovelace',
|
|
54
|
+
},
|
|
55
|
+
};
|
|
56
|
+
const appBootstrapCredentials = {
|
|
57
|
+
APPLICATION_ID: 'app-123',
|
|
58
|
+
PLATFORM_APPLICATION_PRIMARY_SECRET: 'platform-primary-secret',
|
|
59
|
+
PLATFORM_APPS_MANAGER_URL: 'https://apps-manager.example.com',
|
|
60
|
+
APPLICATION_ENV: RuntimeEnvironment.STAGING,
|
|
61
|
+
};
|
|
62
|
+
const addresses = {
|
|
63
|
+
infra: {
|
|
64
|
+
mongodb: { host: 'mongo', port: 27017, url: 'http://mongo:27017' },
|
|
65
|
+
valkey: { host: 'valkey', port: 6379, url: 'http://valkey:6379' },
|
|
66
|
+
rabbitmq: { host: 'rabbitmq', port: 5672, url: 'http://rabbitmq:5672' },
|
|
67
|
+
rabbitmqManagement: { host: 'rabbitmq', port: 15672, url: 'http://rabbitmq:15672' },
|
|
68
|
+
minio: { host: 'minio', port: 9000, url: 'http://minio:9000' },
|
|
69
|
+
gotenberg: { host: 'gotenberg', port: 3000, url: 'http://gotenberg:3000' },
|
|
70
|
+
postgresql: { host: 'postgresql', port: 5432, url: 'http://postgresql:5432' },
|
|
71
|
+
},
|
|
72
|
+
platform: {
|
|
73
|
+
appsManager: { host: 'apps-manager', port: 3000, url: 'https://apps-manager.example.com' },
|
|
74
|
+
crontabsBatchesManager: { host: 'crontabs', port: 3002, url: 'https://crontabs.example.com' },
|
|
75
|
+
moduleRegistry: { host: 'module-registry', port: 3003, url: 'https://module-registry.example.com' },
|
|
76
|
+
},
|
|
77
|
+
};
|
|
78
|
+
function createEnvironment(overrides = {}) {
|
|
79
|
+
return {
|
|
80
|
+
name: 'preview-eu',
|
|
81
|
+
locationType: WildoLocationType.REMOTE,
|
|
82
|
+
runtime: WildoDeploymentRuntime.KUBERNETES,
|
|
83
|
+
runtimeEnvironment: RuntimeEnvironment.STAGING,
|
|
84
|
+
os: PlatformEnvOperatingSystem.LINUX,
|
|
85
|
+
secretsPath: '',
|
|
86
|
+
configPath: '',
|
|
87
|
+
infraPath: '',
|
|
88
|
+
database: {
|
|
89
|
+
engine: DatabaseEngine.MONGODB,
|
|
90
|
+
source: BackingServiceSource.SELF,
|
|
91
|
+
},
|
|
92
|
+
publicDomain: 'preview-eu.wildo.ai',
|
|
93
|
+
kubernetes: {
|
|
94
|
+
namespace: 'preview-eu',
|
|
95
|
+
},
|
|
96
|
+
remoteProvider: {
|
|
97
|
+
provider: 'scaleway',
|
|
98
|
+
registryEndpoint: 'rg.fr-par.scw.cloud/demo',
|
|
99
|
+
},
|
|
100
|
+
setupStatus: SetupStatus.NOT_STARTED,
|
|
101
|
+
createdAt: new Date().toISOString(),
|
|
102
|
+
updatedAt: new Date().toISOString(),
|
|
103
|
+
...overrides,
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
function createConfig(overrides = {}) {
|
|
107
|
+
return {
|
|
108
|
+
type: WildoLocationType.REMOTE,
|
|
109
|
+
runtime: WildoDeploymentRuntime.KUBERNETES,
|
|
110
|
+
runtimeEnvironment: RuntimeEnvironment.STAGING,
|
|
111
|
+
database: {
|
|
112
|
+
engine: DatabaseEngine.MONGODB,
|
|
113
|
+
source: BackingServiceSource.SELF,
|
|
114
|
+
},
|
|
115
|
+
infrastructure: {
|
|
116
|
+
storage: {
|
|
117
|
+
provider: 'minio',
|
|
118
|
+
useSsl: false,
|
|
119
|
+
bucket: 'bucket',
|
|
120
|
+
},
|
|
121
|
+
postgresql: {
|
|
122
|
+
database: 'postgres',
|
|
123
|
+
sslMode: 'disable',
|
|
124
|
+
},
|
|
125
|
+
},
|
|
126
|
+
publicDomain: 'preview-eu.wildo.ai',
|
|
127
|
+
kubernetes: {
|
|
128
|
+
namespace: 'preview-eu',
|
|
129
|
+
},
|
|
130
|
+
remoteProvider: {
|
|
131
|
+
provider: 'scaleway',
|
|
132
|
+
registryEndpoint: 'rg.fr-par.scw.cloud/demo',
|
|
133
|
+
},
|
|
134
|
+
...overrides,
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
describe('PlatformEnvVarsBuilder', () => {
|
|
138
|
+
it('emits explicit runtime semantics and ingress settings for remote apps-manager env', () => {
|
|
139
|
+
const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(credentials, addresses, createConfig(), createEnvironment());
|
|
140
|
+
expect(env.APPLICATION_ENV).toBe(RuntimeEnvironment.STAGING);
|
|
141
|
+
expect(env.K8S_NAMESPACE).toBe('preview-eu');
|
|
142
|
+
});
|
|
143
|
+
it('fails when env generation is missing explicit runtime semantics', () => {
|
|
144
|
+
expect(() => PlatformEnvVarsBuilder.buildAppsManagerFullEnv(credentials, addresses, createConfig({ runtimeEnvironment: undefined }), createEnvironment({ runtimeEnvironment: undefined }))).toThrow(/missing explicit runtime semantics/);
|
|
145
|
+
});
|
|
146
|
+
it('does not emit PostgreSQL bootstrap variables when the selected engine is MongoDB', () => {
|
|
147
|
+
const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(credentials, addresses, createConfig({
|
|
148
|
+
database: {
|
|
149
|
+
engine: DatabaseEngine.MONGODB,
|
|
150
|
+
source: BackingServiceSource.SELF,
|
|
151
|
+
},
|
|
152
|
+
}), createEnvironment({
|
|
153
|
+
database: {
|
|
154
|
+
engine: DatabaseEngine.MONGODB,
|
|
155
|
+
source: BackingServiceSource.SELF,
|
|
156
|
+
},
|
|
157
|
+
}));
|
|
158
|
+
expect(env.PG_HOST).toBeUndefined();
|
|
159
|
+
expect(env.PG_ADMIN_USER).toBeUndefined();
|
|
160
|
+
expect(env.PG_SSL_MODE).toBeUndefined();
|
|
161
|
+
});
|
|
162
|
+
it('emits OTEL_* telemetry env for the apps-manager when observability is enabled (Slice 2 Phase 5b platform-host spread)', () => {
|
|
163
|
+
const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(credentials, addresses, createConfig({ observability: { enabled: true, endpoint: 'http://localhost:4318' } }), createEnvironment(), { serviceVersion: '9.9.9' });
|
|
164
|
+
expect(env.OTEL_ENABLED).toBe('true');
|
|
165
|
+
expect(env.OTEL_EXPORTER_OTLP_ENDPOINT).toBe('http://localhost:4318');
|
|
166
|
+
// Platform service identity (PlatformApplicationType.PLATFORM_APPS_MANAGER).
|
|
167
|
+
expect(env.OTEL_SERVICE_NAME).toBeTruthy();
|
|
168
|
+
expect(env.OTEL_RESOURCE_ATTRIBUTES).toContain('deployment.environment=');
|
|
169
|
+
// service.version threaded from the host's package.json version (audit A-10 platform-host parity).
|
|
170
|
+
expect(env.OTEL_RESOURCE_ATTRIBUTES).toContain('service.version=9.9.9');
|
|
171
|
+
// Localhost dev endpoint → no auth header (no telemetryProvider threaded).
|
|
172
|
+
expect(env.OTEL_EXPORTER_OTLP_HEADERS).toBeUndefined();
|
|
173
|
+
});
|
|
174
|
+
it('omits OTEL_* for the apps-manager when observability is disabled', () => {
|
|
175
|
+
const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(credentials, addresses, createConfig({ observability: { enabled: false } }), createEnvironment());
|
|
176
|
+
expect(env.OTEL_ENABLED).toBeUndefined();
|
|
177
|
+
expect(env.OTEL_EXPORTER_OTLP_ENDPOINT).toBeUndefined();
|
|
178
|
+
});
|
|
179
|
+
it('emits WILDO_LLM_OBS_* from observability.llmObservability INDEPENDENTLY of the OTLP enabled gate', () => {
|
|
180
|
+
// OTLP telemetry OFF + LLM-obs content capture ON: the two signals are
|
|
181
|
+
// separate — LLM-obs activation is provider-selection-driven, not
|
|
182
|
+
// OTEL_ENABLED-driven, so the projection must not sit behind the gate.
|
|
183
|
+
const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(credentials, addresses, createConfig({
|
|
184
|
+
observability: {
|
|
185
|
+
enabled: false,
|
|
186
|
+
llmObservability: {
|
|
187
|
+
captureContent: true,
|
|
188
|
+
sampleRate: 0.5,
|
|
189
|
+
providerEnv: { POSTHOG_HOST: 'https://eu.i.posthog.com', POSTHOG_PROJECT_ID: '42' },
|
|
190
|
+
},
|
|
191
|
+
},
|
|
192
|
+
}), createEnvironment());
|
|
193
|
+
expect(env.OTEL_ENABLED).toBeUndefined();
|
|
194
|
+
expect(env.WILDO_LLM_OBS_CAPTURE_CONTENT).toBe('true');
|
|
195
|
+
expect(env.WILDO_LLM_OBS_SAMPLE_RATE).toBe('0.5');
|
|
196
|
+
// Non-secret provider connection env authored in checked-in config.
|
|
197
|
+
expect(env.POSTHOG_HOST).toBe('https://eu.i.posthog.com');
|
|
198
|
+
expect(env.POSTHOG_PROJECT_ID).toBe('42');
|
|
199
|
+
});
|
|
200
|
+
it('omits WILDO_LLM_OBS_* when llmObservability is absent or captureContent is false', () => {
|
|
201
|
+
const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(credentials, addresses, createConfig({
|
|
202
|
+
observability: { enabled: true, llmObservability: { captureContent: false } },
|
|
203
|
+
}), createEnvironment());
|
|
204
|
+
expect(env.WILDO_LLM_OBS_CAPTURE_CONTENT).toBeUndefined();
|
|
205
|
+
expect(env.WILDO_LLM_OBS_SAMPLE_RATE).toBeUndefined();
|
|
206
|
+
});
|
|
207
|
+
it('emits service.version for a bootstrap platform service (module-registry) when observability is enabled', () => {
|
|
208
|
+
const env = PlatformEnvVarsBuilder.buildBootstrapEnv(PlatformWildoServices.MODULE_REGISTRY, credentials, addresses, createConfig({ observability: { enabled: true, endpoint: 'http://localhost:4318' } }), createEnvironment(), '0.1.0');
|
|
209
|
+
expect(env.OTEL_ENABLED).toBe('true');
|
|
210
|
+
expect(env.OTEL_RESOURCE_ATTRIBUTES).toContain('service.version=0.1.0');
|
|
211
|
+
});
|
|
212
|
+
it('can omit bootstrap admin credentials from steady-state apps-manager env', () => {
|
|
213
|
+
const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(credentials, addresses, createConfig(), createEnvironment(), {
|
|
214
|
+
includeBootstrapAdminCredentials: false,
|
|
215
|
+
});
|
|
216
|
+
expect(env.ADMIN_EMAIL).toBeUndefined();
|
|
217
|
+
expect(env.ADMIN_PASSWORD).toBeUndefined();
|
|
218
|
+
expect(env.ADMIN_FIRST_NAME).toBeUndefined();
|
|
219
|
+
expect(env.ADMIN_LAST_NAME).toBeUndefined();
|
|
220
|
+
});
|
|
221
|
+
it('fails closed when external storage wiring is authored', () => {
|
|
222
|
+
expect(() => PlatformEnvVarsBuilder.buildAppsManagerFullEnv(credentials, addresses, createConfig({
|
|
223
|
+
externalEndpoints: {
|
|
224
|
+
storage: {
|
|
225
|
+
endpoint: 's3.example.com',
|
|
226
|
+
port: 443,
|
|
227
|
+
},
|
|
228
|
+
},
|
|
229
|
+
}), createEnvironment())).toThrow(/External storage wiring is not supported yet/);
|
|
230
|
+
});
|
|
231
|
+
it('accepts managed MinIO storage provider metadata in externalServices', () => {
|
|
232
|
+
expect(() => PlatformEnvVarsBuilder.buildAppsManagerFullEnv(credentials, addresses, createConfig({
|
|
233
|
+
type: WildoLocationType.LOCAL,
|
|
234
|
+
runtime: WildoDeploymentRuntime.DOCKER_COMPOSE,
|
|
235
|
+
runtimeEnvironment: RuntimeEnvironment.DEVELOPMENT,
|
|
236
|
+
externalServices: {
|
|
237
|
+
mongodb: { provider: 'self-managed' },
|
|
238
|
+
valkey: { provider: 'valkey-self' },
|
|
239
|
+
storage: { provider: 'minio' },
|
|
240
|
+
rabbitmq: { provider: 'self-managed' },
|
|
241
|
+
},
|
|
242
|
+
}), createEnvironment({
|
|
243
|
+
name: 'local',
|
|
244
|
+
locationType: WildoLocationType.LOCAL,
|
|
245
|
+
runtime: WildoDeploymentRuntime.DOCKER_COMPOSE,
|
|
246
|
+
runtimeEnvironment: RuntimeEnvironment.DEVELOPMENT,
|
|
247
|
+
}))).not.toThrow();
|
|
248
|
+
});
|
|
249
|
+
it('emits Mongo direct-connection runtime material for local application backends', () => {
|
|
250
|
+
const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', credentials, addresses, createConfig({
|
|
251
|
+
database: {
|
|
252
|
+
engine: DatabaseEngine.MONGODB,
|
|
253
|
+
source: BackingServiceSource.SELF,
|
|
254
|
+
},
|
|
255
|
+
}), 'local', declaredProviderScope([]), {
|
|
256
|
+
deploymentLocationType: WildoLocationType.LOCAL,
|
|
257
|
+
appDatabaseName: 'wonder_todos',
|
|
258
|
+
mongodbDirectConnection: true,
|
|
259
|
+
});
|
|
260
|
+
expect(env[ApplicationBackendDataEnvKeys.MONGODB_DIRECT_CONNECTION]).toBe('true');
|
|
261
|
+
});
|
|
262
|
+
it('emits deployment location as an explicit topology authority instead of inferring it from application behavior mode', () => {
|
|
263
|
+
const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', credentials, addresses, createConfig(), 'preview-eu', declaredProviderScope([]), {
|
|
264
|
+
applicationEnv: RuntimeEnvironment.DEVELOPMENT,
|
|
265
|
+
deploymentLocationType: WildoLocationType.REMOTE,
|
|
266
|
+
});
|
|
267
|
+
expect(env[ApplicationBackendBootstrapEnvKeys.APPLICATION_ENV]).toBe(RuntimeEnvironment.DEVELOPMENT);
|
|
268
|
+
expect(env[ApplicationBackendBootstrapEnvKeys.DEPLOYMENT_LOCATION_TYPE]).toBe(WildoLocationType.REMOTE);
|
|
269
|
+
expect(env[ApplicationBackendRuntimeEnvKeys.APPLICATION_RUNTIME_SIGNALS_HOME]).toBeUndefined();
|
|
270
|
+
});
|
|
271
|
+
it('emits an explicit app-owned runtime-signals home only when supplied by local deployment composition', () => {
|
|
272
|
+
const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', credentials, addresses, createConfig(), 'local', declaredProviderScope([]), {
|
|
273
|
+
deploymentLocationType: WildoLocationType.LOCAL,
|
|
274
|
+
runtimeSignalsHome: '/srv/wonder-todos/.wildo-saas/runtime-signals',
|
|
275
|
+
});
|
|
276
|
+
expect(env[ApplicationBackendRuntimeEnvKeys.APPLICATION_RUNTIME_SIGNALS_HOME]).toBe('/srv/wonder-todos/.wildo-saas/runtime-signals');
|
|
277
|
+
});
|
|
278
|
+
it('rejects a local filesystem authority under remote deployment topology', () => {
|
|
279
|
+
expect(() => PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', credentials, addresses, createConfig(), 'production', declaredProviderScope([]), {
|
|
280
|
+
deploymentLocationType: WildoLocationType.REMOTE,
|
|
281
|
+
runtimeSignalsHome: '/srv/wonder-todos/.wildo-saas/runtime-signals',
|
|
282
|
+
})).toThrow('only be emitted for explicit local deployment topology');
|
|
283
|
+
});
|
|
284
|
+
it('emits storage env vars for application backends', () => {
|
|
285
|
+
const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', credentials, addresses, createConfig(), 'local', declaredProviderScope([]), { deploymentLocationType: WildoLocationType.LOCAL });
|
|
286
|
+
expect(env[ApplicationBackendDataEnvKeys.STORAGE_PROVIDER]).toBe('minio');
|
|
287
|
+
expect(env[ApplicationBackendDataEnvKeys.STORAGE_ENDPOINT]).toBe('minio');
|
|
288
|
+
expect(env[ApplicationBackendDataEnvKeys.STORAGE_PORT]).toBe('9000');
|
|
289
|
+
expect(env[ApplicationBackendDataEnvKeys.STORAGE_USE_SSL]).toBe('false');
|
|
290
|
+
expect(env[ApplicationBackendDataEnvKeys.STORAGE_BUCKET]).toBe('bucket');
|
|
291
|
+
// The credential half is deliberately ABSENT. `STORAGE_ACCESS_KEY` /
|
|
292
|
+
// `STORAGE_SECRET_KEY` are the object store's ROOT credential — the same pair
|
|
293
|
+
// MinIO's own container runs as — and emitting them here handed root to every
|
|
294
|
+
// application backend, minion and worker. Applications now fetch short-lived,
|
|
295
|
+
// prefix-confined session credentials from apps-manager at runtime.
|
|
296
|
+
// See `.claude/plans/object-storage-root-credential-distribution.md`.
|
|
297
|
+
// Asserted by raw key NAME, not through the enum: those members have since
|
|
298
|
+
// been removed from `ApplicationBackendDataEnvKey` entirely, so an
|
|
299
|
+
// enum-based assertion would no longer compile — and the raw name is the
|
|
300
|
+
// stronger check anyway, proving absence from the emitted env regardless of
|
|
301
|
+
// what the contract type happens to declare.
|
|
302
|
+
expect(env['STORAGE_ACCESS_KEY']).toBeUndefined();
|
|
303
|
+
expect(env['STORAGE_SECRET_KEY']).toBeUndefined();
|
|
304
|
+
});
|
|
305
|
+
it('emits WILDO_WORKER_<NAME>_URL for each declared worker dispatch URL (G-8 / MW4)', () => {
|
|
306
|
+
const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', credentials, addresses, createConfig(), 'staging', declaredProviderScope([]), {
|
|
307
|
+
deploymentLocationType: WildoLocationType.REMOTE,
|
|
308
|
+
workerUrls: {
|
|
309
|
+
// camelCase bucket key; the HOST is the normalized DNS name the CLI
|
|
310
|
+
// computes via `buildWorkerInternalUrl` (matches the deployed Service).
|
|
311
|
+
myNodeWorker: 'http://wonder-todos-worker-my-node-worker:8081',
|
|
312
|
+
// kebab-case bucket key — both normalize to the same UPPER_SNAKE env key
|
|
313
|
+
'my-rust-worker': 'http://wonder-todos-worker-my-rust-worker:8080',
|
|
314
|
+
},
|
|
315
|
+
});
|
|
316
|
+
// The env-key normalization (camelCase + kebab → UPPER_SNAKE) is shared with
|
|
317
|
+
// the backend read-side (`wildoWorkerUrlEnvKey`), so emit and read cannot drift.
|
|
318
|
+
expect(env.WILDO_WORKER_MY_NODE_WORKER_URL).toBe('http://wonder-todos-worker-my-node-worker:8081');
|
|
319
|
+
expect(env.WILDO_WORKER_MY_RUST_WORKER_URL).toBe('http://wonder-todos-worker-my-rust-worker:8080');
|
|
320
|
+
});
|
|
321
|
+
it('omits worker dispatch URLs when none are provided (local / no declared workers)', () => {
|
|
322
|
+
const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', credentials, addresses, createConfig(), 'local', declaredProviderScope([]), { deploymentLocationType: WildoLocationType.LOCAL });
|
|
323
|
+
expect(Object.keys(env).some((key) => key.startsWith('WILDO_WORKER_'))).toBe(false);
|
|
324
|
+
});
|
|
325
|
+
it('builds a minimal env-driven contract for application workers', () => {
|
|
326
|
+
const env = PlatformEnvVarsBuilder.buildApplicationWorkerEnv(appBootstrapCredentials, 'rustWorker', 'my-rust-worker', credentials, createConfig(), 'local', declaredProviderScope([]), {
|
|
327
|
+
runtimeEndpoints: {
|
|
328
|
+
'wonder-todos-api': {
|
|
329
|
+
publicUrl: 'http://localhost:4241',
|
|
330
|
+
internalUrl: 'http://localhost:4241',
|
|
331
|
+
},
|
|
332
|
+
},
|
|
333
|
+
});
|
|
334
|
+
expect(env[ApplicationWorkerBootstrapEnvKeys.APPLICATION_ID]).toBe('app-123');
|
|
335
|
+
// Worker identity — the canonical `APP_OWNED_SERVICE_*` pair. `..._NAME` is the
|
|
336
|
+
// `workers` bucket key (the apps-manager worker-bootstrap path segment); `..._KIND`
|
|
337
|
+
// pins it as a worker. `SERVICE_NAME` stays the separate process/observability name.
|
|
338
|
+
expect(env[ApplicationWorkerBootstrapEnvKeys.APP_OWNED_SERVICE_KIND]).toBe('worker');
|
|
339
|
+
expect(env[ApplicationWorkerBootstrapEnvKeys.APP_OWNED_SERVICE_NAME]).toBe('rustWorker');
|
|
340
|
+
expect(env[ApplicationWorkerBootstrapEnvKeys.SERVICE_NAME]).toBe('my-rust-worker');
|
|
341
|
+
expect(env[ApplicationWorkerBootstrapEnvKeys.PLATFORM_APPLICATION_PRIMARY_SECRET]).toBe('platform-primary-secret');
|
|
342
|
+
expect(env[ApplicationWorkerRuntimeEnvKeys.APPLICATION_RUNTIME_ENDPOINTS]).toContain('wonder-todos-api');
|
|
343
|
+
expect(env.MONGODB_HOST).toBeUndefined();
|
|
344
|
+
expect(env.RABBITMQ_HOST).toBeUndefined();
|
|
345
|
+
expect(env.STORAGE_ACCESS_KEY).toBeUndefined();
|
|
346
|
+
});
|
|
347
|
+
it('projects the authored HTTP surface into the worker env (WORKER_HTTP_PORT + probe paths)', () => {
|
|
348
|
+
const env = PlatformEnvVarsBuilder.buildApplicationWorkerEnv(appBootstrapCredentials, 'rustWorker', 'my-rust-worker', credentials, createConfig(), 'local', declaredProviderScope([]), {
|
|
349
|
+
http: { port: 8081, healthPath: '/healthz', readyPath: '/readyz' },
|
|
350
|
+
});
|
|
351
|
+
expect(env[ApplicationWorkerHttpSurfaceEnvKeys.WORKER_HTTP_PORT]).toBe('8081');
|
|
352
|
+
expect(env[ApplicationWorkerHttpSurfaceEnvKeys.WORKER_HEALTH_PATH]).toBe('/healthz');
|
|
353
|
+
expect(env[ApplicationWorkerHttpSurfaceEnvKeys.WORKER_READY_PATH]).toBe('/readyz');
|
|
354
|
+
// metricsPath is optional (Prometheus opt-in) — omitted when not authored.
|
|
355
|
+
expect(env[ApplicationWorkerHttpSurfaceEnvKeys.WORKER_METRICS_PATH]).toBeUndefined();
|
|
356
|
+
});
|
|
357
|
+
it('emits WORKER_METRICS_PATH only when the worker opts into a scrape surface', () => {
|
|
358
|
+
const env = PlatformEnvVarsBuilder.buildApplicationWorkerEnv(appBootstrapCredentials, 'rustWorker', 'my-rust-worker', credentials, createConfig(), 'local', declaredProviderScope([]), {
|
|
359
|
+
http: { port: 9090, healthPath: '/health', readyPath: '/ready', metricsPath: '/metrics' },
|
|
360
|
+
});
|
|
361
|
+
expect(env[ApplicationWorkerHttpSurfaceEnvKeys.WORKER_HTTP_PORT]).toBe('9090');
|
|
362
|
+
expect(env[ApplicationWorkerHttpSurfaceEnvKeys.WORKER_METRICS_PATH]).toBe('/metrics');
|
|
363
|
+
});
|
|
364
|
+
/*
|
|
365
|
+
* Issue #94. The companion was a deliberate N/A for the platform PostgreSQL env — correctly,
|
|
366
|
+
* while its startup could not honor those keys. Now that it derives its adapter from
|
|
367
|
+
* DATABASE_DEFAULT_ADAPTER and pre-connects PG_CONNECT_URL, withholding them is what would
|
|
368
|
+
* lie: the companion would read platform rows from a Mongo database the platform stopped
|
|
369
|
+
* using and report every application as unregistered.
|
|
370
|
+
*/
|
|
371
|
+
it('emits the platform PostgreSQL env into the companion on a PostgreSQL-engined platform', () => {
|
|
372
|
+
const env = PlatformEnvVarsBuilder.buildCompanionPlatformEnv(appBootstrapCredentials, 'wonder-todos-dev-companion', credentials, addresses, createConfig({
|
|
373
|
+
type: WildoLocationType.LOCAL,
|
|
374
|
+
runtime: WildoDeploymentRuntime.DOCKER_COMPOSE,
|
|
375
|
+
runtimeEnvironment: RuntimeEnvironment.DEVELOPMENT,
|
|
376
|
+
database: { engine: DatabaseEngine.POSTGRESQL, source: BackingServiceSource.SELF },
|
|
377
|
+
}), createEnvironment({
|
|
378
|
+
database: { engine: DatabaseEngine.POSTGRESQL, source: BackingServiceSource.SELF },
|
|
379
|
+
backingServices: {
|
|
380
|
+
[BackingServiceKind.MONGODB]: { source: BackingServiceSource.SELF },
|
|
381
|
+
},
|
|
382
|
+
}), { host: '0.0.0.0', port: 4341, runtimeEndpoints: {} });
|
|
383
|
+
expect(env[PlatformInfrastructureEnvKeys.PG_CONNECT_URL]).toContain('/wildo_platform');
|
|
384
|
+
expect(env[ApplicationBackendDataEnvKeys.DATABASE_DEFAULT_ADAPTER]).toBe('postgresql');
|
|
385
|
+
});
|
|
386
|
+
it('writes NEITHER PostgreSQL key into the companion env on a MongoDB-engined platform', () => {
|
|
387
|
+
// The no-op half: existing companion `.env` material stays byte-identical, and an adapter
|
|
388
|
+
// selection is never emitted for a platform that did not declare one.
|
|
389
|
+
const env = PlatformEnvVarsBuilder.buildCompanionPlatformEnv(appBootstrapCredentials, 'wonder-todos-dev-companion', credentials, addresses, createConfig({
|
|
390
|
+
type: WildoLocationType.LOCAL,
|
|
391
|
+
runtime: WildoDeploymentRuntime.DOCKER_COMPOSE,
|
|
392
|
+
runtimeEnvironment: RuntimeEnvironment.DEVELOPMENT,
|
|
393
|
+
}), createEnvironment({
|
|
394
|
+
name: 'local',
|
|
395
|
+
locationType: WildoLocationType.LOCAL,
|
|
396
|
+
runtime: WildoDeploymentRuntime.DOCKER_COMPOSE,
|
|
397
|
+
runtimeEnvironment: RuntimeEnvironment.DEVELOPMENT,
|
|
398
|
+
}), { host: '0.0.0.0', port: 4341, runtimeEndpoints: {} });
|
|
399
|
+
expect(env[PlatformInfrastructureEnvKeys.PG_CONNECT_URL]).toBeUndefined();
|
|
400
|
+
expect(env[ApplicationBackendDataEnvKeys.DATABASE_DEFAULT_ADAPTER]).toBeUndefined();
|
|
401
|
+
});
|
|
402
|
+
it('emits platform-focused database and service wiring for companion api env', () => {
|
|
403
|
+
const env = PlatformEnvVarsBuilder.buildCompanionPlatformEnv(appBootstrapCredentials, 'wonder-todos-dev-companion', credentials, addresses, createConfig({
|
|
404
|
+
type: WildoLocationType.LOCAL,
|
|
405
|
+
runtime: WildoDeploymentRuntime.DOCKER_COMPOSE,
|
|
406
|
+
runtimeEnvironment: RuntimeEnvironment.DEVELOPMENT,
|
|
407
|
+
}), createEnvironment({
|
|
408
|
+
name: 'local',
|
|
409
|
+
locationType: WildoLocationType.LOCAL,
|
|
410
|
+
runtime: WildoDeploymentRuntime.DOCKER_COMPOSE,
|
|
411
|
+
runtimeEnvironment: RuntimeEnvironment.DEVELOPMENT,
|
|
412
|
+
}), {
|
|
413
|
+
host: '0.0.0.0',
|
|
414
|
+
port: 4341,
|
|
415
|
+
runtimeEndpoints: {
|
|
416
|
+
'wonder-todos-api': {
|
|
417
|
+
publicUrl: 'http://localhost:4241',
|
|
418
|
+
internalUrl: 'http://localhost:4241',
|
|
419
|
+
},
|
|
420
|
+
},
|
|
421
|
+
});
|
|
422
|
+
expect(env[PlatformProcessEnvKeys.SERVICE_NAME]).toBe('wonder-todos-dev-companion');
|
|
423
|
+
expect(env[PlatformProcessEnvKeys.HOST]).toBe('0.0.0.0');
|
|
424
|
+
expect(env[PlatformProcessEnvKeys.PORT]).toBe('4341');
|
|
425
|
+
expect(env[PlatformInfrastructureEnvKeys.MONGO_CONNECT_URL]).toContain('/wildo_platform');
|
|
426
|
+
expect(env[PlatformInfrastructureEnvKeys.REDIS_ADMIN_PASSWORD]).toBe('valkey-password');
|
|
427
|
+
expect(env[PlatformInfrastructureEnvKeys.RABBITMQ_ADMIN_PASSWORD]).toBe('rabbit-password');
|
|
428
|
+
expect(env[PlatformSecurityEnvKeys.PLATFORM_APPS_MANAGER_PUBLIC_KEY]).toBe('public-key');
|
|
429
|
+
expect(env.APPLICATION_RUNTIME_ENDPOINTS).toContain('platform_crontabs_batches_manager');
|
|
430
|
+
expect(env.APPLICATION_RUNTIME_ENDPOINTS).toContain('wonder-todos-dev-companion');
|
|
431
|
+
/**
|
|
432
|
+
* The companion also needs the APPLICATION's PostgreSQL ADDRESS, and the reason is not symmetry.
|
|
433
|
+
* It loads the application's resource registry, which REFUSES to initialize when a resource
|
|
434
|
+
* declares `persistenceAdapter: 'postgresql'` while `database.postgresql` is absent — and the
|
|
435
|
+
* app-configuration loader builds that branch only when a HOST arrives. Without these keys the
|
|
436
|
+
* companion crash-looped on "PostgreSQL is not enabled in database config" while the backend and
|
|
437
|
+
* the minions, which DO receive them, booted the same registry fine (measured 2026-08-27).
|
|
438
|
+
*
|
|
439
|
+
* Address only, under the APPLICATION-backend keys the loader reads. Credentials travel through
|
|
440
|
+
* `secrets.database.postgresql`; selection stays `DATABASE_DEFAULT_ADAPTER`.
|
|
441
|
+
*/
|
|
442
|
+
expect(env[ApplicationBackendDataEnvKeys.POSTGRESQL_HOST]).toBe('postgresql');
|
|
443
|
+
expect(env[ApplicationBackendDataEnvKeys.POSTGRESQL_PORT]).toBe('5432');
|
|
444
|
+
});
|
|
445
|
+
it('gives the companion storage TOPOLOGY but omits the object storage ROOT credential', () => {
|
|
446
|
+
// The companion stays platform-tier for Mongo/Redis/RabbitMQ — the assertions in
|
|
447
|
+
// the test above pin that, and the blanket platform-credential guard is
|
|
448
|
+
// deliberately NOT applied to this builder for that reason. Storage is the one
|
|
449
|
+
// axis where it is app-tier: it runs the same `WildoManagedStorageProvider` as
|
|
450
|
+
// backend-api and fetches short-lived, prefix-confined STS sessions using the
|
|
451
|
+
// bootstrap contract. The root pair it used to receive was NEVER READ — its only
|
|
452
|
+
// effect was to park the object store's root credential in a `.env` on a
|
|
453
|
+
// developer's disk for the lifetime of the dev stack.
|
|
454
|
+
//
|
|
455
|
+
// Topology is asserted alongside the absence deliberately: a builder that
|
|
456
|
+
// dropped storage wiring wholesale would also satisfy a pure absence check, and
|
|
457
|
+
// that would break the companion's file operations while looking like a fix.
|
|
458
|
+
const env = PlatformEnvVarsBuilder.buildCompanionPlatformEnv(appBootstrapCredentials, 'wonder-todos-dev-companion', credentials, addresses, createConfig(), createEnvironment());
|
|
459
|
+
expect(env[PlatformInfrastructureEnvKeys.STORAGE_ENDPOINT]).toBe('minio');
|
|
460
|
+
expect(env[PlatformInfrastructureEnvKeys.STORAGE_BUCKET]).toBe('bucket');
|
|
461
|
+
expect(env[PlatformInfrastructureEnvKeys.STORAGE_ACCESS_KEY]).toBeUndefined();
|
|
462
|
+
expect(env[PlatformInfrastructureEnvKeys.STORAGE_SECRET_KEY]).toBeUndefined();
|
|
463
|
+
// Value-level, not key-level: a future builder that emitted the same secret
|
|
464
|
+
// under a different key would defeat the two assertions above.
|
|
465
|
+
expect(Object.values(env)).not.toContain(credentials.storage.secretKey);
|
|
466
|
+
});
|
|
467
|
+
it('emits storage env vars for bootstrap platform services', () => {
|
|
468
|
+
const env = PlatformEnvVarsBuilder.buildBootstrapEnv(PlatformWildoServices.CRONTABS_BATCHES_MANAGER, credentials, addresses, createConfig(), createEnvironment());
|
|
469
|
+
expect(env[PlatformInfrastructureEnvKeys.STORAGE_PROVIDER]).toBe('minio');
|
|
470
|
+
expect(env[PlatformInfrastructureEnvKeys.STORAGE_ENDPOINT]).toBe('minio');
|
|
471
|
+
expect(env[PlatformInfrastructureEnvKeys.STORAGE_PORT]).toBe('9000');
|
|
472
|
+
expect(env[PlatformInfrastructureEnvKeys.STORAGE_USE_SSL]).toBe('false');
|
|
473
|
+
expect(env[PlatformInfrastructureEnvKeys.STORAGE_BUCKET]).toBe('bucket');
|
|
474
|
+
expect(env[PlatformInfrastructureEnvKeys.STORAGE_ACCESS_KEY]).toBe('minio');
|
|
475
|
+
expect(env[PlatformInfrastructureEnvKeys.STORAGE_SECRET_KEY]).toBe('minio-secret');
|
|
476
|
+
});
|
|
477
|
+
it('emits Redis and RabbitMQ topology for the crontabs bootstrap service', () => {
|
|
478
|
+
const env = PlatformEnvVarsBuilder.buildBootstrapEnv(PlatformWildoServices.CRONTABS_BATCHES_MANAGER, credentials, addresses, createConfig(), createEnvironment());
|
|
479
|
+
expect(env[PlatformInfrastructureEnvKeys.REDIS_HOST]).toBe('valkey');
|
|
480
|
+
expect(env[PlatformInfrastructureEnvKeys.REDIS_PORT]).toBe('6379');
|
|
481
|
+
expect(env[PlatformInfrastructureEnvKeys.RABBITMQ_HOST]).toBe('rabbitmq');
|
|
482
|
+
expect(env[PlatformInfrastructureEnvKeys.RABBITMQ_PORT]).toBe('5672');
|
|
483
|
+
expect(env[PlatformInfrastructureEnvKeys.RABBITMQ_MANAGEMENT_PORT]).toBe('15672');
|
|
484
|
+
});
|
|
485
|
+
it('emits MONGO_CONNECT_URL for the module-registry bootstrap service ONLY (crontabs bridges platform config)', () => {
|
|
486
|
+
const registryEnv = PlatformEnvVarsBuilder.buildBootstrapEnv(PlatformWildoServices.MODULE_REGISTRY, credentials, addresses, createConfig(), createEnvironment());
|
|
487
|
+
const crontabsEnv = PlatformEnvVarsBuilder.buildBootstrapEnv(PlatformWildoServices.CRONTABS_BATCHES_MANAGER, credentials, addresses, createConfig(), createEnvironment());
|
|
488
|
+
// module-registry rides the framework's `StartApplicationBackendService`, which opens the
|
|
489
|
+
// PLATFORM_MANAGEMENT connection from `MONGO_CONNECT_URL` → it MUST be provisioned.
|
|
490
|
+
expect(registryEnv[PlatformInfrastructureEnvKeys.MONGO_CONNECT_URL]).toContain('/wildo_platform');
|
|
491
|
+
expect(registryEnv[PlatformInfrastructureEnvKeys.MONGO_PLATFORM_URL]).toContain('/wildo_platform');
|
|
492
|
+
// crontabs uses a custom two-phase startup that bridges platform config for its Mongo access and
|
|
493
|
+
// never reads `MONGO_CONNECT_URL`, so the emission is scoped OUT of it.
|
|
494
|
+
expect(crontabsEnv[PlatformInfrastructureEnvKeys.MONGO_CONNECT_URL]).toBeUndefined();
|
|
495
|
+
});
|
|
496
|
+
// ==========================================================================
|
|
497
|
+
// Authored backingServices propagation (Slice 3.2 — F-23)
|
|
498
|
+
// ==========================================================================
|
|
499
|
+
describe('backingServices overrides', () => {
|
|
500
|
+
it('emits REDIS_DATABASE / RABBITMQ_VHOST for apps-manager when authored', () => {
|
|
501
|
+
const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(credentials, addresses, createConfig({
|
|
502
|
+
backingServices: {
|
|
503
|
+
[BackingServiceKind.REDIS]: {
|
|
504
|
+
source: BackingServiceSource.SELF,
|
|
505
|
+
database: 3,
|
|
506
|
+
},
|
|
507
|
+
[BackingServiceKind.RABBITMQ]: {
|
|
508
|
+
source: BackingServiceSource.SELF,
|
|
509
|
+
vhost: '/wonder',
|
|
510
|
+
},
|
|
511
|
+
},
|
|
512
|
+
}), createEnvironment());
|
|
513
|
+
expect(env[PlatformInfrastructureEnvKeys.REDIS_DATABASE]).toBe('3');
|
|
514
|
+
expect(env[PlatformInfrastructureEnvKeys.RABBITMQ_VHOST]).toBe('/wonder');
|
|
515
|
+
});
|
|
516
|
+
it('omits REDIS_DATABASE / RABBITMQ_VHOST when not authored', () => {
|
|
517
|
+
const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(credentials, addresses, createConfig(), createEnvironment());
|
|
518
|
+
expect(env[PlatformInfrastructureEnvKeys.REDIS_DATABASE]).toBeUndefined();
|
|
519
|
+
expect(env[PlatformInfrastructureEnvKeys.RABBITMQ_VHOST]).toBeUndefined();
|
|
520
|
+
});
|
|
521
|
+
it('uses authored mongodb.database as application MONGODB_DATABASE when no override is supplied', () => {
|
|
522
|
+
const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', credentials, addresses, createConfig({
|
|
523
|
+
backingServices: {
|
|
524
|
+
[BackingServiceKind.MONGODB]: {
|
|
525
|
+
source: BackingServiceSource.SELF,
|
|
526
|
+
database: 'wonder-todos-db',
|
|
527
|
+
},
|
|
528
|
+
[BackingServiceKind.REDIS]: {
|
|
529
|
+
source: BackingServiceSource.SELF,
|
|
530
|
+
database: 5,
|
|
531
|
+
},
|
|
532
|
+
[BackingServiceKind.RABBITMQ]: {
|
|
533
|
+
source: BackingServiceSource.SELF,
|
|
534
|
+
vhost: '/wonder',
|
|
535
|
+
},
|
|
536
|
+
},
|
|
537
|
+
}), 'local', declaredProviderScope([]), { deploymentLocationType: WildoLocationType.LOCAL });
|
|
538
|
+
expect(env[ApplicationBackendDataEnvKeys.MONGODB_DATABASE]).toBe('wonder-todos-db');
|
|
539
|
+
expect(env[ApplicationBackendDataEnvKeys.REDIS_DATABASE]).toBe('5');
|
|
540
|
+
expect(env[ApplicationBackendDataEnvKeys.RABBITMQ_VHOST]).toBe('/wonder');
|
|
541
|
+
});
|
|
542
|
+
it('lets explicit appDatabaseName override the authored mongodb.database', () => {
|
|
543
|
+
const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', credentials, addresses, createConfig({
|
|
544
|
+
backingServices: {
|
|
545
|
+
[BackingServiceKind.MONGODB]: {
|
|
546
|
+
source: BackingServiceSource.SELF,
|
|
547
|
+
database: 'wonder-todos-db',
|
|
548
|
+
},
|
|
549
|
+
},
|
|
550
|
+
}), 'local', declaredProviderScope([]), { deploymentLocationType: WildoLocationType.LOCAL, appDatabaseName: 'explicit_app' });
|
|
551
|
+
expect(env[ApplicationBackendDataEnvKeys.MONGODB_DATABASE]).toBe('explicit_app');
|
|
552
|
+
});
|
|
553
|
+
// ========================================================================
|
|
554
|
+
// Slice 3.6 — `wildo.saas.config.dataServices` projection (F-43)
|
|
555
|
+
//
|
|
556
|
+
// These tests pin the contract for the three `dataServices` fields wired
|
|
557
|
+
// end-to-end in Slice 3.6:
|
|
558
|
+
// - `dataServices.redis.keyPrefix` → REDIS_KEY_PREFIX env (REPLACE
|
|
559
|
+
// semantics for the legacy username-derived prefix in RedisService)
|
|
560
|
+
// - `dataServices.s3.bucketPrefix` → STORAGE_BUCKET_PREFIX env
|
|
561
|
+
// (PREPEND semantics for object keys in WildoManagedStorageProvider)
|
|
562
|
+
// - `dataServices.rabbitmq.vhost` → DELETED (vhost is an
|
|
563
|
+
// infra/topology concern; only the infra-side seam emits the env)
|
|
564
|
+
//
|
|
565
|
+
// The fields are caller-supplied options (the env builder does not
|
|
566
|
+
// import `WildoSaasConfig` — they are threaded by `app-bootstrap.service`
|
|
567
|
+
// from `NormalizedSaasRuntimeDescriptor`).
|
|
568
|
+
// ========================================================================
|
|
569
|
+
it('emits REDIS_KEY_PREFIX when dataServices.redis.keyPrefix is authored', () => {
|
|
570
|
+
const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', credentials, addresses, createConfig(), 'local', declaredProviderScope([]), { deploymentLocationType: WildoLocationType.LOCAL, redisKeyPrefix: 'wonder-todos:' });
|
|
571
|
+
expect(env[ApplicationBackendDataEnvKeys.REDIS_KEY_PREFIX]).toBe('wonder-todos:');
|
|
572
|
+
});
|
|
573
|
+
it('omits REDIS_KEY_PREFIX when dataServices.redis.keyPrefix is unset', () => {
|
|
574
|
+
const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', credentials, addresses, createConfig(), 'local', declaredProviderScope([]), { deploymentLocationType: WildoLocationType.LOCAL });
|
|
575
|
+
expect(env[ApplicationBackendDataEnvKeys.REDIS_KEY_PREFIX]).toBeUndefined();
|
|
576
|
+
});
|
|
577
|
+
it('emits STORAGE_BUCKET_PREFIX when dataServices.s3.bucketPrefix is authored', () => {
|
|
578
|
+
const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', credentials, addresses, createConfig(), 'local', declaredProviderScope([]), { deploymentLocationType: WildoLocationType.LOCAL, storageBucketPrefix: 'wonder-todos' });
|
|
579
|
+
expect(env[ApplicationBackendDataEnvKeys.STORAGE_BUCKET_PREFIX]).toBe('wonder-todos');
|
|
580
|
+
});
|
|
581
|
+
it('omits STORAGE_BUCKET_PREFIX when dataServices.s3.bucketPrefix is unset', () => {
|
|
582
|
+
const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', credentials, addresses, createConfig(), 'local', declaredProviderScope([]), { deploymentLocationType: WildoLocationType.LOCAL });
|
|
583
|
+
expect(env[ApplicationBackendDataEnvKeys.STORAGE_BUCKET_PREFIX]).toBeUndefined();
|
|
584
|
+
});
|
|
585
|
+
it('emits both REDIS_KEY_PREFIX and STORAGE_BUCKET_PREFIX side-by-side without conflict', () => {
|
|
586
|
+
const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', credentials, addresses, createConfig(), 'local', declaredProviderScope([]), {
|
|
587
|
+
deploymentLocationType: WildoLocationType.LOCAL,
|
|
588
|
+
redisKeyPrefix: 'wonder-todos:',
|
|
589
|
+
storageBucketPrefix: 'wonder-todos',
|
|
590
|
+
appDatabaseName: 'wonder-todos',
|
|
591
|
+
});
|
|
592
|
+
expect(env[ApplicationBackendDataEnvKeys.REDIS_KEY_PREFIX]).toBe('wonder-todos:');
|
|
593
|
+
expect(env[ApplicationBackendDataEnvKeys.STORAGE_BUCKET_PREFIX]).toBe('wonder-todos');
|
|
594
|
+
expect(env[ApplicationBackendDataEnvKeys.MONGODB_DATABASE]).toBe('wonder-todos');
|
|
595
|
+
});
|
|
596
|
+
it('emits REDIS_KEY_PREFIX even when no valkey infra address is wired (dataServices is independent of infra)', () => {
|
|
597
|
+
const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', credentials, { ...addresses, infra: { ...addresses.infra, valkey: null } }, createConfig(), 'local', declaredProviderScope([]), { deploymentLocationType: WildoLocationType.LOCAL, redisKeyPrefix: 'wonder-todos:' });
|
|
598
|
+
expect(env[ApplicationBackendDataEnvKeys.REDIS_HOST]).toBeUndefined();
|
|
599
|
+
expect(env[ApplicationBackendDataEnvKeys.REDIS_KEY_PREFIX]).toBe('wonder-todos:');
|
|
600
|
+
});
|
|
601
|
+
it('emits STORAGE_BUCKET_PREFIX even when no minio infra address is wired (dataServices is independent of infra)', () => {
|
|
602
|
+
const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', credentials, { ...addresses, infra: { ...addresses.infra, minio: null } }, createConfig(), 'local', declaredProviderScope([]), { deploymentLocationType: WildoLocationType.LOCAL, storageBucketPrefix: 'wonder-todos' });
|
|
603
|
+
expect(env[ApplicationBackendDataEnvKeys.STORAGE_PROVIDER]).toBeUndefined();
|
|
604
|
+
expect(env[ApplicationBackendDataEnvKeys.STORAGE_BUCKET_PREFIX]).toBe('wonder-todos');
|
|
605
|
+
});
|
|
606
|
+
it('emits REDIS_DATABASE / RABBITMQ_VHOST for the crontabs bootstrap service when authored', () => {
|
|
607
|
+
const env = PlatformEnvVarsBuilder.buildBootstrapEnv(PlatformWildoServices.CRONTABS_BATCHES_MANAGER, credentials, addresses, createConfig({
|
|
608
|
+
backingServices: {
|
|
609
|
+
[BackingServiceKind.REDIS]: {
|
|
610
|
+
source: BackingServiceSource.SELF,
|
|
611
|
+
database: 7,
|
|
612
|
+
},
|
|
613
|
+
[BackingServiceKind.RABBITMQ]: {
|
|
614
|
+
source: BackingServiceSource.SELF,
|
|
615
|
+
vhost: '/crontabs',
|
|
616
|
+
},
|
|
617
|
+
},
|
|
618
|
+
}), createEnvironment());
|
|
619
|
+
expect(env[PlatformInfrastructureEnvKeys.REDIS_DATABASE]).toBe('7');
|
|
620
|
+
expect(env[PlatformInfrastructureEnvKeys.RABBITMQ_VHOST]).toBe('/crontabs');
|
|
621
|
+
});
|
|
622
|
+
});
|
|
623
|
+
// ==========================================================================
|
|
624
|
+
// Wonder-todos infra snapshot — end-to-end propagation (Slice 3.2 — F-23)
|
|
625
|
+
//
|
|
626
|
+
// This test pins the contract by mirroring the authored fields of
|
|
627
|
+
// `examples/wonder-todos/infrastructure/local/wildo.infra.local.config.ts`
|
|
628
|
+
// and asserting they all land in the runtime env vars produced for the
|
|
629
|
+
// application backend AND the platform-init / apps-manager surfaces.
|
|
630
|
+
//
|
|
631
|
+
// We reproduce the projection that `sync.command.buildConfigJsonFromInfraEnvConfig`
|
|
632
|
+
// performs (the function is module-private so we cannot import it directly):
|
|
633
|
+
// - `infrastructure.storage.bucket` <= `backingServices.s3.bucket`
|
|
634
|
+
// - `backingServices` is persisted as-is into the snapshot.
|
|
635
|
+
// ==========================================================================
|
|
636
|
+
describe('wonder-todos local infra snapshot (end-to-end)', () => {
|
|
637
|
+
const wonderTodosBackingServices = {
|
|
638
|
+
[BackingServiceKind.MONGODB]: {
|
|
639
|
+
source: BackingServiceSource.SELF,
|
|
640
|
+
database: 'wonder-todos-db',
|
|
641
|
+
host: 'localhost',
|
|
642
|
+
port: 27017,
|
|
643
|
+
},
|
|
644
|
+
[BackingServiceKind.REDIS]: {
|
|
645
|
+
source: BackingServiceSource.SELF,
|
|
646
|
+
host: 'localhost',
|
|
647
|
+
port: 6379,
|
|
648
|
+
database: 0,
|
|
649
|
+
},
|
|
650
|
+
[BackingServiceKind.RABBITMQ]: {
|
|
651
|
+
source: BackingServiceSource.SELF,
|
|
652
|
+
host: 'localhost',
|
|
653
|
+
port: 5672,
|
|
654
|
+
vhost: 'wonder-todos',
|
|
655
|
+
},
|
|
656
|
+
[BackingServiceKind.S3]: {
|
|
657
|
+
source: BackingServiceSource.SELF,
|
|
658
|
+
provider: 'minio',
|
|
659
|
+
endpoint: 'http://localhost:9000',
|
|
660
|
+
bucket: 'wonder-todos-local',
|
|
661
|
+
},
|
|
662
|
+
[BackingServiceKind.GOTENBERG]: { source: BackingServiceSource.SELF },
|
|
663
|
+
[BackingServiceKind.CLAMAV]: { source: BackingServiceSource.SELF },
|
|
664
|
+
};
|
|
665
|
+
function makeWonderTodosConfig(overrides = {}) {
|
|
666
|
+
return createConfig({
|
|
667
|
+
type: WildoLocationType.LOCAL,
|
|
668
|
+
runtime: WildoDeploymentRuntime.DOCKER_COMPOSE,
|
|
669
|
+
runtimeEnvironment: RuntimeEnvironment.DEVELOPMENT,
|
|
670
|
+
infrastructure: {
|
|
671
|
+
storage: {
|
|
672
|
+
provider: 'minio',
|
|
673
|
+
useSsl: false,
|
|
674
|
+
bucket: 'wonder-todos-local',
|
|
675
|
+
},
|
|
676
|
+
postgresql: {
|
|
677
|
+
database: 'wonder-todos',
|
|
678
|
+
sslMode: 'disable',
|
|
679
|
+
},
|
|
680
|
+
},
|
|
681
|
+
backingServices: wonderTodosBackingServices,
|
|
682
|
+
kubernetes: undefined,
|
|
683
|
+
remoteProvider: undefined,
|
|
684
|
+
...overrides,
|
|
685
|
+
});
|
|
686
|
+
}
|
|
687
|
+
function makeWonderTodosEnv() {
|
|
688
|
+
return createEnvironment({
|
|
689
|
+
name: 'local',
|
|
690
|
+
locationType: WildoLocationType.LOCAL,
|
|
691
|
+
runtime: WildoDeploymentRuntime.DOCKER_COMPOSE,
|
|
692
|
+
runtimeEnvironment: RuntimeEnvironment.DEVELOPMENT,
|
|
693
|
+
kubernetes: undefined,
|
|
694
|
+
remoteProvider: undefined,
|
|
695
|
+
backingServices: wonderTodosBackingServices,
|
|
696
|
+
});
|
|
697
|
+
}
|
|
698
|
+
it('propagates every authored backingServices field to the application backend env', () => {
|
|
699
|
+
const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', credentials, addresses, makeWonderTodosConfig(), 'local', declaredProviderScope([]), { deploymentLocationType: WildoLocationType.LOCAL });
|
|
700
|
+
expect(env[ApplicationBackendDataEnvKeys.MONGODB_DATABASE]).toBe('wonder-todos-db');
|
|
701
|
+
expect(env[ApplicationBackendDataEnvKeys.REDIS_DATABASE]).toBe('0');
|
|
702
|
+
expect(env[ApplicationBackendDataEnvKeys.RABBITMQ_VHOST]).toBe('wonder-todos');
|
|
703
|
+
expect(env[ApplicationBackendDataEnvKeys.STORAGE_BUCKET]).toBe('wonder-todos-local');
|
|
704
|
+
expect(env[ApplicationBackendDataEnvKeys.STORAGE_PROVIDER]).toBe('minio');
|
|
705
|
+
});
|
|
706
|
+
it('propagates authored vhost / redis-db / bucket to the apps-manager env', () => {
|
|
707
|
+
const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(credentials, addresses, makeWonderTodosConfig(), makeWonderTodosEnv());
|
|
708
|
+
expect(env[PlatformInfrastructureEnvKeys.RABBITMQ_VHOST]).toBe('wonder-todos');
|
|
709
|
+
expect(env[PlatformInfrastructureEnvKeys.REDIS_DATABASE]).toBe('0');
|
|
710
|
+
expect(env[PlatformInfrastructureEnvKeys.STORAGE_BUCKET]).toBe('wonder-todos-local');
|
|
711
|
+
});
|
|
712
|
+
it('propagates authored vhost / redis-db to the crontabs bootstrap env', () => {
|
|
713
|
+
const crontabsEnv = PlatformEnvVarsBuilder.buildBootstrapEnv(PlatformWildoServices.CRONTABS_BATCHES_MANAGER, credentials, addresses, makeWonderTodosConfig(), makeWonderTodosEnv());
|
|
714
|
+
expect(crontabsEnv[PlatformInfrastructureEnvKeys.RABBITMQ_VHOST]).toBe('wonder-todos');
|
|
715
|
+
expect(crontabsEnv[PlatformInfrastructureEnvKeys.REDIS_DATABASE]).toBe('0');
|
|
716
|
+
});
|
|
717
|
+
});
|
|
718
|
+
/**
|
|
719
|
+
* Slice 3.5 — `infra.logging.*` projection.
|
|
720
|
+
*
|
|
721
|
+
* Pins the middle of the data flow:
|
|
722
|
+
*
|
|
723
|
+
* `WildoInfraEnvConfig.logging` → `PlatformEnvConfigJson.logging`
|
|
724
|
+
* (persisted) → `emitLoggingEnv` (HERE) → `LOG_LEVEL` /
|
|
725
|
+
* `LOG_FORMATTED_CONSOLE_ERRORS` env vars → `LoggerService`.
|
|
726
|
+
*
|
|
727
|
+
* The schema-side round-trip is pinned by
|
|
728
|
+
* `define-infra-env-config.unimplemented.test.ts`; the consumer-side
|
|
729
|
+
* read is pinned by `logger.service.env-wiring.test.ts`. This block
|
|
730
|
+
* pins the projection step that is invisible to those two tests.
|
|
731
|
+
*/
|
|
732
|
+
describe('Slice 3.5 — logging env projection', () => {
|
|
733
|
+
it('emits LOG_LEVEL and LOG_FORMATTED_CONSOLE_ERRORS for apps-manager when authored', () => {
|
|
734
|
+
const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(credentials, addresses, createConfig({
|
|
735
|
+
logging: {
|
|
736
|
+
level: 'warn',
|
|
737
|
+
formattedConsoleErrors: true,
|
|
738
|
+
},
|
|
739
|
+
}), createEnvironment());
|
|
740
|
+
expect(env.LOG_LEVEL).toBe('warn');
|
|
741
|
+
expect(env.LOG_FORMATTED_CONSOLE_ERRORS).toBe('true');
|
|
742
|
+
});
|
|
743
|
+
it('omits LOG_LEVEL / LOG_FORMATTED_CONSOLE_ERRORS when logging block is absent (no false defaults)', () => {
|
|
744
|
+
const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(credentials, addresses, createConfig(), createEnvironment());
|
|
745
|
+
expect(env.LOG_LEVEL).toBeUndefined();
|
|
746
|
+
expect(env.LOG_FORMATTED_CONSOLE_ERRORS).toBeUndefined();
|
|
747
|
+
});
|
|
748
|
+
it('also emits the logging vars on the application-backend surface', () => {
|
|
749
|
+
const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', credentials, addresses, createConfig({
|
|
750
|
+
logging: {
|
|
751
|
+
level: 'debug',
|
|
752
|
+
formattedConsoleErrors: false,
|
|
753
|
+
},
|
|
754
|
+
}), 'local', declaredProviderScope([]), { deploymentLocationType: WildoLocationType.LOCAL });
|
|
755
|
+
expect(env.LOG_LEVEL).toBe('debug');
|
|
756
|
+
expect(env.LOG_FORMATTED_CONSOLE_ERRORS).toBe('false');
|
|
757
|
+
});
|
|
758
|
+
});
|
|
759
|
+
/**
|
|
760
|
+
* Per-env provider selection override — `infra.providerSelection` →
|
|
761
|
+
* `PlatformEnvConfigJson.providerSelection` → `emitProviderSelectionEnv`
|
|
762
|
+
* (serialized JSON) → `WILDO_PROVIDER_SELECTION_OVERRIDES`, read by
|
|
763
|
+
* `ExternalProvidersRegistryBackendService` to override the app-wide
|
|
764
|
+
* `wildo.saas.config.ts` selection per environment.
|
|
765
|
+
*/
|
|
766
|
+
/**
|
|
767
|
+
* Per-env documentation-site origins — `infra.documentationSite` →
|
|
768
|
+
* `PlatformEnvConfigJson.documentationSite` → `emitDocumentationSiteEnv` → the three
|
|
769
|
+
* `WILDO_DOCS_*` vars, read by the application's `docusaurus.config.ts`.
|
|
770
|
+
*
|
|
771
|
+
* Emitted as three scalars rather than one serialized payload (the `providerSelection`
|
|
772
|
+
* shape): the docs config reads each directly, and a JSON blob would force it to parse a
|
|
773
|
+
* payload to recover three strings.
|
|
774
|
+
*/
|
|
775
|
+
describe('per-env documentation-site origins (WILDO_DOCS_*) projection', () => {
|
|
776
|
+
it('emits each authored origin under its own var', () => {
|
|
777
|
+
const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', credentials, addresses, createConfig({
|
|
778
|
+
documentationSite: {
|
|
779
|
+
apiBaseUrl: 'https://api.example.com',
|
|
780
|
+
appUrl: 'https://app.example.com',
|
|
781
|
+
frontendServiceName: 'wonder-todos-docs',
|
|
782
|
+
},
|
|
783
|
+
}), 'local', declaredProviderScope([]), { deploymentLocationType: WildoLocationType.LOCAL });
|
|
784
|
+
expect(env.WILDO_DOCS_API_BASE_URL).toBe('https://api.example.com');
|
|
785
|
+
expect(env.WILDO_DOCS_APP_URL).toBe('https://app.example.com');
|
|
786
|
+
expect(env.WILDO_DOCS_FRONTEND_SERVICE_NAME).toBe('wonder-todos-docs');
|
|
787
|
+
});
|
|
788
|
+
it('omits every var when documentationSite is absent (no false default)', () => {
|
|
789
|
+
const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', credentials, addresses, createConfig(), 'local', declaredProviderScope([]), { deploymentLocationType: WildoLocationType.LOCAL });
|
|
790
|
+
expect(env.WILDO_DOCS_API_BASE_URL).toBeUndefined();
|
|
791
|
+
expect(env.WILDO_DOCS_APP_URL).toBeUndefined();
|
|
792
|
+
expect(env.WILDO_DOCS_FRONTEND_SERVICE_NAME).toBeUndefined();
|
|
793
|
+
});
|
|
794
|
+
it('emits ONLY the authored members, leaving the rest to the docs config defaults', () => {
|
|
795
|
+
// A partially-authored block is the realistic case: an environment may pin the API
|
|
796
|
+
// origin while the others stay local. Emitting an empty string for the unauthored
|
|
797
|
+
// ones would be worse than omitting them — the docs config treats PRESENCE as an
|
|
798
|
+
// explicit binding and would compile an empty origin into the bundle.
|
|
799
|
+
const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', credentials, addresses, createConfig({ documentationSite: { apiBaseUrl: 'https://api.example.com' } }), 'local', declaredProviderScope([]), { deploymentLocationType: WildoLocationType.LOCAL });
|
|
800
|
+
expect(env.WILDO_DOCS_API_BASE_URL).toBe('https://api.example.com');
|
|
801
|
+
expect(env.WILDO_DOCS_APP_URL).toBeUndefined();
|
|
802
|
+
expect(env.WILDO_DOCS_FRONTEND_SERVICE_NAME).toBeUndefined();
|
|
803
|
+
});
|
|
804
|
+
});
|
|
805
|
+
describe('per-env provider selection override (WILDO_PROVIDER_SELECTION_OVERRIDES) projection', () => {
|
|
806
|
+
it('emits the serialized override on the application-backend surface when authored', () => {
|
|
807
|
+
const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', credentials, addresses, createConfig({
|
|
808
|
+
providerSelection: {
|
|
809
|
+
[EngineCapability.EMAIL_TRANSACTIONAL]: { primary: 'email-preview' },
|
|
810
|
+
},
|
|
811
|
+
}), 'local', declaredProviderScope([]), { deploymentLocationType: WildoLocationType.LOCAL });
|
|
812
|
+
expect(env.WILDO_PROVIDER_SELECTION_OVERRIDES).toBeDefined();
|
|
813
|
+
expect(JSON.parse(env.WILDO_PROVIDER_SELECTION_OVERRIDES)).toEqual({
|
|
814
|
+
[EngineCapability.EMAIL_TRANSACTIONAL]: { primary: 'email-preview' },
|
|
815
|
+
});
|
|
816
|
+
});
|
|
817
|
+
it('omits the var when providerSelection is absent (no false default)', () => {
|
|
818
|
+
const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', credentials, addresses, createConfig(), 'local', declaredProviderScope([]), { deploymentLocationType: WildoLocationType.LOCAL });
|
|
819
|
+
expect(env.WILDO_PROVIDER_SELECTION_OVERRIDES).toBeUndefined();
|
|
820
|
+
});
|
|
821
|
+
it('omits the var when providerSelection is an empty object', () => {
|
|
822
|
+
const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', credentials, addresses, createConfig({ providerSelection: {} }), 'local', declaredProviderScope([]), { deploymentLocationType: WildoLocationType.LOCAL });
|
|
823
|
+
expect(env.WILDO_PROVIDER_SELECTION_OVERRIDES).toBeUndefined();
|
|
824
|
+
});
|
|
825
|
+
});
|
|
826
|
+
/**
|
|
827
|
+
* Slice 2 Phase 5 — `infra.observability.*` → `OTEL_*` projection.
|
|
828
|
+
*
|
|
829
|
+
* `WildoInfraEnvConfig.observability` → `PlatformEnvConfigJson.observability`
|
|
830
|
+
* → `emitObservabilityEnv` (HERE) → `OTEL_ENABLED` / `OTEL_EXPORTER_OTLP_ENDPOINT`
|
|
831
|
+
* / `OTEL_SERVICE_NAME` / `OTEL_RESOURCE_ATTRIBUTES`, read by the `otel-preload`.
|
|
832
|
+
*
|
|
833
|
+
* The auth-header cases (Phase 5b) exercise the provider-agnostic resolver: the
|
|
834
|
+
* provisioned telemetry token in `providerEnv` identifies the OBSERVABILITY_TELEMETRY
|
|
835
|
+
* provider (betterstack, registered with `otlpAuth: Bearer {token}`) and is formatted
|
|
836
|
+
* into `OTEL_EXPORTER_OTLP_HEADERS` — no provider named in the CLI.
|
|
837
|
+
*/
|
|
838
|
+
describe('Slice 2 Phase 5 — observability (OTEL_*) env projection', () => {
|
|
839
|
+
it('emits OTEL_* on the application-backend surface when the observability block is enabled', () => {
|
|
840
|
+
const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', credentials, addresses, createConfig({ observability: { enabled: true, endpoint: 'http://localhost:4318' } }), 'local', declaredProviderScope([]), { deploymentLocationType: WildoLocationType.LOCAL });
|
|
841
|
+
expect(env.OTEL_ENABLED).toBe('true');
|
|
842
|
+
expect(env.OTEL_EXPORTER_OTLP_ENDPOINT).toBe('http://localhost:4318');
|
|
843
|
+
expect(env.OTEL_SERVICE_NAME).toBe('wonder-todos-api');
|
|
844
|
+
expect(env.OTEL_RESOURCE_ATTRIBUTES).toContain('deployment.environment=');
|
|
845
|
+
});
|
|
846
|
+
it('omits OTEL_* when the observability block is absent or disabled (no false defaults)', () => {
|
|
847
|
+
const absent = PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', credentials, addresses, createConfig(), 'local', declaredProviderScope([]), { deploymentLocationType: WildoLocationType.LOCAL });
|
|
848
|
+
expect(absent.OTEL_ENABLED).toBeUndefined();
|
|
849
|
+
const disabled = PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', credentials, addresses, createConfig({ observability: { enabled: false } }), 'local', declaredProviderScope([]), { deploymentLocationType: WildoLocationType.LOCAL });
|
|
850
|
+
expect(disabled.OTEL_ENABLED).toBeUndefined();
|
|
851
|
+
});
|
|
852
|
+
it('emits OTEL_EXPORTER_OTLP_HEADERS from a provisioned telemetry provider token (Phase 5b)', () => {
|
|
853
|
+
const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', { ...credentials, providerEnv: { BETTERSTACK_SOURCE_TOKEN: 'tok_test_123' } }, addresses, createConfig({ observability: { enabled: true, endpoint: 'http://localhost:4318' } }), 'local', declaredProviderScope([]), { deploymentLocationType: WildoLocationType.LOCAL });
|
|
854
|
+
expect(env.OTEL_EXPORTER_OTLP_HEADERS).toBe('Authorization=Bearer tok_test_123');
|
|
855
|
+
});
|
|
856
|
+
it('omits OTEL_EXPORTER_OTLP_HEADERS when no telemetry token is provisioned (no-auth collector)', () => {
|
|
857
|
+
const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', { ...credentials, providerEnv: {} }, addresses, createConfig({ observability: { enabled: true, endpoint: 'http://localhost:4318' } }), 'local', declaredProviderScope([]), { deploymentLocationType: WildoLocationType.LOCAL });
|
|
858
|
+
expect(env.OTEL_EXPORTER_OTLP_HEADERS).toBeUndefined();
|
|
859
|
+
});
|
|
860
|
+
});
|
|
861
|
+
/**
|
|
862
|
+
* `credentials.providerEnv` is read at runtime via
|
|
863
|
+
* `ExternalProvidersRegistryBackendService.getProviderSecret/getProviderApiKey`
|
|
864
|
+
* (in `saas-backend-lib`), which calls `process.env[envVarName]`. Application
|
|
865
|
+
* backends, env-driven workers, and the dev companion call those methods;
|
|
866
|
+
* apps-manager does not. The keys therefore MUST NOT appear in apps-manager env.
|
|
867
|
+
*/
|
|
868
|
+
describe('provider env canonical sinks', () => {
|
|
869
|
+
const credentialsWithProviders = {
|
|
870
|
+
...credentials,
|
|
871
|
+
providerEnv: {
|
|
872
|
+
OPENAI_API_KEY: 'sk-openai-test',
|
|
873
|
+
ANTHROPIC_API_KEY: 'sk-ant-test',
|
|
874
|
+
RESEND_API_KEY: 're_test',
|
|
875
|
+
},
|
|
876
|
+
};
|
|
877
|
+
const PROVIDER_KEYS = ['OPENAI_API_KEY', 'ANTHROPIC_API_KEY', 'RESEND_API_KEY'];
|
|
878
|
+
/**
|
|
879
|
+
* The provider REFS whose secrets those keys are.
|
|
880
|
+
*
|
|
881
|
+
* Application-tier builders now require a declared scope and fail CLOSED
|
|
882
|
+
* without one, so these tests supply it explicitly. That does not weaken the
|
|
883
|
+
* invariant they exist for — which is NEGATIVE: provider secrets must never
|
|
884
|
+
* reach apps-manager or a bootstrap service. It narrows the positive half
|
|
885
|
+
* from "every application runtime gets every key" to "a runtime gets the keys
|
|
886
|
+
* it DECLARED", which is the point of `providers.scopes.*`.
|
|
887
|
+
*/
|
|
888
|
+
const PROVIDER_REFS = ['openai', 'anthropic', 'resend'];
|
|
889
|
+
it('does NOT emit any provider env key in apps-manager full env', () => {
|
|
890
|
+
const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(credentialsWithProviders, addresses, createConfig(), createEnvironment());
|
|
891
|
+
for (const key of PROVIDER_KEYS) {
|
|
892
|
+
expect(env[key]).toBeUndefined();
|
|
893
|
+
}
|
|
894
|
+
});
|
|
895
|
+
it.each(BOOTSTRAP_PLATFORM_SERVICES)('does NOT emit any provider env key in bootstrap service env (%s)', (service) => {
|
|
896
|
+
const env = PlatformEnvVarsBuilder.buildBootstrapEnv(service, credentialsWithProviders, addresses, createConfig(), createEnvironment());
|
|
897
|
+
for (const key of PROVIDER_KEYS) {
|
|
898
|
+
expect(env[key]).toBeUndefined();
|
|
899
|
+
}
|
|
900
|
+
});
|
|
901
|
+
it('emits every provider env key in application backend env (canonical sink)', () => {
|
|
902
|
+
const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', credentialsWithProviders, addresses, createConfig(), 'local', declaredProviderScope(PROVIDER_REFS), { deploymentLocationType: WildoLocationType.LOCAL });
|
|
903
|
+
expect(env.OPENAI_API_KEY).toBe('sk-openai-test');
|
|
904
|
+
expect(env.ANTHROPIC_API_KEY).toBe('sk-ant-test');
|
|
905
|
+
expect(env.RESEND_API_KEY).toBe('re_test');
|
|
906
|
+
});
|
|
907
|
+
it('emits every provider env key in companion api env (canonical sink — companion runs ExternalProvidersRegistryBackendService)', () => {
|
|
908
|
+
const env = PlatformEnvVarsBuilder.buildCompanionPlatformEnv(appBootstrapCredentials, 'wonder-todos-dev-companion', credentialsWithProviders, addresses, createConfig({
|
|
909
|
+
type: WildoLocationType.LOCAL,
|
|
910
|
+
runtime: WildoDeploymentRuntime.DOCKER_COMPOSE,
|
|
911
|
+
runtimeEnvironment: RuntimeEnvironment.DEVELOPMENT,
|
|
912
|
+
}), createEnvironment({
|
|
913
|
+
name: 'local',
|
|
914
|
+
locationType: WildoLocationType.LOCAL,
|
|
915
|
+
runtime: WildoDeploymentRuntime.DOCKER_COMPOSE,
|
|
916
|
+
runtimeEnvironment: RuntimeEnvironment.DEVELOPMENT,
|
|
917
|
+
}));
|
|
918
|
+
expect(env.OPENAI_API_KEY).toBe('sk-openai-test');
|
|
919
|
+
expect(env.ANTHROPIC_API_KEY).toBe('sk-ant-test');
|
|
920
|
+
expect(env.RESEND_API_KEY).toBe('re_test');
|
|
921
|
+
});
|
|
922
|
+
it('emits every provider env key in application worker env (canonical sink for non-Node workers)', () => {
|
|
923
|
+
const env = PlatformEnvVarsBuilder.buildApplicationWorkerEnv(appBootstrapCredentials, 'rustWorker', 'my-rust-worker', credentialsWithProviders, createConfig(), 'local', declaredProviderScope(PROVIDER_REFS), {});
|
|
924
|
+
expect(env.OPENAI_API_KEY).toBe('sk-openai-test');
|
|
925
|
+
expect(env.ANTHROPIC_API_KEY).toBe('sk-ant-test');
|
|
926
|
+
expect(env.RESEND_API_KEY).toBe('re_test');
|
|
927
|
+
});
|
|
928
|
+
it('materializes each provider key in exactly three sinks (backend + worker + companion) across every platform/bootstrap surface', () => {
|
|
929
|
+
const appsMgrEnv = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(credentialsWithProviders, addresses, createConfig(), createEnvironment());
|
|
930
|
+
const bootstrapEnvs = BOOTSTRAP_PLATFORM_SERVICES.map((service) => PlatformEnvVarsBuilder.buildBootstrapEnv(service, credentialsWithProviders, addresses, createConfig(), createEnvironment()));
|
|
931
|
+
const backendEnv = PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', credentialsWithProviders, addresses, createConfig(), 'local', declaredProviderScope(PROVIDER_REFS), { deploymentLocationType: WildoLocationType.LOCAL });
|
|
932
|
+
const workerEnv = PlatformEnvVarsBuilder.buildApplicationWorkerEnv(appBootstrapCredentials, 'rustWorker', 'my-rust-worker', credentialsWithProviders, createConfig(), 'local', declaredProviderScope(PROVIDER_REFS), {});
|
|
933
|
+
const companionEnv = PlatformEnvVarsBuilder.buildCompanionPlatformEnv(appBootstrapCredentials, 'wonder-todos-dev-companion', credentialsWithProviders, addresses, createConfig({
|
|
934
|
+
type: WildoLocationType.LOCAL,
|
|
935
|
+
runtime: WildoDeploymentRuntime.DOCKER_COMPOSE,
|
|
936
|
+
runtimeEnvironment: RuntimeEnvironment.DEVELOPMENT,
|
|
937
|
+
}), createEnvironment({
|
|
938
|
+
name: 'local',
|
|
939
|
+
locationType: WildoLocationType.LOCAL,
|
|
940
|
+
runtime: WildoDeploymentRuntime.DOCKER_COMPOSE,
|
|
941
|
+
runtimeEnvironment: RuntimeEnvironment.DEVELOPMENT,
|
|
942
|
+
}));
|
|
943
|
+
for (const key of PROVIDER_KEYS) {
|
|
944
|
+
const sinks = [
|
|
945
|
+
appsMgrEnv[key],
|
|
946
|
+
...bootstrapEnvs.map((env) => env[key]),
|
|
947
|
+
backendEnv[key],
|
|
948
|
+
workerEnv[key],
|
|
949
|
+
companionEnv[key],
|
|
950
|
+
].filter((value) => value !== undefined);
|
|
951
|
+
expect(sinks.length, `Provider key '${key}' must materialize in exactly THREE sinks (backend + worker + companion). Got: ${sinks.length}.`).toBe(3);
|
|
952
|
+
}
|
|
953
|
+
});
|
|
954
|
+
});
|
|
955
|
+
/**
|
|
956
|
+
* immudb state-signature pinning — the audit client pins `IMMUDB_STATE_PUBLIC_KEY` to
|
|
957
|
+
* cryptographically reject a whole-server substitution. The key is FRAMEWORK-GENERATED
|
|
958
|
+
* (`credentials.immudb.stateSigningPublicKey`, never operator-typed), so `env-vars-builder`
|
|
959
|
+
* injects it into every backend runtime's env — but ONLY when the immudb audit provider is
|
|
960
|
+
* configured (its `IMMUDB_HOST` is present in providerEnv), and NEVER the private half.
|
|
961
|
+
*/
|
|
962
|
+
describe('immudb state-signing public-key delivery', () => {
|
|
963
|
+
const PUBLIC_KEY = '-----BEGIN PUBLIC KEY-----\nMFkwEwexamplepub\n-----END PUBLIC KEY-----\n';
|
|
964
|
+
const PRIVATE_KEY = '-----BEGIN EC PRIVATE KEY-----\nMHcCAQEEexamplepriv\n-----END EC PRIVATE KEY-----\n';
|
|
965
|
+
const credentialsWithImmudb = (providerEnv) => ({
|
|
966
|
+
...credentials,
|
|
967
|
+
immudb: { stateSigningPrivateKey: PRIVATE_KEY, stateSigningPublicKey: PUBLIC_KEY },
|
|
968
|
+
providerEnv,
|
|
969
|
+
});
|
|
970
|
+
it('injects IMMUDB_STATE_PUBLIC_KEY (public half only) into the app backend env when immudb is configured', () => {
|
|
971
|
+
const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', credentialsWithImmudb({ [IMMUDB_CREDENTIAL_ENV_KEYS.PROVIDER.HOST]: 'immudb', [IMMUDB_CREDENTIAL_ENV_KEYS.PROVIDER.PASSWORD]: 'pw' }), addresses, createConfig(), 'local',
|
|
972
|
+
// `immudb` must be in scope for its state-signing PUBLIC key to be
|
|
973
|
+
// delivered — the key is attributable to that provider, so a runtime that
|
|
974
|
+
// does not declare immudb correctly receives nothing for it.
|
|
975
|
+
declaredProviderScope(['immudb']), { deploymentLocationType: WildoLocationType.LOCAL });
|
|
976
|
+
expect(env[IMMUDB_CREDENTIAL_ENV_KEYS.PROVIDER.STATE_PUBLIC_KEY]).toBe(PUBLIC_KEY);
|
|
977
|
+
// The PRIVATE key is SERVER-side only — it must NEVER surface in an app runtime's env.
|
|
978
|
+
expect(env[IMMUDB_CREDENTIAL_ENV_KEYS.SERVER.STATE_SIGNING_KEY]).toBeUndefined();
|
|
979
|
+
expect(Object.values(env)).not.toContain(PRIVATE_KEY);
|
|
980
|
+
});
|
|
981
|
+
it('also delivers the public key to the companion and worker runtimes', () => {
|
|
982
|
+
const providerEnv = { [IMMUDB_CREDENTIAL_ENV_KEYS.PROVIDER.HOST]: 'immudb' };
|
|
983
|
+
const workerEnv = PlatformEnvVarsBuilder.buildApplicationWorkerEnv(appBootstrapCredentials, 'rustWorker', 'my-rust-worker', credentialsWithImmudb(providerEnv), createConfig(), 'local', declaredProviderScope(['immudb']), {});
|
|
984
|
+
const companionEnv = PlatformEnvVarsBuilder.buildCompanionPlatformEnv(appBootstrapCredentials, 'wonder-todos-dev-companion', credentialsWithImmudb(providerEnv), addresses, createConfig({ type: WildoLocationType.LOCAL, runtime: WildoDeploymentRuntime.DOCKER_COMPOSE, runtimeEnvironment: RuntimeEnvironment.DEVELOPMENT }), createEnvironment({ name: 'local', locationType: WildoLocationType.LOCAL, runtime: WildoDeploymentRuntime.DOCKER_COMPOSE, runtimeEnvironment: RuntimeEnvironment.DEVELOPMENT }));
|
|
985
|
+
expect(workerEnv[IMMUDB_CREDENTIAL_ENV_KEYS.PROVIDER.STATE_PUBLIC_KEY]).toBe(PUBLIC_KEY);
|
|
986
|
+
expect(companionEnv[IMMUDB_CREDENTIAL_ENV_KEYS.PROVIDER.STATE_PUBLIC_KEY]).toBe(PUBLIC_KEY);
|
|
987
|
+
});
|
|
988
|
+
it('does NOT inject the public key when the immudb provider is not configured (no IMMUDB_HOST)', () => {
|
|
989
|
+
const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', credentialsWithImmudb({ OPENAI_API_KEY: 'sk-openai-test' }), addresses, createConfig(), 'local',
|
|
990
|
+
// `immudb` must be in scope for its state-signing PUBLIC key to be
|
|
991
|
+
// delivered — the key is attributable to that provider, so a runtime that
|
|
992
|
+
// does not declare immudb correctly receives nothing for it.
|
|
993
|
+
declaredProviderScope(['immudb']), { deploymentLocationType: WildoLocationType.LOCAL });
|
|
994
|
+
expect(env[IMMUDB_CREDENTIAL_ENV_KEYS.PROVIDER.STATE_PUBLIC_KEY]).toBeUndefined();
|
|
995
|
+
});
|
|
996
|
+
});
|
|
997
|
+
/**
|
|
998
|
+
* `buildRuntimeProviderEnv` is the public projection of the SAME provider-env
|
|
999
|
+
* map merged into every backend/companion/worker runtime — the authority
|
|
1000
|
+
* `wildo config sync` reuses to emit the standalone provider-secrets sink.
|
|
1001
|
+
* These pins guarantee the sink stays byte-identical to the runtime provider
|
|
1002
|
+
* env (authored `providerEnv` verbatim + the framework-injected immudb key),
|
|
1003
|
+
* so a future refactor cannot let the sink drift from what the backend gets.
|
|
1004
|
+
*/
|
|
1005
|
+
describe('buildRuntimeProviderEnv (provider-secrets sink authority)', () => {
|
|
1006
|
+
const PUBLIC_KEY = '-----BEGIN PUBLIC KEY-----\nMFkwEwexamplepub\n-----END PUBLIC KEY-----\n';
|
|
1007
|
+
it('returns the authored providerEnv verbatim (incl. base64-ish API keys)', () => {
|
|
1008
|
+
const providerEnv = { ANTHROPIC_API_KEY: 'sk-ant-abc==', OPENAI_API_KEY: 'sk-openai-xyz' };
|
|
1009
|
+
const result = PlatformEnvVarsBuilder.buildRuntimeProviderEnv({ ...credentials, providerEnv });
|
|
1010
|
+
expect(result).toEqual(providerEnv);
|
|
1011
|
+
});
|
|
1012
|
+
it('does not mutate the source credentials.providerEnv', () => {
|
|
1013
|
+
const providerEnv = { ANTHROPIC_API_KEY: 'sk-ant-abc' };
|
|
1014
|
+
const result = PlatformEnvVarsBuilder.buildRuntimeProviderEnv({ ...credentials, providerEnv });
|
|
1015
|
+
result.INJECTED = 'x';
|
|
1016
|
+
expect(providerEnv).toEqual({ ANTHROPIC_API_KEY: 'sk-ant-abc' });
|
|
1017
|
+
});
|
|
1018
|
+
it('injects the framework-generated immudb state key when immudb is configured (a naive providerEnv copy would drop it)', () => {
|
|
1019
|
+
const result = PlatformEnvVarsBuilder.buildRuntimeProviderEnv({
|
|
1020
|
+
...credentials,
|
|
1021
|
+
immudb: { stateSigningPrivateKey: 'priv', stateSigningPublicKey: PUBLIC_KEY },
|
|
1022
|
+
providerEnv: { [IMMUDB_CREDENTIAL_ENV_KEYS.PROVIDER.HOST]: 'immudb', ANTHROPIC_API_KEY: 'sk-ant' },
|
|
1023
|
+
});
|
|
1024
|
+
expect(result[IMMUDB_CREDENTIAL_ENV_KEYS.PROVIDER.STATE_PUBLIC_KEY]).toBe(PUBLIC_KEY);
|
|
1025
|
+
expect(result.ANTHROPIC_API_KEY).toBe('sk-ant');
|
|
1026
|
+
});
|
|
1027
|
+
it('returns an empty map when no providers are authored', () => {
|
|
1028
|
+
expect(PlatformEnvVarsBuilder.buildRuntimeProviderEnv({ ...credentials, providerEnv: {} })).toEqual({});
|
|
1029
|
+
});
|
|
1030
|
+
});
|
|
1031
|
+
});
|
|
1032
|
+
// The storage values in the shared `credentials` fixture above. Named here so the
|
|
1033
|
+
// assertions below can prove the guard never prints them.
|
|
1034
|
+
const TEST_STORAGE_ACCESS_KEY = 'minio';
|
|
1035
|
+
const TEST_STORAGE_SECRET_KEY = 'minio-secret';
|
|
1036
|
+
/** Build an application-tier env through the real builder. */
|
|
1037
|
+
function buildBackendEnvForTest() {
|
|
1038
|
+
return PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', credentials, addresses, createConfig({}), 'local', declaredProviderScope([]), {
|
|
1039
|
+
deploymentLocationType: WildoLocationType.LOCAL,
|
|
1040
|
+
appDatabaseName: 'wonder_todos',
|
|
1041
|
+
});
|
|
1042
|
+
}
|
|
1043
|
+
describe('PlatformEnvVarsBuilder — object storage ROOT credential is not distributed (storage plan R5)', () => {
|
|
1044
|
+
it('omits STORAGE_ACCESS_KEY / STORAGE_SECRET_KEY from application-tier env', () => {
|
|
1045
|
+
// Those two are the object store's ROOT credential — the same pair assigned
|
|
1046
|
+
// to MINIO_ROOT_USER / MINIO_ROOT_PASSWORD. Applications now obtain
|
|
1047
|
+
// short-lived, prefix-confined session credentials from apps-manager.
|
|
1048
|
+
const env = buildBackendEnvForTest();
|
|
1049
|
+
expect(env.STORAGE_ACCESS_KEY).toBeUndefined();
|
|
1050
|
+
expect(env.STORAGE_SECRET_KEY).toBeUndefined();
|
|
1051
|
+
});
|
|
1052
|
+
it('still emits the NON-secret storage wiring the adapter needs', () => {
|
|
1053
|
+
// The removal must be surgical: endpoint/bucket/provider are not secrets and
|
|
1054
|
+
// the storage adapter cannot address the store without them. Deleting them
|
|
1055
|
+
// too would disable file storage rather than secure it.
|
|
1056
|
+
const env = buildBackendEnvForTest();
|
|
1057
|
+
expect(env.STORAGE_ENDPOINT).toBeDefined();
|
|
1058
|
+
expect(env.STORAGE_BUCKET).toBeDefined();
|
|
1059
|
+
expect(env.STORAGE_PROVIDER).toBeDefined();
|
|
1060
|
+
});
|
|
1061
|
+
it('THROWS if the root SECRET reaches application env under ANY key name', () => {
|
|
1062
|
+
// The regression gate, tested against the guard directly because there is
|
|
1063
|
+
// deliberately no production path that leaks — which is the point.
|
|
1064
|
+
//
|
|
1065
|
+
// The leak uses a DIFFERENT key name on purpose: a key-name check would be
|
|
1066
|
+
// defeated exactly this way, so the guard compares VALUES.
|
|
1067
|
+
expect(() => assertNoStorageSecretInGeneratedEnv({ SOME_UNRELATED_KEY: TEST_STORAGE_SECRET_KEY }, credentials, 'testBuilder')).toThrow(/emitted platform-tier credentials/);
|
|
1068
|
+
});
|
|
1069
|
+
it('passes a clean env, so the guard is not vacuously green', () => {
|
|
1070
|
+
// Without this, a guard that threw on everything — or on nothing — would look
|
|
1071
|
+
// identical to a working one in the test above.
|
|
1072
|
+
expect(() => assertNoStorageSecretInGeneratedEnv({ STORAGE_ENDPOINT: 'minio', STORAGE_BUCKET: 'bucket' }, credentials, 'testBuilder')).not.toThrow();
|
|
1073
|
+
});
|
|
1074
|
+
it('never puts the secret VALUE in the error message', () => {
|
|
1075
|
+
// An error containing the secret would write it into CI logs — a worse place
|
|
1076
|
+
// than the env file it was caught in.
|
|
1077
|
+
try {
|
|
1078
|
+
assertNoStorageSecretInGeneratedEnv({ SOME_UNRELATED_KEY: TEST_STORAGE_SECRET_KEY }, credentials, 'testBuilder');
|
|
1079
|
+
throw new Error('expected the guard to throw');
|
|
1080
|
+
}
|
|
1081
|
+
catch (error) {
|
|
1082
|
+
const message = error.message;
|
|
1083
|
+
expect(message).not.toContain(TEST_STORAGE_ACCESS_KEY);
|
|
1084
|
+
expect(message).not.toContain(TEST_STORAGE_SECRET_KEY);
|
|
1085
|
+
// …but it must name the offending KEY, or the failure is unactionable.
|
|
1086
|
+
expect(message).toContain('SOME_UNRELATED_KEY');
|
|
1087
|
+
}
|
|
1088
|
+
});
|
|
1089
|
+
});
|
|
1090
|
+
describe('assertNoStorageSecretInGeneratedEnv — the forbidden set is the SECRET only, and has no key exemptions', () => {
|
|
1091
|
+
it('does NOT fire on the access key, which is an identifier rather than a credential', () => {
|
|
1092
|
+
// The access key is the principal's NAME: for MinIO conventionally the literal
|
|
1093
|
+
// `minio` (also the provider name and the compose hostname), and in this
|
|
1094
|
+
// repository's generated secrets a short shared admin username that is
|
|
1095
|
+
// byte-identical to `mongodb.rootUser` and `rabbitmq.adminUsername`. It grants
|
|
1096
|
+
// nothing on its own.
|
|
1097
|
+
//
|
|
1098
|
+
// It used to be in the forbidden set, and that forced an exemption list of env
|
|
1099
|
+
// KEY NAMES to suppress the resulting false positives — re-introducing a
|
|
1100
|
+
// by-name escape hatch into a guard whose entire premise is that names are
|
|
1101
|
+
// defeatable. Dropping the access key removed the false positives and the
|
|
1102
|
+
// escape hatch together.
|
|
1103
|
+
expect(() => assertNoStorageSecretInGeneratedEnv({
|
|
1104
|
+
STORAGE_PROVIDER: TEST_STORAGE_ACCESS_KEY,
|
|
1105
|
+
STORAGE_ENDPOINT: TEST_STORAGE_ACCESS_KEY,
|
|
1106
|
+
SOME_OTHER_KEY: TEST_STORAGE_ACCESS_KEY,
|
|
1107
|
+
}, credentials, 'testBuilder')).not.toThrow();
|
|
1108
|
+
});
|
|
1109
|
+
it('fires on the SECRET even under a key that used to be exempt', () => {
|
|
1110
|
+
// The load-bearing consequence of removing the exemption list. Previously
|
|
1111
|
+
// `STORAGE_ENDPOINT` was skipped entirely, so a secret emitted under it would
|
|
1112
|
+
// have passed. No key is skipped now.
|
|
1113
|
+
expect(() => assertNoStorageSecretInGeneratedEnv({ STORAGE_ENDPOINT: TEST_STORAGE_SECRET_KEY }, credentials, 'testBuilder')).toThrow(/STORAGE_ENDPOINT/);
|
|
1114
|
+
});
|
|
1115
|
+
it('fires on the SECRET under its own canonical key name', () => {
|
|
1116
|
+
expect(() => assertNoStorageSecretInGeneratedEnv({ STORAGE_SECRET_KEY: TEST_STORAGE_SECRET_KEY }, credentials, 'testBuilder')).toThrow(/STORAGE_SECRET_KEY/);
|
|
1117
|
+
});
|
|
1118
|
+
});
|
|
1119
|
+
describe('assertNoStorageSecretInGeneratedEnv — every application-tier builder is a call site', () => {
|
|
1120
|
+
// `buildApplicationBackendEnv` and `buildApplicationWorkerEnv` each build an env
|
|
1121
|
+
// from scratch and so each need the guard; `buildApplicationMinionEnv` delegates
|
|
1122
|
+
// to the backend builder and inherits it. The worker was missed when the guard
|
|
1123
|
+
// first landed — it emits no STORAGE_* today, but `resolveRuntimeProviderEnv`
|
|
1124
|
+
// fans values out of the same `credentials` object the root pair lives in.
|
|
1125
|
+
// See `.claude/rules/invariant-call-site-enumeration.md`.
|
|
1126
|
+
const buildWorkerEnv = (workerCredentials, scopedProviderRefs) => PlatformEnvVarsBuilder.buildApplicationWorkerEnv(appBootstrapCredentials, 'myRustWorker', 'wonder-todos-my-rust-worker', workerCredentials, createConfig({}), 'local', declaredProviderScope(scopedProviderRefs), {});
|
|
1127
|
+
it('the worker builder produces a clean env today', () => {
|
|
1128
|
+
// Positive control: without this, the throwing test below could not be
|
|
1129
|
+
// distinguished from a builder that fails for any input.
|
|
1130
|
+
expect(() => buildWorkerEnv(credentials, [])).not.toThrow();
|
|
1131
|
+
});
|
|
1132
|
+
it('the worker builder REFUSES when the storage secret reaches its env through a provider value', () => {
|
|
1133
|
+
// Drives the guard through the only channel by which the worker env can
|
|
1134
|
+
// currently carry arbitrary values out of `credentials` — the scoped provider
|
|
1135
|
+
// fan-out. Asserting the OUTPUT instead would pass whether or not the guard is
|
|
1136
|
+
// wired, which is precisely the mistake that let the worker call site go
|
|
1137
|
+
// missing in the first place.
|
|
1138
|
+
const leaking = {
|
|
1139
|
+
...credentials,
|
|
1140
|
+
providerEnv: { OPENAI_API_KEY: TEST_STORAGE_SECRET_KEY },
|
|
1141
|
+
};
|
|
1142
|
+
expect(() => buildWorkerEnv(leaking, ['openai'])).toThrow(/buildApplicationWorkerEnv emitted platform-tier credentials/);
|
|
1143
|
+
});
|
|
1144
|
+
});
|
|
1145
|
+
describe('PlatformEnvVarsBuilder — provider secrets are scoped to the declared providers (minions plan R6 / F19)', () => {
|
|
1146
|
+
const PROVIDER_ENV = {
|
|
1147
|
+
OPENAI_API_KEY: 'sk-openai-xxxxxxxx',
|
|
1148
|
+
ANTHROPIC_API_KEY: 'sk-anthropic-xxxxxxxx',
|
|
1149
|
+
STRIPE_SECRET_KEY: 'sk-stripe-xxxxxxxx',
|
|
1150
|
+
RESEND_API_KEY: 're-resend-xxxxxxxx',
|
|
1151
|
+
};
|
|
1152
|
+
function buildScoped(scopedProviderRefs) {
|
|
1153
|
+
return PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', { ...credentials, providerEnv: PROVIDER_ENV }, addresses, createConfig({}), 'local', declaredProviderScope(scopedProviderRefs), { deploymentLocationType: WildoLocationType.LOCAL });
|
|
1154
|
+
}
|
|
1155
|
+
it('gives a runtime scoped to openai ONLY the openai key', () => {
|
|
1156
|
+
// The finding in one assertion: a marketing-scraper minion declared with
|
|
1157
|
+
// `openai` was receiving the application's Stripe secret key.
|
|
1158
|
+
const env = buildScoped(['openai']);
|
|
1159
|
+
expect(env.OPENAI_API_KEY).toBe(PROVIDER_ENV.OPENAI_API_KEY);
|
|
1160
|
+
expect(env.STRIPE_SECRET_KEY).toBeUndefined();
|
|
1161
|
+
expect(env.ANTHROPIC_API_KEY).toBeUndefined();
|
|
1162
|
+
expect(env.RESEND_API_KEY).toBeUndefined();
|
|
1163
|
+
});
|
|
1164
|
+
it('gives a runtime declaring NO providers no provider secrets at all', () => {
|
|
1165
|
+
// `myRustWorker` declares `providers: {}` and previously received every key.
|
|
1166
|
+
const env = buildScoped([]);
|
|
1167
|
+
for (const key of Object.keys(PROVIDER_ENV)) {
|
|
1168
|
+
expect(env[key], key).toBeUndefined();
|
|
1169
|
+
}
|
|
1170
|
+
});
|
|
1171
|
+
it('FAILS CLOSED when the scope is omitted entirely', () => {
|
|
1172
|
+
// The load-bearing default. "Omitted" must mean NONE, not ALL — the opposite
|
|
1173
|
+
// default is exactly how every minion came to hold every provider secret.
|
|
1174
|
+
const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', { ...credentials, providerEnv: PROVIDER_ENV }, addresses, createConfig({}), 'local', declaredProviderScope([]), { deploymentLocationType: WildoLocationType.LOCAL });
|
|
1175
|
+
expect(env.STRIPE_SECRET_KEY).toBeUndefined();
|
|
1176
|
+
expect(env.OPENAI_API_KEY).toBeUndefined();
|
|
1177
|
+
});
|
|
1178
|
+
it('still gives a broadly-scoped runtime everything it declared', () => {
|
|
1179
|
+
// The filter must not be a blunt instrument: the backend declares most
|
|
1180
|
+
// providers and must keep them, or storage/AI/billing all break.
|
|
1181
|
+
const env = buildScoped(['openai', 'anthropic', 'stripe', 'resend']);
|
|
1182
|
+
expect(env.OPENAI_API_KEY).toBe(PROVIDER_ENV.OPENAI_API_KEY);
|
|
1183
|
+
expect(env.ANTHROPIC_API_KEY).toBe(PROVIDER_ENV.ANTHROPIC_API_KEY);
|
|
1184
|
+
expect(env.STRIPE_SECRET_KEY).toBe(PROVIDER_ENV.STRIPE_SECRET_KEY);
|
|
1185
|
+
expect(env.RESEND_API_KEY).toBe(PROVIDER_ENV.RESEND_API_KEY);
|
|
1186
|
+
});
|
|
1187
|
+
it('keeps NON-attributable keys, which are configuration rather than secrets', () => {
|
|
1188
|
+
// A key no provider claims is config (a hostname, a database name). Dropping
|
|
1189
|
+
// it would break runtimes for a reason unrelated to credentials.
|
|
1190
|
+
const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', { ...credentials, providerEnv: { ...PROVIDER_ENV, SOME_PLAIN_CONFIG: 'not-a-provider-secret' } }, addresses, createConfig({}), 'local', declaredProviderScope(['openai']), { deploymentLocationType: WildoLocationType.LOCAL });
|
|
1191
|
+
expect(env.SOME_PLAIN_CONFIG).toBe('not-a-provider-secret');
|
|
1192
|
+
expect(env.STRIPE_SECRET_KEY).toBeUndefined();
|
|
1193
|
+
});
|
|
1194
|
+
});
|
|
1195
|
+
describe('PlatformEnvVarsBuilder — a minion receives the providers it DECLARED (F-F)', () => {
|
|
1196
|
+
// `providers.scopes.minions.<name>` is the authored boundary. Two ways to get it
|
|
1197
|
+
// wrong, and the minion path has been on both sides: inheriting the whole
|
|
1198
|
+
// application bag (a minion scoped to `openai` holding STRIPE_SECRET_KEY), or
|
|
1199
|
+
// fail-closing to nothing (the same minion losing the `openai` key it declared
|
|
1200
|
+
// and needs). Only the DECLARED set is correct.
|
|
1201
|
+
const credentialsWithProviders = {
|
|
1202
|
+
...credentials,
|
|
1203
|
+
providerEnv: {
|
|
1204
|
+
OPENAI_API_KEY: 'sk-openai-test',
|
|
1205
|
+
STRIPE_SECRET_KEY: 'sk-stripe-test',
|
|
1206
|
+
RESEND_API_KEY: 're_test',
|
|
1207
|
+
},
|
|
1208
|
+
};
|
|
1209
|
+
// The scope is a POSITIONAL argument, which is what makes this helper honest. While it was an
|
|
1210
|
+
// optional field on `options`, an earlier version compiled cleanly through a conditional spread
|
|
1211
|
+
// (a spread suppresses TypeScript's excess-property check) even though the builder's options type
|
|
1212
|
+
// did not declare the field at all — the test exercised the runtime and hid the very type gap
|
|
1213
|
+
// that kept the generator from passing it. A positional parameter has no such escape: this helper
|
|
1214
|
+
// cannot call the builder without stating a scope, and neither can production code.
|
|
1215
|
+
// The access declaration is a PARAMETER here for the same reason the scope is:
|
|
1216
|
+
// a helper that hard-coded one would let a caller omit the distinction between
|
|
1217
|
+
// "declared nothing" and "declared empty", which is the distinction that decides
|
|
1218
|
+
// whether a minion receives database topology at all.
|
|
1219
|
+
const buildMinionEnv = (scopedProviderRefs, accessDeclaration = { resourceAccess: {} }) => PlatformEnvVarsBuilder.buildApplicationMinionEnv(appBootstrapCredentials, 'wonder-todos-marketing-scrapper', credentialsWithProviders, addresses, createConfig({}), 'local', declaredProviderScope(scopedProviderRefs), accessDeclaration, {
|
|
1220
|
+
deploymentLocationType: WildoLocationType.LOCAL,
|
|
1221
|
+
appDatabaseName: 'wonder_todos',
|
|
1222
|
+
});
|
|
1223
|
+
/**
|
|
1224
|
+
* R-COHERENCE (Step 5-egress): a minion that may not REACH a backing service
|
|
1225
|
+
* must not receive that service's topology either.
|
|
1226
|
+
*
|
|
1227
|
+
* The failure these prevent is not a refusal — it is that `isConfigured()`
|
|
1228
|
+
* reports true, a probe or a first use runs, and an unroutable host fails as a
|
|
1229
|
+
* timeout, reading as "the service is down" for a runtime that was never
|
|
1230
|
+
* supposed to have it.
|
|
1231
|
+
*/
|
|
1232
|
+
it('a minion that DECLARED NO resourceAccess receives no database or storage topology', () => {
|
|
1233
|
+
const env = buildMinionEnv(['openai'], {});
|
|
1234
|
+
expect(env.MONGODB_HOST).toBeUndefined();
|
|
1235
|
+
expect(env.POSTGRESQL_HOST).toBeUndefined();
|
|
1236
|
+
expect(env.STORAGE_ENDPOINT).toBeUndefined();
|
|
1237
|
+
});
|
|
1238
|
+
it('…but STILL receives queue and cache topology, whose credentials are always minted', () => {
|
|
1239
|
+
// Withholding these would strand a credential apps-manager issues to every
|
|
1240
|
+
// minion — the same incoherence from the other direction.
|
|
1241
|
+
const env = buildMinionEnv(['openai'], {});
|
|
1242
|
+
expect(env.RABBITMQ_HOST).toBeDefined();
|
|
1243
|
+
expect(env.REDIS_HOST).toBeDefined();
|
|
1244
|
+
});
|
|
1245
|
+
it('a minion that DECLARED resourceAccess receives database topology', () => {
|
|
1246
|
+
// Declared-but-empty counts as declared. If this reddens while the pin above
|
|
1247
|
+
// stays green, presence was replaced by truthiness.
|
|
1248
|
+
const env = buildMinionEnv(['openai'], { resourceAccess: {} });
|
|
1249
|
+
expect(env.MONGODB_HOST).toBeDefined();
|
|
1250
|
+
});
|
|
1251
|
+
it('the APPLICATION BACKEND is unaffected by the minion gate', () => {
|
|
1252
|
+
// The builder the minion delegates to is the backend's own. This is the pin
|
|
1253
|
+
// that reddens if the gate is applied inside it without a per-runtime input —
|
|
1254
|
+
// narrowing the backend while believing only a minion was narrowed.
|
|
1255
|
+
const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-backend', credentialsWithProviders, addresses, createConfig({}), 'local', declaredProviderScope(['openai']), { deploymentLocationType: WildoLocationType.LOCAL, appDatabaseName: 'wonder_todos' });
|
|
1256
|
+
expect(env.MONGODB_HOST).toBeDefined();
|
|
1257
|
+
expect(env.STORAGE_ENDPOINT).toBeDefined();
|
|
1258
|
+
});
|
|
1259
|
+
it('receives the DECLARED provider key', () => {
|
|
1260
|
+
expect(buildMinionEnv(['openai']).OPENAI_API_KEY).toBe('sk-openai-test');
|
|
1261
|
+
});
|
|
1262
|
+
it('does NOT receive provider keys it did not declare', () => {
|
|
1263
|
+
const env = buildMinionEnv(['openai']);
|
|
1264
|
+
expect(env.STRIPE_SECRET_KEY).toBeUndefined();
|
|
1265
|
+
expect(env.RESEND_API_KEY).toBeUndefined();
|
|
1266
|
+
});
|
|
1267
|
+
it('receives NO provider secrets when it declares none (fail-closed)', () => {
|
|
1268
|
+
const env = buildMinionEnv([]);
|
|
1269
|
+
expect(env.OPENAI_API_KEY).toBeUndefined();
|
|
1270
|
+
expect(env.STRIPE_SECRET_KEY).toBeUndefined();
|
|
1271
|
+
});
|
|
1272
|
+
});
|
|
1273
|
+
describe('assertNoPlatformCredentialInGeneratedEnv — the whole platform credential set, not just storage', () => {
|
|
1274
|
+
// Storage was found by reading code, not by a check. The other backing services
|
|
1275
|
+
// are absent from app env only because each mints per-application credentials —
|
|
1276
|
+
// a property of how they happen to be wired, enforced nowhere. A future provider
|
|
1277
|
+
// that skips minting (exactly what the MinIO module did) would reproduce the
|
|
1278
|
+
// same exposure against a different service with nothing to catch it.
|
|
1279
|
+
const cases = [
|
|
1280
|
+
['the MongoDB root password', credentials.mongodb.rootPassword],
|
|
1281
|
+
['the RabbitMQ admin password', credentials.rabbitmq.adminPassword],
|
|
1282
|
+
['the RabbitMQ Erlang cookie', credentials.rabbitmq.erlangCookie],
|
|
1283
|
+
['the object storage ROOT credential', TEST_STORAGE_SECRET_KEY],
|
|
1284
|
+
];
|
|
1285
|
+
for (const [label, value] of cases) {
|
|
1286
|
+
it(`refuses ${label} under an arbitrary key`, () => {
|
|
1287
|
+
expect(() => assertNoPlatformCredentialInGeneratedEnv({ INNOCENT_LOOKING_KEY: value }, credentials, 'testBuilder')).toThrow(/emitted platform-tier credentials/);
|
|
1288
|
+
});
|
|
1289
|
+
}
|
|
1290
|
+
it('refuses a credential EMBEDDED inside a connection URL — raw or percent-encoded (containment, 5.3 review F6)', () => {
|
|
1291
|
+
// A URL-embedded credential is exactly as leaked as a bare one. The exact-value comparison
|
|
1292
|
+
// was blind to it — and `PG_CONNECT_URL` now legitimately carries the encoded admin password
|
|
1293
|
+
// on the PLATFORM tier, so a future app-tier builder copying that URL is the live scenario.
|
|
1294
|
+
const rawEmbedded = `postgresql://wildo_admin:${credentials.postgresql.adminPassword}@host:5432/db`;
|
|
1295
|
+
expect(() => assertNoPlatformCredentialInGeneratedEnv({ SOME_URL: rawEmbedded }, credentials, 'testBuilder')).toThrow(/emitted platform-tier credentials/);
|
|
1296
|
+
const specialCharCredentials = {
|
|
1297
|
+
...credentials,
|
|
1298
|
+
postgresql: { adminUser: 'wildo_admin', adminPassword: 'p@ss:w#rd-long-generated-value' },
|
|
1299
|
+
};
|
|
1300
|
+
const encodedEmbedded = `postgresql://wildo_admin:${encodeURIComponent('p@ss:w#rd-long-generated-value')}@host:5432/db`;
|
|
1301
|
+
expect(() => assertNoPlatformCredentialInGeneratedEnv({ SOME_URL: encodedEmbedded }, specialCharCredentials, 'testBuilder')).toThrow(/emitted platform-tier credentials/);
|
|
1302
|
+
});
|
|
1303
|
+
it('names every distinct credential it found, so one fix does not mask another', () => {
|
|
1304
|
+
try {
|
|
1305
|
+
assertNoPlatformCredentialInGeneratedEnv({ A_KEY: credentials.mongodb.rootPassword, B_KEY: TEST_STORAGE_SECRET_KEY }, credentials, 'testBuilder');
|
|
1306
|
+
throw new Error('expected the guard to throw');
|
|
1307
|
+
}
|
|
1308
|
+
catch (error) {
|
|
1309
|
+
const message = error.message;
|
|
1310
|
+
expect(message).toContain('A_KEY');
|
|
1311
|
+
expect(message).toContain('B_KEY');
|
|
1312
|
+
// …and still never the values themselves.
|
|
1313
|
+
expect(message).not.toContain(credentials.mongodb.rootPassword);
|
|
1314
|
+
expect(message).not.toContain(TEST_STORAGE_SECRET_KEY);
|
|
1315
|
+
}
|
|
1316
|
+
});
|
|
1317
|
+
it('does NOT fire on an IDENTIFIER — usernames collide with hostnames and provider ids', () => {
|
|
1318
|
+
expect(() => assertNoPlatformCredentialInGeneratedEnv({ SOME_KEY: credentials.mongodb.rootUser, OTHER: TEST_STORAGE_ACCESS_KEY }, credentials, 'testBuilder')).not.toThrow();
|
|
1319
|
+
});
|
|
1320
|
+
it('passes a clean env, so the widened guard is not vacuously green', () => {
|
|
1321
|
+
expect(() => assertNoPlatformCredentialInGeneratedEnv({ STORAGE_ENDPOINT: 'minio', MONGODB_HOST: 'mongodb' }, credentials, 'testBuilder')).not.toThrow();
|
|
1322
|
+
});
|
|
1323
|
+
});
|
|
1324
|
+
/**
|
|
1325
|
+
* The postgres credential-emission UNION rule (2026-08-11 regression pins).
|
|
1326
|
+
*
|
|
1327
|
+
* `shouldProvisionPostgreSQL` used to test ONLY `config.database.engine === POSTGRESQL`, while the
|
|
1328
|
+
* compose generator rendered the postgres SERVICE from the wider `needsLocalPostgreSQL` rule
|
|
1329
|
+
* (engine OR an author-declared SELF backing service). A MongoDB-platform app with
|
|
1330
|
+
* `backingServices.postgresql: SELF` therefore got a compose service with a BLANK
|
|
1331
|
+
* `POSTGRES_ADMIN_PASSWORD` — the container refuses to initialize and crash-loops, failing
|
|
1332
|
+
* `wildo local dev` at infrastructure readiness. These pins hold the two gates to one rule.
|
|
1333
|
+
*/
|
|
1334
|
+
describe('buildInfraCredentialEnv — postgres union rule', () => {
|
|
1335
|
+
it('emits postgres admin credentials for a MongoDB-platform env whose author declared a SELF postgres backing service', () => {
|
|
1336
|
+
const env = PlatformEnvVarsBuilder.buildInfraCredentialEnv(credentials, createConfig(), createEnvironment({
|
|
1337
|
+
backingServices: {
|
|
1338
|
+
[BackingServiceKind.POSTGRESQL]: { source: BackingServiceSource.SELF, host: 'localhost', port: 5432 },
|
|
1339
|
+
},
|
|
1340
|
+
}));
|
|
1341
|
+
expect(env.POSTGRES_ADMIN_USER).toBe('postgres');
|
|
1342
|
+
expect(env.POSTGRES_ADMIN_PASSWORD).toBe('postgres-password');
|
|
1343
|
+
expect(env.POSTGRES_ADMIN_DATABASE).toBe('postgres');
|
|
1344
|
+
});
|
|
1345
|
+
it('emits no postgres credentials when neither the engine nor a SELF backing service asks for them', () => {
|
|
1346
|
+
const env = PlatformEnvVarsBuilder.buildInfraCredentialEnv(credentials, createConfig(), createEnvironment());
|
|
1347
|
+
expect(Object.keys(env).filter((key) => key.startsWith('POSTGRES'))).toEqual([]);
|
|
1348
|
+
});
|
|
1349
|
+
it('fails LOUDLY, naming the remedy, when postgres is included but secrets carry no postgresql credentials', () => {
|
|
1350
|
+
const { postgresql: _omitted, ...withoutPostgres } = credentials;
|
|
1351
|
+
expect(() => PlatformEnvVarsBuilder.buildInfraCredentialEnv(withoutPostgres, createConfig(), createEnvironment({
|
|
1352
|
+
backingServices: {
|
|
1353
|
+
[BackingServiceKind.POSTGRESQL]: { source: BackingServiceSource.SELF, host: 'localhost', port: 5432 },
|
|
1354
|
+
},
|
|
1355
|
+
}))).toThrow(/wildo -y setup/);
|
|
1356
|
+
});
|
|
1357
|
+
});
|
|
1358
|
+
describe("emitPlatformPostgresEnv — the platform's OWN PostgreSQL (Phase 5.3, D7)", () => {
|
|
1359
|
+
it('a Mongo-engined platform emits NEITHER key — existing .env material stays byte-identical', () => {
|
|
1360
|
+
const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(credentials, addresses, createConfig(), createEnvironment());
|
|
1361
|
+
expect(env[PlatformInfrastructureEnvKeys.PG_CONNECT_URL]).toBeUndefined();
|
|
1362
|
+
expect(env[ApplicationBackendDataEnvKeys.DATABASE_DEFAULT_ADAPTER]).toBeUndefined();
|
|
1363
|
+
});
|
|
1364
|
+
/**
|
|
1365
|
+
* The transition-legal environment shape: platform engine POSTGRESQL + an AUTHORED mongodb
|
|
1366
|
+
* backing service (the 5.1 union's second half). A PG-engined platform without it is REFUSED
|
|
1367
|
+
* at generation time — see the dedicated pin below.
|
|
1368
|
+
*/
|
|
1369
|
+
const postgresEngineEnvironment = () => createEnvironment({
|
|
1370
|
+
database: { engine: DatabaseEngine.POSTGRESQL, source: BackingServiceSource.SELF },
|
|
1371
|
+
backingServices: {
|
|
1372
|
+
[BackingServiceKind.MONGODB]: { source: BackingServiceSource.SELF },
|
|
1373
|
+
},
|
|
1374
|
+
});
|
|
1375
|
+
it('a self-hosted PostgreSQL-engined platform gets the initdb-database URL + the adapter selection', () => {
|
|
1376
|
+
const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(credentials, addresses, createConfig({
|
|
1377
|
+
database: { engine: DatabaseEngine.POSTGRESQL, source: BackingServiceSource.SELF },
|
|
1378
|
+
}), postgresEngineEnvironment());
|
|
1379
|
+
// The URL targets the PLATFORM's OWN database — never `infrastructure.postgresql.database`,
|
|
1380
|
+
// which names the APPLICATION's database (see the distinctness pin below).
|
|
1381
|
+
expect(env[PlatformInfrastructureEnvKeys.PG_CONNECT_URL]).toBe('postgresql://postgres:postgres-password@postgresql:5432/wildo_platform?sslmode=disable');
|
|
1382
|
+
expect(env[ApplicationBackendDataEnvKeys.DATABASE_DEFAULT_ADAPTER]).toBe('postgresql');
|
|
1383
|
+
});
|
|
1384
|
+
it('the platform database is DISTINCT from the application database — the collision that would have shared tables', () => {
|
|
1385
|
+
/**
|
|
1386
|
+
* `infrastructure.postgresql.database` is mirrored from the author's
|
|
1387
|
+
* `backingServices.postgresql.database` — the APPLICATION's database, and also the compose
|
|
1388
|
+
* container's initdb database (for Wonder Todos local, literally `wonder-todos-db`). Pointing
|
|
1389
|
+
* the platform there put its ~94 tables — `users`, `organizations`, `applications` among them
|
|
1390
|
+
* — inside the application's database; and since every generated statement is
|
|
1391
|
+
* `create table if not exists`, an application provisioning its own schema afterwards would
|
|
1392
|
+
* SILENTLY ADOPT the platform's tables rather than fail. Two tenancy planes, one table set,
|
|
1393
|
+
* no diagnostic. This pin fixes the separation as a property, not a convention.
|
|
1394
|
+
*/
|
|
1395
|
+
const applicationDatabase = 'wonder-todos-db';
|
|
1396
|
+
const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(credentials, addresses, createConfig({
|
|
1397
|
+
database: { engine: DatabaseEngine.POSTGRESQL, source: BackingServiceSource.SELF },
|
|
1398
|
+
infrastructure: {
|
|
1399
|
+
storage: { provider: 'minio', useSsl: false, bucket: 'bucket' },
|
|
1400
|
+
postgresql: { database: applicationDatabase, sslMode: 'disable' },
|
|
1401
|
+
},
|
|
1402
|
+
}), postgresEngineEnvironment());
|
|
1403
|
+
const platformUrl = env[PlatformInfrastructureEnvKeys.PG_CONNECT_URL];
|
|
1404
|
+
expect(platformUrl).not.toContain(applicationDatabase);
|
|
1405
|
+
expect(platformUrl?.endsWith('/wildo_platform?sslmode=disable')).toBe(true);
|
|
1406
|
+
/**
|
|
1407
|
+
* …and the ADMIN key is the third name again — the MAINTENANCE database.
|
|
1408
|
+
*
|
|
1409
|
+
* This assertion previously read `toBe(applicationDatabase)`, explained by a comment claiming
|
|
1410
|
+
* the key carried "the container's initdb database". It does not, and never did: initdb is fed
|
|
1411
|
+
* by `POSTGRES_ADMIN_DATABASE` on a different transport (see the sibling pin below). What
|
|
1412
|
+
* `PG_ADMIN_DATABASE` actually addresses is where the admin pool CONNECTS to run
|
|
1413
|
+
* `CREATE DATABASE` — so pointing it at a database that pool is meant to CREATE made admin
|
|
1414
|
+
* init fail on every machine where it did not exist yet, disabling PostgreSQL provisioning for
|
|
1415
|
+
* the whole process behind a 200 `/health/ready`.
|
|
1416
|
+
*/
|
|
1417
|
+
expect(env[PlatformInfrastructureEnvKeys.PG_ADMIN_DATABASE]).toBe(PLATFORM_POSTGRES_MAINTENANCE_DATABASE);
|
|
1418
|
+
expect(env[PlatformInfrastructureEnvKeys.PG_ADMIN_DATABASE]).not.toBe(applicationDatabase);
|
|
1419
|
+
});
|
|
1420
|
+
/**
|
|
1421
|
+
* The three names are pinned TOGETHER because the defect was never visible in any one of them —
|
|
1422
|
+
* each value is individually plausible, and only their relationship is wrong. A regression that
|
|
1423
|
+
* re-derives any of the three from another reddens here.
|
|
1424
|
+
*/
|
|
1425
|
+
it('the three PostgreSQL database names stay mutually distinct — admin ≠ application ≠ platform', () => {
|
|
1426
|
+
const applicationDatabase = 'wonder-todos-db';
|
|
1427
|
+
const config = createConfig({
|
|
1428
|
+
database: { engine: DatabaseEngine.POSTGRESQL, source: BackingServiceSource.SELF },
|
|
1429
|
+
infrastructure: {
|
|
1430
|
+
storage: { provider: 'minio', useSsl: false, bucket: 'bucket' },
|
|
1431
|
+
postgresql: { database: applicationDatabase, sslMode: 'disable' },
|
|
1432
|
+
},
|
|
1433
|
+
});
|
|
1434
|
+
const environment = postgresEngineEnvironment();
|
|
1435
|
+
const appsManagerEnv = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(credentials, addresses, config, environment);
|
|
1436
|
+
const infraEnv = PlatformEnvVarsBuilder.buildInfraCredentialEnv(credentials, config, environment);
|
|
1437
|
+
// 1. Where the admin pool CONNECTS to provision — a database it never provisions itself.
|
|
1438
|
+
expect(appsManagerEnv[PlatformInfrastructureEnvKeys.PG_ADMIN_DATABASE]).toBe('postgres');
|
|
1439
|
+
// 2. The container's initdb database — a DIFFERENT key, and the one that genuinely follows the author.
|
|
1440
|
+
expect(infraEnv.POSTGRES_ADMIN_DATABASE).toBe(applicationDatabase);
|
|
1441
|
+
// 3. Where the platform's own tables live.
|
|
1442
|
+
expect(appsManagerEnv[PlatformInfrastructureEnvKeys.PG_CONNECT_URL]).toContain('/wildo_platform?');
|
|
1443
|
+
expect(new Set([
|
|
1444
|
+
appsManagerEnv[PlatformInfrastructureEnvKeys.PG_ADMIN_DATABASE],
|
|
1445
|
+
infraEnv.POSTGRES_ADMIN_DATABASE,
|
|
1446
|
+
PLATFORM_POSTGRES_DATABASE,
|
|
1447
|
+
]).size).toBe(3);
|
|
1448
|
+
});
|
|
1449
|
+
it('URL-encodes admin credentials — an @/:/# in the password must not corrupt the authority section', () => {
|
|
1450
|
+
const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv({
|
|
1451
|
+
...credentials,
|
|
1452
|
+
postgresql: { adminUser: 'wildo admin', adminPassword: 'p@ss:w#rd' },
|
|
1453
|
+
}, addresses, createConfig({
|
|
1454
|
+
database: { engine: DatabaseEngine.POSTGRESQL, source: BackingServiceSource.SELF },
|
|
1455
|
+
}), postgresEngineEnvironment());
|
|
1456
|
+
expect(env[PlatformInfrastructureEnvKeys.PG_CONNECT_URL]).toBe('postgresql://wildo%20admin:p%40ss%3Aw%23rd@postgresql:5432/wildo_platform?sslmode=disable');
|
|
1457
|
+
});
|
|
1458
|
+
it('an EXOTIC authored database name cannot leak into the platform URL — nor corrupt it', () => {
|
|
1459
|
+
/**
|
|
1460
|
+
* This pin used to assert that the AUTHORED name was percent-encoded into the platform URL.
|
|
1461
|
+
* That premise is gone: the platform now always targets its own `wildo_platform` database
|
|
1462
|
+
* (the collision fix), so an authored name — however hostile — must not appear at all. The
|
|
1463
|
+
* adversarial input is kept because it proves BOTH halves at once: no leak, and no truncation
|
|
1464
|
+
* of the URL by a `?` that would otherwise start a query string. The builder still encodes its
|
|
1465
|
+
* path segment defensively, which is what keeps that true if the name ever becomes derived.
|
|
1466
|
+
*/
|
|
1467
|
+
const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(credentials, addresses, createConfig({
|
|
1468
|
+
database: { engine: DatabaseEngine.POSTGRESQL, source: BackingServiceSource.SELF },
|
|
1469
|
+
infrastructure: {
|
|
1470
|
+
storage: { provider: 'minio', useSsl: false, bucket: 'bucket' },
|
|
1471
|
+
postgresql: { database: 'my db?x', sslMode: 'disable' },
|
|
1472
|
+
},
|
|
1473
|
+
}), postgresEngineEnvironment());
|
|
1474
|
+
expect(env[PlatformInfrastructureEnvKeys.PG_CONNECT_URL]).toBe('postgresql://postgres:postgres-password@postgresql:5432/wildo_platform?sslmode=disable');
|
|
1475
|
+
});
|
|
1476
|
+
it('an app-authored `backingServices.postgresql: SELF` on a Mongo platform does NOT emit — the gate is the platform ENGINE, not the provisioning union', () => {
|
|
1477
|
+
/**
|
|
1478
|
+
* The union predicate (`shouldProvisionPostgreSQL`) correctly renders the container and its
|
|
1479
|
+
* admin credentials for an APPLICATION's PostgreSQL resources. Handing the PLATFORM a connect
|
|
1480
|
+
* URL — let alone flipping its default adapter — off that same signal would point the control
|
|
1481
|
+
* plane at a database that belongs to an application. The two halves must stay apart.
|
|
1482
|
+
*/
|
|
1483
|
+
const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(credentials, addresses, createConfig(), createEnvironment({
|
|
1484
|
+
backingServices: {
|
|
1485
|
+
[BackingServiceKind.POSTGRESQL]: { source: BackingServiceSource.SELF },
|
|
1486
|
+
},
|
|
1487
|
+
}));
|
|
1488
|
+
expect(env[PlatformInfrastructureEnvKeys.PG_CONNECT_URL]).toBeUndefined();
|
|
1489
|
+
expect(env[ApplicationBackendDataEnvKeys.DATABASE_DEFAULT_ADAPTER]).toBeUndefined();
|
|
1490
|
+
// …while the provisioning half still does its job for the application's container.
|
|
1491
|
+
expect(env[PlatformInfrastructureEnvKeys.PG_HOST]).toBe('postgresql');
|
|
1492
|
+
});
|
|
1493
|
+
it('a MANAGED PostgreSQL platform passes the external connectionUrl through verbatim (the Atlas mirror)', () => {
|
|
1494
|
+
const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(credentials, addresses, createConfig({
|
|
1495
|
+
database: { engine: DatabaseEngine.POSTGRESQL, source: BackingServiceSource.MANAGED, provider: 'neon' },
|
|
1496
|
+
externalEndpoints: {
|
|
1497
|
+
postgresql: { connectionUrl: 'postgresql://neon-user:neon-pass@ep.neon.tech/wildo_platform?sslmode=require' },
|
|
1498
|
+
},
|
|
1499
|
+
}), createEnvironment({
|
|
1500
|
+
database: { engine: DatabaseEngine.POSTGRESQL, source: BackingServiceSource.MANAGED },
|
|
1501
|
+
backingServices: {
|
|
1502
|
+
[BackingServiceKind.MONGODB]: { source: BackingServiceSource.SELF },
|
|
1503
|
+
},
|
|
1504
|
+
}));
|
|
1505
|
+
expect(env[PlatformInfrastructureEnvKeys.PG_CONNECT_URL]).toBe('postgresql://neon-user:neon-pass@ep.neon.tech/wildo_platform?sslmode=require');
|
|
1506
|
+
expect(env[ApplicationBackendDataEnvKeys.DATABASE_DEFAULT_ADAPTER]).toBe('postgresql');
|
|
1507
|
+
});
|
|
1508
|
+
it('REFUSES a MANAGED PostgreSQL platform with no externalEndpoints.postgresql — at generation, naming the remedy', () => {
|
|
1509
|
+
// Without this, the emitter wrote PG_CONNECT_URL= (empty) and the failure surfaced as an
|
|
1510
|
+
// opaque "Invalid URL" inside boot-time env validation, three layers from the cause — and the
|
|
1511
|
+
// slot has no wizard authoring path, so EVERY managed-PG env would hit it.
|
|
1512
|
+
expect(() => PlatformEnvVarsBuilder.buildAppsManagerFullEnv(credentials, addresses, createConfig({
|
|
1513
|
+
database: { engine: DatabaseEngine.POSTGRESQL, source: BackingServiceSource.MANAGED, provider: 'neon' },
|
|
1514
|
+
}), createEnvironment({
|
|
1515
|
+
database: { engine: DatabaseEngine.POSTGRESQL, source: BackingServiceSource.MANAGED },
|
|
1516
|
+
backingServices: {
|
|
1517
|
+
[BackingServiceKind.MONGODB]: { source: BackingServiceSource.SELF },
|
|
1518
|
+
},
|
|
1519
|
+
}))).toThrow(/externalEndpoints\.postgresql/);
|
|
1520
|
+
});
|
|
1521
|
+
it('ACCEPTS a PostgreSQL-engined platform whose environment renders NO mongod', () => {
|
|
1522
|
+
/**
|
|
1523
|
+
* The inverse of what this asserted until 2026-08-28, when the requirement retired along with
|
|
1524
|
+
* its schema-side twin in `define-infra-env-config.ts`.
|
|
1525
|
+
*
|
|
1526
|
+
* The refusal was written for a real trap — a `MONGO_CONNECT_URL` pointing at a container no
|
|
1527
|
+
* transport renders — but the trap was downstream of `MONGO_CONNECT_URL` being an
|
|
1528
|
+
* unconditionally REQUIRED key on the apps-manager env schema. It is now optional and
|
|
1529
|
+
* empty-means-absent, exactly like `PG_CONNECT_URL`, so an unrendered mongod produces an ABSENT
|
|
1530
|
+
* key rather than a dangling address. The generator emits an empty string here and always did;
|
|
1531
|
+
* what changed is that the consumer now reads that as "not MongoDB-engined".
|
|
1532
|
+
*
|
|
1533
|
+
* The invariant that survives — a platform must render AT LEAST ONE store — lives on the env
|
|
1534
|
+
* schema, beside the keys it is about, where a hand-edited env file is also subject to it.
|
|
1535
|
+
*/
|
|
1536
|
+
const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(credentials, addresses, createConfig({
|
|
1537
|
+
database: { engine: DatabaseEngine.POSTGRESQL, source: BackingServiceSource.SELF },
|
|
1538
|
+
}), createEnvironment({
|
|
1539
|
+
database: { engine: DatabaseEngine.POSTGRESQL, source: BackingServiceSource.SELF },
|
|
1540
|
+
}));
|
|
1541
|
+
// Emitted EMPTY, not omitted — the compose interpolation contract, and what the schema's
|
|
1542
|
+
// `z.preprocess` reads as absent.
|
|
1543
|
+
expect(env.MONGO_CONNECT_URL).toBe('');
|
|
1544
|
+
expect(env.PG_CONNECT_URL).toBeTruthy();
|
|
1545
|
+
});
|
|
1546
|
+
});
|
|
1547
|
+
//# sourceMappingURL=env-vars-builder.service.test.js.map
|