@moberg_hr/work-tree 2.6.3 → 2.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (257) hide show
  1. package/dist/{add-repo-VAGLNLIJ.js → add-repo-E7KWNJJV.js} +30 -29
  2. package/dist/{add-repo-VAGLNLIJ.js.map → add-repo-E7KWNJJV.js.map} +1 -1
  3. package/dist/{answer-4CUJSRIP.js → answer-2CBOWCL5.js} +13 -12
  4. package/dist/{answer-4CUJSRIP.js.map → answer-2CBOWCL5.js.map} +1 -1
  5. package/dist/{attach-GLCZILIH.js → attach-AWRY4LSI.js} +16 -15
  6. package/dist/{attach-GLCZILIH.js.map → attach-AWRY4LSI.js.map} +1 -1
  7. package/dist/bin.js +10 -8
  8. package/dist/bin.js.map +1 -1
  9. package/dist/{block-SC5IZJMA.js → block-JTJX5QIO.js} +13 -12
  10. package/dist/{block-SC5IZJMA.js.map → block-JTJX5QIO.js.map} +1 -1
  11. package/dist/{broadcast-VFY5UFYA.js → broadcast-3SF55HA6.js} +10 -9
  12. package/dist/{broadcast-VFY5UFYA.js.map → broadcast-3SF55HA6.js.map} +1 -1
  13. package/dist/{catchup-4EBF6RZ6.js → catchup-2WNHEMLD.js} +16 -15
  14. package/dist/{catchup-4EBF6RZ6.js.map → catchup-2WNHEMLD.js.map} +1 -1
  15. package/dist/{chunk-UNEHT6FI.js → chunk-2IKWNRMV.js} +3 -3
  16. package/dist/{chunk-P2THO7D7.js → chunk-3JY3QT4J.js} +5 -5
  17. package/dist/{chunk-35VLAPL2.js → chunk-3PLWNCRM.js} +2 -2
  18. package/dist/chunk-3Q5RZCQW.js +9 -0
  19. package/dist/{chunk-C6STZ6HD.js → chunk-3UHKPHTB.js} +7 -7
  20. package/dist/chunk-3ZGZNZTY.js +134 -0
  21. package/dist/chunk-3ZGZNZTY.js.map +1 -0
  22. package/dist/{chunk-CRPV5YCC.js → chunk-46UTKL5L.js} +2 -2
  23. package/dist/{chunk-VMLRIO4T.js → chunk-4PRPDACI.js} +5 -5
  24. package/dist/{chunk-4IEQ7LY4.js → chunk-5BNNPXID.js} +6 -6
  25. package/dist/{chunk-CXCMATZG.js → chunk-5GA3PFK5.js} +16 -16
  26. package/dist/{chunk-VIWPTRRR.js → chunk-5WEDCEZG.js} +5 -5
  27. package/dist/{command-hook-installer-W7IEVT6V.js → chunk-5XSY3C6E.js} +16 -86
  28. package/dist/chunk-5XSY3C6E.js.map +1 -0
  29. package/dist/{chunk-YLIPAOBT.js → chunk-AFW7HREX.js} +11 -11
  30. package/dist/{chunk-G7TS5DCS.js → chunk-B2HUKRWX.js} +4 -4
  31. package/dist/{chunk-Z3NQJALE.js → chunk-B7C3RYSJ.js} +3 -3
  32. package/dist/{chunk-YSGXXNBL.js → chunk-BHU26CNH.js} +4 -4
  33. package/dist/chunk-BHU26CNH.js.map +1 -0
  34. package/dist/{chunk-72U52KTJ.js → chunk-BVJ2ZE7B.js} +12 -14
  35. package/dist/{chunk-72U52KTJ.js.map → chunk-BVJ2ZE7B.js.map} +1 -1
  36. package/dist/{chunk-ANWA4Z56.js → chunk-C5HPSURF.js} +22 -22
  37. package/dist/{chunk-DAQCIJHW.js → chunk-CFLMBFBO.js} +3 -3
  38. package/dist/{chunk-JF72AS6T.js → chunk-COKQPFLB.js} +3 -3
  39. package/dist/{chunk-TJFX5BWH.js → chunk-DO5NW46X.js} +2 -2
  40. package/dist/chunk-DYJ4VJJD.js +160 -0
  41. package/dist/chunk-DYJ4VJJD.js.map +1 -0
  42. package/dist/{chunk-SMZ7W34L.js → chunk-EPNYZJMM.js} +5 -3
  43. package/dist/{chunk-SMZ7W34L.js.map → chunk-EPNYZJMM.js.map} +1 -1
  44. package/dist/{chunk-VESYLAVA.js → chunk-FUNZ7TOS.js} +104 -217
  45. package/dist/chunk-FUNZ7TOS.js.map +1 -0
  46. package/dist/{chunk-EUAJT7FS.js → chunk-G2FE7HUB.js} +2 -2
  47. package/dist/{chunk-VDYX4R6U.js → chunk-J5CMORVD.js} +9 -9
  48. package/dist/{chunk-ZGXRWL7T.js → chunk-JIYGGN2N.js} +2 -2
  49. package/dist/{chunk-RYEPQLXQ.js → chunk-KE2TFF7B.js} +99 -2
  50. package/dist/chunk-KE2TFF7B.js.map +1 -0
  51. package/dist/{chunk-MYDQNX7W.js → chunk-KU63EHZO.js} +2 -2
  52. package/dist/{chunk-R5IJHLHA.js → chunk-KUVL75PL.js} +8 -8
  53. package/dist/{chunk-PDYO56JU.js → chunk-LDFICXOZ.js} +3 -3
  54. package/dist/{chunk-WDV6VTVI.js → chunk-LQXGNO5X.js} +3 -3
  55. package/dist/{chunk-3HJASVHJ.js → chunk-LWKFZOCJ.js} +60 -10
  56. package/dist/chunk-LWKFZOCJ.js.map +1 -0
  57. package/dist/{chunk-I5V34WWS.js → chunk-MCSEYS2J.js} +7 -7
  58. package/dist/{chunk-JUMZ5MTU.js → chunk-MGQK6BWH.js} +20 -19
  59. package/dist/chunk-MGQK6BWH.js.map +1 -0
  60. package/dist/{chunk-G635EV2D.js → chunk-O34CKSE4.js} +2 -2
  61. package/dist/{chunk-QCFINFXO.js → chunk-OFCY7RCM.js} +4 -4
  62. package/dist/{chunk-H756AOOW.js → chunk-PIKOCEWX.js} +7 -7
  63. package/dist/{chunk-56P7G2DI.js → chunk-PUTZR6F5.js} +2 -2
  64. package/dist/{chunk-2MAGDOLP.js → chunk-QGKJXCEJ.js} +14 -14
  65. package/dist/{chunk-ZO6MZNLI.js → chunk-R3DASZQF.js} +2 -2
  66. package/dist/{chunk-EYUBVLPF.js → chunk-SNRP2MC3.js} +2 -2
  67. package/dist/{chunk-4RDAWJZY.js → chunk-TBY6ZFAV.js} +3 -3
  68. package/dist/{chunk-GTVQYGY3.js → chunk-TPPTL7LA.js} +3 -3
  69. package/dist/{chunk-QKF7CNIM.js → chunk-TTTIKTNR.js} +2 -2
  70. package/dist/{chunk-4YCWUHVE.js → chunk-UHYIB6AV.js} +2 -2
  71. package/dist/{chunk-QXJ4FILG.js → chunk-USUQYM6V.js} +54 -53
  72. package/dist/chunk-USUQYM6V.js.map +1 -0
  73. package/dist/{chunk-CGVYVTGF.js → chunk-VEKEA3ER.js} +2 -2
  74. package/dist/chunk-VMBWCDBA.js +186 -0
  75. package/dist/chunk-VMBWCDBA.js.map +1 -0
  76. package/dist/{chunk-LJ3UVV4F.js → chunk-W4YWFAYC.js} +4 -4
  77. package/dist/{chunk-KWRE6HQN.js → chunk-W7WC7UA2.js} +7 -5
  78. package/dist/{chunk-KWRE6HQN.js.map → chunk-W7WC7UA2.js.map} +1 -1
  79. package/dist/{chunk-XLAGFKJE.js → chunk-WIWO3YWP.js} +2 -2
  80. package/dist/{chunk-NW2ZXAJJ.js → chunk-YJ4CAD3X.js} +5 -5
  81. package/dist/{chunk-OUUDQA7O.js → chunk-YNHIMOE7.js} +2 -2
  82. package/dist/{chunk-OUWKEJEC.js → chunk-ZGPWIBSZ.js} +7 -5
  83. package/dist/{chunk-OUWKEJEC.js.map → chunk-ZGPWIBSZ.js.map} +1 -1
  84. package/dist/chunk-ZMCU2PZN.js +79 -0
  85. package/dist/chunk-ZMCU2PZN.js.map +1 -0
  86. package/dist/{chunk-G5W6D7KQ.js → chunk-ZNXACRZ5.js} +3 -3
  87. package/dist/{chunk-4LFJM4UN.js → chunk-ZS6F6JLC.js} +10 -10
  88. package/dist/{cleanup-DTOLAQAT.js → cleanup-PWN4XZ2F.js} +29 -28
  89. package/dist/{cleanup-DTOLAQAT.js.map → cleanup-PWN4XZ2F.js.map} +1 -1
  90. package/dist/cli-UTID323G.js +17 -0
  91. package/dist/command-hook-installer-RJH5QLCD.js +97 -0
  92. package/dist/command-hook-installer-RJH5QLCD.js.map +1 -0
  93. package/dist/{config-3RONXBBL.js → config-KGDVJKQN.js} +11 -10
  94. package/dist/{config-3RONXBBL.js.map → config-KGDVJKQN.js.map} +1 -1
  95. package/dist/{diff-YXYQKDJQ.js → diff-ZORXBJDI.js} +15 -14
  96. package/dist/{diff-YXYQKDJQ.js.map → diff-ZORXBJDI.js.map} +1 -1
  97. package/dist/{digest-7PESCB5B.js → digest-PUUBJTD3.js} +12 -11
  98. package/dist/{digest-7PESCB5B.js.map → digest-PUUBJTD3.js.map} +1 -1
  99. package/dist/{fork-J5KH2M7V.js → fork-7L76HZAS.js} +32 -31
  100. package/dist/{fork-J5KH2M7V.js.map → fork-7L76HZAS.js.map} +1 -1
  101. package/dist/{history-T6ZIUHE7.js → history-YX74IRQY.js} +9 -8
  102. package/dist/{hook-JEGFGYMA.js → hook-JCD6SDB3.js} +16 -15
  103. package/dist/{hook-JEGFGYMA.js.map → hook-JCD6SDB3.js.map} +1 -1
  104. package/dist/{hydrate-UWNH7GWK.js → hydrate-W4V5RJYU.js} +11 -10
  105. package/dist/{hydrate-UWNH7GWK.js.map → hydrate-W4V5RJYU.js.map} +1 -1
  106. package/dist/{init-RMLPXKB7.js → init-5MMV2UF5.js} +11 -10
  107. package/dist/{init-RMLPXKB7.js.map → init-5MMV2UF5.js.map} +1 -1
  108. package/dist/install-skills-7EHZBANC.js +16 -0
  109. package/dist/install-skills-bin.js +5 -3
  110. package/dist/install-skills-bin.js.map +1 -1
  111. package/dist/{list-5AMTJAI6.js → list-ZS3UWOGJ.js} +11 -10
  112. package/dist/{list-5AMTJAI6.js.map → list-ZS3UWOGJ.js.map} +1 -1
  113. package/dist/{move-ELVMRSM6.js → move-ZTL7HAIU.js} +21 -20
  114. package/dist/{move-ELVMRSM6.js.map → move-ZTL7HAIU.js.map} +1 -1
  115. package/dist/{note-Q52DD2DT.js → note-B4FVZGJJ.js} +13 -12
  116. package/dist/{note-Q52DD2DT.js.map → note-B4FVZGJJ.js.map} +1 -1
  117. package/dist/{overlaps-NORA5U6L.js → overlaps-W3BLUG53.js} +11 -10
  118. package/dist/{overlaps-NORA5U6L.js.map → overlaps-W3BLUG53.js.map} +1 -1
  119. package/dist/{pin-TC6X4HDA.js → pin-YYQV5OPS.js} +13 -12
  120. package/dist/{pin-TC6X4HDA.js.map → pin-YYQV5OPS.js.map} +1 -1
  121. package/dist/{pr-NQERVORK.js → pr-HQTMQOF5.js} +17 -16
  122. package/dist/{pr-NQERVORK.js.map → pr-HQTMQOF5.js.map} +1 -1
  123. package/dist/{prune-TRPM4VQW.js → prune-6BYOFOUR.js} +28 -27
  124. package/dist/{prune-TRPM4VQW.js.map → prune-6BYOFOUR.js.map} +1 -1
  125. package/dist/{pty-host-52OZBFU5.js → pty-host-KSS45FVH.js} +18 -17
  126. package/dist/{pty-host-52OZBFU5.js.map → pty-host-KSS45FVH.js.map} +1 -1
  127. package/dist/{read-EMO5CVBL.js → read-I5TGSBPC.js} +12 -11
  128. package/dist/{read-EMO5CVBL.js.map → read-I5TGSBPC.js.map} +1 -1
  129. package/dist/{recent-XFC2CZGO.js → recent-GRKJEEKT.js} +10 -9
  130. package/dist/{recent-XFC2CZGO.js.map → recent-GRKJEEKT.js.map} +1 -1
  131. package/dist/{remove-ISNYVVEE.js → remove-64T6TMOE.js} +27 -26
  132. package/dist/{remove-ISNYVVEE.js.map → remove-64T6TMOE.js.map} +1 -1
  133. package/dist/{report-JEG2FKOB.js → report-KAS2UEXO.js} +3 -4
  134. package/dist/{restart-IKVRECL5.js → restart-WJROWFMU.js} +13 -12
  135. package/dist/{restart-IKVRECL5.js.map → restart-WJROWFMU.js.map} +1 -1
  136. package/dist/{resume-LWDUSKDJ.js → resume-634R6KNE.js} +10 -9
  137. package/dist/{resume-LWDUSKDJ.js.map → resume-634R6KNE.js.map} +1 -1
  138. package/dist/{run-TQLQ27GW.js → run-57LGOBXQ.js} +9 -8
  139. package/dist/{run-TQLQ27GW.js.map → run-57LGOBXQ.js.map} +1 -1
  140. package/dist/{screen-VSQAYCFO.js → screen-CX7WUVXM.js} +13 -12
  141. package/dist/{screen-VSQAYCFO.js.map → screen-CX7WUVXM.js.map} +1 -1
  142. package/dist/{search-MEK4ZMO6.js → search-JYAQWT6A.js} +9 -8
  143. package/dist/{search-MEK4ZMO6.js.map → search-JYAQWT6A.js.map} +1 -1
  144. package/dist/{section-C6D5NXLG.js → section-4FICXE46.js} +13 -12
  145. package/dist/{section-C6D5NXLG.js.map → section-4FICXE46.js.map} +1 -1
  146. package/dist/{send-44BXZWDO.js → send-RRTPY47A.js} +20 -19
  147. package/dist/{send-44BXZWDO.js.map → send-RRTPY47A.js.map} +1 -1
  148. package/dist/{sessions-TBAG6NMG.js → sessions-UJNUCYND.js} +22 -21
  149. package/dist/{sessions-TBAG6NMG.js.map → sessions-UJNUCYND.js.map} +1 -1
  150. package/dist/{snooze-ZZRSF3E3.js → snooze-DJEPOBT5.js} +12 -11
  151. package/dist/{snooze-ZZRSF3E3.js.map → snooze-DJEPOBT5.js.map} +1 -1
  152. package/dist/{start-3UPW2TES.js → start-YPEN5QI3.js} +13 -12
  153. package/dist/{start-3UPW2TES.js.map → start-YPEN5QI3.js.map} +1 -1
  154. package/dist/{state-2J4TR7IC.js → state-UAW6DWWU.js} +4 -5
  155. package/dist/{state-2J4TR7IC.js.map → state-UAW6DWWU.js.map} +1 -1
  156. package/dist/{status-OEGNSHMS.js → status-4EOTN33T.js} +10 -9
  157. package/dist/{status-OEGNSHMS.js.map → status-4EOTN33T.js.map} +1 -1
  158. package/dist/statusline-EUT6VZLP.js +93 -0
  159. package/dist/statusline-EUT6VZLP.js.map +1 -0
  160. package/dist/statusline-hook-TZ7M762P.js +118 -0
  161. package/dist/statusline-hook-TZ7M762P.js.map +1 -0
  162. package/dist/{stop-UJ7XWUVZ.js → stop-3UNZ22YA.js} +13 -12
  163. package/dist/{stop-UJ7XWUVZ.js.map → stop-3UNZ22YA.js.map} +1 -1
  164. package/dist/{sync-XHFJEBHL.js → sync-XXZBP6PK.js} +28 -27
  165. package/dist/{sync-XHFJEBHL.js.map → sync-XXZBP6PK.js.map} +1 -1
  166. package/dist/{time-IJXREBKU.js → time-G5Z57AE5.js} +14 -13
  167. package/dist/{time-IJXREBKU.js.map → time-G5Z57AE5.js.map} +1 -1
  168. package/dist/time-actions-H5WCOYZG.js +14 -0
  169. package/dist/{timesheet-L265X66U.js → timesheet-NA7NQUVR.js} +16 -15
  170. package/dist/{timesheet-L265X66U.js.map → timesheet-NA7NQUVR.js.map} +1 -1
  171. package/dist/{todo-FXPXLXXW.js → todo-V7EVWHF2.js} +5 -6
  172. package/dist/{todo-FXPXLXXW.js.map → todo-V7EVWHF2.js.map} +1 -1
  173. package/dist/{tree-L5QLZCTJ.js → tree-R5YXQTP7.js} +23 -22
  174. package/dist/{tree-L5QLZCTJ.js.map → tree-R5YXQTP7.js.map} +1 -1
  175. package/dist/{update-PCWQEFVF.js → update-B3MQXQJ6.js} +15 -14
  176. package/dist/{update-PCWQEFVF.js.map → update-B3MQXQJ6.js.map} +1 -1
  177. package/dist/usage-2HE4RSVM.js +79 -0
  178. package/dist/usage-2HE4RSVM.js.map +1 -0
  179. package/dist/{wait-YL2ZA6OM.js → wait-2OPYJO3K.js} +13 -12
  180. package/dist/{wait-YL2ZA6OM.js.map → wait-2OPYJO3K.js.map} +1 -1
  181. package/dist/wd-bin.js +8 -9
  182. package/dist/wd-bin.js.map +1 -1
  183. package/dist/web/assets/{PtyView-DNqCr6rR.js → PtyView-DgdSx6WG.js} +2 -2
  184. package/dist/web/assets/{PtyView-DNqCr6rR.js.map → PtyView-DgdSx6WG.js.map} +1 -1
  185. package/dist/web/assets/index-C5JNhi3-.css +1 -0
  186. package/dist/web/assets/index-O8yTaaWX.js +119 -0
  187. package/dist/web/assets/index-O8yTaaWX.js.map +1 -0
  188. package/dist/web/index.html +2 -2
  189. package/dist/{web-MIPL4BC7.js → web-QXQ4NGCJ.js} +362 -212
  190. package/dist/web-QXQ4NGCJ.js.map +1 -0
  191. package/npm-shrinkwrap.json +2 -2
  192. package/package.json +1 -1
  193. package/dist/chunk-3HJASVHJ.js.map +0 -1
  194. package/dist/chunk-75MIXOUK.js +0 -104
  195. package/dist/chunk-75MIXOUK.js.map +0 -1
  196. package/dist/chunk-JUMZ5MTU.js.map +0 -1
  197. package/dist/chunk-M2ZJ64JV.js +0 -9
  198. package/dist/chunk-QXJ4FILG.js.map +0 -1
  199. package/dist/chunk-RYEPQLXQ.js.map +0 -1
  200. package/dist/chunk-VESYLAVA.js.map +0 -1
  201. package/dist/chunk-YSGXXNBL.js.map +0 -1
  202. package/dist/cli-4CGRDNWF.js +0 -18
  203. package/dist/command-hook-installer-W7IEVT6V.js.map +0 -1
  204. package/dist/install-skills-TFP6EHI3.js +0 -14
  205. package/dist/time-actions-LMJUFDDR.js +0 -15
  206. package/dist/web/assets/index-Df-7v9bC.js +0 -119
  207. package/dist/web/assets/index-Df-7v9bC.js.map +0 -1
  208. package/dist/web/assets/index-LBhghRtA.css +0 -1
  209. package/dist/web-MIPL4BC7.js.map +0 -1
  210. /package/dist/{chunk-UNEHT6FI.js.map → chunk-2IKWNRMV.js.map} +0 -0
  211. /package/dist/{chunk-P2THO7D7.js.map → chunk-3JY3QT4J.js.map} +0 -0
  212. /package/dist/{chunk-35VLAPL2.js.map → chunk-3PLWNCRM.js.map} +0 -0
  213. /package/dist/{chunk-M2ZJ64JV.js.map → chunk-3Q5RZCQW.js.map} +0 -0
  214. /package/dist/{chunk-C6STZ6HD.js.map → chunk-3UHKPHTB.js.map} +0 -0
  215. /package/dist/{chunk-CRPV5YCC.js.map → chunk-46UTKL5L.js.map} +0 -0
  216. /package/dist/{chunk-VMLRIO4T.js.map → chunk-4PRPDACI.js.map} +0 -0
  217. /package/dist/{chunk-4IEQ7LY4.js.map → chunk-5BNNPXID.js.map} +0 -0
  218. /package/dist/{chunk-CXCMATZG.js.map → chunk-5GA3PFK5.js.map} +0 -0
  219. /package/dist/{chunk-VIWPTRRR.js.map → chunk-5WEDCEZG.js.map} +0 -0
  220. /package/dist/{chunk-YLIPAOBT.js.map → chunk-AFW7HREX.js.map} +0 -0
  221. /package/dist/{chunk-G7TS5DCS.js.map → chunk-B2HUKRWX.js.map} +0 -0
  222. /package/dist/{chunk-Z3NQJALE.js.map → chunk-B7C3RYSJ.js.map} +0 -0
  223. /package/dist/{chunk-ANWA4Z56.js.map → chunk-C5HPSURF.js.map} +0 -0
  224. /package/dist/{chunk-DAQCIJHW.js.map → chunk-CFLMBFBO.js.map} +0 -0
  225. /package/dist/{chunk-JF72AS6T.js.map → chunk-COKQPFLB.js.map} +0 -0
  226. /package/dist/{chunk-TJFX5BWH.js.map → chunk-DO5NW46X.js.map} +0 -0
  227. /package/dist/{chunk-EUAJT7FS.js.map → chunk-G2FE7HUB.js.map} +0 -0
  228. /package/dist/{chunk-VDYX4R6U.js.map → chunk-J5CMORVD.js.map} +0 -0
  229. /package/dist/{chunk-ZGXRWL7T.js.map → chunk-JIYGGN2N.js.map} +0 -0
  230. /package/dist/{chunk-MYDQNX7W.js.map → chunk-KU63EHZO.js.map} +0 -0
  231. /package/dist/{chunk-R5IJHLHA.js.map → chunk-KUVL75PL.js.map} +0 -0
  232. /package/dist/{chunk-PDYO56JU.js.map → chunk-LDFICXOZ.js.map} +0 -0
  233. /package/dist/{chunk-WDV6VTVI.js.map → chunk-LQXGNO5X.js.map} +0 -0
  234. /package/dist/{chunk-I5V34WWS.js.map → chunk-MCSEYS2J.js.map} +0 -0
  235. /package/dist/{chunk-G635EV2D.js.map → chunk-O34CKSE4.js.map} +0 -0
  236. /package/dist/{chunk-QCFINFXO.js.map → chunk-OFCY7RCM.js.map} +0 -0
  237. /package/dist/{chunk-H756AOOW.js.map → chunk-PIKOCEWX.js.map} +0 -0
  238. /package/dist/{chunk-56P7G2DI.js.map → chunk-PUTZR6F5.js.map} +0 -0
  239. /package/dist/{chunk-2MAGDOLP.js.map → chunk-QGKJXCEJ.js.map} +0 -0
  240. /package/dist/{chunk-ZO6MZNLI.js.map → chunk-R3DASZQF.js.map} +0 -0
  241. /package/dist/{chunk-EYUBVLPF.js.map → chunk-SNRP2MC3.js.map} +0 -0
  242. /package/dist/{chunk-4RDAWJZY.js.map → chunk-TBY6ZFAV.js.map} +0 -0
  243. /package/dist/{chunk-GTVQYGY3.js.map → chunk-TPPTL7LA.js.map} +0 -0
  244. /package/dist/{chunk-QKF7CNIM.js.map → chunk-TTTIKTNR.js.map} +0 -0
  245. /package/dist/{chunk-4YCWUHVE.js.map → chunk-UHYIB6AV.js.map} +0 -0
  246. /package/dist/{chunk-CGVYVTGF.js.map → chunk-VEKEA3ER.js.map} +0 -0
  247. /package/dist/{chunk-LJ3UVV4F.js.map → chunk-W4YWFAYC.js.map} +0 -0
  248. /package/dist/{chunk-XLAGFKJE.js.map → chunk-WIWO3YWP.js.map} +0 -0
  249. /package/dist/{chunk-NW2ZXAJJ.js.map → chunk-YJ4CAD3X.js.map} +0 -0
  250. /package/dist/{chunk-OUUDQA7O.js.map → chunk-YNHIMOE7.js.map} +0 -0
  251. /package/dist/{chunk-G5W6D7KQ.js.map → chunk-ZNXACRZ5.js.map} +0 -0
  252. /package/dist/{chunk-4LFJM4UN.js.map → chunk-ZS6F6JLC.js.map} +0 -0
  253. /package/dist/{cli-4CGRDNWF.js.map → cli-UTID323G.js.map} +0 -0
  254. /package/dist/{history-T6ZIUHE7.js.map → history-YX74IRQY.js.map} +0 -0
  255. /package/dist/{install-skills-TFP6EHI3.js.map → install-skills-7EHZBANC.js.map} +0 -0
  256. /package/dist/{report-JEG2FKOB.js.map → report-KAS2UEXO.js.map} +0 -0
  257. /package/dist/{time-actions-LMJUFDDR.js.map → time-actions-H5WCOYZG.js.map} +0 -0
