@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.
Files changed (391) hide show
  1. package/CHANGELOG.md +6 -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 +161 -0
  11. package/dist/backup/site/backup-service.d.ts +331 -0
  12. package/dist/backup/site/backup-service.js +125 -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 +82 -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 +40 -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 +195 -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 +193 -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 +109 -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 +76 -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 +201 -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/env-access.d.ts +14 -1
  133. package/dist/checks/env-access.js +92 -6
  134. package/dist/checks/live-verify-checks.d.ts +29 -0
  135. package/dist/checks/live-verify-checks.js +30 -0
  136. package/dist/checks/quality-gates.d.ts +137 -0
  137. package/dist/checks/quality-gates.js +209 -0
  138. package/dist/core/deploy-types.d.ts +2 -0
  139. package/dist/deploy/admin-http/site-update-status.d.ts +8 -0
  140. package/dist/deploy/admin-http/site-update-status.js +15 -0
  141. package/dist/deploy/host-kit.d.ts +3 -0
  142. package/dist/deploy/index.d.ts +6 -0
  143. package/dist/deploy/index.js +6 -0
  144. package/dist/deploy/ops-runner.js +7 -0
  145. package/dist/deploy/ops-tool-contracts.d.ts +10 -1
  146. package/dist/deploy/react/Deployment.d.ts +37 -0
  147. package/dist/deploy/react/Deployment.js +94 -0
  148. package/dist/deploy/react/DockerfileTab.d.ts +72 -0
  149. package/dist/deploy/react/DockerfileTab.js +131 -0
  150. package/dist/deploy/react/HistoryTab.d.ts +43 -0
  151. package/dist/deploy/react/HistoryTab.js +12 -0
  152. package/dist/deploy/react/OverviewTab.d.ts +60 -0
  153. package/dist/deploy/react/OverviewTab.js +75 -0
  154. package/dist/deploy/react/PublishRunResult.d.ts +5 -1
  155. package/dist/deploy/react/PublishRunResult.js +4 -4
  156. package/dist/deploy/react/SiteUpdateNotice.d.ts +22 -0
  157. package/dist/deploy/react/SiteUpdateNotice.js +25 -0
  158. package/dist/deploy/react/StaticCredentialFields.d.ts +36 -0
  159. package/dist/deploy/react/StaticCredentialFields.js +63 -0
  160. package/dist/deploy/react/StaticCredentialSteps.d.ts +23 -0
  161. package/dist/deploy/react/StaticCredentialSteps.js +155 -0
  162. package/dist/deploy/react/StaticExportCard.d.ts +11 -0
  163. package/dist/deploy/react/StaticExportCard.js +97 -0
  164. package/dist/deploy/react/StaticPublishCredentials.d.ts +50 -0
  165. package/dist/deploy/react/StaticPublishCredentials.js +77 -0
  166. package/dist/deploy/react/StaticPublishForm.d.ts +12 -0
  167. package/dist/deploy/react/StaticPublishForm.js +91 -0
  168. package/dist/deploy/react/StaticSiteTab.d.ts +207 -0
  169. package/dist/deploy/react/StaticSiteTab.js +117 -0
  170. package/dist/deploy/react/deployment-visuals.d.ts +207 -0
  171. package/dist/deploy/react/deployment-visuals.js +101 -0
  172. package/dist/deploy/react/download-dockerfile.d.ts +14 -0
  173. package/dist/deploy/react/download-dockerfile.js +15 -0
  174. package/dist/deploy/react/hooks/publish-credential-draft.d.ts +33 -0
  175. package/dist/deploy/react/hooks/publish-credential-draft.js +54 -0
  176. package/dist/deploy/react/hooks/publish-credential-selection.d.ts +13 -0
  177. package/dist/deploy/react/hooks/publish-credential-selection.js +34 -0
  178. package/dist/deploy/react/hooks/publish-credential-writes.d.ts +20 -0
  179. package/dist/deploy/react/hooks/publish-credential-writes.js +99 -0
  180. package/dist/deploy/react/hooks/static-publish-actions.d.ts +10 -0
  181. package/dist/deploy/react/hooks/static-publish-actions.js +62 -0
  182. package/dist/deploy/react/hooks/static-publish-form.hooks.d.ts +38 -0
  183. package/dist/deploy/react/hooks/static-publish-form.hooks.js +103 -0
  184. package/dist/deploy/react/hooks/static-publish-run.hooks.d.ts +28 -0
  185. package/dist/deploy/react/hooks/static-publish-run.hooks.js +92 -0
  186. package/dist/deploy/react/hooks/use-dockerfile-source.hooks.d.ts +148 -0
  187. package/dist/deploy/react/hooks/use-dockerfile-source.hooks.js +155 -0
  188. package/dist/deploy/react/hooks/use-publish-credentials.hooks.d.ts +268 -0
  189. package/dist/deploy/react/hooks/use-publish-credentials.hooks.js +52 -0
  190. package/dist/deploy/react/hooks/use-static-export.hooks.d.ts +128 -0
  191. package/dist/deploy/react/hooks/use-static-export.hooks.js +159 -0
  192. package/dist/deploy/react/hooks/use-static-publish.hooks.d.ts +208 -0
  193. package/dist/deploy/react/hooks/use-static-publish.hooks.js +48 -0
  194. package/dist/deploy/react/index.d.ts +4 -0
  195. package/dist/deploy/react/index.js +2 -0
  196. package/dist/deploy/react/rules.d.ts +363 -0
  197. package/dist/deploy/react/rules.js +314 -0
  198. package/dist/deploy/react/use-deployment-overview.hooks.d.ts +41 -0
  199. package/dist/deploy/react/use-deployment-overview.hooks.js +11 -0
  200. package/dist/deploy/site/agent-tools.d.ts +42 -0
  201. package/dist/deploy/site/agent-tools.js +119 -0
  202. package/dist/deploy/site/deploy-config-registry.d.ts +155 -0
  203. package/dist/deploy/site/deploy-config-registry.js +124 -0
  204. package/dist/deploy/site/deploy-config.d.ts +97 -0
  205. package/dist/deploy/site/deploy-config.js +115 -0
  206. package/dist/deploy/site/deploy-ops/agent-tools.d.ts +22 -0
  207. package/dist/deploy/site/deploy-ops/agent-tools.js +76 -0
  208. package/dist/deploy/site/deploy-ops/registry.d.ts +134 -0
  209. package/dist/deploy/site/deploy-ops/registry.js +106 -0
  210. package/dist/deploy/site/deploy-ops/run-ops.d.ts +66 -0
  211. package/dist/deploy/site/deploy-ops/run-ops.js +34 -0
  212. package/dist/deploy/site/deploy-ops/secret-confirm.d.ts +36 -0
  213. package/dist/deploy/site/deploy-ops/secret-confirm.js +27 -0
  214. package/dist/deploy/site/deploy-targets/host-kit.d.ts +28 -0
  215. package/dist/deploy/site/deploy-targets/host-kit.js +120 -0
  216. package/dist/deploy/site/deploy-targets/registry.d.ts +157 -0
  217. package/dist/deploy/site/deploy-targets/registry.js +132 -0
  218. package/dist/deploy/site/deploy-targets/types.d.ts +27 -0
  219. package/dist/deploy/site/deploy-targets/types.js +2 -0
  220. package/dist/deploy/site/dockerfile.d.ts +137 -0
  221. package/dist/deploy/site/dockerfile.js +101 -0
  222. package/dist/deploy/site/export-run.d.ts +137 -0
  223. package/dist/deploy/site/export-run.js +152 -0
  224. package/dist/deploy/site/ports.d.ts +115 -0
  225. package/dist/deploy/site/ports.js +2 -0
  226. package/dist/deploy/site/publish-agent-tools.d.ts +18 -0
  227. package/dist/deploy/site/publish-agent-tools.js +120 -0
  228. package/dist/deploy/site/publish-candidate.d.ts +26 -0
  229. package/dist/deploy/site/publish-candidate.js +37 -0
  230. package/dist/deploy/site/publish-credentials/account-label-heal-scheduler.d.ts +78 -0
  231. package/dist/deploy/site/publish-credentials/account-label-heal-scheduler.js +88 -0
  232. package/dist/deploy/site/publish-credentials/compatibility-port.d.ts +38 -0
  233. package/dist/deploy/site/publish-credentials/compatibility-port.js +19 -0
  234. package/dist/deploy/site/publish-credentials/execution-mode.d.ts +43 -0
  235. package/dist/deploy/site/publish-credentials/execution-mode.js +19 -0
  236. package/dist/deploy/site/publish-credentials/store-owner.d.ts +11 -0
  237. package/dist/deploy/site/publish-credentials/store-owner.js +9 -0
  238. package/dist/deploy/site/publish-credentials/store-resolution.d.ts +55 -0
  239. package/dist/deploy/site/publish-credentials/store-resolution.js +100 -0
  240. package/dist/deploy/site/publish-credentials/store-validation.d.ts +68 -0
  241. package/dist/deploy/site/publish-credentials/store-validation.js +182 -0
  242. package/dist/deploy/site/publish-credentials/store.d.ts +322 -0
  243. package/dist/deploy/site/publish-credentials/store.js +372 -0
  244. package/dist/deploy/site/publish-credentials/types.d.ts +85 -0
  245. package/dist/deploy/site/publish-credentials/types.js +2 -0
  246. package/dist/deploy/site/publish-tool-capabilities.d.ts +123 -0
  247. package/dist/deploy/site/publish-tool-capabilities.js +175 -0
  248. package/dist/deploy/site/publish-tool-credential.d.ts +48 -0
  249. package/dist/deploy/site/publish-tool-credential.js +284 -0
  250. package/dist/deploy/site/publish-tool-deps.d.ts +205 -0
  251. package/dist/deploy/site/publish-tool-deps.js +15 -0
  252. package/dist/deploy/site/publish-tool-execution.d.ts +78 -0
  253. package/dist/deploy/site/publish-tool-execution.js +313 -0
  254. package/dist/deploy/site/publish-tool-schema.d.ts +29 -0
  255. package/dist/deploy/site/publish-tool-schema.js +38 -0
  256. package/dist/deploy/site/static-publish/adapter-export.d.ts +54 -0
  257. package/dist/deploy/site/static-publish/adapter-export.js +89 -0
  258. package/dist/deploy/site/static-publish/adapter-plan.d.ts +99 -0
  259. package/dist/deploy/site/static-publish/adapter-plan.js +112 -0
  260. package/dist/deploy/site/static-publish/adapter.d.ts +182 -0
  261. package/dist/deploy/site/static-publish/adapter.js +321 -0
  262. package/dist/deploy/site/static-publish/admin-publish-read.d.ts +209 -0
  263. package/dist/deploy/site/static-publish/admin-publish-read.js +116 -0
  264. package/dist/deploy/site/static-publish/credentials.d.ts +110 -0
  265. package/dist/deploy/site/static-publish/credentials.js +290 -0
  266. package/dist/deploy/site/static-publish/domain-publish-rows.d.ts +25 -0
  267. package/dist/deploy/site/static-publish/domain-publish-rows.js +43 -0
  268. package/dist/deploy/site/static-publish/domain-publish-tool.d.ts +19 -0
  269. package/dist/deploy/site/static-publish/domain-publish-tool.js +111 -0
  270. package/dist/deploy/site/static-publish/inspection.d.ts +24 -0
  271. package/dist/deploy/site/static-publish/inspection.js +69 -0
  272. package/dist/deploy/site/static-publish/publish-history.d.ts +197 -0
  273. package/dist/deploy/site/static-publish/publish-history.js +153 -0
  274. package/dist/deploy/site/static-publish/publish-run.d.ts +156 -0
  275. package/dist/deploy/site/static-publish/publish-run.js +186 -0
  276. package/dist/deploy/site/static-publish/types.d.ts +165 -0
  277. package/dist/deploy/site/static-publish/types.js +2 -0
  278. package/dist/deploy/site/static-publish/verify.d.ts +217 -0
  279. package/dist/deploy/site/static-publish/verify.js +248 -0
  280. package/dist/deploy/site/tool-registrations.d.ts +97 -0
  281. package/dist/deploy/site/tool-registrations.js +130 -0
  282. package/dist/deploy/site/types.d.ts +51 -0
  283. package/dist/deploy/site/types.js +2 -0
  284. package/dist/deploy/site-update/check-for-update.d.ts +19 -0
  285. package/dist/deploy/site-update/check-for-update.js +19 -0
  286. package/dist/deploy/site-update/contracts.d.ts +161 -0
  287. package/dist/deploy/site-update/contracts.js +94 -0
  288. package/dist/deploy/site-update/desktop-site-update.d.ts +66 -0
  289. package/dist/deploy/site-update/desktop-site-update.js +43 -0
  290. package/dist/deploy/site-update/fake-site-update.d.ts +39 -0
  291. package/dist/deploy/site-update/fake-site-update.js +52 -0
  292. package/dist/deploy/site-update/run-site-update.d.ts +121 -0
  293. package/dist/deploy/site-update/run-site-update.js +219 -0
  294. package/dist/deploy/site-update/self-hosted-site-update.d.ts +71 -0
  295. package/dist/deploy/site-update/self-hosted-site-update.js +79 -0
  296. package/dist/deploy/target-contracts.d.ts +3 -0
  297. package/dist/deploy/tool.d.ts +5 -8
  298. package/dist/deploy/tool.js +6 -9
  299. package/dist/dns/binding-sweeper.d.ts +72 -0
  300. package/dist/dns/binding-sweeper.js +53 -0
  301. package/dist/dns/index.d.ts +1 -0
  302. package/dist/dns/index.js +1 -0
  303. package/dist/dns/site/binding.repo.d.ts +71 -0
  304. package/dist/dns/site/binding.repo.js +45 -0
  305. package/dist/dns/site/dns-changes.d.ts +90 -0
  306. package/dist/dns/site/dns-changes.js +271 -0
  307. package/dist/dns/site/dns-tools.d.ts +46 -0
  308. package/dist/dns/site/dns-tools.js +204 -0
  309. package/dist/dns/site/mail-dns-status.d.ts +111 -0
  310. package/dist/dns/site/mail-dns-status.js +190 -0
  311. package/dist/dns/site/mail-dns-tools.d.ts +33 -0
  312. package/dist/dns/site/mail-dns-tools.js +62 -0
  313. package/dist/dns/site/mail-requirements.d.ts +30 -0
  314. package/dist/dns/site/mail-requirements.js +78 -0
  315. package/dist/dns/site/tool-deps.d.ts +21 -0
  316. package/dist/dns/site/tool-deps.js +2 -0
  317. package/dist/dns/site/tools.d.ts +74 -0
  318. package/dist/dns/site/tools.js +124 -0
  319. package/dist/local-dev/bind-host.d.ts +80 -0
  320. package/dist/local-dev/bind-host.js +90 -0
  321. package/dist/local-dev/dev-proxy-upstream.d.ts +69 -0
  322. package/dist/local-dev/dev-proxy-upstream.js +63 -0
  323. package/dist/local-dev/index.d.ts +28 -0
  324. package/dist/local-dev/index.js +25 -0
  325. package/dist/packaging/electron/archive.d.ts +2 -9
  326. package/dist/packaging/electron/asar-adapter.d.ts +2 -1
  327. package/dist/packaging/electron/entry.d.ts +2 -0
  328. package/dist/packaging/electron/move-to-applications.d.ts +165 -0
  329. package/dist/packaging/electron/move-to-applications.js +162 -0
  330. package/dist/packaging/electron/policies.d.ts +33 -4
  331. package/dist/packaging/electron/policies.js +29 -10
  332. package/dist/packaging/electron/ports.d.ts +1 -6
  333. package/dist/packaging/electron/staging.d.ts +11 -2
  334. package/dist/packaging/electron/staging.js +15 -5
  335. package/dist/react/site-share-expiry/ShareExpiryControls.d.ts +29 -0
  336. package/dist/react/site-share-expiry/ShareExpiryControls.js +7 -0
  337. package/dist/react/site-share-expiry/index.d.ts +2 -0
  338. package/dist/react/site-share-expiry/index.js +2 -0
  339. package/dist/source-control/react/ProvidersTab.d.ts +98 -0
  340. package/dist/source-control/react/ProvidersTab.js +195 -0
  341. package/dist/source-control/react/SourceControl.d.ts +51 -0
  342. package/dist/source-control/react/SourceControl.js +61 -0
  343. package/dist/source-control/react/hooks/use-source-control-credentials.hooks.d.ts +128 -0
  344. package/dist/source-control/react/hooks/use-source-control-credentials.hooks.js +102 -0
  345. package/dist/source-control/react/rules.d.ts +167 -0
  346. package/dist/source-control/react/rules.js +125 -0
  347. package/dist/source-control/react/source-control-visuals.d.ts +75 -0
  348. package/dist/source-control/react/source-control-visuals.js +48 -0
  349. package/dist/source-control/site/agent-tools.d.ts +5 -0
  350. package/dist/source-control/site/agent-tools.js +30 -0
  351. package/dist/source-control/site/bundled-provider-registry.d.ts +33 -0
  352. package/dist/source-control/site/bundled-provider-registry.js +37 -0
  353. package/dist/source-control/site/commit-schema.d.ts +40 -0
  354. package/dist/source-control/site/commit-schema.js +29 -0
  355. package/dist/source-control/site/commit-target.d.ts +26 -0
  356. package/dist/source-control/site/commit-target.js +58 -0
  357. package/dist/source-control/site/credential-form.d.ts +36 -0
  358. package/dist/source-control/site/credential-form.js +102 -0
  359. package/dist/source-control/site/credential-setup.d.ts +107 -0
  360. package/dist/source-control/site/credential-setup.js +216 -0
  361. package/dist/source-control/site/provider-kit.d.ts +37 -0
  362. package/dist/source-control/site/provider-kit.js +35 -0
  363. package/dist/source-control/site/provider-module.d.ts +251 -0
  364. package/dist/source-control/site/provider-module.js +2 -0
  365. package/dist/source-control/site/saved-key-bindings.d.ts +4 -0
  366. package/dist/source-control/site/saved-key-bindings.js +4 -0
  367. package/dist/source-control/site/static-site-packager-port.d.ts +37 -0
  368. package/dist/source-control/site/static-site-packager-port.js +2 -0
  369. package/dist/source-control/site/store.d.ts +209 -0
  370. package/dist/source-control/site/store.js +374 -0
  371. package/dist/source-control/site/store.validation.d.ts +72 -0
  372. package/dist/source-control/site/store.validation.js +168 -0
  373. package/dist/source-control/site/tool-registrations.d.ts +190 -0
  374. package/dist/source-control/site/tool-registrations.js +379 -0
  375. package/dist/static-export/site/export-preflight.d.ts +48 -0
  376. package/dist/static-export/site/export-preflight.js +82 -0
  377. package/dist/static-export/site/media-original-urls.d.ts +57 -0
  378. package/dist/static-export/site/media-original-urls.js +109 -0
  379. package/dist/static-export/site/ports.d.ts +82 -0
  380. package/dist/static-export/site/ports.js +29 -0
  381. package/dist/static-export/site/public-origin-policy.d.ts +32 -0
  382. package/dist/static-export/site/public-origin-policy.js +68 -0
  383. package/dist/static-export/site/route-manifest.d.ts +65 -0
  384. package/dist/static-export/site/route-manifest.js +139 -0
  385. package/dist/static-export/site/site-exporter.d.ts +158 -0
  386. package/dist/static-export/site/site-exporter.js +112 -0
  387. package/dist/static-export/site/static-security-headers.d.ts +39 -0
  388. package/dist/static-export/site/static-security-headers.js +43 -0
  389. package/dist/static-export/site/theme-preview-manifest.d.ts +35 -0
  390. package/dist/static-export/site/theme-preview-manifest.js +28 -0
  391. package/package.json +912 -8
