@moberg_hr/work-tree 2.5.1 → 2.5.2

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 (173) hide show
  1. package/dist/{add-repo-ABDXRREO.js → add-repo-RBMTBP6O.js} +6 -6
  2. package/dist/{answer-IIFJ7HCK.js → answer-F3UX2HBG.js} +4 -4
  3. package/dist/{attach-G5GSPO2N.js → attach-KHMDFCER.js} +6 -6
  4. package/dist/bin.js +2 -2
  5. package/dist/{block-I6J7M35E.js → block-7E4ZDM25.js} +5 -5
  6. package/dist/{broadcast-IMVRPJYV.js → broadcast-GLP77EJM.js} +2 -2
  7. package/dist/{catchup-RFCCKZJA.js → catchup-CXMUPFER.js} +7 -7
  8. package/dist/{chunk-C224P3D3.js → chunk-24HYZTJV.js} +88 -5
  9. package/dist/chunk-24HYZTJV.js.map +1 -0
  10. package/dist/{chunk-GD2APVSL.js → chunk-2KRNE6RT.js} +2 -2
  11. package/dist/{chunk-3XSMLS3U.js → chunk-33U5IQOI.js} +2 -2
  12. package/dist/{chunk-EJ3OIGHN.js → chunk-3KY5DQNN.js} +5 -5
  13. package/dist/{chunk-V654TVTR.js → chunk-46JCEDH5.js} +47 -47
  14. package/dist/{chunk-JWUZLG53.js → chunk-6CYOBKDM.js} +4 -4
  15. package/dist/{chunk-JXJLU4BM.js → chunk-6FGA2WAC.js} +2 -2
  16. package/dist/{chunk-2FZFE4LF.js → chunk-6XIZZOI7.js} +1 -5
  17. package/dist/{chunk-2FZFE4LF.js.map → chunk-6XIZZOI7.js.map} +1 -1
  18. package/dist/{chunk-YNDRERWN.js → chunk-ACCE2R4E.js} +2 -2
  19. package/dist/{chunk-AS24L2DD.js → chunk-CJ4HHRQS.js} +5 -5
  20. package/dist/chunk-CJ4HHRQS.js.map +1 -0
  21. package/dist/{chunk-7LW4VIVW.js → chunk-CRBDPAIQ.js} +2 -2
  22. package/dist/{chunk-XP4Q6MEE.js → chunk-EXWT2GMU.js} +5 -5
  23. package/dist/{chunk-6THPN6HD.js → chunk-EYUIMTJH.js} +2 -2
  24. package/dist/{chunk-WXTXARTF.js → chunk-EZJPXUHP.js} +2 -2
  25. package/dist/{chunk-AP7DVLR7.js → chunk-HMC2LMMX.js} +4 -4
  26. package/dist/{chunk-SMSDA5MG.js → chunk-JF7JPZO3.js} +5 -5
  27. package/dist/{chunk-UKKEP4SQ.js → chunk-JKF7RCNC.js} +8 -8
  28. package/dist/{chunk-O7B7AY4E.js → chunk-MQEQHOC5.js} +3 -3
  29. package/dist/{chunk-I4GZY3DJ.js → chunk-MXWO7BAC.js} +2 -2
  30. package/dist/{chunk-TS2QC2PB.js → chunk-MYXVINU4.js} +2 -2
  31. package/dist/{chunk-QX4MJKHW.js → chunk-N2FSEPBV.js} +3 -3
  32. package/dist/{chunk-5YR4JLHI.js → chunk-OHJQZKSC.js} +3 -3
  33. package/dist/chunk-PNKJAWGI.js +9 -0
  34. package/dist/{chunk-DK24BDE5.js → chunk-QEKB6FNC.js} +3 -3
  35. package/dist/{chunk-AQKB2NHY.js → chunk-RHIM3XFW.js} +3 -3
  36. package/dist/{chunk-5XARBHTZ.js → chunk-RWK4LPHT.js} +3 -3
  37. package/dist/{chunk-PSDJJSEP.js → chunk-RYIOZCQB.js} +2 -2
  38. package/dist/{chunk-WL56M7P3.js → chunk-UYVRWYCA.js} +2 -2
  39. package/dist/{chunk-5LXZ6XDZ.js → chunk-VRH7LCYI.js} +3 -3
  40. package/dist/{chunk-4RNDBBQQ.js → chunk-X5O4ZTJD.js} +2 -2
  41. package/dist/{chunk-62JFNWJO.js → chunk-YNQCIFMB.js} +3 -3
  42. package/dist/{chunk-LENB3INO.js → chunk-ZMNTOJWM.js} +2 -2
  43. package/dist/{cleanup-BOBOH2XG.js → cleanup-5GFWXIUV.js} +13 -13
  44. package/dist/{cli-IBKC436O.js → cli-IOFENVTB.js} +3 -3
  45. package/dist/{config-ZOO2MPPY.js → config-2RY25Q4P.js} +3 -3
  46. package/dist/{diff-WMG5GQ46.js → diff-VU3FHCIH.js} +4 -4
  47. package/dist/{digest-E2LJN4SG.js → digest-TO32RKKS.js} +4 -4
  48. package/dist/{fork-BE5VJHBL.js → fork-IDEEYEAF.js} +12 -12
  49. package/dist/{history-N4W3UAH3.js → history-VQ42JP7C.js} +2 -2
  50. package/dist/{hook-LKVA7KVD.js → hook-JWJU7IFD.js} +4 -4
  51. package/dist/{hydrate-WEMCIMUC.js → hydrate-X2PK7ODX.js} +2 -2
  52. package/dist/{init-66R2VBIQ.js → init-RMWCV47V.js} +3 -3
  53. package/dist/{list-X2VLHUUB.js → list-XVNG6CJB.js} +2 -2
  54. package/dist/{move-AJRJOLKP.js → move-LRAZS525.js} +4 -4
  55. package/dist/{note-GHT64Y55.js → note-JGT6BFS6.js} +4 -4
  56. package/dist/{overlaps-5N2J56SJ.js → overlaps-3GISSP2T.js} +4 -4
  57. package/dist/{pin-H7CBIDO3.js → pin-TEIIQEWS.js} +4 -4
  58. package/dist/{pr-IURQGBVB.js → pr-EYRXNH6P.js} +5 -5
  59. package/dist/pr-EYRXNH6P.js.map +1 -0
  60. package/dist/{prune-UKZKLXSO.js → prune-MIZ66ODS.js} +12 -12
  61. package/dist/{pty-host-HNCNBP5S.js → pty-host-PLARLHEB.js} +2 -2
  62. package/dist/{read-MNZ524CE.js → read-2XP5GI3S.js} +4 -4
  63. package/dist/{recent-2FGSNBJZ.js → recent-YRWT47JZ.js} +2 -2
  64. package/dist/{remove-QKOVNBBC.js → remove-K2FPMDIV.js} +11 -11
  65. package/dist/{restart-PYKMWD5S.js → restart-ZZYYLLMD.js} +4 -4
  66. package/dist/{resume-GVWN35RW.js → resume-SWTAMXTT.js} +2 -2
  67. package/dist/{run-YSOH2VK5.js → run-B5YQ35U7.js} +2 -2
  68. package/dist/{screen-LCQP4FAS.js → screen-WD2B6YB7.js} +4 -4
  69. package/dist/{search-EQXCM3SE.js → search-WNJJQDXY.js} +2 -2
  70. package/dist/{section-FKNRQ6OB.js → section-TDALOAKC.js} +4 -4
  71. package/dist/{send-NWPMDDUM.js → send-ZA4TO5DI.js} +5 -5
  72. package/dist/{sessions-7RO63IRD.js → sessions-TACGEEVJ.js} +9 -9
  73. package/dist/{snooze-2G5V6AKP.js → snooze-ATH7M3XX.js} +4 -4
  74. package/dist/{start-BQQOHNLO.js → start-YL5CKGZW.js} +4 -4
  75. package/dist/{status-YDDVUQIQ.js → status-7HACAHEV.js} +2 -2
  76. package/dist/{stop-H6UXMR7N.js → stop-S5DRHSIA.js} +4 -4
  77. package/dist/{sync-3OK2TBT7.js → sync-3VL66YBR.js} +12 -12
  78. package/dist/{time-65NYXE7O.js → time-5V467WTN.js} +5 -5
  79. package/dist/{timesheet-4ZBQQUXK.js → timesheet-FUD57KB6.js} +6 -6
  80. package/dist/{tree-GFYZIBHI.js → tree-F6ARJ2RJ.js} +7 -7
  81. package/dist/{update-W3LXJMZ3.js → update-VYEVKXR4.js} +6 -6
  82. package/dist/{wait-IZBQ6S4U.js → wait-UCB6X5CY.js} +5 -5
  83. package/dist/wd-bin.js +2 -2
  84. package/dist/web/assets/{PtyView-CG2_LfHf.js → PtyView-C8-aiRvb.js} +2 -2
  85. package/dist/web/assets/{PtyView-CG2_LfHf.js.map → PtyView-C8-aiRvb.js.map} +1 -1
  86. package/dist/web/assets/index-DJsQqbOo.js +119 -0
  87. package/dist/web/assets/index-DJsQqbOo.js.map +1 -0
  88. package/dist/web/assets/{index-D8JDBGFK.css → index-IElqPCQj.css} +1 -1
  89. package/dist/web/index.html +2 -2
  90. package/dist/{web-DXDWKE3D.js → web-SV6RI7GM.js} +36 -79
  91. package/dist/web-SV6RI7GM.js.map +1 -0
  92. package/npm-shrinkwrap.json +2 -2
  93. package/package.json +1 -1
  94. package/dist/chunk-AS24L2DD.js.map +0 -1
  95. package/dist/chunk-C224P3D3.js.map +0 -1
  96. package/dist/chunk-Y5F5FBDZ.js +0 -9
  97. package/dist/pr-IURQGBVB.js.map +0 -1
  98. package/dist/web/assets/index-BvAMJJfp.js +0 -119
  99. package/dist/web/assets/index-BvAMJJfp.js.map +0 -1
  100. package/dist/web-DXDWKE3D.js.map +0 -1
  101. /package/dist/{add-repo-ABDXRREO.js.map → add-repo-RBMTBP6O.js.map} +0 -0
  102. /package/dist/{answer-IIFJ7HCK.js.map → answer-F3UX2HBG.js.map} +0 -0
  103. /package/dist/{attach-G5GSPO2N.js.map → attach-KHMDFCER.js.map} +0 -0
  104. /package/dist/{block-I6J7M35E.js.map → block-7E4ZDM25.js.map} +0 -0
  105. /package/dist/{broadcast-IMVRPJYV.js.map → broadcast-GLP77EJM.js.map} +0 -0
  106. /package/dist/{catchup-RFCCKZJA.js.map → catchup-CXMUPFER.js.map} +0 -0
  107. /package/dist/{chunk-GD2APVSL.js.map → chunk-2KRNE6RT.js.map} +0 -0
  108. /package/dist/{chunk-3XSMLS3U.js.map → chunk-33U5IQOI.js.map} +0 -0
  109. /package/dist/{chunk-EJ3OIGHN.js.map → chunk-3KY5DQNN.js.map} +0 -0
  110. /package/dist/{chunk-V654TVTR.js.map → chunk-46JCEDH5.js.map} +0 -0
  111. /package/dist/{chunk-JWUZLG53.js.map → chunk-6CYOBKDM.js.map} +0 -0
  112. /package/dist/{chunk-JXJLU4BM.js.map → chunk-6FGA2WAC.js.map} +0 -0
  113. /package/dist/{chunk-YNDRERWN.js.map → chunk-ACCE2R4E.js.map} +0 -0
  114. /package/dist/{chunk-7LW4VIVW.js.map → chunk-CRBDPAIQ.js.map} +0 -0
  115. /package/dist/{chunk-XP4Q6MEE.js.map → chunk-EXWT2GMU.js.map} +0 -0
  116. /package/dist/{chunk-6THPN6HD.js.map → chunk-EYUIMTJH.js.map} +0 -0
  117. /package/dist/{chunk-WXTXARTF.js.map → chunk-EZJPXUHP.js.map} +0 -0
  118. /package/dist/{chunk-AP7DVLR7.js.map → chunk-HMC2LMMX.js.map} +0 -0
  119. /package/dist/{chunk-SMSDA5MG.js.map → chunk-JF7JPZO3.js.map} +0 -0
  120. /package/dist/{chunk-UKKEP4SQ.js.map → chunk-JKF7RCNC.js.map} +0 -0
  121. /package/dist/{chunk-O7B7AY4E.js.map → chunk-MQEQHOC5.js.map} +0 -0
  122. /package/dist/{chunk-I4GZY3DJ.js.map → chunk-MXWO7BAC.js.map} +0 -0
  123. /package/dist/{chunk-TS2QC2PB.js.map → chunk-MYXVINU4.js.map} +0 -0
  124. /package/dist/{chunk-QX4MJKHW.js.map → chunk-N2FSEPBV.js.map} +0 -0
  125. /package/dist/{chunk-5YR4JLHI.js.map → chunk-OHJQZKSC.js.map} +0 -0
  126. /package/dist/{chunk-Y5F5FBDZ.js.map → chunk-PNKJAWGI.js.map} +0 -0
  127. /package/dist/{chunk-DK24BDE5.js.map → chunk-QEKB6FNC.js.map} +0 -0
  128. /package/dist/{chunk-AQKB2NHY.js.map → chunk-RHIM3XFW.js.map} +0 -0
  129. /package/dist/{chunk-5XARBHTZ.js.map → chunk-RWK4LPHT.js.map} +0 -0
  130. /package/dist/{chunk-PSDJJSEP.js.map → chunk-RYIOZCQB.js.map} +0 -0
  131. /package/dist/{chunk-WL56M7P3.js.map → chunk-UYVRWYCA.js.map} +0 -0
  132. /package/dist/{chunk-5LXZ6XDZ.js.map → chunk-VRH7LCYI.js.map} +0 -0
  133. /package/dist/{chunk-4RNDBBQQ.js.map → chunk-X5O4ZTJD.js.map} +0 -0
  134. /package/dist/{chunk-62JFNWJO.js.map → chunk-YNQCIFMB.js.map} +0 -0
  135. /package/dist/{chunk-LENB3INO.js.map → chunk-ZMNTOJWM.js.map} +0 -0
  136. /package/dist/{cleanup-BOBOH2XG.js.map → cleanup-5GFWXIUV.js.map} +0 -0
  137. /package/dist/{cli-IBKC436O.js.map → cli-IOFENVTB.js.map} +0 -0
  138. /package/dist/{config-ZOO2MPPY.js.map → config-2RY25Q4P.js.map} +0 -0
  139. /package/dist/{diff-WMG5GQ46.js.map → diff-VU3FHCIH.js.map} +0 -0
  140. /package/dist/{digest-E2LJN4SG.js.map → digest-TO32RKKS.js.map} +0 -0
  141. /package/dist/{fork-BE5VJHBL.js.map → fork-IDEEYEAF.js.map} +0 -0
  142. /package/dist/{history-N4W3UAH3.js.map → history-VQ42JP7C.js.map} +0 -0
  143. /package/dist/{hook-LKVA7KVD.js.map → hook-JWJU7IFD.js.map} +0 -0
  144. /package/dist/{hydrate-WEMCIMUC.js.map → hydrate-X2PK7ODX.js.map} +0 -0
  145. /package/dist/{init-66R2VBIQ.js.map → init-RMWCV47V.js.map} +0 -0
  146. /package/dist/{list-X2VLHUUB.js.map → list-XVNG6CJB.js.map} +0 -0
  147. /package/dist/{move-AJRJOLKP.js.map → move-LRAZS525.js.map} +0 -0
  148. /package/dist/{note-GHT64Y55.js.map → note-JGT6BFS6.js.map} +0 -0
  149. /package/dist/{overlaps-5N2J56SJ.js.map → overlaps-3GISSP2T.js.map} +0 -0
  150. /package/dist/{pin-H7CBIDO3.js.map → pin-TEIIQEWS.js.map} +0 -0
  151. /package/dist/{prune-UKZKLXSO.js.map → prune-MIZ66ODS.js.map} +0 -0
  152. /package/dist/{pty-host-HNCNBP5S.js.map → pty-host-PLARLHEB.js.map} +0 -0
  153. /package/dist/{read-MNZ524CE.js.map → read-2XP5GI3S.js.map} +0 -0
  154. /package/dist/{recent-2FGSNBJZ.js.map → recent-YRWT47JZ.js.map} +0 -0
  155. /package/dist/{remove-QKOVNBBC.js.map → remove-K2FPMDIV.js.map} +0 -0
  156. /package/dist/{restart-PYKMWD5S.js.map → restart-ZZYYLLMD.js.map} +0 -0
  157. /package/dist/{resume-GVWN35RW.js.map → resume-SWTAMXTT.js.map} +0 -0
  158. /package/dist/{run-YSOH2VK5.js.map → run-B5YQ35U7.js.map} +0 -0
  159. /package/dist/{screen-LCQP4FAS.js.map → screen-WD2B6YB7.js.map} +0 -0
  160. /package/dist/{search-EQXCM3SE.js.map → search-WNJJQDXY.js.map} +0 -0
  161. /package/dist/{section-FKNRQ6OB.js.map → section-TDALOAKC.js.map} +0 -0
  162. /package/dist/{send-NWPMDDUM.js.map → send-ZA4TO5DI.js.map} +0 -0
  163. /package/dist/{sessions-7RO63IRD.js.map → sessions-TACGEEVJ.js.map} +0 -0
  164. /package/dist/{snooze-2G5V6AKP.js.map → snooze-ATH7M3XX.js.map} +0 -0
  165. /package/dist/{start-BQQOHNLO.js.map → start-YL5CKGZW.js.map} +0 -0
  166. /package/dist/{status-YDDVUQIQ.js.map → status-7HACAHEV.js.map} +0 -0
  167. /package/dist/{stop-H6UXMR7N.js.map → stop-S5DRHSIA.js.map} +0 -0
  168. /package/dist/{sync-3OK2TBT7.js.map → sync-3VL66YBR.js.map} +0 -0
  169. /package/dist/{time-65NYXE7O.js.map → time-5V467WTN.js.map} +0 -0
  170. /package/dist/{timesheet-4ZBQQUXK.js.map → timesheet-FUD57KB6.js.map} +0 -0
  171. /package/dist/{tree-GFYZIBHI.js.map → tree-F6ARJ2RJ.js.map} +0 -0
  172. /package/dist/{update-W3LXJMZ3.js.map → update-VYEVKXR4.js.map} +0 -0
  173. /package/dist/{wait-IZBQ6S4U.js.map → wait-UCB6X5CY.js.map} +0 -0
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  readStatus
4
- } from "./chunk-2FZFE4LF.js";
4
+ } from "./chunk-6XIZZOI7.js";
5
5
 
