@moberg_hr/work-tree 2.10.0 → 2.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{account-QSNXX5YV.js → account-Q5Y3YKI7.js} +21 -21
- package/dist/{add-repo-YZ32MLZG.js → add-repo-L4ZTGBLO.js} +17 -17
- package/dist/{answer-Y4T5X446.js → answer-GNR4ZBWV.js} +12 -12
- package/dist/{attach-XPYWYHDP.js → attach-QNSDKRW7.js} +19 -19
- package/dist/bin.js +5 -5
- package/dist/{block-JVAGG5QA.js → block-3YUIMA62.js} +15 -16
- package/dist/{block-JVAGG5QA.js.map → block-3YUIMA62.js.map} +1 -1
- package/dist/{broadcast-FATIANHX.js → broadcast-DR3JFINO.js} +10 -10
- package/dist/{catchup-OTI2KZG5.js → catchup-YG2UOZBL.js} +15 -15
- package/dist/{chunk-RHDZPV6C.js → chunk-246OTVRR.js} +2 -2
- package/dist/{chunk-VV3NFLLP.js → chunk-26YZYL77.js} +3 -3
- package/dist/{chunk-IKX3B26P.js → chunk-2KN5ECHJ.js} +4 -4
- package/dist/{chunk-V4U5RGEG.js → chunk-2QLLPZ2L.js} +2 -2
- package/dist/{chunk-E67DOUVU.js → chunk-2ZQRD73B.js} +102 -15
- package/dist/chunk-2ZQRD73B.js.map +1 -0
- package/dist/{chunk-ZRATYLBB.js → chunk-33XSEAHO.js} +2 -2
- package/dist/{chunk-MM7344RC.js → chunk-4CNBSPNL.js} +2 -2
- package/dist/chunk-5PAMO6OG.js +9 -0
- package/dist/{chunk-3BSFVKMK.js → chunk-7DUGVGUZ.js} +2 -2
- package/dist/{chunk-6J6U7JXN.js → chunk-7NNGYM3G.js} +3 -3
- package/dist/{chunk-UP2JTDBI.js → chunk-7NNOGTMC.js} +3 -3
- package/dist/{chunk-IOHK45WE.js → chunk-7OFVXQSM.js} +2 -2
- package/dist/{chunk-PHGVVFTF.js → chunk-7RHC5U7X.js} +108 -133
- package/dist/chunk-7RHC5U7X.js.map +1 -0
- package/dist/{chunk-RJUMLWXP.js → chunk-B6MWNZCN.js} +114 -18
- package/dist/chunk-B6MWNZCN.js.map +1 -0
- package/dist/{chunk-FMLE2WSN.js → chunk-BLGCU4HT.js} +2 -2
- package/dist/{chunk-RCGFHJM7.js → chunk-CBCOVIXZ.js} +2 -2
- package/dist/{chunk-3S6L437Q.js → chunk-CDYCZ3PR.js} +4 -4
- package/dist/{chunk-6YMLYU5G.js → chunk-CR4LUAP4.js} +7 -7
- package/dist/{chunk-ZXHMC7UO.js → chunk-D2J3AD6L.js} +3 -5
- package/dist/chunk-D2J3AD6L.js.map +1 -0
- package/dist/{chunk-ICXUTMGH.js → chunk-DGVCN7HB.js} +2 -2
- package/dist/{chunk-B5WDN63X.js → chunk-DMGNJ73M.js} +2 -2
- package/dist/{chunk-353ZINJ2.js → chunk-DYQQLUSB.js} +3 -3
- package/dist/{chunk-AHI2WVWP.js → chunk-DZ4LX2EK.js} +8 -8
- package/dist/{chunk-IFQOOCT7.js → chunk-EDIHBLZY.js} +46 -24
- package/dist/chunk-EDIHBLZY.js.map +1 -0
- package/dist/{chunk-2K5TDJ7M.js → chunk-F2CDUWZU.js} +5 -5
- package/dist/{chunk-TIG7NHVO.js → chunk-F2NOCGMA.js} +18 -6
- package/dist/chunk-F2NOCGMA.js.map +1 -0
- package/dist/chunk-FGPXMAYU.js +25 -0
- package/dist/chunk-FGPXMAYU.js.map +1 -0
- package/dist/{chunk-FKM67CZZ.js → chunk-FLHMFRZB.js} +7 -9
- package/dist/{chunk-FKM67CZZ.js.map → chunk-FLHMFRZB.js.map} +1 -1
- package/dist/{chunk-F3PEUOTP.js → chunk-FR7B7QH6.js} +2 -2
- package/dist/{chunk-WVV54JP3.js → chunk-G4QUJO7W.js} +53 -53
- package/dist/{chunk-BNKVENDF.js → chunk-G4ZR5YZL.js} +5 -5
- package/dist/{chunk-ADIN3DTD.js → chunk-GG4VKPAX.js} +2 -2
- package/dist/{chunk-WKOJ7NXD.js → chunk-GZNF6762.js} +4 -4
- package/dist/{chunk-66VPQOVZ.js → chunk-H3LP3Z4U.js} +13 -10
- package/dist/chunk-H3LP3Z4U.js.map +1 -0
- package/dist/{chunk-E7WPTSHQ.js → chunk-HJKYE57I.js} +11 -11
- package/dist/{chunk-KL4YYV37.js → chunk-I5FZXDCO.js} +4 -4
- package/dist/{chunk-LKESANVD.js → chunk-IQ4MITHC.js} +2 -2
- package/dist/{chunk-NWOCQVSL.js → chunk-J3GEINBH.js} +7 -7
- package/dist/{chunk-LJKF73JB.js → chunk-JCFCEJ2D.js} +3 -3
- package/dist/{chunk-Z6ZMWFNV.js → chunk-JF25PSYF.js} +6 -8
- package/dist/{chunk-Z6ZMWFNV.js.map → chunk-JF25PSYF.js.map} +1 -1
- package/dist/{chunk-OCMNBOPX.js → chunk-JVHHSKBJ.js} +2 -2
- package/dist/{chunk-KDO7D46L.js → chunk-LHM3GB5K.js} +3 -3
- package/dist/{chunk-PSUJZUYX.js → chunk-LM2T5OR3.js} +3 -2
- package/dist/{chunk-5R5JEQW7.js → chunk-LQNHIMJM.js} +12 -12
- package/dist/{chunk-UBOKRHNV.js → chunk-MKJH2D4V.js} +2 -2
- package/dist/{chunk-4TTYEMOY.js → chunk-MXOHW4U2.js} +14 -7
- package/dist/chunk-MXOHW4U2.js.map +1 -0
- package/dist/{chunk-Z7I6DQAR.js → chunk-N4W34U3I.js} +42 -9
- package/dist/chunk-N4W34U3I.js.map +1 -0
- package/dist/{chunk-PCNNW63Z.js → chunk-NFWSJFYY.js} +2 -2
- package/dist/{chunk-2MAZV5KS.js → chunk-O5ZJY5BT.js} +16 -3
- package/dist/chunk-O5ZJY5BT.js.map +1 -0
- package/dist/{chunk-JVBIWU7S.js → chunk-OY46QHLX.js} +3 -3
- package/dist/{chunk-GZGJQKQT.js → chunk-PKQROEFP.js} +2 -2
- package/dist/{chunk-2HHIDWHH.js → chunk-QBI6K23L.js} +7 -7
- package/dist/{chunk-3XG23PLG.js → chunk-QLFJNYBV.js} +3 -3
- package/dist/{chunk-IDQVTWLX.js → chunk-R5JCCRGD.js} +5 -5
- package/dist/{chunk-Y7T73SAP.js → chunk-RUYTU2WJ.js} +7 -3
- package/dist/chunk-RUYTU2WJ.js.map +1 -0
- package/dist/{chunk-VFH4SU3M.js → chunk-SPP7MA3D.js} +9 -9
- package/dist/{chunk-46XSWHCQ.js → chunk-TEL27NRC.js} +5 -4
- package/dist/chunk-TEL27NRC.js.map +1 -0
- package/dist/{chunk-TKWUSJNQ.js → chunk-TEVCBUEN.js} +7 -9
- package/dist/{chunk-TKWUSJNQ.js.map → chunk-TEVCBUEN.js.map} +1 -1
- package/dist/{chunk-FSQJOZS4.js → chunk-URGHBFB3.js} +9 -9
- package/dist/{chunk-2VRZVUM7.js → chunk-VAMLU5VH.js} +6 -6
- package/dist/{chunk-4O4VQQEA.js → chunk-VJ5XMYXE.js} +3 -3
- package/dist/{chunk-JNCKZ3OF.js → chunk-VRQKIIC2.js} +4 -4
- package/dist/{chunk-34E2LA3M.js → chunk-W7MGB3Q2.js} +5 -5
- package/dist/{chunk-V7GCYL6A.js → chunk-X3RHLYGI.js} +6 -6
- package/dist/{chunk-RQFHA5BM.js → chunk-YKQLHFY4.js} +43 -8
- package/dist/chunk-YKQLHFY4.js.map +1 -0
- package/dist/{chunk-WY7QZ2P7.js → chunk-YPXFDJ76.js} +2 -2
- package/dist/{chunk-LZZCJAJQ.js → chunk-YQBBFX7D.js} +7 -7
- package/dist/{chunk-27LWL6QE.js → chunk-ZG2M4ECW.js} +464 -12
- package/dist/chunk-ZG2M4ECW.js.map +1 -0
- package/dist/{cleanup-M5TY4FQS.js → cleanup-X7G66SPY.js} +35 -35
- package/dist/{cli-446A536X.js → cli-RJVX6HVT.js} +5 -5
- package/dist/{command-hook-installer-7Q7UD7AU.js → command-hook-installer-GMQ4IVDE.js} +3 -3
- package/dist/{config-JLORGUXN.js → config-ZBU5PHMG.js} +11 -11
- package/dist/{diff-4O5HXNZ7.js → diff-ADSD4SNQ.js} +12 -12
- package/dist/{digest-IAAZXJCC.js → digest-ORN6JFNE.js} +11 -11
- package/dist/{fork-ULJYPEKY.js → fork-VWHAU76U.js} +32 -32
- package/dist/{history-JFZF22M7.js → history-PP7RHA2V.js} +9 -9
- package/dist/{hook-UYOIQVJ7.js → hook-6AL5LIQO.js} +17 -17
- package/dist/{hydrate-DROI4RJ7.js → hydrate-JW5MIWLZ.js} +10 -10
- package/dist/{init-FF75CQM7.js → init-SIIKJF3K.js} +16 -16
- package/dist/{install-skills-XSAHNBYD.js → install-skills-KS6N4U6L.js} +8 -8
- package/dist/install-skills-bin.js +7 -7
- package/dist/{list-5FEHBP6N.js → list-UTQF7KHP.js} +9 -9
- package/dist/{move-422L6PPI.js → move-P6WOVUGF.js} +20 -20
- package/dist/{note-AAXPD5VA.js → note-GEFCZKMT.js} +13 -13
- package/dist/{overlaps-WPNUYOFF.js → overlaps-QMI2RJSG.js} +16 -16
- package/dist/{pin-QXPF23BB.js → pin-ZALBX2XK.js} +13 -13
- package/dist/{pr-QLGXPKPQ.js → pr-D3EZ7C5H.js} +24 -24
- package/dist/{prune-GRHKRRVT.js → prune-ZCOBL7IB.js} +33 -33
- package/dist/{pty-host-XDDXA4SL.js → pty-host-UCM6GV42.js} +16 -16
- package/dist/{read-YWKD2DGP.js → read-NHRSGZI4.js} +12 -12
- package/dist/{recent-SI5BDVVH.js → recent-V4JVL4Y2.js} +17 -17
- package/dist/{remove-RXXCHY44.js → remove-YNO2I3HR.js} +32 -32
- package/dist/{restart-CPNDEXU6.js → restart-6YKAD7QQ.js} +12 -12
- package/dist/{resume-BLP4TTJK.js → resume-PNZ7BRXJ.js} +17 -17
- package/dist/{review-now-ADWZPELT.js → review-now-HHQIBVUS.js} +5 -5
- package/dist/{run-JFCDJ3EV.js → run-3QYP7GBN.js} +9 -9
- package/dist/{screen-LBOPAUXV.js → screen-I6N6FKMF.js} +12 -12
- package/dist/{search-AMEGRH24.js → search-MLLK3ZCW.js} +9 -9
- package/dist/{section-73Z34PVE.js → section-EQOZ36FS.js} +13 -13
- package/dist/{send-IZBSEET5.js → send-LET73FB6.js} +13 -13
- package/dist/{sessions-WVQ2U2W4.js → sessions-MDOJJZCK.js} +28 -28
- package/dist/{snooze-7IBHY5MY.js → snooze-TNA7QTXS.js} +12 -12
- package/dist/{start-AU62TW6M.js → start-OV6LZJ2V.js} +12 -12
- package/dist/{state-IZV7DAPL.js → state-BR43ONIH.js} +15 -6
- package/dist/state-BR43ONIH.js.map +1 -0
- package/dist/{status-Z7OMNYZX.js → status-HDDGCX4J.js} +14 -14
- package/dist/{statusline-VJFY7ZAB.js → statusline-WKKYCH7O.js} +5 -5
- package/dist/{statusline-hook-JA7MNE5H.js → statusline-hook-K7KPN2H6.js} +3 -3
- package/dist/{stop-PWNXSFBD.js → stop-3TJWZBJB.js} +12 -12
- package/dist/{sync-2BTZVDDG.js → sync-67AOBEYR.js} +33 -33
- package/dist/{time-CTCIAXIY.js → time-F6SLY6HR.js} +14 -14
- package/dist/{time-actions-UYBOXET6.js → time-actions-YOXF5WC7.js} +5 -5
- package/dist/{timesheet-BUFQ34FC.js → timesheet-QUEDQSJ2.js} +16 -16
- package/dist/{todo-2R7VID57.js → todo-TALKJYK6.js} +5 -5
- package/dist/{tree-LQDPAXQA.js → tree-FOOQBNVW.js} +32 -33
- package/dist/{tree-LQDPAXQA.js.map → tree-FOOQBNVW.js.map} +1 -1
- package/dist/{update-2IYJHY7H.js → update-5O3I5P4N.js} +19 -19
- package/dist/{usage-IR5GNF4R.js → usage-DVKHDT5J.js} +11 -11
- package/dist/{version-ONEI52TI.js → version-TVT6GSRF.js} +5 -5
- package/dist/{wait-6DH34L53.js → wait-5HZZPKNM.js} +13 -13
- package/dist/wd-bin.js +4 -4
- package/dist/web/assets/{PtyView-kBcAOwHr.js → PtyView-DIGlBtjg.js} +2 -2
- package/dist/web/assets/{PtyView-kBcAOwHr.js.map → PtyView-DIGlBtjg.js.map} +1 -1
- package/dist/web/assets/index-CpqiTeqj.css +1 -0
- package/dist/web/assets/index-Cx0PMo6D.js +126 -0
- package/dist/web/assets/index-Cx0PMo6D.js.map +1 -0
- package/dist/web/index.html +2 -2
- package/dist/{web-RIHGV7YY.js → web-T7UPV3QY.js} +3713 -2712
- package/dist/web-T7UPV3QY.js.map +1 -0
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
- package/dist/chunk-27LWL6QE.js.map +0 -1
- package/dist/chunk-2MAZV5KS.js.map +0 -1
- package/dist/chunk-46XSWHCQ.js.map +0 -1
- package/dist/chunk-4TTYEMOY.js.map +0 -1
- package/dist/chunk-66VPQOVZ.js.map +0 -1
- package/dist/chunk-7S2NQRWL.js +0 -9
- package/dist/chunk-AQP6SCCJ.js +0 -66
- package/dist/chunk-AQP6SCCJ.js.map +0 -1
- package/dist/chunk-E67DOUVU.js.map +0 -1
- package/dist/chunk-IFQOOCT7.js.map +0 -1
- package/dist/chunk-L22AWXWA.js +0 -29
- package/dist/chunk-L22AWXWA.js.map +0 -1
- package/dist/chunk-PHGVVFTF.js.map +0 -1
- package/dist/chunk-RJUMLWXP.js.map +0 -1
- package/dist/chunk-RQFHA5BM.js.map +0 -1
- package/dist/chunk-TIG7NHVO.js.map +0 -1
- package/dist/chunk-Y7T73SAP.js.map +0 -1
- package/dist/chunk-Z7I6DQAR.js.map +0 -1
- package/dist/chunk-ZXHMC7UO.js.map +0 -1
- package/dist/state-IZV7DAPL.js.map +0 -1
- package/dist/web/assets/index-BgfR3N99.js +0 -124
- package/dist/web/assets/index-BgfR3N99.js.map +0 -1
- package/dist/web/assets/index-CKpHjII8.css +0 -1
- package/dist/web-RIHGV7YY.js.map +0 -1
- /package/dist/{account-QSNXX5YV.js.map → account-Q5Y3YKI7.js.map} +0 -0
- /package/dist/{add-repo-YZ32MLZG.js.map → add-repo-L4ZTGBLO.js.map} +0 -0
- /package/dist/{answer-Y4T5X446.js.map → answer-GNR4ZBWV.js.map} +0 -0
- /package/dist/{attach-XPYWYHDP.js.map → attach-QNSDKRW7.js.map} +0 -0
- /package/dist/{broadcast-FATIANHX.js.map → broadcast-DR3JFINO.js.map} +0 -0
- /package/dist/{catchup-OTI2KZG5.js.map → catchup-YG2UOZBL.js.map} +0 -0
- /package/dist/{chunk-RHDZPV6C.js.map → chunk-246OTVRR.js.map} +0 -0
- /package/dist/{chunk-VV3NFLLP.js.map → chunk-26YZYL77.js.map} +0 -0
- /package/dist/{chunk-IKX3B26P.js.map → chunk-2KN5ECHJ.js.map} +0 -0
- /package/dist/{chunk-V4U5RGEG.js.map → chunk-2QLLPZ2L.js.map} +0 -0
- /package/dist/{chunk-ZRATYLBB.js.map → chunk-33XSEAHO.js.map} +0 -0
- /package/dist/{chunk-MM7344RC.js.map → chunk-4CNBSPNL.js.map} +0 -0
- /package/dist/{chunk-7S2NQRWL.js.map → chunk-5PAMO6OG.js.map} +0 -0
- /package/dist/{chunk-3BSFVKMK.js.map → chunk-7DUGVGUZ.js.map} +0 -0
- /package/dist/{chunk-6J6U7JXN.js.map → chunk-7NNGYM3G.js.map} +0 -0
- /package/dist/{chunk-UP2JTDBI.js.map → chunk-7NNOGTMC.js.map} +0 -0
- /package/dist/{chunk-IOHK45WE.js.map → chunk-7OFVXQSM.js.map} +0 -0
- /package/dist/{chunk-FMLE2WSN.js.map → chunk-BLGCU4HT.js.map} +0 -0
- /package/dist/{chunk-RCGFHJM7.js.map → chunk-CBCOVIXZ.js.map} +0 -0
- /package/dist/{chunk-3S6L437Q.js.map → chunk-CDYCZ3PR.js.map} +0 -0
- /package/dist/{chunk-6YMLYU5G.js.map → chunk-CR4LUAP4.js.map} +0 -0
- /package/dist/{chunk-ICXUTMGH.js.map → chunk-DGVCN7HB.js.map} +0 -0
- /package/dist/{chunk-B5WDN63X.js.map → chunk-DMGNJ73M.js.map} +0 -0
- /package/dist/{chunk-353ZINJ2.js.map → chunk-DYQQLUSB.js.map} +0 -0
- /package/dist/{chunk-AHI2WVWP.js.map → chunk-DZ4LX2EK.js.map} +0 -0
- /package/dist/{chunk-2K5TDJ7M.js.map → chunk-F2CDUWZU.js.map} +0 -0
- /package/dist/{chunk-F3PEUOTP.js.map → chunk-FR7B7QH6.js.map} +0 -0
- /package/dist/{chunk-WVV54JP3.js.map → chunk-G4QUJO7W.js.map} +0 -0
- /package/dist/{chunk-BNKVENDF.js.map → chunk-G4ZR5YZL.js.map} +0 -0
- /package/dist/{chunk-ADIN3DTD.js.map → chunk-GG4VKPAX.js.map} +0 -0
- /package/dist/{chunk-WKOJ7NXD.js.map → chunk-GZNF6762.js.map} +0 -0
- /package/dist/{chunk-E7WPTSHQ.js.map → chunk-HJKYE57I.js.map} +0 -0
- /package/dist/{chunk-KL4YYV37.js.map → chunk-I5FZXDCO.js.map} +0 -0
- /package/dist/{chunk-LKESANVD.js.map → chunk-IQ4MITHC.js.map} +0 -0
- /package/dist/{chunk-NWOCQVSL.js.map → chunk-J3GEINBH.js.map} +0 -0
- /package/dist/{chunk-LJKF73JB.js.map → chunk-JCFCEJ2D.js.map} +0 -0
- /package/dist/{chunk-OCMNBOPX.js.map → chunk-JVHHSKBJ.js.map} +0 -0
- /package/dist/{chunk-KDO7D46L.js.map → chunk-LHM3GB5K.js.map} +0 -0
- /package/dist/{chunk-PSUJZUYX.js.map → chunk-LM2T5OR3.js.map} +0 -0
- /package/dist/{chunk-5R5JEQW7.js.map → chunk-LQNHIMJM.js.map} +0 -0
- /package/dist/{chunk-UBOKRHNV.js.map → chunk-MKJH2D4V.js.map} +0 -0
- /package/dist/{chunk-PCNNW63Z.js.map → chunk-NFWSJFYY.js.map} +0 -0
- /package/dist/{chunk-JVBIWU7S.js.map → chunk-OY46QHLX.js.map} +0 -0
- /package/dist/{chunk-GZGJQKQT.js.map → chunk-PKQROEFP.js.map} +0 -0
- /package/dist/{chunk-2HHIDWHH.js.map → chunk-QBI6K23L.js.map} +0 -0
- /package/dist/{chunk-3XG23PLG.js.map → chunk-QLFJNYBV.js.map} +0 -0
- /package/dist/{chunk-IDQVTWLX.js.map → chunk-R5JCCRGD.js.map} +0 -0
- /package/dist/{chunk-VFH4SU3M.js.map → chunk-SPP7MA3D.js.map} +0 -0
- /package/dist/{chunk-FSQJOZS4.js.map → chunk-URGHBFB3.js.map} +0 -0
- /package/dist/{chunk-2VRZVUM7.js.map → chunk-VAMLU5VH.js.map} +0 -0
- /package/dist/{chunk-4O4VQQEA.js.map → chunk-VJ5XMYXE.js.map} +0 -0
- /package/dist/{chunk-JNCKZ3OF.js.map → chunk-VRQKIIC2.js.map} +0 -0
- /package/dist/{chunk-34E2LA3M.js.map → chunk-W7MGB3Q2.js.map} +0 -0
- /package/dist/{chunk-V7GCYL6A.js.map → chunk-X3RHLYGI.js.map} +0 -0
- /package/dist/{chunk-WY7QZ2P7.js.map → chunk-YPXFDJ76.js.map} +0 -0
- /package/dist/{chunk-LZZCJAJQ.js.map → chunk-YQBBFX7D.js.map} +0 -0
- /package/dist/{cleanup-M5TY4FQS.js.map → cleanup-X7G66SPY.js.map} +0 -0
- /package/dist/{cli-446A536X.js.map → cli-RJVX6HVT.js.map} +0 -0
- /package/dist/{command-hook-installer-7Q7UD7AU.js.map → command-hook-installer-GMQ4IVDE.js.map} +0 -0
- /package/dist/{config-JLORGUXN.js.map → config-ZBU5PHMG.js.map} +0 -0
- /package/dist/{diff-4O5HXNZ7.js.map → diff-ADSD4SNQ.js.map} +0 -0
- /package/dist/{digest-IAAZXJCC.js.map → digest-ORN6JFNE.js.map} +0 -0
- /package/dist/{fork-ULJYPEKY.js.map → fork-VWHAU76U.js.map} +0 -0
- /package/dist/{history-JFZF22M7.js.map → history-PP7RHA2V.js.map} +0 -0
- /package/dist/{hook-UYOIQVJ7.js.map → hook-6AL5LIQO.js.map} +0 -0
- /package/dist/{hydrate-DROI4RJ7.js.map → hydrate-JW5MIWLZ.js.map} +0 -0
- /package/dist/{init-FF75CQM7.js.map → init-SIIKJF3K.js.map} +0 -0
- /package/dist/{install-skills-XSAHNBYD.js.map → install-skills-KS6N4U6L.js.map} +0 -0
- /package/dist/{list-5FEHBP6N.js.map → list-UTQF7KHP.js.map} +0 -0
- /package/dist/{move-422L6PPI.js.map → move-P6WOVUGF.js.map} +0 -0
- /package/dist/{note-AAXPD5VA.js.map → note-GEFCZKMT.js.map} +0 -0
- /package/dist/{overlaps-WPNUYOFF.js.map → overlaps-QMI2RJSG.js.map} +0 -0
- /package/dist/{pin-QXPF23BB.js.map → pin-ZALBX2XK.js.map} +0 -0
- /package/dist/{pr-QLGXPKPQ.js.map → pr-D3EZ7C5H.js.map} +0 -0
- /package/dist/{prune-GRHKRRVT.js.map → prune-ZCOBL7IB.js.map} +0 -0
- /package/dist/{pty-host-XDDXA4SL.js.map → pty-host-UCM6GV42.js.map} +0 -0
- /package/dist/{read-YWKD2DGP.js.map → read-NHRSGZI4.js.map} +0 -0
- /package/dist/{recent-SI5BDVVH.js.map → recent-V4JVL4Y2.js.map} +0 -0
- /package/dist/{remove-RXXCHY44.js.map → remove-YNO2I3HR.js.map} +0 -0
- /package/dist/{restart-CPNDEXU6.js.map → restart-6YKAD7QQ.js.map} +0 -0
- /package/dist/{resume-BLP4TTJK.js.map → resume-PNZ7BRXJ.js.map} +0 -0
- /package/dist/{review-now-ADWZPELT.js.map → review-now-HHQIBVUS.js.map} +0 -0
- /package/dist/{run-JFCDJ3EV.js.map → run-3QYP7GBN.js.map} +0 -0
- /package/dist/{screen-LBOPAUXV.js.map → screen-I6N6FKMF.js.map} +0 -0
- /package/dist/{search-AMEGRH24.js.map → search-MLLK3ZCW.js.map} +0 -0
- /package/dist/{section-73Z34PVE.js.map → section-EQOZ36FS.js.map} +0 -0
- /package/dist/{send-IZBSEET5.js.map → send-LET73FB6.js.map} +0 -0
- /package/dist/{sessions-WVQ2U2W4.js.map → sessions-MDOJJZCK.js.map} +0 -0
- /package/dist/{snooze-7IBHY5MY.js.map → snooze-TNA7QTXS.js.map} +0 -0
- /package/dist/{start-AU62TW6M.js.map → start-OV6LZJ2V.js.map} +0 -0
- /package/dist/{status-Z7OMNYZX.js.map → status-HDDGCX4J.js.map} +0 -0
- /package/dist/{statusline-VJFY7ZAB.js.map → statusline-WKKYCH7O.js.map} +0 -0
- /package/dist/{statusline-hook-JA7MNE5H.js.map → statusline-hook-K7KPN2H6.js.map} +0 -0
- /package/dist/{stop-PWNXSFBD.js.map → stop-3TJWZBJB.js.map} +0 -0
- /package/dist/{sync-2BTZVDDG.js.map → sync-67AOBEYR.js.map} +0 -0
- /package/dist/{time-CTCIAXIY.js.map → time-F6SLY6HR.js.map} +0 -0
- /package/dist/{time-actions-UYBOXET6.js.map → time-actions-YOXF5WC7.js.map} +0 -0
- /package/dist/{timesheet-BUFQ34FC.js.map → timesheet-QUEDQSJ2.js.map} +0 -0
- /package/dist/{todo-2R7VID57.js.map → todo-TALKJYK6.js.map} +0 -0
- /package/dist/{update-2IYJHY7H.js.map → update-5O3I5P4N.js.map} +0 -0
- /package/dist/{usage-IR5GNF4R.js.map → usage-DVKHDT5J.js.map} +0 -0
- /package/dist/{version-ONEI52TI.js.map → version-TVT6GSRF.js.map} +0 -0
- /package/dist/{wait-6DH34L53.js.map → wait-5HZZPKNM.js.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/core/setup/first-run.ts"],"sourcesContent":["import fs from 'node:fs';\nimport { DEFAULT_HOST, hostForRepo, knownHosts } from '../hosts/index.js';\nimport os from 'node:os';\nimport path from 'node:path';\nimport { getConfigDir, getConfigPath, loadConfig } from '../platform/config.js';\nimport { atomicWriteFile, withFileLock } from '../platform/fs-safe.js';\nimport { loadHistory } from '../sessions/history.js';\nimport { defaultRunner, type CommandRunner } from '../pr/ship.js';\nimport type { SetupWire, ToolCheck } from '../api-types.js';\nimport { makeFolder } from '../worktree/worktrees-root.js';\n\n/**\n * First run (the dashboard's Welcome page, `work init`): where your repos\n * are, where worktrees go, and whether the tools work leans on are there.\n * Nothing here is needed again once the folders are set and a repo is in.\n */\n\n/** Files new worktrees get copied from the repo (local settings git ignores): `work init`'s defaults. */\nexport const DEFAULT_COPY_FILES = ['*.Development.json', '*.Local.json', '.claude/settings.local.json'];\n\n/** Where repos usually live, most likely first. */\nconst REPO_FOLDERS = [['source', 'repos'], ['repos'], ['src'], ['code'], ['projects'], ['dev'], ['git'], ['work']];\n\n/**\n * The folders to suggest: the first usual repos folder that exists under\n * home, and worktrees beside it (`…/source/repos` → `…/source/worktrees`).\n * With none, worktrees go under home and the repos folder is yours to name.\n */\nexport function suggestFolders(\n home: string,\n exists: (p: string) => boolean = fs.existsSync,\n): { reposFolder: string | null; worktreesRoot: string } {\n for (const parts of REPO_FOLDERS) {\n const p = path.join(home, ...parts);\n if (exists(p)) return { reposFolder: p, worktreesRoot: path.join(path.dirname(p), 'worktrees') };\n }\n return { reposFolder: null, worktreesRoot: path.join(home, 'worktrees') };\n}\n\n/** What a folder entered for setup is wrong with, or null. */\nexport function folderProblem(p: unknown, mustExist: boolean): string | null {\n if (typeof p !== 'string' || !p.trim()) return 'give a folder';\n if (!path.isAbsolute(p.trim())) return `${p} isn't a full path (start it from the drive or /)`;\n if (mustExist && !fs.existsSync(p.trim())) return `${p} doesn't exist`;\n return null;\n}\n\n/**\n * Set the folders: config.json made when there is none (with `work init`'s\n * defaults), else its worktrees root and scanned folder changed in place,\n * every other key as it was.\n */\nexport async function saveFolders(req: { worktreesRoot: string; reposFolder: string }): Promise<void> {\n const wt = folderProblem(req.worktreesRoot, false);\n if (wt) throw new Error(`Worktrees folder: ${wt}`);\n const rf = folderProblem(req.reposFolder, true);\n if (rf) throw new Error(`Repos folder: ${rf}`);\n const worktreesRoot = path.resolve(req.worktreesRoot.trim());\n const reposFolder = path.resolve(req.reposFolder.trim());\n const cantMake = makeFolder(worktreesRoot);\n if (cantMake) throw new Error(`Worktrees folder: ${cantMake} — pick a folder you own, e.g. under ${os.homedir()}`);\n getConfigDir();\n const file = getConfigPath();\n if (!fs.existsSync(file)) fs.writeFileSync(file, '{}', { flag: 'wx' });\n await withFileLock(file, () => {\n const raw = JSON.parse(fs.readFileSync(file, 'utf-8') || '{}') as Record<string, unknown>;\n raw.worktreesRoot = worktreesRoot;\n raw.scanRoots = [reposFolder];\n raw.repos ??= {};\n raw.groups ??= {};\n raw.copyFiles ??= DEFAULT_COPY_FILES;\n atomicWriteFile(file, JSON.stringify(raw, null, 2));\n });\n}\n\n/** One tool's check: its command, and what it means when it's missing. */\ninterface ToolSpec {\n id: ToolCheck['id'];\n label: string;\n needed: boolean;\n args: string[];\n cmd: string;\n missing: string;\n /** A failure that isn't \"not installed\" (gh logged out). */\n failing?: string;\n /** Checked first, each with its own line when it fails (az's azure-devops extension). */\n requires?: Array<{ args: string[]; failing: string }>;\n}\n\nconst TOOLS: ToolSpec[] = [\n { id: 'git', label: 'git', needed: true, cmd: 'git', args: ['--version'], missing: 'Install git: worktrees are git’s.' },\n {\n id: 'claude',\n label: 'Claude Code',\n needed: true,\n cmd: 'claude',\n args: ['--version'],\n missing: 'Install Claude Code (npm install -g @anthropic-ai/claude-code) and sign in once in a terminal.',\n },\n {\n id: 'acli',\n label: 'Atlassian CLI',\n needed: false,\n cmd: 'acli',\n args: ['--version'],\n missing: 'Optional: install acli to start sessions from your Jira issues.',\n },\n];\n\n/** Each git host's CLI, after git and Claude Code: optional, it adds that host's pull requests. */\nfunction toolsNow(): ToolSpec[] {\n const repos = Object.values(loadConfig()?.repos ?? {});\n const used = new Set(repos.map((p) => hostForRepo(p).host.id));\n const hosts = knownHosts()\n .filter((h) => h.id === DEFAULT_HOST || used.has(h.id))\n .map((h): ToolSpec => ({\n id: h.cli.cmd,\n label: h.cli.label,\n needed: false,\n cmd: h.cli.cmd,\n args: h.cli.checkArgs,\n missing: h.cli.missing,\n failing: h.cli.failing,\n ...(h.cli.requires ? { requires: h.cli.requires } : {}),\n }));\n return [TOOLS[0], TOOLS[1], ...hosts, ...TOOLS.slice(2)];\n}\n\n/** Whether each tool answers. A command not found is \"missing\"; one that runs and fails says why. */\nexport async function checkTools(run: CommandRunner = defaultRunner): Promise<ToolCheck[]> {\n return Promise.all(\n toolsNow().map(async (t): Promise<ToolCheck> => {\n const ask = (args: string[]) => run(t.cmd, args, os.tmpdir()).catch(() => ({ code: 127, stdout: '', stderr: '' }));\n const notFound = (r: { code: number; stderr: string }) => r.code === 127 || /not (found|recognized)|ENOENT/i.test(r.stderr);\n const result = (ok: boolean, detail: string): ToolCheck => ({ id: t.id, label: t.label, needed: t.needed, ok, detail });\n // What it needs beyond itself first (az's azure-devops extension): `az account show` passes without it.\n for (const pre of t.requires ?? []) {\n const r = await ask(pre.args);\n if (r.code !== 0) return result(false, notFound(r) ? t.missing : pre.failing);\n }\n const r = await ask(t.args);\n const ok = r.code === 0;\n return result(ok, ok ? (r.stdout || r.stderr).split('\\n')[0].trim() : notFound(r) ? t.missing : (t.failing ?? t.missing));\n }),\n );\n}\n\n/** Where setup stands: the folders, how many repos and sessions, the tools. */\nexport async function setupState(tools: () => Promise<ToolCheck[]> = () => checkTools()): Promise<SetupWire> {\n const config = loadConfig();\n const suggested = suggestFolders(os.homedir());\n const sessions = config ? loadHistory().filter((s) => !s.archivedAt).length : 0;\n return {\n configured: !!config && !!config.worktreesRoot,\n worktreesRoot: config?.worktreesRoot || null,\n reposFolder: config?.scanRoots?.[0] ?? (config?.worktreesRoot ? path.dirname(config.worktreesRoot) : null),\n repos: config ? Object.keys(config.repos).length : 0,\n sessions,\n suggested,\n tools: await tools(),\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ;AAEf,OAAO,QAAQ;AACf,OAAO,UAAU;AAeV,IAAM,qBAAqB,CAAC,sBAAsB,gBAAgB,6BAA6B;AAGtG,IAAM,eAAe,CAAC,CAAC,UAAU,OAAO,GAAG,CAAC,OAAO,GAAG,CAAC,KAAK,GAAG,CAAC,MAAM,GAAG,CAAC,UAAU,GAAG,CAAC,KAAK,GAAG,CAAC,KAAK,GAAG,CAAC,MAAM,CAAC;AAO1G,SAAS,eACd,MACA,SAAiC,GAAG,YACmB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AAA,IACxC,aAAa,QAAQ,YAAY,CAAC,MAAM,QAAQ,gBAAgB,KAAK,QAAQ,OAAO,aAAa,IAAI;AAAA,IACrG,OAAO,SAAS,OAAO,KAAK,OAAO,KAAK,EAAE,SAAS;AAAA,IACnD;AAAA,IACA;AAAA,IACA,OAAO,MAAM,MAAM;AAAA,EACrB;AACF;","names":["r","ok"]}
|
|
1
|
+
{"version":3,"sources":["../src/core/setup/first-run.ts"],"sourcesContent":["import fs from 'node:fs';\nimport { DEFAULT_HOST, hostForRepo, knownHosts } from '../hosts/index.js';\nimport os from 'node:os';\nimport path from 'node:path';\nimport { getConfigDir, getConfigPath, loadConfig } from '../platform/config.js';\nimport { atomicWriteFile, withFileLock } from '../platform/fs-safe.js';\nimport { loadHistory } from '../sessions/history.js';\nimport { defaultRunner, type CommandRunner } from '../pr/ship.js';\nimport type { SetupWire, ToolCheck } from '../api-types.js';\nimport { makeFolder } from '../worktree/worktrees-root.js';\n\n/**\n * First run (the dashboard's Welcome page, `work init`): where your repos\n * are, where worktrees go, and whether the tools work leans on are there.\n * Nothing here is needed again once the folders are set and a repo is in.\n */\n\n/** Files new worktrees get copied from the repo (local settings git ignores): `work init`'s defaults. */\nexport const DEFAULT_COPY_FILES = ['*.Development.json', '*.Local.json', '.claude/settings.local.json'];\n\n/** Where repos usually live, most likely first. */\nconst REPO_FOLDERS = [['source', 'repos'], ['repos'], ['src'], ['code'], ['projects'], ['dev'], ['git'], ['work']];\n\n/**\n * The folders to suggest: the first usual repos folder that exists under\n * home, and worktrees beside it (`…/source/repos` → `…/source/worktrees`).\n * With none, worktrees go under home and the repos folder is yours to name.\n */\nexport function suggestFolders(\n home: string,\n exists: (p: string) => boolean = fs.existsSync,\n): { reposFolder: string | null; worktreesRoot: string } {\n for (const parts of REPO_FOLDERS) {\n const p = path.join(home, ...parts);\n if (exists(p)) return { reposFolder: p, worktreesRoot: path.join(path.dirname(p), 'worktrees') };\n }\n return { reposFolder: null, worktreesRoot: path.join(home, 'worktrees') };\n}\n\n/** What a folder entered for setup is wrong with, or null. */\nexport function folderProblem(p: unknown, mustExist: boolean): string | null {\n if (typeof p !== 'string' || !p.trim()) return 'give a folder';\n if (!path.isAbsolute(p.trim())) return `${p} isn't a full path (start it from the drive or /)`;\n if (mustExist && !fs.existsSync(p.trim())) return `${p} doesn't exist`;\n return null;\n}\n\n/**\n * Set the folders: config.json made when there is none (with `work init`'s\n * defaults), else its worktrees root and scanned folder changed in place,\n * every other key as it was.\n */\nexport async function saveFolders(req: { worktreesRoot: string; reposFolder: string }): Promise<void> {\n const wt = folderProblem(req.worktreesRoot, false);\n if (wt) throw new Error(`Worktrees folder: ${wt}`);\n const rf = folderProblem(req.reposFolder, true);\n if (rf) throw new Error(`Repos folder: ${rf}`);\n const worktreesRoot = path.resolve(req.worktreesRoot.trim());\n const reposFolder = path.resolve(req.reposFolder.trim());\n const cantMake = makeFolder(worktreesRoot);\n if (cantMake) throw new Error(`Worktrees folder: ${cantMake} — pick a folder you own, e.g. under ${os.homedir()}`);\n getConfigDir();\n const file = getConfigPath();\n if (!fs.existsSync(file)) fs.writeFileSync(file, '{}', { flag: 'wx' });\n await withFileLock(file, () => {\n const raw = JSON.parse(fs.readFileSync(file, 'utf-8') || '{}') as Record<string, unknown>;\n raw.worktreesRoot = worktreesRoot;\n raw.scanRoots = [reposFolder];\n raw.repos ??= {};\n raw.groups ??= {};\n raw.copyFiles ??= DEFAULT_COPY_FILES;\n atomicWriteFile(file, JSON.stringify(raw, null, 2));\n });\n}\n\n/** One tool's check: its command, and what it means when it's missing. */\ninterface ToolSpec {\n id: ToolCheck['id'];\n label: string;\n needed: boolean;\n args: string[];\n cmd: string;\n missing: string;\n /** A failure that isn't \"not installed\" (gh logged out). */\n failing?: string;\n /** Checked first, each with its own line when it fails (az's azure-devops extension). */\n requires?: Array<{ args: string[]; failing: string }>;\n}\n\nconst TOOLS: ToolSpec[] = [\n { id: 'git', label: 'git', needed: true, cmd: 'git', args: ['--version'], missing: 'Install git: worktrees are git’s.' },\n {\n id: 'claude',\n label: 'Claude Code',\n needed: true,\n cmd: 'claude',\n args: ['--version'],\n missing: 'Install Claude Code (npm install -g @anthropic-ai/claude-code) and sign in once in a terminal.',\n },\n {\n id: 'acli',\n label: 'Atlassian CLI',\n needed: false,\n cmd: 'acli',\n args: ['--version'],\n missing: 'Optional: install acli to start sessions from your Jira issues.',\n },\n];\n\n/** Each git host's CLI, after git and Claude Code: optional, it adds that host's pull requests. */\nfunction toolsNow(): ToolSpec[] {\n const repos = Object.values(loadConfig()?.repos ?? {});\n const used = new Set(repos.map((p) => hostForRepo(p).host.id));\n const hosts = knownHosts()\n .filter((h) => h.id === DEFAULT_HOST || used.has(h.id))\n .map((h): ToolSpec => ({\n id: h.cli.cmd,\n label: h.cli.label,\n needed: false,\n cmd: h.cli.cmd,\n args: h.cli.checkArgs,\n missing: h.cli.missing,\n failing: h.cli.failing,\n ...(h.cli.requires ? { requires: h.cli.requires } : {}),\n }));\n return [TOOLS[0], TOOLS[1], ...hosts, ...TOOLS.slice(2)];\n}\n\n/** Whether each tool answers. A command not found is \"missing\"; one that runs and fails says why. */\nexport async function checkTools(run: CommandRunner = defaultRunner): Promise<ToolCheck[]> {\n return Promise.all(\n toolsNow().map(async (t): Promise<ToolCheck> => {\n const ask = (args: string[]) => run(t.cmd, args, os.tmpdir()).catch(() => ({ code: 127, stdout: '', stderr: '' }));\n const notFound = (r: { code: number; stderr: string }) => r.code === 127 || /not (found|recognized)|ENOENT/i.test(r.stderr);\n const result = (ok: boolean, detail: string): ToolCheck => ({ id: t.id, label: t.label, needed: t.needed, ok, detail });\n // What it needs beyond itself first (az's azure-devops extension): `az account show` passes without it.\n for (const pre of t.requires ?? []) {\n const r = await ask(pre.args);\n if (r.code !== 0) return result(false, notFound(r) ? t.missing : pre.failing);\n }\n const r = await ask(t.args);\n const ok = r.code === 0;\n return result(ok, ok ? (r.stdout || r.stderr).split('\\n')[0].trim() : notFound(r) ? t.missing : (t.failing ?? t.missing));\n }),\n );\n}\n\n/** Where setup stands: the folders, how many repos and sessions, the tools. */\nexport async function setupState(tools: () => Promise<ToolCheck[]> = () => checkTools()): Promise<SetupWire> {\n const config = loadConfig();\n const suggested = suggestFolders(os.homedir());\n const sessions = config ? loadHistory().filter((s) => !s.archivedAt).length : 0;\n return {\n configured: !!config && !!config.worktreesRoot,\n worktreesRoot: config?.worktreesRoot || null,\n reposFolder: config?.scanRoots?.[0] ?? (config?.worktreesRoot ? path.dirname(config.worktreesRoot) : null),\n repos: config ? Object.keys(config.repos).length : 0,\n sessions,\n suggested,\n tools: await tools(),\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ;AAEf,OAAO,QAAQ;AACf,OAAO,UAAU;AAeV,IAAM,qBAAqB,CAAC,sBAAsB,gBAAgB,6BAA6B;AAGtG,IAAM,eAAe,CAAC,CAAC,UAAU,OAAO,GAAG,CAAC,OAAO,GAAG,CAAC,KAAK,GAAG,CAAC,MAAM,GAAG,CAAC,UAAU,GAAG,CAAC,KAAK,GAAG,CAAC,KAAK,GAAG,CAAC,MAAM,CAAC;AAO1G,SAAS,eACd,MACA,SAAiC,GAAG,YACmB;AACvD,aAAW,SAAS,cAAc;AAChC,UAAM,IAAI,KAAK,KAAK,MAAM,GAAG,KAAK;AAClC,QAAI,OAAO,CAAC,EAAG,QAAO,EAAE,aAAa,GAAG,eAAe,KAAK,KAAK,KAAK,QAAQ,CAAC,GAAG,WAAW,EAAE;AAAA,EACjG;AACA,SAAO,EAAE,aAAa,MAAM,eAAe,KAAK,KAAK,MAAM,WAAW,EAAE;AAC1E;AAGO,SAAS,cAAc,GAAY,WAAmC;AAC3E,MAAI,OAAO,MAAM,YAAY,CAAC,EAAE,KAAK,EAAG,QAAO;AAC/C,MAAI,CAAC,KAAK,WAAW,EAAE,KAAK,CAAC,EAAG,QAAO,GAAG,CAAC;AAC3C,MAAI,aAAa,CAAC,GAAG,WAAW,EAAE,KAAK,CAAC,EA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{
|
|
|
16
16
|
readIssueIds,
|
|
17
17
|
rememberIssueId,
|
|
18
18
|
timeSettings
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-VJ5XMYXE.js";
|
|
20
20
|
import {
|
|
21
21
|
runInternal
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-W7MGB3Q2.js";
|
|
23
23
|
import {
|
|
24
24
|
knownHosts
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-7RHC5U7X.js";
|
|
26
26
|
import {
|
|
27
27
|
loadHistory,
|
|
28
28
|
runGitAsync
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-ZG2M4ECW.js";
|
|
30
30
|
import {
|
|
31
31
|
sessionIdFor
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-RUYTU2WJ.js";
|
|
33
33
|
import {
|
|
34
34
|
isIssueKey,
|
|
35
35
|
issueKeys,
|
|
36
36
|
loadConfig
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-O5ZJY5BT.js";
|
|
38
38
|
import {
|
|
39
39
|
explainNotOnPath,
|
|
40
40
|
programPath
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
atomicWriteFile,
|
|
44
44
|
ensureFile,
|
|
45
45
|
withFileLockSync
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-D2J3AD6L.js";
|
|
47
47
|
import {
|
|
48
48
|
getConfigDir
|
|
49
49
|
} from "./chunk-6THUVP6T.js";
|
|
@@ -744,4 +744,4 @@ export {
|
|
|
744
744
|
finishDeviceLogin,
|
|
745
745
|
defaultTimeDeps
|
|
746
746
|
};
|
|
747
|
-
//# sourceMappingURL=chunk-
|
|
747
|
+
//# sourceMappingURL=chunk-URGHBFB3.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
shownState
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-GZNF6762.js";
|
|
5
5
|
import {
|
|
6
6
|
recordCheckedOutBranches
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-2ZQRD73B.js";
|
|
8
8
|
import {
|
|
9
9
|
defaultRunner
|
|
10
10
|
} from "./chunk-KSVYR4G2.js";
|
|
@@ -16,13 +16,13 @@ import {
|
|
|
16
16
|
readArchive,
|
|
17
17
|
sessionAliases,
|
|
18
18
|
setSessionBase
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-ZG2M4ECW.js";
|
|
20
20
|
import {
|
|
21
21
|
sessionIdFor
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-RUYTU2WJ.js";
|
|
23
23
|
import {
|
|
24
24
|
loadConfig
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-O5ZJY5BT.js";
|
|
26
26
|
|
|
27
27
|
// src/core/stacks/session-update.ts
|
|
28
28
|
import path4 from "path";
|
|
@@ -426,4 +426,4 @@ export {
|
|
|
426
426
|
moveOntoMain,
|
|
427
427
|
updateSession
|
|
428
428
|
};
|
|
429
|
-
//# sourceMappingURL=chunk-
|
|
429
|
+
//# sourceMappingURL=chunk-VAMLU5VH.js.map
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
sessionIdFor,
|
|
11
11
|
tx,
|
|
12
12
|
withDb
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-RUYTU2WJ.js";
|
|
14
14
|
import {
|
|
15
15
|
DEFAULT_TIME_SETTINGS,
|
|
16
16
|
isIssueKey,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
loadConfig,
|
|
21
21
|
suggestDay,
|
|
22
22
|
totalHours
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-O5ZJY5BT.js";
|
|
24
24
|
|
|
25
25
|
// src/core/time/classify.ts
|
|
26
26
|
import { createHash } from "crypto";
|
|
@@ -968,4 +968,4 @@ export {
|
|
|
968
968
|
describeMonthNow,
|
|
969
969
|
postStoredDay
|
|
970
970
|
};
|
|
971
|
-
//# sourceMappingURL=chunk-
|
|
971
|
+
//# sourceMappingURL=chunk-VJ5XMYXE.js.map
|
|
@@ -6,16 +6,16 @@ import {
|
|
|
6
6
|
getCommentFileStore,
|
|
7
7
|
readStoreComments,
|
|
8
8
|
readStoresComments
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-7DUGVGUZ.js";
|
|
10
10
|
import {
|
|
11
11
|
checkedOutBranch,
|
|
12
12
|
loadHistory
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ZG2M4ECW.js";
|
|
14
14
|
import {
|
|
15
15
|
sessionIdFor,
|
|
16
16
|
tx,
|
|
17
17
|
withDb
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-RUYTU2WJ.js";
|
|
19
19
|
|
|
20
20
|
// src/core/comments/pending-delivery.ts
|
|
21
21
|
import fs from "fs";
|
|
@@ -184,4 +184,4 @@ export {
|
|
|
184
184
|
claimForDelivery,
|
|
185
185
|
formatPendingForPrompt
|
|
186
186
|
};
|
|
187
|
-
//# sourceMappingURL=chunk-
|
|
187
|
+
//# sourceMappingURL=chunk-VRQKIIC2.js.map
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
computeRangeDiff
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-IQ4MITHC.js";
|
|
5
5
|
import {
|
|
6
6
|
loadManifest
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ZG2M4ECW.js";
|
|
8
8
|
import {
|
|
9
9
|
agentSettings,
|
|
10
10
|
internalAgent
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-N4W34U3I.js";
|
|
12
12
|
import {
|
|
13
13
|
internalRunEnv
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-DMGNJ73M.js";
|
|
15
15
|
import {
|
|
16
16
|
killTree
|
|
17
17
|
} from "./chunk-63ZLPXRL.js";
|
|
@@ -212,4 +212,4 @@ export {
|
|
|
212
212
|
runInternalReadOnly,
|
|
213
213
|
summarizeCheckpoint
|
|
214
214
|
};
|
|
215
|
-
//# sourceMappingURL=chunk-
|
|
215
|
+
//# sourceMappingURL=chunk-W7MGB3Q2.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
agentsBySession
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-7NNOGTMC.js";
|
|
5
5
|
import {
|
|
6
6
|
accountSwitchRefusal,
|
|
7
7
|
haltPty,
|
|
@@ -9,20 +9,20 @@ import {
|
|
|
9
9
|
ptyPid,
|
|
10
10
|
ptyPids,
|
|
11
11
|
resumePtyOnAccount
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-LQNHIMJM.js";
|
|
13
13
|
import {
|
|
14
14
|
findSession
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-YPXFDJ76.js";
|
|
16
16
|
import {
|
|
17
17
|
isArchiving,
|
|
18
18
|
loadHistory,
|
|
19
19
|
setSessionAccount
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-ZG2M4ECW.js";
|
|
21
21
|
import {
|
|
22
22
|
AccountAdminError,
|
|
23
23
|
agentOf,
|
|
24
24
|
liveAgents
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-N4W34U3I.js";
|
|
26
26
|
import {
|
|
27
27
|
createRestarter
|
|
28
28
|
} from "./chunk-7QNVFVG6.js";
|
|
@@ -336,4 +336,4 @@ export {
|
|
|
336
336
|
createAccountLogins,
|
|
337
337
|
accountSkillsNote
|
|
338
338
|
};
|
|
339
|
-
//# sourceMappingURL=chunk-
|
|
339
|
+
//# sourceMappingURL=chunk-X3RHLYGI.js.map
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
json,
|
|
11
11
|
tx,
|
|
12
12
|
withDb
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-RUYTU2WJ.js";
|
|
14
14
|
|
|
15
15
|
// src/core/review/review-discussion.ts
|
|
16
16
|
var MAX_DISCUSSION_PROMPT = 8e3;
|
|
@@ -98,7 +98,7 @@ function isReview(v) {
|
|
|
98
98
|
const r = v;
|
|
99
99
|
return !!r && typeof r === "object" && typeof r.repo === "string" && typeof r.number === "number" && typeof r.title === "string" && typeof r.url === "string" && typeof r.headSha === "string" && typeof r.status === "string" && STATUSES.has(r.status) && typeof r.at === "string" && !!r.size && typeof r.size.files === "number" && Array.isArray(r.files) && r.files.every((f) => !!f && typeof f === "object" && (f.summary === void 0 || typeof f.summary === "string")) && !!r.tests && Array.isArray(r.tests.list) && Array.isArray(r.tests.gaps) && Array.isArray(r.stories) && r.stories.every(
|
|
100
100
|
(s) => !!s && typeof s === "object" && typeof s.title === "string" && (s.what === void 0 || typeof s.what === "string")
|
|
101
|
-
) && Array.isArray(r.drafts) && Array.isArray(r.unstoried) && (r.summary === void 0 || typeof r.summary === "string") && (r.dropped === void 0 || Array.isArray(r.dropped)) && (r.inDoubt === void 0 || !!r.inDoubt && Array.isArray(r.inDoubt.drafts) && typeof r.inDoubt.at === "string") && (r.submitting === void 0 || !!r.submitting && typeof r.submitting.at === "string" && typeof r.submitting.pid === "number" && Array.isArray(r.submitting.drafts)) && (r.lastDraft === void 0 || typeof r.lastDraft === "number") && (r.fork === void 0 || r.fork === true) && (r.discussion === void 0 || isDiscussion(r.discussion)) && (r.fixingMyself === void 0 || Array.isArray(r.fixingMyself) && r.fixingMyself.every(isFix)) && (r.fixing === void 0 || !!r.fixing && typeof r.fixing.at === "string" && Array.isArray(r.fixing.drafts) && r.fixing.drafts.every((d) => typeof d === "string"));
|
|
101
|
+
) && Array.isArray(r.drafts) && Array.isArray(r.unstoried) && (r.summary === void 0 || typeof r.summary === "string") && (r.dropped === void 0 || Array.isArray(r.dropped)) && (r.ignored === void 0 || Array.isArray(r.ignored) && r.ignored.every((f) => !!f && typeof f === "object" && typeof f.path === "string")) && (r.inDoubt === void 0 || !!r.inDoubt && Array.isArray(r.inDoubt.drafts) && typeof r.inDoubt.at === "string") && (r.submitting === void 0 || !!r.submitting && typeof r.submitting.at === "string" && typeof r.submitting.pid === "number" && Array.isArray(r.submitting.drafts)) && (r.lastDraft === void 0 || typeof r.lastDraft === "number") && (r.fork === void 0 || r.fork === true) && (r.discussion === void 0 || isDiscussion(r.discussion)) && (r.fixingMyself === void 0 || Array.isArray(r.fixingMyself) && r.fixingMyself.every(isFix)) && (r.fixing === void 0 || !!r.fixing && typeof r.fixing.at === "string" && Array.isArray(r.fixing.drafts) && r.fixing.drafts.every((d) => typeof d === "string"));
|
|
102
102
|
}
|
|
103
103
|
function isFix(v) {
|
|
104
104
|
const f = v;
|
|
@@ -366,6 +366,10 @@ function globToRegExp(glob) {
|
|
|
366
366
|
globCache.set(glob, out);
|
|
367
367
|
return out;
|
|
368
368
|
}
|
|
369
|
+
var IGNORED_IN_REVIEW = [{ name: "designer file", paths: ["*.Designer.cs"] }];
|
|
370
|
+
function ignoredInReview(path) {
|
|
371
|
+
return IGNORED_IN_REVIEW.find((r) => r.paths.some((g) => globToRegExp(g).test(path)))?.name ?? null;
|
|
372
|
+
}
|
|
369
373
|
var pathMatches = (rule, path) => (rule.paths ?? []).some((g) => globToRegExp(g).test(path));
|
|
370
374
|
function contentMatches(rule, lines) {
|
|
371
375
|
for (const src of rule.content ?? []) {
|
|
@@ -616,6 +620,7 @@ function subjectOf(testPath) {
|
|
|
616
620
|
return normal(stem);
|
|
617
621
|
}
|
|
618
622
|
var normal = (s) => s.toLowerCase().replace(/[^a-z0-9]/g, "");
|
|
623
|
+
var sameName = (a, b) => a === b || `${a}s` === b || `${b}s` === a;
|
|
619
624
|
var stemOf = (p) => normal((p.split("/").pop() ?? p).replace(/\.[^.]+$/, ""));
|
|
620
625
|
function importedStems(f) {
|
|
621
626
|
const out = /* @__PURE__ */ new Set();
|
|
@@ -638,12 +643,14 @@ var DECLARES = [
|
|
|
638
643
|
/^(?:async\s+)?(?:def|class)\s+([A-Za-z_]\w*)/
|
|
639
644
|
];
|
|
640
645
|
var MIN_NAME = 4;
|
|
646
|
+
var EXTENSION_METHOD = /\bstatic\s[^=;{}()]*?\b([A-Za-z_]\w*)\s*(?:<[^()]*>)?\s*\(\s*this\s/;
|
|
641
647
|
function declared(f) {
|
|
642
648
|
const names = /* @__PURE__ */ new Set();
|
|
643
649
|
let namespace = null;
|
|
644
|
-
|
|
650
|
+
const lines = f.hunks.flatMap((h) => [...h.context ? [{ kind: "context", content: h.context }] : [], ...h.lines]);
|
|
651
|
+
for (const l of lines) {
|
|
645
652
|
if (l.kind === "delete" || l.kind === "no-newline") continue;
|
|
646
|
-
for (const re of DECLARES) {
|
|
653
|
+
for (const re of [...DECLARES, EXTENSION_METHOD]) {
|
|
647
654
|
const m = re.exec(l.content);
|
|
648
655
|
if (m && m[1].length >= MIN_NAME) names.add(m[1]);
|
|
649
656
|
}
|
|
@@ -680,7 +687,7 @@ function matchTestsToCode(testFiles, codePaths, codeFiles = []) {
|
|
|
680
687
|
const { words, namespaces } = usedWords(t);
|
|
681
688
|
const hits = codePaths.filter((p) => {
|
|
682
689
|
const stem = stemOf(p);
|
|
683
|
-
if (subject && stem
|
|
690
|
+
if (subject && sameName(stem, subject) || [...used].some((u) => sameName(u, stem))) return true;
|
|
684
691
|
const d = decl.get(p);
|
|
685
692
|
if (!d) return false;
|
|
686
693
|
if ([...d.names].some((n) => words.has(n))) return true;
|
|
@@ -1005,12 +1012,17 @@ function lastDraftNumber(r) {
|
|
|
1005
1012
|
return ids.reduce((m, id) => Math.max(m, draftNumber(id)), r.lastDraft ?? 0);
|
|
1006
1013
|
}
|
|
1007
1014
|
var heldIds = (r) => new Set([...r.inDoubt?.drafts ?? [], ...r.submitting?.drafts ?? []].map((d) => d.id));
|
|
1008
|
-
function
|
|
1015
|
+
function submitBlocked(r, now = /* @__PURE__ */ new Date()) {
|
|
1009
1016
|
if (r.inDoubt)
|
|
1010
1017
|
return "the last submit may have gone out (it failed without a clear answer): look at the PR, then say whether it went before sending anything again";
|
|
1011
1018
|
if (r.submitting) return "this review is being submitted already";
|
|
1012
1019
|
if (fixClaimActive(r, now)) return "Fix it myself is taking drafts of it to a session: submit once that is done";
|
|
1013
1020
|
if (r.status === "queued" || r.status === "running") return "it is being prepared again (a new push): submit once it is ready";
|
|
1021
|
+
return null;
|
|
1022
|
+
}
|
|
1023
|
+
function submitRefusal(r, input, now = /* @__PURE__ */ new Date()) {
|
|
1024
|
+
const blocked = submitBlocked(r, now);
|
|
1025
|
+
if (blocked) return blocked;
|
|
1014
1026
|
const i = input;
|
|
1015
1027
|
if (!i || typeof i !== "object") return "expected {event, body, drafts}";
|
|
1016
1028
|
if (!EVENTS.has(i.event)) return "event must be comment, approve or request-changes";
|
|
@@ -1237,6 +1249,20 @@ function kindsOf(files, extras, rules) {
|
|
|
1237
1249
|
)
|
|
1238
1250
|
);
|
|
1239
1251
|
}
|
|
1252
|
+
function splitIgnored(files) {
|
|
1253
|
+
const kept = [];
|
|
1254
|
+
const ignored = [];
|
|
1255
|
+
for (const f of files) {
|
|
1256
|
+
const why = ignoredInReview(f.path);
|
|
1257
|
+
if (why) ignored.push({ path: f.path, why, added: f.added, deleted: f.deleted });
|
|
1258
|
+
else kept.push(f);
|
|
1259
|
+
}
|
|
1260
|
+
return { files: kept, ignored };
|
|
1261
|
+
}
|
|
1262
|
+
function linesWorthReading(files, extras, rules) {
|
|
1263
|
+
const kinds = kindsOf(files, extras, rules);
|
|
1264
|
+
return files.reduce((n, f, i) => FOLDED_KINDS.has(kinds[i].kind) ? n : n + f.added + f.deleted, 0);
|
|
1265
|
+
}
|
|
1240
1266
|
function diffText(f) {
|
|
1241
1267
|
return f.hunks.map(
|
|
1242
1268
|
(h) => [
|
|
@@ -1283,6 +1309,7 @@ function reviewPrompt(meta, files, kinds, opts = {}) {
|
|
|
1283
1309
|
});
|
|
1284
1310
|
}
|
|
1285
1311
|
function buildReview(meta, files, extras, answer, opts = {}) {
|
|
1312
|
+
const ignored = opts.ignored ?? [];
|
|
1286
1313
|
const kinds = kindsOf(files, extras, opts.rules);
|
|
1287
1314
|
const kindMap = Object.fromEntries(kinds.map((k) => [k.path, k.kind]));
|
|
1288
1315
|
const breakdown = testBreakdown(files.map(asLines), kindMap);
|
|
@@ -1321,8 +1348,14 @@ function buildReview(meta, files, extras, answer, opts = {}) {
|
|
|
1321
1348
|
status: "ready",
|
|
1322
1349
|
why: aiStep === "done" ? null : aiStep === "failed" ? noStory ? "the AI step named no story: stories are by folder" : "the AI step gave no usable answer: stories are by folder" : opts.notAskedWhy ?? (logic.length ? "no AI step ran: stories are by folder" : null),
|
|
1323
1350
|
at: now,
|
|
1324
|
-
|
|
1351
|
+
// The whole PR's size, what it left out included.
|
|
1352
|
+
size: {
|
|
1353
|
+
files: files.length + ignored.length,
|
|
1354
|
+
added: [...files, ...ignored].reduce((n, f) => n + f.added, 0),
|
|
1355
|
+
deleted: [...files, ...ignored].reduce((n, f) => n + f.deleted, 0)
|
|
1356
|
+
},
|
|
1325
1357
|
files: wireFiles,
|
|
1358
|
+
...ignored.length ? { ignored } : {},
|
|
1326
1359
|
tests: {
|
|
1327
1360
|
list: breakdown.tests,
|
|
1328
1361
|
counts: breakdown.counts,
|
|
@@ -1435,9 +1468,11 @@ export {
|
|
|
1435
1468
|
carryForward,
|
|
1436
1469
|
clearDropped,
|
|
1437
1470
|
kindsOf,
|
|
1471
|
+
splitIgnored,
|
|
1472
|
+
linesWorthReading,
|
|
1438
1473
|
reviewPrompt,
|
|
1439
1474
|
buildReview,
|
|
1440
1475
|
summaryOf,
|
|
1441
1476
|
describeReview
|
|
1442
1477
|
};
|
|
1443
|
-
//# sourceMappingURL=chunk-
|
|
1478
|
+
//# sourceMappingURL=chunk-YKQLHFY4.js.map
|