home-hosted 0.13.1 → 0.20.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 (485) hide show
  1. package/README.md +117 -322
  2. package/bin/home-hosted.mjs +41 -0
  3. package/dist/chunks/account-DiLrSyww.js +359 -0
  4. package/dist/chunks/account-DiLrSyww.js.map +1 -0
  5. package/dist/chunks/add-DEIYVkNK.js +183 -0
  6. package/dist/chunks/add-DEIYVkNK.js.map +1 -0
  7. package/dist/chunks/{archive-DP-XQR8X.js → archive-DFi3qK1c.js} +25 -73
  8. package/dist/chunks/archive-DFi3qK1c.js.map +1 -0
  9. package/dist/chunks/{atomic-C1PfJpE7.js → atomic-SZUwDtGD.js} +3 -6
  10. package/dist/chunks/atomic-SZUwDtGD.js.map +1 -0
  11. package/dist/chunks/{backup-DeAJ3pbO.js → backup-DnyxIzw0.js} +110 -190
  12. package/dist/chunks/backup-DnyxIzw0.js.map +1 -0
  13. package/dist/chunks/backups-BrrN6cwW.js +2203 -0
  14. package/dist/chunks/backups-BrrN6cwW.js.map +1 -0
  15. package/dist/chunks/bind-DIxrnUst.js +43 -0
  16. package/dist/chunks/bind-DIxrnUst.js.map +1 -0
  17. package/dist/chunks/config-text-DxMOQQnk.js +34 -0
  18. package/dist/chunks/config-text-DxMOQQnk.js.map +1 -0
  19. package/dist/chunks/{contracts-CMBD1TF9.js → contracts-CxZ7u1L3.js} +1239 -1454
  20. package/dist/chunks/contracts-CxZ7u1L3.js.map +1 -0
  21. package/dist/chunks/daemon-BAAYUYQC.js +211 -0
  22. package/dist/chunks/daemon-BAAYUYQC.js.map +1 -0
  23. package/dist/chunks/daemon-log-Ccu-69vB.js +179 -0
  24. package/dist/chunks/daemon-log-Ccu-69vB.js.map +1 -0
  25. package/dist/chunks/deploy-CggSOEkq.js +144 -0
  26. package/dist/chunks/deploy-CggSOEkq.js.map +1 -0
  27. package/dist/chunks/{docker-Cy9Lyvda.js → docker--Un0uLfF.js} +32 -68
  28. package/dist/chunks/docker--Un0uLfF.js.map +1 -0
  29. package/dist/chunks/{down-C59ne5aM.js → down-CpIN7LEQ.js} +34 -94
  30. package/dist/chunks/down-CpIN7LEQ.js.map +1 -0
  31. package/dist/chunks/exposure-CDJNvOCK.js +229 -0
  32. package/dist/chunks/exposure-CDJNvOCK.js.map +1 -0
  33. package/dist/chunks/import-Bd4VZH0f.js +205 -0
  34. package/dist/chunks/import-Bd4VZH0f.js.map +1 -0
  35. package/dist/chunks/import-plan--fDS_l5r.js +147 -0
  36. package/dist/chunks/import-plan--fDS_l5r.js.map +1 -0
  37. package/dist/chunks/import-write-BTfbeV26.js +42 -0
  38. package/dist/chunks/import-write-BTfbeV26.js.map +1 -0
  39. package/dist/chunks/{init-BZ7hK9Vf.js → init-Bv3oH65x.js} +14 -50
  40. package/dist/chunks/init-Bv3oH65x.js.map +1 -0
  41. package/dist/chunks/job-CYOdN6Ub.js +341 -0
  42. package/dist/chunks/job-CYOdN6Ub.js.map +1 -0
  43. package/dist/chunks/jobs-BX4ahcfh.js +489 -0
  44. package/dist/chunks/jobs-BX4ahcfh.js.map +1 -0
  45. package/dist/chunks/last-stop-DD3lHwo_.js +42 -0
  46. package/dist/chunks/last-stop-DD3lHwo_.js.map +1 -0
  47. package/dist/chunks/layout-D0ysDNav.js +18 -0
  48. package/dist/chunks/layout-D0ysDNav.js.map +1 -0
  49. package/dist/chunks/lazy-kfcBNeqj.js +48 -0
  50. package/dist/chunks/lazy-kfcBNeqj.js.map +1 -0
  51. package/dist/chunks/log-buffer-B7jmn7ts.js +110 -0
  52. package/dist/chunks/log-buffer-B7jmn7ts.js.map +1 -0
  53. package/dist/chunks/log-files-CZL2UhuE.js +488 -0
  54. package/dist/chunks/log-files-CZL2UhuE.js.map +1 -0
  55. package/dist/chunks/{logger-B5U4GD3j.js → logger-BnrKTBHQ.js} +2 -6
  56. package/dist/chunks/logger-BnrKTBHQ.js.map +1 -0
  57. package/dist/chunks/{logs---TI_bxM.js → logs-DxKI6OW2.js} +23 -73
  58. package/dist/chunks/logs-DxKI6OW2.js.map +1 -0
  59. package/dist/chunks/ls-BseUHy_m.js +128 -0
  60. package/dist/chunks/ls-BseUHy_m.js.map +1 -0
  61. package/dist/chunks/migrate-D4w_dXDm.js +268 -0
  62. package/dist/chunks/migrate-D4w_dXDm.js.map +1 -0
  63. package/dist/chunks/{nanny-rewguyXg.js → nanny-BWh7nuvv.js} +21 -14
  64. package/dist/chunks/nanny-BWh7nuvv.js.map +1 -0
  65. package/dist/chunks/{nanny-Dnun3hVB.js → nanny-BjF2-1pv.js} +3 -3
  66. package/dist/chunks/{nanny-Dnun3hVB.js.map → nanny-BjF2-1pv.js.map} +1 -1
  67. package/dist/chunks/nanny-DGTXVq5d.js +806 -0
  68. package/dist/chunks/nanny-DGTXVq5d.js.map +1 -0
  69. package/dist/chunks/{nanny-sweep-ClVuNJRo.js → nanny-sweep-hjmZ_p7S.js} +14 -24
  70. package/dist/chunks/nanny-sweep-hjmZ_p7S.js.map +1 -0
  71. package/dist/chunks/{nearest-6KgQEDUe.js → nearest-DOx4jySJ.js} +2 -10
  72. package/dist/chunks/nearest-DOx4jySJ.js.map +1 -0
  73. package/dist/chunks/{parse-DhmG26fI.js → parse-DVMPLUDe.js} +47 -72
  74. package/dist/chunks/parse-DVMPLUDe.js.map +1 -0
  75. package/dist/chunks/password-policy-Clq6PGE-.js +9 -0
  76. package/dist/chunks/password-policy-Clq6PGE-.js.map +1 -0
  77. package/dist/chunks/{paths-CGlGDrOU.js → paths-C34-TJLh.js} +32 -56
  78. package/dist/chunks/paths-C34-TJLh.js.map +1 -0
  79. package/dist/chunks/{port-k5VBw8t9.js → port-CnsrxKNR.js} +23 -70
  80. package/dist/chunks/port-CnsrxKNR.js.map +1 -0
  81. package/dist/chunks/process-CboOFPU_.js +192 -0
  82. package/dist/chunks/process-CboOFPU_.js.map +1 -0
  83. package/dist/chunks/{restart-BYu_E7x5.js → restart-C0J8dZ2L.js} +11 -29
  84. package/dist/chunks/restart-C0J8dZ2L.js.map +1 -0
  85. package/dist/chunks/run-deploy-DoNDvwT4.js +91 -0
  86. package/dist/chunks/run-deploy-DoNDvwT4.js.map +1 -0
  87. package/dist/chunks/{schema-B240VXcV.js → schema-CZ6f-PHD.js} +7 -20
  88. package/dist/chunks/schema-CZ6f-PHD.js.map +1 -0
  89. package/dist/chunks/secret-MY397r90.js +219 -0
  90. package/dist/chunks/secret-MY397r90.js.map +1 -0
  91. package/dist/chunks/secrets-CG5N4lwY.js +1061 -0
  92. package/dist/chunks/secrets-CG5N4lwY.js.map +1 -0
  93. package/dist/chunks/server-Dm_dXfTW.js +255 -0
  94. package/dist/chunks/server-Dm_dXfTW.js.map +1 -0
  95. package/dist/chunks/server-attention-UQwYXqKe.js +10 -0
  96. package/dist/chunks/server-attention-UQwYXqKe.js.map +1 -0
  97. package/dist/chunks/server-create-D7nvhgBd.js +96 -0
  98. package/dist/chunks/server-create-D7nvhgBd.js.map +1 -0
  99. package/dist/chunks/server-ids-BEQD2rFz.js +23 -0
  100. package/dist/chunks/server-ids-BEQD2rFz.js.map +1 -0
  101. package/dist/chunks/server-vars-DMYmHutL.js +27 -0
  102. package/dist/chunks/server-vars-DMYmHutL.js.map +1 -0
  103. package/dist/chunks/service-C8l-ewNA.js +585 -0
  104. package/dist/chunks/service-C8l-ewNA.js.map +1 -0
  105. package/dist/chunks/{settings-xu-XTfWg.js → settings-CtYDs5PX.js} +62 -78
  106. package/dist/chunks/settings-CtYDs5PX.js.map +1 -0
  107. package/dist/chunks/{setup-temp-CAN4_bA-.js → setup-temp-TAtDmMMU.js} +43 -37
  108. package/dist/chunks/setup-temp-TAtDmMMU.js.map +1 -0
  109. package/dist/chunks/shape-CDGeYl_J.js +9 -0
  110. package/dist/chunks/shape-CDGeYl_J.js.map +1 -0
  111. package/dist/chunks/{src-BOBh9MBf.js → src-BnzkVy_M.js} +12547 -10578
  112. package/dist/chunks/src-BnzkVy_M.js.map +1 -0
  113. package/dist/chunks/{status-B6f2-qhs.js → status-efbbfYZQ.js} +53 -26
  114. package/dist/chunks/status-efbbfYZQ.js.map +1 -0
  115. package/dist/chunks/store-Bs_Lljjm.js +2082 -0
  116. package/dist/chunks/store-Bs_Lljjm.js.map +1 -0
  117. package/dist/chunks/template-xan58bJh.js +28 -0
  118. package/dist/chunks/template-xan58bJh.js.map +1 -0
  119. package/dist/chunks/token-DDeWfZA4.js +142 -0
  120. package/dist/chunks/token-DDeWfZA4.js.map +1 -0
  121. package/dist/chunks/{ui-D562aqw5.js → ui-BcIAtyxE.js} +68 -79
  122. package/dist/chunks/ui-BcIAtyxE.js.map +1 -0
  123. package/dist/chunks/{ui-dir-CsU3uLNV.js → ui-dir-ClCzVRc3.js} +3 -7
  124. package/dist/chunks/ui-dir-ClCzVRc3.js.map +1 -0
  125. package/dist/chunks/ui-format-CDvvqOoi.js +53 -0
  126. package/dist/chunks/ui-format-CDvvqOoi.js.map +1 -0
  127. package/dist/chunks/{ui-release-DKzVvlLd.js → ui-release-XbJ85pYI.js} +36 -38
  128. package/dist/chunks/ui-release-XbJ85pYI.js.map +1 -0
  129. package/dist/chunks/{ui-revert-EkBBwRTt.js → ui-revert-Dgawq7ze.js} +4 -4
  130. package/dist/chunks/ui-revert-Dgawq7ze.js.map +1 -0
  131. package/dist/chunks/{ui-switch-BnZTdMDd.js → ui-switch-CfQMbZ0g.js} +31 -38
  132. package/dist/chunks/ui-switch-CfQMbZ0g.js.map +1 -0
  133. package/dist/chunks/{ui-update-_xryLYxw.js → ui-update-B3PPivUm.js} +30 -48
  134. package/dist/chunks/ui-update-B3PPivUm.js.map +1 -0
  135. package/dist/chunks/ui-update-CAiH2tFb.js +109 -0
  136. package/dist/chunks/ui-update-CAiH2tFb.js.map +1 -0
  137. package/dist/chunks/{up-DNZuTi2q.js → up-BQSnYxYd.js} +47 -53
  138. package/dist/chunks/up-BQSnYxYd.js.map +1 -0
  139. package/dist/chunks/{usage-BrnDARNM.js → usage-KG8TeOio.js} +7 -20
  140. package/dist/chunks/usage-KG8TeOio.js.map +1 -0
  141. package/dist/chunks/{workspaces-DYcfvKV_.js → workspaces-D9akpzU8.js} +80 -68
  142. package/dist/chunks/workspaces-D9akpzU8.js.map +1 -0
  143. package/dist/chunks/{wsl-temperature-BiCI4iK6.js → wsl-temperature-D-_d4Yk1.js} +47 -42
  144. package/dist/chunks/wsl-temperature-D-_d4Yk1.js.map +1 -0
  145. package/dist/cli.js +306 -238
  146. package/dist/cli.js.map +1 -1
  147. package/dist/client.js +76 -29
  148. package/dist/client.js.map +1 -1
  149. package/dist/types/api/acme.d.ts +3 -7
  150. package/dist/types/api/auth/$.routes.d.ts +107 -16
  151. package/dist/types/api/backups.d.ts +5 -5
  152. package/dist/types/api/control.d.ts +747 -38
  153. package/dist/types/api/ddns.d.ts +13 -18
  154. package/dist/types/api/events.d.ts +9 -3
  155. package/dist/types/api/health.d.ts +2 -4
  156. package/dist/types/api/jobs.d.ts +438 -0
  157. package/dist/types/api/logs.d.ts +20 -0
  158. package/dist/types/api/metrics.d.ts +2 -5
  159. package/dist/types/api/notifications.d.ts +3 -6
  160. package/dist/types/api/proxy.d.ts +63 -23
  161. package/dist/types/api/server-ops.d.ts +17 -0
  162. package/dist/types/api/servers/$.routes.d.ts +418 -186
  163. package/dist/types/api/session-required.d.ts +16 -0
  164. package/dist/types/api/settings.d.ts +7 -7
  165. package/dist/types/api/state.d.ts +100 -10
  166. package/dist/types/api/static.d.ts +2 -2
  167. package/dist/types/api/tls.d.ts +2 -5
  168. package/dist/types/api/workspaces/$.routes.d.ts +186 -12
  169. package/dist/types/api/wsl-temperature.d.ts +4 -10
  170. package/dist/types/app.d.ts +4511 -2778
  171. package/dist/types/cli/account.d.ts +23 -0
  172. package/dist/types/cli/add.d.ts +96 -0
  173. package/dist/types/cli/args.d.ts +24 -35
  174. package/dist/types/cli/backup-offline.d.ts +2 -8
  175. package/dist/types/cli/backup.d.ts +12 -21
  176. package/dist/types/cli/down.d.ts +15 -41
  177. package/dist/types/cli/import-plan.d.ts +55 -0
  178. package/dist/types/cli/import-write.d.ts +5 -0
  179. package/dist/types/cli/import.d.ts +86 -0
  180. package/dist/types/cli/io.d.ts +26 -35
  181. package/dist/types/cli/job.d.ts +99 -0
  182. package/dist/types/cli/logs.d.ts +1 -10
  183. package/dist/types/cli/ls.d.ts +57 -0
  184. package/dist/types/cli/migrate.d.ts +31 -8
  185. package/dist/types/cli/nearest.d.ts +1 -9
  186. package/dist/types/cli/run-deploy.d.ts +36 -0
  187. package/dist/types/cli/secret.d.ts +90 -0
  188. package/dist/types/cli/server.d.ts +6 -15
  189. package/dist/types/cli/service.d.ts +135 -0
  190. package/dist/types/cli/setup-temp.d.ts +17 -13
  191. package/dist/types/cli/status.d.ts +7 -1
  192. package/dist/types/cli/token.d.ts +6 -0
  193. package/dist/types/cli/ui-switch.d.ts +3 -14
  194. package/dist/types/cli/ui-update.d.ts +3 -16
  195. package/dist/types/cli/up.d.ts +9 -22
  196. package/dist/types/cli/usage.d.ts +2 -6
  197. package/dist/types/cli.d.ts +1 -10
  198. package/dist/types/client.d.ts +4099 -1142
  199. package/dist/types/config/accounts.d.ts +16 -0
  200. package/dist/types/config/jobs.d.ts +68 -0
  201. package/dist/types/config/layout.d.ts +2 -8
  202. package/dist/types/config/migrations.d.ts +9 -41
  203. package/dist/types/config/parse.d.ts +8 -13
  204. package/dist/types/config/patch.d.ts +1 -6
  205. package/dist/types/config/schema.d.ts +16 -18
  206. package/dist/types/config/secret-parts.d.ts +6 -27
  207. package/dist/types/config/secrets.d.ts +167 -88
  208. package/dist/types/config/seed.d.ts +1 -6
  209. package/dist/types/config/server-ids.d.ts +2 -11
  210. package/dist/types/config/settings.d.ts +13 -49
  211. package/dist/types/config/store.d.ts +17 -54
  212. package/dist/types/config/workspaces.d.ts +24 -56
  213. package/dist/types/helpers/action-result.d.ts +18 -32
  214. package/dist/types/helpers/atomic.d.ts +1 -4
  215. package/dist/types/helpers/backoff.d.ts +0 -1
  216. package/dist/types/helpers/bind.d.ts +3 -11
  217. package/dist/types/helpers/config-text.d.ts +4 -19
  218. package/dist/types/helpers/cookies.d.ts +2 -7
  219. package/dist/types/helpers/copy-tree.d.ts +4 -12
  220. package/dist/types/helpers/daemon-log.d.ts +8 -33
  221. package/dist/types/helpers/daemon.d.ts +20 -70
  222. package/dist/types/helpers/deferred.d.ts +2 -4
  223. package/dist/types/helpers/env-file.d.ts +2 -7
  224. package/dist/types/helpers/error.d.ts +3 -14
  225. package/dist/types/helpers/event-stream.d.ts +18 -10
  226. package/dist/types/helpers/factory.d.ts +2 -3
  227. package/dist/types/helpers/last-stop.d.ts +5 -12
  228. package/dist/types/helpers/logger.d.ts +1 -5
  229. package/dist/types/helpers/open.d.ts +0 -1
  230. package/dist/types/helpers/openapi.d.ts +19 -5
  231. package/dist/types/helpers/paths.d.ts +18 -53
  232. package/dist/types/helpers/restore-lock.d.ts +2 -17
  233. package/dist/types/helpers/runtime.d.ts +3 -13
  234. package/dist/types/helpers/secret-compare.d.ts +2 -10
  235. package/dist/types/helpers/server-create.d.ts +15 -0
  236. package/dist/types/helpers/shell.d.ts +2 -16
  237. package/dist/types/helpers/sse.d.ts +8 -6
  238. package/dist/types/helpers/ui-dir.d.ts +1 -5
  239. package/dist/types/helpers/utf8-chunks.d.ts +2 -8
  240. package/dist/types/helpers/validate.d.ts +2 -4
  241. package/dist/types/helpers/validator.d.ts +8 -4
  242. package/dist/types/helpers/version.d.ts +1 -6
  243. package/dist/types/helpers/workspace.d.ts +24 -16
  244. package/dist/types/index.d.ts +2 -3
  245. package/dist/types/middleware/auth.d.ts +8 -27
  246. package/dist/types/middleware/body-limit.d.ts +10 -0
  247. package/dist/types/middleware/host.d.ts +4 -23
  248. package/dist/types/middleware/loopback.d.ts +1 -8
  249. package/dist/types/middleware/token-scope.d.ts +34 -0
  250. package/dist/types/node-compat.d.ts +43 -0
  251. package/dist/types/openapi-reference.d.ts +4 -19
  252. package/dist/types/openapi.d.ts +5 -8
  253. package/dist/types/providers/archive.d.ts +8 -25
  254. package/dist/types/providers/backup-hook.d.ts +4 -19
  255. package/dist/types/providers/ddns/dyndns2.d.ts +0 -3
  256. package/dist/types/providers/ddns/index.d.ts +2 -3
  257. package/dist/types/providers/ddns/ip.d.ts +2 -12
  258. package/dist/types/providers/ddns/namecheap-api.d.ts +3 -2
  259. package/dist/types/providers/ddns/types.d.ts +6 -32
  260. package/dist/types/providers/ddns/zone.d.ts +1 -4
  261. package/dist/types/providers/docker.d.ts +18 -45
  262. package/dist/types/providers/entry-state.d.ts +4 -9
  263. package/dist/types/providers/health-check.d.ts +1 -5
  264. package/dist/types/providers/host.d.ts +33 -108
  265. package/dist/types/providers/identity.d.ts +9 -34
  266. package/dist/types/providers/log-tail.d.ts +14 -24
  267. package/dist/types/providers/nanny-sweep.d.ts +8 -25
  268. package/dist/types/providers/nanny.d.ts +16 -58
  269. package/dist/types/providers/port.d.ts +28 -83
  270. package/dist/types/providers/proc.d.ts +22 -80
  271. package/dist/types/providers/process.d.ts +12 -36
  272. package/dist/types/providers/proxy/admin.d.ts +11 -0
  273. package/dist/types/providers/proxy/types.d.ts +4 -16
  274. package/dist/types/providers/telegram.d.ts +1 -17
  275. package/dist/types/providers/ui-release.d.ts +15 -25
  276. package/dist/types/providers/webhook.d.ts +8 -29
  277. package/dist/types/providers/wsl-temperature.d.ts +13 -22
  278. package/dist/types/services/acme-challenge.d.ts +2 -16
  279. package/dist/types/services/auth.d.ts +65 -80
  280. package/dist/types/services/backups/archive-safety.d.ts +30 -0
  281. package/dist/types/services/backups/paths.d.ts +31 -0
  282. package/dist/types/services/backups.d.ts +61 -271
  283. package/dist/types/services/config-watch.d.ts +3 -15
  284. package/dist/types/services/control-server.d.ts +6 -10
  285. package/dist/types/services/ddns.d.ts +12 -13
  286. package/dist/types/services/dependencies.d.ts +3 -14
  287. package/dist/types/services/deploy.d.ts +34 -0
  288. package/dist/types/services/events.d.ts +15 -9
  289. package/dist/types/services/exposure.d.ts +13 -63
  290. package/dist/types/services/history.d.ts +5 -14
  291. package/dist/types/services/host-monitor.d.ts +6 -11
  292. package/dist/types/services/init.d.ts +5 -35
  293. package/dist/types/services/job-ledger.d.ts +27 -0
  294. package/dist/types/services/jobs.d.ts +113 -0
  295. package/dist/types/services/log-buffer.d.ts +7 -8
  296. package/dist/types/services/log-files.d.ts +12 -42
  297. package/dist/types/services/log-relay.d.ts +3 -13
  298. package/dist/types/services/nanny.d.ts +3 -10
  299. package/dist/types/services/notifications.d.ts +31 -61
  300. package/dist/types/services/panel.d.ts +32 -78
  301. package/dist/types/services/proxy-certificates/certificates.d.ts +31 -69
  302. package/dist/types/services/proxy-config.d.ts +15 -36
  303. package/dist/types/services/proxy-dns01.d.ts +14 -0
  304. package/dist/types/services/proxy.d.ts +73 -254
  305. package/dist/types/services/scheduler.d.ts +46 -0
  306. package/dist/types/services/state.d.ts +17 -8
  307. package/dist/types/services/supervisor/compose.d.ts +2 -6
  308. package/dist/types/services/supervisor/entry.d.ts +29 -32
  309. package/dist/types/services/supervisor/health.d.ts +8 -31
  310. package/dist/types/services/supervisor/job-run.d.ts +36 -0
  311. package/dist/types/services/supervisor/output.d.ts +13 -77
  312. package/dist/types/services/supervisor/persistent.d.ts +5 -11
  313. package/dist/types/services/supervisor/port-preflight.d.ts +4 -10
  314. package/dist/types/services/supervisor/records.d.ts +27 -60
  315. package/dist/types/services/supervisor/restart-required.d.ts +13 -0
  316. package/dist/types/services/supervisor/spawn.d.ts +3 -5
  317. package/dist/types/services/supervisor/view.d.ts +3 -1
  318. package/dist/types/services/supervisor.d.ts +31 -43
  319. package/dist/types/services/tls.d.ts +6 -17
  320. package/dist/types/services/ui-update.d.ts +19 -17
  321. package/dist/types/services/ui.d.ts +10 -19
  322. package/dist/types/shared/action-outcome.d.ts +2 -7
  323. package/dist/types/shared/api-client.d.ts +133 -177
  324. package/dist/types/shared/api-scopes.d.ts +17 -0
  325. package/dist/types/shared/backup-scope.d.ts +16 -90
  326. package/dist/types/shared/clone.d.ts +2 -11
  327. package/dist/types/shared/contracts/accounts.d.ts +99 -0
  328. package/dist/types/shared/contracts/backups.d.ts +219 -0
  329. package/dist/types/shared/contracts/ddns.d.ts +208 -0
  330. package/dist/types/shared/contracts/frames.d.ts +1395 -0
  331. package/dist/types/shared/contracts/index.d.ts +3 -0
  332. package/dist/types/shared/contracts/logs.d.ts +107 -0
  333. package/dist/types/shared/contracts/proxy.d.ts +303 -0
  334. package/dist/types/shared/contracts.d.ts +852 -1982
  335. package/dist/types/shared/cpu-scale.d.ts +3 -19
  336. package/dist/types/shared/crash-cause.d.ts +8 -0
  337. package/dist/types/shared/cron.d.ts +70 -0
  338. package/dist/types/shared/ddns-form.d.ts +9 -43
  339. package/dist/types/shared/endpoint.d.ts +1 -7
  340. package/dist/types/shared/error-codes.d.ts +438 -0
  341. package/dist/types/shared/error-message.d.ts +1 -7
  342. package/dist/types/shared/fields.d.ts +7 -17
  343. package/dist/types/shared/form-repair.d.ts +1 -5
  344. package/dist/types/shared/generated.d.ts +3 -19
  345. package/dist/types/shared/host-readings.d.ts +25 -128
  346. package/dist/types/shared/lazy.d.ts +1 -1
  347. package/dist/types/shared/live-frames.d.ts +2 -8
  348. package/dist/types/shared/live-series.d.ts +2 -8
  349. package/dist/types/shared/live-store.d.ts +4 -8
  350. package/dist/types/shared/log-download.d.ts +6 -0
  351. package/dist/types/shared/meta.d.ts +6 -0
  352. package/dist/types/shared/password-policy.d.ts +10 -0
  353. package/dist/types/shared/patch-diff.d.ts +13 -72
  354. package/dist/types/shared/port-reading.d.ts +18 -0
  355. package/dist/types/shared/probe-latency.d.ts +3 -21
  356. package/dist/types/shared/proxy-form.d.ts +33 -74
  357. package/dist/types/shared/proxy-validate.d.ts +11 -0
  358. package/dist/types/shared/query-params.d.ts +8 -0
  359. package/dist/types/shared/server-attention.d.ts +2 -27
  360. package/dist/types/shared/server-form.d.ts +15 -54
  361. package/dist/types/shared/server-key.d.ts +1 -12
  362. package/dist/types/shared/server-readings.d.ts +7 -32
  363. package/dist/types/shared/server-url.d.ts +9 -31
  364. package/dist/types/shared/shape.d.ts +1 -16
  365. package/dist/types/shared/stream-access.d.ts +2 -8
  366. package/dist/types/shared/ui-format.d.ts +25 -65
  367. package/docs/API.md +315 -107
  368. package/docs/BACKUPS.md +61 -56
  369. package/docs/CLI.md +255 -49
  370. package/docs/DDNS.md +35 -49
  371. package/docs/JOBS.md +129 -0
  372. package/docs/NOTIFICATIONS.md +58 -90
  373. package/docs/REVERSE_PROXY.md +116 -188
  374. package/docs/SECURITY.md +126 -44
  375. package/docs/SERVERS.md +282 -409
  376. package/docs/UI_CREATION.md +90 -47
  377. package/docs/demo/blank-host-restore.sh +31 -7
  378. package/package.json +15 -6
  379. package/scripts/prepare.mjs +47 -0
  380. package/uis/stock/dist/assets/CopyButton-8mliL0xi.js +1 -0
  381. package/uis/stock/dist/assets/GlobalSettingsView-BINXY77E.js +1 -0
  382. package/uis/stock/dist/assets/LogViewer-kiSnTwdY.js +1 -0
  383. package/uis/stock/dist/assets/LogsView-DDXf_ONs.js +1 -0
  384. package/uis/stock/dist/assets/Modal-lrUuViF2.js +39 -0
  385. package/uis/stock/dist/assets/ProxyView-uXMaJdSQ.js +1 -0
  386. package/uis/stock/dist/assets/ServerDetailView-CW0Vb_c0.js +4 -0
  387. package/uis/stock/dist/assets/SettingsShell-B135xWjJ.js +1 -0
  388. package/uis/stock/dist/assets/SettingsView-BLtWxVkl.js +2 -0
  389. package/uis/stock/dist/assets/de-BIoTrHBQ.js +1 -0
  390. package/uis/stock/dist/assets/es-x4-ih8lH.js +1 -0
  391. package/uis/stock/dist/assets/fr-DatqBBkO.js +1 -0
  392. package/uis/stock/dist/assets/index-CnojaKcA.css +2 -0
  393. package/uis/stock/dist/assets/index-D-CiZReu.js +16 -0
  394. package/uis/stock/dist/assets/ja-CW1703Gw.js +1 -0
  395. package/uis/stock/dist/assets/ko-wFbT4XtK.js +1 -0
  396. package/uis/stock/dist/assets/ru-C1p5C4VN.js +1 -0
  397. package/uis/stock/dist/assets/useUnsavedGuard-BcsXsfCC.js +9 -0
  398. package/uis/stock/dist/assets/vi-CDqr0uie.js +1 -0
  399. package/uis/stock/dist/assets/zh-CN-BJ7iit-X.js +1 -0
  400. package/uis/stock/dist/index.html +4 -3
  401. package/uis/stock/dist/ui.json +3 -3
  402. package/dist/chunks/archive-DP-XQR8X.js.map +0 -1
  403. package/dist/chunks/atomic-C1PfJpE7.js.map +0 -1
  404. package/dist/chunks/backup-DeAJ3pbO.js.map +0 -1
  405. package/dist/chunks/backups-twva7x2n.js +0 -4691
  406. package/dist/chunks/backups-twva7x2n.js.map +0 -1
  407. package/dist/chunks/config-text-DifCHhnz.js +0 -50
  408. package/dist/chunks/config-text-DifCHhnz.js.map +0 -1
  409. package/dist/chunks/contracts-CMBD1TF9.js.map +0 -1
  410. package/dist/chunks/daemon-CofN9k6Q.js +0 -247
  411. package/dist/chunks/daemon-CofN9k6Q.js.map +0 -1
  412. package/dist/chunks/daemon-log-BVj8cDEo.js +0 -241
  413. package/dist/chunks/daemon-log-BVj8cDEo.js.map +0 -1
  414. package/dist/chunks/docker-Cy9Lyvda.js.map +0 -1
  415. package/dist/chunks/down-C59ne5aM.js.map +0 -1
  416. package/dist/chunks/init-BZ7hK9Vf.js.map +0 -1
  417. package/dist/chunks/last-stop-C-BXz_XI.js +0 -53
  418. package/dist/chunks/last-stop-C-BXz_XI.js.map +0 -1
  419. package/dist/chunks/layout-DwTtmund.js +0 -24
  420. package/dist/chunks/layout-DwTtmund.js.map +0 -1
  421. package/dist/chunks/lazy-Ce5zEAq1.js +0 -66
  422. package/dist/chunks/lazy-Ce5zEAq1.js.map +0 -1
  423. package/dist/chunks/log-buffer-Dy9HHDMD.js +0 -414
  424. package/dist/chunks/log-buffer-Dy9HHDMD.js.map +0 -1
  425. package/dist/chunks/logger-B5U4GD3j.js.map +0 -1
  426. package/dist/chunks/logs---TI_bxM.js.map +0 -1
  427. package/dist/chunks/migrate-Cfoq-Vgh.js +0 -155
  428. package/dist/chunks/migrate-Cfoq-Vgh.js.map +0 -1
  429. package/dist/chunks/nanny-COyCJXj9.js +0 -1172
  430. package/dist/chunks/nanny-COyCJXj9.js.map +0 -1
  431. package/dist/chunks/nanny-rewguyXg.js.map +0 -1
  432. package/dist/chunks/nanny-sweep-ClVuNJRo.js.map +0 -1
  433. package/dist/chunks/nearest-6KgQEDUe.js.map +0 -1
  434. package/dist/chunks/parse-DhmG26fI.js.map +0 -1
  435. package/dist/chunks/paths-CGlGDrOU.js.map +0 -1
  436. package/dist/chunks/port-k5VBw8t9.js.map +0 -1
  437. package/dist/chunks/restart-BYu_E7x5.js.map +0 -1
  438. package/dist/chunks/schema-B240VXcV.js.map +0 -1
  439. package/dist/chunks/secrets-BieELnZh.js +0 -562
  440. package/dist/chunks/secrets-BieELnZh.js.map +0 -1
  441. package/dist/chunks/server-By-zktjx.js +0 -169
  442. package/dist/chunks/server-By-zktjx.js.map +0 -1
  443. package/dist/chunks/server-ids-DRuNLVCV.js +0 -32
  444. package/dist/chunks/server-ids-DRuNLVCV.js.map +0 -1
  445. package/dist/chunks/set-password-D5vZqqSX.js +0 -43
  446. package/dist/chunks/set-password-D5vZqqSX.js.map +0 -1
  447. package/dist/chunks/set-token-xJkA1IZp.js +0 -78
  448. package/dist/chunks/set-token-xJkA1IZp.js.map +0 -1
  449. package/dist/chunks/settings-xu-XTfWg.js.map +0 -1
  450. package/dist/chunks/setup-temp-CAN4_bA-.js.map +0 -1
  451. package/dist/chunks/shape-DnTKzjQ2.js +0 -24
  452. package/dist/chunks/shape-DnTKzjQ2.js.map +0 -1
  453. package/dist/chunks/src-BOBh9MBf.js.map +0 -1
  454. package/dist/chunks/status-B6f2-qhs.js.map +0 -1
  455. package/dist/chunks/ui-D562aqw5.js.map +0 -1
  456. package/dist/chunks/ui-dir-CsU3uLNV.js.map +0 -1
  457. package/dist/chunks/ui-release-DKzVvlLd.js.map +0 -1
  458. package/dist/chunks/ui-revert-EkBBwRTt.js.map +0 -1
  459. package/dist/chunks/ui-switch-BnZTdMDd.js.map +0 -1
  460. package/dist/chunks/ui-update-_xryLYxw.js.map +0 -1
  461. package/dist/chunks/up-DNZuTi2q.js.map +0 -1
  462. package/dist/chunks/usage-BrnDARNM.js.map +0 -1
  463. package/dist/chunks/workspaces-DYcfvKV_.js.map +0 -1
  464. package/dist/chunks/wsl-temperature-BiCI4iK6.js.map +0 -1
  465. package/dist/types/cli/set-password.d.ts +0 -14
  466. package/dist/types/cli/set-token.d.ts +0 -21
  467. package/uis/stock/dist/assets/CopyButton-BUBKRJyY.js +0 -1
  468. package/uis/stock/dist/assets/GlobalSettingsView-yYMcRWvt.js +0 -1
  469. package/uis/stock/dist/assets/LogViewer-DIliXy62.js +0 -1
  470. package/uis/stock/dist/assets/LogsView-B7Z-7RNg.js +0 -1
  471. package/uis/stock/dist/assets/Modal-DmKa5Qpp.js +0 -39
  472. package/uis/stock/dist/assets/ProxyView-DvZiNkwb.js +0 -1
  473. package/uis/stock/dist/assets/ServerDetailView-6idGT_EX.js +0 -2
  474. package/uis/stock/dist/assets/SettingsShell-CeGtleYI.js +0 -1
  475. package/uis/stock/dist/assets/SettingsView-BrhJIrmk.js +0 -2
  476. package/uis/stock/dist/assets/de-BRITeb0H.js +0 -1
  477. package/uis/stock/dist/assets/es-B2zIEssV.js +0 -1
  478. package/uis/stock/dist/assets/fr-s0ZOBEqh.js +0 -1
  479. package/uis/stock/dist/assets/index-C1MehbKy.css +0 -2
  480. package/uis/stock/dist/assets/index-CnBN54wF.js +0 -15
  481. package/uis/stock/dist/assets/ja-CU7MR85V.js +0 -1
  482. package/uis/stock/dist/assets/ko-tL5Me6d-.js +0 -1
  483. package/uis/stock/dist/assets/ru-92yrvkNJ.js +0 -1
  484. package/uis/stock/dist/assets/vi-CzvY16k2.js +0 -1
  485. package/uis/stock/dist/assets/zh-CN-DDwFW_uW.js +0 -1
