@namzu/cli 57.1.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 +247 -0
- package/README.md +5 -5
- package/dist/bin-main.d.ts.map +1 -1
- package/dist/bin.js +1 -1
- package/dist/boot-narrative.d.ts.map +1 -1
- package/dist/browser/control.d.ts +19 -2
- package/dist/browser/control.d.ts.map +1 -1
- package/dist/chunks/{acp-DEH76VXL.js → acp-AQUZCZSO.js} +581 -212
- package/dist/chunks/acp-AQUZCZSO.js.map +6 -0
- package/dist/chunks/{activity-command-GETWRD67.js → activity-command-Y3A6GIFW.js} +14 -15
- package/dist/chunks/activity-command-Y3A6GIFW.js.map +6 -0
- package/dist/chunks/{add-XFYJ6UZE.js → add-DWFKSOYI.js} +42 -38
- package/dist/chunks/add-DWFKSOYI.js.map +6 -0
- package/dist/chunks/{agent-FW4VC2AF.js → agent-Z6PJYBAO.js} +63 -48
- package/dist/chunks/agent-session-WXWW7E5M.js +92 -0
- package/dist/chunks/{apply-at-exit-OU2UXZCF.js → apply-at-exit-SHGR2BAB.js} +9 -9
- package/dist/chunks/{apply-at-exit-OU2UXZCF.js.map → apply-at-exit-SHGR2BAB.js.map} +1 -1
- package/dist/chunks/{archive-PA5MDKXC.js → archive-KYXU4AZZ.js} +16 -13
- package/dist/chunks/archive-KYXU4AZZ.js.map +6 -0
- package/dist/chunks/auth-R3RCZZ7U.js +242 -0
- package/dist/chunks/auth-R3RCZZ7U.js.map +6 -0
- package/dist/chunks/{bin-main-RH4NLAPK.js → bin-main-DUZFYUCJ.js} +51 -23
- package/dist/chunks/bin-main-DUZFYUCJ.js.map +6 -0
- package/dist/chunks/{binding-ON644UJ3.js → binding-5UJYMFMU.js} +3 -3
- package/dist/chunks/browser-7CFZ6BZS.js +76 -0
- package/dist/chunks/browser-7CFZ6BZS.js.map +6 -0
- package/dist/chunks/{chat-UNZSJZ6U.js → chat-BELD32ZP.js} +17 -18
- package/dist/chunks/chat-BELD32ZP.js.map +6 -0
- package/dist/chunks/{chunk-IMXTM75Q.js → chunk-23D5IXMW.js} +3 -3
- package/dist/chunks/{chunk-PYYDU2BC.js → chunk-24EZWZDZ.js} +6 -6
- package/dist/chunks/{chunk-WDROVY6V.js → chunk-2EVP6BX4.js} +2 -2
- package/dist/chunks/{chunk-M4XYHIA3.js → chunk-2KC52MDS.js} +2 -2
- package/dist/chunks/{chunk-GVWDNFIP.js → chunk-2VP2Q657.js} +3 -3
- package/dist/chunks/{chunk-Z6LUWKV4.js → chunk-3ETXWTV4.js} +8 -8
- package/dist/chunks/{chunk-3Z5OXTDI.js → chunk-3PH6F6Z3.js} +3 -3
- package/dist/chunks/{chunk-7T56MZIJ.js → chunk-3RLKUXXG.js} +24 -23
- package/dist/chunks/{chunk-7T56MZIJ.js.map → chunk-3RLKUXXG.js.map} +1 -1
- package/dist/chunks/{chunk-6MQHDX7R.js → chunk-44MFZJ24.js} +32 -5
- package/dist/chunks/chunk-44MFZJ24.js.map +6 -0
- package/dist/chunks/{chunk-LGPOJEZK.js → chunk-4BAXYUZQ.js} +51 -17
- package/dist/chunks/chunk-4BAXYUZQ.js.map +6 -0
- package/dist/chunks/{chunk-GWLUXO4O.js → chunk-4RW7GDJ4.js} +2 -2
- package/dist/chunks/{chunk-PJF46DI6.js → chunk-4TIUY3Q6.js} +15 -5
- package/dist/chunks/chunk-4TIUY3Q6.js.map +6 -0
- package/dist/chunks/{chunk-NP4BQ7SB.js → chunk-4TJ7AGQO.js} +2 -2
- package/dist/chunks/{chunk-Y62WSR5N.js → chunk-567CSU37.js} +8 -8
- package/dist/chunks/{chunk-DGV6YSAW.js → chunk-5HMJ3DYR.js} +4 -4
- package/dist/chunks/{chunk-6CI5CHBT.js → chunk-5JVKE4LB.js} +7765 -2889
- 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-DT6PTS6H.js → chunk-6CSJRIUZ.js} +3 -3
- package/dist/chunks/{chunk-HEFLKPCT.js → chunk-6IOZY2AB.js} +41 -7
- package/dist/chunks/chunk-6IOZY2AB.js.map +6 -0
- package/dist/chunks/{chunk-R37C3PDS.js → chunk-6YXHH5JW.js} +5 -5
- package/dist/chunks/{chunk-R37C3PDS.js.map → chunk-6YXHH5JW.js.map} +1 -1
- package/dist/chunks/chunk-73HWWJYC.js +130 -0
- package/dist/chunks/chunk-73HWWJYC.js.map +6 -0
- package/dist/chunks/{chunk-5YTGRS7U.js → chunk-7J23SPSX.js} +7 -7
- package/dist/chunks/{chunk-LDU7AFNZ.js → chunk-7LDUPEXP.js} +25 -6
- package/dist/chunks/chunk-7LDUPEXP.js.map +6 -0
- package/dist/chunks/chunk-7Y4RR47U.js +197 -0
- package/dist/chunks/chunk-7Y4RR47U.js.map +6 -0
- package/dist/chunks/{chunk-SIG7WHBU.js → chunk-7YC42EXB.js} +5 -1
- package/dist/chunks/{chunk-SIG7WHBU.js.map → chunk-7YC42EXB.js.map} +1 -1
- package/dist/chunks/{chunk-ORSFP3ZC.js → chunk-ABKURT35.js} +36 -12
- package/dist/chunks/{chunk-ORSFP3ZC.js.map → chunk-ABKURT35.js.map} +1 -1
- package/dist/chunks/{chunk-SM6UI33D.js → chunk-ACO3LTRT.js} +8 -4
- package/dist/chunks/{chunk-SM6UI33D.js.map → chunk-ACO3LTRT.js.map} +1 -1
- package/dist/chunks/{chunk-SKFBM6OJ.js → chunk-AEXGGJUW.js} +5 -5
- package/dist/chunks/{chunk-BXAUUC2B.js → chunk-AIQKSTVJ.js} +4 -4
- package/dist/chunks/{chunk-6IWJ6JC6.js → chunk-ATCVFWXD.js} +476 -135
- package/dist/chunks/chunk-ATCVFWXD.js.map +6 -0
- package/dist/chunks/{chunk-3HT7FQNG.js → chunk-CEZW3NVM.js} +4 -4
- package/dist/chunks/{chunk-KUIATFLN.js → chunk-CG5CGXNF.js} +2 -2
- package/dist/chunks/{chunk-HENM67TJ.js → chunk-CNSKJ3DZ.js} +2 -2
- package/dist/chunks/{chunk-W6UOMYDX.js → chunk-CQFWLYTK.js} +2 -2
- package/dist/chunks/{chunk-DMHE6X3Y.js → chunk-D35UCVTK.js} +12 -40
- package/dist/chunks/chunk-D35UCVTK.js.map +6 -0
- package/dist/chunks/{chunk-FNEQ77RJ.js → chunk-D3SCA6NT.js} +102 -5
- package/dist/chunks/chunk-D3SCA6NT.js.map +6 -0
- package/dist/chunks/{chunk-7BF4FLOP.js → chunk-D6XZ4ZAV.js} +76 -17
- package/dist/chunks/chunk-D6XZ4ZAV.js.map +6 -0
- package/dist/chunks/{chunk-M5LA652U.js → chunk-DGYMR4WJ.js} +4 -4
- package/dist/chunks/{chunk-ABELB4VO.js → chunk-DJKWBSVM.js} +2 -2
- package/dist/chunks/{chunk-HIHHTWEU.js → chunk-DJTCZSSY.js} +2 -2
- package/dist/chunks/{chunk-VV6DYTFU.js → chunk-DKSFQRUM.js} +5 -5
- package/dist/chunks/{chunk-ETBXU3OK.js → chunk-DRWJTADQ.js} +6 -6
- package/dist/chunks/{chunk-ETBXU3OK.js.map → chunk-DRWJTADQ.js.map} +1 -1
- package/dist/chunks/{chunk-SHFB4DZP.js → chunk-E4RVHFV6.js} +2 -2
- package/dist/chunks/{chunk-NV7RJBWA.js → chunk-E65IWYTT.js} +6 -6
- package/dist/chunks/{chunk-N4YYJGMW.js → chunk-E6FMAE5Q.js} +11 -10
- package/dist/chunks/{chunk-N4YYJGMW.js.map → chunk-E6FMAE5Q.js.map} +1 -1
- package/dist/chunks/{chunk-PI5ZZQVH.js → chunk-EA6YICQ7.js} +3 -3
- package/dist/chunks/{chunk-JR6EFL7G.js → chunk-EGGO56FY.js} +2 -1
- package/dist/chunks/{chunk-TBKSDYS4.js → chunk-ESIICAI3.js} +3 -3
- package/dist/chunks/{chunk-MOMSIAV4.js → chunk-FEOS7UZ2.js} +2 -2
- package/dist/chunks/{chunk-AZXIYYVX.js → chunk-FK5C7SHM.js} +172 -34
- package/dist/chunks/chunk-FK5C7SHM.js.map +6 -0
- package/dist/chunks/{chunk-JDWCVWIQ.js → chunk-FMQCPAKR.js} +3 -3
- package/dist/chunks/{chunk-2JFRYOBC.js → chunk-FRGOWO6N.js} +11 -9
- package/dist/chunks/chunk-FRGOWO6N.js.map +6 -0
- package/dist/chunks/{chunk-2AEWJA4Y.js → chunk-G5LPTLLY.js} +4 -4
- package/dist/chunks/{chunk-2AEWJA4Y.js.map → chunk-G5LPTLLY.js.map} +1 -1
- package/dist/chunks/chunk-G76POTWW.js +188 -0
- package/dist/chunks/chunk-G76POTWW.js.map +6 -0
- package/dist/chunks/{chunk-2ZPB4ZBP.js → chunk-GEVWZWLM.js} +3 -3
- package/dist/chunks/chunk-GQ6WXY3M.js +435 -0
- package/dist/chunks/chunk-GQ6WXY3M.js.map +6 -0
- package/dist/chunks/{chunk-5ZPCQ2HL.js → chunk-GUK47JTV.js} +21 -7
- package/dist/chunks/chunk-GUK47JTV.js.map +6 -0
- package/dist/chunks/{chunk-4DNEDLBT.js → chunk-HGTOAMV6.js} +2444 -1383
- package/dist/chunks/chunk-HGTOAMV6.js.map +6 -0
- package/dist/chunks/{chunk-WSQAVWIV.js → chunk-HW2QBNAA.js} +13 -13
- package/dist/chunks/{chunk-ZR3VZG37.js → chunk-IJ6Z6FNY.js} +7 -186
- package/dist/chunks/chunk-IJ6Z6FNY.js.map +6 -0
- package/dist/chunks/{chunk-DOLGKZC5.js → chunk-IRAG3YXW.js} +5 -3
- package/dist/chunks/{chunk-77AYLILT.js → chunk-J5E4DV6R.js} +3 -3
- package/dist/chunks/{chunk-6TCZN54R.js → chunk-JPM3JXZB.js} +3 -3
- package/dist/chunks/{chunk-6BTNPDXR.js → chunk-JRWUIW4J.js} +2 -2
- package/dist/chunks/{chunk-3EH4PF5T.js → chunk-JUDJGDYX.js} +228 -5
- package/dist/chunks/chunk-JUDJGDYX.js.map +6 -0
- package/dist/chunks/chunk-JZTTOZRG.js +167 -0
- package/dist/chunks/chunk-JZTTOZRG.js.map +6 -0
- package/dist/chunks/{chunk-CKYGPQVJ.js → chunk-KBLYZ7L7.js} +3 -3
- package/dist/chunks/{chunk-6MGRBXCW.js → chunk-KETRBV2E.js} +2 -2
- package/dist/chunks/{chunk-C7ZKC7HY.js → chunk-KHGY6QJR.js} +160 -19
- package/dist/chunks/chunk-KHGY6QJR.js.map +6 -0
- package/dist/chunks/{chunk-RSO4LBHJ.js → chunk-KPOOM7QT.js} +7 -7
- package/dist/chunks/{chunk-WCAKWRZU.js → chunk-KVNL7XA6.js} +3 -3
- package/dist/chunks/{chunk-4LSSJKYK.js → chunk-LB4HC5U7.js} +19 -4
- package/dist/chunks/{chunk-4LSSJKYK.js.map → chunk-LB4HC5U7.js.map} +1 -1
- package/dist/chunks/{chunk-4PFTZNS5.js → chunk-LWJJDERP.js} +3 -3
- package/dist/chunks/{chunk-2P2PDEZJ.js → chunk-LXJW3ZYI.js} +24 -16
- package/dist/chunks/chunk-LXJW3ZYI.js.map +6 -0
- package/dist/chunks/{chunk-LGVEASS7.js → chunk-MDBUSIPW.js} +9 -8
- package/dist/chunks/{chunk-LGVEASS7.js.map → chunk-MDBUSIPW.js.map} +1 -1
- package/dist/chunks/{chunk-763RT6Z5.js → chunk-MDVYEFTI.js} +2 -2
- package/dist/chunks/{chunk-DROVNI2Y.js → chunk-MF57EX7H.js} +3 -3
- package/dist/chunks/{chunk-J6QCR3SC.js → chunk-MF5KTVGJ.js} +15 -15
- package/dist/chunks/{chunk-XF243FQN.js → chunk-MRZHTIE7.js} +21 -6
- package/dist/chunks/chunk-MRZHTIE7.js.map +6 -0
- package/dist/chunks/{chunk-S7YXINNY.js → chunk-O2PZDA5H.js} +3 -3
- package/dist/chunks/{chunk-PK7M7VIU.js → chunk-OA7QKUCM.js} +13 -13
- package/dist/chunks/{chunk-MY6JV4BT.js → chunk-OH7EYW3T.js} +7 -9
- package/dist/chunks/chunk-OH7EYW3T.js.map +6 -0
- package/dist/chunks/{chunk-GJ6NI7JL.js → chunk-OOJP5BEK.js} +408 -50
- package/dist/chunks/chunk-OOJP5BEK.js.map +6 -0
- package/dist/chunks/{chunk-JCH7IWMU.js → chunk-OQWLQUO7.js} +3680 -877
- package/dist/chunks/chunk-OQWLQUO7.js.map +6 -0
- package/dist/chunks/{chunk-LXK7S2I2.js → chunk-OSC47PCX.js} +157 -11
- package/dist/chunks/chunk-OSC47PCX.js.map +6 -0
- package/dist/chunks/{chunk-ZDGKFGVE.js → chunk-P4TCLMD6.js} +2 -2
- package/dist/chunks/{chunk-WYBLTKBR.js → chunk-P725GKKG.js} +17 -20
- package/dist/chunks/{chunk-WYBLTKBR.js.map → chunk-P725GKKG.js.map} +1 -1
- package/dist/chunks/{chunk-IZYYWNP2.js → chunk-PFVYYH6O.js} +2 -2
- package/dist/chunks/{chunk-RP5HOVOW.js → chunk-PKFXIWVX.js} +4 -4
- package/dist/chunks/{chunk-ZWP5L7BV.js → chunk-PQT7624W.js} +8 -8
- package/dist/chunks/{chunk-DRKCWJPR.js → chunk-Q6PZODSV.js} +26 -13
- package/dist/chunks/chunk-Q6PZODSV.js.map +6 -0
- package/dist/chunks/{chunk-FEP2R3XI.js → chunk-QTHG6UPU.js} +2 -2
- package/dist/chunks/{chunk-MMJ6UURB.js → chunk-QZTTIL3A.js} +3 -3
- package/dist/chunks/chunk-RHJOIAFS.js +201 -0
- package/dist/chunks/chunk-RHJOIAFS.js.map +6 -0
- package/dist/chunks/{chunk-LWAGZIEA.js → chunk-RZKIZTPA.js} +2 -2
- package/dist/chunks/{chunk-QTQIHFYH.js → chunk-S7FE35WQ.js} +3 -3
- package/dist/chunks/{chunk-233CEYFX.js → chunk-SS6IJAPA.js} +2 -2
- package/dist/chunks/chunk-SSPHAILP.js +39 -0
- package/dist/chunks/chunk-SSPHAILP.js.map +6 -0
- package/dist/chunks/{chunk-5C6XCI24.js → chunk-TORIEDBN.js} +4 -4
- package/dist/chunks/{chunk-6E4TDPXP.js → chunk-TP7DRQXE.js} +25 -7
- package/dist/chunks/chunk-TP7DRQXE.js.map +6 -0
- package/dist/chunks/{chunk-OZ55WTNZ.js → chunk-TRRKG642.js} +3 -3
- package/dist/chunks/{dist-NUCTP67R.js → chunk-TYNAB5GR.js} +351 -46
- package/dist/chunks/chunk-TYNAB5GR.js.map +6 -0
- package/dist/chunks/{chunk-D5N3SDNF.js → chunk-UFGLSUGU.js} +25 -25
- package/dist/chunks/{list-2QV773EI.js → chunk-UL6MZ5OM.js} +87 -60
- package/dist/chunks/chunk-UL6MZ5OM.js.map +6 -0
- package/dist/chunks/{chunk-RYLQH5BB.js → chunk-VE4XIWDW.js} +3 -3
- package/dist/chunks/{chunk-GPP4OXHP.js → chunk-VJHENTNB.js} +2 -2
- package/dist/chunks/{chunk-3ZHOM2L7.js → chunk-VL6Z2OMG.js} +15 -63
- package/dist/chunks/chunk-VL6Z2OMG.js.map +6 -0
- package/dist/chunks/{chunk-6TF24TFD.js → chunk-VSNV3U2B.js} +57 -9
- package/dist/chunks/chunk-VSNV3U2B.js.map +6 -0
- package/dist/chunks/{chunk-PPCKNQOQ.js → chunk-W4S4ZBXX.js} +15 -11
- package/dist/chunks/chunk-W4S4ZBXX.js.map +6 -0
- package/dist/chunks/{chunk-AF2QPFEQ.js → chunk-W752G3FM.js} +3 -3
- package/dist/chunks/{chunk-REYJHS2X.js → chunk-WGC5DJEW.js} +106 -108
- package/dist/chunks/chunk-WGC5DJEW.js.map +6 -0
- package/dist/chunks/{chunk-FSAI4GDZ.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-UILPXAKQ.js → chunk-WXYRLTRY.js} +37 -14
- package/dist/chunks/chunk-WXYRLTRY.js.map +6 -0
- package/dist/chunks/{chunk-BFYETM56.js → chunk-XJALHM5Z.js} +91 -6
- package/dist/chunks/chunk-XJALHM5Z.js.map +6 -0
- package/dist/chunks/{chunk-4E2REC5O.js → chunk-XLXPPVUT.js} +2 -2
- package/dist/chunks/{chunk-BJQ7WFWL.js → chunk-XVOPQCPD.js} +35 -3
- package/dist/chunks/chunk-XVOPQCPD.js.map +6 -0
- package/dist/chunks/{chunk-NOHH27YE.js → chunk-YNWPC3HO.js} +5 -5
- package/dist/chunks/{chunk-ICIVSMA3.js → chunk-ZQGCZYAE.js} +2 -2
- package/dist/chunks/{cli-runtime-66YC7XKZ.js → cli-runtime-P6LCHPBA.js} +35 -20
- package/dist/chunks/cli-runtime-P6LCHPBA.js.map +6 -0
- package/dist/chunks/{commands-R6WIMNZG.js → commands-BNHIQVYO.js} +6 -6
- package/dist/chunks/{computer-FQRWTC6M.js → computer-6P3GAOV2.js} +15 -7
- package/dist/chunks/computer-6P3GAOV2.js.map +6 -0
- package/dist/chunks/{config-BWAJ7XDA.js → config-ZMXMX2WY.js} +20 -17
- package/dist/chunks/config-ZMXMX2WY.js.map +6 -0
- package/dist/chunks/{cost-MVUQ3UWP.js → cost-BJKADKEZ.js} +5 -5
- package/dist/chunks/{crash-report-ASOVDFQT.js → crash-report-OJHGVRD7.js} +6 -6
- package/dist/chunks/{dist-6BE2BTVP.js → dist-43XWK3LF.js} +2 -2
- package/dist/chunks/dist-4LEGETQA.js +52 -0
- package/dist/chunks/{dist-ZPPSUKEG.js → dist-4ZPDHZOX.js} +150 -2
- package/dist/chunks/{dist-SQYPEQ4A.js → dist-ADQAO5C3.js} +2 -2
- package/dist/chunks/{dist-DOHBDUFC.js → dist-BGJEX527.js} +2 -2
- package/dist/chunks/{dist-ERFNYYTR.js → dist-FMFNU4M3.js} +2 -2
- package/dist/chunks/{dist-IYSARJ7B.js → dist-NCBDELMI.js} +2 -2
- package/dist/chunks/{dist-UTQTSM32.js → dist-PMSBTFU5.js} +10 -2
- package/dist/chunks/{dist-UTQTSM32.js.map → dist-PMSBTFU5.js.map} +1 -1
- package/dist/chunks/{doctor-J2BRJDVI.js → doctor-AIYB27QY.js} +42 -41
- package/dist/chunks/{drain-TGBUG6MO.js → drain-PYKX4QNR.js} +20 -19
- package/dist/chunks/{drain-TGBUG6MO.js.map → drain-PYKX4QNR.js.map} +1 -1
- package/dist/chunks/{entry-7QM6GODJ.js → entry-HM5E7KCD.js} +6 -6
- package/dist/chunks/{eval-274GGZ3M.js → eval-H4NKZYVV.js} +12 -12
- package/dist/chunks/{eval-274GGZ3M.js.map → eval-H4NKZYVV.js.map} +1 -1
- package/dist/chunks/{exec-QOH5FQCM.js → exec-2PRVZNUX.js} +174 -65
- package/dist/chunks/exec-2PRVZNUX.js.map +6 -0
- package/dist/chunks/{extension-Y52E4FZR.js → extension-4233XOZW.js} +5 -5
- package/dist/chunks/{github-X352BD5R.js → github-IF3JVVJF.js} +5 -1
- package/dist/chunks/github-IF3JVVJF.js.map +6 -0
- package/dist/chunks/{home-OGOBLYWY.js → home-AZY7APF6.js} +3 -3
- package/dist/chunks/homes-WL6LAAY5.js +24 -0
- package/dist/chunks/{hooks-C6WM34FA.js → hooks-AK5S4YUS.js} +22 -22
- package/dist/chunks/{hooks-report-FCLN3ERK.js → hooks-report-NJLGBWN3.js} +18 -18
- package/dist/chunks/{host-FUPSAICG.js → host-SX3QC5FN.js} +10 -10
- package/dist/chunks/host-queries-HBW7AW44.js +37 -0
- package/dist/chunks/{installed-list-3Z2UYHZL.js → installed-list-44QXUJFE.js} +4 -4
- package/dist/chunks/{learn-EXNQYLI3.js → learn-LW4DLSGZ.js} +18 -18
- package/dist/chunks/{learn-builtin-C4ZAVNHA.js → learn-builtin-4RV2XDH4.js} +23 -22
- package/dist/chunks/{learn-builtin-C4ZAVNHA.js.map → learn-builtin-4RV2XDH4.js.map} +1 -1
- package/dist/chunks/{lifecycle-4ZRBSEP2.js → lifecycle-AJCHTSAF.js} +34 -34
- package/dist/chunks/list-DT7AJVPX.js +56 -0
- package/dist/chunks/{live-33QEKVAM.js → live-Z6HZFXPW.js} +41 -40
- package/dist/chunks/{load-SYMNQIDR.js → load-454TJBPW.js} +12 -10
- package/dist/chunks/{logs-IW7PYTI2.js → logs-GRUSUSL7.js} +5 -5
- package/dist/chunks/{mcp-HP3YRE3U.js → mcp-AFLRDYNN.js} +449 -61
- package/dist/chunks/mcp-AFLRDYNN.js.map +6 -0
- package/dist/chunks/mcp-serve-NNWP4IES.js +311 -0
- package/dist/chunks/mcp-serve-NNWP4IES.js.map +6 -0
- package/dist/chunks/{message-command-IFQSBBI5.js → message-command-ZR2JQBBU.js} +59 -54
- package/dist/chunks/message-command-ZR2JQBBU.js.map +6 -0
- package/dist/chunks/{open-3GVSPGUF.js → open-Z3BELFL7.js} +7 -7
- package/dist/chunks/{operator-tools-HT7UNWNK.js → operator-tools-PN3SPQ3C.js} +15 -16
- package/dist/chunks/operator-tools-PN3SPQ3C.js.map +6 -0
- package/dist/chunks/{output-schema-MKFI5PWR.js → output-schema-DSR56W6A.js} +3 -3
- package/dist/chunks/{pal-6KB3D324.js → pal-ZOH5ILEV.js} +150 -15
- package/dist/chunks/pal-ZOH5ILEV.js.map +6 -0
- package/dist/chunks/{peers-CGTVWK6B.js → peers-LXNB4QSL.js} +7 -7
- package/dist/chunks/{peers-4M45XTZO.js → peers-WINODTEB.js} +216 -34
- package/dist/chunks/peers-WINODTEB.js.map +6 -0
- package/dist/chunks/{plugin-FIVP6MGJ.js → plugin-MLHZ42NZ.js} +23 -18
- package/dist/chunks/plugin-MLHZ42NZ.js.map +6 -0
- package/dist/chunks/{providers-Z3KLRJDW.js → providers-AVECY67I.js} +10 -10
- package/dist/chunks/{providers-6634CTX7.js → providers-UOTUEQOJ.js} +22 -19
- package/dist/chunks/providers-UOTUEQOJ.js.map +6 -0
- package/dist/chunks/{pty-GMA24QAT.js → pty-GW2YC23H.js} +3 -3
- package/dist/chunks/resume-AYWSKWEX.js +25 -0
- package/dist/chunks/{resume-command-MXUIVG6T.js → resume-command-FXT3KGLC.js} +5 -5
- package/dist/chunks/{running-HYMQGZMF.js → running-3NLAODZ7.js} +4 -4
- package/dist/chunks/schedule-TTQUT45H.js +559 -0
- package/dist/chunks/schedule-TTQUT45H.js.map +6 -0
- package/dist/chunks/{send-IFZ7XPTF.js → send-FRNTRW2M.js} +19 -18
- package/dist/chunks/send-person-57F5RJA7.js +32 -0
- package/dist/chunks/{serve-CZDHGDZL.js → serve-4VIDXLEB.js} +2 -2
- package/dist/chunks/{service-Y5N7WIHV.js → service-TCKPUGL5.js} +459 -83
- package/dist/chunks/service-TCKPUGL5.js.map +6 -0
- package/dist/chunks/{setting-cli-CJMZHIMQ.js → setting-cli-HGYOIGC6.js} +13 -13
- package/dist/chunks/{skills-VSVXQTY3.js → skills-ICVGYWBH.js} +29 -25
- package/dist/chunks/skills-ICVGYWBH.js.map +6 -0
- package/dist/chunks/{start-check-MZGEYSQD.js → start-check-C5VJXVPY.js} +2 -2
- package/dist/chunks/{startup-failure-QS7O3M62.js → startup-failure-YQSEQRNQ.js} +2 -2
- package/dist/chunks/{state-IRA33PLY.js → state-2DBTSDEP.js} +560 -28
- package/dist/chunks/state-2DBTSDEP.js.map +6 -0
- package/dist/chunks/{store-5QOUJL3S.js → store-CZGKLVTT.js} +12 -13
- package/dist/chunks/{store-LIG46NWV.js → store-JJKCDY7Y.js} +6 -4
- package/dist/chunks/{store-VRWL26C2.js → store-RJZCW2MI.js} +8 -8
- package/dist/chunks/store-RJZCW2MI.js.map +6 -0
- package/dist/chunks/{store-N4CURUP2.js → store-S4BT3ESJ.js} +3 -3
- package/dist/chunks/store-S4BT3ESJ.js.map +6 -0
- package/dist/chunks/{tui-KFWUIY7N.js → tui-Q7ED7VFI.js} +110 -92
- package/dist/chunks/tui-Q7ED7VFI.js.map +6 -0
- package/dist/chunks/{upgrade-BIHZ3JJV.js → update-G7D3YCH5.js} +35 -35
- package/dist/chunks/{upgrade-BIHZ3JJV.js.map → update-G7D3YCH5.js.map} +2 -2
- package/dist/chunks/{watch-OUI2U5YK.js → watch-EON3IWRY.js} +104 -94
- package/dist/chunks/watch-EON3IWRY.js.map +6 -0
- package/dist/chunks/{workspaces-CB5DV4KR.js → workspaces-O6S2OTDL.js} +15 -20
- package/dist/chunks/workspaces-O6S2OTDL.js.map +6 -0
- package/dist/chunks/{worktree-PNG7MZV3.js → worktree-A2DNXLOT.js} +26 -23
- package/dist/chunks/worktree-A2DNXLOT.js.map +6 -0
- package/dist/cli-runtime.d.ts +3 -1
- package/dist/cli-runtime.d.ts.map +1 -1
- package/dist/cli.d.ts +15 -0
- package/dist/cli.d.ts.map +1 -1
- package/dist/commands/acp-browser-pane.d.ts +81 -0
- package/dist/commands/acp-browser-pane.d.ts.map +1 -0
- 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-provider-retry.d.ts +2 -1
- package/dist/commands/acp-provider-retry.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 +25 -1
- package/dist/commands/acp.d.ts.map +1 -1
- package/dist/commands/action-help.d.ts +37 -0
- package/dist/commands/action-help.d.ts.map +1 -0
- package/dist/commands/actions/auth.d.ts +3 -0
- package/dist/commands/actions/auth.d.ts.map +1 -0
- package/dist/commands/actions/browser.d.ts +3 -0
- package/dist/commands/actions/browser.d.ts.map +1 -0
- package/dist/commands/actions/extension.d.ts +3 -0
- package/dist/commands/actions/extension.d.ts.map +1 -0
- package/dist/commands/actions/mcp.d.ts +3 -0
- package/dist/commands/actions/mcp.d.ts.map +1 -0
- package/dist/commands/actions/pal.d.ts +3 -0
- package/dist/commands/actions/pal.d.ts.map +1 -0
- package/dist/commands/actions/peers.d.ts +3 -0
- package/dist/commands/actions/peers.d.ts.map +1 -0
- package/dist/commands/actions/schedule.d.ts +3 -0
- package/dist/commands/actions/schedule.d.ts.map +1 -0
- package/dist/commands/actions/small.d.ts +11 -0
- package/dist/commands/actions/small.d.ts.map +1 -0
- package/dist/commands/archive.d.ts.map +1 -1
- package/dist/commands/auth-status.d.ts +24 -0
- package/dist/commands/auth-status.d.ts.map +1 -0
- package/dist/commands/auth.d.ts +9 -0
- package/dist/commands/auth.d.ts.map +1 -0
- package/dist/commands/browser.d.ts.map +1 -1
- package/dist/commands/computer.d.ts.map +1 -1
- package/dist/commands/config.d.ts.map +1 -1
- package/dist/commands/desktop-host.d.ts +6 -3
- package/dist/commands/desktop-host.d.ts.map +1 -1
- package/dist/commands/drain.d.ts.map +1 -1
- package/dist/commands/exec-flags.d.ts +17 -3
- package/dist/commands/exec-flags.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/extension.d.ts.map +1 -1
- package/dist/commands/github.d.ts.map +1 -1
- package/dist/commands/launch-extras.d.ts +49 -0
- package/dist/commands/launch-extras.d.ts.map +1 -0
- package/dist/commands/lazy.d.ts +3 -3
- package/dist/commands/lazy.d.ts.map +1 -1
- package/dist/commands/learn-builtin.d.ts.map +1 -1
- package/dist/commands/login.d.ts +1 -1
- package/dist/commands/manifest.d.ts +3 -4
- package/dist/commands/manifest.d.ts.map +1 -1
- package/dist/commands/mcp-serve.d.ts +16 -0
- package/dist/commands/mcp-serve.d.ts.map +1 -0
- package/dist/commands/mcp.d.ts.map +1 -1
- package/dist/commands/pal.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/plugin.d.ts.map +1 -1
- package/dist/commands/providers.d.ts.map +1 -1
- package/dist/commands/registry.d.ts.map +1 -1
- package/dist/commands/run-flags.d.ts +10 -2
- package/dist/commands/run-flags.d.ts.map +1 -1
- package/dist/commands/schedule.d.ts.map +1 -1
- package/dist/commands/skills.d.ts.map +1 -1
- package/dist/commands/state.d.ts +11 -0
- package/dist/commands/state.d.ts.map +1 -1
- package/dist/commands/types.d.ts +9 -2
- package/dist/commands/types.d.ts.map +1 -1
- package/dist/commands/{upgrade-progress.d.ts → update-progress.d.ts} +3 -3
- package/dist/commands/update-progress.d.ts.map +1 -0
- package/dist/commands/{upgrade.d.ts → update.d.ts} +9 -9
- package/dist/commands/update.d.ts.map +1 -0
- package/dist/commands/workspaces.d.ts +1 -1
- package/dist/commands/workspaces.d.ts.map +1 -1
- package/dist/commands/worktree.d.ts.map +1 -1
- package/dist/computer/run.d.ts.map +1 -1
- package/dist/config/debug.d.ts.map +1 -1
- package/dist/config/hook-common-shape.d.ts.map +1 -1
- package/dist/config/hooks-report.d.ts +3 -1
- package/dist/config/hooks-report.d.ts.map +1 -1
- package/dist/config/load.d.ts +40 -0
- package/dist/config/load.d.ts.map +1 -1
- package/dist/config/schema.d.ts +70 -2
- 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/doctrine.d.ts.map +1 -1
- package/dist/context/environment.d.ts +15 -0
- package/dist/context/environment.d.ts.map +1 -1
- package/dist/context/file-placement.d.ts.map +1 -1
- package/dist/context/project-tracker.d.ts +3 -0
- package/dist/context/project-tracker.d.ts.map +1 -1
- package/dist/context/system-prompt.d.ts +6 -0
- package/dist/context/system-prompt.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 +42 -41
- package/dist/integrations/auto-update/apply.d.ts +1 -1
- package/dist/integrations/auto-update/apply.d.ts.map +1 -1
- package/dist/integrations/auto-update/policy.d.ts +1 -1
- package/dist/integrations/auto-update/policy.d.ts.map +1 -1
- package/dist/integrations/auto-update/state.d.ts +1 -1
- package/dist/integrations/auto-update/state.d.ts.map +1 -1
- 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/project-file.d.ts +16 -0
- package/dist/integrations/mcp/project-file.d.ts.map +1 -0
- package/dist/integrations/mcp/serve.d.ts +55 -0
- package/dist/integrations/mcp/serve.d.ts.map +1 -0
- package/dist/integrations/mcp/servers.d.ts +42 -1
- package/dist/integrations/mcp/servers.d.ts.map +1 -1
- package/dist/integrations/mcp/shared-file.d.ts +2 -1
- package/dist/integrations/mcp/shared-file.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/controller.d.ts.map +1 -1
- 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 +9 -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 +5 -1
- package/dist/integrations/network/types.d.ts.map +1 -1
- package/dist/integrations/npm-global.d.ts +2 -2
- package/dist/integrations/npm-global.d.ts.map +1 -1
- package/dist/integrations/outstanding/status.d.ts +4 -0
- package/dist/integrations/outstanding/status.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/connections.d.ts +1 -1
- package/dist/integrations/providers/connections.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/providers/pending-login.d.ts +1 -1
- package/dist/integrations/providers/subscription-login.d.ts +1 -1
- package/dist/integrations/sessions/session-watch.d.ts +8 -1
- package/dist/integrations/sessions/session-watch.d.ts.map +1 -1
- package/dist/integrations/state/purge.d.ts +66 -0
- package/dist/integrations/state/purge.d.ts.map +1 -0
- package/dist/integrations/subagents/activity.d.ts +21 -2
- 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/row-labels.d.ts +18 -0
- package/dist/integrations/subagents/row-labels.d.ts.map +1 -0
- package/dist/integrations/subagents/runtime.d.ts +49 -2
- package/dist/integrations/subagents/runtime.d.ts.map +1 -1
- package/dist/integrations/subagents/stop-guidance.d.ts +14 -0
- package/dist/integrations/subagents/stop-guidance.d.ts.map +1 -0
- 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/integrations/web/open-url.d.ts +1 -1
- package/dist/integrations/web/search.d.ts +1 -1
- package/dist/integrations/workflows/host.d.ts.map +1 -1
- package/dist/integrations/workflows/notice.d.ts +9 -0
- package/dist/integrations/workflows/notice.d.ts.map +1 -1
- package/dist/integrations/workflows/offering.d.ts +3 -2
- package/dist/integrations/workflows/offering.d.ts.map +1 -1
- package/dist/integrations/workflows/orphans.d.ts +17 -0
- package/dist/integrations/workflows/orphans.d.ts.map +1 -1
- package/dist/integrations/workflows/owners.d.ts +17 -0
- package/dist/integrations/workflows/owners.d.ts.map +1 -0
- package/dist/integrations/workflows/registry.d.ts +17 -2
- package/dist/integrations/workflows/registry.d.ts.map +1 -1
- package/dist/logging.d.ts +10 -1
- package/dist/logging.d.ts.map +1 -1
- package/dist/memory/screen-archive.d.ts +2 -0
- package/dist/memory/screen-archive.d.ts.map +1 -1
- package/dist/pals/agent-session.d.ts.map +1 -1
- package/dist/pals/dispatch.d.ts.map +1 -1
- package/dist/permissions/auto-classifier.d.ts.map +1 -1
- package/dist/permissions/launch.d.ts +1 -1
- package/dist/permissions/mode.d.ts +2 -2
- package/dist/permissions/path-rules.d.ts.map +1 -1
- package/dist/permissions/rules.d.ts +2 -0
- package/dist/permissions/rules.d.ts.map +1 -1
- package/dist/permissions/tool-flags.d.ts +5 -1
- package/dist/permissions/tool-flags.d.ts.map +1 -1
- package/dist/reminders/changed-files.d.ts.map +1 -1
- package/dist/reminders/frame.d.ts +1 -1
- package/dist/reminders/frame.d.ts.map +1 -1
- package/dist/reminders/hypermode.d.ts.map +1 -1
- package/dist/reminders/index.d.ts +3 -0
- package/dist/reminders/index.d.ts.map +1 -1
- package/dist/reminders/memory-nudge.d.ts +20 -0
- package/dist/reminders/memory-nudge.d.ts.map +1 -0
- package/dist/schedule/commands/add.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 +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 +82 -29
- 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 -7
- 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/PendingInputPanel.d.ts +2 -0
- package/dist/tui/PendingInputPanel.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/StatusBar.d.ts +8 -1
- package/dist/tui/StatusBar.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-calls.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 +139 -8
- 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/context-grid.d.ts +5 -0
- package/dist/tui/context-grid.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/fullscreen/FullscreenTranscript.d.ts +3 -2
- package/dist/tui/fullscreen/FullscreenTranscript.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/keypad-keys.d.ts +1 -1
- package/dist/tui/keypad-keys.d.ts.map +1 -1
- package/dist/tui/launch-settings.d.ts +2 -0
- package/dist/tui/launch-settings.d.ts.map +1 -1
- package/dist/tui/login-prompt.d.ts +1 -1
- package/dist/tui/markdown-wrap.d.ts +4 -0
- package/dist/tui/markdown-wrap.d.ts.map +1 -1
- package/dist/tui/notice-display.d.ts +8 -0
- package/dist/tui/notice-display.d.ts.map +1 -0
- package/dist/tui/outcome-line.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/stopped-turn-line.d.ts +22 -0
- package/dist/tui/stopped-turn-line.d.ts.map +1 -0
- 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/tool-presentation.d.ts +2 -0
- package/dist/tui/tool-presentation.d.ts.map +1 -1
- package/dist/tui/types.d.ts +31 -2
- package/dist/tui/types.d.ts.map +1 -1
- package/dist/tui/untrusted-display.d.ts +12 -0
- package/dist/tui/untrusted-display.d.ts.map +1 -0
- package/dist/tui/web-activity.d.ts +4 -2
- package/dist/tui/web-activity.d.ts.map +1 -1
- package/dist/usage-error.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 +8 -8
- 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 +40 -18
- 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-DEH76VXL.js.map +0 -6
- package/dist/chunks/activity-command-GETWRD67.js.map +0 -6
- package/dist/chunks/add-XFYJ6UZE.js.map +0 -6
- package/dist/chunks/agent-session-2YJCVWPX.js +0 -87
- package/dist/chunks/archive-PA5MDKXC.js.map +0 -6
- package/dist/chunks/bin-main-RH4NLAPK.js.map +0 -6
- package/dist/chunks/browser-ZMNLA73K.js +0 -31
- package/dist/chunks/browser-ZMNLA73K.js.map +0 -6
- package/dist/chunks/chat-UNZSJZ6U.js.map +0 -6
- package/dist/chunks/chunk-2JFRYOBC.js.map +0 -6
- package/dist/chunks/chunk-2P2PDEZJ.js.map +0 -6
- package/dist/chunks/chunk-3EH4PF5T.js.map +0 -6
- package/dist/chunks/chunk-3ZHOM2L7.js.map +0 -6
- package/dist/chunks/chunk-4DNEDLBT.js.map +0 -6
- package/dist/chunks/chunk-5ZPCQ2HL.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-6CI5CHBT.js.map +0 -6
- package/dist/chunks/chunk-6E4TDPXP.js.map +0 -6
- package/dist/chunks/chunk-6IWJ6JC6.js.map +0 -6
- package/dist/chunks/chunk-6MQHDX7R.js.map +0 -6
- package/dist/chunks/chunk-6TF24TFD.js.map +0 -6
- package/dist/chunks/chunk-7BF4FLOP.js.map +0 -6
- package/dist/chunks/chunk-AZXIYYVX.js.map +0 -6
- package/dist/chunks/chunk-BFYETM56.js.map +0 -6
- package/dist/chunks/chunk-BJQ7WFWL.js.map +0 -6
- package/dist/chunks/chunk-C7ZKC7HY.js.map +0 -6
- package/dist/chunks/chunk-CPDGXVVE.js +0 -94
- package/dist/chunks/chunk-CPDGXVVE.js.map +0 -6
- package/dist/chunks/chunk-DMHE6X3Y.js.map +0 -6
- package/dist/chunks/chunk-DRKCWJPR.js.map +0 -6
- package/dist/chunks/chunk-FNEQ77RJ.js.map +0 -6
- package/dist/chunks/chunk-FSAI4GDZ.js.map +0 -6
- package/dist/chunks/chunk-GJ6NI7JL.js.map +0 -6
- package/dist/chunks/chunk-HEFLKPCT.js.map +0 -6
- package/dist/chunks/chunk-JCH7IWMU.js.map +0 -6
- package/dist/chunks/chunk-LDU7AFNZ.js.map +0 -6
- package/dist/chunks/chunk-LGPOJEZK.js.map +0 -6
- package/dist/chunks/chunk-LXK7S2I2.js.map +0 -6
- package/dist/chunks/chunk-MY6JV4BT.js.map +0 -6
- package/dist/chunks/chunk-PJF46DI6.js.map +0 -6
- package/dist/chunks/chunk-PPCKNQOQ.js.map +0 -6
- package/dist/chunks/chunk-REYJHS2X.js.map +0 -6
- package/dist/chunks/chunk-UILPXAKQ.js.map +0 -6
- package/dist/chunks/chunk-XF243FQN.js.map +0 -6
- package/dist/chunks/chunk-ZR3VZG37.js.map +0 -6
- package/dist/chunks/cli-runtime-66YC7XKZ.js.map +0 -6
- package/dist/chunks/computer-FQRWTC6M.js.map +0 -6
- package/dist/chunks/config-BWAJ7XDA.js.map +0 -6
- package/dist/chunks/dist-NUCTP67R.js.map +0 -6
- package/dist/chunks/exec-QOH5FQCM.js.map +0 -6
- package/dist/chunks/github-X352BD5R.js.map +0 -6
- package/dist/chunks/host-queries-YTND6J2W.js +0 -38
- package/dist/chunks/list-2QV773EI.js.map +0 -6
- package/dist/chunks/login-KN5KQXOD.js +0 -38
- package/dist/chunks/mcp-HP3YRE3U.js.map +0 -6
- package/dist/chunks/message-command-IFQSBBI5.js.map +0 -6
- package/dist/chunks/operator-tools-HT7UNWNK.js.map +0 -6
- package/dist/chunks/pal-6KB3D324.js.map +0 -6
- package/dist/chunks/peers-4M45XTZO.js.map +0 -6
- package/dist/chunks/plugin-FIVP6MGJ.js.map +0 -6
- package/dist/chunks/providers-6634CTX7.js.map +0 -6
- package/dist/chunks/resume-OEUL3DML.js +0 -26
- package/dist/chunks/schedule-54POTO5A.js +0 -282
- package/dist/chunks/schedule-54POTO5A.js.map +0 -6
- package/dist/chunks/send-person-YV7Y3N7V.js +0 -31
- package/dist/chunks/service-Y5N7WIHV.js.map +0 -6
- package/dist/chunks/skills-VSVXQTY3.js.map +0 -6
- package/dist/chunks/state-IRA33PLY.js.map +0 -6
- package/dist/chunks/tui-KFWUIY7N.js.map +0 -6
- package/dist/chunks/watch-OUI2U5YK.js.map +0 -6
- package/dist/chunks/workspaces-CB5DV4KR.js.map +0 -6
- package/dist/chunks/worktree-PNG7MZV3.js.map +0 -6
- package/dist/commands/upgrade-progress.d.ts.map +0 -1
- package/dist/commands/upgrade.d.ts.map +0 -1
- package/skills/verify-change/SKILL.md +0 -63
- /package/dist/chunks/{agent-FW4VC2AF.js.map → agent-Z6PJYBAO.js.map} +0 -0
- /package/dist/chunks/{agent-session-2YJCVWPX.js.map → agent-session-WXWW7E5M.js.map} +0 -0
- /package/dist/chunks/{binding-ON644UJ3.js.map → binding-5UJYMFMU.js.map} +0 -0
- /package/dist/chunks/{chunk-IMXTM75Q.js.map → chunk-23D5IXMW.js.map} +0 -0
- /package/dist/chunks/{chunk-PYYDU2BC.js.map → chunk-24EZWZDZ.js.map} +0 -0
- /package/dist/chunks/{chunk-WDROVY6V.js.map → chunk-2EVP6BX4.js.map} +0 -0
- /package/dist/chunks/{chunk-M4XYHIA3.js.map → chunk-2KC52MDS.js.map} +0 -0
- /package/dist/chunks/{chunk-GVWDNFIP.js.map → chunk-2VP2Q657.js.map} +0 -0
- /package/dist/chunks/{chunk-Z6LUWKV4.js.map → chunk-3ETXWTV4.js.map} +0 -0
- /package/dist/chunks/{chunk-3Z5OXTDI.js.map → chunk-3PH6F6Z3.js.map} +0 -0
- /package/dist/chunks/{chunk-GWLUXO4O.js.map → chunk-4RW7GDJ4.js.map} +0 -0
- /package/dist/chunks/{chunk-NP4BQ7SB.js.map → chunk-4TJ7AGQO.js.map} +0 -0
- /package/dist/chunks/{chunk-Y62WSR5N.js.map → chunk-567CSU37.js.map} +0 -0
- /package/dist/chunks/{chunk-DGV6YSAW.js.map → chunk-5HMJ3DYR.js.map} +0 -0
- /package/dist/chunks/{chunk-DT6PTS6H.js.map → chunk-6CSJRIUZ.js.map} +0 -0
- /package/dist/chunks/{chunk-5YTGRS7U.js.map → chunk-7J23SPSX.js.map} +0 -0
- /package/dist/chunks/{chunk-SKFBM6OJ.js.map → chunk-AEXGGJUW.js.map} +0 -0
- /package/dist/chunks/{chunk-BXAUUC2B.js.map → chunk-AIQKSTVJ.js.map} +0 -0
- /package/dist/chunks/{chunk-3HT7FQNG.js.map → chunk-CEZW3NVM.js.map} +0 -0
- /package/dist/chunks/{chunk-KUIATFLN.js.map → chunk-CG5CGXNF.js.map} +0 -0
- /package/dist/chunks/{chunk-HENM67TJ.js.map → chunk-CNSKJ3DZ.js.map} +0 -0
- /package/dist/chunks/{chunk-W6UOMYDX.js.map → chunk-CQFWLYTK.js.map} +0 -0
- /package/dist/chunks/{chunk-M5LA652U.js.map → chunk-DGYMR4WJ.js.map} +0 -0
- /package/dist/chunks/{chunk-ABELB4VO.js.map → chunk-DJKWBSVM.js.map} +0 -0
- /package/dist/chunks/{chunk-HIHHTWEU.js.map → chunk-DJTCZSSY.js.map} +0 -0
- /package/dist/chunks/{chunk-VV6DYTFU.js.map → chunk-DKSFQRUM.js.map} +0 -0
- /package/dist/chunks/{chunk-SHFB4DZP.js.map → chunk-E4RVHFV6.js.map} +0 -0
- /package/dist/chunks/{chunk-NV7RJBWA.js.map → chunk-E65IWYTT.js.map} +0 -0
- /package/dist/chunks/{chunk-PI5ZZQVH.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-TBKSDYS4.js.map → chunk-ESIICAI3.js.map} +0 -0
- /package/dist/chunks/{chunk-MOMSIAV4.js.map → chunk-FEOS7UZ2.js.map} +0 -0
- /package/dist/chunks/{chunk-JDWCVWIQ.js.map → chunk-FMQCPAKR.js.map} +0 -0
- /package/dist/chunks/{chunk-2ZPB4ZBP.js.map → chunk-GEVWZWLM.js.map} +0 -0
- /package/dist/chunks/{chunk-WSQAVWIV.js.map → chunk-HW2QBNAA.js.map} +0 -0
- /package/dist/chunks/{chunk-DOLGKZC5.js.map → chunk-IRAG3YXW.js.map} +0 -0
- /package/dist/chunks/{chunk-77AYLILT.js.map → chunk-J5E4DV6R.js.map} +0 -0
- /package/dist/chunks/{chunk-6TCZN54R.js.map → chunk-JPM3JXZB.js.map} +0 -0
- /package/dist/chunks/{chunk-6BTNPDXR.js.map → chunk-JRWUIW4J.js.map} +0 -0
- /package/dist/chunks/{chunk-CKYGPQVJ.js.map → chunk-KBLYZ7L7.js.map} +0 -0
- /package/dist/chunks/{chunk-6MGRBXCW.js.map → chunk-KETRBV2E.js.map} +0 -0
- /package/dist/chunks/{chunk-RSO4LBHJ.js.map → chunk-KPOOM7QT.js.map} +0 -0
- /package/dist/chunks/{chunk-WCAKWRZU.js.map → chunk-KVNL7XA6.js.map} +0 -0
- /package/dist/chunks/{chunk-4PFTZNS5.js.map → chunk-LWJJDERP.js.map} +0 -0
- /package/dist/chunks/{chunk-763RT6Z5.js.map → chunk-MDVYEFTI.js.map} +0 -0
- /package/dist/chunks/{chunk-DROVNI2Y.js.map → chunk-MF57EX7H.js.map} +0 -0
- /package/dist/chunks/{chunk-J6QCR3SC.js.map → chunk-MF5KTVGJ.js.map} +0 -0
- /package/dist/chunks/{chunk-S7YXINNY.js.map → chunk-O2PZDA5H.js.map} +0 -0
- /package/dist/chunks/{chunk-PK7M7VIU.js.map → chunk-OA7QKUCM.js.map} +0 -0
- /package/dist/chunks/{chunk-ZDGKFGVE.js.map → chunk-P4TCLMD6.js.map} +0 -0
- /package/dist/chunks/{chunk-IZYYWNP2.js.map → chunk-PFVYYH6O.js.map} +0 -0
- /package/dist/chunks/{chunk-RP5HOVOW.js.map → chunk-PKFXIWVX.js.map} +0 -0
- /package/dist/chunks/{chunk-ZWP5L7BV.js.map → chunk-PQT7624W.js.map} +0 -0
- /package/dist/chunks/{chunk-FEP2R3XI.js.map → chunk-QTHG6UPU.js.map} +0 -0
- /package/dist/chunks/{chunk-MMJ6UURB.js.map → chunk-QZTTIL3A.js.map} +0 -0
- /package/dist/chunks/{chunk-LWAGZIEA.js.map → chunk-RZKIZTPA.js.map} +0 -0
- /package/dist/chunks/{chunk-QTQIHFYH.js.map → chunk-S7FE35WQ.js.map} +0 -0
- /package/dist/chunks/{chunk-233CEYFX.js.map → chunk-SS6IJAPA.js.map} +0 -0
- /package/dist/chunks/{chunk-5C6XCI24.js.map → chunk-TORIEDBN.js.map} +0 -0
- /package/dist/chunks/{chunk-OZ55WTNZ.js.map → chunk-TRRKG642.js.map} +0 -0
- /package/dist/chunks/{chunk-D5N3SDNF.js.map → chunk-UFGLSUGU.js.map} +0 -0
- /package/dist/chunks/{chunk-RYLQH5BB.js.map → chunk-VE4XIWDW.js.map} +0 -0
- /package/dist/chunks/{chunk-GPP4OXHP.js.map → chunk-VJHENTNB.js.map} +0 -0
- /package/dist/chunks/{chunk-AF2QPFEQ.js.map → chunk-W752G3FM.js.map} +0 -0
- /package/dist/chunks/{chunk-4E2REC5O.js.map → chunk-XLXPPVUT.js.map} +0 -0
- /package/dist/chunks/{chunk-NOHH27YE.js.map → chunk-YNWPC3HO.js.map} +0 -0
- /package/dist/chunks/{chunk-ICIVSMA3.js.map → chunk-ZQGCZYAE.js.map} +0 -0
- /package/dist/chunks/{commands-R6WIMNZG.js.map → commands-BNHIQVYO.js.map} +0 -0
- /package/dist/chunks/{cost-MVUQ3UWP.js.map → cost-BJKADKEZ.js.map} +0 -0
- /package/dist/chunks/{crash-report-ASOVDFQT.js.map → crash-report-OJHGVRD7.js.map} +0 -0
- /package/dist/chunks/{dist-6BE2BTVP.js.map → dist-43XWK3LF.js.map} +0 -0
- /package/dist/chunks/{dist-ZPPSUKEG.js.map → dist-4LEGETQA.js.map} +0 -0
- /package/dist/chunks/{doctor-J2BRJDVI.js.map → dist-4ZPDHZOX.js.map} +0 -0
- /package/dist/chunks/{dist-SQYPEQ4A.js.map → dist-ADQAO5C3.js.map} +0 -0
- /package/dist/chunks/{dist-DOHBDUFC.js.map → dist-BGJEX527.js.map} +0 -0
- /package/dist/chunks/{dist-ERFNYYTR.js.map → dist-FMFNU4M3.js.map} +0 -0
- /package/dist/chunks/{dist-IYSARJ7B.js.map → dist-NCBDELMI.js.map} +0 -0
- /package/dist/chunks/{extension-Y52E4FZR.js.map → doctor-AIYB27QY.js.map} +0 -0
- /package/dist/chunks/{entry-7QM6GODJ.js.map → entry-HM5E7KCD.js.map} +0 -0
- /package/dist/chunks/{home-OGOBLYWY.js.map → extension-4233XOZW.js.map} +0 -0
- /package/dist/chunks/{hooks-report-FCLN3ERK.js.map → home-AZY7APF6.js.map} +0 -0
- /package/dist/chunks/{host-FUPSAICG.js.map → homes-WL6LAAY5.js.map} +0 -0
- /package/dist/chunks/{hooks-C6WM34FA.js.map → hooks-AK5S4YUS.js.map} +0 -0
- /package/dist/chunks/{host-queries-YTND6J2W.js.map → hooks-report-NJLGBWN3.js.map} +0 -0
- /package/dist/chunks/{lifecycle-4ZRBSEP2.js.map → host-SX3QC5FN.js.map} +0 -0
- /package/dist/chunks/{live-33QEKVAM.js.map → host-queries-HBW7AW44.js.map} +0 -0
- /package/dist/chunks/{installed-list-3Z2UYHZL.js.map → installed-list-44QXUJFE.js.map} +0 -0
- /package/dist/chunks/{learn-EXNQYLI3.js.map → learn-LW4DLSGZ.js.map} +0 -0
- /package/dist/chunks/{load-SYMNQIDR.js.map → lifecycle-AJCHTSAF.js.map} +0 -0
- /package/dist/chunks/{login-KN5KQXOD.js.map → list-DT7AJVPX.js.map} +0 -0
- /package/dist/chunks/{open-3GVSPGUF.js.map → live-Z6HZFXPW.js.map} +0 -0
- /package/dist/chunks/{output-schema-MKFI5PWR.js.map → load-454TJBPW.js.map} +0 -0
- /package/dist/chunks/{logs-IW7PYTI2.js.map → logs-GRUSUSL7.js.map} +0 -0
- /package/dist/chunks/{peers-CGTVWK6B.js.map → open-Z3BELFL7.js.map} +0 -0
- /package/dist/chunks/{providers-Z3KLRJDW.js.map → output-schema-DSR56W6A.js.map} +0 -0
- /package/dist/chunks/{pty-GMA24QAT.js.map → peers-LXNB4QSL.js.map} +0 -0
- /package/dist/chunks/{resume-OEUL3DML.js.map → providers-AVECY67I.js.map} +0 -0
- /package/dist/chunks/{resume-command-MXUIVG6T.js.map → pty-GW2YC23H.js.map} +0 -0
- /package/dist/chunks/{running-HYMQGZMF.js.map → resume-AYWSKWEX.js.map} +0 -0
- /package/dist/chunks/{send-IFZ7XPTF.js.map → resume-command-FXT3KGLC.js.map} +0 -0
- /package/dist/chunks/{send-person-YV7Y3N7V.js.map → running-3NLAODZ7.js.map} +0 -0
- /package/dist/chunks/{setting-cli-CJMZHIMQ.js.map → send-FRNTRW2M.js.map} +0 -0
- /package/dist/chunks/{start-check-MZGEYSQD.js.map → send-person-57F5RJA7.js.map} +0 -0
- /package/dist/chunks/{serve-CZDHGDZL.js.map → serve-4VIDXLEB.js.map} +0 -0
- /package/dist/chunks/{store-5QOUJL3S.js.map → setting-cli-HGYOIGC6.js.map} +0 -0
- /package/dist/chunks/{store-LIG46NWV.js.map → start-check-C5VJXVPY.js.map} +0 -0
- /package/dist/chunks/{startup-failure-QS7O3M62.js.map → startup-failure-YQSEQRNQ.js.map} +0 -0
- /package/dist/chunks/{store-N4CURUP2.js.map → store-CZGKLVTT.js.map} +0 -0
- /package/dist/chunks/{store-VRWL26C2.js.map → store-JJKCDY7Y.js.map} +0 -0
|
@@ -1,16 +1,36 @@
|
|
|
1
1
|
import { createRequire as __namzuCreateRequire } from 'node:module';
|
|
2
2
|
const require = __namzuCreateRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
holderPidOf,
|
|
5
|
+
processIsAlive
|
|
6
|
+
} from "./chunk-IJ6Z6FNY.js";
|
|
7
|
+
import {
|
|
8
|
+
promptHistoryPath,
|
|
9
|
+
readPromptHistory,
|
|
10
|
+
rewritePromptHistory
|
|
11
|
+
} from "./chunk-GQ6WXY3M.js";
|
|
12
|
+
import {
|
|
13
|
+
STATE_ACTIONS
|
|
14
|
+
} from "./chunk-RHJOIAFS.js";
|
|
3
15
|
import {
|
|
4
16
|
PROJECT_AUTHORED_NAMES,
|
|
5
17
|
PROJECT_LEGACY_NAMES,
|
|
6
18
|
PROJECT_SETTINGS_NAMES,
|
|
7
19
|
moveProjectLegacyState
|
|
8
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-DGYMR4WJ.js";
|
|
21
|
+
import {
|
|
22
|
+
findProject
|
|
23
|
+
} from "./chunk-SSPHAILP.js";
|
|
24
|
+
import "./chunk-OH7EYW3T.js";
|
|
9
25
|
import {
|
|
10
26
|
cliProjectRoot
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
27
|
+
} from "./chunk-XJALHM5Z.js";
|
|
28
|
+
import "./chunk-5HMJ3DYR.js";
|
|
29
|
+
import "./chunk-CQFWLYTK.js";
|
|
30
|
+
import "./chunk-4TJ7AGQO.js";
|
|
31
|
+
import "./chunk-O2PZDA5H.js";
|
|
13
32
|
import {
|
|
33
|
+
EXIT_FAIL,
|
|
14
34
|
EXIT_OK,
|
|
15
35
|
EXIT_UNAVAILABLE,
|
|
16
36
|
EXIT_USAGE
|
|
@@ -18,29 +38,416 @@ import {
|
|
|
18
38
|
import {
|
|
19
39
|
terminalDisplayText
|
|
20
40
|
} from "./chunk-I4GTRFPK.js";
|
|
41
|
+
import "./chunk-KHGY6QJR.js";
|
|
42
|
+
import "./chunk-ABKURT35.js";
|
|
43
|
+
import "./chunk-5WORROIE.js";
|
|
44
|
+
import "./chunk-WMEZTDLT.js";
|
|
45
|
+
import "./chunk-LCGXWCVU.js";
|
|
46
|
+
import "./chunk-7YC42EXB.js";
|
|
47
|
+
import "./chunk-LVVD32KJ.js";
|
|
21
48
|
import {
|
|
22
49
|
homePath
|
|
23
50
|
} from "./chunk-GMUWAUKQ.js";
|
|
51
|
+
import "./chunk-PJ6IEIKJ.js";
|
|
52
|
+
import "./chunk-XVOPQCPD.js";
|
|
24
53
|
import "./chunk-G6YSAHKC.js";
|
|
25
54
|
import "./chunk-JORONMD3.js";
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
55
|
+
import "./chunk-PFVYYH6O.js";
|
|
56
|
+
import "./chunk-GUK47JTV.js";
|
|
57
|
+
import "./chunk-WRPEQ3KP.js";
|
|
58
|
+
import "./chunk-44MFZJ24.js";
|
|
59
|
+
import "./chunk-A6RHRNY2.js";
|
|
60
|
+
import "./chunk-CG5CGXNF.js";
|
|
28
61
|
import "./chunk-U5UV2YRE.js";
|
|
62
|
+
import "./chunk-PHW6PWIJ.js";
|
|
29
63
|
import {
|
|
30
64
|
hashedSlugForCwd,
|
|
31
65
|
isEntityId,
|
|
66
|
+
isLeaseLive,
|
|
67
|
+
readSessionLease,
|
|
32
68
|
resolveNamzuHome,
|
|
33
69
|
slugForCwd
|
|
34
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-5JVKE4LB.js";
|
|
35
71
|
import {
|
|
36
72
|
__name
|
|
37
73
|
} from "./chunk-76FLAFCG.js";
|
|
38
74
|
|
|
75
|
+
// src/commands/state.ts
|
|
76
|
+
import { realpath as realpath3 } from "node:fs/promises";
|
|
77
|
+
import { resolve as resolve2 } from "node:path";
|
|
78
|
+
import { createInterface } from "node:readline/promises";
|
|
79
|
+
|
|
80
|
+
// src/integrations/state/purge.ts
|
|
81
|
+
import { lstat, readFile, readdir, realpath, rm } from "node:fs/promises";
|
|
82
|
+
import { createRequire } from "node:module";
|
|
83
|
+
import { basename, join, sep } from "node:path";
|
|
84
|
+
var SLUG = /^[A-Za-z0-9._-]+$/;
|
|
85
|
+
var UUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
86
|
+
function errorCode(error) {
|
|
87
|
+
return error?.code;
|
|
88
|
+
}
|
|
89
|
+
__name(errorCode, "errorCode");
|
|
90
|
+
async function realHomeOf(home) {
|
|
91
|
+
try {
|
|
92
|
+
return await realpath(home);
|
|
93
|
+
} catch (error) {
|
|
94
|
+
if (errorCode(error) === "ENOENT" || errorCode(error) === "ENOTDIR") return null;
|
|
95
|
+
throw error;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
__name(realHomeOf, "realHomeOf");
|
|
99
|
+
function within(root, path) {
|
|
100
|
+
return path === root || path.startsWith(root.endsWith(sep) ? root : `${root}${sep}`);
|
|
101
|
+
}
|
|
102
|
+
__name(within, "within");
|
|
103
|
+
async function checkPath(realHome, path) {
|
|
104
|
+
let entry;
|
|
105
|
+
try {
|
|
106
|
+
entry = await lstat(path);
|
|
107
|
+
} catch (error) {
|
|
108
|
+
if (errorCode(error) === "ENOENT" || errorCode(error) === "ENOTDIR") return "absent";
|
|
109
|
+
throw error;
|
|
110
|
+
}
|
|
111
|
+
if (entry.isSymbolicLink()) return "it is a link";
|
|
112
|
+
const parent = path.slice(0, Math.max(path.lastIndexOf(sep), 0)) || sep;
|
|
113
|
+
let realParent;
|
|
114
|
+
try {
|
|
115
|
+
realParent = await realpath(parent);
|
|
116
|
+
} catch (error) {
|
|
117
|
+
if (errorCode(error) === "ENOENT") return "absent";
|
|
118
|
+
throw error;
|
|
119
|
+
}
|
|
120
|
+
if (!within(realHome, realParent)) {
|
|
121
|
+
return "it is outside the Namzu home";
|
|
122
|
+
}
|
|
123
|
+
if (within(join(realHome, "services"), join(realParent, basename(path))))
|
|
124
|
+
return "it is a scheduler service\u2019s home";
|
|
125
|
+
return "ok";
|
|
126
|
+
}
|
|
127
|
+
__name(checkPath, "checkPath");
|
|
128
|
+
async function measure(path) {
|
|
129
|
+
const total = { files: 0, bytes: 0 };
|
|
130
|
+
const walk2 = /* @__PURE__ */ __name(async (current) => {
|
|
131
|
+
const entry = await lstat(current);
|
|
132
|
+
if (entry.isSymbolicLink() || !entry.isDirectory()) {
|
|
133
|
+
total.files += 1;
|
|
134
|
+
total.bytes += entry.isSymbolicLink() ? 0 : entry.size;
|
|
135
|
+
return;
|
|
136
|
+
}
|
|
137
|
+
for (const name of await readdir(current)) await walk2(join(current, name));
|
|
138
|
+
}, "walk");
|
|
139
|
+
await walk2(path);
|
|
140
|
+
return total;
|
|
141
|
+
}
|
|
142
|
+
__name(measure, "measure");
|
|
143
|
+
async function liveHolder(projectDir, seams) {
|
|
144
|
+
const now = seams.now?.() ?? Date.now();
|
|
145
|
+
const alive = seams.isProcessAlive ?? processIsAlive;
|
|
146
|
+
let names;
|
|
147
|
+
try {
|
|
148
|
+
names = await readdir(projectDir);
|
|
149
|
+
} catch {
|
|
150
|
+
return null;
|
|
151
|
+
}
|
|
152
|
+
for (const name of names) {
|
|
153
|
+
const dir = join(projectDir, name);
|
|
154
|
+
let entry;
|
|
155
|
+
try {
|
|
156
|
+
entry = await lstat(dir);
|
|
157
|
+
} catch {
|
|
158
|
+
continue;
|
|
159
|
+
}
|
|
160
|
+
if (!entry.isDirectory() || entry.isSymbolicLink()) continue;
|
|
161
|
+
const lease = await readSessionLease(dir).catch(() => null);
|
|
162
|
+
if (lease === null || !isLeaseLive(lease, now)) continue;
|
|
163
|
+
const pid = holderPidOf(lease);
|
|
164
|
+
if (pid !== void 0 && !alive(pid)) continue;
|
|
165
|
+
return pid === void 0 ? {} : { pid };
|
|
166
|
+
}
|
|
167
|
+
return null;
|
|
168
|
+
}
|
|
169
|
+
__name(liveHolder, "liveHolder");
|
|
170
|
+
async function folderOf(projectFile) {
|
|
171
|
+
try {
|
|
172
|
+
const parsed = JSON.parse(await readFile(projectFile, "utf8"));
|
|
173
|
+
return typeof parsed.cwd === "string" ? parsed.cwd : null;
|
|
174
|
+
} catch {
|
|
175
|
+
return null;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
__name(folderOf, "folderOf");
|
|
179
|
+
async function worktreesHeld(realHome, projectDir) {
|
|
180
|
+
const dir = join(projectDir, "worktrees");
|
|
181
|
+
if (await checkPath(realHome, dir) !== "ok") return false;
|
|
182
|
+
try {
|
|
183
|
+
return (await readdir(dir)).length > 0;
|
|
184
|
+
} catch {
|
|
185
|
+
return false;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
__name(worktreesHeld, "worktreesHeld");
|
|
189
|
+
var NODE_SQLITE = createRequire(new URL("../", import.meta.url).href + "integrations/state/purge.js");
|
|
190
|
+
function openIndex(path, readOnly) {
|
|
191
|
+
try {
|
|
192
|
+
const { DatabaseSync } = NODE_SQLITE("node:sqlite");
|
|
193
|
+
return new DatabaseSync(path, { readOnly });
|
|
194
|
+
} catch {
|
|
195
|
+
return null;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
__name(openIndex, "openIndex");
|
|
199
|
+
async function indexCount(realHome, slug) {
|
|
200
|
+
const path = join(realHome, "index.sqlite");
|
|
201
|
+
if (await checkPath(realHome, path) !== "ok") return null;
|
|
202
|
+
const db = openIndex(path, true);
|
|
203
|
+
if (db === null) return null;
|
|
204
|
+
try {
|
|
205
|
+
const row = db.prepare("SELECT COUNT(*) AS n FROM sessions WHERE slug = ?").get(slug);
|
|
206
|
+
const n = Number(row?.n ?? 0);
|
|
207
|
+
const known = db.prepare("SELECT COUNT(*) AS n FROM projects WHERE slug = ?").get(slug);
|
|
208
|
+
return n + Number(known?.n ?? 0) > 0 ? { path, count: n } : null;
|
|
209
|
+
} catch {
|
|
210
|
+
return null;
|
|
211
|
+
} finally {
|
|
212
|
+
db.close();
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
__name(indexCount, "indexCount");
|
|
216
|
+
async function allSlugs(realHome) {
|
|
217
|
+
const slugs = /* @__PURE__ */ new Set();
|
|
218
|
+
const add = /* @__PURE__ */ __name((name) => {
|
|
219
|
+
if (SLUG.test(name) && !UUID.test(name) && !name.startsWith(".")) slugs.add(name);
|
|
220
|
+
}, "add");
|
|
221
|
+
for (const [dir, strip] of [
|
|
222
|
+
["projects", ""],
|
|
223
|
+
[join("backups", "projects"), ""],
|
|
224
|
+
["memory-inbox", ".jsonl"],
|
|
225
|
+
["memory-usage", ".json"],
|
|
226
|
+
["legacy", ""]
|
|
227
|
+
]) {
|
|
228
|
+
let names;
|
|
229
|
+
try {
|
|
230
|
+
names = await readdir(join(realHome, dir));
|
|
231
|
+
} catch {
|
|
232
|
+
continue;
|
|
233
|
+
}
|
|
234
|
+
for (const name of names)
|
|
235
|
+
add(strip && name.endsWith(strip) ? name.slice(0, -strip.length) : name);
|
|
236
|
+
}
|
|
237
|
+
return [...slugs].sort();
|
|
238
|
+
}
|
|
239
|
+
__name(allSlugs, "allSlugs");
|
|
240
|
+
async function planProject(realHome, slug, folders, seams) {
|
|
241
|
+
if (!SLUG.test(slug)) throw new Error(`not a project name: ${slug}`);
|
|
242
|
+
const projectDir = join(realHome, "projects", slug);
|
|
243
|
+
const projectFolder = await folderOf(join(projectDir, "project.json"));
|
|
244
|
+
const items = [];
|
|
245
|
+
const places = [
|
|
246
|
+
["folder", "conversations, checkpoints, file history, plans, memory and learning", projectDir],
|
|
247
|
+
["folder", "recovery copies of settings files", join(realHome, "backups", "projects", slug)],
|
|
248
|
+
[
|
|
249
|
+
"folder",
|
|
250
|
+
"state moved out of the project by `namzu state move legacy`",
|
|
251
|
+
join(realHome, "legacy", slug)
|
|
252
|
+
],
|
|
253
|
+
["file", "memory inbox", join(realHome, "memory-inbox", `${slug}.jsonl`)],
|
|
254
|
+
["file", "memory usage", join(realHome, "memory-usage", `${slug}.json`)]
|
|
255
|
+
];
|
|
256
|
+
for (const [kind, what, path] of places) {
|
|
257
|
+
const state = await checkPath(realHome, path);
|
|
258
|
+
if (state === "absent") continue;
|
|
259
|
+
if (state !== "ok") {
|
|
260
|
+
return {
|
|
261
|
+
slug,
|
|
262
|
+
folder: projectFolder,
|
|
263
|
+
folders: [],
|
|
264
|
+
items: [],
|
|
265
|
+
blocked: `${path}: ${state}; nothing was deleted`
|
|
266
|
+
};
|
|
267
|
+
}
|
|
268
|
+
const size = await measure(path);
|
|
269
|
+
items.push({ kind, what, path, files: size.files, bytes: size.bytes });
|
|
270
|
+
}
|
|
271
|
+
if (items.some((item) => item.path === projectDir)) {
|
|
272
|
+
if (await worktreesHeld(realHome, projectDir)) {
|
|
273
|
+
return {
|
|
274
|
+
slug,
|
|
275
|
+
folder: projectFolder,
|
|
276
|
+
folders: [],
|
|
277
|
+
items: [],
|
|
278
|
+
blocked: "git worktrees Namzu made for it are still there; remove them first with `namzu worktree`, then purge"
|
|
279
|
+
};
|
|
280
|
+
}
|
|
281
|
+
const holder = await liveHolder(projectDir, seams);
|
|
282
|
+
if (holder !== null) {
|
|
283
|
+
return {
|
|
284
|
+
slug,
|
|
285
|
+
folder: projectFolder,
|
|
286
|
+
folders: [],
|
|
287
|
+
items: [],
|
|
288
|
+
blocked: `a session of this project is running${holder.pid === void 0 ? "" : ` (process ${holder.pid})`}; stop it first`
|
|
289
|
+
};
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
const mine = /* @__PURE__ */ new Set([...folders, ...projectFolder === null ? [] : [projectFolder]]);
|
|
293
|
+
if (mine.size > 0) {
|
|
294
|
+
const history = await readPromptHistory(realHome);
|
|
295
|
+
const count = history.entries.filter((entry) => mine.has(entry.project)).length;
|
|
296
|
+
if (count > 0) {
|
|
297
|
+
items.push({
|
|
298
|
+
kind: "history",
|
|
299
|
+
what: "prompts in the prompt history",
|
|
300
|
+
path: promptHistoryPath(realHome),
|
|
301
|
+
files: 0,
|
|
302
|
+
bytes: 0,
|
|
303
|
+
count
|
|
304
|
+
});
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
const indexed = await indexCount(realHome, slug);
|
|
308
|
+
if (indexed !== null) {
|
|
309
|
+
items.push({
|
|
310
|
+
kind: "index",
|
|
311
|
+
what: "rows in the session index",
|
|
312
|
+
path: indexed.path,
|
|
313
|
+
files: 0,
|
|
314
|
+
bytes: 0,
|
|
315
|
+
count: indexed.count
|
|
316
|
+
});
|
|
317
|
+
}
|
|
318
|
+
return { slug, folder: projectFolder, folders: [...mine], items };
|
|
319
|
+
}
|
|
320
|
+
__name(planProject, "planProject");
|
|
321
|
+
async function planProjectPurge(home, projectRoot, seams = {}) {
|
|
322
|
+
const realHome = await realHomeOf(home);
|
|
323
|
+
if (realHome === null) return { home, projects: [] };
|
|
324
|
+
const found = await findProject(realHome, projectRoot);
|
|
325
|
+
const slug = found?.slug ?? slugForCwd(projectRoot);
|
|
326
|
+
const project = await planProject(realHome, slug, /* @__PURE__ */ new Set([projectRoot]), seams);
|
|
327
|
+
return { home: realHome, projects: project.items.length > 0 || project.blocked ? [project] : [] };
|
|
328
|
+
}
|
|
329
|
+
__name(planProjectPurge, "planProjectPurge");
|
|
330
|
+
async function planAllPurge(home, seams = {}) {
|
|
331
|
+
const realHome = await realHomeOf(home);
|
|
332
|
+
if (realHome === null) return { home, projects: [] };
|
|
333
|
+
const projects = [];
|
|
334
|
+
for (const slug of await allSlugs(realHome)) {
|
|
335
|
+
const project = await planProject(realHome, slug, /* @__PURE__ */ new Set(), seams);
|
|
336
|
+
if (project.items.length > 0 || project.blocked) projects.push(project);
|
|
337
|
+
}
|
|
338
|
+
const lines = (await readPromptHistory(realHome)).entries.length;
|
|
339
|
+
const history = lines > 0 && projects.every((project) => project.blocked === void 0) ? {
|
|
340
|
+
kind: "history",
|
|
341
|
+
what: "prompts in the prompt history",
|
|
342
|
+
path: promptHistoryPath(realHome),
|
|
343
|
+
files: 0,
|
|
344
|
+
bytes: 0,
|
|
345
|
+
count: lines
|
|
346
|
+
} : void 0;
|
|
347
|
+
return { home: realHome, projects, ...history ? { history } : {} };
|
|
348
|
+
}
|
|
349
|
+
__name(planAllPurge, "planAllPurge");
|
|
350
|
+
function dropIndexRows(path, slug) {
|
|
351
|
+
const db = openIndex(path, false);
|
|
352
|
+
if (db === null) throw new Error("the session index could not be opened");
|
|
353
|
+
try {
|
|
354
|
+
db.exec("PRAGMA busy_timeout = 5000");
|
|
355
|
+
db.exec("BEGIN");
|
|
356
|
+
const own = "(SELECT id FROM sessions WHERE slug = ?)";
|
|
357
|
+
for (const table of [
|
|
358
|
+
"turns",
|
|
359
|
+
"pending_decisions",
|
|
360
|
+
"external_refs",
|
|
361
|
+
"children",
|
|
362
|
+
"batches",
|
|
363
|
+
"evidence_fts"
|
|
364
|
+
]) {
|
|
365
|
+
db.prepare(`DELETE FROM ${table} WHERE session_id IN ${own}`).run(slug);
|
|
366
|
+
}
|
|
367
|
+
db.prepare("DELETE FROM sessions WHERE slug = ?").run(slug);
|
|
368
|
+
db.prepare("DELETE FROM projects WHERE slug = ?").run(slug);
|
|
369
|
+
db.exec("COMMIT");
|
|
370
|
+
} catch (error) {
|
|
371
|
+
try {
|
|
372
|
+
db.exec("ROLLBACK");
|
|
373
|
+
} catch {
|
|
374
|
+
}
|
|
375
|
+
throw error;
|
|
376
|
+
} finally {
|
|
377
|
+
db.close();
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
__name(dropIndexRows, "dropIndexRows");
|
|
381
|
+
async function executePurge(plan, options, seams = {}) {
|
|
382
|
+
const realHome = await realHomeOf(plan.home);
|
|
383
|
+
const outcomes = [];
|
|
384
|
+
for (const project of plan.projects) {
|
|
385
|
+
const deleted = [];
|
|
386
|
+
const failed = [];
|
|
387
|
+
if (realHome === null || project.blocked !== void 0) {
|
|
388
|
+
outcomes.push({ slug: project.slug, deleted, failed });
|
|
389
|
+
continue;
|
|
390
|
+
}
|
|
391
|
+
if (project.items.some((item) => item.path === join(realHome, "projects", project.slug))) {
|
|
392
|
+
const holder = await liveHolder(join(realHome, "projects", project.slug), seams);
|
|
393
|
+
if (holder !== null) {
|
|
394
|
+
failed.push(
|
|
395
|
+
`${project.slug}: a session of this project is running${holder.pid === void 0 ? "" : ` (process ${holder.pid})`}; left alone, stop it first`
|
|
396
|
+
);
|
|
397
|
+
outcomes.push({ slug: project.slug, deleted, failed });
|
|
398
|
+
continue;
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
const folders = new Set(project.folders);
|
|
402
|
+
for (const item of project.items) {
|
|
403
|
+
try {
|
|
404
|
+
if (item.kind === "folder" || item.kind === "file") {
|
|
405
|
+
const state = await checkPath(realHome, item.path);
|
|
406
|
+
if (state === "absent") continue;
|
|
407
|
+
if (state !== "ok") {
|
|
408
|
+
failed.push(`${item.path}: ${state}`);
|
|
409
|
+
continue;
|
|
410
|
+
}
|
|
411
|
+
await rm(item.path, { recursive: item.kind === "folder", force: true });
|
|
412
|
+
deleted.push(item.path);
|
|
413
|
+
} else if (item.kind === "history") {
|
|
414
|
+
const dropped = await rewritePromptHistory(
|
|
415
|
+
realHome,
|
|
416
|
+
(entry) => !folders.has(entry.project)
|
|
417
|
+
);
|
|
418
|
+
if (dropped > 0)
|
|
419
|
+
deleted.push(`${dropped} prompt${dropped === 1 ? "" : "s"} in ${item.path}`);
|
|
420
|
+
} else {
|
|
421
|
+
dropIndexRows(item.path, project.slug);
|
|
422
|
+
deleted.push(`rows in ${item.path}`);
|
|
423
|
+
}
|
|
424
|
+
} catch (error) {
|
|
425
|
+
failed.push(`${item.path}: ${error instanceof Error ? error.message : String(error)}`);
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
outcomes.push({ slug: project.slug, deleted, failed });
|
|
429
|
+
}
|
|
430
|
+
if (plan.history !== void 0 && realHome !== null && options.all) {
|
|
431
|
+
const deleted = [];
|
|
432
|
+
const failed = [];
|
|
433
|
+
try {
|
|
434
|
+
const dropped = await rewritePromptHistory(realHome, () => false);
|
|
435
|
+
if (dropped > 0)
|
|
436
|
+
deleted.push(`${dropped} prompt${dropped === 1 ? "" : "s"} in ${plan.history.path}`);
|
|
437
|
+
} catch (error) {
|
|
438
|
+
failed.push(`${plan.history.path}: ${error instanceof Error ? error.message : String(error)}`);
|
|
439
|
+
}
|
|
440
|
+
outcomes.push({ slug: "(prompt history)", deleted, failed });
|
|
441
|
+
}
|
|
442
|
+
return outcomes;
|
|
443
|
+
}
|
|
444
|
+
__name(executePurge, "executePurge");
|
|
445
|
+
|
|
39
446
|
// src/integrations/state/report.ts
|
|
40
447
|
import { constants } from "node:fs";
|
|
41
|
-
import { lstat, open, opendir, realpath } from "node:fs/promises";
|
|
448
|
+
import { lstat as lstat2, open, opendir, realpath as realpath2 } from "node:fs/promises";
|
|
42
449
|
import { homedir } from "node:os";
|
|
43
|
-
import { basename, join, resolve, sep } from "node:path";
|
|
450
|
+
import { basename as basename2, join as join2, resolve, sep as sep2 } from "node:path";
|
|
44
451
|
var MAX_METADATA_BYTES = 4 * 1024 * 1024;
|
|
45
452
|
var MAX_REPORTED_ISSUES = 100;
|
|
46
453
|
var MAX_ENTRIES = 1e5;
|
|
@@ -87,11 +494,11 @@ var EntryChangedError = class extends Error {
|
|
|
87
494
|
async function inspectNamzuState(options = {}) {
|
|
88
495
|
const cwd = await canonicalBase(options.cwd ?? process.cwd());
|
|
89
496
|
const home = await canonicalBase(options.home ?? homedir());
|
|
90
|
-
const projectRoot =
|
|
497
|
+
const projectRoot = join2(cwd, ".namzu");
|
|
91
498
|
const environment = options.env ?? (options.home !== void 0 ? {} : process.env);
|
|
92
499
|
const configuredHome = environment.NAMZU_HOME;
|
|
93
500
|
const userRoot = await canonicalBase(
|
|
94
|
-
configuredHome === void 0 || configuredHome.length === 0 ?
|
|
501
|
+
configuredHome === void 0 || configuredHome.length === 0 ? join2(home, ".namzu") : configuredHome
|
|
95
502
|
);
|
|
96
503
|
const overlap = projectRoot === userRoot;
|
|
97
504
|
const specs = overlap ? [{ path: projectRoot, roles: ["project", "user"] }] : [
|
|
@@ -121,9 +528,9 @@ async function inspectNamzuState(options = {}) {
|
|
|
121
528
|
}),
|
|
122
529
|
{ roots: 0, files: 0, logicalBytes: 0 }
|
|
123
530
|
);
|
|
124
|
-
const projectConfigPath =
|
|
531
|
+
const projectConfigPath = join2(cwd, "namzu.config.json");
|
|
125
532
|
const projectConfig = await inspectOneRegularFile(projectConfigPath);
|
|
126
|
-
const legacyLocalConfigPath =
|
|
533
|
+
const legacyLocalConfigPath = join2(cwd, "namzu.config.local.json");
|
|
127
534
|
const legacyLocalConfig = await inspectOneRegularFile(legacyLocalConfigPath);
|
|
128
535
|
const userCollection = collections.get(userRoot);
|
|
129
536
|
const projectBinding = await inspectProjectBinding(userCollection, cwd);
|
|
@@ -155,7 +562,7 @@ __name(inspectNamzuState, "inspectNamzuState");
|
|
|
155
562
|
async function canonicalBase(path) {
|
|
156
563
|
const absolute = resolve(path);
|
|
157
564
|
try {
|
|
158
|
-
return await
|
|
565
|
+
return await realpath2(absolute);
|
|
159
566
|
} catch {
|
|
160
567
|
return absolute;
|
|
161
568
|
}
|
|
@@ -163,7 +570,7 @@ async function canonicalBase(path) {
|
|
|
163
570
|
__name(canonicalBase, "canonicalBase");
|
|
164
571
|
async function inspectOneRegularFile(path) {
|
|
165
572
|
try {
|
|
166
|
-
const stat = await
|
|
573
|
+
const stat = await lstat2(path);
|
|
167
574
|
return stat.isFile() ? { status: "present", logicalBytes: stat.size } : { status: "unsupported", logicalBytes: 0 };
|
|
168
575
|
} catch (error) {
|
|
169
576
|
if (error.code === "ENOENT") {
|
|
@@ -177,7 +584,7 @@ async function collectRoot(root, entryLimit) {
|
|
|
177
584
|
const sink = { issues: [], omitted: 0 };
|
|
178
585
|
let rootStat;
|
|
179
586
|
try {
|
|
180
|
-
rootStat = await
|
|
587
|
+
rootStat = await lstat2(root);
|
|
181
588
|
} catch (error) {
|
|
182
589
|
if (error.code === "ENOENT") {
|
|
183
590
|
return { root, exists: false, entries: [], issues: [], omittedIssues: 0 };
|
|
@@ -246,12 +653,12 @@ function rootEntry(root, stat) {
|
|
|
246
653
|
}
|
|
247
654
|
__name(rootEntry, "rootEntry");
|
|
248
655
|
async function walk(root, relativeDir, entries, sink, entryLimit) {
|
|
249
|
-
const absoluteDir = relativeDir === "" ? root :
|
|
656
|
+
const absoluteDir = relativeDir === "" ? root : join2(root, relativeDir);
|
|
250
657
|
const childDirectories = [];
|
|
251
658
|
try {
|
|
252
659
|
const directory = await opendir(absoluteDir);
|
|
253
660
|
for await (const child of directory) {
|
|
254
|
-
const relativePath = relativeDir === "" ? child.name :
|
|
661
|
+
const relativePath = relativeDir === "" ? child.name : join2(relativeDir, child.name);
|
|
255
662
|
if (entries.length >= entryLimit) {
|
|
256
663
|
pushIssue(sink, {
|
|
257
664
|
code: "inspection_skipped",
|
|
@@ -260,10 +667,10 @@ async function walk(root, relativeDir, entries, sink, entryLimit) {
|
|
|
260
667
|
});
|
|
261
668
|
return false;
|
|
262
669
|
}
|
|
263
|
-
const absolute =
|
|
670
|
+
const absolute = join2(root, relativePath);
|
|
264
671
|
let stat;
|
|
265
672
|
try {
|
|
266
|
-
stat = await
|
|
673
|
+
stat = await lstat2(absolute);
|
|
267
674
|
} catch (error) {
|
|
268
675
|
addIssue(sink, relativePath, error);
|
|
269
676
|
continue;
|
|
@@ -307,7 +714,7 @@ async function walk(root, relativeDir, entries, sink, entryLimit) {
|
|
|
307
714
|
}
|
|
308
715
|
__name(walk, "walk");
|
|
309
716
|
function normalizeRelative(path) {
|
|
310
|
-
return
|
|
717
|
+
return sep2 === "/" ? path : path.split(sep2).join("/");
|
|
311
718
|
}
|
|
312
719
|
__name(normalizeRelative, "normalizeRelative");
|
|
313
720
|
function addIssue(sink, path, error) {
|
|
@@ -388,7 +795,7 @@ function legacyKey(path) {
|
|
|
388
795
|
__name(legacyKey, "legacyKey");
|
|
389
796
|
function categoryOf(path) {
|
|
390
797
|
const top = path.split("/")[0] ?? path;
|
|
391
|
-
const name =
|
|
798
|
+
const name = basename2(path);
|
|
392
799
|
if (legacyKey(path)) return "legacy";
|
|
393
800
|
if (top === "legacy") return "legacy";
|
|
394
801
|
if (name.endsWith(".lock") || name.endsWith(".tmp") || name.includes(".tmp.") || name.includes(".tmp-") || name.endsWith(".candidate")) {
|
|
@@ -409,7 +816,7 @@ function projectLegacyKey(path) {
|
|
|
409
816
|
__name(projectLegacyKey, "projectLegacyKey");
|
|
410
817
|
function projectCategoryOf(path) {
|
|
411
818
|
const top = path.split("/")[0] ?? path;
|
|
412
|
-
const name =
|
|
819
|
+
const name = basename2(path);
|
|
413
820
|
if (projectLegacyKey(path)) return "legacy";
|
|
414
821
|
if (PROJECT_SETTINGS_NAMES.has(top)) return "configuration";
|
|
415
822
|
if (name.endsWith(".lock") || name.endsWith(".tmp") || name.includes(".tmp.") || name.includes(".tmp-")) {
|
|
@@ -646,6 +1053,7 @@ Usage:
|
|
|
646
1053
|
namzu state
|
|
647
1054
|
namzu state report
|
|
648
1055
|
namzu state move legacy [--dry-run]
|
|
1056
|
+
namzu state purge [path] [--dry-run] [--yes] [--all]
|
|
649
1057
|
|
|
650
1058
|
report (the default) lists what Namzu keeps and where, without changing
|
|
651
1059
|
anything: it does not load project configuration, create a Session, repair,
|
|
@@ -658,11 +1066,21 @@ trust, moves only names an earlier Namzu wrote, and leaves in place what git
|
|
|
658
1066
|
tracks, a git worktree with changes and anything it cannot check, saying why.
|
|
659
1067
|
--dry-run says what would move and changes nothing.
|
|
660
1068
|
|
|
1069
|
+
purge deletes the state Namzu keeps in its home for one project (this folder's
|
|
1070
|
+
by default, or the project of [path]): its conversations, checkpoints, file
|
|
1071
|
+
history, plans, memory, recovery copies, its prompts in the prompt history and
|
|
1072
|
+
its rows in the session index. It never deletes anything in the project folder
|
|
1073
|
+
itself, so settings files kept there stay. It lists what it will delete and asks
|
|
1074
|
+
first; with no terminal it needs --yes. It stops while a session of the project
|
|
1075
|
+
is running, and while git worktrees Namzu made for it still exist.
|
|
1076
|
+
|
|
661
1077
|
Output:
|
|
662
1078
|
Use the global --format json or --format yaml flag for structured output.
|
|
663
1079
|
|
|
664
1080
|
Options:
|
|
665
|
-
--dry-run With move legacy: list what would
|
|
1081
|
+
--dry-run With move legacy or purge: list what would change, change nothing
|
|
1082
|
+
--yes With purge: delete without asking
|
|
1083
|
+
--all With purge: every project, not one
|
|
666
1084
|
-h, --help Show this help`;
|
|
667
1085
|
function createStateCommand(deps) {
|
|
668
1086
|
return {
|
|
@@ -670,11 +1088,13 @@ function createStateCommand(deps) {
|
|
|
670
1088
|
description: "Inspect local Namzu state, or move what an earlier Namzu left in a project",
|
|
671
1089
|
passThrough: true,
|
|
672
1090
|
help: HELP,
|
|
1091
|
+
actions: STATE_ACTIONS,
|
|
673
1092
|
handler: /* @__PURE__ */ __name(async ({ ctx, rawArgs }) => {
|
|
674
1093
|
if (rawArgs[0] === "move-legacy") {
|
|
675
1094
|
ctx.formatter.error({ message: "This command is now `namzu state move legacy`." });
|
|
676
1095
|
return EXIT_USAGE;
|
|
677
1096
|
}
|
|
1097
|
+
if (rawArgs[0] === "purge") return await runPurge(ctx.formatter, rawArgs.slice(1), deps.purge);
|
|
678
1098
|
if (rawArgs[0] === "move" && rawArgs[1] === "legacy") {
|
|
679
1099
|
const rest = rawArgs.slice(2);
|
|
680
1100
|
if (!(rest.length === 0 || rest.length === 1 && rest[0] === "--dry-run")) {
|
|
@@ -695,7 +1115,9 @@ function createStateCommand(deps) {
|
|
|
695
1115
|
return EXIT_OK;
|
|
696
1116
|
}
|
|
697
1117
|
if (!(rawArgs.length === 0 || rawArgs.length === 1 && rawArgs[0] === "report")) {
|
|
698
|
-
ctx.formatter.error({
|
|
1118
|
+
ctx.formatter.error({
|
|
1119
|
+
message: "Usage: namzu state [report | move legacy [--dry-run] | purge [path] [--dry-run] [--yes] [--all]]"
|
|
1120
|
+
});
|
|
699
1121
|
return EXIT_USAGE;
|
|
700
1122
|
}
|
|
701
1123
|
const report = await deps.inspect();
|
|
@@ -705,6 +1127,114 @@ function createStateCommand(deps) {
|
|
|
705
1127
|
};
|
|
706
1128
|
}
|
|
707
1129
|
__name(createStateCommand, "createStateCommand");
|
|
1130
|
+
async function askOnTerminal(question) {
|
|
1131
|
+
const rl = createInterface({ input: process.stdin, output: process.stderr });
|
|
1132
|
+
try {
|
|
1133
|
+
const answer = await rl.question(question);
|
|
1134
|
+
return /^y(es)?$/i.test(answer.trim());
|
|
1135
|
+
} finally {
|
|
1136
|
+
rl.close();
|
|
1137
|
+
}
|
|
1138
|
+
}
|
|
1139
|
+
__name(askOnTerminal, "askOnTerminal");
|
|
1140
|
+
async function runPurge(formatter, args, seams = {}) {
|
|
1141
|
+
let dryRun = false;
|
|
1142
|
+
let yes = false;
|
|
1143
|
+
let all = false;
|
|
1144
|
+
const operands = [];
|
|
1145
|
+
for (const arg of args) {
|
|
1146
|
+
if (arg === "--dry-run") dryRun = true;
|
|
1147
|
+
else if (arg === "--yes") yes = true;
|
|
1148
|
+
else if (arg === "--all") all = true;
|
|
1149
|
+
else if (arg.startsWith("-")) {
|
|
1150
|
+
formatter.error({ message: "Usage: namzu state purge [path] [--dry-run] [--yes] [--all]" });
|
|
1151
|
+
return EXIT_USAGE;
|
|
1152
|
+
} else operands.push(arg);
|
|
1153
|
+
}
|
|
1154
|
+
if (operands.length > 1 || all && operands.length > 0) {
|
|
1155
|
+
formatter.error({
|
|
1156
|
+
message: all ? "`namzu state purge --all` takes no path." : "Usage: namzu state purge [path] [--dry-run] [--yes] [--all]"
|
|
1157
|
+
});
|
|
1158
|
+
return EXIT_USAGE;
|
|
1159
|
+
}
|
|
1160
|
+
const isTerminal = seams.isTerminal ?? (() => Boolean(process.stdin.isTTY && process.stdout.isTTY));
|
|
1161
|
+
if (!dryRun && !yes && !isTerminal()) {
|
|
1162
|
+
formatter.error({
|
|
1163
|
+
message: "There is no terminal to ask on: add --yes to delete, or --dry-run to only list."
|
|
1164
|
+
});
|
|
1165
|
+
return EXIT_USAGE;
|
|
1166
|
+
}
|
|
1167
|
+
const home = (seams.home ?? (() => resolveNamzuHome()))();
|
|
1168
|
+
let plan;
|
|
1169
|
+
if (all) {
|
|
1170
|
+
plan = await planAllPurge(home, seams.seams);
|
|
1171
|
+
} else {
|
|
1172
|
+
const cwd = (seams.cwd ?? (() => process.cwd()))();
|
|
1173
|
+
let folder;
|
|
1174
|
+
try {
|
|
1175
|
+
folder = await realpath3(resolve2(cwd, operands[0] ?? "."));
|
|
1176
|
+
} catch {
|
|
1177
|
+
formatter.error({ message: `There is no folder at ${safePath(operands[0] ?? cwd)}.` });
|
|
1178
|
+
return EXIT_USAGE;
|
|
1179
|
+
}
|
|
1180
|
+
plan = await planProjectPurge(home, cliProjectRoot(folder), seams.seams);
|
|
1181
|
+
}
|
|
1182
|
+
const blocked = plan.projects.filter((project) => project.blocked !== void 0);
|
|
1183
|
+
const items = plan.projects.flatMap((project) => project.items);
|
|
1184
|
+
if (items.length === 0 && plan.history === void 0) {
|
|
1185
|
+
const text = blocked.length > 0 ? renderPurgePlan(plan, dryRun) : "Nothing is kept in the Namzu home for this.";
|
|
1186
|
+
formatter.print({ ...plan, text });
|
|
1187
|
+
return blocked.length > 0 ? EXIT_FAIL : EXIT_OK;
|
|
1188
|
+
}
|
|
1189
|
+
if (dryRun) {
|
|
1190
|
+
formatter.print({ ...plan, dryRun: true, text: renderPurgePlan(plan, true) });
|
|
1191
|
+
return blocked.length > 0 ? EXIT_FAIL : EXIT_OK;
|
|
1192
|
+
}
|
|
1193
|
+
formatter.print({ ...plan, text: renderPurgePlan(plan, false) });
|
|
1194
|
+
if (!yes) {
|
|
1195
|
+
const ok = await (seams.confirm ?? askOnTerminal)("Delete this? [y/N] ");
|
|
1196
|
+
if (!ok) {
|
|
1197
|
+
formatter.print({ text: "Nothing was deleted." });
|
|
1198
|
+
return EXIT_OK;
|
|
1199
|
+
}
|
|
1200
|
+
}
|
|
1201
|
+
const outcomes = await executePurge(plan, { all }, seams.seams);
|
|
1202
|
+
formatter.print({ outcomes, text: renderPurgeOutcome(outcomes) });
|
|
1203
|
+
return outcomes.some((outcome) => outcome.failed.length > 0) || blocked.length > 0 ? EXIT_FAIL : EXIT_OK;
|
|
1204
|
+
}
|
|
1205
|
+
__name(runPurge, "runPurge");
|
|
1206
|
+
function renderPurgePlan(plan, dryRun) {
|
|
1207
|
+
const lines = [
|
|
1208
|
+
dryRun ? "Would delete (nothing is deleted):" : "This deletes, under the Namzu home:"
|
|
1209
|
+
];
|
|
1210
|
+
const describe = /* @__PURE__ */ __name((item) => item.count !== void 0 ? `${item.count} ${item.count === 1 ? item.what.replace(/^(prompt|row)s /, "$1 ") : item.what}` : `${item.what}: ${formatBytes(item.bytes)} \xB7 ${item.files} files`, "describe");
|
|
1211
|
+
for (const project of plan.projects) {
|
|
1212
|
+
lines.push("", project.folder !== null ? safePath(project.folder) : project.slug);
|
|
1213
|
+
if (project.blocked !== void 0) {
|
|
1214
|
+
lines.push(` left alone: ${safeLine(project.blocked)}`);
|
|
1215
|
+
continue;
|
|
1216
|
+
}
|
|
1217
|
+
for (const item of project.items) {
|
|
1218
|
+
lines.push(` ${safePath(homePath(item.path))}`);
|
|
1219
|
+
lines.push(` ${describe(item)}`);
|
|
1220
|
+
}
|
|
1221
|
+
}
|
|
1222
|
+
if (plan.history !== void 0) {
|
|
1223
|
+
lines.push("", ` ${safePath(homePath(plan.history.path))}`, ` ${describe(plan.history)}`);
|
|
1224
|
+
}
|
|
1225
|
+
lines.push("", "Files inside the project folders are not touched.");
|
|
1226
|
+
return lines.join("\n");
|
|
1227
|
+
}
|
|
1228
|
+
__name(renderPurgePlan, "renderPurgePlan");
|
|
1229
|
+
function renderPurgeOutcome(outcomes) {
|
|
1230
|
+
const lines = [];
|
|
1231
|
+
for (const outcome of outcomes) {
|
|
1232
|
+
for (const done of outcome.deleted) lines.push(`Deleted ${safePath(homePath(done))}`);
|
|
1233
|
+
for (const bad of outcome.failed) lines.push(`Could not delete ${safeLine(bad)}`);
|
|
1234
|
+
}
|
|
1235
|
+
return lines.length > 0 ? lines.join("\n") : "Nothing was deleted.";
|
|
1236
|
+
}
|
|
1237
|
+
__name(renderPurgeOutcome, "renderPurgeOutcome");
|
|
708
1238
|
var stateCommand = createStateCommand({
|
|
709
1239
|
inspect: inspectNamzuState
|
|
710
1240
|
});
|
|
@@ -767,9 +1297,9 @@ function renderStateReport(report) {
|
|
|
767
1297
|
lines.push(
|
|
768
1298
|
` ${formatBytes(root.logicalBytes)} \xB7 ${root.files} files \xB7 ${root.directories} directories`
|
|
769
1299
|
);
|
|
770
|
-
for (const [category,
|
|
771
|
-
if (
|
|
772
|
-
lines.push(` ${category}: ${formatBytes(
|
|
1300
|
+
for (const [category, measure2] of Object.entries(root.categories)) {
|
|
1301
|
+
if (measure2.files === 0) continue;
|
|
1302
|
+
lines.push(` ${category}: ${formatBytes(measure2.logicalBytes)} \xB7 ${measure2.files} files`);
|
|
773
1303
|
}
|
|
774
1304
|
const inventory = root.inventory;
|
|
775
1305
|
if (inventory.projects > 0 || inventory.sessionLogs.files > 0) {
|
|
@@ -848,7 +1378,9 @@ __name(safeLine, "safeLine");
|
|
|
848
1378
|
export {
|
|
849
1379
|
createStateCommand,
|
|
850
1380
|
renderLegacyMove,
|
|
1381
|
+
renderPurgeOutcome,
|
|
1382
|
+
renderPurgePlan,
|
|
851
1383
|
renderStateReport,
|
|
852
1384
|
stateCommand
|
|
853
1385
|
};
|
|
854
|
-
//# sourceMappingURL=state-
|
|
1386
|
+
//# sourceMappingURL=state-2DBTSDEP.js.map
|