@moberg_hr/work-tree 2.6.1 → 2.6.3

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 (242) hide show
  1. package/README.md +1 -1
  2. package/dist/{add-repo-VVECUDF3.js → add-repo-VAGLNLIJ.js} +16 -16
  3. package/dist/{answer-ZB45WLRZ.js → answer-4CUJSRIP.js} +11 -11
  4. package/dist/{attach-VSJ4LGJD.js → attach-GLCZILIH.js} +14 -14
  5. package/dist/bin.js +5 -5
  6. package/dist/{block-IK2JJ5BZ.js → block-SC5IZJMA.js} +11 -11
  7. package/dist/{broadcast-2TIITC7F.js → broadcast-VFY5UFYA.js} +8 -8
  8. package/dist/{catchup-MSV2CLUE.js → catchup-4EBF6RZ6.js} +14 -14
  9. package/dist/{chunk-DL4NHA5U.js → chunk-2MAGDOLP.js} +10 -10
  10. package/dist/{chunk-EBLCO5JI.js → chunk-35VLAPL2.js} +2 -2
  11. package/dist/{chunk-V2NF62H2.js → chunk-3HJASVHJ.js} +3 -3
  12. package/dist/{chunk-GP4OOXKW.js → chunk-4IEQ7LY4.js} +4 -4
  13. package/dist/{chunk-2OS3DCAF.js → chunk-4LFJM4UN.js} +8 -8
  14. package/dist/{chunk-J5J4RR25.js → chunk-4RDAWJZY.js} +3 -3
  15. package/dist/{chunk-XHOYJP3H.js → chunk-4YCWUHVE.js} +4 -4
  16. package/dist/chunk-4YCWUHVE.js.map +1 -0
  17. package/dist/{chunk-6SJOM62D.js → chunk-56P7G2DI.js} +2 -2
  18. package/dist/{chunk-NJZJQGYL.js → chunk-72U52KTJ.js} +10 -10
  19. package/dist/{chunk-FRCV6NWT.js → chunk-75MIXOUK.js} +2 -2
  20. package/dist/{chunk-R2VDNMRX.js → chunk-ANWA4Z56.js} +12 -12
  21. package/dist/{chunk-R35P4DNK.js → chunk-C6STZ6HD.js} +4 -4
  22. package/dist/{chunk-R2SR3PER.js → chunk-CGVYVTGF.js} +2 -2
  23. package/dist/{chunk-OESAI3XS.js → chunk-CRPV5YCC.js} +2 -2
  24. package/dist/{chunk-ELHWFKY2.js → chunk-CXCMATZG.js} +15 -10
  25. package/dist/{chunk-ELHWFKY2.js.map → chunk-CXCMATZG.js.map} +1 -1
  26. package/dist/{chunk-NWUNF4YG.js → chunk-DAQCIJHW.js} +3 -3
  27. package/dist/{chunk-VGQV4LX7.js → chunk-EUAJT7FS.js} +2 -2
  28. package/dist/{chunk-XZ5DA5X4.js → chunk-EYUBVLPF.js} +2 -2
  29. package/dist/{chunk-O27BJXBR.js → chunk-G5W6D7KQ.js} +3 -3
  30. package/dist/{chunk-AKGDIBSE.js → chunk-G635EV2D.js} +2 -2
  31. package/dist/{chunk-AVJHFI5U.js → chunk-G7TS5DCS.js} +4 -4
  32. package/dist/{chunk-L7OQ7O4K.js → chunk-GTVQYGY3.js} +3 -3
  33. package/dist/{chunk-O75H5FNU.js → chunk-H756AOOW.js} +5 -5
  34. package/dist/{chunk-6SLZK5GD.js → chunk-I5V34WWS.js} +5 -5
  35. package/dist/{chunk-FXHTSSV2.js → chunk-JF72AS6T.js} +3 -3
  36. package/dist/{chunk-KGMEAW2F.js → chunk-JUMZ5MTU.js} +11 -6
  37. package/dist/chunk-JUMZ5MTU.js.map +1 -0
  38. package/dist/{chunk-OUFJZ264.js → chunk-KWRE6HQN.js} +4 -4
  39. package/dist/{chunk-VTERY2TQ.js → chunk-LJ3UVV4F.js} +4 -4
  40. package/dist/chunk-M2ZJ64JV.js +9 -0
  41. package/dist/chunk-MYDQNX7W.js +158 -0
  42. package/dist/chunk-MYDQNX7W.js.map +1 -0
  43. package/dist/{chunk-VZVIP6SS.js → chunk-NW2ZXAJJ.js} +5 -5
  44. package/dist/{chunk-CGJGWALF.js → chunk-OUUDQA7O.js} +2 -2
  45. package/dist/{chunk-JUI6JND2.js → chunk-OUWKEJEC.js} +4 -4
  46. package/dist/{chunk-24HYZTJV.js → chunk-P2THO7D7.js} +98 -5
  47. package/dist/chunk-P2THO7D7.js.map +1 -0
  48. package/dist/{chunk-QXQ6YB5M.js → chunk-PDYO56JU.js} +3 -3
  49. package/dist/{chunk-MN5T5HPT.js → chunk-QCFINFXO.js} +4 -4
  50. package/dist/{chunk-UL5TB4LY.js → chunk-QKF7CNIM.js} +2 -2
  51. package/dist/{chunk-EEZGYD3Z.js → chunk-QXJ4FILG.js} +53 -53
  52. package/dist/{chunk-BE2KPUJX.js → chunk-R5IJHLHA.js} +8 -8
  53. package/dist/{chunk-A53IRCOO.js → chunk-RYEPQLXQ.js} +1 -1
  54. package/dist/chunk-RYEPQLXQ.js.map +1 -0
  55. package/dist/{chunk-NJT26JI3.js → chunk-SMZ7W34L.js} +2 -2
  56. package/dist/{chunk-KGZRNWEN.js → chunk-TJFX5BWH.js} +2 -2
  57. package/dist/{chunk-3BHHT63K.js → chunk-UNEHT6FI.js} +3 -3
  58. package/dist/{chunk-R3E2VXO3.js → chunk-VDYX4R6U.js} +7 -7
  59. package/dist/{chunk-JG3J5TLB.js → chunk-VESYLAVA.js} +69 -23
  60. package/dist/chunk-VESYLAVA.js.map +1 -0
  61. package/dist/{chunk-S5RPQFWS.js → chunk-VIWPTRRR.js} +5 -5
  62. package/dist/{chunk-OPEB5JCB.js → chunk-VMLRIO4T.js} +5 -5
  63. package/dist/{chunk-V5ASWB23.js → chunk-VTLDYH3C.js} +3 -149
  64. package/dist/chunk-VTLDYH3C.js.map +1 -0
  65. package/dist/{chunk-U2MUU3TT.js → chunk-WDV6VTVI.js} +3 -3
  66. package/dist/{chunk-BDWC6RXH.js → chunk-XLAGFKJE.js} +2 -2
  67. package/dist/{chunk-4TOXX4KZ.js → chunk-YLIPAOBT.js} +7 -7
  68. package/dist/{chunk-G5PTLH3D.js → chunk-YSGXXNBL.js} +6 -3
  69. package/dist/chunk-YSGXXNBL.js.map +1 -0
  70. package/dist/{chunk-NZ7HCBSL.js → chunk-Z3NQJALE.js} +4 -3
  71. package/dist/{chunk-S4ILKUFN.js → chunk-ZGXRWL7T.js} +2 -2
  72. package/dist/{chunk-BCPH3SZM.js → chunk-ZO6MZNLI.js} +2 -2
  73. package/dist/{cleanup-RV474OWS.js → cleanup-DTOLAQAT.js} +27 -25
  74. package/dist/{cleanup-RV474OWS.js.map → cleanup-DTOLAQAT.js.map} +1 -1
  75. package/dist/cli-4CGRDNWF.js +18 -0
  76. package/dist/{command-hook-installer-PTTVCWH7.js → command-hook-installer-W7IEVT6V.js} +4 -4
  77. package/dist/{config-U7LVTPBG.js → config-3RONXBBL.js} +9 -9
  78. package/dist/{diff-V6A3E6PF.js → diff-YXYQKDJQ.js} +12 -12
  79. package/dist/{digest-HGKHWQHL.js → digest-7PESCB5B.js} +10 -10
  80. package/dist/{fork-M6BPUFHZ.js → fork-J5KH2M7V.js} +23 -23
  81. package/dist/{history-LLB37UPG.js → history-T6ZIUHE7.js} +7 -7
  82. package/dist/{hook-2XFXXOT2.js → hook-JEGFGYMA.js} +12 -12
  83. package/dist/{hydrate-WZNGM3RI.js → hydrate-UWNH7GWK.js} +9 -9
  84. package/dist/{init-RILW6IKT.js → init-RMLPXKB7.js} +9 -9
  85. package/dist/{install-skills-K3EXVLOV.js → install-skills-TFP6EHI3.js} +4 -4
  86. package/dist/install-skills-bin.js +3 -3
  87. package/dist/{list-R723GE7D.js → list-5AMTJAI6.js} +9 -9
  88. package/dist/{move-EQZOZNTD.js → move-ELVMRSM6.js} +14 -14
  89. package/dist/{note-B7OQML26.js → note-Q52DD2DT.js} +11 -11
  90. package/dist/{overlaps-AJKWBKXW.js → overlaps-NORA5U6L.js} +9 -9
  91. package/dist/{pin-C34UTZS7.js → pin-TC6X4HDA.js} +11 -11
  92. package/dist/{pr-7NO3KH4S.js → pr-NQERVORK.js} +21 -13
  93. package/dist/pr-NQERVORK.js.map +1 -0
  94. package/dist/{prune-QOTXN5QV.js → prune-TRPM4VQW.js} +26 -24
  95. package/dist/{prune-QOTXN5QV.js.map → prune-TRPM4VQW.js.map} +1 -1
  96. package/dist/{pty-host-CXGFWP4E.js → pty-host-52OZBFU5.js} +17 -12
  97. package/dist/pty-host-52OZBFU5.js.map +1 -0
  98. package/dist/{read-2QQ3MD5L.js → read-EMO5CVBL.js} +10 -10
  99. package/dist/{recent-KANIMGNZ.js → recent-XFC2CZGO.js} +8 -8
  100. package/dist/{remove-KWZZI3X6.js → remove-ISNYVVEE.js} +25 -23
  101. package/dist/{remove-KWZZI3X6.js.map → remove-ISNYVVEE.js.map} +1 -1
  102. package/dist/{report-BSETCIYQ.js → report-JEG2FKOB.js} +4 -4
  103. package/dist/{restart-EQMZSYU4.js → restart-IKVRECL5.js} +11 -11
  104. package/dist/{resume-USISTQLB.js → resume-LWDUSKDJ.js} +8 -8
  105. package/dist/{run-B5HRDSZB.js → run-TQLQ27GW.js} +7 -7
  106. package/dist/{screen-NZKAG4SG.js → screen-VSQAYCFO.js} +11 -11
  107. package/dist/{search-YEZLXNYH.js → search-MEK4ZMO6.js} +7 -7
  108. package/dist/{section-BNZF3F46.js → section-C6D5NXLG.js} +11 -11
  109. package/dist/{send-7FFX2J2A.js → send-44BXZWDO.js} +12 -12
  110. package/dist/{sessions-W3Q326V6.js → sessions-TBAG6NMG.js} +17 -17
  111. package/dist/{snooze-BOZY2UBJ.js → snooze-ZZRSF3E3.js} +10 -10
  112. package/dist/{start-IKYSNOQG.js → start-3UPW2TES.js} +11 -11
  113. package/dist/{state-NRK5CBXZ.js → state-2J4TR7IC.js} +5 -5
  114. package/dist/{status-7NN4G2V6.js → status-OEGNSHMS.js} +8 -8
  115. package/dist/{stop-Y6ZPCMEH.js → stop-UJ7XWUVZ.js} +11 -11
  116. package/dist/{sync-E3QCS4SI.js → sync-XHFJEBHL.js} +26 -24
  117. package/dist/{sync-E3QCS4SI.js.map → sync-XHFJEBHL.js.map} +1 -1
  118. package/dist/{time-OV5QUVK7.js → time-IJXREBKU.js} +12 -12
  119. package/dist/time-actions-LMJUFDDR.js +15 -0
  120. package/dist/{timesheet-UW3TUCPB.js → timesheet-L265X66U.js} +14 -14
  121. package/dist/{todo-OE62TNES.js → todo-FXPXLXXW.js} +6 -6
  122. package/dist/{tree-ZBBZ3KSM.js → tree-L5QLZCTJ.js} +21 -20
  123. package/dist/{tree-ZBBZ3KSM.js.map → tree-L5QLZCTJ.js.map} +1 -1
  124. package/dist/{update-SX3ASLLP.js → update-PCWQEFVF.js} +12 -12
  125. package/dist/{wait-S47NIZBT.js → wait-YL2ZA6OM.js} +11 -11
  126. package/dist/wd-bin.js +7 -7
  127. package/dist/web/assets/PtyView-DNqCr6rR.js +96 -0
  128. package/dist/web/assets/PtyView-DNqCr6rR.js.map +1 -0
  129. package/dist/web/assets/{index-BITgwylo.js → index-Df-7v9bC.js} +13 -13
  130. package/dist/web/assets/index-Df-7v9bC.js.map +1 -0
  131. package/dist/web/assets/{index-mBqGPwml.css → index-LBhghRtA.css} +1 -1
  132. package/dist/web/index.html +2 -2
  133. package/dist/{web-VPD4NPNC.js → web-MIPL4BC7.js} +184 -72
  134. package/dist/web-MIPL4BC7.js.map +1 -0
  135. package/npm-shrinkwrap.json +2 -2
  136. package/package.json +1 -1
  137. package/dist/chunk-24HYZTJV.js.map +0 -1
  138. package/dist/chunk-A53IRCOO.js.map +0 -1
  139. package/dist/chunk-G5PTLH3D.js.map +0 -1
  140. package/dist/chunk-JG3J5TLB.js.map +0 -1
  141. package/dist/chunk-KGMEAW2F.js.map +0 -1
  142. package/dist/chunk-V5ASWB23.js.map +0 -1
  143. package/dist/chunk-WWS6UQD5.js +0 -9
  144. package/dist/chunk-XHOYJP3H.js.map +0 -1
  145. package/dist/cli-GP3LT7GT.js +0 -18
  146. package/dist/pr-7NO3KH4S.js.map +0 -1
  147. package/dist/pty-host-CXGFWP4E.js.map +0 -1
  148. package/dist/time-actions-FLLFYEVY.js +0 -15
  149. package/dist/web/assets/PtyView-iF4TcK2S.js +0 -93
  150. package/dist/web/assets/PtyView-iF4TcK2S.js.map +0 -1
  151. package/dist/web/assets/index-BITgwylo.js.map +0 -1
  152. package/dist/web-VPD4NPNC.js.map +0 -1
  153. /package/dist/{add-repo-VVECUDF3.js.map → add-repo-VAGLNLIJ.js.map} +0 -0
  154. /package/dist/{answer-ZB45WLRZ.js.map → answer-4CUJSRIP.js.map} +0 -0
  155. /package/dist/{attach-VSJ4LGJD.js.map → attach-GLCZILIH.js.map} +0 -0
  156. /package/dist/{block-IK2JJ5BZ.js.map → block-SC5IZJMA.js.map} +0 -0
  157. /package/dist/{broadcast-2TIITC7F.js.map → broadcast-VFY5UFYA.js.map} +0 -0
  158. /package/dist/{catchup-MSV2CLUE.js.map → catchup-4EBF6RZ6.js.map} +0 -0
  159. /package/dist/{chunk-DL4NHA5U.js.map → chunk-2MAGDOLP.js.map} +0 -0
  160. /package/dist/{chunk-EBLCO5JI.js.map → chunk-35VLAPL2.js.map} +0 -0
  161. /package/dist/{chunk-V2NF62H2.js.map → chunk-3HJASVHJ.js.map} +0 -0
  162. /package/dist/{chunk-GP4OOXKW.js.map → chunk-4IEQ7LY4.js.map} +0 -0
  163. /package/dist/{chunk-2OS3DCAF.js.map → chunk-4LFJM4UN.js.map} +0 -0
  164. /package/dist/{chunk-J5J4RR25.js.map → chunk-4RDAWJZY.js.map} +0 -0
  165. /package/dist/{chunk-6SJOM62D.js.map → chunk-56P7G2DI.js.map} +0 -0
  166. /package/dist/{chunk-NJZJQGYL.js.map → chunk-72U52KTJ.js.map} +0 -0
  167. /package/dist/{chunk-FRCV6NWT.js.map → chunk-75MIXOUK.js.map} +0 -0
  168. /package/dist/{chunk-R2VDNMRX.js.map → chunk-ANWA4Z56.js.map} +0 -0
  169. /package/dist/{chunk-R35P4DNK.js.map → chunk-C6STZ6HD.js.map} +0 -0
  170. /package/dist/{chunk-R2SR3PER.js.map → chunk-CGVYVTGF.js.map} +0 -0
  171. /package/dist/{chunk-OESAI3XS.js.map → chunk-CRPV5YCC.js.map} +0 -0
  172. /package/dist/{chunk-NWUNF4YG.js.map → chunk-DAQCIJHW.js.map} +0 -0
  173. /package/dist/{chunk-VGQV4LX7.js.map → chunk-EUAJT7FS.js.map} +0 -0
  174. /package/dist/{chunk-XZ5DA5X4.js.map → chunk-EYUBVLPF.js.map} +0 -0
  175. /package/dist/{chunk-O27BJXBR.js.map → chunk-G5W6D7KQ.js.map} +0 -0
  176. /package/dist/{chunk-AKGDIBSE.js.map → chunk-G635EV2D.js.map} +0 -0
  177. /package/dist/{chunk-AVJHFI5U.js.map → chunk-G7TS5DCS.js.map} +0 -0
  178. /package/dist/{chunk-L7OQ7O4K.js.map → chunk-GTVQYGY3.js.map} +0 -0
  179. /package/dist/{chunk-O75H5FNU.js.map → chunk-H756AOOW.js.map} +0 -0
  180. /package/dist/{chunk-6SLZK5GD.js.map → chunk-I5V34WWS.js.map} +0 -0
  181. /package/dist/{chunk-FXHTSSV2.js.map → chunk-JF72AS6T.js.map} +0 -0
  182. /package/dist/{chunk-OUFJZ264.js.map → chunk-KWRE6HQN.js.map} +0 -0
  183. /package/dist/{chunk-VTERY2TQ.js.map → chunk-LJ3UVV4F.js.map} +0 -0
  184. /package/dist/{chunk-WWS6UQD5.js.map → chunk-M2ZJ64JV.js.map} +0 -0
  185. /package/dist/{chunk-VZVIP6SS.js.map → chunk-NW2ZXAJJ.js.map} +0 -0
  186. /package/dist/{chunk-CGJGWALF.js.map → chunk-OUUDQA7O.js.map} +0 -0
  187. /package/dist/{chunk-JUI6JND2.js.map → chunk-OUWKEJEC.js.map} +0 -0
  188. /package/dist/{chunk-QXQ6YB5M.js.map → chunk-PDYO56JU.js.map} +0 -0
  189. /package/dist/{chunk-MN5T5HPT.js.map → chunk-QCFINFXO.js.map} +0 -0
  190. /package/dist/{chunk-UL5TB4LY.js.map → chunk-QKF7CNIM.js.map} +0 -0
  191. /package/dist/{chunk-EEZGYD3Z.js.map → chunk-QXJ4FILG.js.map} +0 -0
  192. /package/dist/{chunk-BE2KPUJX.js.map → chunk-R5IJHLHA.js.map} +0 -0
  193. /package/dist/{chunk-NJT26JI3.js.map → chunk-SMZ7W34L.js.map} +0 -0
  194. /package/dist/{chunk-KGZRNWEN.js.map → chunk-TJFX5BWH.js.map} +0 -0
  195. /package/dist/{chunk-3BHHT63K.js.map → chunk-UNEHT6FI.js.map} +0 -0
  196. /package/dist/{chunk-R3E2VXO3.js.map → chunk-VDYX4R6U.js.map} +0 -0
  197. /package/dist/{chunk-S5RPQFWS.js.map → chunk-VIWPTRRR.js.map} +0 -0
  198. /package/dist/{chunk-OPEB5JCB.js.map → chunk-VMLRIO4T.js.map} +0 -0
  199. /package/dist/{chunk-U2MUU3TT.js.map → chunk-WDV6VTVI.js.map} +0 -0
  200. /package/dist/{chunk-BDWC6RXH.js.map → chunk-XLAGFKJE.js.map} +0 -0
  201. /package/dist/{chunk-4TOXX4KZ.js.map → chunk-YLIPAOBT.js.map} +0 -0
  202. /package/dist/{chunk-NZ7HCBSL.js.map → chunk-Z3NQJALE.js.map} +0 -0
  203. /package/dist/{chunk-S4ILKUFN.js.map → chunk-ZGXRWL7T.js.map} +0 -0
  204. /package/dist/{chunk-BCPH3SZM.js.map → chunk-ZO6MZNLI.js.map} +0 -0
  205. /package/dist/{cli-GP3LT7GT.js.map → cli-4CGRDNWF.js.map} +0 -0
  206. /package/dist/{command-hook-installer-PTTVCWH7.js.map → command-hook-installer-W7IEVT6V.js.map} +0 -0
  207. /package/dist/{config-U7LVTPBG.js.map → config-3RONXBBL.js.map} +0 -0
  208. /package/dist/{diff-V6A3E6PF.js.map → diff-YXYQKDJQ.js.map} +0 -0
  209. /package/dist/{digest-HGKHWQHL.js.map → digest-7PESCB5B.js.map} +0 -0
  210. /package/dist/{fork-M6BPUFHZ.js.map → fork-J5KH2M7V.js.map} +0 -0
  211. /package/dist/{history-LLB37UPG.js.map → history-T6ZIUHE7.js.map} +0 -0
  212. /package/dist/{hook-2XFXXOT2.js.map → hook-JEGFGYMA.js.map} +0 -0
  213. /package/dist/{hydrate-WZNGM3RI.js.map → hydrate-UWNH7GWK.js.map} +0 -0
  214. /package/dist/{init-RILW6IKT.js.map → init-RMLPXKB7.js.map} +0 -0
  215. /package/dist/{install-skills-K3EXVLOV.js.map → install-skills-TFP6EHI3.js.map} +0 -0
  216. /package/dist/{list-R723GE7D.js.map → list-5AMTJAI6.js.map} +0 -0
  217. /package/dist/{move-EQZOZNTD.js.map → move-ELVMRSM6.js.map} +0 -0
  218. /package/dist/{note-B7OQML26.js.map → note-Q52DD2DT.js.map} +0 -0
  219. /package/dist/{overlaps-AJKWBKXW.js.map → overlaps-NORA5U6L.js.map} +0 -0
  220. /package/dist/{pin-C34UTZS7.js.map → pin-TC6X4HDA.js.map} +0 -0
  221. /package/dist/{read-2QQ3MD5L.js.map → read-EMO5CVBL.js.map} +0 -0
  222. /package/dist/{recent-KANIMGNZ.js.map → recent-XFC2CZGO.js.map} +0 -0
  223. /package/dist/{report-BSETCIYQ.js.map → report-JEG2FKOB.js.map} +0 -0
  224. /package/dist/{restart-EQMZSYU4.js.map → restart-IKVRECL5.js.map} +0 -0
  225. /package/dist/{resume-USISTQLB.js.map → resume-LWDUSKDJ.js.map} +0 -0
  226. /package/dist/{run-B5HRDSZB.js.map → run-TQLQ27GW.js.map} +0 -0
  227. /package/dist/{screen-NZKAG4SG.js.map → screen-VSQAYCFO.js.map} +0 -0
  228. /package/dist/{search-YEZLXNYH.js.map → search-MEK4ZMO6.js.map} +0 -0
  229. /package/dist/{section-BNZF3F46.js.map → section-C6D5NXLG.js.map} +0 -0
  230. /package/dist/{send-7FFX2J2A.js.map → send-44BXZWDO.js.map} +0 -0
  231. /package/dist/{sessions-W3Q326V6.js.map → sessions-TBAG6NMG.js.map} +0 -0
  232. /package/dist/{snooze-BOZY2UBJ.js.map → snooze-ZZRSF3E3.js.map} +0 -0
  233. /package/dist/{start-IKYSNOQG.js.map → start-3UPW2TES.js.map} +0 -0
  234. /package/dist/{state-NRK5CBXZ.js.map → state-2J4TR7IC.js.map} +0 -0
  235. /package/dist/{status-7NN4G2V6.js.map → status-OEGNSHMS.js.map} +0 -0
  236. /package/dist/{stop-Y6ZPCMEH.js.map → stop-UJ7XWUVZ.js.map} +0 -0
  237. /package/dist/{time-OV5QUVK7.js.map → time-IJXREBKU.js.map} +0 -0
  238. /package/dist/{time-actions-FLLFYEVY.js.map → time-actions-LMJUFDDR.js.map} +0 -0
  239. /package/dist/{timesheet-UW3TUCPB.js.map → timesheet-L265X66U.js.map} +0 -0
  240. /package/dist/{todo-OE62TNES.js.map → todo-FXPXLXXW.js.map} +0 -0
  241. /package/dist/{update-SX3ASLLP.js.map → update-PCWQEFVF.js.map} +0 -0
  242. /package/dist/{wait-S47NIZBT.js.map → wait-YL2ZA6OM.js.map} +0 -0
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  ensureAgentPath,
4
4
  findOnPath