package/README.md CHANGED
@@ -10,10 +10,8 @@
10
10
 
11
11
  Point it at the things you run — a gateway, a media server, a bot, a database — and it starts them,
12
12
  watches them, restarts what dies, and shows you one page of what is going on. Split them into
13
- [workspaces](#-workspaces) when one panel holds more than one setup (a workspace is just a named
14
- group that owns its own servers, secrets and logs), and
15
- [bring your own UI](#-bring-your-own-ui-byou) (BYOU: a static site the panel serves instead of the
16
- stock one) when you want one that fits you exactly.
13
+ [workspaces](#-workspaces) when one panel holds more than one setup, and
14
+ [bring your own UI](#-bring-your-own-ui-byou) when you want one that fits you exactly.
17
15
 
18
16
  [![npm](https://img.shields.io/npm/v/home-hosted.svg)](https://www.npmjs.com/package/home-hosted)
19
17
  [![Downloads](https://img.shields.io/npm/dm/home-hosted.svg)](https://www.npmjs.com/package/home-hosted)
@@ -21,7 +19,7 @@ stock one) when you want one that fits you exactly.
21
19
  [![License](https://img.shields.io/npm/l/home-hosted.svg)](./LICENSE)
22
20
  [![Node](https://img.shields.io/node/v/home-hosted.svg)](https://nodejs.org)
23
21
 
24
- [🚀 Quick start](#-quick-start) · [🗂 Workspaces](#-workspaces) · [🧩 Servers](./docs/SERVERS.md) · [🤖 Agents & API](#-agents-scripts-and-your-own-tools) · [✨ Features](#-features) · [🛠 CLI](#-cli) · [🔔 Notifications](./docs/NOTIFICATIONS.md) · [🌐 Dynamic DNS](./docs/DDNS.md) · [💾 Backups](#-backups) · [🔀 Reverse proxy](./docs/REVERSE_PROXY.md) · [🔐 Security](#-security) · [🎨 BYOU](#-bring-your-own-ui-byou) · [❓ FAQ](#-faq)
22
+ [🚀 Quick start](#-quick-start) · [🗂 Workspaces](#-workspaces) · [🧩 Servers](./docs/SERVERS.md) · [⏱ Jobs](./docs/JOBS.md) · [🤖 Agents & API](#-agents-scripts-and-your-own-tools) · [✨ Features](#-features) · [🛠 CLI](#-cli) · [🔔 Notifications](./docs/NOTIFICATIONS.md) · [🌐 Dynamic DNS](./docs/DDNS.md) · [💾 Backups](#-backups) · [🔀 Reverse proxy](./docs/REVERSE_PROXY.md) · [🔐 Security](#-security) · [🎨 BYOU](#-bring-your-own-ui-byou) · [❓ FAQ](#-faq)
25
23
 
26
24
  </div>
27
25
 
@@ -72,7 +70,7 @@ stack.
72
70
  | ❌ **"Is it still running?"** | Health, CPU/memory, uptime and live logs per server |
73
71
  | ❌ **Silent deaths** | Restarted automatically, and you are told — in the panel, Telegram or a webhook |
74
72
  | ❌ **Fragile reboots** | `autostart` brings the stack back; one `down` stops it all cleanly |
75
- | ❌ **"Move it to the new box"** | One archive — config **and** data — restored on a blank host |
73
+ | ❌ **"Move it to the new box"** | One archive — config, secret environment values and declared data — restored on a blank host |
76
74
  | ✅ **home-hosted** | Declare it once, watch it forever |
77
75
 
78
76
  It ships with **no servers configured**: a server is a command, its arguments and its environment.
@@ -86,25 +84,28 @@ It ships with **no servers configured**: a server is a command, its arguments an
86
84
  ## ⚡ Quick start
87
85
 
88
86
  ```bash
89
- npx home-hosted # start it — detached, it keeps running — and print the first-run password
90
- npx home-hosted status # where it is, what is running, the first-run password until you change it
87
+ npx home-hosted # start it (detached) and print the first-run sign-in
88
+ npx home-hosted status # where it is, what is running, the first-run sign-in until you change it
91
89
  npx home-hosted down # stop the panel *and* everything it started
92
90
  ```
93
91
 
94
- Open **<http://127.0.0.1:3999>**, sign in with the printed password, and change it under **Global
95
- settings → Authentication**. Then supervise something: **➕ Add server** in the panel, or add an entry
96
- to `~/.home-hosted/.hh/default/servers.config.json` and run `npx home-hosted start <id>`.
97
- <sub>Needs Node 24+. `pnpm dlx home-hosted …` works too. `--port`/`--host` on `up` are saved to
98
- `settings.json`, so the next plain `up` binds the same way.</sub>
92
+ Open **<http://127.0.0.1:3999>** and sign in with what `up` printed — `sign in as default / <secret>`:
93
+ account id `default`, that secret. Set your own under **Global settings → Accounts**. Then supervise something — **➕ Add server** in the panel, or:
94
+
95
+ ```bash
96
+ npx home-hosted add web --port 4000 --secret-env DATABASE_URL -- node server.js # declare it (panel up or not)
97
+ npx home-hosted secret set web DATABASE_URL # its secret, prompted without echo
98
+ npx home-hosted start web # start it; waits until it answers on 4000
99
+ npx home-hosted ls # what this workspace declares
100
+ ```
101
+
102
+ <sub>Needs Node 24+; the CLI refuses an older one and names the version it found. `pnpm dlx home-hosted …`
103
+ works too.</sub>
99
104
 
100
105
  > [!IMPORTANT]
101
- > **Before you expose it to anything but this machine.** It listens on `127.0.0.1` until you say
102
- > otherwise, and it refuses to bind further — or to be put behind its own reverse proxy — while it
103
- > still has the generated password. So: set your own password first, *then* bind to `lan` (UI,
104
- > `settings.json`, or `up --host lan`). And an API token is **full admin**: it can create and start a
105
- > server entry, and an entry runs any command as the panel's user. Changing the password does **not**
106
- > revoke a token — rotate it with `set-token --generate`. The whole model, including which actions a
107
- > token is refused: [SECURITY.md](./docs/SECURITY.md).
106
+ > **Before you expose it beyond this machine**, set your own secret (12+ characters) — until then it
107
+ > refuses to bind past `127.0.0.1` — *then* bind to `lan` (UI, `settings.json`, or `up --host lan`).
108
+ > **Treat an `admin` account as a shell on this machine.** [SECURITY.md](./docs/SECURITY.md).
108
109
 
109
110
  <details>
110
111
  <summary><b>📦 Install it instead of npx-ing it</b></summary>
@@ -126,44 +127,32 @@ nothing of it is left behind.
126
127
  npx home-hosted init # every step has a default; --yes takes them all
127
128
  ```
128
129
 
129
- The project's scripts all pass `--home ./state`, and its `.gitignore` commits the server
130
- definitions while keeping secrets, logs, TLS keys and archives local:
131
-
132
- ```jsonc
133
- // package.json
134
- { "scripts": { "up": "home-hosted up --home ./state", "down": "home-hosted down --home ./state", "status": "home-hosted status --home ./state" } }
135
- ```
136
-
137
- Clone, `pnpm install`, `pnpm run up` — the same setup on any machine with Node. Give each project its
138
- own panel port (`control.port`, e.g. `4399`) so two can run side by side. Call it `pnpm run up`:
139
- `pnpm up` is pnpm's own update command. Worked example:
130
+ The project's scripts all pass `--home ./state`, and its `.gitignore` commits the server definitions
131
+ while keeping secrets, logs, TLS keys and archives local. Clone, `pnpm install`, `pnpm run up` — the
132
+ same setup on any machine with Node (`pnpm up` is pnpm's own update command). Give each project its own
133
+ panel port (`control.port`) so two can run side by side. Worked example:
140
134
  **[hhosted-ai-pack](https://github.com/NamesMT/hhosted-ai-pack)**.
141
135
 
142
136
  </details>
143
137
 
144
138
  <details>
145
- <summary><b>🧰 Start it at boot: systemd or Docker</b></summary>
146
-
147
- ```ini
148
- [Unit]
149
- Description=home-hosted
150
- After=network-online.target
151
-
152
- [Service]
153
- User=youruser
154
- WorkingDirectory=/srv/home-hosted
155
- Environment=HHOSTED_HOME=/srv/home-hosted
156
- ExecStart=/usr/local/bin/home-hosted up --foreground
157
- Restart=always
158
-
159
- [Install]
160
- WantedBy=multi-user.target
139
+ <summary><b>🧰 Start it at boot: systemd, launchd or Task Scheduler</b></summary>
140
+
141
+ ```bash
142
+ hh service install # a user service: systemd on Linux, launchd on macOS, Task Scheduler on Windows
143
+ hh service install --system # machine-wide, at boot (sudo / an administrator)
144
+ hh service status # installed? running?
145
+ hh service uninstall
161
146
  ```
162
147
 
148
+ The unit runs `up --foreground` and restarts the panel only after a failure; persistent entries keep
149
+ running when it stops. On Linux, a user service waits for a login after a reboot unless you run
150
+ `loginctl enable-linger`. Windows without an administrator, `--print`, containers:
151
+ [CLI.md](./docs/CLI.md#starting-at-boot).
152
+
163
153
  > [!CAUTION]
164
- > **Set `WorkingDirectory`.** Relative paths in your servers (`cwd`, `{projectDir}`, `dataEnvs`)
165
- > resolve against the directory the panel starts in, and systemd starts in `/`. Docker does the same
166
- > without `-w`. Or pin it with `HHOSTED_PROJECT`.
154
+ > **Under Docker, set the working directory** (`-w`) or `HHOSTED_PROJECT`: relative paths in your
155
+ > servers (`cwd`, `{projectDir}`, `dataEnvs`) resolve against it.
167
156
 
168
157
  </details>
169
158
 
@@ -172,55 +161,31 @@ WantedBy=multi-user.target
172
161
  ## 🤖 Agents, scripts and your own tools
173
162
 
174
163
  Everything the panel does goes through one HTTP API — the stock UI is just one client of it. Get a
175
- token, then plain HTTP:
164
+ credential, then plain HTTP:
176
165
 
177
166
  ```bash
178
- home-hosted set-token --generate # hh_9uA2… — printed once, only its hash is kept
179
- # (or Global settings → Authentication → Generate token)
167
+ home-hosted account create monitor --scope read,lifecycle # prints the secret once
180
168
 
181
- curl -H "Authorization: Bearer hh_…" http://127.0.0.1:3999/api/state
182
- curl -H "Authorization: Bearer hh_…" -X POST 'http://127.0.0.1:3999/api/servers/gateway/restart?workspace=default'
183
- curl -N -H "Authorization: Bearer hh_…" http://127.0.0.1:3999/api/events # live SSE
184
- home-hosted status --json # where everything is
169
+ curl -H "Authorization: Bearer monitor:hh_…" http://127.0.0.1:3999/api/state
170
+ curl -H "Authorization: Bearer monitor:hh_…" -X POST 'http://127.0.0.1:3999/api/servers/gateway/restart?workspace=default'
171
+ curl -N -H "Authorization: Bearer monitor:hh_…" http://127.0.0.1:3999/api/events # live SSE
185
172
  ```
186
173
 
187
- Building in TypeScript? `import { createClient } from 'home-hosted/client'` — a ~2 KB gzipped client
188
- (5.2 KB raw) typed from the panel's own routes, with the live event stream
189
- ([API.md](./docs/API.md#the-typescript-client)).
190
- Any other language: `GET /openapi/spec.json` documents every API route and its bodies (browse at
191
- `/openapi/ui`), so an OpenAPI generator gives you a typed client. `GET /healthz` needs no credential
192
- and is `503` while any server needs attention — point your uptime monitor at it.
174
+ - **TypeScript:** `import { createClient } from 'home-hosted/client'` — a small client typed from the
175
+ panel's own routes, with the live event stream ([API.md](./docs/API.md#the-typescript-client)).
176
+ - **Any other language:** `GET /openapi/spec.json` documents every route (browse at `/openapi/ui`), so an
177
+ OpenAPI generator gives you a typed client.
178
+ - **Uptime monitors:** `GET /healthz` needs no credential and is `503` while any server needs attention.
193
179
 
194
- > [!WARNING]
195
- > **A token is full admin.** It can create and start server entries, which run commands as the
196
- > panel's user. Keep it like a password; rotate with `set-token --generate`.
197
-
198
- <details>
199
- <summary><b>🌐 The endpoints worth knowing</b></summary>
200
-
201
- ✅ takes `?workspace=<id>` (omitted = the default workspace); ❌ is panel-wide.
202
-
203
- | | | |
204
- | --- | --- | --- |
205
- | `GET /api/state` | the full snapshot: settings, every workspace and server, host vitals | ❌ |
206
- | `GET /api/events` | SSE: `hello` (full state), then `state`, `server`, `log`, `ping` | optional |
207
- | `GET`/`PUT`/`PATCH`/`DELETE /api/servers/:id` | entries — `PUT` is create-or-replace, so a re-run converges | ✅ |
208
- | `POST /api/servers/:id/{start,stop,restart,free-port}` | lifecycle | ✅ |
209
-
210
- Every error is one envelope — `{ "message", "code", "detail"? }` — with a stable `code` to branch on.
211
- Every endpoint, SSE frames, metrics and compatibility rules: **[API.md](./docs/API.md)**.
212
-
213
- </details>
180
+ Every endpoint, SSE frame, error code and metric: **[API.md](./docs/API.md)**. An `admin` credential can
181
+ run commands as the panel's user, so give a script the least `--scope` it needs.
214
182
 
215
183
  <details>
216
184
  <summary><b>🧑‍💻 Pointing an AI agent at it</b></summary>
217
185
 
218
- Give it four things and it can run your home server without guessing:
219
-
220
- 1. the token (`home-hosted set-token --generate`),
221
- 2. `http://127.0.0.1:3999/openapi/spec.json` — the API it may call,
222
- 3. `home-hosted status --json` — where things are,
223
- 4. [SERVERS.md](./docs/SERVERS.md) — how a server is declared.
186
+ Give it an account (`home-hosted account create agent --scope read`),
187
+ `/openapi/spec.json`, `home-hosted status --json`, and [SERVERS.md](./docs/SERVERS.md) /
188
+ [JOBS.md](./docs/JOBS.md) for how entries are declared.
224
189
 
225
190
  </details>
226
191
 
@@ -232,32 +197,29 @@ Give it four things and it can run your home server without guessing:
232
197
 
233
198
  | | |
234
199
  | --- | --- |
235
- | ♾️ **`persistent: true` survives the panel** | The entry runs under its own tiny supervisor (a **nanny** — this same CLI in a hidden mode) that owns its pipes and log file, so `down`, an upgrade or a crash leaves it serving; the next panel re-attaches |
236
- | 🔗 **`dependsOn` waits for *healthy*** | A dependent is held until the health probe of what it needs has passed — not until that process merely exists — so a web app never binds before its database accepts connections |
237
- | 🔄 **`onPortConflict: follow` adopts a self-restarting program** | A plugin that re-execs, or an updater that hands over to a new detached process, is recognised as *this entry's own successor* and taken over — pid, health, resources, stop — instead of blocking on its own port |
238
- | 👻 **The orphan list** | A process this panel started that no entry owns any more — a renamed or removed entry left it behind — is listed under **Servers** by id, pid and start time, with a **Stop it** button. Nothing is killed on a guess |
239
-
240
- The rest, one line each:
200
+ | ♾️ **`persistent: true` survives the panel** | The entry runs under its own tiny supervisor (a **nanny**), so `down`, an upgrade or a crash leaves it serving; the next panel re-attaches |
201
+ | 🔗 **`dependsOn` waits for *healthy*** | A dependent starts only once what it needs passes its health probe — a web app never binds before its database accepts connections |
202
+ | 🔄 **`onPortConflict: follow`** | A program that restarts itself into a new process is recognised as the entry's own successor and taken over, instead of blocking on its own port |
203
+ | 👻 **The orphan list** | A process this panel started that no entry owns any more is listed under **Servers** with a **Stop it** button. Nothing is killed on a guess |
241
204
 
242
205
  <details>
243
206
  <summary><b>📋 The full feature list</b></summary>
244
207
 
245
208
  | | |
246
209
  | --- | --- |
247
- | 🗂 **Workspaces** | One panel, many setups. Each owns its servers, secrets, logs and settings; listener, auth, backups, TLS and UI stay panel-wide |
248
- | 🚦 **Lifecycle** | Start, stop, restart from the panel, the CLI or the API; `autostart` entries come up with it |
249
- | 📝 **Hand edits welcome** | Edit `servers.config.json` or the panel's `settings.json` in an editor or `git checkout` — picked up in seconds. A file it cannot read is reported in the UI, and what is running is left alone |
210
+ | 📝 **Hand edits welcome** | Edit `servers.config.json` or `settings.json` in an editor or `git checkout` — picked up in seconds; a file it cannot read is reported and what is running is left alone |
250
211
  | ♻️ **Auto-restart** | Exponential backoff on crash, with a retry budget that survives a panel restart |
251
- | 🩺 **Health that acts** | TCP or HTTP probes: a card warns after `unhealthyThreshold` failed probes (default 3). Forcing a restart after a set time is **opt-in** — `forceRestartAfterMs` defaults to `0`, which never fires. Ports are checked before starting, and a program that restarts itself can be [followed](./docs/SERVERS.md#when-a-program-restarts-itself) |
212
+ | 🩺 **Health that acts** | TCP or HTTP probes; a card warns after `unhealthyThreshold` failures (default 3). A forced restart is opt-in (`forceRestartAfterMs`). Ports are checked before starting |
252
213
  | 📜 **Logs** | Live stream, rotated files, search, download, clear |
253
214
  | 📈 **Resources** | CPU and memory per process tree (summed containers for compose), with an optional memory ceiling |
254
- | 🌡️ **Host vitals** | CPU, memory, swap, disk, temperature and load, with thresholds that alert once and again on recovery |
215
+ | 🌡️ **Host vitals** | CPU, memory, swap, disk, temperature and load, with alert thresholds |
255
216
  | 🔔 **Notifications** | Telegram and webhooks (ntfy, Discord, Slack, …) on crash, unhealthy, recovery, host thresholds and DNS changes |
256
- | 🌐 **Dynamic DNS** | Keep hostnames on your public IP — Cloudflare, Namecheap, Porkbun, GoDaddy, Gandi, deSEC, DuckDNS, No-IP and more |
217
+ | 🌐 **Dynamic DNS** | Cloudflare, Namecheap, Porkbun, GoDaddy, Gandi, deSEC, DuckDNS, No-IP and more |
257
218
  | 🔀 **Reverse proxy** | One Caddy engine with automatic HTTPS: `git.example.com` → a Gitea entry, `panel.example.com` → the panel |
258
219
  | 💾 **Backups** | Config, secrets and data in one zip — plain or AES-256, scheduled or manual, restorable on a blank host |
259
- | 🤖 **API first** | Bearer tokens, OpenAPI, SSE — scripts, agents, TUIs and desktop apps get everything the UI gets |
260
- | 🎨 **Bring your own UI** | Upload a static build; `ui-update` follows its releases, `ui-revert` goes back |
220
+ | 🚀 **Deploy** | Ordered steps (`git pull`, `pnpm build`, …); a failed step stops the sequence and **leaves the old process running** ([SERVERS.md](./docs/SERVERS.md#deploying)) |
221
+ | 🗓 **Scheduled jobs** | A command on a 5-field cron expression whose exit code is the outcome; a failed run notifies like a crash ([JOBS.md](./docs/JOBS.md)) |
222
+ | 🔐 **Per-server secrets** | Names in the entry, values in the workspace secrets file (0600) — never in the config, and a backup carries them |
261
223
  | 🌍 **Translated** | English, Vietnamese, Chinese, Japanese, Spanish, Korean, Russian, French, German |
262
224
  | 🖥 **Cross-platform** | Linux, macOS and Windows — no shell utilities assumed |
263
225
 
@@ -267,22 +229,22 @@ The rest, one line each:
267
229
 
268
230
  ## 🗂 Workspaces
269
231
 
270
- A workspace is the ownership boundary: its own servers, secrets, logs and settings. The first boot
271
- creates `default`. A server id is unique only inside its workspace.
232
+ A workspace owns its servers, secrets, logs and settings; listener, auth, backups, TLS and UI stay
233
+ panel-wide. The first boot creates `default`. A server id is unique only inside its workspace. A
234
+ workspace id is lowercase letters, digits, `-` and `_`, at most 40 characters, and never a Windows
235
+ device name (`con`, `nul`, …).
272
236
 
273
- | page | url | scope |
274
- | --- | --- | --- |
275
- | **Overview** · **Servers** · **Logs** · **Settings** | `/w/<workspace>` · `…/servers` · `…/logs` · `…/settings` | one workspace |
276
- | **One server** | `/w/<workspace>/servers/<id>` | config, live logs, resources |
277
- | **Global overview** · **Global settings** | `/global/overview` · `/global/settings` | every workspace; listener, auth, backups, TLS, UI |
278
- | **Reverse proxy** | `/proxy` | panel-wide |
237
+ Each workspace has its own **Overview**, **Servers**, **Logs** and **Settings** under `/w/<workspace>`;
238
+ **Global overview**, **Global settings** and **Reverse proxy** are panel-wide. Edits on the settings
239
+ and proxy pages apply on **Save** (a "Pending save" badge marks them; the proxy's engine buttons act at
240
+ once), and leaving with unsaved edits asks first. List fields take one entry per line.
279
241
 
280
242
  <details>
281
243
  <summary><b>🗂 What lives where</b></summary>
282
244
 
283
245
  | | |
284
246
  | --- | --- |
285
- | panel-wide — `$HHOSTED_HOME/.hh/` | `settings.json` (listener, auth, TLS, host vitals, backups, proxy), `workspaces.json`, `.control-secrets.json` (password + token hashes, 0600), `.tls/`, `.ui/`, `.backups/`, `.logs/`, `.proxy/` (the engine and its state), `run.json` (the live panel, 0600) |
247
+ | panel-wide — `$HHOSTED_HOME/.hh/` | `settings.json` (listener, auth, TLS, host vitals, backups, proxy), `workspaces.json`, `.control-secrets.json` (account and token hashes, 0600), `.tls/`, `.ui/`, `.backups/`, `.logs/`, `.proxy/` (the engine and its state), `run.json` (the live panel, 0600) |
286
248
  | per workspace — `.hh/<id>/` | `settings.json` (server defaults, logs, notifications, DDNS), `servers.config.json`, `.secrets.json` (0600), `.logs/<id>.log`, `.state/` |
287
249
 
288
250
  </details>
@@ -320,140 +282,57 @@ Compose and more fill the form — or write it into the workspace's `servers.con
320
282
 
321
283
  ## 🛠 CLI
322
284
 
285
+ `home-hosted <command>` (or `hh`). `<command> --help` prints what it takes; behaviour in depth:
286
+ [CLI.md](./docs/CLI.md).
287
+
323
288
  | command | |
324
289
  | --- | --- |
325
- | `home-hosted up` | start the panel detached. With one already running: says where and exits `0` — **if the flags agree**. `--port`/`--host` naming something else is refused (exit `1`, "`--port X` was not honoured"), because a re-run must not report success for a move it did not make |
326
- | `home-hosted down` | stop it and everything it started — persistent entries stay unless `--with-persistent` |
327
- | `home-hosted restart [<id>]` | the panel (`down` then `up`), or just one server, leaving the panel up |
328
- | `home-hosted status` | running? where? how many servers up? every path (`--json`) |
329
- | `home-hosted start <id>` / `stop <id>` | one server — `start` brings up what it `dependsOn` first; `stop` stops only that one (`-w <workspace>`, `--free-port`) |
330
- | `home-hosted free-port <id>` | ask whatever holds that server's port to stop; supervised holders are refused |
331
- | `home-hosted logs [<id>]` | the panel's console, or one server's log (`--lines`, `--follow`, `--json`) |
332
- | `home-hosted usage` | CPU and memory per server, loudest first, plus starts and crashes over the history window |
290
+ | `home-hosted up` / `down` / `restart [<id>]` | start the panel detached; stop it and everything it started; restart it, or one server |
291
+ | `home-hosted status` | running? where? how many servers up? every path |
292
+ | `home-hosted add <id> -- <command…>` / `ls` | declare a server, or list them — with the panel up or down |
293
+ | `home-hosted start` / `stop` / `free-port <id>` | one server, leaving the panel up |
294
+ | `home-hosted secret set\|unset\|ls <id> [NAME]` | a server's or job's secret environment; never prints a value |
295
+ | `home-hosted import pm2\|compose <file>` | carry a pm2 ecosystem or a compose stack in as entries |
296
+ | `home-hosted deploy <id>` / `job ls\|run\|log` | run an entry's deploy steps; list, run or read scheduled jobs |
297
+ | `home-hosted logs [<id>]` / `usage` | the panel's console or one server's log; CPU and memory per server |
333
298
  | `home-hosted backup` | `list`, `create`, `restore` — works with the panel stopped |
334
- | `home-hosted set-password` / `set-token` | credentials, without a browser |
335
- | `home-hosted migrate` | bring configs up to this release's schema (`--dry-run`) |
336
- | `home-hosted init` | scaffold a self-contained project |
299
+ | `home-hosted account` / `token` | sign-in accounts and API tokens, without a browser |
300
+ | `home-hosted migrate` / `init` | bring configs up to this release; scaffold a project |
337
301
  | `home-hosted ui-switch` / `ui-update` / `ui-revert` | install, update or remove a custom UI |
338
- | `home-hosted setup-temp --wsl` | read the CPU temperature through the Windows host on WSL2 |
339
-
340
- <details>
341
- <summary><b>⚙️ Every command and its flags</b></summary>
342
-
343
- ```text
344
- up -p/--port <port> --host <local|lan|ipv4> --open --no-autostart --foreground --print-config
345
- (--port and --host are saved to settings.json)
346
- down --with-persistent
347
- restart (no id) down, then up: up's flags plus --with-persistent
348
- restart <id> one server through the panel: [-w/--workspace <id>] — up's flags are refused here
349
- status --json
350
- start <id> [-w/--workspace <id>] [--free-port]
351
- stop <id> [-w/--workspace <id>]
352
- free-port <id> [-w/--workspace <id>]
353
- logs [<id>] --lines <n≥1|all> --follow --json [-w/--workspace <id>]
354
- usage --json
355
- backup list --json
356
- backup create (--include <ids> | --all) [--exclude <ids>] --password <text> --confirm --json
357
- backup restore (<name> | --from <path>) (--include <ids> | --all) [--exclude <ids>] --password <text> --confirm --json
358
- init --dir <dir> --name <name> --pm <pnpm|npm|yarn|bun> --no-install -y/--yes
359
- set-password --clear (HHOSTED_PASSWORD for a script; --clear locks every sign-in out)
360
- set-token --generate --clear (HHOSTED_TOKEN for a script)
361
- migrate --dry-run -y/--yes (HHOSTED_MIGRATE=allow for a script)
362
- ui-switch --repo <owner/name> --tag <tag> --asset <name> --file <path|url> --list --token <token> -y/--yes
363
- ui-update --check --tag <tag> --asset <name> --old --repo <owner/name> --token <token> -y/--yes
364
- ui-revert (no flags)
365
- setup-temp --wsl [--download | --no-download] | --clear
366
-
367
- every command --home <dir> --project <dir> -h/--help -v/--version (or $HHOSTED_HOME, $HHOSTED_PROJECT)
368
- help <command> the same as <command> --help
369
- environment HHOSTED_PASSWORD, HHOSTED_TOKEN, HHOSTED_MIGRATE=allow, HHOSTED_DDNS_SECRET,
370
- GITHUB_TOKEN / GH_TOKEN (ui-switch, ui-update)
371
- ```
372
-
373
- - `--json` prints one document on stdout or nothing; refusals go to stderr. Branch on the exit code.
374
- The exception is a stream: `logs --follow --json` prints one `{ path, line }` object per line.
375
- - A flag a command cannot honour is refused, and `backup create`/`restore` without a terminal need
376
- `--confirm` (without it they show the plan and exit 1). Depth: [CLI.md](./docs/CLI.md).
377
- - Piping into `head`/`grep -q` exits 0, so `set -o pipefail` is safe.
378
- - `start web && curl …` works: `start` waits to confirm the process stayed up.
379
- - A misspelled command or flag suggests the one you meant.
302
+ | `home-hosted setup-temp` / `service` | CPU temperature on WSL2; start the panel at boot |
380
303
 
381
- </details>
382
-
383
- <details>
384
- <summary><b>🧭 Upgrading, and why the panel sometimes refuses to start</b></summary>
385
-
386
- ```bash
387
- home-hosted migrate --dry-run # what would change
388
- home-hosted migrate # asks before each schema step, keeps a .bak beside each file
389
- ```
304
+ Every command takes `--help` (`home-hosted add --help`) for its own flags, and `home-hosted --help`
305
+ lists them all. `--json` prints one document; refusals go to stderr. Scripting rules and exit codes:
306
+ [CLI.md](./docs/CLI.md#for-scripts).
390
307
 
391
- A newer release always reads an older config, and unknown keys are kept and reported, never reset.
392
- What it will not do is run a config it cannot read — a wrong value, a duplicate id, a newer schema —
393
- so `up` stops with the exact problem instead of starting on defaults. Release notes say what each
394
- upgrade needs from you. **Coming from 0.6.x:** run the latest 0.7.x once first.
395
-
396
- </details>
397
-
398
- <details>
399
- <summary><b>🤔 What <code>status --json</code> tells you</b></summary>
400
-
401
- `running` and `liveness` are always present. `liveness` is `live` (it is this panel), `unknown`
402
- (alive, start time unavailable — counted as running), `gone`, or `recycled` (the pid now belongs to
403
- another process — nothing is signalled). Then `answering: false` means the process exists but does not
404
- respond, and `exitedCleanly` says whether someone ran `down` or it died. There is more in that
405
- document (paths, ports, the missing-record cases) — [CLI.md](./docs/CLI.md#what-status-tells-you).
406
-
407
- </details>
308
+ **Upgrading:** a newer release reads an older config; `home-hosted migrate --dry-run` shows what it
309
+ would change, and a config it cannot read stops `up` with the exact problem —
310
+ [CLI.md](./docs/CLI.md#upgrading).
408
311
 
409
312
  ---
410
313
 
411
314
  ## 🔐 Security
412
315
 
413
- **Safe out of the box.** The panel listens on `127.0.0.1` only, behind a password generated on first
414
- start. It refuses to listen anywhere else — or to be served through its own reverse proxy — until you
415
- set your own password.
316
+ **Safe out of the box.** The panel listens on `127.0.0.1` only, behind a secret generated on first
317
+ start, and refuses to listen anywhere else — or to be served through its own reverse proxy — until
318
+ you set your own of at least 12 characters.
416
319
 
417
- <details>
418
- <summary><b>🛡️ The three things you actually have to do</b></summary>
419
-
420
- 1. **Set your own password before exposing it**, then bind to `lan` (UI, config, or `up --host lan`).
421
- 2. **Treat an API token as the account it runs as** — changing the password does *not* revoke it.
422
- 3. **Forgot the password?** Run `home-hosted set-password` on the machine to set a new one; no login needed.
423
-
424
- </details>
425
-
426
- <details>
427
- <summary><b>🔍 How a request is trusted</b></summary>
428
-
429
- | Check | Rule |
430
- | --- | --- |
431
- | **Host** | an IP, `localhost`, a local name (`.local`, `.lan`, `homeserver`, …), a panel proxy route, or listed in `control.allowedHosts` — otherwise `421`. This blocks DNS-rebinding attacks from web pages you visit |
432
- | **Origin** | a cookie-authenticated write must be same-origin; bearer-token requests are exempt (browsers never attach one by themselves) |
433
- | **"This machine"** | a loopback peer that also carries **none** of `Forwarded`, `X-Forwarded-For`, `X-Real-IP` or the `X-Forwarded-Proto`/`-Host`/`-Port`/`-Prefix` family. That is right for the panel's own reverse proxy and for any proxy that adds at least one of them — but it is a **heuristic, not a guarantee**: a proxy that strips them all is indistinguishable from a local client. Set `trustProxy` deliberately and never put the panel behind a header-stripping proxy |
434
- | **Lockout** | repeated failures lock out per client address; `trustProxy: "loopback"` (default) reads the real address from a proxy on this machine |
435
-
436
- Secrets never go in a config file: every secret file is `0600`, and `.hh` is `0700` from the moment
437
- any command creates it. DDNS
438
- credentials are also sealed under `HHOSTED_DDNS_SECRET` — set your own if you commit or share `.hh/`.
439
- Details: [SECURITY.md](./docs/SECURITY.md).
440
-
441
- </details>
320
+ Set your own secret before exposing it, give a script the least `--scope` it needs, and if you are
321
+ locked out, `home-hosted account reset` on the machine prints a fresh secret. How a request is trusted
322
+ and where secrets live: **[SECURITY.md](./docs/SECURITY.md)**.
442
323
 
443
324
  ---
444
325
 
445
326
  ## 🔔 Notifications
446
327
 
447
328
  A message when something happens while you are not looking: a server that gave up restarting, a
448
- failing health check, a forced restart, a recovery, a host threshold, a DNS change. Alerts go to
449
- **destinations** — Telegram chats and webhooks — with event toggles and a throttle set once and
450
- inherited or overridden per destination. **Two minutes of setup: [NOTIFICATIONS.md](./docs/NOTIFICATIONS.md).**
329
+ failing health check, a recovery, a host threshold, a DNS change — to Telegram chats and webhooks.
330
+ **[NOTIFICATIONS.md](./docs/NOTIFICATIONS.md).**
451
331
 
452
332
  ## 🌐 Dynamic DNS
453
333
 
454
- **Workspace settings → Dynamic DNS** keeps hostnames pointed at this machine's public IP: add an
455
- account, paste credentials, add hostnames. A provider is called only when the address changed, and a
456
- permanent refusal (bad credentials) stops retrying until you fix it. **[DDNS.md](./docs/DDNS.md).**
334
+ **Workspace settings → Dynamic DNS** keeps hostnames pointed at this machine's public IP; a provider
335
+ is called only when the address changed. **[DDNS.md](./docs/DDNS.md).**
457
336
 
458
337
  ## 🔀 Reverse proxy
459
338
 
@@ -466,42 +345,16 @@ One Caddy engine in front of everything, installed and supervised by the panel,
466
345
  ## 💾 Backups
467
346
 
468
347
  **Global settings → Backups** takes one `.zip` of the panel and the workspaces you pick — settings,
469
- servers, secrets, declared data — plain or AES-256, and puts it back.
348
+ servers, secrets, declared data — plain or AES-256, on a schedule or by hand, and puts it back.
470
349
 
471
350
  ```bash
472
351
  home-hosted backup create --all --confirm
473
- home-hosted backup create --all --exclude global:secrets --confirm
474
352
  home-hosted backup restore <name> --all --confirm
475
- home-hosted backup restore --from /media/usb/x.zip --all --confirm
476
353
  ```
477
354
 
478
- Both work with the panel **stopped**, which is when you usually need them.
479
-
480
- <details>
481
- <summary><b>🚚 One archive is a whole setup</b></summary>
482
-
483
- Start a **blank** home-hosted anywhere, upload the archive, restore: workspaces come back, data lands
484
- where *this* machine's config says (`{projectDir}`, `{home}` follow the new host), and `autostart`
485
- entries come up. A restore never writes where no config declares. Older archives are migrated on the
486
- way in; archives from a newer release are refused.
487
-
488
- </details>
489
-
490
- <details>
491
- <summary><b>⏱️ Schedules, and what not to restore</b></summary>
492
-
493
- - A schedule writes an `auto-…` archive every N hours with its own retention, and never prunes the
494
- ones you took by hand.
495
- - Pick per item: whole workspaces, or one secret, one data directory.
496
- - **The password and token hashes are secrets too** — restoring them reinstates the old machine's
497
- credentials. Leave `global:secrets` unticked, or rotate afterwards.
498
- - **A live database copied file by file can be torn.** Stop it around the backup, or declare
499
- `dump`/`load` hooks so the engine writes the backup itself.
500
-
501
- That is the whole of what you have to decide before ticking a box. What an id selects, how retention
502
- counts, which paths follow a new host: [BACKUPS.md](./docs/BACKUPS.md).
503
-
504
- </details>
355
+ Both work with the panel **stopped**. A server's code and its `envFile` are not in the archive, and
356
+ `global:secrets` carries the old machine's accounts. Item ids, encryption, schedules and what not to
357
+ restore: **[BACKUPS.md](./docs/BACKUPS.md)**.
505
358
 
506
359
  ---
507
360
 
@@ -517,8 +370,7 @@ takes a zip, `home-hosted ui-switch --asset noc-console` installs the NOC consol
517
370
  > Help me build a UI for `home-hosted`: a nostalgic game theme — servers as a party menu, health as HP
518
371
  > bars, logs in a text box. Follow `docs/UI_CREATION.md` and `docs/API.md`.
519
372
 
520
- [UI_CREATION.md](./docs/UI_CREATION.md) is the contract: install, `ui.json`, the rules of the road and
521
- a checklist.
373
+ [UI_CREATION.md](./docs/UI_CREATION.md) is the contract: install, `ui.json`, the rules and a checklist.
522
374
 
523
375
  </details>
524
376
 
@@ -542,19 +394,9 @@ home-hosted usage # what is eating the machine
542
394
  <summary><b>What happens to my servers when the panel stops?</b></summary>
543
395
 
544
396
  `down`, `SIGTERM` and `SIGINT` stop every server the panel started. `persistent` entries keep running
545
- under their **nanny** (the small supervisor described [above](#-features)) and are re-attached by the
546
- next panel; `down --with-persistent` stops them too.
547
-
548
- Being **killed** is the other case: a panel that dies hard cannot stop anything, so its servers keep
549
- running and the next panel adopts them — [SERVERS.md](./docs/SERVERS.md#orphaned-processes).
550
-
551
- </details>
552
-
553
- <details>
554
- <summary><b>Is it a systemd replacement?</b></summary>
555
-
556
- No — keep systemd for the panel itself and for system services; use home-hosted for what you run
557
- yourself.
397
+ under their nanny and are re-attached by the next panel; `down --with-persistent` stops them too. A
398
+ panel that is **killed** cannot stop anything, so its servers keep running and the next panel adopts
399
+ them — [SERVERS.md](./docs/SERVERS.md#orphaned-processes).
558
400
 
559
401
  </details>
560
402
 
@@ -574,63 +416,16 @@ reached by IP). IPs and local names never need it.
574
416
 
575
417
  </details>
576
418
 
577
- <details>
578
- <summary><b>Where is my state?</b></summary>
579
-
580
- `~/.home-hosted/.hh` (or `$HHOSTED_HOME/.hh`) — see [What lives where](#-workspaces). `home-hosted status`
581
- prints every path.
582
-
583
- </details>
584
-
585
- <details>
586
- <summary><b>Windows support, really?</b></summary>
587
-
588
- Yes: process trees from Win32_Process, `taskkill` for stopping, `.cmd` shims resolved in
589
- `node_modules/.bin`, and configs saved by Notepad or PowerShell (BOM, UTF-16) read as-is.
590
-
591
- </details>
592
-
593
419
  ---
594
420
 
595
421
  ## 🗂 Working on it
596
422
 
597
- ```bash
598
- pnpm install
599
- pnpm dev # panel :6000 + stock UI dev server :6001, state in .dev-state/ (password: dev)
600
- pnpm run check:fast # while working: lint/types (cached) + only the tests your changes reach
601
- pnpm run check # before pushing: lint, types, doc links and the full suite with coverage
602
- ```
603
-
604
- ```text
605
- src/ the panel. Top level: app.ts (Hono root), cli.ts, index.ts (all wiring),
606
- client.ts (the published client), openapi.ts + openapi-reference.ts.
607
- Then one directory per layer:
608
- cli/ (one module per command) api/ (one route factory per URL group)
609
- services/ (stateful) providers/ (OS/vendor leaves, plain data)
610
- config/ (stores, parsing, migrations) middleware/ (host, auth, loopback)
611
- helpers/ (cross-layer utilities) shared/ (schemas + code the UIs import too;
612
- no Vue, no node:)
613
- uis/ stock (ships in the package) and noc-console — Vite + Vue, static output.
614
- Shared by both: vite.shared.ts (config, aliases, dev proxy) and tap-targets.css
615
- test/ vitest; one directory per src/ layer, plus support/ (harnesses), fixtures/
616
- and scripts/ (tests that drive a script in scripts/)
617
- docs/ user docs, mockups/, media/, branding/, demo/
618
- scripts/ build, release and check helpers — quickcheck.mjs is the gate
619
- .agentDocs/ internals docs for agents; not published
620
- bin/ the published `home-hosted` / `hh` entry point
621
- ```
423
+ Building, testing and the dev server: [CONTRIBUTING.md](https://github.com/NamesMT/home-hosted/blob/main/CONTRIBUTING.md).
622
424
 
623
- | if you want to… | read |
624
- | --- | --- |
625
- | declare a server: every field, placeholders, port conflicts | [SERVERS.md](./docs/SERVERS.md) |
626
- | drive it from code: endpoints, SSE, errors, metrics | [API.md](./docs/API.md) |
627
- | every CLI command and what `status` means | [CLI.md](./docs/CLI.md) |
628
- | backups and restores in depth | [BACKUPS.md](./docs/BACKUPS.md) |
629
- | hostnames and HTTPS | [REVERSE_PROXY.md](./docs/REVERSE_PROXY.md) · [DDNS.md](./docs/DDNS.md) |
630
- | alerts | [NOTIFICATIONS.md](./docs/NOTIFICATIONS.md) |
631
- | the security model | [SECURITY.md](./docs/SECURITY.md) |
632
- | build a UI | [UI_CREATION.md](./docs/UI_CREATION.md) |
633
- | change the internals | [AGENTS.md](https://github.com/NamesMT/home-hosted/blob/main/AGENTS.md) |
425
+ **The docs:** [servers](./docs/SERVERS.md) · [jobs](./docs/JOBS.md) · [CLI](./docs/CLI.md) ·
426
+ [API](./docs/API.md) · [backups](./docs/BACKUPS.md) · [reverse proxy](./docs/REVERSE_PROXY.md) ·
427
+ [DDNS](./docs/DDNS.md) · [notifications](./docs/NOTIFICATIONS.md) · [security](./docs/SECURITY.md) ·
428
+ [building a UI](./docs/UI_CREATION.md).
634
429
 
635
430
  **Built on home-hosted:** [dsh-home-hosted](https://github.com/NamesMT/dsh-home-hosted) — server
636
431
  management with boot autostart inside [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness).