@jini-ai/devops 0.7.3-next.2 → 0.7.3-next.3
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/README.md +16 -0
- package/dist/backup/site/archive-extensions.d.ts +73 -0
- package/dist/backup/site/archive-extensions.js +129 -0
- package/dist/backup/site/archive-manifest.d.ts +85 -0
- package/dist/backup/site/archive-manifest.js +176 -0
- package/dist/backup/site/archive-media.d.ts +121 -0
- package/dist/backup/site/archive-media.js +93 -0
- package/dist/backup/site/backup-service.credentials.d.ts +31 -0
- package/dist/backup/site/backup-service.credentials.js +161 -0
- package/dist/backup/site/backup-service.d.ts +331 -0
- package/dist/backup/site/backup-service.js +125 -0
- package/dist/backup/site/backup-service.plan.d.ts +64 -0
- package/dist/backup/site/backup-service.plan.js +207 -0
- package/dist/backup/site/backup-service.push.d.ts +29 -0
- package/dist/backup/site/backup-service.push.js +82 -0
- package/dist/backup/site/backup-service.shared.d.ts +40 -0
- package/dist/backup/site/backup-service.shared.js +37 -0
- package/dist/backup/site/bundled-export-file-policy.d.ts +38 -0
- package/dist/backup/site/bundled-export-file-policy.js +40 -0
- package/dist/backup/site/credential-warnings.d.ts +41 -0
- package/dist/backup/site/credential-warnings.js +50 -0
- package/dist/backup/site/import-backend-steps.d.ts +167 -0
- package/dist/backup/site/import-backend-steps.js +170 -0
- package/dist/backup/site/import-backend.d.ts +167 -0
- package/dist/backup/site/import-backend.js +298 -0
- package/dist/backup/site/import-database.d.ts +118 -0
- package/dist/backup/site/import-database.js +167 -0
- package/dist/backup/site/import-index/admission.d.ts +54 -0
- package/dist/backup/site/import-index/admission.js +46 -0
- package/dist/backup/site/import-index/backfill.d.ts +106 -0
- package/dist/backup/site/import-index/backfill.js +137 -0
- package/dist/backup/site/import-index/errors.d.ts +28 -0
- package/dist/backup/site/import-index/errors.js +38 -0
- package/dist/backup/site/import-index/migrations/checksums.d.ts +4 -0
- package/dist/backup/site/import-index/migrations/checksums.js +4 -0
- package/dist/backup/site/import-index/migrations/site-imports-v1.d.ts +2 -0
- package/dist/backup/site/import-index/migrations/site-imports-v1.js +10 -0
- package/dist/backup/site/import-index/mode.d.ts +191 -0
- package/dist/backup/site/import-index/mode.js +272 -0
- package/dist/backup/site/import-index/open.d.ts +40 -0
- package/dist/backup/site/import-index/open.js +87 -0
- package/dist/backup/site/import-index/paging.d.ts +28 -0
- package/dist/backup/site/import-index/paging.js +66 -0
- package/dist/backup/site/import-index/payload-namespace.d.ts +80 -0
- package/dist/backup/site/import-index/payload-namespace.js +156 -0
- package/dist/backup/site/import-index/rows.d.ts +32 -0
- package/dist/backup/site/import-index/rows.js +61 -0
- package/dist/backup/site/import-index/schema.d.ts +8 -0
- package/dist/backup/site/import-index/schema.js +31 -0
- package/dist/backup/site/import-index/store.d.ts +27 -0
- package/dist/backup/site/import-index/store.js +33 -0
- package/dist/backup/site/import-index/sweep.d.ts +10 -0
- package/dist/backup/site/import-index/sweep.js +26 -0
- package/dist/backup/site/import-keep-off.d.ts +128 -0
- package/dist/backup/site/import-keep-off.js +204 -0
- package/dist/backup/site/import-plugin-state.d.ts +74 -0
- package/dist/backup/site/import-plugin-state.js +67 -0
- package/dist/backup/site/import-registry.d.ts +110 -0
- package/dist/backup/site/import-registry.js +205 -0
- package/dist/backup/site/import-restore-placement.d.ts +94 -0
- package/dist/backup/site/import-restore-placement.js +158 -0
- package/dist/backup/site/import-restore.d.ts +111 -0
- package/dist/backup/site/import-restore.js +120 -0
- package/dist/backup/site/import-verifier-inventory.d.ts +137 -0
- package/dist/backup/site/import-verifier-inventory.js +236 -0
- package/dist/backup/site/import-verifier-projection.d.ts +78 -0
- package/dist/backup/site/import-verifier-projection.js +100 -0
- package/dist/backup/site/import-verifier.d.ts +126 -0
- package/dist/backup/site/import-verifier.js +53 -0
- package/dist/backup/site/owned-temp-root.d.ts +12 -0
- package/dist/backup/site/owned-temp-root.js +2 -0
- package/dist/backup/site/package-file-inventory.d.ts +63 -0
- package/dist/backup/site/package-file-inventory.js +56 -0
- package/dist/backup/site/push-content.d.ts +70 -0
- package/dist/backup/site/push-content.js +56 -0
- package/dist/backup/site/react/ShowMoreImports.d.ts +21 -0
- package/dist/backup/site/react/ShowMoreImports.js +8 -0
- package/dist/backup/site/saved-keys-port.d.ts +47 -0
- package/dist/backup/site/saved-keys-port.js +3 -0
- package/dist/backup/site/saved-keys.d.ts +25 -0
- package/dist/backup/site/saved-keys.js +38 -0
- package/dist/backup/site/share-backend.d.ts +243 -0
- package/dist/backup/site/share-backend.js +284 -0
- package/dist/backup/site/share-database/projection.d.ts +195 -0
- package/dist/backup/site/share-database/projection.js +90 -0
- package/dist/backup/site/share-database/projection.media.d.ts +38 -0
- package/dist/backup/site/share-database/projection.media.js +179 -0
- package/dist/backup/site/share-database/projection.tables.d.ts +46 -0
- package/dist/backup/site/share-database/projection.tables.js +193 -0
- package/dist/backup/site/share-expiry.d.ts +75 -0
- package/dist/backup/site/share-expiry.js +49 -0
- package/dist/backup/site/share-export-failure.d.ts +17 -0
- package/dist/backup/site/share-export-failure.js +16 -0
- package/dist/backup/site/share-file-policy.d.ts +60 -0
- package/dist/backup/site/share-file-policy.js +146 -0
- package/dist/backup/site/share-hosting.d.ts +107 -0
- package/dist/backup/site/share-hosting.js +148 -0
- package/dist/backup/site/share-preparation-steps.d.ts +180 -0
- package/dist/backup/site/share-preparation-steps.js +109 -0
- package/dist/backup/site/share-preparation.d.ts +122 -0
- package/dist/backup/site/share-preparation.js +43 -0
- package/dist/backup/site/share-refusal.d.ts +21 -0
- package/dist/backup/site/share-refusal.js +20 -0
- package/dist/backup/site/share-registry.d.ts +124 -0
- package/dist/backup/site/share-registry.js +219 -0
- package/dist/backup/site/share-retention.d.ts +62 -0
- package/dist/backup/site/share-retention.js +126 -0
- package/dist/backup/site/share-service.d.ts +128 -0
- package/dist/backup/site/share-service.js +194 -0
- package/dist/backup/site/share-zip.d.ts +115 -0
- package/dist/backup/site/share-zip.js +144 -0
- package/dist/backup/site/sources.d.ts +344 -0
- package/dist/backup/site/sources.js +595 -0
- package/dist/backup/site/static-copy.d.ts +122 -0
- package/dist/backup/site/static-copy.js +165 -0
- package/dist/backup/site/static-download-html.d.ts +76 -0
- package/dist/backup/site/static-download-html.js +149 -0
- package/dist/backup/site/static-download-landing.d.ts +52 -0
- package/dist/backup/site/static-download-landing.js +95 -0
- package/dist/backup/site/static-download-layout.d.ts +96 -0
- package/dist/backup/site/static-download-layout.js +325 -0
- package/dist/backup/site/static-export-selection.d.ts +50 -0
- package/dist/backup/site/static-export-selection.js +76 -0
- package/dist/backup/site/static-site-packager.d.ts +42 -0
- package/dist/backup/site/static-site-packager.js +32 -0
- package/dist/backup/site/tool-registrations.d.ts +74 -0
- package/dist/backup/site/tool-registrations.js +201 -0
- package/dist/checks/complexity-debt.d.ts +100 -0
- package/dist/checks/complexity-debt.js +131 -0
- package/dist/checks/coverage/diff.js +5 -1
- package/dist/checks/env-access.d.ts +14 -1
- package/dist/checks/env-access.js +92 -6
- package/dist/checks/live-verify-checks.d.ts +29 -0
- package/dist/checks/live-verify-checks.js +30 -0
- package/dist/checks/quality-gates.d.ts +137 -0
- package/dist/checks/quality-gates.js +209 -0
- package/dist/core/deploy-types.d.ts +2 -0
- package/dist/deploy/admin-http/site-update-status.d.ts +8 -0
- package/dist/deploy/admin-http/site-update-status.js +15 -0
- package/dist/deploy/host-kit.d.ts +3 -0
- package/dist/deploy/index.d.ts +6 -0
- package/dist/deploy/index.js +6 -0
- package/dist/deploy/ops-runner.js +7 -0
- package/dist/deploy/ops-tool-contracts.d.ts +10 -1
- package/dist/deploy/react/Deployment.d.ts +37 -0
- package/dist/deploy/react/Deployment.js +94 -0
- package/dist/deploy/react/DockerfileTab.d.ts +72 -0
- package/dist/deploy/react/DockerfileTab.js +131 -0
- package/dist/deploy/react/HistoryTab.d.ts +43 -0
- package/dist/deploy/react/HistoryTab.js +12 -0
- package/dist/deploy/react/OverviewTab.d.ts +60 -0
- package/dist/deploy/react/OverviewTab.js +75 -0
- package/dist/deploy/react/PublishRunResult.d.ts +5 -1
- package/dist/deploy/react/PublishRunResult.js +4 -4
- package/dist/deploy/react/SiteUpdateNotice.d.ts +22 -0
- package/dist/deploy/react/SiteUpdateNotice.js +25 -0
- package/dist/deploy/react/StaticCredentialFields.d.ts +36 -0
- package/dist/deploy/react/StaticCredentialFields.js +63 -0
- package/dist/deploy/react/StaticCredentialSteps.d.ts +23 -0
- package/dist/deploy/react/StaticCredentialSteps.js +155 -0
- package/dist/deploy/react/StaticExportCard.d.ts +11 -0
- package/dist/deploy/react/StaticExportCard.js +97 -0
- package/dist/deploy/react/StaticPublishCredentials.d.ts +50 -0
- package/dist/deploy/react/StaticPublishCredentials.js +77 -0
- package/dist/deploy/react/StaticPublishForm.d.ts +12 -0
- package/dist/deploy/react/StaticPublishForm.js +91 -0
- package/dist/deploy/react/StaticSiteTab.d.ts +207 -0
- package/dist/deploy/react/StaticSiteTab.js +117 -0
- package/dist/deploy/react/deployment-visuals.d.ts +207 -0
- package/dist/deploy/react/deployment-visuals.js +101 -0
- package/dist/deploy/react/download-dockerfile.d.ts +14 -0
- package/dist/deploy/react/download-dockerfile.js +15 -0
- package/dist/deploy/react/hooks/publish-credential-draft.d.ts +33 -0
- package/dist/deploy/react/hooks/publish-credential-draft.js +54 -0
- package/dist/deploy/react/hooks/publish-credential-selection.d.ts +13 -0
- package/dist/deploy/react/hooks/publish-credential-selection.js +34 -0
- package/dist/deploy/react/hooks/publish-credential-writes.d.ts +20 -0
- package/dist/deploy/react/hooks/publish-credential-writes.js +99 -0
- package/dist/deploy/react/hooks/static-publish-actions.d.ts +10 -0
- package/dist/deploy/react/hooks/static-publish-actions.js +62 -0
- package/dist/deploy/react/hooks/static-publish-form.hooks.d.ts +38 -0
- package/dist/deploy/react/hooks/static-publish-form.hooks.js +103 -0
- package/dist/deploy/react/hooks/static-publish-run.hooks.d.ts +28 -0
- package/dist/deploy/react/hooks/static-publish-run.hooks.js +92 -0
- package/dist/deploy/react/hooks/use-dockerfile-source.hooks.d.ts +148 -0
- package/dist/deploy/react/hooks/use-dockerfile-source.hooks.js +155 -0
- package/dist/deploy/react/hooks/use-publish-credentials.hooks.d.ts +268 -0
- package/dist/deploy/react/hooks/use-publish-credentials.hooks.js +52 -0
- package/dist/deploy/react/hooks/use-static-export.hooks.d.ts +128 -0
- package/dist/deploy/react/hooks/use-static-export.hooks.js +159 -0
- package/dist/deploy/react/hooks/use-static-publish.hooks.d.ts +208 -0
- package/dist/deploy/react/hooks/use-static-publish.hooks.js +48 -0
- package/dist/deploy/react/index.d.ts +4 -0
- package/dist/deploy/react/index.js +2 -0
- package/dist/deploy/react/rules.d.ts +363 -0
- package/dist/deploy/react/rules.js +314 -0
- package/dist/deploy/react/use-deployment-overview.hooks.d.ts +41 -0
- package/dist/deploy/react/use-deployment-overview.hooks.js +11 -0
- package/dist/deploy/site/agent-tools.d.ts +42 -0
- package/dist/deploy/site/agent-tools.js +119 -0
- package/dist/deploy/site/deploy-config-registry.d.ts +155 -0
- package/dist/deploy/site/deploy-config-registry.js +124 -0
- package/dist/deploy/site/deploy-config.d.ts +97 -0
- package/dist/deploy/site/deploy-config.js +115 -0
- package/dist/deploy/site/deploy-ops/agent-tools.d.ts +22 -0
- package/dist/deploy/site/deploy-ops/agent-tools.js +76 -0
- package/dist/deploy/site/deploy-ops/registry.d.ts +134 -0
- package/dist/deploy/site/deploy-ops/registry.js +106 -0
- package/dist/deploy/site/deploy-ops/run-ops.d.ts +66 -0
- package/dist/deploy/site/deploy-ops/run-ops.js +34 -0
- package/dist/deploy/site/deploy-ops/secret-confirm.d.ts +36 -0
- package/dist/deploy/site/deploy-ops/secret-confirm.js +27 -0
- package/dist/deploy/site/deploy-targets/host-kit.d.ts +28 -0
- package/dist/deploy/site/deploy-targets/host-kit.js +120 -0
- package/dist/deploy/site/deploy-targets/registry.d.ts +157 -0
- package/dist/deploy/site/deploy-targets/registry.js +132 -0
- package/dist/deploy/site/deploy-targets/types.d.ts +27 -0
- package/dist/deploy/site/deploy-targets/types.js +2 -0
- package/dist/deploy/site/dockerfile.d.ts +137 -0
- package/dist/deploy/site/dockerfile.js +101 -0
- package/dist/deploy/site/export-run.d.ts +137 -0
- package/dist/deploy/site/export-run.js +152 -0
- package/dist/deploy/site/ports.d.ts +115 -0
- package/dist/deploy/site/ports.js +2 -0
- package/dist/deploy/site/publish-agent-tools.d.ts +18 -0
- package/dist/deploy/site/publish-agent-tools.js +120 -0
- package/dist/deploy/site/publish-candidate.d.ts +26 -0
- package/dist/deploy/site/publish-candidate.js +37 -0
- package/dist/deploy/site/publish-credentials/account-label-heal-scheduler.d.ts +78 -0
- package/dist/deploy/site/publish-credentials/account-label-heal-scheduler.js +88 -0
- package/dist/deploy/site/publish-credentials/compatibility-port.d.ts +38 -0
- package/dist/deploy/site/publish-credentials/compatibility-port.js +19 -0
- package/dist/deploy/site/publish-credentials/execution-mode.d.ts +43 -0
- package/dist/deploy/site/publish-credentials/execution-mode.js +19 -0
- package/dist/deploy/site/publish-credentials/store-owner.d.ts +11 -0
- package/dist/deploy/site/publish-credentials/store-owner.js +9 -0
- package/dist/deploy/site/publish-credentials/store-resolution.d.ts +55 -0
- package/dist/deploy/site/publish-credentials/store-resolution.js +100 -0
- package/dist/deploy/site/publish-credentials/store-validation.d.ts +68 -0
- package/dist/deploy/site/publish-credentials/store-validation.js +182 -0
- package/dist/deploy/site/publish-credentials/store.d.ts +322 -0
- package/dist/deploy/site/publish-credentials/store.js +372 -0
- package/dist/deploy/site/publish-credentials/types.d.ts +85 -0
- package/dist/deploy/site/publish-credentials/types.js +2 -0
- package/dist/deploy/site/publish-tool-capabilities.d.ts +123 -0
- package/dist/deploy/site/publish-tool-capabilities.js +175 -0
- package/dist/deploy/site/publish-tool-credential.d.ts +48 -0
- package/dist/deploy/site/publish-tool-credential.js +284 -0
- package/dist/deploy/site/publish-tool-deps.d.ts +205 -0
- package/dist/deploy/site/publish-tool-deps.js +15 -0
- package/dist/deploy/site/publish-tool-execution.d.ts +78 -0
- package/dist/deploy/site/publish-tool-execution.js +313 -0
- package/dist/deploy/site/publish-tool-schema.d.ts +29 -0
- package/dist/deploy/site/publish-tool-schema.js +38 -0
- package/dist/deploy/site/static-publish/adapter-export.d.ts +54 -0
- package/dist/deploy/site/static-publish/adapter-export.js +89 -0
- package/dist/deploy/site/static-publish/adapter-plan.d.ts +99 -0
- package/dist/deploy/site/static-publish/adapter-plan.js +112 -0
- package/dist/deploy/site/static-publish/adapter.d.ts +182 -0
- package/dist/deploy/site/static-publish/adapter.js +321 -0
- package/dist/deploy/site/static-publish/admin-publish-read.d.ts +209 -0
- package/dist/deploy/site/static-publish/admin-publish-read.js +116 -0
- package/dist/deploy/site/static-publish/credentials.d.ts +110 -0
- package/dist/deploy/site/static-publish/credentials.js +290 -0
- package/dist/deploy/site/static-publish/domain-publish-rows.d.ts +25 -0
- package/dist/deploy/site/static-publish/domain-publish-rows.js +43 -0
- package/dist/deploy/site/static-publish/domain-publish-tool.d.ts +19 -0
- package/dist/deploy/site/static-publish/domain-publish-tool.js +111 -0
- package/dist/deploy/site/static-publish/inspection.d.ts +24 -0
- package/dist/deploy/site/static-publish/inspection.js +69 -0
- package/dist/deploy/site/static-publish/publish-history.d.ts +197 -0
- package/dist/deploy/site/static-publish/publish-history.js +153 -0
- package/dist/deploy/site/static-publish/publish-run.d.ts +156 -0
- package/dist/deploy/site/static-publish/publish-run.js +186 -0
- package/dist/deploy/site/static-publish/types.d.ts +165 -0
- package/dist/deploy/site/static-publish/types.js +2 -0
- package/dist/deploy/site/static-publish/verify.d.ts +217 -0
- package/dist/deploy/site/static-publish/verify.js +248 -0
- package/dist/deploy/site/tool-registrations.d.ts +97 -0
- package/dist/deploy/site/tool-registrations.js +130 -0
- package/dist/deploy/site/types.d.ts +51 -0
- package/dist/deploy/site/types.js +2 -0
- package/dist/deploy/site-update/check-for-update.d.ts +19 -0
- package/dist/deploy/site-update/check-for-update.js +19 -0
- package/dist/deploy/site-update/contracts.d.ts +161 -0
- package/dist/deploy/site-update/contracts.js +94 -0
- package/dist/deploy/site-update/desktop-site-update.d.ts +66 -0
- package/dist/deploy/site-update/desktop-site-update.js +43 -0
- package/dist/deploy/site-update/fake-site-update.d.ts +39 -0
- package/dist/deploy/site-update/fake-site-update.js +52 -0
- package/dist/deploy/site-update/run-site-update.d.ts +121 -0
- package/dist/deploy/site-update/run-site-update.js +219 -0
- package/dist/deploy/site-update/self-hosted-site-update.d.ts +71 -0
- package/dist/deploy/site-update/self-hosted-site-update.js +79 -0
- package/dist/deploy/target-contracts.d.ts +3 -0
- package/dist/deploy/tool.d.ts +5 -8
- package/dist/deploy/tool.js +6 -9
- package/dist/dns/binding-sweeper.d.ts +72 -0
- package/dist/dns/binding-sweeper.js +53 -0
- package/dist/dns/index.d.ts +1 -0
- package/dist/dns/index.js +1 -0
- package/dist/dns/site/binding.repo.d.ts +71 -0
- package/dist/dns/site/binding.repo.js +45 -0
- package/dist/dns/site/dns-changes.d.ts +90 -0
- package/dist/dns/site/dns-changes.js +271 -0
- package/dist/dns/site/dns-tools.d.ts +46 -0
- package/dist/dns/site/dns-tools.js +204 -0
- package/dist/dns/site/mail-dns-status.d.ts +111 -0
- package/dist/dns/site/mail-dns-status.js +190 -0
- package/dist/dns/site/mail-dns-tools.d.ts +33 -0
- package/dist/dns/site/mail-dns-tools.js +62 -0
- package/dist/dns/site/mail-requirements.d.ts +30 -0
- package/dist/dns/site/mail-requirements.js +78 -0
- package/dist/dns/site/tool-deps.d.ts +21 -0
- package/dist/dns/site/tool-deps.js +2 -0
- package/dist/dns/site/tools.d.ts +74 -0
- package/dist/dns/site/tools.js +124 -0
- package/dist/local-dev/bind-host.d.ts +80 -0
- package/dist/local-dev/bind-host.js +90 -0
- package/dist/local-dev/dev-proxy-upstream.d.ts +69 -0
- package/dist/local-dev/dev-proxy-upstream.js +63 -0
- package/dist/local-dev/index.d.ts +28 -0
- package/dist/local-dev/index.js +25 -0
- package/dist/packaging/electron/archive.d.ts +2 -9
- package/dist/packaging/electron/asar-adapter.d.ts +2 -1
- package/dist/packaging/electron/entry.d.ts +2 -0
- package/dist/packaging/electron/move-to-applications.d.ts +165 -0
- package/dist/packaging/electron/move-to-applications.js +162 -0
- package/dist/packaging/electron/policies.d.ts +33 -4
- package/dist/packaging/electron/policies.js +29 -10
- package/dist/packaging/electron/ports.d.ts +1 -6
- package/dist/packaging/electron/staging.d.ts +11 -2
- package/dist/packaging/electron/staging.js +15 -5
- package/dist/react/site-share-expiry/ShareExpiryControls.d.ts +29 -0
- package/dist/react/site-share-expiry/ShareExpiryControls.js +7 -0
- package/dist/react/site-share-expiry/index.d.ts +2 -0
- package/dist/react/site-share-expiry/index.js +2 -0
- package/dist/source-control/react/ProvidersTab.d.ts +98 -0
- package/dist/source-control/react/ProvidersTab.js +195 -0
- package/dist/source-control/react/SourceControl.d.ts +51 -0
- package/dist/source-control/react/SourceControl.js +61 -0
- package/dist/source-control/react/hooks/use-source-control-credentials.hooks.d.ts +128 -0
- package/dist/source-control/react/hooks/use-source-control-credentials.hooks.js +102 -0
- package/dist/source-control/react/rules.d.ts +167 -0
- package/dist/source-control/react/rules.js +125 -0
- package/dist/source-control/react/source-control-visuals.d.ts +75 -0
- package/dist/source-control/react/source-control-visuals.js +48 -0
- package/dist/source-control/site/agent-tools.d.ts +5 -0
- package/dist/source-control/site/agent-tools.js +30 -0
- package/dist/source-control/site/bundled-provider-registry.d.ts +33 -0
- package/dist/source-control/site/bundled-provider-registry.js +37 -0
- package/dist/source-control/site/commit-schema.d.ts +40 -0
- package/dist/source-control/site/commit-schema.js +29 -0
- package/dist/source-control/site/commit-target.d.ts +26 -0
- package/dist/source-control/site/commit-target.js +58 -0
- package/dist/source-control/site/credential-form.d.ts +36 -0
- package/dist/source-control/site/credential-form.js +102 -0
- package/dist/source-control/site/credential-setup.d.ts +107 -0
- package/dist/source-control/site/credential-setup.js +216 -0
- package/dist/source-control/site/provider-kit.d.ts +37 -0
- package/dist/source-control/site/provider-kit.js +35 -0
- package/dist/source-control/site/provider-module.d.ts +251 -0
- package/dist/source-control/site/provider-module.js +2 -0
- package/dist/source-control/site/saved-key-bindings.d.ts +4 -0
- package/dist/source-control/site/saved-key-bindings.js +4 -0
- package/dist/source-control/site/static-site-packager-port.d.ts +37 -0
- package/dist/source-control/site/static-site-packager-port.js +2 -0
- package/dist/source-control/site/store.d.ts +209 -0
- package/dist/source-control/site/store.js +374 -0
- package/dist/source-control/site/store.validation.d.ts +72 -0
- package/dist/source-control/site/store.validation.js +168 -0
- package/dist/source-control/site/tool-registrations.d.ts +190 -0
- package/dist/source-control/site/tool-registrations.js +379 -0
- package/dist/static-export/site/export-preflight.d.ts +48 -0
- package/dist/static-export/site/export-preflight.js +82 -0
- package/dist/static-export/site/media-original-urls.d.ts +57 -0
- package/dist/static-export/site/media-original-urls.js +109 -0
- package/dist/static-export/site/ports.d.ts +82 -0
- package/dist/static-export/site/ports.js +29 -0
- package/dist/static-export/site/public-origin-policy.d.ts +32 -0
- package/dist/static-export/site/public-origin-policy.js +68 -0
- package/dist/static-export/site/route-manifest.d.ts +65 -0
- package/dist/static-export/site/route-manifest.js +139 -0
- package/dist/static-export/site/site-exporter.d.ts +158 -0
- package/dist/static-export/site/site-exporter.js +112 -0
- package/dist/static-export/site/static-security-headers.d.ts +39 -0
- package/dist/static-export/site/static-security-headers.js +43 -0
- package/dist/static-export/site/theme-preview-manifest.d.ts +35 -0
- package/dist/static-export/site/theme-preview-manifest.js +28 -0
- package/package.json +911 -7
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/** Source-control commit input, shared by registration and approval consumers. */
|
|
2
|
+
export declare const executeCommitSchema: {
|
|
3
|
+
readonly type: "object";
|
|
4
|
+
readonly additionalProperties: false;
|
|
5
|
+
readonly required: readonly ["provider", "owner", "repo", "commitMessage"];
|
|
6
|
+
readonly properties: {
|
|
7
|
+
readonly provider: {
|
|
8
|
+
readonly type: "string";
|
|
9
|
+
readonly title: "Host";
|
|
10
|
+
readonly description: "Which source control host to commit to: a providerId source_control_get_capabilities lists with commitSupported: true. Call that first; a host listed with commitSupported: false is refused.";
|
|
11
|
+
};
|
|
12
|
+
readonly owner: {
|
|
13
|
+
readonly type: "string";
|
|
14
|
+
readonly description: "Owner or organization login that owns the target repository on the host.";
|
|
15
|
+
};
|
|
16
|
+
readonly repo: {
|
|
17
|
+
readonly type: "string";
|
|
18
|
+
readonly title: "Repository";
|
|
19
|
+
readonly description: "Repository name to commit to.";
|
|
20
|
+
};
|
|
21
|
+
readonly folder: {
|
|
22
|
+
readonly type: "string";
|
|
23
|
+
readonly title: "Target folder";
|
|
24
|
+
readonly description: "Optional folder inside the repository, for example static_sites. Omit or use an empty string for repository root. Re-commits replace generated files here and remove unchanged stale files previously managed here; unrelated files and files outside this folder are preserved.";
|
|
25
|
+
};
|
|
26
|
+
readonly branch: {
|
|
27
|
+
readonly type: "string";
|
|
28
|
+
readonly description: "Branch to commit to. Optional; when omitted, the repository's own default branch is used. If the named branch does not exist yet, it is created from this commit. If it exists, this commit is added on top of its current history. NEVER force-pushed: if the branch has moved since this call read its head (someone else pushed to it), the commit is refused rather than overwriting that history, and the result is {committed:false, code:'DIVERGED_BRANCH'}.";
|
|
29
|
+
};
|
|
30
|
+
readonly commitMessage: {
|
|
31
|
+
readonly type: "string";
|
|
32
|
+
readonly description: "The git commit message. 1-500 characters.";
|
|
33
|
+
};
|
|
34
|
+
readonly dryRun: {
|
|
35
|
+
readonly type: "boolean";
|
|
36
|
+
readonly description: "Pass dryRun: true first to see how many files the export would commit, without contacting the host. Optional; defaults to false.";
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=commit-schema.d.ts.map
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/** Source-control commit input, shared by registration and approval consumers. */
|
|
2
|
+
export const executeCommitSchema = {
|
|
3
|
+
type: "object",
|
|
4
|
+
additionalProperties: false,
|
|
5
|
+
required: ["provider", "owner", "repo", "commitMessage"],
|
|
6
|
+
properties: {
|
|
7
|
+
provider: {
|
|
8
|
+
type: "string",
|
|
9
|
+
title: "Host",
|
|
10
|
+
description: "Which source control host to commit to: a providerId source_control_get_capabilities lists with commitSupported: true. Call that first; a host listed with commitSupported: false is refused.",
|
|
11
|
+
},
|
|
12
|
+
owner: { type: "string", description: "Owner or organization login that owns the target repository on the host." },
|
|
13
|
+
repo: { type: "string", title: "Repository", description: "Repository name to commit to." },
|
|
14
|
+
folder: {
|
|
15
|
+
type: "string", title: "Target folder",
|
|
16
|
+
description: "Optional folder inside the repository, for example static_sites. Omit or use an empty string for repository root. Re-commits replace generated files here and remove unchanged stale files previously managed here; unrelated files and files outside this folder are preserved.",
|
|
17
|
+
},
|
|
18
|
+
branch: {
|
|
19
|
+
type: "string",
|
|
20
|
+
description: "Branch to commit to. Optional; when omitted, the repository's own default branch is used. If the named branch does not exist yet, it is created from this commit. If it exists, this commit is added on top of its current history. NEVER force-pushed: if the branch has moved since this call read its head (someone else pushed to it), the commit is refused rather than overwriting that history, and the result is {committed:false, code:'DIVERGED_BRANCH'}.",
|
|
21
|
+
},
|
|
22
|
+
commitMessage: { type: "string", description: "The git commit message. 1-500 characters." },
|
|
23
|
+
dryRun: {
|
|
24
|
+
type: "boolean",
|
|
25
|
+
description: "Pass dryRun: true first to see how many files the export would commit, without contacting the host. Optional; defaults to false.",
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=commit-schema.js.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { RepositoryTargetValidator } from "./provider-module.js";
|
|
2
|
+
/**
|
|
3
|
+
* Validates a commit target's shape. Called twice by design: once by `tool-registrations.ts`'s handler
|
|
4
|
+
* BEFORE opening the confirmation dialog (a caller with an invalid target never causes a dialog to be
|
|
5
|
+
* raised — same discipline `deployment_execute_static_publish` applies to its own early
|
|
6
|
+
* `validateStaticPublishConfig` call), and again here, defense-in-depth, for any future caller of
|
|
7
|
+
* {@link commitSiteToSourceControl} that skips the tool layer's own check.
|
|
8
|
+
*
|
|
9
|
+
* Owner/repo rules belong to the host: `validateTarget` is the plugin module's own check, run first,
|
|
10
|
+
* then the generic one-path-segment rule (`repositoryTargetError` in `@jini-ai/devops/source-control`,
|
|
11
|
+
* shared with the other writers).
|
|
12
|
+
*
|
|
13
|
+
* @returns `null` when valid, else a human-readable reason safe to return over a tool-result boundary
|
|
14
|
+
* (never echoes more than the offending field, capped, never a token — there is none in scope here).
|
|
15
|
+
* @complexity O(1) — a handful of fixed-size regex tests.
|
|
16
|
+
*/
|
|
17
|
+
export declare function validateCommitTarget(input: {
|
|
18
|
+
owner: string;
|
|
19
|
+
repo: string;
|
|
20
|
+
branch?: string;
|
|
21
|
+
folder?: string;
|
|
22
|
+
commitMessage: string;
|
|
23
|
+
}, { validateTarget }?: {
|
|
24
|
+
validateTarget?: RepositoryTargetValidator;
|
|
25
|
+
}): string | null;
|
|
26
|
+
//# sourceMappingURL=commit-target.d.ts.map
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { normalizeRepositoryFolder } from "../repository-path.js";
|
|
2
|
+
import { repositoryTargetError } from "../repository-target.js";
|
|
3
|
+
/**
|
|
4
|
+
* @file The commit-target shape check `source_control_execute_commit` runs twice (before its confirmation dialog,
|
|
5
|
+
* and again inside the host's `commitSiteToSourceControl`). Its own file so the host's commit binding stays a thin
|
|
6
|
+
* binding over `@jini-ai/devops/source-control`: that entry's `validateCommitTarget` checks the branch only against its
|
|
7
|
+
* name pattern and never the folder, so this stricter site rule lives here beside it.
|
|
8
|
+
*/
|
|
9
|
+
/** Git branch name — permissive (real branch names allow far more), but refuses whitespace/control
|
|
10
|
+
* characters before the value reaches a URL path segment. */
|
|
11
|
+
const BRANCH_PATTERN = /^[A-Za-z0-9._/-]{1,250}$/;
|
|
12
|
+
/** Git's own ref-name rules for the parts the pattern allows: no `..` anywhere (it would let fetch
|
|
13
|
+
* normalize `refs/heads/../../x` into another API path called with the user's token), no empty or
|
|
14
|
+
* dot-led component and no `.lock` component. @complexity O(n) in the (≤250-char) name. */
|
|
15
|
+
function isValidBranchName({ branch }, _optional = {}) {
|
|
16
|
+
return BRANCH_PATTERN.test(branch) && !branch.includes("..")
|
|
17
|
+
&& !branch.split("/").some(part => part === "" || part.startsWith(".") || part.endsWith(".lock"));
|
|
18
|
+
}
|
|
19
|
+
const MAX_COMMIT_MESSAGE_LENGTH = 500;
|
|
20
|
+
/**
|
|
21
|
+
* Validates a commit target's shape. Called twice by design: once by `tool-registrations.ts`'s handler
|
|
22
|
+
* BEFORE opening the confirmation dialog (a caller with an invalid target never causes a dialog to be
|
|
23
|
+
* raised — same discipline `deployment_execute_static_publish` applies to its own early
|
|
24
|
+
* `validateStaticPublishConfig` call), and again here, defense-in-depth, for any future caller of
|
|
25
|
+
* {@link commitSiteToSourceControl} that skips the tool layer's own check.
|
|
26
|
+
*
|
|
27
|
+
* Owner/repo rules belong to the host: `validateTarget` is the plugin module's own check, run first,
|
|
28
|
+
* then the generic one-path-segment rule (`repositoryTargetError` in `@jini-ai/devops/source-control`,
|
|
29
|
+
* shared with the other writers).
|
|
30
|
+
*
|
|
31
|
+
* @returns `null` when valid, else a human-readable reason safe to return over a tool-result boundary
|
|
32
|
+
* (never echoes more than the offending field, capped, never a token — there is none in scope here).
|
|
33
|
+
* @complexity O(1) — a handful of fixed-size regex tests.
|
|
34
|
+
*/
|
|
35
|
+
export function validateCommitTarget(input, { validateTarget } = {}) {
|
|
36
|
+
// The owner/repo check every source-control write runs before anything is built or sent: this
|
|
37
|
+
// file (`source_control_execute_commit`), `custom_credential_write_files` and `site_backup_plan`.
|
|
38
|
+
// The host's own, stricter rules come first (the plugin module's `validateTarget`, e.g. GitHub's
|
|
39
|
+
// name patterns and its "invalid GitHub owner" text live in the `github` plugin), so a host's
|
|
40
|
+
// refusal reads the same whichever tool hit it. Then one generic rule applies to every host: each
|
|
41
|
+
// value is one URL path segment.
|
|
42
|
+
const targetError = repositoryTargetError({ owner: input.owner, repo: input.repo }, validateTarget ? { validateTarget } : {});
|
|
43
|
+
if (targetError !== null)
|
|
44
|
+
return targetError;
|
|
45
|
+
try {
|
|
46
|
+
normalizeRepositoryFolder({ folder: input.folder });
|
|
47
|
+
}
|
|
48
|
+
catch (error) {
|
|
49
|
+
return error.message;
|
|
50
|
+
}
|
|
51
|
+
if (input.branch !== undefined && !isValidBranchName({ branch: input.branch }))
|
|
52
|
+
return `invalid branch name '${input.branch.slice(0, 60)}'`;
|
|
53
|
+
if (input.commitMessage.trim() === "" || input.commitMessage.length > MAX_COMMIT_MESSAGE_LENGTH) {
|
|
54
|
+
return `commitMessage must be 1-${MAX_COMMIT_MESSAGE_LENGTH} characters`;
|
|
55
|
+
}
|
|
56
|
+
return null;
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=commit-target.js.map
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file The saved-credential form a git-host plugin declares for its host, under `credential` in its
|
|
3
|
+
* `jini-source-control.json` entry (`./provider-registry.ts`): what a person is asked for on the
|
|
4
|
+
* admin Source Control page, the scope guidance shown beside it and where to create the token. Data
|
|
5
|
+
* only, so the admin renders a host's form without core naming the host. Field names are the keys
|
|
6
|
+
* of the saved connection (`token`, and e.g. `username` for a host that authenticates the pair).
|
|
7
|
+
*
|
|
8
|
+
* Mirrors the deploy target credential block (the host's deploy-target registry's
|
|
9
|
+
* `parseCredentialSpec`) minus its vendor-id and account-label parts, which have no use here.
|
|
10
|
+
*/
|
|
11
|
+
export interface SourceControlCredentialField {
|
|
12
|
+
readonly name: string;
|
|
13
|
+
readonly label: string;
|
|
14
|
+
readonly required: boolean;
|
|
15
|
+
/** Never echoed back once saved; the form renders it as a password input. */
|
|
16
|
+
readonly secret?: true;
|
|
17
|
+
}
|
|
18
|
+
export interface SourceControlCredentialForm {
|
|
19
|
+
/** Person-facing guidance shown beside the form (which token, which scopes). */
|
|
20
|
+
readonly help?: string;
|
|
21
|
+
/** Where to create the token (https). */
|
|
22
|
+
readonly tokenPageUrl?: string;
|
|
23
|
+
/** Which field holds the token; always a declared, secret field. */
|
|
24
|
+
readonly tokenField: string;
|
|
25
|
+
readonly fields: readonly SourceControlCredentialField[];
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* A provider's `credential` block (absent = none declared), or the reason it is invalid.
|
|
29
|
+
*
|
|
30
|
+
* @complexity O(f²) time and O(f) space in the declared field count (at most 10).
|
|
31
|
+
*/
|
|
32
|
+
export declare function parseSourceControlCredentialForm({ value, at }: {
|
|
33
|
+
value: unknown;
|
|
34
|
+
at: string;
|
|
35
|
+
}, _optional?: {}): SourceControlCredentialForm | undefined | string;
|
|
36
|
+
//# sourceMappingURL=credential-form.d.ts.map
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file The saved-credential form a git-host plugin declares for its host, under `credential` in its
|
|
3
|
+
* `jini-source-control.json` entry (`./provider-registry.ts`): what a person is asked for on the
|
|
4
|
+
* admin Source Control page, the scope guidance shown beside it and where to create the token. Data
|
|
5
|
+
* only, so the admin renders a host's form without core naming the host. Field names are the keys
|
|
6
|
+
* of the saved connection (`token`, and e.g. `username` for a host that authenticates the pair).
|
|
7
|
+
*
|
|
8
|
+
* Mirrors the deploy target credential block (the host's deploy-target registry's
|
|
9
|
+
* `parseCredentialSpec`) minus its vendor-id and account-label parts, which have no use here.
|
|
10
|
+
*/
|
|
11
|
+
const FIELD_NAME_PATTERN = /^[a-z][A-Za-z0-9]{0,63}$/;
|
|
12
|
+
const MAX_FIELDS = 10;
|
|
13
|
+
const MAX_LABEL_LENGTH = 100;
|
|
14
|
+
const MAX_HELP_LENGTH = 500;
|
|
15
|
+
/** A saved connection's own discriminant, so a field of that name would be ambiguous. */
|
|
16
|
+
const RESERVED_FIELD_NAMES = new Set(["providerId"]);
|
|
17
|
+
/**
|
|
18
|
+
* A provider's `credential` block (absent = none declared), or the reason it is invalid.
|
|
19
|
+
*
|
|
20
|
+
* @complexity O(f²) time and O(f) space in the declared field count (at most 10).
|
|
21
|
+
*/
|
|
22
|
+
export function parseSourceControlCredentialForm({ value, at }, _optional = {}) {
|
|
23
|
+
if (value === undefined)
|
|
24
|
+
return undefined;
|
|
25
|
+
if (!isPlainObject(value))
|
|
26
|
+
return `${at} must be an object`;
|
|
27
|
+
const details = parseFormDetails({ value, at });
|
|
28
|
+
if (typeof details === "string")
|
|
29
|
+
return details;
|
|
30
|
+
const parsed = parseFields({ fields: value.fields, at });
|
|
31
|
+
if (typeof parsed === "string")
|
|
32
|
+
return parsed;
|
|
33
|
+
const { tokenField = "token" } = value;
|
|
34
|
+
const token = parsed.find((field) => field.name === tokenField);
|
|
35
|
+
if (token === undefined || token.secret !== true)
|
|
36
|
+
return `${at}.tokenField must name a declared secret field`;
|
|
37
|
+
return { ...details, tokenField: token.name, fields: parsed };
|
|
38
|
+
}
|
|
39
|
+
/** Validate optional form guidance before inspecting fields, preserving error precedence. @complexity O(1). */
|
|
40
|
+
function parseFormDetails({ value, at }, _options = {}) {
|
|
41
|
+
const { help, tokenPageUrl } = value;
|
|
42
|
+
if (help !== undefined && (typeof help !== "string" || help.length > MAX_HELP_LENGTH))
|
|
43
|
+
return `${at}.help must be a string of at most ${MAX_HELP_LENGTH} characters`;
|
|
44
|
+
if (tokenPageUrl !== undefined && !isHttpsUrl(tokenPageUrl))
|
|
45
|
+
return `${at}.tokenPageUrl must be an https URL`;
|
|
46
|
+
return {
|
|
47
|
+
...(help !== undefined ? { help: help } : {}),
|
|
48
|
+
...(tokenPageUrl !== undefined ? { tokenPageUrl } : {}),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
/** Parse the bounded list in order; the first invalid or duplicate field wins. @complexity O(f²), f <= 10. */
|
|
52
|
+
function parseFields({ fields, at }, _options = {}) {
|
|
53
|
+
if (!Array.isArray(fields) || fields.length === 0 || fields.length > MAX_FIELDS)
|
|
54
|
+
return `${at}.fields must be a list of 1 to ${MAX_FIELDS} fields`;
|
|
55
|
+
const parsed = [];
|
|
56
|
+
for (const [index, entry] of fields.entries()) {
|
|
57
|
+
const field = parseField({ entry, at: `${at}.fields[${index}]` });
|
|
58
|
+
if (typeof field === "string")
|
|
59
|
+
return field;
|
|
60
|
+
if (parsed.some((seen) => seen.name === field.name))
|
|
61
|
+
return `${at}.fields[${index}].name '${field.name}' is declared twice`;
|
|
62
|
+
parsed.push(field);
|
|
63
|
+
}
|
|
64
|
+
return parsed;
|
|
65
|
+
}
|
|
66
|
+
function parseField({ entry, at }, _optional = {}) {
|
|
67
|
+
if (!isPlainObject(entry))
|
|
68
|
+
return `${at} must be an object`;
|
|
69
|
+
const { name, label, required, secret } = entry;
|
|
70
|
+
if (typeof name !== "string" || !FIELD_NAME_PATTERN.test(name))
|
|
71
|
+
return `${at}.name must be a camelCase identifier`;
|
|
72
|
+
if (RESERVED_FIELD_NAMES.has(name))
|
|
73
|
+
return `${at}.name '${name}' is reserved`;
|
|
74
|
+
if (typeof label !== "string" || label.trim() === "" || label.length > MAX_LABEL_LENGTH)
|
|
75
|
+
return `${at}.label must be a non-empty string`;
|
|
76
|
+
const flags = parseFieldFlags({ required, secret, at });
|
|
77
|
+
if (typeof flags === "string")
|
|
78
|
+
return flags;
|
|
79
|
+
return { name, label, ...flags };
|
|
80
|
+
}
|
|
81
|
+
/** Optional booleans default to false; false secret flags stay omitted. @complexity O(1). */
|
|
82
|
+
function parseFieldFlags({ required, secret, at }, _options = {}) {
|
|
83
|
+
if (required !== undefined && typeof required !== "boolean")
|
|
84
|
+
return `${at}.required must be a boolean`;
|
|
85
|
+
if (secret !== undefined && typeof secret !== "boolean")
|
|
86
|
+
return `${at}.secret must be a boolean`;
|
|
87
|
+
return { required: required === true, ...(secret === true ? { secret: true } : {}) };
|
|
88
|
+
}
|
|
89
|
+
function isHttpsUrl(value) {
|
|
90
|
+
if (typeof value !== "string" || value.length > 500)
|
|
91
|
+
return false;
|
|
92
|
+
try {
|
|
93
|
+
return new URL(value).protocol === "https:";
|
|
94
|
+
}
|
|
95
|
+
catch {
|
|
96
|
+
return false;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
function isPlainObject(value) {
|
|
100
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
101
|
+
}
|
|
102
|
+
//# sourceMappingURL=credential-form.js.map
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import type { SecretCardForm } from "@jini-ai/core/contracts/cards";
|
|
2
|
+
import type { PluginCredentialCard } from "@jini-ai/core/contracts/credentials";
|
|
3
|
+
type LoadPluginCredentialCards = (workspaceId: string) => Promise<readonly PluginCredentialCard[]>;
|
|
4
|
+
declare const findPluginCredentialCard: (required: {
|
|
5
|
+
loadCards?: LoadPluginCredentialCards | undefined;
|
|
6
|
+
workspaceId: string;
|
|
7
|
+
saveKind: PluginCredentialCard["saveKind"];
|
|
8
|
+
target: string;
|
|
9
|
+
}, optional?: Record<string, never>) => Promise<PluginCredentialCard | undefined>;
|
|
10
|
+
import type { CredentialTokenHint, CredentialConnection } from "@jini-ai/core/contracts/site/secrets-credential-token";
|
|
11
|
+
import type { OperatorLocaleDeps } from '@jini-ai/core/contracts/headless/plugin-host';
|
|
12
|
+
import { type ToolExecutionOptions, type ToolExecutionContext } from '@jini-ai/core';
|
|
13
|
+
import type { SurfaceCardsPort } from "@jini-ai/core/contracts/cards";
|
|
14
|
+
declare const defineSecretCardTool: SurfaceCardsPort["defineSecretCardTool"];
|
|
15
|
+
import type { SurfaceAskThenReport } from "@jini-ai/core";
|
|
16
|
+
import type { AssistantSurfaceDeps } from "@jini-ai/core/contracts/site/daemon-surface-exchanges";
|
|
17
|
+
import { type SourceControlCredentialWriteDeps } from './store.js';
|
|
18
|
+
import type { LoadSourceControlProviders } from './store.js';
|
|
19
|
+
import type { AuthorizeFn } from '@jini-ai/core/contracts/events';
|
|
20
|
+
/** Narrow save dependencies; independent of the registration module to avoid a type-import cycle.
|
|
21
|
+
* `loadSourceControlProviders` is required: the composition root (`tool-registrations.ts`) resolves the
|
|
22
|
+
* installed-plugins default, so this module never reads a workspace it was not handed. */
|
|
23
|
+
export interface SourceControlCredentialSetupDeps extends OperatorLocaleDeps {
|
|
24
|
+
deps: SourceControlCredentialWriteDeps["deps"] & {
|
|
25
|
+
CREDENTIAL_MESSAGES: Readonly<Record<"showSecret" | "hideSecret" | "generationUnavailable" | "secretValue" | "saveSecret" | "cancel" | "secretForm" | "env" | "url" | "set" | "storage" | "savedTitle" | "blank" | "limit" | "ascii" | "control" | "plain" | "saved" | "connected" | "auth" | "timeout" | "unreachable" | "chars", string>>;
|
|
26
|
+
abortGuardedCredentialRepo<T extends {
|
|
27
|
+
readonly vault?: import("@jini-ai/core/contracts/vault").VaultRepoPort;
|
|
28
|
+
}>(required: {
|
|
29
|
+
store: T;
|
|
30
|
+
signal: AbortSignal;
|
|
31
|
+
}, optional?: Record<string, never>): T;
|
|
32
|
+
};
|
|
33
|
+
defineSecretCardTool: typeof defineSecretCardTool;
|
|
34
|
+
applyPluginCredentialCard: (required: {
|
|
35
|
+
card?: PluginCredentialCard;
|
|
36
|
+
form: SecretCardForm;
|
|
37
|
+
}) => SecretCardForm;
|
|
38
|
+
findPluginCredentialCard: typeof findPluginCredentialCard;
|
|
39
|
+
askThenReport: SurfaceAskThenReport;
|
|
40
|
+
credentialSaveToolId: string;
|
|
41
|
+
credentialFormUriHost: string;
|
|
42
|
+
backupRepositoryRules: string;
|
|
43
|
+
credentialText: (required: {
|
|
44
|
+
id: keyof SourceControlCredentialSetupDeps["deps"]["CREDENTIAL_MESSAGES"];
|
|
45
|
+
locale: string;
|
|
46
|
+
}) => string;
|
|
47
|
+
formatCredentialHint: (required: {
|
|
48
|
+
hint: CredentialTokenHint | null | undefined;
|
|
49
|
+
locale: string;
|
|
50
|
+
}) => string;
|
|
51
|
+
reportCredentialFailure: (message: string) => void;
|
|
52
|
+
assertCredentialFreeField: SourceControlCredentialWriteDeps["assertCredentialFreeField"];
|
|
53
|
+
buildSourceControlProvider: SourceControlCredentialWriteDeps["buildSourceControlProvider"];
|
|
54
|
+
isProjectKeyCreateConflictError: SourceControlCredentialWriteDeps["isProjectKeyCreateConflictError"];
|
|
55
|
+
readonly loadPluginCredentialCards?: LoadPluginCredentialCards;
|
|
56
|
+
workspaceId: string;
|
|
57
|
+
authorize: AuthorizeFn;
|
|
58
|
+
sourceControlCredentialSetRepo: SourceControlCredentialWriteDeps['repo'];
|
|
59
|
+
siteAssistantSecretSealer: SourceControlCredentialWriteDeps['sealer'];
|
|
60
|
+
siteAssistantSecretKeyring: SourceControlCredentialWriteDeps['keyring'];
|
|
61
|
+
clock: SourceControlCredentialWriteDeps['clock'];
|
|
62
|
+
idGen: SourceControlCredentialWriteDeps['idGen'];
|
|
63
|
+
/** `RouteDeps.customCredentialsHttpClient`: the guarded client the save-time identity probe goes through. */
|
|
64
|
+
customCredentialsHttpClient?: SourceControlCredentialWriteDeps['httpClient'];
|
|
65
|
+
loadSourceControlProviders: LoadSourceControlProviders;
|
|
66
|
+
}
|
|
67
|
+
/** Human-only credential setup; model inputs/results never carry connection fields or raw errors. */
|
|
68
|
+
interface ProposalResult {
|
|
69
|
+
saved: boolean;
|
|
70
|
+
credentialId: string | null;
|
|
71
|
+
provider: string;
|
|
72
|
+
label: string;
|
|
73
|
+
cancelled?: boolean;
|
|
74
|
+
message?: string;
|
|
75
|
+
tokenHint?: CredentialTokenHint | null;
|
|
76
|
+
connection?: CredentialConnection;
|
|
77
|
+
}
|
|
78
|
+
/** Why nothing was saved, one per cause. Demo dry run 2026-10-05: all three used to return the same
|
|
79
|
+
* `{saved: false}`, so a person's Cancel was reported as "Either it was closed or the save failed". */
|
|
80
|
+
export declare const PROPOSE_CREDENTIAL_CANCELLED = "The person cancelled the form. Nothing was saved.";
|
|
81
|
+
export declare const PROPOSE_CREDENTIAL_CLOSED = "The form closed without an answer (it timed out or the chat run ended). Nothing was saved.";
|
|
82
|
+
export declare const PROPOSE_CREDENTIAL_ABORTED = "The chat run ended before the form opened. Nothing was saved.";
|
|
83
|
+
export declare const PROPOSE_CREDENTIAL_SAVE_FAILED = "The person submitted the form but the token could not be saved; the form told them why. Nothing was saved.";
|
|
84
|
+
/** Opens the registry-defined human form and parks this tool call until answered or aborted.
|
|
85
|
+
* @param spec - Tool context, explicit store dependencies and the shared exchange store.
|
|
86
|
+
* @example await proposeSourceControlCredential({ ctx, deps, surfaces });
|
|
87
|
+
* @returns Safe save status; throws ToolInputError for invalid model input or absent form channel.
|
|
88
|
+
* @complexity Time O(p + f) provider/field count before one existing credential save; space O(f).
|
|
89
|
+
*/
|
|
90
|
+
export declare function proposeSourceControlCredential(spec: {
|
|
91
|
+
ctx: ToolExecutionContext;
|
|
92
|
+
deps: SourceControlCredentialSetupDeps;
|
|
93
|
+
surfaces: AssistantSurfaceDeps;
|
|
94
|
+
}, optional?: ToolExecutionOptions): Promise<ProposalResult>;
|
|
95
|
+
type SourceControlSetRepo = SourceControlCredentialSetupDeps['sourceControlCredentialSetRepo'];
|
|
96
|
+
/**
|
|
97
|
+
* Guards every write of the store (insert, update, delete, account label, vault, project half) so a run
|
|
98
|
+
* that ended while the async seal was pending writes nothing more. Reads pass straight through.
|
|
99
|
+
* @complexity O(1) wiring; each call costs what the wrapped store's call costs.
|
|
100
|
+
*/
|
|
101
|
+
export declare function abortGuardedSourceControlRepo({ store, signal, deps }: {
|
|
102
|
+
store: SourceControlSetRepo;
|
|
103
|
+
signal: AbortSignal;
|
|
104
|
+
deps: SourceControlCredentialSetupDeps["deps"];
|
|
105
|
+
}, _options?: {}): SourceControlSetRepo;
|
|
106
|
+
export {};
|
|
107
|
+
//# sourceMappingURL=credential-setup.d.ts.map
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
import { resolveOperatorLocale } from '@jini-ai/core/operator-locale';
|
|
2
|
+
import { adaptLegacyAuthorize } from "@jini-ai/core";
|
|
3
|
+
import { optionalString, requireInputRecord, requireString } from "@jini-ai/core";
|
|
4
|
+
import { requireToolPermission } from "@jini-ai/core";
|
|
5
|
+
import { ToolInputError } from '@jini-ai/core';
|
|
6
|
+
import { SourceControlCredentialDuplicateLabelError, createSourceControlCredential } from './store.js';
|
|
7
|
+
/** Why nothing was saved, one per cause. Demo dry run 2026-10-05: all three used to return the same
|
|
8
|
+
* `{saved: false}`, so a person's Cancel was reported as "Either it was closed or the save failed". */
|
|
9
|
+
export const PROPOSE_CREDENTIAL_CANCELLED = 'The person cancelled the form. Nothing was saved.';
|
|
10
|
+
export const PROPOSE_CREDENTIAL_CLOSED = 'The form closed without an answer (it timed out or the chat run ended). Nothing was saved.';
|
|
11
|
+
export const PROPOSE_CREDENTIAL_ABORTED = 'The chat run ended before the form opened. Nothing was saved.';
|
|
12
|
+
export const PROPOSE_CREDENTIAL_SAVE_FAILED = 'The person submitted the form but the token could not be saved; the form told them why. Nothing was saved.';
|
|
13
|
+
/** Repository rules a site backup enforces (`site_backup_plan`), shown on the form beside the provider's token help. */
|
|
14
|
+
function sourceControlCredentialForm({ deps, pluginCard }, _optional = {}) {
|
|
15
|
+
return ({ prep }) => {
|
|
16
|
+
const descriptor = prep.descriptor;
|
|
17
|
+
if (!descriptor?.credential)
|
|
18
|
+
throw new ToolInputError({ message: 'Source control credential form has no provider configuration.' });
|
|
19
|
+
const credential = descriptor.credential;
|
|
20
|
+
return deps.applyPluginCredentialCard({ ...(pluginCard === undefined ? {} : { card: pluginCard }), form: {
|
|
21
|
+
title: `Connect ${descriptor.label}`,
|
|
22
|
+
description: `${credential.help ?? 'Type the secret here. The assistant never sees it.'} ${deps.backupRepositoryRules}`,
|
|
23
|
+
submitLabel: 'Save credential',
|
|
24
|
+
fields: [{ kind: 'string', name: 'label', label: 'Label', required: true, value: prep.label },
|
|
25
|
+
...credential.fields.map((field) => {
|
|
26
|
+
const base = { kind: 'string', name: field.name, label: field.label, required: field.required };
|
|
27
|
+
return field.secret || field.name === credential.tokenField
|
|
28
|
+
? { ...base, secret: true, allowBlank: !field.required } : base;
|
|
29
|
+
})],
|
|
30
|
+
} });
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
// Saves only provider-declared fields through the admin POST's existing store function.
|
|
34
|
+
// Returns an explicit safe projection; errors may quote secrets and are never forwarded.
|
|
35
|
+
function sourceControlCredentialSaver(deps, _optional = {}) {
|
|
36
|
+
return ({ values, prep, signal }) => {
|
|
37
|
+
if (!prep.descriptor)
|
|
38
|
+
throw new ToolInputError({ message: 'Source control credential save has no provider configuration.' });
|
|
39
|
+
const connection = connectionFromForm({ descriptor: prep.descriptor, values });
|
|
40
|
+
const store = deps.sourceControlCredentialSetRepo;
|
|
41
|
+
const repo = abortGuardedSourceControlRepo({ store, signal, deps: deps.deps });
|
|
42
|
+
// New project keys stay non-default while the shared save-result path attaches them to this site.
|
|
43
|
+
return createSourceControlCredential({ deps: {
|
|
44
|
+
deps: deps.deps, repo, sealer: deps.siteAssistantSecretSealer,
|
|
45
|
+
keyring: deps.siteAssistantSecretKeyring, clock: deps.clock, idGen: deps.idGen,
|
|
46
|
+
loadSourceControlProviders: deps.loadSourceControlProviders,
|
|
47
|
+
assertCredentialFreeField: deps.assertCredentialFreeField, buildSourceControlProvider: deps.buildSourceControlProvider, isProjectKeyCreateConflictError: deps.isProjectKeyCreateConflictError,
|
|
48
|
+
...(deps.customCredentialsHttpClient ? { httpClient: deps.customCredentialsHttpClient } : {}),
|
|
49
|
+
}, input: { workspaceId: deps.workspaceId, label: values.label, connection, ...(store.project ? { isDefault: false } : {}) } });
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
function sourceControlCredentialResult(deps, _optional = {}) {
|
|
53
|
+
return ({ prep, run }) => {
|
|
54
|
+
const declined = { saved: false, credentialId: null, provider: prep.provider, label: prep.label, cancelled: run.status === 'cancelled' };
|
|
55
|
+
if (run.status !== 'saved') {
|
|
56
|
+
const message = declinedMessage({ prep, run, deps });
|
|
57
|
+
return { ...declined, message };
|
|
58
|
+
}
|
|
59
|
+
const credential = run.saved;
|
|
60
|
+
const connection = credential.connection ?? 'saved';
|
|
61
|
+
return { saved: true, credentialId: credential.id, provider: prep.provider, label: credential.label,
|
|
62
|
+
...(credential.tokenHint === undefined ? {} : { tokenHint: credential.tokenHint }), connection,
|
|
63
|
+
message: savedMessage({ credential, locale: prep.locale, deps }) };
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
// Renders a value-free save outcome on the form's URI, supplied by the engine.
|
|
67
|
+
function sourceControlCredentialOutcome(deps, _optional = {}) {
|
|
68
|
+
return ({ prep, run }) => {
|
|
69
|
+
if (run.status === 'cancelled' || run.status === 'expired' || run.status === 'abandoned')
|
|
70
|
+
return undefined;
|
|
71
|
+
const saved = run.status === 'saved';
|
|
72
|
+
let message = PROPOSE_CREDENTIAL_SAVE_FAILED;
|
|
73
|
+
switch (run.status) {
|
|
74
|
+
case 'saved':
|
|
75
|
+
message = savedMessage({ credential: run.saved, locale: prep.locale, deps });
|
|
76
|
+
break;
|
|
77
|
+
case 'blank':
|
|
78
|
+
message = deps.credentialText({ id: 'blank', locale: prep.locale });
|
|
79
|
+
break;
|
|
80
|
+
case 'failed':
|
|
81
|
+
message = run.safeMessage;
|
|
82
|
+
break;
|
|
83
|
+
}
|
|
84
|
+
return { title: saved ? 'Credential saved' : 'Credential not saved', state: saved ? 'success' : 'failure', message };
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
/** Opens the registry-defined human form and parks this tool call until answered or aborted.
|
|
88
|
+
* @param spec - Tool context, explicit store dependencies and the shared exchange store.
|
|
89
|
+
* @example await proposeSourceControlCredential({ ctx, deps, surfaces });
|
|
90
|
+
* @returns Safe save status; throws ToolInputError for invalid model input or absent form channel.
|
|
91
|
+
* @complexity Time O(p + f) provider/field count before one existing credential save; space O(f).
|
|
92
|
+
*/
|
|
93
|
+
export async function proposeSourceControlCredential(spec, optional = {}) {
|
|
94
|
+
const { ctx, deps, surfaces } = spec;
|
|
95
|
+
const { provider, label } = parseProposalInput({ input: ctx.input, assertCredentialFreeField: deps.assertCredentialFreeField });
|
|
96
|
+
await requireToolPermission({ authorize: adaptLegacyAuthorize({ authorize: deps.authorize }), workspaceId: deps.workspaceId, principalId: ctx.principal.id, permission: 'source-control.credentials.write' }, { entityType: 'source-control' });
|
|
97
|
+
// An ended run must not load plugins; the engine classifies abandonment without opening a card.
|
|
98
|
+
const registry = ctx.signal.aborted ? undefined : await deps.loadSourceControlProviders({ workspaceId: deps.workspaceId });
|
|
99
|
+
const descriptor = registry?.get({ providerId: provider })?.descriptor;
|
|
100
|
+
if (!ctx.signal.aborted && !descriptor?.credential) {
|
|
101
|
+
throw new ToolInputError({ message: 'No enabled source control provider declares this credential form. Call source_control_get_capabilities for available hosts.' });
|
|
102
|
+
}
|
|
103
|
+
const locale = await resolveOperatorLocale({ deps, workspaceId: deps.workspaceId, principalId: ctx.principal.id });
|
|
104
|
+
const pluginCard = ctx.signal.aborted ? undefined : await deps.findPluginCredentialCard({ loadCards: deps.loadPluginCredentialCards, workspaceId: deps.workspaceId, saveKind: 'source-control', target: provider });
|
|
105
|
+
const card = deps.defineSecretCardTool({
|
|
106
|
+
toolId: deps.credentialSaveToolId,
|
|
107
|
+
prepare: async () => ({ descriptor: ctx.signal.aborted ? undefined : descriptor, provider, label, locale }),
|
|
108
|
+
form: sourceControlCredentialForm({ deps, pluginCard }),
|
|
109
|
+
save: sourceControlCredentialSaver(deps),
|
|
110
|
+
result: sourceControlCredentialResult(deps),
|
|
111
|
+
outcome: sourceControlCredentialOutcome(deps),
|
|
112
|
+
}, {
|
|
113
|
+
uriHost: deps.credentialFormUriHost,
|
|
114
|
+
text: { noEmitter: 'source_control_propose_credential requires an interactive form channel. Nothing was saved.', saveFailure: PROPOSE_CREDENTIAL_SAVE_FAILED },
|
|
115
|
+
safeError: err => {
|
|
116
|
+
if (err instanceof SourceControlCredentialDuplicateLabelError)
|
|
117
|
+
return err.message;
|
|
118
|
+
const id = Object.entries(deps.deps.CREDENTIAL_MESSAGES).find(([, text]) => err instanceof Error && text === err.message)?.[0];
|
|
119
|
+
return id ? deps.credentialText({ id: id, locale }) : undefined;
|
|
120
|
+
},
|
|
121
|
+
// Fixed metadata only: neither an exception's text nor a submitted value is safe to log.
|
|
122
|
+
logFailure: metadata => deps.reportCredentialFailure(JSON.stringify(metadata)),
|
|
123
|
+
});
|
|
124
|
+
return card.handler({ surfaceExchanges: surfaces.surfaceExchanges, askThenReport: deps.askThenReport })(ctx, optional);
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Guards every write of the store (insert, update, delete, account label, vault, project half) so a run
|
|
128
|
+
* that ended while the async seal was pending writes nothing more. Reads pass straight through.
|
|
129
|
+
* @complexity O(1) wiring; each call costs what the wrapped store's call costs.
|
|
130
|
+
*/
|
|
131
|
+
export function abortGuardedSourceControlRepo({ store, signal, deps }, _options = {}) {
|
|
132
|
+
// The async seal can outlive the run; the existing store must not write after abandonment.
|
|
133
|
+
// Saves write through `vault`, so it must be forwarded (omitting it fails every save) with the same guard.
|
|
134
|
+
const vault = store.vault;
|
|
135
|
+
const canonical = store.canonical;
|
|
136
|
+
const updateAccountLabel = store.updateAccountLabel?.bind(store);
|
|
137
|
+
return {
|
|
138
|
+
...(canonical ? { canonical: { ...canonical, create: async (input) => {
|
|
139
|
+
signal.throwIfAborted();
|
|
140
|
+
if (!canonical.create)
|
|
141
|
+
throw new ToolInputError({ message: 'Open the provider API key card to save this key.' });
|
|
142
|
+
return canonical.create(input, { signal });
|
|
143
|
+
} } } : {}),
|
|
144
|
+
...(vault ? { vault: sourceControlSaveVault({ vault, signal }) } : {}),
|
|
145
|
+
// The host-bound vault policy opens whichever repo it is handed, so it sees this guarded vault.
|
|
146
|
+
...(store.credentialVault ? { credentialVault: store.credentialVault } : {}),
|
|
147
|
+
insert: record => { signal.throwIfAborted(); return store.insert(record); },
|
|
148
|
+
update: record => { signal.throwIfAborted(); return store.update(record); },
|
|
149
|
+
findById: input => store.findById(input),
|
|
150
|
+
findDefaultByProvider: input => store.findDefaultByProvider(input),
|
|
151
|
+
listByProvider: input => store.listByProvider(input),
|
|
152
|
+
listByWorkspace: input => store.listByWorkspace(input),
|
|
153
|
+
delete: input => { signal.throwIfAborted(); return store.delete(input); },
|
|
154
|
+
...(updateAccountLabel ? { updateAccountLabel: (input) => { signal.throwIfAborted(); return updateAccountLabel(input); } } : {}),
|
|
155
|
+
// The project half writes too (project-first saves): guarded alike.
|
|
156
|
+
...(store.project ? { project: { ...store.project, repo: deps.abortGuardedCredentialRepo({ store: store.project.repo, signal }), ...(store.project.createRepo ? { createRepo: deps.abortGuardedCredentialRepo({ store: store.project.createRepo, signal }) } : {}) } } : {}),
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
/** Preserve this adapter's vault ABI and its write guards, including optional batch writes. */
|
|
160
|
+
function sourceControlSaveVault({ vault, signal }, _options = {}) {
|
|
161
|
+
const findDefault = vault.findDefault?.bind(vault);
|
|
162
|
+
const findOne = vault.findOne?.bind(vault);
|
|
163
|
+
const applyBatch = vault.applyBatch?.bind(vault);
|
|
164
|
+
return {
|
|
165
|
+
find: (input, options) => vault.find(input, options),
|
|
166
|
+
list: (input, options) => vault.list(input, options),
|
|
167
|
+
put: (input, options) => { signal.throwIfAborted(); return vault.put(input, options); },
|
|
168
|
+
patchMeta: (input, options) => vault.patchMeta(input, options),
|
|
169
|
+
delete: (input, options) => vault.delete(input, options),
|
|
170
|
+
...(findDefault ? { findDefault } : {}),
|
|
171
|
+
...(findOne ? { findOne } : {}),
|
|
172
|
+
...(applyBatch ? { applyBatch: (input, options) => { signal.throwIfAborted(); return applyBatch(input, options); } } : {}),
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
/** Keep provider-defined names on the human form and canonical `token` on the store contract.
|
|
176
|
+
* Only declared fields cross the save boundary. @complexity O(f) time/space, f <= 10. */
|
|
177
|
+
function connectionFromForm({ descriptor, values }, _options = {}) {
|
|
178
|
+
const connection = { providerId: descriptor.id };
|
|
179
|
+
const credential = descriptor.credential;
|
|
180
|
+
if (!credential)
|
|
181
|
+
throw new ToolInputError({ message: 'Source control provider has no credential fields.' });
|
|
182
|
+
for (const field of credential.fields) {
|
|
183
|
+
const name = field.name === credential.tokenField ? 'token' : field.name;
|
|
184
|
+
connection[name] = values[field.name];
|
|
185
|
+
}
|
|
186
|
+
return connection;
|
|
187
|
+
}
|
|
188
|
+
/** Validate only public model fields before authorization or plugin lookup. @complexity O(k) input keys. */
|
|
189
|
+
function parseProposalInput({ input, assertCredentialFreeField }, _options = {}) {
|
|
190
|
+
const raw = requireInputRecord({ input });
|
|
191
|
+
if (Object.keys(raw).some(key => key !== 'provider' && key !== 'label')) {
|
|
192
|
+
throw new ToolInputError({ message: 'source_control_propose_credential accepts only provider and label; enter secrets in the human form.' });
|
|
193
|
+
}
|
|
194
|
+
const provider = requireString({ input: raw, key: 'provider' });
|
|
195
|
+
const label = optionalString({ input: raw, key: 'label' }) ?? 'default';
|
|
196
|
+
assertCredentialFreeField({ value: label, field: "label" });
|
|
197
|
+
if (label.length > 200)
|
|
198
|
+
throw new ToolInputError({ message: 'Credential label must be at most 200 characters.' });
|
|
199
|
+
return { provider, label };
|
|
200
|
+
}
|
|
201
|
+
/** Fixed decline copy preserves the distinction between unopened and closed forms. @complexity O(1). */
|
|
202
|
+
function declinedMessage({ prep, run, deps }, _options = {}) {
|
|
203
|
+
switch (run.status) {
|
|
204
|
+
case 'cancelled': return PROPOSE_CREDENTIAL_CANCELLED;
|
|
205
|
+
case 'blank': return deps.credentialText({ id: 'blank', locale: prep.locale });
|
|
206
|
+
case 'failed': return run.safeMessage;
|
|
207
|
+
case 'abandoned': return prep.descriptor === undefined ? PROPOSE_CREDENTIAL_ABORTED : PROPOSE_CREDENTIAL_CLOSED;
|
|
208
|
+
default: return PROPOSE_CREDENTIAL_CLOSED;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
/** Both projections use the same safe hint and connection copy. @complexity O(1). */
|
|
212
|
+
function savedMessage({ credential, locale, deps }, _options = {}) {
|
|
213
|
+
const hint = deps.formatCredentialHint({ hint: credential.tokenHint, locale });
|
|
214
|
+
return `${hint ? hint + '. ' : ''}${deps.credentialText({ id: credential.connection ?? 'saved', locale })}`;
|
|
215
|
+
}
|
|
216
|
+
//# sourceMappingURL=credential-setup.js.map
|