@@ -0,0 +1,37 @@
1
+ import type { ComponentType } from "react";
2
+ import type { agentHandle } from "@jini-ai/core/agent-handles";
3
+ import type { resolveActiveTabId } from "@jini-ai/core/text";
4
+ import type { SourceControlTabBarProps } from "../../source-control/react/SourceControl.js";
5
+ import { type OverviewTabProps } from "./OverviewTab.js";
6
+ import { type DockerfileTabProps } from "./DockerfileTab.js";
7
+ export interface DeploymentProps {
8
+ useAdminLocaleHook(): string;
9
+ t(required: {
10
+ locale: string;
11
+ key: string;
12
+ }, optional?: Record<string, never>): string;
13
+ onTabChange(required: {
14
+ nextTabId: string;
15
+ }, optional?: Record<string, never>): void;
16
+ TabBar: ComponentType<SourceControlTabBarProps>;
17
+ StaticSiteTab: ComponentType;
18
+ HistoryTab: ComponentType;
19
+ overview: OverviewTabProps;
20
+ dockerfile: DockerfileTabProps;
21
+ agentHandle: typeof agentHandle;
22
+ resolveActiveTabId: typeof resolveActiveTabId;
23
+ lineIcon: {
24
+ viewBox: string;
25
+ fill: string;
26
+ stroke: string;
27
+ strokeWidth: number;
28
+ strokeLinecap: "round";
29
+ strokeLinejoin: "round";
30
+ "aria-hidden": true;
31
+ };
32
+ /** The `?tab=` query value from `panels.tsx`'s `deployment` route (`URLSearchParams.get` returns
33
+ * `null` when the param is absent). See {@link resolveDeploymentTabId}. */
34
+ tabId?: string | null;
35
+ }
36
+ export declare function Deployment(props: DeploymentProps): import("react").JSX.Element;
37
+ //# sourceMappingURL=Deployment.d.ts.map
@@ -0,0 +1,94 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { OverviewTab } from "./OverviewTab.js";
3
+ import { DockerfileTab } from "./DockerfileTab.js";
4
+ import { HistoryIcon, LayersIcon, OverviewIcon, StaticSiteIcon } from "./deployment-visuals.js";
5
+ /**
6
+ * @file The Deployment panel (`/admin/deployment`) — four tabs: Overview, Static Site,
7
+ * Dockerfile, History. Replaces the earlier `PlaceholderTabs` stub (Home/GitHub/AWS), which was
8
+ * shaped for the self-hosted-developer audience while the panel's `soon`-scaffolded copy still
9
+ * described the not-yet-built hosted-SaaS product — see `development/docs/deployment/
10
+ * deployment-constraints.md` §9 for that history. The owner has since decided self-hosted-for-
11
+ * developers ships first, which is what these four tabs are built for.
12
+ *
13
+ * `TabBar` (`@jini-ai/ui/tab-strip`), not `@jini-ai/ui`'s `SettingsDialogShell` — this is a
14
+ * full-page screen, not a dialog-shaped surface. `SettingsDialogShell` bundles its own vertical
15
+ * sidebar plus a kicker/title/subtitle header, which is the right shape for Settings' 13 tabs but
16
+ * would fight this screen's own `.page-header` the same way `PlaceholderTabs`'s doc comment
17
+ * describes a past `--page-flow` mismatch. `TabBar` is the horizontal, headerless primitive
18
+ * `Pages.tsx`/`ThemeExplore.tsx`-adjacent screens already use for exactly this "one page, several
19
+ * flat tabs" shape.
20
+ *
21
+ * `?tab=` deep-linking follows `SettingsUi.tsx`'s own pattern: `panels.tsx` passes `ctx.query.get
22
+ * ("tab")` in as `tabId`, an unrecognized or absent value falls back to the first tab ("overview")
23
+ * rather than rendering nothing, and switching tabs calls `navigate(..., { replace: true })` so the
24
+ * URL stays a correct deep link without growing the back-button history one entry per click.
25
+ *
26
+ * Each tab is its own top-level component/file (`OverviewTab.tsx`, `StaticSiteTab.tsx`, etc.) — kept
27
+ * separate from the start per this app's per-scope ESLint complexity gate, rather than one large
28
+ * component with four inline branches.
29
+ */
30
+ const DEPLOYMENT_TAB_IDS = ["overview", "static-site", "dockerfile", "history"];
31
+ /** Falls back to the first tab for an absent or unrecognized `?tab=` value. Delegates to the
32
+ * shared `../../lib/resolve-active-tab-id` guard `Security.tsx`/`SourceControl.tsx`/
33
+ * `Database.tsx`/`Themes.tsx` all use — same reason `SettingsUi.tsx`'s `requestedTabId` and
34
+ * `WidgetInstanceEditor`'s `?type=` both apply their own guard (a stale link or a typo must not
35
+ * blank the panel). */
36
+ function resolveDeploymentTabId({ tabId, resolveActiveTabId }, _options = {}) {
37
+ return resolveActiveTabId({ tabId: tabId, validIds: DEPLOYMENT_TAB_IDS, defaultId: "overview" });
38
+ }
39
+ /** Dispatches the one active tab's panel as a flat if-chain — same shape `ThemeExplore.tsx`'s
40
+ * `ThemeExploreMainPane`/`Database.tsx`'s `migrateForwardStep` use for the identical complexity-gate
41
+ * reason: a component's OWN cyclomatic/cognitive score counts a ternary or `&&` written directly in
42
+ * its JSX, not one delegated to a plain function like this.
43
+ * @complexity O(1) — four mutually exclusive branches, no iteration. */
44
+ function deploymentTabPanel(activeTabId, { StaticSiteTab, HistoryTab, overview, dockerfile }) {
45
+ if (activeTabId === "overview")
46
+ return _jsx(OverviewTab, { ...overview });
47
+ if (activeTabId === "static-site")
48
+ return _jsx(StaticSiteTab, {});
49
+ if (activeTabId === "dockerfile")
50
+ return _jsx(DockerfileTab, { ...dockerfile });
51
+ return _jsx(HistoryTab, {});
52
+ }
53
+ export function Deployment(props) {
54
+ const { useAdminLocaleHook, t, onTabChange, TabBar, agentHandle, resolveActiveTabId, lineIcon } = props;
55
+ // No hook file of its own — this shell owns no fetch/state (each tab owns its own), matching
56
+ // `Database.tsx`'s own carve-out for a top-level screen with nothing to inject.
57
+ const locale = useAdminLocaleHook();
58
+ const activeTabId = resolveDeploymentTabId({ tabId: props.tabId, resolveActiveTabId });
59
+ const tabs = [
60
+ {
61
+ id: "overview",
62
+ label: t({ locale: locale, key: "Overview" }),
63
+ icon: _jsx(OverviewIcon, { size: 16, lineIcon: lineIcon }),
64
+ handle: "deployment-tab-overview",
65
+ handleLabel: "Switch to the Overview tab — instance diagnostics and the Static vs. Full Site comparison",
66
+ },
67
+ {
68
+ id: "static-site",
69
+ label: t({ locale: locale, key: "Static Site" }),
70
+ icon: _jsx(StaticSiteIcon, { size: 16, lineIcon: lineIcon }),
71
+ handle: "deployment-tab-static-site",
72
+ handleLabel: "Switch to the Static Site tab — export a read-only copy of this site's published pages",
73
+ },
74
+ {
75
+ id: "dockerfile",
76
+ label: t({ locale: locale, key: "Dockerfile" }),
77
+ icon: _jsx(LayersIcon, { size: 16, lineIcon: lineIcon }),
78
+ handle: "deployment-tab-dockerfile",
79
+ handleLabel: "Switch to the Dockerfile tab — view, edit and save the repo-root Dockerfile",
80
+ },
81
+ {
82
+ id: "history",
83
+ label: t({ locale: locale, key: "History" }),
84
+ icon: _jsx(HistoryIcon, { size: 16, lineIcon: lineIcon }),
85
+ handle: "deployment-tab-history",
86
+ handleLabel: "Switch to the History tab — past builds and deploys",
87
+ },
88
+ ];
89
+ return (_jsxs("div", { className: "page", children: [_jsx("div", { className: "page-header", ...agentHandle({ handle: "deployment-header" }, {
90
+ role: "region",
91
+ label: "Deployment panel header — choose how this site gets published",
92
+ }), children: _jsxs("div", { className: "page-header-text", children: [_jsx("p", { className: "page-kicker", children: t({ locale: locale, key: "Operations" }) }), _jsx("h1", { className: "page-title", children: t({ locale: locale, key: "Deployment" }) }), _jsx("p", { className: "page-description", children: t({ locale: locale, key: "Choose how this site gets published, and see what self-hosting it involves." }) })] }) }), _jsx(TabBar, { ariaLabel: t({ locale: locale, key: "Deployment" }), tabs: tabs, activeId: activeTabId, onChange: (nextTabId) => onTabChange({ nextTabId }), containerHandle: "deployment-tab-bar" }), deploymentTabPanel(activeTabId, props)] }));
93
+ }
94
+ //# sourceMappingURL=Deployment.js.map
@@ -0,0 +1,72 @@
1
+ import type { agentHandle } from "@jini-ai/core/agent-handles";
2
+ import type { DockerfileSourceController } from "./hooks/use-dockerfile-source.hooks.js";
3
+ import { type Translate } from '@jini-ai/core/text';
4
+ /**
5
+ * @file Dockerfile tab — the repo-root `Dockerfile`'s contents, fetched from and now also written to
6
+ * `.../system/dockerfile` (the host's `server/inbound/admin-http/routes/system/dockerfile-source.ts`).
7
+ *
8
+ * ## Third pass (2026-08-15) — read-only became editable
9
+ *
10
+ * This file's own header used to say "Read-only on purpose: there is no write route" as the reason
11
+ * this tab could never save an edit. That stopped being true the same day, mid-session: the backend
12
+ * gained `PUT .../system/dockerfile` (`system.write`-gated, distinct from `GET`'s `system.read`) so
13
+ * that both a human here and the `deployment_set_dockerfile` agent tool can write the same file — but
14
+ * only the agent side got wired up at first. The AI assistant could edit the Dockerfile through its
15
+ * tool; the human owner, looking at this exact screen, could not. This pass closes that gap: the
16
+ * `<pre><code>` viewer is now a `<textarea>` bound to `useDockerfileSource`'s `draft`, with a Save
17
+ * button next to Copy/Download.
18
+ *
19
+ * The "no Dockerfile yet" empty state gained the same editor rather than staying a dead end — the
20
+ * write route creates the file if it doesn't exist (`writeDockerfileSource`'s own doc), so a human
21
+ * typing a fresh Dockerfile into this screen and clicking Save is exactly as valid as the agent tool
22
+ * calling `deployment_set_dockerfile` on a workspace with no Dockerfile yet. The illustrated
23
+ * "Not generated yet" block from the second pass stays exactly as it was, ahead of the editor, rather
24
+ * than being replaced by it — this tab still owes the reader an honest "this doesn't exist yet"
25
+ * before handing them a blank box to fill in.
26
+ *
27
+ * ## Fourth pass (2026-08-15, same day) — a save conflict gets its own surface, not a generic error
28
+ *
29
+ * `useDockerfileSource`'s `save()` now sends `snapshot`'s etag as `If-Match`, so a save based on
30
+ * stale contents (a human here and the AI assistant's `deployment_set_dockerfile` tool can both
31
+ * write this same file — Terra audit finding C5) is refused rather than silently overwriting the
32
+ * other write. That refusal reaches this component as `saveConflict`, deliberately kept separate
33
+ * from `saveError` (see `use-dockerfile-source.hooks.ts`'s own header) — `DockerfileEditorCard`
34
+ * below renders it as its OWN block, ahead of (and instead of) the plain error paragraph, showing
35
+ * the real current server contents next to the operator's still-untouched `draft` and a button that
36
+ * calls `reloadAfterConflict` to refresh `snapshot`'s etag without discarding that draft.
37
+ *
38
+ * Saving does not build, validate, or deploy anything — same as before, just now said twice: once in
39
+ * the pre-existing "Building is a terminal command…" footer line (still true, still there), and once
40
+ * in a new second line that names the Save button specifically, since a reader who has just watched
41
+ * this tab grow a Save button has a new, reasonable reason to wonder whether it also rebuilds.
42
+ *
43
+ * `useDirtyGuard` is wired for the one form of "leaving with unsaved changes" this tab can protect
44
+ * against on its own — closing or reloading the browser tab (`beforeunload`). It is deliberately NOT
45
+ * wired to `TabBar`'s own tab-switch or to sidebar navigation: `Deployment.tsx`'s `deploymentTabPanel`
46
+ * unmounts this component when the operator switches to another of the five tabs, same as leaving any
47
+ * other screen in this admin, and NO editor screen in this app guards THAT kind of navigation today
48
+ * (only in-app "back" links some screens wire individually) — extending that pattern app-wide is a
49
+ * separate, larger decision than "make this one tab editable."
50
+ */
51
+ export interface DockerfileTabProps {
52
+ useDockerfileSourceHook(): DockerfileSourceController;
53
+ download(required: {
54
+ contents: string;
55
+ }, optional?: Record<string, never>): void;
56
+ dockerfileLineCountLabel(required: {
57
+ translate: Translate;
58
+ count: number;
59
+ }, optional?: Record<string, never>): string;
60
+ agentHandle: typeof agentHandle;
61
+ lineIcon: {
62
+ viewBox: string;
63
+ fill: string;
64
+ stroke: string;
65
+ strokeWidth: number;
66
+ strokeLinecap: "round";
67
+ strokeLinejoin: "round";
68
+ "aria-hidden": true;
69
+ };
70
+ }
71
+ export declare function DockerfileTab(props: DockerfileTabProps): import("react").JSX.Element;
72
+ //# sourceMappingURL=DockerfileTab.d.ts.map
@@ -0,0 +1,131 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { LayersIcon } from "./deployment-visuals.js";
3
+ import {} from '@jini-ai/core/text';
4
+ /** How many lines the editor's current draft has. A trailing newline is not a line, hence the
5
+ * `trimEnd` — otherwise every file that ends the way text files should would report one line too
6
+ * many. Counts `draft`, not the last-saved `snapshot.contents`, so the count tracks what the
7
+ * operator is actually looking at, including unsaved edits.
8
+ * @complexity O(n) in the draft's length, once per render of an already-in-memory string. */
9
+ function countLines({ draft }, _options = {}) {
10
+ if (!draft)
11
+ return 0;
12
+ return draft.trimEnd().split("\n").length;
13
+ }
14
+ /** The "not generated yet" illustrated block — `snapshot.exists === false`. Unchanged from the
15
+ * second pass: still a composed block rather than the default `.empty-state`'s two centered grey
16
+ * sentences, because this remains a durable, truthful state of the product ("nothing here yet"),
17
+ * not a transient one. What changed is that this block no longer speaks for the whole empty case by
18
+ * itself — `dockerfileTabBody` now renders the editor card right below it, so the reader's very
19
+ * next move can be "write one." */
20
+ function DockerfileEmptyState({ t, agentHandle, lineIcon }) {
21
+ return (_jsx("div", { className: "card", ...agentHandle({ handle: "deployment-dockerfile-empty" }, {
22
+ role: "region",
23
+ label: "No Dockerfile exists yet at the repo root — write one in the editor below to create it",
24
+ }), children: _jsxs("div", { className: "deployment-empty", children: [_jsx("span", { className: "deployment-empty-mark", children: _jsx(LayersIcon, { size: 22, lineIcon: lineIcon }) }), _jsx("h2", { className: "deployment-empty-title", children: t("No Dockerfile yet") }), _jsx("p", { className: "deployment-empty-body", children: t("No Dockerfile exists at the repo root yet. Once one is added, its contents will appear here.") })] }) }));
25
+ }
26
+ /** The save-conflict banner (`412`, Terra audit finding C5) — pulled out of `DockerfileEditorCard`
27
+ * on its own so that component's own cognitive-complexity budget doesn't also have to carry this
28
+ * block's nested exists-vs-deleted branch on top of everything else it already renders
29
+ * conditionally (unsaved pill, saved confirmation, empty-state reason, Save/Copy/Download disabled
30
+ * states). Renders unconditionally once called — the caller (`DockerfileSaveStatus` below) decides
31
+ * WHETHER to render it at all. */
32
+ function DockerfileConflictBanner({ conflict, onReload, t, agentHandle, }) {
33
+ return (_jsxs("div", { className: "notice error", role: "alert", ...agentHandle({ handle: "deployment-dockerfile-conflict" }, {
34
+ role: "status",
35
+ label: "Shows that the Dockerfile changed on the server since it was last loaded, with the current contents to compare against",
36
+ }), children: [_jsx("p", { children: t("Someone else saved a different version of this Dockerfile while you were editing — your changes below were NOT saved.") }), conflict.exists ? (_jsxs(_Fragment, { children: [_jsx("p", { children: t("Its current contents on the server are:") }), _jsx("pre", { className: "deployment-dockerfile-conflict-contents", children: conflict.contents })] })) : (_jsx("p", { children: t("It was deleted on the server.") })), _jsx("p", { children: t("Your own edits below are untouched. Compare them against the current contents above, reconcile by hand, then Save again.") }), _jsx("button", { type: "button", onClick: onReload, ...agentHandle({ handle: "deployment-dockerfile-conflict-reload" }, {
37
+ role: "button",
38
+ label: "Reloads the current version from the server so the next Save is checked against it — does not discard your own edits",
39
+ }), children: t("Load the current version") })] }));
40
+ }
41
+ /** Whichever ONE status banner belongs above the textarea, if any: a save conflict takes
42
+ * precedence over — and renders INSTEAD OF — a generic save error, even though `saveMutation`'s own
43
+ * error state briefly held the same rejection (see `use-dockerfile-source.hooks.ts`'s header for
44
+ * why the hook already resets that error state itself on a conflict, so in practice the two are
45
+ * never simultaneously set; this precedence is the belt to that suspenders). A flat dispatch
46
+ * function rather than a ternary chain inline in `DockerfileEditorCard`'s own JSX, same
47
+ * complexity-gate reasoning `dockerfileTabBody` already documents for its own two-shape dispatch. */
48
+ function DockerfileSaveStatus({ saveConflict, saveError, onReloadAfterConflict, t, agentHandle, }) {
49
+ if (saveConflict)
50
+ return _jsx(DockerfileConflictBanner, { conflict: saveConflict, onReload: onReloadAfterConflict, t: t, agentHandle: agentHandle });
51
+ if (saveError)
52
+ return (_jsx("p", { className: "save-error", role: "alert", ...agentHandle({ handle: "deployment-dockerfile-save-error" }, {
53
+ role: "status",
54
+ label: "Shows the error message when saving the Dockerfile failed",
55
+ }), children: saveError }));
56
+ return null;
57
+ }
58
+ /** The editable Dockerfile card: Copy/Download/Save actions, the line count, an "unsaved changes"
59
+ * pill, and the textarea itself — the one card that renders in BOTH the "exists" and "doesn't exist
60
+ * yet" cases (see `dockerfileTabBody`), since the write route makes both cases the same underlying
61
+ * action (replace the file's bytes with `draft`). */
62
+ function DockerfileEditorCard({ exists, draft, setDraft, isDirty, saving, saveError, saveConflict, saved, copied, onCopy, onSave, onReloadAfterConflict, t, download, dockerfileLineCountLabel, agentHandle, }) {
63
+ // Copy/Download act on `draft` — see `use-dockerfile-source.hooks.ts`'s header for why the copy
64
+ // handler itself reads `draft` rather than the last-saved `snapshot`. There is nothing worth
65
+ // copying or downloading out of an empty, untouched box, so both are disabled on a blank draft
66
+ // rather than handing the operator an empty file with no feedback about why.
67
+ const hasContent = draft.length > 0;
68
+ return (_jsxs("div", { className: "card", ...agentHandle({ handle: "deployment-dockerfile-editor-card" }, {
69
+ role: "region",
70
+ label: "Dockerfile editor — view, edit, copy, download and save the repo-root Dockerfile's contents",
71
+ }), children: [_jsxs("div", { className: "card-head", children: [_jsx("h2", { className: "card-title", children: t("Dockerfile") }), _jsx(DockerfileEditorActions, { draft: draft, hasContent: hasContent, isDirty: isDirty, saved: saved, copied: copied, saving: saving, onCopy: onCopy, onSave: onSave, t: t, download: download, dockerfileLineCountLabel: dockerfileLineCountLabel, agentHandle: agentHandle })] }), _jsxs("div", { className: "deployment-card-body", children: [!exists ? (_jsx("p", { className: "deployment-action-reason", children: t("No Dockerfile exists yet. Write one below, then save to create it.") })) : null, _jsx(DockerfileSaveStatus, { saveConflict: saveConflict, saveError: saveError, onReloadAfterConflict: onReloadAfterConflict, t: t, agentHandle: agentHandle }), _jsx("textarea", { className: "deployment-dockerfile-editor", value: draft, onChange: (e) => setDraft(e.target.value), spellCheck: false, translate: "no", "aria-label": t("Dockerfile contents"), ...agentHandle({ handle: "deployment-dockerfile-textarea" }, {
72
+ role: "field",
73
+ label: "The Dockerfile's contents, editable — changes are not saved until Save is clicked",
74
+ }) }), _jsx("p", { className: "deployment-action-reason", children: t("Building is a terminal command (docker build …), not a button here.") }), _jsx("p", { className: "deployment-action-reason", children: t("Saving here only replaces the file's contents — it does not build or deploy anything.") })] })] }));
75
+ }
76
+ function DockerfileEditorActions({ draft, hasContent, isDirty, saved, copied, saving, onCopy, onSave, t, download, dockerfileLineCountLabel, agentHandle }) {
77
+ return (_jsxs("div", { className: "card-head-actions", children: [_jsx("span", { className: "deployment-provider-cost", children: dockerfileLineCountLabel({ translate: t, count: countLines({ draft }) }) }), isDirty ? (_jsx("span", { className: "status status-warning", ...agentHandle({ handle: "deployment-dockerfile-unsaved" }, {
78
+ role: "status",
79
+ label: "Indicates the Dockerfile draft has unsaved changes",
80
+ }), children: t("Unsaved changes") })) : null, saved ? (_jsx("span", { className: "save-ok", ...agentHandle({ handle: "deployment-dockerfile-saved" }, {
81
+ role: "status",
82
+ label: "Confirms the Dockerfile was just saved successfully",
83
+ }), children: t("Saved") })) : null, _jsx("button", { type: "button", className: "btn-secondary", onClick: onCopy, disabled: !hasContent, ...agentHandle({ handle: "deployment-dockerfile-copy" }, {
84
+ role: "button",
85
+ label: "Copy the Dockerfile's current draft contents to the clipboard",
86
+ }), children: _jsx("span", { "aria-live": "polite", children: copied ? t("Copied!") : t("Copy") }) }), _jsx("button", { type: "button", className: "btn-secondary", onClick: () => download({ contents: draft }), disabled: !hasContent, ...agentHandle({ handle: "deployment-dockerfile-download" }, {
87
+ role: "button",
88
+ label: "Download the Dockerfile's current draft contents as a file named Dockerfile",
89
+ }), children: t("Download") }), _jsx("button", { type: "button", onClick: onSave, disabled: saving, ...agentHandle({ handle: "deployment-dockerfile-save" }, {
90
+ role: "button",
91
+ label: "Save the Dockerfile's current draft — creates the file if it doesn't exist yet. " +
92
+ "Does not build or deploy anything.",
93
+ }), children: saving ? t("Saving…") : t("Save") })] }));
94
+ }
95
+ export function DockerfileTab(props) {
96
+ const { useDockerfileSourceHook, download, dockerfileLineCountLabel, agentHandle, lineIcon } = props;
97
+ const { snapshot, draft, setDraft, isDirty, error, saving, saveError, saveConflict, reloadAfterConflict, saved, copied, copy, save, t, } = useDockerfileSourceHook();
98
+ if (error && !snapshot)
99
+ return (_jsx("div", { className: "notice error", ...agentHandle({ handle: "deployment-dockerfile-load-error" }, {
100
+ role: "status",
101
+ label: "Shows the error message when loading the Dockerfile failed",
102
+ }), children: error }));
103
+ if (!snapshot)
104
+ return _jsx("div", { className: "notice", children: t("Loading Dockerfile…") });
105
+ return (_jsxs("div", { className: "deployment-tab", children: [error ? (_jsx("div", { className: "notice error", ...agentHandle({ handle: "deployment-dockerfile-load-error" }, {
106
+ role: "status",
107
+ label: "Shows the error message when loading the Dockerfile failed",
108
+ }), children: error })) : null, dockerfileTabBody(snapshot, {
109
+ draft,
110
+ setDraft,
111
+ isDirty,
112
+ saving,
113
+ saveError,
114
+ saveConflict,
115
+ saved,
116
+ copied,
117
+ onCopy: () => void copy(),
118
+ onSave: () => void save(),
119
+ onReloadAfterConflict: () => void reloadAfterConflict(),
120
+ t,
121
+ download, dockerfileLineCountLabel, agentHandle, lineIcon,
122
+ })] }));
123
+ }
124
+ /** Dispatches the loaded snapshot's two shapes (missing vs. present) as a flat function rather than
125
+ * a ternary inline in `DockerfileTab`'s own JSX — same complexity-gate reasoning
126
+ * `Deployment.tsx`'s `deploymentTabPanel` documents. The editor card renders in BOTH shapes now (see
127
+ * `DockerfileEditorCard`'s own doc); only the illustrated empty-state block is conditional. */
128
+ function dockerfileTabBody(snapshot, editor) {
129
+ return (_jsxs(_Fragment, { children: [!snapshot.exists ? _jsx(DockerfileEmptyState, { t: editor.t, agentHandle: editor.agentHandle, lineIcon: editor.lineIcon }) : null, _jsx(DockerfileEditorCard, { exists: snapshot.exists, ...editor })] }));
130
+ }
131
+ //# sourceMappingURL=DockerfileTab.js.map
@@ -0,0 +1,43 @@
1
+ import type { ReactNode } from "react";
2
+ import type { AgentHandleOptions, AgentHandleProps } from "@jini-ai/core/agent-handles";
3
+ /**
4
+ * @file History tab — a real empty state, no fake data. There is no builds/deploys backend this
5
+ * screen can reach. The Full Site tab and never-written deployment table reader were retired
6
+ * on 2026-10-03; this placeholder does not fetch plugin deploys or static publish history.
7
+ *
8
+ * ## Second pass (2026-08-15) — what changed and why
9
+ *
10
+ * It was two grey sentences centered in a tall blank card. That is what `.empty-state` gives you,
11
+ * and it is the right default for a list that merely happens to be empty right now — Media with
12
+ * nothing uploaded, Integrations with no webhooks. This tab is a different thing: the feature does
13
+ * not exist yet, and it will not fill up by itself. An empty state for a durable condition has to
14
+ * do more than say "nothing here", or it reads as an unfinished screen rather than an honest one.
15
+ *
16
+ * So: a mark, a title, one sentence saying what WOULD appear here, and a real next step pointing at
17
+ * the thing that does exist today. What it deliberately does NOT do is draw an empty table header,
18
+ * a filter bar, or a set of placeholder rows — scaffolding for data that has never existed would
19
+ * imply a capability this instance does not have.
20
+ */
21
+ export interface HistoryTabProps {
22
+ readonly classes: {
23
+ readonly tab: string;
24
+ readonly card: string;
25
+ readonly empty: string;
26
+ readonly mark: string;
27
+ readonly title: string;
28
+ readonly body: string;
29
+ readonly secondaryButton: string;
30
+ };
31
+ useAdminLocaleHook: (required: Record<string, never>, optional?: Record<string, never>) => string;
32
+ t: (required: {
33
+ locale: string;
34
+ key: string;
35
+ }, optional?: Record<string, never>) => string;
36
+ historyIcon: ReactNode;
37
+ publishHref: string;
38
+ agentHandle: (required: {
39
+ handle: string;
40
+ }, optional?: AgentHandleOptions) => AgentHandleProps;
41
+ }
42
+ export declare function HistoryTab({ useAdminLocaleHook, t, historyIcon, publishHref, agentHandle, classes }: HistoryTabProps): import("react").JSX.Element;
43
+ //# sourceMappingURL=HistoryTab.d.ts.map
@@ -0,0 +1,12 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ export function HistoryTab({ useAdminLocaleHook, t, historyIcon, publishHref, agentHandle, classes }) {
3
+ const locale = useAdminLocaleHook({});
4
+ return (_jsx("div", { className: classes.tab, children: _jsx("div", { className: classes.card, ...agentHandle({ handle: "deployment-history-empty" }, {
5
+ role: "region",
6
+ label: "No deploys yet — history has nothing to show because no host is wired up to deploy from",
7
+ }), children: _jsxs("div", { className: classes.empty, children: [_jsx("span", { className: classes.mark, children: historyIcon }), _jsx("h2", { className: classes.title, children: t({ locale: locale, key: "No deploys yet" }) }), _jsx("p", { className: classes.body, children: t({ locale: locale, key: "Nothing has been deployed from this screen — and nothing can be yet. Once a host is wired up, every build and deploy will be listed here with its outcome." }) }), _jsx("a", { className: classes.secondaryButton, href: publishHref, ...agentHandle({ handle: "deployment-history-publish-link" }, {
8
+ role: "link",
9
+ label: "Open the Static Site tab to see how to publish today",
10
+ }), children: t({ locale: locale, key: "See how to publish today" }) })] }) }) }));
11
+ }
12
+ //# sourceMappingURL=HistoryTab.js.map
@@ -0,0 +1,60 @@
1
+ import type { agentHandle } from "@jini-ai/core/agent-handles";
2
+ import type { DeploymentOverviewSnapshot } from "@jini-ai/core/contracts/site/cms-system-deploy";
3
+ import type { DeploymentOverviewController } from "./use-deployment-overview.hooks.js";
4
+ import { type DeploymentCapability } from "./rules.js";
5
+ /**
6
+ * @file Overview tab — the screen's actual "which path" moment, above how THIS instance happens to
7
+ * be running right now. Every diagnostic value here is either `AdminDeploymentOverview` (read live
8
+ * from `GET .../system/deployment-overview`, see `host server app/src/server/inbound/admin-http/routes/system/deployment-
9
+ * overview.ts`) or a translated label derived from it by `rules.ts`'s pure helpers — nothing on
10
+ * this tab is invented.
11
+ *
12
+ * ## Second pass (2026-08-15) — what changed and why
13
+ *
14
+ * The first pass put the two paths side by side, which was the right call and stays. What it did
15
+ * not do was make them COMPARABLE: two cards, one sentence each, in prose. A reader still had to
16
+ * hold "no checkout, no admin online, no assistant" in their head and diff it against "admin,
17
+ * assistant, checkout, everything works" to see what they were choosing between. {@link
18
+ * CapabilityList} turns that into four aligned rows with a ✓/✗ per path, so the difference is a
19
+ * shape rather than a reading-comprehension exercise. No new claim is made — `rules.ts`'s
20
+ * `STATIC_SITE_CAPABILITIES` is that same warning sentence, itemized, and its own doc comment
21
+ * records the source for each row.
22
+ *
23
+ * Headings are `.card-title`, not bare `<h2>`. That primitive exists in `styles.css` (~L744) for
24
+ * exactly this, and its own comment measured the defect this tab shipped: a bare `<h2>` in a
25
+ * `.card` renders at the UA default 24px against a 26.4px `.page-title` — "not a hierarchy step,
26
+ * it is a near-tie" — plus a stray 19.92px UA margin. Six such headings across five tabs is most of
27
+ * why the panel read as a stack of equally loud boxes.
28
+ *
29
+ * The diagnostics no longer use `.field`/`.field-row`. `.field` is `display: flex; flex-direction:
30
+ * column`, so a `.status` pill placed directly inside one stretches to the full column width — the
31
+ * "Local" pill measured ~400px wide at a 1440px viewport, which is what made this section look
32
+ * unfinished. `.deployment-fact` is the same label-over-value shape with the pill hugging its text.
33
+ *
34
+ * Links to the sibling tabs stay plain `<a href="/admin/deployment?tab=...">` — the established
35
+ * internal-link idiom (`installInternalLinkInterceptor`, `@jini-ai/admin/browser`), so cmd-click,
36
+ * middle-click and copy-link all keep working.
37
+ */
38
+ export interface OverviewTabProps {
39
+ useDeploymentOverviewHook(): DeploymentOverviewController<DeploymentOverviewSnapshot>;
40
+ staticSiteCapabilities: readonly DeploymentCapability[];
41
+ fullSiteCapabilities: readonly DeploymentCapability[];
42
+ envVarNotes: Readonly<Record<string, string>>;
43
+ unsafeOwnerPasswordVar: string;
44
+ copy: {
45
+ fullSiteGetLine: string;
46
+ unsafeOwnerPasswordLabel: string;
47
+ };
48
+ agentHandle: typeof agentHandle;
49
+ lineIcon: {
50
+ viewBox: string;
51
+ fill: string;
52
+ stroke: string;
53
+ strokeWidth: number;
54
+ strokeLinecap: "round";
55
+ strokeLinejoin: "round";
56
+ "aria-hidden": true;
57
+ };
58
+ }
59
+ export declare function OverviewTab(props: OverviewTabProps): import("react").JSX.Element;
60
+ //# sourceMappingURL=OverviewTab.d.ts.map
@@ -0,0 +1,75 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { daemonStatusLabelKey, deploymentEnvVarNoteKey, envVarStatusLabelKey, isEnvVarRowUnsafe, ownerPasswordLabelKey, productionGateLabelKey, runtimeModeLabelKey, } from "./rules.js";
3
+ import { CapabilityList, FullSiteIcon, StaticSiteIcon } from "./deployment-visuals.js";
4
+ import {} from '@jini-ai/core/text';
5
+ /** One path-choice card: identifying icon, name, an honest one-word availability pill, the promise,
6
+ * the capability comparison, and a footer holding the caveat above the link to that path's own tab.
7
+ * The footer is pushed to the card's bottom edge by CSS so both cards' links land on the same
8
+ * baseline even when one capability list runs longer. */
9
+ function OverviewPathCard({ icon, heading, statusLabel, getLine, capabilities, costLine, detailsHref, detailsLabel, cardHandleId, detailsHandleId, t, agentHandle, lineIcon, }) {
10
+ return (_jsxs("div", { className: "card deployment-path-card", ...agentHandle({ handle: cardHandleId }, {
11
+ role: "region",
12
+ label: `${heading} path card — availability, what it gives you, capability comparison, and a link to its own tab`,
13
+ }), children: [_jsxs("div", { className: "deployment-path-head", children: [_jsx("span", { className: "deployment-path-icon", children: icon }), _jsx("h2", { className: "card-title", children: heading }), _jsx("span", { className: "status status-neutral", children: statusLabel })] }), _jsx("p", { className: "card-lead", children: getLine }), _jsx(CapabilityList, { rows: capabilities, t: t, lineIcon: lineIcon }), _jsxs("div", { className: "deployment-path-foot", children: [_jsx("p", { className: "deployment-action-reason", children: costLine }), _jsx("a", { className: "btn-secondary", href: detailsHref, ...agentHandle({ handle: detailsHandleId }, { role: "link", label: `Open details for ${heading}` }), children: detailsLabel })] })] }));
14
+ }
15
+ /** The two-path comparison — see this file's header for why it leads the tab.
16
+ *
17
+ * Both availability pills are `status-neutral`, deliberately. "Available here" is not a success
18
+ * state and "Not wired up yet" is not a failure, so neither earns `status-ok`/`status-warning`;
19
+ * the words carry the difference, which is also what keeps the distinction legible without color
20
+ * perception. "Available here" (was "Available from a terminal") because the Static Site tab's
21
+ * Build static export button runs the export from this admin; the terminal is no longer the only way. */
22
+ function OverviewPathChoice({ t, staticSiteCapabilities, fullSiteCapabilities, copy, agentHandle, lineIcon }) {
23
+ // Full Site tab retired; Dockerfile remains the live server packaging surface.
24
+ return (_jsxs("div", { className: "deployment-path-grid", children: [_jsx(OverviewPathCard, { icon: _jsx(StaticSiteIcon, { lineIcon: lineIcon }), heading: t("Static Site"), statusLabel: t("Available here"), getLine: t("A fast, read-only copy of this site's published pages — no server behind it."), capabilities: staticSiteCapabilities, costLine: t("Runs on any static host, including free ones. Nothing dynamic survives the export."), detailsHref: "/admin/deployment?tab=static-site", detailsLabel: t("View Static Site details"), cardHandleId: "deployment-overview-static-path-card", detailsHandleId: "deployment-overview-static-details-link", t: t, agentHandle: agentHandle, lineIcon: lineIcon }), _jsx(OverviewPathCard, { icon: _jsx(FullSiteIcon, { lineIcon: lineIcon }), heading: t("Full Site"), statusLabel: t("Not wired up yet"), getLine: t(copy.fullSiteGetLine), capabilities: fullSiteCapabilities, costLine: t("Needs a host to run on — provider setup is planned, not wired up yet."), detailsHref: "/admin/deployment?tab=dockerfile", detailsLabel: t("View the Dockerfile"), cardHandleId: "deployment-overview-full-path-card", detailsHandleId: "deployment-overview-full-details-link", t: t, agentHandle: agentHandle, lineIcon: lineIcon })] }));
25
+ }
26
+ /** One label-over-value diagnostic cell. `children` rather than a `value` string so the same cell
27
+ * shape holds either a status pill or a verbatim `<code>` path — two different renderings of the
28
+ * same "here is one fact about this instance" row, which is why they share a component instead of
29
+ * each having their own. */
30
+ function OverviewFact({ label, children }) {
31
+ return (_jsxs("div", { className: "deployment-fact", children: [_jsx("span", { className: "deployment-fact-label", children: label }), _jsx("span", { className: "deployment-fact-value", children: children })] }));
32
+ }
33
+ /** A filesystem path, shown verbatim. `translate="no"` so a machine translator leaves it alone — a
34
+ * path is an identifier, not prose (Web Interface Guidelines: "brand names, code tokens,
35
+ * identifiers: wrap with `translate=\"no\"`"). Wrapping is `overflow-wrap: anywhere` in CSS
36
+ * because an absolute path has no spaces to break at, and at 390px an unbreakable one is what
37
+ * pushes the whole page into horizontal scroll. */
38
+ function OverviewPathValue({ path }) {
39
+ return _jsx("code", { translate: "no", children: path });
40
+ }
41
+ /** One environment-variable row: name, Set/Not set pill, and the one-line note explaining what
42
+ * happens when it's absent (`deploymentEnvVarNoteKey`, `rules.ts`). */
43
+ function OverviewEnvVarRow({ varStatus, t, envVarNotes, unsafeOwnerPasswordVar }) {
44
+ const unsafe = isEnvVarRowUnsafe({ varStatus, unsafeOwnerPasswordVar });
45
+ const setTone = varStatus.set ? "ok" : "neutral";
46
+ const tone = unsafe ? "warning" : setTone;
47
+ return (_jsxs("li", { className: "deployment-env-row", children: [_jsxs("div", { className: "deployment-env-head", children: [_jsx("span", { className: "deployment-env-name", translate: "no", children: varStatus.name }), _jsx("span", { className: `status status-${tone}`, children: t(envVarStatusLabelKey({ varStatus })) })] }), _jsx("p", { className: "deployment-env-note", children: t(deploymentEnvVarNoteKey({ name: varStatus.name, envVarNotes })) })] }));
48
+ }
49
+ /** The loaded snapshot's body — split from `OverviewTab` so the loading/error early returns there
50
+ * stay flat guard clauses, same shape `Database.tsx`'s section components use. */
51
+ function OverviewSnapshotBody({ snapshot, t, agentHandle, envVarNotes, unsafeOwnerPasswordVar, copy }) {
52
+ return (_jsxs(_Fragment, { children: [_jsxs("div", { className: "card", ...agentHandle({ handle: "deployment-overview-instance-facts" }, {
53
+ role: "region",
54
+ label: "How this instance is running — runtime mode, readiness gate, owner password, agent daemon, and file paths",
55
+ }), children: [_jsx("div", { className: "card-head", children: _jsx("h2", { className: "card-title", children: t("How this instance is running") }) }), _jsxs("div", { className: "deployment-facts", children: [_jsx(OverviewFact, { label: t("Runtime mode"), children: _jsx("span", { className: "status status-neutral", children: t(runtimeModeLabelKey({ mode: snapshot.mode })) }) }), _jsx(OverviewFact, { label: t("Production readiness gate"), children: _jsx("span", { className: `status status-${snapshot.productionReadinessGate.applicable ? "ok" : "neutral"}`, children: t(productionGateLabelKey({ gate: snapshot.productionReadinessGate })) }) }), _jsx(OverviewFact, { label: t("Owner password"), children: _jsx("span", { className: `status status-${snapshot.defaultOwnerPasswordUnsafe ? "warning" : "ok"}`, children: t(ownerPasswordLabelKey({ defaultOwnerPasswordUnsafe: snapshot.defaultOwnerPasswordUnsafe, copy })) }) }), _jsx(OverviewFact, { label: t("Agent daemon"), children: _jsx("span", { className: `status status-${snapshot.daemonKnownFailed ? "warning" : "ok"}`, children: t(daemonStatusLabelKey({ daemonKnownFailed: snapshot.daemonKnownFailed })) }) }), _jsx(OverviewFact, { label: t("Database file"), children: _jsx(OverviewPathValue, { path: snapshot.dbPath }) }), _jsx(OverviewFact, { label: t("Uploads folder"), children: _jsx(OverviewPathValue, { path: snapshot.uploadsDir }) })] })] }), _jsxs("div", { className: "card", ...agentHandle({ handle: "deployment-overview-env-vars" }, {
56
+ role: "region",
57
+ label: "Environment variables this instance reads, with each one's Set/Not set state and what happens when it's absent",
58
+ }), children: [_jsx("div", { className: "card-head", children: _jsx("h2", { className: "card-title", children: t("Environment variables") }) }), _jsx("ul", { className: "deployment-env-list", children: snapshot.envVars.map((varStatus) => (_jsx(OverviewEnvVarRow, { varStatus: varStatus, t: t, envVarNotes: envVarNotes, unsafeOwnerPasswordVar: unsafeOwnerPasswordVar }, varStatus.name))) })] })] }));
59
+ }
60
+ /** The current-instance diagnostics half of the tab — same guard-clause shape this function always
61
+ * had, just pulled out of `OverviewTab` so `OverviewPathChoice` above it can render unconditionally
62
+ * (this dispatcher's own early returns would otherwise skip it during loading/error too). */
63
+ function OverviewDiagnostics({ snapshot, error, t, agentHandle, envVarNotes, unsafeOwnerPasswordVar, copy, }) {
64
+ if (error && !snapshot)
65
+ return _jsx("div", { className: "notice error", children: error });
66
+ if (!snapshot)
67
+ return _jsx("div", { className: "notice", children: t("Loading deployment status…") });
68
+ return (_jsxs(_Fragment, { children: [error ? _jsx("div", { className: "notice error", children: error }) : null, _jsx(OverviewSnapshotBody, { snapshot: snapshot, t: t, agentHandle: agentHandle, envVarNotes: envVarNotes, unsafeOwnerPasswordVar: unsafeOwnerPasswordVar, copy: copy })] }));
69
+ }
70
+ export function OverviewTab(props) {
71
+ const { useDeploymentOverviewHook, staticSiteCapabilities, fullSiteCapabilities, envVarNotes, unsafeOwnerPasswordVar, copy, agentHandle, lineIcon } = props;
72
+ const { snapshot, error, t } = useDeploymentOverviewHook();
73
+ return (_jsxs("div", { className: "deployment-tab", children: [_jsx(OverviewPathChoice, { t: t, staticSiteCapabilities: staticSiteCapabilities, fullSiteCapabilities: fullSiteCapabilities, copy: copy, agentHandle: agentHandle, lineIcon: lineIcon }), _jsx(OverviewDiagnostics, { snapshot: snapshot, error: error, t: t, agentHandle: agentHandle, envVarNotes: envVarNotes, unsafeOwnerPasswordVar: unsafeOwnerPasswordVar, copy: copy })] }));
74
+ }
75
+ //# sourceMappingURL=OverviewTab.js.map
@@ -3,6 +3,10 @@
3
3
  * Sites Export tab's Publish list (one copy, so both read a settled run the same way).
