@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.
Files changed (402) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/README.md +16 -0
  3. package/dist/backup/site/archive-extensions.d.ts +73 -0
  4. package/dist/backup/site/archive-extensions.js +129 -0
  5. package/dist/backup/site/archive-manifest.d.ts +85 -0
  6. package/dist/backup/site/archive-manifest.js +176 -0
  7. package/dist/backup/site/archive-media.d.ts +121 -0
  8. package/dist/backup/site/archive-media.js +93 -0
  9. package/dist/backup/site/backup-service.credentials.d.ts +31 -0
  10. package/dist/backup/site/backup-service.credentials.js +158 -0
  11. package/dist/backup/site/backup-service.d.ts +336 -0
  12. package/dist/backup/site/backup-service.js +127 -0
  13. package/dist/backup/site/backup-service.plan.d.ts +64 -0
  14. package/dist/backup/site/backup-service.plan.js +207 -0
  15. package/dist/backup/site/backup-service.push.d.ts +29 -0
  16. package/dist/backup/site/backup-service.push.js +94 -0
  17. package/dist/backup/site/backup-service.shared.d.ts +40 -0
  18. package/dist/backup/site/backup-service.shared.js +37 -0
  19. package/dist/backup/site/bundled-export-file-policy.d.ts +38 -0
  20. package/dist/backup/site/bundled-export-file-policy.js +39 -0
  21. package/dist/backup/site/credential-warnings.d.ts +41 -0
  22. package/dist/backup/site/credential-warnings.js +50 -0
  23. package/dist/backup/site/import-backend-steps.d.ts +167 -0
  24. package/dist/backup/site/import-backend-steps.js +170 -0
  25. package/dist/backup/site/import-backend.d.ts +167 -0
  26. package/dist/backup/site/import-backend.js +298 -0
  27. package/dist/backup/site/import-database.d.ts +118 -0
  28. package/dist/backup/site/import-database.js +167 -0
  29. package/dist/backup/site/import-index/admission.d.ts +54 -0
  30. package/dist/backup/site/import-index/admission.js +46 -0
  31. package/dist/backup/site/import-index/backfill.d.ts +106 -0
  32. package/dist/backup/site/import-index/backfill.js +137 -0
  33. package/dist/backup/site/import-index/errors.d.ts +28 -0
  34. package/dist/backup/site/import-index/errors.js +38 -0
  35. package/dist/backup/site/import-index/migrations/checksums.d.ts +4 -0
  36. package/dist/backup/site/import-index/migrations/checksums.js +4 -0
  37. package/dist/backup/site/import-index/migrations/site-imports-v1.d.ts +2 -0
  38. package/dist/backup/site/import-index/migrations/site-imports-v1.js +10 -0
  39. package/dist/backup/site/import-index/mode.d.ts +191 -0
  40. package/dist/backup/site/import-index/mode.js +272 -0
  41. package/dist/backup/site/import-index/open.d.ts +40 -0
  42. package/dist/backup/site/import-index/open.js +87 -0
  43. package/dist/backup/site/import-index/paging.d.ts +28 -0
  44. package/dist/backup/site/import-index/paging.js +66 -0
  45. package/dist/backup/site/import-index/payload-namespace.d.ts +80 -0
  46. package/dist/backup/site/import-index/payload-namespace.js +156 -0
  47. package/dist/backup/site/import-index/rows.d.ts +32 -0
  48. package/dist/backup/site/import-index/rows.js +61 -0
  49. package/dist/backup/site/import-index/schema.d.ts +8 -0
  50. package/dist/backup/site/import-index/schema.js +31 -0
  51. package/dist/backup/site/import-index/store.d.ts +27 -0
  52. package/dist/backup/site/import-index/store.js +33 -0
  53. package/dist/backup/site/import-index/sweep.d.ts +10 -0
  54. package/dist/backup/site/import-index/sweep.js +26 -0
  55. package/dist/backup/site/import-keep-off.d.ts +128 -0
  56. package/dist/backup/site/import-keep-off.js +204 -0
  57. package/dist/backup/site/import-plugin-state.d.ts +74 -0
  58. package/dist/backup/site/import-plugin-state.js +67 -0
  59. package/dist/backup/site/import-registry.d.ts +110 -0
  60. package/dist/backup/site/import-registry.js +205 -0
  61. package/dist/backup/site/import-restore-placement.d.ts +94 -0
  62. package/dist/backup/site/import-restore-placement.js +158 -0
  63. package/dist/backup/site/import-restore.d.ts +111 -0
  64. package/dist/backup/site/import-restore.js +120 -0
  65. package/dist/backup/site/import-verifier-inventory.d.ts +137 -0
  66. package/dist/backup/site/import-verifier-inventory.js +236 -0
  67. package/dist/backup/site/import-verifier-projection.d.ts +78 -0
  68. package/dist/backup/site/import-verifier-projection.js +100 -0
  69. package/dist/backup/site/import-verifier.d.ts +126 -0
  70. package/dist/backup/site/import-verifier.js +53 -0
  71. package/dist/backup/site/owned-temp-root.d.ts +12 -0
  72. package/dist/backup/site/owned-temp-root.js +2 -0
  73. package/dist/backup/site/package-file-inventory.d.ts +63 -0
  74. package/dist/backup/site/package-file-inventory.js +56 -0
  75. package/dist/backup/site/push-content.d.ts +70 -0
  76. package/dist/backup/site/push-content.js +56 -0
  77. package/dist/backup/site/react/ShowMoreImports.d.ts +21 -0
  78. package/dist/backup/site/react/ShowMoreImports.js +8 -0
  79. package/dist/backup/site/saved-keys-port.d.ts +47 -0
  80. package/dist/backup/site/saved-keys-port.js +3 -0
  81. package/dist/backup/site/saved-keys.d.ts +25 -0
  82. package/dist/backup/site/saved-keys.js +38 -0
  83. package/dist/backup/site/share-backend.d.ts +243 -0
  84. package/dist/backup/site/share-backend.js +284 -0
  85. package/dist/backup/site/share-database/projection.d.ts +197 -0
  86. package/dist/backup/site/share-database/projection.js +90 -0
  87. package/dist/backup/site/share-database/projection.media.d.ts +38 -0
  88. package/dist/backup/site/share-database/projection.media.js +179 -0
  89. package/dist/backup/site/share-database/projection.tables.d.ts +46 -0
  90. package/dist/backup/site/share-database/projection.tables.js +210 -0
  91. package/dist/backup/site/share-expiry.d.ts +75 -0
  92. package/dist/backup/site/share-expiry.js +49 -0
  93. package/dist/backup/site/share-export-failure.d.ts +17 -0
  94. package/dist/backup/site/share-export-failure.js +16 -0
  95. package/dist/backup/site/share-file-policy.d.ts +60 -0
  96. package/dist/backup/site/share-file-policy.js +146 -0
  97. package/dist/backup/site/share-hosting.d.ts +107 -0
  98. package/dist/backup/site/share-hosting.js +148 -0
  99. package/dist/backup/site/share-preparation-steps.d.ts +180 -0
  100. package/dist/backup/site/share-preparation-steps.js +107 -0
  101. package/dist/backup/site/share-preparation.d.ts +122 -0
  102. package/dist/backup/site/share-preparation.js +43 -0
  103. package/dist/backup/site/share-refusal.d.ts +21 -0
  104. package/dist/backup/site/share-refusal.js +20 -0
  105. package/dist/backup/site/share-registry.d.ts +124 -0
  106. package/dist/backup/site/share-registry.js +219 -0
  107. package/dist/backup/site/share-retention.d.ts +62 -0
  108. package/dist/backup/site/share-retention.js +126 -0
  109. package/dist/backup/site/share-service.d.ts +128 -0
  110. package/dist/backup/site/share-service.js +194 -0
  111. package/dist/backup/site/share-zip.d.ts +115 -0
  112. package/dist/backup/site/share-zip.js +144 -0
  113. package/dist/backup/site/sources.d.ts +344 -0
  114. package/dist/backup/site/sources.js +595 -0
  115. package/dist/backup/site/static-copy.d.ts +122 -0
  116. package/dist/backup/site/static-copy.js +165 -0
  117. package/dist/backup/site/static-download-html.d.ts +76 -0
  118. package/dist/backup/site/static-download-html.js +149 -0
  119. package/dist/backup/site/static-download-landing.d.ts +52 -0
  120. package/dist/backup/site/static-download-landing.js +95 -0
  121. package/dist/backup/site/static-download-layout.d.ts +96 -0
  122. package/dist/backup/site/static-download-layout.js +325 -0
  123. package/dist/backup/site/static-export-selection.d.ts +50 -0
  124. package/dist/backup/site/static-export-selection.js +75 -0
  125. package/dist/backup/site/static-site-packager.d.ts +42 -0
  126. package/dist/backup/site/static-site-packager.js +32 -0
  127. package/dist/backup/site/tool-registrations.d.ts +74 -0
  128. package/dist/backup/site/tool-registrations.js +204 -0
  129. package/dist/checks/complexity-debt.d.ts +100 -0
  130. package/dist/checks/complexity-debt.js +131 -0
  131. package/dist/checks/coverage/diff.js +5 -1
  132. package/dist/checks/coverage/lcov.js +1 -1
  133. package/dist/checks/env-access.d.ts +14 -1
  134. package/dist/checks/env-access.js +92 -6
  135. package/dist/checks/live-verify-checks.d.ts +29 -0
  136. package/dist/checks/live-verify-checks.js +30 -0
  137. package/dist/checks/quality-gates.d.ts +137 -0
  138. package/dist/checks/quality-gates.js +209 -0
  139. package/dist/core/deploy-types.d.ts +2 -0
  140. package/dist/deploy/admin-http/site-update-status.d.ts +8 -0
  141. package/dist/deploy/admin-http/site-update-status.js +15 -0
  142. package/dist/deploy/host-kit.d.ts +3 -0
  143. package/dist/deploy/index.d.ts +6 -0
  144. package/dist/deploy/index.js +6 -0
  145. package/dist/deploy/ops-runner.js +7 -0
  146. package/dist/deploy/ops-tool-contracts.d.ts +10 -1
  147. package/dist/deploy/react/Deployment.d.ts +37 -0
  148. package/dist/deploy/react/Deployment.js +94 -0
  149. package/dist/deploy/react/DockerfileTab.d.ts +72 -0
  150. package/dist/deploy/react/DockerfileTab.js +131 -0
  151. package/dist/deploy/react/HistoryTab.d.ts +43 -0
  152. package/dist/deploy/react/HistoryTab.js +12 -0
  153. package/dist/deploy/react/OverviewTab.d.ts +60 -0
  154. package/dist/deploy/react/OverviewTab.js +75 -0
  155. package/dist/deploy/react/PublishRunResult.d.ts +5 -1
  156. package/dist/deploy/react/PublishRunResult.js +4 -4
  157. package/dist/deploy/react/SiteUpdateNotice.d.ts +22 -0
  158. package/dist/deploy/react/SiteUpdateNotice.js +25 -0
  159. package/dist/deploy/react/StaticCredentialFields.d.ts +36 -0
  160. package/dist/deploy/react/StaticCredentialFields.js +63 -0
  161. package/dist/deploy/react/StaticCredentialSteps.d.ts +23 -0
  162. package/dist/deploy/react/StaticCredentialSteps.js +152 -0
  163. package/dist/deploy/react/StaticExportCard.d.ts +11 -0
  164. package/dist/deploy/react/StaticExportCard.js +97 -0
  165. package/dist/deploy/react/StaticPublishCredentials.d.ts +50 -0
  166. package/dist/deploy/react/StaticPublishCredentials.js +77 -0
  167. package/dist/deploy/react/StaticPublishForm.d.ts +12 -0
  168. package/dist/deploy/react/StaticPublishForm.js +91 -0
  169. package/dist/deploy/react/StaticSiteTab.d.ts +207 -0
  170. package/dist/deploy/react/StaticSiteTab.js +117 -0
  171. package/dist/deploy/react/deployment-visuals.d.ts +207 -0
  172. package/dist/deploy/react/deployment-visuals.js +101 -0
  173. package/dist/deploy/react/download-dockerfile.d.ts +14 -0
  174. package/dist/deploy/react/download-dockerfile.js +15 -0
  175. package/dist/deploy/react/hooks/publish-credential-draft.d.ts +33 -0
  176. package/dist/deploy/react/hooks/publish-credential-draft.js +54 -0
  177. package/dist/deploy/react/hooks/publish-credential-selection.d.ts +13 -0
  178. package/dist/deploy/react/hooks/publish-credential-selection.js +34 -0
  179. package/dist/deploy/react/hooks/publish-credential-writes.d.ts +20 -0
  180. package/dist/deploy/react/hooks/publish-credential-writes.js +99 -0
  181. package/dist/deploy/react/hooks/static-publish-actions.d.ts +10 -0
  182. package/dist/deploy/react/hooks/static-publish-actions.js +62 -0
  183. package/dist/deploy/react/hooks/static-publish-form.hooks.d.ts +38 -0
  184. package/dist/deploy/react/hooks/static-publish-form.hooks.js +103 -0
  185. package/dist/deploy/react/hooks/static-publish-run.hooks.d.ts +28 -0
  186. package/dist/deploy/react/hooks/static-publish-run.hooks.js +92 -0
  187. package/dist/deploy/react/hooks/use-dockerfile-source.hooks.d.ts +148 -0
  188. package/dist/deploy/react/hooks/use-dockerfile-source.hooks.js +155 -0
  189. package/dist/deploy/react/hooks/use-publish-credentials.hooks.d.ts +268 -0
  190. package/dist/deploy/react/hooks/use-publish-credentials.hooks.js +52 -0
  191. package/dist/deploy/react/hooks/use-static-export.hooks.d.ts +128 -0
  192. package/dist/deploy/react/hooks/use-static-export.hooks.js +159 -0
  193. package/dist/deploy/react/hooks/use-static-publish.hooks.d.ts +208 -0
  194. package/dist/deploy/react/hooks/use-static-publish.hooks.js +48 -0
  195. package/dist/deploy/react/index.d.ts +4 -0
  196. package/dist/deploy/react/index.js +2 -0
  197. package/dist/deploy/react/rules.d.ts +363 -0
  198. package/dist/deploy/react/rules.js +314 -0
  199. package/dist/deploy/react/use-deployment-overview.hooks.d.ts +41 -0
  200. package/dist/deploy/react/use-deployment-overview.hooks.js +11 -0
  201. package/dist/deploy/site/agent-tools.d.ts +42 -0
  202. package/dist/deploy/site/agent-tools.js +119 -0
  203. package/dist/deploy/site/deploy-config-registry.d.ts +155 -0
  204. package/dist/deploy/site/deploy-config-registry.js +124 -0
  205. package/dist/deploy/site/deploy-config.d.ts +97 -0
  206. package/dist/deploy/site/deploy-config.js +115 -0
  207. package/dist/deploy/site/deploy-ops/agent-tools.d.ts +22 -0
  208. package/dist/deploy/site/deploy-ops/agent-tools.js +76 -0
  209. package/dist/deploy/site/deploy-ops/registry.d.ts +134 -0
  210. package/dist/deploy/site/deploy-ops/registry.js +106 -0
  211. package/dist/deploy/site/deploy-ops/run-ops.d.ts +66 -0
  212. package/dist/deploy/site/deploy-ops/run-ops.js +34 -0
  213. package/dist/deploy/site/deploy-ops/secret-confirm.d.ts +36 -0
  214. package/dist/deploy/site/deploy-ops/secret-confirm.js +27 -0
  215. package/dist/deploy/site/deploy-targets/host-kit.d.ts +28 -0
  216. package/dist/deploy/site/deploy-targets/host-kit.js +120 -0
  217. package/dist/deploy/site/deploy-targets/registry.d.ts +157 -0
  218. package/dist/deploy/site/deploy-targets/registry.js +130 -0
  219. package/dist/deploy/site/deploy-targets/types.d.ts +27 -0
  220. package/dist/deploy/site/deploy-targets/types.js +2 -0
  221. package/dist/deploy/site/dockerfile.d.ts +137 -0
  222. package/dist/deploy/site/dockerfile.js +101 -0
  223. package/dist/deploy/site/export-run.d.ts +137 -0
  224. package/dist/deploy/site/export-run.js +152 -0
  225. package/dist/deploy/site/ports.d.ts +115 -0
  226. package/dist/deploy/site/ports.js +2 -0
  227. package/dist/deploy/site/publish-agent-tools.d.ts +18 -0
  228. package/dist/deploy/site/publish-agent-tools.js +120 -0
  229. package/dist/deploy/site/publish-candidate.d.ts +26 -0
  230. package/dist/deploy/site/publish-candidate.js +37 -0
  231. package/dist/deploy/site/publish-credentials/account-label-heal-scheduler.d.ts +78 -0
  232. package/dist/deploy/site/publish-credentials/account-label-heal-scheduler.js +88 -0
  233. package/dist/deploy/site/publish-credentials/compatibility-port.d.ts +38 -0
  234. package/dist/deploy/site/publish-credentials/compatibility-port.js +19 -0
  235. package/dist/deploy/site/publish-credentials/execution-mode.d.ts +43 -0
  236. package/dist/deploy/site/publish-credentials/execution-mode.js +19 -0
  237. package/dist/deploy/site/publish-credentials/store-owner.d.ts +11 -0
  238. package/dist/deploy/site/publish-credentials/store-owner.js +9 -0
  239. package/dist/deploy/site/publish-credentials/store-resolution.d.ts +55 -0
  240. package/dist/deploy/site/publish-credentials/store-resolution.js +100 -0
  241. package/dist/deploy/site/publish-credentials/store-validation.d.ts +68 -0
  242. package/dist/deploy/site/publish-credentials/store-validation.js +182 -0
  243. package/dist/deploy/site/publish-credentials/store.d.ts +321 -0
  244. package/dist/deploy/site/publish-credentials/store.js +367 -0
  245. package/dist/deploy/site/publish-credentials/types.d.ts +85 -0
  246. package/dist/deploy/site/publish-credentials/types.js +2 -0
  247. package/dist/deploy/site/publish-tool-capabilities.d.ts +123 -0
  248. package/dist/deploy/site/publish-tool-capabilities.js +175 -0
  249. package/dist/deploy/site/publish-tool-credential.d.ts +48 -0
  250. package/dist/deploy/site/publish-tool-credential.js +284 -0
  251. package/dist/deploy/site/publish-tool-deps.d.ts +205 -0
  252. package/dist/deploy/site/publish-tool-deps.js +15 -0
  253. package/dist/deploy/site/publish-tool-execution.d.ts +78 -0
  254. package/dist/deploy/site/publish-tool-execution.js +313 -0
  255. package/dist/deploy/site/publish-tool-schema.d.ts +29 -0
  256. package/dist/deploy/site/publish-tool-schema.js +38 -0
  257. package/dist/deploy/site/static-publish/adapter-export.d.ts +54 -0
  258. package/dist/deploy/site/static-publish/adapter-export.js +89 -0
  259. package/dist/deploy/site/static-publish/adapter-plan.d.ts +99 -0
  260. package/dist/deploy/site/static-publish/adapter-plan.js +112 -0
  261. package/dist/deploy/site/static-publish/adapter.d.ts +182 -0
  262. package/dist/deploy/site/static-publish/adapter.js +321 -0
  263. package/dist/deploy/site/static-publish/admin-publish-read.d.ts +209 -0
  264. package/dist/deploy/site/static-publish/admin-publish-read.js +118 -0
  265. package/dist/deploy/site/static-publish/credentials.d.ts +114 -0
  266. package/dist/deploy/site/static-publish/credentials.js +298 -0
  267. package/dist/deploy/site/static-publish/domain-publish-rows.d.ts +25 -0
  268. package/dist/deploy/site/static-publish/domain-publish-rows.js +43 -0
  269. package/dist/deploy/site/static-publish/domain-publish-tool.d.ts +19 -0
  270. package/dist/deploy/site/static-publish/domain-publish-tool.js +111 -0
  271. package/dist/deploy/site/static-publish/inspection.d.ts +24 -0
  272. package/dist/deploy/site/static-publish/inspection.js +69 -0
  273. package/dist/deploy/site/static-publish/publish-history.d.ts +197 -0
  274. package/dist/deploy/site/static-publish/publish-history.js +153 -0
  275. package/dist/deploy/site/static-publish/publish-run.d.ts +156 -0
  276. package/dist/deploy/site/static-publish/publish-run.js +186 -0
  277. package/dist/deploy/site/static-publish/types.d.ts +168 -0
  278. package/dist/deploy/site/static-publish/types.js +2 -0
  279. package/dist/deploy/site/static-publish/verify.d.ts +237 -0
  280. package/dist/deploy/site/static-publish/verify.js +284 -0
  281. package/dist/deploy/site/tool-registrations.d.ts +97 -0
  282. package/dist/deploy/site/tool-registrations.js +130 -0
  283. package/dist/deploy/site/types.d.ts +51 -0
  284. package/dist/deploy/site/types.js +2 -0
  285. package/dist/deploy/site-update/check-for-update.d.ts +19 -0
  286. package/dist/deploy/site-update/check-for-update.js +19 -0
  287. package/dist/deploy/site-update/contracts.d.ts +161 -0
  288. package/dist/deploy/site-update/contracts.js +94 -0
  289. package/dist/deploy/site-update/desktop-site-update.d.ts +66 -0
  290. package/dist/deploy/site-update/desktop-site-update.js +43 -0
  291. package/dist/deploy/site-update/fake-site-update.d.ts +39 -0
  292. package/dist/deploy/site-update/fake-site-update.js +52 -0
  293. package/dist/deploy/site-update/run-site-update.d.ts +121 -0
  294. package/dist/deploy/site-update/run-site-update.js +219 -0
  295. package/dist/deploy/site-update/self-hosted-site-update.d.ts +71 -0
  296. package/dist/deploy/site-update/self-hosted-site-update.js +79 -0
  297. package/dist/deploy/target-contracts.d.ts +3 -0
  298. package/dist/deploy/tool.d.ts +5 -8
  299. package/dist/deploy/tool.js +6 -9
  300. package/dist/dns/binding-sweeper.d.ts +72 -0
  301. package/dist/dns/binding-sweeper.js +53 -0
  302. package/dist/dns/index.d.ts +1 -0
  303. package/dist/dns/index.js +1 -0
  304. package/dist/dns/site/binding.repo.d.ts +71 -0
  305. package/dist/dns/site/binding.repo.js +45 -0
  306. package/dist/dns/site/dns-changes.d.ts +90 -0
  307. package/dist/dns/site/dns-changes.js +271 -0
  308. package/dist/dns/site/dns-tools.d.ts +46 -0
  309. package/dist/dns/site/dns-tools.js +204 -0
  310. package/dist/dns/site/mail-dns-status.d.ts +111 -0
  311. package/dist/dns/site/mail-dns-status.js +190 -0
  312. package/dist/dns/site/mail-dns-tools.d.ts +33 -0
  313. package/dist/dns/site/mail-dns-tools.js +62 -0
  314. package/dist/dns/site/mail-requirements.d.ts +30 -0
  315. package/dist/dns/site/mail-requirements.js +78 -0
  316. package/dist/dns/site/tool-deps.d.ts +21 -0
  317. package/dist/dns/site/tool-deps.js +2 -0
  318. package/dist/dns/site/tools.d.ts +74 -0
  319. package/dist/dns/site/tools.js +124 -0
  320. package/dist/local-dev/bind-host.d.ts +80 -0
  321. package/dist/local-dev/bind-host.js +90 -0
  322. package/dist/local-dev/dev-proxy-upstream.d.ts +69 -0
  323. package/dist/local-dev/dev-proxy-upstream.js +63 -0
  324. package/dist/local-dev/index.d.ts +28 -0
  325. package/dist/local-dev/index.js +25 -0
  326. package/dist/packaging/electron/archive.d.ts +2 -9
  327. package/dist/packaging/electron/asar-adapter.d.ts +2 -1
  328. package/dist/packaging/electron/entry.d.ts +2 -0
  329. package/dist/packaging/electron/move-to-applications.d.ts +165 -0
  330. package/dist/packaging/electron/move-to-applications.js +162 -0
  331. package/dist/packaging/electron/policies.d.ts +33 -4
  332. package/dist/packaging/electron/policies.js +29 -10
  333. package/dist/packaging/electron/ports.d.ts +1 -6
  334. package/dist/packaging/electron/staging.d.ts +11 -2
  335. package/dist/packaging/electron/staging.js +15 -5
  336. package/dist/packaging/electron/update-manifest-merge.js +0 -2
  337. package/dist/react/site-share-expiry/ShareExpiryControls.d.ts +29 -0
  338. package/dist/react/site-share-expiry/ShareExpiryControls.js +7 -0
  339. package/dist/react/site-share-expiry/index.d.ts +2 -0
  340. package/dist/react/site-share-expiry/index.js +2 -0
  341. package/dist/source-control/react/ProvidersTab.d.ts +98 -0
  342. package/dist/source-control/react/ProvidersTab.js +195 -0
  343. package/dist/source-control/react/SourceControl.d.ts +51 -0
  344. package/dist/source-control/react/SourceControl.js +61 -0
  345. package/dist/source-control/react/hooks/use-source-control-credentials.hooks.d.ts +128 -0
  346. package/dist/source-control/react/hooks/use-source-control-credentials.hooks.js +102 -0
  347. package/dist/source-control/react/rules.d.ts +167 -0
  348. package/dist/source-control/react/rules.js +125 -0
  349. package/dist/source-control/react/source-control-visuals.d.ts +75 -0
  350. package/dist/source-control/react/source-control-visuals.js +48 -0
  351. package/dist/source-control/site/agent-tools.d.ts +5 -0
  352. package/dist/source-control/site/agent-tools.js +30 -0
  353. package/dist/source-control/site/bundled-provider-registry.d.ts +33 -0
  354. package/dist/source-control/site/bundled-provider-registry.js +37 -0
  355. package/dist/source-control/site/commit-schema.d.ts +40 -0
  356. package/dist/source-control/site/commit-schema.js +29 -0
  357. package/dist/source-control/site/commit-target.d.ts +26 -0
  358. package/dist/source-control/site/commit-target.js +58 -0
  359. package/dist/source-control/site/credential-form.d.ts +36 -0
  360. package/dist/source-control/site/credential-form.js +102 -0
  361. package/dist/source-control/site/credential-setup.d.ts +107 -0
  362. package/dist/source-control/site/credential-setup.js +216 -0
  363. package/dist/source-control/site/provider-kit.d.ts +37 -0
  364. package/dist/source-control/site/provider-kit.js +35 -0
  365. package/dist/source-control/site/provider-module.d.ts +251 -0
  366. package/dist/source-control/site/provider-module.js +2 -0
  367. package/dist/source-control/site/saved-key-bindings.d.ts +4 -0
  368. package/dist/source-control/site/saved-key-bindings.js +4 -0
  369. package/dist/source-control/site/static-site-packager-port.d.ts +37 -0
  370. package/dist/source-control/site/static-site-packager-port.js +2 -0
  371. package/dist/source-control/site/store.d.ts +209 -0
  372. package/dist/source-control/site/store.js +374 -0
  373. package/dist/source-control/site/store.validation.d.ts +72 -0
  374. package/dist/source-control/site/store.validation.js +168 -0
  375. package/dist/source-control/site/tool-registrations.d.ts +190 -0
  376. package/dist/source-control/site/tool-registrations.js +379 -0
  377. package/dist/static-export/asset-crawl.d.ts +30 -0
  378. package/dist/static-export/asset-crawl.js +71 -0
  379. package/dist/static-export/dynamic-asset-locations.d.ts +23 -0
  380. package/dist/static-export/dynamic-asset-locations.js +34 -0
  381. package/dist/static-export/html-url-locations.d.ts +3 -1
  382. package/dist/static-export/html-url-locations.js +43 -9
  383. package/dist/static-export/runner.js +26 -27
  384. package/dist/static-export/site/export-preflight.d.ts +48 -0
  385. package/dist/static-export/site/export-preflight.js +82 -0
  386. package/dist/static-export/site/media-original-urls.d.ts +57 -0
  387. package/dist/static-export/site/media-original-urls.js +109 -0
  388. package/dist/static-export/site/ports.d.ts +82 -0
  389. package/dist/static-export/site/ports.js +29 -0
  390. package/dist/static-export/site/public-origin-policy.d.ts +32 -0
  391. package/dist/static-export/site/public-origin-policy.js +68 -0
  392. package/dist/static-export/site/route-manifest.d.ts +65 -0
  393. package/dist/static-export/site/route-manifest.js +139 -0
  394. package/dist/static-export/site/site-exporter.d.ts +158 -0
  395. package/dist/static-export/site/site-exporter.js +112 -0
  396. package/dist/static-export/site/static-security-headers.d.ts +39 -0
  397. package/dist/static-export/site/static-security-headers.js +43 -0
  398. package/dist/static-export/site/theme-preview-manifest.d.ts +35 -0
  399. package/dist/static-export/site/theme-preview-manifest.js +28 -0
  400. package/dist/static-export/transforms.d.ts +1 -1
  401. package/dist/static-export/transforms.js +3 -3
  402. 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
@@ -1,2 +1,4 @@
1
1
  export { PublishRunResult } from './PublishRunResult.js';
2
+ export { HistoryTab } from './HistoryTab.js';
3
+ export { useDeploymentOverview } from './use-deployment-overview.hooks.js';
2
4
  //# sourceMappingURL=index.js.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