@repo-os/repoos 0.5.90 → 0.5.91

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 (152) hide show
  1. package/dist/.build-info.json +2 -2
  2. package/dist/.build-stamp.json +1 -1
  3. package/dist/cli/help.js +2 -2
  4. package/dist/commands/init.js +3 -24
  5. package/dist/commands/restart.js +1 -1
  6. package/dist/commands/tasks.js +9 -0
  7. package/dist/commands/upgrade.d.ts +2 -0
  8. package/dist/commands/upgrade.js +25 -4
  9. package/dist/core/config.d.ts +1 -1
  10. package/dist/core/config.js +11 -1
  11. package/dist/core/git.js +14 -2
  12. package/dist/core/server-restart-classify.test.js +31 -1
  13. package/dist/core/server-restart.d.ts +13 -2
  14. package/dist/core/server-restart.js +61 -25
  15. package/dist/core/server-restart.test.js +64 -15
  16. package/dist/core/shot-fixtures.d.ts +1 -1
  17. package/dist/core/shot-fixtures.js +16 -1
  18. package/dist/core/supervisor-detect.d.ts +2 -0
  19. package/dist/core/supervisor-detect.js +59 -17
  20. package/dist/core/supervisor-detect.test.js +107 -1
  21. package/dist/server/routes/config.js +31 -4
  22. package/dist/ui/assets/{ActivityIndicator-D3kaLo54.js → ActivityIndicator-DwoyYKVa.js} +1 -1
  23. package/dist/ui/assets/{AgentModelControl-BXndbOjd.js → AgentModelControl-sj-78Q_B.js} +1 -1
  24. package/dist/ui/assets/{AgentModelModal-BZon9Xw-.js → AgentModelModal-C1XQIgm2.js} +1 -1
  25. package/dist/ui/assets/AgentsView-C0WrNcYy.js +2 -0
  26. package/dist/ui/assets/{ChatAgentModelChip-CFf6DH-x.js → ChatAgentModelChip-Dz79EXOW.js} +1 -1
  27. package/dist/ui/assets/ChecksView-Dd8LO8m6.js +0 -0
  28. package/dist/ui/assets/ChecksView-WmIVoIXD.css +1 -0
  29. package/dist/ui/assets/{ClientBoardView-DJuKrnmC.js → ClientBoardView-BwWiNdXQ.js} +1 -1
  30. package/dist/ui/assets/ConfirmDialog-DJczbtU0.js +1 -0
  31. package/dist/ui/assets/{ContextView-f1qnwOfz.js → ContextView-DguOJyZg.js} +3 -3
  32. package/dist/ui/assets/{DashboardView-BI6MsPGb.css → DashboardView-CKnIpPNR.css} +1 -1
  33. package/dist/ui/assets/DashboardView-CnMju9ig.js +1 -0
  34. package/dist/ui/assets/DeleteConfirmDialog-CNeMKyyz.js +1 -0
  35. package/dist/ui/assets/DeploymentsView-0BPop4uE.js +1 -0
  36. package/dist/ui/assets/{DevView-C_o_mWmQ.js → DevView-mvyrjNa6.js} +1 -1
  37. package/dist/ui/assets/{DiffView-DP84rySJ.js → DiffView-CWFtumqM.js} +1 -1
  38. package/dist/ui/assets/{FailedTestsList-DIkE11W-.js → FailedTestsList-D91YLFHD.js} +1 -1
  39. package/dist/ui/assets/InputsView-imnbetme.js +1 -0
  40. package/dist/ui/assets/{LoginView-4-EXDlhL.js → LoginView-C1U9OfRd.js} +1 -1
  41. package/dist/ui/assets/{PageSkeleton-BkUizmiD.js → PageSkeleton-D_RFaQwe.js} +1 -1
  42. package/dist/ui/assets/{ReleasesView-nDp30TpJ.js → ReleasesView-WCCYxoVF.js} +2 -2
  43. package/dist/ui/assets/SecretsView-DaZYjEvs.js +1 -0
  44. package/dist/ui/assets/{SettingsView-BhZdEaQH.css → SettingsView-B83mU1Ai.css} +1 -1
  45. package/dist/ui/assets/SettingsView-zg4S1PEN.js +4 -0
  46. package/dist/ui/assets/StoriesView-rS16_IN0.js +1 -0
  47. package/dist/ui/assets/{VoiceDictate-eEL8mOQ6.js → VoiceDictate-Co5CatqL.js} +1 -1
  48. package/dist/ui/assets/{WorkView-B2H9HOzx.js → WorkView-CkRaRaCF.js} +2 -2
  49. package/dist/ui/assets/{WorkView-DA0KG2Wo.css → WorkView-CxI45mka.css} +1 -1
  50. package/dist/ui/assets/{abnfDiagram-VCTEODGH-_eosyKqu.js → abnfDiagram-VCTEODGH-Dlg7FtI9.js} +1 -1
  51. package/dist/ui/assets/{activity-motion-ZdL9OJaH.js → activity-motion-kvEPH_et.js} +1 -1
  52. package/dist/ui/assets/agent-failure-D1nIatMj.js +1 -0
  53. package/dist/ui/assets/{architectureDiagram-5GKGNRK7-PIOOBZj0.js → architectureDiagram-5GKGNRK7-NF5jHbOB.js} +1 -1
  54. package/dist/ui/assets/{blockDiagram-I7D4REHJ-C4pyoQIK.js → blockDiagram-I7D4REHJ-C-SV0UUl.js} +1 -1
  55. package/dist/ui/assets/{c4Diagram-7LVT6UL2-DehOc6EC.js → c4Diagram-7LVT6UL2-C-7-RInk.js} +1 -1
  56. package/dist/ui/assets/channel-B8HmveJ0.js +1 -0
  57. package/dist/ui/assets/{check-setup-CC3TsiUM.js → check-setup-B7eqbnaj.js} +1 -1
  58. package/dist/ui/assets/{checkbox-E2VmX5cG.js → checkbox-BC4PYsB5.js} +1 -1
  59. package/dist/ui/assets/{chunk-2E4U76K2-CdLsViyA.js → chunk-2E4U76K2-DJsZmctN.js} +1 -1
  60. package/dist/ui/assets/{chunk-4HAMMTFA-CwHfn5dc.js → chunk-4HAMMTFA-BVXiAQ-f.js} +1 -1
  61. package/dist/ui/assets/{chunk-75Z2AOVW-DdjEDEwd.js → chunk-75Z2AOVW-5bJ7d9Q0.js} +1 -1
  62. package/dist/ui/assets/{chunk-CLGD4ZFX-tIw2jEqw.js → chunk-CLGD4ZFX-TyTatfl6.js} +1 -1
  63. package/dist/ui/assets/{chunk-DU6HZSFF-DU2m-Rq_.js → chunk-DU6HZSFF-63f2WDFo.js} +1 -1
  64. package/dist/ui/assets/{chunk-F27PBJKO-XI6ntUgy.js → chunk-F27PBJKO-i83MKOg7.js} +1 -1
  65. package/dist/ui/assets/{chunk-GMAD6QVW-DS9hCmMU.js → chunk-GMAD6QVW-DxGUWdy9.js} +1 -1
  66. package/dist/ui/assets/{chunk-GVQU2GXP-CkV_qixK.js → chunk-GVQU2GXP-D2prPE68.js} +1 -1
  67. package/dist/ui/assets/{chunk-IMKFNOWR-SSIw4nk0.js → chunk-IMKFNOWR-4e5pye7F.js} +1 -1
  68. package/dist/ui/assets/{chunk-L3NEJ4N5-Mjq_7kRG.js → chunk-L3NEJ4N5-C3CQnitz.js} +1 -1
  69. package/dist/ui/assets/{chunk-OSK3NFVY-C_-AKGNt.js → chunk-OSK3NFVY-gvVJAz9z.js} +1 -1
  70. package/dist/ui/assets/{chunk-P2QGCYS3-Cml7U2x-.js → chunk-P2QGCYS3-CUwGXGBr.js} +1 -1
  71. package/dist/ui/assets/{chunk-POPQ4Y6H-BmC77hAA.js → chunk-POPQ4Y6H-BDcwgs6v.js} +1 -1
  72. package/dist/ui/assets/{chunk-PWAF6VOD-ZvDRCIUz.js → chunk-PWAF6VOD-CMeVZfww.js} +1 -1
  73. package/dist/ui/assets/{chunk-SHT3W25Y-BC_3w9An.js → chunk-SHT3W25Y-ggVxuqJX.js} +1 -1
  74. package/dist/ui/assets/{chunk-SVP7TREG-ButzIF6A.js → chunk-SVP7TREG-Be8zyoAB.js} +1 -1
  75. package/dist/ui/assets/{chunk-TICWLB2K-CggUYtfW.js → chunk-TICWLB2K-2r1gBZEc.js} +1 -1
  76. package/dist/ui/assets/chunk-TLUHSLCS-C4YfmYEw.js +2 -0
  77. package/dist/ui/assets/classDiagram-ZZMXUADV-B4D9FX0u.js +1 -0
  78. package/dist/ui/assets/classDiagram-v2-VYDZK3BY-B4D9FX0u.js +1 -0
  79. package/dist/ui/assets/close-BDbRl7Nq.js +1 -0
  80. package/dist/ui/assets/{cynefinDiagram-5FMLGOSQ-DQx5-LjP.js → cynefinDiagram-5FMLGOSQ-BKKL7__h.js} +1 -1
  81. package/dist/ui/assets/{dagre-GXQ25YYZ-CJEoldTu.js → dagre-GXQ25YYZ-C4wnJpCk.js} +1 -1
  82. package/dist/ui/assets/{diagram-S7CK7UJ4-C8wpb0w-.js → diagram-S7CK7UJ4-DjeciKZW.js} +1 -1
  83. package/dist/ui/assets/{diagram-UQ7AKVKN-Cwv7ZlPj.js → diagram-UQ7AKVKN-C-r3LQny.js} +1 -1
  84. package/dist/ui/assets/{diagram-VSXAHHWV-Bod-GUJ0.js → diagram-VSXAHHWV-DkwP_c0a.js} +1 -1
  85. package/dist/ui/assets/{diagram-VX7I27RA-B-IviZte.js → diagram-VX7I27RA-4oQ2QBmP.js} +1 -1
  86. package/dist/ui/assets/{diagram-Z3DM3KII-D7UJTgo0.js → diagram-Z3DM3KII-DAayG03d.js} +1 -1
  87. package/dist/ui/assets/{docs-Bru9enkv.js → docs-D3sAWu_L.js} +1 -1
  88. package/dist/ui/assets/{ebnfDiagram-PWID7BFC-36iN6vhQ.js → ebnfDiagram-PWID7BFC-nfLytJeL.js} +1 -1
  89. package/dist/ui/assets/{erDiagram-RLTQ6QDP-D1VxGNkw.js → erDiagram-RLTQ6QDP-N3OQ9XZ7.js} +1 -1
  90. package/dist/ui/assets/flowDiagram-HODETNUW-DUZmqKHp.js +1 -0
  91. package/dist/ui/assets/{ganttDiagram-EL5Y4UJY-CaQRdRWo.js → ganttDiagram-EL5Y4UJY-CW24p715.js} +1 -1
  92. package/dist/ui/assets/{gitGraphDiagram-WWUBYQGX-CPuqjqk3.js → gitGraphDiagram-WWUBYQGX-baG-rogD.js} +1 -1
  93. package/dist/ui/assets/index-DEyAKllM.css +1 -0
  94. package/dist/ui/assets/index-syo8our2.js +109 -0
  95. package/dist/ui/assets/{infoDiagram-27XIBGKW-C5y8qjnc.js → infoDiagram-27XIBGKW-B20l-Dj7.js} +1 -1
  96. package/dist/ui/assets/{input-usKnLzob.js → input-DWzP9viW.js} +1 -1
  97. package/dist/ui/assets/{ishikawaDiagram-5VMMS53U-KKx_BBPX.js → ishikawaDiagram-5VMMS53U-Dw-7L00u.js} +1 -1
  98. package/dist/ui/assets/{journeyDiagram-3NMN7TZE-Rba7zvBB.js → journeyDiagram-3NMN7TZE-B1RwpIaW.js} +1 -1
  99. package/dist/ui/assets/{kanban-definition-UXKFOSKX-CWUiM7nC.js → kanban-definition-UXKFOSKX-BY2WGcKX.js} +1 -1
  100. package/dist/ui/assets/{line-DaBQnM0e.js → line-KVY0Anrq.js} +1 -1
  101. package/dist/ui/assets/{mermaid-parser.core-B8Myoyel.js → mermaid-parser.core-ClbENqyX.js} +1 -1
  102. package/dist/ui/assets/mermaid.core-p1BDpOrr.js +11 -0
  103. package/dist/ui/assets/{mindmap-definition-YA3MSWOX-BdYDIAqu.js → mindmap-definition-YA3MSWOX-B9yhlR8y.js} +1 -1
  104. package/dist/ui/assets/{pegDiagram-XKGWAZYB-1U6yQMPJ.js → pegDiagram-XKGWAZYB-PwJsptvn.js} +1 -1
  105. package/dist/ui/assets/{pieDiagram-E7YTZNPT-C4XWr3KA.js → pieDiagram-E7YTZNPT-DqTZShF-.js} +1 -1
  106. package/dist/ui/assets/{quadrantDiagram-AXDQQJYC-DokRSlpE.js → quadrantDiagram-AXDQQJYC-Co9qtSqC.js} +1 -1
  107. package/dist/ui/assets/{railroadDiagram-O6MQD6OU-CNVlf25-.js → railroadDiagram-O6MQD6OU-DUJA_Hys.js} +1 -1
  108. package/dist/ui/assets/repo-CwNYzbdc.js +79 -0
  109. package/dist/ui/assets/{requirementDiagram-BXWQKSXE-BJbgitn9.js → requirementDiagram-BXWQKSXE-DMsIRj5s.js} +1 -1
  110. package/dist/ui/assets/{sankeyDiagram-P5KCCOFB-Dmm-_ESB.js → sankeyDiagram-P5KCCOFB-BCZOaADr.js} +1 -1
  111. package/dist/ui/assets/{sequenceDiagram-WJ2MYXX4-MgUn4Xsr.js → sequenceDiagram-WJ2MYXX4-Bss-g9PB.js} +1 -1
  112. package/dist/ui/assets/{stateDiagram-D77RDMKH-BqBSa94y.js → stateDiagram-D77RDMKH-DCvB4mL0.js} +1 -1
  113. package/dist/ui/assets/stateDiagram-v2-MP3YSRHH-CjW5nw4h.js +1 -0
  114. package/dist/ui/assets/{swimlanes-42K2YHIH-DfEw2nEt.js → swimlanes-42K2YHIH-BmHi9eSK.js} +1 -1
  115. package/dist/ui/assets/swimlanesDiagram-VR7AAH4N-DrAX_t__.js +8 -0
  116. package/dist/ui/assets/{switch-CHw_LJLk.js → switch-C9h1H2Kp.js} +1 -1
  117. package/dist/ui/assets/{timeline-definition-24CTP7MA-9O0QMknF.js → timeline-definition-24CTP7MA-WKZ5iOK3.js} +1 -1
  118. package/dist/ui/assets/title-Dchwkc3-.js +1 -0
  119. package/dist/ui/assets/{value-Cnv_lviy.js → value-BqMWzKIQ.js} +1 -1
  120. package/dist/ui/assets/{vennDiagram-4TSXK5OY-DlPz1EvZ.js → vennDiagram-4TSXK5OY-CAfMTZJ7.js} +1 -1
  121. package/dist/ui/assets/{viewport-T9GJSA28.js → viewport-D7hXjRfS.js} +1 -1
  122. package/dist/ui/assets/{wardleyDiagram-VM6X3IG4-CqAXPPey.js → wardleyDiagram-VM6X3IG4-MS0iUHWc.js} +1 -1
  123. package/dist/ui/assets/{xychartDiagram-S5SC5T6Z-CGPlYDyB.js → xychartDiagram-S5SC5T6Z-DjF-NKel.js} +1 -1
  124. package/dist/ui/index.html +19 -20
  125. package/dist/ui/sw.js +2 -2
  126. package/package.json +1 -1
  127. package/dist/ui/assets/AgentsView-B9f2VxAB.js +0 -2
  128. package/dist/ui/assets/ChecksView-BU7sn_8v.css +0 -1
  129. package/dist/ui/assets/ChecksView-CjBYmr0G.js +0 -0
  130. package/dist/ui/assets/ConfirmDialog-DtTUkVd2.js +0 -1
  131. package/dist/ui/assets/DashboardView-Bu-GfmCF.js +0 -1
  132. package/dist/ui/assets/DeleteConfirmDialog-QLp5rh6F.js +0 -1
  133. package/dist/ui/assets/DeploymentsView-D7snexob.js +0 -1
  134. package/dist/ui/assets/InputsView-DIXXyLvz.js +0 -1
  135. package/dist/ui/assets/SecretsView-DEwKwfBX.js +0 -1
  136. package/dist/ui/assets/SettingsView-MqvullIA.js +0 -4
  137. package/dist/ui/assets/StoriesView-SQfHR60h.js +0 -1
  138. package/dist/ui/assets/agent-failure-Bmoh7dgZ.js +0 -1
  139. package/dist/ui/assets/channel-Cyj3B_Pz.js +0 -1
  140. package/dist/ui/assets/chunk-TLUHSLCS-B4okP0Z9.js +0 -2
  141. package/dist/ui/assets/classDiagram-ZZMXUADV-CPSjxk4F.js +0 -1
  142. package/dist/ui/assets/classDiagram-v2-VYDZK3BY-CPSjxk4F.js +0 -1
  143. package/dist/ui/assets/close-DEOXwz7c.js +0 -1
  144. package/dist/ui/assets/flowDiagram-HODETNUW-DMCQ3QQc.js +0 -1
  145. package/dist/ui/assets/index-DPbsvkr-.css +0 -1
  146. package/dist/ui/assets/index-ebHBIEpP.js +0 -109
  147. package/dist/ui/assets/layer-DJtr131Z.js +0 -1
  148. package/dist/ui/assets/mermaid.core-VWbE_LVb.js +0 -11
  149. package/dist/ui/assets/repo-BX_-2THs.js +0 -79
  150. package/dist/ui/assets/stateDiagram-v2-MP3YSRHH-BpW2G0pv.js +0 -1
  151. package/dist/ui/assets/swimlanesDiagram-VR7AAH4N-CMQkP5RW.js +0 -8
  152. package/dist/ui/assets/title-BtztnD4i.js +0 -1
