@sentry/mcp-server 0.21.0 → 0.22.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 (387) hide show
  1. package/dist/{agent-vFXI2vu1.js → agent-0WAnUgat.js} +7 -7
  2. package/dist/agent-0WAnUgat.js.map +1 -0
  3. package/dist/{agent-CuX9zpZq.d.ts → agent-BeTXxskw.d.ts} +12 -11
  4. package/dist/agent-BeTXxskw.d.ts.map +1 -0
  5. package/dist/{agent-_VPpnFmn.d.cts → agent-Bm5Hsfal.d.cts} +2 -2
  6. package/dist/{agent-_VPpnFmn.d.cts.map → agent-Bm5Hsfal.d.cts.map} +1 -1
  7. package/dist/{agent-CvjnNjVl.js → agent-C1Ros3Xx.js} +2 -2
  8. package/dist/{agent-CvjnNjVl.js.map → agent-C1Ros3Xx.js.map} +1 -1
  9. package/dist/{agent-BIhLK0w6.d.ts → agent-CJ6SVqAB.d.ts} +2 -2
  10. package/dist/{agent-BIhLK0w6.d.ts.map → agent-CJ6SVqAB.d.ts.map} +1 -1
  11. package/dist/{agent-DOraNng-.cjs → agent-Cm9hEq5d.cjs} +23 -13
  12. package/dist/agent-Cm9hEq5d.cjs.map +1 -0
  13. package/dist/{agent-CaZRIfIM.d.ts → agent-Cu85yHYm.d.ts} +25 -24
  14. package/dist/agent-Cu85yHYm.d.ts.map +1 -0
  15. package/dist/{agent-Bgg6nor6.cjs → agent-CyyRLYbF.cjs} +15 -9
  16. package/dist/agent-CyyRLYbF.cjs.map +1 -0
  17. package/dist/{agent-WO6BpLta.d.cts → agent-DYfi9MFV.d.cts} +29 -28
  18. package/dist/agent-DYfi9MFV.d.cts.map +1 -0
  19. package/dist/{agent-CzjC0wP8.js → agent-Dkgkv7Iz.js} +14 -10
  20. package/dist/agent-Dkgkv7Iz.js.map +1 -0
  21. package/dist/{agent-pad5p0Xr.cjs → agent-DtCRTWPZ.cjs} +3 -3
  22. package/dist/{agent-pad5p0Xr.cjs.map → agent-DtCRTWPZ.cjs.map} +1 -1
  23. package/dist/{agent-BePwIb80.d.cts → agent-TEZG63ug.d.cts} +12 -11
  24. package/dist/agent-TEZG63ug.d.cts.map +1 -0
  25. package/dist/{analyze-issue-with-seer-DHxMOCaf.cjs → analyze-issue-with-seer-B90r4g5J.cjs} +4 -4
  26. package/dist/{analyze-issue-with-seer-DHxMOCaf.cjs.map → analyze-issue-with-seer-B90r4g5J.cjs.map} +1 -1
  27. package/dist/{analyze-issue-with-seer-iXBAIlQL.js → analyze-issue-with-seer-Ji3KDm0O.js} +2 -2
  28. package/dist/{analyze-issue-with-seer-iXBAIlQL.js.map → analyze-issue-with-seer-Ji3KDm0O.js.map} +1 -1
  29. package/dist/{api-Cozv5F92.js → api-CBHyxA3Q.js} +2 -2
  30. package/dist/{api-Cozv5F92.js.map → api-CBHyxA3Q.js.map} +1 -1
  31. package/dist/{api-BkWv0o1h.cjs → api-CHgBJOv9.cjs} +2 -2
  32. package/dist/{api-BkWv0o1h.cjs.map → api-CHgBJOv9.cjs.map} +1 -1
  33. package/dist/api-client/client.cjs +4 -4
  34. package/dist/api-client/client.d.cts +3 -3
  35. package/dist/api-client/client.d.ts +3 -3
  36. package/dist/api-client/client.js +2 -2
  37. package/dist/api-client/index.cjs +4 -4
  38. package/dist/api-client/index.d.cts +3 -3
  39. package/dist/api-client/index.d.ts +3 -3
  40. package/dist/api-client/index.js +2 -2
  41. package/dist/api-client/schema.cjs +1 -1
  42. package/dist/api-client/schema.d.cts +1 -1
  43. package/dist/api-client/schema.d.ts +1 -1
  44. package/dist/api-client/types.d.cts +2 -2
  45. package/dist/api-client/types.d.ts +2 -2
  46. package/dist/{callEmbeddedAgent-B24rpPzZ.d.cts → callEmbeddedAgent-BIfQ-_5T.d.ts} +4 -4
  47. package/dist/callEmbeddedAgent-BIfQ-_5T.d.ts.map +1 -0
  48. package/dist/{callEmbeddedAgent-xTPNMk8s.cjs → callEmbeddedAgent-BPS472yg.cjs} +9 -4
  49. package/dist/callEmbeddedAgent-BPS472yg.cjs.map +1 -0
  50. package/dist/{callEmbeddedAgent-Dk48A2gz.d.ts → callEmbeddedAgent-CFHLQjFx.d.cts} +4 -4
  51. package/dist/callEmbeddedAgent-CFHLQjFx.d.cts.map +1 -0
  52. package/dist/{callEmbeddedAgent-B51_9ycP.js → callEmbeddedAgent-DavTx3Qo.js} +8 -3
  53. package/dist/callEmbeddedAgent-DavTx3Qo.js.map +1 -0
  54. package/dist/{chunk-DWy1uDak.cjs → chunk-CUT6urMc.cjs} +0 -9
  55. package/dist/cli/parse.cjs +1 -1
  56. package/dist/{client-DeGFkGAD.d.cts → client-0n2-4zOO.d.cts} +7 -7
  57. package/dist/{client-DeGFkGAD.d.cts.map → client-0n2-4zOO.d.cts.map} +1 -1
  58. package/dist/{client-BSlwJcxe.js → client-B7hvqupZ.js} +2 -2
  59. package/dist/{client-BSlwJcxe.js.map → client-B7hvqupZ.js.map} +1 -1
  60. package/dist/{client-D1Oq6Udl.d.ts → client-ByOC8aCf.d.ts} +9 -9
  61. package/dist/{client-D1Oq6Udl.d.ts.map → client-ByOC8aCf.d.ts.map} +1 -1
  62. package/dist/{client-DlJ_23xq.cjs → client-cC79LUJ5.cjs} +4 -4
  63. package/dist/{client-DlJ_23xq.cjs.map → client-cC79LUJ5.cjs.map} +1 -1
  64. package/dist/{create-dsn-erDvHRvv.cjs → create-dsn-9yIHr10B.cjs} +4 -4
  65. package/dist/{create-dsn-erDvHRvv.cjs.map → create-dsn-9yIHr10B.cjs.map} +1 -1
  66. package/dist/{create-dsn-CzaN7V1p.js → create-dsn-p2Ep6zDn.js} +2 -2
  67. package/dist/{create-dsn-CzaN7V1p.js.map → create-dsn-p2Ep6zDn.js.map} +1 -1
  68. package/dist/{create-project-B9dyzzyz.cjs → create-project-BQQx1iLm.cjs} +5 -5
  69. package/dist/{create-project-B9dyzzyz.cjs.map → create-project-BQQx1iLm.cjs.map} +1 -1
  70. package/dist/{create-project-BvmA3Xm7.js → create-project-CN0UneBm.js} +2 -2
  71. package/dist/{create-project-BvmA3Xm7.js.map → create-project-CN0UneBm.js.map} +1 -1
  72. package/dist/{create-team-Bb0ajRQO.js → create-team-CzFrsVdw.js} +2 -2
  73. package/dist/{create-team-Bb0ajRQO.js.map → create-team-CzFrsVdw.js.map} +1 -1
  74. package/dist/{create-team-CWC7s6TS.cjs → create-team-DFSriKVL.cjs} +4 -4
  75. package/dist/{create-team-CWC7s6TS.cjs.map → create-team-DFSriKVL.cjs.map} +1 -1
  76. package/dist/{dataset-fields-Bo9Nbtdn.cjs → dataset-fields-Bp_g-sD6.cjs} +3 -3
  77. package/dist/{dataset-fields-Bo9Nbtdn.cjs.map → dataset-fields-Bp_g-sD6.cjs.map} +1 -1
  78. package/dist/{error-handling-19djRJdh.cjs → error-handling-FGjcJT8U.cjs} +2 -2
  79. package/dist/{error-handling-19djRJdh.cjs.map → error-handling-FGjcJT8U.cjs.map} +1 -1
  80. package/dist/{find-dsns-Bqafhzp5.js → find-dsns-BzfYjE06.js} +2 -2
  81. package/dist/{find-dsns-Bqafhzp5.js.map → find-dsns-BzfYjE06.js.map} +1 -1
  82. package/dist/{find-dsns-MMdOXURp.cjs → find-dsns-DhHHtvpj.cjs} +4 -4
  83. package/dist/{find-dsns-MMdOXURp.cjs.map → find-dsns-DhHHtvpj.cjs.map} +1 -1
  84. package/dist/{find-organizations-D80maEbK.cjs → find-organizations-7ooGnnmP.cjs} +3 -3
  85. package/dist/{find-organizations-D80maEbK.cjs.map → find-organizations-7ooGnnmP.cjs.map} +1 -1
  86. package/dist/{find-organizations-DV7Za1d0.js → find-organizations-BJFAElbh.js} +2 -2
  87. package/dist/{find-organizations-DV7Za1d0.js.map → find-organizations-BJFAElbh.js.map} +1 -1
  88. package/dist/{find-projects-KrMwC18K.cjs → find-projects-BpEGRZya.cjs} +4 -4
  89. package/dist/{find-projects-KrMwC18K.cjs.map → find-projects-BpEGRZya.cjs.map} +1 -1
  90. package/dist/{find-projects-Dcqw9Vyi.js → find-projects-E5CMFbwU.js} +2 -2
  91. package/dist/{find-projects-Dcqw9Vyi.js.map → find-projects-E5CMFbwU.js.map} +1 -1
  92. package/dist/{find-releases-CHDuNU2z.js → find-releases-DWWonhlV.js} +2 -2
  93. package/dist/{find-releases-CHDuNU2z.js.map → find-releases-DWWonhlV.js.map} +1 -1
  94. package/dist/{find-releases-BPS53QTy.cjs → find-releases-Du5euXKS.cjs} +4 -4
  95. package/dist/{find-releases-BPS53QTy.cjs.map → find-releases-Du5euXKS.cjs.map} +1 -1
  96. package/dist/{find-teams-DPdnW18Q.js → find-teams-BM4yWKe_.js} +2 -2
  97. package/dist/{find-teams-DPdnW18Q.js.map → find-teams-BM4yWKe_.js.map} +1 -1
  98. package/dist/{find-teams-DFl7ESVe.cjs → find-teams-Bp6-Iu62.cjs} +4 -4
  99. package/dist/{find-teams-DFl7ESVe.cjs.map → find-teams-Bp6-Iu62.cjs.map} +1 -1
  100. package/dist/{formatters-Bb4El3CZ.cjs → formatters-B6H5qTFe.cjs} +2 -2
  101. package/dist/{formatters-Bb4El3CZ.cjs.map → formatters-B6H5qTFe.cjs.map} +1 -1
  102. package/dist/{formatters-Bta1mFce.cjs → formatters-ObdzRwld.cjs} +3 -3
  103. package/dist/{formatters-Bta1mFce.cjs.map → formatters-ObdzRwld.cjs.map} +1 -1
  104. package/dist/{formatting-BWMTp6lM.d.cts → formatting-Bw0FWiCH.d.cts} +4 -4
  105. package/dist/{formatting-BWMTp6lM.d.cts.map → formatting-Bw0FWiCH.d.cts.map} +1 -1
  106. package/dist/{formatting-CSkVn9rJ.d.ts → formatting-ClM7RU4L.d.ts} +4 -4
  107. package/dist/{formatting-CSkVn9rJ.d.ts.map → formatting-ClM7RU4L.d.ts.map} +1 -1
  108. package/dist/{get-doc-CGOI0C0A.js → get-doc-CWhlUoJe.js} +2 -2
  109. package/dist/{get-doc-CGOI0C0A.js.map → get-doc-CWhlUoJe.js.map} +1 -1
  110. package/dist/{get-doc-BWKx48zK.cjs → get-doc-DsOaSMIe.cjs} +3 -3
  111. package/dist/{get-doc-BWKx48zK.cjs.map → get-doc-DsOaSMIe.cjs.map} +1 -1
  112. package/dist/{get-event-attachment-CMPD67lQ.cjs → get-event-attachment-CTF-k6op.cjs} +4 -4
  113. package/dist/{get-event-attachment-CMPD67lQ.cjs.map → get-event-attachment-CTF-k6op.cjs.map} +1 -1
  114. package/dist/{get-event-attachment-C5nefGca.js → get-event-attachment-DDvsu6IQ.js} +2 -2
  115. package/dist/{get-event-attachment-C5nefGca.js.map → get-event-attachment-DDvsu6IQ.js.map} +1 -1
  116. package/dist/{get-issue-details-y1io-npG.js → get-issue-details-Bsax2jTY.js} +2 -2
  117. package/dist/{get-issue-details-y1io-npG.js.map → get-issue-details-Bsax2jTY.js.map} +1 -1
  118. package/dist/{get-issue-details-BxJ_lQN8.cjs → get-issue-details-CIZSksmd.cjs} +5 -5
  119. package/dist/{get-issue-details-BxJ_lQN8.cjs.map → get-issue-details-CIZSksmd.cjs.map} +1 -1
  120. package/dist/{get-trace-details-C9gJYPip.cjs → get-trace-details-Bc9GgkSs.cjs} +4 -4
  121. package/dist/{get-trace-details-C9gJYPip.cjs.map → get-trace-details-Bc9GgkSs.cjs.map} +1 -1
  122. package/dist/{get-trace-details-BOBNimN0.js → get-trace-details-Bkilw5oH.js} +2 -2
  123. package/dist/{get-trace-details-BOBNimN0.js.map → get-trace-details-Bkilw5oH.js.map} +1 -1
  124. package/dist/{handler-CU9ZxaP9.d.ts → handler-CASDrJ7z.d.ts} +3 -3
  125. package/dist/{handler-CU9ZxaP9.d.ts.map → handler-CASDrJ7z.d.ts.map} +1 -1
  126. package/dist/{handler-7ABtxyRG.d.cts → handler-CZEMKP9p.d.cts} +3 -3
  127. package/dist/{handler-7ABtxyRG.d.cts.map → handler-CZEMKP9p.d.cts.map} +1 -1
  128. package/dist/{handler-L0cEG-0-.cjs → handler-ChOaafS-.cjs} +8 -8
  129. package/dist/handler-ChOaafS-.cjs.map +1 -0
  130. package/dist/{handler-FxM1t6Wf.d.cts → handler-CmTBmIt9.d.cts} +3 -3
  131. package/dist/{handler-FxM1t6Wf.d.cts.map → handler-CmTBmIt9.d.cts.map} +1 -1
  132. package/dist/{handler-BDPbWDvJ.d.ts → handler-Cs5DcdpF.d.ts} +3 -3
  133. package/dist/{handler-BDPbWDvJ.d.ts.map → handler-Cs5DcdpF.d.ts.map} +1 -1
  134. package/dist/{handler-CK_gY4IH.cjs → handler-DQbc5eAJ.cjs} +9 -9
  135. package/dist/handler-DQbc5eAJ.cjs.map +1 -0
  136. package/dist/{handler-Dv8J_Uro.js → handler-bf2qu8DQ.js} +5 -5
  137. package/dist/handler-bf2qu8DQ.js.map +1 -0
  138. package/dist/{handler-DdgXX0YP.js → handler-y6EMhG0y.js} +5 -5
  139. package/dist/handler-y6EMhG0y.js.map +1 -0
  140. package/dist/index.cjs +44 -44
  141. package/dist/index.js +29 -29
  142. package/dist/internal/agents/callEmbeddedAgent.cjs +4 -3
  143. package/dist/internal/agents/callEmbeddedAgent.d.cts +1 -1
  144. package/dist/internal/agents/callEmbeddedAgent.d.ts +1 -1
  145. package/dist/internal/agents/callEmbeddedAgent.js +4 -3
  146. package/dist/internal/agents/openai-provider.cjs +2 -2
  147. package/dist/internal/agents/openai-provider.js +2 -2
  148. package/dist/internal/agents/tools/dataset-fields.cjs +6 -6
  149. package/dist/internal/agents/tools/dataset-fields.d.cts +7 -7
  150. package/dist/internal/agents/tools/dataset-fields.d.ts +7 -7
  151. package/dist/internal/agents/tools/dataset-fields.d.ts.map +1 -1
  152. package/dist/internal/agents/tools/dataset-fields.js +2 -2
  153. package/dist/internal/agents/tools/otel-semantics.cjs +6 -6
  154. package/dist/internal/agents/tools/otel-semantics.d.cts +7 -7
  155. package/dist/internal/agents/tools/otel-semantics.d.ts +7 -7
  156. package/dist/internal/agents/tools/otel-semantics.d.ts.map +1 -1
  157. package/dist/internal/agents/tools/otel-semantics.js +2 -2
  158. package/dist/internal/agents/tools/utils.cjs +5 -5
  159. package/dist/internal/agents/tools/utils.d.cts +1 -1
  160. package/dist/internal/agents/tools/utils.d.ts +1 -1
  161. package/dist/internal/agents/tools/utils.js +2 -2
  162. package/dist/internal/agents/tools/whoami.cjs +6 -6
  163. package/dist/internal/agents/tools/whoami.d.cts +7 -7
  164. package/dist/internal/agents/tools/whoami.d.ts +7 -7
  165. package/dist/internal/agents/tools/whoami.d.ts.map +1 -1
  166. package/dist/internal/agents/tools/whoami.js +2 -2
  167. package/dist/internal/error-handling.cjs +5 -5
  168. package/dist/internal/error-handling.d.cts +3 -3
  169. package/dist/internal/error-handling.d.ts +3 -3
  170. package/dist/internal/error-handling.js +2 -2
  171. package/dist/internal/formatting.d.cts +4 -4
  172. package/dist/internal/formatting.d.ts +4 -4
  173. package/dist/internal/test-fixtures.d.cts +2 -2
  174. package/dist/internal/test-fixtures.d.ts +2 -2
  175. package/dist/internal/tool-helpers/api.cjs +5 -5
  176. package/dist/internal/tool-helpers/api.d.cts +3 -3
  177. package/dist/internal/tool-helpers/api.d.ts +3 -3
  178. package/dist/internal/tool-helpers/api.js +3 -3
  179. package/dist/internal/tool-helpers/enhance-error.cjs +4 -4
  180. package/dist/internal/tool-helpers/enhance-error.d.cts +3 -3
  181. package/dist/internal/tool-helpers/enhance-error.d.ts +3 -3
  182. package/dist/internal/tool-helpers/enhance-error.js +2 -2
  183. package/dist/internal/tool-helpers/formatting.d.cts +3 -3
  184. package/dist/internal/tool-helpers/formatting.d.ts +3 -3
  185. package/dist/internal/tool-helpers/issue.d.cts +4 -4
  186. package/dist/internal/tool-helpers/issue.d.ts +4 -4
  187. package/dist/internal/tool-helpers/seer.d.cts +3 -3
  188. package/dist/internal/tool-helpers/seer.d.ts +3 -3
  189. package/dist/{logging-DrbQ8weU.cjs → logging-C-ST7-Ow.cjs} +2 -2
  190. package/dist/{logging-DrbQ8weU.cjs.map → logging-C-ST7-Ow.cjs.map} +1 -1
  191. package/dist/{openai-provider-CdGMI-ue.cjs → openai-provider-B7uvGxoI.cjs} +3 -3
  192. package/dist/{openai-provider-CdGMI-ue.cjs.map → openai-provider-B7uvGxoI.cjs.map} +1 -1
  193. package/dist/{openai-provider-BpAFXVih.js → openai-provider-DphaqrmX.js} +2 -2
  194. package/dist/{openai-provider-BpAFXVih.js.map → openai-provider-DphaqrmX.js.map} +1 -1
  195. package/dist/{otel-semantics-CgF1PqFd.cjs → otel-semantics-n8_5Ib9C.cjs} +3 -3
  196. package/dist/{otel-semantics-CgF1PqFd.cjs.map → otel-semantics-n8_5Ib9C.cjs.map} +1 -1
  197. package/dist/{parse-vgBG5mXu.cjs → parse-Br-BwKdT.cjs} +2 -2
  198. package/dist/{parse-vgBG5mXu.cjs.map → parse-Br-BwKdT.cjs.map} +1 -1
  199. package/dist/{schema-DUU4CA0j.cjs → schema-BGVOjcD7.cjs} +3 -3
  200. package/dist/{schema-DUU4CA0j.cjs.map → schema-BGVOjcD7.cjs.map} +1 -1
  201. package/dist/{schema-Y6BzAUmc.d.cts → schema-Cp8XI7-D.d.ts} +347 -347
  202. package/dist/schema-Cp8XI7-D.d.ts.map +1 -0
  203. package/dist/{schema-xBO557xH.d.ts → schema-D5oT-Zi7.d.cts} +285 -285
  204. package/dist/{schema-Y6BzAUmc.d.cts.map → schema-D5oT-Zi7.d.cts.map} +1 -1
  205. package/dist/{schema-CGiILhan.cjs → schema-DE4JpUSi.cjs} +2 -2
  206. package/dist/{schema-CGiILhan.cjs.map → schema-DE4JpUSi.cjs.map} +1 -1
  207. package/dist/schema.cjs +2 -2
  208. package/dist/{search-docs-Da7cAz8X.cjs → search-docs-DdOFZY3t.cjs} +3 -3
  209. package/dist/{search-docs-Da7cAz8X.cjs.map → search-docs-DdOFZY3t.cjs.map} +1 -1
  210. package/dist/{server-KMgWcsoE.cjs → server-BQBA0VNe.cjs} +25 -25
  211. package/dist/{server-KMgWcsoE.cjs.map → server-BQBA0VNe.cjs.map} +1 -1
  212. package/dist/{server-BaovxxmS.js → server-BVqPcPfx.js} +21 -21
  213. package/dist/{server-BaovxxmS.js.map → server-BVqPcPfx.js.map} +1 -1
  214. package/dist/server.cjs +40 -40
  215. package/dist/server.js +27 -27
  216. package/dist/{slug-validation-ByuBdbX_.cjs → slug-validation-D5VJqMwH.cjs} +2 -2
  217. package/dist/{slug-validation-ByuBdbX_.cjs.map → slug-validation-D5VJqMwH.cjs.map} +1 -1
  218. package/dist/{stdio-pNGJyuki.cjs → stdio-DPvrKLnJ.cjs} +3 -3
  219. package/dist/{stdio-pNGJyuki.cjs.map → stdio-DPvrKLnJ.cjs.map} +1 -1
  220. package/dist/{stdio-DHijjrp9.js → stdio-YKMCj_QV.js} +2 -2
  221. package/dist/{stdio-DHijjrp9.js.map → stdio-YKMCj_QV.js.map} +1 -1
  222. package/dist/telem/index.cjs +1 -1
  223. package/dist/telem/logging.cjs +1 -1
  224. package/dist/test-setup.cjs +3 -51873
  225. package/dist/test-setup.cjs.map +1 -1
  226. package/dist/test-setup.js +1 -51899
  227. package/dist/test-setup.js.map +1 -1
  228. package/dist/tools/analyze-issue-with-seer.cjs +8 -8
  229. package/dist/tools/analyze-issue-with-seer.js +4 -4
  230. package/dist/tools/create-dsn.cjs +8 -8
  231. package/dist/tools/create-dsn.js +4 -4
  232. package/dist/tools/create-project.cjs +8 -8
  233. package/dist/tools/create-project.js +4 -4
  234. package/dist/tools/create-team.cjs +8 -8
  235. package/dist/tools/create-team.js +4 -4
  236. package/dist/tools/find-dsns.cjs +8 -8
  237. package/dist/tools/find-dsns.d.cts +4 -4
  238. package/dist/tools/find-dsns.d.ts +4 -4
  239. package/dist/tools/find-dsns.js +4 -4
  240. package/dist/tools/find-organizations.cjs +8 -8
  241. package/dist/tools/find-organizations.d.cts +2 -2
  242. package/dist/tools/find-organizations.d.ts +2 -2
  243. package/dist/tools/find-organizations.js +4 -4
  244. package/dist/tools/find-projects.cjs +8 -8
  245. package/dist/tools/find-projects.d.cts +4 -4
  246. package/dist/tools/find-projects.d.ts +4 -4
  247. package/dist/tools/find-projects.js +4 -4
  248. package/dist/tools/find-releases.cjs +8 -8
  249. package/dist/tools/find-releases.js +4 -4
  250. package/dist/tools/find-teams.cjs +8 -8
  251. package/dist/tools/find-teams.d.cts +4 -4
  252. package/dist/tools/find-teams.d.ts +4 -4
  253. package/dist/tools/find-teams.js +4 -4
  254. package/dist/tools/get-doc.cjs +5 -5
  255. package/dist/tools/get-doc.js +3 -3
  256. package/dist/tools/get-event-attachment.cjs +8 -8
  257. package/dist/tools/get-event-attachment.d.cts +6 -6
  258. package/dist/tools/get-event-attachment.d.ts +6 -6
  259. package/dist/tools/get-event-attachment.js +4 -4
  260. package/dist/tools/get-issue-details.cjs +8 -8
  261. package/dist/tools/get-issue-details.js +4 -4
  262. package/dist/tools/get-trace-details.cjs +8 -8
  263. package/dist/tools/get-trace-details.d.cts +4 -4
  264. package/dist/tools/get-trace-details.d.ts +4 -4
  265. package/dist/tools/get-trace-details.js +4 -4
  266. package/dist/tools/index.cjs +40 -40
  267. package/dist/tools/index.d.cts +76 -76
  268. package/dist/tools/index.d.ts +76 -76
  269. package/dist/tools/index.js +27 -27
  270. package/dist/tools/search-docs.cjs +7 -7
  271. package/dist/tools/search-docs.js +2 -2
  272. package/dist/tools/search-events/agent.cjs +13 -12
  273. package/dist/tools/search-events/agent.d.cts +5 -5
  274. package/dist/tools/search-events/agent.d.ts +5 -5
  275. package/dist/tools/search-events/agent.js +6 -6
  276. package/dist/tools/search-events/formatters.cjs +7 -7
  277. package/dist/tools/search-events/formatters.d.cts +5 -5
  278. package/dist/tools/search-events/formatters.d.ts +5 -5
  279. package/dist/tools/search-events/formatters.js +2 -2
  280. package/dist/tools/search-events/handler.cjs +16 -16
  281. package/dist/tools/search-events/handler.d.cts +1 -1
  282. package/dist/tools/search-events/handler.d.ts +1 -1
  283. package/dist/tools/search-events/handler.js +7 -7
  284. package/dist/tools/search-events/index.cjs +16 -16
  285. package/dist/tools/search-events/index.d.cts +5 -5
  286. package/dist/tools/search-events/index.d.ts +5 -5
  287. package/dist/tools/search-events/index.js +7 -7
  288. package/dist/tools/search-events/utils.cjs +6 -6
  289. package/dist/tools/search-events/utils.d.cts +5 -5
  290. package/dist/tools/search-events/utils.d.ts +5 -5
  291. package/dist/tools/search-events/utils.js +2 -2
  292. package/dist/tools/search-issues/agent.cjs +12 -11
  293. package/dist/tools/search-issues/agent.d.cts +5 -5
  294. package/dist/tools/search-issues/agent.d.ts +5 -5
  295. package/dist/tools/search-issues/agent.js +6 -6
  296. package/dist/tools/search-issues/formatters.cjs +1 -1
  297. package/dist/tools/search-issues/formatters.d.cts +3 -3
  298. package/dist/tools/search-issues/formatters.d.ts +3 -3
  299. package/dist/tools/search-issues/handler.cjs +15 -15
  300. package/dist/tools/search-issues/handler.d.cts +1 -1
  301. package/dist/tools/search-issues/handler.d.ts +1 -1
  302. package/dist/tools/search-issues/handler.js +7 -7
  303. package/dist/tools/search-issues/index.cjs +15 -15
  304. package/dist/tools/search-issues/index.d.cts +5 -5
  305. package/dist/tools/search-issues/index.d.ts +5 -5
  306. package/dist/tools/search-issues/index.js +7 -7
  307. package/dist/tools/update-issue.cjs +8 -8
  308. package/dist/tools/update-issue.d.cts +7 -7
  309. package/dist/tools/update-issue.d.ts +7 -7
  310. package/dist/tools/update-issue.js +4 -4
  311. package/dist/tools/update-project.cjs +8 -8
  312. package/dist/tools/update-project.js +4 -4
  313. package/dist/tools/use-sentry/agent.cjs +4 -4
  314. package/dist/tools/use-sentry/agent.d.cts +2 -2
  315. package/dist/tools/use-sentry/agent.d.ts +2 -2
  316. package/dist/tools/use-sentry/agent.js +4 -4
  317. package/dist/tools/use-sentry/handler.cjs +40 -40
  318. package/dist/tools/use-sentry/handler.js +27 -27
  319. package/dist/tools/use-sentry/index.cjs +40 -40
  320. package/dist/tools/use-sentry/index.d.cts +2 -2
  321. package/dist/tools/use-sentry/index.d.ts +2 -2
  322. package/dist/tools/use-sentry/index.js +27 -27
  323. package/dist/tools/use-sentry/tool-wrapper.cjs +6 -6
  324. package/dist/tools/use-sentry/tool-wrapper.d.cts +6 -6
  325. package/dist/tools/use-sentry/tool-wrapper.d.ts +6 -6
  326. package/dist/tools/use-sentry/tool-wrapper.d.ts.map +1 -1
  327. package/dist/tools/use-sentry/tool-wrapper.js +2 -2
  328. package/dist/tools/whoami.cjs +6 -6
  329. package/dist/tools/whoami.js +4 -4
  330. package/dist/transports/stdio.cjs +2 -2
  331. package/dist/transports/stdio.js +2 -2
  332. package/dist/{types-CLI02LNZ.d.cts → types-CZI-5yyV.d.cts} +2 -2
  333. package/dist/{types-CLI02LNZ.d.cts.map → types-CZI-5yyV.d.cts.map} +1 -1
  334. package/dist/{types-DA9C6AdF.d.ts → types-WcBA7ZSQ.d.ts} +2 -2
  335. package/dist/{types-DA9C6AdF.d.ts.map → types-WcBA7ZSQ.d.ts.map} +1 -1
  336. package/dist/{update-issue-B9Y1Qftw.js → update-issue-B35n8MDT.js} +2 -2
  337. package/dist/{update-issue-B9Y1Qftw.js.map → update-issue-B35n8MDT.js.map} +1 -1
  338. package/dist/{update-issue-ADk9Bl3r.cjs → update-issue-DOVD2zXD.cjs} +4 -4
  339. package/dist/{update-issue-ADk9Bl3r.cjs.map → update-issue-DOVD2zXD.cjs.map} +1 -1
  340. package/dist/{update-project-CoVoAlvN.js → update-project-D361nWlU.js} +2 -2
  341. package/dist/{update-project-CoVoAlvN.js.map → update-project-D361nWlU.js.map} +1 -1
  342. package/dist/{update-project-CanU1PTp.cjs → update-project-DG3bwhNA.cjs} +5 -5
  343. package/dist/{update-project-CanU1PTp.cjs.map → update-project-DG3bwhNA.cjs.map} +1 -1
  344. package/dist/utils/slug-validation.cjs +1 -1
  345. package/dist/{utils-DfYLsLqN.d.cts → utils-Bzaer0D1.d.ts} +4 -4
  346. package/dist/utils-Bzaer0D1.d.ts.map +1 -0
  347. package/dist/{utils-Cv3R2iOS.d.cts → utils-C5oiuqkh.d.cts} +6 -6
  348. package/dist/{utils-Cv3R2iOS.d.cts.map → utils-C5oiuqkh.d.cts.map} +1 -1
  349. package/dist/{utils-_4aPBcrG.d.ts → utils-CAWsA9Cl.d.cts} +4 -4
  350. package/dist/{utils-DfYLsLqN.d.cts.map → utils-CAWsA9Cl.d.cts.map} +1 -1
  351. package/dist/{utils-Cr15-6aW.cjs → utils-CIt6Amml.cjs} +3 -3
  352. package/dist/{utils-Cr15-6aW.cjs.map → utils-CIt6Amml.cjs.map} +1 -1
  353. package/dist/{utils-Cj4NLgWf.d.ts → utils-CrKFhSC3.d.ts} +6 -6
  354. package/dist/{utils-Cj4NLgWf.d.ts.map → utils-CrKFhSC3.d.ts.map} +1 -1
  355. package/dist/{utils-B4iBngk1.cjs → utils-DJIwl8YR.cjs} +3 -3
  356. package/dist/{utils-B4iBngk1.cjs.map → utils-DJIwl8YR.cjs.map} +1 -1
  357. package/dist/{version-HXEfly4U.js → version-CCICHYna.js} +2 -2
  358. package/dist/{version-HXEfly4U.js.map → version-CCICHYna.js.map} +1 -1
  359. package/dist/{version-DZBMB6XD.cjs → version-CPcX-30c.cjs} +2 -2
  360. package/dist/{version-DZBMB6XD.cjs.map → version-CPcX-30c.cjs.map} +1 -1
  361. package/dist/version.cjs +1 -1
  362. package/dist/version.js +1 -1
  363. package/dist/{whoami-DcSsmS02.cjs → whoami-9JymZ3NV.cjs} +3 -3
  364. package/dist/{whoami-DcSsmS02.cjs.map → whoami-9JymZ3NV.cjs.map} +1 -1
  365. package/dist/{whoami-CZ02abcM.cjs → whoami-CRF9Ws25.cjs} +2 -2
  366. package/dist/{whoami-CZ02abcM.cjs.map → whoami-CRF9Ws25.cjs.map} +1 -1
  367. package/dist/{whoami-Cbo082cU.js → whoami-DCZN-m7R.js} +2 -2
  368. package/dist/{whoami-Cbo082cU.js.map → whoami-DCZN-m7R.js.map} +1 -1
  369. package/package.json +5 -4
  370. package/dist/agent-BePwIb80.d.cts.map +0 -1
  371. package/dist/agent-Bgg6nor6.cjs.map +0 -1
  372. package/dist/agent-CaZRIfIM.d.ts.map +0 -1
  373. package/dist/agent-CuX9zpZq.d.ts.map +0 -1
  374. package/dist/agent-CzjC0wP8.js.map +0 -1
  375. package/dist/agent-DOraNng-.cjs.map +0 -1
  376. package/dist/agent-WO6BpLta.d.cts.map +0 -1
  377. package/dist/agent-vFXI2vu1.js.map +0 -1
  378. package/dist/callEmbeddedAgent-B24rpPzZ.d.cts.map +0 -1
  379. package/dist/callEmbeddedAgent-B51_9ycP.js.map +0 -1
  380. package/dist/callEmbeddedAgent-Dk48A2gz.d.ts.map +0 -1
  381. package/dist/callEmbeddedAgent-xTPNMk8s.cjs.map +0 -1
  382. package/dist/handler-CK_gY4IH.cjs.map +0 -1
  383. package/dist/handler-DdgXX0YP.js.map +0 -1
  384. package/dist/handler-Dv8J_Uro.js.map +0 -1
  385. package/dist/handler-L0cEG-0-.cjs.map +0 -1
  386. package/dist/schema-xBO557xH.d.ts.map +0 -1
  387. package/dist/utils-_4aPBcrG.d.ts.map +0 -1
