@moberg_hr/work-tree 2.6.2 → 2.6.3
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/README.md +1 -1
- package/dist/{add-repo-RICWFTP3.js → add-repo-VAGLNLIJ.js} +16 -16
- package/dist/{answer-7IAI4IQW.js → answer-4CUJSRIP.js} +11 -11
- package/dist/{attach-5PEDASVQ.js → attach-GLCZILIH.js} +14 -14
- package/dist/bin.js +5 -5
- package/dist/{block-2FZ7DQP3.js → block-SC5IZJMA.js} +11 -11
- package/dist/{broadcast-NK3NQ6KB.js → broadcast-VFY5UFYA.js} +8 -8
- package/dist/{catchup-3L5AQMRK.js → catchup-4EBF6RZ6.js} +14 -14
- package/dist/{chunk-R7FHLKLM.js → chunk-2MAGDOLP.js} +10 -10
- package/dist/{chunk-EBLCO5JI.js → chunk-35VLAPL2.js} +2 -2
- package/dist/{chunk-UNBYEYVB.js → chunk-3HJASVHJ.js} +3 -3
- package/dist/{chunk-ARMKKHNH.js → chunk-4IEQ7LY4.js} +4 -4
- package/dist/{chunk-AMQQEN3C.js → chunk-4LFJM4UN.js} +8 -8
- package/dist/{chunk-J5J4RR25.js → chunk-4RDAWJZY.js} +3 -3
- package/dist/{chunk-JSVT76QU.js → chunk-4YCWUHVE.js} +2 -2
- package/dist/{chunk-6SJOM62D.js → chunk-56P7G2DI.js} +2 -2
- package/dist/{chunk-PFQDT3FP.js → chunk-72U52KTJ.js} +10 -10
- package/dist/{chunk-FRCV6NWT.js → chunk-75MIXOUK.js} +2 -2
- package/dist/{chunk-TN32UOPM.js → chunk-ANWA4Z56.js} +12 -12
- package/dist/{chunk-ZC4VZ5Z2.js → chunk-C6STZ6HD.js} +4 -4
- package/dist/{chunk-R2SR3PER.js → chunk-CGVYVTGF.js} +2 -2
- package/dist/{chunk-OESAI3XS.js → chunk-CRPV5YCC.js} +2 -2
- package/dist/{chunk-PSAK5S6K.js → chunk-CXCMATZG.js} +14 -9
- package/dist/chunk-CXCMATZG.js.map +1 -0
- package/dist/{chunk-NWUNF4YG.js → chunk-DAQCIJHW.js} +3 -3
- package/dist/{chunk-VGQV4LX7.js → chunk-EUAJT7FS.js} +2 -2
- package/dist/{chunk-XZ5DA5X4.js → chunk-EYUBVLPF.js} +2 -2
- package/dist/{chunk-RCUPG37H.js → chunk-G5W6D7KQ.js} +3 -3
- package/dist/{chunk-AKGDIBSE.js → chunk-G635EV2D.js} +2 -2
- package/dist/{chunk-AHTTWCUN.js → chunk-G7TS5DCS.js} +4 -4
- package/dist/{chunk-L7OQ7O4K.js → chunk-GTVQYGY3.js} +3 -3
- package/dist/{chunk-S2DFOD6N.js → chunk-H756AOOW.js} +5 -5
- package/dist/{chunk-5WH2ZFN6.js → chunk-I5V34WWS.js} +5 -5
- package/dist/{chunk-FXHTSSV2.js → chunk-JF72AS6T.js} +3 -3
- package/dist/{chunk-MEQPDXMP.js → chunk-JUMZ5MTU.js} +10 -6
- package/dist/chunk-JUMZ5MTU.js.map +1 -0
- package/dist/{chunk-IB46BZUD.js → chunk-KWRE6HQN.js} +4 -4
- package/dist/{chunk-HJAUT5TT.js → chunk-LJ3UVV4F.js} +4 -4
- package/dist/chunk-M2ZJ64JV.js +9 -0
- package/dist/{chunk-NR5KJEF3.js → chunk-MYDQNX7W.js} +2 -2
- package/dist/{chunk-X6QZOFCD.js → chunk-NW2ZXAJJ.js} +5 -5
- package/dist/{chunk-CGJGWALF.js → chunk-OUUDQA7O.js} +2 -2
- package/dist/{chunk-JUI6JND2.js → chunk-OUWKEJEC.js} +4 -4
- package/dist/{chunk-6K4Q4EG7.js → chunk-P2THO7D7.js} +5 -5
- package/dist/{chunk-YOI45I2P.js → chunk-PDYO56JU.js} +3 -3
- package/dist/{chunk-JL3UQPO5.js → chunk-QCFINFXO.js} +4 -4
- package/dist/{chunk-6HBIR2I4.js → chunk-QKF7CNIM.js} +2 -2
- package/dist/{chunk-MJM5D4ZR.js → chunk-QXJ4FILG.js} +53 -53
- package/dist/{chunk-5BMIBSIN.js → chunk-R5IJHLHA.js} +8 -8
- package/dist/{chunk-A53IRCOO.js → chunk-RYEPQLXQ.js} +1 -1
- package/dist/chunk-RYEPQLXQ.js.map +1 -0
- package/dist/{chunk-NJT26JI3.js → chunk-SMZ7W34L.js} +2 -2
- package/dist/{chunk-KGZRNWEN.js → chunk-TJFX5BWH.js} +2 -2
- package/dist/{chunk-DRHK2A2I.js → chunk-UNEHT6FI.js} +3 -3
- package/dist/{chunk-PP53ZOKP.js → chunk-VDYX4R6U.js} +7 -7
- package/dist/{chunk-JG3J5TLB.js → chunk-VESYLAVA.js} +69 -23
- package/dist/chunk-VESYLAVA.js.map +1 -0
- package/dist/{chunk-NTETVXDJ.js → chunk-VIWPTRRR.js} +5 -5
- package/dist/{chunk-DAKL3777.js → chunk-VMLRIO4T.js} +5 -5
- package/dist/{chunk-2HT2UH5Q.js → chunk-WDV6VTVI.js} +3 -3
- package/dist/{chunk-ETUXLYPP.js → chunk-XLAGFKJE.js} +2 -2
- package/dist/{chunk-ZUUKGNKI.js → chunk-YLIPAOBT.js} +7 -7
- package/dist/{chunk-EV4EVJBO.js → chunk-YSGXXNBL.js} +6 -3
- package/dist/chunk-YSGXXNBL.js.map +1 -0
- package/dist/{chunk-NZ7HCBSL.js → chunk-Z3NQJALE.js} +4 -3
- package/dist/{chunk-S4ILKUFN.js → chunk-ZGXRWL7T.js} +2 -2
- package/dist/{chunk-BCPH3SZM.js → chunk-ZO6MZNLI.js} +2 -2
- package/dist/{cleanup-PDSWU3VO.js → cleanup-DTOLAQAT.js} +25 -25
- package/dist/cli-4CGRDNWF.js +18 -0
- package/dist/{command-hook-installer-PTTVCWH7.js → command-hook-installer-W7IEVT6V.js} +4 -4
- package/dist/{config-ZW3O74ML.js → config-3RONXBBL.js} +9 -9
- package/dist/{diff-RXHMHOVU.js → diff-YXYQKDJQ.js} +12 -12
- package/dist/{digest-VHEIBXMG.js → digest-7PESCB5B.js} +10 -10
- package/dist/{fork-SGANWPZM.js → fork-J5KH2M7V.js} +23 -23
- package/dist/{history-EKYE6GGN.js → history-T6ZIUHE7.js} +7 -7
- package/dist/{hook-FA67OXLF.js → hook-JEGFGYMA.js} +12 -12
- package/dist/{hydrate-Y5O75LD4.js → hydrate-UWNH7GWK.js} +9 -9
- package/dist/{init-KSO3YGXO.js → init-RMLPXKB7.js} +9 -9
- package/dist/{install-skills-K3EXVLOV.js → install-skills-TFP6EHI3.js} +4 -4
- package/dist/install-skills-bin.js +3 -3
- package/dist/{list-KXJJQKTK.js → list-5AMTJAI6.js} +9 -9
- package/dist/{move-74LSWX57.js → move-ELVMRSM6.js} +14 -14
- package/dist/{note-UMFDJ24N.js → note-Q52DD2DT.js} +11 -11
- package/dist/{overlaps-HJTLLLP3.js → overlaps-NORA5U6L.js} +9 -9
- package/dist/{pin-EZXTUZWI.js → pin-TC6X4HDA.js} +11 -11
- package/dist/{pr-EIL2XC37.js → pr-NQERVORK.js} +11 -11
- package/dist/{prune-UMEITJG6.js → prune-TRPM4VQW.js} +24 -24
- package/dist/{pty-host-PDIDOKSX.js → pty-host-52OZBFU5.js} +17 -12
- package/dist/pty-host-52OZBFU5.js.map +1 -0
- package/dist/{read-ITVK34D7.js → read-EMO5CVBL.js} +10 -10
- package/dist/{recent-FZQEBMST.js → recent-XFC2CZGO.js} +8 -8
- package/dist/{remove-6BB5YF4Y.js → remove-ISNYVVEE.js} +23 -23
- package/dist/{report-BSETCIYQ.js → report-JEG2FKOB.js} +4 -4
- package/dist/{restart-Y3VS53DG.js → restart-IKVRECL5.js} +11 -11
- package/dist/{resume-KOSOBSAB.js → resume-LWDUSKDJ.js} +8 -8
- package/dist/{run-JGWWFLRQ.js → run-TQLQ27GW.js} +7 -7
- package/dist/{screen-4AFBLAP7.js → screen-VSQAYCFO.js} +11 -11
- package/dist/{search-56GJF6RQ.js → search-MEK4ZMO6.js} +7 -7
- package/dist/{section-UI542QWO.js → section-C6D5NXLG.js} +11 -11
- package/dist/{send-HND6G3ZZ.js → send-44BXZWDO.js} +12 -12
- package/dist/{sessions-5I5WKRB3.js → sessions-TBAG6NMG.js} +17 -17
- package/dist/{snooze-B6K2GAJK.js → snooze-ZZRSF3E3.js} +10 -10
- package/dist/{start-CXIXWN4N.js → start-3UPW2TES.js} +11 -11
- package/dist/{state-NRK5CBXZ.js → state-2J4TR7IC.js} +5 -5
- package/dist/{status-GUDTUV7R.js → status-OEGNSHMS.js} +8 -8
- package/dist/{stop-4U2FUGV4.js → stop-UJ7XWUVZ.js} +11 -11
- package/dist/{sync-ZT5BG6M5.js → sync-XHFJEBHL.js} +24 -24
- package/dist/{time-Q2TZZDKJ.js → time-IJXREBKU.js} +12 -12
- package/dist/time-actions-LMJUFDDR.js +15 -0
- package/dist/{timesheet-ZPPK4Z3X.js → timesheet-L265X66U.js} +14 -14
- package/dist/{todo-OE62TNES.js → todo-FXPXLXXW.js} +6 -6
- package/dist/{tree-K43PH4GN.js → tree-L5QLZCTJ.js} +20 -20
- package/dist/{update-PBEMQ2OL.js → update-PCWQEFVF.js} +12 -12
- package/dist/{wait-GDA333KG.js → wait-YL2ZA6OM.js} +11 -11
- package/dist/wd-bin.js +7 -7
- package/dist/web/assets/{PtyView-BWZTSZVM.js → PtyView-DNqCr6rR.js} +2 -2
- package/dist/web/assets/{PtyView-BWZTSZVM.js.map → PtyView-DNqCr6rR.js.map} +1 -1
- package/dist/web/assets/{index-BMXb8iCa.js → index-Df-7v9bC.js} +13 -13
- package/dist/web/assets/index-Df-7v9bC.js.map +1 -0
- package/dist/web/assets/{index-mBqGPwml.css → index-LBhghRtA.css} +1 -1
- package/dist/web/index.html +2 -2
- package/dist/{web-B7XWKWLG.js → web-MIPL4BC7.js} +146 -60
- package/dist/web-MIPL4BC7.js.map +1 -0
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
- package/dist/chunk-A53IRCOO.js.map +0 -1
- package/dist/chunk-AWKT5UH4.js +0 -9
- package/dist/chunk-EV4EVJBO.js.map +0 -1
- package/dist/chunk-JG3J5TLB.js.map +0 -1
- package/dist/chunk-MEQPDXMP.js.map +0 -1
- package/dist/chunk-PSAK5S6K.js.map +0 -1
- package/dist/cli-42K5JPQU.js +0 -18
- package/dist/pty-host-PDIDOKSX.js.map +0 -1
- package/dist/time-actions-FLLFYEVY.js +0 -15
- package/dist/web/assets/index-BMXb8iCa.js.map +0 -1
- package/dist/web-B7XWKWLG.js.map +0 -1
- /package/dist/{add-repo-RICWFTP3.js.map → add-repo-VAGLNLIJ.js.map} +0 -0
- /package/dist/{answer-7IAI4IQW.js.map → answer-4CUJSRIP.js.map} +0 -0
- /package/dist/{attach-5PEDASVQ.js.map → attach-GLCZILIH.js.map} +0 -0
- /package/dist/{block-2FZ7DQP3.js.map → block-SC5IZJMA.js.map} +0 -0
- /package/dist/{broadcast-NK3NQ6KB.js.map → broadcast-VFY5UFYA.js.map} +0 -0
- /package/dist/{catchup-3L5AQMRK.js.map → catchup-4EBF6RZ6.js.map} +0 -0
- /package/dist/{chunk-R7FHLKLM.js.map → chunk-2MAGDOLP.js.map} +0 -0
- /package/dist/{chunk-EBLCO5JI.js.map → chunk-35VLAPL2.js.map} +0 -0
- /package/dist/{chunk-UNBYEYVB.js.map → chunk-3HJASVHJ.js.map} +0 -0
- /package/dist/{chunk-ARMKKHNH.js.map → chunk-4IEQ7LY4.js.map} +0 -0
- /package/dist/{chunk-AMQQEN3C.js.map → chunk-4LFJM4UN.js.map} +0 -0
- /package/dist/{chunk-J5J4RR25.js.map → chunk-4RDAWJZY.js.map} +0 -0
- /package/dist/{chunk-JSVT76QU.js.map → chunk-4YCWUHVE.js.map} +0 -0
- /package/dist/{chunk-6SJOM62D.js.map → chunk-56P7G2DI.js.map} +0 -0
- /package/dist/{chunk-PFQDT3FP.js.map → chunk-72U52KTJ.js.map} +0 -0
- /package/dist/{chunk-FRCV6NWT.js.map → chunk-75MIXOUK.js.map} +0 -0
- /package/dist/{chunk-TN32UOPM.js.map → chunk-ANWA4Z56.js.map} +0 -0
- /package/dist/{chunk-ZC4VZ5Z2.js.map → chunk-C6STZ6HD.js.map} +0 -0
- /package/dist/{chunk-R2SR3PER.js.map → chunk-CGVYVTGF.js.map} +0 -0
- /package/dist/{chunk-OESAI3XS.js.map → chunk-CRPV5YCC.js.map} +0 -0
- /package/dist/{chunk-NWUNF4YG.js.map → chunk-DAQCIJHW.js.map} +0 -0
- /package/dist/{chunk-VGQV4LX7.js.map → chunk-EUAJT7FS.js.map} +0 -0
- /package/dist/{chunk-XZ5DA5X4.js.map → chunk-EYUBVLPF.js.map} +0 -0
- /package/dist/{chunk-RCUPG37H.js.map → chunk-G5W6D7KQ.js.map} +0 -0
- /package/dist/{chunk-AKGDIBSE.js.map → chunk-G635EV2D.js.map} +0 -0
- /package/dist/{chunk-AHTTWCUN.js.map → chunk-G7TS5DCS.js.map} +0 -0
- /package/dist/{chunk-L7OQ7O4K.js.map → chunk-GTVQYGY3.js.map} +0 -0
- /package/dist/{chunk-S2DFOD6N.js.map → chunk-H756AOOW.js.map} +0 -0
- /package/dist/{chunk-5WH2ZFN6.js.map → chunk-I5V34WWS.js.map} +0 -0
- /package/dist/{chunk-FXHTSSV2.js.map → chunk-JF72AS6T.js.map} +0 -0
- /package/dist/{chunk-IB46BZUD.js.map → chunk-KWRE6HQN.js.map} +0 -0
- /package/dist/{chunk-HJAUT5TT.js.map → chunk-LJ3UVV4F.js.map} +0 -0
- /package/dist/{chunk-AWKT5UH4.js.map → chunk-M2ZJ64JV.js.map} +0 -0
- /package/dist/{chunk-NR5KJEF3.js.map → chunk-MYDQNX7W.js.map} +0 -0
- /package/dist/{chunk-X6QZOFCD.js.map → chunk-NW2ZXAJJ.js.map} +0 -0
- /package/dist/{chunk-CGJGWALF.js.map → chunk-OUUDQA7O.js.map} +0 -0
- /package/dist/{chunk-JUI6JND2.js.map → chunk-OUWKEJEC.js.map} +0 -0
- /package/dist/{chunk-6K4Q4EG7.js.map → chunk-P2THO7D7.js.map} +0 -0
- /package/dist/{chunk-YOI45I2P.js.map → chunk-PDYO56JU.js.map} +0 -0
- /package/dist/{chunk-JL3UQPO5.js.map → chunk-QCFINFXO.js.map} +0 -0
- /package/dist/{chunk-6HBIR2I4.js.map → chunk-QKF7CNIM.js.map} +0 -0
- /package/dist/{chunk-MJM5D4ZR.js.map → chunk-QXJ4FILG.js.map} +0 -0
- /package/dist/{chunk-5BMIBSIN.js.map → chunk-R5IJHLHA.js.map} +0 -0
- /package/dist/{chunk-NJT26JI3.js.map → chunk-SMZ7W34L.js.map} +0 -0
- /package/dist/{chunk-KGZRNWEN.js.map → chunk-TJFX5BWH.js.map} +0 -0
- /package/dist/{chunk-DRHK2A2I.js.map → chunk-UNEHT6FI.js.map} +0 -0
- /package/dist/{chunk-PP53ZOKP.js.map → chunk-VDYX4R6U.js.map} +0 -0
- /package/dist/{chunk-NTETVXDJ.js.map → chunk-VIWPTRRR.js.map} +0 -0
- /package/dist/{chunk-DAKL3777.js.map → chunk-VMLRIO4T.js.map} +0 -0
- /package/dist/{chunk-2HT2UH5Q.js.map → chunk-WDV6VTVI.js.map} +0 -0
- /package/dist/{chunk-ETUXLYPP.js.map → chunk-XLAGFKJE.js.map} +0 -0
- /package/dist/{chunk-ZUUKGNKI.js.map → chunk-YLIPAOBT.js.map} +0 -0
- /package/dist/{chunk-NZ7HCBSL.js.map → chunk-Z3NQJALE.js.map} +0 -0
- /package/dist/{chunk-S4ILKUFN.js.map → chunk-ZGXRWL7T.js.map} +0 -0
- /package/dist/{chunk-BCPH3SZM.js.map → chunk-ZO6MZNLI.js.map} +0 -0
- /package/dist/{cleanup-PDSWU3VO.js.map → cleanup-DTOLAQAT.js.map} +0 -0
- /package/dist/{cli-42K5JPQU.js.map → cli-4CGRDNWF.js.map} +0 -0
- /package/dist/{command-hook-installer-PTTVCWH7.js.map → command-hook-installer-W7IEVT6V.js.map} +0 -0
- /package/dist/{config-ZW3O74ML.js.map → config-3RONXBBL.js.map} +0 -0
- /package/dist/{diff-RXHMHOVU.js.map → diff-YXYQKDJQ.js.map} +0 -0
- /package/dist/{digest-VHEIBXMG.js.map → digest-7PESCB5B.js.map} +0 -0
- /package/dist/{fork-SGANWPZM.js.map → fork-J5KH2M7V.js.map} +0 -0
- /package/dist/{history-EKYE6GGN.js.map → history-T6ZIUHE7.js.map} +0 -0
- /package/dist/{hook-FA67OXLF.js.map → hook-JEGFGYMA.js.map} +0 -0
- /package/dist/{hydrate-Y5O75LD4.js.map → hydrate-UWNH7GWK.js.map} +0 -0
- /package/dist/{init-KSO3YGXO.js.map → init-RMLPXKB7.js.map} +0 -0
- /package/dist/{install-skills-K3EXVLOV.js.map → install-skills-TFP6EHI3.js.map} +0 -0
- /package/dist/{list-KXJJQKTK.js.map → list-5AMTJAI6.js.map} +0 -0
- /package/dist/{move-74LSWX57.js.map → move-ELVMRSM6.js.map} +0 -0
- /package/dist/{note-UMFDJ24N.js.map → note-Q52DD2DT.js.map} +0 -0
- /package/dist/{overlaps-HJTLLLP3.js.map → overlaps-NORA5U6L.js.map} +0 -0
- /package/dist/{pin-EZXTUZWI.js.map → pin-TC6X4HDA.js.map} +0 -0
- /package/dist/{pr-EIL2XC37.js.map → pr-NQERVORK.js.map} +0 -0
- /package/dist/{prune-UMEITJG6.js.map → prune-TRPM4VQW.js.map} +0 -0
- /package/dist/{read-ITVK34D7.js.map → read-EMO5CVBL.js.map} +0 -0
- /package/dist/{recent-FZQEBMST.js.map → recent-XFC2CZGO.js.map} +0 -0
- /package/dist/{remove-6BB5YF4Y.js.map → remove-ISNYVVEE.js.map} +0 -0
- /package/dist/{report-BSETCIYQ.js.map → report-JEG2FKOB.js.map} +0 -0
- /package/dist/{restart-Y3VS53DG.js.map → restart-IKVRECL5.js.map} +0 -0
- /package/dist/{resume-KOSOBSAB.js.map → resume-LWDUSKDJ.js.map} +0 -0
- /package/dist/{run-JGWWFLRQ.js.map → run-TQLQ27GW.js.map} +0 -0
- /package/dist/{screen-4AFBLAP7.js.map → screen-VSQAYCFO.js.map} +0 -0
- /package/dist/{search-56GJF6RQ.js.map → search-MEK4ZMO6.js.map} +0 -0
- /package/dist/{section-UI542QWO.js.map → section-C6D5NXLG.js.map} +0 -0
- /package/dist/{send-HND6G3ZZ.js.map → send-44BXZWDO.js.map} +0 -0
- /package/dist/{sessions-5I5WKRB3.js.map → sessions-TBAG6NMG.js.map} +0 -0
- /package/dist/{snooze-B6K2GAJK.js.map → snooze-ZZRSF3E3.js.map} +0 -0
- /package/dist/{start-CXIXWN4N.js.map → start-3UPW2TES.js.map} +0 -0
- /package/dist/{state-NRK5CBXZ.js.map → state-2J4TR7IC.js.map} +0 -0
- /package/dist/{status-GUDTUV7R.js.map → status-OEGNSHMS.js.map} +0 -0
- /package/dist/{stop-4U2FUGV4.js.map → stop-UJ7XWUVZ.js.map} +0 -0
- /package/dist/{sync-ZT5BG6M5.js.map → sync-XHFJEBHL.js.map} +0 -0
- /package/dist/{time-Q2TZZDKJ.js.map → time-IJXREBKU.js.map} +0 -0
- /package/dist/{time-actions-FLLFYEVY.js.map → time-actions-LMJUFDDR.js.map} +0 -0
- /package/dist/{timesheet-ZPPK4Z3X.js.map → timesheet-L265X66U.js.map} +0 -0
- /package/dist/{todo-OE62TNES.js.map → todo-FXPXLXXW.js.map} +0 -0
- /package/dist/{tree-K43PH4GN.js.map → tree-L5QLZCTJ.js.map} +0 -0
- /package/dist/{update-PBEMQ2OL.js.map → update-PCWQEFVF.js.map} +0 -0
- /package/dist/{wait-GDA333KG.js.map → wait-YL2ZA6OM.js.map} +0 -0
|
@@ -5,19 +5,19 @@ import {
|
|
|
5
5
|
} from "./chunk-AKMPF72Y.js";
|
|
6
6
|
import {
|
|
7
7
|
listReplies
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-P2THO7D7.js";
|
|
9
9
|
import {
|
|
10
10
|
runningFromNames,
|
|
11
11
|
stopRunningFrom
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-Z3NQJALE.js";
|
|
13
13
|
import {
|
|
14
14
|
disposePty
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-4LFJM4UN.js";
|
|
16
16
|
import {
|
|
17
17
|
saveIgnored,
|
|
18
18
|
teardownWorktree,
|
|
19
19
|
worktreeFor
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-72U52KTJ.js";
|
|
21
21
|
import {
|
|
22
22
|
isLeftover
|
|
23
23
|
} from "./chunk-KUCMJHQW.js";
|
|
@@ -27,17 +27,17 @@ import {
|
|
|
27
27
|
} from "./chunk-5WM24P5N.js";
|
|
28
28
|
import {
|
|
29
29
|
shownState
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-4IEQ7LY4.js";
|
|
31
31
|
import {
|
|
32
32
|
defaultRunner
|
|
33
33
|
} from "./chunk-3GIH4WTA.js";
|
|
34
34
|
import {
|
|
35
35
|
runInternal
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-KWRE6HQN.js";
|
|
37
37
|
import {
|
|
38
38
|
checkedOutBranch,
|
|
39
39
|
readPendingForSession
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-C6STZ6HD.js";
|
|
41
41
|
import {
|
|
42
42
|
archiveRefFor,
|
|
43
43
|
archiveSession,
|
|
@@ -50,16 +50,16 @@ import {
|
|
|
50
50
|
setSessionArchived,
|
|
51
51
|
stopDev,
|
|
52
52
|
turnInProgress
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-JUMZ5MTU.js";
|
|
54
54
|
import {
|
|
55
55
|
agentOf
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-VESYLAVA.js";
|
|
57
57
|
import {
|
|
58
58
|
sessionIdFor
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-JF72AS6T.js";
|
|
60
60
|
import {
|
|
61
61
|
loadConfig
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-RYEPQLXQ.js";
|
|
63
63
|
|
|
64
64
|
// src/core/archive/session-archive-deps.ts
|
|
65
65
|
import fs from "fs";
|
|
@@ -282,4 +282,4 @@ export {
|
|
|
282
282
|
archiveMergedSession,
|
|
283
283
|
defaultArchiveDeps
|
|
284
284
|
};
|
|
285
|
-
//# sourceMappingURL=chunk-
|
|
285
|
+
//# sourceMappingURL=chunk-ANWA4Z56.js.map
|
|
@@ -3,18 +3,18 @@ import {
|
|
|
3
3
|
getCommentFileStore,
|
|
4
4
|
readStoreComments,
|
|
5
5
|
readStoresComments
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-EYUBVLPF.js";
|
|
7
7
|
import {
|
|
8
8
|
scopeHashFor
|
|
9
9
|
} from "./chunk-ZSHWP2VS.js";
|
|
10
10
|
import {
|
|
11
11
|
loadHistory
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-JUMZ5MTU.js";
|
|
13
13
|
import {
|
|
14
14
|
sessionIdFor,
|
|
15
15
|
tx,
|
|
16
16
|
withDb
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-JF72AS6T.js";
|
|
18
18
|
|
|
19
19
|
// src/core/git/git-head.ts
|
|
20
20
|
import fs from "fs";
|
|
@@ -206,4 +206,4 @@ export {
|
|
|
206
206
|
claimForDelivery,
|
|
207
207
|
formatPendingForPrompt
|
|
208
208
|
};
|
|
209
|
-
//# sourceMappingURL=chunk-
|
|
209
|
+
//# sourceMappingURL=chunk-C6STZ6HD.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
getCurrentBranch,
|
|
4
4
|
getMainRepoRoot,
|
|
5
5
|
getWorktreeRoot
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-G635EV2D.js";
|
|
7
7
|
|
|
8
8
|
// src/core/worktree/resolve.ts
|
|
9
9
|
import fs from "fs";
|
|
@@ -120,4 +120,4 @@ export {
|
|
|
120
120
|
getAllTargetNames,
|
|
121
121
|
resolveFromCwd
|
|
122
122
|
};
|
|
123
|
-
//# sourceMappingURL=chunk-
|
|
123
|
+
//# sourceMappingURL=chunk-CGVYVTGF.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
json,
|
|
4
4
|
tx,
|
|
5
5
|
withDb
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-JF72AS6T.js";
|
|
7
7
|
|
|
8
8
|
// src/core/tasks.ts
|
|
9
9
|
function isTask(x) {
|
|
@@ -87,4 +87,4 @@ export {
|
|
|
87
87
|
removeTask,
|
|
88
88
|
editTask
|
|
89
89
|
};
|
|
90
|
-
//# sourceMappingURL=chunk-
|
|
90
|
+
//# sourceMappingURL=chunk-CRPV5YCC.js.map
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
peekPty
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-4LFJM4UN.js";
|
|
5
5
|
import {
|
|
6
6
|
isLeftover
|
|
7
7
|
} from "./chunk-KUCMJHQW.js";
|
|
8
8
|
import {
|
|
9
9
|
sessionStatusView
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-4IEQ7LY4.js";
|
|
11
11
|
import {
|
|
12
12
|
checkedOutBranch,
|
|
13
13
|
readPendingForWorktree,
|
|
14
14
|
scopeStoreIdsForPaths
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-C6STZ6HD.js";
|
|
16
16
|
import {
|
|
17
17
|
readStoresComments
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-EYUBVLPF.js";
|
|
19
19
|
import {
|
|
20
20
|
STAGE_WANTS_YOU,
|
|
21
21
|
archiveDirFor,
|
|
@@ -34,19 +34,19 @@ import {
|
|
|
34
34
|
sessionRepos,
|
|
35
35
|
snoozeActive,
|
|
36
36
|
withLiveClaude
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-JUMZ5MTU.js";
|
|
38
38
|
import {
|
|
39
39
|
agentOf,
|
|
40
40
|
agentWire,
|
|
41
41
|
readJsonlTail
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-VESYLAVA.js";
|
|
43
43
|
import {
|
|
44
44
|
sessionIdFor
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-JF72AS6T.js";
|
|
46
46
|
import {
|
|
47
47
|
getConfigPath,
|
|
48
48
|
loadConfig
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-RYEPQLXQ.js";
|
|
50
50
|
|
|
51
51
|
// src/core/sessions/session-wire.ts
|
|
52
52
|
import fs2 from "fs";
|
|
@@ -277,10 +277,15 @@ function sessionWire(s, opts = {}) {
|
|
|
277
277
|
if (stack?.merged) wire.stackParentMerged = stack.merged;
|
|
278
278
|
if (opts.hasNote?.(id)) wire.hasNote = true;
|
|
279
279
|
if (isArchiving(id)) wire.archiving = true;
|
|
280
|
+
if (!s.archivedAt && isAsleep(readStatus(id)?.stoppedAt, wire.ptyStatus === "running", wire.lastActivity ?? 0)) wire.asleep = true;
|
|
280
281
|
const blockers = s.archivedAt ? [] : opts.blockedByFor?.(id) ?? [];
|
|
281
282
|
if (blockers.length) wire.blockedBy = blockers;
|
|
282
283
|
return wire;
|
|
283
284
|
}
|
|
285
|
+
function isAsleep(stoppedAt, ptyRunning, lastActivityMs) {
|
|
286
|
+
const stopped = stoppedAt ? Date.parse(stoppedAt) : NaN;
|
|
287
|
+
return Number.isFinite(stopped) && !ptyRunning && lastActivityMs <= stopped;
|
|
288
|
+
}
|
|
284
289
|
function withRestoring(w) {
|
|
285
290
|
return isRestoring(w.id) ? { ...w, restoring: true } : w;
|
|
286
291
|
}
|
|
@@ -389,4 +394,4 @@ export {
|
|
|
389
394
|
lastActiveMs,
|
|
390
395
|
createArchivedRows
|
|
391
396
|
};
|
|
392
|
-
//# sourceMappingURL=chunk-
|
|
397
|
+
//# sourceMappingURL=chunk-CXCMATZG.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/core/sessions/session-wire.ts","../src/core/comments/linked-stores.ts","../src/core/sessions/session-meta.ts","../src/core/conversations/context-usage.ts","../src/core/conversations/session-title.ts"],"sourcesContent":["import fs from 'node:fs';\nimport { agentOf, agentWire } from '../agents/index.js';\nimport { readStatus } from '../status/session-status.js';\nimport { snoozeActive, type Snooze } from '../rail/snooze.js';\nimport { idleFrom, withLiveClaude } from '../status/session-status.js';\nimport path from 'node:path';\nimport { readSessionMeta } from './session-meta.js';\nimport { checkedOutBranch } from '../git/git-head.js';\nimport { sessionIdFor } from './web-state.js';\nimport { readContextUsage } from '../conversations/context-usage.js';\nimport { bestEffort } from '../platform/best-effort.js';\nimport type { WorktreeSession } from './history.js';\nimport type {\n DiffStat,\n SessionArchiveInfo,\n SessionAttention,\n SessionClaudes,\n SessionWire,\n BlockerWire,\n PrStageWire,\n} from '../api-types.js';\nimport { archiveDirFor, archivedByOf, keptList, readArchive } from '../archive/session-archive.js';\nimport { isArchiving, isRestoring } from '../archive/archiving.js';\nimport { sessionTitle } from '../conversations/session-title.js';\nimport { prStageOf, STAGE_WANTS_YOU, type StagePr } from '../pr/pr-stage.js';\nimport { isLeftover } from '../worktree/leftover.js';\nimport { recordedRepos, sessionRepos } from './session-repos.js';\nimport { getConfigPath, loadConfig, type WorkConfig } from '../platform/config.js';\n\n/**\n * One session as every client sees it — the dashboard's /api/sessions rows\n * and `work sessions --json` alike: identity, status, activity, comments,\n * context, archive state. Built in one place so the two can't drift.\n */\nexport interface SessionWireOptions {\n /** The session's `+N −M`, when the caller has one (the web cache). */\n diffStatFor?: (id: string, s: WorktreeSession, hasStatus: boolean) => DiffStat | null;\n /** Whether its Claude runs in the PTY host (the CLI asks the host; the\n * web server's pool knows it already). */\n ptyLive?: (id: string) => boolean;\n /** Its running Claudes, wherever they were started (live-claudes.ts). */\n claudesFor?: (id: string) => SessionClaudes | null;\n /** It shares its folder with another session that owns it\n * (shared-folders.ts): the folder's activity isn't this one's. */\n shadowed?: (id: string) => boolean;\n /** Unresolved review threads on its open PRs (the PR watch's last check). */\n reviewThreadsFor?: (id: string) => number;\n /** Reply drafts its Claude wrote for you to post (pr-replies.ts). */\n replyDraftsFor?: (id: string) => number;\n /** Where its PR stands (pr-stage.ts over the PR watch's last check), and whether you've seen it there. */\n prStageFor?: (id: string) => PrStageWire | null;\n /** You have notes on it (session-notes.ts). */\n hasNote?: (id: string) => boolean;\n /** What it waits on that isn't done yet (session-blocks.ts). */\n blockedByFor?: (id: string) => BlockerWire[];\n /** The running Claudes were read against a real process list, so \"none\" means none. */\n liveKnown?: boolean;\n /** A Claude of ours runs for it (PTY host), whether or not Claude Code's file shows it yet. */\n hostedLive?: (id: string) => boolean;\n /** A status read from its terminal output, for a tool with no hooks (output-status.ts). */\n outputStatusFor?: (id: string) => SessionAttention | null;\n /** Its snooze, if any (snooze-store.ts); shown only while it holds. */\n snoozeFor?: (id: string) => Snooze | null;\n /** How far behind main — or the session it is stacked on — it is (behind-main.ts's cache). */\n /** `lastActivity`: its agent's last write (ms; 0 none), so a session entered long ago but worked in today counts as in use. */\n behindFor?: (\n id: string,\n s: WorktreeSession,\n lastActivity: number,\n ) => { base: string; commits: number; conflicts: boolean; stacked?: true } | null;\n /** Where it sits in a stack (stack-sessions.ts). */\n stackFor?: (id: string) => {\n parent: { id: string; branch: string; title?: string } | null;\n children: number;\n merged?: { id: string; branch: string } | null;\n };\n}\n\nexport function sessionWire(s: WorktreeSession, opts: SessionWireOptions = {}): SessionWire {\n const id = sessionIdFor(s);\n const meta = readSessionMeta(id, s);\n const shadowed = opts.shadowed?.(id) ?? false;\n const claudes = shadowed ? null : (opts.claudesFor?.(id) ?? null);\n const reviewThreads = s.archivedAt ? 0 : (opts.reviewThreadsFor?.(id) ?? 0);\n const replyDrafts = s.archivedAt ? 0 : (opts.replyDraftsFor?.(id) ?? 0);\n const prStage = s.archivedAt ? null : (opts.prStageFor?.(id) ?? null);\n const wire: SessionWire = {\n id,\n target: s.target,\n branch: s.branch,\n isGroup: s.isGroup,\n paths: s.paths,\n repos: wireRepos(s),\n folder: s.isGroup,\n baseBranch: s.baseBranch,\n jiraKey: s.jiraKey,\n createdAt: s.createdAt,\n lastAccessedAt: s.lastAccessedAt,\n draftCount: meta.draftCount,\n commentCount: meta.commentCount,\n claudeCount: meta.claudeCount,\n ptyStatus: opts.ptyLive ? (opts.ptyLive(id) ? 'running' : 'idle') : meta.ptyStatus,\n lastActivity: shadowed ? null : meta.lastActivity,\n // A running Claude is open even when it writes nothing (idle at its prompt).\n activityState: shadowed\n ? 'stale'\n : claudes\n ? claudes.busy\n ? 'active'\n : meta.activityState === 'active'\n ? 'active'\n : 'open'\n : meta.activityState,\n ...(claudes ? { agents: claudes, claudes } : {}),\n agent: agentWire(agentOf(s)),\n ...(s.archivedAt ? archiveInfo(id) : {}),\n title: bestEffort(\n `title of ${s.target}:${s.branch}`,\n () => sessionTitle(s, s.archivedAt ? readArchive(id)?.summary.prompts[0]?.text : null),\n null,\n ),\n ...(s.title ? { titleIsYours: true } : {}),\n pendingForClaudeCount: meta.pendingForClaudeCount,\n // Claude Code's own state file over what the hooks recorded, when newer.\n attention:\n meta.attention && !shadowed && opts.claudesFor\n ? withLiveClaude(meta.attention, claudes, {\n known: opts.liveKnown === true,\n hosted: opts.hostedLive?.(id) ?? true,\n background: () => agentOf(s).conversation?.backgroundWorkSince?.(s, idleFrom(meta.attention!)) ?? null,\n })\n : (meta.attention ?? (shadowed || s.archivedAt ? null : (opts.outputStatusFor?.(id) ?? null))),\n diffStat: opts.diffStatFor ? opts.diffStatFor(id, s, meta.attention !== null) : null,\n archivedAt: s.archivedAt ?? null,\n port: s.port ?? null,\n context: s.archivedAt ? null : bestEffort(`context usage for ${s.target}:${s.branch}`, () => readContextUsage(s), null),\n ...(reviewThreads > 0 ? { openReviewThreads: reviewThreads } : {}),\n ...(replyDrafts > 0 ? { replyDrafts } : {}),\n ...(prStage ? { prStage } : {}),\n ...otherBranches(s),\n };\n // Snoozed: only while it holds (a time not yet reached, or the status it\n // was snoozed in). \"Its status\" is what the hooks recorded — the same the\n // snooze was taken against — not the shown one, which a live Claude's state\n // file can override (that would end a snooze the moment it was set).\n const snooze = s.archivedAt ? null : (opts.snoozeFor?.(id) ?? null);\n if (snooze && snoozeActive(snooze, { attention: readStatus(id), openReviewThreads: wire.openReviewThreads, prStage: wire.prStage }))\n wire.snoozed = { until: snooze.until };\n const behind = s.archivedAt ? null : (opts.behindFor?.(id, s, wire.lastActivity ?? 0) ?? null);\n if (behind && behind.commits > 0) wire.behind = behind;\n const stack = s.archivedAt ? null : (opts.stackFor?.(id) ?? null);\n if (stack?.parent) wire.stackedOn = stack.parent;\n if (stack?.children) wire.stackedChildren = stack.children;\n if (stack?.merged) wire.stackParentMerged = stack.merged;\n if (opts.hasNote?.(id)) wire.hasNote = true;\n if (isArchiving(id)) wire.archiving = true;\n if (!s.archivedAt && isAsleep(readStatus(id)?.stoppedAt, wire.ptyStatus === 'running', wire.lastActivity ?? 0)) wire.asleep = true;\n const blockers = s.archivedAt ? [] : (opts.blockedByFor?.(id) ?? []);\n if (blockers.length) wire.blockedBy = blockers;\n return wire;\n}\n\n/**\n * Asleep: work stopped its Claude (idle sleep, `work stop`: `stoppedAt`), it\n * isn't running now, and its conversation wasn't written since — one started\n * again (opened, sent a note, started in a terminal) is awake. Pure.\n */\nexport function isAsleep(stoppedAt: string | undefined, ptyRunning: boolean, lastActivityMs: number): boolean {\n const stopped = stoppedAt ? Date.parse(stoppedAt) : NaN;\n return Number.isFinite(stopped) && !ptyRunning && lastActivityMs <= stopped;\n}\n\n/** The row, marked Restoring while a Restore of it runs (a copy: archived rows are cached). */\nexport function withRestoring(w: SessionWire): SessionWire {\n return isRestoring(w.id) ? { ...w, restoring: true } : w;\n}\n\n/**\n * Its repos' aliases, one per path (`sessionRepos`). A recorded list needs no\n * config; a group's row from before reads the group's members from the\n * config, read once per change of the file (this runs per row of every list).\n */\nexport function wireRepos(\n s: Pick<WorktreeSession, 'target' | 'isGroup' | 'paths' | 'repos'>,\n config: () => Pick<WorkConfig, 'repos' | 'groups'> | null = repoConfig,\n): string[] {\n const recorded = recordedRepos(s);\n if (recorded) return recorded.map((r) => r.alias);\n return sessionRepos(s, s.isGroup ? config() : null).map((r) => r.alias);\n}\n\nlet configCache: { key: string; value: Pick<WorkConfig, 'repos' | 'groups'> | null } | null = null;\n\nfunction repoConfig(): Pick<WorkConfig, 'repos' | 'groups'> | null {\n const file = getConfigPath();\n let key: string;\n try {\n const st = fs.statSync(file);\n key = `${file}|${st.size}|${st.mtimeMs}`;\n } catch {\n return null;\n }\n if (configCache?.key === key) return configCache.value;\n const cfg = bestEffort('config for session repos', () => loadConfig(), null);\n configCache = { key, value: cfg ? { repos: cfg.repos, groups: cfg.groups } : null };\n return configCache.value;\n}\n\n/**\n * Repos of the session checked out on another branch than the session's\n * (read from HEAD files, no git). Ship and the PR watch follow the real\n * branch already; this is so the dashboard says so.\n */\nexport function otherBranches(s: Pick<WorktreeSession, 'branch' | 'paths' | 'target' | 'isGroup' | 'archivedAt'>): {\n onOtherBranch?: Array<{ repo: string; branch: string | null; noGit?: true }>;\n} {\n if (s.archivedAt || !s.branch) return {};\n const out: Array<{ repo: string; branch: string | null; noGit?: true }> = [];\n for (const p of s.paths) {\n if (!fs.existsSync(p)) continue;\n // A folder with no git left in it (a removal that stopped halfway) is on no branch at all.\n if (isLeftover(p)) {\n out.push({ repo: s.isGroup ? path.basename(p) : s.target, branch: null, noGit: true });\n continue;\n }\n const branch = checkedOutBranch(p);\n if (branch !== s.branch) out.push({ repo: s.isGroup ? path.basename(p) : s.target, branch });\n }\n return out.length ? { onOtherBranch: out } : {};\n}\n\n/** A session's unresolved review threads, from the PR watch's per-repo counts (open PRs only). */\nexport function reviewThreadsOf(ci: { repos: Array<{ pr: { state: string } | null; openThreads?: number }> } | null | undefined): number {\n return (ci?.repos ?? []).reduce((n, r) => n + (r.pr?.state === 'OPEN' ? (r.openThreads ?? 0) : 0), 0);\n}\n\n/** The `pr_watch_seen` key that says you saw a session at a PR stage. */\nexport const stageSeenKey = (stageKey: string) => `stage:${stageKey}`;\n\n/**\n * A session's PR stage from the PR watch's last check, with `seen` read only\n * for a stage that would bring it back to the Inbox (one lookup, not one per row).\n */\nexport function prStageWire(\n ci: { repos: Array<{ name: string; pr: StagePr | null }> } | null | undefined,\n seen: (key: string) => boolean,\n): PrStageWire | null {\n const stage = prStageOf(ci?.repos ?? []);\n if (!stage) return null;\n return STAGE_WANTS_YOU.has(stage.kind) && seen(stageSeenKey(stage.key)) ? { ...stage, seen: true } : stage;\n}\n\n/** Saved uncommitted files a Restore hasn't put back yet. */\nfunction savedFiles(saved: Record<string, { files: number; restoredAt?: string; restoreError?: string }> | undefined): {\n savedUncommitted?: number;\n} {\n const n = Object.values(saved ?? {})\n .filter((u) => !u.restoredAt && !u.restoreError)\n .reduce((sum, u) => sum + u.files, 0);\n return n ? { savedUncommitted: n } : {};\n}\n\nfunction archiveInfo(id: string): { archive?: SessionArchiveInfo } {\n const rec = readArchive(id);\n if (!rec) return {};\n const by = archivedByOf(rec);\n const kept = keptList(rec.kept);\n return {\n archive: {\n ...(by ? { by } : {}),\n worktreeRemoved: rec.worktreeRemoved,\n keptBecause: rec.keptBecause,\n promptCount: rec.summary.promptCount,\n prompts: rec.summary.prompts.map((p) => p.text),\n lastSummary: rec.summary.lastSummary,\n ...(rec.summary.written ? { written: rec.summary.written } : {}),\n ...(rec.buildFolders ? { buildFolders: rec.buildFolders } : {}),\n ...savedFiles(rec.uncommitted),\n ...(kept ? { kept } : {}),\n },\n };\n}\n\n/** Newest sign of life (ms): the hook update, Claude's last write, the\n * `work tree` entry — the same rule as the dashboard's \"Last active\". */\nexport function lastActiveMs(w: Pick<SessionWire, 'lastAccessedAt' | 'lastActivity' | 'attention'>): number {\n return Math.max(Date.parse(w.lastAccessedAt) || 0, w.lastActivity ?? 0, w.attention ? Date.parse(w.attention.updatedAt) || 0 : 0);\n}\n\n/**\n * Archived sessions' rows, kept between builds of the list: an archived\n * session doesn't change — its Claude is stopped, its worktree mostly gone —\n * and building its row reads its archive (2/3 of /api/sessions' time with\n * fifty of them). A row is built again when its archive file was written\n * (the summary lands after archiving, a Restore records what came back), it\n * was renamed or entered, or your note on it came or went.\n */\nexport function createArchivedRows(\n archiveFile: (id: string) => string = (id) => path.join(archiveDirFor(id), 'archive.json'),\n): (s: WorktreeSession, extra: { hasNote: boolean }, build: () => SessionWire) => SessionWire {\n const rows = new Map<string, { key: string; row: SessionWire }>();\n return (s, extra, build) => {\n if (!s.archivedAt) return build();\n const id = sessionIdFor(s);\n let mtime = 0;\n try {\n mtime = fs.statSync(archiveFile(id)).mtimeMs;\n } catch {\n /* none yet */\n }\n const key = `${s.archivedAt}|${mtime}|${s.title ?? ''}|${s.lastAccessedAt}|${extra.hasNote}`;\n const hit = rows.get(id);\n if (hit?.key === key) return hit.row;\n const row = build();\n rows.set(id, { key, row });\n return row;\n };\n}\n","import type { WorktreeSession } from '../sessions/history.js';\nimport { sessionIdFor } from '../sessions/session-id.js';\nimport { readStoresComments } from './comment-file-store.js';\nimport { scopeStoreIdsForPaths } from './pending-delivery.js';\nimport type { Comment } from './comment-types.js';\n\n/**\n * One worktree's comments live in two kinds of store: the session's own (the\n * dashboard's Diff tab posts there) and a `wd` scope's (`scope-<hash>`: the\n * browser diff page, `/diff/<hash>`, posts there). Claude was handed both\n * (`readPendingForWorktree`), but each view showed only its own, so a comment\n * made on one wasn't there on the other. Each view now lists its own store\n * first and the linked ones after: the session's view its scope stores, a\n * scope's view the session(s) whose worktree it covers.\n *\n * The stores stay separate — a new `wd -c` run clears its scope's comments\n * (`ensureScope`), which must never clear the session's.\n */\n\n/** A session as these lookups need it: its id (its store's) and its worktree paths. */\nexport interface LinkedSession {\n id: string;\n paths: string[];\n}\n\nexport const linkedSession = (s: WorktreeSession): LinkedSession => ({ id: sessionIdFor(s), paths: s.paths });\n\n/** The session's store, then every scope store over its paths. */\nexport function sessionLinkedStoreIds(session: LinkedSession): string[] {\n return [session.id, ...scopeStoreIdsForPaths(session.paths)];\n}\n\n/** The scope's store, then each session whose paths that scope covers (the whole worktree, or one repo of a group). */\nexport function scopeLinkedStoreIds(hash: string, sessions: LinkedSession[]): string[] {\n const own = `scope-${hash}`;\n return [own, ...new Set(sessions.filter((s) => scopeStoreIdsForPaths(s.paths).includes(own)).map((s) => s.id))];\n}\n\nexport type Read = (storeId: string) => Comment[];\n\n/** These stores read in one query (they're mostly empty: a scope store has rows only once its page was commented on). */\nexport function readerFor(storeIds: string[]): Read {\n const rows = readStoresComments(storeIds);\n return (id) => rows.get(id) ?? [];\n}\n\n/**\n * Every comment the view shows: the first store's whole, the linked ones'\n * without their drafts (a draft is that view's unsent review; this view's\n * Submit wouldn't send it). Oldest first, each comment once.\n */\nexport function linkedComments(storeIds: string[], read: Read = readerFor(storeIds)): Comment[] {\n const seen = new Set<string>();\n const out: Comment[] = [];\n storeIds.forEach((id, i) => {\n for (const c of read(id)) {\n if (seen.has(c.id) || (i > 0 && c.status === 'draft')) continue;\n seen.add(c.id);\n out.push(c);\n }\n });\n return out.sort((a, b) => a.createdAt.localeCompare(b.createdAt));\n}\n\n/** Which of these stores holds the comment (a delete, a resolve or a reply acts there), or null. */\nexport function storeHolding(storeIds: string[], commentId: string, read: Read = readerFor(storeIds)): string | null {\n return storeIds.find((id) => read(id).some((c) => c.id === commentId)) ?? null;\n}\n\n/** Who to tell a store changed: the sessions and scopes whose views list it. */\nexport function viewersOf(storeId: string, sessions: LinkedSession[]): { sessionIds: string[]; scopeHashes: string[] } {\n if (storeId.startsWith('scope-')) {\n return {\n sessionIds: [...new Set(sessions.filter((s) => scopeStoreIdsForPaths(s.paths).includes(storeId)).map((s) => s.id))],\n scopeHashes: [storeId.slice('scope-'.length)],\n };\n }\n const session = sessions.find((s) => s.id === storeId);\n return {\n sessionIds: [storeId],\n scopeHashes: session ? scopeStoreIdsForPaths(session.paths).map((id) => id.slice('scope-'.length)) : [],\n };\n}\n\n/** How a front-end tells a view its comments changed: a session's Diff tab by id, a scope page on its own stream. */\nexport interface Tell {\n session: (sessionId: string, data: Record<string, unknown>) => void;\n scope: (scopeHash: string, data: Record<string, unknown>) => void;\n}\n\n/** A store changed: every view listing it is told (both comment routes use this, so they can't drift apart). */\nexport function announceChange(storeId: string, sessions: LinkedSession[], tell: Tell, data: Record<string, unknown>): void {\n const { sessionIds, scopeHashes } = viewersOf(storeId, sessions);\n for (const sessionId of sessionIds) tell.session(sessionId, { ...data, sessionId });\n for (const scopeHash of scopeHashes) tell.scope(scopeHash, { ...data, scopeHash });\n}\n","import { peekPty } from '../pty/pty-pool.js';\nimport { sessionStatusView } from '../status/turn-activity.js';\nimport type { ActivityState } from '../api-types.js';\nimport { readSessionActivity } from './session-activity.js';\nimport { linkedComments, sessionLinkedStoreIds } from '../comments/linked-stores.js';\nimport { readPendingForWorktree } from '../comments/pending-delivery.js';\nimport type { WorktreeSession } from './history.js';\nimport { readStatus, type EffectiveStatus } from '../status/session-status.js';\n\nexport type { PtyStatus } from '../api-types.js';\nimport type { PtyStatus } from '../api-types.js';\n\nexport interface SessionMeta {\n draftCount: number;\n /** Open comment threads (top-level, not resolved): the Diff tab's badge. */\n commentCount: number;\n /** Comments authored by claude — used by the client to compute unread. */\n claudeCount: number;\n /** Set when *our* PTY pool has a live Claude for this session. Doesn't\n * catch external terminals — `activityState` does. */\n ptyStatus: PtyStatus;\n /** ms since epoch of Claude's last write across this worktree, or null. */\n lastActivity: number | null;\n /** Derived from `lastActivity`: 'active' (≤30 s), 'open' (≤5 min), 'stale'. */\n activityState: ActivityState;\n /** Published user comments not yet surfaced to Claude via the\n * UserPromptSubmit hook. Drops to zero after Claude takes its next turn. */\n pendingForClaudeCount: number;\n /** Hook-driven agent status for the attention inbox; null until the\n * session's Claude has fired a hook under a full `work web`. */\n attention: EffectiveStatus | null;\n}\n\n/**\n * Cheap per-session metadata. Goes through the file-store cache so badge\n * counts reflect in-flight writes that haven't yet hit disk — reading the\n * raw JSON behind the cache's back produced stale counts under load.\n *\n * `session` is required because we need the worktree paths to look up\n * Claude's transcript directory (the sessionId hash alone isn't enough).\n */\nexport function readSessionMeta(sessionId: string, session: WorktreeSession): SessionMeta {\n // As the Diff tab lists them: with those made on the browser diff page (linked-stores.ts).\n const comments = linkedComments(sessionLinkedStoreIds({ id: sessionId, paths: session.paths }));\n let drafts = 0;\n let claude = 0;\n let open = 0;\n for (const c of comments) {\n if (c.status === 'draft') drafts++;\n if (c.author === 'claude') claude++;\n // The Diff tab's badge: threads still open. One Claude worked through is resolved (resolveAddressed).\n if (!c.parentId && !c.resolved) open++;\n }\n const activity = readSessionActivity(session);\n // What the hooks will hand over: the session's and its scopes' (readPendingForWorktree), as the badges count.\n const pending = readPendingForWorktree(session, sessionId).length;\n const status = readStatus(sessionId);\n return {\n draftCount: drafts,\n commentCount: open,\n claudeCount: claude,\n ptyStatus: peekPty(sessionId) ? 'running' : 'idle',\n lastActivity: activity.lastActivity,\n activityState: activity.state,\n pendingForClaudeCount: pending,\n attention: status ? sessionStatusView(status, session, activity.lastActivity ?? 0) : null,\n };\n}\n","import { readJsonlTail } from './jsonl.js';\nimport { agentOf } from '../agents/index.js';\nimport type { ConversationEntry } from '../agents/types.js';\nimport type { ContextUsage } from '../api-types.js';\nimport type { WorktreeSession } from '../sessions/session-types.js';\n\nexport type { ContextUsage } from '../api-types.js';\n\n/**\n * How full a session's conversation is. Every assistant message in the\n * transcript carries the token usage of the request that produced it, so\n * the newest one says how big the context is now: its prompt (input +\n * cache reads + cache writes) plus its reply, which the next turn carries.\n * Near the window Claude Code compacts the conversation, and answers get\n * worse before that — the dashboard shows when to start fresh.\n */\n\n/** From conversation entries (oldest first): the newest main-thread usage, in the agent's window (`window`). */\nexport function contextUsageFrom(\n entries: readonly ConversationEntry[],\n window: (model: string | undefined, used: number) => number,\n): ContextUsage | null {\n for (let i = entries.length - 1; i >= 0; i--) {\n const e = entries[i];\n // Subagent (Task) turns run in their own context.\n if (e.role !== 'agent' || e.sidechain || !e.usage) continue;\n const used = e.usage.prompt + e.usage.reply;\n if (used === 0) continue;\n return { used, window: window(e.model, used), ...(e.model ? { model: e.model } : {}) };\n }\n return null;\n}\n\n// Claude Code's transcript files, for the callers that still read Claude's own records (turn activity): agents/claude-files.ts.\nexport type { ConversationFile as TranscriptFile } from '../agents/types.js';\n\n/** Only the tail is read — a usage line is always near the end. */\nconst USAGE_TAIL_BYTES = 64 * 1024;\nconst cache = new Map<string, { key: string; usage: ContextUsage | null }>();\n\n/** The session's context usage now, through its agent; re-reads a conversation only after it changed. Null when work can't read its agent's conversations. */\nexport function readContextUsage(session: WorktreeSession): ContextUsage | null {\n const conv = agentOf(session).conversation;\n if (!conv) return null;\n let t: { file: string; size: number; mtimeMs: number } | null = null;\n for (const f of conv.files(session)) if (!t || f.mtimeMs > t.mtimeMs) t = f;\n if (!t) return null;\n const key = `${t.file}:${t.size}:${t.mtimeMs}`;\n const id = session.paths.join('|');\n const hit = cache.get(id);\n if (hit?.key === key) return hit.usage;\n const usage = contextUsageFrom(conv.entries(readJsonlTail(t.file, USAGE_TAIL_BYTES)), conv.contextWindow);\n cache.set(id, { key, usage });\n return usage;\n}\n","import fs from 'node:fs';\nimport { promptsSince } from './digest.js';\nimport { agentOf } from '../agents/index.js';\nimport type { ConversationEntry } from '../agents/types.js';\nimport type { WorktreeSession } from '../sessions/session-types.js';\n\n/**\n * A human name for a session, beside its branch: the name you gave it, or\n * else what you first asked its Claude (\"Rotate the terminal encryption\n * keys\"), or else its Jira key. Worked out when read — the first prompt is\n * read from the start of its oldest transcript, cached per file — so a GET\n * writes nothing; only a rename is stored.\n */\n\nconst TITLE_CHARS = 80;\nconst HEAD_BYTES = 256 * 1024;\nconst cache = new Map<string, { size: number; title: string | null }>();\n\n/** The first prompt in a conversation file (read from its start), its lines read by `toEntries` (the agent's). */\nexport function firstPromptOf(file: string, toEntries: (lines: readonly unknown[]) => ConversationEntry[]): string | null {\n let size: number;\n try {\n size = fs.statSync(file).size;\n } catch {\n return null;\n }\n const hit = cache.get(file);\n // The start of a file doesn't change as it grows, unless it was replaced\n // (smaller). \"No prompt in it\" holds as long as the file is the same, or\n // its whole head was read already: re-reading 256 KB of every such\n // transcript on every session-list build cost the most of all.\n if (hit && size >= hit.size && (hit.title !== null || size === hit.size || hit.size >= HEAD_BYTES)) return hit.title;\n let text: string;\n try {\n const fd = fs.openSync(file, 'r');\n try {\n const buf = Buffer.alloc(Math.min(size, HEAD_BYTES));\n fs.readSync(fd, buf, 0, buf.length, 0);\n text = buf.toString('utf8');\n } finally {\n fs.closeSync(fd);\n }\n } catch {\n return null;\n }\n const lines: unknown[] = [];\n for (const line of text.split('\\n')) {\n try {\n lines.push(JSON.parse(line));\n } catch {\n /* the last, cut-off line */\n }\n }\n const first = promptsSince([toEntries(lines)], 0)[0]?.text ?? null;\n const readable = first ? titleText(first) : null;\n const title = readable ? clip(readable) : null;\n cache.set(file, { size, title });\n return title;\n}\n\nconst clip = (s: string) => (s.length > TITLE_CHARS ? s.slice(0, TITLE_CHARS - 1).trimEnd() + '…' : s);\n\n/**\n * A prompt as a name: what you wrote, without markup. A pasted block\n * (`<pasted_content …>…</pasted_content>`, a log or code you pasted) is left\n * out when you also wrote something; a prompt that is only a paste keeps its\n * text. Other tags are dropped, their text kept. Null when nothing is left.\n */\nexport function titleText(prompt: string): string | null {\n const flat = (s: string) =>\n s\n .replace(/<\\/?[A-Za-z][\\w-]*(?:\\s[^>]*)?>/g, ' ')\n .replace(/\\s+/g, ' ')\n .trim();\n const outside = flat(prompt.replace(/<pasted_content\\b[^>]*>[\\s\\S]*?<\\/pasted_content>/g, ' '));\n const text = outside || flat(prompt);\n return text ? text : null;\n}\n\n/** The session's name: yours, else its first prompt, else its Jira key. */\nexport function sessionTitle(s: WorktreeSession, fallbackPrompt?: string | null): string | null {\n if (s.title?.trim()) return s.title.trim();\n const conv = agentOf(s).conversation;\n const oldestFirst = (conv?.files(s) ?? []).sort((a, b) => a.mtimeMs - b.mtimeMs);\n for (const t of oldestFirst) {\n const p = firstPromptOf(t.file, conv!.entries);\n if (p) return p;\n }\n const fallback = fallbackPrompt ? titleText(fallbackPrompt) : null;\n if (fallback) return clip(fallback);\n return s.jiraKey ?? null;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAOA,SAAQ;AAKf,OAAO,UAAU;;;ACoBV,IAAM,gBAAgB,CAAC,OAAuC,EAAE,IAAI,aAAa,CAAC,GAAG,OAAO,EAAE,MAAM;AAGpG,SAAS,sBAAsB,SAAkC;AACtE,SAAO,CAAC,QAAQ,IAAI,GAAG,sBAAsB,QAAQ,KAAK,CAAC;AAC7D;AAGO,SAAS,oBAAoB,MAAc,UAAqC;AACrF,QAAM,MAAM,SAAS,IAAI;AACzB,SAAO,CAAC,KAAK,GAAG,IAAI,IAAI,SAAS,OAAO,CAAC,MAAM,sBAAsB,EAAE,KAAK,EAAE,SAAS,GAAG,CAAC,EAAE,IAAI,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;AAChH;AAKO,SAAS,UAAU,UAA0B;AAClD,QAAM,OAAO,mBAAmB,QAAQ;AACxC,SAAO,CAAC,OAAO,KAAK,IAAI,EAAE,KAAK,CAAC;AAClC;AAOO,SAAS,eAAe,UAAoB,OAAa,UAAU,QAAQ,GAAc;AAC9F,QAAM,OAAO,oBAAI,IAAY;AAC7B,QAAM,MAAiB,CAAC;AACxB,WAAS,QAAQ,CAAC,IAAI,MAAM;AAC1B,eAAW,KAAK,KAAK,EAAE,GAAG;AACxB,UAAI,KAAK,IAAI,EAAE,EAAE,KAAM,IAAI,KAAK,EAAE,WAAW,QAAU;AACvD,WAAK,IAAI,EAAE,EAAE;AACb,UAAI,KAAK,CAAC;AAAA,IACZ;AAAA,EACF,CAAC;AACD,SAAO,IAAI,KAAK,CAAC,GAAG,MAAM,EAAE,UAAU,cAAc,EAAE,SAAS,CAAC;AAClE;AAGO,SAAS,aAAa,UAAoB,WAAmB,OA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,EAAE,IAAI,EAAE,cAAc,IAAI,MAAM,OAAO;AAC1F,UAAM,MAAM,KAAK,IAAI,EAAE;AACvB,QAAI,KAAK,QAAQ,IAAK,QAAO,IAAI;AACjC,UAAM,MAAM,MAAM;AAClB,SAAK,IAAI,IAAI,EAAE,KAAK,IAAI,CAAC;AACzB,WAAO;AAAA,EACT;AACF;","names":["fs","cache","fs"]}
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
import {
|
|
3
3
|
isPidAlive,
|
|
4
4
|
spawnDetachedWork
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-VESYLAVA.js";
|
|
6
6
|
import {
|
|
7
7
|
ensureFile,
|
|
8
8
|
getConfigDir,
|
|
9
9
|
withFileLock
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-RYEPQLXQ.js";
|
|
11
11
|
|
|
12
12
|
// src/core/pty/pty-host-protocol.ts
|
|
13
13
|
import fs from "fs";
|
|
@@ -244,4 +244,4 @@ export {
|
|
|
244
244
|
ensureHost,
|
|
245
245
|
PtyHostClient
|
|
246
246
|
};
|
|
247
|
-
//# sourceMappingURL=chunk-
|
|
247
|
+
//# sourceMappingURL=chunk-DAQCIJHW.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
sessionIdFor
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-JF72AS6T.js";
|
|
5
5
|
|
|
6
6
|
// src/core/worktree/session-folder.ts
|
|
7
7
|
import path from "path";
|
|
@@ -30,4 +30,4 @@ export {
|
|
|
30
30
|
sessionFolderPath,
|
|
31
31
|
flatFolderOwner
|
|
32
32
|
};
|
|
33
|
-
//# sourceMappingURL=chunk-
|
|
33
|
+
//# sourceMappingURL=chunk-EUAJT7FS.js.map
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
json,
|
|
7
7
|
tx,
|
|
8
8
|
withDb
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-JF72AS6T.js";
|
|
10
10
|
|
|
11
11
|
// src/core/comments/comment-file-store.ts
|
|
12
12
|
function isComment(x) {
|
|
@@ -137,4 +137,4 @@ export {
|
|
|
137
137
|
getCommentFileStore,
|
|
138
138
|
moveStoreComments
|
|
139
139
|
};
|
|
140
|
-
//# sourceMappingURL=chunk-
|
|
140
|
+
//# sourceMappingURL=chunk-EYUBVLPF.js.map
|
|
@@ -8,13 +8,13 @@ import {
|
|
|
8
8
|
} from "./chunk-HMK3INUS.js";
|
|
9
9
|
import {
|
|
10
10
|
recordedRepos
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-JUMZ5MTU.js";
|
|
12
12
|
import {
|
|
13
13
|
atomicWriteFile,
|
|
14
14
|
getConfigDir,
|
|
15
15
|
getConfigPath,
|
|
16
16
|
withFileLock
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-RYEPQLXQ.js";
|
|
18
18
|
|
|
19
19
|
// src/core/worktree/repo-admin.ts
|
|
20
20
|
import fs from "fs";
|
|
@@ -166,4 +166,4 @@ export {
|
|
|
166
166
|
saveGroup,
|
|
167
167
|
deleteGroup
|
|
168
168
|
};
|
|
169
|
-
//# sourceMappingURL=chunk-
|
|
169
|
+
//# sourceMappingURL=chunk-G5W6D7KQ.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-RCYI7SRA.js";
|
|
5
5
|
import {
|
|
6
6
|
debug
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-75MIXOUK.js";
|
|
8
8
|
|
|
9
9
|
// src/core/git/git.ts
|
|
10
10
|
import { execFile } from "child_process";
|
|
@@ -203,4 +203,4 @@ export {
|
|
|
203
203
|
fetchRemoteAsync,
|
|
204
204
|
getUnpushedCommits
|
|
205
205
|
};
|
|
206
|
-
//# sourceMappingURL=chunk-
|
|
206
|
+
//# sourceMappingURL=chunk-G635EV2D.js.map
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
git
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-G635EV2D.js";
|
|
5
5
|
import {
|
|
6
6
|
writeTempTree
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-JUMZ5MTU.js";
|
|
8
8
|
import {
|
|
9
9
|
spawn_default
|
|
10
10
|
} from "./chunk-RCYI7SRA.js";
|
|
11
11
|
import {
|
|
12
12
|
report
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ZGXRWL7T.js";
|
|
14
14
|
|
|
15
15
|
// src/core/diff/diff-pipeline.ts
|
|
16
16
|
import fs2 from "fs";
|
|
@@ -534,4 +534,4 @@ export {
|
|
|
534
534
|
computeDiff,
|
|
535
535
|
computeRangeDiff
|
|
536
536
|
};
|
|
537
|
-
//# sourceMappingURL=chunk-
|
|
537
|
+
//# sourceMappingURL=chunk-G7TS5DCS.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
sessionIdFor,
|
|
8
8
|
tx,
|
|
9
9
|
withDb
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-JF72AS6T.js";
|
|
11
11
|
import {
|
|
12
12
|
DEFAULT_TIME_SETTINGS,
|
|
13
13
|
isIssueKey,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
loadConfig,
|
|
17
17
|
suggestDay,
|
|
18
18
|
totalHours
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-RYEPQLXQ.js";
|
|
20
20
|
|
|
21
21
|
// src/core/time/classify.ts
|
|
22
22
|
import { createHash } from "crypto";
|
|
@@ -794,4 +794,4 @@ export {
|
|
|
794
794
|
describeDayNow,
|
|
795
795
|
postStoredDay
|
|
796
796
|
};
|
|
797
|
-
//# sourceMappingURL=chunk-
|
|
797
|
+
//# sourceMappingURL=chunk-GTVQYGY3.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
sessionStatusView
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-4IEQ7LY4.js";
|
|
5
5
|
import {
|
|
6
6
|
buildDigest,
|
|
7
7
|
loadHistory,
|
|
@@ -11,15 +11,15 @@ import {
|
|
|
11
11
|
readStatus,
|
|
12
12
|
scopeHashForPaths,
|
|
13
13
|
workSteps
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-JUMZ5MTU.js";
|
|
15
15
|
import {
|
|
16
16
|
agentOf,
|
|
17
17
|
lineTimeOf,
|
|
18
18
|
readJsonlSince
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-VESYLAVA.js";
|
|
20
20
|
import {
|
|
21
21
|
sessionIdFor
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-JF72AS6T.js";
|
|
23
23
|
|
|
24
24
|
// src/core/conversations/digest-source.ts
|
|
25
25
|
function digestWindow(sinceMs, now = Date.now()) {
|
|
@@ -99,4 +99,4 @@ function createDigestSource(deps = {}) {
|
|
|
99
99
|
export {
|
|
100
100
|
createDigestSource
|
|
101
101
|
};
|
|
102
|
-
//# sourceMappingURL=chunk-
|
|
102
|
+
//# sourceMappingURL=chunk-H756AOOW.js.map
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
runInternal
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-KWRE6HQN.js";
|
|
5
5
|
import {
|
|
6
6
|
messageOf,
|
|
7
7
|
readStatus
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-JUMZ5MTU.js";
|
|
9
9
|
import {
|
|
10
10
|
agentOf,
|
|
11
11
|
lineTimeOf,
|
|
12
12
|
readJsonlSince
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-VESYLAVA.js";
|
|
14
14
|
import {
|
|
15
15
|
sessionIdFor
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-JF72AS6T.js";
|
|
17
17
|
|
|
18
18
|
// src/core/conversations/catch-up-deps.ts
|
|
19
19
|
var askCatchUp = (prompt) => runInternal(prompt, 9e4);
|
|
@@ -100,4 +100,4 @@ export {
|
|
|
100
100
|
cachedCatchUp,
|
|
101
101
|
catchUp
|
|
102
102
|
};
|
|
103
|
-
//# sourceMappingURL=chunk-
|
|
103
|
+
//# sourceMappingURL=chunk-I5V34WWS.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
report
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ZGXRWL7T.js";
|
|
5
5
|
import {
|
|
6
6
|
getConfigDir
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-RYEPQLXQ.js";
|
|
8
8
|
|
|
9
9
|
// src/core/sessions/session-id.ts
|
|
10
10
|
import crypto from "crypto";
|
|
@@ -375,4 +375,4 @@ export {
|
|
|
375
375
|
purgeSessionRows,
|
|
376
376
|
json
|
|
377
377
|
};
|
|
378
|
-
//# sourceMappingURL=chunk-
|
|
378
|
+
//# sourceMappingURL=chunk-JF72AS6T.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
killTree,
|
|
8
8
|
processName,
|
|
9
9
|
readJsonlTail
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-VESYLAVA.js";
|
|
11
11
|
import {
|
|
12
12
|
spawn_default
|
|
13
13
|
} from "./chunk-RCYI7SRA.js";
|
|
@@ -20,20 +20,20 @@ import {
|
|
|
20
20
|
sessionIdFor,
|
|
21
21
|
tx,
|
|
22
22
|
withDb
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-JF72AS6T.js";
|
|
24
24
|
import {
|
|
25
25
|
report
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-ZGXRWL7T.js";
|
|
27
27
|
import {
|
|
28
28
|
debugLog
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-75MIXOUK.js";
|
|
30
30
|
import {
|
|
31
31
|
atomicWriteFile,
|
|
32
32
|
ensureFile,
|
|
33
33
|
getConfigDir,
|
|
34
34
|
loadConfig,
|
|
35
35
|
withFileLock
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-RYEPQLXQ.js";
|
|
37
37
|
|
|
38
38
|
// src/core/sessions/history.ts
|
|
39
39
|
import fs10 from "fs";
|
|
@@ -689,6 +689,9 @@ function turnInProgress(s) {
|
|
|
689
689
|
const ended = s.turnEndedAt ? Date.parse(s.turnEndedAt) : NaN;
|
|
690
690
|
return !(ended >= Date.parse(s.since));
|
|
691
691
|
}
|
|
692
|
+
async function markAgentStopped(sessionId, now = /* @__PURE__ */ new Date()) {
|
|
693
|
+
await updateStatus(sessionId, (prev) => prev ? { ...prev, stoppedAt: now.toISOString() } : prev);
|
|
694
|
+
}
|
|
692
695
|
async function markSeen(sessionId) {
|
|
693
696
|
const { next } = await updateStatus(
|
|
694
697
|
sessionId,
|
|
@@ -2567,6 +2570,7 @@ export {
|
|
|
2567
2570
|
readStatus,
|
|
2568
2571
|
recordStatusEvent,
|
|
2569
2572
|
turnInProgress,
|
|
2573
|
+
markAgentStopped,
|
|
2570
2574
|
markSeen,
|
|
2571
2575
|
notifyKindForTransition,
|
|
2572
2576
|
readSnooze,
|
|
@@ -2656,4 +2660,4 @@ export {
|
|
|
2656
2660
|
mergeHydratedSessions,
|
|
2657
2661
|
forgetOtherBaseCheckoutEntries
|
|
2658
2662
|
};
|
|
2659
|
-
//# sourceMappingURL=chunk-
|
|
2663
|
+
//# sourceMappingURL=chunk-JUMZ5MTU.js.map
|