@qwen-code/qwen-code 0.23.2-preview.0 → 0.23.3-nightly.20260910.c46cb85cf2
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/README.md +35 -15
- package/bundled/computer-use/SKILL.md +1 -1
- package/bundled/goal-draft/SKILL.md +2 -2
- package/bundled/qc-helper/docs/configuration/auth.md +1 -1
- package/bundled/qc-helper/docs/configuration/model-providers.md +76 -34
- package/bundled/qc-helper/docs/configuration/settings.md +5 -3
- package/bundled/qc-helper/docs/features/_meta.ts +1 -0
- package/bundled/qc-helper/docs/features/channels/dingtalk.md +1 -21
- package/bundled/qc-helper/docs/features/channels/dws.md +7 -1
- package/bundled/qc-helper/docs/features/channels/github.md +1 -9
- package/bundled/qc-helper/docs/features/channels/overview.md +30 -56
- package/bundled/qc-helper/docs/features/channels/qqbot.md +1 -2
- package/bundled/qc-helper/docs/features/commands.md +105 -18
- package/bundled/qc-helper/docs/features/computer-use.md +1 -1
- package/bundled/qc-helper/docs/features/cross-session-protocol.md +320 -0
- package/bundled/qc-helper/docs/features/goals.md +5 -3
- package/bundled/qc-helper/docs/features/hooks.md +14 -13
- package/bundled/qc-helper/docs/features/sub-agents.md +8 -0
- package/bundled/qc-helper/docs/qwen-serve.md +84 -53
- package/bundled/review/SKILL.md +82 -79
- package/bundled/review/references/posting.md +31 -14
- package/chunks/{MaxSizedBox-ZZJT3PJF.js → MaxSizedBox-UZW24XUX.js} +63 -55
- package/chunks/{StandaloneSessionPicker-DIOSZTMX.js → StandaloneSessionPicker-IDK7NAZL.js} +85 -77
- package/chunks/{acp-startup-profiler-KEU6VAYR.js → acp-startup-profiler-ARO4II44.js} +2 -2
- package/chunks/acp-subagent-executor-7TLJGISS.js +919 -0
- package/chunks/{acpAgent-62JUP5A7.js → acpAgent-YRCNNIIU.js} +939 -306
- package/chunks/{agent-NLPEQQDZ.js → agent-SGU5EE7U.js} +47 -41
- package/chunks/{agent-headless-Y2GR5F2Q.js → agent-headless-JVYBLNLT.js} +47 -41
- package/chunks/{anthropicContentGenerator-I7LQZH26.js → anthropicContentGenerator-SGIR5IKF.js} +68 -36
- package/chunks/{artifact-tool-P52OKKEF.js → artifact-tool-PMYZCYNH.js} +2 -2
- package/chunks/{askUserQuestion-I5W5S3D6.js → askUserQuestion-4M4YYIB4.js} +2 -2
- package/chunks/{bridge-Q66BD62H.js → bridge-YF6NYRPZ.js} +68 -60
- package/chunks/{ca-KC2AISNS.js → ca-MX3WCEEG.js} +1 -1
- package/chunks/{channel-management-service-TRTLQTSV.js → channel-management-service-E4HTMU7T.js} +9 -9
- package/chunks/{channel-settings-store-R5STFWUW.js → channel-settings-store-FZ5VKHQD.js} +74 -66
- package/chunks/{channel-worker-group-PIYPVCTF.js → channel-worker-group-X6WH4XWF.js} +9 -9
- package/chunks/{channel-worker-manager-FQHEDTD2.js → channel-worker-manager-SICFJDPJ.js} +19 -10
- package/chunks/{channel-worker-supervisor-XJPZZ3VK.js → channel-worker-supervisor-HSFAKML6.js} +6 -6
- package/chunks/{chunk-CLKE4IY3.js → chunk-2SZH22YO.js} +1 -1
- package/chunks/{chunk-OIPUQE3S.js → chunk-34ZYDM3F.js} +27 -12
- package/chunks/{chunk-HIXUUCGY.js → chunk-36HCNKDS.js} +1 -1
- package/chunks/{chunk-6YEOCHSE.js → chunk-3FPYT6QC.js} +101 -31
- package/chunks/{chunk-NFIDVZND.js → chunk-3I7W2POO.js} +3 -22
- package/chunks/{chunk-W3ONSAYO.js → chunk-3VPFA6L2.js} +3 -3
- package/chunks/chunk-532WHF4F.js +127 -0
- package/chunks/{chunk-J3TJH52D.js → chunk-5FFAUU4T.js} +1 -1
- package/chunks/{chunk-G5QLLD53.js → chunk-5FKZ7KFQ.js} +1864 -35
- package/chunks/{chunk-B44JBZBB.js → chunk-5GLDOLNQ.js} +132 -27
- package/chunks/{chunk-ORREXWOM.js → chunk-5ZJ3KK5J.js} +5 -5
- package/chunks/{chunk-2OR32P5M.js → chunk-6EDWSKN4.js} +125 -10
- package/chunks/{chunk-EA4NFWVG.js → chunk-6EOMQPTS.js} +4 -4
- package/chunks/{chunk-45ROPFQY.js → chunk-6NONRGYX.js} +1 -1
- package/chunks/{chunk-EHTKOO6W.js → chunk-6UK77U7D.js} +46 -3
- package/chunks/{chunk-QXXBW2G4.js → chunk-72BGC7RT.js} +4 -4
- package/chunks/{chunk-CRZBDVP2.js → chunk-74JEYK2C.js} +10 -10
- package/chunks/{chunk-B54PFQS5.js → chunk-7CLLH5TI.js} +1 -1
- package/chunks/{chunk-CG2PDIGD.js → chunk-7XM6KEVW.js} +1 -1
- package/chunks/{chunk-CALNF3Z3.js → chunk-7XVQNDFB.js} +1 -1
- package/chunks/{chunk-TK4XHPKW.js → chunk-7ZKDPTYO.js} +2 -2
- package/chunks/{chunk-ZIPYCXQP.js → chunk-7ZVIGDZF.js} +1 -1
- package/chunks/chunk-AEY27Z35.js +1411 -0
- package/chunks/{chunk-WIRYFL2L.js → chunk-ATH66AEU.js} +64 -59
- package/chunks/{chunk-33MLFMCL.js → chunk-AW2SIT3B.js} +3 -3
- package/chunks/{chunk-4BLTSTF6.js → chunk-AWMJRE5N.js} +4 -4
- package/chunks/chunk-AYEJOTIU.js +43 -0
- package/chunks/{chunk-M73KHGNR.js → chunk-B2TGBZXY.js} +420 -227
- package/chunks/{chunk-XDNFODER.js → chunk-B6BDT4RX.js} +1 -1
- package/chunks/{chunk-WZ4YULVF.js → chunk-BHR6IN2X.js} +3251 -974
- package/chunks/{chunk-GXIHBIHC.js → chunk-BI3WSRQE.js} +61 -72
- package/chunks/{chunk-NVS4Z6GT.js → chunk-BQOP3K76.js} +1 -1
- package/chunks/{chunk-R2266LQ5.js → chunk-BTWGOKHU.js} +2 -2
- package/chunks/{process-registry-OAEG6WGC.js → chunk-BYUAT5OC.js} +1 -0
- package/chunks/{chunk-XVTCSVBK.js → chunk-C4NLHK7X.js} +227 -298
- package/chunks/{chunk-NOO4QFXM.js → chunk-C75BXMPM.js} +1 -3
- package/chunks/chunk-CAAMI77K.js +937 -0
- package/chunks/chunk-CF5KXZZX.js +150 -0
- package/chunks/{chunk-SOA4HKRJ.js → chunk-CGKEUUYG.js} +2 -2
- package/chunks/{chunk-BF3RUIVP.js → chunk-CH2YDT6X.js} +36 -38
- package/chunks/{chunk-5HBA2Z7V.js → chunk-CJ3DHN5I.js} +3 -3
- package/chunks/{chunk-3BTHHXXE.js → chunk-CSHX5ZC4.js} +1 -1
- package/chunks/{chunk-UYDQYDW2.js → chunk-CUK6F5UF.js} +1 -1
- package/chunks/{chunk-RPFJJ33Z.js → chunk-DLH7YIX6.js} +3 -3
- package/chunks/{chunk-L6ZME3W7.js → chunk-DMX7RF6E.js} +1 -1
- package/chunks/{chunk-TRWQQBVH.js → chunk-DTNV6UZY.js} +1 -1
- package/chunks/{chunk-FDOGGKAA.js → chunk-E4UEO3XM.js} +5 -2
- package/chunks/{chunk-RN6V5HKE.js → chunk-E5GQNSJY.js} +3 -3
- package/chunks/chunk-ELRMZTPF.js +374 -0
- package/chunks/chunk-ERU3SDXT.js +27 -0
- package/chunks/{chunk-O2FEO2CB.js → chunk-EUURTIV6.js} +18 -2
- package/chunks/{chunk-4HOEU2OR.js → chunk-EWJTAP3Y.js} +1 -19
- package/chunks/{chunk-ZELCTN6Y.js → chunk-F23YN37B.js} +10 -0
- package/chunks/{chunk-BL6B2QS2.js → chunk-F2RKL5I2.js} +809 -1195
- package/chunks/{chunk-J4ECGDA3.js → chunk-F45SKYIQ.js} +3 -3
- package/chunks/{chunk-5WC2ECUK.js → chunk-FCQJLMA2.js} +114 -8
- package/chunks/{chunk-4JKLPTV6.js → chunk-FGRDUDCI.js} +13 -6
- package/chunks/{chunk-ZUNWKOAP.js → chunk-FGV2QEAO.js} +5 -27
- package/chunks/{chunk-4VY3ITHR.js → chunk-FN3JNDRU.js} +3 -3
- package/chunks/{chunk-XI7RST4D.js → chunk-FRVV5SSD.js} +2 -2
- package/chunks/{chunk-UXDVUFKU.js → chunk-FYZ5NZ3V.js} +2 -20
- package/chunks/{chunk-ALMR3E6Q.js → chunk-GDWE23OR.js} +3 -3
- package/chunks/{chunk-W7PXLIZJ.js → chunk-GP47UR3M.js} +6 -6
- package/chunks/{chunk-LNYV4GXX.js → chunk-GSKX53AN.js} +0 -139
- package/chunks/{chunk-MA5OUNN6.js → chunk-HG46TTAG.js} +1 -1
- package/chunks/{chunk-FETY36NQ.js → chunk-HGEUHUEV.js} +1 -1
- package/chunks/{chunk-UULHYZ4W.js → chunk-HL2DQG3Y.js} +148 -23
- package/chunks/{chunk-E6TI726I.js → chunk-HUXPEUFL.js} +1 -1
- package/chunks/{chunk-5DQ4YTIZ.js → chunk-HZTXKVSV.js} +1 -1
- package/chunks/{chunk-LYT2OU7D.js → chunk-IAEXTMED.js} +1 -1
- package/chunks/{chunk-CPJRFFPH.js → chunk-IFHJIEMN.js} +576 -169
- package/chunks/{chunk-IW6RQPQB.js → chunk-IJOS26LH.js} +1 -3
- package/chunks/{chunk-ORFIYTI2.js → chunk-IK2MWJP5.js} +1 -1
- package/chunks/{chunk-MWEF5MUK.js → chunk-IOUBOANU.js} +42 -13
- package/chunks/{chunk-KA5HR3G2.js → chunk-IUVIBDKU.js} +2 -2
- package/chunks/{chunk-PQWM4SX2.js → chunk-J2RNOJRV.js} +2 -2
- package/chunks/{chunk-VHPG7BH6.js → chunk-J5PYQVD2.js} +2 -2
- package/chunks/{chunk-JDPBJIKI.js → chunk-JDEW3V5B.js} +1 -1
- package/chunks/{chunk-RX3FYFCN.js → chunk-JEMDIKGQ.js} +7 -7
- package/chunks/chunk-JL6APGBX.js +43 -0
- package/chunks/{chunk-UHUT4IDM.js → chunk-JOMCZWX7.js} +9 -15
- package/chunks/{chunk-43CI6YWJ.js → chunk-JV5YASQA.js} +2777 -2151
- package/chunks/{chunk-N6S3NUYJ.js → chunk-JXNIF2O5.js} +1 -1
- package/chunks/chunk-K2OJUPOE.js +78 -0
- package/chunks/{chunk-QLM7D7W3.js → chunk-KFGPNCCY.js} +8 -8
- package/chunks/{chunk-7RXOEUFF.js → chunk-KHIBLKNK.js} +1 -1
- package/chunks/{chunk-5GD7LYOH.js → chunk-KVBNJ4K2.js} +5 -5
- package/chunks/{chunk-QJAFSFYA.js → chunk-KZ2CU2LH.js} +1 -1
- package/chunks/{chunk-DCPRCDSR.js → chunk-L2KF7HUE.js} +6 -6
- package/chunks/{chunk-4ALNJDHL.js → chunk-L3DTX6U4.js} +3 -1
- package/chunks/{chunk-3SH53ANB.js → chunk-LAP7X6EC.js} +12 -0
- package/chunks/{chunk-GM44O6F7.js → chunk-LEGNDA46.js} +1 -1
- package/chunks/{chunk-WXFCI3O5.js → chunk-LG5Y4OWO.js} +2 -2
- package/chunks/{chunk-3LPJ776W.js → chunk-LILGKQ4B.js} +10 -7
- package/chunks/{chunk-LBKYQ33T.js → chunk-LIR7YS2O.js} +18 -12
- package/chunks/{chunk-5Z4FCEPY.js → chunk-LK2WUCDQ.js} +625 -119
- package/chunks/{chunk-W673V2H3.js → chunk-LY2GK2PR.js} +4 -4
- package/chunks/{chunk-PQSCGZT2.js → chunk-MOS5OAOG.js} +36 -10
- package/chunks/chunk-MXOALJIL.js +691 -0
- package/chunks/chunk-NFXXBWSE.js +463 -0
- package/chunks/chunk-NUQ4GK5I.js +315 -0
- package/chunks/{chunk-J3VZF2AL.js → chunk-NUQVB25K.js} +2 -2
- package/chunks/{chunk-GNY7B3CA.js → chunk-NVIBH7WS.js} +1 -1
- package/chunks/{chunk-M6YLOETP.js → chunk-O3MKRN2I.js} +4 -4
- package/chunks/{chunk-ISPBBKJN.js → chunk-ONGZNOIP.js} +7 -2
- package/chunks/{chunk-Q2F43WTJ.js → chunk-OOLSYRZ7.js} +36 -19
- package/chunks/{chunk-63ACHB2H.js → chunk-PIGUW2U2.js} +197 -28
- package/chunks/{chunk-QAZ2MGYT.js → chunk-PLLIWEM3.js} +2 -2
- package/chunks/{chunk-ULY4ISY2.js → chunk-PMS4FVLY.js} +23 -8
- package/chunks/{chunk-NB3NDQQK.js → chunk-Q2XLNLAV.js} +1 -1
- package/chunks/{chunk-6GRDHIVI.js → chunk-Q6HXLBZF.js} +12 -12
- package/chunks/{chunk-EUXF6URV.js → chunk-QPWZX4ZV.js} +32 -34
- package/chunks/{chunk-DTB5BXRG.js → chunk-RJZTX2OF.js} +30 -17
- package/chunks/{chunk-PQEISIKS.js → chunk-SAH4BD2J.js} +0 -67
- package/chunks/{chunk-LUVXLLMS.js → chunk-SAWPURIU.js} +2 -2
- package/chunks/{chunk-WZS3X663.js → chunk-SNZWDV67.js} +43 -18
- package/chunks/{chunk-IRKQ4YYX.js → chunk-SVWWF5TZ.js} +29 -1
- package/chunks/{chunk-5VZFJTL2.js → chunk-SXEE6PND.js} +2 -2
- package/chunks/{chunk-743XE7N7.js → chunk-T4JVQR7Z.js} +2 -2
- package/chunks/{chunk-6RZX2HIH.js → chunk-TBEXLLAO.js} +2 -2
- package/chunks/{chunk-LN3WBOKU.js → chunk-TP2DUOB6.js} +8 -8
- package/chunks/{chunk-MWIO7MF6.js → chunk-TP6FYVQT.js} +2 -0
- package/chunks/{chunk-HRPFBHW7.js → chunk-TPKQIA7G.js} +1 -0
- package/chunks/{chunk-VH764G6B.js → chunk-TWC3FHUI.js} +4 -4
- package/chunks/{chunk-H3Q3RSKZ.js → chunk-U7O65WKL.js} +1 -1
- package/chunks/{chunk-IUJLW6ZI.js → chunk-UBEYS536.js} +7 -7
- package/chunks/{chunk-VEQBVJYH.js → chunk-UGS62IR2.js} +3 -3
- package/chunks/{chunk-VF6D6EGV.js → chunk-UKMWZ5NS.js} +109 -842
- package/chunks/{chunk-7GZCCHJL.js → chunk-VHKOULAI.js} +6 -5
- package/chunks/{chunk-ODBNTMZW.js → chunk-VID4BW52.js} +97 -86
- package/chunks/{chunk-7L35FKPF.js → chunk-VLZOU6UH.js} +7 -7
- package/chunks/{chunk-XBLG564H.js → chunk-VTBPMLRO.js} +12 -12
- package/chunks/{chunk-QTNCGZHQ.js → chunk-VX63RJXE.js} +9 -0
- package/chunks/{chunk-7VEYUF3N.js → chunk-W5ZQMAEM.js} +1 -1
- package/chunks/{chunk-XQ4RDO5B.js → chunk-WBCPROWX.js} +1 -1
- package/chunks/{chunk-RDV4NLI3.js → chunk-WS7MOFK6.js} +3 -3
- package/chunks/{chunk-FV4DM2M4.js → chunk-WXFK4MH7.js} +32 -12
- package/chunks/{chunk-XAXTQURR.js → chunk-WY4N6KS7.js} +4 -4
- package/chunks/{chunk-CABDNUJ4.js → chunk-XDQUDARC.js} +11 -14
- package/chunks/{chunk-YHDGABDC.js → chunk-XKBFYTCD.js} +1 -1
- package/chunks/{chunk-2EKVPSIJ.js → chunk-Y2MYW47X.js} +1 -1
- package/chunks/{chunk-Y6ZWXM44.js → chunk-YIU5PEAT.js} +2 -2
- package/chunks/{chunk-PSPAM24S.js → chunk-YKK2XXHF.js} +4 -0
- package/chunks/{chunk-HZ2HUXX7.js → chunk-YS2ZJSOA.js} +29 -12
- package/chunks/{chunk-OFVAS4AR.js → chunk-ZGQIIGNQ.js} +2 -2
- package/chunks/{chunk-HNLMYDQE.js → chunk-ZHECLGA6.js} +2 -4
- package/chunks/{chunk-XBVNNDPK.js → chunk-ZHKTKHMO.js} +8 -1
- package/chunks/{chunk-OWCFKIFQ.js → chunk-ZKYR7QS4.js} +1 -1
- package/chunks/{chunk-YZTGGCEE.js → chunk-ZKZHSB5W.js} +1 -1
- package/chunks/{chunk-ERXNTINK.js → chunk-ZT6EPPBY.js} +1 -1
- package/chunks/{chunk-565U2ANU.js → chunk-ZTTC7T4X.js} +1 -1
- package/chunks/{chunk-MMMA36MN.js → chunk-ZUQVZTWG.js} +3 -3
- package/chunks/{chunk-7OCIQNKX.js → chunk-ZW2EUO2A.js} +1 -1
- package/chunks/{config-utils-37FHWPTP.js → config-utils-S5LFS4RN.js} +67 -59
- package/chunks/{contextCommand-R4JUBV5N.js → contextCommand-XXKZMMSQ.js} +64 -56
- package/chunks/{core-runtime-6U4OXU5C.js → core-runtime-YGUA42AZ.js} +68 -59
- package/chunks/{create-sub-session-LLUYAGZN.js → create-sub-session-SEK6KCYR.js} +64 -56
- package/chunks/{create-sub-session-TGIX63YU.js → create-sub-session-TIGCFGCS.js} +2 -2
- package/chunks/{cron-create-GTPVMJCF.js → cron-create-AKWX67FO.js} +1 -1
- package/chunks/{cron-delete-ZBK27Z4K.js → cron-delete-XPB6IYZJ.js} +1 -1
- package/chunks/{cron-list-KTFKFDKC.js → cron-list-XBKO4WU5.js} +1 -1
- package/chunks/{daemon-UI6SQSBV.js → daemon-G5TYKZD6.js} +2 -2
- package/chunks/{daemon-git-worktree-guard-O2UTNFJC.js → daemon-git-worktree-guard-3AWINPPX.js} +65 -57
- package/chunks/{daemon-status-provider-7GMAKSTX.js → daemon-status-provider-RTKHKUFJ.js} +73 -65
- package/chunks/{daemon-trust-policy-VNP76VMO.js → daemon-trust-policy-6YQOC7B6.js} +69 -61
- package/chunks/{daemon-trust-policy-monitor-TD5O3BZA.js → daemon-trust-policy-monitor-EN5L23GS.js} +69 -61
- package/chunks/{de-UU2YTO37.js → de-OOLZAU2U.js} +1 -1
- package/chunks/{deferred-core-runtime-NJM63YJS.js → deferred-core-runtime-JPLQRVZO.js} +62 -54
- package/chunks/{display-image-CTNHJRZC.js → display-image-NAH3AZ63.js} +3 -3
- package/chunks/{dist-STAGIFNB.js → dist-3BJVSJ7D.js} +389 -724
- package/chunks/{dist-OR2ZQTXZ.js → dist-65Q3TRLH.js} +16 -36
- package/chunks/{dist-24TCWK5H.js → dist-HX2LG76F.js} +233 -35
- package/chunks/{dist-XJ25G6OH.js → dist-J7PDFK53.js} +13 -38
- package/chunks/{dist-WZTUKIDR.js → dist-JCXKXRH6.js} +3 -6
- package/chunks/{dist-M4CBX53H.js → dist-LHGMHIDK.js} +2 -6
- package/chunks/{dist-5I4HLUTO.js → dist-QPTIRE3U.js} +4 -13
- package/chunks/{dist-FDISN4AK.js → dist-SBK33YLC.js} +5 -40
- package/chunks/{dist-NQ2636VT.js → dist-WMFHZG3R.js} +2 -5
- package/chunks/{edit-GL7OA6RV.js → edit-QXJZIWRQ.js} +50 -44
- package/chunks/{en-YJNRUQG4.js → en-7BZ2OZKH.js} +2 -1
- package/chunks/{enter-worktree-YFTKHXHZ.js → enter-worktree-54L5QJ3N.js} +4 -4
- package/chunks/{enterPlanMode-VC4BCSZE.js → enterPlanMode-2ITCVQ5N.js} +47 -41
- package/chunks/{environment-BI6IBAZJ.js → environment-URPO5ORZ.js} +65 -57
- package/chunks/{errors-D6G2ZM2R.js → errors-TDUYLEKI.js} +64 -56
- package/chunks/{exit-worktree-NF2XEMES.js → exit-worktree-EORJDKDS.js} +4 -4
- package/chunks/{exitPlanMode-DX446CA6.js → exitPlanMode-RA7KMUEW.js} +47 -41
- package/chunks/{fast-path-MAYDLJIP.js → fast-path-Q2JYP64P.js} +7 -7
- package/chunks/{fast-path-settings-SATXY3PD.js → fast-path-settings-GTHZLVSS.js} +2 -2
- package/chunks/{fr-HKNWVXRJ.js → fr-JJWM2HUS.js} +1 -1
- package/chunks/{glob-TVKRFY36.js → glob-VHSV4BKE.js} +50 -44
- package/chunks/{goal-tools-CA6YANRN.js → goal-tools-5FIE56CK.js} +53 -43
- package/chunks/{grep-BLHF2S5D.js → grep-3PKFKLCA.js} +2 -2
- package/chunks/{handleAutoUpdate-AW4ZAHON.js → handleAutoUpdate-7FZFLKNZ.js} +65 -57
- package/chunks/{i18n-IH5CRAY7.js → i18n-NTFQDWKR.js} +63 -55
- package/chunks/{image-gen-XP4NNIYG.js → image-gen-TF3IQWSH.js} +7 -6
- package/chunks/{initializer-UBR37ZNM.js → initializer-LB3T635H.js} +69 -61
- package/chunks/{installationInfo-Y52756EC.js → installationInfo-KRO433ZG.js} +62 -54
- package/chunks/{ja-GJS5RZGU.js → ja-L67TXFDJ.js} +1 -1
- package/chunks/{list-7V5JDZPO.js → list-NEP3WPZ7.js} +72 -64
- package/chunks/{list-agents-I5TRH3J7.js → list-agents-QLDXS5OD.js} +18 -8
- package/chunks/{llm-QDB6JVF5.js → llm-AZEJEIAD.js} +141 -128
- package/chunks/{llm-content-generator-EO6MZCEO.js → llm-content-generator-KWXFHBR3.js} +6 -5
- package/chunks/{loadedSettingsAdapter-I3YQKMC4.js → loadedSettingsAdapter-NZORJLSD.js} +69 -61
- package/chunks/{loggingContentGenerator-MNXYUGDG.js → loggingContentGenerator-NGHVU6AK.js} +69 -62
- package/chunks/{loop-wakeup-HL6XOWI4.js → loop-wakeup-HHMYIC7Z.js} +2 -2
- package/chunks/{ls-YV7RKLKY.js → ls-N7ABR6HI.js} +4 -4
- package/chunks/{lsp-NO3AMRZT.js → lsp-LTOFWG5P.js} +1 -1
- package/chunks/{managed-npm-update-EA3EXPTO.js → managed-npm-update-3LHNBEAG.js} +62 -54
- package/chunks/{mcp-QTAJ544Y.js → mcp-4SWJKDX7.js} +69 -61
- package/chunks/{monitor-6FQKQOTP.js → monitor-V5EFBZC7.js} +49 -43
- package/chunks/{nonInteractiveCli-MRCTZL5X.js → nonInteractiveCli-5UFUBUAT.js} +117 -109
- package/chunks/{notebook-edit-BQQCKI7K.js → notebook-edit-ATV46KWD.js} +48 -42
- package/chunks/{open-with-auth-D6JD6LDS.js → open-with-auth-6MVIHMXB.js} +1 -1
- package/chunks/openai-WX26N5OJ.js +47 -0
- package/chunks/{openaiContentGenerator-TTSKXNVH.js → openaiContentGenerator-BKTO5QJK.js} +31 -25
- package/chunks/openaiResponsesContentGenerator-RTCAJ5V5.js +1658 -0
- package/chunks/{pidfile-KPIS6RIT.js → pidfile-JAIOWPI3.js} +65 -55
- package/chunks/process-registry-X6ZCASEN.js +10 -0
- package/chunks/{processUtils-ZCASPKK4.js → processUtils-TCQH3LVD.js} +2 -2
- package/chunks/{prompt-terminal-ledger-D6HM6TV7.js → prompt-terminal-ledger-BYXHEUHX.js} +63 -55
- package/chunks/{pt-FXMYXEUV.js → pt-77SBDL4B.js} +1 -1
- package/chunks/{qwenContentGenerator-GGZEFLBD.js → qwenContentGenerator-K5TJK75P.js} +60 -52
- package/chunks/{qwenOAuth2-KX6LVYQ3.js → qwenOAuth2-NOXRK323.js} +6 -5
- package/chunks/{read-file-VE5GDFLP.js → read-file-DL7GNZD5.js} +11 -9
- package/chunks/{read-mcp-resource-D3N75DGF.js → read-mcp-resource-B37WANAQ.js} +1 -1
- package/chunks/{record-artifact-Q5CRGJTP.js → record-artifact-OAXWXZ5D.js} +2 -2
- package/chunks/record-source-D7R7X3GT.js +22 -0
- package/chunks/{report-findings-TJ34R7QK.js → report-findings-AR3VC6EQ.js} +3 -3
- package/chunks/{request-shutdown-LRKMTBAD.js → request-shutdown-IKNWTX5M.js} +5 -5
- package/chunks/{resumeHistoryUtils-HSSGMYDC.js → resumeHistoryUtils-OYKXZ4YO.js} +68 -60
- package/chunks/{ripGrep-SEJE7AA6.js → ripGrep-EOUMIU4K.js} +15 -13
- package/chunks/{ru-RMHURE5U.js → ru-UYWHKWF2.js} +1 -1
- package/chunks/{run-qwen-serve-OJYVH7N6.js → run-qwen-serve-PPTGWC5B.js} +471 -152
- package/chunks/{runtime-KGMQQFJD.js → runtime-5RO22P2N.js} +77 -67
- package/chunks/{scheduled-tasks-7H5HWHYD.js → scheduled-tasks-YGERFWLZ.js} +70 -62
- package/chunks/{scheduler-BE42AKDG.js → scheduler-S6WU6M3C.js} +64 -56
- package/chunks/{sdk-exporters-grpc-MXTVSE3C.js → sdk-exporters-grpc-Y2ZUQDUQ.js} +2 -2
- package/chunks/{sdk-exporters-http-7R2ARBPV.js → sdk-exporters-http-VWTF4W6K.js} +3 -3
- package/chunks/{sdk-impl-YOLO7LV4.js → sdk-impl-G6FVTBQZ.js} +9 -9
- package/chunks/{send-message-AWKUDJBH.js → send-message-TWOGWCBG.js} +13 -10
- package/chunks/{serve-KZVKYMSL.js → serve-HT4WOCWS.js} +70 -62
- package/chunks/{server-PJRALPJQ.js → server-SWXVPRCS.js} +2977 -617
- package/chunks/{session-IHITXU2S.js → session-6DSFUOMO.js} +154 -119
- package/chunks/{session-attachments-root-GQ2TUI3Y.js → session-attachments-root-SOZCTQWW.js} +62 -54
- package/chunks/{session-pr-refresh-H43LULTE.js → session-pr-refresh-F7XUBQBH.js} +70 -62
- package/chunks/{settings-RKEQQDFC.js → settings-SWQH36PO.js} +74 -66
- package/chunks/{shell-6PJ444U5.js → shell-XUQL6EYV.js} +47 -41
- package/chunks/{skill-Q3UP7B5V.js → skill-HNRDD54C.js} +33 -23
- package/chunks/{skill-settings-LZR5YRRW.js → skill-settings-JU72PCII.js} +68 -60
- package/chunks/{spawnChannel-WM3DT2BF.js → spawnChannel-7ZVM3GBU.js} +65 -57
- package/chunks/{standalone-update-E5474IBI.js → standalone-update-64JQY2LX.js} +64 -56
- package/chunks/{start-opentui-ui-WLWZNQ2I.js → start-opentui-ui-RSLBXESU.js} +554 -297
- package/chunks/{startInteractiveUI-FBQSGWGO.js → startInteractiveUI-ZDPHD7XE.js} +1282 -1915
- package/chunks/{syntheticOutput-D2P5V6RG.js → syntheticOutput-F6F27JMK.js} +2 -2
- package/chunks/{task-create-PMAFST2T.js → task-create-Y623TBHB.js} +10 -10
- package/chunks/{task-list-R2HSY2NC.js → task-list-FCPEEGWL.js} +3 -3
- package/chunks/{task-stop-BFSKRTGV.js → task-stop-QTKZXLPH.js} +1 -1
- package/chunks/{task-update-JYC57USF.js → task-update-YLSXF25N.js} +10 -10
- package/chunks/{team-create-VIGUFUT4.js → team-create-U52VYSNO.js} +49 -43
- package/chunks/{team-delete-CBHVBTPB.js → team-delete-S7TLHZCF.js} +3 -3
- package/chunks/{team-plan-approval-HQVZA3MD.js → team-plan-approval-IQ4ADQIK.js} +47 -41
- package/chunks/{terminal-image-renderer-LUKNCOVM.js → terminal-image-renderer-ZEMF7LB2.js} +64 -56
- package/chunks/{theme-manager-LOENKYLY.js → theme-manager-DK2S2SOX.js} +62 -54
- package/chunks/{todoWrite-5ERKFWAK.js → todoWrite-5QI2H2FW.js} +4 -4
- package/chunks/{tool-search-ZIFAQCE2.js → tool-search-6U4OQG7K.js} +21 -15
- package/chunks/{total-session-admission-FUUJH3QH.js → total-session-admission-BOARHBZU.js} +68 -60
- package/chunks/{trustedFolders-C76KYROP.js → trustedFolders-GKQZXZSV.js} +63 -55
- package/chunks/{update-relaunch-4G2SRXKX.js → update-relaunch-GLACF7PX.js} +5 -5
- package/chunks/{updateCheck-EIZIO7HI.js → updateCheck-NLBSZB4Q.js} +64 -56
- package/chunks/{useAutoAcceptIndicator-EAA6KSY4.js → useAutoAcceptIndicator-3X3BYU7H.js} +72 -64
- package/chunks/{validateNonInterActiveAuth-BRX22QCN.js → validateNonInterActiveAuth-NE3JLOIR.js} +114 -106
- package/chunks/{version-E56RU7PR.js → version-6H5YAT4N.js} +3 -1
- package/chunks/{web-fetch-AAUCD7RM.js → web-fetch-RWSO7TTN.js} +15 -13
- package/chunks/{web-search-HFUQF44Q.js → web-search-DADI3LV5.js} +560 -322
- package/chunks/{web-shell-static-POZHGGXE.js → web-shell-static-CCN4JZEE.js} +5 -4
- package/chunks/workflow-LPGCZCIT.js +1224 -0
- package/chunks/workspace-providers-status-QBRBEFTO.js +127 -0
- package/chunks/{workspace-registration-store-YL7HLYYI.js → workspace-registration-store-WUKTMJPW.js} +3 -2
- package/chunks/{workspace-registry-BNRP2ELW.js → workspace-registry-CJV7KVGF.js} +68 -60
- package/chunks/{workspace-runtime-coordinator-WKGF7VHS.js → workspace-runtime-coordinator-7LYMFMFF.js} +71 -61
- package/chunks/{workspace-service-4MYO72MM.js → workspace-service-HWXZSA4J.js} +75 -67
- package/chunks/{workspace-skills-status-SU66TJLZ.js → workspace-skills-status-D6QXUWCC.js} +70 -62
- package/chunks/{workspace-trust-reconciler-D5QT7WQB.js → workspace-trust-reconciler-VZX7G7CZ.js} +75 -67
- package/chunks/{write-file-NVPQE2AZ.js → write-file-KKHV26YV.js} +49 -43
- package/chunks/{zh-VBFCRQBL.js → zh-J2GLI64H.js} +2 -1
- package/chunks/{zh-TW-N2TBF2F2.js → zh-TW-TBAICUJQ.js} +2 -1
- package/chunks/{zoom-image-RJHC66WG.js → zoom-image-OG7X7KAA.js} +12 -10
- package/cli.js +14 -14
- package/export-transcript-document.css +1 -0
- package/export-transcript-document.js +164 -165
- package/locales/ca.js +2 -2
- package/locales/de.js +2 -2
- package/locales/en.js +3 -2
- package/locales/fr.js +2 -2
- package/locales/ja.js +2 -2
- package/locales/pt.js +2 -2
- package/locales/ru.js +2 -2
- package/locales/zh-TW.js +3 -2
- package/locales/zh.js +3 -2
- package/package.json +6 -5
- package/web-shell/assets/{abnfDiagram-VCTEODGH-DHc6plZn.js → abnfDiagram-VCTEODGH-NT0lTLRG.js} +1 -1
- package/web-shell/assets/{arc-BQ9m8TDV.js → arc-DDqnIMMx.js} +1 -1
- package/web-shell/assets/{architectureDiagram-5GKGNRK7-D5ap3oVB.js → architectureDiagram-5GKGNRK7-DfYghE3W.js} +1 -1
- package/web-shell/assets/{blockDiagram-NRAW4CY4-BIbnyNph.js → blockDiagram-NRAW4CY4-DlqJIx5c.js} +1 -1
- package/web-shell/assets/{c4Diagram-UCG6FXSJ-BRsdx_iG.js → c4Diagram-UCG6FXSJ-CinqLGU4.js} +1 -1
- package/web-shell/assets/channel-BHGoSkEv.js +1 -0
- package/web-shell/assets/{chunk-2Q5K7J3B-3lf1fNlx.js → chunk-2Q5K7J3B-CsjJX5M7.js} +1 -1
- package/web-shell/assets/{chunk-5VM5RSS4-DP8VNRc4.js → chunk-5VM5RSS4-CaVb2tdH.js} +1 -1
- package/web-shell/assets/{chunk-F27PBJKO-DrohDmZ6.js → chunk-F27PBJKO-CRyErlzW.js} +1 -1
- package/web-shell/assets/{chunk-G27WJ6UU-UZ2QhSx6.js → chunk-G27WJ6UU-7I79DZCf.js} +1 -1
- package/web-shell/assets/{chunk-JWPE2WC7-BIMHVcZK.js → chunk-JWPE2WC7-Dz4cac5F.js} +1 -1
- package/web-shell/assets/{chunk-LCL6LL3I-izRxdSDd.js → chunk-LCL6LL3I-Ls24Derb.js} +1 -1
- package/web-shell/assets/{chunk-POPQ4Y6H-CXADD4PP.js → chunk-POPQ4Y6H-JzYe4qx7.js} +1 -1
- package/web-shell/assets/{chunk-SVP7TREG-B96d8Y_1.js → chunk-SVP7TREG-BxDwesA-.js} +1 -1
- package/web-shell/assets/{chunk-XXDRQBXY-CF2sVQpv.js → chunk-XXDRQBXY-CW4hjgWc.js} +1 -1
- package/web-shell/assets/classDiagram-DTDB5LWJ-E47Xnn15.js +1 -0
- package/web-shell/assets/classDiagram-v2-JRS7N3AN-E47Xnn15.js +1 -0
- package/web-shell/assets/{cose-bilkent-JH36ORCC-CT6tXVAS.js → cose-bilkent-JH36ORCC-DxikE9iF.js} +1 -1
- package/web-shell/assets/{cynefin-OW5HDTMX-X1NS4vtV.js → cynefin-OW5HDTMX-CvVsIkVN.js} +1 -1
- package/web-shell/assets/{cynefinDiagram-5FMLGOSQ-DNsKNOT4.js → cynefinDiagram-5FMLGOSQ-CDHkk3wq.js} +1 -1
- package/web-shell/assets/{dagre-3AP2YEHR-9-AHKqsb.js → dagre-3AP2YEHR-BgLdkVLT.js} +1 -1
- package/web-shell/assets/{diagram-S7CK7UJ4-Bjgms7j6.js → diagram-S7CK7UJ4-DP43cGhe.js} +1 -1
- package/web-shell/assets/{diagram-UQ7AKVKN-h6bCprbE.js → diagram-UQ7AKVKN-BWrZYhoT.js} +1 -1
- package/web-shell/assets/{diagram-VSXAHHWV-4SbQXVLt.js → diagram-VSXAHHWV-B80wjH_n.js} +1 -1
- package/web-shell/assets/{diagram-VX7I27RA-B5gPCzzB.js → diagram-VX7I27RA-DPpKmDsY.js} +1 -1
- package/web-shell/assets/{diagram-Z3DM3KII-DFJXIA3A.js → diagram-Z3DM3KII-kaEBNbNU.js} +1 -1
- package/web-shell/assets/{ebnfDiagram-PWID7BFC-FwyaU7VY.js → ebnfDiagram-PWID7BFC-1-qbEZvk.js} +1 -1
- package/web-shell/assets/{erDiagram-SSCWMZ5O-8vJQh2te.js → erDiagram-SSCWMZ5O-CrK2gMkV.js} +1 -1
- package/web-shell/assets/{flowDiagram-A5DVABFB-BzA_1gMN.js → flowDiagram-A5DVABFB-Dic2xofW.js} +1 -1
- package/web-shell/assets/{ganttDiagram-EL5Y4UJY-Co-ABbVX.js → ganttDiagram-EL5Y4UJY-DJko8vT7.js} +1 -1
- package/web-shell/assets/{gitGraphDiagram-WWUBYQGX-DW_FcyrX.js → gitGraphDiagram-WWUBYQGX-DxsQ-bHT.js} +1 -1
- package/web-shell/assets/index-DY8CxdBr.js +2173 -0
- package/web-shell/assets/index-eBxK3rs2.css +36 -0
- package/web-shell/assets/{index-BbMXfhNG.js → index-t7VBrUeD.js} +1 -1
- package/web-shell/assets/{infoDiagram-RXCK75RN-BEgfhUFN.js → infoDiagram-RXCK75RN-DcRUJbNi.js} +1 -1
- package/web-shell/assets/{ishikawaDiagram-5VMMS53U-DCsMxQmc.js → ishikawaDiagram-5VMMS53U-CUPw-2_e.js} +1 -1
- package/web-shell/assets/{journeyDiagram-EYS64GPL-DyIEYoHz.js → journeyDiagram-EYS64GPL-yOHhZxkW.js} +1 -1
- package/web-shell/assets/{kanban-definition-3QL26DDD-CkxjqCNr.js → kanban-definition-3QL26DDD-CFUGBbqz.js} +1 -1
- package/web-shell/assets/{layout-BEWc0Al9.js → layout-BoilNfBU.js} +1 -1
- package/web-shell/assets/{linear-CNuNxirL.js → linear-DOuHaPrl.js} +1 -1
- package/web-shell/assets/{mermaid.core-DZBre674.js → mermaid.core-1G1fXWda.js} +6 -6
- package/web-shell/assets/{mindmap-definition-FBJOCRG2-CpafFz_F.js → mindmap-definition-FBJOCRG2-B8BhkrOX.js} +1 -1
- package/web-shell/assets/{pegDiagram-XKGWAZYB-DfZqk_dq.js → pegDiagram-XKGWAZYB-CipC5K1D.js} +1 -1
- package/web-shell/assets/{pieDiagram-E7YTZNPT-S0UWXlgC.js → pieDiagram-E7YTZNPT-CHBDFDUJ.js} +1 -1
- package/web-shell/assets/{quadrantDiagram-AXDQQJYC-dd37_Ohj.js → quadrantDiagram-AXDQQJYC-_iiBkoZO.js} +1 -1
- package/web-shell/assets/{railroadDiagram-O6MQD6OU-CH8NJZ7u.js → railroadDiagram-O6MQD6OU-Cx1peHDi.js} +1 -1
- package/web-shell/assets/{requirementDiagram-EFPCY7ZU-CFdqWYih.js → requirementDiagram-EFPCY7ZU-CBRiPbdQ.js} +1 -1
- package/web-shell/assets/{sankeyDiagram-P5KCCOFB-CsddcEGD.js → sankeyDiagram-P5KCCOFB-TT6GcHaZ.js} +1 -1
- package/web-shell/assets/{sequenceDiagram-WJ2MYXX4-BZ270mGw.js → sequenceDiagram-WJ2MYXX4-CWP42PNb.js} +1 -1
- package/web-shell/assets/{sizeCapture-X5ZJPWSS-CGaS4DBV.js → sizeCapture-X5ZJPWSS-Bp94roEG.js} +1 -1
- package/web-shell/assets/{stateDiagram-HBIQ2CUA-COpIzMu6.js → stateDiagram-HBIQ2CUA-0ftrzTAy.js} +1 -1
- package/web-shell/assets/stateDiagram-v2-4QOOHH4V-PgAST0dK.js +1 -0
- package/web-shell/assets/{swimlanes-XN3QIQJK-CMF889m3.js → swimlanes-XN3QIQJK-D-FsenYJ.js} +1 -1
- package/web-shell/assets/swimlanesDiagram-VK2B7HYN-BcWcB5bj.js +8 -0
- package/web-shell/assets/{timeline-definition-24CTP7MA-BelnxYz5.js → timeline-definition-24CTP7MA-Ctvrj28y.js} +1 -1
- package/web-shell/assets/{vennDiagram-4TSXK5OY-CU-NRqIB.js → vennDiagram-4TSXK5OY-5DZncjOt.js} +1 -1
- package/web-shell/assets/{wardleyDiagram-VM6X3IG4-CDNKqWh-.js → wardleyDiagram-VM6X3IG4-jZjYwPY7.js} +1 -1
- package/web-shell/assets/{xychartDiagram-S5SC5T6Z-CLqguL5D.js → xychartDiagram-S5SC5T6Z-Ci6Q2C2_.js} +1 -1
- package/web-shell/index.html +29 -5
- package/chunks/chunk-V7RNNPGC.js +0 -44
- package/chunks/chunk-X35VIWWJ.js +0 -276
- package/chunks/workflow-3MABM53N.js +0 -2771
- package/chunks/workspace-providers-status-2FRLBZ5I.js +0 -119
- package/web-shell/assets/channel-uMMdTrYk.js +0 -1
- package/web-shell/assets/classDiagram-DTDB5LWJ-DcY-26Ig.js +0 -1
- package/web-shell/assets/classDiagram-v2-JRS7N3AN-DcY-26Ig.js +0 -1
- package/web-shell/assets/index-Bu-rZoJ-.js +0 -2150
- package/web-shell/assets/index-CsPwZ1ut.css +0 -36
- package/web-shell/assets/stateDiagram-v2-4QOOHH4V-D6qEVAji.js +0 -1
- package/web-shell/assets/swimlanesDiagram-VK2B7HYN-mem5Jj4m.js +0 -8
- /package/chunks/{chunk-JA5CBKRP.js → chunk-7NXSVSFB.js} +0 -0
|
@@ -0,0 +1,919 @@
|
|
|
1
|
+
// Force strict mode and setup for ESM
|
|
2
|
+
"use strict";
|
|
3
|
+
import {
|
|
4
|
+
ProcessRegistry
|
|
5
|
+
} from "./chunk-BYUAT5OC.js";
|
|
6
|
+
import {
|
|
7
|
+
createStderrForwarder
|
|
8
|
+
} from "./chunk-IUVIBDKU.js";
|
|
9
|
+
import "./chunk-HGEUHUEV.js";
|
|
10
|
+
import "./chunk-M5GB774H.js";
|
|
11
|
+
import "./chunk-3VUENPWF.js";
|
|
12
|
+
import {
|
|
13
|
+
ClientSideConnection,
|
|
14
|
+
PROTOCOL_VERSION,
|
|
15
|
+
RequestError,
|
|
16
|
+
ndJsonStream
|
|
17
|
+
} from "./chunk-IJOS26LH.js";
|
|
18
|
+
import "./chunk-F2RKL5I2.js";
|
|
19
|
+
import "./chunk-GELRJXE2.js";
|
|
20
|
+
import "./chunk-32CM56LO.js";
|
|
21
|
+
import "./chunk-AEY27Z35.js";
|
|
22
|
+
import "./chunk-Y2MYW47X.js";
|
|
23
|
+
import "./chunk-LJZSMWOH.js";
|
|
24
|
+
import "./chunk-TP2DUOB6.js";
|
|
25
|
+
import "./chunk-NUQVB25K.js";
|
|
26
|
+
import "./chunk-ZKZHSB5W.js";
|
|
27
|
+
import "./chunk-L2KF7HUE.js";
|
|
28
|
+
import "./chunk-DJXSOEFB.js";
|
|
29
|
+
import "./chunk-ZKYR7QS4.js";
|
|
30
|
+
import "./chunk-532WHF4F.js";
|
|
31
|
+
import "./chunk-BUQN5LTI.js";
|
|
32
|
+
import "./chunk-ZPJWUGCS.js";
|
|
33
|
+
import "./chunk-LK2WUCDQ.js";
|
|
34
|
+
import "./chunk-5FKZ7KFQ.js";
|
|
35
|
+
import "./chunk-FRVV5SSD.js";
|
|
36
|
+
import {
|
|
37
|
+
AgentEventEmitter,
|
|
38
|
+
renderSubagentSystemPrompt
|
|
39
|
+
} from "./chunk-JV5YASQA.js";
|
|
40
|
+
import "./chunk-GOFAQQZA.js";
|
|
41
|
+
import "./chunk-TWPJO254.js";
|
|
42
|
+
import "./chunk-CQ35AJ4Z.js";
|
|
43
|
+
import {
|
|
44
|
+
sanitizeChildEnv
|
|
45
|
+
} from "./chunk-65I7S4Z3.js";
|
|
46
|
+
import "./chunk-6HUXPLB5.js";
|
|
47
|
+
import "./chunk-7CLLH5TI.js";
|
|
48
|
+
import "./chunk-XKBFYTCD.js";
|
|
49
|
+
import "./chunk-ZTTC7T4X.js";
|
|
50
|
+
import "./chunk-E4UEO3XM.js";
|
|
51
|
+
import "./chunk-IAEXTMED.js";
|
|
52
|
+
import "./chunk-IRH27ZC2.js";
|
|
53
|
+
import "./chunk-QHWCP53L.js";
|
|
54
|
+
import "./chunk-F53KKZUD.js";
|
|
55
|
+
import "./chunk-O6GEWCJA.js";
|
|
56
|
+
import "./chunk-36HCNKDS.js";
|
|
57
|
+
import "./chunk-6PVPNMXU.js";
|
|
58
|
+
import "./chunk-2SZH22YO.js";
|
|
59
|
+
import "./chunk-DTNV6UZY.js";
|
|
60
|
+
import "./chunk-QJNDUTOL.js";
|
|
61
|
+
import "./chunk-JXNIF2O5.js";
|
|
62
|
+
import "./chunk-CGKEUUYG.js";
|
|
63
|
+
import "./chunk-ELRMZTPF.js";
|
|
64
|
+
import "./chunk-CHEIIBT3.js";
|
|
65
|
+
import "./chunk-PLLIWEM3.js";
|
|
66
|
+
import "./chunk-5GLDOLNQ.js";
|
|
67
|
+
import "./chunk-CH2YDT6X.js";
|
|
68
|
+
import "./chunk-JX6XHPTX.js";
|
|
69
|
+
import "./chunk-ZSTCM3MX.js";
|
|
70
|
+
import "./chunk-MLXTMF7H.js";
|
|
71
|
+
import "./chunk-LILGKQ4B.js";
|
|
72
|
+
import "./chunk-3CZ2BQV6.js";
|
|
73
|
+
import "./chunk-SAH4BD2J.js";
|
|
74
|
+
import "./chunk-CAAMI77K.js";
|
|
75
|
+
import "./chunk-U7O65WKL.js";
|
|
76
|
+
import "./chunk-S6LOFUVP.js";
|
|
77
|
+
import "./chunk-FN3JNDRU.js";
|
|
78
|
+
import "./chunk-EUURTIV6.js";
|
|
79
|
+
import "./chunk-G6UUOCUT.js";
|
|
80
|
+
import "./chunk-IZ2U57NY.js";
|
|
81
|
+
import "./chunk-NUQ4GK5I.js";
|
|
82
|
+
import "./chunk-K2OJUPOE.js";
|
|
83
|
+
import "./chunk-B6BDT4RX.js";
|
|
84
|
+
import "./chunk-NAVJD2PQ.js";
|
|
85
|
+
import "./chunk-ZGQIIGNQ.js";
|
|
86
|
+
import "./chunk-ZHECLGA6.js";
|
|
87
|
+
import "./chunk-QHMLYMMS.js";
|
|
88
|
+
import "./chunk-VNOVK4I7.js";
|
|
89
|
+
import "./chunk-CFKIH3D3.js";
|
|
90
|
+
import "./chunk-JL6APGBX.js";
|
|
91
|
+
import "./chunk-DJ2GSRLV.js";
|
|
92
|
+
import "./chunk-L3DTX6U4.js";
|
|
93
|
+
import "./chunk-C75BXMPM.js";
|
|
94
|
+
import "./chunk-KFFCDLKV.js";
|
|
95
|
+
import "./chunk-ZW2EUO2A.js";
|
|
96
|
+
import "./chunk-34ZYDM3F.js";
|
|
97
|
+
import "./chunk-5ETULJLP.js";
|
|
98
|
+
import "./chunk-ZHKTKHMO.js";
|
|
99
|
+
import "./chunk-VGC4I5JJ.js";
|
|
100
|
+
import "./chunk-EDIDYZBT.js";
|
|
101
|
+
import "./chunk-HD7O6WLV.js";
|
|
102
|
+
import "./chunk-J6MB5ZHZ.js";
|
|
103
|
+
import "./chunk-WZAD4ZNJ.js";
|
|
104
|
+
import "./chunk-3FPYT6QC.js";
|
|
105
|
+
import "./chunk-FPGTNKCP.js";
|
|
106
|
+
import "./chunk-TIGXX4PA.js";
|
|
107
|
+
import "./chunk-RJZTX2OF.js";
|
|
108
|
+
import "./chunk-XFFRI3WM.js";
|
|
109
|
+
import "./chunk-ERU3SDXT.js";
|
|
110
|
+
import "./chunk-EWJTAP3Y.js";
|
|
111
|
+
import "./chunk-HHJLM3WQ.js";
|
|
112
|
+
import "./chunk-W5ZQMAEM.js";
|
|
113
|
+
import "./chunk-74TONY4F.js";
|
|
114
|
+
import "./chunk-HUXPEUFL.js";
|
|
115
|
+
import "./chunk-TP6FYVQT.js";
|
|
116
|
+
import {
|
|
117
|
+
createDebugLogger
|
|
118
|
+
} from "./chunk-ZAFYHRVY.js";
|
|
119
|
+
import "./chunk-TBWQLLFO.js";
|
|
120
|
+
import "./chunk-UKMWZ5NS.js";
|
|
121
|
+
import "./chunk-75DOP5OR.js";
|
|
122
|
+
import "./chunk-DMTGGOSA.js";
|
|
123
|
+
import "./chunk-YQ3U5MUC.js";
|
|
124
|
+
import "./chunk-MATEIJZF.js";
|
|
125
|
+
import {
|
|
126
|
+
init_esbuild_shims
|
|
127
|
+
} from "./chunk-5O2XNYP6.js";
|
|
128
|
+
import {
|
|
129
|
+
__name
|
|
130
|
+
} from "./chunk-J2S4EL5Y.js";
|
|
131
|
+
|
|
132
|
+
// packages/cli/src/external-agents/acp-subagent-executor.ts
|
|
133
|
+
init_esbuild_shims();
|
|
134
|
+
import { spawn } from "node:child_process";
|
|
135
|
+
import { Readable, Writable } from "node:stream";
|
|
136
|
+
|
|
137
|
+
// packages/core/src/subagent-runtime.ts
|
|
138
|
+
init_esbuild_shims();
|
|
139
|
+
|
|
140
|
+
// packages/cli/src/external-agents/acp-subagent-executor.ts
|
|
141
|
+
var INIT_TIMEOUT_MS = 1e4;
|
|
142
|
+
var debugLogger = createDebugLogger("EXTERNAL_AGENT");
|
|
143
|
+
function externalModelLabel(command) {
|
|
144
|
+
return `external-acp:${command.split(/[\\/]/).pop() ?? command}`;
|
|
145
|
+
}
|
|
146
|
+
__name(externalModelLabel, "externalModelLabel");
|
|
147
|
+
function isRecord(value) {
|
|
148
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
149
|
+
}
|
|
150
|
+
__name(isRecord, "isRecord");
|
|
151
|
+
var EXTERNAL_ACTION_PROMPT_MAX = 300;
|
|
152
|
+
function stripControlChars(value) {
|
|
153
|
+
let out = "";
|
|
154
|
+
for (const ch of value) {
|
|
155
|
+
const code = ch.codePointAt(0) ?? 0;
|
|
156
|
+
out += code >= 32 && code !== 127 && !(code >= 128 && code <= 159) ? ch : " ";
|
|
157
|
+
}
|
|
158
|
+
return out;
|
|
159
|
+
}
|
|
160
|
+
__name(stripControlChars, "stripControlChars");
|
|
161
|
+
function describeExternalAction(toolCall) {
|
|
162
|
+
const title = stripControlChars(
|
|
163
|
+
toolCall.title ?? toolCall.kind ?? "External action"
|
|
164
|
+
);
|
|
165
|
+
const raw = toolCall.rawInput;
|
|
166
|
+
if (!isRecord(raw)) return title;
|
|
167
|
+
const detail = stripControlChars(JSON.stringify(raw));
|
|
168
|
+
const rendered = `${title}: ${detail}`;
|
|
169
|
+
return rendered.length > EXTERNAL_ACTION_PROMPT_MAX ? `${rendered.slice(0, EXTERNAL_ACTION_PROMPT_MAX)}\u2026` : rendered;
|
|
170
|
+
}
|
|
171
|
+
__name(describeExternalAction, "describeExternalAction");
|
|
172
|
+
function assertExternalAgentSpawnPlatformSupported(platform = process.platform) {
|
|
173
|
+
if (platform === "win32") {
|
|
174
|
+
throw new Error(
|
|
175
|
+
"External ACP agents are not supported on Windows in this release: the executor spawn is POSIX-only. An npm-installed adapter resolves to a `.cmd` launcher that cannot be spawned without a shell, and the process-tree reaping is POSIX-specific. Run the external agent on macOS/Linux (or WSL). Windows support is a tracked follow-up."
|
|
176
|
+
);
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
__name(assertExternalAgentSpawnPlatformSupported, "assertExternalAgentSpawnPlatformSupported");
|
|
180
|
+
function resolvePermissionMode(permissionMode, approvalMode) {
|
|
181
|
+
switch ((approvalMode ?? permissionMode ?? "").trim().toLowerCase()) {
|
|
182
|
+
case "auto":
|
|
183
|
+
case "acceptedits":
|
|
184
|
+
case "auto-edit":
|
|
185
|
+
return "acceptEdits";
|
|
186
|
+
case "plan":
|
|
187
|
+
return "plan";
|
|
188
|
+
case "bypasspermissions":
|
|
189
|
+
case "bypass":
|
|
190
|
+
case "yolo":
|
|
191
|
+
return "bypass";
|
|
192
|
+
default:
|
|
193
|
+
return "default";
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
__name(resolvePermissionMode, "resolvePermissionMode");
|
|
197
|
+
var POLICY_MODE_ALIASES = {
|
|
198
|
+
bypass: ["bypassPermissions", "yolo"],
|
|
199
|
+
acceptEdits: ["acceptEdits", "auto-edit", "auto"],
|
|
200
|
+
plan: ["plan"],
|
|
201
|
+
default: ["default"]
|
|
202
|
+
};
|
|
203
|
+
function selectPeerModeId(policy, availableModeIds) {
|
|
204
|
+
return POLICY_MODE_ALIASES[policy].find(
|
|
205
|
+
(id) => availableModeIds.includes(id)
|
|
206
|
+
);
|
|
207
|
+
}
|
|
208
|
+
__name(selectPeerModeId, "selectPeerModeId");
|
|
209
|
+
function optionKindForOutcome(outcome) {
|
|
210
|
+
switch (outcome) {
|
|
211
|
+
case "proceed_once" /* ProceedOnce */:
|
|
212
|
+
case "proceed_once_and_switch_to_default" /* ProceedOnceAndSwitchToDefault */:
|
|
213
|
+
return "allow_once";
|
|
214
|
+
case "proceed_always" /* ProceedAlways */:
|
|
215
|
+
case "proceed_always_server" /* ProceedAlwaysServer */:
|
|
216
|
+
case "proceed_always_tool" /* ProceedAlwaysTool */:
|
|
217
|
+
case "proceed_always_project" /* ProceedAlwaysProject */:
|
|
218
|
+
case "proceed_always_user" /* ProceedAlwaysUser */:
|
|
219
|
+
return "allow_always";
|
|
220
|
+
case "modify_with_editor" /* ModifyWithEditor */:
|
|
221
|
+
case "cancel" /* Cancel */:
|
|
222
|
+
case "restore_previous" /* RestorePrevious */:
|
|
223
|
+
return "reject_once";
|
|
224
|
+
default: {
|
|
225
|
+
const exhaustive = outcome;
|
|
226
|
+
void exhaustive;
|
|
227
|
+
return "reject_once";
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
__name(optionKindForOutcome, "optionKindForOutcome");
|
|
232
|
+
function selectPermissionOption(options, outcome) {
|
|
233
|
+
if (outcome === "cancel" /* Cancel */) return void 0;
|
|
234
|
+
if (new Set(options.map((option) => option.optionId)).size !== options.length) {
|
|
235
|
+
return void 0;
|
|
236
|
+
}
|
|
237
|
+
const kind = optionKindForOutcome(outcome);
|
|
238
|
+
return (options.find((option) => option.kind === kind) ?? (kind === "allow_always" ? options.find((option) => option.kind === "allow_once") : void 0) ?? options.find((option) => option.kind === "reject_once") ?? options.find((option) => option.kind === "reject_always"))?.optionId;
|
|
239
|
+
}
|
|
240
|
+
__name(selectPermissionOption, "selectPermissionOption");
|
|
241
|
+
function selectRejectOption(options) {
|
|
242
|
+
if (new Set(options.map((option) => option.optionId)).size !== options.length) {
|
|
243
|
+
return void 0;
|
|
244
|
+
}
|
|
245
|
+
return (options.find((option) => option.kind === "reject_once") ?? options.find((option) => option.kind === "reject_always"))?.optionId;
|
|
246
|
+
}
|
|
247
|
+
__name(selectRejectOption, "selectRejectOption");
|
|
248
|
+
function isExpectedExternalAgentCleanupExit(error) {
|
|
249
|
+
return error instanceof Error && /^ACP child pid=\d+ exited uncleanly during shutdown \(code=[^,]+, signal=[^)]+\)$/.test(
|
|
250
|
+
error.message
|
|
251
|
+
);
|
|
252
|
+
}
|
|
253
|
+
__name(isExpectedExternalAgentCleanupExit, "isExpectedExternalAgentCleanupExit");
|
|
254
|
+
function isUnprovenExternalAgentTreeExit(error) {
|
|
255
|
+
return error instanceof Error && /^ACP child pid=\d+ exited before its initial process-tree snapshot completed$/.test(
|
|
256
|
+
error.message
|
|
257
|
+
);
|
|
258
|
+
}
|
|
259
|
+
__name(isUnprovenExternalAgentTreeExit, "isUnprovenExternalAgentTreeExit");
|
|
260
|
+
var ExternalAgentTimeoutError = class extends Error {
|
|
261
|
+
static {
|
|
262
|
+
__name(this, "ExternalAgentTimeoutError");
|
|
263
|
+
}
|
|
264
|
+
constructor(timeoutMs) {
|
|
265
|
+
super(`External ACP operation timed out after ${timeoutMs}ms`);
|
|
266
|
+
this.name = "ExternalAgentTimeoutError";
|
|
267
|
+
}
|
|
268
|
+
};
|
|
269
|
+
var AcpSubagentExecutor = class _AcpSubagentExecutor {
|
|
270
|
+
constructor(params, child, emitter) {
|
|
271
|
+
this.params = params;
|
|
272
|
+
this.child = child;
|
|
273
|
+
this.emitter = emitter;
|
|
274
|
+
this.coreView = {
|
|
275
|
+
getEventEmitter: /* @__PURE__ */ __name(() => emitter, "getEventEmitter"),
|
|
276
|
+
modelConfig: {
|
|
277
|
+
...params.modelConfig,
|
|
278
|
+
model: externalModelLabel(params.spec.command)
|
|
279
|
+
}
|
|
280
|
+
};
|
|
281
|
+
void child.exited.then(
|
|
282
|
+
() => this.fail(new Error(`external agent "${params.name}" exited`)),
|
|
283
|
+
(error) => this.fail(error)
|
|
284
|
+
);
|
|
285
|
+
}
|
|
286
|
+
static {
|
|
287
|
+
__name(this, "AcpSubagentExecutor");
|
|
288
|
+
}
|
|
289
|
+
connection;
|
|
290
|
+
sessionId = "";
|
|
291
|
+
finalText = "";
|
|
292
|
+
thoughtText = "";
|
|
293
|
+
terminateMode = "ERROR" /* ERROR */;
|
|
294
|
+
round = 0;
|
|
295
|
+
durationMs = 0;
|
|
296
|
+
turnStartedAt = 0;
|
|
297
|
+
toolCalls = 0;
|
|
298
|
+
toolSucceeded = 0;
|
|
299
|
+
toolFailed = 0;
|
|
300
|
+
executing = false;
|
|
301
|
+
started = false;
|
|
302
|
+
disposed = false;
|
|
303
|
+
cancelled = false;
|
|
304
|
+
disposePromise;
|
|
305
|
+
provider;
|
|
306
|
+
pendingPermissions = /* @__PURE__ */ new Map();
|
|
307
|
+
tools = /* @__PURE__ */ new Map();
|
|
308
|
+
toolNames = /* @__PURE__ */ new Map();
|
|
309
|
+
finishedTools = /* @__PURE__ */ new Set();
|
|
310
|
+
failure = new AbortController();
|
|
311
|
+
coreView;
|
|
312
|
+
static async create(params) {
|
|
313
|
+
assertExternalAgentSpawnPlatformSupported();
|
|
314
|
+
if (params.runConfig.max_turns !== void 0) {
|
|
315
|
+
throw new Error("External ACP agents cannot enforce max_turns.");
|
|
316
|
+
}
|
|
317
|
+
const minutes = params.runConfig.max_time_minutes;
|
|
318
|
+
if (minutes !== void 0 && (!Number.isFinite(minutes) || minutes <= 0 || minutes * 6e4 > 2147483647)) {
|
|
319
|
+
throw new Error(
|
|
320
|
+
"External ACP max_time_minutes must be positive, finite, and within the Node timer range."
|
|
321
|
+
);
|
|
322
|
+
}
|
|
323
|
+
const child = spawn(params.spec.command, params.spec.args ?? [], {
|
|
324
|
+
cwd: params.runtimeContext.getTargetDir(),
|
|
325
|
+
stdio: ["pipe", "pipe", "pipe"],
|
|
326
|
+
detached: process.platform !== "win32",
|
|
327
|
+
windowsHide: true,
|
|
328
|
+
env: sanitizeChildEnv(process.env)
|
|
329
|
+
});
|
|
330
|
+
const tracked = new ProcessRegistry().reserve().attach(child, { ownsProcessTree: true });
|
|
331
|
+
const executor = new _AcpSubagentExecutor(
|
|
332
|
+
params,
|
|
333
|
+
tracked,
|
|
334
|
+
params.eventEmitter ?? new AgentEventEmitter()
|
|
335
|
+
);
|
|
336
|
+
child.on("error", (error) => executor.fail(error));
|
|
337
|
+
child.stdin.on("error", (error) => executor.fail(error));
|
|
338
|
+
child.stdout.on("error", (error) => executor.fail(error));
|
|
339
|
+
const forwarder = createStderrForwarder({
|
|
340
|
+
prefix: `[external-agent ${params.name}] `
|
|
341
|
+
});
|
|
342
|
+
child.stderr.setEncoding("utf8");
|
|
343
|
+
child.stderr.on("data", forwarder.onData);
|
|
344
|
+
child.stderr.on("end", forwarder.onEnd);
|
|
345
|
+
child.stderr.on("error", () => {
|
|
346
|
+
});
|
|
347
|
+
try {
|
|
348
|
+
executor.connection = new ClientSideConnection(
|
|
349
|
+
() => executor.buildClient(),
|
|
350
|
+
ndJsonStream(
|
|
351
|
+
Writable.toWeb(child.stdin),
|
|
352
|
+
Readable.toWeb(child.stdout)
|
|
353
|
+
)
|
|
354
|
+
);
|
|
355
|
+
void executor.connection.closed.then(
|
|
356
|
+
() => executor.fail(new Error("External ACP connection closed"))
|
|
357
|
+
);
|
|
358
|
+
await executor.wait(executor.connect(), INIT_TIMEOUT_MS);
|
|
359
|
+
return executor;
|
|
360
|
+
} catch (error) {
|
|
361
|
+
await executor.dispose();
|
|
362
|
+
throw error;
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
buildClient() {
|
|
366
|
+
return {
|
|
367
|
+
sessionUpdate: /* @__PURE__ */ __name(async (params) => this.onSessionUpdate(params), "sessionUpdate"),
|
|
368
|
+
requestPermission: /* @__PURE__ */ __name((params) => this.onRequestPermission(params), "requestPermission"),
|
|
369
|
+
readTextFile: /* @__PURE__ */ __name(async () => {
|
|
370
|
+
throw RequestError.methodNotFound("fs/read_text_file");
|
|
371
|
+
}, "readTextFile"),
|
|
372
|
+
writeTextFile: /* @__PURE__ */ __name(async () => {
|
|
373
|
+
throw RequestError.methodNotFound("fs/write_text_file");
|
|
374
|
+
}, "writeTextFile"),
|
|
375
|
+
extMethod: /* @__PURE__ */ __name(async (method) => {
|
|
376
|
+
throw RequestError.methodNotFound(method);
|
|
377
|
+
}, "extMethod"),
|
|
378
|
+
extNotification: /* @__PURE__ */ __name(async () => {
|
|
379
|
+
}, "extNotification")
|
|
380
|
+
};
|
|
381
|
+
}
|
|
382
|
+
async connect() {
|
|
383
|
+
const initialized = await this.connection.initialize({
|
|
384
|
+
protocolVersion: PROTOCOL_VERSION,
|
|
385
|
+
clientCapabilities: { fs: { readTextFile: false, writeTextFile: false } }
|
|
386
|
+
});
|
|
387
|
+
if (initialized.protocolVersion !== PROTOCOL_VERSION) {
|
|
388
|
+
throw new Error("Unsupported external ACP protocol version");
|
|
389
|
+
}
|
|
390
|
+
const session = await this.connection.newSession({
|
|
391
|
+
cwd: this.params.runtimeContext.getTargetDir(),
|
|
392
|
+
mcpServers: []
|
|
393
|
+
});
|
|
394
|
+
if (!session.sessionId)
|
|
395
|
+
throw new Error("External ACP agent returned no sessionId");
|
|
396
|
+
this.sessionId = session.sessionId;
|
|
397
|
+
const policy = resolvePermissionMode(
|
|
398
|
+
this.params.permissionMode,
|
|
399
|
+
this.params.approvalMode
|
|
400
|
+
);
|
|
401
|
+
const availableIds = session.modes?.availableModes.map((mode) => mode.id) ?? [];
|
|
402
|
+
const modeId = selectPeerModeId(policy, availableIds);
|
|
403
|
+
if (!modeId) {
|
|
404
|
+
throw new Error(
|
|
405
|
+
`External ACP agent does not advertise any mode for the host's ${policy} approval policy (advertised: ${availableIds.join(", ") || "none"})`
|
|
406
|
+
);
|
|
407
|
+
}
|
|
408
|
+
await this.connection.setSessionMode({ sessionId: this.sessionId, modeId });
|
|
409
|
+
}
|
|
410
|
+
fail(error) {
|
|
411
|
+
this.failure.abort(error);
|
|
412
|
+
this.drainPermissions();
|
|
413
|
+
}
|
|
414
|
+
async wait(operation, timeoutMs, signal) {
|
|
415
|
+
let timer;
|
|
416
|
+
let onFailure = /* @__PURE__ */ __name(() => {
|
|
417
|
+
}, "onFailure");
|
|
418
|
+
let onAbort = /* @__PURE__ */ __name(() => {
|
|
419
|
+
}, "onAbort");
|
|
420
|
+
const stopped = new Promise((_resolve, reject) => {
|
|
421
|
+
onFailure = /* @__PURE__ */ __name(() => reject(this.failure.signal.reason), "onFailure");
|
|
422
|
+
onAbort = /* @__PURE__ */ __name(() => reject(signal?.reason ?? new Error("External agent cancelled")), "onAbort");
|
|
423
|
+
this.failure.signal.addEventListener("abort", onFailure, { once: true });
|
|
424
|
+
signal?.addEventListener("abort", onAbort, { once: true });
|
|
425
|
+
if (this.failure.signal.aborted) onFailure();
|
|
426
|
+
if (signal?.aborted) onAbort();
|
|
427
|
+
if (timeoutMs !== void 0) {
|
|
428
|
+
timer = setTimeout(
|
|
429
|
+
() => reject(new ExternalAgentTimeoutError(timeoutMs)),
|
|
430
|
+
timeoutMs
|
|
431
|
+
);
|
|
432
|
+
}
|
|
433
|
+
});
|
|
434
|
+
try {
|
|
435
|
+
return await Promise.race([operation, stopped]);
|
|
436
|
+
} finally {
|
|
437
|
+
clearTimeout(timer);
|
|
438
|
+
this.failure.signal.removeEventListener("abort", onFailure);
|
|
439
|
+
signal?.removeEventListener("abort", onAbort);
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
async execute(context, signal, options = {}) {
|
|
443
|
+
if (context.get("initial_messages_override") !== void 0) {
|
|
444
|
+
throw new Error(
|
|
445
|
+
"External ACP agents cannot import in-process conversation history"
|
|
446
|
+
);
|
|
447
|
+
}
|
|
448
|
+
const continuation = this.started;
|
|
449
|
+
const system = continuation ? "" : renderSubagentSystemPrompt(
|
|
450
|
+
this.params.promptConfig,
|
|
451
|
+
context,
|
|
452
|
+
this.params.runtimeContext
|
|
453
|
+
);
|
|
454
|
+
const task = String(context.get("task_prompt") ?? "Get Started!");
|
|
455
|
+
await this.runTurn(
|
|
456
|
+
[
|
|
457
|
+
...system ? [{ type: "text", text: system }] : [],
|
|
458
|
+
{ type: "text", text: task }
|
|
459
|
+
],
|
|
460
|
+
signal,
|
|
461
|
+
options,
|
|
462
|
+
continuation ? [task] : void 0
|
|
463
|
+
);
|
|
464
|
+
}
|
|
465
|
+
async executeExternalInputs(inputs, signal, options = {}) {
|
|
466
|
+
if (inputs.length === 0) return;
|
|
467
|
+
await this.runTurn(this.inputPrompt(inputs), signal, options, inputs);
|
|
468
|
+
}
|
|
469
|
+
inputPrompt(inputs) {
|
|
470
|
+
return inputs.map((input) => ({
|
|
471
|
+
type: "text",
|
|
472
|
+
text: typeof input === "string" ? input : input.text
|
|
473
|
+
}));
|
|
474
|
+
}
|
|
475
|
+
emitInputs(inputs) {
|
|
476
|
+
for (const input of inputs) {
|
|
477
|
+
this.emitter.emit("external_message" /* EXTERNAL_MESSAGE */, {
|
|
478
|
+
subagentId: this.id,
|
|
479
|
+
kind: typeof input === "string" ? "message" : input.kind,
|
|
480
|
+
text: typeof input === "string" ? input : input.text,
|
|
481
|
+
timestamp: Date.now()
|
|
482
|
+
});
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
async runTurn(prompt, signal, options = {}, inputs) {
|
|
486
|
+
if (this.executing)
|
|
487
|
+
throw new Error("External ACP agents do not support concurrent turns");
|
|
488
|
+
if (this.disposed || this.failure.signal.aborted)
|
|
489
|
+
throw new Error("External ACP agent is closed");
|
|
490
|
+
this.executing = true;
|
|
491
|
+
this.started = true;
|
|
492
|
+
this.cancelled = false;
|
|
493
|
+
this.finalText = "";
|
|
494
|
+
this.thoughtText = "";
|
|
495
|
+
this.terminateMode = "ERROR" /* ERROR */;
|
|
496
|
+
if (options.resetStats !== false) {
|
|
497
|
+
this.round = this.durationMs = this.toolCalls = this.toolSucceeded = this.toolFailed = 0;
|
|
498
|
+
}
|
|
499
|
+
this.tools.clear();
|
|
500
|
+
this.toolNames.clear();
|
|
501
|
+
this.finishedTools.clear();
|
|
502
|
+
this.turnStartedAt = Date.now();
|
|
503
|
+
const timeoutMs = this.params.runConfig.max_time_minutes === void 0 ? void 0 : this.params.runConfig.max_time_minutes * 6e4;
|
|
504
|
+
const cancel = /* @__PURE__ */ __name(() => {
|
|
505
|
+
this.cancelled = true;
|
|
506
|
+
this.drainPermissions();
|
|
507
|
+
void this.connection.cancel({ sessionId: this.sessionId }).catch(() => {
|
|
508
|
+
});
|
|
509
|
+
}, "cancel");
|
|
510
|
+
signal?.addEventListener("abort", cancel, { once: true });
|
|
511
|
+
let timedOut = false;
|
|
512
|
+
try {
|
|
513
|
+
this.emitter.emit("start" /* START */, {
|
|
514
|
+
subagentId: this.id,
|
|
515
|
+
name: this.params.name,
|
|
516
|
+
model: this.coreView.modelConfig.model,
|
|
517
|
+
tools: [],
|
|
518
|
+
timestamp: Date.now()
|
|
519
|
+
});
|
|
520
|
+
if (signal?.aborted) {
|
|
521
|
+
this.terminateMode = "CANCELLED" /* CANCELLED */;
|
|
522
|
+
return;
|
|
523
|
+
}
|
|
524
|
+
const entryRound = this.round;
|
|
525
|
+
let next = prompt;
|
|
526
|
+
do {
|
|
527
|
+
this.round++;
|
|
528
|
+
const remaining = timeoutMs === void 0 ? void 0 : Math.max(
|
|
529
|
+
0,
|
|
530
|
+
timeoutMs - this.durationMs - (Date.now() - this.turnStartedAt)
|
|
531
|
+
);
|
|
532
|
+
if (remaining !== void 0 && remaining <= 0) {
|
|
533
|
+
this.terminateMode = "TIMEOUT" /* TIMEOUT */;
|
|
534
|
+
break;
|
|
535
|
+
}
|
|
536
|
+
if (inputs && this.round === entryRound + 1) this.emitInputs(inputs);
|
|
537
|
+
const result = await this.wait(
|
|
538
|
+
this.connection.prompt({ sessionId: this.sessionId, prompt: next }),
|
|
539
|
+
remaining,
|
|
540
|
+
signal
|
|
541
|
+
);
|
|
542
|
+
this.terminateMode = this.stopMode(result.stopReason);
|
|
543
|
+
if (this.terminateMode !== "GOAL" /* GOAL */) break;
|
|
544
|
+
if (signal?.aborted) {
|
|
545
|
+
this.terminateMode = "CANCELLED" /* CANCELLED */;
|
|
546
|
+
break;
|
|
547
|
+
}
|
|
548
|
+
const remainingNext = timeoutMs === void 0 ? void 0 : Math.max(
|
|
549
|
+
0,
|
|
550
|
+
timeoutMs - this.durationMs - (Date.now() - this.turnStartedAt)
|
|
551
|
+
);
|
|
552
|
+
if (remainingNext !== void 0 && remainingNext <= 0) {
|
|
553
|
+
this.terminateMode = "TIMEOUT" /* TIMEOUT */;
|
|
554
|
+
break;
|
|
555
|
+
}
|
|
556
|
+
const queued = this.provider?.() ?? [];
|
|
557
|
+
if (queued.length === 0) break;
|
|
558
|
+
this.emitter.emit("round_text" /* ROUND_TEXT */, {
|
|
559
|
+
subagentId: this.id,
|
|
560
|
+
round: this.round,
|
|
561
|
+
text: this.finalText,
|
|
562
|
+
thoughtText: this.thoughtText,
|
|
563
|
+
timestamp: Date.now()
|
|
564
|
+
});
|
|
565
|
+
this.finalText = "";
|
|
566
|
+
this.thoughtText = "";
|
|
567
|
+
this.emitInputs(queued);
|
|
568
|
+
next = this.inputPrompt(queued);
|
|
569
|
+
} while (!signal?.aborted);
|
|
570
|
+
if (signal?.aborted) this.terminateMode = "CANCELLED" /* CANCELLED */;
|
|
571
|
+
} catch (error) {
|
|
572
|
+
timedOut = error instanceof ExternalAgentTimeoutError;
|
|
573
|
+
this.terminateMode = signal?.aborted ? "CANCELLED" /* CANCELLED */ : timedOut ? "TIMEOUT" /* TIMEOUT */ : "ERROR" /* ERROR */;
|
|
574
|
+
if (this.emitter.rawListeners("error" /* ERROR */).length > 0 && !signal?.aborted) {
|
|
575
|
+
this.emitter.emit("error" /* ERROR */, {
|
|
576
|
+
subagentId: this.id,
|
|
577
|
+
error: error instanceof Error ? error.message : String(error),
|
|
578
|
+
timestamp: Date.now()
|
|
579
|
+
});
|
|
580
|
+
}
|
|
581
|
+
await this.dispose();
|
|
582
|
+
if (!signal?.aborted && !timedOut) throw error;
|
|
583
|
+
} finally {
|
|
584
|
+
signal?.removeEventListener("abort", cancel);
|
|
585
|
+
this.durationMs += Date.now() - this.turnStartedAt;
|
|
586
|
+
this.executing = false;
|
|
587
|
+
this.drainPermissions();
|
|
588
|
+
this.emitter.emit("round_text" /* ROUND_TEXT */, {
|
|
589
|
+
subagentId: this.id,
|
|
590
|
+
round: this.round,
|
|
591
|
+
text: this.finalText,
|
|
592
|
+
thoughtText: this.thoughtText,
|
|
593
|
+
timestamp: Date.now()
|
|
594
|
+
});
|
|
595
|
+
this.flushOpenTools();
|
|
596
|
+
this.emitter.emit("finish" /* FINISH */, {
|
|
597
|
+
subagentId: this.id,
|
|
598
|
+
terminateReason: this.terminateMode,
|
|
599
|
+
rounds: this.round,
|
|
600
|
+
totalDurationMs: this.durationMs,
|
|
601
|
+
totalToolCalls: this.toolCalls,
|
|
602
|
+
successfulToolCalls: this.toolSucceeded,
|
|
603
|
+
failedToolCalls: this.toolFailed,
|
|
604
|
+
timestamp: Date.now()
|
|
605
|
+
});
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
stopMode(reason) {
|
|
609
|
+
switch (reason) {
|
|
610
|
+
case "end_turn":
|
|
611
|
+
return "GOAL" /* GOAL */;
|
|
612
|
+
case "max_turn_requests":
|
|
613
|
+
return "MAX_TURNS" /* MAX_TURNS */;
|
|
614
|
+
case "cancelled":
|
|
615
|
+
return "CANCELLED" /* CANCELLED */;
|
|
616
|
+
case "refusal":
|
|
617
|
+
return "ERROR" /* ERROR */;
|
|
618
|
+
default:
|
|
619
|
+
return "ERROR" /* ERROR */;
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
get id() {
|
|
623
|
+
return this.params.subagentId ?? this.params.name;
|
|
624
|
+
}
|
|
625
|
+
getFinalText() {
|
|
626
|
+
return this.finalText;
|
|
627
|
+
}
|
|
628
|
+
getTerminateMode() {
|
|
629
|
+
return this.terminateMode;
|
|
630
|
+
}
|
|
631
|
+
getCore() {
|
|
632
|
+
return this.coreView;
|
|
633
|
+
}
|
|
634
|
+
setExternalMessageProvider(provider) {
|
|
635
|
+
this.provider = provider;
|
|
636
|
+
}
|
|
637
|
+
// This executor deliberately does NOT implement `setExternalMessageWaiter` /
|
|
638
|
+
// `setExternalMessageWaitPredicate`: ACP v1 has no mid-turn injection
|
|
639
|
+
// primitive (no `session/steer`), so input that arrives while a prompt is in
|
|
640
|
+
// flight cannot be delivered until that prompt resolves. Queued input is
|
|
641
|
+
// drained between prompts via the provider above (next-turn-boundary
|
|
642
|
+
// delivery). Implementing true mid-turn steering would require cancel +
|
|
643
|
+
// re-prompt — re-billing the whole in-flight turn — which is a protocol/billing
|
|
644
|
+
// decision, not a safe default. The delegation result surfaces this
|
|
645
|
+
// limitation (see agent.ts EXTERNAL_MID_TURN_INPUT_NOTICE). (R3-6)
|
|
646
|
+
getExecutionSummary() {
|
|
647
|
+
return {
|
|
648
|
+
rounds: this.round,
|
|
649
|
+
totalDurationMs: this.durationMs + (this.executing ? Date.now() - this.turnStartedAt : 0),
|
|
650
|
+
totalToolCalls: this.toolCalls,
|
|
651
|
+
successfulToolCalls: this.toolSucceeded,
|
|
652
|
+
failedToolCalls: this.toolFailed,
|
|
653
|
+
successRate: this.toolCalls ? this.toolSucceeded / this.toolCalls * 100 : 0,
|
|
654
|
+
inputTokens: 0,
|
|
655
|
+
outputTokens: 0,
|
|
656
|
+
thoughtTokens: 0,
|
|
657
|
+
cachedTokens: 0,
|
|
658
|
+
totalTokens: 0,
|
|
659
|
+
toolUsage: []
|
|
660
|
+
};
|
|
661
|
+
}
|
|
662
|
+
dispose() {
|
|
663
|
+
this.disposed = true;
|
|
664
|
+
this.fail(new Error("External ACP agent disposed"));
|
|
665
|
+
return this.disposePromise ??= this.child.terminate().catch((error) => {
|
|
666
|
+
if (isUnprovenExternalAgentTreeExit(error)) {
|
|
667
|
+
const detail = error instanceof Error ? error.message : String(error);
|
|
668
|
+
debugLogger.warn(
|
|
669
|
+
`External ACP agent process tree was not proven gone after disposal: ${detail}`
|
|
670
|
+
);
|
|
671
|
+
if (this.emitter.rawListeners("error" /* ERROR */).length > 0) {
|
|
672
|
+
this.emitter.emit("error" /* ERROR */, {
|
|
673
|
+
subagentId: this.id,
|
|
674
|
+
error: `External agent process tree not proven gone after disposal: ${detail}`,
|
|
675
|
+
timestamp: Date.now()
|
|
676
|
+
});
|
|
677
|
+
}
|
|
678
|
+
return;
|
|
679
|
+
}
|
|
680
|
+
if (!isExpectedExternalAgentCleanupExit(error)) throw error;
|
|
681
|
+
});
|
|
682
|
+
}
|
|
683
|
+
drainPermissions() {
|
|
684
|
+
for (const cancel of this.pendingPermissions.values()) cancel();
|
|
685
|
+
this.pendingPermissions.clear();
|
|
686
|
+
}
|
|
687
|
+
onSessionUpdate({ sessionId, update }) {
|
|
688
|
+
if (sessionId !== this.sessionId || !this.executing || this.cancelled || this.disposed || this.failure.signal.aborted)
|
|
689
|
+
return;
|
|
690
|
+
switch (update.sessionUpdate) {
|
|
691
|
+
case "agent_message_chunk":
|
|
692
|
+
case "agent_thought_chunk": {
|
|
693
|
+
const thought = update.sessionUpdate === "agent_thought_chunk";
|
|
694
|
+
const text = update.content.type === "text" ? update.content.text : JSON.stringify(update.content);
|
|
695
|
+
if (thought) this.thoughtText += text;
|
|
696
|
+
else this.finalText += text;
|
|
697
|
+
this.emitter.emit("stream_text" /* STREAM_TEXT */, {
|
|
698
|
+
subagentId: this.id,
|
|
699
|
+
round: this.round,
|
|
700
|
+
text,
|
|
701
|
+
thought,
|
|
702
|
+
timestamp: Date.now()
|
|
703
|
+
});
|
|
704
|
+
break;
|
|
705
|
+
}
|
|
706
|
+
case "tool_call":
|
|
707
|
+
this.updateTool(update);
|
|
708
|
+
break;
|
|
709
|
+
case "tool_call_update":
|
|
710
|
+
this.updateTool(update);
|
|
711
|
+
break;
|
|
712
|
+
default:
|
|
713
|
+
break;
|
|
714
|
+
}
|
|
715
|
+
}
|
|
716
|
+
updateTool(update) {
|
|
717
|
+
const callId = update.toolCallId;
|
|
718
|
+
if (this.finishedTools.has(callId)) return;
|
|
719
|
+
const previous = this.tools.get(callId);
|
|
720
|
+
const tool = {
|
|
721
|
+
toolCallId: callId,
|
|
722
|
+
title: previous?.title ?? "External tool",
|
|
723
|
+
...previous,
|
|
724
|
+
...Object.fromEntries(
|
|
725
|
+
Object.entries(update).filter(
|
|
726
|
+
([, value]) => value !== null && value !== void 0
|
|
727
|
+
)
|
|
728
|
+
)
|
|
729
|
+
};
|
|
730
|
+
this.tools.set(callId, tool);
|
|
731
|
+
const meta = tool._meta?.["claudeCode"];
|
|
732
|
+
const reportedName = isRecord(meta) && typeof meta["toolName"] === "string" ? meta["toolName"] : tool.kind ?? "external_tool";
|
|
733
|
+
const name = this.toolNames.get(callId) ?? reportedName;
|
|
734
|
+
if (!previous) {
|
|
735
|
+
this.toolNames.set(callId, name);
|
|
736
|
+
this.toolCalls++;
|
|
737
|
+
this.emitter.emit("tool_call" /* TOOL_CALL */, {
|
|
738
|
+
subagentId: this.id,
|
|
739
|
+
round: this.round,
|
|
740
|
+
callId,
|
|
741
|
+
name,
|
|
742
|
+
args: isRecord(tool.rawInput) ? tool.rawInput : { input: tool.rawInput },
|
|
743
|
+
description: tool.title,
|
|
744
|
+
timestamp: Date.now()
|
|
745
|
+
});
|
|
746
|
+
}
|
|
747
|
+
if (tool.status !== "completed" && tool.status !== "failed") return;
|
|
748
|
+
this.finishedTools.add(callId);
|
|
749
|
+
this.tools.delete(callId);
|
|
750
|
+
const success = tool.status === "completed";
|
|
751
|
+
if (success) this.toolSucceeded++;
|
|
752
|
+
else this.toolFailed++;
|
|
753
|
+
this.toolNames.delete(callId);
|
|
754
|
+
const response = {
|
|
755
|
+
input: tool.rawInput ?? null,
|
|
756
|
+
toolName: reportedName,
|
|
757
|
+
output: tool.rawOutput ?? null,
|
|
758
|
+
content: tool.content ?? null,
|
|
759
|
+
status: tool.status
|
|
760
|
+
};
|
|
761
|
+
const responseParts = [
|
|
762
|
+
{ functionResponse: { id: callId, name, response } }
|
|
763
|
+
];
|
|
764
|
+
this.emitter.emit("tool_result" /* TOOL_RESULT */, {
|
|
765
|
+
subagentId: this.id,
|
|
766
|
+
round: this.round,
|
|
767
|
+
callId,
|
|
768
|
+
name,
|
|
769
|
+
success,
|
|
770
|
+
responseParts,
|
|
771
|
+
resultDisplay: JSON.stringify(tool.rawOutput ?? tool.content ?? null),
|
|
772
|
+
timestamp: Date.now()
|
|
773
|
+
});
|
|
774
|
+
this.emitter.emit("tool_responses_finalized" /* TOOL_RESPONSES_FINALIZED */, {
|
|
775
|
+
subagentId: this.id,
|
|
776
|
+
round: this.round,
|
|
777
|
+
responses: [{ callId, responseParts }],
|
|
778
|
+
timestamp: Date.now()
|
|
779
|
+
});
|
|
780
|
+
}
|
|
781
|
+
/**
|
|
782
|
+
* Emit a terminal TOOL_RESULT + TOOL_RESPONSES_FINALIZED for every tool call
|
|
783
|
+
* still open when the turn ends. Cancel, timeout and peer crash all leave
|
|
784
|
+
* entries in `this.tools`: `cancel()` sets `this.cancelled` before the peer's
|
|
785
|
+
* own terminal `tool_call_update` can arrive (so `onSessionUpdate` drops it),
|
|
786
|
+
* and the next `runTurn` clears the map. Without this flush three consumers
|
|
787
|
+
* keep a false record — the inline frame and Web Shell row show the tool
|
|
788
|
+
* executing forever (TOOL_RESULT is the only writer of their status), the
|
|
789
|
+
* JSONL transcript holds a permanently unpaired `functionCall`
|
|
790
|
+
* (TOOL_RESPONSES_FINALIZED is the only writer of its `tool_result`), and
|
|
791
|
+
* FINISH's totals do not sum. The in-process sibling closes the same gap via
|
|
792
|
+
* `onAllToolCallsComplete`.
|
|
793
|
+
*/
|
|
794
|
+
flushOpenTools() {
|
|
795
|
+
for (const [callId, tool] of this.tools) {
|
|
796
|
+
const meta = tool._meta?.["claudeCode"];
|
|
797
|
+
const reportedName = isRecord(meta) && typeof meta["toolName"] === "string" ? meta["toolName"] : tool.kind ?? "external_tool";
|
|
798
|
+
const name = this.toolNames.get(callId) ?? reportedName;
|
|
799
|
+
this.toolFailed++;
|
|
800
|
+
const response = {
|
|
801
|
+
input: tool.rawInput ?? null,
|
|
802
|
+
toolName: reportedName,
|
|
803
|
+
output: null,
|
|
804
|
+
content: tool.content ?? null,
|
|
805
|
+
status: "failed"
|
|
806
|
+
};
|
|
807
|
+
const responseParts = [
|
|
808
|
+
{ functionResponse: { id: callId, name, response } }
|
|
809
|
+
];
|
|
810
|
+
this.emitter.emit("tool_result" /* TOOL_RESULT */, {
|
|
811
|
+
subagentId: this.id,
|
|
812
|
+
round: this.round,
|
|
813
|
+
callId,
|
|
814
|
+
name,
|
|
815
|
+
success: false,
|
|
816
|
+
responseParts,
|
|
817
|
+
resultDisplay: JSON.stringify(tool.content ?? null),
|
|
818
|
+
timestamp: Date.now()
|
|
819
|
+
});
|
|
820
|
+
this.emitter.emit("tool_responses_finalized" /* TOOL_RESPONSES_FINALIZED */, {
|
|
821
|
+
subagentId: this.id,
|
|
822
|
+
round: this.round,
|
|
823
|
+
responses: [{ callId, responseParts }],
|
|
824
|
+
timestamp: Date.now()
|
|
825
|
+
});
|
|
826
|
+
}
|
|
827
|
+
this.tools.clear();
|
|
828
|
+
this.toolNames.clear();
|
|
829
|
+
}
|
|
830
|
+
async onRequestPermission(params) {
|
|
831
|
+
const cancelled = {
|
|
832
|
+
outcome: { outcome: "cancelled" }
|
|
833
|
+
};
|
|
834
|
+
const runtime = this.params.runtimeContext;
|
|
835
|
+
const callId = params.toolCall.toolCallId;
|
|
836
|
+
const meta = params.toolCall._meta?.["claudeCode"];
|
|
837
|
+
const name = isRecord(meta) && typeof meta["toolName"] === "string" ? meta["toolName"] : params.toolCall.kind ?? "external_tool";
|
|
838
|
+
if (params.sessionId !== this.sessionId || !this.executing || this.cancelled || this.disposed || this.failure.signal.aborted || this.pendingPermissions.has(callId) || params.options.length === 0 || new Set(params.options.map((option) => option.optionId)).size !== params.options.length)
|
|
839
|
+
return cancelled;
|
|
840
|
+
if (name.replaceAll("_", "").toLowerCase() === "askuserquestion" || runtime.getShouldAvoidPermissionPrompts() || !runtime.isInteractive() && !runtime.getExperimentalZedIntegration() && runtime.getInputFormat() !== "stream-json" /* STREAM_JSON */ || this.emitter.rawListeners("tool_waiting_approval" /* TOOL_WAITING_APPROVAL */).length === 0) {
|
|
841
|
+
const rejectOptionId = selectRejectOption(params.options);
|
|
842
|
+
return rejectOptionId ? { outcome: { outcome: "selected", optionId: rejectOptionId } } : cancelled;
|
|
843
|
+
}
|
|
844
|
+
return new Promise((resolve) => {
|
|
845
|
+
const finish = /* @__PURE__ */ __name((optionId) => {
|
|
846
|
+
if (this.pendingPermissions.get(callId) !== deny) return;
|
|
847
|
+
this.pendingPermissions.delete(callId);
|
|
848
|
+
resolve(
|
|
849
|
+
optionId ? { outcome: { outcome: "selected", optionId } } : cancelled
|
|
850
|
+
);
|
|
851
|
+
}, "finish");
|
|
852
|
+
const deny = /* @__PURE__ */ __name(() => finish(), "deny");
|
|
853
|
+
this.pendingPermissions.set(callId, deny);
|
|
854
|
+
try {
|
|
855
|
+
this.emitter.emit("tool_waiting_approval" /* TOOL_WAITING_APPROVAL */, {
|
|
856
|
+
subagentId: this.id,
|
|
857
|
+
round: this.round,
|
|
858
|
+
callId,
|
|
859
|
+
name,
|
|
860
|
+
args: isRecord(params.toolCall.rawInput) ? params.toolCall.rawInput : {},
|
|
861
|
+
description: params.toolCall.title ?? "External action",
|
|
862
|
+
confirmationDetails: {
|
|
863
|
+
type: "info",
|
|
864
|
+
title: params.toolCall.title ?? "External action",
|
|
865
|
+
// Carry the action's arguments so the user sees WHAT they are
|
|
866
|
+
// authorizing — not just the option labels the dialog already
|
|
867
|
+
// renders as buttons (R11-5). Bounded and control-stripped.
|
|
868
|
+
prompt: describeExternalAction(params.toolCall),
|
|
869
|
+
// The prompt is a foreign-process payload; render it as plain text,
|
|
870
|
+
// never markdown — otherwise the dialog would eat glob `**` and
|
|
871
|
+
// render links, misrepresenting what the user approves. (R11-5 fix)
|
|
872
|
+
renderPromptAsPlainText: true,
|
|
873
|
+
hideAlwaysAllow: true
|
|
874
|
+
},
|
|
875
|
+
respond: /* @__PURE__ */ __name(async (outcome) => finish(
|
|
876
|
+
selectPermissionOption(params.options, outcome) ?? // An explicit user rejection of THIS tool must deny the tool,
|
|
877
|
+
// not cancel the whole turn: `selectPermissionOption` maps
|
|
878
|
+
// Cancel to undefined, and ACP `cancelled` ends the prompt turn
|
|
879
|
+
// (abandoning the remaining work and billing a fresh prompt to
|
|
880
|
+
// re-delegate). Select the peer's `reject_once` option so the
|
|
881
|
+
// turn continues without this one action, matching the dialog's
|
|
882
|
+
// "suggest changes" promise and the in-process sibling. Fall
|
|
883
|
+
// back to `cancelled` only when no reject option is selectable.
|
|
884
|
+
(outcome === "cancel" /* Cancel */ ? selectRejectOption(params.options) : void 0)
|
|
885
|
+
), "respond"),
|
|
886
|
+
timestamp: Date.now()
|
|
887
|
+
});
|
|
888
|
+
} catch {
|
|
889
|
+
deny();
|
|
890
|
+
}
|
|
891
|
+
});
|
|
892
|
+
}
|
|
893
|
+
};
|
|
894
|
+
var acpExternalAgentExecutor = {
|
|
895
|
+
create: /* @__PURE__ */ __name((params) => AcpSubagentExecutor.create(params), "create")
|
|
896
|
+
};
|
|
897
|
+
export {
|
|
898
|
+
acpExternalAgentExecutor,
|
|
899
|
+
assertExternalAgentSpawnPlatformSupported,
|
|
900
|
+
describeExternalAction,
|
|
901
|
+
externalModelLabel,
|
|
902
|
+
isExpectedExternalAgentCleanupExit,
|
|
903
|
+
isUnprovenExternalAgentTreeExit,
|
|
904
|
+
optionKindForOutcome,
|
|
905
|
+
resolvePermissionMode,
|
|
906
|
+
selectPeerModeId,
|
|
907
|
+
selectPermissionOption,
|
|
908
|
+
selectRejectOption
|
|
909
|
+
};
|
|
910
|
+
/**
|
|
911
|
+
* @license
|
|
912
|
+
* Copyright 2025 Qwen
|
|
913
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
914
|
+
*/
|
|
915
|
+
/**
|
|
916
|
+
* @license
|
|
917
|
+
* Copyright 2026 Qwen Team
|
|
918
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
919
|
+
*/
|