5
- } from "./chunk-JUI6JND2.js";
5
+ } from "./chunk-OUWKEJEC.js";
6
6
  import {
7
7
  defaultTimeDeps,
8
8
  fetchIssueDetail,
@@ -15,7 +15,7 @@ import {
15
15
  graphProblem,
16
16
  signOutGraph,
17
17
  startDeviceLogin
18
- } from "./chunk-R3E2VXO3.js";
18
+ } from "./chunk-VDYX4R6U.js";
19
19
  import {
20
20
  addTask,
21
21
  completeTask,
@@ -23,7 +23,7 @@ import {
23
23
  getTasks,
24
24
  removeTask,
25
25
  uncompleteTask
26
- } from "./chunk-OESAI3XS.js";
26
+ } from "./chunk-CRPV5YCC.js";
27
27
  import {
28
28
  commentInputSchema,
29
29
  detectParentBranch,
@@ -36,7 +36,7 @@ import {
36
36
  serveSpa,
37
37
  sessionBaseForPath,
38
38
  submitReviewSchema
39
- } from "./chunk-VZVIP6SS.js";
39
+ } from "./chunk-NW2ZXAJJ.js";
40
40
  import {
41
41
  announceChange,
42
42
  createArchivedRows,
@@ -51,10 +51,10 @@ import {
51
51
  stageSeenKey,
52
52
  storeHolding,
53
53
  withRestoring
54
- } from "./chunk-ELHWFKY2.js";
54
+ } from "./chunk-CXCMATZG.js";
55
55
  import {
56
56
  createDigestSource
57
- } from "./chunk-O75H5FNU.js";
57
+ } from "./chunk-H756AOOW.js";
58
58
  import {
59
59
  agentsBySession,
60
60
  createBuildFoldersJob,
@@ -63,15 +63,15 @@ import {
63
63
  deleteMergedBranches,
64
64
  findMergedBranches,
65
65
  summarizeAgents
66
- } from "./chunk-4TOXX4KZ.js";
66
+ } from "./chunk-YLIPAOBT.js";
67
67
  import {
68
68
  defaultCleanupDeps
69
- } from "./chunk-BE2KPUJX.js";
69
+ } from "./chunk-R5IJHLHA.js";
70
70
  import {
71
71
  DiffStatCache,
72
72
  findOverlaps,
73
73
  wantsDiffStat
74
- } from "./chunk-XHOYJP3H.js";
74
+ } from "./chunk-4YCWUHVE.js";
75
75
  import {
76
76
  LATER_TEXT,
77
77
  restartCountsText
@@ -87,13 +87,13 @@ import {
87
87
  cleanSectionOp,
88
88
  placeSession,
89
89
  readRailLayout
90
- } from "./chunk-BCPH3SZM.js";
90
+ } from "./chunk-ZO6MZNLI.js";
91
91
  import {
92
92
  MAX_NOTE_CHARS,
93
93
  readNote,
94
94
  saveNote,
95
95
  sessionsWithNotes
96
- } from "./chunk-CGJGWALF.js";
96
+ } from "./chunk-OUUDQA7O.js";
97
97
  import {
98
98
  addBlocker,
99
99
  allBlocks,
@@ -104,21 +104,21 @@ import {
104
104
  removeBlocker,
105
105
  sweepBlocks,
106
106
  unblockedPrompt
107
- } from "./chunk-U2MUU3TT.js";
107
+ } from "./chunk-WDV6VTVI.js";
108
108
  import {
109
109
  jiraWorklogPoster,
110
110
  logWorkDay,
111
111
  loggedDays,
112
112
  worklogSettings
113
- } from "./chunk-6SJOM62D.js";
113
+ } from "./chunk-56P7G2DI.js";
114
114
  import {
115
115
  sessionWorkTime
116
- } from "./chunk-V2NF62H2.js";
116
+ } from "./chunk-3HJASVHJ.js";
117
117
  import {
118
118
  checkTools,
119
119
  saveFolders,
120
120
  setupState
121
- } from "./chunk-QXQ6YB5M.js";
121
+ } from "./chunk-PDYO56JU.js";
122
122
  import {
123
123
  RepoAdminError,
124
124
  deleteGroup,
@@ -128,30 +128,24 @@ import {
128
128
  saveGroup,
129
129
  setRepoIgnored,
130
130
  setScanRoot
131
- } from "./chunk-O27BJXBR.js";
131
+ } from "./chunk-G5W6D7KQ.js";
132
132
  import {
133
- fetchAllPullRequests,
134
133
  freeLeftovers,
135
134
  leftoversOf,
136
135
  lookAtLeftovers,
137
136
  openInLeftovers,
138
137
  parsePrRef,
139
138
  resolvePrToStart
140
- } from "./chunk-V5ASWB23.js";
139
+ } from "./chunk-MYDQNX7W.js";
141
140
  import {
142
141
  editorArgs,
143
142
  openUrl
144
- } from "./chunk-NJT26JI3.js";
145
- import {
146
- enrollProblem,
147
- groupProblem,
148
- suggestAlias
149
- } from "./chunk-HMK3INUS.js";
143
+ } from "./chunk-SMZ7W34L.js";
150
144
  import {
151
145
  archiveMergedSession,
152
146
  archiveWaiting,
153
147
  defaultArchiveDeps
154
- } from "./chunk-R2VDNMRX.js";
148
+ } from "./chunk-ANWA4Z56.js";
155
149
  import {
156
150
  cleanupVerdict,
157
151
  createCleanupJob
@@ -163,18 +157,31 @@ import {
163
157
  createSeenStores,
164
158
  discardReply,
165
159
  draftCounts,
160
+ draftReply,
166
161
  listReplies,
167
162
  markPostedAnswered,
168
163
  postReply,
169
164
  rememberSent,
170
- saveDraft
171
- } from "./chunk-24HYZTJV.js";
172
- import "./chunk-NZ7HCBSL.js";
165
+ retireResolvedReplies,
166
+ sessionRepoRefs
167
+ } from "./chunk-P2THO7D7.js";
168
+ import {
169
+ listProcesses,
170
+ runningFromNames
171
+ } from "./chunk-Z3NQJALE.js";
172
+ import {
173
+ fetchAllPullRequests
174
+ } from "./chunk-VTLDYH3C.js";
175
+ import {
176
+ enrollProblem,
177
+ groupProblem,
178
+ suggestAlias
179
+ } from "./chunk-HMK3INUS.js";
173
180
  import {
174
181
  defaultForkDeps,
175
182
  forkSession,
176
183
  startSessionWithPrompt
177
- } from "./chunk-DL4NHA5U.js";
184
+ } from "./chunk-2MAGDOLP.js";
178
185
  import {
179
186
  childText,
180
187
  createInChild,
@@ -182,7 +189,7 @@ import {
182
189
  keyedQueue,
183
190
  oneAtATime,
184
191
  runWorkChild
185
- } from "./chunk-OPEB5JCB.js";
192
+ } from "./chunk-VMLRIO4T.js";
186
193
  import {
187
194
  resolveWorkBinPath
188
195
  } from "./chunk-AH5TM3NB.js";
