@qwen-code/qwen-code 0.20.1-preview.7215 → 0.20.2-gdpval-vl-agent.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.
Files changed (327) hide show
  1. package/bundled/qc-helper/docs/configuration/settings.md +1 -1
  2. package/bundled/qc-helper/docs/features/auto-mode.md +19 -16
  3. package/bundled/qc-helper/docs/features/commands.md +54 -0
  4. package/bundled/qc-helper/docs/features/sub-agents.md +16 -7
  5. package/bundled/qc-helper/docs/integration-github-action.md +1 -1
  6. package/bundled/qc-helper/docs/qwen-serve.md +2 -1
  7. package/bundled/review/DESIGN.md +2 -2
  8. package/bundled/review/SKILL.md +4 -4
  9. package/chunks/{MaxSizedBox-EH6G5AEH.js → MaxSizedBox-KYNG7EN7.js} +38 -35
  10. package/chunks/{StandaloneSessionPicker-264A3TEA.js → StandaloneSessionPicker-7XN4WVVG.js} +55 -52
  11. package/chunks/{acpAgent-6RBIJFDI.js → acpAgent-FTFFYP5G.js} +1536 -512
  12. package/chunks/{agent-QURXGAA3.js → agent-Y76LTTOT.js} +34 -31
  13. package/chunks/{agent-headless-CRGX4ICQ.js → agent-headless-IVAEQPK6.js} +34 -31
  14. package/chunks/{anthropicContentGenerator-BWBAZGTW.js → anthropicContentGenerator-HGWAHO24.js} +11 -13
  15. package/chunks/{artifact-tool-IUJ7QWCX.js → artifact-tool-56T5IMBP.js} +3 -3
  16. package/chunks/{askUserQuestion-IUMUUTDQ.js → askUserQuestion-E25OBIC2.js} +3 -3
  17. package/chunks/{bridge-MNFVKPMI.js → bridge-4M77KUEV.js} +39 -36
  18. package/chunks/{build-SSCNEHZZ.js → build-GHIZ4MSZ.js} +1 -1
  19. package/chunks/{ca-2SL2BXTK.js → ca-N6VVUFVB.js} +611 -201
  20. package/chunks/{channel-worker-group-53CMOPFT.js → channel-worker-group-QZV2SP5U.js} +4 -4
  21. package/chunks/{channel-worker-manager-UTXILKC2.js → channel-worker-manager-3GMAU45H.js} +4 -4
  22. package/chunks/{channel-worker-supervisor-ZGO2W2MD.js → channel-worker-supervisor-QCXSXCRY.js} +3 -3
  23. package/chunks/{chunk-UQES76OO.js → chunk-2HGTVAOW.js} +6 -6
  24. package/chunks/{chunk-2HOVDT7W.js → chunk-2LI23QA6.js} +1 -1
  25. package/chunks/{chunk-ANHT55MR.js → chunk-2P6CNEHB.js} +1 -1
  26. package/chunks/chunk-2RFKHEXL.js +74 -0
  27. package/chunks/{chunk-BF32GYSY.js → chunk-3IABAQR6.js} +1 -1
  28. package/chunks/chunk-3Z43GZUQ.js +32 -0
  29. package/chunks/chunk-43T5WDQ7.js +127 -0
  30. package/chunks/{chunk-DA7OOKVN.js → chunk-4CTP6VR6.js} +29 -2
  31. package/chunks/{chunk-JD3MKVKL.js → chunk-4K56OJFJ.js} +1 -1
  32. package/chunks/{chunk-KTUQMDEP.js → chunk-4K7VDKAD.js} +1 -1
  33. package/chunks/{chunk-QKYTTBYW.js → chunk-4LVZNIDO.js} +1 -1
  34. package/chunks/{chunk-ZEOZL37W.js → chunk-57FIIFJN.js} +1 -1
  35. package/chunks/{chunk-7YBZGNEC.js → chunk-5G3ZVADU.js} +308 -199
  36. package/chunks/{chunk-X4CGDBKA.js → chunk-6GEJX3LE.js} +3 -3
  37. package/chunks/{chunk-6GUTHAN7.js → chunk-6HOCJNO5.js} +1 -1
  38. package/chunks/{chunk-GMGDLUC7.js → chunk-6IL7KRLE.js} +1 -1
  39. package/chunks/chunk-6PVPNMXU.js +29 -0
  40. package/chunks/{chunk-BDBMYST4.js → chunk-6X4GWOPW.js} +1 -1
  41. package/chunks/{chunk-4ODB7WIB.js → chunk-6ZBPS62S.js} +1 -1
  42. package/chunks/{chunk-AYCDXHZB.js → chunk-7Z6JQEL6.js} +1 -1
  43. package/chunks/{chunk-WAX3ITOA.js → chunk-A3TAEAHX.js} +1 -1
  44. package/chunks/{chunk-OLMETXLX.js → chunk-ACW3VNUE.js} +2 -2
  45. package/chunks/{chunk-IB35C3IL.js → chunk-AVQ6EX4J.js} +1 -1
  46. package/chunks/{chunk-TTSKHF43.js → chunk-BK6UOUJ2.js} +2 -2
  47. package/chunks/{chunk-6OH6A5EX.js → chunk-BLAEKN6K.js} +20603 -17709
  48. package/chunks/chunk-BULDBTYC.js +153 -0
  49. package/chunks/{chunk-XNP57UDV.js → chunk-C3EXYVFX.js} +2 -2
  50. package/chunks/{chunk-FVS747N7.js → chunk-C54UTDOC.js} +23 -19
  51. package/chunks/{chunk-MAQQGNQ5.js → chunk-CBOQ3HY7.js} +466 -10
  52. package/chunks/{chunk-VFAE4AGH.js → chunk-CGZ5SV23.js} +72 -67
  53. package/chunks/{chunk-WKRXIHD6.js → chunk-COAARUPK.js} +8 -8
  54. package/chunks/{chunk-GA7VRJVN.js → chunk-E2ZK5M4P.js} +5 -5
  55. package/chunks/{chunk-5SCI6E3E.js → chunk-E4IMU4Y5.js} +1 -1
  56. package/chunks/{chunk-E5GIFWE3.js → chunk-EEFRJ5CT.js} +54 -33
  57. package/chunks/{chunk-WXAXH7IJ.js → chunk-ESQHGKPJ.js} +1 -1
  58. package/chunks/{chunk-NEEB7UEN.js → chunk-FFFM6NJV.js} +1 -2
  59. package/chunks/{chunk-Z5R4JMOL.js → chunk-FJ2IUWNQ.js} +4 -4
  60. package/chunks/{chunk-JVTCARQ6.js → chunk-FQI7LT7T.js} +4 -4
  61. package/chunks/{chunk-BRXIO5WY.js → chunk-FTNI3D7D.js} +7 -7
  62. package/chunks/{chunk-OMH3276Y.js → chunk-GHRSKGHF.js} +7 -7
  63. package/chunks/{chunk-OONJNQ42.js → chunk-GPSKDNEE.js} +3 -3
  64. package/chunks/{chunk-KPZNOZPC.js → chunk-GWM4PDYK.js} +19 -19
  65. package/chunks/{chunk-NBMIC7DR.js → chunk-H24SOJIQ.js} +2 -2
  66. package/chunks/{chunk-FNGK2Z5B.js → chunk-H4AR2JQF.js} +3 -3
  67. package/chunks/{chunk-WOT64EP2.js → chunk-HCJQORKC.js} +2 -2
  68. package/chunks/{chunk-7KDI2IB2.js → chunk-HDATOR4J.js} +4 -4
  69. package/chunks/{chunk-IE4JSQ5L.js → chunk-HIYP7IR4.js} +39 -37
  70. package/chunks/{chunk-N6YTEVLV.js → chunk-HL6AKUGD.js} +10 -4
  71. package/chunks/{chunk-BAIEQKR5.js → chunk-HPQFGWOD.js} +5 -5
  72. package/chunks/chunk-HTR4WV6U.js +327 -0
  73. package/chunks/{chunk-SDXIH6OA.js → chunk-IFUNDCQ6.js} +137 -5
  74. package/chunks/{chunk-Z6UEAQTP.js → chunk-IFVECEIK.js} +178 -61
  75. package/chunks/{chunk-QOK6RMIP.js → chunk-IKP54WUL.js} +4 -4
  76. package/chunks/{chunk-IUSNI6IX.js → chunk-ISMD2AB3.js} +1 -1
  77. package/chunks/{chunk-G45X5TRN.js → chunk-JCW2R7WC.js} +1 -72
  78. package/chunks/{chunk-LZYWWWCZ.js → chunk-KF6CTNTJ.js} +8 -9
  79. package/chunks/{chunk-EIAK6Q2B.js → chunk-KHOVYUHX.js} +2 -2
  80. package/chunks/chunk-KWK7UE6L.js +6194 -0
  81. package/chunks/{chunk-WBTZGWQ6.js → chunk-L5F3T6TQ.js} +1 -1
  82. package/chunks/{chunk-RELYEO3R.js → chunk-L7ASZD66.js} +244 -1607
  83. package/chunks/{chunk-UJEZQ562.js → chunk-LESHKUWF.js} +3 -5
  84. package/chunks/{chunk-OOCI5VVU.js → chunk-LIZRAKPB.js} +1 -1
  85. package/chunks/{chunk-Q3ZBFXK4.js → chunk-LKB5YL5T.js} +143 -36
  86. package/chunks/{chunk-MKLKHZAK.js → chunk-LU3RXCM7.js} +1 -1
  87. package/chunks/{chunk-B453NMZJ.js → chunk-M3EQ3GZC.js} +3 -3
  88. package/chunks/{chunk-TCKTNY66.js → chunk-M4VFMLQK.js} +6 -6
  89. package/chunks/{chunk-26LLB6FM.js → chunk-MDZTPSXO.js} +2 -2
  90. package/chunks/{chunk-4SLLEAQP.js → chunk-MJPBB2GK.js} +591 -316
  91. package/chunks/chunk-NABLFI57.js +82 -0
  92. package/chunks/{chunk-T7DDD7CZ.js → chunk-NAXEEGJU.js} +4 -4
  93. package/chunks/{chunk-467G3SV5.js → chunk-NPQDJGKU.js} +1 -1
  94. package/chunks/{chunk-FLTN6NRU.js → chunk-O4OT3DM3.js} +5 -1
  95. package/chunks/{chunk-3EUZWNWA.js → chunk-OPDZT2VG.js} +1 -1
  96. package/chunks/chunk-OQ5SYCPE.js +10017 -0
  97. package/chunks/{chunk-C27BYUX6.js → chunk-OQB4EXO4.js} +14 -11
  98. package/chunks/{chunk-V25Z5UUB.js → chunk-P6PBZL3N.js} +7 -6
  99. package/chunks/{chunk-5NWV4NFB.js → chunk-PRAUGUNM.js} +3 -3
  100. package/chunks/{chunk-MC2DOZS7.js → chunk-PVT6E3ZI.js} +3 -3
  101. package/chunks/{chunk-KXEGCGUG.js → chunk-Q22WWVR6.js} +31 -6
  102. package/chunks/{chunk-JDI67JFB.js → chunk-Q2YKNMLS.js} +3 -3
  103. package/chunks/{chunk-PBATSWUQ.js → chunk-QBUDF33N.js} +1 -1
  104. package/chunks/{chunk-Y2ENGUD6.js → chunk-QKTHJXCS.js} +1 -1
  105. package/chunks/{chunk-BVLROR2T.js → chunk-QLJUC7TG.js} +1 -1
  106. package/chunks/{chunk-UEY4AYUL.js → chunk-QNLNLENL.js} +2 -2
  107. package/chunks/{chunk-OKWRU4NO.js → chunk-RC7A7SSL.js} +3 -3
  108. package/chunks/chunk-RCUEYZDE.js +2290 -0
  109. package/chunks/{chunk-EVSTCA7S.js → chunk-RMY5SX7S.js} +368 -113
  110. package/chunks/{chunk-4WUAQ2DO.js → chunk-RTQSXHS7.js} +2 -2
  111. package/chunks/{chunk-RFIAR4YL.js → chunk-RV4C2ZFG.js} +1 -1
  112. package/chunks/{chunk-NIJEXGV6.js → chunk-RVLZCXEE.js} +79 -10
  113. package/chunks/{chunk-Q4RBU7WX.js → chunk-S333CBIA.js} +6 -6
  114. package/chunks/{chunk-JNWZQ27S.js → chunk-SP5WRGVG.js} +3 -3
  115. package/chunks/{chunk-FSL5W5TI.js → chunk-T2L47JJK.js} +3 -3
  116. package/chunks/{chunk-PWVTCGBP.js → chunk-TA4S377U.js} +30 -20
  117. package/chunks/{chunk-TB6UDU4T.js → chunk-THJNPLI4.js} +16 -16
  118. package/chunks/chunk-U6TQGUNB.js +20687 -0
  119. package/chunks/chunk-U7ZFW55U.js +2098 -0
  120. package/chunks/{chunk-W7H223ZZ.js → chunk-UGYMA4EI.js} +1 -1
  121. package/chunks/{chunk-X6YQWCIJ.js → chunk-UH3WSE5L.js} +13 -1
  122. package/chunks/{chunk-P2YAOGJD.js → chunk-UKU3NGW6.js} +3 -3
  123. package/chunks/{chunk-NOWTNYC7.js → chunk-UVFCANV5.js} +8 -8
  124. package/chunks/{chunk-CVDW42JT.js → chunk-V4AKJQ26.js} +1 -1
  125. package/chunks/{chunk-Z5Q65RVH.js → chunk-VJPRLNLR.js} +1 -1
  126. package/chunks/{chunk-Y4CRUWFZ.js → chunk-VTXX72XS.js} +60 -35
  127. package/chunks/{chunk-R3VWUU2E.js → chunk-VYPFXUCB.js} +1 -1
  128. package/chunks/chunk-WHGVTP7Q.js +1049 -0
  129. package/chunks/{chunk-IKP5DXZY.js → chunk-WOWQQGGN.js} +5 -5
  130. package/chunks/{chunk-D2VIDMVM.js → chunk-X6N25LXS.js} +2 -2
  131. package/chunks/chunk-XHATNRQA.js +1500 -0
  132. package/chunks/{chunk-2DXOIVUI.js → chunk-YLSB23Y2.js} +11 -11
  133. package/chunks/{chunk-S35ZDXOS.js → chunk-YM3SZTH4.js} +2 -1
  134. package/chunks/{chunk-OF2BBLYQ.js → chunk-YNWJAOPL.js} +2 -2
  135. package/chunks/{chunk-GKY2OJ7R.js → chunk-ZHERRXZJ.js} +1 -1
  136. package/chunks/{chunk-AR27OPIU.js → chunk-ZKFJKN23.js} +2 -2
  137. package/chunks/{computer-use-R7KA6UJ6.js → computer-use-UKQBH7UM.js} +39 -36
  138. package/chunks/{config-utils-6FXFJUYB.js → config-utils-FYTBZLCJ.js} +3 -3
  139. package/chunks/{contextCommand-KAQQPHZ4.js → contextCommand-ESHGAVWX.js} +36 -33
  140. package/chunks/{create-sub-session-TDPDBU4K.js → create-sub-session-574EPZUU.js} +34 -31
  141. package/chunks/{create-sub-session-X5RVIHCK.js → create-sub-session-AZ77LBL3.js} +3 -3
  142. package/chunks/{cron-create-AC5FFLN7.js → cron-create-KTWJM7QT.js} +5 -5
  143. package/chunks/{cron-delete-JEB3FAHA.js → cron-delete-2P3I5ULL.js} +5 -5
  144. package/chunks/{cron-list-NBYPCNIB.js → cron-list-PXDPGEDQ.js} +5 -5
  145. package/chunks/{daemon-RG2MAI6T.js → daemon-GJRFILYS.js} +323 -99
  146. package/chunks/daemon-status-provider-GZXZP3NU.js +80 -0
  147. package/chunks/{de-I7ZIYXZC.js → de-4IBXM7CN.js} +5 -1
  148. package/chunks/{dist-AU7NQQRP.js → dist-OAV7LJGJ.js} +1 -1
  149. package/chunks/{dist-FUTEXY6A.js → dist-OMW6WDEO.js} +1 -1
  150. package/chunks/{dist-2MIU4UUH.js → dist-PJLG2XYX.js} +1 -1
  151. package/chunks/{dist-53PZYC5B.js → dist-UIFWIFRO.js} +2 -2
  152. package/chunks/{dist-2BHAYBKP.js → dist-XBJVSWS2.js} +1 -1
  153. package/chunks/{dist-WGTQO7F2.js → dist-XRYV6TJP.js} +65 -25
  154. package/chunks/{earlyInputCapture-WC7RI5HV.js → earlyInputCapture-GI3HGQIT.js} +35 -32
  155. package/chunks/{edit-6MHKCJCM.js → edit-EBJK74B3.js} +42 -41
  156. package/chunks/{en-XE34GKAA.js → en-USMCCJAJ.js} +5 -1
  157. package/chunks/{enter-worktree-O7VJ2E7A.js → enter-worktree-2ETY5CSV.js} +39 -36
  158. package/chunks/{enterPlanMode-5XYAALIO.js → enterPlanMode-NY4U2727.js} +45 -37
  159. package/chunks/{environment-LSKFNLBU.js → environment-33IR3NOU.js} +36 -33
  160. package/chunks/{errors-ZFVCY6HG.js → errors-2OCY23IC.js} +36 -33
  161. package/chunks/{exit-worktree-MYIK66T7.js → exit-worktree-Y4ULJ45U.js} +39 -36
  162. package/chunks/{exitPlanMode-7MBNU76O.js → exitPlanMode-SECI2EQ6.js} +39 -36
  163. package/chunks/{fast-path-RNLIB64C.js → fast-path-6Z7RW5J5.js} +3 -2
  164. package/chunks/{fr-X7KDVZIY.js → fr-WVHEBDDB.js} +5 -1
  165. package/chunks/{gemini-WK5ISEAQ.js → gemini-XLGLUGSU.js} +93 -89
  166. package/chunks/{geminiContentGenerator-NUJQBZBW.js → geminiContentGenerator-NNZZDH24.js} +5 -5
  167. package/chunks/{getMachineId-bsd-EXV7SWPA.js → getMachineId-bsd-QFVLPUPT.js} +1 -1
  168. package/chunks/{getMachineId-darwin-IUOMFXU3.js → getMachineId-darwin-DGMQQE2E.js} +1 -1
  169. package/chunks/{getMachineId-linux-K7XJYFHL.js → getMachineId-linux-R4Z6CSWC.js} +1 -1
  170. package/chunks/{getMachineId-unsupported-EA5FDRJ6.js → getMachineId-unsupported-Z3SBVBUV.js} +1 -1
  171. package/chunks/{getMachineId-win-KBA6RAI5.js → getMachineId-win-SCK5UFDT.js} +1 -1
  172. package/chunks/{glob-7P6RYY4L.js → glob-KZA64SSV.js} +41 -38
  173. package/chunks/{grep-V3QHNP2J.js → grep-ONHQMY3V.js} +41 -38
  174. package/chunks/handleAutoUpdate-PRTJISXQ.js +73 -0
  175. package/chunks/{i18n-B7IO7WQT.js → i18n-ZTKKG5R5.js} +35 -32
  176. package/chunks/{initializer-E5TIC3CW.js → initializer-FPPZGBYN.js} +40 -37
  177. package/chunks/{installationInfo-XLPNAISK.js → installationInfo-DV2C27HT.js} +37 -32
  178. package/chunks/{ja-2ICT3KXF.js → ja-KY4ROZTE.js} +5 -1
  179. package/chunks/{keychain-token-storage-DWRJMNH3.js → keychain-token-storage-6ACJDYIB.js} +3 -3
  180. package/chunks/{list-3CZR5I42.js → list-KEHCNUAK.js} +42 -39
  181. package/chunks/{loadedSettingsAdapter-X5BSC6CE.js → loadedSettingsAdapter-7RZ6M3WH.js} +39 -36
  182. package/chunks/{loop-wakeup-HMHCT5GU.js → loop-wakeup-RNMRVA66.js} +6 -6
  183. package/chunks/{ls-IW5HYDG4.js → ls-J2ZI5XYK.js} +5 -5
  184. package/chunks/{lsp-4RL52YIZ.js → lsp-UMS3NUB5.js} +3 -3
  185. package/chunks/managed-npm-update-EBKNOG37.js +332 -0
  186. package/chunks/{mcp-4C4HWXAR.js → mcp-NHXKZRRP.js} +39 -36
  187. package/chunks/{monitor-3CJDNZB2.js → monitor-FMUAIFFH.js} +39 -36
  188. package/chunks/nonInteractiveCli-I2GPZNTP.js +132 -0
  189. package/chunks/{notebook-edit-MX366HCT.js → notebook-edit-V7RNXKVL.js} +43 -42
  190. package/chunks/{openaiContentGenerator-KRPNNJGZ.js → openaiContentGenerator-IBVUUZDH.js} +19 -18
  191. package/chunks/{pidfile-K7T2JLUJ.js → pidfile-AMTGL2H2.js} +35 -32
  192. package/chunks/{processUtils-YXL3VIBR.js → processUtils-3ZT2JF6D.js} +2 -2
  193. package/chunks/{pt-JJ4XPIBP.js → pt-OK455PLH.js} +5 -1
  194. package/chunks/{qwenContentGenerator-GJVXFZ3U.js → qwenContentGenerator-E72VVWS3.js} +41 -38
  195. package/chunks/{qwenOAuth2-UZTIBQLY.js → qwenOAuth2-YCC3HP24.js} +17 -16
  196. package/chunks/{read-file-S5XQSYOW.js → read-file-5EWNGUXN.js} +13 -11
  197. package/chunks/{read-mcp-resource-OIBCNIX7.js → read-mcp-resource-F6HYMDUY.js} +3 -3
  198. package/chunks/{record-artifact-HDMK4LHG.js → record-artifact-7GCFLDD7.js} +3 -3
  199. package/chunks/{resumeHistoryUtils-IKR6XD2S.js → resumeHistoryUtils-IH4RNB76.js} +41 -38
  200. package/chunks/{ripGrep-H65GRSQX.js → ripGrep-B6A6N7GI.js} +34 -31
  201. package/chunks/{ru-STR4KTW7.js → ru-7SPDGMGD.js} +5 -1
  202. package/chunks/{run-qwen-serve-7SKAQOAA.js → run-qwen-serve-6PKSMF6Z.js} +115 -74
  203. package/chunks/{runtime-I2STBGPR.js → runtime-ASRANXO6.js} +45 -40
  204. package/chunks/{scheduler-6F7HETNO.js → scheduler-IABM76UZ.js} +34 -31
  205. package/chunks/sdk-exporters-grpc-ETLH47EP.js +23214 -0
  206. package/chunks/sdk-exporters-http-6MCQH335.js +563 -0
  207. package/chunks/sdk-impl-HOLWAXC6.js +9193 -0
  208. package/chunks/{send-message-WXVVK4DB.js → send-message-KBO6X4ZS.js} +7 -5
  209. package/chunks/{serve-4ATEWSEA.js → serve-A4DT5D32.js} +39 -36
  210. package/chunks/{server-YPUPFV2O.js → server-DZ5ZSVRE.js} +2317 -472
  211. package/chunks/{session-AZFIERIY.js → session-G2R3CYU6.js} +87 -172
  212. package/chunks/{settings-EFQHLTM3.js → settings-7TNSXUTO.js} +43 -40
  213. package/chunks/{shell-FWXWBJ4Q.js → shell-5BRFGEMK.js} +34 -31
  214. package/chunks/{skill-A634MNCD.js → skill-3SWYEK7M.js} +24 -20
  215. package/chunks/{spawnChannel-KKBGGR47.js → spawnChannel-GGN2WVWW.js} +36 -33
  216. package/chunks/{src-BVROLD6N.js → src-5BPBNQ5S.js} +314 -236
  217. package/chunks/{standalone-update-ERLA3BDC.js → standalone-update-AHOZ56LS.js} +37 -34
  218. package/chunks/{startInteractiveUI-3VZ23WAY.js → startInteractiveUI-TLGOQVV7.js} +1105 -906
  219. package/chunks/{syntheticOutput-HCUFXSIA.js → syntheticOutput-H7RTI5KL.js} +4 -4
  220. package/chunks/{task-create-RIY5JTFC.js → task-create-7474AJJD.js} +10 -8
  221. package/chunks/{task-list-XBUCV3CO.js → task-list-633HGOIB.js} +6 -6
  222. package/chunks/{task-stop-QDFCCYR5.js → task-stop-MNUGHPIA.js} +3 -3
  223. package/chunks/{task-update-7PXKJQOI.js → task-update-66GQB5LI.js} +10 -8
  224. package/chunks/{team-create-ZZO7QFQ7.js → team-create-XHDF7UKM.js} +42 -39
  225. package/chunks/{team-delete-TNSSE2S5.js → team-delete-BB3CG3QF.js} +6 -6
  226. package/chunks/{team-plan-approval-3BZBJ46K.js → team-plan-approval-XKSBXWMH.js} +39 -36
  227. package/chunks/{theme-manager-FSFWNXFJ.js → theme-manager-6ZKLBFAN.js} +35 -32
  228. package/chunks/{todoWrite-OMAIGB6V.js → todoWrite-KRAUN54W.js} +5 -5
  229. package/chunks/{tool-search-VYXAAIDW.js → tool-search-UDNJCXYS.js} +21 -17
  230. package/chunks/{total-session-admission-PSMLQICS.js → total-session-admission-VWRCCDYM.js} +40 -37
  231. package/chunks/{tree-sitter-4D7QS7F6.js → tree-sitter-L5BFT64K.js} +1 -1
  232. package/chunks/{tree-sitter-bash-VEJGF5XF.js → tree-sitter-bash-ZKDNQGID.js} +1 -1
  233. package/chunks/{trustedFolders-QA3RK2NV.js → trustedFolders-TJI6OLAN.js} +35 -32
  234. package/chunks/{chunk-6EFTQYW7.js → undici-3FJYTMOF.js} +24 -399
  235. package/chunks/{chunk-L573Z2QZ.js → undici-PYHBDDPN.js} +1 -5
  236. package/chunks/{update-relaunch-LNLZFX3J.js → update-relaunch-RS5GB74A.js} +17 -17
  237. package/chunks/updateCheck-T4EEA5YR.js +88 -0
  238. package/chunks/{useAutoAcceptIndicator-DIWN27LT.js → useAutoAcceptIndicator-LLWMXC7F.js} +44 -41
  239. package/chunks/{validateNonInterActiveAuth-LOEOFCAF.js → validateNonInterActiveAuth-OJ3KYXAR.js} +74 -71
  240. package/chunks/{version-HBF2VBLE.js → version-ZCEUV5DO.js} +1 -1
  241. package/chunks/{web-fetch-BWGSD2BD.js → web-fetch-KQF4YFCI.js} +99 -42
  242. package/chunks/{web-search-OOHTCVR3.js → web-search-QDDGFGKI.js} +113 -61
  243. package/chunks/{workflow-LJAJBOR4.js → workflow-GIRKCX4P.js} +47 -43
  244. package/chunks/{workspace-providers-status-FYV7TTHA.js → workspace-providers-status-UTMAVTNE.js} +42 -39
  245. package/chunks/{workspace-registration-store-4EHGQW4Y.js → workspace-registration-store-EYJMJFZU.js} +8 -2
  246. package/chunks/{workspace-registry-BKD7VC4Y.js → workspace-registry-4W4UW6MY.js} +40 -37
  247. package/chunks/{workspace-service-75RHX6KR.js → workspace-service-DJCPY6ZN.js} +46 -43
  248. package/chunks/{workspace-skills-status-WBZBZI6A.js → workspace-skills-status-VQ2LKXXX.js} +40 -37
  249. package/chunks/write-file-PLK6RQ7M.js +65 -0
  250. package/chunks/{zh-TW-4RR3YHNN.js → zh-TW-BM47YBFH.js} +5 -1
  251. package/chunks/{zh-6ANG2HTL.js → zh-WY5DWYZD.js} +5 -1
  252. package/cli-entry.js +164 -12
  253. package/cli.js +18 -11
  254. package/locales/ca.js +772 -203
  255. package/locales/de.js +8 -2
  256. package/locales/en.js +8 -2
  257. package/locales/fr.js +8 -2
  258. package/locales/ja.js +8 -2
  259. package/locales/pt.js +8 -2
  260. package/locales/ru.js +8 -2
  261. package/locales/zh-TW.js +8 -2
  262. package/locales/zh.js +8 -2
  263. package/package.json +3 -3
  264. package/web-shell/assets/{arc-Buk1besA.js → arc-DIQrcXXh.js} +1 -1
  265. package/web-shell/assets/{architectureDiagram-3BPJPVTR-B1aUKYDC.js → architectureDiagram-3BPJPVTR-CbPd-DSw.js} +1 -1
  266. package/web-shell/assets/{blockDiagram-GPEHLZMM-CRTdg3Zx.js → blockDiagram-GPEHLZMM-yzBIVhMX.js} +1 -1
  267. package/web-shell/assets/{c4Diagram-AAUBKEIU-DFdRMp5g.js → c4Diagram-AAUBKEIU-B88Swcsu.js} +1 -1
  268. package/web-shell/assets/channel-BaTMUesZ.js +1 -0
  269. package/web-shell/assets/{chunk-2J33WTMH-4rYQdkEI.js → chunk-2J33WTMH-BbOLo6NX.js} +1 -1
  270. package/web-shell/assets/{chunk-4BX2VUAB-Coi-pQJy.js → chunk-4BX2VUAB-Bg6in0r0.js} +1 -1
  271. package/web-shell/assets/{chunk-55IACEB6-BtBjz02t.js → chunk-55IACEB6-Bv9QRyLI.js} +1 -1
  272. package/web-shell/assets/{chunk-727SXJPM-CGYOWorl.js → chunk-727SXJPM-CFokiv61.js} +1 -1
  273. package/web-shell/assets/{chunk-AQP2D5EJ-CH5AKhqx.js → chunk-AQP2D5EJ-DS2Oxf6L.js} +1 -1
  274. package/web-shell/assets/{chunk-FMBD7UC4-Cd50-w85.js → chunk-FMBD7UC4-D2NkHD3B.js} +1 -1
  275. package/web-shell/assets/{chunk-ND2GUHAM-C2wF3KCK.js → chunk-ND2GUHAM-BsT_UC5B.js} +1 -1
  276. package/web-shell/assets/{chunk-QZHKN3VN-pCeRTaWi.js → chunk-QZHKN3VN-tnJo3zln.js} +1 -1
  277. package/web-shell/assets/classDiagram-4FO5ZUOK-CyBPzWud.js +1 -0
  278. package/web-shell/assets/classDiagram-v2-Q7XG4LA2-CyBPzWud.js +1 -0
  279. package/web-shell/assets/{cose-bilkent-S5V4N54A-B-_fAB6D.js → cose-bilkent-S5V4N54A-BTMa6DAZ.js} +1 -1
  280. package/web-shell/assets/{dagre-BM42HDAG-ChSPNHpL.js → dagre-BM42HDAG-ujGX7Owg.js} +1 -1
  281. package/web-shell/assets/{diagram-2AECGRRQ-BX7cFOF3.js → diagram-2AECGRRQ-fU4-dbPa.js} +1 -1
  282. package/web-shell/assets/{diagram-5GNKFQAL-BQUTW92n.js → diagram-5GNKFQAL-Bdm-TYSA.js} +1 -1
  283. package/web-shell/assets/{diagram-KO2AKTUF-BkYPh3e4.js → diagram-KO2AKTUF-Bkhz85Z9.js} +1 -1
  284. package/web-shell/assets/{diagram-LMA3HP47-Cl6jsNyx.js → diagram-LMA3HP47-Bzu3q26p.js} +1 -1
  285. package/web-shell/assets/{diagram-OG6HWLK6-DRWoHz8n.js → diagram-OG6HWLK6-CZrXbG5Q.js} +1 -1
  286. package/web-shell/assets/{erDiagram-TEJ5UH35-CGvFcZco.js → erDiagram-TEJ5UH35-BjozEAYu.js} +1 -1
  287. package/web-shell/assets/{flowDiagram-I6XJVG4X-vms6oVdv.js → flowDiagram-I6XJVG4X-B3a2I8c-.js} +1 -1
  288. package/web-shell/assets/{ganttDiagram-6RSMTGT7-ukT_sfmi.js → ganttDiagram-6RSMTGT7-CIMn9fNm.js} +1 -1
  289. package/web-shell/assets/{gitGraphDiagram-PVQCEYII-Bn2ZE2Ut.js → gitGraphDiagram-PVQCEYII-DlFy9KRx.js} +1 -1
  290. package/web-shell/assets/{index-wFXp7W68.js → index-BODUAzQA.js} +1 -1
  291. package/web-shell/assets/index-C54DNMF7.js +1209 -0
  292. package/web-shell/assets/index-lWqBfc78.css +5 -0
  293. package/web-shell/assets/{infoDiagram-5YYISTIA-DHJdSi7x.js → infoDiagram-5YYISTIA-BmKjQgCy.js} +1 -1
  294. package/web-shell/assets/{ishikawaDiagram-YF4QCWOH-DOvd2Wph.js → ishikawaDiagram-YF4QCWOH-BrQEMZz2.js} +1 -1
  295. package/web-shell/assets/{journeyDiagram-JHISSGLW-CH_urMCT.js → journeyDiagram-JHISSGLW-D-2r7Xrt.js} +1 -1
  296. package/web-shell/assets/{kanban-definition-UN3LZRKU-FKiBdgbH.js → kanban-definition-UN3LZRKU-CndsFHCX.js} +1 -1
  297. package/web-shell/assets/{linear-0ZVQFVKf.js → linear-D-IwNnKx.js} +1 -1
  298. package/web-shell/assets/{mermaid.core-DJ05ZZIK.js → mermaid.core-4ll09sri.js} +5 -5
  299. package/web-shell/assets/{mindmap-definition-RKZ34NQL-BPuUhkUm.js → mindmap-definition-RKZ34NQL-maMRIxjo.js} +1 -1
  300. package/web-shell/assets/{pieDiagram-4H26LBE5-yLFKcXyG.js → pieDiagram-4H26LBE5-aunUDhrJ.js} +1 -1
  301. package/web-shell/assets/{quadrantDiagram-W4KKPZXB-irWqc1pE.js → quadrantDiagram-W4KKPZXB-D3K0P1NZ.js} +1 -1
  302. package/web-shell/assets/{requirementDiagram-4Y6WPE33-B_4uMoIV.js → requirementDiagram-4Y6WPE33-CX2X9HRc.js} +1 -1
  303. package/web-shell/assets/{sankeyDiagram-5OEKKPKP-ciA4GPwk.js → sankeyDiagram-5OEKKPKP-CDroWk7l.js} +1 -1
  304. package/web-shell/assets/{sequenceDiagram-3UESZ5HK-CRdZvy0U.js → sequenceDiagram-3UESZ5HK-DTk-2b16.js} +1 -1
  305. package/web-shell/assets/{stateDiagram-AJRCARHV-DaYIkCCn.js → stateDiagram-AJRCARHV-Cud64hQr.js} +1 -1
  306. package/web-shell/assets/stateDiagram-v2-BHNVJYJU-g-uUpecT.js +1 -0
  307. package/web-shell/assets/{timeline-definition-PNZ67QCA-oBUKv6iH.js → timeline-definition-PNZ67QCA-DfD5okf_.js} +1 -1
  308. package/web-shell/assets/{vennDiagram-CIIHVFJN-CGW9Sdmb.js → vennDiagram-CIIHVFJN-BYl8ay25.js} +1 -1
  309. package/web-shell/assets/{wardley-L42UT6IY-CvwKJOCm.js → wardley-L42UT6IY-BZFAt10J.js} +1 -1
  310. package/web-shell/assets/{wardleyDiagram-YWT4CUSO-Ipc260sN.js → wardleyDiagram-YWT4CUSO-BIWn0GA7.js} +1 -1
  311. package/web-shell/assets/{xychartDiagram-2RQKCTM6-D6-CM7pK.js → xychartDiagram-2RQKCTM6-1_H4xblT.js} +1 -1
  312. package/web-shell/index.html +2 -2
  313. package/chunks/chunk-ETD6K42I.js +0 -358
  314. package/chunks/chunk-I5NLVPZJ.js +0 -45
  315. package/chunks/chunk-ONWW74X6.js +0 -74639
  316. package/chunks/chunk-W7FJ3N32.js +0 -49
  317. package/chunks/daemon-status-provider-LVTVJGAD.js +0 -77
  318. package/chunks/handleAutoUpdate-AAQ6PL3E.js +0 -70
  319. package/chunks/nonInteractiveCli-QTEHDDFH.js +0 -129
  320. package/chunks/updateCheck-JJEUQ54U.js +0 -73
  321. package/chunks/write-file-M2DTFILF.js +0 -599
  322. package/web-shell/assets/channel-04R0vLbG.js +0 -1
  323. package/web-shell/assets/classDiagram-4FO5ZUOK-Bw9SOwAV.js +0 -1
  324. package/web-shell/assets/classDiagram-v2-Q7XG4LA2-Bw9SOwAV.js +0 -1
  325. package/web-shell/assets/index-DgkKrjw3.js +0 -1187
  326. package/web-shell/assets/index-Rv6mOAN9.css +0 -5
  327. package/web-shell/assets/stateDiagram-v2-BHNVJYJU-DWBoO4UY.js +0 -1
