@moberg_hr/work-tree 2.5.3 → 2.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (174) hide show
  1. package/dist/{add-repo-HWMCMFGJ.js → add-repo-VVECUDF3.js} +6 -6
  2. package/dist/{answer-FSDWYBLR.js → answer-ZB45WLRZ.js} +4 -4
  3. package/dist/{attach-T7AA6WAX.js → attach-VSJ4LGJD.js} +6 -6
  4. package/dist/bin.js +2 -2
  5. package/dist/{block-OZRDJ3A6.js → block-IK2JJ5BZ.js} +5 -5
  6. package/dist/{broadcast-C2YZ4ZKU.js → broadcast-2TIITC7F.js} +2 -2
  7. package/dist/{catchup-53TG4CEQ.js → catchup-MSV2CLUE.js} +7 -7
  8. package/dist/{chunk-4NAQH5Y7.js → chunk-2OS3DCAF.js} +3 -3
  9. package/dist/{chunk-WMEIUOPN.js → chunk-3BHHT63K.js} +2 -2
  10. package/dist/{chunk-BHQ4I4OC.js → chunk-4TOXX4KZ.js} +4 -4
  11. package/dist/{chunk-J6EFEMWE.js → chunk-6SLZK5GD.js} +3 -3
  12. package/dist/{chunk-5SDEJIX2.js → chunk-AVJHFI5U.js} +2 -2
  13. package/dist/{chunk-SJOZIX5I.js → chunk-BDWC6RXH.js} +2 -2
  14. package/dist/{chunk-PKUL7SCY.js → chunk-BE2KPUJX.js} +5 -5
  15. package/dist/chunk-CNRMBMJU.js +9 -0
  16. package/dist/{chunk-Q2QTHA54.js → chunk-DL4NHA5U.js} +5 -5
  17. package/dist/{chunk-UNSDMOHY.js → chunk-ELHWFKY2.js} +5 -5
  18. package/dist/{chunk-WATUEO7H.js → chunk-G5PTLH3D.js} +17 -10
  19. package/dist/chunk-G5PTLH3D.js.map +1 -0
  20. package/dist/{chunk-ZO2JCDGT.js → chunk-GP4OOXKW.js} +2 -2
  21. package/dist/{chunk-2UIND4T2.js → chunk-KGMEAW2F.js} +19 -1
  22. package/dist/chunk-KGMEAW2F.js.map +1 -0
  23. package/dist/{chunk-K7LJG7OZ.js → chunk-MN5T5HPT.js} +3 -3
  24. package/dist/{chunk-632GRPPZ.js → chunk-NJZJQGYL.js} +2 -2
  25. package/dist/{chunk-GI32Q6NP.js → chunk-O27BJXBR.js} +2 -2
  26. package/dist/{chunk-BF7GCHOR.js → chunk-O75H5FNU.js} +3 -3
  27. package/dist/{chunk-D27KRAYW.js → chunk-OPEB5JCB.js} +3 -3
  28. package/dist/{chunk-N7HVMU2V.js → chunk-OUFJZ264.js} +3 -3
  29. package/dist/{chunk-4L4DSECT.js → chunk-QXQ6YB5M.js} +2 -2
  30. package/dist/{chunk-25Y4QGBR.js → chunk-R2VDNMRX.js} +7 -7
  31. package/dist/{chunk-M536QKOX.js → chunk-R35P4DNK.js} +2 -2
  32. package/dist/{chunk-V5PBMTU3.js → chunk-R3E2VXO3.js} +4 -4
  33. package/dist/{chunk-CJT4I5L4.js → chunk-RI6PDM2P.js} +47 -47
  34. package/dist/{chunk-G3IDKLUT.js → chunk-S5RPQFWS.js} +3 -3
  35. package/dist/{chunk-A64PX3KG.js → chunk-U2MUU3TT.js} +2 -2
  36. package/dist/{chunk-EVMUXUOC.js → chunk-UL5TB4LY.js} +2 -2
  37. package/dist/{chunk-KCNOEXAQ.js → chunk-V2NF62H2.js} +2 -2
  38. package/dist/{chunk-SOS7D7F6.js → chunk-VTERY2TQ.js} +2 -2
  39. package/dist/{chunk-43D2MJFF.js → chunk-VZVIP6SS.js} +3 -3
  40. package/dist/{chunk-BSST3WH4.js → chunk-XHOYJP3H.js} +2 -2
  41. package/dist/{cleanup-GKKGP3U5.js → cleanup-RV474OWS.js} +12 -12
  42. package/dist/{cli-STUBHZRX.js → cli-CMKLQSAZ.js} +3 -3
  43. package/dist/{config-BVIHSFYF.js → config-U7LVTPBG.js} +3 -3
  44. package/dist/{diff-AFVD6WR3.js → diff-V6A3E6PF.js} +4 -4
  45. package/dist/{digest-HRRWNJTR.js → digest-HGKHWQHL.js} +4 -4
  46. package/dist/{fork-F5RRXKCA.js → fork-M6BPUFHZ.js} +12 -12
  47. package/dist/{history-HDWU3CW2.js → history-LLB37UPG.js} +2 -2
  48. package/dist/{hook-WMRFRQZG.js → hook-2XFXXOT2.js} +4 -4
  49. package/dist/{hydrate-V2T5SWFR.js → hydrate-WZNGM3RI.js} +2 -2
  50. package/dist/{init-CZNNIVIO.js → init-RILW6IKT.js} +3 -3
  51. package/dist/{list-GY4JJHOS.js → list-R723GE7D.js} +2 -2
  52. package/dist/{move-KYVWNLKP.js → move-EQZOZNTD.js} +4 -4
  53. package/dist/{note-VU7E44FB.js → note-B7OQML26.js} +4 -4
  54. package/dist/{overlaps-ZJBBDJSU.js → overlaps-AJKWBKXW.js} +4 -4
  55. package/dist/{pin-J4MPUKGY.js → pin-C34UTZS7.js} +4 -4
  56. package/dist/{pr-Y4PFJT55.js → pr-7NO3KH4S.js} +3 -3
  57. package/dist/{prune-LKRNGOUS.js → prune-QOTXN5QV.js} +11 -11
  58. package/dist/{pty-host-T45N4MSW.js → pty-host-CXGFWP4E.js} +2 -2
  59. package/dist/{read-66WKTM7U.js → read-2QQ3MD5L.js} +4 -4
  60. package/dist/{recent-TGPYAY7F.js → recent-KANIMGNZ.js} +2 -2
  61. package/dist/{remove-LHVAPOIE.js → remove-KWZZI3X6.js} +10 -10
  62. package/dist/{restart-GSX47NM7.js → restart-EQMZSYU4.js} +4 -4
  63. package/dist/{resume-QAWLWAYN.js → resume-USISTQLB.js} +2 -2
  64. package/dist/{run-7D3ZLDIN.js → run-B5HRDSZB.js} +2 -2
  65. package/dist/{screen-5Q346GJT.js → screen-NZKAG4SG.js} +4 -4
  66. package/dist/{search-SSUQKWBC.js → search-YEZLXNYH.js} +2 -2
  67. package/dist/{section-R5JMKEBL.js → section-BNZF3F46.js} +4 -4
  68. package/dist/{send-BCEJDM6P.js → send-7FFX2J2A.js} +5 -5
  69. package/dist/{sessions-4KSO7G74.js → sessions-W3Q326V6.js} +24 -13
  70. package/dist/sessions-W3Q326V6.js.map +1 -0
  71. package/dist/{snooze-KORWOSM4.js → snooze-BOZY2UBJ.js} +4 -4
  72. package/dist/{start-DYBIQOEE.js → start-IKYSNOQG.js} +4 -4
  73. package/dist/{status-QLFZC2GG.js → status-7NN4G2V6.js} +2 -2
  74. package/dist/{stop-EJX3MG7J.js → stop-Y6ZPCMEH.js} +4 -4
  75. package/dist/{sync-PMUKXPZ3.js → sync-E3QCS4SI.js} +11 -11
  76. package/dist/{time-2R4XS5E6.js → time-OV5QUVK7.js} +5 -5
  77. package/dist/{timesheet-FP54TJI5.js → timesheet-UW3TUCPB.js} +6 -6
  78. package/dist/{tree-5B6REQ56.js → tree-ZBBZ3KSM.js} +7 -7
  79. package/dist/{update-W6OVJBFF.js → update-SX3ASLLP.js} +6 -6
  80. package/dist/{wait-RC4N64TA.js → wait-S47NIZBT.js} +5 -5
  81. package/dist/wd-bin.js +2 -2
  82. package/dist/web/assets/PtyView-CKM2c8yQ.js +93 -0
  83. package/dist/web/assets/PtyView-CKM2c8yQ.js.map +1 -0
  84. package/dist/web/assets/index-Bk5sa_rZ.js +119 -0
  85. package/dist/web/assets/index-Bk5sa_rZ.js.map +1 -0
  86. package/dist/web/assets/index-mBqGPwml.css +1 -0
  87. package/dist/web/index.html +2 -2
  88. package/dist/{web-SPDJQF2J.js → web-JDIY5YYG.js} +57 -28
  89. package/dist/web-JDIY5YYG.js.map +1 -0
  90. package/npm-shrinkwrap.json +2 -2
  91. package/package.json +1 -1
  92. package/dist/chunk-2UIND4T2.js.map +0 -1
  93. package/dist/chunk-UQVVDKBN.js +0 -9
  94. package/dist/chunk-WATUEO7H.js.map +0 -1
  95. package/dist/sessions-4KSO7G74.js.map +0 -1
  96. package/dist/web/assets/PtyView-Dpl0gAY_.js +0 -90
  97. package/dist/web/assets/PtyView-Dpl0gAY_.js.map +0 -1
  98. package/dist/web/assets/index-CrOWH9qL.css +0 -1
  99. package/dist/web/assets/index-o-4LSx5J.js +0 -119
  100. package/dist/web/assets/index-o-4LSx5J.js.map +0 -1
  101. package/dist/web-SPDJQF2J.js.map +0 -1
  102. /package/dist/{add-repo-HWMCMFGJ.js.map → add-repo-VVECUDF3.js.map} +0 -0
  103. /package/dist/{answer-FSDWYBLR.js.map → answer-ZB45WLRZ.js.map} +0 -0
  104. /package/dist/{attach-T7AA6WAX.js.map → attach-VSJ4LGJD.js.map} +0 -0
  105. /package/dist/{block-OZRDJ3A6.js.map → block-IK2JJ5BZ.js.map} +0 -0
  106. /package/dist/{broadcast-C2YZ4ZKU.js.map → broadcast-2TIITC7F.js.map} +0 -0
  107. /package/dist/{catchup-53TG4CEQ.js.map → catchup-MSV2CLUE.js.map} +0 -0
  108. /package/dist/{chunk-4NAQH5Y7.js.map → chunk-2OS3DCAF.js.map} +0 -0
  109. /package/dist/{chunk-WMEIUOPN.js.map → chunk-3BHHT63K.js.map} +0 -0
  110. /package/dist/{chunk-BHQ4I4OC.js.map → chunk-4TOXX4KZ.js.map} +0 -0
  111. /package/dist/{chunk-J6EFEMWE.js.map → chunk-6SLZK5GD.js.map} +0 -0
  112. /package/dist/{chunk-5SDEJIX2.js.map → chunk-AVJHFI5U.js.map} +0 -0
  113. /package/dist/{chunk-SJOZIX5I.js.map → chunk-BDWC6RXH.js.map} +0 -0
  114. /package/dist/{chunk-PKUL7SCY.js.map → chunk-BE2KPUJX.js.map} +0 -0
  115. /package/dist/{chunk-UQVVDKBN.js.map → chunk-CNRMBMJU.js.map} +0 -0
  116. /package/dist/{chunk-Q2QTHA54.js.map → chunk-DL4NHA5U.js.map} +0 -0
  117. /package/dist/{chunk-UNSDMOHY.js.map → chunk-ELHWFKY2.js.map} +0 -0
  118. /package/dist/{chunk-ZO2JCDGT.js.map → chunk-GP4OOXKW.js.map} +0 -0
  119. /package/dist/{chunk-K7LJG7OZ.js.map → chunk-MN5T5HPT.js.map} +0 -0
  120. /package/dist/{chunk-632GRPPZ.js.map → chunk-NJZJQGYL.js.map} +0 -0
  121. /package/dist/{chunk-GI32Q6NP.js.map → chunk-O27BJXBR.js.map} +0 -0
  122. /package/dist/{chunk-BF7GCHOR.js.map → chunk-O75H5FNU.js.map} +0 -0
  123. /package/dist/{chunk-D27KRAYW.js.map → chunk-OPEB5JCB.js.map} +0 -0
  124. /package/dist/{chunk-N7HVMU2V.js.map → chunk-OUFJZ264.js.map} +0 -0
  125. /package/dist/{chunk-4L4DSECT.js.map → chunk-QXQ6YB5M.js.map} +0 -0
  126. /package/dist/{chunk-25Y4QGBR.js.map → chunk-R2VDNMRX.js.map} +0 -0
  127. /package/dist/{chunk-M536QKOX.js.map → chunk-R35P4DNK.js.map} +0 -0
  128. /package/dist/{chunk-V5PBMTU3.js.map → chunk-R3E2VXO3.js.map} +0 -0
  129. /package/dist/{chunk-CJT4I5L4.js.map → chunk-RI6PDM2P.js.map} +0 -0
  130. /package/dist/{chunk-G3IDKLUT.js.map → chunk-S5RPQFWS.js.map} +0 -0
  131. /package/dist/{chunk-A64PX3KG.js.map → chunk-U2MUU3TT.js.map} +0 -0
  132. /package/dist/{chunk-EVMUXUOC.js.map → chunk-UL5TB4LY.js.map} +0 -0
  133. /package/dist/{chunk-KCNOEXAQ.js.map → chunk-V2NF62H2.js.map} +0 -0
  134. /package/dist/{chunk-SOS7D7F6.js.map → chunk-VTERY2TQ.js.map} +0 -0
  135. /package/dist/{chunk-43D2MJFF.js.map → chunk-VZVIP6SS.js.map} +0 -0
  136. /package/dist/{chunk-BSST3WH4.js.map → chunk-XHOYJP3H.js.map} +0 -0
  137. /package/dist/{cleanup-GKKGP3U5.js.map → cleanup-RV474OWS.js.map} +0 -0
  138. /package/dist/{cli-STUBHZRX.js.map → cli-CMKLQSAZ.js.map} +0 -0
  139. /package/dist/{config-BVIHSFYF.js.map → config-U7LVTPBG.js.map} +0 -0
  140. /package/dist/{diff-AFVD6WR3.js.map → diff-V6A3E6PF.js.map} +0 -0
  141. /package/dist/{digest-HRRWNJTR.js.map → digest-HGKHWQHL.js.map} +0 -0
  142. /package/dist/{fork-F5RRXKCA.js.map → fork-M6BPUFHZ.js.map} +0 -0
  143. /package/dist/{history-HDWU3CW2.js.map → history-LLB37UPG.js.map} +0 -0
  144. /package/dist/{hook-WMRFRQZG.js.map → hook-2XFXXOT2.js.map} +0 -0
  145. /package/dist/{hydrate-V2T5SWFR.js.map → hydrate-WZNGM3RI.js.map} +0 -0
  146. /package/dist/{init-CZNNIVIO.js.map → init-RILW6IKT.js.map} +0 -0
  147. /package/dist/{list-GY4JJHOS.js.map → list-R723GE7D.js.map} +0 -0
  148. /package/dist/{move-KYVWNLKP.js.map → move-EQZOZNTD.js.map} +0 -0
  149. /package/dist/{note-VU7E44FB.js.map → note-B7OQML26.js.map} +0 -0
  150. /package/dist/{overlaps-ZJBBDJSU.js.map → overlaps-AJKWBKXW.js.map} +0 -0
  151. /package/dist/{pin-J4MPUKGY.js.map → pin-C34UTZS7.js.map} +0 -0
  152. /package/dist/{pr-Y4PFJT55.js.map → pr-7NO3KH4S.js.map} +0 -0
  153. /package/dist/{prune-LKRNGOUS.js.map → prune-QOTXN5QV.js.map} +0 -0
  154. /package/dist/{pty-host-T45N4MSW.js.map → pty-host-CXGFWP4E.js.map} +0 -0
  155. /package/dist/{read-66WKTM7U.js.map → read-2QQ3MD5L.js.map} +0 -0
  156. /package/dist/{recent-TGPYAY7F.js.map → recent-KANIMGNZ.js.map} +0 -0
  157. /package/dist/{remove-LHVAPOIE.js.map → remove-KWZZI3X6.js.map} +0 -0
  158. /package/dist/{restart-GSX47NM7.js.map → restart-EQMZSYU4.js.map} +0 -0
  159. /package/dist/{resume-QAWLWAYN.js.map → resume-USISTQLB.js.map} +0 -0
  160. /package/dist/{run-7D3ZLDIN.js.map → run-B5HRDSZB.js.map} +0 -0
  161. /package/dist/{screen-5Q346GJT.js.map → screen-NZKAG4SG.js.map} +0 -0
  162. /package/dist/{search-SSUQKWBC.js.map → search-YEZLXNYH.js.map} +0 -0
  163. /package/dist/{section-R5JMKEBL.js.map → section-BNZF3F46.js.map} +0 -0
  164. /package/dist/{send-BCEJDM6P.js.map → send-7FFX2J2A.js.map} +0 -0
  165. /package/dist/{snooze-KORWOSM4.js.map → snooze-BOZY2UBJ.js.map} +0 -0
  166. /package/dist/{start-DYBIQOEE.js.map → start-IKYSNOQG.js.map} +0 -0
  167. /package/dist/{status-QLFZC2GG.js.map → status-7NN4G2V6.js.map} +0 -0
  168. /package/dist/{stop-EJX3MG7J.js.map → stop-Y6ZPCMEH.js.map} +0 -0
  169. /package/dist/{sync-PMUKXPZ3.js.map → sync-E3QCS4SI.js.map} +0 -0
  170. /package/dist/{time-2R4XS5E6.js.map → time-OV5QUVK7.js.map} +0 -0
  171. /package/dist/{timesheet-FP54TJI5.js.map → timesheet-UW3TUCPB.js.map} +0 -0
  172. /package/dist/{tree-5B6REQ56.js.map → tree-ZBBZ3KSM.js.map} +0 -0
  173. /package/dist/{update-W6OVJBFF.js.map → update-SX3ASLLP.js.map} +0 -0
  174. /package/dist/{wait-RC4N64TA.js.map → wait-S47NIZBT.js.map} +0 -0
