@repo-os/repoos 0.5.88 → 0.5.90

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 (244) hide show
  1. package/dist/.build-info.json +2 -2
  2. package/dist/.build-stamp.json +1 -1
  3. package/dist/cli/api-route-parity.js +6 -0
  4. package/dist/cli/help.js +2 -2
  5. package/dist/commands/restart.js +21 -4
  6. package/dist/commands/serve-banner.test.js +12 -1
  7. package/dist/commands/serve.d.ts +4 -0
  8. package/dist/commands/serve.js +12 -3
  9. package/dist/commands/servers.d.ts +11 -2
  10. package/dist/commands/servers.js +18 -9
  11. package/dist/commands/status.d.ts +15 -0
  12. package/dist/commands/status.js +46 -1
  13. package/dist/commands/ui-contrast-audit.js +3 -3
  14. package/dist/commands/ui-smoke.js +74 -3
  15. package/dist/core/allowlist-group-sync.d.ts +1 -1
  16. package/dist/core/allowlist-group-sync.js +5 -12
  17. package/dist/core/attention.d.ts +4 -2
  18. package/dist/core/attention.js +27 -3
  19. package/dist/core/config.d.ts +2 -0
  20. package/dist/core/config.js +73 -2
  21. package/dist/core/cursor-auth.d.ts +4 -0
  22. package/dist/core/cursor-auth.js +9 -0
  23. package/dist/core/detect.js +2 -1
  24. package/dist/core/hub-return.d.ts +76 -0
  25. package/dist/core/hub-return.js +141 -0
  26. package/dist/core/models.js +3 -1
  27. package/dist/core/page-browser-gate.js +5 -0
  28. package/dist/core/runner-engineer-clis.js +2 -1
  29. package/dist/core/server-registry.d.ts +41 -6
  30. package/dist/core/server-registry.js +37 -17
  31. package/dist/core/shot-fixtures.d.ts +1 -1
  32. package/dist/core/shot-fixtures.js +7 -0
  33. package/dist/core/tailnet-servers.d.ts +76 -5
  34. package/dist/core/tailnet-servers.js +352 -18
  35. package/dist/core/tailscale.d.ts +4 -0
  36. package/dist/core/tailscale.js +17 -2
  37. package/dist/core/temp-dir.d.ts +1 -0
  38. package/dist/core/temp-dir.js +23 -0
  39. package/dist/core/types.d.ts +21 -6
  40. package/dist/server/agents.js +2 -1
  41. package/dist/server/attention-events.d.ts +1 -1
  42. package/dist/server/attention-events.js +2 -8
  43. package/dist/server/attention-notify.d.ts +10 -0
  44. package/dist/server/attention-notify.js +34 -0
  45. package/dist/server/notifications/dispatch.d.ts +22 -0
  46. package/dist/server/notifications/dispatch.js +51 -2
  47. package/dist/server/notifications/index.d.ts +2 -2
  48. package/dist/server/notifications/index.js +2 -2
  49. package/dist/server/notifications/ntfy-provider.js +3 -0
  50. package/dist/server/notifications/spec.d.ts +6 -0
  51. package/dist/server/notifications/spec.js +29 -0
  52. package/dist/server/notifications/telegram-provider.js +10 -1
  53. package/dist/server/notifications/types.d.ts +1 -1
  54. package/dist/server/release-auto-publish.d.ts +46 -0
  55. package/dist/server/release-auto-publish.js +99 -0
  56. package/dist/server/release.d.ts +8 -0
  57. package/dist/server/release.js +13 -0
  58. package/dist/server/remote-validation.d.ts +18 -4
  59. package/dist/server/remote-validation.js +142 -55
  60. package/dist/server/routes/budget-allowlist-groups.js +1 -11
  61. package/dist/server/routes/config.js +9 -9
  62. package/dist/server/routes/info.d.ts +27 -1
  63. package/dist/server/routes/info.js +108 -20
  64. package/dist/server/routes/release.d.ts +28 -1
  65. package/dist/server/routes/release.js +458 -25
  66. package/dist/server/routes/servers.d.ts +21 -1
  67. package/dist/server/routes/servers.js +54 -2
  68. package/dist/server/routes/types.d.ts +6 -1
  69. package/dist/server/routes/ui.d.ts +8 -0
  70. package/dist/server/routes/ui.js +47 -0
  71. package/dist/server/schedule-automation.js +2 -1
  72. package/dist/server/serve-reaper.d.ts +10 -1
  73. package/dist/server/serve-reaper.js +2 -1
  74. package/dist/server/server.d.ts +2 -0
  75. package/dist/server/server.js +51 -11
  76. package/dist/server/tailnet-discovery-listener.d.ts +6 -0
  77. package/dist/server/tailnet-discovery-listener.js +62 -0
  78. package/dist/ui/assets/ActivityIndicator-D3kaLo54.js +1 -0
  79. package/dist/ui/assets/AgentModelControl-BXndbOjd.js +1 -0
  80. package/dist/ui/assets/AgentModelModal-BZon9Xw-.js +1 -0
  81. package/dist/ui/assets/AgentsView-B9f2VxAB.js +2 -0
  82. package/dist/ui/assets/ChatAgentModelChip-CFf6DH-x.js +1 -0
  83. package/dist/ui/assets/{ChecksView-u0VznGkb.css → ChecksView-BU7sn_8v.css} +1 -1
  84. package/dist/ui/assets/ChecksView-CjBYmr0G.js +0 -0
  85. package/dist/ui/assets/ClientBoardView-DJuKrnmC.js +1 -0
  86. package/dist/ui/assets/ConfirmDialog-DtTUkVd2.js +1 -0
  87. package/dist/ui/assets/ContextView-f1qnwOfz.js +4 -0
  88. package/dist/ui/assets/{DashboardView-BjqBhJ9_.css → DashboardView-BI6MsPGb.css} +1 -1
  89. package/dist/ui/assets/DashboardView-Bu-GfmCF.js +1 -0
  90. package/dist/ui/assets/DeleteConfirmDialog-QLp5rh6F.js +1 -0
  91. package/dist/ui/assets/DeploymentsView-D7snexob.js +1 -0
  92. package/dist/ui/assets/DevView-C_o_mWmQ.js +2 -0
  93. package/dist/ui/assets/DiffView-DP84rySJ.js +6 -0
  94. package/dist/ui/assets/DiffView-nIrAbr64.css +1 -0
  95. package/dist/ui/assets/FailedTestsList-DIkE11W-.js +1 -0
  96. package/dist/ui/assets/InputsView-B-a_6_Rh.css +1 -0
  97. package/dist/ui/assets/InputsView-DIXXyLvz.js +1 -0
  98. package/dist/ui/assets/LoginView-4-EXDlhL.js +1 -0
  99. package/dist/ui/assets/LoginView-DgYid8_T.css +1 -0
  100. package/dist/ui/assets/{PageSkeleton-BwagZ2oY.js → PageSkeleton-BkUizmiD.js} +1 -1
  101. package/dist/ui/assets/ReleasesView-CAIlRSH_.css +1 -0
  102. package/dist/ui/assets/ReleasesView-nDp30TpJ.js +7 -0
  103. package/dist/ui/assets/SecretsView-DEwKwfBX.js +1 -0
  104. package/dist/ui/assets/SettingsView-MqvullIA.js +4 -0
  105. package/dist/ui/assets/StoriesView-B_gzGkub.css +1 -0
  106. package/dist/ui/assets/StoriesView-SQfHR60h.js +1 -0
  107. package/dist/ui/assets/{VoiceDictate-C1e2VOQl.js → VoiceDictate-eEL8mOQ6.js} +2 -2
  108. package/dist/ui/assets/WorkView-B2H9HOzx.js +2 -0
  109. package/dist/ui/assets/WorkView-DA0KG2Wo.css +1 -0
  110. package/dist/ui/assets/{abnfDiagram-VCTEODGH-D5voX4j_.js → abnfDiagram-VCTEODGH-_eosyKqu.js} +1 -1
  111. package/dist/ui/assets/{activity-motion-BmUJdM2_.js → activity-motion-ZdL9OJaH.js} +1 -1
  112. package/dist/ui/assets/agent-failure-Bmoh7dgZ.js +1 -0
  113. package/dist/ui/assets/{architectureDiagram-5GKGNRK7-CwL3SpYW.js → architectureDiagram-5GKGNRK7-PIOOBZj0.js} +1 -1
  114. package/dist/ui/assets/{blockDiagram-I7D4REHJ-nzuO2yet.js → blockDiagram-I7D4REHJ-C4pyoQIK.js} +1 -1
  115. package/dist/ui/assets/{c4Diagram-7LVT6UL2-ne4MV4Ou.js → c4Diagram-7LVT6UL2-DehOc6EC.js} +1 -1
  116. package/dist/ui/assets/channel-Cyj3B_Pz.js +1 -0
  117. package/dist/ui/assets/{check-setup-zA74Kk8E.js → check-setup-CC3TsiUM.js} +1 -1
  118. package/dist/ui/assets/checkbox-E2VmX5cG.js +1 -0
  119. package/dist/ui/assets/{chunk-2E4U76K2-B9hEQFoW.js → chunk-2E4U76K2-CdLsViyA.js} +1 -1
  120. package/dist/ui/assets/{chunk-4HAMMTFA-DrQUXmOW.js → chunk-4HAMMTFA-CwHfn5dc.js} +1 -1
  121. package/dist/ui/assets/{chunk-75Z2AOVW-BLqVxOTb.js → chunk-75Z2AOVW-DdjEDEwd.js} +1 -1
  122. package/dist/ui/assets/{chunk-CLGD4ZFX-_7tkGpz0.js → chunk-CLGD4ZFX-tIw2jEqw.js} +1 -1
  123. package/dist/ui/assets/{chunk-DU6HZSFF-CHsTh6bg.js → chunk-DU6HZSFF-DU2m-Rq_.js} +1 -1
  124. package/dist/ui/assets/{chunk-F27PBJKO-rbzBsNQQ.js → chunk-F27PBJKO-XI6ntUgy.js} +1 -1
  125. package/dist/ui/assets/{chunk-GMAD6QVW-DZpo6OXg.js → chunk-GMAD6QVW-DS9hCmMU.js} +1 -1
  126. package/dist/ui/assets/{chunk-GVQU2GXP-BZSJvKfO.js → chunk-GVQU2GXP-CkV_qixK.js} +1 -1
  127. package/dist/ui/assets/{chunk-IMKFNOWR-BS2e9-_3.js → chunk-IMKFNOWR-SSIw4nk0.js} +1 -1
  128. package/dist/ui/assets/{chunk-L3NEJ4N5-BMUc8OMC.js → chunk-L3NEJ4N5-Mjq_7kRG.js} +1 -1
  129. package/dist/ui/assets/{chunk-OSK3NFVY-DuikC-Qx.js → chunk-OSK3NFVY-C_-AKGNt.js} +1 -1
  130. package/dist/ui/assets/{chunk-P2QGCYS3-J-0O_8sq.js → chunk-P2QGCYS3-Cml7U2x-.js} +1 -1
  131. package/dist/ui/assets/{chunk-POPQ4Y6H-DlL8f5TW.js → chunk-POPQ4Y6H-BmC77hAA.js} +1 -1
  132. package/dist/ui/assets/{chunk-PWAF6VOD-Bhi6t-8D.js → chunk-PWAF6VOD-ZvDRCIUz.js} +1 -1
  133. package/dist/ui/assets/{chunk-SHT3W25Y-DW7ujfMC.js → chunk-SHT3W25Y-BC_3w9An.js} +1 -1
  134. package/dist/ui/assets/{chunk-SVP7TREG-DeWghlFr.js → chunk-SVP7TREG-ButzIF6A.js} +1 -1
  135. package/dist/ui/assets/{chunk-TICWLB2K-De6sBWZU.js → chunk-TICWLB2K-CggUYtfW.js} +1 -1
  136. package/dist/ui/assets/{chunk-TLUHSLCS-CraR_-xP.js → chunk-TLUHSLCS-B4okP0Z9.js} +2 -2
  137. package/dist/ui/assets/classDiagram-ZZMXUADV-CPSjxk4F.js +1 -0
  138. package/dist/ui/assets/classDiagram-v2-VYDZK3BY-CPSjxk4F.js +1 -0
  139. package/dist/ui/assets/close-DEOXwz7c.js +1 -0
  140. package/dist/ui/assets/{cynefinDiagram-5FMLGOSQ-ZFpLELQo.js → cynefinDiagram-5FMLGOSQ-DQx5-LjP.js} +1 -1
  141. package/dist/ui/assets/{dagre-GXQ25YYZ-DjZUlzhI.js → dagre-GXQ25YYZ-CJEoldTu.js} +1 -1
  142. package/dist/ui/assets/{diagram-S7CK7UJ4-CPSNn7te.js → diagram-S7CK7UJ4-C8wpb0w-.js} +1 -1
  143. package/dist/ui/assets/{diagram-UQ7AKVKN-B4foi7If.js → diagram-UQ7AKVKN-Cwv7ZlPj.js} +1 -1
  144. package/dist/ui/assets/{diagram-VSXAHHWV-D7w6JWqO.js → diagram-VSXAHHWV-Bod-GUJ0.js} +1 -1
  145. package/dist/ui/assets/{diagram-VX7I27RA-B_68SPM8.js → diagram-VX7I27RA-B-IviZte.js} +1 -1
  146. package/dist/ui/assets/{diagram-Z3DM3KII-DYCFjRd-.js → diagram-Z3DM3KII-D7UJTgo0.js} +1 -1
  147. package/dist/ui/assets/{docs-1rAfchoG.js → docs-Bru9enkv.js} +1 -1
  148. package/dist/ui/assets/{ebnfDiagram-PWID7BFC-R-M9YvmS.js → ebnfDiagram-PWID7BFC-36iN6vhQ.js} +1 -1
  149. package/dist/ui/assets/{erDiagram-RLTQ6QDP-CAj_x-Ca.js → erDiagram-RLTQ6QDP-D1VxGNkw.js} +1 -1
  150. package/dist/ui/assets/flowDiagram-HODETNUW-DMCQ3QQc.js +1 -0
  151. package/dist/ui/assets/{ganttDiagram-EL5Y4UJY-BtaVmo1T.js → ganttDiagram-EL5Y4UJY-CaQRdRWo.js} +1 -1
  152. package/dist/ui/assets/{gitGraphDiagram-WWUBYQGX-C0NNewkm.js → gitGraphDiagram-WWUBYQGX-CPuqjqk3.js} +1 -1
  153. package/dist/ui/assets/index-DPbsvkr-.css +1 -0
  154. package/dist/ui/assets/index-ebHBIEpP.js +109 -0
  155. package/dist/ui/assets/{infoDiagram-27XIBGKW-0GQ_op9D.js → infoDiagram-27XIBGKW-C5y8qjnc.js} +1 -1
  156. package/dist/ui/assets/input-usKnLzob.js +1 -0
  157. package/dist/ui/assets/{ishikawaDiagram-5VMMS53U-D-LgjyOb.js → ishikawaDiagram-5VMMS53U-KKx_BBPX.js} +1 -1
  158. package/dist/ui/assets/{journeyDiagram-3NMN7TZE-CoSoMXWG.js → journeyDiagram-3NMN7TZE-Rba7zvBB.js} +1 -1
  159. package/dist/ui/assets/{kanban-definition-UXKFOSKX-Dy-KsrRs.js → kanban-definition-UXKFOSKX-CWUiM7nC.js} +1 -1
  160. package/dist/ui/assets/{layer-BvZDv12j.js → layer-DJtr131Z.js} +1 -1
  161. package/dist/ui/assets/{line-CXJ32qGe.js → line-DaBQnM0e.js} +1 -1
  162. package/dist/ui/assets/{mermaid-parser.core-253ZJq4V.js → mermaid-parser.core-B8Myoyel.js} +1 -1
  163. package/dist/ui/assets/{mermaid.core-BGlBzVVq.js → mermaid.core-VWbE_LVb.js} +3 -3
  164. package/dist/ui/assets/{mindmap-definition-YA3MSWOX-D2-O3nSF.js → mindmap-definition-YA3MSWOX-BdYDIAqu.js} +1 -1
  165. package/dist/ui/assets/{pegDiagram-XKGWAZYB-9PJHyOZ-.js → pegDiagram-XKGWAZYB-1U6yQMPJ.js} +1 -1
  166. package/dist/ui/assets/{pieDiagram-E7YTZNPT-CaA7p3fz.js → pieDiagram-E7YTZNPT-C4XWr3KA.js} +1 -1
  167. package/dist/ui/assets/{quadrantDiagram-AXDQQJYC-C8fn5H0Z.js → quadrantDiagram-AXDQQJYC-DokRSlpE.js} +1 -1
  168. package/dist/ui/assets/{railroadDiagram-O6MQD6OU-BH2A16ON.js → railroadDiagram-O6MQD6OU-CNVlf25-.js} +1 -1
  169. package/dist/ui/assets/repo-BX_-2THs.js +79 -0
  170. package/dist/ui/assets/{requirementDiagram-BXWQKSXE-FxTSHM30.js → requirementDiagram-BXWQKSXE-BJbgitn9.js} +1 -1
  171. package/dist/ui/assets/{sankeyDiagram-P5KCCOFB-BYj7Cmpa.js → sankeyDiagram-P5KCCOFB-Dmm-_ESB.js} +1 -1
  172. package/dist/ui/assets/{sequenceDiagram-WJ2MYXX4-Bu9LRjik.js → sequenceDiagram-WJ2MYXX4-MgUn4Xsr.js} +1 -1
  173. package/dist/ui/assets/{stateDiagram-D77RDMKH-C2MTKrKY.js → stateDiagram-D77RDMKH-BqBSa94y.js} +1 -1
  174. package/dist/ui/assets/stateDiagram-v2-MP3YSRHH-BpW2G0pv.js +1 -0
  175. package/dist/ui/assets/{swimlanes-42K2YHIH-B3F1gF7c.js → swimlanes-42K2YHIH-DfEw2nEt.js} +1 -1
  176. package/dist/ui/assets/swimlanesDiagram-VR7AAH4N-CMQkP5RW.js +8 -0
  177. package/dist/ui/assets/{switch-BHLgIQon.js → switch-CHw_LJLk.js} +1 -1
  178. package/dist/ui/assets/{timeline-definition-24CTP7MA-oCUhrKDo.js → timeline-definition-24CTP7MA-9O0QMknF.js} +1 -1
  179. package/dist/ui/assets/title-BtztnD4i.js +1 -0
  180. package/dist/ui/assets/useChatScroll--_KRDDa8.js +1 -0
  181. package/dist/ui/assets/{useResponsiveLayout-avkGtdev.js → useResponsiveLayout-CWHmiJKK.js} +1 -1
  182. package/dist/ui/assets/value-Cnv_lviy.js +1 -0
  183. package/dist/ui/assets/vendor-ui-DdxFTke2.js +3 -0
  184. package/dist/ui/assets/vendor-vue-BbjysADZ.js +1 -0
  185. package/dist/ui/assets/{vennDiagram-4TSXK5OY-BV9mQ8qJ.js → vennDiagram-4TSXK5OY-DlPz1EvZ.js} +1 -1
  186. package/dist/ui/assets/viewport-T9GJSA28.js +1 -0
  187. package/dist/ui/assets/{wardleyDiagram-VM6X3IG4-Currs68h.js → wardleyDiagram-VM6X3IG4-CqAXPPey.js} +1 -1
  188. package/dist/ui/assets/{xychartDiagram-S5SC5T6Z-DBbEaa6v.js → xychartDiagram-S5SC5T6Z-CGPlYDyB.js} +1 -1
  189. package/dist/ui/index.html +24 -24
  190. package/dist/ui/sw.js +2 -2
  191. package/package.json +1 -1
  192. package/dist/commands/servers.test.d.ts +0 -1
  193. package/dist/commands/servers.test.js +0 -92
  194. package/dist/core/server-registry.test.d.ts +0 -1
  195. package/dist/core/server-registry.test.js +0 -138
  196. package/dist/server/__tests__/tailnet-servers.test.d.ts +0 -1
  197. package/dist/server/__tests__/tailnet-servers.test.js +0 -125
  198. package/dist/ui/assets/ActivityIndicator-7__6YXNw.js +0 -1
  199. package/dist/ui/assets/AgentModelControl-1mWbLFC2.js +0 -1
  200. package/dist/ui/assets/AgentModelModal-BK1n1yNL.js +0 -1
  201. package/dist/ui/assets/AgentsView-B6N8aWso.js +0 -2
  202. package/dist/ui/assets/ChatAgentModelChip-AtnobQNL.js +0 -1
  203. package/dist/ui/assets/ChecksView-D0jFkL1r.js +0 -0
  204. package/dist/ui/assets/ClientBoardView-B0J3ErvJ.js +0 -1
  205. package/dist/ui/assets/ConfirmDialog-DPnkOFol.js +0 -1
  206. package/dist/ui/assets/ContextView-B6dyeIEI.js +0 -4
  207. package/dist/ui/assets/DashboardView-VhivVcMU.js +0 -1
  208. package/dist/ui/assets/DeleteConfirmDialog-Da9Bacbx.js +0 -1
  209. package/dist/ui/assets/DeploymentsView-DnHM9vQM.js +0 -1
  210. package/dist/ui/assets/DevView-toBH7zm5.js +0 -2
  211. package/dist/ui/assets/DiffView-CYSHwBFT.js +0 -6
  212. package/dist/ui/assets/DiffView-DLg3DKTC.css +0 -1
  213. package/dist/ui/assets/FailedTestsList-DnyuYSHm.js +0 -1
  214. package/dist/ui/assets/InputsView-B066goW8.js +0 -1
  215. package/dist/ui/assets/InputsView-DmLO8B9g.css +0 -1
  216. package/dist/ui/assets/LoginView-6QlGg6cx.css +0 -1
  217. package/dist/ui/assets/LoginView-gvjvNhkU.js +0 -1
  218. package/dist/ui/assets/ReleasesView-4IdvUDjT.css +0 -1
  219. package/dist/ui/assets/ReleasesView-BmmHaaDI.js +0 -7
  220. package/dist/ui/assets/SecretsView-CqSGGfFt.js +0 -1
  221. package/dist/ui/assets/SettingsView-DssE5_Z3.js +0 -4
  222. package/dist/ui/assets/StoriesView-DEihGJ88.css +0 -1
  223. package/dist/ui/assets/StoriesView-iSRLG1RG.js +0 -1
  224. package/dist/ui/assets/WorkView-BlU63gRF.css +0 -1
  225. package/dist/ui/assets/WorkView-Nvt8K4c7.js +0 -2
  226. package/dist/ui/assets/agent-failure-BlqPGDXZ.js +0 -1
  227. package/dist/ui/assets/channel-BLiixi7_.js +0 -1
  228. package/dist/ui/assets/checkbox-CppTZSHg.js +0 -1
  229. package/dist/ui/assets/classDiagram-ZZMXUADV-BQ6jZM6q.js +0 -1
  230. package/dist/ui/assets/classDiagram-v2-VYDZK3BY-BQ6jZM6q.js +0 -1
  231. package/dist/ui/assets/close-DGMDnjoO.js +0 -1
  232. package/dist/ui/assets/flowDiagram-HODETNUW-C6XSpvTz.js +0 -1
  233. package/dist/ui/assets/index-CL4eWGQM.js +0 -95
  234. package/dist/ui/assets/index-CZQoC0TZ.css +0 -1
  235. package/dist/ui/assets/input-Bc0aNTNs.js +0 -1
  236. package/dist/ui/assets/repo-BjI_UicM.js +0 -79
  237. package/dist/ui/assets/stateDiagram-v2-MP3YSRHH-CynK2s7Z.js +0 -1
  238. package/dist/ui/assets/swimlanesDiagram-VR7AAH4N-Cv3cVg9s.js +0 -8
  239. package/dist/ui/assets/title-BSEVo0iT.js +0 -1
  240. package/dist/ui/assets/useChatScroll-Cx8yub8t.js +0 -1
  241. package/dist/ui/assets/value-CIJASySy.js +0 -1
  242. package/dist/ui/assets/vendor-ui-BmzYkqZG.js +0 -3
  243. package/dist/ui/assets/vendor-vue-CQ0VGVRu.js +0 -1
  244. package/dist/ui/assets/viewport-B5Qy7nSx.js +0 -1
