@namzu/cli 58.0.0 → 59.0.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/CHANGELOG.md +127 -0
- package/dist/bin-main.d.ts.map +1 -1
- package/dist/bin.js +1 -1
- package/dist/chunks/{acp-OZG7H75P.js → acp-AQUZCZSO.js} +210 -74
- package/dist/chunks/acp-AQUZCZSO.js.map +6 -0
- package/dist/chunks/{activity-command-ZROH53CS.js → activity-command-Y3A6GIFW.js} +14 -14
- package/dist/chunks/{add-DKSV5Y3C.js → add-DWFKSOYI.js} +26 -24
- package/dist/chunks/add-DWFKSOYI.js.map +6 -0
- package/dist/chunks/{agent-MSSMOEBP.js → agent-Z6PJYBAO.js} +54 -49
- package/dist/chunks/agent-session-WXWW7E5M.js +92 -0
- package/dist/chunks/{apply-at-exit-Z34ZOT4A.js → apply-at-exit-SHGR2BAB.js} +7 -7
- package/dist/chunks/{archive-UMNSALTJ.js → archive-KYXU4AZZ.js} +12 -12
- package/dist/chunks/{auth-2NEDWCS7.js → auth-R3RCZZ7U.js} +12 -12
- package/dist/chunks/{bin-main-2E6XD7MQ.js → bin-main-DUZFYUCJ.js} +51 -23
- package/dist/chunks/bin-main-DUZFYUCJ.js.map +6 -0
- package/dist/chunks/{binding-NAPEU62B.js → binding-5UJYMFMU.js} +3 -3
- package/dist/chunks/{browser-M7U6GZOY.js → browser-7CFZ6BZS.js} +7 -7
- package/dist/chunks/{chat-34SAREPI.js → chat-BELD32ZP.js} +17 -17
- package/dist/chunks/{chunk-O6C4RETO.js → chunk-23D5IXMW.js} +3 -3
- package/dist/chunks/{chunk-O6EDUJ77.js → chunk-24EZWZDZ.js} +6 -6
- package/dist/chunks/{chunk-7NAHUZAR.js → chunk-2EVP6BX4.js} +2 -2
- package/dist/chunks/{chunk-5NIQMCRF.js → chunk-2KC52MDS.js} +2 -2
- package/dist/chunks/{chunk-6RBEIDSC.js → chunk-2VP2Q657.js} +3 -3
- package/dist/chunks/{chunk-2PRVGX6U.js → chunk-3ETXWTV4.js} +8 -8
- package/dist/chunks/{chunk-WEPINZBQ.js → chunk-3PH6F6Z3.js} +2 -2
- package/dist/chunks/{chunk-HGOU2QRN.js → chunk-3RLKUXXG.js} +21 -20
- package/dist/chunks/{chunk-HGOU2QRN.js.map → chunk-3RLKUXXG.js.map} +1 -1
- package/dist/chunks/{chunk-IBENEKM4.js → chunk-44MFZJ24.js} +13 -2
- package/dist/chunks/{chunk-IBENEKM4.js.map → chunk-44MFZJ24.js.map} +1 -1
- package/dist/chunks/{chunk-7NQLCFYX.js → chunk-4BAXYUZQ.js} +51 -17
- package/dist/chunks/chunk-4BAXYUZQ.js.map +6 -0
- package/dist/chunks/{chunk-I5BNXO63.js → chunk-4RW7GDJ4.js} +2 -2
- package/dist/chunks/{chunk-RR7FS6SQ.js → chunk-4TIUY3Q6.js} +15 -5
- package/dist/chunks/chunk-4TIUY3Q6.js.map +6 -0
- package/dist/chunks/{chunk-2D5WW5KP.js → chunk-4TJ7AGQO.js} +2 -2
- package/dist/chunks/{chunk-J4GPHTRN.js → chunk-567CSU37.js} +8 -8
- package/dist/chunks/{chunk-UMPJ4VXN.js → chunk-5HMJ3DYR.js} +4 -4
- package/dist/chunks/{chunk-L5FCGDB7.js → chunk-5JVKE4LB.js} +6344 -2454
- package/dist/chunks/chunk-5JVKE4LB.js.map +6 -0
- package/dist/chunks/chunk-5OYJXSMZ.js +34 -0
- package/dist/chunks/chunk-5OYJXSMZ.js.map +6 -0
- package/dist/chunks/{chunk-TSU4F6DF.js → chunk-6CSJRIUZ.js} +3 -3
- package/dist/chunks/{chunk-JSY23B3Q.js → chunk-6IOZY2AB.js} +41 -7
- package/dist/chunks/chunk-6IOZY2AB.js.map +6 -0
- package/dist/chunks/{chunk-FJG7JN4W.js → chunk-6YXHH5JW.js} +2 -2
- package/dist/chunks/chunk-73HWWJYC.js +130 -0
- package/dist/chunks/chunk-73HWWJYC.js.map +6 -0
- package/dist/chunks/{chunk-6ZWEKSAV.js → chunk-7J23SPSX.js} +7 -7
- package/dist/chunks/{chunk-G7UGGWOR.js → chunk-7LDUPEXP.js} +25 -6
- package/dist/chunks/chunk-7LDUPEXP.js.map +6 -0
- package/dist/chunks/{chunk-K7ZQYJJE.js → chunk-7Y4RR47U.js} +5 -5
- package/dist/chunks/{chunk-655EBPZH.js → chunk-ABKURT35.js} +3 -3
- package/dist/chunks/{chunk-TGLXWW5B.js → chunk-ACO3LTRT.js} +8 -4
- package/dist/chunks/{chunk-TGLXWW5B.js.map → chunk-ACO3LTRT.js.map} +1 -1
- package/dist/chunks/{chunk-66DFXMZG.js → chunk-AEXGGJUW.js} +5 -5
- package/dist/chunks/{chunk-IH2JBJ6I.js → chunk-AIQKSTVJ.js} +4 -4
- package/dist/chunks/{chunk-MOY2OERC.js → chunk-ATCVFWXD.js} +57 -40
- package/dist/chunks/chunk-ATCVFWXD.js.map +6 -0
- package/dist/chunks/{chunk-7BXJPOEG.js → chunk-CEZW3NVM.js} +4 -4
- package/dist/chunks/{chunk-K5VLCRHY.js → chunk-CG5CGXNF.js} +2 -2
- package/dist/chunks/{chunk-UBGDYBSQ.js → chunk-CNSKJ3DZ.js} +2 -2
- package/dist/chunks/{chunk-6V4VYVRZ.js → chunk-CQFWLYTK.js} +2 -2
- package/dist/chunks/{chunk-XQZMTH3S.js → chunk-D35UCVTK.js} +5 -5
- package/dist/chunks/{chunk-ZDMI3JSL.js → chunk-D3SCA6NT.js} +80 -5
- package/dist/chunks/chunk-D3SCA6NT.js.map +6 -0
- package/dist/chunks/{chunk-MJ32RCFZ.js → chunk-D6XZ4ZAV.js} +76 -17
- package/dist/chunks/chunk-D6XZ4ZAV.js.map +6 -0
- package/dist/chunks/{chunk-URZPVSHV.js → chunk-DGYMR4WJ.js} +4 -4
- package/dist/chunks/{chunk-BATWKQWV.js → chunk-DJKWBSVM.js} +2 -2
- package/dist/chunks/{chunk-7BSLOLTU.js → chunk-DJTCZSSY.js} +2 -2
- package/dist/chunks/{chunk-JFA2XPTW.js → chunk-DKSFQRUM.js} +5 -5
- package/dist/chunks/{chunk-LM2OGSW5.js → chunk-DRWJTADQ.js} +4 -4
- package/dist/chunks/{chunk-6QQVZXUE.js → chunk-E4RVHFV6.js} +2 -2
- package/dist/chunks/{chunk-XWP64X6U.js → chunk-E65IWYTT.js} +6 -6
- package/dist/chunks/{chunk-5GI7W4SM.js → chunk-E6FMAE5Q.js} +11 -10
- package/dist/chunks/{chunk-5GI7W4SM.js.map → chunk-E6FMAE5Q.js.map} +1 -1
- package/dist/chunks/{chunk-EFWF72V4.js → chunk-EA6YICQ7.js} +3 -3
- package/dist/chunks/{chunk-JR6EFL7G.js → chunk-EGGO56FY.js} +2 -1
- package/dist/chunks/{chunk-ENNAZGUX.js → chunk-ESIICAI3.js} +3 -3
- package/dist/chunks/{chunk-NQYOMRPT.js → chunk-FEOS7UZ2.js} +2 -2
- package/dist/chunks/{chunk-TL535OCL.js → chunk-FK5C7SHM.js} +152 -30
- package/dist/chunks/chunk-FK5C7SHM.js.map +6 -0
- package/dist/chunks/{chunk-TAIC3PC2.js → chunk-FMQCPAKR.js} +3 -3
- package/dist/chunks/{chunk-5564PCLT.js → chunk-FRGOWO6N.js} +9 -9
- package/dist/chunks/{chunk-4WLMPRGO.js → chunk-G5LPTLLY.js} +3 -3
- package/dist/chunks/{chunk-4AWE33MD.js → chunk-G76POTWW.js} +5 -3
- package/dist/chunks/{chunk-4AWE33MD.js.map → chunk-G76POTWW.js.map} +1 -1
- package/dist/chunks/{chunk-32CPPPKX.js → chunk-GEVWZWLM.js} +3 -3
- package/dist/chunks/{chunk-P6RYPNSD.js → chunk-GQ6WXY3M.js} +4 -4
- package/dist/chunks/{chunk-GLZJBFDO.js → chunk-GUK47JTV.js} +21 -7
- package/dist/chunks/chunk-GUK47JTV.js.map +6 -0
- package/dist/chunks/{chunk-U4DBETHR.js → chunk-HGTOAMV6.js} +2008 -682
- package/dist/chunks/chunk-HGTOAMV6.js.map +6 -0
- package/dist/chunks/{chunk-NO3F3QQ3.js → chunk-HW2QBNAA.js} +13 -13
- package/dist/chunks/{chunk-2GKFWJ3O.js → chunk-IJ6Z6FNY.js} +3 -3
- package/dist/chunks/{chunk-52DZTN4C.js → chunk-IRAG3YXW.js} +3 -3
- package/dist/chunks/{chunk-PYTTGYZS.js → chunk-J5E4DV6R.js} +3 -3
- package/dist/chunks/{chunk-A5O5VTQM.js → chunk-JPM3JXZB.js} +3 -3
- package/dist/chunks/{chunk-TXMWKHYW.js → chunk-JRWUIW4J.js} +2 -2
- package/dist/chunks/{chunk-OY3UN3KD.js → chunk-JUDJGDYX.js} +86 -5
- package/dist/chunks/chunk-JUDJGDYX.js.map +6 -0
- package/dist/chunks/{chunk-L4LGUBYZ.js → chunk-JZTTOZRG.js} +2 -2
- package/dist/chunks/{chunk-TJAUF5NX.js → chunk-KBLYZ7L7.js} +3 -3
- package/dist/chunks/{chunk-3SBROSVS.js → chunk-KETRBV2E.js} +2 -2
- package/dist/chunks/{chunk-ESHAWCBR.js → chunk-KHGY6QJR.js} +132 -17
- package/dist/chunks/chunk-KHGY6QJR.js.map +6 -0
- package/dist/chunks/{chunk-KCBOIL5Q.js → chunk-KPOOM7QT.js} +4 -4
- package/dist/chunks/{chunk-7DERK6IR.js → chunk-KVNL7XA6.js} +3 -3
- package/dist/chunks/{chunk-MJJA277Z.js → chunk-LB4HC5U7.js} +3 -3
- package/dist/chunks/{chunk-7EASTT3H.js → chunk-LWJJDERP.js} +3 -3
- package/dist/chunks/{chunk-ADLNBLRA.js → chunk-LXJW3ZYI.js} +2 -2
- package/dist/chunks/{chunk-3ZL6YBMT.js → chunk-MDBUSIPW.js} +8 -7
- package/dist/chunks/{chunk-3ZL6YBMT.js.map → chunk-MDBUSIPW.js.map} +1 -1
- package/dist/chunks/{chunk-SEVORRUA.js → chunk-MDVYEFTI.js} +2 -2
- package/dist/chunks/{chunk-OGEOUETU.js → chunk-MF57EX7H.js} +3 -3
- package/dist/chunks/{chunk-DIBXZBOP.js → chunk-MF5KTVGJ.js} +15 -15
- package/dist/chunks/{chunk-MX3U5TBQ.js → chunk-MRZHTIE7.js} +8 -4
- package/dist/chunks/chunk-MRZHTIE7.js.map +6 -0
- package/dist/chunks/{chunk-27ICMJVV.js → chunk-O2PZDA5H.js} +3 -3
- package/dist/chunks/{chunk-HBGRWJU5.js → chunk-OA7QKUCM.js} +10 -10
- package/dist/chunks/{chunk-KIWLK2WZ.js → chunk-OH7EYW3T.js} +6 -6
- package/dist/chunks/{chunk-LRUY5C6H.js → chunk-OOJP5BEK.js} +404 -50
- package/dist/chunks/chunk-OOJP5BEK.js.map +6 -0
- package/dist/chunks/{chunk-774DAIPO.js → chunk-OQWLQUO7.js} +2935 -489
- package/dist/chunks/chunk-OQWLQUO7.js.map +6 -0
- package/dist/chunks/{chunk-5COLG33E.js → chunk-OSC47PCX.js} +157 -11
- package/dist/chunks/chunk-OSC47PCX.js.map +6 -0
- package/dist/chunks/{chunk-HICZARAY.js → chunk-P4TCLMD6.js} +2 -2
- package/dist/chunks/{chunk-GVLU2YM7.js → chunk-P725GKKG.js} +6 -6
- package/dist/chunks/{chunk-7MYLYFIV.js → chunk-PFVYYH6O.js} +2 -2
- package/dist/chunks/{chunk-Y3NC6RIL.js → chunk-PKFXIWVX.js} +4 -4
- package/dist/chunks/{chunk-NBJ4OTXL.js → chunk-PQT7624W.js} +8 -8
- package/dist/chunks/{chunk-6MMKNZYL.js → chunk-Q6PZODSV.js} +26 -13
- package/dist/chunks/chunk-Q6PZODSV.js.map +6 -0
- package/dist/chunks/{chunk-ULFR2FWA.js → chunk-QTHG6UPU.js} +2 -2
- package/dist/chunks/{chunk-JX6O7Y55.js → chunk-QZTTIL3A.js} +3 -3
- package/dist/chunks/{chunk-CSO7BHDJ.js → chunk-RZKIZTPA.js} +2 -2
- package/dist/chunks/{chunk-5WS5Q2KW.js → chunk-S7FE35WQ.js} +3 -3
- package/dist/chunks/{chunk-RTMX7IDM.js → chunk-SS6IJAPA.js} +2 -2
- package/dist/chunks/{chunk-2QJNPJOC.js → chunk-SSPHAILP.js} +2 -2
- package/dist/chunks/{chunk-UXLQNJDR.js → chunk-TORIEDBN.js} +4 -4
- package/dist/chunks/{chunk-EOLXS2ZV.js → chunk-TP7DRQXE.js} +25 -7
- package/dist/chunks/chunk-TP7DRQXE.js.map +6 -0
- package/dist/chunks/{chunk-FZPIEOFR.js → chunk-TRRKG642.js} +3 -3
- package/dist/chunks/{dist-5G52QS75.js → chunk-TYNAB5GR.js} +160 -15
- package/dist/chunks/chunk-TYNAB5GR.js.map +6 -0
- package/dist/chunks/{chunk-2J2Z6S3V.js → chunk-UFGLSUGU.js} +23 -23
- package/dist/chunks/{list-4OJNF5N2.js → chunk-UL6MZ5OM.js} +87 -60
- package/dist/chunks/chunk-UL6MZ5OM.js.map +6 -0
- package/dist/chunks/{chunk-4RCXY7WO.js → chunk-VE4XIWDW.js} +3 -3
- package/dist/chunks/{chunk-D42SQGEO.js → chunk-VJHENTNB.js} +2 -2
- package/dist/chunks/{chunk-DZA7UXA2.js → chunk-VL6Z2OMG.js} +2 -2
- package/dist/chunks/{chunk-YEWJVAM4.js → chunk-VSNV3U2B.js} +5 -5
- package/dist/chunks/{chunk-HRKY4ARS.js → chunk-W4S4ZBXX.js} +13 -11
- package/dist/chunks/chunk-W4S4ZBXX.js.map +6 -0
- package/dist/chunks/{chunk-F6NUMURW.js → chunk-W752G3FM.js} +3 -3
- package/dist/chunks/{chunk-7LCU5IKH.js → chunk-WGC5DJEW.js} +88 -90
- package/dist/chunks/chunk-WGC5DJEW.js.map +6 -0
- package/dist/chunks/{chunk-HONSYTUC.js → chunk-WSDZIJNK.js} +11 -5
- package/dist/chunks/chunk-WSDZIJNK.js.map +6 -0
- package/dist/chunks/chunk-WW3AU2YN.js +220 -0
- package/dist/chunks/chunk-WW3AU2YN.js.map +6 -0
- package/dist/chunks/{chunk-OD2PMTXS.js → chunk-WXYRLTRY.js} +37 -14
- package/dist/chunks/chunk-WXYRLTRY.js.map +6 -0
- package/dist/chunks/{chunk-NFTQDITK.js → chunk-XJALHM5Z.js} +3 -3
- package/dist/chunks/{chunk-S4OEUN6F.js → chunk-XLXPPVUT.js} +2 -2
- package/dist/chunks/{chunk-7ROZ2N57.js → chunk-XVOPQCPD.js} +2 -2
- package/dist/chunks/{chunk-CK47DTW6.js → chunk-YNWPC3HO.js} +5 -5
- package/dist/chunks/{chunk-4YQJ262B.js → chunk-ZQGCZYAE.js} +2 -2
- package/dist/chunks/{cli-runtime-BLOWAO6Q.js → cli-runtime-P6LCHPBA.js} +23 -23
- package/dist/chunks/{commands-VWBRELWZ.js → commands-BNHIQVYO.js} +6 -6
- package/dist/chunks/{config-77NN5LSS.js → config-ZMXMX2WY.js} +12 -12
- package/dist/chunks/{cost-IVLAFD5T.js → cost-BJKADKEZ.js} +5 -5
- package/dist/chunks/{crash-report-CA3Y7LA6.js → crash-report-OJHGVRD7.js} +6 -6
- package/dist/chunks/{dist-7BSYEFE5.js → dist-43XWK3LF.js} +2 -2
- package/dist/chunks/dist-4LEGETQA.js +52 -0
- package/dist/chunks/{dist-AM6FWCIJ.js → dist-4ZPDHZOX.js} +142 -2
- package/dist/chunks/{dist-V43PPTPF.js → dist-ADQAO5C3.js} +2 -2
- package/dist/chunks/{dist-RDXEBTCL.js → dist-BGJEX527.js} +2 -2
- package/dist/chunks/{dist-PBFZXU4L.js → dist-FMFNU4M3.js} +2 -2
- package/dist/chunks/{dist-ISRJEZRF.js → dist-NCBDELMI.js} +2 -2
- package/dist/chunks/{dist-3SGAVJFN.js → dist-PMSBTFU5.js} +10 -2
- package/dist/chunks/{dist-3SGAVJFN.js.map → dist-PMSBTFU5.js.map} +1 -1
- package/dist/chunks/{doctor-FGOCO7UR.js → doctor-AIYB27QY.js} +41 -40
- package/dist/chunks/{drain-A3DLR5A4.js → drain-PYKX4QNR.js} +19 -18
- package/dist/chunks/{drain-A3DLR5A4.js.map → drain-PYKX4QNR.js.map} +1 -1
- package/dist/chunks/{entry-4LHTI3VQ.js → entry-HM5E7KCD.js} +6 -6
- package/dist/chunks/{eval-IYWGGPWF.js → eval-H4NKZYVV.js} +9 -9
- package/dist/chunks/{exec-HWK44ZYI.js → exec-2PRVZNUX.js} +115 -50
- package/dist/chunks/exec-2PRVZNUX.js.map +6 -0
- package/dist/chunks/{extension-BP7Q3PFK.js → extension-4233XOZW.js} +5 -5
- package/dist/chunks/{home-GR6YDAAE.js → home-AZY7APF6.js} +3 -3
- package/dist/chunks/homes-WL6LAAY5.js +24 -0
- package/dist/chunks/{hooks-KSSNBDF2.js → hooks-AK5S4YUS.js} +21 -21
- package/dist/chunks/{hooks-report-H4JAHJXE.js → hooks-report-NJLGBWN3.js} +17 -17
- package/dist/chunks/{host-ISKJDJ7B.js → host-SX3QC5FN.js} +10 -10
- package/dist/chunks/host-queries-HBW7AW44.js +37 -0
- package/dist/chunks/{installed-list-GPVOP4E3.js → installed-list-44QXUJFE.js} +4 -4
- package/dist/chunks/{learn-AFNJQGOU.js → learn-LW4DLSGZ.js} +17 -17
- package/dist/chunks/{learn-builtin-LUD6XO6W.js → learn-builtin-4RV2XDH4.js} +22 -21
- package/dist/chunks/{learn-builtin-LUD6XO6W.js.map → learn-builtin-4RV2XDH4.js.map} +1 -1
- package/dist/chunks/{lifecycle-TCRMEVJP.js → lifecycle-AJCHTSAF.js} +33 -32
- package/dist/chunks/list-DT7AJVPX.js +56 -0
- package/dist/chunks/{live-LJ76XHPK.js → live-Z6HZFXPW.js} +40 -39
- package/dist/chunks/{load-2ERMTCD4.js → load-454TJBPW.js} +9 -9
- package/dist/chunks/{logs-DV6GC7PT.js → logs-GRUSUSL7.js} +5 -5
- package/dist/chunks/{mcp-5VV24FGZ.js → mcp-AFLRDYNN.js} +21 -21
- package/dist/chunks/{mcp-serve-TT4Q7V55.js → mcp-serve-NNWP4IES.js} +18 -18
- package/dist/chunks/{message-command-6RHBI3R4.js → message-command-ZR2JQBBU.js} +58 -55
- package/dist/chunks/message-command-ZR2JQBBU.js.map +6 -0
- package/dist/chunks/{open-3VUS3XWX.js → open-Z3BELFL7.js} +7 -7
- package/dist/chunks/{operator-tools-BZ5X5ZDE.js → operator-tools-PN3SPQ3C.js} +15 -15
- package/dist/chunks/{output-schema-2GHHC5ZZ.js → output-schema-DSR56W6A.js} +3 -3
- package/dist/chunks/{pal-TT7X5JF3.js → pal-ZOH5ILEV.js} +15 -15
- package/dist/chunks/{peers-SLFOET3O.js → peers-LXNB4QSL.js} +7 -7
- package/dist/chunks/{peers-SJFCJTA6.js → peers-WINODTEB.js} +85 -33
- package/dist/chunks/peers-WINODTEB.js.map +6 -0
- package/dist/chunks/{plugin-I35EQ4CC.js → plugin-MLHZ42NZ.js} +18 -17
- package/dist/chunks/plugin-MLHZ42NZ.js.map +6 -0
- package/dist/chunks/{providers-SOFGNZ4F.js → providers-AVECY67I.js} +10 -10
- package/dist/chunks/{providers-MX47EUPL.js → providers-UOTUEQOJ.js} +17 -17
- package/dist/chunks/{pty-3T7AE7ZA.js → pty-GW2YC23H.js} +3 -3
- package/dist/chunks/resume-AYWSKWEX.js +25 -0
- package/dist/chunks/{resume-command-H4FOREZO.js → resume-command-FXT3KGLC.js} +5 -5
- package/dist/chunks/{running-NONPWC5C.js → running-3NLAODZ7.js} +4 -4
- package/dist/chunks/{schedule-BWR4NKGX.js → schedule-TTQUT45H.js} +75 -33
- package/dist/chunks/schedule-TTQUT45H.js.map +6 -0
- package/dist/chunks/{send-H27WTBLZ.js → send-FRNTRW2M.js} +19 -18
- package/dist/chunks/send-person-57F5RJA7.js +32 -0
- package/dist/chunks/{service-NVOIN2MV.js → service-TCKPUGL5.js} +457 -80
- package/dist/chunks/service-TCKPUGL5.js.map +6 -0
- package/dist/chunks/{setting-cli-ETVPDSRA.js → setting-cli-HGYOIGC6.js} +12 -12
- package/dist/chunks/{skills-XAONTP56.js → skills-ICVGYWBH.js} +24 -23
- package/dist/chunks/skills-ICVGYWBH.js.map +6 -0
- package/dist/chunks/{start-check-A5FG7224.js → start-check-C5VJXVPY.js} +2 -2
- package/dist/chunks/{startup-failure-6MZNIJXI.js → startup-failure-YQSEQRNQ.js} +2 -2
- package/dist/chunks/{state-MVYWWBAA.js → state-2DBTSDEP.js} +25 -23
- package/dist/chunks/state-2DBTSDEP.js.map +6 -0
- package/dist/chunks/{store-5K5HIPUT.js → store-CZGKLVTT.js} +12 -12
- package/dist/chunks/{store-6WG6CRWK.js → store-JJKCDY7Y.js} +6 -4
- package/dist/chunks/store-JJKCDY7Y.js.map +6 -0
- package/dist/chunks/{store-UPAOLS5B.js → store-RJZCW2MI.js} +8 -8
- package/dist/chunks/store-RJZCW2MI.js.map +6 -0
- package/dist/chunks/{store-4PPSKMYT.js → store-S4BT3ESJ.js} +3 -3
- package/dist/chunks/store-S4BT3ESJ.js.map +6 -0
- package/dist/chunks/{tui-MRMMX2TV.js → tui-Q7ED7VFI.js} +98 -92
- package/dist/chunks/tui-Q7ED7VFI.js.map +6 -0
- package/dist/chunks/{update-RMHLR4LI.js → update-G7D3YCH5.js} +8 -8
- package/dist/chunks/{watch-3QQJ4XHX.js → watch-EON3IWRY.js} +102 -96
- package/dist/chunks/watch-EON3IWRY.js.map +6 -0
- package/dist/chunks/{workspaces-HEA2VNIH.js → workspaces-O6S2OTDL.js} +15 -15
- package/dist/chunks/{worktree-NAVT42R4.js → worktree-A2DNXLOT.js} +21 -21
- package/dist/cli.d.ts.map +1 -1
- package/dist/commands/acp-desktop-question.d.ts +10 -7
- package/dist/commands/acp-desktop-question.d.ts.map +1 -1
- package/dist/commands/acp-screen-question.d.ts +6 -1
- package/dist/commands/acp-screen-question.d.ts.map +1 -1
- package/dist/commands/acp.d.ts +7 -0
- package/dist/commands/acp.d.ts.map +1 -1
- package/dist/commands/actions/schedule.d.ts.map +1 -1
- package/dist/commands/desktop-host.d.ts +3 -0
- package/dist/commands/desktop-host.d.ts.map +1 -1
- package/dist/commands/drain.d.ts.map +1 -1
- package/dist/commands/exec-json.d.ts.map +1 -1
- package/dist/commands/exec.d.ts.map +1 -1
- package/dist/commands/launch-extras.d.ts +1 -0
- package/dist/commands/launch-extras.d.ts.map +1 -1
- package/dist/commands/learn-builtin.d.ts.map +1 -1
- package/dist/commands/peers.d.ts +9 -1
- package/dist/commands/peers.d.ts.map +1 -1
- package/dist/commands/permission-preview.d.ts +2 -0
- package/dist/commands/permission-preview.d.ts.map +1 -1
- package/dist/commands/schedule.d.ts.map +1 -1
- package/dist/config/hook-common-shape.d.ts.map +1 -1
- package/dist/config/load.d.ts +3 -0
- package/dist/config/load.d.ts.map +1 -1
- package/dist/config/schema.d.ts +68 -0
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/config/session-options.d.ts +1 -1
- package/dist/config/session-options.d.ts.map +1 -1
- package/dist/config/settings-descriptors.d.ts.map +1 -1
- package/dist/config/skill-hooks-reader.d.ts.map +1 -1
- package/dist/context/environment.d.ts +9 -0
- package/dist/context/environment.d.ts.map +1 -1
- package/dist/exit-process.d.ts +3 -0
- package/dist/exit-process.d.ts.map +1 -0
- package/dist/flush-stdio.d.ts +8 -0
- package/dist/flush-stdio.d.ts.map +1 -0
- package/dist/index.js +41 -40
- package/dist/integrations/decision/routing.d.ts +8 -0
- package/dist/integrations/decision/routing.d.ts.map +1 -1
- package/dist/integrations/extensions/host.d.ts.map +1 -1
- package/dist/integrations/extensions/query.d.ts +10 -0
- package/dist/integrations/extensions/query.d.ts.map +1 -1
- package/dist/integrations/extensions/supervisor.d.ts +14 -0
- package/dist/integrations/extensions/supervisor.d.ts.map +1 -1
- package/dist/integrations/images/generate-image.d.ts +47 -0
- package/dist/integrations/images/generate-image.d.ts.map +1 -0
- package/dist/integrations/images/image-access.d.ts +20 -0
- package/dist/integrations/images/image-access.d.ts.map +1 -0
- package/dist/integrations/mcp/servers.d.ts +36 -1
- package/dist/integrations/mcp/servers.d.ts.map +1 -1
- package/dist/integrations/network/computer-secret.d.ts +11 -0
- package/dist/integrations/network/computer-secret.d.ts.map +1 -0
- package/dist/integrations/network/format.d.ts +13 -9
- package/dist/integrations/network/format.d.ts.map +1 -1
- package/dist/integrations/network/policy.d.ts.map +1 -1
- package/dist/integrations/network/runtime.d.ts +2 -0
- package/dist/integrations/network/runtime.d.ts.map +1 -1
- package/dist/integrations/network/session-list.d.ts +77 -0
- package/dist/integrations/network/session-list.d.ts.map +1 -0
- package/dist/integrations/network/types.d.ts +3 -1
- package/dist/integrations/network/types.d.ts.map +1 -1
- package/dist/integrations/peers/runtime.d.ts +1 -0
- package/dist/integrations/peers/runtime.d.ts.map +1 -1
- package/dist/integrations/peers/send-once.d.ts +14 -3
- package/dist/integrations/peers/send-once.d.ts.map +1 -1
- package/dist/integrations/plugins/lifecycle-events.d.ts +10 -0
- package/dist/integrations/plugins/lifecycle-events.d.ts.map +1 -1
- package/dist/integrations/providers/harness-credentials.d.ts +5 -0
- package/dist/integrations/providers/harness-credentials.d.ts.map +1 -1
- package/dist/integrations/state/purge.d.ts.map +1 -1
- package/dist/integrations/subagents/activity.d.ts +20 -1
- package/dist/integrations/subagents/activity.d.ts.map +1 -1
- package/dist/integrations/subagents/agent-hooks.d.ts.map +1 -1
- package/dist/integrations/subagents/agent-names.d.ts +10 -6
- package/dist/integrations/subagents/agent-names.d.ts.map +1 -1
- package/dist/integrations/subagents/definitions.d.ts +8 -0
- package/dist/integrations/subagents/definitions.d.ts.map +1 -1
- package/dist/integrations/subagents/runtime.d.ts +41 -1
- package/dist/integrations/subagents/runtime.d.ts.map +1 -1
- package/dist/integrations/teams/colors.d.ts +31 -0
- package/dist/integrations/teams/colors.d.ts.map +1 -0
- package/dist/integrations/teams/enabled.d.ts +44 -0
- package/dist/integrations/teams/enabled.d.ts.map +1 -0
- package/dist/integrations/teams/host.d.ts +15 -0
- package/dist/integrations/teams/host.d.ts.map +1 -0
- package/dist/integrations/teams/runner.d.ts +278 -0
- package/dist/integrations/teams/runner.d.ts.map +1 -0
- package/dist/integrations/teams/view.d.ts +62 -0
- package/dist/integrations/teams/view.d.ts.map +1 -0
- package/dist/pals/agent-session.d.ts.map +1 -1
- package/dist/pals/dispatch.d.ts.map +1 -1
- package/dist/schedule/commands/list.d.ts.map +1 -1
- package/dist/schedule/commands/service.d.ts +8 -0
- package/dist/schedule/commands/service.d.ts.map +1 -1
- package/dist/schedule/fire/fire.d.ts.map +1 -1
- package/dist/schedule/folder.d.ts +8 -1
- package/dist/schedule/folder.d.ts.map +1 -1
- package/dist/schedule/policy.d.ts.map +1 -1
- package/dist/schedule/service/homes.d.ts +56 -0
- package/dist/schedule/service/homes.d.ts.map +1 -0
- package/dist/schedule/service/move.d.ts +48 -0
- package/dist/schedule/service/move.d.ts.map +1 -0
- package/dist/schedule/service/names.d.ts +2 -1
- package/dist/schedule/service/names.d.ts.map +1 -1
- package/dist/schedule/service/registry.d.ts +6 -0
- package/dist/schedule/service/registry.d.ts.map +1 -1
- package/dist/schedule/service/target.d.ts +3 -1
- package/dist/schedule/service/target.d.ts.map +1 -1
- package/dist/skills/catalog.d.ts +7 -0
- package/dist/skills/catalog.d.ts.map +1 -1
- package/dist/skills/directory.d.ts.map +1 -1
- package/dist/skills/retired.d.ts +19 -0
- package/dist/skills/retired.d.ts.map +1 -0
- package/dist/skills/save-card.d.ts +42 -0
- package/dist/skills/save-card.d.ts.map +1 -0
- package/dist/skills/save.d.ts +25 -1
- package/dist/skills/save.d.ts.map +1 -1
- package/dist/skills/skill-hooks.d.ts +2 -2
- package/dist/skills/skill-hooks.d.ts.map +1 -1
- package/dist/skills/skill-shell.d.ts +99 -0
- package/dist/skills/skill-shell.d.ts.map +1 -0
- package/dist/skills/store.d.ts +7 -0
- package/dist/skills/store.d.ts.map +1 -1
- package/dist/skills/typed-command-load.d.ts +45 -0
- package/dist/skills/typed-command-load.d.ts.map +1 -0
- package/dist/tui/AgentExplorer.d.ts +73 -8
- package/dist/tui/AgentExplorer.d.ts.map +1 -1
- package/dist/tui/App.d.ts.map +1 -1
- package/dist/tui/Checklist.d.ts +12 -0
- package/dist/tui/Checklist.d.ts.map +1 -1
- package/dist/tui/Composer.d.ts +6 -1
- package/dist/tui/Composer.d.ts.map +1 -1
- package/dist/tui/CopyPicker.d.ts +1 -3
- package/dist/tui/CopyPicker.d.ts.map +1 -1
- package/dist/tui/Markdown.d.ts +7 -1
- package/dist/tui/Markdown.d.ts.map +1 -1
- package/dist/tui/PermissionOverlay.d.ts +8 -1
- package/dist/tui/PermissionOverlay.d.ts.map +1 -1
- package/dist/tui/ScheduleReviewOverlay.d.ts +2 -0
- package/dist/tui/ScheduleReviewOverlay.d.ts.map +1 -1
- package/dist/tui/TaskList.d.ts +6 -2
- package/dist/tui/TaskList.d.ts.map +1 -1
- package/dist/tui/Transcript.d.ts.map +1 -1
- package/dist/tui/agent-transcript-rows.d.ts +4 -0
- package/dist/tui/agent-transcript-rows.d.ts.map +1 -1
- package/dist/tui/agent.d.ts +86 -3
- package/dist/tui/agent.d.ts.map +1 -1
- package/dist/tui/box-rows.d.ts +35 -0
- package/dist/tui/box-rows.d.ts.map +1 -0
- package/dist/tui/computer-use-screen-approval.d.ts +18 -0
- package/dist/tui/computer-use-screen-approval.d.ts.map +1 -1
- package/dist/tui/copy-targets.d.ts +0 -13
- package/dist/tui/copy-targets.d.ts.map +1 -1
- package/dist/tui/generated-image-rows.d.ts +12 -0
- package/dist/tui/generated-image-rows.d.ts.map +1 -0
- package/dist/tui/markdown-wrap.d.ts +4 -0
- package/dist/tui/markdown-wrap.d.ts.map +1 -1
- package/dist/tui/permission-asks.d.ts +7 -0
- package/dist/tui/permission-asks.d.ts.map +1 -1
- package/dist/tui/permission-review.d.ts.map +1 -1
- package/dist/tui/resize-settle.d.ts +26 -0
- package/dist/tui/resize-settle.d.ts.map +1 -0
- package/dist/tui/restored-rows.d.ts +5 -1
- package/dist/tui/restored-rows.d.ts.map +1 -1
- package/dist/tui/schedule/host-commands.d.ts.map +1 -1
- package/dist/tui/shell-expansion-slot.d.ts +30 -0
- package/dist/tui/shell-expansion-slot.d.ts.map +1 -0
- package/dist/tui/slashCommands.d.ts +8 -5
- package/dist/tui/slashCommands.d.ts.map +1 -1
- package/dist/tui/team-rows.d.ts +98 -0
- package/dist/tui/team-rows.d.ts.map +1 -0
- package/dist/tui/team-view.d.ts +169 -0
- package/dist/tui/team-view.d.ts.map +1 -0
- package/dist/tui/tidy-tool-output.d.ts.map +1 -1
- package/dist/tui/tool-end-rows.d.ts +1 -2
- package/dist/tui/tool-end-rows.d.ts.map +1 -1
- package/dist/tui/types.d.ts +24 -1
- package/dist/tui/types.d.ts.map +1 -1
- package/dist/user-commands/mcp-skill-commands.d.ts +21 -0
- package/dist/user-commands/mcp-skill-commands.d.ts.map +1 -0
- package/dist/user-commands/store.d.ts +24 -0
- package/dist/user-commands/store.d.ts.map +1 -1
- package/package.json +5 -5
- package/skills/README.md +14 -3
- package/skills/batch/SKILL.md +53 -0
- package/skills/commit/SKILL.md +46 -0
- package/skills/debug/SKILL.md +47 -0
- package/skills/deep-research/SKILL.md +102 -0
- package/skills/document/SKILL.md +20 -9
- package/skills/fewer-permission-prompts/SKILL.md +58 -0
- package/skills/pdf/SKILL.md +93 -0
- package/skills/pr/SKILL.md +50 -0
- package/skills/review-changes/SKILL.md +1 -1
- package/skills/run/SKILL.md +179 -0
- package/skills/run-skill-generator/SKILL.md +144 -0
- package/skills/security-review/SKILL.md +48 -0
- package/skills/simplify/SKILL.md +52 -0
- package/skills/skill-creator/SKILL.md +15 -6
- package/skills/update-config/SKILL.md +75 -0
- package/dist/chunks/acp-OZG7H75P.js.map +0 -6
- package/dist/chunks/add-DKSV5Y3C.js.map +0 -6
- package/dist/chunks/agent-session-VCB6HX3E.js +0 -89
- package/dist/chunks/bin-main-2E6XD7MQ.js.map +0 -6
- package/dist/chunks/chunk-5COLG33E.js.map +0 -6
- package/dist/chunks/chunk-6A4RDHHY.js +0 -10
- package/dist/chunks/chunk-6A4RDHHY.js.map +0 -6
- package/dist/chunks/chunk-6MMKNZYL.js.map +0 -6
- package/dist/chunks/chunk-774DAIPO.js.map +0 -6
- package/dist/chunks/chunk-7LCU5IKH.js.map +0 -6
- package/dist/chunks/chunk-7NQLCFYX.js.map +0 -6
- package/dist/chunks/chunk-EOLXS2ZV.js.map +0 -6
- package/dist/chunks/chunk-ESHAWCBR.js.map +0 -6
- package/dist/chunks/chunk-G7UGGWOR.js.map +0 -6
- package/dist/chunks/chunk-GLZJBFDO.js.map +0 -6
- package/dist/chunks/chunk-HONSYTUC.js.map +0 -6
- package/dist/chunks/chunk-HRKY4ARS.js.map +0 -6
- package/dist/chunks/chunk-JSY23B3Q.js.map +0 -6
- package/dist/chunks/chunk-L5FCGDB7.js.map +0 -6
- package/dist/chunks/chunk-LRUY5C6H.js.map +0 -6
- package/dist/chunks/chunk-MJ32RCFZ.js.map +0 -6
- package/dist/chunks/chunk-MOY2OERC.js.map +0 -6
- package/dist/chunks/chunk-MX3U5TBQ.js.map +0 -6
- package/dist/chunks/chunk-OD2PMTXS.js.map +0 -6
- package/dist/chunks/chunk-OY3UN3KD.js.map +0 -6
- package/dist/chunks/chunk-RR7FS6SQ.js.map +0 -6
- package/dist/chunks/chunk-TL535OCL.js.map +0 -6
- package/dist/chunks/chunk-U4DBETHR.js.map +0 -6
- package/dist/chunks/chunk-ZDMI3JSL.js.map +0 -6
- package/dist/chunks/dist-5G52QS75.js.map +0 -6
- package/dist/chunks/exec-HWK44ZYI.js.map +0 -6
- package/dist/chunks/host-queries-CUG75GYD.js +0 -37
- package/dist/chunks/list-4OJNF5N2.js.map +0 -6
- package/dist/chunks/message-command-6RHBI3R4.js.map +0 -6
- package/dist/chunks/peers-SJFCJTA6.js.map +0 -6
- package/dist/chunks/plugin-I35EQ4CC.js.map +0 -6
- package/dist/chunks/resume-5JACRBQO.js +0 -25
- package/dist/chunks/schedule-BWR4NKGX.js.map +0 -6
- package/dist/chunks/send-person-NNGL2U4H.js +0 -31
- package/dist/chunks/service-NVOIN2MV.js.map +0 -6
- package/dist/chunks/skills-XAONTP56.js.map +0 -6
- package/dist/chunks/state-MVYWWBAA.js.map +0 -6
- package/dist/chunks/tui-MRMMX2TV.js.map +0 -6
- package/dist/chunks/watch-3QQJ4XHX.js.map +0 -6
- package/skills/verify-change/SKILL.md +0 -64
- /package/dist/chunks/{activity-command-ZROH53CS.js.map → activity-command-Y3A6GIFW.js.map} +0 -0
- /package/dist/chunks/{agent-MSSMOEBP.js.map → agent-Z6PJYBAO.js.map} +0 -0
- /package/dist/chunks/{agent-session-VCB6HX3E.js.map → agent-session-WXWW7E5M.js.map} +0 -0
- /package/dist/chunks/{apply-at-exit-Z34ZOT4A.js.map → apply-at-exit-SHGR2BAB.js.map} +0 -0
- /package/dist/chunks/{archive-UMNSALTJ.js.map → archive-KYXU4AZZ.js.map} +0 -0
- /package/dist/chunks/{auth-2NEDWCS7.js.map → auth-R3RCZZ7U.js.map} +0 -0
- /package/dist/chunks/{binding-NAPEU62B.js.map → binding-5UJYMFMU.js.map} +0 -0
- /package/dist/chunks/{browser-M7U6GZOY.js.map → browser-7CFZ6BZS.js.map} +0 -0
- /package/dist/chunks/{chat-34SAREPI.js.map → chat-BELD32ZP.js.map} +0 -0
- /package/dist/chunks/{chunk-O6C4RETO.js.map → chunk-23D5IXMW.js.map} +0 -0
- /package/dist/chunks/{chunk-O6EDUJ77.js.map → chunk-24EZWZDZ.js.map} +0 -0
- /package/dist/chunks/{chunk-7NAHUZAR.js.map → chunk-2EVP6BX4.js.map} +0 -0
- /package/dist/chunks/{chunk-5NIQMCRF.js.map → chunk-2KC52MDS.js.map} +0 -0
- /package/dist/chunks/{chunk-6RBEIDSC.js.map → chunk-2VP2Q657.js.map} +0 -0
- /package/dist/chunks/{chunk-2PRVGX6U.js.map → chunk-3ETXWTV4.js.map} +0 -0
- /package/dist/chunks/{chunk-WEPINZBQ.js.map → chunk-3PH6F6Z3.js.map} +0 -0
- /package/dist/chunks/{chunk-I5BNXO63.js.map → chunk-4RW7GDJ4.js.map} +0 -0
- /package/dist/chunks/{chunk-2D5WW5KP.js.map → chunk-4TJ7AGQO.js.map} +0 -0
- /package/dist/chunks/{chunk-J4GPHTRN.js.map → chunk-567CSU37.js.map} +0 -0
- /package/dist/chunks/{chunk-UMPJ4VXN.js.map → chunk-5HMJ3DYR.js.map} +0 -0
- /package/dist/chunks/{chunk-TSU4F6DF.js.map → chunk-6CSJRIUZ.js.map} +0 -0
- /package/dist/chunks/{chunk-FJG7JN4W.js.map → chunk-6YXHH5JW.js.map} +0 -0
- /package/dist/chunks/{chunk-6ZWEKSAV.js.map → chunk-7J23SPSX.js.map} +0 -0
- /package/dist/chunks/{chunk-K7ZQYJJE.js.map → chunk-7Y4RR47U.js.map} +0 -0
- /package/dist/chunks/{chunk-655EBPZH.js.map → chunk-ABKURT35.js.map} +0 -0
- /package/dist/chunks/{chunk-66DFXMZG.js.map → chunk-AEXGGJUW.js.map} +0 -0
- /package/dist/chunks/{chunk-IH2JBJ6I.js.map → chunk-AIQKSTVJ.js.map} +0 -0
- /package/dist/chunks/{chunk-7BXJPOEG.js.map → chunk-CEZW3NVM.js.map} +0 -0
- /package/dist/chunks/{chunk-K5VLCRHY.js.map → chunk-CG5CGXNF.js.map} +0 -0
- /package/dist/chunks/{chunk-UBGDYBSQ.js.map → chunk-CNSKJ3DZ.js.map} +0 -0
- /package/dist/chunks/{chunk-6V4VYVRZ.js.map → chunk-CQFWLYTK.js.map} +0 -0
- /package/dist/chunks/{chunk-XQZMTH3S.js.map → chunk-D35UCVTK.js.map} +0 -0
- /package/dist/chunks/{chunk-URZPVSHV.js.map → chunk-DGYMR4WJ.js.map} +0 -0
- /package/dist/chunks/{chunk-BATWKQWV.js.map → chunk-DJKWBSVM.js.map} +0 -0
- /package/dist/chunks/{chunk-7BSLOLTU.js.map → chunk-DJTCZSSY.js.map} +0 -0
- /package/dist/chunks/{chunk-JFA2XPTW.js.map → chunk-DKSFQRUM.js.map} +0 -0
- /package/dist/chunks/{chunk-LM2OGSW5.js.map → chunk-DRWJTADQ.js.map} +0 -0
- /package/dist/chunks/{chunk-6QQVZXUE.js.map → chunk-E4RVHFV6.js.map} +0 -0
- /package/dist/chunks/{chunk-XWP64X6U.js.map → chunk-E65IWYTT.js.map} +0 -0
- /package/dist/chunks/{chunk-EFWF72V4.js.map → chunk-EA6YICQ7.js.map} +0 -0
- /package/dist/chunks/{chunk-JR6EFL7G.js.map → chunk-EGGO56FY.js.map} +0 -0
- /package/dist/chunks/{chunk-ENNAZGUX.js.map → chunk-ESIICAI3.js.map} +0 -0
- /package/dist/chunks/{chunk-NQYOMRPT.js.map → chunk-FEOS7UZ2.js.map} +0 -0
- /package/dist/chunks/{chunk-TAIC3PC2.js.map → chunk-FMQCPAKR.js.map} +0 -0
- /package/dist/chunks/{chunk-5564PCLT.js.map → chunk-FRGOWO6N.js.map} +0 -0
- /package/dist/chunks/{chunk-4WLMPRGO.js.map → chunk-G5LPTLLY.js.map} +0 -0
- /package/dist/chunks/{chunk-32CPPPKX.js.map → chunk-GEVWZWLM.js.map} +0 -0
- /package/dist/chunks/{chunk-P6RYPNSD.js.map → chunk-GQ6WXY3M.js.map} +0 -0
- /package/dist/chunks/{chunk-NO3F3QQ3.js.map → chunk-HW2QBNAA.js.map} +0 -0
- /package/dist/chunks/{chunk-2GKFWJ3O.js.map → chunk-IJ6Z6FNY.js.map} +0 -0
- /package/dist/chunks/{chunk-52DZTN4C.js.map → chunk-IRAG3YXW.js.map} +0 -0
- /package/dist/chunks/{chunk-PYTTGYZS.js.map → chunk-J5E4DV6R.js.map} +0 -0
- /package/dist/chunks/{chunk-A5O5VTQM.js.map → chunk-JPM3JXZB.js.map} +0 -0
- /package/dist/chunks/{chunk-TXMWKHYW.js.map → chunk-JRWUIW4J.js.map} +0 -0
- /package/dist/chunks/{chunk-L4LGUBYZ.js.map → chunk-JZTTOZRG.js.map} +0 -0
- /package/dist/chunks/{chunk-TJAUF5NX.js.map → chunk-KBLYZ7L7.js.map} +0 -0
- /package/dist/chunks/{chunk-3SBROSVS.js.map → chunk-KETRBV2E.js.map} +0 -0
- /package/dist/chunks/{chunk-KCBOIL5Q.js.map → chunk-KPOOM7QT.js.map} +0 -0
- /package/dist/chunks/{chunk-7DERK6IR.js.map → chunk-KVNL7XA6.js.map} +0 -0
- /package/dist/chunks/{chunk-MJJA277Z.js.map → chunk-LB4HC5U7.js.map} +0 -0
- /package/dist/chunks/{chunk-7EASTT3H.js.map → chunk-LWJJDERP.js.map} +0 -0
- /package/dist/chunks/{chunk-ADLNBLRA.js.map → chunk-LXJW3ZYI.js.map} +0 -0
- /package/dist/chunks/{chunk-SEVORRUA.js.map → chunk-MDVYEFTI.js.map} +0 -0
- /package/dist/chunks/{chunk-OGEOUETU.js.map → chunk-MF57EX7H.js.map} +0 -0
- /package/dist/chunks/{chunk-DIBXZBOP.js.map → chunk-MF5KTVGJ.js.map} +0 -0
- /package/dist/chunks/{chunk-27ICMJVV.js.map → chunk-O2PZDA5H.js.map} +0 -0
- /package/dist/chunks/{chunk-HBGRWJU5.js.map → chunk-OA7QKUCM.js.map} +0 -0
- /package/dist/chunks/{chunk-KIWLK2WZ.js.map → chunk-OH7EYW3T.js.map} +0 -0
- /package/dist/chunks/{chunk-HICZARAY.js.map → chunk-P4TCLMD6.js.map} +0 -0
- /package/dist/chunks/{chunk-GVLU2YM7.js.map → chunk-P725GKKG.js.map} +0 -0
- /package/dist/chunks/{chunk-7MYLYFIV.js.map → chunk-PFVYYH6O.js.map} +0 -0
- /package/dist/chunks/{chunk-Y3NC6RIL.js.map → chunk-PKFXIWVX.js.map} +0 -0
- /package/dist/chunks/{chunk-NBJ4OTXL.js.map → chunk-PQT7624W.js.map} +0 -0
- /package/dist/chunks/{chunk-ULFR2FWA.js.map → chunk-QTHG6UPU.js.map} +0 -0
- /package/dist/chunks/{chunk-JX6O7Y55.js.map → chunk-QZTTIL3A.js.map} +0 -0
- /package/dist/chunks/{chunk-CSO7BHDJ.js.map → chunk-RZKIZTPA.js.map} +0 -0
- /package/dist/chunks/{chunk-5WS5Q2KW.js.map → chunk-S7FE35WQ.js.map} +0 -0
- /package/dist/chunks/{chunk-RTMX7IDM.js.map → chunk-SS6IJAPA.js.map} +0 -0
- /package/dist/chunks/{chunk-2QJNPJOC.js.map → chunk-SSPHAILP.js.map} +0 -0
- /package/dist/chunks/{chunk-UXLQNJDR.js.map → chunk-TORIEDBN.js.map} +0 -0
- /package/dist/chunks/{chunk-FZPIEOFR.js.map → chunk-TRRKG642.js.map} +0 -0
- /package/dist/chunks/{chunk-2J2Z6S3V.js.map → chunk-UFGLSUGU.js.map} +0 -0
- /package/dist/chunks/{chunk-4RCXY7WO.js.map → chunk-VE4XIWDW.js.map} +0 -0
- /package/dist/chunks/{chunk-D42SQGEO.js.map → chunk-VJHENTNB.js.map} +0 -0
- /package/dist/chunks/{chunk-DZA7UXA2.js.map → chunk-VL6Z2OMG.js.map} +0 -0
- /package/dist/chunks/{chunk-YEWJVAM4.js.map → chunk-VSNV3U2B.js.map} +0 -0
- /package/dist/chunks/{chunk-F6NUMURW.js.map → chunk-W752G3FM.js.map} +0 -0
- /package/dist/chunks/{chunk-NFTQDITK.js.map → chunk-XJALHM5Z.js.map} +0 -0
- /package/dist/chunks/{chunk-S4OEUN6F.js.map → chunk-XLXPPVUT.js.map} +0 -0
- /package/dist/chunks/{chunk-7ROZ2N57.js.map → chunk-XVOPQCPD.js.map} +0 -0
- /package/dist/chunks/{chunk-CK47DTW6.js.map → chunk-YNWPC3HO.js.map} +0 -0
- /package/dist/chunks/{chunk-4YQJ262B.js.map → chunk-ZQGCZYAE.js.map} +0 -0
- /package/dist/chunks/{cli-runtime-BLOWAO6Q.js.map → cli-runtime-P6LCHPBA.js.map} +0 -0
- /package/dist/chunks/{commands-VWBRELWZ.js.map → commands-BNHIQVYO.js.map} +0 -0
- /package/dist/chunks/{config-77NN5LSS.js.map → config-ZMXMX2WY.js.map} +0 -0
- /package/dist/chunks/{cost-IVLAFD5T.js.map → cost-BJKADKEZ.js.map} +0 -0
- /package/dist/chunks/{crash-report-CA3Y7LA6.js.map → crash-report-OJHGVRD7.js.map} +0 -0
- /package/dist/chunks/{dist-7BSYEFE5.js.map → dist-43XWK3LF.js.map} +0 -0
- /package/dist/chunks/{dist-AM6FWCIJ.js.map → dist-4LEGETQA.js.map} +0 -0
- /package/dist/chunks/{doctor-FGOCO7UR.js.map → dist-4ZPDHZOX.js.map} +0 -0
- /package/dist/chunks/{dist-V43PPTPF.js.map → dist-ADQAO5C3.js.map} +0 -0
- /package/dist/chunks/{dist-RDXEBTCL.js.map → dist-BGJEX527.js.map} +0 -0
- /package/dist/chunks/{dist-PBFZXU4L.js.map → dist-FMFNU4M3.js.map} +0 -0
- /package/dist/chunks/{dist-ISRJEZRF.js.map → dist-NCBDELMI.js.map} +0 -0
- /package/dist/chunks/{extension-BP7Q3PFK.js.map → doctor-AIYB27QY.js.map} +0 -0
- /package/dist/chunks/{entry-4LHTI3VQ.js.map → entry-HM5E7KCD.js.map} +0 -0
- /package/dist/chunks/{eval-IYWGGPWF.js.map → eval-H4NKZYVV.js.map} +0 -0
- /package/dist/chunks/{home-GR6YDAAE.js.map → extension-4233XOZW.js.map} +0 -0
- /package/dist/chunks/{hooks-report-H4JAHJXE.js.map → home-AZY7APF6.js.map} +0 -0
- /package/dist/chunks/{host-ISKJDJ7B.js.map → homes-WL6LAAY5.js.map} +0 -0
- /package/dist/chunks/{hooks-KSSNBDF2.js.map → hooks-AK5S4YUS.js.map} +0 -0
- /package/dist/chunks/{host-queries-CUG75GYD.js.map → hooks-report-NJLGBWN3.js.map} +0 -0
- /package/dist/chunks/{lifecycle-TCRMEVJP.js.map → host-SX3QC5FN.js.map} +0 -0
- /package/dist/chunks/{live-LJ76XHPK.js.map → host-queries-HBW7AW44.js.map} +0 -0
- /package/dist/chunks/{installed-list-GPVOP4E3.js.map → installed-list-44QXUJFE.js.map} +0 -0
- /package/dist/chunks/{learn-AFNJQGOU.js.map → learn-LW4DLSGZ.js.map} +0 -0
- /package/dist/chunks/{load-2ERMTCD4.js.map → lifecycle-AJCHTSAF.js.map} +0 -0
- /package/dist/chunks/{open-3VUS3XWX.js.map → list-DT7AJVPX.js.map} +0 -0
- /package/dist/chunks/{output-schema-2GHHC5ZZ.js.map → live-Z6HZFXPW.js.map} +0 -0
- /package/dist/chunks/{peers-SLFOET3O.js.map → load-454TJBPW.js.map} +0 -0
- /package/dist/chunks/{logs-DV6GC7PT.js.map → logs-GRUSUSL7.js.map} +0 -0
- /package/dist/chunks/{mcp-5VV24FGZ.js.map → mcp-AFLRDYNN.js.map} +0 -0
- /package/dist/chunks/{mcp-serve-TT4Q7V55.js.map → mcp-serve-NNWP4IES.js.map} +0 -0
- /package/dist/chunks/{providers-SOFGNZ4F.js.map → open-Z3BELFL7.js.map} +0 -0
- /package/dist/chunks/{operator-tools-BZ5X5ZDE.js.map → operator-tools-PN3SPQ3C.js.map} +0 -0
- /package/dist/chunks/{pty-3T7AE7ZA.js.map → output-schema-DSR56W6A.js.map} +0 -0
- /package/dist/chunks/{pal-TT7X5JF3.js.map → pal-ZOH5ILEV.js.map} +0 -0
- /package/dist/chunks/{resume-5JACRBQO.js.map → peers-LXNB4QSL.js.map} +0 -0
- /package/dist/chunks/{resume-command-H4FOREZO.js.map → providers-AVECY67I.js.map} +0 -0
- /package/dist/chunks/{providers-MX47EUPL.js.map → providers-UOTUEQOJ.js.map} +0 -0
- /package/dist/chunks/{running-NONPWC5C.js.map → pty-GW2YC23H.js.map} +0 -0
- /package/dist/chunks/{send-H27WTBLZ.js.map → resume-AYWSKWEX.js.map} +0 -0
- /package/dist/chunks/{send-person-NNGL2U4H.js.map → resume-command-FXT3KGLC.js.map} +0 -0
- /package/dist/chunks/{setting-cli-ETVPDSRA.js.map → running-3NLAODZ7.js.map} +0 -0
- /package/dist/chunks/{start-check-A5FG7224.js.map → send-FRNTRW2M.js.map} +0 -0
- /package/dist/chunks/{store-4PPSKMYT.js.map → send-person-57F5RJA7.js.map} +0 -0
- /package/dist/chunks/{store-5K5HIPUT.js.map → setting-cli-HGYOIGC6.js.map} +0 -0
- /package/dist/chunks/{store-6WG6CRWK.js.map → start-check-C5VJXVPY.js.map} +0 -0
- /package/dist/chunks/{startup-failure-6MZNIJXI.js.map → startup-failure-YQSEQRNQ.js.map} +0 -0
- /package/dist/chunks/{store-UPAOLS5B.js.map → store-CZGKLVTT.js.map} +0 -0
- /package/dist/chunks/{update-RMHLR4LI.js.map → update-G7D3YCH5.js.map} +0 -0
- /package/dist/chunks/{workspaces-HEA2VNIH.js.map → workspaces-O6S2OTDL.js.map} +0 -0
- /package/dist/chunks/{worktree-NAVT42R4.js.map → worktree-A2DNXLOT.js.map} +0 -0
|
@@ -1,32 +1,9 @@
|
|
|
1
1
|
import { createRequire as __namzuCreateRequire } from 'node:module';
|
|
2
2
|
const require = __namzuCreateRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
describeTaskResult,
|
|
5
|
-
displayName,
|
|
6
|
-
isEphemeralBin,
|
|
7
|
-
nameClash,
|
|
8
|
-
parseTaskQuery,
|
|
9
|
-
probeInterop,
|
|
10
|
-
readServiceIndexChecked,
|
|
11
|
-
recordService,
|
|
12
|
-
removeEmptyTaskFolderArguments,
|
|
13
|
-
removeServices,
|
|
14
|
-
systemdAssignment,
|
|
15
|
-
systemdWord,
|
|
16
|
-
taskPath,
|
|
17
|
-
taskXml,
|
|
18
|
-
taskXmlBytes,
|
|
19
|
-
toWindowsPath,
|
|
20
|
-
windowsTools,
|
|
21
|
-
windowsUser,
|
|
22
|
-
wslTaskDefinition,
|
|
23
|
-
wslTaskName,
|
|
24
|
-
xmlText
|
|
25
|
-
} from "./chunk-G7UGGWOR.js";
|
|
26
3
|
import {
|
|
27
4
|
selectDesktopBackend,
|
|
28
5
|
sendDesktopNotification
|
|
29
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-RZKIZTPA.js";
|
|
30
7
|
import {
|
|
31
8
|
ScheduleDaemon,
|
|
32
9
|
daemonLogPath,
|
|
@@ -40,66 +17,96 @@ import {
|
|
|
40
17
|
spawnFireProcess,
|
|
41
18
|
stopRequestPath,
|
|
42
19
|
writeRunResult
|
|
43
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-3RLKUXXG.js";
|
|
21
|
+
import "./chunk-TP7DRQXE.js";
|
|
44
22
|
import {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
23
|
+
callEndpoint,
|
|
24
|
+
readEndpoint
|
|
25
|
+
} from "./chunk-6YG7D7U4.js";
|
|
48
26
|
import "./chunk-OG2MLME3.js";
|
|
49
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-EA6YICQ7.js";
|
|
50
28
|
import {
|
|
51
29
|
flag,
|
|
52
30
|
has,
|
|
53
31
|
parseArgs,
|
|
54
32
|
parseMs,
|
|
55
33
|
pathsFor
|
|
56
|
-
} from "./chunk-
|
|
57
|
-
import "./chunk-
|
|
34
|
+
} from "./chunk-2KC52MDS.js";
|
|
35
|
+
import "./chunk-MDBUSIPW.js";
|
|
58
36
|
import {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
37
|
+
EXIT_STOP_REQUESTED,
|
|
38
|
+
defaultNamzuHome,
|
|
39
|
+
describeTaskResult,
|
|
40
|
+
displayName,
|
|
41
|
+
findService,
|
|
42
|
+
isEphemeralBin,
|
|
43
|
+
legacyBaseName,
|
|
44
|
+
matchService,
|
|
45
|
+
nameClash,
|
|
46
|
+
parseTaskQuery,
|
|
47
|
+
probeInterop,
|
|
48
|
+
readServiceIndexChecked,
|
|
49
|
+
recordService,
|
|
50
|
+
removeEmptyTaskFolderArguments,
|
|
51
|
+
removeServices,
|
|
52
|
+
serviceHomePath,
|
|
53
|
+
servicesRoot,
|
|
54
|
+
systemdAssignment,
|
|
55
|
+
systemdWord,
|
|
56
|
+
taskPath,
|
|
57
|
+
taskXml,
|
|
58
|
+
taskXmlBytes,
|
|
59
|
+
toWindowsPath,
|
|
60
|
+
windowsTools,
|
|
61
|
+
windowsUser,
|
|
62
|
+
wslTaskDefinition,
|
|
63
|
+
wslTaskName,
|
|
64
|
+
xmlText
|
|
65
|
+
} from "./chunk-7LDUPEXP.js";
|
|
62
66
|
import "./chunk-XEUQN4JC.js";
|
|
63
67
|
import {
|
|
64
68
|
parkedRunWords,
|
|
65
69
|
resumeCommand
|
|
66
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-6CSJRIUZ.js";
|
|
67
71
|
import {
|
|
68
72
|
readState
|
|
69
|
-
} from "./chunk-
|
|
70
|
-
import "./chunk-
|
|
71
|
-
import "./chunk-
|
|
73
|
+
} from "./chunk-LWJJDERP.js";
|
|
74
|
+
import "./chunk-LXJW3ZYI.js";
|
|
75
|
+
import "./chunk-KPOOM7QT.js";
|
|
72
76
|
import "./chunk-SD25ASC7.js";
|
|
73
|
-
import "./chunk-
|
|
74
|
-
import "./chunk-
|
|
75
|
-
import "./chunk-
|
|
76
|
-
import "./chunk-
|
|
77
|
-
import "./chunk-
|
|
77
|
+
import "./chunk-GEVWZWLM.js";
|
|
78
|
+
import "./chunk-OH7EYW3T.js";
|
|
79
|
+
import "./chunk-XJALHM5Z.js";
|
|
80
|
+
import "./chunk-5HMJ3DYR.js";
|
|
81
|
+
import "./chunk-CQFWLYTK.js";
|
|
78
82
|
import {
|
|
79
83
|
readManifest,
|
|
80
84
|
removeManifest,
|
|
81
85
|
writeManifest
|
|
82
86
|
} from "./chunk-AK2U3N2A.js";
|
|
83
87
|
import {
|
|
88
|
+
confirmationHolds,
|
|
84
89
|
listJobs
|
|
85
|
-
} from "./chunk-
|
|
86
|
-
import
|
|
90
|
+
} from "./chunk-EGGO56FY.js";
|
|
91
|
+
import {
|
|
92
|
+
writeJsonAtomic
|
|
93
|
+
} from "./chunk-OEW7CJKK.js";
|
|
87
94
|
import {
|
|
88
95
|
schedulePaths
|
|
89
96
|
} from "./chunk-A22MBIYU.js";
|
|
90
97
|
import "./chunk-JEW7RLYH.js";
|
|
91
98
|
import "./chunk-EDOJTQQU.js";
|
|
92
|
-
import "./chunk-
|
|
99
|
+
import "./chunk-3PH6F6Z3.js";
|
|
93
100
|
import {
|
|
94
101
|
CLI_VERSION
|
|
95
102
|
} from "./chunk-HE7WUOX2.js";
|
|
96
|
-
import "./chunk-
|
|
97
|
-
import "./chunk-
|
|
103
|
+
import "./chunk-HW2QBNAA.js";
|
|
104
|
+
import "./chunk-KBLYZ7L7.js";
|
|
98
105
|
import "./chunk-4QIWRKJO.js";
|
|
99
106
|
import "./chunk-KTPFUCRU.js";
|
|
100
107
|
import "./chunk-LPPFJYL6.js";
|
|
101
|
-
import "./chunk-
|
|
102
|
-
import "./chunk-
|
|
108
|
+
import "./chunk-4TJ7AGQO.js";
|
|
109
|
+
import "./chunk-O2PZDA5H.js";
|
|
103
110
|
import {
|
|
104
111
|
EXIT_NO_CONFIG,
|
|
105
112
|
EXIT_OK,
|
|
@@ -109,9 +116,9 @@ import {
|
|
|
109
116
|
import "./chunk-I4GTRFPK.js";
|
|
110
117
|
import {
|
|
111
118
|
loadBootstrapConfigWithProvenance
|
|
112
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-KHGY6QJR.js";
|
|
120
|
+
import "./chunk-ABKURT35.js";
|
|
113
121
|
import "./chunk-5WORROIE.js";
|
|
114
|
-
import "./chunk-655EBPZH.js";
|
|
115
122
|
import "./chunk-WMEZTDLT.js";
|
|
116
123
|
import "./chunk-LCGXWCVU.js";
|
|
117
124
|
import "./chunk-7YC42EXB.js";
|
|
@@ -121,28 +128,36 @@ import "./chunk-PJ6IEIKJ.js";
|
|
|
121
128
|
import {
|
|
122
129
|
cliLogger,
|
|
123
130
|
installCliLogging
|
|
124
|
-
} from "./chunk-
|
|
131
|
+
} from "./chunk-XVOPQCPD.js";
|
|
125
132
|
import "./chunk-G6YSAHKC.js";
|
|
126
133
|
import "./chunk-JORONMD3.js";
|
|
127
|
-
import "./chunk-
|
|
128
|
-
import "./chunk-
|
|
134
|
+
import "./chunk-PFVYYH6O.js";
|
|
135
|
+
import "./chunk-GUK47JTV.js";
|
|
136
|
+
import "./chunk-WRPEQ3KP.js";
|
|
129
137
|
import {
|
|
130
138
|
detectWsl
|
|
131
|
-
} from "./chunk-
|
|
132
|
-
import "./chunk-WRPEQ3KP.js";
|
|
139
|
+
} from "./chunk-44MFZJ24.js";
|
|
133
140
|
import "./chunk-A6RHRNY2.js";
|
|
134
|
-
import "./chunk-
|
|
141
|
+
import "./chunk-CG5CGXNF.js";
|
|
135
142
|
import "./chunk-U5UV2YRE.js";
|
|
136
143
|
import "./chunk-PHW6PWIJ.js";
|
|
137
|
-
import "./chunk-
|
|
144
|
+
import "./chunk-5JVKE4LB.js";
|
|
138
145
|
import {
|
|
139
146
|
__name
|
|
140
147
|
} from "./chunk-76FLAFCG.js";
|
|
141
148
|
|
|
142
149
|
// src/schedule/commands/service.ts
|
|
143
150
|
import { randomUUID } from "node:crypto";
|
|
144
|
-
import {
|
|
145
|
-
|
|
151
|
+
import {
|
|
152
|
+
existsSync as existsSync4,
|
|
153
|
+
mkdirSync as mkdirSync4,
|
|
154
|
+
readFileSync as readFileSync2,
|
|
155
|
+
realpathSync,
|
|
156
|
+
renameSync,
|
|
157
|
+
rmSync as rmSync4,
|
|
158
|
+
statSync as statSync2
|
|
159
|
+
} from "node:fs";
|
|
160
|
+
import { dirname as dirname4, join as join6, resolve as resolve3 } from "node:path";
|
|
146
161
|
import { fileURLToPath } from "node:url";
|
|
147
162
|
|
|
148
163
|
// src/schedule/service/detect.ts
|
|
@@ -678,30 +693,140 @@ async function stopService(ctx, manifest) {
|
|
|
678
693
|
}
|
|
679
694
|
__name(stopService, "stopService");
|
|
680
695
|
|
|
696
|
+
// src/schedule/service/move.ts
|
|
697
|
+
import { existsSync as existsSync3, readFileSync, readdirSync, statSync } from "node:fs";
|
|
698
|
+
import { basename, dirname as dirname3, join as join4, relative, resolve } from "node:path";
|
|
699
|
+
function scratchRootOf(home) {
|
|
700
|
+
const h = resolve(home);
|
|
701
|
+
return join4(dirname3(h), `${basename(h)}-schedule-workspaces`);
|
|
702
|
+
}
|
|
703
|
+
__name(scratchRootOf, "scratchRootOf");
|
|
704
|
+
function nearestExisting(path) {
|
|
705
|
+
let current = resolve(path);
|
|
706
|
+
while (!existsSync3(current)) {
|
|
707
|
+
const up = dirname3(current);
|
|
708
|
+
if (up === current) return current;
|
|
709
|
+
current = up;
|
|
710
|
+
}
|
|
711
|
+
return current;
|
|
712
|
+
}
|
|
713
|
+
__name(nearestExisting, "nearestExisting");
|
|
714
|
+
function sameFileSystem(a, b) {
|
|
715
|
+
try {
|
|
716
|
+
return statSync(nearestExisting(a)).dev === statSync(nearestExisting(b)).dev;
|
|
717
|
+
} catch {
|
|
718
|
+
return false;
|
|
719
|
+
}
|
|
720
|
+
}
|
|
721
|
+
__name(sameFileSystem, "sameFileSystem");
|
|
722
|
+
function underOld(path, oldScratch) {
|
|
723
|
+
return path === oldScratch || path.startsWith(`${oldScratch}/`) || path.startsWith(`${oldScratch}\\`);
|
|
724
|
+
}
|
|
725
|
+
__name(underOld, "underOld");
|
|
726
|
+
function rewriteJobPaths(paths, fromHome, toHome) {
|
|
727
|
+
const oldScratch = scratchRootOf(fromHome);
|
|
728
|
+
const newScratch = scratchRootOf(toHome);
|
|
729
|
+
const rewritten = [];
|
|
730
|
+
const needConfirming = [];
|
|
731
|
+
const stillConfirmed = [];
|
|
732
|
+
const problems = [];
|
|
733
|
+
for (const job of listJobs(paths).jobs) {
|
|
734
|
+
const held = confirmationHolds(job);
|
|
735
|
+
let next = job;
|
|
736
|
+
if (job.workspace === "none" && underOld(job.folder.path, oldScratch) && underOld(job.folder.canonical, oldScratch)) {
|
|
737
|
+
const swap = /* @__PURE__ */ __name((p) => join4(newScratch, relative(oldScratch, p)), "swap");
|
|
738
|
+
next = {
|
|
739
|
+
...job,
|
|
740
|
+
folder: {
|
|
741
|
+
...job.folder,
|
|
742
|
+
path: swap(job.folder.path),
|
|
743
|
+
canonical: swap(job.folder.canonical)
|
|
744
|
+
},
|
|
745
|
+
...job.trust ? { trust: { ...job.trust, canonical: swap(job.trust.canonical) } } : {}
|
|
746
|
+
};
|
|
747
|
+
try {
|
|
748
|
+
writeJsonAtomic(paths.job(job.id), next);
|
|
749
|
+
rewritten.push(job.name);
|
|
750
|
+
} catch (error) {
|
|
751
|
+
problems.push(
|
|
752
|
+
`${job.name}: the job file could not be rewritten (${error instanceof Error ? error.message : String(error)})`
|
|
753
|
+
);
|
|
754
|
+
continue;
|
|
755
|
+
}
|
|
756
|
+
}
|
|
757
|
+
if (!held) continue;
|
|
758
|
+
if (confirmationHolds(next)) stillConfirmed.push(job.name);
|
|
759
|
+
else needConfirming.push(job.name);
|
|
760
|
+
}
|
|
761
|
+
return { rewritten, needConfirming, stillConfirmed, problems };
|
|
762
|
+
}
|
|
763
|
+
__name(rewriteJobPaths, "rewriteJobPaths");
|
|
764
|
+
var SECRET_NAME = /(credential|secret|token|auth|keychain|\.env$|\.key$|\.pem$|^id_)/i;
|
|
765
|
+
var RECORD_DIRS = /* @__PURE__ */ new Set(["history", "runs", "log", "sessions", "node_modules", "claims"]);
|
|
766
|
+
var MAX_FILE_BYTES = 1024 * 1024;
|
|
767
|
+
var MAX_FILES = 5e3;
|
|
768
|
+
function filesMentioning(root, needle) {
|
|
769
|
+
const found = [];
|
|
770
|
+
let seen = 0;
|
|
771
|
+
const walk = /* @__PURE__ */ __name((dir) => {
|
|
772
|
+
let entries;
|
|
773
|
+
try {
|
|
774
|
+
entries = readdirSync(dir, { withFileTypes: true });
|
|
775
|
+
} catch {
|
|
776
|
+
return;
|
|
777
|
+
}
|
|
778
|
+
for (const entry of entries) {
|
|
779
|
+
if (seen > MAX_FILES) return;
|
|
780
|
+
const path = join4(dir, entry.name);
|
|
781
|
+
if (entry.isSymbolicLink()) continue;
|
|
782
|
+
if (entry.isDirectory()) {
|
|
783
|
+
if (!RECORD_DIRS.has(entry.name)) walk(path);
|
|
784
|
+
continue;
|
|
785
|
+
}
|
|
786
|
+
if (!entry.isFile() || !entry.name.endsWith(".json") || SECRET_NAME.test(entry.name)) continue;
|
|
787
|
+
seen++;
|
|
788
|
+
try {
|
|
789
|
+
if (statSync(path).size > MAX_FILE_BYTES) continue;
|
|
790
|
+
if (readFileSync(path, "utf8").includes(needle)) found.push(relative(root, path));
|
|
791
|
+
} catch {
|
|
792
|
+
}
|
|
793
|
+
}
|
|
794
|
+
}, "walk");
|
|
795
|
+
walk(root);
|
|
796
|
+
return found.sort();
|
|
797
|
+
}
|
|
798
|
+
__name(filesMentioning, "filesMentioning");
|
|
799
|
+
|
|
681
800
|
// src/schedule/service/names.ts
|
|
682
801
|
import { createHash } from "node:crypto";
|
|
683
802
|
import { homedir as homedir3 } from "node:os";
|
|
684
|
-
import { join as
|
|
803
|
+
import { join as join5, resolve as resolve2 } from "node:path";
|
|
685
804
|
var SERVICE_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]{0,62}$/;
|
|
686
805
|
function defaultServiceName(namzuHome, osHome = homedir3()) {
|
|
687
|
-
if (
|
|
688
|
-
const h8 = createHash("sha256").update(
|
|
806
|
+
if (resolve2(namzuHome) === resolve2(join5(osHome, ".namzu"))) return "namzu-scheduler";
|
|
807
|
+
const h8 = createHash("sha256").update(resolve2(namzuHome)).digest("hex").slice(0, 8);
|
|
689
808
|
return `namzu-scheduler-${h8}`;
|
|
690
809
|
}
|
|
691
810
|
__name(defaultServiceName, "defaultServiceName");
|
|
811
|
+
var SCRATCH_SUFFIX = "-schedule-workspaces";
|
|
692
812
|
function checkServiceName(name) {
|
|
693
813
|
if (!SERVICE_NAME.test(name)) {
|
|
694
814
|
throw new Error(
|
|
695
815
|
`"${name}" is not a service name: letters, digits, dot, dash and underscore only`
|
|
696
816
|
);
|
|
697
817
|
}
|
|
818
|
+
if (name.endsWith(SCRATCH_SUFFIX)) {
|
|
819
|
+
throw new Error(
|
|
820
|
+
`"${name}" is not a service name: ${SCRATCH_SUFFIX} is kept for a service's scratch folders`
|
|
821
|
+
);
|
|
822
|
+
}
|
|
698
823
|
return name;
|
|
699
824
|
}
|
|
700
825
|
__name(checkServiceName, "checkServiceName");
|
|
701
826
|
|
|
702
827
|
// src/schedule/service/runner.ts
|
|
703
828
|
import { execFile } from "node:child_process";
|
|
704
|
-
var runCommand = /* @__PURE__ */ __name((command, args, options = {}) => new Promise((
|
|
829
|
+
var runCommand = /* @__PURE__ */ __name((command, args, options = {}) => new Promise((resolve4) => {
|
|
705
830
|
execFile(
|
|
706
831
|
command,
|
|
707
832
|
[...args],
|
|
@@ -715,7 +840,7 @@ var runCommand = /* @__PURE__ */ __name((command, args, options = {}) => new Pro
|
|
|
715
840
|
},
|
|
716
841
|
(error, stdout, stderr) => {
|
|
717
842
|
const code = error ? typeof error.code === "number" ? error.code : 127 : 0;
|
|
718
|
-
|
|
843
|
+
resolve4({ code, stdout: decode(stdout), stderr: decode(stderr) });
|
|
719
844
|
}
|
|
720
845
|
);
|
|
721
846
|
}), "runCommand");
|
|
@@ -737,8 +862,8 @@ var PLATFORMS = [
|
|
|
737
862
|
"wsl-windows-task"
|
|
738
863
|
];
|
|
739
864
|
function installedBin() {
|
|
740
|
-
const here =
|
|
741
|
-
const candidate =
|
|
865
|
+
const here = dirname4(fileURLToPath(new URL("../", import.meta.url).href + "schedule/commands/service.js"));
|
|
866
|
+
const candidate = join6(here, "..", "..", "bin.js");
|
|
742
867
|
try {
|
|
743
868
|
return realpathSync(candidate);
|
|
744
869
|
} catch {
|
|
@@ -751,15 +876,30 @@ function program(paths) {
|
|
|
751
876
|
}
|
|
752
877
|
__name(program, "program");
|
|
753
878
|
async function installCommand(ctx, argv) {
|
|
754
|
-
|
|
879
|
+
if (argv.some((a) => a === "--name" || a.startsWith("--name="))) {
|
|
880
|
+
ctx.formatter.error({
|
|
881
|
+
message: "`--name <n>` is now the word right after install: `namzu schedule service install <n>`, which keeps the service in the Namzu folder."
|
|
882
|
+
});
|
|
883
|
+
return EXIT_USAGE;
|
|
884
|
+
}
|
|
885
|
+
const args = parseArgs(argv, ["home", "platform", "at-boot!", "dry-run!"]);
|
|
755
886
|
const platformFlag = flag(args, "platform") ?? "auto";
|
|
756
|
-
if (args.unknown.length > 0 || !PLATFORMS.includes(platformFlag)) {
|
|
887
|
+
if (args.unknown.length > 0 || args.positionals.length > 1 || !PLATFORMS.includes(platformFlag)) {
|
|
757
888
|
ctx.formatter.error({
|
|
758
|
-
message: `usage: namzu schedule service install [--platform ${PLATFORMS.join("|")}] [--
|
|
889
|
+
message: `usage: namzu schedule service install [<name>] [--platform ${PLATFORMS.join("|")}] [--home <dir>] [--at-boot] [--dry-run]`
|
|
759
890
|
});
|
|
760
891
|
return EXIT_USAGE;
|
|
761
892
|
}
|
|
762
|
-
const
|
|
893
|
+
const named = args.positionals[0];
|
|
894
|
+
if (named !== void 0) {
|
|
895
|
+
try {
|
|
896
|
+
checkServiceName(named);
|
|
897
|
+
} catch (error) {
|
|
898
|
+
ctx.formatter.error({ message: error instanceof Error ? error.message : String(error) });
|
|
899
|
+
return EXIT_USAGE;
|
|
900
|
+
}
|
|
901
|
+
}
|
|
902
|
+
const paths = named !== void 0 && flag(args, "home") === void 0 ? schedulePaths(serviceHomePath(named)) : pathsFor(args);
|
|
763
903
|
let platform;
|
|
764
904
|
if (platformFlag === "auto") {
|
|
765
905
|
const detected = detectPlatform({
|
|
@@ -771,7 +911,7 @@ async function installCommand(ctx, argv) {
|
|
|
771
911
|
}
|
|
772
912
|
platform = detected.platform;
|
|
773
913
|
} else platform = platformFlag;
|
|
774
|
-
const name = checkServiceName(
|
|
914
|
+
const name = checkServiceName(named ?? defaultServiceName(paths.home));
|
|
775
915
|
const prog = program(paths);
|
|
776
916
|
if (has(args, "dry-run")) {
|
|
777
917
|
let text;
|
|
@@ -810,14 +950,28 @@ async function installCommand(ctx, argv) {
|
|
|
810
950
|
);
|
|
811
951
|
break;
|
|
812
952
|
}
|
|
813
|
-
ctx.formatter.print({ text, platform, name });
|
|
953
|
+
ctx.formatter.print({ text, platform, name, home: paths.home });
|
|
814
954
|
return EXIT_OK;
|
|
815
955
|
}
|
|
816
956
|
const clash = nameClash(name, paths.home);
|
|
817
957
|
if (clash) {
|
|
818
|
-
|
|
958
|
+
const there = findService(name)?.home;
|
|
959
|
+
const legacy = there !== void 0 && named !== void 0 && resolve3(there) !== serviceHomePath(named);
|
|
960
|
+
ctx.formatter.error({
|
|
961
|
+
message: legacy ? `${clash}; to keep it and bring its home into the Namzu folder: namzu schedule service move ${name}` : clash
|
|
962
|
+
});
|
|
819
963
|
return 1;
|
|
820
964
|
}
|
|
965
|
+
if (named !== void 0 && flag(args, "home") === void 0) {
|
|
966
|
+
try {
|
|
967
|
+
mkdirSync4(paths.home, { recursive: true, mode: 448 });
|
|
968
|
+
} catch (error) {
|
|
969
|
+
ctx.formatter.error({
|
|
970
|
+
message: `the service home ${paths.home} could not be created: ${error instanceof Error ? error.message : String(error)}`
|
|
971
|
+
});
|
|
972
|
+
return 1;
|
|
973
|
+
}
|
|
974
|
+
}
|
|
821
975
|
const existing = readManifest(paths);
|
|
822
976
|
if (existing && existing.name !== name && existing.platform !== platform) {
|
|
823
977
|
ctx.formatter.error({
|
|
@@ -846,7 +1000,7 @@ ${problems.join("\n")}` });
|
|
|
846
1000
|
return 1;
|
|
847
1001
|
}
|
|
848
1002
|
ctx.formatter.print({
|
|
849
|
-
text: `Installed ${manifest.name} (${manifest.platform}). Check it with \`namzu schedule service status\`.`,
|
|
1003
|
+
text: `Installed ${manifest.name} (${manifest.platform}) for ${paths.home}. Check it with \`namzu schedule service status${named !== void 0 ? ` ${named}` : ""}\`.`,
|
|
850
1004
|
platform: manifest.platform,
|
|
851
1005
|
name: manifest.name
|
|
852
1006
|
});
|
|
@@ -925,7 +1079,7 @@ ${problems.join("\n")}` });
|
|
|
925
1079
|
__name(uninstallCommand, "uninstallCommand");
|
|
926
1080
|
function readHeartbeat(paths) {
|
|
927
1081
|
try {
|
|
928
|
-
return JSON.parse(
|
|
1082
|
+
return JSON.parse(readFileSync2(paths.heartbeat, "utf8"));
|
|
929
1083
|
} catch {
|
|
930
1084
|
return void 0;
|
|
931
1085
|
}
|
|
@@ -1058,7 +1212,7 @@ async function listCommand(ctx, argv) {
|
|
|
1058
1212
|
const paths = schedulePaths(entry.home);
|
|
1059
1213
|
let state;
|
|
1060
1214
|
try {
|
|
1061
|
-
if (!
|
|
1215
|
+
if (!existsSync4(entry.home)) state = "missing";
|
|
1062
1216
|
else if (!readManifest(paths)) state = "not installed";
|
|
1063
1217
|
else state = (await probeHealth(paths)).healthy ? "running" : "not running";
|
|
1064
1218
|
} catch {
|
|
@@ -1148,7 +1302,7 @@ async function daemonCommand(ctx, argv) {
|
|
|
1148
1302
|
manifest?.windows?.powershell ? { powershell: manifest.windows.powershell } : {}
|
|
1149
1303
|
);
|
|
1150
1304
|
const bin = installedBin();
|
|
1151
|
-
if (
|
|
1305
|
+
if (existsSync4(stopRequestPath(paths))) {
|
|
1152
1306
|
ctx.formatter.error({
|
|
1153
1307
|
message: `the scheduler for ${paths.home} was stopped with \`namzu schedule service stop\`; \`namzu schedule service start\` lets it run again`
|
|
1154
1308
|
});
|
|
@@ -1234,14 +1388,237 @@ async function fireCommand(ctx, argv, termination) {
|
|
|
1234
1388
|
return runFire(ctx, paths, fire);
|
|
1235
1389
|
}
|
|
1236
1390
|
__name(fireCommand, "fireCommand");
|
|
1391
|
+
async function moveCommand(ctx, argv, named) {
|
|
1392
|
+
const args = parseArgs(argv, ["wait", "dry-run!"]);
|
|
1393
|
+
if (args.unknown.length > 0 || args.positionals.length > 0 || named === void 0) {
|
|
1394
|
+
ctx.formatter.error({
|
|
1395
|
+
message: "usage: namzu schedule service move <name> [--dry-run] [--wait 10m]"
|
|
1396
|
+
});
|
|
1397
|
+
return EXIT_USAGE;
|
|
1398
|
+
}
|
|
1399
|
+
const index = readServiceIndexChecked();
|
|
1400
|
+
const entry = matchService(index.services, named);
|
|
1401
|
+
if (!entry) {
|
|
1402
|
+
ctx.formatter.error({
|
|
1403
|
+
message: index.problem ? `cannot look up ${named}: ${index.problem}` : `no scheduler service is named ${named}; see namzu schedule service list`
|
|
1404
|
+
});
|
|
1405
|
+
return index.problem ? 1 : EXIT_USAGE;
|
|
1406
|
+
}
|
|
1407
|
+
const refuse = /* @__PURE__ */ __name((message) => {
|
|
1408
|
+
ctx.formatter.error({ message });
|
|
1409
|
+
return 1;
|
|
1410
|
+
}, "refuse");
|
|
1411
|
+
if (legacyBaseName(entry) !== void 0)
|
|
1412
|
+
return refuse(
|
|
1413
|
+
`${entry.name} was registered by an older namzu under a distro-suffixed name; uninstall it and install it again by name: namzu schedule service uninstall ${displayName(entry)}, then namzu schedule service install ${displayName(entry)}`
|
|
1414
|
+
);
|
|
1415
|
+
let name;
|
|
1416
|
+
try {
|
|
1417
|
+
name = checkServiceName(entry.name);
|
|
1418
|
+
} catch (error) {
|
|
1419
|
+
return refuse(
|
|
1420
|
+
`the service index holds a name that is not a service name (${error instanceof Error ? error.message : String(error)}); nothing was changed`
|
|
1421
|
+
);
|
|
1422
|
+
}
|
|
1423
|
+
const from = resolve3(entry.home);
|
|
1424
|
+
const to = serviceHomePath(name);
|
|
1425
|
+
const inside = resolve3(servicesRoot());
|
|
1426
|
+
if (dirname4(resolve3(to)) !== inside)
|
|
1427
|
+
return refuse(`${name} would land outside ${inside}; nothing was changed`);
|
|
1428
|
+
if (from === to) {
|
|
1429
|
+
ctx.formatter.print({
|
|
1430
|
+
text: `${name} is already in the Namzu folder (${to}); nothing to move.`
|
|
1431
|
+
});
|
|
1432
|
+
return EXIT_OK;
|
|
1433
|
+
}
|
|
1434
|
+
const main = defaultNamzuHome();
|
|
1435
|
+
if (from === main || main.startsWith(`${from}/`) || main.startsWith(`${from}\\`))
|
|
1436
|
+
return refuse(
|
|
1437
|
+
`${name} serves ${from}, which is the Namzu home itself or contains it; it is not moved`
|
|
1438
|
+
);
|
|
1439
|
+
if (to.startsWith(`${from}/`) || to.startsWith(`${from}\\`))
|
|
1440
|
+
return refuse(`${name} serves ${from}, which contains ${to}; it is not moved`);
|
|
1441
|
+
if (!existsSync4(from) || !statSync2(from).isDirectory())
|
|
1442
|
+
return refuse(`${name} serves ${from}, which does not exist; there is nothing to move`);
|
|
1443
|
+
if (existsSync4(to))
|
|
1444
|
+
return refuse(`${to} already exists; move or remove it first, nothing was changed`);
|
|
1445
|
+
const scratchFrom = scratchRootOf(from);
|
|
1446
|
+
const scratchTo = scratchRootOf(to);
|
|
1447
|
+
const hasScratch = existsSync4(scratchFrom);
|
|
1448
|
+
if (hasScratch && existsSync4(scratchTo))
|
|
1449
|
+
return refuse(`${scratchTo} already exists; move or remove it first, nothing was changed`);
|
|
1450
|
+
for (const [source, target] of [
|
|
1451
|
+
[from, to],
|
|
1452
|
+
...hasScratch ? [[scratchFrom, scratchTo]] : []
|
|
1453
|
+
]) {
|
|
1454
|
+
if (!sameFileSystem(source, target))
|
|
1455
|
+
return refuse(
|
|
1456
|
+
`${source} and ${nearestExisting(target)} are on different file systems, and a move there would copy and delete; stop the service (namzu schedule service stop ${name}), move the folder by hand to ${target} and then run namzu schedule service install ${name}`
|
|
1457
|
+
);
|
|
1458
|
+
}
|
|
1459
|
+
const paths = schedulePaths(from);
|
|
1460
|
+
const manifest = readManifest(paths);
|
|
1461
|
+
if (!manifest)
|
|
1462
|
+
return refuse(
|
|
1463
|
+
`no scheduler service is installed in ${from}; namzu schedule service install ${name} installs one in the Namzu folder`
|
|
1464
|
+
);
|
|
1465
|
+
const inFlight = runsInFlight(paths);
|
|
1466
|
+
const jobs = listJobs(paths).jobs;
|
|
1467
|
+
const plan = [
|
|
1468
|
+
`Move ${name} (${manifest.platform})`,
|
|
1469
|
+
` home ${from}`,
|
|
1470
|
+
` to ${to}`,
|
|
1471
|
+
...hasScratch ? [` scratch ${scratchFrom}`, ` to ${scratchTo}`] : [],
|
|
1472
|
+
` jobs ${jobs.length} (${jobs.filter((j) => j.workspace === "none").length} with a scratch folder that is rewritten and needs confirming again)`,
|
|
1473
|
+
" then reinstall the service unit for the new home; start it again if it was running"
|
|
1474
|
+
];
|
|
1475
|
+
if (has(args, "dry-run")) {
|
|
1476
|
+
ctx.formatter.print({
|
|
1477
|
+
text: [
|
|
1478
|
+
...plan,
|
|
1479
|
+
...inFlight > 0 ? [
|
|
1480
|
+
` blocked ${inFlight} run(s) in progress; a real move waits for them (--wait) or refuses`
|
|
1481
|
+
] : [],
|
|
1482
|
+
"Nothing was changed."
|
|
1483
|
+
].join("\n")
|
|
1484
|
+
});
|
|
1485
|
+
return EXIT_OK;
|
|
1486
|
+
}
|
|
1487
|
+
const context = { paths, run: runCommand, env: process.env, version: CLI_VERSION };
|
|
1488
|
+
const wasRunning = (await probeHealth(paths)).healthy;
|
|
1489
|
+
const restart = /* @__PURE__ */ __name(async () => {
|
|
1490
|
+
requestStop(paths, !wasRunning);
|
|
1491
|
+
if (wasRunning) await startService(context, manifest);
|
|
1492
|
+
}, "restart");
|
|
1493
|
+
requestStop(paths, true);
|
|
1494
|
+
const endpoint = readEndpoint(paths.endpoint);
|
|
1495
|
+
if (endpoint) await callEndpoint(endpoint, "stop");
|
|
1496
|
+
await stopService(context, manifest);
|
|
1497
|
+
const waitMs = parseMs("--wait", flag(args, "wait")) ?? 0;
|
|
1498
|
+
const deadline = Date.now() + waitMs;
|
|
1499
|
+
while (runsInFlight(paths) > 0 && Date.now() < deadline) {
|
|
1500
|
+
ctx.formatter.info(`waiting for ${runsInFlight(paths)} run(s) in progress to finish\u2026`);
|
|
1501
|
+
await new Promise((r) => setTimeout(r, 5e3));
|
|
1502
|
+
}
|
|
1503
|
+
const still = runsInFlight(paths);
|
|
1504
|
+
if (still > 0) {
|
|
1505
|
+
await restart();
|
|
1506
|
+
return refuse(
|
|
1507
|
+
`${still} run(s) of ${name} are in progress, and their files would move under them; wait for them to finish (namzu schedule service status ${name}) or pass --wait 10m. Nothing was changed.`
|
|
1508
|
+
);
|
|
1509
|
+
}
|
|
1510
|
+
const indexBefore = {
|
|
1511
|
+
name,
|
|
1512
|
+
home: from,
|
|
1513
|
+
platform: manifest.platform,
|
|
1514
|
+
installedAt: manifest.installedAt
|
|
1515
|
+
};
|
|
1516
|
+
if (runsInFlight(paths) > 0) {
|
|
1517
|
+
await restart();
|
|
1518
|
+
return refuse(
|
|
1519
|
+
`a run of ${name} started while the move was being prepared; wait for it to finish and run the move again. Nothing was changed.`
|
|
1520
|
+
);
|
|
1521
|
+
}
|
|
1522
|
+
const putBack = /* @__PURE__ */ __name(() => {
|
|
1523
|
+
try {
|
|
1524
|
+
if (hasScratch && existsSync4(scratchTo) && !existsSync4(scratchFrom))
|
|
1525
|
+
renameSync(scratchTo, scratchFrom);
|
|
1526
|
+
} catch {
|
|
1527
|
+
}
|
|
1528
|
+
try {
|
|
1529
|
+
if (existsSync4(to) && !existsSync4(from)) renameSync(to, from);
|
|
1530
|
+
} catch {
|
|
1531
|
+
}
|
|
1532
|
+
}, "putBack");
|
|
1533
|
+
try {
|
|
1534
|
+
mkdirSync4(servicesRoot(), { recursive: true, mode: 448 });
|
|
1535
|
+
renameSync(from, to);
|
|
1536
|
+
if (hasScratch) renameSync(scratchFrom, scratchTo);
|
|
1537
|
+
} catch (error) {
|
|
1538
|
+
putBack();
|
|
1539
|
+
await restart();
|
|
1540
|
+
return refuse(
|
|
1541
|
+
`the folder could not be moved: ${error instanceof Error ? error.message : String(error)}. Nothing was changed.`
|
|
1542
|
+
);
|
|
1543
|
+
}
|
|
1544
|
+
const moved = schedulePaths(to);
|
|
1545
|
+
const problems = [];
|
|
1546
|
+
const indexProblem = recordService({ ...indexBefore, home: to });
|
|
1547
|
+
let manifestProblem;
|
|
1548
|
+
if (!indexProblem) {
|
|
1549
|
+
try {
|
|
1550
|
+
writeManifest(moved, { ...manifest, namzuHome: to });
|
|
1551
|
+
} catch (error) {
|
|
1552
|
+
manifestProblem = error instanceof Error ? error.message : String(error);
|
|
1553
|
+
recordService(indexBefore);
|
|
1554
|
+
}
|
|
1555
|
+
}
|
|
1556
|
+
if (indexProblem || manifestProblem) {
|
|
1557
|
+
putBack();
|
|
1558
|
+
await restart();
|
|
1559
|
+
return refuse(
|
|
1560
|
+
`the move was undone, ${name} is back in ${from}: ${indexProblem ? `the service index was not updated (${indexProblem})` : `the service manifest was not written (${manifestProblem})`}.`
|
|
1561
|
+
);
|
|
1562
|
+
}
|
|
1563
|
+
const notes = [];
|
|
1564
|
+
const rewrite = rewriteJobPaths(moved, from, to);
|
|
1565
|
+
problems.push(...rewrite.problems);
|
|
1566
|
+
requestStop(moved, !wasRunning);
|
|
1567
|
+
try {
|
|
1568
|
+
const reinstalled = await installService(
|
|
1569
|
+
{ paths: moved, run: runCommand, env: process.env, version: CLI_VERSION },
|
|
1570
|
+
{
|
|
1571
|
+
platform: manifest.platform,
|
|
1572
|
+
name,
|
|
1573
|
+
program: program(moved),
|
|
1574
|
+
atBoot: manifest.enabledLinger === true
|
|
1575
|
+
}
|
|
1576
|
+
);
|
|
1577
|
+
writeManifest(moved, {
|
|
1578
|
+
...reinstalled.manifest,
|
|
1579
|
+
installedAt: manifest.installedAt,
|
|
1580
|
+
...manifest.enabledLinger !== void 0 ? { enabledLinger: manifest.enabledLinger } : {}
|
|
1581
|
+
});
|
|
1582
|
+
problems.push(...reinstalled.problems);
|
|
1583
|
+
if (!wasRunning) await stopService({ ...context, paths: moved }, reinstalled.manifest);
|
|
1584
|
+
} catch (error) {
|
|
1585
|
+
problems.push(error instanceof Error ? error.message : String(error));
|
|
1586
|
+
}
|
|
1587
|
+
const mentions = filesMentioning(to, from);
|
|
1588
|
+
const lines = [
|
|
1589
|
+
`Moved ${name}: ${from} -> ${to}`,
|
|
1590
|
+
...hasScratch ? [`Scratch folders: ${scratchFrom} -> ${scratchTo}`] : [],
|
|
1591
|
+
`Service unit reinstalled for the new home; ${wasRunning ? "it is running again" : "it was stopped, and stays stopped"}.`,
|
|
1592
|
+
rewrite.rewritten.length > 0 ? `Rewritten to the new scratch folder: ${rewrite.rewritten.join(", ")}.` : "No job file needed rewriting.",
|
|
1593
|
+
...rewrite.needConfirming.length > 0 ? [
|
|
1594
|
+
`Confirm again (their confirmation covers the old scratch folder): ${rewrite.needConfirming.join(", ")}. Use namzu schedule confirm <job> --service ${name}.`
|
|
1595
|
+
] : [],
|
|
1596
|
+
rewrite.stillConfirmed.length > 0 ? `Confirmations still hold for ${rewrite.stillConfirmed.length} job(s): their folders are outside the home.` : rewrite.needConfirming.length === 0 ? "No confirmed job was affected." : "No other confirmed job.",
|
|
1597
|
+
...mentions.length > 0 ? [`Still names the old home (not rewritten): ${mentions.join(", ")}.`] : [],
|
|
1598
|
+
"daemon.env and the other files that may hold secrets moved with the folder unread."
|
|
1599
|
+
];
|
|
1600
|
+
for (const note of notes) ctx.formatter.info(note);
|
|
1601
|
+
ctx.formatter.print({ text: lines.join("\n") });
|
|
1602
|
+
if (problems.length > 0) {
|
|
1603
|
+
ctx.formatter.error({
|
|
1604
|
+
message: `the folder moved, but not everything followed:
|
|
1605
|
+
${problems.join("\n")}
|
|
1606
|
+
Run namzu schedule service install ${name} to finish.`
|
|
1607
|
+
});
|
|
1608
|
+
return 1;
|
|
1609
|
+
}
|
|
1610
|
+
return EXIT_OK;
|
|
1611
|
+
}
|
|
1612
|
+
__name(moveCommand, "moveCommand");
|
|
1237
1613
|
export {
|
|
1238
1614
|
daemonCommand,
|
|
1239
1615
|
fireCommand,
|
|
1240
1616
|
installCommand,
|
|
1241
1617
|
installedBin,
|
|
1242
1618
|
listCommand,
|
|
1619
|
+
moveCommand,
|
|
1243
1620
|
startStopCommand,
|
|
1244
1621
|
statusCommand,
|
|
1245
1622
|
uninstallCommand
|
|
1246
1623
|
};
|
|
1247
|
-
//# sourceMappingURL=service-
|
|
1624
|
+
//# sourceMappingURL=service-TCKPUGL5.js.map
|