@@ -2,12 +2,12 @@
2
2
  import {
3
3
  addRepoRefusal,
4
4
  addedRepoNote
5
- } from "./chunk-EVMUXUOC.js";
5
+ } from "./chunk-UL5TB4LY.js";
6
6
  import {
7
7
  createSingleWorktree,
8
8
  removeSingleWorktree,
9
9
  writeSessionInstructions
10
- } from "./chunk-632GRPPZ.js";
10
+ } from "./chunk-NJZJQGYL.js";
11
11
  import "./chunk-VGQV4LX7.js";
12
12
  import "./chunk-KUCMJHQW.js";
13
13
  import "./chunk-PSUJZUYX.js";
@@ -15,7 +15,7 @@ import "./chunk-5WM24P5N.js";
15
15
  import "./chunk-3GIH4WTA.js";
16
16
  import {
17
17
  sessionFromArgs
18
- } from "./chunk-K7LJG7OZ.js";
18
+ } from "./chunk-MN5T5HPT.js";
19
19
  import "./chunk-6AQRYLOB.js";
20
20
  import "./chunk-R2SR3PER.js";
21
21
  import {
@@ -26,7 +26,7 @@ import {
26
26
  import {
27
27
  callWorkWeb
28
28
  } from "./chunk-KGZRNWEN.js";
29
- import "./chunk-M536QKOX.js";
29
+ import "./chunk-R35P4DNK.js";
30
30
  import {
31
31
  getCommentFileStore,
32
32
  moveStoreComments
@@ -39,7 +39,7 @@ import {
39
39
  findSessionById,
40
40
  manifestPath,
41
41
  scopeHashForPaths
42
- } from "./chunk-2UIND4T2.js";
42
+ } from "./chunk-KGMEAW2F.js";
43
43
  import {
44
44
  agentFor
45
45
  } from "./chunk-JG3J5TLB.js";
@@ -381,4 +381,4 @@ export {
381
381
  addRepoCommand,
382
382
  addRepoWireOf
383
383
  };
384
- //# sourceMappingURL=add-repo-HWMCMFGJ.js.map
384
+ //# sourceMappingURL=add-repo-VVECUDF3.js.map
@@ -5,18 +5,18 @@ import {
5
5
  import {
6
6
  sessionFromArgs,
7
7
  sessionPositionals
8
- } from "./chunk-K7LJG7OZ.js";
8
+ } from "./chunk-MN5T5HPT.js";
9
9
  import "./chunk-6AQRYLOB.js";
10
10
  import {
11
11
  callWorkWeb
12
12
  } from "./chunk-KGZRNWEN.js";
13
- import "./chunk-M536QKOX.js";
13
+ import "./chunk-R35P4DNK.js";
14
14
  import "./chunk-XZ5DA5X4.js";
15
15
  import "./chunk-ZSHWP2VS.js";
16
16
  import "./chunk-HUXS3VAI.js";
17
17
  import {
18
18
  readStatus
19
- } from "./chunk-2UIND4T2.js";
19
+ } from "./chunk-KGMEAW2F.js";
20
20
  import "./chunk-JG3J5TLB.js";
21
21
  import "./chunk-RCYI7SRA.js";
22
22
  import "./chunk-NEJVK5CF.js";
@@ -61,4 +61,4 @@ var answerCommand = {
61
61
  export {
62
62
  answerCommand
63
63
  };
64
- //# sourceMappingURL=answer-FSDWYBLR.js.map
64
+ //# sourceMappingURL=answer-ZB45WLRZ.js.map
@@ -1,25 +1,25 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  attachSession
4
- } from "./chunk-SOS7D7F6.js";
4
+ } from "./chunk-VTERY2TQ.js";
5
5
  import "./chunk-AH5TM3NB.js";
