@qwen-code/qwen-code 0.19.12 → 0.20.0-nightly.20260720.0c271659d
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/bundled/qc-helper/docs/integration-github-action.md +1 -1
- package/bundled/qc-helper/docs/qwen-serve.md +42 -5
- package/bundled/review/DESIGN.md +2 -2
- package/bundled/review/SKILL.md +13 -9
- package/chunks/{MaxSizedBox-QOXLJGAF.js → MaxSizedBox-ED3QND6V.js} +30 -27
- package/chunks/{StandaloneSessionPicker-FLV6CGYJ.js → StandaloneSessionPicker-NQVAOTKS.js} +50 -45
- package/chunks/{acpAgent-OB2CTF3P.js → acpAgent-HOBFF5B6.js} +353 -130
- package/chunks/{agent-CKSI7BTR.js → agent-J7EPFLA6.js} +22 -22
- package/chunks/{agent-headless-U36LIYTU.js → agent-headless-RRG3JU7Q.js} +22 -22
- package/chunks/{anthropicContentGenerator-ZZRGFEES.js → anthropicContentGenerator-HVKLXOOU.js} +6 -5
- package/chunks/{artifact-tool-PHO5XEGZ.js → artifact-tool-WBCAMD3O.js} +2 -2
- package/chunks/{askUserQuestion-CEPBT47X.js → askUserQuestion-6DZC4UV5.js} +2 -2
- package/chunks/{bridge-AIKTINJG.js → bridge-OW5FZ6BF.js} +25 -25
- package/chunks/build-SSCNEHZZ.js +62 -0
- package/chunks/{channel-worker-group-NEUVTPB2.js → channel-worker-group-53CMOPFT.js} +4 -4
- package/chunks/{channel-worker-manager-7CQVOVWV.js → channel-worker-manager-UTXILKC2.js} +4 -4
- package/chunks/{channel-worker-supervisor-3BU2KNCZ.js → channel-worker-supervisor-ZGO2W2MD.js} +3 -3
- package/chunks/chunk-27AJEU6G.js +442 -0
- package/chunks/{chunk-BABX5XRO.js → chunk-2HOVDT7W.js} +1 -1
- package/chunks/{chunk-GW7BONBU.js → chunk-2JOLZA6L.js} +5 -5
- package/chunks/{chunk-ZSDFNE6Y.js → chunk-2TDSM7I6.js} +3 -3
- package/chunks/{chunk-6IITZE7O.js → chunk-2YJLFCYI.js} +7 -7
- package/chunks/{chunk-VEFR4XJQ.js → chunk-37MGCVTS.js} +1 -1
- package/chunks/{chunk-3B6PSWHE.js → chunk-3ML52IFS.js} +4 -4
- package/chunks/{chunk-TKASNYDS.js → chunk-3QR5MOHP.js} +2 -2
- package/chunks/{chunk-KRMARA3A.js → chunk-3SNKL6L6.js} +29 -13
- package/chunks/{chunk-DJ4VHAFJ.js → chunk-3ZL6YMO2.js} +3 -3
- package/chunks/chunk-43T5WDQ7.js +127 -0
- package/chunks/{chunk-W6CQPLWM.js → chunk-4ODB7WIB.js} +1 -1
- package/chunks/{chunk-CHPQFLW6.js → chunk-4UH63YE5.js} +5 -5
- package/chunks/{chunk-2CCDMJM7.js → chunk-53OPIXUE.js} +3 -3
- package/chunks/{chunk-HTHUX2T5.js → chunk-5QWWOFGG.js} +0 -1
- package/chunks/{chunk-3DJY4IFO.js → chunk-5SCI6E3E.js} +1 -1
- package/chunks/{chunk-4CHDYDG3.js → chunk-6EFTQYW7.js} +1 -1
- package/chunks/{chunk-OBSLEYCD.js → chunk-6HQW55TM.js} +29 -2
- package/chunks/{chunk-N47VAEAJ.js → chunk-6MN6XJTR.js} +2379 -1291
- package/chunks/{chunk-UCTCDLDS.js → chunk-6VGRTGOG.js} +1 -1
- package/chunks/{chunk-KNGZ5EYL.js → chunk-7JQK6FXK.js} +198 -120
- package/chunks/{chunk-2476XGOU.js → chunk-A4TJMY65.js} +1 -1
- package/chunks/{chunk-67Q33DQY.js → chunk-AMRWCMX4.js} +4 -4
- package/chunks/{chunk-XAAEDML2.js → chunk-AYCDXHZB.js} +1 -1
- package/chunks/{chunk-VAJS2E2D.js → chunk-BDBMYST4.js} +1 -1
- package/chunks/{chunk-F2RR4HO2.js → chunk-BVLROR2T.js} +1 -1
- package/chunks/{chunk-UE5TZ55T.js → chunk-C27BYUX6.js} +29 -2
- package/chunks/{chunk-PK7COE5O.js → chunk-CL7IRYTA.js} +1 -1
- package/chunks/{chunk-KMJOMWHE.js → chunk-COWNNAWJ.js} +1 -1
- package/chunks/{chunk-UOA2IHRI.js → chunk-CPCVCKKF.js} +1 -1
- package/chunks/{chunk-4RPARQ5D.js → chunk-D2VIDMVM.js} +2 -2
- package/chunks/{chunk-4MPYGENG.js → chunk-DCCW7CRR.js} +6 -6
- package/chunks/chunk-DIKIJS6Z.js +114 -0
- package/chunks/{chunk-ETN2G32U.js → chunk-DR5AUNJ2.js} +4 -4
- package/chunks/{chunk-6ETOSWAO.js → chunk-DSBCU6JY.js} +3 -3
- package/chunks/{chunk-LKR7QQ63.js → chunk-EAUYY7SS.js} +3 -3
- package/chunks/{chunk-J2MKYJKZ.js → chunk-EIAK6Q2B.js} +2 -2
- package/chunks/{chunk-WEPXQKGP.js → chunk-EZVDJFZ7.js} +1 -1
- package/chunks/{chunk-WHQNBBWW.js → chunk-FLSVD6BS.js} +2 -2
- package/chunks/{chunk-3ESL7JXA.js → chunk-FODJ5Q5K.js} +3 -3
- package/chunks/{chunk-4XCVGEEX.js → chunk-FSL5W5TI.js} +3 -3
- package/chunks/{chunk-NE6HHLL3.js → chunk-FWT66O5E.js} +2 -2
- package/chunks/{chunk-OSSDHJDU.js → chunk-G45X5TRN.js} +1 -1
- package/chunks/{chunk-ZGT623SG.js → chunk-G6MDKXDP.js} +12 -12
- package/chunks/{chunk-KANTXY7B.js → chunk-GKY2OJ7R.js} +2 -2
- package/chunks/chunk-GMGDLUC7.js +37 -0
- package/chunks/{chunk-J6NT5YTN.js → chunk-H2XVO6NE.js} +1 -289
- package/chunks/{chunk-XSEWNUMZ.js → chunk-I4HZ4GOD.js} +8 -8
- package/chunks/{chunk-CPU6I5YV.js → chunk-I6JUVU7J.js} +34 -24
- package/chunks/{chunk-UZC5VPOJ.js → chunk-IDGTC5AS.js} +3 -3
- package/chunks/{chunk-QIFTJDBY.js → chunk-INL2RSLA.js} +1 -1
- package/chunks/{chunk-GSPWDTYY.js → chunk-INQQM52C.js} +18 -16
- package/chunks/{chunk-HVGJWOR6.js → chunk-JBCFW3IL.js} +2 -2
- package/chunks/{chunk-LPHGXXZX.js → chunk-JD3MKVKL.js} +1 -1
- package/chunks/{chunk-GCY7QTCE.js → chunk-JDPCOUZ3.js} +1602 -398
- package/chunks/{chunk-NUHSLBJZ.js → chunk-JNWZQ27S.js} +15 -9
- package/chunks/{chunk-KGWA7XYL.js → chunk-JRJ2LV6P.js} +6 -226
- package/chunks/{chunk-QSG4ZFG4.js → chunk-KTUQMDEP.js} +1 -1
- package/chunks/{chunk-RKUMFUFM.js → chunk-LTQ5C5AB.js} +4 -4
- package/chunks/{chunk-V4PCIS25.js → chunk-MAQQGNQ5.js} +44 -1
- package/chunks/{chunk-EISVEV45.js → chunk-NBMIC7DR.js} +2 -2
- package/chunks/{chunk-GEHSF7MS.js → chunk-NEEB7UEN.js} +2545 -1974
- package/chunks/{chunk-BKNPMEN6.js → chunk-NIJEXGV6.js} +93 -17
- package/chunks/{chunk-PR5XQ73G.js → chunk-NQVA6O7F.js} +2 -2
- package/chunks/{chunk-FUSMC3SZ.js → chunk-NT324EJ6.js} +13 -8
- package/chunks/{chunk-5N7M4XYN.js → chunk-O2SPEQFA.js} +5 -5
- package/chunks/{chunk-OEHCAWUA.js → chunk-OLMETXLX.js} +2 -2
- package/chunks/{chunk-JCJPZMJV.js → chunk-OOCI5VVU.js} +1 -1
- package/chunks/{chunk-XSPFQQRE.js → chunk-OONJNQ42.js} +3 -3
- package/chunks/{chunk-ANRANWVE.js → chunk-OP4MOGXF.js} +1 -1
- package/chunks/{chunk-SGPFJMRP.js → chunk-PBATSWUQ.js} +1 -1
- package/chunks/chunk-QKYTTBYW.js +624 -0
- package/chunks/{chunk-W4UN42YP.js → chunk-QOSKUG5P.js} +77 -20
- package/chunks/{chunk-76BFY7AF.js → chunk-QTERJVPZ.js} +1 -6
- package/chunks/{chunk-WIYV7CSF.js → chunk-RB7NXUP5.js} +3 -3
- package/chunks/{chunk-HCCR43AY.js → chunk-RFIAR4YL.js} +1 -1
- package/chunks/{chunk-GMUPIMHF.js → chunk-RS5JPH6Y.js} +3 -3
- package/chunks/chunk-RS7MT2QG.js +305 -0
- package/chunks/{chunk-GXFYV7MP.js → chunk-SG2PEESS.js} +1106 -592
- package/chunks/{chunk-PUKUUASO.js → chunk-SLLG5XXE.js} +1 -1
- package/chunks/{chunk-GLH2NTPB.js → chunk-SQMTULHJ.js} +1 -1
- package/chunks/{chunk-NPMVLWYL.js → chunk-STFP7PJR.js} +6 -6
- package/chunks/chunk-SV5PQVQE.js +71 -0
- package/chunks/{chunk-HZ4M2UQD.js → chunk-TFNZCC4B.js} +1 -1
- package/chunks/{chunk-5QSVANRT.js → chunk-THNJYTA6.js} +2 -2
- package/chunks/{chunk-MRE77ST5.js → chunk-TN2BYMNH.js} +69 -2216
- package/chunks/{chunk-64GC5EMF.js → chunk-TQBA6DVX.js} +1 -1
- package/chunks/{chunk-VLHQMOZK.js → chunk-U24E4R5U.js} +3 -3
- package/chunks/{chunk-4CA4WUMS.js → chunk-UEY4AYUL.js} +2 -2
- package/chunks/{chunk-42VIHAYT.js → chunk-UGRL5B5F.js} +1 -1
- package/chunks/chunk-V7RNNPGC.js +44 -0
- package/chunks/{chunk-R3EDIMYZ.js → chunk-VGFFYNBD.js} +1 -1
- package/chunks/chunk-VIOFKPPN.js +125 -0
- package/chunks/{chunk-BEZPRKD3.js → chunk-VLDBVLC4.js} +156 -2
- package/chunks/{chunk-HD6EGS5K.js → chunk-VWLLDHAY.js} +6 -6
- package/chunks/chunk-WCDH2CRI.js +1187 -0
- package/chunks/{chunk-7SX6WZNO.js → chunk-XVVH63JG.js} +3 -3
- package/chunks/{chunk-I7RRHHYG.js → chunk-Y2ENGUD6.js} +1 -1
- package/chunks/{chunk-NALRQ3SG.js → chunk-Y5534U4G.js} +332 -116
- package/chunks/{chunk-4SJJT466.js → chunk-YDZ6J2BY.js} +72 -159
- package/chunks/{chunk-APOFULHK.js → chunk-YNBP3YSU.js} +7 -6
- package/chunks/{chunk-EFAXBOQO.js → chunk-YWEW33JY.js} +7 -7
- package/chunks/{chunk-335ECZTA.js → chunk-ZEOZL37W.js} +1 -1
- package/chunks/{chunk-DUR7BZYK.js → chunk-ZGJ4LDD2.js} +53 -28
- package/chunks/{computer-use-4PUGCUQK.js → computer-use-ET5476VX.js} +22 -22
- package/chunks/{config-utils-6PJUXHLI.js → config-utils-AHQ6YZ66.js} +3 -3
- package/chunks/{contextCommand-C57KTWFV.js → contextCommand-QIULFDBF.js} +25 -26
- package/chunks/{create-sub-session-5Q42XR6I.js → create-sub-session-BVL2ZHTM.js} +22 -22
- package/chunks/{create-sub-session-DIJOV6HV.js → create-sub-session-P26FE5GG.js} +2 -2
- package/chunks/{cron-create-X462ERYA.js → cron-create-JWFHBDRQ.js} +4 -4
- package/chunks/{cron-delete-SL5UJUM3.js → cron-delete-GDX4E26G.js} +4 -4
- package/chunks/{cron-list-3MD6SVXI.js → cron-list-USMAIWPT.js} +4 -4
- package/chunks/{daemon-ZW6LHOXT.js → daemon-EE5T3KOW.js} +169 -84
- package/chunks/{daemon-status-provider-YPV3UXHT.js → daemon-status-provider-L5UW7TGV.js} +29 -29
- package/chunks/{dist-3DQNQJ6H.js → dist-2BHAYBKP.js} +1 -1
- package/chunks/{dist-J2H4KTLB.js → dist-2MIU4UUH.js} +1 -1
- package/chunks/{dist-IEQSDXS7.js → dist-53PZYC5B.js} +2 -2
- package/chunks/{dist-NUXRQHC5.js → dist-AU7NQQRP.js} +1 -1
- package/chunks/{dist-XLE6ODMB.js → dist-FUTEXY6A.js} +1 -1
- package/chunks/{dist-IGZMVS5R.js → dist-WGTQO7F2.js} +1 -1
- package/chunks/{earlyInputCapture-5VDWSYAM.js → earlyInputCapture-ZLAL5GTE.js} +23 -23
- package/chunks/{edit-GORZTX2U.js → edit-4ZOPT6OC.js} +23 -23
- package/chunks/{enter-worktree-LJB2AW4L.js → enter-worktree-DFP5CZYS.js} +22 -22
- package/chunks/{enterPlanMode-LIIPP37T.js → enterPlanMode-7VEJ7A2A.js} +22 -22
- package/chunks/{environment-HQ2UHJ35.js → environment-KHS35XJY.js} +24 -24
- package/chunks/{errors-6JD5VMVQ.js → errors-574WBU5R.js} +24 -24
- package/chunks/{exit-worktree-IEP2WHOV.js → exit-worktree-5Q7V6D4C.js} +22 -22
- package/chunks/{exitPlanMode-U5Z6XBLO.js → exitPlanMode-SX2F6PDJ.js} +22 -22
- package/chunks/{fast-path-HFKNMP23.js → fast-path-G7BLOZVF.js} +2 -2
- package/chunks/{gemini-C2SCJH3N.js → gemini-M4JWSTGU.js} +70 -68
- package/chunks/{geminiContentGenerator-ADZTXEKV.js → geminiContentGenerator-MKXLUFUH.js} +4 -4
- package/chunks/{glob-GOAPGD6G.js → glob-FPKZY5W6.js} +22 -22
- package/chunks/{grep-HZLSTX7D.js → grep-RS22OMZG.js} +22 -22
- package/chunks/{handleAutoUpdate-UF74WGFE.js → handleAutoUpdate-RFNQ36JC.js} +27 -28
- package/chunks/{i18n-FMXIYUOC.js → i18n-MAEWSKYF.js} +23 -23
- package/chunks/{initializer-ERDBM3DU.js → initializer-T2BFZJBP.js} +28 -28
- package/chunks/{installationInfo-LROMXYLX.js → installationInfo-3UETF773.js} +25 -23
- package/chunks/{keychain-token-storage-K23CFKGN.js → keychain-token-storage-DWRJMNH3.js} +2 -2
- package/chunks/{list-6JPJROU5.js → list-FWZUKWD2.js} +30 -30
- package/chunks/{loadedSettingsAdapter-QCWYUBBF.js → loadedSettingsAdapter-3DUNHAPX.js} +27 -27
- package/chunks/{loop-wakeup-6H7OENTB.js → loop-wakeup-5GLTUBHA.js} +5 -5
- package/chunks/{ls-APTSOOS5.js → ls-FHBY3Y7I.js} +4 -4
- package/chunks/{lsp-HPACPJAN.js → lsp-B6VMEW6Y.js} +2 -2
- package/chunks/{mcp-3P3KWYWO.js → mcp-POXS7QWD.js} +27 -27
- package/chunks/{monitor-LMYKCF6R.js → monitor-2ZZC2NKH.js} +22 -22
- package/chunks/nonInteractiveCli-WSJVCB2W.js +126 -0
- package/chunks/{notebook-edit-IBEOVZ6A.js → notebook-edit-BMQLME3Q.js} +23 -23
- package/chunks/{openaiContentGenerator-42PZKET5.js → openaiContentGenerator-GOREG72R.js} +11 -11
- package/chunks/{pidfile-VTBDIGOH.js → pidfile-MVZDE5TC.js} +23 -23
- package/chunks/{processUtils-L7ZKOGDG.js → processUtils-RH5KNLDH.js} +2 -2
- package/chunks/{qwenContentGenerator-VR2CNFGI.js → qwenContentGenerator-R55BCLRI.js} +24 -24
- package/chunks/{qwenOAuth2-6LS2T3Q6.js → qwenOAuth2-QZBI2SOZ.js} +11 -11
- package/chunks/react-SG7JAQSZ.js +8 -0
- package/chunks/{read-file-VSKOE22I.js → read-file-CPS2CYYG.js} +8 -8
- package/chunks/{read-mcp-resource-C6NT52T6.js → read-mcp-resource-AKCL7I43.js} +2 -2
- package/chunks/{record-artifact-ENCU7QCL.js → record-artifact-PEUB7727.js} +2 -2
- package/chunks/resumeHistoryUtils-YD6DSYHU.js +78 -0
- package/chunks/{ripGrep-5V5FLW2A.js → ripGrep-UKGJ7RHZ.js} +22 -22
- package/chunks/{run-qwen-serve-LSOPP4R2.js → run-qwen-serve-GFKSKLF6.js} +1442 -148
- package/chunks/{runtime-LT7R4CS5.js → runtime-4KGNL3TP.js} +31 -31
- package/chunks/{scheduler-YOWQ7KZP.js → scheduler-GJ3CELWI.js} +22 -22
- package/chunks/{send-message-5GZ4FX2V.js → send-message-3RHE7HSM.js} +3 -3
- package/chunks/{serve-VWLBXKGK.js → serve-UU6Z4C7W.js} +27 -27
- package/chunks/{server-3RW3FYOH.js → server-RTJUMN24.js} +393 -256
- package/chunks/{session-ZONXFOBQ.js → session-EYD3CEB5.js} +79 -163
- package/chunks/{settings-JC3VC53L.js → settings-H5O22TGQ.js} +26 -26
- package/chunks/{shell-2NGEMAVM.js → shell-KVNHDHMT.js} +22 -22
- package/chunks/{skill-3U2T6H3E.js → skill-32525KCE.js} +10 -10
- package/chunks/{spawnChannel-QEAUPARQ.js → spawnChannel-G7DUQKHL.js} +24 -24
- package/chunks/{src-75ZPXO7B.js → src-DUFUUEHE.js} +52 -22
- package/chunks/{standalone-update-UUJWJWYY.js → standalone-update-UC6CWBLH.js} +24 -24
- package/chunks/{startInteractiveUI-V7XISPQ6.js → startInteractiveUI-A5YYAWLF.js} +5451 -2045
- package/chunks/{syntheticOutput-ULOVVLY4.js → syntheticOutput-FG5PQKIR.js} +3 -3
- package/chunks/{task-create-DUE2PMNI.js → task-create-HX32YXO7.js} +7 -7
- package/chunks/{task-list-WVPNX7BZ.js → task-list-QWSY4ZIU.js} +5 -5
- package/chunks/{task-stop-CPEQWOT6.js → task-stop-GWC6UWAL.js} +2 -2
- package/chunks/{task-update-HY2LNFFB.js → task-update-NCTAB73Q.js} +7 -7
- package/chunks/{team-create-R6AXDYPG.js → team-create-LS2Q32Y4.js} +22 -22
- package/chunks/{team-delete-JJV6IUOA.js → team-delete-KK37HTOG.js} +5 -5
- package/chunks/{team-plan-approval-O2ZPPT64.js → team-plan-approval-DWCZABX6.js} +22 -22
- package/chunks/{theme-manager-YIX2IC2D.js → theme-manager-E22CNBIL.js} +23 -23
- package/chunks/{todoWrite-JHHIDOIV.js → todoWrite-ERCAMLFS.js} +4 -4
- package/chunks/{tool-search-5IE2VO7X.js → tool-search-MHXUDFD2.js} +9 -9
- package/chunks/{total-session-admission-K6APQYEF.js → total-session-admission-KOPTGDJZ.js} +25 -25
- package/chunks/{trustedFolders-GPSSPVBF.js → trustedFolders-ANQXYAQT.js} +23 -23
- package/chunks/{update-relaunch-4BVAPX6Y.js → update-relaunch-HFGRB7PE.js} +9 -9
- package/chunks/{updateCheck-AHTHWLAM.js → updateCheck-EKIPND4B.js} +33 -26
- package/chunks/useAutoAcceptIndicator-EE22V2F5.js +80 -0
- package/chunks/{validateNonInterActiveAuth-UKAPCWDM.js → validateNonInterActiveAuth-RUICXVPH.js} +61 -63
- package/chunks/{version-EXGWKKQE.js → version-QLT755OV.js} +1 -1
- package/chunks/{web-fetch-ZDNE6FF2.js → web-fetch-DINW4Z65.js} +10 -10
- package/chunks/{workflow-G7U6OQWS.js → workflow-GPMXRWKK.js} +23 -23
- package/chunks/{workspace-providers-status-W6CEA6YM.js → workspace-providers-status-XCQKBVSX.js} +30 -30
- package/chunks/{workspace-registration-store-OGBMWCLC.js → workspace-registration-store-4I4KL7TN.js} +1 -1
- package/chunks/{workspace-registry-ZUWQM44P.js → workspace-registry-N4J57SFQ.js} +25 -25
- package/chunks/{workspace-service-UXX5P7GU.js → workspace-service-JJNJWVH3.js} +32 -32
- package/chunks/{workspace-skills-status-635B5R7N.js → workspace-skills-status-CEHLAQ2Y.js} +28 -28
- package/chunks/{write-file-DR3HN7IH.js → write-file-XRGEJRCC.js} +23 -23
- package/cli.js +11 -11
- package/package.json +3 -3
- package/web-shell/assets/{arc-_dVIKMdB.js → arc-DwJhljn9.js} +1 -1
- package/web-shell/assets/{architectureDiagram-3BPJPVTR-MuN3nKpL.js → architectureDiagram-3BPJPVTR-qdxSRav-.js} +1 -1
- package/web-shell/assets/{blockDiagram-GPEHLZMM-BtmvJjzx.js → blockDiagram-GPEHLZMM-2-dKM5aM.js} +1 -1
- package/web-shell/assets/{c4Diagram-AAUBKEIU-Dvi58_BU.js → c4Diagram-AAUBKEIU-Dt_Nu2HD.js} +1 -1
- package/web-shell/assets/channel-C6uyh95L.js +1 -0
- package/web-shell/assets/{chunk-2J33WTMH-YqxOVhS1.js → chunk-2J33WTMH-CBCeeNfD.js} +1 -1
- package/web-shell/assets/{chunk-4BX2VUAB-DoBgbC9z.js → chunk-4BX2VUAB-DPAzjqNs.js} +1 -1
- package/web-shell/assets/{chunk-55IACEB6-3NEQrBAr.js → chunk-55IACEB6-yrqyxvIK.js} +1 -1
- package/web-shell/assets/{chunk-727SXJPM-DrCZQxp0.js → chunk-727SXJPM-DguD_BBT.js} +1 -1
- package/web-shell/assets/{chunk-AQP2D5EJ-m_g3zjgv.js → chunk-AQP2D5EJ-KRUOG9v0.js} +1 -1
- package/web-shell/assets/{chunk-FMBD7UC4-D1_crABJ.js → chunk-FMBD7UC4-C0lilT2U.js} +1 -1
- package/web-shell/assets/{chunk-ND2GUHAM-BdhgVtBx.js → chunk-ND2GUHAM-DG9epIWK.js} +1 -1
- package/web-shell/assets/{chunk-QZHKN3VN-BlmThhm-.js → chunk-QZHKN3VN-PdJDkYHw.js} +1 -1
- package/web-shell/assets/classDiagram-4FO5ZUOK-Cv8Ulf-B.js +1 -0
- package/web-shell/assets/classDiagram-v2-Q7XG4LA2-Cv8Ulf-B.js +1 -0
- package/web-shell/assets/{cose-bilkent-S5V4N54A-Cbjm_00Z.js → cose-bilkent-S5V4N54A-BAOPPuJm.js} +1 -1
- package/web-shell/assets/{dagre-BM42HDAG-C39QNVgC.js → dagre-BM42HDAG-CDHJv82_.js} +1 -1
- package/web-shell/assets/{diagram-2AECGRRQ-DNXSAixC.js → diagram-2AECGRRQ-C_hkG5fN.js} +1 -1
- package/web-shell/assets/{diagram-5GNKFQAL-BCbGUPEA.js → diagram-5GNKFQAL-e9zo_eKt.js} +1 -1
- package/web-shell/assets/{diagram-KO2AKTUF-1eujKSDC.js → diagram-KO2AKTUF-BFN41SCb.js} +1 -1
- package/web-shell/assets/{diagram-LMA3HP47-DUMKXgql.js → diagram-LMA3HP47-DG72N0W0.js} +1 -1
- package/web-shell/assets/{diagram-OG6HWLK6-BFktU3_u.js → diagram-OG6HWLK6-Dkmp-tdv.js} +1 -1
- package/web-shell/assets/{erDiagram-TEJ5UH35-BvJC7DLk.js → erDiagram-TEJ5UH35-CyS0GnQV.js} +1 -1
- package/web-shell/assets/{flowDiagram-I6XJVG4X-Cgu3PlOt.js → flowDiagram-I6XJVG4X-Cg1SRmzV.js} +1 -1
- package/web-shell/assets/{ganttDiagram-6RSMTGT7-DLNXN5Xh.js → ganttDiagram-6RSMTGT7-CoNkSLs3.js} +1 -1
- package/web-shell/assets/{gitGraphDiagram-PVQCEYII-BQFRDv6R.js → gitGraphDiagram-PVQCEYII-DEA6GWPa.js} +1 -1
- package/web-shell/assets/index-B49xd8_A.css +5 -0
- package/web-shell/assets/{index-CdC3pjP3.js → index-CMaZgs6B.js} +1 -1
- package/web-shell/assets/index-D-cDAZgO.js +1192 -0
- package/web-shell/assets/{infoDiagram-5YYISTIA-DT2mOSvp.js → infoDiagram-5YYISTIA-BZshyoGT.js} +1 -1
- package/web-shell/assets/{ishikawaDiagram-YF4QCWOH-9fy_K4bd.js → ishikawaDiagram-YF4QCWOH-CT2ssZqC.js} +1 -1
- package/web-shell/assets/{journeyDiagram-JHISSGLW-CoGSEuhE.js → journeyDiagram-JHISSGLW-BtMQ0rDG.js} +1 -1
- package/web-shell/assets/{kanban-definition-UN3LZRKU-BP9hHYIj.js → kanban-definition-UN3LZRKU-CoDbK5Db.js} +1 -1
- package/web-shell/assets/{linear-uIroDsmp.js → linear-CwhZ6u7u.js} +1 -1
- package/web-shell/assets/{mermaid.core-BUwoStsA.js → mermaid.core-C9nn0nrr.js} +5 -5
- package/web-shell/assets/{mindmap-definition-RKZ34NQL-DZB-FWim.js → mindmap-definition-RKZ34NQL-BXUbjTeL.js} +1 -1
- package/web-shell/assets/{pieDiagram-4H26LBE5-YPptloKl.js → pieDiagram-4H26LBE5-JddiYlWQ.js} +1 -1
- package/web-shell/assets/{quadrantDiagram-W4KKPZXB-dgk3DSzm.js → quadrantDiagram-W4KKPZXB-DK5HKzXO.js} +1 -1
- package/web-shell/assets/{requirementDiagram-4Y6WPE33-BH2En2i9.js → requirementDiagram-4Y6WPE33-Y-uipa_6.js} +1 -1
- package/web-shell/assets/{sankeyDiagram-5OEKKPKP-BB98feeI.js → sankeyDiagram-5OEKKPKP-BbWeqo8H.js} +1 -1
- package/web-shell/assets/{sequenceDiagram-3UESZ5HK-CunAIGh8.js → sequenceDiagram-3UESZ5HK-tX2gOoo5.js} +1 -1
- package/web-shell/assets/{stateDiagram-AJRCARHV-DTJs_-I2.js → stateDiagram-AJRCARHV-CACN457G.js} +1 -1
- package/web-shell/assets/stateDiagram-v2-BHNVJYJU-DaUeO2zt.js +1 -0
- package/web-shell/assets/{timeline-definition-PNZ67QCA-Cd4AN7O0.js → timeline-definition-PNZ67QCA-DnHWKSOq.js} +1 -1
- package/web-shell/assets/{vennDiagram-CIIHVFJN-xIG-rUU9.js → vennDiagram-CIIHVFJN-BO8Yl2FG.js} +1 -1
- package/web-shell/assets/{wardley-L42UT6IY-D1UyjIcG.js → wardley-L42UT6IY-1NMqqrBi.js} +1 -1
- package/web-shell/assets/{wardleyDiagram-YWT4CUSO-BVM0Mb99.js → wardleyDiagram-YWT4CUSO-C3eWgIvD.js} +1 -1
- package/web-shell/assets/{xychartDiagram-2RQKCTM6-BX31JDSz.js → xychartDiagram-2RQKCTM6-D0h8FgFX.js} +1 -1
- package/web-shell/index.html +2 -2
- package/chunks/chunk-EDFD7VOX.js +0 -368
- package/chunks/chunk-GFYFLDEG.js +0 -709
- package/chunks/chunk-LUJQUNKY.js +0 -3288
- package/chunks/nonInteractiveCli-YURFHZV5.js +0 -129
- package/web-shell/assets/channel-Bi5TehaT.js +0 -1
- package/web-shell/assets/classDiagram-4FO5ZUOK-BKhhRdd1.js +0 -1
- package/web-shell/assets/classDiagram-v2-Q7XG4LA2-BKhhRdd1.js +0 -1
- package/web-shell/assets/index-C_ouplMQ.js +0 -1187
- package/web-shell/assets/index-XGDFJE-X.css +0 -5
- package/web-shell/assets/stateDiagram-v2-BHNVJYJU-DrfFMYta.js +0 -1
|
@@ -4,8 +4,6 @@ import {
|
|
|
4
4
|
eastAsianWidth
|
|
5
5
|
} from "./chunk-QHTIBUWB.js";
|
|
6
6
|
import {
|
|
7
|
-
ansiRegex,
|
|
8
|
-
init_ansi_regex,
|
|
9
7
|
stripAnsi
|
|
10
8
|
} from "./chunk-T4TZQJ7W.js";
|
|
11
9
|
import {
|
|
@@ -78,292 +76,6 @@ function stringWidth(string, options = {}) {
|
|
|
78
76
|
}
|
|
79
77
|
__name(stringWidth, "stringWidth");
|
|
80
78
|
|
|
81
|
-
// packages/cli/src/ui/utils/textUtils.ts
|
|
82
|
-
init_esbuild_shims();
|
|
83
|
-
init_ansi_regex();
|
|
84
|
-
import { stripVTControlCharacters } from "node:util";
|
|
85
|
-
var getAsciiArtWidth = /* @__PURE__ */ __name((asciiArt) => {
|
|
86
|
-
if (!asciiArt) {
|
|
87
|
-
return 0;
|
|
88
|
-
}
|
|
89
|
-
const lines = asciiArt.split("\n");
|
|
90
|
-
return Math.max(...lines.map((line) => getCachedStringWidth(line)));
|
|
91
|
-
}, "getAsciiArtWidth");
|
|
92
|
-
var codePointsCache = /* @__PURE__ */ new Map();
|
|
93
|
-
var MAX_STRING_LENGTH_TO_CACHE = 1e3;
|
|
94
|
-
function toCodePoints(str) {
|
|
95
|
-
let isAscii = true;
|
|
96
|
-
for (let i = 0; i < str.length; i++) {
|
|
97
|
-
if (str.charCodeAt(i) > 127) {
|
|
98
|
-
isAscii = false;
|
|
99
|
-
break;
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
if (isAscii) {
|
|
103
|
-
return str.split("");
|
|
104
|
-
}
|
|
105
|
-
if (str.length <= MAX_STRING_LENGTH_TO_CACHE) {
|
|
106
|
-
const cached = codePointsCache.get(str);
|
|
107
|
-
if (cached) {
|
|
108
|
-
return cached;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
const result = Array.from(str);
|
|
112
|
-
if (str.length <= MAX_STRING_LENGTH_TO_CACHE) {
|
|
113
|
-
codePointsCache.set(str, result);
|
|
114
|
-
}
|
|
115
|
-
return result;
|
|
116
|
-
}
|
|
117
|
-
__name(toCodePoints, "toCodePoints");
|
|
118
|
-
function cpLen(str) {
|
|
119
|
-
return toCodePoints(str).length;
|
|
120
|
-
}
|
|
121
|
-
__name(cpLen, "cpLen");
|
|
122
|
-
function cpSlice(str, start, end) {
|
|
123
|
-
const arr = toCodePoints(str).slice(start, end);
|
|
124
|
-
return arr.join("");
|
|
125
|
-
}
|
|
126
|
-
__name(cpSlice, "cpSlice");
|
|
127
|
-
function stripUnsafeCharacters(str) {
|
|
128
|
-
const strippedAnsi = stripAnsi(str);
|
|
129
|
-
const strippedVT = stripVTControlCharacters(strippedAnsi);
|
|
130
|
-
return toCodePoints(strippedVT).filter((char) => {
|
|
131
|
-
const code = char.codePointAt(0);
|
|
132
|
-
if (code === void 0) return false;
|
|
133
|
-
if (code === 9 || code === 10 || code === 13) return true;
|
|
134
|
-
if (code >= 0 && code <= 31) return false;
|
|
135
|
-
if (code >= 128 && code <= 159) return false;
|
|
136
|
-
return true;
|
|
137
|
-
}).join("");
|
|
138
|
-
}
|
|
139
|
-
__name(stripUnsafeCharacters, "stripUnsafeCharacters");
|
|
140
|
-
var stringWidthCache = /* @__PURE__ */ new Map();
|
|
141
|
-
var getCachedStringWidth = /* @__PURE__ */ __name((str) => {
|
|
142
|
-
if (/^[\x20-\x7E]*$/.test(str)) {
|
|
143
|
-
return str.length;
|
|
144
|
-
}
|
|
145
|
-
if (stringWidthCache.has(str)) {
|
|
146
|
-
return stringWidthCache.get(str);
|
|
147
|
-
}
|
|
148
|
-
const width = stringWidth(str);
|
|
149
|
-
stringWidthCache.set(str, width);
|
|
150
|
-
return width;
|
|
151
|
-
}, "getCachedStringWidth");
|
|
152
|
-
var graphemeSegmenter = new Intl.Segmenter(void 0, {
|
|
153
|
-
granularity: "grapheme"
|
|
154
|
-
});
|
|
155
|
-
function truncateToWidth(text, maxWidth) {
|
|
156
|
-
if (maxWidth <= 0) {
|
|
157
|
-
return "";
|
|
158
|
-
}
|
|
159
|
-
if (getCachedStringWidth(text) <= maxWidth) {
|
|
160
|
-
return text;
|
|
161
|
-
}
|
|
162
|
-
const ellipsis = "\u2026";
|
|
163
|
-
const budget = Math.max(0, maxWidth - getCachedStringWidth(ellipsis));
|
|
164
|
-
let width = 0;
|
|
165
|
-
let result = "";
|
|
166
|
-
for (const { segment } of graphemeSegmenter.segment(text)) {
|
|
167
|
-
const segmentWidth = getCachedStringWidth(segment);
|
|
168
|
-
if (width + segmentWidth > budget) {
|
|
169
|
-
break;
|
|
170
|
-
}
|
|
171
|
-
result += segment;
|
|
172
|
-
width += segmentWidth;
|
|
173
|
-
}
|
|
174
|
-
return `${result}${ellipsis}`;
|
|
175
|
-
}
|
|
176
|
-
__name(truncateToWidth, "truncateToWidth");
|
|
177
|
-
function wrapToVisualLines(text, width) {
|
|
178
|
-
if (width <= 0) {
|
|
179
|
-
return [""];
|
|
180
|
-
}
|
|
181
|
-
const visualLines = [];
|
|
182
|
-
for (const logicalLine of text.split("\n")) {
|
|
183
|
-
if (logicalLine === "") {
|
|
184
|
-
visualLines.push("");
|
|
185
|
-
continue;
|
|
186
|
-
}
|
|
187
|
-
let currentLine = "";
|
|
188
|
-
let currentWidth = 0;
|
|
189
|
-
for (const char of logicalLine) {
|
|
190
|
-
const charWidth = getCachedStringWidth(char);
|
|
191
|
-
if (currentWidth + charWidth > width && currentWidth > 0) {
|
|
192
|
-
visualLines.push(currentLine);
|
|
193
|
-
currentLine = "";
|
|
194
|
-
currentWidth = 0;
|
|
195
|
-
}
|
|
196
|
-
currentLine += char;
|
|
197
|
-
currentWidth += charWidth;
|
|
198
|
-
}
|
|
199
|
-
if (currentLine) {
|
|
200
|
-
visualLines.push(currentLine);
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
if (visualLines.length === 0) {
|
|
204
|
-
visualLines.push("");
|
|
205
|
-
}
|
|
206
|
-
return visualLines;
|
|
207
|
-
}
|
|
208
|
-
__name(wrapToVisualLines, "wrapToVisualLines");
|
|
209
|
-
var regex = ansiRegex();
|
|
210
|
-
var BARE_C0_CONTROL_CHARS_REGEX = /[\x00-\x08\x0b-\x1f\x7f-\x9f]/g;
|
|
211
|
-
var BIDI_OVERRIDE_CHARS_REGEX = /[\u200e\u200f\u202a-\u202e\u2066-\u2069]/g;
|
|
212
|
-
function sanitizeTerminalText(value) {
|
|
213
|
-
return escapeAnsiCtrlCodes(value).replace(BARE_C0_CONTROL_CHARS_REGEX, "").replace(BIDI_OVERRIDE_CHARS_REGEX, "");
|
|
214
|
-
}
|
|
215
|
-
__name(sanitizeTerminalText, "sanitizeTerminalText");
|
|
216
|
-
function escapeAnsiCtrlCodes(obj) {
|
|
217
|
-
if (typeof obj === "string") {
|
|
218
|
-
if (obj.search(regex) === -1) {
|
|
219
|
-
return obj;
|
|
220
|
-
}
|
|
221
|
-
regex.lastIndex = 0;
|
|
222
|
-
return obj.replace(
|
|
223
|
-
regex,
|
|
224
|
-
(match) => JSON.stringify(match).slice(1, -1)
|
|
225
|
-
);
|
|
226
|
-
}
|
|
227
|
-
if (obj === null || typeof obj !== "object") {
|
|
228
|
-
return obj;
|
|
229
|
-
}
|
|
230
|
-
if (Array.isArray(obj)) {
|
|
231
|
-
let newArr = null;
|
|
232
|
-
for (let i = 0; i < obj.length; i++) {
|
|
233
|
-
const value = obj[i];
|
|
234
|
-
const escapedValue = escapeAnsiCtrlCodes(value);
|
|
235
|
-
if (escapedValue !== value) {
|
|
236
|
-
if (newArr === null) {
|
|
237
|
-
newArr = [...obj];
|
|
238
|
-
}
|
|
239
|
-
newArr[i] = escapedValue;
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
return newArr !== null ? newArr : obj;
|
|
243
|
-
}
|
|
244
|
-
let newObj = null;
|
|
245
|
-
const keys = Object.keys(obj);
|
|
246
|
-
for (const key of keys) {
|
|
247
|
-
const value = obj[key];
|
|
248
|
-
const escapedValue = escapeAnsiCtrlCodes(value);
|
|
249
|
-
if (escapedValue !== value) {
|
|
250
|
-
if (newObj === null) {
|
|
251
|
-
newObj = { ...obj };
|
|
252
|
-
}
|
|
253
|
-
newObj[key] = escapedValue;
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
return newObj !== null ? newObj : obj;
|
|
257
|
-
}
|
|
258
|
-
__name(escapeAnsiCtrlCodes, "escapeAnsiCtrlCodes");
|
|
259
|
-
var SENSITIVE_PATTERNS = [
|
|
260
|
-
// API keys with common prefixes
|
|
261
|
-
{
|
|
262
|
-
pattern: /(sk-[a-zA-Z0-9]{20,})/g,
|
|
263
|
-
replacement: "sk-***REDACTED***"
|
|
264
|
-
},
|
|
265
|
-
{
|
|
266
|
-
pattern: /(api[_-]?key[_-]?[=:]\s*)[a-zA-Z0-9_-]{20,}/gi,
|
|
267
|
-
replacement: "$1***REDACTED***"
|
|
268
|
-
},
|
|
269
|
-
// Bearer tokens
|
|
270
|
-
{
|
|
271
|
-
pattern: /(Bearer\s+)[a-zA-Z0-9._-]+/gi,
|
|
272
|
-
replacement: "$1***REDACTED***"
|
|
273
|
-
},
|
|
274
|
-
// Generic tokens
|
|
275
|
-
{
|
|
276
|
-
pattern: /(token[_-]?[=:]\s*)[a-zA-Z0-9._-]{10,}/gi,
|
|
277
|
-
replacement: "$1***REDACTED***"
|
|
278
|
-
},
|
|
279
|
-
// Passwords in connection strings or assignments
|
|
280
|
-
{
|
|
281
|
-
pattern: /(password[_-]?[=:]\s*)[^\s]+/gi,
|
|
282
|
-
replacement: "$1***REDACTED***"
|
|
283
|
-
},
|
|
284
|
-
{
|
|
285
|
-
pattern: /(pwd[_-]?[=:]\s*)[^\s]+/gi,
|
|
286
|
-
replacement: "$1***REDACTED***"
|
|
287
|
-
},
|
|
288
|
-
// AWS keys
|
|
289
|
-
{
|
|
290
|
-
pattern: /(AKIA[A-Z0-9]{16})/g,
|
|
291
|
-
replacement: "***REDACTED***"
|
|
292
|
-
},
|
|
293
|
-
// Generic secret patterns
|
|
294
|
-
{
|
|
295
|
-
pattern: /(secret[_-]?[=:]\s*)[a-zA-Z0-9._-]{10,}/gi,
|
|
296
|
-
replacement: "$1***REDACTED***"
|
|
297
|
-
}
|
|
298
|
-
];
|
|
299
|
-
function sanitizeSensitiveText(text, maxLength = 200) {
|
|
300
|
-
let result = text;
|
|
301
|
-
for (const { pattern, replacement } of SENSITIVE_PATTERNS) {
|
|
302
|
-
result = result.replace(pattern, replacement);
|
|
303
|
-
}
|
|
304
|
-
if (result.length > maxLength) {
|
|
305
|
-
if (maxLength <= 3) {
|
|
306
|
-
return result.slice(0, maxLength);
|
|
307
|
-
}
|
|
308
|
-
return result.slice(0, maxLength - 3) + "...";
|
|
309
|
-
}
|
|
310
|
-
return result;
|
|
311
|
-
}
|
|
312
|
-
__name(sanitizeSensitiveText, "sanitizeSensitiveText");
|
|
313
|
-
var FILENAME_CONTROL_CHARS_REGEX = /[\x00-\x1f\x7f-\x9f\u202a-\u202e\u2066-\u2069]/g;
|
|
314
|
-
var MULTILINE_CONTROL_CHARS_REGEX = /[\x00-\x08\x0b-\x1f\x7f-\x9f\u202a-\u202e\u2066-\u2069]/g;
|
|
315
|
-
function escapeControlChar(ch) {
|
|
316
|
-
switch (ch) {
|
|
317
|
-
case "\b":
|
|
318
|
-
return "\\b";
|
|
319
|
-
case " ":
|
|
320
|
-
return "\\t";
|
|
321
|
-
case "\n":
|
|
322
|
-
return "\\n";
|
|
323
|
-
case "\f":
|
|
324
|
-
return "\\f";
|
|
325
|
-
case "\r":
|
|
326
|
-
return "\\r";
|
|
327
|
-
default: {
|
|
328
|
-
const code = ch.charCodeAt(0);
|
|
329
|
-
return `\\u${code.toString(16).padStart(4, "0")}`;
|
|
330
|
-
}
|
|
331
|
-
}
|
|
332
|
-
}
|
|
333
|
-
__name(escapeControlChar, "escapeControlChar");
|
|
334
|
-
function sanitizeFilenameForDisplay(name) {
|
|
335
|
-
return escapeAnsiCtrlCodes(name).replace(
|
|
336
|
-
FILENAME_CONTROL_CHARS_REGEX,
|
|
337
|
-
escapeControlChar
|
|
338
|
-
);
|
|
339
|
-
}
|
|
340
|
-
__name(sanitizeFilenameForDisplay, "sanitizeFilenameForDisplay");
|
|
341
|
-
function sanitizeMultilineForDisplay(text) {
|
|
342
|
-
return escapeAnsiCtrlCodes(text).replace(
|
|
343
|
-
MULTILINE_CONTROL_CHARS_REGEX,
|
|
344
|
-
escapeControlChar
|
|
345
|
-
);
|
|
346
|
-
}
|
|
347
|
-
__name(sanitizeMultilineForDisplay, "sanitizeMultilineForDisplay");
|
|
348
|
-
|
|
349
79
|
export {
|
|
350
|
-
stringWidth
|
|
351
|
-
getAsciiArtWidth,
|
|
352
|
-
toCodePoints,
|
|
353
|
-
cpLen,
|
|
354
|
-
cpSlice,
|
|
355
|
-
stripUnsafeCharacters,
|
|
356
|
-
getCachedStringWidth,
|
|
357
|
-
truncateToWidth,
|
|
358
|
-
wrapToVisualLines,
|
|
359
|
-
sanitizeTerminalText,
|
|
360
|
-
escapeAnsiCtrlCodes,
|
|
361
|
-
sanitizeSensitiveText,
|
|
362
|
-
sanitizeFilenameForDisplay,
|
|
363
|
-
sanitizeMultilineForDisplay
|
|
80
|
+
stringWidth
|
|
364
81
|
};
|
|
365
|
-
/**
|
|
366
|
-
* @license
|
|
367
|
-
* Copyright 2025 Google LLC
|
|
368
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
369
|
-
*/
|
|
@@ -7,28 +7,28 @@ import {
|
|
|
7
7
|
parseAcpBaseModelId,
|
|
8
8
|
resolveCliGenerationConfig,
|
|
9
9
|
sanitizeProviderBaseUrl
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-JBCFW3IL.js";
|
|
11
11
|
import {
|
|
12
12
|
snapshotProcessEnv
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-THNJYTA6.js";
|
|
14
14
|
import {
|
|
15
15
|
STATUS_SCHEMA_VERSION
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-TQBA6DVX.js";
|
|
17
17
|
import {
|
|
18
18
|
loadSettings
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-2YJLFCYI.js";
|
|
20
20
|
import {
|
|
21
21
|
ModelsConfig
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-JDPCOUZ3.js";
|
|
23
23
|
import {
|
|
24
24
|
APPROVAL_MODES
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-CPCVCKKF.js";
|
|
26
26
|
import {
|
|
27
27
|
tokenLimit
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-MAQQGNQ5.js";
|
|
29
29
|
import {
|
|
30
30
|
createDebugLogger
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-C27BYUX6.js";
|
|
32
32
|
import {
|
|
33
33
|
init_esbuild_shims
|
|
34
34
|
} from "./chunk-5O2XNYP6.js";
|
|
@@ -19,32 +19,35 @@ import {
|
|
|
19
19
|
} from "./chunk-VGC4I5JJ.js";
|
|
20
20
|
import {
|
|
21
21
|
isAnyAutoMemPath
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-JD3MKVKL.js";
|
|
23
23
|
import {
|
|
24
24
|
InstallationManager
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-UEY4AYUL.js";
|
|
26
26
|
import {
|
|
27
27
|
atomicWriteFile,
|
|
28
28
|
atomicWriteFileSync
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-BDBMYST4.js";
|
|
30
30
|
import {
|
|
31
31
|
STRUCTURED_OUTPUT_REDACTED_ARGS
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-EZVDJFZ7.js";
|
|
33
33
|
import {
|
|
34
34
|
BaseDeclarativeTool,
|
|
35
35
|
BaseToolInvocation,
|
|
36
36
|
SchemaValidator,
|
|
37
37
|
ToolDisplayNames,
|
|
38
38
|
ToolNames
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-OP4MOGXF.js";
|
|
40
40
|
import {
|
|
41
41
|
convertSchema,
|
|
42
42
|
estimateTextTokens,
|
|
43
|
+
generateLegacyMcpToolName,
|
|
43
44
|
normalize,
|
|
45
|
+
normalizeMcpToolName,
|
|
46
|
+
normalizeToolNameForProvider,
|
|
44
47
|
runtimeDiagnostics,
|
|
45
48
|
safeJsonParse,
|
|
46
49
|
setToolCallPreparations
|
|
47
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-MAQQGNQ5.js";
|
|
48
51
|
import {
|
|
49
52
|
require_lib
|
|
50
53
|
} from "./chunk-A4UCTEB5.js";
|
|
@@ -70,7 +73,7 @@ import {
|
|
|
70
73
|
setShellTracePropagation,
|
|
71
74
|
shortenPath,
|
|
72
75
|
unescapePath
|
|
73
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-C27BYUX6.js";
|
|
74
77
|
import {
|
|
75
78
|
require_dist
|
|
76
79
|
} from "./chunk-75DOP5OR.js";
|
|
@@ -62703,12 +62706,14 @@ var MCP_CONNECTION_ERROR_PATTERNS = [
|
|
|
62703
62706
|
/transport closed/i
|
|
62704
62707
|
];
|
|
62705
62708
|
var DiscoveredMCPToolInvocation = class _DiscoveredMCPToolInvocation extends BaseToolInvocation {
|
|
62706
|
-
constructor(mcpTool, serverName, serverToolName, displayName, trust, params = {}, cliConfig, mcpClient, mcpTimeout, mcpToolIdleTimeoutMs, annotations, retryCount = 0) {
|
|
62709
|
+
constructor(mcpTool, serverName, serverToolName, displayName, registeredToolName, permissionAliases, trust, params = {}, cliConfig, mcpClient, mcpTimeout, mcpToolIdleTimeoutMs, annotations, retryCount = 0) {
|
|
62707
62710
|
super(params);
|
|
62708
62711
|
this.mcpTool = mcpTool;
|
|
62709
62712
|
this.serverName = serverName;
|
|
62710
62713
|
this.serverToolName = serverToolName;
|
|
62711
62714
|
this.displayName = displayName;
|
|
62715
|
+
this.registeredToolName = registeredToolName;
|
|
62716
|
+
this.permissionAliases = permissionAliases;
|
|
62712
62717
|
this.trust = trust;
|
|
62713
62718
|
this.cliConfig = cliConfig;
|
|
62714
62719
|
this.mcpClient = mcpClient;
|
|
@@ -62736,7 +62741,7 @@ var DiscoveredMCPToolInvocation = class _DiscoveredMCPToolInvocation extends Bas
|
|
|
62736
62741
|
* Constructs confirmation dialog details for an MCP tool call.
|
|
62737
62742
|
*/
|
|
62738
62743
|
async getConfirmationDetails(_abortSignal) {
|
|
62739
|
-
const permissionRule =
|
|
62744
|
+
const permissionRule = this.registeredToolName;
|
|
62740
62745
|
const confirmationDetails = {
|
|
62741
62746
|
type: "mcp",
|
|
62742
62747
|
title: "Confirm MCP Tool Execution",
|
|
@@ -62773,9 +62778,7 @@ var DiscoveredMCPToolInvocation = class _DiscoveredMCPToolInvocation extends Bas
|
|
|
62773
62778
|
);
|
|
62774
62779
|
const toolRegistry = this.cliConfig.getToolRegistry();
|
|
62775
62780
|
await toolRegistry.discoverToolsForServer(this.serverName);
|
|
62776
|
-
const newTool = await toolRegistry.ensureTool(
|
|
62777
|
-
`mcp__${this.serverName}__${this.serverToolName}`
|
|
62778
|
-
);
|
|
62781
|
+
const newTool = await toolRegistry.ensureTool(this.registeredToolName);
|
|
62779
62782
|
if (newTool instanceof DiscoveredMCPTool) {
|
|
62780
62783
|
debugLogger4.info(
|
|
62781
62784
|
`Successfully reconnected to MCP server '${this.serverName}'`
|
|
@@ -62806,6 +62809,8 @@ var DiscoveredMCPToolInvocation = class _DiscoveredMCPToolInvocation extends Bas
|
|
|
62806
62809
|
this.serverName,
|
|
62807
62810
|
this.serverToolName,
|
|
62808
62811
|
this.displayName,
|
|
62812
|
+
newTool.name,
|
|
62813
|
+
newTool.permissionAliases,
|
|
62809
62814
|
this.trust,
|
|
62810
62815
|
this.params,
|
|
62811
62816
|
this.cliConfig,
|
|
@@ -63001,7 +63006,7 @@ var DiscoveredMCPToolInvocation = class _DiscoveredMCPToolInvocation extends Bas
|
|
|
63001
63006
|
if (part.text && !part.inlineData) {
|
|
63002
63007
|
const truncated = await truncateToolOutput(
|
|
63003
63008
|
this.cliConfig,
|
|
63004
|
-
|
|
63009
|
+
this.registeredToolName,
|
|
63005
63010
|
part.text,
|
|
63006
63011
|
// Per-tool char budget; mirrors DiscoveredMCPTool.maxOutputChars
|
|
63007
63012
|
// (10x the global default, since MCP servers return large structured
|
|
@@ -63062,6 +63067,13 @@ var DiscoveredMCPTool = class _DiscoveredMCPTool extends BaseDeclarativeTool {
|
|
|
63062
63067
|
get maxOutputChars() {
|
|
63063
63068
|
return 5e5;
|
|
63064
63069
|
}
|
|
63070
|
+
/** Keeps pre-normalization permission and disabled-tool entries effective. */
|
|
63071
|
+
get permissionAliases() {
|
|
63072
|
+
const legacyName = generateLegacyMcpToolName(
|
|
63073
|
+
`mcp__${this.serverName}__${this.serverToolName}`
|
|
63074
|
+
);
|
|
63075
|
+
return legacyName === this.name ? [] : [legacyName];
|
|
63076
|
+
}
|
|
63065
63077
|
asFullyQualifiedTool() {
|
|
63066
63078
|
return new _DiscoveredMCPTool(
|
|
63067
63079
|
this.mcpTool,
|
|
@@ -63121,6 +63133,8 @@ var DiscoveredMCPTool = class _DiscoveredMCPTool extends BaseDeclarativeTool {
|
|
|
63121
63133
|
this.serverName,
|
|
63122
63134
|
this.serverToolName,
|
|
63123
63135
|
this.displayName,
|
|
63136
|
+
this.name,
|
|
63137
|
+
this.permissionAliases,
|
|
63124
63138
|
this.trust,
|
|
63125
63139
|
params,
|
|
63126
63140
|
this.cliConfig,
|
|
@@ -63232,11 +63246,7 @@ function getDisplayFromParts(parts) {
|
|
|
63232
63246
|
}
|
|
63233
63247
|
__name(getDisplayFromParts, "getDisplayFromParts");
|
|
63234
63248
|
function generateValidName(name) {
|
|
63235
|
-
|
|
63236
|
-
if (validToolname.length > 63) {
|
|
63237
|
-
validToolname = validToolname.slice(0, 28) + "___" + validToolname.slice(-32);
|
|
63238
|
-
}
|
|
63239
|
-
return validToolname;
|
|
63249
|
+
return normalizeToolNameForProvider(name);
|
|
63240
63250
|
}
|
|
63241
63251
|
__name(generateValidName, "generateValidName");
|
|
63242
63252
|
|
|
@@ -64816,7 +64826,7 @@ function processContent(content, messages, requestContext) {
|
|
|
64816
64826
|
id: callId || `call_${toolCallIndex}`,
|
|
64817
64827
|
type: "function",
|
|
64818
64828
|
function: {
|
|
64819
|
-
name: part.functionCall.name || "",
|
|
64829
|
+
name: normalizeMcpToolName(part.functionCall.name || ""),
|
|
64820
64830
|
arguments: JSON.stringify(part.functionCall.args || {})
|
|
64821
64831
|
}
|
|
64822
64832
|
});
|
|
@@ -70652,11 +70662,11 @@ async function createContentGenerator(generatorConfig, config, isInitialAuth) {
|
|
|
70652
70662
|
let baseGenerator;
|
|
70653
70663
|
try {
|
|
70654
70664
|
if (authType === "openai" /* USE_OPENAI */) {
|
|
70655
|
-
const { createOpenAIContentGenerator } = await import("./openaiContentGenerator-
|
|
70665
|
+
const { createOpenAIContentGenerator } = await import("./openaiContentGenerator-GOREG72R.js");
|
|
70656
70666
|
baseGenerator = createOpenAIContentGenerator(generatorConfig, config);
|
|
70657
70667
|
} else if (authType === "qwen-oauth" /* QWEN_OAUTH */) {
|
|
70658
|
-
const { getQwenOAuthClient: getQwenOauthClient } = await import("./qwenOAuth2-
|
|
70659
|
-
const { QwenContentGenerator } = await import("./qwenContentGenerator-
|
|
70668
|
+
const { getQwenOAuthClient: getQwenOauthClient } = await import("./qwenOAuth2-QZBI2SOZ.js");
|
|
70669
|
+
const { QwenContentGenerator } = await import("./qwenContentGenerator-R55BCLRI.js");
|
|
70660
70670
|
try {
|
|
70661
70671
|
const qwenClient = await getQwenOauthClient(
|
|
70662
70672
|
config,
|
|
@@ -70674,10 +70684,10 @@ async function createContentGenerator(generatorConfig, config, isInitialAuth) {
|
|
|
70674
70684
|
throw new Error(error instanceof Error ? error.message : String(error));
|
|
70675
70685
|
}
|
|
70676
70686
|
} else if (authType === "anthropic" /* USE_ANTHROPIC */) {
|
|
70677
|
-
const { createAnthropicContentGenerator } = await import("./anthropicContentGenerator-
|
|
70687
|
+
const { createAnthropicContentGenerator } = await import("./anthropicContentGenerator-HVKLXOOU.js");
|
|
70678
70688
|
baseGenerator = createAnthropicContentGenerator(generatorConfig, config);
|
|
70679
70689
|
} else if (authType === "gemini" /* USE_GEMINI */ || authType === "vertex-ai" /* USE_VERTEX_AI */) {
|
|
70680
|
-
const { createGeminiContentGenerator } = await import("./geminiContentGenerator-
|
|
70690
|
+
const { createGeminiContentGenerator } = await import("./geminiContentGenerator-MKXLUFUH.js");
|
|
70681
70691
|
baseGenerator = createGeminiContentGenerator(generatorConfig, config);
|
|
70682
70692
|
} else {
|
|
70683
70693
|
throw new Error(
|
|
@@ -6,16 +6,16 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
JsonFormatter,
|
|
8
8
|
parseAndFormatApiError
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-JDPCOUZ3.js";
|
|
10
10
|
import {
|
|
11
11
|
FatalBudgetExceededError,
|
|
12
12
|
FatalCancellationError,
|
|
13
13
|
FatalTurnLimitedError,
|
|
14
14
|
createDebugLogger
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-C27BYUX6.js";
|
|
16
16
|
import {
|
|
17
17
|
runExitCleanup
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-COWNNAWJ.js";
|
|
19
19
|
import {
|
|
20
20
|
init_esbuild_shims
|
|
21
21
|
} from "./chunk-5O2XNYP6.js";
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
import {
|
|
4
4
|
settleChatRecording,
|
|
5
5
|
subscribeToHeadlessChatRecordingFailures
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import {
|
|
8
|
-
handleAtCommand
|
|
9
|
-
} from "./chunk-KGWA7XYL.js";
|
|
6
|
+
} from "./chunk-FWT66O5E.js";
|
|
10
7
|
import {
|
|
11
8
|
JsonOutputAdapter
|
|
12
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-VGFFYNBD.js";
|
|
13
10
|
import {
|
|
14
11
|
StreamJsonOutputAdapter
|
|
15
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-O2SPEQFA.js";
|
|
13
|
+
import {
|
|
14
|
+
handleAtCommand
|
|
15
|
+
} from "./chunk-JRJ2LV6P.js";
|
|
16
16
|
import {
|
|
17
17
|
buildInitialSystemReminders,
|
|
18
18
|
buildSystemMessage,
|
|
@@ -24,10 +24,10 @@ import {
|
|
|
24
24
|
insertAfterFunctionResponses,
|
|
25
25
|
isSlashCommand,
|
|
26
26
|
normalizePartList
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-YDZ6J2BY.js";
|
|
28
28
|
import {
|
|
29
29
|
RunBudgetEnforcer
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-Y5534U4G.js";
|
|
31
31
|
import {
|
|
32
32
|
AlreadyReportedError,
|
|
33
33
|
handleBudgetExceededError,
|
|
@@ -35,10 +35,10 @@ import {
|
|
|
35
35
|
handleError,
|
|
36
36
|
handleMaxTurnsExceededError,
|
|
37
37
|
handleToolError
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-IDGTC5AS.js";
|
|
39
39
|
import {
|
|
40
40
|
isInlineModelOverrideAllowed
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-JBCFW3IL.js";
|
|
42
42
|
import {
|
|
43
43
|
buildSessionRecoveryPlanFromApiHistory,
|
|
44
44
|
canonicalToolName,
|
|
@@ -55,19 +55,19 @@ import {
|
|
|
55
55
|
partitionByConcurrencySafety,
|
|
56
56
|
promptIdContext,
|
|
57
57
|
restoreWorktreeContext
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-JDPCOUZ3.js";
|
|
59
59
|
import {
|
|
60
60
|
isTelemetrySdkInitialized,
|
|
61
61
|
shutdownTelemetry,
|
|
62
62
|
uiTelemetryService
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-I6JUVU7J.js";
|
|
64
64
|
import {
|
|
65
65
|
ToolNames
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-OP4MOGXF.js";
|
|
67
67
|
import {
|
|
68
68
|
FatalInputError,
|
|
69
69
|
createDebugLogger
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-C27BYUX6.js";
|
|
71
71
|
import {
|
|
72
72
|
init_esbuild_shims
|
|
73
73
|
} from "./chunk-5O2XNYP6.js";
|
|
@@ -290,7 +290,9 @@ async function runNonInteractive(config, settings, input, prompt_id, options = {
|
|
|
290
290
|
} else {
|
|
291
291
|
approvalListener = /* @__PURE__ */ __name((event) => {
|
|
292
292
|
const mode = config.getApprovalMode();
|
|
293
|
-
|
|
293
|
+
const confirmationDetails = event.confirmationDetails;
|
|
294
|
+
const requiresExplicitHostApproval = confirmationDetails?.type !== "plan" && confirmationDetails !== void 0 && "hideAlwaysAllow" in confirmationDetails && confirmationDetails.hideAlwaysAllow === true;
|
|
295
|
+
if (mode === "yolo" /* YOLO */ && !requiresExplicitHostApproval) {
|
|
294
296
|
event.respond("proceed_once" /* ProceedOnce */).catch((err) => {
|
|
295
297
|
debugLogger.warn(
|
|
296
298
|
"Teammate approval ProceedOnce failed:",
|
|
@@ -299,7 +301,7 @@ async function runNonInteractive(config, settings, input, prompt_id, options = {
|
|
|
299
301
|
});
|
|
300
302
|
return;
|
|
301
303
|
}
|
|
302
|
-
const reason = `Auto-cancelling tool ${event.toolName} requested by teammate "${event.teammateName}": current approval mode (${mode}) cannot prompt in non-stream-json mode. Use --yolo or stream-json to allow teammate tool calls.`;
|
|
304
|
+
const reason = requiresExplicitHostApproval ? mode === "yolo" /* YOLO */ ? `Auto-cancelling tool ${event.toolName} requested by teammate "${event.teammateName}": this request requires an explicit interactive approval surface and cannot be bypassed by YOLO mode.` : `Auto-cancelling tool ${event.toolName} requested by teammate "${event.teammateName}": this request requires an explicit interactive approval surface, which is unavailable in non-stream-json mode with the current approval mode (${mode}). Use --input-format stream-json --output-format stream-json to review it.` : `Auto-cancelling tool ${event.toolName} requested by teammate "${event.teammateName}": current approval mode (${mode}) cannot prompt in non-stream-json mode. Use --yolo or stream-json to allow teammate tool calls.`;
|
|
303
305
|
process.stderr.write(`[team] ${reason}
|
|
304
306
|
`);
|
|
305
307
|
pendingTeammateMessages.push(
|
|
@@ -4,14 +4,14 @@ import {
|
|
|
4
4
|
resolveModelConfig,
|
|
5
5
|
resolveProviderProtocol,
|
|
6
6
|
stripRuntimeSnapshotPrefix
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-JDPCOUZ3.js";
|
|
8
8
|
import {
|
|
9
9
|
external_exports
|
|
10
10
|
} from "./chunk-H6XPXXMH.js";
|
|
11
11
|
import {
|
|
12
12
|
AuthType,
|
|
13
13
|
MODEL_GENERATION_CONFIG_FIELDS
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-I6JUVU7J.js";
|
|
15
15
|
import {
|
|
16
16
|
REASONING_EFFORT_TIERS,
|
|
17
17
|
normalizeReasoningEffort
|