@qwen-code/qwen-code 0.19.12 → 0.20.0-nightly.20260721.cda0e0348
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/configuration/settings.md +1 -1
- package/bundled/qc-helper/docs/features/commands.md +54 -0
- package/bundled/qc-helper/docs/integration-github-action.md +1 -1
- package/bundled/qc-helper/docs/qwen-serve.md +44 -6
- package/bundled/review/DESIGN.md +2 -2
- package/bundled/review/SKILL.md +13 -9
- package/chunks/{MaxSizedBox-QOXLJGAF.js → MaxSizedBox-EE76OHAP.js} +30 -27
- package/chunks/{StandaloneSessionPicker-FLV6CGYJ.js → StandaloneSessionPicker-WZH4PC3K.js} +50 -45
- package/chunks/{acpAgent-OB2CTF3P.js → acpAgent-2ATF4LMP.js} +437 -156
- package/chunks/{agent-CKSI7BTR.js → agent-KTOOFWMV.js} +22 -22
- package/chunks/{agent-headless-U36LIYTU.js → agent-headless-WVJCQ27D.js} +22 -22
- package/chunks/{anthropicContentGenerator-ZZRGFEES.js → anthropicContentGenerator-W4JLNYWQ.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-T4TLAZSJ.js} +25 -25
- package/chunks/build-SSCNEHZZ.js +62 -0
- package/chunks/{ca-2SL2BXTK.js → ca-ISKASTR5.js} +606 -200
- package/chunks/{channel-worker-group-NEUVTPB2.js → channel-worker-group-QZV2SP5U.js} +4 -4
- package/chunks/{channel-worker-manager-7CQVOVWV.js → channel-worker-manager-3GMAU45H.js} +4 -4
- package/chunks/{channel-worker-supervisor-3BU2KNCZ.js → channel-worker-supervisor-QCXSXCRY.js} +3 -3
- package/chunks/{chunk-6ETOSWAO.js → chunk-246TW4IX.js} +3 -3
- package/chunks/{chunk-2CCDMJM7.js → chunk-25Y6JSH2.js} +3 -3
- package/chunks/{chunk-XSEWNUMZ.js → chunk-2CWOJ2FA.js} +8 -8
- package/chunks/{chunk-UZC5VPOJ.js → chunk-2GFRA3MN.js} +3 -3
- package/chunks/chunk-2GOPPEHK.js +442 -0
- package/chunks/{chunk-MRE77ST5.js → chunk-2ITGJJE2.js} +69 -2216
- package/chunks/{chunk-BABX5XRO.js → chunk-2LI23QA6.js} +1 -1
- package/chunks/{chunk-EFAXBOQO.js → chunk-32F7BZSK.js} +7 -7
- package/chunks/chunk-43T5WDQ7.js +127 -0
- package/chunks/{chunk-DJ4VHAFJ.js → chunk-4CWPMWCD.js} +7 -3
- package/chunks/{chunk-GMUPIMHF.js → chunk-4RA7PWIY.js} +3 -3
- package/chunks/{chunk-6IITZE7O.js → chunk-5JX5EWR5.js} +7 -7
- package/chunks/{chunk-OBSLEYCD.js → chunk-5PZ6R37W.js} +29 -2
- package/chunks/{chunk-HTHUX2T5.js → chunk-5QWWOFGG.js} +0 -1
- package/chunks/{chunk-3DJY4IFO.js → chunk-5SCI6E3E.js} +1 -1
- package/chunks/{chunk-GSPWDTYY.js → chunk-5WG2K5RH.js} +53 -16
- package/chunks/{chunk-NPMVLWYL.js → chunk-5YVZ2XLV.js} +6 -6
- package/chunks/{chunk-TKASNYDS.js → chunk-6DHWO5ZF.js} +3 -3
- package/chunks/{chunk-4CHDYDG3.js → chunk-6EFTQYW7.js} +1 -1
- package/chunks/{chunk-RKUMFUFM.js → chunk-6MC5ASQK.js} +4 -4
- package/chunks/{chunk-HZ4M2UQD.js → chunk-6RVJRVQR.js} +1 -1
- package/chunks/{chunk-W6CQPLWM.js → chunk-6ZBPS62S.js} +1 -1
- package/chunks/chunk-7KGXAXF7.js +114 -0
- package/chunks/{chunk-PK7COE5O.js → chunk-ABIL4ZQU.js} +1 -1
- package/chunks/{chunk-OEHCAWUA.js → chunk-ACW3VNUE.js} +2 -2
- package/chunks/{chunk-APOFULHK.js → chunk-AWVS63WA.js} +7 -6
- package/chunks/{chunk-KGWA7XYL.js → chunk-AY3CSB6F.js} +6 -226
- package/chunks/{chunk-XAAEDML2.js → chunk-AYCDXHZB.js} +1 -1
- package/chunks/{chunk-42VIHAYT.js → chunk-B452RETY.js} +1 -1
- package/chunks/{chunk-VAJS2E2D.js → chunk-BDBMYST4.js} +1 -1
- package/chunks/{chunk-5N7M4XYN.js → chunk-BUKOHGBE.js} +5 -5
- package/chunks/{chunk-F2RR4HO2.js → chunk-BVLROR2T.js} +1 -1
- package/chunks/{chunk-WIYV7CSF.js → chunk-BWK3FX3K.js} +3 -3
- package/chunks/{chunk-UE5TZ55T.js → chunk-C27BYUX6.js} +29 -2
- package/chunks/{chunk-KRMARA3A.js → chunk-CG2HPAVD.js} +29 -13
- package/chunks/{chunk-UOA2IHRI.js → chunk-CPCVCKKF.js} +1 -1
- package/chunks/{chunk-HD6EGS5K.js → chunk-CUJX3F4X.js} +31 -6
- package/chunks/{chunk-4RPARQ5D.js → chunk-D2VIDMVM.js} +2 -2
- package/chunks/{chunk-PUKUUASO.js → chunk-DMRO4GU2.js} +1 -1
- package/chunks/{chunk-64GC5EMF.js → chunk-DZZIOIVF.js} +1 -1
- package/chunks/{chunk-FUSMC3SZ.js → chunk-E5QFCC4X.js} +13 -8
- package/chunks/{chunk-LKR7QQ63.js → chunk-EAUYY7SS.js} +3 -3
- package/chunks/{chunk-NE6HHLL3.js → chunk-EDMGFJ3E.js} +2 -2
- package/chunks/{chunk-J2MKYJKZ.js → chunk-EIAK6Q2B.js} +2 -2
- package/chunks/{chunk-WEPXQKGP.js → chunk-EZVDJFZ7.js} +1 -1
- package/chunks/{chunk-NALRQ3SG.js → chunk-FCUUJKZF.js} +394 -128
- package/chunks/{chunk-4XCVGEEX.js → chunk-FSL5W5TI.js} +3 -3
- package/chunks/{chunk-CHPQFLW6.js → chunk-FYA3Y5JR.js} +5 -5
- package/chunks/{chunk-V4PCIS25.js → chunk-FZVSFBNW.js} +69 -7
- package/chunks/{chunk-4MPYGENG.js → chunk-G45NOBV7.js} +6 -6
- package/chunks/{chunk-OSSDHJDU.js → chunk-G45X5TRN.js} +1 -1
- package/chunks/{chunk-3B6PSWHE.js → chunk-GH7OEOYU.js} +4 -4
- package/chunks/{chunk-KANTXY7B.js → chunk-GKY2OJ7R.js} +2 -2
- package/chunks/chunk-GMGDLUC7.js +37 -0
- package/chunks/{chunk-2476XGOU.js → chunk-GPILFVPY.js} +1 -1
- package/chunks/{chunk-EISVEV45.js → chunk-H24SOJIQ.js} +2 -2
- package/chunks/{chunk-J6NT5YTN.js → chunk-H2XVO6NE.js} +1 -289
- package/chunks/{chunk-QIFTJDBY.js → chunk-IM2A6YO3.js} +1 -1
- package/chunks/{chunk-R3EDIMYZ.js → chunk-IYZENXFW.js} +1 -1
- package/chunks/{chunk-LPHGXXZX.js → chunk-JD3MKVKL.js} +1 -1
- package/chunks/{chunk-NUHSLBJZ.js → chunk-JNWZQ27S.js} +15 -9
- package/chunks/{chunk-ETN2G32U.js → chunk-JPRLCXAO.js} +4 -4
- package/chunks/{chunk-WHQNBBWW.js → chunk-JQMBPGOU.js} +2 -2
- package/chunks/{chunk-5QSVANRT.js → chunk-JR6UJ24K.js} +2 -2
- package/chunks/{chunk-VLHQMOZK.js → chunk-JRW46GQX.js} +3 -3
- package/chunks/{chunk-DUR7BZYK.js → chunk-KRI4VCHX.js} +53 -28
- package/chunks/{chunk-PR5XQ73G.js → chunk-KTNIZG2C.js} +2 -2
- package/chunks/{chunk-QSG4ZFG4.js → chunk-KTUQMDEP.js} +1 -1
- package/chunks/{chunk-HVGJWOR6.js → chunk-L4YSPHR4.js} +2 -2
- package/chunks/{chunk-BEZPRKD3.js → chunk-LC5CAVMS.js} +160 -2
- package/chunks/{chunk-67Q33DQY.js → chunk-LLDGOZMJ.js} +4 -4
- package/chunks/{chunk-UCTCDLDS.js → chunk-LWQ4IAOJ.js} +136 -4
- package/chunks/{chunk-GEHSF7MS.js → chunk-NEEB7UEN.js} +2545 -1974
- package/chunks/{chunk-GCY7QTCE.js → chunk-NO6XTCYT.js} +1822 -424
- 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-GW7BONBU.js → chunk-OV2KB55J.js} +5 -5
- package/chunks/{chunk-CPU6I5YV.js → chunk-P64HXIC5.js} +115 -32
- package/chunks/{chunk-SGPFJMRP.js → chunk-PBATSWUQ.js} +1 -1
- package/chunks/{chunk-GXFYV7MP.js → chunk-PFKNXN67.js} +1106 -592
- package/chunks/{chunk-KNGZ5EYL.js → chunk-PYNCSQSI.js} +198 -120
- package/chunks/{chunk-I7RRHHYG.js → chunk-QKTHJXCS.js} +1 -1
- package/chunks/chunk-QKYTTBYW.js +624 -0
- package/chunks/{chunk-76BFY7AF.js → chunk-QTERJVPZ.js} +1 -6
- package/chunks/{chunk-W4UN42YP.js → chunk-R3VZNHRX.js} +85 -21
- package/chunks/chunk-R5N7NF5D.js +1187 -0
- package/chunks/{chunk-ZSDFNE6Y.js → chunk-RF34V75B.js} +3 -3
- package/chunks/{chunk-HCCR43AY.js → chunk-RFIAR4YL.js} +1 -1
- package/chunks/chunk-RS7MT2QG.js +305 -0
- package/chunks/{chunk-BKNPMEN6.js → chunk-RVLZCXEE.js} +162 -17
- package/chunks/chunk-SV5PQVQE.js +71 -0
- package/chunks/{chunk-3ESL7JXA.js → chunk-U4VGYZN7.js} +3 -3
- package/chunks/{chunk-4CA4WUMS.js → chunk-UEY4AYUL.js} +2 -2
- package/chunks/{chunk-ZGT623SG.js → chunk-USTF7LPI.js} +12 -12
- package/chunks/chunk-V7RNNPGC.js +44 -0
- package/chunks/{chunk-VEFR4XJQ.js → chunk-W3BKN3LO.js} +1 -1
- package/chunks/{chunk-4SJJT466.js → chunk-WQQDJE2P.js} +94 -177
- package/chunks/{chunk-KMJOMWHE.js → chunk-WRRF6TEQ.js} +1 -1
- package/chunks/{chunk-GLH2NTPB.js → chunk-XCHUDLER.js} +1 -1
- package/chunks/{chunk-7SX6WZNO.js → chunk-XVVH63JG.js} +3 -3
- package/chunks/{chunk-N47VAEAJ.js → chunk-XZOBDSDG.js} +2379 -1291
- package/chunks/chunk-YGIUIIIF.js +125 -0
- package/chunks/{chunk-335ECZTA.js → chunk-ZEOZL37W.js} +1 -1
- package/chunks/{computer-use-4PUGCUQK.js → computer-use-M6MGRJF2.js} +22 -22
- package/chunks/{config-utils-6PJUXHLI.js → config-utils-MOGE4EVB.js} +3 -3
- package/chunks/{contextCommand-C57KTWFV.js → contextCommand-HTRJJYNE.js} +25 -26
- package/chunks/{create-sub-session-5Q42XR6I.js → create-sub-session-MB35IHCR.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-KLPTQIE4.js} +287 -143
- package/chunks/{daemon-status-provider-YPV3UXHT.js → daemon-status-provider-67EKK6S3.js} +29 -29
- package/chunks/{dist-NUXRQHC5.js → dist-OAV7LJGJ.js} +1 -1
- package/chunks/{dist-XLE6ODMB.js → dist-OMW6WDEO.js} +1 -1
- package/chunks/{dist-J2H4KTLB.js → dist-PJLG2XYX.js} +1 -1
- package/chunks/{dist-IEQSDXS7.js → dist-UIFWIFRO.js} +2 -2
- package/chunks/{dist-IGZMVS5R.js → dist-VGJTZL4E.js} +33 -22
- package/chunks/{dist-3DQNQJ6H.js → dist-XBJVSWS2.js} +1 -1
- package/chunks/{earlyInputCapture-5VDWSYAM.js → earlyInputCapture-7QJX25AC.js} +23 -23
- package/chunks/{edit-GORZTX2U.js → edit-BTPQWGAA.js} +23 -23
- package/chunks/{enter-worktree-LJB2AW4L.js → enter-worktree-N3SEYKOO.js} +22 -22
- package/chunks/{enterPlanMode-LIIPP37T.js → enterPlanMode-TN2JV5MY.js} +28 -23
- package/chunks/{environment-HQ2UHJ35.js → environment-HP6RK262.js} +24 -24
- package/chunks/{errors-6JD5VMVQ.js → errors-VHGRDDOQ.js} +24 -24
- package/chunks/{exit-worktree-IEP2WHOV.js → exit-worktree-FI3SQY3U.js} +22 -22
- package/chunks/{exitPlanMode-U5Z6XBLO.js → exitPlanMode-NZWRVIIY.js} +22 -22
- package/chunks/{fast-path-HFKNMP23.js → fast-path-EGP7AXNR.js} +3 -2
- package/chunks/{gemini-C2SCJH3N.js → gemini-AN5YMD5O.js} +70 -68
- package/chunks/{geminiContentGenerator-ADZTXEKV.js → geminiContentGenerator-ABTMU4FE.js} +4 -4
- package/chunks/{glob-GOAPGD6G.js → glob-5YABOPJB.js} +22 -22
- package/chunks/{grep-HZLSTX7D.js → grep-U67FKUJT.js} +22 -22
- package/chunks/{handleAutoUpdate-UF74WGFE.js → handleAutoUpdate-OOKBP5VD.js} +27 -28
- package/chunks/{i18n-FMXIYUOC.js → i18n-GMQV324P.js} +23 -23
- package/chunks/{initializer-ERDBM3DU.js → initializer-NWALZGQ5.js} +28 -28
- package/chunks/{installationInfo-LROMXYLX.js → installationInfo-Y3M433E7.js} +25 -23
- package/chunks/{keychain-token-storage-K23CFKGN.js → keychain-token-storage-DWRJMNH3.js} +2 -2
- package/chunks/{list-6JPJROU5.js → list-CQDDWHTS.js} +30 -30
- package/chunks/{loadedSettingsAdapter-QCWYUBBF.js → loadedSettingsAdapter-I5KG37EI.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-24HHCBSP.js} +27 -27
- package/chunks/{monitor-LMYKCF6R.js → monitor-Z7NZNNRC.js} +22 -22
- package/chunks/nonInteractiveCli-GVF2XDJT.js +126 -0
- package/chunks/{notebook-edit-IBEOVZ6A.js → notebook-edit-GFOYAQAZ.js} +23 -23
- package/chunks/{openaiContentGenerator-42PZKET5.js → openaiContentGenerator-XAAYV6WR.js} +11 -11
- package/chunks/{pidfile-VTBDIGOH.js → pidfile-ILI37KRQ.js} +23 -23
- package/chunks/{processUtils-L7ZKOGDG.js → processUtils-LIPJMLVZ.js} +2 -2
- package/chunks/{qwenContentGenerator-VR2CNFGI.js → qwenContentGenerator-DLJ3KKGZ.js} +24 -24
- package/chunks/{qwenOAuth2-6LS2T3Q6.js → qwenOAuth2-J47FU5PW.js} +11 -11
- package/chunks/react-SG7JAQSZ.js +8 -0
- package/chunks/{read-file-VSKOE22I.js → read-file-LCQ2KNNP.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-PSCSAKA6.js +78 -0
- package/chunks/{ripGrep-5V5FLW2A.js → ripGrep-Y2XW4EFC.js} +22 -22
- package/chunks/{run-qwen-serve-LSOPP4R2.js → run-qwen-serve-DQ5ZIR36.js} +1459 -148
- package/chunks/{runtime-LT7R4CS5.js → runtime-6MQFF2A6.js} +33 -31
- package/chunks/{scheduler-YOWQ7KZP.js → scheduler-K4S7NY3G.js} +22 -22
- package/chunks/{send-message-5GZ4FX2V.js → send-message-3RHE7HSM.js} +3 -3
- package/chunks/{serve-VWLBXKGK.js → serve-JFAAPC5J.js} +27 -27
- package/chunks/{server-3RW3FYOH.js → server-QB6CHRZN.js} +866 -271
- package/chunks/{session-ZONXFOBQ.js → session-FKPVXAAB.js} +79 -163
- package/chunks/{settings-JC3VC53L.js → settings-CADELKSU.js} +26 -26
- package/chunks/{shell-2NGEMAVM.js → shell-EON6WVVH.js} +22 -22
- package/chunks/{skill-3U2T6H3E.js → skill-FKSYXJ5U.js} +10 -10
- package/chunks/{spawnChannel-QEAUPARQ.js → spawnChannel-VM5IHLJO.js} +24 -24
- package/chunks/{src-75ZPXO7B.js → src-Q4XB6SVD.js} +66 -22
- package/chunks/{standalone-update-UUJWJWYY.js → standalone-update-KGZHPBMA.js} +24 -24
- package/chunks/{startInteractiveUI-V7XISPQ6.js → startInteractiveUI-EYDJIIIZ.js} +5484 -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-CYP3YKYT.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-5LXIFKNV.js} +22 -22
- package/chunks/{theme-manager-YIX2IC2D.js → theme-manager-QOUMDWMP.js} +23 -23
- package/chunks/{todoWrite-JHHIDOIV.js → todoWrite-ERCAMLFS.js} +4 -4
- package/chunks/{tool-search-5IE2VO7X.js → tool-search-Q27QHQU3.js} +9 -9
- package/chunks/{total-session-admission-K6APQYEF.js → total-session-admission-HWVCZ2WR.js} +25 -25
- package/chunks/{trustedFolders-GPSSPVBF.js → trustedFolders-C6664IQC.js} +23 -23
- package/chunks/{update-relaunch-4BVAPX6Y.js → update-relaunch-QC3E4FZW.js} +9 -9
- package/chunks/{updateCheck-AHTHWLAM.js → updateCheck-MVUKJMBX.js} +33 -26
- package/chunks/useAutoAcceptIndicator-J234IFIS.js +80 -0
- package/chunks/{validateNonInterActiveAuth-UKAPCWDM.js → validateNonInterActiveAuth-YPPEKX4N.js} +61 -63
- package/chunks/{version-EXGWKKQE.js → version-5IXFQ4PT.js} +1 -1
- package/chunks/{web-fetch-ZDNE6FF2.js → web-fetch-L62NQVKN.js} +10 -10
- package/chunks/{workflow-G7U6OQWS.js → workflow-6MHBBFQU.js} +23 -23
- package/chunks/{workspace-providers-status-W6CEA6YM.js → workspace-providers-status-ZTW2B5QU.js} +30 -30
- package/chunks/{workspace-registration-store-OGBMWCLC.js → workspace-registration-store-P6QHCSMU.js} +7 -1
- package/chunks/{workspace-registry-ZUWQM44P.js → workspace-registry-R54M5O3W.js} +25 -25
- package/chunks/{workspace-service-UXX5P7GU.js → workspace-service-WYLRGM4A.js} +32 -32
- package/chunks/{workspace-skills-status-635B5R7N.js → workspace-skills-status-NN5QFU3A.js} +28 -28
- package/chunks/{write-file-DR3HN7IH.js → write-file-EAT3CHUK.js} +23 -23
- package/cli.js +11 -11
- package/locales/ca.js +763 -201
- package/package.json +3 -3
- package/web-shell/assets/{arc-_dVIKMdB.js → arc-B0iTWRo2.js} +1 -1
- package/web-shell/assets/{architectureDiagram-3BPJPVTR-MuN3nKpL.js → architectureDiagram-3BPJPVTR-DSQP4-9D.js} +1 -1
- package/web-shell/assets/{blockDiagram-GPEHLZMM-BtmvJjzx.js → blockDiagram-GPEHLZMM-BNPVXVT3.js} +1 -1
- package/web-shell/assets/{c4Diagram-AAUBKEIU-Dvi58_BU.js → c4Diagram-AAUBKEIU-DEHfJFiD.js} +1 -1
- package/web-shell/assets/channel-tVz-qNSq.js +1 -0
- package/web-shell/assets/{chunk-2J33WTMH-YqxOVhS1.js → chunk-2J33WTMH-VZ0uL1p9.js} +1 -1
- package/web-shell/assets/{chunk-4BX2VUAB-DoBgbC9z.js → chunk-4BX2VUAB-D5TKmvwG.js} +1 -1
- package/web-shell/assets/{chunk-55IACEB6-3NEQrBAr.js → chunk-55IACEB6-BDW1Lcq-.js} +1 -1
- package/web-shell/assets/{chunk-727SXJPM-DrCZQxp0.js → chunk-727SXJPM-Cj4h85iM.js} +1 -1
- package/web-shell/assets/{chunk-AQP2D5EJ-m_g3zjgv.js → chunk-AQP2D5EJ-5LeqiOhZ.js} +1 -1
- package/web-shell/assets/{chunk-FMBD7UC4-D1_crABJ.js → chunk-FMBD7UC4-BaTgsco7.js} +1 -1
- package/web-shell/assets/{chunk-ND2GUHAM-BdhgVtBx.js → chunk-ND2GUHAM-t3uGlIUk.js} +1 -1
- package/web-shell/assets/{chunk-QZHKN3VN-BlmThhm-.js → chunk-QZHKN3VN-rOnNXL2Q.js} +1 -1
- package/web-shell/assets/classDiagram-4FO5ZUOK-CWuaBxYV.js +1 -0
- package/web-shell/assets/classDiagram-v2-Q7XG4LA2-CWuaBxYV.js +1 -0
- package/web-shell/assets/{cose-bilkent-S5V4N54A-Cbjm_00Z.js → cose-bilkent-S5V4N54A-CcqXykgA.js} +1 -1
- package/web-shell/assets/{dagre-BM42HDAG-C39QNVgC.js → dagre-BM42HDAG-Dkjrchoy.js} +1 -1
- package/web-shell/assets/{diagram-2AECGRRQ-DNXSAixC.js → diagram-2AECGRRQ-B6lcra9M.js} +1 -1
- package/web-shell/assets/{diagram-5GNKFQAL-BCbGUPEA.js → diagram-5GNKFQAL-bAIzq3PT.js} +1 -1
- package/web-shell/assets/{diagram-KO2AKTUF-1eujKSDC.js → diagram-KO2AKTUF-G9MAZDNW.js} +1 -1
- package/web-shell/assets/{diagram-LMA3HP47-DUMKXgql.js → diagram-LMA3HP47-DVLF1uWZ.js} +1 -1
- package/web-shell/assets/{diagram-OG6HWLK6-BFktU3_u.js → diagram-OG6HWLK6-Cf7y20Tc.js} +1 -1
- package/web-shell/assets/{erDiagram-TEJ5UH35-BvJC7DLk.js → erDiagram-TEJ5UH35-C7ETZB3o.js} +1 -1
- package/web-shell/assets/{flowDiagram-I6XJVG4X-Cgu3PlOt.js → flowDiagram-I6XJVG4X-Cl2xgL6J.js} +1 -1
- package/web-shell/assets/{ganttDiagram-6RSMTGT7-DLNXN5Xh.js → ganttDiagram-6RSMTGT7-BgjbMs3q.js} +1 -1
- package/web-shell/assets/{gitGraphDiagram-PVQCEYII-BQFRDv6R.js → gitGraphDiagram-PVQCEYII-JVX34Omm.js} +1 -1
- package/web-shell/assets/index-48bIcdqF.js +1197 -0
- package/web-shell/assets/{index-CdC3pjP3.js → index-BG7Zc4f_.js} +1 -1
- package/web-shell/assets/index-BI-JAO07.css +5 -0
- package/web-shell/assets/{infoDiagram-5YYISTIA-DT2mOSvp.js → infoDiagram-5YYISTIA-3NYyMeZU.js} +1 -1
- package/web-shell/assets/{ishikawaDiagram-YF4QCWOH-9fy_K4bd.js → ishikawaDiagram-YF4QCWOH-C03VCu-U.js} +1 -1
- package/web-shell/assets/{journeyDiagram-JHISSGLW-CoGSEuhE.js → journeyDiagram-JHISSGLW-C9PuBRZW.js} +1 -1
- package/web-shell/assets/{kanban-definition-UN3LZRKU-BP9hHYIj.js → kanban-definition-UN3LZRKU-C3LvioWR.js} +1 -1
- package/web-shell/assets/{linear-uIroDsmp.js → linear-Du6Yw8N_.js} +1 -1
- package/web-shell/assets/{mermaid.core-BUwoStsA.js → mermaid.core-BXY5D2-X.js} +5 -5
- package/web-shell/assets/{mindmap-definition-RKZ34NQL-DZB-FWim.js → mindmap-definition-RKZ34NQL-2UrHLaDp.js} +1 -1
- package/web-shell/assets/{pieDiagram-4H26LBE5-YPptloKl.js → pieDiagram-4H26LBE5-dC03ml45.js} +1 -1
- package/web-shell/assets/{quadrantDiagram-W4KKPZXB-dgk3DSzm.js → quadrantDiagram-W4KKPZXB-CD6jARrp.js} +1 -1
- package/web-shell/assets/{requirementDiagram-4Y6WPE33-BH2En2i9.js → requirementDiagram-4Y6WPE33-BrK8aXfv.js} +1 -1
- package/web-shell/assets/{sankeyDiagram-5OEKKPKP-BB98feeI.js → sankeyDiagram-5OEKKPKP-B5Vitki_.js} +1 -1
- package/web-shell/assets/{sequenceDiagram-3UESZ5HK-CunAIGh8.js → sequenceDiagram-3UESZ5HK-CBy2t6Bo.js} +1 -1
- package/web-shell/assets/{stateDiagram-AJRCARHV-DTJs_-I2.js → stateDiagram-AJRCARHV-Enrka6T2.js} +1 -1
- package/web-shell/assets/stateDiagram-v2-BHNVJYJU-DUtYfXpW.js +1 -0
- package/web-shell/assets/{timeline-definition-PNZ67QCA-Cd4AN7O0.js → timeline-definition-PNZ67QCA-CwFq78ss.js} +1 -1
- package/web-shell/assets/{vennDiagram-CIIHVFJN-xIG-rUU9.js → vennDiagram-CIIHVFJN-BkOidM0g.js} +1 -1
- package/web-shell/assets/{wardley-L42UT6IY-D1UyjIcG.js → wardley-L42UT6IY-D_j13hQW.js} +1 -1
- package/web-shell/assets/{wardleyDiagram-YWT4CUSO-BVM0Mb99.js → wardleyDiagram-YWT4CUSO-7EveB1w6.js} +1 -1
- package/web-shell/assets/{xychartDiagram-2RQKCTM6-BX31JDSz.js → xychartDiagram-2RQKCTM6-DRkBhMXr.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
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
// Force strict mode and setup for ESM
|
|
2
|
+
"use strict";
|
|
3
|
+
import {
|
|
4
|
+
getEffectiveSupportedModes
|
|
5
|
+
} from "./chunk-2GOPPEHK.js";
|
|
6
|
+
import {
|
|
7
|
+
init_esbuild_shims
|
|
8
|
+
} from "./chunk-5O2XNYP6.js";
|
|
9
|
+
import {
|
|
10
|
+
__name
|
|
11
|
+
} from "./chunk-J2S4EL5Y.js";
|
|
12
|
+
|
|
13
|
+
// packages/cli/src/services/commandMetadata.ts
|
|
14
|
+
init_esbuild_shims();
|
|
15
|
+
function getCommandSourceBadge(command) {
|
|
16
|
+
switch (command.source) {
|
|
17
|
+
case "bundled-skill":
|
|
18
|
+
return "[Skill]";
|
|
19
|
+
case "skill-dir-command":
|
|
20
|
+
if (command.sourceDetail === "user") {
|
|
21
|
+
return "[User]";
|
|
22
|
+
}
|
|
23
|
+
if (command.sourceDetail === "project") {
|
|
24
|
+
return "[Project]";
|
|
25
|
+
}
|
|
26
|
+
return "[Custom]";
|
|
27
|
+
case "plugin-command":
|
|
28
|
+
return command.sourceDetail === "extension" ? "[Extension]" : "[Plugin]";
|
|
29
|
+
case "mcp-prompt":
|
|
30
|
+
return "[MCP]";
|
|
31
|
+
case "builtin-command":
|
|
32
|
+
default:
|
|
33
|
+
return null;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
__name(getCommandSourceBadge, "getCommandSourceBadge");
|
|
37
|
+
function getCommandSourceGroup(command) {
|
|
38
|
+
switch (command.source) {
|
|
39
|
+
case "builtin-command":
|
|
40
|
+
return { key: "built-in", title: "Built-in Commands", order: 0 };
|
|
41
|
+
case "bundled-skill":
|
|
42
|
+
return { key: "bundled-skill", title: "Bundled Skills", order: 1 };
|
|
43
|
+
case "skill-dir-command":
|
|
44
|
+
return { key: "custom", title: "Custom Commands", order: 2 };
|
|
45
|
+
case "plugin-command":
|
|
46
|
+
return { key: "plugin", title: "Plugin Commands", order: 3 };
|
|
47
|
+
case "mcp-prompt":
|
|
48
|
+
return { key: "mcp", title: "MCP Commands", order: 4 };
|
|
49
|
+
default:
|
|
50
|
+
return { key: "other", title: "Other Commands", order: 5 };
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
__name(getCommandSourceGroup, "getCommandSourceGroup");
|
|
54
|
+
function formatSupportedModes(command) {
|
|
55
|
+
const modes = getEffectiveSupportedModes(command);
|
|
56
|
+
const hasInteractive = modes.includes("interactive");
|
|
57
|
+
const hasNonInteractive = modes.includes("non_interactive");
|
|
58
|
+
const hasAcp = modes.includes("acp");
|
|
59
|
+
if (hasInteractive && hasNonInteractive && hasAcp) {
|
|
60
|
+
return "[all]";
|
|
61
|
+
}
|
|
62
|
+
if (!hasInteractive && hasNonInteractive && hasAcp) {
|
|
63
|
+
return "[headless]";
|
|
64
|
+
}
|
|
65
|
+
if (hasInteractive && !hasNonInteractive && !hasAcp) {
|
|
66
|
+
return "[interactive]";
|
|
67
|
+
}
|
|
68
|
+
return modes.map((mode) => {
|
|
69
|
+
switch (mode) {
|
|
70
|
+
case "interactive":
|
|
71
|
+
return "[i]";
|
|
72
|
+
case "non_interactive":
|
|
73
|
+
return "[ni]";
|
|
74
|
+
case "acp":
|
|
75
|
+
return "[acp]";
|
|
76
|
+
default:
|
|
77
|
+
return `[${mode}]`;
|
|
78
|
+
}
|
|
79
|
+
}).join(" ");
|
|
80
|
+
}
|
|
81
|
+
__name(formatSupportedModes, "formatSupportedModes");
|
|
82
|
+
function getCommandDisplayName(command, options = {}) {
|
|
83
|
+
const prefix = options.prefix ?? "";
|
|
84
|
+
const baseLabel = `${prefix}${command.name}`;
|
|
85
|
+
if (options.matchedAlias) {
|
|
86
|
+
return `${baseLabel} (alias: ${options.matchedAlias})`;
|
|
87
|
+
}
|
|
88
|
+
if (options.includeAliases === false) {
|
|
89
|
+
return baseLabel;
|
|
90
|
+
}
|
|
91
|
+
const altNames = command.altNames?.filter(Boolean);
|
|
92
|
+
if (!altNames || altNames.length === 0) {
|
|
93
|
+
return baseLabel;
|
|
94
|
+
}
|
|
95
|
+
return `${baseLabel} (${altNames.join(", ")})`;
|
|
96
|
+
}
|
|
97
|
+
__name(getCommandDisplayName, "getCommandDisplayName");
|
|
98
|
+
function getCommandSubcommandNames(command) {
|
|
99
|
+
return command.subCommands?.filter((subCommand) => !subCommand.hidden).map((subCommand) => subCommand.name) ?? [];
|
|
100
|
+
}
|
|
101
|
+
__name(getCommandSubcommandNames, "getCommandSubcommandNames");
|
|
102
|
+
|
|
103
|
+
export {
|
|
104
|
+
getCommandSourceBadge,
|
|
105
|
+
getCommandSourceGroup,
|
|
106
|
+
formatSupportedModes,
|
|
107
|
+
getCommandDisplayName,
|
|
108
|
+
getCommandSubcommandNames
|
|
109
|
+
};
|
|
110
|
+
/**
|
|
111
|
+
* @license
|
|
112
|
+
* Copyright 2025 Qwen
|
|
113
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
114
|
+
*/
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
ChannelWorkerStartupError
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-H24SOJIQ.js";
|
|
6
6
|
import {
|
|
7
7
|
ChannelWebhookEnqueueError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-QKTHJXCS.js";
|
|
9
9
|
import {
|
|
10
10
|
init_esbuild_shims
|
|
11
11
|
} from "./chunk-5O2XNYP6.js";
|
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
getRateLimitErrorDetails,
|
|
9
9
|
logProtocolTagSanitized,
|
|
10
10
|
openaiRequestCaptureContext
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-P64HXIC5.js";
|
|
12
12
|
import {
|
|
13
13
|
RequestTokenizer
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-JQMBPGOU.js";
|
|
15
15
|
import {
|
|
16
16
|
DASHSCOPE_PROXY_BASE_URL,
|
|
17
17
|
DEFAULT_DASHSCOPE_BASE_URL,
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
import {
|
|
28
28
|
buildRuntimeFetchOptions,
|
|
29
29
|
redactProxyError
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-6EFTQYW7.js";
|
|
31
31
|
import {
|
|
32
32
|
defaultOutputCeiling,
|
|
33
33
|
getToolCallPreparations,
|
|
@@ -37,16 +37,17 @@ import {
|
|
|
37
37
|
runtimeDiagnostics,
|
|
38
38
|
safeJsonParse,
|
|
39
39
|
tokenLimit
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-FZVSFBNW.js";
|
|
41
41
|
import {
|
|
42
42
|
GenerateContentResponse
|
|
43
43
|
} from "./chunk-TYQMGACW.js";
|
|
44
44
|
import {
|
|
45
45
|
createDebugLogger,
|
|
46
|
+
getErrorMessage,
|
|
46
47
|
getErrorStatus,
|
|
47
48
|
getErrorType,
|
|
48
49
|
isAbortError
|
|
49
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-C27BYUX6.js";
|
|
50
51
|
import {
|
|
51
52
|
init_esbuild_shims
|
|
52
53
|
} from "./chunk-5O2XNYP6.js";
|
|
@@ -8912,7 +8913,7 @@ ${this.getTimeoutTroubleshootingTips()}`
|
|
|
8912
8913
|
if (isTimeoutError) {
|
|
8913
8914
|
return `Request timeout after ${durationSeconds}s. Try reducing input length or increasing timeout in config.`;
|
|
8914
8915
|
}
|
|
8915
|
-
return error instanceof Error ? error
|
|
8916
|
+
return error instanceof Error ? getErrorMessage(error) : String(error);
|
|
8916
8917
|
}
|
|
8917
8918
|
buildDiagnostics(error, context) {
|
|
8918
8919
|
const details = getRateLimitErrorDetails(error);
|
|
@@ -1,25 +1,12 @@
|
|
|
1
1
|
// Force strict mode and setup for ESM
|
|
2
2
|
"use strict";
|
|
3
|
-
import {
|
|
4
|
-
Colors,
|
|
5
|
-
RowMouseController
|
|
6
|
-
} from "./chunk-EDFD7VOX.js";
|
|
7
|
-
import {
|
|
8
|
-
Box_default,
|
|
9
|
-
Text,
|
|
10
|
-
require_jsx_runtime,
|
|
11
|
-
theme
|
|
12
|
-
} from "./chunk-GEHSF7MS.js";
|
|
13
|
-
import {
|
|
14
|
-
require_react
|
|
15
|
-
} from "./chunk-HTHUX2T5.js";
|
|
16
3
|
import {
|
|
17
4
|
t
|
|
18
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-6DHWO5ZF.js";
|
|
19
6
|
import {
|
|
20
7
|
readManyFiles,
|
|
21
8
|
stripTerminalControlSequences
|
|
22
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-NO6XTCYT.js";
|
|
23
10
|
import {
|
|
24
11
|
emptyMcpResourceText,
|
|
25
12
|
formatMcpResourceContents,
|
|
@@ -27,20 +14,19 @@ import {
|
|
|
27
14
|
} from "./chunk-HTO4JFDZ.js";
|
|
28
15
|
import {
|
|
29
16
|
shouldRunVisionBridge
|
|
30
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-P64HXIC5.js";
|
|
31
18
|
import {
|
|
32
19
|
Storage,
|
|
33
20
|
getErrorMessage,
|
|
34
21
|
isNodeError,
|
|
35
22
|
isSubpath,
|
|
36
23
|
unescapePath
|
|
37
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-C27BYUX6.js";
|
|
38
25
|
import {
|
|
39
26
|
init_esbuild_shims
|
|
40
27
|
} from "./chunk-5O2XNYP6.js";
|
|
41
28
|
import {
|
|
42
|
-
__name
|
|
43
|
-
__toESM
|
|
29
|
+
__name
|
|
44
30
|
} from "./chunk-J2S4EL5Y.js";
|
|
45
31
|
|
|
46
32
|
// packages/cli/src/ui/hooks/atCommandProcessor.ts
|
|
@@ -69,213 +55,9 @@ __name(buildMcpResourceRef, "buildMcpResourceRef");
|
|
|
69
55
|
// packages/cli/src/ui/hooks/extension-mention-ref.ts
|
|
70
56
|
init_esbuild_shims();
|
|
71
57
|
|
|
72
|
-
// packages/cli/src/ui/
|
|
58
|
+
// packages/cli/src/ui/utils/suggestions.ts
|
|
73
59
|
init_esbuild_shims();
|
|
74
|
-
var import_react2 = __toESM(require_react(), 1);
|
|
75
|
-
|
|
76
|
-
// packages/cli/src/ui/components/PrepareLabel.tsx
|
|
77
|
-
init_esbuild_shims();
|
|
78
|
-
var import_react = __toESM(require_react(), 1);
|
|
79
|
-
var import_jsx_runtime = __toESM(require_jsx_runtime(), 1);
|
|
80
|
-
var MAX_WIDTH = 150;
|
|
81
|
-
var _PrepareLabel = /* @__PURE__ */ __name(({
|
|
82
|
-
label,
|
|
83
|
-
matchedIndex,
|
|
84
|
-
userInput,
|
|
85
|
-
textColor,
|
|
86
|
-
isExpanded = false
|
|
87
|
-
}) => {
|
|
88
|
-
const hasMatch = matchedIndex !== void 0 && matchedIndex >= 0 && matchedIndex < label.length && userInput.length > 0;
|
|
89
|
-
if (!hasMatch) {
|
|
90
|
-
const display = isExpanded ? label : label.length > MAX_WIDTH ? label.slice(0, MAX_WIDTH) + "..." : label;
|
|
91
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Text, { wrap: "wrap", color: textColor, children: display });
|
|
92
|
-
}
|
|
93
|
-
const matchLength = userInput.length;
|
|
94
|
-
let before = "";
|
|
95
|
-
let match = "";
|
|
96
|
-
let after = "";
|
|
97
|
-
if (isExpanded || label.length <= MAX_WIDTH) {
|
|
98
|
-
before = label.slice(0, matchedIndex);
|
|
99
|
-
match = label.slice(matchedIndex, matchedIndex + matchLength);
|
|
100
|
-
after = label.slice(matchedIndex + matchLength);
|
|
101
|
-
} else if (matchLength >= MAX_WIDTH) {
|
|
102
|
-
match = label.slice(matchedIndex, matchedIndex + MAX_WIDTH - 1) + "...";
|
|
103
|
-
} else {
|
|
104
|
-
const contextSpace = MAX_WIDTH - matchLength;
|
|
105
|
-
const beforeSpace = Math.floor(contextSpace / 2);
|
|
106
|
-
const afterSpace = Math.ceil(contextSpace / 2);
|
|
107
|
-
let start = matchedIndex - beforeSpace;
|
|
108
|
-
let end = matchedIndex + matchLength + afterSpace;
|
|
109
|
-
if (start < 0) {
|
|
110
|
-
end += -start;
|
|
111
|
-
start = 0;
|
|
112
|
-
}
|
|
113
|
-
if (end > label.length) {
|
|
114
|
-
start -= end - label.length;
|
|
115
|
-
end = label.length;
|
|
116
|
-
}
|
|
117
|
-
start = Math.max(0, start);
|
|
118
|
-
const finalMatchIndex = matchedIndex - start;
|
|
119
|
-
const slicedLabel = label.slice(start, end);
|
|
120
|
-
before = slicedLabel.slice(0, finalMatchIndex);
|
|
121
|
-
match = slicedLabel.slice(finalMatchIndex, finalMatchIndex + matchLength);
|
|
122
|
-
after = slicedLabel.slice(finalMatchIndex + matchLength);
|
|
123
|
-
if (start > 0) {
|
|
124
|
-
before = before.length >= 3 ? "..." + before.slice(3) : "...";
|
|
125
|
-
}
|
|
126
|
-
if (end < label.length) {
|
|
127
|
-
after = after.length >= 3 ? after.slice(0, -3) + "..." : "...";
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Text, { color: textColor, wrap: "wrap", children: [
|
|
131
|
-
before,
|
|
132
|
-
match ? match.split(/(\s+)/).map((part, index) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
133
|
-
Text,
|
|
134
|
-
{
|
|
135
|
-
color: theme.background.primary,
|
|
136
|
-
backgroundColor: theme.text.primary,
|
|
137
|
-
children: part
|
|
138
|
-
},
|
|
139
|
-
`match-${index}`
|
|
140
|
-
)) : null,
|
|
141
|
-
after
|
|
142
|
-
] });
|
|
143
|
-
}, "_PrepareLabel");
|
|
144
|
-
var PrepareLabel = import_react.default.memo(_PrepareLabel);
|
|
145
|
-
|
|
146
|
-
// packages/cli/src/ui/components/SuggestionsDisplay.tsx
|
|
147
|
-
var import_jsx_runtime2 = __toESM(require_jsx_runtime(), 1);
|
|
148
60
|
var MAX_SUGGESTIONS_TO_SHOW = 8;
|
|
149
|
-
var MIN_DESCRIPTION_WIDTH = 12;
|
|
150
|
-
var ACTIVE_MARKER_WIDTH = 2;
|
|
151
|
-
function normalizeDescription(description) {
|
|
152
|
-
return description.replace(/\s+/g, " ").trim();
|
|
153
|
-
}
|
|
154
|
-
__name(normalizeDescription, "normalizeDescription");
|
|
155
|
-
function SuggestionsDisplay({
|
|
156
|
-
suggestions,
|
|
157
|
-
activeIndex,
|
|
158
|
-
isLoading,
|
|
159
|
-
width,
|
|
160
|
-
scrollOffset,
|
|
161
|
-
userInput,
|
|
162
|
-
mode,
|
|
163
|
-
expandedIndex,
|
|
164
|
-
onHoverIndex,
|
|
165
|
-
onSelectIndex,
|
|
166
|
-
mouseEnabled
|
|
167
|
-
}) {
|
|
168
|
-
const containerRef = (0, import_react2.useRef)(null);
|
|
169
|
-
const itemRefs = (0, import_react2.useRef)([]);
|
|
170
|
-
if (isLoading) {
|
|
171
|
-
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Box_default, { width, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Text, { color: "gray", children: t("Loading suggestions...") }) });
|
|
172
|
-
}
|
|
173
|
-
if (suggestions.length === 0) {
|
|
174
|
-
return null;
|
|
175
|
-
}
|
|
176
|
-
const startIndex = scrollOffset;
|
|
177
|
-
const endIndex = Math.min(
|
|
178
|
-
scrollOffset + MAX_SUGGESTIONS_TO_SHOW,
|
|
179
|
-
suggestions.length
|
|
180
|
-
);
|
|
181
|
-
const visibleSuggestions = suggestions.slice(startIndex, endIndex);
|
|
182
|
-
const getFullLabel = /* @__PURE__ */ __name((s) => [s.label, s.argumentHint, s.sourceBadge].filter(Boolean).join(" "), "getFullLabel");
|
|
183
|
-
const maxLabelLength = Math.max(
|
|
184
|
-
...suggestions.map((s) => getFullLabel(s).length)
|
|
185
|
-
);
|
|
186
|
-
const describedLabelLengths = suggestions.filter((s) => s.description).map((s) => getFullLabel(s).length);
|
|
187
|
-
const contentWidth = Math.max(width - ACTIVE_MARKER_WIDTH, 1);
|
|
188
|
-
const labelColumnWidth = mode === "slash" ? Math.min(maxLabelLength, Math.floor(contentWidth * 0.5)) : describedLabelLengths.length > 0 ? Math.min(
|
|
189
|
-
Math.max(...describedLabelLengths),
|
|
190
|
-
Math.max(contentWidth - MIN_DESCRIPTION_WIDTH - 2, 1)
|
|
191
|
-
) : 0;
|
|
192
|
-
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(Box_default, { flexDirection: "column", width, ref: containerRef, children: [
|
|
193
|
-
mouseEnabled && onHoverIndex && onSelectIndex && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
194
|
-
RowMouseController,
|
|
195
|
-
{
|
|
196
|
-
containerRef,
|
|
197
|
-
itemRefs,
|
|
198
|
-
scrollOffset: startIndex,
|
|
199
|
-
onHoverIndex,
|
|
200
|
-
onSelectIndex
|
|
201
|
-
}
|
|
202
|
-
),
|
|
203
|
-
scrollOffset > 0 && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Text, { color: theme.text.primary, children: "\u25B2" }),
|
|
204
|
-
visibleSuggestions.map((suggestion, index) => {
|
|
205
|
-
const originalIndex = startIndex + index;
|
|
206
|
-
const isActive = originalIndex === activeIndex;
|
|
207
|
-
const isExpanded = originalIndex === expandedIndex;
|
|
208
|
-
const textColor = isActive ? theme.text.accent : theme.text.secondary;
|
|
209
|
-
const displayLabel = suggestion.label ?? suggestion.value;
|
|
210
|
-
const isLong = displayLabel.length >= MAX_WIDTH;
|
|
211
|
-
const expansionIndicatorWidth = isActive && isLong ? 3 : 0;
|
|
212
|
-
const descriptionColumnWidth = Math.max(
|
|
213
|
-
contentWidth - labelColumnWidth - 2 - expansionIndicatorWidth,
|
|
214
|
-
1
|
|
215
|
-
);
|
|
216
|
-
const labelElement = /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
217
|
-
PrepareLabel,
|
|
218
|
-
{
|
|
219
|
-
label: displayLabel,
|
|
220
|
-
matchedIndex: suggestion.matchedIndex,
|
|
221
|
-
userInput,
|
|
222
|
-
textColor,
|
|
223
|
-
isExpanded
|
|
224
|
-
}
|
|
225
|
-
);
|
|
226
|
-
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
|
|
227
|
-
Box_default,
|
|
228
|
-
{
|
|
229
|
-
flexDirection: "row",
|
|
230
|
-
ref: (node) => {
|
|
231
|
-
itemRefs.current[index] = node;
|
|
232
|
-
},
|
|
233
|
-
children: [
|
|
234
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Box_default, { width: ACTIVE_MARKER_WIDTH, flexShrink: 0, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Text, { color: textColor, children: isActive ? "> " : " " }) }),
|
|
235
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
236
|
-
Box_default,
|
|
237
|
-
{
|
|
238
|
-
...mode === "slash" || suggestion.description ? { width: labelColumnWidth, flexShrink: 0 } : { flexShrink: 1 },
|
|
239
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(Box_default, { children: [
|
|
240
|
-
labelElement,
|
|
241
|
-
suggestion.argumentHint && /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(Text, { color: theme.text.secondary, children: [
|
|
242
|
-
" ",
|
|
243
|
-
suggestion.argumentHint
|
|
244
|
-
] }),
|
|
245
|
-
suggestion.sourceBadge && /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(Text, { color: textColor, children: [
|
|
246
|
-
" ",
|
|
247
|
-
suggestion.sourceBadge
|
|
248
|
-
] })
|
|
249
|
-
] })
|
|
250
|
-
}
|
|
251
|
-
),
|
|
252
|
-
suggestion.description && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
253
|
-
Box_default,
|
|
254
|
-
{
|
|
255
|
-
width: descriptionColumnWidth,
|
|
256
|
-
flexGrow: 1,
|
|
257
|
-
flexShrink: 1,
|
|
258
|
-
paddingLeft: 2,
|
|
259
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Text, { color: textColor, wrap: "truncate-end", children: normalizeDescription(suggestion.description) })
|
|
260
|
-
}
|
|
261
|
-
),
|
|
262
|
-
isActive && isLong && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Box_default, { children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Text, { color: Colors.Gray, children: isExpanded ? " \u2190 " : " \u2192 " }) })
|
|
263
|
-
]
|
|
264
|
-
},
|
|
265
|
-
`${suggestion.value}-${originalIndex}`
|
|
266
|
-
);
|
|
267
|
-
}),
|
|
268
|
-
endIndex < suggestions.length && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Text, { color: "gray", children: "\u25BC" }),
|
|
269
|
-
suggestions.length > MAX_SUGGESTIONS_TO_SHOW && /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(Text, { color: "gray", children: [
|
|
270
|
-
"(",
|
|
271
|
-
activeIndex + 1,
|
|
272
|
-
"/",
|
|
273
|
-
suggestions.length,
|
|
274
|
-
")"
|
|
275
|
-
] })
|
|
276
|
-
] });
|
|
277
|
-
}
|
|
278
|
-
__name(SuggestionsDisplay, "SuggestionsDisplay");
|
|
279
61
|
|
|
280
62
|
// packages/cli/src/utils/extension-mention.ts
|
|
281
63
|
init_esbuild_shims();
|
|
@@ -953,9 +735,7 @@ __name(handleAtCommand, "handleAtCommand");
|
|
|
953
735
|
export {
|
|
954
736
|
matchMcpServerPrefix,
|
|
955
737
|
buildMcpResourceRef,
|
|
956
|
-
MAX_WIDTH,
|
|
957
738
|
MAX_SUGGESTIONS_TO_SHOW,
|
|
958
|
-
SuggestionsDisplay,
|
|
959
739
|
EXTENSION_CONTEXT_BUDGET,
|
|
960
740
|
parseExtensionRef,
|
|
961
741
|
matchExtensionByRef,
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
functionResponsePartsToString
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-WQQDJE2P.js";
|
|
6
6
|
import {
|
|
7
7
|
parseAndFormatApiError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-NO6XTCYT.js";
|
|
9
9
|
import {
|
|
10
10
|
formatVisionBridgeNoticeDisplay,
|
|
11
11
|
isVisionBridgeNoticeDisplay
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-P64HXIC5.js";
|
|
13
13
|
import {
|
|
14
14
|
init_esbuild_shims
|
|
15
15
|
} from "./chunk-5O2XNYP6.js";
|
|
@@ -742,7 +742,7 @@ ${event.value}`, null);
|
|
|
742
742
|
* Emits a `can_use_tool` permission control_request so an external consumer
|
|
743
743
|
* can approve or deny the tool call. Pairs with {@link emitControlResponse}.
|
|
744
744
|
*/
|
|
745
|
-
emitPermissionRequest(requestId, toolName, toolUseId, input, blockedPath = null) {
|
|
745
|
+
emitPermissionRequest(requestId, toolName, toolUseId, input, blockedPath = null, permissionSuggestions = null) {
|
|
746
746
|
const message = {
|
|
747
747
|
type: "control_request",
|
|
748
748
|
request_id: requestId,
|
|
@@ -751,7 +751,7 @@ ${event.value}`, null);
|
|
|
751
751
|
tool_name: toolName,
|
|
752
752
|
tool_use_id: toolUseId,
|
|
753
753
|
input,
|
|
754
|
-
permission_suggestions:
|
|
754
|
+
permission_suggestions: permissionSuggestions,
|
|
755
755
|
blocked_path: blockedPath
|
|
756
756
|
}
|
|
757
757
|
};
|
|
@@ -8,13 +8,13 @@ import {
|
|
|
8
8
|
} from "./chunk-L573Z2QZ.js";
|
|
9
9
|
import {
|
|
10
10
|
t
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-6DHWO5ZF.js";
|
|
12
12
|
import {
|
|
13
13
|
So
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-NO6XTCYT.js";
|
|
15
15
|
import {
|
|
16
16
|
createDebugLogger
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-C27BYUX6.js";
|
|
18
18
|
import {
|
|
19
19
|
init_esbuild_shims
|
|
20
20
|
} from "./chunk-5O2XNYP6.js";
|
|
@@ -34,15 +34,42 @@ function isAbortError(error) {
|
|
|
34
34
|
__name(isAbortError, "isAbortError");
|
|
35
35
|
function describeErrorCause(cause) {
|
|
36
36
|
if (cause == null) return void 0;
|
|
37
|
+
return describeCodedCause(cause, 0, /* @__PURE__ */ new Set()) ?? describeCauseFallback(cause);
|
|
38
|
+
}
|
|
39
|
+
__name(describeErrorCause, "describeErrorCause");
|
|
40
|
+
function describeCauseFallback(cause) {
|
|
37
41
|
if (cause instanceof AggregateError && Array.isArray(cause.errors)) {
|
|
38
|
-
const inner = cause.errors.map((
|
|
42
|
+
const inner = cause.errors.map((error) => describeSingleError(error)).filter((detail) => Boolean(detail));
|
|
39
43
|
if (inner.length > 0) {
|
|
40
44
|
return [...new Set(inner)].join("; ");
|
|
41
45
|
}
|
|
42
46
|
}
|
|
43
47
|
return describeSingleError(cause);
|
|
44
48
|
}
|
|
45
|
-
__name(
|
|
49
|
+
__name(describeCauseFallback, "describeCauseFallback");
|
|
50
|
+
function describeCodedCause(cause, depth, visited) {
|
|
51
|
+
if (cause == null || depth >= 8 || typeof cause !== "object" || visited.has(cause)) {
|
|
52
|
+
return void 0;
|
|
53
|
+
}
|
|
54
|
+
visited.add(cause);
|
|
55
|
+
if (cause instanceof AggregateError && Array.isArray(cause.errors)) {
|
|
56
|
+
const inner = cause.errors.map((error) => describeCodedCause(error, depth + 1, visited)).filter((detail) => Boolean(detail));
|
|
57
|
+
if (inner.length > 0) {
|
|
58
|
+
return [...new Set(inner)].join("; ");
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
const nested = describeCodedCause(
|
|
62
|
+
cause.cause,
|
|
63
|
+
depth + 1,
|
|
64
|
+
visited
|
|
65
|
+
);
|
|
66
|
+
if (nested) {
|
|
67
|
+
return nested;
|
|
68
|
+
}
|
|
69
|
+
const code = cause.code;
|
|
70
|
+
return typeof code === "string" && code ? describeSingleError(cause) : void 0;
|
|
71
|
+
}
|
|
72
|
+
__name(describeCodedCause, "describeCodedCause");
|
|
46
73
|
function describeSingleError(err) {
|
|
47
74
|
if (err instanceof Error) {
|
|
48
75
|
const code = err.code;
|