@@ -1,11 +1,11 @@
1
- import "../../../schema-xBO557xH.js";
2
- import "../../../types-DA9C6AdF.js";
3
- import { SentryApiService } from "../../../client-D1Oq6Udl.js";
1
+ import "../../../schema-Cp8XI7-D.js";
2
+ import "../../../types-WcBA7ZSQ.js";
3
+ import { SentryApiService } from "../../../client-ByOC8aCf.js";
4
4
  import "../../../errors-CyAWBU2S.js";
5
5
  import "../../../index-NfFbnYt3.js";
6
- import { AgentToolResponse } from "../../../utils-_4aPBcrG.js";
6
+ import { AgentToolResponse } from "../../../utils-Bzaer0D1.js";
7
7
  import { z } from "zod";
8
- import * as ai60 from "ai";
8
+ import * as ai276 from "ai";
9
9
 
10
10
  //#region src/internal/agents/tools/otel-semantics.d.ts
11
11
  /**
@@ -23,7 +23,7 @@ declare function createOtelLookupTool(options: {
23
23
  apiService: SentryApiService;
24
24
  organizationSlug: string;
25
25
  projectId?: string;
26
- }): ai60.Tool<z.ZodType<{
26
+ }): ai276.Tool<z.ZodType<{
27
27
  dataset: "spans" | "logs" | "errors";
28
28
  namespace: string;
29
29
  }, z.ZodTypeDef, {
@@ -33,7 +33,7 @@ declare function createOtelLookupTool(options: {
33
33
  execute: (args: {
34
34
  dataset: "spans" | "logs" | "errors";
35
35
  namespace: string;
36
- }, options: ai60.ToolExecutionOptions) => PromiseLike<AgentToolResponse<string>>;
36
+ }, options: ai276.ToolExecutionOptions) => PromiseLike<AgentToolResponse<string>>;
37
37
  };
38
38
  //# sourceMappingURL=otel-semantics.d.ts.map
39
39
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"otel-semantics.d.ts","names":[],"sources":["../../../../src/internal/agents/tools/otel-semantics.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;iBAgLsB,mBAAA,sEAGR,iEAGX;;;;;AANH;;;AAMG,iBAsEa,oBAAA,CAtEb,OAAA,EAAA;EAAO,UAAA,EAuEI,gBAvEJ;EAsEM,gBAAA,EAAA,MAAoB;EAAA,SAAA,CAAA,EAAA,MAAA;CAAA,CAAA,OAInC,IAHa,CAGb,CAAA,CAAA,OAHa,CAAA;EAAgB,OAAA,EAAA,OAAA,GAAA,MAAA,GAAA,QAAA;WAG7B,EAAA,MAAA;CAAA,EAH6B,CAAA,CAAA,UAG7B,EAAA;WAAA,OAAA,GAAA,MAAA,GAAA,QAAA;EAAA,SAAA,EAAA,MAAA;IAAA;;;;cAAA,IAAA,CAAA"}
1
+ {"version":3,"file":"otel-semantics.d.ts","names":[],"sources":["../../../../src/internal/agents/tools/otel-semantics.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;iBAgLsB,mBAAA,sEAGR,iEAGX;;;;;AANH;;;AAMG,iBAsEa,oBAAA,CAtEb,OAAA,EAAA;EAAO,UAAA,EAuEI,gBAvEJ;EAsEM,gBAAA,EAAA,MAAoB;EAAA,SAAA,CAAA,EAAA,MAAA;CAAA,CAAA,QAInC,IAHa,CAGb,CAAA,CAAA,OAHa,CAAA;EAAgB,OAAA,EAAA,OAAA,GAAA,MAAA,GAAA,QAAA;WAG7B,EAAA,MAAA;CAAA,EAH6B,CAAA,CAAA,UAG7B,EAAA;WAAA,OAAA,GAAA,MAAA,GAAA,QAAA;EAAA,SAAA,EAAA,MAAA;IAAA;;;;cAAA,KAAA,CAAA"}
@@ -3,8 +3,8 @@ import "../../../url-utils-CfKwo6s5.js";
3
3
  import "../../../logging-ChQnSEmD.js";
4
4
  import "../../../schema-DkZXVCQJ.js";
5
5
  import "../../../errors-DUEMWOr1.js";
6
- import "../../../version-HXEfly4U.js";
7
- import "../../../client-BSlwJcxe.js";
6
+ import "../../../version-CCICHYna.js";
7
+ import "../../../client-B7hvqupZ.js";
8
8
  import "../../../types-D670-rDz.js";
9
9
  import "../../../api-client-CSLxiNP9.js";
10
10
  import "../../../utils-DOb7bs5_.js";
@@ -1,12 +1,12 @@
1
1
  require('../../../errors-umQzF_vW.cjs');
2
2
  require('../../../url-utils-CbcNJVYS.cjs');
3
- require('../../../logging-DrbQ8weU.cjs');
4
- require('../../../schema-CGiILhan.cjs');
3
+ require('../../../logging-C-ST7-Ow.cjs');
4
+ require('../../../schema-DE4JpUSi.cjs');
5
5
  require('../../../errors-DWysOIMw.cjs');
6
- require('../../../version-DZBMB6XD.cjs');
7
- require('../../../client-DlJ_23xq.cjs');
6
+ require('../../../version-CPcX-30c.cjs');
7
+ require('../../../client-cC79LUJ5.cjs');
8
8
  require('../../../types-n3wuZu5X.cjs');
9
9
  require('../../../api-client-BGgaBFuD.cjs');
10
- const require_utils = require('../../../utils-B4iBngk1.cjs');
10
+ const require_utils = require('../../../utils-DJIwl8YR.cjs');
11
11
 
12
12
  exports.agentTool = require_utils.agentTool;
@@ -1,2 +1,2 @@
1
- import { AgentToolResponse, agentTool } from "../../../utils-DfYLsLqN.cjs";
1
+ import { AgentToolResponse, agentTool } from "../../../utils-CAWsA9Cl.cjs";
2
2
  export { AgentToolResponse, agentTool };
@@ -1,2 +1,2 @@
1
- import { AgentToolResponse, agentTool } from "../../../utils-_4aPBcrG.js";
1
+ import { AgentToolResponse, agentTool } from "../../../utils-Bzaer0D1.js";
2
2
  export { AgentToolResponse, agentTool };
@@ -3,8 +3,8 @@ import "../../../url-utils-CfKwo6s5.js";
3
3
  import "../../../logging-ChQnSEmD.js";
4
4
  import "../../../schema-DkZXVCQJ.js";
5
5
  import "../../../errors-DUEMWOr1.js";
6
- import "../../../version-HXEfly4U.js";
7
- import "../../../client-BSlwJcxe.js";
6
+ import "../../../version-CCICHYna.js";
7
+ import "../../../client-B7hvqupZ.js";
8
8
  import "../../../types-D670-rDz.js";
9
9
  import "../../../api-client-CSLxiNP9.js";
10
10
  import { agentTool } from "../../../utils-DOb7bs5_.js";
@@ -1,14 +1,14 @@
1
1
  require('../../../errors-umQzF_vW.cjs');
2
2
  require('../../../url-utils-CbcNJVYS.cjs');
3
- require('../../../logging-DrbQ8weU.cjs');
4
- require('../../../schema-CGiILhan.cjs');
3
+ require('../../../logging-C-ST7-Ow.cjs');
4
+ require('../../../schema-DE4JpUSi.cjs');
5
5
  require('../../../errors-DWysOIMw.cjs');
6
- require('../../../version-DZBMB6XD.cjs');
7
- require('../../../client-DlJ_23xq.cjs');
6
+ require('../../../version-CPcX-30c.cjs');
7
+ require('../../../client-cC79LUJ5.cjs');
8
8
  require('../../../types-n3wuZu5X.cjs');
9
9
  require('../../../api-client-BGgaBFuD.cjs');
10
- require('../../../utils-B4iBngk1.cjs');
11
- const require_whoami = require('../../../whoami-DcSsmS02.cjs');
10
+ require('../../../utils-DJIwl8YR.cjs');
11
+ const require_whoami = require('../../../whoami-9JymZ3NV.cjs');
12
12
 
13
13
  exports.createWhoamiTool = require_whoami.createWhoamiTool;
14
14
  exports.getCurrentUser = require_whoami.getCurrentUser;
@@ -1,11 +1,11 @@
1
- import "../../../schema-Y6BzAUmc.cjs";
2
- import "../../../types-CLI02LNZ.cjs";
3
- import { SentryApiService } from "../../../client-DeGFkGAD.cjs";
1
+ import "../../../schema-D5oT-Zi7.cjs";
2
+ import "../../../types-CZI-5yyV.cjs";
3
+ import { SentryApiService } from "../../../client-0n2-4zOO.cjs";
4
4
  import "../../../errors-DMiENfq7.cjs";
5
5
  import "../../../index-CmCelmEL.cjs";
6
- import { AgentToolResponse } from "../../../utils-DfYLsLqN.cjs";
6
+ import { AgentToolResponse } from "../../../utils-CAWsA9Cl.cjs";
7
7
  import { z } from "zod";
8
- import * as ai271 from "ai";
8
+ import * as ai262 from "ai";
9
9
 
10
10
  //#region src/internal/agents/tools/whoami.d.ts
11
11
  interface WhoamiResult {
@@ -23,8 +23,8 @@ declare function getCurrentUser(apiService: SentryApiService): Promise<WhoamiRes
23
23
  */
