@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":"environment-setup.service.js","sourceRoot":"","sources":["../../../../src/services/environment/environment-setup.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAI5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,qDAAqD,CAAC;AACvF,OAAO,EAAoC,WAAW,EAAE,MAAM,qDAAqD,CAAC;AACpH,OAAO,EACL,oBAAoB,EACpB,cAAc,EACd,kBAAkB,EAClB,qBAAqB,EACrB,sBAAsB,EACtB,sBAAsB,EACtB,iBAAiB,GAClB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,qDAAqD,CAAC;AACrF,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AC,EAAE,CAAC,CAAC;AACf,CAAC","sourcesContent":["import chalk from 'chalk';\nimport { confirm } from '@inquirer/prompts';\n\nimport type { EnvSetupInput, SetupResult } from '~wildo-cli/services/environment/environment.schemas';\nimport type { ProviderKeysInput } from '~wildo-cli/services/credentials/credentials.schemas';\nimport { EnvironmentUtils } from '~wildo-cli/services/environment/environment.service';\nimport { PlatformEnvironmentConfiguration, SetupStatus } from '~wildo-cli/services/environment/environment.schemas';\nimport {\n BackingServiceSource,\n DatabaseEngine,\n K8S_LOCAL_DEFAULTS,\n KIND_CLUSTER_DEFAULTS,\n PUBLIC_DOMAIN_DEFAULTS,\n WildoDeploymentRuntime,\n WildoLocationType,\n} from '@wildo-ai/platform-config-lib';\nimport { ContextManager } from '~wildo-cli/services/context/context-manager.service';\nimport {\n applyProviderKeyDefaults,\n DEFAULT_PROVIDER_KEY_DEFAULTS_MODE,\n resolveProviderKeyDefaultsAdoption,\n} from '~wildo-cli/services/credentials/local-defaults.service';\nimport type { Logger } from '~wildo-cli/kernel/types';\n\nimport type { PathsConfig, RuntimeChoice } from '~wildo-cli/modules/domain/environment/module.types';\nimport type { DatabaseInitializationInput } from '~wildo-cli/services/data-services/data-services.schemas';\nimport { runtimeModule } from '~wildo-cli/modules/domain/environment/runtime-selector.module';\nimport { runtimeSemanticsModule } from '~wildo-cli/modules/domain/environment/runtime-semantics.module';\nimport { platformPathsModule } from '~wildo-cli/modules/domain/environment/paths-config.module';\nimport { platformDatabaseInitializationModule } from '~wildo-cli/modules/domain/environment/database-config.module';\nimport { platformAdminUserModule, resolveAdminUserFromEnvSeeds } from '~wildo-cli/modules/domain/credentials/admin-user.module';\nimport { resolveApproverIdentity } from '~wildo-cli/modules/domain/credentials/approver-user.module';\nimport { establishCreationEssentials } from '~wildo-cli/modules/domain/credentials/creation-essentials.module';\nimport { buildCredentials, readSetupSecrets, runSecretsWrite } from '~wildo-cli/services/credentials/secrets-writer.service';\nimport { getProviderSelectionCatalog } from '~wildo-cli/services/credentials/provider-env-vars.utils';\nimport { runInfraWrite } from '~wildo-cli/services/deployment/infra-writer.service';\nimport { runK8sBootstrap } from '~wildo-cli/services/deployment/k8s/k8s-bootstrap.service';\nimport { resolvePlatformImageRef } from '~wildo-cli/services/environment/platform-runtime.schemas';\nimport { readVersion } from '~wildo-cli/kernel/bootstrap';\nimport { EnvironmentPaths } from '~wildo-cli/services/environment/environment-paths.service';\nimport { loadAuthoredInfraEnvConfig } from '~wildo-cli/services/environment/authored-infra-config.utils';\n\n\n// NOTE: This service currently mixes interactive prompts (module calls) with\n// business logic (file writes). The interactive input collection should be\n// extracted to a command-layer pattern (using BaseCommand.prompt()), leaving\n// only non-interactive execution here.\n\n/**\n * Core environment setup flow — env-agnostic. Drives `wildo setup`.\n *\n * Two modes, ONE write path (Phase 2 below is identical for both — only how the answers are\n * OBTAINED differs, which is the point: a headless bootstrap must not be a second, drifting\n * implementation of setup):\n *\n * - **Interactive** (default) — the operator answers each module's prompts.\n * - **Non-interactive** (`options.nonInteractive`, i.e. `wildo setup --non-interactive`) — every\n * answer is DERIVED, never asked:\n * - runtime / runtimeEnvironment / paths / database ← the registered environment, which\n * `ExistingAppBootstrapService.ensureLocalEnvironment` projects from the authored\n * `wildo.infra.<env>.config.ts` at kernel bootstrap (`initializeEnvironment` returns that\n * existing registration untouched). The authored descriptor is the declaration of record —\n * a prompt could only contradict it.\n * - admin identity ← the `WILDO_INIT_ADMIN_*` env seeds, fail-closed when absent.\n * - provider API keys ← none (all optional).\n * - every credential (Mongo/Valkey/RabbitMQ/storage/platform secrets, the appsManager EC\n * keypair, and the admin password when unseeded) ← GENERATED by {@link buildCredentials}.\n * This is what makes a cold, unattended VM bootstrappable: `secrets.json` has no other minter,\n * and without it `local up` cannot write `.env.wildo-platform`. Non-interactive is IDEMPOTENT —\n * an already-COMPLETED setup is a no-op success unless `force` is set.\n */\nexport async function runEnvSetup(\n envName: string,\n locationType: WildoLocationType,\n options: EnvSetupInput,\n log: Logger,\n): Promise<SetupResult> {\n const cliContext = ContextManager.get();\n const preferences = cliContext.preferences;\n if (!preferences) {\n log.error(chalk.red('\\n No preferences found. Run the install script first.\\n'));\n return { success: false };\n }\n\n /*\n * The machine preference is a DEFAULT, not a verdict.\n *\n * It decides whether the platform services run natively from the checkout or as containers of the\n * published image, and one machine can legitimately host both kinds of environment. Resolved once\n * here so every later read sees the same answer; `preferences.isFrameworkDeveloper` is not read\n * directly below.\n */\n const isFrameworkDeveloper = options.frameworkDeveloper ?? preferences.isFrameworkDeveloper;\n\n const saasRoot = cliContext.resolvedHomes.app.declarationRoot;\n if (!saasRoot) {\n log.error(chalk.red('\\n No targeted app root detected.\\n'));\n return { success: false };\n }\n const frameworkPath = cliContext.resolvedHomes.framework.repositoryRoot;\n if (!frameworkPath) {\n log.error(chalk.red(\n '\\n No framework repository root detected. '\n + 'Re-run the CLI install script or set frameworkPath in your machine preferences.\\n',\n ));\n return { success: false };\n }\n const env = EnvironmentUtils.initializeEnvironment(envName, locationType, {\n secretsPath: EnvironmentPaths.resolveScopedSecretsBase(saasRoot),\n configPath: EnvironmentPaths.resolveScopedConfigBase(saasRoot),\n infraPath: EnvironmentPaths.resolveScopedInfraBase(saasRoot),\n });\n const previousSetupStatus = env.setupStatus;\n\n const isFirstTime = env.setupStatus !== SetupStatus.COMPLETED || options.force;\n\n if (!isFirstTime) {\n log.info(chalk.dim('\\n Existing setup detected.\\n'));\n printCurrentSummary(log, env);\n\n // Non-interactive is IDEMPOTENT: an already-COMPLETED setup is a no-op success, so a headless\n // lane (CI, a scripted re-provision) can call `wildo setup --non-interactive` unconditionally\n // on every run. Re-minting would rotate secrets.json — orphaning the Mongo/Valkey data those\n // credentials already protect and invalidating a running stack. `--force` re-authors configuration\n // while the credential writer preserves existing identities and generated material.\n if (options.nonInteractive) {\n log.info(chalk.dim(' Non-interactive: keeping the existing setup (pass --force to re-author).\\n'));\n return { success: true };\n }\n\n const reconfigure = await confirm({\n message: 'Reconfigure?',\n default: false,\n });\n\n if (!reconfigure) {\n log.info(chalk.dim('\\n Keeping current configuration.\\n'));\n return { success: true };\n }\n }\n\n EnvironmentUtils.setSetupStatus(SetupStatus.IN_PROGRESS, envName);\n\n try {\n // Step 1 — Paths\n log.info(chalk.cyan('\\n Step 1/6 — Storage Paths\\n'));\n const pathsCtx = {\n envName,\n saasRoot,\n isFirstTime,\n isFrameworkDeveloper: isFrameworkDeveloper,\n frameworkPath,\n currentSecrets: env.secretsPath,\n currentConfig: env.configPath,\n log,\n };\n // Non-interactive: the environment registration ALREADY carries resolved paths —\n // `ExistingAppBootstrapService.ensureLocalEnvironment` seeds them from the app root (or a\n // detected sibling wildo-secrets repo) at kernel bootstrap, and `initializeEnvironment`\n // returns that existing registration untouched. The prompt exists only to OFFER a sibling\n // repo / a custom location; neither is a headless decision, so we honor what is registered.\n /*\n * A supplied path ANSWERS step 1 and skips the prompt for that one value only. This is how an\n * environment joins a shared secrets location without an operator walking the wizard — the\n * prompt's own purpose, per its docstring, is to \"OFFER a sibling repo / a custom location\".\n */\n const pathOverrides = {\n ...(options.secretsPath === undefined ? {} : { secretsPath: options.secretsPath }),\n ...(options.configPath === undefined ? {} : { configPath: options.configPath }),\n ...(options.infraPath === undefined ? {} : { infraPath: options.infraPath }),\n };\n const answeredEveryPath = options.secretsPath !== undefined\n && options.configPath !== undefined\n && options.infraPath !== undefined;\n const pathsAnswers: PathsConfig = options.nonInteractive || answeredEveryPath\n ? {\n secretsPath: env.secretsPath,\n configPath: env.configPath,\n infraPath: env.infraPath,\n ...pathOverrides,\n }\n : { ...(await platformPathsModule.prompt(pathsCtx)), ...pathOverrides };\n await platformPathsModule.apply?.(pathsAnswers, pathsCtx);\n env.secretsPath = pathsAnswers.secretsPath;\n env.configPath = pathsAnswers.configPath;\n env.infraPath = pathsAnswers.infraPath;\n\n // Step 2 — Local platform question\n log.info('');\n // Non-interactive callers are bootstrapping a local platform BY DEFINITION (that is the only\n // thing this flow mints secrets for) — asking would be theatre, so it is an implicit yes.\n const wantsLocalPlatform = options.nonInteractive || await confirm({\n message: `Set up a local Wildo development platform?\n\n This will run infrastructure services (MongoDB, Valkey, RabbitMQ, etc.)\n locally using Docker, and bootstrap the Wildo platform for development.\n\n Set up local platform?`,\n default: true,\n });\n\n if (!wantsLocalPlatform) {\n log.info(chalk.dim('\\n Skipping local platform setup. CLI tools are still available.\\n'));\n EnvironmentUtils.setSetupStatus(SetupStatus.COMPLETED, envName);\n return { success: true };\n }\n\n // Step 3 — Runtime\n log.info(chalk.cyan('\\n Step 2/6 — Infrastructure Runtime\\n'));\n // Non-interactive: the AUTHORED `wildo.infra.<env>.config.ts` already DECLARES the runtime\n // (projected onto the registration by `ensureLocalEnvironment`). Re-asking would let an\n // operator's answer contradict the committed declaration — the authored file is the truth.\n const requestedRuntime = options.runtime === undefined\n ? undefined\n : Object.values(WildoDeploymentRuntime).find((candidate) => candidate === options.runtime);\n if (options.runtime !== undefined && requestedRuntime === undefined) {\n log.error(chalk.red(`\\n Invalid --runtime \"${options.runtime}\". Valid: ${Object.values(WildoDeploymentRuntime).join(', ')}\\n`));\n return { success: false };\n }\n const runtimeAnswers: RuntimeChoice = requestedRuntime !== undefined\n ? { runtime: requestedRuntime }\n : options.nonInteractive\n ? { runtime: env.runtime }\n : await runtimeModule.prompt({\n isFrameworkDeveloper: isFrameworkDeveloper,\n });\n env.runtime = runtimeAnswers.runtime;\n // Seed top-level `publicDomain` based on the runtime the operator\n // just chose. Required by the schema; for local interactive setup\n // the canonical write-time defaults from `PUBLIC_DOMAIN_DEFAULTS`\n // give the operator a working starting point that they can edit\n // afterwards in `wildo.infra.local.config.ts`.\n env.publicDomain = runtimeAnswers.runtime === WildoDeploymentRuntime.KUBERNETES\n ? PUBLIC_DOMAIN_DEFAULTS.LOCAL_K8S\n : PUBLIC_DOMAIN_DEFAULTS.LOCAL_COMPOSE;\n if (runtimeAnswers.runtime === WildoDeploymentRuntime.KUBERNETES) {\n env.kubernetes = {\n namespace: K8S_LOCAL_DEFAULTS.NAMESPACE,\n imageRegistry: `localhost:${KIND_CLUSTER_DEFAULTS.REGISTRY_PORT}`,\n };\n }\n\n // Step 4 — Runtime semantics\n log.info(chalk.cyan('\\n Step 3/6 — Application Runtime Semantics\\n'));\n const runtimeSemanticsAnswers = options.nonInteractive\n ? { runtimeEnvironment: env.runtimeEnvironment }\n : await runtimeSemanticsModule.prompt({ locationType });\n env.runtimeEnvironment = runtimeSemanticsAnswers.runtimeEnvironment;\n\n // Step 5 — Database\n log.info(chalk.cyan('\\n Step 4/6 — Database\\n'));\n // Non-interactive: `ensureLocalEnvironment` already resolved the AUTHORITATIVE database choice\n // from the authored infra descriptor's `backingServices` (falling back to self-hosted Mongo), so\n // the registration is the answer. The prompt's other branch (an external Atlas instance + its API\n // keys) is inherently interactive material and is NOT a headless-bootstrap scenario — a lane that\n // needs it must author it in `wildo.infra.<env>.config.ts` instead of answering a prompt.\n /*\n * `--database` answers the ENGINE and nothing else. The prompt's other branch — an external Atlas\n * instance and its API keys — is inherently interactive material, so a flag that claimed to answer\n * the whole step would be lying about the half it cannot carry.\n */\n const requestedEngine = options.database === undefined\n ? undefined\n : Object.values(DatabaseEngine).find((candidate) => candidate === options.database);\n if (options.database !== undefined && requestedEngine === undefined) {\n log.error(chalk.red(`\\n Invalid --database \"${options.database}\". Valid: ${Object.values(DatabaseEngine).join(', ')}\\n`));\n return { success: false };\n }\n const dbAnswers: DatabaseInitializationInput = requestedEngine !== undefined\n ? { database: { ...env.database, engine: requestedEngine } }\n : options.nonInteractive\n ? { database: env.database }\n : await platformDatabaseInitializationModule.prompt({\n envName,\n log,\n isFrameworkDeveloper: isFrameworkDeveloper,\n });\n await platformDatabaseInitializationModule.apply?.(dbAnswers, {\n envName,\n log,\n isFrameworkDeveloper: isFrameworkDeveloper,\n });\n env.database = dbAnswers.database;\n\n // Step 6 — Admin\n log.info(chalk.cyan('\\n Step 5/6 — Platform Administrator\\n'));\n // Non-interactive: identity from the `WILDO_INIT_ADMIN_*` env seeds, FAIL-CLOSED when absent —\n // the one thing a headless caller genuinely must state (see `resolveAdminUserFromEnvSeeds`).\n // Reconfiguration may add an approver or provider key, but is never credential rotation.\n // Read after path selection so this is the store the writer will actually update.\n const existingSecrets = readSetupSecrets(EnvironmentPaths.resolveSecretsDir(envName));\n const adminAnswers = existingSecrets?.admin ?? (options.nonInteractive\n ? resolveAdminUserFromEnvSeeds(log)\n : await platformAdminUserModule.prompt({ log }));\n const approverAnswers = existingSecrets?.approver ?? resolveApproverIdentity({\n admin: adminAnswers,\n isLocalEnvironment: locationType === WildoLocationType.LOCAL,\n log,\n }).approver;\n\n // Step 7 — What development needs\n log.info(chalk.cyan('\\n Step 6/6 — Coding agent and LLM\\n'));\n /*\n * ONLY what development cannot start without (#1637, decided by Paul 2026-09-25): the coding\n * agent's login and the companion's LLM key. This step used to offer every provider in the\n * catalogue, whatever the application enabled; every other secret is now asked when something\n * first needs it — `wildo secrets set <NAME>`, or the workbench's secrets section.\n *\n * Non-interactive: nothing is typed; a missing login or key is REPORTED with the command that\n * fixes it, never refused — a headless lane supplies keys through its own secret store.\n */\n /*\n * ADOPT this machine's captured provider keys before asking for any.\n *\n * The headless branch used to answer `{}`, so an unattended setup produced an environment with NO\n * third-party credentials at all — correct when nothing had ever been captured, and needless\n * retyping once something had. Adoption fills it from `~/.wildo/local-defaults.json`, and the\n * prompt still runs interactively for anything the file does not carry.\n *\n * Only the PROVIDER-KEY half is decided here (`--provider-key-defaults`): setup never adopts the\n * shared platform credentials, so the `--local-defaults` it used to take governed provider keys\n * under the other half's name. See \"Two halves, two decisions\" in local-defaults.service.ts.\n */\n const providerKeyMode = options.providerKeyDefaults === undefined || options.providerKeyDefaults === ''\n ? preferences.defaults?.providerKeyDefaults ?? DEFAULT_PROVIDER_KEY_DEFAULTS_MODE\n : options.providerKeyDefaults;\n const offeredProviderEnv = await resolveProviderKeyDefaultsAdoption({\n mode: providerKeyMode,\n canAsk: options.nonInteractive !== true && process.stdin.isTTY === true,\n confirm: (names) => confirm({ message: `Use the provider keys captured on this machine (${names.join(', ')})?`, default: true }),\n }) ?? {};\n /*\n * SEED, never replace: only keys this environment does not already hold. Merged below over the existing\n * `providerEnv`, an adopted key would otherwise silently undo a key rotated with `wildo secrets set` on\n * any re-run of setup — and ADOPT, the default, no longer asks first. Same rule as init's draft.\n */\n const seededNames = applyProviderKeyDefaults({ providerEnv: { ...(existingSecrets?.providerEnv ?? {}) } }, offeredProviderEnv);\n const adoptedProviderEnv: Record<string, string> = Object.fromEntries(seededNames.map((name) => [name, offeredProviderEnv[name]!]));\n\n const essentials = await establishCreationEssentials({\n log,\n interactive: options.nonInteractive !== true && process.stdin.isTTY === true,\n saasRoot,\n // Names only: the essentials ask whether the LLM key is set, never what it is.\n storedProviderEnvNames: new Set(Object.entries({ ...(existingSecrets?.providerEnv ?? {}), ...adoptedProviderEnv })\n .filter(([, value]) => value.trim().length > 0)\n .map(([name]) => name)),\n codingAgentPreference: preferences.defaults?.codingAgent,\n });\n const promptedProviderAnswers: ProviderKeysInput = Object.keys(essentials.providerEnv).length === 0\n ? {}\n : { providerEnv: essentials.providerEnv };\n /*\n * The PROMPT wins over the adopted value: somebody typing a key on this run means it, and a\n * machine default must never silently replace an explicit answer.\n */\n const mergedProviderEnv = { ...adoptedProviderEnv, ...(promptedProviderAnswers.providerEnv ?? {}) };\n const providerAnswers: ProviderKeysInput = {\n ...promptedProviderAnswers,\n // OMITTED when empty rather than written as `{}`: a headless run that adopted nothing must\n // produce exactly what it produced before this existed, key for key.\n ...(Object.keys(mergedProviderEnv).length === 0 ? {} : { providerEnv: mergedProviderEnv }),\n };\n\n // Step 7 — Confirmation summary\n /*\n * The platform image is not a setup input: every lane that runs a platform container runs the\n * published `docker.io/wildoai/wildo-platform:<framework version>`, and a framework developer runs the\n * platform natively (`resolvePlatformImageRef`). Until 2026-09-06 setup handed `latest` to the renderer\n * for both lanes, so every app-creator `wildo setup` re-rendered the compose file to a `:latest` nobody\n * had promised to publish; until #2988 it still handed `latest` to a framework developer's render, for a\n * platform container their compose file never contains.\n */\n const platformImageRef = resolvePlatformImageRef({ frameworkVersion: readVersion() });\n\n log.info('');\n printSetupSummary(log, env, platformImageRef, isFrameworkDeveloper, adminAnswers, providerAnswers);\n\n // Non-interactive: the summary above is printed for the CI log, but there is nobody to confirm —\n // the caller already committed by passing --non-interactive.\n const proceed = options.nonInteractive || await confirm({ message: 'Proceed?', default: true });\n if (!proceed) {\n EnvironmentUtils.setSetupStatus(previousSetupStatus, envName);\n log.warn(chalk.yellow('\\n Setup cancelled.\\n'));\n return { success: false };\n }\n\n // --- Phase 2: File generation ---\n log.info(chalk.cyan('\\n Phase 2 — Generating configuration files...\\n'));\n\n const credentials = buildCredentials(adminAnswers, dbAnswers, providerAnswers, approverAnswers, existingSecrets ?? undefined);\n\n // Seed `env.backingServices` / `serviceAuth` / `logging` from the authored\n // `wildo.infra.<env>.config.ts` BEFORE rendering compose. The wizard's\n // prompts only cover paths/runtime/database — they don't touch the\n // authored backing-services map. Without this seed, the compose template\n // is rendered against an `env` whose `backingServices` is `undefined`,\n // which silently DROPS opt-in services like `clamav` (gated on\n // `env.backingServices?.clamav?.source === SELF` in the docker-compose\n // generator). Loading the authored descriptor here keeps setup honoring\n // the operator's authored choices.\n const authoredForEnv = await loadAuthoredInfraEnvConfig(envName, saasRoot);\n if (authoredForEnv) {\n env.backingServices = authoredForEnv.config.backingServices;\n env.serviceAuth = authoredForEnv.config.serviceAuth;\n env.logging = authoredForEnv.config.logging;\n env.infrastructureHost = authoredForEnv.config.infrastructureHost;\n }\n // Persisted BEFORE the secrets write below: the single secrets writer decides from the registry whether this\n // environment is hosted, and a hosted file must receive only its application-owned sections.\n if (env.infrastructureHost !== undefined) {\n EnvironmentUtils.updateEnvironmentState(env);\n }\n\n await runSecretsWrite(env, credentials, dbAnswers, log, authoredForEnv?.config);\n await runInfraWrite(env, frameworkPath, isFrameworkDeveloper, credentials, log);\n\n EnvironmentUtils.updateEnvironmentState(env);\n EnvironmentUtils.setSetupStatus(SetupStatus.COMPLETED, envName);\n log.success(chalk.green(' ✓ environments.json updated'));\n\n log.success(chalk.green('\\n Phase 2 complete — configuration files generated.\\n'));\n\n // --- Phase 3: K8s deployment (if applicable) ---\n // A hosted environment's cluster is its host's: bootstrapping it from here would delete and recreate it.\n if (env.runtime === WildoDeploymentRuntime.KUBERNETES && env.infrastructureHost === undefined) {\n const k8sResult = await runK8sBootstrap(\n env,\n frameworkPath,\n credentials,\n {\n reset: true,\n isFrameworkDeveloper: isFrameworkDeveloper,\n saasRoot,\n },\n log,\n );\n if (!k8sResult.success) {\n return { success: false };\n }\n }\n\n return { success: true, adminPassword: credentials.admin!.password };\n } catch (error) {\n EnvironmentUtils.setSetupStatus(SetupStatus.FAILED, envName);\n throw error;\n }\n}\n\n\nfunction printCurrentSummary(log: Logger, env: PlatformEnvironmentConfiguration): void {\n log.info(` Secrets path: ${env.secretsPath}`);\n log.info(` Config path: ${env.configPath}`);\n log.info(` Infra path: ${env.infraPath}`);\n log.info(` App semantics: ${env.runtimeEnvironment ?? 'not set'}`);\n log.info(` Database: ${env.database.engine} — ${env.database.source}`);\n log.info(` Setup status: ${env.setupStatus}`);\n}\n\nfunction printSetupSummary(\n log: Logger,\n env: PlatformEnvironmentConfiguration,\n platformImageRef: string,\n isFrameworkDeveloper: boolean,\n admin: { email: string; firstName: string; lastName: string },\n providers: ProviderKeysInput,\n): void {\n // A provider counts as configured when any of its declared secrets was\n // supplied; map the collected env-var names back to provider labels via the\n // same registry-derived catalog the setup selector uses.\n const configuredEnvVars = new Set(Object.keys(providers.providerEnv ?? {}));\n const providerNames = getProviderSelectionCatalog()\n .filter((entry) => entry.secrets.some((secret) => configuredEnvVars.has(secret.envVarName)))\n .map((entry) => entry.label);\n if (providers.githubOrgUrl) {\n providerNames.push('GitHub organization');\n }\n\n const runtime = env.runtime;\n const runtimeLabel = runtime === WildoDeploymentRuntime.DOCKER_COMPOSE ? 'Docker Compose' : 'Kubernetes';\n const isLocalDb = env.database.source === BackingServiceSource.SELF;\n const dbLabel = isLocalDb ? 'Local (Docker)' : 'Atlas (external)';\n\n log.info(chalk.bold(' Configuration summary:\\n'));\n log.info(` Secrets path: ${env.secretsPath}`);\n log.info(` Config path: ${env.configPath}`);\n log.info(` Infra path: ${env.infraPath}`);\n log.info(` Local platform: Yes`);\n log.info(` Runtime: ${runtimeLabel}`);\n log.info(` App semantics: ${env.runtimeEnvironment ?? 'not set'}`);\n log.info(` Database: ${env.database.engine} — ${dbLabel}`);\n log.info(` Admin email: ${admin.email}`);\n log.info(` Admin name: ${admin.firstName} ${admin.lastName}`);\n log.info(` Provider keys: ${providerNames.length > 0 ? `${providerNames.join(', ')} (${providerNames.length} configured)` : 'none'}`);\n\n log.info(` Public domain: ${env.publicDomain}`);\n if (runtime === WildoDeploymentRuntime.KUBERNETES) {\n log.info(` K8s namespace: ${env.kubernetes?.namespace}`);\n }\n\n const mongoSuffix = isLocalDb ? ', mongodb' : '';\n if (isFrameworkDeveloper) {\n log.info(`\\n Infra services: valkey, rabbitmq, minio${mongoSuffix}`);\n log.info(` Platform services: run natively (hot-reload)`);\n } else {\n log.info(`\\n Infra services: valkey, rabbitmq, minio${mongoSuffix}`);\n log.info(` Platform services: apps-manager, crontabs-batches-manager, module-registry (Docker containers)`);\n log.info(` Docker image: ${platformImageRef} (pulled from Docker Hub)`);\n }\n log.info('');\n}\n"]}
|
|
1
|
+
{"version":3,"file":"environment-setup.service.js","sourceRoot":"","sources":["../../../../src/services/environment/environment-setup.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAI5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,qDAAqD,CAAC;AACvF,OAAO,EAAE,oBAAoB,EAAE,MAAM,+DAA+D,CAAC;AACrG,OAAO,EAAoC,WAAW,EAAE,MAAM,qDAAqD,CAAC;AACpH,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACpB,cAAc,E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CAAC,uBAAuB,CAAC,GAAG,EAAE,kBAAkB,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QACvG,GAAG,CAAC,oBAAoB,CAAC,uBAAuB,CAAC,GAAG,EAAE,kBAAkB,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QAC9F,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;KAClC,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,MAAM,CAAC;IACvB,IAAI,oBAAoB,EAAE,CAAC;QACzB,GAAG,CAAC,IAAI,CAAC,6BAA6B,aAAa,EAAE,CAAC,CAAC;QACvD,GAAG,CAAC,IAAI,CAAC,mDAAmD,CAAC,CAAC;IAChE,CAAC;SAAM,CAAC;QACN,GAAG,CAAC,IAAI,CAAC,6BAA6B,aAAa,EAAE,CAAC,CAAC;QACvD,GAAG,CAAC,IAAI,CAAC,sGAAsG,CAAC,CAAC;QACjH,GAAG,CAAC,IAAI,CAAC,2BAA2B,gBAAgB,2BAA2B,CAAC,CAAC;IACnF,CAAC;IACD,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACf,CAAC","sourcesContent":["import chalk from 'chalk';\nimport { confirm } from '@inquirer/prompts';\n\nimport type { EnvSetupInput, SetupResult } from '~wildo-cli/services/environment/environment.schemas';\nimport type { ProviderKeysInput } from '~wildo-cli/services/credentials/credentials.schemas';\nimport { EnvironmentUtils } from '~wildo-cli/services/environment/environment.service';\nimport { EnvironmentLifecycle } from '~wildo-cli/services/environment/environment-lifecycle.service';\nimport { PlatformEnvironmentConfiguration, SetupStatus } from '~wildo-cli/services/environment/environment.schemas';\nimport {\n BackingServiceKind,\n BackingServiceSource,\n DatabaseEngine,\n K8S_LOCAL_DEFAULTS,\n KIND_CLUSTER_DEFAULTS,\n PUBLIC_DOMAIN_DEFAULTS,\n WildoDeploymentRuntime,\n WildoLocationType,\n} from '@wildo-ai/platform-config-lib';\nimport { ContextManager } from '~wildo-cli/services/context/context-manager.service';\nimport {\n applyProviderKeyDefaults,\n DEFAULT_PROVIDER_KEY_DEFAULTS_MODE,\n resolveProviderKeyDefaultsAdoption,\n} from '~wildo-cli/services/credentials/local-defaults.service';\nimport type { Logger } from '~wildo-cli/kernel/types';\n\nimport type { PathsConfig, RuntimeChoice } from '~wildo-cli/modules/domain/environment/module.types';\nimport type { DatabaseInitializationInput } from '~wildo-cli/services/data-services/data-services.schemas';\nimport { runtimeModule } from '~wildo-cli/modules/domain/environment/runtime-selector.module';\nimport { runtimeSemanticsModule } from '~wildo-cli/modules/domain/environment/runtime-semantics.module';\nimport { platformPathsModule } from '~wildo-cli/modules/domain/environment/paths-config.module';\nimport { platformDatabaseInitializationModule } from '~wildo-cli/modules/domain/environment/database-config.module';\nimport { platformAdminUserModule, resolveAdminUserFromEnvSeeds } from '~wildo-cli/modules/domain/credentials/admin-user.module';\nimport { resolveApproverIdentity } from '~wildo-cli/modules/domain/credentials/approver-user.module';\nimport { establishCreationEssentials } from '~wildo-cli/modules/domain/credentials/creation-essentials.module';\nimport { buildCredentials, readSetupSecrets, runSecretsWrite } from '~wildo-cli/services/credentials/secrets-writer.service';\nimport { getProviderSelectionCatalog } from '~wildo-cli/services/credentials/provider-env-vars.utils';\nimport { runInfraWrite } from '~wildo-cli/services/deployment/infra-writer.service';\nimport { runK8sBootstrap } from '~wildo-cli/services/deployment/k8s/k8s-bootstrap.service';\nimport { resolvePlatformImageRef } from '~wildo-cli/services/environment/platform-runtime.schemas';\nimport { readVersion } from '~wildo-cli/kernel/bootstrap';\nimport { EnvironmentPaths } from '~wildo-cli/services/environment/environment-paths.service';\nimport { loadAuthoredInfraEnvConfig } from '~wildo-cli/services/environment/authored-infra-config.utils';\n\n\n// NOTE: This service currently mixes interactive prompts (module calls) with\n// business logic (file writes). The interactive input collection should be\n// extracted to a command-layer pattern (using BaseCommand.prompt()), leaving\n// only non-interactive execution here.\n\n/**\n * Core environment setup flow — env-agnostic. Drives `wildo setup`.\n *\n * Two modes, ONE write path (Phase 2 below is identical for both — only how the answers are\n * OBTAINED differs, which is the point: a headless bootstrap must not be a second, drifting\n * implementation of setup):\n *\n * - **Interactive** (default) — the operator answers each module's prompts.\n * - **Non-interactive** (`options.nonInteractive`, i.e. `wildo setup --non-interactive`) — every\n * answer is DERIVED, never asked:\n * - runtime / runtimeEnvironment / paths / database ← the registered environment, which\n * `ExistingAppBootstrapService.ensureLocalEnvironment` projects from the authored\n * `wildo.infra.<env>.config.ts` at kernel bootstrap (`initializeEnvironment` returns that\n * existing registration untouched). The authored descriptor is the declaration of record —\n * a prompt could only contradict it.\n * - admin identity ← the `WILDO_INIT_ADMIN_*` env seeds, fail-closed when absent.\n * - provider API keys ← none (all optional).\n * - every credential (Mongo/Valkey/RabbitMQ/storage/platform secrets, the appsManager EC\n * keypair, and the admin password when unseeded) ← GENERATED by {@link buildCredentials}.\n * This is what makes a cold, unattended VM bootstrappable: `secrets.json` has no other minter,\n * and without it `local up` cannot write `.env.wildo-platform`. Non-interactive is IDEMPOTENT —\n * an already-COMPLETED setup is a no-op success unless `force` is set.\n */\nexport async function runEnvSetup(\n envName: string,\n locationType: WildoLocationType,\n options: EnvSetupInput,\n log: Logger,\n): Promise<SetupResult> {\n const cliContext = ContextManager.get();\n const preferences = cliContext.preferences;\n if (!preferences) {\n log.error(chalk.red('\\n No preferences found. Run the install script first.\\n'));\n return { success: false };\n }\n\n /*\n * The machine preference is a DEFAULT, not a verdict.\n *\n * It decides whether the platform services run natively from the checkout or as containers of the\n * published image, and one machine can legitimately host both kinds of environment. Resolved once\n * here so every later read sees the same answer; `preferences.isFrameworkDeveloper` is not read\n * directly below.\n */\n const isFrameworkDeveloper = options.frameworkDeveloper ?? preferences.isFrameworkDeveloper;\n\n const saasRoot = cliContext.resolvedHomes.app.declarationRoot;\n if (!saasRoot) {\n log.error(chalk.red('\\n No targeted app root detected.\\n'));\n return { success: false };\n }\n const frameworkPath = cliContext.resolvedHomes.framework.repositoryRoot;\n if (!frameworkPath) {\n log.error(chalk.red(\n '\\n No framework repository root detected. '\n + 'Re-run the CLI install script or set frameworkPath in your machine preferences.\\n',\n ));\n return { success: false };\n }\n const env = EnvironmentUtils.initializeEnvironment(envName, locationType, {\n secretsPath: EnvironmentPaths.resolveScopedSecretsBase(saasRoot),\n configPath: EnvironmentPaths.resolveScopedConfigBase(saasRoot),\n infraPath: EnvironmentPaths.resolveScopedInfraBase(saasRoot),\n });\n const previousSetupStatus = env.setupStatus;\n\n const isFirstTime = env.setupStatus !== SetupStatus.COMPLETED || options.force;\n\n if (!isFirstTime) {\n log.info(chalk.dim('\\n Existing setup detected.\\n'));\n printCurrentSummary(log, env);\n\n // Non-interactive is IDEMPOTENT: an already-COMPLETED setup is a no-op success, so a headless\n // lane (CI, a scripted re-provision) can call `wildo setup --non-interactive` unconditionally\n // on every run. Re-minting would rotate secrets.json — orphaning the Mongo/Valkey data those\n // credentials already protect and invalidating a running stack. `--force` re-authors configuration\n // while the credential writer preserves existing identities and generated material.\n if (options.nonInteractive) {\n log.info(chalk.dim(' Non-interactive: keeping the existing setup (pass --force to re-author).\\n'));\n return { success: true };\n }\n\n const reconfigure = await confirm({\n message: 'Reconfigure?',\n default: false,\n });\n\n if (!reconfigure) {\n log.info(chalk.dim('\\n Keeping current configuration.\\n'));\n return { success: true };\n }\n }\n\n EnvironmentUtils.setSetupStatus(SetupStatus.IN_PROGRESS, envName);\n\n try {\n // Step 1 — Paths\n log.info(chalk.cyan('\\n Step 1/6 — Storage Paths\\n'));\n const pathsCtx = {\n envName,\n saasRoot,\n isFirstTime,\n isFrameworkDeveloper: isFrameworkDeveloper,\n frameworkPath,\n currentSecrets: env.secretsPath,\n currentConfig: env.configPath,\n log,\n };\n // Non-interactive: the environment registration ALREADY carries resolved paths —\n // `ExistingAppBootstrapService.ensureLocalEnvironment` seeds them from the app root (or a\n // detected sibling wildo-secrets repo) at kernel bootstrap, and `initializeEnvironment`\n // returns that existing registration untouched. The prompt exists only to OFFER a sibling\n // repo / a custom location; neither is a headless decision, so we honor what is registered.\n /*\n * A supplied path ANSWERS step 1 and skips the prompt for that one value only. This is how an\n * environment joins a shared secrets location without an operator walking the wizard — the\n * prompt's own purpose, per its docstring, is to \"OFFER a sibling repo / a custom location\".\n */\n const pathOverrides = {\n ...(options.secretsPath === undefined ? {} : { secretsPath: options.secretsPath }),\n ...(options.configPath === undefined ? {} : { configPath: options.configPath }),\n ...(options.infraPath === undefined ? {} : { infraPath: options.infraPath }),\n };\n const answeredEveryPath = options.secretsPath !== undefined\n && options.configPath !== undefined\n && options.infraPath !== undefined;\n const pathsAnswers: PathsConfig = options.nonInteractive || answeredEveryPath\n ? {\n secretsPath: env.secretsPath,\n configPath: env.configPath,\n infraPath: env.infraPath,\n ...pathOverrides,\n }\n : { ...(await platformPathsModule.prompt(pathsCtx)), ...pathOverrides };\n await platformPathsModule.apply?.(pathsAnswers, pathsCtx);\n env.secretsPath = pathsAnswers.secretsPath;\n env.configPath = pathsAnswers.configPath;\n env.infraPath = pathsAnswers.infraPath;\n\n // Step 2 — Local platform question\n log.info('');\n // Non-interactive callers are bootstrapping a local platform BY DEFINITION (that is the only\n // thing this flow mints secrets for) — asking would be theatre, so it is an implicit yes.\n const wantsLocalPlatform = options.nonInteractive || await confirm({\n message: `Set up a local Wildo development platform?\n\n This will run infrastructure services (MongoDB, Valkey, RabbitMQ, etc.)\n locally using Docker, and bootstrap the Wildo platform for development.\n\n Set up local platform?`,\n default: true,\n });\n\n if (!wantsLocalPlatform) {\n log.info(chalk.dim('\\n Skipping local platform setup. CLI tools are still available.\\n'));\n EnvironmentUtils.setSetupStatus(SetupStatus.COMPLETED, envName);\n return { success: true };\n }\n\n // Step 3 — Runtime\n log.info(chalk.cyan('\\n Step 2/6 — Infrastructure Runtime\\n'));\n // Non-interactive: the AUTHORED `wildo.infra.<env>.config.ts` already DECLARES the runtime\n // (projected onto the registration by `ensureLocalEnvironment`). Re-asking would let an\n // operator's answer contradict the committed declaration — the authored file is the truth.\n const requestedRuntime = options.runtime === undefined\n ? undefined\n : Object.values(WildoDeploymentRuntime).find((candidate) => candidate === options.runtime);\n if (options.runtime !== undefined && requestedRuntime === undefined) {\n log.error(chalk.red(`\\n Invalid --runtime \"${options.runtime}\". Valid: ${Object.values(WildoDeploymentRuntime).join(', ')}\\n`));\n return { success: false };\n }\n const runtimeAnswers: RuntimeChoice = requestedRuntime !== undefined\n ? { runtime: requestedRuntime }\n : options.nonInteractive\n ? { runtime: env.runtime }\n : await runtimeModule.prompt({\n isFrameworkDeveloper: isFrameworkDeveloper,\n });\n env.runtime = runtimeAnswers.runtime;\n // Seed top-level `publicDomain` based on the runtime the operator\n // just chose. Required by the schema; for local interactive setup\n // the canonical write-time defaults from `PUBLIC_DOMAIN_DEFAULTS`\n // give the operator a working starting point that they can edit\n // afterwards in `wildo.infra.local.config.ts`.\n env.publicDomain = runtimeAnswers.runtime === WildoDeploymentRuntime.KUBERNETES\n ? PUBLIC_DOMAIN_DEFAULTS.LOCAL_K8S\n : PUBLIC_DOMAIN_DEFAULTS.LOCAL_COMPOSE;\n if (runtimeAnswers.runtime === WildoDeploymentRuntime.KUBERNETES) {\n env.kubernetes = {\n namespace: K8S_LOCAL_DEFAULTS.NAMESPACE,\n imageRegistry: `localhost:${KIND_CLUSTER_DEFAULTS.REGISTRY_PORT}`,\n };\n }\n\n // Step 4 — Runtime semantics\n log.info(chalk.cyan('\\n Step 3/6 — Application Runtime Semantics\\n'));\n const runtimeSemanticsAnswers = options.nonInteractive\n ? { runtimeEnvironment: env.runtimeEnvironment }\n : await runtimeSemanticsModule.prompt({ locationType });\n env.runtimeEnvironment = runtimeSemanticsAnswers.runtimeEnvironment;\n\n // Step 5 — Database\n log.info(chalk.cyan('\\n Step 4/6 — Database\\n'));\n // Non-interactive: `ensureLocalEnvironment` already resolved the AUTHORITATIVE database choice\n // from the authored infra descriptor's `backingServices` (falling back to self-hosted Mongo), so\n // the registration is the answer. The prompt's other branch (an external Atlas instance + its API\n // keys) is inherently interactive material and is NOT a headless-bootstrap scenario — a lane that\n // needs it must author it in `wildo.infra.<env>.config.ts` instead of answering a prompt.\n /*\n * `--database` answers the ENGINE and nothing else. The prompt's other branch — an external Atlas\n * instance and its API keys — is inherently interactive material, so a flag that claimed to answer\n * the whole step would be lying about the half it cannot carry.\n */\n const requestedEngine = options.database === undefined\n ? undefined\n : Object.values(DatabaseEngine).find((candidate) => candidate === options.database);\n if (options.database !== undefined && requestedEngine === undefined) {\n log.error(chalk.red(`\\n Invalid --database \"${options.database}\". Valid: ${Object.values(DatabaseEngine).join(', ')}\\n`));\n return { success: false };\n }\n const dbAnswers: DatabaseInitializationInput = requestedEngine !== undefined\n ? { database: { ...env.database, engine: requestedEngine } }\n : options.nonInteractive\n ? { database: env.database }\n : await platformDatabaseInitializationModule.prompt({\n envName,\n log,\n isFrameworkDeveloper: isFrameworkDeveloper,\n });\n await platformDatabaseInitializationModule.apply?.(dbAnswers, {\n envName,\n log,\n isFrameworkDeveloper: isFrameworkDeveloper,\n });\n env.database = dbAnswers.database;\n\n // Step 6 — Admin\n log.info(chalk.cyan('\\n Step 5/6 — Platform Administrator\\n'));\n // Non-interactive: identity from the `WILDO_INIT_ADMIN_*` env seeds, FAIL-CLOSED when absent —\n // the one thing a headless caller genuinely must state (see `resolveAdminUserFromEnvSeeds`).\n // Reconfiguration may add an approver or provider key, but is never credential rotation.\n // Read after path selection so this is the store the writer will actually update.\n // A hosted application's file holds only its own sections, so it is read as such; the authored descriptor decides.\n const authoredForEnv = await loadAuthoredInfraEnvConfig(envName, saasRoot);\n const existingSecrets = readSetupSecrets(EnvironmentPaths.resolveSecretsDir(envName), {\n hosted: authoredForEnv?.config.infrastructureHost !== undefined,\n });\n const adminAnswers = existingSecrets?.admin ?? (options.nonInteractive\n ? resolveAdminUserFromEnvSeeds(log)\n : await platformAdminUserModule.prompt({ log }));\n const approverAnswers = existingSecrets?.approver ?? resolveApproverIdentity({\n admin: adminAnswers,\n isLocalEnvironment: locationType === WildoLocationType.LOCAL,\n log,\n }).approver;\n\n // Step 7 — What development needs\n log.info(chalk.cyan('\\n Step 6/6 — Coding agent and LLM\\n'));\n /*\n * ONLY what development cannot start without (#1637, decided by Paul 2026-09-25): the coding\n * agent's login and the companion's LLM key. This step used to offer every provider in the\n * catalogue, whatever the application enabled; every other secret is now asked when something\n * first needs it — `wildo secrets set <NAME>`, or the workbench's secrets section.\n *\n * Non-interactive: nothing is typed; a missing login or key is REPORTED with the command that\n * fixes it, never refused — a headless lane supplies keys through its own secret store.\n */\n /*\n * ADOPT this machine's captured provider keys before asking for any.\n *\n * The headless branch used to answer `{}`, so an unattended setup produced an environment with NO\n * third-party credentials at all — correct when nothing had ever been captured, and needless\n * retyping once something had. Adoption fills it from `~/.wildo/local-defaults.json`, and the\n * prompt still runs interactively for anything the file does not carry.\n *\n * Only the PROVIDER-KEY half is decided here (`--provider-key-defaults`): setup never adopts the\n * shared platform credentials, so the `--local-defaults` it used to take governed provider keys\n * under the other half's name. See \"Two halves, two decisions\" in local-defaults.service.ts.\n */\n const providerKeyMode = options.providerKeyDefaults === undefined || options.providerKeyDefaults === ''\n ? preferences.defaults?.providerKeyDefaults ?? DEFAULT_PROVIDER_KEY_DEFAULTS_MODE\n : options.providerKeyDefaults;\n const offeredProviderEnv = await resolveProviderKeyDefaultsAdoption({\n mode: providerKeyMode,\n canAsk: options.nonInteractive !== true && process.stdin.isTTY === true,\n confirm: (names) => confirm({ message: `Use the provider keys captured on this machine (${names.join(', ')})?`, default: true }),\n }) ?? {};\n /*\n * SEED, never replace: only keys this environment does not already hold. Merged below over the existing\n * `providerEnv`, an adopted key would otherwise silently undo a key rotated with `wildo secrets set` on\n * any re-run of setup — and ADOPT, the default, no longer asks first. Same rule as init's draft.\n */\n const seededNames = applyProviderKeyDefaults({ providerEnv: { ...(existingSecrets?.providerEnv ?? {}) } }, offeredProviderEnv);\n const adoptedProviderEnv: Record<string, string> = Object.fromEntries(seededNames.map((name) => [name, offeredProviderEnv[name]!]));\n\n const essentials = await establishCreationEssentials({\n log,\n interactive: options.nonInteractive !== true && process.stdin.isTTY === true,\n saasRoot,\n // Names only: the essentials ask whether the LLM key is set, never what it is.\n storedProviderEnvNames: new Set(Object.entries({ ...(existingSecrets?.providerEnv ?? {}), ...adoptedProviderEnv })\n .filter(([, value]) => value.trim().length > 0)\n .map(([name]) => name)),\n codingAgentPreference: preferences.defaults?.codingAgent,\n });\n const promptedProviderAnswers: ProviderKeysInput = Object.keys(essentials.providerEnv).length === 0\n ? {}\n : { providerEnv: essentials.providerEnv };\n /*\n * The PROMPT wins over the adopted value: somebody typing a key on this run means it, and a\n * machine default must never silently replace an explicit answer.\n */\n const mergedProviderEnv = { ...adoptedProviderEnv, ...(promptedProviderAnswers.providerEnv ?? {}) };\n const providerAnswers: ProviderKeysInput = {\n ...promptedProviderAnswers,\n // OMITTED when empty rather than written as `{}`: a headless run that adopted nothing must\n // produce exactly what it produced before this existed, key for key.\n ...(Object.keys(mergedProviderEnv).length === 0 ? {} : { providerEnv: mergedProviderEnv }),\n };\n\n // Step 7 — Confirmation summary\n /*\n * The platform image is not a setup input: every lane that runs a platform container runs the\n * published `docker.io/wildoai/wildo-platform:<framework version>`, and a framework developer runs the\n * platform natively (`resolvePlatformImageRef`). Until 2026-09-06 setup handed `latest` to the renderer\n * for both lanes, so every app-creator `wildo setup` re-rendered the compose file to a `:latest` nobody\n * had promised to publish; until #2988 it still handed `latest` to a framework developer's render, for a\n * platform container their compose file never contains.\n */\n const platformImageRef = resolvePlatformImageRef({ frameworkVersion: readVersion() });\n\n log.info('');\n printSetupSummary(log, env, platformImageRef, isFrameworkDeveloper, adminAnswers, providerAnswers);\n\n // Non-interactive: the summary above is printed for the CI log, but there is nobody to confirm —\n // the caller already committed by passing --non-interactive.\n const proceed = options.nonInteractive || await confirm({ message: 'Proceed?', default: true });\n if (!proceed) {\n EnvironmentUtils.setSetupStatus(previousSetupStatus, envName);\n log.warn(chalk.yellow('\\n Setup cancelled.\\n'));\n return { success: false };\n }\n\n // --- Phase 2: File generation ---\n log.info(chalk.cyan('\\n Phase 2 — Generating configuration files...\\n'));\n\n const credentials = buildCredentials(adminAnswers, dbAnswers, providerAnswers, approverAnswers, existingSecrets ?? undefined);\n\n // Seed `env.backingServices` / `serviceAuth` / `logging` from the authored\n // `wildo.infra.<env>.config.ts` BEFORE rendering compose. The wizard's\n // prompts only cover paths/runtime/database — they don't touch the\n // authored backing-services map. Without this seed, the compose template\n // is rendered against an `env` whose `backingServices` is `undefined`,\n // which silently DROPS opt-in services like `clamav` (gated on\n // `env.backingServices?.clamav?.source === SELF` in the docker-compose\n // generator). Loading the authored descriptor here keeps setup honoring\n // the operator's authored choices.\n if (authoredForEnv) {\n env.backingServices = authoredForEnv.config.backingServices;\n env.serviceAuth = authoredForEnv.config.serviceAuth;\n env.logging = authoredForEnv.config.logging;\n env.infrastructureHost = authoredForEnv.config.infrastructureHost;\n }\n // Persisted BEFORE the secrets write below: the single secrets writer decides from the registry whether this\n // environment is hosted, and a hosted file must receive only its application-owned sections.\n if (env.infrastructureHost !== undefined) {\n EnvironmentUtils.updateEnvironmentState(env);\n }\n\n await runSecretsWrite(env, credentials, dbAnswers, log, authoredForEnv?.config);\n await runInfraWrite(env, frameworkPath, isFrameworkDeveloper, credentials, log);\n\n EnvironmentUtils.updateEnvironmentState(env);\n EnvironmentUtils.setSetupStatus(SetupStatus.COMPLETED, envName);\n log.success(chalk.green(' ✓ environments.json updated'));\n\n log.success(chalk.green('\\n Phase 2 complete — configuration files generated.\\n'));\n\n // --- Phase 3: K8s deployment (if applicable) ---\n // A hosted environment's cluster is its host's: bootstrapping it from here would delete and recreate it.\n if (env.runtime === WildoDeploymentRuntime.KUBERNETES && env.infrastructureHost === undefined) {\n const k8sResult = await runK8sBootstrap(\n env,\n frameworkPath,\n credentials,\n {\n reset: true,\n isFrameworkDeveloper: isFrameworkDeveloper,\n saasRoot,\n },\n log,\n );\n if (!k8sResult.success) {\n return { success: false };\n }\n }\n\n return { success: true, adminPassword: credentials.admin!.password };\n } catch (error) {\n EnvironmentUtils.setSetupStatus(SetupStatus.FAILED, envName);\n throw error;\n }\n}\n\n\nfunction printCurrentSummary(log: Logger, env: PlatformEnvironmentConfiguration): void {\n log.info(` Secrets path: ${env.secretsPath}`);\n log.info(` Config path: ${env.configPath}`);\n log.info(` Infra path: ${env.infraPath}`);\n log.info(` App semantics: ${env.runtimeEnvironment ?? 'not set'}`);\n log.info(` Database: ${env.database.engine} — ${env.database.source}`);\n log.info(` Setup status: ${env.setupStatus}`);\n}\n\nfunction printSetupSummary(\n log: Logger,\n env: PlatformEnvironmentConfiguration,\n platformImageRef: string,\n isFrameworkDeveloper: boolean,\n admin: { email: string; firstName: string; lastName: string },\n providers: ProviderKeysInput,\n): void {\n // A provider counts as configured when any of its declared secrets was\n // supplied; map the collected env-var names back to provider labels via the\n // same registry-derived catalog the setup selector uses.\n const configuredEnvVars = new Set(Object.keys(providers.providerEnv ?? {}));\n const providerNames = getProviderSelectionCatalog()\n .filter((entry) => entry.secrets.some((secret) => configuredEnvVars.has(secret.envVarName)))\n .map((entry) => entry.label);\n if (providers.githubOrgUrl) {\n providerNames.push('GitHub organization');\n }\n\n const runtime = env.runtime;\n const runtimeLabel = runtime === WildoDeploymentRuntime.DOCKER_COMPOSE ? 'Docker Compose' : 'Kubernetes';\n const isLocalDb = env.database.source === BackingServiceSource.SELF;\n const dbLabel = isLocalDb ? 'Local (Docker)' : 'Atlas (external)';\n\n log.info(chalk.bold(' Configuration summary:\\n'));\n log.info(` Secrets path: ${env.secretsPath}`);\n log.info(` Config path: ${env.configPath}`);\n log.info(` Infra path: ${env.infraPath}`);\n log.info(` Local platform: Yes`);\n log.info(` Runtime: ${runtimeLabel}`);\n log.info(` App semantics: ${env.runtimeEnvironment ?? 'not set'}`);\n log.info(` Database: ${env.database.engine} — ${dbLabel}`);\n log.info(` Admin email: ${admin.email}`);\n log.info(` Admin name: ${admin.firstName} ${admin.lastName}`);\n log.info(` Provider keys: ${providerNames.length > 0 ? `${providerNames.join(', ')} (${providerNames.length} configured)` : 'none'}`);\n\n log.info(` Public domain: ${env.publicDomain}`);\n if (runtime === WildoDeploymentRuntime.KUBERNETES) {\n log.info(` K8s namespace: ${env.kubernetes?.namespace}`);\n }\n\n // Derived from the same rule the lanes render from, so the summary cannot list a service the profile drops (#2303).\n // Called on `EnvironmentLifecycle` itself, not the `EnvironmentUtils` facade, which tests replace with a partial mock.\n const infraServices = [\n ...(EnvironmentLifecycle.selfHostsBackingService(env, BackingServiceKind.REDIS) ? ['valkey'] : []),\n ...(EnvironmentLifecycle.selfHostsBackingService(env, BackingServiceKind.RABBITMQ) ? ['rabbitmq'] : []),\n ...(EnvironmentLifecycle.selfHostsBackingService(env, BackingServiceKind.S3) ? ['minio'] : []),\n ...(isLocalDb ? ['mongodb'] : []),\n ].join(', ') || 'none';\n if (isFrameworkDeveloper) {\n log.info(`\\n Infra services: ${infraServices}`);\n log.info(` Platform services: run natively (hot-reload)`);\n } else {\n log.info(`\\n Infra services: ${infraServices}`);\n log.info(` Platform services: apps-manager, crontabs-batches-manager, module-registry (Docker containers)`);\n log.info(` Docker image: ${platformImageRef} (pulled from Docker Hub)`);\n }\n log.info('');\n}\n"]}
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
* New code should import directly from the sub-service it needs.
|
|
11
11
|
*/
|
|
12
12
|
import type { PlatformEnvironmentConfiguration, PlatformEnvironmentsState, PlatformEnvOperatingSystem } from '../../services/environment/environment.schemas';
|
|
13
|
-
import type { BackingServiceKind, BackingServicesEnvConfig, PlatformWildoServices, WildoDeploymentRuntime, WildoLocationType } from '@wildo-ai/platform-config-lib';
|
|
13
|
+
import type { BackingServiceKind, BackingServicesEnvConfig, EnvironmentServiceProfile, PlatformWildoServices, WildoDeploymentRuntime, WildoLocationType } from '@wildo-ai/platform-config-lib';
|
|
14
14
|
import { SetupStatus } from '../../services/environment/environment.schemas';
|
|
15
|
-
import type { PlatformDatabaseChoice
|
|
15
|
+
import type { PlatformDatabaseChoice } from '../../services/data-services/data-services.schemas';
|
|
16
16
|
import type { ApplicationRuntimeIdentityJson, PlatformEnvConfigJson, PlatformEnvSecretsJson } from '../../services/credentials/credentials.schemas';
|
|
17
17
|
export declare class EnvironmentUtils {
|
|
18
18
|
static load(): PlatformEnvironmentsState;
|
|
@@ -57,13 +57,14 @@ export declare class EnvironmentUtils {
|
|
|
57
57
|
static selfHostsBackingService(env: {
|
|
58
58
|
name: string;
|
|
59
59
|
backingServices?: BackingServicesEnvConfig;
|
|
60
|
+
serviceProfile?: EnvironmentServiceProfile;
|
|
60
61
|
}, kind: BackingServiceKind): boolean;
|
|
61
62
|
/** @see EnvironmentLifecycle.servesBackingServiceOffCluster — a USED kind served from outside the deployment (#3511). */
|
|
62
63
|
static servesBackingServiceOffCluster(env: {
|
|
63
64
|
name: string;
|
|
64
65
|
backingServices?: BackingServicesEnvConfig;
|
|
66
|
+
serviceProfile?: EnvironmentServiceProfile;
|
|
65
67
|
}, kind: BackingServiceKind): boolean;
|
|
66
|
-
static getRequiredInfraServices(envName?: string): PlatformDataServices[];
|
|
67
68
|
static getRequiredPlatformServices(): PlatformWildoServices[];
|
|
68
69
|
static getRuntime(envName?: string): WildoDeploymentRuntime;
|
|
69
70
|
static detectOS(): PlatformEnvOperatingSystem;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"environment.service.d.ts","sourceRoot":"","sources":["../../../../src/services/environment/environment.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EACV,gCAAgC,EAChC,yBAAyB,EACzB,0BAA0B,EAC3B,MAAM,qDAAqD,CAAC;AAC7D,OAAO,KAAK,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"environment.service.d.ts","sourceRoot":"","sources":["../../../../src/services/environment/environment.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EACV,gCAAgC,EAChC,yBAAyB,EACzB,0BAA0B,EAC3B,MAAM,qDAAqD,CAAC;AAC7D,OAAO,KAAK,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,yBAAyB,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAC/L,OAAO,EAAE,WAAW,EAAE,MAAM,qDAAqD,CAAC;AAClF,OAAO,KAAK,EACV,sBAAsB,EAEvB,MAAM,yDAAyD,CAAC;AACjE,OAAO,KAAK,EACV,8BAA8B,EAC9B,qBAAqB,EACrB,sBAAsB,EACvB,MAAM,qDAAqD,CAAC;AAM7D,qBAAa,gBAAgB;IAI3B,MAAM,CAAC,IAAI,IAAI,yBAAyB;IACxC,MAAM,CAAC,KAAK,IAAI,IAAI;IACpB,MAAM,CAAC,MAAM,IAAI,MAAM,CAAC,MAAM,EAAE,gCAAgC,CAAC;IACjE,MAAM,CAAC,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,gCAAgC,GAAG,SAAS;IACtE,MAAM,CAAC,UAAU,IAAI,gCAAgC,GAAG,SAAS;IACjE,MAAM,CAAC,cAAc,IAAI,MAAM;IAC/B,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IACnC,MAAM,CAAC,SAAS,IAAI,MAAM,EAAE;IAC5B,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,gCAAgC,EAAE,MAAM,GAAG,cAAc,GAAG,WAAW,CAAC,CAAC,GAAG,IAAI;IAClI,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IACjC,MAAM,CAAC,cAAc,CAAC,OA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MAAM,GAAG,MAAM;IAC7C,MAAM,CAAC,QAAQ,CAAC,KAAK,EAAE;QAAE,WAAW,CAAC,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI;IACjH,MAAM,CAAC,iBAAiB,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM;IAClD,MAAM,CAAC,gBAAgB,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM;IACjD,MAAM,CAAC,eAAe,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM;IAChD,MAAM,CAAC,uBAAuB,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM;IACxD,MAAM,CAAC,wBAAwB,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI;CACtE"}
|
|
@@ -51,7 +51,6 @@ export class EnvironmentUtils {
|
|
|
51
51
|
static selfHostsBackingService(env, kind) { return EnvironmentLifecycle.selfHostsBackingService(env, kind); }
|
|
52
52
|
/** @see EnvironmentLifecycle.servesBackingServiceOffCluster — a USED kind served from outside the deployment (#3511). */
|
|
53
53
|
static servesBackingServiceOffCluster(env, kind) { return EnvironmentLifecycle.servesBackingServiceOffCluster(env, kind); }
|
|
54
|
-
static getRequiredInfraServices(envName) { return EnvironmentLifecycle.getRequiredInfraServices(envName); }
|
|
55
54
|
static getRequiredPlatformServices() { return EnvironmentLifecycle.getRequiredPlatformServices(); }
|
|
56
55
|
static getRuntime(envName) { return EnvironmentLifecycle.getRuntime(envName); }
|
|
57
56
|
static detectOS() { return EnvironmentLifecycle.detectOS(); }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"environment.service.js","sourceRoot":"","sources":["../../../../src/services/environment/environment.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAmBH,OAAO,EAAE,mBAAmB,EAAE,MAAM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G,MAAM,CAAC,gBAAgB,CAAC,OAAgB,IAAY,OAAO,gBAAgB,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IACxG,MAAM,CAAC,eAAe,CAAC,OAAgB,IAAY,OAAO,gBAAgB,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IACtG,MAAM,CAAC,uBAAuB,CAAC,OAAgB,IAAY,OAAO,gBAAgB,CAAC,uBAAuB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IACtH,MAAM,CAAC,wBAAwB,CAAC,aAAqB,IAAmB,OAAO,gBAAgB,CAAC,wBAAwB,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;CAC3I","sourcesContent":["/**\n * EnvironmentUtils — backward-compatible facade.\n *\n * Delegates to the three focused sub-services:\n * - EnvironmentRegistry (state persistence, CRUD, config/secrets loading)\n * - EnvironmentPaths (path resolution)\n * - EnvironmentLifecycle (initialization, setup status, database, infra)\n *\n * Existing callers continue importing { EnvironmentUtils } from this file.\n * New code should import directly from the sub-service it needs.\n */\n\nimport type {\n PlatformEnvironmentConfiguration,\n PlatformEnvironmentsState,\n PlatformEnvOperatingSystem,\n} from '~wildo-cli/services/environment/environment.schemas';\nimport type { BackingServiceKind, BackingServicesEnvConfig, PlatformWildoServices, WildoDeploymentRuntime, WildoLocationType } from '@wildo-ai/platform-config-lib';\nimport { SetupStatus } from '~wildo-cli/services/environment/environment.schemas';\nimport type {\n PlatformDatabaseChoice,\n PlatformDataServices,\n} from '~wildo-cli/services/data-services/data-services.schemas';\nimport type {\n ApplicationRuntimeIdentityJson,\n PlatformEnvConfigJson,\n PlatformEnvSecretsJson,\n} from '~wildo-cli/services/credentials/credentials.schemas';\n\nimport { EnvironmentRegistry } from '~wildo-cli/services/environment/environment-registry.service';\nimport { EnvironmentPaths } from '~wildo-cli/services/environment/environment-paths.service';\nimport { EnvironmentLifecycle } from '~wildo-cli/services/environment/environment-lifecycle.service';\n\nexport class EnvironmentUtils {\n\n // --- Registry delegates ---------------------------------------------------\n\n static load(): PlatformEnvironmentsState { return EnvironmentRegistry.load(); }\n static reset(): void { EnvironmentRegistry.reset(); }\n static getAll(): Record<string, PlatformEnvironmentConfiguration> { return EnvironmentRegistry.getAll(); }\n static get(name: string): PlatformEnvironmentConfiguration | undefined { return EnvironmentRegistry.get(name); }\n static getCurrent(): PlatformEnvironmentConfiguration | undefined { return EnvironmentRegistry.getCurrent(); }\n static getCurrentName(): string { return EnvironmentRegistry.getCurrentName(); }\n static switchTo(name: string): void { EnvironmentRegistry.switchTo(name); }\n static listNames(): string[] { return EnvironmentRegistry.listNames(); }\n static update(name: string, updates: Partial<Omit<PlatformEnvironmentConfiguration, 'name' | 'locationType' | 'createdAt'>>): void { EnvironmentRegistry.update(name, updates); }\n static remove(name: string): void { EnvironmentRegistry.remove(name); }\n static loadConfigJson(envName?: string): PlatformEnvConfigJson | null { return EnvironmentRegistry.loadConfigJson(envName, EnvironmentPaths.resolveConfigDir(envName)); }\n static loadSecretsJson(envName?: string): PlatformEnvSecretsJson | null { return EnvironmentRegistry.loadSecretsJson(envName, EnvironmentPaths.resolveSecretsDir(envName)); }\n static loadApplicationRuntimeIdentity(envName?: string): ApplicationRuntimeIdentityJson | null { return EnvironmentRegistry.loadApplicationRuntimeIdentity(envName, EnvironmentPaths.resolveConfigDir(envName)); }\n static saveApplicationRuntimeIdentity(envName: string, appSlug: string, applicationId: string): void { EnvironmentRegistry.saveApplicationRuntimeIdentity(envName, appSlug, applicationId, EnvironmentPaths.resolveConfigDir(envName)); }\n static clearApplicationRuntimeIdentities(envName: string): void { EnvironmentRegistry.clearApplicationRuntimeIdentities(envName, EnvironmentPaths.resolveConfigDir(envName)); }\n static invalidateCache(): void { EnvironmentRegistry.invalidateCache(); }\n\n // --- Lifecycle delegates --------------------------------------------------\n\n static initializeLocal(overrides?: Partial<PlatformEnvironmentConfiguration>): PlatformEnvironmentConfiguration { return EnvironmentLifecycle.initializeLocal(overrides); }\n static initializeEnvironment(name: string, locationType: WildoLocationType, overrides?: Partial<PlatformEnvironmentConfiguration>): PlatformEnvironmentConfiguration { return EnvironmentLifecycle.initializeEnvironment(name, locationType, overrides); }\n static updateEnvironmentState(env: PlatformEnvironmentConfiguration): void { EnvironmentLifecycle.updateEnvironmentState(env); }\n static getSetupStatus(envName?: string): SetupStatus { return EnvironmentLifecycle.getSetupStatus(envName); }\n static setSetupStatus(status: SetupStatus, envName?: string): void { EnvironmentLifecycle.setSetupStatus(status, envName); }\n static isSetupCompleted(envName?: string): boolean { return EnvironmentLifecycle.isSetupCompleted(envName); }\n static isPlatformInitialized(envName?: string): boolean { return EnvironmentLifecycle.isPlatformInitialized(envName); }\n static markPlatformInitialized(envName?: string): void { return EnvironmentLifecycle.markPlatformInitialized(envName); }\n static clearPlatformInitialized(envName?: string): void { return EnvironmentLifecycle.clearPlatformInitialized(envName); }\n static getDatabaseChoice(envName?: string): PlatformDatabaseChoice { return EnvironmentLifecycle.getDatabaseChoice(envName); }\n static getDatabaseEngine(envName?: string): import('@wildo-ai/platform-config-lib').DatabaseEngine { return EnvironmentLifecycle.getDatabaseEngine(envName); }\n static setDatabaseChoice(database: PlatformDatabaseChoice, envName?: string): void { EnvironmentLifecycle.setDatabaseChoice(database, envName); }\n /** @see EnvironmentLifecycle.needsLocalPostgreSQL — the union rule; NOT `getDatabaseEngine() === POSTGRESQL`. */\n static needsLocalPostgreSQL(env: { name: string; backingServices?: BackingServicesEnvConfig }): boolean { return EnvironmentLifecycle.needsLocalPostgreSQL(env); }\n /** @see EnvironmentLifecycle.needsLocalMongoDB — the union rule (mirror of needsLocalPostgreSQL). */\n static needsLocalMongoDB(env: { name: string; backingServices?: BackingServicesEnvConfig }): boolean { return EnvironmentLifecycle.needsLocalMongoDB(env); }\n /** @see EnvironmentLifecycle.selfHostsBackingService — the TOTAL per-kind self-deploy rule both lanes gate on. */\n static selfHostsBackingService(env: { name: string; backingServices?: BackingServicesEnvConfig }, kind: BackingServiceKind): boolean { return EnvironmentLifecycle.selfHostsBackingService(env, kind); }\n /** @see EnvironmentLifecycle.servesBackingServiceOffCluster — a USED kind served from outside the deployment (#3511). */\n static servesBackingServiceOffCluster(env: { name: string; backingServices?: BackingServicesEnvConfig }, kind: BackingServiceKind): boolean { return EnvironmentLifecycle.servesBackingServiceOffCluster(env, kind); }\n static getRequiredInfraServices(envName?: string): PlatformDataServices[] { return EnvironmentLifecycle.getRequiredInfraServices(envName); }\n static getRequiredPlatformServices(): PlatformWildoServices[] { return EnvironmentLifecycle.getRequiredPlatformServices(); }\n static getRuntime(envName?: string): WildoDeploymentRuntime { return EnvironmentLifecycle.getRuntime(envName); }\n static detectOS(): PlatformEnvOperatingSystem { return EnvironmentLifecycle.detectOS(); }\n\n // --- Paths delegates ------------------------------------------------------\n\n static getSecretsPath(envName?: string): string { return EnvironmentPaths.getSecretsPath(envName); }\n static getConfigPath(envName?: string): string { return EnvironmentPaths.getConfigPath(envName); }\n static getInfraPath(envName?: string): string { return EnvironmentPaths.getInfraPath(envName); }\n static setPaths(paths: { secretsPath?: string; configPath?: string; infraPath?: string }, envName?: string): void { EnvironmentPaths.setPaths(paths, envName); }\n static resolveSecretsDir(envName?: string): string { return EnvironmentPaths.resolveSecretsDir(envName); }\n static resolveConfigDir(envName?: string): string { return EnvironmentPaths.resolveConfigDir(envName); }\n static resolveInfraDir(envName?: string): string { return EnvironmentPaths.resolveInfraDir(envName); }\n static resolveDockerComposeDir(envName?: string): string { return EnvironmentPaths.resolveDockerComposeDir(envName); }\n static detectSiblingSecretsRepo(frameworkPath: string): string | null { return EnvironmentPaths.detectSiblingSecretsRepo(frameworkPath); }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"environment.service.js","sourceRoot":"","sources":["../../../../src/services/environment/environment.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAmBH,OAAO,EAAE,mBAAmB,EAAE,MAAM,8DAA8D,CAAC;AACnG,OAAO,EAAE,gBAAgB,EAAE,MAAM,2DAA2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AAe,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IACtG,MAAM,CAAC,uBAAuB,CAAC,OAAgB,IAAY,OAAO,gBAAgB,CAAC,uBAAuB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IACtH,MAAM,CAAC,wBAAwB,CAAC,aAAqB,IAAmB,OAAO,gBAAgB,CAAC,wBAAwB,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;CAC3I","sourcesContent":["/**\n * EnvironmentUtils — backward-compatible facade.\n *\n * Delegates to the three focused sub-services:\n * - EnvironmentRegistry (state persistence, CRUD, config/secrets loading)\n * - EnvironmentPaths (path resolution)\n * - EnvironmentLifecycle (initialization, setup status, database, infra)\n *\n * Existing callers continue importing { EnvironmentUtils } from this file.\n * New code should import directly from the sub-service it needs.\n */\n\nimport type {\n PlatformEnvironmentConfiguration,\n PlatformEnvironmentsState,\n PlatformEnvOperatingSystem,\n} from '~wildo-cli/services/environment/environment.schemas';\nimport type { BackingServiceKind, BackingServicesEnvConfig, EnvironmentServiceProfile, PlatformWildoServices, WildoDeploymentRuntime, WildoLocationType } from '@wildo-ai/platform-config-lib';\nimport { SetupStatus } from '~wildo-cli/services/environment/environment.schemas';\nimport type {\n PlatformDatabaseChoice,\n PlatformDataServices,\n} from '~wildo-cli/services/data-services/data-services.schemas';\nimport type {\n ApplicationRuntimeIdentityJson,\n PlatformEnvConfigJson,\n PlatformEnvSecretsJson,\n} from '~wildo-cli/services/credentials/credentials.schemas';\n\nimport { EnvironmentRegistry } from '~wildo-cli/services/environment/environment-registry.service';\nimport { EnvironmentPaths } from '~wildo-cli/services/environment/environment-paths.service';\nimport { EnvironmentLifecycle } from '~wildo-cli/services/environment/environment-lifecycle.service';\n\nexport class EnvironmentUtils {\n\n // --- Registry delegates ---------------------------------------------------\n\n static load(): PlatformEnvironmentsState { return EnvironmentRegistry.load(); }\n static reset(): void { EnvironmentRegistry.reset(); }\n static getAll(): Record<string, PlatformEnvironmentConfiguration> { return EnvironmentRegistry.getAll(); }\n static get(name: string): PlatformEnvironmentConfiguration | undefined { return EnvironmentRegistry.get(name); }\n static getCurrent(): PlatformEnvironmentConfiguration | undefined { return EnvironmentRegistry.getCurrent(); }\n static getCurrentName(): string { return EnvironmentRegistry.getCurrentName(); }\n static switchTo(name: string): void { EnvironmentRegistry.switchTo(name); }\n static listNames(): string[] { return EnvironmentRegistry.listNames(); }\n static update(name: string, updates: Partial<Omit<PlatformEnvironmentConfiguration, 'name' | 'locationType' | 'createdAt'>>): void { EnvironmentRegistry.update(name, updates); }\n static remove(name: string): void { EnvironmentRegistry.remove(name); }\n static loadConfigJson(envName?: string): PlatformEnvConfigJson | null { return EnvironmentRegistry.loadConfigJson(envName, EnvironmentPaths.resolveConfigDir(envName)); }\n static loadSecretsJson(envName?: string): PlatformEnvSecretsJson | null { return EnvironmentRegistry.loadSecretsJson(envName, EnvironmentPaths.resolveSecretsDir(envName)); }\n static loadApplicationRuntimeIdentity(envName?: string): ApplicationRuntimeIdentityJson | null { return EnvironmentRegistry.loadApplicationRuntimeIdentity(envName, EnvironmentPaths.resolveConfigDir(envName)); }\n static saveApplicationRuntimeIdentity(envName: string, appSlug: string, applicationId: string): void { EnvironmentRegistry.saveApplicationRuntimeIdentity(envName, appSlug, applicationId, EnvironmentPaths.resolveConfigDir(envName)); }\n static clearApplicationRuntimeIdentities(envName: string): void { EnvironmentRegistry.clearApplicationRuntimeIdentities(envName, EnvironmentPaths.resolveConfigDir(envName)); }\n static invalidateCache(): void { EnvironmentRegistry.invalidateCache(); }\n\n // --- Lifecycle delegates --------------------------------------------------\n\n static initializeLocal(overrides?: Partial<PlatformEnvironmentConfiguration>): PlatformEnvironmentConfiguration { return EnvironmentLifecycle.initializeLocal(overrides); }\n static initializeEnvironment(name: string, locationType: WildoLocationType, overrides?: Partial<PlatformEnvironmentConfiguration>): PlatformEnvironmentConfiguration { return EnvironmentLifecycle.initializeEnvironment(name, locationType, overrides); }\n static updateEnvironmentState(env: PlatformEnvironmentConfiguration): void { EnvironmentLifecycle.updateEnvironmentState(env); }\n static getSetupStatus(envName?: string): SetupStatus { return EnvironmentLifecycle.getSetupStatus(envName); }\n static setSetupStatus(status: SetupStatus, envName?: string): void { EnvironmentLifecycle.setSetupStatus(status, envName); }\n static isSetupCompleted(envName?: string): boolean { return EnvironmentLifecycle.isSetupCompleted(envName); }\n static isPlatformInitialized(envName?: string): boolean { return EnvironmentLifecycle.isPlatformInitialized(envName); }\n static markPlatformInitialized(envName?: string): void { return EnvironmentLifecycle.markPlatformInitialized(envName); }\n static clearPlatformInitialized(envName?: string): void { return EnvironmentLifecycle.clearPlatformInitialized(envName); }\n static getDatabaseChoice(envName?: string): PlatformDatabaseChoice { return EnvironmentLifecycle.getDatabaseChoice(envName); }\n static getDatabaseEngine(envName?: string): import('@wildo-ai/platform-config-lib').DatabaseEngine { return EnvironmentLifecycle.getDatabaseEngine(envName); }\n static setDatabaseChoice(database: PlatformDatabaseChoice, envName?: string): void { EnvironmentLifecycle.setDatabaseChoice(database, envName); }\n /** @see EnvironmentLifecycle.needsLocalPostgreSQL — the union rule; NOT `getDatabaseEngine() === POSTGRESQL`. */\n static needsLocalPostgreSQL(env: { name: string; backingServices?: BackingServicesEnvConfig }): boolean { return EnvironmentLifecycle.needsLocalPostgreSQL(env); }\n /** @see EnvironmentLifecycle.needsLocalMongoDB — the union rule (mirror of needsLocalPostgreSQL). */\n static needsLocalMongoDB(env: { name: string; backingServices?: BackingServicesEnvConfig }): boolean { return EnvironmentLifecycle.needsLocalMongoDB(env); }\n /** @see EnvironmentLifecycle.selfHostsBackingService — the TOTAL per-kind self-deploy rule both lanes gate on. */\n static selfHostsBackingService(env: { name: string; backingServices?: BackingServicesEnvConfig; serviceProfile?: EnvironmentServiceProfile }, kind: BackingServiceKind): boolean { return EnvironmentLifecycle.selfHostsBackingService(env, kind); }\n /** @see EnvironmentLifecycle.servesBackingServiceOffCluster — a USED kind served from outside the deployment (#3511). */\n static servesBackingServiceOffCluster(env: { name: string; backingServices?: BackingServicesEnvConfig; serviceProfile?: EnvironmentServiceProfile }, kind: BackingServiceKind): boolean { return EnvironmentLifecycle.servesBackingServiceOffCluster(env, kind); }\n static getRequiredPlatformServices(): PlatformWildoServices[] { return EnvironmentLifecycle.getRequiredPlatformServices(); }\n static getRuntime(envName?: string): WildoDeploymentRuntime { return EnvironmentLifecycle.getRuntime(envName); }\n static detectOS(): PlatformEnvOperatingSystem { return EnvironmentLifecycle.detectOS(); }\n\n // --- Paths delegates ------------------------------------------------------\n\n static getSecretsPath(envName?: string): string { return EnvironmentPaths.getSecretsPath(envName); }\n static getConfigPath(envName?: string): string { return EnvironmentPaths.getConfigPath(envName); }\n static getInfraPath(envName?: string): string { return EnvironmentPaths.getInfraPath(envName); }\n static setPaths(paths: { secretsPath?: string; configPath?: string; infraPath?: string }, envName?: string): void { EnvironmentPaths.setPaths(paths, envName); }\n static resolveSecretsDir(envName?: string): string { return EnvironmentPaths.resolveSecretsDir(envName); }\n static resolveConfigDir(envName?: string): string { return EnvironmentPaths.resolveConfigDir(envName); }\n static resolveInfraDir(envName?: string): string { return EnvironmentPaths.resolveInfraDir(envName); }\n static resolveDockerComposeDir(envName?: string): string { return EnvironmentPaths.resolveDockerComposeDir(envName); }\n static detectSiblingSecretsRepo(frameworkPath: string): string | null { return EnvironmentPaths.detectSiblingSecretsRepo(frameworkPath); }\n}\n"]}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { spawn, spawnSync } from 'child_process';
|
|
1
2
|
/** OCI annotation keys (image-spec `annotations.md`, dead-plan-citation: the OCI spec's own file), used here as build labels. */
|
|
2
3
|
export declare const FRAMEWORK_IMAGE_REVISION_LABEL = "org.opencontainers.image.revision";
|
|
3
4
|
export declare const FRAMEWORK_IMAGE_CREATED_LABEL = "org.opencontainers.image.created";
|
|
@@ -16,6 +17,49 @@ export declare const FRAMEWORK_IMAGE_SOURCE_LABEL = "org.opencontainers.image.so
|
|
|
16
17
|
* `imagetools create` carries them along when an alias is repointed at the index.
|
|
17
18
|
*/
|
|
18
19
|
export declare const FRAMEWORK_IMAGE_ATTESTATION_ARGS: readonly ["--provenance=mode=max", "--sbom=true"];
|
|
20
|
+
/**
|
|
21
|
+
* How a pushed framework image is signed (#3063). Chosen by the environment that runs the lane, never by the lane
|
|
22
|
+
* itself: keyless signing needs a workload identity (the release job's GitHub OIDC token), which a developer machine
|
|
23
|
+
* running the break-glass `wildo fwk release` does not have.
|
|
24
|
+
*/
|
|
25
|
+
export declare enum FrameworkImageSigning {
|
|
26
|
+
/**
|
|
27
|
+
* `cosign sign --yes <repository>@<digest>`: a short-lived Fulcio certificate bound to the release workflow's identity,
|
|
28
|
+
* the signature recorded in the Rekor transparency log and stored beside the image index in the registry, then
|
|
29
|
+
* `cosign verify` against that identity. Signs the DIGEST of the index buildx pushed, never a tag, so what is signed is
|
|
30
|
+
* exactly what was built. An alias (`latest`) is covered only while it names that same index: `imagetools create` from
|
|
31
|
+
* one index source keeps the index as it is, so its digest is the signed one.
|
|
32
|
+
*
|
|
33
|
+
* The certificate puts the repository, the workflow, its ref, the commit and the run in the public Rekor log for good.
|
|
34
|
+
* The image's own OCI labels already publish the source URL and the revision.
|
|
35
|
+
*/
|
|
36
|
+
COSIGN_KEYLESS = "cosign_keyless"
|
|
37
|
+
}
|
|
38
|
+
/** The environment variable a release environment sets to a {@link FrameworkImageSigning} member. Unset: no signing. */
|
|
39
|
+
export declare const FRAMEWORK_IMAGE_SIGNING_ENV = "WILDO_FRAMEWORK_IMAGE_SIGNING";
|
|
40
|
+
/** The OIDC issuer of a GitHub Actions workload identity: the issuer of every keyless certificate the release signs with. */
|
|
41
|
+
export declare const GITHUB_ACTIONS_OIDC_ISSUER = "https://token.actions.githubusercontent.com";
|
|
42
|
+
/**
|
|
43
|
+
* The identity a keyless signature made in this job carries, as `cosign verify --certificate-identity` takes it:
|
|
44
|
+
* `https://github.com/<owner>/<repo>/<workflow path>@<ref>`, from `GITHUB_WORKFLOW_REF`. Undefined outside Actions.
|
|
45
|
+
*/
|
|
46
|
+
export declare function githubWorkflowSigningIdentityOf(env?: NodeJS.ProcessEnv): string | undefined;
|
|
47
|
+
/** What became of one image's signature. */
|
|
48
|
+
export declare enum FrameworkImageSignatureOutcome {
|
|
49
|
+
/** Signed by digest. */
|
|
50
|
+
SIGNED = "signed",
|
|
51
|
+
/** The environment asked for no signing (a developer machine running the break-glass release). */
|
|
52
|
+
NOT_REQUESTED = "not_requested",
|
|
53
|
+
/**
|
|
54
|
+
* Asked for and not proven: no workload identity to sign as (`GITHUB_WORKFLOW_REF` unset), the pushed digest unreadable,
|
|
55
|
+
* cosign absent or refusing to sign, or a signature made that `cosign verify` did not confirm. The image is already public, so
|
|
56
|
+
* the release does not stop on it (a consumer's `cosign verify` reports the missing signature, a false claim is not
|
|
57
|
+
* made); the lane reports it, and the image is signed by hand with the command named in `reason`.
|
|
58
|
+
*/
|
|
59
|
+
FAILED = "failed"
|
|
60
|
+
}
|
|
61
|
+
/** The signing the environment asks for, or undefined. An unknown value is refused, never read as "no signing". */
|
|
62
|
+
export declare function frameworkImageSigningOf(env?: NodeJS.ProcessEnv): FrameworkImageSigning | undefined;
|
|
19
63
|
/**
|
|
20
64
|
* The git pathspecs covering what a Docker build SENDS from its context, derived from the ignore file
|
|
21
65
|
* the build itself obeys: `<Dockerfile>.dockerignore` when present (BuildKit prefers it), else the
|
|
@@ -61,7 +105,16 @@ export interface FrameworkDockerPublishOptions {
|
|
|
61
105
|
}
|
|
62
106
|
export interface FrameworkDockerPublishTargetResult {
|
|
63
107
|
imageName: string;
|
|
108
|
+
/** `<registry host>/<namespace>/<image>`, with no tag: what a digest reference is written against. */
|
|
109
|
+
imageRepository: string;
|
|
64
110
|
imageRef: string;
|
|
111
|
+
/** The image index digest the push wrote (`containerimage.digest` in buildx's metadata file), once pushed. */
|
|
112
|
+
digest?: string;
|
|
113
|
+
/** What became of the image's signature, once pushed (#3063). */
|
|
114
|
+
signature?: {
|
|
115
|
+
outcome: FrameworkImageSignatureOutcome;
|
|
116
|
+
reason?: string;
|
|
117
|
+
};
|
|
65
118
|
aliasImageRefs: string[];
|
|
66
119
|
buildContextPath: string;
|
|
67
120
|
dockerfilePath: string;
|
|
@@ -93,8 +146,67 @@ export interface FrameworkDockerPublishResult {
|
|
|
93
146
|
* same command moves to a CI matrix with native runners, and this list does not change.
|
|
94
147
|
*/
|
|
95
148
|
export declare const FRAMEWORK_DOCKER_IMAGE_PLATFORMS: readonly ["linux/amd64", "linux/arm64"];
|
|
149
|
+
/**
|
|
150
|
+
* How long one image build may run, and how many times it is tried (#3063, #3963).
|
|
151
|
+
*
|
|
152
|
+
* The arm64 half is built under QEMU, and QEMU can crash the emulated Node process (`qemu: uncaught target
|
|
153
|
+
* signal 4 (Illegal instruction)`) with nothing in the build noticing: the 1.1.13 release (framework-release
|
|
154
|
+
* run 43566115901, 2026-11-14) crashed 103 s into the arm64 `pnpm install`, printed nothing for two hours and
|
|
155
|
+
* was cancelled by GitHub's three-hour job limit, with the version tagged and nothing published. The crash is
|
|
156
|
+
* intermittent (same base image digest, same QEMU), and FREQUENT: the 1.1.14 release (run 43853716196,
|
|
157
|
+
* 2026-11-16) crashed on both of its two attempts, so 3 of the 4 arm64 attempts then recorded crashed.
|
|
158
|
+
*
|
|
159
|
+
* So an attempt ends the moment QEMU reports the crash (`QEMU_CRASH_PATTERN`) and is tried again, which costs
|
|
160
|
+
* about two minutes rather than the whole bound. The bound stays for a build that hangs WITHOUT that line, and
|
|
161
|
+
* at most `FRAMEWORK_DOCKER_IMAGE_BUILD_TIMEOUTS` attempts may run it out: the worst case is the two silent
|
|
162
|
+
* 50-minute attempts the lane already allowed, which fit inside the release job's limit with the rest of the
|
|
163
|
+
* lane. A whole build (both platforms, attestations, push) took 8 min 14 s for 1.1.12.
|
|
164
|
+
*
|
|
165
|
+
* A retry cannot release half an image: `buildx build --push` writes the tag only after every platform has
|
|
166
|
+
* built, and the tag is the release's own, which nothing names until the npm step that follows.
|
|
167
|
+
*/
|
|
168
|
+
export declare const FRAMEWORK_DOCKER_IMAGE_BUILD_TIMEOUT_MS: number;
|
|
169
|
+
export declare const FRAMEWORK_DOCKER_IMAGE_BUILD_ATTEMPTS = 4;
|
|
170
|
+
export declare const FRAMEWORK_DOCKER_IMAGE_BUILD_TIMEOUTS = 2;
|
|
171
|
+
/**
|
|
172
|
+
* What QEMU prints when an emulated process dies of a signal nothing handled. A process that probes a CPU
|
|
173
|
+
* feature by catching SIGILL (OpenSSL does) never produces it, because the signal is caught; this line means
|
|
174
|
+
* an emulated process is DEAD, and in every recorded instance the build then hung without another word. It
|
|
175
|
+
* appears in none of the successful release logs read (#3963), so ending the attempt on it cannot end a build
|
|
176
|
+
* that would have finished.
|
|
177
|
+
*/
|
|
178
|
+
export declare const QEMU_CRASH_PATTERN: RegExp;
|
|
179
|
+
/**
|
|
180
|
+
* How one image build attempt ended (#3963). Only `SUCCEEDED` ends the build; `TIMED_OUT` counts against
|
|
181
|
+
* `FRAMEWORK_DOCKER_IMAGE_BUILD_TIMEOUTS`; `SPAWN_FAILED` (docker itself could not start) is not retried, since
|
|
182
|
+
* a second start would fail the same way; the rest are tried again.
|
|
183
|
+
*/
|
|
184
|
+
export declare enum DockerBuildAttemptOutcome {
|
|
185
|
+
/** buildx exited 0: every platform built and the index was pushed. */
|
|
186
|
+
SUCCEEDED = "succeeded",
|
|
187
|
+
/** The attempt ran out of `FRAMEWORK_DOCKER_IMAGE_BUILD_TIMEOUT_MS` and was ended. */
|
|
188
|
+
TIMED_OUT = "timed-out",
|
|
189
|
+
/** QEMU printed `QEMU_CRASH_PATTERN`, and the attempt was ended without waiting for the bound. */
|
|
190
|
+
EMULATOR_CRASHED = "emulator-crashed",
|
|
191
|
+
/** The `docker` process could not be started at all. */
|
|
192
|
+
SPAWN_FAILED = "spawn-failed",
|
|
193
|
+
/** buildx exited non-zero, or was ended by a signal this lane did not send. */
|
|
194
|
+
FAILED = "failed"
|
|
195
|
+
}
|
|
96
196
|
export declare class FrameworkDockerPublishService {
|
|
97
197
|
static publishImages(options?: FrameworkDockerPublishOptions): Promise<FrameworkDockerPublishResult>;
|
|
198
|
+
/** The image index digest buildx recorded in its metadata file, or undefined when it recorded none. */
|
|
199
|
+
static pushedDigestOf(metadataFile: string): string | undefined;
|
|
200
|
+
/**
|
|
201
|
+
* Sign one pushed image as the environment asks (#3063). Never throws: the image is already public, so a signature
|
|
202
|
+
* that cannot be made is reported (FAILED, with the command to run by hand) rather than stopping the release after it
|
|
203
|
+
* published, and a consumer's `cosign verify` sees it missing rather than being told anything false.
|
|
204
|
+
*
|
|
205
|
+
* cosign reads the registry credentials `docker login` wrote (`loginWithFrameworkSecrets`), and in GitHub Actions takes
|
|
206
|
+
* the job's OIDC token on its own (`id-token: write`). SIGNED means the signature then VERIFIED against this job's
|
|
207
|
+
* workflow identity (`cosign verify`), so the outcome is the registry's answer rather than the signing command's exit.
|
|
208
|
+
*/
|
|
209
|
+
static signImage(target: Pick<FrameworkDockerPublishTargetResult, 'imageRepository' | 'digest'>, signing: FrameworkImageSigning | undefined, spawn?: typeof spawnSync, env?: NodeJS.ProcessEnv): NonNullable<FrameworkDockerPublishTargetResult['signature']>;
|
|
98
210
|
/**
|
|
99
211
|
* Log the Docker CLI in to the framework's registry with `docker.publishToken` from the framework secrets file.
|
|
100
212
|
*
|
|
@@ -147,6 +259,23 @@ export declare class FrameworkDockerPublishService {
|
|
|
147
259
|
* the wrong registry and the later push fails as unauthenticated.
|
|
148
260
|
*/
|
|
149
261
|
private static runDockerLogin;
|
|
262
|
+
/**
|
|
263
|
+
* Run one image build, bounded by `FRAMEWORK_DOCKER_IMAGE_BUILD_TIMEOUT_MS` and tried up to
|
|
264
|
+
* `FRAMEWORK_DOCKER_IMAGE_BUILD_ATTEMPTS` times (#3063, #3963).
|
|
265
|
+
*
|
|
266
|
+
* The output is streamed through, unchanged, and watched: the moment QEMU reports a crashed emulated process
|
|
267
|
+
* (`QEMU_CRASH_PATTERN`) the attempt is ended and tried again, instead of waiting out the bound in silence. A
|
|
268
|
+
* build that runs out of time is ended the same way; at most `FRAMEWORK_DOCKER_IMAGE_BUILD_TIMEOUTS` attempts
|
|
269
|
+
* may, so the worst case stays two full bounds. Ending an attempt sends SIGTERM to the buildx client, and
|
|
270
|
+
* BuildKit cancels the build when its session closes. Every failure says which attempt it was and why.
|
|
271
|
+
*/
|
|
272
|
+
static runDockerBuild(label: string, args: string[], spawnProcess?: typeof spawn, log?: (message: string) => void, timeoutMs?: number): Promise<void>;
|
|
273
|
+
/**
|
|
274
|
+
* One build attempt: docker's output goes to this process's own stdout/stderr as it arrives (a release log
|
|
275
|
+
* reads exactly as before), and each line is checked against `QEMU_CRASH_PATTERN`. Lines are reassembled
|
|
276
|
+
* across chunks so a crash line split by the pipe is still seen.
|
|
277
|
+
*/
|
|
278
|
+
private static runOneDockerBuild;
|
|
150
279
|
private static runDockerCommand;
|
|
151
280
|
}
|
|
152
281
|
//# sourceMappingURL=framework-docker-publish.service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"framework-docker-publish.service.d.ts","sourceRoot":"","sources":["../../../../src/services/framework/framework-docker-publish.service.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"framework-docker-publish.service.d.ts","sourceRoot":"","sources":["../../../../src/services/framework/framework-docker-publish.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAkBjD,iIAAiI;AACjI,eAAO,MAAM,8BAA8B,sCAAsC,CAAC;AAClF,eAAO,MAAM,6BAA6B,qCAAqC,CAAC;AAChF;;;GAGG;AACH,eAAO,MAAM,6BAA6B,qCAAqC,CAAC;AAChF,kGAAkG;AAClG,eAAO,MAAM,4BAA4B,oCAAoC,CAAC;AAE9E;;;;;;GAMG;AACH,eAAO,MAAM,gCAAgC,mDAAoD,CAAC;AAElG;;;;GAIG;AACH,oBAAY,qBAAqB;IAC/B;;;;;;;;;OASG;IACH,cAAc,mBAAmB;CA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