@@ -1,8 +1,21 @@
1
1
  #!/usr/bin/env node
2
+ import {
3
+ commentInputSchema,
4
+ detectParentBranch,
5
+ launch,
6
+ readContextLines,
7
+ refuseReason,
8
+ resolveRepoDiff,
9
+ resolveSchema,
10
+ resolveWebRoot,
11
+ serveSpa,
12
+ sessionBaseForPath,
13
+ submitReviewSchema
14
+ } from "./chunk-YJ4CAD3X.js";
2
15
  import {
3
16
  ensureAgentPath,
4
17
  findOnPath
5
- } from "./chunk-OUWKEJEC.js";
18
+ } from "./chunk-ZGPWIBSZ.js";
6
19
  import {
7
20
  defaultTimeDeps,
8
21
  fetchIssueDetail,
@@ -15,7 +28,7 @@ import {
15
28
  graphProblem,
16
29
  signOutGraph,
17
30
  startDeviceLogin
18
- } from "./chunk-VDYX4R6U.js";
31
+ } from "./chunk-J5CMORVD.js";
19
32
  import {
20
33
  addTask,
21
34
  completeTask,
@@ -23,20 +36,7 @@ import {
23
36
  getTasks,
24
37
  removeTask,
25
38
  uncompleteTask
26
- } from "./chunk-CRPV5YCC.js";
27
- import {
28
- commentInputSchema,
29
- detectParentBranch,
30
- launch,
31
- readContextLines,
32
- refuseReason,
33
- resolveRepoDiff,
34
- resolveSchema,
35
- resolveWebRoot,
36
- serveSpa,
37
- sessionBaseForPath,
38
- submitReviewSchema
39
- } from "./chunk-NW2ZXAJJ.js";
39
+ } from "./chunk-46UTKL5L.js";
40
40
  import {
41
41
  announceChange,
42
42
  createArchivedRows,
@@ -51,10 +51,15 @@ import {
51
51
  stageSeenKey,
52
52
  storeHolding,
53
53
  withRestoring
54
- } from "./chunk-CXCMATZG.js";
54
+ } from "./chunk-5GA3PFK5.js";
55
+ import {
56
+ DiffStatCache,
57
+ findOverlaps,
58
+ wantsDiffStat
59
+ } from "./chunk-UHYIB6AV.js";
55
60
  import {
56
61
  createDigestSource
57
- } from "./chunk-H756AOOW.js";
62
+ } from "./chunk-PIKOCEWX.js";
58
63
  import {
59
64
  agentsBySession,
60
65
  createBuildFoldersJob,
@@ -63,22 +68,38 @@ import {
63
68
  deleteMergedBranches,
64
69
  findMergedBranches,
65
70
  summarizeAgents
66
- } from "./chunk-YLIPAOBT.js";
71
+ } from "./chunk-AFW7HREX.js";
67
72
  import {
68
73
  defaultCleanupDeps
69
- } from "./chunk-R5IJHLHA.js";
74
+ } from "./chunk-KUVL75PL.js";
70
75
  import {
71
- DiffStatCache,
72
- findOverlaps,
73
- wantsDiffStat
74
- } from "./chunk-4YCWUHVE.js";
76
+ buildUsage,
77
+ realUsageDeps,
78
+ setupAgentUsage
79
+ } from "./chunk-DYJ4VJJD.js";
80
+ import {
81
+ sendToSession
82
+ } from "./chunk-RYNBBSLY.js";
75
83
  import {
76
84
  LATER_TEXT,
77
85
  restartCountsText
78
86
  } from "./chunk-TNJF7T33.js";
