@moberg_hr/work-tree 2.4.1 → 2.5.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/{add-repo-5SYBDVG2.js → add-repo-ABDXRREO.js} +8 -8
- package/dist/{answer-OA2WTJCZ.js → answer-IIFJ7HCK.js} +6 -6
- package/dist/{attach-5GXPA7BV.js → attach-G5GSPO2N.js} +9 -9
- package/dist/bin.js +2 -2
- package/dist/{block-VINEC2MW.js → block-I6J7M35E.js} +6 -6
- package/dist/{broadcast-ENAJDNVU.js → broadcast-IMVRPJYV.js} +3 -3
- package/dist/{catchup-NC4WHSBF.js → catchup-RFCCKZJA.js} +8 -8
- package/dist/{chunk-RFQRVXFQ.js → chunk-2FZFE4LF.js} +5 -4
- package/dist/chunk-2FZFE4LF.js.map +1 -0
- package/dist/{chunk-L3JK6V5I.js → chunk-3XSMLS3U.js} +2 -2
- package/dist/{chunk-MM32YZT6.js → chunk-4RNDBBQQ.js} +3 -3
- package/dist/{chunk-PLOO7NQU.js → chunk-5LXZ6XDZ.js} +4 -4
- package/dist/{chunk-GDCTRDUY.js → chunk-5XARBHTZ.js} +3 -3
- package/dist/{chunk-JCCGLFMU.js → chunk-5YR4JLHI.js} +3 -3
- package/dist/{chunk-M2TQNGMD.js → chunk-62JFNWJO.js} +4 -4
- package/dist/{chunk-VES42DOD.js → chunk-6THPN6HD.js} +3 -3
- package/dist/{chunk-4VNUU6S6.js → chunk-7LW4VIVW.js} +2 -2
- package/dist/chunk-AG3PDVV3.js +9 -0
- package/dist/{chunk-AC6N2EIN.js → chunk-AP7DVLR7.js} +5 -5
- package/dist/{chunk-R7334LAS.js → chunk-AQKB2NHY.js} +3 -3
- package/dist/{chunk-ZHKE637Q.js → chunk-AS24L2DD.js} +5 -4
- package/dist/chunk-AS24L2DD.js.map +1 -0
- package/dist/{chunk-I2TUJLI4.js → chunk-DK24BDE5.js} +4 -4
- package/dist/{chunk-BURVDS7U.js → chunk-EBLCO5JI.js} +2 -2
- package/dist/{chunk-EASMYJG3.js → chunk-EJ3OIGHN.js} +5 -5
- package/dist/{chunk-3Q6S6TRY.js → chunk-GD2APVSL.js} +2 -2
- package/dist/{chunk-3KOYICWB.js → chunk-I4GZY3DJ.js} +3 -3
- package/dist/{chunk-4ETSGWB2.js → chunk-J5J4RR25.js} +2 -2
- package/dist/{chunk-JCMGIW7G.js → chunk-JG3J5TLB.js} +20 -11
- package/dist/chunk-JG3J5TLB.js.map +1 -0
- package/dist/{chunk-JDW4GXEA.js → chunk-JUI6JND2.js} +2 -2
- package/dist/{chunk-65YMLGQB.js → chunk-JWUZLG53.js} +4 -4
- package/dist/{chunk-IOSB2HMV.js → chunk-JXJLU4BM.js} +3 -3
- package/dist/{chunk-MAFJE26N.js → chunk-KGZRNWEN.js} +2 -2
- package/dist/{chunk-WUJJ2FTK.js → chunk-LENB3INO.js} +2 -2
- package/dist/{chunk-YDYHURVA.js → chunk-NJT26JI3.js} +2 -2
- package/dist/{chunk-DHBKD2TG.js → chunk-NWUNF4YG.js} +2 -2
- package/dist/{chunk-ZFSV65M5.js → chunk-NZ7HCBSL.js} +2 -2
- package/dist/{chunk-FXIEYT6L.js → chunk-O7B7AY4E.js} +6 -6
- package/dist/{chunk-BO3BNBBE.js → chunk-PSDJJSEP.js} +2 -2
- package/dist/{chunk-3NISM3OI.js → chunk-QX4MJKHW.js} +3 -3
- package/dist/{chunk-45X4QO4V.js → chunk-SMSDA5MG.js} +5 -5
- package/dist/{chunk-SBRHGEFP.js → chunk-TS2QC2PB.js} +2 -2
- package/dist/{chunk-XEIREYW6.js → chunk-UKKEP4SQ.js} +9 -9
- package/dist/{chunk-6KM2C2UO.js → chunk-V5ASWB23.js} +2 -2
- package/dist/{chunk-ZKOI6PH4.js → chunk-WJD7Y3VK.js} +48 -48
- package/dist/{chunk-3HBHM2VX.js → chunk-WL56M7P3.js} +2 -2
- package/dist/{chunk-3IOIY4W6.js → chunk-WXTXARTF.js} +2 -2
- package/dist/{chunk-LYKWTHOD.js → chunk-XP4Q6MEE.js} +7 -7
- package/dist/chunk-XP4Q6MEE.js.map +1 -0
- package/dist/{chunk-WOAFMVKW.js → chunk-YNDRERWN.js} +2 -2
- package/dist/{cleanup-7VJ4KUMR.js → cleanup-BOBOH2XG.js} +16 -16
- package/dist/{cli-HTBQ4DSS.js → cli-ASRLAJNI.js} +3 -3
- package/dist/{config-CREG6OI3.js → config-ZOO2MPPY.js} +5 -5
- package/dist/{diff-UYXZID2B.js → diff-WMG5GQ46.js} +7 -7
- package/dist/{digest-I5Z6W2EP.js → digest-E2LJN4SG.js} +6 -6
- package/dist/{fork-5AOB45N2.js → fork-BE5VJHBL.js} +15 -15
- package/dist/{history-3LFLB4FO.js → history-N4W3UAH3.js} +3 -3
- package/dist/{hook-SJOCXGLD.js → hook-LKVA7KVD.js} +6 -6
- package/dist/{hydrate-YEJCVZZ7.js → hydrate-WEMCIMUC.js} +3 -3
- package/dist/{init-6F67TVM7.js → init-66R2VBIQ.js} +4 -4
- package/dist/{install-skills-ESCNSPBY.js → install-skills-K3EXVLOV.js} +3 -3
- package/dist/install-skills-bin.js +2 -2
- package/dist/{list-NHZUEVTA.js → list-X2VLHUUB.js} +3 -3
- package/dist/{move-JICK4XA5.js → move-AJRJOLKP.js} +7 -7
- package/dist/{note-KZMWEGZP.js → note-GHT64Y55.js} +5 -5
- package/dist/{overlaps-O353DOQI.js → overlaps-5N2J56SJ.js} +5 -5
- package/dist/{pin-7CON36HF.js → pin-H7CBIDO3.js} +5 -5
- package/dist/{pr-4KUGJDZ2.js → pr-IURQGBVB.js} +5 -5
- package/dist/{prune-KQ77276H.js → prune-UKZKLXSO.js} +15 -15
- package/dist/{pty-host-MSCJGN5G.js → pty-host-HNCNBP5S.js} +6 -6
- package/dist/{read-J42H6OVE.js → read-MNZ524CE.js} +5 -5
- package/dist/{recent-BZQP3RKA.js → recent-2FGSNBJZ.js} +4 -4
- package/dist/{remove-GRRKSGS7.js → remove-QKOVNBBC.js} +14 -14
- package/dist/{restart-REFEZGH2.js → restart-PYKMWD5S.js} +6 -6
- package/dist/{resume-RGP2BCKL.js → resume-GVWN35RW.js} +4 -4
- package/dist/{run-WYDFP6EL.js → run-YSOH2VK5.js} +3 -3
- package/dist/{screen-YWJLDINC.js → screen-LCQP4FAS.js} +6 -6
- package/dist/{search-M4DU4GUB.js → search-EQXCM3SE.js} +3 -3
- package/dist/{section-AYN6EHPO.js → section-FKNRQ6OB.js} +5 -5
- package/dist/{send-O3SI53O7.js → send-NWPMDDUM.js} +7 -7
- package/dist/{sessions-4BASM7AC.js → sessions-7RO63IRD.js} +13 -12
- package/dist/sessions-7RO63IRD.js.map +1 -0
- package/dist/{snooze-F3NT7PZO.js → snooze-2G5V6AKP.js} +5 -5
- package/dist/{start-7OQNLGDU.js → start-BQQOHNLO.js} +6 -6
- package/dist/{status-HLOEWXJ3.js → status-YDDVUQIQ.js} +3 -3
- package/dist/{stop-YRGANOU7.js → stop-H6UXMR7N.js} +6 -6
- package/dist/{sync-YDK5R7XQ.js → sync-3OK2TBT7.js} +15 -15
- package/dist/{time-T5RBWMDN.js → time-65NYXE7O.js} +6 -6
- package/dist/{timesheet-UB6OASXF.js → timesheet-4ZBQQUXK.js} +8 -8
- package/dist/{tree-DRDDTXQ2.js → tree-GFYZIBHI.js} +13 -13
- package/dist/{update-S57YQGPG.js → update-W3LXJMZ3.js} +7 -7
- package/dist/{wait-2CRY7XQ5.js → wait-IZBQ6S4U.js} +6 -6
- package/dist/wd-bin.js +2 -2
- package/dist/web/assets/{PtyView-DAqdRe88.js → PtyView-DLwkOlkI.js} +2 -2
- package/dist/web/assets/{PtyView-DAqdRe88.js.map → PtyView-DLwkOlkI.js.map} +1 -1
- package/dist/web/assets/index-D8JDBGFK.css +1 -0
- package/dist/web/assets/{index-DGXvjEJe.js → index-DyG3WDLN.js} +51 -51
- package/dist/web/assets/index-DyG3WDLN.js.map +1 -0
- package/dist/web/index.html +2 -2
- package/dist/{web-OG6ZPJON.js → web-UEX2BONT.js} +55 -36
- package/dist/{web-OG6ZPJON.js.map → web-UEX2BONT.js.map} +1 -1
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
- package/dist/chunk-BUCSF4QS.js +0 -9
- package/dist/chunk-JCMGIW7G.js.map +0 -1
- package/dist/chunk-LYKWTHOD.js.map +0 -1
- package/dist/chunk-RFQRVXFQ.js.map +0 -1
- package/dist/chunk-ZHKE637Q.js.map +0 -1
- package/dist/sessions-4BASM7AC.js.map +0 -1
- package/dist/web/assets/index-CDYWfNo_.css +0 -1
- package/dist/web/assets/index-DGXvjEJe.js.map +0 -1
- /package/dist/{add-repo-5SYBDVG2.js.map → add-repo-ABDXRREO.js.map} +0 -0
- /package/dist/{answer-OA2WTJCZ.js.map → answer-IIFJ7HCK.js.map} +0 -0
- /package/dist/{attach-5GXPA7BV.js.map → attach-G5GSPO2N.js.map} +0 -0
- /package/dist/{block-VINEC2MW.js.map → block-I6J7M35E.js.map} +0 -0
- /package/dist/{broadcast-ENAJDNVU.js.map → broadcast-IMVRPJYV.js.map} +0 -0
- /package/dist/{catchup-NC4WHSBF.js.map → catchup-RFCCKZJA.js.map} +0 -0
- /package/dist/{chunk-L3JK6V5I.js.map → chunk-3XSMLS3U.js.map} +0 -0
- /package/dist/{chunk-MM32YZT6.js.map → chunk-4RNDBBQQ.js.map} +0 -0
- /package/dist/{chunk-PLOO7NQU.js.map → chunk-5LXZ6XDZ.js.map} +0 -0
- /package/dist/{chunk-GDCTRDUY.js.map → chunk-5XARBHTZ.js.map} +0 -0
- /package/dist/{chunk-JCCGLFMU.js.map → chunk-5YR4JLHI.js.map} +0 -0
- /package/dist/{chunk-M2TQNGMD.js.map → chunk-62JFNWJO.js.map} +0 -0
- /package/dist/{chunk-VES42DOD.js.map → chunk-6THPN6HD.js.map} +0 -0
- /package/dist/{chunk-4VNUU6S6.js.map → chunk-7LW4VIVW.js.map} +0 -0
- /package/dist/{chunk-BUCSF4QS.js.map → chunk-AG3PDVV3.js.map} +0 -0
- /package/dist/{chunk-AC6N2EIN.js.map → chunk-AP7DVLR7.js.map} +0 -0
- /package/dist/{chunk-R7334LAS.js.map → chunk-AQKB2NHY.js.map} +0 -0
- /package/dist/{chunk-I2TUJLI4.js.map → chunk-DK24BDE5.js.map} +0 -0
- /package/dist/{chunk-BURVDS7U.js.map → chunk-EBLCO5JI.js.map} +0 -0
- /package/dist/{chunk-EASMYJG3.js.map → chunk-EJ3OIGHN.js.map} +0 -0
- /package/dist/{chunk-3Q6S6TRY.js.map → chunk-GD2APVSL.js.map} +0 -0
- /package/dist/{chunk-3KOYICWB.js.map → chunk-I4GZY3DJ.js.map} +0 -0
- /package/dist/{chunk-4ETSGWB2.js.map → chunk-J5J4RR25.js.map} +0 -0
- /package/dist/{chunk-JDW4GXEA.js.map → chunk-JUI6JND2.js.map} +0 -0
- /package/dist/{chunk-65YMLGQB.js.map → chunk-JWUZLG53.js.map} +0 -0
- /package/dist/{chunk-IOSB2HMV.js.map → chunk-JXJLU4BM.js.map} +0 -0
- /package/dist/{chunk-MAFJE26N.js.map → chunk-KGZRNWEN.js.map} +0 -0
- /package/dist/{chunk-WUJJ2FTK.js.map → chunk-LENB3INO.js.map} +0 -0
- /package/dist/{chunk-YDYHURVA.js.map → chunk-NJT26JI3.js.map} +0 -0
- /package/dist/{chunk-DHBKD2TG.js.map → chunk-NWUNF4YG.js.map} +0 -0
- /package/dist/{chunk-ZFSV65M5.js.map → chunk-NZ7HCBSL.js.map} +0 -0
- /package/dist/{chunk-FXIEYT6L.js.map → chunk-O7B7AY4E.js.map} +0 -0
- /package/dist/{chunk-BO3BNBBE.js.map → chunk-PSDJJSEP.js.map} +0 -0
- /package/dist/{chunk-3NISM3OI.js.map → chunk-QX4MJKHW.js.map} +0 -0
- /package/dist/{chunk-45X4QO4V.js.map → chunk-SMSDA5MG.js.map} +0 -0
- /package/dist/{chunk-SBRHGEFP.js.map → chunk-TS2QC2PB.js.map} +0 -0
- /package/dist/{chunk-XEIREYW6.js.map → chunk-UKKEP4SQ.js.map} +0 -0
- /package/dist/{chunk-6KM2C2UO.js.map → chunk-V5ASWB23.js.map} +0 -0
- /package/dist/{chunk-ZKOI6PH4.js.map → chunk-WJD7Y3VK.js.map} +0 -0
- /package/dist/{chunk-3HBHM2VX.js.map → chunk-WL56M7P3.js.map} +0 -0
- /package/dist/{chunk-3IOIY4W6.js.map → chunk-WXTXARTF.js.map} +0 -0
- /package/dist/{chunk-WOAFMVKW.js.map → chunk-YNDRERWN.js.map} +0 -0
- /package/dist/{cleanup-7VJ4KUMR.js.map → cleanup-BOBOH2XG.js.map} +0 -0
- /package/dist/{cli-HTBQ4DSS.js.map → cli-ASRLAJNI.js.map} +0 -0
- /package/dist/{config-CREG6OI3.js.map → config-ZOO2MPPY.js.map} +0 -0
- /package/dist/{diff-UYXZID2B.js.map → diff-WMG5GQ46.js.map} +0 -0
- /package/dist/{digest-I5Z6W2EP.js.map → digest-E2LJN4SG.js.map} +0 -0
- /package/dist/{fork-5AOB45N2.js.map → fork-BE5VJHBL.js.map} +0 -0
- /package/dist/{history-3LFLB4FO.js.map → history-N4W3UAH3.js.map} +0 -0
- /package/dist/{hook-SJOCXGLD.js.map → hook-LKVA7KVD.js.map} +0 -0
- /package/dist/{hydrate-YEJCVZZ7.js.map → hydrate-WEMCIMUC.js.map} +0 -0
- /package/dist/{init-6F67TVM7.js.map → init-66R2VBIQ.js.map} +0 -0
- /package/dist/{install-skills-ESCNSPBY.js.map → install-skills-K3EXVLOV.js.map} +0 -0
- /package/dist/{list-NHZUEVTA.js.map → list-X2VLHUUB.js.map} +0 -0
- /package/dist/{move-JICK4XA5.js.map → move-AJRJOLKP.js.map} +0 -0
- /package/dist/{note-KZMWEGZP.js.map → note-GHT64Y55.js.map} +0 -0
- /package/dist/{overlaps-O353DOQI.js.map → overlaps-5N2J56SJ.js.map} +0 -0
- /package/dist/{pin-7CON36HF.js.map → pin-H7CBIDO3.js.map} +0 -0
- /package/dist/{pr-4KUGJDZ2.js.map → pr-IURQGBVB.js.map} +0 -0
- /package/dist/{prune-KQ77276H.js.map → prune-UKZKLXSO.js.map} +0 -0
- /package/dist/{pty-host-MSCJGN5G.js.map → pty-host-HNCNBP5S.js.map} +0 -0
- /package/dist/{read-J42H6OVE.js.map → read-MNZ524CE.js.map} +0 -0
- /package/dist/{recent-BZQP3RKA.js.map → recent-2FGSNBJZ.js.map} +0 -0
- /package/dist/{remove-GRRKSGS7.js.map → remove-QKOVNBBC.js.map} +0 -0
- /package/dist/{restart-REFEZGH2.js.map → restart-PYKMWD5S.js.map} +0 -0
- /package/dist/{resume-RGP2BCKL.js.map → resume-GVWN35RW.js.map} +0 -0
- /package/dist/{run-WYDFP6EL.js.map → run-YSOH2VK5.js.map} +0 -0
- /package/dist/{screen-YWJLDINC.js.map → screen-LCQP4FAS.js.map} +0 -0
- /package/dist/{search-M4DU4GUB.js.map → search-EQXCM3SE.js.map} +0 -0
- /package/dist/{section-AYN6EHPO.js.map → section-FKNRQ6OB.js.map} +0 -0
- /package/dist/{send-O3SI53O7.js.map → send-NWPMDDUM.js.map} +0 -0
- /package/dist/{snooze-F3NT7PZO.js.map → snooze-2G5V6AKP.js.map} +0 -0
- /package/dist/{start-7OQNLGDU.js.map → start-BQQOHNLO.js.map} +0 -0
- /package/dist/{status-HLOEWXJ3.js.map → status-YDDVUQIQ.js.map} +0 -0
- /package/dist/{stop-YRGANOU7.js.map → stop-H6UXMR7N.js.map} +0 -0
- /package/dist/{sync-YDK5R7XQ.js.map → sync-3OK2TBT7.js.map} +0 -0
- /package/dist/{time-T5RBWMDN.js.map → time-65NYXE7O.js.map} +0 -0
- /package/dist/{timesheet-UB6OASXF.js.map → timesheet-4ZBQQUXK.js.map} +0 -0
- /package/dist/{tree-DRDDTXQ2.js.map → tree-GFYZIBHI.js.map} +0 -0
- /package/dist/{update-S57YQGPG.js.map → update-W3LXJMZ3.js.map} +0 -0
- /package/dist/{wait-2CRY7XQ5.js.map → wait-IZBQ6S4U.js.map} +0 -0
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-3GIH4WTA.js";
|
|
5
5
|
import {
|
|
6
6
|
logSwallowed
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-2FZFE4LF.js";
|
|
8
8
|
|
|
9
9
|
// src/core/diff/diff-stat.ts
|
|
10
10
|
import fs from "fs";
|
|
@@ -207,4 +207,4 @@ export {
|
|
|
207
207
|
wantsDiffStat,
|
|
208
208
|
findOverlaps
|
|
209
209
|
};
|
|
210
|
-
//# sourceMappingURL=chunk-
|
|
210
|
+
//# sourceMappingURL=chunk-3XSMLS3U.js.map
|
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
} from "./chunk-AH5TM3NB.js";
|
|
5
5
|
import {
|
|
6
6
|
spawnSpecFor
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-O7B7AY4E.js";
|
|
8
8
|
import {
|
|
9
9
|
PtyHostClient,
|
|
10
10
|
ensureHost
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-NWUNF4YG.js";
|
|
12
12
|
import {
|
|
13
13
|
sessionIdFor
|
|
14
14
|
} from "./chunk-FXHTSSV2.js";
|
|
@@ -117,4 +117,4 @@ async function attachSession(session, launch = {}) {
|
|
|
117
117
|
export {
|
|
118
118
|
attachSession
|
|
119
119
|
};
|
|
120
|
-
//# sourceMappingURL=chunk-
|
|
120
|
+
//# sourceMappingURL=chunk-4RNDBBQQ.js.map
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
computeRangeDiff
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-WL56M7P3.js";
|
|
5
5
|
import {
|
|
6
6
|
loadManifest
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-2FZFE4LF.js";
|
|
8
8
|
import {
|
|
9
9
|
agentSettings,
|
|
10
10
|
internalAgent,
|
|
11
11
|
internalRunEnv,
|
|
12
12
|
killTree
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-JG3J5TLB.js";
|
|
14
14
|
import {
|
|
15
15
|
spawn_default
|
|
16
16
|
} from "./chunk-RCYI7SRA.js";
|
|
@@ -185,4 +185,4 @@ export {
|
|
|
185
185
|
runInternal,
|
|
186
186
|
summarizeCheckpoint
|
|
187
187
|
};
|
|
188
|
-
//# sourceMappingURL=chunk-
|
|
188
|
+
//# sourceMappingURL=chunk-5LXZ6XDZ.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-PSDJJSEP.js";
|
|
8
8
|
import {
|
|
9
9
|
findSession,
|
|
10
10
|
loadHistory
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-2FZFE4LF.js";
|
|
12
12
|
import {
|
|
13
13
|
loadConfig
|
|
14
14
|
} from "./chunk-A53IRCOO.js";
|
|
@@ -38,4 +38,4 @@ export {
|
|
|
38
38
|
sessionPositionals,
|
|
39
39
|
sessionFromArgs
|
|
40
40
|
};
|
|
41
|
-
//# sourceMappingURL=chunk-
|
|
41
|
+
//# sourceMappingURL=chunk-5XARBHTZ.js.map
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
openBaseCheckout,
|
|
4
4
|
setupWorktree
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-6THPN6HD.js";
|
|
6
6
|
import {
|
|
7
7
|
defaultRunner
|
|
8
8
|
} from "./chunk-3GIH4WTA.js";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
findSession,
|
|
14
14
|
loadHistory,
|
|
15
15
|
sessionAliases
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-2FZFE4LF.js";
|
|
17
17
|
import {
|
|
18
18
|
spawn_default
|
|
19
19
|
} from "./chunk-RCYI7SRA.js";
|
|
@@ -197,4 +197,4 @@ export {
|
|
|
197
197
|
createInChild,
|
|
198
198
|
createInProcess
|
|
199
199
|
};
|
|
200
|
-
//# sourceMappingURL=chunk-
|
|
200
|
+
//# sourceMappingURL=chunk-5YR4JLHI.js.map
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
runInternal
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-5LXZ6XDZ.js";
|
|
5
5
|
import {
|
|
6
6
|
messageOf,
|
|
7
7
|
readStatus
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-2FZFE4LF.js";
|
|
9
9
|
import {
|
|
10
10
|
agentOf,
|
|
11
11
|
lineTimeOf,
|
|
12
12
|
readJsonlSince
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-JG3J5TLB.js";
|
|
14
14
|
import {
|
|
15
15
|
sessionIdFor
|
|
16
16
|
} from "./chunk-FXHTSSV2.js";
|
|
@@ -100,4 +100,4 @@ export {
|
|
|
100
100
|
cachedCatchUp,
|
|
101
101
|
catchUp
|
|
102
102
|
};
|
|
103
|
-
//# sourceMappingURL=chunk-
|
|
103
|
+
//# sourceMappingURL=chunk-62JFNWJO.js.map
|
|
@@ -48,10 +48,10 @@ import {
|
|
|
48
48
|
upsertSession,
|
|
49
49
|
upsertSessionWithPort,
|
|
50
50
|
writeArchiveRecord
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-2FZFE4LF.js";
|
|
52
52
|
import {
|
|
53
53
|
agentFor
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-JG3J5TLB.js";
|
|
55
55
|
import {
|
|
56
56
|
sessionIdFor
|
|
57
57
|
} from "./chunk-FXHTSSV2.js";
|
|
@@ -1070,4 +1070,4 @@ export {
|
|
|
1070
1070
|
teardownWorktree,
|
|
1071
1071
|
openBaseCheckout
|
|
1072
1072
|
};
|
|
1073
|
-
//# sourceMappingURL=chunk-
|
|
1073
|
+
//# sourceMappingURL=chunk-6THPN6HD.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
loadHistory
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-2FZFE4LF.js";
|
|
5
5
|
import {
|
|
6
6
|
json,
|
|
7
7
|
sessionIdFor,
|
|
@@ -148,4 +148,4 @@ export {
|
|
|
148
148
|
sweepBlocks,
|
|
149
149
|
blockRefFrom
|
|
150
150
|
};
|
|
151
|
-
//# sourceMappingURL=chunk-
|
|
151
|
+
//# sourceMappingURL=chunk-7LW4VIVW.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
defaultCleanupDeps
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-EJ3OIGHN.js";
|
|
5
5
|
import {
|
|
6
6
|
normPath
|
|
7
7
|
} from "./chunk-AKMPF72Y.js";
|
|
@@ -14,14 +14,14 @@ import {
|
|
|
14
14
|
} from "./chunk-3GIH4WTA.js";
|
|
15
15
|
import {
|
|
16
16
|
findSessionForCwd
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-PSDJJSEP.js";
|
|
18
18
|
import {
|
|
19
19
|
loadHistory,
|
|
20
20
|
sessionAliases
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-2FZFE4LF.js";
|
|
22
22
|
import {
|
|
23
23
|
liveAgents
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-JG3J5TLB.js";
|
|
25
25
|
import {
|
|
26
26
|
sessionIdFor
|
|
27
27
|
} from "./chunk-FXHTSSV2.js";
|
|
@@ -293,4 +293,4 @@ export {
|
|
|
293
293
|
deleteMergedBranches,
|
|
294
294
|
defaultBranchTidyDeps
|
|
295
295
|
};
|
|
296
|
-
//# sourceMappingURL=chunk-
|
|
296
|
+
//# sourceMappingURL=chunk-AP7DVLR7.js.map
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
computeDiff,
|
|
4
4
|
isInsideRoot
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-WL56M7P3.js";
|
|
6
6
|
import {
|
|
7
7
|
packageRoot
|
|
8
8
|
} from "./chunk-LNHSBM4L.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
import {
|
|
13
13
|
createFsWatcher,
|
|
14
14
|
loadHistory
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-2FZFE4LF.js";
|
|
16
16
|
import {
|
|
17
17
|
spawn_default
|
|
18
18
|
} from "./chunk-RCYI7SRA.js";
|
|
@@ -512,4 +512,4 @@ export {
|
|
|
512
512
|
submitReviewSchema,
|
|
513
513
|
resolveSchema
|
|
514
514
|
};
|
|
515
|
-
//# sourceMappingURL=chunk-
|
|
515
|
+
//# sourceMappingURL=chunk-AQKB2NHY.js.map
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
stageWaiting,
|
|
4
4
|
stageWantsYou
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-2FZFE4LF.js";
|
|
6
6
|
import {
|
|
7
7
|
atomicWriteFile,
|
|
8
8
|
getConfigDir
|
|
@@ -18,7 +18,7 @@ function displayStatus(s, now = Date.now()) {
|
|
|
18
18
|
const a = s.attention;
|
|
19
19
|
if (a) {
|
|
20
20
|
if (a.state === "needs_input") return "needs_input";
|
|
21
|
-
if (a.state === "working") return "working";
|
|
21
|
+
if (a.state === "working") return a.background ? "background" : "working";
|
|
22
22
|
if (!a.seen) return "done";
|
|
23
23
|
}
|
|
24
24
|
if ((s.openReviewThreads ?? 0) > 0) return "review";
|
|
@@ -33,6 +33,7 @@ var DISPLAY_LABEL = {
|
|
|
33
33
|
needs_input: "Needs your input",
|
|
34
34
|
done: "Done",
|
|
35
35
|
working: "Working",
|
|
36
|
+
background: "In background",
|
|
36
37
|
review: "Review comments",
|
|
37
38
|
pr: "Pull request",
|
|
38
39
|
in_review: "In review",
|
|
@@ -51,7 +52,7 @@ var AGE_LABEL = {
|
|
|
51
52
|
var WEEK_MS = 7 * 24 * 36e5;
|
|
52
53
|
function ageBucket(s, now = Date.now()) {
|
|
53
54
|
const kind = displayStatus(s, now);
|
|
54
|
-
if (kind === "needs_input" || kind === "done" || kind === "working" || kind === "review" || kind === "pr" || kind === "active" || kind === "open")
|
|
55
|
+
if (kind === "needs_input" || kind === "done" || kind === "working" || kind === "background" || kind === "review" || kind === "pr" || kind === "active" || kind === "open")
|
|
55
56
|
return "now";
|
|
56
57
|
const age = now - Date.parse(lastActiveAt(s));
|
|
57
58
|
if (age < RECENT_MS) return "now";
|
|
@@ -191,4 +192,4 @@ export {
|
|
|
191
192
|
assistantContextDay,
|
|
192
193
|
readAssistantContext
|
|
193
194
|
};
|
|
194
|
-
//# sourceMappingURL=chunk-
|
|
195
|
+
//# sourceMappingURL=chunk-AS24L2DD.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/core/sessions/session-view.ts","../src/core/agents/assistant.ts"],"sourcesContent":["import type { SessionAttention, ActivityState } from '../api-types.js';\nimport { stageWaiting, stageWantsYou, type PrStageKind } from '../pr/pr-stage.js';\n\n/** What the status vocabulary reads from a session: a dashboard row or\n * a `work sessions` row (both are SessionWire-shaped). */\nexport interface SessionLike {\n lastAccessedAt: string;\n lastActivity?: number | null;\n activityState?: ActivityState;\n attention?: SessionAttention | null;\n /** Unresolved review threads on its open PRs (SessionWire). */\n openReviewThreads?: number;\n /** Where its pull request stands (SessionWire, pr-stage.ts). */\n prStage?: { kind: PrStageKind; text: string; seen?: boolean } | null;\n}\n\n/**\n * ONE status vocabulary for every view — pure, so the dashboard (it imports\n * this) and `work sessions` say the same thing — (rail, Sessions table, inbox, header\n * strip). Hook-driven attention wins when a session has it; otherwise we fall\n * back to the older transcript-activity signal, so a session never shows two\n * contradicting states in two places.\n *\n * needs_input — blocked on you (permission / question)\n * done — finished a turn you haven't looked at\n * working — mid-turn\n * background — its turn ended, a background agent that turn started is\n * still at it: still busy, but its prompt is free\n * review — nothing running for you to answer, but reviewers left\n * unresolved comments on its open PR(s)\n * pr — its PR wants you: approved with checks passing (ready\n * to merge), a merge conflict or failing checks; unseen\n * in_review — finished, its PR waits on reviewers or checks\n * quiet — finished, and you've seen it\n * active/open/recent/stale — no hook status yet (its Claude has not\n * taken a turn since the dashboard's hooks went in, or runs a tool\n * without them): transcript activity only. Active ≤ 30 s, Open ≤ 5 min,\n * Idle (recent) within a day, Stale after that.\n */\nexport type DisplayKind =\n 'needs_input' | 'done' | 'working' | 'background' | 'review' | 'pr' | 'in_review' | 'quiet' | 'active' | 'open' | 'recent' | 'stale';\n\n/** Used today = not stale, whatever the hooks know. */\nexport const RECENT_MS = 24 * 3_600_000;\n\n/** When the session last did anything: the newest of its hook update,\n * Claude's last transcript write and the `work tree` entry. (Reading only\n * the entry time called a session Active and \"1d\" at once.) */\nexport function lastActiveAt(s: SessionLike): string {\n const candidates = [Date.parse(s.lastAccessedAt) || 0, s.lastActivity ?? 0, s.attention ? Date.parse(s.attention.updatedAt) || 0 : 0];\n return new Date(Math.max(...candidates)).toISOString();\n}\n\nexport function displayStatus(s: SessionLike, now: number = Date.now()): DisplayKind {\n const a = s.attention;\n if (a) {\n if (a.state === 'needs_input') return 'needs_input';\n if (a.state === 'working') return a.background ? 'background' : 'working';\n if (!a.seen) return 'done';\n }\n if ((s.openReviewThreads ?? 0) > 0) return 'review';\n if (stageWantsYou(s.prStage)) return 'pr';\n if (stageWaiting(s.prStage)) return 'in_review';\n if (a) return 'quiet';\n if (s.activityState === 'active') return 'active';\n if (s.activityState === 'open') return 'open';\n return now - Date.parse(lastActiveAt(s)) < RECENT_MS ? 'recent' : 'stale';\n}\n\nexport const DISPLAY_LABEL: Record<DisplayKind, string> = {\n needs_input: 'Needs your input',\n done: 'Done',\n working: 'Working',\n background: 'In background',\n review: 'Review comments',\n pr: 'Pull request',\n in_review: 'In review',\n quiet: 'Idle',\n active: 'Active',\n open: 'Open',\n recent: 'Idle',\n stale: 'Stale',\n};\n\n/** What each status means, in words — the legend and the dots' tooltips. */\nexport const DISPLAY_MEANING: Record<DisplayKind, string> = {\n needs_input: 'Its Claude is waiting for you: a permission prompt or a question.',\n done: \"Its Claude finished a turn you haven't looked at yet.\",\n working: 'Its Claude is working on your last instruction right now.',\n background:\n 'Its Claude finished its turn, and a background agent that turn started is still at work. Its prompt is free: you can talk to it. The agent’s result comes back as a new turn.',\n review: \"Reviewers left comments on its pull request that you haven't answered or resolved.\",\n pr: 'Its pull request needs you: approved with checks passing (ready to merge), a merge conflict, or failing checks.',\n in_review:\n 'Its pull request is open and waiting on reviewers or checks. It comes back to the Inbox when comments arrive, checks fail, or it is approved.',\n quiet: \"Its Claude finished, and you've seen it. Nothing to do.\",\n active: \"Its Claude wrote in the last 30 seconds (it isn't reporting its status, so this is from its transcript).\",\n open: 'Its Claude wrote in the last 5 minutes, or is open and idle at its prompt.',\n recent: 'Used in the last day; nothing running now.',\n stale: 'Not used for over a day.',\n};\n\n/** The legend's rows, most urgent first. Idle covers `quiet` and `recent` (same colour, same word). */\nexport const LEGEND_KINDS: readonly DisplayKind[] = [\n 'needs_input',\n 'done',\n 'review',\n 'pr',\n 'working',\n 'background',\n 'in_review',\n 'active',\n 'open',\n 'quiet',\n 'stale',\n];\n\n/**\n * How full a Claude conversation may get before it matters: past WARN the\n * header shows it amber and the PR watch's notes ask Claude to hand\n * mechanical work to a sub-agent; past FULL it's red (Claude compacts near\n * the window, and answers get vaguer before that).\n */\nexport const CONTEXT_WARN = 0.7;\nexport const CONTEXT_FULL = 0.9;\n\n/** How long ago a session was used, for the Sessions table's sections. */\nexport type AgeBucket = 'now' | 'week' | 'older';\n\nexport const AGE_LABEL: Record<AgeBucket, string> = {\n now: 'Now',\n week: 'This week',\n older: 'Older',\n};\n\nexport const WEEK_MS = 7 * 24 * 3_600_000;\n\n/** Now: wants you, is working, or was used in the last day. This week:\n * used within 7 days. Older: everything else — cleanup material. */\nexport function ageBucket(s: SessionLike, now: number = Date.now()): AgeBucket {\n const kind = displayStatus(s, now);\n if (\n kind === 'needs_input' ||\n kind === 'done' ||\n kind === 'working' ||\n kind === 'background' ||\n kind === 'review' ||\n kind === 'pr' ||\n kind === 'active' ||\n kind === 'open'\n )\n return 'now';\n const age = now - Date.parse(lastActiveAt(s));\n if (age < RECENT_MS) return 'now';\n return age < WEEK_MS ? 'week' : 'older';\n}\n\n/** Coarse buckets the Sessions header counts and filters by. */\nexport type StatusBucket = 'needs' | 'working' | 'idle' | 'stale';\n\nexport function statusBucket(kind: DisplayKind): StatusBucket {\n switch (kind) {\n case 'needs_input':\n case 'done':\n case 'review':\n case 'pr':\n return 'needs';\n case 'working':\n case 'background':\n case 'active':\n return 'working';\n case 'quiet':\n case 'in_review':\n case 'open':\n case 'recent':\n return 'idle';\n case 'stale':\n return 'stale';\n default: {\n // Every kind is named above: a new one fails the type check here instead of landing in \"stale\" unasked.\n const unknown: never = kind;\n return unknown;\n }\n }\n}\n\n/** Why a session shows Active / Open / Idle(recent) / Stale instead of a\n * real status: its Claude isn't reporting through work web's hooks. */\nexport const NO_HOOKS_HINT =\n \"Its Claude isn't reporting its status (it was started before work web's hooks were installed, or it isn't Claude), so this is from its transcript activity: Active = wrote in the last 30 s, Open = last 5 min. Restart it with `work tree <target> <branch>` (the conversation continues) to get Working / Needs your input / Done.\";\n\n/** The hint for a status that comes from activity only; undefined otherwise. */\nexport function statusHint(kind: DisplayKind): string | undefined {\n return kind === 'active' || kind === 'open' || kind === 'recent' || kind === 'stale' ? NO_HOOKS_HINT : undefined;\n}\n","import fs from 'node:fs';\nimport path from 'node:path';\nimport { getConfigDir } from '../platform/config.js';\nimport { atomicWriteFile } from '../platform/fs-safe.js';\nimport type { AssistantView, SessionWire } from '../api-types.js';\nimport { DISPLAY_LABEL, displayStatus } from '../sessions/session-view.js';\nimport type { AgentAdapter, AllowRule, WorkHook } from './types.js';\n\n/**\n * The dashboard assistant (Ctrl+K): a persistent agent session in the PTY\n * host, like any worktree's, with its own folder under ~/.work/assistant. It\n * runs config `assistantAgent` (Claude Code by default; `assistantAgent()`).\n *\n * That folder is written by work: the agent's instructions file (CLAUDE.md\n * for Claude) saying what it is for and how to get the data (the\n * `work … --json` commands), and through its adapter's `workspace` its own\n * settings: the read-only commands pre-allowed, and a hook at the start of\n * each turn that adds what the user is looking at in the dashboard to the\n * prompt (`work hook assistant-context`), so \"clean these up\" or \"why is this\n * one blocked?\" need no explaining. An agent without a workspace gets the\n * instructions only (it asks before every command, and sees no view).\n *\n * It runs in the agent's normal permission mode, never --unsafe: anything\n * not pre-allowed — `work cleanup --apply`, `work remove`, git — asks first,\n * in the panel (and the Inbox).\n */\n\nexport const ASSISTANT_ID = 'assistant';\n\n/** What the dashboard reported, kept this long for the hook. */\nexport const CONTEXT_TTL_MS = 30 * 60_000;\n\nexport function assistantDir(): string {\n return path.join(getConfigDir(), 'assistant');\n}\nconst contextFile = () => path.join(assistantDir(), 'context.json');\n\n/**\n * Read-only commands it may run without asking (each agent's adapter writes\n * them in its own terms). Exact forms for cleanup: a `work cleanup --json`\n * prefix rule would also allow `--apply`.\n */\nexport const ASSISTANT_ALLOW: AllowRule[] = [\n { command: 'work sessions', prefix: true },\n { command: 'work digest', prefix: true },\n { command: 'work overlaps', prefix: true },\n { command: 'work search', prefix: true },\n { command: 'work cleanup --json' },\n { command: 'work cleanup --json --no-fetch' },\n { command: 'work cleanup --no-fetch --json' },\n { command: 'work list', prefix: true },\n { command: 'work recent', prefix: true },\n // The Time tab's day, read only (set / reset / off / gather / post ask first).\n { command: 'work timesheet show', prefix: true },\n];\n\n/** Its hook: what the dashboard shows, added at the start of each turn. */\nexport const ASSISTANT_HOOKS: WorkHook[] = [\n { owner: 'assistant', edge: 'turn-start', command: 'work hook assistant-context', timeoutSec: 5 },\n];\n\nexport const ASSISTANT_INSTRUCTIONS = `# You are the work dashboard's assistant\n\nThe user opens you with Ctrl+K in \\`work web\\`, the dashboard over all their git worktrees and the coding agent session in each. Help them make sense of it and act on it: what needs them, what each session did, what can be cleaned up, which sessions will conflict.\n\n## Getting the data\n\nUse the \\`work\\` CLI with \\`--json\\` (see the work-sessions skill) and parse it; don't guess from the filesystem:\n\n- \\`work sessions --json\\` — every session: status (\\`view.label\\`), age, last active, context usage, archive state. \\`--changes\\` adds +N −M and same-file overlaps; \\`--all\\` adds older and archived ones.\n- \\`work digest --json --since today|yesterday|week\\` — what each session did (prompts, turns, PRs).\n- \\`work overlaps --json\\` — live sessions changing the same files.\n- \\`work cleanup --json\\` — which worktrees can go, and why.\n- \\`work timesheet show [day] --json\\` — the Time tab's day: hours per ticket, and why (sessions' Claude minutes, commits, Jira, meetings, chats). On the Time tab, the day on screen is described to you with each message.\n- \\`work search <words> --json\\` — sessions whose conversation (live or archived, also older than the agent keeps) mentions it, with the matching lines: \"what did we do about X?\".\n\nEach prompt comes with what the user is looking at in the dashboard (the tab, the selected session). When they say \"this\", \"these\" or \"here\", that is what they mean.\n\n## Changing things\n\nAsk before you change anything, and say exactly what will happen:\n- Removing, archiving or forgetting worktrees: \\`work cleanup --apply <id>… --action delete|archive|forget --json\\`. Each is checked again right before it runs; report what was refused and why. Never \\`--force\\` unless the user asked for exactly that.\n- A day's hours: \\`work timesheet set <day> KEY=HOURS …\\` (all its rows; quarter hours, the day's total as the user wants it), \\`reset <day>\\`, \\`off <day>\\`. Explain the change first. Posting to Tempo (\\`work timesheet post <day>\\`) only when the user asks for it.\n- Anything else (\\`work remove\\`, git, files in a worktree): only when asked, and show the command first.\n\nDon't post on GitHub, and don't send prompts to other sessions, unless the user asks. Keep answers short: the user is in the middle of something.\n`;\n\n/** What work wrote in the folder last time (relative paths), so files an earlier agent's setup left can go. */\nconst writtenFile = () => path.join(assistantDir(), '.work-written.json');\n/** What a work from before the list wrote: Claude's. */\nconst BEFORE_THE_LIST = ['CLAUDE.md', path.join('.claude', 'settings.json')];\n\nfunction readWritten(): string[] {\n try {\n const v = JSON.parse(fs.readFileSync(writtenFile(), 'utf-8')) as unknown;\n return Array.isArray(v) ? v.filter((x): x is string => typeof x === 'string') : [];\n } catch (err) {\n return (err as NodeJS.ErrnoException).code === 'ENOENT' ? BEFORE_THE_LIST : [];\n }\n}\n\n/**\n * Write (or refresh) the assistant's folder for the agent it runs; returns\n * it. Idempotent. Files work wrote there for another agent before (its\n * instructions, its settings with their allow rules and hooks) are removed:\n * after a switch they would be instructions and permissions nothing manages.\n * Only files work wrote and listed, inside the folder — never the user's own.\n */\nexport function prepareAssistantDir(agent: Pick<AgentAdapter, 'instructionsFile' | 'workspace'>): string {\n const dir = assistantDir();\n fs.mkdirSync(dir, { recursive: true });\n const before = readWritten();\n atomicWriteFile(path.join(dir, agent.instructionsFile), ASSISTANT_INSTRUCTIONS);\n const written = [agent.instructionsFile, ...(agent.workspace?.write(dir, { allow: ASSISTANT_ALLOW, hooks: ASSISTANT_HOOKS }) ?? [])].map(\n (f) => path.normalize(f),\n );\n const root = path.resolve(dir);\n for (const old of before.map((f) => path.normalize(f))) {\n const file = path.resolve(root, old);\n if (written.includes(old) || path.isAbsolute(old) || !file.startsWith(root + path.sep)) continue; // listed by us, inside the folder: nothing else\n fs.rmSync(file, { force: true });\n }\n atomicWriteFile(writtenFile(), JSON.stringify(written));\n return dir;\n}\n\ninterface StoredContext {\n at: string;\n text: string;\n /** The Time tab's day on screen: described afresh at each prompt (rows change by Save, Post, a rebuild). */\n day?: string;\n}\n\n/**\n * The dashboard view in words, for the hook: which tab, and the selected\n * session's state. Pure.\n */\nexport function describeView(view: AssistantView, session: SessionWire | null, now = Date.now()): string {\n const lines = [`The user is looking at the dashboard's ${view.tab} tab${view.sub ? ` (${view.sub})` : ''}.`];\n if (session) {\n const status = DISPLAY_LABEL[displayStatus(session, now)];\n lines.push(\n `Selected session: ${session.target} · ${session.branch} (id ${session.id}) — ${status}.`,\n ...(session.attention?.summary ? [` Its last line: ${session.attention.summary}`] : []),\n ...(session.diffStat?.files\n ? [` Uncommitted: +${session.diffStat.added} −${session.diffStat.deleted} in ${session.diffStat.files} files.`]\n : []),\n ...(session.overlaps?.length\n ? [` Changes the same files as: ${session.overlaps.map((o) => `${o.target} · ${o.branch}`).join(', ')}.`]\n : []),\n ...(session.context ? [` Its conversation is ${Math.round((session.context.used / session.context.window) * 100)}% full.`] : []),\n ...(session.archivedAt ? [' It is archived.'] : []),\n ` Worktree: ${session.paths.join(', ')}`,\n );\n }\n if (view.note) lines.push(view.note);\n return lines.join('\\n');\n}\n\nexport function writeAssistantContext(text: string, now = Date.now(), day?: string): void {\n fs.mkdirSync(assistantDir(), { recursive: true });\n const stored: StoredContext = { at: new Date(now).toISOString(), text, ...(day ? { day } : {}) };\n atomicWriteFile(contextFile(), JSON.stringify(stored));\n}\n\n/** The day on screen, if the Time tab is: for the hook to describe as it is now. */\nexport function assistantContextDay(now = Date.now()): string | null {\n const s = readStored(now);\n return s && typeof s.day === 'string' && /^\\d{4}-\\d{2}-\\d{2}$/.test(s.day) ? s.day : null;\n}\n\nfunction readStored(now: number): Partial<StoredContext> | null {\n try {\n const s = JSON.parse(fs.readFileSync(contextFile(), 'utf-8')) as Partial<StoredContext> | null;\n if (!s || typeof s.text !== 'string' || typeof s.at !== 'string') return null;\n return now - Date.parse(s.at) > CONTEXT_TTL_MS ? null : s;\n } catch {\n return null;\n }\n}\n\n/**\n * What the hook adds to a prompt; null when the dashboard said nothing\n * lately. `dayNow` describes the Time tab's day as it is at this prompt\n * (the hook reads it from state.db), not as it was when the tab was opened.\n */\nexport function readAssistantContext(now = Date.now(), dayNow?: string | null): string | null {\n const s = readStored(now);\n if (!s) return null;\n return `[work dashboard] ${s.text}${dayNow ? `\\n${dayNow}` : ''}`;\n}\n"],"mappings":";;;;;;;;;;;AA2CO,IAAM,YAAY,KA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QAAM,IAAI,WAAW,GAAG;AACxB,SAAO,KAAK,OAAO,EAAE,QAAQ,YAAY,sBAAsB,KAAK,EAAE,GAAG,IAAI,EAAE,MAAM;AACvF;AAEA,SAAS,WAAW,KAA4C;AAC9D,MAAI;AACF,UAAM,IAAI,KAAK,MAAM,GAAG,aAAa,YAAY,GAAG,OAAO,CAAC;AAC5D,QAAI,CAAC,KAAK,OAAO,EAAE,SAAS,YAAY,OAAO,EAAE,OAAO,SAAU,QAAO;AACzE,WAAO,MAAM,KAAK,MAAM,EAAE,EAAE,IAAI,iBAAiB,OAAO;AAAA,EAC1D,QAAQ;AACN,WAAO;AAAA,EACT;AACF;AAOO,SAAS,qBAAqB,MAAM,KAAK,IAAI,GAAG,QAAuC;AAC5F,QAAM,IAAI,WAAW,GAAG;AACxB,MAAI,CAAC,EAAG,QAAO;AACf,SAAO,oBAAoB,EAAE,IAAI,GAAG,SAAS;AAAA,EAAK,MAAM,KAAK,EAAE;AACjE;","names":[]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
sessionStatusView
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-I4GZY3DJ.js";
|
|
5
5
|
import {
|
|
6
6
|
buildDigest,
|
|
7
7
|
loadHistory,
|
|
@@ -11,12 +11,12 @@ import {
|
|
|
11
11
|
readStatus,
|
|
12
12
|
scopeHashForPaths,
|
|
13
13
|
workSteps
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-2FZFE4LF.js";
|
|
15
15
|
import {
|
|
16
16
|
agentOf,
|
|
17
17
|
lineTimeOf,
|
|
18
18
|
readJsonlSince
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-JG3J5TLB.js";
|
|
20
20
|
import {
|
|
21
21
|
sessionIdFor
|
|
22
22
|
} from "./chunk-FXHTSSV2.js";
|
|
@@ -99,4 +99,4 @@ function createDigestSource(deps = {}) {
|
|
|
99
99
|
export {
|
|
100
100
|
createDigestSource
|
|
101
101
|
};
|
|
102
|
-
//# sourceMappingURL=chunk-
|
|
102
|
+
//# sourceMappingURL=chunk-DK24BDE5.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-LNHSBM4L.js";
|
|
5
5
|
import {
|
|
6
6
|
knownAgents
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-JG3J5TLB.js";
|
|
8
8
|
|
|
9
9
|
// src/commands/install-skills.ts
|
|
10
10
|
import chalk from "chalk";
|
|
@@ -44,4 +44,4 @@ export {
|
|
|
44
44
|
runInstallSkills,
|
|
45
45
|
installSkillsCommand
|
|
46
46
|
};
|
|
47
|
-
//# sourceMappingURL=chunk-
|
|
47
|
+
//# sourceMappingURL=chunk-EBLCO5JI.js.map
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
defaultArchiveDeps
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-UKKEP4SQ.js";
|
|
5
5
|
import {
|
|
6
6
|
normPath
|
|
7
7
|
} from "./chunk-AKMPF72Y.js";
|
|
8
8
|
import {
|
|
9
9
|
disposePty
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-O7B7AY4E.js";
|
|
11
11
|
import {
|
|
12
12
|
teardownWorktree
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-6THPN6HD.js";
|
|
14
14
|
import {
|
|
15
15
|
defaultRunner
|
|
16
16
|
} from "./chunk-3GIH4WTA.js";
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
readStatus,
|
|
25
25
|
removeSession,
|
|
26
26
|
sessionAliases
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-2FZFE4LF.js";
|
|
28
28
|
import {
|
|
29
29
|
sessionIdFor
|
|
30
30
|
} from "./chunk-FXHTSSV2.js";
|
|
@@ -160,4 +160,4 @@ function defaultCleanupDeps(opts = {}) {
|
|
|
160
160
|
export {
|
|
161
161
|
defaultCleanupDeps
|
|
162
162
|
};
|
|
163
|
-
//# sourceMappingURL=chunk-
|
|
163
|
+
//# sourceMappingURL=chunk-EJ3OIGHN.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from "./chunk-3GIH4WTA.js";
|
|
8
8
|
import {
|
|
9
9
|
loadHistory
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-2FZFE4LF.js";
|
|
11
11
|
import {
|
|
12
12
|
atomicWriteFile,
|
|
13
13
|
getConfigDir,
|
|
@@ -123,4 +123,4 @@ export {
|
|
|
123
123
|
checkTools,
|
|
124
124
|
setupState
|
|
125
125
|
};
|
|
126
|
-
//# sourceMappingURL=chunk-
|
|
126
|
+
//# sourceMappingURL=chunk-GD2APVSL.js.map
|
|
@@ -6,11 +6,11 @@ import {
|
|
|
6
6
|
lastTurnEntryMs,
|
|
7
7
|
readSessionActivity,
|
|
8
8
|
readStatus
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-2FZFE4LF.js";
|
|
10
10
|
import {
|
|
11
11
|
agentOf,
|
|
12
12
|
readJsonlTail
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-JG3J5TLB.js";
|
|
14
14
|
import {
|
|
15
15
|
sessionIdFor
|
|
16
16
|
} from "./chunk-FXHTSSV2.js";
|
|
@@ -45,4 +45,4 @@ export {
|
|
|
45
45
|
sessionStatusView,
|
|
46
46
|
shownState
|
|
47
47
|
};
|
|
48
|
-
//# sourceMappingURL=chunk-
|
|
48
|
+
//# sourceMappingURL=chunk-I4GZY3DJ.js.map
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
isPersistedPty,
|
|
4
4
|
ptySessionsPath
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-NWUNF4YG.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-J5J4RR25.js.map
|
|
@@ -345,19 +345,23 @@ function listTranscripts(session) {
|
|
|
345
345
|
return out;
|
|
346
346
|
}
|
|
347
347
|
var AROUND_TURN_MS = 6e4;
|
|
348
|
-
var AGENT_QUIET_MS =
|
|
348
|
+
var AGENT_QUIET_MS = 60 * 6e4;
|
|
349
349
|
var ANSWER_FOR_MS = 2e3;
|
|
350
350
|
var answers = /* @__PURE__ */ new Map();
|
|
351
351
|
function backgroundWorkSince(session, sinceMs, now = Date.now()) {
|
|
352
352
|
const key = `${session.paths.join("|")}|${sinceMs}`;
|
|
353
353
|
const kept = answers.get(key);
|
|
354
|
-
if (kept && now - kept.at >= 0 && now - kept.at < ANSWER_FOR_MS) return kept.
|
|
355
|
-
const
|
|
354
|
+
if (kept && now - kept.at >= 0 && now - kept.at < ANSWER_FOR_MS) return kept.work;
|
|
355
|
+
const work = lookForBackgroundWork(session, sinceMs, Math.max(sinceMs, now - AGENT_QUIET_MS), now - AGENT_QUIET_MS);
|
|
356
356
|
if (answers.size > 200) answers.clear();
|
|
357
|
-
answers.set(key, { at: now,
|
|
358
|
-
return
|
|
357
|
+
answers.set(key, { at: now, work });
|
|
358
|
+
return work;
|
|
359
359
|
}
|
|
360
|
-
function
|
|
360
|
+
function whatOf(meta) {
|
|
361
|
+
const d = meta.description;
|
|
362
|
+
return typeof d === "string" && d.trim() ? d.trim().replace(/\s+/g, " ") : null;
|
|
363
|
+
}
|
|
364
|
+
function lookForBackgroundWork(session, sinceMs, afterMs, quietFrom = afterMs) {
|
|
361
365
|
for (const t of listTranscripts(session)) {
|
|
362
366
|
if (t.mtimeMs < sinceMs - AROUND_TURN_MS) continue;
|
|
363
367
|
const dir = path2.join(t.file.replace(/\.jsonl$/, ""), "subagents");
|
|
@@ -371,14 +375,19 @@ function lookForBackgroundWork(session, sinceMs, afterMs) {
|
|
|
371
375
|
if (!name.endsWith(".jsonl")) continue;
|
|
372
376
|
const file = path2.join(dir, name);
|
|
373
377
|
try {
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
378
|
+
const written = fs4.statSync(file).mtimeMs;
|
|
379
|
+
if (written <= quietFrom) continue;
|
|
380
|
+
const metaFile = file.replace(/\.jsonl$/, ".meta.json");
|
|
381
|
+
const startedForTurn = fs4.statSync(metaFile).mtimeMs >= sinceMs - AROUND_TURN_MS;
|
|
382
|
+
if (written <= afterMs && !startedForTurn) continue;
|
|
383
|
+
const meta = JSON.parse(fs4.readFileSync(metaFile, "utf8"));
|
|
384
|
+
if (meta && typeof meta === "object" && meta.requestShape === "background")
|
|
385
|
+
return { what: whatOf(meta) };
|
|
377
386
|
} catch {
|
|
378
387
|
}
|
|
379
388
|
}
|
|
380
389
|
}
|
|
381
|
-
return
|
|
390
|
+
return null;
|
|
382
391
|
}
|
|
383
392
|
|
|
384
393
|
// src/core/agents/claude/env.ts
|
|
@@ -954,4 +963,4 @@ export {
|
|
|
954
963
|
agentToRecord,
|
|
955
964
|
agentFor
|
|
956
965
|
};
|
|
957
|
-
//# sourceMappingURL=chunk-
|
|
966
|
+
//# sourceMappingURL=chunk-JG3J5TLB.js.map
|