@@ -0,0 +1,563 @@
1
+ // Force strict mode and setup for ESM
2
+ "use strict";
3
+ import {
4
+ esm_exports,
5
+ index_node_http_exports,
6
+ init_esm as init_esm2,
7
+ init_index_node_http,
8
+ require_src as require_src3,
9
+ require_src2 as require_src4
10
+ } from "./chunk-OQ5SYCPE.js";
11
+ import "./chunk-4WKAA4KS.js";
12
+ import {
13
+ require_src2 as require_src,
14
+ require_src3 as require_src2
15
+ } from "./chunk-KWK7UE6L.js";
16
+ import {
17
+ deriveTraceId,
18
+ isInNativeSubagentSpan,
19
+ randomHexString,
20
+ randomSpanId
21
+ } from "./chunk-RCUEYZDE.js";
22
+ import {
23
+ EVENT_SUBAGENT_EXECUTION,
24
+ SERVICE_NAME
25
+ } from "./chunk-BULDBTYC.js";
26
+ import "./chunk-U7ZFW55U.js";
27
+ import {
28
+ getCurrentSessionId
29
+ } from "./chunk-OQB4EXO4.js";
30
+ import {
31
+ SpanKind,
32
+ SpanStatusCode,
33
+ TraceFlags,
34
+ init_esm,
35
+ isSpanContextValid
36
+ } from "./chunk-THJNPLI4.js";
37
+ import {
38
+ init_esbuild_shims
39
+ } from "./chunk-5O2XNYP6.js";
40
+ import {
41
+ __commonJS,
42
+ __name,
43
+ __toCommonJS,
44
+ __toESM
45
+ } from "./chunk-J2S4EL5Y.js";
46
+
47
+ // node_modules/@opentelemetry/exporter-trace-otlp-http/build/src/version.js
48
+ var require_version = __commonJS({
49
+ "node_modules/@opentelemetry/exporter-trace-otlp-http/build/src/version.js"(exports) {
50
+ "use strict";
51
+ init_esbuild_shims();
52
+ Object.defineProperty(exports, "__esModule", { value: true });
53
+ exports.VERSION = void 0;
54
+ exports.VERSION = "0.203.0";
55
+ }
56
+ });
57
+
58
+ // node_modules/@opentelemetry/exporter-trace-otlp-http/build/src/platform/node/OTLPTraceExporter.js
59
+ var require_OTLPTraceExporter = __commonJS({
60
+ "node_modules/@opentelemetry/exporter-trace-otlp-http/build/src/platform/node/OTLPTraceExporter.js"(exports) {
61
+ "use strict";
62
+ init_esbuild_shims();
63
+ Object.defineProperty(exports, "__esModule", { value: true });
64
+ exports.OTLPTraceExporter = void 0;
65
+ var otlp_exporter_base_1 = (init_esm2(), __toCommonJS(esm_exports));
66
+ var version_1 = require_version();
67
+ var otlp_transformer_1 = require_src3();
68
+ var node_http_1 = (init_index_node_http(), __toCommonJS(index_node_http_exports));
69
+ var OTLPTraceExporter = class extends otlp_exporter_base_1.OTLPExporterBase {
70
+ static {
71
+ __name(this, "OTLPTraceExporter");
72
+ }
73
+ constructor(config = {}) {
74
+ super((0, node_http_1.createOtlpHttpExportDelegate)((0, node_http_1.convertLegacyHttpOptions)(config, "TRACES", "v1/traces", {
75
+ "User-Agent": `OTel-OTLP-Exporter-JavaScript/${version_1.VERSION}`,
76
+ "Content-Type": "application/json"
77
+ }), otlp_transformer_1.JsonTraceSerializer));
78
+ }
79
+ };
80
+ exports.OTLPTraceExporter = OTLPTraceExporter;
81
+ }
82
+ });
83
+
84
+ // node_modules/@opentelemetry/exporter-trace-otlp-http/build/src/platform/node/index.js
85
+ var require_node = __commonJS({
86
+ "node_modules/@opentelemetry/exporter-trace-otlp-http/build/src/platform/node/index.js"(exports) {
87
+ "use strict";
88
+ init_esbuild_shims();
89
+ Object.defineProperty(exports, "__esModule", { value: true });
90
+ exports.OTLPTraceExporter = void 0;
91
+ var OTLPTraceExporter_1 = require_OTLPTraceExporter();
92
+ Object.defineProperty(exports, "OTLPTraceExporter", { enumerable: true, get: /* @__PURE__ */ __name(function() {
93
+ return OTLPTraceExporter_1.OTLPTraceExporter;
94
+ }, "get") });
95
+ }
96
+ });
97
+
98
+ // node_modules/@opentelemetry/exporter-trace-otlp-http/build/src/platform/index.js
99
+ var require_platform = __commonJS({
100
+ "node_modules/@opentelemetry/exporter-trace-otlp-http/build/src/platform/index.js"(exports) {
101
+ "use strict";
102
+ init_esbuild_shims();
103
+ Object.defineProperty(exports, "__esModule", { value: true });
104
+ exports.OTLPTraceExporter = void 0;
105
+ var node_1 = require_node();
106
+ Object.defineProperty(exports, "OTLPTraceExporter", { enumerable: true, get: /* @__PURE__ */ __name(function() {
107
+ return node_1.OTLPTraceExporter;
108
+ }, "get") });
109
+ }
110
+ });
111
+
112
+ // node_modules/@opentelemetry/exporter-trace-otlp-http/build/src/index.js
113
+ var require_src5 = __commonJS({
114
+ "node_modules/@opentelemetry/exporter-trace-otlp-http/build/src/index.js"(exports) {
115
+ "use strict";
116
+ init_esbuild_shims();
117
+ Object.defineProperty(exports, "__esModule", { value: true });
118
+ exports.OTLPTraceExporter = void 0;
119
+ var platform_1 = require_platform();
120
+ Object.defineProperty(exports, "OTLPTraceExporter", { enumerable: true, get: /* @__PURE__ */ __name(function() {
121
+ return platform_1.OTLPTraceExporter;
122
+ }, "get") });
123
+ }
124
+ });
125
+
126
+ // node_modules/@opentelemetry/exporter-logs-otlp-http/build/src/version.js
127
+ var require_version2 = __commonJS({
128
+ "node_modules/@opentelemetry/exporter-logs-otlp-http/build/src/version.js"(exports) {
129
+ "use strict";
130
+ init_esbuild_shims();
131
+ Object.defineProperty(exports, "__esModule", { value: true });
132
+ exports.VERSION = void 0;
133
+ exports.VERSION = "0.203.0";
134
+ }
135
+ });
136
+
137
+ // node_modules/@opentelemetry/exporter-logs-otlp-http/build/src/platform/node/OTLPLogExporter.js
138
+ var require_OTLPLogExporter = __commonJS({
139
+ "node_modules/@opentelemetry/exporter-logs-otlp-http/build/src/platform/node/OTLPLogExporter.js"(exports) {
140
+ "use strict";
141
+ init_esbuild_shims();
142
+ Object.defineProperty(exports, "__esModule", { value: true });
143
+ exports.OTLPLogExporter = void 0;
144
+ var otlp_exporter_base_1 = (init_esm2(), __toCommonJS(esm_exports));
145
+ var otlp_transformer_1 = require_src3();
146
+ var version_1 = require_version2();
147
+ var node_http_1 = (init_index_node_http(), __toCommonJS(index_node_http_exports));
148
+ var OTLPLogExporter = class extends otlp_exporter_base_1.OTLPExporterBase {
149
+ static {
150
+ __name(this, "OTLPLogExporter");
151
+ }
152
+ constructor(config = {}) {
153
+ super((0, node_http_1.createOtlpHttpExportDelegate)((0, node_http_1.convertLegacyHttpOptions)(config, "LOGS", "v1/logs", {
154
+ "User-Agent": `OTel-OTLP-Exporter-JavaScript/${version_1.VERSION}`,
155
+ "Content-Type": "application/json"
156
+ }), otlp_transformer_1.JsonLogsSerializer));
157
+ }
158
+ };
159
+ exports.OTLPLogExporter = OTLPLogExporter;
160
+ }
161
+ });
162
+
163
+ // node_modules/@opentelemetry/exporter-logs-otlp-http/build/src/platform/node/index.js
164
+ var require_node2 = __commonJS({
165
+ "node_modules/@opentelemetry/exporter-logs-otlp-http/build/src/platform/node/index.js"(exports) {
166
+ "use strict";
167
+ init_esbuild_shims();
168
+ Object.defineProperty(exports, "__esModule", { value: true });
169
+ exports.OTLPLogExporter = void 0;
170
+ var OTLPLogExporter_1 = require_OTLPLogExporter();
171
+ Object.defineProperty(exports, "OTLPLogExporter", { enumerable: true, get: /* @__PURE__ */ __name(function() {
172
+ return OTLPLogExporter_1.OTLPLogExporter;
173
+ }, "get") });
174
+ }
175
+ });
176
+
177
+ // node_modules/@opentelemetry/exporter-logs-otlp-http/build/src/platform/index.js
178
+ var require_platform2 = __commonJS({
179
+ "node_modules/@opentelemetry/exporter-logs-otlp-http/build/src/platform/index.js"(exports) {
180
+ "use strict";
181
+ init_esbuild_shims();
182
+ Object.defineProperty(exports, "__esModule", { value: true });
183
+ exports.OTLPLogExporter = void 0;
184
+ var node_1 = require_node2();
185
+ Object.defineProperty(exports, "OTLPLogExporter", { enumerable: true, get: /* @__PURE__ */ __name(function() {
186
+ return node_1.OTLPLogExporter;
187
+ }, "get") });
188
+ }
189
+ });
190
+
191
+ // node_modules/@opentelemetry/exporter-logs-otlp-http/build/src/index.js
192
+ var require_src6 = __commonJS({
193
+ "node_modules/@opentelemetry/exporter-logs-otlp-http/build/src/index.js"(exports) {
194
+ "use strict";
195
+ init_esbuild_shims();
196
+ Object.defineProperty(exports, "__esModule", { value: true });
197
+ exports.OTLPLogExporter = void 0;
198
+ var platform_1 = require_platform2();
199
+ Object.defineProperty(exports, "OTLPLogExporter", { enumerable: true, get: /* @__PURE__ */ __name(function() {
200
+ return platform_1.OTLPLogExporter;
201
+ }, "get") });
202
+ }
203
+ });
204
+
205
+ // packages/core/src/telemetry/sdk-exporters-http.ts
206
+ init_esbuild_shims();
207
+ var import_exporter_trace_otlp_http = __toESM(require_src5(), 1);
208
+ var import_exporter_logs_otlp_http = __toESM(require_src6(), 1);
209
+ var import_exporter_metrics_otlp_http = __toESM(require_src4(), 1);
210
+ var import_sdk_metrics = __toESM(require_src2(), 1);
211
+
212
+ // packages/core/src/telemetry/log-to-span-processor.ts
213
+ init_esbuild_shims();
214
+ init_esm();
215
+ var import_resources = __toESM(require_src(), 1);
216
+ var BRIDGE_SKIP_EVENT_NAMES = /* @__PURE__ */ new Set([EVENT_SUBAGENT_EXECUTION]);
217
+ var EXPORT_TIMEOUT_MS = 3e4;
218
+ var DEFAULT_MAX_BUFFER_SIZE = 1e4;
219
+ var BUFFER_OVERFLOW_WARNING_INTERVAL_MS = 3e4;
220
+ var LOG_EVENT_ERROR_STATUS_MESSAGE = "Log event recorded error";
221
+ var DEFAULT_LOG_SPAN_NAME = "log.event";
222
+ var MAX_SPAN_NAME_LENGTH = 128;
223
+ var SENSITIVE_ATTRIBUTE_KEYS = /* @__PURE__ */ new Set([
224
+ "error",
225
+ "error.message",
226
+ "error_message",
227
+ "prompt",
228
+ "function_args",
229
+ "response_text"
230
+ ]);
231
+ var defaultDiagnosticsSink = /* @__PURE__ */ __name((message) => {
232
+ process.stderr.write(`${message}
233
+ `);
234
+ }, "defaultDiagnosticsSink");
235
+ var LogToSpanProcessor = class {
236
+ constructor(spanExporter, flushIntervalMsOrOptions = 5e3, maxBufferSize = DEFAULT_MAX_BUFFER_SIZE) {
237
+ this.spanExporter = spanExporter;
238
+ if (typeof flushIntervalMsOrOptions === "number") {
239
+ this.flushIntervalMs = flushIntervalMsOrOptions;
240
+ this.includeSensitiveSpanAttributes = false;
241
+ this.maxBufferSize = normalizeMaxBufferSize(maxBufferSize);
242
+ this.diagnosticsSink = defaultDiagnosticsSink;
243
+ } else {
244
+ this.flushIntervalMs = flushIntervalMsOrOptions.flushIntervalMs ?? 5e3;
245
+ this.includeSensitiveSpanAttributes = flushIntervalMsOrOptions.includeSensitiveSpanAttributes ?? false;
246
+ this.maxBufferSize = normalizeMaxBufferSize(
247
+ flushIntervalMsOrOptions.maxBufferSize
248
+ );
249
+ this.diagnosticsSink = flushIntervalMsOrOptions.diagnosticsSink ?? defaultDiagnosticsSink;
250
+ }
251
+ this.flushTimer = setInterval(() => {
252
+ void this.flush();
253
+ }, this.flushIntervalMs);
254
+ this.flushTimer.unref();
255
+ }
256
+ static {
257
+ __name(this, "LogToSpanProcessor");
258
+ }
259
+ buffer = [];
260
+ flushTimer;
261
+ inFlightExport;
262
+ flushIntervalMs;
263
+ cachedSessionId;
264
+ cachedTraceId;
265
+ includeSensitiveSpanAttributes;
266
+ maxBufferSize;
267
+ diagnosticsSink;
268
+ lastBufferOverflowWarningMs;
269
+ droppedSpansSinceLastBufferWarning = 0;
270
+ totalDroppedSpans = 0;
271
+ isShutdown = false;
272
+ onEmit(logRecord) {
273
+ if (this.isShutdown) {
274
+ return;
275
+ }
276
+ const eventName = logRecord.attributes?.["event.name"];
277
+ if (typeof eventName === "string" && BRIDGE_SKIP_EVENT_NAMES.has(eventName) && isInNativeSubagentSpan()) {
278
+ return;
279
+ }
280
+ const name = deriveSpanName(logRecord);
281
+ const startTime = logRecord.hrTime;
282
+ const attributes = {};
283
+ if (logRecord.attributes) {
284
+ for (const [key, value] of Object.entries(logRecord.attributes)) {
285
+ if (value !== void 0 && value !== null && (this.includeSensitiveSpanAttributes || !SENSITIVE_ATTRIBUTE_KEYS.has(key))) {
286
+ attributes[key] = typeof value === "object" ? safeStringify(value) : value;
287
+ }
288
+ }
289
+ }
290
+ attributes["log.bridge"] = true;
291
+ if (logRecord.severityNumber !== void 0) {
292
+ attributes["log.severity_number"] = logRecord.severityNumber;
293
+ }
294
+ if (logRecord.severityText) {
295
+ attributes["log.severity_text"] = logRecord.severityText;
296
+ }
297
+ let endTime = startTime;
298
+ const durationMs = logRecord.attributes?.["duration_ms"];
299
+ if (typeof durationMs === "number" && Number.isFinite(durationMs) && durationMs > 0) {
300
+ const [secs, nanos] = startTime;
301
+ const durationNanos = durationMs * 1e6;
302
+ const endNanos = nanos + durationNanos;
303
+ endTime = [secs + Math.floor(endNanos / 1e9), endNanos % 1e9];
304
+ }
305
+ const parentSpanContext = getValidParentSpanContext(logRecord.spanContext);
306
+ const sessionId = logRecord.attributes?.["session.id"] || getCurrentSessionId();
307
+ let traceId;
308
+ if (parentSpanContext) {
309
+ traceId = parentSpanContext.traceId;
310
+ } else if (sessionId) {
311
+ const sid = String(sessionId);
312
+ if (sid !== this.cachedSessionId) {
313
+ this.cachedSessionId = sid;
314
+ this.cachedTraceId = deriveTraceId(sid);
315
+ }
316
+ traceId = this.cachedTraceId;
317
+ } else {
318
+ traceId = randomHexString(32);
319
+ }
320
+ const spanId = randomSpanId();
321
+ this.buffer.push({
322
+ name,
323
+ kind: SpanKind.INTERNAL,
324
+ spanContext: /* @__PURE__ */ __name(() => ({
325
+ traceId,
326
+ spanId,
327
+ traceFlags: parentSpanContext?.traceFlags ?? TraceFlags.SAMPLED
328
+ }), "spanContext"),
329
+ startTime,
330
+ endTime,
331
+ duration: hrTimeDiff(startTime, endTime),
332
+ attributes,
333
+ status: deriveSpanStatus(logRecord.attributes),
334
+ events: [],
335
+ links: [],
336
+ resource: logRecord.resource ?? (0, import_resources.resourceFromAttributes)({}),
337
+ instrumentationScope: logRecord.instrumentationScope ?? {
338
+ name: SERVICE_NAME,
339
+ version: ""
340
+ },
341
+ ended: true,
342
+ parentSpanContext,
343
+ droppedAttributesCount: 0,
344
+ droppedEventsCount: 0,
345
+ droppedLinksCount: 0,
346
+ recordException: /* @__PURE__ */ __name(() => {
347
+ }, "recordException")
348
+ });
349
+ if (this.buffer.length > this.maxBufferSize) {
350
+ const droppedSpanCount = this.buffer.length - this.maxBufferSize;
351
+ this.buffer.splice(0, droppedSpanCount);
352
+ this.warnBufferOverflow(droppedSpanCount);
353
+ }
354
+ }
355
+ warnBufferOverflow(droppedSpanCount) {
356
+ this.droppedSpansSinceLastBufferWarning += droppedSpanCount;
357
+ this.totalDroppedSpans += droppedSpanCount;
358
+ const now = Date.now();
359
+ if (this.lastBufferOverflowWarningMs !== void 0 && now - this.lastBufferOverflowWarningMs < BUFFER_OVERFLOW_WARNING_INTERVAL_MS) {
360
+ return;
361
+ }
362
+ this.emitBufferOverflowWarning(now);
363
+ }
364
+ emitBufferOverflowWarning(now = Date.now()) {
365
+ if (this.droppedSpansSinceLastBufferWarning === 0) {
366
+ return;
367
+ }
368
+ const droppedSinceLastWarning = this.droppedSpansSinceLastBufferWarning;
369
+ this.droppedSpansSinceLastBufferWarning = 0;
370
+ this.lastBufferOverflowWarningMs = now;
371
+ this.emitDiagnostic(
372
+ `[LogToSpan] buffer exceeded max size (${this.maxBufferSize}); dropped ${droppedSinceLastWarning} oldest span(s) since last warning, ${this.totalDroppedSpans} total`
373
+ );
374
+ }
375
+ /**
376
+ * Route a diagnostic message to the configured sink, swallowing any sink
377
+ * error so a misbehaving sink can never interrupt telemetry ingestion.
378
+ *
379
+ * Tradeoff: when the sink itself is broken (e.g. file-logger failing on
380
+ * EACCES), bridge-specific diagnostics go dark. We accept that — the host
381
+ * surfaces overall logging health via `isDebugLoggingDegraded()`, and
382
+ * falling back to stderr here would re-introduce the TUI-pollution this
383
+ * sink injection was added to prevent.
384
+ */
385
+ emitDiagnostic(message) {
386
+ try {
387
+ this.diagnosticsSink(message);
388
+ } catch {
389
+ }
390
+ }
391
+ flush() {
392
+ if (this.inFlightExport) return this.inFlightExport;
393
+ if (this.buffer.length === 0) return Promise.resolve();
394
+ const spans = this.buffer.splice(0);
395
+ const exportPromise = new Promise((resolve) => {
396
+ const timeout = setTimeout(() => {
397
+ this.emitDiagnostic(
398
+ `[LogToSpan] export timeout after ${EXPORT_TIMEOUT_MS}ms (${spans.length} span(s))`
399
+ );
400
+ resolve();
401
+ }, EXPORT_TIMEOUT_MS);
402
+ timeout.unref();
403
+ try {
404
+ this.spanExporter.export(
405
+ spans,
406
+ (result) => {
407
+ clearTimeout(timeout);
408
+ if (result.code !== 0) {
409
+ this.emitDiagnostic(
410
+ `[LogToSpan] export failed: code=${result.code} ${formatExportError(result.error)}`
411
+ );
412
+ }
413
+ resolve();
414
+ }
415
+ );
416
+ } catch (err) {
417
+ clearTimeout(timeout);
418
+ const detail = err instanceof Error ? formatExportError(err) : `error=${JSON.stringify(String(err))}`;
419
+ this.emitDiagnostic(`[LogToSpan] export threw: ${detail}`);
420
+ resolve();
421
+ }
422
+ });
423
+ this.inFlightExport = exportPromise.finally(() => {
424
+ this.inFlightExport = void 0;
425
+ });
426
+ return this.inFlightExport;
427
+ }
428
+ async shutdown() {
429
+ if (this.isShutdown) {
430
+ return;
431
+ }
432
+ this.isShutdown = true;
433
+ if (this.flushTimer) {
434
+ clearInterval(this.flushTimer);
435
+ this.flushTimer = void 0;
436
+ }
437
+ if (this.inFlightExport) {
438
+ await this.inFlightExport;
439
+ }
440
+ await this.flush();
441
+ this.emitBufferOverflowWarning();
442
+ await this.spanExporter.shutdown();
443
+ }
444
+ async forceFlush() {
445
+ if (this.isShutdown) {
446
+ return;
447
+ }
448
+ if (this.inFlightExport) {
449
+ await this.inFlightExport;
450
+ }
451
+ await this.flush();
452
+ await this.spanExporter.forceFlush?.();
453
+ }
454
+ };
455
+ function normalizeMaxBufferSize(value) {
456
+ if (typeof value !== "number" || !Number.isFinite(value) || value < 1) {
457
+ return DEFAULT_MAX_BUFFER_SIZE;
458
+ }
459
+ return Math.floor(value);
460
+ }
461
+ __name(normalizeMaxBufferSize, "normalizeMaxBufferSize");
462
+ function deriveSpanName(logRecord) {
463
+ const eventName = logRecord.attributes?.["event.name"] ?? logRecord.eventName;
464
+ if (typeof eventName === "string" && eventName.trim().length > 0) {
465
+ return sanitizeSpanName(eventName);
466
+ }
467
+ return DEFAULT_LOG_SPAN_NAME;
468
+ }
469
+ __name(deriveSpanName, "deriveSpanName");
470
+ function sanitizeSpanName(body) {
471
+ const rawName = String(body ?? "unknown");
472
+ return rawName.length > MAX_SPAN_NAME_LENGTH ? `${rawName.slice(0, MAX_SPAN_NAME_LENGTH)}...` : rawName;
473
+ }
474
+ __name(sanitizeSpanName, "sanitizeSpanName");
475
+ function getValidParentSpanContext(spanContext) {
476
+ if (!spanContext || !isSpanContextValid(spanContext)) {
477
+ return void 0;
478
+ }
479
+ return spanContext;
480
+ }
481
+ __name(getValidParentSpanContext, "getValidParentSpanContext");
482
+ function safeStringify(value) {
483
+ try {
484
+ return JSON.stringify(value);
485
+ } catch {
486
+ return "[unserializable]";
487
+ }
488
+ }
489
+ __name(safeStringify, "safeStringify");
490
+ function deriveSpanStatus(attrs) {
491
+ if (!attrs) return { code: SpanStatusCode.OK };
492
+ if (!!attrs["error"] || !!attrs["error.message"] || !!attrs["error_message"] || !!attrs["error_type"]) {
493
+ return {
494
+ code: SpanStatusCode.ERROR,
495
+ message: LOG_EVENT_ERROR_STATUS_MESSAGE
496
+ };
497
+ }
498
+ return { code: SpanStatusCode.OK };
499
+ }
500
+ __name(deriveSpanStatus, "deriveSpanStatus");
501
+ function formatExportError(err) {
502
+ if (!err) return 'error="unknown"';
503
+ const extra = err;
504
+ const msg = err.message || err.name || "unknown";
505
+ const parts = [`error=${JSON.stringify(msg)}`];
506
+ if (typeof extra.code === "number") parts.push(`httpCode=${extra.code}`);
507
+ if (typeof extra.data === "string" && extra.data.length > 0) {
508
+ parts.push(`data=${JSON.stringify(extra.data.slice(0, 200))}`);
509
+ }
510
+ return parts.join(" ");
511
+ }
512
+ __name(formatExportError, "formatExportError");
513
+ function hrTimeDiff(start, end) {
514
+ let secs = end[0] - start[0];
515
+ let nanos = end[1] - start[1];
516
+ if (nanos < 0) {
517
+ secs -= 1;
518
+ nanos += 1e9;
519
+ }
520
+ return [secs, nanos];
521
+ }
522
+ __name(hrTimeDiff, "hrTimeDiff");
523
+
524
+ // packages/core/src/telemetry/sdk-exporters-http.ts
525
+ function createHttpExporters(options) {
526
+ const { tracesUrl, logsUrl, metricsUrl } = options;
527
+ let spanExporter;
528
+ let logExporter;
529
+ let metricReader;
530
+ let logToSpanProcessor;
531
+ if (tracesUrl) {
532
+ spanExporter = new import_exporter_trace_otlp_http.OTLPTraceExporter({ url: tracesUrl });
533
+ }
534
+ if (logsUrl) {
535
+ logExporter = new import_exporter_logs_otlp_http.OTLPLogExporter({ url: logsUrl });
536
+ } else if (tracesUrl) {
537
+ logToSpanProcessor = new LogToSpanProcessor(
538
+ new import_exporter_trace_otlp_http.OTLPTraceExporter({ url: tracesUrl }),
539
+ {
540
+ includeSensitiveSpanAttributes: options.logToSpan.includeSensitiveSpanAttributes,
541
+ ...options.logToSpan.diagnosticsSink && {
542
+ diagnosticsSink: options.logToSpan.diagnosticsSink
543
+ }
544
+ }
545
+ );
546
+ }
547
+ if (metricsUrl) {
548
+ metricReader = new import_sdk_metrics.PeriodicExportingMetricReader({
549
+ exporter: new import_exporter_metrics_otlp_http.OTLPMetricExporter({ url: metricsUrl }),
550
+ exportIntervalMillis: 1e4
551
+ });
552
+ }
553
+ return { spanExporter, logExporter, metricReader, logToSpanProcessor };
554
+ }
555
+ __name(createHttpExporters, "createHttpExporters");
556
+ export {
557
+ createHttpExporters
558
+ };
559
+ /**
560
+ * @license
561
+ * Copyright 2025 Google LLC
562
+ * SPDX-License-Identifier: Apache-2.0
563
+ */