24
24
  declare function createWhoamiTool(options: {
25
25
  apiService: SentryApiService;
26
- }): ai271.Tool<z.ZodType<{}, z.ZodTypeDef, {}>, AgentToolResponse<string>> & {
27
- execute: (args: {}, options: ai271.ToolExecutionOptions) => PromiseLike<AgentToolResponse<string>>;
26
+ }): ai262.Tool<z.ZodType<{}, z.ZodTypeDef, {}>, AgentToolResponse<string>> & {
27
+ execute: (args: {}, options: ai262.ToolExecutionOptions) => PromiseLike<AgentToolResponse<string>>;
28
28
  };
29
29
  //# sourceMappingURL=whoami.d.ts.map
30
30
 
@@ -1,11 +1,11 @@
1
- import "../../../schema-xBO557xH.js";
2
- import "../../../types-DA9C6AdF.js";
3
- import { SentryApiService } from "../../../client-D1Oq6Udl.js";
1
+ import "../../../schema-Cp8XI7-D.js";
2
+ import "../../../types-WcBA7ZSQ.js";
3
+ import { SentryApiService } from "../../../client-ByOC8aCf.js";
4
4
  import "../../../errors-CyAWBU2S.js";
5
5
  import "../../../index-NfFbnYt3.js";
6
- import { AgentToolResponse } from "../../../utils-_4aPBcrG.js";
6
+ import { AgentToolResponse } from "../../../utils-Bzaer0D1.js";
7
7
  import { z } from "zod";