@@ -210,21 +217,21 @@ import {
210
217
  subscribeSession,
211
218
  syncPtyPool,
212
219
  writeToPty
213
- } from "./chunk-2OS3DCAF.js";
220
+ } from "./chunk-4LFJM4UN.js";
214
221
  import {
215
222
  dbPtySessions
216
- } from "./chunk-J5J4RR25.js";
217
- import "./chunk-NWUNF4YG.js";
223
+ } from "./chunk-4RDAWJZY.js";
224
+ import "./chunk-DAQCIJHW.js";
218
225
  import {
219
226
  addRepoRefusal,
220
227
  addedRepoNote
221
- } from "./chunk-UL5TB4LY.js";
228
+ } from "./chunk-QKF7CNIM.js";
222
229
  import {
223
230
  teardownWorktree,
224
231
  toBaseSpec,
225
232
  wouldRefuseRemoval
226
- } from "./chunk-NJZJQGYL.js";
227
- import "./chunk-VGQV4LX7.js";
233
+ } from "./chunk-72U52KTJ.js";
234
+ import "./chunk-EUAJT7FS.js";
228
235
  import {
229
236
  isWorktreeFolder
230
237
  } from "./chunk-KUCMJHQW.js";
@@ -245,11 +252,11 @@ import {
245
252
  stackedOn,
246
253
  updateFromBase,
247
254
  updateFromMain
248
- } from "./chunk-S5RPQFWS.js";
255
+ } from "./chunk-VIWPTRRR.js";
249
256
  import {
250
257
  sessionStatusView,
251
258
  shownState
252
- } from "./chunk-GP4OOXKW.js";
259
+ } from "./chunk-4IEQ7LY4.js";
253
260
  import {
254
261
  defaultRunner,
255
262
  mergeSelected,
@@ -262,29 +269,29 @@ import {
262
269
  catchUp,
263
270
  catchUpFacts,
264
271
  forgetCatchUp
265
- } from "./chunk-6SLZK5GD.js";
272
+ } from "./chunk-I5V34WWS.js";
266
273
  import {
267
274
  runInternal,
268
275
  summarizeCheckpoint,
269
276
  throttleTrailing
270
- } from "./chunk-OUFJZ264.js";
277
+ } from "./chunk-KWRE6HQN.js";
271
278
  import {
272
279
  computeDiff,
273
280
  computeRangeDiff,
274
281
  parseGitDiff
275
- } from "./chunk-AVJHFI5U.js";
282
+ } from "./chunk-G7TS5DCS.js";
276
283
  import {
277
284
  packageRoot
278
285
  } from "./chunk-LNHSBM4L.js";
