@qwen-code/qwen-code 0.21.0 → 0.21.1-simplify-system-prompt.0
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/chunks/{MaxSizedBox-5DPPWPGT.js → MaxSizedBox-INHRH72H.js} +11 -10
- package/chunks/{StandaloneSessionPicker-BIRMPLRD.js → StandaloneSessionPicker-O6RKBPU4.js} +25 -24
- package/chunks/{acpAgent-6J2U72PQ.js → acpAgent-HYFVXVDR.js} +119 -74
- package/chunks/{agent-6ODUANDO.js → agent-VXDAN5JK.js} +10 -9
- package/chunks/{agent-headless-7BYQTMHW.js → agent-headless-K4ZMMNBD.js} +10 -9
- package/chunks/{anthropicContentGenerator-75BKLTSP.js → anthropicContentGenerator-LXUXMOE7.js} +20 -9
- package/chunks/{bridge-ZUB64FAE.js → bridge-LGPZCFHO.js} +14 -13
- package/chunks/channel-management-service-G74LFADV.js +403 -0
- package/chunks/channel-settings-store-CHCDRTPY.js +89 -0
- package/chunks/{channel-worker-group-2ZD7TVAT.js → channel-worker-group-PTJIJSKC.js} +6 -5
- package/chunks/{channel-worker-manager-4OA4BCGB.js → channel-worker-manager-WIMGM2FD.js} +6 -5
- package/chunks/{channel-worker-supervisor-V7KCFJTS.js → channel-worker-supervisor-KUFTR6P5.js} +5 -4
- package/chunks/{chunk-OFDOK3VM.js → chunk-2JM6GZ5D.js} +3 -3
- package/chunks/{chunk-H4SBPHSA.js → chunk-2OM7GEXO.js} +1 -1
- package/chunks/{chunk-TGILQ3YH.js → chunk-2Q3OT4OV.js} +7 -7
- package/chunks/{chunk-PC6JANNU.js → chunk-2YZJCM5T.js} +4 -4
- package/chunks/{chunk-QAF7NMK7.js → chunk-32MVHM4T.js} +1 -1
- package/chunks/{chunk-K36B6G2O.js → chunk-3HBZKBMQ.js} +3 -3
- package/chunks/{chunk-GSN55ZRI.js → chunk-3IXOIAKE.js} +4 -4
- package/chunks/{chunk-IJTOWOD7.js → chunk-3JAQDSXN.js} +12 -0
- package/chunks/{chunk-UDX5OBWR.js → chunk-3MSHSCSN.js} +2 -2
- package/chunks/{chunk-ZFDTEDCF.js → chunk-4M377AZG.js} +3 -3
- package/chunks/{chunk-U7M2DMGW.js → chunk-52O2CIUL.js} +2 -2
- package/chunks/{chunk-R5AFZNQW.js → chunk-5THCYPLO.js} +3 -3
- package/chunks/{chunk-7MVVZO4N.js → chunk-5U4IPFBR.js} +4 -4
- package/chunks/{chunk-KIM5GUMA.js → chunk-66RMLJHC.js} +21 -21
- package/chunks/{chunk-FSITMZJH.js → chunk-6PSLCFQ2.js} +5 -5
- package/chunks/{chunk-ACY3A37B.js → chunk-7FZEBPKS.js} +3 -3
- package/chunks/{chunk-7JURR4JT.js → chunk-A6UO2C7C.js} +1 -1
- package/chunks/{chunk-JLU636DO.js → chunk-ALMR3E6Q.js} +1 -0
- package/chunks/{chunk-PWVFN2LF.js → chunk-B4UMZKMU.js} +1 -1
- package/chunks/{chunk-SQCQ4KO2.js → chunk-B6ZJ7SI6.js} +14 -14
- package/chunks/{chunk-YPE6A4GC.js → chunk-B7QDM6Z7.js} +1 -1
- package/chunks/{chunk-NIBLUX3Y.js → chunk-BO4XCS7P.js} +195 -3
- package/chunks/{chunk-WCXCRJYB.js → chunk-BRRAJXPA.js} +1 -1
- package/chunks/{chunk-TPRQ7RZH.js → chunk-BYFNTGKI.js} +37 -35
- package/chunks/{chunk-Y34KJKDC.js → chunk-C3NS4F2Q.js} +1 -1
- package/chunks/{chunk-Q4M4MDQ4.js → chunk-CC4N4M36.js} +1 -1
- package/chunks/{chunk-EBJQ6AXW.js → chunk-DM22XS4K.js} +5 -5
- package/chunks/{chunk-PHOF65IG.js → chunk-DM4Q4JJH.js} +1059 -722
- package/chunks/{chunk-JXJFVC6E.js → chunk-DN6ZX5AY.js} +3 -3
- package/chunks/{chunk-J24WCGIN.js → chunk-E5WH5O3C.js} +4 -4
- package/chunks/{chunk-4WIZGAH3.js → chunk-ER5LWJR6.js} +5 -57
- package/chunks/chunk-FY3M44RD.js +463 -0
- package/chunks/{chunk-IO3IX5Q4.js → chunk-G4WFQUYQ.js} +1 -1
- package/chunks/{chunk-VULLI6WQ.js → chunk-GDIPH4JY.js} +3 -3
- package/chunks/chunk-HV3G62R6.js +76 -0
- package/chunks/{chunk-YX324OPW.js → chunk-I7XZ3RY5.js} +1 -1
- package/chunks/{chunk-BULDBTYC.js → chunk-INADJJGW.js} +1 -26
- package/chunks/{chunk-RIBKPMRP.js → chunk-J6D3VXCC.js} +3 -3
- package/chunks/{chunk-TEHGS6UP.js → chunk-JALU3ZDU.js} +6 -6
- package/chunks/{chunk-YBL3QUDD.js → chunk-KIUFNBHR.js} +1 -1
- package/chunks/{chunk-VIA5XA4U.js → chunk-KU5XMLDK.js} +1 -1
- package/chunks/{chunk-KMQ33DO4.js → chunk-LG4GZIVV.js} +3 -3
- package/chunks/{chunk-ZNAUOR2I.js → chunk-LNARWLZQ.js} +1 -1
- package/chunks/{chunk-LQIW3YFY.js → chunk-LNURQEMZ.js} +4 -4
- package/chunks/{chunk-VRYUBFMC.js → chunk-LZEMEFKY.js} +1 -1
- package/chunks/{chunk-LB6DUZ26.js → chunk-M4UKFCZ2.js} +65 -46
- package/chunks/chunk-MK7VQDN3.js +79 -0
- package/chunks/{chunk-RWTEFFPU.js → chunk-ML52PL6O.js} +211 -209
- package/chunks/{chunk-RF3EXIHJ.js → chunk-MSLKI6C2.js} +12 -12
- package/chunks/{chunk-X5XDDSSH.js → chunk-MVS3NS2N.js} +1 -1
- package/chunks/{chunk-5NBDS5S6.js → chunk-N3FAY5CM.js} +7 -5
- package/chunks/{chunk-55DJUCI2.js → chunk-OJGCZBB7.js} +14 -9
- package/chunks/{chunk-BKHWX6I2.js → chunk-P5V4T7NK.js} +3 -3
- package/chunks/{chunk-LH2BYDQ5.js → chunk-PANH4R3B.js} +1 -1
- package/chunks/{chunk-RZIX2G32.js → chunk-PHVR5UUY.js} +1 -1
- package/chunks/{chunk-MZAXJAUM.js → chunk-PSWQZHEA.js} +1 -1
- package/chunks/{chunk-3RN6GBKS.js → chunk-QPDRAXDJ.js} +1 -1
- package/chunks/{chunk-2X55UKQE.js → chunk-QY5MMZ6O.js} +2 -2
- package/chunks/{chunk-CIKQ7KKO.js → chunk-RWS5VYWC.js} +14 -8
- package/chunks/{chunk-MVSUYZDT.js → chunk-SASBXAQL.js} +3 -3
- package/chunks/chunk-SQBYH7PX.js +1252 -0
- package/chunks/{chunk-MB4MZHMJ.js → chunk-SRZ6DXVG.js} +170 -389
- package/chunks/chunk-TF2X2WCT.js +363 -0
- package/chunks/{chunk-2SCDWPXI.js → chunk-TQCBGUHN.js} +2 -2
- package/chunks/{chunk-LK7CHLVP.js → chunk-U4VTUMMK.js} +0 -60
- package/chunks/{chunk-IKCX4CCL.js → chunk-U7TXFVUN.js} +6 -6
- package/chunks/{chunk-2NH6DYI4.js → chunk-V6VRAM7B.js} +10 -10
- package/chunks/{chunk-Z2BC6UJ5.js → chunk-VCBZUOSI.js} +1 -1
- package/chunks/{chunk-IKYJHJNF.js → chunk-VFSJ5VRH.js} +2 -2
- package/chunks/{chunk-LKEJ26GS.js → chunk-VV6XU5L7.js} +1 -1
- package/chunks/{chunk-7ZCNENPP.js → chunk-W4CQXHT6.js} +1 -1
- package/chunks/{chunk-HTR4WV6U.js → chunk-W4RQUHY3.js} +31 -1
- package/chunks/{chunk-ETSW4KLJ.js → chunk-WDSWXQU3.js} +1 -1
- package/chunks/{chunk-PSOO6YXD.js → chunk-XHRTVPG2.js} +8 -6
- package/chunks/{chunk-ZJHVAS7M.js → chunk-YAF5VNU7.js} +1 -1
- package/chunks/{chunk-JVPM2ULZ.js → chunk-Z5BLYMZM.js} +4 -4
- package/chunks/{chunk-M4FMGVY4.js → chunk-ZE5WPL4I.js} +2 -2
- package/chunks/{computer-use-SOQ4E3VX.js → computer-use-DOFAHZAB.js} +10 -9
- package/chunks/{config-utils-7V7GGIW6.js → config-utils-VFQXVGNR.js} +4 -3
- package/chunks/{contextCommand-JLHYA34Z.js → contextCommand-QIZYHDR5.js} +12 -11
- package/chunks/{create-sub-session-QRJLW5BV.js → create-sub-session-7543K2QA.js} +10 -9
- package/chunks/{daemon-YO6433NF.js → daemon-VOMQW7KZ.js} +189 -0
- package/chunks/{daemon-status-provider-2233Q37D.js → daemon-status-provider-OS5UWBHV.js} +18 -17
- package/chunks/{dist-WEAHOXDM.js → dist-ANLAT3GS.js} +1 -1
- package/chunks/{dist-BBLXMS3N.js → dist-BRB6EXK4.js} +1 -1
- package/chunks/{dist-YFNEUWSE.js → dist-K6Y4E7FX.js} +1 -1
- package/chunks/{dist-F6IBUDR4.js → dist-KTYYJ2C5.js} +1 -1
- package/chunks/{dist-46NQKLTW.js → dist-NNVBBOGU.js} +2 -2
- package/chunks/{dist-AIKFMUKK.js → dist-RTJFMNEZ.js} +1 -1
- package/chunks/{earlyInputCapture-A7NDU3PF.js → earlyInputCapture-WQT24RWD.js} +10 -9
- package/chunks/{edit-OBDSQURM.js → edit-RIEOJWKB.js} +10 -9
- package/chunks/{enter-worktree-U6MRPQ2P.js → enter-worktree-OGK5FQ3R.js} +10 -9
- package/chunks/{enterPlanMode-BC5QUZZ2.js → enterPlanMode-IWZYALIB.js} +10 -9
- package/chunks/{environment-W5UFC2CH.js → environment-VZ7BRI4Q.js} +12 -11
- package/chunks/{errors-M7CLORXH.js → errors-PCX25DVP.js} +12 -11
- package/chunks/{exit-worktree-DGNYMECB.js → exit-worktree-4TEYVIVP.js} +10 -9
- package/chunks/{exitPlanMode-GXTBWQAR.js → exitPlanMode-GHPUHBZJ.js} +38 -18
- package/chunks/{fast-path-JJZFJANL.js → fast-path-HYE7IFEV.js} +5 -5
- package/chunks/{gemini-QS36EBZV.js → gemini-NGRQX3YJ.js} +54 -51
- package/chunks/{geminiContentGenerator-AG4KB6CV.js → geminiContentGenerator-FQHPFZSR.js} +36 -7
- package/chunks/{glob-V7R3PSK3.js → glob-FRTM3X2E.js} +10 -9
- package/chunks/{grep-QYPSK7OP.js → grep-RKWVROCW.js} +10 -9
- package/chunks/{handleAutoUpdate-6DBEZYPV.js → handleAutoUpdate-2CZQRJ66.js} +14 -13
- package/chunks/{i18n-VUJJZIMU.js → i18n-XEQVMRKN.js} +11 -10
- package/chunks/{image-gen-Z3VPGKRC.js → image-gen-WIEM7KZA.js} +1 -1
- package/chunks/{initializer-UWAK5U5O.js → initializer-OVGZ4FLY.js} +15 -14
- package/chunks/{installationInfo-6O2YAA52.js → installationInfo-5UUQJI6Y.js} +11 -10
- package/chunks/{list-GB4ESM3T.js → list-HODU6RXD.js} +18 -17
- package/chunks/{loadedSettingsAdapter-OT6JVQ7U.js → loadedSettingsAdapter-TYNLBALY.js} +15 -14
- package/chunks/{loggingContentGenerator-HS3S5H3Q.js → loggingContentGenerator-WGM27QAW.js} +55 -91
- package/chunks/{managed-npm-update-JYEMMXA3.js → managed-npm-update-JQ2CG3RH.js} +11 -10
- package/chunks/{mcp-6DBDJPFU.js → mcp-J3DFWX4A.js} +15 -14
- package/chunks/{monitor-R3ODH5U6.js → monitor-7FEWXX5F.js} +10 -9
- package/chunks/{nonInteractiveCli-MOYCYBBU.js → nonInteractiveCli-F4GYSMHT.js} +50 -47
- package/chunks/{notebook-edit-BNOK452R.js → notebook-edit-JGJV2K6J.js} +10 -9
- package/chunks/{openaiContentGenerator-WMCU3O2H.js → openaiContentGenerator-JPVXDTAO.js} +8 -7
- package/chunks/{pidfile-TFRZZZIO.js → pidfile-4VNAR3EP.js} +10 -9
- package/chunks/{processUtils-RT7UNCC2.js → processUtils-V2LCK6T6.js} +2 -2
- package/chunks/{qwenContentGenerator-HHCRK4SX.js → qwenContentGenerator-TICV2W2Z.js} +12 -11
- package/chunks/{qwenOAuth2-OWLB5AKH.js → qwenOAuth2-XGFI5XJG.js} +1 -1
- package/chunks/{read-file-APMO3PSX.js → read-file-LZXUR4TO.js} +5 -5
- package/chunks/{resumeHistoryUtils-6KRYEAWZ.js → resumeHistoryUtils-65OX3SGJ.js} +14 -13
- package/chunks/{ripGrep-BEJDEDXW.js → ripGrep-2U2FRGMV.js} +10 -9
- package/chunks/{run-qwen-serve-FU6HEM4J.js → run-qwen-serve-3VCV4I7E.js} +69 -33
- package/chunks/{runtime-XXRRTNP6.js → runtime-AXJWIEDU.js} +20 -18
- package/chunks/{scheduler-G2ZS2Z7E.js → scheduler-RS2I6RU5.js} +10 -9
- package/chunks/{sdk-exporters-http-FYBSUCPD.js → sdk-exporters-http-FS6ZV7MF.js} +2 -2
- package/chunks/{sdk-impl-GMVPB7NB.js → sdk-impl-7FZSCSXB.js} +6 -6
- package/chunks/{serve-7BSTXJ4T.js → serve-W2GC47CM.js} +16 -15
- package/chunks/{server-4UMH7OIZ.js → server-HRZ23U7M.js} +499 -93
- package/chunks/{session-K3O3Q2SV.js → session-7XHZKTVV.js} +51 -48
- package/chunks/{settings-CR2EWTBA.js → settings-7ZGZDXAS.js} +14 -13
- package/chunks/{shell-HH3PF3A2.js → shell-45IPBDP5.js} +10 -9
- package/chunks/{skill-I3SDA4MB.js → skill-LIWXNLDW.js} +7 -6
- package/chunks/{spawnChannel-RWNDBXGA.js → spawnChannel-PVXQ5AGV.js} +12 -11
- package/chunks/{src-GE4TTTML.js → src-AY65BYR7.js} +36 -17
- package/chunks/{standalone-update-Q6WFRZZQ.js → standalone-update-ZMFNKAEY.js} +12 -11
- package/chunks/{startInteractiveUI-SLZGHRPH.js → startInteractiveUI-IW3CSKHA.js} +87 -88
- package/chunks/{team-create-YJALH5D2.js → team-create-O2FROQ4R.js} +10 -9
- package/chunks/{team-plan-approval-34QFYKGN.js → team-plan-approval-Q6WDBXTQ.js} +10 -9
- package/chunks/{theme-manager-SWRILQHI.js → theme-manager-YYPZFBAH.js} +10 -9
- package/chunks/{tool-search-NF7GB6LE.js → tool-search-APECNQ3Z.js} +5 -5
- package/chunks/{total-session-admission-DLHHHLD3.js → total-session-admission-JXES723M.js} +14 -13
- package/chunks/{tree-sitter-4D7QS7F6.js → tree-sitter-FS4VPMZA.js} +1 -1
- package/chunks/{tree-sitter-bash-VEJGF5XF.js → tree-sitter-bash-6B46JJCV.js} +1 -1
- package/chunks/{trustedFolders-KHXHY6PY.js → trustedFolders-HVI7IXUH.js} +11 -10
- package/chunks/{update-relaunch-WBUZJC5O.js → update-relaunch-ON5MDJQG.js} +5 -5
- package/chunks/{updateCheck-RKL6M5XN.js → updateCheck-WUJGHWZZ.js} +13 -12
- package/chunks/{useAutoAcceptIndicator-CFQ5BUJL.js → useAutoAcceptIndicator-CHSTZLZD.js} +17 -16
- package/chunks/{validateNonInterActiveAuth-3R223G3R.js → validateNonInterActiveAuth-JBLKBKRD.js} +47 -44
- package/chunks/{version-HS7YSFHV.js → version-LTNUBQJY.js} +1 -1
- package/chunks/{web-fetch-NKCSG7ZE.js → web-fetch-L5UTI53V.js} +5 -5
- package/chunks/{web-search-S62WAP4S.js → web-search-KM33JOS3.js} +2 -2
- package/chunks/{workflow-QAGU5RU4.js → workflow-K7FAWV77.js} +11 -10
- package/chunks/{workspace-providers-status-QSVZUETE.js → workspace-providers-status-GAKSF4LL.js} +18 -17
- package/chunks/{workspace-registration-store-24JMHDGF.js → workspace-registration-store-6TGVDJV5.js} +1 -1
- package/chunks/{workspace-registry-UT4RBNBM.js → workspace-registry-A7NQUONG.js} +14 -13
- package/chunks/{workspace-service-JFWRUS4V.js → workspace-service-STGVSO4N.js} +19 -18
- package/chunks/{workspace-skills-status-ZBBKJOI2.js → workspace-skills-status-66AK3DUA.js} +16 -15
- package/chunks/{write-file-VHIXW5M7.js → write-file-HUUCEG4P.js} +10 -9
- package/cli.js +12 -12
- package/package.json +3 -3
- package/web-shell/assets/{arc-DcbWnB9T.js → arc-BbHijhiN.js} +1 -1
- package/web-shell/assets/{architectureDiagram-3BPJPVTR-kMMF5sud.js → architectureDiagram-3BPJPVTR-Cb4B_JD0.js} +1 -1
- package/web-shell/assets/{blockDiagram-GPEHLZMM-Htl9vTJS.js → blockDiagram-GPEHLZMM-Dsjlh3H-.js} +1 -1
- package/web-shell/assets/{c4Diagram-AAUBKEIU-BnZnm0mQ.js → c4Diagram-AAUBKEIU-Cp5AeR4U.js} +1 -1
- package/web-shell/assets/channel-Bzdx6E8P.js +1 -0
- package/web-shell/assets/{chunk-2J33WTMH-DziB7kDG.js → chunk-2J33WTMH-CLcY7W2e.js} +1 -1
- package/web-shell/assets/{chunk-4BX2VUAB-CmkD8daw.js → chunk-4BX2VUAB-BUhvY2LR.js} +1 -1
- package/web-shell/assets/{chunk-55IACEB6-CHAd9A_U.js → chunk-55IACEB6-kDIFC_71.js} +1 -1
- package/web-shell/assets/{chunk-727SXJPM-Dqaam3fE.js → chunk-727SXJPM-CIBO15f2.js} +1 -1
- package/web-shell/assets/{chunk-AQP2D5EJ-D_-saBYM.js → chunk-AQP2D5EJ-BJ_T_slV.js} +1 -1
- package/web-shell/assets/{chunk-FMBD7UC4-B9r_veWD.js → chunk-FMBD7UC4-BEkW35J8.js} +1 -1
- package/web-shell/assets/{chunk-ND2GUHAM-B3EaCSpL.js → chunk-ND2GUHAM-GGPxofay.js} +1 -1
- package/web-shell/assets/{chunk-QZHKN3VN-CYq8x9mn.js → chunk-QZHKN3VN-Bifllrb6.js} +1 -1
- package/web-shell/assets/classDiagram-4FO5ZUOK-Cd6wbiuK.js +1 -0
- package/web-shell/assets/classDiagram-v2-Q7XG4LA2-Cd6wbiuK.js +1 -0
- package/web-shell/assets/{cose-bilkent-S5V4N54A-D0ng4uiB.js → cose-bilkent-S5V4N54A-C-Add_Dp.js} +1 -1
- package/web-shell/assets/{dagre-BM42HDAG-DCZollQv.js → dagre-BM42HDAG-B7MfwNq2.js} +1 -1
- package/web-shell/assets/{diagram-2AECGRRQ-Dfk2pWS0.js → diagram-2AECGRRQ-CY_0zuDz.js} +1 -1
- package/web-shell/assets/{diagram-5GNKFQAL-kX38ltWR.js → diagram-5GNKFQAL-VyYSbCgA.js} +1 -1
- package/web-shell/assets/{diagram-KO2AKTUF-CJz2vsXh.js → diagram-KO2AKTUF-CBiIZ2PL.js} +1 -1
- package/web-shell/assets/{diagram-LMA3HP47-BvMLZm_7.js → diagram-LMA3HP47-BL3CrVOx.js} +1 -1
- package/web-shell/assets/{diagram-OG6HWLK6-l7kfStkO.js → diagram-OG6HWLK6-CZUPx96P.js} +1 -1
- package/web-shell/assets/{erDiagram-TEJ5UH35-BSVa8GGT.js → erDiagram-TEJ5UH35-B81xHr1-.js} +1 -1
- package/web-shell/assets/{flowDiagram-I6XJVG4X-CoawKIXH.js → flowDiagram-I6XJVG4X-EZWhir-J.js} +1 -1
- package/web-shell/assets/{ganttDiagram-6RSMTGT7-DFUDH0zF.js → ganttDiagram-6RSMTGT7-CVFSuIAg.js} +1 -1
- package/web-shell/assets/{gitGraphDiagram-PVQCEYII-Y2pvpT4e.js → gitGraphDiagram-PVQCEYII-C1H2uQDv.js} +1 -1
- package/web-shell/assets/{index-ckX9Pq5k.js → index-B2bXx96W.js} +273 -254
- package/web-shell/assets/{index-D0GX0zZf.js → index-BYo99NBH.js} +1 -1
- package/web-shell/assets/{index-D9haPt0X.css → index-_8mKjx8q.css} +1 -1
- package/web-shell/assets/{infoDiagram-5YYISTIA-CU8_zLiX.js → infoDiagram-5YYISTIA-BwyFMlF8.js} +1 -1
- package/web-shell/assets/{ishikawaDiagram-YF4QCWOH-AVQiV0DU.js → ishikawaDiagram-YF4QCWOH-CQ7Yhn2Y.js} +1 -1
- package/web-shell/assets/{journeyDiagram-JHISSGLW-DQ0VSKa3.js → journeyDiagram-JHISSGLW-CJn2sf0l.js} +1 -1
- package/web-shell/assets/{kanban-definition-UN3LZRKU-BqnWqsE_.js → kanban-definition-UN3LZRKU-DaNRqwVN.js} +1 -1
- package/web-shell/assets/{linear-BkoihsaA.js → linear-DCKODZe2.js} +1 -1
- package/web-shell/assets/{mermaid.core-5RJs-31j.js → mermaid.core-CTGJOk27.js} +5 -5
- package/web-shell/assets/{mindmap-definition-RKZ34NQL-D33Bxnpd.js → mindmap-definition-RKZ34NQL-BKU3_3rg.js} +1 -1
- package/web-shell/assets/{pieDiagram-4H26LBE5-BuEAw3BH.js → pieDiagram-4H26LBE5-COcwBJ82.js} +1 -1
- package/web-shell/assets/{quadrantDiagram-W4KKPZXB-Kox_usEq.js → quadrantDiagram-W4KKPZXB-CQnQ443x.js} +1 -1
- package/web-shell/assets/{requirementDiagram-4Y6WPE33-CNjeUif0.js → requirementDiagram-4Y6WPE33-CZ2oj5cD.js} +1 -1
- package/web-shell/assets/{sankeyDiagram-5OEKKPKP-BCd2OL_U.js → sankeyDiagram-5OEKKPKP-BxAv5mNu.js} +1 -1
- package/web-shell/assets/{sequenceDiagram-3UESZ5HK-CF2ZTsz0.js → sequenceDiagram-3UESZ5HK-CztaySPs.js} +1 -1
- package/web-shell/assets/{stateDiagram-AJRCARHV-qenSzHtm.js → stateDiagram-AJRCARHV-CTQT1oGD.js} +1 -1
- package/web-shell/assets/stateDiagram-v2-BHNVJYJU-BjMdT6E_.js +1 -0
- package/web-shell/assets/{timeline-definition-PNZ67QCA-B5DyWdgs.js → timeline-definition-PNZ67QCA-K9Mkex5A.js} +1 -1
- package/web-shell/assets/{vennDiagram-CIIHVFJN-DqP4I_o_.js → vennDiagram-CIIHVFJN-B2rVIw76.js} +1 -1
- package/web-shell/assets/{wardley-L42UT6IY-CJe2e4mg.js → wardley-L42UT6IY-Z1w2JR4M.js} +1 -1
- package/web-shell/assets/{wardleyDiagram-YWT4CUSO-BMDSw-Rr.js → wardleyDiagram-YWT4CUSO-CIX9aKXf.js} +1 -1
- package/web-shell/assets/{xychartDiagram-2RQKCTM6-BTVZYkxD.js → xychartDiagram-2RQKCTM6-CI9DLIKB.js} +1 -1
- package/web-shell/index.html +2 -2
- package/chunks/chunk-LEH5C7FV.js +0 -232
- 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/stateDiagram-v2-BHNVJYJU-B7W4zlCr.js +0 -1
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
import {
|
|
18
18
|
formatHistoryGapNotice,
|
|
19
19
|
indexGapsByChild
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-BRRAJXPA.js";
|
|
21
21
|
import {
|
|
22
22
|
stringWidth
|
|
23
23
|
} from "./chunk-2MIN6GRR.js";
|
|
@@ -29,10 +29,10 @@ import {
|
|
|
29
29
|
} from "./chunk-E5Z2AVNV.js";
|
|
30
30
|
import {
|
|
31
31
|
t
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-VV6XU5L7.js";
|
|
33
33
|
import {
|
|
34
34
|
getToolResponseDisplayText
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-DM4Q4JJH.js";
|
|
36
36
|
import {
|
|
37
37
|
stripAnsi
|
|
38
38
|
} from "./chunk-TWPJO254.js";
|
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
import {
|
|
4
4
|
getGitVersion,
|
|
5
5
|
getNpmVersion
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-SASBXAQL.js";
|
|
7
7
|
import {
|
|
8
8
|
buildEnvStatusFromEnv,
|
|
9
9
|
snapshotProcessEnv
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-WDSWXQU3.js";
|
|
11
11
|
import {
|
|
12
12
|
mapDomainErrorToErrorKind
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-KU5XMLDK.js";
|
|
14
14
|
import {
|
|
15
15
|
canUseRipgrep
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-DM4Q4JJH.js";
|
|
17
17
|
import {
|
|
18
18
|
init_esbuild_shims
|
|
19
19
|
} from "./chunk-5O2XNYP6.js";
|
|
@@ -2,7 +2,11 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
resolveChannelCwd
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-W4CQXHT6.js";
|
|
6
|
+
import {
|
|
7
|
+
getPlugin,
|
|
8
|
+
supportedTypes
|
|
9
|
+
} from "./chunk-MK7VQDN3.js";
|
|
6
10
|
import {
|
|
7
11
|
init_esbuild_shims
|
|
8
12
|
} from "./chunk-5O2XNYP6.js";
|
|
@@ -12,60 +16,6 @@ import {
|
|
|
12
16
|
|
|
13
17
|
// packages/cli/src/commands/channel/config-utils.ts
|
|
14
18
|
init_esbuild_shims();
|
|
15
|
-
|
|
16
|
-
// packages/cli/src/commands/channel/channel-registry.ts
|
|
17
|
-
init_esbuild_shims();
|
|
18
|
-
var registry = /* @__PURE__ */ new Map();
|
|
19
|
-
var builtinsPromise = null;
|
|
20
|
-
function ensureBuiltins() {
|
|
21
|
-
if (!builtinsPromise) {
|
|
22
|
-
builtinsPromise = (async () => {
|
|
23
|
-
const labelled = [
|
|
24
|
-
{ name: "telegram", promise: import("./dist-BBLXMS3N.js") },
|
|
25
|
-
{ name: "weixin", promise: import("./dist-46NQKLTW.js") },
|
|
26
|
-
{ name: "dingtalk", promise: import("./dist-AIKFMUKK.js") },
|
|
27
|
-
{ name: "wecom", promise: import("./dist-YFNEUWSE.js") },
|
|
28
|
-
{ name: "feishu", promise: import("./dist-F6IBUDR4.js") },
|
|
29
|
-
{ name: "qqbot", promise: import("./dist-WEAHOXDM.js") }
|
|
30
|
-
];
|
|
31
|
-
const results = await Promise.allSettled(labelled.map((l) => l.promise));
|
|
32
|
-
for (let i = 0; i < results.length; i++) {
|
|
33
|
-
const result = results[i];
|
|
34
|
-
if (result.status === "fulfilled") {
|
|
35
|
-
registry.set(result.value.plugin.channelType, result.value.plugin);
|
|
36
|
-
} else {
|
|
37
|
-
process.stderr.write(
|
|
38
|
-
`[channel-registry] Failed to load "${labelled[i].name}" channel: ${result.reason}
|
|
39
|
-
`
|
|
40
|
-
);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
})();
|
|
44
|
-
}
|
|
45
|
-
return builtinsPromise;
|
|
46
|
-
}
|
|
47
|
-
__name(ensureBuiltins, "ensureBuiltins");
|
|
48
|
-
function registerPlugin(plugin) {
|
|
49
|
-
if (registry.has(plugin.channelType)) {
|
|
50
|
-
throw new Error(
|
|
51
|
-
`Channel type "${plugin.channelType}" is already registered.`
|
|
52
|
-
);
|
|
53
|
-
}
|
|
54
|
-
registry.set(plugin.channelType, plugin);
|
|
55
|
-
}
|
|
56
|
-
__name(registerPlugin, "registerPlugin");
|
|
57
|
-
async function getPlugin(channelType) {
|
|
58
|
-
await ensureBuiltins();
|
|
59
|
-
return registry.get(channelType);
|
|
60
|
-
}
|
|
61
|
-
__name(getPlugin, "getPlugin");
|
|
62
|
-
async function supportedTypes() {
|
|
63
|
-
await ensureBuiltins();
|
|
64
|
-
return [...registry.keys()];
|
|
65
|
-
}
|
|
66
|
-
__name(supportedTypes, "supportedTypes");
|
|
67
|
-
|
|
68
|
-
// packages/cli/src/commands/channel/config-utils.ts
|
|
69
19
|
var ENV_VAR_NAME_PATTERN = /^[A-Z_][A-Z0-9_]*$/;
|
|
70
20
|
var CHANNEL_APPROVAL_MODES = /* @__PURE__ */ new Set([
|
|
71
21
|
"plan",
|
|
@@ -439,8 +389,6 @@ async function parseChannelConfig(name, rawConfig, defaultCwd = process.cwd(), o
|
|
|
439
389
|
__name(parseChannelConfig, "parseChannelConfig");
|
|
440
390
|
|
|
441
391
|
export {
|
|
442
|
-
registerPlugin,
|
|
443
|
-
getPlugin,
|
|
444
392
|
resolveEnvVars,
|
|
445
393
|
parseChannelWebhookConfig,
|
|
446
394
|
parseChannelWebhookConfigLenient,
|
|
@@ -0,0 +1,463 @@
|
|
|
1
|
+
// Force strict mode and setup for ESM
|
|
2
|
+
"use strict";
|
|
3
|
+
import {
|
|
4
|
+
GenAiOutputAccumulator,
|
|
5
|
+
extractAnthropicContent,
|
|
6
|
+
extractGeminiContent,
|
|
7
|
+
extractOpenAiContent,
|
|
8
|
+
stringifyGenAiJson
|
|
9
|
+
} from "./chunk-SQBYH7PX.js";
|
|
10
|
+
import {
|
|
11
|
+
createDebugLogger
|
|
12
|
+
} from "./chunk-NL7LTRLR.js";
|
|
13
|
+
import {
|
|
14
|
+
ROOT_CONTEXT,
|
|
15
|
+
context,
|
|
16
|
+
createContextKey,
|
|
17
|
+
init_esm
|
|
18
|
+
} from "./chunk-TARRHLLG.js";
|
|
19
|
+
import {
|
|
20
|
+
init_esbuild_shims
|
|
21
|
+
} from "./chunk-5O2XNYP6.js";
|
|
22
|
+
import {
|
|
23
|
+
__name
|
|
24
|
+
} from "./chunk-J2S4EL5Y.js";
|
|
25
|
+
|
|
26
|
+
// packages/core/src/telemetry/gen-ai-request.ts
|
|
27
|
+
init_esbuild_shims();
|
|
28
|
+
init_esm();
|
|
29
|
+
var debugLogger = createDebugLogger("GEN_AI_EXCHANGE");
|
|
30
|
+
var requestObserverKey = createContextKey(
|
|
31
|
+
"qwen-code.gen-ai-request-observer"
|
|
32
|
+
);
|
|
33
|
+
var DISABLED_OBSERVER = Symbol("disabled-gen-ai-exchange");
|
|
34
|
+
function ownValue(record, key) {
|
|
35
|
+
return Object.hasOwn(record, key) ? record[key] : void 0;
|
|
36
|
+
}
|
|
37
|
+
__name(ownValue, "ownValue");
|
|
38
|
+
function finiteNumber(value) {
|
|
39
|
+
return typeof value === "number" && Number.isFinite(value) ? value : void 0;
|
|
40
|
+
}
|
|
41
|
+
__name(finiteNumber, "finiteNumber");
|
|
42
|
+
function safeInteger(value) {
|
|
43
|
+
return typeof value === "number" && Number.isSafeInteger(value) ? value : void 0;
|
|
44
|
+
}
|
|
45
|
+
__name(safeInteger, "safeInteger");
|
|
46
|
+
function stopSequences(value, allowSingleString) {
|
|
47
|
+
if (allowSingleString && typeof value === "string") return [value];
|
|
48
|
+
if (!Array.isArray(value) || !value.every((item) => typeof item === "string"))
|
|
49
|
+
return void 0;
|
|
50
|
+
return [...value];
|
|
51
|
+
}
|
|
52
|
+
__name(stopSequences, "stopSequences");
|
|
53
|
+
function outputBudget(record) {
|
|
54
|
+
const values = ["max_tokens", "max_completion_tokens", "max_new_tokens"].map((key) => ownValue(record, key)).filter((value) => value !== void 0 && value !== null);
|
|
55
|
+
if (values.length === 0) return void 0;
|
|
56
|
+
const integers = values.map(safeInteger);
|
|
57
|
+
if (integers.some((value) => value === void 0)) return void 0;
|
|
58
|
+
const first = integers[0];
|
|
59
|
+
return integers.every((value) => value === first) ? first : void 0;
|
|
60
|
+
}
|
|
61
|
+
__name(outputBudget, "outputBudget");
|
|
62
|
+
function assignNumber(attributes, key, value) {
|
|
63
|
+
const number = finiteNumber(value);
|
|
64
|
+
if (number !== void 0) attributes[key] = number;
|
|
65
|
+
}
|
|
66
|
+
__name(assignNumber, "assignNumber");
|
|
67
|
+
function assignInteger(attributes, key, value) {
|
|
68
|
+
const integer = safeInteger(value);
|
|
69
|
+
if (integer !== void 0) attributes[key] = integer;
|
|
70
|
+
}
|
|
71
|
+
__name(assignInteger, "assignInteger");
|
|
72
|
+
function assignStopSequences(attributes, value, allowSingleString) {
|
|
73
|
+
const sequences = stopSequences(value, allowSingleString);
|
|
74
|
+
if (sequences !== void 0)
|
|
75
|
+
attributes["gen_ai.request.stop_sequences"] = sequences;
|
|
76
|
+
}
|
|
77
|
+
__name(assignStopSequences, "assignStopSequences");
|
|
78
|
+
function extractOpenAiRequestAttributes(request) {
|
|
79
|
+
const record = request;
|
|
80
|
+
const attributes = {};
|
|
81
|
+
const choiceCount = safeInteger(ownValue(record, "n"));
|
|
82
|
+
if (choiceCount !== void 0 && choiceCount !== 1) {
|
|
83
|
+
attributes["gen_ai.request.choice.count"] = choiceCount;
|
|
84
|
+
}
|
|
85
|
+
const maxTokens = outputBudget(record);
|
|
86
|
+
if (maxTokens !== void 0) {
|
|
87
|
+
attributes["gen_ai.request.max_tokens"] = maxTokens;
|
|
88
|
+
}
|
|
89
|
+
assignNumber(
|
|
90
|
+
attributes,
|
|
91
|
+
"gen_ai.request.temperature",
|
|
92
|
+
ownValue(record, "temperature")
|
|
93
|
+
);
|
|
94
|
+
assignNumber(attributes, "gen_ai.request.top_p", ownValue(record, "top_p"));
|
|
95
|
+
assignNumber(
|
|
96
|
+
attributes,
|
|
97
|
+
"gen_ai.request.frequency_penalty",
|
|
98
|
+
ownValue(record, "frequency_penalty")
|
|
99
|
+
);
|
|
100
|
+
assignNumber(
|
|
101
|
+
attributes,
|
|
102
|
+
"gen_ai.request.presence_penalty",
|
|
103
|
+
ownValue(record, "presence_penalty")
|
|
104
|
+
);
|
|
105
|
+
assignStopSequences(attributes, ownValue(record, "stop"), true);
|
|
106
|
+
return attributes;
|
|
107
|
+
}
|
|
108
|
+
__name(extractOpenAiRequestAttributes, "extractOpenAiRequestAttributes");
|
|
109
|
+
function extractAnthropicRequestAttributes(request) {
|
|
110
|
+
const record = request;
|
|
111
|
+
const attributes = {};
|
|
112
|
+
assignInteger(
|
|
113
|
+
attributes,
|
|
114
|
+
"gen_ai.request.max_tokens",
|
|
115
|
+
ownValue(record, "max_tokens")
|
|
116
|
+
);
|
|
117
|
+
assignNumber(
|
|
118
|
+
attributes,
|
|
119
|
+
"gen_ai.request.temperature",
|
|
120
|
+
ownValue(record, "temperature")
|
|
121
|
+
);
|
|
122
|
+
assignNumber(attributes, "gen_ai.request.top_p", ownValue(record, "top_p"));
|
|
123
|
+
assignStopSequences(attributes, ownValue(record, "stop_sequences"), false);
|
|
124
|
+
return attributes;
|
|
125
|
+
}
|
|
126
|
+
__name(extractAnthropicRequestAttributes, "extractAnthropicRequestAttributes");
|
|
127
|
+
function extractGeminiRequestAttributes(request) {
|
|
128
|
+
const record = request;
|
|
129
|
+
const config = ownValue(record, "config");
|
|
130
|
+
if (typeof config !== "object" || config === null) return {};
|
|
131
|
+
const configRecord = config;
|
|
132
|
+
const attributes = {};
|
|
133
|
+
const choiceCount = safeInteger(ownValue(configRecord, "candidateCount"));
|
|
134
|
+
if (choiceCount !== void 0 && choiceCount !== 1) {
|
|
135
|
+
attributes["gen_ai.request.choice.count"] = choiceCount;
|
|
136
|
+
}
|
|
137
|
+
assignInteger(
|
|
138
|
+
attributes,
|
|
139
|
+
"gen_ai.request.max_tokens",
|
|
140
|
+
ownValue(configRecord, "maxOutputTokens")
|
|
141
|
+
);
|
|
142
|
+
assignNumber(
|
|
143
|
+
attributes,
|
|
144
|
+
"gen_ai.request.temperature",
|
|
145
|
+
ownValue(configRecord, "temperature")
|
|
146
|
+
);
|
|
147
|
+
assignNumber(
|
|
148
|
+
attributes,
|
|
149
|
+
"gen_ai.request.top_p",
|
|
150
|
+
ownValue(configRecord, "topP")
|
|
151
|
+
);
|
|
152
|
+
assignNumber(
|
|
153
|
+
attributes,
|
|
154
|
+
"gen_ai.request.frequency_penalty",
|
|
155
|
+
ownValue(configRecord, "frequencyPenalty")
|
|
156
|
+
);
|
|
157
|
+
assignNumber(
|
|
158
|
+
attributes,
|
|
159
|
+
"gen_ai.request.presence_penalty",
|
|
160
|
+
ownValue(configRecord, "presencePenalty")
|
|
161
|
+
);
|
|
162
|
+
assignStopSequences(
|
|
163
|
+
attributes,
|
|
164
|
+
ownValue(configRecord, "stopSequences"),
|
|
165
|
+
false
|
|
166
|
+
);
|
|
167
|
+
return attributes;
|
|
168
|
+
}
|
|
169
|
+
__name(extractGeminiRequestAttributes, "extractGeminiRequestAttributes");
|
|
170
|
+
var GenAiExchangeController = class {
|
|
171
|
+
constructor(span, options, enabled) {
|
|
172
|
+
this.span = span;
|
|
173
|
+
this.options = options;
|
|
174
|
+
this.enabled = enabled;
|
|
175
|
+
this.output = this.newOutput();
|
|
176
|
+
}
|
|
177
|
+
static {
|
|
178
|
+
__name(this, "GenAiExchangeController");
|
|
179
|
+
}
|
|
180
|
+
requestConsumed = false;
|
|
181
|
+
generation = 0;
|
|
182
|
+
finalized = false;
|
|
183
|
+
output;
|
|
184
|
+
responseConversionFailed = false;
|
|
185
|
+
beginRequest(request, extractRequest, extractContent) {
|
|
186
|
+
if (!this.enabled || this.finalized) return void 0;
|
|
187
|
+
const generation = ++this.generation;
|
|
188
|
+
this.output = this.newOutput();
|
|
189
|
+
this.responseConversionFailed = false;
|
|
190
|
+
if (!this.requestConsumed) {
|
|
191
|
+
this.requestConsumed = true;
|
|
192
|
+
const attributes = {};
|
|
193
|
+
try {
|
|
194
|
+
Object.assign(attributes, extractRequest(request));
|
|
195
|
+
if (this.options.captureContent) {
|
|
196
|
+
const content = extractContent(request);
|
|
197
|
+
this.assignJsonAttribute(
|
|
198
|
+
attributes,
|
|
199
|
+
"gen_ai.input.messages",
|
|
200
|
+
content.inputMessages
|
|
201
|
+
);
|
|
202
|
+
this.assignJsonAttribute(
|
|
203
|
+
attributes,
|
|
204
|
+
"gen_ai.system_instructions",
|
|
205
|
+
content.systemInstructions
|
|
206
|
+
);
|
|
207
|
+
this.assignJsonAttribute(
|
|
208
|
+
attributes,
|
|
209
|
+
"gen_ai.tool.definitions",
|
|
210
|
+
content.toolDefinitions
|
|
211
|
+
);
|
|
212
|
+
}
|
|
213
|
+
} catch {
|
|
214
|
+
debugLogger.debug("Failed to convert GenAI request attributes");
|
|
215
|
+
}
|
|
216
|
+
try {
|
|
217
|
+
this.span.setAttributes(attributes);
|
|
218
|
+
} catch {
|
|
219
|
+
debugLogger.debug("Failed to set GenAI request span attributes");
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
return { controller: this, generation };
|
|
223
|
+
}
|
|
224
|
+
beginFollowingRequest(handle, request, extractRequest, extractContent) {
|
|
225
|
+
if (handle.controller !== this || handle.generation !== this.generation || this.finalized) {
|
|
226
|
+
return void 0;
|
|
227
|
+
}
|
|
228
|
+
return this.beginRequest(request, extractRequest, extractContent);
|
|
229
|
+
}
|
|
230
|
+
record(handle, update) {
|
|
231
|
+
if (!handle || handle.controller !== this || handle.generation !== this.generation || this.finalized) {
|
|
232
|
+
return;
|
|
233
|
+
}
|
|
234
|
+
try {
|
|
235
|
+
update(this.output);
|
|
236
|
+
} catch {
|
|
237
|
+
this.output.discardContent();
|
|
238
|
+
this.responseConversionFailed = true;
|
|
239
|
+
debugLogger.debug("Failed to convert GenAI response content");
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
finalize(success) {
|
|
243
|
+
if (this.finalized) return void 0;
|
|
244
|
+
this.finalized = true;
|
|
245
|
+
let finishReasons;
|
|
246
|
+
try {
|
|
247
|
+
const outputMessages = this.output.finalize(success);
|
|
248
|
+
finishReasons = this.responseConversionFailed ? void 0 : this.output.finishReasons;
|
|
249
|
+
if (outputMessages !== void 0) {
|
|
250
|
+
this.span.setAttribute("gen_ai.output.messages", outputMessages);
|
|
251
|
+
}
|
|
252
|
+
} catch {
|
|
253
|
+
debugLogger.debug("Failed to finalize GenAI response attributes");
|
|
254
|
+
} finally {
|
|
255
|
+
this.output = this.newOutput();
|
|
256
|
+
}
|
|
257
|
+
return finishReasons;
|
|
258
|
+
}
|
|
259
|
+
assignJsonAttribute(attributes, key, value) {
|
|
260
|
+
if (value === void 0) return;
|
|
261
|
+
let serialized;
|
|
262
|
+
try {
|
|
263
|
+
serialized = stringifyGenAiJson(
|
|
264
|
+
value,
|
|
265
|
+
this.options.sensitiveAttributeMaxLength
|
|
266
|
+
);
|
|
267
|
+
} catch {
|
|
268
|
+
debugLogger.debug(`Failed to serialize ${key} span attribute`);
|
|
269
|
+
return;
|
|
270
|
+
}
|
|
271
|
+
if (serialized !== void 0) attributes[key] = serialized;
|
|
272
|
+
}
|
|
273
|
+
newOutput() {
|
|
274
|
+
return new GenAiOutputAccumulator(
|
|
275
|
+
this.options.captureContent,
|
|
276
|
+
this.options.sensitiveAttributeMaxLength
|
|
277
|
+
);
|
|
278
|
+
}
|
|
279
|
+
};
|
|
280
|
+
function disabledFallbackContext(parent) {
|
|
281
|
+
const fallback = Object.create(parent);
|
|
282
|
+
fallback.getValue = (key) => {
|
|
283
|
+
if (key === requestObserverKey) return DISABLED_OBSERVER;
|
|
284
|
+
try {
|
|
285
|
+
return parent.getValue(key);
|
|
286
|
+
} catch {
|
|
287
|
+
return void 0;
|
|
288
|
+
}
|
|
289
|
+
};
|
|
290
|
+
fallback.setValue = (key, value) => {
|
|
291
|
+
if (key === requestObserverKey) return fallback;
|
|
292
|
+
try {
|
|
293
|
+
return disabledFallbackContext(parent.setValue(key, value));
|
|
294
|
+
} catch {
|
|
295
|
+
return fallback;
|
|
296
|
+
}
|
|
297
|
+
};
|
|
298
|
+
fallback.deleteValue = (key) => {
|
|
299
|
+
if (key === requestObserverKey) return fallback;
|
|
300
|
+
try {
|
|
301
|
+
return disabledFallbackContext(parent.deleteValue(key));
|
|
302
|
+
} catch {
|
|
303
|
+
return fallback;
|
|
304
|
+
}
|
|
305
|
+
};
|
|
306
|
+
return fallback;
|
|
307
|
+
}
|
|
308
|
+
__name(disabledFallbackContext, "disabledFallbackContext");
|
|
309
|
+
function createGenAiExchange(parent, span, options) {
|
|
310
|
+
let enabled = false;
|
|
311
|
+
try {
|
|
312
|
+
enabled = span.isRecording();
|
|
313
|
+
} catch {
|
|
314
|
+
enabled = false;
|
|
315
|
+
}
|
|
316
|
+
const controller = new GenAiExchangeController(span, options, enabled);
|
|
317
|
+
try {
|
|
318
|
+
return {
|
|
319
|
+
context: parent.setValue(
|
|
320
|
+
requestObserverKey,
|
|
321
|
+
enabled ? controller : DISABLED_OBSERVER
|
|
322
|
+
),
|
|
323
|
+
controller
|
|
324
|
+
};
|
|
325
|
+
} catch {
|
|
326
|
+
return {
|
|
327
|
+
context: parent === ROOT_CONTEXT ? ROOT_CONTEXT : disabledFallbackContext(parent),
|
|
328
|
+
controller
|
|
329
|
+
};
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
__name(createGenAiExchange, "createGenAiExchange");
|
|
333
|
+
function activeController(requestContext) {
|
|
334
|
+
let observer;
|
|
335
|
+
try {
|
|
336
|
+
observer = (requestContext ?? context.active()).getValue(
|
|
337
|
+
requestObserverKey
|
|
338
|
+
);
|
|
339
|
+
} catch {
|
|
340
|
+
return void 0;
|
|
341
|
+
}
|
|
342
|
+
return observer instanceof GenAiExchangeController ? observer : void 0;
|
|
343
|
+
}
|
|
344
|
+
__name(activeController, "activeController");
|
|
345
|
+
function reportRequest(request, extractRequest, extractContent, requestContext, previousAttempt) {
|
|
346
|
+
try {
|
|
347
|
+
if (previousAttempt) {
|
|
348
|
+
return previousAttempt.controller.beginFollowingRequest(
|
|
349
|
+
previousAttempt,
|
|
350
|
+
request,
|
|
351
|
+
extractRequest,
|
|
352
|
+
extractContent
|
|
353
|
+
);
|
|
354
|
+
}
|
|
355
|
+
return activeController(requestContext)?.beginRequest(
|
|
356
|
+
request,
|
|
357
|
+
extractRequest,
|
|
358
|
+
extractContent
|
|
359
|
+
);
|
|
360
|
+
} catch {
|
|
361
|
+
return void 0;
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
__name(reportRequest, "reportRequest");
|
|
365
|
+
function reportOpenAiRequest(request, requestContext) {
|
|
366
|
+
return reportRequest(
|
|
367
|
+
request,
|
|
368
|
+
extractOpenAiRequestAttributes,
|
|
369
|
+
extractOpenAiContent,
|
|
370
|
+
requestContext
|
|
371
|
+
);
|
|
372
|
+
}
|
|
373
|
+
__name(reportOpenAiRequest, "reportOpenAiRequest");
|
|
374
|
+
function reportAnthropicRequest(request, requestContext) {
|
|
375
|
+
return reportRequest(
|
|
376
|
+
request,
|
|
377
|
+
extractAnthropicRequestAttributes,
|
|
378
|
+
extractAnthropicContent,
|
|
379
|
+
requestContext
|
|
380
|
+
);
|
|
381
|
+
}
|
|
382
|
+
__name(reportAnthropicRequest, "reportAnthropicRequest");
|
|
383
|
+
function reportAnthropicFollowingRequest(request, previousAttempt) {
|
|
384
|
+
if (!previousAttempt) return void 0;
|
|
385
|
+
return reportRequest(
|
|
386
|
+
request,
|
|
387
|
+
extractAnthropicRequestAttributes,
|
|
388
|
+
extractAnthropicContent,
|
|
389
|
+
void 0,
|
|
390
|
+
previousAttempt
|
|
391
|
+
);
|
|
392
|
+
}
|
|
393
|
+
__name(reportAnthropicFollowingRequest, "reportAnthropicFollowingRequest");
|
|
394
|
+
function reportGeminiRequest(request, requestContext) {
|
|
395
|
+
return reportRequest(
|
|
396
|
+
request,
|
|
397
|
+
extractGeminiRequestAttributes,
|
|
398
|
+
extractGeminiContent,
|
|
399
|
+
requestContext
|
|
400
|
+
);
|
|
401
|
+
}
|
|
402
|
+
__name(reportGeminiRequest, "reportGeminiRequest");
|
|
403
|
+
function reportOpenAiResponse(handle, response) {
|
|
404
|
+
handle?.controller.record(
|
|
405
|
+
handle,
|
|
406
|
+
(output) => output.recordOpenAiResponse(response)
|
|
407
|
+
);
|
|
408
|
+
}
|
|
409
|
+
__name(reportOpenAiResponse, "reportOpenAiResponse");
|
|
410
|
+
function reportOpenAiChunk(handle, chunk) {
|
|
411
|
+
handle?.controller.record(
|
|
412
|
+
handle,
|
|
413
|
+
(output) => output.recordOpenAiChunk(chunk)
|
|
414
|
+
);
|
|
415
|
+
}
|
|
416
|
+
__name(reportOpenAiChunk, "reportOpenAiChunk");
|
|
417
|
+
function reportAnthropicResponse(handle, response) {
|
|
418
|
+
handle?.controller.record(
|
|
419
|
+
handle,
|
|
420
|
+
(output) => output.recordAnthropicResponse(response)
|
|
421
|
+
);
|
|
422
|
+
}
|
|
423
|
+
__name(reportAnthropicResponse, "reportAnthropicResponse");
|
|
424
|
+
function reportAnthropicEvent(handle, event) {
|
|
425
|
+
handle?.controller.record(
|
|
426
|
+
handle,
|
|
427
|
+
(output) => output.recordAnthropicEvent(event)
|
|
428
|
+
);
|
|
429
|
+
}
|
|
430
|
+
__name(reportAnthropicEvent, "reportAnthropicEvent");
|
|
431
|
+
function reportGeminiResponse(handle, response) {
|
|
432
|
+
handle?.controller.record(
|
|
433
|
+
handle,
|
|
434
|
+
(output) => output.recordGeminiResponse(response)
|
|
435
|
+
);
|
|
436
|
+
}
|
|
437
|
+
__name(reportGeminiResponse, "reportGeminiResponse");
|
|
438
|
+
function reportGeminiChunk(handle, chunk) {
|
|
439
|
+
handle?.controller.record(
|
|
440
|
+
handle,
|
|
441
|
+
(output) => output.recordGeminiChunk(chunk)
|
|
442
|
+
);
|
|
443
|
+
}
|
|
444
|
+
__name(reportGeminiChunk, "reportGeminiChunk");
|
|
445
|
+
|
|
446
|
+
export {
|
|
447
|
+
createGenAiExchange,
|
|
448
|
+
reportOpenAiRequest,
|
|
449
|
+
reportAnthropicRequest,
|
|
450
|
+
reportAnthropicFollowingRequest,
|
|
451
|
+
reportGeminiRequest,
|
|
452
|
+
reportOpenAiResponse,
|
|
453
|
+
reportOpenAiChunk,
|
|
454
|
+
reportAnthropicResponse,
|
|
455
|
+
reportAnthropicEvent,
|
|
456
|
+
reportGeminiResponse,
|
|
457
|
+
reportGeminiChunk
|
|
458
|
+
};
|
|
459
|
+
/**
|
|
460
|
+
* @license
|
|
461
|
+
* Copyright 2026 Qwen Team
|
|
462
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
463
|
+
*/
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
t
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-VV6XU5L7.js";
|
|
6
6
|
import {
|
|
7
7
|
SessionReferenceService,
|
|
8
8
|
SessionService,
|
|
9
9
|
readManyFiles,
|
|
10
10
|
stripTerminalControlSequences
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-DM4Q4JJH.js";
|
|
12
12
|
import {
|
|
13
13
|
emptyMcpResourceText,
|
|
14
14
|
formatMcpResourceContents,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
} from "./chunk-HTO4JFDZ.js";
|
|
17
17
|
import {
|
|
18
18
|
shouldRunVisionBridge
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-RWS5VYWC.js";
|
|
20
20
|
import {
|
|
21
21
|
Storage,
|
|
22
22
|
getErrorMessage,
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
// Force strict mode and setup for ESM
|
|
2
|
+
"use strict";
|
|
3
|
+
import {
|
|
4
|
+
redactLogCredentials
|
|
5
|
+
} from "./chunk-M5GB774H.js";
|
|
6
|
+
import {
|
|
7
|
+
sanitizeLogText
|
|
8
|
+
} from "./chunk-ML52PL6O.js";
|
|
9
|
+
import {
|
|
10
|
+
stripAnsi
|
|
11
|
+
} from "./chunk-TWPJO254.js";
|
|
12
|
+
import {
|
|
13
|
+
init_esbuild_shims
|
|
14
|
+
} from "./chunk-5O2XNYP6.js";
|
|
15
|
+
import {
|
|
16
|
+
__name
|
|
17
|
+
} from "./chunk-J2S4EL5Y.js";
|
|
18
|
+
|
|
19
|
+
// packages/cli/src/serve/channel-worker-diagnostics.ts
|
|
20
|
+
init_esbuild_shims();
|
|
21
|
+
var WORKER_LOG_INVISIBLE_RE = new RegExp("[\\p{Cf}\\u2028\\u2029]|\\p{Variation_Selector}", "gu");
|
|
22
|
+
var WORKER_LOG_CONTROL_RE = /[\x00-\x1f\x7f-\x9f]/g;
|
|
23
|
+
function escapeRegExp(value) {
|
|
24
|
+
return value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
25
|
+
}
|
|
26
|
+
__name(escapeRegExp, "escapeRegExp");
|
|
27
|
+
function sensitiveEnvValues(env) {
|
|
28
|
+
const sensitiveKey = /(^|_)(TOKEN|SECRET|API_KEY|ACCESS_KEY|PRIVATE_KEY|CREDENTIAL|PASSWORD|PASSWD|PASSPHRASE|BASIC_AUTH|AUTH_TOKEN|AUTHORIZATION|SESSION_SECRET|SESSION_TOKEN|SESSION_KEY|SESSION_COOKIE|DSN|CONNECTION_STRING)($|_)/i;
|
|
29
|
+
return Object.entries(env).filter(([key, value]) => sensitiveKey.test(key) && value !== void 0).flatMap(([, value]) => {
|
|
30
|
+
const lines = value.split("\n").filter((line) => line.length >= 4);
|
|
31
|
+
return lines.length > 0 ? [value, ...lines] : [value];
|
|
32
|
+
}).filter((value) => value.length >= 4);
|
|
33
|
+
}
|
|
34
|
+
__name(sensitiveEnvValues, "sensitiveEnvValues");
|
|
35
|
+
function normalizeWorkerDiagnostic(value) {
|
|
36
|
+
return stripAnsi(value).replace(WORKER_LOG_INVISIBLE_RE, "").replace(WORKER_LOG_CONTROL_RE, "");
|
|
37
|
+
}
|
|
38
|
+
__name(normalizeWorkerDiagnostic, "normalizeWorkerDiagnostic");
|
|
39
|
+
function createWorkerDiagnosticRedactor(opts) {
|
|
40
|
+
const secretPatterns = [
|
|
41
|
+
...new Set(
|
|
42
|
+
[
|
|
43
|
+
...opts.daemonToken ? [opts.daemonToken] : [],
|
|
44
|
+
...sensitiveEnvValues(opts.workerEnv)
|
|
45
|
+
].flatMap((secret) => [
|
|
46
|
+
normalizeWorkerDiagnostic(secret),
|
|
47
|
+
normalizeWorkerDiagnostic(secret.replace(/\t/gu, " "))
|
|
48
|
+
]).filter((secret) => secret.length >= 4)
|
|
49
|
+
)
|
|
50
|
+
].sort((left, right) => right.length - left.length).map((secret) => new RegExp(escapeRegExp(secret), "g"));
|
|
51
|
+
return (value) => {
|
|
52
|
+
let redacted = value;
|
|
53
|
+
for (const secretPattern of secretPatterns) {
|
|
54
|
+
redacted = redacted.replace(secretPattern, "<redacted>");
|
|
55
|
+
}
|
|
56
|
+
return redactLogCredentials(redacted);
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
__name(createWorkerDiagnosticRedactor, "createWorkerDiagnosticRedactor");
|
|
60
|
+
function sanitizeWorkerDiagnostic(value, maxLength, opts) {
|
|
61
|
+
const normalized = normalizeWorkerDiagnostic(value);
|
|
62
|
+
const redacted = createWorkerDiagnosticRedactor(opts)(normalized);
|
|
63
|
+
return sanitizeLogText(redacted, maxLength);
|
|
64
|
+
}
|
|
65
|
+
__name(sanitizeWorkerDiagnostic, "sanitizeWorkerDiagnostic");
|
|
66
|
+
|
|
67
|
+
export {
|
|
68
|
+
normalizeWorkerDiagnostic,
|
|
69
|
+
createWorkerDiagnosticRedactor,
|
|
70
|
+
sanitizeWorkerDiagnostic
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* @license
|
|
74
|
+
* Copyright 2026 Qwen Team
|
|
75
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
76
|
+
*/
|