8
- import * as ai66 from "ai";
8
+ import * as ai272 from "ai";
9
9
 
10
10
  //#region src/internal/agents/tools/whoami.d.ts
11
11
  interface WhoamiResult {
@@ -23,8 +23,8 @@ declare function getCurrentUser(apiService: SentryApiService): Promise<WhoamiRes
23
23
  */
24
24
  declare function createWhoamiTool(options: {
25
25
  apiService: SentryApiService;
26
- }): ai66.Tool<z.ZodType<{}, z.ZodTypeDef, {}>, AgentToolResponse<string>> & {
27
- execute: (args: {}, options: ai66.ToolExecutionOptions) => PromiseLike<AgentToolResponse<string>>;
26
+ }): ai272.Tool<z.ZodType<{}, z.ZodTypeDef, {}>, AgentToolResponse<string>> & {
27
+ execute: (args: {}, options: ai272.ToolExecutionOptions) => PromiseLike<AgentToolResponse<string>>;
28
28
  };
29
29
  //# sourceMappingURL=whoami.d.ts.map
30
30
 
@@ -1 +1 @@
1
- {"version":3,"file":"whoami.d.ts","names":[],"sources":["../../../../src/internal/agents/tools/whoami.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;UAIiB,YAAA;;;;;;;;AAAA,iBASK,cAAA,CATO,UAAA,EAUf,gBAVe,CAAA,EAW1B,OAX0B,CAWlB,YAXkB,CAAA;AAS7B;;;;AAEG,iBAca,gBAAA,CAdb,OAAA,EAAA;EAAO,UAAA,EAc8C,gBAd9C;AAcV,CAAA,CAAA,EAA0E,IAAA,CAAA,IAA1D,CAA0D,CAAA,CAAA,OAA1C,CAAA,CAAA,CAAA,EAA0C,CAAA,CAAA,UAA1C,EAAA,CAAA,CAAA,CAAA,EAA0C,iBAA1C,CAAA,MAAA,CAAA,CAAA,GAAA;EAAA,OAAA,EAAA,CAAA,IAAA,EAAA,CAAA,CAAA,EAAA,OAAA,EAA0C,IAAA,CAAA,oBAA1C,EAAA,cAAA,kBAAA,CAAA,MAAA,CAAA,CAAA;CAAA"}
1
+ {"version":3,"file":"whoami.d.ts","names":[],"sources":["../../../../src/internal/agents/tools/whoami.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;UAIiB,YAAA;;;;;;;;AAAA,iBASK,cAAA,CATO,UAAA,EAUf,gBAVe,CAAA,EAW1B,OAX0B,CAWlB,YAXkB,CAAA;AAS7B;;;;AAEG,iBAca,gBAAA,CAdb,OAAA,EAAA;EAAO,UAAA,EAc8C,gBAd9C;AAcV,CAAA,CAAA,EAA0E,KAAA,CAAA,IAA1D,CAA0D,CAAA,CAAA,OAA1C,CAAA,CAAA,CAAA,EAA0C,CAAA,CAAA,UAA1C,EAAA,CAAA,CAAA,CAAA,EAA0C,iBAA1C,CAAA,MAAA,CAAA,CAAA,GAAA;EAAA,OAAA,EAAA,CAAA,IAAA,EAAA,CAAA,CAAA,EAAA,OAAA,EAA0C,KAAA,CAAA,oBAA1C,EAAA,cAAA,kBAAA,CAAA,MAAA,CAAA,CAAA;CAAA"}
@@ -3,8 +3,8 @@ import "../../../url-utils-CfKwo6s5.js";
3
3
  import "../../../logging-ChQnSEmD.js";
4
4
  import "../../../schema-DkZXVCQJ.js";
5
5
  import "../../../errors-DUEMWOr1.js";
6
- import "../../../version-HXEfly4U.js";
7
- import "../../../client-BSlwJcxe.js";
6
+ import "../../../version-CCICHYna.js";
7
+ import "../../../client-B7hvqupZ.js";
8
8
  import "../../../types-D670-rDz.js";
9
9
  import "../../../api-client-CSLxiNP9.js";
10
10
  import "../../../utils-DOb7bs5_.js";
@@ -1,13 +1,13 @@
1
1
  require('../errors-umQzF_vW.cjs');
2
2
  require('../url-utils-CbcNJVYS.cjs');
3
- require('../logging-DrbQ8weU.cjs');
4
- require('../schema-CGiILhan.cjs');
3
+ require('../logging-C-ST7-Ow.cjs');
4
+ require('../schema-DE4JpUSi.cjs');
5
5
  require('../errors-DWysOIMw.cjs');
6
- require('../version-DZBMB6XD.cjs');
7
- require('../client-DlJ_23xq.cjs');
6
+ require('../version-CPcX-30c.cjs');
7
+ require('../client-cC79LUJ5.cjs');
8
8
  require('../types-n3wuZu5X.cjs');
9
9
  require('../api-client-BGgaBFuD.cjs');
10
- const require_error_handling = require('../error-handling-19djRJdh.cjs');
10
+ const require_error_handling = require('../error-handling-FGjcJT8U.cjs');
11
11
 
12
12
  exports.formatErrorForUser = require_error_handling.formatErrorForUser;
13
13
  exports.isApiClientError = require_error_handling.isApiClientError;
@@ -1,6 +1,6 @@
1
- import "../schema-Y6BzAUmc.cjs";
2
- import "../types-CLI02LNZ.cjs";
3
- import "../client-DeGFkGAD.cjs";
1
+ import "../schema-D5oT-Zi7.cjs";
2
+ import "../types-CZI-5yyV.cjs";
3
+ import "../client-0n2-4zOO.cjs";
4
4
  import { ApiClientError, ApiError, ApiServerError } from "../errors-DMiENfq7.cjs";
5
5
  import "../index-CmCelmEL.cjs";
6
6
  import { ConfigurationError, UserInputError } from "../errors-BYClKbv4.cjs";
@@ -1,6 +1,6 @@
1
- import "../schema-xBO557xH.js";
2
- import "../types-DA9C6AdF.js";
3
- import "../client-D1Oq6Udl.js";
1
+ import "../schema-Cp8XI7-D.js";
2
+ import "../types-WcBA7ZSQ.js";
3
+ import "../client-ByOC8aCf.js";
4
4
  import { ApiClientError, ApiError, ApiServerError } from "../errors-CyAWBU2S.js";
5
5
  import "../index-NfFbnYt3.js";
6
6
  import { ConfigurationError, UserInputError } from "../errors-Cn4l-BlC.js";
@@ -3,8 +3,8 @@ import "../url-utils-CfKwo6s5.js";
3
3
  import "../logging-ChQnSEmD.js";
4
4
  import "../schema-DkZXVCQJ.js";
5
5
  import "../errors-DUEMWOr1.js";
6
- import "../version-HXEfly4U.js";
7
- import "../client-BSlwJcxe.js";
6
+ import "../version-CCICHYna.js";
7
+ import "../client-B7hvqupZ.js";
8
8
  import "../types-D670-rDz.js";
9
9
  import "../api-client-CSLxiNP9.js";
10
10
  import { formatErrorForUser, isApiClientError, isApiError, isApiServerError, isConfigurationError, isUserInputError } from "../error-handling-CLnyY1TR.js";
@@ -1,7 +1,7 @@
1
- import "../schema-Y6BzAUmc.cjs";
2
- import "../types-CLI02LNZ.cjs";
3
- import "../client-DeGFkGAD.cjs";
1
+ import "../schema-D5oT-Zi7.cjs";
2
+ import "../types-CZI-5yyV.cjs";
3
+ import "../client-0n2-4zOO.cjs";
4
4
  import "../errors-DMiENfq7.cjs";
5
5
  import "../index-CmCelmEL.cjs";
6
- import { formatEventOutput, formatFrameHeader, formatIssueOutput } from "../formatting-BWMTp6lM.cjs";
6
+ import { formatEventOutput, formatFrameHeader, formatIssueOutput } from "../formatting-Bw0FWiCH.cjs";
7
7
  export { formatEventOutput, formatFrameHeader, formatIssueOutput };
@@ -1,7 +1,7 @@
1
- import "../schema-xBO557xH.js";
2
- import "../types-DA9C6AdF.js";
3
- import "../client-D1Oq6Udl.js";
1
+ import "../schema-Cp8XI7-D.js";
2
+ import "../types-WcBA7ZSQ.js";
3
+ import "../client-ByOC8aCf.js";
4
4
  import "../errors-CyAWBU2S.js";
5
5
  import "../index-NfFbnYt3.js";
6
- import { formatEventOutput, formatFrameHeader, formatIssueOutput } from "../formatting-CSkVn9rJ.js";
6
+ import { formatEventOutput, formatFrameHeader, formatIssueOutput } from "../formatting-ClM7RU4L.js";
7
7
  export { formatEventOutput, formatFrameHeader, formatIssueOutput };
@@ -1,5 +1,5 @@
1
- import { ExceptionInterface, FrameInterface, ThreadEntrySchema } from "../schema-Y6BzAUmc.cjs";
2
- import { Event } from "../types-CLI02LNZ.cjs";
1
+ import { ExceptionInterface, FrameInterface, ThreadEntrySchema } from "../schema-D5oT-Zi7.cjs";
2
+ import { Event } from "../types-CZI-5yyV.cjs";
3
3
  import { z } from "zod";
4
4
 
5
5
  //#region src/internal/test-fixtures.d.ts
@@ -1,5 +1,5 @@
1
- import { ExceptionInterface, FrameInterface, ThreadEntrySchema } from "../schema-xBO557xH.js";
2
- import { Event } from "../types-DA9C6AdF.js";
1
+ import { ExceptionInterface, FrameInterface, ThreadEntrySchema } from "../schema-Cp8XI7-D.js";
2
+ import { Event } from "../types-WcBA7ZSQ.js";
3
3
  import { z } from "zod";
4
4
 
5
5
  //#region src/internal/test-fixtures.d.ts
@@ -2,15 +2,15 @@ require('../../skills-COOuBrrA.cjs');
2
2
  require('../../constants-CgLLujFn.cjs');
3
3
  require('../../errors-umQzF_vW.cjs');
4
4
  require('../../url-utils-CbcNJVYS.cjs');
5
- require('../../logging-DrbQ8weU.cjs');
6
- require('../../schema-CGiILhan.cjs');
5
+ require('../../logging-C-ST7-Ow.cjs');
6
+ require('../../schema-DE4JpUSi.cjs');
7
7
  require('../../errors-DWysOIMw.cjs');
8
- require('../../version-DZBMB6XD.cjs');
9
- require('../../client-DlJ_23xq.cjs');
8
+ require('../../version-CPcX-30c.cjs');
9
+ require('../../client-cC79LUJ5.cjs');
10
10
  require('../../types-n3wuZu5X.cjs');
11
11
  require('../../api-client-BGgaBFuD.cjs');
12
12
  require('../../validate-region-url-BvT-IgKg.cjs');
13
- const require_api = require('../../api-BkWv0o1h.cjs');
13
+ const require_api = require('../../api-CHgBJOv9.cjs');
14
14
 
15
15
  exports.apiServiceFromContext = require_api.apiServiceFromContext;
16
16
  exports.handleApiError = require_api.handleApiError;
@@ -1,6 +1,6 @@
1
- import "../../schema-Y6BzAUmc.cjs";
2
- import "../../types-CLI02LNZ.cjs";
3
- import { SentryApiService } from "../../client-DeGFkGAD.cjs";
1
+ import "../../schema-D5oT-Zi7.cjs";
2
+ import "../../types-CZI-5yyV.cjs";
3
+ import { SentryApiService } from "../../client-0n2-4zOO.cjs";
4
4
  import "../../errors-DMiENfq7.cjs";
5
5
  import "../../index-CmCelmEL.cjs";
6
6
  import "../../permissions-Cm5e34n2.cjs";
@@ -1,6 +1,6 @@
1
- import "../../schema-xBO557xH.js";
2
- import "../../types-DA9C6AdF.js";
3
- import { SentryApiService } from "../../client-D1Oq6Udl.js";
1
+ import "../../schema-Cp8XI7-D.js";
2
+ import "../../types-WcBA7ZSQ.js";
3
+ import { SentryApiService } from "../../client-ByOC8aCf.js";
4
4
  import "../../errors-CyAWBU2S.js";
5
5
  import "../../index-NfFbnYt3.js";
6
6
  import "../../permissions-CiIVEs4_.js";
@@ -5,11 +5,11 @@ import "../../url-utils-CfKwo6s5.js";
5
5
  import "../../logging-ChQnSEmD.js";
6
6
  import "../../schema-DkZXVCQJ.js";
7
7
  import "../../errors-DUEMWOr1.js";
8
- import "../../version-HXEfly4U.js";
9
- import "../../client-BSlwJcxe.js";
8
+ import "../../version-CCICHYna.js";
9
+ import "../../client-B7hvqupZ.js";
10
10
  import "../../types-D670-rDz.js";
11
11
  import "../../api-client-CSLxiNP9.js";
12
12
  import "../../validate-region-url-Bdokgz65.js";
13
- import { apiServiceFromContext, handleApiError, withApiErrorHandling } from "../../api-Cozv5F92.js";
13
+ import { apiServiceFromContext, handleApiError, withApiErrorHandling } from "../../api-CBHyxA3Q.js";
14
14
 
15
15
  export { apiServiceFromContext, handleApiError, withApiErrorHandling };
@@ -1,10 +1,10 @@
1
1
  require('../../errors-umQzF_vW.cjs');
2
2
  require('../../url-utils-CbcNJVYS.cjs');
3
- require('../../logging-DrbQ8weU.cjs');
4
- require('../../schema-CGiILhan.cjs');
3
+ require('../../logging-C-ST7-Ow.cjs');
4
+ require('../../schema-DE4JpUSi.cjs');
5
5
  require('../../errors-DWysOIMw.cjs');
6
- require('../../version-DZBMB6XD.cjs');
7
- require('../../client-DlJ_23xq.cjs');
6
+ require('../../version-CPcX-30c.cjs');
7
+ require('../../client-cC79LUJ5.cjs');
8
8
  require('../../types-n3wuZu5X.cjs');
9
9
  require('../../api-client-BGgaBFuD.cjs');
10
10
  const require_enhance_error = require('../../enhance-error-vihkdCX5.cjs');
@@ -1,6 +1,6 @@
1
- import "../../schema-Y6BzAUmc.cjs";
2
- import "../../types-CLI02LNZ.cjs";
3
- import "../../client-DeGFkGAD.cjs";
1
+ import "../../schema-D5oT-Zi7.cjs";
2
+ import "../../types-CZI-5yyV.cjs";
3
+ import "../../client-0n2-4zOO.cjs";
4
4
  import { ApiNotFoundError } from "../../errors-DMiENfq7.cjs";
5
5
  import "../../index-CmCelmEL.cjs";
6
6
 
@@ -1,6 +1,6 @@
1
- import "../../schema-xBO557xH.js";
2
- import "../../types-DA9C6AdF.js";
3
- import "../../client-D1Oq6Udl.js";
1
+ import "../../schema-Cp8XI7-D.js";
2
+ import "../../types-WcBA7ZSQ.js";
3
+ import "../../client-ByOC8aCf.js";
4
4
  import { ApiNotFoundError } from "../../errors-CyAWBU2S.js";
5
5
  import "../../index-NfFbnYt3.js";
6
6
 
@@ -3,8 +3,8 @@ import "../../url-utils-CfKwo6s5.js";
3
3
  import "../../logging-ChQnSEmD.js";
4
4
  import "../../schema-DkZXVCQJ.js";
5
5
  import "../../errors-DUEMWOr1.js";
6
- import "../../version-HXEfly4U.js";
7
- import "../../client-BSlwJcxe.js";
6
+ import "../../version-CCICHYna.js";
7
+ import "../../client-B7hvqupZ.js";
8
8
  import "../../types-D670-rDz.js";
9
9
  import "../../api-client-CSLxiNP9.js";
10
10
  import { enhanceNotFoundError } from "../../enhance-error-BULHg3Tl.js";
@@ -1,6 +1,6 @@
1
- import { AssignedToSchema } from "../../schema-Y6BzAUmc.cjs";
2
- import "../../types-CLI02LNZ.cjs";
3
- import "../../client-DeGFkGAD.cjs";
1
+ import { AssignedToSchema } from "../../schema-D5oT-Zi7.cjs";
2
+ import "../../types-CZI-5yyV.cjs";
3
+ import "../../client-0n2-4zOO.cjs";
4
4
  import "../../errors-DMiENfq7.cjs";
5
5
  import "../../index-CmCelmEL.cjs";
6
6
  import { z } from "zod";
@@ -1,6 +1,6 @@
1
- import { AssignedToSchema } from "../../schema-xBO557xH.js";
2
- import "../../types-DA9C6AdF.js";
3
- import "../../client-D1Oq6Udl.js";
1
+ import { AssignedToSchema } from "../../schema-Cp8XI7-D.js";
2
+ import "../../types-WcBA7ZSQ.js";
3
+ import "../../client-ByOC8aCf.js";
4
4
  import "../../errors-CyAWBU2S.js";
5
5
  import "../../index-NfFbnYt3.js";
6
6
  import { z } from "zod";
@@ -1,8 +1,8 @@
1
- import "../../schema-Y6BzAUmc.cjs";
2
- import "../../types-CLI02LNZ.cjs";
3
- import "../../client-DeGFkGAD.cjs";
1
+ import "../../schema-D5oT-Zi7.cjs";
2
+ import "../../types-CZI-5yyV.cjs";
3
+ import "../../client-0n2-4zOO.cjs";
4
4
  import "../../errors-DMiENfq7.cjs";
5
5
  import "../../index-CmCelmEL.cjs";
6
- import { formatIssueOutput } from "../../formatting-BWMTp6lM.cjs";
6
+ import { formatIssueOutput } from "../../formatting-Bw0FWiCH.cjs";
7
7
  import { parseIssueParams } from "../../issue-helpers-ILmSPsJZ.cjs";
8
8
  export { formatIssueOutput, parseIssueParams };
@@ -1,8 +1,8 @@
1
- import "../../schema-xBO557xH.js";
2
- import "../../types-DA9C6AdF.js";
3
- import "../../client-D1Oq6Udl.js";
1
+ import "../../schema-Cp8XI7-D.js";
2
+ import "../../types-WcBA7ZSQ.js";
3
+ import "../../client-ByOC8aCf.js";
4
4
  import "../../errors-CyAWBU2S.js";
5
5
  import "../../index-NfFbnYt3.js";
6
- import { formatIssueOutput } from "../../formatting-CSkVn9rJ.js";
6
+ import { formatIssueOutput } from "../../formatting-ClM7RU4L.js";
7
7
  import { parseIssueParams } from "../../issue-helpers-D4NRLqkR.js";
8
8
  export { formatIssueOutput, parseIssueParams };
@@ -1,6 +1,6 @@
1
- import { AutofixRunStepSchema } from "../../schema-Y6BzAUmc.cjs";
2
- import "../../types-CLI02LNZ.cjs";
3
- import "../../client-DeGFkGAD.cjs";
1
+ import { AutofixRunStepSchema } from "../../schema-D5oT-Zi7.cjs";
2
+ import "../../types-CZI-5yyV.cjs";
3
+ import "../../client-0n2-4zOO.cjs";
4
4
  import "../../errors-DMiENfq7.cjs";
5
5
  import "../../index-CmCelmEL.cjs";
6
6
  import { z } from "zod";
@@ -1,6 +1,6 @@
1
- import { AutofixRunStepSchema } from "../../schema-xBO557xH.js";
2
- import "../../types-DA9C6AdF.js";
3
- import "../../client-D1Oq6Udl.js";
1
+ import { AutofixRunStepSchema } from "../../schema-Cp8XI7-D.js";
2
+ import "../../types-WcBA7ZSQ.js";
3
+ import "../../client-ByOC8aCf.js";
4
4
  import "../../errors-CyAWBU2S.js";
5
5
  import "../../index-NfFbnYt3.js";
6
6
  import { z } from "zod";
@@ -1,4 +1,4 @@
1
- const require_chunk = require('./chunk-DWy1uDak.cjs');
1
+ const require_chunk = require('./chunk-CUT6urMc.cjs');
2
2
  const __logtape_logtape = require_chunk.__toESM(require("@logtape/logtape"));
3
3
  const __sentry_core = require_chunk.__toESM(require("@sentry/core"));
4
4
  const __sentry_node = require_chunk.__toESM(require("@sentry/node"));
@@ -295,4 +295,4 @@ Object.defineProperty(exports, 'logger', {
295
295
  return logger;
296
296
  }
297
297
  });
298
- //# sourceMappingURL=logging-DrbQ8weU.cjs.map
298
+ //# sourceMappingURL=logging-C-ST7-Ow.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"logging-DrbQ8weU.cjs","names":["record: LogRecord","Sentry","scope: string | readonly string[]","defaults?: LogContext","logger","value: unknown","contextsOrOptions?: SentryLogContexts | BaseLogOptions","contextsOrOptions?: SentryLogContexts | LogIssueOptions","attachmentsArg?: LogAttachments","contextsOrOptions?: SentryLogContexts | LogOptions","text: string","serialized: SerializedError","DEFAULT_LOGGER_SCOPE: readonly string[]","level: LogLevel","options: ParsedBaseOptions","serializedError?: SerializedError","properties: LogContext","error: unknown","extra: LogContext"],"sources":["../src/telem/logging.ts"],"sourcesContent":["/**\n * Logging and telemetry utilities for error reporting.\n *\n * Provides centralized error logging with Sentry integration. Handles both\n * console logging for development and structured error reporting for production\n * monitoring and debugging.\n */\nimport {\n configureSync,\n getConfig,\n getConsoleSink,\n getJsonLinesFormatter,\n getLogger as getLogTapeLogger,\n parseLogLevel,\n type LogLevel,\n type Logger,\n type LogRecord,\n type Sink,\n} from \"@logtape/logtape\";\nimport { captureException, captureMessage, withScope } from \"@sentry/core\";\nimport * as Sentry from \"@sentry/node\";\n\nconst ROOT_LOG_CATEGORY = [\"sentry\", \"mcp\"] as const;\n\ntype SinkId = \"console\" | \"sentry\";\n\nlet loggingConfigured = false;\n\nfunction resolveLowestLevel(): LogLevel {\n const envLevel =\n typeof process !== \"undefined\" ? process.env.LOG_LEVEL : undefined;\n\n if (envLevel) {\n try {\n return parseLogLevel(envLevel);\n } catch (error) {\n // Fall through to default level when parsing fails.\n }\n }\n\n return typeof process !== \"undefined\" &&\n process.env.NODE_ENV === \"development\"\n ? \"debug\"\n : \"info\";\n}\n\n/**\n * Creates a LogTape sink that sends logs to Sentry's Logs product using Sentry.logger.\n *\n * Unlike @logtape/sentry's getSentrySink which uses captureException/captureMessage\n * (creating Issues), this sink uses Sentry.logger.* methods to send data to the\n * Logs product.\n *\n * Note: This uses @sentry/node logger API. Cloudflare Workers will need a separate\n * implementation using @sentry/cloudflare logger API.\n */\nfunction createSentryLogsSink(): Sink {\n return (record: LogRecord) => {\n // Check if Sentry.logger is available (may not be in all environments)\n if (!Sentry.logger) {\n return;\n }\n\n // Extract message from LogRecord\n let message = \"\";\n for (let i = 0; i < record.message.length; i++) {\n if (i % 2 === 0) {\n message += record.message[i];\n } else {\n // Template values - convert to string safely\n const value = record.message[i];\n message += typeof value === \"string\" ? value : coerceMessage(value);\n }\n }\n\n // Extract attributes from properties\n const attributes = record.properties as Record<string, unknown>;\n\n // Map LogTape levels to Sentry.logger methods\n // Note: Sentry.logger methods are fire-and-forget and handle errors gracefully\n switch (record.level) {\n case \"trace\":\n Sentry.logger.trace(message, attributes);\n break;\n case \"debug\":\n Sentry.logger.debug(message, attributes);\n break;\n case \"info\":\n Sentry.logger.info(message, attributes);\n break;\n case \"warning\":\n Sentry.logger.warn(message, attributes);\n break;\n case \"error\":\n Sentry.logger.error(message, attributes);\n break;\n case \"fatal\":\n Sentry.logger.fatal(message, attributes);\n break;\n default:\n Sentry.logger.info(message, attributes);\n }\n };\n}\n\nfunction ensureLoggingConfigured(): void {\n if (loggingConfigured) {\n return;\n }\n\n const consoleSink = getConsoleSink({\n formatter: getJsonLinesFormatter(),\n });\n const sentrySink = createSentryLogsSink();\n\n configureSync<SinkId, never>({\n reset: getConfig() !== null,\n sinks: {\n console: consoleSink,\n sentry: sentrySink,\n },\n loggers: [\n {\n category: [...ROOT_LOG_CATEGORY],\n sinks: [\"console\", \"sentry\"],\n lowestLevel: resolveLowestLevel(),\n },\n {\n category: [\"logtape\", \"meta\"],\n sinks: [\"console\"],\n lowestLevel: \"warning\",\n },\n {\n category: \"logtape\",\n sinks: [\"console\"],\n lowestLevel: \"error\",\n },\n ],\n });\n\n loggingConfigured = true;\n}\n\nexport type LogContext = Record<string, unknown>;\n\nexport type SentryLogContexts = Record<string, Record<string, unknown>>;\nexport type LogAttachments = Record<string, string | Uint8Array>;\n\nexport interface BaseLogOptions {\n contexts?: SentryLogContexts;\n extra?: LogContext;\n loggerScope?: string | readonly string[];\n}\n\nexport interface LogIssueOptions extends BaseLogOptions {\n attachments?: LogAttachments;\n}\n\nexport interface LogOptions extends BaseLogOptions {}\n\nexport function getLogger(\n scope: string | readonly string[],\n defaults?: LogContext,\n): Logger {\n ensureLoggingConfigured();\n\n const category = Array.isArray(scope) ? scope : [scope];\n const logger = getLogTapeLogger([...ROOT_LOG_CATEGORY, ...category]);\n\n return defaults ? logger.with(defaults) : logger;\n}\n\nconst ISSUE_LOGGER_SCOPE = [\"runtime\", \"issues\"] as const;\n\ninterface ParsedBaseOptions {\n contexts?: SentryLogContexts;\n extra?: LogContext;\n loggerScope?: string | readonly string[];\n}\n\ninterface ParsedLogIssueOptions extends ParsedBaseOptions {\n attachments?: LogAttachments;\n}\n\ninterface SerializedError {\n message: string;\n name?: string;\n stack?: string;\n cause?: SerializedError;\n}\n\nfunction isRecord(value: unknown): value is Record<string, unknown> {\n return typeof value === \"object\" && value !== null;\n}\n\nfunction isSentryContexts(value: unknown): value is SentryLogContexts {\n if (!isRecord(value)) {\n return false;\n }\n\n return Object.values(value).every((entry) => isRecord(entry));\n}\n\nfunction isBaseLogOptionsCandidate(value: unknown): value is BaseLogOptions {\n if (!isRecord(value)) {\n return false;\n }\n\n if (\"extra\" in value || \"loggerScope\" in value) {\n return true;\n }\n\n if (\"contexts\" in value) {\n const contexts = (value as { contexts?: unknown }).contexts;\n return contexts === undefined || isSentryContexts(contexts);\n }\n\n return false;\n}\n\nfunction isLogIssueOptionsCandidate(value: unknown): value is LogIssueOptions {\n return (\n isBaseLogOptionsCandidate(value) ||\n (isRecord(value) && \"attachments\" in value)\n );\n}\n\nfunction parseBaseOptions(\n contextsOrOptions?: SentryLogContexts | BaseLogOptions,\n): ParsedBaseOptions {\n if (isBaseLogOptionsCandidate(contextsOrOptions)) {\n const { contexts, extra, loggerScope } = contextsOrOptions;\n return {\n contexts,\n extra,\n loggerScope,\n };\n }\n\n if (isSentryContexts(contextsOrOptions)) {\n return { contexts: contextsOrOptions };\n }\n\n return {};\n}\n\nfunction parseLogIssueOptions(\n contextsOrOptions?: SentryLogContexts | LogIssueOptions,\n attachmentsArg?: LogAttachments,\n): ParsedLogIssueOptions {\n const base = parseBaseOptions(contextsOrOptions);\n\n const attachments = isLogIssueOptionsCandidate(contextsOrOptions)\n ? contextsOrOptions.attachments\n : undefined;\n\n return {\n ...base,\n attachments: attachments ?? attachmentsArg,\n };\n}\n\nfunction parseLogOptions(\n contextsOrOptions?: SentryLogContexts | LogOptions,\n): LogOptions {\n return parseBaseOptions(contextsOrOptions);\n}\n\nfunction safeJsonStringify(value: unknown): string | undefined {\n try {\n return JSON.stringify(value);\n } catch (error) {\n return undefined;\n }\n}\n\nfunction truncate(text: string, maxLength = 1024): string {\n if (text.length <= maxLength) {\n return text;\n }\n\n return `${text.slice(0, maxLength - 1)}…`;\n}\n\nfunction coerceMessage(value: unknown): string {\n if (typeof value === \"string\") {\n return value;\n }\n\n if (\n typeof value === \"number\" ||\n typeof value === \"boolean\" ||\n typeof value === \"bigint\"\n ) {\n return value.toString();\n }\n\n if (value === null || value === undefined) {\n return String(value);\n }\n\n const json = safeJsonStringify(value);\n if (json) {\n return truncate(json);\n }\n\n return Object.prototype.toString.call(value);\n}\n\nfunction serializeError(value: unknown, depth = 0): SerializedError {\n if (value instanceof Error) {\n const serialized: SerializedError = {\n message: value.message,\n };\n\n if (value.name && value.name !== \"Error\") {\n serialized.name = value.name;\n }\n\n if (typeof value.stack === \"string\") {\n serialized.stack = value.stack;\n }\n\n const hasCause =\n \"cause\" in (value as { cause?: unknown }) &&\n (value as { cause?: unknown }).cause !== undefined;\n\n if (hasCause && depth < 3) {\n const cause = (value as { cause?: unknown }).cause;\n serialized.cause = serializeError(cause, depth + 1);\n }\n\n return serialized;\n }\n\n return { message: coerceMessage(value) };\n}\n\nexport const logger = getLogger([]);\n\nconst DEFAULT_LOGGER_SCOPE: readonly string[] = [];\n\nfunction buildLogProperties(\n level: LogLevel,\n options: ParsedBaseOptions,\n serializedError?: SerializedError,\n): LogContext {\n const properties: LogContext = {\n severity: level,\n };\n\n if (serializedError) {\n properties.error = serializedError;\n }\n\n if (options.extra) {\n Object.assign(properties, options.extra);\n }\n\n if (options.contexts) {\n properties.sentryContexts = options.contexts;\n }\n\n return properties;\n}\n\nfunction logWithLevel(\n level: LogLevel,\n value: unknown,\n contextsOrOptions?: SentryLogContexts | LogOptions,\n): void {\n ensureLoggingConfigured();\n\n const options = parseLogOptions(contextsOrOptions);\n const serializedError =\n value instanceof Error ? serializeError(value) : undefined;\n const message = serializedError\n ? serializedError.message\n : coerceMessage(value);\n const scope = options.loggerScope ?? DEFAULT_LOGGER_SCOPE;\n const scopedLogger = getLogger(scope, { severity: level });\n\n const properties = buildLogProperties(level, options, serializedError);\n\n switch (level) {\n case \"trace\":\n scopedLogger.trace(message, () => properties);\n break;\n case \"debug\":\n scopedLogger.debug(message, () => properties);\n break;\n case \"info\":\n scopedLogger.info(message, () => properties);\n break;\n case \"warning\":\n scopedLogger.warn(message, () => properties);\n break;\n case \"error\":\n scopedLogger.error(message, () => properties);\n break;\n case \"fatal\":\n scopedLogger.fatal(message, () => properties);\n break;\n default:\n scopedLogger.info(message, () => properties);\n }\n}\n\nexport function logDebug(\n value: unknown,\n contextsOrOptions?: SentryLogContexts | LogOptions,\n): void {\n logWithLevel(\"debug\", value, contextsOrOptions);\n}\n\nexport function logInfo(\n value: unknown,\n contextsOrOptions?: SentryLogContexts | LogOptions,\n): void {\n logWithLevel(\"info\", value, contextsOrOptions);\n}\n\nexport function logWarn(\n value: unknown,\n contextsOrOptions?: SentryLogContexts | LogOptions,\n): void {\n logWithLevel(\"warning\", value, contextsOrOptions);\n}\n\nexport function logError(\n value: unknown,\n contextsOrOptions?: SentryLogContexts | LogOptions,\n): void {\n logWithLevel(\"error\", value, contextsOrOptions);\n}\n\nexport function logIssue(\n error: Error | unknown,\n contexts?: SentryLogContexts,\n attachments?: LogAttachments,\n): string | undefined;\nexport function logIssue(\n error: Error | unknown,\n options: LogIssueOptions,\n): string | undefined;\nexport function logIssue(\n message: string,\n contexts?: SentryLogContexts,\n attachments?: LogAttachments,\n): string | undefined;\nexport function logIssue(\n message: string,\n options: LogIssueOptions,\n): string | undefined;\nexport function logIssue(\n error: unknown,\n contextsOrOptions?: SentryLogContexts | LogIssueOptions,\n attachmentsArg?: LogAttachments,\n): string | undefined {\n ensureLoggingConfigured();\n\n const options = parseLogIssueOptions(contextsOrOptions, attachmentsArg);\n const eventId = withScope((scopeInstance) => {\n if (options.contexts) {\n for (const [key, context] of Object.entries(options.contexts)) {\n scopeInstance.setContext(key, context);\n }\n }\n\n if (options.extra) {\n scopeInstance.setContext(\"log\", options.extra);\n }\n\n if (options.attachments) {\n for (const [key, data] of Object.entries(options.attachments)) {\n scopeInstance.addAttachment({\n data,\n filename: key,\n });\n }\n }\n\n const captureLevel = \"error\" as const;\n\n return typeof error === \"string\"\n ? captureMessage(error, {\n contexts: options.contexts,\n level: captureLevel,\n })\n : captureException(error, {\n contexts: options.contexts,\n level: captureLevel,\n });\n });\n\n const { attachments, ...baseOptions } = options;\n const extra: LogContext = {\n ...(baseOptions.extra ?? {}),\n ...(attachments && Object.keys(attachments).length > 0\n ? { attachments: Object.keys(attachments) }\n : {}),\n ...(eventId ? { eventId } : {}),\n };\n\n logError(error, {\n ...baseOptions,\n extra,\n loggerScope: baseOptions.loggerScope ?? ISSUE_LOGGER_SCOPE,\n });\n\n return eventId;\n}\n"],"mappings":";;;;;;AAsBA,MAAM,oBAAoB,CAAC,UAAU,KAAM;AAI3C,IAAI,oBAAoB;AAExB,SAAS,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M,UAAU,qBAAqB,mBAAmB,eAAe;CACvE,MAAM,UAAU,6BAAU,CAAC,kBAAkB;AAC3C,MAAI,QAAQ,SACV,MAAK,MAAM,CAAC,KAAK,QAAQ,IAAI,OAAO,QAAQ,QAAQ,SAAS,CAC3D,eAAc,WAAW,KAAK,QAAQ;AAI1C,MAAI,QAAQ,MACV,eAAc,WAAW,OAAO,QAAQ,MAAM;AAGhD,MAAI,QAAQ,YACV,MAAK,MAAM,CAAC,KAAK,KAAK,IAAI,OAAO,QAAQ,QAAQ,YAAY,CAC3D,eAAc,cAAc;GAC1B;GACA,UAAU;EACX,EAAC;EAIN,MAAM,eAAe;AAErB,gBAAc,UAAU,WACpB,kCAAe,OAAO;GACpB,UAAU,QAAQ;GAClB,OAAO;EACR,EAAC,GACF,oCAAiB,OAAO;GACtB,UAAU,QAAQ;GAClB,OAAO;EACR,EAAC;CACP,EAAC;CAEF,MAAM,EAAE,YAAa,GAAG,aAAa,GAAG;CACxC,MAAMU,QAAoB;EACxB,GAAI,YAAY,SAAS,CAAE;EAC3B,GAAI,eAAe,OAAO,KAAK,YAAY,CAAC,SAAS,IACjD,EAAE,aAAa,OAAO,KAAK,YAAY,CAAE,IACzC,CAAE;EACN,GAAI,UAAU,EAAE,QAAS,IAAG,CAAE;CAC/B;AAED,UAAS,OAAO;EACd,GAAG;EACH;EACA,aAAa,YAAY,eAAe;CACzC,EAAC;AAEF,QAAO;AACR"}
1
+ {"version":3,"file":"logging-C-ST7-Ow.cjs","names":["record: LogRecord","Sentry","scope: string | readonly string[]","defaults?: LogContext","logger","value: unknown","contextsOrOptions?: SentryLogContexts | BaseLogOptions","contextsOrOptions?: SentryLogContexts | LogIssueOptions","attachmentsArg?: LogAttachments","contextsOrOptions?: SentryLogContexts | LogOptions","text: string","serialized: SerializedError","DEFAULT_LOGGER_SCOPE: readonly string[]","level: LogLevel","options: ParsedBaseOptions","serializedError?: SerializedError","properties: LogContext","error: unknown","extra: LogContext"],"sources":["../src/telem/logging.ts"],"sourcesContent":["/**\n * Logging and telemetry utilities for error reporting.\n *\n * Provides centralized error logging with Sentry integration. Handles both\n * console logging for development and structured error reporting for production\n * monitoring and debugging.\n */\nimport {\n configureSync,\n getConfig,\n getConsoleSink,\n getJsonLinesFormatter,\n getLogger as getLogTapeLogger,\n parseLogLevel,\n type LogLevel,\n type Logger,\n type LogRecord,\n type Sink,\n} from \"@logtape/logtape\";\nimport { captureException, captureMessage, withScope } from \"@sentry/core\";\nimport * as Sentry from \"@sentry/node\";\n\nconst ROOT_LOG_CATEGORY = [\"sentry\", \"mcp\"] as const;\n\ntype SinkId = \"console\" | \"sentry\";\n\nlet loggingConfigured = false;\n\nfunction resolveLowestLevel(): LogLevel {\n const envLevel =\n typeof process !== \"undefined\" ? process.env.LOG_LEVEL : undefined;\n\n if (envLevel) {\n try {\n return parseLogLevel(envLevel);\n } catch (error) {\n // Fall through to default level when parsing fails.\n }\n }\n\n return typeof process !== \"undefined\" &&\n process.env.NODE_ENV === \"development\"\n ? \"debug\"\n : \"info\";\n}\n\n/**\n * Creates a LogTape sink that sends logs to Sentry's Logs product using Sentry.logger.\n *\n * Unlike @logtape/sentry's getSentrySink which uses captureException/captureMessage\n * (creating Issues), this sink uses Sentry.logger.* methods to send data to the\n * Logs product.\n *\n * Note: This uses @sentry/node logger API. Cloudflare Workers will need a separate\n * implementation using @sentry/cloudflare logger API.\n */\nfunction createSentryLogsSink(): Sink {\n return (record: LogRecord) => {\n // Check if Sentry.logger is available (may not be in all environments)\n if (!Sentry.logger) {\n return;\n }\n\n // Extract message from LogRecord\n let message = \"\";\n for (let i = 0; i < record.message.length; i++) {\n if (i % 2 === 0) {\n message += record.message[i];\n } else {\n // Template values - convert to string safely\n const value = record.message[i];\n message += typeof value === \"string\" ? value : coerceMessage(value);\n }\n }\n\n // Extract attributes from properties\n const attributes = record.properties as Record<string, unknown>;\n\n // Map LogTape levels to Sentry.logger methods\n // Note: Sentry.logger methods are fire-and-forget and handle errors gracefully\n switch (record.level) {\n case \"trace\":\n Sentry.logger.trace(message, attributes);\n break;\n case \"debug\":\n Sentry.logger.debug(message, attributes);\n break;\n case \"info\":\n Sentry.logger.info(message, attributes);\n break;\n case \"warning\":\n Sentry.logger.warn(message, attributes);\n break;\n case \"error\":\n Sentry.logger.error(message, attributes);\n break;\n case \"fatal\":\n Sentry.logger.fatal(message, attributes);\n break;\n default:\n Sentry.logger.info(message, attributes);\n }\n };\n}\n\nfunction ensureLoggingConfigured(): void {\n if (loggingConfigured) {\n return;\n }\n\n const consoleSink = getConsoleSink({\n formatter: getJsonLinesFormatter(),\n });\n const sentrySink = createSentryLogsSink();\n\n configureSync<SinkId, never>({\n reset: getConfig() !== null,\n sinks: {\n console: consoleSink,\n sentry: sentrySink,\n },\n loggers: [\n {\n category: [...ROOT_LOG_CATEGORY],\n sinks: [\"console\", \"sentry\"],\n lowestLevel: resolveLowestLevel(),\n },\n {\n category: [\"logtape\", \"meta\"],\n sinks: [\"console\"],\n lowestLevel: \"warning\",\n },\n {\n category: \"logtape\",\n sinks: [\"console\"],\n lowestLevel: \"error\",\n },\n ],\n });\n\n loggingConfigured = true;\n}\n\nexport type LogContext = Record<string, unknown>;\n\nexport type SentryLogContexts = Record<string, Record<string, unknown>>;\nexport type LogAttachments = Record<string, string | Uint8Array>;\n\nexport interface BaseLogOptions {\n contexts?: SentryLogContexts;\n extra?: LogContext;\n loggerScope?: string | readonly string[];\n}\n\nexport interface LogIssueOptions extends BaseLogOptions {\n attachments?: LogAttachments;\n}\n\nexport interface LogOptions extends BaseLogOptions {}\n\nexport function getLogger(\n scope: string | readonly string[],\n defaults?: LogContext,\n): Logger {\n ensureLoggingConfigured();\n\n const category = Array.isArray(scope) ? scope : [scope];\n const logger = getLogTapeLogger([...ROOT_LOG_CATEGORY, ...category]);\n\n return defaults ? logger.with(defaults) : logger;\n}\n\nconst ISSUE_LOGGER_SCOPE = [\"runtime\", \"issues\"] as const;\n\ninterface ParsedBaseOptions {\n contexts?: SentryLogContexts;\n extra?: LogContext;\n loggerScope?: string | readonly string[];\n}\n\ninterface ParsedLogIssueOptions extends ParsedBaseOptions {\n attachments?: LogAttachments;\n}\n\ninterface SerializedError {\n message: string;\n name?: string;\n stack?: string;\n cause?: SerializedError;\n}\n\nfunction isRecord(value: unknown): value is Record<string, unknown> {\n return typeof value === \"object\" && value !== null;\n}\n\nfunction isSentryContexts(value: unknown): value is SentryLogContexts {\n if (!isRecord(value)) {\n return false;\n }\n\n return Object.values(value).every((entry) => isRecord(entry));\n}\n\nfunction isBaseLogOptionsCandidate(value: unknown): value is BaseLogOptions {\n if (!isRecord(value)) {\n return false;\n }\n\n if (\"extra\" in value || \"loggerScope\" in value) {\n return true;\n }\n\n if (\"contexts\" in value) {\n const contexts = (value as { contexts?: unknown }).contexts;\n return contexts === undefined || isSentryContexts(contexts);\n }\n\n return false;\n}\n\nfunction isLogIssueOptionsCandidate(value: unknown): value is LogIssueOptions {\n return (\n isBaseLogOptionsCandidate(value) ||\n (isRecord(value) && \"attachments\" in value)\n );\n}\n\nfunction parseBaseOptions(\n contextsOrOptions?: SentryLogContexts | BaseLogOptions,\n): ParsedBaseOptions {\n if (isBaseLogOptionsCandidate(contextsOrOptions)) {\n const { contexts, extra, loggerScope } = contextsOrOptions;\n return {\n contexts,\n extra,\n loggerScope,\n };\n }\n\n if (isSentryContexts(contextsOrOptions)) {\n return { contexts: contextsOrOptions };\n }\n\n return {};\n}\n\nfunction parseLogIssueOptions(\n contextsOrOptions?: SentryLogContexts | LogIssueOptions,\n attachmentsArg?: LogAttachments,\n): ParsedLogIssueOptions {\n const base = parseBaseOptions(contextsOrOptions);\n\n const attachments = isLogIssueOptionsCandidate(contextsOrOptions)\n ? contextsOrOptions.attachments\n : undefined;\n\n return {\n ...base,\n attachments: attachments ?? attachmentsArg,\n };\n}\n\nfunction parseLogOptions(\n contextsOrOptions?: SentryLogContexts | LogOptions,\n): LogOptions {\n return parseBaseOptions(contextsOrOptions);\n}\n\nfunction safeJsonStringify(value: unknown): string | undefined {\n try {\n return JSON.stringify(value);\n } catch (error) {\n return undefined;\n }\n}\n\nfunction truncate(text: string, maxLength = 1024): string {\n if (text.length <= maxLength) {\n return text;\n }\n\n return `${text.slice(0, maxLength - 1)}…`;\n}\n\nfunction coerceMessage(value: unknown): string {\n if (typeof value === \"string\") {\n return value;\n }\n\n if (\n typeof value === \"number\" ||\n typeof value === \"boolean\" ||\n typeof value === \"bigint\"\n ) {\n return value.toString();\n }\n\n if (value === null || value === undefined) {\n return String(value);\n }\n\n const json = safeJsonStringify(value);\n if (json) {\n return truncate(json);\n }\n\n return Object.prototype.toString.call(value);\n}\n\nfunction serializeError(value: unknown, depth = 0): SerializedError {\n if (value instanceof Error) {\n const serialized: SerializedError = {\n message: value.message,\n };\n\n if (value.name && value.name !== \"Error\") {\n serialized.name = value.name;\n }\n\n if (typeof value.stack === \"string\") {\n serialized.stack = value.stack;\n }\n\n const hasCause =\n \"cause\" in (value as { cause?: unknown }) &&\n (value as { cause?: unknown }).cause !== undefined;\n\n if (hasCause && depth < 3) {\n const cause = (value as { cause?: unknown }).cause;\n serialized.cause = serializeError(cause, depth + 1);\n }\n\n return serialized;\n }\n\n return { message: coerceMessage(value) };\n}\n\nexport const logger = getLogger([]);\n\nconst DEFAULT_LOGGER_SCOPE: readonly string[] = [];\n\nfunction buildLogProperties(\n level: LogLevel,\n options: ParsedBaseOptions,\n serializedError?: SerializedError,\n): LogContext {\n const properties: LogContext = {\n severity: level,\n };\n\n if (serializedError) {\n properties.error = serializedError;\n }\n\n if (options.extra) {\n Object.assign(properties, options.extra);\n }\n\n if (options.contexts) {\n properties.sentryContexts = options.contexts;\n }\n\n return properties;\n}\n\nfunction logWithLevel(\n level: LogLevel,\n value: unknown,\n contextsOrOptions?: SentryLogContexts | LogOptions,\n): void {\n ensureLoggingConfigured();\n\n const options = parseLogOptions(contextsOrOptions);\n const serializedError =\n value instanceof Error ? serializeError(value) : undefined;\n const message = serializedError\n ? serializedError.message\n : coerceMessage(value);\n const scope = options.loggerScope ?? DEFAULT_LOGGER_SCOPE;\n const scopedLogger = getLogger(scope, { severity: level });\n\n const properties = buildLogProperties(level, options, serializedError);\n\n switch (level) {\n case \"trace\":\n scopedLogger.trace(message, () => properties);\n break;\n case \"debug\":\n scopedLogger.debug(message, () => properties);\n break;\n case \"info\":\n scopedLogger.info(message, () => properties);\n break;\n case \"warning\":\n scopedLogger.warn(message, () => properties);\n break;\n case \"error\":\n scopedLogger.error(message, () => properties);\n break;\n case \"fatal\":\n scopedLogger.fatal(message, () => properties);\n break;\n default:\n scopedLogger.info(message, () => properties);\n }\n}\n\nexport function logDebug(\n value: unknown,\n contextsOrOptions?: SentryLogContexts | LogOptions,\n): void {\n logWithLevel(\"debug\", value, contextsOrOptions);\n}\n\nexport function logInfo(\n value: unknown,\n contextsOrOptions?: SentryLogContexts | LogOptions,\n): void {\n logWithLevel(\"info\", value, contextsOrOptions);\n}\n\nexport function logWarn(\n value: unknown,\n contextsOrOptions?: SentryLogContexts | LogOptions,\n): void {\n logWithLevel(\"warning\", value, contextsOrOptions);\n}\n\nexport function logError(\n value: unknown,\n contextsOrOptions?: SentryLogContexts | LogOptions,\n): void {\n logWithLevel(\"error\", value, contextsOrOptions);\n}\n\nexport function logIssue(\n error: Error | unknown,\n contexts?: SentryLogContexts,\n attachments?: LogAttachments,\n): string | undefined;\nexport function logIssue(\n error: Error | unknown,\n options: LogIssueOptions,\n): string | undefined;\nexport function logIssue(\n message: string,\n contexts?: SentryLogContexts,\n attachments?: LogAttachments,\n): string | undefined;\nexport function logIssue(\n message: string,\n options: LogIssueOptions,\n): string | undefined;\nexport function logIssue(\n error: unknown,\n contextsOrOptions?: SentryLogContexts | LogIssueOptions,\n attachmentsArg?: LogAttachments,\n): string | undefined {\n ensureLoggingConfigured();\n\n const options = parseLogIssueOptions(contextsOrOptions, attachmentsArg);\n const eventId = withScope((scopeInstance) => {\n if (options.contexts) {\n for (const [key, context] of Object.entries(options.contexts)) {\n scopeInstance.setContext(key, context);\n }\n }\n\n if (options.extra) {\n scopeInstance.setContext(\"log\", options.extra);\n }\n\n if (options.attachments) {\n for (const [key, data] of Object.entries(options.attachments)) {\n scopeInstance.addAttachment({\n data,\n filename: key,\n });\n }\n }\n\n const captureLevel = \"error\" as const;\n\n return typeof error === \"string\"\n ? captureMessage(error, {\n contexts: options.contexts,\n level: captureLevel,\n })\n : captureException(error, {\n contexts: options.contexts,\n level: captureLevel,\n });\n });\n\n const { attachments, ...baseOptions } = options;\n const extra: LogContext = {\n ...(baseOptions.extra ?? {}),\n ...(attachments && Object.keys(attachments).length > 0\n ? { attachments: Object.keys(attachments) }\n : {}),\n ...(eventId ? { eventId } : {}),\n };\n\n logError(error, {\n ...baseOptions,\n extra,\n loggerScope: baseOptions.loggerScope ?? ISSUE_LOGGER_SCOPE,\n });\n\n return eventId;\n}\n"],"mappings":";;;;;;AAsBA,MAAM,oBAAoB,CAAC,UAAU,KAAM;AAI3C,IAAI,oBAAoB;AAExB,SAAS,qBAA+B;CACtC,MAAM,kBACG,YAAY,cAAc,QAAQ,IAAI;AAE/C,KAAI,SACF,KAAI;AACF,SAAO,qCAAc,SAAS;CAC/B,SAAQ,OAAO,CAEf;AAGH,eAAc,YAAY,eACxB,QAAQ,IAAI,aAAa,gBACvB,UACA;AACL;;;;;;;;;;;AAYD,SAAS,uBAA6B;AACpC,QAAO,CAACA,WAAsB;AAE5B,OAAKC,cAAO,OACV;EAIF,IAAI,UAAU;AACd,OAAK,IAAI,IAAI,GAAG,IAAI,OAAO,QAAQ,QAAQ,IACzC,KAAI,IAAI,MAAM,EACZ,YAAW,OAAO,QAAQ;OACrB;GAEL,MAAM,QAAQ,OAAO,QAAQ;AAC7B,qBAAkB,UAAU,WAAW,QAAQ,cAAc,MAAM;EACpE;EAIH,MAAM,aAAa,OAAO;AAI1B,UAAQ,OAAO,OAAf;GACE,KAAK;AACH,kBAAO,OAAO,MAAM,SAAS,WAAW;AACxC;GACF,KAAK;AACH,kBAAO,OAAO,MAAM,SAA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AAI,YAAY,SAAS,CAAE;EAC3B,GAAI,eAAe,OAAO,KAAK,YAAY,CAAC,SAAS,IACjD,EAAE,aAAa,OAAO,KAAK,YAAY,CAAE,IACzC,CAAE;EACN,GAAI,UAAU,EAAE,QAAS,IAAG,CAAE;CAC/B;AAED,UAAS,OAAO;EACd,GAAG;EACH;EACA,aAAa,YAAY,eAAe;CACzC,EAAC;AAEF,QAAO;AACR"}
@@ -1,5 +1,5 @@
1
- const require_chunk = require('./chunk-DWy1uDak.cjs');
2
- const require_version = require('./version-DZBMB6XD.cjs');
1
+ const require_chunk = require('./chunk-CUT6urMc.cjs');
2
+ const require_version = require('./version-CPcX-30c.cjs');
3
3
  const __ai_sdk_openai = require_chunk.__toESM(require("@ai-sdk/openai"));
4
4
 
5
5
  //#region src/internal/agents/openai-provider.ts
@@ -57,4 +57,4 @@ Object.defineProperty(exports, 'setOpenAIBaseUrl', {
57
57
  return setOpenAIBaseUrl;
58
58
  }
59
59
  });
60
- //# sourceMappingURL=openai-provider-CdGMI-ue.cjs.map
60
+ //# sourceMappingURL=openai-provider-B7uvGxoI.cjs.map