@qwen-code/qwen-code 0.19.6 → 0.19.7
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/model-providers.md +5 -1
- package/bundled/qc-helper/docs/configuration/settings.md +33 -1
- package/bundled/qc-helper/docs/features/channels/_meta.ts +1 -0
- package/bundled/qc-helper/docs/features/channels/overview.md +37 -31
- package/bundled/qc-helper/docs/features/channels/wecom.md +111 -0
- package/bundled/qc-helper/docs/features/code-review.md +16 -6
- package/bundled/qc-helper/docs/features/commands.md +1 -1
- package/bundled/qc-helper/docs/features/hooks.md +6 -0
- package/bundled/qc-helper/docs/features/skills.md +5 -3
- package/bundled/qc-helper/docs/integration-github-action.md +1 -1
- package/bundled/review/DESIGN.md +50 -18
- package/bundled/review/SKILL.md +102 -12
- package/chunks/{MaxSizedBox-SK7CUWZQ.js → MaxSizedBox-XY5LIO5O.js} +31 -29
- package/chunks/{StandaloneSessionPicker-G44HGSAP.js → StandaloneSessionPicker-APISIRJZ.js} +44 -41
- package/chunks/{acpAgent-PKCTYWJV.js → acpAgent-MMOSC2YA.js} +769 -366
- package/chunks/{agent-IYMHUXWB.js → agent-TKIBLLQT.js} +24 -24
- package/chunks/{agent-headless-L2DAW6I5.js → agent-headless-VLX4C7KX.js} +24 -24
- package/chunks/{anthropicContentGenerator-H5ZOEENQ.js → anthropicContentGenerator-AKYPSZIV.js} +7 -7
- package/chunks/{artifact-tool-SLYPWG3C.js → artifact-tool-D233YJFH.js} +27 -8
- package/chunks/{askUserQuestion-OKPTECON.js → askUserQuestion-MKL5ZTMC.js} +2 -2
- package/chunks/{bridge-DF3IJQ5V.js → bridge-BCU73DZO.js} +34 -32
- package/chunks/{channel-worker-supervisor-JUYQ5Z4R.js → channel-worker-supervisor-CRCVYQIE.js} +1 -1
- package/chunks/{chunk-AVQDCKNF.js → chunk-22MNNNXE.js} +4 -0
- package/chunks/{chunk-OAYOHSGP.js → chunk-24XYI5EI.js} +4 -4
- package/chunks/{chunk-6BEOH4KK.js → chunk-2NPS2UDH.js} +767 -122
- package/chunks/chunk-332PWN27.js +19 -0
- package/chunks/{chunk-CLQPBI4H.js → chunk-3B26UVCX.js} +132 -26
- package/chunks/{chunk-G7OQ3RFJ.js → chunk-42XGFRJS.js} +3 -3
- package/chunks/{chunk-SL2P3JUA.js → chunk-43W4YSO6.js} +1 -12
- package/chunks/{chunk-JA5KWZTJ.js → chunk-44NROQYV.js} +5 -3
- package/chunks/{chunk-MOUXUCXQ.js → chunk-4KJ2BPIT.js} +1 -1
- package/chunks/chunk-4O344UEE.js +167 -0
- package/chunks/{chunk-ZO5EA3XJ.js → chunk-4UCTWSTP.js} +1 -1
- package/chunks/{chunk-SOT7OMGL.js → chunk-4ZJIPVPB.js} +2 -2
- package/chunks/{chunk-FPHA7WIZ.js → chunk-65CFHNSE.js} +3 -3
- package/chunks/{chunk-FDY3XOTM.js → chunk-6BN7NZ5Z.js} +4 -4
- package/chunks/{chunk-DBF3HTLT.js → chunk-7JGISHHZ.js} +4 -4
- package/chunks/{chunk-T42ACHFI.js → chunk-7LTB54MK.js} +1 -1
- package/chunks/chunk-A2X3KLC3.js +3807 -0
- package/chunks/{chunk-HCFSKO6K.js → chunk-ADZG46HR.js} +1 -1
- package/chunks/{chunk-MX7CTJHR.js → chunk-AFOLR6YL.js} +9 -9
- package/chunks/{chunk-EWALXUAD.js → chunk-AGHU5VRK.js} +8 -0
- package/chunks/{chunk-GLPV75ES.js → chunk-AHNJGLFV.js} +2 -2
- package/chunks/{chunk-QOKV6AO4.js → chunk-AIY5UTFI.js} +184 -147
- package/chunks/{chunk-57NRQM3P.js → chunk-AJBEAUIS.js} +2 -2
- package/chunks/chunk-ALZ75L2X.js +949 -0
- package/chunks/{chunk-T22H4V4R.js → chunk-B34OV7K2.js} +1 -1
- package/chunks/{chunk-GQBRGBLS.js → chunk-B4U2M63D.js} +9 -9
- package/chunks/{chunk-UTL7KABL.js → chunk-BWVQN2HV.js} +7 -7
- package/chunks/{chunk-YPCPZSZB.js → chunk-CCGOFQV3.js} +56 -4
- package/chunks/{chunk-BOAWGUY6.js → chunk-CISB3IQF.js} +121 -49
- package/chunks/{chunk-SRNPMG7J.js → chunk-CNSF3WO5.js} +16 -10
- package/chunks/{chunk-LWGLBVWA.js → chunk-CSOTA7KX.js} +1 -1
- package/chunks/{chunk-YSU33ACT.js → chunk-DGHJTO2K.js} +5 -13
- package/chunks/{chunk-NIOPRZNN.js → chunk-E7KNELIZ.js} +1 -1
- package/chunks/{chunk-SEZC2725.js → chunk-ER3BKOLB.js} +13 -0
- package/chunks/{chunk-3VJ7MT3N.js → chunk-EXPMGZZV.js} +14 -3
- package/chunks/{chunk-RZORUN6X.js → chunk-FEJ2FZ3U.js} +1 -1
- package/chunks/{chunk-OIFSBXSP.js → chunk-FRFFNYUY.js} +3 -3
- package/chunks/{chunk-MHQKYQDS.js → chunk-FTFXDZYI.js} +158 -3
- package/chunks/{chunk-DMSNJDWG.js → chunk-FV7425LN.js} +38 -3
- package/chunks/{chunk-ALX6BUYW.js → chunk-G7ZG7CA6.js} +186 -27
- package/chunks/chunk-GD236YPV.js +28 -0
- package/chunks/{chunk-XH7H6YG4.js → chunk-GL5TV7B5.js} +4 -107
- package/chunks/{chunk-JN2VJ33O.js → chunk-GMOWQOQQ.js} +966 -121
- package/chunks/{chunk-D5KISTLW.js → chunk-H6EMK6QK.js} +1 -1
- package/chunks/{chunk-MBWLP5OT.js → chunk-HJ3GX3Y3.js} +162 -40
- package/chunks/{chunk-KYTQOCDE.js → chunk-HW4N45EE.js} +17 -46
- package/chunks/{chunk-DXXNMPJH.js → chunk-I4A4K72C.js} +460 -93
- package/chunks/{chunk-VXGPYF7U.js → chunk-IFEWJXFS.js} +1 -1
- package/chunks/chunk-II73RK2S.js +158 -0
- package/chunks/{chunk-TENOUWY2.js → chunk-IJRL2S3D.js} +3 -3
- package/chunks/{chunk-C2QKQZEQ.js → chunk-IUE7YWC3.js} +3 -3
- package/chunks/{chunk-3UC7ZC43.js → chunk-JD33UY7E.js} +7 -7
- package/chunks/{chunk-7Z6UEJA4.js → chunk-JF7DFPQ5.js} +5 -2
- package/chunks/{chunk-IUSKVKH5.js → chunk-LEIJKM7Q.js} +1 -1
- package/chunks/chunk-LGFAYIKX.js +115 -0
- package/chunks/{chunk-N2IJLN2L.js → chunk-ME3YSROJ.js} +13 -5
- package/chunks/{chunk-V6NH3CUC.js → chunk-MIG5SQNL.js} +3 -3
- package/chunks/{chunk-MJKEQSZI.js → chunk-MJI36HER.js} +1 -1
- package/chunks/{chunk-YHTNWGRR.js → chunk-MZ7BABX3.js} +1 -1
- package/chunks/{chunk-B236XPGF.js → chunk-NQKLOAVJ.js} +29 -2
- package/chunks/{chunk-3X76L4UF.js → chunk-NZEGNV4V.js} +5 -5
- package/chunks/{chunk-O2RJARYU.js → chunk-OWVIH4HY.js} +1409 -4088
- package/chunks/{chunk-YTWX5TT2.js → chunk-P7I3D7FM.js} +1 -1
- package/chunks/{chunk-HTWHAN44.js → chunk-PC4ZXHU2.js} +1 -1
- package/chunks/chunk-PRDFOIZF.js +2477 -0
- package/chunks/{chunk-UNXGEDX2.js → chunk-PUQLHSQ2.js} +133 -25
- package/chunks/{chunk-5WQF27GW.js → chunk-Q6OEPOOC.js} +1 -1
- package/chunks/{chunk-6QVRLKTZ.js → chunk-QAKFYMJI.js} +7 -7
- package/chunks/{chunk-NPQWQYU6.js → chunk-QYNNN7BK.js} +1 -1
- package/chunks/{chunk-2INJBYLJ.js → chunk-QZF5U5KA.js} +6 -6
- package/chunks/{chunk-N4YJQTRL.js → chunk-RFIL6REB.js} +71 -2
- package/chunks/{chunk-FZ5NVRVK.js → chunk-RYFZCUJO.js} +3 -3
- package/chunks/{chunk-KSPVDFE4.js → chunk-SAIILPQ3.js} +0 -3
- package/chunks/chunk-SD4N3QJ2.js +262 -0
- package/chunks/{chunk-CEYA7K7C.js → chunk-STAZRKOT.js} +62 -12
- package/chunks/{chunk-BZHLWC6T.js → chunk-SUAKHHK7.js} +2 -2
- package/chunks/{chunk-ZI4MGBB5.js → chunk-TBAZMRW3.js} +1 -1
- package/chunks/{chunk-J6ABRKAB.js → chunk-TDGF35EN.js} +2 -2
- package/chunks/{chunk-TOAUDIS7.js → chunk-TLWA7TPR.js} +6 -2
- package/chunks/{chunk-LXFCHX4X.js → chunk-U4FRHCLA.js} +312 -25
- package/chunks/chunk-UIDXQNMV.js +13 -0
- package/chunks/{chunk-LM3YCCZJ.js → chunk-VEB3NYSO.js} +1 -1
- package/chunks/chunk-VQWAZSXN.js +8223 -0
- package/chunks/{chunk-5ES5YPED.js → chunk-VZ7HY3YU.js} +1 -1
- package/chunks/{chunk-QOMAHFYI.js → chunk-W7EEOR7D.js} +3 -3
- package/chunks/{chunk-NVFJSIAX.js → chunk-WMPVYQ4P.js} +1 -1
- package/chunks/{chunk-V5VTULL5.js → chunk-X265R5C6.js} +3 -3
- package/chunks/{chunk-LKWAVAB5.js → chunk-X2XNQQJI.js} +2 -2
- package/chunks/{chunk-MJKMIQMK.js → chunk-X3YGAX7V.js} +1 -1
- package/chunks/{chunk-OBVBTAX5.js → chunk-XISQIIT7.js} +2 -2
- package/chunks/{chunk-NUK2PFSU.js → chunk-XPJH4PKR.js} +1 -1
- package/chunks/{chunk-A34EPIUV.js → chunk-XSAFNANZ.js} +18 -15
- package/chunks/{chunk-WXUDZHOJ.js → chunk-YDSYD7UI.js} +10 -2
- package/chunks/{chunk-AGZF43UV.js → chunk-YEGT55NW.js} +7153 -4406
- package/chunks/{computer-use-5S3NVXRA.js → computer-use-X4KUU3NM.js} +24 -24
- package/chunks/{contextCommand-DPBALZFK.js → contextCommand-LAYJZF7H.js} +28 -27
- package/chunks/{cron-create-7JYUDTUY.js → cron-create-JSXEIPVS.js} +4 -4
- package/chunks/{cron-delete-YPULQQAK.js → cron-delete-OIFVEPGU.js} +4 -4
- package/chunks/{cron-list-HJIW5MHP.js → cron-list-D4ZX4IOE.js} +11 -7
- package/chunks/{daemon-7XYW4BC3.js → daemon-F3I2RXP6.js} +208 -63
- package/chunks/daemon-status-provider-XSAFKVDS.js +74 -0
- package/chunks/dist-573HNSVO.js +3217 -0
- package/chunks/{dist-ABQ7VWRR.js → dist-FQ5WRJPL.js} +2 -2
- package/chunks/{dist-JPSVN367.js → dist-IMFFBMAT.js} +6 -3792
- package/chunks/{dist-BV56HW3W.js → dist-OT7G2WNM.js} +250 -1
- package/chunks/{dist-AW5ZYMUI.js → dist-PKFTNUHO.js} +10 -11
- package/chunks/{dist-AAO65DPC.js → dist-YTRKAVUB.js} +1 -1
- package/chunks/{earlyInputCapture-GGPV4IFT.js → earlyInputCapture-AERYYGXE.js} +25 -25
- package/chunks/{edit-HJ7ISN4C.js → edit-WZTZDGCI.js} +25 -25
- package/chunks/{en-XR3S5VWY.js → en-GA2RMXY5.js} +6 -1
- package/chunks/{enter-worktree-2BQT675D.js → enter-worktree-DEPXBJEL.js} +24 -24
- package/chunks/{enterPlanMode-SJXHJ3WD.js → enterPlanMode-JFGXZHHJ.js} +24 -24
- package/chunks/{errors-EVGER4AZ.js → errors-GMZL4QV7.js} +26 -26
- package/chunks/{exit-worktree-RPDDOSPM.js → exit-worktree-Y7XBK3VV.js} +24 -24
- package/chunks/{exitPlanMode-BQEROAJ7.js → exitPlanMode-WQQER65F.js} +24 -24
- package/chunks/{fast-path-FX2ICJ2O.js → fast-path-W2U6XDNO.js} +5 -2
- package/chunks/{fr-MBMNQSQ6.js → fr-GWNQG4XH.js} +4 -0
- package/chunks/{gemini-EHUXCOUI.js → gemini-T4WX6SRW.js} +444 -256
- package/chunks/{geminiContentGenerator-YDUUKAM2.js → geminiContentGenerator-MKQACXEJ.js} +4 -4
- package/chunks/{glob-3VIGV2DL.js → glob-4KKSHZDF.js} +52 -28
- package/chunks/{grep-4D3S4NUC.js → grep-GHRYXSLZ.js} +24 -24
- package/chunks/handleAutoUpdate-HN7ZOSXY.js +65 -0
- package/chunks/{initializer-QZTZSSLW.js → initializer-SRN3IM42.js} +31 -29
- package/chunks/{ja-HFV5QCHR.js → ja-2HOTA47X.js} +4 -0
- package/chunks/{keychain-token-storage-GPAKRDKQ.js → keychain-token-storage-UJV5XP4Z.js} +2 -2
- package/chunks/{list-WQ24EAMK.js → list-INTVXUPA.js} +30 -30
- package/chunks/{loadedSettingsAdapter-XV74KOSR.js → loadedSettingsAdapter-QVHHQPGM.js} +28 -28
- package/chunks/{loop-wakeup-34YK7T7O.js → loop-wakeup-OHWEMFP5.js} +5 -5
- package/chunks/{ls-MPD5OJUX.js → ls-L654WOAT.js} +4 -4
- package/chunks/{lsp-72PWTDW7.js → lsp-M35KE54Y.js} +2 -2
- package/chunks/{mcp-CO3MKM7N.js → mcp-7V4T46RG.js} +28 -28
- package/chunks/{monitor-GB56T65A.js → monitor-464OY2UE.js} +32 -27
- package/chunks/nonInteractiveCli-LJEEODU2.js +116 -0
- package/chunks/{notebook-edit-VMXAAE3R.js → notebook-edit-BLJYCNDO.js} +25 -25
- package/chunks/{openaiContentGenerator-GM77FLII.js → openaiContentGenerator-PFF6HYB2.js} +12 -12
- package/chunks/{pidfile-HFXSHR64.js → pidfile-LIBUENIV.js} +25 -25
- package/chunks/{qwenContentGenerator-QSCXQIKJ.js → qwenContentGenerator-SUUHZ6CR.js} +26 -26
- package/chunks/{qwenOAuth2-LWLA6MQG.js → qwenOAuth2-ZV7YLMND.js} +5 -5
- package/chunks/{read-file-SVH6CGQY.js → read-file-L7TBQVX7.js} +8 -8
- package/chunks/{read-mcp-resource-OWOBJY72.js → read-mcp-resource-CNQHBSJM.js} +2 -2
- package/chunks/{record-artifact-URK3YUDJ.js → record-artifact-PP3LKHTS.js} +2 -2
- package/chunks/{ripGrep-JD5O2FLX.js → ripGrep-CKKX3GRB.js} +24 -24
- package/chunks/{run-qwen-serve-FADLRJUN.js → run-qwen-serve-5OKADVLE.js} +785 -35
- package/chunks/{scheduler-Q65SB7DJ.js → scheduler-ZRW3AIDU.js} +24 -24
- package/chunks/{send-message-L7OLQEKH.js → send-message-OA6MV4EU.js} +3 -3
- package/chunks/{serve-6ZXAMQ4M.js → serve-36WS32W6.js} +29 -29
- package/chunks/{server-WKDQA6XR.js → server-M372UENX.js} +2504 -439
- package/chunks/{session-STWOX7RA.js → session-F5KSNP2N.js} +66 -61
- package/chunks/{settings-LC4CCWQQ.js → settings-WFLNS3WT.js} +27 -27
- package/chunks/{shell-FEG3RLPW.js → shell-DEDSWN56.js} +24 -24
- package/chunks/{skill-XTXAMDAP.js → skill-A2TL2NPC.js} +24 -12
- package/chunks/{spawnChannel-B6JJPBPV.js → spawnChannel-RQHUWTCL.js} +27 -27
- package/chunks/{src-HITDGVRM.js → src-XKZMNHXS.js} +91 -36
- package/chunks/{startInteractiveUI-IT423PW4.js → startInteractiveUI-REKSTOHU.js} +6213 -14273
- package/chunks/{syntheticOutput-J3MLCQAR.js → syntheticOutput-F7LSDCAR.js} +3 -3
- package/chunks/{task-create-ELEBZ7H2.js → task-create-RPFZNB4B.js} +7 -7
- package/chunks/{task-list-IEUZLF3Y.js → task-list-TGGJX7EA.js} +5 -5
- package/chunks/{task-stop-QEZW3UDY.js → task-stop-W7NGTMYQ.js} +2 -2
- package/chunks/{task-update-DW36J5P5.js → task-update-5WUG5MVQ.js} +7 -7
- package/chunks/{team-create-DAG6SNHZ.js → team-create-TBQVWAG7.js} +24 -24
- package/chunks/{team-delete-SVITIMBO.js → team-delete-UHQQ2QQX.js} +5 -5
- package/chunks/{team-plan-approval-DRDY5OPC.js → team-plan-approval-FZPGUSHJ.js} +24 -24
- package/chunks/{theme-manager-N67EZC6B.js → theme-manager-DQZVNSOC.js} +25 -25
- package/chunks/{todoWrite-SFFQHZYY.js → todoWrite-C4ZAMSR3.js} +4 -4
- package/chunks/{tool-search-CMDJ5HGM.js → tool-search-FDQ3SLNJ.js} +11 -28
- package/chunks/{trustedFolders-JD4QX6UJ.js → trustedFolders-Z475EIHL.js} +25 -25
- package/chunks/updateCheck-E2ZX7RL7.js +65 -0
- package/chunks/{validateNonInterActiveAuth-ADDCGZ6A.js → validateNonInterActiveAuth-O4ECBHQL.js} +61 -56
- package/chunks/{version-VAONYVE5.js → version-CEDD6ZZR.js} +2 -1
- package/chunks/{web-fetch-SXAXJHIO.js → web-fetch-UYGMOHW4.js} +5 -5
- package/chunks/{workflow-DG2BR42M.js → workflow-CQQ4J4I6.js} +25 -25
- package/chunks/{workspace-providers-status-XGW5OZTD.js → workspace-providers-status-MVYXMYDG.js} +30 -30
- package/chunks/{workspace-service-GX3GGZLU.js → workspace-service-OMBR6ZLG.js} +35 -35
- package/chunks/{workspace-skills-status-LFK5WV2V.js → workspace-skills-status-IMMQ7CAY.js} +29 -29
- package/chunks/{write-file-UR7FXWOU.js → write-file-VWGY7AJP.js} +25 -25
- package/chunks/{zh-FSVJTXA4.js → zh-7XVVRTDH.js} +6 -1
- package/chunks/{zh-TW-66MG4LWL.js → zh-TW-DPH554OG.js} +6 -1
- package/cli.js +19 -11
- package/locales/en.js +9 -2
- package/locales/fr.js +6 -0
- package/locales/ja.js +6 -0
- package/locales/zh-TW.js +9 -2
- package/locales/zh.js +9 -2
- package/node_modules/@qwen-code/audio-capture/package.json +1 -1
- package/node_modules/@qwen-code/audio-capture/prebuilds/darwin-arm64/@qwen-code+audio-capture.node +0 -0
- package/node_modules/@qwen-code/audio-capture/prebuilds/darwin-x64/@qwen-code+audio-capture.node +0 -0
- package/node_modules/@qwen-code/audio-capture/prebuilds/win32-x64/@qwen-code+audio-capture.node +0 -0
- package/package.json +3 -3
- package/web-shell/assets/{arc-CUpe0ibu.js → arc-C7hjaa7g.js} +1 -1
- package/web-shell/assets/{architectureDiagram-3BPJPVTR-JvyrY_mK.js → architectureDiagram-3BPJPVTR-pm9KtMZY.js} +1 -1
- package/web-shell/assets/{blockDiagram-GPEHLZMM-CK3Y_vom.js → blockDiagram-GPEHLZMM-CApElKsU.js} +1 -1
- package/web-shell/assets/{c4Diagram-AAUBKEIU-DprSnyrf.js → c4Diagram-AAUBKEIU-BeDe0-9N.js} +1 -1
- package/web-shell/assets/channel-BNf1dW-j.js +1 -0
- package/web-shell/assets/{chunk-2J33WTMH-DJtRJPmu.js → chunk-2J33WTMH-DJEkmLdl.js} +1 -1
- package/web-shell/assets/{chunk-4BX2VUAB-ON6Q2-BG.js → chunk-4BX2VUAB-DXX8gdpe.js} +1 -1
- package/web-shell/assets/{chunk-55IACEB6-c60ou5HZ.js → chunk-55IACEB6-DORmk1kQ.js} +1 -1
- package/web-shell/assets/{chunk-727SXJPM-BamtPKxx.js → chunk-727SXJPM-DWmO4mCZ.js} +1 -1
- package/web-shell/assets/{chunk-AQP2D5EJ-CsVgpu-T.js → chunk-AQP2D5EJ-C7LRaYw2.js} +1 -1
- package/web-shell/assets/{chunk-FMBD7UC4-vZrpjAx4.js → chunk-FMBD7UC4-CCdXgyC5.js} +1 -1
- package/web-shell/assets/{chunk-ND2GUHAM-qxyNOd5t.js → chunk-ND2GUHAM-SyL_xvWc.js} +1 -1
- package/web-shell/assets/{chunk-QZHKN3VN-BvTJSM_S.js → chunk-QZHKN3VN-BzOuCKxa.js} +1 -1
- package/web-shell/assets/classDiagram-4FO5ZUOK-uOIGlzgi.js +1 -0
- package/web-shell/assets/classDiagram-v2-Q7XG4LA2-uOIGlzgi.js +1 -0
- package/web-shell/assets/{cose-bilkent-S5V4N54A-1tXB4pju.js → cose-bilkent-S5V4N54A-BMPWyDKc.js} +1 -1
- package/web-shell/assets/{dagre-BM42HDAG-DglBzme8.js → dagre-BM42HDAG-B_GnPWik.js} +1 -1
- package/web-shell/assets/{diagram-2AECGRRQ-DEJpqsWz.js → diagram-2AECGRRQ-fJqMc3S_.js} +1 -1
- package/web-shell/assets/{diagram-5GNKFQAL-CsQ1NrMG.js → diagram-5GNKFQAL-ximV3O9D.js} +1 -1
- package/web-shell/assets/{diagram-KO2AKTUF-Z-3codAi.js → diagram-KO2AKTUF-2vVyjzqw.js} +1 -1
- package/web-shell/assets/{diagram-LMA3HP47-mBuPTA2i.js → diagram-LMA3HP47-Dckcx1sT.js} +1 -1
- package/web-shell/assets/{diagram-OG6HWLK6-tcA3K3s9.js → diagram-OG6HWLK6-BAVv47ga.js} +1 -1
- package/web-shell/assets/{erDiagram-TEJ5UH35-D9bXFRyZ.js → erDiagram-TEJ5UH35-Bn3nf5J0.js} +1 -1
- package/web-shell/assets/{flowDiagram-I6XJVG4X-Ck0Py04s.js → flowDiagram-I6XJVG4X-BIbGF9JT.js} +1 -1
- package/web-shell/assets/{ganttDiagram-6RSMTGT7-rOevCekE.js → ganttDiagram-6RSMTGT7-CDbhb3AH.js} +1 -1
- package/web-shell/assets/{gitGraphDiagram-PVQCEYII-CoPQaLj0.js → gitGraphDiagram-PVQCEYII-CbKG1a_w.js} +1 -1
- package/web-shell/assets/index-CnE2ur2L.js +779 -0
- package/web-shell/assets/index-hSKXrlSE.css +5 -0
- package/web-shell/assets/{infoDiagram-5YYISTIA-a77CUKoI.js → infoDiagram-5YYISTIA-DUFxTy8m.js} +1 -1
- package/web-shell/assets/{ishikawaDiagram-YF4QCWOH-DlLgUAO-.js → ishikawaDiagram-YF4QCWOH-D69hrBG8.js} +1 -1
- package/web-shell/assets/{journeyDiagram-JHISSGLW-BXR5kVAZ.js → journeyDiagram-JHISSGLW-DsvEw51Y.js} +1 -1
- package/web-shell/assets/{kanban-definition-UN3LZRKU-h5CoHZg7.js → kanban-definition-UN3LZRKU-lFFjZEYd.js} +1 -1
- package/web-shell/assets/{linear-BkaREbyD.js → linear-Bo5bWzvo.js} +1 -1
- package/web-shell/assets/{mermaid.core-Bkagz0ng.js → mermaid.core-C_HKMJx5.js} +5 -5
- package/web-shell/assets/{mindmap-definition-RKZ34NQL-D7EMKR_5.js → mindmap-definition-RKZ34NQL-DlV-NUTs.js} +1 -1
- package/web-shell/assets/{pieDiagram-4H26LBE5-DAmPOjsL.js → pieDiagram-4H26LBE5-B2e6FH2a.js} +1 -1
- package/web-shell/assets/{quadrantDiagram-W4KKPZXB-e4WFQkQu.js → quadrantDiagram-W4KKPZXB-D75kSk-b.js} +1 -1
- package/web-shell/assets/{requirementDiagram-4Y6WPE33-v1zo7OiV.js → requirementDiagram-4Y6WPE33-CQ6xakhM.js} +1 -1
- package/web-shell/assets/{sankeyDiagram-5OEKKPKP-Bstm4aW_.js → sankeyDiagram-5OEKKPKP-J_XTKrcY.js} +1 -1
- package/web-shell/assets/{sequenceDiagram-3UESZ5HK-DzcZy6xN.js → sequenceDiagram-3UESZ5HK-D7jTcBtf.js} +1 -1
- package/web-shell/assets/{stateDiagram-AJRCARHV-BEJH6YbH.js → stateDiagram-AJRCARHV-CrlM_OT3.js} +1 -1
- package/web-shell/assets/stateDiagram-v2-BHNVJYJU-Bs4TK_84.js +1 -0
- package/web-shell/assets/{timeline-definition-PNZ67QCA-TI1wH-Pm.js → timeline-definition-PNZ67QCA-5oZi76Ef.js} +1 -1
- package/web-shell/assets/{vennDiagram-CIIHVFJN-YaH8VDMS.js → vennDiagram-CIIHVFJN-DO5YptPK.js} +1 -1
- package/web-shell/assets/{wardley-L42UT6IY-B80co7OP.js → wardley-L42UT6IY-4t1eJDvM.js} +1 -1
- package/web-shell/assets/{wardleyDiagram-YWT4CUSO-4fHNDEMl.js → wardleyDiagram-YWT4CUSO-DKZc661S.js} +1 -1
- package/web-shell/assets/{xychartDiagram-2RQKCTM6-DT3q4Z3J.js → xychartDiagram-2RQKCTM6-su9hp08G.js} +1 -1
- package/web-shell/index.html +2 -2
- package/chunks/chunk-L7QPM2YD.js +0 -481
- package/chunks/daemon-status-provider-2EWTHT7Y.js +0 -73
- package/chunks/nonInteractiveCli-HNZRIM5I.js +0 -111
- package/web-shell/assets/channel-BAxQ2-aZ.js +0 -1
- package/web-shell/assets/classDiagram-4FO5ZUOK-Cvd_xhZI.js +0 -1
- package/web-shell/assets/classDiagram-v2-Q7XG4LA2-Cvd_xhZI.js +0 -1
- package/web-shell/assets/index-Cr7MYW6T.css +0 -5
- package/web-shell/assets/index-DCHPAUp3.js +0 -730
- package/web-shell/assets/stateDiagram-v2-BHNVJYJU-BopifCBI.js +0 -1
|
@@ -2,34 +2,36 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
handleAtCommand,
|
|
5
|
-
resolveAtCommandQuery
|
|
6
|
-
|
|
5
|
+
resolveAtCommandQuery,
|
|
6
|
+
sanitizeDisplayText
|
|
7
|
+
} from "./chunk-PUQLHSQ2.js";
|
|
7
8
|
import {
|
|
8
9
|
isAtCommand,
|
|
9
10
|
isBtwCommand,
|
|
10
11
|
isSlashCommand,
|
|
11
12
|
normalizePartList,
|
|
12
13
|
recordGoalStatusItem
|
|
13
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-OWVIH4HY.js";
|
|
14
15
|
import {
|
|
15
16
|
SHELL_COMMAND_NAME,
|
|
17
|
+
fitPendingSlice,
|
|
16
18
|
useSessionStats
|
|
17
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-FTFXDZYI.js";
|
|
18
20
|
import {
|
|
19
21
|
require_react
|
|
20
22
|
} from "./chunk-KYMBIKIW.js";
|
|
21
23
|
import {
|
|
22
24
|
themeManager
|
|
23
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-PC4ZXHU2.js";
|
|
24
26
|
import {
|
|
25
27
|
formatMemoryUsage
|
|
26
28
|
} from "./chunk-KHDZHZMH.js";
|
|
27
29
|
import {
|
|
28
30
|
isInlineModelOverrideAllowed
|
|
29
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-4ZJIPVPB.js";
|
|
30
32
|
import {
|
|
31
33
|
t
|
|
32
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-QAKFYMJI.js";
|
|
33
35
|
import {
|
|
34
36
|
AutonomousLoopTickResolver,
|
|
35
37
|
CoreToolScheduler,
|
|
@@ -51,7 +53,7 @@ import {
|
|
|
51
53
|
setActiveGoal,
|
|
52
54
|
shouldRunVisionBridge,
|
|
53
55
|
splitImageParts
|
|
54
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-YEGT55NW.js";
|
|
55
57
|
import {
|
|
56
58
|
ApiCancelEvent,
|
|
57
59
|
ConversationFinishedEvent,
|
|
@@ -61,17 +63,17 @@ import {
|
|
|
61
63
|
logConversationFinishedEvent,
|
|
62
64
|
logUserPrompt,
|
|
63
65
|
logUserRetry
|
|
64
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-GMOWQOQQ.js";
|
|
65
67
|
import {
|
|
66
68
|
isAnyAutoMemPath
|
|
67
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-4KJ2BPIT.js";
|
|
68
70
|
import {
|
|
69
71
|
ToolNames
|
|
70
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-X3YGAX7V.js";
|
|
71
73
|
import {
|
|
72
74
|
getUnsupportedImageFormatWarning,
|
|
73
75
|
isSupportedImageMimeType
|
|
74
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-HW4N45EE.js";
|
|
75
77
|
import {
|
|
76
78
|
FinishReason
|
|
77
79
|
} from "./chunk-55ZMG67I.js";
|
|
@@ -80,7 +82,7 @@ import {
|
|
|
80
82
|
createDebugLogger,
|
|
81
83
|
getErrorMessage,
|
|
82
84
|
isNodeError
|
|
83
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-22MNNNXE.js";
|
|
84
86
|
import {
|
|
85
87
|
init_esbuild_shims
|
|
86
88
|
} from "./chunk-A4BMJM77.js";
|
|
@@ -417,39 +419,61 @@ ${finalOutput}`;
|
|
|
417
419
|
|
|
418
420
|
// packages/cli/src/ui/utils/markdownUtilities.ts
|
|
419
421
|
init_esbuild_shims();
|
|
422
|
+
var findNextFence = /* @__PURE__ */ __name((content, from) => {
|
|
423
|
+
const backtick = content.indexOf("```", from);
|
|
424
|
+
const tilde = content.indexOf("~~~", from);
|
|
425
|
+
if (backtick === -1 && tilde === -1) return null;
|
|
426
|
+
let index;
|
|
427
|
+
let char;
|
|
428
|
+
if (tilde === -1 || backtick !== -1 && backtick < tilde) {
|
|
429
|
+
index = backtick;
|
|
430
|
+
char = "`";
|
|
431
|
+
} else {
|
|
432
|
+
index = tilde;
|
|
433
|
+
char = "~";
|
|
434
|
+
}
|
|
435
|
+
let length = 0;
|
|
436
|
+
while (content[index + length] === char) length++;
|
|
437
|
+
return { index, char, length };
|
|
438
|
+
}, "findNextFence");
|
|
420
439
|
var isIndexInsideCodeBlock = /* @__PURE__ */ __name((content, indexToTest) => {
|
|
421
|
-
let
|
|
440
|
+
let openChar = "";
|
|
441
|
+
let openLen = 0;
|
|
422
442
|
let searchPos = 0;
|
|
423
443
|
while (searchPos < content.length) {
|
|
424
|
-
const
|
|
425
|
-
if (
|
|
426
|
-
|
|
444
|
+
const fence = findNextFence(content, searchPos);
|
|
445
|
+
if (!fence || fence.index >= indexToTest) break;
|
|
446
|
+
if (openChar === "") {
|
|
447
|
+
openChar = fence.char;
|
|
448
|
+
openLen = fence.length;
|
|
449
|
+
} else if (fence.char === openChar && fence.length >= openLen) {
|
|
450
|
+
openChar = "";
|
|
451
|
+
openLen = 0;
|
|
427
452
|
}
|
|
428
|
-
|
|
429
|
-
searchPos = nextFence + 3;
|
|
453
|
+
searchPos = fence.index + fence.length;
|
|
430
454
|
}
|
|
431
|
-
return
|
|
455
|
+
return openChar !== "";
|
|
432
456
|
}, "isIndexInsideCodeBlock");
|
|
433
457
|
var findEnclosingCodeBlockStart = /* @__PURE__ */ __name((content, index) => {
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
let
|
|
438
|
-
while (
|
|
439
|
-
const
|
|
440
|
-
if (
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
458
|
+
let openChar = "";
|
|
459
|
+
let openLen = 0;
|
|
460
|
+
let openIndex = -1;
|
|
461
|
+
let searchPos = 0;
|
|
462
|
+
while (searchPos < content.length) {
|
|
463
|
+
const fence = findNextFence(content, searchPos);
|
|
464
|
+
if (!fence || fence.index >= index) break;
|
|
465
|
+
if (openChar === "") {
|
|
466
|
+
openChar = fence.char;
|
|
467
|
+
openLen = fence.length;
|
|
468
|
+
openIndex = fence.index;
|
|
469
|
+
} else if (fence.char === openChar && fence.length >= openLen) {
|
|
470
|
+
openChar = "";
|
|
471
|
+
openLen = 0;
|
|
472
|
+
openIndex = -1;
|
|
448
473
|
}
|
|
449
|
-
|
|
450
|
-
currentSearchPos = blockEndIndex + 3;
|
|
474
|
+
searchPos = fence.index + fence.length;
|
|
451
475
|
}
|
|
452
|
-
return -1;
|
|
476
|
+
return openChar !== "" ? openIndex : -1;
|
|
453
477
|
}, "findEnclosingCodeBlockStart");
|
|
454
478
|
var findLastSafeSplitPoint = /* @__PURE__ */ __name((content, idealMaxLength) => {
|
|
455
479
|
const hasLengthCap = idealMaxLength !== void 0;
|
|
@@ -899,6 +923,8 @@ var EDIT_TOOL_NAMES = /* @__PURE__ */ new Set([
|
|
|
899
923
|
]);
|
|
900
924
|
var STREAM_UPDATE_THROTTLE_MS = 60;
|
|
901
925
|
var STREAM_PENDING_ITEM_MAX_CHARS = 16384;
|
|
926
|
+
var STREAM_PENDING_COMMIT_RESERVE_ROWS = 5;
|
|
927
|
+
var STREAM_PENDING_COMPOSER_RESERVE_ROWS = 12;
|
|
902
928
|
var LOADING_THOUGHT_DESCRIPTION_MAX_CHARS = 4096;
|
|
903
929
|
function showCitations(settings) {
|
|
904
930
|
const enabled = settings?.merged?.ui?.showCitations;
|
|
@@ -915,7 +941,19 @@ function clampLoadingThoughtDescription(description) {
|
|
|
915
941
|
return description.slice(0, LOADING_THOUGHT_DESCRIPTION_MAX_CHARS);
|
|
916
942
|
}
|
|
917
943
|
__name(clampLoadingThoughtDescription, "clampLoadingThoughtDescription");
|
|
918
|
-
|
|
944
|
+
function charIndexAfterLine(text, keptLines) {
|
|
945
|
+
if (keptLines <= 0) return -1;
|
|
946
|
+
let count = 0;
|
|
947
|
+
for (let i = 0; i < text.length; i++) {
|
|
948
|
+
if (text[i] === "\n") {
|
|
949
|
+
count++;
|
|
950
|
+
if (count === keptLines) return i + 1;
|
|
951
|
+
}
|
|
952
|
+
}
|
|
953
|
+
return -1;
|
|
954
|
+
}
|
|
955
|
+
__name(charIndexAfterLine, "charIndexAfterLine");
|
|
956
|
+
var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, config, isConfigInitialized, settings, onDebugMessage, handleSlashCommand, shellModeActive, getPreferredEditor, onAuthError, performMemoryRefresh, modelSwitchedFromQuotaError, setModelSwitchedFromQuotaError, onEditorClose, onCancelSubmit, setShellInputFocused, terminalWidth, terminalHeight, midTurnDrainRef, logger, availableTerminalHeightRef, terminalWidthRef) => {
|
|
919
957
|
const [initError, setInitError] = (0, import_react5.useState)(null);
|
|
920
958
|
const abortControllerRef = (0, import_react5.useRef)(null);
|
|
921
959
|
const flushBufferedStreamEventsRef = (0, import_react5.useRef)(/* @__PURE__ */ new Set());
|
|
@@ -1411,6 +1449,54 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
|
|
|
1411
1449
|
nextPendingType = "gemini_content";
|
|
1412
1450
|
newGeminiMessageBuffer = afterText;
|
|
1413
1451
|
}
|
|
1452
|
+
const viewportRows = (availableTerminalHeightRef?.current ?? 0) > 0 ? availableTerminalHeightRef.current : Math.max(4, terminalHeight - STREAM_PENDING_COMPOSER_RESERVE_ROWS);
|
|
1453
|
+
const commitWidth = (terminalWidthRef?.current ?? 0) > 0 ? terminalWidthRef.current : terminalWidth;
|
|
1454
|
+
const commitRowBudget = Math.max(
|
|
1455
|
+
4,
|
|
1456
|
+
viewportRows - STREAM_PENDING_COMMIT_RESERVE_ROWS
|
|
1457
|
+
);
|
|
1458
|
+
const tableClampRows = Math.max(2, viewportRows - 3);
|
|
1459
|
+
while (true) {
|
|
1460
|
+
const bufferLines = newGeminiMessageBuffer.split("\n");
|
|
1461
|
+
const { keptLines, clipped } = fitPendingSlice(
|
|
1462
|
+
bufferLines,
|
|
1463
|
+
commitWidth,
|
|
1464
|
+
commitRowBudget,
|
|
1465
|
+
tableClampRows
|
|
1466
|
+
);
|
|
1467
|
+
if (!clipped) break;
|
|
1468
|
+
let boundaryLine = -1;
|
|
1469
|
+
for (let k = Math.min(keptLines, bufferLines.length) - 1; k >= 0; k--) {
|
|
1470
|
+
if (bufferLines[k].trim() === "") {
|
|
1471
|
+
boundaryLine = k;
|
|
1472
|
+
break;
|
|
1473
|
+
}
|
|
1474
|
+
}
|
|
1475
|
+
if (boundaryLine < 0) break;
|
|
1476
|
+
const target = charIndexAfterLine(
|
|
1477
|
+
newGeminiMessageBuffer,
|
|
1478
|
+
boundaryLine + 1
|
|
1479
|
+
);
|
|
1480
|
+
if (target <= 0) break;
|
|
1481
|
+
const splitPoint = findLastSafeSplitPoint(
|
|
1482
|
+
newGeminiMessageBuffer,
|
|
1483
|
+
target
|
|
1484
|
+
);
|
|
1485
|
+
if (splitPoint <= 0 || splitPoint >= newGeminiMessageBuffer.length) {
|
|
1486
|
+
break;
|
|
1487
|
+
}
|
|
1488
|
+
const beforeText = newGeminiMessageBuffer.substring(0, splitPoint);
|
|
1489
|
+
const afterText = newGeminiMessageBuffer.substring(splitPoint);
|
|
1490
|
+
commitItem(
|
|
1491
|
+
{
|
|
1492
|
+
type: nextPendingType,
|
|
1493
|
+
text: beforeText
|
|
1494
|
+
},
|
|
1495
|
+
userMessageTimestamp
|
|
1496
|
+
);
|
|
1497
|
+
nextPendingType = "gemini_content";
|
|
1498
|
+
newGeminiMessageBuffer = afterText;
|
|
1499
|
+
}
|
|
1414
1500
|
setPendingHistoryItem((item) => {
|
|
1415
1501
|
const base = {
|
|
1416
1502
|
type: nextPendingType,
|
|
@@ -1423,7 +1509,15 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
|
|
|
1423
1509
|
});
|
|
1424
1510
|
return newGeminiMessageBuffer;
|
|
1425
1511
|
},
|
|
1426
|
-
[
|
|
1512
|
+
[
|
|
1513
|
+
commitItem,
|
|
1514
|
+
pendingHistoryItemRef,
|
|
1515
|
+
setPendingHistoryItem,
|
|
1516
|
+
terminalWidth,
|
|
1517
|
+
terminalHeight,
|
|
1518
|
+
availableTerminalHeightRef,
|
|
1519
|
+
terminalWidthRef
|
|
1520
|
+
]
|
|
1427
1521
|
);
|
|
1428
1522
|
const mergeThought = (0, import_react5.useCallback)(
|
|
1429
1523
|
(incoming) => {
|
|
@@ -1989,6 +2083,28 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
|
|
|
1989
2083
|
clearRetryCountdown();
|
|
1990
2084
|
}
|
|
1991
2085
|
break;
|
|
2086
|
+
case "model_fallback" /* ModelFallback */: {
|
|
2087
|
+
discardBufferedStreamEvents();
|
|
2088
|
+
if (pendingHistoryItemRef.current) {
|
|
2089
|
+
setPendingHistoryItem(null);
|
|
2090
|
+
}
|
|
2091
|
+
commitPendingThought(userMessageTimestamp);
|
|
2092
|
+
thoughtBuffer = "";
|
|
2093
|
+
setThought(null);
|
|
2094
|
+
geminiMessageBuffer = "";
|
|
2095
|
+
toolCallRequests.length = 0;
|
|
2096
|
+
clearRetryCountdown();
|
|
2097
|
+
const fromModel = sanitizeDisplayText(event.fromModel) ?? "(unknown)";
|
|
2098
|
+
const toModel = sanitizeDisplayText(event.toModel) ?? "(unknown)";
|
|
2099
|
+
addItem(
|
|
2100
|
+
{
|
|
2101
|
+
type: "notification",
|
|
2102
|
+
text: `Model ${fromModel} unavailable, falling back to ${toModel}`
|
|
2103
|
+
},
|
|
2104
|
+
userMessageTimestamp
|
|
2105
|
+
);
|
|
2106
|
+
break;
|
|
2107
|
+
}
|
|
1992
2108
|
case "hook_system_message" /* HookSystemMessage */:
|
|
1993
2109
|
flushBufferedStreamEvents();
|
|
1994
2110
|
if (pendingHistoryItemRef.current) {
|
|
@@ -2393,7 +2509,13 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
|
|
|
2393
2509
|
async (newApprovalMode) => {
|
|
2394
2510
|
if (newApprovalMode === "yolo" /* YOLO */ || newApprovalMode === "auto-edit" /* AUTO_EDIT */) {
|
|
2395
2511
|
let awaitingApprovalCalls = toolCalls.filter(
|
|
2396
|
-
(call) =>
|
|
2512
|
+
(call) => {
|
|
2513
|
+
if (call.status !== "awaiting_approval") {
|
|
2514
|
+
return false;
|
|
2515
|
+
}
|
|
2516
|
+
const { confirmationDetails } = call;
|
|
2517
|
+
return !(confirmationDetails && "hideAlwaysAllow" in confirmationDetails && confirmationDetails.hideAlwaysAllow === true);
|
|
2518
|
+
}
|
|
2397
2519
|
);
|
|
2398
2520
|
if (newApprovalMode === "auto-edit" /* AUTO_EDIT */) {
|
|
2399
2521
|
awaitingApprovalCalls = awaitingApprovalCalls.filter(
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
|
|
10
10
|
// packages/core/src/core/tokenLimits.ts
|
|
11
11
|
init_esbuild_shims();
|
|
12
|
-
var DEFAULT_TOKEN_LIMIT =
|
|
12
|
+
var DEFAULT_TOKEN_LIMIT = 2e5;
|
|
13
13
|
var DEFAULT_OUTPUT_TOKEN_LIMIT = 32e3;
|
|
14
14
|
var ESCALATED_MAX_TOKENS = 64e3;
|
|
15
15
|
function parsePositiveIntegerEnvValue(raw) {
|
|
@@ -190,6 +190,12 @@ function hasExplicitOutputLimit(model) {
|
|
|
190
190
|
return OUTPUT_PATTERNS.some(([regex]) => regex.test(norm));
|
|
191
191
|
}
|
|
192
192
|
__name(hasExplicitOutputLimit, "hasExplicitOutputLimit");
|
|
193
|
+
function escalatedOutputTokenLimit(model, contextWindowSize) {
|
|
194
|
+
const escalated = Math.max(ESCALATED_MAX_TOKENS, tokenLimit(model, "output"));
|
|
195
|
+
const window = contextWindowSize !== void 0 && contextWindowSize > 0 ? contextWindowSize : DEFAULT_TOKEN_LIMIT;
|
|
196
|
+
return Math.min(escalated, Math.floor(window / 2));
|
|
197
|
+
}
|
|
198
|
+
__name(escalatedOutputTokenLimit, "escalatedOutputTokenLimit");
|
|
193
199
|
function knownTokenLimit(model, type = "input") {
|
|
194
200
|
return findTokenLimit(model, type);
|
|
195
201
|
}
|
|
@@ -202,6 +208,14 @@ __name(tokenLimit, "tokenLimit");
|
|
|
202
208
|
// packages/core/src/core/openaiContentGenerator/constants.ts
|
|
203
209
|
init_esbuild_shims();
|
|
204
210
|
var DEFAULT_TIMEOUT = 12e4;
|
|
211
|
+
var DISABLED_REQUEST_TIMEOUT_MS = 2147483647;
|
|
212
|
+
function resolveRequestTimeout(timeout) {
|
|
213
|
+
if (timeout === void 0 || timeout === null) {
|
|
214
|
+
return DEFAULT_TIMEOUT;
|
|
215
|
+
}
|
|
216
|
+
return timeout <= 0 ? DISABLED_REQUEST_TIMEOUT_MS : timeout;
|
|
217
|
+
}
|
|
218
|
+
__name(resolveRequestTimeout, "resolveRequestTimeout");
|
|
205
219
|
var DEFAULT_STREAM_IDLE_TIMEOUT_MS = 24e4;
|
|
206
220
|
var QWEN_STREAM_IDLE_TIMEOUT_MS_ENV = "QWEN_STREAM_IDLE_TIMEOUT_MS";
|
|
207
221
|
var MAX_STREAM_IDLE_TIMEOUT_MS = 2147483647;
|
|
@@ -210,49 +224,6 @@ var DEFAULT_OPENAI_BASE_URL = "https://api.openai.com/v1";
|
|
|
210
224
|
var DEFAULT_DASHSCOPE_BASE_URL = "https://dashscope.aliyuncs.com/compatible-mode/v1";
|
|
211
225
|
var DASHSCOPE_PROXY_BASE_URL = process.env["DASHSCOPE_PROXY_BASE_URL"];
|
|
212
226
|
|
|
213
|
-
// packages/core/src/utils/request-tokenizer/textTokenizer.ts
|
|
214
|
-
init_esbuild_shims();
|
|
215
|
-
var TextTokenizer = class {
|
|
216
|
-
static {
|
|
217
|
-
__name(this, "TextTokenizer");
|
|
218
|
-
}
|
|
219
|
-
/**
|
|
220
|
-
* Calculate tokens for text content
|
|
221
|
-
*
|
|
222
|
-
* @param text - The text to estimate tokens for
|
|
223
|
-
* @returns The estimated token count
|
|
224
|
-
*/
|
|
225
|
-
async calculateTokens(text) {
|
|
226
|
-
return this.calculateTokensSync(text);
|
|
227
|
-
}
|
|
228
|
-
/**
|
|
229
|
-
* Calculate tokens for multiple text strings
|
|
230
|
-
*
|
|
231
|
-
* @param texts - Array of text strings to estimate tokens for
|
|
232
|
-
* @returns Array of token counts corresponding to each input text
|
|
233
|
-
*/
|
|
234
|
-
async calculateTokensBatch(texts) {
|
|
235
|
-
return texts.map((text) => this.calculateTokensSync(text));
|
|
236
|
-
}
|
|
237
|
-
calculateTokensSync(text) {
|
|
238
|
-
if (!text || text.length === 0) {
|
|
239
|
-
return 0;
|
|
240
|
-
}
|
|
241
|
-
let asciiChars = 0;
|
|
242
|
-
let nonAsciiChars = 0;
|
|
243
|
-
for (let i = 0; i < text.length; i++) {
|
|
244
|
-
const charCode = text.charCodeAt(i);
|
|
245
|
-
if (charCode < 128) {
|
|
246
|
-
asciiChars++;
|
|
247
|
-
} else {
|
|
248
|
-
nonAsciiChars++;
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
const tokens = asciiChars / 4 + nonAsciiChars * 1.1;
|
|
252
|
-
return Math.ceil(tokens);
|
|
253
|
-
}
|
|
254
|
-
};
|
|
255
|
-
|
|
256
227
|
// packages/core/src/utils/request-tokenizer/supportedImageFormats.ts
|
|
257
228
|
init_esbuild_shims();
|
|
258
229
|
var SUPPORTED_IMAGE_MIME_TYPES = [
|
|
@@ -290,9 +261,10 @@ export {
|
|
|
290
261
|
parsePositiveIntegerEnvValue,
|
|
291
262
|
normalize,
|
|
292
263
|
hasExplicitOutputLimit,
|
|
264
|
+
escalatedOutputTokenLimit,
|
|
293
265
|
knownTokenLimit,
|
|
294
266
|
tokenLimit,
|
|
295
|
-
|
|
267
|
+
resolveRequestTimeout,
|
|
296
268
|
DEFAULT_STREAM_IDLE_TIMEOUT_MS,
|
|
297
269
|
QWEN_STREAM_IDLE_TIMEOUT_MS_ENV,
|
|
298
270
|
MAX_STREAM_IDLE_TIMEOUT_MS,
|
|
@@ -300,7 +272,6 @@ export {
|
|
|
300
272
|
DEFAULT_OPENAI_BASE_URL,
|
|
301
273
|
DEFAULT_DASHSCOPE_BASE_URL,
|
|
302
274
|
DASHSCOPE_PROXY_BASE_URL,
|
|
303
|
-
TextTokenizer,
|
|
304
275
|
SUPPORTED_IMAGE_MIME_TYPES,
|
|
305
276
|
isSupportedImageMimeType,
|
|
306
277
|
getSupportedImageFormatsString,
|