@wildo-ai/wildo-cli 1.1.13 → 1.1.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/commands/build/approve.command.d.ts +4 -0
- package/dist/src/commands/build/approve.command.d.ts.map +1 -1
- package/dist/src/commands/build/approve.command.js +14 -3
- package/dist/src/commands/build/approve.command.js.map +1 -1
- package/dist/src/commands/build/close.command.d.ts +4 -0
- package/dist/src/commands/build/close.command.d.ts.map +1 -1
- package/dist/src/commands/build/close.command.js +17 -3
- package/dist/src/commands/build/close.command.js.map +1 -1
- package/dist/src/commands/config/sync.command.d.ts.map +1 -1
- package/dist/src/commands/config/sync.command.js +21 -1
- package/dist/src/commands/config/sync.command.js.map +1 -1
- package/dist/src/commands/creation/feed.command.d.ts.map +1 -1
- package/dist/src/commands/creation/feed.command.js +6 -3
- package/dist/src/commands/creation/feed.command.js.map +1 -1
- package/dist/src/commands/fwk/publish-all.command.d.ts +13 -0
- package/dist/src/commands/fwk/publish-all.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/publish-all.command.js +57 -3
- package/dist/src/commands/fwk/publish-all.command.js.map +1 -1
- package/dist/src/commands/fwk/publish-docker.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/publish-docker.command.js +16 -1
- package/dist/src/commands/fwk/publish-docker.command.js.map +1 -1
- package/dist/src/commands/fwk/registry-host.command.d.ts +19 -1
- package/dist/src/commands/fwk/registry-host.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/registry-host.command.js +78 -3
- package/dist/src/commands/fwk/registry-host.command.js.map +1 -1
- package/dist/src/commands/init.command.d.ts +14 -0
- package/dist/src/commands/init.command.d.ts.map +1 -1
- package/dist/src/commands/init.command.js +29 -3
- package/dist/src/commands/init.command.js.map +1 -1
- package/dist/src/commands/registry/repair-lockfile.command.d.ts.map +1 -1
- package/dist/src/commands/registry/repair-lockfile.command.js +1 -0
- package/dist/src/commands/registry/repair-lockfile.command.js.map +1 -1
- package/dist/src/commands/registry/update.command.d.ts.map +1 -1
- package/dist/src/commands/registry/update.command.js +1 -0
- package/dist/src/commands/registry/update.command.js.map +1 -1
- package/dist/src/commands/seal/verify.command.d.ts +18 -0
- package/dist/src/commands/seal/verify.command.d.ts.map +1 -1
- package/dist/src/commands/seal/verify.command.js +62 -1
- package/dist/src/commands/seal/verify.command.js.map +1 -1
- package/dist/src/services/application/provider-runtime-sync.service.d.ts.map +1 -1
- package/dist/src/services/application/provider-runtime-sync.service.js +26 -1
- package/dist/src/services/application/provider-runtime-sync.service.js.map +1 -1
- package/dist/src/services/application/saas-skeleton.service.d.ts.map +1 -1
- package/dist/src/services/application/saas-skeleton.service.js +24 -2
- package/dist/src/services/application/saas-skeleton.service.js.map +1 -1
- package/dist/src/services/companion/build-console.service.d.ts +39 -2
- package/dist/src/services/companion/build-console.service.d.ts.map +1 -1
- package/dist/src/services/companion/build-console.service.js +54 -4
- package/dist/src/services/companion/build-console.service.js.map +1 -1
- package/dist/src/services/companion/creation-console.service.d.ts +6 -1
- package/dist/src/services/companion/creation-console.service.d.ts.map +1 -1
- package/dist/src/services/companion/creation-console.service.js +14 -2
- package/dist/src/services/companion/creation-console.service.js.map +1 -1
- package/dist/src/services/companion/creation-drive.service.d.ts.map +1 -1
- package/dist/src/services/companion/creation-drive.service.js +5 -2
- package/dist/src/services/companion/creation-drive.service.js.map +1 -1
- package/dist/src/services/credentials/composed-provider-catalogue.d.ts.map +1 -1
- package/dist/src/services/credentials/composed-provider-catalogue.js +14 -2
- package/dist/src/services/credentials/composed-provider-catalogue.js.map +1 -1
- package/dist/src/services/credentials/secret-requirements.service.d.ts +2 -1
- package/dist/src/services/credentials/secret-requirements.service.d.ts.map +1 -1
- package/dist/src/services/credentials/secret-requirements.service.js +17 -1
- package/dist/src/services/credentials/secret-requirements.service.js.map +1 -1
- package/dist/src/services/deployment/application-runtime-environment.d.ts.map +1 -1
- package/dist/src/services/deployment/application-runtime-environment.js +3 -13
- package/dist/src/services/deployment/application-runtime-environment.js.map +1 -1
- package/dist/src/services/deployment/docker/docker-compose-generator.service.d.ts.map +1 -1
- package/dist/src/services/deployment/docker/docker-compose-generator.service.js +8 -2
- package/dist/src/services/deployment/docker/docker-compose-generator.service.js.map +1 -1
- package/dist/src/services/deployment/host-toolchain-readiness.service.d.ts +1 -1
- package/dist/src/services/deployment/host-toolchain-readiness.service.js +1 -1
- package/dist/src/services/deployment/host-toolchain-readiness.service.js.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.js +3 -1
- package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.js.map +1 -1
- package/dist/src/services/deployment/local-precondition-checks.service.d.ts.map +1 -1
- package/dist/src/services/deployment/local-precondition-checks.service.js +4 -2
- package/dist/src/services/deployment/local-precondition-checks.service.js.map +1 -1
- package/dist/src/services/environment/env-configuration-generator.service.d.ts.map +1 -1
- package/dist/src/services/environment/env-configuration-generator.service.js +8 -3
- package/dist/src/services/environment/env-configuration-generator.service.js.map +1 -1
- package/dist/src/services/environment/environment-service-profile.utils.d.ts +8 -1
- package/dist/src/services/environment/environment-service-profile.utils.d.ts.map +1 -1
- package/dist/src/services/environment/environment-service-profile.utils.js +14 -1
- package/dist/src/services/environment/environment-service-profile.utils.js.map +1 -1
- package/dist/src/services/framework/framework-docker-publish.service.d.ts +89 -0
- package/dist/src/services/framework/framework-docker-publish.service.d.ts.map +1 -1
- package/dist/src/services/framework/framework-docker-publish.service.js +180 -18
- package/dist/src/services/framework/framework-docker-publish.service.js.map +1 -1
- package/dist/src/services/framework/github-actions-annotation.d.ts +19 -0
- package/dist/src/services/framework/github-actions-annotation.d.ts.map +1 -0
- package/dist/src/services/framework/github-actions-annotation.js +25 -0
- package/dist/src/services/framework/github-actions-annotation.js.map +1 -0
- package/dist/src/services/framework/registry-host/registry-host-upgrade.d.ts +43 -0
- package/dist/src/services/framework/registry-host/registry-host-upgrade.d.ts.map +1 -0
- package/dist/src/services/framework/registry-host/registry-host-upgrade.js +117 -0
- package/dist/src/services/framework/registry-host/registry-host-upgrade.js.map +1 -0
- package/dist/src/services/framework/registry-host/registry-host.service.d.ts +1 -1
- package/dist/src/services/framework/registry-host/registry-host.service.d.ts.map +1 -1
- package/dist/src/services/framework/registry-host/registry-host.service.js +2 -0
- package/dist/src/services/framework/registry-host/registry-host.service.js.map +1 -1
- package/dist/src/services/registry/installed-file-state.utils.d.ts +8 -0
- package/dist/src/services/registry/installed-file-state.utils.d.ts.map +1 -1
- package/dist/src/services/registry/installed-file-state.utils.js +9 -1
- package/dist/src/services/registry/installed-file-state.utils.js.map +1 -1
- package/dist/src/services/registry/module-install.service.d.ts.map +1 -1
- package/dist/src/services/registry/module-install.service.js +1 -0
- package/dist/src/services/registry/module-install.service.js.map +1 -1
- package/dist/src/services/registry/provider-module-scaffold.service.d.ts.map +1 -1
- package/dist/src/services/registry/provider-module-scaffold.service.js +4 -0
- package/dist/src/services/registry/provider-module-scaffold.service.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/framework-root-package.json +3 -3
- package/package.json +22 -22
- package/scripts/app-dependency-alignment/propagated-engine-overrides.json +1 -1
- package/templates/infra/docker-compose/docker-compose.wildo-platform.yml.hbs +17 -2
- package/templates/infra/registry-host/docker-compose.yml +9 -2
- package/templates/infra/registry-host/upgrade-image.sh +108 -0
- package/templates/saas/i18n/email/resources/dataSubjectRequests/create.users-custom_ready/labels.fr.ts +22 -0
- package/templates/saas/i18n/email/resources/dataSubjectRequests/create.users-custom_received/labels.fr.ts +23 -0
- package/templates/saas/i18n/email/resources/dataSubjectRequests/update.users-custom_extended/labels.fr.ts +23 -0
- package/templates/saas/i18n/email/resources/organizationSsoConfig/repairUnreadableConfiguration.organization-users/labels.fr.ts +23 -0
- package/templates/saas/i18n/engine/components/HIGH_LEVEL_VIEWS_CHART_DASHBOARD_LAYOUT_EDITOR.en.ts +28 -0
- package/templates/saas/i18n/engine/components/HIGH_LEVEL_VIEWS_CHART_DASHBOARD_LAYOUT_EDITOR.fr.ts +28 -0
- package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_APPROVAL.en.ts +2 -1
- package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_APPROVAL.fr.ts +2 -1
- package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_CONVERSATION_THREAD.en.ts +6 -1
- package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_CONVERSATION_THREAD.fr.ts +6 -1
- package/templates/saas/i18n/engine/components/LOW_LEVEL_APPROVAL_SEAL.en.ts +40 -0
- package/templates/saas/i18n/engine/components/LOW_LEVEL_APPROVAL_SEAL.fr.ts +40 -0
- package/templates/saas/i18n/engine/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.ts +2 -1
- package/templates/saas/i18n/engine/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.fr.ts +2 -1
- package/templates/saas/i18n/engine/components/LOW_LEVEL_FORM_FIELD_STRING.en.ts +2 -1
- package/templates/saas/i18n/engine/components/LOW_LEVEL_FORM_FIELD_STRING.fr.ts +2 -1
- package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.ts +2 -1
- package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.fr.ts +2 -1
- package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_TERMS.en.ts +3 -1
- package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_TERMS.fr.ts +3 -1
- package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_USER_AUTH.en.ts +2 -1
- package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_USER_AUTH.fr.ts +2 -1
- package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_FILTERS.en.ts +3 -1
- package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_FILTERS.fr.ts +4 -2
- package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_LIST.en.ts +18 -1
- package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_LIST.fr.ts +18 -1
- package/templates/saas/i18n/engine/resources/actorSystemExecutions.en.ts +10 -82
- package/templates/saas/i18n/engine/resources/actorSystemExecutions.fr.ts +0 -72
- package/templates/saas/i18n/engine/resources/actorTasks.en.ts +0 -33
- package/templates/saas/i18n/engine/resources/actorTasks.fr.ts +0 -33
- package/templates/saas/i18n/engine/resources/agentBehaviorReports.en.ts +0 -108
- package/templates/saas/i18n/engine/resources/agentBehaviorReports.fr.ts +0 -108
- package/templates/saas/i18n/engine/resources/agentOperationRecords.en.ts +8 -24
- package/templates/saas/i18n/engine/resources/agentOperationRecords.fr.ts +10 -26
- package/templates/saas/i18n/engine/resources/agentWorkCaptureSettings.en.ts +0 -12
- package/templates/saas/i18n/engine/resources/agentWorkCaptureSettings.fr.ts +0 -12
- package/templates/saas/i18n/engine/resources/anonymous_users.en.ts +8 -74
- package/templates/saas/i18n/engine/resources/anonymous_users.fr.ts +0 -66
- package/templates/saas/i18n/engine/resources/applicationA2aPushDeliveryLog.en.ts +3 -21
- package/templates/saas/i18n/engine/resources/applicationA2aPushDeliveryLog.fr.ts +0 -18
- package/templates/saas/i18n/engine/resources/applicationA2aTokenBudgetState.en.ts +3 -33
- package/templates/saas/i18n/engine/resources/applicationA2aTokenBudgetState.fr.ts +0 -30
- package/templates/saas/i18n/engine/resources/applicationAccessGrants.en.ts +13 -55
- package/templates/saas/i18n/engine/resources/applicationAccessGrants.fr.ts +0 -42
- package/templates/saas/i18n/engine/resources/applicationAgentPolicies.en.ts +8 -24
- package/templates/saas/i18n/engine/resources/applicationAgentPolicies.fr.ts +8 -24
- package/templates/saas/i18n/engine/resources/applicationAgentWorkDecisionContents.en.ts +0 -27
- package/templates/saas/i18n/engine/resources/applicationAgentWorkDecisionContents.fr.ts +0 -27
- package/templates/saas/i18n/engine/resources/applicationAgentWorkDecisions.en.ts +13 -43
- package/templates/saas/i18n/engine/resources/applicationAgentWorkDecisions.fr.ts +0 -30
- package/templates/saas/i18n/engine/resources/applicationApiKeys.en.ts +2 -70
- package/templates/saas/i18n/engine/resources/applicationApiKeys.fr.ts +2 -70
- package/templates/saas/i18n/engine/resources/applicationAuditLogs.en.ts +41 -94
- package/templates/saas/i18n/engine/resources/applicationAuditLogs.fr.ts +41 -94
- package/templates/saas/i18n/engine/resources/applicationDataKeys.en.ts +2 -22
- package/templates/saas/i18n/engine/resources/applicationDataKeys.fr.ts +2 -22
- package/templates/saas/i18n/engine/resources/applicationFeatures.en.ts +0 -24
- package/templates/saas/i18n/engine/resources/applicationFeatures.fr.ts +0 -24
- package/templates/saas/i18n/engine/resources/applicationFlowActorExecutions.en.ts +25 -160
- package/templates/saas/i18n/engine/resources/applicationFlowActorExecutions.fr.ts +25 -160
- package/templates/saas/i18n/engine/resources/applicationFlowActorTasks.en.ts +6 -28
- package/templates/saas/i18n/engine/resources/applicationFlowActorTasks.fr.ts +8 -30
- package/templates/saas/i18n/engine/resources/applicationInboundDeliveries.en.ts +92 -23
- package/templates/saas/i18n/engine/resources/applicationInboundDeliveries.fr.ts +95 -26
- package/templates/saas/i18n/engine/resources/applicationM2mWebhookDeliveryLog.en.ts +1 -25
- package/templates/saas/i18n/engine/resources/applicationM2mWebhookDeliveryLog.fr.ts +4 -28
- package/templates/saas/i18n/engine/resources/applicationMetadata.en.ts +0 -18
- package/templates/saas/i18n/engine/resources/applicationMetadata.fr.ts +0 -18
- package/templates/saas/i18n/engine/resources/applicationOAuthClients.en.ts +2 -58
- package/templates/saas/i18n/engine/resources/applicationOAuthClients.fr.ts +2 -58
- package/templates/saas/i18n/engine/resources/applicationProviderCredentials.en.ts +168 -0
- package/templates/saas/i18n/engine/resources/applicationProviderCredentials.fr.ts +168 -0
- package/templates/saas/i18n/engine/resources/applicationScimProvisioningConfig.en.ts +0 -30
- package/templates/saas/i18n/engine/resources/applicationScimProvisioningConfig.fr.ts +0 -30
- package/templates/saas/i18n/engine/resources/applicationSiemDeliveryDlq.en.ts +3 -42
- package/templates/saas/i18n/engine/resources/applicationSiemDeliveryDlq.fr.ts +5 -44
- package/templates/saas/i18n/engine/resources/applicationSiemDeliveryOutbox.en.ts +3 -30
- package/templates/saas/i18n/engine/resources/applicationSiemDeliveryOutbox.fr.ts +0 -27
- package/templates/saas/i18n/engine/resources/applicationSiemExportConfig.en.ts +0 -24
- package/templates/saas/i18n/engine/resources/applicationSiemExportConfig.fr.ts +0 -24
- package/templates/saas/i18n/engine/resources/applicationSsoConfig.en.ts +113 -61
- package/templates/saas/i18n/engine/resources/applicationSsoConfig.fr.ts +113 -61
- package/templates/saas/i18n/engine/resources/applicationSsoConnections.en.ts +0 -138
- package/templates/saas/i18n/engine/resources/applicationSsoConnections.fr.ts +0 -138
- package/templates/saas/i18n/engine/resources/applicationVersions.en.ts +3 -27
- package/templates/saas/i18n/engine/resources/applicationVersions.fr.ts +0 -24
- package/templates/saas/i18n/engine/resources/applicationWebhookConfig.en.ts +5 -54
- package/templates/saas/i18n/engine/resources/applicationWebhookConfig.fr.ts +5 -54
- package/templates/saas/i18n/engine/resources/applications.en.ts +39 -2177
- package/templates/saas/i18n/engine/resources/applications.fr.ts +39 -2177
- package/templates/saas/i18n/engine/resources/approvalSeals.en.ts +38 -31
- package/templates/saas/i18n/engine/resources/approvalSeals.fr.ts +38 -31
- package/templates/saas/i18n/engine/resources/auditLogs.en.ts +78 -111
- package/templates/saas/i18n/engine/resources/auditLogs.fr.ts +78 -111
- package/templates/saas/i18n/engine/resources/billingEffectOutbox.en.ts +2 -4
- package/templates/saas/i18n/engine/resources/billingEffectOutbox.fr.ts +2 -4
- package/templates/saas/i18n/engine/resources/billingSubscriptionMutationIntents.en.ts +8 -6
- package/templates/saas/i18n/engine/resources/billingSubscriptionMutationIntents.fr.ts +8 -6
- package/templates/saas/i18n/engine/resources/chatConversations.en.ts +0 -18
- package/templates/saas/i18n/engine/resources/chatConversations.fr.ts +0 -18
- package/templates/saas/i18n/engine/resources/chatIdentityLinks.en.ts +0 -44
- package/templates/saas/i18n/engine/resources/chatIdentityLinks.fr.ts +0 -44
- package/templates/saas/i18n/engine/resources/consumableTokens.en.ts +4 -43
- package/templates/saas/i18n/engine/resources/consumableTokens.fr.ts +4 -43
- package/templates/saas/i18n/engine/resources/conversationMessages.en.ts +16 -27
- package/templates/saas/i18n/engine/resources/conversationMessages.fr.ts +16 -27
- package/templates/saas/i18n/engine/resources/conversationReplyTokens.en.ts +0 -27
- package/templates/saas/i18n/engine/resources/conversationReplyTokens.fr.ts +0 -27
- package/templates/saas/i18n/engine/resources/conversationThreads.en.ts +0 -27
- package/templates/saas/i18n/engine/resources/conversationThreads.fr.ts +0 -27
- package/templates/saas/i18n/engine/resources/dataSeedRuns.en.ts +22 -17
- package/templates/saas/i18n/engine/resources/dataSeedRuns.fr.ts +22 -17
- package/templates/saas/i18n/engine/resources/dataSubjectRequests.en.ts +410 -0
- package/templates/saas/i18n/engine/resources/dataSubjectRequests.fr.ts +410 -0
- package/templates/saas/i18n/engine/resources/etlPipelineStates.en.ts +128 -146
- package/templates/saas/i18n/engine/resources/etlPipelineStates.fr.ts +0 -18
- package/templates/saas/i18n/engine/resources/evaluationDatasetExports.en.ts +13 -43
- package/templates/saas/i18n/engine/resources/evaluationDatasetExports.fr.ts +0 -30
- package/templates/saas/i18n/engine/resources/evaluationExportAuthorizations.en.ts +0 -12
- package/templates/saas/i18n/engine/resources/evaluationExportAuthorizations.fr.ts +0 -12
- package/templates/saas/i18n/engine/resources/externalDataErasureSuppressions.en.ts +0 -21
- package/templates/saas/i18n/engine/resources/externalDataErasureSuppressions.fr.ts +0 -21
- package/templates/saas/i18n/engine/resources/externalDataOutboundChanges.en.ts +24 -45
- package/templates/saas/i18n/engine/resources/externalDataOutboundChanges.fr.ts +0 -21
- package/templates/saas/i18n/engine/resources/externalDataPendingReferences.en.ts +0 -24
- package/templates/saas/i18n/engine/resources/externalDataPendingReferences.fr.ts +0 -24
- package/templates/saas/i18n/engine/resources/externalDataPipelineMembershipKeys.en.ts +0 -21
- package/templates/saas/i18n/engine/resources/externalDataPipelineMembershipKeys.fr.ts +0 -21
- package/templates/saas/i18n/engine/resources/externalDataPipelineMemberships.en.ts +8 -14
- package/templates/saas/i18n/engine/resources/externalDataPipelineMemberships.fr.ts +0 -6
- package/templates/saas/i18n/engine/resources/externalDataPipelineRequestedKeys.en.ts +0 -24
- package/templates/saas/i18n/engine/resources/externalDataPipelineRequestedKeys.fr.ts +0 -24
- package/templates/saas/i18n/engine/resources/externalDataPipelineRunRecords.en.ts +150 -174
- package/templates/saas/i18n/engine/resources/externalDataPipelineRunRecords.fr.ts +0 -24
- package/templates/saas/i18n/engine/resources/externalDataRemoteVersions.en.ts +12 -33
- package/templates/saas/i18n/engine/resources/externalDataRemoteVersions.fr.ts +0 -21
- package/templates/saas/i18n/engine/resources/externalEffectReservations.en.ts +147 -0
- package/templates/saas/i18n/engine/resources/externalEffectReservations.fr.ts +147 -0
- package/templates/saas/i18n/engine/resources/files.en.ts +0 -39
- package/templates/saas/i18n/engine/resources/files.fr.ts +0 -39
- package/templates/saas/i18n/engine/resources/humanDecisionNoticeStays.en.ts +0 -18
- package/templates/saas/i18n/engine/resources/humanDecisionNoticeStays.fr.ts +0 -18
- package/templates/saas/i18n/engine/resources/idempotentRequestOutcomes.en.ts +115 -0
- package/templates/saas/i18n/engine/resources/idempotentRequestOutcomes.fr.ts +115 -0
- package/templates/saas/i18n/engine/resources/inboundAddressTombstones.en.ts +0 -27
- package/templates/saas/i18n/engine/resources/inboundAddressTombstones.fr.ts +0 -27
- package/templates/saas/i18n/engine/resources/inboundContacts.en.ts +3 -30
- package/templates/saas/i18n/engine/resources/inboundContacts.fr.ts +0 -27
- package/templates/saas/i18n/engine/resources/inboundEmails.en.ts +0 -27
- package/templates/saas/i18n/engine/resources/inboundEmails.fr.ts +0 -27
- package/templates/saas/i18n/engine/resources/jobExecutions.en.ts +11 -25
- package/templates/saas/i18n/engine/resources/jobExecutions.fr.ts +11 -25
- package/templates/saas/i18n/engine/resources/jobPayloadStorage.en.ts +3 -30
- package/templates/saas/i18n/engine/resources/jobPayloadStorage.fr.ts +0 -27
- package/templates/saas/i18n/engine/resources/legalHolds.en.ts +0 -88
- package/templates/saas/i18n/engine/resources/legalHolds.fr.ts +0 -88
- package/templates/saas/i18n/engine/resources/modelCallAttributions.en.ts +16 -40
- package/templates/saas/i18n/engine/resources/modelCallAttributions.fr.ts +0 -24
- package/templates/saas/i18n/engine/resources/modelCostPeriodAggregates.en.ts +13 -37
- package/templates/saas/i18n/engine/resources/modelCostPeriodAggregates.fr.ts +0 -24
- package/templates/saas/i18n/engine/resources/oauthConsentGrants.en.ts +10 -40
- package/templates/saas/i18n/engine/resources/oauthConsentGrants.fr.ts +0 -30
- package/templates/saas/i18n/engine/resources/operationApprovalRequests.en.ts +120 -60
- package/templates/saas/i18n/engine/resources/operationApprovalRequests.fr.ts +120 -60
- package/templates/saas/i18n/engine/resources/organizationA2aPushDeliveryLog.en.ts +3 -21
- package/templates/saas/i18n/engine/resources/organizationA2aPushDeliveryLog.fr.ts +0 -18
- package/templates/saas/i18n/engine/resources/organizationA2aTokenBudgetState.en.ts +3 -33
- package/templates/saas/i18n/engine/resources/organizationA2aTokenBudgetState.fr.ts +0 -30
- package/templates/saas/i18n/engine/resources/organizationAgentPolicies.en.ts +0 -27
- package/templates/saas/i18n/engine/resources/organizationAgentPolicies.fr.ts +0 -27
- package/templates/saas/i18n/engine/resources/organizationAgentWorkDecisionContents.en.ts +0 -27
- package/templates/saas/i18n/engine/resources/organizationAgentWorkDecisionContents.fr.ts +0 -27
- package/templates/saas/i18n/engine/resources/organizationAgentWorkDecisions.en.ts +13 -43
- package/templates/saas/i18n/engine/resources/organizationAgentWorkDecisions.fr.ts +0 -30
- package/templates/saas/i18n/engine/resources/organizationApiKeys.en.ts +2 -79
- package/templates/saas/i18n/engine/resources/organizationApiKeys.fr.ts +2 -79
- package/templates/saas/i18n/engine/resources/organizationBillingAccounts.en.ts +0 -549
- package/templates/saas/i18n/engine/resources/organizationBillingAccounts.fr.ts +0 -549
- package/templates/saas/i18n/engine/resources/organizationChatSettings.en.ts +0 -27
- package/templates/saas/i18n/engine/resources/organizationChatSettings.fr.ts +0 -27
- package/templates/saas/i18n/engine/resources/organizationCreditPools.en.ts +13 -18
- package/templates/saas/i18n/engine/resources/organizationCreditPools.fr.ts +13 -18
- package/templates/saas/i18n/engine/resources/organizationCustomDomains.en.ts +195 -0
- package/templates/saas/i18n/engine/resources/organizationCustomDomains.fr.ts +195 -0
- package/templates/saas/i18n/engine/resources/organizationDashboardLayouts.en.ts +153 -0
- package/templates/saas/i18n/engine/resources/organizationDashboardLayouts.fr.ts +153 -0
- package/templates/saas/i18n/engine/resources/organizationEmailDomains.en.ts +0 -39
- package/templates/saas/i18n/engine/resources/organizationEmailDomains.fr.ts +0 -39
- package/templates/saas/i18n/engine/resources/organizationFeatures.en.ts +0 -34
- package/templates/saas/i18n/engine/resources/organizationFeatures.fr.ts +0 -34
- package/templates/saas/i18n/engine/resources/organizationFlowActorExecutions.en.ts +25 -160
- package/templates/saas/i18n/engine/resources/organizationFlowActorExecutions.fr.ts +25 -160
- package/templates/saas/i18n/engine/resources/organizationFlowActorTasks.en.ts +6 -28
- package/templates/saas/i18n/engine/resources/organizationFlowActorTasks.fr.ts +8 -30
- package/templates/saas/i18n/engine/resources/organizationGuidanceState.en.ts +3 -18
- package/templates/saas/i18n/engine/resources/organizationGuidanceState.fr.ts +0 -15
- package/templates/saas/i18n/engine/resources/organizationInboundDeliveries.en.ts +95 -26
- package/templates/saas/i18n/engine/resources/organizationInboundDeliveries.fr.ts +95 -26
- package/templates/saas/i18n/engine/resources/organizationInvoiceRefs.en.ts +14 -45
- package/templates/saas/i18n/engine/resources/organizationInvoiceRefs.fr.ts +14 -45
- package/templates/saas/i18n/engine/resources/organizationLifecycleState.en.ts +1 -17
- package/templates/saas/i18n/engine/resources/organizationLifecycleState.fr.ts +1 -17
- package/templates/saas/i18n/engine/resources/organizationM2mWebhookDeliveryLog.en.ts +2 -26
- package/templates/saas/i18n/engine/resources/organizationM2mWebhookDeliveryLog.fr.ts +4 -28
- package/templates/saas/i18n/engine/resources/organizationMembers.en.ts +2 -95
- package/templates/saas/i18n/engine/resources/organizationMembers.fr.ts +2 -95
- package/templates/saas/i18n/engine/resources/organizationModelUsageCeilingState.en.ts +0 -27
- package/templates/saas/i18n/engine/resources/organizationModelUsageCeilingState.fr.ts +0 -27
- package/templates/saas/i18n/engine/resources/organizationNotificationBadges.en.ts +3 -36
- package/templates/saas/i18n/engine/resources/organizationNotificationBadges.fr.ts +0 -33
- package/templates/saas/i18n/engine/resources/organizationNotifications.en.ts +0 -12
- package/templates/saas/i18n/engine/resources/organizationNotifications.fr.ts +0 -12
- package/templates/saas/i18n/engine/resources/organizationOAuthClients.en.ts +2 -67
- package/templates/saas/i18n/engine/resources/organizationOAuthClients.fr.ts +2 -67
- package/templates/saas/i18n/engine/resources/organizationOnboardingOperations.en.ts +0 -9
- package/templates/saas/i18n/engine/resources/organizationOnboardingOperations.fr.ts +0 -9
- package/templates/saas/i18n/engine/resources/organizationPersonTokenCeilingState.en.ts +0 -27
- package/templates/saas/i18n/engine/resources/organizationPersonTokenCeilingState.fr.ts +0 -27
- package/templates/saas/i18n/engine/resources/organizationPreferences.en.ts +0 -37
- package/templates/saas/i18n/engine/resources/organizationPreferences.fr.ts +0 -37
- package/templates/saas/i18n/engine/resources/organizationProfiles.en.ts +0 -37
- package/templates/saas/i18n/engine/resources/organizationProfiles.fr.ts +0 -37
- package/templates/saas/i18n/engine/resources/organizationProgressionState.en.ts +1 -17
- package/templates/saas/i18n/engine/resources/organizationProgressionState.fr.ts +1 -17
- package/templates/saas/i18n/engine/resources/organizationProviderCredentials.en.ts +0 -58
- package/templates/saas/i18n/engine/resources/organizationProviderCredentials.fr.ts +0 -58
- package/templates/saas/i18n/engine/resources/organizationRelationships.en.ts +0 -128
- package/templates/saas/i18n/engine/resources/organizationRelationships.fr.ts +0 -128
- package/templates/saas/i18n/engine/resources/organizationRepresentations.en.ts +0 -83
- package/templates/saas/i18n/engine/resources/organizationRepresentations.fr.ts +0 -83
- package/templates/saas/i18n/engine/resources/organizationScimProvisioningConfig.en.ts +0 -43
- package/templates/saas/i18n/engine/resources/organizationScimProvisioningConfig.fr.ts +0 -43
- package/templates/saas/i18n/engine/resources/organizationScimTokens.en.ts +5 -76
- package/templates/saas/i18n/engine/resources/organizationScimTokens.fr.ts +5 -76
- package/templates/saas/i18n/engine/resources/organizationSiemDeliveryDlq.en.ts +4 -43
- package/templates/saas/i18n/engine/resources/organizationSiemDeliveryDlq.fr.ts +6 -45
- package/templates/saas/i18n/engine/resources/organizationSiemDeliveryOutbox.en.ts +3 -30
- package/templates/saas/i18n/engine/resources/organizationSiemDeliveryOutbox.fr.ts +0 -27
- package/templates/saas/i18n/engine/resources/organizationSiemExportConfig.en.ts +0 -37
- package/templates/saas/i18n/engine/resources/organizationSiemExportConfig.fr.ts +0 -37
- package/templates/saas/i18n/engine/resources/organizationSsoConfig.en.ts +113 -74
- package/templates/saas/i18n/engine/resources/organizationSsoConfig.fr.ts +113 -74
- package/templates/saas/i18n/engine/resources/organizationSsoConnections.en.ts +0 -148
- package/templates/saas/i18n/engine/resources/organizationSsoConnections.fr.ts +0 -148
- package/templates/saas/i18n/engine/resources/organizationSubscriptions.en.ts +40 -78
- package/templates/saas/i18n/engine/resources/organizationSubscriptions.fr.ts +42 -80
- package/templates/saas/i18n/engine/resources/organizationUnitMembers.en.ts +2 -50
- package/templates/saas/i18n/engine/resources/organizationUnitMembers.fr.ts +2 -50
- package/templates/saas/i18n/engine/resources/organizationUnits.en.ts +0 -49
- package/templates/saas/i18n/engine/resources/organizationUnits.fr.ts +0 -49
- package/templates/saas/i18n/engine/resources/organizationUsageRecords.en.ts +13 -37
- package/templates/saas/i18n/engine/resources/organizationUsageRecords.fr.ts +13 -37
- package/templates/saas/i18n/engine/resources/organizationWebhookConfig.en.ts +5 -67
- package/templates/saas/i18n/engine/resources/organizationWebhookConfig.fr.ts +5 -67
- package/templates/saas/i18n/engine/resources/organizations.en.ts +34 -637
- package/templates/saas/i18n/engine/resources/organizations.fr.ts +32 -635
- package/templates/saas/i18n/engine/resources/platformAccessGrants.en.ts +0 -91
- package/templates/saas/i18n/engine/resources/platformAccessGrants.fr.ts +0 -91
- package/templates/saas/i18n/engine/resources/postCommitEffectOutbox.en.ts +0 -24
- package/templates/saas/i18n/engine/resources/postCommitEffectOutbox.fr.ts +0 -24
- package/templates/saas/i18n/engine/resources/prices.en.ts +47 -108
- package/templates/saas/i18n/engine/resources/prices.fr.ts +48 -109
- package/templates/saas/i18n/engine/resources/products.en.ts +24 -68
- package/templates/saas/i18n/engine/resources/products.fr.ts +24 -68
- package/templates/saas/i18n/engine/resources/professionalQualifications.en.ts +0 -87
- package/templates/saas/i18n/engine/resources/professionalQualifications.fr.ts +0 -87
- package/templates/saas/i18n/engine/resources/promotions.en.ts +4 -56
- package/templates/saas/i18n/engine/resources/promotions.fr.ts +6 -58
- package/templates/saas/i18n/engine/resources/providerCallRecords.en.ts +77 -101
- package/templates/saas/i18n/engine/resources/providerCallRecords.fr.ts +0 -24
- package/templates/saas/i18n/engine/resources/publishedVerificationKeys.en.ts +2 -25
- package/templates/saas/i18n/engine/resources/publishedVerificationKeys.fr.ts +2 -25
- package/templates/saas/i18n/engine/resources/referrals.en.ts +21 -18
- package/templates/saas/i18n/engine/resources/referrals.fr.ts +21 -18
- package/templates/saas/i18n/engine/resources/relationshipCapabilityGrants.en.ts +0 -80
- package/templates/saas/i18n/engine/resources/relationshipCapabilityGrants.fr.ts +0 -80
- package/templates/saas/i18n/engine/resources/relationshipInvitations.en.ts +0 -89
- package/templates/saas/i18n/engine/resources/relationshipInvitations.fr.ts +0 -89
- package/templates/saas/i18n/engine/resources/relationshipMailboxes.en.ts +0 -27
- package/templates/saas/i18n/engine/resources/relationshipMailboxes.fr.ts +0 -27
- package/templates/saas/i18n/engine/resources/representativeAssignments.en.ts +108 -112
- package/templates/saas/i18n/engine/resources/representativeAssignments.fr.ts +108 -112
- package/templates/saas/i18n/engine/resources/retentionEnforcementRecords.en.ts +8 -21
- package/templates/saas/i18n/engine/resources/retentionEnforcementRecords.fr.ts +8 -21
- package/templates/saas/i18n/engine/resources/signatureRequestSigners.en.ts +141 -0
- package/templates/saas/i18n/engine/resources/signatureRequestSigners.fr.ts +141 -0
- package/templates/saas/i18n/engine/resources/signatureRequests.en.ts +205 -0
- package/templates/saas/i18n/engine/resources/signatureRequests.fr.ts +205 -0
- package/templates/saas/i18n/engine/resources/smsNumberAssignments.en.ts +101 -0
- package/templates/saas/i18n/engine/resources/smsNumberAssignments.fr.ts +101 -0
- package/templates/saas/i18n/engine/resources/smsOptOuts.en.ts +166 -0
- package/templates/saas/i18n/engine/resources/smsOptOuts.fr.ts +166 -0
- package/templates/saas/i18n/engine/resources/smsProviderEvents.en.ts +195 -0
- package/templates/saas/i18n/engine/resources/smsProviderEvents.fr.ts +195 -0
- package/templates/saas/i18n/engine/resources/ssoDomainReservations.en.ts +0 -27
- package/templates/saas/i18n/engine/resources/ssoDomainReservations.fr.ts +0 -27
- package/templates/saas/i18n/engine/resources/systemOfRecordPartitionAssignments.en.ts +3 -39
- package/templates/saas/i18n/engine/resources/systemOfRecordPartitionAssignments.fr.ts +0 -36
- package/templates/saas/i18n/engine/resources/systemOfRecordWriteAdmissions.en.ts +0 -3
- package/templates/saas/i18n/engine/resources/systemOfRecordWriteAdmissions.fr.ts +0 -3
- package/templates/saas/i18n/engine/resources/transactionalCommitReceipts.en.ts +0 -6
- package/templates/saas/i18n/engine/resources/transactionalCommitReceipts.fr.ts +0 -6
- package/templates/saas/i18n/engine/resources/userA2aPushDeliveryLog.en.ts +3 -21
- package/templates/saas/i18n/engine/resources/userA2aPushDeliveryLog.fr.ts +0 -18
- package/templates/saas/i18n/engine/resources/userA2aTokenBudgetState.en.ts +3 -33
- package/templates/saas/i18n/engine/resources/userA2aTokenBudgetState.fr.ts +0 -30
- package/templates/saas/i18n/engine/resources/userAgentWorkDecisionContents.en.ts +0 -27
- package/templates/saas/i18n/engine/resources/userAgentWorkDecisionContents.fr.ts +0 -27
- package/templates/saas/i18n/engine/resources/userAgentWorkDecisions.en.ts +13 -43
- package/templates/saas/i18n/engine/resources/userAgentWorkDecisions.fr.ts +0 -30
- package/templates/saas/i18n/engine/resources/userCredentials.en.ts +3 -87
- package/templates/saas/i18n/engine/resources/userCredentials.fr.ts +0 -84
- package/templates/saas/i18n/engine/resources/userFeatures.en.ts +0 -12
- package/templates/saas/i18n/engine/resources/userFeatures.fr.ts +0 -12
- package/templates/saas/i18n/engine/resources/userFlowActorExecutions.en.ts +25 -160
- package/templates/saas/i18n/engine/resources/userFlowActorExecutions.fr.ts +25 -160
- package/templates/saas/i18n/engine/resources/userFlowActorTasks.en.ts +6 -28
- package/templates/saas/i18n/engine/resources/userFlowActorTasks.fr.ts +8 -30
- package/templates/saas/i18n/engine/resources/userGovernedDocumentAcceptances.en.ts +13 -18
- package/templates/saas/i18n/engine/resources/userGovernedDocumentAcceptances.fr.ts +13 -18
- package/templates/saas/i18n/engine/resources/userGuidanceState.en.ts +3 -18
- package/templates/saas/i18n/engine/resources/userGuidanceState.fr.ts +0 -15
- package/templates/saas/i18n/engine/resources/userIdentityLinks.en.ts +13 -40
- package/templates/saas/i18n/engine/resources/userIdentityLinks.fr.ts +0 -27
- package/templates/saas/i18n/engine/resources/userLifecycleState.en.ts +0 -15
- package/templates/saas/i18n/engine/resources/userLifecycleState.fr.ts +0 -15
- package/templates/saas/i18n/engine/resources/userNotificationBadges.en.ts +3 -36
- package/templates/saas/i18n/engine/resources/userNotificationBadges.fr.ts +0 -33
- package/templates/saas/i18n/engine/resources/userPreferences.en.ts +8 -60
- package/templates/saas/i18n/engine/resources/userPreferences.fr.ts +8 -60
- package/templates/saas/i18n/engine/resources/userProfiles.en.ts +5 -56
- package/templates/saas/i18n/engine/resources/userProfiles.fr.ts +0 -51
- package/templates/saas/i18n/engine/resources/userProgressionState.en.ts +1 -17
- package/templates/saas/i18n/engine/resources/userProgressionState.fr.ts +1 -17
- package/templates/saas/i18n/engine/resources/userProviderCredentials.en.ts +0 -52
- package/templates/saas/i18n/engine/resources/userProviderCredentials.fr.ts +0 -52
- package/templates/saas/i18n/engine/resources/userSelfPreferences.en.ts +8 -56
- package/templates/saas/i18n/engine/resources/userSelfPreferences.fr.ts +8 -56
- package/templates/saas/i18n/engine/resources/userSelfProfiles.en.ts +5 -61
- package/templates/saas/i18n/engine/resources/userSelfProfiles.fr.ts +0 -56
- package/templates/saas/i18n/engine/resources/user_self.en.ts +37 -214
- package/templates/saas/i18n/engine/resources/user_self.fr.ts +37 -214
- package/templates/saas/i18n/engine/resources/users.en.ts +53 -180
- package/templates/saas/i18n/engine/resources/users.fr.ts +53 -180
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/Dockerfile +4 -1
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/plugins/api-reference-pages.ts +9 -1
- package/templates/saas/scenarios/add-website/files/website/Dockerfile +4 -1
- package/templates/saas/scenarios/add-website/files/website/astro.config.ts.hbs +4 -0
- package/templates/saas/scenarios/add-website/files/website/package.json.hbs +1 -1
- package/templates/saas/scenarios/add-worker-node/files/workers/__workerDir__/Dockerfile.hbs +3 -1
- package/templates/saas/skeleton/backend-api/Dockerfile +5 -2
- package/templates/saas/skeleton/frontend/Dockerfile +4 -1
- package/templates/saas/skeleton/frontend/vite-engine-dependency-prebundle.ts +10 -1
- package/templates/saas/skeleton/frontend/vite.config.ts.hbs +14 -3
- package/wildo-framework.info.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"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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,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 { 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"]}
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,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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider-runtime-sync.service.d.ts","sourceRoot":"","sources":["../../../../src/services/application/provider-runtime-sync.service.ts"],"names":[],"mappings":"AAGA,OAAO,EAML,cAAc,EAef,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"provider-runtime-sync.service.d.ts","sourceRoot":"","sources":["../../../../src/services/application/provider-runtime-sync.service.ts"],"names":[],"mappings":"AAGA,OAAO,EAML,cAAc,EAef,MAAM,+BAA+B,CAAC;AAgBvC,OAAO,KAAK,EACV,sBAAsB,EACtB,wBAAwB,EAEzB,MAAM,+BAA+B,CAAC;AAuBvC,MAAM,WAAW,sBAAsB;IACrC,OAAO,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,oHAAoH;IACpH,IAAI,CAAC,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,4GAA4G;IAC5G,IAAI,CAAC,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,KAAK,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9B;AAED,gEAAgE;AAChE,MAAM,WAAW,0BAA0B;IACzC;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B;;;;;OAKG;IACH,yBAAyB,CAAC,EAAE,OAAO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,EAAE,CAAC;IACrE,0HAA0H;IAC1H,UAAU,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,KAAK,OAAO,CAAC,wCAAwC,EAAE,CAAC,CAAC;IAChH,IAAI,CAAC,EAAE,CAAC,GAAG,EAAE,sBAAsB,EAAE,QAAQ,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,0BAA0B,KAAK,OAAO,CAAC,yBAAyB,CAAC,CAAC;IAChK,yFAAyF;IACzF,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,kHAAkH;IAClH,cAAc,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC;QAAE,QAAQ,CAAC,UAAU,EAAE,SAAS,MAAM,EAAE,CAAA;KAAE,CAAC,CAAC;CACvF,GACL,OAAO,CAAC,oCAAoC,CAAC,CA0D/C;AAoeD;;;;;;;;;;GAUG;AACH,wBAAsB,8BAA8B,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,sBAAsB,EAAE,CAAC,CAExG"}
|
|
@@ -5,7 +5,8 @@ import { buildDiscoveredProviderCatalog, InfraCapability, LEGACY_PROVIDER_RUNTIM
|
|
|
5
5
|
import { resolveAndRegisterSaasProviderContributions } from '../credentials/composed-provider-catalogue.js';
|
|
6
6
|
import { declareSystemsOfRecordLibrary } from './systems-of-record-library.service.js';
|
|
7
7
|
import { resolveEnvironmentProviderConfigurations } from './environment-provider-configurations.service.js';
|
|
8
|
-
import {
|
|
8
|
+
import { EnvironmentRegistry } from '../../services/environment/environment-registry.service.js';
|
|
9
|
+
import { loadEnvironmentSecretsForScreen, screenFrontendProviderPublicConfigForEnvironment } from './frontend-public-config-secret-screen.service.js';
|
|
9
10
|
import { listFrontendProvidersNotConfiguredInArtifacts } from './frontend-providers-not-configured.service.js';
|
|
10
11
|
import { assertSelectedFrontendProviderSdksAreDeclared } from './frontend-provider-sdk-declarations.service.js';
|
|
11
12
|
import { describeFrontendProviderNotConfigured, describeCaughtError } from '@wildo-ai/saas-models';
|
|
@@ -369,6 +370,22 @@ export function findRefusedProviderRuntimeArtifacts(saasRoot) {
|
|
|
369
370
|
}
|
|
370
371
|
return refused;
|
|
371
372
|
}
|
|
373
|
+
/**
|
|
374
|
+
* The environment's `secrets.json → providerEnv`, read so a vendor's BROWSER-PUBLIC slot can fill the frontend key of its
|
|
375
|
+
* slug (PostHog's project key). Only those slots are read from it (`browserPublicProviderSecretValues`); every other
|
|
376
|
+
* value stays out of every served bag, and the secret screen still compares each served value against all of them.
|
|
377
|
+
*
|
|
378
|
+
* Undefined when this process targets no application root (the loader would throw; a caller deriving artifacts outside a
|
|
379
|
+
* CLI command has none) or the environment has no secrets. Filling nothing is the safe direction: a key that only the
|
|
380
|
+
* secrets supply is then absent from the served bag, which hydration reports as a provider not configured, and the
|
|
381
|
+
* sync that WRITES the artifacts screens them against the same secrets and refuses outright when it cannot read them.
|
|
382
|
+
* Any other failure of the loader is not swallowed.
|
|
383
|
+
*/
|
|
384
|
+
function readEnvironmentProviderEnvForBrowserPublicValues(environmentName) {
|
|
385
|
+
if (EnvironmentRegistry.getSaasRoot() === null)
|
|
386
|
+
return undefined;
|
|
387
|
+
return loadEnvironmentSecretsForScreen(environmentName)?.providerEnv;
|
|
388
|
+
}
|
|
372
389
|
/**
|
|
373
390
|
* Everything the provider runtime artifacts are derived from, and the artifacts themselves, computed WITHOUT writing.
|
|
374
391
|
*
|
|
@@ -400,6 +417,14 @@ async function deriveProviderRuntimeArtifacts(input) {
|
|
|
400
417
|
// The listed packages discovery admitted (#1676), recorded in the lock.
|
|
401
418
|
admittedProviderPackages,
|
|
402
419
|
nodeWorkerKeys,
|
|
420
|
+
// A browser-public provider key (PostHog's project key) is read from the environment's secrets, where the backend's
|
|
421
|
+
// copy of it already lives, so no environment has to commit it to a config file. The same source the secret screen
|
|
422
|
+
// reads, so a sync and its screen see one `providerEnv`; absent secrets fill nothing, and the screen then refuses.
|
|
423
|
+
// Read only when a frontend service has providers: nothing else can use it, and an application serving none must
|
|
424
|
+
// not start reporting on a secrets file it never needed.
|
|
425
|
+
providerEnvironmentValues: Object.keys(saasConfig.providers?.scopes?.frontendServices ?? {}).length > 0
|
|
426
|
+
? readEnvironmentProviderEnvForBrowserPublicValues(environmentName)
|
|
427
|
+
: undefined,
|
|
403
428
|
});
|
|
404
429
|
return { discoveredProviderContributions, admittedProviderPackages, discoveryAdvisories, minionConfigs, workerConfigs, nodeWorkerKeys, artifacts, lockSection };
|
|
405
430
|
}
|