@qwen-code/qwen-code 0.21.11 → 0.21.12-preview.3
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/chunks/{MaxSizedBox-G7QPSZTF.js → MaxSizedBox-EIK4BHBQ.js} +24 -24
- package/chunks/{StandaloneSessionPicker-3CTEPV7S.js → StandaloneSessionPicker-NHVJDRYD.js} +44 -43
- package/chunks/{acpAgent-43JURWOW.js → acpAgent-37UDZP64.js} +103 -97
- package/chunks/{agent-MIY4LJJJ.js → agent-FAWBG7PP.js} +20 -20
- package/chunks/{agent-headless-LWVA6GR5.js → agent-headless-SHK4PCCH.js} +20 -20
- package/chunks/{anthropicContentGenerator-7HEP7Q5D.js → anthropicContentGenerator-4JSC3ZFL.js} +20 -20
- package/chunks/{bridge-PTTJEBNP.js → bridge-DEAYNDCI.js} +22 -22
- package/chunks/{build-GDBLPA24.js → build-RZS65IIX.js} +1 -1
- package/chunks/{channel-management-service-PQ6SU56M.js → channel-management-service-SKAN6NOB.js} +1 -1
- package/chunks/{channel-settings-store-IKK34GMH.js → channel-settings-store-UIGYER6R.js} +27 -27
- package/chunks/{channel-worker-group-WBRE33ZV.js → channel-worker-group-YPTB5ASD.js} +3 -3
- package/chunks/{channel-worker-manager-V4LYVTPH.js → channel-worker-manager-4EHJSPRH.js} +3 -3
- package/chunks/{channel-worker-supervisor-YDAGW2RP.js → channel-worker-supervisor-DZKHYFHV.js} +2 -2
- package/chunks/{chunk-QG2IEE2E.js → chunk-2J53A6MV.js} +6 -6
- package/chunks/{chunk-2IIJTXYF.js → chunk-2SB4SLKC.js} +3 -1
- package/chunks/{chunk-TNS2M7VL.js → chunk-32VOOMEF.js} +6 -6
- package/chunks/{chunk-MCHGE3EC.js → chunk-3TT6MZHJ.js} +52 -830
- package/chunks/{chunk-BTYS2JAY.js → chunk-3XZYK76R.js} +1 -1
- package/chunks/{chunk-RUVZZKDH.js → chunk-3ZYX7AUR.js} +1 -1
- package/chunks/{chunk-YIKMBYMT.js → chunk-4ETA3KRC.js} +1 -1
- package/chunks/{chunk-NFSSQDB5.js → chunk-4GLFFNP3.js} +4 -4
- package/chunks/{chunk-JOXXPM3X.js → chunk-4M2F7OG7.js} +4 -4
- package/chunks/{chunk-4EX3DBFH.js → chunk-575MI5K3.js} +4 -4
- package/chunks/{chunk-DEKY5Y7V.js → chunk-5I5NMQCU.js} +1 -1
- package/chunks/{chunk-XBLYC4MI.js → chunk-5TXOGH4I.js} +1 -1
- package/chunks/{chunk-F4T5J34H.js → chunk-5UPJ774B.js} +1 -1
- package/chunks/{chunk-XUMBOJC2.js → chunk-6AECVSVX.js} +3 -3
- package/chunks/{chunk-2XZWO53E.js → chunk-6XZERB6P.js} +3 -3
- package/chunks/{chunk-J4EVBAB3.js → chunk-6ZIIHBNV.js} +4 -4
- package/chunks/{chunk-45HPDU3F.js → chunk-7D4KEFOT.js} +2 -2
- package/chunks/{chunk-W2PNY24B.js → chunk-7LZ7DK4D.js} +1 -1
- package/chunks/{chunk-OGQERNHD.js → chunk-AJX4ITUG.js} +2 -2
- package/chunks/chunk-CG3OQDNY.js +649 -0
- package/chunks/{chunk-3LHYTQ2R.js → chunk-CZXQ4UZA.js} +1 -1
- package/chunks/{chunk-MLZCPGDX.js → chunk-DAX3G67A.js} +1 -1
- package/chunks/{chunk-JPA7IDTE.js → chunk-DEG7R6Z6.js} +2 -2
- package/chunks/{chunk-X5GLCWPX.js → chunk-DYVCDQW2.js} +1 -1
- package/chunks/{chunk-TYAMGABM.js → chunk-E3GLDLYB.js} +6 -0
- package/chunks/{chunk-HUE2M6VI.js → chunk-E5BWLU5J.js} +1 -1
- package/chunks/{chunk-7QE3QFU3.js → chunk-EXG2R5UR.js} +9 -9
- package/chunks/{chunk-MZQ4I4AP.js → chunk-EYY4IBPV.js} +2 -2
- package/chunks/{chunk-PBYVS6QT.js → chunk-FDWH6CBK.js} +4 -4
- package/chunks/{chunk-TNQLAI6I.js → chunk-FRH4SSGX.js} +3 -1
- package/chunks/{chunk-KFCTC5IJ.js → chunk-GYBDYWMV.js} +1 -1
- package/chunks/{chunk-U2JLICUY.js → chunk-HB6QW4LM.js} +7 -7
- package/chunks/{chunk-ESVSQKPY.js → chunk-HBZUU4AE.js} +6 -8
- package/chunks/{chunk-XT6TGJFD.js → chunk-I4XSOFH2.js} +1 -1
- package/chunks/{chunk-G64M7R2Y.js → chunk-ILVATFYJ.js} +6 -6
- package/chunks/{chunk-RUKNJEJO.js → chunk-J7DNMZFO.js} +1 -1
- package/chunks/{chunk-AKLY5M2C.js → chunk-JEMR2FTD.js} +3 -3
- package/chunks/{chunk-UEUE6LJX.js → chunk-JL3LC3CQ.js} +1 -1
- package/chunks/{chunk-JKEO6OQY.js → chunk-JXK3WAP7.js} +5 -5
- package/chunks/{chunk-2R2HYSUQ.js → chunk-KIFRFCCB.js} +6 -4
- package/chunks/{chunk-JHMFKJEP.js → chunk-KNQZXSLW.js} +8 -2
- package/chunks/{chunk-BR6TUEKJ.js → chunk-KNXA5XXK.js} +28 -9
- package/chunks/chunk-L34XSHIZ.js +28 -0
- package/chunks/{chunk-T4576UW4.js → chunk-L7T742G2.js} +1 -1
- package/chunks/{chunk-22C7BQ6D.js → chunk-LHOG4E6Y.js} +3 -3
- package/chunks/{chunk-N3ZWGKXN.js → chunk-LHY6HBRA.js} +4 -4
- package/chunks/{chunk-EOBM4T2Z.js → chunk-M2PY7CNK.js} +1 -1
- package/chunks/{chunk-AZQ3DT76.js → chunk-M4NWDIFU.js} +1 -1
- package/chunks/{chunk-DSKLWQHC.js → chunk-M4OYAR6J.js} +2 -2
- package/chunks/{chunk-UIZGNLBP.js → chunk-M6HXP2SG.js} +152 -149
- package/chunks/{chunk-4PFKN7CQ.js → chunk-M6SXIXBV.js} +7 -7
- package/chunks/{chunk-BNRNVMOT.js → chunk-MDFUBQAQ.js} +20 -18
- package/chunks/chunk-N2TNM3QB.js +9 -0
- package/chunks/{chunk-QGZN4RYB.js → chunk-N3FJOQX7.js} +3 -3
- package/chunks/{chunk-LA3FF7RO.js → chunk-N5ULBHP3.js} +1 -1
- package/chunks/{chunk-EN2J77G7.js → chunk-NELCY6JT.js} +2 -0
- package/chunks/{chunk-23GFHEM3.js → chunk-NPE3STIW.js} +6 -6
- package/chunks/{chunk-BJKREW56.js → chunk-O5AZPHYZ.js} +1 -1
- package/chunks/{chunk-2AAFGCWP.js → chunk-O5G7IQGM.js} +4 -4
- package/chunks/{chunk-KCDQGIHS.js → chunk-P2UCMHDT.js} +1 -1
- package/chunks/{chunk-YVVIFFU4.js → chunk-P64FPV3G.js} +2 -2
- package/chunks/{chunk-JLYYGKRN.js → chunk-QZ5G26ZE.js} +19 -19
- package/chunks/{chunk-P7KCJGBR.js → chunk-RQVVXDHS.js} +3 -3
- package/chunks/{chunk-UM57UTTV.js → chunk-RRQJPCRQ.js} +1 -1
- package/chunks/{chunk-DM4C3OX5.js → chunk-SSAOTDK7.js} +1 -1
- package/chunks/{chunk-NM3E6GGL.js → chunk-TEKFBSMY.js} +2 -2
- package/chunks/{chunk-U7QUDFPD.js → chunk-TRYJ3BVE.js} +5 -5
- package/chunks/{chunk-OC5SKSNX.js → chunk-TYCXSMZU.js} +2 -2
- package/chunks/{chunk-TKAEODJR.js → chunk-TYGKUOEG.js} +9 -0
- package/chunks/{chunk-HMCSRTDY.js → chunk-U6PTKAOW.js} +1 -1
- package/chunks/{chunk-AAOONL5N.js → chunk-UNCIELQJ.js} +1 -1
- package/chunks/chunk-UOMZKPI5.js +830 -0
- package/chunks/{chunk-TTB6GBJ6.js → chunk-UZPWH6SP.js} +42 -42
- package/chunks/{chunk-SUTP6CZA.js → chunk-V4MJ56RS.js} +3 -3
- package/chunks/{chunk-P5Y23G2L.js → chunk-V7RNNPGC.js} +1 -18
- package/chunks/{chunk-HZV75ET2.js → chunk-VQZXRLEX.js} +1 -1
- package/chunks/{chunk-W2ITCESM.js → chunk-VWD7SNNN.js} +6 -127
- package/chunks/chunk-WFRHWDBT.js +622 -0
- package/chunks/chunk-WLML6VIA.js +18 -0
- package/chunks/{chunk-MDQSCFAZ.js → chunk-XWUQ4IH5.js} +6 -6
- package/chunks/{chunk-4C4QSXE3.js → chunk-Y66OOMKS.js} +73 -610
- package/chunks/{chunk-BIXG46YI.js → chunk-YI6UGZF5.js} +10 -10
- package/chunks/{chunk-VRWOMUZM.js → chunk-YTYPRVIZ.js} +1 -1
- package/chunks/{chunk-3SOTXJNO.js → chunk-YZJVVQD3.js} +4 -4
- package/chunks/chunk-ZBBVBZBR.js +137 -0
- package/chunks/{chunk-NQPYPDOY.js → chunk-ZQSNP4TG.js} +1 -1
- package/chunks/chunk-bdqvmfwv-OHYAFAAO.js +17446 -0
- package/chunks/{computer-use-7TIKEXBX.js → computer-use-S4JEU5P7.js} +23 -23
- package/chunks/{config-utils-6MVJ54TY.js → config-utils-TXVKR27S.js} +2 -2
- package/chunks/{contextCommand-5QKI7MRY.js → contextCommand-2H5OH2HW.js} +22 -22
- package/chunks/{core-runtime-USS7ZF3H.js → core-runtime-IAQ4DD4Y.js} +20 -20
- package/chunks/{create-sub-session-ZD2F3BH2.js → create-sub-session-EKHKXJAA.js} +20 -20
- package/chunks/{daemon-Y3NOHFKQ.js → daemon-PXIC4ZDK.js} +148 -0
- package/chunks/{daemon-status-provider-PMP4J7BC.js → daemon-status-provider-LPYR2GXY.js} +26 -26
- package/chunks/{daemon-trust-policy-2252VKXI.js → daemon-trust-policy-7JOBVFH3.js} +26 -26
- package/chunks/{daemon-trust-policy-monitor-OSGGKJXT.js → daemon-trust-policy-monitor-OU3NRHAR.js} +26 -26
- package/chunks/{deferred-core-runtime-3VD4V6YZ.js → deferred-core-runtime-SFT3KI2C.js} +22 -22
- package/chunks/{devtools-4QFYJT6U.js → devtools-X6ROTKHE.js} +1 -1
- package/chunks/dispatch-B53LNEO4.js +37 -0
- package/chunks/{dist-MAIUUIWN.js → dist-BW2LDPV3.js} +1 -1
- package/chunks/{dist-Q2WJ2IZU.js → dist-KTYDJNYM.js} +1 -1
- package/chunks/{earlyInputCapture-ER4HGLJN.js → earlyInputCapture-27RPWE2D.js} +20 -20
- package/chunks/{edit-B3MT7O53.js → edit-WXVZ7FHS.js} +28 -28
- package/chunks/{enter-worktree-WVIYVSDJ.js → enter-worktree-TYMVXFLA.js} +25 -25
- package/chunks/{enterPlanMode-DDCIM6HA.js → enterPlanMode-FT4MRU5N.js} +28 -28
- package/chunks/{environment-LITGMOUP.js → environment-Z6OMA34I.js} +22 -22
- package/chunks/{errors-E5CIOR2I.js → errors-YMXK2GG3.js} +22 -22
- package/chunks/{exit-worktree-NQ2A6URE.js → exit-worktree-ODZUQLGJ.js} +25 -25
- package/chunks/{exitPlanMode-YXSWN4D3.js → exitPlanMode-MBPAPBBV.js} +20 -20
- package/chunks/{fast-path-PH3DBS6X.js → fast-path-ZU5T6XSN.js} +2 -2
- package/chunks/{gemini-4YPO4ADY.js → gemini-OZK6AIMC.js} +74 -71
- package/chunks/{geminiContentGenerator-GMSVVXOU.js → geminiContentGenerator-MC6ZKWZG.js} +8 -8
- package/chunks/{glob-3Y3VHLM2.js → glob-KJ4A4ZOM.js} +27 -27
- package/chunks/{grep-VUHUDZYG.js → grep-QWBLG564.js} +27 -27
- package/chunks/{handleAutoUpdate-OBFFPWSJ.js → handleAutoUpdate-M3ACKDKF.js} +24 -24
- package/chunks/{i18n-4PJA5KKU.js → i18n-FPW7XZL5.js} +21 -21
- package/chunks/{image-gen-4IFV4HES.js → image-gen-OTFC2S7L.js} +7 -7
- package/chunks/{initializer-ZTY3VSWL.js → initializer-5HKUXXBT.js} +27 -27
- package/chunks/{installationInfo-6USRNCD2.js → installationInfo-4OA6UW7V.js} +21 -21
- package/chunks/{list-U2ZDKYWN.js → list-3TKZ264A.js} +29 -29
- package/chunks/{loadedSettingsAdapter-WW4HIVLO.js → loadedSettingsAdapter-IRUANLS2.js} +26 -26
- package/chunks/{loggingContentGenerator-XXG6YWUE.js → loggingContentGenerator-D4URLH2A.js} +25 -25
- package/chunks/{managed-npm-update-7GM2LPLL.js → managed-npm-update-2O7XSAWJ.js} +21 -21
- package/chunks/{mcp-7KZW2T5P.js → mcp-AFVHCHKT.js} +26 -26
- package/chunks/{monitor-RQROQHLD.js → monitor-PY4WDSX3.js} +25 -25
- package/chunks/{node-UUDY34IG.js → node-YSOU44FX.js} +3 -3
- package/chunks/{nonInteractiveCli-U7JNJGS6.js → nonInteractiveCli-ZHW6F76F.js} +61 -58
- package/chunks/{notebook-edit-XQA6YCH2.js → notebook-edit-GEPL33NO.js} +28 -28
- package/chunks/{openaiContentGenerator-BZW2IB42.js → openaiContentGenerator-ACYSXQ6R.js} +20 -20
- package/chunks/opentui-entry-SBAOWW7M.js +52325 -0
- package/chunks/{pidfile-NX5VZ3IK.js → pidfile-SUNYCAA4.js} +20 -20
- package/chunks/{processUtils-M635AD23.js → processUtils-F7LP7YUV.js} +2 -2
- package/chunks/{qwenContentGenerator-KHJ73E2C.js → qwenContentGenerator-BB6IPELF.js} +26 -26
- package/chunks/{qwenOAuth2-QMK25XO7.js → qwenOAuth2-OU3WGDOI.js} +4 -4
- package/chunks/{read-file-6LKIKKXD.js → read-file-GORBXJTS.js} +5 -5
- package/chunks/{resumeHistoryUtils-RR2KEVH5.js → resumeHistoryUtils-FOAJJJWK.js} +27 -27
- package/chunks/{ripGrep-CF2WRBYV.js → ripGrep-RNLIZGCY.js} +20 -20
- package/chunks/{run-qwen-serve-L5TF57J4.js → run-qwen-serve-GVMMX3IU.js} +47 -47
- package/chunks/{runtime-3RE3BPR4.js → runtime-RNBZ5FDD.js} +29 -29
- package/chunks/runtime-gate-T4ICWGQJ.js +89 -0
- package/chunks/{scheduler-LXQZAMYT.js → scheduler-NTRFSPIP.js} +22 -22
- package/chunks/{sdk-exporters-grpc-54L4LS5L.js → sdk-exporters-grpc-4QKV6MCX.js} +2 -2
- package/chunks/{sdk-exporters-http-7SYSCGEO.js → sdk-exporters-http-2VPMAPFI.js} +11 -11
- package/chunks/{sdk-impl-VZI6M6EH.js → sdk-impl-5W3JUCWF.js} +7 -7
- package/chunks/{serve-5D4S7GIA.js → serve-H3PGA26U.js} +26 -26
- package/chunks/{server-ILZB6TTC.js → server-SUXD2F3C.js} +619 -199
- package/chunks/{session-SXCZITZ4.js → session-MTFVUWWM.js} +64 -61
- package/chunks/{settings-4RQB3OVF.js → settings-GUJ3TN2J.js} +25 -25
- package/chunks/{shell-FCTR3OI2.js → shell-C2UP5FF2.js} +20 -20
- package/chunks/{skill-IAKHPD5H.js → skill-4XCNK55E.js} +14 -14
- package/chunks/{skill-settings-SOR23NOP.js → skill-settings-Y2BU27XM.js} +25 -25
- package/chunks/{spawnChannel-I6VAWYQJ.js → spawnChannel-UUUUK734.js} +23 -21
- package/chunks/{standalone-update-5NN3MTYH.js → standalone-update-MJ722XZ4.js} +22 -22
- package/chunks/{startInteractiveUI-OYGL3NZJ.js → startInteractiveUI-TCPIPNGN.js} +2440 -2950
- package/chunks/task-create-URFZ5EUX.js +2 -2
- package/chunks/{team-create-J4JP6AXN.js → team-create-WZWH2NJI.js} +25 -25
- package/chunks/{team-plan-approval-7BEAIR2H.js → team-plan-approval-SUZQJCWJ.js} +27 -27
- package/chunks/{terminal-image-renderer-SGGTG5LN.js → terminal-image-renderer-BCUN3Z3W.js} +20 -20
- package/chunks/{theme-manager-67TSB7LH.js → theme-manager-UGMFDREN.js} +21 -21
- package/chunks/{tool-search-XPOFDWOX.js → tool-search-B6F3MPUZ.js} +9 -9
- package/chunks/{total-session-admission-SZJFAM25.js → total-session-admission-MQLBJ5WL.js} +22 -22
- package/chunks/{trustedFolders-44NTYYV4.js → trustedFolders-2XST7U5C.js} +21 -21
- package/chunks/{update-relaunch-K33Q3WEH.js → update-relaunch-OVC7YNGD.js} +5 -5
- package/chunks/{updateCheck-VBRNPLS4.js → updateCheck-YAKM36WQ.js} +24 -24
- package/chunks/{useAutoAcceptIndicator-AUNRB5S7.js → useAutoAcceptIndicator-RF6FVX3S.js} +31 -31
- package/chunks/{validateNonInterActiveAuth-WTO36MTA.js → validateNonInterActiveAuth-IPPXFNQH.js} +57 -55
- package/chunks/{version-JZA6HYPI.js → version-4IDFEXOU.js} +1 -1
- package/chunks/{web-fetch-LLHPV2IR.js → web-fetch-NUOLHXPN.js} +14 -14
- package/chunks/{web-search-4HCHRZ3U.js → web-search-LVOOV4XZ.js} +11 -11
- package/chunks/{workflow-YI74QTWW.js → workflow-JSTYTG3K.js} +36 -36
- package/chunks/{workspace-providers-status-CI3AO2BH.js → workspace-providers-status-U4EYXA4K.js} +28 -28
- package/chunks/{workspace-registration-store-KPIKXDHA.js → workspace-registration-store-OG66U3CB.js} +1 -1
- package/chunks/{workspace-registry-XE22QDE6.js → workspace-registry-WSHWQRQQ.js} +22 -22
- package/chunks/{workspace-service-WI2FD72A.js → workspace-service-QZXQHX2F.js} +30 -30
- package/chunks/{workspace-skills-status-FFZU6FXL.js → workspace-skills-status-VRBHEX5O.js} +26 -26
- package/chunks/{workspace-trust-reconciler-GJLNXR2U.js → workspace-trust-reconciler-FCRIUIOF.js} +30 -30
- package/chunks/wrapper-46Z24CTM.js +35 -0
- package/chunks/{write-file-IEAC3XC3.js → write-file-PYL3JCCD.js} +20 -20
- package/chunks/{zoom-image-GTVVT25J.js → zoom-image-RS6MU26F.js} +5 -5
- package/cli.js +12 -12
- package/package.json +3 -3
- package/web-shell/assets/{arc-B13-S0Yo.js → arc-CgGUyHWd.js} +1 -1
- package/web-shell/assets/{architectureDiagram-3BPJPVTR-CHvWNlVW.js → architectureDiagram-3BPJPVTR-BR0Qv-1Y.js} +1 -1
- package/web-shell/assets/{blockDiagram-GPEHLZMM-CXebOlXF.js → blockDiagram-GPEHLZMM-DIoaceaI.js} +1 -1
- package/web-shell/assets/{c4Diagram-AAUBKEIU-BQpx4y3Q.js → c4Diagram-AAUBKEIU-Bc5k6BbI.js} +1 -1
- package/web-shell/assets/channel-D2b9IYpS.js +1 -0
- package/web-shell/assets/{chunk-2J33WTMH-Cak1exSv.js → chunk-2J33WTMH-DtPEz2WX.js} +1 -1
- package/web-shell/assets/{chunk-4BX2VUAB-BIc8BV5_.js → chunk-4BX2VUAB-Dydo6ydE.js} +1 -1
- package/web-shell/assets/{chunk-55IACEB6-DoeJ5BL1.js → chunk-55IACEB6-DD9_VWXm.js} +1 -1
- package/web-shell/assets/{chunk-727SXJPM-BDR_wYSu.js → chunk-727SXJPM-DVI2m59k.js} +1 -1
- package/web-shell/assets/{chunk-AQP2D5EJ-BhRRGRq1.js → chunk-AQP2D5EJ-luatmaTN.js} +1 -1
- package/web-shell/assets/{chunk-FMBD7UC4-BJGAwVXr.js → chunk-FMBD7UC4-Duy8NTIi.js} +1 -1
- package/web-shell/assets/{chunk-ND2GUHAM-vhE73bsD.js → chunk-ND2GUHAM-CrL1yhms.js} +1 -1
- package/web-shell/assets/{chunk-QZHKN3VN-BuTBZsdR.js → chunk-QZHKN3VN-C7BX6bu1.js} +1 -1
- package/web-shell/assets/classDiagram-4FO5ZUOK-DHatTCmD.js +1 -0
- package/web-shell/assets/classDiagram-v2-Q7XG4LA2-DHatTCmD.js +1 -0
- package/web-shell/assets/{cose-bilkent-S5V4N54A-CVHKipHP.js → cose-bilkent-S5V4N54A-BTzs7mIi.js} +1 -1
- package/web-shell/assets/{dagre-BM42HDAG-C1DPa8SV.js → dagre-BM42HDAG-3VTUmWts.js} +1 -1
- package/web-shell/assets/{diagram-2AECGRRQ-BYP_QxkT.js → diagram-2AECGRRQ-Ehdp75GN.js} +1 -1
- package/web-shell/assets/{diagram-5GNKFQAL-Cray7ruQ.js → diagram-5GNKFQAL-B3wu3teE.js} +1 -1
- package/web-shell/assets/{diagram-KO2AKTUF-Ds4vJANi.js → diagram-KO2AKTUF-DjgTSf2S.js} +1 -1
- package/web-shell/assets/{diagram-LMA3HP47-DxFrDykH.js → diagram-LMA3HP47-Br9mwjY3.js} +1 -1
- package/web-shell/assets/{diagram-OG6HWLK6-BdIO-pF_.js → diagram-OG6HWLK6-D4xz5M-z.js} +1 -1
- package/web-shell/assets/{erDiagram-TEJ5UH35-5JA8KDYV.js → erDiagram-TEJ5UH35-CXayWlG_.js} +1 -1
- package/web-shell/assets/{flowDiagram-I6XJVG4X-DL4drKro.js → flowDiagram-I6XJVG4X-CLonjQTi.js} +1 -1
- package/web-shell/assets/{ganttDiagram-6RSMTGT7-ijX2DD6_.js → ganttDiagram-6RSMTGT7-BTySFT-1.js} +1 -1
- package/web-shell/assets/{gitGraphDiagram-PVQCEYII-_lPsFLFF.js → gitGraphDiagram-PVQCEYII--2WcUjOe.js} +1 -1
- package/web-shell/assets/{index-dHAFxPHb.css → index-CIFO52Wx.css} +1 -1
- package/web-shell/assets/{index-C-YoqYbs.js → index-DPJHkFOG.js} +1 -1
- package/web-shell/assets/index-bhq3CUUF.js +1789 -0
- package/web-shell/assets/{infoDiagram-5YYISTIA-COFClLab.js → infoDiagram-5YYISTIA-9vpgAf1m.js} +1 -1
- package/web-shell/assets/{ishikawaDiagram-YF4QCWOH-Div9KOgO.js → ishikawaDiagram-YF4QCWOH-DcRpHnAW.js} +1 -1
- package/web-shell/assets/{journeyDiagram-JHISSGLW-VAw5u0wc.js → journeyDiagram-JHISSGLW-C2TKorRm.js} +1 -1
- package/web-shell/assets/{kanban-definition-UN3LZRKU-CncCn8Nl.js → kanban-definition-UN3LZRKU-DdsFwB8b.js} +1 -1
- package/web-shell/assets/{linear-D6ad7e_k.js → linear-7PjRvJrf.js} +1 -1
- package/web-shell/assets/{mermaid.core-BV1IECGb.js → mermaid.core-raDXa11C.js} +5 -5
- package/web-shell/assets/{mindmap-definition-RKZ34NQL-a3jeNgPr.js → mindmap-definition-RKZ34NQL-DLHc-PRN.js} +1 -1
- package/web-shell/assets/{pieDiagram-4H26LBE5-DsVRY5BW.js → pieDiagram-4H26LBE5-BftYpeTW.js} +1 -1
- package/web-shell/assets/{quadrantDiagram-W4KKPZXB-D6zgexJK.js → quadrantDiagram-W4KKPZXB-O-6ygOYn.js} +1 -1
- package/web-shell/assets/{requirementDiagram-4Y6WPE33-VEpSwJjn.js → requirementDiagram-4Y6WPE33-BmZWVufJ.js} +1 -1
- package/web-shell/assets/{sankeyDiagram-5OEKKPKP-CYEuOFne.js → sankeyDiagram-5OEKKPKP-2x5beiWt.js} +1 -1
- package/web-shell/assets/{sequenceDiagram-3UESZ5HK-CCg0lI-9.js → sequenceDiagram-3UESZ5HK-BH8uKokQ.js} +1 -1
- package/web-shell/assets/{stateDiagram-AJRCARHV-BHXPsL0B.js → stateDiagram-AJRCARHV-Dq1MFgX_.js} +1 -1
- package/web-shell/assets/stateDiagram-v2-BHNVJYJU-spuAYji6.js +1 -0
- package/web-shell/assets/{timeline-definition-PNZ67QCA-gqTf9a0k.js → timeline-definition-PNZ67QCA-Cl2WKbv9.js} +1 -1
- package/web-shell/assets/{vennDiagram-CIIHVFJN-C4DXXkBh.js → vennDiagram-CIIHVFJN-BqoRo_Q-.js} +1 -1
- package/web-shell/assets/{wardley-L42UT6IY-CMK46EiX.js → wardley-L42UT6IY-BTxp-Yot.js} +1 -1
- package/web-shell/assets/{wardleyDiagram-YWT4CUSO-DTk1Gzt9.js → wardleyDiagram-YWT4CUSO-DFXVCSH2.js} +1 -1
- package/web-shell/assets/{xychartDiagram-2RQKCTM6-BcJsM1dH.js → xychartDiagram-2RQKCTM6-qQhWx0aE.js} +1 -1
- package/web-shell/index.html +2 -2
- package/web-shell/assets/channel-BB_Hm8Rf.js +0 -1
- package/web-shell/assets/classDiagram-4FO5ZUOK-B_hFK54Y.js +0 -1
- package/web-shell/assets/classDiagram-v2-Q7XG4LA2-B_hFK54Y.js +0 -1
- package/web-shell/assets/index-BTwNYZkp.js +0 -1785
- package/web-shell/assets/stateDiagram-v2-BHNVJYJU-eTG8D0QT.js +0 -1
- package/chunks/{artifact-tool-M7UAJ5NT.js → artifact-tool-FRMBPDPB.js} +3 -3
- package/chunks/{chunk-NWNEANAT.js → chunk-44CTCCLY.js} +0 -0
- package/chunks/{chunk-25OFRBH2.js → chunk-5PWLQ7SK.js} +4 -4
- package/chunks/{chunk-KCCODSAA.js → chunk-TBVNYG5B.js} +3 -3
- package/chunks/{chunk-4MHDNGAV.js → chunk-ZGWY4YUB.js} +3 -3
- package/chunks/{ls-O4VBQRG7.js → ls-FSHISLLA.js} +3 -3
- package/chunks/{task-update-LCJM3EYG.js → task-update-DVV6CUGI.js} +2 -2
|
@@ -1,34 +1,37 @@
|
|
|
1
1
|
// Force strict mode and setup for ESM
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
4
|
+
BARE_URL_PATTERN,
|
|
5
|
+
MD_LINK_CAPTURE,
|
|
6
|
+
MD_LINK_PATTERN,
|
|
7
|
+
SESSION_PAGE_SIZE,
|
|
8
|
+
TOOL_DISPLAY_BY_NAME,
|
|
9
|
+
TOOL_SUCCESS_RATE_HIGH,
|
|
10
|
+
TOOL_SUCCESS_RATE_MEDIUM,
|
|
11
|
+
USER_AGREEMENT_RATE_HIGH,
|
|
12
|
+
USER_AGREEMENT_RATE_MEDIUM,
|
|
13
|
+
filterSessions,
|
|
14
|
+
flattenModelsBySource,
|
|
15
|
+
formatDuration as formatDuration2,
|
|
16
|
+
formatMessageCount,
|
|
17
|
+
getArenaStatusLabel,
|
|
18
|
+
getStatusColor,
|
|
19
|
+
isSafeOscScheme,
|
|
20
|
+
keyMatchers,
|
|
21
|
+
labelMayDeceive,
|
|
22
|
+
osc8Close,
|
|
23
|
+
osc8Open,
|
|
24
|
+
shouldWrapMarkdownLink,
|
|
25
|
+
trimTrailingUrlPunctuation,
|
|
26
|
+
truncateText
|
|
27
|
+
} from "./chunk-WFRHWDBT.js";
|
|
25
28
|
import {
|
|
26
29
|
formatSupportedModes,
|
|
27
30
|
getCommandDisplayName,
|
|
28
31
|
getCommandSourceBadge,
|
|
29
32
|
getCommandSourceGroup,
|
|
30
33
|
getCommandSubcommandNames
|
|
31
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-UNCIELQJ.js";
|
|
32
35
|
import {
|
|
33
36
|
INLINE_CODE_SPAN_PATTERN_SOURCE,
|
|
34
37
|
calculateAverageLatency,
|
|
@@ -43,21 +46,46 @@ import {
|
|
|
43
46
|
readInlineMathSpanAt,
|
|
44
47
|
unescapeMarkdownBeforeMath,
|
|
45
48
|
unescapeMarkdownDollars
|
|
46
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-M4OYAR6J.js";
|
|
47
50
|
import {
|
|
48
51
|
MINIMUM_MAX_HEIGHT,
|
|
49
52
|
MaxSizedBox
|
|
50
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-EYY4IBPV.js";
|
|
54
|
+
import {
|
|
55
|
+
CompactToolGroupDisplay,
|
|
56
|
+
ICON,
|
|
57
|
+
SCREEN_READER_MODEL_PREFIX,
|
|
58
|
+
SCREEN_READER_USER_PREFIX,
|
|
59
|
+
SHELL_COMMAND_NAME,
|
|
60
|
+
SHELL_NAME,
|
|
61
|
+
STATUS_INDICATOR_WIDTH,
|
|
62
|
+
ToolElapsedTime,
|
|
63
|
+
ToolStatusIndicator,
|
|
64
|
+
buildResumedHistoryItems,
|
|
65
|
+
build_default,
|
|
66
|
+
estimateCompactToolGroupHeight,
|
|
67
|
+
isCollapsibleTool,
|
|
68
|
+
wrapAnsi
|
|
69
|
+
} from "./chunk-KNXA5XXK.js";
|
|
51
70
|
import {
|
|
52
71
|
theme
|
|
53
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-DAX3G67A.js";
|
|
73
|
+
import {
|
|
74
|
+
disableMouseEvents,
|
|
75
|
+
enableMouseEvents,
|
|
76
|
+
useKeypress,
|
|
77
|
+
useKeypressContext
|
|
78
|
+
} from "./chunk-2J53A6MV.js";
|
|
54
79
|
import {
|
|
55
80
|
require_jsx_runtime
|
|
56
81
|
} from "./chunk-SV5PQVQE.js";
|
|
82
|
+
import {
|
|
83
|
+
isTerminalGoalStatusKind
|
|
84
|
+
} from "./chunk-EKTCKZV5.js";
|
|
57
85
|
import {
|
|
58
86
|
resolveColor,
|
|
59
87
|
themeManager
|
|
60
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-NELCY6JT.js";
|
|
61
89
|
import {
|
|
62
90
|
Box_default,
|
|
63
91
|
Static,
|
|
@@ -66,10 +94,13 @@ import {
|
|
|
66
94
|
use_is_screen_reader_enabled_default,
|
|
67
95
|
use_stdin_default,
|
|
68
96
|
use_stdout_default
|
|
69
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-2SB4SLKC.js";
|
|
70
98
|
import {
|
|
71
99
|
require_react
|
|
72
100
|
} from "./chunk-5QWWOFGG.js";
|
|
101
|
+
import {
|
|
102
|
+
getErrorMessage
|
|
103
|
+
} from "./chunk-TEKFBSMY.js";
|
|
73
104
|
import {
|
|
74
105
|
markKittyImageWritten,
|
|
75
106
|
prepareInlineTerminalImage,
|
|
@@ -82,13 +113,7 @@ import {
|
|
|
82
113
|
} from "./chunk-ZWPWQEF5.js";
|
|
83
114
|
import {
|
|
84
115
|
relaunchApp
|
|
85
|
-
} from "./chunk-
|
|
86
|
-
import {
|
|
87
|
-
isTerminalGoalStatusKind
|
|
88
|
-
} from "./chunk-EKTCKZV5.js";
|
|
89
|
-
import {
|
|
90
|
-
getErrorMessage
|
|
91
|
-
} from "./chunk-NM3E6GGL.js";
|
|
116
|
+
} from "./chunk-7LZ7DK4D.js";
|
|
92
117
|
import {
|
|
93
118
|
cpLen,
|
|
94
119
|
cpSlice,
|
|
@@ -116,18 +141,18 @@ import {
|
|
|
116
141
|
} from "./chunk-57OAHC2Y.js";
|
|
117
142
|
import {
|
|
118
143
|
createLoadedSettingsAdapter
|
|
119
|
-
} from "./chunk-
|
|
144
|
+
} from "./chunk-DYVCDQW2.js";
|
|
120
145
|
import {
|
|
121
146
|
getPersistScopeForModelSelection
|
|
122
|
-
} from "./chunk-
|
|
147
|
+
} from "./chunk-M6SXIXBV.js";
|
|
123
148
|
import {
|
|
124
149
|
getCurrentLanguage,
|
|
125
150
|
localizeToolDisplayName,
|
|
126
151
|
t
|
|
127
|
-
} from "./chunk-
|
|
152
|
+
} from "./chunk-GYBDYWMV.js";
|
|
128
153
|
import {
|
|
129
154
|
isWorkspaceTrusted
|
|
130
|
-
} from "./chunk-
|
|
155
|
+
} from "./chunk-4ETA3KRC.js";
|
|
131
156
|
import {
|
|
132
157
|
ALL_PROVIDERS,
|
|
133
158
|
IdeClient,
|
|
@@ -150,28 +175,25 @@ import {
|
|
|
150
175
|
resolveBaseUrl,
|
|
151
176
|
resolveMetadataKey,
|
|
152
177
|
resolveOwnsModel
|
|
153
|
-
} from "./chunk-
|
|
178
|
+
} from "./chunk-M6HXP2SG.js";
|
|
154
179
|
import {
|
|
155
180
|
stripAnsi
|
|
156
181
|
} from "./chunk-TWPJO254.js";
|
|
157
182
|
import {
|
|
158
|
-
sanitizeForOsc,
|
|
159
|
-
supportsHyperlinks,
|
|
160
|
-
wrapForMultiplexer
|
|
161
|
-
} from "./chunk-KCCODSAA.js";
|
|
162
|
-
import {
|
|
163
|
-
MAIN_SOURCE,
|
|
164
183
|
formatVisionBridgeNoticeDisplay,
|
|
165
184
|
getMCPServerStatus,
|
|
166
185
|
isVisionBridgeNoticeDisplay,
|
|
167
186
|
uiTelemetryService
|
|
168
|
-
} from "./chunk-
|
|
187
|
+
} from "./chunk-HB6QW4LM.js";
|
|
169
188
|
import {
|
|
170
|
-
ToolDisplayNames,
|
|
171
189
|
ToolNames,
|
|
172
190
|
ToolNamesMigration,
|
|
173
191
|
isTerminalImageDisplay
|
|
174
192
|
} from "./chunk-XTH2OMDS.js";
|
|
193
|
+
import {
|
|
194
|
+
sanitizeForOsc,
|
|
195
|
+
supportsHyperlinks
|
|
196
|
+
} from "./chunk-TBVNYG5B.js";
|
|
175
197
|
import {
|
|
176
198
|
createDebugLogger,
|
|
177
199
|
escapePath,
|
|
@@ -2235,78 +2257,15 @@ init_esbuild_shims();
|
|
|
2235
2257
|
init_esbuild_shims();
|
|
2236
2258
|
var import_react6 = __toESM(require_react(), 1);
|
|
2237
2259
|
|
|
2238
|
-
// packages/cli/src/ui/utils/sessionPickerUtils.ts
|
|
2239
|
-
init_esbuild_shims();
|
|
2240
|
-
var graphemeSegmenter = new Intl.Segmenter(void 0, {
|
|
2241
|
-
granularity: "grapheme"
|
|
2242
|
-
});
|
|
2243
|
-
var SESSION_PAGE_SIZE = 20;
|
|
2244
|
-
function truncateText(text, maxWidth) {
|
|
2245
|
-
const widthLimit = Math.max(0, Math.floor(maxWidth));
|
|
2246
|
-
if (widthLimit === 0) {
|
|
2247
|
-
return "";
|
|
2248
|
-
}
|
|
2249
|
-
const firstLine = text.split(/\r?\n/, 1)[0];
|
|
2250
|
-
if (getCachedStringWidth(firstLine) <= widthLimit) {
|
|
2251
|
-
return firstLine;
|
|
2252
|
-
}
|
|
2253
|
-
if (widthLimit <= 3) {
|
|
2254
|
-
return truncateToDisplayWidth(firstLine, widthLimit);
|
|
2255
|
-
}
|
|
2256
|
-
return `${truncateToDisplayWidth(firstLine, widthLimit - 3)}...`;
|
|
2257
|
-
}
|
|
2258
|
-
__name(truncateText, "truncateText");
|
|
2259
|
-
function truncateToDisplayWidth(text, maxWidth) {
|
|
2260
|
-
let width = 0;
|
|
2261
|
-
let result = "";
|
|
2262
|
-
for (const { segment } of graphemeSegmenter.segment(text)) {
|
|
2263
|
-
const segmentWidth = getCachedStringWidth(segment);
|
|
2264
|
-
if (width + segmentWidth > maxWidth) {
|
|
2265
|
-
break;
|
|
2266
|
-
}
|
|
2267
|
-
result += segment;
|
|
2268
|
-
width += segmentWidth;
|
|
2269
|
-
}
|
|
2270
|
-
return result;
|
|
2271
|
-
}
|
|
2272
|
-
__name(truncateToDisplayWidth, "truncateToDisplayWidth");
|
|
2273
|
-
function matchesQuery(session, normalizedQuery) {
|
|
2274
|
-
if (!normalizedQuery) return true;
|
|
2275
|
-
const haystacks = [
|
|
2276
|
-
session.customTitle,
|
|
2277
|
-
session.prompt,
|
|
2278
|
-
session.gitBranch
|
|
2279
|
-
];
|
|
2280
|
-
for (const h of haystacks) {
|
|
2281
|
-
if (h && h.toLowerCase().includes(normalizedQuery)) return true;
|
|
2282
|
-
}
|
|
2283
|
-
return false;
|
|
2284
|
-
}
|
|
2285
|
-
__name(matchesQuery, "matchesQuery");
|
|
2286
|
-
function filterSessions(sessions, filterByBranch, currentBranch, query) {
|
|
2287
|
-
const normalizedQuery = query?.toLowerCase().trim() ?? "";
|
|
2288
|
-
return sessions.filter((session) => {
|
|
2289
|
-
if (filterByBranch && currentBranch) {
|
|
2290
|
-
if (session.gitBranch !== currentBranch) return false;
|
|
2291
|
-
}
|
|
2292
|
-
return matchesQuery(session, normalizedQuery);
|
|
2293
|
-
});
|
|
2294
|
-
}
|
|
2295
|
-
__name(filterSessions, "filterSessions");
|
|
2296
|
-
function formatMessageCount(count) {
|
|
2297
|
-
return count === 1 ? "1 message" : `${count} messages`;
|
|
2298
|
-
}
|
|
2299
|
-
__name(formatMessageCount, "formatMessageCount");
|
|
2300
|
-
|
|
2301
2260
|
// packages/cli/src/ui/hooks/useSessionSearchInput.ts
|
|
2302
2261
|
init_esbuild_shims();
|
|
2303
2262
|
var import_react5 = __toESM(require_react(), 1);
|
|
2304
2263
|
var DELETION_KEY_NAMES = /* @__PURE__ */ new Set(["backspace", "delete"]);
|
|
2305
|
-
var
|
|
2264
|
+
var graphemeSegmenter = new Intl.Segmenter(void 0, {
|
|
2306
2265
|
granularity: "grapheme"
|
|
2307
2266
|
});
|
|
2308
2267
|
function splitGraphemes(value) {
|
|
2309
|
-
return Array.from(
|
|
2268
|
+
return Array.from(graphemeSegmenter.segment(value), ({ segment }) => segment);
|
|
2310
2269
|
}
|
|
2311
2270
|
__name(splitGraphemes, "splitGraphemes");
|
|
2312
2271
|
function removeLastGrapheme(value) {
|
|
@@ -3337,118 +3296,6 @@ function renderInlineLatex(input, depth = 0) {
|
|
|
3337
3296
|
}
|
|
3338
3297
|
__name(renderInlineLatex, "renderInlineLatex");
|
|
3339
3298
|
|
|
3340
|
-
// packages/cli/src/ui/utils/osc8.ts
|
|
3341
|
-
init_esbuild_shims();
|
|
3342
|
-
function osc8Open(url) {
|
|
3343
|
-
return wrapForMultiplexer(`\x1B]8;;${sanitizeForOsc(url)}\x07`);
|
|
3344
|
-
}
|
|
3345
|
-
__name(osc8Open, "osc8Open");
|
|
3346
|
-
function osc8Close() {
|
|
3347
|
-
return wrapForMultiplexer(`\x1B]8;;\x07`);
|
|
3348
|
-
}
|
|
3349
|
-
__name(osc8Close, "osc8Close");
|
|
3350
|
-
var SAFE_OSC8_SCHEMES = /* @__PURE__ */ new Set([
|
|
3351
|
-
"http:",
|
|
3352
|
-
"https:",
|
|
3353
|
-
"mailto:",
|
|
3354
|
-
"ftp:",
|
|
3355
|
-
"ftps:",
|
|
3356
|
-
"sftp:",
|
|
3357
|
-
"ssh:"
|
|
3358
|
-
]);
|
|
3359
|
-
function isSafeOscScheme(url) {
|
|
3360
|
-
const match = url.match(/^([a-z][a-z0-9+.-]*:)/i);
|
|
3361
|
-
if (!match) return false;
|
|
3362
|
-
return SAFE_OSC8_SCHEMES.has(match[1].toLowerCase());
|
|
3363
|
-
}
|
|
3364
|
-
__name(isSafeOscScheme, "isSafeOscScheme");
|
|
3365
|
-
var BARE_URL_BREAK_CHARACTERS = String.raw`\u3001-\u3004\u3008-\u3020\u302e-\u3030\u3036-\u3037\u303d-\u303f\uff01-\uff0f\uff1a-\uff20\uff3b-\uff40\uff5b-\uff65\ufe10-\ufe1f\ufe30-\ufe32\ufe35-\ufe6f`;
|
|
3366
|
-
var BARE_URL_BREAK_PATTERN = new RegExp(`[${BARE_URL_BREAK_CHARACTERS}]`);
|
|
3367
|
-
function trimTrailingUrlPunctuation(url, nextCharacter = "") {
|
|
3368
|
-
let openParen = 0;
|
|
3369
|
-
let openBracket = 0;
|
|
3370
|
-
let openBrace = 0;
|
|
3371
|
-
let closeParen = 0;
|
|
3372
|
-
let closeBracket = 0;
|
|
3373
|
-
let closeBrace = 0;
|
|
3374
|
-
for (let i = 0; i < url.length; i++) {
|
|
3375
|
-
const cc = url.charCodeAt(i);
|
|
3376
|
-
if (cc === 40) openParen++;
|
|
3377
|
-
else if (cc === 91) openBracket++;
|
|
3378
|
-
else if (cc === 123) openBrace++;
|
|
3379
|
-
else if (cc === 41) closeParen++;
|
|
3380
|
-
else if (cc === 93) closeBracket++;
|
|
3381
|
-
else if (cc === 125) closeBrace++;
|
|
3382
|
-
}
|
|
3383
|
-
let end = url.length;
|
|
3384
|
-
if (url.charCodeAt(end - 1) === 95 && BARE_URL_BREAK_PATTERN.test(nextCharacter)) {
|
|
3385
|
-
end--;
|
|
3386
|
-
}
|
|
3387
|
-
while (end > 0) {
|
|
3388
|
-
const c = url.charCodeAt(end - 1);
|
|
3389
|
-
if (c === 46 || c === 44 || c === 59 || c === 58 || c === 33 || c === 63 || c === 39 || c === 34 || c === 96 || c === 62) {
|
|
3390
|
-
end--;
|
|
3391
|
-
continue;
|
|
3392
|
-
}
|
|
3393
|
-
if (c === 41 && closeParen > openParen) {
|
|
3394
|
-
closeParen--;
|
|
3395
|
-
end--;
|
|
3396
|
-
continue;
|
|
3397
|
-
}
|
|
3398
|
-
if (c === 93 && closeBracket > openBracket) {
|
|
3399
|
-
closeBracket--;
|
|
3400
|
-
end--;
|
|
3401
|
-
continue;
|
|
3402
|
-
}
|
|
3403
|
-
if (c === 125 && closeBrace > openBrace) {
|
|
3404
|
-
closeBrace--;
|
|
3405
|
-
end--;
|
|
3406
|
-
continue;
|
|
3407
|
-
}
|
|
3408
|
-
break;
|
|
3409
|
-
}
|
|
3410
|
-
return url.slice(0, end);
|
|
3411
|
-
}
|
|
3412
|
-
__name(trimTrailingUrlPunctuation, "trimTrailingUrlPunctuation");
|
|
3413
|
-
var MD_LINK_PATTERN = String.raw`\[.*?\]\((?:[^()]|\([^()]*\))*\)`;
|
|
3414
|
-
var MD_LINK_CAPTURE = /^\[(.*?)\]\(((?:[^()]|\([^()]*\))*)\)$/;
|
|
3415
|
-
var BARE_URL_PATTERN = String.raw`https?:\/\/[^\s${BARE_URL_BREAK_CHARACTERS}]+`;
|
|
3416
|
-
function shouldWrapMarkdownLink(url, canHyperlink) {
|
|
3417
|
-
return canHyperlink && isSafeOscScheme(url) && !/\s/.test(url);
|
|
3418
|
-
}
|
|
3419
|
-
__name(shouldWrapMarkdownLink, "shouldWrapMarkdownLink");
|
|
3420
|
-
var HOST_LIKE_RE = /\b[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?)*\.[a-z]{2,}\b/gi;
|
|
3421
|
-
var IPV4_LIKE_RE = /\b(?:\d{1,3}\.){3}\d{1,3}\b/g;
|
|
3422
|
-
function targetHostname(url) {
|
|
3423
|
-
try {
|
|
3424
|
-
const u = new URL(url);
|
|
3425
|
-
if (u.protocol === "mailto:") {
|
|
3426
|
-
const at = u.pathname.lastIndexOf("@");
|
|
3427
|
-
return at >= 0 ? u.pathname.slice(at + 1).toLowerCase() || void 0 : void 0;
|
|
3428
|
-
}
|
|
3429
|
-
return u.hostname.toLowerCase() || void 0;
|
|
3430
|
-
} catch {
|
|
3431
|
-
return void 0;
|
|
3432
|
-
}
|
|
3433
|
-
}
|
|
3434
|
-
__name(targetHostname, "targetHostname");
|
|
3435
|
-
function labelMayDeceive(label, url) {
|
|
3436
|
-
if (label === url) return false;
|
|
3437
|
-
if (/:\/\//.test(label) || /^[a-z][a-z0-9+.-]*:/i.test(label.trim())) {
|
|
3438
|
-
return true;
|
|
3439
|
-
}
|
|
3440
|
-
const lower = label.toLowerCase();
|
|
3441
|
-
const labelHosts = [
|
|
3442
|
-
...lower.match(HOST_LIKE_RE) ?? [],
|
|
3443
|
-
...lower.match(IPV4_LIKE_RE) ?? []
|
|
3444
|
-
];
|
|
3445
|
-
if (labelHosts.length === 0) return false;
|
|
3446
|
-
const target = targetHostname(url);
|
|
3447
|
-
if (!target) return true;
|
|
3448
|
-
return labelHosts.some((h) => h !== target);
|
|
3449
|
-
}
|
|
3450
|
-
__name(labelMayDeceive, "labelMayDeceive");
|
|
3451
|
-
|
|
3452
3299
|
// packages/cli/src/ui/utils/TableRenderer.tsx
|
|
3453
3300
|
var import_jsx_runtime4 = __toESM(require_jsx_runtime(), 1);
|
|
3454
3301
|
var MIN_COLUMN_WIDTH = 3;
|
|
@@ -6339,66 +6186,6 @@ var RenderTableInternal = /* @__PURE__ */ __name(({
|
|
|
6339
6186
|
var RenderTable = import_react13.default.memo(RenderTableInternal);
|
|
6340
6187
|
var MarkdownDisplay = import_react13.default.memo(MarkdownDisplayInternal);
|
|
6341
6188
|
|
|
6342
|
-
// packages/cli/src/ui/utils/displayUtils.ts
|
|
6343
|
-
init_esbuild_shims();
|
|
6344
|
-
function getArenaStatusLabel(status) {
|
|
6345
|
-
switch (status) {
|
|
6346
|
-
case "idle" /* IDLE */:
|
|
6347
|
-
return { icon: "\u2713", text: "Idle", color: theme.status.success };
|
|
6348
|
-
case "completed" /* COMPLETED */:
|
|
6349
|
-
return { icon: "\u2713", text: "Done", color: theme.status.success };
|
|
6350
|
-
case "cancelled" /* CANCELLED */:
|
|
6351
|
-
return { icon: "\u2298", text: "Cancelled", color: theme.status.warning };
|
|
6352
|
-
case "failed" /* FAILED */:
|
|
6353
|
-
return { icon: "\u2717", text: "Failed", color: theme.status.error };
|
|
6354
|
-
case "running" /* RUNNING */:
|
|
6355
|
-
return {
|
|
6356
|
-
icon: ICON.CIRCLE_EMPTY,
|
|
6357
|
-
text: "Running",
|
|
6358
|
-
color: theme.text.secondary
|
|
6359
|
-
};
|
|
6360
|
-
case "initializing" /* INITIALIZING */:
|
|
6361
|
-
return {
|
|
6362
|
-
icon: ICON.CIRCLE_EMPTY,
|
|
6363
|
-
text: "Initializing",
|
|
6364
|
-
color: theme.text.secondary
|
|
6365
|
-
};
|
|
6366
|
-
default:
|
|
6367
|
-
return {
|
|
6368
|
-
icon: ICON.CIRCLE_EMPTY,
|
|
6369
|
-
text: status,
|
|
6370
|
-
color: theme.text.secondary
|
|
6371
|
-
};
|
|
6372
|
-
}
|
|
6373
|
-
}
|
|
6374
|
-
__name(getArenaStatusLabel, "getArenaStatusLabel");
|
|
6375
|
-
var TOOL_SUCCESS_RATE_HIGH = 95;
|
|
6376
|
-
var TOOL_SUCCESS_RATE_MEDIUM = 85;
|
|
6377
|
-
var USER_AGREEMENT_RATE_HIGH = 75;
|
|
6378
|
-
var USER_AGREEMENT_RATE_MEDIUM = 45;
|
|
6379
|
-
var getStatusColor = /* @__PURE__ */ __name((value, thresholds, options = {}) => {
|
|
6380
|
-
if (value >= thresholds.green) {
|
|
6381
|
-
return theme.status.success;
|
|
6382
|
-
}
|
|
6383
|
-
if (value >= thresholds.yellow) {
|
|
6384
|
-
return theme.status.warning;
|
|
6385
|
-
}
|
|
6386
|
-
if (thresholds.red != null && value >= thresholds.red) {
|
|
6387
|
-
return theme.status.error;
|
|
6388
|
-
}
|
|
6389
|
-
return options.defaultColor ?? theme.status.error;
|
|
6390
|
-
}, "getStatusColor");
|
|
6391
|
-
function formatDuration2(ms) {
|
|
6392
|
-
const totalSeconds = Math.round(ms / 1e3);
|
|
6393
|
-
if (totalSeconds < 60) {
|
|
6394
|
-
return `${totalSeconds}s`;
|
|
6395
|
-
}
|
|
6396
|
-
const minutes = Math.floor(totalSeconds / 60);
|
|
6397
|
-
const seconds = totalSeconds % 60;
|
|
6398
|
-
return seconds > 0 ? `${minutes}m ${seconds}s` : `${minutes}m`;
|
|
6399
|
-
}
|
|
6400
|
-
__name(formatDuration2, "formatDuration");
|
|
6401
|
-
|
|
6402
6189
|
// packages/cli/src/ui/components/TerminalImage.tsx
|
|
6403
6190
|
init_esbuild_shims();
|
|
6404
6191
|
var import_react14 = __toESM(require_react(), 1);
|
|
@@ -7198,254 +6985,6 @@ var import_react20 = __toESM(require_react(), 1);
|
|
|
7198
6985
|
// packages/cli/src/ui/hooks/useSelectionList.ts
|
|
7199
6986
|
init_esbuild_shims();
|
|
7200
6987
|
var import_react15 = __toESM(require_react(), 1);
|
|
7201
|
-
|
|
7202
|
-
// packages/cli/src/ui/keyMatchers.ts
|
|
7203
|
-
init_esbuild_shims();
|
|
7204
|
-
|
|
7205
|
-
// packages/cli/src/config/keyBindings.ts
|
|
7206
|
-
init_esbuild_shims();
|
|
7207
|
-
var Command = /* @__PURE__ */ ((Command2) => {
|
|
7208
|
-
Command2["RETURN"] = "return";
|
|
7209
|
-
Command2["ESCAPE"] = "escape";
|
|
7210
|
-
Command2["HOME"] = "home";
|
|
7211
|
-
Command2["END"] = "end";
|
|
7212
|
-
Command2["KILL_LINE_RIGHT"] = "killLineRight";
|
|
7213
|
-
Command2["KILL_LINE_LEFT"] = "killLineLeft";
|
|
7214
|
-
Command2["CLEAR_INPUT"] = "clearInput";
|
|
7215
|
-
Command2["DELETE_WORD_BACKWARD"] = "deleteWordBackward";
|
|
7216
|
-
Command2["CLEAR_SCREEN"] = "clearScreen";
|
|
7217
|
-
Command2["HISTORY_UP"] = "historyUp";
|
|
7218
|
-
Command2["HISTORY_DOWN"] = "historyDown";
|
|
7219
|
-
Command2["NAVIGATION_UP"] = "navigationUp";
|
|
7220
|
-
Command2["NAVIGATION_DOWN"] = "navigationDown";
|
|
7221
|
-
Command2["SELECTION_UP"] = "selectionUp";
|
|
7222
|
-
Command2["SELECTION_DOWN"] = "selectionDown";
|
|
7223
|
-
Command2["ACCEPT_SUGGESTION"] = "acceptSuggestion";
|
|
7224
|
-
Command2["COMPLETION_UP"] = "completionUp";
|
|
7225
|
-
Command2["COMPLETION_DOWN"] = "completionDown";
|
|
7226
|
-
Command2["COMPLETION_TAB_LEFT"] = "completionTabLeft";
|
|
7227
|
-
Command2["COMPLETION_TAB_RIGHT"] = "completionTabRight";
|
|
7228
|
-
Command2["SUBMIT"] = "submit";
|
|
7229
|
-
Command2["QUEUE_MESSAGE"] = "queueMessage";
|
|
7230
|
-
Command2["NEWLINE"] = "newline";
|
|
7231
|
-
Command2["VOICE_PUSH_TO_TALK"] = "voicePushToTalk";
|
|
7232
|
-
Command2["OPEN_EXTERNAL_EDITOR"] = "openExternalEditor";
|
|
7233
|
-
Command2["PASTE_CLIPBOARD_IMAGE"] = "pasteClipboardImage";
|
|
7234
|
-
Command2["TOGGLE_TOOL_DESCRIPTIONS"] = "toggleToolDescriptions";
|
|
7235
|
-
Command2["TOGGLE_IDE_CONTEXT_DETAIL"] = "toggleIDEContextDetail";
|
|
7236
|
-
Command2["QUIT"] = "quit";
|
|
7237
|
-
Command2["EXIT"] = "exit";
|
|
7238
|
-
Command2["SHOW_MORE_LINES"] = "showMoreLines";
|
|
7239
|
-
Command2["RETRY_LAST"] = "retryLast";
|
|
7240
|
-
Command2["TOGGLE_RENDER_MODE"] = "toggleRenderMode";
|
|
7241
|
-
Command2["PROMOTE_SHELL_TO_BACKGROUND"] = "promoteShellToBackground";
|
|
7242
|
-
Command2["REVERSE_SEARCH"] = "reverseSearch";
|
|
7243
|
-
Command2["SUBMIT_REVERSE_SEARCH"] = "submitReverseSearch";
|
|
7244
|
-
Command2["ACCEPT_SUGGESTION_REVERSE_SEARCH"] = "acceptSuggestionReverseSearch";
|
|
7245
|
-
Command2["TOGGLE_SHELL_INPUT_FOCUS"] = "toggleShellInputFocus";
|
|
7246
|
-
Command2["EXPAND_SUGGESTION"] = "expandSuggestion";
|
|
7247
|
-
Command2["COLLAPSE_SUGGESTION"] = "collapseSuggestion";
|
|
7248
|
-
Command2["TOGGLE_THINKING_EXPANDED"] = "toggleThinkingExpanded";
|
|
7249
|
-
Command2["SCROLL_UP"] = "scrollUp";
|
|
7250
|
-
Command2["SCROLL_DOWN"] = "scrollDown";
|
|
7251
|
-
Command2["PAGE_UP"] = "pageUp";
|
|
7252
|
-
Command2["PAGE_DOWN"] = "pageDown";
|
|
7253
|
-
Command2["SCROLL_HOME"] = "scrollHome";
|
|
7254
|
-
Command2["SCROLL_END"] = "scrollEnd";
|
|
7255
|
-
return Command2;
|
|
7256
|
-
})(Command || {});
|
|
7257
|
-
var defaultKeyBindings = {
|
|
7258
|
-
// Basic bindings
|
|
7259
|
-
["return" /* RETURN */]: [{ key: "return" }],
|
|
7260
|
-
["escape" /* ESCAPE */]: [{ key: "escape" }],
|
|
7261
|
-
// Cursor movement
|
|
7262
|
-
["home" /* HOME */]: [{ key: "a", ctrl: true }],
|
|
7263
|
-
["end" /* END */]: [{ key: "e", ctrl: true }],
|
|
7264
|
-
// Text deletion
|
|
7265
|
-
["killLineRight" /* KILL_LINE_RIGHT */]: [{ key: "k", ctrl: true }],
|
|
7266
|
-
["killLineLeft" /* KILL_LINE_LEFT */]: [{ key: "u", ctrl: true }],
|
|
7267
|
-
["clearInput" /* CLEAR_INPUT */]: [{ key: "c", ctrl: true, shift: false }],
|
|
7268
|
-
// Added command (meta/alt/option) for mac compatibility
|
|
7269
|
-
["deleteWordBackward" /* DELETE_WORD_BACKWARD */]: [
|
|
7270
|
-
{ key: "backspace", ctrl: true },
|
|
7271
|
-
{ key: "backspace", command: true },
|
|
7272
|
-
// MinTTY (Git Bash on Windows) emits the byte \x1f (ASCII Unit
|
|
7273
|
-
// Separator, rendered as "^_" by `cat -v`) for Ctrl+Backspace under
|
|
7274
|
-
// its standard Ctrl-modifies-meta-keys convention. The same byte is
|
|
7275
|
-
// the historical Ctrl-mapping of the Unit Separator on traditional
|
|
7276
|
-
// ANSI/VT terminals (Ctrl+_ and Ctrl+/ also emit it), but qwen-code
|
|
7277
|
-
// doesn't bind those keystrokes elsewhere so this entry is additive
|
|
7278
|
-
// and non-conflicting on every platform.
|
|
7279
|
-
{ sequence: "" }
|
|
7280
|
-
],
|
|
7281
|
-
// Screen control
|
|
7282
|
-
["clearScreen" /* CLEAR_SCREEN */]: [{ key: "l", ctrl: true }],
|
|
7283
|
-
// History navigation
|
|
7284
|
-
["historyUp" /* HISTORY_UP */]: [{ key: "p", ctrl: true }],
|
|
7285
|
-
["historyDown" /* HISTORY_DOWN */]: [{ key: "n", ctrl: true }],
|
|
7286
|
-
["navigationUp" /* NAVIGATION_UP */]: [{ key: "up", shift: false }],
|
|
7287
|
-
["navigationDown" /* NAVIGATION_DOWN */]: [{ key: "down", shift: false }],
|
|
7288
|
-
// Selection-list nav: arrows + k/j + Ctrl+P/Ctrl+N
|
|
7289
|
-
// ctrl: false on bare k/j skips Ctrl+K and Ctrl+J
|
|
7290
|
-
["selectionUp" /* SELECTION_UP */]: [
|
|
7291
|
-
{ key: "up", shift: false },
|
|
7292
|
-
{ key: "k", ctrl: false },
|
|
7293
|
-
{ key: "p", ctrl: true }
|
|
7294
|
-
],
|
|
7295
|
-
["selectionDown" /* SELECTION_DOWN */]: [
|
|
7296
|
-
{ key: "down", shift: false },
|
|
7297
|
-
{ key: "j", ctrl: false },
|
|
7298
|
-
{ key: "n", ctrl: true }
|
|
7299
|
-
],
|
|
7300
|
-
// Auto-completion
|
|
7301
|
-
["acceptSuggestion" /* ACCEPT_SUGGESTION */]: [
|
|
7302
|
-
{ key: "tab" },
|
|
7303
|
-
{ key: "return", ctrl: false, shift: false }
|
|
7304
|
-
],
|
|
7305
|
-
// Completion navigation: arrows + readline/Vim-style Ctrl+P/Ctrl+N
|
|
7306
|
-
["completionUp" /* COMPLETION_UP */]: [
|
|
7307
|
-
{ key: "up", shift: false },
|
|
7308
|
-
{ key: "p", ctrl: true }
|
|
7309
|
-
],
|
|
7310
|
-
["completionDown" /* COMPLETION_DOWN */]: [
|
|
7311
|
-
{ key: "down", shift: false },
|
|
7312
|
-
{ key: "n", ctrl: true }
|
|
7313
|
-
],
|
|
7314
|
-
// Completion category tab switching (for the tabbed @ completion UI).
|
|
7315
|
-
// Bound to the BARE arrow keys: Ctrl+←/→ was the original binding but many
|
|
7316
|
-
// terminals intercept it for word-jump, and on macOS the system claims it
|
|
7317
|
-
// for Mission Control, so the documented gesture was unreachable for most
|
|
7318
|
-
// users (#8069).
|
|
7319
|
-
//
|
|
7320
|
-
// Tradeoff, accepted deliberately: while the `@` category tabs are visible,
|
|
7321
|
-
// the bare arrows no longer move the caret in the input buffer — press Esc
|
|
7322
|
-
// to dismiss the menu first. InputPrompt only renders and handles the tabs
|
|
7323
|
-
// when they own the arrows, so search and attachment navigation keep their
|
|
7324
|
-
// normal behavior.
|
|
7325
|
-
//
|
|
7326
|
-
// Modifiers are pinned false so Alt/Option+arrow word movement and any
|
|
7327
|
-
// Ctrl+arrow terminal binding fall through untouched.
|
|
7328
|
-
["completionTabLeft" /* COMPLETION_TAB_LEFT */]: [
|
|
7329
|
-
{ key: "left", shift: false, ctrl: false, meta: false }
|
|
7330
|
-
],
|
|
7331
|
-
["completionTabRight" /* COMPLETION_TAB_RIGHT */]: [
|
|
7332
|
-
{ key: "right", shift: false, ctrl: false, meta: false }
|
|
7333
|
-
],
|
|
7334
|
-
// Text input
|
|
7335
|
-
// Must also exclude shift to allow shift+enter for newline
|
|
7336
|
-
["submit" /* SUBMIT */]: [
|
|
7337
|
-
{
|
|
7338
|
-
key: "return",
|
|
7339
|
-
ctrl: false,
|
|
7340
|
-
command: false,
|
|
7341
|
-
paste: false,
|
|
7342
|
-
shift: false
|
|
7343
|
-
}
|
|
7344
|
-
],
|
|
7345
|
-
["queueMessage" /* QUEUE_MESSAGE */]: [
|
|
7346
|
-
{ key: "q", ctrl: true, command: false, shift: false, paste: false }
|
|
7347
|
-
],
|
|
7348
|
-
// Split into multiple data-driven bindings
|
|
7349
|
-
// Now also includes shift+enter for multi-line input
|
|
7350
|
-
["newline" /* NEWLINE */]: [
|
|
7351
|
-
{ key: "return", ctrl: true },
|
|
7352
|
-
{ key: "return", command: true },
|
|
7353
|
-
{ key: "return", paste: true },
|
|
7354
|
-
{ key: "return", shift: true },
|
|
7355
|
-
{ key: "j", ctrl: true }
|
|
7356
|
-
],
|
|
7357
|
-
["voicePushToTalk" /* VOICE_PUSH_TO_TALK */]: [{ key: "space", ctrl: false, meta: false }],
|
|
7358
|
-
// External tools
|
|
7359
|
-
["openExternalEditor" /* OPEN_EXTERNAL_EDITOR */]: [
|
|
7360
|
-
{ key: "x", ctrl: true },
|
|
7361
|
-
{ sequence: "", ctrl: true }
|
|
7362
|
-
],
|
|
7363
|
-
["pasteClipboardImage" /* PASTE_CLIPBOARD_IMAGE */]: process.platform === "win32" ? [
|
|
7364
|
-
{ key: "v", command: true },
|
|
7365
|
-
{ key: "v", meta: true }
|
|
7366
|
-
] : [
|
|
7367
|
-
{ key: "v", ctrl: true },
|
|
7368
|
-
{ key: "v", command: true }
|
|
7369
|
-
],
|
|
7370
|
-
// App level bindings
|
|
7371
|
-
["toggleToolDescriptions" /* TOGGLE_TOOL_DESCRIPTIONS */]: [{ key: "t", ctrl: true }],
|
|
7372
|
-
["toggleIDEContextDetail" /* TOGGLE_IDE_CONTEXT_DETAIL */]: [{ key: "g", ctrl: true }],
|
|
7373
|
-
["quit" /* QUIT */]: [{ key: "c", ctrl: true, shift: false }],
|
|
7374
|
-
["exit" /* EXIT */]: [{ key: "d", ctrl: true }],
|
|
7375
|
-
["showMoreLines" /* SHOW_MORE_LINES */]: [{ key: "s", ctrl: true }],
|
|
7376
|
-
["retryLast" /* RETRY_LAST */]: [{ key: "y", ctrl: true }],
|
|
7377
|
-
["toggleRenderMode" /* TOGGLE_RENDER_MODE */]: [{ key: "m", meta: true }],
|
|
7378
|
-
["promoteShellToBackground" /* PROMOTE_SHELL_TO_BACKGROUND */]: [{ key: "b", ctrl: true }],
|
|
7379
|
-
// Shell commands
|
|
7380
|
-
["reverseSearch" /* REVERSE_SEARCH */]: [{ key: "r", ctrl: true }],
|
|
7381
|
-
// Note: original logic ONLY checked ctrl=false, ignored meta/shift/paste
|
|
7382
|
-
["submitReverseSearch" /* SUBMIT_REVERSE_SEARCH */]: [{ key: "return", ctrl: false }],
|
|
7383
|
-
["acceptSuggestionReverseSearch" /* ACCEPT_SUGGESTION_REVERSE_SEARCH */]: [{ key: "tab" }],
|
|
7384
|
-
["toggleShellInputFocus" /* TOGGLE_SHELL_INPUT_FOCUS */]: [{ key: "f", ctrl: true }],
|
|
7385
|
-
// Suggestion expansion
|
|
7386
|
-
["expandSuggestion" /* EXPAND_SUGGESTION */]: [{ key: "right" }],
|
|
7387
|
-
["collapseSuggestion" /* COLLAPSE_SUGGESTION */]: [{ key: "left" }],
|
|
7388
|
-
// Thinking expansion (Ctrl+O primary, Alt+T legacy)
|
|
7389
|
-
["toggleThinkingExpanded" /* TOGGLE_THINKING_EXPANDED */]: [
|
|
7390
|
-
{ key: "o", ctrl: true },
|
|
7391
|
-
{ key: "t", meta: true }
|
|
7392
|
-
],
|
|
7393
|
-
// Scroll commands
|
|
7394
|
-
["scrollUp" /* SCROLL_UP */]: [{ key: "up", shift: true }],
|
|
7395
|
-
["scrollDown" /* SCROLL_DOWN */]: [{ key: "down", shift: true }],
|
|
7396
|
-
["pageUp" /* PAGE_UP */]: [{ key: "pageup" }],
|
|
7397
|
-
["pageDown" /* PAGE_DOWN */]: [{ key: "pagedown" }],
|
|
7398
|
-
["scrollHome" /* SCROLL_HOME */]: [{ key: "home", ctrl: true }],
|
|
7399
|
-
["scrollEnd" /* SCROLL_END */]: [{ key: "end", ctrl: true }]
|
|
7400
|
-
};
|
|
7401
|
-
|
|
7402
|
-
// packages/cli/src/ui/keyMatchers.ts
|
|
7403
|
-
function matchKeyBinding(keyBinding, key) {
|
|
7404
|
-
let keyMatches = false;
|
|
7405
|
-
if (keyBinding.key !== void 0) {
|
|
7406
|
-
keyMatches = keyBinding.key === key.name;
|
|
7407
|
-
} else if (keyBinding.sequence !== void 0) {
|
|
7408
|
-
keyMatches = keyBinding.sequence === key.sequence;
|
|
7409
|
-
} else {
|
|
7410
|
-
return false;
|
|
7411
|
-
}
|
|
7412
|
-
if (!keyMatches) {
|
|
7413
|
-
return false;
|
|
7414
|
-
}
|
|
7415
|
-
if (keyBinding.ctrl !== void 0 && !!key.ctrl !== keyBinding.ctrl) {
|
|
7416
|
-
return false;
|
|
7417
|
-
}
|
|
7418
|
-
if (keyBinding.shift !== void 0 && !!key.shift !== keyBinding.shift) {
|
|
7419
|
-
return false;
|
|
7420
|
-
}
|
|
7421
|
-
if (keyBinding.command !== void 0 && !!key.meta !== keyBinding.command) {
|
|
7422
|
-
return false;
|
|
7423
|
-
}
|
|
7424
|
-
if (keyBinding.paste !== void 0 && !!key.paste !== keyBinding.paste) {
|
|
7425
|
-
return false;
|
|
7426
|
-
}
|
|
7427
|
-
if (keyBinding.meta !== void 0 && !!key.meta !== keyBinding.meta) {
|
|
7428
|
-
return false;
|
|
7429
|
-
}
|
|
7430
|
-
return true;
|
|
7431
|
-
}
|
|
7432
|
-
__name(matchKeyBinding, "matchKeyBinding");
|
|
7433
|
-
function matchCommand(command, key, config = defaultKeyBindings) {
|
|
7434
|
-
const bindings = config[command];
|
|
7435
|
-
return bindings.some((binding) => matchKeyBinding(binding, key));
|
|
7436
|
-
}
|
|
7437
|
-
__name(matchCommand, "matchCommand");
|
|
7438
|
-
function createKeyMatchers(config = defaultKeyBindings) {
|
|
7439
|
-
const matchers = {};
|
|
7440
|
-
for (const command of Object.values(Command)) {
|
|
7441
|
-
matchers[command] = (key) => matchCommand(command, key, config);
|
|
7442
|
-
}
|
|
7443
|
-
return matchers;
|
|
7444
|
-
}
|
|
7445
|
-
__name(createKeyMatchers, "createKeyMatchers");
|
|
7446
|
-
var keyMatchers = createKeyMatchers(defaultKeyBindings);
|
|
7447
|
-
|
|
7448
|
-
// packages/cli/src/ui/hooks/useSelectionList.ts
|
|
7449
6988
|
var debugLogger4 = createDebugLogger("SELECTION_LIST");
|
|
7450
6989
|
var NUMBER_INPUT_TIMEOUT_MS = 1e3;
|
|
7451
6990
|
var findNextValidIndex = /* @__PURE__ */ __name((currentIndex, direction, items) => {
|
|
@@ -12173,15 +11712,6 @@ var ShellInputPrompt = /* @__PURE__ */ __name(({
|
|
|
12173
11712
|
return null;
|
|
12174
11713
|
}, "ShellInputPrompt");
|
|
12175
11714
|
|
|
12176
|
-
// packages/cli/src/ui/utils/tool-display-map.ts
|
|
12177
|
-
init_esbuild_shims();
|
|
12178
|
-
var TOOL_DISPLAY_BY_NAME = Object.fromEntries(
|
|
12179
|
-
Object.keys(ToolNames).map((key) => [
|
|
12180
|
-
ToolNames[key],
|
|
12181
|
-
ToolDisplayNames[key]
|
|
12182
|
-
])
|
|
12183
|
-
);
|
|
12184
|
-
|
|
12185
11715
|
// packages/cli/src/ui/components/messages/ToolMessage.tsx
|
|
12186
11716
|
var import_jsx_runtime20 = __toESM(require_jsx_runtime(), 1);
|
|
12187
11717
|
var AGENT_TOOL_NAMES = /* @__PURE__ */ new Set([
|
|
@@ -13579,64 +13109,6 @@ function getRenderableGradientColors(...candidates) {
|
|
|
13579
13109
|
}
|
|
13580
13110
|
__name(getRenderableGradientColors, "getRenderableGradientColors");
|
|
13581
13111
|
|
|
13582
|
-
// packages/cli/src/ui/utils/modelsBySource.ts
|
|
13583
|
-
init_esbuild_shims();
|
|
13584
|
-
function flattenModelsBySource(models) {
|
|
13585
|
-
const sessionHasNonMainSource = Object.values(models).some(
|
|
13586
|
-
(modelMetrics) => Object.keys(modelMetrics.bySource).some((source) => source !== MAIN_SOURCE)
|
|
13587
|
-
);
|
|
13588
|
-
const result = [];
|
|
13589
|
-
for (const [modelName, modelMetrics] of Object.entries(models)) {
|
|
13590
|
-
if (modelMetrics.api.totalRequests <= 0) continue;
|
|
13591
|
-
const displayName = normalizeModelName(modelName);
|
|
13592
|
-
const sourceNames = Object.keys(modelMetrics.bySource);
|
|
13593
|
-
if (sourceNames.length === 0) {
|
|
13594
|
-
result.push({
|
|
13595
|
-
key: modelName,
|
|
13596
|
-
label: displayName,
|
|
13597
|
-
metrics: modelMetrics
|
|
13598
|
-
});
|
|
13599
|
-
continue;
|
|
13600
|
-
}
|
|
13601
|
-
if (!sessionHasNonMainSource) {
|
|
13602
|
-
result.push({
|
|
13603
|
-
key: modelName,
|
|
13604
|
-
label: displayName,
|
|
13605
|
-
metrics: modelMetrics.bySource[MAIN_SOURCE] ?? modelMetrics
|
|
13606
|
-
});
|
|
13607
|
-
continue;
|
|
13608
|
-
}
|
|
13609
|
-
const sortedSources = sortSources(sourceNames);
|
|
13610
|
-
for (const source of sortedSources) {
|
|
13611
|
-
result.push({
|
|
13612
|
-
key: `${modelName}::${source}`,
|
|
13613
|
-
label: `${displayName} (${source})`,
|
|
13614
|
-
metrics: modelMetrics.bySource[source]
|
|
13615
|
-
});
|
|
13616
|
-
}
|
|
13617
|
-
}
|
|
13618
|
-
return result;
|
|
13619
|
-
}
|
|
13620
|
-
__name(flattenModelsBySource, "flattenModelsBySource");
|
|
13621
|
-
function normalizeModelName(modelName) {
|
|
13622
|
-
return modelName.replace("-001", "");
|
|
13623
|
-
}
|
|
13624
|
-
__name(normalizeModelName, "normalizeModelName");
|
|
13625
|
-
function sortSources(sources) {
|
|
13626
|
-
const main = [];
|
|
13627
|
-
const rest = [];
|
|
13628
|
-
for (const source of sources) {
|
|
13629
|
-
if (source === MAIN_SOURCE) {
|
|
13630
|
-
main.push(source);
|
|
13631
|
-
} else {
|
|
13632
|
-
rest.push(source);
|
|
13633
|
-
}
|
|
13634
|
-
}
|
|
13635
|
-
rest.sort((a, b) => a.localeCompare(b));
|
|
13636
|
-
return [...main, ...rest];
|
|
13637
|
-
}
|
|
13638
|
-
__name(sortSources, "sortSources");
|
|
13639
|
-
|
|
13640
13112
|
// packages/cli/src/ui/components/StatsDisplay.tsx
|
|
13641
13113
|
var import_jsx_runtime27 = __toESM(require_jsx_runtime(), 1);
|
|
13642
13114
|
var StatRow = /* @__PURE__ */ __name(({ title, children }) => /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(Box_default, { children: [
|
|
@@ -17805,7 +17277,6 @@ export {
|
|
|
17805
17277
|
useConfig,
|
|
17806
17278
|
SettingsContext,
|
|
17807
17279
|
useSettings,
|
|
17808
|
-
truncateText,
|
|
17809
17280
|
removeLastGrapheme,
|
|
17810
17281
|
isDeletionKey,
|
|
17811
17282
|
isPrintableSearchChar,
|
|
@@ -17822,15 +17293,8 @@ export {
|
|
|
17822
17293
|
MarkdownDisplay,
|
|
17823
17294
|
consumeLastRenderError,
|
|
17824
17295
|
ErrorBoundary,
|
|
17825
|
-
getArenaStatusLabel,
|
|
17826
|
-
TOOL_SUCCESS_RATE_HIGH,
|
|
17827
|
-
TOOL_SUCCESS_RATE_MEDIUM,
|
|
17828
|
-
USER_AGREEMENT_RATE_HIGH,
|
|
17829
|
-
USER_AGREEMENT_RATE_MEDIUM,
|
|
17830
|
-
getStatusColor,
|
|
17831
17296
|
DiffRenderer,
|
|
17832
17297
|
Colors,
|
|
17833
|
-
keyMatchers,
|
|
17834
17298
|
useSelectionList,
|
|
17835
17299
|
VirtualViewportContext,
|
|
17836
17300
|
useVirtualViewport,
|
|
@@ -17850,7 +17314,6 @@ export {
|
|
|
17850
17314
|
renderSoftwareCursor,
|
|
17851
17315
|
TextInput,
|
|
17852
17316
|
ToolConfirmationMessage,
|
|
17853
|
-
TOOL_DISPLAY_BY_NAME,
|
|
17854
17317
|
dist_default,
|
|
17855
17318
|
AboutBox,
|
|
17856
17319
|
dist_default2,
|
|
@@ -17895,12 +17358,12 @@ export {
|
|
|
17895
17358
|
*/
|
|
17896
17359
|
/**
|
|
17897
17360
|
* @license
|
|
17898
|
-
* Copyright
|
|
17361
|
+
* Copyright 2026 Qwen Team
|
|
17899
17362
|
* SPDX-License-Identifier: Apache-2.0
|
|
17900
17363
|
*/
|
|
17901
17364
|
/**
|
|
17902
17365
|
* @license
|
|
17903
|
-
* Copyright
|
|
17366
|
+
* Copyright 2025 Qwen
|
|
17904
17367
|
* SPDX-License-Identifier: Apache-2.0
|
|
17905
17368
|
*/
|
|
17906
17369
|
/**
|