@wildo-ai/wildo-cli 1.1.13 → 1.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/commands/build/approve.command.d.ts +4 -0
- package/dist/src/commands/build/approve.command.d.ts.map +1 -1
- package/dist/src/commands/build/approve.command.js +14 -3
- package/dist/src/commands/build/approve.command.js.map +1 -1
- package/dist/src/commands/build/close.command.d.ts +4 -0
- package/dist/src/commands/build/close.command.d.ts.map +1 -1
- package/dist/src/commands/build/close.command.js +17 -3
- package/dist/src/commands/build/close.command.js.map +1 -1
- package/dist/src/commands/config/sync.command.d.ts.map +1 -1
- package/dist/src/commands/config/sync.command.js +21 -1
- package/dist/src/commands/config/sync.command.js.map +1 -1
- package/dist/src/commands/creation/feed.command.d.ts.map +1 -1
- package/dist/src/commands/creation/feed.command.js +6 -3
- package/dist/src/commands/creation/feed.command.js.map +1 -1
- package/dist/src/commands/fwk/publish-all.command.d.ts +13 -0
- package/dist/src/commands/fwk/publish-all.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/publish-all.command.js +57 -3
- package/dist/src/commands/fwk/publish-all.command.js.map +1 -1
- package/dist/src/commands/fwk/publish-docker.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/publish-docker.command.js +16 -1
- package/dist/src/commands/fwk/publish-docker.command.js.map +1 -1
- package/dist/src/commands/fwk/registry-host.command.d.ts +19 -1
- package/dist/src/commands/fwk/registry-host.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/registry-host.command.js +78 -3
- package/dist/src/commands/fwk/registry-host.command.js.map +1 -1
- package/dist/src/commands/generate/email-command.utils.d.ts +2 -0
- package/dist/src/commands/generate/email-command.utils.d.ts.map +1 -1
- package/dist/src/commands/generate/email-command.utils.js +5 -0
- package/dist/src/commands/generate/email-command.utils.js.map +1 -1
- package/dist/src/commands/init.command.d.ts +14 -0
- package/dist/src/commands/init.command.d.ts.map +1 -1
- package/dist/src/commands/init.command.js +36 -5
- package/dist/src/commands/init.command.js.map +1 -1
- package/dist/src/commands/local/deregister.command.d.ts.map +1 -1
- package/dist/src/commands/local/deregister.command.js +4 -0
- package/dist/src/commands/local/deregister.command.js.map +1 -1
- package/dist/src/commands/local/dev.command.d.ts +6 -0
- package/dist/src/commands/local/dev.command.d.ts.map +1 -1
- package/dist/src/commands/local/dev.command.js +72 -0
- package/dist/src/commands/local/dev.command.js.map +1 -1
- package/dist/src/commands/local/jobs-command.utils.d.ts +24 -0
- package/dist/src/commands/local/jobs-command.utils.d.ts.map +1 -0
- package/dist/src/commands/local/jobs-command.utils.js +44 -0
- package/dist/src/commands/local/jobs-command.utils.js.map +1 -0
- package/dist/src/commands/local/jobs-run.command.d.ts +7 -0
- package/dist/src/commands/local/jobs-run.command.d.ts.map +1 -0
- package/dist/src/commands/local/jobs-run.command.js +92 -0
- package/dist/src/commands/local/jobs-run.command.js.map +1 -0
- package/dist/src/commands/local/jobs.command.d.ts +7 -0
- package/dist/src/commands/local/jobs.command.d.ts.map +1 -0
- package/dist/src/commands/local/jobs.command.js +59 -0
- package/dist/src/commands/local/jobs.command.js.map +1 -0
- package/dist/src/commands/local/tunnel.command.d.ts +84 -0
- package/dist/src/commands/local/tunnel.command.d.ts.map +1 -0
- package/dist/src/commands/local/tunnel.command.js +274 -0
- package/dist/src/commands/local/tunnel.command.js.map +1 -0
- package/dist/src/commands/registry/repair-lockfile.command.d.ts.map +1 -1
- package/dist/src/commands/registry/repair-lockfile.command.js +1 -0
- package/dist/src/commands/registry/repair-lockfile.command.js.map +1 -1
- package/dist/src/commands/registry/update.command.d.ts.map +1 -1
- package/dist/src/commands/registry/update.command.js +1 -0
- package/dist/src/commands/registry/update.command.js.map +1 -1
- package/dist/src/commands/seal/verify.command.d.ts +18 -0
- package/dist/src/commands/seal/verify.command.d.ts.map +1 -1
- package/dist/src/commands/seal/verify.command.js +62 -1
- package/dist/src/commands/seal/verify.command.js.map +1 -1
- package/dist/src/services/application/app-bootstrap.service.d.ts +41 -1
- package/dist/src/services/application/app-bootstrap.service.d.ts.map +1 -1
- package/dist/src/services/application/app-bootstrap.service.js +49 -3
- package/dist/src/services/application/app-bootstrap.service.js.map +1 -1
- package/dist/src/services/application/app-runtime-targets.service.d.ts.map +1 -1
- package/dist/src/services/application/app-runtime-targets.service.js +9 -1
- package/dist/src/services/application/app-runtime-targets.service.js.map +1 -1
- package/dist/src/services/application/application-dependency-alignment.service.d.ts +20 -0
- package/dist/src/services/application/application-dependency-alignment.service.d.ts.map +1 -1
- package/dist/src/services/application/application-dependency-alignment.service.js +32 -2
- package/dist/src/services/application/application-dependency-alignment.service.js.map +1 -1
- package/dist/src/services/application/local-tunnel.service.d.ts +153 -0
- package/dist/src/services/application/local-tunnel.service.d.ts.map +1 -0
- package/dist/src/services/application/local-tunnel.service.js +294 -0
- package/dist/src/services/application/local-tunnel.service.js.map +1 -0
- package/dist/src/services/application/provider-runtime-sync.service.d.ts.map +1 -1
- package/dist/src/services/application/provider-runtime-sync.service.js +29 -1
- package/dist/src/services/application/provider-runtime-sync.service.js.map +1 -1
- package/dist/src/services/application/saas-skeleton.service.d.ts +7 -0
- package/dist/src/services/application/saas-skeleton.service.d.ts.map +1 -1
- package/dist/src/services/application/saas-skeleton.service.js +26 -2
- package/dist/src/services/application/saas-skeleton.service.js.map +1 -1
- package/dist/src/services/catalog/service-address-resolver.service.d.ts +7 -1
- package/dist/src/services/catalog/service-address-resolver.service.d.ts.map +1 -1
- package/dist/src/services/catalog/service-address-resolver.service.js +6 -3
- package/dist/src/services/catalog/service-address-resolver.service.js.map +1 -1
- package/dist/src/services/companion/build-console.service.d.ts +39 -2
- package/dist/src/services/companion/build-console.service.d.ts.map +1 -1
- package/dist/src/services/companion/build-console.service.js +54 -4
- package/dist/src/services/companion/build-console.service.js.map +1 -1
- package/dist/src/services/companion/creation-console.service.d.ts +6 -1
- package/dist/src/services/companion/creation-console.service.d.ts.map +1 -1
- package/dist/src/services/companion/creation-console.service.js +14 -2
- package/dist/src/services/companion/creation-console.service.js.map +1 -1
- package/dist/src/services/companion/creation-drive.service.d.ts.map +1 -1
- package/dist/src/services/companion/creation-drive.service.js +5 -2
- package/dist/src/services/companion/creation-drive.service.js.map +1 -1
- package/dist/src/services/credentials/application-secrets.service.d.ts +6 -0
- package/dist/src/services/credentials/application-secrets.service.d.ts.map +1 -1
- package/dist/src/services/credentials/application-secrets.service.js +1 -1
- package/dist/src/services/credentials/application-secrets.service.js.map +1 -1
- package/dist/src/services/credentials/composed-provider-catalogue.d.ts.map +1 -1
- package/dist/src/services/credentials/composed-provider-catalogue.js +14 -2
- package/dist/src/services/credentials/composed-provider-catalogue.js.map +1 -1
- package/dist/src/services/credentials/provider-env-vars.utils.d.ts.map +1 -1
- package/dist/src/services/credentials/provider-env-vars.utils.js +3 -1
- package/dist/src/services/credentials/provider-env-vars.utils.js.map +1 -1
- package/dist/src/services/credentials/secret-requirements.service.d.ts +2 -1
- package/dist/src/services/credentials/secret-requirements.service.d.ts.map +1 -1
- package/dist/src/services/credentials/secret-requirements.service.js +17 -1
- package/dist/src/services/credentials/secret-requirements.service.js.map +1 -1
- package/dist/src/services/credentials/secrets-writer.service.d.ts +11 -2
- package/dist/src/services/credentials/secrets-writer.service.d.ts.map +1 -1
- package/dist/src/services/credentials/secrets-writer.service.js +12 -3
- package/dist/src/services/credentials/secrets-writer.service.js.map +1 -1
- package/dist/src/services/deployment/application-runtime-environment.d.ts.map +1 -1
- package/dist/src/services/deployment/application-runtime-environment.js +3 -13
- package/dist/src/services/deployment/application-runtime-environment.js.map +1 -1
- package/dist/src/services/deployment/ci-deploy-generator.service.d.ts.map +1 -1
- package/dist/src/services/deployment/ci-deploy-generator.service.js +3 -3
- package/dist/src/services/deployment/ci-deploy-generator.service.js.map +1 -1
- package/dist/src/services/deployment/docker/docker-compose-generator.service.d.ts +3 -3
- package/dist/src/services/deployment/docker/docker-compose-generator.service.d.ts.map +1 -1
- package/dist/src/services/deployment/docker/docker-compose-generator.service.js +24 -14
- package/dist/src/services/deployment/docker/docker-compose-generator.service.js.map +1 -1
- package/dist/src/services/deployment/framework-pod-network-membership.d.ts +6 -0
- package/dist/src/services/deployment/framework-pod-network-membership.d.ts.map +1 -1
- package/dist/src/services/deployment/framework-pod-network-membership.js +12 -3
- package/dist/src/services/deployment/framework-pod-network-membership.js.map +1 -1
- package/dist/src/services/deployment/host-toolchain-readiness.service.d.ts +1 -1
- package/dist/src/services/deployment/host-toolchain-readiness.service.js +1 -1
- package/dist/src/services/deployment/host-toolchain-readiness.service.js.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.d.ts +4 -1
- package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.js +20 -8
- package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.js.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-manifest.schemas.d.ts +7 -0
- package/dist/src/services/deployment/k8s/k8s-manifest.schemas.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-manifest.schemas.js.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-secrets-generator.service.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-secrets-generator.service.js +15 -9
- package/dist/src/services/deployment/k8s/k8s-secrets-generator.service.js.map +1 -1
- package/dist/src/services/deployment/k8s/kind-pod-host-gateway.d.ts +43 -0
- package/dist/src/services/deployment/k8s/kind-pod-host-gateway.d.ts.map +1 -0
- package/dist/src/services/deployment/k8s/kind-pod-host-gateway.js +12 -0
- package/dist/src/services/deployment/k8s/kind-pod-host-gateway.js.map +1 -0
- package/dist/src/services/deployment/k8s/off-cluster-backing-services.d.ts +3 -1
- package/dist/src/services/deployment/k8s/off-cluster-backing-services.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/off-cluster-backing-services.js.map +1 -1
- package/dist/src/services/deployment/local-dev-late-workspace-members.service.d.ts +124 -0
- package/dist/src/services/deployment/local-dev-late-workspace-members.service.d.ts.map +1 -0
- package/dist/src/services/deployment/local-dev-late-workspace-members.service.js +249 -0
- package/dist/src/services/deployment/local-dev-late-workspace-members.service.js.map +1 -0
- package/dist/src/services/deployment/local-precondition-checks.service.d.ts.map +1 -1
- package/dist/src/services/deployment/local-precondition-checks.service.js +4 -2
- package/dist/src/services/deployment/local-precondition-checks.service.js.map +1 -1
- package/dist/src/services/environment/authored-infra-config.utils.d.ts +9 -0
- package/dist/src/services/environment/authored-infra-config.utils.d.ts.map +1 -1
- package/dist/src/services/environment/authored-infra-config.utils.js +20 -1
- package/dist/src/services/environment/authored-infra-config.utils.js.map +1 -1
- package/dist/src/services/environment/container-host-gateway-listen-host.d.ts +6 -0
- package/dist/src/services/environment/container-host-gateway-listen-host.d.ts.map +1 -1
- package/dist/src/services/environment/container-host-gateway-listen-host.js +6 -0
- package/dist/src/services/environment/container-host-gateway-listen-host.js.map +1 -1
- package/dist/src/services/environment/env-configuration-generator.service.d.ts +12 -0
- package/dist/src/services/environment/env-configuration-generator.service.d.ts.map +1 -1
- package/dist/src/services/environment/env-configuration-generator.service.js +45 -8
- package/dist/src/services/environment/env-configuration-generator.service.js.map +1 -1
- package/dist/src/services/environment/env-vars-builder.service.d.ts +2 -1
- package/dist/src/services/environment/env-vars-builder.service.d.ts.map +1 -1
- package/dist/src/services/environment/env-vars-builder.service.js +47 -32
- package/dist/src/services/environment/env-vars-builder.service.js.map +1 -1
- package/dist/src/services/environment/environment-lifecycle.service.d.ts +7 -4
- package/dist/src/services/environment/environment-lifecycle.service.d.ts.map +1 -1
- package/dist/src/services/environment/environment-lifecycle.service.js +14 -18
- package/dist/src/services/environment/environment-lifecycle.service.js.map +1 -1
- package/dist/src/services/environment/environment-service-profile.utils.d.ts +8 -1
- package/dist/src/services/environment/environment-service-profile.utils.d.ts.map +1 -1
- package/dist/src/services/environment/environment-service-profile.utils.js +14 -1
- package/dist/src/services/environment/environment-service-profile.utils.js.map +1 -1
- package/dist/src/services/environment/environment-setup.service.d.ts.map +1 -1
- package/dist/src/services/environment/environment-setup.service.js +17 -6
- package/dist/src/services/environment/environment-setup.service.js.map +1 -1
- package/dist/src/services/environment/environment.service.d.ts +4 -3
- package/dist/src/services/environment/environment.service.d.ts.map +1 -1
- package/dist/src/services/environment/environment.service.js +0 -1
- package/dist/src/services/environment/environment.service.js.map +1 -1
- package/dist/src/services/framework/framework-docker-publish.service.d.ts +129 -0
- package/dist/src/services/framework/framework-docker-publish.service.d.ts.map +1 -1
- package/dist/src/services/framework/framework-docker-publish.service.js +271 -19
- package/dist/src/services/framework/framework-docker-publish.service.js.map +1 -1
- package/dist/src/services/framework/github-actions-annotation.d.ts +19 -0
- package/dist/src/services/framework/github-actions-annotation.d.ts.map +1 -0
- package/dist/src/services/framework/github-actions-annotation.js +25 -0
- package/dist/src/services/framework/github-actions-annotation.js.map +1 -0
- package/dist/src/services/framework/registry-host/registry-host-upgrade.d.ts +43 -0
- package/dist/src/services/framework/registry-host/registry-host-upgrade.d.ts.map +1 -0
- package/dist/src/services/framework/registry-host/registry-host-upgrade.js +117 -0
- package/dist/src/services/framework/registry-host/registry-host-upgrade.js.map +1 -0
- package/dist/src/services/framework/registry-host/registry-host.service.d.ts +1 -1
- package/dist/src/services/framework/registry-host/registry-host.service.d.ts.map +1 -1
- package/dist/src/services/framework/registry-host/registry-host.service.js +2 -0
- package/dist/src/services/framework/registry-host/registry-host.service.js.map +1 -1
- package/dist/src/services/registry/installed-file-state.utils.d.ts +8 -0
- package/dist/src/services/registry/installed-file-state.utils.d.ts.map +1 -1
- package/dist/src/services/registry/installed-file-state.utils.js +9 -1
- package/dist/src/services/registry/installed-file-state.utils.js.map +1 -1
- package/dist/src/services/registry/module-install.service.d.ts.map +1 -1
- package/dist/src/services/registry/module-install.service.js +1 -0
- package/dist/src/services/registry/module-install.service.js.map +1 -1
- package/dist/src/services/registry/provider-module-scaffold.service.d.ts.map +1 -1
- package/dist/src/services/registry/provider-module-scaffold.service.js +4 -0
- package/dist/src/services/registry/provider-module-scaffold.service.js.map +1 -1
- package/dist/src/services/security/csp-sync.service.d.ts.map +1 -1
- package/dist/src/services/security/csp-sync.service.js +21 -2
- package/dist/src/services/security/csp-sync.service.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/framework-root-package.json +3 -3
- package/package.json +23 -23
- package/scripts/app-dependency-alignment/propagated-engine-overrides.json +1 -1
- package/templates/infra/docker-compose/docker-compose.wildo-platform.yml.hbs +31 -9
- package/templates/infra/k8s/platform/platform-crontabs-batches-manager/deployment.yaml.hbs +13 -0
- package/templates/infra/registry-host/docker-compose.yml +9 -2
- package/templates/infra/registry-host/upgrade-image.sh +108 -0
- package/templates/saas/i18n/email/resources/dataSubjectRequests/create.users-custom_ready/labels.fr.ts +22 -0
- package/templates/saas/i18n/email/resources/dataSubjectRequests/create.users-custom_received/labels.fr.ts +23 -0
- package/templates/saas/i18n/email/resources/dataSubjectRequests/update.users-custom_extended/labels.fr.ts +23 -0
- package/templates/saas/i18n/email/resources/organizationSsoConfig/repairUnreadableConfiguration.organization-users/labels.fr.ts +23 -0
- package/templates/saas/i18n/engine/components/HIGH_LEVEL_VIEWS_CHART_DASHBOARD_LAYOUT_EDITOR.en.ts +28 -0
- package/templates/saas/i18n/engine/components/HIGH_LEVEL_VIEWS_CHART_DASHBOARD_LAYOUT_EDITOR.fr.ts +28 -0
- package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_APPROVAL.en.ts +2 -1
- package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_APPROVAL.fr.ts +2 -1
- package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_CONVERSATION_THREAD.en.ts +6 -1
- package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_CONVERSATION_THREAD.fr.ts +6 -1
- package/templates/saas/i18n/engine/components/LOW_LEVEL_APPROVAL_SEAL.en.ts +40 -0
- package/templates/saas/i18n/engine/components/LOW_LEVEL_APPROVAL_SEAL.fr.ts +40 -0
- package/templates/saas/i18n/engine/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.ts +2 -1
- package/templates/saas/i18n/engine/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.fr.ts +2 -1
- package/templates/saas/i18n/engine/components/LOW_LEVEL_FORM_FIELD_STRING.en.ts +2 -1
- package/templates/saas/i18n/engine/components/LOW_LEVEL_FORM_FIELD_STRING.fr.ts +2 -1
- package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.ts +2 -1
- package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.fr.ts +2 -1
- package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_TERMS.en.ts +3 -1
- package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_TERMS.fr.ts +3 -1
- package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_USER_AUTH.en.ts +2 -1
- package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_USER_AUTH.fr.ts +2 -1
- package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_FILTERS.en.ts +3 -1
- package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_FILTERS.fr.ts +4 -2
- package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_LIST.en.ts +18 -1
- package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_LIST.fr.ts +18 -1
- package/templates/saas/i18n/engine/resources/actorSystemExecutions.en.ts +10 -82
- package/templates/saas/i18n/engine/resources/actorSystemExecutions.fr.ts +0 -72
- package/templates/saas/i18n/engine/resources/actorTasks.en.ts +0 -33
- package/templates/saas/i18n/engine/resources/actorTasks.fr.ts +0 -33
- package/templates/saas/i18n/engine/resources/agentBehaviorReports.en.ts +0 -108
- package/templates/saas/i18n/engine/resources/agentBehaviorReports.fr.ts +0 -108
- package/templates/saas/i18n/engine/resources/agentOperationRecords.en.ts +8 -24
- package/templates/saas/i18n/engine/resources/agentOperationRecords.fr.ts +10 -26
- package/templates/saas/i18n/engine/resources/agentWorkCaptureSettings.en.ts +0 -12
- package/templates/saas/i18n/engine/resources/agentWorkCaptureSettings.fr.ts +0 -12
- package/templates/saas/i18n/engine/resources/anonymous_users.en.ts +8 -74
- package/templates/saas/i18n/engine/resources/anonymous_users.fr.ts +0 -66
- package/templates/saas/i18n/engine/resources/applicationA2aPushDeliveryLog.en.ts +3 -21
- package/templates/saas/i18n/engine/resources/applicationA2aPushDeliveryLog.fr.ts +0 -18
- package/templates/saas/i18n/engine/resources/applicationA2aTokenBudgetState.en.ts +3 -33
- package/templates/saas/i18n/engine/resources/applicationA2aTokenBudgetState.fr.ts +0 -30
- package/templates/saas/i18n/engine/resources/applicationAccessGrants.en.ts +13 -55
- package/templates/saas/i18n/engine/resources/applicationAccessGrants.fr.ts +0 -42
- package/templates/saas/i18n/engine/resources/applicationAgentPolicies.en.ts +8 -24
- package/templates/saas/i18n/engine/resources/applicationAgentPolicies.fr.ts +8 -24
- package/templates/saas/i18n/engine/resources/applicationAgentWorkDecisionContents.en.ts +0 -27
- package/templates/saas/i18n/engine/resources/applicationAgentWorkDecisionContents.fr.ts +0 -27
- package/templates/saas/i18n/engine/resources/applicationAgentWorkDecisions.en.ts +13 -43
- package/templates/saas/i18n/engine/resources/applicationAgentWorkDecisions.fr.ts +0 -30
- package/templates/saas/i18n/engine/resources/applicationApiKeys.en.ts +2 -70
- package/templates/saas/i18n/engine/resources/applicationApiKeys.fr.ts +2 -70
- package/templates/saas/i18n/engine/resources/applicationAuditLogs.en.ts +41 -94
- package/templates/saas/i18n/engine/resources/applicationAuditLogs.fr.ts +41 -94
- package/templates/saas/i18n/engine/resources/applicationDataKeys.en.ts +2 -22
- package/templates/saas/i18n/engine/resources/applicationDataKeys.fr.ts +2 -22
- package/templates/saas/i18n/engine/resources/applicationFeatures.en.ts +0 -24
- package/templates/saas/i18n/engine/resources/applicationFeatures.fr.ts +0 -24
- package/templates/saas/i18n/engine/resources/applicationFlowActorExecutions.en.ts +25 -160
- package/templates/saas/i18n/engine/resources/applicationFlowActorExecutions.fr.ts +25 -160
- package/templates/saas/i18n/engine/resources/applicationFlowActorTasks.en.ts +6 -28
- package/templates/saas/i18n/engine/resources/applicationFlowActorTasks.fr.ts +8 -30
- package/templates/saas/i18n/engine/resources/applicationInboundDeliveries.en.ts +92 -23
- package/templates/saas/i18n/engine/resources/applicationInboundDeliveries.fr.ts +95 -26
- package/templates/saas/i18n/engine/resources/applicationM2mWebhookDeliveryLog.en.ts +1 -25
- package/templates/saas/i18n/engine/resources/applicationM2mWebhookDeliveryLog.fr.ts +4 -28
- package/templates/saas/i18n/engine/resources/applicationMetadata.en.ts +0 -18
- package/templates/saas/i18n/engine/resources/applicationMetadata.fr.ts +0 -18
- package/templates/saas/i18n/engine/resources/applicationOAuthClients.en.ts +2 -58
- package/templates/saas/i18n/engine/resources/applicationOAuthClients.fr.ts +2 -58
- package/templates/saas/i18n/engine/resources/applicationProviderCredentials.en.ts +168 -0
- package/templates/saas/i18n/engine/resources/applicationProviderCredentials.fr.ts +168 -0
- package/templates/saas/i18n/engine/resources/applicationScimProvisioningConfig.en.ts +0 -30
- package/templates/saas/i18n/engine/resources/applicationScimProvisioningConfig.fr.ts +0 -30
- package/templates/saas/i18n/engine/resources/applicationSiemDeliveryDlq.en.ts +3 -42
- package/templates/saas/i18n/engine/resources/applicationSiemDeliveryDlq.fr.ts +5 -44
- package/templates/saas/i18n/engine/resources/applicationSiemDeliveryOutbox.en.ts +3 -30
- package/templates/saas/i18n/engine/resources/applicationSiemDeliveryOutbox.fr.ts +0 -27
- package/templates/saas/i18n/engine/resources/applicationSiemExportConfig.en.ts +0 -24
- package/templates/saas/i18n/engine/resources/applicationSiemExportConfig.fr.ts +0 -24
- package/templates/saas/i18n/engine/resources/applicationSsoConfig.en.ts +113 -61
- package/templates/saas/i18n/engine/resources/applicationSsoConfig.fr.ts +113 -61
- package/templates/saas/i18n/engine/resources/applicationSsoConnections.en.ts +0 -138
- package/templates/saas/i18n/engine/resources/applicationSsoConnections.fr.ts +0 -138
- package/templates/saas/i18n/engine/resources/applicationVersions.en.ts +3 -27
- package/templates/saas/i18n/engine/resources/applicationVersions.fr.ts +0 -24
- package/templates/saas/i18n/engine/resources/applicationWebhookConfig.en.ts +5 -54
- package/templates/saas/i18n/engine/resources/applicationWebhookConfig.fr.ts +5 -54
- package/templates/saas/i18n/engine/resources/applications.en.ts +39 -2177
- package/templates/saas/i18n/engine/resources/applications.fr.ts +39 -2177
- package/templates/saas/i18n/engine/resources/approvalSeals.en.ts +38 -31
- package/templates/saas/i18n/engine/resources/approvalSeals.fr.ts +38 -31
- package/templates/saas/i18n/engine/resources/auditLogs.en.ts +78 -111
- package/templates/saas/i18n/engine/resources/auditLogs.fr.ts +78 -111
- package/templates/saas/i18n/engine/resources/billingEffectOutbox.en.ts +2 -4
- package/templates/saas/i18n/engine/resources/billingEffectOutbox.fr.ts +2 -4
- package/templates/saas/i18n/engine/resources/billingSubscriptionMutationIntents.en.ts +8 -6
- package/templates/saas/i18n/engine/resources/billingSubscriptionMutationIntents.fr.ts +8 -6
- package/templates/saas/i18n/engine/resources/chatConversations.en.ts +0 -18
- package/templates/saas/i18n/engine/resources/chatConversations.fr.ts +0 -18
- package/templates/saas/i18n/engine/resources/chatIdentityLinks.en.ts +0 -44
- package/templates/saas/i18n/engine/resources/chatIdentityLinks.fr.ts +0 -44
- package/templates/saas/i18n/engine/resources/consumableTokens.en.ts +4 -43
- package/templates/saas/i18n/engine/resources/consumableTokens.fr.ts +4 -43
- package/templates/saas/i18n/engine/resources/conversationMessages.en.ts +16 -27
- package/templates/saas/i18n/engine/resources/conversationMessages.fr.ts +16 -27
- package/templates/saas/i18n/engine/resources/conversationReplyTokens.en.ts +0 -27
- package/templates/saas/i18n/engine/resources/conversationReplyTokens.fr.ts +0 -27
- package/templates/saas/i18n/engine/resources/conversationThreads.en.ts +0 -27
- package/templates/saas/i18n/engine/resources/conversationThreads.fr.ts +0 -27
- package/templates/saas/i18n/engine/resources/dataSeedRuns.en.ts +22 -17
- package/templates/saas/i18n/engine/resources/dataSeedRuns.fr.ts +22 -17
- package/templates/saas/i18n/engine/resources/dataSubjectRequests.en.ts +410 -0
- package/templates/saas/i18n/engine/resources/dataSubjectRequests.fr.ts +410 -0
- package/templates/saas/i18n/engine/resources/etlPipelineStates.en.ts +128 -146
- package/templates/saas/i18n/engine/resources/etlPipelineStates.fr.ts +0 -18
- package/templates/saas/i18n/engine/resources/evaluationDatasetExports.en.ts +13 -43
- package/templates/saas/i18n/engine/resources/evaluationDatasetExports.fr.ts +0 -30
- package/templates/saas/i18n/engine/resources/evaluationExportAuthorizations.en.ts +0 -12
- package/templates/saas/i18n/engine/resources/evaluationExportAuthorizations.fr.ts +0 -12
- package/templates/saas/i18n/engine/resources/externalDataErasureSuppressions.en.ts +0 -21
- package/templates/saas/i18n/engine/resources/externalDataErasureSuppressions.fr.ts +0 -21
- package/templates/saas/i18n/engine/resources/externalDataOutboundChanges.en.ts +24 -45
- package/templates/saas/i18n/engine/resources/externalDataOutboundChanges.fr.ts +0 -21
- package/templates/saas/i18n/engine/resources/externalDataPendingReferences.en.ts +0 -24
- package/templates/saas/i18n/engine/resources/externalDataPendingReferences.fr.ts +0 -24
- package/templates/saas/i18n/engine/resources/externalDataPipelineMembershipKeys.en.ts +0 -21
- package/templates/saas/i18n/engine/resources/externalDataPipelineMembershipKeys.fr.ts +0 -21
- package/templates/saas/i18n/engine/resources/externalDataPipelineMemberships.en.ts +8 -14
- package/templates/saas/i18n/engine/resources/externalDataPipelineMemberships.fr.ts +0 -6
- package/templates/saas/i18n/engine/resources/externalDataPipelineRequestedKeys.en.ts +0 -24
- package/templates/saas/i18n/engine/resources/externalDataPipelineRequestedKeys.fr.ts +0 -24
- package/templates/saas/i18n/engine/resources/externalDataPipelineRunRecords.en.ts +150 -174
- package/templates/saas/i18n/engine/resources/externalDataPipelineRunRecords.fr.ts +0 -24
- package/templates/saas/i18n/engine/resources/externalDataRemoteVersions.en.ts +12 -33
- package/templates/saas/i18n/engine/resources/externalDataRemoteVersions.fr.ts +0 -21
- package/templates/saas/i18n/engine/resources/externalEffectReservations.en.ts +147 -0
- package/templates/saas/i18n/engine/resources/externalEffectReservations.fr.ts +147 -0
- package/templates/saas/i18n/engine/resources/files.en.ts +0 -39
- package/templates/saas/i18n/engine/resources/files.fr.ts +0 -39
- package/templates/saas/i18n/engine/resources/humanDecisionNoticeStays.en.ts +0 -18
- package/templates/saas/i18n/engine/resources/humanDecisionNoticeStays.fr.ts +0 -18
- package/templates/saas/i18n/engine/resources/idempotentRequestOutcomes.en.ts +115 -0
- package/templates/saas/i18n/engine/resources/idempotentRequestOutcomes.fr.ts +115 -0
- package/templates/saas/i18n/engine/resources/inboundAddressTombstones.en.ts +0 -27
- package/templates/saas/i18n/engine/resources/inboundAddressTombstones.fr.ts +0 -27
- package/templates/saas/i18n/engine/resources/inboundContacts.en.ts +3 -30
- package/templates/saas/i18n/engine/resources/inboundContacts.fr.ts +0 -27
- package/templates/saas/i18n/engine/resources/inboundEmails.en.ts +0 -27
- package/templates/saas/i18n/engine/resources/inboundEmails.fr.ts +0 -27
- package/templates/saas/i18n/engine/resources/jobExecutions.en.ts +11 -25
- package/templates/saas/i18n/engine/resources/jobExecutions.fr.ts +11 -25
- package/templates/saas/i18n/engine/resources/jobPayloadStorage.en.ts +3 -30
- package/templates/saas/i18n/engine/resources/jobPayloadStorage.fr.ts +0 -27
- package/templates/saas/i18n/engine/resources/legalHolds.en.ts +0 -88
- package/templates/saas/i18n/engine/resources/legalHolds.fr.ts +0 -88
- package/templates/saas/i18n/engine/resources/modelCallAttributions.en.ts +16 -40
- package/templates/saas/i18n/engine/resources/modelCallAttributions.fr.ts +0 -24
- package/templates/saas/i18n/engine/resources/modelCostPeriodAggregates.en.ts +13 -37
- package/templates/saas/i18n/engine/resources/modelCostPeriodAggregates.fr.ts +0 -24
- package/templates/saas/i18n/engine/resources/oauthConsentGrants.en.ts +10 -40
- package/templates/saas/i18n/engine/resources/oauthConsentGrants.fr.ts +0 -30
- package/templates/saas/i18n/engine/resources/operationApprovalRequests.en.ts +120 -60
- package/templates/saas/i18n/engine/resources/operationApprovalRequests.fr.ts +120 -60
- package/templates/saas/i18n/engine/resources/organizationA2aPushDeliveryLog.en.ts +3 -21
- package/templates/saas/i18n/engine/resources/organizationA2aPushDeliveryLog.fr.ts +0 -18
- package/templates/saas/i18n/engine/resources/organizationA2aTokenBudgetState.en.ts +3 -33
- package/templates/saas/i18n/engine/resources/organizationA2aTokenBudgetState.fr.ts +0 -30
- package/templates/saas/i18n/engine/resources/organizationAgentPolicies.en.ts +0 -27
- package/templates/saas/i18n/engine/resources/organizationAgentPolicies.fr.ts +0 -27
- package/templates/saas/i18n/engine/resources/organizationAgentWorkDecisionContents.en.ts +0 -27
- package/templates/saas/i18n/engine/resources/organizationAgentWorkDecisionContents.fr.ts +0 -27
- package/templates/saas/i18n/engine/resources/organizationAgentWorkDecisions.en.ts +13 -43
- package/templates/saas/i18n/engine/resources/organizationAgentWorkDecisions.fr.ts +0 -30
- package/templates/saas/i18n/engine/resources/organizationApiKeys.en.ts +2 -79
- package/templates/saas/i18n/engine/resources/organizationApiKeys.fr.ts +2 -79
- package/templates/saas/i18n/engine/resources/organizationBillingAccounts.en.ts +0 -549
- package/templates/saas/i18n/engine/resources/organizationBillingAccounts.fr.ts +0 -549
- package/templates/saas/i18n/engine/resources/organizationChatSettings.en.ts +0 -27
- package/templates/saas/i18n/engine/resources/organizationChatSettings.fr.ts +0 -27
- package/templates/saas/i18n/engine/resources/organizationCreditPools.en.ts +13 -18
- package/templates/saas/i18n/engine/resources/organizationCreditPools.fr.ts +13 -18
- package/templates/saas/i18n/engine/resources/organizationCustomDomains.en.ts +195 -0
- package/templates/saas/i18n/engine/resources/organizationCustomDomains.fr.ts +195 -0
- package/templates/saas/i18n/engine/resources/organizationDashboardLayouts.en.ts +153 -0
- package/templates/saas/i18n/engine/resources/organizationDashboardLayouts.fr.ts +153 -0
- package/templates/saas/i18n/engine/resources/organizationEmailDomains.en.ts +0 -39
- package/templates/saas/i18n/engine/resources/organizationEmailDomains.fr.ts +0 -39
- package/templates/saas/i18n/engine/resources/organizationFeatures.en.ts +0 -34
- package/templates/saas/i18n/engine/resources/organizationFeatures.fr.ts +0 -34
- package/templates/saas/i18n/engine/resources/organizationFlowActorExecutions.en.ts +25 -160
- package/templates/saas/i18n/engine/resources/organizationFlowActorExecutions.fr.ts +25 -160
- package/templates/saas/i18n/engine/resources/organizationFlowActorTasks.en.ts +6 -28
- package/templates/saas/i18n/engine/resources/organizationFlowActorTasks.fr.ts +8 -30
- package/templates/saas/i18n/engine/resources/organizationGuidanceState.en.ts +3 -18
- package/templates/saas/i18n/engine/resources/organizationGuidanceState.fr.ts +0 -15
- package/templates/saas/i18n/engine/resources/organizationInboundDeliveries.en.ts +95 -26
- package/templates/saas/i18n/engine/resources/organizationInboundDeliveries.fr.ts +95 -26
- package/templates/saas/i18n/engine/resources/organizationInvoiceRefs.en.ts +14 -45
- package/templates/saas/i18n/engine/resources/organizationInvoiceRefs.fr.ts +14 -45
- package/templates/saas/i18n/engine/resources/organizationLifecycleState.en.ts +1 -17
- package/templates/saas/i18n/engine/resources/organizationLifecycleState.fr.ts +1 -17
- package/templates/saas/i18n/engine/resources/organizationM2mWebhookDeliveryLog.en.ts +2 -26
- package/templates/saas/i18n/engine/resources/organizationM2mWebhookDeliveryLog.fr.ts +4 -28
- package/templates/saas/i18n/engine/resources/organizationMembers.en.ts +2 -95
- package/templates/saas/i18n/engine/resources/organizationMembers.fr.ts +2 -95
- package/templates/saas/i18n/engine/resources/organizationModelUsageCeilingState.en.ts +0 -27
- package/templates/saas/i18n/engine/resources/organizationModelUsageCeilingState.fr.ts +0 -27
- package/templates/saas/i18n/engine/resources/organizationNotificationBadges.en.ts +3 -36
- package/templates/saas/i18n/engine/resources/organizationNotificationBadges.fr.ts +0 -33
- package/templates/saas/i18n/engine/resources/organizationNotifications.en.ts +0 -12
- package/templates/saas/i18n/engine/resources/organizationNotifications.fr.ts +0 -12
- package/templates/saas/i18n/engine/resources/organizationOAuthClients.en.ts +2 -67
- package/templates/saas/i18n/engine/resources/organizationOAuthClients.fr.ts +2 -67
- package/templates/saas/i18n/engine/resources/organizationOnboardingOperations.en.ts +0 -9
- package/templates/saas/i18n/engine/resources/organizationOnboardingOperations.fr.ts +0 -9
- package/templates/saas/i18n/engine/resources/organizationPersonTokenCeilingState.en.ts +0 -27
- package/templates/saas/i18n/engine/resources/organizationPersonTokenCeilingState.fr.ts +0 -27
- package/templates/saas/i18n/engine/resources/organizationPreferences.en.ts +0 -37
- package/templates/saas/i18n/engine/resources/organizationPreferences.fr.ts +0 -37
- package/templates/saas/i18n/engine/resources/organizationProfiles.en.ts +0 -37
- package/templates/saas/i18n/engine/resources/organizationProfiles.fr.ts +0 -37
- package/templates/saas/i18n/engine/resources/organizationProgressionState.en.ts +1 -17
- package/templates/saas/i18n/engine/resources/organizationProgressionState.fr.ts +1 -17
- package/templates/saas/i18n/engine/resources/organizationProviderCredentials.en.ts +0 -58
- package/templates/saas/i18n/engine/resources/organizationProviderCredentials.fr.ts +0 -58
- package/templates/saas/i18n/engine/resources/organizationRelationships.en.ts +0 -128
- package/templates/saas/i18n/engine/resources/organizationRelationships.fr.ts +0 -128
- package/templates/saas/i18n/engine/resources/organizationRepresentations.en.ts +0 -83
- package/templates/saas/i18n/engine/resources/organizationRepresentations.fr.ts +0 -83
- package/templates/saas/i18n/engine/resources/organizationScimProvisioningConfig.en.ts +0 -43
- package/templates/saas/i18n/engine/resources/organizationScimProvisioningConfig.fr.ts +0 -43
- package/templates/saas/i18n/engine/resources/organizationScimTokens.en.ts +5 -76
- package/templates/saas/i18n/engine/resources/organizationScimTokens.fr.ts +5 -76
- package/templates/saas/i18n/engine/resources/organizationSiemDeliveryDlq.en.ts +4 -43
- package/templates/saas/i18n/engine/resources/organizationSiemDeliveryDlq.fr.ts +6 -45
- package/templates/saas/i18n/engine/resources/organizationSiemDeliveryOutbox.en.ts +3 -30
- package/templates/saas/i18n/engine/resources/organizationSiemDeliveryOutbox.fr.ts +0 -27
- package/templates/saas/i18n/engine/resources/organizationSiemExportConfig.en.ts +0 -37
- package/templates/saas/i18n/engine/resources/organizationSiemExportConfig.fr.ts +0 -37
- package/templates/saas/i18n/engine/resources/organizationSsoConfig.en.ts +113 -74
- package/templates/saas/i18n/engine/resources/organizationSsoConfig.fr.ts +113 -74
- package/templates/saas/i18n/engine/resources/organizationSsoConnections.en.ts +0 -148
- package/templates/saas/i18n/engine/resources/organizationSsoConnections.fr.ts +0 -148
- package/templates/saas/i18n/engine/resources/organizationSubscriptions.en.ts +40 -78
- package/templates/saas/i18n/engine/resources/organizationSubscriptions.fr.ts +42 -80
- package/templates/saas/i18n/engine/resources/organizationUnitMembers.en.ts +2 -50
- package/templates/saas/i18n/engine/resources/organizationUnitMembers.fr.ts +2 -50
- package/templates/saas/i18n/engine/resources/organizationUnits.en.ts +0 -49
- package/templates/saas/i18n/engine/resources/organizationUnits.fr.ts +0 -49
- package/templates/saas/i18n/engine/resources/organizationUsageRecords.en.ts +13 -37
- package/templates/saas/i18n/engine/resources/organizationUsageRecords.fr.ts +13 -37
- package/templates/saas/i18n/engine/resources/organizationWebhookConfig.en.ts +5 -67
- package/templates/saas/i18n/engine/resources/organizationWebhookConfig.fr.ts +5 -67
- package/templates/saas/i18n/engine/resources/organizations.en.ts +34 -637
- package/templates/saas/i18n/engine/resources/organizations.fr.ts +32 -635
- package/templates/saas/i18n/engine/resources/platformAccessGrants.en.ts +0 -91
- package/templates/saas/i18n/engine/resources/platformAccessGrants.fr.ts +0 -91
- package/templates/saas/i18n/engine/resources/postCommitEffectOutbox.en.ts +0 -24
- package/templates/saas/i18n/engine/resources/postCommitEffectOutbox.fr.ts +0 -24
- package/templates/saas/i18n/engine/resources/prices.en.ts +47 -108
- package/templates/saas/i18n/engine/resources/prices.fr.ts +48 -109
- package/templates/saas/i18n/engine/resources/products.en.ts +24 -68
- package/templates/saas/i18n/engine/resources/products.fr.ts +24 -68
- package/templates/saas/i18n/engine/resources/professionalQualifications.en.ts +0 -87
- package/templates/saas/i18n/engine/resources/professionalQualifications.fr.ts +0 -87
- package/templates/saas/i18n/engine/resources/promotions.en.ts +4 -56
- package/templates/saas/i18n/engine/resources/promotions.fr.ts +6 -58
- package/templates/saas/i18n/engine/resources/providerCallRecords.en.ts +77 -101
- package/templates/saas/i18n/engine/resources/providerCallRecords.fr.ts +0 -24
- package/templates/saas/i18n/engine/resources/publishedVerificationKeys.en.ts +2 -25
- package/templates/saas/i18n/engine/resources/publishedVerificationKeys.fr.ts +2 -25
- package/templates/saas/i18n/engine/resources/referrals.en.ts +21 -18
- package/templates/saas/i18n/engine/resources/referrals.fr.ts +21 -18
- package/templates/saas/i18n/engine/resources/relationshipCapabilityGrants.en.ts +0 -80
- package/templates/saas/i18n/engine/resources/relationshipCapabilityGrants.fr.ts +0 -80
- package/templates/saas/i18n/engine/resources/relationshipInvitations.en.ts +0 -89
- package/templates/saas/i18n/engine/resources/relationshipInvitations.fr.ts +0 -89
- package/templates/saas/i18n/engine/resources/relationshipMailboxes.en.ts +0 -27
- package/templates/saas/i18n/engine/resources/relationshipMailboxes.fr.ts +0 -27
- package/templates/saas/i18n/engine/resources/representativeAssignments.en.ts +108 -112
- package/templates/saas/i18n/engine/resources/representativeAssignments.fr.ts +108 -112
- package/templates/saas/i18n/engine/resources/retentionEnforcementRecords.en.ts +8 -21
- package/templates/saas/i18n/engine/resources/retentionEnforcementRecords.fr.ts +8 -21
- package/templates/saas/i18n/engine/resources/signatureRequestSigners.en.ts +141 -0
- package/templates/saas/i18n/engine/resources/signatureRequestSigners.fr.ts +141 -0
- package/templates/saas/i18n/engine/resources/signatureRequests.en.ts +205 -0
- package/templates/saas/i18n/engine/resources/signatureRequests.fr.ts +205 -0
- package/templates/saas/i18n/engine/resources/smsNumberAssignments.en.ts +101 -0
- package/templates/saas/i18n/engine/resources/smsNumberAssignments.fr.ts +101 -0
- package/templates/saas/i18n/engine/resources/smsOptOuts.en.ts +166 -0
- package/templates/saas/i18n/engine/resources/smsOptOuts.fr.ts +166 -0
- package/templates/saas/i18n/engine/resources/smsProviderEvents.en.ts +195 -0
- package/templates/saas/i18n/engine/resources/smsProviderEvents.fr.ts +195 -0
- package/templates/saas/i18n/engine/resources/ssoDomainReservations.en.ts +0 -27
- package/templates/saas/i18n/engine/resources/ssoDomainReservations.fr.ts +0 -27
- package/templates/saas/i18n/engine/resources/systemOfRecordPartitionAssignments.en.ts +3 -39
- package/templates/saas/i18n/engine/resources/systemOfRecordPartitionAssignments.fr.ts +0 -36
- package/templates/saas/i18n/engine/resources/systemOfRecordWriteAdmissions.en.ts +0 -3
- package/templates/saas/i18n/engine/resources/systemOfRecordWriteAdmissions.fr.ts +0 -3
- package/templates/saas/i18n/engine/resources/transactionalCommitReceipts.en.ts +0 -6
- package/templates/saas/i18n/engine/resources/transactionalCommitReceipts.fr.ts +0 -6
- package/templates/saas/i18n/engine/resources/userA2aPushDeliveryLog.en.ts +3 -21
- package/templates/saas/i18n/engine/resources/userA2aPushDeliveryLog.fr.ts +0 -18
- package/templates/saas/i18n/engine/resources/userA2aTokenBudgetState.en.ts +3 -33
- package/templates/saas/i18n/engine/resources/userA2aTokenBudgetState.fr.ts +0 -30
- package/templates/saas/i18n/engine/resources/userAgentWorkDecisionContents.en.ts +0 -27
- package/templates/saas/i18n/engine/resources/userAgentWorkDecisionContents.fr.ts +0 -27
- package/templates/saas/i18n/engine/resources/userAgentWorkDecisions.en.ts +13 -43
- package/templates/saas/i18n/engine/resources/userAgentWorkDecisions.fr.ts +0 -30
- package/templates/saas/i18n/engine/resources/userCredentials.en.ts +3 -87
- package/templates/saas/i18n/engine/resources/userCredentials.fr.ts +0 -84
- package/templates/saas/i18n/engine/resources/userFeatures.en.ts +0 -12
- package/templates/saas/i18n/engine/resources/userFeatures.fr.ts +0 -12
- package/templates/saas/i18n/engine/resources/userFlowActorExecutions.en.ts +25 -160
- package/templates/saas/i18n/engine/resources/userFlowActorExecutions.fr.ts +25 -160
- package/templates/saas/i18n/engine/resources/userFlowActorTasks.en.ts +6 -28
- package/templates/saas/i18n/engine/resources/userFlowActorTasks.fr.ts +8 -30
- package/templates/saas/i18n/engine/resources/userGovernedDocumentAcceptances.en.ts +13 -18
- package/templates/saas/i18n/engine/resources/userGovernedDocumentAcceptances.fr.ts +13 -18
- package/templates/saas/i18n/engine/resources/userGuidanceState.en.ts +3 -18
- package/templates/saas/i18n/engine/resources/userGuidanceState.fr.ts +0 -15
- package/templates/saas/i18n/engine/resources/userIdentityLinks.en.ts +13 -40
- package/templates/saas/i18n/engine/resources/userIdentityLinks.fr.ts +0 -27
- package/templates/saas/i18n/engine/resources/userLifecycleState.en.ts +0 -15
- package/templates/saas/i18n/engine/resources/userLifecycleState.fr.ts +0 -15
- package/templates/saas/i18n/engine/resources/userNotificationBadges.en.ts +3 -36
- package/templates/saas/i18n/engine/resources/userNotificationBadges.fr.ts +0 -33
- package/templates/saas/i18n/engine/resources/userPreferences.en.ts +8 -60
- package/templates/saas/i18n/engine/resources/userPreferences.fr.ts +8 -60
- package/templates/saas/i18n/engine/resources/userProfiles.en.ts +5 -56
- package/templates/saas/i18n/engine/resources/userProfiles.fr.ts +0 -51
- package/templates/saas/i18n/engine/resources/userProgressionState.en.ts +1 -17
- package/templates/saas/i18n/engine/resources/userProgressionState.fr.ts +1 -17
- package/templates/saas/i18n/engine/resources/userProviderCredentials.en.ts +0 -52
- package/templates/saas/i18n/engine/resources/userProviderCredentials.fr.ts +0 -52
- package/templates/saas/i18n/engine/resources/userSelfPreferences.en.ts +8 -56
- package/templates/saas/i18n/engine/resources/userSelfPreferences.fr.ts +8 -56
- package/templates/saas/i18n/engine/resources/userSelfProfiles.en.ts +5 -61
- package/templates/saas/i18n/engine/resources/userSelfProfiles.fr.ts +0 -56
- package/templates/saas/i18n/engine/resources/user_self.en.ts +37 -214
- package/templates/saas/i18n/engine/resources/user_self.fr.ts +37 -214
- package/templates/saas/i18n/engine/resources/users.en.ts +53 -180
- package/templates/saas/i18n/engine/resources/users.fr.ts +53 -180
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/Dockerfile +4 -1
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/plugins/api-reference-pages.ts +9 -1
- package/templates/saas/scenarios/add-website/files/website/Dockerfile +4 -1
- package/templates/saas/scenarios/add-website/files/website/astro.config.ts.hbs +4 -0
- package/templates/saas/scenarios/add-website/files/website/package.json.hbs +1 -1
- package/templates/saas/scenarios/add-worker-node/files/workers/__workerDir__/Dockerfile.hbs +3 -1
- package/templates/saas/skeleton/.wildo-saas/wildo-dev-companion/scripts/dev-supervised.sh +18 -4
- package/templates/saas/skeleton/backend-api/Dockerfile +5 -2
- package/templates/saas/skeleton/frontend/Dockerfile +4 -1
- package/templates/saas/skeleton/frontend/nginx-config/default.conf.hbs +1 -1
- package/templates/saas/skeleton/frontend/src/generated/csp.generated.json.hbs +4 -4
- package/templates/saas/skeleton/frontend/vite-engine-dependency-prebundle.ts +10 -1
- package/templates/saas/skeleton/frontend/vite.config.ts.hbs +14 -3
- package/templates/saas/skeleton/infrastructure/local/wildo.infra.local.config.ts.hbs +2 -0
- package/wildo-framework.info.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update.command.js","sourceRoot":"","sources":["../../../../src/commands/registry/update.command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,OAAO,EAAE,uBAAuB,EAAE,MAAM,0DAA0D,CAAC;AACnG,OAAO,EAAE,QAAQ,IAAI,EAAE,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D,OAAO,EACL,oBAAoB,EACpB,uBAAuB,EACvB,eAAe,GAChB,MAAM,+BAA+B,CAAC;AACvC,OAAO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,QAAQ;gBAChB,MAAM,EAAE,KAAK;gBACb,GAAG,EAAE,gBAAgB,CAAC,GAAG,CAAC;aAC3B,CAAC,CAAC;YACH,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,oBAAoB,CAAC,CAAC;QACxC,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,2BAA4B,GAAa,CAAC,OAAO,EAAE,CAAC,CAAC;QACpE,CAAC;QAED,OAAO;YACL,OAAO,EAAE,IAAI;YACb,OAAO,EAAE,WAAW,MAAM,CAAC,QAAQ,KAAK,QAAQ,CAAC,OAAO,MAAM,OAAO,GAAG;SACzE,CAAC;IACJ,CAAC;CACF","sourcesContent":["/**\n * `wildo registry update <moduleId>[@<range>]` — refresh an\n * already-installed module to the latest (or specified) version.\n *\n * NOT aliased as `wildo update`: that name belongs to the framework update (`update.command.ts`),\n * which moves the CLI and the application to a published framework release. A module update is a\n * registry verb and is always spelled `wildo registry update`.\n *\n * Pipeline:\n * 1. Look up the existing lockfile entry for `<moduleId>` to\n * recover the registry id + domain that recorded the original\n * install (no need for the user to re-state them).\n * 2. Resolve the registry URL via `resolveRegistryUrl` — the\n * explicit `--registry` flag still wins; otherwise the entry's\n * `registryUrl` is used (or the resolver's fallback policy if\n * the entry's URL is no longer reachable).\n * 3. `RegistryServerClient.resolve` against the requested range\n * (default: `latest`).\n * 4. If the resolved version equals the lockfile's current version\n * AND the integrity digest matches, exit success without\n * re-downloading.\n * 5. Else download (sha256-verified), persist, update the lockfile\n * entry with `source: 'update'` + new `installedAt` timestamp,\n * run provider-sync.\n *\n * Refuses to operate on modules not present in the lockfile —\n * `wildo registry add` is the path to install something new.\n */\n\nimport { checkModuleRequirements } from '~wildo-cli/services/registry/module-requirements.service';\nimport { promises as fs } from 'node:fs';\nimport * as path from 'node:path';\nimport { BaseCommand } from '~wildo-cli/kernel/base-command';\nimport { CommandCategory } from '~wildo-cli/kernel/types';\nimport type { CommandMeta, CommandContext, CommandResult } from '~wildo-cli/kernel/types';\nimport {\n RegistryServerClient,\n RegistryLockfileService,\n runProviderSync,\n} from '@wildo-ai/wildo-module-client';\nimport {\n localCheckoutProvenanceOf,\n ModuleDistribution,\n registryProvenanceOf,\n type RegistryModulesLockEntry,\n ModuleKind,\n} from '@wildo-ai/platform-config-lib';\nimport { ErrorUtils } from '~wildo-cli/infrastructure/errors/error.utils';\nimport { RegistryCredentialsService } from '~wildo-cli/services/registry/registry-credentials.service';\nimport {\n requireSaasRoot,\n asRegistryLogger,\n resolveLockedRegistry,\n resolveRegistryUrlForCommand,\n withRegistryWorkspaceMutationLock,\n assertModuleEntryUnchangedUnderLock,\n} from '~wildo-cli/services/registry/registry-command.utils';\nimport {\n fanOutToSaasSource,\n validatedStagedAppFiles,\n pruneEmptiedModuleDirectories,\n readStagedManifest,\n resolveRecordedModuleFile,\n rollbackFanOut,\n} from '~wildo-cli/services/registry/boundary-fanout.utils';\nimport {\n deriveMigrationObligation,\n describeMigrationObligation,\n findResourceConfigurationFiles,\n} from '~wildo-cli/services/registry/migration-obligation.utils';\nimport {\n registerModuleForInstall,\n rollbackInstallRegistration,\n deriveProviderRegistration,\n} from '~wildo-cli/services/registry/module-registration.service';\nimport { reportRegistrationOutcome } from '~wildo-cli/services/registry/provider-wiring.service';\nimport { installAfterProviderChange, NO_INSTALL_FLAG, syncSkillsAfterProviderChange } from '~wildo-cli/services/registry/provider-install-step';\nimport { moduleArtifactPaths } from '~wildo-cli/services/registry/module-artifact-files.utils';\nimport { resolveLocalCheckoutModule } from '~wildo-cli/services/registry/local-checkout-module-source.service';\nimport {\n describeProtectedFile,\n nextInstalledFileHashes,\n planProtectedRemoval,\n planProtectedWrite,\n registryForceBackupDirectory,\n} from '~wildo-cli/services/registry/installed-file-state.utils';\nimport {\n describeAcquisition,\n lockEntryProvenance,\n moduleRequirementsOriginOf,\n stageModuleAcquisition,\n type ModuleAcquisition,\n} from '~wildo-cli/services/registry/module-acquisition.utils';\nimport { DEFAULT_REGISTRY_ID } from '@wildo-ai/platform-config-lib';\nimport {\n assertServedDigestMatchesPin,\n assertStagedManifestMatchesRequest,\n} from '~wildo-cli/services/registry/artifact-trust.utils';\n\ninterface ParsedSpec {\n moduleId: string;\n range: string;\n}\n\n/**\n * Range-suffix shape: `@` followed by a semver-ish token. Mirrors\n * `add.command.ts`'s parser so `@<scope>/<name>` (npm scope, no range)\n * isn't mis-parsed.\n */\nconst RANGE_SUFFIX_RE = /@([\\^~]?\\d|>=?|<=?|\\*|x|latest|next|canary|beta|alpha|rc)/i;\n\nfunction parseSpec(spec: string): ParsedSpec {\n const rangeMatch = spec.match(RANGE_SUFFIX_RE);\n const hasRange = rangeMatch !== null && rangeMatch.index !== undefined && rangeMatch.index > 0;\n const moduleId = hasRange ? spec.slice(0, rangeMatch!.index) : spec;\n const range = hasRange ? spec.slice(rangeMatch!.index! + 1) : 'latest';\n if (!moduleId.includes('/')) {\n throw new Error(\n `Invalid module spec \"${spec}\". moduleId must be \"<scope>/<name>\" (e.g. \"acme/billing\").`,\n );\n }\n return { moduleId, range };\n}\n\n\n\n\nexport default class RegistryUpdateCommand extends BaseCommand {\n readonly meta: CommandMeta = {\n name: 'registry update',\n description: 'Update an installed module to the latest (or specified) version.',\n category: CommandCategory.Registry,\n args: [\n {\n name: 'spec',\n description: 'Module spec — `<moduleId>[@<range>]` (e.g. `acme/billing@^1.3.0`).',\n required: true,\n },\n ],\n flags: {\n 'no-install': NO_INSTALL_FLAG,\n registry: {\n type: 'string',\n description: 'Override the registry id/URL/alias. Default: the lockfile entry\\'s recorded registry.',\n },\n force: {\n type: 'boolean',\n description: 'Overwrite (or delete) files you changed since install, and files no module installed (a backup is kept under .wildo-saas/tmp/registry-backups/).',\n },\n },\n };\n\n async run(ctx: CommandContext): Promise<CommandResult> {\n const saasRoot = requireSaasRoot(ctx, 'update');\n const specInput = ctx.args.spec;\n if (!specInput) {\n return { success: false, message: '`spec` argument is required.' };\n }\n const parsed = parseSpec(specInput);\n\n const section = await RegistryLockfileService.read(saasRoot);\n const existing = section.installed[parsed.moduleId];\n if (!existing) {\n return {\n success: false,\n message:\n `\"${parsed.moduleId}\" is not installed. Use \\`wildo add <domain>/${parsed.moduleId}@${parsed.range}\\` instead.`,\n };\n }\n\n const flag = ctx.flags.registry as string | undefined;\n // #2015: an update keeps the module's RECORDED origin. A checkout install updates from the checkout and\n // a registry install from its registry; only an explicit `--registry` moves a module to a registry.\n let acquisition: ModuleAcquisition;\n let credentialUrl: string | undefined;\n if (flag === undefined && existing.distribution === ModuleDistribution.LOCAL_CHECKOUT) {\n const frameworkRoot = ctx.cliContext.resolvedHomes.framework.repositoryRoot;\n if (!frameworkRoot) {\n return {\n success: false,\n message:\n `\"${parsed.moduleId}\" was installed from the framework checkout, and this command is not running inside one. `\n + 'Run it inside the checkout, or pass `--registry <id|url|alias>` to move the module to a registry release.',\n };\n }\n const recorded = localCheckoutProvenanceOf(existing);\n const local = await resolveLocalCheckoutModule({ frameworkRoot, domain: existing.domain, moduleId: parsed.moduleId, range: parsed.range });\n ctx.log.info(`[registry update] ${parsed.moduleId} (${existing.version} → @${parsed.range}) from the framework checkout`);\n // Nothing to do only when the version, the commit and a clean source all agree: a dirty source at\n // either end means the commit does not describe the bytes, so it is staged again.\n if (local.version === existing.version && local.checkoutCommit === recorded.checkoutCommit && !local.checkoutDirty && !recorded.checkoutDirty) {\n ctx.log.success(` already at ${local.version} from checkout ${local.checkoutCommit.slice(0, 12)} — no files changed; host requirements were not revalidated.`);\n return { success: true, message: `Up to date (${local.version}).` };\n }\n acquisition = { distribution: ModuleDistribution.LOCAL_CHECKOUT, version: local.version, local };\n } else {\n // When no `--registry` is supplied, recover the registry binding recorded at install time.\n const resolved: { url: string; id?: string } = flag\n ? await resolveRegistryUrlForCommand(ctx, { flag, saasRoot })\n : await resolveLockedRegistry(ctx, saasRoot, existing);\n ctx.log.info(\n `[registry update] ${parsed.moduleId} (${existing.version} → @${parsed.range}) on ${resolved.url}`,\n );\n\n const credential = await RegistryCredentialsService.get(resolved.url);\n const clientOptions = { baseUrl: resolved.url, authToken: credential?.rawToken };\n if (credential) credentialUrl = resolved.url;\n\n // Resolve the target version + digest.\n const { version, artifactDigest, yanked } = await RegistryServerClient.resolve(clientOptions, {\n domain: existing.domain,\n moduleId: parsed.moduleId,\n range: parsed.range,\n });\n if (yanked) {\n // Only an exact pin reaches a yanked release (#1758); install it, but say so.\n ctx.log.warn(` ${parsed.moduleId}@${version} is YANKED (${yanked.yankedAt}${yanked.reason ? `: ${yanked.reason}` : ''}). Installing the pinned release; pick a live one with a range.`);\n }\n\n // The pinned version's bytes never change: the same version under a different digest is refused,\n // not re-installed (it used to fall through to a silent reinstall of the new bytes). A pin exists only\n // on a registry entry; a checkout entry moving to a registry has none to hold.\n const pinnedDigest = existing.distribution === ModuleDistribution.REGISTRY ? registryProvenanceOf(existing).artifactDigest : undefined;\n if (pinnedDigest !== undefined && version === existing.version) {\n assertServedDigestMatchesPin({\n moduleId: parsed.moduleId,\n version,\n pinnedDigest,\n servedDigest: artifactDigest,\n });\n }\n // No-op short-circuit: same version + same digest = nothing to do.\n if (version === existing.version && artifactDigest === pinnedDigest) {\n ctx.log.success(` already at ${version} with matching integrity — no files changed; host requirements were not revalidated.`);\n return { success: true, message: `Up to date (${version}).` };\n }\n\n const { bytes } = await RegistryServerClient.download(clientOptions, {\n domain: existing.domain,\n moduleId: parsed.moduleId,\n version,\n expectedDigest: artifactDigest,\n });\n ctx.log.info(` downloaded → ${bytes.byteLength} bytes`);\n acquisition = {\n distribution: ModuleDistribution.REGISTRY,\n version,\n artifactDigest,\n bytes,\n registry: { url: resolved.url, id: resolved.id ?? (existing.registryId ?? DEFAULT_REGISTRY_ID) },\n };\n }\n const version = acquisition.version;\n ctx.log.info(` resolved → ${describeAcquisition(parsed.moduleId, acquisition)}`);\n\n let resourceConfigurationFiles: string[] = [];\n let changedProvider = false;\n /** The install-script names this run newly allowed (#2801), rebuilt after the install. */\n let allowedInstallScripts: readonly string[] = [];\n /** Whether the provider ships skills (#2026), before or after this change: then its skills are synced too. */\n let carriesSkills = false;\n await withRegistryWorkspaceMutationLock(saasRoot, async () => {\n // `existing` (its pin and its file set, which the shrink below deletes from) was read before the\n // lock; re-confirmed under it.\n await assertModuleEntryUnchangedUnderLock(saasRoot, parsed.moduleId, existing);\n const paths = moduleArtifactPaths(saasRoot, existing.domain, parsed.moduleId, version);\n const stagedCount = await stageModuleAcquisition(acquisition, paths, saasRoot);\n ctx.log.success(` staged ${stagedCount} file(s) → ${path.relative(saasRoot, paths.extractDir)}/`);\n\n // Boundary-enforced fan-out → record the new SaaS-source paths.\n // M9: snapshot pre-existing destinations so a partial-failure\n // mid-fan-out (or a lockfile-write failure right after) can roll\n // back the SaaS source to the pre-update state. M10: cross-module\n // overlap warnings for any path another module also claims.\n const stagedManifest = await readStagedManifest(paths.extractDir);\n assertStagedManifestMatchesRequest(stagedManifest, { moduleId: parsed.moduleId, version });\n // #2861: a blueprint is applied by `wildo init --blueprint`, never installed into an existing application. Its\n // staged copy can never become an install, so it does not stay in the application's generated tree.\n if (stagedManifest.kind === ModuleKind.BLUEPRINT) {\n await fs.rm(paths.extractDir, { recursive: true, force: true });\n await fs.rm(paths.zip, { force: true });\n throw new Error(`${stagedManifest.id} is a blueprint: it starts a new application with \\`wildo init --blueprint\\` and is never installed into an existing one.`);\n }\n for (const notice of await checkModuleRequirements(saasRoot, stagedManifest, moduleRequirementsOriginOf(acquisition))) ctx.log.warn(notice);\n // #2014: a provider module is wired into THIS application's own runtimes. Derived before a single file is\n // written, so a refusal (no backend service to own a backend facet) leaves the application untouched.\n const providerRegistration = stagedManifest.kind === ModuleKind.PROVIDER ? await deriveProviderRegistration(saasRoot, stagedManifest) : undefined;\n changedProvider = providerRegistration !== undefined;\n carriesSkills = (stagedManifest.provider?.skills?.length ?? 0) > 0 || (existing.files ?? []).some((file) => /^providers\\/[^/]+\\/skills\\//.test(file));\n await fs.rm(paths.backupDir, { recursive: true, force: true });\n // #2016: a file the application changed since install is kept, not overwritten, unless --force.\n const force = ctx.flags.force === true;\n const forceBackupDirectory = registryForceBackupDirectory(saasRoot, parsed.moduleId);\n const writePlan = await planProtectedWrite({\n saasRoot,\n moduleId: parsed.moduleId,\n stagedPaths: await validatedStagedAppFiles({ saasRoot, extractDir: paths.extractDir, manifest: stagedManifest }),\n recorded: existing,\n force,\n restoreMissing: false,\n backupDirectory: forceBackupDirectory,\n findOtherOwners: (candidates) => RegistryLockfileService.findFileOwners({ saasRoot, paths: candidates, excludeModuleId: parsed.moduleId }),\n });\n for (const kept of writePlan.kept) ctx.log.warn(` ${describeProtectedFile(kept.path, kept.state, 'overwritten')}`);\n for (const missing of writePlan.notRestored) ctx.log.warn(` not recreated ${missing}: you deleted it since it was installed. \\`wildo registry repair-lockfile --fix\\` restores it.`);\n for (const forced of writePlan.forced) ctx.log.warn(` overwrote ${forced.path} (--force); your version is at ${path.relative(saasRoot, forced.backup)}`);\n const fanOut = await fanOutToSaasSource({\n saasRoot,\n extractDir: paths.extractDir,\n manifest: stagedManifest,\n moduleId: parsed.moduleId,\n backupDir: paths.backupDir,\n skipPaths: writePlan.skip,\n });\n ctx.log.success(` wrote ${fanOut.writtenFiles.length} app source file(s) per manifest.boundaries`);\n if (fanOut.overlapWarnings.length > 0) {\n for (const w of fanOut.overlapWarnings) {\n ctx.log.warn(` [overlap] \"${w.path}\" was also claimed by \"${w.otherModuleId}\" — overwritten by ${parsed.moduleId}.`);\n }\n }\n\n // #1755: register the new version (reversing the previous registration first if it changed),\n // or mark why it is not registered.\n // Reversing the previous registration can throw, and so can applying a provider's CHANGED wiring (after\n // undoing its own partial reversal, #2014); the new files are already in place, so either failure rolls the\n // fan-out back like a lockfile failure does, leaving the installed version and its wiring as they were.\n let registrationOutcome: ReturnType<typeof registerModuleForInstall>;\n try {\n registrationOutcome = registerModuleForInstall(\n saasRoot,\n ctx.cliContext.resolvedHomes.framework.repositoryRoot ?? null,\n stagedManifest,\n existing.registration,\n providerRegistration,\n );\n } catch (registrationError) {\n await rollbackFanOut({ saasRoot, result: fanOut }).catch(() => {});\n await fs.rm(paths.backupDir, { recursive: true, force: true }).catch(() => {});\n throw registrationError;\n }\n reportRegistrationOutcome(ctx.log, registrationOutcome, saasRoot);\n allowedInstallScripts = registrationOutcome.allowedInstallScripts;\n\n // M9 (4th-pass review): shrink-cleanup is reordered to AFTER the\n // lockfile upsert. Previously it ran before, and a subsequent\n // lockfile-write failure left an unrecoverable state:\n // lockfile = OLD version, source = missing files-only-in-OLD.\n // The fix sequences the steps so each failure mode has a clean\n // recovery:\n // 1. fan-out (with backup snapshot)\n // 2. lockfile upsert → on failure, rollback fan-out cleanly\n // (no shrink-deletes have happened yet)\n // 3. shrink-cleanup → on failure, lockfile already records the\n // new version; operator re-runs `update`\n // or `repair-lockfile` to clean up.\n //\n // 5th-pass K-L2 — concurrent-repair safety: the window between\n // step 2 (lockfile records new version, files[] = NEW set) and\n // step 3 (shrink-deletes old-only files) leaves orphan files on\n // disk that AREN'T in `entry.files`. `repair-lockfile`'s\n // `module-file-missing` finding only fires for files IN\n // `entry.files` and absent from disk — orphan old-only files are\n // outside its purview, so a concurrent repair run cannot\n // mistakenly re-fetch the new version because of them. Verified\n // safe via `LockfileRepairService.collectEntryFindings`.\n // The previous origin's provenance is dropped whole, so a module that moved origin never carries\n // both kinds of fields (the lockfile schema refuses that).\n const {\n registration: _previousRegistration,\n distribution: _previousDistribution,\n registryId: _previousRegistryId,\n registryUrl: _previousRegistryUrl,\n artifactDigest: _previousArtifactDigest,\n checkoutCommit: _previousCheckoutCommit,\n checkoutDirty: _previousCheckoutDirty,\n ...existingWithoutOrigin\n } = existing;\n const entry: RegistryModulesLockEntry = {\n ...existingWithoutOrigin,\n ...(registrationOutcome.registration ? { registration: registrationOutcome.registration } : {}),\n ...lockEntryProvenance(acquisition),\n version,\n requestedRange: parsed.range,\n installedAt: new Date().toISOString(),\n files: fanOut.ownedFiles,\n installedFileHashes: await nextInstalledFileHashes({ saasRoot, ownedFiles: fanOut.ownedFiles, skipped: writePlan.skip, previous: existing }),\n source: 'update',\n };\n try {\n await RegistryLockfileService.upsertEntry(saasRoot, entry);\n } catch (lockErr) {\n ctx.log.error(` lockfile write failed — rolling back ${fanOut.writtenFiles.length} fan-out file(s).`);\n // M8 + 5th-pass K-L1: rollback wrapping is belt-and-suspenders\n // (`rollbackFanOut` swallows per-file FS errors internally —\n // unreachable on POSIX today). Kept against future changes that\n // let those errors propagate, AND so a rollback-side error\n // doesn't mask the original `lockErr`. See `add.command.ts` for\n // the same pattern + rationale.\n try {\n rollbackInstallRegistration(saasRoot, registrationOutcome.snapshots);\n await rollbackFanOut({ saasRoot, result: fanOut });\n } catch (rbErr) {\n ctx.log.error(\n ` rollback failed: ${ErrorUtils.extractErrorMessage(rbErr)} — SaaS source may be in a partially-applied state.`,\n );\n }\n // 7th-pass K-L1: same swallow rationale as `add.command.ts` — a\n // cleanup failure must NOT mask the original `lockErr`. Best-\n // effort `.catch(() => {})` is intentional.\n await fs.rm(paths.backupDir, { recursive: true, force: true }).catch(() => {});\n throw lockErr;\n }\n await fs.rm(paths.backupDir, { recursive: true, force: true }).catch(() => {});\n ctx.log.success(' lockfile updated');\n if (registrationOutcome.registration) {\n ctx.log.success(` registered in the application's module registries (${registrationOutcome.registration.moduleId})`);\n }\n\n // Clean up files that existed in the OLD version but no longer\n // exist in the new one. Files present in both are simply\n // overwritten by `fanOutToSaasSource`. This is the \"shrink\"\n // direction of update — the inverse of \"remove\".\n //\n // Cross-module file-overlap guard: if another lockfile entry\n // claims any of the about-to-be-deleted paths, skip them — that\n // module still owns the file. This prevents `update` from silently\n // pulling files out from under sibling modules that share a barrel\n // / generated index.\n //\n // Failure tolerance: if a shrink-unlink throws (other than ENOENT),\n // we log + continue rather than abort. The lockfile already\n // records the new version, so the operator can re-run `update` or\n // `wildo registry repair-lockfile` to converge.\n // Asked BEFORE the shrink deletes the old-only files: a resource the new version dropped still owes a migration.\n resourceConfigurationFiles = await findResourceConfigurationFiles(saasRoot, [...new Set([...fanOut.writtenFiles, ...existing.files])]);\n // The files that leave the module are those it no longer OWNS, not those it did not write: a file\n // kept because you edited it is still owned (#2016), and deleting it here would destroy exactly\n // what the write step protected.\n const newOwnedSet = new Set(fanOut.ownedFiles);\n const candidates = existing.files.filter((p) => !newOwnedSet.has(p));\n const claimedBy = await RegistryLockfileService.findFileOwners({\n saasRoot,\n paths: candidates,\n excludeModuleId: parsed.moduleId,\n });\n let removedCount = 0;\n let skippedCount = 0;\n let failedCount = 0;\n const unlinked: string[] = [];\n const unclaimed: string[] = [];\n for (const oldRel of candidates) {\n const owners = claimedBy.get(oldRel) ?? [];\n if (owners.length > 0) {\n ctx.log.warn(` keep ${oldRel} — also owned by ${owners.join(', ')}`);\n skippedCount += 1;\n continue;\n }\n unclaimed.push(oldRel);\n }\n const removalPlan = await planProtectedRemoval({ saasRoot, entry: existing, paths: unclaimed, force, backupDirectory: forceBackupDirectory });\n for (const kept of removalPlan.kept) {\n ctx.log.warn(` ${describeProtectedFile(kept.path, kept.state, 'deleted')} ${version} no longer ships it, so it is now the application's own file.`);\n }\n for (const forced of removalPlan.forced) ctx.log.warn(` deleted ${forced.path} (--force); your version is at ${path.relative(saasRoot, forced.backup)}`);\n for (const oldRel of removalPlan.remove) {\n try {\n const oldAbs = resolveRecordedModuleFile(saasRoot, oldRel);\n await fs.unlink(oldAbs);\n removedCount += 1;\n unlinked.push(oldRel);\n } catch (err) {\n if ((err as NodeJS.ErrnoException).code === 'ENOENT') continue;\n ctx.log.warn(\n ` shrink-unlink failed for ${oldRel}: ${ErrorUtils.extractErrorMessage(err)} (non-fatal — re-run \\`wildo registry repair-lockfile\\` to converge).`,\n );\n failedCount += 1;\n }\n }\n if (removedCount > 0) {\n // A directory the previous version had and this one does not goes with its last file.\n await pruneEmptiedModuleDirectories(saasRoot, unlinked);\n ctx.log.info(` removed ${removedCount} file(s) no longer present in ${version}`);\n }\n if (skippedCount > 0) {\n ctx.log.info(` skipped ${skippedCount} file(s) claimed by other modules`);\n }\n if (failedCount > 0) {\n ctx.log.warn(` shrink-cleanup left ${failedCount} stale file(s) on disk`);\n }\n });\n\n // #1757: a module that declares resources leaves a migration owed on an application that has\n // adopted migrations. Marked here, after the lock — the plan cannot be computed until the backend\n // is rebuilt with the module in it.\n const migrationObligation = deriveMigrationObligation({ saasRoot, moduleId: parsed.moduleId, verb: 'update', resourceConfigurationFiles });\n if (migrationObligation) for (const line of describeMigrationObligation(migrationObligation)) ctx.log.warn(line);\n\n if (credentialUrl !== undefined) await RegistryCredentialsService.touch(credentialUrl);\n\n // #2014: a provider's packages must resolve before the sync can discover them.\n if (changedProvider) installAfterProviderChange(ctx, saasRoot, parsed.moduleId, { rebuild: allowedInstallScripts });\n // #2026: the provider's skills follow it into (or out of) `.claude/skills/`.\n if (changedProvider && carriesSkills) syncSkillsAfterProviderChange(ctx, saasRoot, parsed.moduleId);\n\n // K-L2 (4th-pass review) + 5th-pass K-L3 — provider-sync soft-success\n // waiver: see `add.command.ts` for the full rationale. Same\n // semantic here: the lockfile + SaaS source are consistent before\n // this step; provider-sync is a downstream materialization that\n // operators can re-run independently with `wildo config sync\n // --domain config`. CI users grep stderr for `provider-sync failed`\n // or run `wildo config sync` as a separate post-step.\n try {\n await runProviderSync({\n saasRoot,\n reason: 'update',\n dryRun: false,\n log: asRegistryLogger(ctx),\n });\n ctx.log.success(' provider-sync OK');\n } catch (err) {\n ctx.log.warn(` provider-sync failed: ${(err as Error).message}`);\n }\n\n return {\n success: true,\n message: `Updated ${parsed.moduleId}: ${existing.version} → ${version}.`,\n };\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"update.command.js","sourceRoot":"","sources":["../../../../src/commands/registry/update.command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,OAAO,EAAE,uBAAuB,EAAE,MAAM,0DAA0D,CAAC;AACnG,OAAO,EAAE,QAAQ,IAAI,EAAE,EAAE,MAAM,SAAS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E,IAAI,eAAe,IAAI,aAAa;YAAE,6BAA6B,CAAC,GAAG,EAAE,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC;QAEpG,sEAAsE;QACtE,4DAA4D;QAC5D,kEAAkE;QAClE,gEAAgE;QAChE,6DAA6D;QAC7D,oEAAoE;QACpE,sDAAsD;QACtD,IAAI,CAAC;YACH,MAAM,eAAe,CAAC;gBACpB,QAAQ;gBACR,MAAM,EAAE,QAAQ;gBAChB,MAAM,EAAE,KAAK;gBACb,GAAG,EAAE,gBAAgB,CAAC,GAAG,CAAC;aAC3B,CAAC,CAAC;YACH,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,oBAAoB,CAAC,CAAC;QACxC,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,2BAA4B,GAAa,CAAC,OAAO,EAAE,CAAC,CAAC;QACpE,CAAC;QAED,OAAO;YACL,OAAO,EAAE,IAAI;YACb,OAAO,EAAE,WAAW,MAAM,CAAC,QAAQ,KAAK,QAAQ,CAAC,OAAO,MAAM,OAAO,GAAG;SACzE,CAAC;IACJ,CAAC;CACF","sourcesContent":["/**\n * `wildo registry update <moduleId>[@<range>]` — refresh an\n * already-installed module to the latest (or specified) version.\n *\n * NOT aliased as `wildo update`: that name belongs to the framework update (`update.command.ts`),\n * which moves the CLI and the application to a published framework release. A module update is a\n * registry verb and is always spelled `wildo registry update`.\n *\n * Pipeline:\n * 1. Look up the existing lockfile entry for `<moduleId>` to\n * recover the registry id + domain that recorded the original\n * install (no need for the user to re-state them).\n * 2. Resolve the registry URL via `resolveRegistryUrl` — the\n * explicit `--registry` flag still wins; otherwise the entry's\n * `registryUrl` is used (or the resolver's fallback policy if\n * the entry's URL is no longer reachable).\n * 3. `RegistryServerClient.resolve` against the requested range\n * (default: `latest`).\n * 4. If the resolved version equals the lockfile's current version\n * AND the integrity digest matches, exit success without\n * re-downloading.\n * 5. Else download (sha256-verified), persist, update the lockfile\n * entry with `source: 'update'` + new `installedAt` timestamp,\n * run provider-sync.\n *\n * Refuses to operate on modules not present in the lockfile —\n * `wildo registry add` is the path to install something new.\n */\n\nimport { checkModuleRequirements } from '~wildo-cli/services/registry/module-requirements.service';\nimport { promises as fs } from 'node:fs';\nimport * as path from 'node:path';\nimport { BaseCommand } from '~wildo-cli/kernel/base-command';\nimport { CommandCategory } from '~wildo-cli/kernel/types';\nimport type { CommandMeta, CommandContext, CommandResult } from '~wildo-cli/kernel/types';\nimport {\n RegistryServerClient,\n RegistryLockfileService,\n runProviderSync,\n} from '@wildo-ai/wildo-module-client';\nimport {\n localCheckoutProvenanceOf,\n ModuleDistribution,\n registryProvenanceOf,\n type RegistryModulesLockEntry,\n ModuleKind,\n} from '@wildo-ai/platform-config-lib';\nimport { ErrorUtils } from '~wildo-cli/infrastructure/errors/error.utils';\nimport { RegistryCredentialsService } from '~wildo-cli/services/registry/registry-credentials.service';\nimport {\n requireSaasRoot,\n asRegistryLogger,\n resolveLockedRegistry,\n resolveRegistryUrlForCommand,\n withRegistryWorkspaceMutationLock,\n assertModuleEntryUnchangedUnderLock,\n} from '~wildo-cli/services/registry/registry-command.utils';\nimport {\n fanOutToSaasSource,\n validatedStagedAppFiles,\n pruneEmptiedModuleDirectories,\n readStagedManifest,\n resolveRecordedModuleFile,\n rollbackFanOut,\n} from '~wildo-cli/services/registry/boundary-fanout.utils';\nimport {\n deriveMigrationObligation,\n describeMigrationObligation,\n findResourceConfigurationFiles,\n} from '~wildo-cli/services/registry/migration-obligation.utils';\nimport {\n registerModuleForInstall,\n rollbackInstallRegistration,\n deriveProviderRegistration,\n} from '~wildo-cli/services/registry/module-registration.service';\nimport { reportRegistrationOutcome } from '~wildo-cli/services/registry/provider-wiring.service';\nimport { installAfterProviderChange, NO_INSTALL_FLAG, syncSkillsAfterProviderChange } from '~wildo-cli/services/registry/provider-install-step';\nimport { moduleArtifactPaths } from '~wildo-cli/services/registry/module-artifact-files.utils';\nimport { resolveLocalCheckoutModule } from '~wildo-cli/services/registry/local-checkout-module-source.service';\nimport {\n describeProtectedFile,\n nextInstalledFileHashes,\n planProtectedRemoval,\n planProtectedWrite,\n registryForceBackupDirectory,\n} from '~wildo-cli/services/registry/installed-file-state.utils';\nimport {\n describeAcquisition,\n lockEntryProvenance,\n moduleRequirementsOriginOf,\n stageModuleAcquisition,\n type ModuleAcquisition,\n} from '~wildo-cli/services/registry/module-acquisition.utils';\nimport { DEFAULT_REGISTRY_ID } from '@wildo-ai/platform-config-lib';\nimport {\n assertServedDigestMatchesPin,\n assertStagedManifestMatchesRequest,\n} from '~wildo-cli/services/registry/artifact-trust.utils';\n\ninterface ParsedSpec {\n moduleId: string;\n range: string;\n}\n\n/**\n * Range-suffix shape: `@` followed by a semver-ish token. Mirrors\n * `add.command.ts`'s parser so `@<scope>/<name>` (npm scope, no range)\n * isn't mis-parsed.\n */\nconst RANGE_SUFFIX_RE = /@([\\^~]?\\d|>=?|<=?|\\*|x|latest|next|canary|beta|alpha|rc)/i;\n\nfunction parseSpec(spec: string): ParsedSpec {\n const rangeMatch = spec.match(RANGE_SUFFIX_RE);\n const hasRange = rangeMatch !== null && rangeMatch.index !== undefined && rangeMatch.index > 0;\n const moduleId = hasRange ? spec.slice(0, rangeMatch!.index) : spec;\n const range = hasRange ? spec.slice(rangeMatch!.index! + 1) : 'latest';\n if (!moduleId.includes('/')) {\n throw new Error(\n `Invalid module spec \"${spec}\". moduleId must be \"<scope>/<name>\" (e.g. \"acme/billing\").`,\n );\n }\n return { moduleId, range };\n}\n\n\n\n\nexport default class RegistryUpdateCommand extends BaseCommand {\n readonly meta: CommandMeta = {\n name: 'registry update',\n description: 'Update an installed module to the latest (or specified) version.',\n category: CommandCategory.Registry,\n args: [\n {\n name: 'spec',\n description: 'Module spec — `<moduleId>[@<range>]` (e.g. `acme/billing@^1.3.0`).',\n required: true,\n },\n ],\n flags: {\n 'no-install': NO_INSTALL_FLAG,\n registry: {\n type: 'string',\n description: 'Override the registry id/URL/alias. Default: the lockfile entry\\'s recorded registry.',\n },\n force: {\n type: 'boolean',\n description: 'Overwrite (or delete) files you changed since install, and files no module installed (a backup is kept under .wildo-saas/tmp/registry-backups/).',\n },\n },\n };\n\n async run(ctx: CommandContext): Promise<CommandResult> {\n const saasRoot = requireSaasRoot(ctx, 'update');\n const specInput = ctx.args.spec;\n if (!specInput) {\n return { success: false, message: '`spec` argument is required.' };\n }\n const parsed = parseSpec(specInput);\n\n const section = await RegistryLockfileService.read(saasRoot);\n const existing = section.installed[parsed.moduleId];\n if (!existing) {\n return {\n success: false,\n message:\n `\"${parsed.moduleId}\" is not installed. Use \\`wildo add <domain>/${parsed.moduleId}@${parsed.range}\\` instead.`,\n };\n }\n\n const flag = ctx.flags.registry as string | undefined;\n // #2015: an update keeps the module's RECORDED origin. A checkout install updates from the checkout and\n // a registry install from its registry; only an explicit `--registry` moves a module to a registry.\n let acquisition: ModuleAcquisition;\n let credentialUrl: string | undefined;\n if (flag === undefined && existing.distribution === ModuleDistribution.LOCAL_CHECKOUT) {\n const frameworkRoot = ctx.cliContext.resolvedHomes.framework.repositoryRoot;\n if (!frameworkRoot) {\n return {\n success: false,\n message:\n `\"${parsed.moduleId}\" was installed from the framework checkout, and this command is not running inside one. `\n + 'Run it inside the checkout, or pass `--registry <id|url|alias>` to move the module to a registry release.',\n };\n }\n const recorded = localCheckoutProvenanceOf(existing);\n const local = await resolveLocalCheckoutModule({ frameworkRoot, domain: existing.domain, moduleId: parsed.moduleId, range: parsed.range });\n ctx.log.info(`[registry update] ${parsed.moduleId} (${existing.version} → @${parsed.range}) from the framework checkout`);\n // Nothing to do only when the version, the commit and a clean source all agree: a dirty source at\n // either end means the commit does not describe the bytes, so it is staged again.\n if (local.version === existing.version && local.checkoutCommit === recorded.checkoutCommit && !local.checkoutDirty && !recorded.checkoutDirty) {\n ctx.log.success(` already at ${local.version} from checkout ${local.checkoutCommit.slice(0, 12)} — no files changed; host requirements were not revalidated.`);\n return { success: true, message: `Up to date (${local.version}).` };\n }\n acquisition = { distribution: ModuleDistribution.LOCAL_CHECKOUT, version: local.version, local };\n } else {\n // When no `--registry` is supplied, recover the registry binding recorded at install time.\n const resolved: { url: string; id?: string } = flag\n ? await resolveRegistryUrlForCommand(ctx, { flag, saasRoot })\n : await resolveLockedRegistry(ctx, saasRoot, existing);\n ctx.log.info(\n `[registry update] ${parsed.moduleId} (${existing.version} → @${parsed.range}) on ${resolved.url}`,\n );\n\n const credential = await RegistryCredentialsService.get(resolved.url);\n const clientOptions = { baseUrl: resolved.url, authToken: credential?.rawToken };\n if (credential) credentialUrl = resolved.url;\n\n // Resolve the target version + digest.\n const { version, artifactDigest, yanked } = await RegistryServerClient.resolve(clientOptions, {\n domain: existing.domain,\n moduleId: parsed.moduleId,\n range: parsed.range,\n });\n if (yanked) {\n // Only an exact pin reaches a yanked release (#1758); install it, but say so.\n ctx.log.warn(` ${parsed.moduleId}@${version} is YANKED (${yanked.yankedAt}${yanked.reason ? `: ${yanked.reason}` : ''}). Installing the pinned release; pick a live one with a range.`);\n }\n\n // The pinned version's bytes never change: the same version under a different digest is refused,\n // not re-installed (it used to fall through to a silent reinstall of the new bytes). A pin exists only\n // on a registry entry; a checkout entry moving to a registry has none to hold.\n const pinnedDigest = existing.distribution === ModuleDistribution.REGISTRY ? registryProvenanceOf(existing).artifactDigest : undefined;\n if (pinnedDigest !== undefined && version === existing.version) {\n assertServedDigestMatchesPin({\n moduleId: parsed.moduleId,\n version,\n pinnedDigest,\n servedDigest: artifactDigest,\n });\n }\n // No-op short-circuit: same version + same digest = nothing to do.\n if (version === existing.version && artifactDigest === pinnedDigest) {\n ctx.log.success(` already at ${version} with matching integrity — no files changed; host requirements were not revalidated.`);\n return { success: true, message: `Up to date (${version}).` };\n }\n\n const { bytes } = await RegistryServerClient.download(clientOptions, {\n domain: existing.domain,\n moduleId: parsed.moduleId,\n version,\n expectedDigest: artifactDigest,\n });\n ctx.log.info(` downloaded → ${bytes.byteLength} bytes`);\n acquisition = {\n distribution: ModuleDistribution.REGISTRY,\n version,\n artifactDigest,\n bytes,\n registry: { url: resolved.url, id: resolved.id ?? (existing.registryId ?? DEFAULT_REGISTRY_ID) },\n };\n }\n const version = acquisition.version;\n ctx.log.info(` resolved → ${describeAcquisition(parsed.moduleId, acquisition)}`);\n\n let resourceConfigurationFiles: string[] = [];\n let changedProvider = false;\n /** The install-script names this run newly allowed (#2801), rebuilt after the install. */\n let allowedInstallScripts: readonly string[] = [];\n /** Whether the provider ships skills (#2026), before or after this change: then its skills are synced too. */\n let carriesSkills = false;\n await withRegistryWorkspaceMutationLock(saasRoot, async () => {\n // `existing` (its pin and its file set, which the shrink below deletes from) was read before the\n // lock; re-confirmed under it.\n await assertModuleEntryUnchangedUnderLock(saasRoot, parsed.moduleId, existing);\n const paths = moduleArtifactPaths(saasRoot, existing.domain, parsed.moduleId, version);\n const stagedCount = await stageModuleAcquisition(acquisition, paths, saasRoot);\n ctx.log.success(` staged ${stagedCount} file(s) → ${path.relative(saasRoot, paths.extractDir)}/`);\n\n // Boundary-enforced fan-out → record the new SaaS-source paths.\n // M9: snapshot pre-existing destinations so a partial-failure\n // mid-fan-out (or a lockfile-write failure right after) can roll\n // back the SaaS source to the pre-update state. M10: cross-module\n // overlap warnings for any path another module also claims.\n const stagedManifest = await readStagedManifest(paths.extractDir);\n assertStagedManifestMatchesRequest(stagedManifest, { moduleId: parsed.moduleId, version });\n // #2861: a blueprint is applied by `wildo init --blueprint`, never installed into an existing application. Its\n // staged copy can never become an install, so it does not stay in the application's generated tree.\n if (stagedManifest.kind === ModuleKind.BLUEPRINT) {\n await fs.rm(paths.extractDir, { recursive: true, force: true });\n await fs.rm(paths.zip, { force: true });\n throw new Error(`${stagedManifest.id} is a blueprint: it starts a new application with \\`wildo init --blueprint\\` and is never installed into an existing one.`);\n }\n for (const notice of await checkModuleRequirements(saasRoot, stagedManifest, moduleRequirementsOriginOf(acquisition))) ctx.log.warn(notice);\n // #2014: a provider module is wired into THIS application's own runtimes. Derived before a single file is\n // written, so a refusal (no backend service to own a backend facet) leaves the application untouched.\n const providerRegistration = stagedManifest.kind === ModuleKind.PROVIDER ? await deriveProviderRegistration(saasRoot, stagedManifest) : undefined;\n changedProvider = providerRegistration !== undefined;\n carriesSkills = (stagedManifest.provider?.skills?.length ?? 0) > 0 || (existing.files ?? []).some((file) => /^providers\\/[^/]+\\/skills\\//.test(file));\n await fs.rm(paths.backupDir, { recursive: true, force: true });\n // #2016: a file the application changed since install is kept, not overwritten, unless --force.\n const force = ctx.flags.force === true;\n const forceBackupDirectory = registryForceBackupDirectory(saasRoot, parsed.moduleId);\n const writePlan = await planProtectedWrite({\n saasRoot,\n extractDir: paths.extractDir,\n moduleId: parsed.moduleId,\n stagedPaths: await validatedStagedAppFiles({ saasRoot, extractDir: paths.extractDir, manifest: stagedManifest }),\n recorded: existing,\n force,\n restoreMissing: false,\n backupDirectory: forceBackupDirectory,\n findOtherOwners: (candidates) => RegistryLockfileService.findFileOwners({ saasRoot, paths: candidates, excludeModuleId: parsed.moduleId }),\n });\n for (const kept of writePlan.kept) ctx.log.warn(` ${describeProtectedFile(kept.path, kept.state, 'overwritten')}`);\n for (const missing of writePlan.notRestored) ctx.log.warn(` not recreated ${missing}: you deleted it since it was installed. \\`wildo registry repair-lockfile --fix\\` restores it.`);\n for (const forced of writePlan.forced) ctx.log.warn(` overwrote ${forced.path} (--force); your version is at ${path.relative(saasRoot, forced.backup)}`);\n const fanOut = await fanOutToSaasSource({\n saasRoot,\n extractDir: paths.extractDir,\n manifest: stagedManifest,\n moduleId: parsed.moduleId,\n backupDir: paths.backupDir,\n skipPaths: writePlan.skip,\n });\n ctx.log.success(` wrote ${fanOut.writtenFiles.length} app source file(s) per manifest.boundaries`);\n if (fanOut.overlapWarnings.length > 0) {\n for (const w of fanOut.overlapWarnings) {\n ctx.log.warn(` [overlap] \"${w.path}\" was also claimed by \"${w.otherModuleId}\" — overwritten by ${parsed.moduleId}.`);\n }\n }\n\n // #1755: register the new version (reversing the previous registration first if it changed),\n // or mark why it is not registered.\n // Reversing the previous registration can throw, and so can applying a provider's CHANGED wiring (after\n // undoing its own partial reversal, #2014); the new files are already in place, so either failure rolls the\n // fan-out back like a lockfile failure does, leaving the installed version and its wiring as they were.\n let registrationOutcome: ReturnType<typeof registerModuleForInstall>;\n try {\n registrationOutcome = registerModuleForInstall(\n saasRoot,\n ctx.cliContext.resolvedHomes.framework.repositoryRoot ?? null,\n stagedManifest,\n existing.registration,\n providerRegistration,\n );\n } catch (registrationError) {\n await rollbackFanOut({ saasRoot, result: fanOut }).catch(() => {});\n await fs.rm(paths.backupDir, { recursive: true, force: true }).catch(() => {});\n throw registrationError;\n }\n reportRegistrationOutcome(ctx.log, registrationOutcome, saasRoot);\n allowedInstallScripts = registrationOutcome.allowedInstallScripts;\n\n // M9 (4th-pass review): shrink-cleanup is reordered to AFTER the\n // lockfile upsert. Previously it ran before, and a subsequent\n // lockfile-write failure left an unrecoverable state:\n // lockfile = OLD version, source = missing files-only-in-OLD.\n // The fix sequences the steps so each failure mode has a clean\n // recovery:\n // 1. fan-out (with backup snapshot)\n // 2. lockfile upsert → on failure, rollback fan-out cleanly\n // (no shrink-deletes have happened yet)\n // 3. shrink-cleanup → on failure, lockfile already records the\n // new version; operator re-runs `update`\n // or `repair-lockfile` to clean up.\n //\n // 5th-pass K-L2 — concurrent-repair safety: the window between\n // step 2 (lockfile records new version, files[] = NEW set) and\n // step 3 (shrink-deletes old-only files) leaves orphan files on\n // disk that AREN'T in `entry.files`. `repair-lockfile`'s\n // `module-file-missing` finding only fires for files IN\n // `entry.files` and absent from disk — orphan old-only files are\n // outside its purview, so a concurrent repair run cannot\n // mistakenly re-fetch the new version because of them. Verified\n // safe via `LockfileRepairService.collectEntryFindings`.\n // The previous origin's provenance is dropped whole, so a module that moved origin never carries\n // both kinds of fields (the lockfile schema refuses that).\n const {\n registration: _previousRegistration,\n distribution: _previousDistribution,\n registryId: _previousRegistryId,\n registryUrl: _previousRegistryUrl,\n artifactDigest: _previousArtifactDigest,\n checkoutCommit: _previousCheckoutCommit,\n checkoutDirty: _previousCheckoutDirty,\n ...existingWithoutOrigin\n } = existing;\n const entry: RegistryModulesLockEntry = {\n ...existingWithoutOrigin,\n ...(registrationOutcome.registration ? { registration: registrationOutcome.registration } : {}),\n ...lockEntryProvenance(acquisition),\n version,\n requestedRange: parsed.range,\n installedAt: new Date().toISOString(),\n files: fanOut.ownedFiles,\n installedFileHashes: await nextInstalledFileHashes({ saasRoot, ownedFiles: fanOut.ownedFiles, skipped: writePlan.skip, previous: existing }),\n source: 'update',\n };\n try {\n await RegistryLockfileService.upsertEntry(saasRoot, entry);\n } catch (lockErr) {\n ctx.log.error(` lockfile write failed — rolling back ${fanOut.writtenFiles.length} fan-out file(s).`);\n // M8 + 5th-pass K-L1: rollback wrapping is belt-and-suspenders\n // (`rollbackFanOut` swallows per-file FS errors internally —\n // unreachable on POSIX today). Kept against future changes that\n // let those errors propagate, AND so a rollback-side error\n // doesn't mask the original `lockErr`. See `add.command.ts` for\n // the same pattern + rationale.\n try {\n rollbackInstallRegistration(saasRoot, registrationOutcome.snapshots);\n await rollbackFanOut({ saasRoot, result: fanOut });\n } catch (rbErr) {\n ctx.log.error(\n ` rollback failed: ${ErrorUtils.extractErrorMessage(rbErr)} — SaaS source may be in a partially-applied state.`,\n );\n }\n // 7th-pass K-L1: same swallow rationale as `add.command.ts` — a\n // cleanup failure must NOT mask the original `lockErr`. Best-\n // effort `.catch(() => {})` is intentional.\n await fs.rm(paths.backupDir, { recursive: true, force: true }).catch(() => {});\n throw lockErr;\n }\n await fs.rm(paths.backupDir, { recursive: true, force: true }).catch(() => {});\n ctx.log.success(' lockfile updated');\n if (registrationOutcome.registration) {\n ctx.log.success(` registered in the application's module registries (${registrationOutcome.registration.moduleId})`);\n }\n\n // Clean up files that existed in the OLD version but no longer\n // exist in the new one. Files present in both are simply\n // overwritten by `fanOutToSaasSource`. This is the \"shrink\"\n // direction of update — the inverse of \"remove\".\n //\n // Cross-module file-overlap guard: if another lockfile entry\n // claims any of the about-to-be-deleted paths, skip them — that\n // module still owns the file. This prevents `update` from silently\n // pulling files out from under sibling modules that share a barrel\n // / generated index.\n //\n // Failure tolerance: if a shrink-unlink throws (other than ENOENT),\n // we log + continue rather than abort. The lockfile already\n // records the new version, so the operator can re-run `update` or\n // `wildo registry repair-lockfile` to converge.\n // Asked BEFORE the shrink deletes the old-only files: a resource the new version dropped still owes a migration.\n resourceConfigurationFiles = await findResourceConfigurationFiles(saasRoot, [...new Set([...fanOut.writtenFiles, ...existing.files])]);\n // The files that leave the module are those it no longer OWNS, not those it did not write: a file\n // kept because you edited it is still owned (#2016), and deleting it here would destroy exactly\n // what the write step protected.\n const newOwnedSet = new Set(fanOut.ownedFiles);\n const candidates = existing.files.filter((p) => !newOwnedSet.has(p));\n const claimedBy = await RegistryLockfileService.findFileOwners({\n saasRoot,\n paths: candidates,\n excludeModuleId: parsed.moduleId,\n });\n let removedCount = 0;\n let skippedCount = 0;\n let failedCount = 0;\n const unlinked: string[] = [];\n const unclaimed: string[] = [];\n for (const oldRel of candidates) {\n const owners = claimedBy.get(oldRel) ?? [];\n if (owners.length > 0) {\n ctx.log.warn(` keep ${oldRel} — also owned by ${owners.join(', ')}`);\n skippedCount += 1;\n continue;\n }\n unclaimed.push(oldRel);\n }\n const removalPlan = await planProtectedRemoval({ saasRoot, entry: existing, paths: unclaimed, force, backupDirectory: forceBackupDirectory });\n for (const kept of removalPlan.kept) {\n ctx.log.warn(` ${describeProtectedFile(kept.path, kept.state, 'deleted')} ${version} no longer ships it, so it is now the application's own file.`);\n }\n for (const forced of removalPlan.forced) ctx.log.warn(` deleted ${forced.path} (--force); your version is at ${path.relative(saasRoot, forced.backup)}`);\n for (const oldRel of removalPlan.remove) {\n try {\n const oldAbs = resolveRecordedModuleFile(saasRoot, oldRel);\n await fs.unlink(oldAbs);\n removedCount += 1;\n unlinked.push(oldRel);\n } catch (err) {\n if ((err as NodeJS.ErrnoException).code === 'ENOENT') continue;\n ctx.log.warn(\n ` shrink-unlink failed for ${oldRel}: ${ErrorUtils.extractErrorMessage(err)} (non-fatal — re-run \\`wildo registry repair-lockfile\\` to converge).`,\n );\n failedCount += 1;\n }\n }\n if (removedCount > 0) {\n // A directory the previous version had and this one does not goes with its last file.\n await pruneEmptiedModuleDirectories(saasRoot, unlinked);\n ctx.log.info(` removed ${removedCount} file(s) no longer present in ${version}`);\n }\n if (skippedCount > 0) {\n ctx.log.info(` skipped ${skippedCount} file(s) claimed by other modules`);\n }\n if (failedCount > 0) {\n ctx.log.warn(` shrink-cleanup left ${failedCount} stale file(s) on disk`);\n }\n });\n\n // #1757: a module that declares resources leaves a migration owed on an application that has\n // adopted migrations. Marked here, after the lock — the plan cannot be computed until the backend\n // is rebuilt with the module in it.\n const migrationObligation = deriveMigrationObligation({ saasRoot, moduleId: parsed.moduleId, verb: 'update', resourceConfigurationFiles });\n if (migrationObligation) for (const line of describeMigrationObligation(migrationObligation)) ctx.log.warn(line);\n\n if (credentialUrl !== undefined) await RegistryCredentialsService.touch(credentialUrl);\n\n // #2014: a provider's packages must resolve before the sync can discover them.\n if (changedProvider) installAfterProviderChange(ctx, saasRoot, parsed.moduleId, { rebuild: allowedInstallScripts });\n // #2026: the provider's skills follow it into (or out of) `.claude/skills/`.\n if (changedProvider && carriesSkills) syncSkillsAfterProviderChange(ctx, saasRoot, parsed.moduleId);\n\n // K-L2 (4th-pass review) + 5th-pass K-L3 — provider-sync soft-success\n // waiver: see `add.command.ts` for the full rationale. Same\n // semantic here: the lockfile + SaaS source are consistent before\n // this step; provider-sync is a downstream materialization that\n // operators can re-run independently with `wildo config sync\n // --domain config`. CI users grep stderr for `provider-sync failed`\n // or run `wildo config sync` as a separate post-step.\n try {\n await runProviderSync({\n saasRoot,\n reason: 'update',\n dryRun: false,\n log: asRegistryLogger(ctx),\n });\n ctx.log.success(' provider-sync OK');\n } catch (err) {\n ctx.log.warn(` provider-sync failed: ${(err as Error).message}`);\n }\n\n return {\n success: true,\n message: `Updated ${parsed.moduleId}: ${existing.version} → ${version}.`,\n };\n }\n}\n"]}
|
|
@@ -1,5 +1,15 @@
|
|
|
1
|
+
import { type ApprovalSealVerificationBundle, type ApprovalSealVerificationInput } from '@wildo-ai/platform-config-lib';
|
|
1
2
|
import { BaseCommand } from '../../kernel/base-command';
|
|
2
3
|
import type { CommandMeta, CommandContext, CommandResult } from '../../kernel/types';
|
|
4
|
+
/**
|
|
5
|
+
* The vendor-signed copies to verify (#2907): each given file paired with the bundle entry whose recorded hash it has,
|
|
6
|
+
* so the entry's stated lineage is checked with it and the verifier can say the host records that exact copy. A host
|
|
7
|
+
* whose file row for a copy is gone names it with no hash: when exactly one such entry and exactly one unpaired file
|
|
8
|
+
* remain, they are paired, so the entry's lineage is still checked (the copy is then reported not recorded, since no
|
|
9
|
+
* hash ties those bytes to the row). Any other given file is checked from its bytes alone and reported with no file id
|
|
10
|
+
* and not recorded. Every named entry no file was paired with is passed as it is, and reported not given.
|
|
11
|
+
*/
|
|
12
|
+
export declare function vendorSignedCopyInputsOf(named: NonNullable<ApprovalSealVerificationBundle['vendorSignedCopies']>, given: readonly Buffer[]): NonNullable<ApprovalSealVerificationInput['vendorSignedCopies']>;
|
|
3
13
|
/**
|
|
4
14
|
* `wildo seal verify <bundle.json>` — verify one approval seal OFFLINE (#2903): the bundle carries the compact JWS, the
|
|
5
15
|
* stored records of the keys that may have signed it (scope and issuer included, as an export carries them), and
|
|
@@ -20,6 +30,14 @@ import type { CommandMeta, CommandContext, CommandResult } from '../../kernel/ty
|
|
|
20
30
|
* name, then its prefix opened against the seal's commitment. One changed byte in the approval page and the seal does
|
|
21
31
|
* not verify. A copy the approver's erasure deleted is reported as erased content, never as missing.
|
|
22
32
|
*
|
|
33
|
+
* The same original may also have VENDOR-SIGNED COPIES (#2907's document chain, #2293): the bundle names each with the
|
|
34
|
+
* file its row says it derives from. `--vendor-signed-copy <path>` (repeatable) checks one: its first revision, ending at
|
|
35
|
+
* a `%%EOF`, must be the approved file, and the command reports which original it derives from. A copy whose row names
|
|
36
|
+
* another original, whose bytes are not the ones its row hashed, or that does not start with the approved file, fails
|
|
37
|
+
* the seal. Only a copy the host RECORDS (named, with these exact bytes) is reported as the signed copy whose vendor
|
|
38
|
+
* signature was validated at receipt (that evidence is the signature request's, not the seal's); a copy the host does
|
|
39
|
+
* not record is reported as starting with the approved file, and nothing more.
|
|
40
|
+
*
|
|
23
41
|
* Whether the approval is still CURRENT over its record (#2914): `--subject-record <record.json>` gives the record as it
|
|
24
42
|
* is now (its fields, as an export of the record states them; `null` for a record that is gone). The values of the
|
|
25
43
|
* fields the approval covers, as the disclosed presentation carries them, are compared with it. A record changed since
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verify.command.d.ts","sourceRoot":"","sources":["../../../../src/commands/seal/verify.command.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"verify.command.d.ts","sourceRoot":"","sources":["../../../../src/commands/seal/verify.command.ts"],"names":[],"mappings":"AAKA,OAAO,EAOL,KAAK,8BAA8B,EACnC,KAAK,6BAA6B,EACnC,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAG7D,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAK1F;;;;;;;GAOG;AACH,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,WAAW,CAAC,8BAA8B,CAAC,oBAAoB,CAAC,CAAC,EACxE,KAAK,EAAE,SAAS,MAAM,EAAE,GACvB,WAAW,CAAC,6BAA6B,CAAC,oBAAoB,CAAC,CAAC,CAgBlE;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,MAAM,CAAC,OAAO,OAAO,iBAAkB,SAAQ,WAAW;IACxD,QAAQ,CAAC,IAAI,EAAE,WAAW,CAexB;IAEI,GAAG,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;CAoKvD"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createHash } from 'node:crypto';
|
|
1
2
|
import { readFileSync } from 'node:fs';
|
|
2
3
|
import { resolve } from 'node:path';
|
|
3
4
|
import chalk from 'chalk';
|
|
@@ -9,6 +10,32 @@ import { CommandCategory } from '../../kernel/types.js';
|
|
|
9
10
|
import { ErrorUtils } from '../../infrastructure/errors/error.utils.js';
|
|
10
11
|
import { parseCsvFlag } from '../../kernel/flag-utils.js';
|
|
11
12
|
import { readPinSetsFile, readSigningLogExportFile } from './signing-log-files.utils.js';
|
|
13
|
+
/**
|
|
14
|
+
* The vendor-signed copies to verify (#2907): each given file paired with the bundle entry whose recorded hash it has,
|
|
15
|
+
* so the entry's stated lineage is checked with it and the verifier can say the host records that exact copy. A host
|
|
16
|
+
* whose file row for a copy is gone names it with no hash: when exactly one such entry and exactly one unpaired file
|
|
17
|
+
* remain, they are paired, so the entry's lineage is still checked (the copy is then reported not recorded, since no
|
|
18
|
+
* hash ties those bytes to the row). Any other given file is checked from its bytes alone and reported with no file id
|
|
19
|
+
* and not recorded. Every named entry no file was paired with is passed as it is, and reported not given.
|
|
20
|
+
*/
|
|
21
|
+
export function vendorSignedCopyInputsOf(named, given) {
|
|
22
|
+
const used = new Set();
|
|
23
|
+
const pairedWith = given.map((bytes) => {
|
|
24
|
+
const hash = createHash('sha256').update(bytes).digest('hex');
|
|
25
|
+
const index = named.findIndex((entry, at) => !used.has(at) && entry.contentSha256 === hash);
|
|
26
|
+
if (index >= 0)
|
|
27
|
+
used.add(index);
|
|
28
|
+
return index;
|
|
29
|
+
});
|
|
30
|
+
const unpairedFiles = pairedWith.flatMap((index, at) => (index < 0 ? [at] : []));
|
|
31
|
+
const hashlessEntries = named.flatMap((entry, at) => (!used.has(at) && entry.contentSha256 === undefined ? [at] : []));
|
|
32
|
+
if (unpairedFiles.length === 1 && hashlessEntries.length === 1) {
|
|
33
|
+
pairedWith[unpairedFiles[0]] = hashlessEntries[0];
|
|
34
|
+
used.add(hashlessEntries[0]);
|
|
35
|
+
}
|
|
36
|
+
const inputs = given.map((bytes, at) => (pairedWith[at] >= 0 ? { ...named[pairedWith[at]], bytes } : { bytes }));
|
|
37
|
+
return [...inputs, ...named.filter((_, at) => !used.has(at))];
|
|
38
|
+
}
|
|
12
39
|
/**
|
|
13
40
|
* `wildo seal verify <bundle.json>` — verify one approval seal OFFLINE (#2903): the bundle carries the compact JWS, the
|
|
14
41
|
* stored records of the keys that may have signed it (scope and issuer included, as an export carries them), and
|
|
@@ -29,6 +56,14 @@ import { readPinSetsFile, readSigningLogExportFile } from './signing-log-files.u
|
|
|
29
56
|
* name, then its prefix opened against the seal's commitment. One changed byte in the approval page and the seal does
|
|
30
57
|
* not verify. A copy the approver's erasure deleted is reported as erased content, never as missing.
|
|
31
58
|
*
|
|
59
|
+
* The same original may also have VENDOR-SIGNED COPIES (#2907's document chain, #2293): the bundle names each with the
|
|
60
|
+
* file its row says it derives from. `--vendor-signed-copy <path>` (repeatable) checks one: its first revision, ending at
|
|
61
|
+
* a `%%EOF`, must be the approved file, and the command reports which original it derives from. A copy whose row names
|
|
62
|
+
* another original, whose bytes are not the ones its row hashed, or that does not start with the approved file, fails
|
|
63
|
+
* the seal. Only a copy the host RECORDS (named, with these exact bytes) is reported as the signed copy whose vendor
|
|
64
|
+
* signature was validated at receipt (that evidence is the signature request's, not the seal's); a copy the host does
|
|
65
|
+
* not record is reported as starting with the approved file, and nothing more.
|
|
66
|
+
*
|
|
32
67
|
* Whether the approval is still CURRENT over its record (#2914): `--subject-record <record.json>` gives the record as it
|
|
33
68
|
* is now (its fields, as an export of the record states them; `null` for a record that is gone). The values of the
|
|
34
69
|
* fields the approval covers, as the disclosed presentation carries them, are compared with it. A record changed since
|
|
@@ -37,7 +72,7 @@ import { readPinSetsFile, readSigningLogExportFile } from './signing-log-files.u
|
|
|
37
72
|
export default class SealVerifyCommand extends BaseCommand {
|
|
38
73
|
meta = {
|
|
39
74
|
name: 'seal verify',
|
|
40
|
-
description: 'Verify one approval seal offline from a bundle file ({ jws, keys, expectedIssuer?, disclosures?, erasedClaims?, deliverableFile?, manifestedCopy? }), with your own pins, kept exports, corroboration, the approved file and its
|
|
75
|
+
description: 'Verify one approval seal offline from a bundle file ({ jws, keys, expectedIssuer?, disclosures?, erasedClaims?, deliverableFile?, manifestedCopy?, vendorSignedCopies? }), with your own pins, kept exports, corroboration, the approved file, its manifested copy and its vendor-signed copies.',
|
|
41
76
|
category: CommandCategory.Core,
|
|
42
77
|
args: [{ name: 'bundle', description: 'Path to the JSON bundle.', required: true }],
|
|
43
78
|
flags: {
|
|
@@ -47,6 +82,7 @@ export default class SealVerifyCommand extends BaseCommand {
|
|
|
47
82
|
'signing-log-exports': { type: 'string[]', description: 'Signing-log exports the operator kept (`wildo seal log-export`), to corroborate a seal under a compromised key.' },
|
|
48
83
|
deliverable: { type: 'string', description: 'The file the seal attests as the approved deliverable (#2904): its bytes are checked against the seal\'s commitment.' },
|
|
49
84
|
'manifested-copy': { type: 'string', description: 'The approved deliverable\'s manifested copy (#2907): its approval page and attached seal are rebuilt and compared, and what precedes them checked against the seal\'s commitment.' },
|
|
85
|
+
'vendor-signed-copy': { type: 'string[]', description: 'Copies of the approved deliverable an electronic-signature vendor signed (#2907): each one\'s first revision is checked against the seal\'s commitment, and the original it derives from is reported.' },
|
|
50
86
|
'subject-record': { type: 'string', description: 'The record the approval is about, as it is now (a JSON object of its fields, or null when gone) (#2914): reports whether the approval is still current over it.' },
|
|
51
87
|
},
|
|
52
88
|
};
|
|
@@ -99,6 +135,14 @@ export default class SealVerifyCommand extends BaseCommand {
|
|
|
99
135
|
}
|
|
100
136
|
input = { ...input, manifestedCopy: { ...(bundle.manifestedCopy ?? {}), bytes: readFileSync(resolve(process.cwd(), ctx.flags['manifested-copy'])) } };
|
|
101
137
|
}
|
|
138
|
+
const vendorCopyPaths = parseCsvFlag(ctx.flags['vendor-signed-copy']);
|
|
139
|
+
if (vendorCopyPaths) {
|
|
140
|
+
if (!bundle.deliverableFile) {
|
|
141
|
+
ctx.log.error('The bundle names no file deliverable: this seal attests no file a vendor could have signed a copy of.');
|
|
142
|
+
return { success: false };
|
|
143
|
+
}
|
|
144
|
+
input = { ...input, vendorSignedCopies: vendorSignedCopyInputsOf(bundle.vendorSignedCopies ?? [], vendorCopyPaths.map((copyPath) => readFileSync(resolve(process.cwd(), copyPath)))) };
|
|
145
|
+
}
|
|
102
146
|
if (typeof ctx.flags['subject-record'] === 'string') {
|
|
103
147
|
const record = JSON.parse(readFileSync(resolve(process.cwd(), ctx.flags['subject-record']), 'utf8'));
|
|
104
148
|
if (record !== null && (typeof record !== 'object' || Array.isArray(record))) {
|
|
@@ -130,6 +174,14 @@ export default class SealVerifyCommand extends BaseCommand {
|
|
|
130
174
|
if (result.manifestedCopy?.standing === ApprovalSealDeliverableFileStanding.CHANGED) {
|
|
131
175
|
ctx.log.error(' manifested copy: the given file is NOT this seal\'s copy of the approved file (its approval page, attached seal or original differs)');
|
|
132
176
|
}
|
|
177
|
+
for (const copy of result.vendorSignedCopies ?? []) {
|
|
178
|
+
if (copy.standing === ApprovalSealDeliverableFileStanding.DERIVED_FROM_ANOTHER_FILE) {
|
|
179
|
+
ctx.log.error(` vendor-signed copy${copy.fileId ? ` ${copy.fileId}` : ''}: derived from ${copy.statedDerivedFromFileId}, NOT from the file this seal approved`);
|
|
180
|
+
}
|
|
181
|
+
else if (copy.standing === ApprovalSealDeliverableFileStanding.CHANGED) {
|
|
182
|
+
ctx.log.error(` vendor-signed copy${copy.fileId ? ` ${copy.fileId}` : ''}: does NOT start with the approved file (or is not the file its record names)`);
|
|
183
|
+
}
|
|
184
|
+
}
|
|
133
185
|
return { success: false };
|
|
134
186
|
}
|
|
135
187
|
const claims = result.claims;
|
|
@@ -169,6 +221,15 @@ export default class SealVerifyCommand extends BaseCommand {
|
|
|
169
221
|
: chalk.dim('nothing to compare with: the approver, the presentation or the deliverable\'s salt is not disclosed');
|
|
170
222
|
ctx.log.info(` manifested copy${result.manifestedCopy.fileId ? ` ${result.manifestedCopy.fileId}` : ''}: ${described}`);
|
|
171
223
|
}
|
|
224
|
+
for (const copy of result.vendorSignedCopies ?? []) {
|
|
225
|
+
const described = copy.standing === ApprovalSealDeliverableFileStanding.MATCHES
|
|
226
|
+
? copy.recordedByHost
|
|
227
|
+
? chalk.green(`derived from the approved file ${copy.derivesFromFileId}: its first ${copy.originalLength} bytes are that file, and it is the signed copy the host recorded (the vendor's signature was validated at receipt; see the signature request's validation evidence)`)
|
|
228
|
+
: chalk.yellow(`starts with the approved file ${copy.derivesFromFileId} (its first ${copy.originalLength} bytes), but the host records no such copy: nothing here says what follows is a vendor's signature`)
|
|
229
|
+
: copy.standing === ApprovalSealDeliverableFileStanding.NOT_GIVEN ? chalk.yellow('not given (pass --vendor-signed-copy <file>)')
|
|
230
|
+
: chalk.dim('nothing to compare with: the presentation or the deliverable\'s salt is not disclosed');
|
|
231
|
+
ctx.log.info(` vendor-signed copy${copy.fileId ? ` ${copy.fileId}` : ''}: ${described}`);
|
|
232
|
+
}
|
|
172
233
|
if (result.subjectRecordCurrency) {
|
|
173
234
|
const currency = result.subjectRecordCurrency;
|
|
174
235
|
const record = currency.subject ? ` ${currency.subject.resourceType}/${currency.subject.resourceId}` : '';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verify.command.js","sourceRoot":"","sources":["../../../../src/commands/seal/verify.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,2BAA2B,EAAE,iBAAiB,EAAE,oCAAoC,EAAE,MAAM,uBAAuB,CAAC;AAC7H,OAAO,EACL,+BAA+B,EAC/B,+BAA+B,EAC/B,mCAAmC,EACnC,8BAA8B,EAC9B,oCAAoC,EACpC,kBAAk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AC,WAAW,CAAC,MAAM,CAAC,SAAS,EAAE,QAAQ,EAAE,sBAAsB,CAAC,EAAE,CAAC,CAAC;QACrN,CAAC;QACD,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC;YACrB,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,yHAAyH,CAAC,CAAC,CAAC;YACtJ,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,iFAAiF,CAAC,CAAC,CAAC;QAChH,CAAC;QACD,IAAI,MAAM,CAAC,cAAc,EAAE,CAAC;YAC1B,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,sBAAsB,MAAM,CAAC,cAAc,KAAK,+BAA+B,CAAC,kBAAkB,CAAC,CAAC,CAAC,mDAAmD,CAAC,CAAC,CAAC,yCAAyC,EAAE,CAAC,CAAC;QACvN,CAAC;QACD,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,8BAA8B,MAAM,CAAC,qBAAqB,EAAE,CAAC,CAAC;QAC3E,OAAO,EAAE,OAAO,EAAE,MAAM,CAAC,QAAQ,EAAE,CAAC;IACtC,CAAC;CACF","sourcesContent":["import { readFileSync } from 'node:fs';\nimport { resolve } from 'node:path';\nimport chalk from 'chalk';\nimport { ApprovalSealSubjectCurrency, CryptoKey_Purpose, HumanDecision_PresentedFieldCurrency } from '@wildo-ai/saas-models';\nimport {\n ApprovalSealCorroborationSchema,\n ApprovalSealCorroborationSource,\n ApprovalSealDeliverableFileStanding,\n ApprovalSealDisclosureStanding,\n ApprovalSealVerificationBundleSchema,\n verifyApprovalSeal,\n type ApprovalSealVerificationInput,\n} from '@wildo-ai/platform-config-lib';\n\nimport { BaseCommand } from '~wildo-cli/kernel/base-command';\nimport { JsonDocumentLayout, writeJsonDocument } from '~wildo-cli/kernel/json-document-output';\nimport { CommandCategory } from '~wildo-cli/kernel/types';\nimport type { CommandMeta, CommandContext, CommandResult } from '~wildo-cli/kernel/types';\nimport { ErrorUtils } from '~wildo-cli/infrastructure/errors/error.utils';\nimport { parseCsvFlag } from '~wildo-cli/kernel/flag-utils';\nimport { readPinSetsFile, readSigningLogExportFile } from './signing-log-files.utils';\n\n/**\n * `wildo seal verify <bundle.json>` — verify one approval seal OFFLINE (#2903): the bundle carries the compact JWS, the\n * stored records of the keys that may have signed it (scope and issuer included, as an export carries them), and\n * optionally the disclosures. Nothing is called: it verifies after the application is gone. Exits non-zero on a seal\n * that does not verify, or one that is valid and not provable.\n *\n * The bundle is the host's file, so the operator adds what the host cannot vouch for itself (#2932): `--pins`, its pin\n * sets file (the seal key is trusted only when pinned, and its state is the pin's); `--signing-log-exports`, the exports\n * it kept, which corroborate a seal under a key compromised after an export that lists it; and `--corroboration`, a\n * decision digest recorded elsewhere before the compromise (an exported audit row, an immutable sink).\n *\n * A seal that attests a FILE deliverable (#2904) names it in the bundle with the salt its commitment was made with;\n * `--deliverable <path>` gives the file's bytes, checked against the commitment the presentation binds: one changed byte\n * and the seal does not verify. Without it the file is reported as not given.\n *\n * Such a deliverable may have a MANIFESTED COPY (#2907): the original followed by a page naming who approved it, with the\n * JWS attached. `--manifested-copy <path>` checks it: rebuilt from its own prefix, the JWS and the disclosed approver's\n * name, then its prefix opened against the seal's commitment. One changed byte in the approval page and the seal does\n * not verify. A copy the approver's erasure deleted is reported as erased content, never as missing.\n *\n * Whether the approval is still CURRENT over its record (#2914): `--subject-record <record.json>` gives the record as it\n * is now (its fields, as an export of the record states them; `null` for a record that is gone). The values of the\n * fields the approval covers, as the disclosed presentation carries them, are compared with it. A record changed since\n * is reported NO LONGER CURRENT and is not a failure: the seal still proves what was approved.\n */\nexport default class SealVerifyCommand extends BaseCommand {\n readonly meta: CommandMeta = {\n name: 'seal verify',\n description: 'Verify one approval seal offline from a bundle file ({ jws, keys, expectedIssuer?, disclosures?, erasedClaims?, deliverableFile?, manifestedCopy? }), with your own pins, kept exports, corroboration, the approved file and its manifested copy.',\n category: CommandCategory.Core,\n args: [{ name: 'bundle', description: 'Path to the JSON bundle.', required: true }],\n flags: {\n json: { type: 'boolean', description: 'Print the verification as JSON.' },\n pins: { type: 'string', description: 'The operator\\'s pin sets file ({ \"approval_seal\": { \"keys\": [...] }, \"signing_log_export\": ... }).' },\n corroboration: { type: 'string', description: 'A file { decisionPayloadDigest, recordedAt }: the decision\\'s digest, recorded outside the application before the compromise.' },\n 'signing-log-exports': { type: 'string[]', description: 'Signing-log exports the operator kept (`wildo seal log-export`), to corroborate a seal under a compromised key.' },\n deliverable: { type: 'string', description: 'The file the seal attests as the approved deliverable (#2904): its bytes are checked against the seal\\'s commitment.' },\n 'manifested-copy': { type: 'string', description: 'The approved deliverable\\'s manifested copy (#2907): its approval page and attached seal are rebuilt and compared, and what precedes them checked against the seal\\'s commitment.' },\n 'subject-record': { type: 'string', description: 'The record the approval is about, as it is now (a JSON object of its fields, or null when gone) (#2914): reports whether the approval is still current over it.' },\n },\n };\n\n async run(ctx: CommandContext): Promise<CommandResult> {\n const path = ctx.args.bundle;\n if (!path) {\n ctx.log.error('Missing required <bundle> argument.');\n return { success: false };\n }\n let bundle;\n try {\n bundle = ApprovalSealVerificationBundleSchema.parse(JSON.parse(readFileSync(resolve(process.cwd(), path), 'utf8')));\n } catch (error) {\n ctx.log.error(`Cannot read the bundle ${path}: ${ErrorUtils.extractErrorMessage(error)}`);\n return { success: false };\n }\n // The bundle is the host's; the pins and the kept exports come only from the operator's own files (#2932 review H1).\n // A pin file that does not pin the purpose being checked is refused rather than silently ignored (review L1).\n let input: ApprovalSealVerificationInput = bundle;\n try {\n const pinSets = typeof ctx.flags.pins === 'string' ? readPinSetsFile(ctx.flags.pins) : undefined;\n const exportPaths = parseCsvFlag(ctx.flags['signing-log-exports']);\n if (pinSets) {\n const sealPins = pinSets[CryptoKey_Purpose.APPROVAL_SEAL];\n if (!sealPins) {\n ctx.log.error(`The pin sets file pins no ${CryptoKey_Purpose.APPROVAL_SEAL} key: nothing would be checked against it.`);\n return { success: false };\n }\n if (exportPaths && !pinSets[CryptoKey_Purpose.SIGNING_LOG_EXPORT]) {\n ctx.log.error(`The pin sets file pins no ${CryptoKey_Purpose.SIGNING_LOG_EXPORT} key: the exports could not be checked against it.`);\n return { success: false };\n }\n input = { ...input, pins: sealPins };\n }\n if (typeof ctx.flags.corroboration === 'string') {\n input = { ...input, corroboration: ApprovalSealCorroborationSchema.parse(JSON.parse(readFileSync(resolve(process.cwd(), ctx.flags.corroboration), 'utf8'))) };\n }\n if (typeof ctx.flags.deliverable === 'string') {\n if (!bundle.deliverableFile) {\n ctx.log.error('The bundle names no file deliverable: this seal attests no file to check the given one against.');\n return { success: false };\n }\n input = { ...input, deliverableFile: { ...bundle.deliverableFile, bytes: readFileSync(resolve(process.cwd(), ctx.flags.deliverable)) } };\n }\n if (typeof ctx.flags['manifested-copy'] === 'string') {\n if (!bundle.deliverableFile) {\n ctx.log.error('The bundle names no file deliverable: this seal attests no file a manifested copy could be made of.');\n return { success: false };\n }\n input = { ...input, manifestedCopy: { ...(bundle.manifestedCopy ?? {}), bytes: readFileSync(resolve(process.cwd(), ctx.flags['manifested-copy'])) } };\n }\n if (typeof ctx.flags['subject-record'] === 'string') {\n const record: unknown = JSON.parse(readFileSync(resolve(process.cwd(), ctx.flags['subject-record']), 'utf8'));\n if (record !== null && (typeof record !== 'object' || Array.isArray(record))) {\n ctx.log.error('The subject record must be a JSON object of the record\\'s fields, or null for a record that is gone.');\n return { success: false };\n }\n input = { ...input, subjectRecord: record as Record<string, unknown> | null };\n }\n if (exportPaths) {\n const files = exportPaths.map(readSigningLogExportFile);\n const exportPins = pinSets?.[CryptoKey_Purpose.SIGNING_LOG_EXPORT];\n input = { ...input, signingLogExports: { exports: files.map((file) => file.jws), keys: files.map((file) => file.key), ...(exportPins ? { pins: exportPins } : {}) } };\n }\n } catch (error) {\n ctx.log.error(`Cannot read the pin sets, the corroboration, the deliverable, the manifested copy, the subject record or the signing-log exports: ${ErrorUtils.extractErrorMessage(error)}`);\n return { success: false };\n }\n const result = verifyApprovalSeal(input);\n if (ctx.flags.json === true) {\n writeJsonDocument(result, JsonDocumentLayout.INDENTED);\n return { success: result.valid && result.provable };\n }\n if (!result.valid) {\n ctx.log.error(`${chalk.red('NOT VALID')} — ${result.failures.join(', ')}`);\n if (result.deliverableFile?.standing === ApprovalSealDeliverableFileStanding.CHANGED) {\n ctx.log.error(` deliverable file ${result.deliverableFile.fileId}: the given bytes are NOT the file the person approved`);\n }\n if (result.manifestedCopy?.standing === ApprovalSealDeliverableFileStanding.CHANGED) {\n ctx.log.error(' manifested copy: the given file is NOT this seal\\'s copy of the approved file (its approval page, attached seal or original differs)');\n }\n return { success: false };\n }\n const claims = result.claims!;\n ctx.log.info(`${result.provable ? chalk.green('VALID') : chalk.yellow('VALID, NOT PROVABLE')} — ${claims.source} ${claims.decisionRef} · ${claims.outcome} (${claims.meaning})`);\n ctx.log.info(` subject: ${claims.subject.resourceType}/${claims.subject.resourceId} · tenant ${claims.tenant}`);\n ctx.log.info(` decided: ${new Date(claims.decidedAt * 1000).toISOString()} · signed ${result.signingWindowSeconds ?? '?'} s later${result.lateSeal ? chalk.yellow(' (late seal)') : ''} · key ${result.kid} (${result.keyState})`);\n ctx.log.info(` decider: ${claims.decider.kind} via ${claims.decider.channel}${claims.decider.amr ? ` · amr ${claims.decider.amr.join(',')}` : ''}${claims.decider.stepUpMethod ? ` · step-up ${claims.decider.stepUpMethod}` : ''}${claims.decider.stepUpAt !== undefined ? ` proven ${claims.decidedAt - claims.decider.stepUpAt} s before the decision` : ''}${claims.decider.stepUpUserVerified !== undefined ? ` · user ${claims.decider.stepUpUserVerified ? 'verified' : 'NOT verified'} by the authenticator` : ''}`);\n // #2924: content the seal commits to and the bundle does not give is never a failure. An erasure the bundle states\n // reads UNDISCLOSED (erased) (PRESENTATION_ERASED for what the person was shown); anything else absent, not given.\n const undisclosed = (standing: ApprovalSealDisclosureStanding | undefined, erased: string) =>\n standing === ApprovalSealDisclosureStanding.ERASED ? chalk.dim(erased) : chalk.dim('not given');\n const person = (label: string, standing: typeof result.approver) => {\n if (!standing) return;\n ctx.log.info(` ${label}: ${standing.standing === ApprovalSealDisclosureStanding.DISCLOSED ? JSON.stringify(standing.value) : undisclosed(standing.standing, 'UNDISCLOSED (erased)')}`);\n };\n person('approver', result.approver);\n person('requester', result.requester);\n // #2903 S6: what the person was shown, and what they answered, each against its commitment.\n if (claims.presentation) {\n const shown = result.presentation?.standing === ApprovalSealDisclosureStanding.DISCLOSED ? 'disclosed, matches the seal'\n : undisclosed(result.presentation?.standing, 'PRESENTATION_ERASED (an erasure rewrote the stored presentation; the seal still binds its digest)');\n ctx.log.info(` presentation: ${claims.presentation.provenance} · ${shown}`);\n }\n if (result.deliverableFile) {\n const standing = result.deliverableFile.standing;\n const described = standing === ApprovalSealDeliverableFileStanding.MATCHES ? chalk.green('the given bytes are the file approved')\n : standing === ApprovalSealDeliverableFileStanding.NOT_GIVEN ? chalk.yellow('not given (pass --deliverable <file>)')\n : chalk.dim('nothing to compare with: the presentation is not disclosed, or binds no such file');\n ctx.log.info(` deliverable file ${result.deliverableFile.fileId}${result.deliverableFile.argument ? ` (${result.deliverableFile.argument})` : ''}: ${described}`);\n }\n if (result.manifestedCopy) {\n const standing = result.manifestedCopy.standing;\n const described = standing === ApprovalSealDeliverableFileStanding.MATCHES\n ? chalk.green(`the approved file, with this seal's approval page${result.manifestedCopy.approverName ? ` naming ${result.manifestedCopy.approverName}` : ''}${result.manifestedCopy.locale ? ` (words: ${result.manifestedCopy.locale})` : ''}${result.manifestedCopy.verificationUrl ? `, QR code to ${result.manifestedCopy.verificationUrl}` : ''}`)\n : standing === ApprovalSealDeliverableFileStanding.CONTENT_ERASED ? chalk.dim('CONTENT_ERASED (deleted with the approver\\'s erasure; the seal and the original still prove the approval)')\n : standing === ApprovalSealDeliverableFileStanding.NOT_GIVEN ? chalk.yellow('not given (pass --manifested-copy <file>)')\n : chalk.dim('nothing to compare with: the approver, the presentation or the deliverable\\'s salt is not disclosed');\n ctx.log.info(` manifested copy${result.manifestedCopy.fileId ? ` ${result.manifestedCopy.fileId}` : ''}: ${described}`);\n }\n if (result.subjectRecordCurrency) {\n const currency = result.subjectRecordCurrency;\n const record = currency.subject ? ` ${currency.subject.resourceType}/${currency.subject.resourceId}` : '';\n const moved = (currency.fields ?? []).filter((field) => field.currency !== HumanDecision_PresentedFieldCurrency.CURRENT).map((field) => `${field.key} ${field.currency}`);\n const described = currency.standing === ApprovalSealSubjectCurrency.CURRENT ? chalk.green('CURRENT — every value the approval covers still holds')\n : currency.standing === ApprovalSealSubjectCurrency.NO_LONGER_CURRENT ? chalk.yellow(`NO LONGER CURRENT — ${moved.join(', ')}`)\n : currency.standing === ApprovalSealSubjectCurrency.SUBJECT_GONE ? chalk.yellow('the record is gone')\n : chalk.dim('nothing to compare with: the presentation is not disclosed, or the approval covers no record field');\n ctx.log.info(` currency over the record${record}: ${described}`);\n }\n if (claims.statementDigest) {\n ctx.log.info(` statement: ${result.statement?.standing === ApprovalSealDisclosureStanding.DISCLOSED ? JSON.stringify(result.statement.value) : undisclosed(result.statement?.standing, 'UNDISCLOSED (erased)')}`);\n }\n if (!result.provable) {\n ctx.log.info(chalk.yellow(' The key is compromised: corroborate the decision payload digest with evidence recorded before its compromise instant,'));\n ctx.log.info(chalk.yellow(' or give a signing-log export you kept from before it (--signing-log-exports).'));\n }\n if (result.corroboratedBy) {\n ctx.log.info(` corroborated by: ${result.corroboratedBy === ApprovalSealCorroborationSource.SIGNING_LOG_EXPORT ? 'a signing-log export signed before the compromise' : 'evidence recorded before the compromise'}`);\n }\n ctx.log.info(` decision payload digest: ${result.decisionPayloadDigest}`);\n return { success: result.provable };\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"verify.command.js","sourceRoot":"","sources":["../../../../src/commands/seal/verify.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;A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,CAAC,GAAG,CAAC,oGAAoG,CAAC,CAAC;YACxH,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,6BAA6B,MAAM,KAAK,SAAS,EAAE,CAAC,CAAC;QACpE,CAAC;QACD,IAAI,MAAM,CAAC,eAAe,EAAE,CAAC;YAC3B,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,gBAAgB,MAAM,CAAC,SAAS,EAAE,QAAQ,KAAK,8BAA8B,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,MAAM,CAAC,SAAS,EAAE,QAAQ,EAAE,sBAAsB,CAAC,EAAE,CAAC,CAAC;QACrN,CAAC;QACD,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC;YACrB,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,yHAAyH,CAAC,CAAC,CAAC;YACtJ,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,iFAAiF,CAAC,CAAC,CAAC;QAChH,CAAC;QACD,IAAI,MAAM,CAAC,cAAc,EAAE,CAAC;YAC1B,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,sBAAsB,MAAM,CAAC,cAAc,KAAK,+BAA+B,CAAC,kBAAkB,CAAC,CAAC,CAAC,mDAAmD,CAAC,CAAC,CAAC,yCAAyC,EAAE,CAAC,CAAC;QACvN,CAAC;QACD,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,8BAA8B,MAAM,CAAC,qBAAqB,EAAE,CAAC,CAAC;QAC3E,OAAO,EAAE,OAAO,EAAE,MAAM,CAAC,QAAQ,EAAE,CAAC;IACtC,CAAC;CACF","sourcesContent":["import { createHash } from 'node:crypto';\nimport { readFileSync } from 'node:fs';\nimport { resolve } from 'node:path';\nimport chalk from 'chalk';\nimport { ApprovalSealSubjectCurrency, CryptoKey_Purpose, HumanDecision_PresentedFieldCurrency } from '@wildo-ai/saas-models';\nimport {\n ApprovalSealCorroborationSchema,\n ApprovalSealCorroborationSource,\n ApprovalSealDeliverableFileStanding,\n ApprovalSealDisclosureStanding,\n ApprovalSealVerificationBundleSchema,\n verifyApprovalSeal,\n type ApprovalSealVerificationBundle,\n type ApprovalSealVerificationInput,\n} from '@wildo-ai/platform-config-lib';\n\nimport { BaseCommand } from '~wildo-cli/kernel/base-command';\nimport { JsonDocumentLayout, writeJsonDocument } from '~wildo-cli/kernel/json-document-output';\nimport { CommandCategory } from '~wildo-cli/kernel/types';\nimport type { CommandMeta, CommandContext, CommandResult } from '~wildo-cli/kernel/types';\nimport { ErrorUtils } from '~wildo-cli/infrastructure/errors/error.utils';\nimport { parseCsvFlag } from '~wildo-cli/kernel/flag-utils';\nimport { readPinSetsFile, readSigningLogExportFile } from './signing-log-files.utils';\n\n/**\n * The vendor-signed copies to verify (#2907): each given file paired with the bundle entry whose recorded hash it has,\n * so the entry's stated lineage is checked with it and the verifier can say the host records that exact copy. A host\n * whose file row for a copy is gone names it with no hash: when exactly one such entry and exactly one unpaired file\n * remain, they are paired, so the entry's lineage is still checked (the copy is then reported not recorded, since no\n * hash ties those bytes to the row). Any other given file is checked from its bytes alone and reported with no file id\n * and not recorded. Every named entry no file was paired with is passed as it is, and reported not given.\n */\nexport function vendorSignedCopyInputsOf(\n named: NonNullable<ApprovalSealVerificationBundle['vendorSignedCopies']>,\n given: readonly Buffer[],\n): NonNullable<ApprovalSealVerificationInput['vendorSignedCopies']> {\n const used = new Set<number>();\n const pairedWith = given.map((bytes) => {\n const hash = createHash('sha256').update(bytes).digest('hex');\n const index = named.findIndex((entry, at) => !used.has(at) && entry.contentSha256 === hash);\n if (index >= 0) used.add(index);\n return index;\n });\n const unpairedFiles = pairedWith.flatMap((index, at) => (index < 0 ? [at] : []));\n const hashlessEntries = named.flatMap((entry, at) => (!used.has(at) && entry.contentSha256 === undefined ? [at] : []));\n if (unpairedFiles.length === 1 && hashlessEntries.length === 1) {\n pairedWith[unpairedFiles[0]!] = hashlessEntries[0]!;\n used.add(hashlessEntries[0]!);\n }\n const inputs = given.map((bytes, at) => (pairedWith[at]! >= 0 ? { ...named[pairedWith[at]!]!, bytes } : { bytes }));\n return [...inputs, ...named.filter((_, at) => !used.has(at))];\n}\n\n/**\n * `wildo seal verify <bundle.json>` — verify one approval seal OFFLINE (#2903): the bundle carries the compact JWS, the\n * stored records of the keys that may have signed it (scope and issuer included, as an export carries them), and\n * optionally the disclosures. Nothing is called: it verifies after the application is gone. Exits non-zero on a seal\n * that does not verify, or one that is valid and not provable.\n *\n * The bundle is the host's file, so the operator adds what the host cannot vouch for itself (#2932): `--pins`, its pin\n * sets file (the seal key is trusted only when pinned, and its state is the pin's); `--signing-log-exports`, the exports\n * it kept, which corroborate a seal under a key compromised after an export that lists it; and `--corroboration`, a\n * decision digest recorded elsewhere before the compromise (an exported audit row, an immutable sink).\n *\n * A seal that attests a FILE deliverable (#2904) names it in the bundle with the salt its commitment was made with;\n * `--deliverable <path>` gives the file's bytes, checked against the commitment the presentation binds: one changed byte\n * and the seal does not verify. Without it the file is reported as not given.\n *\n * Such a deliverable may have a MANIFESTED COPY (#2907): the original followed by a page naming who approved it, with the\n * JWS attached. `--manifested-copy <path>` checks it: rebuilt from its own prefix, the JWS and the disclosed approver's\n * name, then its prefix opened against the seal's commitment. One changed byte in the approval page and the seal does\n * not verify. A copy the approver's erasure deleted is reported as erased content, never as missing.\n *\n * The same original may also have VENDOR-SIGNED COPIES (#2907's document chain, #2293): the bundle names each with the\n * file its row says it derives from. `--vendor-signed-copy <path>` (repeatable) checks one: its first revision, ending at\n * a `%%EOF`, must be the approved file, and the command reports which original it derives from. A copy whose row names\n * another original, whose bytes are not the ones its row hashed, or that does not start with the approved file, fails\n * the seal. Only a copy the host RECORDS (named, with these exact bytes) is reported as the signed copy whose vendor\n * signature was validated at receipt (that evidence is the signature request's, not the seal's); a copy the host does\n * not record is reported as starting with the approved file, and nothing more.\n *\n * Whether the approval is still CURRENT over its record (#2914): `--subject-record <record.json>` gives the record as it\n * is now (its fields, as an export of the record states them; `null` for a record that is gone). The values of the\n * fields the approval covers, as the disclosed presentation carries them, are compared with it. A record changed since\n * is reported NO LONGER CURRENT and is not a failure: the seal still proves what was approved.\n */\nexport default class SealVerifyCommand extends BaseCommand {\n readonly meta: CommandMeta = {\n name: 'seal verify',\n description: 'Verify one approval seal offline from a bundle file ({ jws, keys, expectedIssuer?, disclosures?, erasedClaims?, deliverableFile?, manifestedCopy?, vendorSignedCopies? }), with your own pins, kept exports, corroboration, the approved file, its manifested copy and its vendor-signed copies.',\n category: CommandCategory.Core,\n args: [{ name: 'bundle', description: 'Path to the JSON bundle.', required: true }],\n flags: {\n json: { type: 'boolean', description: 'Print the verification as JSON.' },\n pins: { type: 'string', description: 'The operator\\'s pin sets file ({ \"approval_seal\": { \"keys\": [...] }, \"signing_log_export\": ... }).' },\n corroboration: { type: 'string', description: 'A file { decisionPayloadDigest, recordedAt }: the decision\\'s digest, recorded outside the application before the compromise.' },\n 'signing-log-exports': { type: 'string[]', description: 'Signing-log exports the operator kept (`wildo seal log-export`), to corroborate a seal under a compromised key.' },\n deliverable: { type: 'string', description: 'The file the seal attests as the approved deliverable (#2904): its bytes are checked against the seal\\'s commitment.' },\n 'manifested-copy': { type: 'string', description: 'The approved deliverable\\'s manifested copy (#2907): its approval page and attached seal are rebuilt and compared, and what precedes them checked against the seal\\'s commitment.' },\n 'vendor-signed-copy': { type: 'string[]', description: 'Copies of the approved deliverable an electronic-signature vendor signed (#2907): each one\\'s first revision is checked against the seal\\'s commitment, and the original it derives from is reported.' },\n 'subject-record': { type: 'string', description: 'The record the approval is about, as it is now (a JSON object of its fields, or null when gone) (#2914): reports whether the approval is still current over it.' },\n },\n };\n\n async run(ctx: CommandContext): Promise<CommandResult> {\n const path = ctx.args.bundle;\n if (!path) {\n ctx.log.error('Missing required <bundle> argument.');\n return { success: false };\n }\n let bundle;\n try {\n bundle = ApprovalSealVerificationBundleSchema.parse(JSON.parse(readFileSync(resolve(process.cwd(), path), 'utf8')));\n } catch (error) {\n ctx.log.error(`Cannot read the bundle ${path}: ${ErrorUtils.extractErrorMessage(error)}`);\n return { success: false };\n }\n // The bundle is the host's; the pins and the kept exports come only from the operator's own files (#2932 review H1).\n // A pin file that does not pin the purpose being checked is refused rather than silently ignored (review L1).\n let input: ApprovalSealVerificationInput = bundle;\n try {\n const pinSets = typeof ctx.flags.pins === 'string' ? readPinSetsFile(ctx.flags.pins) : undefined;\n const exportPaths = parseCsvFlag(ctx.flags['signing-log-exports']);\n if (pinSets) {\n const sealPins = pinSets[CryptoKey_Purpose.APPROVAL_SEAL];\n if (!sealPins) {\n ctx.log.error(`The pin sets file pins no ${CryptoKey_Purpose.APPROVAL_SEAL} key: nothing would be checked against it.`);\n return { success: false };\n }\n if (exportPaths && !pinSets[CryptoKey_Purpose.SIGNING_LOG_EXPORT]) {\n ctx.log.error(`The pin sets file pins no ${CryptoKey_Purpose.SIGNING_LOG_EXPORT} key: the exports could not be checked against it.`);\n return { success: false };\n }\n input = { ...input, pins: sealPins };\n }\n if (typeof ctx.flags.corroboration === 'string') {\n input = { ...input, corroboration: ApprovalSealCorroborationSchema.parse(JSON.parse(readFileSync(resolve(process.cwd(), ctx.flags.corroboration), 'utf8'))) };\n }\n if (typeof ctx.flags.deliverable === 'string') {\n if (!bundle.deliverableFile) {\n ctx.log.error('The bundle names no file deliverable: this seal attests no file to check the given one against.');\n return { success: false };\n }\n input = { ...input, deliverableFile: { ...bundle.deliverableFile, bytes: readFileSync(resolve(process.cwd(), ctx.flags.deliverable)) } };\n }\n if (typeof ctx.flags['manifested-copy'] === 'string') {\n if (!bundle.deliverableFile) {\n ctx.log.error('The bundle names no file deliverable: this seal attests no file a manifested copy could be made of.');\n return { success: false };\n }\n input = { ...input, manifestedCopy: { ...(bundle.manifestedCopy ?? {}), bytes: readFileSync(resolve(process.cwd(), ctx.flags['manifested-copy'])) } };\n }\n const vendorCopyPaths = parseCsvFlag(ctx.flags['vendor-signed-copy']);\n if (vendorCopyPaths) {\n if (!bundle.deliverableFile) {\n ctx.log.error('The bundle names no file deliverable: this seal attests no file a vendor could have signed a copy of.');\n return { success: false };\n }\n input = { ...input, vendorSignedCopies: vendorSignedCopyInputsOf(bundle.vendorSignedCopies ?? [], vendorCopyPaths.map((copyPath) => readFileSync(resolve(process.cwd(), copyPath)))) };\n }\n if (typeof ctx.flags['subject-record'] === 'string') {\n const record: unknown = JSON.parse(readFileSync(resolve(process.cwd(), ctx.flags['subject-record']), 'utf8'));\n if (record !== null && (typeof record !== 'object' || Array.isArray(record))) {\n ctx.log.error('The subject record must be a JSON object of the record\\'s fields, or null for a record that is gone.');\n return { success: false };\n }\n input = { ...input, subjectRecord: record as Record<string, unknown> | null };\n }\n if (exportPaths) {\n const files = exportPaths.map(readSigningLogExportFile);\n const exportPins = pinSets?.[CryptoKey_Purpose.SIGNING_LOG_EXPORT];\n input = { ...input, signingLogExports: { exports: files.map((file) => file.jws), keys: files.map((file) => file.key), ...(exportPins ? { pins: exportPins } : {}) } };\n }\n } catch (error) {\n ctx.log.error(`Cannot read the pin sets, the corroboration, the deliverable, the manifested copy, the subject record or the signing-log exports: ${ErrorUtils.extractErrorMessage(error)}`);\n return { success: false };\n }\n const result = verifyApprovalSeal(input);\n if (ctx.flags.json === true) {\n writeJsonDocument(result, JsonDocumentLayout.INDENTED);\n return { success: result.valid && result.provable };\n }\n if (!result.valid) {\n ctx.log.error(`${chalk.red('NOT VALID')} — ${result.failures.join(', ')}`);\n if (result.deliverableFile?.standing === ApprovalSealDeliverableFileStanding.CHANGED) {\n ctx.log.error(` deliverable file ${result.deliverableFile.fileId}: the given bytes are NOT the file the person approved`);\n }\n if (result.manifestedCopy?.standing === ApprovalSealDeliverableFileStanding.CHANGED) {\n ctx.log.error(' manifested copy: the given file is NOT this seal\\'s copy of the approved file (its approval page, attached seal or original differs)');\n }\n for (const copy of result.vendorSignedCopies ?? []) {\n if (copy.standing === ApprovalSealDeliverableFileStanding.DERIVED_FROM_ANOTHER_FILE) {\n ctx.log.error(` vendor-signed copy${copy.fileId ? ` ${copy.fileId}` : ''}: derived from ${copy.statedDerivedFromFileId}, NOT from the file this seal approved`);\n } else if (copy.standing === ApprovalSealDeliverableFileStanding.CHANGED) {\n ctx.log.error(` vendor-signed copy${copy.fileId ? ` ${copy.fileId}` : ''}: does NOT start with the approved file (or is not the file its record names)`);\n }\n }\n return { success: false };\n }\n const claims = result.claims!;\n ctx.log.info(`${result.provable ? chalk.green('VALID') : chalk.yellow('VALID, NOT PROVABLE')} — ${claims.source} ${claims.decisionRef} · ${claims.outcome} (${claims.meaning})`);\n ctx.log.info(` subject: ${claims.subject.resourceType}/${claims.subject.resourceId} · tenant ${claims.tenant}`);\n ctx.log.info(` decided: ${new Date(claims.decidedAt * 1000).toISOString()} · signed ${result.signingWindowSeconds ?? '?'} s later${result.lateSeal ? chalk.yellow(' (late seal)') : ''} · key ${result.kid} (${result.keyState})`);\n ctx.log.info(` decider: ${claims.decider.kind} via ${claims.decider.channel}${claims.decider.amr ? ` · amr ${claims.decider.amr.join(',')}` : ''}${claims.decider.stepUpMethod ? ` · step-up ${claims.decider.stepUpMethod}` : ''}${claims.decider.stepUpAt !== undefined ? ` proven ${claims.decidedAt - claims.decider.stepUpAt} s before the decision` : ''}${claims.decider.stepUpUserVerified !== undefined ? ` · user ${claims.decider.stepUpUserVerified ? 'verified' : 'NOT verified'} by the authenticator` : ''}`);\n // #2924: content the seal commits to and the bundle does not give is never a failure. An erasure the bundle states\n // reads UNDISCLOSED (erased) (PRESENTATION_ERASED for what the person was shown); anything else absent, not given.\n const undisclosed = (standing: ApprovalSealDisclosureStanding | undefined, erased: string) =>\n standing === ApprovalSealDisclosureStanding.ERASED ? chalk.dim(erased) : chalk.dim('not given');\n const person = (label: string, standing: typeof result.approver) => {\n if (!standing) return;\n ctx.log.info(` ${label}: ${standing.standing === ApprovalSealDisclosureStanding.DISCLOSED ? JSON.stringify(standing.value) : undisclosed(standing.standing, 'UNDISCLOSED (erased)')}`);\n };\n person('approver', result.approver);\n person('requester', result.requester);\n // #2903 S6: what the person was shown, and what they answered, each against its commitment.\n if (claims.presentation) {\n const shown = result.presentation?.standing === ApprovalSealDisclosureStanding.DISCLOSED ? 'disclosed, matches the seal'\n : undisclosed(result.presentation?.standing, 'PRESENTATION_ERASED (an erasure rewrote the stored presentation; the seal still binds its digest)');\n ctx.log.info(` presentation: ${claims.presentation.provenance} · ${shown}`);\n }\n if (result.deliverableFile) {\n const standing = result.deliverableFile.standing;\n const described = standing === ApprovalSealDeliverableFileStanding.MATCHES ? chalk.green('the given bytes are the file approved')\n : standing === ApprovalSealDeliverableFileStanding.NOT_GIVEN ? chalk.yellow('not given (pass --deliverable <file>)')\n : chalk.dim('nothing to compare with: the presentation is not disclosed, or binds no such file');\n ctx.log.info(` deliverable file ${result.deliverableFile.fileId}${result.deliverableFile.argument ? ` (${result.deliverableFile.argument})` : ''}: ${described}`);\n }\n if (result.manifestedCopy) {\n const standing = result.manifestedCopy.standing;\n const described = standing === ApprovalSealDeliverableFileStanding.MATCHES\n ? chalk.green(`the approved file, with this seal's approval page${result.manifestedCopy.approverName ? ` naming ${result.manifestedCopy.approverName}` : ''}${result.manifestedCopy.locale ? ` (words: ${result.manifestedCopy.locale})` : ''}${result.manifestedCopy.verificationUrl ? `, QR code to ${result.manifestedCopy.verificationUrl}` : ''}`)\n : standing === ApprovalSealDeliverableFileStanding.CONTENT_ERASED ? chalk.dim('CONTENT_ERASED (deleted with the approver\\'s erasure; the seal and the original still prove the approval)')\n : standing === ApprovalSealDeliverableFileStanding.NOT_GIVEN ? chalk.yellow('not given (pass --manifested-copy <file>)')\n : chalk.dim('nothing to compare with: the approver, the presentation or the deliverable\\'s salt is not disclosed');\n ctx.log.info(` manifested copy${result.manifestedCopy.fileId ? ` ${result.manifestedCopy.fileId}` : ''}: ${described}`);\n }\n for (const copy of result.vendorSignedCopies ?? []) {\n const described = copy.standing === ApprovalSealDeliverableFileStanding.MATCHES\n ? copy.recordedByHost\n ? chalk.green(`derived from the approved file ${copy.derivesFromFileId}: its first ${copy.originalLength} bytes are that file, and it is the signed copy the host recorded (the vendor's signature was validated at receipt; see the signature request's validation evidence)`)\n : chalk.yellow(`starts with the approved file ${copy.derivesFromFileId} (its first ${copy.originalLength} bytes), but the host records no such copy: nothing here says what follows is a vendor's signature`)\n : copy.standing === ApprovalSealDeliverableFileStanding.NOT_GIVEN ? chalk.yellow('not given (pass --vendor-signed-copy <file>)')\n : chalk.dim('nothing to compare with: the presentation or the deliverable\\'s salt is not disclosed');\n ctx.log.info(` vendor-signed copy${copy.fileId ? ` ${copy.fileId}` : ''}: ${described}`);\n }\n if (result.subjectRecordCurrency) {\n const currency = result.subjectRecordCurrency;\n const record = currency.subject ? ` ${currency.subject.resourceType}/${currency.subject.resourceId}` : '';\n const moved = (currency.fields ?? []).filter((field) => field.currency !== HumanDecision_PresentedFieldCurrency.CURRENT).map((field) => `${field.key} ${field.currency}`);\n const described = currency.standing === ApprovalSealSubjectCurrency.CURRENT ? chalk.green('CURRENT — every value the approval covers still holds')\n : currency.standing === ApprovalSealSubjectCurrency.NO_LONGER_CURRENT ? chalk.yellow(`NO LONGER CURRENT — ${moved.join(', ')}`)\n : currency.standing === ApprovalSealSubjectCurrency.SUBJECT_GONE ? chalk.yellow('the record is gone')\n : chalk.dim('nothing to compare with: the presentation is not disclosed, or the approval covers no record field');\n ctx.log.info(` currency over the record${record}: ${described}`);\n }\n if (claims.statementDigest) {\n ctx.log.info(` statement: ${result.statement?.standing === ApprovalSealDisclosureStanding.DISCLOSED ? JSON.stringify(result.statement.value) : undisclosed(result.statement?.standing, 'UNDISCLOSED (erased)')}`);\n }\n if (!result.provable) {\n ctx.log.info(chalk.yellow(' The key is compromised: corroborate the decision payload digest with evidence recorded before its compromise instant,'));\n ctx.log.info(chalk.yellow(' or give a signing-log export you kept from before it (--signing-log-exports).'));\n }\n if (result.corroboratedBy) {\n ctx.log.info(` corroborated by: ${result.corroboratedBy === ApprovalSealCorroborationSource.SIGNING_LOG_EXPORT ? 'a signing-log export signed before the compromise' : 'evidence recorded before the compromise'}`);\n }\n ctx.log.info(` decision payload digest: ${result.decisionPayloadDigest}`);\n return { success: result.provable };\n }\n}\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RuntimeEnvironment } from '@wildo-ai/saas-models';
|
|
2
|
-
import { type AdminAppManagedDeclaration, type AppBootstrapCredentials, type AppBootstrapFirstAdminSeed, type ApplicationBackingServiceAddressing, type ApplicationSigningKeyPromoteRequest, type ApplicationSigningKeyStageRequest, type ApplicationSigningKeyRotationRequest, type ApplicationSigningKeyRotationResponse, type ApplicationSigningKeysStatus, type ApplicationLegacyEnvelopeKeyResponse, type ApplicationLegacyEnvelopeKeyRestoreRequest, type ApplicationLegacyEnvelopeKeyRetirementRequest, type ApplicationLegacyEnvelopeKeyStatus, type KeyringRotationRequest, type KeyringStatus, type RegistryKeyMintRequest, type RegistryKeyListResponse, type RegistryKeyMintResponse, type AdminAppReapplyDeclarationResponse, type ApplicationRuntimePrincipal, DatabaseEngine, AppDatabaseSeedingPhase, AppDatabaseSeedingOutcome, type BackingServiceKind } from '@wildo-ai/platform-config-lib';
|
|
2
|
+
import { type AdminAppManagedDeclaration, type AppBootstrapCredentials, type AppBootstrapFirstAdminSeed, type ApplicationBackingServiceAddressing, type ApplicationSigningKeyPromoteRequest, type ApplicationSigningKeyStageRequest, type ApplicationSigningKeyRotationRequest, type ApplicationSigningKeyRotationResponse, type ApplicationSigningKeysStatus, type ApplicationLegacyEnvelopeKeyResponse, type ApplicationLegacyEnvelopeKeyRestoreRequest, type ApplicationLegacyEnvelopeKeyRetirementRequest, type ApplicationLegacyEnvelopeKeyStatus, type KeyringRotationRequest, type KeyringStatus, type RegistryKeyMintRequest, type RegistryKeyListResponse, type RegistryKeyMintResponse, type AdminAppReapplyDeclarationResponse, type ApplicationScheduledJobsResponse, type ApplicationScheduledJobRunRequest, type ApplicationScheduledJobRunResponse, type ApplicationRuntimePrincipal, DatabaseEngine, AppDatabaseSeedingPhase, AppDatabaseSeedingOutcome, type BackingServiceKind } from '@wildo-ai/platform-config-lib';
|
|
3
3
|
import type { PlatformEnvSecretsJson } from '../../services/credentials/credentials.schemas';
|
|
4
4
|
import type { PlatformEnvConfigJson } from '../../services/credentials/credentials.schemas';
|
|
5
5
|
import type { PlatformEnvironmentConfiguration } from '../../services/environment/environment.schemas';
|
|
@@ -96,9 +96,22 @@ export interface PreparedApplicationEnvTargets {
|
|
|
96
96
|
* existing `.env` files are left untouched.
|
|
97
97
|
*/
|
|
98
98
|
unresolvedPrincipals?: string[];
|
|
99
|
+
/**
|
|
100
|
+
* The runtime endpoints the application's runtimes receive. While a local tunnel is live (#3907) the tunnel's frontend
|
|
101
|
+
* has the public origin as its `publicUrl` and its local origin in `additionalBrowserOrigins`.
|
|
102
|
+
*/
|
|
99
103
|
runtimeEndpoints: Record<string, {
|
|
100
104
|
publicUrl: string;
|
|
101
105
|
internalUrl: string;
|
|
106
|
+
additionalBrowserOrigins?: string[];
|
|
107
|
+
}>;
|
|
108
|
+
/**
|
|
109
|
+
* The same endpoints WITHOUT the tunnel: the companion's. A tunnel coming up or down must never restart the companion
|
|
110
|
+
* under a live run (#3493), and nothing the companion does needs the public origin.
|
|
111
|
+
*/
|
|
112
|
+
companionRuntimeEndpoints: Record<string, {
|
|
113
|
+
publicUrl: string;
|
|
114
|
+
internalUrl: string;
|
|
102
115
|
}>;
|
|
103
116
|
/**
|
|
104
117
|
* The environment resolved during preparation, carried so per-runtime
|
|
@@ -170,6 +183,13 @@ export interface ApplicationDeregistrationResponse {
|
|
|
170
183
|
withdrawnJobs: number;
|
|
171
184
|
deletedExecutions: number;
|
|
172
185
|
revokedCredentials: ApplicationCredentialReportEntry[];
|
|
186
|
+
/**
|
|
187
|
+
* Broker credentials no running broker could revoke (#2303 slice D): minted before the platform moved to a profile that
|
|
188
|
+
* runs no broker. Absent when there are none; each names its remedy.
|
|
189
|
+
*/
|
|
190
|
+
unreachableCredentials?: Array<ApplicationCredentialReportEntry & {
|
|
191
|
+
reason: string;
|
|
192
|
+
}>;
|
|
173
193
|
}
|
|
174
194
|
/** `POST /admin/apps/:appSlug/restore` — the restore and every credential it re-minted. */
|
|
175
195
|
export interface ApplicationRestoreResponse {
|
|
@@ -201,6 +221,12 @@ export declare class AppBootstrapService {
|
|
|
201
221
|
* entry falls back to normal nginx-pod serving (never silently drops a route).
|
|
202
222
|
*/
|
|
203
223
|
private static cdnFrontendKeys;
|
|
224
|
+
/**
|
|
225
|
+
* The runtime endpoints, and the same endpoints with a live local tunnel applied (#3907). Only a LOCAL environment can
|
|
226
|
+
* have a tunnel; a state file whose process is not running is ignored and named, so a crash or a reboot never leaves a
|
|
227
|
+
* dead issuer advertised. See `local-tunnel.service.ts`.
|
|
228
|
+
*/
|
|
229
|
+
private static buildRuntimeEndpointsWithTunnel;
|
|
204
230
|
private static buildRuntimeEndpoints;
|
|
205
231
|
/**
|
|
206
232
|
* serviceHosts-driven ingress routes for the app's public services — the
|
|
@@ -478,6 +504,20 @@ export declare class AppBootstrapService {
|
|
|
478
504
|
static inspectApplicationResidue(env: PlatformEnvironmentConfiguration, credentials: PlatformEnvSecretsJson, input: {
|
|
479
505
|
appSlug: string;
|
|
480
506
|
}): Promise<ApplicationResidueResponse>;
|
|
507
|
+
/**
|
|
508
|
+
* GET /admin/apps/:appSlug/scheduled-jobs (#4006) — the jobs the crontabs manager holds for this application, each with
|
|
509
|
+
* the selector `wildo local jobs run` takes, beside the platform-wide total (an empty list beside a zero total says the
|
|
510
|
+
* scheduler holds nothing for anyone).
|
|
511
|
+
*/
|
|
512
|
+
static listApplicationScheduledJobs(env: PlatformEnvironmentConfiguration, credentials: PlatformEnvSecretsJson, appSlug: string): Promise<ApplicationScheduledJobsResponse>;
|
|
513
|
+
/**
|
|
514
|
+
* POST /admin/apps/:appSlug/scheduled-jobs/run (#4006) — run one of the application's jobs now, once. Not re-sent on a
|
|
515
|
+
* failed answer as the signing-key doors are: a manual trigger carries no occurrence id the crontabs manager could
|
|
516
|
+
* deduplicate by, so a re-send whose first attempt landed would run the job twice. One residual, stated rather than
|
|
517
|
+
* hidden: `fetchWithReconnect` re-sends a request whose connection failed, and a connection that drops AFTER apps-manager
|
|
518
|
+
* forwarded the trigger is such a failure, so that rare case can run the job twice (each run is an audit row).
|
|
519
|
+
*/
|
|
520
|
+
static runApplicationScheduledJob(env: PlatformEnvironmentConfiguration, credentials: PlatformEnvSecretsJson, appSlug: string, request: ApplicationScheduledJobRunRequest): Promise<ApplicationScheduledJobRunResponse>;
|
|
481
521
|
/**
|
|
482
522
|
* POST /admin/apps/:appSlug/deregister
|
|
483
523
|
*
|