@moberg_hr/work-tree 2.13.0 → 2.14.1

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 (249) hide show
  1. package/dist/{account-2C2YDOIV.js → account-GOU2FC56.js} +17 -17
  2. package/dist/{add-repo-ENM45555.js → add-repo-PHD76M4S.js} +11 -11
  3. package/dist/{answer-N5BGRCZE.js → answer-HUVZ3XMW.js} +8 -8
  4. package/dist/{attach-FRLECF6U.js → attach-RJ53ABQN.js} +15 -15
  5. package/dist/bin.js +3 -3
  6. package/dist/{block-SPIM2L7Z.js → block-W34JH22B.js} +10 -10
  7. package/dist/{broadcast-I6A7Z3UL.js → broadcast-7YTINXQF.js} +6 -6
  8. package/dist/{catchup-XJ4EOYUC.js → catchup-5HC52SDK.js} +11 -11
  9. package/dist/{chunk-CJSH42MW.js → chunk-2K44PZRP.js} +56 -56
  10. package/dist/{chunk-JMFEIHMB.js → chunk-4B2UV6JH.js} +5 -5
  11. package/dist/{chunk-AIQ4I4AT.js → chunk-5D5V4P7J.js} +3 -3
  12. package/dist/{chunk-FUU47TYZ.js → chunk-5SMTFIYI.js} +3 -3
  13. package/dist/{chunk-UHWJXERU.js → chunk-5U3CSRV5.js} +6 -6
  14. package/dist/{chunk-EOK3XZCM.js → chunk-6AJFOISA.js} +3 -3
  15. package/dist/{chunk-5WBYGJS3.js → chunk-6MUKE253.js} +2 -2
  16. package/dist/{chunk-L562BYTL.js → chunk-7UIRKGY7.js} +10 -8
  17. package/dist/chunk-7UIRKGY7.js.map +1 -0
  18. package/dist/{chunk-RIKAEVFL.js → chunk-7XKIRMS4.js} +2 -2
  19. package/dist/{chunk-PDOG3O4N.js → chunk-7ZL3GJGY.js} +2 -2
  20. package/dist/{chunk-Z3KFELLM.js → chunk-A3R3VO6G.js} +4 -4
  21. package/dist/{chunk-N4ADXF5N.js → chunk-AAOAVXBF.js} +3 -3
  22. package/dist/{chunk-S2TSH66J.js → chunk-AKDTLWWD.js} +6 -6
  23. package/dist/{chunk-RZUXQ7ZP.js → chunk-BPAV2PIE.js} +4 -3
  24. package/dist/{chunk-RZUXQ7ZP.js.map → chunk-BPAV2PIE.js.map} +1 -1
  25. package/dist/{chunk-3IUD7OOG.js → chunk-BXVBNYQT.js} +3 -3
  26. package/dist/{chunk-NR4IKXRO.js → chunk-CWWWZRMN.js} +2 -2
  27. package/dist/{chunk-VB6HRYG6.js → chunk-DPO6I7OR.js} +7 -7
  28. package/dist/{chunk-5IEFHZWE.js → chunk-DWEW7I53.js} +4 -4
  29. package/dist/{chunk-TNCSXIXB.js → chunk-EHUKDUNJ.js} +3 -3
  30. package/dist/{chunk-EZPZNHEU.js → chunk-ERXXU72V.js} +5 -5
  31. package/dist/{chunk-7CABBTGX.js → chunk-FLQOSWVR.js} +8 -3
  32. package/dist/chunk-FLQOSWVR.js.map +1 -0
  33. package/dist/{chunk-INI6TEYT.js → chunk-FLY3VR6B.js} +8 -2
  34. package/dist/chunk-FLY3VR6B.js.map +1 -0
  35. package/dist/{chunk-VWQ7LZFO.js → chunk-GDR4RWF4.js} +2 -2
  36. package/dist/{chunk-3NSUFJVB.js → chunk-GSL6ZBQX.js} +10 -10
  37. package/dist/{chunk-RECQAHC5.js → chunk-JNKFPFH6.js} +2 -2
  38. package/dist/chunk-KI26QYWS.js +9 -0
  39. package/dist/{chunk-GMZV4RRV.js → chunk-KJY2AJQS.js} +7 -7
  40. package/dist/{chunk-WORXBWCC.js → chunk-LCUN2I5Q.js} +5 -5
  41. package/dist/{chunk-OIC2PWUH.js → chunk-LKJLUSYR.js} +2 -2
  42. package/dist/{chunk-MGKCH7SE.js → chunk-MQQADIRH.js} +3 -3
  43. package/dist/{chunk-JPVP46D4.js → chunk-MUCUSF6Y.js} +3 -3
  44. package/dist/{chunk-KTJ5QJCN.js → chunk-NCXRMJGS.js} +2 -2
  45. package/dist/{chunk-JK3YCAP7.js → chunk-PAEWU7UC.js} +4 -4
  46. package/dist/{chunk-4UBX7TEX.js → chunk-PJQRSOLE.js} +4 -4
  47. package/dist/{chunk-HUD4JLK3.js → chunk-RCBDG7CW.js} +40 -6
  48. package/dist/chunk-RCBDG7CW.js.map +1 -0
  49. package/dist/{chunk-WXUAIB32.js → chunk-RCWQD32G.js} +4 -4
  50. package/dist/{chunk-OJPGOZNT.js → chunk-RE3NKV4Z.js} +2 -2
  51. package/dist/{chunk-XTRC6IOA.js → chunk-RUIBZ6DI.js} +2 -2
  52. package/dist/{chunk-257RJ7GN.js → chunk-S2CQ73G4.js} +4 -4
  53. package/dist/{chunk-3GI5PO57.js → chunk-S43GVNRB.js} +3 -3
  54. package/dist/{chunk-BVH6EFV5.js → chunk-SAPDMQTO.js} +6 -6
  55. package/dist/{chunk-W75NWJRU.js → chunk-T26N4I4E.js} +4 -4
  56. package/dist/{chunk-4SRABK2D.js → chunk-T7K276XW.js} +3 -3
  57. package/dist/{chunk-UWHBW4G2.js → chunk-TNKBZIR5.js} +2 -2
  58. package/dist/{chunk-7KLDOQG6.js → chunk-UI45HNNQ.js} +6 -6
  59. package/dist/{chunk-YTYOVM4A.js → chunk-UIG3CTXU.js} +4 -4
  60. package/dist/{chunk-MJZ6XOXR.js → chunk-ULI3NB4J.js} +3 -3
  61. package/dist/{chunk-TAQB6FQY.js → chunk-UTBIZ6W5.js} +6 -6
  62. package/dist/{chunk-QG46R3C4.js → chunk-UY5J2KY2.js} +10 -10
  63. package/dist/{chunk-VFPJ7CRK.js → chunk-V72WJIGN.js} +6 -6
  64. package/dist/{chunk-G5AAYK56.js → chunk-VLUME72O.js} +2 -2
  65. package/dist/{chunk-IIIAV6OD.js → chunk-WAZCBD7Y.js} +2 -2
  66. package/dist/{chunk-MVTA24XH.js → chunk-X5XVXJ4B.js} +2 -2
  67. package/dist/{chunk-R2JBLEOC.js → chunk-XSI4WZIX.js} +2 -2
  68. package/dist/{chunk-AQHGYLVN.js → chunk-Y2DBNXZH.js} +6 -6
  69. package/dist/{chunk-AF6XEJTP.js → chunk-YXUVNSDM.js} +2 -2
  70. package/dist/{chunk-DQWZDA2E.js → chunk-Z3T5FWM6.js} +2 -2
  71. package/dist/{cleanup-SROJYVPL.js → cleanup-KVZ7P6EN.js} +28 -28
  72. package/dist/{cli-L7LAM65Q.js → cli-SGRXK4G2.js} +4 -4
  73. package/dist/{config-2LB26LNE.js → config-JEVEBD3O.js} +8 -8
  74. package/dist/{diff-IP3UYSQC.js → diff-3ZGUWMX4.js} +9 -9
  75. package/dist/{digest-GP4JUCKJ.js → digest-XJYJDGVX.js} +8 -8
  76. package/dist/{fork-AEA54A4Q.js → fork-AGFYDM5U.js} +25 -25
  77. package/dist/{history-2KDR7AMX.js → history-VYAGUN2X.js} +6 -6
  78. package/dist/{hook-TRWITUW6.js → hook-PWMF5WBD.js} +13 -13
  79. package/dist/{hydrate-B6XLDX3A.js → hydrate-PMH6OEVU.js} +6 -6
  80. package/dist/{init-EP5TCKCI.js → init-A3J3OC6Y.js} +11 -11
  81. package/dist/{install-skills-LQO7EHL7.js → install-skills-QX4OATOS.js} +6 -6
  82. package/dist/install-skills-bin.js +5 -5
  83. package/dist/{keep-VWCXTRLQ.js → keep-VRBCD2OU.js} +8 -8
  84. package/dist/{list-OTYXJ7PG.js → list-WT2YLARZ.js} +6 -6
  85. package/dist/{move-2XPFAJ6C.js → move-4P2X2VL2.js} +14 -14
  86. package/dist/{note-LXVBPO7G.js → note-INPWMP2K.js} +8 -8
  87. package/dist/{overlaps-ATTRQOYO.js → overlaps-SEMKBXBD.js} +12 -12
  88. package/dist/{pin-6FYKLGH7.js → pin-4524YHPO.js} +8 -8
  89. package/dist/{pr-32HTOP6M.js → pr-CRLSAAGA.js} +19 -19
  90. package/dist/{prune-W5EYYUPS.js → prune-3XFHACES.js} +26 -26
  91. package/dist/{pty-host-LOT7Y5IF.js → pty-host-4NEN3SID.js} +13 -13
  92. package/dist/{read-GVGKDMI6.js → read-TNPMUPCX.js} +8 -8
  93. package/dist/{recent-YAHDS2L7.js → recent-GUABGTFG.js} +13 -13
  94. package/dist/{remove-BS4INNKF.js → remove-FDXCPMGJ.js} +27 -27
  95. package/dist/{restart-FU4L3Y6D.js → restart-OETITN5N.js} +8 -8
  96. package/dist/{resume-T3UQ7HWI.js → resume-XDUTFTWV.js} +13 -13
  97. package/dist/{review-VCMEMSGB.js → review-EKSF3BUM.js} +3 -3
  98. package/dist/{review-now-NXMBEJ5R.js → review-now-XUEDTNMP.js} +3 -3
  99. package/dist/{run-W6VRRIPD.js → run-INEROJF3.js} +6 -6
  100. package/dist/{screen-XPLXJDTN.js → screen-JNM536PR.js} +8 -8
  101. package/dist/{search-FI2BA7UV.js → search-FOBT55YQ.js} +6 -6
  102. package/dist/{section-2WP2FU74.js → section-7ZGM5YOL.js} +8 -8
  103. package/dist/{send-MKQHJRUK.js → send-6X2IKY54.js} +9 -9
  104. package/dist/{sessions-PLY3RLOO.js → sessions-6DLS2JQG.js} +23 -23
  105. package/dist/{show-NBAP6W34.js → show-YTJ3NVMP.js} +7 -7
  106. package/dist/{snooze-66DER2G2.js → snooze-7WV4NKX7.js} +8 -8
  107. package/dist/{start-CH76J5IE.js → start-3EE3H4UE.js} +8 -8
  108. package/dist/{state-LDDRQFWX.js → state-GPEV4FHA.js} +2 -2
  109. package/dist/{status-CJSOIL5Y.js → status-DDHIRFAB.js} +10 -10
  110. package/dist/{statusline-OU4LKQQD.js → statusline-QN4AERZC.js} +3 -3
  111. package/dist/{stop-VH2KGCWH.js → stop-DYT5BIRN.js} +8 -8
  112. package/dist/{sync-TUDFXYWS.js → sync-NOLPKVWO.js} +26 -26
  113. package/dist/{time-U7QHPL5U.js → time-WANFTVEE.js} +9 -9
  114. package/dist/{time-actions-KYFYV7F2.js → time-actions-B7YKVDVE.js} +3 -3
  115. package/dist/{timesheet-7KASD74P.js → timesheet-GG5UR2NU.js} +12 -12
  116. package/dist/{todo-54OJY5VV.js → todo-VBWHS2HU.js} +2 -2
  117. package/dist/{tree-KZS7ZWLG.js → tree-HYJHJ7HD.js} +25 -25
  118. package/dist/{update-AQKZUX4D.js → update-IMNOHV3J.js} +14 -14
  119. package/dist/{usage-4AFZVL6M.js → usage-FUWADDO4.js} +8 -8
  120. package/dist/{version-B5PGYRJS.js → version-VXE4NJRN.js} +4 -4
  121. package/dist/{wait-NG2TIA6W.js → wait-2U7PLYRS.js} +9 -9
  122. package/dist/wd-bin.js +3 -3
  123. package/dist/web/assets/{PtyView-D9qrtXgY.js → PtyView-s01AhxxX.js} +2 -2
  124. package/dist/web/assets/{PtyView-D9qrtXgY.js.map → PtyView-s01AhxxX.js.map} +1 -1
  125. package/dist/web/assets/{index-BzKRYccu.css → index-BNHgDFNt.css} +1 -1
  126. package/dist/web/assets/index-DWb77ss2.js +126 -0
  127. package/dist/web/assets/index-DWb77ss2.js.map +1 -0
  128. package/dist/web/index.html +2 -2
  129. package/dist/{web-JTQP5Q4L.js → web-KEQI7DQO.js} +211 -73
  130. package/dist/web-KEQI7DQO.js.map +1 -0
  131. package/npm-shrinkwrap.json +2 -2
  132. package/package.json +1 -1
  133. package/dist/chunk-7CABBTGX.js.map +0 -1
  134. package/dist/chunk-HUD4JLK3.js.map +0 -1
  135. package/dist/chunk-INI6TEYT.js.map +0 -1
  136. package/dist/chunk-L562BYTL.js.map +0 -1
  137. package/dist/chunk-NYOJVO47.js +0 -9
  138. package/dist/web/assets/index-D91uDCop.js +0 -126
  139. package/dist/web/assets/index-D91uDCop.js.map +0 -1
  140. package/dist/web-JTQP5Q4L.js.map +0 -1
  141. /package/dist/{account-2C2YDOIV.js.map → account-GOU2FC56.js.map} +0 -0
  142. /package/dist/{add-repo-ENM45555.js.map → add-repo-PHD76M4S.js.map} +0 -0
  143. /package/dist/{answer-N5BGRCZE.js.map → answer-HUVZ3XMW.js.map} +0 -0
  144. /package/dist/{attach-FRLECF6U.js.map → attach-RJ53ABQN.js.map} +0 -0
  145. /package/dist/{block-SPIM2L7Z.js.map → block-W34JH22B.js.map} +0 -0
  146. /package/dist/{broadcast-I6A7Z3UL.js.map → broadcast-7YTINXQF.js.map} +0 -0
  147. /package/dist/{catchup-XJ4EOYUC.js.map → catchup-5HC52SDK.js.map} +0 -0
  148. /package/dist/{chunk-CJSH42MW.js.map → chunk-2K44PZRP.js.map} +0 -0
  149. /package/dist/{chunk-JMFEIHMB.js.map → chunk-4B2UV6JH.js.map} +0 -0
  150. /package/dist/{chunk-AIQ4I4AT.js.map → chunk-5D5V4P7J.js.map} +0 -0
  151. /package/dist/{chunk-FUU47TYZ.js.map → chunk-5SMTFIYI.js.map} +0 -0
  152. /package/dist/{chunk-UHWJXERU.js.map → chunk-5U3CSRV5.js.map} +0 -0
  153. /package/dist/{chunk-EOK3XZCM.js.map → chunk-6AJFOISA.js.map} +0 -0
  154. /package/dist/{chunk-5WBYGJS3.js.map → chunk-6MUKE253.js.map} +0 -0
  155. /package/dist/{chunk-RIKAEVFL.js.map → chunk-7XKIRMS4.js.map} +0 -0
  156. /package/dist/{chunk-PDOG3O4N.js.map → chunk-7ZL3GJGY.js.map} +0 -0
  157. /package/dist/{chunk-Z3KFELLM.js.map → chunk-A3R3VO6G.js.map} +0 -0
  158. /package/dist/{chunk-N4ADXF5N.js.map → chunk-AAOAVXBF.js.map} +0 -0
  159. /package/dist/{chunk-S2TSH66J.js.map → chunk-AKDTLWWD.js.map} +0 -0
  160. /package/dist/{chunk-3IUD7OOG.js.map → chunk-BXVBNYQT.js.map} +0 -0
  161. /package/dist/{chunk-NR4IKXRO.js.map → chunk-CWWWZRMN.js.map} +0 -0
  162. /package/dist/{chunk-VB6HRYG6.js.map → chunk-DPO6I7OR.js.map} +0 -0
  163. /package/dist/{chunk-5IEFHZWE.js.map → chunk-DWEW7I53.js.map} +0 -0
  164. /package/dist/{chunk-TNCSXIXB.js.map → chunk-EHUKDUNJ.js.map} +0 -0
  165. /package/dist/{chunk-EZPZNHEU.js.map → chunk-ERXXU72V.js.map} +0 -0
  166. /package/dist/{chunk-VWQ7LZFO.js.map → chunk-GDR4RWF4.js.map} +0 -0
  167. /package/dist/{chunk-3NSUFJVB.js.map → chunk-GSL6ZBQX.js.map} +0 -0
  168. /package/dist/{chunk-RECQAHC5.js.map → chunk-JNKFPFH6.js.map} +0 -0
  169. /package/dist/{chunk-NYOJVO47.js.map → chunk-KI26QYWS.js.map} +0 -0
  170. /package/dist/{chunk-GMZV4RRV.js.map → chunk-KJY2AJQS.js.map} +0 -0
  171. /package/dist/{chunk-WORXBWCC.js.map → chunk-LCUN2I5Q.js.map} +0 -0
  172. /package/dist/{chunk-OIC2PWUH.js.map → chunk-LKJLUSYR.js.map} +0 -0
  173. /package/dist/{chunk-MGKCH7SE.js.map → chunk-MQQADIRH.js.map} +0 -0
  174. /package/dist/{chunk-JPVP46D4.js.map → chunk-MUCUSF6Y.js.map} +0 -0
  175. /package/dist/{chunk-KTJ5QJCN.js.map → chunk-NCXRMJGS.js.map} +0 -0
  176. /package/dist/{chunk-JK3YCAP7.js.map → chunk-PAEWU7UC.js.map} +0 -0
  177. /package/dist/{chunk-4UBX7TEX.js.map → chunk-PJQRSOLE.js.map} +0 -0
  178. /package/dist/{chunk-WXUAIB32.js.map → chunk-RCWQD32G.js.map} +0 -0
  179. /package/dist/{chunk-OJPGOZNT.js.map → chunk-RE3NKV4Z.js.map} +0 -0
  180. /package/dist/{chunk-XTRC6IOA.js.map → chunk-RUIBZ6DI.js.map} +0 -0
  181. /package/dist/{chunk-257RJ7GN.js.map → chunk-S2CQ73G4.js.map} +0 -0
  182. /package/dist/{chunk-3GI5PO57.js.map → chunk-S43GVNRB.js.map} +0 -0
  183. /package/dist/{chunk-BVH6EFV5.js.map → chunk-SAPDMQTO.js.map} +0 -0
  184. /package/dist/{chunk-W75NWJRU.js.map → chunk-T26N4I4E.js.map} +0 -0
  185. /package/dist/{chunk-4SRABK2D.js.map → chunk-T7K276XW.js.map} +0 -0
  186. /package/dist/{chunk-UWHBW4G2.js.map → chunk-TNKBZIR5.js.map} +0 -0
  187. /package/dist/{chunk-7KLDOQG6.js.map → chunk-UI45HNNQ.js.map} +0 -0
  188. /package/dist/{chunk-YTYOVM4A.js.map → chunk-UIG3CTXU.js.map} +0 -0
  189. /package/dist/{chunk-MJZ6XOXR.js.map → chunk-ULI3NB4J.js.map} +0 -0
  190. /package/dist/{chunk-TAQB6FQY.js.map → chunk-UTBIZ6W5.js.map} +0 -0
  191. /package/dist/{chunk-QG46R3C4.js.map → chunk-UY5J2KY2.js.map} +0 -0
  192. /package/dist/{chunk-VFPJ7CRK.js.map → chunk-V72WJIGN.js.map} +0 -0
  193. /package/dist/{chunk-G5AAYK56.js.map → chunk-VLUME72O.js.map} +0 -0
  194. /package/dist/{chunk-IIIAV6OD.js.map → chunk-WAZCBD7Y.js.map} +0 -0
  195. /package/dist/{chunk-MVTA24XH.js.map → chunk-X5XVXJ4B.js.map} +0 -0
  196. /package/dist/{chunk-R2JBLEOC.js.map → chunk-XSI4WZIX.js.map} +0 -0
  197. /package/dist/{chunk-AQHGYLVN.js.map → chunk-Y2DBNXZH.js.map} +0 -0
  198. /package/dist/{chunk-AF6XEJTP.js.map → chunk-YXUVNSDM.js.map} +0 -0
  199. /package/dist/{chunk-DQWZDA2E.js.map → chunk-Z3T5FWM6.js.map} +0 -0
  200. /package/dist/{cleanup-SROJYVPL.js.map → cleanup-KVZ7P6EN.js.map} +0 -0
  201. /package/dist/{cli-L7LAM65Q.js.map → cli-SGRXK4G2.js.map} +0 -0
  202. /package/dist/{config-2LB26LNE.js.map → config-JEVEBD3O.js.map} +0 -0
  203. /package/dist/{diff-IP3UYSQC.js.map → diff-3ZGUWMX4.js.map} +0 -0
  204. /package/dist/{digest-GP4JUCKJ.js.map → digest-XJYJDGVX.js.map} +0 -0
  205. /package/dist/{fork-AEA54A4Q.js.map → fork-AGFYDM5U.js.map} +0 -0
  206. /package/dist/{history-2KDR7AMX.js.map → history-VYAGUN2X.js.map} +0 -0
  207. /package/dist/{hook-TRWITUW6.js.map → hook-PWMF5WBD.js.map} +0 -0
  208. /package/dist/{hydrate-B6XLDX3A.js.map → hydrate-PMH6OEVU.js.map} +0 -0
  209. /package/dist/{init-EP5TCKCI.js.map → init-A3J3OC6Y.js.map} +0 -0
  210. /package/dist/{install-skills-LQO7EHL7.js.map → install-skills-QX4OATOS.js.map} +0 -0
  211. /package/dist/{keep-VWCXTRLQ.js.map → keep-VRBCD2OU.js.map} +0 -0
  212. /package/dist/{list-OTYXJ7PG.js.map → list-WT2YLARZ.js.map} +0 -0
  213. /package/dist/{move-2XPFAJ6C.js.map → move-4P2X2VL2.js.map} +0 -0
  214. /package/dist/{note-LXVBPO7G.js.map → note-INPWMP2K.js.map} +0 -0
  215. /package/dist/{overlaps-ATTRQOYO.js.map → overlaps-SEMKBXBD.js.map} +0 -0
  216. /package/dist/{pin-6FYKLGH7.js.map → pin-4524YHPO.js.map} +0 -0
  217. /package/dist/{pr-32HTOP6M.js.map → pr-CRLSAAGA.js.map} +0 -0
  218. /package/dist/{prune-W5EYYUPS.js.map → prune-3XFHACES.js.map} +0 -0
  219. /package/dist/{pty-host-LOT7Y5IF.js.map → pty-host-4NEN3SID.js.map} +0 -0
  220. /package/dist/{read-GVGKDMI6.js.map → read-TNPMUPCX.js.map} +0 -0
  221. /package/dist/{recent-YAHDS2L7.js.map → recent-GUABGTFG.js.map} +0 -0
  222. /package/dist/{remove-BS4INNKF.js.map → remove-FDXCPMGJ.js.map} +0 -0
  223. /package/dist/{restart-FU4L3Y6D.js.map → restart-OETITN5N.js.map} +0 -0
  224. /package/dist/{resume-T3UQ7HWI.js.map → resume-XDUTFTWV.js.map} +0 -0
  225. /package/dist/{review-VCMEMSGB.js.map → review-EKSF3BUM.js.map} +0 -0
  226. /package/dist/{review-now-NXMBEJ5R.js.map → review-now-XUEDTNMP.js.map} +0 -0
  227. /package/dist/{run-W6VRRIPD.js.map → run-INEROJF3.js.map} +0 -0
  228. /package/dist/{screen-XPLXJDTN.js.map → screen-JNM536PR.js.map} +0 -0
  229. /package/dist/{search-FI2BA7UV.js.map → search-FOBT55YQ.js.map} +0 -0
  230. /package/dist/{section-2WP2FU74.js.map → section-7ZGM5YOL.js.map} +0 -0
  231. /package/dist/{send-MKQHJRUK.js.map → send-6X2IKY54.js.map} +0 -0
  232. /package/dist/{sessions-PLY3RLOO.js.map → sessions-6DLS2JQG.js.map} +0 -0
  233. /package/dist/{show-NBAP6W34.js.map → show-YTJ3NVMP.js.map} +0 -0
  234. /package/dist/{snooze-66DER2G2.js.map → snooze-7WV4NKX7.js.map} +0 -0
  235. /package/dist/{start-CH76J5IE.js.map → start-3EE3H4UE.js.map} +0 -0
  236. /package/dist/{state-LDDRQFWX.js.map → state-GPEV4FHA.js.map} +0 -0
  237. /package/dist/{status-CJSOIL5Y.js.map → status-DDHIRFAB.js.map} +0 -0
  238. /package/dist/{statusline-OU4LKQQD.js.map → statusline-QN4AERZC.js.map} +0 -0
  239. /package/dist/{stop-VH2KGCWH.js.map → stop-DYT5BIRN.js.map} +0 -0
  240. /package/dist/{sync-TUDFXYWS.js.map → sync-NOLPKVWO.js.map} +0 -0
  241. /package/dist/{time-U7QHPL5U.js.map → time-WANFTVEE.js.map} +0 -0
  242. /package/dist/{time-actions-KYFYV7F2.js.map → time-actions-B7YKVDVE.js.map} +0 -0
  243. /package/dist/{timesheet-7KASD74P.js.map → timesheet-GG5UR2NU.js.map} +0 -0
  244. /package/dist/{todo-54OJY5VV.js.map → todo-VBWHS2HU.js.map} +0 -0
  245. /package/dist/{tree-KZS7ZWLG.js.map → tree-HYJHJ7HD.js.map} +0 -0
  246. /package/dist/{update-AQKZUX4D.js.map → update-IMNOHV3J.js.map} +0 -0
  247. /package/dist/{usage-4AFZVL6M.js.map → usage-FUWADDO4.js.map} +0 -0
  248. /package/dist/{version-B5PGYRJS.js.map → version-VXE4NJRN.js.map} +0 -0
  249. /package/dist/{wait-NG2TIA6W.js.map → wait-2U7PLYRS.js.map} +0 -0
