home-hosted 0.11.0 → 0.13.0

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 (340) hide show
  1. package/README.md +319 -628
  2. package/dist/chunks/archive-DP-XQR8X.js +352 -0
  3. package/dist/chunks/archive-DP-XQR8X.js.map +1 -0
  4. package/dist/chunks/atomic-C1PfJpE7.js +26 -0
  5. package/dist/chunks/atomic-C1PfJpE7.js.map +1 -0
  6. package/dist/chunks/backup-CZcVca2a.js +822 -0
  7. package/dist/chunks/backup-CZcVca2a.js.map +1 -0
  8. package/dist/chunks/backups-CFRaWe_m.js +4691 -0
  9. package/dist/chunks/backups-CFRaWe_m.js.map +1 -0
  10. package/dist/chunks/config-text-DifCHhnz.js +50 -0
  11. package/dist/chunks/config-text-DifCHhnz.js.map +1 -0
  12. package/dist/chunks/contracts-CMBD1TF9.js +2230 -0
  13. package/dist/chunks/contracts-CMBD1TF9.js.map +1 -0
  14. package/dist/chunks/daemon-log-BVj8cDEo.js +241 -0
  15. package/dist/chunks/daemon-log-BVj8cDEo.js.map +1 -0
  16. package/dist/chunks/daemon-qKVECISl.js +247 -0
  17. package/dist/chunks/daemon-qKVECISl.js.map +1 -0
  18. package/dist/chunks/docker-Cy9Lyvda.js +437 -0
  19. package/dist/chunks/docker-Cy9Lyvda.js.map +1 -0
  20. package/dist/chunks/down-pKbGCW9d.js +383 -0
  21. package/dist/chunks/down-pKbGCW9d.js.map +1 -0
  22. package/dist/chunks/init-BZ7hK9Vf.js +276 -0
  23. package/dist/chunks/init-BZ7hK9Vf.js.map +1 -0
  24. package/dist/chunks/last-stop-C-BXz_XI.js +53 -0
  25. package/dist/chunks/last-stop-C-BXz_XI.js.map +1 -0
  26. package/dist/chunks/layout-DwTtmund.js +24 -0
  27. package/dist/chunks/layout-DwTtmund.js.map +1 -0
  28. package/dist/chunks/lazy-Ce5zEAq1.js +66 -0
  29. package/dist/chunks/lazy-Ce5zEAq1.js.map +1 -0
  30. package/dist/chunks/log-buffer-Dy9HHDMD.js +414 -0
  31. package/dist/chunks/log-buffer-Dy9HHDMD.js.map +1 -0
  32. package/dist/chunks/logger-B5U4GD3j.js +13 -0
  33. package/dist/chunks/logger-B5U4GD3j.js.map +1 -0
  34. package/dist/chunks/logs---TI_bxM.js +267 -0
  35. package/dist/chunks/logs---TI_bxM.js.map +1 -0
  36. package/dist/chunks/migrate-Cfoq-Vgh.js +155 -0
  37. package/dist/chunks/migrate-Cfoq-Vgh.js.map +1 -0
  38. package/dist/chunks/nanny-B-Eu0sFW.js +132 -0
  39. package/dist/chunks/nanny-B-Eu0sFW.js.map +1 -0
  40. package/dist/chunks/nanny-BtWfy0QH.js +1167 -0
  41. package/dist/chunks/nanny-BtWfy0QH.js.map +1 -0
  42. package/dist/chunks/nanny-ChMtq1Zl.js +39 -0
  43. package/dist/chunks/nanny-ChMtq1Zl.js.map +1 -0
  44. package/dist/chunks/nanny-sweep-DErnlPY1.js +105 -0
  45. package/dist/chunks/nanny-sweep-DErnlPY1.js.map +1 -0
  46. package/dist/chunks/nearest-6KgQEDUe.js +41 -0
  47. package/dist/chunks/nearest-6KgQEDUe.js.map +1 -0
  48. package/dist/chunks/parse-DhmG26fI.js +383 -0
  49. package/dist/chunks/parse-DhmG26fI.js.map +1 -0
  50. package/dist/chunks/paths-CGlGDrOU.js +206 -0
  51. package/dist/chunks/paths-CGlGDrOU.js.map +1 -0
  52. package/dist/chunks/port-B8WBTRMk.js +333 -0
  53. package/dist/chunks/port-B8WBTRMk.js.map +1 -0
  54. package/dist/chunks/restart-Des4DrAN.js +92 -0
  55. package/dist/chunks/restart-Des4DrAN.js.map +1 -0
  56. package/dist/chunks/rolldown-runtime-D7D4PA-g.js +13 -0
  57. package/dist/chunks/schema-B240VXcV.js +103 -0
  58. package/dist/chunks/schema-B240VXcV.js.map +1 -0
  59. package/dist/chunks/secrets-BieELnZh.js +562 -0
  60. package/dist/chunks/secrets-BieELnZh.js.map +1 -0
  61. package/dist/chunks/server-Bge2r2qQ.js +169 -0
  62. package/dist/chunks/server-Bge2r2qQ.js.map +1 -0
  63. package/dist/chunks/server-ids-DRuNLVCV.js +32 -0
  64. package/dist/chunks/server-ids-DRuNLVCV.js.map +1 -0
  65. package/dist/chunks/set-password-D5vZqqSX.js +43 -0
  66. package/dist/chunks/set-password-D5vZqqSX.js.map +1 -0
  67. package/dist/chunks/set-token-obPiEJYk.js +78 -0
  68. package/dist/chunks/set-token-obPiEJYk.js.map +1 -0
  69. package/dist/chunks/settings-xu-XTfWg.js +423 -0
  70. package/dist/chunks/settings-xu-XTfWg.js.map +1 -0
  71. package/dist/chunks/setup-temp-CAN4_bA-.js +150 -0
  72. package/dist/chunks/setup-temp-CAN4_bA-.js.map +1 -0
  73. package/dist/chunks/shape-DnTKzjQ2.js +24 -0
  74. package/dist/chunks/shape-DnTKzjQ2.js.map +1 -0
  75. package/dist/chunks/src-BtWMFmzZ.js +12338 -0
  76. package/dist/chunks/src-BtWMFmzZ.js.map +1 -0
  77. package/dist/chunks/status-DT1EsA-B.js +123 -0
  78. package/dist/chunks/status-DT1EsA-B.js.map +1 -0
  79. package/dist/chunks/ui-D562aqw5.js +325 -0
  80. package/dist/chunks/ui-D562aqw5.js.map +1 -0
  81. package/dist/chunks/ui-dir-CsU3uLNV.js +39 -0
  82. package/dist/chunks/ui-dir-CsU3uLNV.js.map +1 -0
  83. package/dist/chunks/ui-release-DKzVvlLd.js +312 -0
  84. package/dist/chunks/ui-release-DKzVvlLd.js.map +1 -0
  85. package/dist/chunks/ui-revert-EkBBwRTt.js +27 -0
  86. package/dist/chunks/ui-revert-EkBBwRTt.js.map +1 -0
  87. package/dist/chunks/ui-switch-BnZTdMDd.js +150 -0
  88. package/dist/chunks/ui-switch-BnZTdMDd.js.map +1 -0
  89. package/dist/chunks/ui-update-_xryLYxw.js +272 -0
  90. package/dist/chunks/ui-update-_xryLYxw.js.map +1 -0
  91. package/dist/chunks/up-Pdz-l6IH.js +210 -0
  92. package/dist/chunks/up-Pdz-l6IH.js.map +1 -0
  93. package/dist/chunks/usage-DFrCVXpT.js +111 -0
  94. package/dist/chunks/usage-DFrCVXpT.js.map +1 -0
  95. package/dist/chunks/workspaces-DYcfvKV_.js +229 -0
  96. package/dist/chunks/workspaces-DYcfvKV_.js.map +1 -0
  97. package/dist/chunks/wsl-temperature-BiCI4iK6.js +322 -0
  98. package/dist/chunks/wsl-temperature-BiCI4iK6.js.map +1 -0
  99. package/dist/cli.js +441 -25418
  100. package/dist/cli.js.map +1 -1
  101. package/dist/client.js +144 -0
  102. package/dist/client.js.map +1 -0
  103. package/dist/types/api/acme.d.ts +24 -0
  104. package/dist/types/api/auth/$.routes.d.ts +103 -0
  105. package/dist/types/api/backups.d.ts +184 -0
  106. package/dist/types/api/control.d.ts +470 -0
  107. package/dist/types/api/ddns.d.ts +432 -0
  108. package/dist/types/api/events.d.ts +22 -0
  109. package/dist/types/api/health.d.ts +28 -0
  110. package/dist/types/api/logs.d.ts +95 -0
  111. package/dist/types/api/metrics.d.ts +21 -0
  112. package/dist/types/api/notifications.d.ts +141 -0
  113. package/dist/types/api/proxy.d.ts +1128 -0
  114. package/dist/types/api/servers/$.routes.d.ts +1318 -0
  115. package/dist/types/api/settings.d.ts +642 -0
  116. package/dist/types/api/state.d.ts +498 -0
  117. package/dist/types/api/static.d.ts +11 -0
  118. package/dist/types/api/tls.d.ts +112 -0
  119. package/dist/types/api/workspaces/$.routes.d.ts +797 -0
  120. package/dist/types/api/wsl-temperature.d.ts +113 -0
  121. package/dist/types/app.d.ts +6095 -0
  122. package/dist/types/cli/args.d.ts +75 -0
  123. package/dist/types/cli/backup-offline.d.ts +23 -0
  124. package/dist/types/cli/backup.d.ts +86 -0
  125. package/dist/types/cli/down.d.ts +80 -0
  126. package/dist/types/cli/init.d.ts +60 -0
  127. package/dist/types/cli/io.d.ts +65 -0
  128. package/dist/types/cli/logs.d.ts +76 -0
  129. package/dist/types/cli/migrate.d.ts +33 -0
  130. package/dist/types/cli/nanny.d.ts +19 -0
  131. package/dist/types/cli/nearest.d.ts +10 -0
  132. package/dist/types/cli/restart.d.ts +41 -0
  133. package/dist/types/cli/server.d.ts +68 -0
  134. package/dist/types/cli/set-password.d.ts +14 -0
  135. package/dist/types/cli/set-token.d.ts +21 -0
  136. package/dist/types/cli/setup-temp.d.ts +65 -0
  137. package/dist/types/cli/status.d.ts +14 -0
  138. package/dist/types/cli/ui-revert.d.ts +3 -0
  139. package/dist/types/cli/ui-switch.d.ts +27 -0
  140. package/dist/types/cli/ui-update.d.ts +72 -0
  141. package/dist/types/cli/up.d.ts +96 -0
  142. package/dist/types/cli/usage.d.ts +23 -0
  143. package/dist/types/cli.d.ts +12 -0
  144. package/dist/types/client.d.ts +11891 -0
  145. package/dist/types/config/layout.d.ts +11 -0
  146. package/dist/types/config/migrations.d.ts +69 -0
  147. package/dist/types/config/parse.d.ts +54 -0
  148. package/dist/types/config/patch.d.ts +20 -0
  149. package/dist/types/config/schema.d.ts +318 -0
  150. package/dist/types/config/secret-parts.d.ts +48 -0
  151. package/dist/types/config/secrets.d.ts +208 -0
  152. package/dist/types/config/seed.d.ts +30 -0
  153. package/dist/types/config/server-ids.d.ts +14 -0
  154. package/dist/types/config/settings.d.ts +120 -0
  155. package/dist/types/config/store.d.ts +145 -0
  156. package/dist/types/config/workspaces.d.ts +99 -0
  157. package/dist/types/helpers/action-result.d.ts +46 -0
  158. package/dist/types/helpers/atomic.d.ts +9 -0
  159. package/dist/types/helpers/backoff.d.ts +7 -0
  160. package/dist/types/helpers/bind.d.ts +16 -0
  161. package/dist/types/helpers/config-text.d.ts +23 -0
  162. package/dist/types/helpers/cookies.d.ts +19 -0
  163. package/dist/types/helpers/copy-tree.d.ts +20 -0
  164. package/dist/types/helpers/daemon-log.d.ts +45 -0
  165. package/dist/types/helpers/daemon.d.ts +135 -0
  166. package/dist/types/helpers/deferred.d.ts +7 -0
  167. package/dist/types/helpers/env-file.d.ts +20 -0
  168. package/dist/types/helpers/error.d.ts +26 -0
  169. package/dist/types/helpers/event-stream.d.ts +21 -0
  170. package/dist/types/helpers/factory.d.ts +6 -0
  171. package/dist/types/helpers/last-stop.d.ts +20 -0
  172. package/dist/types/helpers/logger.d.ts +7 -0
  173. package/dist/types/helpers/open.d.ts +2 -0
  174. package/dist/types/helpers/openapi.d.ts +34 -0
  175. package/dist/types/helpers/paths.d.ts +112 -0
  176. package/dist/types/helpers/restore-lock.d.ts +32 -0
  177. package/dist/types/helpers/runtime.d.ts +18 -0
  178. package/dist/types/helpers/secret-compare.d.ts +13 -0
  179. package/dist/types/helpers/shell.d.ts +19 -0
  180. package/dist/types/helpers/sse.d.ts +23 -0
  181. package/dist/types/helpers/template.d.ts +8 -0
  182. package/dist/types/helpers/ui-dir.d.ts +11 -0
  183. package/dist/types/helpers/utf8-chunks.d.ts +15 -0
  184. package/dist/types/helpers/validate.d.ts +7 -0
  185. package/dist/types/helpers/validator.d.ts +12 -0
  186. package/dist/types/helpers/version.d.ts +10 -0
  187. package/dist/types/helpers/workspace.d.ts +25 -0
  188. package/dist/types/index.d.ts +17 -0
  189. package/dist/types/middleware/auth.d.ts +53 -0
  190. package/dist/types/middleware/host.d.ts +29 -0
  191. package/dist/types/middleware/loopback.d.ts +18 -0
  192. package/dist/types/openapi-reference.d.ts +22 -0
  193. package/dist/types/openapi.d.ts +34 -0
  194. package/dist/types/providers/archive.d.ts +54 -0
  195. package/dist/types/providers/backup-hook.d.ts +34 -0
  196. package/dist/types/providers/ddns/cloudflare.d.ts +2 -0
  197. package/dist/types/providers/ddns/desec.d.ts +2 -0
  198. package/dist/types/providers/ddns/digitalocean.d.ts +2 -0
  199. package/dist/types/providers/ddns/duckdns.d.ts +2 -0
  200. package/dist/types/providers/ddns/dyndns2.d.ts +15 -0
  201. package/dist/types/providers/ddns/dynu.d.ts +2 -0
  202. package/dist/types/providers/ddns/freedns.d.ts +2 -0
  203. package/dist/types/providers/ddns/gandi.d.ts +2 -0
  204. package/dist/types/providers/ddns/godaddy.d.ts +2 -0
  205. package/dist/types/providers/ddns/henet.d.ts +3 -0
  206. package/dist/types/providers/ddns/index.d.ts +12 -0
  207. package/dist/types/providers/ddns/ip.d.ts +27 -0
  208. package/dist/types/providers/ddns/namecheap-api.d.ts +13 -0
  209. package/dist/types/providers/ddns/namecheap.d.ts +6 -0
  210. package/dist/types/providers/ddns/noip.d.ts +2 -0
  211. package/dist/types/providers/ddns/porkbun.d.ts +2 -0
  212. package/dist/types/providers/ddns/spaceship.d.ts +7 -0
  213. package/dist/types/providers/ddns/types.d.ts +98 -0
  214. package/dist/types/providers/ddns/zone.d.ts +11 -0
  215. package/dist/types/providers/docker.d.ts +117 -0
  216. package/dist/types/providers/entry-state.d.ts +15 -0
  217. package/dist/types/providers/health-check.d.ts +27 -0
  218. package/dist/types/providers/host.d.ts +147 -0
  219. package/dist/types/providers/identity.d.ts +54 -0
  220. package/dist/types/providers/log-tail.d.ts +56 -0
  221. package/dist/types/providers/nanny-sweep.d.ts +54 -0
  222. package/dist/types/providers/nanny.d.ts +104 -0
  223. package/dist/types/providers/port.d.ts +142 -0
  224. package/dist/types/providers/proc.d.ts +125 -0
  225. package/dist/types/providers/process.d.ts +78 -0
  226. package/dist/types/providers/proxy/caddy.d.ts +2 -0
  227. package/dist/types/providers/proxy/index.d.ts +7 -0
  228. package/dist/types/providers/proxy/types.d.ts +54 -0
  229. package/dist/types/providers/server-vars.d.ts +4 -0
  230. package/dist/types/providers/telegram.d.ts +74 -0
  231. package/dist/types/providers/ui-release.d.ts +113 -0
  232. package/dist/types/providers/webhook.d.ts +64 -0
  233. package/dist/types/providers/wsl-temperature.d.ts +65 -0
  234. package/dist/types/services/acme-challenge.d.ts +44 -0
  235. package/dist/types/services/auth.d.ts +177 -0
  236. package/dist/types/services/backups.d.ts +476 -0
  237. package/dist/types/services/config-watch.d.ts +40 -0
  238. package/dist/types/services/control-server.d.ts +58 -0
  239. package/dist/types/services/ddns.d.ts +72 -0
  240. package/dist/types/services/dependencies.d.ts +21 -0
  241. package/dist/types/services/events.d.ts +17 -0
  242. package/dist/types/services/exposure.d.ts +86 -0
  243. package/dist/types/services/history.d.ts +37 -0
  244. package/dist/types/services/host-monitor.d.ts +33 -0
  245. package/dist/types/services/init.d.ts +71 -0
  246. package/dist/types/services/log-buffer.d.ts +39 -0
  247. package/dist/types/services/log-files.d.ts +77 -0
  248. package/dist/types/services/log-relay.d.ts +35 -0
  249. package/dist/types/services/nanny.d.ts +14 -0
  250. package/dist/types/services/notifications.d.ts +124 -0
  251. package/dist/types/services/panel.d.ts +213 -0
  252. package/dist/types/services/proxy-certificates/certificates.d.ts +116 -0
  253. package/dist/types/services/proxy-config.d.ts +83 -0
  254. package/dist/types/services/proxy.d.ts +431 -0
  255. package/dist/types/services/state.d.ts +38 -0
  256. package/dist/types/services/supervisor/compose.d.ts +17 -0
  257. package/dist/types/services/supervisor/entry.d.ts +149 -0
  258. package/dist/types/services/supervisor/health.d.ts +56 -0
  259. package/dist/types/services/supervisor/output.d.ts +126 -0
  260. package/dist/types/services/supervisor/pending-load.d.ts +6 -0
  261. package/dist/types/services/supervisor/persistent.d.ts +58 -0
  262. package/dist/types/services/supervisor/port-preflight.d.ts +45 -0
  263. package/dist/types/services/supervisor/records.d.ts +118 -0
  264. package/dist/types/services/supervisor/spawn.d.ts +15 -0
  265. package/dist/types/services/supervisor/view.d.ts +4 -0
  266. package/dist/types/services/supervisor.d.ts +145 -0
  267. package/dist/types/services/tls.d.ts +48 -0
  268. package/dist/types/services/ui-update.d.ts +44 -0
  269. package/dist/types/services/ui.d.ts +50 -0
  270. package/dist/types/shared/action-outcome.d.ts +25 -0
  271. package/dist/types/shared/api-client.d.ts +351 -0
  272. package/dist/types/shared/backup-scope.d.ts +167 -0
  273. package/dist/types/shared/clone.d.ts +14 -0
  274. package/dist/types/shared/contracts.d.ts +4175 -0
  275. package/dist/types/shared/cpu-scale.d.ts +25 -0
  276. package/dist/types/shared/ddns-form.d.ts +75 -0
  277. package/dist/types/shared/endpoint.d.ts +8 -0
  278. package/dist/types/shared/error-message.d.ts +8 -0
  279. package/dist/types/shared/fields.d.ts +21 -0
  280. package/dist/types/shared/form-repair.d.ts +6 -0
  281. package/dist/types/shared/generated.d.ts +26 -0
  282. package/dist/types/shared/host-readings.d.ts +185 -0
  283. package/dist/types/shared/lazy.d.ts +4 -0
  284. package/dist/types/shared/live-frames.d.ts +22 -0
  285. package/dist/types/shared/live-series.d.ts +21 -0
  286. package/dist/types/shared/live-store.d.ts +72 -0
  287. package/dist/types/shared/patch-diff.d.ts +105 -0
  288. package/dist/types/shared/probe-latency.d.ts +25 -0
  289. package/dist/types/shared/proxy-form.d.ts +184 -0
  290. package/dist/types/shared/server-attention.d.ts +37 -0
  291. package/dist/types/shared/server-form.d.ts +121 -0
  292. package/dist/types/shared/server-key.d.ts +13 -0
  293. package/dist/types/shared/server-readings.d.ts +55 -0
  294. package/dist/types/shared/server-url.d.ts +43 -0
  295. package/dist/types/shared/shape.d.ts +17 -0
  296. package/dist/types/shared/stream-access.d.ts +20 -0
  297. package/dist/types/shared/ui-format.d.ts +89 -0
  298. package/docs/API.md +209 -0
  299. package/docs/BACKUPS.md +117 -0
  300. package/docs/CLI.md +95 -0
  301. package/docs/DDNS.md +11 -1
  302. package/docs/NOTIFICATIONS.md +7 -1
  303. package/docs/REVERSE_PROXY.md +9 -3
  304. package/docs/SECURITY.md +93 -0
  305. package/docs/SERVERS.md +141 -34
  306. package/docs/UI_CREATION.md +91 -291
  307. package/docs/demo/blank-host-restore.sh +4 -3
  308. package/package.json +22 -14
  309. package/uis/stock/dist/assets/CopyButton-BUBKRJyY.js +1 -0
  310. package/uis/stock/dist/assets/GlobalSettingsView-yYMcRWvt.js +1 -0
  311. package/uis/stock/dist/assets/LogViewer-DIliXy62.js +1 -0
  312. package/uis/stock/dist/assets/LogsView-B7Z-7RNg.js +1 -0
  313. package/uis/stock/dist/assets/Modal-DmKa5Qpp.js +39 -0
  314. package/uis/stock/dist/assets/ProxyView-DvZiNkwb.js +1 -0
  315. package/uis/stock/dist/assets/ServerDetailView-6idGT_EX.js +2 -0
  316. package/uis/stock/dist/assets/SettingsShell-CeGtleYI.js +1 -0
  317. package/uis/stock/dist/assets/SettingsView-BrhJIrmk.js +2 -0
  318. package/uis/stock/dist/assets/de-BRITeb0H.js +1 -0
  319. package/uis/stock/dist/assets/es-B2zIEssV.js +1 -0
  320. package/uis/stock/dist/assets/fr-s0ZOBEqh.js +1 -0
  321. package/uis/stock/dist/assets/index-C1MehbKy.css +2 -0
  322. package/uis/stock/dist/assets/index-CnBN54wF.js +15 -0
  323. package/uis/stock/dist/assets/ja-CU7MR85V.js +1 -0
  324. package/uis/stock/dist/assets/ko-tL5Me6d-.js +1 -0
  325. package/uis/stock/dist/assets/ru-92yrvkNJ.js +1 -0
  326. package/uis/stock/dist/assets/vi-CzvY16k2.js +1 -0
  327. package/uis/stock/dist/assets/zh-CN-DDwFW_uW.js +1 -0
  328. package/uis/stock/dist/index.html +3 -2
  329. package/uis/stock/dist/ui.json +3 -3
  330. package/docs/RESTORE_DEMO.md +0 -306
  331. package/uis/stock/dist/assets/de-0YLueNal.js +0 -1
  332. package/uis/stock/dist/assets/es-FCHhRmn2.js +0 -1
  333. package/uis/stock/dist/assets/fr-C69Z8o0z.js +0 -1
  334. package/uis/stock/dist/assets/index-Cok5msAO.css +0 -2
  335. package/uis/stock/dist/assets/index-KdyqrVv8.js +0 -53
  336. package/uis/stock/dist/assets/ja-Chz9YOqR.js +0 -1
  337. package/uis/stock/dist/assets/ko-CtXZ2x1l.js +0 -1
  338. package/uis/stock/dist/assets/ru-D_jE64xN.js +0 -1
  339. package/uis/stock/dist/assets/vi-sxSffss7.js +0 -1
  340. package/uis/stock/dist/assets/zh-CN-ChTpf29X.js +0 -1
