@moberg_hr/work-tree 2.17.1 → 2.18.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-PA3RHK4E.js → account-TT5TOV7Y.js} +25 -22
- package/dist/{account-PA3RHK4E.js.map → account-TT5TOV7Y.js.map} +1 -1
- package/dist/{add-repo-QI7XUFKB.js → add-repo-LM5M2TW4.js} +20 -17
- package/dist/{add-repo-QI7XUFKB.js.map → add-repo-LM5M2TW4.js.map} +1 -1
- package/dist/{answer-EAVRRXCR.js → answer-Q47UH37K.js} +12 -9
- package/dist/{answer-EAVRRXCR.js.map → answer-Q47UH37K.js.map} +1 -1
- package/dist/{attach-T7YF5P37.js → attach-JMA4XCEB.js} +20 -17
- package/dist/{attach-T7YF5P37.js.map → attach-JMA4XCEB.js.map} +1 -1
- package/dist/bin.js +3 -3
- package/dist/{block-N63GSISZ.js → block-TTMTQ5WO.js} +13 -10
- package/dist/{block-N63GSISZ.js.map → block-TTMTQ5WO.js.map} +1 -1
- package/dist/{broadcast-OD4WMWM2.js → broadcast-MQL3PHVK.js} +9 -6
- package/dist/{broadcast-OD4WMWM2.js.map → broadcast-MQL3PHVK.js.map} +1 -1
- package/dist/{catchup-OSTBIVR3.js → catchup-DKD3BGTG.js} +14 -11
- package/dist/{catchup-OSTBIVR3.js.map → catchup-DKD3BGTG.js.map} +1 -1
- package/dist/{chunk-UBGZM3TD.js → chunk-3OUUWNK2.js} +6 -6
- package/dist/{chunk-UKEI5DJS.js → chunk-4J2F6OWM.js} +2 -2
- package/dist/{chunk-2H3WHT32.js → chunk-5JRO64D4.js} +2 -2
- package/dist/{chunk-4KL62W3H.js → chunk-63RNLC25.js} +2 -2
- package/dist/{chunk-JVN3AHWH.js → chunk-7PKIZVR7.js} +5 -5
- package/dist/{chunk-KNGK73TF.js → chunk-AQKPXFC2.js} +3 -3
- package/dist/{chunk-NFST7BLF.js → chunk-ARQSFOYE.js} +3 -3
- package/dist/chunk-BR6OWWAA.js +64 -0
- package/dist/chunk-BR6OWWAA.js.map +1 -0
- package/dist/{chunk-SPCANSN2.js → chunk-C2BFHQHX.js} +4 -4
- package/dist/{chunk-DHF2USLL.js → chunk-CZWZMRQ3.js} +17 -5
- package/dist/chunk-CZWZMRQ3.js.map +1 -0
- package/dist/{chunk-ZCFKFAOT.js → chunk-D77U5ELL.js} +2 -2
- package/dist/chunk-D77U5ELL.js.map +1 -0
- package/dist/{chunk-A5OQHOEV.js → chunk-DA2KILWV.js} +2 -2
- package/dist/{chunk-63HMFHNG.js → chunk-DLV7TRON.js} +2 -2
- package/dist/{chunk-ZFFWFVER.js → chunk-E25DJVBD.js} +2 -2
- package/dist/{chunk-LD5EGGW6.js → chunk-EP7LCLHB.js} +5 -5
- package/dist/{chunk-OX4QHT4Y.js → chunk-ESEIPUMT.js} +2 -2
- package/dist/{chunk-IYXZFXO5.js → chunk-FAGTMW6W.js} +2 -2
- package/dist/{chunk-GEMTSSVY.js → chunk-FJADRDML.js} +4 -4
- package/dist/{chunk-IWMODEU4.js → chunk-GR4LV3ZS.js} +4 -4
- package/dist/{chunk-REPFZIPP.js → chunk-HGB7BITW.js} +16 -70
- package/dist/chunk-HGB7BITW.js.map +1 -0
- package/dist/{chunk-NKHTQHYM.js → chunk-HREHEBL2.js} +9 -9
- package/dist/{chunk-4MBK25I7.js → chunk-IALCEDTH.js} +13 -13
- package/dist/{chunk-ZQY52HIP.js → chunk-JEH4X76F.js} +2 -2
- package/dist/{chunk-34WI4R2U.js → chunk-JIK4FY3E.js} +3 -3
- package/dist/{chunk-P5XCHHR6.js → chunk-JPXEX3XW.js} +2 -2
- package/dist/{chunk-DOYJR2HF.js → chunk-JUGF3YE7.js} +5 -4
- package/dist/chunk-JUGF3YE7.js.map +1 -0
- package/dist/chunk-KGHWHAVF.js +24 -0
- package/dist/chunk-KGHWHAVF.js.map +1 -0
- package/dist/{chunk-CI2M7BKU.js → chunk-KQ7QLBY2.js} +3 -3
- package/dist/{chunk-2PRMDZBI.js → chunk-KX6KZYU4.js} +3 -3
- package/dist/{chunk-UVZITL47.js → chunk-LK7HJGUC.js} +1 -1
- package/dist/chunk-LK7HJGUC.js.map +1 -0
- package/dist/{chunk-XNLJDPSH.js → chunk-LVNRPAQK.js} +9 -9
- package/dist/{chunk-UC7LKU2U.js → chunk-NBLF2SNP.js} +4 -4
- package/dist/{chunk-I3RYSDAH.js → chunk-NGB2K7HX.js} +2 -2
- package/dist/{chunk-OHMLCXRW.js → chunk-O22DNTKU.js} +21 -26
- package/dist/chunk-O22DNTKU.js.map +1 -0
- package/dist/{chunk-KC3A7ZKN.js → chunk-OEQASHE3.js} +54 -54
- package/dist/{chunk-24FC64HP.js → chunk-PLTFWTIE.js} +3 -3
- package/dist/chunk-PSEVXDTS.js +104 -0
- package/dist/chunk-PSEVXDTS.js.map +1 -0
- package/dist/{chunk-MSBPZVVJ.js → chunk-QEZGXU5Q.js} +5 -5
- package/dist/{chunk-3A3HSUBD.js → chunk-QHFUCX2J.js} +2 -2
- package/dist/{chunk-XGE3OPXP.js → chunk-RNEN6NUX.js} +3 -3
- package/dist/{chunk-WK5ZIO6B.js → chunk-SFFAPGA5.js} +2 -2
- package/dist/{chunk-O3YVUM4P.js → chunk-T3KZSJHU.js} +5 -5
- package/dist/{chunk-A4KVQ6ZI.js → chunk-TI2CNJLD.js} +4 -4
- package/dist/{chunk-7WOSK73E.js → chunk-U4INTLIY.js} +5 -5
- package/dist/chunk-UKPZXS5B.js +9 -0
- package/dist/{chunk-QWU67XGR.js → chunk-V6KHER6C.js} +5 -5
- package/dist/{chunk-UR2NJS4C.js → chunk-VEERK6HO.js} +2 -2
- package/dist/{chunk-7FYYBKJ3.js → chunk-VFRJO737.js} +8 -8
- package/dist/{chunk-3L67MINA.js → chunk-VFZI4SAH.js} +2 -2
- package/dist/{chunk-4TTIEI7I.js → chunk-VRMALBZK.js} +2 -2
- package/dist/{chunk-JHCR7H4Y.js → chunk-WIYDT3PY.js} +5 -29
- package/dist/chunk-WIYDT3PY.js.map +1 -0
- package/dist/{chunk-O6GOH6QL.js → chunk-WVZG5Q4L.js} +2 -2
- package/dist/{chunk-HN4BEMHV.js → chunk-XFWO5FYK.js} +3 -3
- package/dist/{chunk-DOESL4MD.js → chunk-XPX5AAYH.js} +3 -3
- package/dist/{chunk-XGRMJHE6.js → chunk-XUO5F4JU.js} +3 -3
- package/dist/{chunk-S6V3G3J5.js → chunk-YCCZKF4F.js} +3 -3
- package/dist/chunk-YQSWVHKK.js +33 -0
- package/dist/chunk-YQSWVHKK.js.map +1 -0
- package/dist/{chunk-MQXGUZAX.js → chunk-Z4MI3HBV.js} +5 -5
- package/dist/{chunk-VCWQ4VED.js → chunk-Z5TRUCIA.js} +9 -9
- package/dist/{chunk-FXJOUAWP.js → chunk-ZKSITAVC.js} +4 -4
- package/dist/{cleanup-6JAMAF6I.js → cleanup-MW27IU2D.js} +31 -28
- package/dist/{cleanup-6JAMAF6I.js.map → cleanup-MW27IU2D.js.map} +1 -1
- package/dist/{cli-K2CH3CIU.js → cli-QVGLGPQB.js} +3 -3
- package/dist/{color-EHNTMQIE.js → color-RGMFJAHN.js} +11 -8
- package/dist/{color-EHNTMQIE.js.map → color-RGMFJAHN.js.map} +1 -1
- package/dist/{config-4VEKBBLZ.js → config-AWVOZGZR.js} +11 -8
- package/dist/{config-4VEKBBLZ.js.map → config-AWVOZGZR.js.map} +1 -1
- package/dist/{diff-OOH5HOXG.js → diff-WJKZRFRM.js} +12 -9
- package/dist/{diff-OOH5HOXG.js.map → diff-WJKZRFRM.js.map} +1 -1
- package/dist/{digest-ZNYODJ3A.js → digest-OX5NEL2K.js} +11 -8
- package/dist/{digest-ZNYODJ3A.js.map → digest-OX5NEL2K.js.map} +1 -1
- package/dist/{fork-OFRN64IT.js → fork-4AAA7GAX.js} +32 -29
- package/dist/{fork-OFRN64IT.js.map → fork-4AAA7GAX.js.map} +1 -1
- package/dist/{history-QNEYVVPI.js → history-MMA6YXFH.js} +9 -6
- package/dist/{hook-3LE6BWLO.js → hook-MOC7MYLG.js} +16 -13
- package/dist/{hook-3LE6BWLO.js.map → hook-MOC7MYLG.js.map} +1 -1
- package/dist/{hydrate-2KSEV4E2.js → hydrate-EGS47UUM.js} +9 -6
- package/dist/{hydrate-2KSEV4E2.js.map → hydrate-EGS47UUM.js.map} +1 -1
- package/dist/{init-M664MBPZ.js → init-QOFM5BTW.js} +14 -11
- package/dist/{init-M664MBPZ.js.map → init-QOFM5BTW.js.map} +1 -1
- package/dist/{install-skills-LAFRMJ7N.js → install-skills-E24KULUM.js} +9 -6
- package/dist/install-skills-bin.js +8 -5
- package/dist/install-skills-bin.js.map +1 -1
- package/dist/{keep-I4BRQQWG.js → keep-WLDMR63Z.js} +11 -8
- package/dist/{keep-I4BRQQWG.js.map → keep-WLDMR63Z.js.map} +1 -1
- package/dist/{list-NUYPCYLY.js → list-YJ6BSG2M.js} +9 -6
- package/dist/{list-NUYPCYLY.js.map → list-YJ6BSG2M.js.map} +1 -1
- package/dist/{move-WYMMOZMK.js → move-AGSZHGWY.js} +21 -18
- package/dist/{move-WYMMOZMK.js.map → move-AGSZHGWY.js.map} +1 -1
- package/dist/{note-ZRWRTFJG.js → note-GCNBL5A2.js} +11 -8
- package/dist/{note-ZRWRTFJG.js.map → note-GCNBL5A2.js.map} +1 -1
- package/dist/{overlaps-YNU6JCTT.js → overlaps-X3YDTLTV.js} +15 -12
- package/dist/{overlaps-YNU6JCTT.js.map → overlaps-X3YDTLTV.js.map} +1 -1
- package/dist/{pin-36BGIIMW.js → pin-22MYV72V.js} +11 -8
- package/dist/{pin-36BGIIMW.js.map → pin-22MYV72V.js.map} +1 -1
- package/dist/{pr-6YPNUHRI.js → pr-YRQYEWL7.js} +27 -24
- package/dist/{pr-6YPNUHRI.js.map → pr-YRQYEWL7.js.map} +1 -1
- package/dist/{prune-LINCOW7H.js → prune-7RV6GMHU.js} +29 -26
- package/dist/{prune-LINCOW7H.js.map → prune-7RV6GMHU.js.map} +1 -1
- package/dist/{pty-host-CE57F776.js → pty-host-PUVNAZ3F.js} +16 -13
- package/dist/{pty-host-CE57F776.js.map → pty-host-PUVNAZ3F.js.map} +1 -1
- package/dist/{read-MX7ZURF3.js → read-BOB63DIH.js} +11 -8
- package/dist/{read-MX7ZURF3.js.map → read-BOB63DIH.js.map} +1 -1
- package/dist/{recent-FU4Z4AFU.js → recent-S2JIDTHB.js} +16 -13
- package/dist/{recent-FU4Z4AFU.js.map → recent-S2JIDTHB.js.map} +1 -1
- package/dist/{remove-BTZAZ6ZA.js → remove-EKBQROBE.js} +30 -27
- package/dist/{remove-BTZAZ6ZA.js.map → remove-EKBQROBE.js.map} +1 -1
- package/dist/{restart-AX3FNSDF.js → restart-UM7XOGDO.js} +11 -8
- package/dist/{restart-AX3FNSDF.js.map → restart-UM7XOGDO.js.map} +1 -1
- package/dist/{resume-LR4ILRBQ.js → resume-BFE6ETTN.js} +16 -13
- package/dist/{resume-LR4ILRBQ.js.map → resume-BFE6ETTN.js.map} +1 -1
- package/dist/{review-4K2FBZES.js → review-XQG3AEMG.js} +16 -62
- package/dist/review-XQG3AEMG.js.map +1 -0
- package/dist/{run-65HDAKBN.js → run-KFICX2JE.js} +9 -6
- package/dist/{run-65HDAKBN.js.map → run-KFICX2JE.js.map} +1 -1
- package/dist/{screen-NOYYOB5G.js → screen-2B66BGKO.js} +11 -8
- package/dist/{screen-NOYYOB5G.js.map → screen-2B66BGKO.js.map} +1 -1
- package/dist/{search-YQYEF4DW.js → search-3MXCGLOL.js} +9 -6
- package/dist/{search-YQYEF4DW.js.map → search-3MXCGLOL.js.map} +1 -1
- package/dist/{section-6HLNG5GQ.js → section-QJV7ENVX.js} +11 -8
- package/dist/{section-6HLNG5GQ.js.map → section-QJV7ENVX.js.map} +1 -1
- package/dist/{send-IBCRUS7B.js → send-LAAEMPZQ.js} +13 -10
- package/dist/{send-IBCRUS7B.js.map → send-LAAEMPZQ.js.map} +1 -1
- package/dist/{sessions-IJK4DPMU.js → sessions-TWN3F43J.js} +29 -26
- package/dist/{sessions-IJK4DPMU.js.map → sessions-TWN3F43J.js.map} +1 -1
- package/dist/{show-CSGVG5BL.js → show-JFRJVS3G.js} +10 -7
- package/dist/{show-CSGVG5BL.js.map → show-JFRJVS3G.js.map} +1 -1
- package/dist/{snooze-NNQXOPNI.js → snooze-RRPHFFMD.js} +11 -8
- package/dist/{snooze-NNQXOPNI.js.map → snooze-RRPHFFMD.js.map} +1 -1
- package/dist/{start-I3CLQ2CJ.js → start-XTEZKSA3.js} +11 -8
- package/dist/{start-I3CLQ2CJ.js.map → start-XTEZKSA3.js.map} +1 -1
- package/dist/{status-XCJGTMB4.js → status-2BFFMHO2.js} +13 -10
- package/dist/{status-XCJGTMB4.js.map → status-2BFFMHO2.js.map} +1 -1
- package/dist/{statusline-NEVXTHUY.js → statusline-B6U3ANSM.js} +3 -2
- package/dist/{statusline-NEVXTHUY.js.map → statusline-B6U3ANSM.js.map} +1 -1
- package/dist/{statusline-hook-H5MM2PA2.js → statusline-hook-SYRLMSDL.js} +7 -5
- package/dist/{statusline-hook-H5MM2PA2.js.map → statusline-hook-SYRLMSDL.js.map} +1 -1
- package/dist/{stop-JVMDCXB4.js → stop-I6WWTUFP.js} +11 -8
- package/dist/{stop-JVMDCXB4.js.map → stop-I6WWTUFP.js.map} +1 -1
- package/dist/{sync-E2GXLD6K.js → sync-SB5JN2EN.js} +29 -26
- package/dist/{sync-E2GXLD6K.js.map → sync-SB5JN2EN.js.map} +1 -1
- package/dist/{time-KBS66SV5.js → time-IEFF5FEV.js} +12 -9
- package/dist/{time-KBS66SV5.js.map → time-IEFF5FEV.js.map} +1 -1
- package/dist/{timesheet-XUMTURH5.js → timesheet-RRK4ENUU.js} +14 -11
- package/dist/{timesheet-XUMTURH5.js.map → timesheet-RRK4ENUU.js.map} +1 -1
- package/dist/{tree-CZUUTSZX.js → tree-G4ATBUTH.js} +28 -25
- package/dist/{tree-CZUUTSZX.js.map → tree-G4ATBUTH.js.map} +1 -1
- package/dist/{update-7NU3M4DL.js → update-LSDD3ZDO.js} +17 -14
- package/dist/{update-7NU3M4DL.js.map → update-LSDD3ZDO.js.map} +1 -1
- package/dist/{usage-GCZV3GDA.js → usage-CTT5CMQK.js} +15 -10
- package/dist/usage-CTT5CMQK.js.map +1 -0
- package/dist/usage-ask-YJNTOGXY.js +176 -0
- package/dist/usage-ask-YJNTOGXY.js.map +1 -0
- package/dist/{version-U2QIALPO.js → version-6UJN2CCE.js} +3 -2
- package/dist/{version-U2QIALPO.js.map → version-6UJN2CCE.js.map} +1 -1
- package/dist/{wait-OHES2ZLG.js → wait-2L67BLEO.js} +13 -10
- package/dist/{wait-OHES2ZLG.js.map → wait-2L67BLEO.js.map} +1 -1
- package/dist/wd-bin.js +2 -2
- package/dist/web/assets/{PtyView-CjtGMoNT.js → PtyView-DhDNPvL9.js} +2 -2
- package/dist/web/assets/{PtyView-CjtGMoNT.js.map → PtyView-DhDNPvL9.js.map} +1 -1
- package/dist/web/assets/{index-CBymxw_N.css → index-B1gUTG37.css} +1 -1
- package/dist/web/assets/index-CfBb7suR.js +126 -0
- package/dist/web/assets/index-CfBb7suR.js.map +1 -0
- package/dist/web/index.html +2 -2
- package/dist/{web-OQLZHYOM.js → web-MUO46QAX.js} +178 -159
- package/dist/web-MUO46QAX.js.map +1 -0
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
- package/dist/chunk-DHF2USLL.js.map +0 -1
- package/dist/chunk-DOYJR2HF.js.map +0 -1
- package/dist/chunk-E22Y75WX.js +0 -9
- package/dist/chunk-JHCR7H4Y.js.map +0 -1
- package/dist/chunk-KL7RY6UG.js +0 -36
- package/dist/chunk-KL7RY6UG.js.map +0 -1
- package/dist/chunk-OHMLCXRW.js.map +0 -1
- package/dist/chunk-REPFZIPP.js.map +0 -1
- package/dist/chunk-UVZITL47.js.map +0 -1
- package/dist/chunk-ZCFKFAOT.js.map +0 -1
- package/dist/review-4K2FBZES.js.map +0 -1
- package/dist/usage-GCZV3GDA.js.map +0 -1
- package/dist/web/assets/index-BIugalNC.js +0 -126
- package/dist/web/assets/index-BIugalNC.js.map +0 -1
- package/dist/web-OQLZHYOM.js.map +0 -1
- /package/dist/{chunk-UBGZM3TD.js.map → chunk-3OUUWNK2.js.map} +0 -0
- /package/dist/{chunk-UKEI5DJS.js.map → chunk-4J2F6OWM.js.map} +0 -0
- /package/dist/{chunk-2H3WHT32.js.map → chunk-5JRO64D4.js.map} +0 -0
- /package/dist/{chunk-4KL62W3H.js.map → chunk-63RNLC25.js.map} +0 -0
- /package/dist/{chunk-JVN3AHWH.js.map → chunk-7PKIZVR7.js.map} +0 -0
- /package/dist/{chunk-KNGK73TF.js.map → chunk-AQKPXFC2.js.map} +0 -0
- /package/dist/{chunk-NFST7BLF.js.map → chunk-ARQSFOYE.js.map} +0 -0
- /package/dist/{chunk-SPCANSN2.js.map → chunk-C2BFHQHX.js.map} +0 -0
- /package/dist/{chunk-A5OQHOEV.js.map → chunk-DA2KILWV.js.map} +0 -0
- /package/dist/{chunk-63HMFHNG.js.map → chunk-DLV7TRON.js.map} +0 -0
- /package/dist/{chunk-ZFFWFVER.js.map → chunk-E25DJVBD.js.map} +0 -0
- /package/dist/{chunk-LD5EGGW6.js.map → chunk-EP7LCLHB.js.map} +0 -0
- /package/dist/{chunk-OX4QHT4Y.js.map → chunk-ESEIPUMT.js.map} +0 -0
- /package/dist/{chunk-IYXZFXO5.js.map → chunk-FAGTMW6W.js.map} +0 -0
- /package/dist/{chunk-GEMTSSVY.js.map → chunk-FJADRDML.js.map} +0 -0
- /package/dist/{chunk-IWMODEU4.js.map → chunk-GR4LV3ZS.js.map} +0 -0
- /package/dist/{chunk-NKHTQHYM.js.map → chunk-HREHEBL2.js.map} +0 -0
- /package/dist/{chunk-4MBK25I7.js.map → chunk-IALCEDTH.js.map} +0 -0
- /package/dist/{chunk-ZQY52HIP.js.map → chunk-JEH4X76F.js.map} +0 -0
- /package/dist/{chunk-34WI4R2U.js.map → chunk-JIK4FY3E.js.map} +0 -0
- /package/dist/{chunk-P5XCHHR6.js.map → chunk-JPXEX3XW.js.map} +0 -0
- /package/dist/{chunk-CI2M7BKU.js.map → chunk-KQ7QLBY2.js.map} +0 -0
- /package/dist/{chunk-2PRMDZBI.js.map → chunk-KX6KZYU4.js.map} +0 -0
- /package/dist/{chunk-XNLJDPSH.js.map → chunk-LVNRPAQK.js.map} +0 -0
- /package/dist/{chunk-UC7LKU2U.js.map → chunk-NBLF2SNP.js.map} +0 -0
- /package/dist/{chunk-I3RYSDAH.js.map → chunk-NGB2K7HX.js.map} +0 -0
- /package/dist/{chunk-KC3A7ZKN.js.map → chunk-OEQASHE3.js.map} +0 -0
- /package/dist/{chunk-24FC64HP.js.map → chunk-PLTFWTIE.js.map} +0 -0
- /package/dist/{chunk-MSBPZVVJ.js.map → chunk-QEZGXU5Q.js.map} +0 -0
- /package/dist/{chunk-3A3HSUBD.js.map → chunk-QHFUCX2J.js.map} +0 -0
- /package/dist/{chunk-XGE3OPXP.js.map → chunk-RNEN6NUX.js.map} +0 -0
- /package/dist/{chunk-WK5ZIO6B.js.map → chunk-SFFAPGA5.js.map} +0 -0
- /package/dist/{chunk-O3YVUM4P.js.map → chunk-T3KZSJHU.js.map} +0 -0
- /package/dist/{chunk-A4KVQ6ZI.js.map → chunk-TI2CNJLD.js.map} +0 -0
- /package/dist/{chunk-7WOSK73E.js.map → chunk-U4INTLIY.js.map} +0 -0
- /package/dist/{chunk-E22Y75WX.js.map → chunk-UKPZXS5B.js.map} +0 -0
- /package/dist/{chunk-QWU67XGR.js.map → chunk-V6KHER6C.js.map} +0 -0
- /package/dist/{chunk-UR2NJS4C.js.map → chunk-VEERK6HO.js.map} +0 -0
- /package/dist/{chunk-7FYYBKJ3.js.map → chunk-VFRJO737.js.map} +0 -0
- /package/dist/{chunk-3L67MINA.js.map → chunk-VFZI4SAH.js.map} +0 -0
- /package/dist/{chunk-4TTIEI7I.js.map → chunk-VRMALBZK.js.map} +0 -0
- /package/dist/{chunk-O6GOH6QL.js.map → chunk-WVZG5Q4L.js.map} +0 -0
- /package/dist/{chunk-HN4BEMHV.js.map → chunk-XFWO5FYK.js.map} +0 -0
- /package/dist/{chunk-DOESL4MD.js.map → chunk-XPX5AAYH.js.map} +0 -0
- /package/dist/{chunk-XGRMJHE6.js.map → chunk-XUO5F4JU.js.map} +0 -0
- /package/dist/{chunk-S6V3G3J5.js.map → chunk-YCCZKF4F.js.map} +0 -0
- /package/dist/{chunk-MQXGUZAX.js.map → chunk-Z4MI3HBV.js.map} +0 -0
- /package/dist/{chunk-VCWQ4VED.js.map → chunk-Z5TRUCIA.js.map} +0 -0
- /package/dist/{chunk-FXJOUAWP.js.map → chunk-ZKSITAVC.js.map} +0 -0
- /package/dist/{cli-K2CH3CIU.js.map → cli-QVGLGPQB.js.map} +0 -0
- /package/dist/{history-QNEYVVPI.js.map → history-MMA6YXFH.js.map} +0 -0
- /package/dist/{install-skills-LAFRMJ7N.js.map → install-skills-E24KULUM.js.map} +0 -0
|
@@ -5,17 +5,17 @@ import {
|
|
|
5
5
|
blockRefFrom,
|
|
6
6
|
readBlock,
|
|
7
7
|
removeBlocker
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-XUO5F4JU.js";
|
|
9
9
|
import {
|
|
10
10
|
sessionFromArgs,
|
|
11
11
|
sessionPositionals
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-ARQSFOYE.js";
|
|
13
13
|
import "./chunk-6AQRYLOB.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-XPX5AAYH.js";
|
|
15
15
|
import "./chunk-ZSHWP2VS.js";
|
|
16
16
|
import "./chunk-CNZV3UCM.js";
|
|
17
17
|
import "./chunk-HUXS3VAI.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-JPXEX3XW.js";
|
|
19
19
|
import "./chunk-FGPXMAYU.js";
|
|
20
20
|
import "./chunk-GNIYYXQX.js";
|
|
21
21
|
import "./chunk-T5GJVUSL.js";
|
|
@@ -24,18 +24,21 @@ import "./chunk-4CXUVBOD.js";
|
|
|
24
24
|
import {
|
|
25
25
|
findSession,
|
|
26
26
|
loadHistory
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-D77U5ELL.js";
|
|
28
28
|
import "./chunk-NEJVK5CF.js";
|
|
29
29
|
import {
|
|
30
30
|
sessionIdFor
|
|
31
31
|
} from "./chunk-ALBTIOP3.js";
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-O22DNTKU.js";
|
|
33
|
+
import "./chunk-KGHWHAVF.js";
|
|
34
|
+
import "./chunk-WIYDT3PY.js";
|
|
35
|
+
import "./chunk-YQSWVHKK.js";
|
|
36
|
+
import "./chunk-JUGF3YE7.js";
|
|
35
37
|
import "./chunk-HK6AZQ5Z.js";
|
|
36
38
|
import "./chunk-7334DEPX.js";
|
|
37
39
|
import "./chunk-MWIPHUAE.js";
|
|
38
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-HGB7BITW.js";
|
|
41
|
+
import "./chunk-BR6OWWAA.js";
|
|
39
42
|
import "./chunk-VHENFC2S.js";
|
|
40
43
|
import "./chunk-QOSAWNOU.js";
|
|
41
44
|
import "./chunk-D2J3AD6L.js";
|
|
@@ -96,4 +99,4 @@ var blockCommand = {
|
|
|
96
99
|
export {
|
|
97
100
|
blockCommand
|
|
98
101
|
};
|
|
99
|
-
//# sourceMappingURL=block-
|
|
102
|
+
//# sourceMappingURL=block-TTMTQ5WO.js.map
|
|
@@ -1 +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":"
|
|
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,WAAW;AAaX,IAAM,eAA8B;AAAA,EACzC,SAAS;AAAA,EACT,UAAU;AAAA,EACV,SAAS,CAAC,UACR,mBAAmB,KAAK,EACrB,OAAO,MAAM,EAAE,MAAM,UAAU,UAAU,+CAA+C,CAAC,EACzF,OAAO,aAAa,EAAE,MAAM,UAAU,UAAU,wCAAwC,CAAC,EACzF,OAAO,MAAM,EAAE,MAAM,UAAU,UAAU,iCAAiC,CAAC,EAC3E,OAAO,OAAO,EAAE,MAAM,WAAW,UAAU,8DAA8D,CAAC;AAAA,EAC/G,SAAS,CAAC,SAAS;AACjB,UAAM,IAAI,gBAAgB,IAAI;AAC9B,QAAI,CAAC,EAAG;AACR,UAAM,KAAK,aAAa,CAAC;AACzB,UAAM,OAAO,GAAG,EAAE,MAAM,SAAM,EAAE,MAAM;AACtC,QAAI,MAAM;AACV,QAAI,OAAO,KAAK,OAAO,UAAU;AAC/B,YAAM,QAAQ,OAAO,KAAK,WAAW,MAAM,WAAW,YAAY,YAAY,GAAG,KAAK,IAAI,KAAK,WAAW,CAAC,IAAI;AAC/G,UAAI,CAAC,OAA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","names":[]}
|
|
@@ -8,18 +8,21 @@ import {
|
|
|
8
8
|
import "./chunk-HUXS3VAI.js";
|
|
9
9
|
import {
|
|
10
10
|
loadHistory
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-D77U5ELL.js";
|
|
12
12
|
import "./chunk-NEJVK5CF.js";
|
|
13
13
|
import {
|
|
14
14
|
sessionIdFor
|
|
15
15
|
} from "./chunk-ALBTIOP3.js";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-O22DNTKU.js";
|
|
17
|
+
import "./chunk-KGHWHAVF.js";
|
|
18
|
+
import "./chunk-WIYDT3PY.js";
|
|
19
|
+
import "./chunk-YQSWVHKK.js";
|
|
20
|
+
import "./chunk-JUGF3YE7.js";
|
|
19
21
|
import "./chunk-HK6AZQ5Z.js";
|
|
20
22
|
import "./chunk-7334DEPX.js";
|
|
21
23
|
import "./chunk-MWIPHUAE.js";
|
|
22
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-HGB7BITW.js";
|
|
25
|
+
import "./chunk-BR6OWWAA.js";
|
|
23
26
|
import "./chunk-VHENFC2S.js";
|
|
24
27
|
import "./chunk-QOSAWNOU.js";
|
|
25
28
|
import "./chunk-D2J3AD6L.js";
|
|
@@ -110,4 +113,4 @@ var broadcastCommand = {
|
|
|
110
113
|
export {
|
|
111
114
|
broadcastCommand
|
|
112
115
|
};
|
|
113
|
-
//# sourceMappingURL=broadcast-
|
|
116
|
+
//# sourceMappingURL=broadcast-MQL3PHVK.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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IAAI,MAAM,KAAK,oBAAoB,OAAO,MAAM,WAAW,OAAO,WAAW,IAAI,KAAK,GAAG,GAAG,CAAC;AACrG,eAAW,KAAK,QAAQ;AACtB,cAAQ,IAAI,KAAK,MAAM,KAAK,IAAI,EAAE,QAAQ,MAAM,IAAI,EAAE,QAAQ,MAAM,GAAG,CAAC,IAAI,MAAM,KAAK,EAAE,SAAS,CAAC,EAAE;AAAA,IACvG;AACA,YAAQ,IAAI,EAAE;AACd,YAAQ,IAAI,MAAM,KAAK,0FAA0F,CAAC;AAAA,EACpH;AACF;","names":[]}
|
|
@@ -3,31 +3,34 @@ import {
|
|
|
3
3
|
askCatchUp,
|
|
4
4
|
catchUp,
|
|
5
5
|
catchUpFacts
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-NBLF2SNP.js";
|
|
7
|
+
import "./chunk-V6KHER6C.js";
|
|
8
|
+
import "./chunk-5JRO64D4.js";
|
|
9
9
|
import {
|
|
10
10
|
sessionFromArgs,
|
|
11
11
|
sessionPositionals
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-ARQSFOYE.js";
|
|
13
13
|
import "./chunk-6AQRYLOB.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-XPX5AAYH.js";
|
|
15
15
|
import "./chunk-ZSHWP2VS.js";
|
|
16
16
|
import "./chunk-CNZV3UCM.js";
|
|
17
17
|
import "./chunk-HUXS3VAI.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-D77U5ELL.js";
|
|
19
19
|
import "./chunk-NEJVK5CF.js";
|
|
20
20
|
import {
|
|
21
21
|
sessionIdFor
|
|
22
22
|
} from "./chunk-ALBTIOP3.js";
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-O22DNTKU.js";
|
|
24
|
+
import "./chunk-KGHWHAVF.js";
|
|
25
|
+
import "./chunk-WIYDT3PY.js";
|
|
26
|
+
import "./chunk-YQSWVHKK.js";
|
|
25
27
|
import "./chunk-JYWX2N5W.js";
|
|
26
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-JUGF3YE7.js";
|
|
27
29
|
import "./chunk-HK6AZQ5Z.js";
|
|
28
30
|
import "./chunk-7334DEPX.js";
|
|
29
31
|
import "./chunk-MWIPHUAE.js";
|
|
30
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-HGB7BITW.js";
|
|
33
|
+
import "./chunk-BR6OWWAA.js";
|
|
31
34
|
import "./chunk-VHENFC2S.js";
|
|
32
35
|
import "./chunk-QOSAWNOU.js";
|
|
33
36
|
import "./chunk-D2J3AD6L.js";
|
|
@@ -57,4 +60,4 @@ var catchupCommand = {
|
|
|
57
60
|
export {
|
|
58
61
|
catchupCommand
|
|
59
62
|
};
|
|
60
|
-
//# sourceMappingURL=catchup-
|
|
63
|
+
//# sourceMappingURL=catchup-DKD3BGTG.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":[]}
|
|
@@ -4,24 +4,24 @@ import {
|
|
|
4
4
|
} from "./chunk-FZHFD2AY.js";
|
|
5
5
|
import {
|
|
6
6
|
agentsBySession
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-VEERK6HO.js";
|
|
8
8
|
import {
|
|
9
9
|
findSession as findSession2
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-WVZG5Q4L.js";
|
|
11
11
|
import {
|
|
12
12
|
dbPtySessions
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-4J2F6OWM.js";
|
|
14
14
|
import {
|
|
15
15
|
clearLaunchedUnsafe,
|
|
16
16
|
findSession,
|
|
17
17
|
loadHistory
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-D77U5ELL.js";
|
|
19
19
|
import {
|
|
20
20
|
sessionIdFor
|
|
21
21
|
} from "./chunk-ALBTIOP3.js";
|
|
22
22
|
import {
|
|
23
23
|
liveAgents
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-O22DNTKU.js";
|
|
25
25
|
|
|
26
26
|
// src/core/sessions/legacy-unsafe-io.ts
|
|
27
27
|
function agentsOf(id, io) {
|
|
@@ -47,4 +47,4 @@ export {
|
|
|
47
47
|
legacyUnsafeCheck,
|
|
48
48
|
clearLaunchedUnsafeWhenIdle
|
|
49
49
|
};
|
|
50
|
-
//# sourceMappingURL=chunk-
|
|
50
|
+
//# sourceMappingURL=chunk-3OUUWNK2.js.map
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
isPersistedPty,
|
|
4
4
|
ptySessionsPath
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-DLV7TRON.js";
|
|
6
6
|
import {
|
|
7
7
|
json,
|
|
8
8
|
tx,
|
|
@@ -73,4 +73,4 @@ export {
|
|
|
73
73
|
adoptLegacyRestoreList,
|
|
74
74
|
forgetPersistedSession
|
|
75
75
|
};
|
|
76
|
-
//# sourceMappingURL=chunk-
|
|
76
|
+
//# sourceMappingURL=chunk-4J2F6OWM.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
writeTempTree
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-D77U5ELL.js";
|
|
5
5
|
import {
|
|
6
6
|
git
|
|
7
7
|
} from "./chunk-JYWX2N5W.js";
|
|
@@ -534,4 +534,4 @@ export {
|
|
|
534
534
|
computeDiff,
|
|
535
535
|
computeRangeDiff
|
|
536
536
|
};
|
|
537
|
-
//# sourceMappingURL=chunk-
|
|
537
|
+
//# sourceMappingURL=chunk-5JRO64D4.js.map
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
owedToYou,
|
|
4
4
|
stageWaiting
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-D77U5ELL.js";
|
|
6
6
|
|
|
7
7
|
// src/core/sessions/session-view.ts
|
|
8
8
|
var RECENT_MS = 24 * 36e5;
|
|
@@ -77,4 +77,4 @@ export {
|
|
|
77
77
|
OWED_LONG,
|
|
78
78
|
waitingOnOthers
|
|
79
79
|
};
|
|
80
|
-
//# sourceMappingURL=chunk-
|
|
80
|
+
//# sourceMappingURL=chunk-63RNLC25.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
sessionWorkTime
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-PLTFWTIE.js";
|
|
5
5
|
import {
|
|
6
6
|
runInternal
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-V6KHER6C.js";
|
|
8
8
|
import {
|
|
9
9
|
DEFAULT_CATCH_UP_DAYS,
|
|
10
10
|
MAX_RANGE_DAYS,
|
|
@@ -22,11 +22,11 @@ import {
|
|
|
22
22
|
} from "./chunk-56D4WJ2S.js";
|
|
23
23
|
import {
|
|
24
24
|
knownHosts
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-JPXEX3XW.js";
|
|
26
26
|
import {
|
|
27
27
|
loadHistory,
|
|
28
28
|
runGitAsync
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-D77U5ELL.js";
|
|
30
30
|
import {
|
|
31
31
|
sessionIdFor
|
|
32
32
|
} from "./chunk-ALBTIOP3.js";
|
|
@@ -744,4 +744,4 @@ export {
|
|
|
744
744
|
finishDeviceLogin,
|
|
745
745
|
defaultTimeDeps
|
|
746
746
|
};
|
|
747
|
-
//# sourceMappingURL=chunk-
|
|
747
|
+
//# sourceMappingURL=chunk-7PKIZVR7.js.map
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
import {
|
|
12
12
|
hostForOrigin,
|
|
13
13
|
hostOfPrUrl
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-JPXEX3XW.js";
|
|
15
15
|
import {
|
|
16
16
|
originUrl,
|
|
17
17
|
readGitConfig
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
DEFAULT_HOST,
|
|
24
24
|
commandsFor,
|
|
25
25
|
parsePrLink
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-D77U5ELL.js";
|
|
27
27
|
|
|
28
28
|
// src/core/archive/restore-leftovers.ts
|
|
29
29
|
function leftoversOf(paths) {
|
|
@@ -155,4 +155,4 @@ export {
|
|
|
155
155
|
workOnPrPrompt,
|
|
156
156
|
resolvePrToStart
|
|
157
157
|
};
|
|
158
|
-
//# sourceMappingURL=chunk-
|
|
158
|
+
//# sourceMappingURL=chunk-AQKPXFC2.js.map
|
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
} from "./chunk-6AQRYLOB.js";
|
|
5
5
|
import {
|
|
6
6
|
findSessionForCwd
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-XPX5AAYH.js";
|
|
8
8
|
import {
|
|
9
9
|
findSession,
|
|
10
10
|
loadHistory
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-D77U5ELL.js";
|
|
12
12
|
import {
|
|
13
13
|
loadConfig
|
|
14
14
|
} from "./chunk-MWIPHUAE.js";
|
|
@@ -38,4 +38,4 @@ export {
|
|
|
38
38
|
sessionPositionals,
|
|
39
39
|
sessionFromArgs
|
|
40
40
|
};
|
|
41
|
-
//# sourceMappingURL=chunk-
|
|
41
|
+
//# sourceMappingURL=chunk-ARQSFOYE.js.map
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
// src/core/agents/claude/rate-limits.ts
|
|
4
|
+
import os from "os";
|
|
5
|
+
import path from "path";
|
|
6
|
+
import { createHash } from "crypto";
|
|
7
|
+
var isRecord = (v) => typeof v === "object" && v !== null && !Array.isArray(v);
|
|
8
|
+
var clampPercent = (n) => Math.round(Math.min(100, Math.max(0, n)) * 10) / 10;
|
|
9
|
+
function resetIso(v) {
|
|
10
|
+
let ms;
|
|
11
|
+
if (typeof v === "number" && Number.isFinite(v)) ms = v < 1e12 ? v * 1e3 : v;
|
|
12
|
+
else if (typeof v === "string" && v.trim() !== "") ms = Date.parse(v);
|
|
13
|
+
else return null;
|
|
14
|
+
return Number.isFinite(ms) ? new Date(ms).toISOString() : null;
|
|
15
|
+
}
|
|
16
|
+
var capitalise = (s) => s.charAt(0).toUpperCase() + s.slice(1);
|
|
17
|
+
function labelOf(key) {
|
|
18
|
+
if (key === "five_hour") return "5-hour limit";
|
|
19
|
+
if (key === "seven_day") return "Weekly limit";
|
|
20
|
+
const named = /^seven_day_(.+)$/.exec(key);
|
|
21
|
+
if (named) return `Weekly ${capitalise(named[1].replace(/_/g, " "))} limit`;
|
|
22
|
+
const span = /^(\d+)_(hour|day)$/.exec(key);
|
|
23
|
+
if (span) return `${span[1]}-${span[2]} limit`;
|
|
24
|
+
return `${capitalise(key.replace(/_/g, " "))} limit`;
|
|
25
|
+
}
|
|
26
|
+
var rank = (key) => key === "five_hour" ? 0 : key === "seven_day" ? 1 : 2;
|
|
27
|
+
function parseClaudeRateLimits(raw) {
|
|
28
|
+
if (!isRecord(raw)) return [];
|
|
29
|
+
const windows = [];
|
|
30
|
+
const keys = Object.keys(raw).filter((k) => k !== "spend_limit").sort((a, b) => rank(a) - rank(b) || a.localeCompare(b));
|
|
31
|
+
for (const key of keys) {
|
|
32
|
+
const w = raw[key];
|
|
33
|
+
if (!isRecord(w) || typeof w.used_percentage !== "number" || !Number.isFinite(w.used_percentage)) continue;
|
|
34
|
+
windows.push({ id: key, label: labelOf(key), usedPercent: clampPercent(w.used_percentage), resetsAt: resetIso(w.resets_at) });
|
|
35
|
+
}
|
|
36
|
+
const spend = raw.spend_limit;
|
|
37
|
+
if (isRecord(spend)) {
|
|
38
|
+
const { used_percentage: pct, used_usd: used, limit_usd: limit } = spend;
|
|
39
|
+
let percent = null;
|
|
40
|
+
if (typeof pct === "number" && Number.isFinite(pct)) percent = pct;
|
|
41
|
+
else if (typeof used === "number" && typeof limit === "number" && Number.isFinite(used) && Number.isFinite(limit) && limit > 0)
|
|
42
|
+
percent = used / limit * 100;
|
|
43
|
+
if (percent !== null) {
|
|
44
|
+
windows.push({ id: "spend_limit", label: "Spend limit", usedPercent: clampPercent(percent), resetsAt: resetIso(spend.resets_at) });
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
return windows;
|
|
48
|
+
}
|
|
49
|
+
function accountOf(configDir) {
|
|
50
|
+
if (!configDir) return "default";
|
|
51
|
+
const norm = (p) => process.platform === "win32" ? path.resolve(p).toLowerCase() : path.resolve(p);
|
|
52
|
+
const resolved = norm(configDir);
|
|
53
|
+
if (resolved === norm(path.join(os.homedir(), ".claude"))) return "default";
|
|
54
|
+
const hash = createHash("sha1").update(resolved).digest("hex");
|
|
55
|
+
return `cfg-${hash.slice(0, 8)}`;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export {
|
|
59
|
+
clampPercent,
|
|
60
|
+
labelOf,
|
|
61
|
+
parseClaudeRateLimits,
|
|
62
|
+
accountOf
|
|
63
|
+
};
|
|
64
|
+
//# sourceMappingURL=chunk-BR6OWWAA.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/core/agents/claude/rate-limits.ts"],"sourcesContent":["import os from 'node:os';\nimport path from 'node:path';\nimport { createHash } from 'node:crypto';\nimport type { UsageWindow } from '../../usage/usage.js';\n\n// What Claude Code's status line says about its plan limits, and whose they are. Light on purpose: the status-line hook imports it on every refresh.\n\nconst isRecord = (v: unknown): v is Record<string, unknown> => typeof v === 'object' && v !== null && !Array.isArray(v);\n\nexport const clampPercent = (n: number) => Math.round(Math.min(100, Math.max(0, n)) * 10) / 10;\n\n/** Epoch seconds below 1e12, milliseconds above; a string is parsed as a date. */\nfunction resetIso(v: unknown): string | null {\n let ms: number;\n if (typeof v === 'number' && Number.isFinite(v)) ms = v < 1e12 ? v * 1000 : v;\n else if (typeof v === 'string' && v.trim() !== '') ms = Date.parse(v);\n else return null;\n return Number.isFinite(ms) ? new Date(ms).toISOString() : null;\n}\n\nconst capitalise = (s: string) => s.charAt(0).toUpperCase() + s.slice(1);\n\nexport function labelOf(key: string): string {\n if (key === 'five_hour') return '5-hour limit';\n if (key === 'seven_day') return 'Weekly limit';\n const named = /^seven_day_(.+)$/.exec(key);\n if (named) return `Weekly ${capitalise(named[1]!.replace(/_/g, ' '))} limit`;\n const span = /^(\\d+)_(hour|day)$/.exec(key);\n if (span) return `${span[1]}-${span[2]} limit`;\n return `${capitalise(key.replace(/_/g, ' '))} limit`;\n}\n\nconst rank = (key: string) => (key === 'five_hour' ? 0 : key === 'seven_day' ? 1 : 2);\n\n/** Claude Code's status-line `rate_limits`; whatever doesn't fit is skipped. */\nexport function parseClaudeRateLimits(raw: unknown): UsageWindow[] {\n if (!isRecord(raw)) return [];\n const windows: UsageWindow[] = [];\n const keys = Object.keys(raw)\n .filter((k) => k !== 'spend_limit')\n .sort((a, b) => rank(a) - rank(b) || a.localeCompare(b));\n for (const key of keys) {\n const w = raw[key];\n if (!isRecord(w) || typeof w.used_percentage !== 'number' || !Number.isFinite(w.used_percentage)) continue;\n windows.push({ id: key, label: labelOf(key), usedPercent: clampPercent(w.used_percentage), resetsAt: resetIso(w.resets_at) });\n }\n const spend = raw.spend_limit;\n if (isRecord(spend)) {\n const { used_percentage: pct, used_usd: used, limit_usd: limit } = spend;\n let percent: number | null = null;\n if (typeof pct === 'number' && Number.isFinite(pct)) percent = pct;\n else if (typeof used === 'number' && typeof limit === 'number' && Number.isFinite(used) && Number.isFinite(limit) && limit > 0)\n percent = (used / limit) * 100;\n if (percent !== null) {\n windows.push({ id: 'spend_limit', label: 'Spend limit', usedPercent: clampPercent(percent), resetsAt: resetIso(spend.resets_at) });\n }\n }\n return windows;\n}\n\n/** The account a Claude runs as: `default` for its normal config folder (~/.claude), else a short stable name for its CLAUDE_CONFIG_DIR. */\nexport function accountOf(configDir: string | undefined): string {\n if (!configDir) return 'default';\n const norm = (p: string) => (process.platform === 'win32' ? path.resolve(p).toLowerCase() : path.resolve(p));\n const resolved = norm(configDir);\n // CLAUDE_CONFIG_DIR set to the folder Claude uses anyway is the same account.\n if (resolved === norm(path.join(os.homedir(), '.claude'))) return 'default';\n const hash = createHash('sha1').update(resolved).digest('hex');\n return `cfg-${hash.slice(0, 8)}`;\n}\n"],"mappings":";;;AAAA,OAAO,QAAQ;AACf,OAAO,UAAU;AACjB,SAAS,kBAAkB;AAK3B,IAAM,WAAW,CAAC,MAA6C,OAAO,MAAM,YAAY,MAAM,QAAQ,CAAC,MAAM,QAAQ,CAAC;AAE/G,IAAM,eAAe,CAAC,MAAc,KAAK,MAAM,KAAK,IAAI,KAAK,KAAK,IAAI,GAAG,CAAC,CAAC,IAAI,EAAE,IAAI;AAG5F,SAAS,SAAS,GA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
|
|
18
18
|
import {
|
|
19
19
|
isBuildOutputPath
|
|
20
20
|
} from "./chunk-T5GJVUSL.js";
|
|
@@ -35,14 +35,14 @@ import {
|
|
|
35
35
|
upsertSession,
|
|
36
36
|
upsertSessionWithPort,
|
|
37
37
|
writeArchiveRecord
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-D77U5ELL.js";
|
|
39
39
|
import {
|
|
40
40
|
sessionIdFor
|
|
41
41
|
} from "./chunk-ALBTIOP3.js";
|
|
42
42
|
import {
|
|
43
43
|
agentFor,
|
|
44
44
|
bestEffort
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-O22DNTKU.js";
|
|
46
46
|
import {
|
|
47
47
|
resolveProjectTarget
|
|
48
48
|
} from "./chunk-IPHADNF5.js";
|
|
@@ -1102,4 +1102,4 @@ export {
|
|
|
1102
1102
|
teardownWorktree,
|
|
1103
1103
|
openBaseCheckout
|
|
1104
1104
|
};
|
|
1105
|
-
//# sourceMappingURL=chunk-
|
|
1105
|
+
//# sourceMappingURL=chunk-C2BFHQHX.js.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
sessionTokens
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-PLTFWTIE.js";
|
|
5
5
|
import {
|
|
6
6
|
agedWindow
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-LK7HJGUC.js";
|
|
8
8
|
import {
|
|
9
9
|
lastConversationWriteMs,
|
|
10
10
|
loadHistory
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-D77U5ELL.js";
|
|
12
12
|
import {
|
|
13
13
|
dayKey
|
|
14
14
|
} from "./chunk-NEJVK5CF.js";
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
import {
|
|
19
19
|
knownAgents,
|
|
20
20
|
logSwallowed
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-O22DNTKU.js";
|
|
22
22
|
|
|
23
23
|
// src/core/usage/usage-source.ts
|
|
24
24
|
var WEEK_DAYS = 7;
|
|
@@ -87,6 +87,17 @@ async function buildUsage(deps, now = Date.now()) {
|
|
|
87
87
|
at: new Date(now).toISOString()
|
|
88
88
|
};
|
|
89
89
|
}
|
|
90
|
+
async function refreshUsage(agents) {
|
|
91
|
+
await Promise.all(
|
|
92
|
+
agents.map(async (a) => {
|
|
93
|
+
try {
|
|
94
|
+
await a.usage?.refresh?.();
|
|
95
|
+
} catch (e) {
|
|
96
|
+
logSwallowed(`usage: refresh of ${a.id}`, e);
|
|
97
|
+
}
|
|
98
|
+
})
|
|
99
|
+
);
|
|
100
|
+
}
|
|
90
101
|
function usageSessions(all, lastWriteMs, now) {
|
|
91
102
|
return all.filter((s) => !s.archivedAt && lastWriteMs(s) >= now - WEEK_DAYS * 24 * 36e5);
|
|
92
103
|
}
|
|
@@ -128,8 +139,9 @@ async function restoreAgentUsage(agents) {
|
|
|
128
139
|
|
|
129
140
|
export {
|
|
130
141
|
buildUsage,
|
|
142
|
+
refreshUsage,
|
|
131
143
|
realUsageDeps,
|
|
132
144
|
setupAgentUsage,
|
|
133
145
|
restoreAgentUsage
|
|
134
146
|
};
|
|
135
|
-
//# sourceMappingURL=chunk-
|
|
147
|
+
//# sourceMappingURL=chunk-CZWZMRQ3.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/core/usage/usage-source.ts","../src/core/usage/usage-setup.ts"],"sourcesContent":["import { knownAgents } from '../agents/index.js';\nimport { sessionTokens } from '../conversations/work-time-source.js';\nimport { dayKey } from '../conversations/work-time-view.js';\nimport { loadHistory } from '../sessions/history.js';\nimport { sessionIdFor } from '../sessions/session-id.js';\nimport { logSwallowed } from '../platform/best-effort.js';\nimport { lastConversationWriteMs } from '../sessions/session-activity.js';\nimport type { WorktreeSession } from '../sessions/session-types.js';\nimport type { TokenTotals, UsageWire } from '../api-types.js';\nimport type { AgentUsageSource } from '../agents/types.js';\nimport { agedWindow } from './usage.js';\n\n/**\n * What GET /api/usage and `work usage` answer: each agent's plan limits as\n * the last reading says (aged to now) and the tokens its sessions' transcripts\n * show, today and over the last 7 days. The I/O comes in through `deps`.\n */\n\nconst WEEK_DAYS = 7;\nconst TOP_SESSIONS = 5;\n\nexport interface UsageDeps {\n /** The agents that may have a usage part. */\n agents(): Array<{ id: string; name: string; usage?: Pick<AgentUsageSource, 'read'> }>;\n /** Sessions worth reading: live ones its agent wrote in lately. */\n sessions(now: number): WorktreeSession[];\n tokens(s: WorktreeSession, sinceDay: string): Promise<Record<string, Record<string, TokenTotals>>>;\n label(s: WorktreeSession): string;\n}\n\nconst zero = (): TokenTotals => ({ input: 0, cached: 0, output: 0 });\n\nfunction add(into: TokenTotals, t: TokenTotals): void {\n into.input += t.input;\n into.cached += t.cached;\n into.output += t.output;\n}\n\n/** The `week` days begin at: today and the 6 local days before it (by the calendar, not 24 h steps). */\nexport function weekStartDay(now: number): string {\n const d = new Date(now);\n d.setDate(d.getDate() - (WEEK_DAYS - 1));\n return dayKey(d.getTime());\n}\n\nexport async function buildUsage(deps: UsageDeps, now = Date.now()): Promise<UsageWire> {\n const agents: UsageWire['agents'] = [];\n for (const a of deps.agents()) {\n if (!a.usage) continue;\n agents.push({\n agent: a.id,\n name: a.name,\n accounts: a.usage.read().map((acc) => ({ ...acc, windows: acc.windows.map((w) => agedWindow(w, now)) })),\n });\n }\n\n const today = dayKey(now);\n const since = weekStartDay(now);\n const todayTotal = zero();\n const weekTotal = zero();\n const models = new Map<string, { today: TokenTotals; week: TokenTotals }>();\n const perSession: Array<{ id: string; label: string; week: TokenTotals }> = [];\n for (const s of deps.sessions(now)) {\n let days: Record<string, Record<string, TokenTotals>>;\n try {\n days = await deps.tokens(s, since);\n } catch (e) {\n logSwallowed(`usage: tokens of ${sessionIdFor(s)}`, e);\n continue; // one unreadable session doesn't hide the rest\n }\n const week = zero();\n for (const [day, byModel] of Object.entries(days)) {\n if (day < since || day > today) continue;\n for (const [model, t] of Object.entries(byModel)) {\n const m = models.get(model) ?? { today: zero(), week: zero() };\n models.set(model, m);\n add(m.week, t);\n add(weekTotal, t);\n add(week, t);\n if (day === today) {\n add(m.today, t);\n add(todayTotal, t);\n }\n }\n }\n if (week.input + week.output > 0) perSession.push({ id: sessionIdFor(s), label: deps.label(s), week });\n }\n\n const size = (t: TokenTotals) => t.input + t.output;\n return {\n agents,\n tokens: {\n today: todayTotal,\n week: weekTotal,\n byModel: [...models].map(([model, v]) => ({ model, ...v })).sort((a, b) => size(b.week) - size(a.week)),\n topSessions: perSession.sort((a, b) => size(b.week) - size(a.week)).slice(0, TOP_SESSIONS),\n },\n at: new Date(now).toISOString(),\n };\n}\n\n/**\n * Let each agent ask for what its readings can't carry (`AgentUsageSource.refresh`: Claude's per-model windows); the\n * answers land in the readings folder. One that fails is logged, never thrown: the readings there still answer.\n */\nexport async function refreshUsage(agents: Array<{ id: string; usage?: Pick<AgentUsageSource, 'refresh'> }>): Promise<void> {\n await Promise.all(\n agents.map(async (a) => {\n try {\n await a.usage?.refresh?.();\n } catch (e) {\n logSwallowed(`usage: refresh of ${a.id}`, e);\n }\n }),\n );\n}\n\n/** The sessions whose tokens can fall in the week: not archived, and their agent wrote in the last 7 days. */\nexport function usageSessions(all: WorktreeSession[], lastWriteMs: (s: WorktreeSession) => number, now: number): WorktreeSession[] {\n return all.filter((s) => !s.archivedAt && lastWriteMs(s) >= now - WEEK_DAYS * 24 * 3_600_000);\n}\n\nexport function realUsageDeps(): UsageDeps {\n return {\n agents: () => knownAgents(),\n sessions: (now) => usageSessions(loadHistory(), lastConversationWriteMs, now),\n tokens: sessionTokens,\n label: (s) => `${s.target} · ${s.title ? s.title : s.branch}`,\n };\n}\n","import { logSwallowed } from '../platform/best-effort.js';\nimport type { AgentUsageSource } from '../agents/types.js';\n\n/** What setup and restore need of an agent: its name and usage part (AgentAdapter fits). */\nexport interface UsageAgent {\n id: string;\n name: string;\n usage?: Pick<AgentUsageSource, 'setup' | 'restore'>;\n}\n\n/**\n * Work web's start: every agent with a usage part puts in place (or, with config `usage.statusLine: false`, takes away)\n * what records its readings. One agent's failure is logged and the rest go on; what each did is returned.\n */\nexport async function setupAgentUsage(\n agents: readonly UsageAgent[],\n config: { usage?: { statusLine?: boolean } } | null,\n lean: boolean,\n): Promise<Array<{ agent: string; message: string }>> {\n const enabled = config?.usage?.statusLine !== false;\n const done: Array<{ agent: string; message: string }> = [];\n for (const a of agents) {\n if (!a.usage?.setup) continue;\n try {\n done.push({ agent: a.id, message: await a.usage.setup({ enabled, lean }) });\n } catch (e) {\n logSwallowed(`set up ${a.name}'s usage readings`, e);\n }\n }\n return done;\n}\n\n/** `work usage --restore`: each agent gives its own setting back. A failure is that agent's `ok: false`, with why. */\nexport async function restoreAgentUsage(\n agents: readonly UsageAgent[],\n): Promise<Array<{ agent: string; name: string; ok: boolean; message: string }>> {\n const out: Array<{ agent: string; name: string; ok: boolean; message: string }> = [];\n for (const a of agents) {\n if (!a.usage?.restore) continue;\n try {\n out.push({ agent: a.id, name: a.name, ...(await a.usage.restore()) });\n } catch (e) {\n out.push({ agent: a.id, name: a.name, ok: false, message: e instanceof Error ? e.message : String(e) });\n }\n }\n return out;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAkBA,IAAM,YAAY;AAClB,IAAM,eAAe;AAWrB,IAAM,OAAO,OAAoB,EAAE,OAAO,GAAG,QAAQ,GAAG,QAAQ,EAAE;AAElE,SAAS,IAAI,MAAmB,GAAsB;AACpD,OAAK,SAAS,EAAE;AAChB,OAAK,UAAU,EAAE;AACjB,OAAK,UAAU,EAAE;AACnB;AAGO,SAAS,aAAa,KAAqB;AAChD,QAAM,IAAI,IAAI,KAAK,GAAG;AACtB,IAAE,QAAQ,EAAE,QAAQ,KAAK,YAAY,EAAE;AACvC,SAAO,OAAO,EAAE,QAAQ,CAAC;AAC3B;AAEA,eAAsB,WAAW,MAAiB,MAAM,KAAK,IAAI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AAM;AAAA,EAC7D;AACF;;;ACnHA,eAAsB,gBACpB,QACA,QACA,MACoD;AACpD,QAAM,UAAU,QAAQ,OAAO,eAAe;AAC9C,QAAM,OAAkD,CAAC;AACzD,aAAW,KAAK,QAAQ;AACtB,QAAI,CAAC,EAAE,OAAO,MAAO;AACrB,QAAI;AACF,WAAK,KAAK,EAAE,OAAO,EAAE,IAAI,SAAS,MAAM,EAAE,MAAM,MAAM,EAAE,SAAS,KAAK,CAAC,EAAE,CAAC;AAAA,IAC5E,SAAS,GAAG;AACV,mBAAa,UAAU,EAAE,IAAI,qBAAqB,CAAC;AAAA,IACrD;AAAA,EACF;AACA,SAAO;AACT;AAGA,eAAsB,kBACpB,QAC+E;AAC/E,QAAM,MAA4E,CAAC;AACnF,aAAW,KAAK,QAAQ;AACtB,QAAI,CAAC,EAAE,OAAO,QAAS;AACvB,QAAI;AACF,UAAI,KAAK,EAAE,OAAO,EAAE,IAAI,MAAM,EAAE,MAAM,GAAI,MAAM,EAAE,MAAM,QAAQ,EAAG,CAAC;AAAA,IACtE,SAAS,GAAG;AACV,UAAI,KAAK,EAAE,OAAO,EAAE,IAAI,MAAM,EAAE,MAAM,IAAI,OAAO,SAAS,aAAa,QAAQ,EAAE,UAAU,OAAO,CAAC,EAAE,CAAC;AAAA,IACxG;AAAA,EACF;AACA,SAAO;AACT;","names":[]}
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
logSwallowed,
|
|
17
17
|
readJsonlTail,
|
|
18
18
|
workingBranch
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-O22DNTKU.js";
|
|
20
20
|
import {
|
|
21
21
|
loadConfig
|
|
22
22
|
} from "./chunk-MWIPHUAE.js";
|
|
@@ -3198,4 +3198,4 @@ export {
|
|
|
3198
3198
|
mergeHydratedSessions,
|
|
3199
3199
|
forgetOtherBaseCheckoutEntries
|
|
3200
3200
|
};
|
|
3201
|
-
//# sourceMappingURL=chunk-
|
|
3201
|
+
//# sourceMappingURL=chunk-D77U5ELL.js.map
|