@qwen-code/qwen-code 0.21.0 → 0.21.1-nightly.20260731.702932cc7
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 +39 -28
- package/bundled/qc-helper/docs/features/channels/_meta.ts +2 -0
- package/bundled/qc-helper/docs/features/channels/github.md +139 -0
- package/bundled/qc-helper/docs/features/channels/gitlab.md +171 -0
- package/bundled/qc-helper/docs/features/channels/overview.md +61 -6
- package/bundled/qc-helper/docs/features/code-review.md +21 -1
- package/bundled/qc-helper/docs/features/hooks.md +72 -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 +42 -8
- package/bundled/qc-helper/docs/qwen-serve.md +11 -7
- 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-LAFHK4VO.js +88 -0
- package/chunks/{StandaloneSessionPicker-BIRMPLRD.js → StandaloneSessionPicker-EMNOBN3S.js} +71 -68
- package/chunks/{acp-startup-profiler-RV3IV562.js → acp-startup-profiler-2C4A5ZTJ.js} +2 -2
- package/chunks/{acpAgent-6J2U72PQ.js → acpAgent-ERFA6HWV.js} +1674 -591
- package/chunks/agent-PLKF6JK4.js +84 -0
- package/chunks/agent-headless-JAORDQ63.js +78 -0
- package/chunks/{anthropicContentGenerator-75BKLTSP.js → anthropicContentGenerator-OFHSZJBF.js} +79 -27
- package/chunks/{artifact-tool-Y5T7GG7F.js → artifact-tool-RDN2W7ND.js} +4 -4
- package/chunks/{askUserQuestion-2H6747FR.js → askUserQuestion-OZERWH5R.js} +4 -4
- package/chunks/bridge-NYOBVRIT.js +94 -0
- package/chunks/{build-RV63TIRH.js → build-GDBLPA24.js} +1 -1
- package/chunks/{ca-25EDXPFZ.js → ca-6W3SK7OQ.js} +6 -1
- package/chunks/channel-management-service-5S7YCWX5.js +418 -0
- package/chunks/channel-settings-store-NLOKYO23.js +91 -0
- package/chunks/{channel-worker-group-2ZD7TVAT.js → channel-worker-group-OVWGYMZS.js} +11 -6
- package/chunks/{channel-worker-manager-4OA4BCGB.js → channel-worker-manager-H55GKOQA.js} +11 -6
- package/chunks/{channel-worker-supervisor-V7KCFJTS.js → channel-worker-supervisor-CABBXYHK.js} +7 -5
- package/chunks/{chunk-RIBKPMRP.js → chunk-23F4XGWO.js} +19 -6
- package/chunks/{chunk-ACY3A37B.js → chunk-25VHI5T7.js} +23 -18
- package/chunks/{chunk-MZAXJAUM.js → chunk-26JK4RPD.js} +1 -1
- package/chunks/{chunk-6GMVPFB2.js → chunk-2IIJTXYF.js} +45 -16
- package/chunks/{chunk-BPJSQIJX.js → chunk-2J3OJGTL.js} +0 -2
- package/chunks/{chunk-2X55UKQE.js → chunk-2JZR3B4A.js} +3 -3
- package/chunks/{chunk-7JURR4JT.js → chunk-2OQUICDM.js} +167 -81
- package/chunks/{chunk-ZJHVAS7M.js → chunk-2YCYFWYZ.js} +4 -5
- package/chunks/{chunk-3QMGYBFN.js → chunk-3APUUXRF.js} +1 -80
- package/chunks/{chunk-MUP3T3AD.js → chunk-3I6DUGQD.js} +1 -35
- package/chunks/{chunk-JVPM2ULZ.js → chunk-3XZ5SSNR.js} +6 -6
- package/chunks/chunk-42VPM33K.js +319 -0
- package/chunks/{chunk-VAK25FTU.js → chunk-45IOTAUS.js} +1 -1
- package/chunks/chunk-45UYUCJ6.js +363 -0
- package/chunks/{chunk-JZA3JUDJ.js → chunk-4KP2F2TE.js} +1 -1
- package/chunks/{chunk-IO3IX5Q4.js → chunk-4YJQD2IO.js} +1 -1
- package/chunks/{chunk-JXJFVC6E.js → chunk-5G6XUGXO.js} +61 -14
- package/chunks/{chunk-ZOIFNCKL.js → chunk-5NNHICSA.js} +3 -23
- package/chunks/{chunk-A4UCTEB5.js → chunk-5WV5S2GT.js} +0 -1
- package/chunks/{chunk-RHLZR4E5.js → chunk-675H6PLP.js} +1 -1
- package/chunks/chunk-6FMJLI5M.js +1591 -0
- package/chunks/chunk-6MPDY6ZG.js +76 -0
- package/chunks/{chunk-PSOO6YXD.js → chunk-6NUWQ3R7.js} +9 -7
- package/chunks/{chunk-7MVVZO4N.js → chunk-6ZRWX46I.js} +4 -4
- package/chunks/{chunk-TPRQ7RZH.js → chunk-76E5Y3UZ.js} +3117 -993
- package/chunks/{chunk-UUUTRMI2.js → chunk-7ULQIS27.js} +1 -1
- package/chunks/{chunk-BKHWX6I2.js → chunk-A5BZ722X.js} +11 -3
- package/chunks/{chunk-TEHGS6UP.js → chunk-A5T5W7PR.js} +154 -16
- package/chunks/{chunk-VIA5XA4U.js → chunk-A5UODYG3.js} +4 -1
- package/chunks/{chunk-JLU636DO.js → chunk-ALMR3E6Q.js} +1 -0
- package/chunks/{chunk-EBJQ6AXW.js → chunk-ANDVK2JN.js} +358 -14
- package/chunks/{chunk-TOFQCPDC.js → chunk-AOHY3QJ3.js} +14 -8
- package/chunks/chunk-AQ37AY7B.js +93 -0
- package/chunks/{chunk-PJIZUQVC.js → chunk-AZQ3DT76.js} +2 -2
- package/chunks/{chunk-LKEJ26GS.js → chunk-B3TA3IF5.js} +16 -11
- package/chunks/{chunk-Q4M4MDQ4.js → chunk-B43QHWY6.js} +1 -1
- package/chunks/{chunk-UH3WSE5L.js → chunk-B4AJNNOL.js} +1 -6
- package/chunks/{chunk-K36B6G2O.js → chunk-B6FOGNGH.js} +5 -5
- package/chunks/{chunk-PWVFN2LF.js → chunk-BP2H5K25.js} +1 -1
- package/chunks/{chunk-LB6DUZ26.js → chunk-BTWSGZCT.js} +264 -185
- package/chunks/{chunk-ZNAUOR2I.js → chunk-BZBPT52P.js} +2 -2
- package/chunks/{chunk-L26JL52R.js → chunk-CBBP4BMC.js} +64 -67
- package/chunks/{chunk-ZD6UTE4A.js → chunk-CNTR4GR6.js} +1 -1
- package/chunks/{chunk-3SJ43L4W.js → chunk-CPZAH673.js} +6 -0
- package/chunks/{chunk-EPDRMGT4.js → chunk-D4HTUMGX.js} +4 -28
- package/chunks/{chunk-QAF7NMK7.js → chunk-D7CQTWRS.js} +1 -1
- package/chunks/{chunk-XVNQMZ2I.js → chunk-DGEIYUC3.js} +0 -1
- package/chunks/{chunk-BPZALHVR.js → chunk-DI35ZN7T.js} +1 -1
- package/chunks/{chunk-IKCX4CCL.js → chunk-DKPJUF5F.js} +118 -95
- package/chunks/{chunk-DLWL3Z7A.js → chunk-DSFHVTWD.js} +3 -3
- package/chunks/{chunk-FSITMZJH.js → chunk-DYRYLJ3O.js} +18 -9
- package/chunks/{chunk-NL7LTRLR.js → chunk-E2BHWIDT.js} +48 -72
- package/chunks/{chunk-UDX5OBWR.js → chunk-E2FN6SM7.js} +94 -4
- package/chunks/{chunk-USTWD7QV.js → chunk-E6CJ2SMM.js} +26 -16
- package/chunks/{chunk-KMQ33DO4.js → chunk-EDB7A72S.js} +4 -4
- package/chunks/{chunk-7ZCNENPP.js → chunk-FANRZEAJ.js} +1 -1
- package/chunks/{chunk-WBL3FJEU.js → chunk-FC4KQFCS.js} +1 -1
- package/chunks/{chunk-5NBDS5S6.js → chunk-FCYYAB4S.js} +162 -7
- package/chunks/{chunk-OKY7HXPG.js → chunk-FJ5WUMUQ.js} +2 -2
- package/chunks/{chunk-PHOF65IG.js → chunk-FRXG4ARO.js} +36273 -44436
- package/chunks/{chunk-FQK6JAFG.js → chunk-FS674JW4.js} +4 -4
- package/chunks/chunk-FYJ7W2PI.js +194 -0
- package/chunks/{chunk-BULDBTYC.js → chunk-G7XXKQYS.js} +3 -28
- package/chunks/{chunk-LS77BEZP.js → chunk-GLCZKT5V.js} +1 -5
- package/chunks/{chunk-VRYUBFMC.js → chunk-GRUAVQQR.js} +1 -1
- package/chunks/{chunk-MVSUYZDT.js → chunk-GWV7DI3S.js} +4 -4
- package/chunks/{chunk-A5L3JMUA.js → chunk-HC45LTEN.js} +18 -4
- package/chunks/{chunk-PC6JANNU.js → chunk-HKRVXYDN.js} +4 -4
- package/chunks/{chunk-GZXCZHCT.js → chunk-I3G5JWBV.js} +1 -1
- package/chunks/{chunk-4WIZGAH3.js → chunk-I5BT7ADR.js} +6 -58
- package/chunks/{chunk-GSN55ZRI.js → chunk-ID3O7PRB.js} +19 -7
- package/chunks/{chunk-L5UHQJTJ.js → chunk-IGTHU3T4.js} +1 -1
- package/chunks/{chunk-BIQWWWJN.js → chunk-IIUGIWWY.js} +1 -1
- package/chunks/{chunk-RWTEFFPU.js → chunk-JCJ7LKNA.js} +6140 -5616
- package/chunks/{chunk-S3TWXGKA.js → chunk-JE7KQ2UP.js} +4 -2
- package/chunks/{chunk-PWTZEM3C.js → chunk-JXVC2PL3.js} +3 -37
- package/chunks/chunk-JYBU6YUE.js +378 -0
- package/chunks/{chunk-RF3EXIHJ.js → chunk-K3PFMM5U.js} +49 -26
- package/chunks/{chunk-JCW2R7WC.js → chunk-K623ENWT.js} +3 -79
- package/chunks/{chunk-T2NCM2ET.js → chunk-K6KS3LTN.js} +2 -749
- package/chunks/chunk-KWHKHSIS.js +81 -0
- package/chunks/{chunk-DHHOYAPR.js → chunk-L2E5GFAG.js} +7 -7
- package/chunks/{chunk-2W3OOD4W.js → chunk-L55JWS76.js} +6 -3
- package/chunks/{chunk-E5TUC6CA.js → chunk-LHKCY7DY.js} +3 -3
- package/chunks/{chunk-NH6KE4JX.js → chunk-LOY7RWQG.js} +3 -3
- package/chunks/{chunk-U7M2DMGW.js → chunk-M4MSAE7U.js} +130 -5
- package/chunks/{chunk-IJTOWOD7.js → chunk-MB32MS4U.js} +92 -9
- package/chunks/{chunk-PR75REBZ.js → chunk-MM7TH7ZM.js} +12 -82
- package/chunks/{chunk-FODK6UMO.js → chunk-MPHPFVKK.js} +0 -2
- package/chunks/{chunk-M5JM7OSF.js → chunk-N4ACHWNH.js} +2 -3
- package/chunks/{chunk-JESCGQM3.js → chunk-NAVJD2PQ.js} +8 -7
- package/chunks/{chunk-J56UI34H.js → chunk-NBD76HUW.js} +4 -2
- package/chunks/{chunk-2SCDWPXI.js → chunk-NC4U4I3Y.js} +5 -5
- package/chunks/{chunk-H4SBPHSA.js → chunk-NNL7WPPK.js} +3 -3
- package/chunks/{chunk-YBL3QUDD.js → chunk-NQCXWP5D.js} +1 -1
- package/chunks/{chunk-CIKQ7KKO.js → chunk-NVFSGPIF.js} +954 -444
- package/chunks/{chunk-6OUGMXDC.js → chunk-NWNEANAT.js} +7 -7
- package/chunks/chunk-O6GEWCJA.js +21 -0
- package/chunks/chunk-OCPBI7J5.js +18 -0
- package/chunks/{chunk-KIM5GUMA.js → chunk-OE6F6ZWQ.js} +589 -220
- package/chunks/{chunk-SQCQ4KO2.js → chunk-P5DEY3NF.js} +380 -317
- package/chunks/{chunk-2JZBVYTU.js → chunk-Q3T5KA2V.js} +1 -8
- package/chunks/{chunk-MB4MZHMJ.js → chunk-QARJNL2V.js} +211 -522
- package/chunks/{chunk-YH6G52F2.js → chunk-QCXGC7QB.js} +4 -4
- package/chunks/chunk-QDK4F2N5.js +1252 -0
- package/chunks/{chunk-VDDGDZMA.js → chunk-QHWCP53L.js} +14 -7
- package/chunks/{chunk-VULLI6WQ.js → chunk-QIERF2GQ.js} +6 -6
- package/chunks/{chunk-TGILQ3YH.js → chunk-QQTJK5GB.js} +200 -77
- package/chunks/{chunk-H5FFA6TH.js → chunk-QTHQ6Z5X.js} +16 -3
- package/chunks/{chunk-5I2IWRSH.js → chunk-R2XWGR75.js} +2 -2
- package/chunks/{chunk-YPE6A4GC.js → chunk-RT7FNC2O.js} +2 -2
- package/chunks/{chunk-OFDOK3VM.js → chunk-RX7NJOPE.js} +8 -13
- package/chunks/{chunk-6AM5D4ME.js → chunk-S6LOFUVP.js} +0 -12
- package/chunks/{chunk-K4XWPEWB.js → chunk-SHN4KHDK.js} +4 -33
- package/chunks/{chunk-VYPFXUCB.js → chunk-SZ3KHTDR.js} +1 -1
- package/chunks/chunk-T26EAKDL.js +13 -0
- package/chunks/chunk-T3CHYWJZ.js +758 -0
- package/chunks/{chunk-FNQ6T3CV.js → chunk-TEGJSJDF.js} +10 -7
- package/chunks/{chunk-RZIX2G32.js → chunk-THPORXSI.js} +1 -1
- package/chunks/{chunk-OHNBB4XR.js → chunk-THVU3RNH.js} +1 -1
- package/chunks/{record-artifact-RQKFYO5B.js → chunk-TIRRPCFS.js} +22 -7
- package/chunks/{chunk-ETSW4KLJ.js → chunk-TUCOXPHJ.js} +2 -2
- package/chunks/{chunk-63P4EL5V.js → chunk-TZTAV5RH.js} +1 -1
- package/chunks/{chunk-LK7CHLVP.js → chunk-U4VTUMMK.js} +0 -60
- package/chunks/{chunk-3RN6GBKS.js → chunk-U5CODIJW.js} +1 -1
- package/chunks/chunk-UU2B5YG6.js +2196 -0
- package/chunks/{chunk-R5AFZNQW.js → chunk-VAVHTGU4.js} +15 -8
- package/chunks/{chunk-2NH6DYI4.js → chunk-VHPFWR2O.js} +12 -12
- package/chunks/{chunk-IKYJHJNF.js → chunk-VOMQ2P6B.js} +3 -3
- package/chunks/{chunk-ZFDTEDCF.js → chunk-VX22DUW2.js} +6 -6
- package/chunks/{chunk-HTR4WV6U.js → chunk-W4RQUHY3.js} +31 -1
- package/chunks/{chunk-M4FMGVY4.js → chunk-WQP7BKWA.js} +3 -3
- package/chunks/{chunk-LH2BYDQ5.js → chunk-X2E5TFJ5.js} +18 -12
- package/chunks/{chunk-COH43MRJ.js → chunk-XCGIMOLN.js} +27 -1
- package/chunks/{chunk-YX324OPW.js → chunk-XDS22O52.js} +1 -1
- package/chunks/chunk-XP4L6KS3.js +463 -0
- package/chunks/{chunk-6FGBXPWM.js → chunk-XQK4XXTN.js} +38 -44
- package/chunks/{chunk-55DJUCI2.js → chunk-XWYPFDB5.js} +53 -43
- package/chunks/{chunk-Y34KJKDC.js → chunk-Y7BVNVVW.js} +1 -1
- package/chunks/{chunk-IPUUTYMV.js → chunk-YDLJGZHL.js} +1 -1
- package/chunks/{chunk-HIJQF5B5.js → chunk-YGE3IXJP.js} +1 -1
- package/chunks/{chunk-LQIW3YFY.js → chunk-YJFPRUWX.js} +9 -7
- package/chunks/{chunk-J24WCGIN.js → chunk-YQIIG4NA.js} +4 -4
- package/chunks/{chunk-BJX6ZSUK.js → chunk-YUFIEIWC.js} +2 -2
- package/chunks/{chunk-NIBLUX3Y.js → chunk-Z3S5EMOW.js} +148 -21
- package/chunks/{chunk-WCXCRJYB.js → chunk-Z3YLHKB7.js} +1 -1
- package/chunks/chunk-Z4X5MTRT.js +133 -0
- package/chunks/{chunk-UW5EOVUN.js → chunk-ZBVS26BY.js} +4 -4
- package/chunks/{chunk-HTO4JFDZ.js → chunk-ZPJWUGCS.js} +0 -1
- package/chunks/{chunk-X5XDDSSH.js → chunk-ZPZ7ZJEE.js} +28 -5
- package/chunks/{computer-use-SOQ4E3VX.js → computer-use-GOM42LNK.js} +53 -50
- package/chunks/{config-utils-7V7GGIW6.js → config-utils-WADIDWGG.js} +4 -3
- package/chunks/contextCommand-6LVPTIWD.js +83 -0
- package/chunks/core-runtime-253XV2DB.js +137 -0
- package/chunks/{create-sub-session-QRJLW5BV.js → create-sub-session-45POYEVP.js} +50 -47
- package/chunks/{create-sub-session-IWW2IZ2T.js → create-sub-session-62YZWVAY.js} +3 -3
- package/chunks/{cron-create-YIID5XAW.js → cron-create-6E7GIQTG.js} +6 -6
- package/chunks/{cron-delete-ZVHYCEP2.js → cron-delete-JD26XY3W.js} +5 -5
- package/chunks/{cron-list-XEGS463Q.js → cron-list-CUWFB44G.js} +6 -6
- package/chunks/{daemon-YO6433NF.js → daemon-PCNCI5YU.js} +428 -18
- package/chunks/daemon-status-provider-AKALDYJJ.js +93 -0
- package/chunks/daemon-trust-policy-XB7ZSQFQ.js +88 -0
- package/chunks/daemon-trust-policy-monitor-FUTKP42Q.js +175 -0
- package/chunks/{de-HGRCYDEJ.js → de-SY6O76BF.js} +6 -1
- package/chunks/deferred-core-runtime-RKLCO7V5.js +92 -0
- package/chunks/dist-26BIMQT6.js +4487 -0
- package/chunks/{dist-F6IBUDR4.js → dist-2PERFI23.js} +12 -9
- package/chunks/{dist-46NQKLTW.js → dist-OAOC5OV4.js} +2 -2
- package/chunks/{dist-YFNEUWSE.js → dist-PVEAFLHY.js} +5 -4
- package/chunks/{dist-AIKFMUKK.js → dist-SL2LUMML.js} +1449 -14
- package/chunks/dist-ULIG4M5H.js +13415 -0
- package/chunks/{dist-WEAHOXDM.js → dist-WGMNT3JQ.js} +2 -1
- package/chunks/{dist-BBLXMS3N.js → dist-ZHXOBXDN.js} +3 -3
- package/chunks/earlyInputCapture-FCWU47OB.js +85 -0
- package/chunks/{edit-OBDSQURM.js → edit-TTACM3LN.js} +51 -48
- package/chunks/{en-MTWBNGDO.js → en-NBK3JKCE.js} +9 -1
- package/chunks/{enter-worktree-U6MRPQ2P.js → enter-worktree-R34GFDX6.js} +51 -48
- package/chunks/{enterPlanMode-BC5QUZZ2.js → enterPlanMode-KJPBB6G5.js} +51 -48
- package/chunks/environment-IJG3N2PR.js +105 -0
- package/chunks/errors-MRON5OJD.js +91 -0
- package/chunks/esm-K5FARBNI.js +5548 -0
- package/chunks/{exit-worktree-DGNYMECB.js → exit-worktree-UBA66Y4I.js} +51 -48
- package/chunks/exitPlanMode-SMSPGNSK.js +76 -0
- package/chunks/{fast-path-JJZFJANL.js → fast-path-ZBAMZDCP.js} +16 -6
- package/chunks/{fr-45RLL55O.js → fr-4KG5V7UT.js} +6 -1
- package/chunks/{gemini-QS36EBZV.js → gemini-XFT7HRNL.js} +106 -99
- package/chunks/{geminiContentGenerator-AG4KB6CV.js → geminiContentGenerator-XD3MLYQX.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-HFKY7HXZ.js} +51 -48
- package/chunks/goal-tools-HGO6VXPB.js +335 -0
- package/chunks/{grep-QYPSK7OP.js → grep-EO5Z3PFV.js} +53 -49
- package/chunks/handleAutoUpdate-WRENFE6C.js +84 -0
- package/chunks/i18n-ZG5OTVSV.js +100 -0
- package/chunks/{image-gen-Z3VPGKRC.js → image-gen-CKWZ4MJI.js} +12 -12
- package/chunks/initializer-FYPLLRC7.js +89 -0
- package/chunks/installationInfo-5RV4HRMC.js +83 -0
- package/chunks/{ja-B7DF7DFG.js → ja-F3GSQXMF.js} +6 -1
- package/chunks/{keychain-token-storage-MDTG3WRM.js → keychain-token-storage-IKO4G53C.js} +3 -3
- package/chunks/lib-RUF3WZA6.js +9 -0
- package/chunks/list-ZNWVL3AT.js +92 -0
- package/chunks/{list-agents-5KJJHR6I.js → list-agents-PXJ7ZUFB.js} +3 -3
- package/chunks/loadedSettingsAdapter-GQGNHP5I.js +86 -0
- package/chunks/{loggingContentGenerator-HS3S5H3Q.js → loggingContentGenerator-MS5DFAWH.js} +78 -113
- package/chunks/{loop-wakeup-FXKNNYSY.js → loop-wakeup-Y26NQZ5I.js} +15 -8
- package/chunks/{ls-NTK6VOQJ.js → ls-ONQTTMQR.js} +5 -5
- package/chunks/{lsp-2JI24STP.js → lsp-YGHHRGMD.js} +3 -3
- package/chunks/{managed-npm-update-JYEMMXA3.js → managed-npm-update-67AK4GTL.js} +51 -48
- package/chunks/mcp-FVQ4VTLM.js +86 -0
- package/chunks/{monitor-R3ODH5U6.js → monitor-BXB33EOZ.js} +51 -48
- package/chunks/nonInteractiveCli-CN2GYSN3.js +148 -0
- package/chunks/{notebook-edit-BNOK452R.js → notebook-edit-FKYRBV4L.js} +51 -48
- package/chunks/{openaiContentGenerator-WMCU3O2H.js → openaiContentGenerator-UUXV5DGU.js} +26 -27
- package/chunks/pidfile-MV347TTZ.js +89 -0
- package/chunks/process-registry-2CHQBXH5.js +157 -0
- package/chunks/{processUtils-RT7UNCC2.js → processUtils-LKFG52RV.js} +2 -2
- package/chunks/{pt-22Q3FP73.js → pt-EQ33KWEN.js} +6 -1
- package/chunks/{qwenContentGenerator-HHCRK4SX.js → qwenContentGenerator-3WYI2HRW.js} +56 -53
- package/chunks/{qwenOAuth2-OWLB5AKH.js → qwenOAuth2-B46MW45O.js} +10 -10
- package/chunks/read-file-ACSHVWP3.js +29 -0
- package/chunks/{read-mcp-resource-4DKQWGHD.js → read-mcp-resource-U2IJN5HM.js} +4 -4
- package/chunks/record-artifact-MGPJ7EG4.js +21 -0
- package/chunks/resumeHistoryUtils-AMS4767B.js +94 -0
- package/chunks/ripGrep-BAPM2UKC.js +76 -0
- package/chunks/{ru-FZCNZHDC.js → ru-7OZAUKGG.js} +6 -1
- package/chunks/{run-qwen-serve-FU6HEM4J.js → run-qwen-serve-JEN6FO2A.js} +1018 -263
- package/chunks/runtime-WVP22ISH.js +122 -0
- package/chunks/{scheduler-G2ZS2Z7E.js → scheduler-HTX5ACVR.js} +50 -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-4BQANSJ6.js} +7 -7
- package/chunks/{sdk-impl-GMVPB7NB.js → sdk-impl-Z4VXWVFX.js} +14 -14
- package/chunks/{send-message-Q6OOR6BR.js → send-message-PMP4ATVM.js} +8 -13
- package/chunks/serve-ELQIVNWN.js +92 -0
- package/chunks/{server-4UMH7OIZ.js → server-JNW2NOSQ.js} +5288 -1364
- package/chunks/{session-K3O3Q2SV.js → session-NC356XNS.js} +102 -95
- package/chunks/{settings-CR2EWTBA.js → settings-73RMIOJ6.js} +54 -51
- package/chunks/shell-NMHF5TFG.js +86 -0
- package/chunks/{skill-I3SDA4MB.js → skill-XPGXHEKO.js} +22 -22
- package/chunks/skill-settings-5IGIJDGA.js +94 -0
- package/chunks/spawnChannel-T5THBHFN.js +85 -0
- package/chunks/standalone-update-ODXEPDLP.js +95 -0
- package/chunks/{startInteractiveUI-SLZGHRPH.js → startInteractiveUI-S27DXVAE.js} +1241 -905
- package/chunks/{syntheticOutput-I3757IWH.js → syntheticOutput-D7E6ZFKR.js} +4 -4
- package/chunks/task-create-NFCYD43L.js +26 -0
- package/chunks/{task-list-FOPULZEP.js → task-list-TAVMGEVD.js} +7 -7
- package/chunks/{task-stop-H6RHXFVQ.js → task-stop-ZDF2UJRM.js} +3 -3
- package/chunks/{task-update-M57TFZJT.js → task-update-6L7LHGEX.js} +12 -11
- package/chunks/{team-create-YJALH5D2.js → team-create-CTLQWTJ2.js} +53 -50
- package/chunks/{team-delete-QE2UXJL7.js → team-delete-DPGGRQBU.js} +7 -7
- package/chunks/{team-plan-approval-34QFYKGN.js → team-plan-approval-WKRUAPJ4.js} +51 -48
- package/chunks/theme-manager-XQHXQQX6.js +80 -0
- package/chunks/{todoWrite-VQ7FKOHL.js → todoWrite-2UO5G6G6.js} +34 -6
- package/chunks/{tool-search-NF7GB6LE.js → tool-search-45YINAJA.js} +21 -22
- package/chunks/total-session-admission-QPUKGHKO.js +88 -0
- package/chunks/trustedFolders-YMUTRHEQ.js +98 -0
- package/chunks/{update-relaunch-WBUZJC5O.js → update-relaunch-PZUXTVHC.js} +5 -5
- package/chunks/updateCheck-IZAN4XTB.js +95 -0
- package/chunks/useAutoAcceptIndicator-CGL2MAYE.js +96 -0
- package/chunks/{validateNonInterActiveAuth-3R223G3R.js → validateNonInterActiveAuth-GBGNJ65K.js} +97 -90
- package/chunks/{version-HS7YSFHV.js → version-Z7EX24NZ.js} +1 -1
- package/chunks/{web-fetch-NKCSG7ZE.js → web-fetch-ETTT2H3V.js} +19 -21
- package/chunks/{web-search-S62WAP4S.js → web-search-Y3ZSVRJ6.js} +13 -13
- package/chunks/{workflow-QAGU5RU4.js → workflow-ATRJSAO7.js} +52 -49
- package/chunks/workspace-providers-status-YM3WLW3N.js +89 -0
- package/chunks/{workspace-registration-store-24JMHDGF.js → workspace-registration-store-4EGNCIPG.js} +1 -1
- package/chunks/workspace-registry-NGZOZKQP.js +96 -0
- package/chunks/workspace-service-SVWOXX2B.js +103 -0
- package/chunks/workspace-skills-status-YZHZ3PT5.js +89 -0
- package/chunks/workspace-trust-reconciler-GGBQV2U5.js +349 -0
- package/chunks/write-file-HLGCEB72.js +78 -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-LDECT475.js +224 -0
- package/cli.js +50 -16
- 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-Dpy_U6Bb.js} +1 -1
- package/web-shell/assets/{architectureDiagram-3BPJPVTR-kMMF5sud.js → architectureDiagram-3BPJPVTR-DgDOg-c5.js} +1 -1
- package/web-shell/assets/{blockDiagram-GPEHLZMM-Htl9vTJS.js → blockDiagram-GPEHLZMM-tADd9Ja3.js} +1 -1
- package/web-shell/assets/{c4Diagram-AAUBKEIU-BnZnm0mQ.js → c4Diagram-AAUBKEIU-68wj9MCU.js} +1 -1
- package/web-shell/assets/channel-Do7fFnFl.js +1 -0
- package/web-shell/assets/{chunk-2J33WTMH-DziB7kDG.js → chunk-2J33WTMH-DjJLOeVU.js} +1 -1
- package/web-shell/assets/{chunk-4BX2VUAB-CmkD8daw.js → chunk-4BX2VUAB-CMbzGeVC.js} +1 -1
- package/web-shell/assets/{chunk-55IACEB6-CHAd9A_U.js → chunk-55IACEB6-SlKgejv9.js} +1 -1
- package/web-shell/assets/{chunk-727SXJPM-Dqaam3fE.js → chunk-727SXJPM-CijXssHZ.js} +1 -1
- package/web-shell/assets/{chunk-AQP2D5EJ-D_-saBYM.js → chunk-AQP2D5EJ-D8w25nvR.js} +1 -1
- package/web-shell/assets/{chunk-FMBD7UC4-B9r_veWD.js → chunk-FMBD7UC4-Bv9dcx_e.js} +1 -1
- package/web-shell/assets/{chunk-ND2GUHAM-B3EaCSpL.js → chunk-ND2GUHAM-Bzf6sAOd.js} +1 -1
- package/web-shell/assets/{chunk-QZHKN3VN-CYq8x9mn.js → chunk-QZHKN3VN-whNoNeW5.js} +1 -1
- package/web-shell/assets/classDiagram-4FO5ZUOK-By_XOP3X.js +1 -0
- package/web-shell/assets/classDiagram-v2-Q7XG4LA2-By_XOP3X.js +1 -0
- package/web-shell/assets/{cose-bilkent-S5V4N54A-D0ng4uiB.js → cose-bilkent-S5V4N54A-rpQS44Lz.js} +1 -1
- package/web-shell/assets/{dagre-BM42HDAG-DCZollQv.js → dagre-BM42HDAG-Ck7VE6nT.js} +1 -1
- package/web-shell/assets/{diagram-2AECGRRQ-Dfk2pWS0.js → diagram-2AECGRRQ-CgRrsodR.js} +1 -1
- package/web-shell/assets/{diagram-5GNKFQAL-kX38ltWR.js → diagram-5GNKFQAL-CsTZtE5A.js} +1 -1
- package/web-shell/assets/{diagram-KO2AKTUF-CJz2vsXh.js → diagram-KO2AKTUF-D5EAdVq4.js} +1 -1
- package/web-shell/assets/{diagram-LMA3HP47-BvMLZm_7.js → diagram-LMA3HP47-DNrjHC7Z.js} +1 -1
- package/web-shell/assets/{diagram-OG6HWLK6-l7kfStkO.js → diagram-OG6HWLK6-ClJSJGgC.js} +1 -1
- package/web-shell/assets/{erDiagram-TEJ5UH35-BSVa8GGT.js → erDiagram-TEJ5UH35-DuVnos_y.js} +1 -1
- package/web-shell/assets/{flowDiagram-I6XJVG4X-CoawKIXH.js → flowDiagram-I6XJVG4X-DEpIVl1s.js} +1 -1
- package/web-shell/assets/{ganttDiagram-6RSMTGT7-DFUDH0zF.js → ganttDiagram-6RSMTGT7-COnQM2-C.js} +1 -1
- package/web-shell/assets/{gitGraphDiagram-PVQCEYII-Y2pvpT4e.js → gitGraphDiagram-PVQCEYII-C-lX5H3_.js} +1 -1
- package/web-shell/assets/index-C2GE3DAF.js +74 -0
- package/web-shell/assets/{index-D0GX0zZf.js → index-DfcyS2E7.js} +1 -1
- package/web-shell/assets/index-Qxt6kN7i.js +1700 -0
- package/web-shell/assets/index-bo0Z8hfu.css +5 -0
- package/web-shell/assets/{infoDiagram-5YYISTIA-CU8_zLiX.js → infoDiagram-5YYISTIA-D0WP-wmU.js} +1 -1
- package/web-shell/assets/{ishikawaDiagram-YF4QCWOH-AVQiV0DU.js → ishikawaDiagram-YF4QCWOH-DgsI3Clu.js} +1 -1
- package/web-shell/assets/{journeyDiagram-JHISSGLW-DQ0VSKa3.js → journeyDiagram-JHISSGLW-4yCoMZO6.js} +1 -1
- package/web-shell/assets/{kanban-definition-UN3LZRKU-BqnWqsE_.js → kanban-definition-UN3LZRKU-D_05au1N.js} +1 -1
- package/web-shell/assets/{linear-BkoihsaA.js → linear-B38fDz0Q.js} +1 -1
- package/web-shell/assets/{mermaid.core-5RJs-31j.js → mermaid.core-aGNwTaHi.js} +5 -5
- package/web-shell/assets/{mindmap-definition-RKZ34NQL-D33Bxnpd.js → mindmap-definition-RKZ34NQL-C2yf_5WM.js} +1 -1
- package/web-shell/assets/{pieDiagram-4H26LBE5-BuEAw3BH.js → pieDiagram-4H26LBE5-DiHABBT-.js} +1 -1
- package/web-shell/assets/{quadrantDiagram-W4KKPZXB-Kox_usEq.js → quadrantDiagram-W4KKPZXB-W9xkeAGe.js} +1 -1
- package/web-shell/assets/{requirementDiagram-4Y6WPE33-CNjeUif0.js → requirementDiagram-4Y6WPE33-BGmRXl9k.js} +1 -1
- package/web-shell/assets/{sankeyDiagram-5OEKKPKP-BCd2OL_U.js → sankeyDiagram-5OEKKPKP-CvOmT43_.js} +1 -1
- package/web-shell/assets/{sequenceDiagram-3UESZ5HK-CF2ZTsz0.js → sequenceDiagram-3UESZ5HK-C8pdd0Z-.js} +1 -1
- package/web-shell/assets/{stateDiagram-AJRCARHV-qenSzHtm.js → stateDiagram-AJRCARHV-C-CYdFx2.js} +1 -1
- package/web-shell/assets/stateDiagram-v2-BHNVJYJU-BieEHeN9.js +1 -0
- package/web-shell/assets/{timeline-definition-PNZ67QCA-B5DyWdgs.js → timeline-definition-PNZ67QCA-w2KQn1cI.js} +1 -1
- package/web-shell/assets/{vennDiagram-CIIHVFJN-DqP4I_o_.js → vennDiagram-CIIHVFJN-DuorhRku.js} +1 -1
- package/web-shell/assets/{wardley-L42UT6IY-CJe2e4mg.js → wardley-L42UT6IY-BAXm2cWy.js} +1 -1
- package/web-shell/assets/{wardleyDiagram-YWT4CUSO-BMDSw-Rr.js → wardleyDiagram-YWT4CUSO-8PHaOXn5.js} +1 -1
- package/web-shell/assets/{xychartDiagram-2RQKCTM6-BTVZYkxD.js → xychartDiagram-2RQKCTM6-Do84JFSc.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/environment-W5UFC2CH.js +0 -102
- 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/runtime-XXRRTNP6.js +0 -118
- 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/task-create-N7WQSGYA.js +0 -25
- 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
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
import {
|
|
4
4
|
DashScopeOpenAICompatibleProvider,
|
|
5
5
|
DefaultOpenAICompatibleProvider
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-DSFHVTWD.js";
|
|
7
7
|
import {
|
|
8
8
|
RequestTokenizer
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-FJ5WUMUQ.js";
|
|
10
10
|
import {
|
|
11
11
|
DEFAULT_STREAM_IDLE_TIMEOUT_MS,
|
|
12
12
|
MAX_STREAM_IDLE_TIMEOUT_MS,
|
|
@@ -19,40 +19,42 @@ import {
|
|
|
19
19
|
OpenAIContentConverter,
|
|
20
20
|
TaggedThinkingParser,
|
|
21
21
|
openaiRequestCaptureContext
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-L2E5GFAG.js";
|
|
23
23
|
import {
|
|
24
24
|
InvalidStreamError
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-2J3OJGTL.js";
|
|
26
26
|
import {
|
|
27
27
|
getRateLimitErrorDetails
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-XQK4XXTN.js";
|
|
29
29
|
import {
|
|
30
30
|
safeJsonParse
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-QTHQ6Z5X.js";
|
|
32
32
|
import {
|
|
33
33
|
getToolCallPreparations,
|
|
34
34
|
runtimeDiagnostics
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-GLCZKT5V.js";
|
|
36
36
|
import {
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
reportOpenAiChunk,
|
|
38
|
+
reportOpenAiRequest,
|
|
39
|
+
reportOpenAiResponse
|
|
40
|
+
} from "./chunk-XP4L6KS3.js";
|
|
39
41
|
import {
|
|
40
42
|
ProtocolTagSanitizedEvent,
|
|
41
43
|
logProtocolTagSanitized
|
|
42
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-NVFSGPIF.js";
|
|
43
45
|
import {
|
|
44
46
|
reconcileMaxTokens
|
|
45
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-ZBVS26BY.js";
|
|
46
48
|
import {
|
|
47
49
|
redactProxyError
|
|
48
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-Q3T5KA2V.js";
|
|
49
51
|
import {
|
|
50
52
|
createDebugLogger,
|
|
51
53
|
getErrorMessage,
|
|
52
54
|
getErrorStatus,
|
|
53
55
|
getErrorType,
|
|
54
56
|
isAbortError
|
|
55
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-E2BHWIDT.js";
|
|
56
58
|
import {
|
|
57
59
|
GenerateContentResponse
|
|
58
60
|
} from "./chunk-22C7BQ6D.js";
|
|
@@ -453,7 +455,12 @@ var StreamingToolCallParser = class {
|
|
|
453
455
|
namelessToolCallIndices = /* @__PURE__ */ new Set();
|
|
454
456
|
/** Map from tool call ID to actual index used for storage */
|
|
455
457
|
idToIndexMap = /* @__PURE__ */ new Map();
|
|
456
|
-
/**
|
|
458
|
+
/**
|
|
459
|
+
* Maps a provider index to the actual slot it was remapped to on collision.
|
|
460
|
+
* Two readers consume it: an id that arrives after its name/args adopts the
|
|
461
|
+
* slot, and later id-less continuation chunks at the same provider index are
|
|
462
|
+
* routed to it.
|
|
463
|
+
*/
|
|
457
464
|
pendingIndexRemaps = /* @__PURE__ */ new Map();
|
|
458
465
|
/** Counter for generating new indices when collisions occur */
|
|
459
466
|
nextAvailableIndex = 0;
|
|
@@ -501,9 +508,8 @@ var StreamingToolCallParser = class {
|
|
|
501
508
|
if (id) {
|
|
502
509
|
if (this.idToIndexMap.has(id)) {
|
|
503
510
|
actualIndex = this.idToIndexMap.get(id);
|
|
504
|
-
} else if (this.pendingIndexRemaps.has(index)) {
|
|
511
|
+
} else if (this.pendingIndexRemaps.has(index) && !this.toolCallMeta.get(this.pendingIndexRemaps.get(index))?.id) {
|
|
505
512
|
actualIndex = this.pendingIndexRemaps.get(index);
|
|
506
|
-
this.pendingIndexRemaps.delete(index);
|
|
507
513
|
this.idToIndexMap.set(id, actualIndex);
|
|
508
514
|
} else {
|
|
509
515
|
if (this.buffers.has(index)) {
|
|
@@ -577,7 +583,7 @@ var StreamingToolCallParser = class {
|
|
|
577
583
|
} else {
|
|
578
584
|
this.namelessToolCallIndices.delete(actualIndex);
|
|
579
585
|
}
|
|
580
|
-
if (
|
|
586
|
+
if (actualIndex !== index) {
|
|
581
587
|
this.pendingIndexRemaps.set(index, actualIndex);
|
|
582
588
|
}
|
|
583
589
|
return { actualIndex, complete: false };
|
|
@@ -603,7 +609,7 @@ var StreamingToolCallParser = class {
|
|
|
603
609
|
meta.name = validName;
|
|
604
610
|
}
|
|
605
611
|
}
|
|
606
|
-
if (
|
|
612
|
+
if (actualIndex !== index) {
|
|
607
613
|
this.pendingIndexRemaps.set(index, actualIndex);
|
|
608
614
|
}
|
|
609
615
|
const currentInString = this.inStrings.get(actualIndex);
|
|
@@ -1074,7 +1080,7 @@ var ContentGenerationPipeline = class {
|
|
|
1074
1080
|
request,
|
|
1075
1081
|
userPromptId,
|
|
1076
1082
|
false,
|
|
1077
|
-
async (openaiRequest, context) => {
|
|
1083
|
+
async (openaiRequest, context, telemetryAttempt) => {
|
|
1078
1084
|
const parentSignal = request.config?.abortSignal;
|
|
1079
1085
|
const perRequestAc = parentSignal ? createChildAbortController(parentSignal) : void 0;
|
|
1080
1086
|
try {
|
|
@@ -1084,6 +1090,7 @@ var ContentGenerationPipeline = class {
|
|
|
1084
1090
|
signal: perRequestAc?.signal
|
|
1085
1091
|
}
|
|
1086
1092
|
);
|
|
1093
|
+
reportOpenAiResponse(telemetryAttempt, openaiResponse);
|
|
1087
1094
|
const geminiResponse = OpenAIContentConverter.convertOpenAIResponseToGemini(
|
|
1088
1095
|
openaiResponse,
|
|
1089
1096
|
context
|
|
@@ -1100,7 +1107,7 @@ var ContentGenerationPipeline = class {
|
|
|
1100
1107
|
request,
|
|
1101
1108
|
userPromptId,
|
|
1102
1109
|
true,
|
|
1103
|
-
async (openaiRequest, context) => {
|
|
1110
|
+
async (openaiRequest, context, telemetryAttempt) => {
|
|
1104
1111
|
const parentSignal = request.config?.abortSignal;
|
|
1105
1112
|
const perRequestAc = createChildAbortController(parentSignal);
|
|
1106
1113
|
let stream;
|
|
@@ -1155,7 +1162,8 @@ var ContentGenerationPipeline = class {
|
|
|
1155
1162
|
guarded,
|
|
1156
1163
|
context,
|
|
1157
1164
|
request,
|
|
1158
|
-
userPromptId
|
|
1165
|
+
userPromptId,
|
|
1166
|
+
telemetryAttempt
|
|
1159
1167
|
);
|
|
1160
1168
|
async function* drainThenCleanup() {
|
|
1161
1169
|
try {
|
|
@@ -1177,7 +1185,7 @@ var ContentGenerationPipeline = class {
|
|
|
1177
1185
|
* 3. Handle chunk merging for providers that send finishReason and usageMetadata separately
|
|
1178
1186
|
* 4. Handle success/error logging
|
|
1179
1187
|
*/
|
|
1180
|
-
async *processStreamWithLogging(stream, context, request, userPromptId) {
|
|
1188
|
+
async *processStreamWithLogging(stream, context, request, userPromptId, telemetryAttempt) {
|
|
1181
1189
|
let pendingFinishResponse = null;
|
|
1182
1190
|
let finishYielded = false;
|
|
1183
1191
|
let pendingFinishProtocolTagSanitized;
|
|
@@ -1201,6 +1209,7 @@ var ContentGenerationPipeline = class {
|
|
|
1201
1209
|
}, "logPendingProtocolTagSanitized");
|
|
1202
1210
|
try {
|
|
1203
1211
|
for await (const chunk of stream) {
|
|
1212
|
+
reportOpenAiChunk(telemetryAttempt, chunk);
|
|
1204
1213
|
if (chunk.choices?.[0]?.finish_reason === "error_finish") {
|
|
1205
1214
|
const errorContent = chunk.choices?.[0]?.delta?.content?.trim() || "Unknown stream error";
|
|
1206
1215
|
throw new StreamContentError(errorContent);
|
|
@@ -1394,47 +1403,48 @@ var ContentGenerationPipeline = class {
|
|
|
1394
1403
|
const thinkingMandatory = this.requiresThinking(model);
|
|
1395
1404
|
const reasoningDisabled = request.config?.thinkingConfig?.includeThoughts === false || this.contentGeneratorConfig.reasoning === false;
|
|
1396
1405
|
if (reasoningDisabled) {
|
|
1397
|
-
const
|
|
1406
|
+
const typed2 = providerRequest;
|
|
1398
1407
|
if (!thinkingMandatory && (model.startsWith("qwen") || model === "coder-model")) {
|
|
1399
1408
|
if (isDashScope) {
|
|
1400
|
-
|
|
1409
|
+
typed2["enable_thinking"] = false;
|
|
1401
1410
|
} else {
|
|
1402
|
-
delete
|
|
1403
|
-
const existing =
|
|
1404
|
-
|
|
1411
|
+
delete typed2["enable_thinking"];
|
|
1412
|
+
const existing = typed2["chat_template_kwargs"] ?? {};
|
|
1413
|
+
typed2["chat_template_kwargs"] = {
|
|
1405
1414
|
...existing,
|
|
1406
1415
|
enable_thinking: false
|
|
1407
1416
|
};
|
|
1408
1417
|
}
|
|
1409
1418
|
}
|
|
1410
|
-
if ("reasoning" in
|
|
1411
|
-
delete
|
|
1419
|
+
if ("reasoning" in typed2) {
|
|
1420
|
+
delete typed2["reasoning"];
|
|
1412
1421
|
}
|
|
1413
|
-
if ("reasoning_effort" in
|
|
1414
|
-
delete
|
|
1422
|
+
if ("reasoning_effort" in typed2 && typed2["reasoning_effort"] !== "none") {
|
|
1423
|
+
delete typed2["reasoning_effort"];
|
|
1415
1424
|
}
|
|
1416
1425
|
if (isDeepSeekHostname(this.contentGeneratorConfig)) {
|
|
1417
|
-
|
|
1426
|
+
typed2["thinking"] = { type: "disabled" };
|
|
1418
1427
|
}
|
|
1419
1428
|
}
|
|
1420
1429
|
if (thinkingMandatory) {
|
|
1421
|
-
const
|
|
1422
|
-
if (
|
|
1423
|
-
delete
|
|
1430
|
+
const typed2 = providerRequest;
|
|
1431
|
+
if (typed2["enable_thinking"] === false) {
|
|
1432
|
+
delete typed2["enable_thinking"];
|
|
1424
1433
|
}
|
|
1425
|
-
const chatTemplateKwargs =
|
|
1434
|
+
const chatTemplateKwargs = typed2["chat_template_kwargs"];
|
|
1426
1435
|
if (chatTemplateKwargs?.["enable_thinking"] === false) {
|
|
1427
1436
|
const remaining = { ...chatTemplateKwargs };
|
|
1428
1437
|
delete remaining["enable_thinking"];
|
|
1429
1438
|
if (Object.keys(remaining).length > 0) {
|
|
1430
|
-
|
|
1439
|
+
typed2["chat_template_kwargs"] = remaining;
|
|
1431
1440
|
} else {
|
|
1432
|
-
delete
|
|
1441
|
+
delete typed2["chat_template_kwargs"];
|
|
1433
1442
|
}
|
|
1434
1443
|
}
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1444
|
+
}
|
|
1445
|
+
const typed = providerRequest;
|
|
1446
|
+
if (isDashScope && typed["tool_choice"] === "required" && (thinkingMandatory || typed["enable_thinking"] === true)) {
|
|
1447
|
+
delete typed["tool_choice"];
|
|
1438
1448
|
}
|
|
1439
1449
|
return providerRequest;
|
|
1440
1450
|
}
|
|
@@ -1513,8 +1523,8 @@ var ContentGenerationPipeline = class {
|
|
|
1513
1523
|
);
|
|
1514
1524
|
openaiRequestCaptureContext.getStore()?.(openaiRequest);
|
|
1515
1525
|
runtimeDiagnostics.recordOpenAIWireRequest(openaiRequest);
|
|
1516
|
-
reportOpenAiRequest(openaiRequest);
|
|
1517
|
-
return executor(openaiRequest, context);
|
|
1526
|
+
const telemetryAttempt = reportOpenAiRequest(openaiRequest);
|
|
1527
|
+
return executor(openaiRequest, context, telemetryAttempt);
|
|
1518
1528
|
}, "executeAttempt");
|
|
1519
1529
|
try {
|
|
1520
1530
|
return await executeAttempt();
|
|
@@ -122,7 +122,7 @@ function wrapToVisualLines(text, width) {
|
|
|
122
122
|
let currentLine = "";
|
|
123
123
|
let currentWidth = 0;
|
|
124
124
|
for (const char of logicalLine) {
|
|
125
|
-
const charWidth = getCachedStringWidth(char);
|
|
125
|
+
const charWidth = Math.max(getCachedStringWidth(char), 1);
|
|
126
126
|
if (currentWidth + charWidth > width && currentWidth > 0) {
|
|
127
127
|
visualLines.push(currentLine);
|
|
128
128
|
currentLine = "";
|
|
@@ -14,15 +14,16 @@ import {
|
|
|
14
14
|
MODIFIER_ALT_BIT,
|
|
15
15
|
MODIFIER_CTRL_BIT,
|
|
16
16
|
MODIFIER_SHIFT_BIT,
|
|
17
|
+
MODIFIER_SUPER_BIT,
|
|
17
18
|
clipboardHasImage
|
|
18
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-NBD76HUW.js";
|
|
19
20
|
import {
|
|
20
21
|
require_jsx_runtime
|
|
21
22
|
} from "./chunk-SV5PQVQE.js";
|
|
22
23
|
import {
|
|
23
24
|
use_stdin_default,
|
|
24
25
|
use_stdout_default
|
|
25
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-2IIJTXYF.js";
|
|
26
27
|
import {
|
|
27
28
|
noteInteraction
|
|
28
29
|
} from "./chunk-KW7NOTN6.js";
|
|
@@ -32,10 +33,10 @@ import {
|
|
|
32
33
|
import {
|
|
33
34
|
KittySequenceOverflowEvent,
|
|
34
35
|
logKittySequenceOverflow
|
|
35
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-NVFSGPIF.js";
|
|
36
37
|
import {
|
|
37
38
|
createDebugLogger
|
|
38
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-E2BHWIDT.js";
|
|
39
40
|
import {
|
|
40
41
|
init_esbuild_shims
|
|
41
42
|
} from "./chunk-5O2XNYP6.js";
|
|
@@ -420,7 +421,7 @@ function KeypressProvider({
|
|
|
420
421
|
mods -= KITTY_MODIFIER_EVENT_TYPES_OFFSET;
|
|
421
422
|
}
|
|
422
423
|
const bits = mods - KITTY_MODIFIER_BASE;
|
|
423
|
-
const alt = (bits & MODIFIER_ALT_BIT) === MODIFIER_ALT_BIT;
|
|
424
|
+
const alt = (bits & MODIFIER_ALT_BIT) === MODIFIER_ALT_BIT || (bits & MODIFIER_SUPER_BIT) === MODIFIER_SUPER_BIT;
|
|
424
425
|
const ctrl = (bits & MODIFIER_CTRL_BIT) === MODIFIER_CTRL_BIT;
|
|
425
426
|
return {
|
|
426
427
|
key: {
|
|
@@ -445,7 +446,7 @@ function KeypressProvider({
|
|
|
445
446
|
}
|
|
446
447
|
const bits = mods - KITTY_MODIFIER_BASE;
|
|
447
448
|
const shift = (bits & MODIFIER_SHIFT_BIT) === MODIFIER_SHIFT_BIT;
|
|
448
|
-
const alt = (bits & MODIFIER_ALT_BIT) === MODIFIER_ALT_BIT;
|
|
449
|
+
const alt = (bits & MODIFIER_ALT_BIT) === MODIFIER_ALT_BIT || (bits & MODIFIER_SUPER_BIT) === MODIFIER_SUPER_BIT;
|
|
449
450
|
const ctrl = (bits & MODIFIER_CTRL_BIT) === MODIFIER_CTRL_BIT;
|
|
450
451
|
const sym = m[2];
|
|
451
452
|
const symbolToName = {
|
|
@@ -487,7 +488,7 @@ function KeypressProvider({
|
|
|
487
488
|
}
|
|
488
489
|
const modifierBits = modifiers - KITTY_MODIFIER_BASE;
|
|
489
490
|
const shift = (modifierBits & MODIFIER_SHIFT_BIT) === MODIFIER_SHIFT_BIT;
|
|
490
|
-
const alt = (modifierBits & MODIFIER_ALT_BIT) === MODIFIER_ALT_BIT;
|
|
491
|
+
const alt = (modifierBits & MODIFIER_ALT_BIT) === MODIFIER_ALT_BIT || (modifierBits & MODIFIER_SUPER_BIT) === MODIFIER_SUPER_BIT;
|
|
491
492
|
const ctrl = (modifierBits & MODIFIER_CTRL_BIT) === MODIFIER_CTRL_BIT;
|
|
492
493
|
const terminator = m[4];
|
|
493
494
|
if (keyCode === CHAR_CODE_ESC && terminator === "~" && m[3]) {
|
|
@@ -1003,6 +1004,7 @@ function KeypressProvider({
|
|
|
1003
1004
|
sequence
|
|
1004
1005
|
}), "createPasteKeyEvent");
|
|
1005
1006
|
const shouldFlushRawDataAsPaste = /* @__PURE__ */ __name((data) => {
|
|
1007
|
+
if (data.includes(27)) return false;
|
|
1006
1008
|
const hasReturn = data.includes(13);
|
|
1007
1009
|
const hasEmbeddedTab = data.length > 1 && data.includes(9);
|
|
1008
1010
|
const isSingleReturn = data.length <= 2 && hasReturn;
|
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
import {
|
|
4
4
|
getGitVersion,
|
|
5
5
|
getNpmVersion
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-GWV7DI3S.js";
|
|
7
7
|
import {
|
|
8
8
|
buildEnvStatusFromEnv,
|
|
9
9
|
snapshotProcessEnv
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-TUCOXPHJ.js";
|
|
11
11
|
import {
|
|
12
12
|
mapDomainErrorToErrorKind
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-A5UODYG3.js";
|
|
14
14
|
import {
|
|
15
15
|
canUseRipgrep
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-FRXG4ARO.js";
|
|
17
17
|
import {
|
|
18
18
|
init_esbuild_shims
|
|
19
19
|
} from "./chunk-5O2XNYP6.js";
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
escapeAnsiCtrlCodes
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-YDLJGZHL.js";
|
|
6
6
|
import {
|
|
7
7
|
createDebugLogger
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-E2BHWIDT.js";
|
|
9
9
|
import {
|
|
10
10
|
wrapper_default
|
|
11
11
|
} from "./chunk-TYAMGABM.js";
|
|
@@ -1,27 +1,28 @@
|
|
|
1
1
|
// Force strict mode and setup for ESM
|
|
2
2
|
"use strict";
|
|
3
|
+
import {
|
|
4
|
+
stringifyGenAiJson
|
|
5
|
+
} from "./chunk-QDK4F2N5.js";
|
|
3
6
|
import {
|
|
4
7
|
getMeter,
|
|
5
8
|
isTelemetrySdkInitialized,
|
|
6
9
|
truncateSpanError
|
|
7
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-QARJNL2V.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-G7XXKQYS.js";
|
|
20
20
|
import {
|
|
21
21
|
FatalConfigError,
|
|
22
|
+
createDebugLogger,
|
|
22
23
|
formatTraceparent,
|
|
23
24
|
getActiveSpanTraceContext
|
|
24
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-E2BHWIDT.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
|
};
|