6
- import "./chunk-4NAQH5Y7.js";
6
+ import "./chunk-2OS3DCAF.js";
7
7
  import "./chunk-J5J4RR25.js";
8
8
  import "./chunk-NWUNF4YG.js";
9
9
  import {
10
10
  baseCheckoutSession
11
11
  } from "./chunk-6AQRYLOB.js";
12
- import "./chunk-WATUEO7H.js";
12
+ import "./chunk-G5PTLH3D.js";
13
13
  import {
14
14
  findSessionForCwd
15
- } from "./chunk-M536QKOX.js";
15
+ } from "./chunk-R35P4DNK.js";
16
16
  import "./chunk-XZ5DA5X4.js";
17
17
  import "./chunk-ZSHWP2VS.js";
18
18
  import "./chunk-HUXS3VAI.js";
19
19
  import {
20
20
  findSession,
21
21
  loadHistory
22
- } from "./chunk-2UIND4T2.js";
22
+ } from "./chunk-KGMEAW2F.js";
23
23
  import "./chunk-JG3J5TLB.js";
24
24
  import "./chunk-RCYI7SRA.js";
25
25
  import "./chunk-NEJVK5CF.js";
@@ -57,4 +57,4 @@ export {
57
57
  attachCommand,
58
58
  baseCheckoutSession
59
59
  };
