@namzu/cli 57.1.0 → 58.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 +120 -0
- package/README.md +5 -5
- 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-OZG7H75P.js} +437 -204
- package/dist/chunks/acp-OZG7H75P.js.map +6 -0
- package/dist/chunks/{activity-command-GETWRD67.js → activity-command-ZROH53CS.js} +14 -15
- package/dist/chunks/activity-command-ZROH53CS.js.map +6 -0
- package/dist/chunks/{add-XFYJ6UZE.js → add-DKSV5Y3C.js} +36 -34
- package/dist/chunks/add-DKSV5Y3C.js.map +6 -0
- package/dist/chunks/{agent-FW4VC2AF.js → agent-MSSMOEBP.js} +58 -48
- package/dist/chunks/agent-session-VCB6HX3E.js +89 -0
- package/dist/chunks/{apply-at-exit-OU2UXZCF.js → apply-at-exit-Z34ZOT4A.js} +9 -9
- package/dist/chunks/{apply-at-exit-OU2UXZCF.js.map → apply-at-exit-Z34ZOT4A.js.map} +1 -1
- package/dist/chunks/{archive-PA5MDKXC.js → archive-UMNSALTJ.js} +16 -13
- package/dist/chunks/archive-UMNSALTJ.js.map +6 -0
- package/dist/chunks/auth-2NEDWCS7.js +242 -0
- package/dist/chunks/auth-2NEDWCS7.js.map +6 -0
- package/dist/chunks/{bin-main-RH4NLAPK.js → bin-main-2E6XD7MQ.js} +8 -8
- package/dist/chunks/{binding-ON644UJ3.js → binding-NAPEU62B.js} +3 -3
- package/dist/chunks/browser-M7U6GZOY.js +76 -0
- package/dist/chunks/browser-M7U6GZOY.js.map +6 -0
- package/dist/chunks/{chat-UNZSJZ6U.js → chat-34SAREPI.js} +17 -18
- package/dist/chunks/chat-34SAREPI.js.map +6 -0
- package/dist/chunks/{chunk-S7YXINNY.js → chunk-27ICMJVV.js} +3 -3
- package/dist/chunks/{chunk-NP4BQ7SB.js → chunk-2D5WW5KP.js} +2 -2
- package/dist/chunks/{chunk-ZR3VZG37.js → chunk-2GKFWJ3O.js} +7 -186
- package/dist/chunks/chunk-2GKFWJ3O.js.map +6 -0
- package/dist/chunks/{chunk-D5N3SDNF.js → chunk-2J2Z6S3V.js} +21 -21
- package/dist/chunks/{chunk-Z6LUWKV4.js → chunk-2PRVGX6U.js} +8 -8
- package/dist/chunks/chunk-2QJNPJOC.js +39 -0
- package/dist/chunks/chunk-2QJNPJOC.js.map +6 -0
- package/dist/chunks/{chunk-2ZPB4ZBP.js → chunk-32CPPPKX.js} +3 -3
- package/dist/chunks/{chunk-6MGRBXCW.js → chunk-3SBROSVS.js} +2 -2
- package/dist/chunks/{chunk-LGVEASS7.js → chunk-3ZL6YBMT.js} +6 -6
- package/dist/chunks/chunk-4AWE33MD.js +186 -0
- package/dist/chunks/chunk-4AWE33MD.js.map +6 -0
- package/dist/chunks/{chunk-RYLQH5BB.js → chunk-4RCXY7WO.js} +2 -2
- package/dist/chunks/{chunk-2AEWJA4Y.js → chunk-4WLMPRGO.js} +4 -4
- package/dist/chunks/{chunk-2AEWJA4Y.js.map → chunk-4WLMPRGO.js.map} +1 -1
- package/dist/chunks/{chunk-ICIVSMA3.js → chunk-4YQJ262B.js} +2 -2
- package/dist/chunks/{chunk-DOLGKZC5.js → chunk-52DZTN4C.js} +5 -3
- package/dist/chunks/{chunk-2JFRYOBC.js → chunk-5564PCLT.js} +11 -9
- package/dist/chunks/chunk-5564PCLT.js.map +6 -0
- package/dist/chunks/{chunk-LXK7S2I2.js → chunk-5COLG33E.js} +6 -6
- package/dist/chunks/{chunk-N4YYJGMW.js → chunk-5GI7W4SM.js} +9 -9
- package/dist/chunks/{chunk-M4XYHIA3.js → chunk-5NIQMCRF.js} +2 -2
- package/dist/chunks/{chunk-QTQIHFYH.js → chunk-5WS5Q2KW.js} +3 -3
- package/dist/chunks/{chunk-ORSFP3ZC.js → chunk-655EBPZH.js} +36 -12
- package/dist/chunks/{chunk-ORSFP3ZC.js.map → chunk-655EBPZH.js.map} +1 -1
- package/dist/chunks/{chunk-SKFBM6OJ.js → chunk-66DFXMZG.js} +5 -5
- package/dist/chunks/{chunk-DRKCWJPR.js → chunk-6MMKNZYL.js} +3 -3
- package/dist/chunks/{chunk-SHFB4DZP.js → chunk-6QQVZXUE.js} +2 -2
- package/dist/chunks/{chunk-GVWDNFIP.js → chunk-6RBEIDSC.js} +3 -3
- package/dist/chunks/{chunk-W6UOMYDX.js → chunk-6V4VYVRZ.js} +2 -2
- package/dist/chunks/{chunk-5YTGRS7U.js → chunk-6ZWEKSAV.js} +7 -7
- package/dist/chunks/{chunk-JCH7IWMU.js → chunk-774DAIPO.js} +887 -530
- package/dist/chunks/chunk-774DAIPO.js.map +6 -0
- package/dist/chunks/{chunk-HIHHTWEU.js → chunk-7BSLOLTU.js} +2 -2
- package/dist/chunks/{chunk-3HT7FQNG.js → chunk-7BXJPOEG.js} +4 -4
- package/dist/chunks/{chunk-WCAKWRZU.js → chunk-7DERK6IR.js} +3 -3
- package/dist/chunks/{chunk-4PFTZNS5.js → chunk-7EASTT3H.js} +2 -2
- package/dist/chunks/{chunk-REYJHS2X.js → chunk-7LCU5IKH.js} +20 -20
- package/dist/chunks/{chunk-REYJHS2X.js.map → chunk-7LCU5IKH.js.map} +1 -1
- package/dist/chunks/{chunk-IZYYWNP2.js → chunk-7MYLYFIV.js} +2 -2
- package/dist/chunks/{chunk-WDROVY6V.js → chunk-7NAHUZAR.js} +2 -2
- package/dist/chunks/{chunk-LGPOJEZK.js → chunk-7NQLCFYX.js} +5 -5
- package/dist/chunks/{chunk-BJQ7WFWL.js → chunk-7ROZ2N57.js} +35 -3
- package/dist/chunks/chunk-7ROZ2N57.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-6TCZN54R.js → chunk-A5O5VTQM.js} +3 -3
- package/dist/chunks/{chunk-2P2PDEZJ.js → chunk-ADLNBLRA.js} +24 -16
- package/dist/chunks/chunk-ADLNBLRA.js.map +6 -0
- package/dist/chunks/{chunk-ABELB4VO.js → chunk-BATWKQWV.js} +2 -2
- package/dist/chunks/{chunk-NOHH27YE.js → chunk-CK47DTW6.js} +5 -5
- package/dist/chunks/{chunk-LWAGZIEA.js → chunk-CSO7BHDJ.js} +2 -2
- package/dist/chunks/{chunk-GPP4OXHP.js → chunk-D42SQGEO.js} +2 -2
- package/dist/chunks/{chunk-J6QCR3SC.js → chunk-DIBXZBOP.js} +7 -7
- package/dist/chunks/{chunk-3ZHOM2L7.js → chunk-DZA7UXA2.js} +15 -63
- package/dist/chunks/chunk-DZA7UXA2.js.map +6 -0
- package/dist/chunks/{chunk-PI5ZZQVH.js → chunk-EFWF72V4.js} +3 -3
- package/dist/chunks/{chunk-TBKSDYS4.js → chunk-ENNAZGUX.js} +3 -3
- package/dist/chunks/{chunk-6E4TDPXP.js → chunk-EOLXS2ZV.js} +5 -5
- package/dist/chunks/{chunk-C7ZKC7HY.js → chunk-ESHAWCBR.js} +34 -8
- package/dist/chunks/chunk-ESHAWCBR.js.map +6 -0
- package/dist/chunks/{chunk-AF2QPFEQ.js → chunk-F6NUMURW.js} +3 -3
- package/dist/chunks/{chunk-R37C3PDS.js → chunk-FJG7JN4W.js} +5 -5
- package/dist/chunks/{chunk-R37C3PDS.js.map → chunk-FJG7JN4W.js.map} +1 -1
- package/dist/chunks/{chunk-OZ55WTNZ.js → chunk-FZPIEOFR.js} +3 -3
- package/dist/chunks/{chunk-LDU7AFNZ.js → chunk-G7UGGWOR.js} +2 -2
- package/dist/chunks/{chunk-5ZPCQ2HL.js → chunk-GLZJBFDO.js} +4 -4
- package/dist/chunks/{chunk-WYBLTKBR.js → chunk-GVLU2YM7.js} +17 -20
- package/dist/chunks/{chunk-WYBLTKBR.js.map → chunk-GVLU2YM7.js.map} +1 -1
- package/dist/chunks/{chunk-PK7M7VIU.js → chunk-HBGRWJU5.js} +13 -13
- package/dist/chunks/{chunk-7T56MZIJ.js → chunk-HGOU2QRN.js} +19 -19
- package/dist/chunks/{chunk-7T56MZIJ.js.map → chunk-HGOU2QRN.js.map} +1 -1
- package/dist/chunks/{chunk-ZDGKFGVE.js → chunk-HICZARAY.js} +2 -2
- package/dist/chunks/{chunk-FSAI4GDZ.js → chunk-HONSYTUC.js} +4 -4
- package/dist/chunks/{chunk-PPCKNQOQ.js → chunk-HRKY4ARS.js} +13 -11
- package/dist/chunks/chunk-HRKY4ARS.js.map +6 -0
- package/dist/chunks/{chunk-GWLUXO4O.js → chunk-I5BNXO63.js} +2 -2
- package/dist/chunks/{chunk-6MQHDX7R.js → chunk-IBENEKM4.js} +21 -5
- package/dist/chunks/chunk-IBENEKM4.js.map +6 -0
- package/dist/chunks/{chunk-BXAUUC2B.js → chunk-IH2JBJ6I.js} +4 -4
- package/dist/chunks/{chunk-Y62WSR5N.js → chunk-J4GPHTRN.js} +8 -8
- package/dist/chunks/{chunk-VV6DYTFU.js → chunk-JFA2XPTW.js} +5 -5
- package/dist/chunks/{chunk-HEFLKPCT.js → chunk-JSY23B3Q.js} +3 -3
- package/dist/chunks/{chunk-MMJ6UURB.js → chunk-JX6O7Y55.js} +3 -3
- package/dist/chunks/{chunk-KUIATFLN.js → chunk-K5VLCRHY.js} +2 -2
- package/dist/chunks/chunk-K7ZQYJJE.js +197 -0
- package/dist/chunks/chunk-K7ZQYJJE.js.map +6 -0
- package/dist/chunks/{chunk-RSO4LBHJ.js → chunk-KCBOIL5Q.js} +7 -7
- package/dist/chunks/{chunk-MY6JV4BT.js → chunk-KIWLK2WZ.js} +7 -9
- package/dist/chunks/chunk-KIWLK2WZ.js.map +6 -0
- package/dist/chunks/chunk-L4LGUBYZ.js +167 -0
- package/dist/chunks/chunk-L4LGUBYZ.js.map +6 -0
- package/dist/chunks/{chunk-6CI5CHBT.js → chunk-L5FCGDB7.js} +1673 -687
- package/dist/chunks/chunk-L5FCGDB7.js.map +6 -0
- package/dist/chunks/{chunk-ETBXU3OK.js → chunk-LM2OGSW5.js} +6 -6
- package/dist/chunks/{chunk-ETBXU3OK.js.map → chunk-LM2OGSW5.js.map} +1 -1
- package/dist/chunks/{chunk-GJ6NI7JL.js → chunk-LRUY5C6H.js} +17 -13
- package/dist/chunks/{chunk-GJ6NI7JL.js.map → chunk-LRUY5C6H.js.map} +1 -1
- package/dist/chunks/{chunk-7BF4FLOP.js → chunk-MJ32RCFZ.js} +4 -4
- package/dist/chunks/{chunk-4LSSJKYK.js → chunk-MJJA277Z.js} +19 -4
- package/dist/chunks/{chunk-4LSSJKYK.js.map → chunk-MJJA277Z.js.map} +1 -1
- package/dist/chunks/{chunk-6IWJ6JC6.js → chunk-MOY2OERC.js} +459 -135
- package/dist/chunks/chunk-MOY2OERC.js.map +6 -0
- package/dist/chunks/{chunk-XF243FQN.js → chunk-MX3U5TBQ.js} +17 -6
- package/dist/chunks/chunk-MX3U5TBQ.js.map +6 -0
- package/dist/chunks/{chunk-ZWP5L7BV.js → chunk-NBJ4OTXL.js} +8 -8
- package/dist/chunks/{chunk-BFYETM56.js → chunk-NFTQDITK.js} +91 -6
- package/dist/chunks/chunk-NFTQDITK.js.map +6 -0
- package/dist/chunks/{chunk-WSQAVWIV.js → chunk-NO3F3QQ3.js} +13 -13
- package/dist/chunks/{chunk-MOMSIAV4.js → chunk-NQYOMRPT.js} +2 -2
- package/dist/chunks/{chunk-IMXTM75Q.js → chunk-O6C4RETO.js} +3 -3
- package/dist/chunks/{chunk-PYYDU2BC.js → chunk-O6EDUJ77.js} +6 -6
- package/dist/chunks/{chunk-UILPXAKQ.js → chunk-OD2PMTXS.js} +3 -3
- package/dist/chunks/{chunk-DROVNI2Y.js → chunk-OGEOUETU.js} +3 -3
- package/dist/chunks/{chunk-3EH4PF5T.js → chunk-OY3UN3KD.js} +145 -3
- package/dist/chunks/{chunk-3EH4PF5T.js.map → chunk-OY3UN3KD.js.map} +2 -2
- package/dist/chunks/chunk-P6RYPNSD.js +435 -0
- package/dist/chunks/chunk-P6RYPNSD.js.map +6 -0
- package/dist/chunks/{chunk-77AYLILT.js → chunk-PYTTGYZS.js} +3 -3
- package/dist/chunks/chunk-RHJOIAFS.js +201 -0
- package/dist/chunks/chunk-RHJOIAFS.js.map +6 -0
- package/dist/chunks/{chunk-PJF46DI6.js → chunk-RR7FS6SQ.js} +3 -3
- package/dist/chunks/{chunk-233CEYFX.js → chunk-RTMX7IDM.js} +2 -2
- package/dist/chunks/{chunk-4E2REC5O.js → chunk-S4OEUN6F.js} +2 -2
- package/dist/chunks/{chunk-763RT6Z5.js → chunk-SEVORRUA.js} +2 -2
- package/dist/chunks/{chunk-JDWCVWIQ.js → chunk-TAIC3PC2.js} +3 -3
- package/dist/chunks/{chunk-SM6UI33D.js → chunk-TGLXWW5B.js} +3 -3
- package/dist/chunks/{chunk-CKYGPQVJ.js → chunk-TJAUF5NX.js} +3 -3
- package/dist/chunks/{chunk-AZXIYYVX.js → chunk-TL535OCL.js} +29 -13
- package/dist/chunks/chunk-TL535OCL.js.map +6 -0
- package/dist/chunks/{chunk-DT6PTS6H.js → chunk-TSU4F6DF.js} +2 -2
- package/dist/chunks/{chunk-6BTNPDXR.js → chunk-TXMWKHYW.js} +2 -2
- package/dist/chunks/{chunk-4DNEDLBT.js → chunk-U4DBETHR.js} +501 -766
- package/dist/chunks/chunk-U4DBETHR.js.map +6 -0
- package/dist/chunks/{chunk-HENM67TJ.js → chunk-UBGDYBSQ.js} +2 -2
- package/dist/chunks/{chunk-FEP2R3XI.js → chunk-ULFR2FWA.js} +2 -2
- package/dist/chunks/{chunk-DGV6YSAW.js → chunk-UMPJ4VXN.js} +4 -4
- package/dist/chunks/{chunk-M5LA652U.js → chunk-URZPVSHV.js} +4 -4
- package/dist/chunks/{chunk-5C6XCI24.js → chunk-UXLQNJDR.js} +4 -4
- package/dist/chunks/{chunk-3Z5OXTDI.js → chunk-WEPINZBQ.js} +3 -3
- package/dist/chunks/{chunk-DMHE6X3Y.js → chunk-XQZMTH3S.js} +12 -40
- package/dist/chunks/chunk-XQZMTH3S.js.map +6 -0
- package/dist/chunks/{chunk-NV7RJBWA.js → chunk-XWP64X6U.js} +6 -6
- package/dist/chunks/{chunk-RP5HOVOW.js → chunk-Y3NC6RIL.js} +4 -4
- package/dist/chunks/{chunk-6TF24TFD.js → chunk-YEWJVAM4.js} +57 -9
- package/dist/chunks/chunk-YEWJVAM4.js.map +6 -0
- package/dist/chunks/{chunk-FNEQ77RJ.js → chunk-ZDMI3JSL.js} +26 -4
- package/dist/chunks/{chunk-FNEQ77RJ.js.map → chunk-ZDMI3JSL.js.map} +1 -1
- package/dist/chunks/{cli-runtime-66YC7XKZ.js → cli-runtime-BLOWAO6Q.js} +34 -19
- package/dist/chunks/cli-runtime-BLOWAO6Q.js.map +6 -0
- package/dist/chunks/{commands-R6WIMNZG.js → commands-VWBRELWZ.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-77NN5LSS.js} +20 -17
- package/dist/chunks/config-77NN5LSS.js.map +6 -0
- package/dist/chunks/{cost-MVUQ3UWP.js → cost-IVLAFD5T.js} +5 -5
- package/dist/chunks/{crash-report-ASOVDFQT.js → crash-report-CA3Y7LA6.js} +6 -6
- package/dist/chunks/{dist-UTQTSM32.js → dist-3SGAVJFN.js} +2 -2
- package/dist/chunks/{dist-NUCTP67R.js → dist-5G52QS75.js} +193 -33
- package/dist/chunks/dist-5G52QS75.js.map +6 -0
- package/dist/chunks/{dist-6BE2BTVP.js → dist-7BSYEFE5.js} +2 -2
- package/dist/chunks/{dist-ZPPSUKEG.js → dist-AM6FWCIJ.js} +10 -2
- package/dist/chunks/{dist-IYSARJ7B.js → dist-ISRJEZRF.js} +2 -2
- package/dist/chunks/{dist-ERFNYYTR.js → dist-PBFZXU4L.js} +2 -2
- package/dist/chunks/{dist-DOHBDUFC.js → dist-RDXEBTCL.js} +2 -2
- package/dist/chunks/{dist-SQYPEQ4A.js → dist-V43PPTPF.js} +2 -2
- package/dist/chunks/{doctor-J2BRJDVI.js → doctor-FGOCO7UR.js} +39 -39
- package/dist/chunks/{drain-TGBUG6MO.js → drain-A3DLR5A4.js} +18 -18
- package/dist/chunks/{entry-7QM6GODJ.js → entry-4LHTI3VQ.js} +6 -6
- package/dist/chunks/{eval-274GGZ3M.js → eval-IYWGGPWF.js} +12 -12
- package/dist/chunks/{eval-274GGZ3M.js.map → eval-IYWGGPWF.js.map} +1 -1
- package/dist/chunks/{exec-QOH5FQCM.js → exec-HWK44ZYI.js} +104 -60
- package/dist/chunks/exec-HWK44ZYI.js.map +6 -0
- package/dist/chunks/{extension-Y52E4FZR.js → extension-BP7Q3PFK.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-GR6YDAAE.js} +3 -3
- package/dist/chunks/{hooks-C6WM34FA.js → hooks-KSSNBDF2.js} +22 -22
- package/dist/chunks/{hooks-report-FCLN3ERK.js → hooks-report-H4JAHJXE.js} +18 -18
- package/dist/chunks/{host-FUPSAICG.js → host-ISKJDJ7B.js} +10 -10
- package/dist/chunks/host-queries-CUG75GYD.js +37 -0
- package/dist/chunks/{installed-list-3Z2UYHZL.js → installed-list-GPVOP4E3.js} +4 -4
- package/dist/chunks/{learn-EXNQYLI3.js → learn-AFNJQGOU.js} +18 -18
- package/dist/chunks/{learn-builtin-C4ZAVNHA.js → learn-builtin-LUD6XO6W.js} +21 -21
- package/dist/chunks/{lifecycle-4ZRBSEP2.js → lifecycle-TCRMEVJP.js} +31 -32
- package/dist/chunks/{list-2QV773EI.js → list-4OJNF5N2.js} +16 -16
- package/dist/chunks/{live-33QEKVAM.js → live-LJ76XHPK.js} +38 -38
- package/dist/chunks/{load-SYMNQIDR.js → load-2ERMTCD4.js} +12 -10
- package/dist/chunks/{logs-IW7PYTI2.js → logs-DV6GC7PT.js} +4 -4
- package/dist/chunks/{mcp-HP3YRE3U.js → mcp-5VV24FGZ.js} +449 -61
- package/dist/chunks/mcp-5VV24FGZ.js.map +6 -0
- package/dist/chunks/mcp-serve-TT4Q7V55.js +311 -0
- package/dist/chunks/mcp-serve-TT4Q7V55.js.map +6 -0
- package/dist/chunks/{message-command-IFQSBBI5.js → message-command-6RHBI3R4.js} +56 -54
- package/dist/chunks/message-command-6RHBI3R4.js.map +6 -0
- package/dist/chunks/{open-3GVSPGUF.js → open-3VUS3XWX.js} +7 -7
- package/dist/chunks/{operator-tools-HT7UNWNK.js → operator-tools-BZ5X5ZDE.js} +15 -16
- package/dist/chunks/operator-tools-BZ5X5ZDE.js.map +6 -0
- package/dist/chunks/{output-schema-MKFI5PWR.js → output-schema-2GHHC5ZZ.js} +3 -3
- package/dist/chunks/{pal-6KB3D324.js → pal-TT7X5JF3.js} +150 -15
- package/dist/chunks/pal-TT7X5JF3.js.map +6 -0
- package/dist/chunks/{peers-4M45XTZO.js → peers-SJFCJTA6.js} +149 -19
- package/dist/chunks/peers-SJFCJTA6.js.map +6 -0
- package/dist/chunks/{peers-CGTVWK6B.js → peers-SLFOET3O.js} +7 -7
- package/dist/chunks/{plugin-FIVP6MGJ.js → plugin-I35EQ4CC.js} +22 -18
- package/dist/chunks/plugin-I35EQ4CC.js.map +6 -0
- package/dist/chunks/{providers-6634CTX7.js → providers-MX47EUPL.js} +22 -19
- package/dist/chunks/providers-MX47EUPL.js.map +6 -0
- package/dist/chunks/{providers-Z3KLRJDW.js → providers-SOFGNZ4F.js} +10 -10
- package/dist/chunks/{pty-GMA24QAT.js → pty-3T7AE7ZA.js} +3 -3
- package/dist/chunks/resume-5JACRBQO.js +25 -0
- package/dist/chunks/{resume-command-MXUIVG6T.js → resume-command-H4FOREZO.js} +4 -4
- package/dist/chunks/{running-HYMQGZMF.js → running-NONPWC5C.js} +4 -4
- package/dist/chunks/{schedule-54POTO5A.js → schedule-BWR4NKGX.js} +245 -10
- package/dist/chunks/schedule-BWR4NKGX.js.map +6 -0
- package/dist/chunks/{send-IFZ7XPTF.js → send-H27WTBLZ.js} +18 -18
- package/dist/chunks/send-person-NNGL2U4H.js +31 -0
- package/dist/chunks/{serve-CZDHGDZL.js → serve-4VIDXLEB.js} +2 -2
- package/dist/chunks/{service-Y5N7WIHV.js → service-NVOIN2MV.js} +32 -33
- package/dist/chunks/service-NVOIN2MV.js.map +6 -0
- package/dist/chunks/{setting-cli-CJMZHIMQ.js → setting-cli-ETVPDSRA.js} +13 -13
- package/dist/chunks/{skills-VSVXQTY3.js → skills-XAONTP56.js} +28 -25
- package/dist/chunks/skills-XAONTP56.js.map +6 -0
- package/dist/chunks/{start-check-MZGEYSQD.js → start-check-A5FG7224.js} +2 -2
- package/dist/chunks/{startup-failure-QS7O3M62.js → startup-failure-6MZNIJXI.js} +2 -2
- package/dist/chunks/{state-IRA33PLY.js → state-MVYWWBAA.js} +556 -26
- package/dist/chunks/state-MVYWWBAA.js.map +6 -0
- package/dist/chunks/{store-N4CURUP2.js → store-4PPSKMYT.js} +3 -3
- package/dist/chunks/{store-5QOUJL3S.js → store-5K5HIPUT.js} +12 -13
- package/dist/chunks/{store-LIG46NWV.js → store-6WG6CRWK.js} +4 -4
- package/dist/chunks/{store-VRWL26C2.js → store-UPAOLS5B.js} +8 -8
- package/dist/chunks/{tui-KFWUIY7N.js → tui-MRMMX2TV.js} +99 -87
- package/dist/chunks/tui-MRMMX2TV.js.map +6 -0
- package/dist/chunks/{upgrade-BIHZ3JJV.js → update-RMHLR4LI.js} +35 -35
- package/dist/chunks/{upgrade-BIHZ3JJV.js.map → update-RMHLR4LI.js.map} +2 -2
- package/dist/chunks/{watch-OUI2U5YK.js → watch-3QQJ4XHX.js} +93 -89
- package/dist/chunks/watch-3QQJ4XHX.js.map +6 -0
- package/dist/chunks/{workspaces-CB5DV4KR.js → workspaces-HEA2VNIH.js} +15 -20
- package/dist/chunks/workspaces-HEA2VNIH.js.map +6 -0
- package/dist/chunks/{worktree-PNG7MZV3.js → worktree-NAVT42R4.js} +26 -23
- package/dist/chunks/worktree-NAVT42R4.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-provider-retry.d.ts +2 -1
- package/dist/commands/acp-provider-retry.d.ts.map +1 -1
- package/dist/commands/acp.d.ts +18 -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 +3 -3
- package/dist/commands/desktop-host.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 +48 -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/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.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/hooks-report.d.ts +3 -1
- package/dist/config/hooks-report.d.ts.map +1 -1
- package/dist/config/load.d.ts +37 -0
- package/dist/config/load.d.ts.map +1 -1
- package/dist/config/schema.d.ts +2 -2
- package/dist/context/doctrine.d.ts.map +1 -1
- package/dist/context/environment.d.ts +6 -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/index.js +39 -39
- 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/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 +6 -0
- 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/controller.d.ts.map +1 -1
- package/dist/integrations/network/format.d.ts.map +1 -1
- package/dist/integrations/network/runtime.d.ts +7 -0
- package/dist/integrations/network/runtime.d.ts.map +1 -1
- package/dist/integrations/network/types.d.ts +2 -0
- 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/providers/connections.d.ts +1 -1
- package/dist/integrations/providers/connections.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 +1 -1
- package/dist/integrations/subagents/agent-names.d.ts +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 +8 -1
- 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/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/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/fire/fire.d.ts +1 -1
- package/dist/schedule/fire/fire.d.ts.map +1 -1
- package/dist/tui/AgentExplorer.d.ts +9 -21
- package/dist/tui/AgentExplorer.d.ts.map +1 -1
- package/dist/tui/App.d.ts.map +1 -1
- package/dist/tui/Composer.d.ts +1 -7
- package/dist/tui/Composer.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/StatusBar.d.ts +8 -1
- package/dist/tui/StatusBar.d.ts.map +1 -1
- package/dist/tui/agent-calls.d.ts.map +1 -1
- package/dist/tui/agent.d.ts +54 -6
- package/dist/tui/agent.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/fullscreen/FullscreenTranscript.d.ts +3 -2
- package/dist/tui/fullscreen/FullscreenTranscript.d.ts.map +1 -1
- 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/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/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/tidy-tool-output.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 +7 -1
- 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/package.json +7 -7
- package/skills/document/SKILL.md +22 -11
- package/skills/verify-change/SKILL.md +2 -1
- 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/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-3ZHOM2L7.js.map +0 -6
- package/dist/chunks/chunk-4DNEDLBT.js.map +0 -6
- package/dist/chunks/chunk-6CI5CHBT.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-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-JCH7IWMU.js.map +0 -6
- package/dist/chunks/chunk-MY6JV4BT.js.map +0 -6
- package/dist/chunks/chunk-PPCKNQOQ.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/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.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/store-VRWL26C2.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/dist/chunks/{agent-FW4VC2AF.js.map → agent-MSSMOEBP.js.map} +0 -0
- /package/dist/chunks/{agent-session-2YJCVWPX.js.map → agent-session-VCB6HX3E.js.map} +0 -0
- /package/dist/chunks/{bin-main-RH4NLAPK.js.map → bin-main-2E6XD7MQ.js.map} +0 -0
- /package/dist/chunks/{binding-ON644UJ3.js.map → binding-NAPEU62B.js.map} +0 -0
- /package/dist/chunks/{chunk-S7YXINNY.js.map → chunk-27ICMJVV.js.map} +0 -0
- /package/dist/chunks/{chunk-NP4BQ7SB.js.map → chunk-2D5WW5KP.js.map} +0 -0
- /package/dist/chunks/{chunk-D5N3SDNF.js.map → chunk-2J2Z6S3V.js.map} +0 -0
- /package/dist/chunks/{chunk-Z6LUWKV4.js.map → chunk-2PRVGX6U.js.map} +0 -0
- /package/dist/chunks/{chunk-2ZPB4ZBP.js.map → chunk-32CPPPKX.js.map} +0 -0
- /package/dist/chunks/{chunk-6MGRBXCW.js.map → chunk-3SBROSVS.js.map} +0 -0
- /package/dist/chunks/{chunk-LGVEASS7.js.map → chunk-3ZL6YBMT.js.map} +0 -0
- /package/dist/chunks/{chunk-RYLQH5BB.js.map → chunk-4RCXY7WO.js.map} +0 -0
- /package/dist/chunks/{chunk-ICIVSMA3.js.map → chunk-4YQJ262B.js.map} +0 -0
- /package/dist/chunks/{chunk-DOLGKZC5.js.map → chunk-52DZTN4C.js.map} +0 -0
- /package/dist/chunks/{chunk-LXK7S2I2.js.map → chunk-5COLG33E.js.map} +0 -0
- /package/dist/chunks/{chunk-N4YYJGMW.js.map → chunk-5GI7W4SM.js.map} +0 -0
- /package/dist/chunks/{chunk-M4XYHIA3.js.map → chunk-5NIQMCRF.js.map} +0 -0
- /package/dist/chunks/{chunk-QTQIHFYH.js.map → chunk-5WS5Q2KW.js.map} +0 -0
- /package/dist/chunks/{chunk-SKFBM6OJ.js.map → chunk-66DFXMZG.js.map} +0 -0
- /package/dist/chunks/{chunk-DRKCWJPR.js.map → chunk-6MMKNZYL.js.map} +0 -0
- /package/dist/chunks/{chunk-SHFB4DZP.js.map → chunk-6QQVZXUE.js.map} +0 -0
- /package/dist/chunks/{chunk-GVWDNFIP.js.map → chunk-6RBEIDSC.js.map} +0 -0
- /package/dist/chunks/{chunk-W6UOMYDX.js.map → chunk-6V4VYVRZ.js.map} +0 -0
- /package/dist/chunks/{chunk-5YTGRS7U.js.map → chunk-6ZWEKSAV.js.map} +0 -0
- /package/dist/chunks/{chunk-HIHHTWEU.js.map → chunk-7BSLOLTU.js.map} +0 -0
- /package/dist/chunks/{chunk-3HT7FQNG.js.map → chunk-7BXJPOEG.js.map} +0 -0
- /package/dist/chunks/{chunk-WCAKWRZU.js.map → chunk-7DERK6IR.js.map} +0 -0
- /package/dist/chunks/{chunk-4PFTZNS5.js.map → chunk-7EASTT3H.js.map} +0 -0
- /package/dist/chunks/{chunk-IZYYWNP2.js.map → chunk-7MYLYFIV.js.map} +0 -0
- /package/dist/chunks/{chunk-WDROVY6V.js.map → chunk-7NAHUZAR.js.map} +0 -0
- /package/dist/chunks/{chunk-LGPOJEZK.js.map → chunk-7NQLCFYX.js.map} +0 -0
- /package/dist/chunks/{chunk-6TCZN54R.js.map → chunk-A5O5VTQM.js.map} +0 -0
- /package/dist/chunks/{chunk-ABELB4VO.js.map → chunk-BATWKQWV.js.map} +0 -0
- /package/dist/chunks/{chunk-NOHH27YE.js.map → chunk-CK47DTW6.js.map} +0 -0
- /package/dist/chunks/{chunk-LWAGZIEA.js.map → chunk-CSO7BHDJ.js.map} +0 -0
- /package/dist/chunks/{chunk-GPP4OXHP.js.map → chunk-D42SQGEO.js.map} +0 -0
- /package/dist/chunks/{chunk-J6QCR3SC.js.map → chunk-DIBXZBOP.js.map} +0 -0
- /package/dist/chunks/{chunk-PI5ZZQVH.js.map → chunk-EFWF72V4.js.map} +0 -0
- /package/dist/chunks/{chunk-TBKSDYS4.js.map → chunk-ENNAZGUX.js.map} +0 -0
- /package/dist/chunks/{chunk-6E4TDPXP.js.map → chunk-EOLXS2ZV.js.map} +0 -0
- /package/dist/chunks/{chunk-AF2QPFEQ.js.map → chunk-F6NUMURW.js.map} +0 -0
- /package/dist/chunks/{chunk-OZ55WTNZ.js.map → chunk-FZPIEOFR.js.map} +0 -0
- /package/dist/chunks/{chunk-LDU7AFNZ.js.map → chunk-G7UGGWOR.js.map} +0 -0
- /package/dist/chunks/{chunk-5ZPCQ2HL.js.map → chunk-GLZJBFDO.js.map} +0 -0
- /package/dist/chunks/{chunk-PK7M7VIU.js.map → chunk-HBGRWJU5.js.map} +0 -0
- /package/dist/chunks/{chunk-ZDGKFGVE.js.map → chunk-HICZARAY.js.map} +0 -0
- /package/dist/chunks/{chunk-FSAI4GDZ.js.map → chunk-HONSYTUC.js.map} +0 -0
- /package/dist/chunks/{chunk-GWLUXO4O.js.map → chunk-I5BNXO63.js.map} +0 -0
- /package/dist/chunks/{chunk-BXAUUC2B.js.map → chunk-IH2JBJ6I.js.map} +0 -0
- /package/dist/chunks/{chunk-Y62WSR5N.js.map → chunk-J4GPHTRN.js.map} +0 -0
- /package/dist/chunks/{chunk-VV6DYTFU.js.map → chunk-JFA2XPTW.js.map} +0 -0
- /package/dist/chunks/{chunk-HEFLKPCT.js.map → chunk-JSY23B3Q.js.map} +0 -0
- /package/dist/chunks/{chunk-MMJ6UURB.js.map → chunk-JX6O7Y55.js.map} +0 -0
- /package/dist/chunks/{chunk-KUIATFLN.js.map → chunk-K5VLCRHY.js.map} +0 -0
- /package/dist/chunks/{chunk-RSO4LBHJ.js.map → chunk-KCBOIL5Q.js.map} +0 -0
- /package/dist/chunks/{chunk-7BF4FLOP.js.map → chunk-MJ32RCFZ.js.map} +0 -0
- /package/dist/chunks/{chunk-ZWP5L7BV.js.map → chunk-NBJ4OTXL.js.map} +0 -0
- /package/dist/chunks/{chunk-WSQAVWIV.js.map → chunk-NO3F3QQ3.js.map} +0 -0
- /package/dist/chunks/{chunk-MOMSIAV4.js.map → chunk-NQYOMRPT.js.map} +0 -0
- /package/dist/chunks/{chunk-IMXTM75Q.js.map → chunk-O6C4RETO.js.map} +0 -0
- /package/dist/chunks/{chunk-PYYDU2BC.js.map → chunk-O6EDUJ77.js.map} +0 -0
- /package/dist/chunks/{chunk-UILPXAKQ.js.map → chunk-OD2PMTXS.js.map} +0 -0
- /package/dist/chunks/{chunk-DROVNI2Y.js.map → chunk-OGEOUETU.js.map} +0 -0
- /package/dist/chunks/{chunk-77AYLILT.js.map → chunk-PYTTGYZS.js.map} +0 -0
- /package/dist/chunks/{chunk-PJF46DI6.js.map → chunk-RR7FS6SQ.js.map} +0 -0
- /package/dist/chunks/{chunk-233CEYFX.js.map → chunk-RTMX7IDM.js.map} +0 -0
- /package/dist/chunks/{chunk-4E2REC5O.js.map → chunk-S4OEUN6F.js.map} +0 -0
- /package/dist/chunks/{chunk-763RT6Z5.js.map → chunk-SEVORRUA.js.map} +0 -0
- /package/dist/chunks/{chunk-JDWCVWIQ.js.map → chunk-TAIC3PC2.js.map} +0 -0
- /package/dist/chunks/{chunk-SM6UI33D.js.map → chunk-TGLXWW5B.js.map} +0 -0
- /package/dist/chunks/{chunk-CKYGPQVJ.js.map → chunk-TJAUF5NX.js.map} +0 -0
- /package/dist/chunks/{chunk-DT6PTS6H.js.map → chunk-TSU4F6DF.js.map} +0 -0
- /package/dist/chunks/{chunk-6BTNPDXR.js.map → chunk-TXMWKHYW.js.map} +0 -0
- /package/dist/chunks/{chunk-HENM67TJ.js.map → chunk-UBGDYBSQ.js.map} +0 -0
- /package/dist/chunks/{chunk-FEP2R3XI.js.map → chunk-ULFR2FWA.js.map} +0 -0
- /package/dist/chunks/{chunk-DGV6YSAW.js.map → chunk-UMPJ4VXN.js.map} +0 -0
- /package/dist/chunks/{chunk-M5LA652U.js.map → chunk-URZPVSHV.js.map} +0 -0
- /package/dist/chunks/{chunk-5C6XCI24.js.map → chunk-UXLQNJDR.js.map} +0 -0
- /package/dist/chunks/{chunk-3Z5OXTDI.js.map → chunk-WEPINZBQ.js.map} +0 -0
- /package/dist/chunks/{chunk-NV7RJBWA.js.map → chunk-XWP64X6U.js.map} +0 -0
- /package/dist/chunks/{chunk-RP5HOVOW.js.map → chunk-Y3NC6RIL.js.map} +0 -0
- /package/dist/chunks/{commands-R6WIMNZG.js.map → commands-VWBRELWZ.js.map} +0 -0
- /package/dist/chunks/{cost-MVUQ3UWP.js.map → cost-IVLAFD5T.js.map} +0 -0
- /package/dist/chunks/{crash-report-ASOVDFQT.js.map → crash-report-CA3Y7LA6.js.map} +0 -0
- /package/dist/chunks/{dist-UTQTSM32.js.map → dist-3SGAVJFN.js.map} +0 -0
- /package/dist/chunks/{dist-6BE2BTVP.js.map → dist-7BSYEFE5.js.map} +0 -0
- /package/dist/chunks/{dist-ZPPSUKEG.js.map → dist-AM6FWCIJ.js.map} +0 -0
- /package/dist/chunks/{dist-IYSARJ7B.js.map → dist-ISRJEZRF.js.map} +0 -0
- /package/dist/chunks/{dist-ERFNYYTR.js.map → dist-PBFZXU4L.js.map} +0 -0
- /package/dist/chunks/{dist-DOHBDUFC.js.map → dist-RDXEBTCL.js.map} +0 -0
- /package/dist/chunks/{dist-SQYPEQ4A.js.map → dist-V43PPTPF.js.map} +0 -0
- /package/dist/chunks/{doctor-J2BRJDVI.js.map → doctor-FGOCO7UR.js.map} +0 -0
- /package/dist/chunks/{drain-TGBUG6MO.js.map → drain-A3DLR5A4.js.map} +0 -0
- /package/dist/chunks/{entry-7QM6GODJ.js.map → entry-4LHTI3VQ.js.map} +0 -0
- /package/dist/chunks/{extension-Y52E4FZR.js.map → extension-BP7Q3PFK.js.map} +0 -0
- /package/dist/chunks/{home-OGOBLYWY.js.map → home-GR6YDAAE.js.map} +0 -0
- /package/dist/chunks/{hooks-C6WM34FA.js.map → hooks-KSSNBDF2.js.map} +0 -0
- /package/dist/chunks/{hooks-report-FCLN3ERK.js.map → hooks-report-H4JAHJXE.js.map} +0 -0
- /package/dist/chunks/{host-FUPSAICG.js.map → host-ISKJDJ7B.js.map} +0 -0
- /package/dist/chunks/{host-queries-YTND6J2W.js.map → host-queries-CUG75GYD.js.map} +0 -0
- /package/dist/chunks/{installed-list-3Z2UYHZL.js.map → installed-list-GPVOP4E3.js.map} +0 -0
- /package/dist/chunks/{learn-EXNQYLI3.js.map → learn-AFNJQGOU.js.map} +0 -0
- /package/dist/chunks/{learn-builtin-C4ZAVNHA.js.map → learn-builtin-LUD6XO6W.js.map} +0 -0
- /package/dist/chunks/{lifecycle-4ZRBSEP2.js.map → lifecycle-TCRMEVJP.js.map} +0 -0
- /package/dist/chunks/{list-2QV773EI.js.map → list-4OJNF5N2.js.map} +0 -0
- /package/dist/chunks/{live-33QEKVAM.js.map → live-LJ76XHPK.js.map} +0 -0
- /package/dist/chunks/{load-SYMNQIDR.js.map → load-2ERMTCD4.js.map} +0 -0
- /package/dist/chunks/{logs-IW7PYTI2.js.map → logs-DV6GC7PT.js.map} +0 -0
- /package/dist/chunks/{login-KN5KQXOD.js.map → open-3VUS3XWX.js.map} +0 -0
- /package/dist/chunks/{open-3GVSPGUF.js.map → output-schema-2GHHC5ZZ.js.map} +0 -0
- /package/dist/chunks/{output-schema-MKFI5PWR.js.map → peers-SLFOET3O.js.map} +0 -0
- /package/dist/chunks/{peers-CGTVWK6B.js.map → providers-SOFGNZ4F.js.map} +0 -0
- /package/dist/chunks/{providers-Z3KLRJDW.js.map → pty-3T7AE7ZA.js.map} +0 -0
- /package/dist/chunks/{pty-GMA24QAT.js.map → resume-5JACRBQO.js.map} +0 -0
- /package/dist/chunks/{resume-OEUL3DML.js.map → resume-command-H4FOREZO.js.map} +0 -0
- /package/dist/chunks/{resume-command-MXUIVG6T.js.map → running-NONPWC5C.js.map} +0 -0
- /package/dist/chunks/{running-HYMQGZMF.js.map → send-H27WTBLZ.js.map} +0 -0
- /package/dist/chunks/{send-IFZ7XPTF.js.map → send-person-NNGL2U4H.js.map} +0 -0
- /package/dist/chunks/{serve-CZDHGDZL.js.map → serve-4VIDXLEB.js.map} +0 -0
- /package/dist/chunks/{send-person-YV7Y3N7V.js.map → setting-cli-ETVPDSRA.js.map} +0 -0
- /package/dist/chunks/{setting-cli-CJMZHIMQ.js.map → start-check-A5FG7224.js.map} +0 -0
- /package/dist/chunks/{startup-failure-QS7O3M62.js.map → startup-failure-6MZNIJXI.js.map} +0 -0
- /package/dist/chunks/{start-check-MZGEYSQD.js.map → store-4PPSKMYT.js.map} +0 -0
- /package/dist/chunks/{store-5QOUJL3S.js.map → store-5K5HIPUT.js.map} +0 -0
- /package/dist/chunks/{store-LIG46NWV.js.map → store-6WG6CRWK.js.map} +0 -0
- /package/dist/chunks/{store-N4CURUP2.js.map → store-UPAOLS5B.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-5GI7W4SM.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-52DZTN4C.js";
|
|
15
15
|
import {
|
|
16
16
|
decideHeadlessTrust
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-TXMWKHYW.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-2PRVGX6U.js";
|
|
33
|
+
import "./chunk-CK47DTW6.js";
|
|
34
34
|
import "./chunk-6ITTTCLD.js";
|
|
35
35
|
import {
|
|
36
36
|
advertisedPromptModes,
|
|
@@ -40,17 +40,17 @@ import {
|
|
|
40
40
|
outcomeLine,
|
|
41
41
|
sessionOptionsFromConfig,
|
|
42
42
|
turnOptionsFromConfig
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-MX3U5TBQ.js";
|
|
44
44
|
import {
|
|
45
45
|
launchRefusal
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-ULFR2FWA.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-HRKY4ARS.js";
|
|
54
54
|
import {
|
|
55
55
|
FileCheckpointStore,
|
|
56
56
|
IdleCompactor,
|
|
@@ -71,28 +71,31 @@ import {
|
|
|
71
71
|
updateManagedMemory,
|
|
72
72
|
validateComposerSendSettings,
|
|
73
73
|
verifyCredential
|
|
74
|
-
} from "./chunk-
|
|
75
|
-
import "./chunk-
|
|
76
|
-
import "./chunk-
|
|
77
|
-
import "./chunk-
|
|
78
|
-
import "./chunk-
|
|
79
|
-
import "./chunk-
|
|
74
|
+
} from "./chunk-774DAIPO.js";
|
|
75
|
+
import "./chunk-J4GPHTRN.js";
|
|
76
|
+
import "./chunk-URZPVSHV.js";
|
|
77
|
+
import "./chunk-L4LGUBYZ.js";
|
|
78
|
+
import "./chunk-ZDMI3JSL.js";
|
|
79
|
+
import "./chunk-TAIC3PC2.js";
|
|
80
|
+
import "./chunk-JSY23B3Q.js";
|
|
80
81
|
import {
|
|
81
82
|
resolveProgressNudge
|
|
82
|
-
} from "./chunk-
|
|
83
|
-
import "./chunk-
|
|
83
|
+
} from "./chunk-MJJA277Z.js";
|
|
84
|
+
import "./chunk-F6NUMURW.js";
|
|
85
|
+
import "./chunk-XQZMTH3S.js";
|
|
84
86
|
import {
|
|
85
87
|
findProject
|
|
86
|
-
} from "./chunk-
|
|
87
|
-
import "./chunk-
|
|
88
|
-
import "./chunk-
|
|
88
|
+
} from "./chunk-2QJNPJOC.js";
|
|
89
|
+
import "./chunk-I5BNXO63.js";
|
|
90
|
+
import "./chunk-ADLNBLRA.js";
|
|
91
|
+
import "./chunk-DZA7UXA2.js";
|
|
89
92
|
import "./chunk-YOWYTBJS.js";
|
|
90
|
-
import "./chunk-
|
|
93
|
+
import "./chunk-OY3UN3KD.js";
|
|
91
94
|
import "./chunk-NUGPLXVK.js";
|
|
92
|
-
import "./chunk-
|
|
95
|
+
import "./chunk-KCBOIL5Q.js";
|
|
93
96
|
import "./chunk-SD25ASC7.js";
|
|
94
|
-
import "./chunk-
|
|
95
|
-
import "./chunk-
|
|
97
|
+
import "./chunk-JFA2XPTW.js";
|
|
98
|
+
import "./chunk-32CPPPKX.js";
|
|
96
99
|
import {
|
|
97
100
|
cliPalComputerStatus,
|
|
98
101
|
cliPalScreen,
|
|
@@ -105,19 +108,19 @@ import {
|
|
|
105
108
|
startCliPalComputer,
|
|
106
109
|
stopCliPalComputer,
|
|
107
110
|
takeOverCliPalComputer
|
|
108
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-5WS5Q2KW.js";
|
|
109
112
|
import "./chunk-ZWA2JRJV.js";
|
|
110
113
|
import {
|
|
111
114
|
cliPalActivitySubscriptionPolicy,
|
|
112
115
|
cliPalActivitySubscriptionStore,
|
|
113
116
|
cliPalCommunicationPolicy,
|
|
114
117
|
cliPalCommunicationStore
|
|
115
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-O6EDUJ77.js";
|
|
116
119
|
import {
|
|
117
120
|
claimPalConversation,
|
|
118
121
|
listPalConversations,
|
|
119
122
|
palConversationBinding
|
|
120
|
-
} from "./chunk-
|
|
123
|
+
} from "./chunk-UXLQNJDR.js";
|
|
121
124
|
import {
|
|
122
125
|
archiveConversation,
|
|
123
126
|
closeSessions,
|
|
@@ -139,14 +142,13 @@ import {
|
|
|
139
142
|
storedAssistantPhase,
|
|
140
143
|
titlesOf,
|
|
141
144
|
unarchiveConversation
|
|
142
|
-
} from "./chunk-
|
|
143
|
-
import "./chunk-CPDGXVVE.js";
|
|
145
|
+
} from "./chunk-KIWLK2WZ.js";
|
|
144
146
|
import {
|
|
145
147
|
INSTRUCTIONS_FILENAME,
|
|
146
148
|
MAX_BYTES_TO_READ,
|
|
147
149
|
MAX_CHARS_PER_FILE,
|
|
148
150
|
cliProjectRoot
|
|
149
|
-
} from "./chunk-
|
|
151
|
+
} from "./chunk-NFTQDITK.js";
|
|
150
152
|
import {
|
|
151
153
|
cliPalStore,
|
|
152
154
|
createPal,
|
|
@@ -156,15 +158,15 @@ import {
|
|
|
156
158
|
listPals,
|
|
157
159
|
palAtWorkspace,
|
|
158
160
|
updatePal
|
|
159
|
-
} from "./chunk-
|
|
161
|
+
} from "./chunk-UMPJ4VXN.js";
|
|
160
162
|
import {
|
|
161
163
|
buildCostReport
|
|
162
|
-
} from "./chunk-
|
|
163
|
-
import "./chunk-
|
|
164
|
+
} from "./chunk-O6C4RETO.js";
|
|
165
|
+
import "./chunk-HICZARAY.js";
|
|
164
166
|
import "./chunk-LYUY2FK2.js";
|
|
165
167
|
import {
|
|
166
168
|
accountForProvider
|
|
167
|
-
} from "./chunk-
|
|
169
|
+
} from "./chunk-6V4VYVRZ.js";
|
|
168
170
|
import {
|
|
169
171
|
flushCompileCacheWhenIdle
|
|
170
172
|
} from "./chunk-SOIP273Z.js";
|
|
@@ -177,23 +179,23 @@ import {
|
|
|
177
179
|
} from "./chunk-JEW7RLYH.js";
|
|
178
180
|
import {
|
|
179
181
|
warnBroadAllowRules
|
|
180
|
-
} from "./chunk-
|
|
182
|
+
} from "./chunk-7DERK6IR.js";
|
|
181
183
|
import "./chunk-EDOJTQQU.js";
|
|
182
|
-
import "./chunk-
|
|
184
|
+
import "./chunk-OGEOUETU.js";
|
|
183
185
|
import {
|
|
184
186
|
displayPath
|
|
185
|
-
} from "./chunk-
|
|
187
|
+
} from "./chunk-TL535OCL.js";
|
|
186
188
|
import "./chunk-ZKCOQZ3U.js";
|
|
187
189
|
import "./chunk-BBTPD3DU.js";
|
|
188
|
-
import "./chunk-
|
|
190
|
+
import "./chunk-JX6O7Y55.js";
|
|
189
191
|
import "./chunk-GNBMKISG.js";
|
|
190
192
|
import {
|
|
191
193
|
handoffContinuationNote
|
|
192
|
-
} from "./chunk-
|
|
193
|
-
import "./chunk-
|
|
194
|
+
} from "./chunk-WEPINZBQ.js";
|
|
195
|
+
import "./chunk-6ZWEKSAV.js";
|
|
194
196
|
import {
|
|
195
197
|
isPermissionMode
|
|
196
|
-
} from "./chunk-
|
|
198
|
+
} from "./chunk-4YQJ262B.js";
|
|
197
199
|
import "./chunk-P65AXQPL.js";
|
|
198
200
|
import {
|
|
199
201
|
TERMINAL_MARKER,
|
|
@@ -205,18 +207,18 @@ import {
|
|
|
205
207
|
loadHostPty,
|
|
206
208
|
processesCarrying,
|
|
207
209
|
quietConptyHelper
|
|
208
|
-
} from "./chunk-
|
|
210
|
+
} from "./chunk-7NAHUZAR.js";
|
|
209
211
|
import {
|
|
210
212
|
CLI_VERSION
|
|
211
213
|
} from "./chunk-HE7WUOX2.js";
|
|
212
214
|
import "./chunk-OH6TB27S.js";
|
|
213
|
-
import "./chunk-
|
|
214
|
-
import "./chunk-
|
|
215
|
+
import "./chunk-7NQLCFYX.js";
|
|
216
|
+
import "./chunk-HONSYTUC.js";
|
|
215
217
|
import {
|
|
216
218
|
PluginSettingsStore
|
|
217
|
-
} from "./chunk-
|
|
218
|
-
import "./chunk-
|
|
219
|
-
import "./chunk-
|
|
219
|
+
} from "./chunk-66DFXMZG.js";
|
|
220
|
+
import "./chunk-TGLXWW5B.js";
|
|
221
|
+
import "./chunk-NO3F3QQ3.js";
|
|
220
222
|
import {
|
|
221
223
|
automaticKind,
|
|
222
224
|
canSelectModel,
|
|
@@ -226,20 +228,20 @@ import {
|
|
|
226
228
|
removeProviderKey,
|
|
227
229
|
saveProviderKey,
|
|
228
230
|
typedKeyProvider
|
|
229
|
-
} from "./chunk-
|
|
231
|
+
} from "./chunk-TJAUF5NX.js";
|
|
230
232
|
import {
|
|
231
233
|
isOfferableModel
|
|
232
234
|
} from "./chunk-4QIWRKJO.js";
|
|
233
235
|
import "./chunk-KTPFUCRU.js";
|
|
234
236
|
import "./chunk-LPPFJYL6.js";
|
|
235
|
-
import "./chunk-
|
|
236
|
-
import "./chunk-
|
|
237
|
+
import "./chunk-RR7FS6SQ.js";
|
|
238
|
+
import "./chunk-2D5WW5KP.js";
|
|
237
239
|
import {
|
|
238
240
|
isTrusted,
|
|
239
241
|
isTrustedAtStateRoot,
|
|
240
242
|
trustDir,
|
|
241
243
|
untrustDir
|
|
242
|
-
} from "./chunk-
|
|
244
|
+
} from "./chunk-27ICMJVV.js";
|
|
243
245
|
import "./chunk-24V2WEKR.js";
|
|
244
246
|
import {
|
|
245
247
|
systemClock
|
|
@@ -249,11 +251,11 @@ import {
|
|
|
249
251
|
checkSetting,
|
|
250
252
|
readSettings,
|
|
251
253
|
writeSetting
|
|
252
|
-
} from "./chunk-
|
|
254
|
+
} from "./chunk-5COLG33E.js";
|
|
253
255
|
import {
|
|
254
256
|
userConfigPath
|
|
255
|
-
} from "./chunk-
|
|
256
|
-
import "./chunk-
|
|
257
|
+
} from "./chunk-7BXJPOEG.js";
|
|
258
|
+
import "./chunk-S4OEUN6F.js";
|
|
257
259
|
import {
|
|
258
260
|
approveShownMcpServers,
|
|
259
261
|
compileBrowserSites,
|
|
@@ -262,34 +264,34 @@ import {
|
|
|
262
264
|
loadConfig,
|
|
263
265
|
pendingProjectMcpServers,
|
|
264
266
|
withBrowserSiteRules
|
|
265
|
-
} from "./chunk-
|
|
267
|
+
} from "./chunk-ESHAWCBR.js";
|
|
266
268
|
import "./chunk-5WORROIE.js";
|
|
267
269
|
import {
|
|
268
270
|
compilePermissionLayers,
|
|
269
271
|
permissionLayersOf,
|
|
270
272
|
warnLegacyMcpPermissionNames
|
|
271
|
-
} from "./chunk-
|
|
273
|
+
} from "./chunk-655EBPZH.js";
|
|
272
274
|
import "./chunk-WMEZTDLT.js";
|
|
273
275
|
import "./chunk-LCGXWCVU.js";
|
|
274
|
-
import "./chunk-
|
|
276
|
+
import "./chunk-7YC42EXB.js";
|
|
275
277
|
import "./chunk-LVVD32KJ.js";
|
|
276
278
|
import "./chunk-GMUWAUKQ.js";
|
|
277
279
|
import "./chunk-PJ6IEIKJ.js";
|
|
278
280
|
import {
|
|
279
281
|
cliLogger
|
|
280
|
-
} from "./chunk-
|
|
282
|
+
} from "./chunk-7ROZ2N57.js";
|
|
281
283
|
import "./chunk-G6YSAHKC.js";
|
|
282
284
|
import {
|
|
283
285
|
canonicalProjectPath
|
|
284
286
|
} from "./chunk-JORONMD3.js";
|
|
285
287
|
import {
|
|
286
288
|
StateFileUnreadableError
|
|
287
|
-
} from "./chunk-
|
|
288
|
-
import "./chunk-
|
|
289
|
-
import "./chunk-
|
|
289
|
+
} from "./chunk-7MYLYFIV.js";
|
|
290
|
+
import "./chunk-GLZJBFDO.js";
|
|
291
|
+
import "./chunk-IBENEKM4.js";
|
|
290
292
|
import "./chunk-WRPEQ3KP.js";
|
|
291
293
|
import "./chunk-A6RHRNY2.js";
|
|
292
|
-
import "./chunk-
|
|
294
|
+
import "./chunk-K5VLCRHY.js";
|
|
293
295
|
import "./chunk-U5UV2YRE.js";
|
|
294
296
|
import "./chunk-PHW6PWIJ.js";
|
|
295
297
|
import {
|
|
@@ -337,7 +339,7 @@ import {
|
|
|
337
339
|
selectAssistantText,
|
|
338
340
|
turnHolder,
|
|
339
341
|
withSessionChildMarker
|
|
340
|
-
} from "./chunk-
|
|
342
|
+
} from "./chunk-L5FCGDB7.js";
|
|
341
343
|
import {
|
|
342
344
|
__name
|
|
343
345
|
} from "./chunk-76FLAFCG.js";
|
|
@@ -432,9 +434,9 @@ function createLimitsFeed(options) {
|
|
|
432
434
|
if (sources.length === 0) return;
|
|
433
435
|
await Promise.all(sources.map((source) => readOne(source, false)));
|
|
434
436
|
const view = await build();
|
|
435
|
-
const
|
|
436
|
-
if (
|
|
437
|
-
lastSent =
|
|
437
|
+
const text5 = JSON.stringify(view);
|
|
438
|
+
if (text5 === lastSent) return;
|
|
439
|
+
lastSent = text5;
|
|
438
440
|
try {
|
|
439
441
|
options.notify(LIMITS_NOTIFICATION, { ...view });
|
|
440
442
|
} catch {
|
|
@@ -581,12 +583,12 @@ __name(readPluginInventory, "readPluginInventory");
|
|
|
581
583
|
import { randomUUID } from "node:crypto";
|
|
582
584
|
var CLICK_ID = /^[A-Za-z0-9_-]{8,80}$/u;
|
|
583
585
|
function plainFailure(name, error) {
|
|
584
|
-
const
|
|
585
|
-
if (/busy in another conversation/iu.test(
|
|
586
|
+
const text5 = error instanceof Error ? error.message : String(error);
|
|
587
|
+
if (/busy in another conversation/iu.test(text5))
|
|
586
588
|
return `${name} is busy. It will read your message at its next step.`;
|
|
587
|
-
if (/model provider/iu.test(
|
|
589
|
+
if (/model provider/iu.test(text5))
|
|
588
590
|
return `${name} has no model chosen yet. Choose one in ${name}\u2019s settings, then start it again.`;
|
|
589
|
-
if (/refused|explicit go/iu.test(
|
|
591
|
+
if (/refused|explicit go/iu.test(text5))
|
|
590
592
|
return `${name} could not be started: your go was not accepted. Try again.`;
|
|
591
593
|
return `${name} could not be started. Try again in a moment.`;
|
|
592
594
|
}
|
|
@@ -910,11 +912,11 @@ var OutputRing = class {
|
|
|
910
912
|
get end() {
|
|
911
913
|
return this.total;
|
|
912
914
|
}
|
|
913
|
-
append(
|
|
914
|
-
if (
|
|
915
|
-
this.chunks.push({ start: this.total, text:
|
|
916
|
-
this.total +=
|
|
917
|
-
this.retained +=
|
|
915
|
+
append(text5) {
|
|
916
|
+
if (text5.length === 0) return this.total;
|
|
917
|
+
this.chunks.push({ start: this.total, text: text5 });
|
|
918
|
+
this.total += text5.length;
|
|
919
|
+
this.retained += text5.length;
|
|
918
920
|
while (this.retained > this.capacity) {
|
|
919
921
|
const first = this.chunks[0];
|
|
920
922
|
if (!first) break;
|
|
@@ -1113,15 +1115,15 @@ var TerminalManager = class {
|
|
|
1113
1115
|
});
|
|
1114
1116
|
}
|
|
1115
1117
|
flush(terminal) {
|
|
1116
|
-
const
|
|
1117
|
-
if (
|
|
1118
|
+
const text5 = terminal.pending;
|
|
1119
|
+
if (text5 === "") return;
|
|
1118
1120
|
let offset = terminal.pendingStart;
|
|
1119
1121
|
terminal.pending = "";
|
|
1120
|
-
for (let at = 0; at <
|
|
1121
|
-
let end = Math.min(
|
|
1122
|
-
const last =
|
|
1123
|
-
if (end <
|
|
1124
|
-
const data =
|
|
1122
|
+
for (let at = 0; at < text5.length; ) {
|
|
1123
|
+
let end = Math.min(text5.length, at + TERMINAL_LIMITS.maxChunk);
|
|
1124
|
+
const last = text5.charCodeAt(end - 1);
|
|
1125
|
+
if (end < text5.length && last >= 55296 && last <= 56319) end -= 1;
|
|
1126
|
+
const data = text5.slice(at, end);
|
|
1125
1127
|
this.options.emit({ type: "data", params: { terminalId: terminal.id, offset, data } });
|
|
1126
1128
|
offset += data.length;
|
|
1127
1129
|
at = end;
|
|
@@ -1452,6 +1454,209 @@ function createTerminalHost(options) {
|
|
|
1452
1454
|
}
|
|
1453
1455
|
__name(createTerminalHost, "createTerminalHost");
|
|
1454
1456
|
|
|
1457
|
+
// src/commands/acp-browser-pane.ts
|
|
1458
|
+
var BROWSER_PANE_CAPABILITY = "namzu/browser-pane";
|
|
1459
|
+
var BROWSER_PANE_METHODS = {
|
|
1460
|
+
open: "namzu/browser/pane/open",
|
|
1461
|
+
cdp: "namzu/browser/pane/cdp",
|
|
1462
|
+
close: "namzu/browser/pane/close",
|
|
1463
|
+
event: "namzu/browser/pane/event",
|
|
1464
|
+
state: "namzu/browser/pane/state"
|
|
1465
|
+
};
|
|
1466
|
+
var BROWSER_PANE_SERVED_METHODS = [
|
|
1467
|
+
BROWSER_PANE_METHODS.event,
|
|
1468
|
+
BROWSER_PANE_METHODS.state
|
|
1469
|
+
];
|
|
1470
|
+
var text3 = /* @__PURE__ */ __name((value) => typeof value === "string" && value !== "" && value.length <= 400 ? value : void 0, "text");
|
|
1471
|
+
function object(value) {
|
|
1472
|
+
return value && typeof value === "object" && !Array.isArray(value) ? value : void 0;
|
|
1473
|
+
}
|
|
1474
|
+
__name(object, "object");
|
|
1475
|
+
function createAcpPaneLink(connection) {
|
|
1476
|
+
const channels = /* @__PURE__ */ new Set();
|
|
1477
|
+
let closed;
|
|
1478
|
+
class Channel {
|
|
1479
|
+
constructor(sessionId, rules) {
|
|
1480
|
+
this.sessionId = sessionId;
|
|
1481
|
+
this.rules = rules;
|
|
1482
|
+
}
|
|
1483
|
+
sessionId;
|
|
1484
|
+
rules;
|
|
1485
|
+
static {
|
|
1486
|
+
__name(this, "Channel");
|
|
1487
|
+
}
|
|
1488
|
+
events = /* @__PURE__ */ new Set();
|
|
1489
|
+
added = /* @__PURE__ */ new Set();
|
|
1490
|
+
gone = /* @__PURE__ */ new Set();
|
|
1491
|
+
closes = /* @__PURE__ */ new Set();
|
|
1492
|
+
opened;
|
|
1493
|
+
primary;
|
|
1494
|
+
tabs = /* @__PURE__ */ new Set();
|
|
1495
|
+
holder = "agent";
|
|
1496
|
+
done = false;
|
|
1497
|
+
control() {
|
|
1498
|
+
return this.holder;
|
|
1499
|
+
}
|
|
1500
|
+
ask(method, params) {
|
|
1501
|
+
if (this.done || closed !== void 0)
|
|
1502
|
+
return Promise.reject(new Error("The Browser pane is not connected."));
|
|
1503
|
+
channels.add(this);
|
|
1504
|
+
return connection.ask(method, { sessionId: this.sessionId, ...params });
|
|
1505
|
+
}
|
|
1506
|
+
listTabs() {
|
|
1507
|
+
this.opened ??= this.ask(BROWSER_PANE_METHODS.open, {
|
|
1508
|
+
...this.rules !== void 0 ? { rules: this.rules } : {}
|
|
1509
|
+
}).then((reply) => {
|
|
1510
|
+
const tabId = text3(object(reply)?.tabId);
|
|
1511
|
+
if (!tabId) throw new Error("The Browser pane did not name the tab it opened.");
|
|
1512
|
+
this.primary = tabId;
|
|
1513
|
+
this.tabs.add(tabId);
|
|
1514
|
+
return [{ tabId }];
|
|
1515
|
+
});
|
|
1516
|
+
return this.opened.then(() => [...this.tabs].map((tabId) => ({ tabId })));
|
|
1517
|
+
}
|
|
1518
|
+
async cdp(tabId, method, params, sessionId) {
|
|
1519
|
+
const reply = await this.ask(BROWSER_PANE_METHODS.cdp, {
|
|
1520
|
+
tabId,
|
|
1521
|
+
method,
|
|
1522
|
+
...params !== void 0 ? { params } : {},
|
|
1523
|
+
...sessionId !== void 0 ? { cdpSessionId: sessionId } : {}
|
|
1524
|
+
});
|
|
1525
|
+
const answer = object(reply);
|
|
1526
|
+
return answer && "result" in answer ? answer.result : reply;
|
|
1527
|
+
}
|
|
1528
|
+
onEvent(listener) {
|
|
1529
|
+
this.events.add(listener);
|
|
1530
|
+
return () => this.events.delete(listener);
|
|
1531
|
+
}
|
|
1532
|
+
onTabAdded(listener) {
|
|
1533
|
+
this.added.add(listener);
|
|
1534
|
+
return () => this.added.delete(listener);
|
|
1535
|
+
}
|
|
1536
|
+
onTabClosed(listener) {
|
|
1537
|
+
this.gone.add(listener);
|
|
1538
|
+
return () => this.gone.delete(listener);
|
|
1539
|
+
}
|
|
1540
|
+
onClose(listener) {
|
|
1541
|
+
this.closes.add(listener);
|
|
1542
|
+
return () => this.closes.delete(listener);
|
|
1543
|
+
}
|
|
1544
|
+
// The first tab stays: it is the one the conversation always has, and the host has nowhere
|
|
1545
|
+
// to go if it is closed. A tab a page opened can be closed.
|
|
1546
|
+
async closeTab(tabId) {
|
|
1547
|
+
if (tabId === this.primary)
|
|
1548
|
+
throw new Error(
|
|
1549
|
+
"The Browser pane keeps this conversation\u2019s first tab open. Open another address in it instead."
|
|
1550
|
+
);
|
|
1551
|
+
await this.ask(BROWSER_PANE_METHODS.close, { tabId });
|
|
1552
|
+
this.forget(tabId);
|
|
1553
|
+
}
|
|
1554
|
+
async close() {
|
|
1555
|
+
if (this.done) return;
|
|
1556
|
+
const wasOpen = this.opened !== void 0 && closed === void 0;
|
|
1557
|
+
this.done = true;
|
|
1558
|
+
channels.delete(this);
|
|
1559
|
+
if (wasOpen)
|
|
1560
|
+
await connection.ask(BROWSER_PANE_METHODS.close, {
|
|
1561
|
+
sessionId: this.sessionId,
|
|
1562
|
+
release: true
|
|
1563
|
+
}).catch(() => void 0);
|
|
1564
|
+
}
|
|
1565
|
+
// ---- What the application says ----------------------------------------------------------
|
|
1566
|
+
forget(tabId) {
|
|
1567
|
+
if (!this.tabs.delete(tabId)) return;
|
|
1568
|
+
for (const listener of [...this.gone]) listener(tabId);
|
|
1569
|
+
}
|
|
1570
|
+
receive(body) {
|
|
1571
|
+
if (this.done) return;
|
|
1572
|
+
const tabId = text3(body.tabId);
|
|
1573
|
+
if (!tabId) return;
|
|
1574
|
+
switch (body.kind) {
|
|
1575
|
+
case "cdp": {
|
|
1576
|
+
const method = text3(body.method);
|
|
1577
|
+
if (!method) return;
|
|
1578
|
+
const sessionId = text3(body.cdpSessionId);
|
|
1579
|
+
const event = {
|
|
1580
|
+
tabId,
|
|
1581
|
+
method,
|
|
1582
|
+
...body.params !== void 0 ? { params: body.params } : {},
|
|
1583
|
+
...sessionId ? { sessionId } : {}
|
|
1584
|
+
};
|
|
1585
|
+
for (const listener of [...this.events]) listener(event);
|
|
1586
|
+
return;
|
|
1587
|
+
}
|
|
1588
|
+
case "tab-added":
|
|
1589
|
+
if (this.tabs.has(tabId)) return;
|
|
1590
|
+
this.tabs.add(tabId);
|
|
1591
|
+
for (const listener of [...this.added]) listener({ tabId });
|
|
1592
|
+
return;
|
|
1593
|
+
case "tab-closed":
|
|
1594
|
+
case "detached":
|
|
1595
|
+
this.forget(tabId);
|
|
1596
|
+
}
|
|
1597
|
+
}
|
|
1598
|
+
setControl(state) {
|
|
1599
|
+
this.holder = state;
|
|
1600
|
+
}
|
|
1601
|
+
fail(reason) {
|
|
1602
|
+
if (this.done) return;
|
|
1603
|
+
this.done = true;
|
|
1604
|
+
channels.delete(this);
|
|
1605
|
+
for (const listener of [...this.closes]) listener(reason);
|
|
1606
|
+
}
|
|
1607
|
+
}
|
|
1608
|
+
const forSession = /* @__PURE__ */ __name((params) => {
|
|
1609
|
+
const id2 = text3(params.sessionId);
|
|
1610
|
+
return id2 ? [...channels].filter((channel) => channel.sessionId === id2) : [];
|
|
1611
|
+
}, "forSession");
|
|
1612
|
+
return {
|
|
1613
|
+
available: /* @__PURE__ */ __name(() => closed === void 0 && connection.offers(BROWSER_PANE_CAPABILITY), "available"),
|
|
1614
|
+
channel: /* @__PURE__ */ __name((sessionId, rules) => new Channel(sessionId, rules), "channel"),
|
|
1615
|
+
extensions: {
|
|
1616
|
+
[BROWSER_PANE_METHODS.event]: (params) => {
|
|
1617
|
+
for (const channel of forSession(params)) channel.receive(params);
|
|
1618
|
+
return null;
|
|
1619
|
+
},
|
|
1620
|
+
[BROWSER_PANE_METHODS.state]: (params) => {
|
|
1621
|
+
const state = params.state === "person" ? "person" : params.state === "agent" ? "agent" : void 0;
|
|
1622
|
+
if (state) for (const channel of forSession(params)) channel.setControl(state);
|
|
1623
|
+
return null;
|
|
1624
|
+
}
|
|
1625
|
+
},
|
|
1626
|
+
close: /* @__PURE__ */ __name((reason) => {
|
|
1627
|
+
if (closed !== void 0) return;
|
|
1628
|
+
closed = reason ?? "The connection to the app closed.";
|
|
1629
|
+
for (const channel of [...channels]) channel.fail(closed);
|
|
1630
|
+
}, "close")
|
|
1631
|
+
};
|
|
1632
|
+
}
|
|
1633
|
+
__name(createAcpPaneLink, "createAcpPaneLink");
|
|
1634
|
+
function hostOfKey(key) {
|
|
1635
|
+
const match = /^https?:\/\/((?:\*\.)?[^:/]+)(?::(?:\*|\d+))?$/.exec(key);
|
|
1636
|
+
return match?.[1]?.toLowerCase();
|
|
1637
|
+
}
|
|
1638
|
+
__name(hostOfKey, "hostOfKey");
|
|
1639
|
+
function paneSiteRules(sites) {
|
|
1640
|
+
const deny = /* @__PURE__ */ new Set();
|
|
1641
|
+
const allow = /* @__PURE__ */ new Set();
|
|
1642
|
+
let defaultLevel = "ask";
|
|
1643
|
+
for (const [key, level] of Object.entries(sites)) {
|
|
1644
|
+
if (key === "*") {
|
|
1645
|
+
defaultLevel = level;
|
|
1646
|
+
continue;
|
|
1647
|
+
}
|
|
1648
|
+
const host = hostOfKey(key);
|
|
1649
|
+
if (!host) return void 0;
|
|
1650
|
+
if (level === "deny") deny.add(host);
|
|
1651
|
+
else allow.add(host);
|
|
1652
|
+
}
|
|
1653
|
+
if (defaultLevel === "deny") {
|
|
1654
|
+
return allow.size > 0 ? { allow: [...allow], ...deny.size ? { deny: [...deny] } : {} } : { deny: ["*"] };
|
|
1655
|
+
}
|
|
1656
|
+
return deny.size > 0 ? { deny: [...deny] } : {};
|
|
1657
|
+
}
|
|
1658
|
+
__name(paneSiteRules, "paneSiteRules");
|
|
1659
|
+
|
|
1455
1660
|
// src/commands/acp-desktop-question.ts
|
|
1456
1661
|
import { randomUUID as randomUUID3 } from "node:crypto";
|
|
1457
1662
|
var QUESTION_NOTIFICATION = "namzu/session/question";
|
|
@@ -1602,10 +1807,10 @@ function claudeJson(value) {
|
|
|
1602
1807
|
if (typeof item === "number" && Number.isFinite(item)) return item;
|
|
1603
1808
|
if (typeof item === "string" && item.length <= 1e6) return item;
|
|
1604
1809
|
if (Array.isArray(item)) return Object.freeze(item.map((part) => copy(part, depth + 1)));
|
|
1605
|
-
const
|
|
1606
|
-
if (
|
|
1810
|
+
const object2 = claudeRecord(item);
|
|
1811
|
+
if (object2) {
|
|
1607
1812
|
const result2 = Object.fromEntries(
|
|
1608
|
-
Object.entries(
|
|
1813
|
+
Object.entries(object2).map(([key, part]) => {
|
|
1609
1814
|
if (key.length > 4096) throw new Error("The native tool input is too large.");
|
|
1610
1815
|
return [key, copy(part, depth + 1)];
|
|
1611
1816
|
})
|
|
@@ -1795,9 +2000,9 @@ var ClaudeTurnProjection = class {
|
|
|
1795
2000
|
});
|
|
1796
2001
|
}
|
|
1797
2002
|
text(message) {
|
|
1798
|
-
const
|
|
1799
|
-
if (
|
|
1800
|
-
return
|
|
2003
|
+
const text5 = [...message.blocks.entries()].sort(([left], [right]) => left - right).filter(([, block]) => block.type === "text").map(([, block]) => block.text).join("");
|
|
2004
|
+
if (text5.length > 1e6) throw new Error("The native message is too large.");
|
|
2005
|
+
return text5;
|
|
1801
2006
|
}
|
|
1802
2007
|
reasoning(message, index, block) {
|
|
1803
2008
|
if (block.reasoningCompleted) return;
|
|
@@ -2211,8 +2416,8 @@ function startHarnessProcess(command, options) {
|
|
|
2211
2416
|
fail(error instanceof Error ? error : new Error("Harness frame handling failed."));
|
|
2212
2417
|
});
|
|
2213
2418
|
}, "frame");
|
|
2214
|
-
const consume = /* @__PURE__ */ __name((
|
|
2215
|
-
buffer +=
|
|
2419
|
+
const consume = /* @__PURE__ */ __name((text5) => {
|
|
2420
|
+
buffer += text5;
|
|
2216
2421
|
let newline = buffer.indexOf("\n");
|
|
2217
2422
|
while (newline !== -1) {
|
|
2218
2423
|
const line = buffer.slice(0, newline);
|
|
@@ -3001,26 +3206,26 @@ function codexItemEvents(turn, raw, completed) {
|
|
|
3001
3206
|
const identity = { ...turn, nativeItemId };
|
|
3002
3207
|
if (item.type === "agentMessage") {
|
|
3003
3208
|
if (!completed) return [{ ...identity, kind: "message-started" }];
|
|
3004
|
-
const
|
|
3209
|
+
const text5 = typeof item.text === "string" ? item.text : "";
|
|
3005
3210
|
const phase = item.phase === "commentary" || item.phase === "final_answer" ? item.phase : void 0;
|
|
3006
3211
|
return [
|
|
3007
3212
|
{
|
|
3008
3213
|
...identity,
|
|
3009
3214
|
kind: "message-completed",
|
|
3010
|
-
content:
|
|
3011
|
-
parts: [{ id: nativeItemId, text:
|
|
3215
|
+
content: text5,
|
|
3216
|
+
parts: [{ id: nativeItemId, text: text5, phase }],
|
|
3012
3217
|
stopReason: "end_turn"
|
|
3013
3218
|
}
|
|
3014
3219
|
];
|
|
3015
3220
|
}
|
|
3016
3221
|
if (item.type === "reasoning") {
|
|
3017
3222
|
const summary = Array.isArray(item.summary) ? item.summary.filter((part) => typeof part === "string") : [];
|
|
3018
|
-
return (summary.length ? summary : [""]).map((
|
|
3223
|
+
return (summary.length ? summary : [""]).map((text5, index) => ({
|
|
3019
3224
|
...identity,
|
|
3020
3225
|
kind: "reasoning",
|
|
3021
3226
|
blockId: `${nativeItemId}:${index}`,
|
|
3022
3227
|
status: completed ? "completed" : "pending",
|
|
3023
|
-
...
|
|
3228
|
+
...text5 ? { text: text5 } : {}
|
|
3024
3229
|
}));
|
|
3025
3230
|
}
|
|
3026
3231
|
let name;
|
|
@@ -3431,15 +3636,15 @@ var CodexConnection = class {
|
|
|
3431
3636
|
const nativeItemId = codexString(params.itemId);
|
|
3432
3637
|
if (nativeItemId && typeof params.delta === "string") {
|
|
3433
3638
|
const blockId = `${nativeItemId}:${String(params.summaryIndex ?? 0)}`;
|
|
3434
|
-
const
|
|
3435
|
-
this.reasoning.set(blockId,
|
|
3639
|
+
const text5 = (this.reasoning.get(blockId) ?? "") + params.delta;
|
|
3640
|
+
this.reasoning.set(blockId, text5);
|
|
3436
3641
|
await this.emit({
|
|
3437
3642
|
...turn,
|
|
3438
3643
|
nativeItemId,
|
|
3439
3644
|
kind: "reasoning",
|
|
3440
3645
|
blockId,
|
|
3441
3646
|
status: "pending",
|
|
3442
|
-
text:
|
|
3647
|
+
text: text5
|
|
3443
3648
|
});
|
|
3444
3649
|
}
|
|
3445
3650
|
} else if (method === "item/commandExecution/outputDelta" || method === "item/fileChange/outputDelta") {
|
|
@@ -4803,12 +5008,12 @@ function plainCommitMessage(files) {
|
|
|
4803
5008
|
__name(plainCommitMessage, "plainCommitMessage");
|
|
4804
5009
|
function cleanCommitMessage(reply) {
|
|
4805
5010
|
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
|
|
5011
|
+
let text5 = reply.trim();
|
|
5012
|
+
const fenced = /^```[a-z]*\s*([\s\S]*?)\s*```$/iu.exec(text5);
|
|
5013
|
+
if (fenced?.[1] !== void 0) text5 = fenced[1].trim();
|
|
5014
|
+
text5 = text5.replace(/[\u0000-\u0008\u000b\u000c\u000e-\u001f\u007f]/gu, "").replace(/^["'`]+|["'`]+$/gu, "").trim();
|
|
5015
|
+
if (text5 === "") return void 0;
|
|
5016
|
+
return text5.slice(0, COMMIT_MESSAGE_MAX);
|
|
4812
5017
|
}
|
|
4813
5018
|
__name(cleanCommitMessage, "cleanCommitMessage");
|
|
4814
5019
|
var IN_PROGRESS = [
|
|
@@ -4828,16 +5033,16 @@ function createProjectCommit(options) {
|
|
|
4828
5033
|
return false;
|
|
4829
5034
|
}
|
|
4830
5035
|
});
|
|
4831
|
-
const
|
|
5036
|
+
const text5 = /* @__PURE__ */ __name(async (args, cwd) => (await git(args, cwd)).stdout, "text");
|
|
4832
5037
|
const inProgress = /* @__PURE__ */ __name(async (cwd) => {
|
|
4833
|
-
const dir = (await
|
|
5038
|
+
const dir = (await text5(["rev-parse", "--absolute-git-dir"], cwd)).trim();
|
|
4834
5039
|
for (const name of IN_PROGRESS)
|
|
4835
5040
|
if (await exists(join5(dir, name)))
|
|
4836
5041
|
return "A merge, rebase, cherry-pick or revert is in progress here. Finish it first.";
|
|
4837
5042
|
return void 0;
|
|
4838
5043
|
}, "inProgress");
|
|
4839
|
-
const fingerprint = /* @__PURE__ */ __name(async (cwd, entry) => entry.state === "deleted" ? "deleted" : (await
|
|
4840
|
-
const changed = /* @__PURE__ */ __name(async (cwd) => parseStatus(await
|
|
5044
|
+
const fingerprint = /* @__PURE__ */ __name(async (cwd, entry) => entry.state === "deleted" ? "deleted" : (await text5(["hash-object", "--", entry.path], cwd)).trim(), "fingerprint");
|
|
5045
|
+
const changed = /* @__PURE__ */ __name(async (cwd) => parseStatus(await text5(["status", "--porcelain=v1", "-z", "--untracked-files=all"], cwd)), "changed");
|
|
4841
5046
|
return {
|
|
4842
5047
|
async preview(cwd, sessionPaths, sessionId) {
|
|
4843
5048
|
const empty = /* @__PURE__ */ __name((blocker2) => ({
|
|
@@ -4853,7 +5058,7 @@ function createProjectCommit(options) {
|
|
|
4853
5058
|
if (!options.isTrusted(cwd)) return empty("Trust this folder to commit in it.");
|
|
4854
5059
|
let status;
|
|
4855
5060
|
try {
|
|
4856
|
-
await
|
|
5061
|
+
await text5(["rev-parse", "--git-dir"], cwd);
|
|
4857
5062
|
status = await changed(cwd);
|
|
4858
5063
|
} catch {
|
|
4859
5064
|
return empty("Commit needs a Git repository.");
|
|
@@ -4869,7 +5074,7 @@ function createProjectCommit(options) {
|
|
|
4869
5074
|
let branch = null;
|
|
4870
5075
|
let detached = false;
|
|
4871
5076
|
try {
|
|
4872
|
-
branch = (await
|
|
5077
|
+
branch = (await text5(["symbolic-ref", "--short", "-q", "HEAD"], cwd)).trim() || null;
|
|
4873
5078
|
} catch {
|
|
4874
5079
|
detached = true;
|
|
4875
5080
|
}
|
|
@@ -4943,8 +5148,8 @@ function createProjectCommit(options) {
|
|
|
4943
5148
|
const output = failure.output;
|
|
4944
5149
|
throw new CommitRefused(output ? output.slice(0, 2e3) : "Git could not make the commit.");
|
|
4945
5150
|
}
|
|
4946
|
-
const hash = (await
|
|
4947
|
-
const subject = (await
|
|
5151
|
+
const hash = (await text5(["rev-parse", "--short", "HEAD"], cwd)).trim();
|
|
5152
|
+
const subject = (await text5(["log", "-1", "--format=%s"], cwd)).trim();
|
|
4948
5153
|
return { hash, subject };
|
|
4949
5154
|
}
|
|
4950
5155
|
};
|
|
@@ -5124,8 +5329,8 @@ var ONE_LINE = /[\r\n\t]+/g;
|
|
|
5124
5329
|
var clip = /* @__PURE__ */ __name((value, max) => value.replace(ONE_LINE, " ").trim().slice(0, max), "clip");
|
|
5125
5330
|
function detailOf(name, spec) {
|
|
5126
5331
|
const summary = summarizeUserMcpServer({ name, spec });
|
|
5127
|
-
const
|
|
5128
|
-
return
|
|
5332
|
+
const text5 = summary.transport === "http" ? summary.endpoint : summary.command;
|
|
5333
|
+
return text5 ? clip(text5, 200) : void 0;
|
|
5129
5334
|
}
|
|
5130
5335
|
__name(detailOf, "detailOf");
|
|
5131
5336
|
function listMcpServers(options) {
|
|
@@ -5670,8 +5875,8 @@ function palPublicAssistantText(message) {
|
|
|
5670
5875
|
return content.trim() ? content : void 0;
|
|
5671
5876
|
const delivered = message.textParts.filter((part) => part.phase !== "commentary");
|
|
5672
5877
|
if (!delivered.length) return void 0;
|
|
5673
|
-
const
|
|
5674
|
-
return
|
|
5878
|
+
const text5 = selectAssistantText(delivered);
|
|
5879
|
+
return text5.trim() ? text5 : void 0;
|
|
5675
5880
|
}
|
|
5676
5881
|
__name(palPublicAssistantText, "palPublicAssistantText");
|
|
5677
5882
|
|
|
@@ -5868,11 +6073,11 @@ function parseNameStatus(data, truncated = false) {
|
|
|
5868
6073
|
return out;
|
|
5869
6074
|
}
|
|
5870
6075
|
__name(parseNameStatus, "parseNameStatus");
|
|
5871
|
-
function countLines(
|
|
5872
|
-
if (
|
|
6076
|
+
function countLines(text5) {
|
|
6077
|
+
if (text5.length === 0) return 0;
|
|
5873
6078
|
let count = 0;
|
|
5874
|
-
for (let index =
|
|
5875
|
-
return
|
|
6079
|
+
for (let index = text5.indexOf("\n"); index !== -1; index = text5.indexOf("\n", index + 1)) count++;
|
|
6080
|
+
return text5.endsWith("\n") ? count : count + 1;
|
|
5876
6081
|
}
|
|
5877
6082
|
__name(countLines, "countLines");
|
|
5878
6083
|
var decoder = new TextDecoder("utf-8", { fatal: true, ignoreBOM: true });
|
|
@@ -6049,10 +6254,10 @@ function createProjectChanges(options = {}) {
|
|
|
6049
6254
|
const sides = [head.bytes, after].map((bytes) => bytes === null ? null : decodeText(bytes));
|
|
6050
6255
|
if (sides.some((side) => side !== null && "binary" in side))
|
|
6051
6256
|
return { before: null, after: null, binary: true, truncated: false };
|
|
6052
|
-
const
|
|
6257
|
+
const text5 = /* @__PURE__ */ __name((side) => side && "text" in side ? side.text : null, "text");
|
|
6053
6258
|
return {
|
|
6054
|
-
before:
|
|
6055
|
-
after:
|
|
6259
|
+
before: text5(sides[0]),
|
|
6260
|
+
after: text5(sides[1]),
|
|
6056
6261
|
binary: false,
|
|
6057
6262
|
truncated: false
|
|
6058
6263
|
};
|
|
@@ -6079,7 +6284,7 @@ var MEMORY_TEXT_MAX = 8e3;
|
|
|
6079
6284
|
var MEMORY_TITLE_MAX = 120;
|
|
6080
6285
|
var MEMORY_SUMMARY_MAX = 240;
|
|
6081
6286
|
var EXCERPT_MAX = 400;
|
|
6082
|
-
var revisionOf = /* @__PURE__ */ __name((
|
|
6287
|
+
var revisionOf = /* @__PURE__ */ __name((text5) => createHash3("sha256").update(text5).digest("hex"), "revisionOf");
|
|
6083
6288
|
function instructionsPath() {
|
|
6084
6289
|
return join7(resolveNamzuHome(), INSTRUCTIONS_FILENAME);
|
|
6085
6290
|
}
|
|
@@ -6094,15 +6299,15 @@ function readStandingInstructions() {
|
|
|
6094
6299
|
}
|
|
6095
6300
|
if (!stat6.isFile() || stat6.size > MAX_BYTES_TO_READ)
|
|
6096
6301
|
return { text: "", limit: MAX_CHARS_PER_FILE, revision: revisionOf(""), locked: true };
|
|
6097
|
-
const
|
|
6098
|
-
return { text:
|
|
6302
|
+
const text5 = readFileSync(file, "utf8");
|
|
6303
|
+
return { text: text5, limit: MAX_CHARS_PER_FILE, revision: revisionOf(text5) };
|
|
6099
6304
|
}
|
|
6100
6305
|
__name(readStandingInstructions, "readStandingInstructions");
|
|
6101
|
-
function writeStandingInstructions(
|
|
6102
|
-
if (typeof
|
|
6306
|
+
function writeStandingInstructions(text5, revision2) {
|
|
6307
|
+
if (typeof text5 !== "string") throw new Error("Invalid text.");
|
|
6103
6308
|
if (revision2 !== void 0 && (typeof revision2 !== "string" || revision2.length > 200))
|
|
6104
6309
|
throw new Error("Invalid revision.");
|
|
6105
|
-
if (
|
|
6310
|
+
if (text5.length > MAX_CHARS_PER_FILE)
|
|
6106
6311
|
throw new Error(`Standing instructions can hold ${MAX_CHARS_PER_FILE} characters.`);
|
|
6107
6312
|
const file = instructionsPath();
|
|
6108
6313
|
if (lstatSafe(file) && !lstatSync2(file).isFile())
|
|
@@ -6111,20 +6316,20 @@ function writeStandingInstructions(text4, revision2) {
|
|
|
6111
6316
|
const now = readStandingInstructions();
|
|
6112
6317
|
if (now.revision !== revision2) return { ...now, changed: true };
|
|
6113
6318
|
}
|
|
6114
|
-
if (
|
|
6319
|
+
if (text5.trim() === "") {
|
|
6115
6320
|
if (lstatSafe(file)) unlinkSync(file);
|
|
6116
6321
|
return { text: "", limit: MAX_CHARS_PER_FILE, revision: revisionOf("") };
|
|
6117
6322
|
}
|
|
6118
6323
|
mkdirSync(resolveNamzuHome(), { recursive: true, mode: 448 });
|
|
6119
6324
|
const staging = `${file}.${process.pid}.tmp`;
|
|
6120
6325
|
try {
|
|
6121
|
-
writeFileSync(staging,
|
|
6326
|
+
writeFileSync(staging, text5, { encoding: "utf8", mode: 384 });
|
|
6122
6327
|
renameSync(staging, file);
|
|
6123
6328
|
} catch (error) {
|
|
6124
6329
|
if (lstatSafe(staging)) unlinkSync(staging);
|
|
6125
6330
|
throw error;
|
|
6126
6331
|
}
|
|
6127
|
-
return { text:
|
|
6332
|
+
return { text: text5, limit: MAX_CHARS_PER_FILE, revision: revisionOf(text5) };
|
|
6128
6333
|
}
|
|
6129
6334
|
__name(writeStandingInstructions, "writeStandingInstructions");
|
|
6130
6335
|
function lstatSafe(file) {
|
|
@@ -6157,8 +6362,8 @@ async function openStore(cwd) {
|
|
|
6157
6362
|
return new MarkdownMemoryStore({ directory });
|
|
6158
6363
|
}
|
|
6159
6364
|
__name(openStore, "openStore");
|
|
6160
|
-
var flat = /* @__PURE__ */ __name((
|
|
6161
|
-
const line =
|
|
6365
|
+
var flat = /* @__PURE__ */ __name((text5, max) => {
|
|
6366
|
+
const line = text5.replace(/\s+/g, " ").trim();
|
|
6162
6367
|
return line.length > max ? `${line.slice(0, max - 1)}\u2026` : line;
|
|
6163
6368
|
}, "flat");
|
|
6164
6369
|
function target(params) {
|
|
@@ -6235,19 +6440,19 @@ function createMemoryHost(cwd, pal) {
|
|
|
6235
6440
|
refusePal();
|
|
6236
6441
|
only(params, ["id", "revision", "text", "title"], "memory");
|
|
6237
6442
|
const item = target(params);
|
|
6238
|
-
const { text:
|
|
6239
|
-
if (typeof
|
|
6443
|
+
const { text: text5, title: title2 } = params;
|
|
6444
|
+
if (typeof text5 !== "string" || text5.trim() === "" || text5.length > MEMORY_TEXT_MAX)
|
|
6240
6445
|
throw new Error("Invalid text.");
|
|
6241
6446
|
if (title2 !== void 0 && (typeof title2 !== "string" || title2.trim() === "" || title2.length > MEMORY_TITLE_MAX))
|
|
6242
6447
|
throw new Error("Invalid title.");
|
|
6243
6448
|
const store = await openStore(cwd);
|
|
6244
6449
|
if (!store) return { outcome: "gone" };
|
|
6245
6450
|
const outcome = await updateManagedMemory(store, item, {
|
|
6246
|
-
content:
|
|
6451
|
+
content: text5,
|
|
6247
6452
|
...title2 === void 0 ? {} : { title: title2.trim() },
|
|
6248
|
-
summary: flat(
|
|
6453
|
+
summary: flat(text5, MEMORY_SUMMARY_MAX),
|
|
6249
6454
|
// The index line every later prompt carries must not keep the wording that was replaced.
|
|
6250
|
-
description: flat(
|
|
6455
|
+
description: flat(text5, MEMORY_SUMMARY_MAX)
|
|
6251
6456
|
});
|
|
6252
6457
|
return { outcome };
|
|
6253
6458
|
}, "namzu/memory/update"),
|
|
@@ -6365,21 +6570,21 @@ function userServersAnswer(name) {
|
|
|
6365
6570
|
};
|
|
6366
6571
|
}
|
|
6367
6572
|
__name(userServersAnswer, "userServersAnswer");
|
|
6368
|
-
function
|
|
6573
|
+
function text4(params, key, max = 400) {
|
|
6369
6574
|
const value = params[key];
|
|
6370
6575
|
if (typeof value !== "string" || !value.trim() || value.length > max)
|
|
6371
6576
|
throw new Error(`Invalid ${key}.`);
|
|
6372
6577
|
return value;
|
|
6373
6578
|
}
|
|
6374
|
-
__name(
|
|
6579
|
+
__name(text4, "text");
|
|
6375
6580
|
function session(params) {
|
|
6376
|
-
const value =
|
|
6581
|
+
const value = text4(params, "sessionId");
|
|
6377
6582
|
if (!isEntityId(value, "session")) throw new Error("Invalid conversation id.");
|
|
6378
6583
|
return value;
|
|
6379
6584
|
}
|
|
6380
6585
|
__name(session, "session");
|
|
6381
6586
|
function undoTurnId(params) {
|
|
6382
|
-
const turnId =
|
|
6587
|
+
const turnId = text4(params, "turnId");
|
|
6383
6588
|
if (!isEntityId(turnId, "turn")) throw new Error("Invalid turn.");
|
|
6384
6589
|
return turnId;
|
|
6385
6590
|
}
|
|
@@ -6946,7 +7151,7 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
|
|
|
6946
7151
|
const ownedSession = /* @__PURE__ */ __name((params) => withState((state) => ownedSessionIn(params, state)), "ownedSession");
|
|
6947
7152
|
const ownedReadSession = /* @__PURE__ */ __name((params) => withReadScope((state) => ownedSessionIn(params, state)), "ownedReadSession");
|
|
6948
7153
|
const ownedPal = /* @__PURE__ */ __name((params) => {
|
|
6949
|
-
const id2 =
|
|
7154
|
+
const id2 = text4(params, "palId");
|
|
6950
7155
|
if (!isTrusted(cwd) || pal()?.id !== id2)
|
|
6951
7156
|
throw new Error("This Pal does not own the current workspace.");
|
|
6952
7157
|
return id2;
|
|
@@ -7032,7 +7237,7 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
|
|
|
7032
7237
|
"namzu/conversations/input/status": /* @__PURE__ */ __name(async (params) => {
|
|
7033
7238
|
if (Object.keys(params).some((key) => !["sessionId", "scopeId"].includes(key)))
|
|
7034
7239
|
throw new Error("Live input status accepts only sessionId and scopeId.");
|
|
7035
|
-
const scopeId = params.scopeId === void 0 ? void 0 :
|
|
7240
|
+
const scopeId = params.scopeId === void 0 ? void 0 : text4(params, "scopeId");
|
|
7036
7241
|
return withReadScope(
|
|
7037
7242
|
async (state) => liveInputStatus(await liveOwner(params, state), scopeId, state)
|
|
7038
7243
|
);
|
|
@@ -7043,9 +7248,9 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
|
|
|
7043
7248
|
))
|
|
7044
7249
|
throw new Error("Live input accepts only sessionId, scopeId, inputId and prompt.");
|
|
7045
7250
|
const input = {
|
|
7046
|
-
scopeId:
|
|
7047
|
-
inputId:
|
|
7048
|
-
prompt:
|
|
7251
|
+
scopeId: text4(params, "scopeId"),
|
|
7252
|
+
inputId: text4(params, "inputId"),
|
|
7253
|
+
prompt: text4(params, "prompt", 1e6)
|
|
7049
7254
|
};
|
|
7050
7255
|
return withReadScope(
|
|
7051
7256
|
async (state) => liveInput(await liveOwner(params, state), input, state)
|
|
@@ -7085,7 +7290,7 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
|
|
|
7085
7290
|
"Undo accepts only sessionId, turnId, planToken, resolutions and alsoUndoLater."
|
|
7086
7291
|
);
|
|
7087
7292
|
const turnId = undoTurnId(params);
|
|
7088
|
-
const planToken =
|
|
7293
|
+
const planToken = text4(params, "planToken", 200);
|
|
7089
7294
|
const resolutions = params.resolutions === void 0 ? void 0 : undoResolutions(params.resolutions);
|
|
7090
7295
|
const alsoUndoLater = undoFlag(params, "alsoUndoLater");
|
|
7091
7296
|
return withReadScope(
|
|
@@ -7110,8 +7315,8 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
|
|
|
7110
7315
|
"Retry accepts only the original turn, checkpoint and explicit settings; send a new message after the turn settles."
|
|
7111
7316
|
);
|
|
7112
7317
|
const id2 = await ownedSession(params);
|
|
7113
|
-
const turnId =
|
|
7114
|
-
const checkpointId =
|
|
7318
|
+
const turnId = text4(params, "turnId");
|
|
7319
|
+
const checkpointId = text4(params, "checkpointId");
|
|
7115
7320
|
if (!isEntityId(turnId, "turn") || !isEntityId(checkpointId, "checkpoint"))
|
|
7116
7321
|
throw new Error("Invalid retry turn or checkpoint.");
|
|
7117
7322
|
return retrySession(
|
|
@@ -7131,7 +7336,7 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
|
|
|
7131
7336
|
"Closing a paused turn accepts only the conversation, its turn and whether its message goes back to the person."
|
|
7132
7337
|
);
|
|
7133
7338
|
const id2 = await ownedSession(params);
|
|
7134
|
-
const turnId = params.turnId === void 0 ? void 0 :
|
|
7339
|
+
const turnId = params.turnId === void 0 ? void 0 : text4(params, "turnId");
|
|
7135
7340
|
if (turnId !== void 0 && !isEntityId(turnId, "turn"))
|
|
7136
7341
|
throw new Error("Invalid turn.");
|
|
7137
7342
|
if (params.withdrawMessages !== void 0 && typeof params.withdrawMessages !== "boolean")
|
|
@@ -7160,12 +7365,12 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
|
|
|
7160
7365
|
if (pal()) throw new Error("External engines are available in normal conversations only.");
|
|
7161
7366
|
const harness = runtime;
|
|
7162
7367
|
if (!harness.selectHarness) throw new Error("Update Namzu to use external engines.");
|
|
7163
|
-
return harness.selectHarness(await ownedSession(params),
|
|
7368
|
+
return harness.selectHarness(await ownedSession(params), text4(params, "engine"));
|
|
7164
7369
|
}, "namzu/harnesses/select"),
|
|
7165
7370
|
"namzu/harnesses/release": /* @__PURE__ */ __name(async (params) => {
|
|
7166
7371
|
const harness = runtime;
|
|
7167
7372
|
if (!harness.releaseHarness) return { released: false };
|
|
7168
|
-
await harness.releaseHarness(
|
|
7373
|
+
await harness.releaseHarness(text4(params, "engine"));
|
|
7169
7374
|
return { released: true };
|
|
7170
7375
|
}, "namzu/harnesses/release"),
|
|
7171
7376
|
"namzu/project/status": /* @__PURE__ */ __name(() => ({
|
|
@@ -7175,9 +7380,9 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
|
|
|
7175
7380
|
}), "namzu/project/status"),
|
|
7176
7381
|
...createDesktopPalCommunicationExtensions({ cwd, withState }),
|
|
7177
7382
|
"namzu/pals/list": /* @__PURE__ */ __name(() => listPals(), "namzu/pals/list"),
|
|
7178
|
-
"namzu/pals/get": /* @__PURE__ */ __name((params) => getPal(
|
|
7383
|
+
"namzu/pals/get": /* @__PURE__ */ __name((params) => getPal(text4(params, "id")), "namzu/pals/get"),
|
|
7179
7384
|
"namzu/pals/create": /* @__PURE__ */ __name((params) => createPal({
|
|
7180
|
-
name:
|
|
7385
|
+
name: text4(params, "name", 80),
|
|
7181
7386
|
...params.purpose === void 0 ? {} : { purpose: params.purpose },
|
|
7182
7387
|
...params.model === void 0 ? {} : { model: params.model },
|
|
7183
7388
|
...params.appearance === void 0 ? {} : { appearance: params.appearance }
|
|
@@ -7185,7 +7390,7 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
|
|
|
7185
7390
|
"namzu/pals/update": /* @__PURE__ */ __name(async (params) => {
|
|
7186
7391
|
if (!Number.isSafeInteger(params.expectedRevision) || params.expectedRevision < 1)
|
|
7187
7392
|
throw new Error("Invalid Pal revision.");
|
|
7188
|
-
const id2 =
|
|
7393
|
+
const id2 = text4(params, "id");
|
|
7189
7394
|
if (pal()?.id === id2 && (await getCliPalRuntime()).busy(id2))
|
|
7190
7395
|
throw new Error("Stop this Pal\u2019s active work before changing it.");
|
|
7191
7396
|
return updatePal(id2, params.expectedRevision, {
|
|
@@ -7199,7 +7404,7 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
|
|
|
7199
7404
|
"namzu/pals/delete": /* @__PURE__ */ __name(async (params) => {
|
|
7200
7405
|
if (!params || typeof params !== "object" || Array.isArray(params) || Object.keys(params).some((key) => key !== "id" && key !== "expectedRevision"))
|
|
7201
7406
|
throw new Error("Invalid Pal deletion request.");
|
|
7202
|
-
const id2 =
|
|
7407
|
+
const id2 = text4(params, "id");
|
|
7203
7408
|
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
7409
|
throw new Error("Invalid Pal id.");
|
|
7205
7410
|
const expectedRevision = params.expectedRevision;
|
|
@@ -7220,27 +7425,27 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
|
|
|
7220
7425
|
"namzu/pals/computer/stop": /* @__PURE__ */ __name((params) => stopCliPalComputer(ownedPal(params)), "namzu/pals/computer/stop"),
|
|
7221
7426
|
"namzu/pals/computer/screen": /* @__PURE__ */ __name((params) => cliPalScreen(
|
|
7222
7427
|
ownedPal(params),
|
|
7223
|
-
params.generation === void 0 ? void 0 :
|
|
7428
|
+
params.generation === void 0 ? void 0 : text4(params, "generation", 16)
|
|
7224
7429
|
), "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),
|
|
7430
|
+
"namzu/pals/computer/stream": /* @__PURE__ */ __name((params) => cliPalScreenStream(ownedPal(params), text4(params, "generation", 16)), "namzu/pals/computer/stream"),
|
|
7431
|
+
"namzu/pals/computer/take_over": /* @__PURE__ */ __name((params) => takeOverCliPalComputer(ownedPal(params), text4(params, "generation", 16)), "namzu/pals/computer/take_over"),
|
|
7432
|
+
"namzu/pals/computer/return_control": /* @__PURE__ */ __name((params) => returnCliPalComputerControl(ownedPal(params), text4(params, "generation", 16)), "namzu/pals/computer/return_control"),
|
|
7228
7433
|
"namzu/pals/computer/input": /* @__PURE__ */ __name((params) => executeCliPalComputerInput(
|
|
7229
7434
|
ownedPal(params),
|
|
7230
|
-
|
|
7435
|
+
text4(params, "generation", 16),
|
|
7231
7436
|
params.input
|
|
7232
7437
|
), "namzu/pals/computer/input"),
|
|
7233
7438
|
...palInboxStart ? {
|
|
7234
7439
|
"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),
|
|
7440
|
+
"namzu/pals/inbox/start": /* @__PURE__ */ __name(async (params) => palInboxStart.start(ownedPal(params), text4(params, "clickId", 80)), "namzu/pals/inbox/start")
|
|
7236
7441
|
} : {},
|
|
7237
7442
|
"namzu/pals/conversations/claim": /* @__PURE__ */ __name(async (params) => {
|
|
7238
7443
|
if (!isTrusted(cwd)) throw new Error("This Pal workspace is not trusted.");
|
|
7239
|
-
return claimPalConversation(cwd,
|
|
7444
|
+
return claimPalConversation(cwd, text4(params, "palId"), session(params));
|
|
7240
7445
|
}, "namzu/pals/conversations/claim"),
|
|
7241
|
-
"namzu/pals/conversations/list": /* @__PURE__ */ __name((params) => listPalConversations(cwd,
|
|
7446
|
+
"namzu/pals/conversations/list": /* @__PURE__ */ __name((params) => listPalConversations(cwd, text4(params, "palId")), "namzu/pals/conversations/list"),
|
|
7242
7447
|
"namzu/project/trust": /* @__PURE__ */ __name((params) => {
|
|
7243
|
-
if (params.confirmed !== true ||
|
|
7448
|
+
if (params.confirmed !== true || text4(params, "cwd", 32768) !== cwd)
|
|
7244
7449
|
throw new Error("Folder confirmation does not match this project.");
|
|
7245
7450
|
try {
|
|
7246
7451
|
trustDir(cwd);
|
|
@@ -7252,7 +7457,7 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
|
|
|
7252
7457
|
return { cwd, trusted: true };
|
|
7253
7458
|
}, "namzu/project/trust"),
|
|
7254
7459
|
"namzu/project/untrust": /* @__PURE__ */ __name((params) => {
|
|
7255
|
-
if (params.confirmed !== true ||
|
|
7460
|
+
if (params.confirmed !== true || text4(params, "cwd", 32768) !== cwd)
|
|
7256
7461
|
throw new Error("Folder confirmation does not match this project.");
|
|
7257
7462
|
const result = untrustDir(cwd);
|
|
7258
7463
|
return { cwd, ...result, trusted: isTrusted(cwd) };
|
|
@@ -7282,7 +7487,7 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
|
|
|
7282
7487
|
"namzu/conversations/search": /* @__PURE__ */ __name(async (params = {}) => {
|
|
7283
7488
|
if (!params || typeof params !== "object" || Array.isArray(params) || Object.keys(params).some((key) => key !== "query" && key !== "limit"))
|
|
7284
7489
|
throw new Error("Invalid conversation search request.");
|
|
7285
|
-
const query =
|
|
7490
|
+
const query = text4(params, "query", SEARCH_QUERY_MAX).trim();
|
|
7286
7491
|
const limit = params.limit === void 0 ? 20 : params.limit;
|
|
7287
7492
|
if (typeof limit !== "number" || !Number.isInteger(limit) || limit < 1 || limit > 50)
|
|
7288
7493
|
throw new Error("A search returns between 1 and 50 conversations.");
|
|
@@ -7546,7 +7751,7 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
|
|
|
7546
7751
|
"namzu/skills/list": /* @__PURE__ */ __name(async (params = {}) => {
|
|
7547
7752
|
if (!params || typeof params !== "object" || Array.isArray(params) || Object.keys(params).length > 0)
|
|
7548
7753
|
throw new Error("Invalid skills request.");
|
|
7549
|
-
const { listInstalledSkills } = await import("./installed-list-
|
|
7754
|
+
const { listInstalledSkills } = await import("./installed-list-GPVOP4E3.js");
|
|
7550
7755
|
return { skills: listInstalledSkills({ cwd, includeProject: isTrusted(cwd) && !pal() }) };
|
|
7551
7756
|
}, "namzu/skills/list"),
|
|
7552
7757
|
/** The tool servers in the user's own config file, as the Settings form edits them. */
|
|
@@ -7575,7 +7780,7 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
|
|
|
7575
7780
|
...args ? { args } : {},
|
|
7576
7781
|
...typeof params.url === "string" ? { url: params.url } : {}
|
|
7577
7782
|
};
|
|
7578
|
-
const name =
|
|
7783
|
+
const name = text4(params, "name", 64);
|
|
7579
7784
|
if (params.dryRun === true) checkUserMcpServerSave(params.mode, name, input);
|
|
7580
7785
|
else saveUserMcpServer(params.mode, name, input);
|
|
7581
7786
|
return userServersAnswer();
|
|
@@ -7584,7 +7789,7 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
|
|
|
7584
7789
|
if (pal()) throw new Error("Pals do not change the host settings.");
|
|
7585
7790
|
if (!params || typeof params !== "object" || Object.keys(params).some((key) => key !== "name"))
|
|
7586
7791
|
throw new Error("Removing a tool server names only the server.");
|
|
7587
|
-
removeUserMcpServer(
|
|
7792
|
+
removeUserMcpServer(text4(params, "name", 64));
|
|
7588
7793
|
return userServersAnswer();
|
|
7589
7794
|
}, "namzu/mcp/remove-user-server"),
|
|
7590
7795
|
/**
|
|
@@ -7596,7 +7801,7 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
|
|
|
7596
7801
|
"namzu/hooks/list": /* @__PURE__ */ __name(async (params = {}) => {
|
|
7597
7802
|
if (!params || typeof params !== "object" || Array.isArray(params) || Object.keys(params).length > 0)
|
|
7598
7803
|
throw new Error("Invalid hooks request.");
|
|
7599
|
-
const { describeFolderHooks } = await import("./hooks-report-
|
|
7804
|
+
const { describeFolderHooks } = await import("./hooks-report-H4JAHJXE.js");
|
|
7600
7805
|
return describeFolderHooks({ cwd, trusted: isTrusted(cwd) });
|
|
7601
7806
|
}, "namzu/hooks/list"),
|
|
7602
7807
|
/** Approves servers `.mcp.json` declared, as they were listed, the way `namzu mcp approve` does. */
|
|
@@ -7609,7 +7814,7 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
|
|
|
7609
7814
|
throw new Error("Choose the tool servers to approve.");
|
|
7610
7815
|
const checked = shown.map((item) => {
|
|
7611
7816
|
const row2 = item && typeof item === "object" ? item : {};
|
|
7612
|
-
return { name:
|
|
7817
|
+
return { name: text4(row2, "name", 64), fingerprint: text4(row2, "fingerprint", 128) };
|
|
7613
7818
|
});
|
|
7614
7819
|
return { approved: approveListedMcpServers(cwd, checked) };
|
|
7615
7820
|
}, "namzu/mcp/approve"),
|
|
@@ -7672,14 +7877,14 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
|
|
|
7672
7877
|
};
|
|
7673
7878
|
}, "namzu/providers/status"),
|
|
7674
7879
|
"namzu/providers/models": /* @__PURE__ */ __name((params) => {
|
|
7675
|
-
const provider =
|
|
7880
|
+
const provider = text4(params, "provider");
|
|
7676
7881
|
if (params.sessionId === void 0) return runtime.models(provider);
|
|
7677
7882
|
session(params);
|
|
7678
7883
|
return ownedReadSession(params).then((id2) => runtime.models(provider, id2));
|
|
7679
7884
|
}, "namzu/providers/models"),
|
|
7680
7885
|
"namzu/providers/settings": /* @__PURE__ */ __name(async (params) => runtime.modelSettings(
|
|
7681
|
-
|
|
7682
|
-
|
|
7886
|
+
text4(params, "provider"),
|
|
7887
|
+
text4(params, "model"),
|
|
7683
7888
|
params.sessionId === void 0 ? void 0 : await ownedReadSession(params)
|
|
7684
7889
|
), "namzu/providers/settings"),
|
|
7685
7890
|
"namzu/plugins/list": /* @__PURE__ */ __name(async (params) => {
|
|
@@ -7698,7 +7903,7 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
|
|
|
7698
7903
|
if (typeof params.enabled !== "boolean") throw new Error("Invalid plugin choice.");
|
|
7699
7904
|
return runtime.setPluginEnabled(
|
|
7700
7905
|
await ownedSession(params),
|
|
7701
|
-
|
|
7906
|
+
text4(params, "name"),
|
|
7702
7907
|
params.enabled,
|
|
7703
7908
|
cwd
|
|
7704
7909
|
);
|
|
@@ -7707,8 +7912,8 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
|
|
|
7707
7912
|
if (!isTrusted(cwd)) throw new Error("Trust this folder first.");
|
|
7708
7913
|
await runtime.selectProvider(
|
|
7709
7914
|
await ownedSession(params),
|
|
7710
|
-
|
|
7711
|
-
params.model === void 0 ? void 0 :
|
|
7915
|
+
text4(params, "provider"),
|
|
7916
|
+
params.model === void 0 ? void 0 : text4(params, "model")
|
|
7712
7917
|
);
|
|
7713
7918
|
return { selected: true };
|
|
7714
7919
|
}, "namzu/providers/select"),
|
|
@@ -7722,7 +7927,7 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
|
|
|
7722
7927
|
"namzu/providers/save_key": /* @__PURE__ */ __name(async (params) => {
|
|
7723
7928
|
if (Object.keys(params).some((key) => !["provider", "apiKey"].includes(key)))
|
|
7724
7929
|
throw new Error("Saving a key accepts only the provider and the key.");
|
|
7725
|
-
return runtime.saveProviderKey(
|
|
7930
|
+
return runtime.saveProviderKey(text4(params, "provider"), text4(params, "apiKey", 4096));
|
|
7726
7931
|
}, "namzu/providers/save_key"),
|
|
7727
7932
|
"namzu/config/get": /* @__PURE__ */ __name(() => {
|
|
7728
7933
|
if (pal()) throw new Error("Pals do not read the host settings.");
|
|
@@ -7735,15 +7940,15 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
|
|
|
7735
7940
|
if (params.dryRun !== void 0 && typeof params.dryRun !== "boolean")
|
|
7736
7941
|
throw new Error("dryRun is true or false.");
|
|
7737
7942
|
if (params.dryRun === true) {
|
|
7738
|
-
checkSetting({ path:
|
|
7943
|
+
checkSetting({ path: text4(params, "path"), value: params.value });
|
|
7739
7944
|
return readSettings();
|
|
7740
7945
|
}
|
|
7741
|
-
writeSetting({ path:
|
|
7946
|
+
writeSetting({ path: text4(params, "path"), value: params.value });
|
|
7742
7947
|
return readSettings();
|
|
7743
7948
|
}, "namzu/config/set"),
|
|
7744
7949
|
"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(
|
|
7950
|
+
"namzu/providers/remove_key": /* @__PURE__ */ __name(async (params) => runtime.removeProviderKey(text4(params, "provider")), "namzu/providers/remove_key"),
|
|
7951
|
+
"namzu/providers/test": /* @__PURE__ */ __name(async (params) => runtime.testProvider(text4(params, "provider")), "namzu/providers/test"),
|
|
7747
7952
|
/** Where this conversation's context window goes; null until the engine has reported one. */
|
|
7748
7953
|
"namzu/session/context": /* @__PURE__ */ __name(async (params) => {
|
|
7749
7954
|
const request = readContextRequest(params);
|
|
@@ -7772,7 +7977,7 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
|
|
|
7772
7977
|
"namzu/session/set-permission-mode": /* @__PURE__ */ __name(async (params) => {
|
|
7773
7978
|
if (Object.keys(params).some((key) => !["sessionId", "mode"].includes(key)))
|
|
7774
7979
|
throw new Error("Setting the mode accepts only sessionId and mode.");
|
|
7775
|
-
const mode =
|
|
7980
|
+
const mode = text4(params, "mode");
|
|
7776
7981
|
if (!isPermissionMode(mode)) throw new Error("Invalid permission mode.");
|
|
7777
7982
|
return runtime.setPermissionMode(
|
|
7778
7983
|
await ownedSession(params),
|
|
@@ -7788,15 +7993,15 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
|
|
|
7788
7993
|
const sessionId = await ownedSession(params);
|
|
7789
7994
|
runtime.answerQuestion(
|
|
7790
7995
|
sessionId,
|
|
7791
|
-
|
|
7996
|
+
text4(params, "requestId"),
|
|
7792
7997
|
params.answer
|
|
7793
7998
|
);
|
|
7794
7999
|
return { answered: true };
|
|
7795
8000
|
}
|
|
7796
8001
|
} : {},
|
|
7797
8002
|
"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),
|
|
8003
|
+
"namzu/jobs/read": /* @__PURE__ */ __name(async (params) => runtime.readJob(await ownedReadSession(params), text4(params, "jobId")), "namzu/jobs/read"),
|
|
8004
|
+
"namzu/jobs/stop": /* @__PURE__ */ __name(async (params) => runtime.stopJob(await ownedSession(params), text4(params, "jobId")), "namzu/jobs/stop")
|
|
7800
8005
|
};
|
|
7801
8006
|
}
|
|
7802
8007
|
__name(createDesktopHostExtensions, "createDesktopHostExtensions");
|
|
@@ -7813,8 +8018,8 @@ __name(productName, "productName");
|
|
|
7813
8018
|
function desktopModelCatalogue(listing, defaultModel, currentModel, allowModel, providerLabel = "The provider") {
|
|
7814
8019
|
if (listing.kind !== "ok") {
|
|
7815
8020
|
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 ${
|
|
8021
|
+
const object2 = providerLabel === "The provider" ? "the provider" : name;
|
|
8022
|
+
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
8023
|
return { models: [], notice };
|
|
7819
8024
|
}
|
|
7820
8025
|
const seen = /* @__PURE__ */ new Set();
|
|
@@ -8443,11 +8648,11 @@ function createCliAcpRuntime(bootstrapCtx, deps = DEFAULT_RUNTIME_DEPS, runtimeO
|
|
|
8443
8648
|
const presenter = {
|
|
8444
8649
|
presentCall: /* @__PURE__ */ __name((toolName, input) => activeRecord?.session.presenter.presentCall(toolName, input) ?? {
|
|
8445
8650
|
kind: "generic",
|
|
8446
|
-
label: genericLabel(input)
|
|
8651
|
+
label: genericLabel(input) || toolName
|
|
8447
8652
|
}, "presentCall"),
|
|
8448
8653
|
presentResult: /* @__PURE__ */ __name((toolName, input, result) => activeRecord?.session.presenter.presentResult(toolName, input, result) ?? {
|
|
8449
8654
|
kind: "generic",
|
|
8450
|
-
label: genericLabel(input)
|
|
8655
|
+
label: genericLabel(input) || toolName
|
|
8451
8656
|
}, "presentResult")
|
|
8452
8657
|
};
|
|
8453
8658
|
const sharedProbe = /* @__PURE__ */ __name(() => {
|
|
@@ -8639,7 +8844,16 @@ function createCliAcpRuntime(bootstrapCtx, deps = DEFAULT_RUNTIME_DEPS, runtimeO
|
|
|
8639
8844
|
...browserConfig?.signInDetection ? { signInDetection: browserConfig.signInDetection } : {},
|
|
8640
8845
|
// A person is here to answer: a sign-in page is put to them, not left to a command.
|
|
8641
8846
|
...questionRelay && !palEnvironment ? { askPersonToSignIn: true } : {},
|
|
8642
|
-
...conversationState ? { home: conversationState.root } : {}
|
|
8847
|
+
...conversationState ? { home: conversationState.root } : {},
|
|
8848
|
+
// The app's Browser pane first, where it offered one and the rules can be
|
|
8849
|
+
// said as host patterns; a browser set to never show a window stays its own.
|
|
8850
|
+
...runtimeOptions.browserPane && browserConfig?.headless !== "always" ? (() => {
|
|
8851
|
+
const link = runtimeOptions.browserPane;
|
|
8852
|
+
const rules = paneSiteRules(browserSites.sites);
|
|
8853
|
+
return link && rules ? {
|
|
8854
|
+
pane: /* @__PURE__ */ __name(() => link.available() ? link.channel(sessionId, rules) : void 0, "pane")
|
|
8855
|
+
} : {};
|
|
8856
|
+
})() : {}
|
|
8643
8857
|
}
|
|
8644
8858
|
} : {},
|
|
8645
8859
|
// Every key the configuration sets for a session, through the one function
|
|
@@ -8906,7 +9120,7 @@ function createCliAcpRuntime(bootstrapCtx, deps = DEFAULT_RUNTIME_DEPS, runtimeO
|
|
|
8906
9120
|
if (event.kind === "paused") {
|
|
8907
9121
|
record2.retrySettings = { ...original, turnId: event.turnId };
|
|
8908
9122
|
const browser = record2.session.browser;
|
|
8909
|
-
if (event.handoff && browser?.status().headless)
|
|
9123
|
+
if (event.handoff && browser?.status().headless && browser.status().where !== "pane")
|
|
8910
9124
|
void browser.release().catch(() => {
|
|
8911
9125
|
});
|
|
8912
9126
|
}
|
|
@@ -9262,10 +9476,8 @@ function createCliAcpRuntime(bootstrapCtx, deps = DEFAULT_RUNTIME_DEPS, runtimeO
|
|
|
9262
9476
|
if (!status.retry) {
|
|
9263
9477
|
if (!status.handoff) return status;
|
|
9264
9478
|
const browser = record2?.session.browser?.status();
|
|
9265
|
-
|
|
9266
|
-
|
|
9267
|
-
handoff: { ...status.handoff, window: browser.headless ? "none" : "visible" }
|
|
9268
|
-
} : status;
|
|
9479
|
+
const window = browser ? handoffWindow(browser) : void 0;
|
|
9480
|
+
return window ? { ...status, handoff: { ...status.handoff, window } } : status;
|
|
9269
9481
|
}
|
|
9270
9482
|
const blocked = /* @__PURE__ */ __name((notice) => ({
|
|
9271
9483
|
notice,
|
|
@@ -9667,9 +9879,9 @@ function createCliAcpRuntime(bootstrapCtx, deps = DEFAULT_RUNTIME_DEPS, runtimeO
|
|
|
9667
9879
|
readText: /* @__PURE__ */ __name(async (path) => {
|
|
9668
9880
|
const known = files.get(path);
|
|
9669
9881
|
if (known !== void 0) return known;
|
|
9670
|
-
const
|
|
9671
|
-
files.set(path,
|
|
9672
|
-
return
|
|
9882
|
+
const text5 = await readFile3(path, "utf8");
|
|
9883
|
+
files.set(path, text5);
|
|
9884
|
+
return text5;
|
|
9673
9885
|
}, "readText")
|
|
9674
9886
|
});
|
|
9675
9887
|
return buildContextReport({
|
|
@@ -9736,7 +9948,16 @@ function acpKernelFacts(desktop) {
|
|
|
9736
9948
|
};
|
|
9737
9949
|
}
|
|
9738
9950
|
__name(acpKernelFacts, "acpKernelFacts");
|
|
9739
|
-
|
|
9951
|
+
var NO_BROWSER_PANE_EXTENSIONS = Object.fromEntries(
|
|
9952
|
+
BROWSER_PANE_SERVED_METHODS.map((name) => [name, () => null])
|
|
9953
|
+
);
|
|
9954
|
+
function handoffWindow(browser) {
|
|
9955
|
+
if (browser.where === "pane") return "pane";
|
|
9956
|
+
if (browser.prefersPane === true && browser.where !== "own") return void 0;
|
|
9957
|
+
return browser.headless ? "none" : "visible";
|
|
9958
|
+
}
|
|
9959
|
+
__name(handoffWindow, "handoffWindow");
|
|
9960
|
+
function desktopServerExtensions(runtime, cwd, server, palInboxStart, terminals, limits, extensions, browserPane) {
|
|
9740
9961
|
return {
|
|
9741
9962
|
...createDesktopHostExtensions(
|
|
9742
9963
|
runtime,
|
|
@@ -9749,6 +9970,9 @@ function desktopServerExtensions(runtime, cwd, server, palInboxStart, terminals,
|
|
|
9749
9970
|
limits
|
|
9750
9971
|
),
|
|
9751
9972
|
...terminals?.extensions,
|
|
9973
|
+
// What the app says about the agent's tab in its Browser pane. Always listed, so the app
|
|
9974
|
+
// can tell this engine takes them; nothing is sent unless the app offered the pane.
|
|
9975
|
+
...browserPane?.extensions ?? NO_BROWSER_PANE_EXTENSIONS,
|
|
9752
9976
|
...extensions ?? createExtensionsRpc(() => sharedExtensionHost("desktop"))
|
|
9753
9977
|
};
|
|
9754
9978
|
}
|
|
@@ -9774,9 +9998,14 @@ async function runAcpCommand(ctx, desktop = false) {
|
|
|
9774
9998
|
notify: announce,
|
|
9775
9999
|
now: /* @__PURE__ */ __name(() => Date.now(), "now")
|
|
9776
10000
|
}) : void 0;
|
|
10001
|
+
const paneLink = desktop ? createAcpPaneLink({
|
|
10002
|
+
offers: /* @__PURE__ */ __name((capability) => server.clientOffers(capability), "offers"),
|
|
10003
|
+
ask: /* @__PURE__ */ __name((method, params) => server.askClient(method, params), "ask")
|
|
10004
|
+
}) : void 0;
|
|
9777
10005
|
const runtime = withCliHarnesses(
|
|
9778
10006
|
createCliAcpRuntime(ctx, DEFAULT_RUNTIME_DEPS, {
|
|
9779
10007
|
computerUse: desktop,
|
|
10008
|
+
...paneLink ? { browserPane: paneLink } : {},
|
|
9780
10009
|
...desktop ? {
|
|
9781
10010
|
observeComputer: /* @__PURE__ */ __name((id2, seen) => announce(COMPUTER_FRAME_NOTIFICATION, { sessionId: id2, ...seen }), "observeComputer")
|
|
9782
10011
|
} : {},
|
|
@@ -9838,7 +10067,9 @@ async function runAcpCommand(ctx, desktop = false) {
|
|
|
9838
10067
|
},
|
|
9839
10068
|
palInboxStart,
|
|
9840
10069
|
terminals,
|
|
9841
|
-
limitsFeed
|
|
10070
|
+
limitsFeed,
|
|
10071
|
+
void 0,
|
|
10072
|
+
paneLink
|
|
9842
10073
|
)
|
|
9843
10074
|
} : {}
|
|
9844
10075
|
});
|
|
@@ -9863,6 +10094,7 @@ async function runAcpCommand(ctx, desktop = false) {
|
|
|
9863
10094
|
} finally {
|
|
9864
10095
|
announcing = false;
|
|
9865
10096
|
announcingUsage = false;
|
|
10097
|
+
paneLink?.close("The app closed its connection to this engine.");
|
|
9866
10098
|
usageFeed?.close();
|
|
9867
10099
|
try {
|
|
9868
10100
|
if (desktop) await stopDesktopExtensions();
|
|
@@ -9900,8 +10132,9 @@ export {
|
|
|
9900
10132
|
closeAcpResources,
|
|
9901
10133
|
createCliAcpRuntime,
|
|
9902
10134
|
desktopServerExtensions,
|
|
10135
|
+
handoffWindow,
|
|
9903
10136
|
parseAcpArgs,
|
|
9904
10137
|
resolveAcpSession,
|
|
9905
10138
|
runAcpCommand
|
|
9906
10139
|
};
|
|
9907
|
-
//# sourceMappingURL=acp-
|
|
10140
|
+
//# sourceMappingURL=acp-OZG7H75P.js.map
|