@wildo-ai/wildo-cli 1.1.12 → 1.1.14
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 +22 -1
- package/dist/src/commands/config/sync.command.js.map +1 -1
- package/dist/src/commands/context/journey.command.d.ts.map +1 -1
- package/dist/src/commands/context/journey.command.js +8 -0
- package/dist/src/commands/context/journey.command.js.map +1 -1
- package/dist/src/commands/creation/drive.command.d.ts.map +1 -1
- package/dist/src/commands/creation/drive.command.js +2 -0
- package/dist/src/commands/creation/drive.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 +64 -2
- 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/init.command.d.ts +14 -0
- package/dist/src/commands/init.command.d.ts.map +1 -1
- package/dist/src/commands/init.command.js +29 -3
- package/dist/src/commands/init.command.js.map +1 -1
- package/dist/src/commands/local/dev.command.d.ts +68 -0
- package/dist/src/commands/local/dev.command.d.ts.map +1 -1
- package/dist/src/commands/local/dev.command.js +216 -8
- package/dist/src/commands/local/dev.command.js.map +1 -1
- package/dist/src/commands/local/doctor.command.d.ts +22 -9
- package/dist/src/commands/local/doctor.command.d.ts.map +1 -1
- package/dist/src/commands/local/doctor.command.js +45 -42
- package/dist/src/commands/local/doctor.command.js.map +1 -1
- package/dist/src/commands/providers/connect.command.d.ts.map +1 -1
- package/dist/src/commands/providers/connect.command.js +11 -1
- package/dist/src/commands/providers/connect.command.js.map +1 -1
- 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/currency.command.d.ts +13 -0
- package/dist/src/commands/seal/currency.command.d.ts.map +1 -0
- package/dist/src/commands/seal/currency.command.js +52 -0
- package/dist/src/commands/seal/currency.command.js.map +1 -0
- package/dist/src/commands/seal/seal-admin-door.utils.d.ts.map +1 -1
- package/dist/src/commands/seal/seal-admin-door.utils.js +2 -0
- package/dist/src/commands/seal/seal-admin-door.utils.js.map +1 -1
- package/dist/src/commands/seal/verify.command.d.ts +23 -0
- package/dist/src/commands/seal/verify.command.d.ts.map +1 -1
- package/dist/src/commands/seal/verify.command.js +88 -3
- package/dist/src/commands/seal/verify.command.js.map +1 -1
- package/dist/src/services/application/content-guardrail-classifier.service.d.ts +19 -0
- package/dist/src/services/application/content-guardrail-classifier.service.d.ts.map +1 -1
- package/dist/src/services/application/content-guardrail-classifier.service.js +75 -11
- package/dist/src/services/application/content-guardrail-classifier.service.js.map +1 -1
- package/dist/src/services/application/local-provider-doubles.service.d.ts +98 -0
- package/dist/src/services/application/local-provider-doubles.service.d.ts.map +1 -0
- package/dist/src/services/application/local-provider-doubles.service.js +214 -0
- package/dist/src/services/application/local-provider-doubles.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 +26 -1
- package/dist/src/services/application/provider-runtime-sync.service.js.map +1 -1
- package/dist/src/services/application/saas-skeleton.service.d.ts.map +1 -1
- package/dist/src/services/application/saas-skeleton.service.js +24 -2
- package/dist/src/services/application/saas-skeleton.service.js.map +1 -1
- package/dist/src/services/application/system-of-record-simulators.service.d.ts +21 -2
- package/dist/src/services/application/system-of-record-simulators.service.d.ts.map +1 -1
- package/dist/src/services/application/system-of-record-simulators.service.js +21 -12
- package/dist/src/services/application/system-of-record-simulators.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 +32 -2
- package/dist/src/services/companion/creation-drive.service.d.ts.map +1 -1
- package/dist/src/services/companion/creation-drive.service.js +66 -6
- package/dist/src/services/companion/creation-drive.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/credentials.schemas.d.ts +6 -0
- package/dist/src/services/credentials/credentials.schemas.d.ts.map +1 -1
- package/dist/src/services/credentials/credentials.schemas.js +7 -1
- package/dist/src/services/credentials/credentials.schemas.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 +11 -3
- 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/data-services/data-services.schemas.d.ts +9 -0
- package/dist/src/services/data-services/data-services.schemas.d.ts.map +1 -1
- package/dist/src/services/data-services/data-services.schemas.js +9 -0
- package/dist/src/services/data-services/data-services.schemas.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/docker/docker-compose-generator.service.d.ts.map +1 -1
- package/dist/src/services/deployment/docker/docker-compose-generator.service.js +15 -4
- package/dist/src/services/deployment/docker/docker-compose-generator.service.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.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.js +3 -1
- package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.js.map +1 -1
- package/dist/src/services/deployment/local-dev-session-lease.service.d.ts.map +1 -1
- package/dist/src/services/deployment/local-dev-session-lease.service.js +22 -1
- package/dist/src/services/deployment/local-dev-session-lease.service.js.map +1 -1
- 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.map +1 -1
- package/dist/src/services/environment/authored-infra-config.utils.js +1 -0
- package/dist/src/services/environment/authored-infra-config.utils.js.map +1 -1
- package/dist/src/services/environment/authored-infra-member-authority.d.ts.map +1 -1
- package/dist/src/services/environment/authored-infra-member-authority.js +5 -0
- package/dist/src/services/environment/authored-infra-member-authority.js.map +1 -1
- package/dist/src/services/environment/env-configuration-generator.service.d.ts.map +1 -1
- package/dist/src/services/environment/env-configuration-generator.service.js +14 -6
- package/dist/src/services/environment/env-configuration-generator.service.js.map +1 -1
- package/dist/src/services/environment/env-vars-builder.service.d.ts +6 -0
- package/dist/src/services/environment/env-vars-builder.service.d.ts.map +1 -1
- package/dist/src/services/environment/env-vars-builder.service.js +24 -1
- package/dist/src/services/environment/env-vars-builder.service.js.map +1 -1
- package/dist/src/services/environment/environment-hydration.utils.d.ts.map +1 -1
- package/dist/src/services/environment/environment-hydration.utils.js +1 -0
- package/dist/src/services/environment/environment-hydration.utils.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.schemas.d.ts +7 -1
- package/dist/src/services/environment/environment.schemas.d.ts.map +1 -1
- package/dist/src/services/environment/environment.schemas.js.map +1 -1
- package/dist/src/services/environment/runtime-bootstrap.service.d.ts +2 -0
- package/dist/src/services/environment/runtime-bootstrap.service.d.ts.map +1 -1
- package/dist/src/services/environment/runtime-bootstrap.service.js +4 -0
- package/dist/src/services/environment/runtime-bootstrap.service.js.map +1 -1
- package/dist/src/services/framework/framework-docker-publish.service.d.ts +102 -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 +204 -25
- 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-connect.service.d.ts +57 -1
- package/dist/src/services/registry/provider-connect.service.d.ts.map +1 -1
- package/dist/src/services/registry/provider-connect.service.js +63 -2
- package/dist/src/services/registry/provider-connect.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/tsconfig.build.tsbuildinfo +1 -1
- package/framework-root-package.json +3 -3
- package/package.json +22 -22
- package/scripts/app-dependency-alignment/propagated-engine-overrides.json +2 -2
- package/templates/infra/docker-compose/docker-compose.wildo-platform.yml.hbs +17 -2
- 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/backend-api/Dockerfile +5 -2
- package/templates/saas/skeleton/frontend/Dockerfile +4 -1
- package/templates/saas/skeleton/frontend/vite-engine-dependency-prebundle.ts +10 -1
- package/templates/saas/skeleton/frontend/vite.config.ts.hbs +14 -3
- package/wildo-framework.info.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"local-dev-session-lease.service.js","sourceRoot":"","sources":["../../../../src/services/deployment/local-dev-session-lease.service.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,UAAU,EACV,SAAS,EACT,YAAY,EACZ,UAAU,EACV,MAAM,EACN,QAAQ,EACR,aAAa,GACd,MAAM,IAAI,CAAC;AACZ,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAEpC,MAAM,sCAAsC,GAAG,CAAC,CAAC;AACjD,MAAM,6BAA6B,GAAG,KAAK,CAAC;AAC5C,MAAM,sBAAsB,GAAG,OAAO,CAAC;AAmBvC,MAAM,OAAO,iCAAkC,SAAQ,KAAK;IAC9B;IAA5B,YAA4B,SAAiB,EAAE,KAAuC;QACpF,KAAK,CACH,KAAK;YACH,CAAC,CAAC,gDAAgD,KAAK,CAAC,GAAG,cAAc,KAAK,CAAC,UAAU,IAAI;YAC7F,CAAC,CAAC,gFAAgF,CACrF,CAAC;QALwB,cAAS,GAAT,SAAS,CAAQ;QAM3C,IAAI,CAAC,IAAI,GAAG,mCAAmC,CAAC;IAClD,CAAC;CACF;AAED;;;;;;;GAOG;AACH,MAAM,OAAO,2BAA2B;IACtC,MAAM,CAAC,OAAO,CAAC,KAOd;QACC,MAAM,UAAU,GAAG,GAAG,OAAO,CAAC,GAAG,IAAI,IAAI,CAAC,GAAG,EAAE,IAAI,UAAU,EAAE,EAAE,CAAC;QAClE,MAAM,UAAU,GAAG,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;QAC5C,MAAM,SAAS,GAAG;YAChB,aAAa,EAAE,sCA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K,CAAC,OAAO,CAAC,KAAK,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC;QACjE,OAAO,EAAE,MAAM,EAAE,oBAAoB,CAAC,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;IAC/D,CAAC;IAED,MAAM,GAAG,GAAG,OAAO,KAAK,CAAC,GAAG,SAAS,KAAK,CAAC,OAAO,EAAE,CAAC;IACrD,IAAI,KAAK,CAAC,wBAAwB,KAAK,IAAI,EAAE,CAAC;QAC5C,OAAO;YACL,MAAM,EAAE,oBAAoB,CAAC,OAAO;YACpC,KAAK;YACL,OAAO,EAAE,iFAAiF,GAAG,yCAAyC;kBAClI,sFAAsF;SAC3F,CAAC;IACJ,CAAC;IAED,IAAI,KAAK,CAAC,MAAM,KAAK,oBAAoB,CAAC,OAAO,EAAE,CAAC;QAClD,OAAO;YACL,MAAM,EAAE,oBAAoB,CAAC,MAAM;YACnC,KAAK;YACL,OAAO,EAAE,8EAA8E,GAAG,KAAK;kBAC3F,2FAA2F;SAChG,CAAC;IACJ,CAAC;IAED,IAAI,CAAC,KAAK,CAAC,YAAY,EAAE,CAAC;QACxB,OAAO;YACL,MAAM,EAAE,oBAAoB,CAAC,MAAM;YACnC,KAAK;YACL,OAAO,EAAE,8EAA8E,GAAG,aAAa;kBACnG,sGAAsG;kBACtG,qCAAqC;SAC1C,CAAC;IACJ,CAAC;IAED,OAAO;QACL,MAAM,EAAE,oBAAoB,CAAC,MAAM;QACnC,KAAK;QACL,OAAO,EAAE,iDAAiD,KAAK,CAAC,GAAG,KAAK,KAAK,CAAC,OAAO,wCAAwC;KAC9H,CAAC;AACJ,CAAC","sourcesContent":["import {\n chmodSync,\n existsSync,\n mkdirSync,\n readFileSync,\n renameSync,\n rmSync,\n statSync,\n writeFileSync,\n} from 'fs';\nimport { dirname, resolve } from 'path';\nimport { randomUUID } from 'crypto';\n\nconst LOCAL_DEV_SESSION_LEASE_SCHEMA_VERSION = 1;\nconst DEFAULT_HEARTBEAT_INTERVAL_MS = 5_000;\nconst DEFAULT_STALE_AFTER_MS = 120_000;\n\ninterface LocalDevSessionLeaseOwner {\n readonly schemaVersion: number;\n readonly instanceId: string;\n readonly pid: number;\n readonly appRoot: string;\n readonly frameworkRoot: string | null;\n readonly ownsPlatform: boolean;\n readonly acquiredAt: string;\n readonly heartbeatAt: string;\n}\n\nexport interface LocalDevSessionLease {\n readonly instanceId: string;\n readonly leasePaths: readonly string[];\n release(): Promise<void>;\n}\n\nexport class LocalDevSessionLeaseConflictError extends Error {\n constructor(public readonly leasePath: string, owner: LocalDevSessionLeaseOwner | null) {\n super(\n owner\n ? `Another wildo local dev owner is active (pid ${owner.pid}, acquired ${owner.acquiredAt}).`\n : 'Another wildo local dev owner is active and its lease metadata is unavailable.',\n );\n this.name = 'LocalDevSessionLeaseConflictError';\n }\n}\n\n/**\n * Atomic ownership boundary for `wildo local dev`.\n *\n * Every invocation owns its app lease. An invocation that starts the shared\n * platform additionally owns the framework lease, preventing a second app from\n * cleaning or replacing that shared generation. Lease directories are acquired\n * in lexical path order, so multi-root acquisition cannot deadlock.\n */\nexport class LocalDevSessionLeaseService {\n static acquire(input: {\n saasRoot: string;\n frameworkRoot: string | null;\n ownsPlatform: boolean;\n heartbeatIntervalMs?: number;\n staleAfterMs?: number;\n onCompromised?: (error: Error) => void;\n }): LocalDevSessionLease {\n const instanceId = `${process.pid}-${Date.now()}-${randomUUID()}`;\n const acquiredAt = new Date().toISOString();\n const ownerBase = {\n schemaVersion: LOCAL_DEV_SESSION_LEASE_SCHEMA_VERSION,\n instanceId,\n pid: process.pid,\n appRoot: resolve(input.saasRoot),\n frameworkRoot: input.frameworkRoot ? resolve(input.frameworkRoot) : null,\n ownsPlatform: input.ownsPlatform,\n acquiredAt,\n };\n const leasePaths = resolveLocalDevSessionLeasePaths(input).sort();\n const acquiredPaths: string[] = [];\n const staleAfterMs = input.staleAfterMs ?? DEFAULT_STALE_AFTER_MS;\n\n try {\n for (const leasePath of leasePaths) {\n acquireLeasePath(leasePath, ownerBase, staleAfterMs);\n acquiredPaths.push(leasePath);\n }\n } catch (error) {\n for (const leasePath of acquiredPaths.reverse()) {\n releaseLeasePath(leasePath, instanceId);\n }\n throw error;\n }\n\n let compromised = false;\n const publishHeartbeat = () => {\n if (compromised) return;\n try {\n for (const leasePath of leasePaths) {\n const currentOwner = readLeaseOwner(leasePath);\n if (!currentOwner || currentOwner.instanceId !== instanceId) {\n throw new Error(`Local-dev lease ownership was replaced at '${leasePath}'.`);\n }\n writeLeaseOwner(leasePath, { ...ownerBase, heartbeatAt: new Date().toISOString() });\n }\n } catch (error) {\n compromised = true;\n clearInterval(heartbeat);\n try {\n input.onCompromised?.(error instanceof Error ? error : new Error(String(error)));\n } catch {\n // The timer boundary must never surface an uncaught exception. The\n // lease remains compromised and heartbeats stay stopped even if the\n // coordinator callback itself cannot report the failure.\n }\n }\n };\n const heartbeat = setInterval(publishHeartbeat, input.heartbeatIntervalMs ?? DEFAULT_HEARTBEAT_INTERVAL_MS);\n heartbeat.unref();\n let released = false;\n\n return {\n instanceId,\n leasePaths,\n async release() {\n if (released) return;\n released = true;\n clearInterval(heartbeat);\n for (const leasePath of [...leasePaths].reverse()) {\n releaseLeasePath(leasePath, instanceId);\n }\n },\n };\n }\n}\n\n/** The live owner of the shared platform, as read from the framework-root platform lease. */\nexport interface LiveLocalDevPlatformOwner {\n readonly pid: number;\n readonly appRoot: string;\n readonly acquiredAt: string;\n readonly heartbeatAt: string;\n}\n\n/**\n * Who currently OWNS the shared local platform, or `null` when nobody live does.\n *\n * This is the predicate every lane that would CONVERGE shared substrate must consult before writing\n * (issue #50): the platform reconciliation in `local init`, the backing-container compose-up in\n * `local dev`, and the platform-service env regeneration in `config sync` each destroyed a RUNNING\n * stack on 2026-08-25 because they asserted platform ownership without asking. The lease is\n * heartbeated by the owning `wildo local dev` session every few seconds; an owner whose heartbeat is\n * older than `staleAfterMs` is treated as dead (same staleness window the acquisition path uses), so\n * a crashed owner never wedges initialization.\n */\nexport function readLiveLocalDevPlatformOwner(\n frameworkRoot: string,\n staleAfterMs: number = DEFAULT_STALE_AFTER_MS,\n): LiveLocalDevPlatformOwner | null {\n const leasePath = resolve(frameworkRoot, '.wildo-runtime-signals', 'ownership', 'local-dev-platform.lock');\n if (!existsSync(leasePath)) return null;\n const owner = readLeaseOwner(leasePath);\n if (!owner) return null;\n const heartbeatAtMs = Date.parse(owner.heartbeatAt);\n if (!Number.isFinite(heartbeatAtMs) || Date.now() - heartbeatAtMs >= staleAfterMs) return null;\n return { pid: owner.pid, appRoot: owner.appRoot, acquiredAt: owner.acquiredAt, heartbeatAt: owner.heartbeatAt };\n}\n\nexport function resolveLocalDevSessionLeasePaths(input: {\n saasRoot: string;\n frameworkRoot: string | null;\n ownsPlatform: boolean;\n}): string[] {\n const paths = [resolve(input.saasRoot, '.wildo-saas', 'runtime-signals', 'ownership', 'local-dev.lock')];\n if (input.ownsPlatform) {\n if (!input.frameworkRoot) {\n throw new Error('A platform-owning local-dev session requires a framework root.');\n }\n paths.push(resolve(input.frameworkRoot, '.wildo-runtime-signals', 'ownership', 'local-dev-platform.lock'));\n }\n return paths;\n}\n\nfunction acquireLeasePath(\n leasePath: string,\n ownerBase: Omit<LocalDevSessionLeaseOwner, 'heartbeatAt'>,\n staleAfterMs: number,\n): void {\n mkdirSync(dirname(leasePath), { recursive: true, mode: 0o700 });\n chmodSync(dirname(leasePath), 0o700);\n\n for (let attempt = 0; attempt < 3; attempt += 1) {\n try {\n mkdirSync(leasePath, { mode: 0o700 });\n try {\n chmodSync(leasePath, 0o700);\n writeLeaseOwner(leasePath, { ...ownerBase, heartbeatAt: new Date().toISOString() });\n return;\n } catch (error) {\n rmSync(leasePath, { recursive: true, force: true });\n throw error;\n }\n } catch (error) {\n if ((error as NodeJS.ErrnoException).code !== 'EEXIST') throw error;\n }\n\n const owner = readLeaseOwner(leasePath);\n let ageMs: number;\n try {\n ageMs = Date.now() - statSync(leasePath).mtimeMs;\n } catch (error) {\n // A previous owner may release between our EEXIST and metadata read.\n // Retry the atomic mkdir instead of turning that normal hand-off race\n // into a false startup failure.\n if ((error as NodeJS.ErrnoException).code === 'ENOENT') continue;\n throw error;\n }\n const ownerLiveness = owner ? probeProcessLiveness(owner.pid) : 'unknown';\n // A delayed heartbeat is not proof that a live owner is abandoned. The\n // CLI can legitimately block in Docker/platform startup longer than the\n // stale window, so PID liveness always wins. Age-based recovery is only\n // permitted when metadata is unavailable; a confirmed-dead owner can be\n // reclaimed immediately.\n if ((owner && ownerLiveness !== 'dead') || (!owner && ageMs <= staleAfterMs)) {\n throw new LocalDevSessionLeaseConflictError(leasePath, owner);\n }\n\n const stalePath = `${leasePath}.stale-${process.pid}-${randomUUID()}`;\n try {\n renameSync(leasePath, stalePath);\n rmSync(stalePath, { recursive: true, force: true });\n } catch (error) {\n if ((error as NodeJS.ErrnoException).code !== 'ENOENT') throw error;\n }\n }\n throw new LocalDevSessionLeaseConflictError(leasePath, readLeaseOwner(leasePath));\n}\n\nfunction writeLeaseOwner(leasePath: string, owner: LocalDevSessionLeaseOwner): void {\n const ownerPath = resolve(leasePath, 'owner.json');\n const temporaryPath = `${ownerPath}.tmp-${process.pid}-${randomUUID()}`;\n writeFileSync(temporaryPath, `${JSON.stringify(owner, null, 2)}\\n`, { encoding: 'utf-8', mode: 0o600 });\n renameSync(temporaryPath, ownerPath);\n chmodSync(ownerPath, 0o600);\n}\n\nfunction readLeaseOwner(leasePath: string): LocalDevSessionLeaseOwner | null {\n try {\n const owner = JSON.parse(readFileSync(resolve(leasePath, 'owner.json'), 'utf-8')) as LocalDevSessionLeaseOwner;\n if (\n owner?.schemaVersion !== LOCAL_DEV_SESSION_LEASE_SCHEMA_VERSION\n || typeof owner.instanceId !== 'string'\n || !Number.isInteger(owner.pid) || owner.pid <= 0\n || typeof owner.appRoot !== 'string'\n || (owner.frameworkRoot !== null && typeof owner.frameworkRoot !== 'string')\n || typeof owner.ownsPlatform !== 'boolean'\n || typeof owner.acquiredAt !== 'string'\n || typeof owner.heartbeatAt !== 'string'\n ) {\n return null;\n }\n return owner;\n } catch {\n return null;\n }\n}\n\nfunction releaseLeasePath(leasePath: string, instanceId: string): void {\n if (!existsSync(leasePath)) return;\n const owner = readLeaseOwner(leasePath);\n if (!owner || owner.instanceId !== instanceId) return;\n const retiredPath = `${leasePath}.retired-${process.pid}-${randomUUID()}`;\n try {\n renameSync(leasePath, retiredPath);\n rmSync(retiredPath, { recursive: true, force: true });\n } catch (error) {\n if ((error as NodeJS.ErrnoException).code !== 'ENOENT') throw error;\n }\n}\n\nfunction probeProcessLiveness(pid: number): 'alive' | 'dead' | 'unknown' {\n try {\n process.kill(pid, 0);\n return 'alive';\n } catch (error) {\n const code = (error as NodeJS.ErrnoException).code;\n if (code === 'EPERM') return 'alive';\n if (code === 'ESRCH') return 'dead';\n return 'unknown';\n }\n}\n\n/**\n * What a lane intends to do to the SHARED local platform. It is the only input that decides how a\n * foreign owner is treated, so a new lane declares its intent rather than re-deriving the policy.\n */\nexport enum SharedPlatformIntent {\n /**\n * Bring the shared containers up and leave them there — `local up`, `dev start`, the `local dev`\n * readiness converge. Harmless when nobody else is running, and a substrate swap when somebody is.\n */\n CONVERGE = 'converge',\n /**\n * Recreate, stop or destroy the shared containers — `local down`, `local reset` (and `local up\n * --rebuild`'s force-recreate until #2988 removed it). Never safe under a foreign owner at any running state.\n */\n DISRUPT = 'disrupt',\n}\n\n/** What a lane may do to the shared platform right now. */\nexport enum SharedPlatformAccess {\n /** Nobody else owns it. Proceed exactly as the lane would have without this check. */\n PROCEED = 'proceed',\n /** A foreign session owns it and its containers are up: use them, converge nothing. */\n ATTACH = 'attach',\n /** A foreign session owns it and this lane must not touch it. */\n REFUSE = 'refuse',\n}\n\nexport interface SharedPlatformAccessDecision {\n readonly access: SharedPlatformAccess;\n /** The owning session, when one is live and is a different app root. */\n readonly owner: LiveLocalDevPlatformOwner | null;\n /** Ready-to-print explanation for ATTACH and REFUSE. Absent for PROCEED. */\n readonly message?: string;\n}\n\n/**\n * Whether this lane may converge or disrupt the shared local platform right now.\n *\n * ## Why this is a function rather than a check each lane writes\n *\n * The platform stack is deliberately ONE-APP-AT-A-TIME: every application renders its compose under\n * the same project name with the same `wildo-*` container names and its OWN `local_data/` bind\n * mounts, and `--remove-orphans` is what stops a converge from leaving the previous app's extra\n * services running on the previous app's data (measured 2026-09-03 — a half-migrated stack with 18\n * cron jobs pointing at a vhost that existed only in the other app's broker state). So switching\n * applications re-homes the stack ON PURPOSE. What must not happen is re-homing it out from under a\n * session that is still using it.\n *\n * {@link readLiveLocalDevPlatformOwner} has answered that since issue #50, and its own docstring\n * named the three lanes that must consult it. **It was reached from three of the SEVEN lanes that\n * mutate the shared stack** — measured 2026-09-15 (#1126): `local up`, `local up --rebuild`,\n * `local down`, `local reset` and `dev start` all converged or tore down without asking. The\n * observed cost was a running `wildo local dev` losing `wildo-postgresql`, `wildo-clamav`,\n * `wildo-immudb` and `wildo-otel-collector` to another application's `wildo local up`, and then\n * failing to boot with an error naming neither the other application nor the deletion. `local\n * reset`'s `down -v` would have taken the volumes.\n *\n * That is `.claude/rules/invariant-call-site-enumeration.md`'s defect shape exactly — the invariant\n * applied at some of its sites — so the remedy is the one that rule prefers: ONE predicate every\n * lane declares its intent to, rather than the same condition hand-written six more times.\n *\n * @param infraRunning Whether the shared containers are currently up. Only consulted for\n * {@link SharedPlatformIntent.CONVERGE}: an owner whose containers are gone cannot be attached to,\n * and starting them from this app root is the substrate swap the check exists to prevent.\n * @param acknowledgedForeignOwner The operator has stated, on this invocation, that they intend to\n * take the shared platform from its current owner. The refusal is the DEFAULT and the door is\n * explicit, narrow and per-invocation — `design-philosophy.md`, \"immutability needs a paired\n * mutation path\". A lane that offers no such flag passes `false`.\n */\nexport function decideSharedPlatformAccess(input: {\n frameworkRoot: string | null;\n saasRoot: string;\n intent: SharedPlatformIntent;\n infraRunning: boolean;\n acknowledgedForeignOwner?: boolean;\n staleAfterMs?: number;\n}): SharedPlatformAccessDecision {\n const owner = input.frameworkRoot\n ? readLiveLocalDevPlatformOwner(input.frameworkRoot, input.staleAfterMs)\n : null;\n // An owner at THIS app root is this application's own session: converging its own substrate is\n // what it is for, and re-homing is not in question.\n if (!owner || resolve(owner.appRoot) === resolve(input.saasRoot)) {\n return { access: SharedPlatformAccess.PROCEED, owner: null };\n }\n\n const who = `pid ${owner.pid}, app ${owner.appRoot}`;\n if (input.acknowledgedForeignOwner === true) {\n return {\n access: SharedPlatformAccess.PROCEED,\n owner,\n message: `Taking the shared platform from the \\`wildo local dev\\` session that owns it (${who}), as acknowledged on this invocation. `\n + 'That session\\'s processes are now running against a substrate this app root defines.',\n };\n }\n\n if (input.intent === SharedPlatformIntent.DISRUPT) {\n return {\n access: SharedPlatformAccess.REFUSE,\n owner,\n message: `The shared local platform is owned by another \\`wildo local dev\\` session (${who}). `\n + 'Refusing to recreate or stop its containers from this app root — stop that session first.',\n };\n }\n\n if (!input.infraRunning) {\n return {\n access: SharedPlatformAccess.REFUSE,\n owner,\n message: `The shared local platform is owned by another \\`wildo local dev\\` session (${who}), but its `\n + 'infrastructure containers are not running. Refusing to start shared containers from this app root — '\n + 'start them from the owning session.',\n };\n }\n\n return {\n access: SharedPlatformAccess.ATTACH,\n owner,\n message: `Attaching to the shared platform owned by pid ${owner.pid} (${owner.appRoot}); infrastructure convergence skipped.`,\n };\n}\n"]}
|
|
1
|
+
{"version":3,"file":"local-dev-session-lease.service.js","sourceRoot":"","sources":["../../../../src/services/deployment/local-dev-session-lease.service.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,UAAU,EACV,SAAS,EACT,YAAY,EACZ,UAAU,EACV,MAAM,EACN,QAAQ,EACR,aAAa,GACd,MAAM,IAAI,CAAC;AACZ,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,IAAI,CAAC;AAE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AAC,KAAK,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC;QACjE,OAAO,EAAE,MAAM,EAAE,oBAAoB,CAAC,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;IAC/D,CAAC;IAED,MAAM,GAAG,GAAG,OAAO,KAAK,CAAC,GAAG,SAAS,KAAK,CAAC,OAAO,EAAE,CAAC;IACrD,IAAI,KAAK,CAAC,wBAAwB,KAAK,IAAI,EAAE,CAAC;QAC5C,OAAO;YACL,MAAM,EAAE,oBAAoB,CAAC,OAAO;YACpC,KAAK;YACL,OAAO,EAAE,iFAAiF,GAAG,yCAAyC;kBAClI,sFAAsF;SAC3F,CAAC;IACJ,CAAC;IAED,IAAI,KAAK,CAAC,MAAM,KAAK,oBAAoB,CAAC,OAAO,EAAE,CAAC;QAClD,OAAO;YACL,MAAM,EAAE,oBAAoB,CAAC,MAAM;YACnC,KAAK;YACL,OAAO,EAAE,8EAA8E,GAAG,KAAK;kBAC3F,2FAA2F;SAChG,CAAC;IACJ,CAAC;IAED,IAAI,CAAC,KAAK,CAAC,YAAY,EAAE,CAAC;QACxB,OAAO;YACL,MAAM,EAAE,oBAAoB,CAAC,MAAM;YACnC,KAAK;YACL,OAAO,EAAE,8EAA8E,GAAG,aAAa;kBACnG,sGAAsG;kBACtG,qCAAqC;SAC1C,CAAC;IACJ,CAAC;IAED,OAAO;QACL,MAAM,EAAE,oBAAoB,CAAC,MAAM;QACnC,KAAK;QACL,OAAO,EAAE,iDAAiD,KAAK,CAAC,GAAG,KAAK,KAAK,CAAC,OAAO,wCAAwC;KAC9H,CAAC;AACJ,CAAC","sourcesContent":["import {\n chmodSync,\n existsSync,\n mkdirSync,\n readFileSync,\n renameSync,\n rmSync,\n statSync,\n writeFileSync,\n} from 'fs';\nimport { dirname, resolve } from 'path';\nimport { randomUUID } from 'crypto';\nimport { uptime } from 'os';\n\nconst LOCAL_DEV_SESSION_LEASE_SCHEMA_VERSION = 1;\nconst DEFAULT_HEARTBEAT_INTERVAL_MS = 5_000;\nconst DEFAULT_STALE_AFTER_MS = 120_000;\n/**\n * How much earlier than this boot an owner's `acquiredAt` must be before it is read as a previous boot's. The boot\n * instant is derived from the uptime, to the second, and a clock may be stepped by NTP just after boot, so a lease taken\n * in the first moments of a boot is never mistaken for an older one.\n */\nconst PREVIOUS_BOOT_MARGIN_MS = 60_000;\n\ninterface LocalDevSessionLeaseOwner {\n readonly schemaVersion: number;\n readonly instanceId: string;\n readonly pid: number;\n readonly appRoot: string;\n readonly frameworkRoot: string | null;\n readonly ownsPlatform: boolean;\n readonly acquiredAt: string;\n readonly heartbeatAt: string;\n}\n\nexport interface LocalDevSessionLease {\n readonly instanceId: string;\n readonly leasePaths: readonly string[];\n release(): Promise<void>;\n}\n\nexport class LocalDevSessionLeaseConflictError extends Error {\n constructor(public readonly leasePath: string, owner: LocalDevSessionLeaseOwner | null) {\n super(\n owner\n ? `Another wildo local dev owner is active (pid ${owner.pid}, acquired ${owner.acquiredAt}).`\n : 'Another wildo local dev owner is active and its lease metadata is unavailable.',\n );\n this.name = 'LocalDevSessionLeaseConflictError';\n }\n}\n\n/**\n * Atomic ownership boundary for `wildo local dev`.\n *\n * Every invocation owns its app lease. An invocation that starts the shared\n * platform additionally owns the framework lease, preventing a second app from\n * cleaning or replacing that shared generation. Lease directories are acquired\n * in lexical path order, so multi-root acquisition cannot deadlock.\n */\nexport class LocalDevSessionLeaseService {\n static acquire(input: {\n saasRoot: string;\n frameworkRoot: string | null;\n ownsPlatform: boolean;\n heartbeatIntervalMs?: number;\n staleAfterMs?: number;\n onCompromised?: (error: Error) => void;\n }): LocalDevSessionLease {\n const instanceId = `${process.pid}-${Date.now()}-${randomUUID()}`;\n const acquiredAt = new Date().toISOString();\n const ownerBase = {\n schemaVersion: LOCAL_DEV_SESSION_LEASE_SCHEMA_VERSION,\n instanceId,\n pid: process.pid,\n appRoot: resolve(input.saasRoot),\n frameworkRoot: input.frameworkRoot ? resolve(input.frameworkRoot) : null,\n ownsPlatform: input.ownsPlatform,\n acquiredAt,\n };\n const leasePaths = resolveLocalDevSessionLeasePaths(input).sort();\n const acquiredPaths: string[] = [];\n const staleAfterMs = input.staleAfterMs ?? DEFAULT_STALE_AFTER_MS;\n\n try {\n for (const leasePath of leasePaths) {\n acquireLeasePath(leasePath, ownerBase, staleAfterMs);\n acquiredPaths.push(leasePath);\n }\n } catch (error) {\n for (const leasePath of acquiredPaths.reverse()) {\n releaseLeasePath(leasePath, instanceId);\n }\n throw error;\n }\n\n let compromised = false;\n const publishHeartbeat = () => {\n if (compromised) return;\n try {\n for (const leasePath of leasePaths) {\n const currentOwner = readLeaseOwner(leasePath);\n if (!currentOwner || currentOwner.instanceId !== instanceId) {\n throw new Error(`Local-dev lease ownership was replaced at '${leasePath}'.`);\n }\n writeLeaseOwner(leasePath, { ...ownerBase, heartbeatAt: new Date().toISOString() });\n }\n } catch (error) {\n compromised = true;\n clearInterval(heartbeat);\n try {\n input.onCompromised?.(error instanceof Error ? error : new Error(String(error)));\n } catch {\n // The timer boundary must never surface an uncaught exception. The\n // lease remains compromised and heartbeats stay stopped even if the\n // coordinator callback itself cannot report the failure.\n }\n }\n };\n const heartbeat = setInterval(publishHeartbeat, input.heartbeatIntervalMs ?? DEFAULT_HEARTBEAT_INTERVAL_MS);\n heartbeat.unref();\n let released = false;\n\n return {\n instanceId,\n leasePaths,\n async release() {\n if (released) return;\n released = true;\n clearInterval(heartbeat);\n for (const leasePath of [...leasePaths].reverse()) {\n releaseLeasePath(leasePath, instanceId);\n }\n },\n };\n }\n}\n\n/** The live owner of the shared platform, as read from the framework-root platform lease. */\nexport interface LiveLocalDevPlatformOwner {\n readonly pid: number;\n readonly appRoot: string;\n readonly acquiredAt: string;\n readonly heartbeatAt: string;\n}\n\n/**\n * Who currently OWNS the shared local platform, or `null` when nobody live does.\n *\n * This is the predicate every lane that would CONVERGE shared substrate must consult before writing\n * (issue #50): the platform reconciliation in `local init`, the backing-container compose-up in\n * `local dev`, and the platform-service env regeneration in `config sync` each destroyed a RUNNING\n * stack on 2026-08-25 because they asserted platform ownership without asking. The lease is\n * heartbeated by the owning `wildo local dev` session every few seconds; an owner whose heartbeat is\n * older than `staleAfterMs` is treated as dead (same staleness window the acquisition path uses), so\n * a crashed owner never wedges initialization.\n */\nexport function readLiveLocalDevPlatformOwner(\n frameworkRoot: string,\n staleAfterMs: number = DEFAULT_STALE_AFTER_MS,\n): LiveLocalDevPlatformOwner | null {\n const leasePath = resolve(frameworkRoot, '.wildo-runtime-signals', 'ownership', 'local-dev-platform.lock');\n if (!existsSync(leasePath)) return null;\n const owner = readLeaseOwner(leasePath);\n if (!owner) return null;\n const heartbeatAtMs = Date.parse(owner.heartbeatAt);\n if (!Number.isFinite(heartbeatAtMs) || Date.now() - heartbeatAtMs >= staleAfterMs) return null;\n return { pid: owner.pid, appRoot: owner.appRoot, acquiredAt: owner.acquiredAt, heartbeatAt: owner.heartbeatAt };\n}\n\nexport function resolveLocalDevSessionLeasePaths(input: {\n saasRoot: string;\n frameworkRoot: string | null;\n ownsPlatform: boolean;\n}): string[] {\n const paths = [resolve(input.saasRoot, '.wildo-saas', 'runtime-signals', 'ownership', 'local-dev.lock')];\n if (input.ownsPlatform) {\n if (!input.frameworkRoot) {\n throw new Error('A platform-owning local-dev session requires a framework root.');\n }\n paths.push(resolve(input.frameworkRoot, '.wildo-runtime-signals', 'ownership', 'local-dev-platform.lock'));\n }\n return paths;\n}\n\nfunction acquireLeasePath(\n leasePath: string,\n ownerBase: Omit<LocalDevSessionLeaseOwner, 'heartbeatAt'>,\n staleAfterMs: number,\n): void {\n mkdirSync(dirname(leasePath), { recursive: true, mode: 0o700 });\n chmodSync(dirname(leasePath), 0o700);\n\n for (let attempt = 0; attempt < 3; attempt += 1) {\n try {\n mkdirSync(leasePath, { mode: 0o700 });\n try {\n chmodSync(leasePath, 0o700);\n writeLeaseOwner(leasePath, { ...ownerBase, heartbeatAt: new Date().toISOString() });\n return;\n } catch (error) {\n rmSync(leasePath, { recursive: true, force: true });\n throw error;\n }\n } catch (error) {\n if ((error as NodeJS.ErrnoException).code !== 'EEXIST') throw error;\n }\n\n const owner = readLeaseOwner(leasePath);\n let ageMs: number;\n try {\n ageMs = Date.now() - statSync(leasePath).mtimeMs;\n } catch (error) {\n // A previous owner may release between our EEXIST and metadata read.\n // Retry the atomic mkdir instead of turning that normal hand-off race\n // into a false startup failure.\n if ((error as NodeJS.ErrnoException).code === 'ENOENT') continue;\n throw error;\n }\n const ownerLiveness = owner ? (acquiredBeforeThisBoot(owner) ? 'dead' : probeProcessLiveness(owner.pid)) : 'unknown';\n // A delayed heartbeat is not proof that a live owner is abandoned. The\n // CLI can legitimately block in Docker/platform startup longer than the\n // stale window, so PID liveness always wins. Age-based recovery is only\n // permitted when metadata is unavailable; a confirmed-dead owner can be\n // reclaimed immediately.\n if ((owner && ownerLiveness !== 'dead') || (!owner && ageMs <= staleAfterMs)) {\n throw new LocalDevSessionLeaseConflictError(leasePath, owner);\n }\n\n const stalePath = `${leasePath}.stale-${process.pid}-${randomUUID()}`;\n try {\n renameSync(leasePath, stalePath);\n rmSync(stalePath, { recursive: true, force: true });\n } catch (error) {\n if ((error as NodeJS.ErrnoException).code !== 'ENOENT') throw error;\n }\n }\n throw new LocalDevSessionLeaseConflictError(leasePath, readLeaseOwner(leasePath));\n}\n\nfunction writeLeaseOwner(leasePath: string, owner: LocalDevSessionLeaseOwner): void {\n const ownerPath = resolve(leasePath, 'owner.json');\n const temporaryPath = `${ownerPath}.tmp-${process.pid}-${randomUUID()}`;\n writeFileSync(temporaryPath, `${JSON.stringify(owner, null, 2)}\\n`, { encoding: 'utf-8', mode: 0o600 });\n renameSync(temporaryPath, ownerPath);\n chmodSync(ownerPath, 0o600);\n}\n\nfunction readLeaseOwner(leasePath: string): LocalDevSessionLeaseOwner | null {\n try {\n const owner = JSON.parse(readFileSync(resolve(leasePath, 'owner.json'), 'utf-8')) as LocalDevSessionLeaseOwner;\n if (\n owner?.schemaVersion !== LOCAL_DEV_SESSION_LEASE_SCHEMA_VERSION\n || typeof owner.instanceId !== 'string'\n || !Number.isInteger(owner.pid) || owner.pid <= 0\n || typeof owner.appRoot !== 'string'\n || (owner.frameworkRoot !== null && typeof owner.frameworkRoot !== 'string')\n || typeof owner.ownsPlatform !== 'boolean'\n || typeof owner.acquiredAt !== 'string'\n || typeof owner.heartbeatAt !== 'string'\n ) {\n return null;\n }\n return owner;\n } catch {\n return null;\n }\n}\n\nfunction releaseLeasePath(leasePath: string, instanceId: string): void {\n if (!existsSync(leasePath)) return;\n const owner = readLeaseOwner(leasePath);\n if (!owner || owner.instanceId !== instanceId) return;\n const retiredPath = `${leasePath}.retired-${process.pid}-${randomUUID()}`;\n try {\n renameSync(leasePath, retiredPath);\n rmSync(retiredPath, { recursive: true, force: true });\n } catch (error) {\n if ((error as NodeJS.ErrnoException).code !== 'ENOENT') throw error;\n }\n}\n\n/**\n * Was this lease acquired before the machine last booted (#3204)? Then its owner is dead whatever its pid now names: a\n * process does not survive a reboot, and after one the pid is free for any other process to hold, which\n * {@link probeProcessLiveness} would report as alive. Measured on the reference runner: a run's lease (pid 6331) outlived\n * a power-off, and the next run's `wildo local dev` refused to start because pid 6331 was now someone else's.\n * Decided from `acquiredAt`, which every lease already records, so a lease written before this check is judged too.\n */\nfunction acquiredBeforeThisBoot(owner: LocalDevSessionLeaseOwner): boolean {\n const acquiredAtMs = Date.parse(owner.acquiredAt);\n if (!Number.isFinite(acquiredAtMs)) return false;\n const bootedAtMs = Date.now() - uptime() * 1000;\n return acquiredAtMs < bootedAtMs - PREVIOUS_BOOT_MARGIN_MS;\n}\n\nfunction probeProcessLiveness(pid: number): 'alive' | 'dead' | 'unknown' {\n try {\n process.kill(pid, 0);\n return 'alive';\n } catch (error) {\n const code = (error as NodeJS.ErrnoException).code;\n if (code === 'EPERM') return 'alive';\n if (code === 'ESRCH') return 'dead';\n return 'unknown';\n }\n}\n\n/**\n * What a lane intends to do to the SHARED local platform. It is the only input that decides how a\n * foreign owner is treated, so a new lane declares its intent rather than re-deriving the policy.\n */\nexport enum SharedPlatformIntent {\n /**\n * Bring the shared containers up and leave them there — `local up`, `dev start`, the `local dev`\n * readiness converge. Harmless when nobody else is running, and a substrate swap when somebody is.\n */\n CONVERGE = 'converge',\n /**\n * Recreate, stop or destroy the shared containers — `local down`, `local reset` (and `local up\n * --rebuild`'s force-recreate until #2988 removed it). Never safe under a foreign owner at any running state.\n */\n DISRUPT = 'disrupt',\n}\n\n/** What a lane may do to the shared platform right now. */\nexport enum SharedPlatformAccess {\n /** Nobody else owns it. Proceed exactly as the lane would have without this check. */\n PROCEED = 'proceed',\n /** A foreign session owns it and its containers are up: use them, converge nothing. */\n ATTACH = 'attach',\n /** A foreign session owns it and this lane must not touch it. */\n REFUSE = 'refuse',\n}\n\nexport interface SharedPlatformAccessDecision {\n readonly access: SharedPlatformAccess;\n /** The owning session, when one is live and is a different app root. */\n readonly owner: LiveLocalDevPlatformOwner | null;\n /** Ready-to-print explanation for ATTACH and REFUSE. Absent for PROCEED. */\n readonly message?: string;\n}\n\n/**\n * Whether this lane may converge or disrupt the shared local platform right now.\n *\n * ## Why this is a function rather than a check each lane writes\n *\n * The platform stack is deliberately ONE-APP-AT-A-TIME: every application renders its compose under\n * the same project name with the same `wildo-*` container names and its OWN `local_data/` bind\n * mounts, and `--remove-orphans` is what stops a converge from leaving the previous app's extra\n * services running on the previous app's data (measured 2026-09-03 — a half-migrated stack with 18\n * cron jobs pointing at a vhost that existed only in the other app's broker state). So switching\n * applications re-homes the stack ON PURPOSE. What must not happen is re-homing it out from under a\n * session that is still using it.\n *\n * {@link readLiveLocalDevPlatformOwner} has answered that since issue #50, and its own docstring\n * named the three lanes that must consult it. **It was reached from three of the SEVEN lanes that\n * mutate the shared stack** — measured 2026-09-15 (#1126): `local up`, `local up --rebuild`,\n * `local down`, `local reset` and `dev start` all converged or tore down without asking. The\n * observed cost was a running `wildo local dev` losing `wildo-postgresql`, `wildo-clamav`,\n * `wildo-immudb` and `wildo-otel-collector` to another application's `wildo local up`, and then\n * failing to boot with an error naming neither the other application nor the deletion. `local\n * reset`'s `down -v` would have taken the volumes.\n *\n * That is `.claude/rules/invariant-call-site-enumeration.md`'s defect shape exactly — the invariant\n * applied at some of its sites — so the remedy is the one that rule prefers: ONE predicate every\n * lane declares its intent to, rather than the same condition hand-written six more times.\n *\n * @param infraRunning Whether the shared containers are currently up. Only consulted for\n * {@link SharedPlatformIntent.CONVERGE}: an owner whose containers are gone cannot be attached to,\n * and starting them from this app root is the substrate swap the check exists to prevent.\n * @param acknowledgedForeignOwner The operator has stated, on this invocation, that they intend to\n * take the shared platform from its current owner. The refusal is the DEFAULT and the door is\n * explicit, narrow and per-invocation — `design-philosophy.md`, \"immutability needs a paired\n * mutation path\". A lane that offers no such flag passes `false`.\n */\nexport function decideSharedPlatformAccess(input: {\n frameworkRoot: string | null;\n saasRoot: string;\n intent: SharedPlatformIntent;\n infraRunning: boolean;\n acknowledgedForeignOwner?: boolean;\n staleAfterMs?: number;\n}): SharedPlatformAccessDecision {\n const owner = input.frameworkRoot\n ? readLiveLocalDevPlatformOwner(input.frameworkRoot, input.staleAfterMs)\n : null;\n // An owner at THIS app root is this application's own session: converging its own substrate is\n // what it is for, and re-homing is not in question.\n if (!owner || resolve(owner.appRoot) === resolve(input.saasRoot)) {\n return { access: SharedPlatformAccess.PROCEED, owner: null };\n }\n\n const who = `pid ${owner.pid}, app ${owner.appRoot}`;\n if (input.acknowledgedForeignOwner === true) {\n return {\n access: SharedPlatformAccess.PROCEED,\n owner,\n message: `Taking the shared platform from the \\`wildo local dev\\` session that owns it (${who}), as acknowledged on this invocation. `\n + 'That session\\'s processes are now running against a substrate this app root defines.',\n };\n }\n\n if (input.intent === SharedPlatformIntent.DISRUPT) {\n return {\n access: SharedPlatformAccess.REFUSE,\n owner,\n message: `The shared local platform is owned by another \\`wildo local dev\\` session (${who}). `\n + 'Refusing to recreate or stop its containers from this app root — stop that session first.',\n };\n }\n\n if (!input.infraRunning) {\n return {\n access: SharedPlatformAccess.REFUSE,\n owner,\n message: `The shared local platform is owned by another \\`wildo local dev\\` session (${who}), but its `\n + 'infrastructure containers are not running. Refusing to start shared containers from this app root — '\n + 'start them from the owning session.',\n };\n }\n\n return {\n access: SharedPlatformAccess.ATTACH,\n owner,\n message: `Attaching to the shared platform owned by pid ${owner.pid} (${owner.appRoot}); infrastructure convergence skipped.`,\n };\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"local-precondition-checks.service.d.ts","sourceRoot":"","sources":["../../../../src/services/deployment/local-precondition-checks.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AAeH,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AAMlG,OAAO,EASL,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACrB,MAAM,iEAAiE,CAAC;AACzE,OAAO,EAEL,KAAK,iCAAiC,EACvC,MAAM,sEAAsE,CAAC;AAC9E,OAAO,EAIL,KAAK,8BAA8B,EACpC,MAAM,+DAA+D,CAAC;AAUvE,OAAO,EAEL,KAAK,4BAA4B,EAClC,MAAM,kEAAkE,CAAC;AAC1E,OAAO,KAAK,EAAE,kCAAkC,EAAE,wCAAwC,EAAE,MAAM,gCAAgC,CAAC;AAGnI,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,iDAAiD,CAAC;AAO9F;;;;GAIG;AAEH,8FAA8F;AAC9F,eAAO,MAAM,2BAA2B,0KAC4H,CAAC;AACrK,eAAO,MAAM,iCAAiC,qEACsB,CAAC;AACrE,eAAO,MAAM,gCAAgC,sCACR,CAAC;AACtC,eAAO,MAAM,wBAAwB,QAEgG,CAAC;
|
|
1
|
+
{"version":3,"file":"local-precondition-checks.service.d.ts","sourceRoot":"","sources":["../../../../src/services/deployment/local-precondition-checks.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;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C;;;;GAIG;AACH,wBAAsB,sCAAsC,CAAC,OAAO,EAAE,sBAAsB,GAAG,OAAO,CAAC,yBAAyB,CAAC,CAmBhI;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,yBAAyB,GAAG,4BAA4B,CAiCxG;AAED,wBAAsB,8BAA8B,CAAC,KAAK,EAAE;IAC1D,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B;;;;;;;;;OASG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC;;;;;;;;;;;;;OAaG;IACH,mCAAmC,CAAC,EAAE,OAAO,CAAC;IAC9C;;;OAGG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC,GAAG,OAAO,CAAC,4BAA4B,EAAE,CAAC,CAsD1C"}
|
|
@@ -74,8 +74,10 @@ export const PROVIDER_RUNTIME_SYNC_REMEDIATION = 'Materialize the generated runt
|
|
|
74
74
|
export const ORPHANED_DEV_WATCHER_REMEDIATION = 'Reap them: `wildo dev force-stop`';
|
|
75
75
|
export const NODE_UPGRADE_REMEDIATION = `Install Node ${SUPPORTED_NODE_MAJOR_VERSION}: \`nvm install ${SUPPORTED_NODE_MAJOR_VERSION} && nvm use ${SUPPORTED_NODE_MAJOR_VERSION}\``
|
|
76
76
|
+ ` (or \`fnm use ${SUPPORTED_NODE_MAJOR_VERSION}\`, or download it from https://nodejs.org/). Then re-run \`wildo local doctor\`.`;
|
|
77
|
-
|
|
78
|
-
|
|
77
|
+
// Not corepack: Node 26 no longer ships it, so `corepack enable` is "command not found" on the supported Node (#3934).
|
|
78
|
+
// Any pnpm 10 is enough: it switches itself to the application's `packageManager` pin.
|
|
79
|
+
export const PNPM_REPAIR_REMEDIATION = 'Install pnpm: re-run the installer (`curl -fsSL https://get.wildo.ai/install.sh | sh`), which installs the release\'s pinned pnpm,'
|
|
80
|
+
+ ' or `npm install -g pnpm@10`. If a `packageManager` self-switch left a partial download,'
|
|
79
81
|
+ ' clear its cache first: `rm -rf ~/Library/pnpm/.tools` (macOS) / `rm -rf ~/.local/share/pnpm/.tools` (Linux).';
|
|
80
82
|
export const CXX20_TOOLCHAIN_REMEDIATION = 'Reinstall the Command Line Tools — this needs YOUR password, so run it yourself:'
|
|
81
83
|
+ ' `sudo rm -rf /Library/Developer/CommandLineTools && sudo xcode-select --install`.'
|