@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
|
@@ -2,7 +2,7 @@ import { createRequire as __namzuCreateRequire } from 'node:module';
|
|
|
2
2
|
const require = __namzuCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
dispatchCliPalMessages
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-E6FMAE5Q.js";
|
|
6
6
|
import {
|
|
7
7
|
checkUserMcpServerSave,
|
|
8
8
|
listEntryForUserMcpServer,
|
|
@@ -11,10 +11,10 @@ import {
|
|
|
11
11
|
removeUserMcpServer,
|
|
12
12
|
saveUserMcpServer,
|
|
13
13
|
summarizeUserMcpServer
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-IRAG3YXW.js";
|
|
15
15
|
import {
|
|
16
16
|
decideHeadlessTrust
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-JRWUIW4J.js";
|
|
18
18
|
import {
|
|
19
19
|
conversationMarkdown,
|
|
20
20
|
createExtensionsRpc,
|
|
@@ -29,8 +29,8 @@ import {
|
|
|
29
29
|
startDesktopExtensions,
|
|
30
30
|
stopDesktopExtensions,
|
|
31
31
|
withKeyNote
|
|
32
|
-
} from "./chunk-
|
|
33
|
-
import "./chunk-
|
|
32
|
+
} from "./chunk-3ETXWTV4.js";
|
|
33
|
+
import "./chunk-YNWPC3HO.js";
|
|
34
34
|
import "./chunk-6ITTTCLD.js";
|
|
35
35
|
import {
|
|
36
36
|
advertisedPromptModes,
|
|
@@ -40,21 +40,22 @@ import {
|
|
|
40
40
|
outcomeLine,
|
|
41
41
|
sessionOptionsFromConfig,
|
|
42
42
|
turnOptionsFromConfig
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-MRZHTIE7.js";
|
|
44
44
|
import {
|
|
45
45
|
launchRefusal
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-QTHG6UPU.js";
|
|
47
47
|
import {
|
|
48
48
|
HeadlessScreen
|
|
49
49
|
} from "./chunk-GWGIAZLZ.js";
|
|
50
50
|
import "./chunk-6HTC5TQ3.js";
|
|
51
51
|
import {
|
|
52
52
|
palSessionEnvironment
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-W4S4ZBXX.js";
|
|
54
54
|
import {
|
|
55
55
|
FileCheckpointStore,
|
|
56
56
|
IdleCompactor,
|
|
57
57
|
SET_SETTING_TOOL,
|
|
58
|
+
browserWindowQuestionApp,
|
|
58
59
|
createAgentSession,
|
|
59
60
|
deleteManagedMemory,
|
|
60
61
|
describeAgentChange,
|
|
@@ -71,28 +72,31 @@ import {
|
|
|
71
72
|
updateManagedMemory,
|
|
72
73
|
validateComposerSendSettings,
|
|
73
74
|
verifyCredential
|
|
74
|
-
} from "./chunk-
|
|
75
|
-
import "./chunk-
|
|
76
|
-
import "./chunk-
|
|
77
|
-
import "./chunk-
|
|
78
|
-
import "./chunk-
|
|
79
|
-
import "./chunk-
|
|
75
|
+
} from "./chunk-OQWLQUO7.js";
|
|
76
|
+
import "./chunk-567CSU37.js";
|
|
77
|
+
import "./chunk-DGYMR4WJ.js";
|
|
78
|
+
import "./chunk-JZTTOZRG.js";
|
|
79
|
+
import "./chunk-D3SCA6NT.js";
|
|
80
|
+
import "./chunk-4RW7GDJ4.js";
|
|
81
|
+
import "./chunk-FMQCPAKR.js";
|
|
82
|
+
import "./chunk-6IOZY2AB.js";
|
|
80
83
|
import {
|
|
81
84
|
resolveProgressNudge
|
|
82
|
-
} from "./chunk-
|
|
83
|
-
import "./chunk-
|
|
85
|
+
} from "./chunk-LB4HC5U7.js";
|
|
86
|
+
import "./chunk-W752G3FM.js";
|
|
87
|
+
import "./chunk-D35UCVTK.js";
|
|
84
88
|
import {
|
|
85
89
|
findProject
|
|
86
|
-
} from "./chunk-
|
|
87
|
-
import "./chunk-
|
|
88
|
-
import "./chunk-
|
|
90
|
+
} from "./chunk-SSPHAILP.js";
|
|
91
|
+
import "./chunk-LXJW3ZYI.js";
|
|
92
|
+
import "./chunk-VL6Z2OMG.js";
|
|
89
93
|
import "./chunk-YOWYTBJS.js";
|
|
90
|
-
import "./chunk-
|
|
94
|
+
import "./chunk-JUDJGDYX.js";
|
|
91
95
|
import "./chunk-NUGPLXVK.js";
|
|
92
|
-
import "./chunk-
|
|
96
|
+
import "./chunk-KPOOM7QT.js";
|
|
93
97
|
import "./chunk-SD25ASC7.js";
|
|
94
|
-
import "./chunk-
|
|
95
|
-
import "./chunk-
|
|
98
|
+
import "./chunk-DKSFQRUM.js";
|
|
99
|
+
import "./chunk-GEVWZWLM.js";
|
|
96
100
|
import {
|
|
97
101
|
cliPalComputerStatus,
|
|
98
102
|
cliPalScreen,
|
|
@@ -105,19 +109,19 @@ import {
|
|
|
105
109
|
startCliPalComputer,
|
|
106
110
|
stopCliPalComputer,
|
|
107
111
|
takeOverCliPalComputer
|
|
108
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-S7FE35WQ.js";
|
|
109
113
|
import "./chunk-ZWA2JRJV.js";
|
|
110
114
|
import {
|
|
111
115
|
cliPalActivitySubscriptionPolicy,
|
|
112
116
|
cliPalActivitySubscriptionStore,
|
|
113
117
|
cliPalCommunicationPolicy,
|
|
114
118
|
cliPalCommunicationStore
|
|
115
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-24EZWZDZ.js";
|
|
116
120
|
import {
|
|
117
121
|
claimPalConversation,
|
|
118
122
|
listPalConversations,
|
|
119
123
|
palConversationBinding
|
|
120
|
-
} from "./chunk-
|
|
124
|
+
} from "./chunk-TORIEDBN.js";
|
|
121
125
|
import {
|
|
122
126
|
archiveConversation,
|
|
123
127
|
closeSessions,
|
|
@@ -139,14 +143,13 @@ import {
|
|
|
139
143
|
storedAssistantPhase,
|
|
140
144
|
titlesOf,
|
|
141
145
|
unarchiveConversation
|
|
142
|
-
} from "./chunk-
|
|
143
|
-
import "./chunk-CPDGXVVE.js";
|
|
146
|
+
} from "./chunk-OH7EYW3T.js";
|
|
144
147
|
import {
|
|
145
148
|
INSTRUCTIONS_FILENAME,
|
|
146
149
|
MAX_BYTES_TO_READ,
|
|
147
150
|
MAX_CHARS_PER_FILE,
|
|
148
151
|
cliProjectRoot
|
|
149
|
-
} from "./chunk-
|
|
152
|
+
} from "./chunk-XJALHM5Z.js";
|
|
150
153
|
import {
|
|
151
154
|
cliPalStore,
|
|
152
155
|
createPal,
|
|
@@ -156,15 +159,17 @@ import {
|
|
|
156
159
|
listPals,
|
|
157
160
|
palAtWorkspace,
|
|
158
161
|
updatePal
|
|
159
|
-
} from "./chunk-
|
|
162
|
+
} from "./chunk-5HMJ3DYR.js";
|
|
163
|
+
import "./chunk-TYNAB5GR.js";
|
|
164
|
+
import "./chunk-7TDOAGVX.js";
|
|
160
165
|
import {
|
|
161
166
|
buildCostReport
|
|
162
|
-
} from "./chunk-
|
|
163
|
-
import "./chunk-
|
|
167
|
+
} from "./chunk-23D5IXMW.js";
|
|
168
|
+
import "./chunk-P4TCLMD6.js";
|
|
164
169
|
import "./chunk-LYUY2FK2.js";
|
|
165
170
|
import {
|
|
166
171
|
accountForProvider
|
|
167
|
-
} from "./chunk-
|
|
172
|
+
} from "./chunk-CQFWLYTK.js";
|
|
168
173
|
import {
|
|
169
174
|
flushCompileCacheWhenIdle
|
|
170
175
|
} from "./chunk-SOIP273Z.js";
|
|
@@ -177,23 +182,27 @@ import {
|
|
|
177
182
|
} from "./chunk-JEW7RLYH.js";
|
|
178
183
|
import {
|
|
179
184
|
warnBroadAllowRules
|
|
180
|
-
} from "./chunk-
|
|
185
|
+
} from "./chunk-KVNL7XA6.js";
|
|
181
186
|
import "./chunk-EDOJTQQU.js";
|
|
182
|
-
import "./chunk-
|
|
187
|
+
import "./chunk-MF57EX7H.js";
|
|
183
188
|
import {
|
|
184
|
-
|
|
185
|
-
|
|
189
|
+
buildSaveSkillTool,
|
|
190
|
+
describeCollision,
|
|
191
|
+
displayPath,
|
|
192
|
+
newSkillPrompt
|
|
193
|
+
} from "./chunk-FK5C7SHM.js";
|
|
186
194
|
import "./chunk-ZKCOQZ3U.js";
|
|
187
195
|
import "./chunk-BBTPD3DU.js";
|
|
188
|
-
import "./chunk-
|
|
196
|
+
import "./chunk-5OYJXSMZ.js";
|
|
197
|
+
import "./chunk-QZTTIL3A.js";
|
|
189
198
|
import "./chunk-GNBMKISG.js";
|
|
190
199
|
import {
|
|
191
200
|
handoffContinuationNote
|
|
192
|
-
} from "./chunk-
|
|
193
|
-
import "./chunk-
|
|
201
|
+
} from "./chunk-3PH6F6Z3.js";
|
|
202
|
+
import "./chunk-7J23SPSX.js";
|
|
194
203
|
import {
|
|
195
204
|
isPermissionMode
|
|
196
|
-
} from "./chunk-
|
|
205
|
+
} from "./chunk-ZQGCZYAE.js";
|
|
197
206
|
import "./chunk-P65AXQPL.js";
|
|
198
207
|
import {
|
|
199
208
|
TERMINAL_MARKER,
|
|
@@ -205,18 +214,18 @@ import {
|
|
|
205
214
|
loadHostPty,
|
|
206
215
|
processesCarrying,
|
|
207
216
|
quietConptyHelper
|
|
208
|
-
} from "./chunk-
|
|
217
|
+
} from "./chunk-2EVP6BX4.js";
|
|
209
218
|
import {
|
|
210
219
|
CLI_VERSION
|
|
211
220
|
} from "./chunk-HE7WUOX2.js";
|
|
212
221
|
import "./chunk-OH6TB27S.js";
|
|
213
|
-
import "./chunk-
|
|
214
|
-
import "./chunk-
|
|
222
|
+
import "./chunk-4BAXYUZQ.js";
|
|
223
|
+
import "./chunk-WSDZIJNK.js";
|
|
215
224
|
import {
|
|
216
225
|
PluginSettingsStore
|
|
217
|
-
} from "./chunk-
|
|
218
|
-
import "./chunk-
|
|
219
|
-
import "./chunk-
|
|
226
|
+
} from "./chunk-AEXGGJUW.js";
|
|
227
|
+
import "./chunk-ACO3LTRT.js";
|
|
228
|
+
import "./chunk-HW2QBNAA.js";
|
|
220
229
|
import {
|
|
221
230
|
automaticKind,
|
|
222
231
|
canSelectModel,
|
|
@@ -226,20 +235,20 @@ import {
|
|
|
226
235
|
removeProviderKey,
|
|
227
236
|
saveProviderKey,
|
|
228
237
|
typedKeyProvider
|
|
229
|
-
} from "./chunk-
|
|
238
|
+
} from "./chunk-KBLYZ7L7.js";
|
|
230
239
|
import {
|
|
231
240
|
isOfferableModel
|
|
232
241
|
} from "./chunk-4QIWRKJO.js";
|
|
233
242
|
import "./chunk-KTPFUCRU.js";
|
|
234
243
|
import "./chunk-LPPFJYL6.js";
|
|
235
|
-
import "./chunk-
|
|
236
|
-
import "./chunk-
|
|
244
|
+
import "./chunk-4TIUY3Q6.js";
|
|
245
|
+
import "./chunk-4TJ7AGQO.js";
|
|
237
246
|
import {
|
|
238
247
|
isTrusted,
|
|
239
248
|
isTrustedAtStateRoot,
|
|
240
249
|
trustDir,
|
|
241
250
|
untrustDir
|
|
242
|
-
} from "./chunk-
|
|
251
|
+
} from "./chunk-O2PZDA5H.js";
|
|
243
252
|
import "./chunk-24V2WEKR.js";
|
|
244
253
|
import {
|
|
245
254
|
systemClock
|
|
@@ -249,11 +258,11 @@ import {
|
|
|
249
258
|
checkSetting,
|
|
250
259
|
readSettings,
|
|
251
260
|
writeSetting
|
|
252
|
-
} from "./chunk-
|
|
261
|
+
} from "./chunk-OSC47PCX.js";
|
|
253
262
|
import {
|
|
254
263
|
userConfigPath
|
|
255
|
-
} from "./chunk-
|
|
256
|
-
import "./chunk-
|
|
264
|
+
} from "./chunk-CEZW3NVM.js";
|
|
265
|
+
import "./chunk-XLXPPVUT.js";
|
|
257
266
|
import {
|
|
258
267
|
approveShownMcpServers,
|
|
259
268
|
compileBrowserSites,
|
|
@@ -262,34 +271,34 @@ import {
|
|
|
262
271
|
loadConfig,
|
|
263
272
|
pendingProjectMcpServers,
|
|
264
273
|
withBrowserSiteRules
|
|
265
|
-
} from "./chunk-
|
|
266
|
-
import "./chunk-5WORROIE.js";
|
|
274
|
+
} from "./chunk-KHGY6QJR.js";
|
|
267
275
|
import {
|
|
268
276
|
compilePermissionLayers,
|
|
269
277
|
permissionLayersOf,
|
|
270
278
|
warnLegacyMcpPermissionNames
|
|
271
|
-
} from "./chunk-
|
|
279
|
+
} from "./chunk-ABKURT35.js";
|
|
280
|
+
import "./chunk-5WORROIE.js";
|
|
272
281
|
import "./chunk-WMEZTDLT.js";
|
|
273
282
|
import "./chunk-LCGXWCVU.js";
|
|
274
|
-
import "./chunk-
|
|
283
|
+
import "./chunk-7YC42EXB.js";
|
|
275
284
|
import "./chunk-LVVD32KJ.js";
|
|
276
285
|
import "./chunk-GMUWAUKQ.js";
|
|
277
286
|
import "./chunk-PJ6IEIKJ.js";
|
|
278
287
|
import {
|
|
279
288
|
cliLogger
|
|
280
|
-
} from "./chunk-
|
|
289
|
+
} from "./chunk-XVOPQCPD.js";
|
|
281
290
|
import "./chunk-G6YSAHKC.js";
|
|
282
291
|
import {
|
|
283
292
|
canonicalProjectPath
|
|
284
293
|
} from "./chunk-JORONMD3.js";
|
|
285
294
|
import {
|
|
286
295
|
StateFileUnreadableError
|
|
287
|
-
} from "./chunk-
|
|
288
|
-
import "./chunk-
|
|
289
|
-
import "./chunk-6MQHDX7R.js";
|
|
296
|
+
} from "./chunk-PFVYYH6O.js";
|
|
297
|
+
import "./chunk-GUK47JTV.js";
|
|
290
298
|
import "./chunk-WRPEQ3KP.js";
|
|
299
|
+
import "./chunk-44MFZJ24.js";
|
|
291
300
|
import "./chunk-A6RHRNY2.js";
|
|
292
|
-
import "./chunk-
|
|
301
|
+
import "./chunk-CG5CGXNF.js";
|
|
293
302
|
import "./chunk-U5UV2YRE.js";
|
|
294
303
|
import "./chunk-PHW6PWIJ.js";
|
|
295
304
|
import {
|
|
@@ -337,7 +346,7 @@ import {
|
|
|
337
346
|
selectAssistantText,
|
|
338
347
|
turnHolder,
|
|
339
348
|
withSessionChildMarker
|
|
340
|
-
} from "./chunk-
|
|
349
|
+
} from "./chunk-5JVKE4LB.js";
|
|
341
350
|
import {
|
|
342
351
|
__name
|
|
343
352
|
} from "./chunk-76FLAFCG.js";
|
|
@@ -432,9 +441,9 @@ function createLimitsFeed(options) {
|
|
|
432
441
|
if (sources.length === 0) return;
|
|
433
442
|
await Promise.all(sources.map((source) => readOne(source, false)));
|
|
434
443
|
const view = await build();
|
|
435
|
-
const
|
|
436
|
-
if (
|
|
437
|
-
lastSent =
|
|
444
|
+
const text5 = JSON.stringify(view);
|
|
445
|
+
if (text5 === lastSent) return;
|
|
446
|
+
lastSent = text5;
|
|
438
447
|
try {
|
|
439
448
|
options.notify(LIMITS_NOTIFICATION, { ...view });
|
|
440
449
|
} catch {
|
|
@@ -581,12 +590,12 @@ __name(readPluginInventory, "readPluginInventory");
|
|
|
581
590
|
import { randomUUID } from "node:crypto";
|
|
582
591
|
var CLICK_ID = /^[A-Za-z0-9_-]{8,80}$/u;
|
|
583
592
|
function plainFailure(name, error) {
|
|
584
|
-
const
|
|
585
|
-
if (/busy in another conversation/iu.test(
|
|
593
|
+
const text5 = error instanceof Error ? error.message : String(error);
|
|
594
|
+
if (/busy in another conversation/iu.test(text5))
|
|
586
595
|
return `${name} is busy. It will read your message at its next step.`;
|
|
587
|
-
if (/model provider/iu.test(
|
|
596
|
+
if (/model provider/iu.test(text5))
|
|
588
597
|
return `${name} has no model chosen yet. Choose one in ${name}\u2019s settings, then start it again.`;
|
|
589
|
-
if (/refused|explicit go/iu.test(
|
|
598
|
+
if (/refused|explicit go/iu.test(text5))
|
|
590
599
|
return `${name} could not be started: your go was not accepted. Try again.`;
|
|
591
600
|
return `${name} could not be started. Try again in a moment.`;
|
|
592
601
|
}
|
|
@@ -689,6 +698,45 @@ function createPalInboxStarter(context, deps = {}) {
|
|
|
689
698
|
}
|
|
690
699
|
__name(createPalInboxStarter, "createPalInboxStarter");
|
|
691
700
|
|
|
701
|
+
// src/skills/save-card.ts
|
|
702
|
+
var SKILL_SAVE_QUESTION_ID = "skill-save";
|
|
703
|
+
var SKILL_SAVE_OPTIONS = ["user", "project", "cancel"];
|
|
704
|
+
function skillSaveCardPayload(request, cwd) {
|
|
705
|
+
const target2 = /* @__PURE__ */ __name((scope) => {
|
|
706
|
+
const planned = request.targets[scope];
|
|
707
|
+
return {
|
|
708
|
+
scope,
|
|
709
|
+
path: planned.displayPath,
|
|
710
|
+
shadows: planned.collisions.map((collision) => describeCollision(collision, cwd))
|
|
711
|
+
};
|
|
712
|
+
}, "target");
|
|
713
|
+
const targets = [target2("user"), target2("project")];
|
|
714
|
+
return {
|
|
715
|
+
name: request.draft.name,
|
|
716
|
+
description: request.draft.description,
|
|
717
|
+
file: request.revealed,
|
|
718
|
+
hiddenCharacters: request.revealed !== request.markdown,
|
|
719
|
+
warnings: request.warnings,
|
|
720
|
+
suggested: request.suggested,
|
|
721
|
+
targets,
|
|
722
|
+
shadowsExisting: targets.some((entry) => entry.shadows.length > 0)
|
|
723
|
+
};
|
|
724
|
+
}
|
|
725
|
+
__name(skillSaveCardPayload, "skillSaveCardPayload");
|
|
726
|
+
var SKILLS_HOST_COMMAND = {
|
|
727
|
+
name: "skills",
|
|
728
|
+
description: "Create a skill: Namzu interviews you, shows the draft, and saves it after you confirm.",
|
|
729
|
+
hint: "new [what the skill should do]",
|
|
730
|
+
args: {
|
|
731
|
+
type: "object",
|
|
732
|
+
properties: { words: { type: "array", items: { type: "string" } } }
|
|
733
|
+
},
|
|
734
|
+
handler: /* @__PURE__ */ __name(({ args }) => {
|
|
735
|
+
if (args[0] !== "new") return { kind: "refused", reason: 'Say "skills new" to create a skill.' };
|
|
736
|
+
return { kind: "prompt", text: newSkillPrompt(args.slice(1).join(" ")) };
|
|
737
|
+
}, "handler")
|
|
738
|
+
};
|
|
739
|
+
|
|
692
740
|
// src/terminal/manager.ts
|
|
693
741
|
import { randomUUID as randomUUID2 } from "node:crypto";
|
|
694
742
|
import { realpathSync, statSync } from "node:fs";
|
|
@@ -910,11 +958,11 @@ var OutputRing = class {
|
|
|
910
958
|
get end() {
|
|
911
959
|
return this.total;
|
|
912
960
|
}
|
|
913
|
-
append(
|
|
914
|
-
if (
|
|
915
|
-
this.chunks.push({ start: this.total, text:
|
|
916
|
-
this.total +=
|
|
917
|
-
this.retained +=
|
|
961
|
+
append(text5) {
|
|
962
|
+
if (text5.length === 0) return this.total;
|
|
963
|
+
this.chunks.push({ start: this.total, text: text5 });
|
|
964
|
+
this.total += text5.length;
|
|
965
|
+
this.retained += text5.length;
|
|
918
966
|
while (this.retained > this.capacity) {
|
|
919
967
|
const first = this.chunks[0];
|
|
920
968
|
if (!first) break;
|
|
@@ -1113,15 +1161,15 @@ var TerminalManager = class {
|
|
|
1113
1161
|
});
|
|
1114
1162
|
}
|
|
1115
1163
|
flush(terminal) {
|
|
1116
|
-
const
|
|
1117
|
-
if (
|
|
1164
|
+
const text5 = terminal.pending;
|
|
1165
|
+
if (text5 === "") return;
|
|
1118
1166
|
let offset = terminal.pendingStart;
|
|
1119
1167
|
terminal.pending = "";
|
|
1120
|
-
for (let at = 0; at <
|
|
1121
|
-
let end = Math.min(
|
|
1122
|
-
const last =
|
|
1123
|
-
if (end <
|
|
1124
|
-
const data =
|
|
1168
|
+
for (let at = 0; at < text5.length; ) {
|
|
1169
|
+
let end = Math.min(text5.length, at + TERMINAL_LIMITS.maxChunk);
|
|
1170
|
+
const last = text5.charCodeAt(end - 1);
|
|
1171
|
+
if (end < text5.length && last >= 55296 && last <= 56319) end -= 1;
|
|
1172
|
+
const data = text5.slice(at, end);
|
|
1125
1173
|
this.options.emit({ type: "data", params: { terminalId: terminal.id, offset, data } });
|
|
1126
1174
|
offset += data.length;
|
|
1127
1175
|
at = end;
|
|
@@ -1452,8 +1500,212 @@ function createTerminalHost(options) {
|
|
|
1452
1500
|
}
|
|
1453
1501
|
__name(createTerminalHost, "createTerminalHost");
|
|
1454
1502
|
|
|
1503
|
+
// src/commands/acp-browser-pane.ts
|
|
1504
|
+
var BROWSER_PANE_CAPABILITY = "namzu/browser-pane";
|
|
1505
|
+
var BROWSER_PANE_METHODS = {
|
|
1506
|
+
open: "namzu/browser/pane/open",
|
|
1507
|
+
cdp: "namzu/browser/pane/cdp",
|
|
1508
|
+
close: "namzu/browser/pane/close",
|
|
1509
|
+
event: "namzu/browser/pane/event",
|
|
1510
|
+
state: "namzu/browser/pane/state"
|
|
1511
|
+
};
|
|
1512
|
+
var BROWSER_PANE_SERVED_METHODS = [
|
|
1513
|
+
BROWSER_PANE_METHODS.event,
|
|
1514
|
+
BROWSER_PANE_METHODS.state
|
|
1515
|
+
];
|
|
1516
|
+
var text3 = /* @__PURE__ */ __name((value) => typeof value === "string" && value !== "" && value.length <= 400 ? value : void 0, "text");
|
|
1517
|
+
function object(value) {
|
|
1518
|
+
return value && typeof value === "object" && !Array.isArray(value) ? value : void 0;
|
|
1519
|
+
}
|
|
1520
|
+
__name(object, "object");
|
|
1521
|
+
function createAcpPaneLink(connection) {
|
|
1522
|
+
const channels = /* @__PURE__ */ new Set();
|
|
1523
|
+
let closed;
|
|
1524
|
+
class Channel {
|
|
1525
|
+
constructor(sessionId, rules) {
|
|
1526
|
+
this.sessionId = sessionId;
|
|
1527
|
+
this.rules = rules;
|
|
1528
|
+
}
|
|
1529
|
+
sessionId;
|
|
1530
|
+
rules;
|
|
1531
|
+
static {
|
|
1532
|
+
__name(this, "Channel");
|
|
1533
|
+
}
|
|
1534
|
+
events = /* @__PURE__ */ new Set();
|
|
1535
|
+
added = /* @__PURE__ */ new Set();
|
|
1536
|
+
gone = /* @__PURE__ */ new Set();
|
|
1537
|
+
closes = /* @__PURE__ */ new Set();
|
|
1538
|
+
opened;
|
|
1539
|
+
primary;
|
|
1540
|
+
tabs = /* @__PURE__ */ new Set();
|
|
1541
|
+
holder = "agent";
|
|
1542
|
+
done = false;
|
|
1543
|
+
control() {
|
|
1544
|
+
return this.holder;
|
|
1545
|
+
}
|
|
1546
|
+
ask(method, params) {
|
|
1547
|
+
if (this.done || closed !== void 0)
|
|
1548
|
+
return Promise.reject(new Error("The Browser pane is not connected."));
|
|
1549
|
+
channels.add(this);
|
|
1550
|
+
return connection.ask(method, { sessionId: this.sessionId, ...params });
|
|
1551
|
+
}
|
|
1552
|
+
listTabs() {
|
|
1553
|
+
this.opened ??= this.ask(BROWSER_PANE_METHODS.open, {
|
|
1554
|
+
...this.rules !== void 0 ? { rules: this.rules } : {}
|
|
1555
|
+
}).then((reply) => {
|
|
1556
|
+
const tabId = text3(object(reply)?.tabId);
|
|
1557
|
+
if (!tabId) throw new Error("The Browser pane did not name the tab it opened.");
|
|
1558
|
+
this.primary = tabId;
|
|
1559
|
+
this.tabs.add(tabId);
|
|
1560
|
+
return [{ tabId }];
|
|
1561
|
+
});
|
|
1562
|
+
return this.opened.then(() => [...this.tabs].map((tabId) => ({ tabId })));
|
|
1563
|
+
}
|
|
1564
|
+
async cdp(tabId, method, params, sessionId) {
|
|
1565
|
+
const reply = await this.ask(BROWSER_PANE_METHODS.cdp, {
|
|
1566
|
+
tabId,
|
|
1567
|
+
method,
|
|
1568
|
+
...params !== void 0 ? { params } : {},
|
|
1569
|
+
...sessionId !== void 0 ? { cdpSessionId: sessionId } : {}
|
|
1570
|
+
});
|
|
1571
|
+
const answer = object(reply);
|
|
1572
|
+
return answer && "result" in answer ? answer.result : reply;
|
|
1573
|
+
}
|
|
1574
|
+
onEvent(listener) {
|
|
1575
|
+
this.events.add(listener);
|
|
1576
|
+
return () => this.events.delete(listener);
|
|
1577
|
+
}
|
|
1578
|
+
onTabAdded(listener) {
|
|
1579
|
+
this.added.add(listener);
|
|
1580
|
+
return () => this.added.delete(listener);
|
|
1581
|
+
}
|
|
1582
|
+
onTabClosed(listener) {
|
|
1583
|
+
this.gone.add(listener);
|
|
1584
|
+
return () => this.gone.delete(listener);
|
|
1585
|
+
}
|
|
1586
|
+
onClose(listener) {
|
|
1587
|
+
this.closes.add(listener);
|
|
1588
|
+
return () => this.closes.delete(listener);
|
|
1589
|
+
}
|
|
1590
|
+
// The first tab stays: it is the one the conversation always has, and the host has nowhere
|
|
1591
|
+
// to go if it is closed. A tab a page opened can be closed.
|
|
1592
|
+
async closeTab(tabId) {
|
|
1593
|
+
if (tabId === this.primary)
|
|
1594
|
+
throw new Error(
|
|
1595
|
+
"The Browser pane keeps this conversation\u2019s first tab open. Open another address in it instead."
|
|
1596
|
+
);
|
|
1597
|
+
await this.ask(BROWSER_PANE_METHODS.close, { tabId });
|
|
1598
|
+
this.forget(tabId);
|
|
1599
|
+
}
|
|
1600
|
+
async close() {
|
|
1601
|
+
if (this.done) return;
|
|
1602
|
+
const wasOpen = this.opened !== void 0 && closed === void 0;
|
|
1603
|
+
this.done = true;
|
|
1604
|
+
channels.delete(this);
|
|
1605
|
+
if (wasOpen)
|
|
1606
|
+
await connection.ask(BROWSER_PANE_METHODS.close, {
|
|
1607
|
+
sessionId: this.sessionId,
|
|
1608
|
+
release: true
|
|
1609
|
+
}).catch(() => void 0);
|
|
1610
|
+
}
|
|
1611
|
+
// ---- What the application says ----------------------------------------------------------
|
|
1612
|
+
forget(tabId) {
|
|
1613
|
+
if (!this.tabs.delete(tabId)) return;
|
|
1614
|
+
for (const listener of [...this.gone]) listener(tabId);
|
|
1615
|
+
}
|
|
1616
|
+
receive(body) {
|
|
1617
|
+
if (this.done) return;
|
|
1618
|
+
const tabId = text3(body.tabId);
|
|
1619
|
+
if (!tabId) return;
|
|
1620
|
+
switch (body.kind) {
|
|
1621
|
+
case "cdp": {
|
|
1622
|
+
const method = text3(body.method);
|
|
1623
|
+
if (!method) return;
|
|
1624
|
+
const sessionId = text3(body.cdpSessionId);
|
|
1625
|
+
const event = {
|
|
1626
|
+
tabId,
|
|
1627
|
+
method,
|
|
1628
|
+
...body.params !== void 0 ? { params: body.params } : {},
|
|
1629
|
+
...sessionId ? { sessionId } : {}
|
|
1630
|
+
};
|
|
1631
|
+
for (const listener of [...this.events]) listener(event);
|
|
1632
|
+
return;
|
|
1633
|
+
}
|
|
1634
|
+
case "tab-added":
|
|
1635
|
+
if (this.tabs.has(tabId)) return;
|
|
1636
|
+
this.tabs.add(tabId);
|
|
1637
|
+
for (const listener of [...this.added]) listener({ tabId });
|
|
1638
|
+
return;
|
|
1639
|
+
case "tab-closed":
|
|
1640
|
+
case "detached":
|
|
1641
|
+
this.forget(tabId);
|
|
1642
|
+
}
|
|
1643
|
+
}
|
|
1644
|
+
setControl(state) {
|
|
1645
|
+
this.holder = state;
|
|
1646
|
+
}
|
|
1647
|
+
fail(reason) {
|
|
1648
|
+
if (this.done) return;
|
|
1649
|
+
this.done = true;
|
|
1650
|
+
channels.delete(this);
|
|
1651
|
+
for (const listener of [...this.closes]) listener(reason);
|
|
1652
|
+
}
|
|
1653
|
+
}
|
|
1654
|
+
const forSession = /* @__PURE__ */ __name((params) => {
|
|
1655
|
+
const id2 = text3(params.sessionId);
|
|
1656
|
+
return id2 ? [...channels].filter((channel) => channel.sessionId === id2) : [];
|
|
1657
|
+
}, "forSession");
|
|
1658
|
+
return {
|
|
1659
|
+
available: /* @__PURE__ */ __name(() => closed === void 0 && connection.offers(BROWSER_PANE_CAPABILITY), "available"),
|
|
1660
|
+
channel: /* @__PURE__ */ __name((sessionId, rules) => new Channel(sessionId, rules), "channel"),
|
|
1661
|
+
extensions: {
|
|
1662
|
+
[BROWSER_PANE_METHODS.event]: (params) => {
|
|
1663
|
+
for (const channel of forSession(params)) channel.receive(params);
|
|
1664
|
+
return null;
|
|
1665
|
+
},
|
|
1666
|
+
[BROWSER_PANE_METHODS.state]: (params) => {
|
|
1667
|
+
const state = params.state === "person" ? "person" : params.state === "agent" ? "agent" : void 0;
|
|
1668
|
+
if (state) for (const channel of forSession(params)) channel.setControl(state);
|
|
1669
|
+
return null;
|
|
1670
|
+
}
|
|
1671
|
+
},
|
|
1672
|
+
close: /* @__PURE__ */ __name((reason) => {
|
|
1673
|
+
if (closed !== void 0) return;
|
|
1674
|
+
closed = reason ?? "The connection to the app closed.";
|
|
1675
|
+
for (const channel of [...channels]) channel.fail(closed);
|
|
1676
|
+
}, "close")
|
|
1677
|
+
};
|
|
1678
|
+
}
|
|
1679
|
+
__name(createAcpPaneLink, "createAcpPaneLink");
|
|
1680
|
+
function hostOfKey(key) {
|
|
1681
|
+
const match = /^https?:\/\/((?:\*\.)?[^:/]+)(?::(?:\*|\d+))?$/.exec(key);
|
|
1682
|
+
return match?.[1]?.toLowerCase();
|
|
1683
|
+
}
|
|
1684
|
+
__name(hostOfKey, "hostOfKey");
|
|
1685
|
+
function paneSiteRules(sites) {
|
|
1686
|
+
const deny = /* @__PURE__ */ new Set();
|
|
1687
|
+
const allow = /* @__PURE__ */ new Set();
|
|
1688
|
+
let defaultLevel = "ask";
|
|
1689
|
+
for (const [key, level] of Object.entries(sites)) {
|
|
1690
|
+
if (key === "*") {
|
|
1691
|
+
defaultLevel = level;
|
|
1692
|
+
continue;
|
|
1693
|
+
}
|
|
1694
|
+
const host = hostOfKey(key);
|
|
1695
|
+
if (!host) return void 0;
|
|
1696
|
+
if (level === "deny") deny.add(host);
|
|
1697
|
+
else allow.add(host);
|
|
1698
|
+
}
|
|
1699
|
+
if (defaultLevel === "deny") {
|
|
1700
|
+
return allow.size > 0 ? { allow: [...allow], ...deny.size ? { deny: [...deny] } : {} } : { deny: ["*"] };
|
|
1701
|
+
}
|
|
1702
|
+
return deny.size > 0 ? { deny: [...deny] } : {};
|
|
1703
|
+
}
|
|
1704
|
+
__name(paneSiteRules, "paneSiteRules");
|
|
1705
|
+
|
|
1455
1706
|
// src/commands/acp-desktop-question.ts
|
|
1456
1707
|
import { randomUUID as randomUUID3 } from "node:crypto";
|
|
1708
|
+
var cardQuestion = /* @__PURE__ */ __name((question) => screenQuestionApp(question) !== void 0 || browserWindowQuestionApp(question) !== void 0, "cardQuestion");
|
|
1457
1709
|
var QUESTION_NOTIFICATION = "namzu/session/question";
|
|
1458
1710
|
var QUESTION_CLOSED_NOTIFICATION = "namzu/session/question-closed";
|
|
1459
1711
|
var ANSWER_QUESTION_METHOD = "namzu/session/answer-question";
|
|
@@ -1511,6 +1763,13 @@ function readQuestionAnswer(value) {
|
|
|
1511
1763
|
};
|
|
1512
1764
|
}
|
|
1513
1765
|
__name(readQuestionAnswer, "readQuestionAnswer");
|
|
1766
|
+
function pickedSkillTarget(answer) {
|
|
1767
|
+
if (answer.kind !== "answer") return "cancel";
|
|
1768
|
+
const entry = answer.answers?.find((item) => item.questionId === SKILL_SAVE_QUESTION_ID);
|
|
1769
|
+
const picked = entry ? entry.selectedOptionIds : answer.answers ? [] : answer.selectedOptionIds;
|
|
1770
|
+
return picked.length === 1 && (picked[0] === "user" || picked[0] === "project") ? picked[0] : "cancel";
|
|
1771
|
+
}
|
|
1772
|
+
__name(pickedSkillTarget, "pickedSkillTarget");
|
|
1514
1773
|
function asSingleAnswer(answer) {
|
|
1515
1774
|
if (answer.kind !== "answer" || !answer.answers) return answer;
|
|
1516
1775
|
const first = answer.answers[0];
|
|
@@ -1534,7 +1793,7 @@ function createQuestionRelay(notify) {
|
|
|
1534
1793
|
return (question, signal) => new Promise((resolve6) => {
|
|
1535
1794
|
if (turnSignal.aborted) return resolve6({ kind: "abort" });
|
|
1536
1795
|
if (signal?.aborted) return resolve6({ kind: "skip" });
|
|
1537
|
-
if (
|
|
1796
|
+
if (cardQuestion(question)) return resolve6({ kind: "skip" });
|
|
1538
1797
|
const requestId = randomUUID3();
|
|
1539
1798
|
let done = false;
|
|
1540
1799
|
const finish = /* @__PURE__ */ __name((answer, tell) => {
|
|
@@ -1558,6 +1817,49 @@ function createQuestionRelay(notify) {
|
|
|
1558
1817
|
say(QUESTION_NOTIFICATION, { sessionId, requestId, question });
|
|
1559
1818
|
});
|
|
1560
1819
|
},
|
|
1820
|
+
skillSaveConfirm(sessionId, cwd) {
|
|
1821
|
+
return (request, signal) => new Promise((resolve6) => {
|
|
1822
|
+
if (signal?.aborted) return resolve6("cancel");
|
|
1823
|
+
const requestId = randomUUID3();
|
|
1824
|
+
let done = false;
|
|
1825
|
+
const finish = /* @__PURE__ */ __name((answer, tell) => {
|
|
1826
|
+
if (done) return;
|
|
1827
|
+
done = true;
|
|
1828
|
+
open2.delete(requestId);
|
|
1829
|
+
signal?.removeEventListener("abort", onAbort);
|
|
1830
|
+
if (tell) say(QUESTION_CLOSED_NOTIFICATION, { sessionId, requestId });
|
|
1831
|
+
resolve6(answer);
|
|
1832
|
+
}, "finish");
|
|
1833
|
+
const onAbort = /* @__PURE__ */ __name(() => finish("cancel", true), "onAbort");
|
|
1834
|
+
open2.set(requestId, {
|
|
1835
|
+
sessionId,
|
|
1836
|
+
single: false,
|
|
1837
|
+
settle: /* @__PURE__ */ __name((answer) => finish(pickedSkillTarget(answer), false), "settle")
|
|
1838
|
+
});
|
|
1839
|
+
signal?.addEventListener("abort", onAbort, { once: true });
|
|
1840
|
+
say(QUESTION_NOTIFICATION, {
|
|
1841
|
+
sessionId,
|
|
1842
|
+
requestId,
|
|
1843
|
+
question: {
|
|
1844
|
+
questions: [
|
|
1845
|
+
{
|
|
1846
|
+
id: SKILL_SAVE_QUESTION_ID,
|
|
1847
|
+
header: "Save skill",
|
|
1848
|
+
question: `Save the skill "${request.draft.name}"?`,
|
|
1849
|
+
options: [
|
|
1850
|
+
{ id: SKILL_SAVE_OPTIONS[0], label: "Save to my skills" },
|
|
1851
|
+
{ id: SKILL_SAVE_OPTIONS[1], label: "Save to this project" },
|
|
1852
|
+
{ id: SKILL_SAVE_OPTIONS[2], label: "Cancel" }
|
|
1853
|
+
],
|
|
1854
|
+
multiSelect: false,
|
|
1855
|
+
allowFreeText: false
|
|
1856
|
+
}
|
|
1857
|
+
]
|
|
1858
|
+
},
|
|
1859
|
+
skillSave: skillSaveCardPayload(request, cwd())
|
|
1860
|
+
});
|
|
1861
|
+
});
|
|
1862
|
+
},
|
|
1561
1863
|
answer(sessionId, requestId, answer) {
|
|
1562
1864
|
const pending = open2.get(requestId);
|
|
1563
1865
|
if (!pending || pending.sessionId !== sessionId) return false;
|
|
@@ -1572,7 +1874,7 @@ __name(createQuestionRelay, "createQuestionRelay");
|
|
|
1572
1874
|
function routeQuestions(screen, relay) {
|
|
1573
1875
|
if (!screen) return relay;
|
|
1574
1876
|
if (!relay) return screen;
|
|
1575
|
-
return (question, signal) =>
|
|
1877
|
+
return (question, signal) => cardQuestion(question) ? screen(question, signal) : relay(question, signal);
|
|
1576
1878
|
}
|
|
1577
1879
|
__name(routeQuestions, "routeQuestions");
|
|
1578
1880
|
|
|
@@ -1602,10 +1904,10 @@ function claudeJson(value) {
|
|
|
1602
1904
|
if (typeof item === "number" && Number.isFinite(item)) return item;
|
|
1603
1905
|
if (typeof item === "string" && item.length <= 1e6) return item;
|
|
1604
1906
|
if (Array.isArray(item)) return Object.freeze(item.map((part) => copy(part, depth + 1)));
|
|
1605
|
-
const
|
|
1606
|
-
if (
|
|
1907
|
+
const object2 = claudeRecord(item);
|
|
1908
|
+
if (object2) {
|
|
1607
1909
|
const result2 = Object.fromEntries(
|
|
1608
|
-
Object.entries(
|
|
1910
|
+
Object.entries(object2).map(([key, part]) => {
|
|
1609
1911
|
if (key.length > 4096) throw new Error("The native tool input is too large.");
|
|
1610
1912
|
return [key, copy(part, depth + 1)];
|
|
1611
1913
|
})
|
|
@@ -1795,9 +2097,9 @@ var ClaudeTurnProjection = class {
|
|
|
1795
2097
|
});
|
|
1796
2098
|
}
|
|
1797
2099
|
text(message) {
|
|
1798
|
-
const
|
|
1799
|
-
if (
|
|
1800
|
-
return
|
|
2100
|
+
const text5 = [...message.blocks.entries()].sort(([left], [right]) => left - right).filter(([, block]) => block.type === "text").map(([, block]) => block.text).join("");
|
|
2101
|
+
if (text5.length > 1e6) throw new Error("The native message is too large.");
|
|
2102
|
+
return text5;
|
|
1801
2103
|
}
|
|
1802
2104
|
reasoning(message, index, block) {
|
|
1803
2105
|
if (block.reasoningCompleted) return;
|
|
@@ -2211,8 +2513,8 @@ function startHarnessProcess(command, options) {
|
|
|
2211
2513
|
fail(error instanceof Error ? error : new Error("Harness frame handling failed."));
|
|
2212
2514
|
});
|
|
2213
2515
|
}, "frame");
|
|
2214
|
-
const consume = /* @__PURE__ */ __name((
|
|
2215
|
-
buffer +=
|
|
2516
|
+
const consume = /* @__PURE__ */ __name((text5) => {
|
|
2517
|
+
buffer += text5;
|
|
2216
2518
|
let newline = buffer.indexOf("\n");
|
|
2217
2519
|
while (newline !== -1) {
|
|
2218
2520
|
const line = buffer.slice(0, newline);
|
|
@@ -3001,26 +3303,26 @@ function codexItemEvents(turn, raw, completed) {
|
|
|
3001
3303
|
const identity = { ...turn, nativeItemId };
|
|
3002
3304
|
if (item.type === "agentMessage") {
|
|
3003
3305
|
if (!completed) return [{ ...identity, kind: "message-started" }];
|
|
3004
|
-
const
|
|
3306
|
+
const text5 = typeof item.text === "string" ? item.text : "";
|
|
3005
3307
|
const phase = item.phase === "commentary" || item.phase === "final_answer" ? item.phase : void 0;
|
|
3006
3308
|
return [
|
|
3007
3309
|
{
|
|
3008
3310
|
...identity,
|
|
3009
3311
|
kind: "message-completed",
|
|
3010
|
-
content:
|
|
3011
|
-
parts: [{ id: nativeItemId, text:
|
|
3312
|
+
content: text5,
|
|
3313
|
+
parts: [{ id: nativeItemId, text: text5, phase }],
|
|
3012
3314
|
stopReason: "end_turn"
|
|
3013
3315
|
}
|
|
3014
3316
|
];
|
|
3015
3317
|
}
|
|
3016
3318
|
if (item.type === "reasoning") {
|
|
3017
3319
|
const summary = Array.isArray(item.summary) ? item.summary.filter((part) => typeof part === "string") : [];
|
|
3018
|
-
return (summary.length ? summary : [""]).map((
|
|
3320
|
+
return (summary.length ? summary : [""]).map((text5, index) => ({
|
|
3019
3321
|
...identity,
|
|
3020
3322
|
kind: "reasoning",
|
|
3021
3323
|
blockId: `${nativeItemId}:${index}`,
|
|
3022
3324
|
status: completed ? "completed" : "pending",
|
|
3023
|
-
...
|
|
3325
|
+
...text5 ? { text: text5 } : {}
|
|
3024
3326
|
}));
|
|
3025
3327
|
}
|
|
3026
3328
|
let name;
|
|
@@ -3431,15 +3733,15 @@ var CodexConnection = class {
|
|
|
3431
3733
|
const nativeItemId = codexString(params.itemId);
|
|
3432
3734
|
if (nativeItemId && typeof params.delta === "string") {
|
|
3433
3735
|
const blockId = `${nativeItemId}:${String(params.summaryIndex ?? 0)}`;
|
|
3434
|
-
const
|
|
3435
|
-
this.reasoning.set(blockId,
|
|
3736
|
+
const text5 = (this.reasoning.get(blockId) ?? "") + params.delta;
|
|
3737
|
+
this.reasoning.set(blockId, text5);
|
|
3436
3738
|
await this.emit({
|
|
3437
3739
|
...turn,
|
|
3438
3740
|
nativeItemId,
|
|
3439
3741
|
kind: "reasoning",
|
|
3440
3742
|
blockId,
|
|
3441
3743
|
status: "pending",
|
|
3442
|
-
text:
|
|
3744
|
+
text: text5
|
|
3443
3745
|
});
|
|
3444
3746
|
}
|
|
3445
3747
|
} else if (method === "item/commandExecution/outputDelta" || method === "item/fileChange/outputDelta") {
|
|
@@ -4690,10 +4992,13 @@ __name(readProviderRetryStatus, "readProviderRetryStatus");
|
|
|
4690
4992
|
|
|
4691
4993
|
// src/commands/acp-screen-question.ts
|
|
4692
4994
|
var SCREEN_MOMENT_TOOL = "screen_moment";
|
|
4995
|
+
var BROWSER_WINDOW_TOOL = "browser_window";
|
|
4693
4996
|
function questionsOverPermission(sessionId, ask, turnSignal) {
|
|
4694
4997
|
let counter = 0;
|
|
4695
4998
|
return async (question, signal) => {
|
|
4696
|
-
const
|
|
4999
|
+
const screen = screenQuestionApp(question);
|
|
5000
|
+
const browser = screen === void 0 ? browserWindowQuestionApp(question) : void 0;
|
|
5001
|
+
const app = screen ?? browser;
|
|
4697
5002
|
if (app === void 0) return { kind: "skip" };
|
|
4698
5003
|
if (turnSignal.aborted) return { kind: "abort" };
|
|
4699
5004
|
counter += 1;
|
|
@@ -4701,8 +5006,8 @@ function questionsOverPermission(sessionId, ask, turnSignal) {
|
|
|
4701
5006
|
sessionId,
|
|
4702
5007
|
toolCalls: [
|
|
4703
5008
|
{
|
|
4704
|
-
id:
|
|
4705
|
-
name: SCREEN_MOMENT_TOOL,
|
|
5009
|
+
id: `${browser === void 0 ? "screen-moment" : "browser-window"}-${counter}`,
|
|
5010
|
+
name: browser === void 0 ? SCREEN_MOMENT_TOOL : BROWSER_WINDOW_TOOL,
|
|
4706
5011
|
input: { app },
|
|
4707
5012
|
isDestructive: false,
|
|
4708
5013
|
alwaysAsk: true
|
|
@@ -4803,12 +5108,12 @@ function plainCommitMessage(files) {
|
|
|
4803
5108
|
__name(plainCommitMessage, "plainCommitMessage");
|
|
4804
5109
|
function cleanCommitMessage(reply) {
|
|
4805
5110
|
if (!reply) return void 0;
|
|
4806
|
-
let
|
|
4807
|
-
const fenced = /^```[a-z]*\s*([\s\S]*?)\s*```$/iu.exec(
|
|
4808
|
-
if (fenced?.[1] !== void 0)
|
|
4809
|
-
|
|
4810
|
-
if (
|
|
4811
|
-
return
|
|
5111
|
+
let text5 = reply.trim();
|
|
5112
|
+
const fenced = /^```[a-z]*\s*([\s\S]*?)\s*```$/iu.exec(text5);
|
|
5113
|
+
if (fenced?.[1] !== void 0) text5 = fenced[1].trim();
|
|
5114
|
+
text5 = text5.replace(/[\u0000-\u0008\u000b\u000c\u000e-\u001f\u007f]/gu, "").replace(/^["'`]+|["'`]+$/gu, "").trim();
|
|
5115
|
+
if (text5 === "") return void 0;
|
|
5116
|
+
return text5.slice(0, COMMIT_MESSAGE_MAX);
|
|
4812
5117
|
}
|
|
4813
5118
|
__name(cleanCommitMessage, "cleanCommitMessage");
|
|
4814
5119
|
var IN_PROGRESS = [
|
|
@@ -4828,16 +5133,16 @@ function createProjectCommit(options) {
|
|
|
4828
5133
|
return false;
|
|
4829
5134
|
}
|
|
4830
5135
|
});
|
|
4831
|
-
const
|
|
5136
|
+
const text5 = /* @__PURE__ */ __name(async (args, cwd) => (await git(args, cwd)).stdout, "text");
|
|
4832
5137
|
const inProgress = /* @__PURE__ */ __name(async (cwd) => {
|
|
4833
|
-
const dir = (await
|
|
5138
|
+
const dir = (await text5(["rev-parse", "--absolute-git-dir"], cwd)).trim();
|
|
4834
5139
|
for (const name of IN_PROGRESS)
|
|
4835
5140
|
if (await exists(join5(dir, name)))
|
|
4836
5141
|
return "A merge, rebase, cherry-pick or revert is in progress here. Finish it first.";
|
|
4837
5142
|
return void 0;
|
|
4838
5143
|
}, "inProgress");
|
|
4839
|
-
const fingerprint = /* @__PURE__ */ __name(async (cwd, entry) => entry.state === "deleted" ? "deleted" : (await
|
|
4840
|
-
const changed = /* @__PURE__ */ __name(async (cwd) => parseStatus(await
|
|
5144
|
+
const fingerprint = /* @__PURE__ */ __name(async (cwd, entry) => entry.state === "deleted" ? "deleted" : (await text5(["hash-object", "--", entry.path], cwd)).trim(), "fingerprint");
|
|
5145
|
+
const changed = /* @__PURE__ */ __name(async (cwd) => parseStatus(await text5(["status", "--porcelain=v1", "-z", "--untracked-files=all"], cwd)), "changed");
|
|
4841
5146
|
return {
|
|
4842
5147
|
async preview(cwd, sessionPaths, sessionId) {
|
|
4843
5148
|
const empty = /* @__PURE__ */ __name((blocker2) => ({
|
|
@@ -4853,7 +5158,7 @@ function createProjectCommit(options) {
|
|
|
4853
5158
|
if (!options.isTrusted(cwd)) return empty("Trust this folder to commit in it.");
|
|
4854
5159
|
let status;
|
|
4855
5160
|
try {
|
|
4856
|
-
await
|
|
5161
|
+
await text5(["rev-parse", "--git-dir"], cwd);
|
|
4857
5162
|
status = await changed(cwd);
|
|
4858
5163
|
} catch {
|
|
4859
5164
|
return empty("Commit needs a Git repository.");
|
|
@@ -4869,7 +5174,7 @@ function createProjectCommit(options) {
|
|
|
4869
5174
|
let branch = null;
|
|
4870
5175
|
let detached = false;
|
|
4871
5176
|
try {
|
|
4872
|
-
branch = (await
|
|
5177
|
+
branch = (await text5(["symbolic-ref", "--short", "-q", "HEAD"], cwd)).trim() || null;
|
|
4873
5178
|
} catch {
|
|
4874
5179
|
detached = true;
|
|
4875
5180
|
}
|
|
@@ -4943,8 +5248,8 @@ function createProjectCommit(options) {
|
|
|
4943
5248
|
const output = failure.output;
|
|
4944
5249
|
throw new CommitRefused(output ? output.slice(0, 2e3) : "Git could not make the commit.");
|
|
4945
5250
|
}
|
|
4946
|
-
const hash = (await
|
|
4947
|
-
const subject = (await
|
|
5251
|
+
const hash = (await text5(["rev-parse", "--short", "HEAD"], cwd)).trim();
|
|
5252
|
+
const subject = (await text5(["log", "-1", "--format=%s"], cwd)).trim();
|
|
4948
5253
|
return { hash, subject };
|
|
4949
5254
|
}
|
|
4950
5255
|
};
|
|
@@ -5124,8 +5429,8 @@ var ONE_LINE = /[\r\n\t]+/g;
|
|
|
5124
5429
|
var clip = /* @__PURE__ */ __name((value, max) => value.replace(ONE_LINE, " ").trim().slice(0, max), "clip");
|
|
5125
5430
|
function detailOf(name, spec) {
|
|
5126
5431
|
const summary = summarizeUserMcpServer({ name, spec });
|
|
5127
|
-
const
|
|
5128
|
-
return
|
|
5432
|
+
const text5 = summary.transport === "http" ? summary.endpoint : summary.command;
|
|
5433
|
+
return text5 ? clip(text5, 200) : void 0;
|
|
5129
5434
|
}
|
|
5130
5435
|
__name(detailOf, "detailOf");
|
|
5131
5436
|
function listMcpServers(options) {
|
|
@@ -5670,8 +5975,8 @@ function palPublicAssistantText(message) {
|
|
|
5670
5975
|
return content.trim() ? content : void 0;
|
|
5671
5976
|
const delivered = message.textParts.filter((part) => part.phase !== "commentary");
|
|
5672
5977
|
if (!delivered.length) return void 0;
|
|
5673
|
-
const
|
|
5674
|
-
return
|
|
5978
|
+
const text5 = selectAssistantText(delivered);
|
|
5979
|
+
return text5.trim() ? text5 : void 0;
|
|
5675
5980
|
}
|
|
5676
5981
|
__name(palPublicAssistantText, "palPublicAssistantText");
|
|
5677
5982
|
|
|
@@ -5868,11 +6173,11 @@ function parseNameStatus(data, truncated = false) {
|
|
|
5868
6173
|
return out;
|
|
5869
6174
|
}
|
|
5870
6175
|
__name(parseNameStatus, "parseNameStatus");
|
|
5871
|
-
function countLines(
|
|
5872
|
-
if (
|
|
6176
|
+
function countLines(text5) {
|
|
6177
|
+
if (text5.length === 0) return 0;
|
|
5873
6178
|
let count = 0;
|
|
5874
|
-
for (let index =
|
|
5875
|
-
return
|
|
6179
|
+
for (let index = text5.indexOf("\n"); index !== -1; index = text5.indexOf("\n", index + 1)) count++;
|
|
6180
|
+
return text5.endsWith("\n") ? count : count + 1;
|
|
5876
6181
|
}
|
|
5877
6182
|
__name(countLines, "countLines");
|
|
5878
6183
|
var decoder = new TextDecoder("utf-8", { fatal: true, ignoreBOM: true });
|
|
@@ -6049,10 +6354,10 @@ function createProjectChanges(options = {}) {
|
|
|
6049
6354
|
const sides = [head.bytes, after].map((bytes) => bytes === null ? null : decodeText(bytes));
|
|
6050
6355
|
if (sides.some((side) => side !== null && "binary" in side))
|
|
6051
6356
|
return { before: null, after: null, binary: true, truncated: false };
|
|
6052
|
-
const
|
|
6357
|
+
const text5 = /* @__PURE__ */ __name((side) => side && "text" in side ? side.text : null, "text");
|
|
6053
6358
|
return {
|
|
6054
|
-
before:
|
|
6055
|
-
after:
|
|
6359
|
+
before: text5(sides[0]),
|
|
6360
|
+
after: text5(sides[1]),
|
|
6056
6361
|
binary: false,
|
|
6057
6362
|
truncated: false
|
|
6058
6363
|
};
|
|
@@ -6079,7 +6384,7 @@ var MEMORY_TEXT_MAX = 8e3;
|
|
|
6079
6384
|
var MEMORY_TITLE_MAX = 120;
|
|
6080
6385
|
var MEMORY_SUMMARY_MAX = 240;
|
|
6081
6386
|
var EXCERPT_MAX = 400;
|
|
6082
|
-
var revisionOf = /* @__PURE__ */ __name((
|
|
6387
|
+
var revisionOf = /* @__PURE__ */ __name((text5) => createHash3("sha256").update(text5).digest("hex"), "revisionOf");
|
|
6083
6388
|
function instructionsPath() {
|
|
6084
6389
|
return join7(resolveNamzuHome(), INSTRUCTIONS_FILENAME);
|
|
6085
6390
|
}
|
|
@@ -6094,15 +6399,15 @@ function readStandingInstructions() {
|
|
|
6094
6399
|
}
|
|
6095
6400
|
if (!stat6.isFile() || stat6.size > MAX_BYTES_TO_READ)
|
|
6096
6401
|
return { text: "", limit: MAX_CHARS_PER_FILE, revision: revisionOf(""), locked: true };
|
|
6097
|
-
const
|
|
6098
|
-
return { text:
|
|
6402
|
+
const text5 = readFileSync(file, "utf8");
|
|
6403
|
+
return { text: text5, limit: MAX_CHARS_PER_FILE, revision: revisionOf(text5) };
|
|
6099
6404
|
}
|
|
6100
6405
|
__name(readStandingInstructions, "readStandingInstructions");
|
|
6101
|
-
function writeStandingInstructions(
|
|
6102
|
-
if (typeof
|
|
6406
|
+
function writeStandingInstructions(text5, revision2) {
|
|
6407
|
+
if (typeof text5 !== "string") throw new Error("Invalid text.");
|
|
6103
6408
|
if (revision2 !== void 0 && (typeof revision2 !== "string" || revision2.length > 200))
|
|
6104
6409
|
throw new Error("Invalid revision.");
|
|
6105
|
-
if (
|
|
6410
|
+
if (text5.length > MAX_CHARS_PER_FILE)
|
|
6106
6411
|
throw new Error(`Standing instructions can hold ${MAX_CHARS_PER_FILE} characters.`);
|
|
6107
6412
|
const file = instructionsPath();
|
|
6108
6413
|
if (lstatSafe(file) && !lstatSync2(file).isFile())
|
|
@@ -6111,20 +6416,20 @@ function writeStandingInstructions(text4, revision2) {
|
|
|
6111
6416
|
const now = readStandingInstructions();
|
|
6112
6417
|
if (now.revision !== revision2) return { ...now, changed: true };
|
|
6113
6418
|
}
|
|
6114
|
-
if (
|
|
6419
|
+
if (text5.trim() === "") {
|
|
6115
6420
|
if (lstatSafe(file)) unlinkSync(file);
|
|
6116
6421
|
return { text: "", limit: MAX_CHARS_PER_FILE, revision: revisionOf("") };
|
|
6117
6422
|
}
|
|
6118
6423
|
mkdirSync(resolveNamzuHome(), { recursive: true, mode: 448 });
|
|
6119
6424
|
const staging = `${file}.${process.pid}.tmp`;
|
|
6120
6425
|
try {
|
|
6121
|
-
writeFileSync(staging,
|
|
6426
|
+
writeFileSync(staging, text5, { encoding: "utf8", mode: 384 });
|
|
6122
6427
|
renameSync(staging, file);
|
|
6123
6428
|
} catch (error) {
|
|
6124
6429
|
if (lstatSafe(staging)) unlinkSync(staging);
|
|
6125
6430
|
throw error;
|
|
6126
6431
|
}
|
|
6127
|
-
return { text:
|
|
6432
|
+
return { text: text5, limit: MAX_CHARS_PER_FILE, revision: revisionOf(text5) };
|
|
6128
6433
|
}
|
|
6129
6434
|
__name(writeStandingInstructions, "writeStandingInstructions");
|
|
6130
6435
|
function lstatSafe(file) {
|
|
@@ -6157,8 +6462,8 @@ async function openStore(cwd) {
|
|
|
6157
6462
|
return new MarkdownMemoryStore({ directory });
|
|
6158
6463
|
}
|
|
6159
6464
|
__name(openStore, "openStore");
|
|
6160
|
-
var flat = /* @__PURE__ */ __name((
|
|
6161
|
-
const line =
|
|
6465
|
+
var flat = /* @__PURE__ */ __name((text5, max) => {
|
|
6466
|
+
const line = text5.replace(/\s+/g, " ").trim();
|
|
6162
6467
|
return line.length > max ? `${line.slice(0, max - 1)}\u2026` : line;
|
|
6163
6468
|
}, "flat");
|
|
6164
6469
|
function target(params) {
|
|
@@ -6235,19 +6540,19 @@ function createMemoryHost(cwd, pal) {
|
|
|
6235
6540
|
refusePal();
|
|
6236
6541
|
only(params, ["id", "revision", "text", "title"], "memory");
|
|
6237
6542
|
const item = target(params);
|
|
6238
|
-
const { text:
|
|
6239
|
-
if (typeof
|
|
6543
|
+
const { text: text5, title: title2 } = params;
|
|
6544
|
+
if (typeof text5 !== "string" || text5.trim() === "" || text5.length > MEMORY_TEXT_MAX)
|
|
6240
6545
|
throw new Error("Invalid text.");
|
|
6241
6546
|
if (title2 !== void 0 && (typeof title2 !== "string" || title2.trim() === "" || title2.length > MEMORY_TITLE_MAX))
|
|
6242
6547
|
throw new Error("Invalid title.");
|
|
6243
6548
|
const store = await openStore(cwd);
|
|
6244
6549
|
if (!store) return { outcome: "gone" };
|
|
6245
6550
|
const outcome = await updateManagedMemory(store, item, {
|
|
6246
|
-
content:
|
|
6551
|
+
content: text5,
|
|
6247
6552
|
...title2 === void 0 ? {} : { title: title2.trim() },
|
|
6248
|
-
summary: flat(
|
|
6553
|
+
summary: flat(text5, MEMORY_SUMMARY_MAX),
|
|
6249
6554
|
// The index line every later prompt carries must not keep the wording that was replaced.
|
|
6250
|
-
description: flat(
|
|
6555
|
+
description: flat(text5, MEMORY_SUMMARY_MAX)
|
|
6251
6556
|
});
|
|
6252
6557
|
return { outcome };
|
|
6253
6558
|
}, "namzu/memory/update"),
|
|
@@ -6365,21 +6670,21 @@ function userServersAnswer(name) {
|
|
|
6365
6670
|
};
|
|
6366
6671
|
}
|
|
6367
6672
|
__name(userServersAnswer, "userServersAnswer");
|
|
6368
|
-
function
|
|
6673
|
+
function text4(params, key, max = 400) {
|
|
6369
6674
|
const value = params[key];
|
|
6370
6675
|
if (typeof value !== "string" || !value.trim() || value.length > max)
|
|
6371
6676
|
throw new Error(`Invalid ${key}.`);
|
|
6372
6677
|
return value;
|
|
6373
6678
|
}
|
|
6374
|
-
__name(
|
|
6679
|
+
__name(text4, "text");
|
|
6375
6680
|
function session(params) {
|
|
6376
|
-
const value =
|
|
6681
|
+
const value = text4(params, "sessionId");
|
|
6377
6682
|
if (!isEntityId(value, "session")) throw new Error("Invalid conversation id.");
|
|
6378
6683
|
return value;
|
|
6379
6684
|
}
|
|
6380
6685
|
__name(session, "session");
|
|
6381
6686
|
function undoTurnId(params) {
|
|
6382
|
-
const turnId =
|
|
6687
|
+
const turnId = text4(params, "turnId");
|
|
6383
6688
|
if (!isEntityId(turnId, "turn")) throw new Error("Invalid turn.");
|
|
6384
6689
|
return turnId;
|
|
6385
6690
|
}
|
|
@@ -6946,7 +7251,7 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
|
|
|
6946
7251
|
const ownedSession = /* @__PURE__ */ __name((params) => withState((state) => ownedSessionIn(params, state)), "ownedSession");
|
|
6947
7252
|
const ownedReadSession = /* @__PURE__ */ __name((params) => withReadScope((state) => ownedSessionIn(params, state)), "ownedReadSession");
|
|
6948
7253
|
const ownedPal = /* @__PURE__ */ __name((params) => {
|
|
6949
|
-
const id2 =
|
|
7254
|
+
const id2 = text4(params, "palId");
|
|
6950
7255
|
if (!isTrusted(cwd) || pal()?.id !== id2)
|
|
6951
7256
|
throw new Error("This Pal does not own the current workspace.");
|
|
6952
7257
|
return id2;
|
|
@@ -7032,7 +7337,7 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
|
|
|
7032
7337
|
"namzu/conversations/input/status": /* @__PURE__ */ __name(async (params) => {
|
|
7033
7338
|
if (Object.keys(params).some((key) => !["sessionId", "scopeId"].includes(key)))
|
|
7034
7339
|
throw new Error("Live input status accepts only sessionId and scopeId.");
|
|
7035
|
-
const scopeId = params.scopeId === void 0 ? void 0 :
|
|
7340
|
+
const scopeId = params.scopeId === void 0 ? void 0 : text4(params, "scopeId");
|
|
7036
7341
|
return withReadScope(
|
|
7037
7342
|
async (state) => liveInputStatus(await liveOwner(params, state), scopeId, state)
|
|
7038
7343
|
);
|
|
@@ -7043,9 +7348,9 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
|
|
|
7043
7348
|
))
|
|
7044
7349
|
throw new Error("Live input accepts only sessionId, scopeId, inputId and prompt.");
|
|
7045
7350
|
const input = {
|
|
7046
|
-
scopeId:
|
|
7047
|
-
inputId:
|
|
7048
|
-
prompt:
|
|
7351
|
+
scopeId: text4(params, "scopeId"),
|
|
7352
|
+
inputId: text4(params, "inputId"),
|
|
7353
|
+
prompt: text4(params, "prompt", 1e6)
|
|
7049
7354
|
};
|
|
7050
7355
|
return withReadScope(
|
|
7051
7356
|
async (state) => liveInput(await liveOwner(params, state), input, state)
|
|
@@ -7085,7 +7390,7 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
|
|
|
7085
7390
|
"Undo accepts only sessionId, turnId, planToken, resolutions and alsoUndoLater."
|
|
7086
7391
|
);
|
|
7087
7392
|
const turnId = undoTurnId(params);
|
|
7088
|
-
const planToken =
|
|
7393
|
+
const planToken = text4(params, "planToken", 200);
|
|
7089
7394
|
const resolutions = params.resolutions === void 0 ? void 0 : undoResolutions(params.resolutions);
|
|
7090
7395
|
const alsoUndoLater = undoFlag(params, "alsoUndoLater");
|
|
7091
7396
|
return withReadScope(
|
|
@@ -7110,8 +7415,8 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
|
|
|
7110
7415
|
"Retry accepts only the original turn, checkpoint and explicit settings; send a new message after the turn settles."
|
|
7111
7416
|
);
|
|
7112
7417
|
const id2 = await ownedSession(params);
|
|
7113
|
-
const turnId =
|
|
7114
|
-
const checkpointId =
|
|
7418
|
+
const turnId = text4(params, "turnId");
|
|
7419
|
+
const checkpointId = text4(params, "checkpointId");
|
|
7115
7420
|
if (!isEntityId(turnId, "turn") || !isEntityId(checkpointId, "checkpoint"))
|
|
7116
7421
|
throw new Error("Invalid retry turn or checkpoint.");
|
|
7117
7422
|
return retrySession(
|
|
@@ -7131,7 +7436,7 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
|
|
|
7131
7436
|
"Closing a paused turn accepts only the conversation, its turn and whether its message goes back to the person."
|
|
7132
7437
|
);
|
|
7133
7438
|
const id2 = await ownedSession(params);
|
|
7134
|
-
const turnId = params.turnId === void 0 ? void 0 :
|
|
7439
|
+
const turnId = params.turnId === void 0 ? void 0 : text4(params, "turnId");
|
|
7135
7440
|
if (turnId !== void 0 && !isEntityId(turnId, "turn"))
|
|
7136
7441
|
throw new Error("Invalid turn.");
|
|
7137
7442
|
if (params.withdrawMessages !== void 0 && typeof params.withdrawMessages !== "boolean")
|
|
@@ -7160,12 +7465,12 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
|
|
|
7160
7465
|
if (pal()) throw new Error("External engines are available in normal conversations only.");
|
|
7161
7466
|
const harness = runtime;
|
|
7162
7467
|
if (!harness.selectHarness) throw new Error("Update Namzu to use external engines.");
|
|
7163
|
-
return harness.selectHarness(await ownedSession(params),
|
|
7468
|
+
return harness.selectHarness(await ownedSession(params), text4(params, "engine"));
|
|
7164
7469
|
}, "namzu/harnesses/select"),
|
|
7165
7470
|
"namzu/harnesses/release": /* @__PURE__ */ __name(async (params) => {
|
|
7166
7471
|
const harness = runtime;
|
|
7167
7472
|
if (!harness.releaseHarness) return { released: false };
|
|
7168
|
-
await harness.releaseHarness(
|
|
7473
|
+
await harness.releaseHarness(text4(params, "engine"));
|
|
7169
7474
|
return { released: true };
|
|
7170
7475
|
}, "namzu/harnesses/release"),
|
|
7171
7476
|
"namzu/project/status": /* @__PURE__ */ __name(() => ({
|
|
@@ -7175,9 +7480,9 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
|
|
|
7175
7480
|
}), "namzu/project/status"),
|
|
7176
7481
|
...createDesktopPalCommunicationExtensions({ cwd, withState }),
|
|
7177
7482
|
"namzu/pals/list": /* @__PURE__ */ __name(() => listPals(), "namzu/pals/list"),
|
|
7178
|
-
"namzu/pals/get": /* @__PURE__ */ __name((params) => getPal(
|
|
7483
|
+
"namzu/pals/get": /* @__PURE__ */ __name((params) => getPal(text4(params, "id")), "namzu/pals/get"),
|
|
7179
7484
|
"namzu/pals/create": /* @__PURE__ */ __name((params) => createPal({
|
|
7180
|
-
name:
|
|
7485
|
+
name: text4(params, "name", 80),
|
|
7181
7486
|
...params.purpose === void 0 ? {} : { purpose: params.purpose },
|
|
7182
7487
|
...params.model === void 0 ? {} : { model: params.model },
|
|
7183
7488
|
...params.appearance === void 0 ? {} : { appearance: params.appearance }
|
|
@@ -7185,7 +7490,7 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
|
|
|
7185
7490
|
"namzu/pals/update": /* @__PURE__ */ __name(async (params) => {
|
|
7186
7491
|
if (!Number.isSafeInteger(params.expectedRevision) || params.expectedRevision < 1)
|
|
7187
7492
|
throw new Error("Invalid Pal revision.");
|
|
7188
|
-
const id2 =
|
|
7493
|
+
const id2 = text4(params, "id");
|
|
7189
7494
|
if (pal()?.id === id2 && (await getCliPalRuntime()).busy(id2))
|
|
7190
7495
|
throw new Error("Stop this Pal\u2019s active work before changing it.");
|
|
7191
7496
|
return updatePal(id2, params.expectedRevision, {
|
|
@@ -7199,7 +7504,7 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
|
|
|
7199
7504
|
"namzu/pals/delete": /* @__PURE__ */ __name(async (params) => {
|
|
7200
7505
|
if (!params || typeof params !== "object" || Array.isArray(params) || Object.keys(params).some((key) => key !== "id" && key !== "expectedRevision"))
|
|
7201
7506
|
throw new Error("Invalid Pal deletion request.");
|
|
7202
|
-
const id2 =
|
|
7507
|
+
const id2 = text4(params, "id");
|
|
7203
7508
|
if (!/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/u.test(id2))
|
|
7204
7509
|
throw new Error("Invalid Pal id.");
|
|
7205
7510
|
const expectedRevision = params.expectedRevision;
|
|
@@ -7220,27 +7525,27 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
|
|
|
7220
7525
|
"namzu/pals/computer/stop": /* @__PURE__ */ __name((params) => stopCliPalComputer(ownedPal(params)), "namzu/pals/computer/stop"),
|
|
7221
7526
|
"namzu/pals/computer/screen": /* @__PURE__ */ __name((params) => cliPalScreen(
|
|
7222
7527
|
ownedPal(params),
|
|
7223
|
-
params.generation === void 0 ? void 0 :
|
|
7528
|
+
params.generation === void 0 ? void 0 : text4(params, "generation", 16)
|
|
7224
7529
|
), "namzu/pals/computer/screen"),
|
|
7225
|
-
"namzu/pals/computer/stream": /* @__PURE__ */ __name((params) => cliPalScreenStream(ownedPal(params),
|
|
7226
|
-
"namzu/pals/computer/take_over": /* @__PURE__ */ __name((params) => takeOverCliPalComputer(ownedPal(params),
|
|
7227
|
-
"namzu/pals/computer/return_control": /* @__PURE__ */ __name((params) => returnCliPalComputerControl(ownedPal(params),
|
|
7530
|
+
"namzu/pals/computer/stream": /* @__PURE__ */ __name((params) => cliPalScreenStream(ownedPal(params), text4(params, "generation", 16)), "namzu/pals/computer/stream"),
|
|
7531
|
+
"namzu/pals/computer/take_over": /* @__PURE__ */ __name((params) => takeOverCliPalComputer(ownedPal(params), text4(params, "generation", 16)), "namzu/pals/computer/take_over"),
|
|
7532
|
+
"namzu/pals/computer/return_control": /* @__PURE__ */ __name((params) => returnCliPalComputerControl(ownedPal(params), text4(params, "generation", 16)), "namzu/pals/computer/return_control"),
|
|
7228
7533
|
"namzu/pals/computer/input": /* @__PURE__ */ __name((params) => executeCliPalComputerInput(
|
|
7229
7534
|
ownedPal(params),
|
|
7230
|
-
|
|
7535
|
+
text4(params, "generation", 16),
|
|
7231
7536
|
params.input
|
|
7232
7537
|
), "namzu/pals/computer/input"),
|
|
7233
7538
|
...palInboxStart ? {
|
|
7234
7539
|
"namzu/pals/inbox/status": /* @__PURE__ */ __name(async (params) => palInboxStart.status(ownedPal(params)), "namzu/pals/inbox/status"),
|
|
7235
|
-
"namzu/pals/inbox/start": /* @__PURE__ */ __name(async (params) => palInboxStart.start(ownedPal(params),
|
|
7540
|
+
"namzu/pals/inbox/start": /* @__PURE__ */ __name(async (params) => palInboxStart.start(ownedPal(params), text4(params, "clickId", 80)), "namzu/pals/inbox/start")
|
|
7236
7541
|
} : {},
|
|
7237
7542
|
"namzu/pals/conversations/claim": /* @__PURE__ */ __name(async (params) => {
|
|
7238
7543
|
if (!isTrusted(cwd)) throw new Error("This Pal workspace is not trusted.");
|
|
7239
|
-
return claimPalConversation(cwd,
|
|
7544
|
+
return claimPalConversation(cwd, text4(params, "palId"), session(params));
|
|
7240
7545
|
}, "namzu/pals/conversations/claim"),
|
|
7241
|
-
"namzu/pals/conversations/list": /* @__PURE__ */ __name((params) => listPalConversations(cwd,
|
|
7546
|
+
"namzu/pals/conversations/list": /* @__PURE__ */ __name((params) => listPalConversations(cwd, text4(params, "palId")), "namzu/pals/conversations/list"),
|
|
7242
7547
|
"namzu/project/trust": /* @__PURE__ */ __name((params) => {
|
|
7243
|
-
if (params.confirmed !== true ||
|
|
7548
|
+
if (params.confirmed !== true || text4(params, "cwd", 32768) !== cwd)
|
|
7244
7549
|
throw new Error("Folder confirmation does not match this project.");
|
|
7245
7550
|
try {
|
|
7246
7551
|
trustDir(cwd);
|
|
@@ -7252,7 +7557,7 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
|
|
|
7252
7557
|
return { cwd, trusted: true };
|
|
7253
7558
|
}, "namzu/project/trust"),
|
|
7254
7559
|
"namzu/project/untrust": /* @__PURE__ */ __name((params) => {
|
|
7255
|
-
if (params.confirmed !== true ||
|
|
7560
|
+
if (params.confirmed !== true || text4(params, "cwd", 32768) !== cwd)
|
|
7256
7561
|
throw new Error("Folder confirmation does not match this project.");
|
|
7257
7562
|
const result = untrustDir(cwd);
|
|
7258
7563
|
return { cwd, ...result, trusted: isTrusted(cwd) };
|
|
@@ -7282,7 +7587,7 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
|
|
|
7282
7587
|
"namzu/conversations/search": /* @__PURE__ */ __name(async (params = {}) => {
|
|
7283
7588
|
if (!params || typeof params !== "object" || Array.isArray(params) || Object.keys(params).some((key) => key !== "query" && key !== "limit"))
|
|
7284
7589
|
throw new Error("Invalid conversation search request.");
|
|
7285
|
-
const query =
|
|
7590
|
+
const query = text4(params, "query", SEARCH_QUERY_MAX).trim();
|
|
7286
7591
|
const limit = params.limit === void 0 ? 20 : params.limit;
|
|
7287
7592
|
if (typeof limit !== "number" || !Number.isInteger(limit) || limit < 1 || limit > 50)
|
|
7288
7593
|
throw new Error("A search returns between 1 and 50 conversations.");
|
|
@@ -7546,7 +7851,7 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
|
|
|
7546
7851
|
"namzu/skills/list": /* @__PURE__ */ __name(async (params = {}) => {
|
|
7547
7852
|
if (!params || typeof params !== "object" || Array.isArray(params) || Object.keys(params).length > 0)
|
|
7548
7853
|
throw new Error("Invalid skills request.");
|
|
7549
|
-
const { listInstalledSkills } = await import("./installed-list-
|
|
7854
|
+
const { listInstalledSkills } = await import("./installed-list-44QXUJFE.js");
|
|
7550
7855
|
return { skills: listInstalledSkills({ cwd, includeProject: isTrusted(cwd) && !pal() }) };
|
|
7551
7856
|
}, "namzu/skills/list"),
|
|
7552
7857
|
/** The tool servers in the user's own config file, as the Settings form edits them. */
|
|
@@ -7575,7 +7880,7 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
|
|
|
7575
7880
|
...args ? { args } : {},
|
|
7576
7881
|
...typeof params.url === "string" ? { url: params.url } : {}
|
|
7577
7882
|
};
|
|
7578
|
-
const name =
|
|
7883
|
+
const name = text4(params, "name", 64);
|
|
7579
7884
|
if (params.dryRun === true) checkUserMcpServerSave(params.mode, name, input);
|
|
7580
7885
|
else saveUserMcpServer(params.mode, name, input);
|
|
7581
7886
|
return userServersAnswer();
|
|
@@ -7584,7 +7889,7 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
|
|
|
7584
7889
|
if (pal()) throw new Error("Pals do not change the host settings.");
|
|
7585
7890
|
if (!params || typeof params !== "object" || Object.keys(params).some((key) => key !== "name"))
|
|
7586
7891
|
throw new Error("Removing a tool server names only the server.");
|
|
7587
|
-
removeUserMcpServer(
|
|
7892
|
+
removeUserMcpServer(text4(params, "name", 64));
|
|
7588
7893
|
return userServersAnswer();
|
|
7589
7894
|
}, "namzu/mcp/remove-user-server"),
|
|
7590
7895
|
/**
|
|
@@ -7596,7 +7901,7 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
|
|
|
7596
7901
|
"namzu/hooks/list": /* @__PURE__ */ __name(async (params = {}) => {
|
|
7597
7902
|
if (!params || typeof params !== "object" || Array.isArray(params) || Object.keys(params).length > 0)
|
|
7598
7903
|
throw new Error("Invalid hooks request.");
|
|
7599
|
-
const { describeFolderHooks } = await import("./hooks-report-
|
|
7904
|
+
const { describeFolderHooks } = await import("./hooks-report-NJLGBWN3.js");
|
|
7600
7905
|
return describeFolderHooks({ cwd, trusted: isTrusted(cwd) });
|
|
7601
7906
|
}, "namzu/hooks/list"),
|
|
7602
7907
|
/** Approves servers `.mcp.json` declared, as they were listed, the way `namzu mcp approve` does. */
|
|
@@ -7609,7 +7914,7 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
|
|
|
7609
7914
|
throw new Error("Choose the tool servers to approve.");
|
|
7610
7915
|
const checked = shown.map((item) => {
|
|
7611
7916
|
const row2 = item && typeof item === "object" ? item : {};
|
|
7612
|
-
return { name:
|
|
7917
|
+
return { name: text4(row2, "name", 64), fingerprint: text4(row2, "fingerprint", 128) };
|
|
7613
7918
|
});
|
|
7614
7919
|
return { approved: approveListedMcpServers(cwd, checked) };
|
|
7615
7920
|
}, "namzu/mcp/approve"),
|
|
@@ -7672,14 +7977,14 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
|
|
|
7672
7977
|
};
|
|
7673
7978
|
}, "namzu/providers/status"),
|
|
7674
7979
|
"namzu/providers/models": /* @__PURE__ */ __name((params) => {
|
|
7675
|
-
const provider =
|
|
7980
|
+
const provider = text4(params, "provider");
|
|
7676
7981
|
if (params.sessionId === void 0) return runtime.models(provider);
|
|
7677
7982
|
session(params);
|
|
7678
7983
|
return ownedReadSession(params).then((id2) => runtime.models(provider, id2));
|
|
7679
7984
|
}, "namzu/providers/models"),
|
|
7680
7985
|
"namzu/providers/settings": /* @__PURE__ */ __name(async (params) => runtime.modelSettings(
|
|
7681
|
-
|
|
7682
|
-
|
|
7986
|
+
text4(params, "provider"),
|
|
7987
|
+
text4(params, "model"),
|
|
7683
7988
|
params.sessionId === void 0 ? void 0 : await ownedReadSession(params)
|
|
7684
7989
|
), "namzu/providers/settings"),
|
|
7685
7990
|
"namzu/plugins/list": /* @__PURE__ */ __name(async (params) => {
|
|
@@ -7698,7 +8003,7 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
|
|
|
7698
8003
|
if (typeof params.enabled !== "boolean") throw new Error("Invalid plugin choice.");
|
|
7699
8004
|
return runtime.setPluginEnabled(
|
|
7700
8005
|
await ownedSession(params),
|
|
7701
|
-
|
|
8006
|
+
text4(params, "name"),
|
|
7702
8007
|
params.enabled,
|
|
7703
8008
|
cwd
|
|
7704
8009
|
);
|
|
@@ -7707,8 +8012,8 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
|
|
|
7707
8012
|
if (!isTrusted(cwd)) throw new Error("Trust this folder first.");
|
|
7708
8013
|
await runtime.selectProvider(
|
|
7709
8014
|
await ownedSession(params),
|
|
7710
|
-
|
|
7711
|
-
params.model === void 0 ? void 0 :
|
|
8015
|
+
text4(params, "provider"),
|
|
8016
|
+
params.model === void 0 ? void 0 : text4(params, "model")
|
|
7712
8017
|
);
|
|
7713
8018
|
return { selected: true };
|
|
7714
8019
|
}, "namzu/providers/select"),
|
|
@@ -7722,7 +8027,7 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
|
|
|
7722
8027
|
"namzu/providers/save_key": /* @__PURE__ */ __name(async (params) => {
|
|
7723
8028
|
if (Object.keys(params).some((key) => !["provider", "apiKey"].includes(key)))
|
|
7724
8029
|
throw new Error("Saving a key accepts only the provider and the key.");
|
|
7725
|
-
return runtime.saveProviderKey(
|
|
8030
|
+
return runtime.saveProviderKey(text4(params, "provider"), text4(params, "apiKey", 4096));
|
|
7726
8031
|
}, "namzu/providers/save_key"),
|
|
7727
8032
|
"namzu/config/get": /* @__PURE__ */ __name(() => {
|
|
7728
8033
|
if (pal()) throw new Error("Pals do not read the host settings.");
|
|
@@ -7735,15 +8040,15 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
|
|
|
7735
8040
|
if (params.dryRun !== void 0 && typeof params.dryRun !== "boolean")
|
|
7736
8041
|
throw new Error("dryRun is true or false.");
|
|
7737
8042
|
if (params.dryRun === true) {
|
|
7738
|
-
checkSetting({ path:
|
|
8043
|
+
checkSetting({ path: text4(params, "path"), value: params.value });
|
|
7739
8044
|
return readSettings();
|
|
7740
8045
|
}
|
|
7741
|
-
writeSetting({ path:
|
|
8046
|
+
writeSetting({ path: text4(params, "path"), value: params.value });
|
|
7742
8047
|
return readSettings();
|
|
7743
8048
|
}, "namzu/config/set"),
|
|
7744
8049
|
"namzu/providers/refresh": /* @__PURE__ */ __name(() => runtime.refreshProviders(), "namzu/providers/refresh"),
|
|
7745
|
-
"namzu/providers/remove_key": /* @__PURE__ */ __name(async (params) => runtime.removeProviderKey(
|
|
7746
|
-
"namzu/providers/test": /* @__PURE__ */ __name(async (params) => runtime.testProvider(
|
|
8050
|
+
"namzu/providers/remove_key": /* @__PURE__ */ __name(async (params) => runtime.removeProviderKey(text4(params, "provider")), "namzu/providers/remove_key"),
|
|
8051
|
+
"namzu/providers/test": /* @__PURE__ */ __name(async (params) => runtime.testProvider(text4(params, "provider")), "namzu/providers/test"),
|
|
7747
8052
|
/** Where this conversation's context window goes; null until the engine has reported one. */
|
|
7748
8053
|
"namzu/session/context": /* @__PURE__ */ __name(async (params) => {
|
|
7749
8054
|
const request = readContextRequest(params);
|
|
@@ -7772,7 +8077,7 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
|
|
|
7772
8077
|
"namzu/session/set-permission-mode": /* @__PURE__ */ __name(async (params) => {
|
|
7773
8078
|
if (Object.keys(params).some((key) => !["sessionId", "mode"].includes(key)))
|
|
7774
8079
|
throw new Error("Setting the mode accepts only sessionId and mode.");
|
|
7775
|
-
const mode =
|
|
8080
|
+
const mode = text4(params, "mode");
|
|
7776
8081
|
if (!isPermissionMode(mode)) throw new Error("Invalid permission mode.");
|
|
7777
8082
|
return runtime.setPermissionMode(
|
|
7778
8083
|
await ownedSession(params),
|
|
@@ -7788,15 +8093,27 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
|
|
|
7788
8093
|
const sessionId = await ownedSession(params);
|
|
7789
8094
|
runtime.answerQuestion(
|
|
7790
8095
|
sessionId,
|
|
7791
|
-
|
|
8096
|
+
text4(params, "requestId"),
|
|
7792
8097
|
params.answer
|
|
7793
8098
|
);
|
|
7794
8099
|
return { answered: true };
|
|
7795
8100
|
}
|
|
7796
8101
|
} : {},
|
|
8102
|
+
/** The person took a browser's click-and-type yes back; the engine asks again. */
|
|
8103
|
+
...runtime.revokeBrowserGrant ? {
|
|
8104
|
+
"namzu/session/revoke-browser": /* @__PURE__ */ __name(async (params) => {
|
|
8105
|
+
if (Object.keys(params).some((key) => !["sessionId", "app"].includes(key)))
|
|
8106
|
+
throw new Error("Revoking a browser accepts only sessionId and app.");
|
|
8107
|
+
const app = text4(params, "app");
|
|
8108
|
+
if (app.length > 120) throw new Error("Invalid application.");
|
|
8109
|
+
return {
|
|
8110
|
+
revoked: runtime.revokeBrowserGrant(await ownedSession(params), app)
|
|
8111
|
+
};
|
|
8112
|
+
}, "namzu/session/revoke-browser")
|
|
8113
|
+
} : {},
|
|
7797
8114
|
"namzu/jobs/list": /* @__PURE__ */ __name(async (params) => runtime.jobs(await ownedReadSession(params)), "namzu/jobs/list"),
|
|
7798
|
-
"namzu/jobs/read": /* @__PURE__ */ __name(async (params) => runtime.readJob(await ownedReadSession(params),
|
|
7799
|
-
"namzu/jobs/stop": /* @__PURE__ */ __name(async (params) => runtime.stopJob(await ownedSession(params),
|
|
8115
|
+
"namzu/jobs/read": /* @__PURE__ */ __name(async (params) => runtime.readJob(await ownedReadSession(params), text4(params, "jobId")), "namzu/jobs/read"),
|
|
8116
|
+
"namzu/jobs/stop": /* @__PURE__ */ __name(async (params) => runtime.stopJob(await ownedSession(params), text4(params, "jobId")), "namzu/jobs/stop")
|
|
7800
8117
|
};
|
|
7801
8118
|
}
|
|
7802
8119
|
__name(createDesktopHostExtensions, "createDesktopHostExtensions");
|
|
@@ -7813,8 +8130,8 @@ __name(productName, "productName");
|
|
|
7813
8130
|
function desktopModelCatalogue(listing, defaultModel, currentModel, allowModel, providerLabel = "The provider") {
|
|
7814
8131
|
if (listing.kind !== "ok") {
|
|
7815
8132
|
const name = productName(providerLabel);
|
|
7816
|
-
const
|
|
7817
|
-
const notice = listing.kind === "unsupported" ? `${name} doesn\u2019t publish a list of its models.` : listing.kind === "timeout" ? `${name} didn\u2019t answer in time, so its models can\u2019t be listed. Try again.` : listing.failure === "authentication" ? `${name} didn\u2019t accept your key or sign-in, so its models can\u2019t be listed. Check it in Settings.` : listing.failure === "credential-unavailable" ? `The sign-in for ${
|
|
8133
|
+
const object2 = providerLabel === "The provider" ? "the provider" : name;
|
|
8134
|
+
const notice = listing.kind === "unsupported" ? `${name} doesn\u2019t publish a list of its models.` : listing.kind === "timeout" ? `${name} didn\u2019t answer in time, so its models can\u2019t be listed. Try again.` : listing.failure === "authentication" ? `${name} didn\u2019t accept your key or sign-in, so its models can\u2019t be listed. Check it in Settings.` : listing.failure === "credential-unavailable" ? `The sign-in for ${object2} is no longer available on this computer. Sign in again or choose another provider.` : `Namzu couldn\u2019t reach ${object2} to list its models. Check your connection, then try again.`;
|
|
7818
8135
|
return { models: [], notice };
|
|
7819
8136
|
}
|
|
7820
8137
|
const seen = /* @__PURE__ */ new Set();
|
|
@@ -8443,11 +8760,11 @@ function createCliAcpRuntime(bootstrapCtx, deps = DEFAULT_RUNTIME_DEPS, runtimeO
|
|
|
8443
8760
|
const presenter = {
|
|
8444
8761
|
presentCall: /* @__PURE__ */ __name((toolName, input) => activeRecord?.session.presenter.presentCall(toolName, input) ?? {
|
|
8445
8762
|
kind: "generic",
|
|
8446
|
-
label: genericLabel(input)
|
|
8763
|
+
label: genericLabel(input) || toolName
|
|
8447
8764
|
}, "presentCall"),
|
|
8448
8765
|
presentResult: /* @__PURE__ */ __name((toolName, input, result) => activeRecord?.session.presenter.presentResult(toolName, input, result) ?? {
|
|
8449
8766
|
kind: "generic",
|
|
8450
|
-
label: genericLabel(input)
|
|
8767
|
+
label: genericLabel(input) || toolName
|
|
8451
8768
|
}, "presentResult")
|
|
8452
8769
|
};
|
|
8453
8770
|
const sharedProbe = /* @__PURE__ */ __name(() => {
|
|
@@ -8613,6 +8930,18 @@ function createCliAcpRuntime(bootstrapCtx, deps = DEFAULT_RUNTIME_DEPS, runtimeO
|
|
|
8613
8930
|
// question tool, its guidance and a tool server's request for input: none of what the
|
|
8614
8931
|
// terminal's "somebody is typing" brings with it.
|
|
8615
8932
|
...questionRelay && !palEnvironment ? { questions: true } : {},
|
|
8933
|
+
// The desktop can save a skill the model drafted: the same tool the terminal has, its
|
|
8934
|
+
// confirmation drawn as a card by the app. Never answered by a permission mode.
|
|
8935
|
+
...questionRelay && !palEnvironment ? {
|
|
8936
|
+
extraTools: [
|
|
8937
|
+
buildSaveSkillTool({
|
|
8938
|
+
cwd: /* @__PURE__ */ __name(() => cwd, "cwd"),
|
|
8939
|
+
config: /* @__PURE__ */ __name(() => projectCtx.config.skills, "config"),
|
|
8940
|
+
sessionId: /* @__PURE__ */ __name(() => target2.sessionId, "sessionId"),
|
|
8941
|
+
confirm: questionRelay.skillSaveConfirm(sessionId, () => cwd)
|
|
8942
|
+
})
|
|
8943
|
+
]
|
|
8944
|
+
} : {},
|
|
8616
8945
|
// The model may read the safe settings and change one when the person says yes on
|
|
8617
8946
|
// the card; the desktop's own preferences join when the app said where they are.
|
|
8618
8947
|
...runtimeOptions.announce && !palEnvironment && projectCtx.config.agentSettings !== false ? { settingsTools: settingsContext(cwd) } : {},
|
|
@@ -8639,7 +8968,16 @@ function createCliAcpRuntime(bootstrapCtx, deps = DEFAULT_RUNTIME_DEPS, runtimeO
|
|
|
8639
8968
|
...browserConfig?.signInDetection ? { signInDetection: browserConfig.signInDetection } : {},
|
|
8640
8969
|
// A person is here to answer: a sign-in page is put to them, not left to a command.
|
|
8641
8970
|
...questionRelay && !palEnvironment ? { askPersonToSignIn: true } : {},
|
|
8642
|
-
...conversationState ? { home: conversationState.root } : {}
|
|
8971
|
+
...conversationState ? { home: conversationState.root } : {},
|
|
8972
|
+
// The app's Browser pane first, where it offered one and the rules can be
|
|
8973
|
+
// said as host patterns; a browser set to never show a window stays its own.
|
|
8974
|
+
...runtimeOptions.browserPane && browserConfig?.headless !== "always" ? (() => {
|
|
8975
|
+
const link = runtimeOptions.browserPane;
|
|
8976
|
+
const rules = paneSiteRules(browserSites.sites);
|
|
8977
|
+
return link && rules ? {
|
|
8978
|
+
pane: /* @__PURE__ */ __name(() => link.available() ? link.channel(sessionId, rules) : void 0, "pane")
|
|
8979
|
+
} : {};
|
|
8980
|
+
})() : {}
|
|
8643
8981
|
}
|
|
8644
8982
|
} : {},
|
|
8645
8983
|
// Every key the configuration sets for a session, through the one function
|
|
@@ -8795,8 +9133,10 @@ function createCliAcpRuntime(bootstrapCtx, deps = DEFAULT_RUNTIME_DEPS, runtimeO
|
|
|
8795
9133
|
let failureMessage;
|
|
8796
9134
|
let settledHistory;
|
|
8797
9135
|
const onPermission = /* @__PURE__ */ __name(async (request) => {
|
|
9136
|
+
const teammate = record2.session.teammateAsking?.(request);
|
|
8798
9137
|
const outcome = await ask({
|
|
8799
9138
|
sessionId,
|
|
9139
|
+
...teammate ? { teammate } : {},
|
|
8800
9140
|
toolCalls: await withPreviews(request.toolCalls, [record2.cwd], {
|
|
8801
9141
|
askEveryCall: request.screenConsent === true,
|
|
8802
9142
|
computer: /* @__PURE__ */ __name((call) => record2.session.describeComputerUseCall?.(call.name, call.input) ?? Promise.resolve(void 0), "computer"),
|
|
@@ -8906,7 +9246,7 @@ function createCliAcpRuntime(bootstrapCtx, deps = DEFAULT_RUNTIME_DEPS, runtimeO
|
|
|
8906
9246
|
if (event.kind === "paused") {
|
|
8907
9247
|
record2.retrySettings = { ...original, turnId: event.turnId };
|
|
8908
9248
|
const browser = record2.session.browser;
|
|
8909
|
-
if (event.handoff && browser?.status().headless)
|
|
9249
|
+
if (event.handoff && browser?.status().headless && browser.status().where !== "pane")
|
|
8910
9250
|
void browser.release().catch(() => {
|
|
8911
9251
|
});
|
|
8912
9252
|
}
|
|
@@ -9003,8 +9343,10 @@ function createCliAcpRuntime(bootstrapCtx, deps = DEFAULT_RUNTIME_DEPS, runtimeO
|
|
|
9003
9343
|
},
|
|
9004
9344
|
...onQuestionOf(sessionId, ask, signal),
|
|
9005
9345
|
onPermission: /* @__PURE__ */ __name(async (request) => {
|
|
9346
|
+
const teammate = record2.session.teammateAsking?.(request);
|
|
9006
9347
|
const outcome = await ask({
|
|
9007
9348
|
sessionId,
|
|
9349
|
+
...teammate ? { teammate } : {},
|
|
9008
9350
|
toolCalls: await withPreviews(request.toolCalls, [record2.cwd], {
|
|
9009
9351
|
askEveryCall: request.screenConsent === true,
|
|
9010
9352
|
computer: /* @__PURE__ */ __name((call) => record2.session.describeComputerUseCall?.(call.name, call.input) ?? Promise.resolve(void 0), "computer"),
|
|
@@ -9189,6 +9531,10 @@ function createCliAcpRuntime(bootstrapCtx, deps = DEFAULT_RUNTIME_DEPS, runtimeO
|
|
|
9189
9531
|
if (!questionRelay.answer(sessionId, requestId, answer))
|
|
9190
9532
|
throw new Error("This question is no longer open.");
|
|
9191
9533
|
}, "answerQuestion"),
|
|
9534
|
+
revokeBrowserGrant: /* @__PURE__ */ __name((sessionId, app) => {
|
|
9535
|
+
if (closed) throw new Error("The connection is closed.");
|
|
9536
|
+
return records.get(sessionId)?.session.revokeComputerBrowser?.(app) ?? false;
|
|
9537
|
+
}, "revokeBrowserGrant"),
|
|
9192
9538
|
setPermissionMode: /* @__PURE__ */ __name(async (sessionId, mode) => {
|
|
9193
9539
|
if (closed) throw new Error("The connection is closed.");
|
|
9194
9540
|
const record2 = records.get(sessionId);
|
|
@@ -9262,10 +9608,8 @@ function createCliAcpRuntime(bootstrapCtx, deps = DEFAULT_RUNTIME_DEPS, runtimeO
|
|
|
9262
9608
|
if (!status.retry) {
|
|
9263
9609
|
if (!status.handoff) return status;
|
|
9264
9610
|
const browser = record2?.session.browser?.status();
|
|
9265
|
-
|
|
9266
|
-
|
|
9267
|
-
handoff: { ...status.handoff, window: browser.headless ? "none" : "visible" }
|
|
9268
|
-
} : status;
|
|
9611
|
+
const window = browser ? handoffWindow(browser) : void 0;
|
|
9612
|
+
return window ? { ...status, handoff: { ...status.handoff, window } } : status;
|
|
9269
9613
|
}
|
|
9270
9614
|
const blocked = /* @__PURE__ */ __name((notice) => ({
|
|
9271
9615
|
notice,
|
|
@@ -9667,9 +10011,9 @@ function createCliAcpRuntime(bootstrapCtx, deps = DEFAULT_RUNTIME_DEPS, runtimeO
|
|
|
9667
10011
|
readText: /* @__PURE__ */ __name(async (path) => {
|
|
9668
10012
|
const known = files.get(path);
|
|
9669
10013
|
if (known !== void 0) return known;
|
|
9670
|
-
const
|
|
9671
|
-
files.set(path,
|
|
9672
|
-
return
|
|
10014
|
+
const text5 = await readFile3(path, "utf8");
|
|
10015
|
+
files.set(path, text5);
|
|
10016
|
+
return text5;
|
|
9673
10017
|
}, "readText")
|
|
9674
10018
|
});
|
|
9675
10019
|
return buildContextReport({
|
|
@@ -9736,7 +10080,16 @@ function acpKernelFacts(desktop) {
|
|
|
9736
10080
|
};
|
|
9737
10081
|
}
|
|
9738
10082
|
__name(acpKernelFacts, "acpKernelFacts");
|
|
9739
|
-
|
|
10083
|
+
var NO_BROWSER_PANE_EXTENSIONS = Object.fromEntries(
|
|
10084
|
+
BROWSER_PANE_SERVED_METHODS.map((name) => [name, () => null])
|
|
10085
|
+
);
|
|
10086
|
+
function handoffWindow(browser) {
|
|
10087
|
+
if (browser.where === "pane") return "pane";
|
|
10088
|
+
if (browser.prefersPane === true && browser.where !== "own") return void 0;
|
|
10089
|
+
return browser.headless ? "none" : "visible";
|
|
10090
|
+
}
|
|
10091
|
+
__name(handoffWindow, "handoffWindow");
|
|
10092
|
+
function desktopServerExtensions(runtime, cwd, server, palInboxStart, terminals, limits, extensions, browserPane) {
|
|
9740
10093
|
return {
|
|
9741
10094
|
...createDesktopHostExtensions(
|
|
9742
10095
|
runtime,
|
|
@@ -9749,6 +10102,9 @@ function desktopServerExtensions(runtime, cwd, server, palInboxStart, terminals,
|
|
|
9749
10102
|
limits
|
|
9750
10103
|
),
|
|
9751
10104
|
...terminals?.extensions,
|
|
10105
|
+
// What the app says about the agent's tab in its Browser pane. Always listed, so the app
|
|
10106
|
+
// can tell this engine takes them; nothing is sent unless the app offered the pane.
|
|
10107
|
+
...browserPane?.extensions ?? NO_BROWSER_PANE_EXTENSIONS,
|
|
9752
10108
|
...extensions ?? createExtensionsRpc(() => sharedExtensionHost("desktop"))
|
|
9753
10109
|
};
|
|
9754
10110
|
}
|
|
@@ -9774,9 +10130,14 @@ async function runAcpCommand(ctx, desktop = false) {
|
|
|
9774
10130
|
notify: announce,
|
|
9775
10131
|
now: /* @__PURE__ */ __name(() => Date.now(), "now")
|
|
9776
10132
|
}) : void 0;
|
|
10133
|
+
const paneLink = desktop ? createAcpPaneLink({
|
|
10134
|
+
offers: /* @__PURE__ */ __name((capability) => server.clientOffers(capability), "offers"),
|
|
10135
|
+
ask: /* @__PURE__ */ __name((method, params) => server.askClient(method, params), "ask")
|
|
10136
|
+
}) : void 0;
|
|
9777
10137
|
const runtime = withCliHarnesses(
|
|
9778
10138
|
createCliAcpRuntime(ctx, DEFAULT_RUNTIME_DEPS, {
|
|
9779
10139
|
computerUse: desktop,
|
|
10140
|
+
...paneLink ? { browserPane: paneLink } : {},
|
|
9780
10141
|
...desktop ? {
|
|
9781
10142
|
observeComputer: /* @__PURE__ */ __name((id2, seen) => announce(COMPUTER_FRAME_NOTIFICATION, { sessionId: id2, ...seen }), "observeComputer")
|
|
9782
10143
|
} : {},
|
|
@@ -9823,7 +10184,11 @@ async function runAcpCommand(ctx, desktop = false) {
|
|
|
9823
10184
|
supportsTaskNotifications: desktop,
|
|
9824
10185
|
transport,
|
|
9825
10186
|
gateway: runtime.gateway,
|
|
9826
|
-
commands:
|
|
10187
|
+
commands: (() => {
|
|
10188
|
+
const commands = new HostCommandRegistry();
|
|
10189
|
+
if (desktop) commands.register(SKILLS_HOST_COMMAND);
|
|
10190
|
+
return commands;
|
|
10191
|
+
})(),
|
|
9827
10192
|
presenter: runtime.presenter,
|
|
9828
10193
|
agentInfo: { name: "namzu", version: readPackageVersion() },
|
|
9829
10194
|
// The two facts this application adds to what the engine says about itself.
|
|
@@ -9838,7 +10203,9 @@ async function runAcpCommand(ctx, desktop = false) {
|
|
|
9838
10203
|
},
|
|
9839
10204
|
palInboxStart,
|
|
9840
10205
|
terminals,
|
|
9841
|
-
limitsFeed
|
|
10206
|
+
limitsFeed,
|
|
10207
|
+
void 0,
|
|
10208
|
+
paneLink
|
|
9842
10209
|
)
|
|
9843
10210
|
} : {}
|
|
9844
10211
|
});
|
|
@@ -9863,6 +10230,7 @@ async function runAcpCommand(ctx, desktop = false) {
|
|
|
9863
10230
|
} finally {
|
|
9864
10231
|
announcing = false;
|
|
9865
10232
|
announcingUsage = false;
|
|
10233
|
+
paneLink?.close("The app closed its connection to this engine.");
|
|
9866
10234
|
usageFeed?.close();
|
|
9867
10235
|
try {
|
|
9868
10236
|
if (desktop) await stopDesktopExtensions();
|
|
@@ -9900,8 +10268,9 @@ export {
|
|
|
9900
10268
|
closeAcpResources,
|
|
9901
10269
|
createCliAcpRuntime,
|
|
9902
10270
|
desktopServerExtensions,
|
|
10271
|
+
handoffWindow,
|
|
9903
10272
|
parseAcpArgs,
|
|
9904
10273
|
resolveAcpSession,
|
|
9905
10274
|
runAcpCommand
|
|
9906
10275
|
};
|
|
9907
|
-
//# sourceMappingURL=acp-
|
|
10276
|
+
//# sourceMappingURL=acp-AQUZCZSO.js.map
|