@@ -1,16 +1,16 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  defaultArchiveDeps
4
- } from "./chunk-3NSUFJVB.js";
4
+ } from "./chunk-GSL6ZBQX.js";
5
5
  import {
6
6
  normPath
7
7
  } from "./chunk-AKMPF72Y.js";
8
8
  import {
9
9
  disposePty
10
- } from "./chunk-QG46R3C4.js";
10
+ } from "./chunk-UY5J2KY2.js";
11
11
  import {
12
12
  teardownWorktree
13
- } from "./chunk-JMFEIHMB.js";
13
+ } from "./chunk-4B2UV6JH.js";
14
14
  import {
15
15
  defaultRunner
16
16
  } from "./chunk-MKQ7IA6U.js";
@@ -21,7 +21,7 @@ import {
21
21
  readStatus,
22
22
  removeSession,
23
23
  sessionAliases
24
- } from "./chunk-7CABBTGX.js";
24
+ } from "./chunk-FLQOSWVR.js";
25
25
  import {
26
26
  sessionIdFor
27
27
  } from "./chunk-RRNIJ7YO.js";
@@ -30,7 +30,7 @@ import {
30
30
  } from "./chunk-K5EAVRXX.js";
31
31
  import {
32
32
  loadConfig
33
- } from "./chunk-INI6TEYT.js";
33
+ } from "./chunk-FLY3VR6B.js";
34
34
 