4
4
  */
5
5
  export interface PublishRunResultProps {
6
+ readonly classes: {
7
+ readonly success: string;
8
+ readonly error: string;
9
+ };
6
10
  run: {
7
11
  status: 'idle' | 'running' | 'completed' | 'errored';
8
12
  result?: {
@@ -20,5 +24,5 @@ export interface PublishRunResultProps {
20
24
  linkHandle: string;
21
25
  }
22
26
  /** A publish run's completed/errored detail — the live URL on success, or the failure message. */
23
- export declare function PublishRunResult({ run, publishedLabel, linkLabel, linkHandle }: PublishRunResultProps): import("react").JSX.Element | null;
27
+ export declare function PublishRunResult({ run, publishedLabel, linkLabel, linkHandle, classes }: PublishRunResultProps): import("react").JSX.Element | null;
24
28
  //# sourceMappingURL=PublishRunResult.d.ts.map
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { agentHandle } from "@jini-ai/core/agent-handles";
3
3
  /** A publish run's completed/errored detail — the live URL on success, or the failure message. */
4
- export function PublishRunResult({ run, publishedLabel, linkLabel, linkHandle }) {
4
+ export function PublishRunResult({ run, publishedLabel, linkLabel, linkHandle, classes }) {
5
5
  if (run.status !== "completed" && run.status !== "errored")
6
6
  return null;
7
7
  // `result` can be present at EITHER terminal status — `publish-site.ts`'s own trigger route maps
@@ -13,12 +13,12 @@ export function PublishRunResult({ run, publishedLabel, linkLabel, linkHandle })
13
13
  // settles to `status: "errored"` with a full `result.message`, not an empty `run.error`.
14
14
  if (run.result) {
15
15
  if (!run.result.ok) {
16
- return (_jsx("p", { className: "save-error", role: "alert", children: run.result.message }));
16
+ return (_jsx("p", { className: classes.error, role: "alert", children: run.result.message }));
17
17
  }
18
- return (_jsxs("p", { className: "save-ok", children: [publishedLabel, " ", _jsx("a", { href: run.result.url, target: "_blank", rel: "noreferrer", translate: "no", ...agentHandle({ handle: linkHandle }, { role: "link", label: linkLabel }), children: run.result.url })] }));
18
+ return (_jsxs("p", { className: classes.success, children: [publishedLabel, " ", _jsx("a", { href: run.result.url, target: "_blank", rel: "noreferrer", translate: "no", ...agentHandle({ handle: linkHandle }, { role: "link", label: linkLabel }), children: run.result.url })] }));
19
19
  }
20
20
  if (run.error) {
21
- return _jsx("p", { className: "save-error", role: "alert", children: run.error });
21
+ return _jsx("p", { className: classes.error, role: "alert", children: run.error });
22
22
  }
23
23
  return null;
24
24
  }
@@ -0,0 +1,22 @@
1
+ import type { SiteUpdateStatusReply } from '@jini-ai/core/contracts/site/devops-deploy';
2
+ import type { ComponentType, ReactNode } from 'react';
3
+ export interface SiteUpdateNoticeProps {
4
+ kit: {
5
+ components: {
6
+ Notice: ComponentType<{
7
+ children: ReactNode;
8
+ tone?: 'info' | 'success' | 'warning' | 'danger';
9
+ }>;
10
+ };
11
+ };
12
+ useSiteUpdateStatusHook: (required: Record<string, never>, optional?: Record<string, never>) => SiteUpdateStatusReply | null;
13
+ copy: {
14
+ updateAvailable: (required: {
15
+ latest: string;
16
+ runningVersion: string;
17
+ }, optional?: Record<string, never>) => string;
18
+ releaseNotes: string;
19
+ };
20
+ }
21
+ export declare function SiteUpdateNotice(required: SiteUpdateNoticeProps, _optional?: Record<string, never>): ReactNode;
22
+ //# sourceMappingURL=SiteUpdateNotice.d.ts.map