@moberg_hr/work-tree 2.9.3 → 2.11.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.
- package/dist/{account-NG75VLRU.js → account-Q5Y3YKI7.js} +83 -100
- package/dist/account-Q5Y3YKI7.js.map +1 -0
- package/dist/{add-repo-EDU3QEYI.js → add-repo-L4ZTGBLO.js} +35 -31
- package/dist/{add-repo-EDU3QEYI.js.map → add-repo-L4ZTGBLO.js.map} +1 -1
- package/dist/{answer-MHOJ2J6S.js → answer-GNR4ZBWV.js} +18 -15
- package/dist/{answer-MHOJ2J6S.js.map → answer-GNR4ZBWV.js.map} +1 -1
- package/dist/{attach-37JOJ4C3.js → attach-QNSDKRW7.js} +27 -21
- package/dist/{attach-37JOJ4C3.js.map → attach-QNSDKRW7.js.map} +1 -1
- package/dist/bin.js +5 -5
- package/dist/{block-D5CAR53T.js → block-3YUIMA62.js} +23 -15
- package/dist/block-3YUIMA62.js.map +1 -0
- package/dist/{broadcast-LLYHUWXA.js → broadcast-DR3JFINO.js} +13 -11
- package/dist/{broadcast-LLYHUWXA.js.map → broadcast-DR3JFINO.js.map} +1 -1
- package/dist/{catchup-2SL3JGA7.js → catchup-YG2UOZBL.js} +19 -17
- package/dist/{catchup-2SL3JGA7.js.map → catchup-YG2UOZBL.js.map} +1 -1
- package/dist/{chunk-P6BHOAQG.js → chunk-246OTVRR.js} +2 -2
- package/dist/{chunk-KSUOVFO3.js → chunk-26YZYL77.js} +16 -9
- package/dist/chunk-26YZYL77.js.map +1 -0
- package/dist/{chunk-TPSFJSO7.js → chunk-2KN5ECHJ.js} +13 -10
- package/dist/chunk-2KN5ECHJ.js.map +1 -0
- package/dist/chunk-2QLLPZ2L.js +59 -0
- package/dist/chunk-2QLLPZ2L.js.map +1 -0
- package/dist/chunk-2ZQRD73B.js +376 -0
- package/dist/chunk-2ZQRD73B.js.map +1 -0
- package/dist/{chunk-GNGXYXBC.js → chunk-33XSEAHO.js} +2 -2
- package/dist/{chunk-IPGH7TXJ.js → chunk-4CNBSPNL.js} +2 -2
- package/dist/{chunk-J36ULZBO.js → chunk-4K4S53KX.js} +2 -2
- package/dist/chunk-5PAMO6OG.js +9 -0
- package/dist/{chunk-NWIVXGSL.js.map → chunk-5PAMO6OG.js.map} +1 -1
- package/dist/chunk-63ZLPXRL.js +199 -0
- package/dist/chunk-63ZLPXRL.js.map +1 -0
- package/dist/{chunk-P2HOLCBF.js → chunk-6UTH3A76.js} +18 -2
- package/dist/{chunk-P2HOLCBF.js.map → chunk-6UTH3A76.js.map} +1 -1
- package/dist/{chunk-5QGCF3PS.js → chunk-7DUGVGUZ.js} +2 -2
- package/dist/chunk-7E5XPDKX.js +22 -0
- package/dist/chunk-7E5XPDKX.js.map +1 -0
- package/dist/{chunk-6FVYSW3E.js → chunk-7NNGYM3G.js} +21 -6
- package/dist/chunk-7NNGYM3G.js.map +1 -0
- package/dist/{chunk-DQCUYCMX.js → chunk-7NNOGTMC.js} +3 -3
- package/dist/{chunk-OMIMK3LB.js → chunk-7OFVXQSM.js} +2 -2
- package/dist/chunk-7QNVFVG6.js +196 -0
- package/dist/chunk-7QNVFVG6.js.map +1 -0
- package/dist/chunk-7RHC5U7X.js +1578 -0
- package/dist/chunk-7RHC5U7X.js.map +1 -0
- package/dist/{chunk-KUCMJHQW.js → chunk-AHYCZUPI.js} +2 -2
- package/dist/chunk-B6MWNZCN.js +415 -0
- package/dist/chunk-B6MWNZCN.js.map +1 -0
- package/dist/{chunk-CCTALU3C.js → chunk-BLGCU4HT.js} +2 -2
- package/dist/{chunk-RCGFHJM7.js → chunk-CBCOVIXZ.js} +2 -2
- package/dist/{chunk-WTQ2QCAG.js → chunk-CDYCZ3PR.js} +4 -5
- package/dist/chunk-CDYCZ3PR.js.map +1 -0
- package/dist/{chunk-HCVONKJI.js → chunk-CR4LUAP4.js} +15 -17
- package/dist/{chunk-HCVONKJI.js.map → chunk-CR4LUAP4.js.map} +1 -1
- package/dist/{chunk-ZXHMC7UO.js → chunk-D2J3AD6L.js} +3 -5
- package/dist/chunk-D2J3AD6L.js.map +1 -0
- package/dist/chunk-DAKJTB6N.js +76 -0
- package/dist/chunk-DAKJTB6N.js.map +1 -0
- package/dist/{chunk-3N3UQEC4.js → chunk-DCCC7LEP.js} +4 -3
- package/dist/chunk-DCCC7LEP.js.map +1 -0
- package/dist/{chunk-S3BAD4IR.js → chunk-DGVCN7HB.js} +2 -2
- package/dist/chunk-DMGNJ73M.js +84 -0
- package/dist/chunk-DMGNJ73M.js.map +1 -0
- package/dist/{chunk-QL36KN7X.js → chunk-DYQQLUSB.js} +3 -3
- package/dist/{chunk-IWJXFNM4.js → chunk-DZ4LX2EK.js} +16 -24
- package/dist/chunk-DZ4LX2EK.js.map +1 -0
- package/dist/{chunk-3C3BKZ3H.js → chunk-EDIHBLZY.js} +51 -29
- package/dist/chunk-EDIHBLZY.js.map +1 -0
- package/dist/chunk-EL3XL2OC.js +150 -0
- package/dist/chunk-EL3XL2OC.js.map +1 -0
- package/dist/{chunk-T7AFYEQ7.js → chunk-F2CDUWZU.js} +5 -5
- package/dist/chunk-F2NOCGMA.js +243 -0
- package/dist/chunk-F2NOCGMA.js.map +1 -0
- package/dist/chunk-FGPXMAYU.js +25 -0
- package/dist/chunk-FGPXMAYU.js.map +1 -0
- package/dist/{chunk-ICJPVSRY.js → chunk-FLHMFRZB.js} +51 -51
- package/dist/chunk-FLHMFRZB.js.map +1 -0
- package/dist/{chunk-CLBQ7ZC4.js → chunk-FR7B7QH6.js} +3 -3
- package/dist/chunk-FZHFD2AY.js +27 -0
- package/dist/chunk-FZHFD2AY.js.map +1 -0
- package/dist/{chunk-7OUIZ2YQ.js → chunk-G4QUJO7W.js} +56 -58
- package/dist/chunk-G4QUJO7W.js.map +1 -0
- package/dist/{chunk-26OVU2AE.js → chunk-G4ZR5YZL.js} +8 -8
- package/dist/{chunk-P4EQWC5W.js → chunk-GG4VKPAX.js} +2 -2
- package/dist/{chunk-INQQGV2G.js → chunk-GZNF6762.js} +4 -4
- package/dist/{chunk-QHTXLCG7.js → chunk-H3LP3Z4U.js} +19 -13
- package/dist/chunk-H3LP3Z4U.js.map +1 -0
- package/dist/{chunk-6E2I2FBJ.js → chunk-HJKYE57I.js} +22 -22
- package/dist/{chunk-CYWI3ZW7.js → chunk-I5FZXDCO.js} +4 -4
- package/dist/{chunk-5WM24P5N.js → chunk-I6MILNM5.js} +2 -2
- package/dist/chunk-I6MILNM5.js.map +1 -0
- package/dist/{chunk-BSP2Z7B7.js → chunk-IQ4MITHC.js} +6 -6
- package/dist/chunk-J3GEINBH.js +307 -0
- package/dist/chunk-J3GEINBH.js.map +1 -0
- package/dist/{chunk-WXE7D44E.js → chunk-JCFCEJ2D.js} +8 -8
- package/dist/chunk-JCFCEJ2D.js.map +1 -0
- package/dist/{chunk-WXMWZRBH.js → chunk-JF25PSYF.js} +24 -8
- package/dist/chunk-JF25PSYF.js.map +1 -0
- package/dist/{chunk-SG5LUMGE.js → chunk-JNBMANFM.js} +6 -3
- package/dist/chunk-JNBMANFM.js.map +1 -0
- package/dist/chunk-JVE2JFLV.js +15 -0
- package/dist/chunk-JVE2JFLV.js.map +1 -0
- package/dist/{chunk-RGUSVBGN.js → chunk-JVHHSKBJ.js} +2 -2
- package/dist/chunk-KSVYR4G2.js +47 -0
- package/dist/chunk-KSVYR4G2.js.map +1 -0
- package/dist/{chunk-RYNBBSLY.js → chunk-KWHHB737.js} +6 -8
- package/dist/chunk-KWHHB737.js.map +1 -0
- package/dist/{chunk-MG5TTLYZ.js → chunk-LHM3GB5K.js} +3 -3
- package/dist/{chunk-PSUJZUYX.js → chunk-LM2T5OR3.js} +3 -2
- package/dist/{chunk-GRLKPVTP.js → chunk-LQNHIMJM.js} +56 -81
- package/dist/chunk-LQNHIMJM.js.map +1 -0
- package/dist/{chunk-UBOKRHNV.js → chunk-MKJH2D4V.js} +2 -2
- package/dist/{chunk-HMK3INUS.js → chunk-MQCDFSVF.js} +2 -2
- package/dist/{chunk-VJ7SVDED.js → chunk-MSJWQC7H.js} +6 -4
- package/dist/chunk-MSJWQC7H.js.map +1 -0
- package/dist/chunk-MXOHW4U2.js +187 -0
- package/dist/chunk-MXOHW4U2.js.map +1 -0
- package/dist/{chunk-VUAVPBFR.js → chunk-N4W34U3I.js} +78 -60
- package/dist/chunk-N4W34U3I.js.map +1 -0
- package/dist/{chunk-72IBYKIY.js → chunk-NFWSJFYY.js} +16 -5
- package/dist/chunk-NFWSJFYY.js.map +1 -0
- package/dist/{chunk-2JNW2AQ2.js → chunk-O5ZJY5BT.js} +32 -4
- package/dist/chunk-O5ZJY5BT.js.map +1 -0
- package/dist/{chunk-CMO5YUZR.js → chunk-OY46QHLX.js} +4 -4
- package/dist/{chunk-OTAZOIXK.js → chunk-PKQROEFP.js} +2 -2
- package/dist/{chunk-4NITDMDH.js → chunk-PPZP7CA7.js} +9 -186
- package/dist/chunk-PPZP7CA7.js.map +1 -0
- package/dist/chunk-QBI6K23L.js +50 -0
- package/dist/chunk-QBI6K23L.js.map +1 -0
- package/dist/{chunk-AAYWHIIT.js → chunk-QLFJNYBV.js} +9 -56
- package/dist/chunk-QLFJNYBV.js.map +1 -0
- package/dist/{chunk-PRDRRU2B.js → chunk-R5JCCRGD.js} +5 -5
- package/dist/{chunk-X4AXKO3A.js → chunk-RGLIW45S.js} +2 -2
- package/dist/{chunk-YYBXQBW2.js → chunk-RUYTU2WJ.js} +17 -3
- package/dist/chunk-RUYTU2WJ.js.map +1 -0
- package/dist/chunk-S3CTXKSN.js +17 -0
- package/dist/chunk-S3CTXKSN.js.map +1 -0
- package/dist/chunk-SJBEIYLK.js +16 -0
- package/dist/chunk-SJBEIYLK.js.map +1 -0
- package/dist/{chunk-WC534PXU.js → chunk-SPP7MA3D.js} +36 -25
- package/dist/chunk-SPP7MA3D.js.map +1 -0
- package/dist/{chunk-RFINYWID.js → chunk-TEL27NRC.js} +16 -6
- package/dist/chunk-TEL27NRC.js.map +1 -0
- package/dist/{chunk-ATED7SAH.js → chunk-TEVCBUEN.js} +36 -25
- package/dist/chunk-TEVCBUEN.js.map +1 -0
- package/dist/{chunk-QSOEMCWQ.js → chunk-URGHBFB3.js} +18 -11
- package/dist/chunk-URGHBFB3.js.map +1 -0
- package/dist/{chunk-S3FMTEFR.js → chunk-VAMLU5VH.js} +13 -6
- package/dist/chunk-VAMLU5VH.js.map +1 -0
- package/dist/{chunk-ZI2KXTKM.js → chunk-VJ5XMYXE.js} +6 -10
- package/dist/chunk-VJ5XMYXE.js.map +1 -0
- package/dist/{chunk-QEVYCCKD.js → chunk-VRQKIIC2.js} +12 -34
- package/dist/chunk-VRQKIIC2.js.map +1 -0
- package/dist/{chunk-63VY4YJM.js → chunk-W7MGB3Q2.js} +34 -9
- package/dist/chunk-W7MGB3Q2.js.map +1 -0
- package/dist/{chunk-HEPBANFJ.js → chunk-X3RHLYGI.js} +93 -196
- package/dist/chunk-X3RHLYGI.js.map +1 -0
- package/dist/chunk-YKQLHFY4.js +1478 -0
- package/dist/chunk-YKQLHFY4.js.map +1 -0
- package/dist/chunk-YPXFDJ76.js +71 -0
- package/dist/chunk-YPXFDJ76.js.map +1 -0
- package/dist/{chunk-XVNRP7XE.js → chunk-YQBBFX7D.js} +11 -11
- package/dist/{chunk-37XQIG7F.js → chunk-ZG2M4ECW.js} +569 -55
- package/dist/chunk-ZG2M4ECW.js.map +1 -0
- package/dist/{cleanup-5PSLKZLF.js → cleanup-X7G66SPY.js} +49 -37
- package/dist/{cleanup-5PSLKZLF.js.map → cleanup-X7G66SPY.js.map} +1 -1
- package/dist/cli-RJVX6HVT.js +19 -0
- package/dist/{command-hook-installer-7Q7UD7AU.js → command-hook-installer-GMQ4IVDE.js} +3 -3
- package/dist/{completion-MXX5TRIV.js → completion-IAH7WRKJ.js} +3 -2
- package/dist/{completion-MXX5TRIV.js.map → completion-IAH7WRKJ.js.map} +1 -1
- package/dist/{config-6MSITKGB.js → config-ZBU5PHMG.js} +18 -15
- package/dist/{config-6MSITKGB.js.map → config-ZBU5PHMG.js.map} +1 -1
- package/dist/{diff-Q7MV6YGJ.js → diff-ADSD4SNQ.js} +25 -22
- package/dist/{diff-Q7MV6YGJ.js.map → diff-ADSD4SNQ.js.map} +1 -1
- package/dist/{digest-KUMVYXKZ.js → digest-ORN6JFNE.js} +15 -13
- package/dist/{digest-KUMVYXKZ.js.map → digest-ORN6JFNE.js.map} +1 -1
- package/dist/{fork-OFENISEM.js → fork-VWHAU76U.js} +44 -31
- package/dist/{fork-OFENISEM.js.map → fork-VWHAU76U.js.map} +1 -1
- package/dist/{history-5WKRWARZ.js → history-PP7RHA2V.js} +14 -12
- package/dist/{hook-ARS32DG2.js → hook-6AL5LIQO.js} +56 -22
- package/dist/hook-6AL5LIQO.js.map +1 -0
- package/dist/{hydrate-LCT6DVB3.js → hydrate-JW5MIWLZ.js} +16 -14
- package/dist/{hydrate-LCT6DVB3.js.map → hydrate-JW5MIWLZ.js.map} +1 -1
- package/dist/{init-FJKPEY5N.js → init-SIIKJF3K.js} +29 -21
- package/dist/{init-FJKPEY5N.js.map → init-SIIKJF3K.js.map} +1 -1
- package/dist/install-skills-KS6N4U6L.js +22 -0
- package/dist/install-skills-bin.js +10 -8
- package/dist/install-skills-bin.js.map +1 -1
- package/dist/{list-GTKP5FAW.js → list-UTQF7KHP.js} +17 -15
- package/dist/{list-GTKP5FAW.js.map → list-UTQF7KHP.js.map} +1 -1
- package/dist/{move-GOCLEFGZ.js → move-P6WOVUGF.js} +35 -26
- package/dist/{move-GOCLEFGZ.js.map → move-P6WOVUGF.js.map} +1 -1
- package/dist/{note-B7TQBXQF.js → note-GEFCZKMT.js} +16 -14
- package/dist/{note-B7TQBXQF.js.map → note-GEFCZKMT.js.map} +1 -1
- package/dist/{overlaps-UKQHIJMU.js → overlaps-QMI2RJSG.js} +23 -13
- package/dist/{overlaps-UKQHIJMU.js.map → overlaps-QMI2RJSG.js.map} +1 -1
- package/dist/{pin-UZZCDK7M.js → pin-ZALBX2XK.js} +16 -14
- package/dist/{pin-UZZCDK7M.js.map → pin-ZALBX2XK.js.map} +1 -1
- package/dist/{pr-NU2ME2XW.js → pr-D3EZ7C5H.js} +48 -23
- package/dist/pr-D3EZ7C5H.js.map +1 -0
- package/dist/{prune-IZGEYTSB.js → prune-ZCOBL7IB.js} +47 -35
- package/dist/{prune-IZGEYTSB.js.map → prune-ZCOBL7IB.js.map} +1 -1
- package/dist/{pty-host-AWDIKPQN.js → pty-host-UCM6GV42.js} +104 -40
- package/dist/pty-host-UCM6GV42.js.map +1 -0
- package/dist/{read-U6GBGA5E.js → read-NHRSGZI4.js} +15 -13
- package/dist/{read-U6GBGA5E.js.map → read-NHRSGZI4.js.map} +1 -1
- package/dist/{recent-2DUMLUDG.js → recent-V4JVL4Y2.js} +36 -27
- package/dist/recent-V4JVL4Y2.js.map +1 -0
- package/dist/{remove-OXUP4O33.js → remove-YNO2I3HR.js} +51 -39
- package/dist/{remove-OXUP4O33.js.map → remove-YNO2I3HR.js.map} +1 -1
- package/dist/{restart-QEW4DJC3.js → restart-6YKAD7QQ.js} +19 -17
- package/dist/{restart-QEW4DJC3.js.map → restart-6YKAD7QQ.js.map} +1 -1
- package/dist/{resume-K45IT4QO.js → resume-PNZ7BRXJ.js} +36 -21
- package/dist/resume-PNZ7BRXJ.js.map +1 -0
- package/dist/review-now-HHQIBVUS.js +22 -0
- package/dist/review-now-HHQIBVUS.js.map +1 -0
- package/dist/{run-42LORGPS.js → run-3QYP7GBN.js} +23 -17
- package/dist/run-3QYP7GBN.js.map +1 -0
- package/dist/{screen-2TLIUH3G.js → screen-I6N6FKMF.js} +16 -14
- package/dist/{screen-2TLIUH3G.js.map → screen-I6N6FKMF.js.map} +1 -1
- package/dist/{search-7E4B2KX6.js → search-MLLK3ZCW.js} +12 -10
- package/dist/{search-7E4B2KX6.js.map → search-MLLK3ZCW.js.map} +1 -1
- package/dist/{section-OVA5VD7L.js → section-EQOZ36FS.js} +16 -14
- package/dist/{section-OVA5VD7L.js.map → section-EQOZ36FS.js.map} +1 -1
- package/dist/{send-BJY5CYLO.js → send-LET73FB6.js} +21 -18
- package/dist/send-LET73FB6.js.map +1 -0
- package/dist/{sessions-4A24ZORW.js → sessions-MDOJJZCK.js} +60 -25
- package/dist/sessions-MDOJJZCK.js.map +1 -0
- package/dist/{snooze-WIVKB3GH.js → snooze-TNA7QTXS.js} +15 -13
- package/dist/{snooze-WIVKB3GH.js.map → snooze-TNA7QTXS.js.map} +1 -1
- package/dist/{start-G6GR533S.js → start-OV6LZJ2V.js} +16 -14
- package/dist/{start-G6GR533S.js.map → start-OV6LZJ2V.js.map} +1 -1
- package/dist/{state-S3DGLT4J.js → state-BR43ONIH.js} +18 -6
- package/dist/state-BR43ONIH.js.map +1 -0
- package/dist/{status-BTAWY6JQ.js → status-HDDGCX4J.js} +40 -15
- package/dist/status-HDDGCX4J.js.map +1 -0
- package/dist/{statusline-WLXEU5DM.js → statusline-WKKYCH7O.js} +13 -12
- package/dist/{statusline-WLXEU5DM.js.map → statusline-WKKYCH7O.js.map} +1 -1
- package/dist/{statusline-hook-OVWHHFBV.js → statusline-hook-K7KPN2H6.js} +6 -5
- package/dist/{statusline-hook-OVWHHFBV.js.map → statusline-hook-K7KPN2H6.js.map} +1 -1
- package/dist/{stop-FN6EPFJ4.js → stop-3TJWZBJB.js} +16 -14
- package/dist/{stop-FN6EPFJ4.js.map → stop-3TJWZBJB.js.map} +1 -1
- package/dist/{sync-T3BSHX6Q.js → sync-67AOBEYR.js} +47 -35
- package/dist/{sync-T3BSHX6Q.js.map → sync-67AOBEYR.js.map} +1 -1
- package/dist/{time-5CH5O5MZ.js → time-F6SLY6HR.js} +17 -15
- package/dist/{time-5CH5O5MZ.js.map → time-F6SLY6HR.js.map} +1 -1
- package/dist/{time-actions-XEUQ3UF7.js → time-actions-YOXF5WC7.js} +6 -5
- package/dist/{timesheet-FMQKPS5S.js → timesheet-QUEDQSJ2.js} +26 -17
- package/dist/{timesheet-FMQKPS5S.js.map → timesheet-QUEDQSJ2.js.map} +1 -1
- package/dist/{todo-23COLGR2.js → todo-TALKJYK6.js} +5 -5
- package/dist/{tree-T33VU473.js → tree-FOOQBNVW.js} +66 -47
- package/dist/tree-FOOQBNVW.js.map +1 -0
- package/dist/{update-PJRSKQZ2.js → update-5O3I5P4N.js} +26 -16
- package/dist/{update-PJRSKQZ2.js.map → update-5O3I5P4N.js.map} +1 -1
- package/dist/{usage-TL66LWO4.js → usage-DVKHDT5J.js} +15 -13
- package/dist/{usage-TL66LWO4.js.map → usage-DVKHDT5J.js.map} +1 -1
- package/dist/version-TVT6GSRF.js +115 -0
- package/dist/version-TVT6GSRF.js.map +1 -0
- package/dist/{wait-YIEJO6YM.js → wait-5HZZPKNM.js} +18 -15
- package/dist/{wait-YIEJO6YM.js.map → wait-5HZZPKNM.js.map} +1 -1
- package/dist/wd-bin.js +7 -7
- package/dist/web/assets/{PtyView-DnDd6jLI.js → PtyView-DIGlBtjg.js} +2 -2
- package/dist/web/assets/{PtyView-DnDd6jLI.js.map → PtyView-DIGlBtjg.js.map} +1 -1
- package/dist/web/assets/index-CpqiTeqj.css +1 -0
- package/dist/web/assets/index-Cx0PMo6D.js +126 -0
- package/dist/web/assets/index-Cx0PMo6D.js.map +1 -0
- package/dist/web/index.html +2 -2
- package/dist/{web-IYUNJMQD.js → web-T7UPV3QY.js} +5158 -1822
- package/dist/web-T7UPV3QY.js.map +1 -0
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
- package/plugins/work-tree/skills/wd-review/SKILL.md +1 -1
- package/plugins/work-tree/skills/work-sessions/SKILL.md +2 -2
- package/dist/account-NG75VLRU.js.map +0 -1
- package/dist/block-D5CAR53T.js.map +0 -1
- package/dist/chunk-2JNW2AQ2.js.map +0 -1
- package/dist/chunk-37XQIG7F.js.map +0 -1
- package/dist/chunk-3C3BKZ3H.js.map +0 -1
- package/dist/chunk-3GIH4WTA.js +0 -314
- package/dist/chunk-3GIH4WTA.js.map +0 -1
- package/dist/chunk-3N3UQEC4.js.map +0 -1
- package/dist/chunk-4NITDMDH.js.map +0 -1
- package/dist/chunk-5WM24P5N.js.map +0 -1
- package/dist/chunk-63VY4YJM.js.map +0 -1
- package/dist/chunk-6FVYSW3E.js.map +0 -1
- package/dist/chunk-72IBYKIY.js.map +0 -1
- package/dist/chunk-7OUIZ2YQ.js.map +0 -1
- package/dist/chunk-AAYWHIIT.js.map +0 -1
- package/dist/chunk-ATED7SAH.js.map +0 -1
- package/dist/chunk-GRLKPVTP.js.map +0 -1
- package/dist/chunk-HEPBANFJ.js.map +0 -1
- package/dist/chunk-ICJPVSRY.js.map +0 -1
- package/dist/chunk-IWJXFNM4.js.map +0 -1
- package/dist/chunk-KSUOVFO3.js.map +0 -1
- package/dist/chunk-NWIVXGSL.js +0 -9
- package/dist/chunk-PTWVOT7A.js +0 -551
- package/dist/chunk-PTWVOT7A.js.map +0 -1
- package/dist/chunk-QEVYCCKD.js.map +0 -1
- package/dist/chunk-QHTXLCG7.js.map +0 -1
- package/dist/chunk-QSOEMCWQ.js.map +0 -1
- package/dist/chunk-RCYI7SRA.js +0 -15
- package/dist/chunk-RCYI7SRA.js.map +0 -1
- package/dist/chunk-RFINYWID.js.map +0 -1
- package/dist/chunk-RYNBBSLY.js.map +0 -1
- package/dist/chunk-S3FMTEFR.js.map +0 -1
- package/dist/chunk-SG5LUMGE.js.map +0 -1
- package/dist/chunk-TPSFJSO7.js.map +0 -1
- package/dist/chunk-VJ7SVDED.js.map +0 -1
- package/dist/chunk-VTLDYH3C.js +0 -227
- package/dist/chunk-VTLDYH3C.js.map +0 -1
- package/dist/chunk-VUAVPBFR.js.map +0 -1
- package/dist/chunk-WC534PXU.js.map +0 -1
- package/dist/chunk-WTQ2QCAG.js.map +0 -1
- package/dist/chunk-WXE7D44E.js.map +0 -1
- package/dist/chunk-WXMWZRBH.js.map +0 -1
- package/dist/chunk-YYBXQBW2.js.map +0 -1
- package/dist/chunk-ZDMJPEBO.js +0 -31
- package/dist/chunk-ZDMJPEBO.js.map +0 -1
- package/dist/chunk-ZI2KXTKM.js.map +0 -1
- package/dist/chunk-ZXHMC7UO.js.map +0 -1
- package/dist/cli-AF7636FA.js +0 -19
- package/dist/hook-ARS32DG2.js.map +0 -1
- package/dist/install-skills-UYAFVJBA.js +0 -20
- package/dist/pr-NU2ME2XW.js.map +0 -1
- package/dist/pty-host-AWDIKPQN.js.map +0 -1
- package/dist/recent-2DUMLUDG.js.map +0 -1
- package/dist/resume-K45IT4QO.js.map +0 -1
- package/dist/run-42LORGPS.js.map +0 -1
- package/dist/send-BJY5CYLO.js.map +0 -1
- package/dist/sessions-4A24ZORW.js.map +0 -1
- package/dist/state-S3DGLT4J.js.map +0 -1
- package/dist/status-BTAWY6JQ.js.map +0 -1
- package/dist/tree-T33VU473.js.map +0 -1
- package/dist/web/assets/index-DxozAoUO.css +0 -1
- package/dist/web/assets/index-InmdAx6g.js +0 -120
- package/dist/web/assets/index-InmdAx6g.js.map +0 -1
- package/dist/web-IYUNJMQD.js.map +0 -1
- /package/dist/{chunk-P6BHOAQG.js.map → chunk-246OTVRR.js.map} +0 -0
- /package/dist/{chunk-GNGXYXBC.js.map → chunk-33XSEAHO.js.map} +0 -0
- /package/dist/{chunk-IPGH7TXJ.js.map → chunk-4CNBSPNL.js.map} +0 -0
- /package/dist/{chunk-J36ULZBO.js.map → chunk-4K4S53KX.js.map} +0 -0
- /package/dist/{chunk-5QGCF3PS.js.map → chunk-7DUGVGUZ.js.map} +0 -0
- /package/dist/{chunk-DQCUYCMX.js.map → chunk-7NNOGTMC.js.map} +0 -0
- /package/dist/{chunk-OMIMK3LB.js.map → chunk-7OFVXQSM.js.map} +0 -0
- /package/dist/{chunk-KUCMJHQW.js.map → chunk-AHYCZUPI.js.map} +0 -0
- /package/dist/{chunk-CCTALU3C.js.map → chunk-BLGCU4HT.js.map} +0 -0
- /package/dist/{chunk-RCGFHJM7.js.map → chunk-CBCOVIXZ.js.map} +0 -0
- /package/dist/{chunk-S3BAD4IR.js.map → chunk-DGVCN7HB.js.map} +0 -0
- /package/dist/{chunk-QL36KN7X.js.map → chunk-DYQQLUSB.js.map} +0 -0
- /package/dist/{chunk-T7AFYEQ7.js.map → chunk-F2CDUWZU.js.map} +0 -0
- /package/dist/{chunk-CLBQ7ZC4.js.map → chunk-FR7B7QH6.js.map} +0 -0
- /package/dist/{chunk-26OVU2AE.js.map → chunk-G4ZR5YZL.js.map} +0 -0
- /package/dist/{chunk-P4EQWC5W.js.map → chunk-GG4VKPAX.js.map} +0 -0
- /package/dist/{chunk-INQQGV2G.js.map → chunk-GZNF6762.js.map} +0 -0
- /package/dist/{chunk-6E2I2FBJ.js.map → chunk-HJKYE57I.js.map} +0 -0
- /package/dist/{chunk-CYWI3ZW7.js.map → chunk-I5FZXDCO.js.map} +0 -0
- /package/dist/{chunk-BSP2Z7B7.js.map → chunk-IQ4MITHC.js.map} +0 -0
- /package/dist/{chunk-RGUSVBGN.js.map → chunk-JVHHSKBJ.js.map} +0 -0
- /package/dist/{chunk-MG5TTLYZ.js.map → chunk-LHM3GB5K.js.map} +0 -0
- /package/dist/{chunk-PSUJZUYX.js.map → chunk-LM2T5OR3.js.map} +0 -0
- /package/dist/{chunk-UBOKRHNV.js.map → chunk-MKJH2D4V.js.map} +0 -0
- /package/dist/{chunk-HMK3INUS.js.map → chunk-MQCDFSVF.js.map} +0 -0
- /package/dist/{chunk-CMO5YUZR.js.map → chunk-OY46QHLX.js.map} +0 -0
- /package/dist/{chunk-OTAZOIXK.js.map → chunk-PKQROEFP.js.map} +0 -0
- /package/dist/{chunk-PRDRRU2B.js.map → chunk-R5JCCRGD.js.map} +0 -0
- /package/dist/{chunk-X4AXKO3A.js.map → chunk-RGLIW45S.js.map} +0 -0
- /package/dist/{chunk-XVNRP7XE.js.map → chunk-YQBBFX7D.js.map} +0 -0
- /package/dist/{cli-AF7636FA.js.map → cli-RJVX6HVT.js.map} +0 -0
- /package/dist/{command-hook-installer-7Q7UD7AU.js.map → command-hook-installer-GMQ4IVDE.js.map} +0 -0
- /package/dist/{history-5WKRWARZ.js.map → history-PP7RHA2V.js.map} +0 -0
- /package/dist/{install-skills-UYAFVJBA.js.map → install-skills-KS6N4U6L.js.map} +0 -0
- /package/dist/{time-actions-XEUQ3UF7.js.map → time-actions-YOXF5WC7.js.map} +0 -0
- /package/dist/{todo-23COLGR2.js.map → todo-TALKJYK6.js.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/commands/start.ts"],"sourcesContent":["import chalk from 'chalk';\nimport type { CommandModule } from 'yargs';\nimport { callWorkWeb } from '../core/platform/web-discovery.js';\nimport { sessionIdFor } from '../core/sessions/session-id.js';\nimport type { AgentControlWire } from '../core/api-types.js';\nimport { sessionFromArgs, sessionPositionals } from './shared/session-arg.js';\n\n/** `work start` — start a session's agent in the PTY host, resuming its conversation (work web's POST …/agent/start). */\nexport const startCommand: CommandModule = {\n command: 'start [target] [branch]',\n describe: \"Start a session's agent in the background, resuming its conversation (default: the session for this folder)\",\n builder: (yargs) =>\n sessionPositionals(yargs).option('force', {\n type: 'boolean',\n default: false,\n describe: 'Start one even though it runs in a terminal outside work (two would share one conversation)',\n }),\n handler: async (argv) => {\n const s = sessionFromArgs(argv);\n if (!s) return;\n const r = await callWorkWeb<AgentControlWire>(\n 'POST',\n `/api/sessions/${sessionIdFor(s)}/agent/start`,\n { force: argv.force === true },\n 60_000,\n );\n if (!r.ok) {\n console.error(chalk.red(r.error));\n process.exitCode = 1;\n return;\n }\n console.log(\n r.body.how === 'running'\n ? `${s.target} · ${s.branch}: already running`\n : `${s.target} · ${s.branch}: started (\\`work attach\\` to watch it)`,\n );\n },\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/commands/start.ts"],"sourcesContent":["import chalk from 'chalk';\nimport type { CommandModule } from 'yargs';\nimport { callWorkWeb } from '../core/platform/web-discovery.js';\nimport { sessionIdFor } from '../core/sessions/session-id.js';\nimport type { AgentControlWire } from '../core/api-types.js';\nimport { sessionFromArgs, sessionPositionals } from './shared/session-arg.js';\n\n/** `work start` — start a session's agent in the PTY host, resuming its conversation (work web's POST …/agent/start). */\nexport const startCommand: CommandModule = {\n command: 'start [target] [branch]',\n describe: \"Start a session's agent in the background, resuming its conversation (default: the session for this folder)\",\n builder: (yargs) =>\n sessionPositionals(yargs).option('force', {\n type: 'boolean',\n default: false,\n describe: 'Start one even though it runs in a terminal outside work (two would share one conversation)',\n }),\n handler: async (argv) => {\n const s = sessionFromArgs(argv);\n if (!s) return;\n const r = await callWorkWeb<AgentControlWire>(\n 'POST',\n `/api/sessions/${sessionIdFor(s)}/agent/start`,\n { force: argv.force === true },\n 60_000,\n );\n if (!r.ok) {\n console.error(chalk.red(r.error));\n process.exitCode = 1;\n return;\n }\n console.log(\n r.body.how === 'running'\n ? `${s.target} · ${s.branch}: already running`\n : `${s.target} · ${s.branch}: started (\\`work attach\\` to watch it)`,\n );\n },\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,WAAW;AAQX,IAAM,eAA8B;AAAA,EACzC,SAAS;AAAA,EACT,UAAU;AAAA,EACV,SAAS,CAAC,UACR,mBAAmB,KAAK,EAAE,OAAO,SAAS;AAAA,IACxC,MAAM;AAAA,IACN,SAAS;AAAA,IACT,UAAU;AAAA,EACZ,CAAC;AAAA,EACH,SAAS,OAAO,SAAS;AACvB,UAAM,IAAI,gBAAgB,IAAI;AAC9B,QAAI,CAAC,EAAG;AACR,UAAM,IAAI,MAAM;AAAA,MACd;AAAA,MACA,iBAAiB,aAAa,CAAC,CAAC;AAAA,MAChC,EAAE,OAAO,KAAK,UAAU,KAAK;AAAA,MAC7B;AAAA,IACF;AACA,QAAI,CAAC,EAAE,IAAI;AACT,cAAQ,MAAM,MAAM,IAAI,EAAE,KAAK,CAAC;AAChC,cAAQ,WAAW;AACnB;AAAA,IACF;AACA,YAAQ;AAAA,MACN,EAAE,KAAK,QAAQ,YACX,GAAG,EAAE,MAAM,SAAM,EAAE,MAAM,sBACzB,GAAG,EAAE,MAAM,SAAM,EAAE,MAAM;AAAA,IAC/B;AAAA,EACF;AACF;","names":[]}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import {
|
|
3
3
|
dbPath,
|
|
4
4
|
withDb
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-RUYTU2WJ.js";
|
|
6
|
+
import "./chunk-O5ZJY5BT.js";
|
|
7
|
+
import "./chunk-D2J3AD6L.js";
|
|
8
8
|
import "./chunk-AU27USPZ.js";
|
|
9
9
|
import "./chunk-6THUVP6T.js";
|
|
10
10
|
|
|
@@ -33,9 +33,20 @@ var TABLES = [
|
|
|
33
33
|
"worklogs",
|
|
34
34
|
"diff_seen",
|
|
35
35
|
"time_days",
|
|
36
|
-
"pr_watch_state"
|
|
36
|
+
"pr_watch_state",
|
|
37
|
+
"pr_reviews",
|
|
38
|
+
"session_branches",
|
|
39
|
+
"session_prs"
|
|
40
|
+
];
|
|
41
|
+
var NEWER_BY_SESSION = [
|
|
42
|
+
"session_snooze",
|
|
43
|
+
"rail_place",
|
|
44
|
+
"session_notes",
|
|
45
|
+
"session_blocks",
|
|
46
|
+
"diff_seen",
|
|
47
|
+
"session_branches",
|
|
48
|
+
"session_prs"
|
|
37
49
|
];
|
|
38
|
-
var NEWER_BY_SESSION = ["session_snooze", "rail_place", "session_notes", "session_blocks", "diff_seen"];
|
|
39
50
|
var NEWER_META = ["ui:session-order", "ui:rail-sections", "jira-watch", "time:issue-ids"];
|
|
40
51
|
function stateSummary() {
|
|
41
52
|
return withDb((d) => {
|
|
@@ -110,6 +121,7 @@ function exportLegacyState(dir) {
|
|
|
110
121
|
...parse(String(r.data)) ?? {}
|
|
111
122
|
}));
|
|
112
123
|
newer.time_days = Object.fromEntries(all("SELECT day, data FROM time_days").map((r) => [r.day, parse(String(r.data))]));
|
|
124
|
+
newer.pr_reviews = Object.fromEntries(all("SELECT key, data FROM pr_reviews").map((r) => [r.key, parse(String(r.data))]));
|
|
113
125
|
newer.meta = Object.fromEntries(
|
|
114
126
|
NEWER_META.flatMap((k) => {
|
|
115
127
|
const row = d.prepare("SELECT value FROM meta WHERE key = ?").get(k);
|
|
@@ -148,4 +160,4 @@ var stateCommand = {
|
|
|
148
160
|
export {
|
|
149
161
|
stateCommand
|
|
150
162
|
};
|
|
151
|
-
//# sourceMappingURL=state-
|
|
163
|
+
//# sourceMappingURL=state-BR43ONIH.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/commands/state.ts","../src/core/platform/db-export.ts"],"sourcesContent":["import path from 'node:path';\nimport chalk from 'chalk';\nimport type { CommandModule } from 'yargs';\nimport { exportLegacyState, stateSummary } from '../core/platform/db-export.js';\n\n/**\n * `work state` — look inside ~/.work/state.db, or export it as the old JSON\n * files (`--export <dir>`) for a downgrade or for reading by hand.\n */\nexport const stateCommand: CommandModule = {\n command: 'state',\n describe: 'Show what ~/.work/state.db holds, or export it as JSON files',\n builder: (y) =>\n y.option('export', {\n type: 'string',\n describe: 'Write every record out in the pre-SQLite JSON layout into this folder',\n }),\n handler: (argv) => {\n const dir = argv.export as string | undefined;\n if (dir) {\n const out = path.resolve(dir);\n const files = exportLegacyState(out);\n console.log(chalk.green(`Exported ${files.length} file(s) to ${out}`));\n console.log(chalk.gray('To run an older work on them: stop work web and the PTY host, then copy them into ~/.work.'));\n return;\n }\n const s = stateSummary();\n console.log(`${chalk.bold('state.db')} ${s.file}`);\n console.log(chalk.gray(`schema v${s.schemaVersion}${s.migratedAt ? `, created ${s.migratedAt}` : ''}`));\n const width = Math.max(...Object.keys(s.counts).map((k) => k.length));\n for (const [table, n] of Object.entries(s.counts)) console.log(` ${table.padEnd(width)} ${n}`);\n },\n};\n","import fs from 'node:fs';\nimport path from 'node:path';\nimport { dbPath, withDb } from './db.js';\n\n/**\n * Read-only views of state.db for `work state`: a summary, and an export\n * in the pre-SQLite JSON layout — so a downgrade (or a curious human) can\n * go back to plain files without losing anything:\n *\n * <dir>/history.json, status/<id>.json, comments/<store>.json,\n * comments/<id>.delivered.json, pty-sessions.json, pr-watch/<id>.json,\n * dev/<id>.json, tasks.json\n *\n * plus newer-state.json: what has no file of its own in that layout (it came\n * after the move to SQLite) — PR reply drafts, the Jira watch, snoozes, the\n * rail's order, pins and sections, notes, blocks, worklogs, prepared PR\n * reviews — so an export\n * still holds everything, for reading or by hand. A downgrade to the JSON\n * files has none of those features to read it with.\n */\n\nexport interface StateSummary {\n file: string;\n schemaVersion: number;\n migratedAt: string | null;\n counts: Record<string, number>;\n}\n\nconst TABLES = [\n 'sessions',\n 'session_status',\n 'comments',\n 'comment_deliveries',\n 'pty_sessions',\n 'pr_watch_seen',\n 'dev_runs',\n 'pr_replies',\n 'tasks',\n 'jira_watch',\n 'session_snooze',\n 'rail_place',\n 'session_notes',\n 'session_blocks',\n 'worklogs',\n 'diff_seen',\n 'time_days',\n 'pr_watch_state',\n 'pr_reviews',\n 'session_branches',\n 'session_prs',\n];\n\n/** Per-session tables of the newer features (session_id + data). */\nconst NEWER_BY_SESSION = [\n 'session_snooze',\n 'rail_place',\n 'session_notes',\n 'session_blocks',\n 'diff_seen',\n 'session_branches',\n 'session_prs',\n];\n/** meta rows that are state, not counters. */\nconst NEWER_META = ['ui:session-order', 'ui:rail-sections', 'jira-watch', 'time:issue-ids'];\n\nexport function stateSummary(): StateSummary {\n return withDb((d) => {\n const counts: Record<string, number> = {};\n for (const t of TABLES) counts[t] = (d.prepare(`SELECT COUNT(*) AS n FROM ${t}`).get() as { n: number }).n;\n const migrated = d.prepare(\"SELECT value FROM meta WHERE key = 'migrated_at'\").get() as { value: string } | undefined;\n return {\n file: dbPath(),\n schemaVersion: d.pragma('user_version', { simple: true }) as number,\n migratedAt: migrated?.value ?? null,\n counts,\n };\n });\n}\n\ntype Row = Record<string, string | number>;\nconst parse = (text: string): unknown => {\n try {\n return JSON.parse(text);\n } catch {\n return null;\n }\n};\n\n/** Write the whole database out as the old JSON files. Returns the files written. */\nexport function exportLegacyState(dir: string): string[] {\n const written: string[] = [];\n const put = (rel: string, data: unknown) => {\n const f = path.join(dir, rel);\n fs.mkdirSync(path.dirname(f), { recursive: true });\n fs.writeFileSync(f, JSON.stringify(data, null, 2));\n written.push(f);\n };\n withDb((d) => {\n const all = (sql: string) => d.prepare(sql).all() as Row[];\n const groupBy = (rows: Row[], key: string, value: (r: Row) => unknown) => {\n const out = new Map<string, unknown[]>();\n for (const r of rows) out.set(String(r[key]), [...(out.get(String(r[key])) ?? []), value(r)]);\n return out;\n };\n\n put(\n 'history.json',\n all('SELECT data FROM sessions ORDER BY rowid').map((r) => parse(String(r.data))),\n );\n for (const r of all('SELECT session_id, data FROM session_status')) put(`status/${r.session_id}.json`, parse(String(r.data)));\n for (const [store, cs] of groupBy(all('SELECT store, data FROM comments ORDER BY rowid'), 'store', (r) => parse(String(r.data)))) {\n put(`comments/${store}.json`, cs);\n }\n for (const [sid, ids] of groupBy(all('SELECT session_id, comment_id FROM comment_deliveries'), 'session_id', (r) => r.comment_id)) {\n put(`comments/${sid}.delivered.json`, ids);\n }\n put(\n 'pty-sessions.json',\n Object.fromEntries(all('SELECT session_id, data FROM pty_sessions').map((r) => [r.session_id, parse(String(r.data))])),\n );\n for (const [sid, keys] of groupBy(all('SELECT session_id, key FROM pr_watch_seen'), 'session_id', (r) => r.key)) {\n put(`pr-watch/${sid}.json`, { seen: keys });\n }\n for (const r of all('SELECT session_id, data FROM dev_runs')) put(`dev/${r.session_id}.json`, parse(String(r.data)));\n const next = d.prepare(\"SELECT value FROM meta WHERE key = 'tasks:nextId'\").get() as { value: string } | undefined;\n const tasks = all('SELECT data FROM tasks ORDER BY id').map((r) => parse(String(r.data)));\n const maxId = Math.max(0, ...tasks.map((t) => (t as { id?: number } | null)?.id ?? 0));\n put('tasks.json', { nextId: next ? Number(next.value) : maxId + 1, tasks });\n\n const newer: Record<string, unknown> = {};\n for (const t of NEWER_BY_SESSION)\n newer[t] = Object.fromEntries(all(`SELECT session_id, data FROM ${t}`).map((r) => [r.session_id, parse(String(r.data))]));\n newer.pr_replies = all('SELECT session_id, thread_id, data FROM pr_replies').map((r) => ({\n session_id: r.session_id,\n thread_id: r.thread_id,\n ...((parse(String(r.data)) as object | null) ?? {}),\n }));\n newer.jira_watch = Object.fromEntries(all('SELECT issue_key, data FROM jira_watch').map((r) => [r.issue_key, parse(String(r.data))]));\n newer.worklogs = all('SELECT session_id, day, data FROM worklogs').map((r) => ({\n session_id: r.session_id,\n day: r.day,\n ...((parse(String(r.data)) as object | null) ?? {}),\n }));\n // The Time tab's days: your rows, days off, and the Tempo worklogs work made (without them a re-post can't tell them from yours).\n newer.time_days = Object.fromEntries(all('SELECT day, data FROM time_days').map((r) => [r.day, parse(String(r.data))]));\n // Prepared PR reviews: your draft comments, and the reviews you submitted (#64).\n newer.pr_reviews = Object.fromEntries(all('SELECT key, data FROM pr_reviews').map((r) => [r.key, parse(String(r.data))]));\n newer.meta = Object.fromEntries(\n NEWER_META.flatMap((k) => {\n const row = d.prepare('SELECT value FROM meta WHERE key = ?').get(k) as { value: string } | undefined;\n return row ? [[k, parse(row.value) ?? row.value]] : [];\n }),\n );\n put('newer-state.json', newer);\n });\n return written;\n}\n"],"mappings":";;;;;;;;;;;AAAA,OAAOA,WAAU;AACjB,OAAO,WAAW;;;ACDlB,OAAO,QAAQ;AACf,OAAO,UAAU;AA2BjB,IAAM,SAAS;AAAA,EACb;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAGA,IAAM,mBAAmB;AAAA,EACvB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF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
|
10
|
+
branchLine
|
|
11
|
+
} from "./chunk-7E5XPDKX.js";
|
|
12
|
+
import "./chunk-PKQROEFP.js";
|
|
13
|
+
import {
|
|
14
|
+
sessionBranchesNow
|
|
15
|
+
} from "./chunk-F2NOCGMA.js";
|
|
16
|
+
import "./chunk-FGPXMAYU.js";
|
|
17
|
+
import "./chunk-2ZQRD73B.js";
|
|
18
|
+
import "./chunk-KSVYR4G2.js";
|
|
12
19
|
import {
|
|
13
20
|
effectiveLastAccessedAt,
|
|
14
21
|
getSessionsForTarget,
|
|
15
22
|
loadHistory,
|
|
16
23
|
prunePersistedStaleEntries
|
|
17
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-ZG2M4ECW.js";
|
|
18
25
|
import "./chunk-NEJVK5CF.js";
|
|
19
|
-
import
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
import "./chunk-
|
|
26
|
+
import {
|
|
27
|
+
sessionIdFor
|
|
28
|
+
} from "./chunk-RUYTU2WJ.js";
|
|
29
|
+
import "./chunk-N4W34U3I.js";
|
|
30
|
+
import {
|
|
31
|
+
getCurrentBranch,
|
|
32
|
+
getStatus,
|
|
33
|
+
getUnpushedCommits,
|
|
34
|
+
isBranchMerged
|
|
35
|
+
} from "./chunk-DCCC7LEP.js";
|
|
36
|
+
import "./chunk-CBCOVIXZ.js";
|
|
37
|
+
import "./chunk-PPZP7CA7.js";
|
|
38
|
+
import "./chunk-DAKJTB6N.js";
|
|
39
|
+
import "./chunk-DMGNJ73M.js";
|
|
40
|
+
import "./chunk-NFWSJFYY.js";
|
|
23
41
|
import {
|
|
24
42
|
ensureConfig
|
|
25
|
-
} from "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
43
|
+
} from "./chunk-O5ZJY5BT.js";
|
|
44
|
+
import "./chunk-63ZLPXRL.js";
|
|
45
|
+
import "./chunk-EL3XL2OC.js";
|
|
46
|
+
import "./chunk-D2J3AD6L.js";
|
|
29
47
|
import "./chunk-AU27USPZ.js";
|
|
30
48
|
import "./chunk-6THUVP6T.js";
|
|
31
49
|
|
|
@@ -74,8 +92,15 @@ var statusCommand = {
|
|
|
74
92
|
console.log(chalk.cyan("Worktree Status"));
|
|
75
93
|
console.log(chalk.cyan("==============="));
|
|
76
94
|
console.log("");
|
|
95
|
+
const checks = new Map(createCiStore().load());
|
|
77
96
|
for (const session of sessions) {
|
|
78
97
|
printSessionStatus(session);
|
|
98
|
+
const branches = await sessionBranchesNow(session, checks.get(sessionIdFor(session))).catch(() => null);
|
|
99
|
+
if (branches?.length) {
|
|
100
|
+
console.log(chalk.gray(" Branches:"));
|
|
101
|
+
for (const b of branches) console.log(` ${b.repo === session.target ? "" : `${b.repo}: `}${branchLine(b)}`);
|
|
102
|
+
console.log("");
|
|
103
|
+
}
|
|
79
104
|
}
|
|
80
105
|
}
|
|
81
106
|
};
|
|
@@ -120,4 +145,4 @@ function printSessionStatus(session) {
|
|
|
120
145
|
export {
|
|
121
146
|
statusCommand
|
|
122
147
|
};
|
|
123
|
-
//# sourceMappingURL=status-
|
|
148
|
+
//# sourceMappingURL=status-HDDGCX4J.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/commands/status.ts"],"sourcesContent":["import fs from 'node:fs';\nimport chalk from 'chalk';\nimport type { CommandModule } from 'yargs';\nimport { ensureConfig } from '../core/platform/config.js';\nimport { loadHistory, getSessionsForTarget, prunePersistedStaleEntries, type WorktreeSession } from '../core/sessions/history.js';\nimport { effectiveLastAccessedAt } from '../core/sessions/session-activity.js';\nimport { getStatus, getUnpushedCommits, isBranchMerged, getCurrentBranch } from '../core/git/git.js';\nimport { timeAgo, shortDateTime } from '../core/platform/format.js';\nimport { sessionBranchesNow } from '../core/stacks/branch-facts.js';\nimport { createCiStore } from '../core/pr/pr-watch-store.js';\nimport { sessionIdFor } from '../core/sessions/session-id.js';\nimport { branchLine } from '../core/sessions/branch-view.js';\n\nexport const statusCommand: CommandModule = {\n command: 'status [target] [branch]',\n describe: 'Show status of tracked worktrees',\n builder: (yargs) =>\n yargs\n .positional('target', {\n describe: 'Filter by project alias or group name',\n type: 'string',\n })\n .positional('branch', {\n describe: 'Filter by branch name',\n type: 'string',\n })\n .option('prune', {\n describe: 'Remove entries whose worktree paths no longer exist',\n type: 'boolean',\n default: false,\n }),\n handler: async (argv) => {\n const target = argv.target as string | undefined;\n const branch = argv.branch as string | undefined;\n const prune = argv.prune as boolean;\n\n ensureConfig();\n\n if (prune) {\n const { pruned } = await prunePersistedStaleEntries();\n if (pruned > 0) {\n console.log(chalk.green(`Pruned ${pruned} stale session(s).`));\n } else {\n console.log('No stale sessions to prune.');\n }\n }\n\n let sessions = loadHistory();\n\n if (target) {\n sessions = getSessionsForTarget(sessions, target);\n }\n if (branch) {\n sessions = sessions.filter((s) => s.branch === branch);\n }\n\n if (sessions.length === 0) {\n console.log(chalk.yellow('No tracked worktree sessions found.'));\n return;\n }\n\n console.log('');\n console.log(chalk.cyan('Worktree Status'));\n console.log(chalk.cyan('==============='));\n console.log('');\n\n const checks = new Map(createCiStore().load());\n for (const session of sessions) {\n printSessionStatus(session);\n // Every branch it worked on, when more than one (session-branches.ts).\n const branches = await sessionBranchesNow(session, checks.get(sessionIdFor(session))).catch(() => null);\n if (branches?.length) {\n console.log(chalk.gray(' Branches:'));\n for (const b of branches) console.log(` ${b.repo === session.target ? '' : `${b.repo}: `}${branchLine(b)}`);\n console.log('');\n }\n }\n },\n};\n\nfunction printSessionStatus(session: WorktreeSession): void {\n const typeLabel = session.isGroup ? chalk.magenta('[group]') : chalk.blue('[repo]');\n console.log(`${typeLabel} ${chalk.green(session.target)} ${chalk.white(session.branch)}`);\n\n // Check if paths exist\n const existingPaths = session.paths.filter((p) => fs.existsSync(p));\n if (existingPaths.length === 0) {\n console.log(chalk.red(' Path(s) no longer exist on disk'));\n console.log(chalk.gray(` Created: ${shortDateTime(session.createdAt)} Last used: ${timeAgo(effectiveLastAccessedAt(session))}`));\n console.log('');\n return;\n }\n\n // For each existing path, gather git info\n for (const wtPath of existingPaths) {\n const branch = getCurrentBranch(wtPath);\n if (!branch) continue;\n\n const { merged } = isBranchMerged(branch, wtPath);\n const changes = getStatus(wtPath);\n const unpushed = getUnpushedCommits(wtPath);\n\n const changeCount = changes ? changes.split('\\n').filter((l) => l.trim()).length : 0;\n const unpushedCount = unpushed ? unpushed.split('\\n').filter((l) => l.trim()).length : 0;\n\n const mergedTag = merged ? chalk.green(' [merged]') : '';\n\n const parts: string[] = [];\n if (changeCount > 0) {\n parts.push(chalk.yellow(`${changeCount} uncommitted`));\n }\n if (unpushedCount > 0) {\n parts.push(chalk.yellow(`${unpushedCount} unpushed`));\n }\n\n const statusLine = parts.length > 0 ? parts.join(', ') : chalk.green('clean');\n\n if (existingPaths.length > 1) {\n console.log(chalk.gray(` ${wtPath}`));\n console.log(` ${statusLine}${mergedTag}`);\n } else {\n console.log(` ${statusLine}${mergedTag}`);\n console.log(chalk.gray(` ${wtPath}`));\n }\n }\n\n console.log(chalk.gray(` Created: ${shortDateTime(session.createdAt)} Last used: ${timeAgo(effectiveLastAccessedAt(session))}`));\n console.log('');\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ;AACf,OAAO,WAAW;AAYX,IAAM,gBAA+B;AAAA,EAC1C,SAAS;AAAA,EACT,UAAU;AAAA,EACV,SAAS,CAAC,UACR,MACG,WAAW,UAAU;AAAA,IACpB,UAAU;AAAA,IACV,MAAM;AAAA,EACR,CAAC,EACA,WAAW,UAAU;AAAA,IACpB,UAAU;AAAA,IACV,MAAM;AAAA,EACR,CAAC,EACA,OAAO,SAAS;AAAA,IACf,UAAU;AAAA,IACV,MAAM;AAAA,IACN,SAAS;AAAA,EACX,CAAC;AAAA,EACL,SAAS,OAAO,SAAS;AACvB,UAAM,SAAS,KAAK;AACpB,UAAM,SAAS,KAAK;AACpB,UAAM,QAA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AAQ,IAAI,OAAO,UAAU,GAAG,SAAS,EAAE;AAAA,IAC7C,OAAO;AACL,cAAQ,IAAI,KAAK,UAAU,GAAG,SAAS,EAAE;AACzC,cAAQ,IAAI,MAAM,KAAK,KAAK,MAAM,EAAE,CAAC;AAAA,IACvC;AAAA,EACF;AAEA,UAAQ,IAAI,MAAM,KAAK,cAAc,cAAc,QAAQ,SAAS,CAAC,gBAAgB,QAAQ,wBAAwB,OAAO,CAAC,CAAC,EAAE,CAAC;AACjI,UAAQ,IAAI,EAAE;AAChB;","names":[]}
|
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
editSettings,
|
|
4
|
-
readSettingsFile
|
|
5
|
-
} from "./chunk-UBOKRHNV.js";
|
|
6
|
-
import {
|
|
7
|
-
setUpAccounts
|
|
8
|
-
} from "./chunk-72IBYKIY.js";
|
|
9
|
-
import "./chunk-2JNW2AQ2.js";
|
|
10
2
|
import {
|
|
11
3
|
WORK_STATUSLINE,
|
|
12
4
|
isOurs,
|
|
13
5
|
isRecord,
|
|
14
6
|
readSaved,
|
|
15
7
|
savedPath
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import
|
|
8
|
+
} from "./chunk-PPZP7CA7.js";
|
|
9
|
+
import {
|
|
10
|
+
editSettings,
|
|
11
|
+
readSettingsFile
|
|
12
|
+
} from "./chunk-MKJH2D4V.js";
|
|
13
|
+
import {
|
|
14
|
+
setUpAccounts
|
|
15
|
+
} from "./chunk-NFWSJFYY.js";
|
|
16
|
+
import "./chunk-O5ZJY5BT.js";
|
|
17
|
+
import "./chunk-63ZLPXRL.js";
|
|
18
|
+
import "./chunk-EL3XL2OC.js";
|
|
18
19
|
import {
|
|
19
20
|
atomicWriteFile
|
|
20
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-D2J3AD6L.js";
|
|
21
22
|
import {
|
|
22
23
|
report
|
|
23
24
|
} from "./chunk-AU27USPZ.js";
|
|
@@ -102,4 +103,4 @@ export {
|
|
|
102
103
|
wrapStatusLine,
|
|
103
104
|
wrapperCommand
|
|
104
105
|
};
|
|
105
|
-
//# sourceMappingURL=statusline-
|
|
106
|
+
//# sourceMappingURL=statusline-WKKYCH7O.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/core/agents/claude/statusline.ts"],"sourcesContent":["import fs from 'node:fs';\nimport path from 'node:path';\nimport { atomicWriteFile } from '../../platform/fs-safe.js';\nimport { editSettings, readSettingsFile, type SettingsFile } from '../../platform/settings-editor.js';\nimport { report } from '../../platform/report.js';\nimport { setUpAccounts } from './accounts.js';\nimport { WORK_STATUSLINE, isOurs, isRecord, readSaved, savedPath, type StatusLine } from './statusline-run.js';\n\n// Claude hands its rate limits only to the status line command. work puts itself in front of the user's own: it records\n// the reading, then runs theirs and passes its output on (statusline-run.ts, the hook's half). This half installs and\n// removes it; work web loads it lazily through the adapter (usage.ts), never the hook.\n\n// Each account has its own settings and its own saved original: every function takes the account's config folder\n// (`configDir`; none = the default account, ~/.claude) and works on its `settings.json` and `statusline[-<account>].json`.\n\nconst settingsOf = (configDir?: string) => (configDir ? path.join(configDir, 'settings.json') : undefined);\n\nfunction save(original: StatusLine | null, configDir?: string): void {\n fs.mkdirSync(path.dirname(savedPath(configDir)), { recursive: true });\n atomicWriteFile(savedPath(configDir), JSON.stringify({ original }));\n}\n\n/**\n * The command work puts in Claude's settings: its hook, then — when the user had a line — theirs as the fallback\n * (`work hook statusline || (<theirs>)`). The hook always exits 0 and runs theirs itself (from statusline.json), so the\n * right side runs only when `work` is gone (uninstalled, not on PATH): the user's status line then still shows.\n */\nexport function wrapperCommand(original: StatusLine | null): string {\n const cmd = original && typeof original.command === 'string' ? original.command.trim() : '';\n if (!cmd) return WORK_STATUSLINE;\n // A `# comment` in it would swallow the closing parenthesis: the parenthesis goes on a line of its own then.\n return /[#\\n]/.test(cmd) ? `${WORK_STATUSLINE} || (${cmd}\\n)` : `${WORK_STATUSLINE} || (${cmd})`;\n}\n\n/** Put work's status line in front of the user's. The original is saved inside the edit, so a change made meanwhile isn't lost. */\nexport async function wrapStatusLine(configDir?: string): Promise<void> {\n await editSettings((s: SettingsFile) => {\n if (isOurs(s.statusLine)) {\n // Ours already (perhaps under another path, or from before): the fallback follows the saved original. Nothing\n // readable saved: left as it is — its fallback may be the only copy of the user's line.\n const saved = readSaved(configDir);\n if (saved.kind === 'ok') s.statusLine = { ...(s.statusLine as StatusLine), command: wrapperCommand(saved.original) };\n return;\n }\n // Not ours: the user's line, perhaps set again with /statusline since — saved fresh, with a new fallback.\n const original = isRecord(s.statusLine) ? s.statusLine : null;\n save(original, configDir);\n const { command: _c, type: _t, ...keep } = original ?? {};\n s.statusLine = { ...keep, type: 'command', command: wrapperCommand(original) };\n }, settingsOf(configDir));\n}\n\n/** The statusLine entry of Claude's settings as it is now; `unreadable` when the file doesn't parse. */\nexport function readStatusLineSetting(configDir?: string): { kind: 'ok'; statusLine: unknown } | { kind: 'unreadable' } {\n const s = readSettingsFile(settingsOf(configDir));\n return s ? { kind: 'ok', statusLine: s.statusLine } : { kind: 'unreadable' };\n}\n\n/**\n * What unwrapStatusLine did: put the original back, found a status line that isn't work's (left alone), kept work's\n * because the saved original is missing or damaged (putting nothing back would lose the user's), or couldn't edit the settings.\n */\nexport type UnwrapOutcome = 'restored' | 'not-ours' | 'kept' | 'failed';\n\n/** Give the user's status line back (settings left alone when it isn't ours, or when what was saved can't be read). */\nexport async function unwrapStatusLine(configDir?: string): Promise<UnwrapOutcome> {\n let outcome = 'failed' as UnwrapOutcome; // the mutate never runs when the settings can't be read (set inside it, hence the cast)\n await editSettings((s: SettingsFile) => {\n if (!isOurs(s.statusLine)) {\n outcome = 'not-ours';\n return;\n }\n const saved = readSaved(configDir);\n if (saved.kind !== 'ok') {\n outcome = 'kept';\n return;\n }\n if (saved.original) s.statusLine = saved.original;\n else delete s.statusLine;\n outcome = 'restored';\n }, settingsOf(configDir));\n if (outcome === 'kept')\n report(\n 'warn',\n `[work] ${savedPath(configDir)} (your own status line, saved by work) is missing or damaged: Claude's status line left as it is.`,\n );\n // The saved original goes only once the settings no longer point at work: a failed write must not lose it.\n const now = readStatusLineSetting(configDir);\n if (outcome !== 'kept' && now.kind === 'ok' && !isOurs(now.statusLine)) fs.rmSync(savedPath(configDir), { force: true });\n return outcome;\n}\n\n/** Every account's config folder, the default's first; a configured one only once its folder exists (setUpAccounts). */\nconst accountDirs = (): string[] => setUpAccounts().map((a) => a.dir);\n\n/** Give every account's status line back; the outcome of each, by account name. */\nexport async function unwrapAllStatusLines(): Promise<Array<{ account: string; outcome: UnwrapOutcome }>> {\n const out: Array<{ account: string; outcome: UnwrapOutcome }> = [];\n for (const a of setUpAccounts()) out.push({ account: a.name, outcome: await unwrapStatusLine(a.dir) });\n return out;\n}\n\n/**\n * The choice work web makes at start (a lean `wd` server never touches it): `enabled: false` (config\n * `usage.statusLine: false`) gives the user's status line back, anything else wraps it.\n */\nexport async function applyStatusLineSetting(o: { enabled: boolean; lean: boolean }): Promise<'wrapped' | 'restored' | 'skipped'> {\n if (o.lean) return 'skipped';\n if (!o.enabled) {\n for (const dir of accountDirs()) await unwrapStatusLine(dir);\n return 'restored';\n }\n for (const dir of accountDirs()) await wrapStatusLine(dir);\n return 'wrapped';\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/core/agents/claude/statusline.ts"],"sourcesContent":["import fs from 'node:fs';\nimport path from 'node:path';\nimport { atomicWriteFile } from '../../platform/fs-safe.js';\nimport { editSettings, readSettingsFile, type SettingsFile } from '../../platform/settings-editor.js';\nimport { report } from '../../platform/report.js';\nimport { setUpAccounts } from './accounts.js';\nimport { WORK_STATUSLINE, isOurs, isRecord, readSaved, savedPath, type StatusLine } from './statusline-run.js';\n\n// Claude hands its rate limits only to the status line command. work puts itself in front of the user's own: it records\n// the reading, then runs theirs and passes its output on (statusline-run.ts, the hook's half). This half installs and\n// removes it; work web loads it lazily through the adapter (usage.ts), never the hook.\n\n// Each account has its own settings and its own saved original: every function takes the account's config folder\n// (`configDir`; none = the default account, ~/.claude) and works on its `settings.json` and `statusline[-<account>].json`.\n\nconst settingsOf = (configDir?: string) => (configDir ? path.join(configDir, 'settings.json') : undefined);\n\nfunction save(original: StatusLine | null, configDir?: string): void {\n fs.mkdirSync(path.dirname(savedPath(configDir)), { recursive: true });\n atomicWriteFile(savedPath(configDir), JSON.stringify({ original }));\n}\n\n/**\n * The command work puts in Claude's settings: its hook, then — when the user had a line — theirs as the fallback\n * (`work hook statusline || (<theirs>)`). The hook always exits 0 and runs theirs itself (from statusline.json), so the\n * right side runs only when `work` is gone (uninstalled, not on PATH): the user's status line then still shows.\n */\nexport function wrapperCommand(original: StatusLine | null): string {\n const cmd = original && typeof original.command === 'string' ? original.command.trim() : '';\n if (!cmd) return WORK_STATUSLINE;\n // A `# comment` in it would swallow the closing parenthesis: the parenthesis goes on a line of its own then.\n return /[#\\n]/.test(cmd) ? `${WORK_STATUSLINE} || (${cmd}\\n)` : `${WORK_STATUSLINE} || (${cmd})`;\n}\n\n/** Put work's status line in front of the user's. The original is saved inside the edit, so a change made meanwhile isn't lost. */\nexport async function wrapStatusLine(configDir?: string): Promise<void> {\n await editSettings((s: SettingsFile) => {\n if (isOurs(s.statusLine)) {\n // Ours already (perhaps under another path, or from before): the fallback follows the saved original. Nothing\n // readable saved: left as it is — its fallback may be the only copy of the user's line.\n const saved = readSaved(configDir);\n if (saved.kind === 'ok') s.statusLine = { ...(s.statusLine as StatusLine), command: wrapperCommand(saved.original) };\n return;\n }\n // Not ours: the user's line, perhaps set again with /statusline since — saved fresh, with a new fallback.\n const original = isRecord(s.statusLine) ? s.statusLine : null;\n save(original, configDir);\n const { command: _c, type: _t, ...keep } = original ?? {};\n s.statusLine = { ...keep, type: 'command', command: wrapperCommand(original) };\n }, settingsOf(configDir));\n}\n\n/** The statusLine entry of Claude's settings as it is now; `unreadable` when the file doesn't parse. */\nexport function readStatusLineSetting(configDir?: string): { kind: 'ok'; statusLine: unknown } | { kind: 'unreadable' } {\n const s = readSettingsFile(settingsOf(configDir));\n return s ? { kind: 'ok', statusLine: s.statusLine } : { kind: 'unreadable' };\n}\n\n/**\n * What unwrapStatusLine did: put the original back, found a status line that isn't work's (left alone), kept work's\n * because the saved original is missing or damaged (putting nothing back would lose the user's), or couldn't edit the settings.\n */\nexport type UnwrapOutcome = 'restored' | 'not-ours' | 'kept' | 'failed';\n\n/** Give the user's status line back (settings left alone when it isn't ours, or when what was saved can't be read). */\nexport async function unwrapStatusLine(configDir?: string): Promise<UnwrapOutcome> {\n let outcome = 'failed' as UnwrapOutcome; // the mutate never runs when the settings can't be read (set inside it, hence the cast)\n await editSettings((s: SettingsFile) => {\n if (!isOurs(s.statusLine)) {\n outcome = 'not-ours';\n return;\n }\n const saved = readSaved(configDir);\n if (saved.kind !== 'ok') {\n outcome = 'kept';\n return;\n }\n if (saved.original) s.statusLine = saved.original;\n else delete s.statusLine;\n outcome = 'restored';\n }, settingsOf(configDir));\n if (outcome === 'kept')\n report(\n 'warn',\n `[work] ${savedPath(configDir)} (your own status line, saved by work) is missing or damaged: Claude's status line left as it is.`,\n );\n // The saved original goes only once the settings no longer point at work: a failed write must not lose it.\n const now = readStatusLineSetting(configDir);\n if (outcome !== 'kept' && now.kind === 'ok' && !isOurs(now.statusLine)) fs.rmSync(savedPath(configDir), { force: true });\n return outcome;\n}\n\n/** Every account's config folder, the default's first; a configured one only once its folder exists (setUpAccounts). */\nconst accountDirs = (): string[] => setUpAccounts().map((a) => a.dir);\n\n/** Give every account's status line back; the outcome of each, by account name. */\nexport async function unwrapAllStatusLines(): Promise<Array<{ account: string; outcome: UnwrapOutcome }>> {\n const out: Array<{ account: string; outcome: UnwrapOutcome }> = [];\n for (const a of setUpAccounts()) out.push({ account: a.name, outcome: await unwrapStatusLine(a.dir) });\n return out;\n}\n\n/**\n * The choice work web makes at start (a lean `wd` server never touches it): `enabled: false` (config\n * `usage.statusLine: false`) gives the user's status line back, anything else wraps it.\n */\nexport async function applyStatusLineSetting(o: { enabled: boolean; lean: boolean }): Promise<'wrapped' | 'restored' | 'skipped'> {\n if (o.lean) return 'skipped';\n if (!o.enabled) {\n for (const dir of accountDirs()) await unwrapStatusLine(dir);\n return 'restored';\n }\n for (const dir of accountDirs()) await wrapStatusLine(dir);\n return 'wrapped';\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ;AACf,OAAO,UAAU;AAcjB,IAAM,aAAa,CAAC,cAAwB,YAAY,KAAK,KAAK,WAAW,eAAe,IAAI;AAEhG,SAAS,KAAK,UAA6B,WAA0B;AACnE,KAAG,UAAU,KAAK,QAAQ,UAAU,SAAS,CAAC,GAAG,EAAE,WAAW,KAAK,CAAC;AACpE,kBAAgB,UAAU,SAAS,GAAG,KAAK,UAAU,EAAE,SAAS,CAAC,CAAC;AACpE;AAOO,SAAS,eAAe,UAAqC;AAClE,QAAM,MAAM,YAAY,OAAO,SAAS,YAAY,WAAW,SAAS,QAAQ,KAAK,IAAI;AACzF,MAAI,CAAC,IAAK,QAAO;AAEjB,SAAO,QAAQ,KAAK,GAAG,IAAI,GAAG,eAAe,QAAQ,GAAG;AAAA,KAAQ,GAAG,eAAe,QAAQ,GAAG;AAC/F;AAGA,eAAsB,eAAe,WAAmC;AACtE,QAAM,aAAa,CAAC,MAAoB;AACtC,QAAI,OAAO,EAAE,UAAU,GAAG;AAGxB,YAAM,QAAQ,UAAU,SAAS;AACjC,UAAI,MAAM,SAAS,KAAM,GAAE,aAAa,EAAE,GAAI,EAAE,YAA2B,SAAS,eAAe,MAAM,QAAQ,EAAE;AACnH;AAAA,IACF;AAEA,UAAM,WAAW,SAAS,EAAE,UAAU,IAAI,EAAE,aAAa;AACzD,SAAK,UAAU,SAAS;AACxB,UAAM,EAAE,SAAS,IAAI,MAAM,IAAI,GAAG,KAAK,IAAI,YAAY,CAAC;AACxD,MAAE,aAAa,EAAE,GAAG,MAAM,MAAM,WAAW,SAAS,eA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ACA,aAAW,OAAO,YAAY,EAAG,OAAM,eAAe,GAAG;AACzD,SAAO;AACT;","names":[]}
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
recordReading
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-CBCOVIXZ.js";
|
|
5
5
|
import {
|
|
6
6
|
NESTED_ENV,
|
|
7
7
|
accountOf,
|
|
8
8
|
originalStatusLine,
|
|
9
9
|
parseClaudeRateLimits,
|
|
10
10
|
runStatusLineCommand
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-PPZP7CA7.js";
|
|
12
|
+
import "./chunk-63ZLPXRL.js";
|
|
13
|
+
import "./chunk-EL3XL2OC.js";
|
|
14
|
+
import "./chunk-D2J3AD6L.js";
|
|
14
15
|
import {
|
|
15
16
|
debugLog
|
|
16
17
|
} from "./chunk-6THUVP6T.js";
|
|
@@ -60,4 +61,4 @@ async function runStatusLineHook(o = {}) {
|
|
|
60
61
|
export {
|
|
61
62
|
runStatusLineHook
|
|
62
63
|
};
|
|
63
|
-
//# sourceMappingURL=statusline-hook-
|
|
64
|
+
//# sourceMappingURL=statusline-hook-K7KPN2H6.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/core/agents/claude/statusline-hook.ts"],"sourcesContent":["import fs from 'node:fs';\nimport { recordReading } from '../../usage/usage-store.js';\nimport { debugLog } from '../../platform/logger.js';\nimport { accountOf, parseClaudeRateLimits } from './rate-limits.js';\nimport { NESTED_ENV, originalStatusLine, runStatusLineCommand } from './statusline-run.js';\n\n/** More than any status-line input: the rest is not read. */\nconst INPUT_CAP = 1_000_000;\n\n/**\n * Claude's status line command, `work hook statusline` (bin.ts loads this module and nothing else of the CLI;\n * statusline.ts installs it): keep the rate limits it sends, then show what the user's own status line prints.\n * It is Claude's screen, so nothing else is ever written — not even an error (those go to the debug log).\n */\nexport async function runStatusLineHook(\n o: { stdin?: NodeJS.ReadableStream; stdout?: NodeJS.WritableStream; env?: NodeJS.ProcessEnv } = {},\n): Promise<void> {\n const stdin = o.stdin ?? process.stdin;\n const stdout = o.stdout ?? process.stdout;\n const env = o.env ?? process.env;\n // Claude may close the pipe before we write (a refresh replaced this one): EPIPE is nothing to report.\n stdout.on('error', () => {});\n try {\n // Bytes, decoded once: a character can be cut in two between chunks.\n const chunks: Buffer[] = [];\n let size = 0;\n for await (const chunk of stdin) {\n const b = typeof chunk === 'string' ? Buffer.from(chunk) : Buffer.from(chunk as Uint8Array);\n chunks.push(b);\n size += b.length;\n if (size > INPUT_CAP) break;\n }\n const raw = Buffer.concat(chunks).toString('utf-8');\n let input: Record<string, unknown> | null = null;\n try {\n const v: unknown = JSON.parse(raw);\n if (typeof v === 'object' && v !== null && !Array.isArray(v)) input = v as Record<string, unknown>;\n } catch {\n /* not JSON: nothing to record, the user's own line still runs */\n }\n if (input) {\n const limits = parseClaudeRateLimits(input.rate_limits);\n const given = input.rate_limits;\n // Limits given in a shape the parser doesn't know (a Claude Code update): say so in the log, once per refresh.\n if (limits.length === 0 && typeof given === 'object' && given !== null && Object.keys(given).length > 0)\n debugLog('WARN', `[statusline] rate_limits not understood; keys: ${Object.keys(given).join(', ')}`);\n recordReading('claude', accountOf(env.CLAUDE_CONFIG_DIR), limits);\n }\n // Run by the user's own command (it calls work's hook itself): running it again would never end.\n if (env[NESTED_ENV]) return;\n // The line saved for this Claude's account (its environment names the config folder).\n const orig = originalStatusLine((why) => debugLog('WARN', `[statusline] saved status line unreadable: ${why}`), env.CLAUDE_CONFIG_DIR);\n if (!orig) return;\n const ws = input?.workspace as { current_dir?: unknown } | undefined;\n const dir = [input?.cwd, ws?.current_dir].find((d): d is string => typeof d === 'string' && fs.existsSync(d));\n stdout.write(await runStatusLineCommand(orig.command, raw, { cwd: dir }));\n } catch (e) {\n debugLog('WARN', `[statusline] ${e instanceof Error ? e.message : String(e)}`);\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/core/agents/claude/statusline-hook.ts"],"sourcesContent":["import fs from 'node:fs';\nimport { recordReading } from '../../usage/usage-store.js';\nimport { debugLog } from '../../platform/logger.js';\nimport { accountOf, parseClaudeRateLimits } from './rate-limits.js';\nimport { NESTED_ENV, originalStatusLine, runStatusLineCommand } from './statusline-run.js';\n\n/** More than any status-line input: the rest is not read. */\nconst INPUT_CAP = 1_000_000;\n\n/**\n * Claude's status line command, `work hook statusline` (bin.ts loads this module and nothing else of the CLI;\n * statusline.ts installs it): keep the rate limits it sends, then show what the user's own status line prints.\n * It is Claude's screen, so nothing else is ever written — not even an error (those go to the debug log).\n */\nexport async function runStatusLineHook(\n o: { stdin?: NodeJS.ReadableStream; stdout?: NodeJS.WritableStream; env?: NodeJS.ProcessEnv } = {},\n): Promise<void> {\n const stdin = o.stdin ?? process.stdin;\n const stdout = o.stdout ?? process.stdout;\n const env = o.env ?? process.env;\n // Claude may close the pipe before we write (a refresh replaced this one): EPIPE is nothing to report.\n stdout.on('error', () => {});\n try {\n // Bytes, decoded once: a character can be cut in two between chunks.\n const chunks: Buffer[] = [];\n let size = 0;\n for await (const chunk of stdin) {\n const b = typeof chunk === 'string' ? Buffer.from(chunk) : Buffer.from(chunk as Uint8Array);\n chunks.push(b);\n size += b.length;\n if (size > INPUT_CAP) break;\n }\n const raw = Buffer.concat(chunks).toString('utf-8');\n let input: Record<string, unknown> | null = null;\n try {\n const v: unknown = JSON.parse(raw);\n if (typeof v === 'object' && v !== null && !Array.isArray(v)) input = v as Record<string, unknown>;\n } catch {\n /* not JSON: nothing to record, the user's own line still runs */\n }\n if (input) {\n const limits = parseClaudeRateLimits(input.rate_limits);\n const given = input.rate_limits;\n // Limits given in a shape the parser doesn't know (a Claude Code update): say so in the log, once per refresh.\n if (limits.length === 0 && typeof given === 'object' && given !== null && Object.keys(given).length > 0)\n debugLog('WARN', `[statusline] rate_limits not understood; keys: ${Object.keys(given).join(', ')}`);\n recordReading('claude', accountOf(env.CLAUDE_CONFIG_DIR), limits);\n }\n // Run by the user's own command (it calls work's hook itself): running it again would never end.\n if (env[NESTED_ENV]) return;\n // The line saved for this Claude's account (its environment names the config folder).\n const orig = originalStatusLine((why) => debugLog('WARN', `[statusline] saved status line unreadable: ${why}`), env.CLAUDE_CONFIG_DIR);\n if (!orig) return;\n const ws = input?.workspace as { current_dir?: unknown } | undefined;\n const dir = [input?.cwd, ws?.current_dir].find((d): d is string => typeof d === 'string' && fs.existsSync(d));\n stdout.write(await runStatusLineCommand(orig.command, raw, { cwd: dir }));\n } catch (e) {\n debugLog('WARN', `[statusline] ${e instanceof Error ? e.message : String(e)}`);\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ;AAOf,IAAM,YAAY;AAOlB,eAAsB,kBACpB,IAAgG,CAAC,GAClF;AACf,QAAM,QAAQ,EAAE,SAAS,QAAQ;AACjC,QAAM,SAAS,EAAE,UAAU,QAAQ;AACnC,QAAM,MAAM,EAAE,OAAO,QAAQ;AAE7B,SAAO,GAAG,SAAS,MAAM;AAAA,EAAC,CAAC;AAC3B,MAAI;AAEF,UAAM,SAAmB,CAAC;AAC1B,QAAI,OAAO;AACX,qBAAiB,SAAS,OAAO;AAC/B,YAAM,IAAI,OAAO,UAAU,WAAW,OAAO,KAAK,KAAK,IAAI,OAAO,KAAK,KAAmB;AAC1F,aAAO,KAAK,CAAC;AACb,cAAQ,EAAE;AACV,UAAI,OAAO,UAAW;AAAA,IACxB;AACA,UAAM,MAAM,OAAO,OAAO,MAAM,EAAE,SAAS,OAAO;AAClD,QAAI,QAAwC;AAC5C,QAAI;AACF,YAAM,IAAa,KAAK,MAAM,GAAG;AACjC,UAAI,OAAO,MAAM,YAAY,MAAM,QAAQ,CAAC,MAAM,QAAQ,CAAC,EAAG,SAAQ;AAAA,IACxE,QAAQ;AAAA,IAER;AACA,QAAI,OAAO;AACT,YAAM,SAAS,sBAAsB,MAAM,WAAW;AACtD,YAAM,QAAQ,MAAM;AAEpB,UAAI,OAAO,WAAW,KAAK,OAAO,UAAU,YAAY,UAAU,QAAQ,OAAO,KAAK,KAAK,EAAE,SAAS;AACpG,iBAAS,QAAQ,kDAAkD,OAAO,KAAK,KAAK,EAAE,KAAK,IAAI,CAAC,EAAE;AACpG,oBAAc,UAAU,UAAU,IAAI,iBAAiB,GAAG,MAAM;AAAA,IAClE;AAEA,QAAI,IAAI,UAAU,EAAG;AAErB,UAAM,OAAO,mBAAmB,CAAC,QAAQ,SAAS,QAAQ,8CAA8C,GAAG,EAAE,GAAG,IAAI,iBAAiB;AACrI,QAAI,CAAC,KAAM;AACX,UAAM,KAAK,OAAO;AAClB,UAAM,MAAM,CAAC,OAAO,KAAK,IAAI,WAAW,EAAE,KAAK,CAAC,MAAmB,OAAO,MAAM,YAAY,GAAG,WAAW,CAAC,CAAC;AAC5G,WAAO,MAAM,MAAM,qBAAqB,KAAK,SAAS,KAAK,EAAE,KAAK,IAAI,CAAC,CAAC;AAAA,EAC1E,SAAS,GAAG;AACV,aAAS,QAAQ,gBAAgB,aAAa,QAAQ,EAAE,UAAU,OAAO,CAAC,CAAC,EAAE;AAAA,EAC/E;AACF;","names":[]}
|
|
@@ -2,27 +2,29 @@
|
|
|
2
2
|
import {
|
|
3
3
|
sessionFromArgs,
|
|
4
4
|
sessionPositionals
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-I5FZXDCO.js";
|
|
6
6
|
import "./chunk-6AQRYLOB.js";
|
|
7
7
|
import {
|
|
8
8
|
callWorkWeb
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-RGLIW45S.js";
|
|
10
|
+
import "./chunk-VRQKIIC2.js";
|
|
11
11
|
import "./chunk-ZSHWP2VS.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-7DUGVGUZ.js";
|
|
13
13
|
import "./chunk-HUXS3VAI.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-ZG2M4ECW.js";
|
|
15
15
|
import "./chunk-NEJVK5CF.js";
|
|
16
16
|
import {
|
|
17
17
|
sessionIdFor
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-RUYTU2WJ.js";
|
|
19
|
+
import "./chunk-N4W34U3I.js";
|
|
20
|
+
import "./chunk-CBCOVIXZ.js";
|
|
21
|
+
import "./chunk-PPZP7CA7.js";
|
|
22
|
+
import "./chunk-DMGNJ73M.js";
|
|
23
|
+
import "./chunk-NFWSJFYY.js";
|
|
24
|
+
import "./chunk-O5ZJY5BT.js";
|
|
25
|
+
import "./chunk-63ZLPXRL.js";
|
|
26
|
+
import "./chunk-EL3XL2OC.js";
|
|
27
|
+
import "./chunk-D2J3AD6L.js";
|
|
26
28
|
import "./chunk-AU27USPZ.js";
|
|
27
29
|
import "./chunk-6THUVP6T.js";
|
|
28
30
|
|
|
@@ -47,4 +49,4 @@ var stopCommand = {
|
|
|
47
49
|
export {
|
|
48
50
|
stopCommand
|
|
49
51
|
};
|
|
50
|
-
//# sourceMappingURL=stop-
|
|
52
|
+
//# sourceMappingURL=stop-3TJWZBJB.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/commands/stop.ts"],"sourcesContent":["import chalk from 'chalk';\nimport type { CommandModule } from 'yargs';\nimport { callWorkWeb } from '../core/platform/web-discovery.js';\nimport { sessionIdFor } from '../core/sessions/session-id.js';\nimport type { AgentControlWire } from '../core/api-types.js';\nimport { sessionFromArgs, sessionPositionals } from './shared/session-arg.js';\n\n/** `work stop` — stop a session's agent in the PTY host; its conversation is kept, and opening the session resumes it (POST …/agent/stop). */\nexport const stopCommand: CommandModule = {\n command: 'stop [target] [branch]',\n describe: \"Stop a session's agent (its conversation is kept; opening the session resumes it)\",\n builder: (yargs) => sessionPositionals(yargs),\n handler: async (argv) => {\n const s = sessionFromArgs(argv);\n if (!s) return;\n const r = await callWorkWeb<AgentControlWire>('POST', `/api/sessions/${sessionIdFor(s)}/agent/stop`, {});\n if (!r.ok) {\n console.error(chalk.red(r.error));\n process.exitCode = 1;\n return;\n }\n console.log(r.body.how === 'not-running' ? `${s.target} · ${s.branch}: not running` : `${s.target} · ${s.branch}: stopped`);\n },\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/commands/stop.ts"],"sourcesContent":["import chalk from 'chalk';\nimport type { CommandModule } from 'yargs';\nimport { callWorkWeb } from '../core/platform/web-discovery.js';\nimport { sessionIdFor } from '../core/sessions/session-id.js';\nimport type { AgentControlWire } from '../core/api-types.js';\nimport { sessionFromArgs, sessionPositionals } from './shared/session-arg.js';\n\n/** `work stop` — stop a session's agent in the PTY host; its conversation is kept, and opening the session resumes it (POST …/agent/stop). */\nexport const stopCommand: CommandModule = {\n command: 'stop [target] [branch]',\n describe: \"Stop a session's agent (its conversation is kept; opening the session resumes it)\",\n builder: (yargs) => sessionPositionals(yargs),\n handler: async (argv) => {\n const s = sessionFromArgs(argv);\n if (!s) return;\n const r = await callWorkWeb<AgentControlWire>('POST', `/api/sessions/${sessionIdFor(s)}/agent/stop`, {});\n if (!r.ok) {\n console.error(chalk.red(r.error));\n process.exitCode = 1;\n return;\n }\n console.log(r.body.how === 'not-running' ? `${s.target} · ${s.branch}: not running` : `${s.target} · ${s.branch}: stopped`);\n },\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,WAAW;AAQX,IAAM,cAA6B;AAAA,EACxC,SAAS;AAAA,EACT,UAAU;AAAA,EACV,SAAS,CAAC,UAAU,mBAAmB,KAAK;AAAA,EAC5C,SAAS,OAAO,SAAS;AACvB,UAAM,IAAI,gBAAgB,IAAI;AAC9B,QAAI,CAAC,EAAG;AACR,UAAM,IAAI,MAAM,YAA8B,QAAQ,iBAAiB,aAAa,CAAC,CAAC,eAAe,CAAC,CAAC;AACvG,QAAI,CAAC,EAAE,IAAI;AACT,cAAQ,MAAM,MAAM,IAAI,EAAE,KAAK,CAAC;AAChC,cAAQ,WAAW;AACnB;AAAA,IACF;AACA,YAAQ,IAAI,EAAE,KAAK,QAAQ,gBAAgB,GAAG,EAAE,MAAM,SAAM,EAAE,MAAM,kBAAkB,GAAG,EAAE,MAAM,SAAM,EAAE,MAAM,WAAW;AAAA,EAC5H;AACF;","names":[]}
|
|
@@ -5,49 +5,61 @@ import {
|
|
|
5
5
|
} from "./chunk-ABQYKTG4.js";
|
|
6
6
|
import {
|
|
7
7
|
defaultCleanupDeps
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-PTWVOT7A.js";
|
|
8
|
+
} from "./chunk-YQBBFX7D.js";
|
|
9
|
+
import "./chunk-HJKYE57I.js";
|
|
11
10
|
import {
|
|
12
11
|
applyCleanup,
|
|
13
12
|
scanCleanup
|
|
14
13
|
} from "./chunk-AKMPF72Y.js";
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-J3GEINBH.js";
|
|
15
|
+
import "./chunk-MXOHW4U2.js";
|
|
16
|
+
import "./chunk-GZNF6762.js";
|
|
17
|
+
import "./chunk-W7MGB3Q2.js";
|
|
18
|
+
import "./chunk-IQ4MITHC.js";
|
|
19
|
+
import "./chunk-JNBMANFM.js";
|
|
20
|
+
import "./chunk-LQNHIMJM.js";
|
|
21
|
+
import "./chunk-QLFJNYBV.js";
|
|
22
|
+
import "./chunk-YPXFDJ76.js";
|
|
23
|
+
import "./chunk-LHM3GB5K.js";
|
|
24
|
+
import "./chunk-2QLLPZ2L.js";
|
|
25
|
+
import "./chunk-SPP7MA3D.js";
|
|
26
|
+
import "./chunk-JVHHSKBJ.js";
|
|
27
|
+
import "./chunk-AHYCZUPI.js";
|
|
28
|
+
import "./chunk-7NNGYM3G.js";
|
|
29
|
+
import "./chunk-7E5XPDKX.js";
|
|
30
|
+
import "./chunk-PKQROEFP.js";
|
|
31
|
+
import "./chunk-VRQKIIC2.js";
|
|
27
32
|
import "./chunk-ZSHWP2VS.js";
|
|
28
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-7DUGVGUZ.js";
|
|
29
34
|
import "./chunk-HUXS3VAI.js";
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-LM2T5OR3.js";
|
|
36
|
+
import "./chunk-B6MWNZCN.js";
|
|
37
|
+
import "./chunk-F2NOCGMA.js";
|
|
38
|
+
import "./chunk-7RHC5U7X.js";
|
|
39
|
+
import "./chunk-FGPXMAYU.js";
|
|
40
|
+
import "./chunk-2ZQRD73B.js";
|
|
41
|
+
import "./chunk-MQCDFSVF.js";
|
|
42
|
+
import "./chunk-I6MILNM5.js";
|
|
43
|
+
import "./chunk-KSVYR4G2.js";
|
|
44
|
+
import "./chunk-ZG2M4ECW.js";
|
|
40
45
|
import "./chunk-NEJVK5CF.js";
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
46
|
+
import "./chunk-RUYTU2WJ.js";
|
|
47
|
+
import "./chunk-LNHSBM4L.js";
|
|
48
|
+
import "./chunk-N4W34U3I.js";
|
|
49
|
+
import "./chunk-4K4S53KX.js";
|
|
50
|
+
import "./chunk-DCCC7LEP.js";
|
|
51
|
+
import "./chunk-CBCOVIXZ.js";
|
|
52
|
+
import "./chunk-PPZP7CA7.js";
|
|
53
|
+
import "./chunk-SJBEIYLK.js";
|
|
54
|
+
import "./chunk-DAKJTB6N.js";
|
|
55
|
+
import "./chunk-DMGNJ73M.js";
|
|
56
|
+
import "./chunk-NFWSJFYY.js";
|
|
45
57
|
import {
|
|
46
58
|
ensureConfig
|
|
47
|
-
} from "./chunk-
|
|
48
|
-
import "./chunk-
|
|
49
|
-
import "./chunk-
|
|
50
|
-
import "./chunk-
|
|
59
|
+
} from "./chunk-O5ZJY5BT.js";
|
|
60
|
+
import "./chunk-63ZLPXRL.js";
|
|
61
|
+
import "./chunk-EL3XL2OC.js";
|
|
62
|
+
import "./chunk-D2J3AD6L.js";
|
|
51
63
|
import "./chunk-AU27USPZ.js";
|
|
52
64
|
import "./chunk-6THUVP6T.js";
|
|
53
65
|
|
|
@@ -106,4 +118,4 @@ var syncCommand = {
|
|
|
106
118
|
export {
|
|
107
119
|
syncCommand
|
|
108
120
|
};
|
|
109
|
-
//# sourceMappingURL=sync-
|
|
121
|
+
//# sourceMappingURL=sync-67AOBEYR.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/commands/sync.ts"],"sourcesContent":["import chalk from 'chalk';\nimport type { CommandModule } from 'yargs';\nimport { ensureConfig } from '../core/platform/config.js';\nimport { applyCleanup, scanCleanup } from '../core/cleanup/cleanup.js';\nimport { defaultCleanupDeps } from '../core/cleanup/cleanup-deps.js';\nimport { printCleanupResults, removable } from './shared/cleanup-print.js';\n\nexport const syncCommand: CommandModule = {\n command: 'sync',\n describe: 'Fetch all repos and remove merged worktrees (non-interactive)',\n builder: (yargs) =>\n yargs\n .option('dry-run', {\n describe: 'Show what would be removed without removing anything',\n type: 'boolean',\n default: false,\n })\n .option('force', {\n describe:\n 'Also remove merged worktrees that have uncommitted changes (those changes are lost). ' +\n 'A worktree with commits the main branch lacks is never removed.',\n type: 'boolean',\n default: false,\n })\n .option('include-squash', {\n describe: 'Also remove branches detected as squash-merged ' + '(default: false — unattended sync requires a true merge)',\n type: 'boolean',\n default: false,\n }),\n handler: async (argv) => {\n const dryRun = argv['dryRun'] as boolean;\n const force = argv['force'] as boolean;\n const includeSquash = argv['includeSquash'] as boolean;\n ensureConfig();\n const deps = defaultCleanupDeps();\n\n console.log(chalk.gray('Fetching all repos and checking worktrees…\\n'));\n const scan = await scanCleanup(deps);\n // A repo whose fetch failed has stale refs: its worktrees were not judged.\n for (const f of scan.fetchFailed)\n console.log(chalk.yellow(` Warning: fetch failed for ${f.alias} — skipping it (refs may be stale): ${f.error}`));\n\n const chosen = removable(scan.candidates, { includeSquash, dirtyToo: force });\n const skippedDirty = removable(scan.candidates, { includeSquash, dirtyToo: true }).length - chosen.length;\n if (chosen.length === 0) {\n console.log(chalk.green('No merged worktrees to remove. Everything is in sync.'));\n if (skippedDirty > 0) console.log(chalk.yellow(`Skipped ${skippedDirty} merged worktree(s) with local changes (use --force).`));\n return;\n }\n console.log(chalk.cyan(`${dryRun ? 'Would remove' : 'Removing'} ${chosen.length} merged worktree(s):`));\n for (const c of chosen) console.log(` ${c.target}: ${c.branch}${c.isGroup ? ' [group]' : ''} — ${c.reason}`);\n console.log('');\n if (dryRun) {\n console.log(chalk.yellow(`Dry run: nothing removed.`));\n return;\n }\n const results = await applyCleanup(\n deps,\n chosen.map((c) => ({ sessionId: c.sessionId, action: c.verdict === 'gone' ? ('forget' as const) : ('delete' as const) })),\n { force },\n );\n printCleanupResults(chosen, results);\n if (skippedDirty > 0) console.log(chalk.yellow(`Skipped ${skippedDirty} merged worktree(s) with local changes (use --force).`));\n // A removal that git refused is a failure for scripts; \"changed since the\n // scan\" is a safe skip, counted in the summary above.\n if (results.some((r) => !r.ok && r.message.startsWith('git refused'))) process.exitCode = 1;\n },\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/commands/sync.ts"],"sourcesContent":["import chalk from 'chalk';\nimport type { CommandModule } from 'yargs';\nimport { ensureConfig } from '../core/platform/config.js';\nimport { applyCleanup, scanCleanup } from '../core/cleanup/cleanup.js';\nimport { defaultCleanupDeps } from '../core/cleanup/cleanup-deps.js';\nimport { printCleanupResults, removable } from './shared/cleanup-print.js';\n\nexport const syncCommand: CommandModule = {\n command: 'sync',\n describe: 'Fetch all repos and remove merged worktrees (non-interactive)',\n builder: (yargs) =>\n yargs\n .option('dry-run', {\n describe: 'Show what would be removed without removing anything',\n type: 'boolean',\n default: false,\n })\n .option('force', {\n describe:\n 'Also remove merged worktrees that have uncommitted changes (those changes are lost). ' +\n 'A worktree with commits the main branch lacks is never removed.',\n type: 'boolean',\n default: false,\n })\n .option('include-squash', {\n describe: 'Also remove branches detected as squash-merged ' + '(default: false — unattended sync requires a true merge)',\n type: 'boolean',\n default: false,\n }),\n handler: async (argv) => {\n const dryRun = argv['dryRun'] as boolean;\n const force = argv['force'] as boolean;\n const includeSquash = argv['includeSquash'] as boolean;\n ensureConfig();\n const deps = defaultCleanupDeps();\n\n console.log(chalk.gray('Fetching all repos and checking worktrees…\\n'));\n const scan = await scanCleanup(deps);\n // A repo whose fetch failed has stale refs: its worktrees were not judged.\n for (const f of scan.fetchFailed)\n console.log(chalk.yellow(` Warning: fetch failed for ${f.alias} — skipping it (refs may be stale): ${f.error}`));\n\n const chosen = removable(scan.candidates, { includeSquash, dirtyToo: force });\n const skippedDirty = removable(scan.candidates, { includeSquash, dirtyToo: true }).length - chosen.length;\n if (chosen.length === 0) {\n console.log(chalk.green('No merged worktrees to remove. Everything is in sync.'));\n if (skippedDirty > 0) console.log(chalk.yellow(`Skipped ${skippedDirty} merged worktree(s) with local changes (use --force).`));\n return;\n }\n console.log(chalk.cyan(`${dryRun ? 'Would remove' : 'Removing'} ${chosen.length} merged worktree(s):`));\n for (const c of chosen) console.log(` ${c.target}: ${c.branch}${c.isGroup ? ' [group]' : ''} — ${c.reason}`);\n console.log('');\n if (dryRun) {\n console.log(chalk.yellow(`Dry run: nothing removed.`));\n return;\n }\n const results = await applyCleanup(\n deps,\n chosen.map((c) => ({ sessionId: c.sessionId, action: c.verdict === 'gone' ? ('forget' as const) : ('delete' as const) })),\n { force },\n );\n printCleanupResults(chosen, results);\n if (skippedDirty > 0) console.log(chalk.yellow(`Skipped ${skippedDirty} merged worktree(s) with local changes (use --force).`));\n // A removal that git refused is a failure for scripts; \"changed since the\n // scan\" is a safe skip, counted in the summary above.\n if (results.some((r) => !r.ok && r.message.startsWith('git refused'))) process.exitCode = 1;\n },\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,WAAW;AAOX,IAAM,cAA6B;AAAA,EACxC,SAAS;AAAA,EACT,UAAU;AAAA,EACV,SAAS,CAAC,UACR,MACG,OAAO,WAAW;AAAA,IACjB,UAAU;AAAA,IACV,MAAM;AAAA,IACN,SAAS;AAAA,EACX,CAAC,EACA,OAAO,SAAS;AAAA,IACf,UACE;AAAA,IAEF,MAAM;AAAA,IACN,SAAS;AAAA,EACX,CAAC,EACA,OAAO,kBAAkB;AAAA,IACxB,UAAU;AAAA,IACV,MAAM;AAAA,IACN,SAAS;AAAA,EACX,CAAC;AAAA,EACL,SAAS,OAAO,SAAS;AACvB,UAAM,SAAS,KAAK,QAAQ;AAC5B,UAAM,QAAQ,KAAK,OAAO;AAC1B,UAAM,gBAAgB,KAAK,eAAe;AAC1C,iBAAa;AACb,UAAM,OAAO,mBAAmB;AAEhC,YAAQ,IAAI,MAAM,KAAK,mDAA8C,CAAC;AACtE,UAAM,OAAO,MAAM,YAAY,IAAI;AAEnC,eAAW,KAAK,KAAK;AACnB,cAAQ,IAAI,MAAM,OAAO,+BAA+B,EAAE,KAAK,4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X.js";
|
|
8
8
|
import {
|
|
9
9
|
sessionWorkTime
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-DYQQLUSB.js";
|
|
11
11
|
import {
|
|
12
12
|
sessionFromArgs,
|
|
13
13
|
sessionPositionals
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-I5FZXDCO.js";
|
|
15
15
|
import "./chunk-6AQRYLOB.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-VRQKIIC2.js";
|
|
17
17
|
import "./chunk-ZSHWP2VS.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-7DUGVGUZ.js";
|
|
19
19
|
import "./chunk-HUXS3VAI.js";
|
|
20
20
|
import {
|
|
21
21
|
loadHistory
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-ZG2M4ECW.js";
|
|
23
23
|
import {
|
|
24
24
|
dayKey,
|
|
25
25
|
formatWorked,
|
|
@@ -27,16 +27,18 @@ import {
|
|
|
27
27
|
} from "./chunk-NEJVK5CF.js";
|
|
28
28
|
import {
|
|
29
29
|
sessionIdFor
|
|
30
|
-
} from "./chunk-
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
30
|
+
} from "./chunk-RUYTU2WJ.js";
|
|
31
|
+
import "./chunk-N4W34U3I.js";
|
|
32
|
+
import "./chunk-CBCOVIXZ.js";
|
|
33
|
+
import "./chunk-PPZP7CA7.js";
|
|
34
|
+
import "./chunk-DMGNJ73M.js";
|
|
35
|
+
import "./chunk-NFWSJFYY.js";
|
|
34
36
|
import {
|
|
35
37
|
loadConfig
|
|
36
|
-
} from "./chunk-
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
38
|
+
} from "./chunk-O5ZJY5BT.js";
|
|
39
|
+
import "./chunk-63ZLPXRL.js";
|
|
40
|
+
import "./chunk-EL3XL2OC.js";
|
|
41
|
+
import "./chunk-D2J3AD6L.js";
|
|
40
42
|
import "./chunk-AU27USPZ.js";
|
|
41
43
|
import "./chunk-6THUVP6T.js";
|
|
42
44
|
|
|
@@ -116,4 +118,4 @@ var timeCommand = {
|
|
|
116
118
|
export {
|
|
117
119
|
timeCommand
|
|
118
120
|
};
|
|
119
|
-
//# sourceMappingURL=time-
|
|
121
|
+
//# sourceMappingURL=time-F6SLY6HR.js.map
|