79
87
  import {
80
- sendToSession
81
- } from "./chunk-RYNBBSLY.js";
88
+ BehindCache,
89
+ behindMain,
90
+ mergedParent,
91
+ moveOntoMain,
92
+ parentTipFor,
93
+ retargetBlocker,
94
+ retargetIsClean,
95
+ retargetOntoMain,
96
+ sessionStacks,
97
+ stackChildCounts,
98
+ stackParents,
99
+ stackedOn,
100
+ updateFromBase,
101
+ updateFromMain
102
+ } from "./chunk-5WEDCEZG.js";
82
103
  import {
83
104
  applyPlacePatch,
84
105
  applySectionOp,
@@ -87,13 +108,13 @@ import {
87
108
  cleanSectionOp,
88
109
  placeSession,
89
110
  readRailLayout
90
- } from "./chunk-ZO6MZNLI.js";
111
+ } from "./chunk-R3DASZQF.js";
91
112
  import {
92
113
  MAX_NOTE_CHARS,
93
114
  readNote,
94
115
  saveNote,
95
116
  sessionsWithNotes
96
- } from "./chunk-OUUDQA7O.js";
117
+ } from "./chunk-YNHIMOE7.js";
97
118
  import {
98
119
  addBlocker,
99
120
  allBlocks,
@@ -104,21 +125,43 @@ import {
104
125
  removeBlocker,
105
126
  sweepBlocks,
106
127
  unblockedPrompt
107
- } from "./chunk-WDV6VTVI.js";
128
+ } from "./chunk-LQXGNO5X.js";
108
129
  import {
109
130
  jiraWorklogPoster,
110
131
  logWorkDay,
111
132
  loggedDays,
112
133
  worklogSettings
113
- } from "./chunk-56P7G2DI.js";
134
+ } from "./chunk-PUTZR6F5.js";
114
135
  import {
115
136
  sessionWorkTime
116
- } from "./chunk-3HJASVHJ.js";
137
+ } from "./chunk-LWKFZOCJ.js";
138
+ import {
139
+ DEFAULT_CATCH_UP_DAYS,
140
+ addDays,
141
+ buildDay,
142
+ dayChange,
143
+ dayWire,
144
+ dayWireOf,
145
+ daysBetween,
146
+ daysWire,
147
+ daysWireOf,
148
+ isDay,
149
+ localDay,
150
+ postStoredDay,
151
+ readDays,
152
+ tempoClient,
153
+ tempoSetup,
154
+ timeRange,
155
+ updateDay
156
+ } from "./chunk-TPPTL7LA.js";
157
+ import {
158
+ isOwnCheckout
159
+ } from "./chunk-TUFQJXXO.js";
117
160
  import {
118
161
  checkTools,
119
162
  saveFolders,
120
163
  setupState
121
- } from "./chunk-PDYO56JU.js";
164
+ } from "./chunk-LDFICXOZ.js";
122
165
  import {
123
166
  RepoAdminError,
124
167
  deleteGroup,
@@ -128,7 +171,7 @@ import {
128
171
  saveGroup,
129
172
  setRepoIgnored,
130
173
  setScanRoot
131
- } from "./chunk-G5W6D7KQ.js";
174
+ } from "./chunk-ZNXACRZ5.js";
132
175
  import {
133
176
  freeLeftovers,
134
177
  leftoversOf,
@@ -136,20 +179,16 @@ import {
136
179
  openInLeftovers,
137
180
  parsePrRef,
138
181
  resolvePrToStart
139
- } from "./chunk-MYDQNX7W.js";
182
+ } from "./chunk-KU63EHZO.js";
140
183
  import {
141
184
  editorArgs,
142
185
  openUrl
143
- } from "./chunk-SMZ7W34L.js";
186
+ } from "./chunk-EPNYZJMM.js";
144
187
  import {
145
188
  archiveMergedSession,
146
189
  archiveWaiting,
147
190
  defaultArchiveDeps
148
- } from "./chunk-ANWA4Z56.js";
149
- import {
150
- cleanupVerdict,
151
- createCleanupJob
152
- } from "./chunk-AKMPF72Y.js";
191
+ } from "./chunk-C5HPSURF.js";
153
192
  import {
154
193
  MAX_REPLY_CHARS,
155
194
  THREAD_ID,
@@ -164,11 +203,19 @@ import {
164
203
  rememberSent,
165
204
  retireResolvedReplies,
166
205
  sessionRepoRefs
167
- } from "./chunk-P2THO7D7.js";
206
+ } from "./chunk-3JY3QT4J.js";
207
+ import {
208
+ cleanupVerdict,
209
+ createCleanupJob
210
+ } from "./chunk-AKMPF72Y.js";
211
+ import {
212
+ sessionStatusView,
213
+ shownState
214
+ } from "./chunk-5BNNPXID.js";
168
215
  import {
169
216
  listProcesses,
170
217
  runningFromNames
171
- } from "./chunk-Z3NQJALE.js";
218
+ } from "./chunk-B7C3RYSJ.js";
172
219
  import {
173
220
  fetchAllPullRequests
174
221
  } from "./chunk-VTLDYH3C.js";
