@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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"policy.d.ts","sourceRoot":"","sources":["../../src/schedule/policy.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAGH,OAAO,EACN,KAAK,iBAAiB,EAGtB,KAAK,oBAAoB,EAEzB,MAAM,YAAY,CAAA;AAEnB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAMxD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAC5D,OAAO,EAGN,KAAK,iBAAiB,EAItB,MAAM,yBAAyB,CAAA;AAEhC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAA;AAEvD,MAAM,MAAM,UAAU,GAAG,WAAW,GAAG,gBAAgB,CAAA;
|
|
1
|
+
{"version":3,"file":"policy.d.ts","sourceRoot":"","sources":["../../src/schedule/policy.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAGH,OAAO,EACN,KAAK,iBAAiB,EAGtB,KAAK,oBAAoB,EAEzB,MAAM,YAAY,CAAA;AAEnB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAMxD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAC5D,OAAO,EAGN,KAAK,iBAAiB,EAItB,MAAM,yBAAyB,C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G,SAAS,CAAC,EAAE,GAAG,MAAM,EAAE,CAM5F;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,aAAa,CAC5B,GAAG,EAAE,qBAAqB,EAC1B,MAAM,EAAE,IAAI,CAAC,iBAAiB,EAAE,OAAO,CAAC,GACtC,MAAM,EAAE,CAQV"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Every scheduler home a person can see from one place: the current home and
|
|
3
|
+
* the home of each installed scheduler service (the index behind
|
|
4
|
+
* `namzu schedule service list`). `schedule list`, a job command typed
|
|
5
|
+
* without `--service`, and the TUI's /schedule all go through here, so a job
|
|
6
|
+
* run by a service is found without naming the service first.
|
|
7
|
+
*
|
|
8
|
+
* Only the `schedule/jobs` and `schedule/state` folders are ever read. A
|
|
9
|
+
* service's `daemon.env` and its other secrets are not opened.
|
|
10
|
+
*/
|
|
11
|
+
import { type SchedulePaths } from '../paths.js';
|
|
12
|
+
import type { ScheduleJob } from '../types.js';
|
|
13
|
+
import { type ServiceIndexEntry } from './registry.js';
|
|
14
|
+
export interface ScheduleHome {
|
|
15
|
+
/** The service's name; absent for the current home. */
|
|
16
|
+
readonly service?: string;
|
|
17
|
+
readonly home: string;
|
|
18
|
+
readonly paths: SchedulePaths;
|
|
19
|
+
/** One plain sentence when the home cannot be listed. */
|
|
20
|
+
readonly unreadable?: string;
|
|
21
|
+
readonly entry?: ServiceIndexEntry;
|
|
22
|
+
}
|
|
23
|
+
export interface ScheduleHomes {
|
|
24
|
+
/** The current home first, then one entry per installed service that serves another home. */
|
|
25
|
+
readonly homes: readonly ScheduleHome[];
|
|
26
|
+
/** The service index could not be read: a sentence, and `homes` holds the current home only. */
|
|
27
|
+
readonly indexProblem?: string;
|
|
28
|
+
}
|
|
29
|
+
export declare function scheduleHomes(currentHome: string): ScheduleHomes;
|
|
30
|
+
export type JobLocation = {
|
|
31
|
+
readonly kind: 'found';
|
|
32
|
+
readonly job: ScheduleJob;
|
|
33
|
+
readonly at: ScheduleHome;
|
|
34
|
+
} | {
|
|
35
|
+
readonly kind: 'several';
|
|
36
|
+
readonly at: readonly ScheduleHome[];
|
|
37
|
+
} | {
|
|
38
|
+
readonly kind: 'no-service';
|
|
39
|
+
readonly name: string;
|
|
40
|
+
readonly known: readonly string[];
|
|
41
|
+
} | {
|
|
42
|
+
readonly kind: 'none';
|
|
43
|
+
};
|
|
44
|
+
/** The words that name a home in a message. */
|
|
45
|
+
export declare function homeWords(at: ScheduleHome): string;
|
|
46
|
+
/**
|
|
47
|
+
* Find a job by name (or id prefix) in the current home and every service's
|
|
48
|
+
* home. With `service`, only that service; with `null`, only the current home. A match in exactly one home is
|
|
49
|
+
* returned; several are reported, none is `none`. A real problem in the
|
|
50
|
+
* current home (an ambiguous name, an unreadable file) is thrown, as
|
|
51
|
+
* `findJob` throws it. A service home that cannot be read is skipped.
|
|
52
|
+
*/
|
|
53
|
+
export declare function locateJob(ref: string, currentHome: string, service?: string | null): JobLocation;
|
|
54
|
+
/** The one line that refuses a name found in several homes. */
|
|
55
|
+
export declare function severalLine(ref: string, at: readonly ScheduleHome[]): string;
|
|
56
|
+
//# sourceMappingURL=homes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"homes.d.ts","sourceRoot":"","sources":["../../../src/schedule/service/homes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAIH,OAAO,EAAE,KAAK,aAAa,EAAiB,MAAM,aAAa,CAAA;AAE/D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAC9C,OAAO,EACN,KAAK,iBAAiB,EAItB,MAAM,eAAe,CAAA;AAEtB,MAAM,WAAW,YAAY;IAC5B,uDAAuD;IACvD,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAA;IAC7B,yDAAyD;IACzD,QAAQ,CAA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home to
|
|
3
|
+
* `<default home>/services/<name>`. This file holds the parts that touch the
|
|
4
|
+
* home's files, so they can be tested without a supervisor: what a move
|
|
5
|
+
* refuses, which paths inside the home must follow it, and which confirmations
|
|
6
|
+
* it breaks.
|
|
7
|
+
*
|
|
8
|
+
* What a service home stores about its own place, and what the move does:
|
|
9
|
+
* - `schedule/service.json` (`namzuHome`): rewritten by the reinstall.
|
|
10
|
+
* - a no-project job (`workspace: none`) keeps its scratch folder beside the
|
|
11
|
+
* home (`<home>-schedule-workspaces/<job id>`); the folder moves with the
|
|
12
|
+
* home and the job's `folder` and `trust` paths are rewritten. The
|
|
13
|
+
* confirmation digest covers that folder, so those jobs need confirming
|
|
14
|
+
* again; the move never confirms for anyone.
|
|
15
|
+
* - a job with a project folder stores that folder, not the home: untouched, and
|
|
16
|
+
* its confirmation holds.
|
|
17
|
+
* - history, run logs and conversations may quote the old path as a record of
|
|
18
|
+
* what happened; they are left as written.
|
|
19
|
+
* Every other `.json` file is searched for the old path, and a hit is reported
|
|
20
|
+
* by name, never rewritten. Files that may hold a secret are not opened.
|
|
21
|
+
*/
|
|
22
|
+
import type { SchedulePaths } from '../paths.js';
|
|
23
|
+
/** The scratch folder root a home's no-project jobs use: `<parent>/<basename>-schedule-workspaces`. */
|
|
24
|
+
export declare function scratchRootOf(home: string): string;
|
|
25
|
+
/** The nearest folder at or above `path` that exists. */
|
|
26
|
+
export declare function nearestExisting(path: string): string;
|
|
27
|
+
/** Whether two paths are on the same file system, so a rename between them is one atomic step. */
|
|
28
|
+
export declare function sameFileSystem(a: string, b: string): boolean;
|
|
29
|
+
export interface JobRewrite {
|
|
30
|
+
readonly rewritten: readonly string[];
|
|
31
|
+
/** Job names whose confirmation held before and no longer does: a person confirms them again. */
|
|
32
|
+
readonly needConfirming: readonly string[];
|
|
33
|
+
/** Job names whose confirmation still holds. */
|
|
34
|
+
readonly stillConfirmed: readonly string[];
|
|
35
|
+
readonly problems: readonly string[];
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* After the move: point each no-project job at its scratch folder in the new
|
|
39
|
+
* place. `before` is each job's `confirmationHolds` as it was in the old place.
|
|
40
|
+
* `listJobs` reads the files at the new home, which still say the old paths.
|
|
41
|
+
*/
|
|
42
|
+
export declare function rewriteJobPaths(paths: SchedulePaths, fromHome: string, toHome: string): JobRewrite;
|
|
43
|
+
/**
|
|
44
|
+
* The `.json` files under `root` (relative to it) that still contain `needle`.
|
|
45
|
+
* Records of past runs and files that may hold a secret are skipped.
|
|
46
|
+
*/
|
|
47
|
+
export declare function filesMentioning(root: string, needle: string): string[];
|
|
48
|
+
//# sourceMappingURL=move.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"move.d.ts","sourceRoot":"","sources":["../../../src/schedule/service/move.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAIH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAKhD,uGAAuG;AACvG,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAGlD;AAED,yDAAyD;AACzD,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAQpD;AAED,kGAAkG;AAClG,wBAAgB,cAAc,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,OAAO,CAM5D;AAED,MAAM,WAAW,UAAU;IAC1B,QAAQ,CAAC,SAAS,EAAE,SAAS,MAAM,EAAE,CAAA;IACrC,iGAAiG;IACjG,QAAQ,CAAC,cAAc,EAAE,SAAS,MAAM,EAAE,CAAA;IAC1C,gDAAgD;IAChD,QAAQ,CAAC,cAAc,EAAE,SAAS,MAAM,EAAE,CAAA;IAC1C,QAAQ,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAA;CACpC;AAQD;;;;GAIG;AACH,wBAAgB,eAAe,CAC9B,KAAK,EAAE,aAAa,EACpB,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,GACZ,UAAU,CAwCZ;AASD;;;GAGG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CA8BtE"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The service's name: `namzu-scheduler` for the default home, otherwise
|
|
3
3
|
* `namzu-scheduler-<8 hex of the home's hash>`, so two homes never share a
|
|
4
|
-
* service.
|
|
4
|
+
* service. A service installed by name (`schedule service install <name>`) is
|
|
5
|
+
* named by that word instead, and its home is `<default home>/services/<name>`.
|
|
5
6
|
*/
|
|
6
7
|
export declare const SERVICE_NAME: RegExp;
|
|
7
8
|
export declare function defaultServiceName(namzuHome: string, osHome?: string): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"names.d.ts","sourceRoot":"","sources":["../../../src/schedule/service/names.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"names.d.ts","sourceRoot":"","sources":["../../../src/schedule/service/names.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,eAAO,MAAM,YAAY,QAAsC,CAAA;AAE/D,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,SAAY,GAAG,MAAM,CAIhF;AAKD,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAYrD"}
|
|
@@ -19,6 +19,12 @@ export interface ServiceIndex {
|
|
|
19
19
|
}
|
|
20
20
|
/** The index file for the person whose home directory is `osHome`. */
|
|
21
21
|
export declare function serviceIndexPath(osHome?: string): string;
|
|
22
|
+
/** The default Namzu home of the person whose home directory is `osHome`: `~/.namzu`. */
|
|
23
|
+
export declare function defaultNamzuHome(osHome?: string): string;
|
|
24
|
+
/** Where the homes of named scheduler services live: `<default home>/services`. */
|
|
25
|
+
export declare function servicesRoot(osHome?: string): string;
|
|
26
|
+
/** The home of the service `name`: `<default home>/services/<name>`. */
|
|
27
|
+
export declare function serviceHomePath(name: string, osHome?: string): string;
|
|
22
28
|
export interface ServiceIndexRead {
|
|
23
29
|
/** The well-formed entries; empty when the file could not be read. */
|
|
24
30
|
readonly services: readonly ServiceIndexEntry[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../src/schedule/service/registry.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,OAAO,EAAE,KAAK,eAAe,EAAgB,MAAM,eAAe,CAAA;AAGlE,MAAM,WAAW,iBAAiB;IACjC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,0CAA0C;IAC1C,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,QAAQ,EAAE,eAAe,CAAA;IAClC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;CAC5B;AAED,MAAM,WAAW,YAAY;IAC5B,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAA;IACb,QAAQ,CAAC,IAAI,EAAE,wBAAwB,CAAA;IACvC,QAAQ,CAAC,QAAQ,EAAE,SAAS,iBAAiB,EAAE,CAAA;CAC/C;AAED,sEAAsE;AACtE,wBAAgB,gBAAgB,CAAC,MAAM,GAAE,MAAkB,GAAG,MAAM,CAEnE;AAcD,MAAM,WAAW,gBAAgB;IAChC,sEAAsE;IACtE,QAAQ,CAAC,QAAQ,EAAE,SAAS,iBAAiB,EAAE,CAAA;IAC/C,oGAAoG;IACpG,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CACzB;AAED,8FAA8F;AAC9F,wBAAgB,uBAAuB,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,gBAAgB,CAczE;AAED,wBAAgB,gBAAgB,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,iBAAiB,EAAE,CAE9E;AAeD;;;;GAIG;AACH,wBAAgB,cAAc,CAC7B,KAAK,EAAE,iBAAiB,EACxB,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C,IAAI,EAAE,MAAM,EACZ,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,GACrB,iBAAiB,GAAG,SAAS,CAI/B;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,iBAAiB,GAAG,SAAS,CAExF;AAED,oGAAoG;AACpG,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAIzF;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,iBAAiB,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAM3F;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAC7B,KAAK,EAAE,SAAS,MAAM,EAAE,EACxB,IAAI,EAAE,MAAM,EACZ,MAAM,CAAC,EAAE,MAAM,GACb,MAAM,GAAG,SAAS,CAQpB"}
|
|
@@ -25,7 +25,9 @@ export interface Targeted {
|
|
|
25
25
|
* `needsHome`: refuse a service whose home folder is gone (job commands).
|
|
26
26
|
* An error has been printed when `code` is returned.
|
|
27
27
|
*/
|
|
28
|
-
export declare function applyTarget(ctx: CommandContext, argv: readonly string[], mode: 'word' | 'flag', needsHome: boolean
|
|
28
|
+
export declare function applyTarget(ctx: CommandContext, argv: readonly string[], mode: 'word' | 'flag', needsHome: boolean,
|
|
29
|
+
/** The service was found by the job's name, not typed: no remark about NAMZU_HOME. */
|
|
30
|
+
found?: boolean): Targeted | {
|
|
29
31
|
code: number;
|
|
30
32
|
};
|
|
31
33
|
//# sourceMappingURL=target.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"target.d.ts","sourceRoot":"","sources":["../../../src/schedule/service/target.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAE7D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vB,IAAI,EAAE,MAAM,GAAG,MAAM,EACrB,SAAS,EAAE,OAAO;AAClB,sFAAsF;AACtF,KAAK,UAAQ,GACX,QAAQ,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAsC7B"}
|
package/dist/skills/catalog.d.ts
CHANGED
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
*/
|
|
31
31
|
import { type Logger, type Skill, SkillRegistry, type SkillRegistryRef } from '@namzu/sdk';
|
|
32
32
|
import type { SkillsConfig } from '../config/schema.js';
|
|
33
|
+
import type { McpSkillsView } from '../integrations/mcp/servers.js';
|
|
33
34
|
import type { SkillHooksHost } from './skill-hooks.js';
|
|
34
35
|
import { type SkillInfo } from './store.js';
|
|
35
36
|
/** The manifest never costs more than this many characters. */
|
|
@@ -53,6 +54,12 @@ export interface TurnSkillsInput {
|
|
|
53
54
|
readonly contextWindowTokens: number;
|
|
54
55
|
/** The plugin runtime's registry, when plugins are on. */
|
|
55
56
|
readonly pluginSkills?: SkillRegistry;
|
|
57
|
+
/**
|
|
58
|
+
* The skills the tool servers opted in with `skills: true` offer. Joined
|
|
59
|
+
* after the file and plugin skills, under the same manifest budget; a name
|
|
60
|
+
* a local skill already holds is dropped with a log line.
|
|
61
|
+
*/
|
|
62
|
+
readonly mcpSkills?: McpSkillsView;
|
|
56
63
|
/** Reads and attaches the hooks a skill carries; absent, the `skill` tool has no way to run them. */
|
|
57
64
|
readonly skillHooks?: Pick<SkillHooksHost, 'prepareHooks'>;
|
|
58
65
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog.d.ts","sourceRoot":"","sources":["../../src/skills/catalog.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAGH,OAAO,EACN,KAAK,MAAM,EAEX,KAAK,KAAK,EACV,aAAa,EACb,KAAK,gBAAgB,EAGrB,MAAM,YAAY,CAAA;AAEnB,OAAO,KAAK,EAAE,YAAY,EAAE,MA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YAAY,CAAA;IAC9B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CACrB;AAED;;;;;;;;GAQG;AACH,wBAAsB,yBAAyB,CAC9C,OAAO,EAAE,0BAA0B,GACjC,OAAO,CAAC,mBAAmB,CAAC,CA4L9B;AAED,uEAAuE;AACvE,wBAAgB,YAAY,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,GAAG,IAAI,CAGpE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"directory.d.ts","sourceRoot":"","sources":["../../src/skills/directory.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,OAAO,EAAE,KAAK,sBAAsB,EAAqB,MAAM,YAAY,CAAA;AAE3E,MAAM,WAAW,6BAA6B;IAC7C;;;;OAIG;IACH,QAAQ,CAAC,aAAa,EAAE,MAAM,SAAS,MAAM,EAAE,CAAA;CAC/C;AAED,wBAAgB,4BAA4B,CAC3C,OAAO,EAAE,6BAA6B,GACpC,sBAAsB,
|
|
1
|
+
{"version":3,"file":"directory.d.ts","sourceRoot":"","sources":["../../src/skills/directory.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,OAAO,EAAE,KAAK,sBAAsB,EAAqB,MAAM,YAAY,CAAA;AAE3E,MAAM,WAAW,6BAA6B;IAC7C;;;;OAIG;IACH,QAAQ,CAAC,aAAa,EAAE,MAAM,SAAS,MAAM,EAAE,CAAA;CAC/C;AAED,wBAAgB,4BAA4B,CAC3C,OAAO,EAAE,6BAA6B,GACpC,sBAAsB,CAoBxB"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Built-in skills that no longer ship, and the one line that answers a request
|
|
3
|
+
* for one by name.
|
|
4
|
+
*
|
|
5
|
+
* A person who typed `/verify-change`, or a model that asks the `skill` tool for
|
|
6
|
+
* it from habit or from an old note, should be told what replaced it instead of
|
|
7
|
+
* "unknown command" or a list of names to guess from. A skill of that name a
|
|
8
|
+
* person or project wrote is found first and is never answered with this line.
|
|
9
|
+
*/
|
|
10
|
+
import type { Skill } from '@namzu/sdk';
|
|
11
|
+
export declare const RETIRED_BUILTIN_SKILLS: Readonly<Record<string, string>>;
|
|
12
|
+
/** The one-line answer for a retired built-in name, or undefined for any other name. */
|
|
13
|
+
export declare function retiredSkillNotice(name: string): string | undefined;
|
|
14
|
+
/**
|
|
15
|
+
* What the `skill` tool loads for a retired name: a body of that one line, so
|
|
16
|
+
* the model reads it and loads `run`. Never listed in the manifest or by name.
|
|
17
|
+
*/
|
|
18
|
+
export declare function retiredSkill(name: string, dirPath: string): Skill | undefined;
|
|
19
|
+
//# sourceMappingURL=retired.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retired.d.ts","sourceRoot":"","sources":["../../src/skills/retired.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAEvC,eAAO,MAAM,sBAAsB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAGnE,CAAA;AAED,wFAAwF;AACxF,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAEnE;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,KAAK,GAAG,SAAS,CAY7E"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What a host that draws its own confirmation (the desktop app) is told about a `save_skill`
|
|
3
|
+
* call: the same facts the terminal screen is drawn from ({@link SaveSkillRequest}), as plain
|
|
4
|
+
* JSON. The host computes every field; nothing here is the model's own wording, except the
|
|
5
|
+
* skill's name, description and file, which the person is shown to approve.
|
|
6
|
+
*/
|
|
7
|
+
import type { HostCommandDescriptor } from '@namzu/sdk';
|
|
8
|
+
import { type SaveSkillRequest, type SkillSaveScope } from './save.js';
|
|
9
|
+
/** One place the skill could be saved to. */
|
|
10
|
+
export interface SkillSaveCardTarget {
|
|
11
|
+
readonly scope: SkillSaveScope;
|
|
12
|
+
/** The `SKILL.md` as the person would type it (`~/…`, `./…`). */
|
|
13
|
+
readonly path: string;
|
|
14
|
+
/** What saving here does to a skill that already has this name; empty when nothing does. */
|
|
15
|
+
readonly shadows: readonly string[];
|
|
16
|
+
}
|
|
17
|
+
/** The payload of the desktop's skill-save card. */
|
|
18
|
+
export interface SkillSaveCardPayload {
|
|
19
|
+
readonly name: string;
|
|
20
|
+
readonly description: string;
|
|
21
|
+
/** The whole file, with invisible and control characters shown as `<U+XXXX>`. */
|
|
22
|
+
readonly file: string;
|
|
23
|
+
/** True when the file holds characters the person could not see unless they were shown. */
|
|
24
|
+
readonly hiddenCharacters: boolean;
|
|
25
|
+
readonly warnings: readonly string[];
|
|
26
|
+
/** Where the model suggested the skill go; the card marks it and preselects nothing. */
|
|
27
|
+
readonly suggested: SkillSaveScope;
|
|
28
|
+
readonly targets: readonly [SkillSaveCardTarget, SkillSaveCardTarget];
|
|
29
|
+
/** True when either target would replace, or be hidden by, an existing skill. */
|
|
30
|
+
readonly shadowsExisting: boolean;
|
|
31
|
+
}
|
|
32
|
+
export declare const SKILL_SAVE_QUESTION_ID = "skill-save";
|
|
33
|
+
/** The option ids of the card's one question; anything else is a cancel. */
|
|
34
|
+
export declare const SKILL_SAVE_OPTIONS: readonly ["user", "project", "cancel"];
|
|
35
|
+
export declare function skillSaveCardPayload(request: SaveSkillRequest, cwd: string): SkillSaveCardPayload;
|
|
36
|
+
/**
|
|
37
|
+
* `/skills new [idea]` as the app's composer offers it (the terminal keeps its own, richer
|
|
38
|
+
* `/skills`): it answers with the prompt that starts the skill-creator interview. The spelling
|
|
39
|
+
* is keywords, `skills new`, never a hyphenated name.
|
|
40
|
+
*/
|
|
41
|
+
export declare const SKILLS_HOST_COMMAND: HostCommandDescriptor;
|
|
42
|
+
//# sourceMappingURL=save-card.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"save-card.d.ts","sourceRoot":"","sources":["../../src/skills/save-card.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAA;AAEvD,OAAO,EACN,KAAK,gBAAgB,EACrB,KAAK,cAAc,EAGnB,MAAM,WAAW,CAAA;AAElB,6CAA6C;AAC7C,MAAM,WAAW,mBAAmB;IACnC,QAAQ,CAAC,KAAK,EAAE,cAAc,CAAA;IAC9B,iEAAiE;IACjE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,4FAA4F;IAC5F,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAA;CACnC;AAED,oDAAoD;AACpD,MAAM,WAAW,oBAAoB;IACpC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;IAC5B,iFAAiF;IACjF,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,2FAA2F;IAC3F,QAAQ,CAAC,gBAAgB,EAAE,OAAO,CAAA;IAClC,QAAQ,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAA;IACpC,wFAAwF;IACxF,QAAQ,CAAC,SAAS,EAAE,cAAc,CAAA;IAClC,QAAQ,CAAC,OAAO,EAAE,SAAS,CAAC,mBAAmB,EAAE,mBAAmB,CAAC,CAAA;IACrE,iFAAiF;IACjF,QAAQ,CAAC,eAAe,EAAE,OAAO,CAAA;CACjC;AAED,eAAO,MAAM,sBAAsB,eAAe,CAAA;AAClD,4EAA4E;AAC5E,eAAO,MAAM,kBAAkB,wCAAyC,CAAA;AAExE,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,gBAAgB,EAAE,GAAG,EAAE,MAAM,GAAG,oBAAoB,CAoBjG;AAED;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,EAAE,qBAajC,CAAA"}
|
package/dist/skills/save.d.ts
CHANGED
|
@@ -14,9 +14,12 @@
|
|
|
14
14
|
* beside it, then `rename`). The session catalog discovers again every turn,
|
|
15
15
|
* so the model is offered it from the next turn on.
|
|
16
16
|
*/
|
|
17
|
+
import nodePath from 'node:path';
|
|
17
18
|
import { type ToolDefinition } from '@namzu/sdk';
|
|
18
19
|
import type { SkillsConfig } from '../config/schema.js';
|
|
19
20
|
export declare const SAVE_SKILL_TOOL_NAME = "save_skill";
|
|
21
|
+
/** The transcript line of a saved skill; the desktop reads its name and place back out of it. */
|
|
22
|
+
export declare function savedSkillLabel(name: string, displayPath: string): string;
|
|
20
23
|
/** The built-in skill that interviews the operator and drafts a skill. */
|
|
21
24
|
export declare const SKILL_CREATOR_SKILL = "skill-creator";
|
|
22
25
|
/** What `/skills new [idea]` sends as the operator's prompt. */
|
|
@@ -122,6 +125,27 @@ export declare function composeSkillMarkdown(draft: SkillDraft, meta: {
|
|
|
122
125
|
readonly sessionId?: string;
|
|
123
126
|
readonly createdAt: Date;
|
|
124
127
|
}): string;
|
|
128
|
+
/**
|
|
129
|
+
* A path as the operator reads it: `./x` inside the working folder, `~/x`
|
|
130
|
+
* under the home folder, the full path anywhere else. `relative` answers with
|
|
131
|
+
* an absolute path when the two are on different drives and with `..` when
|
|
132
|
+
* the path is outside, and neither is ever dressed up as a short form.
|
|
133
|
+
*/
|
|
134
|
+
export declare function displayPath(path: string, cwd: string, home?: string, pathApi?: nodePath.PlatformPath): string;
|
|
135
|
+
/** A save that would write somewhere other than the skills folder it names. */
|
|
136
|
+
export declare class SkillPathError extends Error {
|
|
137
|
+
readonly name = "SkillPathError";
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* Refuse a write that would go through a symlink. Every component of `file`
|
|
141
|
+
* below `anchor` that exists is looked at with `lstat`; a link anywhere
|
|
142
|
+
* (a folder or the file itself) is refused, and the real path of the deepest
|
|
143
|
+
* existing folder must stay inside the real `anchor`. `anchor` is the folder
|
|
144
|
+
* trusted to be what it says: the working folder for a project skill, the
|
|
145
|
+
* skills folder itself for a user skill (which may be a link the operator
|
|
146
|
+
* made on purpose).
|
|
147
|
+
*/
|
|
148
|
+
export declare function assertNoSymlinkBelow(anchor: string, file: string): void;
|
|
125
149
|
/** Where each choice writes, and what already holds that name. */
|
|
126
150
|
export declare function planSkillTargets(name: string, options: {
|
|
127
151
|
readonly cwd: string;
|
|
@@ -139,7 +163,7 @@ export declare function skillWarnings(markdown: string): string[];
|
|
|
139
163
|
* Write `text` to `path` so a reader sees the old file or the new one, never
|
|
140
164
|
* part of either: a temporary beside it, flushed, then renamed over it.
|
|
141
165
|
*/
|
|
142
|
-
export declare function writeFileAtomically(path: string, text: string): void;
|
|
166
|
+
export declare function writeFileAtomically(path: string, text: string, anchor?: string): void;
|
|
143
167
|
/**
|
|
144
168
|
* The `save_skill` tool over a {@link SaveSkillHost}. Register it only where a
|
|
145
169
|
* person is present to confirm — the interactive TUI's own session.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"save.d.ts","sourceRoot":"","sources":["../../src/skills/save.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;
|
|
1
|
+
{"version":3,"file":"save.d.ts","sourceRoot":"","sources":["../../src/skills/save.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAeH,OAAO,QAAgC,MAAM,WAAW,CAAA;AACxD,OAAO,EACN,KAAK,cAAc,EAOnB,MAAM,YAAY,CAAA;AAEnB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAWvD,eAAO,MAAM,oBAAoB,eAAe,CAAA;AAEhD,iGAAiG;AACjG,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,MAAM,CAEzE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,EAAE,eAAe,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAA;CAAE,CAuCvE;AAED,8EAA8E;AAC9E,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,cAAc,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAMhF;AAED,+CAA+C;AAC/C,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,EAAE,CAWxD;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAqBrF;AA2DD;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,aAAa,GAAG,cAAc,CA6HtE"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type PluginLifecycleManager, type ShellHookOptions, type SkillHooksOptions, type SkillHooksPlan } from '@namzu/sdk';
|
|
1
|
+
import { type PluginLifecycleManager, type ShellHookOptions, type SkillHooksHandle, type SkillHooksOptions, type SkillHooksPlan } from '@namzu/sdk';
|
|
2
2
|
import type { HooksSwitch } from '../config/hook-layers.js';
|
|
3
3
|
/** What a skill's hook commands see of the skill: its own folder. One place, so a rule beside it can add to it. */
|
|
4
4
|
export declare function skillHookEnv(skillRoot: string): Record<string, string>;
|
|
@@ -42,7 +42,7 @@ export interface SkillHooksHost {
|
|
|
42
42
|
readonly name: string;
|
|
43
43
|
readonly dirPath: string;
|
|
44
44
|
readonly hooksSource: string;
|
|
45
|
-
}):
|
|
45
|
+
}): SkillHooksHandle;
|
|
46
46
|
/**
|
|
47
47
|
* A conversation that used this skill is continued: attach its hooks again,
|
|
48
48
|
* through the path a first use takes (the same reading, the same guard rule,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skill-hooks.d.ts","sourceRoot":"","sources":["../../src/skills/skill-hooks.ts"],"names":[],"mappings":"AAoBA,OAAO,EAKN,KAAK,sBAAs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|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The shell commands a skill or a custom command holds, run while its text
|
|
3
|
+
* loads, for the loads that happen outside a model turn: a command the person
|
|
4
|
+
* typed, a headless prompt, a skill preloaded into a sub-agent.
|
|
5
|
+
*
|
|
6
|
+
* The model's own `skill` tool runs them as nested calls of the shell tool
|
|
7
|
+
* inside its turn (`@namzu/sdk` `createToolSkillShellHost`). With no turn to
|
|
8
|
+
* nest in, this does the same steps in the same order, with the same
|
|
9
|
+
* parts and no second shell:
|
|
10
|
+
*
|
|
11
|
+
* 1. the session's permission mode answers as it does for the model's own
|
|
12
|
+
* `bash` call: `plan` runs only commands that read, `strict` only those a
|
|
13
|
+
* rule allows, and a skill's `allowed-tools` lifts neither;
|
|
14
|
+
* then the session's authorization gate decides (the operator's rules and the
|
|
15
|
+
* dangerous-command floor, exactly as for a model's call). A command the
|
|
16
|
+
* gate denies, or would send to a person, fails the load with the reason:
|
|
17
|
+
* a load cannot ask. A skill's `allowed-tools` answers only a command no
|
|
18
|
+
* rule decided, for this one load;
|
|
19
|
+
* A command that reaches a protected path, a removal the floor stops or a
|
|
20
|
+
* path outside the working folders then fails the load too, as the
|
|
21
|
+
* executor's own review does for a nested call, whatever the rules say;
|
|
22
|
+
* 2. the `pre_tool_use` hooks that match the shell tool, as for a model's
|
|
23
|
+
* own call: a refusal, a request for approval or a rewrite, a timeout or a
|
|
24
|
+
* crash fails the load, and so does a stop;
|
|
25
|
+
* 3. `pre_skill_shell_command` hooks, when one is attached;
|
|
26
|
+
* 4. the shell tool itself, in the sandbox the session runs in.
|
|
27
|
+
*/
|
|
28
|
+
import { type AuthorizationGate, type InlineShellBlock, type PluginLifecycleManager, type SandboxProvider } from '@namzu/sdk';
|
|
29
|
+
/** Where a skill or command came from, as far as running its commands is concerned. */
|
|
30
|
+
export type SkillShellOrigin = 'user' | 'project' | 'plugin' | 'system';
|
|
31
|
+
/**
|
|
32
|
+
* Why commands from this origin may not run at all, before any is tried. A
|
|
33
|
+
* project's own text runs only in a folder the person trusted; the person's own,
|
|
34
|
+
* a plugin's and the ones shipped with Namzu do not wait on it. Nothing from a
|
|
35
|
+
* tool server or another remote source is ever run (`remote`): no origin here
|
|
36
|
+
* names one, and a caller that has one passes it as `remote`.
|
|
37
|
+
*/
|
|
38
|
+
export declare function shellBlockFor(origin: SkillShellOrigin | 'remote', trusted: boolean): InlineShellBlock | undefined;
|
|
39
|
+
export interface SkillShellRequest {
|
|
40
|
+
/** The text, with its arguments and variables already put in (escaped). */
|
|
41
|
+
readonly text: string;
|
|
42
|
+
/** The skill or command, without the slash. */
|
|
43
|
+
readonly name: string;
|
|
44
|
+
readonly origin: SkillShellOrigin | 'remote';
|
|
45
|
+
/** `user` for a typed command, `other` for a preload or a headless prompt. */
|
|
46
|
+
readonly invokedBy: 'user' | 'other';
|
|
47
|
+
/** The skill's `allowed-tools`, as written. */
|
|
48
|
+
readonly allowedTools?: string;
|
|
49
|
+
/** The skill's folder, for `${NAMZU_SKILL_DIR}` in an `allowed-tools` pattern. */
|
|
50
|
+
readonly directory?: string;
|
|
51
|
+
/**
|
|
52
|
+
* The permission mode the load happens under, as the caller knows it (the
|
|
53
|
+
* terminal's live mode, the `--permission-mode` of a headless run). Absent:
|
|
54
|
+
* the session's own (`SessionSkillShellDeps.mode`).
|
|
55
|
+
*/
|
|
56
|
+
readonly mode?: string;
|
|
57
|
+
readonly signal?: AbortSignal;
|
|
58
|
+
}
|
|
59
|
+
export interface SessionSkillShell {
|
|
60
|
+
/**
|
|
61
|
+
* The text with each command's output in its place. Throws
|
|
62
|
+
* `InlineShellError` when a command fails, is refused by the permission
|
|
63
|
+
* rules, or a hook stops the load; its message is for the person.
|
|
64
|
+
*/
|
|
65
|
+
expand(request: SkillShellRequest): Promise<string>;
|
|
66
|
+
}
|
|
67
|
+
export interface SessionSkillShellDeps {
|
|
68
|
+
readonly cwd: () => string;
|
|
69
|
+
/** The folders a command may reach: the working directory, then the added ones. */
|
|
70
|
+
readonly roots?: () => readonly string[];
|
|
71
|
+
/** `disableSkillShellExecution`, read at each load. */
|
|
72
|
+
readonly disabled: () => boolean;
|
|
73
|
+
/** Whether the project folder is trusted. */
|
|
74
|
+
readonly trusted: () => boolean;
|
|
75
|
+
/** The session's gate, built from the rules as they stand now. */
|
|
76
|
+
readonly gate: () => AuthorizationGate;
|
|
77
|
+
readonly hooks: () => Pick<PluginLifecycleManager, 'executeHooks' | 'listHooks'> | undefined;
|
|
78
|
+
readonly sessionId: () => string;
|
|
79
|
+
/** The sandbox the session's commands run in; absent runs on the host. */
|
|
80
|
+
readonly sandbox?: () => {
|
|
81
|
+
readonly provider: SandboxProvider;
|
|
82
|
+
readonly workspace: 'working-directory' | 'ephemeral';
|
|
83
|
+
readonly additionalDirectories?: readonly string[];
|
|
84
|
+
} | undefined;
|
|
85
|
+
/** A line for the person: a refused command, a hook's own message. */
|
|
86
|
+
readonly warn?: (line: string) => void;
|
|
87
|
+
/** The permission mode the session is in now, for a load whose caller names none. */
|
|
88
|
+
readonly mode?: () => string | undefined;
|
|
89
|
+
/**
|
|
90
|
+
* Variables a host adds on purpose. The shell tool adds the inherited
|
|
91
|
+
* environment itself, with credential-shaped names left out; passing
|
|
92
|
+
* `process.env` here would hand every one of them back.
|
|
93
|
+
*/
|
|
94
|
+
readonly env?: () => Record<string, string | undefined>;
|
|
95
|
+
}
|
|
96
|
+
export declare function createSessionSkillShell(deps: SessionSkillShellDeps): SessionSkillShell;
|
|
97
|
+
/** A session with nothing to run commands in: every command is refused with the reason. */
|
|
98
|
+
export declare const NO_SKILL_SHELL: SessionSkillShell;
|
|
99
|
+
//# sourceMappingURL=skill-shell.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skill-shell.d.ts","sourceRoot":"","sources":["../../src/skills/skill-shell.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAGH,OAAO,EACN,KAAK,iBAAiB,EACtB,KA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OAAO,CAAA;IAC/B,kEAAkE;IAClE,QAAQ,CAAC,IAAI,EAAE,MAAM,iBAAiB,CAAA;IACtC,QAAQ,CAAC,KAAK,EAAE,MAAM,IAAI,CAAC,sBAAsB,EAAE,cAAc,GAAG,WAAW,CAAC,GAAG,SAAS,CAAA;IAC5F,QAAQ,CAAC,SAAS,EAAE,MAAM,MAAM,CAAA;IAChC,0EAA0E;IAC1E,QAAQ,CAAC,OAAO,CAAC,EAAE,MAChB;QACA,QAAQ,CAAC,QAAQ,EAAE,eAAe,CAAA;QAClC,QAAQ,CAAC,SAAS,EAAE,mBAAmB,GAAG,WAAW,CAAA;QACrD,QAAQ,CAAC,qBAAqB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;KACjD,GACD,SAAS,CAAA;IACZ,sEAAsE;IACtE,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IACtC,qFAAqF;IACrF,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,MAAM,GAAG,SAAS,CAAA;IACxC;;;;OAIG;IACH,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAA;CACvD;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,qBAAqB,GAAG,iBAAiB,CAkJtF;AAED,2FAA2F;AAC3F,eAAO,MAAM,cAAc,EAAE,iBAW5B,CAAA"}
|
package/dist/skills/store.d.ts
CHANGED
|
@@ -103,6 +103,8 @@ interface ParsedSkill {
|
|
|
103
103
|
readonly argumentHint?: string;
|
|
104
104
|
readonly userInvocable?: false;
|
|
105
105
|
readonly hooksSource?: string;
|
|
106
|
+
/** `allowed-tools`, as written (a list is its items joined by spaces). */
|
|
107
|
+
readonly allowedTools?: string;
|
|
106
108
|
readonly body: string;
|
|
107
109
|
}
|
|
108
110
|
/**
|
|
@@ -163,6 +165,11 @@ export declare function discoverSkills(opts?: SkillDiscoveryOptions): SkillInfo[
|
|
|
163
165
|
export declare function skillTierLabel(tier: SkillTier): string;
|
|
164
166
|
/** Read a skill's markdown body (frontmatter stripped). */
|
|
165
167
|
export declare function loadSkillBody(info: SkillInfo): string;
|
|
168
|
+
/** A skill's body and its `allowed-tools`, as written, from one read of its file. */
|
|
169
|
+
export declare function loadSkillFile(info: SkillInfo): {
|
|
170
|
+
body: string;
|
|
171
|
+
allowedTools?: string;
|
|
172
|
+
};
|
|
166
173
|
/** Compose the active-skills system block, or null when none are active. */
|
|
167
174
|
export declare function composeSkillsPrompt(active: ReadonlyArray<{
|
|
168
175
|
name: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../src/skills/store.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAcH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAGvD,sFAAsF;AACtF,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,CAAA;AAEvD,0EAA0E;AAC1E,MAAM,MAAM,SAAS,GAClB,QAAQ,GACR,aAAa,GACb,MAAM,GACN,gBAAgB,GAChB,gBAAgB,GAChB,SAAS,CAAA;AAEZ,2EAA2E;AAC3E,eAAO,MAAM,WAAW,EAAE,SAAS,SAAS,EAO3C,CAAA;AAWD,MAAM,WAAW,SAAS;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;IAC5B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAA;IAC5B,kEAAkE;IAClE,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAA;IACxB;;;;;;;;;OASG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;IACzB,+CAA+C;IAC/C,QAAQ,CAAC,QAAQ,CAAC,E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BAAgB,mBAAmB,CAAC,IAAI,GAAE,qBAA0B,GAAG,WAAW,CA6BjF;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,IAAI,GAAE,qBAA0B,GAAG,SAAS,EAAE,CAE5E;AAED,oFAAoF;AACpF,wBAAgB,cAAc,CAAC,IAAI,EAAE,SAAS,GAAG,MAAM,CAgBtD;AAED,2DAA2D;AAC3D,wBAAgB,aAAa,CAAC,IAAI,EAAE,SAAS,GAAG,MAAM,CAErD;AAED,qFAAqF;AACrF,wBAAgB,aAAa,CAAC,IAAI,EAAE,SAAS,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,YAAY,CAAC,EAAE,MAAM,CAAA;CAAE,CAOtF;AAED,4EAA4E;AAC5E,wBAAgB,mBAAmB,CAClC,MAAM,EAAE,aAAa,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC,GACnD,MAAM,GAAG,IAAI,CASf;AAED,sDAAsD;AACtD,eAAO,MAAM,eAAe,uIACyG,CAAA;AAErI;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAChC,MAAM,EAAE,SAAS,SAAS,EAAE,EAC5B,WAAW,EAAE,WAAW,CAAC,MAAM,CAAC,GAC9B,MAAM,CAaR"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The steps that turn a command the person typed into the text that goes on,
|
|
3
|
+
* in the order that keeps a refusal free of side effects:
|
|
4
|
+
*
|
|
5
|
+
* 1. `user_prompt_expansion` hooks are asked first, so a hook that blocks the
|
|
6
|
+
* expansion leaves nothing run;
|
|
7
|
+
* 2. the hooks the skill carries are attached, so its own `pre_tool_use` and
|
|
8
|
+
* `pre_skill_shell_command` entries guard its own commands;
|
|
9
|
+
* 3. the shell commands the text holds run.
|
|
10
|
+
*
|
|
11
|
+
* A load that fails takes the skill's hooks off again: they stay only for a
|
|
12
|
+
* command whose text went on.
|
|
13
|
+
*/
|
|
14
|
+
export interface TypedCommandLoad {
|
|
15
|
+
/** Ask the `user_prompt_expansion` hooks; absent when no hook is asked. */
|
|
16
|
+
readonly expansion?: () => Promise<{
|
|
17
|
+
readonly blocked?: string;
|
|
18
|
+
readonly context?: string;
|
|
19
|
+
}>;
|
|
20
|
+
/** Attach the skill's own hooks, before its commands run; the handle takes them off. */
|
|
21
|
+
readonly attachHooks?: () => {
|
|
22
|
+
readonly remove: () => void;
|
|
23
|
+
} | undefined;
|
|
24
|
+
/** Run the text's shell commands; absent when it holds none to run. */
|
|
25
|
+
readonly expand?: () => Promise<string>;
|
|
26
|
+
}
|
|
27
|
+
export type TypedCommandLoadResult = {
|
|
28
|
+
readonly kind: 'blocked';
|
|
29
|
+
readonly reason: string;
|
|
30
|
+
} | {
|
|
31
|
+
readonly kind: 'failed';
|
|
32
|
+
readonly error: unknown;
|
|
33
|
+
} | {
|
|
34
|
+
readonly kind: 'loaded';
|
|
35
|
+
/** The text with its commands' output in place; absent when none ran. */
|
|
36
|
+
readonly text?: string;
|
|
37
|
+
/** What the expansion hooks want the model to read beside the prompt. */
|
|
38
|
+
readonly context?: string;
|
|
39
|
+
/** The skill's own hooks attached for the load; take them off if the line is never sent. */
|
|
40
|
+
readonly hooks?: {
|
|
41
|
+
readonly remove: () => void;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
export declare function loadTypedCommand(load: TypedCommandLoad): Promise<TypedCommandLoadResult>;
|
|
45
|
+
//# sourceMappingURL=typed-command-load.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typed-command-load.d.ts","sourceRoot":"","sources":["../../src/skills/typed-command-load.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,MAAM,WAAW,gBAAgB;IAChC,2EAA2E;IAC3E,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,OAAO,CAAC;QAAE,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,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