60
- //# sourceMappingURL=attach-T7AA6WAX.js.map
60
+ //# sourceMappingURL=attach-VSJ4LGJD.js.map
package/dist/bin.js CHANGED
@@ -41,12 +41,12 @@ process.on("uncaughtException", handleFatalError);
41
41
  process.on("unhandledRejection", handleFatalError);
42
42
  var args = process.argv.slice(2);
43
43
  if (args[0] === "hook") {
44
- const { runHookEvent } = await import("./hook-WMRFRQZG.js");
44
+ const { runHookEvent } = await import("./hook-2XFXXOT2.js");
45
45
  await runHookEvent(args[1], args.slice(2));
46
46
  } else {
47
47
  const { default: chalk } = await import("chalk");
48
48
  if (!process.env.NO_COLOR && chalk.level === 0) chalk.level = 1;
49
- const { run } = await import("./cli-STUBHZRX.js");
49
+ const { run } = await import("./cli-CMKLQSAZ.js");
50
50
  const { withReporter } = await import("./report-BSETCIYQ.js");
51
51
  const { consoleReporter, reportStreamFor } = await import("./console-reporter-XU6VFUZE.js");
52
52
  await withReporter(consoleReporter(reportStreamFor(args)), () => run(args));
@@ -5,20 +5,20 @@ import {
5
5
  blockRefFrom,
6
6
  readBlock,
7
7
  removeBlocker
8
- } from "./chunk-A64PX3KG.js";
8
+ } from "./chunk-U2MUU3TT.js";
9
9
  import {
10
10
  sessionFromArgs,
11
11
  sessionPositionals
12
- } from "./chunk-K7LJG7OZ.js";
12
+ } from "./chunk-MN5T5HPT.js";
13
13
  import "./chunk-6AQRYLOB.js";
