@moberg_hr/work-tree 2.15.0 → 2.17.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-X42JQCYT.js → account-MYGAXTF6.js} +17 -17
- package/dist/{add-repo-UZHIG6LN.js → add-repo-7PLONSB6.js} +11 -11
- package/dist/{answer-NDX2DNXK.js → answer-H3D6OLHJ.js} +8 -8
- package/dist/{attach-ETPEGXYM.js → attach-Z2HEZVZW.js} +15 -15
- package/dist/bin.js +3 -3
- package/dist/{block-5HJQWQNX.js → block-BWRLOTSM.js} +10 -10
- package/dist/{broadcast-TMCWRTIY.js → broadcast-RY6NAYGN.js} +6 -6
- package/dist/{catchup-BBJ43GWY.js → catchup-K5ICNWDH.js} +11 -11
- package/dist/{chunk-XMKYQVJU.js → chunk-2CVBAJH7.js} +2 -2
- package/dist/{chunk-O32OINY3.js → chunk-2H3H23W5.js} +2 -2
- package/dist/{chunk-TZLCBDJZ.js → chunk-2L2TNYQA.js} +2 -2
- package/dist/{chunk-K2OOUNXH.js → chunk-3JANKWY2.js} +2 -2
- package/dist/{chunk-JVJ5IJSF.js → chunk-3L5VDONX.js} +2 -2
- package/dist/chunk-3TNVVBVG.js +9 -0
- package/dist/{chunk-R6KQDWHC.js → chunk-42WCSVBK.js} +4 -4
- package/dist/chunk-42WCSVBK.js.map +1 -0
- package/dist/{chunk-DBGHDWM7.js → chunk-45QJQIWF.js} +7 -7
- package/dist/chunk-45QJQIWF.js.map +1 -0
- package/dist/{chunk-UCNYEHQY.js → chunk-4HNMJIUZ.js} +2 -2
- package/dist/{chunk-R5HG665I.js → chunk-4YO2PDUC.js} +3 -3
- package/dist/{chunk-2PAHTJ3B.js → chunk-63NT2NZD.js} +6 -6
- package/dist/{chunk-C6OEPSH2.js → chunk-C5F36EGT.js} +4 -4
- package/dist/{chunk-GPLCT5TZ.js → chunk-CJQPKHDO.js} +4 -4
- package/dist/{chunk-4WTY3SFZ.js → chunk-EQJZ2GXX.js} +3 -3
- package/dist/{chunk-MZY557LZ.js → chunk-EVZUJLZH.js} +6 -6
- package/dist/{chunk-ITY6R2LC.js → chunk-EX6ELNTN.js} +3 -3
- package/dist/{chunk-CVTM4TCZ.js → chunk-GT3KUREW.js} +5 -5
- package/dist/{chunk-CYUSOVO5.js → chunk-H3WBTKPB.js} +6 -6
- package/dist/{chunk-2IDWQ5NO.js → chunk-HT52LVYU.js} +3 -3
- package/dist/{chunk-3YON263F.js → chunk-HWMQV4YD.js} +4 -4
- package/dist/{chunk-QHA4VF4B.js → chunk-I5YQ7AC5.js} +3 -3
- package/dist/{chunk-BZGIKO6I.js → chunk-IKGSTBTG.js} +2 -1
- package/dist/chunk-IKGSTBTG.js.map +1 -0
- package/dist/{chunk-KCYYIUUQ.js → chunk-LBPYBBXX.js} +2 -2
- package/dist/{chunk-ZNGR2CB6.js → chunk-LMD2J2JN.js} +3 -3
- package/dist/{chunk-5LAFHPNB.js → chunk-LMSKMRNU.js} +7 -7
- package/dist/chunk-LMSKMRNU.js.map +1 -0
- package/dist/{chunk-LMP3WGRW.js → chunk-MH4D37RT.js} +2 -2
- package/dist/{chunk-UIIEP6VP.js → chunk-N5P2OY5O.js} +2 -2
- package/dist/{chunk-AHGMXBY3.js → chunk-NIAXRF5E.js} +2 -2
- package/dist/{chunk-BRUYXYO2.js → chunk-O2IARWVM.js} +2 -2
- package/dist/{chunk-S2MOK3CT.js → chunk-OA3TYOAY.js} +3 -3
- package/dist/{chunk-EQD3YBGA.js → chunk-P5633SI2.js} +7 -7
- package/dist/{chunk-WNWSO4VO.js → chunk-PJPYRXKJ.js} +6 -6
- package/dist/{chunk-QP7VLMFJ.js → chunk-QTUYNY3F.js} +2 -2
- package/dist/{chunk-6SYQQXPQ.js → chunk-QUL26RYB.js} +10 -10
- package/dist/{chunk-FIEBI3UB.js → chunk-RJAGFLAP.js} +2 -2
- package/dist/{chunk-X6EMCJ2L.js → chunk-SMARTMBW.js} +4 -4
- package/dist/{chunk-U64SNFIZ.js → chunk-SRGOCF73.js} +2 -2
- package/dist/{chunk-7QDZGVIT.js → chunk-SSXKC635.js} +3 -3
- package/dist/{chunk-MXH7DV4Q.js → chunk-SWAFQ343.js} +3 -3
- package/dist/{chunk-Z3OHGPIN.js → chunk-TLXZUE4T.js} +3 -3
- package/dist/{chunk-PSFOA7P6.js → chunk-UAXKMJYA.js} +6 -6
- package/dist/{chunk-FNWPOM4B.js → chunk-UN33JXAD.js} +134 -14
- package/dist/chunk-UN33JXAD.js.map +1 -0
- package/dist/{chunk-4ZP6NN2X.js → chunk-VH6EUWX7.js} +13 -13
- package/dist/chunk-VH6EUWX7.js.map +1 -0
- package/dist/{chunk-UJWYQVXI.js → chunk-VHYFFFZU.js} +2 -2
- package/dist/{chunk-QMHFXIMX.js → chunk-WLU7EWPD.js} +13 -10
- package/dist/chunk-WLU7EWPD.js.map +1 -0
- package/dist/{chunk-46WW3Z6C.js → chunk-WMIQOBHU.js} +4 -4
- package/dist/{chunk-GGE55DO3.js → chunk-WPHTWUNV.js} +16 -11
- package/dist/{chunk-GGE55DO3.js.map → chunk-WPHTWUNV.js.map} +1 -1
- package/dist/{chunk-OL7S2KFH.js → chunk-X2EMWCFQ.js} +57 -57
- package/dist/{chunk-RXORNKSJ.js → chunk-XHUKX3HO.js} +3 -3
- package/dist/{chunk-7S3NPGVM.js → chunk-XHVRFFOY.js} +4 -4
- package/dist/{chunk-XPWWOR7Z.js → chunk-XIOGNTUA.js} +2 -2
- package/dist/{chunk-TI6AR4QF.js → chunk-YLB2QGAR.js} +4 -4
- package/dist/{chunk-EQFDUC6F.js → chunk-Z3HC36JK.js} +2 -2
- package/dist/{chunk-BWUN33QN.js → chunk-ZAAWSVTU.js} +6 -6
- package/dist/{chunk-REAZAE5C.js → chunk-ZWBXRP2V.js} +6 -6
- package/dist/{chunk-MVME4LH7.js → chunk-ZXDRQ2MV.js} +6 -6
- package/dist/{cleanup-BD44PDRE.js → cleanup-HXZ4S2IO.js} +28 -28
- package/dist/{cli-OMADLGGY.js → cli-M6RBYAO6.js} +4 -4
- package/dist/{color-IZ2J3CT2.js → color-E73MIJWD.js} +8 -8
- package/dist/{config-65HXBCMW.js → config-24BNXN5C.js} +8 -8
- package/dist/{diff-CJNSUX25.js → diff-NAL5334E.js} +9 -9
- package/dist/{digest-FH3JBHSO.js → digest-NU6XNA7D.js} +8 -8
- package/dist/{fork-O6NS34MV.js → fork-QVFWYP2Z.js} +25 -25
- package/dist/{history-URHFR4MO.js → history-W5DQNAY3.js} +6 -6
- package/dist/{hook-6PWP3JVL.js → hook-OIAJHLTJ.js} +13 -13
- package/dist/{hydrate-V6PVQ6OO.js → hydrate-VAJO2JGT.js} +6 -6
- package/dist/{init-SENRHJ4R.js → init-2IHQUZ4E.js} +11 -11
- package/dist/{install-skills-DJE7LU66.js → install-skills-RJPZOV37.js} +6 -6
- package/dist/install-skills-bin.js +5 -5
- package/dist/{keep-M7E7UMRL.js → keep-IJDON5AL.js} +8 -8
- package/dist/{list-YPKCU3GB.js → list-6LPLVUUD.js} +6 -6
- package/dist/{move-ME7JMNJI.js → move-GY5G47JO.js} +14 -14
- package/dist/{note-JFZ3F7UY.js → note-6Q3AT7W6.js} +8 -8
- package/dist/{overlaps-ZN3WA35A.js → overlaps-JQVWZXEB.js} +12 -12
- package/dist/{pin-3S2MQQPM.js → pin-MIWOAQ7R.js} +8 -8
- package/dist/{pr-KNJ2TVC3.js → pr-3F3PJCQN.js} +19 -19
- package/dist/{prune-2GAXXNPM.js → prune-RKQQWEU6.js} +26 -26
- package/dist/{pty-host-WZZIQIKX.js → pty-host-5GYGW43F.js} +13 -13
- package/dist/{read-UIV42F5D.js → read-RFLYBHLU.js} +8 -8
- package/dist/{recent-SJPAIY2T.js → recent-R24GG3OG.js} +13 -13
- package/dist/{remove-KQW35I5D.js → remove-ULIYLBRK.js} +27 -27
- package/dist/{restart-7VTSNTZ3.js → restart-VKQEQEU3.js} +8 -8
- package/dist/{resume-MPBXIF7C.js → resume-LE3SXWGI.js} +13 -13
- package/dist/{review-IRVOI4ZK.js → review-QGBSWK2M.js} +7 -7
- package/dist/{review-now-QAAL5C6N.js → review-now-74ISYEFP.js} +2 -2
- package/dist/{run-2EKY2R5R.js → run-RXCZSZKP.js} +6 -6
- package/dist/{screen-GQTKTUTD.js → screen-27WNAGP5.js} +8 -8
- package/dist/{search-N7XUYKYV.js → search-OSNZYFMI.js} +6 -6
- package/dist/{section-6MDCSJS5.js → section-HIYOC5HZ.js} +8 -8
- package/dist/{send-32U465SB.js → send-BFS32VDO.js} +9 -9
- package/dist/{sessions-E5OEZF2C.js → sessions-Q5EVPLLK.js} +23 -23
- package/dist/{show-AQQDICKX.js → show-JYXEQQM2.js} +7 -7
- package/dist/{snooze-LXHYYV5G.js → snooze-YDBFRJYB.js} +8 -8
- package/dist/{start-OCGLP6N6.js → start-KWQLMKAL.js} +8 -8
- package/dist/{state-FSZ6TIYE.js → state-NXTIYKP5.js} +2 -2
- package/dist/{status-35FEMHVO.js → status-ROO4SRGQ.js} +10 -10
- package/dist/{statusline-WEZSDGOU.js → statusline-AMFMWPTV.js} +3 -3
- package/dist/{stop-6QOVDV2A.js → stop-FMBFJUXI.js} +8 -8
- package/dist/{sync-GEG3O54C.js → sync-2DVHV7FT.js} +26 -26
- package/dist/{time-UXSYQHN4.js → time-LMBQVMQG.js} +13 -13
- package/dist/time-LMBQVMQG.js.map +1 -0
- package/dist/{time-actions-3KLS5WGD.js → time-actions-4GZLAV4C.js} +3 -3
- package/dist/{timesheet-RNUTAWR4.js → timesheet-DWWIBU5Y.js} +12 -12
- package/dist/{todo-MP4WUDMW.js → todo-SECMZCGC.js} +2 -2
- package/dist/{tree-U2LS4NHP.js → tree-NH43RR6O.js} +29 -29
- package/dist/tree-NH43RR6O.js.map +1 -0
- package/dist/{update-PHTB3AB5.js → update-THIANISA.js} +14 -14
- package/dist/{usage-2Z7354NZ.js → usage-CZZOI34H.js} +8 -8
- package/dist/{version-G2HN4GTL.js → version-2YUMQ4EN.js} +4 -4
- package/dist/{wait-MEMUQGDV.js → wait-QBBM7MR5.js} +9 -9
- package/dist/wd-bin.js +3 -3
- package/dist/web/assets/{PtyView-CyqsvkBt.js → PtyView-8godLDSh.js} +2 -2
- package/dist/web/assets/{PtyView-CyqsvkBt.js.map → PtyView-8godLDSh.js.map} +1 -1
- package/dist/web/assets/index-C0ZT-YWI.js +126 -0
- package/dist/web/assets/index-C0ZT-YWI.js.map +1 -0
- package/dist/web/assets/index-CBymxw_N.css +1 -0
- package/dist/web/index.html +2 -2
- package/dist/{web-P7TKPZFB.js → web-FT3AEB3E.js} +249 -87
- package/dist/web-FT3AEB3E.js.map +1 -0
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
- package/dist/chunk-4ZP6NN2X.js.map +0 -1
- package/dist/chunk-5LAFHPNB.js.map +0 -1
- package/dist/chunk-BZGIKO6I.js.map +0 -1
- package/dist/chunk-DBGHDWM7.js.map +0 -1
- package/dist/chunk-FNWPOM4B.js.map +0 -1
- package/dist/chunk-OX33X3NH.js +0 -9
- package/dist/chunk-QMHFXIMX.js.map +0 -1
- package/dist/chunk-R6KQDWHC.js.map +0 -1
- package/dist/time-UXSYQHN4.js.map +0 -1
- package/dist/tree-U2LS4NHP.js.map +0 -1
- package/dist/web/assets/index-DXP8G0eh.css +0 -1
- package/dist/web/assets/index-DjFmAhbY.js +0 -126
- package/dist/web/assets/index-DjFmAhbY.js.map +0 -1
- package/dist/web-P7TKPZFB.js.map +0 -1
- /package/dist/{account-X42JQCYT.js.map → account-MYGAXTF6.js.map} +0 -0
- /package/dist/{add-repo-UZHIG6LN.js.map → add-repo-7PLONSB6.js.map} +0 -0
- /package/dist/{answer-NDX2DNXK.js.map → answer-H3D6OLHJ.js.map} +0 -0
- /package/dist/{attach-ETPEGXYM.js.map → attach-Z2HEZVZW.js.map} +0 -0
- /package/dist/{block-5HJQWQNX.js.map → block-BWRLOTSM.js.map} +0 -0
- /package/dist/{broadcast-TMCWRTIY.js.map → broadcast-RY6NAYGN.js.map} +0 -0
- /package/dist/{catchup-BBJ43GWY.js.map → catchup-K5ICNWDH.js.map} +0 -0
- /package/dist/{chunk-XMKYQVJU.js.map → chunk-2CVBAJH7.js.map} +0 -0
- /package/dist/{chunk-O32OINY3.js.map → chunk-2H3H23W5.js.map} +0 -0
- /package/dist/{chunk-TZLCBDJZ.js.map → chunk-2L2TNYQA.js.map} +0 -0
- /package/dist/{chunk-K2OOUNXH.js.map → chunk-3JANKWY2.js.map} +0 -0
- /package/dist/{chunk-JVJ5IJSF.js.map → chunk-3L5VDONX.js.map} +0 -0
- /package/dist/{chunk-OX33X3NH.js.map → chunk-3TNVVBVG.js.map} +0 -0
- /package/dist/{chunk-UCNYEHQY.js.map → chunk-4HNMJIUZ.js.map} +0 -0
- /package/dist/{chunk-R5HG665I.js.map → chunk-4YO2PDUC.js.map} +0 -0
- /package/dist/{chunk-2PAHTJ3B.js.map → chunk-63NT2NZD.js.map} +0 -0
- /package/dist/{chunk-C6OEPSH2.js.map → chunk-C5F36EGT.js.map} +0 -0
- /package/dist/{chunk-GPLCT5TZ.js.map → chunk-CJQPKHDO.js.map} +0 -0
- /package/dist/{chunk-4WTY3SFZ.js.map → chunk-EQJZ2GXX.js.map} +0 -0
- /package/dist/{chunk-MZY557LZ.js.map → chunk-EVZUJLZH.js.map} +0 -0
- /package/dist/{chunk-ITY6R2LC.js.map → chunk-EX6ELNTN.js.map} +0 -0
- /package/dist/{chunk-CVTM4TCZ.js.map → chunk-GT3KUREW.js.map} +0 -0
- /package/dist/{chunk-CYUSOVO5.js.map → chunk-H3WBTKPB.js.map} +0 -0
- /package/dist/{chunk-2IDWQ5NO.js.map → chunk-HT52LVYU.js.map} +0 -0
- /package/dist/{chunk-3YON263F.js.map → chunk-HWMQV4YD.js.map} +0 -0
- /package/dist/{chunk-QHA4VF4B.js.map → chunk-I5YQ7AC5.js.map} +0 -0
- /package/dist/{chunk-KCYYIUUQ.js.map → chunk-LBPYBBXX.js.map} +0 -0
- /package/dist/{chunk-ZNGR2CB6.js.map → chunk-LMD2J2JN.js.map} +0 -0
- /package/dist/{chunk-LMP3WGRW.js.map → chunk-MH4D37RT.js.map} +0 -0
- /package/dist/{chunk-UIIEP6VP.js.map → chunk-N5P2OY5O.js.map} +0 -0
- /package/dist/{chunk-AHGMXBY3.js.map → chunk-NIAXRF5E.js.map} +0 -0
- /package/dist/{chunk-BRUYXYO2.js.map → chunk-O2IARWVM.js.map} +0 -0
- /package/dist/{chunk-S2MOK3CT.js.map → chunk-OA3TYOAY.js.map} +0 -0
- /package/dist/{chunk-EQD3YBGA.js.map → chunk-P5633SI2.js.map} +0 -0
- /package/dist/{chunk-WNWSO4VO.js.map → chunk-PJPYRXKJ.js.map} +0 -0
- /package/dist/{chunk-QP7VLMFJ.js.map → chunk-QTUYNY3F.js.map} +0 -0
- /package/dist/{chunk-6SYQQXPQ.js.map → chunk-QUL26RYB.js.map} +0 -0
- /package/dist/{chunk-FIEBI3UB.js.map → chunk-RJAGFLAP.js.map} +0 -0
- /package/dist/{chunk-X6EMCJ2L.js.map → chunk-SMARTMBW.js.map} +0 -0
- /package/dist/{chunk-U64SNFIZ.js.map → chunk-SRGOCF73.js.map} +0 -0
- /package/dist/{chunk-7QDZGVIT.js.map → chunk-SSXKC635.js.map} +0 -0
- /package/dist/{chunk-MXH7DV4Q.js.map → chunk-SWAFQ343.js.map} +0 -0
- /package/dist/{chunk-Z3OHGPIN.js.map → chunk-TLXZUE4T.js.map} +0 -0
- /package/dist/{chunk-PSFOA7P6.js.map → chunk-UAXKMJYA.js.map} +0 -0
- /package/dist/{chunk-UJWYQVXI.js.map → chunk-VHYFFFZU.js.map} +0 -0
- /package/dist/{chunk-46WW3Z6C.js.map → chunk-WMIQOBHU.js.map} +0 -0
- /package/dist/{chunk-OL7S2KFH.js.map → chunk-X2EMWCFQ.js.map} +0 -0
- /package/dist/{chunk-RXORNKSJ.js.map → chunk-XHUKX3HO.js.map} +0 -0
- /package/dist/{chunk-7S3NPGVM.js.map → chunk-XHVRFFOY.js.map} +0 -0
- /package/dist/{chunk-XPWWOR7Z.js.map → chunk-XIOGNTUA.js.map} +0 -0
- /package/dist/{chunk-TI6AR4QF.js.map → chunk-YLB2QGAR.js.map} +0 -0
- /package/dist/{chunk-EQFDUC6F.js.map → chunk-Z3HC36JK.js.map} +0 -0
- /package/dist/{chunk-BWUN33QN.js.map → chunk-ZAAWSVTU.js.map} +0 -0
- /package/dist/{chunk-REAZAE5C.js.map → chunk-ZWBXRP2V.js.map} +0 -0
- /package/dist/{chunk-MVME4LH7.js.map → chunk-ZXDRQ2MV.js.map} +0 -0
- /package/dist/{cleanup-BD44PDRE.js.map → cleanup-HXZ4S2IO.js.map} +0 -0
- /package/dist/{cli-OMADLGGY.js.map → cli-M6RBYAO6.js.map} +0 -0
- /package/dist/{color-IZ2J3CT2.js.map → color-E73MIJWD.js.map} +0 -0
- /package/dist/{config-65HXBCMW.js.map → config-24BNXN5C.js.map} +0 -0
- /package/dist/{diff-CJNSUX25.js.map → diff-NAL5334E.js.map} +0 -0
- /package/dist/{digest-FH3JBHSO.js.map → digest-NU6XNA7D.js.map} +0 -0
- /package/dist/{fork-O6NS34MV.js.map → fork-QVFWYP2Z.js.map} +0 -0
- /package/dist/{history-URHFR4MO.js.map → history-W5DQNAY3.js.map} +0 -0
- /package/dist/{hook-6PWP3JVL.js.map → hook-OIAJHLTJ.js.map} +0 -0
- /package/dist/{hydrate-V6PVQ6OO.js.map → hydrate-VAJO2JGT.js.map} +0 -0
- /package/dist/{init-SENRHJ4R.js.map → init-2IHQUZ4E.js.map} +0 -0
- /package/dist/{install-skills-DJE7LU66.js.map → install-skills-RJPZOV37.js.map} +0 -0
- /package/dist/{keep-M7E7UMRL.js.map → keep-IJDON5AL.js.map} +0 -0
- /package/dist/{list-YPKCU3GB.js.map → list-6LPLVUUD.js.map} +0 -0
- /package/dist/{move-ME7JMNJI.js.map → move-GY5G47JO.js.map} +0 -0
- /package/dist/{note-JFZ3F7UY.js.map → note-6Q3AT7W6.js.map} +0 -0
- /package/dist/{overlaps-ZN3WA35A.js.map → overlaps-JQVWZXEB.js.map} +0 -0
- /package/dist/{pin-3S2MQQPM.js.map → pin-MIWOAQ7R.js.map} +0 -0
- /package/dist/{pr-KNJ2TVC3.js.map → pr-3F3PJCQN.js.map} +0 -0
- /package/dist/{prune-2GAXXNPM.js.map → prune-RKQQWEU6.js.map} +0 -0
- /package/dist/{pty-host-WZZIQIKX.js.map → pty-host-5GYGW43F.js.map} +0 -0
- /package/dist/{read-UIV42F5D.js.map → read-RFLYBHLU.js.map} +0 -0
- /package/dist/{recent-SJPAIY2T.js.map → recent-R24GG3OG.js.map} +0 -0
- /package/dist/{remove-KQW35I5D.js.map → remove-ULIYLBRK.js.map} +0 -0
- /package/dist/{restart-7VTSNTZ3.js.map → restart-VKQEQEU3.js.map} +0 -0
- /package/dist/{resume-MPBXIF7C.js.map → resume-LE3SXWGI.js.map} +0 -0
- /package/dist/{review-IRVOI4ZK.js.map → review-QGBSWK2M.js.map} +0 -0
- /package/dist/{review-now-QAAL5C6N.js.map → review-now-74ISYEFP.js.map} +0 -0
- /package/dist/{run-2EKY2R5R.js.map → run-RXCZSZKP.js.map} +0 -0
- /package/dist/{screen-GQTKTUTD.js.map → screen-27WNAGP5.js.map} +0 -0
- /package/dist/{search-N7XUYKYV.js.map → search-OSNZYFMI.js.map} +0 -0
- /package/dist/{section-6MDCSJS5.js.map → section-HIYOC5HZ.js.map} +0 -0
- /package/dist/{send-32U465SB.js.map → send-BFS32VDO.js.map} +0 -0
- /package/dist/{sessions-E5OEZF2C.js.map → sessions-Q5EVPLLK.js.map} +0 -0
- /package/dist/{show-AQQDICKX.js.map → show-JYXEQQM2.js.map} +0 -0
- /package/dist/{snooze-LXHYYV5G.js.map → snooze-YDBFRJYB.js.map} +0 -0
- /package/dist/{start-OCGLP6N6.js.map → start-KWQLMKAL.js.map} +0 -0
- /package/dist/{state-FSZ6TIYE.js.map → state-NXTIYKP5.js.map} +0 -0
- /package/dist/{status-35FEMHVO.js.map → status-ROO4SRGQ.js.map} +0 -0
- /package/dist/{statusline-WEZSDGOU.js.map → statusline-AMFMWPTV.js.map} +0 -0
- /package/dist/{stop-6QOVDV2A.js.map → stop-FMBFJUXI.js.map} +0 -0
- /package/dist/{sync-GEG3O54C.js.map → sync-2DVHV7FT.js.map} +0 -0
- /package/dist/{time-actions-3KLS5WGD.js.map → time-actions-4GZLAV4C.js.map} +0 -0
- /package/dist/{timesheet-RNUTAWR4.js.map → timesheet-DWWIBU5Y.js.map} +0 -0
- /package/dist/{todo-MP4WUDMW.js.map → todo-SECMZCGC.js.map} +0 -0
- /package/dist/{update-PHTB3AB5.js.map → update-THIANISA.js.map} +0 -0
- /package/dist/{usage-2Z7354NZ.js.map → usage-CZZOI34H.js.map} +0 -0
- /package/dist/{version-G2HN4GTL.js.map → version-2YUMQ4EN.js.map} +0 -0
- /package/dist/{wait-MEMUQGDV.js.map → wait-QBBM7MR5.js.map} +0 -0
|
@@ -12,11 +12,11 @@ import {
|
|
|
12
12
|
serveSpa,
|
|
13
13
|
sessionBaseForPath,
|
|
14
14
|
submitReviewSchema
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-4YO2PDUC.js";
|
|
16
16
|
import {
|
|
17
17
|
ensureAgentPath,
|
|
18
18
|
restartHost
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-WMIQOBHU.js";
|
|
20
20
|
import {
|
|
21
21
|
dropLocalReview,
|
|
22
22
|
readLocalReview,
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
graphProblem,
|
|
36
36
|
signOutGraph,
|
|
37
37
|
startDeviceLogin
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-45QJQIWF.js";
|
|
39
39
|
import {
|
|
40
40
|
addTask,
|
|
41
41
|
completeTask,
|
|
@@ -58,25 +58,25 @@ import {
|
|
|
58
58
|
stageSeenKey,
|
|
59
59
|
storeHolding,
|
|
60
60
|
withRestoring
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-WLU7EWPD.js";
|
|
62
62
|
import {
|
|
63
63
|
createDigestSource
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-YLB2QGAR.js";
|
|
65
65
|
import {
|
|
66
66
|
createBuildFoldersJob,
|
|
67
67
|
defaultBranchTidyDeps,
|
|
68
68
|
defaultBuildFoldersDeps,
|
|
69
69
|
deleteMergedBranches,
|
|
70
70
|
findMergedBranches
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-P5633SI2.js";
|
|
72
72
|
import {
|
|
73
73
|
defaultCleanupDeps
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-UAXKMJYA.js";
|
|
75
75
|
import {
|
|
76
76
|
DiffStatCache,
|
|
77
77
|
findOverlaps,
|
|
78
78
|
wantsDiffStat
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-Z3HC36JK.js";
|
|
80
80
|
import {
|
|
81
81
|
sendToSession
|
|
82
82
|
} from "./chunk-KWHHB737.js";
|
|
@@ -97,7 +97,7 @@ import {
|
|
|
97
97
|
removeBlocker,
|
|
98
98
|
sweepBlocks,
|
|
99
99
|
unblockedPrompt
|
|
100
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-OA3TYOAY.js";
|
|
101
101
|
import {
|
|
102
102
|
jiraWorklogPoster,
|
|
103
103
|
logWorkDay,
|
|
@@ -115,24 +115,24 @@ import {
|
|
|
115
115
|
removeAgentAccount,
|
|
116
116
|
setDefaultAgentAccount,
|
|
117
117
|
switchRefusal
|
|
118
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-EVZUJLZH.js";
|
|
119
119
|
import {
|
|
120
120
|
buildUsage,
|
|
121
121
|
realUsageDeps,
|
|
122
122
|
setupAgentUsage
|
|
123
|
-
} from "./chunk-
|
|
123
|
+
} from "./chunk-C5F36EGT.js";
|
|
124
124
|
import {
|
|
125
125
|
sessionWorkTime
|
|
126
|
-
} from "./chunk-
|
|
126
|
+
} from "./chunk-I5YQ7AC5.js";
|
|
127
127
|
import "./chunk-UVZITL47.js";
|
|
128
128
|
import {
|
|
129
129
|
removeWorktreeInChild
|
|
130
|
-
} from "./chunk-
|
|
130
|
+
} from "./chunk-MH4D37RT.js";
|
|
131
131
|
import {
|
|
132
132
|
archiveMergedSession,
|
|
133
133
|
archiveWaiting,
|
|
134
134
|
defaultArchiveDeps
|
|
135
|
-
} from "./chunk-
|
|
135
|
+
} from "./chunk-WPHTWUNV.js";
|
|
136
136
|
import {
|
|
137
137
|
MAX_REPLY_CHARS,
|
|
138
138
|
discardReply,
|
|
@@ -148,7 +148,7 @@ import {
|
|
|
148
148
|
retireResolvedReplies,
|
|
149
149
|
sessionRepoRefs,
|
|
150
150
|
withThreadContext
|
|
151
|
-
} from "./chunk-
|
|
151
|
+
} from "./chunk-PJPYRXKJ.js";
|
|
152
152
|
import {
|
|
153
153
|
DEFAULT_TRUSTED_BOTS,
|
|
154
154
|
createCiStore,
|
|
@@ -158,7 +158,7 @@ import {
|
|
|
158
158
|
openThreadsOf,
|
|
159
159
|
reviewMessage,
|
|
160
160
|
subAgentHint
|
|
161
|
-
} from "./chunk-
|
|
161
|
+
} from "./chunk-SSXKC635.js";
|
|
162
162
|
import {
|
|
163
163
|
cleanupVerdict,
|
|
164
164
|
createCleanupJob
|
|
@@ -167,11 +167,11 @@ import {
|
|
|
167
167
|
defaultForkDeps,
|
|
168
168
|
forkSession,
|
|
169
169
|
startSessionWithPrompt
|
|
170
|
-
} from "./chunk-
|
|
170
|
+
} from "./chunk-ZWBXRP2V.js";
|
|
171
171
|
import {
|
|
172
172
|
addRepoRefusal,
|
|
173
173
|
addedRepoNote
|
|
174
|
-
} from "./chunk-
|
|
174
|
+
} from "./chunk-LBPYBBXX.js";
|
|
175
175
|
import {
|
|
176
176
|
BehindCache,
|
|
177
177
|
behindMain,
|
|
@@ -187,30 +187,30 @@ import {
|
|
|
187
187
|
stackedOn,
|
|
188
188
|
updateFromBase,
|
|
189
189
|
updateFromMain
|
|
190
|
-
} from "./chunk-
|
|
190
|
+
} from "./chunk-ZAAWSVTU.js";
|
|
191
191
|
import {
|
|
192
192
|
sessionStatusView,
|
|
193
193
|
shownState
|
|
194
|
-
} from "./chunk-
|
|
194
|
+
} from "./chunk-LMD2J2JN.js";
|
|
195
195
|
import {
|
|
196
196
|
askCatchUp,
|
|
197
197
|
cachedCatchUp,
|
|
198
198
|
catchUp,
|
|
199
199
|
catchUpFacts,
|
|
200
200
|
forgetCatchUp
|
|
201
|
-
} from "./chunk-
|
|
201
|
+
} from "./chunk-HWMQV4YD.js";
|
|
202
202
|
import {
|
|
203
203
|
internalReadOnly,
|
|
204
204
|
runInternal,
|
|
205
205
|
runInternalReadOnly,
|
|
206
206
|
summarizeCheckpoint,
|
|
207
207
|
throttleTrailing
|
|
208
|
-
} from "./chunk-
|
|
208
|
+
} from "./chunk-GT3KUREW.js";
|
|
209
209
|
import {
|
|
210
210
|
computeDiff,
|
|
211
211
|
computeRangeDiff,
|
|
212
212
|
parseGitDiff
|
|
213
|
-
} from "./chunk-
|
|
213
|
+
} from "./chunk-QTUYNY3F.js";
|
|
214
214
|
import {
|
|
215
215
|
PLACE_PATCH_EXPECTED,
|
|
216
216
|
applyPlacePatch,
|
|
@@ -254,7 +254,7 @@ import {
|
|
|
254
254
|
tempoSetup,
|
|
255
255
|
timeRange,
|
|
256
256
|
updateDay
|
|
257
|
-
} from "./chunk-
|
|
257
|
+
} from "./chunk-42WCSVBK.js";
|
|
258
258
|
import {
|
|
259
259
|
DISCUSSION_OPEN_MIN_MS,
|
|
260
260
|
LEFT_OVER_SUBMIT,
|
|
@@ -319,7 +319,7 @@ import {
|
|
|
319
319
|
checkTools,
|
|
320
320
|
saveFolders,
|
|
321
321
|
setupState
|
|
322
|
-
} from "./chunk-
|
|
322
|
+
} from "./chunk-XHVRFFOY.js";
|
|
323
323
|
import {
|
|
324
324
|
RepoAdminError,
|
|
325
325
|
deleteGroup,
|
|
@@ -331,7 +331,7 @@ import {
|
|
|
331
331
|
setRepoIgnored,
|
|
332
332
|
setReviewMode,
|
|
333
333
|
setScanRoot
|
|
334
|
-
} from "./chunk-
|
|
334
|
+
} from "./chunk-EX6ELNTN.js";
|
|
335
335
|
import {
|
|
336
336
|
freeLeftovers,
|
|
337
337
|
leftoversOf,
|
|
@@ -340,17 +340,17 @@ import {
|
|
|
340
340
|
parsePrRef,
|
|
341
341
|
resolvePrToStart,
|
|
342
342
|
workOnPrPrompt
|
|
343
|
-
} from "./chunk-
|
|
343
|
+
} from "./chunk-TLXZUE4T.js";
|
|
344
344
|
import {
|
|
345
345
|
legacyUnsafeCheck
|
|
346
|
-
} from "./chunk-
|
|
346
|
+
} from "./chunk-63NT2NZD.js";
|
|
347
347
|
import {
|
|
348
348
|
howToLift
|
|
349
349
|
} from "./chunk-FZHFD2AY.js";
|
|
350
350
|
import {
|
|
351
351
|
agentsBySession,
|
|
352
352
|
summarizeAgents
|
|
353
|
-
} from "./chunk-
|
|
353
|
+
} from "./chunk-RJAGFLAP.js";
|
|
354
354
|
import {
|
|
355
355
|
commandWords,
|
|
356
356
|
describeProcess,
|
|
@@ -367,7 +367,7 @@ import {
|
|
|
367
367
|
keyedQueue,
|
|
368
368
|
oneAtATime,
|
|
369
369
|
runWorkChild
|
|
370
|
-
} from "./chunk-
|
|
370
|
+
} from "./chunk-LMSKMRNU.js";
|
|
371
371
|
import {
|
|
372
372
|
configurePtyPool,
|
|
373
373
|
detachPtyPool,
|
|
@@ -392,21 +392,21 @@ import {
|
|
|
392
392
|
syncPtyPool,
|
|
393
393
|
terminalTicketUrl,
|
|
394
394
|
writeToPty
|
|
395
|
-
} from "./chunk-
|
|
396
|
-
import "./chunk-
|
|
395
|
+
} from "./chunk-QUL26RYB.js";
|
|
396
|
+
import "./chunk-3L5VDONX.js";
|
|
397
397
|
import {
|
|
398
398
|
disposeAllWatchers,
|
|
399
399
|
disposeSessionWatcher,
|
|
400
400
|
findSession as findSession2,
|
|
401
401
|
subscribeSession
|
|
402
|
-
} from "./chunk-
|
|
403
|
-
import "./chunk-
|
|
404
|
-
import "./chunk-
|
|
402
|
+
} from "./chunk-2H3H23W5.js";
|
|
403
|
+
import "./chunk-2CVBAJH7.js";
|
|
404
|
+
import "./chunk-XIOGNTUA.js";
|
|
405
405
|
import {
|
|
406
406
|
teardownWorktree,
|
|
407
407
|
toBaseSpec,
|
|
408
408
|
wouldRefuseRemoval
|
|
409
|
-
} from "./chunk-
|
|
409
|
+
} from "./chunk-VH6EUWX7.js";
|
|
410
410
|
import "./chunk-PZ7WTBSI.js";
|
|
411
411
|
import {
|
|
412
412
|
isWorktreeFolder
|
|
@@ -420,15 +420,15 @@ import {
|
|
|
420
420
|
assistantDir,
|
|
421
421
|
describeView,
|
|
422
422
|
writeAssistantContext
|
|
423
|
-
} from "./chunk-
|
|
423
|
+
} from "./chunk-O2IARWVM.js";
|
|
424
424
|
import "./chunk-7E5XPDKX.js";
|
|
425
|
-
import "./chunk-
|
|
425
|
+
import "./chunk-NIAXRF5E.js";
|
|
426
426
|
import {
|
|
427
427
|
NOTE_NUDGE,
|
|
428
428
|
findSessionForCwd,
|
|
429
429
|
readPendingForSession,
|
|
430
430
|
readPendingForWorktree
|
|
431
|
-
} from "./chunk-
|
|
431
|
+
} from "./chunk-XHUKX3HO.js";
|
|
432
432
|
import "./chunk-ZSHWP2VS.js";
|
|
433
433
|
import {
|
|
434
434
|
getCommentFileStore
|
|
@@ -448,17 +448,17 @@ import {
|
|
|
448
448
|
stageInputOf,
|
|
449
449
|
withRequiredChecks,
|
|
450
450
|
workElsewhere
|
|
451
|
-
} from "./chunk-
|
|
451
|
+
} from "./chunk-ZXDRQ2MV.js";
|
|
452
452
|
import {
|
|
453
453
|
createSessionBranches
|
|
454
|
-
} from "./chunk-
|
|
454
|
+
} from "./chunk-CJQPKHDO.js";
|
|
455
455
|
import {
|
|
456
456
|
defaultHost,
|
|
457
457
|
hostById,
|
|
458
458
|
hostForRepo,
|
|
459
459
|
hostOfPrUrl,
|
|
460
460
|
originHostname
|
|
461
|
-
} from "./chunk-
|
|
461
|
+
} from "./chunk-HT52LVYU.js";
|
|
462
462
|
import {
|
|
463
463
|
MAX_THREAD_BODY
|
|
464
464
|
} from "./chunk-FGPXMAYU.js";
|
|
@@ -471,11 +471,11 @@ import {
|
|
|
471
471
|
readSessionBranches,
|
|
472
472
|
repoNameOf,
|
|
473
473
|
wasPushed
|
|
474
|
-
} from "./chunk-
|
|
474
|
+
} from "./chunk-SRGOCF73.js";
|
|
475
475
|
import {
|
|
476
476
|
editorArgs,
|
|
477
477
|
openUrl
|
|
478
|
-
} from "./chunk-
|
|
478
|
+
} from "./chunk-SWAFQ343.js";
|
|
479
479
|
import {
|
|
480
480
|
enrollProblem,
|
|
481
481
|
groupProblem,
|
|
@@ -519,6 +519,7 @@ import {
|
|
|
519
519
|
hostName,
|
|
520
520
|
isRestoring,
|
|
521
521
|
lastConversationWriteMs,
|
|
522
|
+
listIssues,
|
|
522
523
|
listScopes,
|
|
523
524
|
loadHistory,
|
|
524
525
|
loadManifest,
|
|
@@ -530,6 +531,7 @@ import {
|
|
|
530
531
|
notifyKindForTransition,
|
|
531
532
|
onArchived,
|
|
532
533
|
onArchivingChange,
|
|
534
|
+
placeBySource,
|
|
533
535
|
prStageOf,
|
|
534
536
|
promptsSince,
|
|
535
537
|
readArchive,
|
|
@@ -573,7 +575,7 @@ import {
|
|
|
573
575
|
updateCheckpoint,
|
|
574
576
|
whileRestoring,
|
|
575
577
|
writeArchiveRecord
|
|
576
|
-
} from "./chunk-
|
|
578
|
+
} from "./chunk-UN33JXAD.js";
|
|
577
579
|
import {
|
|
578
580
|
dayKey
|
|
579
581
|
} from "./chunk-NEJVK5CF.js";
|
|
@@ -610,11 +612,11 @@ import {
|
|
|
610
612
|
refShaFromFiles,
|
|
611
613
|
swallow,
|
|
612
614
|
workingBranch
|
|
613
|
-
} from "./chunk-
|
|
614
|
-
import "./chunk-
|
|
615
|
+
} from "./chunk-H3WBTKPB.js";
|
|
616
|
+
import "./chunk-4HNMJIUZ.js";
|
|
615
617
|
import {
|
|
616
618
|
VERSION
|
|
617
|
-
} from "./chunk-
|
|
619
|
+
} from "./chunk-3TNVVBVG.js";
|
|
618
620
|
import {
|
|
619
621
|
resolveProjectTarget
|
|
620
622
|
} from "./chunk-IPHADNF5.js";
|
|
@@ -630,7 +632,7 @@ import {
|
|
|
630
632
|
import {
|
|
631
633
|
DEFAULT_ACCOUNT_NAME,
|
|
632
634
|
accountNameProblem
|
|
633
|
-
} from "./chunk-
|
|
635
|
+
} from "./chunk-2L2TNYQA.js";
|
|
634
636
|
import {
|
|
635
637
|
DEFAULT_ACCOUNT,
|
|
636
638
|
DEFAULT_PROMPTS,
|
|
@@ -638,7 +640,7 @@ import {
|
|
|
638
640
|
getConfigPath,
|
|
639
641
|
isWorkday,
|
|
640
642
|
loadConfig
|
|
641
|
-
} from "./chunk-
|
|
643
|
+
} from "./chunk-IKGSTBTG.js";
|
|
642
644
|
import "./chunk-REPFZIPP.js";
|
|
643
645
|
import {
|
|
644
646
|
bootTime,
|
|
@@ -1046,7 +1048,7 @@ function mountCatchUpRoutes(app, opts = {}) {
|
|
|
1046
1048
|
const s = findSession2(id);
|
|
1047
1049
|
if (!s) return c.json({ error: "unknown session" }, 404);
|
|
1048
1050
|
const logged = Object.fromEntries(Object.entries(loggedDays(id)).map(([day, l]) => [day, l.seconds]));
|
|
1049
|
-
return c.json({ configured: !!worklogSettings(loadConfig()), issueKey: s.
|
|
1051
|
+
return c.json({ configured: !!worklogSettings(loadConfig()), issueKey: s.issueKey ?? null, logged });
|
|
1050
1052
|
});
|
|
1051
1053
|
app.post("/api/sessions/:id/worklog", async (c) => {
|
|
1052
1054
|
const id = c.req.param("id");
|
|
@@ -1055,12 +1057,12 @@ function mountCatchUpRoutes(app, opts = {}) {
|
|
|
1055
1057
|
const settings = worklogSettings(loadConfig());
|
|
1056
1058
|
if (!settings)
|
|
1057
1059
|
return c.json({ error: "Jira worklogs are not set up (config jiraWorklog: site, email, and an API token in JIRA_API_TOKEN)." }, 409);
|
|
1058
|
-
if (!s.
|
|
1060
|
+
if (!s.issueKey) return c.json({ error: "this session has no Jira issue" }, 409);
|
|
1059
1061
|
const body = await c.req.json().catch(() => ({}));
|
|
1060
1062
|
const time = await sessionWorkTime(s);
|
|
1061
1063
|
const day = typeof body.day === "string" ? time.byDay.find((d) => d.day === body.day) : time.byDay[0];
|
|
1062
1064
|
if (!day) return c.json({ error: "no work that day to log" }, 409);
|
|
1063
|
-
const r = await logWorkDay(id, s.
|
|
1065
|
+
const r = await logWorkDay(id, s.issueKey, day.day, day.ms, opts.postWorklog?.(settings) ?? jiraWorklogPoster(settings));
|
|
1064
1066
|
if (!r.ok) return c.json({ error: r.error }, r.status);
|
|
1065
1067
|
return c.json(r);
|
|
1066
1068
|
});
|
|
@@ -1642,6 +1644,23 @@ function localReviewNote(review, ids) {
|
|
|
1642
1644
|
"For each: say whether you agree, and fix the ones you agree with (with a test where it applies). Leave the ones you disagree with and say why. Then build and run the tests."
|
|
1643
1645
|
].join("\n");
|
|
1644
1646
|
}
|
|
1647
|
+
var MAX_DECISION_CHARS = 4e3;
|
|
1648
|
+
function localRecommendationNote(review, decision) {
|
|
1649
|
+
const rec = review.recommendation;
|
|
1650
|
+
if (!rec) return null;
|
|
1651
|
+
const said = (decision ?? "").trim().slice(0, MAX_DECISION_CHARS);
|
|
1652
|
+
return [
|
|
1653
|
+
`A review of this branch's changes in ${review.repo} ended with the recommendation below ("${VERDICT_LABEL[rec.verdict]}"). It is a reviewer's reading of the diff, between <<< and >>>: weigh it, don't just obey it.`,
|
|
1654
|
+
`<<< ${asData(rec.text, 3e3)} >>>`,
|
|
1655
|
+
...said ? [
|
|
1656
|
+
"My decision on it (my own words \u2014 follow them):",
|
|
1657
|
+
said,
|
|
1658
|
+
"Say back in a line what you understood, then do it (with a test where it applies), build and run the tests. If my decision leaves one of its questions open, ask me before changing anything about that one."
|
|
1659
|
+
] : [
|
|
1660
|
+
"I have not decided yet. For each open question it raises: say what the code does today, whether the concern is real (show the lines), and what the options are with what each would change. Change nothing until I answer."
|
|
1661
|
+
]
|
|
1662
|
+
].join("\n");
|
|
1663
|
+
}
|
|
1645
1664
|
|
|
1646
1665
|
// src/server/routes/session-review-routes.ts
|
|
1647
1666
|
function mountSessionReviewRoutes(app, deps) {
|
|
@@ -1732,6 +1751,26 @@ function mountSessionReviewRoutes(app, deps) {
|
|
|
1732
1751
|
deps.broadcast("session-review-changed", { sessionId: id });
|
|
1733
1752
|
return c.json({ ok: true, sent: went.length });
|
|
1734
1753
|
});
|
|
1754
|
+
app.post("/api/sessions/:id/review/recommendation", async (c) => {
|
|
1755
|
+
const id = c.req.param("id");
|
|
1756
|
+
const session = findSession2(id);
|
|
1757
|
+
if (!session) return c.json({ error: "unknown session" }, 404);
|
|
1758
|
+
if (session.archivedAt) return c.json({ error: "It is archived: restore it first." }, 409);
|
|
1759
|
+
const body = await c.req.json().catch(() => ({}));
|
|
1760
|
+
if (body.decision !== void 0 && typeof body.decision !== "string") return c.json({ error: "decision: string" }, 400);
|
|
1761
|
+
if (body.decision && body.decision.length > MAX_DECISION_CHARS)
|
|
1762
|
+
return c.json({ error: `decision: at most ${MAX_DECISION_CHARS} characters` }, 400);
|
|
1763
|
+
const review = reviews.state(id).review;
|
|
1764
|
+
if (!review) return c.json({ error: "no review of it is prepared" }, 409);
|
|
1765
|
+
const note = localRecommendationNote(review, body.decision);
|
|
1766
|
+
if (!note) return c.json({ error: "It has no recommendation to hand over." }, 409);
|
|
1767
|
+
try {
|
|
1768
|
+
await deps.tell(id, note);
|
|
1769
|
+
} catch (err) {
|
|
1770
|
+
return c.json({ error: err.message }, 502);
|
|
1771
|
+
}
|
|
1772
|
+
return c.json({ ok: true, decided: !!body.decision?.trim() });
|
|
1773
|
+
});
|
|
1735
1774
|
app.post("/api/sessions/:id/review/dismiss", async (c) => {
|
|
1736
1775
|
const id = c.req.param("id");
|
|
1737
1776
|
if (!findSession2(id)) return c.json({ error: "unknown session" }, 404);
|
|
@@ -2994,6 +3033,8 @@ var SettingsError = class extends Error {
|
|
|
2994
3033
|
}
|
|
2995
3034
|
};
|
|
2996
3035
|
var SETTING_PATTERNS = {
|
|
3036
|
+
/** A line of `issues.rules` (issue-place.ts's parseIssueRule reads the same shape; a GitHub scope is owner/repo). */
|
|
3037
|
+
issueRule: "^\\s*(?:(?:jira|azure)\\s*:\\s*[^/\\s][^/]*(?:/\\s*\\S.*?)?|github\\s*:\\s*[^/\\s]+/[^/\\s]+)\\s*(?:->|\u2192|=>)\\s*[^\\s(][^(]*?(?:\\s*\\(\\s*(?:[Aa][Uu][Tt][Oo]|[Aa][Ss][Kk])\\s*\\))?\\s*$",
|
|
2997
3038
|
issueKey: "^[A-Z][A-Z0-9]{1,9}-\\d+$",
|
|
2998
3039
|
project: "^[A-Z][A-Z0-9]{1,9}$",
|
|
2999
3040
|
customField: "^customfield_\\d+$",
|
|
@@ -3199,18 +3240,32 @@ var SETTINGS = [
|
|
|
3199
3240
|
kind: { type: "number", min: 1, max: 1e6 },
|
|
3200
3241
|
default: 3e3
|
|
3201
3242
|
},
|
|
3202
|
-
// ----
|
|
3243
|
+
// ---- Issues
|
|
3244
|
+
{
|
|
3245
|
+
path: "issues.rules",
|
|
3246
|
+
section: "Issues",
|
|
3247
|
+
label: "Issues start in",
|
|
3248
|
+
help: 'Which of your projects (a repo or a group) an issue\u2019s work starts in, one rule a line: "jira:PAY -> api" (every issue of the Jira project PAY), "jira:SHOP/checkout -> shop" (issues of SHOP with that component or label; the narrower rule wins), "github:acme/web -> shop" (issues of that GitHub repo). Start on the Issues tab opens with that project filled in. Add "(auto)" after the project \u2014 "jira:PAY -> api (auto)" \u2014 to let the watch start a newly assigned issue of that rule by itself; nothing starts by itself without it. An issue with no (auto) rule is listed with the project it would go in, for you to start.',
|
|
3249
|
+
kind: {
|
|
3250
|
+
type: "list",
|
|
3251
|
+
placeholder: "e.g. jira:PAY -> api",
|
|
3252
|
+
pattern: SETTING_PATTERNS.issueRule,
|
|
3253
|
+
patternError: "isn\u2019t a rule: write source:scope -> project, optionally followed by (auto); the source is one of jira, github, azure"
|
|
3254
|
+
},
|
|
3255
|
+
default: [],
|
|
3256
|
+
when: "the next issue started"
|
|
3257
|
+
},
|
|
3203
3258
|
{
|
|
3204
3259
|
path: "jiraWatch.maxPerDay",
|
|
3205
|
-
section: "
|
|
3260
|
+
section: "Issues",
|
|
3206
3261
|
label: "Most issues the Jira watch starts a day",
|
|
3207
|
-
help: "Newly assigned issues it starts by itself (when it is on, on the
|
|
3262
|
+
help: "Newly assigned issues it starts by itself (when it is on, on the Issues tab).",
|
|
3208
3263
|
kind: { type: "number", min: 0, max: 100 },
|
|
3209
3264
|
default: 5
|
|
3210
3265
|
},
|
|
3211
3266
|
{
|
|
3212
3267
|
path: "jiraWorklog.site",
|
|
3213
|
-
section: "
|
|
3268
|
+
section: "Issues",
|
|
3214
3269
|
label: "Jira site for worklogs",
|
|
3215
3270
|
help: "Where \u2192 PAY-12 writes a worklog, e.g. yourcompany.atlassian.net.",
|
|
3216
3271
|
kind: { type: "text", placeholder: "yourcompany.atlassian.net" },
|
|
@@ -3218,7 +3273,7 @@ var SETTINGS = [
|
|
|
3218
3273
|
},
|
|
3219
3274
|
{
|
|
3220
3275
|
path: "jiraWorklog.email",
|
|
3221
|
-
section: "
|
|
3276
|
+
section: "Issues",
|
|
3222
3277
|
label: "Your Jira email",
|
|
3223
3278
|
help: "Who the worklog is written as.",
|
|
3224
3279
|
kind: { type: "text" },
|
|
@@ -3226,7 +3281,7 @@ var SETTINGS = [
|
|
|
3226
3281
|
},
|
|
3227
3282
|
{
|
|
3228
3283
|
path: "jiraWorklog.tokenEnv",
|
|
3229
|
-
section: "
|
|
3284
|
+
section: "Issues",
|
|
3230
3285
|
label: "Environment variable with the API token",
|
|
3231
3286
|
help: "The token itself is never stored here.",
|
|
3232
3287
|
kind: { type: "text", placeholder: "JIRA_API_TOKEN" },
|
|
@@ -3734,14 +3789,10 @@ function mountBlockRoutes(app, opts) {
|
|
|
3734
3789
|
});
|
|
3735
3790
|
}
|
|
3736
3791
|
|
|
3737
|
-
// src/server/routes/jira-watch-routes.ts
|
|
3738
|
-
import fs8 from "fs";
|
|
3739
|
-
import path9 from "path";
|
|
3740
|
-
|
|
3741
3792
|
// src/core/jira/jira-prompt.ts
|
|
3742
3793
|
var branchFor = (issue) => `feat/${issue.key}`;
|
|
3743
3794
|
function sessionIsForIssue(s, issue) {
|
|
3744
|
-
return s.
|
|
3795
|
+
return s.issueKey === issue.key || s.branch === branchFor(issue);
|
|
3745
3796
|
}
|
|
3746
3797
|
function jiraPrompt(issue, opts = {}) {
|
|
3747
3798
|
const lines = [
|
|
@@ -3759,6 +3810,58 @@ function jiraPrompt(issue, opts = {}) {
|
|
|
3759
3810
|
return lines.join("\n");
|
|
3760
3811
|
}
|
|
3761
3812
|
|
|
3813
|
+
// src/core/issues/jira-source.ts
|
|
3814
|
+
var JIRA_KEY = /^[A-Z][A-Z0-9_]*-\d+$/;
|
|
3815
|
+
function jiraAsIssue(issue) {
|
|
3816
|
+
return {
|
|
3817
|
+
source: "jira",
|
|
3818
|
+
key: issue.key,
|
|
3819
|
+
summary: issue.summary,
|
|
3820
|
+
status: issue.status,
|
|
3821
|
+
...issue.statusCategory ? { statusCategory: issue.statusCategory } : {},
|
|
3822
|
+
issuetype: issue.issuetype,
|
|
3823
|
+
priority: issue.priority,
|
|
3824
|
+
url: issue.url
|
|
3825
|
+
};
|
|
3826
|
+
}
|
|
3827
|
+
function jiraSource(deps = {}) {
|
|
3828
|
+
const pane = deps.pane ?? fetchJiraPane;
|
|
3829
|
+
const all = deps.all ?? fetchMyIssuesOrThrow;
|
|
3830
|
+
const detail = deps.detail ?? fetchIssueDetail;
|
|
3831
|
+
return {
|
|
3832
|
+
id: "jira",
|
|
3833
|
+
name: "Jira",
|
|
3834
|
+
async mine() {
|
|
3835
|
+
const r = await pane();
|
|
3836
|
+
return { available: r.available, issues: r.issues.map(jiraAsIssue) };
|
|
3837
|
+
},
|
|
3838
|
+
async mineOrThrow() {
|
|
3839
|
+
return (await all()).map(jiraAsIssue);
|
|
3840
|
+
},
|
|
3841
|
+
async detail(key) {
|
|
3842
|
+
const d = await detail(key);
|
|
3843
|
+
return d ? { scope: d.project, facets: [...d.components, ...d.labels], description: d.description, created: d.created } : null;
|
|
3844
|
+
},
|
|
3845
|
+
scopeOf: (key) => JIRA_KEY.test(key) ? key.split("-")[0] : null,
|
|
3846
|
+
isKey: (text) => JIRA_KEY.test(text),
|
|
3847
|
+
branchFor: (issue) => branchFor(issue),
|
|
3848
|
+
prompt: (issue, opts) => jiraPrompt(issue, opts)
|
|
3849
|
+
};
|
|
3850
|
+
}
|
|
3851
|
+
function issueSources() {
|
|
3852
|
+
return [jiraSource()];
|
|
3853
|
+
}
|
|
3854
|
+
|
|
3855
|
+
// src/core/issues/jira-placed.ts
|
|
3856
|
+
var asDetail = (d) => d ? { scope: d.project, facets: [...d.components, ...d.labels] } : d;
|
|
3857
|
+
function placeJira(issue, detail, cfg) {
|
|
3858
|
+
return placeBySource(jiraSource(), issue.key, asDetail(detail), cfg);
|
|
3859
|
+
}
|
|
3860
|
+
|
|
3861
|
+
// src/server/routes/jira-watch-routes.ts
|
|
3862
|
+
import fs8 from "fs";
|
|
3863
|
+
import path9 from "path";
|
|
3864
|
+
|
|
3762
3865
|
// src/core/jira/jira-watch.ts
|
|
3763
3866
|
var START_PER_SWEEP = 2;
|
|
3764
3867
|
var DEFAULT_MAX_PER_DAY = 5;
|
|
@@ -3834,7 +3937,7 @@ function adoptListChange(issues, now = /* @__PURE__ */ new Date()) {
|
|
|
3834
3937
|
function projectHistory(sessions) {
|
|
3835
3938
|
const out = /* @__PURE__ */ new Map();
|
|
3836
3939
|
for (const s of sessions) {
|
|
3837
|
-
const key = s.
|
|
3940
|
+
const key = s.issueKey ?? /\b([A-Za-z][A-Za-z0-9]+)-\d+\b/.exec(s.branch)?.[0];
|
|
3838
3941
|
const project = key ? key.split("-")[0].toUpperCase() : null;
|
|
3839
3942
|
if (!project) continue;
|
|
3840
3943
|
const m = out.get(project) ?? /* @__PURE__ */ new Map();
|
|
@@ -3917,7 +4020,10 @@ async function sweepJira(deps) {
|
|
|
3917
4020
|
continue;
|
|
3918
4021
|
}
|
|
3919
4022
|
const detail = await deps.detail(issue.key);
|
|
3920
|
-
const
|
|
4023
|
+
const placed = deps.place?.(issue, detail) ?? null;
|
|
4024
|
+
const guess = placed ? null : parseChoice(await deps.ask(choicePrompt(issue, detail, targets, history)), targets);
|
|
4025
|
+
const choice = placed ? { target: placed.target, confident: placed.target !== null && placed.auto, reason: placed.reason } : { target: guess.target, confident: false, reason: guess.reason };
|
|
4026
|
+
const why = placed ? placed.target === null ? "your rules don\u2019t settle where it belongs" : "its rule doesn\u2019t say (auto)" : "no rule of yours is about it";
|
|
3921
4027
|
if (!choice.confident || !choice.target) {
|
|
3922
4028
|
saveDecision({
|
|
3923
4029
|
...base,
|
|
@@ -3927,7 +4033,7 @@ async function sweepJira(deps) {
|
|
|
3927
4033
|
reason: choice.reason
|
|
3928
4034
|
});
|
|
3929
4035
|
deps.note?.(
|
|
3930
|
-
`${issue.key}: not
|
|
4036
|
+
`${issue.key}: not started by itself (${why})${choice.target ? `; it would go in ${choice.target}` : ""} \u2014 start it from the Issues tab. ${choice.reason}`,
|
|
3931
4037
|
"info"
|
|
3932
4038
|
);
|
|
3933
4039
|
out.suggested++;
|
|
@@ -3993,7 +4099,7 @@ function mountJiraWatchRoutes(app, opts) {
|
|
|
3993
4099
|
const config = loadConfig();
|
|
3994
4100
|
if (!config) throw new Error("no work config");
|
|
3995
4101
|
const made = await (opts.create ?? createInProcess)(
|
|
3996
|
-
{ target, branch,
|
|
4102
|
+
{ target, branch, issueKey: issue.key, name: `${issue.key} ${issue.summary}`.slice(0, 120) },
|
|
3997
4103
|
config
|
|
3998
4104
|
);
|
|
3999
4105
|
if (!made.ok) throw new Error(made.error || `could not create ${branch} in ${target}`);
|
|
@@ -4017,6 +4123,7 @@ function mountJiraWatchRoutes(app, opts) {
|
|
|
4017
4123
|
detail: fetchIssueDetail,
|
|
4018
4124
|
targets: () => watchTargets(),
|
|
4019
4125
|
sessions: () => loadHistory(),
|
|
4126
|
+
place: (issue, detail) => placeJira(issue, detail, loadConfig()),
|
|
4020
4127
|
ask: (prompt) => runInternal(prompt, 9e4),
|
|
4021
4128
|
start: (target, branch, issue) => start(target, branch, issue, true),
|
|
4022
4129
|
note: (text, level, sessionId) => run2?.note(text, { level, ...sessionId ? { sessionId } : {} }),
|
|
@@ -4049,7 +4156,8 @@ function mountJiraWatchRoutes(app, opts) {
|
|
|
4049
4156
|
nextRunAt = new Date(Date.now() + EVERY_MS).toISOString();
|
|
4050
4157
|
schedule?.next(Date.now() + EVERY_MS);
|
|
4051
4158
|
}
|
|
4052
|
-
|
|
4159
|
+
const at = (tail = "") => [`/api/issues/watch${tail}`, `/api/jira/watch${tail}`];
|
|
4160
|
+
app.on("GET", [...at()], (c) => {
|
|
4053
4161
|
const body = {
|
|
4054
4162
|
settings: readSettings2(),
|
|
4055
4163
|
decisions: listDecisions().filter((d) => d.action !== "baseline").slice(0, 30),
|
|
@@ -4059,7 +4167,7 @@ function mountJiraWatchRoutes(app, opts) {
|
|
|
4059
4167
|
};
|
|
4060
4168
|
return c.json(body);
|
|
4061
4169
|
});
|
|
4062
|
-
app.
|
|
4170
|
+
app.on("PUT", [...at()], async (c) => {
|
|
4063
4171
|
const body = await c.req.json().catch(() => null);
|
|
4064
4172
|
if (typeof body?.enabled !== "boolean") return c.json({ error: "enabled (true/false) required" }, 400);
|
|
4065
4173
|
let current = [];
|
|
@@ -4077,8 +4185,8 @@ function mountJiraWatchRoutes(app, opts) {
|
|
|
4077
4185
|
opts.broadcast("jira-watch-changed", { ts: Date.now() });
|
|
4078
4186
|
return c.json({ settings });
|
|
4079
4187
|
});
|
|
4080
|
-
app.
|
|
4081
|
-
const key = c.req.param("key");
|
|
4188
|
+
app.on("POST", [...at("/:key/start")], async (c) => {
|
|
4189
|
+
const key = c.req.param("key") ?? "";
|
|
4082
4190
|
const body = await c.req.json().catch(() => null);
|
|
4083
4191
|
const target = typeof body?.target === "string" ? body.target : "";
|
|
4084
4192
|
if (!watchTargets().some((t) => t.name === target)) return c.json({ error: "unknown project" }, 400);
|
|
@@ -4105,8 +4213,8 @@ function mountJiraWatchRoutes(app, opts) {
|
|
|
4105
4213
|
return c.json({ error: err.message }, 500);
|
|
4106
4214
|
}
|
|
4107
4215
|
});
|
|
4108
|
-
app.
|
|
4109
|
-
const d = readDecision(c.req.param("key"));
|
|
4216
|
+
app.on("POST", [...at("/:key/dismiss")], (c) => {
|
|
4217
|
+
const d = readDecision(c.req.param("key") ?? "");
|
|
4110
4218
|
if (!d) return c.json({ error: "no such issue" }, 404);
|
|
4111
4219
|
saveDecision({ ...d, action: "dismissed", at: (/* @__PURE__ */ new Date()).toISOString(), reason: "you said not this one" });
|
|
4112
4220
|
opts.broadcast("jira-watch-changed", { ts: Date.now() });
|
|
@@ -4410,13 +4518,48 @@ function mountPanesRoutes(app, opts) {
|
|
|
4410
4518
|
});
|
|
4411
4519
|
}
|
|
4412
4520
|
});
|
|
4521
|
+
let issuesInFlight = null;
|
|
4522
|
+
app.get("/api/issues", async (c) => {
|
|
4523
|
+
issuesInFlight ??= (async () => {
|
|
4524
|
+
const run2 = opts.activity?.start("jira", "Fetching your issues");
|
|
4525
|
+
try {
|
|
4526
|
+
const r = await listIssues(issueSources(), loadConfig());
|
|
4527
|
+
const down = r.sources.filter((s) => !s.available);
|
|
4528
|
+
if (down.length && down.length === r.sources.length)
|
|
4529
|
+
run2?.fail(`${down.map((s) => s.name).join(", ")}: not available or not signed in`);
|
|
4530
|
+
else
|
|
4531
|
+
run2?.done(
|
|
4532
|
+
`${r.issues.length} issue${r.issues.length === 1 ? "" : "s"}${down.length ? ` \xB7 ${down.map((s) => s.name).join(", ")} not available` : ""}`
|
|
4533
|
+
);
|
|
4534
|
+
return r;
|
|
4535
|
+
} catch (err) {
|
|
4536
|
+
run2?.fail(err.message);
|
|
4537
|
+
throw err;
|
|
4538
|
+
} finally {
|
|
4539
|
+
issuesInFlight = null;
|
|
4540
|
+
}
|
|
4541
|
+
})();
|
|
4542
|
+
try {
|
|
4543
|
+
return c.json(await issuesInFlight);
|
|
4544
|
+
} catch (err) {
|
|
4545
|
+
return c.json({ sources: [], issues: [], error: err.message }, 502);
|
|
4546
|
+
}
|
|
4547
|
+
});
|
|
4413
4548
|
let jiraInFlight = null;
|
|
4414
4549
|
app.get("/api/jira", async (c) => {
|
|
4415
4550
|
if (!jiraInFlight) {
|
|
4416
4551
|
jiraInFlight = (async () => {
|
|
4417
4552
|
const run2 = opts.activity?.start("jira", "Fetching your Jira issues");
|
|
4418
4553
|
try {
|
|
4419
|
-
const
|
|
4554
|
+
const got = await fetchJiraPane();
|
|
4555
|
+
const cfg = loadConfig();
|
|
4556
|
+
const r = {
|
|
4557
|
+
...got,
|
|
4558
|
+
issues: got.issues.map((i) => {
|
|
4559
|
+
const placed = placeJira(i, void 0, cfg);
|
|
4560
|
+
return placed?.target ? { ...i, startsIn: placed.target } : i;
|
|
4561
|
+
})
|
|
4562
|
+
};
|
|
4420
4563
|
if (!r.available) run2?.fail("Jira CLI (acli) not available or not logged in");
|
|
4421
4564
|
else run2?.done(`${r.issues.length} issue${r.issues.length === 1 ? "" : "s"}`);
|
|
4422
4565
|
return r;
|
|
@@ -4510,7 +4653,7 @@ function mountWorktreeRoutes(app, opts) {
|
|
|
4510
4653
|
/** Empty or left out: the repo's own checkout, on the branch it has (`work tree <repo>`). */
|
|
4511
4654
|
branch: z4.string().optional(),
|
|
4512
4655
|
base: z4.string().optional(),
|
|
4513
|
-
|
|
4656
|
+
issueKey: z4.string().optional(),
|
|
4514
4657
|
/** Start Claude with this as its first message. */
|
|
4515
4658
|
prompt: z4.string().max(2e4).optional(),
|
|
4516
4659
|
/** Name the session (its title); the branch stays its identity. */
|
|
@@ -4527,7 +4670,7 @@ function mountWorktreeRoutes(app, opts) {
|
|
|
4527
4670
|
return r.ok ? c.json({ pr: r.pr }) : c.json({ error: r.error }, 400);
|
|
4528
4671
|
});
|
|
4529
4672
|
app.post("/api/worktrees", zValidator5("json", createSchema), async (c) => {
|
|
4530
|
-
const { target, base,
|
|
4673
|
+
const { target, base, issueKey, prompt, name } = c.req.valid("json");
|
|
4531
4674
|
const account = c.req.valid("json").account?.trim() || void 0;
|
|
4532
4675
|
const config = loadConfig();
|
|
4533
4676
|
if (!config) return c.json({ error: "no config" }, 400);
|
|
@@ -4536,7 +4679,7 @@ function mountWorktreeRoutes(app, opts) {
|
|
|
4536
4679
|
return c.json({ error: "a base needs a branch to fork (leave both empty to open the repo as it is)" }, 400);
|
|
4537
4680
|
try {
|
|
4538
4681
|
const made = await create(
|
|
4539
|
-
{ target, branch: wanted || void 0, base: base?.trim() ? toBaseSpec(base.trim()) : void 0,
|
|
4682
|
+
{ target, branch: wanted || void 0, base: base?.trim() ? toBaseSpec(base.trim()) : void 0, issueKey, name, account },
|
|
4540
4683
|
config
|
|
4541
4684
|
);
|
|
4542
4685
|
if (!made.ok) return c.json({ error: made.error }, 400);
|
|
@@ -13023,15 +13166,15 @@ async function startDemoServer(opts) {
|
|
|
13023
13166
|
const worklogs = /* @__PURE__ */ new Map();
|
|
13024
13167
|
app.get("/api/sessions/:id/worklog", (c) => {
|
|
13025
13168
|
const w = scenario.list().find((x) => x.id === c.req.param("id"));
|
|
13026
|
-
return w ? c.json({ configured: true, issueKey: w.
|
|
13169
|
+
return w ? c.json({ configured: true, issueKey: w.issueKey ?? null, logged: worklogs.get(w.id) ?? {} }) : notFound(c);
|
|
13027
13170
|
});
|
|
13028
13171
|
app.post("/api/sessions/:id/worklog", (c) => {
|
|
13029
13172
|
const w = scenario.list().find((x) => x.id === c.req.param("id"));
|
|
13030
13173
|
if (!w) return notFound(c);
|
|
13031
|
-
if (!w.
|
|
13174
|
+
if (!w.issueKey) return c.json({ error: "this session has no Jira issue" }, 409);
|
|
13032
13175
|
const day = dayKey(scenario.clockMs());
|
|
13033
13176
|
worklogs.set(w.id, { ...worklogs.get(w.id) ?? {}, [day]: 3600 });
|
|
13034
|
-
return c.json({ ok: true, logged: 3600, total: 3600, text: `1h logged on ${w.
|
|
13177
|
+
return c.json({ ok: true, logged: 3600, total: 3600, text: `1h logged on ${w.issueKey} for ${day}` });
|
|
13035
13178
|
});
|
|
13036
13179
|
app.get("/api/sessions/:id/timeline", (c) => {
|
|
13037
13180
|
const w = scenario.list().find((x) => x.id === c.req.param("id"));
|
|
@@ -13113,6 +13256,16 @@ async function startDemoServer(opts) {
|
|
|
13113
13256
|
if (!w) return notFound(c);
|
|
13114
13257
|
return localReviews.has(w.id) ? c.json({ files: demoReviewFiles() }) : c.json({ error: "no review of it is prepared" }, 404);
|
|
13115
13258
|
});
|
|
13259
|
+
app.post("/api/sessions/:id/review/recommendation", async (c) => {
|
|
13260
|
+
const w = scenario.list().find((x) => x.id === c.req.param("id"));
|
|
13261
|
+
if (!w) return notFound(c);
|
|
13262
|
+
if (w.archivedAt) return c.json({ error: "It is archived: restore it first." }, 409);
|
|
13263
|
+
const review = demoLocalReview(w).review;
|
|
13264
|
+
if (!review) return c.json({ error: "no review of it is prepared" }, 409);
|
|
13265
|
+
if (!review.recommendation) return c.json({ error: "It has no recommendation to hand over." }, 409);
|
|
13266
|
+
const body = await json2(c);
|
|
13267
|
+
return c.json({ ok: true, decided: typeof body.decision === "string" && !!body.decision.trim() });
|
|
13268
|
+
});
|
|
13116
13269
|
app.post("/api/sessions/:id/review/send", async (c) => {
|
|
13117
13270
|
const w = scenario.list().find((x) => x.id === c.req.param("id"));
|
|
13118
13271
|
if (!w) return notFound(c);
|
|
@@ -13921,10 +14074,19 @@ async function startDemoServer(opts) {
|
|
|
13921
14074
|
app.get("/api/activity", (c) => c.json(activity.log.snapshot()));
|
|
13922
14075
|
app.get("/api/prs", (c) => c.json({ prs: scenario.prs() }));
|
|
13923
14076
|
app.get("/api/jira", (c) => c.json({ available: true, issues: scenario.jira() }));
|
|
14077
|
+
app.get(
|
|
14078
|
+
"/api/issues",
|
|
14079
|
+
(c) => c.json({
|
|
14080
|
+
sources: [{ id: "jira", name: "Jira", available: true }],
|
|
14081
|
+
issues: scenario.jira().map((i) => ({ source: "jira", ...i }))
|
|
14082
|
+
})
|
|
14083
|
+
);
|
|
13924
14084
|
let jiraWatch = { enabled: false, since: null };
|
|
13925
14085
|
const jiraDecisions = [];
|
|
13926
|
-
|
|
13927
|
-
|
|
14086
|
+
const watchAt = (tail = "") => [`/api/issues/watch${tail}`, `/api/jira/watch${tail}`];
|
|
14087
|
+
app.on(
|
|
14088
|
+
"GET",
|
|
14089
|
+
watchAt(),
|
|
13928
14090
|
(c) => c.json({
|
|
13929
14091
|
settings: jiraWatch,
|
|
13930
14092
|
decisions: jiraDecisions,
|
|
@@ -13933,14 +14095,14 @@ async function startDemoServer(opts) {
|
|
|
13933
14095
|
nextRunAt: null
|
|
13934
14096
|
})
|
|
13935
14097
|
);
|
|
13936
|
-
app.
|
|
14098
|
+
app.on("PUT", watchAt(), async (c) => {
|
|
13937
14099
|
const body = await json2(c);
|
|
13938
14100
|
if (typeof body.enabled !== "boolean") return c.json({ error: "enabled (true/false) required" }, 400);
|
|
13939
14101
|
jiraWatch = { enabled: body.enabled, since: body.enabled ? (/* @__PURE__ */ new Date()).toISOString() : null };
|
|
13940
14102
|
return c.json({ settings: jiraWatch });
|
|
13941
14103
|
});
|
|
13942
|
-
app.
|
|
13943
|
-
app.
|
|
14104
|
+
app.on("POST", watchAt("/:key/start"), (c) => c.json({ error: "the demo starts nothing" }, 400));
|
|
14105
|
+
app.on("POST", watchAt("/:key/dismiss"), (c) => {
|
|
13944
14106
|
const d = jiraDecisions.find((x) => x.key === c.req.param("key"));
|
|
13945
14107
|
if (!d) return c.json({ error: "no such issue" }, 404);
|
|
13946
14108
|
d.action = "dismissed";
|
|
@@ -14418,4 +14580,4 @@ export {
|
|
|
14418
14580
|
stopExisting,
|
|
14419
14581
|
webCommand
|
|
14420
14582
|
};
|
|
14421
|
-
//# sourceMappingURL=web-
|
|
14583
|
+
//# sourceMappingURL=web-FT3AEB3E.js.map
|