@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,314 @@
1
+ import { trimChars } from "@jini-ai/core/primitives";
2
+ /**
3
+ * @file Pure data and computation for the Deployment panel — no React, no fetch, no `t()` calls
4
+ * (every function here returns a DICTIONARY KEY for a caller to translate, same convention
5
+ * `use-page-editor.hooks.ts`'s `themeExploreSaveLabel`-style helpers follow elsewhere in this app).
6
+ * Kept separate from the five tab components per this app's `rules.ts`-holds-the-logic convention
7
+ * (see `integrations/rules.ts`, `recovery/rules.ts`).
8
+ */
9
+ /** The Static Site tab's export-status name on `lib/content-refresh-bus.ts` — see
10
+ * `taxonomy/rules.ts`'s `TAXONOMY_RESOURCE` for why this is a plain colocated constant rather than
11
+ * a shared registry. Agent-writable via `deployment_trigger_export`
12
+ * (the host's `features/deployments/agent-tools.ts`), which starts a run this tab polls.
13
+ * `use-static-export.hooks.ts`'s own header explains why the refresh is a bespoke re-fetch rather
14
+ * than the usual `useInvalidate()` one-liner — `run` seeds once and is never re-derived from the
15
+ * query afterward. There is deliberately NO sibling constant for `use-dockerfile-source.hooks.ts`:
16
+ * that tab holds a live, editable `draft` protected by its own etag/412-conflict machinery
17
+ * (`deployment_set_dockerfile` is the exact write that machinery exists to detect), and a
18
+ * bus-driven reload would either be inert against its one-shot seed guard or reintroduce the
19
+ * draft-clobber risk that guard prevents — see that hook's own file header. */
20
+ export const DEPLOYMENT_EXPORT_RESOURCE = "deployment-export";
21
+ /**
22
+ * The single fixed label every connection saved through the flat per-provider credential list uses
23
+ * (2026-08-15 redesign) — the server's `publish_credential_sets` table still enforces a UNIQUE
24
+ * `(workspace_id, provider_id, label)`, so a label is still written on every create, it is just never
25
+ * shown or typed by an operator anymore. Because the deploy registry names each target at most once, `(provider_id, "default")` can
26
+ * never collide with itself within one workspace — see `use-publish-credentials.hooks.ts`'s header for
27
+ * why a save only ever CREATES with this label when the provider has no saved connection yet, and
28
+ * UPDATEs the existing one (by id, keeping whatever label it already has) otherwise.
29
+ */
30
+ export const PUBLISH_CREDENTIAL_ROW_LABEL = "default";
31
+ /**
32
+ * Every saved credential for one provider, in the order the server returned them.
33
+ * @complexity O(n) in this workspace's total saved-credential count (small — see
34
+ * `VendorCredentialSetRepoPort.listByWorkspace`'s own doc for why no cap is needed).
35
+ */
36
+ export function credentialsForProvider({ credentials, providerId }, _optional = {}) {
37
+ return credentials.filter((credential) => credential.providerId === providerId);
38
+ }
39
+ /**
40
+ * Which saved connection (if any) a provider's flat credential row should treat as "connected" — the
41
+ * group's DEFAULT row, which is also the exact row `resolveDefaultForPublish`/
42
+ * `composePublishCredentialSource` (server-side `static-publish/credentials.ts`) actually publishes
43
+ * with, so the row's own status can never claim "connected" for a saved credential a real publish
44
+ * would not use. Falls back to the first saved row only as a defensive read for data saved before
45
+ * this UI existed — the store's own write-path invariant (`decideCreateDefault`) guarantees at most
46
+ * one row is ever marked default once any exist for a provider, so this fallback is unreachable
47
+ * against data this UI itself ever wrote.
48
+ * @complexity O(n) in this provider's own (small) saved-connection count.
49
+ */
50
+ export function defaultCredentialForProvider({ credentials, providerId }, _optional = {}) {
51
+ const forProvider = credentialsForProvider({ credentials, providerId });
52
+ return forProvider.find((credential) => credential.isDefault) ?? forProvider[0];
53
+ }
54
+ /**
55
+ * The saved-credential list as it stands once the server has confirmed `promoted` as its provider's
56
+ * default: that row replaced by the server's own summary, every OTHER row for the same provider
57
+ * un-defaulted (the store's "`isDefault: true` always wins" rule), other providers untouched. Applied
58
+ * only after the write has resolved — never optimistically — so it restates what the server did
59
+ * rather than guessing ahead of it.
60
+ *
61
+ * Generic over any credential-summary shape carrying `id`/`providerId`/`isDefault` — both
62
+ * `AdminPublishCredentialSummary` and `AdminSourceControlCredentialSummary` satisfy it field-for-
63
+ * field, so the Security page's Access Tokens tab (`security/hooks/use-access-tokens.hooks.ts`'s
64
+ * `makeDefault`) reuses this verbatim rather than reimplementing the same "promotion confirmed, list
65
+ * stays honest even if the follow-up reconcile refetch fails" fix this hook already needed (terra
66
+ * review 2026-09-20).
67
+ * @complexity O(n) in the credential list's own length.
68
+ */
69
+ export function withPromotedDefault({ credentials, promoted }, _optional = {}) {
70
+ return credentials.map((credential) => {
71
+ if (credential.id === promoted.id)
72
+ return promoted;
73
+ if (credential.providerId !== promoted.providerId)
74
+ return credential;
75
+ return { ...credential, isDefault: false };
76
+ });
77
+ }
78
+ /** The descriptor for `id`, or `undefined` while the list loads or when the id is not listed.
79
+ * @complexity O(t) in the (small) target count. */
80
+ export function publishTargetById({ targets, id }, _options = {}) {
81
+ return targets?.find((target) => target.id === id);
82
+ }
83
+ /** Whether every field `fields` marks required has a non-blank value in `values` — the one
84
+ * readiness rule both the publish form (config fields) and the credential form (credential fields)
85
+ * use, mirroring the server's own descriptor validation so a button never enables for a request
86
+ * the server would refuse on shape alone. @complexity O(f). */
87
+ export function requiredFieldsFilled({ fields, values }, _optional = {}) {
88
+ return fields.every((field) => !field.required || (values[field.name] ?? "").trim() !== "");
89
+ }
90
+ /** The declared fields' values, trimmed, with blank ones dropped — so a blank optional field (a
91
+ * branch, a team) gets the server's own default instead of an explicit empty string, and
92
+ * undeclared keys never reach the wire. @complexity O(f). */
93
+ export function declaredFieldValues({ fields, values }, _optional = {}) {
94
+ const out = {};
95
+ for (const field of fields) {
96
+ // Secrets reach the store unchanged; ordinary config values retain their existing trimming.
97
+ const raw = values[field.name] ?? "";
98
+ const value = field.secret ? raw : raw.trim();
99
+ if (value !== "")
100
+ out[field.name] = value;
101
+ }
102
+ return out;
103
+ }
104
+ /** The wire config for one publish/preview: the target plus its declared config values.
105
+ * @complexity O(f). */
106
+ export function buildStaticPublishConfig({ target, values }, _optional = {}) {
107
+ return { target: target.id, fields: declaredFieldValues({ fields: target.configFields, values }) };
108
+ }
109
+ /** Whether the publish form can ask for a PREVIEW: a known target with its required config
110
+ * fields filled. @complexity O(f). */
111
+ export function staticPublishFormReadyForPreview({ target, values }, _options = {}) {
112
+ return target !== undefined && requiredFieldsFilled({ fields: target.configFields, values });
113
+ }
114
+ /** Whether the form can ask for a real PUBLISH — everything a preview needs plus a non-blank
115
+ * `projectName` when the host declares one (the preview has no such field). @complexity O(f). */
116
+ export function staticPublishFormReadyToPublish({ target, values, projectName }, _options = {}) {
117
+ const projectNameReady = target?.projectName === undefined || projectName.trim() !== "";
118
+ return projectNameReady && staticPublishFormReadyForPreview({ target, values });
119
+ }
120
+ /** The `projectName` the publish request carries. The server requires a non-blank one on every
121
+ * publish, but a host that declares no project name (e.g. object storage) ignores it, so the
122
+ * admin hides the field and sends the host's id instead. @complexity O(1). */
123
+ export function staticPublishProjectNameToSend({ target, projectName }, _options = {}) {
124
+ return target.projectName === undefined ? target.id : projectName;
125
+ }
126
+ /** Whether a credential form has enough typed to save: a non-blank token (a blank one on a
127
+ * connected row means "keep the stored secret", so there is nothing to send) plus every required
128
+ * field the host's descriptor declares. @complexity O(f). */
129
+ export function credentialFormReadyToSave({ spec, values }, _optional = {}) {
130
+ return (values[spec.tokenField] ?? "").trim() !== "" && requiredFieldsFilled({ fields: spec.fields, values });
131
+ }
132
+ /** The wire connection for one host's credential form: its id plus the declared fields' trimmed,
133
+ * non-blank values. @complexity O(f). */
134
+ export function buildCredentialConnectionInput({ providerId, spec, values }, _options = {}) {
135
+ const fields = declaredFieldValues({ fields: spec.fields, values });
136
+ // tokenField is authoritative even for a descriptor that omitted its secret flag.
137
+ const token = values[spec.tokenField] ?? "";
138
+ if (token === "")
139
+ delete fields[spec.tokenField];
140
+ else
141
+ fields[spec.tokenField] = token;
142
+ return { ...fields, providerId };
143
+ }
144
+ export function staticPublishProjectNameCopy({ target }, _options = {}) {
145
+ const copy = target?.projectName;
146
+ if (copy === undefined)
147
+ return null;
148
+ return { labelKey: copy.label, helpKey: copy.help };
149
+ }
150
+ /** A descriptor field name as an `agentHandle` segment: `agentHandle()` throws on anything but
151
+ * lowercase words joined by single hyphens, and one throw blanks the whole admin, so a camelCase
152
+ * name (`accessKeyId`) becomes `access-key-id`. @complexity O(n) in the name's length. */
153
+ export function fieldNameHandleSegment({ fieldName, asciiSlug }, _options = {}) {
154
+ return asciiSlug({ text: fieldName.replace(/([a-z0-9])([A-Z])/g, "$1-$2"), trimChars });
155
+ }
156
+ /** The `agentHandle` id of one publish-config input. Ids predate the descriptors and are pinned by
157
+ * agent tooling, so `teamId` keeps its old `team` id; every other field uses its own name.
158
+ * @complexity O(n) in the name's length. */
159
+ export function publishConfigFieldHandleId({ fieldName, asciiSlug }, _options = {}) {
160
+ return `deployment-static-site-publish-${fieldName === "teamId" ? "team" : fieldNameHandleSegment({ fieldName, asciiSlug })}`;
161
+ }
162
+ /** The `agentHandle`/DOM id of one credential input. The token field keeps its old `token` id and
163
+ * `accountId` its old `account` id (both pinned by agent tooling); every other field uses its own
164
+ * name. @complexity O(n) in the name's length. */
165
+ export function credentialFieldHandleId({ providerId, fieldName, tokenField, asciiSlug }, _options = {}) {
166
+ if (fieldName === tokenField)
167
+ return `deployment-static-site-credentials-token-${providerId}`;
168
+ return `deployment-static-site-credentials-${fieldName === "accountId" ? "account" : fieldNameHandleSegment({ fieldName, asciiSlug })}-${providerId}`;
169
+ }
170
+ /** How a host's credential is named mid-sentence: its token field's own label ("API token",
171
+ * "Secret access key"), lower-cased unless it starts with an acronym; "access token" when the
172
+ * descriptor has no such field. @complexity O(f) in the credential's field count. */
173
+ export function credentialNoun({ credential }, _optional = {}) {
174
+ const label = credential.fields.find((field) => field.name === credential.tokenField)?.label ?? "access token";
175
+ return /^[A-Z]{2}/.test(label) ? label : label.charAt(0).toLowerCase() + label.slice(1);
176
+ }
177
+ /** Step 1's subtitle — why connecting here is necessary, which depends on `executionMode` (the
178
+ * server's own fact about whether this WORKSPACE can reach the operator's terminal at all — see
179
+ * `AdminPublishExecutionMode`'s doc in `lib/api.ts`), not on whether the selected PROVIDER has a
180
+ * CLI route. Otherwise it names the host's own credential ({@link credentialNoun}), never a
181
+ * "personal access token" a host that issues only API tokens or access key pairs does not have. @complexity O(f). */
182
+ export function credentialStepSubtitle({ executionMode, credential, translate, copy }, _options = {}) {
183
+ if (executionMode === "hosted-api-only") {
184
+ return translate("This workspace can't use your computer's terminal — connecting here is the only way to publish.");
185
+ }
186
+ return translate(copy.credentialSubtitle).replace("{credential}", () => credentialNoun({ credential }));
187
+ }
188
+ /** The help a config field, credential field or credential form shows: the descriptor's
189
+ * person-facing `userHelp`, else its `help` (written for the agent); `undefined` when it has
190
+ * neither. @complexity O(1). */
191
+ export function fieldHelpText({ field }, _options = {}) {
192
+ return field.userHelp ?? field.help;
193
+ }
194
+ /** The label a config or credential field shows: the descriptor's label, with the generic
195
+ * "(optional)" suffix key when the field is optional. The caller translates `suffixKey`.
196
+ * @complexity O(1). */
197
+ export function fieldLabelParts({ field }, _optional = {}) {
198
+ return { label: field.label, suffixKey: field.required ? null : "(optional)" };
199
+ }
200
+ /**
201
+ * The Overview tab's per-env-var explanatory note, as a dictionary key. The host's site-key variable
202
+ * is boot-blocking in production (`REQUIRED_SECRETS` above; `boot-readiness-gate.ts`'s
203
+ * the production readiness gate calls `process.exit(1)` when neither the env var nor a valid key
204
+ * file resolves) but NOT in local/dev mode, where an unset value instead surfaces later as a 503 on
205
+ * the AI Assistant screen — worded here so the note itself states that split, rather than the UI
206
+ * inventing a severity color the underlying fact doesn't support.
207
+ *
208
+ * 2026-09-14: corrected from "Not required to boot" — that was true only for local/dev mode and
209
+ * read as a blanket claim; the production boot gate has required it since `boot-readiness-gate.ts`'s
210
+ * 2026-09-09 durability fix.
211
+ *
212
+ * @complexity O(1) — one map lookup.
213
+ */
214
+ export function deploymentEnvVarNoteKey({ name, envVarNotes }, _options = {}) {
215
+ return envVarNotes[name] ?? "";
216
+ }
217
+ /**
218
+ * Whether an env var's row should read as a warning rather than neutral "not set" — malformed root
219
+ * key material, and the owner-password var, since an unset/default password is the one env-var state with a real
220
+ * safety consequence at production boot (`production-readiness-gate.ts`'s `PRODUCTION_BOOT_UNSAFE_DEFAULT`).
221
+ * The other three vars degrade gracefully (a daemon port default, an admin username default, a
222
+ * later 503 on one specific screen) and do not warrant the same visual weight.
223
+ *
224
+ * @complexity O(1).
225
+ */
226
+ export function isEnvVarRowUnsafe({ varStatus, unsafeOwnerPasswordVar }, _optional = {}) {
227
+ return varStatus.invalid === true || (varStatus.name === unsafeOwnerPasswordVar && !varStatus.set);
228
+ }
229
+ /**
230
+ * The Overview env-var row's status label key. The site key row names a generated key file as its
231
+ * source (the keyring reads the env var OR that file) and calls malformed material invalid rather
232
+ * than "Not set", since something IS configured there and it is broken.
233
+ * @complexity O(1).
234
+ */
235
+ export function envVarStatusLabelKey({ varStatus }, _optional = {}) {
236
+ if (varStatus.invalid)
237
+ return "Invalid — the keyring rejects it";
238
+ if (!varStatus.set)
239
+ return "Not set";
240
+ return varStatus.source === "file" ? "Set (generated key file)" : "Set";
241
+ }
242
+ /**
243
+ * The Static Site Verify status line's class. `"unreachable"` means the token was NOT checked, so it
244
+ * reads as a warning — styling it like `"valid"` told an operator an unverified token had passed.
245
+ * @complexity O(1).
246
+ */
247
+ export function credentialVerifyStatusClass({ row }, _optional = {}) {
248
+ if (row.verifyError || row.verification?.status === "invalid")
249
+ return "save-error";
250
+ return row.verification?.status === "unreachable" ? "save-warning" : "save-ok";
251
+ }
252
+ /** The Overview tab's runtime-mode label key. @complexity O(1). */
253
+ export function runtimeModeLabelKey({ mode }, _optional = {}) {
254
+ return mode === "production" ? "Production" : "Local";
255
+ }
256
+ /** The Overview tab's production-readiness-gate label key. `applicable: false` means the gate never
257
+ * ran (local mode) — see `DeploymentOverviewSnapshot.productionReadinessGate`'s own doc comment for
258
+ * why a request reaching this route in production mode already proves the gate passed.
259
+ * @complexity O(1). */
260
+ export function productionGateLabelKey({ gate }, _optional = {}) {
261
+ return gate.applicable ? "Passed" : "Not applicable (local mode)";
262
+ }
263
+ /** The Overview tab's agent-daemon status label key. @complexity O(1). */
264
+ export function daemonStatusLabelKey({ daemonKnownFailed }, _options = {}) {
265
+ return daemonKnownFailed ? "Known failure — check server logs." : "No known failure";
266
+ }
267
+ /** The Overview tab's owner-password status label key. @complexity O(1). */
268
+ export function ownerPasswordLabelKey({ defaultOwnerPasswordUnsafe, copy }, _options = {}) {
269
+ return defaultOwnerPasswordUnsafe ? copy.unsafeOwnerPasswordLabel : "Changed from the default.";
270
+ }
271
+ /** The `.status` tone a run's pill should use, shared between the export and publish run slots —
272
+ * both are `"idle"|"running"|"completed"|"errored"`, and only the "completed" case needs a second
273
+ * input (`ok`) to tell a real success apart from a completed-but-failed outcome (an export whose
274
+ * routes failed, or a publish `StaticPublishOutcome` with `ok: false`). @complexity O(1). */
275
+ export function runStatusTone({ status }, { ok = true } = {}) {
276
+ if (status === "idle")
277
+ return "neutral";
278
+ if (status === "running")
279
+ return "warning";
280
+ if (status === "errored")
281
+ return "error";
282
+ return ok === false ? "error" : "ok";
283
+ }
284
+ /** The Static Site tab's export-run status label key — `run` is `undefined` before the first poll
285
+ * has resolved, which reads the same as `"idle"` (nothing has ever run in THIS browser session's
286
+ * view of it either). @complexity O(1). */
287
+ export function exportRunStatusLabelKey({ run }, _options = {}) {
288
+ const status = run?.status ?? "idle";
289
+ if (status === "idle")
290
+ return "Not started";
291
+ if (status === "running")
292
+ return "Exporting…";
293
+ if (status === "errored")
294
+ return "Export failed";
295
+ return run?.ok === false ? "Finished with failures" : "Export finished";
296
+ }
297
+ /** The Static Site tab's publish-run status label key — same `undefined`-reads-as-idle convention
298
+ * {@link exportRunStatusLabelKey} documents, and the same `result.ok` distinction for a completed
299
+ * run that nonetheless failed (bad config, no credential, a rejected provider call — see
300
+ * `StaticPublishOutcome`'s own `code` union). @complexity O(1). */
301
+ export function publishRunStatusLabelKey({ run }, _options = {}) {
302
+ const status = run?.status ?? "idle";
303
+ const fixedLabel = PUBLISH_RUN_FIXED_LABEL_KEYS[status];
304
+ if (fixedLabel)
305
+ return fixedLabel;
306
+ return run?.result?.ok === false ? "Publish failed" : "Published";
307
+ }
308
+ /** The statuses whose label does not depend on the run's result. */
309
+ const PUBLISH_RUN_FIXED_LABEL_KEYS = {
310
+ idle: "Not started",
311
+ running: "Publishing…",
312
+ errored: "Publish failed",
313
+ };
314
+ //# sourceMappingURL=rules.js.map
@@ -0,0 +1,41 @@
1
+ import type { Translate } from "@jini-ai/core/text";
2
+ /**
3
+ * @file Everything the Overview tab does, so `OverviewTab.tsx` is only markup.
4
+ *
5
+ * Read-only, single query, no mutations — the simplest member of this app's `useX(port, t, locale)`
6
+ * / `useWiredX()` pair (see `use-integrations.hooks.ts` for the canonical fuller example). `port` is
7
+ * injected — see `deployment-overview-port.hooks.ts` — so a test can describe the loading/loaded/
8
+ * error states against `createFakeDeploymentOverviewPort` instead of stubbing global `fetch`.
9
+ *
10
+ * `t`/`locale` follow the same standing i18n rule every other feature hook in this app follows: a
11
+ * component with a hook gets a BOUND `t` from that hook, not its own `useAdminLocale()`/dictionary
12
+ * import (see `use-recovery.hooks.ts`'s header for the original statement of this rule).
13
+ */
14
+ export interface DeploymentOverviewController<Snapshot> {
15
+ /** `undefined` until the first successful load — `OverviewTab.tsx` renders the loading state. */
16
+ snapshot: Snapshot | undefined;
17
+ /** Already-formatted, translated message — `null` while loading or once loaded successfully. */
18
+ error: string | null;
19
+ /** Bound translator — see this file's header. */
20
+ t: Translate;
21
+ }
22
+ export interface DeploymentOverviewArgs<Snapshot> {
23
+ port: {
24
+ getDeploymentOverview(): Promise<Snapshot>;
25
+ };
26
+ t: Translate;
27
+ locale: string;
28
+ useFetchQueryHook: (required: {
29
+ key: readonly string[];
30
+ fetch: () => Promise<Snapshot>;
31
+ }, optional?: Record<string, never>) => {
32
+ data: Snapshot | undefined;
33
+ error: unknown;
34
+ };
35
+ describeError: (required: {
36
+ error: unknown;
37
+ locale: string;
38
+ }, optional?: Record<string, never>) => string;
39
+ }
40
+ export declare function useDeploymentOverview<Snapshot>({ port, t, locale, useFetchQueryHook, describeError }: DeploymentOverviewArgs<Snapshot>, _optional?: {}): DeploymentOverviewController<Snapshot>;
41
+ //# sourceMappingURL=use-deployment-overview.hooks.d.ts.map
@@ -0,0 +1,11 @@
1
+ export function useDeploymentOverview({ port, t, locale, useFetchQueryHook, describeError }, _optional = {}) {
2
+ const query = useFetchQueryHook({
3
+ key: ["deployment", "overview"],
4
+ fetch: () => port.getDeploymentOverview(),
5
+ });
6
+ const error = query.error
7
+ ? describeError({ error: query.error, locale })
8
+ : null;
9
+ return { snapshot: query.data, error, t };
10
+ }
11
+ //# sourceMappingURL=use-deployment-overview.hooks.js.map
@@ -0,0 +1,42 @@
1
+ /**
2
+ * @file The Deployments domain's agent-tool catalog (2026-08-15 — closes the "the owner can deploy
3
+ * by typing CLI commands, but cannot ask the assistant to do it" gap: none of the 21 existing
4
+ * `assistant/tool-registrations.ts` domains covered the Deployment panel's export and Dockerfile
5
+ * actions at all).
6
+ *
7
+ * Purpose:
8
+ * A static catalog describing every agent-callable tool this domain exposes and the permission each
9
+ * one carries. All five entries here are wired (`tool-registrations.ts` in this directory) — unlike
10
+ * `features/recovery/agent-tools.ts` or `features/database/agent-tools.ts`, this catalog has no
11
+ * excluded, token-gated, or otherwise-dangerous entry: an export writes a static COPY (never touches
12
+ * the running site's own database or content), and a Dockerfile edit writes one build file that
13
+ * still needs a human to run `docker build`/`docker push` in a terminal — neither operation is the
14
+ * kind of irreversible cross-domain mutation ADR-041/ADR-045 reserve for a human-only lever.
15
+ *
16
+ * How it relates to the project:
17
+ * The server-side tool filter (ADR-014) consumes this catalog to decide which tool names an agent
18
+ * session may see at all; `tool-registrations.ts`'s handlers, each wrapping an existing HTTP route's
19
+ * own domain logic (`features/deployments/export-run.ts`, `features/deployments/dockerfile.ts`),
20
+ * enforce the actual permission checks at call time — this module declares shape only, no I/O.
21
+ *
22
+ * Architectural role:
23
+ * `features/deployments` domain logic. No dependencies.
24
+ */
25
+ import type { AgentToolDefinition as SharedAgentToolDefinition } from "@jini-ai/core";
26
+ export type AgentToolSideEffect = "none" | "mutates-durable-state" | "mints-token";
27
+ export type AgentToolActorClassRule = "confirmer-must-equal-own-delegatedBy" | "user-only" | "none";
28
+ /**
29
+ * JSON Schema for this tool's `input`, published via `ToolDescriptor.inputSchema`
30
+ * (`assistant/tool-registrations.ts`, which refuses to wire any tool lacking one).
31
+ */
32
+ export type AgentToolDefinition = SharedAgentToolDefinition & {
33
+ sideEffects: AgentToolSideEffect;
34
+ };
35
+ /**
36
+ * The Deployments domain's fixed agent-tool catalog.
37
+ *
38
+ * @complexity O(1) — a fixed, statically-defined list.
39
+ * @overallScore 100
40
+ */
41
+ export declare const deploymentsAgentToolCatalog: AgentToolDefinition[];
42
+ //# sourceMappingURL=agent-tools.d.ts.map
@@ -0,0 +1,119 @@
1
+ /**
2
+ * @file The Deployments domain's agent-tool catalog (2026-08-15 — closes the "the owner can deploy
3
+ * by typing CLI commands, but cannot ask the assistant to do it" gap: none of the 21 existing
4
+ * `assistant/tool-registrations.ts` domains covered the Deployment panel's export and Dockerfile
5
+ * actions at all).
6
+ *
7
+ * Purpose:
8
+ * A static catalog describing every agent-callable tool this domain exposes and the permission each
9
+ * one carries. All five entries here are wired (`tool-registrations.ts` in this directory) — unlike
10
+ * `features/recovery/agent-tools.ts` or `features/database/agent-tools.ts`, this catalog has no
11
+ * excluded, token-gated, or otherwise-dangerous entry: an export writes a static COPY (never touches
12
+ * the running site's own database or content), and a Dockerfile edit writes one build file that
13
+ * still needs a human to run `docker build`/`docker push` in a terminal — neither operation is the
14
+ * kind of irreversible cross-domain mutation ADR-041/ADR-045 reserve for a human-only lever.
15
+ *
16
+ * How it relates to the project:
17
+ * The server-side tool filter (ADR-014) consumes this catalog to decide which tool names an agent
18
+ * session may see at all; `tool-registrations.ts`'s handlers, each wrapping an existing HTTP route's
19
+ * own domain logic (`features/deployments/export-run.ts`, `features/deployments/dockerfile.ts`),
20
+ * enforce the actual permission checks at call time — this module declares shape only, no I/O.
21
+ *
22
+ * Architectural role:
23
+ * `features/deployments` domain logic. No dependencies.
24
+ */
25
+ /** No arguments — shared by every parameterless read tool in this catalog. */
26
+ const NO_INPUT_SCHEMA = {
27
+ type: "object",
28
+ additionalProperties: false,
29
+ required: [],
30
+ properties: {},
31
+ };
32
+ /** `deployment_trigger_export`'s input. Both fields optional — omitting either reproduces the HTTP
33
+ * route's own defaults (`clean:false`, no base-path rewrite). Neither field is a filesystem path;
34
+ * `outputDir` is never caller-controllable (see `export-run.ts`'s `startExportRun`, which reads
35
+ * `RouteDeps.exportOutputRootDir` rather than accepting one). */
36
+ const TRIGGER_EXPORT_SCHEMA = {
37
+ type: "object",
38
+ additionalProperties: false,
39
+ required: [],
40
+ properties: {
41
+ basePath: {
42
+ type: "string",
43
+ description: "Set this ONLY when the destination host serves the site from a subpath (for example a repository-named path, host/reponame) — it must exactly match that subpath (e.g. \"/reponame\"), or every exported asset (CSS, JS, images) will 404 once served from it. Leave unset when the site is served from a domain root, including a custom domain — setting it then would incorrectly prefix every link.",
44
+ },
45
+ clean: {
46
+ type: "boolean",
47
+ description: "Set to true to wipe the export output directory before writing, when a previous export's leftover files would otherwise cause the run to be refused as 'not empty'. Defaults to false, which refuses to export into a non-empty directory rather than silently deleting unknown files.",
48
+ },
49
+ },
50
+ };
51
+ /** `deployment_set_dockerfile`'s input. There is no path field: the write always targets the
52
+ * repo-root Dockerfile and nothing else (`dockerfile.ts`'s own path-safety argument).
53
+ *
54
+ * `ifMatch` is REQUIRED, not optional (2026-08-15, Terra audit finding C5, owner-decided strict —
55
+ * see `writeDockerfileSourceWithIfMatch`'s own doc in `dockerfile.ts` for the full decision
56
+ * record). A human editing the same file in the admin UI's Dockerfile tab is a real, concurrent
57
+ * second writer this tool cannot see coming; requiring `ifMatch` in the schema itself — not just
58
+ * checking it at runtime — is what forces a model calling this tool to have called
59
+ * `deployment_get_dockerfile` first and to be reasoning from CURRENT contents, rather than
60
+ * silently overwriting whatever a human just saved. */
61
+ const SET_DOCKERFILE_SCHEMA = {
62
+ type: "object",
63
+ additionalProperties: false,
64
+ required: ["contents", "ifMatch"],
65
+ properties: {
66
+ contents: {
67
+ type: "string",
68
+ description: "The full replacement contents of the repo-root Dockerfile. This REPLACES the entire file — call deployment_get_dockerfile first if you need to preserve or build on its current contents. Not validated as Dockerfile syntax; an invalid Dockerfile is written as-is.",
69
+ },
70
+ ifMatch: {
71
+ type: "string",
72
+ description: "The 'etag' from the most recent deployment_get_dockerfile call (or from this tool's own previous response). Required — proves this write is based on the file's CURRENT contents, not a stale copy a human may have since changed in the admin UI. If the Dockerfile changed since that etag was read, this call is refused with a conflict describing what changed; call deployment_get_dockerfile again, reconcile your intended edit against the NEW current contents, and retry with the fresh etag it returns.",
73
+ },
74
+ },
75
+ };
76
+ /**
77
+ * The Deployments domain's fixed agent-tool catalog.
78
+ *
79
+ * @complexity O(1) — a fixed, statically-defined list.
80
+ * @overallScore 100
81
+ */
82
+ export const deploymentsAgentToolCatalog = [
83
+ {
84
+ name: "deployment_trigger_export",
85
+ description: "Starts a full static export of the site to disk: a self-contained, fully static COPY of every public page and asset, with NO checkout, admin UI, or assistant included in the output (those only exist in this running server — the exported copy is pure static HTML/CSS/JS/assets, suitable for any static host). This is slow — seconds to minutes, one HTTP fetch per route and asset — so this call returns immediately once the run STARTS, not once it finishes; call deployment_get_export_status afterward (poll it) to learn whether the export actually succeeded. Only one export can run at a time on this instance: calling this while one is already running fails outright rather than queuing or restarting it — check status first if unsure. Set basePath when the destination serves the site from a subpath; see that field's own description for exactly when.",
86
+ sideEffects: "mutates-durable-state",
87
+ authorization: { permission: "system.export" },
88
+ inputSchema: TRIGGER_EXPORT_SCHEMA,
89
+ },
90
+ {
91
+ name: "deployment_diagnose_static_export",
92
+ description: "Reports what a static export/publish of this site would drop or fail, without publishing. Call before deployment_execute_static_publish or when a publish was refused; returns counts and full failure/drop diagnostics, or ALREADY_RUNNING while another export is running.",
93
+ sideEffects: "none",
94
+ authorization: { permission: "system.read" },
95
+ inputSchema: NO_INPUT_SCHEMA,
96
+ },
97
+ {
98
+ name: "deployment_get_export_status",
99
+ description: "Reports the status of the most recent (or currently running) static-site export started by deployment_trigger_export: 'idle' (never run in this process), 'running', 'completed', or 'errored'. Poll this after triggering an export, since the trigger itself returns before the export finishes. On 'completed', reports route/asset success and failure counts, every failed route/asset with its reason, and any base-path rewrite warning; ok is true only when every route and asset exported successfully (an asset failure also makes ok false — check counts.assetsFailed to tell asset failures from route failures).",
100
+ sideEffects: "none",
101
+ authorization: { permission: "system.read" },
102
+ inputSchema: NO_INPUT_SCHEMA,
103
+ },
104
+ {
105
+ name: "deployment_get_dockerfile",
106
+ description: "Returns the repo-root Dockerfile's current contents (exists:true/contents:'...'), or exists:false if none has been created yet, plus an 'etag' identifying exactly this version of the contents. This is the build file a human runs `docker build`/`docker push` against in a terminal — reading it does not build, validate, or deploy anything. ALWAYS call this immediately before deployment_set_dockerfile to get a fresh etag: a human can edit and save this same file in the admin UI's Dockerfile tab at any time, so an etag from long ago may already be stale.",
107
+ sideEffects: "none",
108
+ authorization: { permission: "system.read" },
109
+ inputSchema: NO_INPUT_SCHEMA,
110
+ },
111
+ {
112
+ name: "deployment_set_dockerfile",
113
+ description: "Overwrites the repo-root Dockerfile with the given contents, creating it if it does not exist. Requires 'ifMatch' — the 'etag' from a just-prior deployment_get_dockerfile call — to prove the write is based on the file's CURRENT contents, since a human can edit and save the same file in the admin UI at any time; a stale or missing etag is refused with a conflict/error rather than silently overwriting whatever they saved (see the 'ifMatch' field's own description for the recovery steps). This ONLY writes bytes to disk — it does NOT build, validate as Dockerfile syntax, or trigger any build/deploy; nothing about the running container changes as a result of this call, and a human still has to run `docker build` themselves afterward. The previous contents are not backed up by this tool; call deployment_get_dockerfile first if you need them.",
114
+ sideEffects: "mutates-durable-state",
115
+ authorization: { permission: "system.write" },
116
+ inputSchema: SET_DOCKERFILE_SCHEMA,
117
+ },
118
+ ];
119
+ //# sourceMappingURL=agent-tools.js.map