35
35
  // src/core/cleanup/cleanup-deps.ts
36
36
  import fs from "fs";
@@ -160,4 +160,4 @@ function defaultCleanupDeps(opts = {}) {
160
160
  export {
161
161
  defaultCleanupDeps
162
162
  };
163
- //# sourceMappingURL=chunk-UHWJXERU.js.map
163
+ //# sourceMappingURL=chunk-5U3CSRV5.js.map
@@ -6,14 +6,14 @@ import {
6
6
  lastTurnEntryMs,
7
7
  readSessionActivity,
8
8
  readStatus
9
- } from "./chunk-7CABBTGX.js";
9
+ } from "./chunk-FLQOSWVR.js";
10
10
  import {
11
11
  sessionIdFor
12
12
  } from "./chunk-RRNIJ7YO.js";
13
13
  import {
14
14
  agentOf,
15
15
  readJsonlTail
16
- } from "./chunk-AQHGYLVN.js";
16
+ } from "./chunk-Y2DBNXZH.js";
17
17
 
18
18
  // src/core/status/turn-activity.ts
19
19
  var cache = /* @__PURE__ */ new Map();
@@ -45,4 +45,4 @@ export {
45
45
  sessionStatusView,
46
46
  shownState
47
47
  };
48
- //# sourceMappingURL=chunk-EOK3XZCM.js.map
48
+ //# sourceMappingURL=chunk-6AJFOISA.js.map
@@ -3,7 +3,7 @@ import {
3
3
  computeChanges,
4
4
  findOverlaps,
5
5
  wantsDiffStat
6
- } from "./chunk-OJPGOZNT.js";
6
+ } from "./chunk-RE3NKV4Z.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-5WBYGJS3.js.map
37
+ //# sourceMappingURL=chunk-6MUKE253.js.map
@@ -1,23 +1,23 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  sessionStatusView
4
- } from "./chunk-EOK3XZCM.js";
4
+ } from "./chunk-6AJFOISA.js";
5
5
  import {
6
6
  peekPty
7
- } from "./chunk-QG46R3C4.js";
7
+ } from "./chunk-UY5J2KY2.js";
8
8
  import {
9
9
  isLeftover
10
10
  } from "./chunk-LSZ6HI3U.js";
11
11
  import {
12
12
  readPendingForWorktree,
13
13
  scopeStoreIdsForPaths
14
- } from "./chunk-N4ADXF5N.js";
14
+ } from "./chunk-AAOAVXBF.js";
15
15
  import {
16
16
  readStoresComments
17
17
  } from "./chunk-RVSRZ57P.js";
18
18
  import {
19
19
  stageInputOf
20
- } from "./chunk-BVH6EFV5.js";
20
+ } from "./chunk-SAPDMQTO.js";
21
21
  import {
22
22
  STAGE_WANTS_YOU,
23
23
  archiveDirFor,
@@ -37,7 +37,7 @@ import {
37
37
  snoozeActive,
38
38
  stageRepos,
39
39
  withLiveClaude
40
- } from "./chunk-7CABBTGX.js";
40
+ } from "./chunk-FLQOSWVR.js";
41
41
  import {
42
42
  sessionIdFor
43
43
  } from "./chunk-RRNIJ7YO.js";
@@ -46,12 +46,12 @@ import {
46
46
  agentWire,
47
47
  checkedOutBranch,
48
48
  readJsonlTail
49
- } from "./chunk-AQHGYLVN.js";
49
+ } from "./chunk-Y2DBNXZH.js";
50
50
  import {
51
51
  DEFAULT_ACCOUNT,
52
52
  getConfigPath,
53
53
  loadConfig
54
- } from "./chunk-INI6TEYT.js";
54
+ } from "./chunk-FLY3VR6B.js";
55
55
 
56
56
  // src/core/sessions/session-wire.ts