6
6
  // src/commands/shared/turn-wait.ts
7
7
  var cliWaitDeps = {
@@ -16,4 +16,4 @@ var cliWaitDeps = {
16
16
  export {
17
17
  cliWaitDeps
18
18
  };
19
- //# sourceMappingURL=chunk-YNDRERWN.js.map
19
+ //# sourceMappingURL=chunk-ACCE2R4E.js.map
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
- stageWaiting,
4
- stageWantsYou
5
- } from "./chunk-2FZFE4LF.js";
3
+ STAGE_WANTS_YOU,
4
+ stageWaiting
5
+ } from "./chunk-6XIZZOI7.js";
6
6
  import {
7
7
  atomicWriteFile,
8
8
  getConfigDir
@@ -22,7 +22,7 @@ function displayStatus(s, now = Date.now()) {
22
22
  if (!a.seen) return "done";
23
23
  }
24
24
  if ((s.openReviewThreads ?? 0) > 0) return "review";
25
- if (stageWantsYou(s.prStage)) return "pr";
25
+ if (s.prStage && STAGE_WANTS_YOU.has(s.prStage.kind)) return "pr";
26
26
  if (stageWaiting(s.prStage)) return "in_review";
27
27
  if (a) return "quiet";
28
28
  if (s.activityState === "active") return "active";
@@ -192,4 +192,4 @@ export {
192
192
  assistantContextDay,
193
193
  readAssistantContext
194
194
  };
195
- //# sourceMappingURL=chunk-AS24L2DD.js.map
195
+ //# sourceMappingURL=chunk-CJ4HHRQS.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/core/sessions/session-view.ts","../src/core/agents/assistant.ts"],"sourcesContent":["import type { SessionAttention, ActivityState } from '../api-types.js';\nimport { STAGE_WANTS_YOU, stageWaiting, type PrStageKind } from '../pr/pr-stage.js';\n\n/** What the status vocabulary reads from a session: a dashboard row or\n * a `work sessions` row (both are SessionWire-shaped). */\nexport interface SessionLike {\n lastAccessedAt: string;\n lastActivity?: number | null;\n activityState?: ActivityState;\n attention?: SessionAttention | null;\n /** Unresolved review threads on its open PRs (SessionWire). */\n openReviewThreads?: number;\n /** Where its pull request stands (SessionWire, pr-stage.ts). */\n prStage?: { kind: PrStageKind; text: string; seen?: boolean } | null;\n}\n\n/**\n * ONE status vocabulary for every view — pure, so the dashboard (it imports\n * this) and `work sessions` say the same thing — (rail, Sessions table, inbox, header\n * strip). Hook-driven attention wins when a session has it; otherwise we fall\n * back to the older transcript-activity signal, so a session never shows two\n * contradicting states in two places.\n *\n * needs_input — blocked on you (permission / question)\n * done — finished a turn you haven't looked at\n * working — mid-turn\n * background — its turn ended, a background agent that turn started is\n * still at it: still busy, but its prompt is free\n * review — nothing running for you to answer, but reviewers left\n * unresolved comments on its open PR(s)\n * pr — its PR wants you: approved with checks passing (ready\n * to merge), a merge conflict or failing checks; unseen\n * in_review — finished, its PR waits on reviewers or checks\n * quiet — finished, and you've seen it\n * active/open/recent/stale — no hook status yet (its Claude has not\n * taken a turn since the dashboard's hooks went in, or runs a tool\n * without them): transcript activity only. Active ≤ 30 s, Open ≤ 5 min,\n * Idle (recent) within a day, Stale after that.\n */\nexport type DisplayKind =\n 'needs_input' | 'done' | 'working' | 'background' | 'review' | 'pr' | 'in_review' | 'quiet' | 'active' | 'open' | 'recent' | 'stale';\n\n/** Used today = not stale, whatever the hooks know. */\nexport const RECENT_MS = 24 * 3_600_000;\n\n/** When the session last did anything: the newest of its hook update,\n * Claude's last transcript write and the `work tree` entry. (Reading only\n * the entry time called a session Active and \"1d\" at once.) */\nexport function lastActiveAt(s: SessionLike): string {\n const candidates = [Date.parse(s.lastAccessedAt) || 0, s.lastActivity ?? 0, s.attention ? Date.parse(s.attention.updatedAt) || 0 : 0];\n return new Date(Math.max(...candidates)).toISOString();\n}\n\nexport function displayStatus(s: SessionLike, now: number = Date.now()): DisplayKind {\n const a = s.attention;\n if (a) {\n if (a.state === 'needs_input') return 'needs_input';\n if (a.state === 'working') return a.background ? 'background' : 'working';\n if (!a.seen) return 'done';\n }\n if ((s.openReviewThreads ?? 0) > 0) return 'review';\n // Seen or not: a PR that's yours to merge (or fix) keeps saying so; seen only takes it out of the Inbox.\n if (s.prStage && STAGE_WANTS_YOU.has(s.prStage.kind)) return 'pr';\n if (stageWaiting(s.prStage)) return 'in_review';\n if (a) return 'quiet';\n if (s.activityState === 'active') return 'active';\n if (s.activityState === 'open') return 'open';\n return now - Date.parse(lastActiveAt(s)) < RECENT_MS ? 'recent' : 'stale';\n}\n\nexport const DISPLAY_LABEL: Record<DisplayKind, string> = {\n needs_input: 'Needs your input',\n done: 'Done',\n working: 'Working',\n background: 'In background',\n review: 'Review comments',\n pr: 'Pull request',\n in_review: 'In review',\n quiet: 'Idle',\n active: 'Active',\n open: 'Open',\n recent: 'Idle',\n stale: 'Stale',\n};\n\n/** What each status means, in words — the legend and the dots' tooltips. */\nexport const DISPLAY_MEANING: Record<DisplayKind, string> = {\n needs_input: 'Its Claude is waiting for you: a permission prompt or a question.',\n done: \"Its Claude finished a turn you haven't looked at yet.\",\n working: 'Its Claude is working on your last instruction right now.',\n background:\n 'Its Claude finished its turn, and a background agent that turn started is still at work. Its prompt is free: you can talk to it. The agent’s result comes back as a new turn.',\n review: \"Reviewers left comments on its pull request that you haven't answered or resolved.\",\n pr: 'Its pull request needs you: approved with checks passing (ready to merge), a merge conflict, or failing checks. In the Inbox until you have looked.',\n in_review:\n 'Its pull request is open and waiting on reviewers or checks. It comes back to the Inbox when comments arrive, checks fail, or it is approved.',\n quiet: \"Its Claude finished, and you've seen it. Nothing to do.\",\n active: \"Its Claude wrote in the last 30 seconds (it isn't reporting its status, so this is from its transcript).\",\n open: 'Its Claude wrote in the last 5 minutes, or is open and idle at its prompt.',\n recent: 'Used in the last day; nothing running now.',\n stale: 'Not used for over a day.',\n};\n\n/** The legend's rows, most urgent first. Idle covers `quiet` and `recent` (same colour, same word). */\nexport const LEGEND_KINDS: readonly DisplayKind[] = [\n 'needs_input',\n 'done',\n 'review',\n 'pr',\n 'working',\n 'background',\n 'in_review',\n 'active',\n 'open',\n 'quiet',\n 'stale',\n];\n\n/**\n * How full a Claude conversation may get before it matters: past WARN the\n * header shows it amber and the PR watch's notes ask Claude to hand\n * mechanical work to a sub-agent; past FULL it's red (Claude compacts near\n * the window, and answers get vaguer before that).\n */\nexport const CONTEXT_WARN = 0.7;\nexport const CONTEXT_FULL = 0.9;\n\n/** How long ago a session was used, for the Sessions table's sections. */\nexport type AgeBucket = 'now' | 'week' | 'older';\n\nexport const AGE_LABEL: Record<AgeBucket, string> = {\n now: 'Now',\n week: 'This week',\n older: 'Older',\n};\n\nexport const WEEK_MS = 7 * 24 * 3_600_000;\n\n/** Now: wants you, is working, or was used in the last day. This week:\n * used within 7 days. Older: everything else — cleanup material. */\nexport function ageBucket(s: SessionLike, now: number = Date.now()): AgeBucket {\n const kind = displayStatus(s, now);\n if (\n kind === 'needs_input' ||\n kind === 'done' ||\n kind === 'working' ||\n kind === 'background' ||\n kind === 'review' ||\n kind === 'pr' ||\n kind === 'active' ||\n kind === 'open'\n )\n return 'now';\n const age = now - Date.parse(lastActiveAt(s));\n if (age < RECENT_MS) return 'now';\n return age < WEEK_MS ? 'week' : 'older';\n}\n\n/** Coarse buckets the Sessions header counts and filters by. */\nexport type StatusBucket = 'needs' | 'working' | 'idle' | 'stale';\n\nexport function statusBucket(kind: DisplayKind): StatusBucket {\n switch (kind) {\n case 'needs_input':\n case 'done':\n case 'review':\n case 'pr':\n return 'needs';\n case 'working':\n case 'background':\n case 'active':\n return 'working';\n case 'quiet':\n case 'in_review':\n case 'open':\n case 'recent':\n return 'idle';\n case 'stale':\n return 'stale';\n default: {\n // Every kind is named above: a new one fails the type check here instead of landing in \"stale\" unasked.\n const unknown: never = kind;\n return unknown;\n }\n }\n}\n\n/** Why a session shows Active / Open / Idle(recent) / Stale instead of a\n * real status: its Claude isn't reporting through work web's hooks. */\nexport const NO_HOOKS_HINT =\n \"Its Claude isn't reporting its status (it was started before work web's hooks were installed, or it isn't Claude), so this is from its transcript activity: Active = wrote in the last 30 s, Open = last 5 min. Restart it with `work tree <target> <branch>` (the conversation continues) to get Working / Needs your input / Done.\";\n\n/** The hint for a status that comes from activity only; undefined otherwise. */\nexport function statusHint(kind: DisplayKind): string | undefined {\n return kind === 'active' || kind === 'open' || kind === 'recent' || kind === 'stale' ? NO_HOOKS_HINT : undefined;\n}\n","import fs from 'node:fs';\nimport path from 'node:path';\nimport { getConfigDir } from '../platform/config.js';\nimport { atomicWriteFile } from '../platform/fs-safe.js';\nimport type { AssistantView, SessionWire } from '../api-types.js';\nimport { DISPLAY_LABEL, displayStatus } from '../sessions/session-view.js';\nimport type { AgentAdapter, AllowRule, WorkHook } from './types.js';\n\n/**\n * The dashboard assistant (Ctrl+K): a persistent agent session in the PTY\n * host, like any worktree's, with its own folder under ~/.work/assistant. It\n * runs config `assistantAgent` (Claude Code by default; `assistantAgent()`).\n *\n * That folder is written by work: the agent's instructions file (CLAUDE.md\n * for Claude) saying what it is for and how to get the data (the\n * `work … --json` commands), and through its adapter's `workspace` its own\n * settings: the read-only commands pre-allowed, and a hook at the start of\n * each turn that adds what the user is looking at in the dashboard to the\n * prompt (`work hook assistant-context`), so \"clean these up\" or \"why is this\n * one blocked?\" need no explaining. An agent without a workspace gets the\n * instructions only (it asks before every command, and sees no view).\n *\n * It runs in the agent's normal permission mode, never --unsafe: anything\n * not pre-allowed — `work cleanup --apply`, `work remove`, git — asks first,\n * in the panel (and the Inbox).\n */\n\nexport const ASSISTANT_ID = 'assistant';\n\n/** What the dashboard reported, kept this long for the hook. */\nexport const CONTEXT_TTL_MS = 30 * 60_000;\n\nexport function assistantDir(): string {\n return path.join(getConfigDir(), 'assistant');\n}\nconst contextFile = () => path.join(assistantDir(), 'context.json');\n\n/**\n * Read-only commands it may run without asking (each agent's adapter writes\n * them in its own terms). Exact forms for cleanup: a `work cleanup --json`\n * prefix rule would also allow `--apply`.\n */\nexport const ASSISTANT_ALLOW: AllowRule[] = [\n { command: 'work sessions', prefix: true },\n { command: 'work digest', prefix: true },\n { command: 'work overlaps', prefix: true },\n { command: 'work search', prefix: true },\n { command: 'work cleanup --json' },\n { command: 'work cleanup --json --no-fetch' },\n { command: 'work cleanup --no-fetch --json' },\n { command: 'work list', prefix: true },\n { command: 'work recent', prefix: true },\n // The Time tab's day, read only (set / reset / off / gather / post ask first).\n { command: 'work timesheet show', prefix: true },\n];\n\n/** Its hook: what the dashboard shows, added at the start of each turn. */\nexport const ASSISTANT_HOOKS: WorkHook[] = [\n { owner: 'assistant', edge: 'turn-start', command: 'work hook assistant-context', timeoutSec: 5 },\n];\n\nexport const ASSISTANT_INSTRUCTIONS = `# You are the work dashboard's assistant\n\nThe user opens you with Ctrl+K in \\`work web\\`, the dashboard over all their git worktrees and the coding agent session in each. Help them make sense of it and act on it: what needs them, what each session did, what can be cleaned up, which sessions will conflict.\n\n## Getting the data\n\nUse the \\`work\\` CLI with \\`--json\\` (see the work-sessions skill) and parse it; don't guess from the filesystem:\n\n- \\`work sessions --json\\` — every session: status (\\`view.label\\`), age, last active, context usage, archive state. \\`--changes\\` adds +N −M and same-file overlaps; \\`--all\\` adds older and archived ones.\n- \\`work digest --json --since today|yesterday|week\\` — what each session did (prompts, turns, PRs).\n- \\`work overlaps --json\\` — live sessions changing the same files.\n- \\`work cleanup --json\\` — which worktrees can go, and why.\n- \\`work timesheet show [day] --json\\` — the Time tab's day: hours per ticket, and why (sessions' Claude minutes, commits, Jira, meetings, chats). On the Time tab, the day on screen is described to you with each message.\n- \\`work search <words> --json\\` — sessions whose conversation (live or archived, also older than the agent keeps) mentions it, with the matching lines: \"what did we do about X?\".\n\nEach prompt comes with what the user is looking at in the dashboard (the tab, the selected session). When they say \"this\", \"these\" or \"here\", that is what they mean.\n\n## Changing things\n\nAsk before you change anything, and say exactly what will happen:\n- Removing, archiving or forgetting worktrees: \\`work cleanup --apply <id>… --action delete|archive|forget --json\\`. Each is checked again right before it runs; report what was refused and why. Never \\`--force\\` unless the user asked for exactly that.\n- A day's hours: \\`work timesheet set <day> KEY=HOURS …\\` (all its rows; quarter hours, the day's total as the user wants it), \\`reset <day>\\`, \\`off <day>\\`. Explain the change first. Posting to Tempo (\\`work timesheet post <day>\\`) only when the user asks for it.\n- Anything else (\\`work remove\\`, git, files in a worktree): only when asked, and show the command first.\n\nDon't post on GitHub, and don't send prompts to other sessions, unless the user asks. Keep answers short: the user is in the middle of something.\n`;\n\n/** What work wrote in the folder last time (relative paths), so files an earlier agent's setup left can go. */\nconst writtenFile = () => path.join(assistantDir(), '.work-written.json');\n/** What a work from before the list wrote: Claude's. */\nconst BEFORE_THE_LIST = ['CLAUDE.md', path.join('.claude', 'settings.json')];\n\nfunction readWritten(): string[] {\n try {\n const v = JSON.parse(fs.readFileSync(writtenFile(), 'utf-8')) as unknown;\n return Array.isArray(v) ? v.filter((x): x is string => typeof x === 'string') : [];\n } catch (err) {\n return (err as NodeJS.ErrnoException).code === 'ENOENT' ? BEFORE_THE_LIST : [];\n }\n}\n\n/**\n * Write (or refresh) the assistant's folder for the agent it runs; returns\n * it. Idempotent. Files work wrote there for another agent before (its\n * instructions, its settings with their allow rules and hooks) are removed:\n * after a switch they would be instructions and permissions nothing manages.\n * Only files work wrote and listed, inside the folder — never the user's own.\n */\nexport function prepareAssistantDir(agent: Pick<AgentAdapter, 'instructionsFile' | 'workspace'>): string {\n const dir = assistantDir();\n fs.mkdirSync(dir, { recursive: true });\n const before = readWritten();\n atomicWriteFile(path.join(dir, agent.instructionsFile), ASSISTANT_INSTRUCTIONS);\n const written = [agent.instructionsFile, ...(agent.workspace?.write(dir, { allow: ASSISTANT_ALLOW, hooks: ASSISTANT_HOOKS }) ?? [])].map(\n (f) => path.normalize(f),\n );\n const root = path.resolve(dir);\n for (const old of before.map((f) => path.normalize(f))) {\n const file = path.resolve(root, old);\n if (written.includes(old) || path.isAbsolute(old) || !file.startsWith(root + path.sep)) continue; // listed by us, inside the folder: nothing else\n fs.rmSync(file, { force: true });\n }\n atomicWriteFile(writtenFile(), JSON.stringify(written));\n return dir;\n}\n\ninterface StoredContext {\n at: string;\n text: string;\n /** The Time tab's day on screen: described afresh at each prompt (rows change by Save, Post, a rebuild). */\n day?: string;\n}\n\n/**\n * The dashboard view in words, for the hook: which tab, and the selected\n * session's state. Pure.\n */\nexport function describeView(view: AssistantView, session: SessionWire | null, now = Date.now()): string {\n const lines = [`The user is looking at the dashboard's ${view.tab} tab${view.sub ? ` (${view.sub})` : ''}.`];\n if (session) {\n const status = DISPLAY_LABEL[displayStatus(session, now)];\n lines.push(\n `Selected session: ${session.target} · ${session.branch} (id ${session.id}) — ${status}.`,\n ...(session.attention?.summary ? [` Its last line: ${session.attention.summary}`] : []),\n ...(session.diffStat?.files\n ? [` Uncommitted: +${session.diffStat.added} −${session.diffStat.deleted} in ${session.diffStat.files} files.`]\n : []),\n ...(session.overlaps?.length\n ? [` Changes the same files as: ${session.overlaps.map((o) => `${o.target} · ${o.branch}`).join(', ')}.`]\n : []),\n ...(session.context ? [` Its conversation is ${Math.round((session.context.used / session.context.window) * 100)}% full.`] : []),\n ...(session.archivedAt ? [' It is archived.'] : []),\n ` Worktree: ${session.paths.join(', ')}`,\n );\n }\n if (view.note) lines.push(view.note);\n return lines.join('\\n');\n}\n\nexport function writeAssistantContext(text: string, now = Date.now(), day?: string): void {\n fs.mkdirSync(assistantDir(), { recursive: true });\n const stored: StoredContext = { at: new Date(now).toISOString(), text, ...(day ? { day } : {}) };\n atomicWriteFile(contextFile(), JSON.stringify(stored));\n}\n\n/** The day on screen, if the Time tab is: for the hook to describe as it is now. */\nexport function assistantContextDay(now = Date.now()): string | null {\n const s = readStored(now);\n return s && typeof s.day === 'string' && /^\\d{4}-\\d{2}-\\d{2}$/.test(s.day) ? s.day : null;\n}\n\nfunction readStored(now: number): Partial<StoredContext> | null {\n try {\n const s = JSON.parse(fs.readFileSync(contextFile(), 'utf-8')) as Partial<StoredContext> | null;\n if (!s || typeof s.text !== 'string' || typeof s.at !== 'string') return null;\n return now - Date.parse(s.at) > CONTEXT_TTL_MS ? null : s;\n } catch {\n return null;\n }\n}\n\n/**\n * What the hook adds to a prompt; null when the dashboard said nothing\n * lately. `dayNow` describes the Time tab's day as it is at this prompt\n * (the hook reads it from state.db), not as it was when the tab was opened.\n */\nexport function readAssistantContext(now = Date.now(), dayNow?: string | null): string | null {\n const s = readStored(now);\n if (!s) return null;\n return `[work dashboard] ${s.text}${dayNow ? `\\n${dayNow}` : ''}`;\n}\n"],"mappings":";;;;;;;;;;;AA2CO,IAAM,YAAY,KAAK;AAKvB,SAAS,aAAa,GAAwB;AACnD,QAAM,aAAa,CAAC,KAAK,MAAM,EAAE,cAAc,KAAK,GAAG,EAAE,gBAAgB,GAAG,EAAE,YAAY,KAAK,MAAM,EAAE,UAAU,SAAS,KAAK,IAAI,CAAC;AACpI,SAAO,IAAI,KAAK,KAAK,IAAI,GAAG,UAAU,CAAC,EAAE,YAAY;AACvD;AAEO,SAAS,cAAc,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I,CAAC,KAAK,OAAO,EAAE,SAAS,YAAY,OAAO,EAAE,OAAO,SAAU,QAAO;AACzE,WAAO,MAAM,KAAK,MAAM,EAAE,EAAE,IAAI,iBAAiB,OAAO;AAAA,EAC1D,QAAQ;AACN,WAAO;AAAA,EACT;AACF;AAOO,SAAS,qBAAqB,MAAM,KAAK,IAAI,GAAG,QAAuC;AAC5F,QAAM,IAAI,WAAW,GAAG;AACxB,MAAI,CAAC,EAAG,QAAO;AACf,SAAO,oBAAoB,EAAE,IAAI,GAAG,SAAS;AAAA,EAAK,MAAM,KAAK,EAAE;AACjE;","names":[]}
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  loadHistory
4
- } from "./chunk-2FZFE4LF.js";
4
+ } from "./chunk-6XIZZOI7.js";
5
5
  import {
6
6
  json,
7
7
  sessionIdFor,
@@ -148,4 +148,4 @@ export {
148
148
  sweepBlocks,
149
149
  blockRefFrom
150
150
  };
151
- //# sourceMappingURL=chunk-7LW4VIVW.js.map
151
+ //# sourceMappingURL=chunk-CRBDPAIQ.js.map
@@ -1,18 +1,18 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  peekPty
4
- } from "./chunk-O7B7AY4E.js";
4
+ } from "./chunk-MQEQHOC5.js";
5
5
  import {
6
6
  isLeftover
7
7
  } from "./chunk-KUCMJHQW.js";