279
286
  import {
280
287
  VERSION
281
- } from "./chunk-WWS6UQD5.js";
288
+ } from "./chunk-M2ZJ64JV.js";
282
289
  import {
283
290
  resolveProjectTarget
284
- } from "./chunk-R2SR3PER.js";
291
+ } from "./chunk-CGVYVTGF.js";
285
292
  import {
286
293
  git
287
- } from "./chunk-AKGDIBSE.js";
294
+ } from "./chunk-G635EV2D.js";
288
295
  import {
289
296
  DEFAULT_CATCH_UP_DAYS,
290
297
  addDays,
@@ -303,15 +310,17 @@ import {
303
310
  tempoSetup,
304
311
  timeRange,
305
312
  updateDay
306
- } from "./chunk-L7OQ7O4K.js";
313
+ } from "./chunk-GTVQYGY3.js";
307
314
  import {
308
315
  isOwnCheckout
309
316
  } from "./chunk-TUFQJXXO.js";
310
317
  import {
318
+ ASSISTANT_ID,
311
319
  CONTEXT_WARN,
320
+ assistantDir,
312
321
  describeView,
313
322
  writeAssistantContext
314
- } from "./chunk-G5PTLH3D.js";
323
+ } from "./chunk-YSGXXNBL.js";
315
324
  import {
316
325
  clearDevWebDiscovery,
317
326
  clearWebDiscovery,
@@ -323,16 +332,16 @@ import {
323
332
  readWebUrl,
324
333
  writeDevWebDiscovery,
325
334
  writeWebDiscovery
326
- } from "./chunk-KGZRNWEN.js";
335
+ } from "./chunk-TJFX5BWH.js";
327
336
  import {
328
337
  NOTE_NUDGE,
329
338
  findSessionForCwd,
330
339
  readPendingForSession,
331
340
  readPendingForWorktree
332
- } from "./chunk-R35P4DNK.js";
341
+ } from "./chunk-C6STZ6HD.js";
333
342
  import {
334
343
  getCommentFileStore
335
- } from "./chunk-XZ5DA5X4.js";
344
+ } from "./chunk-EYUBVLPF.js";
336
345
  import "./chunk-ZSHWP2VS.js";