14
- import "./chunk-M536QKOX.js";
14
+ import "./chunk-R35P4DNK.js";
15
15
  import "./chunk-XZ5DA5X4.js";
16
16
  import "./chunk-ZSHWP2VS.js";
17
17
  import "./chunk-HUXS3VAI.js";
18
18
  import {
19
19
  findSession,
20
20
  loadHistory
21
- } from "./chunk-2UIND4T2.js";
21
+ } from "./chunk-KGMEAW2F.js";
22
22
  import "./chunk-JG3J5TLB.js";
23
23
  import "./chunk-RCYI7SRA.js";
24
24
  import "./chunk-NEJVK5CF.js";
@@ -82,4 +82,4 @@ var blockCommand = {
82
82
  export {
83
83
  blockCommand
84
84
  };
85
- //# sourceMappingURL=block-OZRDJ3A6.js.map
85
+ //# sourceMappingURL=block-IK2JJ5BZ.js.map
@@ -8,7 +8,7 @@ import {
8
8
  import "./chunk-HUXS3VAI.js";
9
9
  import {
10
10
  loadHistory
11
- } from "./chunk-2UIND4T2.js";
11
+ } from "./chunk-KGMEAW2F.js";
12
12
  import "./chunk-JG3J5TLB.js";
13
13
  import "./chunk-RCYI7SRA.js";
14
14
  import "./chunk-NEJVK5CF.js";
@@ -102,4 +102,4 @@ var broadcastCommand = {
102
102
  export {
103
103
  broadcastCommand
104
104
  };
105
- //# sourceMappingURL=broadcast-C2YZ4ZKU.js.map
105
+ //# sourceMappingURL=broadcast-2TIITC7F.js.map
@@ -3,20 +3,20 @@ import {
3
3
  askCatchUp,
4
4
  catchUp,
5
5
  catchUpFacts
6
- } from "./chunk-J6EFEMWE.js";
7
- import "./chunk-N7HVMU2V.js";
8
- import "./chunk-5SDEJIX2.js";
6
+ } from "./chunk-6SLZK5GD.js";
7
+ import "./chunk-OUFJZ264.js";
8
+ import "./chunk-AVJHFI5U.js";
9
9
  import {
10
10
  sessionFromArgs,
11
11
  sessionPositionals
12
- } from "./chunk-K7LJG7OZ.js";
12
+ } from "./chunk-MN5T5HPT.js";
13
13
  import "./chunk-6AQRYLOB.js";
14
14
  import "./chunk-AKGDIBSE.js";
15
- import "./chunk-M536QKOX.js";
15
+ import "./chunk-R35P4DNK.js";
16
16
  import "./chunk-XZ5DA5X4.js";
17
17
  import "./chunk-ZSHWP2VS.js";
18
18
  import "./chunk-HUXS3VAI.js";
19
- import "./chunk-2UIND4T2.js";
19
+ import "./chunk-KGMEAW2F.js";
20
20
  import "./chunk-JG3J5TLB.js";
21
21
  import "./chunk-RCYI7SRA.js";
22
22
  import "./chunk-NEJVK5CF.js";