@@ -181,7 +228,17 @@ import {
181
228
  defaultForkDeps,
182
229
  forkSession,
183
230
  startSessionWithPrompt
184
- } from "./chunk-2MAGDOLP.js";
231
+ } from "./chunk-QGKJXCEJ.js";
232
+ import {
233
+ askCatchUp,
234
+ cachedCatchUp,
235
+ catchUp,
236
+ catchUpFacts,
237
+ forgetCatchUp
238
+ } from "./chunk-MCSEYS2J.js";
239
+ import {
240
+ resolveWorkBinPath
241
+ } from "./chunk-AH5TM3NB.js";
185
242
  import {
186
243
  childText,
187
244
  createInChild,
@@ -189,10 +246,17 @@ import {
189
246
  keyedQueue,
190
247
  oneAtATime,
191
248
  runWorkChild
192
- } from "./chunk-VMLRIO4T.js";
249
+ } from "./chunk-4PRPDACI.js";
193
250
  import {
194
- resolveWorkBinPath
195
- } from "./chunk-AH5TM3NB.js";
251
+ runInternal,
252
+ summarizeCheckpoint,
253
+ throttleTrailing
254
+ } from "./chunk-W7WC7UA2.js";
255
+ import {
256
+ computeDiff,
257
+ computeRangeDiff,
258
+ parseGitDiff
259
+ } from "./chunk-B2HUKRWX.js";
196
260
  import {
197
261
  configurePtyPool,
198
262
  detachPtyPool,
@@ -217,110 +281,22 @@ import {
217
281
  subscribeSession,
218
282
  syncPtyPool,
219
283
  writeToPty
220
- } from "./chunk-4LFJM4UN.js";
284
+ } from "./chunk-ZS6F6JLC.js";
221
285
  import {
222
286
  dbPtySessions
223
- } from "./chunk-4RDAWJZY.js";
224
- import "./chunk-DAQCIJHW.js";
225
- import {
226
- addRepoRefusal,
227
- addedRepoNote
228
- } from "./chunk-QKF7CNIM.js";
229
- import {
230
- teardownWorktree,
231
- toBaseSpec,
232
- wouldRefuseRemoval
233
- } from "./chunk-72U52KTJ.js";
234
- import "./chunk-EUAJT7FS.js";
235
- import {
236
- isWorktreeFolder
237
- } from "./chunk-KUCMJHQW.js";
238
- import "./chunk-PSUJZUYX.js";
239
- import "./chunk-5WM24P5N.js";
240
- import {
241
- BehindCache,
242
- behindMain,
243
- mergedParent,
244
- moveOntoMain,
245
- parentTipFor,
246
- retargetBlocker,
247
- retargetIsClean,
248
- retargetOntoMain,
249
- sessionStacks,
250
- stackChildCounts,
251
- stackParents,
252
- stackedOn,
253
- updateFromBase,
254
- updateFromMain
255
- } from "./chunk-VIWPTRRR.js";
256
- import {
257
- sessionStatusView,
258
- shownState
259
- } from "./chunk-4IEQ7LY4.js";
260
- import {
261
- defaultRunner,
262
- mergeSelected,
263
- runShipAction,
264
- shipPreflight
265
- } from "./chunk-3GIH4WTA.js";
266
- import {
267
- askCatchUp,
268
- cachedCatchUp,
269
- catchUp,
270
- catchUpFacts,
271
- forgetCatchUp
272
- } from "./chunk-I5V34WWS.js";
273
- import {
274
- runInternal,
275
- summarizeCheckpoint,
276
- throttleTrailing
277
- } from "./chunk-KWRE6HQN.js";
278
- import {
279
- computeDiff,
280
- computeRangeDiff,
281
- parseGitDiff
282
- } from "./chunk-G7TS5DCS.js";
283
- import {
284
- packageRoot
285
- } from "./chunk-LNHSBM4L.js";
286
- import {
287
- VERSION
288
- } from "./chunk-M2ZJ64JV.js";
289
- import {
290
- resolveProjectTarget
291
- } from "./chunk-CGVYVTGF.js";
292
- import {
293
- git
294
- } from "./chunk-G635EV2D.js";
295
- import {
296
- DEFAULT_CATCH_UP_DAYS,
297
- addDays,
298
- buildDay,
299
- dayChange,
300
- dayWire,
301
- dayWireOf,
302
- daysBetween,
303
- daysWire,
304
- daysWireOf,
305
- isDay,
306
- localDay,
307
- postStoredDay,
308
- readDays,
309
- tempoClient,
310
- tempoSetup,
311
- timeRange,
312
- updateDay
313
- } from "./chunk-GTVQYGY3.js";
314
- import {
315
- isOwnCheckout
316
- } from "./chunk-TUFQJXXO.js";
287
+ } from "./chunk-TBY6ZFAV.js";
288
+ import "./chunk-CFLMBFBO.js";
317
289
  import {
318
290
  ASSISTANT_ID,
319
291
  CONTEXT_WARN,
320
292
  assistantDir,
321
293
  describeView,
322
294
  writeAssistantContext
323
- } from "./chunk-YSGXXNBL.js";
295
+ } from "./chunk-BHU26CNH.js";
296
+ import {
297
+ addRepoRefusal,
298
+ addedRepoNote
299
+ } from "./chunk-TTTIKTNR.js";
324
300
  import {
325
301
  clearDevWebDiscovery,
326
302
  clearWebDiscovery,
@@ -332,20 +308,49 @@ import {
332
308
  readWebUrl,
333
309
  writeDevWebDiscovery,
334
310
  writeWebDiscovery
335
- } from "./chunk-TJFX5BWH.js";
311
+ } from "./chunk-DO5NW46X.js";
336
312
  import {
337
313
  NOTE_NUDGE,
338
314
  findSessionForCwd,
339
315
  readPendingForSession,
340
316
  readPendingForWorktree
341
- } from "./chunk-C6STZ6HD.js";
317
+ } from "./chunk-3UHKPHTB.js";
318
+ import "./chunk-ZSHWP2VS.js";
342
319
  import {
343
320
  getCommentFileStore
344
- } from "./chunk-EYUBVLPF.js";
345
- import "./chunk-ZSHWP2VS.js";
321
+ } from "./chunk-SNRP2MC3.js";
346
322
  import {
347
323
  createCommentStore
348
324
  } from "./chunk-HUXS3VAI.js";
