@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,33 +1,36 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
pendingRequest
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-KWHHB737.js";
|
|
5
5
|
import {
|
|
6
6
|
sessionFromArgs,
|
|
7
7
|
sessionPositionals
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-I5FZXDCO.js";
|
|
9
9
|
import "./chunk-6AQRYLOB.js";
|
|
10
10
|
import {
|
|
11
11
|
callWorkWeb
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-RGLIW45S.js";
|
|
13
|
+
import "./chunk-FZHFD2AY.js";
|
|
14
|
+
import "./chunk-VRQKIIC2.js";
|
|
14
15
|
import "./chunk-ZSHWP2VS.js";
|
|
15
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-7DUGVGUZ.js";
|
|
16
17
|
import "./chunk-HUXS3VAI.js";
|
|
17
18
|
import {
|
|
18
19
|
readStatus
|
|
19
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-ZG2M4ECW.js";
|
|
20
21
|
import "./chunk-NEJVK5CF.js";
|
|
21
22
|
import {
|
|
22
23
|
sessionIdFor
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
24
|
+
} from "./chunk-RUYTU2WJ.js";
|
|
25
|
+
import "./chunk-N4W34U3I.js";
|
|
26
|
+
import "./chunk-CBCOVIXZ.js";
|
|
27
|
+
import "./chunk-PPZP7CA7.js";
|
|
28
|
+
import "./chunk-DMGNJ73M.js";
|
|
29
|
+
import "./chunk-NFWSJFYY.js";
|
|
30
|
+
import "./chunk-O5ZJY5BT.js";
|
|
31
|
+
import "./chunk-63ZLPXRL.js";
|
|
32
|
+
import "./chunk-EL3XL2OC.js";
|
|
33
|
+
import "./chunk-D2J3AD6L.js";
|
|
31
34
|
import "./chunk-AU27USPZ.js";
|
|
32
35
|
import "./chunk-6THUVP6T.js";
|
|
33
36
|
|
|
@@ -65,4 +68,4 @@ var answerCommand = {
|
|
|
65
68
|
export {
|
|
66
69
|
answerCommand
|
|
67
70
|
};
|
|
68
|
-
//# sourceMappingURL=answer-
|
|
71
|
+
//# sourceMappingURL=answer-GNR4ZBWV.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/commands/answer.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 { readStatus } from '../core/status/session-status.js';\nimport { pendingRequest } from '../core/sessions/session-control.js';\nimport { sessionFromArgs, sessionPositionals } from './shared/session-arg.js';\n\n/**\n * `work answer` — the permission prompt a session's agent is waiting on:\n * shows it, and with --allow / --deny answers it (the inbox's Allow / Deny:\n * POST …/answer, which first checks the dialog on its screen is that very\n * request). Never put this on an allow list: approving another agent's tool\n * call is yours to say, so Claude Code should ask you every time.\n */\nexport const answerCommand: CommandModule = {\n command: 'answer [target] [branch]',\n describe: \"Show the permission prompt a session's agent waits on; --allow or --deny answers it\",\n builder: (yargs) =>\n sessionPositionals(yargs)\n .option('allow', { type: 'boolean', default: false, describe: 'Approve the tool call it asks about' })\n .option('deny', { type: 'boolean', default: false, describe: 'Refuse it (the agent stops and waits for you)' })\n .check((a) => !(a.allow && a.deny) || 'Either --allow or --deny, not both'),\n handler: async (argv) => {\n const s = sessionFromArgs(argv);\n if (!s) return;\n const id = sessionIdFor(s);\n const request = pendingRequest(readStatus(id));\n if (!request) {\n console.error(chalk.yellow(`${s.target} · ${s.branch} isn't waiting on a permission prompt.`));\n process.exitCode = 1;\n return;\n }\n const what = `${request.tool}: ${request.detail}`;\n if (!argv.allow && !argv.deny) {\n console.log(what);\n console.error(chalk.gray('Answer with --allow or --deny.'));\n return;\n }\n // The request it was shown goes along: the route refuses if the prompt changed meanwhile.\n const r = await callWorkWeb<{ ok: true }>('POST', `/api/sessions/${id}/answer`, { answer: argv.allow ? 'allow' : 'deny', request });\n if (!r.ok) {\n console.error(chalk.red(r.error));\n process.exitCode = 1;\n return;\n }\n console.log(`${argv.allow ? 'Allowed' : 'Denied'}: ${what}`);\n },\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/commands/answer.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 { readStatus } from '../core/status/session-status.js';\nimport { pendingRequest } from '../core/sessions/session-control.js';\nimport { sessionFromArgs, sessionPositionals } from './shared/session-arg.js';\n\n/**\n * `work answer` — the permission prompt a session's agent is waiting on:\n * shows it, and with --allow / --deny answers it (the inbox's Allow / Deny:\n * POST …/answer, which first checks the dialog on its screen is that very\n * request). Never put this on an allow list: approving another agent's tool\n * call is yours to say, so Claude Code should ask you every time.\n */\nexport const answerCommand: CommandModule = {\n command: 'answer [target] [branch]',\n describe: \"Show the permission prompt a session's agent waits on; --allow or --deny answers it\",\n builder: (yargs) =>\n sessionPositionals(yargs)\n .option('allow', { type: 'boolean', default: false, describe: 'Approve the tool call it asks about' })\n .option('deny', { type: 'boolean', default: false, describe: 'Refuse it (the agent stops and waits for you)' })\n .check((a) => !(a.allow && a.deny) || 'Either --allow or --deny, not both'),\n handler: async (argv) => {\n const s = sessionFromArgs(argv);\n if (!s) return;\n const id = sessionIdFor(s);\n const request = pendingRequest(readStatus(id));\n if (!request) {\n console.error(chalk.yellow(`${s.target} · ${s.branch} isn't waiting on a permission prompt.`));\n process.exitCode = 1;\n return;\n }\n const what = `${request.tool}: ${request.detail}`;\n if (!argv.allow && !argv.deny) {\n console.log(what);\n console.error(chalk.gray('Answer with --allow or --deny.'));\n return;\n }\n // The request it was shown goes along: the route refuses if the prompt changed meanwhile.\n const r = await callWorkWeb<{ ok: true }>('POST', `/api/sessions/${id}/answer`, { answer: argv.allow ? 'allow' : 'deny', request });\n if (!r.ok) {\n console.error(chalk.red(r.error));\n process.exitCode = 1;\n return;\n }\n console.log(`${argv.allow ? 'Allowed' : 'Denied'}: ${what}`);\n },\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,WAAW;AAeX,IAAM,gBAA+B;AAAA,EAC1C,SAAS;AAAA,EACT,UAAU;AAAA,EACV,SAAS,CAAC,UACR,mBAAmB,KAAK,EACrB,OAAO,SAAS,EAAE,MAAM,WAAW,SAAS,OAAO,UAAU,sCAAsC,CAAC,EACpG,OAAO,QAAQ,EAAE,MAAM,WAAW,SAAS,OAAO,UAAU,gDAAgD,CAAC,EAC7G,MAAM,CAAC,MAAM,EAAE,EAAE,SAAS,EAAE,SAAS,oCAAoC;AAAA,EAC9E,SAAS,OAAO,SAAS;AACvB,UAAM,IAAI,gBAAgB,IAAI;AAC9B,QAAI,CAAC,EAAG;AACR,UAAM,KAAK,aAAa,CAAC;AACzB,UAAM,UAAU,eAAe,WAAW,EAAE,CAAC;AAC7C,QAAI,CAAC,SAAS;AACZ,cAAQ,MAAM,MAAM,OAAO,GAAG,EAAE,MAAM,SAAM,EAAE,MAAM,wCAAwC,CAAC;AAC7F,cAAQ,WAAW;AACnB;AAAA,IACF;AACA,UAAM,OAAO,GAAG,QAAQ,IAAI,KAAK,QAAQ,MAAM;AAC/C,QAAI,CAAC,KAAK,SAAS,CAAC,KAAK,MAAM;AAC7B,cAAQ,IAAI,IAAI;AAChB,cAAQ,MAAM,MAAM,KAAK,gCAAgC,CAAC;AAC1D;AAAA,IACF;AAEA,UAAM,IAAI,MAAM,YAA0B,QAAQ,iBAAiB,EAAE,WAAW,EAAE,QAAQ,KAAK,QAAQ,UAAU,QAAQ,QAAQ,CAAC;AAClI,QAAI,CAAC,EAAE,IAAI;AACT,cAAQ,MAAM,MAAM,IAAI,EAAE,KAAK,CAAC;AAChC,cAAQ,WAAW;AACnB;AAAA,IACF;AACA,YAAQ,IAAI,GAAG,KAAK,QAAQ,YAAY,QAAQ,KAAK,IAAI,EAAE;AAAA,EAC7D;AACF;","names":[]}
|
|
@@ -1,37 +1,43 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
attachSession
|
|
4
|
-
} from "./chunk-WTQ2QCAG.js";
|
|
5
|
-
import "./chunk-AH5TM3NB.js";
|
|
6
|
-
import "./chunk-GRLKPVTP.js";
|
|
7
|
-
import "./chunk-MG5TTLYZ.js";
|
|
8
|
-
import "./chunk-AAYWHIIT.js";
|
|
9
|
-
import "./chunk-6FVYSW3E.js";
|
|
10
|
-
import "./chunk-OTAZOIXK.js";
|
|
11
2
|
import {
|
|
12
3
|
baseCheckoutSession
|
|
13
4
|
} from "./chunk-6AQRYLOB.js";
|
|
5
|
+
import {
|
|
6
|
+
attachSession
|
|
7
|
+
} from "./chunk-CDYCZ3PR.js";
|
|
8
|
+
import "./chunk-AH5TM3NB.js";
|
|
9
|
+
import "./chunk-LQNHIMJM.js";
|
|
10
|
+
import "./chunk-QLFJNYBV.js";
|
|
11
|
+
import "./chunk-YPXFDJ76.js";
|
|
12
|
+
import "./chunk-LHM3GB5K.js";
|
|
13
|
+
import "./chunk-2QLLPZ2L.js";
|
|
14
|
+
import "./chunk-7NNGYM3G.js";
|
|
15
|
+
import "./chunk-7E5XPDKX.js";
|
|
16
|
+
import "./chunk-PKQROEFP.js";
|
|
14
17
|
import {
|
|
15
18
|
findSessionForCwd
|
|
16
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-VRQKIIC2.js";
|
|
17
20
|
import "./chunk-ZSHWP2VS.js";
|
|
18
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-7DUGVGUZ.js";
|
|
19
22
|
import "./chunk-HUXS3VAI.js";
|
|
20
23
|
import {
|
|
21
24
|
findSession,
|
|
22
25
|
loadHistory
|
|
23
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-ZG2M4ECW.js";
|
|
24
27
|
import "./chunk-NEJVK5CF.js";
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-RUYTU2WJ.js";
|
|
29
|
+
import "./chunk-N4W34U3I.js";
|
|
30
|
+
import "./chunk-CBCOVIXZ.js";
|
|
31
|
+
import "./chunk-PPZP7CA7.js";
|
|
32
|
+
import "./chunk-SJBEIYLK.js";
|
|
33
|
+
import "./chunk-DMGNJ73M.js";
|
|
34
|
+
import "./chunk-NFWSJFYY.js";
|
|
29
35
|
import {
|
|
30
36
|
loadConfig
|
|
31
|
-
} from "./chunk-
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
37
|
+
} from "./chunk-O5ZJY5BT.js";
|
|
38
|
+
import "./chunk-63ZLPXRL.js";
|
|
39
|
+
import "./chunk-EL3XL2OC.js";
|
|
40
|
+
import "./chunk-D2J3AD6L.js";
|
|
35
41
|
import "./chunk-AU27USPZ.js";
|
|
36
42
|
import "./chunk-6THUVP6T.js";
|
|
37
43
|
|
|
@@ -62,4 +68,4 @@ export {
|
|
|
62
68
|
attachCommand,
|
|
63
69
|
baseCheckoutSession
|
|
64
70
|
};
|
|
65
|
-
//# sourceMappingURL=attach-
|
|
71
|
+
//# sourceMappingURL=attach-QNSDKRW7.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/commands/attach.ts"],"sourcesContent":["import chalk from 'chalk';\nimport type { CommandModule } from 'yargs';\nimport { findSession, loadHistory } from '../core/sessions/history.js';\nimport { attachSession } from './shared/attach-session.js';\nimport { loadConfig } from '../core/platform/config.js';\nimport { findSessionForCwd } from '../core/comments/pending-delivery.js';\n\nexport { baseCheckoutSession } from '../core/sessions/session-resolve.js';\nimport { baseCheckoutSession } from '../core/sessions/session-resolve.js';\n\nexport const attachCommand: CommandModule = {\n command: 'attach [target] [branch]',\n aliases: ['a'],\n describe: \"Attach this terminal to a session's Claude in the PTY host (Ctrl+] detaches; Claude keeps running)\",\n builder: (yargs) =>\n yargs\n .positional('target', { type: 'string', describe: 'Repo alias or group (default: session for the current directory)' })\n .positional('branch', { type: 'string', describe: \"Branch (default: the target's base checkout)\" }),\n handler: async (argv) => {\n const sessions = loadHistory();\n const target = argv.target as string | undefined;\n const branch = argv.branch as string | undefined;\n const session = target\n ? branch\n ? (findSession(sessions, target, branch) ?? null)\n : baseCheckoutSession(sessions, target, loadConfig())\n : findSessionForCwd(process.cwd(), sessions);\n if (!session) {\n console.error(\n chalk.red(\n target\n ? `No session for ${target}${branch ? ` ${branch}` : ' (base checkout)'}. Create it with \\`work tree ${target}${branch ? ` ${branch}` : ''}\\`.`\n : 'The current directory is not inside a work session. Pass <target> [branch].',\n ),\n );\n process.exit(1);\n }\n // Spawning here too (session not running yet) uses this shell's env.\n process.exitCode = await attachSession(session, { forwardEnv: true });\n },\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/commands/attach.ts"],"sourcesContent":["import chalk from 'chalk';\nimport type { CommandModule } from 'yargs';\nimport { findSession, loadHistory } from '../core/sessions/history.js';\nimport { attachSession } from './shared/attach-session.js';\nimport { loadConfig } from '../core/platform/config.js';\nimport { findSessionForCwd } from '../core/comments/pending-delivery.js';\n\nexport { baseCheckoutSession } from '../core/sessions/session-resolve.js';\nimport { baseCheckoutSession } from '../core/sessions/session-resolve.js';\n\nexport const attachCommand: CommandModule = {\n command: 'attach [target] [branch]',\n aliases: ['a'],\n describe: \"Attach this terminal to a session's Claude in the PTY host (Ctrl+] detaches; Claude keeps running)\",\n builder: (yargs) =>\n yargs\n .positional('target', { type: 'string', describe: 'Repo alias or group (default: session for the current directory)' })\n .positional('branch', { type: 'string', describe: \"Branch (default: the target's base checkout)\" }),\n handler: async (argv) => {\n const sessions = loadHistory();\n const target = argv.target as string | undefined;\n const branch = argv.branch as string | undefined;\n const session = target\n ? branch\n ? (findSession(sessions, target, branch) ?? null)\n : baseCheckoutSession(sessions, target, loadConfig())\n : findSessionForCwd(process.cwd(), sessions);\n if (!session) {\n console.error(\n chalk.red(\n target\n ? `No session for ${target}${branch ? ` ${branch}` : ' (base checkout)'}. Create it with \\`work tree ${target}${branch ? ` ${branch}` : ''}\\`.`\n : 'The current directory is not inside a work session. Pass <target> [branch].',\n ),\n );\n process.exit(1);\n }\n // Spawning here too (session not running yet) uses this shell's env.\n process.exitCode = await attachSession(session, { forwardEnv: true });\n },\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,WAAW;AAUX,IAAM,gBAA+B;AAAA,EAC1C,SAAS;AAAA,EACT,SAAS,CAAC,GAAG;AAAA,EACb,UAAU;AAAA,EACV,SAAS,CAAC,UACR,MACG,WAAW,UAAU,EAAE,MAAM,UAAU,UAAU,mEAAmE,CAAC,EACrH,WAAW,UAAU,EAAE,MAAM,UAAU,UAAU,+CAA+C,CAAC;AAAA,EACtG,SAAS,OAAO,SAAS;AACvB,UAAM,WAAW,YAAY;AAC7B,UAAM,SAAS,KAAK;AACpB,UAAM,SAAS,KAAK;AACpB,UAAM,UAAU,SACZ,SACG,YAAY,UAAU,QAAQ,MAAM,KAAK,OAC1C,oBAAoB,UAAU,QAAQ,WAAW,CAAC,IACpD,kBAAkB,QAAQ,IAAI,GAAG,QAAQ;AAC7C,QAAI,CAAC,SAAS;AACZ,cAAQ;AAAA,QACN,MAAM;AAAA,UACJ,SACI,kBAAkB,MAAM,GAAG,SAAS,IAAI,MAAM,KAAK,kBAAkB,gCAAgC,MAAM,GAAG,SAAS,IAAI,MAAM,KAAK,EAAE,QACxI;AAAA,QACN;AAAA,MACF;AACA,cAAQ,KAAK,CAAC;AAAA,IAChB;AAEA,YAAQ,WAAW,MAAM,cAAc,SAAS,EAAE,YAAY,KAAK,CAAC;AAAA,EACtE;AACF;","names":[]}
|
package/dist/bin.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import "./chunk-
|
|
3
|
-
import "./chunk-
|
|
2
|
+
import "./chunk-O5ZJY5BT.js";
|
|
3
|
+
import "./chunk-D2J3AD6L.js";
|
|
4
4
|
import {
|
|
5
5
|
debug,
|
|
6
6
|
getConfigDir,
|
|
@@ -41,16 +41,16 @@ process.on("uncaughtException", handleFatalError);
|
|
|
41
41
|
process.on("unhandledRejection", handleFatalError);
|
|
42
42
|
var args = process.argv.slice(2);
|
|
43
43
|
if (args[0] === "hook" && args[1] === "statusline") {
|
|
44
|
-
const { runStatusLineHook } = await import("./statusline-hook-
|
|
44
|
+
const { runStatusLineHook } = await import("./statusline-hook-K7KPN2H6.js");
|
|
45
45
|
await runStatusLineHook();
|
|
46
46
|
process.stdout.write("", () => process.exit(0));
|
|
47
47
|
} else if (args[0] === "hook") {
|
|
48
|
-
const { runHookEvent } = await import("./hook-
|
|
48
|
+
const { runHookEvent } = await import("./hook-6AL5LIQO.js");
|
|
49
49
|
await runHookEvent(args[1], args.slice(2));
|
|
50
50
|
} else {
|
|
51
51
|
const { default: chalk } = await import("chalk");
|
|
52
52
|
if (!process.env.NO_COLOR && chalk.level === 0) chalk.level = 1;
|
|
53
|
-
const { run } = await import("./cli-
|
|
53
|
+
const { run } = await import("./cli-RJVX6HVT.js");
|
|
54
54
|
const { withReporter } = await import("./report-J7TUQRJS.js");
|
|
55
55
|
const { consoleReporter, reportStreamFor } = await import("./console-reporter-XU6VFUZE.js");
|
|
56
56
|
await withReporter(consoleReporter(reportStreamFor(args)), () => run(args));
|
|
@@ -5,31 +5,39 @@ import {
|
|
|
5
5
|
blockRefFrom,
|
|
6
6
|
readBlock,
|
|
7
7
|
removeBlocker
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-JF25PSYF.js";
|
|
9
9
|
import {
|
|
10
10
|
sessionFromArgs,
|
|
11
11
|
sessionPositionals
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-I5FZXDCO.js";
|
|
13
13
|
import "./chunk-6AQRYLOB.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-VRQKIIC2.js";
|
|
15
15
|
import "./chunk-ZSHWP2VS.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-7DUGVGUZ.js";
|
|
17
17
|
import "./chunk-HUXS3VAI.js";
|
|
18
|
+
import "./chunk-7RHC5U7X.js";
|
|
19
|
+
import "./chunk-FGPXMAYU.js";
|
|
20
|
+
import "./chunk-MQCDFSVF.js";
|
|
21
|
+
import "./chunk-I6MILNM5.js";
|
|
22
|
+
import "./chunk-KSVYR4G2.js";
|
|
18
23
|
import {
|
|
19
24
|
findSession,
|
|
20
25
|
loadHistory
|
|
21
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-ZG2M4ECW.js";
|
|
22
27
|
import "./chunk-NEJVK5CF.js";
|
|
23
28
|
import {
|
|
24
29
|
sessionIdFor
|
|
25
|
-
} from "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
32
|
-
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-DAKJTB6N.js";
|
|
35
|
+
import "./chunk-DMGNJ73M.js";
|
|
36
|
+
import "./chunk-NFWSJFYY.js";
|
|
37
|
+
import "./chunk-O5ZJY5BT.js";
|
|
38
|
+
import "./chunk-63ZLPXRL.js";
|
|
39
|
+
import "./chunk-EL3XL2OC.js";
|
|
40
|
+
import "./chunk-D2J3AD6L.js";
|
|
33
41
|
import "./chunk-AU27USPZ.js";
|
|
34
42
|
import "./chunk-6THUVP6T.js";
|
|
35
43
|
|
|
@@ -56,7 +64,7 @@ var blockCommand = {
|
|
|
56
64
|
} else if (typeof argv.pr === "string") {
|
|
57
65
|
ref = blockRefFrom({ kind: "pr", url: argv.pr });
|
|
58
66
|
if (!ref) {
|
|
59
|
-
console.error(chalk.red(`Not a
|
|
67
|
+
console.error(chalk.red(`Not a pull request link: ${argv.pr}`));
|
|
60
68
|
process.exitCode = 1;
|
|
61
69
|
return;
|
|
62
70
|
}
|
|
@@ -86,4 +94,4 @@ var blockCommand = {
|
|
|
86
94
|
export {
|
|
87
95
|
blockCommand
|
|
88
96
|
};
|
|
89
|
-
//# sourceMappingURL=block-
|
|
97
|
+
//# sourceMappingURL=block-3YUIMA62.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/commands/block.ts"],"sourcesContent":["import chalk from 'chalk';\nimport type { CommandModule } from 'yargs';\nimport { blockRefFrom } from '../core/rail/session-blocks.js';\nimport { addBlocker, blockKey, readBlock, removeBlocker } from '../core/rail/session-blocks.js';\nimport { findSession, loadHistory } from '../core/sessions/history.js';\nimport { sessionIdFor } from '../core/sessions/session-id.js';\nimport { sessionFromArgs, sessionPositionals } from './shared/session-arg.js';\n\n/**\n * `work block` — \"Blocked by\" (session-blocks.ts) from a terminal: the\n * session waits on another session (`--on <alias> --on-branch <branch>`) or\n * a pull request (`--pr <url>`); `--off` stops waiting; no option lists it.\n */\nexport const blockCommand: CommandModule = {\n command: 'block [target] [branch]',\n describe: 'Mark a session as waiting on another session or a PR (out of the Inbox until that is done)',\n builder: (yargs) =>\n sessionPositionals(yargs)\n .option('on', { type: 'string', describe: 'The repo or group of the session it waits on' })\n .option('on-branch', { type: 'string', describe: 'The branch of the session it waits on' })\n .option('pr', { type: 'string', describe: 'A pull request URL it waits on' })\n .option('off', { type: 'boolean', describe: 'Stop waiting (on everything, or with --on/--pr on that one)' }),\n handler: (argv) => {\n const s = sessionFromArgs(argv);\n if (!s) return;\n const id = sessionIdFor(s);\n const name = `${s.target} · ${s.branch}`;\n let ref = null;\n if (typeof argv.on === 'string') {\n const other = typeof argv['on-branch'] === 'string' ? findSession(loadHistory(), argv.on, argv['on-branch']) : null;\n if (!other) {\n console.error(chalk.red(`No live session ${argv.on} ${argv['on-branch'] ?? '(give --on-branch)'}.`));\n process.exitCode = 1;\n return;\n }\n ref = blockRefFrom({ kind: 'session', id: sessionIdFor(other) });\n } else if (typeof argv.pr === 'string') {\n ref = blockRefFrom({ kind: 'pr', url: argv.pr });\n if (!ref) {\n console.error(chalk.red(`Not a pull request link: ${argv.pr}`));\n process.exitCode = 1;\n return;\n }\n }\n if (argv.off) {\n removeBlocker(id, ref ? blockKey(ref) : undefined);\n console.log(chalk.green(ref ? `${name} no longer waits on ${ref.label}.` : `${name} no longer waits on anything.`));\n return;\n }\n if (!ref) {\n const b = readBlock(id);\n if (!b) console.log(chalk.gray(`${name} waits on nothing.`));\n else\n for (const x of b.by)\n console.log(`${x.label}${x.kind === 'pr' ? ` ${chalk.gray(x.url)}${x.state ? ` (${x.state.toLowerCase()})` : ''}` : ''}`);\n return;\n }\n const r = addBlocker(id, ref);\n if (!r.ok) {\n console.error(chalk.red(r.error));\n process.exitCode = 1;\n return;\n }\n console.log(chalk.green(`${name} waits on ${ref.label}: out of the Inbox until it is done.`));\n },\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO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M,GAAG,IAAI,uBAAuB,IAAI,KAAK,MAAM,GAAG,IAAI,+BAA+B,CAAC;AAClH;AAAA,IACF;AACA,QAAI,CAAC,KAAK;AACR,YAAM,IAAI,UAAU,EAAE;AACtB,UAAI,CAAC,EAAG,SAAQ,IAAI,MAAM,KAAK,GAAG,IAAI,oBAAoB,CAAC;AAAA;AAEzD,mBAAW,KAAK,EAAE;AAChB,kBAAQ,IAAI,GAAG,EAAE,KAAK,GAAG,EAAE,SAAS,OAAO,KAAK,MAAM,KAAK,EAAE,GAAG,CAAC,GAAG,EAAE,QAAQ,KAAK,EAAE,MAAM,YAAY,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE;AAC7H;AAAA,IACF;AACA,UAAM,IAAI,WAAW,IAAI,GAAG;AAC5B,QAAI,CAAC,EAAE,IAAI;AACT,cAAQ,MAAM,MAAM,IAAI,EAAE,KAAK,CAAC;AAChC,cAAQ,WAAW;AACnB;AAAA,IACF;AACA,YAAQ,IAAI,MAAM,MAAM,GAAG,IAAI,aAAa,IAAI,KAAK,sCAAsC,CAAC;AAAA,EAC9F;AACF;","names":[]}
|
|
@@ -4,22 +4,24 @@ import {
|
|
|
4
4
|
} from "./chunk-WMJIU3YW.js";
|
|
5
5
|
import {
|
|
6
6
|
getCommentFileStore
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-7DUGVGUZ.js";
|
|
8
8
|
import "./chunk-HUXS3VAI.js";
|
|
9
9
|
import {
|
|
10
10
|
loadHistory
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-ZG2M4ECW.js";
|
|
12
12
|
import "./chunk-NEJVK5CF.js";
|
|
13
13
|
import {
|
|
14
14
|
sessionIdFor
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-RUYTU2WJ.js";
|
|
16
|
+
import "./chunk-N4W34U3I.js";
|
|
17
|
+
import "./chunk-CBCOVIXZ.js";
|
|
18
|
+
import "./chunk-PPZP7CA7.js";
|
|
19
|
+
import "./chunk-DMGNJ73M.js";
|
|
20
|
+
import "./chunk-NFWSJFYY.js";
|
|
21
|
+
import "./chunk-O5ZJY5BT.js";
|
|
22
|
+
import "./chunk-63ZLPXRL.js";
|
|
23
|
+
import "./chunk-EL3XL2OC.js";
|
|
24
|
+
import "./chunk-D2J3AD6L.js";
|
|
23
25
|
import "./chunk-AU27USPZ.js";
|
|
24
26
|
import "./chunk-6THUVP6T.js";
|
|
25
27
|
|
|
@@ -106,4 +108,4 @@ var broadcastCommand = {
|
|
|
106
108
|
export {
|
|
107
109
|
broadcastCommand
|
|
108
110
|
};
|
|
109
|
-
//# sourceMappingURL=broadcast-
|
|
111
|
+
//# sourceMappingURL=broadcast-DR3JFINO.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/commands/broadcast.ts","../src/core/comments/broadcast.ts"],"sourcesContent":["import fs from 'node:fs';\nimport chalk from 'chalk';\nimport type { CommandModule } from 'yargs';\nimport { loadHistory } from '../core/sessions/history.js';\nimport { broadcastPrompt } from '../core/comments/broadcast.js';\n\n/** Read the whole of stdin synchronously (for `broadcast -`). */\nfunction readStdin(): string {\n try {\n return fs.readFileSync(0, 'utf-8');\n } catch {\n return '';\n }\n}\n\nexport const broadcastCommand: CommandModule = {\n command: 'broadcast <prompt>',\n describe: \"Queue a prompt to every live session; delivered on each session's next turn\",\n builder: (yargs) =>\n yargs\n .positional('prompt', {\n describe: 'Prompt to send, or \"-\" to read from stdin',\n type: 'string',\n })\n .option('target', {\n describe: 'Only sessions for this project/group alias',\n type: 'string',\n })\n .option('branch', {\n describe: 'With --target, only this branch',\n type: 'string',\n })\n .option('all', {\n describe: 'Required to broadcast to every session when no --target',\n type: 'boolean',\n default: false,\n }),\n handler: async (argv) => {\n let prompt = (argv.prompt as string | undefined) ?? '';\n if (prompt === '-') {\n prompt = readStdin();\n }\n prompt = prompt.trim();\n if (!prompt) {\n console.error(chalk.red('Empty prompt. Usage: work broadcast <prompt>'));\n process.exitCode = 1;\n return;\n }\n\n const target = argv.target as string | undefined;\n const branch = argv.branch as string | undefined;\n const all = argv.all as boolean;\n if (branch && !target) {\n console.error(chalk.red('--branch requires --target.'));\n process.exitCode = 1;\n return;\n }\n // Guardrail: broadcasting to every session is a wide blast radius, so\n // require an explicit --all (or a narrowing --target) rather than letting\n // a bare `work broadcast \"...\"` fan out to the whole fleet by accident.\n if (!target && !all) {\n console.error(chalk.red('Refusing to broadcast to every session. Pass --all to confirm, or --target <alias> to narrow.'));\n process.exitCode = 1;\n return;\n }\n\n const queued = await broadcastPrompt(loadHistory(), { target, branch }, prompt);\n\n if (queued.length === 0) {\n console.log(chalk.yellow('No matching sessions to broadcast to.'));\n return;\n }\n\n console.log(chalk.cyan(`Queued prompt to ${queued.length} session${queued.length === 1 ? '' : 's'}:`));\n for (const t of queued) {\n console.log(` ${chalk.cyan(`[${t.session.target}/${t.session.branch}]`)} ${chalk.gray(t.sessionId)}`);\n }\n console.log('');\n console.log(chalk.gray('Delivery is lazy: each session picks this up on its next prompt (UserPromptSubmit hook).'));\n },\n};\n","/**\n * Core for `work broadcast`: queue a prompt to every (filtered) live session\n * via the existing pending-delivery mechanism. We do NOT touch PTYs — those\n * are per-process and unreachable from a separate CLI. Instead we post a\n * `published`, `author:'user'` comment to each session's comment file store;\n * `work hook prompt-submit` surfaces it on that session's next turn (see\n * pending-delivery.ts `readPendingForSession`, which selects exactly those).\n *\n * Broadcast writes from a SEPARATE process while `work web` may be writing\n * the same session's comments; the comment store's writes are database\n * transactions that reload first, so neither side's write is lost.\n */\n\nimport { getCommentFileStore } from './comment-file-store.js';\nimport { sessionIdFor } from '../sessions/session-id.js';\nimport { selectSessions, type FleetFilter } from '../sessions/fleet.js';\nimport type { WorktreeSession } from '../sessions/history.js';\n\nexport interface BroadcastTarget {\n session: WorktreeSession;\n sessionId: string;\n commentId: string;\n}\n\n/**\n * Post `prompt` as a published user comment (side 'general') to every session\n * matching `filter`. Returns one entry per session queued.\n */\nexport async function broadcastPrompt(sessions: WorktreeSession[], filter: FleetFilter, prompt: string): Promise<BroadcastTarget[]> {\n const body = prompt.trim();\n if (!body) throw new Error('broadcast prompt is empty');\n\n const selected = selectSessions(sessions, filter);\n const out: BroadcastTarget[] = [];\n for (const session of selected) {\n const sessionId = sessionIdFor(session);\n // The store's post is a transaction that reloads first, so a\n // concurrent work web write to the same session can't be lost.\n const c = getCommentFileStore(sessionId).post({ side: 'general', status: 'published', author: 'user', body });\n out.push({ session, sessionId, commentId: c.id });\n }\n return out;\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/commands/broadcast.ts","../src/core/comments/broadcast.ts"],"sourcesContent":["import fs from 'node:fs';\nimport chalk from 'chalk';\nimport type { CommandModule } from 'yargs';\nimport { loadHistory } from '../core/sessions/history.js';\nimport { broadcastPrompt } from '../core/comments/broadcast.js';\n\n/** Read the whole of stdin synchronously (for `broadcast -`). */\nfunction readStdin(): string {\n try {\n return fs.readFileSync(0, 'utf-8');\n } catch {\n return '';\n }\n}\n\nexport const broadcastCommand: CommandModule = {\n command: 'broadcast <prompt>',\n describe: \"Queue a prompt to every live session; delivered on each session's next turn\",\n builder: (yargs) =>\n yargs\n .positional('prompt', {\n describe: 'Prompt to send, or \"-\" to read from stdin',\n type: 'string',\n })\n .option('target', {\n describe: 'Only sessions for this project/group alias',\n type: 'string',\n })\n .option('branch', {\n describe: 'With --target, only this branch',\n type: 'string',\n })\n .option('all', {\n describe: 'Required to broadcast to every session when no --target',\n type: 'boolean',\n default: false,\n }),\n handler: async (argv) => {\n let prompt = (argv.prompt as string | undefined) ?? '';\n if (prompt === '-') {\n prompt = readStdin();\n }\n prompt = prompt.trim();\n if (!prompt) {\n console.error(chalk.red('Empty prompt. Usage: work broadcast <prompt>'));\n process.exitCode = 1;\n return;\n }\n\n const target = argv.target as string | undefined;\n const branch = argv.branch as string | undefined;\n const all = argv.all as boolean;\n if (branch && !target) {\n console.error(chalk.red('--branch requires --target.'));\n process.exitCode = 1;\n return;\n }\n // Guardrail: broadcasting to every session is a wide blast radius, so\n // require an explicit --all (or a narrowing --target) rather than letting\n // a bare `work broadcast \"...\"` fan out to the whole fleet by accident.\n if (!target && !all) {\n console.error(chalk.red('Refusing to broadcast to every session. Pass --all to confirm, or --target <alias> to narrow.'));\n process.exitCode = 1;\n return;\n }\n\n const queued = await broadcastPrompt(loadHistory(), { target, branch }, prompt);\n\n if (queued.length === 0) {\n console.log(chalk.yellow('No matching sessions to broadcast to.'));\n return;\n }\n\n console.log(chalk.cyan(`Queued prompt to ${queued.length} session${queued.length === 1 ? '' : 's'}:`));\n for (const t of queued) {\n console.log(` ${chalk.cyan(`[${t.session.target}/${t.session.branch}]`)} ${chalk.gray(t.sessionId)}`);\n }\n console.log('');\n console.log(chalk.gray('Delivery is lazy: each session picks this up on its next prompt (UserPromptSubmit hook).'));\n },\n};\n","/**\n * Core for `work broadcast`: queue a prompt to every (filtered) live session\n * via the existing pending-delivery mechanism. We do NOT touch PTYs — those\n * are per-process and unreachable from a separate CLI. Instead we post a\n * `published`, `author:'user'` comment to each session's comment file store;\n * `work hook prompt-submit` surfaces it on that session's next turn (see\n * pending-delivery.ts `readPendingForSession`, which selects exactly those).\n *\n * Broadcast writes from a SEPARATE process while `work web` may be writing\n * the same session's comments; the comment store's writes are database\n * transactions that reload first, so neither side's write is lost.\n */\n\nimport { getCommentFileStore } from './comment-file-store.js';\nimport { sessionIdFor } from '../sessions/session-id.js';\nimport { selectSessions, type FleetFilter } from '../sessions/fleet.js';\nimport type { WorktreeSession } from '../sessions/history.js';\n\nexport interface BroadcastTarget {\n session: WorktreeSession;\n sessionId: string;\n commentId: string;\n}\n\n/**\n * Post `prompt` as a published user comment (side 'general') to every session\n * matching `filter`. Returns one entry per session queued.\n */\nexport async function broadcastPrompt(sessions: WorktreeSession[], filter: FleetFilter, prompt: string): Promise<BroadcastTarget[]> {\n const body = prompt.trim();\n if (!body) throw new Error('broadcast prompt is empty');\n\n const selected = selectSessions(sessions, filter);\n const out: BroadcastTarget[] = [];\n for (const session of selected) {\n const sessionId = sessionIdFor(session);\n // The store's post is a transaction that reloads first, so a\n // concurrent work web write to the same session can't be lost.\n const c = getCommentFileStore(sessionId).post({ side: 'general', status: 'published', author: 'user', body });\n out.push({ session, sessionId, commentId: c.id });\n }\n return out;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ;AACf,OAAO,WAAW;;;AC2BlB,eAAsB,gBAAgB,UAA6B,QAAqB,QAA4C;AAClI,QAAM,OAAO,OAAO,KAAK;AACzB,MAAI,CAAC,KAAM,OAAM,IAAI,MAAM,2BAA2B;AAEtD,QAAM,WAAW,eAAe,UAAU,MAAM;AAChD,QAAM,MAAyB,CAAC;AAChC,aAAW,WAAW,UAAU;AAC9B,UAAM,YAAY,aAAa,OAAO;AAGtC,UAAM,IAAI,oBAAoB,SAAS,EAAE,KAAK,EAAE,MAAM,WAAW,QAAQ,aAAa,QAAQ,QAAQ,KAAK,CAAC;AAC5G,QAAI,KAAK,EAAE,SAAS,WAAW,WAAW,EAAE,GAAG,CAAC;AAAA,EAClD;AACA,SAAO;AACT;;;ADnCA,SAAS,YAAoB;AAC3B,MAAI;AACF,WAAO,GAAG,aAAa,GAAG,OAAO;AAAA,EACnC,QAAQ;AACN,WAAO;AAAA,EACT;AACF;AAEO,IAAM,mBAAkC;AAAA,EAC7C,SAAS;AAAA,EACT,UAAU;AAAA,EACV,SAAS,CAAC,UACR,MACG,WAAW,UAAU;AAAA,IACpB,UAAU;AAAA,IACV,MAAM;AAAA,EACR,CAAC,EACA,OAAO,UAAU;AAAA,IAChB,UAAU;AAAA,IACV,MAAM;AAAA,EACR,CAAC,EACA,OAAO,UAAU;AAAA,IAChB,UAAU;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{
|
|
|
3
3
|
askCatchUp,
|
|
4
4
|
catchUp,
|
|
5
5
|
catchUpFacts
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-63VY4YJM.js";
|
|
8
|
-
import "./chunk-BSP2Z7B7.js";
|
|
6
|
+
} from "./chunk-F2CDUWZU.js";
|
|
9
7
|
import {
|
|
10
8
|
sessionFromArgs,
|
|
11
9
|
sessionPositionals
|
|
12
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-I5FZXDCO.js";
|
|
13
11
|
import "./chunk-6AQRYLOB.js";
|
|
14
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-W7MGB3Q2.js";
|
|
13
|
+
import "./chunk-IQ4MITHC.js";
|
|
14
|
+
import "./chunk-VRQKIIC2.js";
|
|
15
15
|
import "./chunk-ZSHWP2VS.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-7DUGVGUZ.js";
|
|
17
17
|
import "./chunk-HUXS3VAI.js";
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-37XQIG7F.js";
|
|
18
|
+
import "./chunk-ZG2M4ECW.js";
|
|
20
19
|
import "./chunk-NEJVK5CF.js";
|
|
21
20
|
import {
|
|
22
21
|
sessionIdFor
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
22
|
+
} from "./chunk-RUYTU2WJ.js";
|
|
23
|
+
import "./chunk-N4W34U3I.js";
|
|
24
|
+
import "./chunk-DCCC7LEP.js";
|
|
25
|
+
import "./chunk-CBCOVIXZ.js";
|
|
26
|
+
import "./chunk-PPZP7CA7.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
|
|
|
@@ -53,4 +55,4 @@ var catchupCommand = {
|
|
|
53
55
|
export {
|
|
54
56
|
catchupCommand
|
|
55
57
|
};
|
|
56
|
-
//# sourceMappingURL=catchup-
|
|
58
|
+
//# sourceMappingURL=catchup-YG2UOZBL.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/commands/catchup.ts"],"sourcesContent":["import chalk from 'chalk';\nimport type { CommandModule } from 'yargs';\nimport { askCatchUp, catchUpFacts } from '../core/conversations/catch-up-deps.js';\nimport { catchUp } from '../core/conversations/catch-up.js';\nimport { sessionIdFor } from '../core/sessions/session-id.js';\nimport { sessionFromArgs, sessionPositionals } from './shared/session-arg.js';\n\n/** `work catchup` — the dashboard's Catch me up (catch-up.ts): a few sentences on where a session stands. */\nexport const catchupCommand: CommandModule = {\n command: 'catchup [target] [branch]',\n describe: 'A few sentences on where a session stands: done, left, anything waiting on you (default: the session for this folder)',\n builder: (yargs) => sessionPositionals(yargs),\n handler: async (argv) => {\n const s = sessionFromArgs(argv);\n if (!s) return;\n console.error(chalk.gray(`Reading the last week of ${s.target} · ${s.branch}…`));\n const r = await catchUp(s, askCatchUp, catchUpFacts(sessionIdFor(s)));\n if (!r) {\n console.error(chalk.yellow('Nothing to go on: no conversation in the last week, or no answer from Claude.'));\n process.exitCode = 1;\n return;\n }\n console.log(r.text);\n },\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/commands/catchup.ts"],"sourcesContent":["import chalk from 'chalk';\nimport type { CommandModule } from 'yargs';\nimport { askCatchUp, catchUpFacts } from '../core/conversations/catch-up-deps.js';\nimport { catchUp } from '../core/conversations/catch-up.js';\nimport { sessionIdFor } from '../core/sessions/session-id.js';\nimport { sessionFromArgs, sessionPositionals } from './shared/session-arg.js';\n\n/** `work catchup` — the dashboard's Catch me up (catch-up.ts): a few sentences on where a session stands. */\nexport const catchupCommand: CommandModule = {\n command: 'catchup [target] [branch]',\n describe: 'A few sentences on where a session stands: done, left, anything waiting on you (default: the session for this folder)',\n builder: (yargs) => sessionPositionals(yargs),\n handler: async (argv) => {\n const s = sessionFromArgs(argv);\n if (!s) return;\n console.error(chalk.gray(`Reading the last week of ${s.target} · ${s.branch}…`));\n const r = await catchUp(s, askCatchUp, catchUpFacts(sessionIdFor(s)));\n if (!r) {\n console.error(chalk.yellow('Nothing to go on: no conversation in the last week, or no answer from Claude.'));\n process.exitCode = 1;\n return;\n }\n console.log(r.text);\n },\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,WAAW;AAQX,IAAM,iBAAgC;AAAA,EAC3C,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,YAAQ,MAAM,MAAM,KAAK,4BAA4B,EAAE,MAAM,SAAM,EAAE,MAAM,QAAG,CAAC;AAC/E,UAAM,IAAI,MAAM,QAAQ,GAAG,YAAY,aAAa,aAAa,CAAC,CAAC,CAAC;AACpE,QAAI,CAAC,GAAG;AACN,cAAQ,MAAM,MAAM,OAAO,+EAA+E,CAAC;AAC3G,cAAQ,WAAW;AACnB;AAAA,IACF;AACA,YAAQ,IAAI,EAAE,IAAI;AAAA,EACpB;AACF;","names":[]}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
isFolderSession,
|
|
4
4
|
sessionRepos
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ZG2M4ECW.js";
|
|
6
6
|
|
|
7
7
|
// src/core/worktree/add-repo-rules.ts
|
|
8
8
|
import path from "path";
|
|
@@ -36,4 +36,4 @@ export {
|
|
|
36
36
|
addRepoRefusal,
|
|
37
37
|
addedRepoNote
|
|
38
38
|
};
|
|
39
|
-
//# sourceMappingURL=chunk-
|
|
39
|
+
//# sourceMappingURL=chunk-246OTVRR.js.map
|
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
buildAiLaunchArgs
|
|
4
|
+
} from "./chunk-N4W34U3I.js";
|
|
5
|
+
import {
|
|
6
|
+
launchFor
|
|
7
|
+
} from "./chunk-DAKJTB6N.js";
|
|
2
8
|
import {
|
|
3
9
|
applyEnvDelta,
|
|
4
|
-
buildAiLaunchArgs,
|
|
5
10
|
hasEnvDelta
|
|
6
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-DMGNJ73M.js";
|
|
7
12
|
import {
|
|
8
13
|
detachHere
|
|
9
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-63ZLPXRL.js";
|
|
10
15
|
import {
|
|
11
16
|
spawn_default
|
|
12
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-EL3XL2OC.js";
|
|
13
18
|
|
|
14
19
|
// src/core/platform/launch.ts
|
|
15
20
|
function getEditor() {
|
|
@@ -17,12 +22,12 @@ function getEditor() {
|
|
|
17
22
|
}
|
|
18
23
|
function openInEditor(filePath) {
|
|
19
24
|
const editor = getEditor();
|
|
20
|
-
spawn_default.sync(editor, [filePath], { stdio: "inherit", windowsHide: false });
|
|
25
|
+
spawn_default.sync(editor, [filePath], { stdio: "inherit", windowsHide: false, keepCwdLookup: true });
|
|
21
26
|
}
|
|
22
27
|
function openUrl(url) {
|
|
23
28
|
const cmd = process.platform === "win32" ? "cmd" : process.platform === "darwin" ? "open" : "xdg-open";
|
|
24
29
|
const args = process.platform === "win32" ? ["/c", "start", "", url] : [url];
|
|
25
|
-
spawn_default(cmd, args, { stdio: "ignore", detached: detachHere(), windowsHide: true }).unref();
|
|
30
|
+
spawn_default(cmd, args, { stdio: "ignore", detached: detachHere(), windowsHide: true, keepCwdLookup: true }).unref();
|
|
26
31
|
}
|
|
27
32
|
var VSCODE_LIKE = /^(code|code-insiders|codium|vscodium|cursor|windsurf)$/i;
|
|
28
33
|
var JETBRAINS = /^(idea|rider|webstorm|pycharm|goland|clion|phpstorm|rubymine|datagrip)(64)?$/i;
|
|
@@ -37,7 +42,7 @@ function editorArgs(editor, folder, file) {
|
|
|
37
42
|
return [file.path];
|
|
38
43
|
}
|
|
39
44
|
function openVSCode(dir) {
|
|
40
|
-
spawn_default.sync("code", ["."], { cwd: dir, stdio: "inherit", windowsHide: false });
|
|
45
|
+
spawn_default.sync("code", ["."], { cwd: dir, stdio: "inherit", windowsHide: false, keepCwdLookup: true });
|
|
41
46
|
}
|
|
42
47
|
function launchAi(cwd, tool, opts = {}, port, agentEnv) {
|
|
43
48
|
const { cmd, args } = buildAiLaunchArgs(tool, opts);
|
|
@@ -46,7 +51,9 @@ function launchAi(cwd, tool, opts = {}, port, agentEnv) {
|
|
|
46
51
|
// The AI tool runs in this terminal: nothing to hide.
|
|
47
52
|
env ? { cwd, stdio: "inherit", windowsHide: false, env } : { cwd, stdio: "inherit", windowsHide: false }
|
|
48
53
|
);
|
|
49
|
-
|
|
54
|
+
const launch = launchFor(cmd, args, { env: env ?? process.env });
|
|
55
|
+
if ("refused" in launch) throw new Error(`${launch.refused} (give it the prompt in its terminal instead)`);
|
|
56
|
+
spawn_default.sync(launch.cmd, launch.args, spawnOpts);
|
|
50
57
|
}
|
|
51
58
|
|
|
52
59
|
export {
|
|
@@ -56,4 +63,4 @@ export {
|
|
|
56
63
|
openVSCode,
|
|
57
64
|
launchAi
|
|
58
65
|
};
|
|
59
|
-
//# sourceMappingURL=chunk-
|
|
66
|
+
//# sourceMappingURL=chunk-26YZYL77.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/core/platform/launch.ts"],"sourcesContent":["import spawn from './spawn.js';\nimport { detachHere } from './process.js';\nimport { applyEnvDelta, hasEnvDelta, type EnvDelta } from './env-delta.js';\nimport { buildAiLaunchArgs, type AiLaunchOpts, type AiToolSpec } from './ai-launcher.js';\nimport { launchFor } from './batch-launch.js';\n\n/** Get the platform-appropriate default editor. */\nexport function getEditor(): string {\n return process.env.EDITOR ?? process.env.VISUAL ?? (process.platform === 'win32' ? 'notepad' : 'vi');\n}\n\n/** Open a file in the user's editor. */\nexport function openInEditor(filePath: string): void {\n const editor = getEditor();\n // This terminal's (vi) or a window of its own (notepad): to be seen.\n // Not a tool run: the editor keeps cmd.exe's usual lookup for its own terminals (spawn.ts `keepCwdLookup`).\n spawn.sync(editor, [filePath], { stdio: 'inherit', windowsHide: false, keepCwdLookup: true });\n}\n\n/** Open a URL in the default browser. */\nexport function openUrl(url: string): void {\n const cmd = process.platform === 'win32' ? 'cmd' : process.platform === 'darwin' ? 'open' : 'xdg-open';\n const args = process.platform === 'win32' ? ['/c', 'start', '', url] : [url];\n // `cmd /c start` is a console program: hidden, or a window flashes before the browser opens.\n spawn(cmd, args, { stdio: 'ignore', detached: detachHere(), windowsHide: true, keepCwdLookup: true }).unref();\n}\n\n/** VS Code and the editors built on it: the folder, then `--goto file:line`, opens the file at its line in that folder's window. */\nconst VSCODE_LIKE = /^(code|code-insiders|codium|vscodium|cursor|windsurf)$/i;\n/** JetBrains' launchers: `--line N file`. */\nconst JETBRAINS = /^(idea|rider|webstorm|pycharm|goland|clion|phpstorm|rubymine|datagrip)(64)?$/i;\n/** Sublime Text: `file:line`. */\nconst SUBLIME = /^(subl|sublime_text)$/i;\n\n/**\n * The arguments that open `folder` in `editor`, or a file in it at a line. An editor work doesn't know how to send\n * to a line gets the file alone (it opens at the top); with no file, the folder, as before.\n */\nexport function editorArgs(editor: string, folder: string, file?: { path: string; line?: number }): string[] {\n if (!file) return [folder];\n // Either separator, whatever this platform's: a config written on Windows names `C:\\…\\code.cmd`.\n const name = (editor.trim().split(/[\\\\/]/).pop() ?? '').replace(/\\.(cmd|bat|exe|sh)$/i, '');\n const line = file.line && file.line > 0 ? Math.floor(file.line) : undefined;\n if (VSCODE_LIKE.test(name)) return [folder, '--goto', line ? `${file.path}:${line}` : file.path];\n if (JETBRAINS.test(name)) return line ? [folder, '--line', String(line), file.path] : [folder, file.path];\n if (SUBLIME.test(name)) return [folder, line ? `${file.path}:${line}` : file.path];\n return [file.path];\n}\n\n/** Open VS Code in the given directory. */\nexport function openVSCode(dir: string): void {\n // The editor's window is the point; its terminals and tasks keep cmd.exe's usual lookup (spawn.ts `keepCwdLookup`).\n spawn.sync('code', ['.'], { cwd: dir, stdio: 'inherit', windowsHide: false, keepCwdLookup: true });\n}\n\n/**\n * Launch the configured AI tool in the given directory.\n *\n * When `port` is provided it is injected as `$PORT` into the launched process\n * so dev servers started by parallel agent sessions don't collide.\n */\nexport function launchAi(cwd: string, tool: AiToolSpec, opts: AiLaunchOpts = {}, port?: number, agentEnv?: EnvDelta): void {\n const { cmd, args } = buildAiLaunchArgs(tool, opts);\n // This terminal's environment, with the session's account change over it (agent.launch.env) and its port.\n const env =\n hasEnvDelta(agentEnv) || port !== undefined\n ? { ...applyEnvDelta(process.env, agentEnv), ...(port !== undefined ? { PORT: String(port) } : {}) }\n : undefined;\n const spawnOpts: Parameters<typeof spawn.sync>[2] =\n // The AI tool runs in this terminal: nothing to hide.\n env ? { cwd, stdio: 'inherit', windowsHide: false, env: env as NodeJS.ProcessEnv } : { cwd, stdio: 'inherit', windowsHide: false };\n // Windows: npm's claude.cmd is skipped for node on its script, and another batch file never gets a prompt\n // cmd.exe would act on (`&`, `%`, quotes, a line break that cuts the rest): refused, said why (batch-launch.ts).\n const launch = launchFor(cmd, args, { env: env ?? process.env });\n if ('refused' in launch) throw new Error(`${launch.refused} (give it the prompt in its terminal instead)`);\n spawn.sync(launch.cmd, launch.args, spawnOpts);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAOO,SAAS,YAAoB;AAClC,SAAO,QAAQ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AAW,KAAmB;AAE5C,gBAAM,KAAK,QAAQ,CAAC,GAAG,GAAG,EAAE,KAAK,KAAK,OAAO,WAAW,aAAa,OAAO,eAAe,KAAK,CAAC;AACnG;AAQO,SAAS,SAAS,KAAa,MAAkB,OAAqB,CAAC,GAAG,MAAe,UAA2B;AACzH,QAAM,EAAE,KAAK,KAAK,IAAI,kBAAkB,MAAM,IAAI;AAElD,QAAM,MACJ,YAAY,QAAQ,KAAK,SAAS,SAC9B,EAAE,GAAG,cAAc,QAAQ,KAAK,QAAQ,GAAG,GAAI,SAAS,SAAY,EAAE,MAAM,OAAO,IAAI,EAAE,IAAI,CAAC,EAAG,IACjG;AACN,QAAM;AAAA;AAAA,IAEJ,MAAM,EAAE,KAAK,OAAO,WAAW,aAAa,OAAO,IAA8B,IAAI,EAAE,KAAK,OAAO,WAAW,aAAa,MAAM;AAAA;AAGnI,QAAM,SAAS,UAAU,KAAK,MAAM,EAAE,KAAK,OAAO,QAAQ,IAAI,CAAC;AAC/D,MAAI,aAAa,OAAQ,OAAM,IAAI,MAAM,GAAG,OAAO,OAAO,+CAA+C;AACzG,gBAAM,KAAK,OAAO,KAAK,OAAO,MAAM,SAAS;AAC/C;","names":[]}
|
|
@@ -1,24 +1,27 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
findOnPath
|
|
4
|
-
} from "./chunk-ZDMJPEBO.js";
|
|
5
2
|
import {
|
|
6
3
|
ensureHost,
|
|
4
|
+
probeHostDetailed
|
|
5
|
+
} from "./chunk-QLFJNYBV.js";
|
|
6
|
+
import {
|
|
7
7
|
hostInfoPath,
|
|
8
|
-
probeHostDetailed,
|
|
9
8
|
readHostInfo
|
|
10
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-2QLLPZ2L.js";
|
|
11
10
|
import {
|
|
12
11
|
agentFor,
|
|
13
12
|
agentSettings,
|
|
14
13
|
assistantAgent,
|
|
15
14
|
internalAgent
|
|
16
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-N4W34U3I.js";
|
|
17
16
|
import {
|
|
18
17
|
detachHere,
|
|
19
18
|
isPidAlive,
|
|
20
19
|
killTree
|
|
21
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-63ZLPXRL.js";
|
|
21
|
+
import {
|
|
22
|
+
findOnPath,
|
|
23
|
+
programPath
|
|
24
|
+
} from "./chunk-EL3XL2OC.js";
|
|
22
25
|
import {
|
|
23
26
|
report
|
|
24
27
|
} from "./chunk-AU27USPZ.js";
|
|
@@ -34,14 +37,14 @@ function commandLineOf(pid) {
|
|
|
34
37
|
const done = (err, out) => resolve(err ? null : out.trim() || null);
|
|
35
38
|
if (process.platform === "win32")
|
|
36
39
|
execFile(
|
|
37
|
-
"powershell",
|
|
40
|
+
programPath("powershell"),
|
|
38
41
|
["-NoProfile", "-Command", `(Get-CimInstance Win32_Process -Filter 'ProcessId=${Math.trunc(pid)}').CommandLine`],
|
|
39
42
|
{ windowsHide: true, timeout: 15e3 },
|
|
40
43
|
(err, out) => done(err, String(out))
|
|
41
44
|
);
|
|
42
45
|
else
|
|
43
46
|
execFile(
|
|
44
|
-
"ps",
|
|
47
|
+
programPath("ps"),
|
|
45
48
|
["-o", "args=", "-p", String(Math.trunc(pid))],
|
|
46
49
|
{ windowsHide: true, timeout: 5e3 },
|
|
47
50
|
(err, out) => done(err, String(out))
|
|
@@ -166,4 +169,4 @@ export {
|
|
|
166
169
|
restartHost,
|
|
167
170
|
ensureAgentPath
|
|
168
171
|
};
|
|
169
|
-
//# sourceMappingURL=chunk-
|
|
172
|
+
//# sourceMappingURL=chunk-2KN5ECHJ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/core/pty/host-control.ts","../src/core/platform/shell-path.ts","../src/core/agents/agent-path.ts"],"sourcesContent":["import fs from 'node:fs';\nimport { execFile } from 'node:child_process';\nimport { programPath } from '../platform/program-path.js';\nimport { ensureHost, probeHostDetailed } from './pty-host-client.js';\nimport { hostInfoPath, readHostInfo } from './pty-host-protocol.js';\nimport { isPidAlive, killTree } from '../platform/process.js';\n\n/**\n * Stopping and restarting the PTY host — the CLI's `work pty-host\n * --stop/--restart` and the dashboard's Restart share it. The persisted\n * session list stays, so the next host restores them with --continue.\n */\n\nexport type StopOutcome = 'stopped' | 'not-running' | 'stale-file' | 'unresponsive' | 'failed';\n\n/** A process's command line, or null when it isn't running or can't be read (Windows: CIM; elsewhere: ps). */\nexport function commandLineOf(pid: number): Promise<string | null> {\n return new Promise((resolve) => {\n const done = (err: Error | null, out: string) => resolve(err ? null : out.trim() || null);\n if (process.platform === 'win32')\n execFile(\n programPath('powershell'),\n ['-NoProfile', '-Command', `(Get-CimInstance Win32_Process -Filter 'ProcessId=${Math.trunc(pid)}').CommandLine`],\n { windowsHide: true, timeout: 15_000 },\n (err, out) => done(err, String(out)),\n );\n else\n execFile(programPath('ps'), ['-o', 'args=', '-p', String(Math.trunc(pid))], { windowsHide: true, timeout: 5000 }, (err, out) =>\n done(err, String(out)),\n );\n });\n}\n\n/**\n * The recorded pid really is a running PTY host of work's: alive, and its command line runs `pty-host` (not a\n * `--stop`/`--restart`/`--status` call). Pids get reused — on Windows fast — so a host that doesn't answer is only\n * force-stopped after this: blind, it could take down any process that took its number. Pure over its inputs.\n */\nexport function looksLikeHost(commandLine: string | null): boolean {\n return (\n !!commandLine && /(^|\\s|[\"'\\\\/])pty-host(\\s|$|[\"'])/.test(commandLine) && !/\\bpty-host\\b.*--(stop|restart|status)\\b/.test(commandLine)\n );\n}\n\n/**\n * Kill the running host and its PTYs. Only a PID that proves it's our host gets killed: it answers /health with the\n * discovery file's token and that same PID — or, with `force`, it doesn't answer at all (hung: a ConPTY start that\n * blocked its event loop) but its process is alive and runs `work pty-host` (`looksLikeHost`). The file survives\n * crashes and reboots (TerminateProcess skips cleanup), and Windows reuses PIDs. A stale file is just removed.\n */\nexport async function stopHost(\n kill: (pid: number) => boolean = killTree,\n probeTimeoutMs = 5000,\n opts: { force?: boolean; isOurHost?: (pid: number) => Promise<boolean> } = {},\n): Promise<StopOutcome> {\n const hostInfo = readHostInfo();\n if (!hostInfo) return 'not-running';\n // A busy host (restoring many sessions) can miss a short probe; give it\n // longer before concluding anything.\n const probe = await probeHostDetailed(hostInfo, probeTimeoutMs);\n if (probe.kind === 'timeout') {\n // Alive-but-slow must NOT be treated as stale: deleting the file would\n // orphan a live host, and --restart would then start a second one that\n // restores every session again. Keep the file, kill nothing — unless\n // asked to stop a hung one, and it proves to be ours.\n const ours = opts.isOurHost ?? (async (pid: number) => isPidAlive(pid) && looksLikeHost(await commandLineOf(pid)));\n if (!opts.force || !(await ours(hostInfo.pid))) return 'unresponsive';\n return killAndForget(kill, hostInfo.pid);\n }\n if (probe.kind !== 'host' || probe.pid !== hostInfo.pid) {\n // Nothing listening, or someone else on that port: the file is stale\n // (reboot, crash, PID/port reused). Remove it; kill nothing.\n removeInfo();\n return 'stale-file';\n }\n return killAndForget(kill, hostInfo.pid);\n}\n\nfunction killAndForget(kill: (pid: number) => boolean, pid: number): StopOutcome {\n const ok = kill(pid);\n // TerminateProcess means the host never runs its own cleanup.\n removeInfo();\n return ok ? 'stopped' : 'failed';\n}\n\nfunction removeInfo(): void {\n try {\n fs.unlinkSync(hostInfoPath());\n } catch {\n /* */\n }\n}\n\n/**\n * Stop the host and start a new one, which restores every saved session with --continue. `force`: a host that\n * doesn't answer is stopped too (see stopHost). Never starts a second host beside one it couldn't stop.\n */\nexport async function restartHost(\n workBin: string,\n opts: { force?: boolean } = {},\n steps: { stop?: (force: boolean) => Promise<StopOutcome>; start?: (workBin: string) => Promise<{ pid: number }>; pauseMs?: number } = {},\n): Promise<{ outcome: StopOutcome; pid: number | null }> {\n const outcome = await (steps.stop ?? ((force) => stopHost(killTree, 5000, { force })))(!!opts.force);\n if (outcome === 'failed' || outcome === 'unresponsive') return { outcome, pid: null };\n // The old one's port and lock let go before the new one takes them.\n await new Promise((r) => setTimeout(r, steps.pauseMs ?? 500));\n const host = await (steps.start ?? ensureHost)(workBin);\n return { outcome, pid: host.pid };\n}\n","import { spawnSync, type SpawnSyncOptionsWithStringEncoding } from 'node:child_process';\nimport path from 'node:path';\nimport { findOnPath } from './find-on-path.js';\nimport { report } from './report.js';\nimport { debugLog } from './logger.js';\nimport { detachHere } from './process.js';\n\n/**\n * The PATH of the user's login shell, for a work started without one.\n *\n * Reported from a Mac: every session ended at once with \"session exited with code 1\", and Enter\n * gave the same. The desktop app started from the Dock or Finder gets the system's minimal PATH\n * (/usr/bin:/bin:/usr/sbin:/sbin), not the one the user's shell sets up, and passes it on to work\n * web, the PTY host and every Claude: `claude` (in ~/.local/bin, /opt/homebrew/bin, an nvm folder…)\n * isn't found, and node-pty's child exits with 1 when its exec fails. So when work web or the PTY\n * host starts on macOS or Linux and the agent's command isn't on its PATH, it asks the login shell\n * for its PATH (`$SHELL -ilc`, as a terminal would set it up) and puts it first. Started from a\n * terminal, the command is found and nothing is asked.\n */\n\nconst MARK = '__WORK_SHELL_PATH__';\n\n/** The shell's PATH first, then what we had that it lacks (e.g. the app's ~/.work/bin). */\nexport function mergePath(current: string | undefined, shellPath: string, sep = path.delimiter): string {\n const out: string[] = [];\n for (const d of [...shellPath.split(sep), ...(current ?? '').split(sep)]) if (d && !out.includes(d)) out.push(d);\n return out.join(sep);\n}\n\n/** The PATH between the markers of the shell's output (an interactive shell may print a greeting around it). */\nexport function parseShellPath(stdout: string): string | null {\n const m = new RegExp(`${MARK}(.*?)${MARK}`, 's').exec(stdout);\n const p = m?.[1].trim();\n return p ? p : null;\n}\n\n/** How long the login shell may take to say its PATH. */\nexport const SHELL_PATH_TIMEOUT_MS = 5_000;\n\n/** The shell's arguments: a login, interactive shell (what a terminal runs) printing its PATH between markers. */\nexport const shellPathArgs = (): string[] => ['-ilc', `printf '%s%s%s' '${MARK}' \"$PATH\" '${MARK}'`];\n\n/**\n * How it's started. `killSignal: SIGKILL`: an interactive bash or zsh ignores SIGTERM (spawnSync's\n * default at the timeout), and Node then waits for it — a stuck profile held work web up for as long as\n * it hung (reproduced: a 2 s timeout returned after 8 s). `detached` (POSIX): its own session, so it\n * never takes this terminal's foreground group — killed while holding it, it left `work web` in the\n * background, where Ctrl+C no longer reached it (reproduced).\n */\nexport const shellPathSpawnOptions = (timeoutMs = SHELL_PATH_TIMEOUT_MS): SpawnSyncOptionsWithStringEncoding =>\n // `detached` isn't in @types/node's spawnSync options, but spawnSync honors it (spawn_sync reads it).\n ({\n encoding: 'utf8',\n timeout: timeoutMs,\n killSignal: 'SIGKILL',\n detached: detachHere(),\n stdio: ['ignore', 'pipe', 'ignore'],\n windowsHide: true,\n }) as SpawnSyncOptionsWithStringEncoding;\n\ntype ShellRun = (cmd: string, args: string[]) => { stdout?: string | null; status?: number | null; signal?: string | null; error?: Error };\n\n/** Ask the login shell for its PATH: its PATH, or why it couldn't say (a timeout, no such shell, no markers). */\nexport function readShellPath(\n shell = process.env.SHELL || '/bin/zsh',\n run: ShellRun = (cmd, args) => spawnSync(cmd, args, shellPathSpawnOptions()),\n): { path: string } | { why: string } {\n try {\n const r = run(shell, shellPathArgs());\n const p = parseShellPath(r.stdout ?? '');\n if (p) return { path: p };\n const how = r.error\n ? r.error.message\n : r.signal\n ? `stopped by ${r.signal} (over ${SHELL_PATH_TIMEOUT_MS / 1000} s?)`\n : `exit ${r.status ?? '?'}, no PATH printed`;\n return { why: `${shell} -ilc: ${how}` };\n } catch (err) {\n return { why: `${shell} -ilc: ${(err as Error).message}` };\n }\n}\n\n/**\n * Make sure the commands in `need` (the agent's binary) can be found: on macOS and Linux, when one\n * isn't on PATH, the login shell's PATH is merged into this process's (which everything it starts\n * inherits). Says what it did; never throws.\n */\nexport function ensureShellPath(\n need: string[],\n opts: {\n platform?: NodeJS.Platform;\n env?: NodeJS.ProcessEnv;\n readPath?: () => { path: string } | { why: string };\n find?: (cmd: string, env: NodeJS.ProcessEnv) => string | null;\n } = {},\n): 'found' | 'added' | 'unavailable' {\n const platform = opts.platform ?? process.platform;\n const env = opts.env ?? process.env;\n if (platform === 'win32') return 'found';\n const find = opts.find ?? ((c: string, e: NodeJS.ProcessEnv) => findOnPath(c, e, platform));\n const missing = need.filter((c) => !find(c, env));\n if (!missing.length) return 'found';\n // Said in the debug log too: started by the desktop app, nothing shows what a reporter prints.\n const say = (level: 'info' | 'warn', text: string) => {\n report(level, text);\n debugLog(level === 'warn' ? 'WARN' : 'INFO', text);\n };\n const read = (opts.readPath ?? (() => readShellPath(env.SHELL)))();\n if ('why' in read) {\n say('warn', `${missing.join(', ')} isn't on PATH (${env.PATH ?? ''}), and the login shell's PATH couldn't be read: ${read.why}`);\n return 'unavailable';\n }\n env.PATH = mergePath(env.PATH, read.path);\n const still = missing.filter((c) => !find(c, env));\n say(\n still.length ? 'warn' : 'info',\n still.length\n ? `${still.join(', ')} isn't on PATH, even with the login shell's (${env.PATH})`\n : `${missing.join(', ')} found with the login shell's PATH: using it (${env.PATH})`,\n );\n return 'added';\n}\n","import { agentFor, agentSettings, assistantAgent, internalAgent } from './index.js';\nimport type { AgentSettings } from './index.js';\nimport { ensureShellPath } from '../platform/shell-path.js';\nimport { debugLog } from '../platform/logger.js';\n\n/**\n * The agents' commands, found on PATH before work web or the PTY host starts any of them\n * (`core/platform/shell-path.ts` says why: the Mac app from the Dock gets the system's PATH).\n */\n\n/** The commands work starts agents with, from the registry: new sessions', the Ctrl+K assistant's, the summaries'. */\nexport function agentCommands(settings: AgentSettings = agentSettings()): string[] {\n return [...new Set([agentFor(settings), assistantAgent(settings), internalAgent(settings)].map((a) => a.launch.tool(settings).cmd))];\n}\n\n/** For `work web` and the PTY host as they start (not wd's lean server: it starts no agent). Never throws. */\nexport function ensureAgentPath(\n deps: { commands?: () => string[]; ensure?: (need: string[]) => ReturnType<typeof ensureShellPath> } = {},\n): ReturnType<typeof ensureShellPath> | 'failed' {\n try {\n return (deps.ensure ?? ensureShellPath)((deps.commands ?? agentCommands)());\n } catch (err) {\n debugLog('WARN', 'finding the agents on PATH failed:', err);\n return 'failed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