@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,190 @@
|
|
|
1
|
+
type LoadPluginCredentialCards = NonNullable<SourceControlCredentialSetupDeps["loadPluginCredentialCards"]>;
|
|
2
|
+
import { type Clock } from "@jini-ai/core/primitives";
|
|
3
|
+
import { type AgentToolDefinition, type AgentToolSideEffect, type ToolHandler, type ToolRegistration } from "@jini-ai/core";
|
|
4
|
+
import type { AuthorizeFn } from "@jini-ai/core/contracts/events";
|
|
5
|
+
import type { KeyringPort } from "@jini-ai/core/contracts/vault";
|
|
6
|
+
import type { SecretSealerPort } from "@jini-ai/core/contracts/vault";
|
|
7
|
+
import type { AssistantSurfaceDeps } from "@jini-ai/core/contracts/site/daemon-surface-exchanges";
|
|
8
|
+
import type { ToolContributor } from "@jini-ai/core";
|
|
9
|
+
import type { SourceControlCommitOutcome as BaseCommitOutcome, PreviewCommitExportResult } from "../contracts.js";
|
|
10
|
+
import type { SourceControlCredentialSetupDeps } from "./credential-setup.js";
|
|
11
|
+
import type { StaticSitePackagerPort, StaticSiteIdentity } from "./static-site-packager-port.js";
|
|
12
|
+
import type { ExportReport } from "../../static-export/contracts.js";
|
|
13
|
+
import type { SourceControlProvider } from "./provider-module.js";
|
|
14
|
+
import type { LoadSourceControlProviders } from "./store.js";
|
|
15
|
+
import type { RepositoryTargetValidator } from "@jini-ai/devops/source-control/site/provider-module";
|
|
16
|
+
import type { SourceControlCredentialSetRepoPort } from "@jini-ai/core/contracts/site/source-control-credentials";
|
|
17
|
+
import type { ObservabilityPort } from "@jini-ai/core/contracts/observability";
|
|
18
|
+
import type { SourceControlKitHttpClient as HttpClientPort } from "./provider-module.js";
|
|
19
|
+
export interface SourceControlCommitAdapter {
|
|
20
|
+
commit: SourceControlProvider["commitSite"];
|
|
21
|
+
}
|
|
22
|
+
export type SourceControlCommitOutcome = Extract<BaseCommitOutcome, {
|
|
23
|
+
ok: false;
|
|
24
|
+
}> | (Extract<BaseCommitOutcome, {
|
|
25
|
+
ok: true;
|
|
26
|
+
}> & {
|
|
27
|
+
folder: string;
|
|
28
|
+
entryPath: string;
|
|
29
|
+
});
|
|
30
|
+
export interface CommitSiteInput {
|
|
31
|
+
readonly folder?: string;
|
|
32
|
+
readonly staticSiteContext: () => Promise<StaticSiteIdentity>;
|
|
33
|
+
readonly workspaceId: string;
|
|
34
|
+
readonly sourceControlExportRootDir: string;
|
|
35
|
+
readonly idGen: {
|
|
36
|
+
newId(): string;
|
|
37
|
+
};
|
|
38
|
+
readonly exportSiteBound: (options: {
|
|
39
|
+
outputDir: string;
|
|
40
|
+
clean?: boolean;
|
|
41
|
+
basePath?: string;
|
|
42
|
+
includeThemePreviews?: boolean;
|
|
43
|
+
themeId?: string;
|
|
44
|
+
}) => Promise<ExportReport>;
|
|
45
|
+
readonly packager: StaticSitePackagerPort;
|
|
46
|
+
readonly owner: string;
|
|
47
|
+
readonly repo: string;
|
|
48
|
+
readonly branch?: string;
|
|
49
|
+
readonly commitMessage: string;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* This wiring layer's OWN risk classification, independent of the catalog's `sideEffects` declaration
|
|
53
|
+
* (`@jini-ai/cms/core`'s `assertToolIsWirable` cross-checks the two).
|
|
54
|
+
*/
|
|
55
|
+
export declare const sourceControlDerivedRisk: ReadonlyMap<string, AgentToolSideEffect>;
|
|
56
|
+
/** The custom-credentials owner's by-label reads, bound at the composition root over its repo and sealer.
|
|
57
|
+
* Workspace scoping, grant checks and redaction stay with that owner; this feature never sees its repo. */
|
|
58
|
+
export interface SourceControlSavedKeyReader {
|
|
59
|
+
/** Metadata only (label, hint, hosts): never opens a secret. Null when this workspace has no such label. */
|
|
60
|
+
describeByLabel(input: {
|
|
61
|
+
workspaceId: string;
|
|
62
|
+
label: string;
|
|
63
|
+
}): Promise<object | null>;
|
|
64
|
+
/** Opens the one selected key through the owner's context-checked reader. Null when absent. */
|
|
65
|
+
resolveByLabel(input: {
|
|
66
|
+
workspaceId: string;
|
|
67
|
+
label: string;
|
|
68
|
+
}): Promise<{
|
|
69
|
+
connection: {
|
|
70
|
+
token: string;
|
|
71
|
+
};
|
|
72
|
+
} | null>;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* The exact slice of the route-deps bag this domain's tool handlers read. Declared structurally
|
|
76
|
+
* (rather than importing `server/routes/types`'s `RouteDeps`) so this module carries no back-edge
|
|
77
|
+
* into the composition root — same discipline `comments/tool-registrations.ts`'s `CommentsToolDeps`
|
|
78
|
+
* documents for its own narrowing.
|
|
79
|
+
*
|
|
80
|
+
* exportSiteBound is closed over the full application dependencies at the composition root.
|
|
81
|
+
* Passing that one pre-bound operation lets the tool run a real export without importing the
|
|
82
|
+
* composition root's wide RouteDeps type; route callers satisfy the narrower shape structurally.
|
|
83
|
+
*/
|
|
84
|
+
export interface SourceControlToolDeps extends SourceControlCredentialSetupDeps {
|
|
85
|
+
readonly staticSiteContext: () => Promise<StaticSiteIdentity>;
|
|
86
|
+
readonly staticSitePackager: StaticSitePackagerPort;
|
|
87
|
+
readonly catalog: ReadonlyMap<string, AgentToolDefinition>;
|
|
88
|
+
readonly switchedOffPluginSentence: (required: {
|
|
89
|
+
pluginIds: readonly string[];
|
|
90
|
+
}) => string;
|
|
91
|
+
readonly buildSourceControlProvider: (required: {
|
|
92
|
+
load: LoadSourceControlProviders;
|
|
93
|
+
observability?: ObservabilityPort;
|
|
94
|
+
httpClient?: HttpClientPort;
|
|
95
|
+
workspaceId: string;
|
|
96
|
+
providerId: string;
|
|
97
|
+
}) => Promise<{
|
|
98
|
+
ok: true;
|
|
99
|
+
provider: SourceControlProvider;
|
|
100
|
+
} | {
|
|
101
|
+
ok: false;
|
|
102
|
+
message: string;
|
|
103
|
+
}>;
|
|
104
|
+
readonly previewCommitExport: (input: CommitSiteInput, optional: {
|
|
105
|
+
providerId: string;
|
|
106
|
+
validateTarget?: RepositoryTargetValidator;
|
|
107
|
+
}) => Promise<PreviewCommitExportResult>;
|
|
108
|
+
readonly commitSiteToSourceControl: (deps: {
|
|
109
|
+
providerId: string;
|
|
110
|
+
supportsFolder: boolean;
|
|
111
|
+
credentialDeps: {
|
|
112
|
+
deps: SourceControlCredentialSetupDeps["deps"];
|
|
113
|
+
repo: SourceControlCredentialSetRepoPort;
|
|
114
|
+
sealer: SecretSealerPort;
|
|
115
|
+
resolveSavedApiKey: (input: {
|
|
116
|
+
workspaceId: string;
|
|
117
|
+
providerId: string;
|
|
118
|
+
}, options?: Record<string, never>) => Promise<{
|
|
119
|
+
token: string;
|
|
120
|
+
} | null>;
|
|
121
|
+
};
|
|
122
|
+
gitAdapter: SourceControlCommitAdapter;
|
|
123
|
+
validateTarget?: RepositoryTargetValidator;
|
|
124
|
+
}, input: CommitSiteInput) => Promise<SourceControlCommitOutcome>;
|
|
125
|
+
readonly loadPluginCredentialCards?: LoadPluginCredentialCards;
|
|
126
|
+
readonly authorize: AuthorizeFn;
|
|
127
|
+
readonly workspaceId: string;
|
|
128
|
+
readonly sourceControlCredentialSetRepo: SourceControlCredentialSetRepoPort;
|
|
129
|
+
/** Existing custom-key repo port, supplied by composition; optional for source-control-only hosts. */
|
|
130
|
+
readonly sourceControlSavedKeys?: SourceControlSavedKeyReader;
|
|
131
|
+
readonly siteAssistantSecretSealer: SecretSealerPort;
|
|
132
|
+
readonly siteAssistantSecretKeyring: KeyringPort;
|
|
133
|
+
readonly clock: Clock;
|
|
134
|
+
/** The guarded client for the save-time provider identity probe, which carries the saved token
|
|
135
|
+
* (`RouteDeps.customCredentialsHttpClient`). Absent, the probe is not attempted. */
|
|
136
|
+
readonly customCredentialsHttpClient?: HttpClientPort;
|
|
137
|
+
/** `RouteDeps.observability`: a commit's git-host calls are outbound spans. */
|
|
138
|
+
readonly observability?: ObservabilityPort;
|
|
139
|
+
readonly sourceControlExportRootDir: string;
|
|
140
|
+
readonly idGen: {
|
|
141
|
+
newId(): string;
|
|
142
|
+
};
|
|
143
|
+
/** See `commit-site.ts`'s `ExportSiteBoundFn` doc for what this is and why it replaces the
|
|
144
|
+
* `routeDeps: RouteDeps` field `commitSiteToSourceControl`'s input used to carry. */
|
|
145
|
+
readonly exportSiteBound: CommitSiteInput["exportSiteBound"];
|
|
146
|
+
/** Overrides the plugin provider's commit adapter, which is the default when this is omitted.
|
|
147
|
+
* Tests inject a fake here. */
|
|
148
|
+
readonly gitAdapter?: SourceControlCommitAdapter;
|
|
149
|
+
/** This workspace's git-host providers; the installed, enabled Agent Plugins supplied by composition. */
|
|
150
|
+
readonly loadSourceControlProviders: LoadSourceControlProviders;
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Builds this domain's `ToolRegistration[]` — same shape every other domain's
|
|
154
|
+
* `build<Domain>Registrations` produces.
|
|
155
|
+
*
|
|
156
|
+
* @param deps - `SourceControlToolDeps` (the narrow slice of `RouteDeps` this domain reads, plus
|
|
157
|
+
* this file's own test-only `gitAdapter` override).
|
|
158
|
+
* @param surfaces - The surface exchange store used by the credential setup forms; commits run
|
|
159
|
+
* on — required, matching `buildStaticPublishRegistrations`' own shape.
|
|
160
|
+
* @complexity O(1) registration-time cost; each wired handler's own cost is documented at its call
|
|
161
|
+
* site above.
|
|
162
|
+
*/
|
|
163
|
+
/** Bind the source-control credential owner with the same installed-provider loader as other tools.
|
|
164
|
+
* @param required - Existing domain dependencies and shared surface exchanges.
|
|
165
|
+
* @returns Internal save adapter; permissions and errors remain domain-owned.
|
|
166
|
+
* @example buildSourceControlCredentialHandler({ deps, surfaces });
|
|
167
|
+
* @complexity O(1) binding; provider/save costs are documented by proposeSourceControlCredential.
|
|
168
|
+
*/
|
|
169
|
+
export declare function buildSourceControlCredentialHandler({ deps, surfaces }: {
|
|
170
|
+
deps: SourceControlToolDeps;
|
|
171
|
+
surfaces: AssistantSurfaceDeps;
|
|
172
|
+
}, _optional?: {}): ToolHandler;
|
|
173
|
+
export declare function buildSourceControlRegistrations(deps: SourceControlToolDeps, surfaces: AssistantSurfaceDeps): ToolRegistration[];
|
|
174
|
+
/**
|
|
175
|
+
* Contributes Source Control's AI tools; called once by the composition root's
|
|
176
|
+
* `installFirstPartyToolContributors()`, never as an import side effect.
|
|
177
|
+
* Credential resolution is injected with structural signatures; importing this feature from
|
|
178
|
+
* credential discovery would close a runtime cycle back through the assistant.
|
|
179
|
+
*/
|
|
180
|
+
export declare function contributeSourceControlTools(): ToolContributor<SourceControlToolDeps, AssistantSurfaceDeps>;
|
|
181
|
+
export declare function bindSourceControlTools(required: Pick<SourceControlToolDeps, "deps" | "catalog" | "switchedOffPluginSentence" | "buildSourceControlProvider" | "previewCommitExport" | "commitSiteToSourceControl" | "defineSecretCardTool" | "applyPluginCredentialCard" | "findPluginCredentialCard" | "askThenReport" | "credentialSaveToolId" | "credentialFormUriHost" | "backupRepositoryRules" | "credentialText" | "formatCredentialHint" | "reportCredentialFailure" | "assertCredentialFreeField" | "isProjectKeyCreateConflictError">, _optional?: Record<string, never>): {
|
|
182
|
+
buildSourceControlCredentialHandler: ({ deps, surfaces }: {
|
|
183
|
+
deps: Omit<SourceControlToolDeps, keyof typeof required>;
|
|
184
|
+
surfaces: AssistantSurfaceDeps;
|
|
185
|
+
}, optional?: Record<string, never>) => ToolHandler;
|
|
186
|
+
buildSourceControlRegistrations: (deps: Omit<SourceControlToolDeps, keyof typeof required>, surfaces: AssistantSurfaceDeps) => ToolRegistration[];
|
|
187
|
+
contributeSourceControlTools: () => ToolContributor<Omit<SourceControlToolDeps, keyof typeof required>, AssistantSurfaceDeps>;
|
|
188
|
+
};
|
|
189
|
+
export {};
|
|
190
|
+
//# sourceMappingURL=tool-registrations.d.ts.map
|
|
@@ -0,0 +1,379 @@
|
|
|
1
|
+
import { toolMetadata } from '@jini-ai/core/tool-metadata/source-control';
|
|
2
|
+
import { normalizeRepositoryFolder, prefixRepositoryPath } from "../repository-path.js";
|
|
3
|
+
import {} from "@jini-ai/core/primitives";
|
|
4
|
+
import { adaptLegacyAuthorize } from "@jini-ai/core";
|
|
5
|
+
import { buildDomainRegistrations, optionalBoolean, requireInputRecord, requireNoInput, requireString } from "@jini-ai/core";
|
|
6
|
+
import { requireToolPermission } from "@jini-ai/core";
|
|
7
|
+
// `ToolInputError` specifically — see `features/post/tool-registrations.ts`'s identical import
|
|
8
|
+
// for why: the marker `@jini-ai/daemon`'s `ToolExecutor` reads to classify a rejection 400 rather
|
|
9
|
+
// than redacting it into a message-stripped 500.
|
|
10
|
+
import { ToolInputError } from "@jini-ai/core";
|
|
11
|
+
import { validateCommitTarget } from "@jini-ai/devops/source-control/site/commit-target";
|
|
12
|
+
import { sourceControlSavedApiKeyLabels } from "@jini-ai/devops/source-control/site/saved-key-bindings";
|
|
13
|
+
import { proposeSourceControlCredential } from "./credential-setup.js";
|
|
14
|
+
import { findDefaultSourceControlCredential, listSourceControlCredentials } from "./store.js";
|
|
15
|
+
/**
|
|
16
|
+
* @file This domain's agent-tool catalog + wiring — mirrors `features/deployments/
|
|
17
|
+
* publish-agent-tools.ts`'s shape closely (that file's own header explains the MCP-UI held-open
|
|
18
|
+
* exchange gate this reuses; not re-derived here).
|
|
19
|
+
*
|
|
20
|
+
* Three tools:
|
|
21
|
+
* - `credential_save with kind source-control` — opens a provider-defined human form and creates a sealed connection; no secret crosses the model boundary.
|
|
22
|
+
* - `source_control_get_capabilities` — read-only, risk `"none"`: reports which providers (github,
|
|
23
|
+
* gitlab, bitbucket) have a saved credential, by id/label/isDefault/timestamps only — never a
|
|
24
|
+
* token. Deliberately does NOT report a verified/ready tri-state the way
|
|
25
|
+
* `deployment_get_static_publish_capabilities` does for its own five providers — there is no
|
|
26
|
+
* `verify.ts` equivalent for `source_control_credential_sets` yet, and fabricating one would
|
|
27
|
+
* reproduce the exact false-positive defect that file's own header describes fixing (`configured:
|
|
28
|
+
* true` here means only "a credential row exists," including a provider-declared saved API key).
|
|
29
|
+
* Also reports `commitSupported` per provider — `true` when an enabled Agent Plugin provides that
|
|
30
|
+
* host (`provider-registry.ts`; the bundled `github` plugin today) — so a workspace that saved a
|
|
31
|
+
* credential for a host no plugin serves learns from THIS tool that committing isn't available,
|
|
32
|
+
* never from a failed commit attempt (2026-08-16 review requirement).
|
|
33
|
+
* - `source_control_execute_commit` performs an authorized Git commit after the shared approval gate. Provider,
|
|
34
|
+
* credential, target and branch checks still apply; existing Git history preserves overwritten
|
|
35
|
+
* files. Credentials remain server-side and are never included in the model's call or result.
|
|
36
|
+
*/
|
|
37
|
+
/** A declared host's facts as `source_control_get_capabilities` reports them. @complexity O(1). */
|
|
38
|
+
function hostFacts(descriptor) {
|
|
39
|
+
return { label: descriptor.label, apiOrigin: descriptor.apiOrigin, ...(descriptor.maxFileBytes !== undefined ? { maxFileBytes: descriptor.maxFileBytes } : {}) };
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* The hosts `source_control_get_capabilities` reports, in order: the ones an enabled plugin provides
|
|
43
|
+
* (registry order), then ones a switched-off plugin declares, then any other host a credential is
|
|
44
|
+
* saved for. No host id is hard-coded here; the registry and the saved rows are the whole list.
|
|
45
|
+
*
|
|
46
|
+
* @complexity O(p + s) providers plus saved credentials.
|
|
47
|
+
*/
|
|
48
|
+
function reportedProviderIds(registry, savedProviderIds) {
|
|
49
|
+
const ids = [...registry.list().map((loaded) => loaded.descriptor.id), ...(registry.switchedOff?.keys() ?? []), ...savedProviderIds];
|
|
50
|
+
return [...new Set(ids)];
|
|
51
|
+
}
|
|
52
|
+
/** The loader for the workspace's plugin-provided hosts ({@link SourceControlToolDeps.loadSourceControlProviders}),
|
|
53
|
+
* resolved once here so `credential-setup.ts` takes it as a required port. */
|
|
54
|
+
function providerLoader(deps) {
|
|
55
|
+
return deps.loadSourceControlProviders;
|
|
56
|
+
}
|
|
57
|
+
/** The injected adapter, or the plugin provider's for `providerId`; a caller-safe refusal otherwise. */
|
|
58
|
+
async function resolveCommitAdapter({ deps, providerId }, _optional = {}) {
|
|
59
|
+
if (deps.gitAdapter)
|
|
60
|
+
return { ok: true, adapter: deps.gitAdapter };
|
|
61
|
+
const built = await deps.buildSourceControlProvider({ load: deps.loadSourceControlProviders, ...(deps.observability === undefined ? {} : { observability: deps.observability }), workspaceId: deps.workspaceId, providerId });
|
|
62
|
+
return built.ok ? { ok: true, adapter: { commit: built.provider.commitSite } } : { ok: false, message: built.message };
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* The host's display name for `providerId` and its plugin's own owner/repo check, refusing an id no
|
|
66
|
+
* plugin declares and no credential can be saved for (a typo, or a host that does not exist) before
|
|
67
|
+
* anything else runs. A switched-off or saved-only host has no check of its own; the generic rule in
|
|
68
|
+
* `validateCommitTarget` still applies.
|
|
69
|
+
*
|
|
70
|
+
* @throws {ToolInputError} naming the hosts that do exist.
|
|
71
|
+
* @complexity One registry load and, for a saved-only id, one authorized metadata lookup.
|
|
72
|
+
*/
|
|
73
|
+
async function requireKnownHost({ deps, providerId, authorizeSavedLookup }, _options = {}) {
|
|
74
|
+
const registry = await providerLoader(deps)({ workspaceId: deps.workspaceId });
|
|
75
|
+
const loaded = registry.get({ providerId });
|
|
76
|
+
if (loaded !== undefined)
|
|
77
|
+
return { label: loaded.descriptor.label, supportsFolder: loaded.module.supportsFolder === true, ...(loaded.module.validateTarget ? { validateTarget: loaded.module.validateTarget } : {}) };
|
|
78
|
+
if (registry.switchedOff?.has(providerId))
|
|
79
|
+
return { label: providerId };
|
|
80
|
+
// Saved-only ids are opaque. Authorize before inspecting their existence (registry metadata is public).
|
|
81
|
+
await authorizeSavedLookup();
|
|
82
|
+
if (await findConfiguredCredential({ deps, providerId }))
|
|
83
|
+
return { label: providerId };
|
|
84
|
+
const hosts = registry.list().map((loaded) => `'${loaded.descriptor.id}'`);
|
|
85
|
+
throw new ToolInputError({ message: `source_control_execute_commit: '${providerId}' is not a source control host. ${hosts.length > 0 ? "Hosts: " + hosts.join(", ") : "No turned-on Agent Plugin provides one"} (see source_control_get_capabilities).` });
|
|
86
|
+
}
|
|
87
|
+
/** Reads only metadata through the existing custom-credential owner and injected repo port.
|
|
88
|
+
* An undeclared provider never consults custom keys. @complexity One bounded credential inventory. */
|
|
89
|
+
async function findSavedApiKey({ deps, providerId }, _options = {}) {
|
|
90
|
+
const label = sourceControlSavedApiKeyLabels.get(providerId);
|
|
91
|
+
if (!label || !deps.sourceControlSavedKeys)
|
|
92
|
+
return null;
|
|
93
|
+
return deps.sourceControlSavedKeys.describeByLabel({ workspaceId: deps.workspaceId, label });
|
|
94
|
+
}
|
|
95
|
+
/** Presence only: explicit identity first, then the provider's saved API key. Never opens a secret.
|
|
96
|
+
* An explicit but ambiguous inventory must not silently choose a different store.
|
|
97
|
+
* @complexity Source-control selection/inventory and, only with no rows, one custom-key inventory. */
|
|
98
|
+
async function findConfiguredCredential({ deps, providerId }, _options = {}) {
|
|
99
|
+
if (deps.sourceControlCredentialSetRepo.canonical?.supports({ providerId })) {
|
|
100
|
+
const saved = await findSavedApiKey({ deps, providerId });
|
|
101
|
+
return saved ? { providerId, credentialSource: "saved-api-key" } : null;
|
|
102
|
+
}
|
|
103
|
+
const explicit = await findDefaultSourceControlCredential({ deps: deps.deps, repo: deps.sourceControlCredentialSetRepo }, { workspaceId: deps.workspaceId, providerId });
|
|
104
|
+
if (explicit)
|
|
105
|
+
return { providerId, credentialSource: "source-control" };
|
|
106
|
+
const identities = await listSourceControlCredentials({ deps: deps.deps, repo: deps.sourceControlCredentialSetRepo }, { workspaceId: deps.workspaceId });
|
|
107
|
+
if (identities.some(identity => identity.providerId === providerId))
|
|
108
|
+
return null;
|
|
109
|
+
const saved = await findSavedApiKey({ deps, providerId });
|
|
110
|
+
return saved ? { providerId, credentialSource: "saved-api-key" } : null;
|
|
111
|
+
}
|
|
112
|
+
/** Opens only the declared saved key through its existing reader; never logs or returns metadata.
|
|
113
|
+
* Errors go to commit-site's fixed, secret-free failure outcome.
|
|
114
|
+
* @complexity Credential presence reads plus one custom-key inventory and selected secret open. */
|
|
115
|
+
async function resolveSavedApiKey({ deps, workspaceId, providerId }, _options = {}) {
|
|
116
|
+
const label = sourceControlSavedApiKeyLabels.get(providerId);
|
|
117
|
+
if (!label || !deps.sourceControlSavedKeys)
|
|
118
|
+
return null;
|
|
119
|
+
const configured = await findConfiguredCredential({ deps: { ...deps, workspaceId }, providerId });
|
|
120
|
+
if (configured?.credentialSource !== "saved-api-key")
|
|
121
|
+
return null;
|
|
122
|
+
const saved = await deps.sourceControlSavedKeys.resolveByLabel({ workspaceId, label });
|
|
123
|
+
return saved ? { token: saved.connection.token } : null;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* This wiring layer's OWN risk classification, independent of the catalog's `sideEffects` declaration
|
|
127
|
+
* (`@jini-ai/cms/core`'s `assertToolIsWirable` cross-checks the two).
|
|
128
|
+
*/
|
|
129
|
+
export const sourceControlDerivedRisk = new Map([
|
|
130
|
+
// -> source-control inventory plus declared saved API-key metadata. No decrypt, no network call.
|
|
131
|
+
["source_control_get_capabilities", "none"],
|
|
132
|
+
// -> proposeSourceControlCredential -> createSourceControlCredential: seals and inserts a saved connection after human submit.
|
|
133
|
+
// -> calls `commitSiteToSourceControl`: a real `exportSite` pass plus a real GitHub Git
|
|
134
|
+
// Data API commit using a write-scoped credential — genuinely mutates external durable state.
|
|
135
|
+
["source_control_execute_commit", "mutates-durable-state"],
|
|
136
|
+
]);
|
|
137
|
+
const EXECUTE_COMMIT_TOOL_ID = "source_control_execute_commit";
|
|
138
|
+
/** Reads `source_control_execute_commit`'s raw input; {@link requireValidTarget} checks it once the
|
|
139
|
+
* host is known. @throws {ToolInputError} on a missing or non-string required field, or a present
|
|
140
|
+
* non-string `branch` (dropping it would commit to the default branch the model did not name). */
|
|
141
|
+
function parseCommitCommand(raw) {
|
|
142
|
+
const provider = requireString({ input: raw, key: "provider" });
|
|
143
|
+
const owner = requireString({ input: raw, key: "owner" });
|
|
144
|
+
const repo = requireString({ input: raw, key: "repo" });
|
|
145
|
+
const commitMessage = requireString({ input: raw, key: "commitMessage" });
|
|
146
|
+
if (raw.branch !== undefined && typeof raw.branch !== "string") {
|
|
147
|
+
throw new ToolInputError({ message: `${EXECUTE_COMMIT_TOOL_ID}: 'branch' must be a string when provided` });
|
|
148
|
+
}
|
|
149
|
+
const branch = raw.branch;
|
|
150
|
+
let folder;
|
|
151
|
+
try {
|
|
152
|
+
folder = normalizeRepositoryFolder({ folder: raw.folder });
|
|
153
|
+
}
|
|
154
|
+
catch (error) {
|
|
155
|
+
throw new ToolInputError({ message: `${EXECUTE_COMMIT_TOOL_ID}: ${error.message}` });
|
|
156
|
+
}
|
|
157
|
+
const dryRun = optionalBoolean({ input: raw, key: "dryRun" }) ?? false;
|
|
158
|
+
return { provider, owner, repo, commitMessage, branch, folder, dryRun };
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* The owner/repo/branch/commitMessage shape via `validateCommitTarget`, with the host plugin's own
|
|
162
|
+
* owner/repo rules first. Runs before any permission check or dialog.
|
|
163
|
+
*
|
|
164
|
+
* @throws {ToolInputError} on any invalid field.
|
|
165
|
+
* @complexity O(1).
|
|
166
|
+
*/
|
|
167
|
+
function requireValidTarget({ command, validateTarget }, _optional = {}) {
|
|
168
|
+
const { owner, repo, branch, commitMessage } = command;
|
|
169
|
+
const configError = validateCommitTarget({ owner, repo, ...(branch !== undefined ? { branch } : {}), commitMessage }, validateTarget === undefined ? {} : { validateTarget });
|
|
170
|
+
if (configError !== null) {
|
|
171
|
+
throw new ToolInputError({ message: `source_control_execute_commit: ${configError}` });
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
/** The preview and confirmed commit consume the same destination and packaging context.
|
|
175
|
+
* @complexity O(1), no effects.
|
|
176
|
+
*/
|
|
177
|
+
function commitInput({ deps, command }, _options = {}) {
|
|
178
|
+
return { workspaceId: deps.workspaceId, sourceControlExportRootDir: deps.sourceControlExportRootDir,
|
|
179
|
+
idGen: deps.idGen, exportSiteBound: deps.exportSiteBound, staticSiteContext: deps.staticSiteContext, packager: deps.staticSitePackager,
|
|
180
|
+
owner: command.owner, repo: command.repo, folder: command.folder, commitMessage: command.commitMessage,
|
|
181
|
+
...(command.branch !== undefined ? { branch: command.branch } : {}) };
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* Maps `commitSiteToSourceControl`'s outcome to the tool's result shape — the failure branch stays
|
|
185
|
+
* a typed `{code, message}` pass-through, the success branch reports every field a human or a
|
|
186
|
+
* follow-up call might need, including `divergedPaths` (see the field's own doc at the call site).
|
|
187
|
+
*/
|
|
188
|
+
function buildCommitOutcomeResult(outcome) {
|
|
189
|
+
if (!outcome.ok) {
|
|
190
|
+
return { committed: false, cancelled: false, code: outcome.code, message: outcome.message };
|
|
191
|
+
}
|
|
192
|
+
return {
|
|
193
|
+
committed: true,
|
|
194
|
+
owner: outcome.owner,
|
|
195
|
+
repo: outcome.repo,
|
|
196
|
+
folder: outcome.folder,
|
|
197
|
+
entryPath: outcome.entryPath,
|
|
198
|
+
branch: outcome.branch,
|
|
199
|
+
branchCreated: outcome.branchCreated,
|
|
200
|
+
commitSha: outcome.commitSha,
|
|
201
|
+
commitUrl: outcome.commitUrl,
|
|
202
|
+
filesChanged: outcome.filesChanged,
|
|
203
|
+
filesDeleted: outcome.filesDeleted,
|
|
204
|
+
// Paths this tool previously committed that the current export dropped, but did NOT delete —
|
|
205
|
+
// their live content no longer matches what this tool itself last wrote (or pre-dates this
|
|
206
|
+
// tool's ability to verify that at all). See `commit-site.ts`'s `SourceControlCommitOutcome`
|
|
207
|
+
// doc. Surfaced so the human is told exactly what survived and why, not just a bare count.
|
|
208
|
+
divergedPaths: outcome.divergedPaths,
|
|
209
|
+
};
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* Builds this domain's `guidance` string for `source_control_get_capabilities` — extracted purely for
|
|
213
|
+
* readability, same reasoning `publish-agent-tools.ts`'s own `buildCapabilityGuidance` gives.
|
|
214
|
+
* `undefined` means "nothing to tell the human" (configured AND commit-supported).
|
|
215
|
+
*
|
|
216
|
+
* @complexity O(1) — fixed string interpolation, no iteration.
|
|
217
|
+
*/
|
|
218
|
+
function buildCapabilityGuidance({ providerId, configured, commitReady, switchedOffPluginId, switchedOffPluginSentence }, _optional = {}) {
|
|
219
|
+
const switchOn = switchedOffPluginId === undefined ? "" : `: ${switchedOffPluginSentence({ pluginIds: [switchedOffPluginId] })}`;
|
|
220
|
+
if (!configured && !commitReady) {
|
|
221
|
+
return `No ${providerId} credential is saved, and no enabled Agent Plugin supports committing to ${providerId}${switchOn || "."}`;
|
|
222
|
+
}
|
|
223
|
+
if (!configured) {
|
|
224
|
+
// Demo dry run 2026-10-05: the token form opened before the person had heard any of this.
|
|
225
|
+
return `No ${providerId} credential is saved yet. First tell the person what is needed and ask which repository (owner/name) to use: ` +
|
|
226
|
+
"for a site backup it must be private and already have at least one commit (for example a README), and the token needs " +
|
|
227
|
+
"Contents read and write on it. Then call credential_save with kind source-control to open the human credential form.";
|
|
228
|
+
}
|
|
229
|
+
if (!commitReady) {
|
|
230
|
+
return `A ${providerId} credential is saved, but no enabled Agent Plugin supports committing to ${providerId}${switchOn || "."}`;
|
|
231
|
+
}
|
|
232
|
+
return undefined;
|
|
233
|
+
}
|
|
234
|
+
/**
|
|
235
|
+
* Builds this domain's `ToolRegistration[]` — same shape every other domain's
|
|
236
|
+
* `build<Domain>Registrations` produces.
|
|
237
|
+
*
|
|
238
|
+
* @param deps - `SourceControlToolDeps` (the narrow slice of `RouteDeps` this domain reads, plus
|
|
239
|
+
* this file's own test-only `gitAdapter` override).
|
|
240
|
+
* @param surfaces - The surface exchange store used by the credential setup forms; commits run
|
|
241
|
+
* on — required, matching `buildStaticPublishRegistrations`' own shape.
|
|
242
|
+
* @complexity O(1) registration-time cost; each wired handler's own cost is documented at its call
|
|
243
|
+
* site above.
|
|
244
|
+
*/
|
|
245
|
+
/** Bind the source-control credential owner with the same installed-provider loader as other tools.
|
|
246
|
+
* @param required - Existing domain dependencies and shared surface exchanges.
|
|
247
|
+
* @returns Internal save adapter; permissions and errors remain domain-owned.
|
|
248
|
+
* @example buildSourceControlCredentialHandler({ deps, surfaces });
|
|
249
|
+
* @complexity O(1) binding; provider/save costs are documented by proposeSourceControlCredential.
|
|
250
|
+
*/
|
|
251
|
+
export function buildSourceControlCredentialHandler({ deps, surfaces }, _optional = {}) {
|
|
252
|
+
return (ctx, optional = {}) => proposeSourceControlCredential({ ctx, deps: { ...deps, loadSourceControlProviders: providerLoader(deps) }, surfaces }, optional);
|
|
253
|
+
}
|
|
254
|
+
async function previewSourceControlCommit({ deps, command, host }) {
|
|
255
|
+
// Same "presence only" read `source_control_get_capabilities` and the real-commit path
|
|
256
|
+
// below both rely on — never decrypts. No dialog: a dry run only previews what a real
|
|
257
|
+
// commit would export, so it never opens the confirmation surface or touches `emitSurface`.
|
|
258
|
+
const existing = await findConfiguredCredential({ deps, providerId: command.provider });
|
|
259
|
+
const preview = await deps.previewCommitExport(commitInput({ deps, command }), { providerId: command.provider, ...(host.validateTarget === undefined ? {} : { validateTarget: host.validateTarget }) });
|
|
260
|
+
if (!preview.ok) {
|
|
261
|
+
return {
|
|
262
|
+
dryRun: true,
|
|
263
|
+
committed: false,
|
|
264
|
+
owner: command.owner,
|
|
265
|
+
repo: command.repo,
|
|
266
|
+
branch: command.branch,
|
|
267
|
+
credentialConfigured: existing !== null,
|
|
268
|
+
code: preview.code,
|
|
269
|
+
message: preview.message,
|
|
270
|
+
};
|
|
271
|
+
}
|
|
272
|
+
return {
|
|
273
|
+
dryRun: true,
|
|
274
|
+
committed: false,
|
|
275
|
+
owner: command.owner,
|
|
276
|
+
repo: command.repo,
|
|
277
|
+
branch: command.branch,
|
|
278
|
+
credentialConfigured: existing !== null,
|
|
279
|
+
fileCount: preview.fileCount,
|
|
280
|
+
totalBytes: preview.totalBytes,
|
|
281
|
+
paths: preview.paths,
|
|
282
|
+
folder: command.folder,
|
|
283
|
+
entryPath: prefixRepositoryPath({ folder: command.folder, path: deps.staticSitePackager.entryFile }),
|
|
284
|
+
note: "Nothing was sent. Call again without dryRun to commit.",
|
|
285
|
+
};
|
|
286
|
+
}
|
|
287
|
+
async function executeSourceControlCommit({ deps, ctx }) {
|
|
288
|
+
const raw = requireInputRecord({ input: ctx.input });
|
|
289
|
+
const command = parseCommitCommand(raw);
|
|
290
|
+
const authorizeCommit = () => requireToolPermission({ authorize: adaptLegacyAuthorize({ authorize: deps.authorize }), workspaceId: deps.workspaceId, principalId: ctx.principal.id, permission: "source-control.commit" }, { entityType: "source-control" });
|
|
291
|
+
const host = await requireKnownHost({ deps, providerId: command.provider, authorizeSavedLookup: authorizeCommit });
|
|
292
|
+
const hostLabel = host.label;
|
|
293
|
+
requireValidTarget({ command, validateTarget: host.validateTarget });
|
|
294
|
+
await authorizeCommit();
|
|
295
|
+
if (command.folder && host.supportsFolder !== true)
|
|
296
|
+
return { committed: false, reason: "folder-unsupported", message: `${hostLabel} does not support folder commits. Update its provider before selecting a folder.` };
|
|
297
|
+
if (command.dryRun) {
|
|
298
|
+
return previewSourceControlCommit({ deps, command, host });
|
|
299
|
+
}
|
|
300
|
+
// Never decrypts — a plain repo read, same "presence only" contract `source_control_get_capabilities`
|
|
301
|
+
// relies on. Checked before raising any dialog so a guaranteed-fail call never wastes a human's
|
|
302
|
+
// attention.
|
|
303
|
+
const existing = await findConfiguredCredential({ deps, providerId: command.provider });
|
|
304
|
+
if (!existing) {
|
|
305
|
+
return {
|
|
306
|
+
committed: false,
|
|
307
|
+
reason: "no-credential",
|
|
308
|
+
message: `No ${hostLabel} source control credential is configured for this workspace. Call credential_save with kind source-control to open a human credential form before committing.`,
|
|
309
|
+
};
|
|
310
|
+
}
|
|
311
|
+
const commitAdapter = await resolveCommitAdapter({ deps, providerId: command.provider });
|
|
312
|
+
if (!commitAdapter.ok)
|
|
313
|
+
return { committed: false, reason: "no-provider", message: commitAdapter.message };
|
|
314
|
+
// The run ended during the pre-dialog reads: no dialog, and no call left waiting on an abort already past.
|
|
315
|
+
if (ctx.signal.aborted)
|
|
316
|
+
return { committed: false, cancelled: false, reason: "abandoned" };
|
|
317
|
+
const outcome = await deps.commitSiteToSourceControl({ providerId: existing.providerId, supportsFolder: host.supportsFolder === true, credentialDeps: { deps: deps.deps, repo: deps.sourceControlCredentialSetRepo, sealer: deps.siteAssistantSecretSealer,
|
|
318
|
+
resolveSavedApiKey: (input, options = {}) => resolveSavedApiKey({ deps, ...input }, options),
|
|
319
|
+
}, gitAdapter: commitAdapter.adapter, ...(host.validateTarget ? { validateTarget: host.validateTarget } : {}) }, commitInput({ deps, command }));
|
|
320
|
+
return buildCommitOutcomeResult(outcome);
|
|
321
|
+
}
|
|
322
|
+
export function buildSourceControlRegistrations(deps, surfaces) {
|
|
323
|
+
const handlers = {
|
|
324
|
+
source_control_get_capabilities: async (ctx) => {
|
|
325
|
+
requireNoInput({ input: ctx.input });
|
|
326
|
+
await requireToolPermission({ authorize: adaptLegacyAuthorize({ authorize: deps.authorize }), workspaceId: deps.workspaceId, principalId: ctx.principal.id, permission: "source-control.read" }, { entityType: "source-control" });
|
|
327
|
+
const saved = await listSourceControlCredentials({ deps: deps.deps, repo: deps.sourceControlCredentialSetRepo }, { workspaceId: deps.workspaceId });
|
|
328
|
+
const registry = await providerLoader(deps)({ workspaceId: deps.workspaceId });
|
|
329
|
+
const providers = await Promise.all(reportedProviderIds(registry, saved.map((credential) => credential.providerId)).map(async (providerId) => {
|
|
330
|
+
const savedCredentials = saved
|
|
331
|
+
.filter((credential) => credential.providerId === providerId && !deps.sourceControlCredentialSetRepo.canonical?.supports({ providerId }))
|
|
332
|
+
.map((credential) => ({ id: credential.id, label: credential.label, isDefault: credential.isDefault, createdAt: credential.createdAt, updatedAt: credential.updatedAt }));
|
|
333
|
+
let hasSavedApiKey = false;
|
|
334
|
+
if (savedCredentials.length === 0)
|
|
335
|
+
hasSavedApiKey = (await findSavedApiKey({ deps, providerId })) !== null;
|
|
336
|
+
const configured = savedCredentials.length > 0 || hasSavedApiKey;
|
|
337
|
+
const loaded = registry.get({ providerId });
|
|
338
|
+
const ready = loaded !== undefined;
|
|
339
|
+
const guidance = buildCapabilityGuidance({ providerId, configured, commitReady: ready, switchedOffPluginId: registry.switchedOff?.get(providerId), switchedOffPluginSentence: deps.switchedOffPluginSentence });
|
|
340
|
+
return {
|
|
341
|
+
providerId,
|
|
342
|
+
...(loaded ? hostFacts(loaded.descriptor) : {}),
|
|
343
|
+
configured,
|
|
344
|
+
...(hasSavedApiKey ? { credentialSource: "saved-api-key" } : {}),
|
|
345
|
+
commitSupported: ready,
|
|
346
|
+
supportsFolder: loaded?.module.supportsFolder === true,
|
|
347
|
+
savedCredentials,
|
|
348
|
+
...(guidance !== undefined ? { guidance } : {}),
|
|
349
|
+
};
|
|
350
|
+
}));
|
|
351
|
+
return { providers };
|
|
352
|
+
},
|
|
353
|
+
/** Shared approval precedes real export commits, which can remove stale paths;
|
|
354
|
+
* dry-run previews stay direct. Target, credential and branch checks remain. */
|
|
355
|
+
source_control_execute_commit: async (ctx) => executeSourceControlCommit({ deps, ctx }),
|
|
356
|
+
};
|
|
357
|
+
// No `unwiredToolIds`: this domain wires its ENTIRE catalog — a 3rd catalog entry added without a
|
|
358
|
+
// handler fails the build.
|
|
359
|
+
return buildDomainRegistrations({ metadata: toolMetadata,
|
|
360
|
+
domain: "source-control",
|
|
361
|
+
catalogModule: "features/source-control/tool-registrations.ts",
|
|
362
|
+
catalog: deps.catalog,
|
|
363
|
+
handlers,
|
|
364
|
+
derivedRisk: sourceControlDerivedRisk,
|
|
365
|
+
});
|
|
366
|
+
}
|
|
367
|
+
/**
|
|
368
|
+
* Contributes Source Control's AI tools; called once by the composition root's
|
|
369
|
+
* `installFirstPartyToolContributors()`, never as an import side effect.
|
|
370
|
+
* Credential resolution is injected with structural signatures; importing this feature from
|
|
371
|
+
* credential discovery would close a runtime cycle back through the assistant.
|
|
372
|
+
*/
|
|
373
|
+
export function contributeSourceControlTools() {
|
|
374
|
+
return { domain: "source-control", build: buildSourceControlRegistrations, risk: sourceControlDerivedRisk };
|
|
375
|
+
}
|
|
376
|
+
export function bindSourceControlTools(required, _optional = {}) {
|
|
377
|
+
return { buildSourceControlCredentialHandler: ({ deps, surfaces }, optional = {}) => buildSourceControlCredentialHandler({ deps: { ...deps, ...required }, surfaces }, optional), buildSourceControlRegistrations: (deps, surfaces) => buildSourceControlRegistrations({ ...deps, ...required }, surfaces), contributeSourceControlTools: () => ({ domain: "source-control", build: (deps, surfaces) => buildSourceControlRegistrations({ ...deps, ...required }, surfaces), risk: sourceControlDerivedRisk }) };
|
|
378
|
+
}
|
|
379
|
+
//# sourceMappingURL=tool-registrations.js.map
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Export/publish pre-flight checks over the rendered page HTML (A421, A400). Pure detectors
|
|
3
|
+
* plus a per-export collector; the exporter feeds it every page it writes and folds the result into
|
|
4
|
+
* the report's existing `consentWarning` field, the only warning channel that already reaches the
|
|
5
|
+
* publish outcome (admin card and assistant message). Warnings never block: the owner decides.
|
|
6
|
+
*/
|
|
7
|
+
export interface ExportPreflightCopy {
|
|
8
|
+
readonly contactEmailPlaceholder: string;
|
|
9
|
+
readonly placeholderWarning: (required: {
|
|
10
|
+
pages: number;
|
|
11
|
+
}, optional?: Record<string, never>) => string | undefined;
|
|
12
|
+
readonly thirdPartyWarning: (required: {
|
|
13
|
+
pages: number;
|
|
14
|
+
hosts: readonly string[];
|
|
15
|
+
}, optional?: Record<string, never>) => string | undefined;
|
|
16
|
+
}
|
|
17
|
+
/** Whether the page still carries the privacy template's contact placeholder. @complexity O(n) in page bytes. */
|
|
18
|
+
export declare function findContactEmailPlaceholder({ html, placeholder }: {
|
|
19
|
+
html: string;
|
|
20
|
+
placeholder: string;
|
|
21
|
+
}, _optional?: {}): boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Hosts of external scripts written straight into a page. Relative and same-site sources are
|
|
24
|
+
* first-party; templates are inert authored content and are not entered.
|
|
25
|
+
* @complexity O(sample bytes), at most 1 MB per page.
|
|
26
|
+
*/
|
|
27
|
+
export declare function findThirdPartyScriptHosts({ html, ownHosts }: {
|
|
28
|
+
html: string;
|
|
29
|
+
ownHosts: ReadonlySet<string>;
|
|
30
|
+
}, _optional?: {}): string[];
|
|
31
|
+
/** One export's collector. State lives in this closure, created per export, never at module level. */
|
|
32
|
+
export declare function createExportPreflight({ ownOrigins, copy }: {
|
|
33
|
+
ownOrigins: readonly unknown[];
|
|
34
|
+
copy: ExportPreflightCopy;
|
|
35
|
+
}, _optional?: {}): {
|
|
36
|
+
observePage({ html }: {
|
|
37
|
+
html: string;
|
|
38
|
+
}, _optional?: {}): void;
|
|
39
|
+
/** Third-party scripts only matter once a cookie banner is promising to manage consent. */
|
|
40
|
+
setConsentConfigured({ configured }: {
|
|
41
|
+
configured: boolean;
|
|
42
|
+
}, _optional?: {}): void;
|
|
43
|
+
/** The existing warning with this export's pre-flight warnings appended; undefined when there are none. */
|
|
44
|
+
joinWarnings({ existing }: {
|
|
45
|
+
existing: string | undefined;
|
|
46
|
+
}, _optional?: {}): string | undefined;
|
|
47
|
+
};
|
|
48
|
+
//# sourceMappingURL=export-preflight.d.ts.map
|