325
+ import {
326
+ teardownWorktree,
327
+ toBaseSpec,
328
+ wouldRefuseRemoval
329
+ } from "./chunk-BVJ2ZE7B.js";
330
+ import "./chunk-G2FE7HUB.js";
331
+ import {
332
+ isWorktreeFolder
333
+ } from "./chunk-KUCMJHQW.js";
334
+ import "./chunk-PSUJZUYX.js";
335
+ import "./chunk-5WM24P5N.js";
336
+ import {
337
+ defaultRunner,
338
+ mergeSelected,
339
+ runShipAction,
340
+ shipPreflight
341
+ } from "./chunk-3GIH4WTA.js";
342
+ import {
343
+ packageRoot
344
+ } from "./chunk-LNHSBM4L.js";
345
+ import {
346
+ VERSION
347
+ } from "./chunk-3Q5RZCQW.js";
348
+ import {
349
+ resolveProjectTarget
350
+ } from "./chunk-VEKEA3ER.js";
351
+ import {
352
+ git
353
+ } from "./chunk-O34CKSE4.js";
349
354
  import {
350
355
  DECISION_MARKER,
351
356
  STAGE_WANTS_YOU,
@@ -426,38 +431,42 @@ import {
426
431
  updateCheckpoint,
427
432
  whileRestoring,
428
433
  writeArchiveRecord
429
- } from "./chunk-JUMZ5MTU.js";
434
+ } from "./chunk-MGQK6BWH.js";
435
+ import {
436
+ dayKey
437
+ } from "./chunk-NEJVK5CF.js";
438
+ import {
439
+ json,
440
+ pendingMigration,
441
+ revision,
442
+ sessionIdFor,
443
+ tx,
444
+ withDb
445
+ } from "./chunk-COKQPFLB.js";
430
446
  import {
431
447
  activityRoots,
432
448
  agentFor,
433
449
  agentOf,
434
450
  agentWriteMs,
435
- detachHere,
436
- isPidAlive,
437
451
  knownAgents,
438
452
  lineTimeOf,
439
453
  liveAgents,
440
- readJsonlSince,
454
+ readJsonlSince
455
+ } from "./chunk-FUNZ7TOS.js";
456
+ import {
457
+ usageDir
458
+ } from "./chunk-ZMCU2PZN.js";
459
+ import {
460
+ detachHere,
461
+ isPidAlive,
441
462
  recentProcessTable
442
- } from "./chunk-VESYLAVA.js";
463
+ } from "./chunk-VMBWCDBA.js";
443
464
  import {
444
465
  spawn_default
445
466
  } from "./chunk-RCYI7SRA.js";
446
- import {
447
- dayKey
448
- } from "./chunk-NEJVK5CF.js";
449
- import {
450
- json,
451
- pendingMigration,
452
- revision,
453
- sessionIdFor,
454
- tx,
455
- withDb
456
- } from "./chunk-JF72AS6T.js";
457
467
  import {
458
468
  report
459
- } from "./chunk-ZGXRWL7T.js";
460
- import "./chunk-75MIXOUK.js";
469
+ } from "./chunk-JIYGGN2N.js";
461
470
  import {
462
471
  DEFAULT_PROMPTS,
463
472
  DEFAULT_TIME_SETTINGS,
@@ -465,13 +474,13 @@ import {
465
474
  getConfigDir,
466
475
  isWorkday,
467
476
  loadConfig
468
- } from "./chunk-RYEPQLXQ.js";
477
+ } from "./chunk-KE2TFF7B.js";
469
478
 
470
479
  // src/commands/web.ts
471
480
  import chalk from "chalk";
472
481
 
473
482
  // src/server/web-server.ts
474
- import fs14 from "fs";
483
+ import fs15 from "fs";
475
484
 
476
485
  // src/core/conversations/last-reply.ts
477
486
  function lastReplyOf(entries) {
@@ -1790,6 +1799,88 @@ function mountAppUpdateRoutes(app, opts) {
1790
1799
  });
1791
1800
  }
1792
1801
 
