@zubriq/code 0.19.8-2 → 0.19.9-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -1
- package/dist/README.md +5 -1
- package/dist/bundled/qc-helper/docs/features/channels/_meta.ts +1 -0
- package/dist/bundled/qc-helper/docs/features/channels/overview.md +23 -12
- package/dist/bundled/qc-helper/docs/features/channels/plugins.md +1 -0
- package/dist/bundled/qc-helper/docs/features/channels/wecom.md +111 -0
- package/dist/bundled/qc-helper/docs/features/hooks.md +36 -34
- package/dist/bundled/qc-helper/docs/features/memory.md +1 -1
- package/dist/bundled/qc-helper/docs/qwen-serve.md +17 -10
- package/dist/bundled/review/SKILL.md +6 -2
- package/dist/chunks/{MaxSizedBox-DTQF2MAY.js → MaxSizedBox-DAULPOB3.js} +13 -11
- package/dist/chunks/{StandaloneSessionPicker-XYO5V6IL.js → StandaloneSessionPicker-5Z7LVQ7F.js} +28 -23
- package/dist/chunks/{acpAgent-STMSDYGP.js → acpAgent-7JXXVE6B.js} +110 -80
- package/dist/chunks/{agent-C6YBZNSA.js → agent-S52M66XP.js} +8 -8
- package/dist/chunks/{agent-headless-65TQRHOY.js → agent-headless-47CB7RWZ.js} +8 -8
- package/dist/chunks/{anthropicContentGenerator-FZQAEMYK.js → anthropicContentGenerator-52G6ZA3D.js} +31 -4
- package/dist/chunks/{artifact-tool-H2TNPNP5.js → artifact-tool-D233YJFH.js} +25 -6
- package/dist/chunks/{bridge-GHGQNQRB.js → bridge-O6CZID6W.js} +17 -14
- package/dist/chunks/{ca-HCMB2I54.js → ca-MKD32FQL.js} +26 -1
- package/dist/chunks/{channel-worker-supervisor-B7MSMB5K.js → channel-worker-supervisor-NZQUOEFJ.js} +3 -3
- package/dist/chunks/{chunk-ZCMLUE4O.js → chunk-27A4SPWJ.js} +1 -1
- package/dist/chunks/{chunk-O3DVJ2JO.js → chunk-2DFYBHN4.js} +507 -64
- package/dist/chunks/{chunk-3SBUWSLI.js → chunk-2KQ42WGR.js} +2 -2
- package/dist/chunks/{chunk-PADAEB6D.js → chunk-2MZ4AYIT.js} +308 -81
- package/dist/chunks/chunk-332PWN27.js +19 -0
- package/dist/chunks/{chunk-FVMWEHWU.js → chunk-3B26UVCX.js} +114 -12
- package/dist/chunks/{chunk-W6RH6KHR.js → chunk-3GPVYALM.js} +4 -2
- package/dist/chunks/{chunk-SVK2TREP.js → chunk-3KV2TYC4.js} +1 -1
- package/dist/chunks/{chunk-G7ZG7CA6.js → chunk-3UP777ZS.js} +8 -7
- package/dist/chunks/{chunk-TYOF23VK.js → chunk-43W4YSO6.js} +1 -12
- package/dist/chunks/{chunk-3Y2SRVRF.js → chunk-4S7YIVL6.js} +3 -3
- package/dist/chunks/{chunk-VEB3NYSO.js → chunk-5MBO76SL.js} +5 -0
- package/dist/chunks/{chunk-6N76CE6T.js → chunk-65GWYZCU.js} +10 -5
- package/dist/chunks/{chunk-Z3VQSA4A.js → chunk-67JZ37FW.js} +1 -1
- package/dist/chunks/{chunk-FACTYQFS.js → chunk-72AW57IS.js} +5352 -4135
- package/dist/chunks/chunk-A2X3KLC3.js +3807 -0
- package/dist/chunks/chunk-A7JD2K4Z.js +28 -0
- package/dist/chunks/{chunk-3CRBBLJZ.js → chunk-BAC5H5F4.js} +9 -9
- package/dist/chunks/{chunk-46IFEQDM.js → chunk-BIO6D3EL.js} +1 -1
- package/dist/chunks/chunk-BLNH4ALH.js +283 -0
- package/dist/chunks/{chunk-GXQXFHYV.js → chunk-CBYHA7QC.js} +1 -1
- package/dist/chunks/{chunk-NCFY7PWS.js → chunk-CCGOFQV3.js} +51 -2
- package/dist/chunks/{chunk-66KNL43D.js → chunk-CD6USWHZ.js} +1 -1
- package/dist/chunks/{chunk-J6GMF2DO.js → chunk-CJGGW5FV.js} +66 -7
- package/dist/chunks/{chunk-LLVYPOQV.js → chunk-COUVVSMO.js} +2 -2
- package/dist/chunks/{chunk-A6XKBVOM.js → chunk-EHLC565U.js} +11 -11
- package/dist/chunks/{chunk-VKWGD42I.js → chunk-EKPIW37S.js} +10 -10
- package/dist/chunks/{chunk-DNV4FSN5.js → chunk-FBET5XZ2.js} +6 -4
- package/dist/chunks/{chunk-UMU5USBC.js → chunk-FNQ4NTFR.js} +14 -153
- package/dist/chunks/{chunk-2NL7ED5Q.js → chunk-FV7425LN.js} +22 -1
- package/dist/chunks/{chunk-6UBX2BIL.js → chunk-G2XMNE5I.js} +4 -4
- package/dist/chunks/{chunk-B34OV7K2.js → chunk-GGQQA4JW.js} +13 -0
- package/dist/chunks/chunk-GLE2YUPU.js +34 -0
- package/dist/chunks/{chunk-X265R5C6.js → chunk-GN3F6PIU.js} +1 -1
- package/dist/chunks/{chunk-TJS7CXNX.js → chunk-HY7JTIS2.js} +5 -5
- package/dist/chunks/{chunk-WSVZFWN4.js → chunk-IBY3Q3HG.js} +693 -104
- package/dist/chunks/{chunk-VEDR5V7H.js → chunk-ITIH3WEE.js} +8 -8
- package/dist/chunks/chunk-JGT7AZCW.js +168 -0
- package/dist/chunks/{chunk-PY6PG4BL.js → chunk-K6VOOZB4.js} +6 -5
- package/dist/chunks/chunk-LGFAYIKX.js +115 -0
- package/dist/chunks/chunk-LOJIM7ZB.js +487 -0
- package/dist/chunks/{chunk-FT5ASRN5.js → chunk-LRKOXGF6.js} +5 -5
- package/dist/chunks/{chunk-AXYGF5SX.js → chunk-LSB7QUTQ.js} +15 -9
- package/dist/chunks/{chunk-QUR23Z2Q.js → chunk-M6F3JCGI.js} +2 -2
- package/dist/chunks/{chunk-DH7XPKJV.js → chunk-MCAFUCA2.js} +5 -5
- package/dist/chunks/{chunk-SWHGVEH5.js → chunk-O2JNBKLL.js} +1 -1
- package/dist/chunks/{chunk-4RQIB5UZ.js → chunk-O2YT7VB4.js} +0 -34
- package/dist/chunks/{chunk-4KJ2BPIT.js → chunk-OACJLMLD.js} +2 -38
- package/dist/chunks/{chunk-VQZSRYKB.js → chunk-OFGYDQPN.js} +423 -61
- package/dist/chunks/{chunk-5XZ6FOTY.js → chunk-ONGYTDFO.js} +1 -1
- package/dist/chunks/{chunk-RTCBBRJK.js → chunk-PBLEEGVC.js} +20 -8
- package/dist/chunks/{chunk-4KMU5RWV.js → chunk-PJWMYPWC.js} +45 -9
- package/dist/chunks/{chunk-65A6UQDZ.js → chunk-QGNRRKJJ.js} +146 -54
- package/dist/chunks/{chunk-GSNACUDM.js → chunk-RBXWE376.js} +5 -13
- package/dist/chunks/{chunk-COPJASIO.js → chunk-RRI2ZIIA.js} +10 -10
- package/dist/chunks/{chunk-GKUVMLJH.js → chunk-RVBG4B2L.js} +3 -3
- package/dist/chunks/{chunk-KSPVDFE4.js → chunk-SAIILPQ3.js} +0 -3
- package/dist/chunks/{chunk-AKSRZ5BA.js → chunk-SBP3QB6S.js} +17 -111
- package/dist/chunks/{chunk-P42OA4GP.js → chunk-TBV35OBU.js} +14 -8
- package/dist/chunks/{chunk-HXVVCTID.js → chunk-TWKTKDO7.js} +1 -1
- package/dist/chunks/chunk-U3BZFGXZ.js +167 -0
- package/dist/chunks/chunk-UIDXQNMV.js +13 -0
- package/dist/chunks/{chunk-PIORL4OD.js → chunk-UKV3D7WB.js} +0 -44
- package/dist/chunks/{chunk-23TH7TAA.js → chunk-UNP2RK7B.js} +2 -2
- package/dist/chunks/{chunk-AGTU5PQ6.js → chunk-UWRIDCTO.js} +4 -4
- package/dist/chunks/chunk-V35MD7KN.js +13 -0
- package/dist/chunks/{chunk-OMO3UY57.js → chunk-VFGM47DK.js} +681 -1232
- package/dist/chunks/{chunk-PMMJS5AM.js → chunk-X4BBHJZ3.js} +4 -3
- package/dist/chunks/chunk-XMQOLL5Z.js +8223 -0
- package/dist/chunks/chunk-XNXVCNAT.js +88 -0
- package/dist/chunks/{chunk-TDGF35EN.js → chunk-XOHNA2S6.js} +1 -1
- package/dist/chunks/{chunk-PYWGOON5.js → chunk-XPS3UH2D.js} +1 -1
- package/dist/chunks/chunk-YBRZ3S2C.js +942 -0
- package/dist/chunks/{chunk-RFIL6REB.js → chunk-YKZIAK7C.js} +119 -29
- package/dist/chunks/{chunk-7SZJYZPR.js → chunk-YWRV5OJX.js} +92 -465
- package/dist/chunks/chunk-Z3I3QJK3.js +47 -0
- package/dist/chunks/{chunk-Z33V6JSK.js → chunk-ZF7UGIJ2.js} +1 -1
- package/dist/chunks/chunk-ZL5HN75Q.js +61 -0
- package/dist/chunks/{computer-use-BH6F7LI7.js → computer-use-AK2MPP4V.js} +8 -8
- package/dist/chunks/{contextCommand-URWDQXBJ.js → contextCommand-XXYJTFCX.js} +12 -11
- package/dist/chunks/{cron-create-DDYU4DIR.js → cron-create-JSXEIPVS.js} +1 -1
- package/dist/chunks/{cron-delete-DFKOUZWN.js → cron-delete-OIFVEPGU.js} +1 -1
- package/dist/chunks/{cron-list-ME5QGAR5.js → cron-list-D4ZX4IOE.js} +1 -1
- package/dist/chunks/{daemon-XWG2EGFX.js → daemon-WPAENEBW.js} +71 -3
- package/dist/chunks/{daemon-status-provider-CLNN2UY2.js → daemon-status-provider-DOBLLAUR.js} +20 -17
- package/dist/chunks/{de-PLLFDERI.js → de-ZFPPQVSF.js} +26 -1
- package/dist/chunks/{dist-LPVU3L2M.js → dist-BEXOZXLQ.js} +6 -3792
- package/dist/chunks/{dist-7GU63KI5.js → dist-E6UANPIM.js} +1 -1
- package/dist/chunks/{dist-VHBP2PIG.js → dist-H2AEJCZ5.js} +2 -2
- package/dist/chunks/{dist-3UDX5T4T.js → dist-O2IRTRPP.js} +1 -1
- package/dist/chunks/dist-SCFLLYMK.js +3217 -0
- package/dist/chunks/{dist-H4HHZYCI.js → dist-Z34QPAQW.js} +2 -2
- package/dist/chunks/{earlyInputCapture-SFINSVH2.js → earlyInputCapture-QX7FKEPY.js} +8 -8
- package/dist/chunks/{edit-5OJRPFGZ.js → edit-MNTA2GNC.js} +9 -9
- package/dist/chunks/{en-AXARKOWO.js → en-N4EPZAQI.js} +31 -2
- package/dist/chunks/{enter-worktree-HK54JBSR.js → enter-worktree-WAG3SZ2O.js} +8 -8
- package/dist/chunks/{enterPlanMode-5GXOH5PQ.js → enterPlanMode-THDBOOSG.js} +8 -8
- package/dist/chunks/environment-AE6MZDKE.js +90 -0
- package/dist/chunks/{errors-73SZF7O7.js → errors-ITLDJFFZ.js} +10 -10
- package/dist/chunks/{exit-worktree-CBX23VFX.js → exit-worktree-ENFBD2E5.js} +8 -8
- package/dist/chunks/{exitPlanMode-HADS7AAV.js → exitPlanMode-HOSNRC22.js} +8 -8
- package/dist/chunks/{fast-path-3QQW3W6W.js → fast-path-CDB4XPSL.js} +12 -3
- package/dist/chunks/{fast-path-settings-RCRXH2JG.js → fast-path-settings-7RIFI3PK.js} +3 -2
- package/dist/chunks/{fr-MBMNQSQ6.js → fr-5WWMY53B.js} +30 -1
- package/dist/chunks/{gemini-Q4KKJMFH.js → gemini-DR4ABGLP.js} +438 -265
- package/dist/chunks/{geminiContentGenerator-SBKWTYFU.js → geminiContentGenerator-GGRSUJG6.js} +1 -1
- package/dist/chunks/{glob-ORVXVDJJ.js → glob-S3ESYOFY.js} +8 -8
- package/dist/chunks/{grep-TMSN6VOF.js → grep-WVRBUHNE.js} +8 -8
- package/dist/chunks/handleAutoUpdate-K73DXUO2.js +65 -0
- package/dist/chunks/{initializer-NFO725XQ.js → initializer-O2E3RKOG.js} +17 -13
- package/dist/chunks/{ja-HFV5QCHR.js → ja-CUHZOLEJ.js} +30 -1
- package/dist/chunks/{list-NP6QTWKD.js → list-7HRANYR2.js} +17 -15
- package/dist/chunks/{loadedSettingsAdapter-5PXZC4ZO.js → loadedSettingsAdapter-DC3DUNGS.js} +15 -13
- package/dist/chunks/{loop-wakeup-ZW5P6VPY.js → loop-wakeup-OHWEMFP5.js} +2 -2
- package/dist/chunks/{ls-L654WOAT.js → ls-7MFU2QYW.js} +1 -1
- package/dist/chunks/{lsp-M35KE54Y.js → lsp-XHDTPTGV.js} +2 -4
- package/dist/chunks/{mcp-D3C75I47.js → mcp-T676RK3N.js} +15 -13
- package/dist/chunks/{monitor-YZFSN33Z.js → monitor-NDBNCHYZ.js} +16 -11
- package/dist/chunks/{nonInteractiveCli-U7ZDVLQD.js → nonInteractiveCli-TMB4TLML.js} +52 -44
- package/dist/chunks/{notebook-edit-LVCCTW65.js → notebook-edit-XNEWNIID.js} +9 -9
- package/dist/chunks/{openaiContentGenerator-G4JHCIGX.js → openaiContentGenerator-2GGVNH4J.js} +6 -6
- package/dist/chunks/{pidfile-O37JZBNN.js → pidfile-U6U3KDMU.js} +8 -8
- package/dist/chunks/{pt-2THT3YHA.js → pt-OLYN42DS.js} +26 -1
- package/dist/chunks/{qwenContentGenerator-SPHKYVJF.js → qwenContentGenerator-FZR3VYQW.js} +10 -10
- package/dist/chunks/{read-file-MBGSR77H.js → read-file-2P3MNXBM.js} +3 -3
- package/dist/chunks/{record-artifact-PP3LKHTS.js → record-artifact-SQ2OKRJW.js} +3 -3
- package/dist/chunks/{ripGrep-WMM4G6QB.js → ripGrep-W5DKLIC2.js} +8 -8
- package/dist/chunks/{ru-PER5I4OI.js → ru-MKM2HFDS.js} +26 -1
- package/dist/chunks/{run-qwen-serve-3BOGJBTS.js → run-qwen-serve-FGGLFPLG.js} +602 -143
- package/dist/chunks/{scheduler-KWPXUSJ4.js → scheduler-CTJIZOWI.js} +8 -8
- package/dist/chunks/{send-message-OA6MV4EU.js → send-message-76GT3JMC.js} +1 -1
- package/dist/chunks/{serve-6JXYVZRD.js → serve-2OBCBFXZ.js} +17 -14
- package/dist/chunks/{server-KOSHCREY.js → server-K5VEB225.js} +1394 -328
- package/dist/chunks/{session-5RI6JYZ6.js → session-7EVRNUXC.js} +53 -45
- package/dist/chunks/{settings-URS74H6Z.js → settings-7QGLUMUT.js} +24 -20
- package/dist/chunks/{shell-6VOD5NUH.js → shell-JSJCMSGS.js} +8 -8
- package/dist/chunks/{skill-MKIISOW7.js → skill-DSJPTMVO.js} +15 -5
- package/dist/chunks/{spawnChannel-GM7HIIDH.js → spawnChannel-ANPAH5LN.js} +10 -10
- package/dist/chunks/{src-X2S7YA5D.js → src-GMUN6GZG.js} +21 -9
- package/dist/chunks/{startInteractiveUI-REEHDN4Z.js → startInteractiveUI-ID2KOH7Z.js} +33759 -41620
- package/dist/chunks/{task-create-RPFZNB4B.js → task-create-WCHTB435.js} +2 -2
- package/dist/chunks/{task-update-5WUG5MVQ.js → task-update-XYWMHJGJ.js} +2 -2
- package/dist/chunks/{team-create-MQVOXIHZ.js → team-create-FNAI6F35.js} +8 -8
- package/dist/chunks/{team-plan-approval-H74NA3K2.js → team-plan-approval-GPAFPCI7.js} +8 -8
- package/dist/chunks/{theme-manager-YMC4EJQO.js → theme-manager-366AQFJU.js} +8 -8
- package/dist/chunks/{tool-search-VUJGWH7W.js → tool-search-GVSOY72G.js} +6 -23
- package/dist/chunks/total-session-admission-FUTVSIVT.js +72 -0
- package/dist/chunks/{trustedFolders-UMMVN4P2.js → trustedFolders-2J5VZVXS.js} +9 -9
- package/dist/chunks/updateCheck-BHMVBNNI.js +65 -0
- package/dist/chunks/{validateNonInterActiveAuth-ORA3KCZO.js → validateNonInterActiveAuth-6BNWQW3V.js} +49 -41
- package/dist/chunks/{version-II46VXNW.js → version-SI22TR43.js} +2 -1
- package/dist/chunks/{workflow-KYFPOWKK.js → workflow-EGCATP2M.js} +9 -9
- package/dist/chunks/{workspace-providers-status-QDQEYCHT.js → workspace-providers-status-NSB2VFSX.js} +18 -15
- package/dist/chunks/workspace-registry-B3YUZ2VM.js +74 -0
- package/dist/chunks/{workspace-service-YBVUOSP7.js → workspace-service-U23V3DKO.js} +21 -19
- package/dist/chunks/{workspace-skills-status-3ASS4VEE.js → workspace-skills-status-3OHN6C62.js} +16 -14
- package/dist/chunks/{write-file-7ZHZO4K5.js → write-file-YJHRI5NS.js} +9 -9
- package/dist/chunks/{zh-RS3HZHFH.js → zh-J4F6QWQV.js} +31 -2
- package/dist/chunks/{zh-TW-L5GRQ4S4.js → zh-TW-XVDWOLSW.js} +31 -2
- package/dist/cli.js +11 -11
- package/dist/locales/ca.js +30 -0
- package/dist/locales/de.js +30 -0
- package/dist/locales/en.js +38 -2
- package/dist/locales/fr.js +36 -0
- package/dist/locales/ja.js +36 -0
- package/dist/locales/pt.js +30 -0
- package/dist/locales/ru.js +30 -0
- package/dist/locales/zh-TW.js +38 -2
- package/dist/locales/zh.js +38 -2
- package/dist/package.json +3 -3
- package/dist/web-shell/assets/{arc-C6tzvtOa.js → arc-BWyoJpY2.js} +1 -1
- package/dist/web-shell/assets/{architectureDiagram-3BPJPVTR-DSYQFGn9.js → architectureDiagram-3BPJPVTR-BT0mGrz2.js} +1 -1
- package/dist/web-shell/assets/{blockDiagram-GPEHLZMM-CHjBdXAD.js → blockDiagram-GPEHLZMM-BLgUWvyf.js} +1 -1
- package/dist/web-shell/assets/{c4Diagram-AAUBKEIU-BQzK6Yyb.js → c4Diagram-AAUBKEIU-DYx9M7oU.js} +1 -1
- package/dist/web-shell/assets/channel-wmPUGHtg.js +1 -0
- package/dist/web-shell/assets/{chunk-2J33WTMH-hpP2p3Ij.js → chunk-2J33WTMH-CfMHWbuZ.js} +1 -1
- package/dist/web-shell/assets/{chunk-4BX2VUAB-B5KtK1JJ.js → chunk-4BX2VUAB-B1URoqEV.js} +1 -1
- package/dist/web-shell/assets/{chunk-55IACEB6-BDv6Mfr2.js → chunk-55IACEB6-DAIaM4QF.js} +1 -1
- package/dist/web-shell/assets/{chunk-727SXJPM-BevPWfrX.js → chunk-727SXJPM-B2X34knw.js} +1 -1
- package/dist/web-shell/assets/{chunk-AQP2D5EJ-ChDrz2ad.js → chunk-AQP2D5EJ-Cif-zLTQ.js} +1 -1
- package/dist/web-shell/assets/{chunk-FMBD7UC4-ClMdVSDs.js → chunk-FMBD7UC4-H18WCXdY.js} +1 -1
- package/dist/web-shell/assets/{chunk-ND2GUHAM-BceV8kZS.js → chunk-ND2GUHAM-YFtetHi0.js} +1 -1
- package/dist/web-shell/assets/{chunk-QZHKN3VN-DtyK2wwc.js → chunk-QZHKN3VN-By2hiH3r.js} +1 -1
- package/dist/web-shell/assets/classDiagram-4FO5ZUOK-BA2ljEjW.js +1 -0
- package/dist/web-shell/assets/classDiagram-v2-Q7XG4LA2-BA2ljEjW.js +1 -0
- package/dist/web-shell/assets/{cose-bilkent-S5V4N54A-BGMsqwmE.js → cose-bilkent-S5V4N54A-VrcnnLZu.js} +1 -1
- package/dist/web-shell/assets/{dagre-BM42HDAG-C-71clpF.js → dagre-BM42HDAG-CGo-IaVV.js} +1 -1
- package/dist/web-shell/assets/{diagram-2AECGRRQ-WIzzlkec.js → diagram-2AECGRRQ-Dl4QjzIB.js} +1 -1
- package/dist/web-shell/assets/{diagram-5GNKFQAL-CtnhZUP1.js → diagram-5GNKFQAL-qMLmsO0u.js} +1 -1
- package/dist/web-shell/assets/{diagram-KO2AKTUF-CS_IUezp.js → diagram-KO2AKTUF-CHlmuxPI.js} +1 -1
- package/dist/web-shell/assets/{diagram-LMA3HP47-BQnGRwN9.js → diagram-LMA3HP47-BUwU3GwT.js} +1 -1
- package/dist/web-shell/assets/{diagram-OG6HWLK6-By2VIocq.js → diagram-OG6HWLK6-HEhwPDUM.js} +1 -1
- package/dist/web-shell/assets/{erDiagram-TEJ5UH35-Dy8WeNkr.js → erDiagram-TEJ5UH35-1n0llBmM.js} +1 -1
- package/dist/web-shell/assets/{flowDiagram-I6XJVG4X-Diu_4y0w.js → flowDiagram-I6XJVG4X-BN74uMnt.js} +1 -1
- package/dist/web-shell/assets/{ganttDiagram-6RSMTGT7-CH8euujP.js → ganttDiagram-6RSMTGT7-BoOq78i3.js} +1 -1
- package/dist/web-shell/assets/{gitGraphDiagram-PVQCEYII-DHiObZq1.js → gitGraphDiagram-PVQCEYII-CN8b00c8.js} +1 -1
- package/dist/web-shell/assets/index-CNwoO1Cn.js +783 -0
- package/dist/web-shell/assets/index-CWQ0z6kZ.css +5 -0
- package/dist/web-shell/assets/{infoDiagram-5YYISTIA-CvC9A6fh.js → infoDiagram-5YYISTIA-CCurnIna.js} +1 -1
- package/dist/web-shell/assets/{ishikawaDiagram-YF4QCWOH-BK46kC4E.js → ishikawaDiagram-YF4QCWOH-AwuRqdUP.js} +1 -1
- package/dist/web-shell/assets/{journeyDiagram-JHISSGLW-B2TIiKq4.js → journeyDiagram-JHISSGLW-B7IICk-E.js} +1 -1
- package/dist/web-shell/assets/{kanban-definition-UN3LZRKU-Bh0WAulO.js → kanban-definition-UN3LZRKU-BYF0OKhx.js} +1 -1
- package/dist/web-shell/assets/{linear-Bxe9SHMk.js → linear-GWWguGfD.js} +1 -1
- package/dist/web-shell/assets/{mermaid.core-B1Pv6D5B.js → mermaid.core-JqtkxvCl.js} +5 -5
- package/dist/web-shell/assets/{mindmap-definition-RKZ34NQL-Bz0joLH8.js → mindmap-definition-RKZ34NQL-B0MmHsZ6.js} +1 -1
- package/dist/web-shell/assets/{pieDiagram-4H26LBE5-CnN4x-VS.js → pieDiagram-4H26LBE5-DhImUZLQ.js} +1 -1
- package/dist/web-shell/assets/{quadrantDiagram-W4KKPZXB-BYWD4xO4.js → quadrantDiagram-W4KKPZXB-DGeSC3DT.js} +1 -1
- package/dist/web-shell/assets/{requirementDiagram-4Y6WPE33-B4MEhI9h.js → requirementDiagram-4Y6WPE33-DkspY6Re.js} +1 -1
- package/dist/web-shell/assets/{sankeyDiagram-5OEKKPKP-Dk_FgKLp.js → sankeyDiagram-5OEKKPKP-CaOofS2x.js} +1 -1
- package/dist/web-shell/assets/{sequenceDiagram-3UESZ5HK-B4ksiBZQ.js → sequenceDiagram-3UESZ5HK-DFQ_kFnN.js} +1 -1
- package/dist/web-shell/assets/{stateDiagram-AJRCARHV-CYf0xSPl.js → stateDiagram-AJRCARHV-D3snw0Tz.js} +1 -1
- package/dist/web-shell/assets/stateDiagram-v2-BHNVJYJU-BbSm_9d0.js +1 -0
- package/dist/web-shell/assets/{timeline-definition-PNZ67QCA-0CXeWHNY.js → timeline-definition-PNZ67QCA-l4zH8nLM.js} +1 -1
- package/dist/web-shell/assets/{vennDiagram-CIIHVFJN-DHoYY9v2.js → vennDiagram-CIIHVFJN-BnRlA98M.js} +1 -1
- package/dist/web-shell/assets/{wardley-L42UT6IY-D_65qshr.js → wardley-L42UT6IY-BS0xUdmd.js} +1 -1
- package/dist/web-shell/assets/{wardleyDiagram-YWT4CUSO-Cv90x1sd.js → wardleyDiagram-YWT4CUSO-DKGBUWyQ.js} +1 -1
- package/dist/web-shell/assets/{xychartDiagram-2RQKCTM6-5FQCYJyh.js → xychartDiagram-2RQKCTM6-DVb2HuOB.js} +1 -1
- package/dist/web-shell/index.html +2 -2
- package/package.json +3 -2
- package/dist/web-shell/assets/channel-V-ZaJrA6.js +0 -1
- package/dist/web-shell/assets/classDiagram-4FO5ZUOK-s-H0snGT.js +0 -1
- package/dist/web-shell/assets/classDiagram-v2-Q7XG4LA2-s-H0snGT.js +0 -1
- package/dist/web-shell/assets/index-DW75jq0K.css +0 -5
- package/dist/web-shell/assets/index-tiCo0xbZ.js +0 -779
- package/dist/web-shell/assets/stateDiagram-v2-BHNVJYJU-CMtrFRUb.js +0 -1
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// Force strict mode and setup for ESM
|
|
2
|
+
"use strict";
|
|
3
|
+
import {
|
|
4
|
+
getPackageJson
|
|
5
|
+
} from "./chunk-43W4YSO6.js";
|
|
6
|
+
import {
|
|
7
|
+
init_esbuild_shims
|
|
8
|
+
} from "./chunk-A4BMJM77.js";
|
|
9
|
+
import {
|
|
10
|
+
__name
|
|
11
|
+
} from "./chunk-J2S4EL5Y.js";
|
|
12
|
+
|
|
13
|
+
// packages/cli/src/utils/version.ts
|
|
14
|
+
init_esbuild_shims();
|
|
15
|
+
async function getCliVersion() {
|
|
16
|
+
const pkgJson = await getPackageJson();
|
|
17
|
+
return "0.19.9-2";
|
|
18
|
+
}
|
|
19
|
+
__name(getCliVersion, "getCliVersion");
|
|
20
|
+
|
|
21
|
+
export {
|
|
22
|
+
getCliVersion
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* @license
|
|
26
|
+
* Copyright 2025 Google LLC
|
|
27
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
28
|
+
*/
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
handleAtCommand
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-UWRIDCTO.js";
|
|
6
6
|
import {
|
|
7
7
|
JsonOutputAdapter
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-XPS3UH2D.js";
|
|
9
9
|
import {
|
|
10
10
|
StreamJsonOutputAdapter
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-M6F3JCGI.js";
|
|
12
12
|
import {
|
|
13
13
|
buildInitialSystemReminders,
|
|
14
14
|
buildSystemMessage,
|
|
@@ -20,10 +20,10 @@ import {
|
|
|
20
20
|
insertAfterFunctionResponses,
|
|
21
21
|
isSlashCommand,
|
|
22
22
|
normalizePartList
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-VFGM47DK.js";
|
|
24
24
|
import {
|
|
25
25
|
RunBudgetEnforcer
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-OFGYDQPN.js";
|
|
27
27
|
import {
|
|
28
28
|
AlreadyReportedError,
|
|
29
29
|
handleBudgetExceededError,
|
|
@@ -31,10 +31,10 @@ import {
|
|
|
31
31
|
handleError,
|
|
32
32
|
handleMaxTurnsExceededError,
|
|
33
33
|
handleToolError
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-UNP2RK7B.js";
|
|
35
35
|
import {
|
|
36
36
|
isInlineModelOverrideAllowed
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-ITIH3WEE.js";
|
|
38
38
|
import {
|
|
39
39
|
ORPHAN_TOOL_USE_REPAIR_REASON,
|
|
40
40
|
buildSyntheticToolResponseParts,
|
|
@@ -49,12 +49,12 @@ import {
|
|
|
49
49
|
parseAndFormatApiError,
|
|
50
50
|
promptIdContext,
|
|
51
51
|
restoreWorktreeContext
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-72AW57IS.js";
|
|
53
53
|
import {
|
|
54
54
|
isTelemetrySdkInitialized,
|
|
55
55
|
shutdownTelemetry,
|
|
56
56
|
uiTelemetryService
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-2DFYBHN4.js";
|
|
58
58
|
import {
|
|
59
59
|
ToolNames
|
|
60
60
|
} from "./chunk-X3YGAX7V.js";
|
|
@@ -0,0 +1,283 @@
|
|
|
1
|
+
// Force strict mode and setup for ESM
|
|
2
|
+
"use strict";
|
|
3
|
+
import {
|
|
4
|
+
appEvents
|
|
5
|
+
} from "./chunk-OFGYDQPN.js";
|
|
6
|
+
import {
|
|
7
|
+
require_undici
|
|
8
|
+
} from "./chunk-54YZOP7P.js";
|
|
9
|
+
import {
|
|
10
|
+
IdeClient,
|
|
11
|
+
getAllProviderBaseUrls
|
|
12
|
+
} from "./chunk-72AW57IS.js";
|
|
13
|
+
import {
|
|
14
|
+
initializeTelemetry
|
|
15
|
+
} from "./chunk-2DFYBHN4.js";
|
|
16
|
+
import {
|
|
17
|
+
detectRuntime,
|
|
18
|
+
getOrCreateSharedDispatcher,
|
|
19
|
+
redactProxyCredentials
|
|
20
|
+
} from "./chunk-H6EMK6QK.js";
|
|
21
|
+
import {
|
|
22
|
+
createDebugLogger
|
|
23
|
+
} from "./chunk-22MNNNXE.js";
|
|
24
|
+
import {
|
|
25
|
+
recordStartupEvent
|
|
26
|
+
} from "./chunk-ITOGNELQ.js";
|
|
27
|
+
import {
|
|
28
|
+
init_esbuild_shims
|
|
29
|
+
} from "./chunk-A4BMJM77.js";
|
|
30
|
+
import {
|
|
31
|
+
__name,
|
|
32
|
+
__toESM
|
|
33
|
+
} from "./chunk-J2S4EL5Y.js";
|
|
34
|
+
|
|
35
|
+
// packages/cli/src/startup/startup-prefetch.ts
|
|
36
|
+
init_esbuild_shims();
|
|
37
|
+
|
|
38
|
+
// packages/cli/src/utils/apiPreconnect.ts
|
|
39
|
+
init_esbuild_shims();
|
|
40
|
+
var import_undici = __toESM(require_undici(), 1);
|
|
41
|
+
var debugLogger = createDebugLogger("PRECONNECT");
|
|
42
|
+
var preconnectFired = false;
|
|
43
|
+
var DEFAULT_BASE_URLS = {
|
|
44
|
+
openai: "https://api.openai.com",
|
|
45
|
+
"qwen-oauth": "https://coding.dashscope.aliyuncs.com",
|
|
46
|
+
anthropic: "https://api.anthropic.com",
|
|
47
|
+
dashscope: "https://dashscope.aliyuncs.com"
|
|
48
|
+
};
|
|
49
|
+
var ALL_DEFAULT_URLS = [
|
|
50
|
+
...Object.values(DEFAULT_BASE_URLS),
|
|
51
|
+
...getAllProviderBaseUrls()
|
|
52
|
+
];
|
|
53
|
+
function shouldSkipPreconnect() {
|
|
54
|
+
if (process.env["NODE_EXTRA_CA_CERTS"]) {
|
|
55
|
+
debugLogger.debug("Skipping preconnect: custom CA certificate configured");
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
return false;
|
|
59
|
+
}
|
|
60
|
+
__name(shouldSkipPreconnect, "shouldSkipPreconnect");
|
|
61
|
+
function isInSandboxMode() {
|
|
62
|
+
return process.env["SANDBOX"] !== void 0;
|
|
63
|
+
}
|
|
64
|
+
__name(isInSandboxMode, "isInSandboxMode");
|
|
65
|
+
function isDefaultBaseUrl(baseUrl) {
|
|
66
|
+
const normalizedInput = baseUrl.toLowerCase().replace(/^https?:\/\//, "").replace(/\/+$/, "");
|
|
67
|
+
return ALL_DEFAULT_URLS.some((defaultUrl) => {
|
|
68
|
+
const normalizedDefault = defaultUrl.toLowerCase().replace(/^https?:\/\//, "").replace(/\/+$/, "");
|
|
69
|
+
return normalizedInput === normalizedDefault || normalizedInput.startsWith(normalizedDefault + "/");
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
__name(isDefaultBaseUrl, "isDefaultBaseUrl");
|
|
73
|
+
function getPreconnectTargetUrl(authType, resolvedBaseUrl) {
|
|
74
|
+
if (resolvedBaseUrl && /^https?:\/\//i.test(resolvedBaseUrl)) {
|
|
75
|
+
if (isDefaultBaseUrl(resolvedBaseUrl)) {
|
|
76
|
+
return resolvedBaseUrl;
|
|
77
|
+
}
|
|
78
|
+
debugLogger.debug(
|
|
79
|
+
"Skipping preconnect: resolved baseUrl is not a default URL"
|
|
80
|
+
);
|
|
81
|
+
return void 0;
|
|
82
|
+
}
|
|
83
|
+
if (authType && DEFAULT_BASE_URLS[authType]) {
|
|
84
|
+
return DEFAULT_BASE_URLS[authType];
|
|
85
|
+
}
|
|
86
|
+
return void 0;
|
|
87
|
+
}
|
|
88
|
+
__name(getPreconnectTargetUrl, "getPreconnectTargetUrl");
|
|
89
|
+
function preconnectApi(authType, options = {}) {
|
|
90
|
+
if (preconnectFired) {
|
|
91
|
+
return;
|
|
92
|
+
}
|
|
93
|
+
if (process.env["QWEN_CODE_DISABLE_PRECONNECT"] === "1") {
|
|
94
|
+
debugLogger.debug("Preconnect disabled by environment variable");
|
|
95
|
+
preconnectFired = true;
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
98
|
+
if (isInSandboxMode()) {
|
|
99
|
+
debugLogger.debug("Skipping preconnect: sandbox mode detected");
|
|
100
|
+
preconnectFired = true;
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
if (shouldSkipPreconnect()) {
|
|
104
|
+
preconnectFired = true;
|
|
105
|
+
return;
|
|
106
|
+
}
|
|
107
|
+
if (detectRuntime() !== "node") {
|
|
108
|
+
debugLogger.debug("Skipping preconnect: unsupported runtime");
|
|
109
|
+
preconnectFired = true;
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
112
|
+
if (!options.proxy) {
|
|
113
|
+
debugLogger.debug("Skipping preconnect dispatcher: no proxy configured");
|
|
114
|
+
return;
|
|
115
|
+
}
|
|
116
|
+
const proxy = options.proxy;
|
|
117
|
+
const targetUrl = getPreconnectTargetUrl(authType, options.resolvedBaseUrl);
|
|
118
|
+
if (!targetUrl) {
|
|
119
|
+
debugLogger.debug("No target URL for preconnect");
|
|
120
|
+
return;
|
|
121
|
+
}
|
|
122
|
+
preconnectFired = true;
|
|
123
|
+
debugLogger.debug(`Preconnecting to: ${targetUrl}`);
|
|
124
|
+
try {
|
|
125
|
+
const dispatcher = getOrCreateSharedDispatcher(proxy);
|
|
126
|
+
(0, import_undici.fetch)(targetUrl, {
|
|
127
|
+
method: "HEAD",
|
|
128
|
+
signal: AbortSignal.timeout(5e3),
|
|
129
|
+
headers: {
|
|
130
|
+
"User-Agent": "QwenCode-Preconnect/1.0"
|
|
131
|
+
},
|
|
132
|
+
dispatcher
|
|
133
|
+
}).then(() => {
|
|
134
|
+
debugLogger.debug("Preconnect completed");
|
|
135
|
+
}).catch((error) => {
|
|
136
|
+
const redactedError = redactProxyCredentials(String(error));
|
|
137
|
+
debugLogger.debug(`Preconnect failed (ignored): ${redactedError}`);
|
|
138
|
+
});
|
|
139
|
+
} catch (error) {
|
|
140
|
+
const redactedError = redactProxyCredentials(String(error));
|
|
141
|
+
debugLogger.debug(`Preconnect failed (ignored): ${redactedError}`);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
__name(preconnectApi, "preconnectApi");
|
|
145
|
+
|
|
146
|
+
// packages/cli/src/startup/startup-prefetch.ts
|
|
147
|
+
var debugLogger2 = createDebugLogger("STARTUP_PREFETCH");
|
|
148
|
+
var DEFERRED_IDE_CONNECT_TIMEOUT_MS = 15e3;
|
|
149
|
+
var earlyStarted = /* @__PURE__ */ new WeakSet();
|
|
150
|
+
var postRenderStarted = /* @__PURE__ */ new WeakSet();
|
|
151
|
+
function withTimeout(promise, name, timeoutMs, onTimeout = () => {
|
|
152
|
+
}) {
|
|
153
|
+
let timeoutId;
|
|
154
|
+
let timedOut = false;
|
|
155
|
+
const runTimeoutCleanup = /* @__PURE__ */ __name(() => {
|
|
156
|
+
void Promise.resolve().then(onTimeout).catch((err) => {
|
|
157
|
+
debugLogger2.debug(`${name} timeout cleanup failed:`, err);
|
|
158
|
+
});
|
|
159
|
+
}, "runTimeoutCleanup");
|
|
160
|
+
const timeout = new Promise((_, reject) => {
|
|
161
|
+
timeoutId = setTimeout(() => {
|
|
162
|
+
timedOut = true;
|
|
163
|
+
runTimeoutCleanup();
|
|
164
|
+
reject(new Error(`${name} timed out after ${timeoutMs}ms`));
|
|
165
|
+
}, timeoutMs);
|
|
166
|
+
timeoutId.unref?.();
|
|
167
|
+
});
|
|
168
|
+
void promise.then(
|
|
169
|
+
() => {
|
|
170
|
+
if (timedOut) {
|
|
171
|
+
runTimeoutCleanup();
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
(err) => {
|
|
175
|
+
if (timedOut) {
|
|
176
|
+
debugLogger2.debug(`${name} underlying error after timeout:`, err);
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
);
|
|
180
|
+
return Promise.race([promise, timeout]).finally(() => {
|
|
181
|
+
if (timeoutId) {
|
|
182
|
+
clearTimeout(timeoutId);
|
|
183
|
+
}
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
__name(withTimeout, "withTimeout");
|
|
187
|
+
function runDeferredTask(name, task) {
|
|
188
|
+
recordStartupEvent("startup_prefetch_started", { name });
|
|
189
|
+
void Promise.resolve().then(task).then(() => {
|
|
190
|
+
recordStartupEvent("startup_prefetch_completed", { name });
|
|
191
|
+
}).catch((err) => {
|
|
192
|
+
recordStartupEvent("startup_prefetch_failed", { name });
|
|
193
|
+
debugLogger2.warn(`${name} failed:`, err);
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
__name(runDeferredTask, "runDeferredTask");
|
|
197
|
+
async function disconnectIdeAfterDeferredTimeout() {
|
|
198
|
+
const ideClient = await IdeClient.getInstance();
|
|
199
|
+
await ideClient.disconnect();
|
|
200
|
+
}
|
|
201
|
+
__name(disconnectIdeAfterDeferredTimeout, "disconnectIdeAfterDeferredTimeout");
|
|
202
|
+
function startEarlyStartupPrefetches(config) {
|
|
203
|
+
if (earlyStarted.has(config)) return;
|
|
204
|
+
earlyStarted.add(config);
|
|
205
|
+
try {
|
|
206
|
+
const modelsConfig = config.getModelsConfig();
|
|
207
|
+
const authType = modelsConfig.getCurrentAuthType();
|
|
208
|
+
const resolvedBaseUrl = modelsConfig.getGenerationConfig().baseUrl;
|
|
209
|
+
const proxy = config.getProxy();
|
|
210
|
+
preconnectApi(authType, { resolvedBaseUrl, proxy });
|
|
211
|
+
} catch (error) {
|
|
212
|
+
debugLogger2.debug(
|
|
213
|
+
`Preconnect skipped due to error getting authType: ${error}`
|
|
214
|
+
);
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
__name(startEarlyStartupPrefetches, "startEarlyStartupPrefetches");
|
|
218
|
+
function startPostRenderPrefetches(config, settings, options = {}) {
|
|
219
|
+
if (postRenderStarted.has(config)) return;
|
|
220
|
+
postRenderStarted.add(config);
|
|
221
|
+
if (settings.merged.general?.enableAutoUpdate !== false) {
|
|
222
|
+
runDeferredTask("update_check", async () => {
|
|
223
|
+
const [{ checkForUpdates }, { handleAutoUpdate }] = await Promise.all([
|
|
224
|
+
import("./updateCheck-BHMVBNNI.js"),
|
|
225
|
+
import("./handleAutoUpdate-K73DXUO2.js")
|
|
226
|
+
]);
|
|
227
|
+
const info = await checkForUpdates();
|
|
228
|
+
handleAutoUpdate(info, settings, config.getProjectRoot());
|
|
229
|
+
});
|
|
230
|
+
}
|
|
231
|
+
if (options.connectIde && config.getIdeMode()) {
|
|
232
|
+
runDeferredTask("ide_connect", async () => {
|
|
233
|
+
appEvents.emit("startup-ide-connection-status-changed" /* StartupIdeConnectionStatusChanged */, {
|
|
234
|
+
state: "connecting"
|
|
235
|
+
});
|
|
236
|
+
try {
|
|
237
|
+
const { connectIdeForStartup } = await import("./initializer-O2E3RKOG.js");
|
|
238
|
+
await withTimeout(
|
|
239
|
+
connectIdeForStartup(config),
|
|
240
|
+
"ide_connect",
|
|
241
|
+
DEFERRED_IDE_CONNECT_TIMEOUT_MS,
|
|
242
|
+
disconnectIdeAfterDeferredTimeout
|
|
243
|
+
);
|
|
244
|
+
appEvents.emit("startup-ide-connection-status-changed" /* StartupIdeConnectionStatusChanged */, {
|
|
245
|
+
state: "connected"
|
|
246
|
+
});
|
|
247
|
+
} catch (err) {
|
|
248
|
+
appEvents.emit("startup-ide-connection-status-changed" /* StartupIdeConnectionStatusChanged */, {
|
|
249
|
+
state: "failed",
|
|
250
|
+
message: err instanceof Error ? err.message : String(err)
|
|
251
|
+
});
|
|
252
|
+
throw err;
|
|
253
|
+
}
|
|
254
|
+
});
|
|
255
|
+
}
|
|
256
|
+
if (options.initializeTelemetry) {
|
|
257
|
+
runDeferredTask("telemetry_init", () => {
|
|
258
|
+
initializeTelemetry(config);
|
|
259
|
+
});
|
|
260
|
+
}
|
|
261
|
+
if (config.isInteractive()) {
|
|
262
|
+
runDeferredTask("background_housekeeping", async () => {
|
|
263
|
+
const { startBackgroundHousekeeping } = await import("./scheduler-CTJIZOWI.js");
|
|
264
|
+
startBackgroundHousekeeping(config, settings);
|
|
265
|
+
});
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
__name(startPostRenderPrefetches, "startPostRenderPrefetches");
|
|
269
|
+
|
|
270
|
+
export {
|
|
271
|
+
startEarlyStartupPrefetches,
|
|
272
|
+
startPostRenderPrefetches
|
|
273
|
+
};
|
|
274
|
+
/**
|
|
275
|
+
* @license
|
|
276
|
+
* Copyright 2026 Qwen Team
|
|
277
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
278
|
+
*/
|
|
279
|
+
/**
|
|
280
|
+
* @license
|
|
281
|
+
* Copyright 2026 Qwen Code
|
|
282
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
283
|
+
*/
|
|
@@ -10,6 +10,53 @@ import {
|
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-J2S4EL5Y.js";
|
|
12
12
|
|
|
13
|
+
// packages/core/src/utils/request-tokenizer/textTokenizer.ts
|
|
14
|
+
init_esbuild_shims();
|
|
15
|
+
function estimateTextTokens(text) {
|
|
16
|
+
if (!text || text.length === 0) {
|
|
17
|
+
return 0;
|
|
18
|
+
}
|
|
19
|
+
let asciiChars = 0;
|
|
20
|
+
let nonAsciiChars = 0;
|
|
21
|
+
for (let i = 0; i < text.length; i++) {
|
|
22
|
+
const charCode = text.charCodeAt(i);
|
|
23
|
+
if (charCode < 128) {
|
|
24
|
+
asciiChars++;
|
|
25
|
+
} else {
|
|
26
|
+
nonAsciiChars++;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
const tokens = asciiChars / 4 + nonAsciiChars * 1.1;
|
|
30
|
+
return Math.ceil(tokens);
|
|
31
|
+
}
|
|
32
|
+
__name(estimateTextTokens, "estimateTextTokens");
|
|
33
|
+
var TextTokenizer = class {
|
|
34
|
+
static {
|
|
35
|
+
__name(this, "TextTokenizer");
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Calculate tokens for text content
|
|
39
|
+
*
|
|
40
|
+
* @param text - The text to estimate tokens for
|
|
41
|
+
* @returns The estimated token count
|
|
42
|
+
*/
|
|
43
|
+
async calculateTokens(text) {
|
|
44
|
+
return this.calculateTokensSync(text);
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Calculate tokens for multiple text strings
|
|
48
|
+
*
|
|
49
|
+
* @param texts - Array of text strings to estimate tokens for
|
|
50
|
+
* @returns Array of token counts corresponding to each input text
|
|
51
|
+
*/
|
|
52
|
+
async calculateTokensBatch(texts) {
|
|
53
|
+
return texts.map((text) => this.calculateTokensSync(text));
|
|
54
|
+
}
|
|
55
|
+
calculateTokensSync(text) {
|
|
56
|
+
return estimateTextTokens(text);
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
|
|
13
60
|
// packages/core/src/utils/runtimeDiagnostics.ts
|
|
14
61
|
init_esbuild_shims();
|
|
15
62
|
var RUNTIME_PROFILE_ENV = "QWEN_CODE_PROFILE_RUNTIME";
|
|
@@ -1193,6 +1240,8 @@ function toOpenAPI30(schema) {
|
|
|
1193
1240
|
__name(toOpenAPI30, "toOpenAPI30");
|
|
1194
1241
|
|
|
1195
1242
|
export {
|
|
1243
|
+
estimateTextTokens,
|
|
1244
|
+
TextTokenizer,
|
|
1196
1245
|
safeJsonParse,
|
|
1197
1246
|
convertSchema,
|
|
1198
1247
|
isRuntimeDiagnosticsEnabled,
|
|
@@ -1203,12 +1252,12 @@ export {
|
|
|
1203
1252
|
};
|
|
1204
1253
|
/**
|
|
1205
1254
|
* @license
|
|
1206
|
-
* Copyright
|
|
1255
|
+
* Copyright 2025 Qwen
|
|
1207
1256
|
* SPDX-License-Identifier: Apache-2.0
|
|
1208
1257
|
*/
|
|
1209
1258
|
/**
|
|
1210
1259
|
* @license
|
|
1211
|
-
* Copyright
|
|
1260
|
+
* Copyright 2026 Qwen
|
|
1212
1261
|
* SPDX-License-Identifier: Apache-2.0
|
|
1213
1262
|
*/
|
|
1214
1263
|
/**
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
TaggedThinkingParser,
|
|
6
6
|
getRateLimitErrorDetails,
|
|
7
7
|
openaiRequestCaptureContext
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-2DFYBHN4.js";
|
|
9
9
|
import {
|
|
10
10
|
RequestTokenizer
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-3GPVYALM.js";
|
|
12
12
|
import {
|
|
13
13
|
DASHSCOPE_PROXY_BASE_URL,
|
|
14
14
|
DEFAULT_DASHSCOPE_BASE_URL,
|
|
@@ -20,11 +20,11 @@ import {
|
|
|
20
20
|
parsePositiveIntegerEnvValue,
|
|
21
21
|
resolveRequestTimeout,
|
|
22
22
|
tokenLimit
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-UKV3D7WB.js";
|
|
24
24
|
import {
|
|
25
25
|
runtimeDiagnostics,
|
|
26
26
|
safeJsonParse
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-CCGOFQV3.js";
|
|
28
28
|
import {
|
|
29
29
|
GenerateContentResponse
|
|
30
30
|
} from "./chunk-55ZMG67I.js";
|
|
@@ -8154,6 +8154,33 @@ var StreamInactivityTimeoutError = class extends Error {
|
|
|
8154
8154
|
}
|
|
8155
8155
|
code = "ETIMEDOUT";
|
|
8156
8156
|
};
|
|
8157
|
+
var NON_SSE_BODY_PREFIX_LIMIT = 512;
|
|
8158
|
+
function isSSECompatibleContentType(contentType) {
|
|
8159
|
+
if (!contentType) return true;
|
|
8160
|
+
const mediaType = (contentType.split(";")[0] ?? "").trim().toLowerCase();
|
|
8161
|
+
return mediaType === "text/event-stream" || mediaType === "application/x-ndjson" || mediaType === "application/stream+json";
|
|
8162
|
+
}
|
|
8163
|
+
__name(isSSECompatibleContentType, "isSSECompatibleContentType");
|
|
8164
|
+
var NonSSEResponseError = class extends Error {
|
|
8165
|
+
constructor(contentType, httpStatus, bodyPrefix, requestId) {
|
|
8166
|
+
const preview = bodyPrefix.length > 0 ? ` Body prefix: ${bodyPrefix}` : "";
|
|
8167
|
+
super(
|
|
8168
|
+
`Streaming request received a non-SSE response (HTTP ${httpStatus}, Content-Type: ${contentType || "unknown"}).${preview}`
|
|
8169
|
+
);
|
|
8170
|
+
this.contentType = contentType;
|
|
8171
|
+
this.httpStatus = httpStatus;
|
|
8172
|
+
this.bodyPrefix = bodyPrefix;
|
|
8173
|
+
this.requestId = requestId;
|
|
8174
|
+
this.name = "NonSSEResponseError";
|
|
8175
|
+
this.status = httpStatus;
|
|
8176
|
+
this.request_id = requestId;
|
|
8177
|
+
}
|
|
8178
|
+
static {
|
|
8179
|
+
__name(this, "NonSSEResponseError");
|
|
8180
|
+
}
|
|
8181
|
+
status;
|
|
8182
|
+
request_id;
|
|
8183
|
+
};
|
|
8157
8184
|
function resolveStreamIdleTimeoutMs(config) {
|
|
8158
8185
|
const fromConfig = config.streamIdleTimeoutMs;
|
|
8159
8186
|
if (typeof fromConfig === "number") {
|
|
@@ -8283,9 +8310,41 @@ var ContentGenerationPipeline = class {
|
|
|
8283
8310
|
const perRequestAc = createChildAbortController(parentSignal);
|
|
8284
8311
|
let stream;
|
|
8285
8312
|
try {
|
|
8286
|
-
|
|
8287
|
-
|
|
8288
|
-
|
|
8313
|
+
const createPromise = this.client.chat.completions.create(
|
|
8314
|
+
openaiRequest,
|
|
8315
|
+
{ signal: perRequestAc.signal }
|
|
8316
|
+
);
|
|
8317
|
+
if (typeof createPromise.withResponse === "function") {
|
|
8318
|
+
const {
|
|
8319
|
+
data,
|
|
8320
|
+
response: httpResponse,
|
|
8321
|
+
request_id
|
|
8322
|
+
} = await createPromise.withResponse();
|
|
8323
|
+
stream = data;
|
|
8324
|
+
const contentType = httpResponse.headers.get("content-type") ?? null;
|
|
8325
|
+
if (!isSSECompatibleContentType(contentType)) {
|
|
8326
|
+
let bodyPrefix = "";
|
|
8327
|
+
try {
|
|
8328
|
+
if (httpResponse.body) {
|
|
8329
|
+
const reader = httpResponse.body.getReader();
|
|
8330
|
+
const { value } = await reader.read();
|
|
8331
|
+
reader.releaseLock();
|
|
8332
|
+
if (value) {
|
|
8333
|
+
bodyPrefix = new TextDecoder().decode(value).slice(0, NON_SSE_BODY_PREFIX_LIMIT);
|
|
8334
|
+
}
|
|
8335
|
+
}
|
|
8336
|
+
} catch {
|
|
8337
|
+
}
|
|
8338
|
+
throw new NonSSEResponseError(
|
|
8339
|
+
contentType,
|
|
8340
|
+
httpResponse.status,
|
|
8341
|
+
bodyPrefix,
|
|
8342
|
+
request_id
|
|
8343
|
+
);
|
|
8344
|
+
}
|
|
8345
|
+
} else {
|
|
8346
|
+
stream = await createPromise;
|
|
8347
|
+
}
|
|
8289
8348
|
} catch (e) {
|
|
8290
8349
|
perRequestAc.abort();
|
|
8291
8350
|
throw e;
|
|
@@ -7,14 +7,14 @@ import {
|
|
|
7
7
|
Box_default,
|
|
8
8
|
Text,
|
|
9
9
|
require_jsx_runtime
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-RBXWE376.js";
|
|
11
11
|
import {
|
|
12
12
|
require_react
|
|
13
13
|
} from "./chunk-KYMBIKIW.js";
|
|
14
14
|
import {
|
|
15
15
|
stringWidth,
|
|
16
16
|
toCodePoints
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-SBP3QB6S.js";
|
|
18
18
|
import {
|
|
19
19
|
createDebugLogger
|
|
20
20
|
} from "./chunk-22MNNNXE.js";
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
buildPermissionSettings
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-BIO6D3EL.js";
|
|
6
6
|
import {
|
|
7
7
|
resolveVoiceStreamConfig,
|
|
8
8
|
resolveVoiceTranscriptionConfig,
|
|
9
9
|
transcribeVoiceAudio
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-K6VOOZB4.js";
|
|
11
11
|
import {
|
|
12
12
|
getVoiceSettingsScope,
|
|
13
13
|
isSelectableVoiceModel,
|
|
@@ -16,15 +16,11 @@ import {
|
|
|
16
16
|
readVoiceMode,
|
|
17
17
|
readVoiceModel,
|
|
18
18
|
resolveVoiceTransport
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-O2JNBKLL.js";
|
|
20
20
|
import {
|
|
21
21
|
WorkspacePermissionRulesSessionRequiredError,
|
|
22
22
|
WorkspaceSettingsPartialPersistError
|
|
23
23
|
} from "./chunk-BMFMJINR.js";
|
|
24
|
-
import {
|
|
25
|
-
getPersistScopeForModelSelection,
|
|
26
|
-
loadSettings
|
|
27
|
-
} from "./chunk-7SZJYZPR.js";
|
|
28
24
|
import {
|
|
29
25
|
MCP_RESTART_SERVER_DEADLINE_MS
|
|
30
26
|
} from "./chunk-P7M4GA57.js";
|
|
@@ -36,7 +32,11 @@ import {
|
|
|
36
32
|
WorkspaceInitPathEscapeError,
|
|
37
33
|
WorkspaceInitRaceError,
|
|
38
34
|
WorkspaceInitSymlinkError
|
|
39
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-GGQQA4JW.js";
|
|
36
|
+
import {
|
|
37
|
+
getPersistScopeForModelSelection,
|
|
38
|
+
loadSettings
|
|
39
|
+
} from "./chunk-YWRV5OJX.js";
|
|
40
40
|
import {
|
|
41
41
|
SERVE_CONTROL_EXT_METHODS,
|
|
42
42
|
SERVE_STATUS_EXT_METHODS,
|
|
@@ -49,16 +49,16 @@ import {
|
|
|
49
49
|
createIdleWorkspaceProvidersStatus,
|
|
50
50
|
createIdleWorkspaceSkillsStatus,
|
|
51
51
|
mapDomainErrorToErrorKind
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-ZF7UGIJ2.js";
|
|
53
53
|
import {
|
|
54
54
|
getWorkspaceTrustStatus
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-67JZ37FW.js";
|
|
56
56
|
import {
|
|
57
57
|
writeStderrLine
|
|
58
58
|
} from "./chunk-Y6Z2O3WR.js";
|
|
59
59
|
import {
|
|
60
60
|
ModelsConfig
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-72AW57IS.js";
|
|
62
62
|
import {
|
|
63
63
|
createDebugLogger
|
|
64
64
|
} from "./chunk-22MNNNXE.js";
|