@wildo-ai/wildo-cli 1.1.13 → 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 +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/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/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/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/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/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/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/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 +8 -2
- 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-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/env-configuration-generator.service.d.ts.map +1 -1
- package/dist/src/services/environment/env-configuration-generator.service.js +8 -3
- package/dist/src/services/environment/env-configuration-generator.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/framework/framework-docker-publish.service.d.ts +89 -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 +180 -18
- 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/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 +1 -1
- 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-precondition-checks.service.js","sourceRoot":"","sources":["../../../../src/services/deployment/local-precondition-checks.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC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C;QACxC,OAAO,CAAC,IAAI,CAAC,4BAA4B,CAAC,EAAE,aAAa,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC;IAC1E,CAAC;IAED,OAAO,OAAO,CAAC;AACjB,CAAC;AAED;;;;;;;;;;;;;;GAcG;AACH,SAAS,iCAAiC,CAAC,KAI1C;IACC,MAAM,EAAE,QAAQ,EAAE,aAAa,EAAE,oBAAoB,GAAG,KAAK,EAAE,GAAG,KAAK,CAAC;IACxE,IAAI,oBAAoB,IAAI,aAAa;QAAE,OAAO,IAAI,CAAC,aAAa,EAAE,cAAc,CAAC,CAAC;IACtF,OAAO,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AAC1D,CAAC;AAED;;;;;GAKG;AACH,SAAS,wBAAwB,CAAC,QAAgB,EAAE,UAAkB;IACpE,MAAM,YAAY,GAAG,QAAQ,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;IACpD,OAAO,YAAY,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,YAAY,CAAC;AACnE,CAAC;AAED,SAAS,eAAe,CAAC,OAAe;IACtC,OAAO,OAAO,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC;AACpE,CAAC","sourcesContent":["/**\n * Local-development PRECONDITION checks — the things that must already be true\n * before `wildo local dev` starts doing work.\n *\n * These are deliberately separate from the runtime probes in\n * `wildo local doctor` (container health, loopback binding, backing-service\n * auth). Those answer \"is the running stack healthy?\"; these answer \"can this\n * machine run the stack at all?\" — and each one here was written from a real\n * session (2026-08-08 and 2026-08-11/12) where the answer was NO and the\n * operator found out LATE, several minutes and one cryptic error in — or, for\n * the first three, never, because nothing in this repository looked:\n *\n * 0. **Node on an unsupported major.** The supported version had four\n * disagreeing declarations and the loosest one was the published range.\n * See `SUPPORTED_NODE_MAJOR_VERSION`, now the single source.\n * 0a. **pnpm unusable.** A `packageManager` self-switch aborted mid-download,\n * leaving a 4 KB skeleton with no binary; every `pnpm` call died `ENOENT`\n * and nothing could be installed, built or run.\n * 0b. **C++ toolchain silently a decade stale.** Apple clang 21 over libc++\n * 11.0 — no `<ranges>`, `<format>` or `<coroutine>`. Every native Node\n * addon needing C++20 was unbuildable while every version string looked\n * current.\n * 1. **Docker Compose too old.** Failed with\n * `services.valkey.healthcheck Additional property start_interval is not\n * allowed`, printed AFTER \"Local infrastructure is not running. Starting\n * it...\" — so it read as an infra fault, not a toolchain one.\n * 2. **Provider-runtime modules never materialized.** The companion's\n * `src/index.ts` imports `./generated/wildo-provider-runtime.generated.js`;\n * with no `wildo config sync` behind it, compilation emitted `TS2307:\n * Cannot find module` on repeat, forever, inside the diagnostics block.\n * 3. **Orphaned dev watchers.** `tsc-watch` single-writers from a dead\n * session, reparented to init, still holding `dist/esm/.builder.pid`.\n * Every new watcher then correctly refused to become a second writer and\n * readiness blocked forever on\n * `dependency-compile-status-<pkg>-watcher-exited`.\n *\n * Both consumers — `wildo local doctor` and the `wildo local dev` preflight —\n * call these functions, so the two surfaces cannot drift into disagreeing\n * about what a healthy precondition looks like.\n *\n * Every check is READ-ONLY: it observes and reports, never repairs. `local\n * doctor` advertises itself as a read-only diagnostic and the preflight runs\n * before ownership of anything is established, so a check that mutated would\n * be wrong in both places. Each failing result carries `fix` — the exact\n * command the operator runs next — because a precondition check whose output\n * still requires a search is only half a check.\n */\n\nimport { spawnSync } from 'node:child_process';\nimport { existsSync, readFileSync } from 'fs';\nimport { homedir, totalmem } from 'node:os';\nimport {\n CODING_AGENT_ADAPTER_PACKAGE,\n CODING_AGENT_ADAPTER_SPECIFIER,\n OPENCODE_AGENT_ARGS,\n OPENCODE_AGENT_VERSION,\n resolveOpenCodeAgentExecutablePath,\n SUPPORTED_ACP_PROTOCOL_VERSIONS,\n} from '@wildo-ai/external-connectors-private/backend';\nimport { join, relative } from 'path';\nimport { EnvironmentUtils } from '~wildo-cli/services/environment/environment.service';\nimport type { PlatformEnvSecretsJson } from '~wildo-cli/services/credentials/credentials.schemas';\nimport {\n detectDockerComposeVersion,\n isComposeVersionAtLeast,\n MINIMUM_DOCKER_COMPOSE_VERSION,\n} from '~wildo-cli/services/deployment/docker/docker-compose-readiness.service';\nimport {\n isNodeVersionSupported,\n isVersionAtLeast,\n MINIMUM_PNPM_VERSION,\n probeCxx20Toolchain,\n probePnpmExecutable,\n readDeclaredPackageManagerPnpmVersion,\n SUPPORTED_NODE_MAJOR_VERSION,\n Cxx20ProbeStatus,\n type Cxx20ProbeResult,\n type PnpmProbeResult,\n} from '~wildo-cli/services/deployment/host-toolchain-readiness.service';\nimport {\n LocalRuntimeProcessCleanupService,\n type LocalRuntimeProcessGroupCandidate,\n} from '~wildo-cli/services/deployment/local-runtime-process-cleanup.service';\nimport {\n findRefusedProviderRuntimeArtifacts,\n PROVIDER_RUNTIME_ARTIFACT_KINDS_READ_AS_JSON,\n resolveExpectedProviderRuntimeSourceModulePaths,\n type RefusedProviderRuntimeArtifact,\n} from '~wildo-cli/services/application/provider-runtime-sync.service';\nimport { PROVIDER_RUNTIME_ARTIFACT_RELATIVE_PATHS } from '@wildo-ai/platform-config-lib';\nimport { ErrorUtils } from '~wildo-cli/infrastructure/errors/error.utils';\nimport {\n checkCodingAgentLogin,\n CODING_AGENT_LOGIN_STATE_WORDS,\n resolveSelectedCodingAgent,\n type CodingAgentOption,\n} from '~wildo-cli/services/coding-agents/coding-agent-login.service';\nimport { CodingAgentHostLoginState } from '@wildo-ai/external-connectors-models';\nimport {\n LocalPreconditionCheckStatus,\n type LocalPreconditionCheckResult,\n} from '~wildo-cli/services/deployment/local-precondition-checks.schemas';\nimport type { CreationConsole_SpecificationFault, CreationConsole_SpecificationModuleFault } from '@wildo-ai/platform-core-shared';\nimport { describeSpecificationModuleFaultReading } from '~wildo-cli/services/companion/build-console.service';\nimport { CompanionClient, CompanionRefusalError, CompanionRequestTimeoutError } from '~wildo-cli/services/companion/companion-client.service';\nimport type { CompanionClientOptions } from '~wildo-cli/services/companion/companion.schemas';\nimport {\n checkFrontendSettingsHubWiring,\n checkFrontendStylesheetSources,\n checkProviderContributionsShadowingEngine,\n} from '~wildo-cli/services/deployment/application-first-run-checks.service';\n\n/**\n * The result shape and its status vocabulary live in `local-precondition-checks.schemas.ts` — a\n * module with no host-touching imports, so a consumer that mocks THIS service can still derive from\n * the one named source. See that file for why the split exists.\n */\n\n/** Remediation strings, single-sourced so doctor and the preflight quote the same command. */\nexport const COMPOSE_UPGRADE_REMEDIATION =\n 'Upgrade Docker Desktop (>= 25): `brew upgrade --cask docker` — or download it from https://docker.com/products/docker-desktop. Then re-run `wildo local doctor`.';\nexport const PROVIDER_RUNTIME_SYNC_REMEDIATION =\n 'Materialize the generated runtime artifacts: `wildo config sync`';\nexport const ORPHANED_DEV_WATCHER_REMEDIATION =\n 'Reap them: `wildo dev force-stop`';\nexport const NODE_UPGRADE_REMEDIATION =\n `Install Node ${SUPPORTED_NODE_MAJOR_VERSION}: \\`nvm install ${SUPPORTED_NODE_MAJOR_VERSION} && nvm use ${SUPPORTED_NODE_MAJOR_VERSION}\\``\n + ` (or \\`fnm use ${SUPPORTED_NODE_MAJOR_VERSION}\\`, or download it from https://nodejs.org/). Then re-run \\`wildo local doctor\\`.`;\nexport const PNPM_REPAIR_REMEDIATION =\n 'Reinstall pnpm: `corepack enable && corepack prepare pnpm@latest --activate`'\n + ' — or `npm install -g pnpm`. If a `packageManager` self-switch left a partial download,'\n + ' clear its cache first: `rm -rf ~/Library/pnpm/.tools` (macOS) / `rm -rf ~/.local/share/pnpm/.tools` (Linux).';\nexport const CXX20_TOOLCHAIN_REMEDIATION =\n 'Reinstall the Command Line Tools — this needs YOUR password, so run it yourself:'\n + ' `sudo rm -rf /Library/Developer/CommandLineTools && sudo xcode-select --install`.'\n + ' On Linux, install a C++20 toolchain (GCC >= 10 or Clang >= 16) with your package manager.';\n\n/**\n * The Node this CLI is running under must be on the supported major.\n *\n * FAILS rather than warns. The supported major is a TESTED range, not a\n * preference: it is the version CI exercises and the version the locked native\n * dependencies compile against, and a host below it is running a configuration\n * nothing in this repository verifies. `better-sqlite3` is the concrete\n * precedent in the other direction — 11.x builds on Node 22 and cannot build\n * at all on Node 26 — which is exactly why an unenforced range drifts into\n * claiming support for configurations that do not work.\n *\n * Measures `process.versions.node`: the Node executing this CLI is the Node\n * that will spawn every dev server, watcher and companion behind it, so it is\n * the honest subject even though a `nvm use` in another terminal could differ.\n *\n * `wildo local dev --skip-doctor` remains the documented bypass for an operator\n * who has decided to run unsupported anyway.\n */\nexport function checkNodeVersion(\n options: { nodeVersion?: string; supportedMajor?: number } = {},\n): LocalPreconditionCheckResult {\n const name = 'node version';\n const nodeVersion = options.nodeVersion ?? process.versions.node;\n const supportedMajor = options.supportedMajor ?? SUPPORTED_NODE_MAJOR_VERSION;\n\n if (!isNodeVersionSupported(nodeVersion, supportedMajor)) {\n return {\n name,\n status: LocalPreconditionCheckStatus.FAIL,\n detail:\n `v${nodeVersion} — this repository is developed and CI-tested on Node ${supportedMajor}. `\n + 'Older majors are not exercised anywhere, and the locked native dependencies are built against '\n + `Node ${supportedMajor}'s V8 headers.`,\n fix: NODE_UPGRADE_REMEDIATION,\n };\n }\n return { name, status: LocalPreconditionCheckStatus.PASS, detail: `v${nodeVersion} (supported major: ${supportedMajor})` };\n}\n\n/**\n * pnpm must actually EXECUTE, and should match the `packageManager` pin.\n *\n * The ordering matters and is the whole lesson of the failure this closes. On\n * 2026-08-08 a `packageManager` self-switch aborted mid-download, leaving a\n * 4 KB skeleton with no binary; pnpm was present, on PATH, and every\n * invocation died `ENOENT`. A version comparison cannot see that — the failure\n * IS the absence of a version — so this check runs pnpm first and treats an\n * inability to answer as the hard blocker it is.\n *\n * Three outcomes, deliberately not collapsed:\n *\n * - **cannot execute → FAIL.** Nothing can be installed, built or run.\n * - **below `engines.pnpm` → FAIL.** pnpm 9 and 10 differ in the self-switch\n * and build-script mechanisms this repository depends on.\n * - **executes, at or above the floor, but off the `packageManager` pin →\n * WARN.** pnpm self-switches to the pin per invocation, so this is normally\n * benign and self-correcting. It warns rather than passing because a\n * divergence here is the state the corrupt self-switch begins from.\n *\n * The pin is read from the manifest the operator will actually run pnpm in —\n * never from a constant here, which would be a fifth copy of a version this\n * repository already declares.\n */\nexport function checkPnpmToolchain(\n options: {\n manifestPath?: string | null;\n probe?: () => PnpmProbeResult;\n readDeclaredPin?: (manifestPath: string) => string | null;\n } = {},\n): LocalPreconditionCheckResult {\n const name = 'pnpm toolchain';\n const probe = options.probe ?? (() => probePnpmExecutable());\n const readDeclaredPin = options.readDeclaredPin ?? ((path: string) => readDeclaredPackageManagerPnpmVersion(path));\n\n const result = probe();\n if (result.failure !== null || result.version === null) {\n return {\n name,\n status: LocalPreconditionCheckStatus.FAIL,\n detail:\n `pnpm did not run: ${result.failure ?? 'no version reported'}. `\n + 'A `packageManager` self-switch whose download aborted leaves a shim on PATH with no binary '\n + 'behind it, so this surfaces downstream as ENOENT from unrelated commands.',\n fix: PNPM_REPAIR_REMEDIATION,\n };\n }\n\n if (!isVersionAtLeast(result.version, MINIMUM_PNPM_VERSION)) {\n return {\n name,\n status: LocalPreconditionCheckStatus.FAIL,\n detail: `v${result.version} is below the required minimum ${MINIMUM_PNPM_VERSION}.`,\n fix: PNPM_REPAIR_REMEDIATION,\n };\n }\n\n const declaredPin = options.manifestPath ? readDeclaredPin(options.manifestPath) : null;\n if (declaredPin && declaredPin !== result.version) {\n return {\n name,\n status: LocalPreconditionCheckStatus.WARN,\n detail:\n `v${result.version} is running, but \\`packageManager\\` pins pnpm@${declaredPin}. `\n + 'pnpm normally self-switches to the pin per invocation; a persistent divergence means that '\n + 'switch is not completing.',\n fix: PNPM_REPAIR_REMEDIATION,\n };\n }\n\n return {\n name,\n status: LocalPreconditionCheckStatus.PASS,\n detail: declaredPin ? `v${result.version} (matches the packageManager pin)` : `v${result.version}`,\n };\n}\n\n/**\n * The host must be able to COMPILE C++20, verified by compiling C++20.\n *\n * This check exists because a version string lied. The broken host reported\n * Apple clang 21.0.0 with SDK 26.5 while its libc++ was 11.0 (late 2020), with\n * no `<ranges>`, `<format>` or `<coroutine>`; every native Node addon needing\n * C++20 was unbuildable, which on Node 26 means all of them. Nothing derived\n * from `clang --version` could have detected that, so `probeCxx20Toolchain`\n * compiles a translation unit and reads the exit code.\n *\n * WARNS rather than fails, on every host rather than only on framework\n * developers' hosts:\n *\n * - **Warn, not fail**, because most native dependencies install from\n * prebuilt binaries and a stale toolchain only bites when one must be\n * compiled from source. Blocking `wildo local dev` over a compiler the\n * operator may never invoke would be wrong. It is also the honest severity\n * for a fix this command cannot verify or apply: the remedy needs `sudo`,\n * so the check REPORTS it and never attempts it — a precondition check that\n * tried to repair the host would violate the read-only contract both its\n * consumers advertise.\n * - **Every host**, because the audience split does not apply here: an\n * application developer whose dependency lacks a prebuild for their\n * platform hits the identical wall, and the diagnostic is worth the same\n * to them.\n *\n * `not-probed` (Windows) reports as PASS with an explicit \"not probed\" detail\n * rather than as a warning. The alternative is a permanent yellow line on every\n * Windows machine, which trains operators to skim past the diagnostics that do\n * mean something — the trade is deliberate and the detail string is what keeps\n * it honest.\n */\nexport function checkCxx20Toolchain(\n options: { probe?: () => Cxx20ProbeResult } = {},\n): LocalPreconditionCheckResult {\n const name = 'c++20 toolchain';\n const probe = options.probe ?? (() => probeCxx20Toolchain());\n const result = probe();\n\n switch (result.status) {\n case Cxx20ProbeStatus.OK:\n return { name, status: LocalPreconditionCheckStatus.PASS, detail: `\\`${result.compiler}\\` compiles C++20` };\n case Cxx20ProbeStatus.NOT_PROBED:\n return {\n name,\n status: LocalPreconditionCheckStatus.PASS,\n detail: 'not probed on Windows (an MSVC Developer environment is required to answer this)',\n };\n case Cxx20ProbeStatus.ABSENT:\n return {\n name,\n status: LocalPreconditionCheckStatus.WARN,\n detail:\n `no C++ compiler found (tried \\`${result.compiler}\\`). Native Node addons without a prebuilt `\n + 'binary for this platform cannot be installed.',\n fix: CXX20_TOOLCHAIN_REMEDIATION,\n };\n case Cxx20ProbeStatus.UNSUPPORTED:\n default:\n return {\n name,\n status: LocalPreconditionCheckStatus.WARN,\n detail:\n `\\`${result.compiler}\\` cannot compile C++20 — \\`#include <ranges>\\` failed`\n + `${result.diagnostic ? `: ${result.diagnostic}` : ''}. `\n + 'A modern clang shipping a decade-old libc++ reports a perfectly current version string, '\n + 'so this surfaces only as C++ errors deep inside a native addon build.',\n fix: CXX20_TOOLCHAIN_REMEDIATION,\n };\n }\n}\n\n/** What the coding-agent adapter probe learned. */\nexport enum CodingAgentAdapterProbeStatus {\n /** The adapter started and negotiated an ACP version this framework supports. */\n OK = 'ok',\n /** The adapter could not be started at all. */\n ABSENT = 'absent',\n /** It started but negotiated a protocol version this framework does not implement. */\n UNSUPPORTED_PROTOCOL = 'unsupported-protocol',\n}\n\nexport interface CodingAgentAdapterProbeResult {\n status: CodingAgentAdapterProbeStatus;\n negotiatedProtocolVersion?: number;\n agentName?: string;\n agentVersion?: string;\n diagnostic?: string;\n}\n\nconst CODING_AGENT_ADAPTER_REMEDIATION =\n `Run \\`npx --yes ${CODING_AGENT_ADAPTER_SPECIFIER} --help\\` once to cache it, `\n + 'or re-run the installer. Application creation cannot dispatch a coding task without it.';\n\n/**\n * Probe the coding-agent ACP adapter by EXECUTING it — spawn it and complete the\n * `initialize` handshake — rather than by reading a version string.\n *\n * That is this baseline's own hard-won rule. Apple clang reported version 21\n * truthfully while shipping a libc++ from 2020, and a pnpm shim reported a\n * version while having no binary behind it: a toolchain's account of itself is\n * not evidence. Here the equivalent trap is real and specific — `npx` resolving\n * the specifier proves a download, not that the adapter speaks a protocol\n * version we can hold it to.\n *\n * The handshake is also the ONLY thing that answers the question the coding lane\n * actually depends on: an agent negotiating an ACP major outside\n * `SUPPORTED_ACP_PROTOCOL_VERSIONS` is refused at dispatch, and finding that out\n * at `doctor` time costs seconds instead of a failed journey step.\n *\n * WARNS rather than fails, matching the C++ toolchain check: a developer who\n * never runs application creation does not need this, and a permanently red\n * line for an unused capability trains operators to skim.\n */\n\n/**\n * Spawn the adapter and complete an ACP `initialize`, with a hard timeout.\n *\n * Deliberately read-only: it opens no session and sends no prompt, so it cannot\n * touch a workspace or spend a token. The handshake alone answers both\n * questions — can this adapter start, and does it speak a protocol major this\n * framework can hold it to.\n */\nexport function probeCodingAgentAdapter(\n options: { timeoutMs?: number; command?: string; args?: readonly string[] } = {},\n): CodingAgentAdapterProbeResult {\n const timeoutMs = options.timeoutMs ?? 60_000;\n const request = JSON.stringify({\n jsonrpc: '2.0',\n id: 1,\n method: 'initialize',\n params: {\n protocolVersion: Math.max(...SUPPORTED_ACP_PROTOCOL_VERSIONS),\n // Advertise nothing: a probe must not imply the client will serve\n // filesystem or terminal callbacks it has no intention of answering.\n clientCapabilities: {},\n },\n });\n\n // The command is a PARAMETER because the handshake is agent-neutral while the\n // way to start an agent is not: the Claude adapter is an npm specifier `npx`\n // resolves, OpenCode is a pinned binary at an absolute path. Defaulting to the\n // adapter keeps every existing caller unchanged.\n const spawned = spawnSync(options.command ?? 'npx', [...(options.args ?? ['--yes', CODING_AGENT_ADAPTER_SPECIFIER])], {\n input: `${request}\\n`,\n encoding: 'utf8',\n timeout: timeoutMs,\n // The adapter resolves its own credentials from host state; the probe needs\n // no secret and passes none beyond the ambient environment it must inherit\n // to find its own installation.\n env: process.env,\n });\n\n if (spawned.error || spawned.stdout === undefined) {\n return {\n status: CodingAgentAdapterProbeStatus.ABSENT,\n diagnostic: spawned.error?.message ?? 'no output',\n };\n }\n\n for (const line of spawned.stdout.split('\\n')) {\n const trimmed = line.trim();\n if (!trimmed) continue;\n let message: unknown;\n try {\n message = JSON.parse(trimmed);\n } catch {\n // Non-JSON stdout is the adapter's own logging, not a protocol frame.\n continue;\n }\n const result = (message as { id?: unknown; result?: { protocolVersion?: unknown; agentInfo?: { name?: unknown; version?: unknown } } }).result;\n if (!result || typeof result.protocolVersion !== 'number') continue;\n\n const negotiatedProtocolVersion = result.protocolVersion;\n const agentName = typeof result.agentInfo?.name === 'string' ? result.agentInfo.name : undefined;\n const agentVersion = typeof result.agentInfo?.version === 'string' ? result.agentInfo.version : undefined;\n return SUPPORTED_ACP_PROTOCOL_VERSIONS.includes(negotiatedProtocolVersion)\n ? { status: CodingAgentAdapterProbeStatus.OK, negotiatedProtocolVersion, agentName, agentVersion }\n : { status: CodingAgentAdapterProbeStatus.UNSUPPORTED_PROTOCOL, negotiatedProtocolVersion, agentName, agentVersion };\n }\n\n return {\n status: CodingAgentAdapterProbeStatus.ABSENT,\n diagnostic: (spawned.stderr ?? '').trim().slice(-300) || 'the adapter answered no initialize result',\n };\n}\n\nexport function checkCodingAgentAdapter(\n options: { probe?: () => CodingAgentAdapterProbeResult } = {},\n): LocalPreconditionCheckResult {\n const name = 'coding-agent ACP adapter';\n const probe = options.probe ?? (() => probeCodingAgentAdapter());\n const result = probe();\n\n switch (result.status) {\n case CodingAgentAdapterProbeStatus.OK:\n return {\n name,\n status: LocalPreconditionCheckStatus.PASS,\n detail:\n `${result.agentName ?? CODING_AGENT_ADAPTER_PACKAGE}`\n + `${result.agentVersion ? `@${result.agentVersion}` : ''}`\n + ` speaks ACP v${result.negotiatedProtocolVersion}`,\n };\n case CodingAgentAdapterProbeStatus.UNSUPPORTED_PROTOCOL:\n return {\n name,\n status: LocalPreconditionCheckStatus.WARN,\n detail:\n `the adapter negotiated ACP v${result.negotiatedProtocolVersion}, which this framework does not `\n + `implement (supported: ${SUPPORTED_ACP_PROTOCOL_VERSIONS.join(', ')}). A coding dispatch will be refused.`,\n fix: `Pin the adapter to ${CODING_AGENT_ADAPTER_SPECIFIER}, which negotiates a supported version.`,\n };\n case CodingAgentAdapterProbeStatus.ABSENT:\n default:\n return {\n name,\n status: LocalPreconditionCheckStatus.WARN,\n detail:\n `could not start \\`${CODING_AGENT_ADAPTER_SPECIFIER}\\``\n + `${result.diagnostic ? `: ${result.diagnostic}` : ''}`,\n fix: CODING_AGENT_ADAPTER_REMEDIATION,\n };\n }\n}\n\n/**\n * Resolve the pinned OpenCode binary, by ABSOLUTE PATH rather than through `PATH`.\n *\n * The installer places exactly one verified build at a version-qualified path,\n * so \"which build answered\" has a single answer. Resolving through `PATH` would\n * silently prefer whatever an operator installed by hand — which is how a probe\n * comes to report on a different binary from the one a run will execute.\n */\nexport function resolvePinnedOpenCodeAgentPath(): string {\n // Delegates: the provider that SPAWNS this agent needs the same path, and two\n // derivations of one path is how a probe comes to report on a different binary\n // from the one a run executes.\n return resolveOpenCodeAgentExecutablePath(homedir());\n}\n\n/**\n * Probe the OPTIONAL multi-provider coding agent.\n *\n * Calibrated differently from the adapter check, deliberately. OpenCode is not\n * installed on every machine and is not needed by a developer who never\n * dispatches a coding task through it, so ABSENT is reported as a pass with a\n * detail rather than as a warning: a permanently yellow line for an unused\n * capability is what trains an operator to skim past the lines that matter.\n *\n * A binary that IS installed and cannot speak ACP is a different thing — that\n * is a broken install rather than an absent one, and it warns.\n */\nexport function checkOpenCodeAgent(\n options: { probe?: (command: string) => CodingAgentAdapterProbeResult; binaryPath?: string } = {},\n): LocalPreconditionCheckResult {\n const name = 'OpenCode ACP agent (optional)';\n const binaryPath = options.binaryPath ?? resolvePinnedOpenCodeAgentPath();\n\n if (!existsSync(binaryPath)) {\n return {\n name,\n status: LocalPreconditionCheckStatus.PASS,\n detail: `not installed — optional; the pinned build would live at ${binaryPath}`,\n };\n }\n\n const probe = options.probe ?? ((command: string) =>\n probeCodingAgentAdapter({ command, args: [...OPENCODE_AGENT_ARGS] }));\n const result = probe(binaryPath);\n\n switch (result.status) {\n case CodingAgentAdapterProbeStatus.OK:\n return {\n name,\n status: LocalPreconditionCheckStatus.PASS,\n detail:\n `${result.agentName ?? 'OpenCode'}${result.agentVersion ? `@${result.agentVersion}` : ''}`\n + ` speaks ACP v${result.negotiatedProtocolVersion}`,\n };\n case CodingAgentAdapterProbeStatus.UNSUPPORTED_PROTOCOL:\n return {\n name,\n status: LocalPreconditionCheckStatus.WARN,\n detail:\n `the installed OpenCode negotiated ACP v${result.negotiatedProtocolVersion}, which this framework does `\n + `not implement (supported: ${SUPPORTED_ACP_PROTOCOL_VERSIONS.join(', ')}). A coding dispatch will be refused.`,\n fix: `Re-run the installer to restore the pinned v${OPENCODE_AGENT_VERSION} build.`,\n };\n case CodingAgentAdapterProbeStatus.ABSENT:\n default:\n return {\n name,\n status: LocalPreconditionCheckStatus.WARN,\n detail: `a binary exists at ${binaryPath} but did not complete an ACP handshake`\n + `${result.diagnostic ? `: ${result.diagnostic}` : ''}`,\n fix: `Delete ${binaryPath} and re-run the installer to restore the verified v${OPENCODE_AGENT_VERSION} build.`,\n };\n }\n}\n\n/**\n * The Compose plugin must accept `start_interval`, which every healthcheck in\n * the generated local compose project declares (Compose >= 2.24 / Docker\n * Desktop >= 25).\n *\n * FAILS rather than warns: this is a hard blocker — the compose project is\n * rejected wholesale, so nothing downstream can run. An UNDETECTABLE version\n * also fails, because \"no Compose plugin\" is the same blocker wearing a\n * different message, and treating unknown as acceptable would let the exact\n * fresh-install host this gate exists for sail through.\n */\nexport function checkDockerComposeVersion(\n options: { detectVersion?: () => string | null } = {},\n): LocalPreconditionCheckResult {\n const detect = options.detectVersion ?? (() => detectDockerComposeVersion());\n const version = detect();\n\n if (version === null) {\n return {\n name: 'docker compose version',\n status: LocalPreconditionCheckStatus.FAIL,\n detail: `Docker Compose plugin not detected (need >= ${MINIMUM_DOCKER_COMPOSE_VERSION})`,\n fix: COMPOSE_UPGRADE_REMEDIATION,\n };\n }\n if (!isComposeVersionAtLeast(version, MINIMUM_DOCKER_COMPOSE_VERSION)) {\n return {\n name: 'docker compose version',\n status: LocalPreconditionCheckStatus.FAIL,\n detail:\n `v${version} is too old — the local compose healthchecks use \\`start_interval\\`, `\n + `which needs Compose >= ${MINIMUM_DOCKER_COMPOSE_VERSION} (Docker Desktop >= 25). `\n + 'Without it the whole project is rejected with '\n + '\"Additional property start_interval is not allowed\".',\n fix: COMPOSE_UPGRADE_REMEDIATION,\n };\n }\n return {\n name: 'docker compose version',\n status: LocalPreconditionCheckStatus.PASS,\n detail: `v${version} (>= ${MINIMUM_DOCKER_COMPOSE_VERSION})`,\n };\n}\n\n/**\n * Every runtime host that a `wildo config sync` would give a\n * `src/generated/wildo-provider-runtime.generated.ts` module must have it on\n * disk — the host's own `src/index.ts` imports it, so an absent module is a\n * compile error the operator meets as an endlessly repeating `TS2307` rather\n * than as a missing setup step.\n *\n * FAILS rather than warns: no affected host compiles at all.\n *\n * The expected set comes from the sync service's own target resolver, never\n * from a list maintained here — see\n * `resolveExpectedProviderRuntimeSourceModulePaths`.\n */\nexport async function checkProviderRuntimeGeneratedModules(\n saasRoot: string,\n options: {\n resolveExpectedModulePaths?: (saasRoot: string) => Promise<string[]>;\n moduleExists?: (modulePath: string) => boolean;\n } = {},\n): Promise<LocalPreconditionCheckResult> {\n const name = 'generated provider-runtime modules';\n const resolveExpected = options.resolveExpectedModulePaths ?? resolveExpectedProviderRuntimeSourceModulePaths;\n const moduleExists = options.moduleExists ?? ((modulePath: string) => existsSync(modulePath));\n\n let expectedModulePaths: string[];\n try {\n expectedModulePaths = await resolveExpected(saasRoot);\n } catch (error) {\n // A configuration that cannot be loaded is a different problem with a\n // different owner. Report it as unknown — claiming \"present\" would hide\n // the very gap this check exists for, and claiming \"missing\" would blame\n // provider sync for a broken `wildo.saas.config.ts`.\n return {\n name,\n status: LocalPreconditionCheckStatus.WARN,\n detail: `could not determine the expected modules: ${ErrorUtils.extractErrorMessage(error)}`,\n fix: `Resolve the configuration error above, then run \\`wildo config sync\\`.`,\n };\n }\n\n if (expectedModulePaths.length === 0) {\n return { name, status: LocalPreconditionCheckStatus.PASS, detail: 'no runtime host requires one' };\n }\n\n const missing = expectedModulePaths.filter((modulePath) => !moduleExists(modulePath));\n if (missing.length === 0) {\n return {\n name,\n status: LocalPreconditionCheckStatus.PASS,\n detail: `${expectedModulePaths.length} runtime host${expectedModulePaths.length === 1 ? '' : 's'}`,\n };\n }\n\n return {\n name,\n status: LocalPreconditionCheckStatus.FAIL,\n detail:\n `${missing.length} of ${expectedModulePaths.length} missing: `\n + missing.map((modulePath) => relativeToRootForDisplay(saasRoot, modulePath)).join(', '),\n fix: PROVIDER_RUNTIME_SYNC_REMEDIATION,\n };\n}\n\n/**\n * Would the processes that READ the generated provider runtime artifacts accept them? (#2254)\n *\n * `checkProviderRuntimeGeneratedModules` asks whether the files EXIST; this asks whether their readers\n * would REFUSE them, through the readers' own predicates — see `findRefusedProviderRuntimeArtifacts`\n * for why that, and nothing in the file itself, is the only sound test.\n *\n * FAILS, like the existence check beside it: a refused artifact stops its reader. In the `dev` preflight\n * it is the residue of a repair that already ran (`regenerateUnusableProviderRuntimeModules`), so a\n * failure here means the regeneration itself could not produce an acceptable file.\n */\nexport function checkProviderRuntimeArtifactContent(\n saasRoot: string,\n options: { findRefused?: (saasRoot: string) => RefusedProviderRuntimeArtifact[]; countExisting?: (saasRoot: string) => number } = {},\n): LocalPreconditionCheckResult {\n const name = 'generated provider-runtime artifact content';\n const examined = (options.countExisting ?? countExistingProviderRuntimeArtifacts)(saasRoot);\n if (examined === 0) {\n return { name, status: LocalPreconditionCheckStatus.PASS, detail: 'none generated yet' };\n }\n const refused = (options.findRefused ?? findRefusedProviderRuntimeArtifacts)(saasRoot);\n if (refused.length === 0) {\n return { name, status: LocalPreconditionCheckStatus.PASS, detail: `${examined} artifact${examined === 1 ? '' : 's'} accepted by their readers` };\n }\n return {\n name,\n status: LocalPreconditionCheckStatus.FAIL,\n detail: `${refused.length} of ${examined} would be refused by the process that reads them: `\n + refused.map((artifact) => `${artifact.relativePath}: ${artifact.reason}`).join(' · '),\n fix: 'Regenerate them: `wildo -y config sync --local` (it rotates no secret), then let the refused process restart',\n };\n}\n\n/** Counts only the kinds the check examines, so a pass never counts a file nobody read (#2254 review). */\nfunction countExistingProviderRuntimeArtifacts(saasRoot: string): number {\n return PROVIDER_RUNTIME_ARTIFACT_KINDS_READ_AS_JSON\n .filter((kind) => existsSync(join(saasRoot, PROVIDER_RUNTIME_ARTIFACT_RELATIVE_PATHS[kind]))).length;\n}\n\n/**\n * Report — never terminate — dev process groups whose leader lost its parent.\n *\n * WARNS rather than fails: the state is recoverable with one documented\n * command, and reaping belongs to `wildo dev force-stop` (which already routes\n * through the same `LocalRuntimeProcessCleanupService`). `wildo local dev`\n * additionally reaps them itself at startup, so a warning here is a diagnosis,\n * not an obstacle.\n *\n * Only ORPHANS are reported. A healthy `wildo local dev` running in another\n * terminal matches exactly the same patterns; flagging it would make the\n * warning permanent noise for the most normal state there is.\n */\nexport function checkOrphanedDevWatchers(\n scopedRoots: readonly string[],\n options: {\n collectCandidates?: (scopedRoots: readonly string[]) => LocalRuntimeProcessGroupCandidate[];\n } = {},\n): LocalPreconditionCheckResult {\n const name = 'orphaned dev watchers';\n if (scopedRoots.length === 0) {\n return { name, status: LocalPreconditionCheckStatus.PASS, detail: 'no scoped root to inspect' };\n }\n const collect = options.collectCandidates\n ?? ((roots: readonly string[]) => LocalRuntimeProcessCleanupService.collectCandidateProcessGroups(roots));\n\n let candidates: LocalRuntimeProcessGroupCandidate[];\n try {\n candidates = collect(scopedRoots);\n } catch (error) {\n return {\n name,\n status: LocalPreconditionCheckStatus.WARN,\n detail: `could not inspect the process table: ${ErrorUtils.extractErrorMessage(error)}`,\n fix: ORPHANED_DEV_WATCHER_REMEDIATION,\n };\n }\n\n const orphans = candidates.filter((candidate) => candidate.leaderIsOrphaned);\n if (orphans.length === 0) {\n return { name, status: LocalPreconditionCheckStatus.PASS, detail: 'none' };\n }\n\n return {\n name,\n status: LocalPreconditionCheckStatus.WARN,\n detail:\n `${orphans.length} process group${orphans.length === 1 ? '' : 's'} left by a dead session `\n + `(still holding dist single-writer locks, which blocks compile readiness): `\n + orphans.map((orphan) => `pgid ${orphan.processGroupId} ${truncateCommand(orphan.command)}`).join('; '),\n fix: ORPHANED_DEV_WATCHER_REMEDIATION,\n };\n}\n\n/**\n * Where the standalone currency sweep lives inside a framework checkout.\n *\n * A plain `.mjs` with no dependencies and no build step, invoked as a subprocess rather than\n * imported: it must stay runnable when this CLI's own `dist` is one of the suspects, which on\n * 2026-08-27 it was. One implementation, two surfaces — the same reason\n * `collectLocalPreconditionChecks` exists at all.\n */\nexport const DERIVED_ARTIFACT_CURRENCY_SWEEP_RELATIVE_PATH = 'scripts/dev-orchestrator/derived-artifact-currency-sweep.mjs';\n\n/** How long the sweep may take before doctor stops waiting. It walks every dist tree; ~5 s is typical. */\nconst DERIVED_ARTIFACT_CURRENCY_TIMEOUT_MS = 90_000;\n\n/**\n * Is every DERIVED artifact on this machine current with the source it was derived from?\n *\n * The one question nothing in this repository asked, and the one that mattered EIGHT times over\n * 2026-08-27/28 (issue #86). Not one of those failures was a logic bug: a dist, an injected `file:`\n * snapshot, an accepted-generation manifest, a virtual-store key, a config-loader cache bucket or a\n * running process had simply stopped matching its source, and every existing check answered the\n * neighbouring question — *\"is this file correct?\"* — perfectly. Three were misdiagnosed as semantic\n * conflicts in committed code before anyone dated the artifact.\n *\n * WARNS, never fails, on every host. Three separate reasons, and the first is decisive:\n *\n * - **A currency check that failed a boot would be a new way to break the stack.** That is the\n * opposite of the point, and it is the deadlock shape\n * `.claude/rules/continuity-drift-and-cas-basis.md` Rule 3 forbids — a startup path refusing over\n * something whose remedy needs the thing that just refused. Every remedy here is \"delete this\n * generated thing and let it rebuild\", which needs the dev stack the refusal would have stopped.\n * - **Some findings are legitimately transient.** A watcher mid-cycle, a supervised runtime a\n * minute behind a rebuild it is about to be respawned for. The sweep applies a grace and prints\n * the delta; a hard stop would have to be right about every one of those, and it would not be.\n * - **Several findings are advisory by nature** — unreferenced virtual-store keys cost disk and\n * nothing else.\n *\n * The detail here is a SUMMARY on purpose. The full report names every artifact with both\n * timestamps and its own remedy, which is more than a doctor line can carry; `fix` is the exact\n * command that prints it. A summary that forced the reader to go searching would reproduce the\n * defect this exists to remove, so the summary always names the worst artifact it found.\n *\n * `not-probed` (reported as PASS with an explicit detail, the idiom `checkCxx20Toolchain` uses for\n * Windows) covers the honest cases: no framework checkout resolved, or the sweep script absent —\n * which is the normal state for a generated application that consumes published packages and has no\n * framework repository to compare against.\n */\nexport function checkDerivedArtifactCurrency(input: {\n frameworkPath?: string | null;\n saasRoot?: string | null;\n runSweep?: (scriptPath: string, args: readonly string[]) => { status: number | null; stdout: string; stderr: string };\n}): LocalPreconditionCheckResult {\n const name = 'derived-artifact currency';\n const { frameworkPath, saasRoot } = input;\n\n if (!frameworkPath) {\n return {\n name,\n status: LocalPreconditionCheckStatus.PASS,\n detail:\n 'not probed — no framework checkout is resolved, and the sweep compares derived artifacts against the'\n + ' framework source they came from.',\n };\n }\n\n const scriptPath = join(frameworkPath, DERIVED_ARTIFACT_CURRENCY_SWEEP_RELATIVE_PATH);\n if (!existsSync(scriptPath)) {\n return {\n name,\n status: LocalPreconditionCheckStatus.PASS,\n detail: `not probed — ${DERIVED_ARTIFACT_CURRENCY_SWEEP_RELATIVE_PATH} is absent from ${frameworkPath}.`,\n };\n }\n\n const args = ['--json', '--framework-root', frameworkPath, ...(saasRoot ? ['--app-root', saasRoot] : [])];\n const run = input.runSweep ?? defaultRunDerivedArtifactCurrencySweep;\n const manualCommand = `node ${scriptPath}${saasRoot ? ` --app-root ${saasRoot}` : ''}`;\n\n let report: DerivedArtifactCurrencyReport;\n try {\n const result = run(scriptPath, args);\n report = JSON.parse(result.stdout) as DerivedArtifactCurrencyReport;\n } catch (error) {\n return {\n name,\n status: LocalPreconditionCheckStatus.PASS,\n detail: `not probed — the sweep could not be run: ${ErrorUtils.extractErrorMessage(error)}`,\n fix: `Run it directly to see why: \\`${manualCommand}\\``,\n };\n }\n\n const stale = report.surfaces.filter((surface) => surface.status === DerivedArtifactCurrencyStatus.STALE);\n const probed = report.surfaces.filter((surface) => surface.status !== DerivedArtifactCurrencyStatus.NOT_PROBED);\n\n if (stale.length === 0) {\n // An empty population is reported as such rather than as success — the sweep itself refuses to\n // call a surface OK when it examined nothing, and that distinction must survive the summary.\n const unprobed = report.surfaces.length - probed.length;\n return {\n name,\n status: LocalPreconditionCheckStatus.PASS,\n detail:\n `${probed.length} of ${report.surfaces.length} surfaces probed, none stale`\n + `${unprobed > 0 ? ` (${unprobed} not probed on this machine)` : ''}.`,\n };\n }\n\n const worst = stale[0].findings[0];\n return {\n name,\n status: LocalPreconditionCheckStatus.WARN,\n detail:\n `${report.findingCount} stale derived artifact${report.findingCount === 1 ? '' : 's'} across `\n + `${stale.map((surface) => `${surface.surface} (${surface.findings.length})`).join(', ')}. `\n + `e.g. ${worst?.detail ?? '(no detail)'}`,\n fix:\n `Read the full report — every artifact with both timestamps and its own remedy: \\`${manualCommand}\\`. `\n + 'Nothing there blocks the stack; each finding names the generated thing to delete or rebuild.',\n };\n}\n\n/**\n * The per-surface verdict the currency sweep emits — a MIRROR of `CurrencyStatus` in\n * `scripts/dev-orchestrator/derived-artifact-currency.mjs`, deliberately re-declared rather than\n * imported: that sweep is a repository script, this is a package, and a package may not reach\n * into `scripts/`. So the two sides own their own named source and the JSON payload is the\n * contract between them, exactly as the ETL pipeline mirrors data-seeding's orphan policy.\n *\n * The distinction each member carries is why this vocabulary must be named rather than inlined:\n * NOT_PROBED is NOT a quieter OK — a surface that examined nothing has learned nothing, and the\n * summary reports the two separately on purpose (the sweep refuses to call an unexamined surface\n * current, and that refusal has to survive the trip through this consumer).\n */\nexport enum DerivedArtifactCurrencyStatus {\n /** The surface was examined and everything it holds is current. */\n OK = 'ok',\n /** The surface was examined and holds at least one artifact older than what it derives from. */\n STALE = 'stale',\n /** Not examined on this machine — nothing was learned, which is not the same as nothing wrong. */\n NOT_PROBED = 'not-probed',\n}\n\n/** The report shape the sweep emits under `--json`. Kept minimal — only what this summary reads. */\ninterface DerivedArtifactCurrencyReport {\n readonly findingCount: number;\n readonly surfaces: readonly {\n readonly surface: string;\n readonly status: DerivedArtifactCurrencyStatus;\n readonly findings: readonly { readonly detail: string; readonly artifact: string }[];\n }[];\n}\n\nfunction defaultRunDerivedArtifactCurrencySweep(scriptPath: string, args: readonly string[]): { status: number | null; stdout: string; stderr: string } {\n const result = spawnSync(process.execPath, [scriptPath, ...args], {\n encoding: 'utf8',\n timeout: DERIVED_ARTIFACT_CURRENCY_TIMEOUT_MS,\n stdio: ['ignore', 'pipe', 'pipe'],\n });\n if (result.error) throw result.error;\n return { status: result.status, stdout: result.stdout ?? '', stderr: result.stderr ?? '' };\n}\n\n/**\n * The complete precondition SET, in report order.\n *\n * `wildo local doctor` and the `wildo local dev` preflight both call this\n * rather than assembling their own list — otherwise \"the preflight runs the\n * same checks as doctor\" is a claim in a docblock instead of a property of the\n * code, which is exactly how the preflight came to run only `docker info`\n * while its docblock promised the full diagnostic.\n *\n * Scoped roots for the orphan check mirror `wildo dev force-stop`: the app\n * root always, plus the framework checkout for a framework developer, because\n * the blocking `dist/**/.builder.pid` locks live under `engine/**` there and\n * an orphaned engine watcher is unreachable from the app root alone.\n *\n * HOST TOOLCHAIN checks come first, ahead of Docker Compose. They sit lower in\n * the stack than anything else here — a host with no usable pnpm cannot act on\n * a Compose diagnostic anyway — and reporting them first means the operator\n * reads the causes before the consequences.\n */\n/**\n * The conventional home of an application's custom role table. Every scaffolded application has it\n * at this path; an application that does not is reported as `not-probed`, not as a failure.\n */\nconst CUSTOM_ROLES_RELATIVE_PATH = 'shared-lib/src/engine/roles.ts';\n\n/** The two scopes `addCustomRoles` actually files a role under. Everything else is skipped. */\nconst CUSTOM_ROLE_SUPPORTED_SCOPES = ['APPLICATION', 'ORGANIZATIONS'] as const;\n\n/**\n * Does any custom role declare a scope the authorization layer will silently skip? (#425)\n *\n * `AuthorizationsBackendService.addCustomRoles` files a role under APPLICATION or ORGANIZATIONS and\n * **warns and skips** anything else — a `USER_SELF` role, or an unknown scope. So a misdeclared role\n * ships INERT: the application carries a role its authorization never sees, and the only trace is\n * one line in a startup log nobody reads after the first boot.\n *\n * ## Why this is a diagnostic and not a refusal\n *\n * Refusing at startup was the alternative, and it was rejected on #425: it turns a silently-inert\n * role into a BOOT FAILURE for any application that already carries one, which is precisely why the\n * current behaviour is a warning. So the runtime keeps skipping and this check moves the signal to\n * where an author actually reads — with the cost that it relies on someone running `wildo local\n * doctor`, which is stated rather than hidden.\n *\n * ## Why the signal is deliberately loud\n *\n * The failure being replaced is a warning nobody reads, and a quiet diagnostic line reproduces it\n * exactly. So the detail names the role, the scope it declared, the scopes that exist, and says\n * outright that the role is INERT — not \"may not be applied\", which reads as a caveat.\n *\n * Read from SOURCE rather than from a loaded config, because the role table is application\n * TypeScript the CLI cannot import: it is authored beside the app's own code and reaches the\n * authorization layer through the backend at startup. A literal `relatedPrimaryScope:\n * ResourcePrimaryScope.X` is what an author writes, and it is what this reads.\n */\nexport function checkCustomRoleScopes(\n saasRoot: string,\n options: { readFile?: (path: string) => string | null } = {},\n): LocalPreconditionCheckResult {\n const name = 'custom role scopes';\n const rolesPath = join(saasRoot, CUSTOM_ROLES_RELATIVE_PATH);\n const read = options.readFile ?? ((path: string) => (existsSync(path) ? readFileSync(path, 'utf8') : null));\n\n const source = read(rolesPath);\n if (source === null) {\n return {\n name,\n status: LocalPreconditionCheckStatus.PASS,\n detail: `not-probed — no ${CUSTOM_ROLES_RELATIVE_PATH}`,\n };\n }\n\n /*\n * One match per authored `relatedPrimaryScope:` property, with the nearest preceding object key\n * read as the role. A regex rather than a TypeScript program because this runs on every `doctor`\n * and the question is lexical: what scope literal did the author write beside this role.\n */\n const declared: Array<{ roleKey: string; scope: string }> = [];\n const scopePattern = /relatedPrimaryScope\\s*:\\s*ResourcePrimaryScope\\.([A-Z_]+)/gu;\n for (const match of source.matchAll(scopePattern)) {\n const before = source.slice(0, match.index ?? 0);\n const keyMatches = [...before.matchAll(/(?:^|[\\s{,])\\[?\\s*['\"`]?([A-Za-z0-9_.]+)['\"`]?\\s*\\]?\\s*:\\s*\\{/gmu)];\n const roleKey = keyMatches.length > 0 ? keyMatches[keyMatches.length - 1][1] : '(unnamed role)';\n declared.push({ roleKey, scope: match[1] });\n }\n\n if (declared.length === 0) {\n return { name, status: LocalPreconditionCheckStatus.PASS, detail: `no custom role declares a scope in ${CUSTOM_ROLES_RELATIVE_PATH}` };\n }\n\n const inert = declared.filter((role) => !CUSTOM_ROLE_SUPPORTED_SCOPES.includes(role.scope as (typeof CUSTOM_ROLE_SUPPORTED_SCOPES)[number]));\n if (inert.length === 0) {\n return { name, status: LocalPreconditionCheckStatus.PASS, detail: `${declared.length} custom role(s), every scope supported` };\n }\n\n const listed = inert.map((role) => `\"${role.roleKey}\" (${role.scope})`).join(', ');\n return {\n name,\n status: LocalPreconditionCheckStatus.WARN,\n detail:\n `${inert.length} custom role(s) declare a scope the authorization layer SKIPS, so each one is INERT — `\n + `it is never applied and no request will ever match it: ${listed}. `\n + `Custom roles are supported at ${CUSTOM_ROLE_SUPPORTED_SCOPES.join(' and ')} only.`,\n fix: `Edit ${CUSTOM_ROLES_RELATIVE_PATH} and give each listed role \\`relatedPrimaryScope: ResourcePrimaryScope.APPLICATION\\` or \\`.ORGANIZATIONS\\`, or delete it.`,\n };\n}\n\n/**\n * Is the coding agent this machine selected signed in? (#1637)\n *\n * An agent with no login completes the ACP handshake and fails on its first prompt, mid-run, so the\n * handshake check above says nothing about it. The agent's own status command does, from local state.\n */\nexport function checkSelectedCodingAgentLogin(input: { preference?: string; failWhenUnusable: boolean }): LocalPreconditionCheckResult {\n const name = 'coding agent login';\n let agent: CodingAgentOption;\n try {\n agent = resolveSelectedCodingAgent({ preference: input.preference });\n } catch (error) {\n // An unknown name is a misconfiguration every coding run would refuse on, but it blocks nothing\n // else — so `dev` warns and starts the stack, and only `doctor` fails, like a signed-out agent.\n return {\n name,\n status: input.failWhenUnusable ? LocalPreconditionCheckStatus.FAIL : LocalPreconditionCheckStatus.WARN,\n detail: ErrorUtils.extractErrorMessage(error),\n fix: 'Choose one with `wildo prefs set --coding-agent <agent>`.',\n };\n }\n const report = checkCodingAgentLogin(agent);\n if (report.state === CodingAgentHostLoginState.SIGNED_IN) {\n return { name, status: LocalPreconditionCheckStatus.PASS, detail: `${agent.providerRef}: ${report.detail}` };\n }\n // Only a definite SIGNED_OUT is unusable, which is also the only state a dispatch refuses on. A\n // missing status command says nothing about the agent: the Claude and Codex agents run through npx\n // adapters that do not need `claude` / `codex` on PATH.\n const signedOut = report.state === CodingAgentHostLoginState.SIGNED_OUT;\n return {\n name,\n status: signedOut && input.failWhenUnusable ? LocalPreconditionCheckStatus.FAIL : LocalPreconditionCheckStatus.WARN,\n detail: signedOut\n ? `${agent.providerRef} (${CODING_AGENT_LOGIN_STATE_WORDS[report.state]}): ${report.detail} Coding runs are refused until you sign in.`\n : `${agent.providerRef} (${CODING_AGENT_LOGIN_STATE_WORDS[report.state]}): ${report.detail}`,\n fix: report.remedy ?? `Run \\`${agent.hostLogin.statusCommand} ${agent.hostLogin.statusArgs.join(' ')}\\` to see why.`,\n };\n}\n\n/**\n * #2891 — apps-manager's key-encryption root. apps-manager starts without one and refuses its first key operation; it\n * refuses to start with a MALFORMED one, so that is named here, before the boot does. Read from the environment's secrets.json, the one source every lane's apps-manager env is generated from;\n * the value is never printed.\n *\n * Only a secrets.json that holds the platform's own materials is asked: the response keys are the sibling material\n * that says so (a hosted application's secrets.json holds neither; its host's does). An absent root is a WARN, because\n * `wildo local dev` and `wildo config sync` mint it before apps-manager boots; a malformed one is a FAIL, because no\n * command repairs it without losing the keys sealed under it. This check cannot see whether keys were ever sealed (they\n * live in apps-manager's store), so the absent-root remedy names both cases: a platform that never had a root mints one,\n * and one that lost it restores it from backup, because a newly minted root cannot open the keys the old one sealed.\n */\nexport function checkKeyEncryptionRoot(secrets: PlatformEnvSecretsJson | null): LocalPreconditionCheckResult {\n const name = 'key-encryption root';\n if (!secrets?.platform?.appsManagerResponseSigning) {\n return { name, status: LocalPreconditionCheckStatus.PASS, detail: 'this environment\\'s secrets hold no platform materials (none yet, or its platform is hosted elsewhere)' };\n }\n const root = secrets.platform.keyEncryptionRoot?.current;\n if (!root) {\n return {\n name,\n status: LocalPreconditionCheckStatus.WARN,\n detail: 'secrets.json has no platform key-encryption root; apps-manager cannot seal or use a key without one',\n fix:\n 'If this platform has never had one, run `wildo config sync` (or `wildo local dev`), then back it up with the platform\\'s other secrets. '\n + 'If it had one, restore it from your secrets backup instead: a new root cannot open the keys the old one sealed. Only if it is lost for good, '\n + 'mint a new one and run `wildo keys rotate --root-lost --reason \"<why>\"` for each application.',\n };\n }\n const wellFormed = (value: string): boolean => /^[A-Za-z0-9_-]+$/.test(value) && Buffer.from(value, 'base64url').length === 32;\n const previous = secrets.platform.keyEncryptionRoot?.previous;\n if (!wellFormed(root) || (previous !== undefined && previous !== '' && !wellFormed(previous))) {\n return {\n name,\n status: LocalPreconditionCheckStatus.FAIL,\n detail: 'the platform key-encryption root in secrets.json is not 32 bytes of base64url, so apps-manager will refuse to start',\n fix: 'Restore it from your secrets backup. Do not replace it with a new value: a different root cannot open the keys already sealed under it.',\n };\n }\n return { name, status: LocalPreconditionCheckStatus.PASS };\n}\n\n/**\n * The memory the dev companion needs for a large application, and the share of the machine its supervisor\n * gives it (#3205). Mirrors `COMPANION_HEAP_POLICY` in the companion's `companion-supervisor.mjs`, which\n * this package cannot import; `local-precondition-checks.companion-heap.test.ts` holds the two equal.\n */\nexport const COMPANION_HEAP_RECOMMENDED_MINIMUM_MB = 6_144;\nexport const COMPANION_HEAP_DEFAULT_HOST_FRACTION = 0.5;\nexport const COMPANION_HEAP_MAXIMUM_DEFAULT_MB = 12_288;\n\n/**\n * Whether this machine can give the dev companion the heap a large application needs (#3205).\n *\n * WARNS, never fails: a small application runs in far less, and the companion's supervisor sizes its heap\n * from physical memory regardless. On app-creation-test-007 (about 100 landed build tasks) the companion held\n * 3.0-3.5 GB within 40 s of starting and died of an out-of-memory error under Node's default ~4 GB ceiling,\n * twice in a day, each time ending a build wave. A machine that cannot offer\n * {@link COMPANION_HEAP_RECOMMENDED_MINIMUM_MB} at the supervisor's share is told so before the wave, not\n * after it.\n */\nexport function checkCompanionHeapHeadroom(options: { totalMemoryBytes?: number } = {}): LocalPreconditionCheckResult {\n const name = 'companion memory';\n const hostMb = Math.floor((options.totalMemoryBytes ?? totalmem()) / (1024 * 1024));\n const heapMb = Math.floor(hostMb * COMPANION_HEAP_DEFAULT_HOST_FRACTION);\n if (heapMb < COMPANION_HEAP_RECOMMENDED_MINIMUM_MB) {\n return {\n name,\n status: LocalPreconditionCheckStatus.WARN,\n detail: `${hostMb} MB of memory, so the dev companion's heap is limited to ${heapMb} MB; creating a large application `\n + `(about 100 build tasks) needs about ${COMPANION_HEAP_RECOMMENDED_MINIMUM_MB} MB, and the companion may run out of memory mid-build.`,\n fix: 'Run creation on a machine with at least 16 GB of memory, or close other memory-heavy processes during a build wave.',\n };\n }\n return { name, status: LocalPreconditionCheckStatus.PASS, detail: `${hostMb} MB of memory; the dev companion's heap may grow to ${Math.min(heapMb, COMPANION_HEAP_MAXIMUM_DEFAULT_MB)} MB` };\n}\n\n/** What the running companion said about the specifications package (#3211), or why it could not be asked. */\nexport type SpecificationFindingsRead =\n | {\n readonly faults: readonly CreationConsole_SpecificationFault[];\n /** The modules it could not evaluate (#3258); empty from a companion older than that. */\n readonly moduleFaults: readonly CreationConsole_SpecificationModuleFault[];\n readonly loadError: string | null;\n }\n | { readonly notReadBecause: string };\n\n/**\n * Ask the running dev companion which specifications it refused to serve (#3211): `GET /specifications/findings`. Only\n * the companion can answer — it evaluates the package through the loader that collects the refusals — so a companion\n * that is not running is reported as not asked, never as a clean package.\n */\nexport async function readSpecificationFindingsFromCompanion(options: CompanionClientOptions): Promise<SpecificationFindingsRead> {\n try {\n const findings = await CompanionClient.get<{ readonly faults?: unknown; readonly moduleFaults?: unknown; readonly loadError?: unknown }>('/api/companion/specifications/findings', options);\n if (!Array.isArray(findings.faults)) return { notReadBecause: 'the dev companion does not report specification findings (older than #3211)' };\n return {\n faults: findings.faults as CreationConsole_SpecificationFault[],\n moduleFaults: Array.isArray(findings.moduleFaults) ? findings.moduleFaults as CreationConsole_SpecificationModuleFault[] : [],\n loadError: typeof findings.loadError === 'string' ? findings.loadError : null,\n };\n } catch (error) {\n // Three different answers, and only one is \"not reachable\": a busy companion that did not answer in time is\n // reachable (measured 2026-11-03: a 37 s read against the 30 s limit was reported as unreachable while the\n // companion was up), and one that answered with an error status was reached and refused.\n if (error instanceof CompanionRequestTimeoutError) {\n return { notReadBecause: `the dev companion did not answer within ${Math.round(error.timeoutMs / 1000)} s (it is busy; run the doctor again when it is idle)` };\n }\n if (error instanceof CompanionRefusalError) return { notReadBecause: `the dev companion answered ${error.status}` };\n return { notReadBecause: 'the dev companion is not reachable' };\n }\n}\n\n/**\n * The doctor line for the application's specifications (#3211).\n *\n * - A refused specification WARNS: the companion drops it and keeps serving every other one, so nothing stops, but the\n * specification is absent from every board, every brief and every label run until it is fixed, and only the creation\n * feed and `wildo build tasks` said so before this line.\n * - A module that could not be evaluated (#3258) WARNS for the same reason: it serves nothing, every other module\n * does. Its line says how to read it — a module whose code could not run is first a question about the builds of the\n * packages it imports.\n * - A package that cannot be evaluated at all FAILS: the build-task list, `wildo creation why` and the next wave all\n * refuse while it holds.\n * - A companion that was not asked PASSES as not probed, with the reason: a warning for a capability nobody can check\n * right now trains the reader to skim this table.\n */\nexport function checkSpecificationFindings(read: SpecificationFindingsRead): LocalPreconditionCheckResult {\n const name = 'specifications';\n if ('notReadBecause' in read) {\n return { name, status: LocalPreconditionCheckStatus.PASS, detail: `not probed — ${read.notReadBecause}, and only it evaluates the specifications package` };\n }\n if (read.loadError !== null) {\n return {\n name,\n status: LocalPreconditionCheckStatus.FAIL,\n detail: `the specifications package cannot be evaluated, so the build lane cannot read it: ${read.loadError}`,\n fix: 'Fix the module the error names; when it reads a symbol of the application\\'s own package as undefined, check that package\\'s watcher has published it.',\n };\n }\n if (read.faults.length === 0 && read.moduleFaults.length === 0) {\n return { name, status: LocalPreconditionCheckStatus.PASS, detail: 'every specification is admitted by its factory' };\n }\n const modules = read.moduleFaults.length === 0 ? [] : [\n `${read.moduleFaults.length} specifications module(s) could not be evaluated and serve nothing until fixed: `\n + read.moduleFaults.map((fault) => `${fault.modulePath}${fault.authoredFrame !== null ? ` (at ${fault.authoredFrame})` : ''}: `\n + `${fault.errorName}: ${fault.message} — `\n + `${(fault.withheldSpecifications ?? []).length > 0 ? `unavailable until fixed: ${fault.withheldSpecifications!.join(', ')} — ` : ''}`\n + `${(fault.causedBy ?? []).length > 0 ? `follows from ${fault.causedBy!.join(', ')}` : describeSpecificationModuleFaultReading(fault.reading)}`).join(' | '),\n ];\n const refused = read.faults.length === 0 ? [] : [\n `${read.faults.length} specification(s) refused and not served until fixed: `\n + read.faults.map((fault) => `${fault.kind}${fault.key.length > 0 ? ` ${fault.key}` : ''}${fault.authoredFrame !== null ? ` (at ${fault.authoredFrame})` : ''}: ${fault.message}`).join(' | '),\n ];\n return {\n name,\n status: LocalPreconditionCheckStatus.WARN,\n detail: [...modules, ...refused].join(' · '),\n fix: 'Correct each specification or module as its message says; `wildo build tasks` lists them too.',\n };\n}\n\nexport async function collectLocalPreconditionChecks(input: {\n saasRoot: string | null;\n frameworkPath?: string | null;\n isFrameworkDeveloper?: boolean;\n /**\n * Probe the coding-agent ACP adapter by starting it.\n *\n * OFF by default, and on for `doctor` only. The probe spawns a process and\n * may resolve a package from the network on a cold cache, which is fine in a\n * diagnostic a human asked for and wrong in the `dev` preflight, where it\n * would add seconds to every start for a capability most runs never use.\n * Diagnostics that make the common path slower get skipped by operators, and\n * a skipped diagnostic reports nothing.\n */\n includeCodingAgentProbe?: boolean;\n /**\n * Sweep every derived artifact for currency.\n *\n * OFF by default and on for `doctor` only, for exactly the reason the coding-agent probe is: it\n * walks every `dist/` tree, every injected snapshot and every virtual-store key — several seconds\n * of I/O — which is fine in a diagnostic a human asked for and wrong in the `dev` preflight, where\n * it would tax every start for an answer most starts do not need. Diagnostics that make the common\n * path slower get skipped, and a skipped diagnostic reports nothing.\n *\n * There is a second reason here that does not apply to the coding-agent probe: the preflight runs\n * BEFORE the watcher fleet starts, which is the moment a dist is most legitimately behind its\n * source. Reporting that as a finding on every start would be noise with a grain of truth in it —\n * the worst kind, because operators learn to skim it.\n */\n includeDerivedArtifactCurrencySweep?: boolean;\n /**\n * The machine's coding-agent preference (`preferences.json` → `defaults.codingAgent`), when stated.\n * `WILDO_CODING_AGENT` in the environment still wins, as it does in the companion.\n */\n codingAgentPreference?: string;\n}): Promise<LocalPreconditionCheckResult[]> {\n const {\n saasRoot,\n frameworkPath,\n isFrameworkDeveloper = false,\n includeCodingAgentProbe = false,\n includeDerivedArtifactCurrencySweep = false,\n } = input;\n const results: LocalPreconditionCheckResult[] = [\n checkNodeVersion(),\n checkPnpmToolchain({ manifestPath: resolvePackageManagerManifestPath(input) }),\n checkCxx20Toolchain(),\n checkDockerComposeVersion(),\n checkCompanionHeapHeadroom(),\n ];\n\n if (includeCodingAgentProbe) {\n results.push(checkCodingAgentAdapter());\n // Behind the same flag, for the same reason: both spawn a process and may\n // touch the network on a cold cache, which is why neither runs in the `dev`\n // preflight. The OpenCode check short-circuits to a pass when the optional\n // binary is absent, so adding it costs a `stat` on the common machine.\n results.push(checkOpenCodeAgent());\n }\n\n if (saasRoot) {\n // Always, not behind the probe flag: it reads the agent's local login state and spends nothing.\n // A FAIL in `doctor` (asked for by a person), a WARN in the `dev` preflight, which must still start\n // the stack for everything that does not need the agent.\n results.push(checkSelectedCodingAgentLogin({\n preference: input.codingAgentPreference,\n failWhenUnusable: includeCodingAgentProbe,\n }));\n results.push(await checkProviderRuntimeGeneratedModules(saasRoot));\n results.push(checkProviderRuntimeArtifactContent(saasRoot));\n results.push(checkCustomRoleScopes(saasRoot));\n results.push(checkKeyEncryptionRoot(EnvironmentUtils.loadSecretsJson()));\n // What a generated application needs on its first run (epic #3204): every one was silent until it bit.\n results.push(checkFrontendStylesheetSources(saasRoot));\n results.push(checkFrontendSettingsHubWiring(saasRoot));\n results.push(await checkProviderContributionsShadowingEngine(saasRoot));\n }\n\n const scopedRoots = [\n ...(saasRoot ? [saasRoot] : []),\n ...(frameworkPath && isFrameworkDeveloper ? [frameworkPath] : []),\n ];\n results.push(checkOrphanedDevWatchers(scopedRoots));\n\n if (includeDerivedArtifactCurrencySweep) {\n results.push(checkDerivedArtifactCurrency({ frameworkPath, saasRoot }));\n }\n\n return results;\n}\n\n/**\n * Which manifest's `packageManager` pin the pnpm check compares against.\n *\n * The framework checkout wins for a framework developer, because that is the\n * root they run `pnpm install` in and the one whose pin their pnpm will\n * self-switch to; an application developer's authority is their own app\n * manifest. Returns `null` when neither root is known, which the check treats\n * as \"no declared pin\" — it still verifies pnpm EXECUTES, which is the half\n * that mattered on 2026-08-08.\n *\n * Note this reads the APPLICATION's own manifest for an application developer\n * rather than pushing a framework version at them: pnpm binds both audiences,\n * but each audience's pin is its own. See the audience table in\n * `.claude/rules/toolchain-installation-baseline.md`.\n */\nfunction resolvePackageManagerManifestPath(input: {\n saasRoot: string | null;\n frameworkPath?: string | null;\n isFrameworkDeveloper?: boolean;\n}): string | null {\n const { saasRoot, frameworkPath, isFrameworkDeveloper = false } = input;\n if (isFrameworkDeveloper && frameworkPath) return join(frameworkPath, 'package.json');\n return saasRoot ? join(saasRoot, 'package.json') : null;\n}\n\n/**\n * Display a module path relative to the app root when it is inside it, so the\n * diagnostic line stays readable. Falls back to the absolute path for a host\n * that lives outside the app root — truncating that into a `../../..` chain\n * would be less useful than the full path.\n */\nfunction relativeToRootForDisplay(saasRoot: string, modulePath: string): string {\n const relativePath = relative(saasRoot, modulePath);\n return relativePath.startsWith('..') ? modulePath : relativePath;\n}\n\nfunction truncateCommand(command: string): string {\n return command.length > 80 ? `${command.slice(0, 80)}…` : command;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"local-precondition-checks.service.js","sourceRoot":"","sources":["../../../../src/services/deployment/local-precondition-checks.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA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,IAAI,CAAC,wBAAwB,CAAC,WAAW,CAAC,CAAC,CAAC;IAEpD,IAAI,mCAAmC,EAAE,CAAC;QACxC,OAAO,CAAC,IAAI,CAAC,4BAA4B,CAAC,EAAE,aAAa,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC;IAC1E,CAAC;IAED,OAAO,OAAO,CAAC;AACjB,CAAC;AAED;;;;;;;;;;;;;;GAcG;AACH,SAAS,iCAAiC,CAAC,KAI1C;IACC,MAAM,EAAE,QAAQ,EAAE,aAAa,EAAE,oBAAoB,GAAG,KAAK,EAAE,GAAG,KAAK,CAAC;IACxE,IAAI,oBAAoB,IAAI,aAAa;QAAE,OAAO,IAAI,CAAC,aAAa,EAAE,cAAc,CAAC,CAAC;IACtF,OAAO,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AAC1D,CAAC;AAED;;;;;GAKG;AACH,SAAS,wBAAwB,CAAC,QAAgB,EAAE,UAAkB;IACpE,MAAM,YAAY,GAAG,QAAQ,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;IACpD,OAAO,YAAY,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,YAAY,CAAC;AACnE,CAAC;AAED,SAAS,eAAe,CAAC,OAAe;IACtC,OAAO,OAAO,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC;AACpE,CAAC","sourcesContent":["/**\n * Local-development PRECONDITION checks — the things that must already be true\n * before `wildo local dev` starts doing work.\n *\n * These are deliberately separate from the runtime probes in\n * `wildo local doctor` (container health, loopback binding, backing-service\n * auth). Those answer \"is the running stack healthy?\"; these answer \"can this\n * machine run the stack at all?\" — and each one here was written from a real\n * session (2026-08-08 and 2026-08-11/12) where the answer was NO and the\n * operator found out LATE, several minutes and one cryptic error in — or, for\n * the first three, never, because nothing in this repository looked:\n *\n * 0. **Node on an unsupported major.** The supported version had four\n * disagreeing declarations and the loosest one was the published range.\n * See `SUPPORTED_NODE_MAJOR_VERSION`, now the single source.\n * 0a. **pnpm unusable.** A `packageManager` self-switch aborted mid-download,\n * leaving a 4 KB skeleton with no binary; every `pnpm` call died `ENOENT`\n * and nothing could be installed, built or run.\n * 0b. **C++ toolchain silently a decade stale.** Apple clang 21 over libc++\n * 11.0 — no `<ranges>`, `<format>` or `<coroutine>`. Every native Node\n * addon needing C++20 was unbuildable while every version string looked\n * current.\n * 1. **Docker Compose too old.** Failed with\n * `services.valkey.healthcheck Additional property start_interval is not\n * allowed`, printed AFTER \"Local infrastructure is not running. Starting\n * it...\" — so it read as an infra fault, not a toolchain one.\n * 2. **Provider-runtime modules never materialized.** The companion's\n * `src/index.ts` imports `./generated/wildo-provider-runtime.generated.js`;\n * with no `wildo config sync` behind it, compilation emitted `TS2307:\n * Cannot find module` on repeat, forever, inside the diagnostics block.\n * 3. **Orphaned dev watchers.** `tsc-watch` single-writers from a dead\n * session, reparented to init, still holding `dist/esm/.builder.pid`.\n * Every new watcher then correctly refused to become a second writer and\n * readiness blocked forever on\n * `dependency-compile-status-<pkg>-watcher-exited`.\n *\n * Both consumers — `wildo local doctor` and the `wildo local dev` preflight —\n * call these functions, so the two surfaces cannot drift into disagreeing\n * about what a healthy precondition looks like.\n *\n * Every check is READ-ONLY: it observes and reports, never repairs. `local\n * doctor` advertises itself as a read-only diagnostic and the preflight runs\n * before ownership of anything is established, so a check that mutated would\n * be wrong in both places. Each failing result carries `fix` — the exact\n * command the operator runs next — because a precondition check whose output\n * still requires a search is only half a check.\n */\n\nimport { spawnSync } from 'node:child_process';\nimport { existsSync, readFileSync } from 'fs';\nimport { homedir, totalmem } from 'node:os';\nimport {\n CODING_AGENT_ADAPTER_PACKAGE,\n CODING_AGENT_ADAPTER_SPECIFIER,\n OPENCODE_AGENT_ARGS,\n OPENCODE_AGENT_VERSION,\n resolveOpenCodeAgentExecutablePath,\n SUPPORTED_ACP_PROTOCOL_VERSIONS,\n} from '@wildo-ai/external-connectors-private/backend';\nimport { join, relative } from 'path';\nimport { EnvironmentUtils } from '~wildo-cli/services/environment/environment.service';\nimport type { PlatformEnvSecretsJson } from '~wildo-cli/services/credentials/credentials.schemas';\nimport {\n detectDockerComposeVersion,\n isComposeVersionAtLeast,\n MINIMUM_DOCKER_COMPOSE_VERSION,\n} from '~wildo-cli/services/deployment/docker/docker-compose-readiness.service';\nimport {\n isNodeVersionSupported,\n isVersionAtLeast,\n MINIMUM_PNPM_VERSION,\n probeCxx20Toolchain,\n probePnpmExecutable,\n readDeclaredPackageManagerPnpmVersion,\n SUPPORTED_NODE_MAJOR_VERSION,\n Cxx20ProbeStatus,\n type Cxx20ProbeResult,\n type PnpmProbeResult,\n} from '~wildo-cli/services/deployment/host-toolchain-readiness.service';\nimport {\n LocalRuntimeProcessCleanupService,\n type LocalRuntimeProcessGroupCandidate,\n} from '~wildo-cli/services/deployment/local-runtime-process-cleanup.service';\nimport {\n findRefusedProviderRuntimeArtifacts,\n PROVIDER_RUNTIME_ARTIFACT_KINDS_READ_AS_JSON,\n resolveExpectedProviderRuntimeSourceModulePaths,\n type RefusedProviderRuntimeArtifact,\n} from '~wildo-cli/services/application/provider-runtime-sync.service';\nimport { PROVIDER_RUNTIME_ARTIFACT_RELATIVE_PATHS } from '@wildo-ai/platform-config-lib';\nimport { ErrorUtils } from '~wildo-cli/infrastructure/errors/error.utils';\nimport {\n checkCodingAgentLogin,\n CODING_AGENT_LOGIN_STATE_WORDS,\n resolveSelectedCodingAgent,\n type CodingAgentOption,\n} from '~wildo-cli/services/coding-agents/coding-agent-login.service';\nimport { CodingAgentHostLoginState } from '@wildo-ai/external-connectors-models';\nimport {\n LocalPreconditionCheckStatus,\n type LocalPreconditionCheckResult,\n} from '~wildo-cli/services/deployment/local-precondition-checks.schemas';\nimport type { CreationConsole_SpecificationFault, CreationConsole_SpecificationModuleFault } from '@wildo-ai/platform-core-shared';\nimport { describeSpecificationModuleFaultReading } from '~wildo-cli/services/companion/build-console.service';\nimport { CompanionClient, CompanionRefusalError, CompanionRequestTimeoutError } from '~wildo-cli/services/companion/companion-client.service';\nimport type { CompanionClientOptions } from '~wildo-cli/services/companion/companion.schemas';\nimport {\n checkFrontendSettingsHubWiring,\n checkFrontendStylesheetSources,\n checkProviderContributionsShadowingEngine,\n} from '~wildo-cli/services/deployment/application-first-run-checks.service';\n\n/**\n * The result shape and its status vocabulary live in `local-precondition-checks.schemas.ts` — a\n * module with no host-touching imports, so a consumer that mocks THIS service can still derive from\n * the one named source. See that file for why the split exists.\n */\n\n/** Remediation strings, single-sourced so doctor and the preflight quote the same command. */\nexport const COMPOSE_UPGRADE_REMEDIATION =\n 'Upgrade Docker Desktop (>= 25): `brew upgrade --cask docker` — or download it from https://docker.com/products/docker-desktop. Then re-run `wildo local doctor`.';\nexport const PROVIDER_RUNTIME_SYNC_REMEDIATION =\n 'Materialize the generated runtime artifacts: `wildo config sync`';\nexport const ORPHANED_DEV_WATCHER_REMEDIATION =\n 'Reap them: `wildo dev force-stop`';\nexport const NODE_UPGRADE_REMEDIATION =\n `Install Node ${SUPPORTED_NODE_MAJOR_VERSION}: \\`nvm install ${SUPPORTED_NODE_MAJOR_VERSION} && nvm use ${SUPPORTED_NODE_MAJOR_VERSION}\\``\n + ` (or \\`fnm use ${SUPPORTED_NODE_MAJOR_VERSION}\\`, or download it from https://nodejs.org/). Then re-run \\`wildo local doctor\\`.`;\n// Not corepack: Node 26 no longer ships it, so `corepack enable` is \"command not found\" on the supported Node (#3934).\n// Any pnpm 10 is enough: it switches itself to the application's `packageManager` pin.\nexport const PNPM_REPAIR_REMEDIATION =\n 'Install pnpm: re-run the installer (`curl -fsSL https://get.wildo.ai/install.sh | sh`), which installs the release\\'s pinned pnpm,'\n + ' or `npm install -g pnpm@10`. If a `packageManager` self-switch left a partial download,'\n + ' clear its cache first: `rm -rf ~/Library/pnpm/.tools` (macOS) / `rm -rf ~/.local/share/pnpm/.tools` (Linux).';\nexport const CXX20_TOOLCHAIN_REMEDIATION =\n 'Reinstall the Command Line Tools — this needs YOUR password, so run it yourself:'\n + ' `sudo rm -rf /Library/Developer/CommandLineTools && sudo xcode-select --install`.'\n + ' On Linux, install a C++20 toolchain (GCC >= 10 or Clang >= 16) with your package manager.';\n\n/**\n * The Node this CLI is running under must be on the supported major.\n *\n * FAILS rather than warns. The supported major is a TESTED range, not a\n * preference: it is the version CI exercises and the version the locked native\n * dependencies compile against, and a host below it is running a configuration\n * nothing in this repository verifies. `better-sqlite3` is the concrete\n * precedent in the other direction — 11.x builds on Node 22 and cannot build\n * at all on Node 26 — which is exactly why an unenforced range drifts into\n * claiming support for configurations that do not work.\n *\n * Measures `process.versions.node`: the Node executing this CLI is the Node\n * that will spawn every dev server, watcher and companion behind it, so it is\n * the honest subject even though a `nvm use` in another terminal could differ.\n *\n * `wildo local dev --skip-doctor` remains the documented bypass for an operator\n * who has decided to run unsupported anyway.\n */\nexport function checkNodeVersion(\n options: { nodeVersion?: string; supportedMajor?: number } = {},\n): LocalPreconditionCheckResult {\n const name = 'node version';\n const nodeVersion = options.nodeVersion ?? process.versions.node;\n const supportedMajor = options.supportedMajor ?? SUPPORTED_NODE_MAJOR_VERSION;\n\n if (!isNodeVersionSupported(nodeVersion, supportedMajor)) {\n return {\n name,\n status: LocalPreconditionCheckStatus.FAIL,\n detail:\n `v${nodeVersion} — this repository is developed and CI-tested on Node ${supportedMajor}. `\n + 'Older majors are not exercised anywhere, and the locked native dependencies are built against '\n + `Node ${supportedMajor}'s V8 headers.`,\n fix: NODE_UPGRADE_REMEDIATION,\n };\n }\n return { name, status: LocalPreconditionCheckStatus.PASS, detail: `v${nodeVersion} (supported major: ${supportedMajor})` };\n}\n\n/**\n * pnpm must actually EXECUTE, and should match the `packageManager` pin.\n *\n * The ordering matters and is the whole lesson of the failure this closes. On\n * 2026-08-08 a `packageManager` self-switch aborted mid-download, leaving a\n * 4 KB skeleton with no binary; pnpm was present, on PATH, and every\n * invocation died `ENOENT`. A version comparison cannot see that — the failure\n * IS the absence of a version — so this check runs pnpm first and treats an\n * inability to answer as the hard blocker it is.\n *\n * Three outcomes, deliberately not collapsed:\n *\n * - **cannot execute → FAIL.** Nothing can be installed, built or run.\n * - **below `engines.pnpm` → FAIL.** pnpm 9 and 10 differ in the self-switch\n * and build-script mechanisms this repository depends on.\n * - **executes, at or above the floor, but off the `packageManager` pin →\n * WARN.** pnpm self-switches to the pin per invocation, so this is normally\n * benign and self-correcting. It warns rather than passing because a\n * divergence here is the state the corrupt self-switch begins from.\n *\n * The pin is read from the manifest the operator will actually run pnpm in —\n * never from a constant here, which would be a fifth copy of a version this\n * repository already declares.\n */\nexport function checkPnpmToolchain(\n options: {\n manifestPath?: string | null;\n probe?: () => PnpmProbeResult;\n readDeclaredPin?: (manifestPath: string) => string | null;\n } = {},\n): LocalPreconditionCheckResult {\n const name = 'pnpm toolchain';\n const probe = options.probe ?? (() => probePnpmExecutable());\n const readDeclaredPin = options.readDeclaredPin ?? ((path: string) => readDeclaredPackageManagerPnpmVersion(path));\n\n const result = probe();\n if (result.failure !== null || result.version === null) {\n return {\n name,\n status: LocalPreconditionCheckStatus.FAIL,\n detail:\n `pnpm did not run: ${result.failure ?? 'no version reported'}. `\n + 'A `packageManager` self-switch whose download aborted leaves a shim on PATH with no binary '\n + 'behind it, so this surfaces downstream as ENOENT from unrelated commands.',\n fix: PNPM_REPAIR_REMEDIATION,\n };\n }\n\n if (!isVersionAtLeast(result.version, MINIMUM_PNPM_VERSION)) {\n return {\n name,\n status: LocalPreconditionCheckStatus.FAIL,\n detail: `v${result.version} is below the required minimum ${MINIMUM_PNPM_VERSION}.`,\n fix: PNPM_REPAIR_REMEDIATION,\n };\n }\n\n const declaredPin = options.manifestPath ? readDeclaredPin(options.manifestPath) : null;\n if (declaredPin && declaredPin !== result.version) {\n return {\n name,\n status: LocalPreconditionCheckStatus.WARN,\n detail:\n `v${result.version} is running, but \\`packageManager\\` pins pnpm@${declaredPin}. `\n + 'pnpm normally self-switches to the pin per invocation; a persistent divergence means that '\n + 'switch is not completing.',\n fix: PNPM_REPAIR_REMEDIATION,\n };\n }\n\n return {\n name,\n status: LocalPreconditionCheckStatus.PASS,\n detail: declaredPin ? `v${result.version} (matches the packageManager pin)` : `v${result.version}`,\n };\n}\n\n/**\n * The host must be able to COMPILE C++20, verified by compiling C++20.\n *\n * This check exists because a version string lied. The broken host reported\n * Apple clang 21.0.0 with SDK 26.5 while its libc++ was 11.0 (late 2020), with\n * no `<ranges>`, `<format>` or `<coroutine>`; every native Node addon needing\n * C++20 was unbuildable, which on Node 26 means all of them. Nothing derived\n * from `clang --version` could have detected that, so `probeCxx20Toolchain`\n * compiles a translation unit and reads the exit code.\n *\n * WARNS rather than fails, on every host rather than only on framework\n * developers' hosts:\n *\n * - **Warn, not fail**, because most native dependencies install from\n * prebuilt binaries and a stale toolchain only bites when one must be\n * compiled from source. Blocking `wildo local dev` over a compiler the\n * operator may never invoke would be wrong. It is also the honest severity\n * for a fix this command cannot verify or apply: the remedy needs `sudo`,\n * so the check REPORTS it and never attempts it — a precondition check that\n * tried to repair the host would violate the read-only contract both its\n * consumers advertise.\n * - **Every host**, because the audience split does not apply here: an\n * application developer whose dependency lacks a prebuild for their\n * platform hits the identical wall, and the diagnostic is worth the same\n * to them.\n *\n * `not-probed` (Windows) reports as PASS with an explicit \"not probed\" detail\n * rather than as a warning. The alternative is a permanent yellow line on every\n * Windows machine, which trains operators to skim past the diagnostics that do\n * mean something — the trade is deliberate and the detail string is what keeps\n * it honest.\n */\nexport function checkCxx20Toolchain(\n options: { probe?: () => Cxx20ProbeResult } = {},\n): LocalPreconditionCheckResult {\n const name = 'c++20 toolchain';\n const probe = options.probe ?? (() => probeCxx20Toolchain());\n const result = probe();\n\n switch (result.status) {\n case Cxx20ProbeStatus.OK:\n return { name, status: LocalPreconditionCheckStatus.PASS, detail: `\\`${result.compiler}\\` compiles C++20` };\n case Cxx20ProbeStatus.NOT_PROBED:\n return {\n name,\n status: LocalPreconditionCheckStatus.PASS,\n detail: 'not probed on Windows (an MSVC Developer environment is required to answer this)',\n };\n case Cxx20ProbeStatus.ABSENT:\n return {\n name,\n status: LocalPreconditionCheckStatus.WARN,\n detail:\n `no C++ compiler found (tried \\`${result.compiler}\\`). Native Node addons without a prebuilt `\n + 'binary for this platform cannot be installed.',\n fix: CXX20_TOOLCHAIN_REMEDIATION,\n };\n case Cxx20ProbeStatus.UNSUPPORTED:\n default:\n return {\n name,\n status: LocalPreconditionCheckStatus.WARN,\n detail:\n `\\`${result.compiler}\\` cannot compile C++20 — \\`#include <ranges>\\` failed`\n + `${result.diagnostic ? `: ${result.diagnostic}` : ''}. `\n + 'A modern clang shipping a decade-old libc++ reports a perfectly current version string, '\n + 'so this surfaces only as C++ errors deep inside a native addon build.',\n fix: CXX20_TOOLCHAIN_REMEDIATION,\n };\n }\n}\n\n/** What the coding-agent adapter probe learned. */\nexport enum CodingAgentAdapterProbeStatus {\n /** The adapter started and negotiated an ACP version this framework supports. */\n OK = 'ok',\n /** The adapter could not be started at all. */\n ABSENT = 'absent',\n /** It started but negotiated a protocol version this framework does not implement. */\n UNSUPPORTED_PROTOCOL = 'unsupported-protocol',\n}\n\nexport interface CodingAgentAdapterProbeResult {\n status: CodingAgentAdapterProbeStatus;\n negotiatedProtocolVersion?: number;\n agentName?: string;\n agentVersion?: string;\n diagnostic?: string;\n}\n\nconst CODING_AGENT_ADAPTER_REMEDIATION =\n `Run \\`npx --yes ${CODING_AGENT_ADAPTER_SPECIFIER} --help\\` once to cache it, `\n + 'or re-run the installer. Application creation cannot dispatch a coding task without it.';\n\n/**\n * Probe the coding-agent ACP adapter by EXECUTING it — spawn it and complete the\n * `initialize` handshake — rather than by reading a version string.\n *\n * That is this baseline's own hard-won rule. Apple clang reported version 21\n * truthfully while shipping a libc++ from 2020, and a pnpm shim reported a\n * version while having no binary behind it: a toolchain's account of itself is\n * not evidence. Here the equivalent trap is real and specific — `npx` resolving\n * the specifier proves a download, not that the adapter speaks a protocol\n * version we can hold it to.\n *\n * The handshake is also the ONLY thing that answers the question the coding lane\n * actually depends on: an agent negotiating an ACP major outside\n * `SUPPORTED_ACP_PROTOCOL_VERSIONS` is refused at dispatch, and finding that out\n * at `doctor` time costs seconds instead of a failed journey step.\n *\n * WARNS rather than fails, matching the C++ toolchain check: a developer who\n * never runs application creation does not need this, and a permanently red\n * line for an unused capability trains operators to skim.\n */\n\n/**\n * Spawn the adapter and complete an ACP `initialize`, with a hard timeout.\n *\n * Deliberately read-only: it opens no session and sends no prompt, so it cannot\n * touch a workspace or spend a token. The handshake alone answers both\n * questions — can this adapter start, and does it speak a protocol major this\n * framework can hold it to.\n */\nexport function probeCodingAgentAdapter(\n options: { timeoutMs?: number; command?: string; args?: readonly string[] } = {},\n): CodingAgentAdapterProbeResult {\n const timeoutMs = options.timeoutMs ?? 60_000;\n const request = JSON.stringify({\n jsonrpc: '2.0',\n id: 1,\n method: 'initialize',\n params: {\n protocolVersion: Math.max(...SUPPORTED_ACP_PROTOCOL_VERSIONS),\n // Advertise nothing: a probe must not imply the client will serve\n // filesystem or terminal callbacks it has no intention of answering.\n clientCapabilities: {},\n },\n });\n\n // The command is a PARAMETER because the handshake is agent-neutral while the\n // way to start an agent is not: the Claude adapter is an npm specifier `npx`\n // resolves, OpenCode is a pinned binary at an absolute path. Defaulting to the\n // adapter keeps every existing caller unchanged.\n const spawned = spawnSync(options.command ?? 'npx', [...(options.args ?? ['--yes', CODING_AGENT_ADAPTER_SPECIFIER])], {\n input: `${request}\\n`,\n encoding: 'utf8',\n timeout: timeoutMs,\n // The adapter resolves its own credentials from host state; the probe needs\n // no secret and passes none beyond the ambient environment it must inherit\n // to find its own installation.\n env: process.env,\n });\n\n if (spawned.error || spawned.stdout === undefined) {\n return {\n status: CodingAgentAdapterProbeStatus.ABSENT,\n diagnostic: spawned.error?.message ?? 'no output',\n };\n }\n\n for (const line of spawned.stdout.split('\\n')) {\n const trimmed = line.trim();\n if (!trimmed) continue;\n let message: unknown;\n try {\n message = JSON.parse(trimmed);\n } catch {\n // Non-JSON stdout is the adapter's own logging, not a protocol frame.\n continue;\n }\n const result = (message as { id?: unknown; result?: { protocolVersion?: unknown; agentInfo?: { name?: unknown; version?: unknown } } }).result;\n if (!result || typeof result.protocolVersion !== 'number') continue;\n\n const negotiatedProtocolVersion = result.protocolVersion;\n const agentName = typeof result.agentInfo?.name === 'string' ? result.agentInfo.name : undefined;\n const agentVersion = typeof result.agentInfo?.version === 'string' ? result.agentInfo.version : undefined;\n return SUPPORTED_ACP_PROTOCOL_VERSIONS.includes(negotiatedProtocolVersion)\n ? { status: CodingAgentAdapterProbeStatus.OK, negotiatedProtocolVersion, agentName, agentVersion }\n : { status: CodingAgentAdapterProbeStatus.UNSUPPORTED_PROTOCOL, negotiatedProtocolVersion, agentName, agentVersion };\n }\n\n return {\n status: CodingAgentAdapterProbeStatus.ABSENT,\n diagnostic: (spawned.stderr ?? '').trim().slice(-300) || 'the adapter answered no initialize result',\n };\n}\n\nexport function checkCodingAgentAdapter(\n options: { probe?: () => CodingAgentAdapterProbeResult } = {},\n): LocalPreconditionCheckResult {\n const name = 'coding-agent ACP adapter';\n const probe = options.probe ?? (() => probeCodingAgentAdapter());\n const result = probe();\n\n switch (result.status) {\n case CodingAgentAdapterProbeStatus.OK:\n return {\n name,\n status: LocalPreconditionCheckStatus.PASS,\n detail:\n `${result.agentName ?? CODING_AGENT_ADAPTER_PACKAGE}`\n + `${result.agentVersion ? `@${result.agentVersion}` : ''}`\n + ` speaks ACP v${result.negotiatedProtocolVersion}`,\n };\n case CodingAgentAdapterProbeStatus.UNSUPPORTED_PROTOCOL:\n return {\n name,\n status: LocalPreconditionCheckStatus.WARN,\n detail:\n `the adapter negotiated ACP v${result.negotiatedProtocolVersion}, which this framework does not `\n + `implement (supported: ${SUPPORTED_ACP_PROTOCOL_VERSIONS.join(', ')}). A coding dispatch will be refused.`,\n fix: `Pin the adapter to ${CODING_AGENT_ADAPTER_SPECIFIER}, which negotiates a supported version.`,\n };\n case CodingAgentAdapterProbeStatus.ABSENT:\n default:\n return {\n name,\n status: LocalPreconditionCheckStatus.WARN,\n detail:\n `could not start \\`${CODING_AGENT_ADAPTER_SPECIFIER}\\``\n + `${result.diagnostic ? `: ${result.diagnostic}` : ''}`,\n fix: CODING_AGENT_ADAPTER_REMEDIATION,\n };\n }\n}\n\n/**\n * Resolve the pinned OpenCode binary, by ABSOLUTE PATH rather than through `PATH`.\n *\n * The installer places exactly one verified build at a version-qualified path,\n * so \"which build answered\" has a single answer. Resolving through `PATH` would\n * silently prefer whatever an operator installed by hand — which is how a probe\n * comes to report on a different binary from the one a run will execute.\n */\nexport function resolvePinnedOpenCodeAgentPath(): string {\n // Delegates: the provider that SPAWNS this agent needs the same path, and two\n // derivations of one path is how a probe comes to report on a different binary\n // from the one a run executes.\n return resolveOpenCodeAgentExecutablePath(homedir());\n}\n\n/**\n * Probe the OPTIONAL multi-provider coding agent.\n *\n * Calibrated differently from the adapter check, deliberately. OpenCode is not\n * installed on every machine and is not needed by a developer who never\n * dispatches a coding task through it, so ABSENT is reported as a pass with a\n * detail rather than as a warning: a permanently yellow line for an unused\n * capability is what trains an operator to skim past the lines that matter.\n *\n * A binary that IS installed and cannot speak ACP is a different thing — that\n * is a broken install rather than an absent one, and it warns.\n */\nexport function checkOpenCodeAgent(\n options: { probe?: (command: string) => CodingAgentAdapterProbeResult; binaryPath?: string } = {},\n): LocalPreconditionCheckResult {\n const name = 'OpenCode ACP agent (optional)';\n const binaryPath = options.binaryPath ?? resolvePinnedOpenCodeAgentPath();\n\n if (!existsSync(binaryPath)) {\n return {\n name,\n status: LocalPreconditionCheckStatus.PASS,\n detail: `not installed — optional; the pinned build would live at ${binaryPath}`,\n };\n }\n\n const probe = options.probe ?? ((command: string) =>\n probeCodingAgentAdapter({ command, args: [...OPENCODE_AGENT_ARGS] }));\n const result = probe(binaryPath);\n\n switch (result.status) {\n case CodingAgentAdapterProbeStatus.OK:\n return {\n name,\n status: LocalPreconditionCheckStatus.PASS,\n detail:\n `${result.agentName ?? 'OpenCode'}${result.agentVersion ? `@${result.agentVersion}` : ''}`\n + ` speaks ACP v${result.negotiatedProtocolVersion}`,\n };\n case CodingAgentAdapterProbeStatus.UNSUPPORTED_PROTOCOL:\n return {\n name,\n status: LocalPreconditionCheckStatus.WARN,\n detail:\n `the installed OpenCode negotiated ACP v${result.negotiatedProtocolVersion}, which this framework does `\n + `not implement (supported: ${SUPPORTED_ACP_PROTOCOL_VERSIONS.join(', ')}). A coding dispatch will be refused.`,\n fix: `Re-run the installer to restore the pinned v${OPENCODE_AGENT_VERSION} build.`,\n };\n case CodingAgentAdapterProbeStatus.ABSENT:\n default:\n return {\n name,\n status: LocalPreconditionCheckStatus.WARN,\n detail: `a binary exists at ${binaryPath} but did not complete an ACP handshake`\n + `${result.diagnostic ? `: ${result.diagnostic}` : ''}`,\n fix: `Delete ${binaryPath} and re-run the installer to restore the verified v${OPENCODE_AGENT_VERSION} build.`,\n };\n }\n}\n\n/**\n * The Compose plugin must accept `start_interval`, which every healthcheck in\n * the generated local compose project declares (Compose >= 2.24 / Docker\n * Desktop >= 25).\n *\n * FAILS rather than warns: this is a hard blocker — the compose project is\n * rejected wholesale, so nothing downstream can run. An UNDETECTABLE version\n * also fails, because \"no Compose plugin\" is the same blocker wearing a\n * different message, and treating unknown as acceptable would let the exact\n * fresh-install host this gate exists for sail through.\n */\nexport function checkDockerComposeVersion(\n options: { detectVersion?: () => string | null } = {},\n): LocalPreconditionCheckResult {\n const detect = options.detectVersion ?? (() => detectDockerComposeVersion());\n const version = detect();\n\n if (version === null) {\n return {\n name: 'docker compose version',\n status: LocalPreconditionCheckStatus.FAIL,\n detail: `Docker Compose plugin not detected (need >= ${MINIMUM_DOCKER_COMPOSE_VERSION})`,\n fix: COMPOSE_UPGRADE_REMEDIATION,\n };\n }\n if (!isComposeVersionAtLeast(version, MINIMUM_DOCKER_COMPOSE_VERSION)) {\n return {\n name: 'docker compose version',\n status: LocalPreconditionCheckStatus.FAIL,\n detail:\n `v${version} is too old — the local compose healthchecks use \\`start_interval\\`, `\n + `which needs Compose >= ${MINIMUM_DOCKER_COMPOSE_VERSION} (Docker Desktop >= 25). `\n + 'Without it the whole project is rejected with '\n + '\"Additional property start_interval is not allowed\".',\n fix: COMPOSE_UPGRADE_REMEDIATION,\n };\n }\n return {\n name: 'docker compose version',\n status: LocalPreconditionCheckStatus.PASS,\n detail: `v${version} (>= ${MINIMUM_DOCKER_COMPOSE_VERSION})`,\n };\n}\n\n/**\n * Every runtime host that a `wildo config sync` would give a\n * `src/generated/wildo-provider-runtime.generated.ts` module must have it on\n * disk — the host's own `src/index.ts` imports it, so an absent module is a\n * compile error the operator meets as an endlessly repeating `TS2307` rather\n * than as a missing setup step.\n *\n * FAILS rather than warns: no affected host compiles at all.\n *\n * The expected set comes from the sync service's own target resolver, never\n * from a list maintained here — see\n * `resolveExpectedProviderRuntimeSourceModulePaths`.\n */\nexport async function checkProviderRuntimeGeneratedModules(\n saasRoot: string,\n options: {\n resolveExpectedModulePaths?: (saasRoot: string) => Promise<string[]>;\n moduleExists?: (modulePath: string) => boolean;\n } = {},\n): Promise<LocalPreconditionCheckResult> {\n const name = 'generated provider-runtime modules';\n const resolveExpected = options.resolveExpectedModulePaths ?? resolveExpectedProviderRuntimeSourceModulePaths;\n const moduleExists = options.moduleExists ?? ((modulePath: string) => existsSync(modulePath));\n\n let expectedModulePaths: string[];\n try {\n expectedModulePaths = await resolveExpected(saasRoot);\n } catch (error) {\n // A configuration that cannot be loaded is a different problem with a\n // different owner. Report it as unknown — claiming \"present\" would hide\n // the very gap this check exists for, and claiming \"missing\" would blame\n // provider sync for a broken `wildo.saas.config.ts`.\n return {\n name,\n status: LocalPreconditionCheckStatus.WARN,\n detail: `could not determine the expected modules: ${ErrorUtils.extractErrorMessage(error)}`,\n fix: `Resolve the configuration error above, then run \\`wildo config sync\\`.`,\n };\n }\n\n if (expectedModulePaths.length === 0) {\n return { name, status: LocalPreconditionCheckStatus.PASS, detail: 'no runtime host requires one' };\n }\n\n const missing = expectedModulePaths.filter((modulePath) => !moduleExists(modulePath));\n if (missing.length === 0) {\n return {\n name,\n status: LocalPreconditionCheckStatus.PASS,\n detail: `${expectedModulePaths.length} runtime host${expectedModulePaths.length === 1 ? '' : 's'}`,\n };\n }\n\n return {\n name,\n status: LocalPreconditionCheckStatus.FAIL,\n detail:\n `${missing.length} of ${expectedModulePaths.length} missing: `\n + missing.map((modulePath) => relativeToRootForDisplay(saasRoot, modulePath)).join(', '),\n fix: PROVIDER_RUNTIME_SYNC_REMEDIATION,\n };\n}\n\n/**\n * Would the processes that READ the generated provider runtime artifacts accept them? (#2254)\n *\n * `checkProviderRuntimeGeneratedModules` asks whether the files EXIST; this asks whether their readers\n * would REFUSE them, through the readers' own predicates — see `findRefusedProviderRuntimeArtifacts`\n * for why that, and nothing in the file itself, is the only sound test.\n *\n * FAILS, like the existence check beside it: a refused artifact stops its reader. In the `dev` preflight\n * it is the residue of a repair that already ran (`regenerateUnusableProviderRuntimeModules`), so a\n * failure here means the regeneration itself could not produce an acceptable file.\n */\nexport function checkProviderRuntimeArtifactContent(\n saasRoot: string,\n options: { findRefused?: (saasRoot: string) => RefusedProviderRuntimeArtifact[]; countExisting?: (saasRoot: string) => number } = {},\n): LocalPreconditionCheckResult {\n const name = 'generated provider-runtime artifact content';\n const examined = (options.countExisting ?? countExistingProviderRuntimeArtifacts)(saasRoot);\n if (examined === 0) {\n return { name, status: LocalPreconditionCheckStatus.PASS, detail: 'none generated yet' };\n }\n const refused = (options.findRefused ?? findRefusedProviderRuntimeArtifacts)(saasRoot);\n if (refused.length === 0) {\n return { name, status: LocalPreconditionCheckStatus.PASS, detail: `${examined} artifact${examined === 1 ? '' : 's'} accepted by their readers` };\n }\n return {\n name,\n status: LocalPreconditionCheckStatus.FAIL,\n detail: `${refused.length} of ${examined} would be refused by the process that reads them: `\n + refused.map((artifact) => `${artifact.relativePath}: ${artifact.reason}`).join(' · '),\n fix: 'Regenerate them: `wildo -y config sync --local` (it rotates no secret), then let the refused process restart',\n };\n}\n\n/** Counts only the kinds the check examines, so a pass never counts a file nobody read (#2254 review). */\nfunction countExistingProviderRuntimeArtifacts(saasRoot: string): number {\n return PROVIDER_RUNTIME_ARTIFACT_KINDS_READ_AS_JSON\n .filter((kind) => existsSync(join(saasRoot, PROVIDER_RUNTIME_ARTIFACT_RELATIVE_PATHS[kind]))).length;\n}\n\n/**\n * Report — never terminate — dev process groups whose leader lost its parent.\n *\n * WARNS rather than fails: the state is recoverable with one documented\n * command, and reaping belongs to `wildo dev force-stop` (which already routes\n * through the same `LocalRuntimeProcessCleanupService`). `wildo local dev`\n * additionally reaps them itself at startup, so a warning here is a diagnosis,\n * not an obstacle.\n *\n * Only ORPHANS are reported. A healthy `wildo local dev` running in another\n * terminal matches exactly the same patterns; flagging it would make the\n * warning permanent noise for the most normal state there is.\n */\nexport function checkOrphanedDevWatchers(\n scopedRoots: readonly string[],\n options: {\n collectCandidates?: (scopedRoots: readonly string[]) => LocalRuntimeProcessGroupCandidate[];\n } = {},\n): LocalPreconditionCheckResult {\n const name = 'orphaned dev watchers';\n if (scopedRoots.length === 0) {\n return { name, status: LocalPreconditionCheckStatus.PASS, detail: 'no scoped root to inspect' };\n }\n const collect = options.collectCandidates\n ?? ((roots: readonly string[]) => LocalRuntimeProcessCleanupService.collectCandidateProcessGroups(roots));\n\n let candidates: LocalRuntimeProcessGroupCandidate[];\n try {\n candidates = collect(scopedRoots);\n } catch (error) {\n return {\n name,\n status: LocalPreconditionCheckStatus.WARN,\n detail: `could not inspect the process table: ${ErrorUtils.extractErrorMessage(error)}`,\n fix: ORPHANED_DEV_WATCHER_REMEDIATION,\n };\n }\n\n const orphans = candidates.filter((candidate) => candidate.leaderIsOrphaned);\n if (orphans.length === 0) {\n return { name, status: LocalPreconditionCheckStatus.PASS, detail: 'none' };\n }\n\n return {\n name,\n status: LocalPreconditionCheckStatus.WARN,\n detail:\n `${orphans.length} process group${orphans.length === 1 ? '' : 's'} left by a dead session `\n + `(still holding dist single-writer locks, which blocks compile readiness): `\n + orphans.map((orphan) => `pgid ${orphan.processGroupId} ${truncateCommand(orphan.command)}`).join('; '),\n fix: ORPHANED_DEV_WATCHER_REMEDIATION,\n };\n}\n\n/**\n * Where the standalone currency sweep lives inside a framework checkout.\n *\n * A plain `.mjs` with no dependencies and no build step, invoked as a subprocess rather than\n * imported: it must stay runnable when this CLI's own `dist` is one of the suspects, which on\n * 2026-08-27 it was. One implementation, two surfaces — the same reason\n * `collectLocalPreconditionChecks` exists at all.\n */\nexport const DERIVED_ARTIFACT_CURRENCY_SWEEP_RELATIVE_PATH = 'scripts/dev-orchestrator/derived-artifact-currency-sweep.mjs';\n\n/** How long the sweep may take before doctor stops waiting. It walks every dist tree; ~5 s is typical. */\nconst DERIVED_ARTIFACT_CURRENCY_TIMEOUT_MS = 90_000;\n\n/**\n * Is every DERIVED artifact on this machine current with the source it was derived from?\n *\n * The one question nothing in this repository asked, and the one that mattered EIGHT times over\n * 2026-08-27/28 (issue #86). Not one of those failures was a logic bug: a dist, an injected `file:`\n * snapshot, an accepted-generation manifest, a virtual-store key, a config-loader cache bucket or a\n * running process had simply stopped matching its source, and every existing check answered the\n * neighbouring question — *\"is this file correct?\"* — perfectly. Three were misdiagnosed as semantic\n * conflicts in committed code before anyone dated the artifact.\n *\n * WARNS, never fails, on every host. Three separate reasons, and the first is decisive:\n *\n * - **A currency check that failed a boot would be a new way to break the stack.** That is the\n * opposite of the point, and it is the deadlock shape\n * `.claude/rules/continuity-drift-and-cas-basis.md` Rule 3 forbids — a startup path refusing over\n * something whose remedy needs the thing that just refused. Every remedy here is \"delete this\n * generated thing and let it rebuild\", which needs the dev stack the refusal would have stopped.\n * - **Some findings are legitimately transient.** A watcher mid-cycle, a supervised runtime a\n * minute behind a rebuild it is about to be respawned for. The sweep applies a grace and prints\n * the delta; a hard stop would have to be right about every one of those, and it would not be.\n * - **Several findings are advisory by nature** — unreferenced virtual-store keys cost disk and\n * nothing else.\n *\n * The detail here is a SUMMARY on purpose. The full report names every artifact with both\n * timestamps and its own remedy, which is more than a doctor line can carry; `fix` is the exact\n * command that prints it. A summary that forced the reader to go searching would reproduce the\n * defect this exists to remove, so the summary always names the worst artifact it found.\n *\n * `not-probed` (reported as PASS with an explicit detail, the idiom `checkCxx20Toolchain` uses for\n * Windows) covers the honest cases: no framework checkout resolved, or the sweep script absent —\n * which is the normal state for a generated application that consumes published packages and has no\n * framework repository to compare against.\n */\nexport function checkDerivedArtifactCurrency(input: {\n frameworkPath?: string | null;\n saasRoot?: string | null;\n runSweep?: (scriptPath: string, args: readonly string[]) => { status: number | null; stdout: string; stderr: string };\n}): LocalPreconditionCheckResult {\n const name = 'derived-artifact currency';\n const { frameworkPath, saasRoot } = input;\n\n if (!frameworkPath) {\n return {\n name,\n status: LocalPreconditionCheckStatus.PASS,\n detail:\n 'not probed — no framework checkout is resolved, and the sweep compares derived artifacts against the'\n + ' framework source they came from.',\n };\n }\n\n const scriptPath = join(frameworkPath, DERIVED_ARTIFACT_CURRENCY_SWEEP_RELATIVE_PATH);\n if (!existsSync(scriptPath)) {\n return {\n name,\n status: LocalPreconditionCheckStatus.PASS,\n detail: `not probed — ${DERIVED_ARTIFACT_CURRENCY_SWEEP_RELATIVE_PATH} is absent from ${frameworkPath}.`,\n };\n }\n\n const args = ['--json', '--framework-root', frameworkPath, ...(saasRoot ? ['--app-root', saasRoot] : [])];\n const run = input.runSweep ?? defaultRunDerivedArtifactCurrencySweep;\n const manualCommand = `node ${scriptPath}${saasRoot ? ` --app-root ${saasRoot}` : ''}`;\n\n let report: DerivedArtifactCurrencyReport;\n try {\n const result = run(scriptPath, args);\n report = JSON.parse(result.stdout) as DerivedArtifactCurrencyReport;\n } catch (error) {\n return {\n name,\n status: LocalPreconditionCheckStatus.PASS,\n detail: `not probed — the sweep could not be run: ${ErrorUtils.extractErrorMessage(error)}`,\n fix: `Run it directly to see why: \\`${manualCommand}\\``,\n };\n }\n\n const stale = report.surfaces.filter((surface) => surface.status === DerivedArtifactCurrencyStatus.STALE);\n const probed = report.surfaces.filter((surface) => surface.status !== DerivedArtifactCurrencyStatus.NOT_PROBED);\n\n if (stale.length === 0) {\n // An empty population is reported as such rather than as success — the sweep itself refuses to\n // call a surface OK when it examined nothing, and that distinction must survive the summary.\n const unprobed = report.surfaces.length - probed.length;\n return {\n name,\n status: LocalPreconditionCheckStatus.PASS,\n detail:\n `${probed.length} of ${report.surfaces.length} surfaces probed, none stale`\n + `${unprobed > 0 ? ` (${unprobed} not probed on this machine)` : ''}.`,\n };\n }\n\n const worst = stale[0].findings[0];\n return {\n name,\n status: LocalPreconditionCheckStatus.WARN,\n detail:\n `${report.findingCount} stale derived artifact${report.findingCount === 1 ? '' : 's'} across `\n + `${stale.map((surface) => `${surface.surface} (${surface.findings.length})`).join(', ')}. `\n + `e.g. ${worst?.detail ?? '(no detail)'}`,\n fix:\n `Read the full report — every artifact with both timestamps and its own remedy: \\`${manualCommand}\\`. `\n + 'Nothing there blocks the stack; each finding names the generated thing to delete or rebuild.',\n };\n}\n\n/**\n * The per-surface verdict the currency sweep emits — a MIRROR of `CurrencyStatus` in\n * `scripts/dev-orchestrator/derived-artifact-currency.mjs`, deliberately re-declared rather than\n * imported: that sweep is a repository script, this is a package, and a package may not reach\n * into `scripts/`. So the two sides own their own named source and the JSON payload is the\n * contract between them, exactly as the ETL pipeline mirrors data-seeding's orphan policy.\n *\n * The distinction each member carries is why this vocabulary must be named rather than inlined:\n * NOT_PROBED is NOT a quieter OK — a surface that examined nothing has learned nothing, and the\n * summary reports the two separately on purpose (the sweep refuses to call an unexamined surface\n * current, and that refusal has to survive the trip through this consumer).\n */\nexport enum DerivedArtifactCurrencyStatus {\n /** The surface was examined and everything it holds is current. */\n OK = 'ok',\n /** The surface was examined and holds at least one artifact older than what it derives from. */\n STALE = 'stale',\n /** Not examined on this machine — nothing was learned, which is not the same as nothing wrong. */\n NOT_PROBED = 'not-probed',\n}\n\n/** The report shape the sweep emits under `--json`. Kept minimal — only what this summary reads. */\ninterface DerivedArtifactCurrencyReport {\n readonly findingCount: number;\n readonly surfaces: readonly {\n readonly surface: string;\n readonly status: DerivedArtifactCurrencyStatus;\n readonly findings: readonly { readonly detail: string; readonly artifact: string }[];\n }[];\n}\n\nfunction defaultRunDerivedArtifactCurrencySweep(scriptPath: string, args: readonly string[]): { status: number | null; stdout: string; stderr: string } {\n const result = spawnSync(process.execPath, [scriptPath, ...args], {\n encoding: 'utf8',\n timeout: DERIVED_ARTIFACT_CURRENCY_TIMEOUT_MS,\n stdio: ['ignore', 'pipe', 'pipe'],\n });\n if (result.error) throw result.error;\n return { status: result.status, stdout: result.stdout ?? '', stderr: result.stderr ?? '' };\n}\n\n/**\n * The complete precondition SET, in report order.\n *\n * `wildo local doctor` and the `wildo local dev` preflight both call this\n * rather than assembling their own list — otherwise \"the preflight runs the\n * same checks as doctor\" is a claim in a docblock instead of a property of the\n * code, which is exactly how the preflight came to run only `docker info`\n * while its docblock promised the full diagnostic.\n *\n * Scoped roots for the orphan check mirror `wildo dev force-stop`: the app\n * root always, plus the framework checkout for a framework developer, because\n * the blocking `dist/**/.builder.pid` locks live under `engine/**` there and\n * an orphaned engine watcher is unreachable from the app root alone.\n *\n * HOST TOOLCHAIN checks come first, ahead of Docker Compose. They sit lower in\n * the stack than anything else here — a host with no usable pnpm cannot act on\n * a Compose diagnostic anyway — and reporting them first means the operator\n * reads the causes before the consequences.\n */\n/**\n * The conventional home of an application's custom role table. Every scaffolded application has it\n * at this path; an application that does not is reported as `not-probed`, not as a failure.\n */\nconst CUSTOM_ROLES_RELATIVE_PATH = 'shared-lib/src/engine/roles.ts';\n\n/** The two scopes `addCustomRoles` actually files a role under. Everything else is skipped. */\nconst CUSTOM_ROLE_SUPPORTED_SCOPES = ['APPLICATION', 'ORGANIZATIONS'] as const;\n\n/**\n * Does any custom role declare a scope the authorization layer will silently skip? (#425)\n *\n * `AuthorizationsBackendService.addCustomRoles` files a role under APPLICATION or ORGANIZATIONS and\n * **warns and skips** anything else — a `USER_SELF` role, or an unknown scope. So a misdeclared role\n * ships INERT: the application carries a role its authorization never sees, and the only trace is\n * one line in a startup log nobody reads after the first boot.\n *\n * ## Why this is a diagnostic and not a refusal\n *\n * Refusing at startup was the alternative, and it was rejected on #425: it turns a silently-inert\n * role into a BOOT FAILURE for any application that already carries one, which is precisely why the\n * current behaviour is a warning. So the runtime keeps skipping and this check moves the signal to\n * where an author actually reads — with the cost that it relies on someone running `wildo local\n * doctor`, which is stated rather than hidden.\n *\n * ## Why the signal is deliberately loud\n *\n * The failure being replaced is a warning nobody reads, and a quiet diagnostic line reproduces it\n * exactly. So the detail names the role, the scope it declared, the scopes that exist, and says\n * outright that the role is INERT — not \"may not be applied\", which reads as a caveat.\n *\n * Read from SOURCE rather than from a loaded config, because the role table is application\n * TypeScript the CLI cannot import: it is authored beside the app's own code and reaches the\n * authorization layer through the backend at startup. A literal `relatedPrimaryScope:\n * ResourcePrimaryScope.X` is what an author writes, and it is what this reads.\n */\nexport function checkCustomRoleScopes(\n saasRoot: string,\n options: { readFile?: (path: string) => string | null } = {},\n): LocalPreconditionCheckResult {\n const name = 'custom role scopes';\n const rolesPath = join(saasRoot, CUSTOM_ROLES_RELATIVE_PATH);\n const read = options.readFile ?? ((path: string) => (existsSync(path) ? readFileSync(path, 'utf8') : null));\n\n const source = read(rolesPath);\n if (source === null) {\n return {\n name,\n status: LocalPreconditionCheckStatus.PASS,\n detail: `not-probed — no ${CUSTOM_ROLES_RELATIVE_PATH}`,\n };\n }\n\n /*\n * One match per authored `relatedPrimaryScope:` property, with the nearest preceding object key\n * read as the role. A regex rather than a TypeScript program because this runs on every `doctor`\n * and the question is lexical: what scope literal did the author write beside this role.\n */\n const declared: Array<{ roleKey: string; scope: string }> = [];\n const scopePattern = /relatedPrimaryScope\\s*:\\s*ResourcePrimaryScope\\.([A-Z_]+)/gu;\n for (const match of source.matchAll(scopePattern)) {\n const before = source.slice(0, match.index ?? 0);\n const keyMatches = [...before.matchAll(/(?:^|[\\s{,])\\[?\\s*['\"`]?([A-Za-z0-9_.]+)['\"`]?\\s*\\]?\\s*:\\s*\\{/gmu)];\n const roleKey = keyMatches.length > 0 ? keyMatches[keyMatches.length - 1][1] : '(unnamed role)';\n declared.push({ roleKey, scope: match[1] });\n }\n\n if (declared.length === 0) {\n return { name, status: LocalPreconditionCheckStatus.PASS, detail: `no custom role declares a scope in ${CUSTOM_ROLES_RELATIVE_PATH}` };\n }\n\n const inert = declared.filter((role) => !CUSTOM_ROLE_SUPPORTED_SCOPES.includes(role.scope as (typeof CUSTOM_ROLE_SUPPORTED_SCOPES)[number]));\n if (inert.length === 0) {\n return { name, status: LocalPreconditionCheckStatus.PASS, detail: `${declared.length} custom role(s), every scope supported` };\n }\n\n const listed = inert.map((role) => `\"${role.roleKey}\" (${role.scope})`).join(', ');\n return {\n name,\n status: LocalPreconditionCheckStatus.WARN,\n detail:\n `${inert.length} custom role(s) declare a scope the authorization layer SKIPS, so each one is INERT — `\n + `it is never applied and no request will ever match it: ${listed}. `\n + `Custom roles are supported at ${CUSTOM_ROLE_SUPPORTED_SCOPES.join(' and ')} only.`,\n fix: `Edit ${CUSTOM_ROLES_RELATIVE_PATH} and give each listed role \\`relatedPrimaryScope: ResourcePrimaryScope.APPLICATION\\` or \\`.ORGANIZATIONS\\`, or delete it.`,\n };\n}\n\n/**\n * Is the coding agent this machine selected signed in? (#1637)\n *\n * An agent with no login completes the ACP handshake and fails on its first prompt, mid-run, so the\n * handshake check above says nothing about it. The agent's own status command does, from local state.\n */\nexport function checkSelectedCodingAgentLogin(input: { preference?: string; failWhenUnusable: boolean }): LocalPreconditionCheckResult {\n const name = 'coding agent login';\n let agent: CodingAgentOption;\n try {\n agent = resolveSelectedCodingAgent({ preference: input.preference });\n } catch (error) {\n // An unknown name is a misconfiguration every coding run would refuse on, but it blocks nothing\n // else — so `dev` warns and starts the stack, and only `doctor` fails, like a signed-out agent.\n return {\n name,\n status: input.failWhenUnusable ? LocalPreconditionCheckStatus.FAIL : LocalPreconditionCheckStatus.WARN,\n detail: ErrorUtils.extractErrorMessage(error),\n fix: 'Choose one with `wildo prefs set --coding-agent <agent>`.',\n };\n }\n const report = checkCodingAgentLogin(agent);\n if (report.state === CodingAgentHostLoginState.SIGNED_IN) {\n return { name, status: LocalPreconditionCheckStatus.PASS, detail: `${agent.providerRef}: ${report.detail}` };\n }\n // Only a definite SIGNED_OUT is unusable, which is also the only state a dispatch refuses on. A\n // missing status command says nothing about the agent: the Claude and Codex agents run through npx\n // adapters that do not need `claude` / `codex` on PATH.\n const signedOut = report.state === CodingAgentHostLoginState.SIGNED_OUT;\n return {\n name,\n status: signedOut && input.failWhenUnusable ? LocalPreconditionCheckStatus.FAIL : LocalPreconditionCheckStatus.WARN,\n detail: signedOut\n ? `${agent.providerRef} (${CODING_AGENT_LOGIN_STATE_WORDS[report.state]}): ${report.detail} Coding runs are refused until you sign in.`\n : `${agent.providerRef} (${CODING_AGENT_LOGIN_STATE_WORDS[report.state]}): ${report.detail}`,\n fix: report.remedy ?? `Run \\`${agent.hostLogin.statusCommand} ${agent.hostLogin.statusArgs.join(' ')}\\` to see why.`,\n };\n}\n\n/**\n * #2891 — apps-manager's key-encryption root. apps-manager starts without one and refuses its first key operation; it\n * refuses to start with a MALFORMED one, so that is named here, before the boot does. Read from the environment's secrets.json, the one source every lane's apps-manager env is generated from;\n * the value is never printed.\n *\n * Only a secrets.json that holds the platform's own materials is asked: the response keys are the sibling material\n * that says so (a hosted application's secrets.json holds neither; its host's does). An absent root is a WARN, because\n * `wildo local dev` and `wildo config sync` mint it before apps-manager boots; a malformed one is a FAIL, because no\n * command repairs it without losing the keys sealed under it. This check cannot see whether keys were ever sealed (they\n * live in apps-manager's store), so the absent-root remedy names both cases: a platform that never had a root mints one,\n * and one that lost it restores it from backup, because a newly minted root cannot open the keys the old one sealed.\n */\nexport function checkKeyEncryptionRoot(secrets: PlatformEnvSecretsJson | null): LocalPreconditionCheckResult {\n const name = 'key-encryption root';\n if (!secrets?.platform?.appsManagerResponseSigning) {\n return { name, status: LocalPreconditionCheckStatus.PASS, detail: 'this environment\\'s secrets hold no platform materials (none yet, or its platform is hosted elsewhere)' };\n }\n const root = secrets.platform.keyEncryptionRoot?.current;\n if (!root) {\n return {\n name,\n status: LocalPreconditionCheckStatus.WARN,\n detail: 'secrets.json has no platform key-encryption root; apps-manager cannot seal or use a key without one',\n fix:\n 'If this platform has never had one, run `wildo config sync` (or `wildo local dev`), then back it up with the platform\\'s other secrets. '\n + 'If it had one, restore it from your secrets backup instead: a new root cannot open the keys the old one sealed. Only if it is lost for good, '\n + 'mint a new one and run `wildo keys rotate --root-lost --reason \"<why>\"` for each application.',\n };\n }\n const wellFormed = (value: string): boolean => /^[A-Za-z0-9_-]+$/.test(value) && Buffer.from(value, 'base64url').length === 32;\n const previous = secrets.platform.keyEncryptionRoot?.previous;\n if (!wellFormed(root) || (previous !== undefined && previous !== '' && !wellFormed(previous))) {\n return {\n name,\n status: LocalPreconditionCheckStatus.FAIL,\n detail: 'the platform key-encryption root in secrets.json is not 32 bytes of base64url, so apps-manager will refuse to start',\n fix: 'Restore it from your secrets backup. Do not replace it with a new value: a different root cannot open the keys already sealed under it.',\n };\n }\n return { name, status: LocalPreconditionCheckStatus.PASS };\n}\n\n/**\n * The memory the dev companion needs for a large application, and the share of the machine its supervisor\n * gives it (#3205). Mirrors `COMPANION_HEAP_POLICY` in the companion's `companion-supervisor.mjs`, which\n * this package cannot import; `local-precondition-checks.companion-heap.test.ts` holds the two equal.\n */\nexport const COMPANION_HEAP_RECOMMENDED_MINIMUM_MB = 6_144;\nexport const COMPANION_HEAP_DEFAULT_HOST_FRACTION = 0.5;\nexport const COMPANION_HEAP_MAXIMUM_DEFAULT_MB = 12_288;\n\n/**\n * Whether this machine can give the dev companion the heap a large application needs (#3205).\n *\n * WARNS, never fails: a small application runs in far less, and the companion's supervisor sizes its heap\n * from physical memory regardless. On app-creation-test-007 (about 100 landed build tasks) the companion held\n * 3.0-3.5 GB within 40 s of starting and died of an out-of-memory error under Node's default ~4 GB ceiling,\n * twice in a day, each time ending a build wave. A machine that cannot offer\n * {@link COMPANION_HEAP_RECOMMENDED_MINIMUM_MB} at the supervisor's share is told so before the wave, not\n * after it.\n */\nexport function checkCompanionHeapHeadroom(options: { totalMemoryBytes?: number } = {}): LocalPreconditionCheckResult {\n const name = 'companion memory';\n const hostMb = Math.floor((options.totalMemoryBytes ?? totalmem()) / (1024 * 1024));\n const heapMb = Math.floor(hostMb * COMPANION_HEAP_DEFAULT_HOST_FRACTION);\n if (heapMb < COMPANION_HEAP_RECOMMENDED_MINIMUM_MB) {\n return {\n name,\n status: LocalPreconditionCheckStatus.WARN,\n detail: `${hostMb} MB of memory, so the dev companion's heap is limited to ${heapMb} MB; creating a large application `\n + `(about 100 build tasks) needs about ${COMPANION_HEAP_RECOMMENDED_MINIMUM_MB} MB, and the companion may run out of memory mid-build.`,\n fix: 'Run creation on a machine with at least 16 GB of memory, or close other memory-heavy processes during a build wave.',\n };\n }\n return { name, status: LocalPreconditionCheckStatus.PASS, detail: `${hostMb} MB of memory; the dev companion's heap may grow to ${Math.min(heapMb, COMPANION_HEAP_MAXIMUM_DEFAULT_MB)} MB` };\n}\n\n/** What the running companion said about the specifications package (#3211), or why it could not be asked. */\nexport type SpecificationFindingsRead =\n | {\n readonly faults: readonly CreationConsole_SpecificationFault[];\n /** The modules it could not evaluate (#3258); empty from a companion older than that. */\n readonly moduleFaults: readonly CreationConsole_SpecificationModuleFault[];\n readonly loadError: string | null;\n }\n | { readonly notReadBecause: string };\n\n/**\n * Ask the running dev companion which specifications it refused to serve (#3211): `GET /specifications/findings`. Only\n * the companion can answer — it evaluates the package through the loader that collects the refusals — so a companion\n * that is not running is reported as not asked, never as a clean package.\n */\nexport async function readSpecificationFindingsFromCompanion(options: CompanionClientOptions): Promise<SpecificationFindingsRead> {\n try {\n const findings = await CompanionClient.get<{ readonly faults?: unknown; readonly moduleFaults?: unknown; readonly loadError?: unknown }>('/api/companion/specifications/findings', options);\n if (!Array.isArray(findings.faults)) return { notReadBecause: 'the dev companion does not report specification findings (older than #3211)' };\n return {\n faults: findings.faults as CreationConsole_SpecificationFault[],\n moduleFaults: Array.isArray(findings.moduleFaults) ? findings.moduleFaults as CreationConsole_SpecificationModuleFault[] : [],\n loadError: typeof findings.loadError === 'string' ? findings.loadError : null,\n };\n } catch (error) {\n // Three different answers, and only one is \"not reachable\": a busy companion that did not answer in time is\n // reachable (measured 2026-11-03: a 37 s read against the 30 s limit was reported as unreachable while the\n // companion was up), and one that answered with an error status was reached and refused.\n if (error instanceof CompanionRequestTimeoutError) {\n return { notReadBecause: `the dev companion did not answer within ${Math.round(error.timeoutMs / 1000)} s (it is busy; run the doctor again when it is idle)` };\n }\n if (error instanceof CompanionRefusalError) return { notReadBecause: `the dev companion answered ${error.status}` };\n return { notReadBecause: 'the dev companion is not reachable' };\n }\n}\n\n/**\n * The doctor line for the application's specifications (#3211).\n *\n * - A refused specification WARNS: the companion drops it and keeps serving every other one, so nothing stops, but the\n * specification is absent from every board, every brief and every label run until it is fixed, and only the creation\n * feed and `wildo build tasks` said so before this line.\n * - A module that could not be evaluated (#3258) WARNS for the same reason: it serves nothing, every other module\n * does. Its line says how to read it — a module whose code could not run is first a question about the builds of the\n * packages it imports.\n * - A package that cannot be evaluated at all FAILS: the build-task list, `wildo creation why` and the next wave all\n * refuse while it holds.\n * - A companion that was not asked PASSES as not probed, with the reason: a warning for a capability nobody can check\n * right now trains the reader to skim this table.\n */\nexport function checkSpecificationFindings(read: SpecificationFindingsRead): LocalPreconditionCheckResult {\n const name = 'specifications';\n if ('notReadBecause' in read) {\n return { name, status: LocalPreconditionCheckStatus.PASS, detail: `not probed — ${read.notReadBecause}, and only it evaluates the specifications package` };\n }\n if (read.loadError !== null) {\n return {\n name,\n status: LocalPreconditionCheckStatus.FAIL,\n detail: `the specifications package cannot be evaluated, so the build lane cannot read it: ${read.loadError}`,\n fix: 'Fix the module the error names; when it reads a symbol of the application\\'s own package as undefined, check that package\\'s watcher has published it.',\n };\n }\n if (read.faults.length === 0 && read.moduleFaults.length === 0) {\n return { name, status: LocalPreconditionCheckStatus.PASS, detail: 'every specification is admitted by its factory' };\n }\n const modules = read.moduleFaults.length === 0 ? [] : [\n `${read.moduleFaults.length} specifications module(s) could not be evaluated and serve nothing until fixed: `\n + read.moduleFaults.map((fault) => `${fault.modulePath}${fault.authoredFrame !== null ? ` (at ${fault.authoredFrame})` : ''}: `\n + `${fault.errorName}: ${fault.message} — `\n + `${(fault.withheldSpecifications ?? []).length > 0 ? `unavailable until fixed: ${fault.withheldSpecifications!.join(', ')} — ` : ''}`\n + `${(fault.causedBy ?? []).length > 0 ? `follows from ${fault.causedBy!.join(', ')}` : describeSpecificationModuleFaultReading(fault.reading)}`).join(' | '),\n ];\n const refused = read.faults.length === 0 ? [] : [\n `${read.faults.length} specification(s) refused and not served until fixed: `\n + read.faults.map((fault) => `${fault.kind}${fault.key.length > 0 ? ` ${fault.key}` : ''}${fault.authoredFrame !== null ? ` (at ${fault.authoredFrame})` : ''}: ${fault.message}`).join(' | '),\n ];\n return {\n name,\n status: LocalPreconditionCheckStatus.WARN,\n detail: [...modules, ...refused].join(' · '),\n fix: 'Correct each specification or module as its message says; `wildo build tasks` lists them too.',\n };\n}\n\nexport async function collectLocalPreconditionChecks(input: {\n saasRoot: string | null;\n frameworkPath?: string | null;\n isFrameworkDeveloper?: boolean;\n /**\n * Probe the coding-agent ACP adapter by starting it.\n *\n * OFF by default, and on for `doctor` only. The probe spawns a process and\n * may resolve a package from the network on a cold cache, which is fine in a\n * diagnostic a human asked for and wrong in the `dev` preflight, where it\n * would add seconds to every start for a capability most runs never use.\n * Diagnostics that make the common path slower get skipped by operators, and\n * a skipped diagnostic reports nothing.\n */\n includeCodingAgentProbe?: boolean;\n /**\n * Sweep every derived artifact for currency.\n *\n * OFF by default and on for `doctor` only, for exactly the reason the coding-agent probe is: it\n * walks every `dist/` tree, every injected snapshot and every virtual-store key — several seconds\n * of I/O — which is fine in a diagnostic a human asked for and wrong in the `dev` preflight, where\n * it would tax every start for an answer most starts do not need. Diagnostics that make the common\n * path slower get skipped, and a skipped diagnostic reports nothing.\n *\n * There is a second reason here that does not apply to the coding-agent probe: the preflight runs\n * BEFORE the watcher fleet starts, which is the moment a dist is most legitimately behind its\n * source. Reporting that as a finding on every start would be noise with a grain of truth in it —\n * the worst kind, because operators learn to skim it.\n */\n includeDerivedArtifactCurrencySweep?: boolean;\n /**\n * The machine's coding-agent preference (`preferences.json` → `defaults.codingAgent`), when stated.\n * `WILDO_CODING_AGENT` in the environment still wins, as it does in the companion.\n */\n codingAgentPreference?: string;\n}): Promise<LocalPreconditionCheckResult[]> {\n const {\n saasRoot,\n frameworkPath,\n isFrameworkDeveloper = false,\n includeCodingAgentProbe = false,\n includeDerivedArtifactCurrencySweep = false,\n } = input;\n const results: LocalPreconditionCheckResult[] = [\n checkNodeVersion(),\n checkPnpmToolchain({ manifestPath: resolvePackageManagerManifestPath(input) }),\n checkCxx20Toolchain(),\n checkDockerComposeVersion(),\n checkCompanionHeapHeadroom(),\n ];\n\n if (includeCodingAgentProbe) {\n results.push(checkCodingAgentAdapter());\n // Behind the same flag, for the same reason: both spawn a process and may\n // touch the network on a cold cache, which is why neither runs in the `dev`\n // preflight. The OpenCode check short-circuits to a pass when the optional\n // binary is absent, so adding it costs a `stat` on the common machine.\n results.push(checkOpenCodeAgent());\n }\n\n if (saasRoot) {\n // Always, not behind the probe flag: it reads the agent's local login state and spends nothing.\n // A FAIL in `doctor` (asked for by a person), a WARN in the `dev` preflight, which must still start\n // the stack for everything that does not need the agent.\n results.push(checkSelectedCodingAgentLogin({\n preference: input.codingAgentPreference,\n failWhenUnusable: includeCodingAgentProbe,\n }));\n results.push(await checkProviderRuntimeGeneratedModules(saasRoot));\n results.push(checkProviderRuntimeArtifactContent(saasRoot));\n results.push(checkCustomRoleScopes(saasRoot));\n results.push(checkKeyEncryptionRoot(EnvironmentUtils.loadSecretsJson()));\n // What a generated application needs on its first run (epic #3204): every one was silent until it bit.\n results.push(checkFrontendStylesheetSources(saasRoot));\n results.push(checkFrontendSettingsHubWiring(saasRoot));\n results.push(await checkProviderContributionsShadowingEngine(saasRoot));\n }\n\n const scopedRoots = [\n ...(saasRoot ? [saasRoot] : []),\n ...(frameworkPath && isFrameworkDeveloper ? [frameworkPath] : []),\n ];\n results.push(checkOrphanedDevWatchers(scopedRoots));\n\n if (includeDerivedArtifactCurrencySweep) {\n results.push(checkDerivedArtifactCurrency({ frameworkPath, saasRoot }));\n }\n\n return results;\n}\n\n/**\n * Which manifest's `packageManager` pin the pnpm check compares against.\n *\n * The framework checkout wins for a framework developer, because that is the\n * root they run `pnpm install` in and the one whose pin their pnpm will\n * self-switch to; an application developer's authority is their own app\n * manifest. Returns `null` when neither root is known, which the check treats\n * as \"no declared pin\" — it still verifies pnpm EXECUTES, which is the half\n * that mattered on 2026-08-08.\n *\n * Note this reads the APPLICATION's own manifest for an application developer\n * rather than pushing a framework version at them: pnpm binds both audiences,\n * but each audience's pin is its own. See the audience table in\n * `.claude/rules/toolchain-installation-baseline.md`.\n */\nfunction resolvePackageManagerManifestPath(input: {\n saasRoot: string | null;\n frameworkPath?: string | null;\n isFrameworkDeveloper?: boolean;\n}): string | null {\n const { saasRoot, frameworkPath, isFrameworkDeveloper = false } = input;\n if (isFrameworkDeveloper && frameworkPath) return join(frameworkPath, 'package.json');\n return saasRoot ? join(saasRoot, 'package.json') : null;\n}\n\n/**\n * Display a module path relative to the app root when it is inside it, so the\n * diagnostic line stays readable. Falls back to the absolute path for a host\n * that lives outside the app root — truncating that into a `../../..` chain\n * would be less useful than the full path.\n */\nfunction relativeToRootForDisplay(saasRoot: string, modulePath: string): string {\n const relativePath = relative(saasRoot, modulePath);\n return relativePath.startsWith('..') ? modulePath : relativePath;\n}\n\nfunction truncateCommand(command: string): string {\n return command.length > 80 ? `${command.slice(0, 80)}…` : command;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"env-configuration-generator.service.d.ts","sourceRoot":"","sources":["../../../../src/services/environment/env-configuration-generator.service.ts"],"names":[],"mappings":"AAiBA,OAAO,EAEL,KAAK,uBAAuB,EAC5B,KAAK,eAAe,EAEpB,qCAAqC,EAErC,KAAK,wBAAwB,EAC9B,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AACzH,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,qDAAqD,CAAC;AAO5G,OAAO,
|
|
1
|
+
{"version":3,"file":"env-configuration-generator.service.d.ts","sourceRoot":"","sources":["../../../../src/services/environment/env-configuration-generator.service.ts"],"names":[],"mappings":"AAiBA,OAAO,EAEL,KAAK,uBAAuB,EAC5B,KAAK,eAAe,EAEpB,qCAAqC,EAErC,KAAK,wBAAwB,EAC9B,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AACzH,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,qDAAqD,CAAC;AAO5G,OAAO,EAA2D,KAAK,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAM7H,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AA8DtD;;;;;;;;;;GAUG;AACH,wBAAgB,uBAAuB,CACrC,GAAG,EAAE,gCAAgC,EACrC,cAAc,CAAC,EAAE,qBAAqB,GAAG,IAAI,GAC5C,qBAAqB,CAOvB;AAED;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,MAAM,CAAC;CACvB;AAED;;;;;;;;;;;;;;;GAeG;AACH,MAAM,WAAW,8BAA8B;IAC7C,qFAAqF;IACrF,eAAe,E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,MAAM,CAAC,CAAC,CAoCxC;AAED,wBAAgB,+BAA+B,CAC7C,GAAG,EAAE,gCAAgC,EACrC,aAAa,EAAE,MAAM,EACrB,WAAW,EAAE,sBAAsB,EACnC,GAAG,EAAE,MAAM,EACX,mBAAmB,CAAC,EAAE,2BAA2B,EAAE,EACnD,aAAa,CAAC,EAAE,0BAA0B,EAAE,EAC5C,oBAAoB,CAAC,EAAE,mCAAmC,EAAE,EAC5D,kBAAkB,CAAC,EAAE,0BAA0B,EAAE,EACjD,kBAAkB,CAAC,EAAE,0BAA0B,EAAE,EACjD,oBAAoB,CAAC,EAAE,4BAA4B,EAAE,EACrD,WAAW,CAAC,EAAE;IACZ;;;;;OAKG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;CACnC,GACA,IAAI,CAqQN;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,8BAA8B,CAC5C,GAAG,EAAE,gCAAgC,EACrC,WAAW,EAAE,sBAAsB,GAClC,MAAM,GAAG,IAAI,CAef"}
|
|
@@ -7,13 +7,14 @@ import { IMMUDB_AUDIT_STATE_LOCAL_DATA_DIR } from '../../services/data-services/
|
|
|
7
7
|
import { LOCAL_APPLICATION_BACKEND_LISTEN_HOST } from '../../services/environment/platform-runtime.schemas.js';
|
|
8
8
|
import { resolveContainerHostGatewayListenHost } from '../../services/environment/container-host-gateway-listen-host.js';
|
|
9
9
|
import { InfrastructureHost } from '../../services/environment/infrastructure-host.service.js';
|
|
10
|
-
import { PlatformWildoServices } from '@wildo-ai/platform-config-lib';
|
|
10
|
+
import { PlatformWildoServices, resolveApplicationDatabaseEngine } from '@wildo-ai/platform-config-lib';
|
|
11
11
|
import { PLATFORM_SERVICE_CATALOG } from '../../services/catalog/service-catalog.schemas.js';
|
|
12
12
|
import { FILE_NAMES, GENERATED_FILE_HEADER } from '../../infrastructure/io/io.schemas.js';
|
|
13
13
|
import { ServiceAddressResolver, AddressPerspective } from '../../services/catalog/service-address-resolver.service.js';
|
|
14
14
|
import { PlatformEnvVarsBuilder } from '../../services/environment/env-vars-builder.service.js';
|
|
15
15
|
import { declaredProviderScope } from '../../services/credentials/provider-env-vars.utils.js';
|
|
16
16
|
import { APPLICATION_BACKEND_ENV_KEY_LIST } from '@wildo-ai/platform-core-shared';
|
|
17
|
+
import { assertProfileRunsDeclaredMinions } from '../../services/environment/environment-service-profile.utils.js';
|
|
17
18
|
const APPLICATION_BACKEND_RESERVED_ENV_KEYS = new Set(APPLICATION_BACKEND_ENV_KEY_LIST);
|
|
18
19
|
function assertNoApplicationBackendReservedEnvOverrides(extraEnv, targetDescription) {
|
|
19
20
|
const overriddenKeys = Object.keys(extraEnv ?? {}).filter((key) => APPLICATION_BACKEND_RESERVED_ENV_KEYS.has(key)).sort();
|
|
@@ -116,10 +117,14 @@ export function buildPlatformServiceEnvMap(env, credentials, frameworkPath) {
|
|
|
116
117
|
return envByDir;
|
|
117
118
|
}
|
|
118
119
|
export function generatePlatformServiceEnvFiles(env, frameworkPath, credentials, log, applicationBackends, companionApis, applicationFrontends, applicationWorkers, applicationMinions, applicationOperators, writePolicy) {
|
|
119
|
-
const platformServiceEnvs = buildPlatformServiceEnvMap(env, credentials, frameworkPath);
|
|
120
120
|
// Single load+hydrate seam (loadInfraHydratedConfig) for the app-host loops below; the platform
|
|
121
|
-
// hosts are hydrated the same way inside buildPlatformServiceEnvMap
|
|
121
|
+
// hosts are hydrated the same way inside buildPlatformServiceEnvMap below.
|
|
122
122
|
const config = loadInfraHydratedConfig(env);
|
|
123
|
+
// #2303: a profile whose queue cannot confine its minions (the DATABASE queue on MongoDB) refuses them before ANY file is
|
|
124
|
+
// written, so the native lane does not spawn a minion only for its boot to refuse it. Reads the same profile and engine
|
|
125
|
+
// the minion env would carry.
|
|
126
|
+
assertProfileRunsDeclaredMinions({ name: env.name, serviceProfile: config.serviceProfile }, applicationMinions?.length ?? 0, resolveApplicationDatabaseEngine(config.applicationDatabase));
|
|
127
|
+
const platformServiceEnvs = buildPlatformServiceEnvMap(env, credentials, frameworkPath);
|
|
123
128
|
const addressCtx = ServiceAddressResolver.fromEnvironment(env, AddressPerspective.HOST_FACING);
|
|
124
129
|
const addresses = ServiceAddressResolver.resolve(addressCtx);
|
|
125
130
|
const frameworkLayout = resolveFrameworkLayout(frameworkPath);
|