57
57
  import fs2 from "fs";
@@ -227,6 +227,7 @@ function sessionWire(s, opts = {}) {
227
227
  const reviewThreads = s.archivedAt ? 0 : opts.reviewThreadsFor?.(id) ?? 0;
228
228
  const replyDrafts = s.archivedAt ? 0 : opts.replyDraftsFor?.(id) ?? 0;
229
229
  const prStage = s.archivedAt ? null : opts.prStageFor?.(id) ?? null;
230
+ const localReview = s.archivedAt ? null : opts.localReviewFor?.(id) ?? null;
230
231
  const wire = {
231
232
  id,
232
233
  target: s.target,
@@ -277,6 +278,7 @@ function sessionWire(s, opts = {}) {
277
278
  ...reviewThreads > 0 ? { openReviewThreads: reviewThreads } : {},
278
279
  ...replyDrafts > 0 ? { replyDrafts } : {},
279
280
  ...prStage ? { prStage } : {},
281
+ ...localReview ? { localReview } : {},
280
282
  ...otherBranches(s)
281
283
  };
282
284
  const snooze = s.archivedAt ? null : opts.snoozeFor?.(id) ?? null;
@@ -410,4 +412,4 @@ export {
410
412
  lastActiveMs,
411
413
  createArchivedRows
412
414
  };
413
- //# sourceMappingURL=chunk-L562BYTL.js.map
415
+ //# sourceMappingURL=chunk-7UIRKGY7.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/core/sessions/session-wire.ts","../src/core/comments/linked-stores.ts","../src/core/sessions/session-meta.ts","../src/core/conversations/context-usage.ts","../src/core/conversations/session-title.ts"],"sourcesContent":["import type { SessionLocalReviewWire } from '../api-types.js';\nimport fs from 'node:fs';\nimport { agentOf, agentWire } from '../agents/index.js';\nimport { readStatus } from '../status/session-status.js';\nimport { snoozeActive, type Snooze } from '../rail/snooze.js';\nimport { idleFrom, withLiveClaude } from '../status/session-status.js';\nimport path from 'node:path';\nimport { readSessionMeta } from './session-meta.js';\nimport { checkedOutBranch } from '../git/git-head.js';\nimport { sessionIdFor } from './web-state.js';\nimport { readContextUsage } from '../conversations/context-usage.js';\nimport { bestEffort } from '../platform/best-effort.js';\nimport type { WorktreeSession } from './history.js';\nimport type {\n DiffStat,\n SessionArchiveInfo,\n SessionAttention,\n SessionClaudes,\n SessionWire,\n BlockerWire,\n PrStageWire,\n SessionBranchWire,\n ElsewherePr,\n} from '../api-types.js';\nimport { archiveDirFor, archivedByOf, keptList, readArchive } from '../archive/session-archive.js';\nimport { isArchiving, isRestoring } from '../archive/archiving.js';\nimport { sessionTitle } from '../conversations/session-title.js';\nimport { prStageOf, stageRepos, STAGE_WANTS_YOU, type StagePr } from '../pr/pr-stage.js';\nimport { stageInputOf } from '../pr/branch-work.js';\nimport { isLeftover } from '../worktree/leftover.js';\nimport { recordedRepos, sessionRepos } from './session-repos.js';\nimport { DEFAULT_ACCOUNT, getConfigPath, loadConfig, type WorkConfig } from '../platform/config.js';\n\n/**\n * One session as every client sees it — the dashboard's /api/sessions rows\n * and `work sessions --json` alike: identity, status, activity, comments,\n * context, archive state. Built in one place so the two can't drift.\n */\nexport interface SessionWireOptions {\n /** The account a switch waiting for its turn will move it to (account-switch.ts), or null. */\n accountPendingFor?: (id: string) => string | null;\n /** The session's `+N −M`, when the caller has one (the web cache). */\n diffStatFor?: (id: string, s: WorktreeSession, hasStatus: boolean) => DiffStat | null;\n /** Whether its Claude runs in the PTY host (the CLI asks the host; the\n * web server's pool knows it already). */\n ptyLive?: (id: string) => boolean;\n /** Its running Claudes, wherever they were started (live-claudes.ts). */\n claudesFor?: (id: string) => SessionClaudes | null;\n /** It shares its folder with another session that owns it\n * (shared-folders.ts): the folder's activity isn't this one's. */\n shadowed?: (id: string) => boolean;\n /** Unresolved review threads on its open PRs (the PR watch's last check). */\n reviewThreadsFor?: (id: string) => number;\n /** Reply drafts its Claude wrote for you to post (pr-replies.ts). */\n replyDraftsFor?: (id: string) => number;\n /** Where its own review stands (local-review.ts `row`); null: it has none. */\n localReviewFor?: (id: string) => SessionLocalReviewWire | null;\n /** Where its PR stands (pr-stage.ts over the PR watch's last check), and whether you've seen it there. */\n prStageFor?: (id: string) => PrStageWire | null;\n /** You have notes on it (session-notes.ts). */\n hasNote?: (id: string) => boolean;\n /** What it waits on that isn't done yet (session-blocks.ts). */\n blockedByFor?: (id: string) => BlockerWire[];\n /** The running Claudes were read against a real process list, so \"none\" means none. */\n liveKnown?: boolean;\n /** A Claude of ours runs for it (PTY host), whether or not Claude Code's file shows it yet. */\n hostedLive?: (id: string) => boolean;\n /** A status read from its terminal output, for a tool with no hooks (output-status.ts). */\n outputStatusFor?: (id: string) => SessionAttention | null;\n /** Its snooze, if any (snooze-store.ts); shown only while it holds. */\n snoozeFor?: (id: string) => Snooze | null;\n /** How far behind main — or the session it is stacked on — it is (behind-main.ts's cache). */\n /** `lastActivity`: its agent's last write (ms; 0 none), so a session entered long ago but worked in today counts as in use. */\n behindFor?: (\n id: string,\n s: WorktreeSession,\n lastActivity: number,\n ) => { base: string; commits: number; conflicts: boolean; stacked?: true } | null;\n /** Every branch it worked on, with what's known of each (branch-facts.ts `createSessionBranches`); null when\n * it stayed on one. */\n branchesFor?: (id: string, s: WorktreeSession) => SessionBranchWire[] | null;\n /** Where it sits in a stack (stack-sessions.ts). */\n stackFor?: (id: string) => {\n parent: { id: string; branch: string; title?: string } | null;\n children: number;\n merged?: { id: string; branch: string } | null;\n };\n}\n\nexport function sessionWire(s: WorktreeSession, opts: SessionWireOptions = {}): SessionWire {\n const id = sessionIdFor(s);\n const meta = readSessionMeta(id, s);\n const shadowed = opts.shadowed?.(id) ?? false;\n const claudes = shadowed ? null : (opts.claudesFor?.(id) ?? null);\n const reviewThreads = s.archivedAt ? 0 : (opts.reviewThreadsFor?.(id) ?? 0);\n const replyDrafts = s.archivedAt ? 0 : (opts.replyDraftsFor?.(id) ?? 0);\n const prStage = s.archivedAt ? null : (opts.prStageFor?.(id) ?? null);\n const localReview = s.archivedAt ? null : (opts.localReviewFor?.(id) ?? null);\n const wire: SessionWire = {\n id,\n target: s.target,\n branch: s.branch,\n isGroup: s.isGroup,\n paths: s.paths,\n repos: wireRepos(s),\n folder: s.isGroup,\n baseBranch: s.baseBranch,\n jiraKey: s.jiraKey,\n createdAt: s.createdAt,\n lastAccessedAt: s.lastAccessedAt,\n draftCount: meta.draftCount,\n commentCount: meta.commentCount,\n claudeCount: meta.claudeCount,\n ptyStatus: opts.ptyLive ? (opts.ptyLive(id) ? 'running' : 'idle') : meta.ptyStatus,\n lastActivity: shadowed ? null : meta.lastActivity,\n // A running Claude is open even when it writes nothing (idle at its prompt).\n activityState: shadowed\n ? 'stale'\n : claudes\n ? claudes.busy\n ? 'active'\n : meta.activityState === 'active'\n ? 'active'\n : 'open'\n : meta.activityState,\n ...(claudes ? { agents: claudes, claudes } : {}),\n agent: agentWire(agentOf(s)),\n // Only a session on an account other than the default says which.\n ...(s.account && s.account !== DEFAULT_ACCOUNT ? { account: s.account } : {}),\n ...(!s.archivedAt && opts.accountPendingFor?.(id) ? { accountPending: opts.accountPendingFor(id)! } : {}),\n ...(s.archivedAt ? archiveInfo(id) : {}),\n title: bestEffort(\n `title of ${s.target}:${s.branch}`,\n () => sessionTitle(s, s.archivedAt ? readArchive(id)?.summary.prompts[0]?.text : null),\n null,\n ),\n ...(s.title ? { titleIsYours: true } : {}),\n pendingForClaudeCount: meta.pendingForClaudeCount,\n // Claude Code's own state file over what the hooks recorded, when newer.\n attention:\n meta.attention && !shadowed && opts.claudesFor\n ? withLiveClaude(meta.attention, claudes, {\n known: opts.liveKnown === true,\n hosted: opts.hostedLive?.(id) ?? true,\n background: () => agentOf(s).conversation?.backgroundWorkSince?.(s, idleFrom(meta.attention!)) ?? null,\n commands: () =>\n bestEffort(\n `background commands of ${s.target}:${s.branch}`,\n () => agentOf(s).conversation?.backgroundCommandNames?.(s, 0) ?? [],\n [],\n ) ?? [],\n })\n : (meta.attention ?? (shadowed || s.archivedAt ? null : (opts.outputStatusFor?.(id) ?? null))),\n diffStat: opts.diffStatFor ? opts.diffStatFor(id, s, meta.attention !== null) : null,\n archivedAt: s.archivedAt ?? null,\n port: s.port ?? null,\n context: s.archivedAt ? null : bestEffort(`context usage for ${s.target}:${s.branch}`, () => readContextUsage(s), null),\n ...(reviewThreads > 0 ? { openReviewThreads: reviewThreads } : {}),\n ...(replyDrafts > 0 ? { replyDrafts } : {}),\n ...(prStage ? { prStage } : {}),\n ...(localReview ? { localReview } : {}),\n ...otherBranches(s),\n };\n // Snoozed: only while it holds (a time not yet reached, or the status it\n // was snoozed in). \"Its status\" is what the hooks recorded — the same the\n // snooze was taken against — not the shown one, which a live Claude's state\n // file can override (that would end a snooze the moment it was set).\n const snooze = s.archivedAt ? null : (opts.snoozeFor?.(id) ?? null);\n if (snooze && snoozeActive(snooze, { attention: readStatus(id), openReviewThreads: wire.openReviewThreads, prStage: wire.prStage }))\n wire.snoozed = { until: snooze.until };\n const behind = s.archivedAt ? null : (opts.behindFor?.(id, s, wire.lastActivity ?? 0) ?? null);\n if (behind && behind.commits > 0) wire.behind = behind;\n const stack = s.archivedAt ? null : (opts.stackFor?.(id) ?? null);\n if (stack?.parent) wire.stackedOn = stack.parent;\n if (stack?.children) wire.stackedChildren = stack.children;\n if (stack?.merged) wire.stackParentMerged = stack.merged;\n const branches = s.archivedAt ? null : (opts.branchesFor?.(id, s) ?? null);\n if (branches?.length) wire.branches = branches;\n if (opts.hasNote?.(id)) wire.hasNote = true;\n if (s.keepAfterMerge && !s.archivedAt) wire.keepAfterMerge = true;\n if (isArchiving(id)) wire.archiving = true;\n if (!s.archivedAt && isAsleep(readStatus(id)?.stoppedAt, wire.ptyStatus === 'running', wire.lastActivity ?? 0)) wire.asleep = true;\n const blockers = s.archivedAt ? [] : (opts.blockedByFor?.(id) ?? []);\n if (blockers.length) wire.blockedBy = blockers;\n return wire;\n}\n\n/**\n * Asleep: work stopped its Claude (idle sleep, `work stop`: `stoppedAt`), it\n * isn't running now, and its conversation wasn't written since — one started\n * again (opened, sent a note, started in a terminal) is awake. Pure.\n */\nexport function isAsleep(stoppedAt: string | undefined, ptyRunning: boolean, lastActivityMs: number): boolean {\n const stopped = stoppedAt ? Date.parse(stoppedAt) : NaN;\n return Number.isFinite(stopped) && !ptyRunning && lastActivityMs <= stopped;\n}\n\n/** The row, marked Restoring while a Restore of it runs (a copy: archived rows are cached). */\nexport function withRestoring(w: SessionWire): SessionWire {\n return isRestoring(w.id) ? { ...w, restoring: true } : w;\n}\n\n/**\n * Its repos' aliases, one per path (`sessionRepos`). A recorded list needs no\n * config; a group's row from before reads the group's members from the\n * config, read once per change of the file (this runs per row of every list).\n */\nexport function wireRepos(\n s: Pick<WorktreeSession, 'target' | 'isGroup' | 'paths' | 'repos'>,\n config: () => Pick<WorkConfig, 'repos' | 'groups'> | null = repoConfig,\n): string[] {\n const recorded = recordedRepos(s);\n if (recorded) return recorded.map((r) => r.alias);\n return sessionRepos(s, s.isGroup ? config() : null).map((r) => r.alias);\n}\n\nlet configCache: { key: string; value: Pick<WorkConfig, 'repos' | 'groups'> | null } | null = null;\n\nfunction repoConfig(): Pick<WorkConfig, 'repos' | 'groups'> | null {\n const file = getConfigPath();\n let key: string;\n try {\n const st = fs.statSync(file);\n key = `${file}|${st.size}|${st.mtimeMs}`;\n } catch {\n return null;\n }\n if (configCache?.key === key) return configCache.value;\n const cfg = bestEffort('config for session repos', () => loadConfig(), null);\n configCache = { key, value: cfg ? { repos: cfg.repos, groups: cfg.groups } : null };\n return configCache.value;\n}\n\n/**\n * Repos of the session checked out on another branch than the session's\n * (read from HEAD files, no git). Ship and the PR watch follow the real\n * branch already; this is so the dashboard says so.\n */\nexport function otherBranches(s: Pick<WorktreeSession, 'branch' | 'paths' | 'target' | 'isGroup' | 'archivedAt'>): {\n onOtherBranch?: Array<{ repo: string; branch: string | null; noGit?: true }>;\n} {\n if (s.archivedAt || !s.branch) return {};\n const out: Array<{ repo: string; branch: string | null; noGit?: true }> = [];\n for (const p of s.paths) {\n if (!fs.existsSync(p)) continue;\n // A folder with no git left in it (a removal that stopped halfway) is on no branch at all.\n if (isLeftover(p)) {\n out.push({ repo: s.isGroup ? path.basename(p) : s.target, branch: null, noGit: true });\n continue;\n }\n const branch = checkedOutBranch(p);\n if (branch !== s.branch) out.push({ repo: s.isGroup ? path.basename(p) : s.target, branch });\n }\n return out.length ? { onOtherBranch: out } : {};\n}\n\n/** A session's unresolved review threads, from the PR watch's per-repo counts (open PRs only). */\nexport function reviewThreadsOf(ci: { repos: Array<{ pr: { state: string } | null; openThreads?: number }> } | null | undefined): number {\n return (ci?.repos ?? []).reduce((n, r) => n + (r.pr?.state === 'OPEN' ? (r.openThreads ?? 0) : 0), 0);\n}\n\n/** The `pr_watch_seen` key that says you saw a session at a PR stage. */\nexport const stageSeenKey = (stageKey: string) => `stage:${stageKey}`;\n\n/**\n * A session's PR stage from the PR watch's last check, with `seen` read only\n * for a stage that would bring it back to the Inbox (one lookup, not one per row).\n */\nexport function prStageWire(\n ci:\n | {\n repos: Array<{ name: string; pr: StagePr | null; branch?: string; otherPrs?: Array<{ branch: string; pr: StagePr }> }>;\n elsewhere?: ElsewherePr[];\n }\n | null\n | undefined,\n seen: (key: string) => boolean,\n): PrStageWire | null {\n // Every open PR across the branches it worked on (stageRepos), and its listed PRs in repos it doesn't have.\n const stage = prStageOf(stageRepos(stageInputOf(ci)));\n if (!stage) return null;\n return STAGE_WANTS_YOU.has(stage.kind) && seen(stageSeenKey(stage.key)) ? { ...stage, seen: true } : stage;\n}\n\n/** Saved uncommitted files a Restore hasn't put back yet. */\nfunction savedFiles(saved: Record<string, { files: number; restoredAt?: string; restoreError?: string }> | undefined): {\n savedUncommitted?: number;\n} {\n const n = Object.values(saved ?? {})\n .filter((u) => !u.restoredAt && !u.restoreError)\n .reduce((sum, u) => sum + u.files, 0);\n return n ? { savedUncommitted: n } : {};\n}\n\nfunction archiveInfo(id: string): { archive?: SessionArchiveInfo } {\n const rec = readArchive(id);\n if (!rec) return {};\n const by = archivedByOf(rec);\n const kept = keptList(rec.kept);\n return {\n archive: {\n ...(by ? { by } : {}),\n worktreeRemoved: rec.worktreeRemoved,\n keptBecause: rec.keptBecause,\n promptCount: rec.summary.promptCount,\n prompts: rec.summary.prompts.map((p) => p.text),\n lastSummary: rec.summary.lastSummary,\n ...(rec.summary.written ? { written: rec.summary.written } : {}),\n ...(rec.buildFolders ? { buildFolders: rec.buildFolders } : {}),\n ...savedFiles(rec.uncommitted),\n ...(kept ? { kept } : {}),\n },\n };\n}\n\n/** Newest sign of life (ms): the hook update, Claude's last write, the\n * `work tree` entry — the same rule as the dashboard's \"Last active\". */\nexport function lastActiveMs(w: Pick<SessionWire, 'lastAccessedAt' | 'lastActivity' | 'attention'>): number {\n return Math.max(Date.parse(w.lastAccessedAt) || 0, w.lastActivity ?? 0, w.attention ? Date.parse(w.attention.updatedAt) || 0 : 0);\n}\n\n/**\n * Archived sessions' rows, kept between builds of the list: an archived\n * session doesn't change — its Claude is stopped, its worktree mostly gone —\n * and building its row reads its archive (2/3 of /api/sessions' time with\n * fifty of them). A row is built again when its archive file was written\n * (the summary lands after archiving, a Restore records what came back), it\n * was renamed or entered, or your note on it came or went.\n */\nexport function createArchivedRows(\n archiveFile: (id: string) => string = (id) => path.join(archiveDirFor(id), 'archive.json'),\n): (s: WorktreeSession, extra: { hasNote: boolean }, build: () => SessionWire) => SessionWire {\n const rows = new Map<string, { key: string; row: SessionWire }>();\n return (s, extra, build) => {\n if (!s.archivedAt) return build();\n const id = sessionIdFor(s);\n let mtime = 0;\n try {\n mtime = fs.statSync(archiveFile(id)).mtimeMs;\n } catch {\n /* none yet */\n }\n const key = `${s.archivedAt}|${mtime}|${s.title ?? ''}|${s.lastAccessedAt}|${extra.hasNote}`;\n const hit = rows.get(id);\n if (hit?.key === key) return hit.row;\n const row = build();\n rows.set(id, { key, row });\n return row;\n };\n}\n","import type { WorktreeSession } from '../sessions/history.js';\nimport { sessionIdFor } from '../sessions/session-id.js';\nimport { readStoresComments } from './comment-file-store.js';\nimport { scopeStoreIdsForPaths } from './pending-delivery.js';\nimport type { Comment } from './comment-types.js';\n\n/**\n * One worktree's comments live in two kinds of store: the session's own (the\n * dashboard's Diff tab posts there) and a `wd` scope's (`scope-<hash>`: the\n * browser diff page, `/diff/<hash>`, posts there). Claude was handed both\n * (`readPendingForWorktree`), but each view showed only its own, so a comment\n * made on one wasn't there on the other. Each view now lists its own store\n * first and the linked ones after: the session's view its scope stores, a\n * scope's view the session(s) whose worktree it covers.\n *\n * The stores stay separate — a new `wd -c` run clears its scope's comments\n * (`ensureScope`), which must never clear the session's.\n */\n\n/** A session as these lookups need it: its id (its store's) and its worktree paths. */\nexport interface LinkedSession {\n id: string;\n paths: string[];\n}\n\nexport const linkedSession = (s: WorktreeSession): LinkedSession => ({ id: sessionIdFor(s), paths: s.paths });\n\n/** The session's store, then every scope store over its paths. */\nexport function sessionLinkedStoreIds(session: LinkedSession): string[] {\n return [session.id, ...scopeStoreIdsForPaths(session.paths)];\n}\n\n/** The scope's store, then each session whose paths that scope covers (the whole worktree, or one repo of a group). */\nexport function scopeLinkedStoreIds(hash: string, sessions: LinkedSession[]): string[] {\n const own = `scope-${hash}`;\n return [own, ...new Set(sessions.filter((s) => scopeStoreIdsForPaths(s.paths).includes(own)).map((s) => s.id))];\n}\n\nexport type Read = (storeId: string) => Comment[];\n\n/** These stores read in one query (they're mostly empty: a scope store has rows only once its page was commented on). */\nexport function readerFor(storeIds: string[]): Read {\n const rows = readStoresComments(storeIds);\n return (id) => rows.get(id) ?? [];\n}\n\n/**\n * Every comment the view shows: the first store's whole, the linked ones'\n * without their drafts (a draft is that view's unsent review; this view's\n * Submit wouldn't send it). Oldest first, each comment once.\n */\nexport function linkedComments(storeIds: string[], read: Read = readerFor(storeIds)): Comment[] {\n const seen = new Set<string>();\n const out: Comment[] = [];\n storeIds.forEach((id, i) => {\n for (const c of read(id)) {\n if (seen.has(c.id) || (i > 0 && c.status === 'draft')) continue;\n seen.add(c.id);\n out.push(c);\n }\n });\n return out.sort((a, b) => a.createdAt.localeCompare(b.createdAt));\n}\n\n/** Which of these stores holds the comment (a delete, a resolve or a reply acts there), or null. */\nexport function storeHolding(storeIds: string[], commentId: string, read: Read = readerFor(storeIds)): string | null {\n return storeIds.find((id) => read(id).some((c) => c.id === commentId)) ?? null;\n}\n\n/** Who to tell a store changed: the sessions and scopes whose views list it. */\nexport function viewersOf(storeId: string, sessions: LinkedSession[]): { sessionIds: string[]; scopeHashes: string[] } {\n if (storeId.startsWith('scope-')) {\n return {\n sessionIds: [...new Set(sessions.filter((s) => scopeStoreIdsForPaths(s.paths).includes(storeId)).map((s) => s.id))],\n scopeHashes: [storeId.slice('scope-'.length)],\n };\n }\n const session = sessions.find((s) => s.id === storeId);\n return {\n sessionIds: [storeId],\n scopeHashes: session ? scopeStoreIdsForPaths(session.paths).map((id) => id.slice('scope-'.length)) : [],\n };\n}\n\n/** How a front-end tells a view its comments changed: a session's Diff tab by id, a scope page on its own stream. */\nexport interface Tell {\n session: (sessionId: string, data: Record<string, unknown>) => void;\n scope: (scopeHash: string, data: Record<string, unknown>) => void;\n}\n\n/** A store changed: every view listing it is told (both comment routes use this, so they can't drift apart). */\nexport function announceChange(storeId: string, sessions: LinkedSession[], tell: Tell, data: Record<string, unknown>): void {\n const { sessionIds, scopeHashes } = viewersOf(storeId, sessions);\n for (const sessionId of sessionIds) tell.session(sessionId, { ...data, sessionId });\n for (const scopeHash of scopeHashes) tell.scope(scopeHash, { ...data, scopeHash });\n}\n","import { peekPty } from '../pty/pty-pool.js';\nimport { sessionStatusView } from '../status/turn-activity.js';\nimport type { ActivityState } from '../api-types.js';\nimport { readSessionActivity } from './session-activity.js';\nimport { linkedComments, sessionLinkedStoreIds } from '../comments/linked-stores.js';\nimport { readPendingForWorktree } from '../comments/pending-delivery.js';\nimport type { WorktreeSession } from './history.js';\nimport { readStatus, type EffectiveStatus } from '../status/session-status.js';\n\nexport type { PtyStatus } from '../api-types.js';\nimport type { PtyStatus } from '../api-types.js';\n\nexport interface SessionMeta {\n draftCount: number;\n /** Open comment threads (top-level, not resolved): the Diff tab's badge. */\n commentCount: number;\n /** Comments authored by claude — used by the client to compute unread. */\n claudeCount: number;\n /** Set when *our* PTY pool has a live Claude for this session. Doesn't\n * catch external terminals — `activityState` does. */\n ptyStatus: PtyStatus;\n /** ms since epoch of Claude's last write across this worktree, or null. */\n lastActivity: number | null;\n /** Derived from `lastActivity`: 'active' (≤30 s), 'open' (≤5 min), 'stale'. */\n activityState: ActivityState;\n /** Published user comments not yet surfaced to Claude via the\n * UserPromptSubmit hook. Drops to zero after Claude takes its next turn. */\n pendingForClaudeCount: number;\n /** Hook-driven agent status for the attention inbox; null until the\n * session's Claude has fired a hook under a full `work web`. */\n attention: EffectiveStatus | null;\n}\n\n/**\n * Cheap per-session metadata. Goes through the file-store cache so badge\n * counts reflect in-flight writes that haven't yet hit disk — reading the\n * raw JSON behind the cache's back produced stale counts under load.\n *\n * `session` is required because we need the worktree paths to look up\n * Claude's transcript directory (the sessionId hash alone isn't enough).\n */\nexport function readSessionMeta(sessionId: string, session: WorktreeSession): SessionMeta {\n // As the Diff tab lists them: with those made on the browser diff page (linked-stores.ts).\n const comments = linkedComments(sessionLinkedStoreIds({ id: sessionId, paths: session.paths }));\n let drafts = 0;\n let claude = 0;\n let open = 0;\n for (const c of comments) {\n if (c.status === 'draft') drafts++;\n if (c.author === 'claude') claude++;\n // The Diff tab's badge: threads still open. One Claude worked through is resolved (resolveAddressed).\n if (!c.parentId && !c.resolved) open++;\n }\n const activity = readSessionActivity(session);\n // What the hooks will hand over: the session's and its scopes' (readPendingForWorktree), as the badges count.\n const pending = readPendingForWorktree(session, sessionId).length;\n const status = readStatus(sessionId);\n return {\n draftCount: drafts,\n commentCount: open,\n claudeCount: claude,\n ptyStatus: peekPty(sessionId) ? 'running' : 'idle',\n lastActivity: activity.lastActivity,\n activityState: activity.state,\n pendingForClaudeCount: pending,\n attention: status ? sessionStatusView(status, session, activity.lastActivity ?? 0) : null,\n };\n}\n","import { readJsonlTail } from './jsonl.js';\nimport { agentOf } from '../agents/index.js';\nimport type { ConversationEntry } from '../agents/types.js';\nimport type { ContextUsage } from '../api-types.js';\nimport type { WorktreeSession } from '../sessions/session-types.js';\n\nexport type { ContextUsage } from '../api-types.js';\n\n/**\n * How full a session's conversation is. Every assistant message in the\n * transcript carries the token usage of the request that produced it, so\n * the newest one says how big the context is now: its prompt (input +\n * cache reads + cache writes) plus its reply, which the next turn carries.\n * Near the window Claude Code compacts the conversation, and answers get\n * worse before that — the dashboard shows when to start fresh.\n */\n\n/** From conversation entries (oldest first): the newest main-thread usage, in the agent's window (`window`). */\nexport function contextUsageFrom(\n entries: readonly ConversationEntry[],\n window: (model: string | undefined, used: number) => number,\n): ContextUsage | null {\n for (let i = entries.length - 1; i >= 0; i--) {\n const e = entries[i];\n // Subagent (Task) turns run in their own context.\n if (e.role !== 'agent' || e.sidechain || !e.usage) continue;\n const used = e.usage.prompt + e.usage.reply;\n if (used === 0) continue;\n return { used, window: window(e.model, used), ...(e.model ? { model: e.model } : {}) };\n }\n return null;\n}\n\n// Claude Code's transcript files, for the callers that still read Claude's own records (turn activity): agents/claude-files.ts.\nexport type { ConversationFile as TranscriptFile } from '../agents/types.js';\n\n/** Only the tail is read — a usage line is always near the end. */\nconst USAGE_TAIL_BYTES = 64 * 1024;\nconst cache = new Map<string, { key: string; usage: ContextUsage | null }>();\n\n/** The session's context usage now, through its agent; re-reads a conversation only after it changed. Null when work can't read its agent's conversations. */\nexport function readContextUsage(session: WorktreeSession): ContextUsage | null {\n const conv = agentOf(session).conversation;\n if (!conv) return null;\n let t: { file: string; size: number; mtimeMs: number } | null = null;\n for (const f of conv.files(session)) if (!t || f.mtimeMs > t.mtimeMs) t = f;\n if (!t) return null;\n const key = `${t.file}:${t.size}:${t.mtimeMs}`;\n const id = session.paths.join('|');\n const hit = cache.get(id);\n if (hit?.key === key) return hit.usage;\n const usage = contextUsageFrom(conv.entries(readJsonlTail(t.file, USAGE_TAIL_BYTES)), conv.contextWindow);\n cache.set(id, { key, usage });\n return usage;\n}\n","import fs from 'node:fs';\nimport { promptsSince } from './digest.js';\nimport { agentOf } from '../agents/index.js';\nimport type { ConversationEntry } from '../agents/types.js';\nimport type { WorktreeSession } from '../sessions/session-types.js';\n\n/**\n * A human name for a session, beside its branch: the name you gave it, or\n * else what you first asked its Claude (\"Rotate the terminal encryption\n * keys\"), or else its Jira key. Worked out when read — the first prompt is\n * read from the start of its oldest transcript, cached per file — so a GET\n * writes nothing; only a rename is stored.\n */\n\nconst TITLE_CHARS = 80;\nconst HEAD_BYTES = 256 * 1024;\nconst cache = new Map<string, { size: number; title: string | null }>();\n\n/** The first prompt in a conversation file (read from its start), its lines read by `toEntries` (the agent's). */\nexport function firstPromptOf(file: string, toEntries: (lines: readonly unknown[]) => ConversationEntry[]): string | null {\n let size: number;\n try {\n size = fs.statSync(file).size;\n } catch {\n return null;\n }\n const hit = cache.get(file);\n // The start of a file doesn't change as it grows, unless it was replaced\n // (smaller). \"No prompt in it\" holds as long as the file is the same, or\n // its whole head was read already: re-reading 256 KB of every such\n // transcript on every session-list build cost the most of all.\n if (hit && size >= hit.size && (hit.title !== null || size === hit.size || hit.size >= HEAD_BYTES)) return hit.title;\n let text: string;\n try {\n const fd = fs.openSync(file, 'r');\n try {\n const buf = Buffer.alloc(Math.min(size, HEAD_BYTES));\n fs.readSync(fd, buf, 0, buf.length, 0);\n text = buf.toString('utf8');\n } finally {\n fs.closeSync(fd);\n }\n } catch {\n return null;\n }\n const lines: unknown[] = [];\n for (const line of text.split('\\n')) {\n try {\n lines.push(JSON.parse(line));\n } catch {\n /* the last, cut-off line */\n }\n }\n const first = promptsSince([toEntries(lines)], 0)[0]?.text ?? null;\n const readable = first ? titleText(first) : null;\n const title = readable ? clip(readable) : null;\n cache.set(file, { size, title });\n return title;\n}\n\nconst clip = (s: string) => (s.length > TITLE_CHARS ? s.slice(0, TITLE_CHARS - 1).trimEnd() + '…' : s);\n\n/**\n * A prompt as a name: what you wrote, without markup. A pasted block\n * (`<pasted_content …>…</pasted_content>`, a log or code you pasted) is left\n * out when you also wrote something; a prompt that is only a paste keeps its\n * text. Other tags are dropped, their text kept. Null when nothing is left.\n */\nexport function titleText(prompt: string): string | null {\n const flat = (s: string) =>\n s\n .replace(/<\\/?[A-Za-z][\\w-]*(?:\\s[^>]*)?>/g, ' ')\n .replace(/\\s+/g, ' ')\n .trim();\n const outside = flat(prompt.replace(/<pasted_content\\b[^>]*>[\\s\\S]*?<\\/pasted_content>/g, ' '));\n const text = outside || flat(prompt);\n return text ? text : null;\n}\n\n/** The session's name: yours, else its first prompt, else its Jira key. */\nexport function sessionTitle(s: WorktreeSession, fallbackPrompt?: string | null): string | null {\n if (s.title?.trim()) return s.title.trim();\n const conv = agentOf(s).conversation;\n const oldestFirst = (conv?.files(s) ?? []).sort((a, b) => a.mtimeMs - b.mtimeMs);\n for (const t of oldestFirst) {\n const p = firstPromptOf(t.file, conv!.entries);\n if (p) return p;\n }\n const fallback = fallbackPrompt ? titleText(fallbackPrompt) : null;\n if (fallback) return clip(fallback);\n return s.jiraKey ?? null;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,OAAOA,SAAQ;AAKf,OAAO,UAAU;;;ACmBV,IAAM,gBAAgB,CAAC,OAAuC,EAAE,IAAI,aAAa,CAAC,GAAG,OAAO,EAAE,MAAM;AAGpG,SAAS,sBAAsB,SAAkC;AACtE,SAAO,CAAC,QAAQ,IAAI,GAAG,sBAAsB,QAAQ,KAAK,CAAC;AAC7D;AAGO,SAAS,oBAAoB,MAAc,UAAqC;AACrF,QAAM,MAAM,SAAS,IAAI;AACzB,SAAO,CAAC,KAAK,GAAG,IAAI,IAAI,SAAS,OAAO,CAAC,MAAM,sBAAsB,EAAE,KAAK,EAAE,SAAS,GAAG,CAAC,EAAE,IAAI,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;AAChH;AAKO,SAAS,UAAU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EAAE,SAAS,EAAE,IAAI,EAAE,cAAc,IAAI,MAAM,OAAO;AAC1F,UAAM,MAAM,KAAK,IAAI,EAAE;AACvB,QAAI,KAAK,QAAQ,IAAK,QAAO,IAAI;AACjC,UAAM,MAAM,MAAM;AAClB,SAAK,IAAI,IAAI,EAAE,KAAK,IAAI,CAAC;AACzB,WAAO;AAAA,EACT;AACF;","names":["fs","cache","fs"]}
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-LNHSBM4L.js";
5
5
  import {
6
6
  knownAgents
7
- } from "./chunk-AQHGYLVN.js";
7
+ } from "./chunk-Y2DBNXZH.js";
8
8
 
9
9
  // src/commands/install-skills.ts
10
10
  import chalk from "chalk";
@@ -44,4 +44,4 @@ export {
44
44
  runInstallSkills,
45
45
  installSkillsCommand
46
46
  };
47
- //# sourceMappingURL=chunk-RIKAEVFL.js.map
47
+ //# sourceMappingURL=chunk-7XKIRMS4.js.map
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  DEFAULT_ACCOUNT
4
- } from "./chunk-INI6TEYT.js";
4
+ } from "./chunk-FLY3VR6B.js";
5
5
  import {
6
6
  report
7
7
  } from "./chunk-AU27USPZ.js";