@@ -1,5 +1,5 @@
1
1
  {
2
- "hash": "e1a65dbc1745d17a0cd1bf18c39b1021c1080f31d792e05b2a1d3641c2733841",
3
- "version": "0.5.90",
2
+ "hash": "d3ba2d5054feb1350741e04c8e998c12d08a32d6943b852c5d73cbf6b82d1313",
3
+ "version": "0.5.91",
4
4
  "devUi": false
5
5
  }
@@ -1,3 +1,3 @@
1
1
  {
2
- "generatedAt": "2026-11-18T04:54:42.962Z"
2
+ "generatedAt": "2026-11-18T19:36:57.253Z"
3
3
  }
package/dist/cli/help.js CHANGED
@@ -55,8 +55,8 @@ const GROUPS = [
55
55
  commands: [
56
56
  {
57
57
  name: "list",
58
- usage: "list [status]",
59
- desc: "Show the board, or one status column (inbox|ready|active|review|done)",
58
+ usage: "list [inbox|ready|active|review|done|archived]",
59
+ desc: "Show the board, one status column, or archived tasks",
60
60
  },
61
61
  { name: "show", usage: "show <id>", desc: "Show a task's full spec" },
62
62
  {
@@ -1353,25 +1353,6 @@ async function askLayout() {
1353
1353
  console.log(c.yellow(" Too many invalid attempts — using the default (repoos/)."));
1354
1354
  return "repoos";
1355
1355
  }
1356
- /** Open a URL in the default browser. Fail-soft (best effort, never blocks). */
1357
- function openBrowser(url) {
1358
- const cmd = process.platform === "darwin"
1359
- ? ["open", url]
1360
- : process.platform === "win32"
1361
- ? ["cmd", "/c", "start", "", url]
1362
- : ["xdg-open", url];
1363
- try {
1364
- const child = spawn(cmd[0], cmd.slice(1), {
1365
- detached: true,
1366
- stdio: "ignore",
1367
- });
1368
- child.on("error", () => { });
1369
- child.unref();
1370
- }
1371
- catch {
1372
- /* fail-soft */
1373
- }
1374
- }
1375
1356
  function probePort(port) {
1376
1357
  return new Promise((resolve) => {
1377
1358
  const srv = createServer();
@@ -1798,12 +1779,10 @@ async function guidedNewRepo(opts) {
1798
1779
  "\n");
1799
1780
  }
1800
1781
  console.log(c.dim(" Starting the RepoOS web console…"));
1801
- // Opening the browser is deferred to onReady — the server isn't actually
1802
- // listening until cmdServe's startServer() resolves, and opening a tab
1803
- // any earlier races that startup, showing connection errors until a
1804
- // manual reload.
1782
+ // Don't launch a browser automatically: init may run from a headless
1783
+ // engineer session, and opening the user's default browser steals focus.
1805
1784
  await cmdServe(["--port", String(port)], {
1806
- onReady: (url) => openBrowser(url),
1785
+ onReady: (url) => console.log(c.dim(` Open the web console at ${url}`)),
1807
1786
  onShutdown: dirHint
1808
1787
  ? () => console.log(c.dim(" Start it again with:\n\n ") +
1809
1788
  c.cyan(dirHint) +
@@ -10,7 +10,7 @@ import { locateRepoServer } from "../core/server-locate.js";
10
10
  import { readLocalCliToken } from "../server/local-token.js";
11
11
  const PATH_LABEL = {
12
12
  "managed-service": "managed service (`repoos service`)",
13
- "external-supervisor": "externally supervised process (supervisor respawn)",
13
+ supervisor: "supervised process (restarted by its supervisor)",
14
14
  "hand-run": "hand-run `repoos serve` (stop + start)",
15
15
  };
16
16
  export async function cmdRestart(argv) {
@@ -155,6 +155,15 @@ function printTaskList(rootName, tasks, statusArg) {
155
155
  }
156
156
  /** `repoos list [status]` — board overview or a single column. */
157
157
  export async function cmdList(statusArg) {
158
+ const listStatuses = [...STATUSES.filter((status) => status !== "draft"), "archived"];
159
+ if (statusArg !== undefined &&
160
+ !listStatuses.includes(statusArg)) {
161
+ console.error(c.red(` Unknown list status: ${statusArg}. `) +
162
+ c.dim(`Choose one of: ${listStatuses.join(" | ")}.`));
163
+ console.error(c.dim(" Usage: repoos list [status]"));
164
+ process.exitCode = 1;
165
+ return;
166
+ }
158
167
  const remote = await listTasksViaApi(statusArg);
159
168
  if (remote) {
160
169
  printTaskList(remote.rootName, remote.tasks, statusArg);
@@ -96,6 +96,8 @@ export interface Release {
96
96
  * stay silent then, not print an empty line or "no notes available" filler.
97
97
  */
98
98
  export declare function releaseNotesToPrint(body: string | null | undefined): string | null;
99
+ /** `--channel beta|canary|rc` from argv, or null for the default stable channel. */
100
+ export declare function parseChannel(args: string[]): string | null;
99
101
  /**
100
102
  * `GET /releases/latest` always excludes prereleases (GitHub's own rule, not
101
103
  * configurable) — release.yml marks any tag with a "-" (v0.6.0-beta.1,
@@ -157,10 +157,13 @@ export function releaseNotesToPrint(body) {
157
157
  return trimmed ? trimmed : null;
158
158
  }
159
159
  /** `--channel beta|canary|rc` from argv, or null for the default stable channel. */
160
- function parseChannel(args) {
161
- const flag = args.indexOf("--channel");
162
- const value = flag !== -1 ? args[flag + 1] : undefined;
163
- return value && !value.startsWith("--") ? value : null;
160
+ export function parseChannel(args) {
161
+ const flag = args.find((arg) => arg === "--channel" || arg.startsWith("--channel="));
162
+ if (!flag)
163
+ return null;
164
+ return flag === "--channel"
165
+ ? (args[args.indexOf(flag) + 1] ?? null)
166
+ : flag.slice("--channel=".length);
164
167
  }
165
168
  /**
166
169
  * A GitHub API failure carrying the status and any `Retry-After` (seconds or an
@@ -210,6 +213,24 @@ export async function fetchLatestRelease(channel, signal) {
210
213
  return match;
211
214
  }
212
215
  export async function cmdUpgrade(args) {
216
+ const channelFlags = args.flatMap((arg, index) => arg === "--channel" || arg.startsWith("--channel=") ? [index] : []);
217
+ if (channelFlags.length > 1) {
218
+ console.error(c.red(" Use --channel only once."));
219
+ console.error(c.dim(" Choose one channel: beta, canary, or rc. Usage: repoos upgrade [--channel beta|canary|rc]"));
220
+ process.exitCode = 1;
221
+ return;
222
+ }
223
+ const channelFlag = channelFlags[0] ?? -1;
224
+ if (channelFlag !== -1) {
225
+ const arg = args[channelFlag];
226
+ const value = arg === "--channel" ? args[channelFlag + 1] : arg.slice("--channel=".length);
227
+ if (!value || value.startsWith("--") || !["beta", "canary", "rc"].includes(value)) {
228
+ console.error(c.red(` Invalid --channel value: ${value && !value.startsWith("--") ? value : "(missing)"}.`));
229
+ console.error(c.dim(" Choose beta, canary, or rc. Usage: repoos upgrade [--channel beta|canary|rc]"));
230
+ process.exitCode = 1;
231
+ return;
232
+ }
233
+ }
213
234
  const root = installRoot();
214
235
  const channel = parseChannel(args);
215
236
  const instruction = upgradeInstruction({
@@ -316,7 +316,7 @@ export interface ConfigFieldMeta {
316
316
  min?: number;
317
317
  /** Maximum value for number fields */
318
318
  max?: number;
319
- /** Step size for number fields; if > 1, decimals are not allowed */
319
+ /** Step size for number fields; a non-integer step allows decimals. */
320
320
  step?: number;
321
321
  }
322
322
  /** Select fields whose dropdown/API representations persist as numeric config values. */
@@ -94,7 +94,8 @@ export const DEFAULT_AGENTS = [
94
94
  "Never invent evidence: do not fabricate device sessions, live API measurements, external account IDs, " +
95
95
  "registration confirmations, or other proof you cannot observe in this run — leave those fields blank and say a human must supply them. " +
96
96
  "Never kill processes by name or pattern (`pkill`, `killall`); RepoOS reaps your turn's process group when it ends. " +
97
- "Stop only a helper's PID if you must stop it early.",
97
+ "Stop only a helper's PID if you must stop it early. " +
98
+ "Browser verification must stay headless: never run `open` or `xdg-open` on URLs, launch a headed browser, or use the user's Chrome profile; use headless Playwright with its bundled browser.",
98
99
  },
99
100
  {
100
101
  name: "reviewer",
@@ -3576,6 +3577,9 @@ export function getConfigSchema() {
3576
3577
  tier: "live",
3577
3578
  restartRequired: false,
3578
3579
  default: 0.08,
3580
+ min: 0,
3581
+ max: 1,
3582
+ step: 0.01,
3579
3583
  description: "Block new checks, browser steps and engineer starts when reclaimable memory falls below this fraction of total RAM. Default 0.08 (8%).",
3580
3584
  },
3581
3585
  {
@@ -3585,6 +3589,9 @@ export function getConfigSchema() {
3585
3589
  tier: "live",
3586
3590
  restartRequired: false,
3587
3591
  default: 0.5,
3592
+ min: 0.01,
3593
+ max: 1,
3594
+ step: 0.01,
3588
3595
  description: "Warn when swap in use exceeds this fraction of total swap (occupancy alone does not block). Default 0.5 (50%).",
3589
3596
  },
3590
3597
  {
@@ -3594,6 +3601,9 @@ export function getConfigSchema() {
3594
3601
  tier: "live",
3595
3602
  restartRequired: false,
3596
3603
  default: 0.35,
3604
+ min: 0.01,
3605
+ max: 1,
3606
+ step: 0.01,
3597
3607
  description: "Warn when the macOS memory compressor holds more than this fraction of total RAM. The fraction alone does not block; the byte cap does. Default 0.35 (35%).",
3598
3608
  },
3599
3609
  {
package/dist/core/git.js CHANGED
@@ -100,10 +100,22 @@ function worktreeAddLockPath(root, branch) {
100
100
  return join(root, ".repoos", "worktree-add-locks", hash);
101
101
  }
102
102
  function worktreeAddLockIsStale(lockDir) {
103
+ const oldEnoughToBeAbandoned = () => {
104
+ try {
105
+ return Date.now() - statSync(lockDir).mtimeMs > WORKTREE_ADD_LOCK_STALE_MS;
106
+ }
107
+ catch {
108
+ // The lock may have been released between existsSync and statSync.
109
+ return false;
110
+ }
111
+ };
103
112
  try {
104
113
  const pid = Number(readFileSync(join(lockDir, "pid"), "utf8"));
114
+ // mkdir(lockDir) and writing its pid are separate filesystem operations.
115
+ // Treat that brief initialization window as held; otherwise a contender
116
+ // can remove a live process's lock before its owner has recorded the pid.
105
117
  if (!Number.isInteger(pid) || pid <= 0)
106
- return true;
118
+ return oldEnoughToBeAbandoned();
107
119
  if (process.platform !== "win32") {
108
120
  const result = spawnSync("ps", ["-o", "stat=", "-p", String(pid)], {
109
121
  encoding: "utf8",
@@ -123,7 +135,7 @@ function worktreeAddLockIsStale(lockDir) {
123
135
  }
124
136
  }
125
137
  catch {
126
- return true;
138
+ return oldEnoughToBeAbandoned();
127
139
  }
128
140
  }
129
141
  /** Cross-process mutex so two starts for the same branch do not both run `-b` (#0994). */
@@ -1,12 +1,13 @@
1
1
  import { describe, expect, it, vi } from "vitest";
2
2
  const getServiceStatus = vi.fn();
3
+ const detectSupervisor = vi.fn((_pid) => ({ kind: "none" }));
3
4
  vi.mock("./service-manager.js", async (orig) => ({
4
5
  ...(await orig()),
5
6
  getServiceStatus: (...a) => getServiceStatus(...a),
6
7
  }));
7
8
  vi.mock("./supervisor-detect.js", async (orig) => ({
8
9
  ...(await orig()),
9
- detectSupervisor: () => ({ kind: "none" }),
10
+ detectSupervisor: (...a) => detectSupervisor(...a),
10
11
  }));
11
12
  import { classifyRestartPath } from "./server-restart.js";
12
13
  const located = (port) => ({
@@ -24,4 +25,33 @@ describe("classifyRestartPath (#1091)", () => {
24
25
  // A hand-run server on another port must not bounce the managed service.
25
26
  expect(await classifyRestartPath("/r", located(7373))).toBe("hand-run");
26
27
  });
28
+ it.each([
29
+ {
30
+ label: "RepoOS systemd unit detected from cgroup/parent",
31
+ result: {
32
+ kind: "managed",
33
+ job: "com.repoos.serve.demo",
34
+ info: {
35
+ platform: "systemd",
36
+ job: "com.repoos.serve.demo",
37
+ manualCommand: "systemctl --user restart com.repoos.serve.demo.service",
38
+ },
39
+ },
40
+ },
41
+ {
42
+ label: "external launchd unit",
43
+ result: {
44
+ kind: "external",
45
+ info: {
46
+ platform: "launchd",
47
+ job: "org.repoos.serve.demo",
48
+ manualCommand: "launchctl kickstart -k gui/501/org.repoos.serve.demo",
49
+ },
50
+ },
51
+ },
52
+ ])("routes $label through its supervisor", async ({ result }) => {
53
+ getServiceStatus.mockResolvedValue(null);
54
+ detectSupervisor.mockReturnValue(result);
55
+ expect(await classifyRestartPath("/r", located(7272))).toBe("supervisor");
56
+ });
27
57
  });
@@ -1,8 +1,14 @@
1
+ /**
2
+ * `repoos restart` core — restart this repo's control-plane server whether it
3
+ * was started by `repoos service`, by hand, or by an external supervisor
4
+ * (launchd KeepAlive, systemd, etc.).
5
+ */
6
+ import { execFileSync } from "node:child_process";
1
7
  import { restartService } from "./service-manager.js";
2
8
  import { locateRepoServer, type LocatedServer } from "./server-locate.js";
3
9
  import { verifyPidServesRepo } from "./serve-pid-verify.js";
4
10
  import { type SupervisorDetectResult, type SupervisorInfo } from "./supervisor-detect.js";
5
- export type RestartPath = "managed-service" | "external-supervisor" | "hand-run";
11
+ export type RestartPath = "managed-service" | "supervisor" | "hand-run";
6
12
  export interface HealthSnapshot {
7
13
  ok: boolean;
8
14
  root: string | null;
@@ -40,6 +46,10 @@ export declare function pidOwnership(pid: number): PidOwnership;
40
46
  /** @deprecated use detectSupervisor */
41
47
  export declare function detectExternalSupervisor(pid: number): SupervisorInfo | null;
42
48
  export declare function classifyRestartPath(root: string, server: LocatedServer): Promise<RestartPath | "refuse-supervised-unknown">;
49
+ export declare function restartSupervisorUnit(info: SupervisorInfo, execFile?: typeof execFileSync): {
50
+ ok: boolean;
51
+ error?: string;
52
+ };
43
53
  export declare function fetchHealth(host: string, port: number, timeoutMs?: number): Promise<HealthSnapshot>;
44
54
  export interface CurrentPidResult {
45
55
  pid: number | null;
@@ -85,7 +95,8 @@ export interface RestartRepoServerOptions {
85
95
  restartManaged?: typeof restartService;
86
96
  classify?: (root: string, server: LocatedServer) => Promise<RestartPath | "refuse-supervised-unknown">;
87
97
  ownership?: typeof pidOwnership;
88
- supervisor?: typeof detectExternalSupervisor;
98
+ supervisorInfo?: (pid: number) => SupervisorInfo | null;
99
+ restartSupervisor?: typeof restartSupervisorUnit;
89
100
  stop?: typeof stopPidExact;
90
101
  spawn?: typeof spawnHandRunServe;
91
102
  resolveServeFlags?: (server: LocatedServer) => string[];
@@ -104,15 +104,45 @@ export async function classifyRestartPath(root, server) {
104
104
  if (managed?.status === "running" && managed.port === server.port)
105
105
  return "managed-service";
106
106
  const detected = detectSupervisor(server.pid);
107
- if (detected.kind === "external")
108
- return "external-supervisor";
109
- // A RepoOS service unit whose registry entry is missing or not `running`:
110
- // signalling it would race the service's KeepAlive respawn into a second server.
111
- if (detected.kind === "uncertain" || detected.kind === "managed") {
107
+ if (detected.kind === "external" || detected.kind === "managed")
108
+ return "supervisor";
109
+ if (detected.kind === "uncertain") {
112
110
  return "refuse-supervised-unknown";
113
111
  }
114
112
  return "hand-run";
115
113
  }
114
+ export function restartSupervisorUnit(info, execFile = execFileSync) {
115
+ let command;
116
+ let args;
117
+ if (info.platform === "systemd") {
118
+ command = "systemctl";
119
+ args = [
120
+ ...(info.manualCommand.startsWith("systemctl --user ") ? ["--user"] : []),
121
+ "restart",
122
+ `${info.job}.service`,
123
+ ];
124
+ }
125
+ else {
126
+ const target = info.manualCommand.match(/launchctl kickstart -k (.+)$/)?.[1];
127
+ if (!target || !/^(?:system|gui\/\d+)\/[\w.-]+$/.test(target)) {
128
+ return { ok: false, error: "Could not form a safe launchctl restart target" };
129
+ }
130
+ command = "launchctl";
131
+ args = ["kickstart", "-k", target];
132
+ }
133
+ try {
134
+ execFile(command, args, {
135
+ encoding: "utf8",
136
+ timeout: 15_000,
137
+ stdio: ["ignore", "pipe", "pipe"],
138
+ });
139
+ return { ok: true };
140
+ }
141
+ catch (error) {
142
+ const detail = error instanceof Error ? error.message : String(error);
143
+ return { ok: false, error: detail };
144
+ }
145
+ }
116
146
  export function fetchHealth(host, port, timeoutMs = 1500) {
117
147
  const probeHost = host === "0.0.0.0" ? "127.0.0.1" : host;
118
148
  return new Promise((resolve) => {
@@ -294,17 +324,14 @@ export async function restartRepoServer(root, opts = {}) {
294
324
  oldPid: server.pid,
295
325
  message: detected.kind === "uncertain"
296
326
  ? detected.reason
297
- : detected.kind === "managed"
298
- ? `pid ${server.pid} is the RepoOS service ${detected.job}, but the service manager does not report it running — use \`repoos service restart\` instead of signalling it.`
299
- : "Could not determine how this server is supervised — refusing to restart automatically.",
327
+ : "Could not determine how this server is supervised — refusing to restart automatically.",
300
328
  // A bare `kill` only stops the server, so it is the FIRST step, not a
301
329
  // restart: say plainly that the server stays down unless its supervisor
302
330
  // respawns it, and name the start command to run either way.
303
- manualCommand: detected.kind === "managed"
304
- ? "repoos service restart"
305
- : // One step, never `kill && serve`: if a supervisor owns the pid it respawns the
306
- // server itself, and a second serve would race it onto the same port.
307
- `kill ${server.pid} # this only stops it. If a supervisor owns it, it respawns the server; after ~30s, if nothing answers, start it yourself: ${startCommand}`,
331
+ manualCommand:
332
+ // One step, never `kill && serve`: if a supervisor owns the pid it respawns the
333
+ // server itself, and a second serve would race it onto the same port.
334
+ `kill ${server.pid} # this only stops it. If a supervisor owns it, it respawns the server; after ~30s, if nothing answers, start it yourself: ${startCommand}`,
308
335
  };
309
336
  }
310
337
  const oldPid = server.pid;
@@ -358,16 +385,28 @@ export async function restartRepoServer(root, opts = {}) {
358
385
  cancelled,
359
386
  };
360
387
  }
361
- if (path === "external-supervisor") {
362
- const supervisor = (opts.supervisor ?? detectExternalSupervisor)(oldPid);
363
- try {
364
- (opts.stop ?? stopPidExact)(oldPid);
388
+ if (path === "supervisor") {
389
+ const detected = (opts.supervisorInfo ??
390
+ ((pid) => {
391
+ const result = detectSupervisor(pid);
392
+ return result.kind === "external" || result.kind === "managed" ? result.info : null;
393
+ }))(oldPid);
394
+ if (!detected) {
395
+ return {
396
+ ok: false,
397
+ path,
398
+ oldPid,
399
+ message: `The supervisor for pid ${oldPid} could not be identified safely, so it was not restarted.`,
400
+ };
365
401
  }
366
- catch (e) {
402
+ const restarted = (opts.restartSupervisor ?? restartSupervisorUnit)(detected);
403
+ if (!restarted.ok) {
367
404
  return {
368
405
  ok: false,
369
406
  path,
370
- message: e instanceof Error ? e.message : String(e),
407
+ oldPid,
408
+ message: `Failed to restart ${detected.platform} unit ${detected.job}: ${restarted.error ?? "unknown error"}`,
409
+ manualCommand: detected.manualCommand,
371
410
  };
372
411
  }
373
412
  const waited = await (opts.wait ?? waitForServerRestart)(root, server.port, server.host, {
@@ -377,17 +416,14 @@ export async function restartRepoServer(root, opts = {}) {
377
416
  fetch: opts.health,
378
417
  });
379
418
  if (!waited.ok) {
380
- const quotedRoot = /^[\w./-]+$/.test(root) ? root : `'${root.replaceAll("'", "'\\''")}'`;
381
419
  return {
382
420
  ok: false,
383
421
  path,
384
422
  oldPid,
385
423
  oldVersion,
386
- message: (waited.reason ?? "Supervisor did not respawn the server in time") +
387
- ` The old server (pid ${oldPid}) has been stopped, so the server may be DOWN now.`,
388
- // Prefer the supervisor's own restart; fall back to a start command so
389
- // the human is never left with only "it may be down" (#1091 review pass 4).
390
- manualCommand: supervisor?.manualCommand ?? `cd ${quotedRoot} && repoos serve --port ${server.port}`,
424
+ message: (waited.reason ?? "Supervisor did not bring the server back in time") +
425
+ ` The ${detected.platform} restart command was accepted, but no healthy replacement server was found.`,
426
+ manualCommand: detected.manualCommand,
391
427
  };
392
428
  }
393
429
  return {
@@ -1,5 +1,5 @@
1
1
  import { afterEach, describe, expect, it, vi } from "vitest";
2
- import { pidOwnership, restartRepoServer, waitForServerRestart, } from "./server-restart.js";
2
+ import { pidOwnership, restartRepoServer, restartSupervisorUnit, waitForServerRestart, } from "./server-restart.js";
3
3
  function server(over = {}) {
4
4
  return {
5
5
  port: 7200,
@@ -85,22 +85,55 @@ describe("restartRepoServer", () => {
85
85
  expect(result.path).toBe("managed-service");
86
86
  expect(result.newPid).toBe(21);
87
87
  });
88
- it("external-supervisor success reports the new pid after the supervisor respawns", async () => {
88
+ it("restarts a detected supervisor directly and reports the healthy replacement", async () => {
89
89
  const stop = vi.fn();
90
+ const restartSupervisor = vi.fn(() => ({ ok: true }));
91
+ const info = {
92
+ platform: "systemd",
93
+ job: "com.repoos.serve.demo",
94
+ manualCommand: "systemctl --user restart com.repoos.serve.demo.service",
95
+ };
90
96
  const result = await restart(root, {
91
97
  locate: async () => server({ pid: 31 }),
92
- classify: async () => "external-supervisor",
98
+ classify: async () => "supervisor",
93
99
  ownership: () => ({ uid: 1000, canSignal: true, otherUser: false }),
94
100
  health: async () => ({ ok: true, root, serverVersion: "0.5.80", activeEngineers: 0 }),
95
- supervisor: () => null,
101
+ supervisorInfo: () => info,
102
+ restartSupervisor,
96
103
  stop,
97
104
  verifyPid: () => true,
98
105
  wait: async () => ({ ok: true, pid: 32, version: "0.5.82" }),
99
106
  });
100
- expect(stop).toHaveBeenCalledWith(31);
101
- expect(result).toMatchObject({ ok: true, path: "external-supervisor", oldPid: 31, newPid: 32 });
107
+ expect(restartSupervisor).toHaveBeenCalledWith(info);
108
+ expect(stop).not.toHaveBeenCalled();
109
+ expect(result).toMatchObject({ ok: true, path: "supervisor", oldPid: 31, newPid: 32 });
102
110
  expect(result.newVersion).toBe("0.5.82");
103
111
  });
112
+ it("surfaces supervisor restart failures without signalling the server", async () => {
113
+ const stop = vi.fn();
114
+ const info = {
115
+ platform: "systemd",
116
+ job: "com.repoos.serve.demo",
117
+ manualCommand: "systemctl --user restart com.repoos.serve.demo.service",
118
+ };
119
+ const result = await restart(root, {
120
+ locate: async () => server({ pid: 31 }),
121
+ classify: async () => "supervisor",
122
+ ownership: () => ({ uid: 1000, canSignal: true, otherUser: false }),
123
+ health: async () => ({ ok: true, root, serverVersion: "0.5.80", activeEngineers: 0 }),
124
+ supervisorInfo: () => info,
125
+ restartSupervisor: () => ({ ok: false, error: "systemctl exited 1" }),
126
+ stop,
127
+ verifyPid: () => true,
128
+ });
129
+ expect(result).toMatchObject({
130
+ ok: false,
131
+ path: "supervisor",
132
+ message: /Failed to restart systemd unit com\.repoos\.serve\.demo: systemctl exited 1/,
133
+ manualCommand: info.manualCommand,
134
+ });
135
+ expect(stop).not.toHaveBeenCalled();
136
+ });
104
137
  it("an uncertain supervisor refuses and says kill only stops the server", async () => {
105
138
  const stop = vi.fn();
106
139
  const result = await restart(root, {
@@ -116,10 +149,15 @@ describe("restartRepoServer", () => {
116
149
  expect(result.manualCommand).toMatch(/^kill \d+ {3}# this only stops it/);
117
150
  expect(result.manualCommand).not.toMatch(/kill \d+ &&/);
118
151
  });
119
- it("external-supervisor reports manual command when respawn times out", async () => {
152
+ it("supervisor reports its restart command when the new server does not return", async () => {
153
+ const info = {
154
+ platform: "launchd",
155
+ job: "org.repoos.serve.kamrai",
156
+ manualCommand: "launchctl kickstart -k system/org.repoos.serve.kamrai",
157
+ };
120
158
  const result = await restart(root, {
121
159
  locate: async () => server({ pid: 30 }),
122
- classify: async () => "external-supervisor",
160
+ classify: async () => "supervisor",
123
161
  ownership: () => ({ uid: 1000, canSignal: true, otherUser: false }),
124
162
  health: async () => ({
125
163
  ok: true,
@@ -127,11 +165,8 @@ describe("restartRepoServer", () => {
127
165
  serverVersion: "0.5.80",
128
166
  activeEngineers: 0,
129
167
  }),
130
- supervisor: () => ({
131
- platform: "launchd",
132
- job: "org.repoos.serve.kamrai",
133
- manualCommand: "launchctl kickstart -k system/org.repoos.serve.kamrai",
134
- }),
168
+ supervisorInfo: () => info,
169
+ restartSupervisor: () => ({ ok: true }),
135
170
  stop: () => { },
136
171
  verifyPid: () => true,
137
172
  wait: async () => ({
@@ -142,9 +177,24 @@ describe("restartRepoServer", () => {
142
177
  }),
143
178
  });
144
179
  expect(result.ok).toBe(false);
145
- expect(result.path).toBe("external-supervisor");
180
+ expect(result.path).toBe("supervisor");
146
181
  expect(result.manualCommand).toContain("kickstart");
147
182
  });
183
+ it("builds direct, shell-free restart argv for systemd and launchd", () => {
184
+ const execFile = vi.fn(() => "");
185
+ expect(restartSupervisorUnit({
186
+ platform: "systemd",
187
+ job: "com.repoos.serve.demo",
188
+ manualCommand: "systemctl --user restart com.repoos.serve.demo.service",
189
+ }, execFile)).toEqual({ ok: true });
190
+ expect(execFile).toHaveBeenLastCalledWith("systemctl", ["--user", "restart", "com.repoos.serve.demo.service"], expect.any(Object));
191
+ expect(restartSupervisorUnit({
192
+ platform: "launchd",
193
+ job: "org.repoos.serve.demo",
194
+ manualCommand: "launchctl kickstart -k gui/501/org.repoos.serve.demo",
195
+ }, execFile)).toEqual({ ok: true });
196
+ expect(execFile).toHaveBeenLastCalledWith("launchctl", ["kickstart", "-k", "gui/501/org.repoos.serve.demo"], expect.any(Object));
197
+ });
148
198
  it("hand-run succeeds when spawn and health return a new pid", async () => {
149
199
  const result = await restart(root, {
150
200
  locate: async () => server({ pid: 50, serveFlags: ["--preview-overrides"] }),
@@ -196,7 +246,6 @@ describe("restartRepoServer", () => {
196
246
  serverVersion: "0.5.80",
197
247
  activeEngineers: 0,
198
248
  }),
199
- supervisor: () => null,
200
249
  verifyPid: () => true,
201
250
  });
202
251
  expect(result.ok).toBe(false);
@@ -3,7 +3,7 @@
3
3
  * path appends `?shotState=<id>` to the route; the UI applies the fixture only
4
4
  * on preview builds (`isPreviewBuild`).
5
5
  */
6
- export declare const SHOT_PREVIEW_FIXTURE_IDS: readonly ["system:worktreeGc", "system:orphanedRuns", "closeOut:active", "closeOut:checkProgress", "closeOut:checkProgressUnknown", "checks:progress", "checks:timings", "checks:reuse", "pages:scroll", "repo:dirtyMain", "closeOut:stalled", "closeOut:uploading", "closeOut:remoteTests", "drawer:closeOutBuilding", "drawer:closeOutBuildingNarrow", "drawer:closeOutRemoteTests", "drawer:closeOutRemoteTestsNarrow", "runners:queued", "integration:median15", "card:doneError", "board:withReviewTask", "card:reviewChecksRunning", "card:reviewLandableReady", "card:handoffStaleActive", "board:pipeline", "drawer:reviewWithBranch", "drawer:reviewPasses", "drawer:engineeringReports", "drawer:postMergeSummary", "drawer:landable", "drawer:statusReviewFailed", "drawer:statusReviewFailedNarrow", "drawer:statusHandoffFailed", "drawer:statusChecksRunning", "drawer:statusChecksRunningNarrow", "drawer:statusConfirmingHandoff", "drawer:handoffWaiting", "drawer:statusConfirmingHandoffNarrow", "drawer:statusChecksFailed", "drawer:statusChecksFailedNarrow", "drawer:statusDetails", "drawer:landableNarrow", "drawer:tabExpandWarnings", "drawer:activeRequirements", "drawer:nativePreviewBuilding", "drawer:nativePreviewRunning", "drawer:nativePreviewFailed", "drawer:shotEvidence", "drawer:debugLogs", "card:agentFailed", "card:humanStep", "card:held", "drawer:held", "drawer:humanGuideWarning", "card:reviewRoundsExhausted", "card:checkWaitDetail", "drawer:checkWaitDetail", "card:handoffConflict", "card:checkpointRecovery", "card:checksProgress", "card:checksReuse", "drawer:checksProgress", "drawer:checksReuse", "pipeline:checksProgress", "board:cardChips", "card:noChanges", "board:activeCoding", "checks:waiting", "board:severalWorkingCards", "board:startWorkPending", "drawer:startWorkPending", "settings:birdQuickTrail", "settings:rgbKeystorm", "settings:wheelieCourier", "settings:booSwoop", "settings:pumpkinSpell", "settings:motionOff", "drawer:queuedMessage", "dev:failed", "dev:loading", "dev:running", "secrets:populated", "secrets:removeDialog", "deployments:environmentBinding", "deployments:loading", "editor:unconfigured", "panel:newInputOutstandingUpload", "panel:freeformFailedScreenshot", "panel:defaultScreenshotPicker", "budget:paused", "schedule:newPanel", "agents:scheduledSeeded", "agents:lastRuns", "reminders:due", "release:emailSent", "release:emailFailed", "release:updateAvailable", "release:restartPendingLight", "release:restartPendingDark", "release:cutRunning", "release:cutReady", "release:autoPublishWaiting"];
6
+ export declare const SHOT_PREVIEW_FIXTURE_IDS: readonly ["system:worktreeGc", "system:orphanedRuns", "closeOut:active", "closeOut:checkProgress", "closeOut:checkProgressUnknown", "checks:progress", "checks:timings", "checks:reuse", "pages:scroll", "repo:dirtyMain", "closeOut:stalled", "closeOut:uploading", "closeOut:remoteTests", "drawer:closeOutBuilding", "drawer:closeOutBuildingNarrow", "drawer:closeOutRemoteTests", "drawer:closeOutRemoteTestsNarrow", "runners:queued", "integration:median15", "card:doneError", "board:withReviewTask", "work:empty", "work:failedLoad", "agents:empty", "card:reviewChecksRunning", "card:reviewLandableReady", "card:handoffStaleActive", "board:pipeline", "drawer:reviewWithBranch", "drawer:reviewPasses", "drawer:engineeringReports", "drawer:postMergeSummary", "drawer:landable", "drawer:statusReviewFailed", "drawer:statusReviewFailedNarrow", "drawer:statusHandoffFailed", "drawer:statusChecksRunning", "drawer:statusChecksRunningNarrow", "drawer:statusConfirmingHandoff", "drawer:handoffWaiting", "drawer:statusConfirmingHandoffNarrow", "drawer:statusChecksFailed", "drawer:statusChecksFailedNarrow", "drawer:statusDetails", "drawer:landableNarrow", "drawer:tabExpandWarnings", "drawer:activeRequirements", "drawer:nativePreviewBuilding", "drawer:nativePreviewRunning", "drawer:nativePreviewFailed", "drawer:shotEvidence", "drawer:debugLogs", "card:agentFailed", "card:humanStep", "card:held", "drawer:held", "drawer:humanGuideWarning", "card:reviewRoundsExhausted", "card:checkWaitDetail", "drawer:checkWaitDetail", "card:handoffConflict", "card:checkpointRecovery", "card:checksProgress", "card:checksReuse", "drawer:checksProgress", "drawer:checksReuse", "pipeline:checksProgress", "board:cardChips", "card:noChanges", "board:activeCoding", "checks:waiting", "board:severalWorkingCards", "board:startWorkPending", "drawer:startWorkPending", "settings:birdQuickTrail", "settings:rgbKeystorm", "settings:wheelieCourier", "settings:booSwoop", "settings:pumpkinSpell", "settings:motionOff", "drawer:queuedMessage", "dev:failed", "dev:loading", "dev:running", "secrets:populated", "secrets:removeDialog", "secrets:unauthorized", "deployments:environmentBinding", "deployments:loading", "editor:unconfigured", "panel:newInputOutstandingUpload", "panel:freeformFailedScreenshot", "panel:defaultScreenshotPicker", "budget:paused", "schedule:newPanel", "agents:scheduledSeeded", "agents:lastRuns", "reminders:due", "release:emailSent", "release:emailFailed", "release:updateAvailable", "release:restartPendingLight", "release:restartPendingDark", "release:restartProgress", "release:restartError", "release:cutRunning", "release:cutReady", "release:autoPublishWaiting"];
7
7
  export type ShotPreviewFixtureId = (typeof SHOT_PREVIEW_FIXTURE_IDS)[number];
8
8
  export declare const SHOT_PREVIEW_FIXTURE_QUERY = "shotState";
9
9
  /** Task id used by card/board fixtures so selectors can target one stable card. */