@@ -49,4 +49,4 @@ var catchupCommand = {
49
49
  export {
50
50
  catchupCommand
51
51
  };
52
- //# sourceMappingURL=catchup-53TG4CEQ.js.map
52
+ //# sourceMappingURL=catchup-MSV2CLUE.js.map
@@ -15,14 +15,14 @@ import {
15
15
  import {
16
16
  ASSISTANT_ID,
17
17
  prepareAssistantDir
18
- } from "./chunk-WATUEO7H.js";
18
+ } from "./chunk-G5PTLH3D.js";
19
19
  import {
20
20
  createFsWatcher,
21
21
  findSessionById,
22
22
  logSwallowed,
23
23
  noClaudeBecause,
24
24
  swallow
25
- } from "./chunk-2UIND4T2.js";
25
+ } from "./chunk-KGMEAW2F.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-4NAQH5Y7.js.map
360
+ //# sourceMappingURL=chunk-2OS3DCAF.js.map
@@ -3,7 +3,7 @@ import {
3
3
  computeChanges,
4
4
  findOverlaps,
5
5
  wantsDiffStat
6
- } from "./chunk-BSST3WH4.js";
6
+ } from "./chunk-XHOYJP3H.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-WMEIUOPN.js.map
37
+ //# sourceMappingURL=chunk-3BHHT63K.js.map
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  defaultCleanupDeps
4
- } from "./chunk-PKUL7SCY.js";
4
+ } from "./chunk-BE2KPUJX.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-M536QKOX.js";
17
+ } from "./chunk-R35P4DNK.js";
18
18
  import {
19
19
  loadHistory,
20
20
  sessionAliases
21
- } from "./chunk-2UIND4T2.js";
21
+ } from "./chunk-KGMEAW2F.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-BHQ4I4OC.js.map
296
+ //# sourceMappingURL=chunk-4TOXX4KZ.js.map
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  runInternal
4
- } from "./chunk-N7HVMU2V.js";
4
+ } from "./chunk-OUFJZ264.js";
5
5
  import {
6
6
  messageOf,
7
7
  readStatus
8
- } from "./chunk-2UIND4T2.js";
8
+ } from "./chunk-KGMEAW2F.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-J6EFEMWE.js.map
103
+ //# sourceMappingURL=chunk-6SLZK5GD.js.map
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-AKGDIBSE.js";
5
5
  import {
6
6
  writeTempTree
7
- } from "./chunk-2UIND4T2.js";
7
+ } from "./chunk-KGMEAW2F.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-5SDEJIX2.js.map
537
+ //# sourceMappingURL=chunk-AVJHFI5U.js.map
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  readStatus
4
- } from "./chunk-2UIND4T2.js";
4
+ } from "./chunk-KGMEAW2F.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-SJOZIX5I.js.map
19
+ //# sourceMappingURL=chunk-BDWC6RXH.js.map
@@ -1,16 +1,16 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  defaultArchiveDeps
4
- } from "./chunk-25Y4QGBR.js";
4
+ } from "./chunk-R2VDNMRX.js";
5
5
  import {
6
6
  normPath
7
7
  } from "./chunk-AKMPF72Y.js";
8
8
  import {
9
9
  disposePty
10
- } from "./chunk-4NAQH5Y7.js";
10
+ } from "./chunk-2OS3DCAF.js";
11
11
  import {
12
12
  teardownWorktree
13
- } from "./chunk-632GRPPZ.js";
13
+ } from "./chunk-NJZJQGYL.js";
14
14
  import {
15
15
  defaultRunner
16
16
  } from "./chunk-3GIH4WTA.js";
@@ -24,7 +24,7 @@ import {
24
24
  readStatus,
25
25
  removeSession,
26
26
  sessionAliases
27
- } from "./chunk-2UIND4T2.js";
27
+ } from "./chunk-KGMEAW2F.js";
28
28
  import {
29
29
  sessionIdFor
30
30
  } from "./chunk-FXHTSSV2.js";
@@ -160,4 +160,4 @@ function defaultCleanupDeps(opts = {}) {
160
160
  export {
161
161
  defaultCleanupDeps
162
162
  };
163
- //# sourceMappingURL=chunk-PKUL7SCY.js.map
163
+ //# sourceMappingURL=chunk-BE2KPUJX.js.map
@@ -0,0 +1,9 @@
1
+ #!/usr/bin/env node
2
+
3
+ // src/version.ts
4
+ var VERSION = true ? "2.6.0" : "dev";
5
+
6
+ export {
7
+ VERSION
8
+ };
9
+ //# sourceMappingURL=chunk-CNRMBMJU.js.map
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  createInProcess
4
- } from "./chunk-D27KRAYW.js";
4
+ } from "./chunk-OPEB5JCB.js";
5
5
  import {
6
6
  ensurePty,
7
7
  peekPty
8
- } from "./chunk-4NAQH5Y7.js";
8
+ } from "./chunk-2OS3DCAF.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-M536QKOX.js";
18
+ } from "./chunk-R35P4DNK.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-2UIND4T2.js";
25
+ } from "./chunk-KGMEAW2F.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-Q2QTHA54.js.map
171
+ //# sourceMappingURL=chunk-DL4NHA5U.js.map
@@ -1,18 +1,18 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  peekPty
4
- } from "./chunk-4NAQH5Y7.js";
4
+ } from "./chunk-2OS3DCAF.js";
5
5
  import {
6
6
  isLeftover
7
7
  } from "./chunk-KUCMJHQW.js";
8
8
  import {
9
9
  sessionStatusView
10
- } from "./chunk-ZO2JCDGT.js";
10
+ } from "./chunk-GP4OOXKW.js";
11
11
  import {
12
12
  checkedOutBranch,
13
13
  readPendingForWorktree,
14
14
  scopeStoreIdsForPaths
15
- } from "./chunk-M536QKOX.js";
15
+ } from "./chunk-R35P4DNK.js";
16
16
  import {
17
17
  readStoresComments
18
18
  } from "./chunk-XZ5DA5X4.js";