337
346
  import {
338
347
  createCommentStore
@@ -366,10 +375,12 @@ import {
366
375
  headAdvancedSinceInitial,
367
376
  headBroughtInOtherWork,
368
377
  isRestoring,
378
+ lastConversationWriteMs,
369
379
  listScopes,
370
380
  loadHistory,
371
381
  loadManifest,
372
382
  logSwallowed,
383
+ markAgentStopped,
373
384
  markScopeEnded,
374
385
  markSeen,
375
386
  notifyKindForTransition,
@@ -415,7 +426,7 @@ import {
415
426
  updateCheckpoint,
416
427
  whileRestoring,
417
428
  writeArchiveRecord
418
- } from "./chunk-KGMEAW2F.js";
429
+ } from "./chunk-JUMZ5MTU.js";
419
430
  import {
420
431
  activityRoots,
421
432
  agentFor,
@@ -428,7 +439,7 @@ import {
428
439
  liveAgents,
429
440
  readJsonlSince,
430
441
  recentProcessTable
431
- } from "./chunk-JG3J5TLB.js";
442
+ } from "./chunk-VESYLAVA.js";
432
443
  import {
433
444
  spawn_default
434
445
  } from "./chunk-RCYI7SRA.js";
@@ -442,11 +453,11 @@ import {
442
453
  sessionIdFor,
443
454
  tx,
444
455
  withDb
445
- } from "./chunk-FXHTSSV2.js";
456
+ } from "./chunk-JF72AS6T.js";
446
457
  import {
447
458
  report
448
- } from "./chunk-S4ILKUFN.js";
449
- import "./chunk-FRCV6NWT.js";
459
+ } from "./chunk-ZGXRWL7T.js";
460
+ import "./chunk-75MIXOUK.js";
450
461
  import {
451
462
  DEFAULT_PROMPTS,
452
463
  DEFAULT_TIME_SETTINGS,
@@ -454,7 +465,7 @@ import {
454
465
  getConfigDir,
455
466
  isWorkday,
456
467
  loadConfig
457
- } from "./chunk-A53IRCOO.js";
468
+ } from "./chunk-RYEPQLXQ.js";
458
469
 