8
8
  import {
9
9
  sessionStatusView
10
- } from "./chunk-I4GZY3DJ.js";
10
+ } from "./chunk-MXWO7BAC.js";
11
11
  import {
12
12
  checkedOutBranch,
13
13
  readPendingForWorktree,
14
14
  scopeStoreIdsForPaths
15
- } from "./chunk-PSDJJSEP.js";
15
+ } from "./chunk-RYIOZCQB.js";
16
16
  import {
17
17
  readStoresComments
18
18
  } from "./chunk-XZ5DA5X4.js";
@@ -32,7 +32,7 @@ import {
32
32
  sessionRepos,
33
33
  snoozeActive,
34
34
  withLiveClaude
35
- } from "./chunk-2FZFE4LF.js";
35
+ } from "./chunk-6XIZZOI7.js";
36
36
  import {
37
37
  agentOf,
38
38
  agentWire,
@@ -382,4 +382,4 @@ export {
382
382
  lastActiveMs,
383
383
  createArchivedRows
384
384
  };
385
- //# sourceMappingURL=chunk-XP4Q6MEE.js.map
385
+ //# sourceMappingURL=chunk-EXWT2GMU.js.map
@@ -48,7 +48,7 @@ import {
48
48
  upsertSession,
49
49
  upsertSessionWithPort,
50
50
  writeArchiveRecord
51
- } from "./chunk-2FZFE4LF.js";
51
+ } from "./chunk-6XIZZOI7.js";
52
52
  import {
53
53
  agentFor
54
54
  } from "./chunk-JG3J5TLB.js";
