@qwen-code/qwen-code 0.19.8 → 0.19.9
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/SKILL.md +1 -0
- package/bundled/qc-helper/docs/configuration/auth.md +40 -55
- package/bundled/qc-helper/docs/configuration/model-providers.md +224 -218
- package/bundled/qc-helper/docs/configuration/settings.md +60 -51
- package/bundled/qc-helper/docs/features/_meta.ts +1 -0
- package/bundled/qc-helper/docs/features/channels/dingtalk.md +9 -2
- package/bundled/qc-helper/docs/features/channels/overview.md +71 -4
- package/bundled/qc-helper/docs/features/channels/wecom.md +6 -0
- package/bundled/qc-helper/docs/features/code-review.md +29 -5
- package/bundled/qc-helper/docs/features/commands.md +39 -38
- package/bundled/qc-helper/docs/features/computer-use.md +77 -0
- package/bundled/qc-helper/docs/features/tool-use-summaries.md +19 -23
- package/bundled/qc-helper/docs/integration-vscode.md +2 -2
- package/bundled/qc-helper/docs/qwen-serve.md +29 -12
- package/bundled/qc-helper/docs/reference/keyboard-shortcuts.md +1 -1
- package/bundled/review/DESIGN.md +93 -22
- package/bundled/review/SKILL.md +295 -86
- package/chunks/MaxSizedBox-6HYJ3ZPJ.js +70 -0
- package/chunks/{StandaloneSessionPicker-EYRGH6PJ.js → StandaloneSessionPicker-WS4GXYOG.js} +79 -79
- package/chunks/{acpAgent-GRFTTRHW.js → acpAgent-5FWSOZL5.js} +968 -200
- package/chunks/agent-HOLHB3RT.js +68 -0
- package/chunks/agent-headless-SXL6H56A.js +62 -0
- package/chunks/{anthropicContentGenerator-CPF22MA7.js → anthropicContentGenerator-L73TO3DB.js} +187 -31
- package/chunks/{artifact-tool-D233YJFH.js → artifact-tool-U7IRTLIV.js} +5 -5
- package/chunks/{askUserQuestion-MKL5ZTMC.js → askUserQuestion-2DLUUZZG.js} +6 -6
- package/chunks/bridge-BCJQ7BBB.js +78 -0
- package/chunks/{ca-MKD32FQL.js → ca-UJ6HC4H2.js} +64 -5
- package/chunks/{channel-worker-supervisor-NZQUOEFJ.js → channel-worker-supervisor-WSOAAYUO.js} +137 -13
- package/chunks/{chunk-QQDPRDVW.js → chunk-2HRYPZT5.js} +1 -1
- package/chunks/{chunk-2PSWA5ID.js → chunk-2X56YUSZ.js} +1 -1
- package/chunks/{chunk-DIWVZ3VM.js → chunk-34MW4KTI.js} +5 -5
- package/chunks/{chunk-IBY3Q3HG.js → chunk-34Z3U5RQ.js} +508 -126
- package/chunks/{chunk-UXEW557D.js → chunk-3AHXV67U.js} +3 -3
- package/chunks/{chunk-O2YT7VB4.js → chunk-3BTRNWWD.js} +1 -1
- package/chunks/chunk-3G7CIHVV.js +71 -0
- package/chunks/{chunk-FBET5XZ2.js → chunk-3SJSQXNS.js} +20 -5
- package/chunks/{chunk-BUZ6HGL4.js → chunk-3VAGG5T5.js} +248 -55
- package/chunks/{chunk-M7S4GK5Z.js → chunk-4C5BQ2D2.js} +74 -27
- package/chunks/{chunk-5MBO76SL.js → chunk-4GORAUCN.js} +3 -3
- package/chunks/{chunk-55ZMG67I.js → chunk-4LD5APFL.js} +4 -4
- package/chunks/{chunk-TLWA7TPR.js → chunk-4QLQE5WJ.js} +2 -2
- package/chunks/{chunk-UIDXQNMV.js → chunk-4WGODMVR.js} +1 -1
- package/chunks/{chunk-E6US47KI.js → chunk-4WKAA4KS.js} +1 -1
- package/chunks/{chunk-H6EMK6QK.js → chunk-4ZVWQHEQ.js} +11913 -5207
- package/chunks/{chunk-HW4N45EE.js → chunk-524RQP4Q.js} +29 -8
- package/chunks/{chunk-3GONHQOA.js → chunk-57OAHC2Y.js} +1 -1
- package/chunks/{chunk-JZSY4WP3.js → chunk-5DTTYNB7.js} +1 -1
- package/chunks/{chunk-YDOXPLYL.js → chunk-5HOMWMCL.js} +1147 -738
- package/chunks/{chunk-A4BMJM77.js → chunk-5O2XNYP6.js} +1 -0
- package/chunks/{chunk-ZL5HN75Q.js → chunk-5SFOMFG4.js} +2 -2
- package/chunks/{chunk-2EM7ECZD.js → chunk-5U27BZ72.js} +179 -63
- package/chunks/{chunk-JRQ7EVGE.js → chunk-5VXNZWGF.js} +2 -2
- package/chunks/{chunk-QYNNN7BK.js → chunk-5XUCZNSY.js} +2 -2
- package/chunks/{chunk-GO6LNQXT.js → chunk-6AM5D4ME.js} +1 -1
- package/chunks/{chunk-BJBWRCSK.js → chunk-6H67XLET.js} +1 -1
- package/chunks/{chunk-PUVCVELY.js → chunk-6PESIEKJ.js} +4 -4
- package/chunks/{chunk-3UP777ZS.js → chunk-6RLROE6G.js} +1 -1
- package/chunks/{chunk-ZERZSAZL.js → chunk-75DOP5OR.js} +2 -2
- package/chunks/{chunk-RMLZAUWH.js → chunk-77XJ3SWN.js} +10 -12
- package/chunks/{chunk-L46XKEGM.js → chunk-7PU4FYLG.js} +5 -8
- package/chunks/{chunk-NQKLOAVJ.js → chunk-7R3CZA3Q.js} +2 -2
- package/chunks/{chunk-SAIILPQ3.js → chunk-7X7TEQNX.js} +5 -3
- package/chunks/{chunk-OQXDAMKY.js → chunk-A3XKDTSH.js} +8 -8
- package/chunks/{chunk-IRJWHZWU.js → chunk-A4UCTEB5.js} +2 -2
- package/chunks/{chunk-TSPB77TG.js → chunk-AKIVHSJR.js} +923 -2892
- package/chunks/{chunk-FQNC62B2.js → chunk-ATAKVRIF.js} +11 -11
- package/chunks/{chunk-GSHQYYIV.js → chunk-AURZZYMD.js} +6 -26
- package/chunks/{chunk-CHB5SLZZ.js → chunk-B4G2WOFA.js} +3 -3
- package/chunks/{chunk-X3YGAX7V.js → chunk-B5ORX3FG.js} +4 -2
- package/chunks/chunk-BAPGSC7U.js +239 -0
- package/chunks/{chunk-UX6OTBVD.js → chunk-BMGVRZN4.js} +2 -2
- package/chunks/{chunk-ZN5T4BHI.js → chunk-BPZALHVR.js} +2 -2
- package/chunks/{chunk-IJRL2S3D.js → chunk-BZIFY5TF.js} +6 -6
- package/chunks/{chunk-OFEVLU4C.js → chunk-CARU2RR2.js} +1 -1
- package/chunks/chunk-CC2ITGCF.js +176 -0
- package/chunks/{chunk-HDOH3QYE.js → chunk-CCDMCZPP.js} +2 -2
- package/chunks/{chunk-FV7425LN.js → chunk-CEA3E3JB.js} +18 -5
- package/chunks/{chunk-BOBOCR5H.js → chunk-CLFKOZEK.js} +4 -4
- package/chunks/{chunk-P3XEEI3X.js → chunk-CNEIYWSA.js} +38 -9
- package/chunks/{chunk-GLE2YUPU.js → chunk-COH43MRJ.js} +1 -1
- package/chunks/{chunk-E5A7LHNN.js → chunk-CPBF7KYF.js} +1 -1
- package/chunks/{chunk-UWCTAVOD.js → chunk-CR3C7WXL.js} +1 -1
- package/chunks/{chunk-5P5XGNYH.js → chunk-CU3L64TP.js} +1 -1
- package/chunks/{chunk-CD6USWHZ.js → chunk-CUMMSHH6.js} +2 -2
- package/chunks/{chunk-IWKSG2AR.js → chunk-CXAOG665.js} +1 -1
- package/chunks/{chunk-WQTHLB5T.js → chunk-D2GFWEXB.js} +7 -7
- package/chunks/{chunk-I6WGFJJ3.js → chunk-D5SKC4YG.js} +38 -12
- package/chunks/{chunk-MZ7BABX3.js → chunk-DC5Z3DU6.js} +2 -2
- package/chunks/{chunk-64WXLC72.js → chunk-DJ2GSRLV.js} +1 -1
- package/chunks/{chunk-QN5NZ3UQ.js → chunk-DMTGGOSA.js} +2 -2
- package/chunks/{chunk-A5JOJ77H.js → chunk-E2IY465S.js} +38 -15
- package/chunks/{chunk-KHDZHZMH.js → chunk-E5Z2AVNV.js} +1 -1
- package/chunks/{chunk-SQ2UATK7.js → chunk-EAXLGSFP.js} +11 -11
- package/chunks/{chunk-JCH35JB3.js → chunk-ECNYL4AA.js} +2 -2
- package/chunks/{chunk-E7EMCSUG.js → chunk-EGYZ275M.js} +64 -42
- package/chunks/{chunk-6VK6FIMQ.js → chunk-EMDMPBJ4.js} +415 -379
- package/chunks/{chunk-5IFG2VC4.js → chunk-FCMNKVXT.js} +1 -1
- package/chunks/{chunk-V35MD7KN.js → chunk-GRC5HGPI.js} +1 -1
- package/chunks/{chunk-WMPVYQ4P.js → chunk-GWHYEOV2.js} +2 -2
- package/chunks/{chunk-27BHARDE.js → chunk-GWLSNBG4.js} +2103 -13
- package/chunks/chunk-GZRTYZ2R.js +292 -0
- package/chunks/{chunk-A2X3KLC3.js → chunk-GZXCZHCT.js} +3 -3
- package/chunks/{chunk-K5PGHDBN.js → chunk-H6XPXXMH.js} +1 -1
- package/chunks/{chunk-DICGXFAI.js → chunk-HKMAENAO.js} +8 -8
- package/chunks/{chunk-ZE6E424U.js → chunk-HPDUL5MF.js} +2 -2
- package/chunks/{chunk-KYMBIKIW.js → chunk-HTHUX2T5.js} +1 -1
- package/chunks/{chunk-LQ7TMOCE.js → chunk-HTO4JFDZ.js} +1 -1
- package/chunks/{chunk-ON3JA3RU.js → chunk-HVY356M2.js} +7 -9
- package/chunks/{chunk-GGQQA4JW.js → chunk-IAVB3HM3.js} +2 -2
- package/chunks/{chunk-FEJ2FZ3U.js → chunk-J3JA76CF.js} +2 -2
- package/chunks/{chunk-4CGOWHKM.js → chunk-J4MOFEOK.js} +2 -2
- package/chunks/{chunk-22MNNNXE.js → chunk-J4TSQ5EQ.js} +3 -2
- package/chunks/{chunk-22IFUCVR.js → chunk-JESCGQM3.js} +1 -1
- package/chunks/{chunk-CCGOFQV3.js → chunk-JSG7ZSBC.js} +8 -7
- package/chunks/{chunk-WF4FAXDL.js → chunk-JZETEN3Z.js} +62 -62
- package/chunks/{chunk-GN3F6PIU.js → chunk-K434OPES.js} +5 -5
- package/chunks/{chunk-YKZIAK7C.js → chunk-KHUQZZJ6.js} +66 -16
- package/chunks/{chunk-X2XNQQJI.js → chunk-KKNMOEZH.js} +4 -4
- package/chunks/{chunk-MRO43B25.js → chunk-KW7NOTN6.js} +1 -1
- package/chunks/{chunk-6IAWPIQ6.js → chunk-L36P3NBD.js} +3 -3
- package/chunks/{chunk-54YZOP7P.js → chunk-L573Z2QZ.js} +11894 -5190
- package/chunks/{chunk-DHOLNQLC.js → chunk-L6P4KPHR.js} +12 -12
- package/chunks/{chunk-E7KNELIZ.js → chunk-LK7KUE55.js} +2 -2
- package/chunks/{chunk-W7EEOR7D.js → chunk-LUODI7WD.js} +5 -5
- package/chunks/{chunk-CSOTA7KX.js → chunk-LXNEJD34.js} +2 -2
- package/chunks/{chunk-HLKG6CZN.js → chunk-M5GB774H.js} +1 -1
- package/chunks/{chunk-3B26UVCX.js → chunk-MC23XKFE.js} +39 -10
- package/chunks/{chunk-PC4ZXHU2.js → chunk-MXL5UP4X.js} +3 -3
- package/chunks/{chunk-BVYU3ZTI.js → chunk-N3EMS75V.js} +73 -30
- package/chunks/{chunk-332PWN27.js → chunk-NHDKSOEY.js} +1 -1
- package/chunks/{chunk-3GNOQZDC.js → chunk-NVYTCB5Z.js} +4797 -2620
- package/chunks/{chunk-P7M4GA57.js → chunk-OCPBI7J5.js} +1 -1
- package/chunks/chunk-OQ4DRIOA.js +296 -0
- package/chunks/{chunk-42XGFRJS.js → chunk-ORBGV7NJ.js} +5 -5
- package/chunks/{chunk-AYNCLGTW.js → chunk-P67PFTUT.js} +8 -51
- package/chunks/{chunk-VGGOPZUL.js → chunk-PDZ7MBDG.js} +12 -5
- package/chunks/{chunk-WHJQ3JUS.js → chunk-PODM4SZ4.js} +12 -12
- package/chunks/{chunk-JPALE3PA.js → chunk-PVZM22CK.js} +6 -6
- package/chunks/{chunk-AGHU5VRK.js → chunk-PZL23GTM.js} +1 -1
- package/chunks/{chunk-L4AMBVQG.js → chunk-Q4YQW46J.js} +31 -17
- package/chunks/{chunk-XYR5RUA5.js → chunk-Q6I5QHMH.js} +10 -3
- package/chunks/{chunk-FXGLL2HL.js → chunk-Q7YDKOGY.js} +1 -1
- package/chunks/{chunk-LGFAYIKX.js → chunk-QHTIBUWB.js} +1 -1
- package/chunks/{chunk-P3MYAZBY.js → chunk-QMGX2KO2.js} +1 -1
- package/chunks/{chunk-Z3I3QJK3.js → chunk-QRUIS3DN.js} +1 -1
- package/chunks/{chunk-ITOGNELQ.js → chunk-QSWDGAIC.js} +2 -2
- package/chunks/{chunk-GHOTR7HL.js → chunk-QUPXZXLV.js} +1 -1
- package/chunks/{chunk-XOHNA2S6.js → chunk-QYMQSECS.js} +3 -3
- package/chunks/{chunk-QYUE6W3T.js → chunk-RDJSGHZE.js} +1 -1
- package/chunks/{chunk-TLRYABYP.js → chunk-RKUWKYED.js} +1 -1
- package/chunks/{chunk-RNBYOUGV.js → chunk-RXFQM6FQ.js} +1 -1
- package/chunks/{chunk-QXPI7FEC.js → chunk-S3TWXGKA.js} +4 -4
- package/chunks/{chunk-BOBRZZKD.js → chunk-SCGXUJBT.js} +5 -5
- package/chunks/{chunk-44NROQYV.js → chunk-SJHDYNHF.js} +4 -4
- package/chunks/{chunk-MLZQVCF3.js → chunk-SZRN75WQ.js} +1 -1
- package/chunks/{chunk-7RYW5LQV.js → chunk-T2NCM2ET.js} +2 -2
- package/chunks/{chunk-Z2Z3GUXZ.js → chunk-TB6UDU4T.js} +1 -1
- package/chunks/{chunk-SUAKHHK7.js → chunk-TDEXZKMT.js} +3 -3
- package/chunks/{chunk-EXPMGZZV.js → chunk-TEGEBB2I.js} +1 -1
- package/chunks/{chunk-MX2YXRER.js → chunk-TJTKSVIV.js} +1 -1
- package/chunks/chunk-TO6QE22P.js +444 -0
- package/chunks/{chunk-H6BD2ELD.js → chunk-TYAMGABM.js} +2 -2
- package/chunks/chunk-U2NNEY4R.js +38 -0
- package/chunks/{chunk-VRDMOSQS.js → chunk-UDXSXLER.js} +2 -2
- package/chunks/{chunk-AHNJGLFV.js → chunk-UOZWKTQG.js} +3 -3
- package/chunks/{chunk-CJCKDMWO.js → chunk-URK542T4.js} +1 -1
- package/chunks/{chunk-AHNXYU4O.js → chunk-V6WHFGST.js} +1 -1
- package/chunks/{chunk-DCZWC4PF.js → chunk-VA4KQY6V.js} +5 -5
- package/chunks/{chunk-ZTQ26VBE.js → chunk-VDDGDZMA.js} +1 -1
- package/chunks/{chunk-OMX7CUOE.js → chunk-VGC4I5JJ.js} +1 -1
- package/chunks/{chunk-43W4YSO6.js → chunk-VJNBRRZG.js} +2 -2
- package/chunks/{chunk-J7RCB6N5.js → chunk-VTU57BWZ.js} +2 -2
- package/chunks/{chunk-LAXNEOBG.js → chunk-VWPVHAMO.js} +15 -3
- package/chunks/{chunk-VZ7HY3YU.js → chunk-W2UIXQDL.js} +3 -3
- package/chunks/{chunk-JZHIQJOE.js → chunk-W3JHSWRP.js} +6 -6
- package/chunks/{chunk-ER3BKOLB.js → chunk-W7FJ3N32.js} +1 -1
- package/chunks/{chunk-3HX5LZ6R.js → chunk-WBL3FJEU.js} +2 -2
- package/chunks/{chunk-BMFMJINR.js → chunk-WL4L7EZH.js} +1 -1
- package/chunks/{chunk-PMFULMLX.js → chunk-WQUQVGTF.js} +2057 -266
- package/chunks/chunk-X4NKFGFJ.js +81 -0
- package/chunks/{chunk-YHKAK72D.js → chunk-X6TJ3YZV.js} +102 -16
- package/chunks/{chunk-3RW4AZJV.js → chunk-XFSFZCM5.js} +1 -1
- package/chunks/{chunk-O7FIRWJV.js → chunk-XLA62MYB.js} +3 -3
- package/chunks/{chunk-2MPVVENX.js → chunk-XU457J4V.js} +2 -2
- package/chunks/{chunk-EEN2TKST.js → chunk-XUOOWUZS.js} +2 -2
- package/chunks/{chunk-SIUQ3YYX.js → chunk-XVNQMZ2I.js} +1 -1
- package/chunks/{chunk-SYCJMSIJ.js → chunk-XWRJCPHC.js} +1 -1
- package/chunks/{chunk-TI3BWD4D.js → chunk-XYQSMABS.js} +39 -19
- package/chunks/chunk-YAF2MQZ6.js +19 -0
- package/chunks/{chunk-O33TBKDC.js → chunk-YAUFFXDS.js} +154 -19
- package/chunks/{chunk-OACJLMLD.js → chunk-YLV3XXFB.js} +2 -2
- package/chunks/{chunk-BR4QREVK.js → chunk-YQ3U5MUC.js} +1 -1
- package/chunks/{chunk-Y6Z2O3WR.js → chunk-YUZI3WAC.js} +1 -1
- package/chunks/{chunk-II73RK2S.js → chunk-YVEDCAUE.js} +1 -1
- package/chunks/{chunk-SKAZWEV5.js → chunk-ZJE7NSL3.js} +1 -1
- package/chunks/{chunk-7LTB54MK.js → chunk-ZLXQN2QS.js} +2 -2
- package/chunks/cli-entry-path-4VJ3Y6T2.js +10 -0
- package/chunks/{computer-use-WMY3UOBX.js → computer-use-HM37RX6A.js} +50 -50
- package/chunks/config-utils-NV2SVGPB.js +23 -0
- package/chunks/contextCommand-OF5SFGH2.js +68 -0
- package/chunks/create-sub-session-INX7TXJI.js +207 -0
- package/chunks/create-sub-session-KPRT7ECJ.js +375 -0
- package/chunks/{cron-create-JSXEIPVS.js → cron-create-AMBKGZX6.js} +9 -9
- package/chunks/{cron-delete-OIFVEPGU.js → cron-delete-LRU4OJYG.js} +7 -7
- package/chunks/{cron-list-D4ZX4IOE.js → cron-list-WVP2JXER.js} +14 -10
- package/chunks/{daemon-WPAENEBW.js → daemon-ARHTSTXP.js} +478 -6
- package/chunks/daemon-status-provider-B2UTZUJ2.js +76 -0
- package/chunks/{de-ZFPPQVSF.js → de-EBJN3OVN.js} +64 -5
- package/chunks/{devtools-FM6GJPYG.js → devtools-4QFYJT6U.js} +3 -3
- package/chunks/{dist-Z34QPAQW.js → dist-PNVLTKTL.js} +374 -78
- package/chunks/{dist-63IS3ZMI.js → dist-PZV5RKM6.js} +4 -4
- package/chunks/{dist-BEXOZXLQ.js → dist-QYCAEZIT.js} +32 -15
- package/chunks/{dist-H2AEJCZ5.js → dist-R7LN5AZE.js} +5 -5
- package/chunks/{dist-E6UANPIM.js → dist-VHV4EVHG.js} +1011 -197
- package/chunks/{dist-O2IRTRPP.js → dist-WKPOYU7O.js} +10 -10
- package/chunks/{dist-SCFLLYMK.js → dist-XKU3ABM5.js} +12 -11
- package/chunks/earlyInputCapture-3VTHRC4C.js +69 -0
- package/chunks/{edit-OTYWAXGP.js → edit-VNI4NJ73.js} +51 -51
- package/chunks/{en-N4EPZAQI.js → en-5A6LA7RK.js} +74 -6
- package/chunks/{enter-worktree-HNYBDVCX.js → enter-worktree-IYYBKPZT.js} +50 -50
- package/chunks/{enterPlanMode-CJCNGT63.js → enterPlanMode-GMC5FD5A.js} +50 -50
- package/chunks/environment-5HSSRMJ7.js +88 -0
- package/chunks/errors-HMFCJJ7P.js +75 -0
- package/chunks/{exit-worktree-DUUKOE3X.js → exit-worktree-6BHCMP5G.js} +50 -50
- package/chunks/{exitPlanMode-AMMSXOAJ.js → exitPlanMode-CJW7G74W.js} +51 -51
- package/chunks/{fast-path-OV6NIP3K.js → fast-path-FRDMDVHG.js} +8 -8
- package/chunks/{fast-path-settings-7RIFI3PK.js → fast-path-settings-5QZE64HR.js} +6 -6
- package/chunks/{fileFromPath-IBEHA3CO.js → fileFromPath-UDALK7FM.js} +3 -3
- package/chunks/{fr-5WWMY53B.js → fr-YXRABLYZ.js} +64 -5
- package/chunks/{gemini-NQ3WWBKB.js → gemini-QYSEGHAX.js} +119 -111
- package/chunks/{geminiContentGenerator-CDUNEJQE.js → geminiContentGenerator-J7YNZDYP.js} +9 -9
- package/chunks/{getMachineId-bsd-4CASPIU4.js → getMachineId-bsd-EXV7SWPA.js} +3 -3
- package/chunks/{getMachineId-darwin-HPQPEMZR.js → getMachineId-darwin-IUOMFXU3.js} +3 -3
- package/chunks/{getMachineId-linux-AUARKYHL.js → getMachineId-linux-K7XJYFHL.js} +2 -2
- package/chunks/{getMachineId-unsupported-S32ZDA2T.js → getMachineId-unsupported-EA5FDRJ6.js} +2 -2
- package/chunks/{getMachineId-win-4EFLHYIJ.js → getMachineId-win-KBA6RAI5.js} +3 -3
- package/chunks/{glob-ROV3YS4R.js → glob-BRCSGFOT.js} +95 -74
- package/chunks/{grep-NRITKDCD.js → grep-EE2DUOSY.js} +50 -50
- package/chunks/handleAutoUpdate-5NWTLR67.js +69 -0
- package/chunks/i18n-BASPENNQ.js +84 -0
- package/chunks/initializer-UTQ7FB7G.js +71 -0
- package/chunks/installationInfo-W6V4DT7W.js +65 -0
- package/chunks/{ja-CUHZOLEJ.js → ja-7VQOANVG.js} +64 -5
- package/chunks/{keychain-token-storage-UJV5XP4Z.js → keychain-token-storage-VKUBNCP4.js} +4 -4
- package/chunks/{kittyProtocolDetector-OJRCJLIU.js → kittyProtocolDetector-HCNNKJTI.js} +2 -2
- package/chunks/list-DEICDL65.js +74 -0
- package/chunks/loadedSettingsAdapter-NOWEGDYJ.js +68 -0
- package/chunks/{loop-wakeup-OHWEMFP5.js → loop-wakeup-WX7BLWWP.js} +10 -10
- package/chunks/{lowlight-FYAAUU5J.js → lowlight-J2OZNPCA.js} +1 -1
- package/chunks/{ls-7MFU2QYW.js → ls-ZB2BDP6T.js} +6 -6
- package/chunks/{lsp-XHDTPTGV.js → lsp-V5DN4YUJ.js} +4 -4
- package/chunks/mcp-L5JXEEIA.js +68 -0
- package/chunks/{monitor-FL2ZO33W.js → monitor-X5Z3H4FY.js} +50 -50
- package/chunks/{multipart-parser-AJ4WASWR.js → multipart-parser-AWZKXSQN.js} +3 -3
- package/chunks/nonInteractiveCli-LS2K4X6A.js +124 -0
- package/chunks/{notebook-edit-6PULTHL5.js → notebook-edit-TRM2QIJK.js} +51 -51
- package/chunks/openaiContentGenerator-AAYONPMF.js +56 -0
- package/chunks/pidfile-D4I4FTVA.js +73 -0
- package/chunks/{pt-OLYN42DS.js → pt-2C6YCSHL.js} +64 -5
- package/chunks/{qwenContentGenerator-NX2E7PB7.js → qwenContentGenerator-K3HZ2H76.js} +52 -52
- package/chunks/{qwenOAuth2-ZV7YLMND.js → qwenOAuth2-PJQ27GSO.js} +9 -9
- package/chunks/read-file-7SZSIZOL.js +30 -0
- package/chunks/{read-mcp-resource-CNQHBSJM.js → read-mcp-resource-SM5DA4RG.js} +5 -5
- package/chunks/{read-package-up-ER5OJUGP.js → read-package-up-TCM6I7S2.js} +2 -2
- package/chunks/{record-artifact-SQ2OKRJW.js → record-artifact-4XKZX3UW.js} +4 -4
- package/chunks/ripGrep-YNPFVCZP.js +60 -0
- package/chunks/{ru-LDM3GWVQ.js → ru-6BBHVZZV.js} +64 -5
- package/chunks/{run-qwen-serve-JK2DL7PI.js → run-qwen-serve-DMWV5N6L.js} +395 -74
- package/chunks/runtime-57WWRVHN.js +94 -0
- package/chunks/{scheduler-O4IGVZKK.js → scheduler-YBLGWSIL.js} +51 -51
- package/chunks/{send-message-76GT3JMC.js → send-message-F36YD6KQ.js} +7 -7
- package/chunks/serve-R63NK3CV.js +74 -0
- package/chunks/{server-SGNPKX2O.js → server-Z22GCAXP.js} +3956 -869
- package/chunks/{session-5BNM25EZ.js → session-HKAAI7BN.js} +117 -112
- package/chunks/settings-3EYN66GK.js +118 -0
- package/chunks/shell-6YXINTWJ.js +68 -0
- package/chunks/{skill-I22QK5XS.js → skill-OO57P4X6.js} +24 -24
- package/chunks/spawnChannel-JD7G4VU6.js +70 -0
- package/chunks/{src-BBQSM46M.js → src-G5UPLZSZ.js} +122 -52
- package/chunks/{src-7XL4G4DC.js → src-VLI3TKEY.js} +4 -4
- package/chunks/standalone-update-OB7F4JPZ.js +79 -0
- package/chunks/{startInteractiveUI-JII36UGN.js → startInteractiveUI-73EGLIIH.js} +1775 -1663
- package/chunks/stdioHelpers-UMY72QRP.js +14 -0
- package/chunks/{syntheticOutput-F7LSDCAR.js → syntheticOutput-34H7LGA7.js} +5 -5
- package/chunks/task-create-FRGOEIKY.js +22 -0
- package/chunks/{task-list-TGGJX7EA.js → task-list-OW766BXZ.js} +10 -10
- package/chunks/{task-stop-W7NGTMYQ.js → task-stop-SIR5SNBN.js} +4 -4
- package/chunks/{task-update-XYWMHJGJ.js → task-update-YRA532MT.js} +12 -12
- package/chunks/{team-create-A7NUU5AQ.js → team-create-PECAAPXK.js} +50 -50
- package/chunks/{team-delete-UHQQ2QQX.js → team-delete-6OSECUZC.js} +10 -10
- package/chunks/{team-plan-approval-TOQRJ2KI.js → team-plan-approval-L6F434RY.js} +50 -50
- package/chunks/theme-manager-ZG4RY6GU.js +64 -0
- package/chunks/{todoWrite-C4ZAMSR3.js → todoWrite-YDMFEV4G.js} +6 -6
- package/chunks/{tool-search-SZ4EFS2T.js → tool-search-THVIWAPB.js} +24 -24
- package/chunks/total-session-admission-JOKNRIIA.js +72 -0
- package/chunks/trustedFolders-EOGT3UVS.js +79 -0
- package/chunks/{types-QX5C3CHJ.js → types-JNKGKUJT.js} +2 -2
- package/chunks/updateCheck-2KYEYVSB.js +69 -0
- package/chunks/updateEventEmitter-5MKC7BLQ.js +10 -0
- package/chunks/validateNonInterActiveAuth-EN6ZQSR2.js +190 -0
- package/chunks/{version-NO2XSNNP.js → version-3UEA6ZIR.js} +3 -3
- package/chunks/{web-fetch-UYGMOHW4.js → web-fetch-PAAEQKBW.js} +8 -8
- package/chunks/{workflow-WO2H6NRI.js → workflow-QCCCMYP3.js} +51 -51
- package/chunks/workspace-providers-status-4KMGETOJ.js +71 -0
- package/chunks/workspace-registry-24QFLQYH.js +76 -0
- package/chunks/workspace-service-RVLBMSMZ.js +80 -0
- package/chunks/workspace-skills-status-DS4ZVFTO.js +70 -0
- package/chunks/{write-file-PX2Z7IBE.js → write-file-I3MUDRIE.js} +51 -51
- package/chunks/{yargs-B64EYTCF.js → yargs-6H2AUULL.js} +2 -2
- package/chunks/{zh-J4F6QWQV.js → zh-RQE7I22T.js} +74 -6
- package/chunks/{zh-TW-XVDWOLSW.js → zh-TW-TBPQGHKH.js} +74 -6
- package/cli.js +18 -17
- package/locales/ca.js +85 -7
- package/locales/de.js +84 -7
- package/locales/en.js +101 -7
- package/locales/fr.js +85 -7
- package/locales/ja.js +86 -6
- package/locales/pt.js +84 -7
- package/locales/ru.js +84 -7
- package/locales/zh-TW.js +97 -6
- package/locales/zh.js +97 -6
- package/package.json +3 -6
- package/web-shell/assets/{arc-BWyoJpY2.js → arc-C15hqnJe.js} +1 -1
- package/web-shell/assets/{architectureDiagram-3BPJPVTR-BT0mGrz2.js → architectureDiagram-3BPJPVTR-B-At37J_.js} +1 -1
- package/web-shell/assets/{blockDiagram-GPEHLZMM-BLgUWvyf.js → blockDiagram-GPEHLZMM-B51wjcU7.js} +1 -1
- package/web-shell/assets/{c4Diagram-AAUBKEIU-DYx9M7oU.js → c4Diagram-AAUBKEIU-xBK7BAwN.js} +1 -1
- package/web-shell/assets/channel-CLiQD50f.js +1 -0
- package/web-shell/assets/{chunk-2J33WTMH-CfMHWbuZ.js → chunk-2J33WTMH-xKmLg7Yr.js} +1 -1
- package/web-shell/assets/{chunk-4BX2VUAB-B1URoqEV.js → chunk-4BX2VUAB-BfkdKZCM.js} +1 -1
- package/web-shell/assets/{chunk-55IACEB6-DAIaM4QF.js → chunk-55IACEB6-DT713sZf.js} +1 -1
- package/web-shell/assets/{chunk-727SXJPM-B2X34knw.js → chunk-727SXJPM-CYEeAamv.js} +1 -1
- package/web-shell/assets/{chunk-AQP2D5EJ-Cif-zLTQ.js → chunk-AQP2D5EJ-DBN-5CFd.js} +1 -1
- package/web-shell/assets/{chunk-FMBD7UC4-H18WCXdY.js → chunk-FMBD7UC4-CGZKk4PH.js} +1 -1
- package/web-shell/assets/{chunk-ND2GUHAM-YFtetHi0.js → chunk-ND2GUHAM-qQbC2O-y.js} +1 -1
- package/web-shell/assets/{chunk-QZHKN3VN-By2hiH3r.js → chunk-QZHKN3VN-B3zeXwsX.js} +1 -1
- package/web-shell/assets/classDiagram-4FO5ZUOK-D3sYqow5.js +1 -0
- package/web-shell/assets/classDiagram-v2-Q7XG4LA2-D3sYqow5.js +1 -0
- package/web-shell/assets/{cose-bilkent-S5V4N54A-VrcnnLZu.js → cose-bilkent-S5V4N54A-BKsl1Wvy.js} +1 -1
- package/web-shell/assets/{dagre-BM42HDAG-CGo-IaVV.js → dagre-BM42HDAG-CuuuLiBK.js} +1 -1
- package/web-shell/assets/{diagram-2AECGRRQ-Dl4QjzIB.js → diagram-2AECGRRQ-CG4_eKiV.js} +1 -1
- package/web-shell/assets/{diagram-5GNKFQAL-qMLmsO0u.js → diagram-5GNKFQAL-DSFTmZB1.js} +1 -1
- package/web-shell/assets/{diagram-KO2AKTUF-CHlmuxPI.js → diagram-KO2AKTUF-BxwlEHn8.js} +1 -1
- package/web-shell/assets/{diagram-LMA3HP47-BUwU3GwT.js → diagram-LMA3HP47-BUAg-jMG.js} +1 -1
- package/web-shell/assets/{diagram-OG6HWLK6-HEhwPDUM.js → diagram-OG6HWLK6-BFM2jlO5.js} +1 -1
- package/web-shell/assets/{erDiagram-TEJ5UH35-1n0llBmM.js → erDiagram-TEJ5UH35-CerbFPa2.js} +1 -1
- package/web-shell/assets/{flowDiagram-I6XJVG4X-BN74uMnt.js → flowDiagram-I6XJVG4X-BNeZz5Zz.js} +1 -1
- package/web-shell/assets/{ganttDiagram-6RSMTGT7-BoOq78i3.js → ganttDiagram-6RSMTGT7-CTOogLaM.js} +1 -1
- package/web-shell/assets/{gitGraphDiagram-PVQCEYII-CN8b00c8.js → gitGraphDiagram-PVQCEYII-yxSFkXPj.js} +1 -1
- package/web-shell/assets/index-D5IWFVk1.css +5 -0
- package/web-shell/assets/index-KFJRDhX7.js +783 -0
- package/web-shell/assets/{infoDiagram-5YYISTIA-CCurnIna.js → infoDiagram-5YYISTIA-DYdAUevm.js} +1 -1
- package/web-shell/assets/{ishikawaDiagram-YF4QCWOH-AwuRqdUP.js → ishikawaDiagram-YF4QCWOH-CNuijZ90.js} +1 -1
- package/web-shell/assets/{journeyDiagram-JHISSGLW-B7IICk-E.js → journeyDiagram-JHISSGLW-BTyiuonf.js} +1 -1
- package/web-shell/assets/{kanban-definition-UN3LZRKU-BYF0OKhx.js → kanban-definition-UN3LZRKU-DPJo0Uow.js} +1 -1
- package/web-shell/assets/{linear-GWWguGfD.js → linear-C8wKCbIC.js} +1 -1
- package/web-shell/assets/{mermaid.core-JqtkxvCl.js → mermaid.core-BV5o7nW5.js} +5 -5
- package/web-shell/assets/{mindmap-definition-RKZ34NQL-B0MmHsZ6.js → mindmap-definition-RKZ34NQL-BtLcBmSt.js} +1 -1
- package/web-shell/assets/{pieDiagram-4H26LBE5-DhImUZLQ.js → pieDiagram-4H26LBE5-C22J7A9Q.js} +1 -1
- package/web-shell/assets/{quadrantDiagram-W4KKPZXB-DGeSC3DT.js → quadrantDiagram-W4KKPZXB-DSL10wiL.js} +1 -1
- package/web-shell/assets/{requirementDiagram-4Y6WPE33-DkspY6Re.js → requirementDiagram-4Y6WPE33-feqh0UpX.js} +1 -1
- package/web-shell/assets/{sankeyDiagram-5OEKKPKP-CaOofS2x.js → sankeyDiagram-5OEKKPKP-Z4OVaWaZ.js} +1 -1
- package/web-shell/assets/{sequenceDiagram-3UESZ5HK-DFQ_kFnN.js → sequenceDiagram-3UESZ5HK-DIluIcb1.js} +1 -1
- package/web-shell/assets/{stateDiagram-AJRCARHV-D3snw0Tz.js → stateDiagram-AJRCARHV-hlhnuoYH.js} +1 -1
- package/web-shell/assets/stateDiagram-v2-BHNVJYJU-BhQMwgpl.js +1 -0
- package/web-shell/assets/{timeline-definition-PNZ67QCA-l4zH8nLM.js → timeline-definition-PNZ67QCA-Dqf_CqgL.js} +1 -1
- package/web-shell/assets/{vennDiagram-CIIHVFJN-BnRlA98M.js → vennDiagram-CIIHVFJN-DD2QhaTX.js} +1 -1
- package/web-shell/assets/{wardley-L42UT6IY-BS0xUdmd.js → wardley-L42UT6IY-B2uI85U_.js} +1 -1
- package/web-shell/assets/{wardleyDiagram-YWT4CUSO-DKGBUWyQ.js → wardleyDiagram-YWT4CUSO-U1aJX71g.js} +1 -1
- package/web-shell/assets/{xychartDiagram-2RQKCTM6-DVb2HuOB.js → xychartDiagram-2RQKCTM6-C0ODHUee.js} +1 -1
- package/web-shell/index.html +16 -4
- package/chunks/MaxSizedBox-5DT2SD7B.js +0 -71
- package/chunks/agent-H2DGKS77.js +0 -68
- package/chunks/agent-headless-KFMFIT6J.js +0 -62
- package/chunks/bridge-NA3ZQQKJ.js +0 -78
- package/chunks/chunk-6SHO7WFF.js +0 -79
- package/chunks/chunk-IFEWJXFS.js +0 -37
- package/chunks/chunk-S6RLAIUR.js +0 -23
- package/chunks/chunk-XNXVCNAT.js +0 -88
- package/chunks/contextCommand-LXFZRP4L.js +0 -68
- package/chunks/daemon-status-provider-GJRXY5EN.js +0 -76
- package/chunks/earlyInputCapture-KNOYZ4MJ.js +0 -69
- package/chunks/environment-ATFTYMLZ.js +0 -88
- package/chunks/errors-A54HAADA.js +0 -75
- package/chunks/handleAutoUpdate-CEZJAARW.js +0 -65
- package/chunks/initializer-BRFJKRRX.js +0 -71
- package/chunks/list-KVHF7O4X.js +0 -73
- package/chunks/loadedSettingsAdapter-LL5PSFKX.js +0 -68
- package/chunks/mcp-3GCXRTOQ.js +0 -68
- package/chunks/nonInteractiveCli-PTQI3DV6.js +0 -119
- package/chunks/openaiContentGenerator-YE42PKCY.js +0 -56
- package/chunks/pidfile-NZYSCFRK.js +0 -73
- package/chunks/read-file-33XGP5HF.js +0 -30
- package/chunks/ripGrep-QWZLGTAN.js +0 -60
- package/chunks/serve-JTMIGANH.js +0 -74
- package/chunks/settings-3MI4XXP6.js +0 -118
- package/chunks/shell-YJKBE67T.js +0 -68
- package/chunks/spawnChannel-UNV6W4DU.js +0 -70
- package/chunks/task-create-WCHTB435.js +0 -22
- package/chunks/theme-manager-WZ4RRMMB.js +0 -64
- package/chunks/total-session-admission-ULXJWXFV.js +0 -72
- package/chunks/trustedFolders-LAZZPZ3D.js +0 -79
- package/chunks/updateCheck-KONLM73X.js +0 -65
- package/chunks/validateNonInterActiveAuth-MPKSRCXD.js +0 -184
- package/chunks/workspace-providers-status-3W7E7DFW.js +0 -71
- package/chunks/workspace-registry-SXJZNN3O.js +0 -74
- package/chunks/workspace-service-CZRQZ4Q4.js +0 -80
- package/chunks/workspace-skills-status-K7WFREPD.js +0 -70
- package/node_modules/@qwen-code/audio-capture/dist/index.d.ts +0 -35
- package/node_modules/@qwen-code/audio-capture/dist/index.js +0 -48
- package/node_modules/@qwen-code/audio-capture/dist/index.js.map +0 -1
- package/node_modules/@qwen-code/audio-capture/dist/platform.d.ts +0 -7
- package/node_modules/@qwen-code/audio-capture/dist/platform.js +0 -18
- package/node_modules/@qwen-code/audio-capture/dist/platform.js.map +0 -1
- package/node_modules/@qwen-code/audio-capture/node_modules/node-gyp-build/LICENSE +0 -21
- package/node_modules/@qwen-code/audio-capture/node_modules/node-gyp-build/README.md +0 -58
- package/node_modules/@qwen-code/audio-capture/node_modules/node-gyp-build/SECURITY.md +0 -5
- package/node_modules/@qwen-code/audio-capture/node_modules/node-gyp-build/bin.js +0 -84
- package/node_modules/@qwen-code/audio-capture/node_modules/node-gyp-build/build-test.js +0 -19
- package/node_modules/@qwen-code/audio-capture/node_modules/node-gyp-build/index.js +0 -6
- package/node_modules/@qwen-code/audio-capture/node_modules/node-gyp-build/node-gyp-build.js +0 -207
- package/node_modules/@qwen-code/audio-capture/node_modules/node-gyp-build/optional.js +0 -7
- package/node_modules/@qwen-code/audio-capture/node_modules/node-gyp-build/package.json +0 -43
- package/node_modules/@qwen-code/audio-capture/package.json +0 -30
- 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/linux-arm64/@qwen-code+audio-capture.node +0 -0
- package/node_modules/@qwen-code/audio-capture/prebuilds/linux-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/web-shell/assets/channel-wmPUGHtg.js +0 -1
- package/web-shell/assets/classDiagram-4FO5ZUOK-BA2ljEjW.js +0 -1
- package/web-shell/assets/classDiagram-v2-Q7XG4LA2-BA2ljEjW.js +0 -1
- package/web-shell/assets/index-CNwoO1Cn.js +0 -783
- package/web-shell/assets/index-CWQ0z6kZ.css +0 -5
- package/web-shell/assets/stateDiagram-v2-BHNVJYJU-BbSm_9d0.js +0 -1
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
// Force strict mode and setup for ESM
|
|
2
|
+
"use strict";
|
|
3
|
+
import {
|
|
4
|
+
redactLogCredentials
|
|
5
|
+
} from "./chunk-M5GB774H.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/serve/workspace-remember-errors.ts
|
|
14
|
+
init_esbuild_shims();
|
|
15
|
+
var MAX_REMEMBER_ERROR_DETAILS_CHARS = 1e3;
|
|
16
|
+
var MAX_REMEMBER_ERROR_CAUSE_DEPTH = 50;
|
|
17
|
+
var REMEMBER_ERROR_FORMAT_RE = new RegExp("[\\p{Cf}]|\\p{Variation_Selector}", "gu");
|
|
18
|
+
var REMEMBER_ERROR_SPACE_SEPARATOR_RE = /[\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000]/gu;
|
|
19
|
+
var REMEMBER_ERROR_CREDENTIAL_SEPARATOR_RE = new RegExp("[\\x00-\\x1f\\x7f-\\x9f\\p{Cf}\\u00a0\\u1680\\u2000-\\u200a\\u2028\\u2029\\u202f\\u205f\\u3000]|\\p{Variation_Selector}", "gu");
|
|
20
|
+
var REMEMBER_ERROR_AUTH_SCHEME_INVISIBLE_RE = new RegExp("\\b(Bearer|QQBot)(?:[\\x00-\\x1f\\x7f-\\x9f\\p{Cf}\\u00a0\\u1680\\u2000-\\u200a\\u2028\\u2029\\u202f\\u205f\\u3000]|\\p{Variation_Selector})+(?=[A-Za-z0-9._~+/=-])", "giu");
|
|
21
|
+
var REMEMBER_ERROR_AUTH_TOKEN_WITH_SEPARATORS_RE = new RegExp("\\b(Bearer|QQBot)(?:\\s|[\\x00-\\x1f\\x7f-\\x9f\\p{Cf}\\u00a0\\u1680\\u2000-\\u200a\\u2028\\u2029\\u202f\\u205f\\u3000]|\\p{Variation_Selector})+((?:[A-Za-z0-9._~+/=-]+(?:[\\x00-\\x1f\\x7f-\\x9f\\p{Cf}\\u00a0\\u1680\\u2000-\\u200a\\u2028\\u2029\\u202f\\u205f\\u3000]|\\p{Variation_Selector})+)*[A-Za-z0-9._~+/=-]+)", "giu");
|
|
22
|
+
var REMEMBER_ERROR_BARE_TOKEN_WITH_SEPARATORS_RE = new RegExp("\\b(?:sk-|ghp_|gho_|ghs_|ghu_|github_pat_|glpat-|xox[b]-|xox[p]-)(?:[A-Za-z0-9_-]+(?:[\\x00-\\x1f\\x7f-\\x9f\\p{Cf}\\u00a0\\u1680\\u2000-\\u200a\\u2028\\u2029\\u202f\\u205f\\u3000]|\\p{Variation_Selector})+)*[A-Za-z0-9_-]+", "gu");
|
|
23
|
+
var REMEMBER_ERROR_AWS_KEY_WITH_SEPARATORS_RE = new RegExp("\\b(?:AKIA|ASIA)(?:[A-Z0-9]+(?:[\\x00-\\x1f\\x7f-\\x9f\\p{Cf}\\u00a0\\u1680\\u2000-\\u200a\\u2028\\u2029\\u202f\\u205f\\u3000]|\\p{Variation_Selector})+)*[A-Z0-9]+", "gu");
|
|
24
|
+
var REMEMBER_ERROR_SECRET_ASSIGNMENT_WITH_SEPARATORS_RE = new RegExp("((?:api[_-]?key|token|secret|password|pwd)[_-]?[=:]\\s*)((?:\\S+(?:[\\x00-\\x1f\\x7f-\\x9f\\p{Cf}\\u00a0\\u1680\\u2000-\\u200a\\u2028\\u2029\\u202f\\u205f\\u3000]|\\p{Variation_Selector})+)*\\S+)", "giu");
|
|
25
|
+
var REMEMBER_ERROR_ENV_SECRET_ASSIGNMENT_WITH_SEPARATORS_RE = new RegExp("([A-Z][A-Z0-9]{0,50}(?:_[A-Z0-9]{1,50}){0,10}_(?:KEY|TOKEN|SECRET|PASSWORD)\\s*[=:]\\s*)((?:\\S+(?:[\\x00-\\x1f\\x7f-\\x9f\\p{Cf}\\u00a0\\u1680\\u2000-\\u200a\\u2028\\u2029\\u202f\\u205f\\u3000]|\\p{Variation_Selector})+)*\\S+)", "gu");
|
|
26
|
+
var REMEMBER_ERROR_URL_CREDENTIALS_WITH_SEPARATORS_RE = new RegExp("(\\b[a-z][a-z0-9+.-]{0,31}:\\/\\/)([^/@\\s]*(?:[\\x00-\\x1f\\x7f-\\x9f\\p{Cf}\\u00a0\\u1680\\u2000-\\u200a\\u2028\\u2029\\u202f\\u205f\\u3000]|\\p{Variation_Selector})+[^/@\\s]*)@", "giu");
|
|
27
|
+
var REMEMBER_ERROR_CONTROL_RE = /[\x00-\x1f\x7f-\x9f]/g;
|
|
28
|
+
var DETAIL_SUPPRESSED_REMEMBER_ERROR_CODES = /* @__PURE__ */ new Set([
|
|
29
|
+
"managed_memory_unavailable"
|
|
30
|
+
]);
|
|
31
|
+
function createWorkspaceMemoryExtractionErrorLogger(logger) {
|
|
32
|
+
return (target, err) => {
|
|
33
|
+
logger.warn(`Failed to extract workspace memory error ${target}:`, {
|
|
34
|
+
extractionError: err instanceof Error ? err.message : String(err)
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
__name(createWorkspaceMemoryExtractionErrorLogger, "createWorkspaceMemoryExtractionErrorLogger");
|
|
39
|
+
function reportRememberErrorExtractionFailure(onExtractionError, target, err) {
|
|
40
|
+
try {
|
|
41
|
+
onExtractionError?.(target, err);
|
|
42
|
+
} catch {
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
__name(reportRememberErrorExtractionFailure, "reportRememberErrorExtractionFailure");
|
|
46
|
+
function errorCodeFromRecord(record) {
|
|
47
|
+
if (typeof record["code"] === "string") return record["code"];
|
|
48
|
+
const data = record["data"];
|
|
49
|
+
if (data && typeof data === "object") {
|
|
50
|
+
const dataRecord = data;
|
|
51
|
+
if (typeof dataRecord["errorKind"] === "string") {
|
|
52
|
+
return dataRecord["errorKind"];
|
|
53
|
+
}
|
|
54
|
+
if (typeof dataRecord["code"] === "string") return dataRecord["code"];
|
|
55
|
+
}
|
|
56
|
+
return void 0;
|
|
57
|
+
}
|
|
58
|
+
__name(errorCodeFromRecord, "errorCodeFromRecord");
|
|
59
|
+
function rawRememberErrorCode(err, seen, depth) {
|
|
60
|
+
if (depth > MAX_REMEMBER_ERROR_CAUSE_DEPTH) return void 0;
|
|
61
|
+
if (!err || typeof err !== "object") return void 0;
|
|
62
|
+
if (seen.has(err)) return void 0;
|
|
63
|
+
seen.add(err);
|
|
64
|
+
const record = err;
|
|
65
|
+
const direct = errorCodeFromRecord(record);
|
|
66
|
+
if (direct) return direct;
|
|
67
|
+
const cause = record["cause"];
|
|
68
|
+
if (cause != null) {
|
|
69
|
+
return rawRememberErrorCode(cause, seen, depth + 1);
|
|
70
|
+
}
|
|
71
|
+
return void 0;
|
|
72
|
+
}
|
|
73
|
+
__name(rawRememberErrorCode, "rawRememberErrorCode");
|
|
74
|
+
function extractRememberErrorCode(err, fallback = "remember_failed") {
|
|
75
|
+
return rawRememberErrorCode(err, /* @__PURE__ */ new WeakSet(), 0) ?? fallback;
|
|
76
|
+
}
|
|
77
|
+
__name(extractRememberErrorCode, "extractRememberErrorCode");
|
|
78
|
+
function workspaceMemoryFailureCode(err, fallback = "remember_failed", onExtractionError) {
|
|
79
|
+
try {
|
|
80
|
+
return extractRememberErrorCode(err, fallback);
|
|
81
|
+
} catch (extractionErr) {
|
|
82
|
+
reportRememberErrorExtractionFailure(
|
|
83
|
+
onExtractionError,
|
|
84
|
+
"code",
|
|
85
|
+
extractionErr
|
|
86
|
+
);
|
|
87
|
+
return fallback;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
__name(workspaceMemoryFailureCode, "workspaceMemoryFailureCode");
|
|
91
|
+
function detailFromRecord(record, seen, depth) {
|
|
92
|
+
const data = record["data"];
|
|
93
|
+
if (data && typeof data === "object") {
|
|
94
|
+
const dataRecord = data;
|
|
95
|
+
const details = dataRecord["details"];
|
|
96
|
+
if (typeof details === "string" && details.length > 0) return details;
|
|
97
|
+
const message2 = dataRecord["message"];
|
|
98
|
+
if (typeof message2 === "string" && message2.length > 0) return message2;
|
|
99
|
+
}
|
|
100
|
+
const message = record["message"];
|
|
101
|
+
if (typeof message === "string" && message.length > 0) return message;
|
|
102
|
+
if (typeof data === "string" && data.length > 0) return data;
|
|
103
|
+
const cause = record["cause"];
|
|
104
|
+
if (cause != null) {
|
|
105
|
+
return rawRememberErrorDetails(cause, seen, depth + 1);
|
|
106
|
+
}
|
|
107
|
+
return void 0;
|
|
108
|
+
}
|
|
109
|
+
__name(detailFromRecord, "detailFromRecord");
|
|
110
|
+
function rawRememberErrorDetails(err, seen, depth) {
|
|
111
|
+
if (depth > MAX_REMEMBER_ERROR_CAUSE_DEPTH) return void 0;
|
|
112
|
+
if (typeof err === "string" && err.length > 0) return err;
|
|
113
|
+
if (!err || typeof err !== "object") return void 0;
|
|
114
|
+
if (seen.has(err)) return void 0;
|
|
115
|
+
seen.add(err);
|
|
116
|
+
return detailFromRecord(err, seen, depth);
|
|
117
|
+
}
|
|
118
|
+
__name(rawRememberErrorDetails, "rawRememberErrorDetails");
|
|
119
|
+
function replaceControlChars(details) {
|
|
120
|
+
return details.replace(REMEMBER_ERROR_AUTH_SCHEME_INVISIBLE_RE, "$1 ").replace(REMEMBER_ERROR_FORMAT_RE, "").replace(REMEMBER_ERROR_SPACE_SEPARATOR_RE, " ").replace(REMEMBER_ERROR_CONTROL_RE, " ");
|
|
121
|
+
}
|
|
122
|
+
__name(replaceControlChars, "replaceControlChars");
|
|
123
|
+
function replaceStackControlChars(stack) {
|
|
124
|
+
return stack.replace(REMEMBER_ERROR_AUTH_SCHEME_INVISIBLE_RE, "$1 ").replace(REMEMBER_ERROR_FORMAT_RE, "").replace(REMEMBER_ERROR_SPACE_SEPARATOR_RE, " ").replace(
|
|
125
|
+
REMEMBER_ERROR_CONTROL_RE,
|
|
126
|
+
(char) => char === "\n" || char === "\r" || char === " " ? char : " "
|
|
127
|
+
);
|
|
128
|
+
}
|
|
129
|
+
__name(replaceStackControlChars, "replaceStackControlChars");
|
|
130
|
+
function collapseCredentialSeparators(text) {
|
|
131
|
+
return text.replace(
|
|
132
|
+
REMEMBER_ERROR_URL_CREDENTIALS_WITH_SEPARATORS_RE,
|
|
133
|
+
(_match, scheme, userinfo) => `${scheme}${userinfo.replace(REMEMBER_ERROR_CREDENTIAL_SEPARATOR_RE, "")}@`
|
|
134
|
+
).replace(
|
|
135
|
+
REMEMBER_ERROR_AUTH_TOKEN_WITH_SEPARATORS_RE,
|
|
136
|
+
(_match, scheme, token) => `${scheme} ${token.replace(REMEMBER_ERROR_CREDENTIAL_SEPARATOR_RE, "")}`
|
|
137
|
+
).replace(
|
|
138
|
+
REMEMBER_ERROR_BARE_TOKEN_WITH_SEPARATORS_RE,
|
|
139
|
+
(token) => token.replace(REMEMBER_ERROR_CREDENTIAL_SEPARATOR_RE, "")
|
|
140
|
+
).replace(
|
|
141
|
+
REMEMBER_ERROR_AWS_KEY_WITH_SEPARATORS_RE,
|
|
142
|
+
(token) => token.replace(REMEMBER_ERROR_CREDENTIAL_SEPARATOR_RE, "")
|
|
143
|
+
).replace(
|
|
144
|
+
REMEMBER_ERROR_SECRET_ASSIGNMENT_WITH_SEPARATORS_RE,
|
|
145
|
+
(_match, prefix, value) => `${prefix}${value.replace(REMEMBER_ERROR_CREDENTIAL_SEPARATOR_RE, "")}`
|
|
146
|
+
).replace(
|
|
147
|
+
REMEMBER_ERROR_ENV_SECRET_ASSIGNMENT_WITH_SEPARATORS_RE,
|
|
148
|
+
(_match, prefix, value) => `${prefix}${value.replace(REMEMBER_ERROR_CREDENTIAL_SEPARATOR_RE, "")}`
|
|
149
|
+
);
|
|
150
|
+
}
|
|
151
|
+
__name(collapseCredentialSeparators, "collapseCredentialSeparators");
|
|
152
|
+
function collapseCredentialSeparatorsByStackLine(stack) {
|
|
153
|
+
return stack.split(/(\r\n|\n|\r)/).map(
|
|
154
|
+
(part) => part === "\r\n" || part === "\n" || part === "\r" ? part : collapseCredentialSeparators(part)
|
|
155
|
+
).join("");
|
|
156
|
+
}
|
|
157
|
+
__name(collapseCredentialSeparatorsByStackLine, "collapseCredentialSeparatorsByStackLine");
|
|
158
|
+
function isHighSurrogate(codeUnit) {
|
|
159
|
+
return codeUnit >= 55296 && codeUnit <= 56319;
|
|
160
|
+
}
|
|
161
|
+
__name(isHighSurrogate, "isHighSurrogate");
|
|
162
|
+
function isLowSurrogate(codeUnit) {
|
|
163
|
+
return codeUnit >= 56320 && codeUnit <= 57343;
|
|
164
|
+
}
|
|
165
|
+
__name(isLowSurrogate, "isLowSurrogate");
|
|
166
|
+
function truncateBeforeDanglingSurrogate(details, cutPoint) {
|
|
167
|
+
const beforeCut = details.charCodeAt(cutPoint - 1);
|
|
168
|
+
const atCut = details.charCodeAt(cutPoint);
|
|
169
|
+
if (isHighSurrogate(beforeCut) && isLowSurrogate(atCut)) {
|
|
170
|
+
return cutPoint - 1;
|
|
171
|
+
}
|
|
172
|
+
return cutPoint;
|
|
173
|
+
}
|
|
174
|
+
__name(truncateBeforeDanglingSurrogate, "truncateBeforeDanglingSurrogate");
|
|
175
|
+
function capRememberErrorText(redacted) {
|
|
176
|
+
if (redacted.length <= MAX_REMEMBER_ERROR_DETAILS_CHARS) return redacted;
|
|
177
|
+
const truncationSuffix = "... [truncated]";
|
|
178
|
+
const cutPoint = truncateBeforeDanglingSurrogate(
|
|
179
|
+
redacted,
|
|
180
|
+
MAX_REMEMBER_ERROR_DETAILS_CHARS - truncationSuffix.length
|
|
181
|
+
);
|
|
182
|
+
return `${redacted.slice(0, cutPoint)}${truncationSuffix}`;
|
|
183
|
+
}
|
|
184
|
+
__name(capRememberErrorText, "capRememberErrorText");
|
|
185
|
+
function redactAndCapRememberErrorText(normalized) {
|
|
186
|
+
const redacted = redactLogCredentials(normalized).trim();
|
|
187
|
+
if (!redacted) return void 0;
|
|
188
|
+
return capRememberErrorText(redacted);
|
|
189
|
+
}
|
|
190
|
+
__name(redactAndCapRememberErrorText, "redactAndCapRememberErrorText");
|
|
191
|
+
function sanitizeRememberErrorDetails(details) {
|
|
192
|
+
return redactAndCapRememberErrorText(
|
|
193
|
+
replaceControlChars(collapseCredentialSeparators(details))
|
|
194
|
+
);
|
|
195
|
+
}
|
|
196
|
+
__name(sanitizeRememberErrorDetails, "sanitizeRememberErrorDetails");
|
|
197
|
+
function sanitizeRememberErrorStack(stack) {
|
|
198
|
+
return redactAndCapRememberErrorText(
|
|
199
|
+
replaceStackControlChars(collapseCredentialSeparatorsByStackLine(stack))
|
|
200
|
+
);
|
|
201
|
+
}
|
|
202
|
+
__name(sanitizeRememberErrorStack, "sanitizeRememberErrorStack");
|
|
203
|
+
function extractRememberErrorDetails(err) {
|
|
204
|
+
const raw = rawRememberErrorDetails(err, /* @__PURE__ */ new WeakSet(), 0);
|
|
205
|
+
if (!raw) return void 0;
|
|
206
|
+
return sanitizeRememberErrorDetails(raw);
|
|
207
|
+
}
|
|
208
|
+
__name(extractRememberErrorDetails, "extractRememberErrorDetails");
|
|
209
|
+
function extractRememberErrorStack(err) {
|
|
210
|
+
if (!(err instanceof Error) || !err.stack) return void 0;
|
|
211
|
+
return sanitizeRememberErrorStack(err.stack);
|
|
212
|
+
}
|
|
213
|
+
__name(extractRememberErrorStack, "extractRememberErrorStack");
|
|
214
|
+
function shouldSuppressRememberErrorDetails(code) {
|
|
215
|
+
return DETAIL_SUPPRESSED_REMEMBER_ERROR_CODES.has(code);
|
|
216
|
+
}
|
|
217
|
+
__name(shouldSuppressRememberErrorDetails, "shouldSuppressRememberErrorDetails");
|
|
218
|
+
function workspaceMemoryFailureDiagnostics(err, onExtractionError) {
|
|
219
|
+
let details;
|
|
220
|
+
let stack;
|
|
221
|
+
try {
|
|
222
|
+
details = extractRememberErrorDetails(err);
|
|
223
|
+
} catch (extractionErr) {
|
|
224
|
+
reportRememberErrorExtractionFailure(
|
|
225
|
+
onExtractionError,
|
|
226
|
+
"details",
|
|
227
|
+
extractionErr
|
|
228
|
+
);
|
|
229
|
+
details = void 0;
|
|
230
|
+
}
|
|
231
|
+
try {
|
|
232
|
+
stack = extractRememberErrorStack(err);
|
|
233
|
+
} catch (extractionErr) {
|
|
234
|
+
reportRememberErrorExtractionFailure(
|
|
235
|
+
onExtractionError,
|
|
236
|
+
"stack",
|
|
237
|
+
extractionErr
|
|
238
|
+
);
|
|
239
|
+
stack = void 0;
|
|
240
|
+
}
|
|
241
|
+
return {
|
|
242
|
+
...details ? { details } : {},
|
|
243
|
+
debugDetails: details ?? "<details unavailable>",
|
|
244
|
+
...stack ? { stack } : {}
|
|
245
|
+
};
|
|
246
|
+
}
|
|
247
|
+
__name(workspaceMemoryFailureDiagnostics, "workspaceMemoryFailureDiagnostics");
|
|
248
|
+
|
|
249
|
+
// packages/cli/src/serve/workspace-memory-remember-constants.ts
|
|
250
|
+
init_esbuild_shims();
|
|
251
|
+
var MAX_REMEMBER_CONTENT_BYTES = 64 * 1024;
|
|
252
|
+
|
|
253
|
+
// packages/cli/src/serve/workspace-memory-summaries.ts
|
|
254
|
+
init_esbuild_shims();
|
|
255
|
+
function formatWorkspaceMemoryForgetSummary(removedEntryCount) {
|
|
256
|
+
return removedEntryCount > 0 ? `Forgot ${removedEntryCount} memory entr${removedEntryCount === 1 ? "y" : "ies"}.` : "No managed auto-memory entries matched.";
|
|
257
|
+
}
|
|
258
|
+
__name(formatWorkspaceMemoryForgetSummary, "formatWorkspaceMemoryForgetSummary");
|
|
259
|
+
function formatWorkspaceMemoryDreamSummary(touchedTopicCount) {
|
|
260
|
+
return touchedTopicCount > 0 ? "Managed auto-memory dream completed." : "No managed auto-memory topics changed.";
|
|
261
|
+
}
|
|
262
|
+
__name(formatWorkspaceMemoryDreamSummary, "formatWorkspaceMemoryDreamSummary");
|
|
263
|
+
|
|
264
|
+
// packages/cli/src/serve/validate-server-name.ts
|
|
265
|
+
init_esbuild_shims();
|
|
266
|
+
var VALID_SERVER_NAME = /^[A-Za-z0-9_-]+$/;
|
|
267
|
+
var RESERVED_SERVER_NAMES = /* @__PURE__ */ new Set([
|
|
268
|
+
"__proto__",
|
|
269
|
+
"constructor",
|
|
270
|
+
"prototype"
|
|
271
|
+
]);
|
|
272
|
+
function isValidServerName(name) {
|
|
273
|
+
return typeof name === "string" && name.length > 0 && name.length <= 256 && VALID_SERVER_NAME.test(name) && !RESERVED_SERVER_NAMES.has(name);
|
|
274
|
+
}
|
|
275
|
+
__name(isValidServerName, "isValidServerName");
|
|
276
|
+
|
|
277
|
+
export {
|
|
278
|
+
createWorkspaceMemoryExtractionErrorLogger,
|
|
279
|
+
extractRememberErrorCode,
|
|
280
|
+
workspaceMemoryFailureCode,
|
|
281
|
+
shouldSuppressRememberErrorDetails,
|
|
282
|
+
workspaceMemoryFailureDiagnostics,
|
|
283
|
+
MAX_REMEMBER_CONTENT_BYTES,
|
|
284
|
+
formatWorkspaceMemoryForgetSummary,
|
|
285
|
+
formatWorkspaceMemoryDreamSummary,
|
|
286
|
+
isValidServerName
|
|
287
|
+
};
|
|
288
|
+
/**
|
|
289
|
+
* @license
|
|
290
|
+
* Copyright 2026 Qwen Team
|
|
291
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
292
|
+
*/
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
require_follow_redirects,
|
|
5
5
|
require_form_data,
|
|
6
6
|
require_proxy_from_env
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-S3TWXGKA.js";
|
|
8
8
|
import {
|
|
9
9
|
require_extension,
|
|
10
10
|
require_permessage_deflate,
|
|
@@ -14,10 +14,10 @@ import {
|
|
|
14
14
|
require_subprotocol,
|
|
15
15
|
require_websocket,
|
|
16
16
|
require_websocket_server
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-FCMNKVXT.js";
|
|
18
18
|
import {
|
|
19
19
|
init_esbuild_shims
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-5O2XNYP6.js";
|
|
21
21
|
import {
|
|
22
22
|
__commonJS,
|
|
23
23
|
__name,
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
// Force strict mode and setup for ESM
|
|
2
2
|
"use strict";
|
|
3
|
-
import {
|
|
4
|
-
writeStderrLine
|
|
5
|
-
} from "./chunk-Y6Z2O3WR.js";
|
|
6
3
|
import {
|
|
7
4
|
arePathsEquivalent,
|
|
8
5
|
getPathComparisonVariants,
|
|
9
6
|
isWithinRoot,
|
|
10
7
|
require_strip_json_comments
|
|
11
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-RDJSGHZE.js";
|
|
9
|
+
import {
|
|
10
|
+
writeStderrLine
|
|
11
|
+
} from "./chunk-YUZI3WAC.js";
|
|
12
12
|
import {
|
|
13
13
|
ideContextStore
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-NVYTCB5Z.js";
|
|
15
15
|
import {
|
|
16
16
|
atomicWriteFileSync
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-ZLXQN2QS.js";
|
|
18
18
|
import {
|
|
19
19
|
FatalConfigError,
|
|
20
20
|
Storage,
|
|
21
21
|
getErrorMessage
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-J4TSQ5EQ.js";
|
|
23
23
|
import {
|
|
24
24
|
init_esbuild_shims
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-5O2XNYP6.js";
|
|
26
26
|
import {
|
|
27
27
|
__commonJS,
|
|
28
28
|
__name,
|
|
@@ -1,26 +1,24 @@
|
|
|
1
1
|
// Force strict mode and setup for ESM
|
|
2
2
|
"use strict";
|
|
3
|
-
import {
|
|
4
|
-
theme
|
|
5
|
-
} from "./chunk-IFEWJXFS.js";
|
|
6
3
|
import {
|
|
7
4
|
Box_default,
|
|
8
5
|
Text,
|
|
9
|
-
require_jsx_runtime
|
|
10
|
-
|
|
6
|
+
require_jsx_runtime,
|
|
7
|
+
theme
|
|
8
|
+
} from "./chunk-CNEIYWSA.js";
|
|
11
9
|
import {
|
|
12
10
|
require_react
|
|
13
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-HTHUX2T5.js";
|
|
14
12
|
import {
|
|
15
13
|
stringWidth,
|
|
16
14
|
toCodePoints
|
|
17
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-Q6I5QHMH.js";
|
|
18
16
|
import {
|
|
19
17
|
createDebugLogger
|
|
20
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-J4TSQ5EQ.js";
|
|
21
19
|
import {
|
|
22
20
|
init_esbuild_shims
|
|
23
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-5O2XNYP6.js";
|
|
24
22
|
import {
|
|
25
23
|
__name,
|
|
26
24
|
__toESM
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
MAX_WORKSPACE_PATH_LENGTH
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-W7FJ3N32.js";
|
|
6
6
|
import {
|
|
7
7
|
init_esbuild_shims
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-5O2XNYP6.js";
|
|
9
9
|
import {
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-J2S4EL5Y.js";
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
BaseToolInvocation,
|
|
6
6
|
ToolDisplayNames,
|
|
7
7
|
ToolNames
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-B5ORX3FG.js";
|
|
9
9
|
import {
|
|
10
10
|
init_esbuild_shims
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-5O2XNYP6.js";
|
|
12
12
|
import {
|
|
13
13
|
__name
|
|
14
14
|
} from "./chunk-J2S4EL5Y.js";
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
init_esm,
|
|
5
5
|
isSpanContextValid,
|
|
6
6
|
trace
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-TB6UDU4T.js";
|
|
8
8
|
import {
|
|
9
9
|
init_esbuild_shims
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-5O2XNYP6.js";
|
|
11
11
|
import {
|
|
12
12
|
__name
|
|
13
13
|
} from "./chunk-J2S4EL5Y.js";
|
|
@@ -1122,6 +1122,7 @@ export {
|
|
|
1122
1122
|
formatTraceparent,
|
|
1123
1123
|
setShellTracePropagation,
|
|
1124
1124
|
isShellTracePropagationEnabled,
|
|
1125
|
+
isDebugLogFileEnabled,
|
|
1125
1126
|
isDebugLoggingDegraded,
|
|
1126
1127
|
resetDebugLoggingState,
|
|
1127
1128
|
setDebugLogSession,
|
|
@@ -2,30 +2,31 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
createDebugLogger
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-J4TSQ5EQ.js";
|
|
6
6
|
import {
|
|
7
7
|
init_esbuild_shims
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-5O2XNYP6.js";
|
|
9
9
|
import {
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-J2S4EL5Y.js";
|
|
12
12
|
|
|
13
13
|
// packages/core/src/utils/request-tokenizer/textTokenizer.ts
|
|
14
14
|
init_esbuild_shims();
|
|
15
|
+
var NON_ASCII_RE = /[\u0080-\uffff]/;
|
|
15
16
|
function estimateTextTokens(text) {
|
|
16
17
|
if (!text || text.length === 0) {
|
|
17
18
|
return 0;
|
|
18
19
|
}
|
|
19
|
-
|
|
20
|
+
if (!NON_ASCII_RE.test(text)) {
|
|
21
|
+
return Math.ceil(text.length / 4);
|
|
22
|
+
}
|
|
20
23
|
let nonAsciiChars = 0;
|
|
21
24
|
for (let i = 0; i < text.length; i++) {
|
|
22
|
-
|
|
23
|
-
if (charCode < 128) {
|
|
24
|
-
asciiChars++;
|
|
25
|
-
} else {
|
|
25
|
+
if (text.charCodeAt(i) >= 128) {
|
|
26
26
|
nonAsciiChars++;
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
|
+
const asciiChars = text.length - nonAsciiChars;
|
|
29
30
|
const tokens = asciiChars / 4 + nonAsciiChars * 1.1;
|
|
30
31
|
return Math.ceil(tokens);
|
|
31
32
|
}
|