@wildo-ai/wildo-cli 1.1.13 → 1.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/commands/build/approve.command.d.ts +4 -0
- package/dist/src/commands/build/approve.command.d.ts.map +1 -1
- package/dist/src/commands/build/approve.command.js +14 -3
- package/dist/src/commands/build/approve.command.js.map +1 -1
- package/dist/src/commands/build/close.command.d.ts +4 -0
- package/dist/src/commands/build/close.command.d.ts.map +1 -1
- package/dist/src/commands/build/close.command.js +17 -3
- package/dist/src/commands/build/close.command.js.map +1 -1
- package/dist/src/commands/config/sync.command.d.ts.map +1 -1
- package/dist/src/commands/config/sync.command.js +21 -1
- package/dist/src/commands/config/sync.command.js.map +1 -1
- package/dist/src/commands/creation/feed.command.d.ts.map +1 -1
- package/dist/src/commands/creation/feed.command.js +6 -3
- package/dist/src/commands/creation/feed.command.js.map +1 -1
- package/dist/src/commands/fwk/publish-all.command.d.ts +13 -0
- package/dist/src/commands/fwk/publish-all.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/publish-all.command.js +57 -3
- package/dist/src/commands/fwk/publish-all.command.js.map +1 -1
- package/dist/src/commands/fwk/publish-docker.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/publish-docker.command.js +16 -1
- package/dist/src/commands/fwk/publish-docker.command.js.map +1 -1
- package/dist/src/commands/fwk/registry-host.command.d.ts +19 -1
- package/dist/src/commands/fwk/registry-host.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/registry-host.command.js +78 -3
- package/dist/src/commands/fwk/registry-host.command.js.map +1 -1
- package/dist/src/commands/generate/email-command.utils.d.ts +2 -0
- package/dist/src/commands/generate/email-command.utils.d.ts.map +1 -1
- package/dist/src/commands/generate/email-command.utils.js +5 -0
- package/dist/src/commands/generate/email-command.utils.js.map +1 -1
- package/dist/src/commands/init.command.d.ts +14 -0
- package/dist/src/commands/init.command.d.ts.map +1 -1
- package/dist/src/commands/init.command.js +36 -5
- package/dist/src/commands/init.command.js.map +1 -1
- package/dist/src/commands/local/deregister.command.d.ts.map +1 -1
- package/dist/src/commands/local/deregister.command.js +4 -0
- package/dist/src/commands/local/deregister.command.js.map +1 -1
- package/dist/src/commands/local/dev.command.d.ts +6 -0
- package/dist/src/commands/local/dev.command.d.ts.map +1 -1
- package/dist/src/commands/local/dev.command.js +72 -0
- package/dist/src/commands/local/dev.command.js.map +1 -1
- package/dist/src/commands/local/jobs-command.utils.d.ts +24 -0
- package/dist/src/commands/local/jobs-command.utils.d.ts.map +1 -0
- package/dist/src/commands/local/jobs-command.utils.js +44 -0
- package/dist/src/commands/local/jobs-command.utils.js.map +1 -0
- package/dist/src/commands/local/jobs-run.command.d.ts +7 -0
- package/dist/src/commands/local/jobs-run.command.d.ts.map +1 -0
- package/dist/src/commands/local/jobs-run.command.js +92 -0
- package/dist/src/commands/local/jobs-run.command.js.map +1 -0
- package/dist/src/commands/local/jobs.command.d.ts +7 -0
- package/dist/src/commands/local/jobs.command.d.ts.map +1 -0
- package/dist/src/commands/local/jobs.command.js +59 -0
- package/dist/src/commands/local/jobs.command.js.map +1 -0
- package/dist/src/commands/local/tunnel.command.d.ts +84 -0
- package/dist/src/commands/local/tunnel.command.d.ts.map +1 -0
- package/dist/src/commands/local/tunnel.command.js +274 -0
- package/dist/src/commands/local/tunnel.command.js.map +1 -0
- package/dist/src/commands/registry/repair-lockfile.command.d.ts.map +1 -1
- package/dist/src/commands/registry/repair-lockfile.command.js +1 -0
- package/dist/src/commands/registry/repair-lockfile.command.js.map +1 -1
- package/dist/src/commands/registry/update.command.d.ts.map +1 -1
- package/dist/src/commands/registry/update.command.js +1 -0
- package/dist/src/commands/registry/update.command.js.map +1 -1
- package/dist/src/commands/seal/verify.command.d.ts +18 -0
- package/dist/src/commands/seal/verify.command.d.ts.map +1 -1
- package/dist/src/commands/seal/verify.command.js +62 -1
- package/dist/src/commands/seal/verify.command.js.map +1 -1
- package/dist/src/services/application/app-bootstrap.service.d.ts +41 -1
- package/dist/src/services/application/app-bootstrap.service.d.ts.map +1 -1
- package/dist/src/services/application/app-bootstrap.service.js +49 -3
- package/dist/src/services/application/app-bootstrap.service.js.map +1 -1
- package/dist/src/services/application/app-runtime-targets.service.d.ts.map +1 -1
- package/dist/src/services/application/app-runtime-targets.service.js +9 -1
- package/dist/src/services/application/app-runtime-targets.service.js.map +1 -1
- package/dist/src/services/application/application-dependency-alignment.service.d.ts +20 -0
- package/dist/src/services/application/application-dependency-alignment.service.d.ts.map +1 -1
- package/dist/src/services/application/application-dependency-alignment.service.js +32 -2
- package/dist/src/services/application/application-dependency-alignment.service.js.map +1 -1
- package/dist/src/services/application/local-tunnel.service.d.ts +153 -0
- package/dist/src/services/application/local-tunnel.service.d.ts.map +1 -0
- package/dist/src/services/application/local-tunnel.service.js +294 -0
- package/dist/src/services/application/local-tunnel.service.js.map +1 -0
- package/dist/src/services/application/provider-runtime-sync.service.d.ts.map +1 -1
- package/dist/src/services/application/provider-runtime-sync.service.js +29 -1
- package/dist/src/services/application/provider-runtime-sync.service.js.map +1 -1
- package/dist/src/services/application/saas-skeleton.service.d.ts +7 -0
- package/dist/src/services/application/saas-skeleton.service.d.ts.map +1 -1
- package/dist/src/services/application/saas-skeleton.service.js +26 -2
- package/dist/src/services/application/saas-skeleton.service.js.map +1 -1
- package/dist/src/services/catalog/service-address-resolver.service.d.ts +7 -1
- package/dist/src/services/catalog/service-address-resolver.service.d.ts.map +1 -1
- package/dist/src/services/catalog/service-address-resolver.service.js +6 -3
- package/dist/src/services/catalog/service-address-resolver.service.js.map +1 -1
- package/dist/src/services/companion/build-console.service.d.ts +39 -2
- package/dist/src/services/companion/build-console.service.d.ts.map +1 -1
- package/dist/src/services/companion/build-console.service.js +54 -4
- package/dist/src/services/companion/build-console.service.js.map +1 -1
- package/dist/src/services/companion/creation-console.service.d.ts +6 -1
- package/dist/src/services/companion/creation-console.service.d.ts.map +1 -1
- package/dist/src/services/companion/creation-console.service.js +14 -2
- package/dist/src/services/companion/creation-console.service.js.map +1 -1
- package/dist/src/services/companion/creation-drive.service.d.ts.map +1 -1
- package/dist/src/services/companion/creation-drive.service.js +5 -2
- package/dist/src/services/companion/creation-drive.service.js.map +1 -1
- package/dist/src/services/credentials/application-secrets.service.d.ts +6 -0
- package/dist/src/services/credentials/application-secrets.service.d.ts.map +1 -1
- package/dist/src/services/credentials/application-secrets.service.js +1 -1
- package/dist/src/services/credentials/application-secrets.service.js.map +1 -1
- package/dist/src/services/credentials/composed-provider-catalogue.d.ts.map +1 -1
- package/dist/src/services/credentials/composed-provider-catalogue.js +14 -2
- package/dist/src/services/credentials/composed-provider-catalogue.js.map +1 -1
- package/dist/src/services/credentials/provider-env-vars.utils.d.ts.map +1 -1
- package/dist/src/services/credentials/provider-env-vars.utils.js +3 -1
- package/dist/src/services/credentials/provider-env-vars.utils.js.map +1 -1
- package/dist/src/services/credentials/secret-requirements.service.d.ts +2 -1
- package/dist/src/services/credentials/secret-requirements.service.d.ts.map +1 -1
- package/dist/src/services/credentials/secret-requirements.service.js +17 -1
- package/dist/src/services/credentials/secret-requirements.service.js.map +1 -1
- package/dist/src/services/credentials/secrets-writer.service.d.ts +11 -2
- package/dist/src/services/credentials/secrets-writer.service.d.ts.map +1 -1
- package/dist/src/services/credentials/secrets-writer.service.js +12 -3
- package/dist/src/services/credentials/secrets-writer.service.js.map +1 -1
- package/dist/src/services/deployment/application-runtime-environment.d.ts.map +1 -1
- package/dist/src/services/deployment/application-runtime-environment.js +3 -13
- package/dist/src/services/deployment/application-runtime-environment.js.map +1 -1
- package/dist/src/services/deployment/ci-deploy-generator.service.d.ts.map +1 -1
- package/dist/src/services/deployment/ci-deploy-generator.service.js +3 -3
- package/dist/src/services/deployment/ci-deploy-generator.service.js.map +1 -1
- package/dist/src/services/deployment/docker/docker-compose-generator.service.d.ts +3 -3
- package/dist/src/services/deployment/docker/docker-compose-generator.service.d.ts.map +1 -1
- package/dist/src/services/deployment/docker/docker-compose-generator.service.js +24 -14
- package/dist/src/services/deployment/docker/docker-compose-generator.service.js.map +1 -1
- package/dist/src/services/deployment/framework-pod-network-membership.d.ts +6 -0
- package/dist/src/services/deployment/framework-pod-network-membership.d.ts.map +1 -1
- package/dist/src/services/deployment/framework-pod-network-membership.js +12 -3
- package/dist/src/services/deployment/framework-pod-network-membership.js.map +1 -1
- package/dist/src/services/deployment/host-toolchain-readiness.service.d.ts +1 -1
- package/dist/src/services/deployment/host-toolchain-readiness.service.js +1 -1
- package/dist/src/services/deployment/host-toolchain-readiness.service.js.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.d.ts +4 -1
- package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.js +20 -8
- package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.js.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-manifest.schemas.d.ts +7 -0
- package/dist/src/services/deployment/k8s/k8s-manifest.schemas.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-manifest.schemas.js.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-secrets-generator.service.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-secrets-generator.service.js +15 -9
- package/dist/src/services/deployment/k8s/k8s-secrets-generator.service.js.map +1 -1
- package/dist/src/services/deployment/k8s/kind-pod-host-gateway.d.ts +43 -0
- package/dist/src/services/deployment/k8s/kind-pod-host-gateway.d.ts.map +1 -0
- package/dist/src/services/deployment/k8s/kind-pod-host-gateway.js +12 -0
- package/dist/src/services/deployment/k8s/kind-pod-host-gateway.js.map +1 -0
- package/dist/src/services/deployment/k8s/off-cluster-backing-services.d.ts +3 -1
- package/dist/src/services/deployment/k8s/off-cluster-backing-services.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/off-cluster-backing-services.js.map +1 -1
- package/dist/src/services/deployment/local-dev-late-workspace-members.service.d.ts +124 -0
- package/dist/src/services/deployment/local-dev-late-workspace-members.service.d.ts.map +1 -0
- package/dist/src/services/deployment/local-dev-late-workspace-members.service.js +249 -0
- package/dist/src/services/deployment/local-dev-late-workspace-members.service.js.map +1 -0
- package/dist/src/services/deployment/local-precondition-checks.service.d.ts.map +1 -1
- package/dist/src/services/deployment/local-precondition-checks.service.js +4 -2
- package/dist/src/services/deployment/local-precondition-checks.service.js.map +1 -1
- package/dist/src/services/environment/authored-infra-config.utils.d.ts +9 -0
- package/dist/src/services/environment/authored-infra-config.utils.d.ts.map +1 -1
- package/dist/src/services/environment/authored-infra-config.utils.js +20 -1
- package/dist/src/services/environment/authored-infra-config.utils.js.map +1 -1
- package/dist/src/services/environment/container-host-gateway-listen-host.d.ts +6 -0
- package/dist/src/services/environment/container-host-gateway-listen-host.d.ts.map +1 -1
- package/dist/src/services/environment/container-host-gateway-listen-host.js +6 -0
- package/dist/src/services/environment/container-host-gateway-listen-host.js.map +1 -1
- package/dist/src/services/environment/env-configuration-generator.service.d.ts +12 -0
- package/dist/src/services/environment/env-configuration-generator.service.d.ts.map +1 -1
- package/dist/src/services/environment/env-configuration-generator.service.js +45 -8
- package/dist/src/services/environment/env-configuration-generator.service.js.map +1 -1
- package/dist/src/services/environment/env-vars-builder.service.d.ts +2 -1
- package/dist/src/services/environment/env-vars-builder.service.d.ts.map +1 -1
- package/dist/src/services/environment/env-vars-builder.service.js +47 -32
- package/dist/src/services/environment/env-vars-builder.service.js.map +1 -1
- package/dist/src/services/environment/environment-lifecycle.service.d.ts +7 -4
- package/dist/src/services/environment/environment-lifecycle.service.d.ts.map +1 -1
- package/dist/src/services/environment/environment-lifecycle.service.js +14 -18
- package/dist/src/services/environment/environment-lifecycle.service.js.map +1 -1
- package/dist/src/services/environment/environment-service-profile.utils.d.ts +8 -1
- package/dist/src/services/environment/environment-service-profile.utils.d.ts.map +1 -1
- package/dist/src/services/environment/environment-service-profile.utils.js +14 -1
- package/dist/src/services/environment/environment-service-profile.utils.js.map +1 -1
- package/dist/src/services/environment/environment-setup.service.d.ts.map +1 -1
- package/dist/src/services/environment/environment-setup.service.js +17 -6
- package/dist/src/services/environment/environment-setup.service.js.map +1 -1
- package/dist/src/services/environment/environment.service.d.ts +4 -3
- package/dist/src/services/environment/environment.service.d.ts.map +1 -1
- package/dist/src/services/environment/environment.service.js +0 -1
- package/dist/src/services/environment/environment.service.js.map +1 -1
- package/dist/src/services/framework/framework-docker-publish.service.d.ts +129 -0
- package/dist/src/services/framework/framework-docker-publish.service.d.ts.map +1 -1
- package/dist/src/services/framework/framework-docker-publish.service.js +271 -19
- package/dist/src/services/framework/framework-docker-publish.service.js.map +1 -1
- package/dist/src/services/framework/github-actions-annotation.d.ts +19 -0
- package/dist/src/services/framework/github-actions-annotation.d.ts.map +1 -0
- package/dist/src/services/framework/github-actions-annotation.js +25 -0
- package/dist/src/services/framework/github-actions-annotation.js.map +1 -0
- package/dist/src/services/framework/registry-host/registry-host-upgrade.d.ts +43 -0
- package/dist/src/services/framework/registry-host/registry-host-upgrade.d.ts.map +1 -0
- package/dist/src/services/framework/registry-host/registry-host-upgrade.js +117 -0
- package/dist/src/services/framework/registry-host/registry-host-upgrade.js.map +1 -0
- package/dist/src/services/framework/registry-host/registry-host.service.d.ts +1 -1
- package/dist/src/services/framework/registry-host/registry-host.service.d.ts.map +1 -1
- package/dist/src/services/framework/registry-host/registry-host.service.js +2 -0
- package/dist/src/services/framework/registry-host/registry-host.service.js.map +1 -1
- package/dist/src/services/registry/installed-file-state.utils.d.ts +8 -0
- package/dist/src/services/registry/installed-file-state.utils.d.ts.map +1 -1
- package/dist/src/services/registry/installed-file-state.utils.js +9 -1
- package/dist/src/services/registry/installed-file-state.utils.js.map +1 -1
- package/dist/src/services/registry/module-install.service.d.ts.map +1 -1
- package/dist/src/services/registry/module-install.service.js +1 -0
- package/dist/src/services/registry/module-install.service.js.map +1 -1
- package/dist/src/services/registry/provider-module-scaffold.service.d.ts.map +1 -1
- package/dist/src/services/registry/provider-module-scaffold.service.js +4 -0
- package/dist/src/services/registry/provider-module-scaffold.service.js.map +1 -1
- package/dist/src/services/security/csp-sync.service.d.ts.map +1 -1
- package/dist/src/services/security/csp-sync.service.js +21 -2
- package/dist/src/services/security/csp-sync.service.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/framework-root-package.json +3 -3
- package/package.json +23 -23
- package/scripts/app-dependency-alignment/propagated-engine-overrides.json +1 -1
- package/templates/infra/docker-compose/docker-compose.wildo-platform.yml.hbs +31 -9
- package/templates/infra/k8s/platform/platform-crontabs-batches-manager/deployment.yaml.hbs +13 -0
- package/templates/infra/registry-host/docker-compose.yml +9 -2
- package/templates/infra/registry-host/upgrade-image.sh +108 -0
- package/templates/saas/i18n/email/resources/dataSubjectRequests/create.users-custom_ready/labels.fr.ts +22 -0
- package/templates/saas/i18n/email/resources/dataSubjectRequests/create.users-custom_received/labels.fr.ts +23 -0
- package/templates/saas/i18n/email/resources/dataSubjectRequests/update.users-custom_extended/labels.fr.ts +23 -0
- package/templates/saas/i18n/email/resources/organizationSsoConfig/repairUnreadableConfiguration.organization-users/labels.fr.ts +23 -0
- package/templates/saas/i18n/engine/components/HIGH_LEVEL_VIEWS_CHART_DASHBOARD_LAYOUT_EDITOR.en.ts +28 -0
- package/templates/saas/i18n/engine/components/HIGH_LEVEL_VIEWS_CHART_DASHBOARD_LAYOUT_EDITOR.fr.ts +28 -0
- package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_APPROVAL.en.ts +2 -1
- package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_APPROVAL.fr.ts +2 -1
- package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_CONVERSATION_THREAD.en.ts +6 -1
- package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_CONVERSATION_THREAD.fr.ts +6 -1
- package/templates/saas/i18n/engine/components/LOW_LEVEL_APPROVAL_SEAL.en.ts +40 -0
- package/templates/saas/i18n/engine/components/LOW_LEVEL_APPROVAL_SEAL.fr.ts +40 -0
- package/templates/saas/i18n/engine/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.ts +2 -1
- package/templates/saas/i18n/engine/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.fr.ts +2 -1
- package/templates/saas/i18n/engine/components/LOW_LEVEL_FORM_FIELD_STRING.en.ts +2 -1
- package/templates/saas/i18n/engine/components/LOW_LEVEL_FORM_FIELD_STRING.fr.ts +2 -1
- package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.ts +2 -1
- package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.fr.ts +2 -1
- package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_TERMS.en.ts +3 -1
- package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_TERMS.fr.ts +3 -1
- package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_USER_AUTH.en.ts +2 -1
- package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_USER_AUTH.fr.ts +2 -1
- package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_FILTERS.en.ts +3 -1
- package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_FILTERS.fr.ts +4 -2
- package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_LIST.en.ts +18 -1
- package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_LIST.fr.ts +18 -1
- package/templates/saas/i18n/engine/resources/actorSystemExecutions.en.ts +10 -82
- package/templates/saas/i18n/engine/resources/actorSystemExecutions.fr.ts +0 -72
- package/templates/saas/i18n/engine/resources/actorTasks.en.ts +0 -33
- package/templates/saas/i18n/engine/resources/actorTasks.fr.ts +0 -33
- package/templates/saas/i18n/engine/resources/agentBehaviorReports.en.ts +0 -108
- package/templates/saas/i18n/engine/resources/agentBehaviorReports.fr.ts +0 -108
- package/templates/saas/i18n/engine/resources/agentOperationRecords.en.ts +8 -24
- package/templates/saas/i18n/engine/resources/agentOperationRecords.fr.ts +10 -26
- package/templates/saas/i18n/engine/resources/agentWorkCaptureSettings.en.ts +0 -12
- package/templates/saas/i18n/engine/resources/agentWorkCaptureSettings.fr.ts +0 -12
- package/templates/saas/i18n/engine/resources/anonymous_users.en.ts +8 -74
- package/templates/saas/i18n/engine/resources/anonymous_users.fr.ts +0 -66
- package/templates/saas/i18n/engine/resources/applicationA2aPushDeliveryLog.en.ts +3 -21
- package/templates/saas/i18n/engine/resources/applicationA2aPushDeliveryLog.fr.ts +0 -18
- package/templates/saas/i18n/engine/resources/applicationA2aTokenBudgetState.en.ts +3 -33
- package/templates/saas/i18n/engine/resources/applicationA2aTokenBudgetState.fr.ts +0 -30
- package/templates/saas/i18n/engine/resources/applicationAccessGrants.en.ts +13 -55
- package/templates/saas/i18n/engine/resources/applicationAccessGrants.fr.ts +0 -42
- package/templates/saas/i18n/engine/resources/applicationAgentPolicies.en.ts +8 -24
- package/templates/saas/i18n/engine/resources/applicationAgentPolicies.fr.ts +8 -24
- package/templates/saas/i18n/engine/resources/applicationAgentWorkDecisionContents.en.ts +0 -27
- package/templates/saas/i18n/engine/resources/applicationAgentWorkDecisionContents.fr.ts +0 -27
- package/templates/saas/i18n/engine/resources/applicationAgentWorkDecisions.en.ts +13 -43
- package/templates/saas/i18n/engine/resources/applicationAgentWorkDecisions.fr.ts +0 -30
- package/templates/saas/i18n/engine/resources/applicationApiKeys.en.ts +2 -70
- package/templates/saas/i18n/engine/resources/applicationApiKeys.fr.ts +2 -70
- package/templates/saas/i18n/engine/resources/applicationAuditLogs.en.ts +41 -94
- package/templates/saas/i18n/engine/resources/applicationAuditLogs.fr.ts +41 -94
- package/templates/saas/i18n/engine/resources/applicationDataKeys.en.ts +2 -22
- package/templates/saas/i18n/engine/resources/applicationDataKeys.fr.ts +2 -22
- package/templates/saas/i18n/engine/resources/applicationFeatures.en.ts +0 -24
- package/templates/saas/i18n/engine/resources/applicationFeatures.fr.ts +0 -24
- package/templates/saas/i18n/engine/resources/applicationFlowActorExecutions.en.ts +25 -160
- package/templates/saas/i18n/engine/resources/applicationFlowActorExecutions.fr.ts +25 -160
- package/templates/saas/i18n/engine/resources/applicationFlowActorTasks.en.ts +6 -28
- package/templates/saas/i18n/engine/resources/applicationFlowActorTasks.fr.ts +8 -30
- package/templates/saas/i18n/engine/resources/applicationInboundDeliveries.en.ts +92 -23
- package/templates/saas/i18n/engine/resources/applicationInboundDeliveries.fr.ts +95 -26
- package/templates/saas/i18n/engine/resources/applicationM2mWebhookDeliveryLog.en.ts +1 -25
- package/templates/saas/i18n/engine/resources/applicationM2mWebhookDeliveryLog.fr.ts +4 -28
- package/templates/saas/i18n/engine/resources/applicationMetadata.en.ts +0 -18
- package/templates/saas/i18n/engine/resources/applicationMetadata.fr.ts +0 -18
- package/templates/saas/i18n/engine/resources/applicationOAuthClients.en.ts +2 -58
- package/templates/saas/i18n/engine/resources/applicationOAuthClients.fr.ts +2 -58
- package/templates/saas/i18n/engine/resources/applicationProviderCredentials.en.ts +168 -0
- package/templates/saas/i18n/engine/resources/applicationProviderCredentials.fr.ts +168 -0
- package/templates/saas/i18n/engine/resources/applicationScimProvisioningConfig.en.ts +0 -30
- package/templates/saas/i18n/engine/resources/applicationScimProvisioningConfig.fr.ts +0 -30
- package/templates/saas/i18n/engine/resources/applicationSiemDeliveryDlq.en.ts +3 -42
- package/templates/saas/i18n/engine/resources/applicationSiemDeliveryDlq.fr.ts +5 -44
- package/templates/saas/i18n/engine/resources/applicationSiemDeliveryOutbox.en.ts +3 -30
- package/templates/saas/i18n/engine/resources/applicationSiemDeliveryOutbox.fr.ts +0 -27
- package/templates/saas/i18n/engine/resources/applicationSiemExportConfig.en.ts +0 -24
- package/templates/saas/i18n/engine/resources/applicationSiemExportConfig.fr.ts +0 -24
- package/templates/saas/i18n/engine/resources/applicationSsoConfig.en.ts +113 -61
- package/templates/saas/i18n/engine/resources/applicationSsoConfig.fr.ts +113 -61
- package/templates/saas/i18n/engine/resources/applicationSsoConnections.en.ts +0 -138
- package/templates/saas/i18n/engine/resources/applicationSsoConnections.fr.ts +0 -138
- package/templates/saas/i18n/engine/resources/applicationVersions.en.ts +3 -27
- package/templates/saas/i18n/engine/resources/applicationVersions.fr.ts +0 -24
- package/templates/saas/i18n/engine/resources/applicationWebhookConfig.en.ts +5 -54
- package/templates/saas/i18n/engine/resources/applicationWebhookConfig.fr.ts +5 -54
- package/templates/saas/i18n/engine/resources/applications.en.ts +39 -2177
- package/templates/saas/i18n/engine/resources/applications.fr.ts +39 -2177
- package/templates/saas/i18n/engine/resources/approvalSeals.en.ts +38 -31
- package/templates/saas/i18n/engine/resources/approvalSeals.fr.ts +38 -31
- package/templates/saas/i18n/engine/resources/auditLogs.en.ts +78 -111
- package/templates/saas/i18n/engine/resources/auditLogs.fr.ts +78 -111
- package/templates/saas/i18n/engine/resources/billingEffectOutbox.en.ts +2 -4
- package/templates/saas/i18n/engine/resources/billingEffectOutbox.fr.ts +2 -4
- package/templates/saas/i18n/engine/resources/billingSubscriptionMutationIntents.en.ts +8 -6
- package/templates/saas/i18n/engine/resources/billingSubscriptionMutationIntents.fr.ts +8 -6
- package/templates/saas/i18n/engine/resources/chatConversations.en.ts +0 -18
- package/templates/saas/i18n/engine/resources/chatConversations.fr.ts +0 -18
- package/templates/saas/i18n/engine/resources/chatIdentityLinks.en.ts +0 -44
- package/templates/saas/i18n/engine/resources/chatIdentityLinks.fr.ts +0 -44
- package/templates/saas/i18n/engine/resources/consumableTokens.en.ts +4 -43
- package/templates/saas/i18n/engine/resources/consumableTokens.fr.ts +4 -43
- package/templates/saas/i18n/engine/resources/conversationMessages.en.ts +16 -27
- package/templates/saas/i18n/engine/resources/conversationMessages.fr.ts +16 -27
- package/templates/saas/i18n/engine/resources/conversationReplyTokens.en.ts +0 -27
- package/templates/saas/i18n/engine/resources/conversationReplyTokens.fr.ts +0 -27
- package/templates/saas/i18n/engine/resources/conversationThreads.en.ts +0 -27
- package/templates/saas/i18n/engine/resources/conversationThreads.fr.ts +0 -27
- package/templates/saas/i18n/engine/resources/dataSeedRuns.en.ts +22 -17
- package/templates/saas/i18n/engine/resources/dataSeedRuns.fr.ts +22 -17
- package/templates/saas/i18n/engine/resources/dataSubjectRequests.en.ts +410 -0
- package/templates/saas/i18n/engine/resources/dataSubjectRequests.fr.ts +410 -0
- package/templates/saas/i18n/engine/resources/etlPipelineStates.en.ts +128 -146
- package/templates/saas/i18n/engine/resources/etlPipelineStates.fr.ts +0 -18
- package/templates/saas/i18n/engine/resources/evaluationDatasetExports.en.ts +13 -43
- package/templates/saas/i18n/engine/resources/evaluationDatasetExports.fr.ts +0 -30
- package/templates/saas/i18n/engine/resources/evaluationExportAuthorizations.en.ts +0 -12
- package/templates/saas/i18n/engine/resources/evaluationExportAuthorizations.fr.ts +0 -12
- package/templates/saas/i18n/engine/resources/externalDataErasureSuppressions.en.ts +0 -21
- package/templates/saas/i18n/engine/resources/externalDataErasureSuppressions.fr.ts +0 -21
- package/templates/saas/i18n/engine/resources/externalDataOutboundChanges.en.ts +24 -45
- package/templates/saas/i18n/engine/resources/externalDataOutboundChanges.fr.ts +0 -21
- package/templates/saas/i18n/engine/resources/externalDataPendingReferences.en.ts +0 -24
- package/templates/saas/i18n/engine/resources/externalDataPendingReferences.fr.ts +0 -24
- package/templates/saas/i18n/engine/resources/externalDataPipelineMembershipKeys.en.ts +0 -21
- package/templates/saas/i18n/engine/resources/externalDataPipelineMembershipKeys.fr.ts +0 -21
- package/templates/saas/i18n/engine/resources/externalDataPipelineMemberships.en.ts +8 -14
- package/templates/saas/i18n/engine/resources/externalDataPipelineMemberships.fr.ts +0 -6
- package/templates/saas/i18n/engine/resources/externalDataPipelineRequestedKeys.en.ts +0 -24
- package/templates/saas/i18n/engine/resources/externalDataPipelineRequestedKeys.fr.ts +0 -24
- package/templates/saas/i18n/engine/resources/externalDataPipelineRunRecords.en.ts +150 -174
- package/templates/saas/i18n/engine/resources/externalDataPipelineRunRecords.fr.ts +0 -24
- package/templates/saas/i18n/engine/resources/externalDataRemoteVersions.en.ts +12 -33
- package/templates/saas/i18n/engine/resources/externalDataRemoteVersions.fr.ts +0 -21
- package/templates/saas/i18n/engine/resources/externalEffectReservations.en.ts +147 -0
- package/templates/saas/i18n/engine/resources/externalEffectReservations.fr.ts +147 -0
- package/templates/saas/i18n/engine/resources/files.en.ts +0 -39
- package/templates/saas/i18n/engine/resources/files.fr.ts +0 -39
- package/templates/saas/i18n/engine/resources/humanDecisionNoticeStays.en.ts +0 -18
- package/templates/saas/i18n/engine/resources/humanDecisionNoticeStays.fr.ts +0 -18
- package/templates/saas/i18n/engine/resources/idempotentRequestOutcomes.en.ts +115 -0
- package/templates/saas/i18n/engine/resources/idempotentRequestOutcomes.fr.ts +115 -0
- package/templates/saas/i18n/engine/resources/inboundAddressTombstones.en.ts +0 -27
- package/templates/saas/i18n/engine/resources/inboundAddressTombstones.fr.ts +0 -27
- package/templates/saas/i18n/engine/resources/inboundContacts.en.ts +3 -30
- package/templates/saas/i18n/engine/resources/inboundContacts.fr.ts +0 -27
- package/templates/saas/i18n/engine/resources/inboundEmails.en.ts +0 -27
- package/templates/saas/i18n/engine/resources/inboundEmails.fr.ts +0 -27
- package/templates/saas/i18n/engine/resources/jobExecutions.en.ts +11 -25
- package/templates/saas/i18n/engine/resources/jobExecutions.fr.ts +11 -25
- package/templates/saas/i18n/engine/resources/jobPayloadStorage.en.ts +3 -30
- package/templates/saas/i18n/engine/resources/jobPayloadStorage.fr.ts +0 -27
- package/templates/saas/i18n/engine/resources/legalHolds.en.ts +0 -88
- package/templates/saas/i18n/engine/resources/legalHolds.fr.ts +0 -88
- package/templates/saas/i18n/engine/resources/modelCallAttributions.en.ts +16 -40
- package/templates/saas/i18n/engine/resources/modelCallAttributions.fr.ts +0 -24
- package/templates/saas/i18n/engine/resources/modelCostPeriodAggregates.en.ts +13 -37
- package/templates/saas/i18n/engine/resources/modelCostPeriodAggregates.fr.ts +0 -24
- package/templates/saas/i18n/engine/resources/oauthConsentGrants.en.ts +10 -40
- package/templates/saas/i18n/engine/resources/oauthConsentGrants.fr.ts +0 -30
- package/templates/saas/i18n/engine/resources/operationApprovalRequests.en.ts +120 -60
- package/templates/saas/i18n/engine/resources/operationApprovalRequests.fr.ts +120 -60
- package/templates/saas/i18n/engine/resources/organizationA2aPushDeliveryLog.en.ts +3 -21
- package/templates/saas/i18n/engine/resources/organizationA2aPushDeliveryLog.fr.ts +0 -18
- package/templates/saas/i18n/engine/resources/organizationA2aTokenBudgetState.en.ts +3 -33
- package/templates/saas/i18n/engine/resources/organizationA2aTokenBudgetState.fr.ts +0 -30
- package/templates/saas/i18n/engine/resources/organizationAgentPolicies.en.ts +0 -27
- package/templates/saas/i18n/engine/resources/organizationAgentPolicies.fr.ts +0 -27
- package/templates/saas/i18n/engine/resources/organizationAgentWorkDecisionContents.en.ts +0 -27
- package/templates/saas/i18n/engine/resources/organizationAgentWorkDecisionContents.fr.ts +0 -27
- package/templates/saas/i18n/engine/resources/organizationAgentWorkDecisions.en.ts +13 -43
- package/templates/saas/i18n/engine/resources/organizationAgentWorkDecisions.fr.ts +0 -30
- package/templates/saas/i18n/engine/resources/organizationApiKeys.en.ts +2 -79
- package/templates/saas/i18n/engine/resources/organizationApiKeys.fr.ts +2 -79
- package/templates/saas/i18n/engine/resources/organizationBillingAccounts.en.ts +0 -549
- package/templates/saas/i18n/engine/resources/organizationBillingAccounts.fr.ts +0 -549
- package/templates/saas/i18n/engine/resources/organizationChatSettings.en.ts +0 -27
- package/templates/saas/i18n/engine/resources/organizationChatSettings.fr.ts +0 -27
- package/templates/saas/i18n/engine/resources/organizationCreditPools.en.ts +13 -18
- package/templates/saas/i18n/engine/resources/organizationCreditPools.fr.ts +13 -18
- package/templates/saas/i18n/engine/resources/organizationCustomDomains.en.ts +195 -0
- package/templates/saas/i18n/engine/resources/organizationCustomDomains.fr.ts +195 -0
- package/templates/saas/i18n/engine/resources/organizationDashboardLayouts.en.ts +153 -0
- package/templates/saas/i18n/engine/resources/organizationDashboardLayouts.fr.ts +153 -0
- package/templates/saas/i18n/engine/resources/organizationEmailDomains.en.ts +0 -39
- package/templates/saas/i18n/engine/resources/organizationEmailDomains.fr.ts +0 -39
- package/templates/saas/i18n/engine/resources/organizationFeatures.en.ts +0 -34
- package/templates/saas/i18n/engine/resources/organizationFeatures.fr.ts +0 -34
- package/templates/saas/i18n/engine/resources/organizationFlowActorExecutions.en.ts +25 -160
- package/templates/saas/i18n/engine/resources/organizationFlowActorExecutions.fr.ts +25 -160
- package/templates/saas/i18n/engine/resources/organizationFlowActorTasks.en.ts +6 -28
- package/templates/saas/i18n/engine/resources/organizationFlowActorTasks.fr.ts +8 -30
- package/templates/saas/i18n/engine/resources/organizationGuidanceState.en.ts +3 -18
- package/templates/saas/i18n/engine/resources/organizationGuidanceState.fr.ts +0 -15
- package/templates/saas/i18n/engine/resources/organizationInboundDeliveries.en.ts +95 -26
- package/templates/saas/i18n/engine/resources/organizationInboundDeliveries.fr.ts +95 -26
- package/templates/saas/i18n/engine/resources/organizationInvoiceRefs.en.ts +14 -45
- package/templates/saas/i18n/engine/resources/organizationInvoiceRefs.fr.ts +14 -45
- package/templates/saas/i18n/engine/resources/organizationLifecycleState.en.ts +1 -17
- package/templates/saas/i18n/engine/resources/organizationLifecycleState.fr.ts +1 -17
- package/templates/saas/i18n/engine/resources/organizationM2mWebhookDeliveryLog.en.ts +2 -26
- package/templates/saas/i18n/engine/resources/organizationM2mWebhookDeliveryLog.fr.ts +4 -28
- package/templates/saas/i18n/engine/resources/organizationMembers.en.ts +2 -95
- package/templates/saas/i18n/engine/resources/organizationMembers.fr.ts +2 -95
- package/templates/saas/i18n/engine/resources/organizationModelUsageCeilingState.en.ts +0 -27
- package/templates/saas/i18n/engine/resources/organizationModelUsageCeilingState.fr.ts +0 -27
- package/templates/saas/i18n/engine/resources/organizationNotificationBadges.en.ts +3 -36
- package/templates/saas/i18n/engine/resources/organizationNotificationBadges.fr.ts +0 -33
- package/templates/saas/i18n/engine/resources/organizationNotifications.en.ts +0 -12
- package/templates/saas/i18n/engine/resources/organizationNotifications.fr.ts +0 -12
- package/templates/saas/i18n/engine/resources/organizationOAuthClients.en.ts +2 -67
- package/templates/saas/i18n/engine/resources/organizationOAuthClients.fr.ts +2 -67
- package/templates/saas/i18n/engine/resources/organizationOnboardingOperations.en.ts +0 -9
- package/templates/saas/i18n/engine/resources/organizationOnboardingOperations.fr.ts +0 -9
- package/templates/saas/i18n/engine/resources/organizationPersonTokenCeilingState.en.ts +0 -27
- package/templates/saas/i18n/engine/resources/organizationPersonTokenCeilingState.fr.ts +0 -27
- package/templates/saas/i18n/engine/resources/organizationPreferences.en.ts +0 -37
- package/templates/saas/i18n/engine/resources/organizationPreferences.fr.ts +0 -37
- package/templates/saas/i18n/engine/resources/organizationProfiles.en.ts +0 -37
- package/templates/saas/i18n/engine/resources/organizationProfiles.fr.ts +0 -37
- package/templates/saas/i18n/engine/resources/organizationProgressionState.en.ts +1 -17
- package/templates/saas/i18n/engine/resources/organizationProgressionState.fr.ts +1 -17
- package/templates/saas/i18n/engine/resources/organizationProviderCredentials.en.ts +0 -58
- package/templates/saas/i18n/engine/resources/organizationProviderCredentials.fr.ts +0 -58
- package/templates/saas/i18n/engine/resources/organizationRelationships.en.ts +0 -128
- package/templates/saas/i18n/engine/resources/organizationRelationships.fr.ts +0 -128
- package/templates/saas/i18n/engine/resources/organizationRepresentations.en.ts +0 -83
- package/templates/saas/i18n/engine/resources/organizationRepresentations.fr.ts +0 -83
- package/templates/saas/i18n/engine/resources/organizationScimProvisioningConfig.en.ts +0 -43
- package/templates/saas/i18n/engine/resources/organizationScimProvisioningConfig.fr.ts +0 -43
- package/templates/saas/i18n/engine/resources/organizationScimTokens.en.ts +5 -76
- package/templates/saas/i18n/engine/resources/organizationScimTokens.fr.ts +5 -76
- package/templates/saas/i18n/engine/resources/organizationSiemDeliveryDlq.en.ts +4 -43
- package/templates/saas/i18n/engine/resources/organizationSiemDeliveryDlq.fr.ts +6 -45
- package/templates/saas/i18n/engine/resources/organizationSiemDeliveryOutbox.en.ts +3 -30
- package/templates/saas/i18n/engine/resources/organizationSiemDeliveryOutbox.fr.ts +0 -27
- package/templates/saas/i18n/engine/resources/organizationSiemExportConfig.en.ts +0 -37
- package/templates/saas/i18n/engine/resources/organizationSiemExportConfig.fr.ts +0 -37
- package/templates/saas/i18n/engine/resources/organizationSsoConfig.en.ts +113 -74
- package/templates/saas/i18n/engine/resources/organizationSsoConfig.fr.ts +113 -74
- package/templates/saas/i18n/engine/resources/organizationSsoConnections.en.ts +0 -148
- package/templates/saas/i18n/engine/resources/organizationSsoConnections.fr.ts +0 -148
- package/templates/saas/i18n/engine/resources/organizationSubscriptions.en.ts +40 -78
- package/templates/saas/i18n/engine/resources/organizationSubscriptions.fr.ts +42 -80
- package/templates/saas/i18n/engine/resources/organizationUnitMembers.en.ts +2 -50
- package/templates/saas/i18n/engine/resources/organizationUnitMembers.fr.ts +2 -50
- package/templates/saas/i18n/engine/resources/organizationUnits.en.ts +0 -49
- package/templates/saas/i18n/engine/resources/organizationUnits.fr.ts +0 -49
- package/templates/saas/i18n/engine/resources/organizationUsageRecords.en.ts +13 -37
- package/templates/saas/i18n/engine/resources/organizationUsageRecords.fr.ts +13 -37
- package/templates/saas/i18n/engine/resources/organizationWebhookConfig.en.ts +5 -67
- package/templates/saas/i18n/engine/resources/organizationWebhookConfig.fr.ts +5 -67
- package/templates/saas/i18n/engine/resources/organizations.en.ts +34 -637
- package/templates/saas/i18n/engine/resources/organizations.fr.ts +32 -635
- package/templates/saas/i18n/engine/resources/platformAccessGrants.en.ts +0 -91
- package/templates/saas/i18n/engine/resources/platformAccessGrants.fr.ts +0 -91
- package/templates/saas/i18n/engine/resources/postCommitEffectOutbox.en.ts +0 -24
- package/templates/saas/i18n/engine/resources/postCommitEffectOutbox.fr.ts +0 -24
- package/templates/saas/i18n/engine/resources/prices.en.ts +47 -108
- package/templates/saas/i18n/engine/resources/prices.fr.ts +48 -109
- package/templates/saas/i18n/engine/resources/products.en.ts +24 -68
- package/templates/saas/i18n/engine/resources/products.fr.ts +24 -68
- package/templates/saas/i18n/engine/resources/professionalQualifications.en.ts +0 -87
- package/templates/saas/i18n/engine/resources/professionalQualifications.fr.ts +0 -87
- package/templates/saas/i18n/engine/resources/promotions.en.ts +4 -56
- package/templates/saas/i18n/engine/resources/promotions.fr.ts +6 -58
- package/templates/saas/i18n/engine/resources/providerCallRecords.en.ts +77 -101
- package/templates/saas/i18n/engine/resources/providerCallRecords.fr.ts +0 -24
- package/templates/saas/i18n/engine/resources/publishedVerificationKeys.en.ts +2 -25
- package/templates/saas/i18n/engine/resources/publishedVerificationKeys.fr.ts +2 -25
- package/templates/saas/i18n/engine/resources/referrals.en.ts +21 -18
- package/templates/saas/i18n/engine/resources/referrals.fr.ts +21 -18
- package/templates/saas/i18n/engine/resources/relationshipCapabilityGrants.en.ts +0 -80
- package/templates/saas/i18n/engine/resources/relationshipCapabilityGrants.fr.ts +0 -80
- package/templates/saas/i18n/engine/resources/relationshipInvitations.en.ts +0 -89
- package/templates/saas/i18n/engine/resources/relationshipInvitations.fr.ts +0 -89
- package/templates/saas/i18n/engine/resources/relationshipMailboxes.en.ts +0 -27
- package/templates/saas/i18n/engine/resources/relationshipMailboxes.fr.ts +0 -27
- package/templates/saas/i18n/engine/resources/representativeAssignments.en.ts +108 -112
- package/templates/saas/i18n/engine/resources/representativeAssignments.fr.ts +108 -112
- package/templates/saas/i18n/engine/resources/retentionEnforcementRecords.en.ts +8 -21
- package/templates/saas/i18n/engine/resources/retentionEnforcementRecords.fr.ts +8 -21
- package/templates/saas/i18n/engine/resources/signatureRequestSigners.en.ts +141 -0
- package/templates/saas/i18n/engine/resources/signatureRequestSigners.fr.ts +141 -0
- package/templates/saas/i18n/engine/resources/signatureRequests.en.ts +205 -0
- package/templates/saas/i18n/engine/resources/signatureRequests.fr.ts +205 -0
- package/templates/saas/i18n/engine/resources/smsNumberAssignments.en.ts +101 -0
- package/templates/saas/i18n/engine/resources/smsNumberAssignments.fr.ts +101 -0
- package/templates/saas/i18n/engine/resources/smsOptOuts.en.ts +166 -0
- package/templates/saas/i18n/engine/resources/smsOptOuts.fr.ts +166 -0
- package/templates/saas/i18n/engine/resources/smsProviderEvents.en.ts +195 -0
- package/templates/saas/i18n/engine/resources/smsProviderEvents.fr.ts +195 -0
- package/templates/saas/i18n/engine/resources/ssoDomainReservations.en.ts +0 -27
- package/templates/saas/i18n/engine/resources/ssoDomainReservations.fr.ts +0 -27
- package/templates/saas/i18n/engine/resources/systemOfRecordPartitionAssignments.en.ts +3 -39
- package/templates/saas/i18n/engine/resources/systemOfRecordPartitionAssignments.fr.ts +0 -36
- package/templates/saas/i18n/engine/resources/systemOfRecordWriteAdmissions.en.ts +0 -3
- package/templates/saas/i18n/engine/resources/systemOfRecordWriteAdmissions.fr.ts +0 -3
- package/templates/saas/i18n/engine/resources/transactionalCommitReceipts.en.ts +0 -6
- package/templates/saas/i18n/engine/resources/transactionalCommitReceipts.fr.ts +0 -6
- package/templates/saas/i18n/engine/resources/userA2aPushDeliveryLog.en.ts +3 -21
- package/templates/saas/i18n/engine/resources/userA2aPushDeliveryLog.fr.ts +0 -18
- package/templates/saas/i18n/engine/resources/userA2aTokenBudgetState.en.ts +3 -33
- package/templates/saas/i18n/engine/resources/userA2aTokenBudgetState.fr.ts +0 -30
- package/templates/saas/i18n/engine/resources/userAgentWorkDecisionContents.en.ts +0 -27
- package/templates/saas/i18n/engine/resources/userAgentWorkDecisionContents.fr.ts +0 -27
- package/templates/saas/i18n/engine/resources/userAgentWorkDecisions.en.ts +13 -43
- package/templates/saas/i18n/engine/resources/userAgentWorkDecisions.fr.ts +0 -30
- package/templates/saas/i18n/engine/resources/userCredentials.en.ts +3 -87
- package/templates/saas/i18n/engine/resources/userCredentials.fr.ts +0 -84
- package/templates/saas/i18n/engine/resources/userFeatures.en.ts +0 -12
- package/templates/saas/i18n/engine/resources/userFeatures.fr.ts +0 -12
- package/templates/saas/i18n/engine/resources/userFlowActorExecutions.en.ts +25 -160
- package/templates/saas/i18n/engine/resources/userFlowActorExecutions.fr.ts +25 -160
- package/templates/saas/i18n/engine/resources/userFlowActorTasks.en.ts +6 -28
- package/templates/saas/i18n/engine/resources/userFlowActorTasks.fr.ts +8 -30
- package/templates/saas/i18n/engine/resources/userGovernedDocumentAcceptances.en.ts +13 -18
- package/templates/saas/i18n/engine/resources/userGovernedDocumentAcceptances.fr.ts +13 -18
- package/templates/saas/i18n/engine/resources/userGuidanceState.en.ts +3 -18
- package/templates/saas/i18n/engine/resources/userGuidanceState.fr.ts +0 -15
- package/templates/saas/i18n/engine/resources/userIdentityLinks.en.ts +13 -40
- package/templates/saas/i18n/engine/resources/userIdentityLinks.fr.ts +0 -27
- package/templates/saas/i18n/engine/resources/userLifecycleState.en.ts +0 -15
- package/templates/saas/i18n/engine/resources/userLifecycleState.fr.ts +0 -15
- package/templates/saas/i18n/engine/resources/userNotificationBadges.en.ts +3 -36
- package/templates/saas/i18n/engine/resources/userNotificationBadges.fr.ts +0 -33
- package/templates/saas/i18n/engine/resources/userPreferences.en.ts +8 -60
- package/templates/saas/i18n/engine/resources/userPreferences.fr.ts +8 -60
- package/templates/saas/i18n/engine/resources/userProfiles.en.ts +5 -56
- package/templates/saas/i18n/engine/resources/userProfiles.fr.ts +0 -51
- package/templates/saas/i18n/engine/resources/userProgressionState.en.ts +1 -17
- package/templates/saas/i18n/engine/resources/userProgressionState.fr.ts +1 -17
- package/templates/saas/i18n/engine/resources/userProviderCredentials.en.ts +0 -52
- package/templates/saas/i18n/engine/resources/userProviderCredentials.fr.ts +0 -52
- package/templates/saas/i18n/engine/resources/userSelfPreferences.en.ts +8 -56
- package/templates/saas/i18n/engine/resources/userSelfPreferences.fr.ts +8 -56
- package/templates/saas/i18n/engine/resources/userSelfProfiles.en.ts +5 -61
- package/templates/saas/i18n/engine/resources/userSelfProfiles.fr.ts +0 -56
- package/templates/saas/i18n/engine/resources/user_self.en.ts +37 -214
- package/templates/saas/i18n/engine/resources/user_self.fr.ts +37 -214
- package/templates/saas/i18n/engine/resources/users.en.ts +53 -180
- package/templates/saas/i18n/engine/resources/users.fr.ts +53 -180
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/Dockerfile +4 -1
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/plugins/api-reference-pages.ts +9 -1
- package/templates/saas/scenarios/add-website/files/website/Dockerfile +4 -1
- package/templates/saas/scenarios/add-website/files/website/astro.config.ts.hbs +4 -0
- package/templates/saas/scenarios/add-website/files/website/package.json.hbs +1 -1
- package/templates/saas/scenarios/add-worker-node/files/workers/__workerDir__/Dockerfile.hbs +3 -1
- package/templates/saas/skeleton/.wildo-saas/wildo-dev-companion/scripts/dev-supervised.sh +18 -4
- package/templates/saas/skeleton/backend-api/Dockerfile +5 -2
- package/templates/saas/skeleton/frontend/Dockerfile +4 -1
- package/templates/saas/skeleton/frontend/nginx-config/default.conf.hbs +1 -1
- package/templates/saas/skeleton/frontend/src/generated/csp.generated.json.hbs +4 -4
- package/templates/saas/skeleton/frontend/vite-engine-dependency-prebundle.ts +10 -1
- package/templates/saas/skeleton/frontend/vite.config.ts.hbs +14 -3
- package/templates/saas/skeleton/infrastructure/local/wildo.infra.local.config.ts.hbs +2 -0
- package/wildo-framework.info.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application-runtime-environment.d.ts","sourceRoot":"","sources":["../../../../src/services/deployment/application-runtime-environment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AAEzH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8DAA8D,CAAC;AAEtG,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,qDAAqD,CAAC;AAC5G,OAAO,KAAK,EACV,0BAA0B,EAC1B,0BAA0B,EAC3B,MAAM,qEAAqE,CAAC;AAK7E;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,oCAAoC;IACnD,QAAQ,CAAC,WAAW,EAAE,sBAAsB,CAAC;IAC7C,uGAAuG;IACvG,QAAQ,CAAC,SAAS,EAAE,iBAAiB,CAAC;IACtC,QAAQ,CAAC,MAAM,EAAE,qBAAqB,CAAC;IACvC,QAAQ,CAAC,WAAW,EAAE,gCAAgC,CAAC;IACvD;;;;OAIG;IACH,QAAQ,CAAC,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7C;
|
|
1
|
+
{"version":3,"file":"application-runtime-environment.d.ts","sourceRoot":"","sources":["../../../../src/services/deployment/application-runtime-environment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AAEzH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8DAA8D,CAAC;AAEtG,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,qDAAqD,CAAC;AAC5G,OAAO,KAAK,EACV,0BAA0B,EAC1B,0BAA0B,EAC3B,MAAM,qEAAqE,CAAC;AAK7E;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,oCAAoC;IACnD,QAAQ,CAAC,WAAW,EAAE,sBAAsB,CAAC;IAC7C,uGAAuG;IACvG,QAAQ,CAAC,SAAS,EAAE,iBAAiB,CAAC;IACtC,QAAQ,CAAC,MAAM,EAAE,qBAAqB,CAAC;IACvC,QAAQ,CAAC,WAAW,EAAE,gCAAgC,CAAC;IACvD;;;;OAIG;IACH,QAAQ,CAAC,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7C;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,wBAAgB,2BAA2B,CACzC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,CAAC,GAAG,SAAS,EACjF,OAAO,EAAE,MAAM,EACf,mBAAmB,EAAE,MAAM,GAAG,IAAI,EAClC,kBAAkB,EAAE,MAAM,GACzB,MAAM,CAAC,MAAM,EAAE;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,CAAC,GAAG,SAAS,CAiBxE;AAED;;;;;GAKG;AACH,wBAAgB,2BAA2B,CAAC,MAAM,EAAE;IAAE,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,oBAAoB,EAAE;QAAE,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,GAAG,MAAM,CAIhK;AAED,0FAA0F;AAC1F,wBAAgB,mCAAmC,CACjD,MAAM,EAAE,0BAA0B,EAClC,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,oCAAoC,GAC5C;IAAE,QAAQ,CAAC,kBAAkB,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAAE,CA6B/E;AAED,0FAA0F;AAC1F,wBAAgB,mCAAmC,CACjD,MAAM,EAAE,0BAA0B,EAClC,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,oCAAoC,GAC5C;IAAE,QAAQ,CAAC,kBAAkB,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAAE,CAuB/E"}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { declaredProviderScope } from '../../services/credentials/provider-env-vars.utils.js';
|
|
2
2
|
import { PlatformEnvVarsBuilder } from '../../services/environment/env-vars-builder.service.js';
|
|
3
|
-
import { WildoLocationType } from '@wildo-ai/platform-config-lib';
|
|
3
|
+
import { LOOPBACK_HOSTNAMES, toHostGatewayUrl, WildoLocationType } from '@wildo-ai/platform-config-lib';
|
|
4
4
|
import { buildMinionServiceName, buildWorkerServiceName } from '@wildo-ai/platform-core-shared';
|
|
5
5
|
import { devCompanionRuntimeEndpointKey } from '../../services/environment/platform-runtime.schemas.js';
|
|
6
|
-
/** Loopback hostnames a host process advertises; inside a container each names the container itself. */
|
|
7
|
-
const LOOPBACK_HOSTNAMES = new Set(['localhost', '127.0.0.1', '[::1]', '::1']);
|
|
8
6
|
/**
|
|
9
7
|
* An application's runtime endpoints as a container of one lane sees them (#3382, #3390). The ONE derivation both
|
|
10
8
|
* container lanes run, inside {@link buildContainerisedMinionEnvironment} and {@link buildContainerisedWorkerEnvironment},
|
|
@@ -51,16 +49,8 @@ export function toContainerRuntimeEndpoints(endpoints, appSlug, hostGatewayHostn
|
|
|
51
49
|
+ 'runs on the host: on a LOCAL Kubernetes target the backend, its minions and its workers all run there '
|
|
52
50
|
+ '(`wildo dev start`), and no Kubernetes lane deploys them as pods.');
|
|
53
51
|
}
|
|
54
|
-
//
|
|
55
|
-
|
|
56
|
-
// `http://localhost:4241` becomes `http://host.docker.internal:4241`, not `…:4241/`.
|
|
57
|
-
const hadPath = /^[a-z][a-z0-9+.-]*:\/\/[^/?#]*[/]/i.test(urls.internalUrl);
|
|
58
|
-
const path = internal.pathname === '/' && !hadPath ? '' : internal.pathname;
|
|
59
|
-
const port = internal.port === '' ? '' : `:${internal.port}`;
|
|
60
|
-
return [key, {
|
|
61
|
-
publicUrl: urls.publicUrl,
|
|
62
|
-
internalUrl: `${internal.protocol}//${hostGatewayHostname}${port}${path}${internal.search}${internal.hash}`,
|
|
63
|
-
}];
|
|
52
|
+
// The shared derivation (`toHostGatewayUrl`), which the platform scheduler also runs to reach a host-run backend.
|
|
53
|
+
return [key, { publicUrl: urls.publicUrl, internalUrl: toHostGatewayUrl(urls.internalUrl, hostGatewayHostname) }];
|
|
64
54
|
}));
|
|
65
55
|
}
|
|
66
56
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application-runtime-environment.js","sourceRoot":"","sources":["../../../../src/services/deployment/application-runtime-environment.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yDAAyD,CAAC;AAEhG,OAAO,EAAE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OAAO,CAAC,mBAAmB,EAAE,kBAAkB,CAAC;YAChI,8EAA8E;YAC9E,SAAS;SACV,CACF;KACF,CAAC;AACJ,CAAC","sourcesContent":["import type { PlatformEnvConfigJson, PlatformEnvSecretsJson } from '~wildo-cli/services/credentials/credentials.schemas';\nimport { declaredProviderScope } from '~wildo-cli/services/credentials/provider-env-vars.utils';\nimport type { ResolvedAddresses } from '~wildo-cli/services/catalog/service-address-resolver.service';\nimport { PlatformEnvVarsBuilder } from '~wildo-cli/services/environment/env-vars-builder.service';\nimport type { PlatformEnvironmentConfiguration } from '~wildo-cli/services/environment/environment.schemas';\nimport type {\n ApplicationMinionEnvTarget,\n ApplicationWorkerEnvTarget,\n} from '~wildo-cli/services/environment/env-configuration-generator.service';\nimport { WildoLocationType } from '@wildo-ai/platform-config-lib';\nimport { buildMinionServiceName, buildWorkerServiceName } from '@wildo-ai/platform-core-shared';\nimport { devCompanionRuntimeEndpointKey } from '~wildo-cli/services/environment/platform-runtime.schemas';\n\n/**\n * The CONTAINERISED environment of one application minion or worker: what its pod or container is started with,\n * built by the one derivation both container lanes use (#2955).\n *\n * The Kubernetes lane mounts it as the runtime's `<runtimeServiceName>-secret`, and the local compose `app-runtimes`\n * profile mounts it as `<runtimeServiceName>.runtime.env`. Each lane used to describe the runtime on its own. The\n * compose lane interpolated `${PLATFORM_APPLICATION_PRIMARY_SECRET}` from `.env.wildo-platform`, which carries the\n * PLATFORM's primary secret in an app-creator install and nothing at all in a framework-developer one. So a minion\n * or worker container presented another principal's secret, or none, and apps-manager refused it. Built here once,\n * the runtime's identity, its own principal secret and its scoped environment cannot differ between the two lanes.\n *\n * The native lane (`wildo local dev`, a host process reading the package's `.env`) calls the same builders with\n * the HOST-facing addresses and a runtime-signals home, both of which belong only to a host process.\n */\nexport interface ApplicationRuntimeEnvironmentContext {\n readonly credentials: PlatformEnvSecretsJson;\n /** CONTAINER_INTERNAL addresses: cluster DNS for Kubernetes, the compose service names for compose. */\n readonly addresses: ResolvedAddresses;\n readonly config: PlatformEnvConfigJson;\n readonly environment: PlatformEnvironmentConfiguration;\n /**\n * The name this lane's containers reach a process on the HOST by, or `null` when the lane has none (#3382, #3390).\n * Required, so each lane states its answer: {@link toContainerRuntimeEndpoints} reads it to re-point a loopback\n * runtime endpoint, and refuses one when it is `null`.\n */\n readonly hostGatewayHostname: string | null;\n}\n\n/** Loopback hostnames a host process advertises; inside a container each names the container itself. */\nconst LOOPBACK_HOSTNAMES: ReadonlySet<string> = new Set(['localhost', '127.0.0.1', '[::1]', '::1']);\n\n/**\n * An application's runtime endpoints as a container of one lane sees them (#3382, #3390). The ONE derivation both\n * container lanes run, inside {@link buildContainerisedMinionEnvironment} and {@link buildContainerisedWorkerEnvironment},\n * so a lane cannot hand its containers the host-facing set by forgetting a step.\n *\n * Where the backend runs decides the answer, and the target's endpoints already say it:\n * - **In a container or the cluster** (a REMOTE target): the `internalUrl` is the compose service name or the cluster\n * DNS name of the backend's Service, already reachable, kept as it is.\n * - **On the host** (a LOCAL target, whose endpoints are `http://localhost:<port>` from\n * `buildLocalhostApplicationRuntimeEndpoints`): inside a container `localhost` is the container. Each loopback\n * `internalUrl` is re-pointed at the lane's host gateway, keeping scheme, port, path, query and fragment. Each\n * `publicUrl` is kept: a BROWSER on the host opens it, so a link a runtime puts in an email must still say `localhost`.\n *\n * When the lane has NO host gateway (`hostGatewayHostname: null`, the Kubernetes lane) a loopback endpoint is REFUSED.\n * Handing a pod `localhost` would point it at itself, and inventing a host name would ship an address that may not\n * resolve; a refusal at render names the problem where it can still be fixed.\n *\n * What is REACHABLE through the compose gateway, per key, measured 2026-11-06 on Docker Desktop: a host listener on\n * `127.0.0.1` or `0.0.0.0` answers, one on `::1` refuses.\n * - The application backends: reachable, because the native lane binds them to `127.0.0.1`\n * (`LOCAL_APPLICATION_BACKEND_LISTEN_HOST`). This is the address a runtime dials. On Docker Engine for Linux the\n * gateway is the bridge address instead, and the backend also listens there (`CONTAINER_HOST_GATEWAY_LISTEN_HOST`,\n * #3387).\n * - The frontends, the website and the documentation site: whatever their dev server binds (several bind `[::1]`), so\n * their `internalUrl` may refuse. No runtime dials them; what a runtime uses from them is the `publicUrl` for links.\n * - The dev companion: REMOVED ({@link devCompanionRuntimeEndpointKey}). No minion or worker talks to it, and an\n * authored `127.0.0.1` companion would otherwise be reachable from every container, browser paths without a token\n * included. Dropped first, so the refusal never fires on a key no container receives.\n *\n * Derived from the endpoints the target already carries, never written per site, so it follows the ports the\n * application declares.\n */\nexport function toContainerRuntimeEndpoints(\n endpoints: Record<string, { publicUrl: string; internalUrl: string }> | undefined,\n appSlug: string,\n hostGatewayHostname: string | null,\n runtimeServiceName: string,\n): Record<string, { publicUrl: string; internalUrl: string }> | undefined {\n if (endpoints === undefined) return undefined;\n const devCompanionKey = devCompanionRuntimeEndpointKey(appSlug);\n return Object.fromEntries(Object.entries(endpoints).filter(([key]) => key !== devCompanionKey).map(([key, urls]) => {\n const internal = new URL(urls.internalUrl);\n if (!LOOPBACK_HOSTNAMES.has(internal.hostname)) return [key, urls];\n if (hostGatewayHostname === null) {\n throw new Error(\n `Runtime '${runtimeServiceName}' would be handed the runtime endpoint '${key}' as ${urls.internalUrl}, which inside its `\n + 'pod names the pod itself, and this lane has no route to the host (#3390). A loopback endpoint means the backend '\n + 'runs on the host: on a LOCAL Kubernetes target the backend, its minions and its workers all run there '\n + '(`wildo dev start`), and no Kubernetes lane deploys them as pods.',\n );\n }\n // Rebuilt from the PARSED parts, never by searching the original string for the host: `URL` normalizes the host\n // (case, default port), so a search can miss. A bare `/` path is dropped when the advertised URL had none, so\n // `http://localhost:4241` becomes `http://host.docker.internal:4241`, not `…:4241/`.\n const hadPath = /^[a-z][a-z0-9+.-]*:\\/\\/[^/?#]*[/]/i.test(urls.internalUrl);\n const path = internal.pathname === '/' && !hadPath ? '' : internal.pathname;\n const port = internal.port === '' ? '' : `:${internal.port}`;\n return [key, {\n publicUrl: urls.publicUrl,\n internalUrl: `${internal.protocol}//${hostGatewayHostname}${port}${path}${internal.search}${internal.hash}`,\n }];\n }));\n}\n\n/**\n * The slug of the application a runtime target belongs to: its REMOTE deploy name when it has one, else the slug its\n * own bootstrap credentials carry. A LOCAL target has no `appName` (that field is REMOTE deploy context), so a lane\n * keyed only on it names nothing locally. Throws rather than skipping: a runtime with no name would get no\n * environment and start with none.\n */\nexport function resolveRuntimeTargetAppSlug(target: { readonly appName?: string; readonly bootstrapCredentials: { readonly APPLICATION_SLUG?: string } }): string {\n const slug = target.appName ?? target.bootstrapCredentials.APPLICATION_SLUG;\n if (!slug) throw new Error('An application runtime target names no application slug (no appName, no APPLICATION_SLUG in its bootstrap credentials).');\n return slug;\n}\n\n/** One minion's containerised environment, and the runtime service name it belongs to. */\nexport function buildContainerisedMinionEnvironment(\n minion: ApplicationMinionEnvTarget,\n appSlug: string,\n context: ApplicationRuntimeEnvironmentContext,\n): { readonly runtimeServiceName: string; readonly env: Record<string, string> } {\n const { credentials, addresses, config, environment } = context;\n const runtimeServiceName = buildMinionServiceName(appSlug, minion.minionName);\n return {\n runtimeServiceName,\n env: PlatformEnvVarsBuilder.buildApplicationMinionEnv(\n minion.bootstrapCredentials,\n minion.serviceName,\n credentials,\n addresses,\n config,\n environment.name,\n declaredProviderScope(minion.scopedProviderRefs),\n // Forwarded verbatim, absence included: the builder withholds a backing service's topology from a runtime\n // that declared no access to it, and defaulting it here would decide that at a site that knows nothing about\n // the minion.\n minion.accessDeclaration,\n {\n appDatabaseName: minion.appDatabaseName,\n redisKeyPrefix: minion.redisKeyPrefix,\n storageBucketPrefix: minion.storageBucketPrefix,\n deploymentLocationType: environment.locationType,\n // No runtime-signals home: it is a developer-machine path, which no container can write. A direct Mongo\n // connection is the single-node LOCAL topology (compose, a local cluster), not a remote replica set.\n mongodbDirectConnection: environment.locationType === WildoLocationType.LOCAL,\n runtimeEndpoints: toContainerRuntimeEndpoints(minion.runtimeEndpoints, appSlug, context.hostGatewayHostname, runtimeServiceName),\n },\n ),\n };\n}\n\n/** One worker's containerised environment, and the runtime service name it belongs to. */\nexport function buildContainerisedWorkerEnvironment(\n worker: ApplicationWorkerEnvTarget,\n appSlug: string,\n context: ApplicationRuntimeEnvironmentContext,\n): { readonly runtimeServiceName: string; readonly env: Record<string, string> } {\n const { credentials, addresses, config, environment } = context;\n const runtimeServiceName = buildWorkerServiceName(appSlug, worker.workerName);\n return {\n runtimeServiceName,\n env: PlatformEnvVarsBuilder.buildApplicationWorkerEnv(\n worker.bootstrapCredentials,\n worker.workerName,\n worker.serviceName,\n credentials,\n config,\n environment.name,\n declaredProviderScope(worker.scopedProviderRefs),\n {\n // The authored inbound surface, so the worker binds the port and probe paths its container port and\n // probes were rendered from: one authored value, two renderers.\n http: worker.http,\n runtimeEndpoints: toContainerRuntimeEndpoints(worker.runtimeEndpoints, appSlug, context.hostGatewayHostname, runtimeServiceName),\n // The container's own view of apps-manager, never the bootstrap echo (#2955).\n addresses,\n },\n ),\n };\n}\n"]}
|
|
1
|
+
{"version":3,"file":"application-runtime-environment.js","sourceRoot":"","sources":["../../../../src/services/deployment/application-runtime-environment.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yDAAyD,CAAC;AAEhG,OAAO,EAAE,sBAAsB,EAAE,MAAM,0DAA0D,CAAC;AAMlG,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AACxG,OAAO,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAChG,OAAO,EAAE,8BAA8B,EAAE,MAAM,0DAA0D,CAAC;AA8B1G;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,MAAM,UAAU,2BAA2B,CACzC,SAAiF,EACjF,OAAe,EACf,mBAAkC,EAClC,kBAA0B;IAE1B,IAAI,SAAS,KAAK,SAAS;QAAE,OAAO,SAAS,CAAC;IAC9C,MAAM,eAAe,GAAG,8BAA8B,CAAC,OAAO,CAAC,CAAC;IACh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,qBAAqB,CAAC,MAAM,CAAC,kBAAkB,CAAC,EAChD;YACE,oGAAoG;YACpG,gEAAgE;YAChE,IAAI,EAAE,MAAM,CAAC,IAAI;YACjB,gBAAgB,EAAE,2BAA2B,CAAC,MAAM,CAAC,gBAAgB,EAAE,OAAO,EAAE,OAAO,CAAC,mBAAmB,EAAE,kBAAkB,CAAC;YAChI,8EAA8E;YAC9E,SAAS;SACV,CACF;KACF,CAAC;AACJ,CAAC","sourcesContent":["import type { PlatformEnvConfigJson, PlatformEnvSecretsJson } from '~wildo-cli/services/credentials/credentials.schemas';\nimport { declaredProviderScope } from '~wildo-cli/services/credentials/provider-env-vars.utils';\nimport type { ResolvedAddresses } from '~wildo-cli/services/catalog/service-address-resolver.service';\nimport { PlatformEnvVarsBuilder } from '~wildo-cli/services/environment/env-vars-builder.service';\nimport type { PlatformEnvironmentConfiguration } from '~wildo-cli/services/environment/environment.schemas';\nimport type {\n ApplicationMinionEnvTarget,\n ApplicationWorkerEnvTarget,\n} from '~wildo-cli/services/environment/env-configuration-generator.service';\nimport { LOOPBACK_HOSTNAMES, toHostGatewayUrl, WildoLocationType } from '@wildo-ai/platform-config-lib';\nimport { buildMinionServiceName, buildWorkerServiceName } from '@wildo-ai/platform-core-shared';\nimport { devCompanionRuntimeEndpointKey } from '~wildo-cli/services/environment/platform-runtime.schemas';\n\n/**\n * The CONTAINERISED environment of one application minion or worker: what its pod or container is started with,\n * built by the one derivation both container lanes use (#2955).\n *\n * The Kubernetes lane mounts it as the runtime's `<runtimeServiceName>-secret`, and the local compose `app-runtimes`\n * profile mounts it as `<runtimeServiceName>.runtime.env`. Each lane used to describe the runtime on its own. The\n * compose lane interpolated `${PLATFORM_APPLICATION_PRIMARY_SECRET}` from `.env.wildo-platform`, which carries the\n * PLATFORM's primary secret in an app-creator install and nothing at all in a framework-developer one. So a minion\n * or worker container presented another principal's secret, or none, and apps-manager refused it. Built here once,\n * the runtime's identity, its own principal secret and its scoped environment cannot differ between the two lanes.\n *\n * The native lane (`wildo local dev`, a host process reading the package's `.env`) calls the same builders with\n * the HOST-facing addresses and a runtime-signals home, both of which belong only to a host process.\n */\nexport interface ApplicationRuntimeEnvironmentContext {\n readonly credentials: PlatformEnvSecretsJson;\n /** CONTAINER_INTERNAL addresses: cluster DNS for Kubernetes, the compose service names for compose. */\n readonly addresses: ResolvedAddresses;\n readonly config: PlatformEnvConfigJson;\n readonly environment: PlatformEnvironmentConfiguration;\n /**\n * The name this lane's containers reach a process on the HOST by, or `null` when the lane has none (#3382, #3390).\n * Required, so each lane states its answer: {@link toContainerRuntimeEndpoints} reads it to re-point a loopback\n * runtime endpoint, and refuses one when it is `null`.\n */\n readonly hostGatewayHostname: string | null;\n}\n\n/**\n * An application's runtime endpoints as a container of one lane sees them (#3382, #3390). The ONE derivation both\n * container lanes run, inside {@link buildContainerisedMinionEnvironment} and {@link buildContainerisedWorkerEnvironment},\n * so a lane cannot hand its containers the host-facing set by forgetting a step.\n *\n * Where the backend runs decides the answer, and the target's endpoints already say it:\n * - **In a container or the cluster** (a REMOTE target): the `internalUrl` is the compose service name or the cluster\n * DNS name of the backend's Service, already reachable, kept as it is.\n * - **On the host** (a LOCAL target, whose endpoints are `http://localhost:<port>` from\n * `buildLocalhostApplicationRuntimeEndpoints`): inside a container `localhost` is the container. Each loopback\n * `internalUrl` is re-pointed at the lane's host gateway, keeping scheme, port, path, query and fragment. Each\n * `publicUrl` is kept: a BROWSER on the host opens it, so a link a runtime puts in an email must still say `localhost`.\n *\n * When the lane has NO host gateway (`hostGatewayHostname: null`, the Kubernetes lane) a loopback endpoint is REFUSED.\n * Handing a pod `localhost` would point it at itself, and inventing a host name would ship an address that may not\n * resolve; a refusal at render names the problem where it can still be fixed.\n *\n * What is REACHABLE through the compose gateway, per key, measured 2026-11-06 on Docker Desktop: a host listener on\n * `127.0.0.1` or `0.0.0.0` answers, one on `::1` refuses.\n * - The application backends: reachable, because the native lane binds them to `127.0.0.1`\n * (`LOCAL_APPLICATION_BACKEND_LISTEN_HOST`). This is the address a runtime dials. On Docker Engine for Linux the\n * gateway is the bridge address instead, and the backend also listens there (`CONTAINER_HOST_GATEWAY_LISTEN_HOST`,\n * #3387).\n * - The frontends, the website and the documentation site: whatever their dev server binds (several bind `[::1]`), so\n * their `internalUrl` may refuse. No runtime dials them; what a runtime uses from them is the `publicUrl` for links.\n * - The dev companion: REMOVED ({@link devCompanionRuntimeEndpointKey}). No minion or worker talks to it, and an\n * authored `127.0.0.1` companion would otherwise be reachable from every container, browser paths without a token\n * included. Dropped first, so the refusal never fires on a key no container receives.\n *\n * Derived from the endpoints the target already carries, never written per site, so it follows the ports the\n * application declares.\n */\nexport function toContainerRuntimeEndpoints(\n endpoints: Record<string, { publicUrl: string; internalUrl: string }> | undefined,\n appSlug: string,\n hostGatewayHostname: string | null,\n runtimeServiceName: string,\n): Record<string, { publicUrl: string; internalUrl: string }> | undefined {\n if (endpoints === undefined) return undefined;\n const devCompanionKey = devCompanionRuntimeEndpointKey(appSlug);\n return Object.fromEntries(Object.entries(endpoints).filter(([key]) => key !== devCompanionKey).map(([key, urls]) => {\n const internal = new URL(urls.internalUrl);\n if (!LOOPBACK_HOSTNAMES.has(internal.hostname)) return [key, urls];\n if (hostGatewayHostname === null) {\n throw new Error(\n `Runtime '${runtimeServiceName}' would be handed the runtime endpoint '${key}' as ${urls.internalUrl}, which inside its `\n + 'pod names the pod itself, and this lane has no route to the host (#3390). A loopback endpoint means the backend '\n + 'runs on the host: on a LOCAL Kubernetes target the backend, its minions and its workers all run there '\n + '(`wildo dev start`), and no Kubernetes lane deploys them as pods.',\n );\n }\n // The shared derivation (`toHostGatewayUrl`), which the platform scheduler also runs to reach a host-run backend.\n return [key, { publicUrl: urls.publicUrl, internalUrl: toHostGatewayUrl(urls.internalUrl, hostGatewayHostname) }];\n }));\n}\n\n/**\n * The slug of the application a runtime target belongs to: its REMOTE deploy name when it has one, else the slug its\n * own bootstrap credentials carry. A LOCAL target has no `appName` (that field is REMOTE deploy context), so a lane\n * keyed only on it names nothing locally. Throws rather than skipping: a runtime with no name would get no\n * environment and start with none.\n */\nexport function resolveRuntimeTargetAppSlug(target: { readonly appName?: string; readonly bootstrapCredentials: { readonly APPLICATION_SLUG?: string } }): string {\n const slug = target.appName ?? target.bootstrapCredentials.APPLICATION_SLUG;\n if (!slug) throw new Error('An application runtime target names no application slug (no appName, no APPLICATION_SLUG in its bootstrap credentials).');\n return slug;\n}\n\n/** One minion's containerised environment, and the runtime service name it belongs to. */\nexport function buildContainerisedMinionEnvironment(\n minion: ApplicationMinionEnvTarget,\n appSlug: string,\n context: ApplicationRuntimeEnvironmentContext,\n): { readonly runtimeServiceName: string; readonly env: Record<string, string> } {\n const { credentials, addresses, config, environment } = context;\n const runtimeServiceName = buildMinionServiceName(appSlug, minion.minionName);\n return {\n runtimeServiceName,\n env: PlatformEnvVarsBuilder.buildApplicationMinionEnv(\n minion.bootstrapCredentials,\n minion.serviceName,\n credentials,\n addresses,\n config,\n environment.name,\n declaredProviderScope(minion.scopedProviderRefs),\n // Forwarded verbatim, absence included: the builder withholds a backing service's topology from a runtime\n // that declared no access to it, and defaulting it here would decide that at a site that knows nothing about\n // the minion.\n minion.accessDeclaration,\n {\n appDatabaseName: minion.appDatabaseName,\n redisKeyPrefix: minion.redisKeyPrefix,\n storageBucketPrefix: minion.storageBucketPrefix,\n deploymentLocationType: environment.locationType,\n // No runtime-signals home: it is a developer-machine path, which no container can write. A direct Mongo\n // connection is the single-node LOCAL topology (compose, a local cluster), not a remote replica set.\n mongodbDirectConnection: environment.locationType === WildoLocationType.LOCAL,\n runtimeEndpoints: toContainerRuntimeEndpoints(minion.runtimeEndpoints, appSlug, context.hostGatewayHostname, runtimeServiceName),\n },\n ),\n };\n}\n\n/** One worker's containerised environment, and the runtime service name it belongs to. */\nexport function buildContainerisedWorkerEnvironment(\n worker: ApplicationWorkerEnvTarget,\n appSlug: string,\n context: ApplicationRuntimeEnvironmentContext,\n): { readonly runtimeServiceName: string; readonly env: Record<string, string> } {\n const { credentials, addresses, config, environment } = context;\n const runtimeServiceName = buildWorkerServiceName(appSlug, worker.workerName);\n return {\n runtimeServiceName,\n env: PlatformEnvVarsBuilder.buildApplicationWorkerEnv(\n worker.bootstrapCredentials,\n worker.workerName,\n worker.serviceName,\n credentials,\n config,\n environment.name,\n declaredProviderScope(worker.scopedProviderRefs),\n {\n // The authored inbound surface, so the worker binds the port and probe paths its container port and\n // probes were rendered from: one authored value, two renderers.\n http: worker.http,\n runtimeEndpoints: toContainerRuntimeEndpoints(worker.runtimeEndpoints, appSlug, context.hostGatewayHostname, runtimeServiceName),\n // The container's own view of apps-manager, never the bootstrap echo (#2955).\n addresses,\n },\n ),\n };\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ci-deploy-generator.service.d.ts","sourceRoot":"","sources":["../../../../src/services/deployment/ci-deploy-generator.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AAClG,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qDAAqD,CAAC;AACjG,OAAO,KAAK,EACV,2BAA2B,EAC3B,0BAA0B,EAC1B,0BAA0B,EAC3B,MAAM,qEAAqE,CAAC;AAQ7E,OAAO,EAEL,sBAAsB,
|
|
1
|
+
{"version":3,"file":"ci-deploy-generator.service.d.ts","sourceRoot":"","sources":["../../../../src/services/deployment/ci-deploy-generator.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AAClG,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qDAAqD,CAAC;AACjG,OAAO,KAAK,EACV,2BAA2B,EAC3B,0BAA0B,EAC1B,0BAA0B,EAC3B,MAAM,qEAAqE,CAAC;AAQ7E,OAAO,EAEL,sBAAsB,EAcvB,MAAM,+BAA+B,CAAC;AAEvC,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,qDAAqD,CAAC;AAC5G,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AA6DtD,MAAM,WAAW,uBAAuB;IACtC,GAAG,EAAE,gCAAgC,CAAC;IACtC,WAAW,EAAE,sBAAsB,CAAC;IACpC,MAAM,EAAE,qBAAqB,CAAC;IAC9B,OAAO,EAAE,sBAAsB,CAAC;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,mBAAmB,CAAC,EAAE,2BAA2B,EAAE,CAAC;IACpD,oGAAoG;IACpG,kBAAkB,CAAC,EAAE,0BAA0B,EAAE,CAAC;IAClD,kBAAkB,CAAC,EAAE,0BAA0B,EAAE,CAAC;IAClD;;;;;OAKG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,sBAAsB;IACrC,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,OAAO,EAAE,sBAAsB,CAAC;CACjC;AAED,wBAAgB,yBAAyB,CACvC,OAAO,EAAE,uBAAuB,EAChC,GAAG,EAAE,MAAM,GACV,sBAAsB,CAqVxB"}
|
|
@@ -26,7 +26,7 @@ import { generateK8sSecrets } from '../../services/deployment/k8s/k8s-secrets-ge
|
|
|
26
26
|
import { K8sManifestGenerator } from '../../services/deployment/k8s/k8s-manifest-generator.service.js';
|
|
27
27
|
import { InfrastructureHost } from '../../services/environment/infrastructure-host.service.js';
|
|
28
28
|
import { TemplateProcessor } from '../../infrastructure/io/template-processor.js';
|
|
29
|
-
import { resolveFrameworkLayout, WildoDeploymentRuntime, WildoLocationType, PlatformWildoServices, BackingServiceKind, RUNTIME_MANDATORY_WRITABLE_PATH, RUNTIME_DEFAULT_PIDS_LIMIT, APP_BACKEND_DEFAULT_RUNTIME_UID, APP_FRONTEND_DEFAULT_RUNTIME_UID, APP_FRONTEND_MANDATORY_WRITABLE_PATHS, ApplicationRuntimePrincipalKind, resolveApplicationDatabaseEngine, resolveRuntimeComposeNetworks, } from '@wildo-ai/platform-config-lib';
|
|
29
|
+
import { resolveFrameworkLayout, WildoDeploymentRuntime, WildoLocationType, PlatformWildoServices, BackingServiceKind, RUNTIME_MANDATORY_WRITABLE_PATH, RUNTIME_DEFAULT_PIDS_LIMIT, APP_BACKEND_DEFAULT_RUNTIME_UID, APP_FRONTEND_DEFAULT_RUNTIME_UID, APP_FRONTEND_MANDATORY_WRITABLE_PATHS, ApplicationRuntimePrincipalKind, resolveApplicationDatabaseEngine, resolveRuntimeApplicationStores, resolveRuntimeComposeNetworks, } from '@wildo-ai/platform-config-lib';
|
|
30
30
|
import { IMMUDB_AUDIT_STATE_CONTAINER_DIR } from '../../services/data-services/data-services.schemas.js';
|
|
31
31
|
import { declaredProviderScope } from '../../services/credentials/provider-env-vars.utils.js';
|
|
32
32
|
/**
|
|
@@ -321,7 +321,7 @@ export function generateCiDeployArtifacts(options, log) {
|
|
|
321
321
|
isBackend: true,
|
|
322
322
|
envFile: `${appDeployTarget.serviceName}.env`,
|
|
323
323
|
// Derived, never hand-listed (#3367): the backend's membership, bounded by the application's store.
|
|
324
|
-
networks: resolveRuntimeComposeNetworks({ kind: ApplicationRuntimePrincipalKind.APPLICATION_BACKEND }, undefined, { servesHttp: true,
|
|
324
|
+
networks: resolveRuntimeComposeNetworks({ kind: ApplicationRuntimePrincipalKind.APPLICATION_BACKEND }, undefined, { servesHttp: true, ...resolveRuntimeApplicationStores(options.config) }),
|
|
325
325
|
immudbAuditStateDir,
|
|
326
326
|
...composeIsolation(appDeployTarget.isolation, APP_BACKEND_DEFAULT_RUNTIME_UID, []),
|
|
327
327
|
},
|
|
@@ -341,7 +341,7 @@ export function generateCiDeployArtifacts(options, log) {
|
|
|
341
341
|
// A static frontend is no runtime principal: it joins the edge and nothing else.
|
|
342
342
|
networks: resolveRuntimeComposeNetworks(undefined, undefined, {
|
|
343
343
|
servesHttp: true,
|
|
344
|
-
|
|
344
|
+
...resolveRuntimeApplicationStores(options.config),
|
|
345
345
|
}),
|
|
346
346
|
...composeIsolation(fe.isolation, APP_FRONTEND_DEFAULT_RUNTIME_UID, APP_FRONTEND_MANDATORY_WRITABLE_PATHS),
|
|
347
347
|
}]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ci-deploy-generator.service.js","sourceRoot":"","sources":["../../../../src/services/deployment/ci-deploy-generator.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,IAAI,CAAC;AAC9C,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAQ5B,OAAO,EAAE,sBAAsB,EAAE,MAAM,0DAA0D,CAAC;AAClG,OAAO,EAAE,uBAAuB,EAAE,MAAM,qEAAqE,CAAC;AAC9G,OAAO,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,8DAA8D,CAAC;AAC1H,OAAO,EAAE,kBAAkB,EAAE,MAAM,kEAAkE,CAAC;AACtG,OAAO,EAAE,oBAAoB,EAAE,MAAM,mEAAmE,CAAC;AACzG,OAAO,EAAE,kBAAkB,EAAE,MAAM,6DAA6D,CAAC;AACjG,OAAO,EAAE,iBAAiB,EAAE,MAAM,iDAAiD,CAAC;AACpF,OAAO,EACL,sBAAsB,EACtB,sBAAsB,EACtB,iBAAiB,EACjB,qBAAqB,EACrB,kBAAkB,EAClB,+BAA+B,EAC/B,0BAA0B,EAC1B,+BAA+B,EAC/B,gCAAgC,EAChC,qCAAqC,EACrC,+BAA+B,EAE/B,gCAAgC,EAChC,6BAA6B,GAC9B,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,gCAAgC,EAAE,MAAM,yDAAyD,CAAC;AAG3G,OAAO,EAAE,qBAAqB,EAAE,MAAM,yDAAyD,CAAC;AAEhG;;;GAGG;AACH,SAAS,aAAa,CAAC,GAA2B;IACh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AA4B,EAAE;gBAChE,OAAO,EAAE,eAAe,CAAC,OAAO;gBAChC,aAAa;gBACb,QAAQ,EAAE,GAAG,CAAC,cAAc,EAAE,gBAAgB,IAAI,EAAE;gBACpD,SAAS,EAAE,GAAG,CAAC,cAAc,EAAE,SAAS,IAAI,EAAE;gBAC9C,OAAO,EAAE,GAAG,CAAC,IAAI;gBACjB,0FAA0F;gBAC1F,8FAA8F;gBAC9F,iGAAiG;gBACjG,0BAA0B,EAAE,kBAAkB,CAAC,QAAQ,CAAC,GAAG,CAAC;aAC7D,CAAC,CAAC;YACH,MAAM,cAAc,GAAG,IAAI,CAAC,UAAU,EAAE,wBAAwB,CAAC,CAAC;YAClE,aAAa,CAAC,cAAc,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC;YAChD,YAAY,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QACpC,CAAC;QAED,GAAG,CAAC,IAAI,CAAC,eAAe,YAAY,CAAC,MAAM,2BAA2B,CAAC,CAAC;IAC1E,CAAC;IAED,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,CAAC;AACnC,CAAC","sourcesContent":["/**\n * CiDeployGeneratorService — generate deployment artifacts in CI mode.\n *\n * Produces the files a CI pipeline needs to deploy a Wildo app:\n * - **Kubernetes**: K8s Secret + ConfigMap YAML, written to `<outputDir>/k8s/`\n * - **Docker Compose**: `.env` files for docker-compose services, written to `<outputDir>/compose/`\n *\n * `<outputDir>` is the env-scoped deploy zone\n * `<appRoot>/.wildo-saas/deploy/<env>/`, resolved by\n * `EnvironmentPaths.resolveScopedDeployArtifactsDir`. Every render also writes\n * an ignore-everything `.gitignore` there — see\n * {@link DEPLOY_ZONE_GITIGNORE_CONTENT}.\n *\n * In CI mode secrets are reconstructed from flat env vars (GitHub Secrets\n * injected via `WILDO_SECRET_*`) instead of reading `secrets.json` from disk.\n * The OUTPUT LOCATION is identical either way — a local\n * `wildo config sync --domain config` deposits the same secret-bearing files,\n * which is precisely why the ignore guard is unconditional.\n */\n\nimport { mkdirSync, writeFileSync } from 'fs';\nimport { join } from 'path';\nimport type { PlatformEnvSecretsJson } from '~wildo-cli/services/credentials/credentials.schemas';\nimport type { PlatformEnvConfigJson } from '~wildo-cli/services/credentials/credentials.schemas';\nimport type {\n ApplicationBackendEnvTarget,\n ApplicationWorkerEnvTarget,\n ApplicationMinionEnvTarget,\n} from '~wildo-cli/services/environment/env-configuration-generator.service';\nimport { PlatformEnvVarsBuilder } from '~wildo-cli/services/environment/env-vars-builder.service';\nimport { loadInfraHydratedConfig } from '~wildo-cli/services/environment/env-configuration-generator.service';\nimport { ServiceAddressResolver, AddressPerspective } from '~wildo-cli/services/catalog/service-address-resolver.service';\nimport { generateK8sSecrets } from '~wildo-cli/services/deployment/k8s/k8s-secrets-generator.service';\nimport { K8sManifestGenerator } from '~wildo-cli/services/deployment/k8s/k8s-manifest-generator.service';\nimport { InfrastructureHost } from '~wildo-cli/services/environment/infrastructure-host.service';\nimport { TemplateProcessor } from '~wildo-cli/infrastructure/io/template-processor';\nimport {\n resolveFrameworkLayout,\n WildoDeploymentRuntime,\n WildoLocationType,\n PlatformWildoServices,\n BackingServiceKind,\n RUNTIME_MANDATORY_WRITABLE_PATH,\n RUNTIME_DEFAULT_PIDS_LIMIT,\n APP_BACKEND_DEFAULT_RUNTIME_UID,\n APP_FRONTEND_DEFAULT_RUNTIME_UID,\n APP_FRONTEND_MANDATORY_WRITABLE_PATHS,\n ApplicationRuntimePrincipalKind,\n type ApplicationRuntimePrincipal,\n resolveApplicationDatabaseEngine,\n resolveRuntimeComposeNetworks,\n} from '@wildo-ai/platform-config-lib';\nimport { IMMUDB_AUDIT_STATE_CONTAINER_DIR } from '~wildo-cli/services/data-services/data-services.schemas';\nimport type { PlatformEnvironmentConfiguration } from '~wildo-cli/services/environment/environment.schemas';\nimport type { Logger } from '~wildo-cli/kernel/types';\nimport { declaredProviderScope } from '~wildo-cli/services/credentials/provider-env-vars.utils';\n\n/**\n * Format a record of env vars into a `.env` file string.\n * Values containing spaces, `=`, `#`, or newlines are double-quoted.\n */\nfunction formatEnvFile(env: Record<string, string>): string {\n const lines: string[] = [];\n for (const [key, value] of Object.entries(env)) {\n const needsQuoting = /[\\s=#\"'\\\\]|\\n/.test(value);\n const formatted = needsQuoting\n ? `${key}=\"${value.replace(/\\\\/g, '\\\\\\\\').replace(/\"/g, '\\\\\"').replace(/\\r/g, '\\\\r').replace(/\\n/g, '\\\\n')}\"`\n : `${key}=${value}`;\n lines.push(formatted);\n }\n return lines.join('\\n') + '\\n';\n}\n\n/**\n * Ignore-everything guard written into each rendered deploy-artifact directory.\n *\n * EVERY file this generator emits is secret-bearing by construction — K8s\n * `Secret` manifests carry base64 credentials, the compose `.env` files carry\n * the platform admin secret, the apps-manager signing key and database URLs\n * with passwords. The zone lives inside `.wildo-saas/`, which is a PARTLY\n * TRACKED tree, so \"it's under a dot-directory\" is not protection.\n *\n * The framework does not generate an application's root `.gitignore`, so an\n * app-authored rule is a guarantee the framework cannot make on the app's\n * behalf. Writing the guard beside the artifacts makes the zone self-protecting\n * from its very first render, in every application, with no bootstrap step and\n * nothing for an app author to remember. The app's own root rule\n * (`.wildo-saas/deploy/`) stays as defense in depth.\n *\n * Bare `*` — deliberately no `!.gitignore` re-include. The guard is a generated\n * artifact regenerated on every render; it is not repository truth and must not\n * be committed either. It does not affect `kubectl apply` / `docker compose`,\n * which read the directory directly and know nothing about git.\n *\n * Precedent: `templates/infra/docker-compose/.gitignore` ships the same\n * shape next to its generated `.env`.\n */\nconst DEPLOY_ZONE_GITIGNORE_CONTENT = [\n '# Generated deploy artifacts — every file here carries credentials.',\n '# Written by `wildo config sync --domain config`; never commit any of it.',\n '*',\n '',\n].join('\\n');\n\n/**\n * Write the {@link DEPLOY_ZONE_GITIGNORE_CONTENT} guard into a rendered deploy\n * directory. Unconditional (not `existsSync`-gated) so a deleted or edited\n * guard self-heals on the next render and cannot silently drift.\n */\nfunction writeDeployZoneIgnoreGuard(outputDir: string): string {\n const guardPath = join(outputDir, '.gitignore');\n writeFileSync(guardPath, DEPLOY_ZONE_GITIGNORE_CONTENT, 'utf8');\n return guardPath;\n}\n\nexport interface CiDeployGenerateOptions {\n env: PlatformEnvironmentConfiguration;\n credentials: PlatformEnvSecretsJson;\n config: PlatformEnvConfigJson;\n runtime: WildoDeploymentRuntime;\n outputDir: string;\n applicationBackends?: ApplicationBackendEnvTarget[];\n /** App-owned worker/minion deploy targets — render per-worker/per-minion k8s manifests (REMOTE). */\n applicationWorkers?: ApplicationWorkerEnvTarget[];\n applicationMinions?: ApplicationMinionEnvTarget[];\n /**\n * Framework repository root — required to resolve `templates/infra/k8s/**`\n * when rendering the remote-cluster TLS manifests (ClusterIssuer, tls-config)\n * + Traefik Helm values, AND the per-app Deployment/Ingress/Service. When\n * omitted, only Secrets/ConfigMaps are emitted (the pre-remote-TLS behavior).\n */\n frameworkPath?: string;\n /**\n * Container image tag for the app Deployment (e.g. the CI git SHA / release\n * tag). Defaults to `DEFAULT_PLATFORM_IMAGE_TAG` when omitted.\n */\n imageTag?: string;\n}\n\nexport interface CiDeployGenerateResult {\n filesWritten: string[];\n runtime: WildoDeploymentRuntime;\n}\n\nexport function generateCiDeployArtifacts(\n options: CiDeployGenerateOptions,\n log: Logger,\n): CiDeployGenerateResult {\n const { env, credentials, runtime, outputDir, applicationBackends } = options;\n const filesWritten: string[] = [];\n\n mkdirSync(outputDir, { recursive: true });\n filesWritten.push(writeDeployZoneIgnoreGuard(outputDir));\n\n if (runtime === WildoDeploymentRuntime.KUBERNETES) {\n const replicaOverrides = options.config.kubernetes?.services ?? {};\n // The application's own store (#3367), which bounds every runtime's database network segments on both lanes.\n const applicationDatabaseEngine = resolveApplicationDatabaseEngine(options.config.applicationDatabase);\n const appliedReplicaKeys = new Set<string>();\n const replicaFor = (key: string | undefined): number | undefined => key ? replicaOverrides[key]?.replicas : undefined;\n const k8sDir = join(outputDir, 'k8s');\n mkdirSync(k8sDir, { recursive: true });\n\n // Minions and workers are passed for their PROVIDER SECRETS (#369), not merely for symmetry:\n // each application runtime now owns a Secret scoped to its own `providers.scopes` entry, and a\n // runtime whose targets are omitted here gets no Secret at all while its Deployment still\n // mounts one optionally — i.e. it would boot with no provider credentials. The same two lists\n // already drive the Deployment render below, so both sides read one population.\n const k8sResources = generateK8sSecrets(env, credentials, {\n applicationBackends,\n applicationMinions: options.applicationMinions,\n applicationWorkers: options.applicationWorkers,\n config: options.config,\n });\n\n for (const [name, resource] of Object.entries(k8sResources)) {\n const filePath = join(k8sDir, `${name}.yaml`);\n writeFileSync(filePath, resource.yaml, 'utf8');\n filesWritten.push(filePath);\n }\n\n // Remote-cluster TLS manifests (ClusterIssuer + Traefik ServersTransport)\n // and the namespace's NetworkPolicy set (#3511)\n // as FLAT siblings of the Secrets — CI's `kubectl apply -f k8s/` is\n // non-recursive — plus the provider-agnostic Traefik Helm values consumed\n // by the CI `helm install traefik -f traefik-values.yaml` step. No-ops for\n // LOCAL envs; requires `frameworkPath` to resolve the templates.\n if (options.frameworkPath) {\n // The ClusterIssuer and the Traefik install are the CLUSTER's, installed once by its infrastructure\n // host; a hosted application deploys its own workloads into that cluster and nothing cluster-wide.\n if (!InfrastructureHost.isHosted(env)) {\n filesWritten.push(\n ...K8sManifestGenerator.renderRemoteClusterInfra(env, options.frameworkPath, k8sDir),\n );\n const traefikValuesPath = K8sManifestGenerator.renderRemoteTraefikValues(\n env, options.frameworkPath, outputDir,\n );\n if (traefikValuesPath) filesWritten.push(traefikValuesPath);\n }\n\n // Per-service app manifests, as FLAT files: a backend Deployment+Service,\n // one nginx Deployment+Service per frontend, and one Ingress routing each\n // serviceHosts host → its per-service Service. This is the reachable remote\n // self-host app-deploy path (LOCAL-only renderAllManifests never runs the\n // app render). Deduped per app (the primary-first backend target carries\n // the shared appName/ingressRoutes/frontends context); the backend mounts\n // the canonical `{appSlug}-secret` emitted above.\n const renderedApps = new Set<string>();\n for (const target of applicationBackends ?? []) {\n if (!target.appName || !target.ingressRoutes?.length || renderedApps.has(target.appName)) {\n continue;\n }\n renderedApps.add(target.appName);\n const applicationManifests = K8sManifestGenerator.renderApplicationForTarget(\n env,\n options.frameworkPath,\n {\n applicationDatabaseEngine,\n appName: target.appName,\n backendServiceName: target.serviceName,\n backendReplicas: replicaFor(target.serviceKey),\n ingressRoutes: target.ingressRoutes,\n podPorts: target.podPorts,\n healthPort: target.healthPort,\n // `frontends` already carries each frontend's own resolved isolation.\n frontends: target.frontends?.map((frontend) => ({ ...frontend, replicas: replicaFor(frontend.serviceKey) })),\n isolation: target.isolation,\n },\n options.imageTag,\n );\n for (const { name, yaml } of applicationManifests) {\n // Count a key as applied only when its Deployment was actually emitted.\n for (const service of [target, ...(target.frontends ?? [])]) {\n if (service.serviceKey && name === `${service.serviceName}-deployment`) appliedReplicaKeys.add(service.serviceKey);\n }\n const appManifestPath = join(k8sDir, `${name}.yaml`);\n writeFileSync(appManifestPath, yaml, 'utf8');\n filesWritten.push(appManifestPath);\n }\n }\n\n // Per-app-owned worker Deployments + ClusterIP Services. Worker dispatch\n // addresses are supplied by the application target builder.\n for (const worker of options.applicationWorkers ?? []) {\n if (!worker.appName) continue;\n for (const { name, yaml } of K8sManifestGenerator.renderWorkerForTarget(\n env,\n options.frameworkPath,\n {\n applicationDatabaseEngine,\n appName: worker.appName,\n workerName: worker.workerName,\n httpPort: worker.http?.port,\n replicas: worker.replicas,\n healthPath: worker.http?.healthPath,\n readyPath: worker.http?.readyPath,\n isolation: worker.isolation,\n metricsPath: worker.http?.metricsPath,\n },\n options.imageTag,\n )) {\n const workerPath = join(k8sDir, `${name}.yaml`);\n writeFileSync(workerPath, yaml, 'utf8');\n filesWritten.push(workerPath);\n }\n }\n\n // Per-app-owned minion Deployments (KD-5 — singleton, shares app scope).\n for (const minion of options.applicationMinions ?? []) {\n if (!minion.appName) continue;\n for (const { name, yaml } of K8sManifestGenerator.renderMinionForTarget(\n env,\n options.frameworkPath,\n {\n applicationDatabaseEngine,\n appName: minion.appName,\n minionName: minion.minionName,\n // Forwarded verbatim, absence included — see `accessDeclaration` on\n // the target type. Defaulting it here would decide the minion's\n // network membership at a site that knows nothing about it.\n accessDeclaration: minion.accessDeclaration,\n reinstantiationPolicy: minion.reinstantiationPolicy,\n gracePeriodSec: minion.gracePeriodSec,\n liveness: minion.liveness,\n isolation: minion.isolation,\n },\n options.imageTag,\n )) {\n const minionPath = join(k8sDir, `${name}.yaml`);\n writeFileSync(minionPath, yaml, 'utf8');\n filesWritten.push(minionPath);\n }\n }\n }\n\n const platformKeys = new Set<string>(Object.values(PlatformWildoServices));\n for (const [key, override] of Object.entries(replicaOverrides)) {\n if (override.replicas !== undefined && !appliedReplicaKeys.has(key) && !platformKeys.has(key)) {\n log.warn(`Kubernetes replica override '${key}' was not applied: no matching application Deployment was emitted. Use the authored SaaS service key; CDN, unserved and absent targets have no Deployment.`);\n }\n }\n log.info(` Generated ${filesWritten.length} K8s resources`);\n }\n\n if (runtime === WildoDeploymentRuntime.DOCKER_COMPOSE) {\n const composeDir = join(outputDir, 'compose');\n mkdirSync(composeDir, { recursive: true });\n\n const addressCtx = ServiceAddressResolver.fromEnvironment(env, AddressPerspective.CONTAINER_INTERNAL);\n const addresses = ServiceAddressResolver.resolve(addressCtx);\n\n // Single load+hydrate seam — the REMOTE compose platform + app env this generator emits must\n // carry the infra posture (OTEL_*/LOG_LEVEL/provider-selection) the setup config.json omits.\n const config = loadInfraHydratedConfig(env, options.config);\n const infraEnv = PlatformEnvVarsBuilder.buildInfraCredentialEnv(credentials, config, env);\n const platformEnv = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(\n credentials, addresses, config, env,\n );\n const mergedEnv = { ...infraEnv, ...platformEnv };\n // The platform compose env is the infrastructure host's deploy artifact; a hosted application ships\n // only its own runtime env files below.\n if (!InfrastructureHost.isHosted(env)) {\n const platformEnvPath = join(composeDir, '.env.wildo-platform');\n writeFileSync(platformEnvPath, formatEnvFile(mergedEnv), 'utf8');\n filesWritten.push(platformEnvPath);\n }\n\n if (applicationBackends) {\n for (const target of applicationBackends) {\n const appEnv = PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n target.bootstrapCredentials,\n target.serviceName,\n credentials,\n addresses,\n config,\n env.name,\n // REMOTE compose lane — see the sibling k8s-secrets call site. Both were invisible to\n // the original enumeration because they build the same backend env from a different\n // generator, and neither is exercised by a local `wildo config sync`.\n declaredProviderScope(target.scopedProviderRefs),\n {\n appDatabaseName: target.appDatabaseName,\n redisKeyPrefix: target.redisKeyPrefix,\n storageBucketPrefix: target.storageBucketPrefix,\n deploymentLocationType: env.locationType,\n mongodbDirectConnection: env.locationType === WildoLocationType.LOCAL,\n // Serialized into APPLICATION_RUNTIME_ENDPOINTS so the compose app\n // reconstructs `runtime.endPoints`. For REMOTE these are the\n // serviceHosts-driven public URLs (matching the Traefik ingress\n // routes emitted below — the CORS invariant); omitting them left the\n // remote compose app with no runtime topology.\n runtimeEndpoints: target.runtimeEndpoints,\n // Backend→worker dispatch URLs (G-8 / MW4): emit `WILDO_WORKER_<NAME>_URL`\n // into the backend's `.env` so it can reach each declared worker on the\n // shared network (same `{appSlug}-worker-{name}` service name as k8s).\n workerUrls: target.workerUrls,\n },\n );\n const envPath = join(composeDir, `${target.serviceName}.env`);\n writeFileSync(envPath, formatEnvFile(appEnv), 'utf8');\n filesWritten.push(envPath);\n }\n }\n\n // Self-hosted app serving stack: the app image behind a Traefik reverse\n // proxy that TLS-terminates and routes each serviceHosts subdomain to its\n // port (the docker counterpart of the k8s ingress — SAME `ingressRoutes`).\n // Rendered only when the app carries a deploy context (REMOTE).\n const appDeployTarget = applicationBackends?.find(\n (t) => t.appName && t.ingressRoutes && t.ingressRoutes.length > 0,\n );\n if (options.frameworkPath && appDeployTarget?.appName && appDeployTarget.ingressRoutes) {\n const composeTemplatesHome = resolveFrameworkLayout(options.frameworkPath).dockerComposeTemplatesHome;\n const tp = new TemplateProcessor(composeTemplatesHome);\n // Traefik's Let's Encrypt resolver still registers with an empty contact\n // email (ACME v2 makes it optional), but the operator then gets no\n // expiry-warning mail — surface it so a self-hoster can set\n // `remoteProvider.acmeEmail` before certs silently near expiry.\n if (!env.remoteProvider?.acmeEmail) {\n log.warn(\n ' remoteProvider.acmeEmail is unset — the app Traefik stack will request TLS certs without a contact email (no expiry notifications).',\n );\n }\n // Per-service model: build the app CONTAINER list (the backend + one nginx\n // container per frontend), each with its serviceHosts host + the port\n // Traefik load-balances to. In compose Traefik routes straight to the\n // container's own port — the backend's API port; a frontend nginx's :80\n // (NOT the k8s Service port). The backend loads its `${serviceName}.env`;\n // static frontends load none (config baked at build time).\n const routeByService = new Map(\n appDeployTarget.ingressRoutes.map((r) => [r.serviceName, r]),\n );\n const backendRoute = routeByService.get(appDeployTarget.serviceName);\n // Durable immudb audit trust-anchor mount for the backend container — set when the env has an\n // immudb audit backing service configured (same gate as the k8s app-backend PVC). The compose\n // backend then gets IMMUDB_STATE_DIR + a named volume mounted at it; without a durable volume the\n // audit client runs EPHEMERAL and a cross-restart rollback of the ledger is silently re-adopted.\n const immudbAuditStateDir = env.backingServices?.[BackingServiceKind.IMMUDB]\n ? IMMUDB_AUDIT_STATE_CONTAINER_DIR\n : undefined;\n // Container isolation, projected identically for both kinds. `runAsUser`\n // is the combined `<uid>:<gid>` compose wants for `user:`; the numeric\n // pair rides alongside because every `tmpfs:` entry needs `uid=`/`gid=`\n // options — a bare tmpfs is root-owned 0755 and unwritable by the non-root\n // process this same block just declared.\n const composeIsolation = (\n isolation: { runAsUser: number; runAsGroup: number; writablePaths: string[] } | undefined,\n fallbackUid: number,\n fallbackWritablePaths: readonly string[],\n ) => {\n const uid = isolation?.runAsUser ?? fallbackUid;\n const gid = isolation?.runAsGroup ?? fallbackUid;\n return {\n runAsUser: `${uid}:${gid}`,\n runAsUserId: uid,\n runAsGroupId: gid,\n writablePaths: [\n RUNTIME_MANDATORY_WRITABLE_PATH,\n ...(isolation?.writablePaths ?? fallbackWritablePaths),\n ],\n pidsLimit: RUNTIME_DEFAULT_PIDS_LIMIT,\n };\n };\n const appContainers = [\n ...(backendRoute\n ? [\n {\n serviceName: appDeployTarget.serviceName,\n host: backendRoute.host,\n port: backendRoute.port,\n isBackend: true,\n envFile: `${appDeployTarget.serviceName}.env`,\n // Derived, never hand-listed (#3367): the backend's membership, bounded by the application's store.\n networks: resolveRuntimeComposeNetworks(\n { kind: ApplicationRuntimePrincipalKind.APPLICATION_BACKEND } as ApplicationRuntimePrincipal,\n undefined,\n { servesHttp: true, applicationDatabaseEngine: resolveApplicationDatabaseEngine(options.config.applicationDatabase) },\n ),\n immudbAuditStateDir,\n ...composeIsolation(appDeployTarget.isolation, APP_BACKEND_DEFAULT_RUNTIME_UID, []),\n },\n ]\n : []),\n ...(appDeployTarget.frontends ?? []).flatMap((fe) => {\n const r = routeByService.get(fe.serviceName);\n return r\n ? [{\n serviceName: fe.serviceName,\n host: r.host,\n // Traefik routes to the container's own port. nginx keeps :80 —\n // containers set `ip_unprivileged_port_start=0`, so binding it\n // as a non-root user works (measured, not assumed).\n port: 80,\n isBackend: false,\n // A static frontend is no runtime principal: it joins the edge and nothing else.\n networks: resolveRuntimeComposeNetworks(undefined, undefined, {\n servesHttp: true,\n applicationDatabaseEngine: resolveApplicationDatabaseEngine(options.config.applicationDatabase),\n }),\n ...composeIsolation(\n fe.isolation,\n APP_FRONTEND_DEFAULT_RUNTIME_UID,\n APP_FRONTEND_MANDATORY_WRITABLE_PATHS,\n ),\n }]\n : [];\n }),\n ];\n const rendered = tp.processTemplate('docker-compose.app.yml.hbs', {\n appName: appDeployTarget.appName,\n appContainers,\n registry: env.remoteProvider?.registryEndpoint ?? '',\n acmeEmail: env.remoteProvider?.acmeEmail ?? '',\n envName: env.name,\n // The edge — the reverse proxy, :80/:443 and the ACME store — belongs to whoever owns the\n // infrastructure. A hosted environment renders its services and labels only; the host's proxy\n // already binds those ports and discovers these containers over the shared `wildo-edge` network.\n hostedByAnotherApplication: InfrastructureHost.isHosted(env),\n });\n const appComposePath = join(composeDir, 'docker-compose.app.yml');\n writeFileSync(appComposePath, rendered, 'utf8');\n filesWritten.push(appComposePath);\n }\n\n log.info(` Generated ${filesWritten.length} Docker Compose env files`);\n }\n\n return { filesWritten, runtime };\n}\n"]}
|
|
1
|
+
{"version":3,"file":"ci-deploy-generator.service.js","sourceRoot":"","sources":["../../../../src/services/deployment/ci-deploy-generator.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,IAAI,CAAC;AAC9C,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAQ5B,OAAO,EAAE,sBAAsB,EAAE,MAAM,0DAA0D,CAAC;AAClG,OAAO,EAAE,uBAAuB,EAAE,MAAM,qEAAqE,CAAC;AAC9G,OAAO,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,8DAA8D,CAAC;AAC1H,OAAO,EAAE,kBAAkB,EAAE,MAAM,kEAAkE,CAAC;AACtG,OAAO,EAAE,oBAAoB,EAAE,MAAM,mEAAmE,CAAC;AACzG,OAAO,EAAE,kBAAkB,EAAE,MAAM,6DAA6D,CAAC;AACjG,OAAO,EAAE,iBAAiB,EAAE,MAAM,iDAAiD,CAAC;AACpF,OAAO,EACL,sBAAsB,EACtB,sBAAsB,EACtB,iBAAiB,EACjB,qBAAqB,EACrB,kBAAkB,EAClB,+BAA+B,EAC/B,0BAA0B,EAC1B,+BAA+B,EAC/B,gCAAgC,EAChC,qCAAqC,EACrC,+BAA+B,EAE/B,gCAAgC,EAChC,+BAA+B,EAC/B,6BAA6B,GAC9B,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,gCAAgC,EAAE,MAAM,yDAAyD,CAAC;AAG3G,OAAO,EAAE,qBAAqB,EAAE,MAAM,yDAAyD,CAAC;AAEhG;;;GAGG;AACH,SAAS,aAAa,CAAC,GAA2B;IAChD,MAAM,KAAK,GAAa,EAAE,CAAC;IAC3B,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC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gBACpD,SAAS,EAAE,GAAG,CAAC,cAAc,EAAE,SAAS,IAAI,EAAE;gBAC9C,OAAO,EAAE,GAAG,CAAC,IAAI;gBACjB,0FAA0F;gBAC1F,8FAA8F;gBAC9F,iGAAiG;gBACjG,0BAA0B,EAAE,kBAAkB,CAAC,QAAQ,CAAC,GAAG,CAAC;aAC7D,CAAC,CAAC;YACH,MAAM,cAAc,GAAG,IAAI,CAAC,UAAU,EAAE,wBAAwB,CAAC,CAAC;YAClE,aAAa,CAAC,cAAc,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC;YAChD,YAAY,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QACpC,CAAC;QAED,GAAG,CAAC,IAAI,CAAC,eAAe,YAAY,CAAC,MAAM,2BAA2B,CAAC,CAAC;IAC1E,CAAC;IAED,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,CAAC;AACnC,CAAC","sourcesContent":["/**\n * CiDeployGeneratorService — generate deployment artifacts in CI mode.\n *\n * Produces the files a CI pipeline needs to deploy a Wildo app:\n * - **Kubernetes**: K8s Secret + ConfigMap YAML, written to `<outputDir>/k8s/`\n * - **Docker Compose**: `.env` files for docker-compose services, written to `<outputDir>/compose/`\n *\n * `<outputDir>` is the env-scoped deploy zone\n * `<appRoot>/.wildo-saas/deploy/<env>/`, resolved by\n * `EnvironmentPaths.resolveScopedDeployArtifactsDir`. Every render also writes\n * an ignore-everything `.gitignore` there — see\n * {@link DEPLOY_ZONE_GITIGNORE_CONTENT}.\n *\n * In CI mode secrets are reconstructed from flat env vars (GitHub Secrets\n * injected via `WILDO_SECRET_*`) instead of reading `secrets.json` from disk.\n * The OUTPUT LOCATION is identical either way — a local\n * `wildo config sync --domain config` deposits the same secret-bearing files,\n * which is precisely why the ignore guard is unconditional.\n */\n\nimport { mkdirSync, writeFileSync } from 'fs';\nimport { join } from 'path';\nimport type { PlatformEnvSecretsJson } from '~wildo-cli/services/credentials/credentials.schemas';\nimport type { PlatformEnvConfigJson } from '~wildo-cli/services/credentials/credentials.schemas';\nimport type {\n ApplicationBackendEnvTarget,\n ApplicationWorkerEnvTarget,\n ApplicationMinionEnvTarget,\n} from '~wildo-cli/services/environment/env-configuration-generator.service';\nimport { PlatformEnvVarsBuilder } from '~wildo-cli/services/environment/env-vars-builder.service';\nimport { loadInfraHydratedConfig } from '~wildo-cli/services/environment/env-configuration-generator.service';\nimport { ServiceAddressResolver, AddressPerspective } from '~wildo-cli/services/catalog/service-address-resolver.service';\nimport { generateK8sSecrets } from '~wildo-cli/services/deployment/k8s/k8s-secrets-generator.service';\nimport { K8sManifestGenerator } from '~wildo-cli/services/deployment/k8s/k8s-manifest-generator.service';\nimport { InfrastructureHost } from '~wildo-cli/services/environment/infrastructure-host.service';\nimport { TemplateProcessor } from '~wildo-cli/infrastructure/io/template-processor';\nimport {\n resolveFrameworkLayout,\n WildoDeploymentRuntime,\n WildoLocationType,\n PlatformWildoServices,\n BackingServiceKind,\n RUNTIME_MANDATORY_WRITABLE_PATH,\n RUNTIME_DEFAULT_PIDS_LIMIT,\n APP_BACKEND_DEFAULT_RUNTIME_UID,\n APP_FRONTEND_DEFAULT_RUNTIME_UID,\n APP_FRONTEND_MANDATORY_WRITABLE_PATHS,\n ApplicationRuntimePrincipalKind,\n type ApplicationRuntimePrincipal,\n resolveApplicationDatabaseEngine,\n resolveRuntimeApplicationStores,\n resolveRuntimeComposeNetworks,\n} from '@wildo-ai/platform-config-lib';\nimport { IMMUDB_AUDIT_STATE_CONTAINER_DIR } from '~wildo-cli/services/data-services/data-services.schemas';\nimport type { PlatformEnvironmentConfiguration } from '~wildo-cli/services/environment/environment.schemas';\nimport type { Logger } from '~wildo-cli/kernel/types';\nimport { declaredProviderScope } from '~wildo-cli/services/credentials/provider-env-vars.utils';\n\n/**\n * Format a record of env vars into a `.env` file string.\n * Values containing spaces, `=`, `#`, or newlines are double-quoted.\n */\nfunction formatEnvFile(env: Record<string, string>): string {\n const lines: string[] = [];\n for (const [key, value] of Object.entries(env)) {\n const needsQuoting = /[\\s=#\"'\\\\]|\\n/.test(value);\n const formatted = needsQuoting\n ? `${key}=\"${value.replace(/\\\\/g, '\\\\\\\\').replace(/\"/g, '\\\\\"').replace(/\\r/g, '\\\\r').replace(/\\n/g, '\\\\n')}\"`\n : `${key}=${value}`;\n lines.push(formatted);\n }\n return lines.join('\\n') + '\\n';\n}\n\n/**\n * Ignore-everything guard written into each rendered deploy-artifact directory.\n *\n * EVERY file this generator emits is secret-bearing by construction — K8s\n * `Secret` manifests carry base64 credentials, the compose `.env` files carry\n * the platform admin secret, the apps-manager signing key and database URLs\n * with passwords. The zone lives inside `.wildo-saas/`, which is a PARTLY\n * TRACKED tree, so \"it's under a dot-directory\" is not protection.\n *\n * The framework does not generate an application's root `.gitignore`, so an\n * app-authored rule is a guarantee the framework cannot make on the app's\n * behalf. Writing the guard beside the artifacts makes the zone self-protecting\n * from its very first render, in every application, with no bootstrap step and\n * nothing for an app author to remember. The app's own root rule\n * (`.wildo-saas/deploy/`) stays as defense in depth.\n *\n * Bare `*` — deliberately no `!.gitignore` re-include. The guard is a generated\n * artifact regenerated on every render; it is not repository truth and must not\n * be committed either. It does not affect `kubectl apply` / `docker compose`,\n * which read the directory directly and know nothing about git.\n *\n * Precedent: `templates/infra/docker-compose/.gitignore` ships the same\n * shape next to its generated `.env`.\n */\nconst DEPLOY_ZONE_GITIGNORE_CONTENT = [\n '# Generated deploy artifacts — every file here carries credentials.',\n '# Written by `wildo config sync --domain config`; never commit any of it.',\n '*',\n '',\n].join('\\n');\n\n/**\n * Write the {@link DEPLOY_ZONE_GITIGNORE_CONTENT} guard into a rendered deploy\n * directory. Unconditional (not `existsSync`-gated) so a deleted or edited\n * guard self-heals on the next render and cannot silently drift.\n */\nfunction writeDeployZoneIgnoreGuard(outputDir: string): string {\n const guardPath = join(outputDir, '.gitignore');\n writeFileSync(guardPath, DEPLOY_ZONE_GITIGNORE_CONTENT, 'utf8');\n return guardPath;\n}\n\nexport interface CiDeployGenerateOptions {\n env: PlatformEnvironmentConfiguration;\n credentials: PlatformEnvSecretsJson;\n config: PlatformEnvConfigJson;\n runtime: WildoDeploymentRuntime;\n outputDir: string;\n applicationBackends?: ApplicationBackendEnvTarget[];\n /** App-owned worker/minion deploy targets — render per-worker/per-minion k8s manifests (REMOTE). */\n applicationWorkers?: ApplicationWorkerEnvTarget[];\n applicationMinions?: ApplicationMinionEnvTarget[];\n /**\n * Framework repository root — required to resolve `templates/infra/k8s/**`\n * when rendering the remote-cluster TLS manifests (ClusterIssuer, tls-config)\n * + Traefik Helm values, AND the per-app Deployment/Ingress/Service. When\n * omitted, only Secrets/ConfigMaps are emitted (the pre-remote-TLS behavior).\n */\n frameworkPath?: string;\n /**\n * Container image tag for the app Deployment (e.g. the CI git SHA / release\n * tag). Defaults to `DEFAULT_PLATFORM_IMAGE_TAG` when omitted.\n */\n imageTag?: string;\n}\n\nexport interface CiDeployGenerateResult {\n filesWritten: string[];\n runtime: WildoDeploymentRuntime;\n}\n\nexport function generateCiDeployArtifacts(\n options: CiDeployGenerateOptions,\n log: Logger,\n): CiDeployGenerateResult {\n const { env, credentials, runtime, outputDir, applicationBackends } = options;\n const filesWritten: string[] = [];\n\n mkdirSync(outputDir, { recursive: true });\n filesWritten.push(writeDeployZoneIgnoreGuard(outputDir));\n\n if (runtime === WildoDeploymentRuntime.KUBERNETES) {\n const replicaOverrides = options.config.kubernetes?.services ?? {};\n // The application's own store (#3367), which bounds every runtime's database network segments on both lanes.\n const applicationDatabaseEngine = resolveApplicationDatabaseEngine(options.config.applicationDatabase);\n const appliedReplicaKeys = new Set<string>();\n const replicaFor = (key: string | undefined): number | undefined => key ? replicaOverrides[key]?.replicas : undefined;\n const k8sDir = join(outputDir, 'k8s');\n mkdirSync(k8sDir, { recursive: true });\n\n // Minions and workers are passed for their PROVIDER SECRETS (#369), not merely for symmetry:\n // each application runtime now owns a Secret scoped to its own `providers.scopes` entry, and a\n // runtime whose targets are omitted here gets no Secret at all while its Deployment still\n // mounts one optionally — i.e. it would boot with no provider credentials. The same two lists\n // already drive the Deployment render below, so both sides read one population.\n const k8sResources = generateK8sSecrets(env, credentials, {\n applicationBackends,\n applicationMinions: options.applicationMinions,\n applicationWorkers: options.applicationWorkers,\n config: options.config,\n });\n\n for (const [name, resource] of Object.entries(k8sResources)) {\n const filePath = join(k8sDir, `${name}.yaml`);\n writeFileSync(filePath, resource.yaml, 'utf8');\n filesWritten.push(filePath);\n }\n\n // Remote-cluster TLS manifests (ClusterIssuer + Traefik ServersTransport)\n // and the namespace's NetworkPolicy set (#3511)\n // as FLAT siblings of the Secrets — CI's `kubectl apply -f k8s/` is\n // non-recursive — plus the provider-agnostic Traefik Helm values consumed\n // by the CI `helm install traefik -f traefik-values.yaml` step. No-ops for\n // LOCAL envs; requires `frameworkPath` to resolve the templates.\n if (options.frameworkPath) {\n // The ClusterIssuer and the Traefik install are the CLUSTER's, installed once by its infrastructure\n // host; a hosted application deploys its own workloads into that cluster and nothing cluster-wide.\n if (!InfrastructureHost.isHosted(env)) {\n filesWritten.push(\n ...K8sManifestGenerator.renderRemoteClusterInfra(env, options.frameworkPath, k8sDir),\n );\n const traefikValuesPath = K8sManifestGenerator.renderRemoteTraefikValues(\n env, options.frameworkPath, outputDir,\n );\n if (traefikValuesPath) filesWritten.push(traefikValuesPath);\n }\n\n // Per-service app manifests, as FLAT files: a backend Deployment+Service,\n // one nginx Deployment+Service per frontend, and one Ingress routing each\n // serviceHosts host → its per-service Service. This is the reachable remote\n // self-host app-deploy path (LOCAL-only renderAllManifests never runs the\n // app render). Deduped per app (the primary-first backend target carries\n // the shared appName/ingressRoutes/frontends context); the backend mounts\n // the canonical `{appSlug}-secret` emitted above.\n const renderedApps = new Set<string>();\n for (const target of applicationBackends ?? []) {\n if (!target.appName || !target.ingressRoutes?.length || renderedApps.has(target.appName)) {\n continue;\n }\n renderedApps.add(target.appName);\n const applicationManifests = K8sManifestGenerator.renderApplicationForTarget(\n env,\n options.frameworkPath,\n {\n applicationDatabaseEngine,\n appName: target.appName,\n backendServiceName: target.serviceName,\n backendReplicas: replicaFor(target.serviceKey),\n ingressRoutes: target.ingressRoutes,\n podPorts: target.podPorts,\n healthPort: target.healthPort,\n // `frontends` already carries each frontend's own resolved isolation.\n frontends: target.frontends?.map((frontend) => ({ ...frontend, replicas: replicaFor(frontend.serviceKey) })),\n isolation: target.isolation,\n },\n options.imageTag,\n );\n for (const { name, yaml } of applicationManifests) {\n // Count a key as applied only when its Deployment was actually emitted.\n for (const service of [target, ...(target.frontends ?? [])]) {\n if (service.serviceKey && name === `${service.serviceName}-deployment`) appliedReplicaKeys.add(service.serviceKey);\n }\n const appManifestPath = join(k8sDir, `${name}.yaml`);\n writeFileSync(appManifestPath, yaml, 'utf8');\n filesWritten.push(appManifestPath);\n }\n }\n\n // Per-app-owned worker Deployments + ClusterIP Services. Worker dispatch\n // addresses are supplied by the application target builder.\n for (const worker of options.applicationWorkers ?? []) {\n if (!worker.appName) continue;\n for (const { name, yaml } of K8sManifestGenerator.renderWorkerForTarget(\n env,\n options.frameworkPath,\n {\n applicationDatabaseEngine,\n appName: worker.appName,\n workerName: worker.workerName,\n httpPort: worker.http?.port,\n replicas: worker.replicas,\n healthPath: worker.http?.healthPath,\n readyPath: worker.http?.readyPath,\n isolation: worker.isolation,\n metricsPath: worker.http?.metricsPath,\n },\n options.imageTag,\n )) {\n const workerPath = join(k8sDir, `${name}.yaml`);\n writeFileSync(workerPath, yaml, 'utf8');\n filesWritten.push(workerPath);\n }\n }\n\n // Per-app-owned minion Deployments (KD-5 — singleton, shares app scope).\n for (const minion of options.applicationMinions ?? []) {\n if (!minion.appName) continue;\n for (const { name, yaml } of K8sManifestGenerator.renderMinionForTarget(\n env,\n options.frameworkPath,\n {\n applicationDatabaseEngine,\n appName: minion.appName,\n minionName: minion.minionName,\n // Forwarded verbatim, absence included — see `accessDeclaration` on\n // the target type. Defaulting it here would decide the minion's\n // network membership at a site that knows nothing about it.\n accessDeclaration: minion.accessDeclaration,\n reinstantiationPolicy: minion.reinstantiationPolicy,\n gracePeriodSec: minion.gracePeriodSec,\n liveness: minion.liveness,\n isolation: minion.isolation,\n },\n options.imageTag,\n )) {\n const minionPath = join(k8sDir, `${name}.yaml`);\n writeFileSync(minionPath, yaml, 'utf8');\n filesWritten.push(minionPath);\n }\n }\n }\n\n const platformKeys = new Set<string>(Object.values(PlatformWildoServices));\n for (const [key, override] of Object.entries(replicaOverrides)) {\n if (override.replicas !== undefined && !appliedReplicaKeys.has(key) && !platformKeys.has(key)) {\n log.warn(`Kubernetes replica override '${key}' was not applied: no matching application Deployment was emitted. Use the authored SaaS service key; CDN, unserved and absent targets have no Deployment.`);\n }\n }\n log.info(` Generated ${filesWritten.length} K8s resources`);\n }\n\n if (runtime === WildoDeploymentRuntime.DOCKER_COMPOSE) {\n const composeDir = join(outputDir, 'compose');\n mkdirSync(composeDir, { recursive: true });\n\n const addressCtx = ServiceAddressResolver.fromEnvironment(env, AddressPerspective.CONTAINER_INTERNAL);\n const addresses = ServiceAddressResolver.resolve(addressCtx);\n\n // Single load+hydrate seam — the REMOTE compose platform + app env this generator emits must\n // carry the infra posture (OTEL_*/LOG_LEVEL/provider-selection) the setup config.json omits.\n const config = loadInfraHydratedConfig(env, options.config);\n const infraEnv = PlatformEnvVarsBuilder.buildInfraCredentialEnv(credentials, config, env);\n const platformEnv = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(\n credentials, addresses, config, env,\n );\n const mergedEnv = { ...infraEnv, ...platformEnv };\n // The platform compose env is the infrastructure host's deploy artifact; a hosted application ships\n // only its own runtime env files below.\n if (!InfrastructureHost.isHosted(env)) {\n const platformEnvPath = join(composeDir, '.env.wildo-platform');\n writeFileSync(platformEnvPath, formatEnvFile(mergedEnv), 'utf8');\n filesWritten.push(platformEnvPath);\n }\n\n if (applicationBackends) {\n for (const target of applicationBackends) {\n const appEnv = PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n target.bootstrapCredentials,\n target.serviceName,\n credentials,\n addresses,\n config,\n env.name,\n // REMOTE compose lane — see the sibling k8s-secrets call site. Both were invisible to\n // the original enumeration because they build the same backend env from a different\n // generator, and neither is exercised by a local `wildo config sync`.\n declaredProviderScope(target.scopedProviderRefs),\n {\n appDatabaseName: target.appDatabaseName,\n redisKeyPrefix: target.redisKeyPrefix,\n storageBucketPrefix: target.storageBucketPrefix,\n deploymentLocationType: env.locationType,\n mongodbDirectConnection: env.locationType === WildoLocationType.LOCAL,\n // Serialized into APPLICATION_RUNTIME_ENDPOINTS so the compose app\n // reconstructs `runtime.endPoints`. For REMOTE these are the\n // serviceHosts-driven public URLs (matching the Traefik ingress\n // routes emitted below — the CORS invariant); omitting them left the\n // remote compose app with no runtime topology.\n runtimeEndpoints: target.runtimeEndpoints,\n // Backend→worker dispatch URLs (G-8 / MW4): emit `WILDO_WORKER_<NAME>_URL`\n // into the backend's `.env` so it can reach each declared worker on the\n // shared network (same `{appSlug}-worker-{name}` service name as k8s).\n workerUrls: target.workerUrls,\n },\n );\n const envPath = join(composeDir, `${target.serviceName}.env`);\n writeFileSync(envPath, formatEnvFile(appEnv), 'utf8');\n filesWritten.push(envPath);\n }\n }\n\n // Self-hosted app serving stack: the app image behind a Traefik reverse\n // proxy that TLS-terminates and routes each serviceHosts subdomain to its\n // port (the docker counterpart of the k8s ingress — SAME `ingressRoutes`).\n // Rendered only when the app carries a deploy context (REMOTE).\n const appDeployTarget = applicationBackends?.find(\n (t) => t.appName && t.ingressRoutes && t.ingressRoutes.length > 0,\n );\n if (options.frameworkPath && appDeployTarget?.appName && appDeployTarget.ingressRoutes) {\n const composeTemplatesHome = resolveFrameworkLayout(options.frameworkPath).dockerComposeTemplatesHome;\n const tp = new TemplateProcessor(composeTemplatesHome);\n // Traefik's Let's Encrypt resolver still registers with an empty contact\n // email (ACME v2 makes it optional), but the operator then gets no\n // expiry-warning mail — surface it so a self-hoster can set\n // `remoteProvider.acmeEmail` before certs silently near expiry.\n if (!env.remoteProvider?.acmeEmail) {\n log.warn(\n ' remoteProvider.acmeEmail is unset — the app Traefik stack will request TLS certs without a contact email (no expiry notifications).',\n );\n }\n // Per-service model: build the app CONTAINER list (the backend + one nginx\n // container per frontend), each with its serviceHosts host + the port\n // Traefik load-balances to. In compose Traefik routes straight to the\n // container's own port — the backend's API port; a frontend nginx's :80\n // (NOT the k8s Service port). The backend loads its `${serviceName}.env`;\n // static frontends load none (config baked at build time).\n const routeByService = new Map(\n appDeployTarget.ingressRoutes.map((r) => [r.serviceName, r]),\n );\n const backendRoute = routeByService.get(appDeployTarget.serviceName);\n // Durable immudb audit trust-anchor mount for the backend container — set when the env has an\n // immudb audit backing service configured (same gate as the k8s app-backend PVC). The compose\n // backend then gets IMMUDB_STATE_DIR + a named volume mounted at it; without a durable volume the\n // audit client runs EPHEMERAL and a cross-restart rollback of the ledger is silently re-adopted.\n const immudbAuditStateDir = env.backingServices?.[BackingServiceKind.IMMUDB]\n ? IMMUDB_AUDIT_STATE_CONTAINER_DIR\n : undefined;\n // Container isolation, projected identically for both kinds. `runAsUser`\n // is the combined `<uid>:<gid>` compose wants for `user:`; the numeric\n // pair rides alongside because every `tmpfs:` entry needs `uid=`/`gid=`\n // options — a bare tmpfs is root-owned 0755 and unwritable by the non-root\n // process this same block just declared.\n const composeIsolation = (\n isolation: { runAsUser: number; runAsGroup: number; writablePaths: string[] } | undefined,\n fallbackUid: number,\n fallbackWritablePaths: readonly string[],\n ) => {\n const uid = isolation?.runAsUser ?? fallbackUid;\n const gid = isolation?.runAsGroup ?? fallbackUid;\n return {\n runAsUser: `${uid}:${gid}`,\n runAsUserId: uid,\n runAsGroupId: gid,\n writablePaths: [\n RUNTIME_MANDATORY_WRITABLE_PATH,\n ...(isolation?.writablePaths ?? fallbackWritablePaths),\n ],\n pidsLimit: RUNTIME_DEFAULT_PIDS_LIMIT,\n };\n };\n const appContainers = [\n ...(backendRoute\n ? [\n {\n serviceName: appDeployTarget.serviceName,\n host: backendRoute.host,\n port: backendRoute.port,\n isBackend: true,\n envFile: `${appDeployTarget.serviceName}.env`,\n // Derived, never hand-listed (#3367): the backend's membership, bounded by the application's store.\n networks: resolveRuntimeComposeNetworks(\n { kind: ApplicationRuntimePrincipalKind.APPLICATION_BACKEND } as ApplicationRuntimePrincipal,\n undefined,\n { servesHttp: true, ...resolveRuntimeApplicationStores(options.config) },\n ),\n immudbAuditStateDir,\n ...composeIsolation(appDeployTarget.isolation, APP_BACKEND_DEFAULT_RUNTIME_UID, []),\n },\n ]\n : []),\n ...(appDeployTarget.frontends ?? []).flatMap((fe) => {\n const r = routeByService.get(fe.serviceName);\n return r\n ? [{\n serviceName: fe.serviceName,\n host: r.host,\n // Traefik routes to the container's own port. nginx keeps :80 —\n // containers set `ip_unprivileged_port_start=0`, so binding it\n // as a non-root user works (measured, not assumed).\n port: 80,\n isBackend: false,\n // A static frontend is no runtime principal: it joins the edge and nothing else.\n networks: resolveRuntimeComposeNetworks(undefined, undefined, {\n servesHttp: true,\n ...resolveRuntimeApplicationStores(options.config),\n }),\n ...composeIsolation(\n fe.isolation,\n APP_FRONTEND_DEFAULT_RUNTIME_UID,\n APP_FRONTEND_MANDATORY_WRITABLE_PATHS,\n ),\n }]\n : [];\n }),\n ];\n const rendered = tp.processTemplate('docker-compose.app.yml.hbs', {\n appName: appDeployTarget.appName,\n appContainers,\n registry: env.remoteProvider?.registryEndpoint ?? '',\n acmeEmail: env.remoteProvider?.acmeEmail ?? '',\n envName: env.name,\n // The edge — the reverse proxy, :80/:443 and the ACME store — belongs to whoever owns the\n // infrastructure. A hosted environment renders its services and labels only; the host's proxy\n // already binds those ports and discovers these containers over the shared `wildo-edge` network.\n hostedByAnotherApplication: InfrastructureHost.isHosted(env),\n });\n const appComposePath = join(composeDir, 'docker-compose.app.yml');\n writeFileSync(appComposePath, rendered, 'utf8');\n filesWritten.push(appComposePath);\n }\n\n log.info(` Generated ${filesWritten.length} Docker Compose env files`);\n }\n\n return { filesWritten, runtime };\n}\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { PlatformEnvConfigJson, PlatformEnvSecretsJson } from '../../../services/credentials/credentials.schemas';
|
|
2
2
|
import type { PlatformEnvironmentConfiguration } from '../../../services/environment/environment.schemas';
|
|
3
|
-
import { WildoLocalDataStorage, type MinionLiveness, type
|
|
3
|
+
import { WildoLocalDataStorage, type MinionLiveness, type RuntimeApplicationStores } from '@wildo-ai/platform-config-lib';
|
|
4
4
|
import { type PlatformServiceMemoryProfile } from '../../../services/catalog/service-catalog.schemas';
|
|
5
5
|
import type { ApplicationMinionEnvTarget, ApplicationWorkerEnvTarget } from '../../../services/environment/env-configuration-generator.service';
|
|
6
6
|
/** What the two apps-manager services (INIT and serving) render for a vendor PKCS#11 client (#3019). */
|
|
@@ -382,7 +382,7 @@ export declare function composeMinionNetworks(minionKey: string, declaration: {
|
|
|
382
382
|
write?: readonly string[];
|
|
383
383
|
};
|
|
384
384
|
requiresInternetEgress?: boolean;
|
|
385
|
-
},
|
|
385
|
+
}, applicationStores: RuntimeApplicationStores): string[];
|
|
386
386
|
/**
|
|
387
387
|
* A minion's compose `healthcheck`, the mirror of its k8s `livenessProbe` + `startupProbe`. Docker REPORTS an
|
|
388
388
|
* unhealthy container and does not restart it (`restart: unless-stopped` acts on exit only), so locally this
|
|
@@ -441,7 +441,7 @@ export interface DockerComposeAppWorkerEntry {
|
|
|
441
441
|
* publishes its HTTP port. The hand-written list this replaced gave every worker MongoDB, Redis, RabbitMQ and object
|
|
442
442
|
* storage, none of which it holds a credential or topology for.
|
|
443
443
|
*/
|
|
444
|
-
export declare function composeWorkerNetworks(workerKey: string,
|
|
444
|
+
export declare function composeWorkerNetworks(workerKey: string, applicationStores: RuntimeApplicationStores): string[];
|
|
445
445
|
/** The suffix of one app runtime's own compose env file, beside the compose file (#2955). */
|
|
446
446
|
export declare const COMPOSE_RUNTIME_ENV_FILE_SUFFIX = ".runtime.env";
|
|
447
447
|
/** Where one minion's or worker's own environment lives for the compose `app-runtimes` profile (#2955). */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"docker-compose-generator.service.d.ts","sourceRoot":"","sources":["../../../../../src/services/deployment/docker/docker-compose-generator.service.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AACzH,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,qDAAqD,CAAC;
|
|
1
|
+
{"version":3,"file":"docker-compose-generator.service.d.ts","sourceRoot":"","sources":["../../../../../src/services/deployment/docker/docker-compose-generator.service.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AACzH,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,qDAAqD,CAAC;AAa5G,OAAO,EAaL,qBAAqB,EAWrB,KAAK,cAAc,EASnB,KAAK,wBAAwB,EAC9B,MAAM,+BAA+B,CAAC;AAMvC,OAAO,EAAkD,KAAK,4BAA4B,EAAE,MAAM,qDAAqD,CAAC;AAOxJ,OAAO,KAAK,EAAE,0BAA0B,EAAE,0BAA0B,EAAE,MAAM,qEAAqE,CAAC;AAoIlJ,wGAAwG;AACxG,MAAM,WAAW,4BAA4B;IAC3C,oHAAoH;IACpH,WAAW,EAAE,KAAK,CAAC;QAAE,YAAY,EAAE,MAAM,CAAC;QAAC,iBAAiB,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACxE,6GAA6G;IAC7G,WAAW,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACzD;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,iCAAiC,CAC/C,GAAG,EAAE,gCAAgC,EACrC,uBAAuB,EAAE,OAAO,GAC/B,4BAA4B,GAAG,SAAS,CAS1C;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,0CAA0C,CACxD,GAAG,EAAE,gCAAgC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AAkC,CAAC;AAC7E,eAAO,MAAM,+BAA+B,sCAAkD,CAAC;AAE/F,wHAAwH;AACxH,wBAAgB,0BAA0B,CACxC,eAAe,EAAE,MAAM,EACvB,OAAO,EAAE,SAAS,0BAA0B,EAAE,GAAG,SAAS,EAC1D,OAAO,EAAE,SAAS,0BAA0B,EAAE,GAAG,SAAS,GACzD,MAAM,EAAE,CAKV;AAED;;;;;GAKG;AACH,wBAAgB,qCAAqC,CAAC,eAAe,EAAE,MAAM,EAAE,2BAA2B,EAAE,WAAW,CAAC,MAAM,CAAC,GAAG,IAAI,CAOrI;AAeD;;;;;;;;;GASG;AACH,wBAAsB,2BAA2B,CAC/C,GAAG,EAAE,gCAAgC,EACrC,aAAa,EAAE,MAAM,EACrB,oBAAoB,EAAE,OAAO,GAC5B,OAAO,CAAC,OAAO,CAAC,CAiblB"}
|
|
@@ -3,11 +3,12 @@ import { chmodSync, existsSync, mkdirSync, readFileSync, readdirSync, rmdirSync,
|
|
|
3
3
|
import { basename, join, posix, relative } from 'path';
|
|
4
4
|
import { DockerUtils } from '../../../services/deployment/docker/docker.service.js';
|
|
5
5
|
import { EnvironmentUtils } from '../../../services/environment/environment.service.js';
|
|
6
|
-
import { assertProfileRunsItsDatabaseFamilies, includesMongoSearchSidecar, selfHostsOptionalServiceAllowedByProfile, } from '../../../services/environment/environment-service-profile.utils.js';
|
|
6
|
+
import { assertProfileRunsDeclaredMinions, assertProfileRunsItsDatabaseFamilies, includesMongoSearchSidecar, selfHostsOptionalServiceAllowedByProfile, } from '../../../services/environment/environment-service-profile.utils.js';
|
|
7
7
|
import { EnvironmentPaths } from '../../../services/environment/environment-paths.service.js';
|
|
8
8
|
import { EnvironmentRegistry } from '../../../services/environment/environment-registry.service.js';
|
|
9
|
+
import { CONTAINER_HOST_GATEWAY_HOSTNAME } from '../../../services/environment/container-host-gateway-listen-host.js';
|
|
9
10
|
import { InfrastructureHost, SharedInfrastructureAction } from '../../../services/environment/infrastructure-host.service.js';
|
|
10
|
-
import { BackingServiceKind, BackingServiceSource, ConfigModuleResolution, INFRA_DEFAULT_PORTS, loadMinionConfigs, loadSaasConfig, loadWorkerConfigs, RUNTIME_MANDATORY_WRITABLE_PATH, PROVIDER_RUNTIME_GENERATED_ENV_FILE_NAME, resolveFrameworkLayout, WildoLocalDataStorage, resolveDefaultLocalDataStorage, PlatformWildoServices, selfHostsPlatformKeyVault, describeUnreachablePkcs11Module, pkcs11ModuleIsReachableInPlatformContainer, buildMinionLivenessHeartbeatEnv, buildMinionLivenessProbeCommand, deriveMinionLivenessProbeTiming, MINION_LIVENESS_STARTUP_BUDGET_SEC, ApplicationRuntimePrincipalKind, resolveRuntimeComposeNetworks, resolveApplicationDatabaseEngine, EnvironmentServiceProfileOptionalService, } from '@wildo-ai/platform-config-lib';
|
|
11
|
+
import { BackingServiceKind, BackingServiceSource, ConfigModuleResolution, INFRA_DEFAULT_PORTS, loadMinionConfigs, loadSaasConfig, loadWorkerConfigs, RUNTIME_MANDATORY_WRITABLE_PATH, PROVIDER_RUNTIME_GENERATED_ENV_FILE_NAME, resolveFrameworkLayout, WildoLocalDataStorage, resolveDefaultLocalDataStorage, PlatformWildoServices, selfHostsPlatformKeyVault, describeUnreachablePkcs11Module, pkcs11ModuleIsReachableInPlatformContainer, buildMinionLivenessHeartbeatEnv, buildMinionLivenessProbeCommand, deriveMinionLivenessProbeTiming, MINION_LIVENESS_STARTUP_BUDGET_SEC, ApplicationRuntimePrincipalKind, resolveRuntimeComposeNetworks, resolveApplicationDatabaseEngine, EnvironmentServiceProfileOptionalService, environmentServiceProfileRunsMessageBroker, resolveRuntimeApplicationStores, } from '@wildo-ai/platform-config-lib';
|
|
11
12
|
import { buildMinionServiceName, buildWorkerServiceName } from '@wildo-ai/platform-core-shared';
|
|
12
13
|
import { FILE_NAMES, GENERATED_FILE_HEADER } from '../../../infrastructure/io/io.schemas.js';
|
|
13
14
|
import { DEFAULT_DOCKER_COMPOSE_LOCAL_PROJECT_NAME, resolvePlatformImageRef } from '../../../services/environment/platform-runtime.schemas.js';
|
|
@@ -659,13 +660,13 @@ function writeFileWhenContentDiffers(path, content, mode) {
|
|
|
659
660
|
* internet. Compose cannot express egress restriction at all (the template says so beside every app runtime), and
|
|
660
661
|
* the Kubernetes lane, where egress IS enforced, is unaffected: this is compose-only, like the bridge.
|
|
661
662
|
*/
|
|
662
|
-
export function composeMinionNetworks(minionKey, declaration,
|
|
663
|
+
export function composeMinionNetworks(minionKey, declaration, applicationStores) {
|
|
663
664
|
return [
|
|
664
665
|
...resolveRuntimeComposeNetworks({ kind: ApplicationRuntimePrincipalKind.MINION, name: minionKey },
|
|
665
666
|
// Forwarded verbatim, absence included: an absent declaration and an empty one are different statements.
|
|
666
667
|
{ resourceAccess: declaration.resourceAccess, requiresInternetEgress: declaration.requiresInternetEgress },
|
|
667
668
|
// A minion serves no HTTP route.
|
|
668
|
-
{ servesHttp: false,
|
|
669
|
+
{ servesHttp: false, ...applicationStores }),
|
|
669
670
|
COMPOSE_HOST_ACCESS_NETWORK,
|
|
670
671
|
];
|
|
671
672
|
}
|
|
@@ -705,9 +706,9 @@ const COMPOSE_HOST_ACCESS_NETWORK = 'wildo-host-access';
|
|
|
705
706
|
* publishes its HTTP port. The hand-written list this replaced gave every worker MongoDB, Redis, RabbitMQ and object
|
|
706
707
|
* storage, none of which it holds a credential or topology for.
|
|
707
708
|
*/
|
|
708
|
-
export function composeWorkerNetworks(workerKey,
|
|
709
|
+
export function composeWorkerNetworks(workerKey, applicationStores) {
|
|
709
710
|
return [
|
|
710
|
-
...resolveRuntimeComposeNetworks({ kind: ApplicationRuntimePrincipalKind.WORKER, name: workerKey }, undefined, { servesHttp: false,
|
|
711
|
+
...resolveRuntimeComposeNetworks({ kind: ApplicationRuntimePrincipalKind.WORKER, name: workerKey }, undefined, { servesHttp: false, ...applicationStores }),
|
|
711
712
|
COMPOSE_HOST_ACCESS_NETWORK,
|
|
712
713
|
];
|
|
713
714
|
}
|
|
@@ -757,7 +758,7 @@ function relativeDockerfilePath(frameworkRoot, packageRoot) {
|
|
|
757
758
|
* `WILDO_PROVIDER_*` keys at boot.
|
|
758
759
|
*/
|
|
759
760
|
function buildAppMinionComposeEntries(input) {
|
|
760
|
-
const { saasRoot, frameworkRoot, saasConfig, minionEntries, environmentName,
|
|
761
|
+
const { saasRoot, frameworkRoot, saasConfig, minionEntries, environmentName, applicationStores } = input;
|
|
761
762
|
return minionEntries.map((entry) => {
|
|
762
763
|
const ref = saasConfig.minions?.[entry.key];
|
|
763
764
|
if (!ref) {
|
|
@@ -787,12 +788,12 @@ function buildAppMinionComposeEntries(input) {
|
|
|
787
788
|
writablePaths: [RUNTIME_MANDATORY_WRITABLE_PATH, ...entry.config.isolation.writablePaths],
|
|
788
789
|
pidsLimit: entry.config.isolation.pidsLimit,
|
|
789
790
|
...buildMinionComposeLiveness(entry.config.liveness),
|
|
790
|
-
networks: composeMinionNetworks(entry.key, ref,
|
|
791
|
+
networks: composeMinionNetworks(entry.key, ref, applicationStores),
|
|
791
792
|
};
|
|
792
793
|
});
|
|
793
794
|
}
|
|
794
795
|
function buildAppWorkerComposeEntries(input) {
|
|
795
|
-
const { saasRoot, frameworkRoot, saasConfig, workerEntries, environmentName,
|
|
796
|
+
const { saasRoot, frameworkRoot, saasConfig, workerEntries, environmentName, applicationStores } = input;
|
|
796
797
|
return workerEntries.map((entry) => {
|
|
797
798
|
const ref = saasConfig.workers?.[entry.key];
|
|
798
799
|
if (!ref) {
|
|
@@ -816,7 +817,7 @@ function buildAppWorkerComposeEntries(input) {
|
|
|
816
817
|
runAsGroupId: entry.config.isolation.runAsGroup,
|
|
817
818
|
writablePaths: [RUNTIME_MANDATORY_WRITABLE_PATH, ...entry.config.isolation.writablePaths],
|
|
818
819
|
pidsLimit: entry.config.isolation.pidsLimit,
|
|
819
|
-
networks: composeWorkerNetworks(entry.key,
|
|
820
|
+
networks: composeWorkerNetworks(entry.key, applicationStores),
|
|
820
821
|
httpPort: entry.config.http.port,
|
|
821
822
|
healthPath: entry.config.http.healthPath,
|
|
822
823
|
readyPath: entry.config.http.readyPath,
|
|
@@ -889,7 +890,7 @@ options = {}) {
|
|
|
889
890
|
* spec-cite: Docker docs, "Networking in Compose" / `extra_hosts` and "Explore networking features on Docker
|
|
890
891
|
* Desktop" (`host.docker.internal`); `host-gateway` is the special value `docker run --add-host` documents.
|
|
891
892
|
*/
|
|
892
|
-
export const COMPOSE_HOST_GATEWAY_HOSTNAME =
|
|
893
|
+
export const COMPOSE_HOST_GATEWAY_HOSTNAME = CONTAINER_HOST_GATEWAY_HOSTNAME;
|
|
893
894
|
export const COMPOSE_HOST_GATEWAY_EXTRA_HOST = `${COMPOSE_HOST_GATEWAY_HOSTNAME}:host-gateway`;
|
|
894
895
|
/** The runtime env files {@link writeComposeRuntimeEnvFiles} would write for these targets, for an overwrite prompt. */
|
|
895
896
|
export function composeRuntimeEnvFilePaths(environmentName, minions, workers) {
|
|
@@ -1001,9 +1002,13 @@ export async function renderDockerComposeTemplate(env, frameworkPath, isFramewor
|
|
|
1001
1002
|
saasConfig: saasConfigForRuntimes,
|
|
1002
1003
|
minionEntries,
|
|
1003
1004
|
environmentName: env.name,
|
|
1004
|
-
|
|
1005
|
+
applicationStores: resolveRuntimeApplicationStores(config),
|
|
1005
1006
|
})
|
|
1006
1007
|
: [];
|
|
1008
|
+
// #2303: a profile whose queue cannot confine its minions (the DATABASE queue on MongoDB) refuses them here, before any
|
|
1009
|
+
// file is written. A framework developer's render builds no app runtime (`saasConfigForRuntimes` is null), so for them
|
|
1010
|
+
// the env generator and the application's boot carry the same refusal.
|
|
1011
|
+
assertProfileRunsDeclaredMinions(env, appMinions.length, resolveApplicationDatabaseEngine(config.applicationDatabase));
|
|
1007
1012
|
// The runtimes this render declares are the only ones whose env file may remain (#2955). Total over the
|
|
1008
1013
|
// configuration, so pruning here can never remove a declared runtime's file.
|
|
1009
1014
|
pruneUndeclaredComposeRuntimeEnvFiles(env.name, new Set([
|
|
@@ -1017,7 +1022,7 @@ export async function renderDockerComposeTemplate(env, frameworkPath, isFramewor
|
|
|
1017
1022
|
saasConfig: saasConfigForRuntimes,
|
|
1018
1023
|
workerEntries,
|
|
1019
1024
|
environmentName: env.name,
|
|
1020
|
-
|
|
1025
|
+
applicationStores: resolveRuntimeApplicationStores(config),
|
|
1021
1026
|
})
|
|
1022
1027
|
: [];
|
|
1023
1028
|
// Slice 2 Phase 5b Wave 2 — local OTel collector inclusion + host port.
|
|
@@ -1233,6 +1238,9 @@ export async function renderDockerComposeTemplate(env, frameworkPath, isFramewor
|
|
|
1233
1238
|
*/
|
|
1234
1239
|
includeLocalValkey: resolveIncludeLocalValkey(env),
|
|
1235
1240
|
includeLocalRabbitMQ: resolveIncludeLocalRabbitMQ(env),
|
|
1241
|
+
// #2303 slice D — whether the environment runs a broker at all (local or managed): it gates the broker env and the
|
|
1242
|
+
// broker network segment of the platform services, which `includeLocalRabbitMQ` (the local CONTAINER) cannot.
|
|
1243
|
+
runsMessageBroker: environmentServiceProfileRunsMessageBroker(env.serviceProfile),
|
|
1236
1244
|
includeLocalMinIO: resolveIncludeLocalMinIO(env),
|
|
1237
1245
|
includeLocalClamAV: resolveIncludeLocalClamAV(env),
|
|
1238
1246
|
includeLocalImmudb: resolveIncludeLocalImmudb(env),
|
|
@@ -1270,8 +1278,10 @@ export async function renderDockerComposeTemplate(env, frameworkPath, isFramewor
|
|
|
1270
1278
|
/** Step 6 — per-app minion + worker compose entries (under `app-runtimes` profile). */
|
|
1271
1279
|
appMinions,
|
|
1272
1280
|
appWorkers,
|
|
1273
|
-
// The minion and
|
|
1281
|
+
// The minion, worker and scheduler services' `extra_hosts` entry (#3382), from the constant their endpoints are derived with.
|
|
1274
1282
|
hostGatewayExtraHost: COMPOSE_HOST_GATEWAY_EXTRA_HOST,
|
|
1283
|
+
// The name the scheduler re-points a host-run backend's loopback delivery URL at (#2303).
|
|
1284
|
+
hostGatewayHostname: COMPOSE_HOST_GATEWAY_HOSTNAME,
|
|
1275
1285
|
/** Slug used to disambiguate compose service names across coexisting apps on the same host. */
|
|
1276
1286
|
saasSlug: saasConfigForRuntimes?.slug ?? '',
|
|
1277
1287
|
/**
|