1802
+ // src/server/routes/usage-routes.ts
1803
+ import fs5 from "fs";
1804
+ var FRESH_MS = 5e3;
1805
+ function createUsageCache(build, ttlMs = FRESH_MS, now = Date.now) {
1806
+ let last = null;
1807
+ let inFlight = null;
1808
+ let gen = 0;
1809
+ return {
1810
+ get() {
1811
+ if (last && last.gen === gen && now() - last.at < ttlMs) return Promise.resolve(last.value);
1812
+ if (inFlight && inFlight.gen === gen) return inFlight.p;
1813
+ const mine = gen;
1814
+ const p = build().then((value) => {
1815
+ if (mine === gen) last = { at: now(), gen: mine, value };
1816
+ return value;
1817
+ });
1818
+ const flight = { gen: mine, p };
1819
+ inFlight = flight;
1820
+ void p.then(
1821
+ () => inFlight === flight ? inFlight = null : void 0,
1822
+ () => inFlight === flight ? inFlight = null : void 0
1823
+ );
1824
+ return p;
1825
+ },
1826
+ invalidate() {
1827
+ gen++;
1828
+ }
1829
+ };
1830
+ }
1831
+ function mountUsageRoutes(app, opts) {
1832
+ app.get("/api/usage", async (c) => {
1833
+ try {
1834
+ return c.json(await opts.build());
1835
+ } catch (e) {
1836
+ const why = e instanceof Error ? e.message : String(e);
1837
+ report("warn", `[usage] GET /api/usage failed: ${why}`);
1838
+ return c.json({ error: why }, 500);
1839
+ }
1840
+ });
1841
+ }
1842
+ var THROTTLE_MS = 2e3;
1843
+ function watchUsage(opts) {
1844
+ const throttleMs = opts.throttleMs ?? THROTTLE_MS;
1845
+ const dir = opts.dir ?? usageDir();
1846
+ let last = 0;
1847
+ let timer = null;
1848
+ const send = () => {
1849
+ last = Date.now();
1850
+ opts.broadcast("usage-changed", { ts: last });
1851
+ };
1852
+ const onChange = () => {
1853
+ opts.onChange?.();
1854
+ if (timer) return;
1855
+ const wait = last + throttleMs - Date.now();
1856
+ if (wait <= 0) return send();
1857
+ timer = setTimeout(() => {
1858
+ timer = null;
1859
+ send();
1860
+ }, wait);
1861
+ timer.unref?.();
1862
+ };
1863
+ let watcher = null;
1864
+ try {
1865
+ fs5.mkdirSync(dir, { recursive: true });
1866
+ watcher = createFsWatcher({ roots: [dir], onChange });
1867
+ } catch (e) {
1868
+ report("warn", `[usage] not watching ${dir}: ${e instanceof Error ? e.message : String(e)}`);
1869
+ }
1870
+ return {
1871
+ stop() {
1872
+ if (timer) clearTimeout(timer);
1873
+ timer = null;
1874
+ watcher?.stop();
1875
+ }
1876
+ };
1877
+ }
1878
+ function wireUsage(app, opts) {
1879
+ const cache = createUsageCache(opts.build, opts.ttlMs);
1880
+ mountUsageRoutes(app, { broadcast: opts.broadcast, build: () => cache.get() });
1881
+ return watchUsage({ broadcast: opts.broadcast, onChange: () => cache.invalidate(), dir: opts.dir, throttleMs: opts.throttleMs });
1882
+ }
1883
+
1793
1884
  // src/server/routes/repo-routes.ts
1794
1885
  import crossSpawn from "cross-spawn";
