@qwen-code/qwen-code 0.21.0 → 0.21.1
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 +2 -0
- package/bundled/qc-helper/docs/configuration/settings.md +38 -28
- package/bundled/qc-helper/docs/features/channels/_meta.ts +1 -0
- package/bundled/qc-helper/docs/features/channels/github.md +107 -0
- package/bundled/qc-helper/docs/features/channels/overview.md +61 -6
- package/bundled/qc-helper/docs/features/code-review.md +1 -1
- package/bundled/qc-helper/docs/features/hooks.md +52 -15
- package/bundled/qc-helper/docs/features/mcp.md +9 -1
- package/bundled/qc-helper/docs/features/scheduled-tasks.md +3 -1
- package/bundled/qc-helper/docs/features/sub-agents.md +20 -0
- package/bundled/qc-helper/docs/qwen-serve.md +4 -2
- package/bundled/qc-helper/docs/reference/keyboard-shortcuts.md +2 -2
- package/bundled/qc-helper/docs/support/troubleshooting.md +2 -1
- package/bundled/review/DESIGN.md +19 -0
- package/bundled/review/SKILL.md +120 -61
- package/chunks/MaxSizedBox-VI3ROJJA.js +84 -0
- package/chunks/{StandaloneSessionPicker-BIRMPLRD.js → StandaloneSessionPicker-LYXKD2EV.js} +67 -68
- package/chunks/{acp-startup-profiler-RV3IV562.js → acp-startup-profiler-DFVPFQ6C.js} +2 -2
- package/chunks/{acpAgent-6J2U72PQ.js → acpAgent-WN5SRDQO.js} +1373 -553
- package/chunks/agent-K6ECSM64.js +80 -0
- package/chunks/agent-headless-NO4Y2HOE.js +74 -0
- package/chunks/{anthropicContentGenerator-75BKLTSP.js → anthropicContentGenerator-V2QOGVYD.js} +79 -27
- package/chunks/{artifact-tool-Y5T7GG7F.js → artifact-tool-6K6U7XYJ.js} +4 -4
- package/chunks/{askUserQuestion-2H6747FR.js → askUserQuestion-GD2IJJ7I.js} +4 -4
- package/chunks/bridge-3KJEWDNE.js +90 -0
- package/chunks/{build-RV63TIRH.js → build-S6DO7LMM.js} +1 -1
- package/chunks/{ca-25EDXPFZ.js → ca-6W3SK7OQ.js} +6 -1
- package/chunks/channel-management-service-XR7GZSWF.js +403 -0
- package/chunks/channel-settings-store-HW4FXXUA.js +87 -0
- package/chunks/{channel-worker-group-2ZD7TVAT.js → channel-worker-group-XDPTDWTX.js} +11 -6
- package/chunks/{channel-worker-manager-4OA4BCGB.js → channel-worker-manager-YYEHVRRE.js} +11 -6
- package/chunks/{channel-worker-supervisor-V7KCFJTS.js → channel-worker-supervisor-74HTWA2G.js} +7 -5
- package/chunks/{chunk-M5JM7OSF.js → chunk-2DN4J57Y.js} +2 -3
- package/chunks/{chunk-ETSW4KLJ.js → chunk-2FAK6PNM.js} +2 -2
- package/chunks/{chunk-BPJSQIJX.js → chunk-2J3OJGTL.js} +0 -2
- package/chunks/{chunk-EPDRMGT4.js → chunk-2LKVPASC.js} +4 -28
- package/chunks/{chunk-PWTZEM3C.js → chunk-2LQTH543.js} +3 -37
- package/chunks/{chunk-LH2BYDQ5.js → chunk-2N7CODY5.js} +18 -12
- package/chunks/{chunk-4WIZGAH3.js → chunk-2XSLTRFZ.js} +6 -58
- package/chunks/{chunk-FSITMZJH.js → chunk-3EFXSQCM.js} +18 -9
- package/chunks/{chunk-HIJQF5B5.js → chunk-3L2SPEBH.js} +1 -1
- package/chunks/{chunk-BIQWWWJN.js → chunk-4G2BISNC.js} +1 -1
- package/chunks/{chunk-PWVFN2LF.js → chunk-52ZSWYEG.js} +1 -1
- package/chunks/{chunk-ZJHVAS7M.js → chunk-5KTQXHPY.js} +4 -5
- package/chunks/{chunk-PC6JANNU.js → chunk-5MKRTI4T.js} +4 -4
- package/chunks/{chunk-DHHOYAPR.js → chunk-5TBMQLGG.js} +7 -7
- package/chunks/{chunk-A4UCTEB5.js → chunk-5WV5S2GT.js} +0 -1
- package/chunks/chunk-5YKDXHUY.js +463 -0
- package/chunks/chunk-5ZF5XXTS.js +363 -0
- package/chunks/{chunk-K4XWPEWB.js → chunk-64LQLPL7.js} +4 -33
- package/chunks/{chunk-YPE6A4GC.js → chunk-657BH7VM.js} +2 -2
- package/chunks/{chunk-R5AFZNQW.js → chunk-65PQENQP.js} +14 -7
- package/chunks/{chunk-RIBKPMRP.js → chunk-6PE7N3A4.js} +18 -7
- package/chunks/{chunk-JZA3JUDJ.js → chunk-6QIGFD5W.js} +1 -1
- package/chunks/{chunk-JVPM2ULZ.js → chunk-6RPMI2AB.js} +6 -6
- package/chunks/{chunk-OHNBB4XR.js → chunk-75GFAX4R.js} +1 -1
- package/chunks/{chunk-NIBLUX3Y.js → chunk-75MIQ3LV.js} +148 -21
- package/chunks/{chunk-U7M2DMGW.js → chunk-7AEJDLRA.js} +130 -5
- package/chunks/{chunk-TPRQ7RZH.js → chunk-7BAU433D.js} +2293 -945
- package/chunks/{chunk-M4FMGVY4.js → chunk-7DXQIJID.js} +3 -3
- package/chunks/{chunk-RWTEFFPU.js → chunk-7I5GTCT4.js} +620 -383
- package/chunks/{chunk-A5L3JMUA.js → chunk-7XATOOE7.js} +18 -4
- package/chunks/{chunk-Y34KJKDC.js → chunk-A2D5BAVP.js} +1 -1
- package/chunks/{chunk-5I2IWRSH.js → chunk-A3NDJ5SB.js} +2 -2
- package/chunks/{chunk-OFDOK3VM.js → chunk-A4COXFB3.js} +8 -13
- package/chunks/{chunk-JLU636DO.js → chunk-ALMR3E6Q.js} +1 -0
- package/chunks/{chunk-Q4M4MDQ4.js → chunk-AQIDMUGU.js} +1 -1
- package/chunks/{chunk-PJIZUQVC.js → chunk-AZQ3DT76.js} +2 -2
- package/chunks/{chunk-UH3WSE5L.js → chunk-B4AJNNOL.js} +1 -6
- package/chunks/{chunk-BJX6ZSUK.js → chunk-BCZFQXWK.js} +2 -2
- package/chunks/{chunk-MB4MZHMJ.js → chunk-BGTQCTQW.js} +211 -522
- package/chunks/{chunk-MZAXJAUM.js → chunk-BMFALVGQ.js} +1 -1
- package/chunks/{chunk-PSOO6YXD.js → chunk-BNWB5CYE.js} +9 -7
- package/chunks/{chunk-BKHWX6I2.js → chunk-BPZKP57P.js} +11 -3
- package/chunks/{chunk-H4SBPHSA.js → chunk-CAPPWD3X.js} +3 -3
- package/chunks/{chunk-LQIW3YFY.js → chunk-CQL64ESB.js} +7 -7
- package/chunks/{chunk-TOFQCPDC.js → chunk-CVHIL5IG.js} +4 -5
- package/chunks/{chunk-XVNQMZ2I.js → chunk-DGEIYUC3.js} +0 -1
- package/chunks/{chunk-BPZALHVR.js → chunk-DI35ZN7T.js} +1 -1
- package/chunks/chunk-DZLYR4U3.js +1252 -0
- package/chunks/{chunk-TEHGS6UP.js → chunk-EIF3FXTB.js} +117 -24
- package/chunks/{chunk-2SCDWPXI.js → chunk-EJGJIBRS.js} +5 -5
- package/chunks/{chunk-7MVVZO4N.js → chunk-EVKE2FZL.js} +4 -4
- package/chunks/{chunk-OKY7HXPG.js → chunk-FNMZK765.js} +2 -2
- package/chunks/{chunk-VIA5XA4U.js → chunk-FTD6DP4T.js} +3 -1
- package/chunks/chunk-FYJ7W2PI.js +194 -0
- package/chunks/{chunk-L5UHQJTJ.js → chunk-GATT5TKW.js} +1 -1
- package/chunks/{chunk-X5XDDSSH.js → chunk-GEBV2JGB.js} +28 -5
- package/chunks/{chunk-VAK25FTU.js → chunk-GKX7E4CO.js} +1 -1
- package/chunks/{chunk-LS77BEZP.js → chunk-GLCZKT5V.js} +1 -5
- package/chunks/{chunk-5NBDS5S6.js → chunk-GNR2RNMP.js} +162 -7
- package/chunks/{chunk-YH6G52F2.js → chunk-GXIJHV66.js} +4 -4
- package/chunks/chunk-GZ3RCT54.js +76 -0
- package/chunks/{chunk-2X55UKQE.js → chunk-HMRM2A3U.js} +3 -3
- package/chunks/chunk-HV26XH34.js +319 -0
- package/chunks/{chunk-LB6DUZ26.js → chunk-J7OACQDE.js} +229 -172
- package/chunks/{chunk-K36B6G2O.js → chunk-JFMA7Y5M.js} +5 -5
- package/chunks/{chunk-55DJUCI2.js → chunk-JHNRZMHI.js} +53 -43
- package/chunks/{chunk-63P4EL5V.js → chunk-JMONIXMJ.js} +1 -1
- package/chunks/{chunk-L26JL52R.js → chunk-JSD33JG6.js} +47 -64
- package/chunks/{chunk-YBL3QUDD.js → chunk-JTV5K7NH.js} +1 -1
- package/chunks/{chunk-RZIX2G32.js → chunk-JX27F6QS.js} +1 -1
- package/chunks/chunk-JYBU6YUE.js +378 -0
- package/chunks/{chunk-7JURR4JT.js → chunk-KAMYKP7E.js} +167 -81
- package/chunks/{chunk-KMQ33DO4.js → chunk-KCO4FLFJ.js} +4 -4
- package/chunks/{chunk-2W3OOD4W.js → chunk-L55JWS76.js} +6 -3
- package/chunks/{chunk-RHLZR4E5.js → chunk-LGAOC3ZS.js} +1 -1
- package/chunks/{chunk-EBJQ6AXW.js → chunk-LO4ROVP4.js} +262 -16
- package/chunks/{chunk-NH6KE4JX.js → chunk-LW3RFMG7.js} +3 -3
- package/chunks/{chunk-J56UI34H.js → chunk-M7OONWYU.js} +2 -2
- package/chunks/{chunk-2NH6DYI4.js → chunk-MHAIJPTD.js} +12 -12
- package/chunks/{chunk-FODK6UMO.js → chunk-MPHPFVKK.js} +0 -2
- package/chunks/{chunk-VRYUBFMC.js → chunk-MR5EAQ5M.js} +1 -1
- package/chunks/{chunk-JESCGQM3.js → chunk-NAVJD2PQ.js} +8 -7
- package/chunks/{chunk-H5FFA6TH.js → chunk-NOKIVHOL.js} +16 -3
- package/chunks/{chunk-6OUGMXDC.js → chunk-NWNEANAT.js} +7 -7
- package/chunks/{chunk-SQCQ4KO2.js → chunk-OCESJA77.js} +393 -330
- package/chunks/chunk-OCPBI7J5.js +18 -0
- package/chunks/{chunk-E5TUC6CA.js → chunk-OKF7JF3R.js} +3 -3
- package/chunks/{chunk-TGILQ3YH.js → chunk-P4WOAOJW.js} +141 -64
- package/chunks/{chunk-ZFDTEDCF.js → chunk-PB3MBFKG.js} +6 -6
- package/chunks/{chunk-3RN6GBKS.js → chunk-PLDQBIO6.js} +1 -1
- package/chunks/{chunk-FNQ6T3CV.js → chunk-PONHVBRT.js} +10 -7
- package/chunks/{chunk-CIKQ7KKO.js → chunk-PT722TDT.js} +271 -376
- package/chunks/chunk-Q43KPN7X.js +2196 -0
- package/chunks/{chunk-VDDGDZMA.js → chunk-QHWCP53L.js} +14 -7
- package/chunks/{chunk-MVSUYZDT.js → chunk-QIZKCVM3.js} +4 -4
- package/chunks/{chunk-QAF7NMK7.js → chunk-RCUQIPTN.js} +1 -1
- package/chunks/{chunk-6FGBXPWM.js → chunk-RPLGZJV2.js} +38 -44
- package/chunks/{chunk-GSN55ZRI.js → chunk-S4WJVPZW.js} +19 -7
- package/chunks/{chunk-6AM5D4ME.js → chunk-S6LOFUVP.js} +0 -12
- package/chunks/{chunk-BULDBTYC.js → chunk-S7W2GKIO.js} +1 -28
- package/chunks/{chunk-MUP3T3AD.js → chunk-SGFT55XI.js} +1 -35
- package/chunks/{chunk-VYPFXUCB.js → chunk-SZ3KHTDR.js} +1 -1
- package/chunks/chunk-T26EAKDL.js +13 -0
- package/chunks/{chunk-UDX5OBWR.js → chunk-T2QMKU3R.js} +80 -2
- package/chunks/{chunk-IKYJHJNF.js → chunk-T3O2B4XO.js} +3 -3
- package/chunks/{chunk-RF3EXIHJ.js → chunk-T4TXDL7G.js} +32 -21
- package/chunks/{chunk-J24WCGIN.js → chunk-TBBV36Y4.js} +4 -4
- package/chunks/{chunk-LKEJ26GS.js → chunk-TCIFAA7K.js} +16 -11
- package/chunks/{chunk-JXJFVC6E.js → chunk-TDL6LB4K.js} +46 -11
- package/chunks/{chunk-7ZCNENPP.js → chunk-TFRMVU6R.js} +1 -1
- package/chunks/{chunk-VULLI6WQ.js → chunk-TV64SXKD.js} +6 -6
- package/chunks/{chunk-FQK6JAFG.js → chunk-U3E3UQAA.js} +4 -4
- package/chunks/{chunk-LK7CHLVP.js → chunk-U4VTUMMK.js} +0 -60
- package/chunks/{chunk-ACY3A37B.js → chunk-UBEPNVDI.js} +23 -18
- package/chunks/{chunk-NL7LTRLR.js → chunk-UHUSJ6X7.js} +29 -68
- package/chunks/{chunk-ZOIFNCKL.js → chunk-UPUG4GXM.js} +3 -23
- package/chunks/{chunk-6GMVPFB2.js → chunk-UWMLWVCA.js} +19 -6
- package/chunks/{chunk-IKCX4CCL.js → chunk-VCPIZRYH.js} +118 -95
- package/chunks/{chunk-ZNAUOR2I.js → chunk-VWOOBLTY.js} +2 -2
- package/chunks/{chunk-YX324OPW.js → chunk-VYOXCEPJ.js} +1 -1
- package/chunks/{chunk-USTWD7QV.js → chunk-W4MIWP6M.js} +26 -16
- package/chunks/{chunk-HTR4WV6U.js → chunk-W4RQUHY3.js} +31 -1
- package/chunks/{chunk-DLWL3Z7A.js → chunk-WBSMNTSV.js} +3 -3
- package/chunks/{chunk-IO3IX5Q4.js → chunk-WUZ7H6DP.js} +1 -1
- package/chunks/{chunk-2JZBVYTU.js → chunk-WZRWHXFE.js} +1 -8
- package/chunks/{chunk-PHOF65IG.js → chunk-X5WNMMIA.js} +23553 -34321
- package/chunks/chunk-XBYYDKAZ.js +80 -0
- package/chunks/{chunk-COH43MRJ.js → chunk-XCGIMOLN.js} +27 -1
- package/chunks/{chunk-WCXCRJYB.js → chunk-XFZYFU3I.js} +1 -1
- package/chunks/{chunk-3QMGYBFN.js → chunk-XWWKIXVD.js} +1 -80
- package/chunks/{chunk-3SJ43L4W.js → chunk-XZC5VLBZ.js} +2 -0
- package/chunks/{chunk-UUUTRMI2.js → chunk-Y4IHBGBP.js} +1 -1
- package/chunks/{chunk-PR75REBZ.js → chunk-Y6AXW2OG.js} +12 -82
- package/chunks/{chunk-IPUUTYMV.js → chunk-YDLJGZHL.js} +1 -1
- package/chunks/{chunk-IJTOWOD7.js → chunk-YGF33UXG.js} +82 -8
- package/chunks/chunk-Z4X5MTRT.js +133 -0
- package/chunks/{chunk-UW5EOVUN.js → chunk-ZBVS26BY.js} +4 -4
- package/chunks/{chunk-ZD6UTE4A.js → chunk-ZHBO7WVX.js} +1 -1
- package/chunks/{chunk-HTO4JFDZ.js → chunk-ZPJWUGCS.js} +0 -1
- package/chunks/{chunk-KIM5GUMA.js → chunk-ZURDMIDR.js} +368 -156
- package/chunks/{computer-use-SOQ4E3VX.js → computer-use-ZTIDHMMA.js} +49 -50
- package/chunks/{config-utils-7V7GGIW6.js → config-utils-NYSXDMEQ.js} +4 -3
- package/chunks/contextCommand-2PIEU37Z.js +79 -0
- package/chunks/core-runtime-3XEYLQFK.js +133 -0
- package/chunks/{create-sub-session-QRJLW5BV.js → create-sub-session-R76FVXCI.js} +46 -47
- package/chunks/{create-sub-session-IWW2IZ2T.js → create-sub-session-SBYUMSSS.js} +3 -3
- package/chunks/{cron-create-YIID5XAW.js → cron-create-2QK6TCEC.js} +6 -6
- package/chunks/{cron-delete-ZVHYCEP2.js → cron-delete-FDCDFYMG.js} +5 -5
- package/chunks/{cron-list-XEGS463Q.js → cron-list-XN3WVBTP.js} +6 -6
- package/chunks/{daemon-YO6433NF.js → daemon-Q2AB5Z23.js} +356 -15
- package/chunks/daemon-status-provider-3XJI6CAL.js +89 -0
- package/chunks/daemon-trust-policy-ILUDTLHD.js +84 -0
- package/chunks/daemon-trust-policy-monitor-HS3PKKRO.js +171 -0
- package/chunks/{de-HGRCYDEJ.js → de-SY6O76BF.js} +6 -1
- package/chunks/deferred-core-runtime-X4QV662U.js +88 -0
- package/chunks/dist-BSTVRPMT.js +4227 -0
- package/chunks/{dist-46NQKLTW.js → dist-DOLYHMXE.js} +2 -2
- package/chunks/{dist-AIKFMUKK.js → dist-HVRQ2CFL.js} +271 -11
- package/chunks/{dist-WEAHOXDM.js → dist-IXQEQWRG.js} +2 -1
- package/chunks/{dist-BBLXMS3N.js → dist-SSU66DM4.js} +3 -3
- package/chunks/{dist-F6IBUDR4.js → dist-SV7Q3AWJ.js} +1 -1
- package/chunks/{dist-YFNEUWSE.js → dist-YGBBMK3Z.js} +1 -1
- package/chunks/earlyInputCapture-XKLZT7ZD.js +81 -0
- package/chunks/{edit-OBDSQURM.js → edit-HHGIOTQ2.js} +47 -48
- package/chunks/{en-MTWBNGDO.js → en-NBK3JKCE.js} +9 -1
- package/chunks/{enter-worktree-U6MRPQ2P.js → enter-worktree-ZN7PUQ46.js} +47 -48
- package/chunks/{enterPlanMode-BC5QUZZ2.js → enterPlanMode-EIFIDSIV.js} +47 -48
- package/chunks/{environment-W5UFC2CH.js → environment-XXQ75D2Q.js} +48 -49
- package/chunks/errors-4GMVU7CK.js +87 -0
- package/chunks/esm-K5FARBNI.js +5548 -0
- package/chunks/{exit-worktree-DGNYMECB.js → exit-worktree-GXMI4ATY.js} +47 -48
- package/chunks/exitPlanMode-34UVY7M6.js +72 -0
- package/chunks/{fast-path-JJZFJANL.js → fast-path-VPIVA7L6.js} +16 -6
- package/chunks/{fr-45RLL55O.js → fr-4KG5V7UT.js} +6 -1
- package/chunks/{gemini-QS36EBZV.js → gemini-4BWIK4WD.js} +102 -99
- package/chunks/{geminiContentGenerator-AG4KB6CV.js → geminiContentGenerator-3XVV5MSS.js} +40 -11
- package/chunks/{getMachineId-bsd-V7W3GODC.js → getMachineId-bsd-FG7IUY6U.js} +1 -1
- package/chunks/{getMachineId-darwin-TDO75DQP.js → getMachineId-darwin-GLCJI2RA.js} +1 -1
- package/chunks/{getMachineId-linux-TF43WQT2.js → getMachineId-linux-O6OPPAKO.js} +1 -1
- package/chunks/{getMachineId-unsupported-ZGUO3TXT.js → getMachineId-unsupported-S6CKYVGC.js} +1 -1
- package/chunks/{getMachineId-win-ECFYZZFQ.js → getMachineId-win-X5SRNEH7.js} +1 -1
- package/chunks/{glob-V7R3PSK3.js → glob-TZ2ABCJG.js} +47 -48
- package/chunks/{grep-QYPSK7OP.js → grep-BEF463NA.js} +49 -49
- package/chunks/handleAutoUpdate-L6ERF36Y.js +80 -0
- package/chunks/i18n-FMM5FDXR.js +96 -0
- package/chunks/{image-gen-Z3VPGKRC.js → image-gen-HHVLF7HS.js} +12 -12
- package/chunks/initializer-625TIAIO.js +85 -0
- package/chunks/installationInfo-6AM4I2Y3.js +79 -0
- package/chunks/{ja-B7DF7DFG.js → ja-F3GSQXMF.js} +6 -1
- package/chunks/{keychain-token-storage-MDTG3WRM.js → keychain-token-storage-72IYCAZV.js} +3 -3
- package/chunks/lib-RUF3WZA6.js +9 -0
- package/chunks/list-L2GA674Y.js +88 -0
- package/chunks/{list-agents-5KJJHR6I.js → list-agents-R6KDXQR3.js} +3 -3
- package/chunks/loadedSettingsAdapter-SPUTNKAV.js +82 -0
- package/chunks/{loggingContentGenerator-HS3S5H3Q.js → loggingContentGenerator-LKOF7XI7.js} +78 -113
- package/chunks/{loop-wakeup-FXKNNYSY.js → loop-wakeup-3IQKCYAH.js} +7 -7
- package/chunks/{ls-NTK6VOQJ.js → ls-DKZ37A7N.js} +5 -5
- package/chunks/{lsp-2JI24STP.js → lsp-QNWN7KN3.js} +3 -3
- package/chunks/{managed-npm-update-JYEMMXA3.js → managed-npm-update-ACQGGIN5.js} +47 -48
- package/chunks/mcp-SZLHKFJW.js +82 -0
- package/chunks/{monitor-R3ODH5U6.js → monitor-DF52UVHI.js} +47 -48
- package/chunks/nonInteractiveCli-5T7KYKLK.js +144 -0
- package/chunks/{notebook-edit-BNOK452R.js → notebook-edit-FCWS4XVN.js} +47 -48
- package/chunks/{openaiContentGenerator-WMCU3O2H.js → openaiContentGenerator-7LDK3DCJ.js} +26 -27
- package/chunks/pidfile-6ERW3DF4.js +85 -0
- package/chunks/process-registry-2CHQBXH5.js +157 -0
- package/chunks/{processUtils-RT7UNCC2.js → processUtils-COKZAMUP.js} +2 -2
- package/chunks/{pt-22Q3FP73.js → pt-EQ33KWEN.js} +6 -1
- package/chunks/{qwenContentGenerator-HHCRK4SX.js → qwenContentGenerator-TKWUMR7N.js} +52 -53
- package/chunks/{qwenOAuth2-OWLB5AKH.js → qwenOAuth2-7HMU47SF.js} +10 -10
- package/chunks/read-file-X6DRC574.js +29 -0
- package/chunks/{read-mcp-resource-4DKQWGHD.js → read-mcp-resource-GFTWYXMK.js} +4 -4
- package/chunks/{record-artifact-RQKFYO5B.js → record-artifact-XAMSFSW4.js} +3 -3
- package/chunks/resumeHistoryUtils-PFPM2GWM.js +90 -0
- package/chunks/ripGrep-OWV2IVJC.js +72 -0
- package/chunks/{ru-FZCNZHDC.js → ru-7OZAUKGG.js} +6 -1
- package/chunks/{run-qwen-serve-FU6HEM4J.js → run-qwen-serve-TSTCO4XE.js} +953 -249
- package/chunks/{runtime-XXRRTNP6.js → runtime-DAUPSUKI.js} +56 -56
- package/chunks/{scheduler-G2ZS2Z7E.js → scheduler-KMADMT26.js} +46 -47
- package/chunks/{sdk-exporters-grpc-AK3LGHNO.js → sdk-exporters-grpc-54L4LS5L.js} +4 -4
- package/chunks/{sdk-exporters-http-FYBSUCPD.js → sdk-exporters-http-WO556XNU.js} +7 -7
- package/chunks/{sdk-impl-GMVPB7NB.js → sdk-impl-LPAVACSF.js} +14 -14
- package/chunks/{send-message-Q6OOR6BR.js → send-message-SAWK4DZX.js} +6 -6
- package/chunks/serve-NNRWS6F4.js +88 -0
- package/chunks/{server-4UMH7OIZ.js → server-WEH7DVCH.js} +3691 -823
- package/chunks/{session-K3O3Q2SV.js → session-WXC56V2I.js} +98 -95
- package/chunks/{settings-CR2EWTBA.js → settings-DJDXFDZ3.js} +55 -56
- package/chunks/shell-JN5VRQXD.js +82 -0
- package/chunks/{skill-I3SDA4MB.js → skill-SGXPKJCS.js} +20 -21
- package/chunks/skill-settings-VJ5PDMZI.js +90 -0
- package/chunks/spawnChannel-ETMJW7YX.js +81 -0
- package/chunks/standalone-update-MK3Z7KBI.js +91 -0
- package/chunks/{startInteractiveUI-SLZGHRPH.js → startInteractiveUI-ZCGIXPGT.js} +724 -383
- package/chunks/{syntheticOutput-I3757IWH.js → syntheticOutput-355CB6CJ.js} +4 -4
- package/chunks/{task-create-N7WQSGYA.js → task-create-INGWNUG4.js} +10 -10
- package/chunks/{task-list-FOPULZEP.js → task-list-5XNNGTF4.js} +7 -7
- package/chunks/{task-stop-H6RHXFVQ.js → task-stop-4ROAOBXH.js} +3 -3
- package/chunks/{task-update-M57TFZJT.js → task-update-CRK5VWWZ.js} +10 -10
- package/chunks/{team-create-YJALH5D2.js → team-create-QQGAJG7P.js} +49 -50
- package/chunks/{team-delete-QE2UXJL7.js → team-delete-S2RCXA4P.js} +7 -7
- package/chunks/{team-plan-approval-34QFYKGN.js → team-plan-approval-RT7Q5R6O.js} +47 -48
- package/chunks/theme-manager-EEWIQJ7J.js +76 -0
- package/chunks/{todoWrite-VQ7FKOHL.js → todoWrite-7WM3VDMY.js} +7 -7
- package/chunks/{tool-search-NF7GB6LE.js → tool-search-Z3Z4AYKP.js} +19 -21
- package/chunks/total-session-admission-44JKRWQD.js +84 -0
- package/chunks/trustedFolders-X2JEIO57.js +94 -0
- package/chunks/{update-relaunch-WBUZJC5O.js → update-relaunch-VWNPYDIP.js} +5 -5
- package/chunks/updateCheck-KAQH67DV.js +91 -0
- package/chunks/useAutoAcceptIndicator-JH6BCF7S.js +92 -0
- package/chunks/{validateNonInterActiveAuth-3R223G3R.js → validateNonInterActiveAuth-GIUJ2UFS.js} +93 -90
- package/chunks/{version-HS7YSFHV.js → version-BGLYIJUY.js} +1 -1
- package/chunks/{web-fetch-NKCSG7ZE.js → web-fetch-OTDU4VQF.js} +19 -21
- package/chunks/{web-search-S62WAP4S.js → web-search-FP6SIHPR.js} +13 -13
- package/chunks/{workflow-QAGU5RU4.js → workflow-YCIVBYSB.js} +48 -49
- package/chunks/workspace-providers-status-S35YAIUS.js +85 -0
- package/chunks/{workspace-registration-store-24JMHDGF.js → workspace-registration-store-OTMS3H4C.js} +1 -1
- package/chunks/workspace-registry-O63R6IZ4.js +92 -0
- package/chunks/workspace-service-M6LLHKJ5.js +99 -0
- package/chunks/workspace-skills-status-C2V7BAIS.js +85 -0
- package/chunks/workspace-trust-reconciler-IBUPOUJN.js +345 -0
- package/chunks/write-file-3BZC3EAE.js +72 -0
- package/chunks/xterm-headless-NTYVIBT3.js +3475 -0
- package/chunks/{zh-LUIGBD55.js → zh-H3YDK5QW.js} +9 -1
- package/chunks/{zh-TW-F5KG2IYD.js → zh-TW-JYCP7XUA.js} +9 -1
- package/chunks/zoom-image-TZ6S2O57.js +351 -0
- package/cli.js +13 -13
- package/locales/ca.js +7 -2
- package/locales/de.js +7 -2
- package/locales/en.js +10 -2
- package/locales/fr.js +7 -2
- package/locales/ja.js +7 -2
- package/locales/pt.js +7 -2
- package/locales/ru.js +7 -2
- package/locales/zh-TW.js +10 -2
- package/locales/zh.js +10 -2
- package/package.json +5 -4
- package/web-shell/assets/{arc-DcbWnB9T.js → arc-75-Wdeo3.js} +1 -1
- package/web-shell/assets/{architectureDiagram-3BPJPVTR-kMMF5sud.js → architectureDiagram-3BPJPVTR-FKeXQbyP.js} +1 -1
- package/web-shell/assets/{blockDiagram-GPEHLZMM-Htl9vTJS.js → blockDiagram-GPEHLZMM-CY0vc-A3.js} +1 -1
- package/web-shell/assets/{c4Diagram-AAUBKEIU-BnZnm0mQ.js → c4Diagram-AAUBKEIU-CNP-A-8u.js} +1 -1
- package/web-shell/assets/channel-DPYMT76A.js +1 -0
- package/web-shell/assets/{chunk-2J33WTMH-DziB7kDG.js → chunk-2J33WTMH-GybS4Gii.js} +1 -1
- package/web-shell/assets/{chunk-4BX2VUAB-CmkD8daw.js → chunk-4BX2VUAB-02H91V8v.js} +1 -1
- package/web-shell/assets/{chunk-55IACEB6-CHAd9A_U.js → chunk-55IACEB6-D3M-2VT6.js} +1 -1
- package/web-shell/assets/{chunk-727SXJPM-Dqaam3fE.js → chunk-727SXJPM-CCu29u4H.js} +1 -1
- package/web-shell/assets/{chunk-AQP2D5EJ-D_-saBYM.js → chunk-AQP2D5EJ-CaFKWgrn.js} +1 -1
- package/web-shell/assets/{chunk-FMBD7UC4-B9r_veWD.js → chunk-FMBD7UC4-ZZpPqIwQ.js} +1 -1
- package/web-shell/assets/{chunk-ND2GUHAM-B3EaCSpL.js → chunk-ND2GUHAM-D22DqGs8.js} +1 -1
- package/web-shell/assets/{chunk-QZHKN3VN-CYq8x9mn.js → chunk-QZHKN3VN-Bu85S0fw.js} +1 -1
- package/web-shell/assets/classDiagram-4FO5ZUOK--JstsIgL.js +1 -0
- package/web-shell/assets/classDiagram-v2-Q7XG4LA2--JstsIgL.js +1 -0
- package/web-shell/assets/{cose-bilkent-S5V4N54A-D0ng4uiB.js → cose-bilkent-S5V4N54A-f1CK1Gwe.js} +1 -1
- package/web-shell/assets/{dagre-BM42HDAG-DCZollQv.js → dagre-BM42HDAG-D0Ow8F_n.js} +1 -1
- package/web-shell/assets/{diagram-2AECGRRQ-Dfk2pWS0.js → diagram-2AECGRRQ-BPrmTWp8.js} +1 -1
- package/web-shell/assets/{diagram-5GNKFQAL-kX38ltWR.js → diagram-5GNKFQAL-HccuFAzy.js} +1 -1
- package/web-shell/assets/{diagram-KO2AKTUF-CJz2vsXh.js → diagram-KO2AKTUF-BrS76mbA.js} +1 -1
- package/web-shell/assets/{diagram-LMA3HP47-BvMLZm_7.js → diagram-LMA3HP47-V7T9lU-5.js} +1 -1
- package/web-shell/assets/{diagram-OG6HWLK6-l7kfStkO.js → diagram-OG6HWLK6-DKidyJMR.js} +1 -1
- package/web-shell/assets/{erDiagram-TEJ5UH35-BSVa8GGT.js → erDiagram-TEJ5UH35-DBadZIkp.js} +1 -1
- package/web-shell/assets/{flowDiagram-I6XJVG4X-CoawKIXH.js → flowDiagram-I6XJVG4X-BymfqdNJ.js} +1 -1
- package/web-shell/assets/{ganttDiagram-6RSMTGT7-DFUDH0zF.js → ganttDiagram-6RSMTGT7-DOw340jf.js} +1 -1
- package/web-shell/assets/{gitGraphDiagram-PVQCEYII-Y2pvpT4e.js → gitGraphDiagram-PVQCEYII-_8EiD8sl.js} +1 -1
- package/web-shell/assets/{index-D0GX0zZf.js → index-CKIadvET.js} +1 -1
- package/web-shell/assets/index-D1eXNRHe.js +1389 -0
- package/web-shell/assets/index-DVLD4CQq.css +5 -0
- package/web-shell/assets/{infoDiagram-5YYISTIA-CU8_zLiX.js → infoDiagram-5YYISTIA-D61KYQBu.js} +1 -1
- package/web-shell/assets/{ishikawaDiagram-YF4QCWOH-AVQiV0DU.js → ishikawaDiagram-YF4QCWOH-CsiXSpNx.js} +1 -1
- package/web-shell/assets/{journeyDiagram-JHISSGLW-DQ0VSKa3.js → journeyDiagram-JHISSGLW-Sdfionyh.js} +1 -1
- package/web-shell/assets/{kanban-definition-UN3LZRKU-BqnWqsE_.js → kanban-definition-UN3LZRKU-C3WI3Cnl.js} +1 -1
- package/web-shell/assets/{linear-BkoihsaA.js → linear-Dpigcc62.js} +1 -1
- package/web-shell/assets/{mermaid.core-5RJs-31j.js → mermaid.core-Ct97pqgW.js} +5 -5
- package/web-shell/assets/{mindmap-definition-RKZ34NQL-D33Bxnpd.js → mindmap-definition-RKZ34NQL-BzeaN0rB.js} +1 -1
- package/web-shell/assets/{pieDiagram-4H26LBE5-BuEAw3BH.js → pieDiagram-4H26LBE5-CvjgcbVD.js} +1 -1
- package/web-shell/assets/{quadrantDiagram-W4KKPZXB-Kox_usEq.js → quadrantDiagram-W4KKPZXB-BUzgTNdH.js} +1 -1
- package/web-shell/assets/{requirementDiagram-4Y6WPE33-CNjeUif0.js → requirementDiagram-4Y6WPE33-B7zKlgUQ.js} +1 -1
- package/web-shell/assets/{sankeyDiagram-5OEKKPKP-BCd2OL_U.js → sankeyDiagram-5OEKKPKP-Bb9CQgrT.js} +1 -1
- package/web-shell/assets/{sequenceDiagram-3UESZ5HK-CF2ZTsz0.js → sequenceDiagram-3UESZ5HK-DJ6V7itG.js} +1 -1
- package/web-shell/assets/{stateDiagram-AJRCARHV-qenSzHtm.js → stateDiagram-AJRCARHV-IImflERY.js} +1 -1
- package/web-shell/assets/stateDiagram-v2-BHNVJYJU-CYI_YoNR.js +1 -0
- package/web-shell/assets/{timeline-definition-PNZ67QCA-B5DyWdgs.js → timeline-definition-PNZ67QCA-6Q_uWHKh.js} +1 -1
- package/web-shell/assets/{vennDiagram-CIIHVFJN-DqP4I_o_.js → vennDiagram-CIIHVFJN-TmyKyjwv.js} +1 -1
- package/web-shell/assets/{wardley-L42UT6IY-CJe2e4mg.js → wardley-L42UT6IY-CRh9uiPv.js} +1 -1
- package/web-shell/assets/{wardleyDiagram-YWT4CUSO-BMDSw-Rr.js → wardleyDiagram-YWT4CUSO-59TKAW8w.js} +1 -1
- package/web-shell/assets/{xychartDiagram-2RQKCTM6-BTVZYkxD.js → xychartDiagram-2RQKCTM6-GCSUIK2L.js} +1 -1
- package/web-shell/index.html +2 -2
- package/chunks/MaxSizedBox-5DPPWPGT.js +0 -85
- package/chunks/agent-6ODUANDO.js +0 -81
- package/chunks/agent-headless-7BYQTMHW.js +0 -75
- package/chunks/bridge-ZUB64FAE.js +0 -90
- package/chunks/chunk-LEH5C7FV.js +0 -232
- package/chunks/chunk-SZRN75WQ.js +0 -29
- package/chunks/chunk-UGYMA4EI.js +0 -219
- package/chunks/chunk-Z2BC6UJ5.js +0 -8575
- package/chunks/contextCommand-JLHYA34Z.js +0 -80
- package/chunks/daemon-status-provider-2233Q37D.js +0 -89
- package/chunks/earlyInputCapture-A7NDU3PF.js +0 -82
- package/chunks/errors-M7CLORXH.js +0 -88
- package/chunks/exitPlanMode-GXTBWQAR.js +0 -403
- package/chunks/handleAutoUpdate-6DBEZYPV.js +0 -81
- package/chunks/i18n-VUJJZIMU.js +0 -97
- package/chunks/initializer-UWAK5U5O.js +0 -86
- package/chunks/installationInfo-6O2YAA52.js +0 -80
- package/chunks/list-GB4ESM3T.js +0 -89
- package/chunks/loadedSettingsAdapter-OT6JVQ7U.js +0 -83
- package/chunks/mcp-6DBDJPFU.js +0 -83
- package/chunks/nonInteractiveCli-MOYCYBBU.js +0 -141
- package/chunks/pidfile-TFRZZZIO.js +0 -86
- package/chunks/read-file-APMO3PSX.js +0 -31
- package/chunks/resumeHistoryUtils-6KRYEAWZ.js +0 -91
- package/chunks/ripGrep-BEJDEDXW.js +0 -73
- package/chunks/serve-7BSTXJ4T.js +0 -89
- package/chunks/shell-HH3PF3A2.js +0 -83
- package/chunks/spawnChannel-RWNDBXGA.js +0 -82
- package/chunks/src-GE4TTTML.js +0 -3147
- package/chunks/standalone-update-Q6WFRZZQ.js +0 -92
- package/chunks/theme-manager-SWRILQHI.js +0 -77
- package/chunks/total-session-admission-DLHHHLD3.js +0 -84
- package/chunks/trustedFolders-KHXHY6PY.js +0 -93
- package/chunks/updateCheck-RKL6M5XN.js +0 -92
- package/chunks/useAutoAcceptIndicator-CFQ5BUJL.js +0 -93
- package/chunks/workspace-providers-status-QSVZUETE.js +0 -86
- package/chunks/workspace-registry-UT4RBNBM.js +0 -88
- package/chunks/workspace-service-JFWRUS4V.js +0 -98
- package/chunks/workspace-skills-status-ZBBKJOI2.js +0 -85
- package/chunks/write-file-VHIXW5M7.js +0 -73
- package/web-shell/assets/channel-Cq7YKtfC.js +0 -1
- package/web-shell/assets/classDiagram-4FO5ZUOK-CQ9aC1Tg.js +0 -1
- package/web-shell/assets/classDiagram-v2-Q7XG4LA2-CQ9aC1Tg.js +0 -1
- package/web-shell/assets/index-D9haPt0X.css +0 -5
- package/web-shell/assets/index-ckX9Pq5k.js +0 -1230
- package/web-shell/assets/stateDiagram-v2-BHNVJYJU-B7W4zlCr.js +0 -1
- package/chunks/{chunk-TARRHLLG.js → chunk-QUGAUQGJ.js} +25 -25
- package/chunks/{chunk-U7ZFW55U.js → chunk-VOQXFAY5.js} +977 -977
- /package/chunks/{chunk-LXXMOYPL.js → chunk-VXZBKKQR.js} +0 -0
|
@@ -1,27 +1,28 @@
|
|
|
1
1
|
// Force strict mode and setup for ESM
|
|
2
2
|
"use strict";
|
|
3
|
+
import {
|
|
4
|
+
stringifyGenAiJson
|
|
5
|
+
} from "./chunk-DZLYR4U3.js";
|
|
3
6
|
import {
|
|
4
7
|
getMeter,
|
|
5
8
|
isTelemetrySdkInitialized,
|
|
6
9
|
truncateSpanError
|
|
7
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-BGTQCTQW.js";
|
|
8
11
|
import {
|
|
9
12
|
require_src
|
|
10
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-W4RQUHY3.js";
|
|
11
14
|
import {
|
|
12
15
|
DEFAULT_SENSITIVE_SPAN_ATTRIBUTE_MAX_LENGTH,
|
|
13
16
|
SENSITIVE_SPAN_ATTRIBUTE_MAX_LENGTH_LIMIT,
|
|
14
17
|
SERVICE_NAME,
|
|
15
18
|
isValidSensitiveSpanAttributeMaxLength
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import {
|
|
18
|
-
init_esm as init_esm2
|
|
19
|
-
} from "./chunk-U7ZFW55U.js";
|
|
19
|
+
} from "./chunk-S7W2GKIO.js";
|
|
20
20
|
import {
|
|
21
21
|
FatalConfigError,
|
|
22
|
+
createDebugLogger,
|
|
22
23
|
formatTraceparent,
|
|
23
24
|
getActiveSpanTraceContext
|
|
24
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-UHUSJ6X7.js";
|
|
25
26
|
import {
|
|
26
27
|
ROOT_CONTEXT,
|
|
27
28
|
SpanKind,
|
|
@@ -32,7 +33,7 @@ import {
|
|
|
32
33
|
init_esm,
|
|
33
34
|
propagation,
|
|
34
35
|
trace
|
|
35
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-QUGAUQGJ.js";
|
|
36
37
|
import {
|
|
37
38
|
init_esbuild_shims
|
|
38
39
|
} from "./chunk-5O2XNYP6.js";
|
|
@@ -46,8 +47,6 @@ init_esbuild_shims();
|
|
|
46
47
|
|
|
47
48
|
// packages/core/src/telemetry/index.ts
|
|
48
49
|
init_esbuild_shims();
|
|
49
|
-
init_esm();
|
|
50
|
-
init_esm2();
|
|
51
50
|
|
|
52
51
|
// packages/core/src/telemetry/daemon-tracing.ts
|
|
53
52
|
init_esbuild_shims();
|
|
@@ -653,12 +652,127 @@ function registerEventLoopLagGauge(name, read) {
|
|
|
653
652
|
}
|
|
654
653
|
__name(registerEventLoopLagGauge, "registerEventLoopLagGauge");
|
|
655
654
|
|
|
655
|
+
// packages/core/src/telemetry/detailed-span-attributes.ts
|
|
656
|
+
init_esbuild_shims();
|
|
657
|
+
var SHORT_TRUNCATION_SUFFIX = "...[TRUNCATED]";
|
|
658
|
+
var debugLogger = createDebugLogger("GEN_AI_CONTENT");
|
|
659
|
+
function areSensitiveSpanAttributesEnabled(config) {
|
|
660
|
+
return isTelemetrySdkInitialized() && config.getTelemetryIncludeSensitiveSpanAttributes();
|
|
661
|
+
}
|
|
662
|
+
__name(areSensitiveSpanAttributesEnabled, "areSensitiveSpanAttributesEnabled");
|
|
663
|
+
function truncateContent(content, maxSize = DEFAULT_SENSITIVE_SPAN_ATTRIBUTE_MAX_LENGTH, originalLength = content.length) {
|
|
664
|
+
if (!Number.isSafeInteger(maxSize) || maxSize < 1) {
|
|
665
|
+
throw new TypeError(
|
|
666
|
+
`maxSize must be a positive safe integer, got ${String(maxSize)}`
|
|
667
|
+
);
|
|
668
|
+
}
|
|
669
|
+
if (!Number.isSafeInteger(originalLength) || originalLength < 0) {
|
|
670
|
+
throw new TypeError(
|
|
671
|
+
`originalLength must be a non-negative safe integer, got ${String(
|
|
672
|
+
originalLength
|
|
673
|
+
)}`
|
|
674
|
+
);
|
|
675
|
+
}
|
|
676
|
+
if (originalLength < content.length) {
|
|
677
|
+
throw new TypeError(
|
|
678
|
+
`originalLength must be greater than or equal to content length, got ${originalLength} for content length ${content.length}`
|
|
679
|
+
);
|
|
680
|
+
}
|
|
681
|
+
if (originalLength <= maxSize && content.length <= maxSize) {
|
|
682
|
+
return { content, truncated: false };
|
|
683
|
+
}
|
|
684
|
+
if (originalLength > content.length && content.length <= maxSize) {
|
|
685
|
+
return { content, truncated: true };
|
|
686
|
+
}
|
|
687
|
+
const suffix = `
|
|
688
|
+
|
|
689
|
+
[TRUNCATED - Content exceeds configured limit of ${maxSize} characters]`;
|
|
690
|
+
if (suffix.length >= maxSize) {
|
|
691
|
+
if (SHORT_TRUNCATION_SUFFIX.length >= maxSize) {
|
|
692
|
+
return {
|
|
693
|
+
content: SHORT_TRUNCATION_SUFFIX.slice(0, maxSize),
|
|
694
|
+
truncated: true
|
|
695
|
+
};
|
|
696
|
+
}
|
|
697
|
+
return {
|
|
698
|
+
content: content.slice(0, maxSize - SHORT_TRUNCATION_SUFFIX.length) + SHORT_TRUNCATION_SUFFIX,
|
|
699
|
+
truncated: true
|
|
700
|
+
};
|
|
701
|
+
}
|
|
702
|
+
return {
|
|
703
|
+
content: content.slice(0, maxSize - suffix.length) + suffix,
|
|
704
|
+
truncated: true
|
|
705
|
+
};
|
|
706
|
+
}
|
|
707
|
+
__name(truncateContent, "truncateContent");
|
|
708
|
+
function getMaxContentSize(config) {
|
|
709
|
+
return config.getTelemetrySensitiveSpanAttributeMaxLength();
|
|
710
|
+
}
|
|
711
|
+
__name(getMaxContentSize, "getMaxContentSize");
|
|
712
|
+
function truncatePrefixedContent(prefix, content, maxSize) {
|
|
713
|
+
const prefixedContent = `${prefix}${content}`;
|
|
714
|
+
const result = truncateContent(prefixedContent, maxSize);
|
|
715
|
+
return {
|
|
716
|
+
...result,
|
|
717
|
+
originalLength: content.length
|
|
718
|
+
};
|
|
719
|
+
}
|
|
720
|
+
__name(truncatePrefixedContent, "truncatePrefixedContent");
|
|
721
|
+
function addUserPromptAttributes(config, span, promptText) {
|
|
722
|
+
if (!areSensitiveSpanAttributesEnabled(config) || !promptText) return;
|
|
723
|
+
const { content, truncated, originalLength } = truncatePrefixedContent(
|
|
724
|
+
`[USER PROMPT]
|
|
725
|
+
`,
|
|
726
|
+
promptText,
|
|
727
|
+
getMaxContentSize(config)
|
|
728
|
+
);
|
|
729
|
+
span.setAttributes({
|
|
730
|
+
new_context: content,
|
|
731
|
+
...truncated && {
|
|
732
|
+
new_context_truncated: true,
|
|
733
|
+
new_context_original_length: originalLength
|
|
734
|
+
}
|
|
735
|
+
});
|
|
736
|
+
}
|
|
737
|
+
__name(addUserPromptAttributes, "addUserPromptAttributes");
|
|
738
|
+
function addToolArgumentsAttributes(config, span, argumentsValue) {
|
|
739
|
+
if (!areSensitiveSpanAttributesEnabled(config)) return;
|
|
740
|
+
writeJsonAttribute(
|
|
741
|
+
config,
|
|
742
|
+
span,
|
|
743
|
+
"gen_ai.tool.call.arguments",
|
|
744
|
+
argumentsValue,
|
|
745
|
+
true
|
|
746
|
+
);
|
|
747
|
+
}
|
|
748
|
+
__name(addToolArgumentsAttributes, "addToolArgumentsAttributes");
|
|
749
|
+
function addToolCallResultAttributes(config, span, result) {
|
|
750
|
+
if (!areSensitiveSpanAttributesEnabled(config)) return;
|
|
751
|
+
writeJsonAttribute(config, span, "gen_ai.tool.call.result", result, true);
|
|
752
|
+
}
|
|
753
|
+
__name(addToolCallResultAttributes, "addToolCallResultAttributes");
|
|
754
|
+
function writeJsonAttribute(config, span, key, value, requireObject = false) {
|
|
755
|
+
let serialized;
|
|
756
|
+
try {
|
|
757
|
+
serialized = stringifyGenAiJson(
|
|
758
|
+
value,
|
|
759
|
+
getMaxContentSize(config),
|
|
760
|
+
requireObject
|
|
761
|
+
);
|
|
762
|
+
} catch {
|
|
763
|
+
debugLogger.debug(`Failed to serialize ${key} span attribute`);
|
|
764
|
+
return;
|
|
765
|
+
}
|
|
766
|
+
if (serialized === void 0) return;
|
|
767
|
+
try {
|
|
768
|
+
span.setAttribute(key, serialized);
|
|
769
|
+
} catch {
|
|
770
|
+
debugLogger.debug(`Failed to set ${key} span attribute`);
|
|
771
|
+
}
|
|
772
|
+
}
|
|
773
|
+
__name(writeJsonAttribute, "writeJsonAttribute");
|
|
774
|
+
|
|
656
775
|
// packages/core/src/telemetry/index.ts
|
|
657
|
-
var TelemetryTarget = /* @__PURE__ */ ((TelemetryTarget2) => {
|
|
658
|
-
TelemetryTarget2["GCP"] = "gcp";
|
|
659
|
-
TelemetryTarget2["LOCAL"] = "local";
|
|
660
|
-
return TelemetryTarget2;
|
|
661
|
-
})(TelemetryTarget || {});
|
|
662
776
|
var DEFAULT_TELEMETRY_TARGET = "local" /* LOCAL */;
|
|
663
777
|
var DEFAULT_OTLP_ENDPOINT = "http://localhost:4317";
|
|
664
778
|
|
|
@@ -799,6 +913,16 @@ function parseSensitiveSpanAttributeMaxLengthSetting(settingName, value) {
|
|
|
799
913
|
return value;
|
|
800
914
|
}
|
|
801
915
|
__name(parseSensitiveSpanAttributeMaxLengthSetting, "parseSensitiveSpanAttributeMaxLengthSetting");
|
|
916
|
+
function parseTelemetryUserId(source, value) {
|
|
917
|
+
if (value === void 0) return void 0;
|
|
918
|
+
if (typeof value !== "string") {
|
|
919
|
+
throw new FatalConfigError(
|
|
920
|
+
`Invalid ${source}: must be a string, got ${typeof value}`
|
|
921
|
+
);
|
|
922
|
+
}
|
|
923
|
+
return value.trim() || void 0;
|
|
924
|
+
}
|
|
925
|
+
__name(parseTelemetryUserId, "parseTelemetryUserId");
|
|
802
926
|
async function resolveTelemetrySettings(options) {
|
|
803
927
|
const argv = options.argv ?? {};
|
|
804
928
|
const env = options.env ?? {};
|
|
@@ -826,6 +950,10 @@ async function resolveTelemetrySettings(options) {
|
|
|
826
950
|
);
|
|
827
951
|
}
|
|
828
952
|
const logPrompts = argv.telemetryLogPrompts ?? parseBooleanEnvFlag(env["QWEN_TELEMETRY_LOG_PROMPTS"]) ?? settings.logPrompts;
|
|
953
|
+
const userId = parseTelemetryUserId(
|
|
954
|
+
"QWEN_TELEMETRY_USER_ID",
|
|
955
|
+
env["QWEN_TELEMETRY_USER_ID"]
|
|
956
|
+
) ?? parseTelemetryUserId("telemetry.userId", settings.userId);
|
|
829
957
|
const includeSensitiveSpanAttributes = parseBooleanEnvFlag(
|
|
830
958
|
env["QWEN_TELEMETRY_INCLUDE_SENSITIVE_SPAN_ATTRIBUTES"]
|
|
831
959
|
) ?? settings.includeSensitiveSpanAttributes ?? false;
|
|
@@ -876,6 +1004,7 @@ async function resolveTelemetrySettings(options) {
|
|
|
876
1004
|
otlpLogsEndpoint,
|
|
877
1005
|
otlpMetricsEndpoint,
|
|
878
1006
|
logPrompts,
|
|
1007
|
+
userId,
|
|
879
1008
|
includeSensitiveSpanAttributes,
|
|
880
1009
|
sensitiveSpanAttributeMaxLength,
|
|
881
1010
|
outfile,
|
|
@@ -888,21 +1017,16 @@ __name(resolveTelemetrySettings, "resolveTelemetrySettings");
|
|
|
888
1017
|
|
|
889
1018
|
export {
|
|
890
1019
|
parseBooleanEnvFlag,
|
|
891
|
-
parseTelemetryTargetValue,
|
|
892
1020
|
resolveTelemetrySettings,
|
|
893
1021
|
DAEMON_TRACEPARENT_META_KEY,
|
|
894
1022
|
DAEMON_TRACESTATE_META_KEY,
|
|
895
1023
|
hashDaemonWorkspace,
|
|
896
1024
|
withDaemonSpan,
|
|
897
1025
|
withDaemonRequestSpan,
|
|
898
|
-
withDaemonBridgeSpan,
|
|
899
1026
|
recordDaemonHttpResponse,
|
|
900
1027
|
addDaemonRequestAttribute,
|
|
901
1028
|
recordDaemonError,
|
|
902
1029
|
emitDaemonLog,
|
|
903
|
-
captureDaemonTelemetryContext,
|
|
904
|
-
runWithDaemonTelemetryContext,
|
|
905
|
-
injectDaemonTraceContext,
|
|
906
1030
|
extractDaemonTraceContext,
|
|
907
1031
|
createDaemonBridgeTelemetry,
|
|
908
1032
|
initializeDaemonMetrics,
|
|
@@ -918,7 +1042,10 @@ export {
|
|
|
918
1042
|
startEventLoopLagMonitor,
|
|
919
1043
|
registerDaemonEventLoopLagGauge,
|
|
920
1044
|
registerAcpEventLoopLagGauge,
|
|
921
|
-
|
|
1045
|
+
areSensitiveSpanAttributesEnabled,
|
|
1046
|
+
addUserPromptAttributes,
|
|
1047
|
+
addToolArgumentsAttributes,
|
|
1048
|
+
addToolCallResultAttributes,
|
|
922
1049
|
DEFAULT_TELEMETRY_TARGET,
|
|
923
1050
|
DEFAULT_OTLP_ENDPOINT
|
|
924
1051
|
};
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
sanitizeFilenameForDisplay
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-YDLJGZHL.js";
|
|
6
6
|
import {
|
|
7
7
|
t
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-TCIFAA7K.js";
|
|
9
9
|
import {
|
|
10
10
|
fetchGitDiff,
|
|
11
11
|
findProviderByCredentials,
|
|
12
12
|
resolveMetadataKey
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-X5WNMMIA.js";
|
|
14
14
|
import {
|
|
15
15
|
init_esbuild_shims
|
|
16
16
|
} from "./chunk-5O2XNYP6.js";
|
|
@@ -274,6 +274,115 @@ var diffCommand = {
|
|
|
274
274
|
action: diffAction
|
|
275
275
|
};
|
|
276
276
|
|
|
277
|
+
// packages/cli/src/ui/utils/inline-math.ts
|
|
278
|
+
init_esbuild_shims();
|
|
279
|
+
var INLINE_MATH_MAX_CHARS = 1024;
|
|
280
|
+
var INLINE_CODE_SPAN_PATTERN_SOURCE = String.raw`(?<!\`)(?<inlineCodeFence>\`+)(?!\`).+?(?<!\`)\k<inlineCodeFence>(?!\`)`;
|
|
281
|
+
var INLINE_CODE_SPAN_RE = new RegExp(INLINE_CODE_SPAN_PATTERN_SOURCE, "g");
|
|
282
|
+
function isEscapedAt(text, index) {
|
|
283
|
+
let slashCount = 0;
|
|
284
|
+
for (let cursor = index - 1; cursor >= 0 && text[cursor] === "\\"; cursor -= 1) {
|
|
285
|
+
slashCount += 1;
|
|
286
|
+
}
|
|
287
|
+
return slashCount % 2 === 1;
|
|
288
|
+
}
|
|
289
|
+
__name(isEscapedAt, "isEscapedAt");
|
|
290
|
+
function isUnescapedDollarAt(text, index) {
|
|
291
|
+
return text[index] === "$" && !isEscapedAt(text, index);
|
|
292
|
+
}
|
|
293
|
+
__name(isUnescapedDollarAt, "isUnescapedDollarAt");
|
|
294
|
+
function unescapeMarkdownDollars(text) {
|
|
295
|
+
return text.replace(
|
|
296
|
+
/(\\+)\$/g,
|
|
297
|
+
(_match, slashes) => `${"\\".repeat(Math.floor(slashes.length / 2))}$`
|
|
298
|
+
);
|
|
299
|
+
}
|
|
300
|
+
__name(unescapeMarkdownDollars, "unescapeMarkdownDollars");
|
|
301
|
+
function unescapeMarkdownBeforeMath(text) {
|
|
302
|
+
return unescapeMarkdownDollars(`${text}$`).slice(0, -1);
|
|
303
|
+
}
|
|
304
|
+
__name(unescapeMarkdownBeforeMath, "unescapeMarkdownBeforeMath");
|
|
305
|
+
function readInlineMathSpan(text, index) {
|
|
306
|
+
if (!isUnescapedDollarAt(text, index)) {
|
|
307
|
+
return null;
|
|
308
|
+
}
|
|
309
|
+
const previous = text[index - 1] ?? "";
|
|
310
|
+
const next = text[index + 1] ?? "";
|
|
311
|
+
if (/\w/.test(previous) || isUnescapedDollarAt(text, index - 1) || !next || /[\s\d$]/.test(next)) {
|
|
312
|
+
return null;
|
|
313
|
+
}
|
|
314
|
+
let closingIndex = index + 1;
|
|
315
|
+
while (closingIndex < text.length && text[closingIndex] !== "\n" && closingIndex - index - 1 <= INLINE_MATH_MAX_CHARS && !isUnescapedDollarAt(text, closingIndex)) {
|
|
316
|
+
closingIndex += 1;
|
|
317
|
+
}
|
|
318
|
+
if (!isUnescapedDollarAt(text, closingIndex)) {
|
|
319
|
+
return null;
|
|
320
|
+
}
|
|
321
|
+
const content = text.slice(index + 1, closingIndex);
|
|
322
|
+
const following = text[closingIndex + 1] ?? "";
|
|
323
|
+
if (content.length > INLINE_MATH_MAX_CHARS || /\s$/.test(content) || /[\w$]/.test(following)) {
|
|
324
|
+
return null;
|
|
325
|
+
}
|
|
326
|
+
return {
|
|
327
|
+
content,
|
|
328
|
+
index,
|
|
329
|
+
raw: text.slice(index, closingIndex + 1)
|
|
330
|
+
};
|
|
331
|
+
}
|
|
332
|
+
__name(readInlineMathSpan, "readInlineMathSpan");
|
|
333
|
+
function findNextInlineMath(text, fromIndex = 0) {
|
|
334
|
+
for (let index = fromIndex; index < text.length; index += 1) {
|
|
335
|
+
const span = readInlineMathSpan(text, index);
|
|
336
|
+
if (span) {
|
|
337
|
+
return span;
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
return null;
|
|
341
|
+
}
|
|
342
|
+
__name(findNextInlineMath, "findNextInlineMath");
|
|
343
|
+
function* mergeInlineMathMatches(text, markupRegex, enableInlineMath = true) {
|
|
344
|
+
markupRegex.lastIndex = 0;
|
|
345
|
+
const markupMatches = text.matchAll(markupRegex);
|
|
346
|
+
let nextMarkup = markupMatches.next();
|
|
347
|
+
let nextMath = enableInlineMath ? findNextInlineMath(text) : null;
|
|
348
|
+
let cursor = 0;
|
|
349
|
+
while (!nextMarkup.done || nextMath) {
|
|
350
|
+
while (!nextMarkup.done && (nextMarkup.value.index ?? 0) < cursor) {
|
|
351
|
+
nextMarkup = markupMatches.next();
|
|
352
|
+
}
|
|
353
|
+
if (nextMath && nextMath.index < cursor) {
|
|
354
|
+
nextMath = findNextInlineMath(text, cursor);
|
|
355
|
+
}
|
|
356
|
+
const markupIndex = nextMarkup.done ? Number.POSITIVE_INFINITY : nextMarkup.value.index ?? 0;
|
|
357
|
+
const mathIndex = nextMath?.index ?? Number.POSITIVE_INFINITY;
|
|
358
|
+
if (!nextMarkup.done && markupIndex <= mathIndex) {
|
|
359
|
+
const match = nextMarkup.value;
|
|
360
|
+
yield { kind: "markup", match };
|
|
361
|
+
cursor = markupIndex + match[0].length;
|
|
362
|
+
nextMarkup = markupMatches.next();
|
|
363
|
+
} else if (nextMath) {
|
|
364
|
+
yield { kind: "math", span: nextMath };
|
|
365
|
+
cursor = mathIndex + nextMath.raw.length;
|
|
366
|
+
nextMath = findNextInlineMath(text, cursor);
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
__name(mergeInlineMathMatches, "mergeInlineMathMatches");
|
|
371
|
+
function findInlineMathExpressions(text) {
|
|
372
|
+
const expressions = [];
|
|
373
|
+
for (const token of mergeInlineMathMatches(text, INLINE_CODE_SPAN_RE)) {
|
|
374
|
+
if (token.kind === "math") {
|
|
375
|
+
expressions.push(token.span.content);
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
return expressions;
|
|
379
|
+
}
|
|
380
|
+
__name(findInlineMathExpressions, "findInlineMathExpressions");
|
|
381
|
+
function readInlineMathSpanAt(text, index) {
|
|
382
|
+
return readInlineMathSpan(text, index)?.raw ?? null;
|
|
383
|
+
}
|
|
384
|
+
__name(readInlineMathSpanAt, "readInlineMathSpanAt");
|
|
385
|
+
|
|
277
386
|
// packages/cli/src/utils/systemInfoFields.ts
|
|
278
387
|
init_esbuild_shims();
|
|
279
388
|
function getSystemInfoFields(info) {
|
|
@@ -390,10 +499,15 @@ init_esbuild_shims();
|
|
|
390
499
|
function calculateCost(args) {
|
|
391
500
|
const { inputTokens, outputTokens, pricing } = args;
|
|
392
501
|
if (!pricing) return null;
|
|
502
|
+
if (pricing.inputPerMillionTokens == null && pricing.outputPerMillionTokens == null) {
|
|
503
|
+
return null;
|
|
504
|
+
}
|
|
505
|
+
if (inputTokens <= 0 && outputTokens <= 0) {
|
|
506
|
+
return null;
|
|
507
|
+
}
|
|
393
508
|
const inputCost = pricing.inputPerMillionTokens != null ? inputTokens / 1e6 * pricing.inputPerMillionTokens : 0;
|
|
394
509
|
const outputCost = pricing.outputPerMillionTokens != null ? outputTokens / 1e6 * pricing.outputPerMillionTokens : 0;
|
|
395
|
-
|
|
396
|
-
return total > 0 ? total : null;
|
|
510
|
+
return inputCost + outputCost;
|
|
397
511
|
}
|
|
398
512
|
__name(calculateCost, "calculateCost");
|
|
399
513
|
|
|
@@ -418,6 +532,12 @@ function levelLabel(level) {
|
|
|
418
532
|
__name(levelLabel, "levelLabel");
|
|
419
533
|
|
|
420
534
|
export {
|
|
535
|
+
INLINE_CODE_SPAN_PATTERN_SOURCE,
|
|
536
|
+
unescapeMarkdownDollars,
|
|
537
|
+
unescapeMarkdownBeforeMath,
|
|
538
|
+
mergeInlineMathMatches,
|
|
539
|
+
findInlineMathExpressions,
|
|
540
|
+
readInlineMathSpanAt,
|
|
421
541
|
getSystemInfoFields,
|
|
422
542
|
calculateErrorRate,
|
|
423
543
|
calculateAverageLatency,
|
|
@@ -435,6 +555,11 @@ export {
|
|
|
435
555
|
* Copyright 2025 Google LLC
|
|
436
556
|
* SPDX-License-Identifier: Apache-2.0
|
|
437
557
|
*/
|
|
558
|
+
/**
|
|
559
|
+
* @license
|
|
560
|
+
* Copyright 2026 Qwen Team
|
|
561
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
562
|
+
*/
|
|
438
563
|
/**
|
|
439
564
|
* @license
|
|
440
565
|
* Copyright 2025 Qwen
|