@@ -179,4 +179,4 @@ export {
179
179
  configDirEnv,
180
180
  accountEnv
181
181
  };
182
- //# sourceMappingURL=chunk-PDOG3O4N.js.map
182
+ //# sourceMappingURL=chunk-7ZL3GJGY.js.map
@@ -5,18 +5,18 @@ import {
5
5
  import {
6
6
  hostForRepo,
7
7
  knownHosts
8
- } from "./chunk-MJZ6XOXR.js";
8
+ } from "./chunk-ULI3NB4J.js";
9
9
  import {
10
10
  defaultRunner
11
11
  } from "./chunk-MKQ7IA6U.js";
12
12
  import {
13
13
  DEFAULT_HOST,
14
14
  loadHistory
15
- } from "./chunk-7CABBTGX.js";
15
+ } from "./chunk-FLQOSWVR.js";
16
16
  import {
17
17
  getConfigPath,
18
18
  loadConfig
19
- } from "./chunk-INI6TEYT.js";
19
+ } from "./chunk-FLY3VR6B.js";
20
20
  import {
21
21
  atomicWriteFile,
22
22
  withFileLock
@@ -138,4 +138,4 @@ export {
138
138
  checkTools,
139
139
  setupState
140
140
  };
141
- //# sourceMappingURL=chunk-Z3KFELLM.js.map
141
+ //# sourceMappingURL=chunk-A3R3VO6G.js.map
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-ZSHWP2VS.js";
10
10
  import {
11
11
  loadHistory
12
- } from "./chunk-7CABBTGX.js";
12
+ } from "./chunk-FLQOSWVR.js";
13
13
  import {
14
14
  sessionIdFor,
15
15
  tx,
@@ -17,7 +17,7 @@ import {
17
17
  } from "./chunk-RRNIJ7YO.js";
18
18
  import {
19
19
  checkedOutBranch
20
- } from "./chunk-AQHGYLVN.js";
20
+ } from "./chunk-Y2DBNXZH.js";
21
21
 