1795
1886
  function mountRepoRoutes(app, opts) {
@@ -1986,7 +2077,7 @@ function mountBlockRoutes(app, opts) {
1986
2077
  }
1987
2078
 
1988
2079
  // src/server/routes/jira-watch-routes.ts
1989
- import fs5 from "fs";
2080
+ import fs6 from "fs";
1990
2081
  import path5 from "path";
1991
2082
 
1992
2083
  // src/core/jira/jira-prompt.ts
@@ -2208,16 +2299,16 @@ async function sweepJira(deps) {
2208
2299
  var EVERY_MS = 5 * 6e4;
2209
2300
  function aboutRepo(dir) {
2210
2301
  try {
2211
- const readme = ["README.md", "readme.md", "README"].map((n) => path5.join(dir, n)).find((f) => fs5.existsSync(f));
2302
+ const readme = ["README.md", "readme.md", "README"].map((n) => path5.join(dir, n)).find((f) => fs6.existsSync(f));
2212
2303
  if (readme) {
2213
- const line = fs5.readFileSync(readme, "utf8").split(/\r?\n/).map(
2304
+ const line = fs6.readFileSync(readme, "utf8").split(/\r?\n/).map(
2214
2305
  (l) => l.replace(/^[#>*\-\s]+/, "").replace(/[`*_[\]]/g, "").trim()
2215
2306
  ).find((l) => l.length > 20 && !/^(!|<|http)/.test(l));
2216
2307
  if (line) return line.slice(0, 160);
2217
2308
  }
2218
2309
  const pkg = path5.join(dir, "package.json");
2219
- if (fs5.existsSync(pkg)) {
2220
- const d = JSON.parse(fs5.readFileSync(pkg, "utf8")).description;
2310
+ if (fs6.existsSync(pkg)) {
2311
+ const d = JSON.parse(fs6.readFileSync(pkg, "utf8")).description;
2221
2312
  if (typeof d === "string" && d.trim()) return d.trim().slice(0, 160);
2222
2313
  }
2223
2314
  } catch {
@@ -2705,7 +2796,7 @@ function mountPanesRoutes(app, opts) {
2705
2796
  }
2706
2797
 
2707
2798
  // src/server/routes/worktree-routes.ts
2708
- import fs6 from "fs";
2799
+ import fs7 from "fs";
2709
2800
  import path6 from "path";
2710
2801
  import { spawn } from "child_process";
2711
2802
  import crossSpawn2 from "cross-spawn";
@@ -2802,7 +2893,7 @@ function mountWorktreeRoutes(app, opts) {
2802
2893
  if (waiting.length) return { body: { error: `Not deleted: ${waiting.join("; ")}.`, blocked: waiting }, status: 409 };
2803
2894
  }
2804
2895
  try {
2805
- const onDisk = session.paths.some((p) => fs6.existsSync(p));
2896
+ const onDisk = session.paths.some((p) => fs7.existsSync(p));
2806
2897
  if (!sessionOnly && onDisk && session.paths.some((p) => wouldRefuseRemoval(p, force ?? false))) {
2807
2898
  return { body: { error: REFUSED }, status: 409 };
2808
2899
  }
@@ -3846,7 +3937,7 @@ function mountRailRoutes(app, opts) {
3846
3937
  }
3847
3938
 
3848
3939
  // src/core/worktree/shared-folders.ts
3849
- import fs7 from "fs";
3940
+ import fs8 from "fs";
3850
3941
  import path9 from "path";
3851
3942
  var norm = (p) => path9.resolve(p).replace(/\\/g, "/").toLowerCase();
3852
3943
  function shadowedSessions(sessions, branchCheckedOut2) {
@@ -3869,12 +3960,12 @@ function branchCheckedOut(dir) {
3869
3960
  try {
3870
3961
  const dotGit = path9.join(dir, ".git");
3871
3962
  let gitDir = dotGit;
3872
- if (fs7.statSync(dotGit).isFile()) {
3873
- const m = /^gitdir:\s*(.+)$/m.exec(fs7.readFileSync(dotGit, "utf8"));
3963
+ if (fs8.statSync(dotGit).isFile()) {
3964
+ const m = /^gitdir:\s*(.+)$/m.exec(fs8.readFileSync(dotGit, "utf8"));
3874
3965
  if (!m) return null;
3875
3966
  gitDir = path9.resolve(dir, m[1].trim());
3876
3967
  }
3877
- const head = fs7.readFileSync(path9.join(gitDir, "HEAD"), "utf8");
3968
+ const head = fs8.readFileSync(path9.join(gitDir, "HEAD"), "utf8");
3878
3969
  const ref = /^ref:\s*refs\/heads\/(.+)$/m.exec(head);
3879
3970
  return ref ? ref[1].trim() : null;
3880
3971
  } catch {
@@ -3883,14 +3974,14 @@ function branchCheckedOut(dir) {
3883
3974
  }
3884
3975
 
3885
3976
  // src/core/platform/build-stamp.ts
3886
- import fs8 from "fs";
3977
+ import fs9 from "fs";
3887
3978
  var cached = null;
3888
3979
  function buildStamp() {
3889
3980
  if (cached) return cached;
3890
3981
  const forced = process.env.WORK_BUILD_STAMP;
3891
3982
  if (forced) return cached = forced;
3892
3983
  try {
3893
- cached = String(Math.floor(fs8.statSync(process.argv[1]).mtimeMs));
3984
+ cached = String(Math.floor(fs9.statSync(process.argv[1]).mtimeMs));
3894
3985
  } catch {
3895
3986
  cached = "unknown";
3896
3987
  }
@@ -4193,7 +4284,7 @@ function mountPrReplyRoutes(app, opts) {
4193
4284
  }
4194
4285
 
4195
4286
  // src/core/archive/archive-retention.ts
4196
- import fs9 from "fs";
4287
+ import fs10 from "fs";
4197
4288
  import path10 from "path";
4198
4289
  import zlib from "zlib";
4199
4290
  var DEFAULT_COMPRESS_AFTER_DAYS = 30;
@@ -4206,7 +4297,7 @@ function applyArchiveRetention(opts) {
4206
4297
  const out = { compressed: [], dropped: [], bytesSaved: 0 };
4207
4298
  let ids;
4208
4299
  try {
4209
- ids = fs9.readdirSync(root, { withFileTypes: true }).filter((d) => d.isDirectory()).map((d) => d.name);
4300
+ ids = fs10.readdirSync(root, { withFileTypes: true }).filter((d) => d.isDirectory()).map((d) => d.name);
4210
4301
  } catch {
4211
4302
  return out;
4212
4303
  }
@@ -4216,8 +4307,8 @@ function applyArchiveRetention(opts) {
4216
4307
  const age = now - Date.parse(rec.archivedAt);
4217
4308
  if (!Number.isFinite(age)) continue;
4218
4309
  const ignored = path10.join(archiveDirFor(id, root), "ignored");
4219
- if (compressAfter > 0 && age >= compressAfter * DAY_MS && !rec.ignoredDroppedAt && fs9.existsSync(ignored)) {
4220
- fs9.rmSync(ignored, { recursive: true, force: true });
4310
+ if (compressAfter > 0 && age >= compressAfter * DAY_MS && !rec.ignoredDroppedAt && fs10.existsSync(ignored)) {
4311
+ fs10.rmSync(ignored, { recursive: true, force: true });
4221
4312
  rec.ignoredDroppedAt = new Date(now).toISOString();
4222
4313
  writeArchiveRecord(rec, root);
4223
4314
  }
@@ -4225,7 +4316,7 @@ function applyArchiveRetention(opts) {
4225
4316
  const dir = path10.join(archiveDirFor(id, root), "transcripts");
4226
4317
  if (dropAfter > 0 && age >= dropAfter * DAY_MS) {
4227
4318
  out.bytesSaved += dirBytes(dir);
4228
- fs9.rmSync(dir, { recursive: true, force: true });
4319
+ fs10.rmSync(dir, { recursive: true, force: true });
4229
4320
  rec.transcriptsDroppedAt = new Date(now).toISOString();
4230
4321
  writeArchiveRecord(rec, root);
4231
4322
  out.dropped.push(id);
@@ -4234,15 +4325,15 @@ function applyArchiveRetention(opts) {
4234
4325
  if (compressAfter <= 0 || rec.compressedAt || age < compressAfter * DAY_MS) continue;
4235
4326
  for (const t of rec.transcripts) {
4236
4327
  const plain = path10.join(dir, t.file);
4237
- if (!fs9.existsSync(plain)) continue;
4238
- const data = fs9.readFileSync(plain);
4328
+ if (!fs10.existsSync(plain)) continue;
4329
+ const data = fs10.readFileSync(plain);
4239
4330
  const gz = zlib.gzipSync(data);
4240
- fs9.writeFileSync(`${plain}.gz`, gz);
4241
- if (!zlib.gunzipSync(fs9.readFileSync(`${plain}.gz`)).equals(data)) {
4242
- fs9.rmSync(`${plain}.gz`, { force: true });
4331
+ fs10.writeFileSync(`${plain}.gz`, gz);
4332
+ if (!zlib.gunzipSync(fs10.readFileSync(`${plain}.gz`)).equals(data)) {
4333
+ fs10.rmSync(`${plain}.gz`, { force: true });
4243
4334
  continue;
4244
4335
  }
4245
- fs9.rmSync(plain, { force: true });
4336
+ fs10.rmSync(plain, { force: true });
4246
4337
  out.bytesSaved += data.length - gz.length;
4247
4338
  }
4248
4339
  rec.compressedAt = new Date(now).toISOString();
@@ -4254,7 +4345,7 @@ function applyArchiveRetention(opts) {
4254
4345
  function dirBytes(dir) {
4255
4346
  let n = 0;
4256
4347
  try {
4257
- for (const f of fs9.readdirSync(dir)) n += fs9.statSync(path10.join(dir, f)).size;
4348
+ for (const f of fs10.readdirSync(dir)) n += fs10.statSync(path10.join(dir, f)).size;
4258
4349
  } catch {
4259
4350
  }
4260
4351
  return n;
@@ -4464,7 +4555,7 @@ import { zValidator as zValidator7 } from "@hono/zod-validator";
4464
4555
  import { z as z6 } from "zod";
4465
4556
 
4466
4557
  // src/core/diff/revert.ts
4467
- import fs10 from "fs";
4558
+ import fs11 from "fs";
4468
4559
  import path11 from "path";
4469
4560
  function inside(root, rel) {
4470
4561
  const abs = path11.resolve(root, rel);
@@ -4479,7 +4570,7 @@ function removeNew(root, rel) {
4479
4570
  const abs = inside(root, rel);
4480
4571
  if (!abs) return { ok: false, status: 400, error: `path escapes the worktree: ${rel}` };
4481
4572
  git(["rm", "--cached", "-q", "--ignore-unmatch", "--", rel], root);
4482
- fs10.rmSync(abs, { force: true });
4573
+ fs11.rmSync(abs, { force: true });
4483
4574
  return null;
4484
4575
  }
4485
4576
  function revertFile(root, file) {
@@ -4640,7 +4731,7 @@ function mountDevRoutes(app, opts) {
4640
4731
  }
4641
4732
 
4642
4733
  // src/server/routes/ci-routes.ts
4643
- import fs11 from "fs";
4734
+ import fs12 from "fs";
4644
4735
 
4645
4736
  // src/core/pr/review-quote.ts
4646
4737
  function quoteForAgent(s, max = 600) {
@@ -5184,7 +5275,7 @@ async function wakeForNote(id) {
5184
5275
  const url = await ensurePty(id, { initialPrompt: WAKE_PROMPT }).catch(() => null);
5185
5276
  return url ? "started" : "failed";
5186
5277
  }
5187
- var FRESH_MS = 6e4;
5278
+ var FRESH_MS2 = 6e4;
5188
5279
  function midTurn(id) {
5189
5280
  return turnInProgress(readStatus(id));
5190
5281
  }
@@ -5193,7 +5284,7 @@ function mountCiRoutes(app, opts) {
5193
5284
  lookOnly: opts.lookOnly,
5194
5285
  sessions: () => {
5195
5286
  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 }));
5287
+ return loadHistory().filter((s) => watchable(s, now, { exists: (p) => fs12.existsSync(p), lastWriteMs: lastConversationWriteMs })).map((session) => ({ id: sessionIdFor(session), session }));
5197
5288
  },
5198
5289
  // Never-pushed branches can't have a PR: don't ask GitHub about them,
5199
5290
  // unless the watch already knows one (a merged PR whose branch is gone).
@@ -5232,7 +5323,7 @@ function mountCiRoutes(app, opts) {
5232
5323
  },
5233
5324
  retireReplies: async (id, ci) => {
5234
5325
  const s = findSession2(id);
5235
- const gone = await retireResolvedReplies(id, ci, s?.paths.find((p) => fs11.existsSync(p)) ?? null, defaultRunner);
5326
+ const gone = await retireResolvedReplies(id, ci, s?.paths.find((p) => fs12.existsSync(p)) ?? null, defaultRunner);
5236
5327
  if (gone.length) opts.broadcast("replies-changed", { sessionId: id });
5237
5328
  return gone;
5238
5329
  },
@@ -5255,7 +5346,7 @@ function mountCiRoutes(app, opts) {
5255
5346
  const id = c.req.param("id");
5256
5347
  if (!findSession2(id)) return c.json({ error: "unknown session" }, 404);
5257
5348
  const cached2 = watch.state(id);
5258
- if (cached2 && Date.now() - Date.parse(cached2.checkedAt) < FRESH_MS) return c.json(cached2);
5349
+ if (cached2 && Date.now() - Date.parse(cached2.checkedAt) < FRESH_MS2) return c.json(cached2);
5259
5350
  return c.json(await watch.refresh(id, { act: false }) ?? { checkedAt: (/* @__PURE__ */ new Date()).toISOString(), repos: [] });
5260
5351
  });
5261
5352
  app.post("/api/sessions/:id/ci/fix", async (c) => {
@@ -5268,7 +5359,7 @@ function mountCiRoutes(app, opts) {
5268
5359
  }
5269
5360
 
5270
5361
  // src/core/diff/diffs-sweep.ts
5271
- import fs12 from "fs";
5362
+ import fs13 from "fs";
5272
5363
  import path13 from "path";
5273
5364
  var SWEEP_AFTER_DAYS = 30;
5274
5365
  var DISPOSABLE = /\.(html|log)$/i;
@@ -5278,7 +5369,7 @@ function sweepOldDiffArtifacts(now = Date.now(), maxAgeDays = SWEEP_AFTER_DAYS,
5278
5369
  let bytes = 0;
5279
5370
  let names;
5280
5371
  try {
5281
- names = fs12.readdirSync(dir);
5372
+ names = fs13.readdirSync(dir);
5282
5373
  } catch {
5283
5374
  return { removed, bytes };
5284
5375
  }
@@ -5286,9 +5377,9 @@ function sweepOldDiffArtifacts(now = Date.now(), maxAgeDays = SWEEP_AFTER_DAYS,
5286
5377
  if (!DISPOSABLE.test(name)) continue;
5287
5378
  const file = path13.join(dir, name);
5288
5379
  try {
5289
- const st = fs12.statSync(file);
5380
+ const st = fs13.statSync(file);
5290
5381
  if (!st.isFile() || st.mtimeMs >= cutoff) continue;
5291
- fs12.rmSync(file, { force: true });
5382
+ fs13.rmSync(file, { force: true });
5292
5383
  removed++;
5293
5384
  bytes += st.size;
5294
5385
  } catch {
@@ -5545,13 +5636,13 @@ async function bridgeToHost(ws, sessionId, pending) {
5545
5636
  }
5546
5637
 
5547
5638
  // src/core/pty/agent-restart.ts
5548
- import fs13 from "fs";
5639
+ import fs14 from "fs";
5549
5640
  var PACKED_MTIME_BEFORE = Date.parse("1990-01-01T00:00:00Z");
5550
5641
  function installedAt(cmd, find = findOnPath) {
5551
5642
  const file = find(cmd);
5552
5643
  if (!file) return null;
5553
5644
  try {
5554
- return installTime(fs13.statSync(fs13.realpathSync(file)));
5645
+ return installTime(fs14.statSync(fs14.realpathSync(file)));
5555
5646
  } catch {
5556
5647
  return null;
5557
5648
  }
@@ -5867,7 +5958,7 @@ async function startWebServer(opts = {}) {
5867
5958
  let activityWatcher = null;
5868
5959
  if (!lean) {
5869
5960
  try {
5870
- const roots = activityRoots().filter((r) => fs14.existsSync(r));
5961
+ const roots = activityRoots().filter((r) => fs15.existsSync(r));
5871
5962
  if (roots.length > 0) {
5872
5963
  activityWatcher = createFsWatcher({
5873
5964
  roots,
@@ -6410,7 +6501,8 @@ async function startWebServer(opts = {}) {
6410
6501
  updatesTimer?.unref?.();
6411
6502
  const desktopFile = desktopUpdatePath();
6412
6503
  const onDesktopUpdate = () => broadcast("updates-changed", { ts: Date.now() });
6413
- if (jobs) fs14.watchFile(desktopFile, { interval: 3e3 }, onDesktopUpdate);
6504
+ if (jobs) fs15.watchFile(desktopFile, { interval: 3e3 }, onDesktopUpdate);
6505
+ const usageWatcher = wireUsage(app, { broadcast, build: () => buildUsage(realUsageDeps()) });
6414
6506
  app.get("/api/pty-host/health", (c) => c.json(hostHealth(hostBeat())));
6415
6507
  let lastHostState = hostHealth(hostBeat()).state;
6416
6508
  const hostTick = lean ? null : setInterval(() => {
@@ -6476,7 +6568,8 @@ async function startWebServer(opts = {}) {
6476
6568
  if (timeFirst) clearTimeout(timeFirst);
6477
6569
  if (timeTimer) clearInterval(timeTimer);
6478
6570
  timeKeeper?.stop();
6479
- fs14.unwatchFile(desktopFile, onDesktopUpdate);
6571
+ fs15.unwatchFile(desktopFile, onDesktopUpdate);
6572
+ usageWatcher.stop();
6480
6573
  for (const t of conversationSyncs.values()) clearTimeout(t);
6481
6574
  clearTimeout(sweepTimer);
6482
6575
  activityWatcher?.stop();
@@ -6499,7 +6592,7 @@ async function startWebServer(opts = {}) {
6499
6592
  }
6500
6593
 
6501
6594
  // src/core/platform/autostart.ts
6502
- import fs15 from "fs";
6595
+ import fs16 from "fs";
6503
6596
  import path16 from "path";
6504
6597
  function startupScriptPath() {
6505
6598
  if (process.platform !== "win32" || !process.env.APPDATA) return null;
@@ -6521,11 +6614,11 @@ function setAutostart(enabled, workBin) {
6521
6614
  const file = startupScriptPath();
6522
6615
  if (!file) throw new Error("Autostart is only supported on Windows so far.");
6523
6616
  if (enabled) {
6524
- fs15.mkdirSync(path16.dirname(file), { recursive: true });
6525
- fs15.writeFileSync(file, buildStartupScript(process.execPath, workBin), "utf-8");
6617
+ fs16.mkdirSync(path16.dirname(file), { recursive: true });
6618
+ fs16.writeFileSync(file, buildStartupScript(process.execPath, workBin), "utf-8");
6526
6619
  } else {
6527
6620
  try {
6528
- fs15.unlinkSync(file);
6621
+ fs16.unlinkSync(file);
6529
6622
  } catch {
6530
6623
  }
6531
6624
  }
@@ -8031,6 +8124,61 @@ function demoSha(seed) {
8031
8124
  return out.slice(0, 40);
8032
8125
  }
8033
8126
 
8127
+ // src/server/demo/demo-usage.ts
8128
+ function demoUsage(now = Date.now()) {
8129
+ const monday = new Date(now);
8130
+ monday.setHours(9, 0, 0, 0);
8131
+ monday.setDate(monday.getDate() + ((8 - monday.getDay()) % 7 || 7));
8132
+ return {
8133
+ agents: [
8134
+ {
8135
+ agent: "claude",
8136
+ name: "Claude Code",
8137
+ accounts: [
8138
+ {
8139
+ account: "default",
8140
+ at: new Date(now - 6e4).toISOString(),
8141
+ windows: [
8142
+ { id: "five_hour", label: "5-hour limit", usedPercent: 42, resetsAt: new Date(now + 2 * 36e5).toISOString() },
8143
+ { id: "seven_day", label: "Weekly limit", usedPercent: 18, resetsAt: monday.toISOString() }
8144
+ ]
8145
+ }
8146
+ ]
8147
+ }
8148
+ ],
8149
+ tokens: {
8150
+ today: { input: 182e3, cached: 34e5, output: 61e3 },
8151
+ week: { input: 96e4, cached: 178e5, output: 318e3 },
8152
+ byModel: [
8153
+ {
8154
+ model: "claude-opus-5-5",
8155
+ today: { input: 12e4, cached: 25e5, output: 44e3 },
8156
+ week: { input: 7e5, cached: 131e5, output: 24e4 }
8157
+ },
8158
+ {
8159
+ model: "claude-haiku-4-5",
8160
+ today: { input: 62e3, cached: 9e5, output: 17e3 },
8161
+ week: { input: 26e4, cached: 47e5, output: 78e3 }
8162
+ }
8163
+ ],
8164
+ topSessions: [
8165
+ {
8166
+ id: "demo-api-feat-invoice-export",
8167
+ label: "api \xB7 feat/invoice-export",
8168
+ week: { input: 38e4, cached: 72e5, output: 12e4 }
8169
+ },
8170
+ { id: "demo-shop-feat-checkout-v2", label: "shop \xB7 feat/checkout-v2", week: { input: 25e4, cached: 46e5, output: 9e4 } },
8171
+ {
8172
+ id: "demo-web-fix-login-redirect",
8173
+ label: "web \xB7 fix/login-redirect",
8174
+ week: { input: 14e4, cached: 25e5, output: 5e4 }
8175
+ }
8176
+ ]
8177
+ },
8178
+ at: new Date(now).toISOString()
8179
+ };
8180
+ }
8181
+
8034
8182
  // src/server/demo/demo-code.ts
8035
8183
  var COMMON = {
8036
8184
  "README.md": "# {repo}\n\nThe {repo} service of the demo shop.\n\n## Running it\n\n```sh\nnpm install\nnpm run dev\n```\n",
@@ -8998,6 +9146,7 @@ async function startDemoServer(opts) {
8998
9146
  available: null,
8999
9147
  whatsNew: demoSeen === "2.1.0" ? null : "2.1.0"
9000
9148
  });
9149
+ app.get("/api/usage", (c) => c.json(demoUsage()));
9001
9150
  app.get("/api/updates", (c) => c.json(demoUpdates()));
9002
9151
  app.post("/api/updates/check", (c) => c.json(demoUpdates()));
9003
9152
  app.post("/api/updates/restart", (c) => c.json({ error: "No downloaded update to restart into." }, 409));
@@ -9363,6 +9512,7 @@ var webCommand = {
9363
9512
  );
9364
9513
  }
9365
9514
  await installAgentHooks(lean, (name) => swallow(`install ${name} hooks`));
9515
+ await setupAgentUsage(knownAgents(), loadConfig(), lean).catch(swallow("set up the usage readings"));
9366
9516
  shutdown = () => {
9367
9517
  info(chalk.gray("\nStopping work web."));
9368
9518
  clearWebDiscovery(process.pid);
@@ -9495,4 +9645,4 @@ export {
9495
9645
  stopExisting,
9496
9646
  webCommand
9497
9647
  };
9498
- //# sourceMappingURL=web-MIPL4BC7.js.map
9648
+ //# sourceMappingURL=web-QXQ4NGCJ.js.map