459
470
  // src/commands/web.ts
460
471
  import chalk from "chalk";
@@ -495,7 +506,12 @@ function realDeps(app) {
495
506
  state: (id) => readStatus(id)?.state ?? null,
496
507
  unsafe: (id) => !!findSession2(id)?.launchedUnsafe || dbPtySessions.read()[id]?.unsafe === true,
497
508
  archived: (id) => !!findSession2(id)?.archivedAt,
498
- stop: disposePty,
509
+ // `work stop`: recorded like a sleep, so the Terminal tab starts it again when opened.
510
+ stop: async (id) => {
511
+ await disposePty(id);
512
+ await markAgentStopped(id).catch(() => {
513
+ });
514
+ },
499
515
  screen: readPtyScreen,
500
516
  lastReply: (id) => {
501
517
  const s = findSession2(id);
@@ -4131,7 +4147,11 @@ function mountPrReplyRoutes(app, opts) {
4131
4147
  if (!session) return c.json({ error: "unknown session" }, 404);
4132
4148
  const b = await body(c);
4133
4149
  if (typeof b.body !== "string") return c.json({ error: "body: string" }, 400);
4134
- const r = saveDraft(id, c.req.param("thread"), b.body, /* @__PURE__ */ new Date(), { unsafe: session.launchedUnsafe === true });
4150
+ const r = await draftReply(id, c.req.param("thread"), b.body, {
4151
+ unsafe: session.launchedUnsafe === true,
4152
+ repos: () => sessionRepoRefs(session),
4153
+ run
4154
+ });
4135
4155
  if (!r.ok) return c.json({ error: r.error }, 400);
4136
4156
  changed(id);
4137
4157
  return c.json({ reply: r.reply });
@@ -4863,6 +4883,12 @@ function savedChecks(rows, sessions) {
4863
4883
  const created = new Map(sessions.map((s) => [s.id, Date.parse(s.session.createdAt) || 0]));
4864
4884
  return rows.filter(([id, ci]) => created.has(id) && (Date.parse(ci.checkedAt) || 0) >= created.get(id));
4865
4885
  }
4886
+ var WATCH_RECENT_MS = 30 * 24 * 60 * 60 * 1e3;
4887
+ function watchable(s, now, io) {
4888
+ if (s.archivedAt || !s.paths.some(io.exists)) return false;
4889
+ const cutoff = now - WATCH_RECENT_MS;
4890
+ return (Date.parse(s.lastAccessedAt) || 0) >= cutoff || io.lastWriteMs(s) >= cutoff;
4891
+ }
4866
4892
  function createPrWatch(deps) {
4867
4893
  const now = deps.now ?? Date.now;
4868
4894
  const states = new Map(deps.saved ? savedChecks(deps.saved.load(), deps.sessions()) : []);
@@ -4976,6 +5002,12 @@ function createPrWatch(deps) {
4976
5002
  if (changed || !checked.has(id)) deps.broadcast("ci-changed", { sessionId: id });
4977
5003
  checked.add(id);
4978
5004
  if (!act) return ci;
5005
+ const retired = await deps.retireReplies?.(id, ci).catch(() => []) ?? [];
5006
+ if (retired.length)
5007
+ note(
5008
+ `${retired.length} repl${retired.length === 1 ? "y" : "ies"} dropped: ${retired.length === 1 ? "its thread was" : "their threads were"} resolved on GitHub`,
5009
+ "action"
5010
+ );
4979
5011
  if (feedback.length) {
4980
5012
  const n = feedback.reduce((k, f) => k + f.items.length, 0);
4981
5013
  const prs = feedback.map((f) => `#${f.number}`).join(", ");
@@ -5152,7 +5184,6 @@ async function wakeForNote(id) {
5152
5184
  const url = await ensurePty(id, { initialPrompt: WAKE_PROMPT }).catch(() => null);
5153
5185
  return url ? "started" : "failed";
5154
5186
  }
5155
- var RECENT_MS = 30 * 24 * 60 * 60 * 1e3;
5156
5187
  var FRESH_MS = 6e4;
5157
5188
  function midTurn(id) {
5158
5189
  return turnInProgress(readStatus(id));
@@ -5161,8 +5192,8 @@ function mountCiRoutes(app, opts) {
5161
5192
  const watch = createPrWatch({
5162
5193
  lookOnly: opts.lookOnly,
5163
5194
  sessions: () => {
5164
- const cutoff = Date.now() - RECENT_MS;
5165
- return loadHistory().filter((s) => !s.archivedAt && Date.parse(s.lastAccessedAt) >= cutoff && s.paths.some((p) => fs11.existsSync(p))).map((session) => ({ id: sessionIdFor(session), session }));
5195
+ const now = Date.now();
5196
+ return loadHistory().filter((s) => watchable(s, now, { exists: (p) => fs11.existsSync(p), lastWriteMs: lastConversationWriteMs })).map((session) => ({ id: sessionIdFor(session), session }));
5166
5197
  },
5167
5198
  // Never-pushed branches can't have a PR: don't ask GitHub about them,
5168
5199
  // unless the watch already knows one (a merged PR whose branch is gone).
@@ -5199,6 +5230,12 @@ function mountCiRoutes(app, opts) {
5199
5230
  ...w?.trustedBots ? { trustedBots: w.trustedBots } : {}
5200
5231
  };
5201
5232
  },
5233
+ retireReplies: async (id, ci) => {
5234
+ const s = findSession2(id);
5235
+ const gone = await retireResolvedReplies(id, ci, s?.paths.find((p) => fs11.existsSync(p)) ?? null, defaultRunner);
5236
+ if (gone.length) opts.broadcast("replies-changed", { sessionId: id });
5237
+ return gone;
5238
+ },
5202
5239
  rememberThreads: (id, threads) => {
5203
5240
  rememberSent(id, threads);
5204
5241
  opts.broadcast("replies-changed", { sessionId: id });
@@ -5383,15 +5420,20 @@ async function defaultElsewhere(sessionId) {
5383
5420
  const hostPids = ptyPids();
5384
5421
  const runningOutside = (agentsBySession(liveAgents(), loadHistory()).get(sessionId) ?? []).filter((c) => !hostPids.has(c.pid));
5385
5422
  const archivedAt = Date.parse(readArchive(sessionId)?.archivedAt ?? "");
5423
+ const stoppedAt = Date.parse(raw?.stoppedAt ?? "");
5386
5424
  return claudeElsewhere({
5387
5425
  hasPty: peekPty(sessionId),
5388
5426
  lastActivityMs: activity.lastActivity,
5389
5427
  status: elsewhereStatus(raw, status),
5390
5428
  runningOutside,
5391
- // Archiving stopped its Claude: what that one did before isn't a Claude open somewhere now.
5392
- stoppedAtMs: Number.isFinite(archivedAt) ? archivedAt : null
5429
+ // Work stopped its Claude (archiving, idle sleep, `work stop`): what that one did before isn't a Claude open somewhere now.
5430
+ stoppedAtMs: lastStop(archivedAt, stoppedAt)
5393
5431
  });
5394
5432
  }
5433
+ function lastStop(...ms) {
5434
+ const known = ms.filter(Number.isFinite);
5435
+ return known.length ? Math.max(...known) : null;
5436
+ }
5395
5437
  function attachTerminalWs(httpServer, port, opts = {}) {
5396
5438
  const wss = new WebSocketServer({ noServer: true });
5397
5439
  const elsewhere = opts.elsewhere ?? defaultElsewhere;
@@ -5699,12 +5741,12 @@ function hostHealth(b, now = Date.now()) {
5699
5741
  }
5700
5742
 
5701
5743
  // src/core/pty/idle-sleep.ts
5702
- var DEFAULT_SLEEP_AFTER_MINUTES = 120;
5703
- var MIN_SLEEP_AFTER_MINUTES = 30;
5744
+ var DEFAULT_SLEEP_AFTER_MINUTES = 10;
5745
+ var MIN_SLEEP_AFTER_MINUTES = 5;
5704
5746
  function sleepAfterMs(minutes) {
5705
5747
  return minutes <= 0 ? 0 : Math.max(minutes, MIN_SLEEP_AFTER_MINUTES) * 6e4;
5706
5748
  }
5707
- function sleepCandidates(ptys, now, afterMs, busy, keep = /* @__PURE__ */ new Set(["assistant"])) {
5749
+ function sleepCandidates(ptys, now, afterMs, busy, keep = /* @__PURE__ */ new Set()) {
5708
5750
  if (afterMs <= 0) return [];
5709
5751
  return ptys.filter((p) => {
5710
5752
  if (p.exited || keep.has(p.id)) return false;
@@ -5714,6 +5756,61 @@ function sleepCandidates(ptys, now, afterMs, busy, keep = /* @__PURE__ */ new Se
5714
5756
  return !busy(p.id);
5715
5757
  }).map((p) => p.id);
5716
5758
  }
5759
+ async function stillAtWork(p, c) {
5760
+ try {
5761
+ const shown = c.shown(p.id);
5762
+ if (shown === "working") return "its Claude is working";
5763
+ if (shown === "needs_input") return "it waits for your answer";
5764
+ const live = c.live(p.id, p.pid);
5765
+ if (live === "busy") return "Claude Code says it is busy (a background agent it started, perhaps)";
5766
+ if (live === "waiting") return "Claude Code says it is waiting at a dialog";
5767
+ const open = c.backgroundCommands(p.id, Date.parse(p.startedAt) || 0);
5768
+ if (open > 0) return `${open} background command${open === 1 ? "" : "s"} it started ${open === 1 ? "is" : "are"} still running`;
5769
+ const running = await c.runningFrom(p.id);
5770
+ if (running.length)
5771
+ return `still running from its folder: ${running.slice(0, 2).join(", ")}${running.length > 2 ? ` and ${running.length - 2} more` : ""}`;
5772
+ return null;
5773
+ } catch (err) {
5774
+ return `couldn't tell whether it is still at work (${err.message})`;
5775
+ }
5776
+ }
5777
+ async function sleepPlan(candidates, c) {
5778
+ const sleep = [];
5779
+ const awake = [];
5780
+ for (const p of candidates) {
5781
+ const why = await stillAtWork(p, c);
5782
+ if (why) awake.push({ id: p.id, why });
5783
+ else sleep.push(p.id);
5784
+ }
5785
+ return { sleep, awake };
5786
+ }
5787
+
5788
+ // src/core/pty/sleep-checks.ts
5789
+ function sleepChecks() {
5790
+ let procs = null;
5791
+ const live = liveAgents();
5792
+ const sessionOf = (id) => {
5793
+ if (id === ASSISTANT_ID)
5794
+ return { target: ASSISTANT_ID, branch: "", isGroup: false, paths: [assistantDir()], createdAt: "", lastAccessedAt: "" };
5795
+ const s = findSession2(id);
5796
+ if (!s) throw new Error("its session is gone");
5797
+ return s;
5798
+ };
5799
+ return {
5800
+ // The assistant reports no hook status: Claude Code's own state (live) speaks for it.
5801
+ shown: (id) => id === ASSISTANT_ID ? null : shownState(sessionOf(id)),
5802
+ live: (_id, pid) => live.find((a) => a.pid === pid)?.state ?? null,
5803
+ backgroundCommands: (id, sinceMs) => {
5804
+ const s = sessionOf(id);
5805
+ return agentOf(s).conversation?.backgroundCommands?.(s, sinceMs) ?? 0;
5806
+ },
5807
+ runningFrom: (id) => {
5808
+ procs ??= listProcesses();
5809
+ const list = procs;
5810
+ return runningFromNames(sessionOf(id).paths, () => list);
5811
+ }
5812
+ };
5813
+ }
5717
5814
 
5718
5815
  // src/server/web-server.ts
5719
5816
  function computeSessionDiff(s, base) {
@@ -5855,7 +5952,7 @@ async function startWebServer(opts = {}) {
5855
5952
  claudesFor,
5856
5953
  liveKnown: !!table && table.size > 0,
5857
5954
  snoozeFor: (id) => snoozes.get(id) ?? null,
5858
- behindFor: (id, s2) => wantsDiffStat(s2, false) ? behindCache.get(id, s2.paths, stacks.parentOf.get(id)?.branch) : null,
5955
+ behindFor: (id, s2, lastActivity) => wantsDiffStat(s2, false, Date.now(), lastActivity) ? behindCache.get(id, s2.paths, stacks.parentOf.get(id)?.branch) : null,
5859
5956
  stackFor: (id) => {
5860
5957
  const p = stacks.parentOf.get(id);
5861
5958
  const m = stacks.mergedParentOf.get(id);
@@ -6014,15 +6111,28 @@ async function startWebServer(opts = {}) {
6014
6111
  return activity.skip("idle-sleep", "Looking for idle Claudes", "turned off (sleepIdleAfterMinutes: 0)");
6015
6112
  const run = activity.start("idle-sleep", "Looking for idle Claudes");
6016
6113
  const ptys = await listHostPtys().catch(() => []);
6017
- const ids = sleepCandidates(ptys, Date.now(), sleepAfterMs(minutes), agentBusy);
6114
+ const quiet = new Set(sleepCandidates(ptys, Date.now(), sleepAfterMs(minutes), agentBusy));
6115
+ const plan = await sleepPlan(
6116
+ ptys.filter((p) => quiet.has(p.id)),
6117
+ sleepChecks()
6118
+ );
6119
+ for (const { id, why } of plan.awake) {
6120
+ const s = findSession2(id);
6121
+ run.note(`${s ? `${s.target} ${s.branch}` : id}: kept awake: ${why}`, { sessionId: s ? id : void 0 });
6122
+ }
6123
+ const ids = plan.sleep;
6018
6124
  for (const id of ids) {
6019
6125
  report("detail", `[sleep] ${id}: idle ${minutes} min with nothing attached; stopping its Claude (opening the session resumes it)`);
6020
6126
  const s = findSession2(id);
6021
6127
  await disposePty(id).then(
6022
- () => run.note(
6023
- `${s ? `${s.target} ${s.branch}` : id}: put its Claude to sleep (printed nothing for ${Math.max(minutes, 30)} min, nothing attached; opening it resumes the conversation)`,
6024
- { level: "action", sessionId: id }
6025
- ),
6128
+ async () => {
6129
+ await markAgentStopped(id).catch(() => {
6130
+ });
6131
+ run.note(
6132
+ `${s ? `${s.target} ${s.branch}` : id}: put its Claude to sleep (printed nothing for ${sleepAfterMs(minutes) / 6e4} min, nothing attached; opening it resumes the conversation)`,
6133
+ { level: "action", sessionId: id }
6134
+ );
6135
+ },
6026
6136
  (err) => run.note(`${id}: couldn't stop its Claude: ${err.message}`, { level: "warn", sessionId: id })
6027
6137
  );
6028
6138
  }
@@ -7190,6 +7300,8 @@ ${reply}\r
7190
7300
  activityState: s.attention?.state === "working" ? "active" : s.attention ? "open" : "stale",
7191
7301
  pendingForClaudeCount: 0,
7192
7302
  attention: s.attention,
7303
+ // One quiet session shows Asleep: its Claude stopped to free memory (idle sleep).
7304
+ ...s.branch === "feat/invoice-pdf" && !s.archivedAt && s.attention?.state === "idle" && s.attention.seen ? { asleep: true } : {},
7193
7305
  diffStat: stat.files ? stat : null,
7194
7306
  archivedAt: s.archivedAt,
7195
7307
  ...s.archivedAt && s.archivedBy ? {
@@ -9383,4 +9495,4 @@ export {
9383
9495
  stopExisting,
9384
9496
  webCommand
9385
9497
  };
9386
- //# sourceMappingURL=web-VPD4NPNC.js.map
9498
+ //# sourceMappingURL=web-MIPL4BC7.js.map