22
22
  // src/core/comments/pending-delivery.ts
23
23
  import fs from "fs";
@@ -186,4 +186,4 @@ export {
186
186
  claimForDelivery,
187
187
  formatPendingForPrompt
188
188
  };
189
- //# sourceMappingURL=chunk-N4ADXF5N.js.map
189
+ //# sourceMappingURL=chunk-AAOAVXBF.js.map
@@ -1,13 +1,13 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  isSessionCi
4
- } from "./chunk-MGKCH7SE.js";
4
+ } from "./chunk-MQQADIRH.js";
5
5
  import {
6
6
  defaultHost,
7
7
  hostForOrigin,
8
8
  hostOfThread,
9
9
  knownHosts
10
- } from "./chunk-MJZ6XOXR.js";
10
+ } from "./chunk-ULI3NB4J.js";
11
11
  import {
12
12
  MAX_THREAD_BODY,
13
13
  isThreadCode,
@@ -19,7 +19,7 @@ import {
19
19
  } from "./chunk-AGRUEZQX.js";
20
20
  import {
21
21
  sessionRepos
22
- } from "./chunk-7CABBTGX.js";
22
+ } from "./chunk-FLQOSWVR.js";
23
23
  import {
24
24
  json,
25
25
  sessionIdFor,
@@ -28,10 +28,10 @@ import {
28
28
  } from "./chunk-RRNIJ7YO.js";
29
29
  import {
30
30
  checkedOutBranch
31
- } from "./chunk-AQHGYLVN.js";
31
+ } from "./chunk-Y2DBNXZH.js";
32
32
  import {
33
33
  loadConfig
34
- } from "./chunk-INI6TEYT.js";
34
+ } from "./chunk-FLY3VR6B.js";
35
35
 