@@ -1,5 +1,5 @@
1
1
  {
2
- "hash": "5a4506386f715b80fc162c52480bccef5fd72e766a23cbe9caafd01e085db55a",
3
- "version": "0.5.88",
2
+ "hash": "e1a65dbc1745d17a0cd1bf18c39b1021c1080f31d792e05b2a1d3641c2733841",
3
+ "version": "0.5.90",
4
4
  "devUi": false
5
5
  }
@@ -1,3 +1,3 @@
1
1
  {
2
- "generatedAt": "2026-11-16T05:19:15.977Z"
2
+ "generatedAt": "2026-11-18T04:54:42.962Z"
3
3
  }
@@ -101,6 +101,7 @@ const UI_ONLY_MATCHERS = [
101
101
  // cannot run the CLI, and the CLI's own `repoos servers --tailscale` reads
102
102
  // the same core directly rather than this authenticated endpoint.
103
103
  exact("GET", "/api/servers/tailnet"),
104
+ exact("GET", "/api/servers/discovery"),
104
105
  under("/api/telegram/"),
105
106
  exact("GET", "/api/index"),
106
107
  exact("GET", "/api/board"),
@@ -115,6 +116,11 @@ const UI_ONLY_MATCHERS = [
115
116
  exact("GET", "/api/system/logs"),
116
117
  under("/api/support/"),
117
118
  under("/api/tunnel/"),
119
+ // The Releases page owns the cut and its AI draft (#0605, #1126). The CLI's
120
+ // `repoos release` only previews the release email: an auto-publish promise
121
+ // is bound to a live server-side draft run and is cancellable from the page,
122
+ // so exposing it as an HTTP-only UI action is deliberate rather than a
123
+ // missing command.
118
124
  under("/api/release"),
119
125
  under("/api/deployments"),
120
126
  under("/api/chat"),
package/dist/cli/help.js CHANGED
@@ -386,9 +386,9 @@ const GROUPS = [
386
386
  },
387
387
  {
388
388
  name: "restart",
389
- usage: "restart [--when-idle] [--port N]",
389
+ usage: "restart [--when-idle] [--force] [--root <path>] [--port N]",
390
390
  desc: "Restart this repo's server (managed service, supervised, or hand-run)",
391
- flags: "--port N",
391
+ flags: "--when-idle · --force · --root <path> · --port N",
392
392
  },
393
393
  {
394
394
  name: "servers",
@@ -3,10 +3,11 @@
3
3
  * whether it runs as a managed service, a hand-run `repoos serve`, or an
4
4
  * externally supervised process (launchd KeepAlive, systemd, …).
5
5
  */
6
- import { boardRoot } from "../core/config.js";
6
+ import { boardRoot, loadConfig } from "../core/config.js";
7
7
  import { restartRepoServer } from "../core/server-restart.js";
8
8
  import { c } from "../cli/colors.js";
9
9
  import { locateRepoServer } from "../core/server-locate.js";
10
+ import { readLocalCliToken } from "../server/local-token.js";
10
11
  const PATH_LABEL = {
11
12
  "managed-service": "managed service (`repoos service`)",
12
13
  "external-supervisor": "externally supervised process (supervisor respawn)",
@@ -14,6 +15,7 @@ const PATH_LABEL = {
14
15
  };
15
16
  export async function cmdRestart(argv) {
16
17
  let portFilter;
18
+ let rootOverride;
17
19
  const whenIdle = argv.includes("--when-idle");
18
20
  const force = argv.includes("--force");
19
21
  for (let i = 0; i < argv.length; i++) {
@@ -27,8 +29,20 @@ export async function cmdRestart(argv) {
27
29
  }
28
30
  portFilter = n;
29
31
  }
32
+ if (argv[i] === "--root") {
33
+ const value = argv[++i];
34
+ if (!value) {
35
+ console.error(c.red(" ✗ Invalid --root value: missing path"));
36
+ process.exitCode = 1;
37
+ return;
38
+ }
39
+ rootOverride = value;
40
+ }
30
41
  }
31
- const { root } = boardRoot();
42
+ const { root: boardRootPath } = boardRoot();
43
+ const root = rootOverride ?? boardRootPath;
44
+ const config = loadConfig(root);
45
+ const localToken = readLocalCliToken(root, config.cacheDir);
32
46
  if (whenIdle || !force) {
33
47
  const server = await locateRepoServer(root, { portFilter });
34
48
  if (!server) {
@@ -38,10 +52,13 @@ export async function cmdRestart(argv) {
38
52
  }
39
53
  if (whenIdle)
40
54
  console.log(c.dim(" Waiting for agents, reviews and checks to finish…"));
41
- const host = server.host === "0.0.0.0" ? "127.0.0.1" : server.host;
55
+ // The local CLI token is deliberately accepted only over loopback.
56
+ const host = "127.0.0.1";
42
57
  for (;;) {
43
58
  try {
44
- const response = await fetch(`http://${host}:${server.port}/api/update-status`);
59
+ const response = await fetch(`http://${host}:${server.port}/api/update-status`, {
60
+ headers: localToken ? { "x-repoos-local-token": localToken } : {},
61
+ });
45
62
  if (!response.ok)
46
63
  throw new Error(`server returned HTTP ${response.status}`);
47
64
  const status = (await response.json());
@@ -1,5 +1,5 @@
1
1
  import { describe, expect, it } from "vitest";
2
- import { formatServeBindBannerValue, renderServeBanner } from "./serve.js";
2
+ import { effectiveServeBannerNetwork, formatServeBindBannerValue, renderServeBanner, } from "./serve.js";
3
3
  describe("renderServeBanner", () => {
4
4
  const rows = [
5
5
  { label: "Local", value: "http://127.0.0.1:7515" },
@@ -33,6 +33,17 @@ describe("renderServeBanner", () => {
33
33
  expect(formatServeBindBannerValue("0.0.0.0", true)).toContain("Tailscale detected");
34
34
  expect(formatServeBindBannerValue("192.168.1.5", false)).toContain("192.168.1.5");
35
35
  });
36
+ it("reports the effective loopback bind for auth-less previews", () => {
37
+ const network = effectiveServeBannerNetwork("127.0.0.1", true);
38
+ expect(network).toEqual({ bindHost: "127.0.0.1", tailscaleDetected: false });
39
+ expect(formatServeBindBannerValue(network.bindHost, network.tailscaleDetected)).toContain("localhost only");
40
+ });
41
+ it("keeps the Tailnet banner for an effective all-interface listener", () => {
42
+ expect(effectiveServeBannerNetwork("0.0.0.0", true)).toEqual({
43
+ bindHost: "0.0.0.0",
44
+ tailscaleDetected: true,
45
+ });
46
+ });
36
47
  it("splits an HTTPS warning into problem, fix and link", () => {
37
48
  const out = renderServeBanner("1.2.3", rows, "HTTPS certificates aren't enabled for your tailnet — turn on MagicDNS and HTTPS Certificates at https://login.tailscale.com/admin/dns");
38
49
  expect(out).toContain("Tailscale HTTPS unavailable");
@@ -45,6 +45,10 @@ export declare function resolveServeHost(explicitHost?: string): {
45
45
  * not `host === "0.0.0.0"`, so an explicit `--host 0.0.0.0` is not mislabeled.
46
46
  */
47
47
  export declare function formatServeBindBannerValue(host: string, tailscaleDetected: boolean): string;
48
+ export declare function effectiveServeBannerNetwork(bindHost: string, tailscaleDetected: boolean): {
49
+ bindHost: string;
50
+ tailscaleDetected: boolean;
51
+ };
48
52
  /**
49
53
  * Whether this `repoos serve` should apply the repo's preview-only
50
54
  * `[preview.*]` config overlay (#0464).
@@ -98,6 +98,12 @@ export function formatServeBindBannerValue(host, tailscaleDetected) {
98
98
  }
99
99
  return c.cyan(host) + c.dim(" (explicit --host)");
100
100
  }
101
+ export function effectiveServeBannerNetwork(bindHost, tailscaleDetected) {
102
+ return {
103
+ bindHost,
104
+ tailscaleDetected: tailscaleDetected && bindHost === "0.0.0.0",
105
+ };
106
+ }
101
107
  /**
102
108
  * Whether this `repoos serve` should apply the repo's preview-only
103
109
  * `[preview.*]` config overlay (#0464).
@@ -243,13 +249,14 @@ export async function cmdServe(args, opts = {}) {
243
249
  return;
244
250
  }
245
251
  const snap = handle.index.snapshot();
252
+ const bannerNetwork = effectiveServeBannerNetwork(handle.bindHost, tailscaleDetected);
246
253
  const rt = isBun()
247
254
  ? `Bun ${process.versions.bun ?? ""}`.trim()
248
255
  : `Node ${process.versions.node}`;
249
256
  const rows = [
250
257
  {
251
258
  label: "Bind",
252
- value: formatServeBindBannerValue(host, tailscaleDetected),
259
+ value: formatServeBindBannerValue(bannerNetwork.bindHost, bannerNetwork.tailscaleDetected),
253
260
  },
254
261
  { label: "Local", value: c.cyan(c.bold(handle.url)) },
255
262
  { label: "Events", value: c.cyan(handle.url + "/api/events") + c.dim(" (SSE)") },
@@ -261,7 +268,7 @@ export async function cmdServe(args, opts = {}) {
261
268
  if (handle.previewOverrides?.length) {
262
269
  rows.push({ label: "Preview", value: c.yellow(handle.previewOverrides.join(", ")) });
263
270
  }
264
- if (tailscaleDetected) {
271
+ if (bannerNetwork.tailscaleDetected) {
265
272
  rows.push({
266
273
  label: "Tailnet",
267
274
  value: c.cyan(`http://${tailscaleIP}:${handle.port}`) +
@@ -274,7 +281,9 @@ export async function cmdServe(args, opts = {}) {
274
281
  // crypto.randomUUID etc. are missing). Skipped for managed previews, which
275
282
  // must not touch the machine's `tailscale serve` config.
276
283
  let httpsWarning;
277
- if (tailscaleDetected && tailscaleHttps && process.env.REPOOS_PREVIEW_CHILD !== "1") {
284
+ if (bannerNetwork.tailscaleDetected &&
285
+ tailscaleHttps &&
286
+ process.env.REPOOS_PREVIEW_CHILD !== "1") {
278
287
  const https = await ensureTailscaleHttps(handle.port);
279
288
  if (https.url) {
280
289
  rows.push({
@@ -1,3 +1,12 @@
1
- export { collectTailnetServers, parseTailnetPeers, serversSshArgs, } from "../core/tailnet-servers.js";
1
+ import { collectTailnetServers } from "../core/tailnet-servers.js";
2
+ export { collectTailnetServers, parseTailnetPeers, remoteFailureReason, remoteShellCommand, remoteShellScript, serversSshArgs, shellQuote, } from "../core/tailnet-servers.js";
2
3
  export type { ListedServer, RemoteExec } from "../core/tailnet-servers.js";
3
- export declare function cmdServers(argv: string[]): Promise<void>;
4
+ /** Human-readable fallback line when the local Tailscale status is unavailable. */
5
+ export declare function tailnetFallbackNotice(configuredHosts: string[]): string;
6
+ export interface ServersCommandDeps {
7
+ /** Test seam: resolve config from this root instead of the current repo. */
8
+ root?: string;
9
+ /** Test seam: replace tailnet collection (the CLI path has no network seam). */
10
+ collect?: typeof collectTailnetServers;
11
+ }
12
+ export declare function cmdServers(argv: string[], deps?: ServersCommandDeps): Promise<void>;
@@ -7,7 +7,7 @@ import { c } from "../cli/colors.js";
7
7
  // Re-exported for callers (and tests) that used to import these from the CLI
8
8
  // command before tailnet discovery moved into `src/core/tailnet-servers.ts` so
9
9
  // the server endpoint can share it.
10
- export { collectTailnetServers, parseTailnetPeers, serversSshArgs, } from "../core/tailnet-servers.js";
10
+ export { collectTailnetServers, parseTailnetPeers, remoteFailureReason, remoteShellCommand, remoteShellScript, serversSshArgs, shellQuote, } from "../core/tailnet-servers.js";
11
11
  function localJsonRow(row) {
12
12
  return {
13
13
  port: row.entry.port,
@@ -52,7 +52,13 @@ function formatUptime(seconds) {
52
52
  return `${m}m ${s}s`;
53
53
  return `${Math.floor(m / 60)}h ${m % 60}m`;
54
54
  }
55
- export async function cmdServers(argv) {
55
+ /** Human-readable fallback line when the local Tailscale status is unavailable. */
56
+ export function tailnetFallbackNotice(configuredHosts) {
57
+ return configuredHosts.length
58
+ ? ` Tailscale peer discovery unavailable; using configured hosts (${configuredHosts.join(", ")}) instead of the tailnet peer list.`
59
+ : " Tailscale peer discovery unavailable and no remoteValidation.tailscaleHosts configured; showing local servers only.";
60
+ }
61
+ export async function cmdServers(argv, deps = {}) {
56
62
  const json = argv.includes("--json");
57
63
  const prune = argv.includes("--prune");
58
64
  const tailscale = argv.includes("--tailscale");
@@ -80,27 +86,29 @@ export async function cmdServers(argv) {
80
86
  staleReason: row.staleReason,
81
87
  healthRoot: row.healthRoot,
82
88
  }));
83
- const cfg = tailscale ? loadConfig(findRepoRoot()) : undefined;
89
+ const cfg = tailscale ? loadConfig(deps.root ?? findRepoRoot()) : undefined;
84
90
  const remoteHosts = resolveRemoteHosts(cfg?.remoteValidation);
85
91
  const result = tailscale
86
- ? await collectTailnetServers(local, {
92
+ ? await (deps.collect ?? collectTailnetServers)(local, {
87
93
  configuredHosts: remoteHosts.map((host) => host.host),
88
94
  remoteHosts,
89
95
  remoteValidation: cfg?.remoteValidation,
90
96
  })
91
- : { servers: local, tailscaleUnavailable: false };
97
+ : { servers: local, tailscaleUnavailable: false, source: "tailscale" };
92
98
  if (json) {
93
99
  console.log(JSON.stringify({
94
100
  servers: tailscale ? result.servers : localRows.map(localJsonRow),
95
101
  ...(pruned !== undefined ? { pruned } : {}),
96
102
  ...(result.tailscaleUnavailable ? { tailscaleUnavailable: true } : {}),
103
+ ...(tailscale && result.source ? { discoverySource: result.source } : {}),
97
104
  }, null, 2));
98
105
  return;
99
106
  }
100
107
  if (pruned)
101
108
  console.log(c.dim(` Pruned ${pruned} stale local registry entr${pruned === 1 ? "y" : "ies"}.`));
102
- if (result.tailscaleUnavailable)
103
- console.log(c.yellow(" Tailscale CLI unavailable; showing configured hosts where reachable and local servers."));
109
+ if (result.tailscaleUnavailable) {
110
+ console.log(c.yellow(tailnetFallbackNotice(remoteHosts.map((host) => host.host))));
111
+ }
104
112
  if (!tailscale && !prune && pruned === undefined) {
105
113
  if (localRows.length === 0) {
106
114
  console.log(c.dim(" No registered RepoOS servers."));
@@ -123,14 +131,15 @@ export async function cmdServers(argv) {
123
131
  return;
124
132
  }
125
133
  for (const row of result.servers) {
134
+ const display = row.displayName && row.displayName !== row.host ? ` ${c.dim(`(${row.displayName})`)}` : "";
126
135
  if (row.unreachable) {
127
- console.log(` ${c.cyan(row.host.padEnd(16))} ${c.yellow("unreachable")} ${row.reason ?? "unknown error"}`);
136
+ console.log(` ${c.cyan(row.host.padEnd(16))} ${c.yellow("unreachable")} ${row.reason ?? "unknown error"}${display}`);
128
137
  continue;
129
138
  }
130
139
  const status = row.valid === false
131
140
  ? c.yellow(row.staleReason ? `stale (${row.staleReason})` : "stale")
132
141
  : c.green("ok");
133
- console.log(` ${c.cyan(row.host.padEnd(16))} ${String(row.port ?? "—").padStart(5)} ${status} ${c.bold(row.projectName ?? "RepoOS")} ${c.dim(formatUptime(row.uptimeSeconds ?? null))}`);
142
+ console.log(` ${c.cyan(row.host.padEnd(16))} ${String(row.port ?? "—").padStart(5)} ${status} ${c.bold(row.projectName ?? "RepoOS")} ${c.dim(formatUptime(row.uptimeSeconds ?? null))}${display}`);
134
143
  if (row.root)
135
144
  console.log(` ${c.dim(row.root)}`);
136
145
  }
@@ -1,3 +1,4 @@
1
+ import { type ServerRegistrationState } from "../core/server-registry.js";
1
2
  import { type RepoOSConfig, type Status } from "../core/types.js";
2
3
  export interface StatusServer {
3
4
  /** Whether the listener is covered by a serve lock, alive without one, or stopped. */
@@ -54,6 +55,15 @@ export interface StatusServer {
54
55
  healthRoot: string | null;
55
56
  /** Number of serve lockfiles present (a repo may run more than one port). */
56
57
  locks: number;
58
+ /**
59
+ * Whether this server is discoverable in `~/.repoos/servers` (the source for
60
+ * `repoos servers`, Hub and tailnet discovery). `excluded` means the server
61
+ * deliberately skipped registration (preview, `REPOOS_NO_REGISTRY=1`, …);
62
+ * `unregistered` means it intended to register but no matching entry exists.
63
+ */
64
+ registration: ServerRegistrationState | "not-running";
65
+ /** Plain-language reason for `excluded` / `unregistered`, when known. */
66
+ registrationReason: string | null;
57
67
  }
58
68
  export interface StatusBuild {
59
69
  /** Same codes as core/build.ts checkBuildForRoot. */
@@ -177,6 +187,11 @@ interface ServeLockEntry {
177
187
  startedAt: string | null;
178
188
  serveFlags: string[];
179
189
  alive: boolean;
190
+ /** Registry intent recorded by the serving process (#1140). */
191
+ registry: {
192
+ state: "registered" | "excluded";
193
+ reason?: string;
194
+ } | null;
180
195
  }
181
196
  /**
182
197
  * Read every `.repoos/serve[-<port>].lock`. Locks are scoped per port (see
@@ -20,6 +20,7 @@ import { boardRoot, loadConfig, resolveServePort } from "../core/config.js";
20
20
  import { buildIndex } from "../core/indexer.js";
21
21
  import { checkBuildForRoot, readBuildMeta, readBuildStamp } from "../core/build.js";
22
22
  import { isManagedService } from "../core/service-manager.js";
23
+ import { serverRegistrationState } from "../core/server-registry.js";
23
24
  import { readTunnelConfig } from "../core/tunnel.js";
24
25
  import { readRegistry, reconcileIdentity, syncFromRepo, unionApps, } from "../core/tunnel-registry.js";
25
26
  import { currentBranch, isGitRepo, runGit } from "../core/git.js";
@@ -91,6 +92,16 @@ export function readServeLocks(root, cacheDir) {
91
92
  const serveFlags = Array.isArray(raw.serveFlags)
92
93
  ? raw.serveFlags.filter((f) => typeof f === "string")
93
94
  : [];
95
+ const rawRegistry = raw.registry && typeof raw.registry === "object"
96
+ ? raw.registry
97
+ : null;
98
+ const registryState = rawRegistry?.state;
99
+ const registry = registryState === "registered" || registryState === "excluded"
100
+ ? {
101
+ state: registryState,
102
+ ...(typeof rawRegistry?.reason === "string" ? { reason: rawRegistry.reason } : {}),
103
+ }
104
+ : null;
94
105
  out.push({
95
106
  file,
96
107
  pid,
@@ -99,6 +110,7 @@ export function readServeLocks(root, cacheDir) {
99
110
  startedAt: typeof raw.startedAt === "string" ? raw.startedAt : null,
100
111
  serveFlags,
101
112
  alive,
113
+ registry,
102
114
  });
103
115
  }
104
116
  catch {
@@ -235,10 +247,32 @@ export async function collectStatus(config, opts = {}) {
235
247
  buildHash: cliMeta.hash,
236
248
  buildAt: cliMeta.buildAt,
237
249
  };
250
+ // A running server that is intentionally absent from the registry is the
251
+ // ThinkPad mismatch (#1140): status trusted the serve lock while
252
+ // `repoos servers`/tailnet discovery read `~/.repoos/servers` and saw
253
+ // nothing. Reconcile both and name the reason instead of hiding it.
254
+ const registration = running
255
+ ? serverRegistrationState({
256
+ root,
257
+ // Probe port is the port health answered on (primary's port by
258
+ // default). Using it also covers a stale lock whose PID is dead while
259
+ // a healthy server answers on `opts.probePort`.
260
+ port: probePort,
261
+ pid: primaryAlive ? (primary?.pid ?? null) : null,
262
+ // A stale lock for a different endpoint must not label a healthy
263
+ // server discovered on another port. Same-port intent is kept even
264
+ // when `readServeLocks` cannot call the PID alive (in-process servers
265
+ // share the caller's PID).
266
+ lockRegistry: primary?.port === probePort ? (primary.registry ?? null) : null,
267
+ })
268
+ : { state: "not-running", reason: null };
238
269
  const server = {
239
270
  lifecycle,
240
271
  running,
241
- port: primary?.port ?? probePort,
272
+ // Report the port the server actually answered on; a stale primary lock
273
+ // for another endpoint must not be printed as the running server's port
274
+ // (#1140 review). With no health answer, keep the lock's diagnostic port.
275
+ port: health.state === "ok" ? probePort : (primary?.port ?? probePort),
242
276
  pid: primary?.pid ?? null,
243
277
  host: primary?.host ?? null,
244
278
  startedAt,
@@ -254,6 +288,8 @@ export async function collectStatus(config, opts = {}) {
254
288
  health: health.state,
255
289
  healthRoot: health.root,
256
290
  locks: locks.length,
291
+ registration: registration.state,
292
+ registrationReason: registration.reason,
257
293
  };
258
294
  // Fill in the comparison now that both sides exist — the same pure function
259
295
  // `renderStatus` warns with, exposed raw for `--json` scripts (#0701).
@@ -574,6 +610,15 @@ export function renderStatus(s, now = new Date()) {
574
610
  else if (sv.pid === null) {
575
611
  sub(c.dim("no serve lockfile — live via /api/health; restart `repoos serve` to restore it"));
576
612
  }
613
+ if (sv.registration === "excluded") {
614
+ sub(c.yellow(`⚠ not in the running-server registry (${sv.registrationReason ?? "intentionally excluded"}) — ` +
615
+ "`repoos servers` and tailnet discovery will not list this server"));
616
+ }
617
+ else if (sv.registration === "unregistered") {
618
+ sub(c.yellow("⚠ running but missing from ~/.repoos/servers" +
619
+ (sv.registrationReason ? ` (${sv.registrationReason})` : "") +
620
+ " — `repoos servers` and tailnet discovery will not list it; restart `repoos serve` to republish"));
621
+ }
577
622
  if (sv.locks > 1)
578
623
  sub(c.dim(`+ ${sv.locks - 1} more serve lock(s) — check other ports`));
579
624
  }
@@ -26,12 +26,12 @@
26
26
  * Screens whose background is an image/gradient are reported as *unchecked*
27
27
  * rather than judged — a ratio against an unknown pixel is a lie.
28
28
  */
29
- import { mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
29
+ import { mkdirSync, rmSync, writeFileSync } from "node:fs";
30
30
  import { execFileSync } from "node:child_process";
31
- import { tmpdir } from "node:os";
32
31
  import { join } from "node:path";
33
32
  import { c } from "../cli/colors.js";
34
33
  import { findRepoRoot, loadConfig } from "../core/config.js";
34
+ import { makeTempDir } from "../core/temp-dir.js";
35
35
  import { contrastRatio, luminance } from "./check.js";
36
36
  import { localShotStore } from "../server/shots.js";
37
37
  /** A 1x1 transparent PNG, base64-encoded — fixture shots the audit can caption. */
@@ -625,7 +625,7 @@ A second column's worth of content so the board is not a single card.
625
625
  - 2026-09-02T00:00:00Z · created · human
626
626
  `;
627
627
  export function makeAuditFixture() {
628
- const root = mkdtempSync(join(tmpdir(), "repoos-contrast-"));
628
+ const root = makeTempDir("repoos-contrast-");
629
629
  mkdirSync(join(root, "work"), { recursive: true });
630
630
  // A declared dev target so the `/dev` screen (#0802) renders a real card —
631
631
  // its command, URL and chosen port are text the audit must gate in every
@@ -10,11 +10,11 @@
10
10
  * Server startup + webkit launch share the harness in ui-harness.ts with the
11
11
  * screenshot script (#0213).
12
12
  */
13
- import { mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
14
- import { tmpdir } from "node:os";
13
+ import { mkdirSync, rmSync, writeFileSync } from "node:fs";
15
14
  import { join } from "node:path";
16
15
  import { c } from "../cli/colors.js";
17
16
  import { findRepoRoot } from "../core/config.js";
17
+ import { makeTempDir } from "../core/temp-dir.js";
18
18
  import { startPreviewServer, launchWebkit, isPlaywrightUnavailable, teardownUiHarness, combineHarnessErrors, } from "./ui-harness.js";
19
19
  /**
20
20
  * Build a throwaway, empty fixture repo to serve the built SPA against.
@@ -25,7 +25,7 @@ import { startPreviewServer, launchWebkit, isPlaywrightUnavailable, teardownUiHa
25
25
  * recovery, no auto-launch — constant cost regardless of board size.
26
26
  */
27
27
  export function makeSmokeFixture() {
28
- const root = mkdtempSync(join(tmpdir(), "repoos-smoke-"));
28
+ const root = makeTempDir("repoos-smoke-");
29
29
  mkdirSync(join(root, "work"), { recursive: true });
30
30
  writeFileSync(join(root, "repoos.toml"), 'theme = "dark"\nuiTheme = "classic"\n\n');
31
31
  // A review task with a stored report drives the send-to-engineer dialog
@@ -543,6 +543,77 @@ async function runUISmokeTest() {
543
543
  await recovPage.close();
544
544
  }
545
545
  }
546
+ // Exercise the actual Checks route across the responsive matrix that
547
+ // prompted #1163. Keep screenshots out of this loop: the goal is to
548
+ // isolate page navigation/layout from repeated capture work.
549
+ {
550
+ const checksPage = await context.newPage();
551
+ const checksPageErrors = [];
552
+ checksPage.on("pageerror", (err) => {
553
+ if (!err.message.includes("/api/") || !err.message.includes("access control checks")) {
554
+ checksPageErrors.push(err.message);
555
+ }
556
+ });
557
+ const tabs = [
558
+ { label: "Now", query: "now" },
559
+ { label: "Runs", query: "runs" },
560
+ { label: "Test suite", query: "test-suite" },
561
+ { label: "Check plan", query: "plan" },
562
+ ];
563
+ const widths = [1440, 390, 320];
564
+ try {
565
+ for (const appearance of ["light", "dark"]) {
566
+ // The app reads its appearance preference during startup.
567
+ await checksPage.goto(server.url, { waitUntil: "load", timeout: 20_000 });
568
+ await checksPage.evaluate((theme) => {
569
+ localStorage.setItem("repoos.theme", theme);
570
+ }, appearance);
571
+ for (const width of widths) {
572
+ await checksPage.setViewportSize({ width, height: width < 600 ? 812 : 900 });
573
+ await checksPage.goto(new URL("/checks?tab=now", server.url).toString(), {
574
+ waitUntil: "load",
575
+ timeout: 20_000,
576
+ });
577
+ await checksPage.waitForFunction(() => document.querySelector(".ck-title") !== null &&
578
+ document.querySelector('[role="tab"][aria-selected="true"]') !== null, { timeout: 10_000 });
579
+ const renderedAppearance = await checksPage.evaluate(() => document.documentElement.dataset.theme);
580
+ if (renderedAppearance !== appearance) {
581
+ throw new Error(`Checks theme mismatch at ${width}px: expected ${appearance}, got ${renderedAppearance}`);
582
+ }
583
+ for (const tab of tabs) {
584
+ await checksPage.click(`button[role="tab"]:has-text("${tab.label}")`, {
585
+ timeout: 5_000,
586
+ });
587
+ await checksPage.waitForTimeout(50);
588
+ const state = await checksPage.evaluate(() => {
589
+ const selected = document.querySelector('[role="tab"][aria-selected="true"]');
590
+ return {
591
+ query: new URL(window.location.href).searchParams.get("tab"),
592
+ selected: selected?.textContent?.trim(),
593
+ scrollWidth: document.body.scrollWidth,
594
+ viewportWidth: window.innerWidth,
595
+ };
596
+ });
597
+ if (state.query !== tab.query || state.selected !== tab.label) {
598
+ throw new Error(`Checks ${tab.label} navigation failed at ${width}px (${appearance}): ` +
599
+ `query=${state.query}, selected=${state.selected}`);
600
+ }
601
+ if (state.scrollWidth > state.viewportWidth) {
602
+ throw new Error(`Checks ${tab.label} overflows at ${width}px (${appearance}): ` +
603
+ `body scrollWidth ${state.scrollWidth} > viewport ${state.viewportWidth}`);
604
+ }
605
+ }
606
+ }
607
+ }
608
+ if (checksPageErrors.length > 0) {
609
+ throw new Error(`Checks page errors: ${checksPageErrors.join("; ")}`);
610
+ }
611
+ }
612
+ finally {
613
+ await checksPage.close();
614
+ }
615
+ console.log(c.dim(" · Checks tabs passed at 1440, 390 and 320px in light and dark mode"));
616
+ }
546
617
  // Check for zero console errors
547
618
  {
548
619
  // Tolerate failed-resource errors only for the known-benign stats 404
@@ -1,5 +1,5 @@
1
1
  import type { AllowlistGroup } from "./allowlist-groups.js";
2
- import type { RemoteExec, ListedServer } from "./tailnet-servers.js";
2
+ import { type RemoteExec, type ListedServer } from "./tailnet-servers.js";
3
3
  import type { RemoteValidationConfig, RemoteValidationHost } from "./types.js";
4
4
  /** How one member answered a propagation attempt. */
5
5
  export type GroupApplyStatus = "applied" | "unreachable" | "refused";
@@ -14,6 +14,7 @@
14
14
  * `~/.config/repoos/allowlist-groups/<name>.toml`.
15
15
  */
16
16
  import { remoteHostUser } from "./remote-hosts.js";
17
+ import { classifyRemoteFailure, shellQuote, } from "./tailnet-servers.js";
17
18
  /**
18
19
  * Filter discovered servers down to members of `groupName`. Unreachable hosts
19
20
  * carry no group declaration and are NOT members — we cannot know their group,
@@ -42,10 +43,6 @@ export function groupMembersFromServers(servers, groupName) {
42
43
  export function encodeGroupApplyPayload(payload) {
43
44
  return Buffer.from(JSON.stringify(payload), "utf8").toString("base64");
44
45
  }
45
- /** Single-quote a path for the remote shell. */
46
- function shellQuote(value) {
47
- return `'${value.replace(/'/g, `'\\''`)}'`;
48
- }
49
46
  /**
50
47
  * The command a peer runs to apply a group payload. It `cd`s to the member's
51
48
  * repo root so the receiver can verify that *this* project declares the group
@@ -90,11 +87,7 @@ export function parseGroupApplyOutput(stdout) {
90
87
  }
91
88
  /** Classify an SSH/exec failure: transport problems are unreachable, the rest refused. */
92
89
  export function classifyGroupApplyFailure(error) {
93
- const message = error instanceof Error ? error.message : String(error);
94
- if (/ssh:|connect|could not resolve|permission denied|no route|timed? ?out|timeout|network is unreachable|connection (?:refused|closed|reset)/i.test(message)) {
95
- return "unreachable";
96
- }
97
- return "refused";
90
+ return classifyRemoteFailure(error).kind === "unknown" ? "refused" : "unreachable";
98
91
  }
99
92
  /** Run `fn` for every item with a hard per-item timeout. */
100
93
  async function withTimeout(promise, ms, fallback) {
@@ -151,11 +144,11 @@ export async function propagateAllowlistGroup(group, members, originHost, option
151
144
  };
152
145
  }
153
146
  catch (error) {
154
- const status = classifyGroupApplyFailure(error);
147
+ const failure = classifyRemoteFailure(error);
155
148
  return {
156
149
  ...member,
157
- status,
158
- reason: error instanceof Error ? error.message : String(error),
150
+ status: failure.kind === "unknown" ? "refused" : "unreachable",
151
+ reason: failure.reason,
159
152
  };
160
153
  }
161
154
  }));
@@ -12,7 +12,7 @@ export interface CloseOutOutcomeFeedEvent {
12
12
  }
13
13
  export type AttentionSeverity = "info" | "warning" | "error";
14
14
  /** Every attention kind the bell and API expose. */
15
- export type AttentionKind = "releaseNotesReady" | "releaseSucceeded" | "releaseFailed" | "closeOutSucceeded" | "closeOutFailed" | "closeOutTimedOut" | "taskReview" | "taskNeedsInput" | "taskNeedsMerge" | "taskAssigned" | "providerFailure" | "providerUsageLimit" | "silentRun" | "slowRun" | "slowRunsRecently" | "spendThreshold" | "awaitingVisualCheck" | "remoteFallback" | "remoteHostDegraded" | "ctoAction" | "gitLock" | "ctoSilent" | "engineerRecoveryFailed" | "releaseEmailFailed" | "serverCrash" | "processSignalFailure";
15
+ export type AttentionKind = "releaseNotesReady" | "releaseNotesFailed" | "releaseAutoPublishFailed" | "releaseSucceeded" | "releaseFailed" | "closeOutSucceeded" | "closeOutFailed" | "closeOutTimedOut" | "taskReview" | "taskNeedsInput" | "taskNeedsMerge" | "taskAssigned" | "providerFailure" | "providerUsageLimit" | "silentRun" | "slowRun" | "slowRunsRecently" | "spendThreshold" | "awaitingVisualCheck" | "remoteFallback" | "remoteHostDegraded" | "ctoAction" | "gitLock" | "ctoSilent" | "engineerRecoveryFailed" | "releaseEmailFailed" | "serverCrash" | "processSignalFailure";
16
16
  export interface AttentionItem {
17
17
  /** Stable per event — dedupe key for clients and dismiss markers. */
18
18
  id: string;
@@ -31,9 +31,11 @@ export interface AttentionFeed {
31
31
  items: AttentionItem[];
32
32
  }
33
33
  /** Durable attention events recorded on the server (provider failures, remote fallback). */
34
+ export type RecordedAttentionKind = "providerFailure" | "providerUsageLimit" | "remoteFallback" | "ctoAction" | "gitLock" | "engineerRecoveryFailed" | "releaseEmailFailed" | "releaseNotesFailed" | "releaseAutoPublishFailed" | "serverCrash" | "processSignalFailure";
35
+ export declare const RECORDED_ATTENTION_KINDS: ReadonlySet<RecordedAttentionKind>;
34
36
  export interface RecordedAttentionEvent {
35
37
  id: string;
36
- kind: "providerFailure" | "providerUsageLimit" | "remoteFallback" | "ctoAction" | "gitLock" | "engineerRecoveryFailed" | "releaseEmailFailed" | "serverCrash" | "processSignalFailure";
38
+ kind: RecordedAttentionKind;
37
39
  taskId: string | null;
38
40
  message: string;
39
41
  detail: string;