@@ -1070,4 +1070,4 @@ export {
1070
1070
  teardownWorktree,
1071
1071
  openBaseCheckout
1072
1072
  };
1073
- //# sourceMappingURL=chunk-6THPN6HD.js.map
1073
+ //# sourceMappingURL=chunk-EYUIMTJH.js.map
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  isFolderSession,
4
4
  sessionRepos
5
- } from "./chunk-2FZFE4LF.js";
5
+ } from "./chunk-6XIZZOI7.js";
6
6
 
7
7
  // src/core/worktree/add-repo-rules.ts
8
8
  import path from "path";
@@ -36,4 +36,4 @@ export {
36
36
  addRepoRefusal,
37
37
  addedRepoNote
38
38
  };
39
- //# sourceMappingURL=chunk-WXTXARTF.js.map
39
+ //# sourceMappingURL=chunk-EZJPXUHP.js.map
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  defaultCleanupDeps
4
- } from "./chunk-EJ3OIGHN.js";
4
+ } from "./chunk-3KY5DQNN.js";
5
5
  import {
6
6
  normPath
7
7
  } from "./chunk-AKMPF72Y.js";
@@ -14,11 +14,11 @@ import {
14
14
  } from "./chunk-3GIH4WTA.js";
15
15
  import {
16
16
  findSessionForCwd
17
- } from "./chunk-PSDJJSEP.js";
17
+ } from "./chunk-RYIOZCQB.js";
18
18
  import {
19
19
  loadHistory,
20
20
  sessionAliases
21
- } from "./chunk-2FZFE4LF.js";
21
+ } from "./chunk-6XIZZOI7.js";
22
22
  import {
23
23
  liveAgents
24
24
  } from "./chunk-JG3J5TLB.js";