@@ -0,0 +1,21 @@
1
+ export declare const setTokenArgs: {
2
+ readonly generate: {
3
+ readonly type: "boolean";
4
+ readonly description: "create a strong token and print it once";
5
+ };
6
+ readonly clear: {
7
+ readonly type: "boolean";
8
+ readonly description: "remove the token, so it stops working";
9
+ };
10
+ };
11
+ export declare function runSetToken(generate: boolean, clear: boolean): Promise<void>;
12
+ export declare const setTokenCommand: import("citty").CommandDef<{
13
+ readonly generate: {
14
+ readonly type: "boolean";
15
+ readonly description: "create a strong token and print it once";
16
+ };
17
+ readonly clear: {
18
+ readonly type: "boolean";
19
+ readonly description: "remove the token, so it stops working";
20
+ };
21
+ }>;
@@ -0,0 +1,65 @@
1
+ /**
2
+ * `setup-temp` — teach the panel how to read this machine's CPU temperature.
3
+ *
4
+ * `--wsl` is one *source*; the next bridge is another flag beside it, not a second command.
5
+ */
6
+ export declare const setupTempArgs: {
7
+ readonly wsl: {
8
+ readonly type: "boolean";
9
+ readonly description: "read the temperature through the Windows host (WSL2)";
10
+ readonly default: false;
11
+ };
12
+ readonly clear: {
13
+ readonly type: "boolean";
14
+ readonly description: "stop using a configured command and delete its helper";
15
+ readonly default: false;
16
+ };
17
+ readonly download: {
18
+ readonly type: "boolean";
19
+ readonly description: "download LibreHardwareMonitor without asking; --no-download never does (for a script)";
20
+ };
21
+ };
22
+ /** The temperature sources `setup-temp` can install. One today; a flag each as more appear. */
23
+ export type TemperatureSource = 'wsl';
24
+ /** Which source a flag names, or null when the invocation asks for no change. */
25
+ export declare function sourceFromFlags(flags: {
26
+ wsl?: boolean;
27
+ clear?: boolean;
28
+ }): TemperatureSource | null;
29
+ /**
30
+ * The refusal for a flag set that cannot mean what it says, or `null`.
31
+ *
32
+ * `download` is a **modifier of `--wsl`**, not a command of its own: only the WSL2 branch fetches
33
+ * anything, and the no-flag branch ends before a source is chosen. Left unreachable it was silently
34
+ * dropped — `setup-temp --download` exited 0 having done nothing, which a script reads as
35
+ * "installed" — so the flag is refused instead, naming the one it belongs to.
36
+ *
37
+ * `--clear` is the opposite request, so pairing it with either is refused rather than letting one
38
+ * quietly win.
39
+ */
40
+ export declare function flagProblem(flags: {
41
+ wsl?: boolean;
42
+ clear?: boolean;
43
+ download?: boolean;
44
+ }): string | null;
45
+ export declare function runSetupTemp(flags: {
46
+ wsl?: boolean;
47
+ clear?: boolean;
48
+ download?: boolean;
49
+ }): Promise<void>;
50
+ export declare const setupTempCommand: import("citty").CommandDef<{
51
+ readonly wsl: {
52
+ readonly type: "boolean";
53
+ readonly description: "read the temperature through the Windows host (WSL2)";
54
+ readonly default: false;
55
+ };
56
+ readonly clear: {
57
+ readonly type: "boolean";
58
+ readonly description: "stop using a configured command and delete its helper";
59
+ readonly default: false;
60
+ };
61
+ readonly download: {
62
+ readonly type: "boolean";
63
+ readonly description: "download LibreHardwareMonitor without asking; --no-download never does (for a script)";
64
+ };
65
+ }>;
@@ -0,0 +1,14 @@
1
+ /** `status` answers "is it running, where, and how do I reach it". */
2
+ export declare const statusArgs: {
3
+ readonly json: {
4
+ readonly type: "boolean";
5
+ readonly description: "print machine-readable JSON";
6
+ };
7
+ };
8
+ export declare function runStatus(json: boolean): Promise<void>;
9
+ export declare const statusCommand: import("citty").CommandDef<{
10
+ readonly json: {
11
+ readonly type: "boolean";
12
+ readonly description: "print machine-readable JSON";
13
+ };
14
+ }>;
@@ -0,0 +1,3 @@
1
+ /** `ui-revert` drops a user-installed UI so the stock panel serves again. */
2
+ export declare function runUiRevert(): Promise<void>;
3
+ export declare const uiRevertCommand: import("citty").CommandDef<{}>;
@@ -0,0 +1,27 @@
1
+ /**
2
+ * `home-hosted ui-switch` installs the panel's frontend UI without the settings
3
+ * page: a GitHub release asset (the default), a local zip, or an http(s) URL.
4
+ *
5
+ * This module is only ever imported dynamically, after `--home` has been applied,
6
+ * so the modules that read the state directories are imported inside the command
7
+ * rather than at the top. The release-side helpers it shares with `ui-update` are
8
+ * in `#src/providers/ui-release`, and re-exported here so existing importers keep working.
9
+ */
10
+ export * from '../providers/ui-release.js';
11
+ /** What the command needs from the CLI that owns the readline prompts and the colours. */
12
+ export interface UiSwitchIo {
13
+ write: (text: string) => void;
14
+ prompt: (question: string) => Promise<string>;
15
+ style: {
16
+ bold: (text: string) => string;
17
+ dim: (text: string) => string;
18
+ green: (text: string) => string;
19
+ };
20
+ }
21
+ export declare function uiSwitch(argv: string[], io: UiSwitchIo): Promise<void>;
22
+ /**
23
+ * The citty entry. `ui-switch` keeps parsing its own flags (and its own error
24
+ * messages) inside `uiSwitch`; citty dispatches with the argv it was handed, so
25
+ * the invocation changes and the helpers do not.
26
+ */
27
+ export declare const uiSwitchCommand: import("citty").CommandDef<import("citty").ArgsDef>;
@@ -0,0 +1,72 @@
1
+ /** The identity an installed UI declared about itself, when it declared one. */
2
+ export interface UiIdentity {
3
+ name: string;
4
+ version: string | null;
5
+ repo: string | null;
6
+ tag: string | null;
7
+ asset: string | null;
8
+ unix: number | null;
9
+ }
10
+ export type UiUpdatePlan = {
11
+ kind: 'stock';
12
+ }
13
+ /** Installed, but it never said where it came from, so there is nothing to follow. */
14
+ | {
15
+ kind: 'unidentifiable';
16
+ identity: UiIdentity;
17
+ }
18
+ /** Ours: paired with this panel's release. `target` already matches when current. */
19
+ | {
20
+ kind: 'official';
21
+ identity: UiIdentity;
22
+ target: string;
23
+ }
24
+ /** Someone else's: the person chooses from `candidates`. */
25
+ | {
26
+ kind: 'choice';
27
+ identity: UiIdentity;
28
+ asset: string;
29
+ candidates: UpdateCandidate[];
30
+ };
31
+ export interface UpdateCandidate {
32
+ tag: string;
33
+ asset: string;
34
+ }
35
+ /**
36
+ * Which of a release list applies to what is installed. A candidate is only offered when
37
+ * its assets carry the asset the person is actually using, so a UI is never swapped for a
38
+ * different flavour by an update.
39
+ */
40
+ export declare function usableCandidates(releases: Array<{
41
+ tag: string;
42
+ assets: Array<{
43
+ name?: string;
44
+ }>;
45
+ }>, asset: string, order: 'newer' | 'older', currentTag: string | null): UpdateCandidate[];
46
+ /** What the asset the UI is using is likely called, when it never declared one. */
47
+ export declare function impliedAsset(identity: UiIdentity): string | null;
48
+ /**
49
+ * The decision, with no I/O in it: given what is installed and this panel's release,
50
+ * what should `ui-update` do? `releases` is only consulted for someone else's UI.
51
+ */
52
+ export declare function planUiUpdate(installed: UiIdentity | null, runningTag: string, releases?: Array<{
53
+ tag: string;
54
+ assets: Array<{
55
+ name?: string;
56
+ }>;
57
+ }>, order?: 'newer' | 'older'): UiUpdatePlan;
58
+ /** `home-hosted ui-update` — see the module comment for the three cases. */
59
+ export declare function uiUpdate(argv: string[], io: {
60
+ write: (text: string) => void;
61
+ prompt: (question: string) => Promise<string>;
62
+ style: {
63
+ bold: (text: string) => string;
64
+ dim: (text: string) => string;
65
+ green: (text: string) => string;
66
+ };
67
+ }): Promise<void>;
68
+ /**
69
+ * The citty entry. Like `ui-switch`, the parsing and the messages stay in the plain
70
+ * function so they can be exercised without a terminal.
71
+ */
72
+ export declare const uiUpdateCommand: import("citty").CommandDef<import("citty").ArgsDef>;
@@ -0,0 +1,96 @@
1
+ import type { UpFlags } from './args.js';
2
+ export declare const upArgs: {
3
+ readonly port: {
4
+ readonly type: "string";
5
+ readonly alias: "p";
6
+ readonly description: "control panel port (default: 3999)";
7
+ };
8
+ readonly host: {
9
+ readonly type: "string";
10
+ readonly description: "local | lan | an ipv4 address (default: local)";
11
+ };
12
+ readonly autostart: {
13
+ readonly type: "boolean";
14
+ readonly negativeDescription: "do not start the entries marked autostart";
15
+ };
16
+ readonly open: {
17
+ readonly type: "boolean";
18
+ readonly description: "open the panel in a browser once it is up";
19
+ };
20
+ readonly foreground: {
21
+ readonly type: "boolean";
22
+ readonly description: "run in this process instead of detaching (systemd/docker)";
23
+ };
24
+ readonly printConfig: {
25
+ readonly type: "boolean";
26
+ readonly description: "print the effective config and exit";
27
+ };
28
+ };
29
+ interface RawUpArgs {
30
+ port?: string;
31
+ host?: string;
32
+ autostart?: boolean;
33
+ open?: boolean;
34
+ foreground?: boolean;
35
+ printConfig?: boolean;
36
+ }
37
+ /** citty only parses; the port's range and the boolean defaults are decided here. */
38
+ export declare function toUpFlags(args: RawUpArgs): UpFlags;
39
+ /**
40
+ * `toUpFlags`, plus the check of `--host` that only the panel's own boot used to make.
41
+ *
42
+ * Async because the bind parser lives with the schemas, which a detaching `up` otherwise never
43
+ * loads. Run before anything happens, so `up --host nope` is refused here rather than in a daemon
44
+ * log, and `restart --host nope` before the panel is stopped.
45
+ */
46
+ export declare function checkedUpFlags(args: RawUpArgs): Promise<UpFlags>;
47
+ /**
48
+ * Which `up` flags the live panel contradicts, as one sentence — or `null` when it agrees.
49
+ *
50
+ * `up` on a live panel reports "already running" and exits 0, which is right: the common use is
51
+ * "make sure it is running". But it used to swallow `--port`, `--host` and `--open` on that path,
52
+ * so `up --port 4800` against a panel on 3999 printed a success line and exited 0 having changed
53
+ * nothing — a deploy script reading `$?` concluded the port move worked. AGENTS.md settles the
54
+ * direction: a flag the command cannot honour is refused, and `restart --workspace` without an id
55
+ * already exits 1 for the same reason. `--open` is refused too, because it is not "make sure it is
56
+ * running" either — it asks for a browser, and none opens on a panel this command did not start.
57
+ *
58
+ * `--no-autostart` is deliberately **not** here. It is not contradicted by the live panel: it
59
+ * expresses a wish about a boot this command is not performing, and the panel has already booted,
60
+ * so there is nothing to honour or refuse. Refusing it would break `up --no-autostart` in a retry
61
+ * loop, which is the one spelling a script uses to keep its hands off the entries.
62
+ */
63
+ export declare function alreadyRunningConflict(flags: UpFlags, runtime: {
64
+ url: string;
65
+ port: number;
66
+ bindHost: string;
67
+ }): string | null;
68
+ export declare function runUp(flags: UpFlags, entry: string): Promise<void>;
69
+ export declare function upCommand(entry: string): import("citty").CommandDef<{
70
+ readonly port: {
71
+ readonly type: "string";
72
+ readonly alias: "p";
73
+ readonly description: "control panel port (default: 3999)";
74
+ };
75
+ readonly host: {
76
+ readonly type: "string";
77
+ readonly description: "local | lan | an ipv4 address (default: local)";
78
+ };
79
+ readonly autostart: {
80
+ readonly type: "boolean";
81
+ readonly negativeDescription: "do not start the entries marked autostart";
82
+ };
83
+ readonly open: {
84
+ readonly type: "boolean";
85
+ readonly description: "open the panel in a browser once it is up";
86
+ };
87
+ readonly foreground: {
88
+ readonly type: "boolean";
89
+ readonly description: "run in this process instead of detaching (systemd/docker)";
90
+ };
91
+ readonly printConfig: {
92
+ readonly type: "boolean";
93
+ readonly description: "print the effective config and exit";
94
+ };
95
+ }>;
96
+ export {};
@@ -0,0 +1,23 @@
1
+ /**
2
+ * `usage` answers "which of my servers is eating the machine" without a browser.
3
+ *
4
+ * It reads one server's live CPU and memory from the panel it supervises, over the same local
5
+ * token-plus-loopback channel `down` uses — no session, no API token, and no new `/api` route. An
6
+ * entry with no sample says so instead of printing `0`, because a zero on a CPU column reads as
7
+ * "idle" and hides a server nobody is measuring.
8
+ */
9
+ export declare const usageArgs: {
10
+ readonly json: {
11
+ readonly type: "boolean";
12
+ readonly description: "print machine-readable JSON";
13
+ };
14
+ };
15
+ export declare function runUsage(input: {
16
+ json?: boolean;
17
+ }): Promise<void>;
18
+ export declare const usageCommand: import("citty").CommandDef<{
19
+ readonly json: {
20
+ readonly type: "boolean";
21
+ readonly description: "print machine-readable JSON";
22
+ };
23
+ }>;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * The command name a typo most likely meant, or null when nothing is close. The candidates are
3
+ * `SYNOPSIS`, the same source the reference renders, so a suggestion cannot name a command the CLI
4
+ * does not have.
5
+ */
6
+ export declare function suggestCommand(input: string): string | null;
7
+ /**
8
+ * `home-hosted <command> --help`: the usage line, that command's own options,
9
+ * and the shared trailer. A command with no options says so instead of printing
10
+ * an empty heading.
11
+ */
12
+ export declare function commandHelp(command: string): string;