36
36
  // src/core/pr/pr-replies.ts
37
37
  import fs from "fs";
@@ -306,4 +306,4 @@ export {
306
306
  draftReply,
307
307
  retireResolvedReplies
308
308
  };
309
- //# sourceMappingURL=chunk-S2TSH66J.js.map
309
+ //# sourceMappingURL=chunk-AKDTLWWD.js.map
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  owedToYou,
4
4
  stageWaiting
5
- } from "./chunk-7CABBTGX.js";
5
+ } from "./chunk-FLQOSWVR.js";
6
6
 
7
7
  // src/core/sessions/session-view.ts
8
8
  var RECENT_MS = 24 * 36e5;
@@ -61,7 +61,8 @@ var OWED_LONG = {
61
61
  thread: (n) => `${n} review ${n === 1 ? "thread" : "threads"} with no answer`,
62
62
  conflict: (n) => n === 1 ? "a merge conflict" : `${n} PRs with merge conflicts`,
63
63
  checks: (n) => n === 1 ? "checks failing" : `${n} PRs with checks failing`,
64
- merge: () => "ready to merge"
64
+ merge: () => "ready to merge",
65
+ review: () => "its review finished: open its Review tab"
65
66
  };
66
67
  function waitingOnOthers(s) {
67
68
  return !owedToYou(s).length && stageWaiting(s.prStage);
@@ -76,4 +77,4 @@ export {
76
77
  OWED_LONG,
77
78
  waitingOnOthers
78
79
  };
79
- //# sourceMappingURL=chunk-RZUXQ7ZP.js.map
80
+ //# sourceMappingURL=chunk-BPAV2PIE.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/core/sessions/session-view.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 /** Its Claude was stopped while idle and hasn't run since (SessionWire.asleep). */\n asleep?: 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; or idle\n * with a background command it started still running\n * asleep — its Claude was stopped while idle (idle sleep, `work stop`)\n * and hasn't run since: opening it starts it again\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'\n | 'restoring'\n | 'needs_input'\n | 'done'\n | 'working'\n | 'background'\n | 'asleep'\n | 'quiet'\n | 'active'\n | 'open'\n | 'recent'\n | '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 // Idle with a background command of its still running (a build, tests, a dev server): not asleep, not idle.\n if (a.background) return 'background';\n }\n // A finished turn you haven't looked at is yours to review, not Claude's state: the blue \"review\" badge says it\n // (owedToYou's 'turn'); the icon says what its Claude is — idle, or asleep.\n if (s.asleep) return 'asleep';\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 asleep: 'Asleep',\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: the Inbox's Done section. On a row it's the blue review badge, beside what its Claude is now.\",\n working: 'Its Claude is working on your last instruction right now.',\n background:\n 'Its Claude finished its turn, and something it started is still at work: a background agent, or a background command (a build, tests, a dev server). Its prompt is free: you can talk to it. The result comes back as a new turn.',\n asleep:\n 'Its Claude was stopped to free memory: idle for a while, nothing attached, nothing of it still running. Opening the session starts it again, where it left off.',\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 'asleep',\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 'asleep':\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 turn: () => 'review',\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 turn: () => 'a finished turn to review',\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\", \"review\". */\n text: string;\n /** What it leads with: a finished turn to review is blue (Done's colour), the rest pink. */\n kind: Owed['kind'];\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 kind: first.kind,\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"],"mappings":";;;;;;;AAiEO,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,Q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AO,MAAM,IAAI,qBAAqB,GAAG,CAAC;AAAA,EACrD,QAAQ,CAAC,MAAO,MAAM,IAAI,mBAAmB,GAAG,CAAC;AAAA,EACjD,OAAO,MAAM;AACf;AAwBO,SAAS,gBAAgB,GAAyB;AACvD,SAAO,CAAC,UAAU,CAAC,EAAE,UAAU,aAAa,EAAE,OAAO;AACvD;","names":[]}
1
+ {"version":3,"sources":["../src/core/sessions/session-view.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 /** Its Claude was stopped while idle and hasn't run since (SessionWire.asleep). */\n asleep?: 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; or idle\n * with a background command it started still running\n * asleep — its Claude was stopped while idle (idle sleep, `work stop`)\n * and hasn't run since: opening it starts it again\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'\n | 'restoring'\n | 'needs_input'\n | 'done'\n | 'working'\n | 'background'\n | 'asleep'\n | 'quiet'\n | 'active'\n | 'open'\n | 'recent'\n | '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 // Idle with a background command of its still running (a build, tests, a dev server): not asleep, not idle.\n if (a.background) return 'background';\n }\n // A finished turn you haven't looked at is yours to review, not Claude's state: the blue \"review\" badge says it\n // (owedToYou's 'turn'); the icon says what its Claude is — idle, or asleep.\n if (s.asleep) return 'asleep';\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 asleep: 'Asleep',\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: the Inbox's Done section. On a row it's the blue review badge, beside what its Claude is now.\",\n working: 'Its Claude is working on your last instruction right now.',\n background:\n 'Its Claude finished its turn, and something it started is still at work: a background agent, or a background command (a build, tests, a dev server). Its prompt is free: you can talk to it. The result comes back as a new turn.',\n asleep:\n 'Its Claude was stopped to free memory: idle for a while, nothing attached, nothing of it still running. Opening the session starts it again, where it left off.',\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 'asleep',\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 'asleep':\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 turn: () => 'review',\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 // \"review\" is a finished turn's word already (its diff to review): the session's own review says what it is.\n review: () => 'review ready',\n};\nexport const OWED_LONG: Record<Owed['kind'], (n: number) => string> = {\n turn: () => 'a finished turn to review',\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 review: () => 'its review finished: open its Review tab',\n};\n\nexport interface OwedBadge {\n /** \"1 reply\", \"merge +1\", \"review\". */\n text: string;\n /** What it leads with: a finished turn to review is blue (Done's colour), the rest pink. */\n kind: Owed['kind'];\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 kind: first.kind,\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"],"mappings":";;;;;;;AAiEO,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;AAEhE,QAAI,EAAE,WAAY,QAAO;AAAA,EAC3B;AAGA,MAAI,EAAE,OAAQ,QAAO;AACrB,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,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,OAAO;AACT;AA2CO,IAAM,eAAe;AAMrB,IAAM,YAAuC;AAAA,EAClD,KAAK;AAAA,EACL,MAAM;AAAA,EACN,OAAO;AACT;AAEO,IAAM,UAAU,IAAI,KAAK;AAIzB,SAAS,UAAU,GAAgB,MAAc,KAAK,IAAI,GAAc;AAC7E,QAAM,OAAO,cAAc,GAAG,GAAG;AACjC,MAAI,UAAU,CAAC,EAAE,OAAQ,QAAO;AAChC,MACE,SAAS,iBACT,SAAS,UACT,SAAS,aACT,SAAS,gBACT,SAAS,eACT,SAAS,eACT,SAAS,YACT,SAAS;AAET,WAAO;AACT,QAAM,MAAM,MAAM,KAAK,MAAM,aAAa,CAAC,CAAC;AAC5C,MAAI,MAAM,UAAW,QAAO;AAC5B,SAAO,MAAM,UAAU,SAAS;AAClC;AAyDO,IAAM,YAAyD;AAAA,EACpE,MAAM,MAAM;AAAA,EACZ,OAAO,CAAC,MAAM,GAAG,CAAC,IAAI,MAAM,IAAI,UAAU,SAAS;AAAA,EACnD,QAAQ,CAAC,MAAM,GAAG,CAAC,WAAW,MAAM,IAAI,WAAW,SAAS;AAAA,EAC5D,UAAU,CAAC,MAAO,MAAM,IAAI,qBAAqB,GAAG,CAAC;AAAA,EACrD,QAAQ,CAAC,MAAO,MAAM,IAAI,mBAAmB,GAAG,CAAC;AAAA,EACjD,OAAO,MAAM;AAAA,EACb,QAAQ,MAAM;AAChB;AAwBO,SAAS,gBAAgB,GAAyB;AACvD,SAAO,CAAC,UAAU,CAAC,EAAE,UAAU,aAAa,EAAE,OAAO;AACvD;","names":[]}
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  hostOfPrUrl
4
- } from "./chunk-MJZ6XOXR.js";
4
+ } from "./chunk-ULI3NB4J.js";
5
5
  import {
6
6
  loadHistory,
7
7
  parsePrLink
8
- } from "./chunk-7CABBTGX.js";
8
+ } from "./chunk-FLQOSWVR.js";
9
9
  import {
10
10
  json,
11
11
  sessionIdFor,
@@ -164,4 +164,4 @@ export {
164
164
  blockRefFrom,
165
165
  blockedPrState
166
166
  };
167
- //# sourceMappingURL=chunk-3IUD7OOG.js.map
167
+ //# sourceMappingURL=chunk-BXVBNYQT.js.map
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  findSessionForCwd
4
- } from "./chunk-N4ADXF5N.js";
4
+ } from "./chunk-AAOAVXBF.js";
5
5
  import {
6
6
  sessionIdFor
7
7
  } from "./chunk-RRNIJ7YO.js";