@@ -293,4 +293,4 @@ export {
293
293
  deleteMergedBranches,
294
294
  defaultBranchTidyDeps
295
295
  };
296
- //# sourceMappingURL=chunk-AP7DVLR7.js.map
296
+ //# sourceMappingURL=chunk-HMC2LMMX.js.map
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  createInProcess
4
- } from "./chunk-5YR4JLHI.js";
4
+ } from "./chunk-OHJQZKSC.js";
5
5
  import {
6
6
  ensurePty,
7
7
  peekPty
8
- } from "./chunk-O7B7AY4E.js";
8
+ } from "./chunk-MQEQHOC5.js";
9
9
  import {
10
10
  resolveProjectTarget
11
11
  } from "./chunk-R2SR3PER.js";
@@ -15,14 +15,14 @@ import {
15
15
  } from "./chunk-AKGDIBSE.js";
16
16
  import {
17
17
  checkedOutBranch
18
- } from "./chunk-PSDJJSEP.js";
18
+ } from "./chunk-RYIOZCQB.js";
19
19
  import {
20
20
  getCommentFileStore
21
21
  } from "./chunk-XZ5DA5X4.js";
22
22
  import {
23
23
  recordedRepos,
24
24
  sessionAliases
25
- } from "./chunk-2FZFE4LF.js";
25
+ } from "./chunk-6XIZZOI7.js";
26
26
  import {
27
27
  sessionIdFor
28
28
  } from "./chunk-FXHTSSV2.js";
