@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
|
@@ -6,24 +6,26 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
sessionFromArgs,
|
|
8
8
|
sessionPositionals
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-I5FZXDCO.js";
|
|
10
10
|
import "./chunk-6AQRYLOB.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-VRQKIIC2.js";
|
|
12
12
|
import "./chunk-ZSHWP2VS.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-7DUGVGUZ.js";
|
|
14
14
|
import "./chunk-HUXS3VAI.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-ZG2M4ECW.js";
|
|
16
16
|
import "./chunk-NEJVK5CF.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-RUYTU2WJ.js";
|
|
18
18
|
import {
|
|
19
19
|
agentOf
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-N4W34U3I.js";
|
|
21
|
+
import "./chunk-CBCOVIXZ.js";
|
|
22
|
+
import "./chunk-PPZP7CA7.js";
|
|
23
|
+
import "./chunk-DMGNJ73M.js";
|
|
24
|
+
import "./chunk-NFWSJFYY.js";
|
|
25
|
+
import "./chunk-O5ZJY5BT.js";
|
|
26
|
+
import "./chunk-63ZLPXRL.js";
|
|
27
|
+
import "./chunk-EL3XL2OC.js";
|
|
28
|
+
import "./chunk-D2J3AD6L.js";
|
|
27
29
|
import "./chunk-AU27USPZ.js";
|
|
28
30
|
import "./chunk-6THUVP6T.js";
|
|
29
31
|
|
|
@@ -59,4 +61,4 @@ var readCommand = {
|
|
|
59
61
|
export {
|
|
60
62
|
readCommand
|
|
61
63
|
};
|
|
62
|
-
//# sourceMappingURL=read-
|
|
64
|
+
//# sourceMappingURL=read-NHRSGZI4.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/commands/read.ts"],"sourcesContent":["import chalk from 'chalk';\nimport type { CommandModule } from 'yargs';\nimport { agentOf } from '../core/agents/index.js';\nimport { sessionFromArgs, sessionPositionals } from './shared/session-arg.js';\nimport { formatConversation, READ_AS_DATA } from './shared/conversation-format.js';\n\n/** `work read` — a session's latest messages: yours, its agent's, its tool calls (agents/: the conversation, in work's own terms). */\nexport const readCommand: CommandModule = {\n command: 'read [target] [branch]',\n describe: \"A session's latest messages — yours, its agent's and its tool calls (default: the session for this folder)\",\n builder: (yargs) =>\n sessionPositionals(yargs)\n .option('last', { type: 'number', default: 20, describe: 'How many messages (newest last)' })\n .option('json', { type: 'boolean', default: false, describe: 'The entries as JSON: { at, role: you|agent|tool, text, tool? }' }),\n handler: (argv) => {\n const s = sessionFromArgs(argv);\n if (!s) return;\n const agent = agentOf(s);\n if (!agent.conversation) {\n console.error(chalk.red(`work can't read ${agent.name}'s conversations yet.`));\n process.exitCode = 1;\n return;\n }\n const last = Math.max(1, Math.min(500, Math.floor(Number(argv.last) || 20)));\n const entries = agent.conversation.read(s, { last });\n // On stderr either way: an agent parsing the JSON reads it too.\n if (entries.length) console.error(chalk.gray(`${s.target} · ${s.branch} — ${READ_AS_DATA}`));\n if (argv.json) {\n process.stdout.write(JSON.stringify(entries, null, 2) + '\\n');\n return;\n }\n if (entries.length === 0) {\n console.error(chalk.yellow(`No conversation found for ${s.target} · ${s.branch}.`));\n return;\n }\n console.log(formatConversation(entries, agent.name));\n },\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/commands/read.ts"],"sourcesContent":["import chalk from 'chalk';\nimport type { CommandModule } from 'yargs';\nimport { agentOf } from '../core/agents/index.js';\nimport { sessionFromArgs, sessionPositionals } from './shared/session-arg.js';\nimport { formatConversation, READ_AS_DATA } from './shared/conversation-format.js';\n\n/** `work read` — a session's latest messages: yours, its agent's, its tool calls (agents/: the conversation, in work's own terms). */\nexport const readCommand: CommandModule = {\n command: 'read [target] [branch]',\n describe: \"A session's latest messages — yours, its agent's and its tool calls (default: the session for this folder)\",\n builder: (yargs) =>\n sessionPositionals(yargs)\n .option('last', { type: 'number', default: 20, describe: 'How many messages (newest last)' })\n .option('json', { type: 'boolean', default: false, describe: 'The entries as JSON: { at, role: you|agent|tool, text, tool? }' }),\n handler: (argv) => {\n const s = sessionFromArgs(argv);\n if (!s) return;\n const agent = agentOf(s);\n if (!agent.conversation) {\n console.error(chalk.red(`work can't read ${agent.name}'s conversations yet.`));\n process.exitCode = 1;\n return;\n }\n const last = Math.max(1, Math.min(500, Math.floor(Number(argv.last) || 20)));\n const entries = agent.conversation.read(s, { last });\n // On stderr either way: an agent parsing the JSON reads it too.\n if (entries.length) console.error(chalk.gray(`${s.target} · ${s.branch} — ${READ_AS_DATA}`));\n if (argv.json) {\n process.stdout.write(JSON.stringify(entries, null, 2) + '\\n');\n return;\n }\n if (entries.length === 0) {\n console.error(chalk.yellow(`No conversation found for ${s.target} · ${s.branch}.`));\n return;\n }\n console.log(formatConversation(entries, agent.name));\n },\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,WAAW;AAOX,IAAM,cAA6B;AAAA,EACxC,SAAS;AAAA,EACT,UAAU;AAAA,EACV,SAAS,CAAC,UACR,mBAAmB,KAAK,EACrB,OAAO,QAAQ,EAAE,MAAM,UAAU,SAAS,IAAI,UAAU,kCAAkC,CAAC,EAC3F,OAAO,QAAQ,EAAE,MAAM,WAAW,SAAS,OAAO,UAAU,iEAAiE,CAAC;AAAA,EACnI,SAAS,CAAC,SAAS;AACjB,UAAM,IAAI,gBAAgB,IAAI;AAC9B,QAAI,CAAC,EAAG;AACR,UAAM,QAAQ,QAAQ,CAAC;AACvB,QAAI,CAAC,MAAM,cAAc;AACvB,cAAQ,MAAM,MAAM,IAAI,mBAAmB,MAAM,IAAI,uBAAuB,CAAC;AAC7E,cAAQ,WAAW;AACnB;AAAA,IACF;AACA,UAAM,OAAO,KAAK,IAAI,GAAG,KAAK,IAAI,KAAK,KAAK,MAAM,OAAO,KAAK,IAAI,KAAK,EAAE,CAAC,CAAC;AAC3E,UAAM,UAAU,MAAM,aAAa,KAAK,GAAG,EAAE,KAAK,CAAC;AAEnD,QAAI,QAAQ,OAAQ,SAAQ,MAAM,MAAM,KAAK,GAAG,EAAE,MAAM,SAAM,EAAE,MAAM,WAAM,YAAY,EAAE,CAAC;AAC3F,QAAI,KAAK,MAAM;AACb,cAAQ,OAAO,MAAM,KAAK,UAAU,SAAS,MAAM,CAAC,IAAI,IAAI;AAC5D;AAAA,IACF;AACA,QAAI,QAAQ,WAAW,GAAG;AACxB,cAAQ,MAAM,MAAM,OAAO,6BAA6B,EAAE,MAAM,SAAM,EAAE,MAAM,GAAG,CAAC;AAClF;AAAA,IACF;AACA,YAAQ,IAAI,mBAAmB,SAAS,MAAM,IAAI,CAAC;AAAA,EACrD;AACF;","names":[]}
|
|
@@ -2,30 +2,49 @@
|
|
|
2
2
|
import {
|
|
3
3
|
timeAgo
|
|
4
4
|
} from "./chunk-UQ35KLHH.js";
|
|
5
|
+
import {
|
|
6
|
+
retiredUnsafeOption,
|
|
7
|
+
warnRetiredUnsafe
|
|
8
|
+
} from "./chunk-S3CTXKSN.js";
|
|
9
|
+
import {
|
|
10
|
+
clearLaunchedUnsafeWhenIdle
|
|
11
|
+
} from "./chunk-QBI6K23L.js";
|
|
12
|
+
import "./chunk-7NNOGTMC.js";
|
|
13
|
+
import "./chunk-FZHFD2AY.js";
|
|
5
14
|
import {
|
|
6
15
|
launchAi
|
|
7
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-26YZYL77.js";
|
|
17
|
+
import "./chunk-YPXFDJ76.js";
|
|
18
|
+
import "./chunk-LHM3GB5K.js";
|
|
19
|
+
import "./chunk-2QLLPZ2L.js";
|
|
20
|
+
import "./chunk-VRQKIIC2.js";
|
|
21
|
+
import "./chunk-ZSHWP2VS.js";
|
|
22
|
+
import "./chunk-7DUGVGUZ.js";
|
|
23
|
+
import "./chunk-HUXS3VAI.js";
|
|
8
24
|
import {
|
|
9
25
|
effectiveLastAccessedAt,
|
|
10
26
|
getRecentSessions,
|
|
11
27
|
loadHistory,
|
|
12
|
-
recordLaunch,
|
|
13
28
|
touchSession
|
|
14
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-ZG2M4ECW.js";
|
|
15
30
|
import "./chunk-NEJVK5CF.js";
|
|
16
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-RUYTU2WJ.js";
|
|
32
|
+
import {
|
|
33
|
+
agentFor
|
|
34
|
+
} from "./chunk-N4W34U3I.js";
|
|
35
|
+
import "./chunk-CBCOVIXZ.js";
|
|
36
|
+
import "./chunk-PPZP7CA7.js";
|
|
37
|
+
import "./chunk-DAKJTB6N.js";
|
|
17
38
|
import {
|
|
18
|
-
agentFor,
|
|
19
39
|
envArgs
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-72IBYKIY.js";
|
|
40
|
+
} from "./chunk-DMGNJ73M.js";
|
|
41
|
+
import "./chunk-NFWSJFYY.js";
|
|
23
42
|
import {
|
|
24
43
|
ensureConfig
|
|
25
|
-
} from "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
44
|
+
} from "./chunk-O5ZJY5BT.js";
|
|
45
|
+
import "./chunk-63ZLPXRL.js";
|
|
46
|
+
import "./chunk-EL3XL2OC.js";
|
|
47
|
+
import "./chunk-D2J3AD6L.js";
|
|
29
48
|
import "./chunk-AU27USPZ.js";
|
|
30
49
|
import "./chunk-6THUVP6T.js";
|
|
31
50
|
|
|
@@ -44,15 +63,11 @@ var recentCommand = {
|
|
|
44
63
|
describe: "Interactively pick a session and launch the configured AI tool",
|
|
45
64
|
type: "boolean",
|
|
46
65
|
default: false
|
|
47
|
-
}).option("unsafe",
|
|
48
|
-
describe: "Launch the AI tool with its skip-permissions flag (used with --resume)",
|
|
49
|
-
type: "boolean",
|
|
50
|
-
default: false
|
|
51
|
-
}),
|
|
66
|
+
}).option("unsafe", retiredUnsafeOption),
|
|
52
67
|
handler: async (argv) => {
|
|
53
68
|
const count = argv.count;
|
|
54
69
|
const resume = argv.resume;
|
|
55
|
-
|
|
70
|
+
warnRetiredUnsafe(argv);
|
|
56
71
|
const config = ensureConfig();
|
|
57
72
|
const sessions = loadHistory();
|
|
58
73
|
const recent = getRecentSessions(sessions, count);
|
|
@@ -86,20 +101,14 @@ var recentCommand = {
|
|
|
86
101
|
}
|
|
87
102
|
const { launchPath, hasConversation } = agentFor(config, choice).launch.resumeLaunch(choice);
|
|
88
103
|
touchSession(choice.target, choice.branch);
|
|
104
|
+
clearLaunchedUnsafeWhenIdle(choice.target, choice.branch);
|
|
89
105
|
const tool = agentFor(config, choice).launch.tool(config);
|
|
90
106
|
console.log(chalk.cyan(`Resuming in: ${launchPath}`));
|
|
91
107
|
if (!hasConversation) {
|
|
92
108
|
console.log(chalk.yellow(`No prior ${tool.cmd} conversation found for this worktree \u2014 starting a fresh session.`));
|
|
93
109
|
}
|
|
94
110
|
console.log(`Starting ${tool.cmd}...`);
|
|
95
|
-
|
|
96
|
-
launchAi(
|
|
97
|
-
launchPath,
|
|
98
|
-
tool,
|
|
99
|
-
{ unsafe, resume: hasConversation },
|
|
100
|
-
choice.port,
|
|
101
|
-
...envArgs(agentFor(config, choice).launch.env?.(choice))
|
|
102
|
-
);
|
|
111
|
+
launchAi(launchPath, tool, { resume: hasConversation }, choice.port, ...envArgs(agentFor(config, choice).launch.env?.(choice)));
|
|
103
112
|
return;
|
|
104
113
|
}
|
|
105
114
|
console.log("");
|
|
@@ -120,4 +129,4 @@ var recentCommand = {
|
|
|
120
129
|
export {
|
|
121
130
|
recentCommand
|
|
122
131
|
};
|
|
123
|
-
//# sourceMappingURL=recent-
|
|
132
|
+
//# sourceMappingURL=recent-V4JVL4Y2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/commands/recent.ts"],"sourcesContent":["import fs from 'node:fs';\nimport { agentFor } from '../core/agents/index.js';\nimport chalk from 'chalk';\nimport type { CommandModule } from 'yargs';\nimport { select } from '@inquirer/prompts';\nimport { ensureConfig } from '../core/platform/config.js';\nimport { clearLaunchedUnsafeWhenIdle } from '../core/sessions/legacy-unsafe-io.js';\nimport { loadHistory, getRecentSessions, touchSession } from '../core/sessions/history.js';\nimport { retiredUnsafeOption, warnRetiredUnsafe } from './shared/retired-unsafe.js';\nimport { effectiveLastAccessedAt } from '../core/sessions/session-activity.js';\nimport { launchAi } from '../core/platform/launch.js';\nimport { envArgs } from '../core/platform/env-delta.js';\nimport { timeAgo } from '../core/platform/format.js';\n\nexport const recentCommand: CommandModule = {\n command: 'recent [count]',\n describe: 'List recent worktree sessions',\n builder: (yargs) =>\n yargs\n .positional('count', {\n describe: 'Number of recent sessions to show',\n type: 'number',\n default: 10,\n })\n .option('resume', {\n describe: 'Interactively pick a session and launch the configured AI tool',\n type: 'boolean',\n default: false,\n })\n .option('unsafe', retiredUnsafeOption),\n handler: async (argv) => {\n const count = argv.count as number;\n const resume = argv.resume as boolean;\n warnRetiredUnsafe(argv);\n\n const config = ensureConfig();\n\n const sessions = loadHistory();\n const recent = getRecentSessions(sessions, count);\n\n if (recent.length === 0) {\n console.log(chalk.yellow('No recent worktree sessions found.'));\n return;\n }\n\n if (resume) {\n // Filter to sessions that still exist on disk\n const valid = recent.filter((s) => s.paths.some((p) => fs.existsSync(p)));\n\n if (valid.length === 0) {\n console.log(chalk.yellow('No resumable sessions (all paths removed from disk).'));\n return;\n }\n\n const choices = valid.map((s) => {\n const typeTag = s.isGroup ? '[group]' : '[repo]';\n return {\n name: `${typeTag} ${s.target} ${s.branch} (${timeAgo(effectiveLastAccessedAt(s))})`,\n value: s,\n };\n });\n\n const choice = await select({\n message: 'Select a session to resume:',\n choices,\n pageSize: 15,\n });\n\n // Find first existing path\n const firstExisting = choice.paths.find((p) => fs.existsSync(p));\n if (!firstExisting) {\n console.error('Session path no longer exists.');\n process.exitCode = 1;\n return;\n }\n\n // Resume where Claude actually has a transcript (group root or the\n // sub-repo the user worked in); start fresh when none exists so\n // `--continue` doesn't error out. Mirrors `work resume`.\n const { launchPath, hasConversation } = agentFor(config, choice).launch.resumeLaunch(choice);\n\n // Only its last access: the list was read before the picker waited on you, and a repo may have been added since.\n touchSession(choice.target, choice.branch);\n clearLaunchedUnsafeWhenIdle(choice.target, choice.branch); // started normally now, unless the old one still runs (legacy-unsafe.ts; remove next release)\n\n const tool = agentFor(config, choice).launch.tool(config);\n console.log(chalk.cyan(`Resuming in: ${launchPath}`));\n if (!hasConversation) {\n console.log(chalk.yellow(`No prior ${tool.cmd} conversation found for this worktree — starting a fresh session.`));\n }\n console.log(`Starting ${tool.cmd}...`);\n launchAi(launchPath, tool, { resume: hasConversation }, choice.port, ...envArgs(agentFor(config, choice).launch.env?.(choice)));\n return;\n }\n\n // Just list recent sessions\n console.log('');\n console.log(chalk.cyan('Recent Sessions'));\n console.log(chalk.cyan('==============='));\n console.log('');\n\n for (const session of recent) {\n const typeLabel = session.isGroup ? chalk.magenta('[group]') : chalk.blue('[repo]');\n const exists = session.paths.some((p) => fs.existsSync(p));\n const existsTag = exists ? '' : chalk.red(' [removed]');\n\n console.log(`${typeLabel} ${chalk.green(session.target)} ${chalk.white(session.branch)}${existsTag}`);\n console.log(chalk.gray(` Last used: ${timeAgo(effectiveLastAccessedAt(session))}`));\n }\n\n console.log('');\n console.log(chalk.gray('Use work resume to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AQ,MAAM,CAAC,GAAG,SAAS,EAAE;AACpG,cAAQ,IAAI,MAAM,KAAK,gBAAgB,QAAQ,wBAAwB,OAAO,CAAC,CAAC,EAAE,CAAC;AAAA,IACrF;AAEA,YAAQ,IAAI,EAAE;AACd,YAAQ,IAAI,MAAM,KAAK,oDAAoD,CAAC;AAAA,EAC9E;AACF;","names":[]}
|
|
@@ -1,59 +1,71 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
archiveWaiting
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-PTWVOT7A.js";
|
|
4
|
+
} from "./chunk-HJKYE57I.js";
|
|
6
5
|
import "./chunk-AKMPF72Y.js";
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-J3GEINBH.js";
|
|
7
|
+
import "./chunk-MXOHW4U2.js";
|
|
8
|
+
import "./chunk-GZNF6762.js";
|
|
9
|
+
import "./chunk-W7MGB3Q2.js";
|
|
10
|
+
import "./chunk-IQ4MITHC.js";
|
|
11
|
+
import "./chunk-JNBMANFM.js";
|
|
13
12
|
import {
|
|
14
13
|
stopSessionPty
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-QEVYCCKD.js";
|
|
21
|
-
import "./chunk-ZSHWP2VS.js";
|
|
22
|
-
import "./chunk-5QGCF3PS.js";
|
|
23
|
-
import "./chunk-HUXS3VAI.js";
|
|
14
|
+
} from "./chunk-LQNHIMJM.js";
|
|
15
|
+
import "./chunk-QLFJNYBV.js";
|
|
16
|
+
import "./chunk-YPXFDJ76.js";
|
|
17
|
+
import "./chunk-LHM3GB5K.js";
|
|
18
|
+
import "./chunk-2QLLPZ2L.js";
|
|
24
19
|
import {
|
|
25
20
|
teardownWorktree,
|
|
26
21
|
wouldRefuseRemoval
|
|
27
|
-
} from "./chunk-
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
import "./chunk-
|
|
22
|
+
} from "./chunk-SPP7MA3D.js";
|
|
23
|
+
import "./chunk-JVHHSKBJ.js";
|
|
24
|
+
import "./chunk-AHYCZUPI.js";
|
|
25
|
+
import "./chunk-7NNGYM3G.js";
|
|
26
|
+
import "./chunk-7E5XPDKX.js";
|
|
27
|
+
import "./chunk-PKQROEFP.js";
|
|
28
|
+
import "./chunk-VRQKIIC2.js";
|
|
29
|
+
import "./chunk-ZSHWP2VS.js";
|
|
30
|
+
import "./chunk-7DUGVGUZ.js";
|
|
31
|
+
import "./chunk-HUXS3VAI.js";
|
|
32
|
+
import "./chunk-LM2T5OR3.js";
|
|
33
|
+
import "./chunk-B6MWNZCN.js";
|
|
34
|
+
import "./chunk-F2NOCGMA.js";
|
|
35
|
+
import "./chunk-7RHC5U7X.js";
|
|
36
|
+
import "./chunk-FGPXMAYU.js";
|
|
37
|
+
import "./chunk-2ZQRD73B.js";
|
|
38
|
+
import "./chunk-MQCDFSVF.js";
|
|
39
|
+
import "./chunk-I6MILNM5.js";
|
|
40
|
+
import "./chunk-KSVYR4G2.js";
|
|
39
41
|
import {
|
|
40
42
|
findSession,
|
|
41
43
|
loadHistory,
|
|
42
44
|
removeSession
|
|
43
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-ZG2M4ECW.js";
|
|
44
46
|
import "./chunk-NEJVK5CF.js";
|
|
45
47
|
import {
|
|
46
48
|
sessionIdFor
|
|
47
|
-
} from "./chunk-
|
|
48
|
-
import "./chunk-
|
|
49
|
-
import "./chunk-
|
|
50
|
-
import
|
|
49
|
+
} from "./chunk-RUYTU2WJ.js";
|
|
50
|
+
import "./chunk-LNHSBM4L.js";
|
|
51
|
+
import "./chunk-N4W34U3I.js";
|
|
52
|
+
import {
|
|
53
|
+
getAllTargetNames,
|
|
54
|
+
resolveProjectTarget
|
|
55
|
+
} from "./chunk-4K4S53KX.js";
|
|
56
|
+
import "./chunk-DCCC7LEP.js";
|
|
57
|
+
import "./chunk-CBCOVIXZ.js";
|
|
58
|
+
import "./chunk-PPZP7CA7.js";
|
|
59
|
+
import "./chunk-SJBEIYLK.js";
|
|
60
|
+
import "./chunk-DAKJTB6N.js";
|
|
61
|
+
import "./chunk-DMGNJ73M.js";
|
|
62
|
+
import "./chunk-NFWSJFYY.js";
|
|
51
63
|
import {
|
|
52
64
|
ensureConfig
|
|
53
|
-
} from "./chunk-
|
|
54
|
-
import "./chunk-
|
|
55
|
-
import "./chunk-
|
|
56
|
-
import "./chunk-
|
|
65
|
+
} from "./chunk-O5ZJY5BT.js";
|
|
66
|
+
import "./chunk-63ZLPXRL.js";
|
|
67
|
+
import "./chunk-EL3XL2OC.js";
|
|
68
|
+
import "./chunk-D2J3AD6L.js";
|
|
57
69
|
import "./chunk-AU27USPZ.js";
|
|
58
70
|
import "./chunk-6THUVP6T.js";
|
|
59
71
|
|
|
@@ -118,4 +130,4 @@ var removeCommand = {
|
|
|
118
130
|
export {
|
|
119
131
|
removeCommand
|
|
120
132
|
};
|
|
121
|
-
//# sourceMappingURL=remove-
|
|
133
|
+
//# sourceMappingURL=remove-YNO2I3HR.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/commands/remove.ts"],"sourcesContent":["import chalk from 'chalk';\nimport { archiveWaiting } from '../core/archive/session-archive-deps.js';\nimport { sessionIdFor } from '../core/sessions/session-id.js';\nimport { stopSessionPty } from '../core/pty/pty-pool.js';\nimport type { CommandModule } from 'yargs';\nimport { ensureConfig } from '../core/platform/config.js';\nimport { resolveProjectTarget, getAllTargetNames } from '../core/worktree/resolve.js';\nimport { teardownWorktree, wouldRefuseRemoval } from '../core/worktree/worktree.js';\nimport { findSession, loadHistory, removeSession } from '../core/sessions/history.js';\n\nexport const removeCommand: CommandModule = {\n command: 'remove <target> <branch>',\n describe: 'Remove a worktree',\n builder: (yargs) =>\n yargs\n .showHelpOnFail(true)\n .positional('target', {\n describe: 'Project alias or group name',\n type: 'string',\n demandOption: true,\n })\n .positional('branch', {\n describe: 'Branch name (e.g., feature/login)',\n type: 'string',\n demandOption: true,\n })\n .option('force', {\n describe: 'Force remove even with uncommitted/unpushed changes',\n type: 'boolean',\n default: false,\n }),\n handler: async (argv) => {\n const targetName = argv.target as string;\n const branchName = argv.branch as string;\n const force = argv.force as boolean;\n\n const config = ensureConfig();\n\n const target = resolveProjectTarget(targetName, config);\n if (!target) {\n const allNames = getAllTargetNames(config);\n console.error(`Project or group not found: ${targetName}`);\n console.log(chalk.yellow(`Available: ${allNames.join(', ')}`));\n process.exitCode = 1;\n return;\n }\n\n // What removing would cut off — its Claude mid-turn or waiting on you,\n // replies to post, notes not yet delivered — refuses it unless --force,\n // as the dashboard's delete does.\n const existing = findSession(loadHistory(), targetName, branchName);\n if (existing && !force) {\n const waiting = archiveWaiting(sessionIdFor(existing));\n if (waiting.length) {\n console.error(chalk.red(`Not removed: ${waiting.join('; ')}.`));\n console.log(chalk.yellow(`Use 'work remove ${targetName} ${branchName} --force' to remove it anyway.`));\n process.exitCode = 1;\n return;\n }\n }\n\n console.log(chalk.cyan(`Removing worktree: ${targetName}/${branchName}`));\n console.log('');\n\n // A Claude still running in the worktree (PTY host session) holds it\n // open — Windows refuses the delete — so stop it first. Only when the\n // removal will go through: a refused one must leave the agent running.\n const paths = findSession(loadHistory(), targetName, branchName)?.paths ?? [];\n if (paths.every((p) => !wouldRefuseRemoval(p, force))) {\n await stopSessionPty(targetName, branchName);\n }\n // The session's folder, not the branch name: the branch checked out in it\n // may have been switched since.\n const allRemoved = teardownWorktree(targetName, target.isGroup, branchName, config, force, paths.length ? paths : undefined);\n\n if (allRemoved === true) {\n await removeSession(targetName, branchName);\n } else {\n process.exitCode = 1;\n console.log('');\n console.log(chalk.yellow('Some worktrees could not be removed due to uncommitted/unpushed changes.'));\n console.log(chalk.yellow(`Use 'work remove ${targetName} ${branchName} --force' to force remove.`));\n }\n },\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/commands/remove.ts"],"sourcesContent":["import chalk from 'chalk';\nimport { archiveWaiting } from '../core/archive/session-archive-deps.js';\nimport { sessionIdFor } from '../core/sessions/session-id.js';\nimport { stopSessionPty } from '../core/pty/pty-pool.js';\nimport type { CommandModule } from 'yargs';\nimport { ensureConfig } from '../core/platform/config.js';\nimport { resolveProjectTarget, getAllTargetNames } from '../core/worktree/resolve.js';\nimport { teardownWorktree, wouldRefuseRemoval } from '../core/worktree/worktree.js';\nimport { findSession, loadHistory, removeSession } from '../core/sessions/history.js';\n\nexport const removeCommand: CommandModule = {\n command: 'remove <target> <branch>',\n describe: 'Remove a worktree',\n builder: (yargs) =>\n yargs\n .showHelpOnFail(true)\n .positional('target', {\n describe: 'Project alias or group name',\n type: 'string',\n demandOption: true,\n })\n .positional('branch', {\n describe: 'Branch name (e.g., feature/login)',\n type: 'string',\n demandOption: true,\n })\n .option('force', {\n describe: 'Force remove even with uncommitted/unpushed changes',\n type: 'boolean',\n default: false,\n }),\n handler: async (argv) => {\n const targetName = argv.target as string;\n const branchName = argv.branch as string;\n const force = argv.force as boolean;\n\n const config = ensureConfig();\n\n const target = resolveProjectTarget(targetName, config);\n if (!target) {\n const allNames = getAllTargetNames(config);\n console.error(`Project or group not found: ${targetName}`);\n console.log(chalk.yellow(`Available: ${allNames.join(', ')}`));\n process.exitCode = 1;\n return;\n }\n\n // What removing would cut off — its Claude mid-turn or waiting on you,\n // replies to post, notes not yet delivered — refuses it unless --force,\n // as the dashboard's delete does.\n const existing = findSession(loadHistory(), targetName, branchName);\n if (existing && !force) {\n const waiting = archiveWaiting(sessionIdFor(existing));\n if (waiting.length) {\n console.error(chalk.red(`Not removed: ${waiting.join('; ')}.`));\n console.log(chalk.yellow(`Use 'work remove ${targetName} ${branchName} --force' to remove it anyway.`));\n process.exitCode = 1;\n return;\n }\n }\n\n console.log(chalk.cyan(`Removing worktree: ${targetName}/${branchName}`));\n console.log('');\n\n // A Claude still running in the worktree (PTY host session) holds it\n // open — Windows refuses the delete — so stop it first. Only when the\n // removal will go through: a refused one must leave the agent running.\n const paths = findSession(loadHistory(), targetName, branchName)?.paths ?? [];\n if (paths.every((p) => !wouldRefuseRemoval(p, force))) {\n await stopSessionPty(targetName, branchName);\n }\n // The session's folder, not the branch name: the branch checked out in it\n // may have been switched since.\n const allRemoved = teardownWorktree(targetName, target.isGroup, branchName, config, force, paths.length ? paths : undefined);\n\n if (allRemoved === true) {\n await removeSession(targetName, branchName);\n } else {\n process.exitCode = 1;\n console.log('');\n console.log(chalk.yellow('Some worktrees could not be removed due to uncommitted/unpushed changes.'));\n console.log(chalk.yellow(`Use 'work remove ${targetName} ${branchName} --force' to force remove.`));\n }\n },\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,WAAW;AAUX,IAAM,gBAA+B;AAAA,EAC1C,SAAS;AAAA,EACT,UAAU;AAAA,EACV,SAAS,CAAC,UACR,MACG,eAAe,IAAI,EACnB,WAAW,UAAU;AAAA,IACpB,UAAU;AAAA,IACV,MAAM;AAAA,IACN,cAAc;AAAA,EAChB,CAAC,EACA,WAAW,UAAU;AAAA,IACpB,UAAU;AAAA,IACV,MAAM;AAAA,IACN,cAAc;AAAA,EAChB,CAAC,EACA,OAAO,SAAS;AAAA,IACf,UAAU;AAAA,IACV,MAAM;AAAA,IACN,SAAS;AAAA,EACX,CAAC;AAAA,EACL,SAAS,OAAO,SAAS;AACvB,UAAM,aAAa,KAAK;AACxB,UAAM,aAAa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IAAI,UAAU,4BAA4B,CAAC;AAAA,IACpG;AAAA,EACF;AACF;","names":[]}
|
|
@@ -1,33 +1,35 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
LATER_TEXT
|
|
4
|
-
} from "./chunk-TNJF7T33.js";
|
|
5
2
|
import {
|
|
6
3
|
sessionFromArgs,
|
|
7
4
|
sessionPositionals
|
|
8
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-I5FZXDCO.js";
|
|
9
6
|
import "./chunk-6AQRYLOB.js";
|
|
10
7
|
import {
|
|
11
8
|
callWorkWeb
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-RGLIW45S.js";
|
|
10
|
+
import "./chunk-VRQKIIC2.js";
|
|
14
11
|
import "./chunk-ZSHWP2VS.js";
|
|
15
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-7DUGVGUZ.js";
|
|
16
13
|
import "./chunk-HUXS3VAI.js";
|
|
17
14
|
import {
|
|
18
15
|
loadHistory
|
|
19
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-ZG2M4ECW.js";
|
|
20
17
|
import "./chunk-NEJVK5CF.js";
|
|
21
18
|
import {
|
|
22
19
|
sessionIdFor
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-RUYTU2WJ.js";
|
|
21
|
+
import "./chunk-N4W34U3I.js";
|
|
22
|
+
import "./chunk-CBCOVIXZ.js";
|
|
23
|
+
import "./chunk-PPZP7CA7.js";
|
|
24
|
+
import {
|
|
25
|
+
LATER_TEXT
|
|
26
|
+
} from "./chunk-TNJF7T33.js";
|
|
27
|
+
import "./chunk-DMGNJ73M.js";
|
|
28
|
+
import "./chunk-NFWSJFYY.js";
|
|
29
|
+
import "./chunk-O5ZJY5BT.js";
|
|
30
|
+
import "./chunk-63ZLPXRL.js";
|
|
31
|
+
import "./chunk-EL3XL2OC.js";
|
|
32
|
+
import "./chunk-D2J3AD6L.js";
|
|
31
33
|
import "./chunk-AU27USPZ.js";
|
|
32
34
|
import "./chunk-6THUVP6T.js";
|
|
33
35
|
|
|
@@ -71,4 +73,4 @@ var restartCommand = {
|
|
|
71
73
|
export {
|
|
72
74
|
restartCommand
|
|
73
75
|
};
|
|
74
|
-
//# sourceMappingURL=restart-
|
|
76
|
+
//# sourceMappingURL=restart-6YKAD7QQ.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/commands/restart.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 { loadHistory } from '../core/sessions/history.js';\nimport type { RestartWire } from '../core/api-types.js';\nimport { LATER_TEXT } from '../core/pty/restart-view.js';\nimport { sessionFromArgs, sessionPositionals } from './shared/session-arg.js';\n\n/**\n * `work restart` — restart a session's agent in the PTY host (its conversation goes on, its terminals stay attached):\n * after its tool updated, so it runs the new version. One working or waiting on you restarts when its turn ends\n * (POST /api/agents/restart, core/pty/agent-restart.ts).\n */\nexport const restartCommand: CommandModule = {\n command: 'restart [target] [branch]',\n describe: \"Restart a session's agent, resuming its conversation (one at work restarts after its turn)\",\n builder: (yargs) =>\n sessionPositionals(yargs)\n .option('outdated', { type: 'boolean', describe: 'Every agent still running a version from before its tool updated' })\n .option('all', { type: 'boolean', describe: 'Every agent in the PTY host' })\n .conflicts('all', 'outdated'),\n handler: async (argv) => {\n let body: { ids: string[] } | { outdated: true } | { all: true };\n const names = new Map(loadHistory().map((s) => [sessionIdFor(s), `${s.target} · ${s.branch}`]));\n const label = (id: string) => names.get(id) ?? (id === 'assistant' ? 'the assistant (Ctrl+K)' : id);\n if ((argv.all || argv.outdated) && typeof argv.target === 'string') {\n console.error(chalk.red(`--${argv.all ? 'all' : 'outdated'} restarts more than the session you named: give one or the other.`));\n process.exitCode = 1;\n return;\n }\n if (argv.all) body = { all: true };\n else if (argv.outdated) body = { outdated: true };\n else {\n const s = sessionFromArgs(argv);\n if (!s) return;\n body = { ids: [sessionIdFor(s)] };\n }\n const r = await callWorkWeb<RestartWire>('POST', '/api/agents/restart', body, 180_000);\n if (!r.ok) {\n console.error(chalk.red(r.error));\n process.exitCode = 1;\n return;\n }\n const { now, later, failed } = r.body;\n for (const id of now) console.log(`${label(id)}: restarted`);\n for (const id of later) console.log(`${label(id)}: ${LATER_TEXT} (it is working or waiting on you)`);\n for (const f of failed) console.error(chalk.red(`${label(f.id)}: couldn't restart: ${f.error}`));\n if (!now.length && !later.length && !failed.length)\n console.log(argv.outdated ? 'Every agent runs its newest version.' : 'Nothing to restart.');\n if (failed.length) process.exitCode = 1;\n },\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/commands/restart.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 { loadHistory } from '../core/sessions/history.js';\nimport type { RestartWire } from '../core/api-types.js';\nimport { LATER_TEXT } from '../core/pty/restart-view.js';\nimport { sessionFromArgs, sessionPositionals } from './shared/session-arg.js';\n\n/**\n * `work restart` — restart a session's agent in the PTY host (its conversation goes on, its terminals stay attached):\n * after its tool updated, so it runs the new version. One working or waiting on you restarts when its turn ends\n * (POST /api/agents/restart, core/pty/agent-restart.ts).\n */\nexport const restartCommand: CommandModule = {\n command: 'restart [target] [branch]',\n describe: \"Restart a session's agent, resuming its conversation (one at work restarts after its turn)\",\n builder: (yargs) =>\n sessionPositionals(yargs)\n .option('outdated', { type: 'boolean', describe: 'Every agent still running a version from before its tool updated' })\n .option('all', { type: 'boolean', describe: 'Every agent in the PTY host' })\n .conflicts('all', 'outdated'),\n handler: async (argv) => {\n let body: { ids: string[] } | { outdated: true } | { all: true };\n const names = new Map(loadHistory().map((s) => [sessionIdFor(s), `${s.target} · ${s.branch}`]));\n const label = (id: string) => names.get(id) ?? (id === 'assistant' ? 'the assistant (Ctrl+K)' : id);\n if ((argv.all || argv.outdated) && typeof argv.target === 'string') {\n console.error(chalk.red(`--${argv.all ? 'all' : 'outdated'} restarts more than the session you named: give one or the other.`));\n process.exitCode = 1;\n return;\n }\n if (argv.all) body = { all: true };\n else if (argv.outdated) body = { outdated: true };\n else {\n const s = sessionFromArgs(argv);\n if (!s) return;\n body = { ids: [sessionIdFor(s)] };\n }\n const r = await callWorkWeb<RestartWire>('POST', '/api/agents/restart', body, 180_000);\n if (!r.ok) {\n console.error(chalk.red(r.error));\n process.exitCode = 1;\n return;\n }\n const { now, later, failed } = r.body;\n for (const id of now) console.log(`${label(id)}: restarted`);\n for (const id of later) console.log(`${label(id)}: ${LATER_TEXT} (it is working or waiting on you)`);\n for (const f of failed) console.error(chalk.red(`${label(f.id)}: couldn't restart: ${f.error}`));\n if (!now.length && !later.length && !failed.length)\n console.log(argv.outdated ? 'Every agent runs its newest version.' : 'Nothing to restart.');\n if (failed.length) process.exitCode = 1;\n },\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,WAAW;AAcX,IAAM,iBAAgC;AAAA,EAC3C,SAAS;AAAA,EACT,UAAU;AAAA,EACV,SAAS,CAAC,UACR,mBAAmB,KAAK,EACrB,OAAO,YAAY,EAAE,MAAM,WAAW,UAAU,mEAAmE,CAAC,EACpH,OAAO,OAAO,EAAE,MAAM,WAAW,UAAU,8BAA8B,CAAC,EAC1E,UAAU,OAAO,UAAU;AAAA,EAChC,SAAS,OAAO,SAAS;AACvB,QAAI;AACJ,UAAM,QAAQ,IAAI,IAAI,YAAY,EAAE,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,GAAG,GAAG,EAAE,MAAM,SAAM,EA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
4
4
|
} from "./chunk-UQ35KLHH.js";
|
|
5
|
+
import {
|
|
6
|
+
retiredUnsafeOption,
|
|
7
|
+
warnRetiredUnsafe
|
|
8
|
+
} from "./chunk-S3CTXKSN.js";
|
|
9
|
+
import {
|
|
10
|
+
clearLaunchedUnsafeWhenIdle
|
|
11
|
+
} from "./chunk-QBI6K23L.js";
|
|
12
|
+
import "./chunk-7NNOGTMC.js";
|
|
13
|
+
import "./chunk-FZHFD2AY.js";
|
|
5
14
|
import {
|
|
6
15
|
launchAi
|
|
7
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-26YZYL77.js";
|
|
17
|
+
import "./chunk-YPXFDJ76.js";
|
|
18
|
+
import "./chunk-LHM3GB5K.js";
|
|
19
|
+
import "./chunk-2QLLPZ2L.js";
|
|
20
|
+
import "./chunk-VRQKIIC2.js";
|
|
21
|
+
import "./chunk-ZSHWP2VS.js";
|
|
22
|
+
import "./chunk-7DUGVGUZ.js";
|
|
23
|
+
import "./chunk-HUXS3VAI.js";
|
|
8
24
|
import {
|
|
9
25
|
effectiveLastAccessedAt,
|
|
10
26
|
getRecentSessions,
|
|
11
27
|
loadHistory,
|
|
12
|
-
recordLaunch,
|
|
13
28
|
touchSession
|
|
14
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-ZG2M4ECW.js";
|
|
15
30
|
import "./chunk-NEJVK5CF.js";
|
|
16
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-RUYTU2WJ.js";
|
|
32
|
+
import {
|
|
33
|
+
agentFor
|
|
34
|
+
} from "./chunk-N4W34U3I.js";
|
|
35
|
+
import "./chunk-CBCOVIXZ.js";
|
|
36
|
+
import "./chunk-PPZP7CA7.js";
|
|
37
|
+
import "./chunk-DAKJTB6N.js";
|
|
17
38
|
import {
|
|
18
|
-
agentFor,
|
|
19
39
|
envArgs
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-72IBYKIY.js";
|
|
40
|
+
} from "./chunk-DMGNJ73M.js";
|
|
41
|
+
import "./chunk-NFWSJFYY.js";
|
|
23
42
|
import {
|
|
24
43
|
ensureConfig
|
|
25
|
-
} from "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
44
|
+
} from "./chunk-O5ZJY5BT.js";
|
|
45
|
+
import "./chunk-63ZLPXRL.js";
|
|
46
|
+
import "./chunk-EL3XL2OC.js";
|
|
47
|
+
import "./chunk-D2J3AD6L.js";
|
|
29
48
|
import "./chunk-AU27USPZ.js";
|
|
30
49
|
import "./chunk-6THUVP6T.js";
|
|
31
50
|
|
|
@@ -36,13 +55,9 @@ import { select } from "@inquirer/prompts";
|
|
|
36
55
|
var resumeCommand = {
|
|
37
56
|
command: "resume",
|
|
38
57
|
describe: "Resume a recent worktree session",
|
|
39
|
-
builder: (yargs) => yargs.option("unsafe",
|
|
40
|
-
describe: "Launch the AI tool with its skip-permissions flag",
|
|
41
|
-
type: "boolean",
|
|
42
|
-
default: false
|
|
43
|
-
}),
|
|
58
|
+
builder: (yargs) => yargs.option("unsafe", retiredUnsafeOption),
|
|
44
59
|
handler: async (argv) => {
|
|
45
|
-
|
|
60
|
+
warnRetiredUnsafe(argv);
|
|
46
61
|
const config = ensureConfig();
|
|
47
62
|
const sessions = loadHistory();
|
|
48
63
|
const recent = getRecentSessions(sessions, sessions.length);
|
|
@@ -71,17 +86,17 @@ var resumeCommand = {
|
|
|
71
86
|
}
|
|
72
87
|
const { launchPath, hasConversation } = agentFor(config, choice).launch.resumeLaunch(choice);
|
|
73
88
|
touchSession(choice.target, choice.branch);
|
|
89
|
+
clearLaunchedUnsafeWhenIdle(choice.target, choice.branch);
|
|
74
90
|
const tool = agentFor(config, choice).launch.tool(config);
|
|
75
91
|
console.log(chalk.cyan(`Resuming in: ${launchPath}`));
|
|
76
92
|
if (!hasConversation) {
|
|
77
93
|
console.log(chalk.yellow(`No prior ${tool.cmd} conversation found for this worktree \u2014 starting a fresh session.`));
|
|
78
94
|
}
|
|
79
95
|
console.log(`Starting ${tool.cmd}...`);
|
|
80
|
-
|
|
81
|
-
launchAi(launchPath, tool, { unsafe, resume: hasConversation }, choice.port, ...envArgs(agentFor(config, choice).launch.env?.(choice)));
|
|
96
|
+
launchAi(launchPath, tool, { resume: hasConversation }, choice.port, ...envArgs(agentFor(config, choice).launch.env?.(choice)));
|
|
82
97
|
}
|
|
83
98
|
};
|
|
84
99
|
export {
|
|
85
100
|
resumeCommand
|
|
86
101
|
};
|
|
87
|
-
//# sourceMappingURL=resume-
|
|
102
|
+
//# sourceMappingURL=resume-PNZ7BRXJ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/commands/resume.ts"],"sourcesContent":["import fs from 'node:fs';\nimport { agentFor } from '../core/agents/index.js';\nimport chalk from 'chalk';\nimport type { CommandModule } from 'yargs';\nimport { select } from '@inquirer/prompts';\nimport { ensureConfig } from '../core/platform/config.js';\nimport { clearLaunchedUnsafeWhenIdle } from '../core/sessions/legacy-unsafe-io.js';\nimport { loadHistory, getRecentSessions, touchSession } from '../core/sessions/history.js';\nimport { retiredUnsafeOption, warnRetiredUnsafe } from './shared/retired-unsafe.js';\nimport { effectiveLastAccessedAt } from '../core/sessions/session-activity.js';\nimport { launchAi } from '../core/platform/launch.js';\nimport { envArgs } from '../core/platform/env-delta.js';\nimport { timeAgo } from '../core/platform/format.js';\n\nexport const resumeCommand: CommandModule = {\n command: 'resume',\n describe: 'Resume a recent worktree session',\n builder: (yargs) => yargs.option('unsafe', retiredUnsafeOption),\n handler: async (argv) => {\n warnRetiredUnsafe(argv);\n\n const config = ensureConfig();\n\n const sessions = loadHistory();\n const recent = getRecentSessions(sessions, sessions.length);\n\n // Filter to sessions that still exist on disk\n const valid = recent.filter((s) => s.paths.some((p) => fs.existsSync(p)));\n\n if (valid.length === 0) {\n console.log(chalk.yellow('No resumable sessions found.'));\n return;\n }\n\n const choices = valid.map((s) => {\n const typeTag = s.isGroup ? '[group]' : '[repo]';\n return {\n name: `${typeTag} ${s.target} ${s.branch} (${timeAgo(effectiveLastAccessedAt(s))})`,\n value: s,\n };\n });\n\n const choice = await select({\n message: 'Select a session to resume:',\n choices,\n pageSize: 15,\n });\n\n // Find first existing path\n const firstExisting = choice.paths.find((p) => fs.existsSync(p));\n if (!firstExisting) {\n console.error('Session path no longer exists.');\n process.exitCode = 1;\n return;\n }\n\n // Resume in the directory that actually holds a Claude transcript — the\n // group root, or a sub-repo the user worked in. `--continue` errors out\n // (\"No conversation found to continue\") when launched somewhere with no\n // transcript, so fall back to a fresh session in that case.\n const { launchPath, hasConversation } = agentFor(config, choice).launch.resumeLaunch(choice);\n\n // Only its last access: the list was read before the picker waited on you, and a repo may have been added since.\n touchSession(choice.target, choice.branch);\n clearLaunchedUnsafeWhenIdle(choice.target, choice.branch); // started normally now, unless the old one still runs (legacy-unsafe.ts; remove next release)\n\n const tool = agentFor(config, choice).launch.tool(config);\n console.log(chalk.cyan(`Resuming in: ${launchPath}`));\n if (!hasConversation) {\n console.log(chalk.yellow(`No prior ${tool.cmd} conversation found for this worktree — starting a fresh session.`));\n }\n console.log(`Starting ${tool.cmd}...`);\n launchAi(launchPath, tool, { resume: hasConversation }, choice.port, ...envArgs(agentFor(config, choice).launch.env?.(choice)));\n },\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ;AAEf,OAAO,WAAW;AAElB,SAAS,cAAc;AAUhB,IAAM,gBAA+B;AAAA,EAC1C,SAAS;AAAA,EACT,UAAU;AAAA,EACV,SAAS,CAAC,UAAU,MAAM,OAAO,UAAU,mBAAmB;AAAA,EAC9D,SAAS,OAAO,SAAS;AACvB,sBAAkB,IAAI;AAEtB,UAAM,SAAS,aAAa;AAE5B,UAAM,WAAW,YAAY;AAC7B,UAAM,SAAS,kBAAkB,UAAU,SAAS,MAAM;AAG1D,UAAM,QAAQ,OAA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AAA,EAChI;AACF;","names":[]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
describeReview,
|
|
4
|
+
readReview
|
|
5
|
+
} from "./chunk-YKQLHFY4.js";
|
|
6
|
+
import "./chunk-JVE2JFLV.js";
|
|
7
|
+
import "./chunk-NEJVK5CF.js";
|
|
8
|
+
import "./chunk-RUYTU2WJ.js";
|
|
9
|
+
import "./chunk-O5ZJY5BT.js";
|
|
10
|
+
import "./chunk-D2J3AD6L.js";
|
|
11
|
+
import "./chunk-AU27USPZ.js";
|
|
12
|
+
import "./chunk-6THUVP6T.js";
|
|
13
|
+
|
|
14
|
+
// src/core/review/review-now.ts
|
|
15
|
+
function describeReviewNow(repo, number) {
|
|
16
|
+
const r = readReview(repo, number);
|
|
17
|
+
return r ? describeReview(r) : `The Reviews tab shows ${repo} PR #${number}: no review of it is prepared (any more).`;
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
describeReviewNow
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=review-now-HHQIBVUS.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/core/review/review-now.ts"],"sourcesContent":["import { readReview } from './review-store.js';\nimport { describeReview } from './review-build.js';\n\n/**\n * The Reviews tab's PR in words, as its review is now (state.db): what the Ctrl+K assistant's prompt hook adds at\n * each prompt, so a re-prepare or a submit since the tab said which PR shows at once — the stored context keeps only\n * which PR (`assistantContextReview`).\n */\nexport function describeReviewNow(repo: string, number: number): string {\n const r = readReview(repo, number);\n return r ? describeReview(r) : `The Reviews tab shows ${repo} PR #${number}: no review of it is prepared (any more).`;\n}\n"],"mappings":";;;;;;;;;;;;;;AAQO,SAAS,kBAAkB,MAAc,QAAwB;AACtE,QAAM,IAAI,WAAW,MAAM,MAAM;AACjC,SAAO,IAAI,eAAe,CAAC,IAAI,yBAAyB,IAAI,QAAQ,MAAM;AAC5E;","names":[]}
|
|
@@ -6,27 +6,31 @@ import {
|
|
|
6
6
|
} from "./chunk-WMJIU3YW.js";
|
|
7
7
|
import {
|
|
8
8
|
loadHistory
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ZG2M4ECW.js";
|
|
10
10
|
import "./chunk-NEJVK5CF.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-RUYTU2WJ.js";
|
|
12
|
+
import "./chunk-N4W34U3I.js";
|
|
13
|
+
import "./chunk-CBCOVIXZ.js";
|
|
14
|
+
import "./chunk-PPZP7CA7.js";
|
|
15
|
+
import "./chunk-DMGNJ73M.js";
|
|
16
|
+
import "./chunk-NFWSJFYY.js";
|
|
17
|
+
import "./chunk-O5ZJY5BT.js";
|
|
18
|
+
import "./chunk-63ZLPXRL.js";
|
|
19
|
+
import {
|
|
20
|
+
shellEnv,
|
|
21
|
+
spawn_default
|
|
22
|
+
} from "./chunk-EL3XL2OC.js";
|
|
23
|
+
import "./chunk-D2J3AD6L.js";
|
|
19
24
|
import "./chunk-AU27USPZ.js";
|
|
20
25
|
import "./chunk-6THUVP6T.js";
|
|
21
26
|
|
|
22
27
|
// src/commands/run.ts
|
|
23
28
|
import chalk from "chalk";
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
return { bin: "cmd.exe", args: ["/c", cmd] };
|
|
29
|
+
function shellInvocation(cmd, platform = process.platform, env = process.env) {
|
|
30
|
+
if (platform === "win32") {
|
|
31
|
+
return { bin: "cmd.exe", args: ["/c", cmd], env: shellEnv(env, platform) };
|
|
28
32
|
}
|
|
29
|
-
return { bin: "sh", args: ["-c", cmd] };
|
|
33
|
+
return { bin: "sh", args: ["-c", cmd], env };
|
|
30
34
|
}
|
|
31
35
|
var liveChildren = /* @__PURE__ */ new Set();
|
|
32
36
|
function killAllChildren(signal = "SIGTERM") {
|
|
@@ -38,12 +42,13 @@ function killAllChildren(signal = "SIGTERM") {
|
|
|
38
42
|
}
|
|
39
43
|
}
|
|
40
44
|
function runInPath(unit, cmd, prefix) {
|
|
41
|
-
const { bin, args } = shellInvocation(cmd);
|
|
45
|
+
const { bin, args, env } = shellInvocation(cmd);
|
|
42
46
|
return new Promise((resolve) => {
|
|
43
|
-
const child =
|
|
47
|
+
const child = spawn_default(bin, args, {
|
|
44
48
|
cwd: unit.path,
|
|
45
49
|
stdio: prefix ? ["ignore", "pipe", "pipe"] : "inherit",
|
|
46
50
|
shell: false,
|
|
51
|
+
env,
|
|
47
52
|
// Piped (prefixed) output is ours to show: no window of its own. Inherited, it is this terminal's.
|
|
48
53
|
windowsHide: Boolean(prefix)
|
|
49
54
|
});
|
|
@@ -265,6 +270,7 @@ export {
|
|
|
265
270
|
extractRun,
|
|
266
271
|
runCommand,
|
|
267
272
|
runPool,
|
|
273
|
+
shellInvocation,
|
|
268
274
|
stripRunToken
|
|
269
275
|
};
|
|
270
|
-
//# sourceMappingURL=run-
|
|
276
|
+
//# sourceMappingURL=run-3QYP7GBN.js.map
|