@@ -34,7 +34,7 @@ import {
34
34
  sessionRepos,
35
35
  snoozeActive,
36
36
  withLiveClaude
37
- } from "./chunk-2UIND4T2.js";
37
+ } from "./chunk-KGMEAW2F.js";
38
38
  import {
39
39
  agentOf,
40
40
  agentWire,
@@ -389,4 +389,4 @@ export {
389
389
  lastActiveMs,
390
390
  createArchivedRows
391
391
  };
392
- //# sourceMappingURL=chunk-UNSDMOHY.js.map
392
+ //# sourceMappingURL=chunk-ELHWFKY2.js.map
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
- STAGE_WANTS_YOU,
3
+ owedToYou,
4
4
  stageWaiting
5
- } from "./chunk-2UIND4T2.js";
5
+ } from "./chunk-KGMEAW2F.js";
6
6
  import {
7
7
  atomicWriteFile,
8
8
  getConfigDir
@@ -23,9 +23,6 @@ function displayStatus(s, now = Date.now()) {
23
23
  if (a.state === "working") return a.background ? "background" : "working";
24
24
  if (!a.seen) return "done";
25
25
  }
26
- if ((s.openReviewThreads ?? 0) > 0) return "review";
27
- if (s.prStage && STAGE_WANTS_YOU.has(s.prStage.kind)) return "pr";
28
- if (stageWaiting(s.prStage)) return "in_review";
29
26
  if (a) return "quiet";
30
27
  if (s.activityState === "active") return "active";
31
28
  if (s.activityState === "open") return "open";
@@ -38,9 +35,6 @@ var DISPLAY_LABEL = {
38
35
  done: "Done",
39
36
  working: "Working",
40
37
  background: "In background",
41
- review: "Review comments",
42
- pr: "Pull request",
43
- in_review: "In review",
44
38
  quiet: "Idle",
45
39
  active: "Active",
46
40
  open: "Open",
@@ -56,12 +50,23 @@ var AGE_LABEL = {
56
50
  var WEEK_MS = 7 * 24 * 36e5;
57
51
  function ageBucket(s, now = Date.now()) {
58
52
  const kind = displayStatus(s, now);
59
- if (kind === "needs_input" || kind === "done" || kind === "working" || kind === "background" || kind === "archiving" || kind === "restoring" || kind === "review" || kind === "pr" || kind === "active" || kind === "open")
53
+ if (owedToYou(s).length) return "now";
54
+ if (kind === "needs_input" || kind === "done" || kind === "working" || kind === "background" || kind === "archiving" || kind === "restoring" || kind === "active" || kind === "open")
60
55
  return "now";
61
56
  const age = now - Date.parse(lastActiveAt(s));
62
57
  if (age < RECENT_MS) return "now";
63
58
  return age < WEEK_MS ? "week" : "older";
64
59
  }
60
+ var OWED_LONG = {
61
+ reply: (n) => `${n} ${n === 1 ? "reply" : "replies"} to post`,
62
+ thread: (n) => `${n} review ${n === 1 ? "thread" : "threads"} with no answer`,
63
+ conflict: (n) => n === 1 ? "a merge conflict" : `${n} PRs with merge conflicts`,
64
+ checks: (n) => n === 1 ? "checks failing" : `${n} PRs with checks failing`,
65
+ merge: () => "ready to merge"
66
+ };
67
+ function waitingOnOthers(s) {
68
+ return !owedToYou(s).length && stageWaiting(s.prStage);
69
+ }
65
70
 
66
71
  // src/core/agents/assistant.ts
67
72
  import fs from "fs";
@@ -189,6 +194,8 @@ export {
189
194
  CONTEXT_WARN,
190
195
  AGE_LABEL,
191
196
  ageBucket,
197
+ OWED_LONG,
198
+ waitingOnOthers,
192
199
  ASSISTANT_ID,
193
200
  prepareAssistantDir,
194
201
  describeView,
@@ -196,4 +203,4 @@ export {
196
203
  assistantContextDay,
197
204
  readAssistantContext
198
205
  };
199
- //# sourceMappingURL=chunk-WATUEO7H.js.map
206
+ //# sourceMappingURL=chunk-G5PTLH3D.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 { stageWaiting, type PrStageKind } from '../pr/pr-stage.js';\nimport { owedToYou, type Owed } from '../status/attention.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 /** Replies drafted to its review threads, waiting for your Post (SessionWire). */\n replyDrafts?: number;\n /** Where its pull request stands (SessionWire, pr-stage.ts). */\n prStage?: { kind: PrStageKind; text: string; seen?: boolean; prs?: ReadonlyArray<{ kind: PrStageKind; checks?: string }> } | null;\n /** Being archived right now (SessionWire.archiving). */\n archiving?: boolean;\n /** Being restored right now (SessionWire.restoring). */\n restoring?: boolean;\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 * archiving — being archived right now (its Claude stopped, the rest\n * being saved); it leaves the list when done\n * restoring — being restored (its worktree made again, the conversation\n * put back); in the rail again from the click\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 * 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 'archiving' | 'restoring' | 'needs_input' | 'done' | 'working' | 'background' | '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 if (s.archiving) return 'archiving';\n if (s.restoring) return 'restoring';\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 (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 archiving: 'Archiving',\n restoring: 'Restoring',\n needs_input: 'Needs your input',\n done: 'Done',\n working: 'Working',\n background: 'In background',\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 archiving:\n 'Being archived: its Claude is stopped, its conversation and uncommitted files are saved, and its worktree goes once nothing would be lost. It leaves the list when done; Restore brings it back.',\n restoring:\n 'Being restored: its worktree is made again from its branch, with its uncommitted files and conversation put back. Then it carries on where it was.',\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 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 'working',\n 'background',\n 'archiving',\n 'restoring',\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 (owedToYou(s).length) return 'now';\n if (\n kind === 'needs_input' ||\n kind === 'done' ||\n kind === 'working' ||\n kind === 'background' ||\n kind === 'archiving' ||\n kind === 'restoring' ||\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 return 'needs';\n case 'working':\n case 'background':\n case 'archiving':\n case 'restoring':\n case 'active':\n return 'working';\n case 'quiet':\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\n/**\n * The second signal: what waits on you about a session, beside what its\n * Claude is doing (attention.ts `owedToYou`), in words. The rail's badge is\n * the first thing (\"1 reply\", \"merge\"; \"+1\" when there's more), its tooltip\n * all of them; the Sessions table and the Inbox say the same.\n */\nexport const OWED_SHORT: Record<Owed['kind'], (n: number) => string> = {\n reply: (n) => `${n} ${n === 1 ? 'reply' : 'replies'}`,\n thread: (n) => `${n} ${n === 1 ? 'thread' : 'threads'}`,\n conflict: () => 'conflict',\n checks: () => 'CI',\n merge: () => 'merge',\n};\nexport const OWED_LONG: Record<Owed['kind'], (n: number) => string> = {\n reply: (n) => `${n} ${n === 1 ? 'reply' : 'replies'} to post`,\n thread: (n) => `${n} review ${n === 1 ? 'thread' : 'threads'} with no answer`,\n conflict: (n) => (n === 1 ? 'a merge conflict' : `${n} PRs with merge conflicts`),\n checks: (n) => (n === 1 ? 'checks failing' : `${n} PRs with checks failing`),\n merge: () => 'ready to merge',\n};\n\nexport interface OwedBadge {\n /** \"1 reply\", \"merge +1\". */\n text: string;\n /** \"Needs you: 1 reply to post · ready to merge\". */\n title: string;\n}\n\n/** The badge for what waits on you, or null when nothing does. */\nexport function owedBadge(s: SessionLike): OwedBadge | null {\n const owed = owedToYou(s);\n if (!owed.length) return null;\n const [first, ...more] = owed;\n return {\n text: OWED_SHORT[first.kind](first.count) + (more.length ? ` +${more.length}` : ''),\n title: `Needs you: ${owed.map((o) => OWED_LONG[o.kind](o.count)).join(' · ')}`,\n };\n}\n\n/** Nothing waits on you, and its PR waits on others (reviewers, checks): \"in review\", said quietly. */\nexport function waitingOnOthers(s: SessionLike): boolean {\n return !owedToYou(s).length && stageWaiting(s.prStage);\n}\n\n/** The Sessions table's status filter: what waits on you counts as \"needs you\", whatever Claude is doing. */\nexport function sessionBucket(s: SessionLike, now: number = Date.now()): StatusBucket {\n return owedToYou(s).length ? 'needs' : statusBucket(displayStatus(s, now));\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":";;;;;;;;;;;AAiDO,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,GAAgB,MAAc,KAAK,IAAI,GAAgB;AACnF,MAAI,EAAE,UAAW,QAAO;AACxB,MAAI,EAAE,UAAW,QAAO;AACxB,QAAM,IAAI,EAAE;AACZ,MAAI,GAAG;AACL,QAAI,EAAE,UAAU,cAAe,QAAO;AACtC,QAAI,EAAE,UAAU,UAAW,QAAO,EAAE,aAAa,eAAe;AAChE,QAAI,CAAC,EAAE,KAAM,QAAO;AAAA,EACtB;AACA,MAAI,EAAG,QAAO;AACd,MAAI,EAAE,kBAAkB,SAAU,QAAO;AACzC,MAAI,EAAE,kBAAkB,OAAQ,QAAO;AACvC,SAAO,MAAM,KAAK,MAAM,aAAa,CAAC,CAAC,IAAI,YAAY,WAAW;AACpE;AAEO,IAAM,gBAA6C;AAAA,EACxD,WAAW;AAAA,EACX,WAAW;AAAA,EACX,aAAa;AAAA,EACb,MAAM;AAAA,EACN,SAAS;AAAA,EACT,YAAY;AAAA,EACZ,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,OAAO;AACT;AAwCO,IA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G,SAAS;AAAA,EAAK,MAAM,KAAK,EAAE;AACjE;","names":[]}
@@ -6,7 +6,7 @@ import {
6
6
  lastTurnEntryMs,
7
7
  readSessionActivity,
8
8
  readStatus
9
- } from "./chunk-2UIND4T2.js";
9
+ } from "./chunk-KGMEAW2F.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-ZO2JCDGT.js.map
48
+ //# sourceMappingURL=chunk-GP4OOXKW.js.map
@@ -527,6 +527,23 @@ function snoozeLabel(snooze, now = /* @__PURE__ */ new Date()) {
527
527
  }
528
528
 
529
529
  // src/core/status/attention.ts
530
+ var OPEN_PR = (k) => k !== "merged" && k !== "closed";
531
+ function owedToYou(s) {
532
+ const out = [];
533
+ if ((s.replyDrafts ?? 0) > 0) out.push({ kind: "reply", count: s.replyDrafts });
534
+ if ((s.openReviewThreads ?? 0) > 0) out.push({ kind: "thread", count: s.openReviewThreads });
535
+ const stage = s.prStage;
536
+ if (!stage) return out;
537
+ const prs = stage.prs?.length ? stage.prs : [{ kind: stage.kind }];
538
+ const conflicts = prs.filter((p) => p.kind === "conflict").length;
539
+ const failing = prs.filter(
540
+ (p) => p.kind !== "conflict" && OPEN_PR(p.kind) && (p.kind === "checks_failing" || p.checks === "fail")
541
+ ).length;
542
+ if (conflicts) out.push({ kind: "conflict", count: conflicts });
543
+ if (failing) out.push({ kind: "checks", count: failing });
544
+ if (stage.kind === "ready") out.push({ kind: "merge", count: Math.max(1, prs.filter((p) => p.kind === "ready").length) });
545
+ return out;
546
+ }
530
547
  var DECISION_MARKER = "DECISION NEEDED:";
531
548
 
532
549
  // src/core/status/session-status.ts
@@ -2539,6 +2556,7 @@ export {
2539
2556
  parseWhen,
2540
2557
  snoozeActive,
2541
2558
  snoozeLabel,
2559
+ owedToYou,
2542
2560
  DECISION_MARKER,
2543
2561
  ANSWERED_AFTER_MS,
2544
2562
  effectiveStatus,
@@ -2637,4 +2655,4 @@ export {
2637
2655
  mergeHydratedSessions,
2638
2656
  forgetOtherBaseCheckoutEntries
2639
2657
  };
2640
- //# sourceMappingURL=chunk-2UIND4T2.js.map
2658
+ //# sourceMappingURL=chunk-KGMEAW2F.js.map