@jini-ai/devops 0.7.3-next.2 → 0.7.4
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/CHANGELOG.md +7 -0
- 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 +158 -0
- package/dist/backup/site/backup-service.d.ts +336 -0
- package/dist/backup/site/backup-service.js +127 -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 +94 -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 +39 -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 +197 -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 +210 -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 +107 -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 +75 -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 +204 -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/coverage/lcov.js +1 -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 +152 -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 +130 -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 +321 -0
- package/dist/deploy/site/publish-credentials/store.js +367 -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 +118 -0
- package/dist/deploy/site/static-publish/credentials.d.ts +114 -0
- package/dist/deploy/site/static-publish/credentials.js +298 -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 +168 -0
- package/dist/deploy/site/static-publish/types.js +2 -0
- package/dist/deploy/site/static-publish/verify.d.ts +237 -0
- package/dist/deploy/site/static-publish/verify.js +284 -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/packaging/electron/update-manifest-merge.js +0 -2
- 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/asset-crawl.d.ts +30 -0
- package/dist/static-export/asset-crawl.js +71 -0
- package/dist/static-export/dynamic-asset-locations.d.ts +23 -0
- package/dist/static-export/dynamic-asset-locations.js +34 -0
- package/dist/static-export/html-url-locations.d.ts +3 -1
- package/dist/static-export/html-url-locations.js +43 -9
- package/dist/static-export/runner.js +26 -27
- 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/dist/static-export/transforms.d.ts +1 -1
- package/dist/static-export/transforms.js +3 -3
- package/package.json +911 -7
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
import { formatUserFacingError, type UserFacingError } from "@jini-ai/core";
|
|
2
|
+
import type { FetchQueryAdapter } from "@jini-ai/core/fetch";
|
|
3
|
+
import type { StaticPublishPort } from "@jini-ai/core/contracts/site/deployment-admin";
|
|
4
|
+
import type { Translate } from "@jini-ai/core/text";
|
|
5
|
+
import { type StaticPublishProjectNameCopy, type AdminPublishTargetDescriptor } from "../rules.js";
|
|
6
|
+
type AdminStaticPublishTargetId = string;
|
|
7
|
+
export interface AdminStaticPublishConfig {
|
|
8
|
+
target: AdminStaticPublishTargetId;
|
|
9
|
+
fields: Readonly<Record<string, string>>;
|
|
10
|
+
}
|
|
11
|
+
/** Mirrors `StaticPublishOutcome` (same file) — the terminal result of one publish attempt, present
|
|
12
|
+
* on an {@link AdminPublishRunSnapshot} once `status` is `"completed"` or `"errored"`. */
|
|
13
|
+
type AdminStaticPublishOutcome = {
|
|
14
|
+
ok: true;
|
|
15
|
+
targetId: AdminStaticPublishTargetId;
|
|
16
|
+
url: string;
|
|
17
|
+
status: string;
|
|
18
|
+
deploymentId?: string;
|
|
19
|
+
basePath?: string;
|
|
20
|
+
} | {
|
|
21
|
+
ok: false;
|
|
22
|
+
code: "INVALID_CONFIG" | "NO_CREDENTIALS_CONFIGURED" | "EXPORT_FAILED" | "PROVIDER_ERROR";
|
|
23
|
+
message: string;
|
|
24
|
+
};
|
|
25
|
+
/** Mirrors `PublishRunStatus` in the host's route. */
|
|
26
|
+
type AdminPublishRunStatus = "idle" | "running" | "completed" | "errored";
|
|
27
|
+
/** Mirrors `PublishRunSnapshot` (same file) — the trigger+poll run slot for a publish to a
|
|
28
|
+
* static host, independent of {@link AdminExportRunSnapshot}'s own run slot (a plain export and a
|
|
29
|
+
* publish are different server-side operations with their own process-local state). */
|
|
30
|
+
export interface AdminPublishRunSnapshot {
|
|
31
|
+
status: AdminPublishRunStatus;
|
|
32
|
+
startedAtIso: string | null;
|
|
33
|
+
finishedAtIso: string | null;
|
|
34
|
+
target: AdminStaticPublishTargetId | null;
|
|
35
|
+
/** Present only once `status` is `"completed"` or `"errored"`. */
|
|
36
|
+
result?: AdminStaticPublishOutcome;
|
|
37
|
+
/** Present only on the rare path where the route itself failed unexpectedly — never echoes the
|
|
38
|
+
* raw error object. */
|
|
39
|
+
error?: string;
|
|
40
|
+
}
|
|
41
|
+
/** Mirrors the JSON shape `GET .../system/publish/preview` returns — see that route's own doc
|
|
42
|
+
* comment in the server publish route. A pure read: never starts a run, never echoes a credential's value,
|
|
43
|
+
* only whether one is configured. */
|
|
44
|
+
export interface AdminStaticPublishPreview {
|
|
45
|
+
target: AdminStaticPublishTargetId;
|
|
46
|
+
valid: boolean;
|
|
47
|
+
validationError: string | null;
|
|
48
|
+
/** `/${repo}` for a host that serves under a repository subpath, `null` for a root-served host or an invalid config — always SERVER-derived,
|
|
49
|
+
* never something the caller supplied. */
|
|
50
|
+
basePath: string | null;
|
|
51
|
+
credentialsConfigured: boolean;
|
|
52
|
+
credentialGuidance: string | null;
|
|
53
|
+
willInjectNojekyll: boolean;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* @file Everything the Static Site tab's "Getting it online" provider form does — target selection,
|
|
57
|
+
* the host's config fields and projectName, the preview action, and the publish
|
|
58
|
+
* trigger+poll — so `StaticSiteTab.tsx` is only markup. Wired 2026-08-15 against
|
|
59
|
+
* `the host publish-site.ts`'s three routes (preview, trigger, status).
|
|
60
|
+
*
|
|
61
|
+
* ## One form, fields from the host's descriptor
|
|
62
|
+
*
|
|
63
|
+
* The hosts, and each host's config fields, come from `GET .../system/publish-targets` (the deploy
|
|
64
|
+
* plugin's descriptors) — this hook names no host. Config values are kept per target id, so
|
|
65
|
+
* switching hosts never discards another host's half-filled fields, and `buildStaticPublishConfig`
|
|
66
|
+
* (`rules.ts`) sends only the fields the selected host declares.
|
|
67
|
+
*
|
|
68
|
+
* ## `basePath` is never a field here
|
|
69
|
+
*
|
|
70
|
+
* There is no `setBasePath` anywhere in this file, on purpose — `AdminStaticPublishConfig` (the
|
|
71
|
+
* wire type) has no such field either. The base path is always what `preview.basePath`/
|
|
72
|
+
* `run.result.basePath` REPORT the server already computed, never something this form could send
|
|
73
|
+
* back. See `static-publish/adapter.ts`'s `computeBasePath` for why that is structural, not a
|
|
74
|
+
* missing feature.
|
|
75
|
+
*
|
|
76
|
+
* ## `preview` is invalidated by every field edit
|
|
77
|
+
*
|
|
78
|
+
* A stale preview computed against a DIFFERENT owner/repo would show the wrong base path next to a
|
|
79
|
+
* form the operator has since changed — worse than showing nothing, since it looks current. Every
|
|
80
|
+
* setter below clears `preview`/`previewError` as a side effect, so the "Preview" affordance always
|
|
81
|
+
* either reflects the fields currently on screen or is honestly empty.
|
|
82
|
+
*/
|
|
83
|
+
export interface StaticPublishController {
|
|
84
|
+
/** The deploy registry's targets, in its order — `undefined` until the first load resolves. */
|
|
85
|
+
targets: readonly AdminPublishTargetDescriptor[] | undefined;
|
|
86
|
+
/** Translated error from loading {@link targets}, `null` otherwise. */
|
|
87
|
+
targetsError: string | null;
|
|
88
|
+
/** The selected target's id — the operator's pick, else the first listed target; `""` while the
|
|
89
|
+
* list loads. */
|
|
90
|
+
target: AdminStaticPublishTargetId;
|
|
91
|
+
/** {@link target}'s descriptor, `undefined` while the list loads. */
|
|
92
|
+
selectedTarget: AdminPublishTargetDescriptor | undefined;
|
|
93
|
+
setTarget: (target: AdminStaticPublishTargetId) => void;
|
|
94
|
+
/** The selected target's config values, keyed by descriptor field name. */
|
|
95
|
+
configValues: Readonly<Record<string, string>>;
|
|
96
|
+
setConfigField: (required: {
|
|
97
|
+
name: string;
|
|
98
|
+
value: string;
|
|
99
|
+
}, optional?: {}) => void;
|
|
100
|
+
/** Whether Preview / Publish may be asked for with the current values (`rules.ts`). */
|
|
101
|
+
canPreview: boolean;
|
|
102
|
+
canPublish: boolean;
|
|
103
|
+
/** The selected host's label and help for {@link projectName}; `null` when the host takes no
|
|
104
|
+
* project name, so the tab shows no such field. */
|
|
105
|
+
projectNameCopy: StaticPublishProjectNameCopy | null;
|
|
106
|
+
projectName: string;
|
|
107
|
+
setProjectName: (value: string) => void;
|
|
108
|
+
/** The most recent preview result — `undefined` until {@link checkPreview} has resolved at least
|
|
109
|
+
* once since the fields were last edited (see this file's header). */
|
|
110
|
+
preview: AdminStaticPublishPreview | undefined;
|
|
111
|
+
previewLoading: boolean;
|
|
112
|
+
previewError: string | null;
|
|
113
|
+
/** Runs a preview against the CURRENT field values for the CURRENT target. Resolves either way — a
|
|
114
|
+
* failure is surfaced through {@link previewError}. */
|
|
115
|
+
checkPreview: () => Promise<void>;
|
|
116
|
+
/** The current/most recent publish run — `undefined` until the first status read resolves. */
|
|
117
|
+
run: AdminPublishRunSnapshot | undefined;
|
|
118
|
+
/** True whenever `run.status === "running"` AND polling can still reach the status endpoint — see
|
|
119
|
+
* {@link pollError}'s own doc for why the second half matters (same shape
|
|
120
|
+
* `StaticExportController.isRunning` documents). */
|
|
121
|
+
isPublishing: boolean;
|
|
122
|
+
/** Already-formatted, translated error from the INITIAL status read — `null` while loading or once
|
|
123
|
+
* loaded successfully. Distinct from {@link publishError}: same split
|
|
124
|
+
* `StaticExportController.loadError`/`triggerError` draws. */
|
|
125
|
+
loadError: string | null;
|
|
126
|
+
/** Already-formatted, translated error from the poll loop giving up after a bounded number of
|
|
127
|
+
* consecutive failures — `null` while healthy, reset at the start of every new {@link publish}.
|
|
128
|
+
* Same shape and same reason `StaticExportController.pollError` exists: an unbounded retry here
|
|
129
|
+
* would strand the operator on a stuck "Publishing…" spinner with the button disabled forever. */
|
|
130
|
+
pollError: string | null;
|
|
131
|
+
publishError: string | null;
|
|
132
|
+
publishFailure?: UserFacingError | null;
|
|
133
|
+
/** True while a {@link publish} POST is in flight — briefer than {@link isPublishing}, which stays
|
|
134
|
+
* true for the whole publish, not just the initial request. Exposed (unlike an internal-only flag)
|
|
135
|
+
* so the caller can disable the Publish button on this alone, before any run comes back — without
|
|
136
|
+
* it, a double-click could send two POSTs before the first one's response ever arrives. */
|
|
137
|
+
publishing: boolean;
|
|
138
|
+
/** Starts a real publish with the current field values. Resolves either way — a failure is
|
|
139
|
+
* surfaced through {@link publishError}, never a thrown rejection. A call while {@link publishing}
|
|
140
|
+
* is already true is a duplicate submit and is ignored outright, not just discouraged by the
|
|
141
|
+
* disabled button — see this function's own implementation note.
|
|
142
|
+
*
|
|
143
|
+
* `options.credentialId` names the saved connection the publish must use (terra review
|
|
144
|
+
* 2026-09-20, finding 1). This hook never picks one itself: it has no credentials controller, and
|
|
145
|
+
* the caller (`StaticSiteTab`) is the one screen that knows which connection the operator is
|
|
146
|
+
* actually looking at. Omitted when this provider has no saved connection.
|
|
147
|
+
*
|
|
148
|
+
* `options.destination` replays a saved destination (the Sites Export tab's Publish list) instead
|
|
149
|
+
* of this form's fields: the server already validated that target, project and config once. */
|
|
150
|
+
publish: (options?: StaticPublishOptions) => Promise<void>;
|
|
151
|
+
t: Translate;
|
|
152
|
+
}
|
|
153
|
+
/** What one {@link StaticPublishController.publish} call may name. */
|
|
154
|
+
export interface StaticPublishOptions {
|
|
155
|
+
credentialId?: string;
|
|
156
|
+
destination?: {
|
|
157
|
+
config: AdminStaticPublishConfig;
|
|
158
|
+
projectName: string;
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
export declare function useStaticPublish(required: {
|
|
162
|
+
port: StaticPublishPort<AdminPublishTargetDescriptor, AdminStaticPublishConfig, AdminStaticPublishPreview, AdminPublishRunSnapshot>;
|
|
163
|
+
t: Translate;
|
|
164
|
+
locale: string;
|
|
165
|
+
hooks: Pick<FetchQueryAdapter, "useFetchQuery">;
|
|
166
|
+
deps: {
|
|
167
|
+
localizePublishTargets: (required: {
|
|
168
|
+
targets: AdminPublishTargetDescriptor[] | undefined;
|
|
169
|
+
locale: string;
|
|
170
|
+
}) => AdminPublishTargetDescriptor[] | undefined;
|
|
171
|
+
describeApiError: (required: {
|
|
172
|
+
e: unknown;
|
|
173
|
+
fallback: string;
|
|
174
|
+
}) => string;
|
|
175
|
+
publishLoadErrorMessage: (required: {
|
|
176
|
+
locale: string;
|
|
177
|
+
error: string;
|
|
178
|
+
}) => string;
|
|
179
|
+
publishPollErrorMessage: (required: {
|
|
180
|
+
locale: string;
|
|
181
|
+
error: string;
|
|
182
|
+
}) => string;
|
|
183
|
+
publishPreviewErrorMessage: (required: {
|
|
184
|
+
locale: string;
|
|
185
|
+
error: string;
|
|
186
|
+
}) => string;
|
|
187
|
+
publishTriggerErrorMessage: (required: {
|
|
188
|
+
locale: string;
|
|
189
|
+
error: string;
|
|
190
|
+
}) => string;
|
|
191
|
+
errorRedactionOptions: Parameters<typeof formatUserFacingError>[1];
|
|
192
|
+
setTimeout: typeof globalThis.setTimeout;
|
|
193
|
+
clearTimeout: typeof globalThis.clearTimeout;
|
|
194
|
+
};
|
|
195
|
+
}, _optional?: {}): StaticPublishController;
|
|
196
|
+
export declare function bindStaticPublish({ hooks, deps }: {
|
|
197
|
+
hooks: Parameters<typeof useStaticPublish>[0]["hooks"] & {
|
|
198
|
+
useLocaleHook: () => string;
|
|
199
|
+
};
|
|
200
|
+
deps: Parameters<typeof useStaticPublish>[0]["deps"] & Pick<Parameters<typeof useStaticPublish>[0], "port"> & {
|
|
201
|
+
translate: (required: {
|
|
202
|
+
locale: string;
|
|
203
|
+
key: string;
|
|
204
|
+
}) => string;
|
|
205
|
+
};
|
|
206
|
+
}, _optional?: {}): (_required: Record<string, never>, _optional?: {}) => StaticPublishController;
|
|
207
|
+
export {};
|
|
208
|
+
//# sourceMappingURL=use-static-publish.hooks.d.ts.map
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { formatUserFacingError } from "@jini-ai/core";
|
|
2
|
+
import { staticPublishFormReadyForPreview, staticPublishFormReadyToPublish, staticPublishProjectNameCopy } from "../rules.js";
|
|
3
|
+
import { useStaticPublishForm } from "./static-publish-form.hooks.js";
|
|
4
|
+
import { useStaticPublishRun, useStaticPublishPolling } from "./static-publish-run.hooks.js";
|
|
5
|
+
import { publish } from "./static-publish-actions.js";
|
|
6
|
+
export function useStaticPublish(required, _optional = {}) {
|
|
7
|
+
const form = useStaticPublishForm(required);
|
|
8
|
+
const state = useStaticPublishRun(required);
|
|
9
|
+
useStaticPublishPolling({ state, deps: required.deps });
|
|
10
|
+
const { targets, targetsError, target, selectedTarget, setTarget, configValues, setConfigField, projectName, setProjectName, preview, previewLoading, previewError, checkPreview } = form;
|
|
11
|
+
const { run, isPublishing, loadError, pollError, publishError, publishFailure, publishing } = state;
|
|
12
|
+
const { t } = required;
|
|
13
|
+
return {
|
|
14
|
+
targets,
|
|
15
|
+
targetsError,
|
|
16
|
+
target,
|
|
17
|
+
selectedTarget,
|
|
18
|
+
setTarget,
|
|
19
|
+
configValues,
|
|
20
|
+
setConfigField,
|
|
21
|
+
canPreview: staticPublishFormReadyForPreview({ target: selectedTarget, values: configValues }),
|
|
22
|
+
canPublish: staticPublishFormReadyToPublish({ target: selectedTarget, values: configValues, projectName }),
|
|
23
|
+
projectNameCopy: staticPublishProjectNameCopy({ target: selectedTarget }),
|
|
24
|
+
projectName,
|
|
25
|
+
setProjectName,
|
|
26
|
+
preview,
|
|
27
|
+
previewLoading,
|
|
28
|
+
previewError,
|
|
29
|
+
checkPreview,
|
|
30
|
+
run,
|
|
31
|
+
isPublishing,
|
|
32
|
+
loadError,
|
|
33
|
+
pollError,
|
|
34
|
+
publishError,
|
|
35
|
+
publishFailure,
|
|
36
|
+
publishing,
|
|
37
|
+
publish: (options = {}) => publish({ options, form, state, ...required }),
|
|
38
|
+
t,
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
export function bindStaticPublish({ hooks, deps }, _optional = {}) {
|
|
42
|
+
return function useBoundStaticPublish(_required, _optional = {}) {
|
|
43
|
+
const locale = hooks.useLocaleHook();
|
|
44
|
+
const t = (key) => deps.translate({ locale: locale, key: key });
|
|
45
|
+
return useStaticPublish({ port: deps.port, t, locale, hooks, deps });
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=use-static-publish.hooks.js.map
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
export { PublishRunResult } from './PublishRunResult.js';
|
|
2
2
|
export type { PublishRunResultProps } from './PublishRunResult.js';
|
|
3
|
+
export { HistoryTab } from './HistoryTab.js';
|
|
4
|
+
export type { HistoryTabProps } from './HistoryTab.js';
|
|
5
|
+
export { useDeploymentOverview } from './use-deployment-overview.hooks.js';
|
|
6
|
+
export type { DeploymentOverviewController, DeploymentOverviewArgs } from './use-deployment-overview.hooks.js';
|
|
3
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,363 @@
|
|
|
1
|
+
import type { AdminPublishConnectionInput, AdminPublishCredentialProviderId, AdminPublishCredentialSummary, AdminPublishCredentialVerification, AdminPublishExecutionMode } from "@jini-ai/core/contracts/site/api-security-api-types";
|
|
2
|
+
import type { DeploymentEnvVarStatus, DeploymentOverviewSnapshot } from "@jini-ai/core/contracts/site/cms-system-deploy";
|
|
3
|
+
import type { ExportRunSnapshot } from "@jini-ai/core/contracts/site/export-run";
|
|
4
|
+
export interface AdminPublishTargetField {
|
|
5
|
+
name: string;
|
|
6
|
+
label: string;
|
|
7
|
+
required?: boolean;
|
|
8
|
+
help?: string;
|
|
9
|
+
userHelp?: string;
|
|
10
|
+
secret?: true;
|
|
11
|
+
}
|
|
12
|
+
export interface AdminPublishTargetCredentialSpec {
|
|
13
|
+
help?: string;
|
|
14
|
+
userHelp?: string;
|
|
15
|
+
vendorLabel?: string;
|
|
16
|
+
tokenField: string;
|
|
17
|
+
tokenPageUrl?: string;
|
|
18
|
+
fields: AdminPublishTargetField[];
|
|
19
|
+
}
|
|
20
|
+
export interface AdminPublishTargetDescriptor {
|
|
21
|
+
id: string;
|
|
22
|
+
label: string;
|
|
23
|
+
configFields: AdminPublishTargetField[];
|
|
24
|
+
credential?: AdminPublishTargetCredentialSpec;
|
|
25
|
+
projectName?: {
|
|
26
|
+
label: string;
|
|
27
|
+
help?: string;
|
|
28
|
+
};
|
|
29
|
+
i18n?: Record<string, Record<string, string>>;
|
|
30
|
+
}
|
|
31
|
+
import { trimChars } from "@jini-ai/core/primitives";
|
|
32
|
+
/**
|
|
33
|
+
* @file Pure data and computation for the Deployment panel — no React, no fetch, no `t()` calls
|
|
34
|
+
* (every function here returns a DICTIONARY KEY for a caller to translate, same convention
|
|
35
|
+
* `use-page-editor.hooks.ts`'s `themeExploreSaveLabel`-style helpers follow elsewhere in this app).
|
|
36
|
+
* Kept separate from the five tab components per this app's `rules.ts`-holds-the-logic convention
|
|
37
|
+
* (see `integrations/rules.ts`, `recovery/rules.ts`).
|
|
38
|
+
*/
|
|
39
|
+
/** The Static Site tab's export-status name on `lib/content-refresh-bus.ts` — see
|
|
40
|
+
* `taxonomy/rules.ts`'s `TAXONOMY_RESOURCE` for why this is a plain colocated constant rather than
|
|
41
|
+
* a shared registry. Agent-writable via `deployment_trigger_export`
|
|
42
|
+
* (the host's `features/deployments/agent-tools.ts`), which starts a run this tab polls.
|
|
43
|
+
* `use-static-export.hooks.ts`'s own header explains why the refresh is a bespoke re-fetch rather
|
|
44
|
+
* than the usual `useInvalidate()` one-liner — `run` seeds once and is never re-derived from the
|
|
45
|
+
* query afterward. There is deliberately NO sibling constant for `use-dockerfile-source.hooks.ts`:
|
|
46
|
+
* that tab holds a live, editable `draft` protected by its own etag/412-conflict machinery
|
|
47
|
+
* (`deployment_set_dockerfile` is the exact write that machinery exists to detect), and a
|
|
48
|
+
* bus-driven reload would either be inert against its one-shot seed guard or reintroduce the
|
|
49
|
+
* draft-clobber risk that guard prevents — see that hook's own file header. */
|
|
50
|
+
export declare const DEPLOYMENT_EXPORT_RESOURCE = "deployment-export";
|
|
51
|
+
/**
|
|
52
|
+
* The single fixed label every connection saved through the flat per-provider credential list uses
|
|
53
|
+
* (2026-08-15 redesign) — the server's `publish_credential_sets` table still enforces a UNIQUE
|
|
54
|
+
* `(workspace_id, provider_id, label)`, so a label is still written on every create, it is just never
|
|
55
|
+
* shown or typed by an operator anymore. Because the deploy registry names each target at most once, `(provider_id, "default")` can
|
|
56
|
+
* never collide with itself within one workspace — see `use-publish-credentials.hooks.ts`'s header for
|
|
57
|
+
* why a save only ever CREATES with this label when the provider has no saved connection yet, and
|
|
58
|
+
* UPDATEs the existing one (by id, keeping whatever label it already has) otherwise.
|
|
59
|
+
*/
|
|
60
|
+
export declare const PUBLISH_CREDENTIAL_ROW_LABEL = "default";
|
|
61
|
+
/**
|
|
62
|
+
* Every saved credential for one provider, in the order the server returned them.
|
|
63
|
+
* @complexity O(n) in this workspace's total saved-credential count (small — see
|
|
64
|
+
* `VendorCredentialSetRepoPort.listByWorkspace`'s own doc for why no cap is needed).
|
|
65
|
+
*/
|
|
66
|
+
export declare function credentialsForProvider({ credentials, providerId }: {
|
|
67
|
+
credentials: readonly AdminPublishCredentialSummary[];
|
|
68
|
+
providerId: AdminPublishCredentialProviderId;
|
|
69
|
+
}, _optional?: Record<string, never>): AdminPublishCredentialSummary[];
|
|
70
|
+
/**
|
|
71
|
+
* Which saved connection (if any) a provider's flat credential row should treat as "connected" — the
|
|
72
|
+
* group's DEFAULT row, which is also the exact row `resolveDefaultForPublish`/
|
|
73
|
+
* `composePublishCredentialSource` (server-side `static-publish/credentials.ts`) actually publishes
|
|
74
|
+
* with, so the row's own status can never claim "connected" for a saved credential a real publish
|
|
75
|
+
* would not use. Falls back to the first saved row only as a defensive read for data saved before
|
|
76
|
+
* this UI existed — the store's own write-path invariant (`decideCreateDefault`) guarantees at most
|
|
77
|
+
* one row is ever marked default once any exist for a provider, so this fallback is unreachable
|
|
78
|
+
* against data this UI itself ever wrote.
|
|
79
|
+
* @complexity O(n) in this provider's own (small) saved-connection count.
|
|
80
|
+
*/
|
|
81
|
+
export declare function defaultCredentialForProvider({ credentials, providerId }: {
|
|
82
|
+
credentials: readonly AdminPublishCredentialSummary[];
|
|
83
|
+
providerId: AdminPublishCredentialProviderId;
|
|
84
|
+
}, _optional?: Record<string, never>): AdminPublishCredentialSummary | undefined;
|
|
85
|
+
/**
|
|
86
|
+
* The saved-credential list as it stands once the server has confirmed `promoted` as its provider's
|
|
87
|
+
* default: that row replaced by the server's own summary, every OTHER row for the same provider
|
|
88
|
+
* un-defaulted (the store's "`isDefault: true` always wins" rule), other providers untouched. Applied
|
|
89
|
+
* only after the write has resolved — never optimistically — so it restates what the server did
|
|
90
|
+
* rather than guessing ahead of it.
|
|
91
|
+
*
|
|
92
|
+
* Generic over any credential-summary shape carrying `id`/`providerId`/`isDefault` — both
|
|
93
|
+
* `AdminPublishCredentialSummary` and `AdminSourceControlCredentialSummary` satisfy it field-for-
|
|
94
|
+
* field, so the Security page's Access Tokens tab (`security/hooks/use-access-tokens.hooks.ts`'s
|
|
95
|
+
* `makeDefault`) reuses this verbatim rather than reimplementing the same "promotion confirmed, list
|
|
96
|
+
* stays honest even if the follow-up reconcile refetch fails" fix this hook already needed (terra
|
|
97
|
+
* review 2026-09-20).
|
|
98
|
+
* @complexity O(n) in the credential list's own length.
|
|
99
|
+
*/
|
|
100
|
+
export declare function withPromotedDefault<T extends {
|
|
101
|
+
id: string;
|
|
102
|
+
providerId: string;
|
|
103
|
+
isDefault: boolean;
|
|
104
|
+
}>({ credentials, promoted }: {
|
|
105
|
+
credentials: readonly T[];
|
|
106
|
+
promoted: T;
|
|
107
|
+
}, _optional?: Record<string, never>): T[];
|
|
108
|
+
/** What a rejected credential create/update means for the FORM — a dictionary-key-shaped result
|
|
109
|
+
* for `use-publish-credentials.hooks.ts` to translate and apply, same "return a fact, never call
|
|
110
|
+
* `t()`" convention this file's own header states. `"generic"` is the catch-all every other kind
|
|
111
|
+
* falls back to (an unreachable server, an unexpected 500, …), handled by the caller's own
|
|
112
|
+
* `describeApiError`-wrapped template rather than by this function. */
|
|
113
|
+
export type PublishCredentialSubmitFailure = {
|
|
114
|
+
kind: "duplicate-label";
|
|
115
|
+
} | {
|
|
116
|
+
kind: "validation";
|
|
117
|
+
detail: string;
|
|
118
|
+
} | {
|
|
119
|
+
kind: "generic";
|
|
120
|
+
};
|
|
121
|
+
/** The descriptor for `id`, or `undefined` while the list loads or when the id is not listed.
|
|
122
|
+
* @complexity O(t) in the (small) target count. */
|
|
123
|
+
export declare function publishTargetById({ targets, id }: {
|
|
124
|
+
targets: readonly AdminPublishTargetDescriptor[] | undefined;
|
|
125
|
+
id: string;
|
|
126
|
+
}, _options?: {}): AdminPublishTargetDescriptor | undefined;
|
|
127
|
+
/** Whether every field `fields` marks required has a non-blank value in `values` — the one
|
|
128
|
+
* readiness rule both the publish form (config fields) and the credential form (credential fields)
|
|
129
|
+
* use, mirroring the server's own descriptor validation so a button never enables for a request
|
|
130
|
+
* the server would refuse on shape alone. @complexity O(f). */
|
|
131
|
+
export declare function requiredFieldsFilled({ fields, values }: {
|
|
132
|
+
fields: readonly AdminPublishTargetField[];
|
|
133
|
+
values: Readonly<Record<string, string>>;
|
|
134
|
+
}, _optional?: Record<string, never>): boolean;
|
|
135
|
+
/** The declared fields' values, trimmed, with blank ones dropped — so a blank optional field (a
|
|
136
|
+
* branch, a team) gets the server's own default instead of an explicit empty string, and
|
|
137
|
+
* undeclared keys never reach the wire. @complexity O(f). */
|
|
138
|
+
export declare function declaredFieldValues({ fields, values }: {
|
|
139
|
+
fields: readonly AdminPublishTargetField[];
|
|
140
|
+
values: Readonly<Record<string, string>>;
|
|
141
|
+
}, _optional?: Record<string, never>): Record<string, string>;
|
|
142
|
+
/** The wire config for one publish/preview: the target plus its declared config values.
|
|
143
|
+
* @complexity O(f). */
|
|
144
|
+
export declare function buildStaticPublishConfig({ target, values }: {
|
|
145
|
+
target: AdminPublishTargetDescriptor;
|
|
146
|
+
values: Readonly<Record<string, string>>;
|
|
147
|
+
}, _optional?: Record<string, never>): {
|
|
148
|
+
target: string;
|
|
149
|
+
fields: Readonly<Record<string, string>>;
|
|
150
|
+
};
|
|
151
|
+
/** Whether the publish form can ask for a PREVIEW: a known target with its required config
|
|
152
|
+
* fields filled. @complexity O(f). */
|
|
153
|
+
export declare function staticPublishFormReadyForPreview({ target, values }: {
|
|
154
|
+
target: AdminPublishTargetDescriptor | undefined;
|
|
155
|
+
values: Readonly<Record<string, string>>;
|
|
156
|
+
}, _options?: {}): boolean;
|
|
157
|
+
/** Whether the form can ask for a real PUBLISH — everything a preview needs plus a non-blank
|
|
158
|
+
* `projectName` when the host declares one (the preview has no such field). @complexity O(f). */
|
|
159
|
+
export declare function staticPublishFormReadyToPublish({ target, values, projectName }: {
|
|
160
|
+
target: AdminPublishTargetDescriptor | undefined;
|
|
161
|
+
values: Readonly<Record<string, string>>;
|
|
162
|
+
projectName: string;
|
|
163
|
+
}, _options?: {}): boolean;
|
|
164
|
+
/** The `projectName` the publish request carries. The server requires a non-blank one on every
|
|
165
|
+
* publish, but a host that declares no project name (e.g. object storage) ignores it, so the
|
|
166
|
+
* admin hides the field and sends the host's id instead. @complexity O(1). */
|
|
167
|
+
export declare function staticPublishProjectNameToSend({ target, projectName }: {
|
|
168
|
+
target: AdminPublishTargetDescriptor;
|
|
169
|
+
projectName: string;
|
|
170
|
+
}, _options?: {}): string;
|
|
171
|
+
/** Whether a credential form has enough typed to save: a non-blank token (a blank one on a
|
|
172
|
+
* connected row means "keep the stored secret", so there is nothing to send) plus every required
|
|
173
|
+
* field the host's descriptor declares. @complexity O(f). */
|
|
174
|
+
export declare function credentialFormReadyToSave({ spec, values }: {
|
|
175
|
+
spec: AdminPublishTargetCredentialSpec;
|
|
176
|
+
values: Readonly<Record<string, string>>;
|
|
177
|
+
}, _optional?: Record<string, never>): boolean;
|
|
178
|
+
/** The wire connection for one host's credential form: its id plus the declared fields' trimmed,
|
|
179
|
+
* non-blank values. @complexity O(f). */
|
|
180
|
+
export declare function buildCredentialConnectionInput({ providerId, spec, values }: {
|
|
181
|
+
providerId: AdminPublishCredentialProviderId;
|
|
182
|
+
spec: AdminPublishTargetCredentialSpec;
|
|
183
|
+
values: Readonly<Record<string, string>>;
|
|
184
|
+
}, _options?: {}): AdminPublishConnectionInput;
|
|
185
|
+
/** The project-name field's label and help. The same wire field means a different thing per host
|
|
186
|
+
* (a commit message, a site, a project), so each host's descriptor names it; a host that declares
|
|
187
|
+
* none takes no project name and gets no field (`null`). Both strings are already in the viewer's
|
|
188
|
+
* locale (`localizePublishTargets`); the translator passes them through. @complexity O(1). */
|
|
189
|
+
export interface StaticPublishProjectNameCopy {
|
|
190
|
+
readonly labelKey: string;
|
|
191
|
+
readonly helpKey: string | undefined;
|
|
192
|
+
}
|
|
193
|
+
export declare function staticPublishProjectNameCopy({ target }: {
|
|
194
|
+
target: AdminPublishTargetDescriptor | undefined;
|
|
195
|
+
}, _options?: {}): StaticPublishProjectNameCopy | null;
|
|
196
|
+
/** A descriptor field name as an `agentHandle` segment: `agentHandle()` throws on anything but
|
|
197
|
+
* lowercase words joined by single hyphens, and one throw blanks the whole admin, so a camelCase
|
|
198
|
+
* name (`accessKeyId`) becomes `access-key-id`. @complexity O(n) in the name's length. */
|
|
199
|
+
export declare function fieldNameHandleSegment({ fieldName, asciiSlug }: {
|
|
200
|
+
fieldName: string;
|
|
201
|
+
asciiSlug(required: {
|
|
202
|
+
text: string;
|
|
203
|
+
trimChars: typeof trimChars;
|
|
204
|
+
}): string;
|
|
205
|
+
}, _options?: {}): string;
|
|
206
|
+
/** The `agentHandle` id of one publish-config input. Ids predate the descriptors and are pinned by
|
|
207
|
+
* agent tooling, so `teamId` keeps its old `team` id; every other field uses its own name.
|
|
208
|
+
* @complexity O(n) in the name's length. */
|
|
209
|
+
export declare function publishConfigFieldHandleId({ fieldName, asciiSlug }: {
|
|
210
|
+
fieldName: string;
|
|
211
|
+
asciiSlug: Parameters<typeof fieldNameHandleSegment>[0]["asciiSlug"];
|
|
212
|
+
}, _options?: {}): string;
|
|
213
|
+
/** The `agentHandle`/DOM id of one credential input. The token field keeps its old `token` id and
|
|
214
|
+
* `accountId` its old `account` id (both pinned by agent tooling); every other field uses its own
|
|
215
|
+
* name. @complexity O(n) in the name's length. */
|
|
216
|
+
export declare function credentialFieldHandleId({ providerId, fieldName, tokenField, asciiSlug }: {
|
|
217
|
+
providerId: string;
|
|
218
|
+
fieldName: string;
|
|
219
|
+
tokenField: string;
|
|
220
|
+
asciiSlug: Parameters<typeof fieldNameHandleSegment>[0]["asciiSlug"];
|
|
221
|
+
}, _options?: {}): string;
|
|
222
|
+
/** How a host's credential is named mid-sentence: its token field's own label ("API token",
|
|
223
|
+
* "Secret access key"), lower-cased unless it starts with an acronym; "access token" when the
|
|
224
|
+
* descriptor has no such field. @complexity O(f) in the credential's field count. */
|
|
225
|
+
export declare function credentialNoun({ credential }: {
|
|
226
|
+
credential: AdminPublishTargetCredentialSpec;
|
|
227
|
+
}, _optional?: Record<string, never>): string;
|
|
228
|
+
/** Step 1's subtitle — why connecting here is necessary, which depends on `executionMode` (the
|
|
229
|
+
* server's own fact about whether this WORKSPACE can reach the operator's terminal at all — see
|
|
230
|
+
* `AdminPublishExecutionMode`'s doc in `lib/api.ts`), not on whether the selected PROVIDER has a
|
|
231
|
+
* CLI route. Otherwise it names the host's own credential ({@link credentialNoun}), never a
|
|
232
|
+
* "personal access token" a host that issues only API tokens or access key pairs does not have. @complexity O(f). */
|
|
233
|
+
export declare function credentialStepSubtitle({ executionMode, credential, translate, copy }: {
|
|
234
|
+
copy: {
|
|
235
|
+
credentialSubtitle: string;
|
|
236
|
+
};
|
|
237
|
+
executionMode: AdminPublishExecutionMode;
|
|
238
|
+
credential: AdminPublishTargetCredentialSpec;
|
|
239
|
+
translate: (key: string) => string;
|
|
240
|
+
}, _options?: {}): string;
|
|
241
|
+
/** The help a config field, credential field or credential form shows: the descriptor's
|
|
242
|
+
* person-facing `userHelp`, else its `help` (written for the agent); `undefined` when it has
|
|
243
|
+
* neither. @complexity O(1). */
|
|
244
|
+
export declare function fieldHelpText({ field }: {
|
|
245
|
+
field: AdminPublishTargetField | AdminPublishTargetCredentialSpec;
|
|
246
|
+
}, _options?: {}): string | undefined;
|
|
247
|
+
/** The label a config or credential field shows: the descriptor's label, with the generic
|
|
248
|
+
* "(optional)" suffix key when the field is optional. The caller translates `suffixKey`.
|
|
249
|
+
* @complexity O(1). */
|
|
250
|
+
export declare function fieldLabelParts({ field }: {
|
|
251
|
+
field: AdminPublishTargetField;
|
|
252
|
+
}, _optional?: Record<string, never>): {
|
|
253
|
+
label: string;
|
|
254
|
+
suffixKey: string | null;
|
|
255
|
+
};
|
|
256
|
+
/** One row of the two paths' capability comparison. `supported` is a fact about the PATH, not about
|
|
257
|
+
* whether the host can currently deploy to it — see {@link STATIC_SITE_CAPABILITIES}. */
|
|
258
|
+
export interface DeploymentCapability {
|
|
259
|
+
readonly id: string;
|
|
260
|
+
readonly labelKey: string;
|
|
261
|
+
readonly supported: boolean;
|
|
262
|
+
}
|
|
263
|
+
/**
|
|
264
|
+
* The Overview tab's per-env-var explanatory note, as a dictionary key. The host's site-key variable
|
|
265
|
+
* is boot-blocking in production (`REQUIRED_SECRETS` above; `boot-readiness-gate.ts`'s
|
|
266
|
+
* the production readiness gate calls `process.exit(1)` when neither the env var nor a valid key
|
|
267
|
+
* file resolves) but NOT in local/dev mode, where an unset value instead surfaces later as a 503 on
|
|
268
|
+
* the AI Assistant screen — worded here so the note itself states that split, rather than the UI
|
|
269
|
+
* inventing a severity color the underlying fact doesn't support.
|
|
270
|
+
*
|
|
271
|
+
* 2026-09-14: corrected from "Not required to boot" — that was true only for local/dev mode and
|
|
272
|
+
* read as a blanket claim; the production boot gate has required it since `boot-readiness-gate.ts`'s
|
|
273
|
+
* 2026-09-09 durability fix.
|
|
274
|
+
*
|
|
275
|
+
* @complexity O(1) — one map lookup.
|
|
276
|
+
*/
|
|
277
|
+
export declare function deploymentEnvVarNoteKey({ name, envVarNotes }: {
|
|
278
|
+
name: string;
|
|
279
|
+
envVarNotes: Readonly<Record<string, string>>;
|
|
280
|
+
}, _options?: {}): string;
|
|
281
|
+
/**
|
|
282
|
+
* Whether an env var's row should read as a warning rather than neutral "not set" — malformed root
|
|
283
|
+
* key material, and the owner-password var, since an unset/default password is the one env-var state with a real
|
|
284
|
+
* safety consequence at production boot (`production-readiness-gate.ts`'s `PRODUCTION_BOOT_UNSAFE_DEFAULT`).
|
|
285
|
+
* The other three vars degrade gracefully (a daemon port default, an admin username default, a
|
|
286
|
+
* later 503 on one specific screen) and do not warrant the same visual weight.
|
|
287
|
+
*
|
|
288
|
+
* @complexity O(1).
|
|
289
|
+
*/
|
|
290
|
+
export declare function isEnvVarRowUnsafe({ varStatus, unsafeOwnerPasswordVar }: {
|
|
291
|
+
varStatus: DeploymentEnvVarStatus;
|
|
292
|
+
unsafeOwnerPasswordVar: string;
|
|
293
|
+
}, _optional?: Record<string, never>): boolean;
|
|
294
|
+
/**
|
|
295
|
+
* The Overview env-var row's status label key. The site key row names a generated key file as its
|
|
296
|
+
* source (the keyring reads the env var OR that file) and calls malformed material invalid rather
|
|
297
|
+
* than "Not set", since something IS configured there and it is broken.
|
|
298
|
+
* @complexity O(1).
|
|
299
|
+
*/
|
|
300
|
+
export declare function envVarStatusLabelKey({ varStatus }: {
|
|
301
|
+
varStatus: DeploymentEnvVarStatus;
|
|
302
|
+
}, _optional?: Record<string, never>): string;
|
|
303
|
+
/**
|
|
304
|
+
* The Static Site Verify status line's class. `"unreachable"` means the token was NOT checked, so it
|
|
305
|
+
* reads as a warning — styling it like `"valid"` told an operator an unverified token had passed.
|
|
306
|
+
* @complexity O(1).
|
|
307
|
+
*/
|
|
308
|
+
export declare function credentialVerifyStatusClass({ row }: {
|
|
309
|
+
row: {
|
|
310
|
+
verifyError: string | null;
|
|
311
|
+
verification: AdminPublishCredentialVerification | undefined;
|
|
312
|
+
};
|
|
313
|
+
}, _optional?: Record<string, never>): "save-ok" | "save-warning" | "save-error";
|
|
314
|
+
/** The Overview tab's runtime-mode label key. @complexity O(1). */
|
|
315
|
+
export declare function runtimeModeLabelKey({ mode }: {
|
|
316
|
+
mode: DeploymentOverviewSnapshot["mode"];
|
|
317
|
+
}, _optional?: Record<string, never>): string;
|
|
318
|
+
/** The Overview tab's production-readiness-gate label key. `applicable: false` means the gate never
|
|
319
|
+
* ran (local mode) — see `DeploymentOverviewSnapshot.productionReadinessGate`'s own doc comment for
|
|
320
|
+
* why a request reaching this route in production mode already proves the gate passed.
|
|
321
|
+
* @complexity O(1). */
|
|
322
|
+
export declare function productionGateLabelKey({ gate }: {
|
|
323
|
+
gate: DeploymentOverviewSnapshot["productionReadinessGate"];
|
|
324
|
+
}, _optional?: Record<string, never>): string;
|
|
325
|
+
/** The Overview tab's agent-daemon status label key. @complexity O(1). */
|
|
326
|
+
export declare function daemonStatusLabelKey({ daemonKnownFailed }: {
|
|
327
|
+
daemonKnownFailed: boolean;
|
|
328
|
+
}, _options?: {}): string;
|
|
329
|
+
/** The Overview tab's owner-password status label key. @complexity O(1). */
|
|
330
|
+
export declare function ownerPasswordLabelKey({ defaultOwnerPasswordUnsafe, copy }: {
|
|
331
|
+
defaultOwnerPasswordUnsafe: boolean;
|
|
332
|
+
copy: {
|
|
333
|
+
unsafeOwnerPasswordLabel: string;
|
|
334
|
+
};
|
|
335
|
+
}, _options?: {}): string;
|
|
336
|
+
/** The `.status` tone a run's pill should use, shared between the export and publish run slots —
|
|
337
|
+
* both are `"idle"|"running"|"completed"|"errored"`, and only the "completed" case needs a second
|
|
338
|
+
* input (`ok`) to tell a real success apart from a completed-but-failed outcome (an export whose
|
|
339
|
+
* routes failed, or a publish `StaticPublishOutcome` with `ok: false`). @complexity O(1). */
|
|
340
|
+
export declare function runStatusTone({ status }: {
|
|
341
|
+
status: "idle" | "running" | "completed" | "errored";
|
|
342
|
+
}, { ok }?: {
|
|
343
|
+
ok?: boolean | undefined;
|
|
344
|
+
}): "neutral" | "warning" | "ok" | "error";
|
|
345
|
+
/** The Static Site tab's export-run status label key — `run` is `undefined` before the first poll
|
|
346
|
+
* has resolved, which reads the same as `"idle"` (nothing has ever run in THIS browser session's
|
|
347
|
+
* view of it either). @complexity O(1). */
|
|
348
|
+
export declare function exportRunStatusLabelKey({ run }: {
|
|
349
|
+
run: Pick<ExportRunSnapshot, "status" | "ok"> | undefined;
|
|
350
|
+
}, _options?: {}): string;
|
|
351
|
+
/** The Static Site tab's publish-run status label key — same `undefined`-reads-as-idle convention
|
|
352
|
+
* {@link exportRunStatusLabelKey} documents, and the same `result.ok` distinction for a completed
|
|
353
|
+
* run that nonetheless failed (bad config, no credential, a rejected provider call — see
|
|
354
|
+
* `StaticPublishOutcome`'s own `code` union). @complexity O(1). */
|
|
355
|
+
export declare function publishRunStatusLabelKey({ run }: {
|
|
356
|
+
run: {
|
|
357
|
+
status: "idle" | "running" | "completed" | "errored";
|
|
358
|
+
result?: {
|
|
359
|
+
ok: boolean;
|
|
360
|
+
};
|
|
361
|
+
} | undefined;
|
|
362
|
+
}, _options?: {}): string;
|
|
363
|
+
//# sourceMappingURL=rules.d.ts.map
|