@@ -168,4 +168,4 @@ export {
168
168
  uncommittedFiles,
169
169
  defaultForkDeps
170
170
  };
171
- //# sourceMappingURL=chunk-SMSDA5MG.js.map
171
+ //# sourceMappingURL=chunk-JF7JPZO3.js.map
@@ -5,19 +5,19 @@ import {
5
5
  } from "./chunk-AKMPF72Y.js";
6
6
  import {
7
7
  listReplies
8
- } from "./chunk-C224P3D3.js";
8
+ } from "./chunk-24HYZTJV.js";
9
9
  import {
10
10
  runningFromNames,
11
11
  stopRunningFrom
12
12
  } from "./chunk-NZ7HCBSL.js";
13
13
  import {
14
14
  disposePty
15
- } from "./chunk-O7B7AY4E.js";
15
+ } from "./chunk-MQEQHOC5.js";
16
16
  import {
17
17
  saveIgnored,
18
18
  teardownWorktree,
19
19
  worktreeFor
20
- } from "./chunk-6THPN6HD.js";
20
+ } from "./chunk-EYUIMTJH.js";
21
21
  import {
22
22
  isLeftover
23
23
  } from "./chunk-KUCMJHQW.js";
@@ -27,17 +27,17 @@ import {
27
27
  } from "./chunk-5WM24P5N.js";