@@ -40,4 +40,4 @@ export {
40
40
  agentsBySession,
41
41
  summarizeAgents
42
42
  };
43
- //# sourceMappingURL=chunk-NR4IKXRO.js.map
43
+ //# sourceMappingURL=chunk-CWWWZRMN.js.map
@@ -1,16 +1,16 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  defaultCleanupDeps
4
- } from "./chunk-UHWJXERU.js";
4
+ } from "./chunk-5U3CSRV5.js";
5
5
  import {
6
6
  agentsBySession
7
- } from "./chunk-NR4IKXRO.js";
7
+ } from "./chunk-CWWWZRMN.js";
8
8
  import {
9
9
  normPath
10
10
  } from "./chunk-AKMPF72Y.js";
11
11
  import {
12
12
  hostForRepo
13
- } from "./chunk-MJZ6XOXR.js";
13
+ } from "./chunk-ULI3NB4J.js";
14
14
  import {
15
15
  buildFoldersOf,
16
16
  clearBuildFolders
@@ -21,16 +21,16 @@ import {
21
21
  import {
22
22
  loadHistory,
23
23
  sessionAliases
24
- } from "./chunk-7CABBTGX.js";
24
+ } from "./chunk-FLQOSWVR.js";
25
25
  import {
26
26
  sessionIdFor
27
27
  } from "./chunk-RRNIJ7YO.js";
28
28
  import {
29
29
  liveAgents
30
- } from "./chunk-AQHGYLVN.js";
30
+ } from "./chunk-Y2DBNXZH.js";
31
31
  import {
32
32
  loadConfig
33
- } from "./chunk-INI6TEYT.js";
33
+ } from "./chunk-FLY3VR6B.js";
34
34
 
35
35
  // src/core/cleanup/build-folders-scan.ts
36
36
  import fs from "fs";
@@ -253,4 +253,4 @@ export {
253
253
  deleteMergedBranches,
254
254
  defaultBranchTidyDeps
255
255
  };
256
- //# sourceMappingURL=chunk-VB6HRYG6.js.map
256
+ //# sourceMappingURL=chunk-DPO6I7OR.js.map
@@ -6,7 +6,7 @@ import {
6
6
  noteBranchFacts,
7
7
  readSessionBranches,
8
8
  repoNameOf
9
- } from "./chunk-OIC2PWUH.js";
9
+ } from "./chunk-LKJLUSYR.js";
10
10
  import {
11
11
  defaultRunner
12
12
  } from "./chunk-MKQ7IA6U.js";
@@ -14,13 +14,13 @@ import {
14
14
  bestEffort,
15
15
  logSwallowed,
16
16
  stageOfPr
17
- } from "./chunk-7CABBTGX.js";
17
+ } from "./chunk-FLQOSWVR.js";
18
18
  import {
19
19
  sessionIdFor
20
20
  } from "./chunk-RRNIJ7YO.js";
21
21
  import {
22
22
  checkedOutBranch
23
- } from "./chunk-AQHGYLVN.js";
23
+ } from "./chunk-Y2DBNXZH.js";
24
24
 
25
25
  // src/core/stacks/branch-facts.ts
26
26
  async function repoBase(repo, run = defaultRunner) {
@@ -242,4 +242,4 @@ export {
242
242
  createSessionBranches,
243
243
  sessionBranchesNow
244
244
  };
245
- //# sourceMappingURL=chunk-5IEFHZWE.js.map
245
+ //# sourceMappingURL=chunk-DWEW7I53.js.map
@@ -4,11 +4,11 @@ import {
4
4
  } from "./chunk-AH5TM3NB.js";
5
5
  import {
6
6
  spawnSpecFor
7
- } from "./chunk-QG46R3C4.js";
7
+ } from "./chunk-UY5J2KY2.js";
8
8
  import {
9
9
  PtyHostClient,
10
10
  ensureHost
11
- } from "./chunk-G5AAYK56.js";
11
+ } from "./chunk-VLUME72O.js";
12
12
  import {
13
13
  sessionIdFor
14
14
  } from "./chunk-RRNIJ7YO.js";
@@ -116,4 +116,4 @@ async function attachSession(session, launch = {}) {
116
116
  export {
117
117
  attachSession
118
118
  };
119
- //# sourceMappingURL=chunk-TNCSXIXB.js.map
119
+ //# sourceMappingURL=chunk-EHUKDUNJ.js.map
@@ -1,17 +1,17 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  computeRangeDiff
4
- } from "./chunk-R2JBLEOC.js";
4
+ } from "./chunk-XSI4WZIX.js";
5
5
  import {
6
6
  loadManifest
7
- } from "./chunk-7CABBTGX.js";
7
+ } from "./chunk-FLQOSWVR.js";
8
8
  import {
9
9
  agentSettings,
10
10
  internalAgent
11
- } from "./chunk-AQHGYLVN.js";
11
+ } from "./chunk-Y2DBNXZH.js";
12
12
  import {
13
13
  internalRunEnv
14
- } from "./chunk-DQWZDA2E.js";
14
+ } from "./chunk-Z3T5FWM6.js";
15
15
  import {
16
16
  killTree
17
17
  } from "./chunk-G2V2V5UC.js";
@@ -232,4 +232,4 @@ export {
232
232
  runInternalReadOnly,
233
233
  summarizeCheckpoint
234
234
  };
235
- //# sourceMappingURL=chunk-EZPZNHEU.js.map
235
+ //# sourceMappingURL=chunk-ERXXU72V.js.map