@jini-ai/devops 0.7.3-next.1 → 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/CHANGELOG.md +6 -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 +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 +912 -8
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
// Only a verified update is a success: an accepted hand-off may still roll back after the restart.
|
|
3
|
+
const LAST_ATTEMPT_TONE = {
|
|
4
|
+
updating: 'info',
|
|
5
|
+
updated: 'success',
|
|
6
|
+
'rolled-back': 'warning',
|
|
7
|
+
failed: 'danger',
|
|
8
|
+
};
|
|
9
|
+
export function SiteUpdateNotice(required, _optional = {}) {
|
|
10
|
+
const status = required.useSiteUpdateStatusHook({});
|
|
11
|
+
if (status === null)
|
|
12
|
+
return null;
|
|
13
|
+
const { availability, lastAttempt } = status;
|
|
14
|
+
if (availability.kind !== 'available' && lastAttempt === undefined)
|
|
15
|
+
return null;
|
|
16
|
+
const Notice = required.kit.components.Notice;
|
|
17
|
+
// The last attempt renders independently of availability, so a reconnecting owner sees how it settled.
|
|
18
|
+
return (_jsxs(_Fragment, { children: [lastAttempt !== undefined && _jsx(Notice, { tone: LAST_ATTEMPT_TONE[lastAttempt.status], children: lastAttempt.summary }), availability.kind === 'available' && renderAvailable(required, availability)] }));
|
|
19
|
+
}
|
|
20
|
+
function renderAvailable(required, availability) {
|
|
21
|
+
const Notice = required.kit.components.Notice;
|
|
22
|
+
// The notice is informational because the chat card remains the only write path.
|
|
23
|
+
return (_jsxs(Notice, { tone: "info", children: [required.copy.updateAvailable({ latest: availability.latest, runningVersion: availability.runningVersion }), availability.notes.trim() !== '' && (_jsxs("details", { children: [_jsx("summary", { children: required.copy.releaseNotes }), availability.notes] }))] }));
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=SiteUpdateNotice.js.map
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { Translate } from "@jini-ai/core/text";
|
|
2
|
+
import type { PublishCredentialRowState, PublishCredentialsController } from "./hooks/use-publish-credentials.hooks.js";
|
|
3
|
+
import type { AdminPublishTargetField } from "./rules.js";
|
|
4
|
+
import type { StaticSiteTabProps } from "./StaticSiteTab.js";
|
|
5
|
+
/**
|
|
6
|
+
* Step 1's fields — token input, a host's required companion field (e.g. an account ID), and the Save action. Shared
|
|
7
|
+
* between {@link CredentialStepTodo} (always open) and {@link CredentialStepDone} (one click away,
|
|
8
|
+
* for replacing an already-saved token) rather than duplicated, since the fields and the Save
|
|
9
|
+
* behavior are identical in both — only whether the reader sees them by default differs.
|
|
10
|
+
*
|
|
11
|
+
* Every hint here renders BELOW its input as a `.field-hint`, never as placeholder text inside it —
|
|
12
|
+
* grey placeholder text sitting in an empty box reads as a saved value at a glance, which was the
|
|
13
|
+
* owner's own "why is the access token prepopulated for these providers" complaint about this
|
|
14
|
+
* section's earlier shape. The token and Account ID inputs below carry NO `placeholder` prop at all,
|
|
15
|
+
* connected or not — an empty box always looks empty.
|
|
16
|
+
*
|
|
17
|
+
* Fields render in a single stacked column (`.deployment-credential-fields`), NOT the shared
|
|
18
|
+
* `.field-row` two-up grid every target-config field set on this tab uses — that grid gives both
|
|
19
|
+
* columns of a row the SAME height, and a two-field provider's fields never have the same height
|
|
20
|
+
* (Access token carries two hint lines plus a link; Account ID carries one short hint). A single
|
|
21
|
+
* column can't break this way regardless of field count — see this file's header for the Custom/S3
|
|
22
|
+
* provider (~5 fields) this same layout will need to hold once it lands.
|
|
23
|
+
*/
|
|
24
|
+
export declare function PublishCredentialFields({ row, controller, t: translate, kit, deps }: {
|
|
25
|
+
row: PublishCredentialRowState;
|
|
26
|
+
controller: PublishCredentialsController;
|
|
27
|
+
t: Translate;
|
|
28
|
+
} & Pick<StaticSiteTabProps, "kit" | "deps">, _optional?: {}): import("react").JSX.Element;
|
|
29
|
+
/** A field's label: the descriptor's own (a host term, rendered verbatim) plus the translated
|
|
30
|
+
* "(optional)" suffix when the field is optional. */
|
|
31
|
+
export declare function FieldLabel({ field, htmlFor, t: translate }: {
|
|
32
|
+
field: AdminPublishTargetField;
|
|
33
|
+
htmlFor: string;
|
|
34
|
+
t: Translate;
|
|
35
|
+
}, _optional?: {}): import("react").JSX.Element;
|
|
36
|
+
//# sourceMappingURL=StaticCredentialFields.d.ts.map
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { agentHandle } from "@jini-ai/core/agent-handles";
|
|
3
|
+
import { credentialFieldHandleId, credentialFormReadyToSave, fieldHelpText, fieldLabelParts } from "./rules.js";
|
|
4
|
+
/**
|
|
5
|
+
* Step 1's fields — token input, a host's required companion field (e.g. an account ID), and the Save action. Shared
|
|
6
|
+
* between {@link CredentialStepTodo} (always open) and {@link CredentialStepDone} (one click away,
|
|
7
|
+
* for replacing an already-saved token) rather than duplicated, since the fields and the Save
|
|
8
|
+
* behavior are identical in both — only whether the reader sees them by default differs.
|
|
9
|
+
*
|
|
10
|
+
* Every hint here renders BELOW its input as a `.field-hint`, never as placeholder text inside it —
|
|
11
|
+
* grey placeholder text sitting in an empty box reads as a saved value at a glance, which was the
|
|
12
|
+
* owner's own "why is the access token prepopulated for these providers" complaint about this
|
|
13
|
+
* section's earlier shape. The token and Account ID inputs below carry NO `placeholder` prop at all,
|
|
14
|
+
* connected or not — an empty box always looks empty.
|
|
15
|
+
*
|
|
16
|
+
* Fields render in a single stacked column (`.deployment-credential-fields`), NOT the shared
|
|
17
|
+
* `.field-row` two-up grid every target-config field set on this tab uses — that grid gives both
|
|
18
|
+
* columns of a row the SAME height, and a two-field provider's fields never have the same height
|
|
19
|
+
* (Access token carries two hint lines plus a link; Account ID carries one short hint). A single
|
|
20
|
+
* column can't break this way regardless of field count — see this file's header for the Custom/S3
|
|
21
|
+
* provider (~5 fields) this same layout will need to hold once it lands.
|
|
22
|
+
*/
|
|
23
|
+
export function PublishCredentialFields({ row, controller, t: translate, kit, deps }, _optional = {}) {
|
|
24
|
+
const readyToSave = credentialFormReadyToSave({ spec: row.credential, values: row.values });
|
|
25
|
+
return (_jsxs(_Fragment, { children: [fieldHelpText({ field: row.credential }) ? _jsx("p", { className: "deployment-action-reason", children: fieldHelpText({ field: row.credential }) }) : null, _jsx("div", { className: "deployment-credential-fields", children: row.credential.fields.map((field) => (_jsx(CredentialFieldInput, { kit: kit, deps: deps, row: row, field: field, controller: controller, t: translate }, field.name))) }), _jsxs("div", { className: "deployment-action", children: [_jsx("button", { type: "button", disabled: !readyToSave || row.saving, onClick: () => void controller.save(row.providerId), ...agentHandle({ handle: `deployment-static-site-credentials-save-${row.providerId}` }, {
|
|
26
|
+
role: "button",
|
|
27
|
+
label: `Save the ${row.label} access token`,
|
|
28
|
+
}), children: row.saving ? translate("Saving…") : translate("Save") }), row.error ? (_jsx("p", { className: "save-error", role: "alert", children: row.error })) : null] })] }));
|
|
29
|
+
}
|
|
30
|
+
/** A field's label: the descriptor's own (a host term, rendered verbatim) plus the translated
|
|
31
|
+
* "(optional)" suffix when the field is optional. */
|
|
32
|
+
export function FieldLabel({ field, htmlFor, t: translate }, _optional = {}) {
|
|
33
|
+
const { label, suffixKey } = fieldLabelParts({ field: field });
|
|
34
|
+
return (_jsxs("label", { className: "field-label", htmlFor: htmlFor, children: [label, suffixKey ? ` ${translate(suffixKey)}` : null] }));
|
|
35
|
+
}
|
|
36
|
+
/** One credential input, rendered from the host's descriptor. The token field (`tokenField`) keeps
|
|
37
|
+
* the storage hint (blank keeps the saved token once connected) and the host's "Create a token"
|
|
38
|
+
* link; a secret field is a password input with `new-password` (Chrome ignores `off` on
|
|
39
|
+
* credential-shaped fields — see `security/AccessTokensTab.tsx`), any other field is plain text
|
|
40
|
+
* with `off`. No placeholders: grey text in an empty box reads as a saved value. */
|
|
41
|
+
function CredentialFieldInput({ row, field, controller, t: translate, kit, deps }, _optional = {}) {
|
|
42
|
+
const { SecretInput } = kit;
|
|
43
|
+
const { asciiSlug } = deps;
|
|
44
|
+
const id = credentialFieldHandleId({ asciiSlug, providerId: row.providerId, fieldName: field.name, tokenField: row.credential.tokenField });
|
|
45
|
+
const isToken = field.name === row.credential.tokenField;
|
|
46
|
+
return (_jsxs("div", { className: "field", children: [_jsx(FieldLabel, { field: field, htmlFor: id, t: translate }), _jsx(SecretInput, { label: field.label, secret: field.secret === true, id: id, autoComplete: "new-password", value: row.values[field.name] ?? "", onChange: (e) => controller.setField({ providerId: row.providerId, fieldName: field.name, value: e.target.value }), ...agentHandle({ handle: id }, {
|
|
47
|
+
role: "field",
|
|
48
|
+
label: isToken ? `${row.label} access token — stored encrypted, never shown again once saved` : `${row.label} ${field.label}`,
|
|
49
|
+
}) }), isToken ? _jsx(TokenFieldHints, { deps: deps, row: row, t: translate }) : null, fieldHelpText({ field }) ? _jsx("p", { className: "field-hint", children: fieldHelpText({ field }) }) : null] }));
|
|
50
|
+
}
|
|
51
|
+
/** The token field's storage hint, plus the host's own token page when its descriptor names one
|
|
52
|
+
* (opened in a new tab: a third-party account-security page never renders inside this admin). */
|
|
53
|
+
function TokenFieldHints({ row, t: translate, deps }, _optional = {}) {
|
|
54
|
+
const { copy } = deps;
|
|
55
|
+
const tokenPageUrl = row.credential.tokenPageUrl;
|
|
56
|
+
return (_jsxs(_Fragment, { children: [_jsx("p", { className: "field-hint", children: row.saved !== undefined
|
|
57
|
+
? translate("Leave blank to keep the current token.")
|
|
58
|
+
: translate(copy.storedTokenNotice) }), tokenPageUrl ? (_jsx("p", { className: "field-hint", children: _jsx("a", { href: tokenPageUrl, target: "_blank", rel: "noreferrer", ...agentHandle({ handle: `deployment-static-site-credentials-token-page-${row.providerId}` }, {
|
|
59
|
+
role: "link",
|
|
60
|
+
label: `Open ${row.label}'s own page for creating a personal access token`,
|
|
61
|
+
}), children: translate("Create a token") }) })) : null] }));
|
|
62
|
+
}
|
|
63
|
+
//# sourceMappingURL=StaticCredentialFields.js.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { Translate } from "@jini-ai/core/text";
|
|
2
|
+
import type { AdminPublishExecutionMode } from "@jini-ai/core/contracts/site/api-security-api-types";
|
|
3
|
+
import type { PublishCredentialRowState, PublishCredentialsController } from "./hooks/use-publish-credentials.hooks.js";
|
|
4
|
+
import type { StaticSiteTabProps } from "./StaticSiteTab.js";
|
|
5
|
+
/**
|
|
6
|
+
* Step 1, not-yet-connected — open and prominent, no "Advanced" framing anywhere (the owner's own
|
|
7
|
+
* redirect; see {@link PublishCredentialsSection}'s doc for the full story). Plain fields, not a
|
|
8
|
+
* `<details>`: there is nothing to progressively disclose FROM here, since this IS the thing the
|
|
9
|
+
* reader still has to do — hiding the one remaining blocking step behind a click would recreate the
|
|
10
|
+
* exact problem this pass exists to fix.
|
|
11
|
+
*/
|
|
12
|
+
export declare function CredentialStepTodo({ row, controller, executionMode, t: translate, deps, kit }: {
|
|
13
|
+
row: PublishCredentialRowState;
|
|
14
|
+
controller: PublishCredentialsController;
|
|
15
|
+
executionMode: AdminPublishExecutionMode;
|
|
16
|
+
t: Translate;
|
|
17
|
+
} & Pick<StaticSiteTabProps, "deps" | "kit">, _optional?: {}): import("react").JSX.Element;
|
|
18
|
+
export declare function CredentialStepDone({ row, controller, t: translate, kit, deps }: {
|
|
19
|
+
row: PublishCredentialRowState;
|
|
20
|
+
controller: PublishCredentialsController;
|
|
21
|
+
t: Translate;
|
|
22
|
+
} & Pick<StaticSiteTabProps, "kit" | "deps">, _optional?: {}): import("react").JSX.Element;
|
|
23
|
+
//# sourceMappingURL=StaticCredentialSteps.d.ts.map
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { agentHandle } from "@jini-ai/core/agent-handles";
|
|
3
|
+
import { formatTimestamp, interpolate, splitOnPlaceholders } from "@jini-ai/core/text";
|
|
4
|
+
import { credentialStepSubtitle, credentialVerifyStatusClass } from "./rules.js";
|
|
5
|
+
import { DisclosureChevron, StepDoneIcon } from "./deployment-visuals.js";
|
|
6
|
+
import { PublishCredentialFields } from "./StaticCredentialFields.js";
|
|
7
|
+
/**
|
|
8
|
+
* Step 1, not-yet-connected — open and prominent, no "Advanced" framing anywhere (the owner's own
|
|
9
|
+
* redirect; see {@link PublishCredentialsSection}'s doc for the full story). Plain fields, not a
|
|
10
|
+
* `<details>`: there is nothing to progressively disclose FROM here, since this IS the thing the
|
|
11
|
+
* reader still has to do — hiding the one remaining blocking step behind a click would recreate the
|
|
12
|
+
* exact problem this pass exists to fix.
|
|
13
|
+
*/
|
|
14
|
+
export function CredentialStepTodo({ row, controller, executionMode, t: translate, deps, kit }, _optional = {}) {
|
|
15
|
+
const { copy } = deps;
|
|
16
|
+
return (_jsxs("div", { className: "deployment-step", ...agentHandle({ handle: `deployment-static-site-credentials-row-${row.providerId}` }, {
|
|
17
|
+
role: "region",
|
|
18
|
+
label: `${row.label}'s saved publish credential — not yet connected`,
|
|
19
|
+
}), children: [_jsxs("div", { className: "deployment-step-head", children: [_jsx("span", { className: "deployment-step-marker", "aria-hidden": "true", children: "1" }), _jsxs("div", { className: "deployment-step-headings", children: [_jsxs("h3", { className: "deployment-step-title", children: [translate("Connect"), " ", _jsx("span", { translate: "no", children: row.label })] }), _jsx("p", { className: "deployment-step-subtitle", children: credentialStepSubtitle({ copy, executionMode, credential: row.credential, translate }) })] })] }), _jsx(PublishCredentialFields, { kit: kit, deps: deps, row: row, controller: controller, t: translate })] }));
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Step 1, connected — collapsed to one settled summary line behind a native `<details>` (same
|
|
23
|
+
* disclosure affordance this admin already uses elsewhere — `Jini redirects/react/pages/RedirectsPage.tsx`'s bulk-import panel,
|
|
24
|
+
* `AiAssistant.tsx`'s roadmap accordion — rather than a second, JS-driven one), CLOSED by default:
|
|
25
|
+
* the step is done, so it gets out of the way, the mirror image of {@link CredentialStepTodo}
|
|
26
|
+
* staying open because its step is NOT done.
|
|
27
|
+
*
|
|
28
|
+
* The summary states the trust fact directly — "token stored, encrypted" — rather than leaving
|
|
29
|
+
* "Connected" to imply it. The owner's own framing: a user pasting a real access token into this box
|
|
30
|
+
* has to decide whether to believe it is actually being protected, and this admin can back the claim
|
|
31
|
+
* — `publish_credential_sets` has no plaintext token column at all, only `sealed_ciphertext`/
|
|
32
|
+
* `sealed_nonce`/`sealed_alg` (AES-GCM). This says only what is true and checkable from the UI's own
|
|
33
|
+
* side of that boundary ("stored, encrypted"), not the specific cipher — the algorithm is an
|
|
34
|
+
* implementation detail the interface has no business asserting and no way to keep honest if the
|
|
35
|
+
* server ever changes it.
|
|
36
|
+
*
|
|
37
|
+
* Expanding the summary re-shows {@link PublishCredentialFields} to replace the token — the exact
|
|
38
|
+
* fields {@link CredentialStepTodo} shows, just reached one click away rather than always open,
|
|
39
|
+
* since changing an already-working credential is the rare path, not the common one.
|
|
40
|
+
*
|
|
41
|
+
* The summary row carries a visible "Replace token" label plus {@link DisclosureChevron} at its END
|
|
42
|
+
* (owner-reported, 2026-08-15: the row was clickable but nothing on screen said so, and a reader with
|
|
43
|
+
* a rotated token had no way to discover this row opens to a fresh token field). Placed at the end,
|
|
44
|
+
* not the start: the step marker already occupies the start, and a second unstyled glyph there would
|
|
45
|
+
* recreate the exact "which glyph means what" confusion the `::-webkit-details-marker` reset (see
|
|
46
|
+
* `.deployment-step-summary` in `styles.css`) exists to avoid — a text label plus a chevron reads as
|
|
47
|
+
* one clear affordance instead. `.deployment-step-summary-text` carries `flex: 1` so this action is
|
|
48
|
+
* pushed to the row's far edge rather than trailing the timestamp mid-row.
|
|
49
|
+
*
|
|
50
|
+
* The timestamp reads "saved", never "updated": it is the moment this ROW was written, not a
|
|
51
|
+
* liveness check — a revoked token still shows this same timestamp, and re-verifying (below) never
|
|
52
|
+
* touches it. "updated" implied a recency the UI cannot back up from `saved` alone.
|
|
53
|
+
*
|
|
54
|
+
* ## Verify (2026-08-16 — closes a real gap, corrects this doc's own earlier "out of scope" call)
|
|
55
|
+
*
|
|
56
|
+
* An earlier pass of this doc said a verification indicator was "explicitly out of scope for this
|
|
57
|
+
* row" — that held only until the assistant's own capability tool (`deployment_get_static_publish_
|
|
58
|
+
* capabilities`) started telling a human to come HERE and "hit verify on the token" whenever its
|
|
59
|
+
* cached verification went cold (e.g. a server restart — `InMemoryPublishCredentialVerificationCache`
|
|
60
|
+
* has no persistence), and grepping this file for "verify" turned up nothing to click (see
|
|
61
|
+
* the original verification-gap investigation for the full live-reproduction
|
|
62
|
+
* chain). `POST .../credentials/:id/verify` (`publish-credentials.ts`) already existed and worked; the
|
|
63
|
+
* gap was UI wiring only. {@link CredentialVerifyAction} closes it — a real re-check button living
|
|
64
|
+
* inside `<summary>` itself (not the `<details>` content revealed on expand), because it has to stay
|
|
65
|
+
* reachable while this row is collapsed, its normal resting state; see that component's own doc for
|
|
66
|
+
* why a nested `<button>` there needs its click prevented from also toggling the details.
|
|
67
|
+
*
|
|
68
|
+
* A `"valid"` result carrying an `accountLabel` is durable — `usePublishCredentials`'s `verify` mirrors
|
|
69
|
+
* the server's own `healAccountLabel` write onto `row.saved.accountLabel` immediately, which is what
|
|
70
|
+
* lets the summary line below show "connected as X" even after a page reload, long after any single
|
|
71
|
+
* verify RESPONSE (transient, session-only) is gone. That durability is the whole point: an operator
|
|
72
|
+
* who verifies once should not have to re-verify again just to keep seeing which account this token
|
|
73
|
+
* belongs to.
|
|
74
|
+
*/
|
|
75
|
+
/** One translated template with a single placeholder rendered as a React node (a name that must
|
|
76
|
+
* stay untranslated), so each locale places the name where its own grammar needs it. */
|
|
77
|
+
function TemplateWithNode({ template, token, children }, _optional = {}) {
|
|
78
|
+
const [before, after] = splitOnPlaceholders({ template: template, tokens: [token] });
|
|
79
|
+
return (_jsxs(_Fragment, { children: [before, children, after] }));
|
|
80
|
+
}
|
|
81
|
+
export function CredentialStepDone({ row, controller, t: translate, kit, deps }, _optional = {}) {
|
|
82
|
+
const { Icon } = kit;
|
|
83
|
+
const { LINE_ICON } = deps;
|
|
84
|
+
const saved = row.saved;
|
|
85
|
+
if (!saved)
|
|
86
|
+
throw new Error(`publish credential row ${row.providerId} has no saved credential`);
|
|
87
|
+
return (_jsxs("details", { className: "deployment-step deployment-step-done", ...agentHandle({ handle: `deployment-static-site-credentials-row-${row.providerId}` }, {
|
|
88
|
+
role: "region",
|
|
89
|
+
label: `${row.label}'s saved publish credential — connected`,
|
|
90
|
+
}), children: [_jsxs("summary", { className: "deployment-step-summary", children: [_jsx("span", { className: "deployment-step-marker deployment-step-marker-done", "aria-hidden": "true", children: _jsx(StepDoneIcon, { lineIcon: LINE_ICON, Icon: Icon }) }), _jsx(SavedCredentialSummary, { kit: kit, deps: deps, row: row, saved: saved, t: translate }), _jsx(CredentialVerifyAction, { row: row, controller: controller, t: translate }), _jsxs("span", { className: "deployment-step-summary-action", children: [translate("Replace token"), _jsx(DisclosureChevron, { lineIcon: LINE_ICON, Icon: Icon })] })] }), _jsx(CredentialTokenPicker, { deps: deps, row: row, controller: controller, t: translate }), _jsx(PublishCredentialFields, { kit: kit, deps: deps, row: row, controller: controller, t: translate })] }));
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* The "Verify" control on an already-connected row — re-checks the saved token against its real
|
|
94
|
+
* provider right now (`PublishCredentialsController.verify`) and shows the outcome inline: the
|
|
95
|
+
* provider's own message on success (a normal `"valid"`/`"invalid"`/`"unreachable"` result — see
|
|
96
|
+
* `AdminPublishCredentialVerification.status`'s doc for why none of the three is treated as an
|
|
97
|
+
* error), or a translated transport-failure message if the request itself never reached the server.
|
|
98
|
+
*
|
|
99
|
+
* Lives inside `<summary>`, a descendant of the native disclosure toggle, which means its click would
|
|
100
|
+
* otherwise ALSO open/close the enclosing `<details>` (the browser runs `<summary>`'s toggle as the
|
|
101
|
+
* click event's default action regardless of which descendant was actually clicked, unless that
|
|
102
|
+
* default action is cancelled) — `preventDefault`/`stopPropagation` in the handler below is what
|
|
103
|
+
* keeps a Verify click from also expanding the row every time.
|
|
104
|
+
* @complexity O(1) — one button, one derived status line.
|
|
105
|
+
*/
|
|
106
|
+
function CredentialVerifyAction({ row, controller, t: translate, }, _optional = {}) {
|
|
107
|
+
const statusText = row.verifyError ?? row.verification?.message ?? null;
|
|
108
|
+
return (_jsxs("span", { className: "deployment-step-verify", children: [_jsx("button", { type: "button", className: "btn-secondary", disabled: row.verifying, onClick: (e) => {
|
|
109
|
+
e.preventDefault();
|
|
110
|
+
e.stopPropagation();
|
|
111
|
+
void controller.verify(row.providerId);
|
|
112
|
+
}, ...agentHandle({ handle: `deployment-static-site-credentials-verify-${row.providerId}` }, {
|
|
113
|
+
role: "button",
|
|
114
|
+
label: `Re-check the saved ${row.label} token against its real provider right now`,
|
|
115
|
+
}), children: row.verifying ? translate("Verifying…") : translate("Verify") }), statusText ? (_jsx("span", { "aria-live": "polite", className: credentialVerifyStatusClass({ row: row }), children: statusText })) : null] }));
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* The "which saved token publishes" picker (the owner's own original ask, per
|
|
119
|
+
* `use-publish-credentials.hooks.ts`'s `credentialsForProvider` doc: a provider with several saved
|
|
120
|
+
* access tokens gets a dropdown to choose which one publishes). Renders nothing when this provider has
|
|
121
|
+
* at most one saved connection — the common case — since there is nothing to choose between; a lone
|
|
122
|
+
* credential is already what {@link CredentialStepDone}'s summary line describes, and a picker with
|
|
123
|
+
* one option would just repeat that fact as a control.
|
|
124
|
+
*
|
|
125
|
+
* Selecting an option promotes that credential to this provider's DEFAULT (`controller.selectCredential`),
|
|
126
|
+
* the exact row a real publish uses (`defaultCredentialForProvider`'s own doc) — there is no separate
|
|
127
|
+
* "which token does this publish use" setting anywhere else for this to drift from.
|
|
128
|
+
* @complexity O(n) in this provider's own (small) saved-credential count, same bound
|
|
129
|
+
* {@link credentialsForProvider} documents.
|
|
130
|
+
*/
|
|
131
|
+
function CredentialTokenPicker({ row, controller, t: translate, deps }, _optional = {}) {
|
|
132
|
+
const { copy, VIEWER_TIME_ZONE } = deps;
|
|
133
|
+
// Rendered only inside the connected row (`row.saved` set — that row checks it too), so
|
|
134
|
+
// the selected value falls back to the saved default's id with no further "nothing saved" arm.
|
|
135
|
+
const options = controller.credentialsForProvider(row.providerId);
|
|
136
|
+
if (options.length < 2)
|
|
137
|
+
return null;
|
|
138
|
+
const saved = row.saved;
|
|
139
|
+
if (!saved)
|
|
140
|
+
throw new Error(`publish credential picker ${row.providerId} has no saved credential`);
|
|
141
|
+
const fieldId = `deployment-static-site-credentials-picker-${row.providerId}`;
|
|
142
|
+
return (_jsxs("div", { className: "field", children: [_jsx("label", { className: "field-label", htmlFor: fieldId, children: translate("Which saved token publishes") }), _jsx("select", { id: fieldId, value: row.selectingCredentialId ?? saved.id, disabled: row.selectingCredentialId !== null, onChange: (e) => void controller.selectCredential({ providerId: row.providerId, credentialId: e.target.value }), ...agentHandle({ handle: fieldId }, {
|
|
143
|
+
role: "field",
|
|
144
|
+
label: `Choose which of this workspace's saved ${row.label} tokens is the one ${copy.productName} publishes with`,
|
|
145
|
+
}), children: options.map((credential) => (_jsx("option", { value: credential.id, children: (credential.accountLabel ?? credential.label) + " — " + formatTimestamp({ iso: credential.updatedAt }, { viewerTimeZone: VIEWER_TIME_ZONE }) }, credential.id))) }), _jsxs("p", { className: "field-hint", children: [translate("This workspace has more than one saved"), " ", _jsx("span", { translate: "no", children: row.label }), " ", translate(copy.pickerTokenNotice)] }), _jsx(CredentialSelectionError, { row: row })] }));
|
|
146
|
+
}
|
|
147
|
+
function SavedCredentialSummary({ row, saved, t: translate, kit, deps }, _optional = {}) {
|
|
148
|
+
const { CredentialHint } = kit;
|
|
149
|
+
const { VIEWER_TIME_ZONE } = deps;
|
|
150
|
+
return (_jsxs("span", { className: "deployment-step-summary-text", children: [_jsx(TemplateWithNode, { template: translate("{host} connected"), token: "{host}", children: _jsx("span", { translate: "no", children: row.label }) }), " ", "\u00B7 ", translate("token stored, encrypted"), " \u00B7", " ", interpolate({ template: translate("saved {time}"), vars: { time: formatTimestamp({ iso: saved.updatedAt }, { viewerTimeZone: VIEWER_TIME_ZONE }) } }), " ", _jsx(CredentialHint, { hint: saved.tokenHint }), saved.accountLabel ? (_jsxs(_Fragment, { children: [" ", "\u00B7", " ", _jsx(TemplateWithNode, { template: translate("connected as {account}"), token: "{account}", children: _jsx("span", { translate: "no", children: saved.accountLabel }) })] })) : null] }));
|
|
151
|
+
}
|
|
152
|
+
function CredentialSelectionError({ row }, _optional = {}) {
|
|
153
|
+
return (_jsx(_Fragment, { children: row.selectError ? (_jsx("p", { className: "save-error", role: "alert", children: row.selectError })) : null }));
|
|
154
|
+
}
|
|
155
|
+
//# sourceMappingURL=StaticCredentialSteps.js.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Translate } from "@jini-ai/core/text";
|
|
2
|
+
import type { StaticExportController } from "./hooks/use-static-export.hooks.js";
|
|
3
|
+
import type { StaticSiteTabProps } from "./StaticSiteTab.js";
|
|
4
|
+
/** The "Build here or in a terminal" card's second half — the command block (unchanged) plus the real
|
|
5
|
+
* build action: a clean/overwrite checkbox, the Build button itself, a live status pill, and the
|
|
6
|
+
* run's own result once it settles. */
|
|
7
|
+
export declare function BuildExportCard({ controller, t: translate, deps, hooks }: {
|
|
8
|
+
controller: StaticExportController;
|
|
9
|
+
t: Translate;
|
|
10
|
+
} & Pick<StaticSiteTabProps, "deps" | "hooks">, _optional?: {}): import("react").JSX.Element;
|
|
11
|
+
//# sourceMappingURL=StaticExportCard.d.ts.map
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { agentHandle } from "@jini-ai/core/agent-handles";
|
|
3
|
+
import { exportRunStatusLabelKey, runStatusTone } from "./rules.js";
|
|
4
|
+
/** A line of text the reader is meant to take somewhere else, with a Copy button.
|
|
5
|
+
*
|
|
6
|
+
* It hands over a shell command: monospace, rendered with a `$` prompt via CSS. There used to be
|
|
7
|
+
* two variants, because this tab once handed over two different KINDS of text — a shell command
|
|
8
|
+
* and a sentence to say to the assistant (a `prose` flag: UI face, no prompt). Sharing one
|
|
9
|
+
* component kept the copy affordance identical between them; the variant only changed what the
|
|
10
|
+
* box claimed the text was. The prose call sites (the per-publish-CLI "ask the assistant" lines)
|
|
11
|
+
* left with the CLI-first route on 2026-09-29, so the flag had no caller and was removed; bring
|
|
12
|
+
* it back with the first new prose call site.
|
|
13
|
+
*
|
|
14
|
+
* Component-local state rather than a hook + port pair — there is nothing to inject, same
|
|
15
|
+
* carve-out `ThemeExplore.tsx`'s device-width/fullscreen state documents.
|
|
16
|
+
*
|
|
17
|
+
* A denied clipboard permission is swallowed, same as everywhere else in this app: the text is
|
|
18
|
+
* visible and selectable in the block itself, so a failed copy degrades to "select it manually"
|
|
19
|
+
* rather than to an error the reader can do nothing about. */
|
|
20
|
+
function CopyLine({ text, copyLabel, copiedLabel, copyAccessibleName, agentHandleId, useCopyLine: useCopyLineHook, }, _optional = {}) {
|
|
21
|
+
const { copied, copy } = useCopyLineHook();
|
|
22
|
+
return (_jsxs("div", { className: "deployment-command", children: [_jsx("code", { translate: "no", children: text }), _jsx("button", { type: "button", className: "btn-secondary", onClick: () => void copy(text), "aria-label": copyAccessibleName, ...agentHandle({ handle: agentHandleId }, { role: "button", label: copyAccessibleName }), children: _jsx("span", { "aria-live": "polite", children: copied ? copiedLabel : copyLabel }) })] }));
|
|
23
|
+
}
|
|
24
|
+
/** The counts half of a completed export run's detail — routes/assets succeeded-vs-failed, and
|
|
25
|
+
* where the export landed. Split out of {@link ExportRunResult} purely for the complexity gate:
|
|
26
|
+
* this repo's real `admin app` ESLint gate is a hard 9/9 cyclomatic/cognitive ceiling
|
|
27
|
+
* (`eslint.config.mjs`'s own `F06 option B` block), and this block's three independent ternaries
|
|
28
|
+
* (two failed-count checks, one optional `outputDir`) counted directly in `ExportRunResult` pushed
|
|
29
|
+
* it to 11 — same reasoning `PublishPreviewAction`'s own doc gives for splitting the publish half of
|
|
30
|
+
* this tab. No behavior moved, only where the branches are counted. */
|
|
31
|
+
function ExportRunCounts({ run, t: translate }, _optional = {}) {
|
|
32
|
+
const counts = run.counts;
|
|
33
|
+
if (!counts)
|
|
34
|
+
throw new Error("completed export run has no counts");
|
|
35
|
+
return (_jsxs("div", { className: "deployment-facts", children: [_jsxs("div", { className: "deployment-fact", children: [_jsx("span", { className: "deployment-fact-label", children: translate("Routes") }), _jsxs("span", { className: "deployment-fact-value", children: [counts.routesSucceeded, " ", translate("succeeded"), counts.routesFailed > 0 ? `, ${counts.routesFailed} ${translate("failed")}` : ""] })] }), _jsxs("div", { className: "deployment-fact", children: [_jsx("span", { className: "deployment-fact-label", children: translate("Assets") }), _jsxs("span", { className: "deployment-fact-value", children: [counts.assetsSucceeded, " ", translate("succeeded"), counts.assetsFailed > 0 ? `, ${counts.assetsFailed} ${translate("failed")}` : ""] })] }), run.outputDir ? (_jsxs("div", { className: "deployment-fact", children: [_jsx("span", { className: "deployment-fact-label", children: translate("Written to") }), _jsx("span", { className: "deployment-fact-value", children: _jsx("code", { translate: "no", children: run.outputDir }) })] })) : null] }));
|
|
36
|
+
}
|
|
37
|
+
/** The failure-detail half of a completed export run — WHICH routes/assets failed and why, not just
|
|
38
|
+
* the aggregate counts {@link ExportRunCounts} shows. Split out for the same complexity-gate reason
|
|
39
|
+
* that function's own doc gives: two independent `&&`/length-check branches, one per list, counted
|
|
40
|
+
* directly in `ExportRunResult` is what pushed it over budget together with the counts block. */
|
|
41
|
+
function ExportRunFailures({ run, t: translate }, _optional = {}) {
|
|
42
|
+
return (_jsxs(_Fragment, { children: [run.failedRoutes && run.failedRoutes.length > 0 ? (_jsxs("div", { className: "deployment-failure-list", children: [_jsx("span", { className: "deployment-fact-label", children: translate("Failed routes") }), _jsx("ul", { children: run.failedRoutes.map((failure, index) => (_jsxs("li", { children: [_jsx("code", { translate: "no", children: failure.path }), " \u2014 ", failure.reason] }, `${failure.kind}:${failure.path}:${index}`))) })] })) : null, run.failedAssets && run.failedAssets.length > 0 ? (_jsxs("div", { className: "deployment-failure-list", children: [_jsx("span", { className: "deployment-fact-label", children: translate("Failed assets") }), _jsx("ul", { children: run.failedAssets.map((failure, index) => (_jsxs("li", { children: [_jsx("code", { translate: "no", children: failure.url }), " \u2014 ", failure.reason] }, `${failure.url}:${index}`))) })] })) : null] }));
|
|
43
|
+
}
|
|
44
|
+
/** One export run's completed/errored detail — counts, failures, and where it landed. Only rendered
|
|
45
|
+
* once `run.status` is `"completed"` or `"errored"`; a `"running"`/`"idle"` run has nothing here yet
|
|
46
|
+
* to report. Delegates to {@link ExportRunCounts}/{@link ExportRunFailures} for the complexity-gate
|
|
47
|
+
* reason each of those documents — this function itself now only decides WHICH detail to show. */
|
|
48
|
+
function ExportRunResult({ run, t: translate }, _optional = {}) {
|
|
49
|
+
if (run.status === "errored") {
|
|
50
|
+
return (_jsx("p", { className: "save-error", role: "alert", children: run.error }));
|
|
51
|
+
}
|
|
52
|
+
if (run.status !== "completed" || !run.counts)
|
|
53
|
+
return null;
|
|
54
|
+
return (_jsxs(_Fragment, { children: [_jsx(ExportRunCounts, { run: run, t: translate }), _jsx(ExportRunFailures, { run: run, t: translate })] }));
|
|
55
|
+
}
|
|
56
|
+
/** The "Build here or in a terminal" card's second half — the command block (unchanged) plus the real
|
|
57
|
+
* build action: a clean/overwrite checkbox, the Build button itself, a live status pill, and the
|
|
58
|
+
* run's own result once it settles. */
|
|
59
|
+
export function BuildExportCard({ controller, t: translate, deps, hooks }, _optional = {}) {
|
|
60
|
+
const tone = runStatusTone({ status: controller.run?.status ?? "idle" }, { ok: controller.run?.ok });
|
|
61
|
+
return (_jsxs("div", { className: "card", ...agentHandle({ handle: "deployment-static-site-export-card" }, {
|
|
62
|
+
role: "region",
|
|
63
|
+
label: "Build a static export from this admin server, with a live run status and result",
|
|
64
|
+
}), children: [_jsxs("div", { className: "card-head", children: [_jsx("h2", { className: "card-title", children: translate("Build here or in a terminal") }), _jsx("div", { className: "card-head-actions", children: _jsx("span", { className: `status status-${tone}`, children: translate(exportRunStatusLabelKey({ run: controller.run })) }) })] }), _jsxs("div", { className: "deployment-card-body", children: [controller.loadError ? (_jsx("p", { className: "notice error", role: "status", ...agentHandle({ handle: "deployment-static-site-export-load-error" }, {
|
|
65
|
+
role: "status",
|
|
66
|
+
label: "Shows the error when this export's current status could not be loaded",
|
|
67
|
+
}), children: controller.loadError })) : null, _jsx(StaticExportCommand, { deps: deps, hooks: hooks, t: translate }), _jsx(ExportTriggerAction, { controller: controller, t: translate })] })] }));
|
|
68
|
+
}
|
|
69
|
+
/** The Build action — clean checkbox, the trigger button itself, and every terminal state a run can
|
|
70
|
+
* end in (a rejected trigger, a poll that gave up — {@link StaticExportController.pollError}, added
|
|
71
|
+
* this pass, see this file's header — and a settled run's own result). Split out of
|
|
72
|
+
* {@link BuildExportCard} for the same complexity-gate reason `PublishPreviewAction`'s own doc gives
|
|
73
|
+
* for the publish half of this tab: this repo's real `admin app` ESLint gate is a HARD 9/9
|
|
74
|
+
* cyclomatic/cognitive ceiling (`eslint.config.mjs`'s own `F06 option B` block — not the 15/warn the
|
|
75
|
+
* rest of the repo tolerates), and adding `pollError` as one more branch directly in
|
|
76
|
+
* `BuildExportCard` pushed it from 9 to 10 against that real gate. */
|
|
77
|
+
function ExportTriggerAction({ controller, t: translate }, _optional = {}) {
|
|
78
|
+
const busy = controller.triggering || controller.isRunning;
|
|
79
|
+
return (_jsxs("div", { className: "deployment-action", children: [_jsxs("label", { className: "form-checkbox-field", children: [_jsx("input", { type: "checkbox", checked: controller.clean, onChange: (e) => controller.setClean(e.target.checked), ...agentHandle({ handle: "deployment-static-site-export-clean" }, {
|
|
80
|
+
role: "checkbox",
|
|
81
|
+
label: "Overwrite the export output folder's existing contents before writing the new export",
|
|
82
|
+
}) }), translate("Overwrite existing files in the output folder")] }), _jsx("p", { className: "deployment-action-reason", children: translate("Off by default. The exporter refuses to write into a non-empty folder unless this is checked — it never deletes unknown files silently.") }), _jsx("button", { type: "button", disabled: busy, onClick: () => void controller.trigger(), ...agentHandle({ handle: "deployment-static-site-export-build" }, {
|
|
83
|
+
role: "button",
|
|
84
|
+
label: "Start a static export from this admin server, using the checkbox above's overwrite setting",
|
|
85
|
+
}), children: busy ? translate("Exporting…") : translate("Build static export") }), _jsx(ExportRunFeedback, { controller: controller, t: translate })] }));
|
|
86
|
+
}
|
|
87
|
+
function StaticExportCommand({ t: translate, deps, hooks }, _optional = {}) {
|
|
88
|
+
const { copy } = deps;
|
|
89
|
+
return (_jsxs(_Fragment, { children: [_jsx("p", { className: "card-lead", children: translate(copy.exportDescription) }), _jsx(CopyLine, { useCopyLine: hooks.useWiredCopyToClipboard, text: copy.exportCommand, copyLabel: translate("Copy"), copiedLabel: translate("Copied!"), copyAccessibleName: translate("Copy the export command"), agentHandleId: "deployment-static-site-export-command-copy" }), _jsx("p", { className: "deployment-action-reason", children: translate("Replace <dir> with the folder to write into. It is a required argument — there is no default.") })] }));
|
|
90
|
+
}
|
|
91
|
+
function ExportRunFeedback({ controller, t: translate }, _optional = {}) {
|
|
92
|
+
return (_jsxs(_Fragment, { children: [controller.triggerError ? (_jsx("p", { className: "save-error", role: "alert", children: controller.triggerError })) : null, controller.pollError ? (_jsx("p", { className: "notice warning", role: "status", ...agentHandle({ handle: "deployment-static-site-export-poll-error" }, {
|
|
93
|
+
role: "status",
|
|
94
|
+
label: "States that this export's status could no longer be checked, so the button re-enabled even though the run may still be in progress",
|
|
95
|
+
}), children: controller.pollError })) : null, controller.run ? _jsx(ExportRunResult, { run: controller.run, t: translate }) : null] }));
|
|
96
|
+
}
|
|
97
|
+
//# sourceMappingURL=StaticExportCard.js.map
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { Translate } from "@jini-ai/core/text";
|
|
2
|
+
import type { PublishCredentialsController } from "./hooks/use-publish-credentials.hooks.js";
|
|
3
|
+
import type { StaticSiteTabProps } from "./StaticSiteTab.js";
|
|
4
|
+
/**
|
|
5
|
+
* The credential step — Step 1 of the two-step flow this card walks a reader through (Step 2 is
|
|
6
|
+
* {@link StaticPublishForm}'s "Where this publish goes"), for whichever provider is currently
|
|
7
|
+
* selected on the tab bar above. Renders exactly one provider's state: {@link CredentialStepTodo}
|
|
8
|
+
* when nothing is saved yet, {@link CredentialStepDone} once it is.
|
|
9
|
+
*
|
|
10
|
+
* Three passes got this section here. First, "'Add credential' should be gone. Just list the
|
|
11
|
+
* providers, labels, and access token space, and that's it" (2026-08-15) replaced an add/edit/delete
|
|
12
|
+
* flow with one always-visible row per provider. Then "it looks just awful" (2026-08-16) — all four
|
|
13
|
+
* rows rendered at once regardless of the selected tab — collapsed it to the SELECTED provider's row
|
|
14
|
+
* only. Then the owner's OWN direct read of that result: **"Advanced" is backwards for a mandatory
|
|
15
|
+
* first step.** A new user cannot publish anything through this form until a token is saved here —
|
|
16
|
+
* it is step one of two, not an optional extra — and the only reason it had ever been hidden behind
|
|
17
|
+
* an "Advanced" disclosure was that four stacked forms were too ugly to leave visible. The collapse
|
|
18
|
+
* removed that reason, so this pass removes the hiding along with it: disclosure now depends on
|
|
19
|
+
* `row.saved` (has this actually been done), never on `controller.executionMode` (the OLD gate).
|
|
20
|
+
* `executionMode` still matters — it changes WHY this step is mandatory, in
|
|
21
|
+
* `credentialStepSubtitle` (`rules.ts`) — just not WHETHER it is shown open.
|
|
22
|
+
*
|
|
23
|
+
* The credential rows are the deploy registry's targets that take a credential, so
|
|
24
|
+
* `selectedProviderId` matches exactly one row unless the selected host takes none; the `undefined`
|
|
25
|
+
* fallback in {@link publishCredentialsSectionContent} covers that host.
|
|
26
|
+
*
|
|
27
|
+
* Renders only a brief "Loading…" line until BOTH `rows` and `executionMode` have resolved — showing
|
|
28
|
+
* either step state for one render before the real data arrives would be a worse false impression
|
|
29
|
+
* than a short, honest wait.
|
|
30
|
+
*
|
|
31
|
+
* Wraps whichever of the four states above is current in ONE `data-agent-element` region tag
|
|
32
|
+
* (`deployment-static-site-credentials-section`), present in EVERY state rather than only some —
|
|
33
|
+
* an agent-tagging assertion once covered this and quietly stopped matching anything the moment this
|
|
34
|
+
* function grew four different top-level return shapes with no shared wrapper (caught 2026-08-15,
|
|
35
|
+
* restored same day). This tag is not decorative: the coming repo picker (replacing the manual
|
|
36
|
+
* `owner`/`repo` inputs) is meant to be driven by the assistant reading this page through
|
|
37
|
+
* `data-agent-element`/`agentHandle()` tagging rather than a bespoke API, and a region that vanishes
|
|
38
|
+
* in three states out of four is worse than no region at all — an agent reading the page cannot tell
|
|
39
|
+
* "not on this page" from "not in this state". The wrapping `<div>` carries no class and no styles of
|
|
40
|
+
* its own on purpose — it is a tag, not a layout primitive, and `.deployment-card-body`'s flex `gap`
|
|
41
|
+
* (`styles.css`) already spaces this section correctly against its siblings regardless of what sits
|
|
42
|
+
* one level inside it, so adding a box here would only be a second, redundant one around whichever
|
|
43
|
+
* of {@link CredentialStepTodo}/{@link CredentialStepDone} already draws its own.
|
|
44
|
+
*/
|
|
45
|
+
export declare function PublishCredentialsSection(props: {
|
|
46
|
+
controller: PublishCredentialsController;
|
|
47
|
+
selectedProviderId: string;
|
|
48
|
+
t: Translate;
|
|
49
|
+
} & Pick<StaticSiteTabProps, "deps" | "kit">, _optional?: {}): import("react").JSX.Element;
|
|
50
|
+
//# sourceMappingURL=StaticPublishCredentials.d.ts.map
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { agentHandle } from "@jini-ai/core/agent-handles";
|
|
3
|
+
import { CredentialStepTodo, CredentialStepDone } from "./StaticCredentialSteps.js";
|
|
4
|
+
/**
|
|
5
|
+
* {@link PublishCredentialsSection}'s four state branches (load error, still loading, not-yet-
|
|
6
|
+
* connected, connected), pulled into its own function so wrapping them in one shared region tag
|
|
7
|
+
* doesn't add a branch to `PublishCredentialsSection` itself — same "extract rather than inline"
|
|
8
|
+
* pattern `credentialStepSubtitle` (`rules.ts`) already uses in this file for the same complexity-gate
|
|
9
|
+
* reason (`eslint.config.mjs`'s per-scope cap, `noInlineConfig` on so a disable comment cannot buy
|
|
10
|
+
* the room back).
|
|
11
|
+
*/
|
|
12
|
+
function publishCredentialsSectionContent({ controller, selectedProviderId, t: translate, deps, kit }, _optional = {}) {
|
|
13
|
+
if (controller.loadError) {
|
|
14
|
+
return (_jsx("p", { className: "notice error", role: "status", ...agentHandle({ handle: "deployment-static-site-credentials-load-error" }, {
|
|
15
|
+
role: "status",
|
|
16
|
+
label: "Shows the error when saved publish credentials could not be loaded",
|
|
17
|
+
}), children: controller.loadError }));
|
|
18
|
+
}
|
|
19
|
+
if (controller.rows === undefined || controller.executionMode === undefined) {
|
|
20
|
+
return _jsx("p", { className: "deployment-action-reason", children: translate("Loading credentials…") });
|
|
21
|
+
}
|
|
22
|
+
const row = controller.rows.find((r) => r.providerId === selectedProviderId);
|
|
23
|
+
if (!row)
|
|
24
|
+
return null;
|
|
25
|
+
if (row.saved !== undefined) {
|
|
26
|
+
return _jsx(CredentialStepDone, { kit: kit, deps: deps, row: row, controller: controller, t: translate });
|
|
27
|
+
}
|
|
28
|
+
return _jsx(CredentialStepTodo, { deps: deps, kit: kit, row: row, controller: controller, executionMode: controller.executionMode, t: translate });
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* The credential step — Step 1 of the two-step flow this card walks a reader through (Step 2 is
|
|
32
|
+
* {@link StaticPublishForm}'s "Where this publish goes"), for whichever provider is currently
|
|
33
|
+
* selected on the tab bar above. Renders exactly one provider's state: {@link CredentialStepTodo}
|
|
34
|
+
* when nothing is saved yet, {@link CredentialStepDone} once it is.
|
|
35
|
+
*
|
|
36
|
+
* Three passes got this section here. First, "'Add credential' should be gone. Just list the
|
|
37
|
+
* providers, labels, and access token space, and that's it" (2026-08-15) replaced an add/edit/delete
|
|
38
|
+
* flow with one always-visible row per provider. Then "it looks just awful" (2026-08-16) — all four
|
|
39
|
+
* rows rendered at once regardless of the selected tab — collapsed it to the SELECTED provider's row
|
|
40
|
+
* only. Then the owner's OWN direct read of that result: **"Advanced" is backwards for a mandatory
|
|
41
|
+
* first step.** A new user cannot publish anything through this form until a token is saved here —
|
|
42
|
+
* it is step one of two, not an optional extra — and the only reason it had ever been hidden behind
|
|
43
|
+
* an "Advanced" disclosure was that four stacked forms were too ugly to leave visible. The collapse
|
|
44
|
+
* removed that reason, so this pass removes the hiding along with it: disclosure now depends on
|
|
45
|
+
* `row.saved` (has this actually been done), never on `controller.executionMode` (the OLD gate).
|
|
46
|
+
* `executionMode` still matters — it changes WHY this step is mandatory, in
|
|
47
|
+
* `credentialStepSubtitle` (`rules.ts`) — just not WHETHER it is shown open.
|
|
48
|
+
*
|
|
49
|
+
* The credential rows are the deploy registry's targets that take a credential, so
|
|
50
|
+
* `selectedProviderId` matches exactly one row unless the selected host takes none; the `undefined`
|
|
51
|
+
* fallback in {@link publishCredentialsSectionContent} covers that host.
|
|
52
|
+
*
|
|
53
|
+
* Renders only a brief "Loading…" line until BOTH `rows` and `executionMode` have resolved — showing
|
|
54
|
+
* either step state for one render before the real data arrives would be a worse false impression
|
|
55
|
+
* than a short, honest wait.
|
|
56
|
+
*
|
|
57
|
+
* Wraps whichever of the four states above is current in ONE `data-agent-element` region tag
|
|
58
|
+
* (`deployment-static-site-credentials-section`), present in EVERY state rather than only some —
|
|
59
|
+
* an agent-tagging assertion once covered this and quietly stopped matching anything the moment this
|
|
60
|
+
* function grew four different top-level return shapes with no shared wrapper (caught 2026-08-15,
|
|
61
|
+
* restored same day). This tag is not decorative: the coming repo picker (replacing the manual
|
|
62
|
+
* `owner`/`repo` inputs) is meant to be driven by the assistant reading this page through
|
|
63
|
+
* `data-agent-element`/`agentHandle()` tagging rather than a bespoke API, and a region that vanishes
|
|
64
|
+
* in three states out of four is worse than no region at all — an agent reading the page cannot tell
|
|
65
|
+
* "not on this page" from "not in this state". The wrapping `<div>` carries no class and no styles of
|
|
66
|
+
* its own on purpose — it is a tag, not a layout primitive, and `.deployment-card-body`'s flex `gap`
|
|
67
|
+
* (`styles.css`) already spaces this section correctly against its siblings regardless of what sits
|
|
68
|
+
* one level inside it, so adding a box here would only be a second, redundant one around whichever
|
|
69
|
+
* of {@link CredentialStepTodo}/{@link CredentialStepDone} already draws its own.
|
|
70
|
+
*/
|
|
71
|
+
export function PublishCredentialsSection(props, _optional = {}) {
|
|
72
|
+
return (_jsx("div", { ...agentHandle({ handle: "deployment-static-site-credentials-section" }, {
|
|
73
|
+
role: "region",
|
|
74
|
+
label: "The selected provider's saved publish credential — connect or replace flow",
|
|
75
|
+
}), children: publishCredentialsSectionContent(props) }));
|
|
76
|
+
}
|
|
77
|
+
//# sourceMappingURL=StaticPublishCredentials.js.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Translate } from "@jini-ai/core/text";
|
|
2
|
+
import type { StaticPublishController } from "./hooks/use-static-publish.hooks.js";
|
|
3
|
+
import type { StaticSiteTabProps } from "./StaticSiteTab.js";
|
|
4
|
+
export declare function StaticPublishForm({ controller, credentialChangePending, chosenCredentialId, t: translate, deps, kit }: {
|
|
5
|
+
controller: StaticPublishController;
|
|
6
|
+
/** {@link PublishCredentialsController.credentialChangePending} — see that field's doc. */
|
|
7
|
+
credentialChangePending: boolean;
|
|
8
|
+
/** {@link chosenCredentialIdForTarget}'s result for this target — see that function's own doc. */
|
|
9
|
+
chosenCredentialId: string | undefined;
|
|
10
|
+
t: Translate;
|
|
11
|
+
} & Pick<StaticSiteTabProps, "deps" | "kit">, _optional?: {}): import("react").JSX.Element;
|
|
12
|
+
//# sourceMappingURL=StaticPublishForm.d.ts.map
|