28
28
  import {
29
29
  shownState
30
- } from "./chunk-I4GZY3DJ.js";
30
+ } from "./chunk-MXWO7BAC.js";
31
31
  import {
32
32
  defaultRunner
33
33
  } from "./chunk-3GIH4WTA.js";
34
34
  import {
35
35
  runInternal
36
- } from "./chunk-5LXZ6XDZ.js";
36
+ } from "./chunk-VRH7LCYI.js";
37
37
  import {
38
38
  checkedOutBranch,
39
39
  readPendingForSession
40
- } from "./chunk-PSDJJSEP.js";
40
+ } from "./chunk-RYIOZCQB.js";
41
41
  import {
42
42
  archiveRefFor,
43
43
  archiveSession,
@@ -50,7 +50,7 @@ import {
50
50
  setSessionArchived,
51
51
  stopDev,
52
52
  turnInProgress
53
- } from "./chunk-2FZFE4LF.js";
53
+ } from "./chunk-6XIZZOI7.js";
54
54
  import {
55
55
  agentOf
56
56
  } from "./chunk-JG3J5TLB.js";
@@ -282,4 +282,4 @@ export {
282
282
  archiveMergedSession,
283
283
  defaultArchiveDeps
284
284
  };
285
- //# sourceMappingURL=chunk-UKKEP4SQ.js.map
285
+ //# sourceMappingURL=chunk-JKF7RCNC.js.map
@@ -15,14 +15,14 @@ import {
15
15
  import {
16
16
  ASSISTANT_ID,
17
17
  prepareAssistantDir
18
- } from "./chunk-AS24L2DD.js";
18
+ } from "./chunk-CJ4HHRQS.js";
19
19
  import {
20
20
  createFsWatcher,
21
21
  findSessionById,
22
22
  logSwallowed,
23
23
  noClaudeBecause,
24
24
  swallow
25
- } from "./chunk-2FZFE4LF.js";
25
+ } from "./chunk-6XIZZOI7.js";
26
26
  import {
27
27
  agentFor,
28
28
  agentSettings,
@@ -357,4 +357,4 @@ export {
357
357
  stopSessionPty,
358
358
  detachPtyPool
359
359
  };
360
- //# sourceMappingURL=chunk-O7B7AY4E.js.map
360
+ //# sourceMappingURL=chunk-MQEQHOC5.js.map
@@ -6,7 +6,7 @@ import {
6
6
  lastTurnEntryMs,
7
7
  readSessionActivity,
8
8
  readStatus
9
- } from "./chunk-2FZFE4LF.js";
9
+ } from "./chunk-6XIZZOI7.js";
10
10
  import {
11
11
  agentOf,
12
12
  readJsonlTail
@@ -45,4 +45,4 @@ export {
45
45
  sessionStatusView,
46
46
  shownState
47
47
  };
48
- //# sourceMappingURL=chunk-I4GZY3DJ.js.map
48
+ //# sourceMappingURL=chunk-MXWO7BAC.js.map
@@ -3,7 +3,7 @@ import {
3
3
  computeChanges,
4
4
  findOverlaps,
5
5
  wantsDiffStat
6
- } from "./chunk-3XSMLS3U.js";
6
+ } from "./chunk-33U5IQOI.js";
7
7
  import {
8
8
  pool
9
9
  } from "./chunk-AKMPF72Y.js";
@@ -34,4 +34,4 @@ async function scanChanges(sessions, opts = {}) {
34
34
  export {
35
35
  scanChanges
36
36
  };
37
- //# sourceMappingURL=chunk-TS2QC2PB.js.map
37
+ //# sourceMappingURL=chunk-MYXVINU4.js.map
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  shownState
4
- } from "./chunk-I4GZY3DJ.js";
4
+ } from "./chunk-MXWO7BAC.js";
5
5
  import {
6
6
  defaultRunner
7
7
  } from "./chunk-3GIH4WTA.js";
@@ -12,7 +12,7 @@ import {
12
12
  readArchive,
13
13
  sessionAliases,
14
14
  setSessionBase
15
- } from "./chunk-2FZFE4LF.js";
15
+ } from "./chunk-6XIZZOI7.js";
16
16
  import {
17
17
  sessionIdFor
18
18
  } from "./chunk-FXHTSSV2.js";
@@ -419,4 +419,4 @@ export {
419
419
  moveOntoMain,
420
420
  updateSession
421
421
  };
422
- //# sourceMappingURL=chunk-QX4MJKHW.js.map
422
+ //# sourceMappingURL=chunk-N2FSEPBV.js.map
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  openBaseCheckout,
4
4
  setupWorktree
5
- } from "./chunk-6THPN6HD.js";
5
+ } from "./chunk-EYUIMTJH.js";
6
6
  import {
7
7
  defaultRunner
8
8
  } from "./chunk-3GIH4WTA.js";
@@ -13,7 +13,7 @@ import {
13
13
  findSession,
14
14
  loadHistory,
15
15
  sessionAliases
16
- } from "./chunk-2FZFE4LF.js";
16
+ } from "./chunk-6XIZZOI7.js";
17
17
  import {
18
18
  spawn_default
19
19
  } from "./chunk-RCYI7SRA.js";
@@ -197,4 +197,4 @@ export {
197
197
  createInChild,
198
198
  createInProcess
199
199
  };
200
- //# sourceMappingURL=chunk-5YR4JLHI.js.map
200
+ //# sourceMappingURL=chunk-OHJQZKSC.js.map
@@ -0,0 +1,9 @@
1
+ #!/usr/bin/env node
2
+
3
+ // src/version.ts
4
+ var VERSION = true ? "2.5.2" : "dev";
5
+
6
+ export {
7
+ VERSION
8
+ };
9
+ //# sourceMappingURL=chunk-PNKJAWGI.js.map
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  sessionStatusView
4
- } from "./chunk-I4GZY3DJ.js";
4
+ } from "./chunk-MXWO7BAC.js";
5
5
  import {
6
6
  buildDigest,
7
7
  loadHistory,
@@ -11,7 +11,7 @@ import {
11
11
  readStatus,
12
12
  scopeHashForPaths,
13
13
  workSteps
14
- } from "./chunk-2FZFE4LF.js";
14
+ } from "./chunk-6XIZZOI7.js";
15
15
  import {
16
16
  agentOf,
17
17
  lineTimeOf,
@@ -99,4 +99,4 @@ function createDigestSource(deps = {}) {
99
99
  export {
100
100
  createDigestSource
101
101
  };
102
- //# sourceMappingURL=chunk-DK24BDE5.js.map
102
+ //# sourceMappingURL=chunk-QEKB6FNC.js.map
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  computeDiff,
4
4
  isInsideRoot
5
- } from "./chunk-WL56M7P3.js";
5
+ } from "./chunk-UYVRWYCA.js";
6
6
  import {
7
7
  packageRoot
8
8
  } from "./chunk-LNHSBM4L.js";
@@ -12,7 +12,7 @@ import {
12
12
  import {
13
13
  createFsWatcher,
14
14
  loadHistory
15
- } from "./chunk-2FZFE4LF.js";
15
+ } from "./chunk-6XIZZOI7.js";
16
16
  import {
17
17
  spawn_default
18
18
  } from "./chunk-RCYI7SRA.js";
@@ -512,4 +512,4 @@ export {
512
512
  submitReviewSchema,
513
513
  resolveSchema
514
514
  };
515
- //# sourceMappingURL=chunk-AQKB2NHY.js.map
515
+ //# sourceMappingURL=chunk-RHIM3XFW.js.map
@@ -4,11 +4,11 @@ import {
4
4
  } from "./chunk-6AQRYLOB.js";
5
5
  import {
6
6
  findSessionForCwd
7
- } from "./chunk-PSDJJSEP.js";
7
+ } from "./chunk-RYIOZCQB.js";
8
8
  import {
9
9
  findSession,
10
10
  loadHistory
11
- } from "./chunk-2FZFE4LF.js";
11
+ } from "./chunk-6XIZZOI7.js";
12
12
  import {
13
13
  loadConfig
14
14
  } from "./chunk-A53IRCOO.js";
@@ -38,4 +38,4 @@ export {
38
38
  sessionPositionals,
39
39
  sessionFromArgs
40
40
  };
41
- //# sourceMappingURL=chunk-5XARBHTZ.js.map
41
+ //# sourceMappingURL=chunk-RWK4LPHT.js.map
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-ZSHWP2VS.js";
10
10
  import {
11
11
  loadHistory
12
- } from "./chunk-2FZFE4LF.js";
12
+ } from "./chunk-6XIZZOI7.js";
13
13
  import {
14
14
  sessionIdFor,
15
15
  tx,
@@ -206,4 +206,4 @@ export {
206
206
  claimForDelivery,
207
207
  formatPendingForPrompt
208
208
  };
209
- //# sourceMappingURL=chunk-PSDJJSEP.js.map
209
+ //# sourceMappingURL=chunk-RYIOZCQB.js.map
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-AKGDIBSE.js";
5
5
  import {
6
6
  writeTempTree
7
- } from "./chunk-2FZFE4LF.js";
7
+ } from "./chunk-6XIZZOI7.js";
8
8
  import {
9
9
  spawn_default
10
10
  } from "./chunk-RCYI7SRA.js";
@@ -534,4 +534,4 @@ export {
534
534
  computeDiff,
535
535
  computeRangeDiff
536
536
  };
537
- //# sourceMappingURL=chunk-WL56M7P3.js.map
537
+ //# sourceMappingURL=chunk-UYVRWYCA.js.map
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  computeRangeDiff
4
- } from "./chunk-WL56M7P3.js";
4
+ } from "./chunk-UYVRWYCA.js";
5
5
  import {
6
6
  loadManifest
7
- } from "./chunk-2FZFE4LF.js";
7
+ } from "./chunk-6XIZZOI7.js";
8
8
  import {
9
9
  agentSettings,
10
10
  internalAgent,
@@ -185,4 +185,4 @@ export {
185
185
  runInternal,
186
186
  summarizeCheckpoint
187
187
  };
188
- //# sourceMappingURL=chunk-5LXZ6XDZ.js.map
188
+ //# sourceMappingURL=chunk-VRH7LCYI.js.map
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-AH5TM3NB.js";
5
5
  import {
6
6
  spawnSpecFor
7
- } from "./chunk-O7B7AY4E.js";
7
+ } from "./chunk-MQEQHOC5.js";
8
8
  import {
9
9
  PtyHostClient,
10
10
  ensureHost
@@ -117,4 +117,4 @@ async function attachSession(session, launch = {}) {
117
117
  export {
118
118
  attachSession
119
119
  };
120
- //# sourceMappingURL=chunk-4RNDBBQQ.js.map
120
+ //# sourceMappingURL=chunk-X5O4ZTJD.js.map
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  runInternal
4
- } from "./chunk-5LXZ6XDZ.js";
4
+ } from "./chunk-VRH7LCYI.js";
5
5
  import {
6
6
  messageOf,
7
7
  readStatus
8
- } from "./chunk-2FZFE4LF.js";
8
+ } from "./chunk-6XIZZOI7.js";
9
9
  import {
10
10
  agentOf,
11
11
  lineTimeOf,
@@ -100,4 +100,4 @@ export {
100
100
  cachedCatchUp,
101
101
  catchUp
102
102
  };
103
- //# sourceMappingURL=chunk-62JFNWJO.js.map
103
+ //# sourceMappingURL=chunk-YNQCIFMB.js.map
@@ -8,7 +8,7 @@ import {
8
8
  } from "./chunk-HMK3INUS.js";
9
9
  import {
10
10
  recordedRepos
11
- } from "./chunk-2FZFE4LF.js";
11
+ } from "./chunk-6XIZZOI7.js";
12
12
  import {
13
13
  atomicWriteFile,
14
14
  getConfigDir,
@@ -166,4 +166,4 @@ export {
166
166
  saveGroup,
167
167
  deleteGroup
168
168
  };
169
- //# sourceMappingURL=chunk-LENB3INO.js.map
169
+ //# sourceMappingURL=chunk-ZMNTOJWM.js.map
@@ -6,41 +6,41 @@ import {
6
6
  deleteMergedBranches,
7
7
  findMergedBranches,
8
8
  scanBuildFolders
9
- } from "./chunk-AP7DVLR7.js";
9
+ } from "./chunk-HMC2LMMX.js";
10
10
  import {
11
11
  defaultCleanupDeps
12
- } from "./chunk-EJ3OIGHN.js";
12
+ } from "./chunk-3KY5DQNN.js";
13
13
  import {
14
14
  timeAgo
15
15
  } from "./chunk-UQ35KLHH.js";
16
- import "./chunk-UKKEP4SQ.js";
16
+ import "./chunk-JKF7RCNC.js";
17
17
  import {
18
18
  applyCleanup,
19
19
  scanCleanup
20
20
  } from "./chunk-AKMPF72Y.js";
21
- import "./chunk-C224P3D3.js";
21
+ import "./chunk-24HYZTJV.js";
22
22
  import "./chunk-NZ7HCBSL.js";
23
- import "./chunk-O7B7AY4E.js";
23
+ import "./chunk-MQEQHOC5.js";
24
24
  import "./chunk-J5J4RR25.js";
25
25
  import "./chunk-NWUNF4YG.js";
26
- import "./chunk-6THPN6HD.js";
26
+ import "./chunk-EYUIMTJH.js";
27
27
  import "./chunk-VGQV4LX7.js";
28
28
  import "./chunk-KUCMJHQW.js";
29
29
  import "./chunk-PSUJZUYX.js";
30
30
  import "./chunk-5WM24P5N.js";
31
- import "./chunk-I4GZY3DJ.js";
31
+ import "./chunk-MXWO7BAC.js";
32
32
  import "./chunk-3GIH4WTA.js";
33
- import "./chunk-5LXZ6XDZ.js";
34
- import "./chunk-WL56M7P3.js";
33
+ import "./chunk-VRH7LCYI.js";
34
+ import "./chunk-UYVRWYCA.js";
35
35
  import "./chunk-LNHSBM4L.js";
36
36
  import "./chunk-R2SR3PER.js";
37
37
  import "./chunk-AKGDIBSE.js";
38
- import "./chunk-AS24L2DD.js";
39
- import "./chunk-PSDJJSEP.js";
38
+ import "./chunk-CJ4HHRQS.js";
39
+ import "./chunk-RYIOZCQB.js";
40
40
  import "./chunk-XZ5DA5X4.js";
41
41
  import "./chunk-ZSHWP2VS.js";
42
42
  import "./chunk-HUXS3VAI.js";
43
- import "./chunk-2FZFE4LF.js";
43
+ import "./chunk-6XIZZOI7.js";
44
44
  import "./chunk-JG3J5TLB.js";
45
45
  import "./chunk-RCYI7SRA.js";
46
46
  import "./chunk-NEJVK5CF.js";
@@ -195,4 +195,4 @@ var cleanupCommand = {
195
195
  export {
196
196
  cleanupCommand
197
197
  };
198
- //# sourceMappingURL=cleanup-BOBOH2XG.js.map
198
+ //# sourceMappingURL=cleanup-5GFWXIUV.js.map