@sentry/server-utils 11.9.0 → 11.10.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 (281) hide show
  1. package/README.md +5 -1
  2. package/build/THIRD-PARTY-LICENSES.txt +38 -38
  3. package/build/cjs/ai/anthropic-ai/index.js +6 -3
  4. package/build/cjs/ai/anthropic-ai/index.js.map +1 -1
  5. package/build/cjs/ai/anthropic-ai/streaming.js +17 -9
  6. package/build/cjs/ai/anthropic-ai/streaming.js.map +1 -1
  7. package/build/cjs/ai/anthropic-ai/tool-runner.js +11 -4
  8. package/build/cjs/ai/anthropic-ai/tool-runner.js.map +1 -1
  9. package/build/cjs/ai/flue/index.js +36 -1
  10. package/build/cjs/ai/flue/index.js.map +1 -1
  11. package/build/cjs/ai/google-genai/index.js +18 -3
  12. package/build/cjs/ai/google-genai/index.js.map +1 -1
  13. package/build/cjs/ai/langchain/constants.js +2 -0
  14. package/build/cjs/ai/langchain/constants.js.map +1 -1
  15. package/build/cjs/ai/langchain/index.js +35 -8
  16. package/build/cjs/ai/langchain/index.js.map +1 -1
  17. package/build/cjs/ai/openai/index.js +18 -4
  18. package/build/cjs/ai/openai/index.js.map +1 -1
  19. package/build/cjs/ai/openai/streaming.js +40 -9
  20. package/build/cjs/ai/openai/streaming.js.map +1 -1
  21. package/build/cjs/ai/pi-durable/constants.js +2 -0
  22. package/build/cjs/ai/pi-durable/constants.js.map +1 -1
  23. package/build/cjs/ai/pi-durable/index.js +12 -2
  24. package/build/cjs/ai/pi-durable/index.js.map +1 -1
  25. package/build/cjs/ai/pi-durable/runs.js +14 -1
  26. package/build/cjs/ai/pi-durable/runs.js.map +1 -1
  27. package/build/cjs/ai/workers-ai/utils.js +39 -1
  28. package/build/cjs/ai/workers-ai/utils.js.map +1 -1
  29. package/build/cjs/index.js +2 -0
  30. package/build/cjs/index.js.map +1 -1
  31. package/build/cjs/index.no-diagnostic-channels.js +2 -0
  32. package/build/cjs/index.no-diagnostic-channels.js.map +1 -1
  33. package/build/cjs/integrations/amqplib.js +2 -2
  34. package/build/cjs/integrations/amqplib.js.map +1 -1
  35. package/build/cjs/integrations/anthropic.js +3 -0
  36. package/build/cjs/integrations/anthropic.js.map +1 -1
  37. package/build/cjs/integrations/aws-sdk/constants.js +2 -2
  38. package/build/cjs/integrations/aws-sdk/constants.js.map +1 -1
  39. package/build/cjs/integrations/aws-sdk/index.js +8 -4
  40. package/build/cjs/integrations/aws-sdk/index.js.map +1 -1
  41. package/build/cjs/integrations/firebase/firestore.js +1 -1
  42. package/build/cjs/integrations/firebase/firestore.js.map +1 -1
  43. package/build/cjs/integrations/firebase/functions.js +1 -1
  44. package/build/cjs/integrations/firebase/functions.js.map +1 -1
  45. package/build/cjs/integrations/hapi/hapi-error-handler.js +1 -1
  46. package/build/cjs/integrations/hapi/hapi-error-handler.js.map +1 -1
  47. package/build/cjs/integrations/hapi/hapi-types.js +0 -7
  48. package/build/cjs/integrations/hapi/hapi-types.js.map +1 -1
  49. package/build/cjs/integrations/hapi/hapi-utils.js +26 -21
  50. package/build/cjs/integrations/hapi/hapi-utils.js.map +1 -1
  51. package/build/cjs/integrations/hono/honoIntegration.js +11 -18
  52. package/build/cjs/integrations/hono/honoIntegration.js.map +1 -1
  53. package/build/cjs/integrations/hono/isMiddleware.js +8 -0
  54. package/build/cjs/integrations/hono/isMiddleware.js.map +1 -1
  55. package/build/cjs/integrations/hono/matchResult.js +18 -0
  56. package/build/cjs/integrations/hono/matchResult.js.map +1 -0
  57. package/build/cjs/integrations/hono/patchRoute.js +2 -10
  58. package/build/cjs/integrations/hono/patchRoute.js.map +1 -1
  59. package/build/cjs/integrations/kafkajs/spans.js +2 -2
  60. package/build/cjs/integrations/kafkajs/spans.js.map +1 -1
  61. package/build/cjs/integrations/vercel-ai/index.js +2 -0
  62. package/build/cjs/integrations/vercel-ai/index.js.map +1 -1
  63. package/build/cjs/integrations/vercel-ai/vercel-ai-dc-subscriber.js +25 -12
  64. package/build/cjs/integrations/vercel-ai/vercel-ai-dc-subscriber.js.map +1 -1
  65. package/build/cjs/integrations/vercel-ai/vercel-ai-tool-telemetry.js +40 -0
  66. package/build/cjs/integrations/vercel-ai/vercel-ai-tool-telemetry.js.map +1 -0
  67. package/build/cjs/orchestrion/config/anthropic-ai.js +8 -1
  68. package/build/cjs/orchestrion/config/anthropic-ai.js.map +1 -1
  69. package/build/cjs/orchestrion/config/hono.js +2 -0
  70. package/build/cjs/orchestrion/config/hono.js.map +1 -1
  71. package/build/cjs/orchestrion/config/openai-compatible.js +3 -3
  72. package/build/cjs/orchestrion/config/openai-compatible.js.map +1 -1
  73. package/build/cjs/orchestrion/config/together-ai.js +8 -4
  74. package/build/cjs/orchestrion/config/together-ai.js.map +1 -1
  75. package/build/cjs/orchestrion/instrumentation.js +7 -0
  76. package/build/cjs/orchestrion/instrumentation.js.map +1 -1
  77. package/build/cjs/utils/monitorStream.js +42 -0
  78. package/build/cjs/utils/monitorStream.js.map +1 -0
  79. package/build/cjs/utils/wrapServerRequestHandler.js +180 -0
  80. package/build/cjs/utils/wrapServerRequestHandler.js.map +1 -0
  81. package/build/cjs/vendored/@apm-js-collab/code-transformer/index.js.map +1 -1
  82. package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/index.js.map +1 -1
  83. package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/matcher.js.map +1 -1
  84. package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/transformer.js.map +1 -1
  85. package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/transforms.js.map +1 -1
  86. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/bun.js.map +1 -1
  87. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/core-dC9TN3Ev.js.map +1 -1
  88. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/esbuild.js.map +1 -1
  89. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/instrumentation-serde-C-Xxv-jj.js.map +1 -1
  90. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/rollup-OTS4ktWb.js.map +1 -1
  91. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/vite.js.map +1 -1
  92. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/webpack-loader-factory.js.map +1 -1
  93. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/webpack.js.map +1 -1
  94. package/build/cjs/vendored/astring/dist/astring.js.map +1 -1
  95. package/build/cjs/vendored/esquery/dist/esquery.esm.min.js.map +1 -1
  96. package/build/cjs/vendored/meriyah/dist/meriyah.js.map +1 -1
  97. package/build/cjs/vendored/meriyah/dist/meriyah2.js.map +1 -1
  98. package/build/cjs/vendored/module-details-from-path/index.js.map +1 -1
  99. package/build/cjs/vendored/semifies/index.js.map +1 -1
  100. package/build/cjs/vendored/source-map/lib/array-set.js.map +1 -1
  101. package/build/cjs/vendored/source-map/lib/base64-vlq.js.map +1 -1
  102. package/build/cjs/vendored/source-map/lib/base64.js.map +1 -1
  103. package/build/cjs/vendored/source-map/lib/binary-search.js.map +1 -1
  104. package/build/cjs/vendored/source-map/lib/mapping-list.js.map +1 -1
  105. package/build/cjs/vendored/source-map/lib/quick-sort.js.map +1 -1
  106. package/build/cjs/vendored/source-map/lib/source-map-consumer.js.map +1 -1
  107. package/build/cjs/vendored/source-map/lib/source-map-generator.js.map +1 -1
  108. package/build/cjs/vendored/source-map/lib/source-node.js.map +1 -1
  109. package/build/cjs/vendored/source-map/lib/util.js.map +1 -1
  110. package/build/cjs/vendored/source-map/source-map.js.map +1 -1
  111. package/build/esm/ai/anthropic-ai/index.js +7 -4
  112. package/build/esm/ai/anthropic-ai/index.js.map +1 -1
  113. package/build/esm/ai/anthropic-ai/streaming.js +17 -9
  114. package/build/esm/ai/anthropic-ai/streaming.js.map +1 -1
  115. package/build/esm/ai/anthropic-ai/tool-runner.js +10 -4
  116. package/build/esm/ai/anthropic-ai/tool-runner.js.map +1 -1
  117. package/build/esm/ai/flue/index.js +37 -2
  118. package/build/esm/ai/flue/index.js.map +1 -1
  119. package/build/esm/ai/google-genai/index.js +18 -3
  120. package/build/esm/ai/google-genai/index.js.map +1 -1
  121. package/build/esm/ai/langchain/constants.js +2 -1
  122. package/build/esm/ai/langchain/constants.js.map +1 -1
  123. package/build/esm/ai/langchain/index.js +37 -10
  124. package/build/esm/ai/langchain/index.js.map +1 -1
  125. package/build/esm/ai/openai/index.js +19 -5
  126. package/build/esm/ai/openai/index.js.map +1 -1
  127. package/build/esm/ai/openai/streaming.js +40 -9
  128. package/build/esm/ai/openai/streaming.js.map +1 -1
  129. package/build/esm/ai/pi-durable/constants.js +2 -1
  130. package/build/esm/ai/pi-durable/constants.js.map +1 -1
  131. package/build/esm/ai/pi-durable/index.js +14 -4
  132. package/build/esm/ai/pi-durable/index.js.map +1 -1
  133. package/build/esm/ai/pi-durable/runs.js +15 -3
  134. package/build/esm/ai/pi-durable/runs.js.map +1 -1
  135. package/build/esm/ai/workers-ai/utils.js +41 -3
  136. package/build/esm/ai/workers-ai/utils.js.map +1 -1
  137. package/build/esm/index.js +1 -0
  138. package/build/esm/index.js.map +1 -1
  139. package/build/esm/index.no-diagnostic-channels.js +1 -0
  140. package/build/esm/index.no-diagnostic-channels.js.map +1 -1
  141. package/build/esm/integrations/amqplib.js +2 -2
  142. package/build/esm/integrations/amqplib.js.map +1 -1
  143. package/build/esm/integrations/anthropic.js +4 -1
  144. package/build/esm/integrations/anthropic.js.map +1 -1
  145. package/build/esm/integrations/aws-sdk/constants.js +2 -2
  146. package/build/esm/integrations/aws-sdk/constants.js.map +1 -1
  147. package/build/esm/integrations/aws-sdk/index.js +9 -5
  148. package/build/esm/integrations/aws-sdk/index.js.map +1 -1
  149. package/build/esm/integrations/firebase/firestore.js +1 -1
  150. package/build/esm/integrations/firebase/firestore.js.map +1 -1
  151. package/build/esm/integrations/firebase/functions.js +1 -1
  152. package/build/esm/integrations/firebase/functions.js.map +1 -1
  153. package/build/esm/integrations/hapi/hapi-error-handler.js +1 -1
  154. package/build/esm/integrations/hapi/hapi-error-handler.js.map +1 -1
  155. package/build/esm/integrations/hapi/hapi-types.js +1 -7
  156. package/build/esm/integrations/hapi/hapi-types.js.map +1 -1
  157. package/build/esm/integrations/hapi/hapi-utils.js +29 -24
  158. package/build/esm/integrations/hapi/hapi-utils.js.map +1 -1
  159. package/build/esm/integrations/hono/honoIntegration.js +12 -19
  160. package/build/esm/integrations/hono/honoIntegration.js.map +1 -1
  161. package/build/esm/integrations/hono/isMiddleware.js +8 -1
  162. package/build/esm/integrations/hono/isMiddleware.js.map +1 -1
  163. package/build/esm/integrations/hono/matchResult.js +16 -0
  164. package/build/esm/integrations/hono/matchResult.js.map +1 -0
  165. package/build/esm/integrations/hono/patchRoute.js +3 -11
  166. package/build/esm/integrations/hono/patchRoute.js.map +1 -1
  167. package/build/esm/integrations/kafkajs/spans.js +2 -2
  168. package/build/esm/integrations/kafkajs/spans.js.map +1 -1
  169. package/build/esm/integrations/vercel-ai/index.js +2 -0
  170. package/build/esm/integrations/vercel-ai/index.js.map +1 -1
  171. package/build/esm/integrations/vercel-ai/vercel-ai-dc-subscriber.js +25 -13
  172. package/build/esm/integrations/vercel-ai/vercel-ai-dc-subscriber.js.map +1 -1
  173. package/build/esm/integrations/vercel-ai/vercel-ai-tool-telemetry.js +38 -0
  174. package/build/esm/integrations/vercel-ai/vercel-ai-tool-telemetry.js.map +1 -0
  175. package/build/esm/orchestrion/config/anthropic-ai.js +8 -1
  176. package/build/esm/orchestrion/config/anthropic-ai.js.map +1 -1
  177. package/build/esm/orchestrion/config/hono.js +2 -0
  178. package/build/esm/orchestrion/config/hono.js.map +1 -1
  179. package/build/esm/orchestrion/config/openai-compatible.js +3 -3
  180. package/build/esm/orchestrion/config/openai-compatible.js.map +1 -1
  181. package/build/esm/orchestrion/config/together-ai.js +8 -4
  182. package/build/esm/orchestrion/config/together-ai.js.map +1 -1
  183. package/build/esm/orchestrion/instrumentation.js +8 -1
  184. package/build/esm/orchestrion/instrumentation.js.map +1 -1
  185. package/build/esm/package.json +1 -1
  186. package/build/esm/utils/monitorStream.js +40 -0
  187. package/build/esm/utils/monitorStream.js.map +1 -0
  188. package/build/esm/utils/wrapServerRequestHandler.js +178 -0
  189. package/build/esm/utils/wrapServerRequestHandler.js.map +1 -0
  190. package/build/esm/vendored/@apm-js-collab/code-transformer/index.js.map +1 -1
  191. package/build/esm/vendored/@apm-js-collab/code-transformer/lib/index.js.map +1 -1
  192. package/build/esm/vendored/@apm-js-collab/code-transformer/lib/matcher.js.map +1 -1
  193. package/build/esm/vendored/@apm-js-collab/code-transformer/lib/transformer.js.map +1 -1
  194. package/build/esm/vendored/@apm-js-collab/code-transformer/lib/transforms.js.map +1 -1
  195. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/bun.js.map +1 -1
  196. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/core-dC9TN3Ev.js.map +1 -1
  197. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/esbuild.js.map +1 -1
  198. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/instrumentation-serde-C-Xxv-jj.js.map +1 -1
  199. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/rollup-OTS4ktWb.js.map +1 -1
  200. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/vite.js.map +1 -1
  201. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/webpack-loader-factory.js.map +1 -1
  202. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/webpack.js.map +1 -1
  203. package/build/esm/vendored/astring/dist/astring.js.map +1 -1
  204. package/build/esm/vendored/esquery/dist/esquery.esm.min.js.map +1 -1
  205. package/build/esm/vendored/meriyah/dist/meriyah.js.map +1 -1
  206. package/build/esm/vendored/meriyah/dist/meriyah2.js.map +1 -1
  207. package/build/esm/vendored/module-details-from-path/index.js.map +1 -1
  208. package/build/esm/vendored/semifies/index.js.map +1 -1
  209. package/build/esm/vendored/source-map/lib/array-set.js.map +1 -1
  210. package/build/esm/vendored/source-map/lib/base64-vlq.js.map +1 -1
  211. package/build/esm/vendored/source-map/lib/base64.js.map +1 -1
  212. package/build/esm/vendored/source-map/lib/binary-search.js.map +1 -1
  213. package/build/esm/vendored/source-map/lib/mapping-list.js.map +1 -1
  214. package/build/esm/vendored/source-map/lib/quick-sort.js.map +1 -1
  215. package/build/esm/vendored/source-map/lib/source-map-consumer.js.map +1 -1
  216. package/build/esm/vendored/source-map/lib/source-map-generator.js.map +1 -1
  217. package/build/esm/vendored/source-map/lib/source-node.js.map +1 -1
  218. package/build/esm/vendored/source-map/lib/util.js.map +1 -1
  219. package/build/esm/vendored/source-map/source-map.js.map +1 -1
  220. package/build/types/ai/anthropic-ai/index.d.ts.map +1 -1
  221. package/build/types/ai/anthropic-ai/streaming.d.ts.map +1 -1
  222. package/build/types/ai/anthropic-ai/tool-runner.d.ts +4 -2
  223. package/build/types/ai/anthropic-ai/tool-runner.d.ts.map +1 -1
  224. package/build/types/ai/anthropic-ai/types.d.ts +3 -0
  225. package/build/types/ai/anthropic-ai/types.d.ts.map +1 -1
  226. package/build/types/ai/flue/index.d.ts.map +1 -1
  227. package/build/types/ai/google-genai/index.d.ts.map +1 -1
  228. package/build/types/ai/langchain/constants.d.ts +1 -0
  229. package/build/types/ai/langchain/constants.d.ts.map +1 -1
  230. package/build/types/ai/langchain/index.d.ts.map +1 -1
  231. package/build/types/ai/openai/index.d.ts.map +1 -1
  232. package/build/types/ai/openai/streaming.d.ts.map +1 -1
  233. package/build/types/ai/openai/types.d.ts +1 -1
  234. package/build/types/ai/openai/types.d.ts.map +1 -1
  235. package/build/types/ai/pi-durable/constants.d.ts +2 -0
  236. package/build/types/ai/pi-durable/constants.d.ts.map +1 -1
  237. package/build/types/ai/pi-durable/index.d.ts.map +1 -1
  238. package/build/types/ai/pi-durable/runs.d.ts +13 -3
  239. package/build/types/ai/pi-durable/runs.d.ts.map +1 -1
  240. package/build/types/ai/pi-durable/types.d.ts +5 -0
  241. package/build/types/ai/pi-durable/types.d.ts.map +1 -1
  242. package/build/types/ai/workers-ai/utils.d.ts +1 -1
  243. package/build/types/ai/workers-ai/utils.d.ts.map +1 -1
  244. package/build/types/exports.d.ts +2 -0
  245. package/build/types/exports.d.ts.map +1 -1
  246. package/build/types/integrations/anthropic.d.ts.map +1 -1
  247. package/build/types/integrations/aws-sdk/constants.d.ts +2 -2
  248. package/build/types/integrations/aws-sdk/constants.d.ts.map +1 -1
  249. package/build/types/integrations/aws-sdk/index.d.ts.map +1 -1
  250. package/build/types/integrations/hapi/hapi-types.d.ts +2 -6
  251. package/build/types/integrations/hapi/hapi-types.d.ts.map +1 -1
  252. package/build/types/integrations/hapi/hapi-utils.d.ts +6 -2
  253. package/build/types/integrations/hapi/hapi-utils.d.ts.map +1 -1
  254. package/build/types/integrations/hono/honoIntegration.d.ts.map +1 -1
  255. package/build/types/integrations/hono/honoTypes.d.ts +2 -2
  256. package/build/types/integrations/hono/honoTypes.d.ts.map +1 -1
  257. package/build/types/integrations/hono/isMiddleware.d.ts +9 -1
  258. package/build/types/integrations/hono/isMiddleware.d.ts.map +1 -1
  259. package/build/types/integrations/hono/matchResult.d.ts +7 -0
  260. package/build/types/integrations/hono/matchResult.d.ts.map +1 -0
  261. package/build/types/integrations/hono/patchRoute.d.ts +1 -8
  262. package/build/types/integrations/hono/patchRoute.d.ts.map +1 -1
  263. package/build/types/integrations/vercel-ai/index.d.ts.map +1 -1
  264. package/build/types/integrations/vercel-ai/vercel-ai-dc-subscriber.d.ts +7 -1
  265. package/build/types/integrations/vercel-ai/vercel-ai-dc-subscriber.d.ts.map +1 -1
  266. package/build/types/integrations/vercel-ai/vercel-ai-tool-telemetry.d.ts +8 -0
  267. package/build/types/integrations/vercel-ai/vercel-ai-tool-telemetry.d.ts.map +1 -0
  268. package/build/types/orchestrion/channels.d.ts +1 -0
  269. package/build/types/orchestrion/channels.d.ts.map +1 -1
  270. package/build/types/orchestrion/config/anthropic-ai.d.ts +1 -2
  271. package/build/types/orchestrion/config/anthropic-ai.d.ts.map +1 -1
  272. package/build/types/orchestrion/config/hono.d.ts.map +1 -1
  273. package/build/types/orchestrion/config/openai-compatible.d.ts +4 -0
  274. package/build/types/orchestrion/config/openai-compatible.d.ts.map +1 -1
  275. package/build/types/orchestrion/config/together-ai.d.ts.map +1 -1
  276. package/build/types/orchestrion/instrumentation.d.ts.map +1 -1
  277. package/build/types/utils/monitorStream.d.ts +3 -0
  278. package/build/types/utils/monitorStream.d.ts.map +1 -0
  279. package/build/types/utils/wrapServerRequestHandler.d.ts +38 -0
  280. package/build/types/utils/wrapServerRequestHandler.d.ts.map +1 -0
  281. package/package.json +6 -7
@@ -1,4 +1,4 @@
1
- import type { HapiRequest, ServerRequestExtType, ServerRoute } from './hapi-types';
1
+ import type { HapiRequest, ServerRequestExtType } from './hapi-types';
2
2
  /**
3
3
  * Default function deciding whether an error should be sent to Sentry.
4
4
  *
@@ -14,7 +14,11 @@ interface SpanMetadata {
14
14
  name: string;
15
15
  }
16
16
  /** Build the span name and attributes for a Hapi route. */
17
- export declare const getRouteMetadata: (route: ServerRoute, pluginName?: string) => SpanMetadata;
17
+ export declare const getRouteMetadata: ({ path, method, pluginName, }: {
18
+ path: string;
19
+ method?: string;
20
+ pluginName?: string;
21
+ }) => SpanMetadata;
18
22
  /** Build the span name and attributes for a Hapi server extension. */
19
23
  export declare const getExtMetadata: (extPoint: ServerRequestExtType, pluginName?: string, methodName?: string) => SpanMetadata;
20
24
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"hapi-utils.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hapi/hapi-utils.ts"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EACV,WAAW,EAOX,oBAAoB,EAC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AM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,KAAG,YAwBH,CAAC;AAEF,sEAAsE;AACtE,eAAO,MAAM,cAAc,aACf,oBAAoB,eACjB,MAAM,eACN,MAAM,KAClB,YAoBF,CAAC;AAkGF;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAS7E;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAwB3E"}
@@ -1 +1 @@
1
- {"version":3,"file":"honoIntegration.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/honoIntegration.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAYhE,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAM3D,MAAM,WAAW,sBAAuB,SAAQ,2BAA2B;CAAG;AAS9E;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAC,CAAC,SAAS,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,OAAO,GAAE,sBAA2B,GAAG,iBAAiB,CAOnH;AA0ID;;;;;;;;;;GAUG;AACH,eAAO,MAAM,eAAe;;CAAsC,CAAC"}
1
+ {"version":3,"file":"honoIntegration.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/honoIntegration.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,GAAG,EAAE,IAAI,EAAkB,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAahF,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAM3D,MAAM,WAAW,sBAAuB,SAAQ,2BAA2B;CAAG;AAS9E;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAC,CAAC,SAAS,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,OAAO,GAAE,sBAA2B,GAAG,iBAAiB,CAOnH;AAkHD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,eAAe;;CAAsC,CAAC"}
@@ -20,13 +20,13 @@ export interface HonoRoute {
20
20
  path: string;
21
21
  handler: (...args: any[]) => any;
22
22
  }
23
+ export type MatchedHandler = [pair: [handler: HonoRoute['handler'], route: HonoRoute], paramIndexMap: unknown];
23
24
  export interface HonoRequest {
24
25
  raw: Request;
25
26
  method: string;
26
27
  path: string;
27
28
  routeIndex: number;
28
- matchedRoutes: HonoRoute[];
29
- routePath: string;
29
+ matchedRoutes?: HonoRoute[];
30
30
  [key: string]: any;
31
31
  }
32
32
  export interface Context {
@@ -1 +1 @@
1
- {"version":3,"file":"honoTypes.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/honoTypes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAIH,MAAM,WAAW,GAAG;IAClB,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,SAAS,CAAC,EAAE,GAAG,CAAC;CACjB;AAED,MAAM,MAAM,IAAI,GAAG,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;AAEvC,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IAIb,OAAO,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC;CAClC;AAED,MAAM,WAAW,WAAW;IAC1B,GAAG,EAAE,OAAO,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IAGnB,aAAa,EAAE,SAAS,EAAE,CAAC;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,CAAC,GAAG,EAAE,MAAM,GAAG,GA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E,SAAS,CAAC,SAAS,CAAC,EAAE,KAAK,EAAE,SAAS,CAAC,EAAE,aAAa,EAAE,OAAO,CAAC,CAAC;AAE/G,MAAM,WAAW,WAAW;IAC1B,GAAG,EAAE,OAAO,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IAEnB,aAAa,CAAC,EAAE,SAAS,EAAE,CAAC;IAC5B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,MAAM,WAAW,OAAO;IACtB,GAAG,EAAE,WAAW,CAAC;IACjB,GAAG,EAAE,OAAO,CAAC;IACb,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,KAAK,EAAE;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC;IAC5B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAID,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,KAAK,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC,CAAC;AAE3F,MAAM,WAAW,IAAI,CAAC,CAAC,SAAS,GAAG,GAAG,GAAG;IAEvC,GAAG,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC,CAAC,CAAC,CAAC;IACjC,OAAO,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;IAC1D,MAAM,EAAE,SAAS,EAAE,CAAC;IACpB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB"}
@@ -1,3 +1,4 @@
1
+ import type { HonoRoute } from './honoTypes';
1
2
  /**
2
3
  * Infers whether a Hono route entry is a middleware (rather than a route handler).
3
4
  *
@@ -7,7 +8,14 @@
7
8
  * https://github.com/honojs/hono/blob/97c6fe1f12298c715eb7b2da65b4b6e0d81682bb/src/utils/handler.ts#L8
8
9
  *
9
10
  * This is only one signal — callers that must classify inline middleware sharing a method+path with
10
- * their handler (e.g. `wrapSubAppMiddleware`) additionally need positional information.
11
+ * their handler additionally need positional information (`getMiddlewareFlags`).
11
12
  */
12
13
  export declare function isMiddleware(handler: unknown): boolean;
14
+ /**
15
+ * Tells for each route if it is a middleware. Hono has no flag for this. In a method+path group, the
16
+ * last handler is the route handler (`app.get('/path', mw, handler)`). `.use()` adds middleware with
17
+ * method `ALL` and no route handler, so for `ALL` routes the arity also counts. Arity alone is not
18
+ * enough, because a route handler can declare an unused `next`.
19
+ */
20
+ export declare function getMiddlewareFlags(routes: HonoRoute[]): boolean[];
13
21
  //# sourceMappingURL=isMiddleware.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"isMiddleware.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/isMiddleware.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;GAUG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAStD"}
1
+ {"version":3,"file":"isMiddleware.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/isMiddleware.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAO7C;;;;;;;;;;GAUG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAStD;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,SAAS,EAAE,GAAG,OAAO,EAAE,CAQjE"}
@@ -0,0 +1,7 @@
1
+ import type { MatchedHandler } from './honoTypes';
2
+ /**
3
+ * Checks the entry shape that `compose` and `hono/route` read. The match result is a Hono internal, so
4
+ * the SDK leaves other shapes alone.
5
+ */
6
+ export declare function isMatchedHandlerList(handlers: unknown): handlers is MatchedHandler[];
7
+ //# sourceMappingURL=matchResult.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"matchResult.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/matchResult.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAkBlD;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,OAAO,GAAG,QAAQ,IAAI,cAAc,EAAE,CAEpF"}
@@ -22,14 +22,7 @@ type HonoBaseProto = {
22
22
  */
23
23
  export declare function installRouteHookOnPrototype(honoBaseProto: HonoBaseProto): RouteHookHandle;
24
24
  /**
25
- * Identifies middleware handlers in a sub-app's flat routes array and wraps them in spans.
26
- *
27
- * Heuristics (since Hono has no "isMiddleware" flag):
28
- * 1. Position: `app.get('/path', mw, handler)` produces entries with the same method+path.
29
- * All but the LAST are middleware (they call `next()`).
30
- * 2. Arity (# of params) for method 'ALL': `.use()` handlers always have 2+ params (context, next),
31
- * while `.all()` route handlers typically have 1 (`context` only).
32
- * See: https://github.com/honojs/hono/blob/18fe604c8cefc2628240651b1af219692e1918c1/src/hono-base.ts#L156-L168
25
+ * Wraps the middleware handlers of a sub-app's routes in spans.
33
26
  */
34
27
  export declare function wrapSubAppMiddleware(routes: HonoRoute[]): void;
35
28
  //# sourceMappingURL=patchRoute.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"patchRoute.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/patchRoute.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAKnD,YAAY,EAAE,SAAS,EAAE,CAAC;AAG1B,KAAK,OAAO,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC;AAEzB,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,iBAAiB,EAAE,MAAM,GAAG,CAAC,OAAO,CAAC,CAAC;CACvC,CAAC;AAEF,KAAK,aAAa,GAAG;IACnB,KAAK,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,KAAK,OAAO,CAAC;IAChD,mBAAmB,CAAC,EAAE,eAAe,CAAC;CACvC,CAAC;AAiCF;;;;;;;;;;GAUG;AACH,wBAAgB,2BAA2B,CAAC,aAAa,EAAE,aAAa,GAAG,eAAe,CAqCzF;AAED;;;;;;;;;GASG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,CAmB9D"}
1
+ {"version":3,"file":"patchRoute.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/patchRoute.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAKnD,YAAY,EAAE,SAAS,EAAE,CAAC;AAG1B,KAAK,OAAO,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC;AAEzB,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,iBAAiB,EAAE,MAAM,GAAG,CAAC,OAAO,CAAC,CAAC;CACvC,CAAC;AAEF,KAAK,aAAa,GAAG;IACnB,KAAK,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,KAAK,OAAO,CAAC;IAChD,mBAAmB,CAAC,EAAE,eAAe,CAAC;CACvC,CAAC;AAiCF;;;;;;;;;;GAUG;AACH,wBAAgB,2BAA2B,CAAC,aAAa,EAAE,aAAa,GAAG,eAAe,CAqCzF;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,CAO9D"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/integrations/vercel-ai/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAOxD,6CAA6C;AAC7C,MAAM,MAAM,eAAe,GAAG,YAAY,CAAC;AAuB3C;;;;GAIG;AACH,eAAO,MAAM,mBAAmB;;CAA0C,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/integrations/vercel-ai/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAQxD,6CAA6C;AAC7C,MAAM,MAAM,eAAe,GAAG,YAAY,CAAC;AAwB3C;;;;GAIG;AACH,eAAO,MAAM,mBAAmB;;CAA0C,CAAC"}
@@ -1,7 +1,13 @@
1
1
  import type { Span } from '@sentry/core';
2
2
  import type { TracingChannel } from 'node:diagnostics_channel';
3
- import type { GenAiOptions } from '../../ai/core/utils';
3
+ import { type GenAiOptions } from '../../ai/core/utils';
4
4
  import { type StreamedModelCallResult } from './util';
5
+ /**
6
+ * The single tracing channel the `ai` package (>= 7) publishes all telemetry lifecycle events to
7
+ * via `node:diagnostics_channel`. Events are discriminated by their `type` field.
8
+ * @see https://github.com/vercel/ai/pull/15660
9
+ */
10
+ export declare const AI_SDK_TELEMETRY_TRACING_CHANNEL = "ai:telemetry";
5
11
  /** Drop the per-operation `callId` maps once the owning top-level operation settles (success or error). */
6
12
  export declare function clearOperationId(data: VercelAiChannelMessage): void;
7
13
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"vercel-ai-dc-subscriber.d.ts","sourceRoot":"","sources":["../../../../src/integrations/vercel-ai/vercel-ai-dc-subscriber.ts"],"names":[],"mappings":"AAqCA,OAAO,KAAK,EAAE,IAAI,EAAkB,MAAM,cAAc,CAAC;AAczD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAG/D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAIxD,OAAO,EAAwC,KAAK,uBAAuB,EAA2B,MAAM,QAAQ,CAAC;AA+DrH,2GAA2G;AAC3G,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,sBAAsB,GAAG,IAAI,CAQnE;AAED;;;;;GAKG;AACH,wBAAgB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,KAAK,EAAE,OAAO,GAAG,IAAI,CA0B/F"}
1
+ {"version":3,"file":"vercel-ai-dc-subscriber.d.ts","sourceRoot":"","sources":["../../../../src/integrations/vercel-ai/vercel-ai-dc-subscriber.ts"],"names":[],"mappings":"AAqCA,OAAO,KAAK,EAAE,IAAI,EAAkB,MAAM,cAAc,CAAC;AAczD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAG/D,OAAO,EAA+B,KAAK,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAIrF,OAAO,EAAwC,KAAK,uBAAuB,EAA2B,MAAM,QAAQ,CAAC;AAErH;;;;GAIG;AACH,eAAO,MAAM,gCAAgC,iBAAiB,CAAC;AAwD/D,2GAA2G;AAC3G,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,sBAAsB,GAAG,IAAI,CAQnE;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAIzD;AA0FD,sEAAsE;AACtE,MAAM,MAAM,gBAAgB,GACxB,cAAc,GACd,YAAY,GACZ,gBAAgB,GAChB,MAAM,GACN,mBAAmB,GACnB,aAAa,GACb,OAAO,GACP,WAAW,GACX,QAAQ,GACR,uBAAuB,GACvB,qBAAqB,CAAC;AAE1B;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,gBAAgB,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED;;;;;;;;;GASG;AACH,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,SAAS,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,cAAc,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAErG,mHAAmH;AACnH,MAAM,MAAM,sBAAsB,GAAG,YAAY,CAAC;AAElD;;;;;;;;;;;GAWG;AACH,wBAAgB,+BAA+B,CAC7C,cAAc,EAAE,6BAA6B,EAC7C,OAAO,GAAE,sBAA2B,GACnC,IAAI,CAgBN;AAwCD,yGAAyG;AACzG,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,uBAAuB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAuBrG;AA+CD;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,sBAAsB,EAC5B,cAAc,EAAE,sBAAsB,GACrC,IAAI,GAAG,SAAS,CA+ElB;AAkGD;;;;GAIG;AACH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,IAAI,EACV,IAAI,EAAE,sBAAsB,EAC5B,cAAc,EAAE,sBAAsB,GACrC,IAAI,CAyEN;AAoJD,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,sBAAsB,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI,CA0B/F"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Register a global `ai` (>= 7) telemetry integration that publishes tool executions to the
3
+ * `ai:telemetry` channel. Frameworks such as eve (>= 0.84) run tools outside `ai`'s tool loop, so `ai`
4
+ * publishes nothing for them, but they still call registered telemetry integrations.
5
+ * @see https://ai-sdk.dev/docs/ai-sdk-core/telemetry
6
+ */
7
+ export declare function registerVercelAiToolTelemetry(): void;
8
+ //# sourceMappingURL=vercel-ai-tool-telemetry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vercel-ai-tool-telemetry.d.ts","sourceRoot":"","sources":["../../../../src/integrations/vercel-ai/vercel-ai-tool-telemetry.ts"],"names":[],"mappings":"AAqBA;;;;;GAKG;AACH,wBAAgB,6BAA6B,IAAI,IAAI,CAmCpD"}
@@ -32,6 +32,7 @@ export declare const CHANNELS: {
32
32
  readonly ANTHROPIC_CHAT: 'orchestrion:@anthropic-ai/sdk:chat';
33
33
  readonly ANTHROPIC_MESSAGES_STREAM: 'orchestrion:@anthropic-ai/sdk:messages-stream';
34
34
  readonly ANTHROPIC_TOOL_RUNNER: 'orchestrion:@anthropic-ai/sdk:tool-runner';
35
+ readonly ANTHROPIC_SESSION_TOOL_RUNNER: 'orchestrion:@anthropic-ai/sdk:session-tool-runner';
35
36
  readonly DATALOADER_CONSTRUCT: 'orchestrion:dataloader:construct';
36
37
  readonly DATALOADER_LOAD: 'orchestrion:dataloader:load';
37
38
  readonly DATALOADER_LOAD_MANY: 'orchestrion:dataloader:loadMany';
@@ -1 +1 @@
1
- {"version":3,"file":"channels.d.ts","sourceRoot":"","sources":["../../../src/orchestrion/channels.ts"],"names":[],"mappings":"AAwCA;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwCX,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,OAAO,QAAQ,CAAC,CAAC"}
1
+ {"version":3,"file":"channels.d.ts","sourceRoot":"","sources":["../../../src/orchestrion/channels.ts"],"names":[],"mappings":"AAwCA;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwCX,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,OAAO,QAAQ,CAAC,CAAC"}
@@ -7,8 +7,6 @@ export declare const anthropicAiConfig: {
7
7
  };
8
8
  functionQuery: {
9
9
  className: string;
10
- methodName: string;
11
- kind: 'Sync';
12
10
  };
13
11
  }[];
14
12
  export declare const anthropicAiModuleNames: string[];
@@ -16,5 +14,6 @@ export declare const anthropicAiChannels: {
16
14
  readonly ANTHROPIC_CHAT: 'orchestrion:@anthropic-ai/sdk:chat';
17
15
  readonly ANTHROPIC_MESSAGES_STREAM: 'orchestrion:@anthropic-ai/sdk:messages-stream';
18
16
  readonly ANTHROPIC_TOOL_RUNNER: 'orchestrion:@anthropic-ai/sdk:tool-runner';
17
+ readonly ANTHROPIC_SESSION_TOOL_RUNNER: 'orchestrion:@anthropic-ai/sdk:session-tool-runner';
19
18
  };
20
19
  //# sourceMappingURL=anthropic-ai.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"anthropic-ai.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/anthropic-ai.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,iBAAiB;;;;;;;;QAKT,SAAS;QAAc,UAAU;QAAY,IAAI,EAAE,MAAM;;GAwB3C,CAAC;AAEpC,eAAO,MAAM,sBAAsB,UAAoC,CAAC;AAExE,eAAO,MAAM,mBAAmB;aAC9B,cAAc,EAAE,oCAAoC;aACpD,yBAAyB,EAAE,+CAA+C;aAC1E,qBAAqB,EAAE,2CAA2C;CAC1D,CAAC"}
1
+ {"version":3,"file":"anthropic-ai.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/anthropic-ai.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,iBAAiB;;;;;;;;QAiCT,SAAS;;GAEK,CAAC;AAEpC,eAAO,MAAM,sBAAsB,UAAoC,CAAC;AAExE,eAAO,MAAM,mBAAmB;aAC9B,cAAc,EAAE,oCAAoC;aACpD,yBAAyB,EAAE,+CAA+C;aAC1E,qBAAqB,EAAE,2CAA2C;aAClE,6BAA6B,EAAE,mDAAmD;CAC1E,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"hono.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/hono.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAwBzD,eAAO,MAAM,UAAU,yBAA8D,CAAC;AAEtF,eAAO,MAAM,eAAe,UAA6B,CAAC;AAE1D,eAAO,MAAM,YAAY;aACvB,YAAY,EAAE,0BAA0B;aACxC,YAAY,EAAE,0BAA0B;CAChC,CAAC"}
1
+ {"version":3,"file":"hono.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/hono.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AA0BzD,eAAO,MAAM,UAAU,yBAA8D,CAAC;AAEtF,eAAO,MAAM,eAAe,UAA6B,CAAC;AAE1D,eAAO,MAAM,YAAY;aACvB,YAAY,EAAE,0BAA0B;aACxC,YAAY,EAAE,0BAA0B;CAChC,CAAC"}
@@ -6,6 +6,7 @@ import type { InstrumentationConfig } from '../apmTypes';
6
6
  * a thenable `APIPromise`. Sync tracing preserves its lazy body parsing; Auto would trigger it via `.then()`.
7
7
  * A streaming call resolves to the same OpenAI-style async-iterable `Stream` the openai integration consumes. These
8
8
  * SDKs ship dual CJS/ESM and the matcher compares `filePath` exactly, hence one entry per built file.
9
+ * `classNames` covers SDKs that moved `create` onto a base class while keeping this layout.
9
10
  *
10
11
  * Because the wire format is OpenAI-compatible, the span building, streaming and response parsing are all
11
12
  * reused from `ai/openai`; only the module name, channels and `gen_ai.provider.name` differ per provider.
@@ -13,5 +14,8 @@ import type { InstrumentationConfig } from '../apmTypes';
13
14
  export declare function openAiCompatibleConfig(module: {
14
15
  name: string;
15
16
  versionRange: string;
17
+ }, classNames?: {
18
+ chat: string;
19
+ embeddings: string;
16
20
  }): InstrumentationConfig[];
17
21
  //# sourceMappingURL=openai-compatible.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"openai-compatible.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/openai-compatible.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAEzD;;;;;;;;;;GAUG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,YAAY,EAAE,MAAM,CAAA;CAAE,GAAG,qBAAqB,EAAE,CAa9G"}
1
+ {"version":3,"file":"openai-compatible.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/openai-compatible.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAEzD;;;;;;;;;;;GAWG;AACH,wBAAgB,sBAAsB,CACpC,MAAM,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,YAAY,EAAE,MAAM,CAAA;CAAE,EAC9C,UAAU;IAAK,IAAI;IAAiB,UAAU;CAAgB,GAC7D,qBAAqB,EAAE,CAazB"}
@@ -1 +1 @@
1
- {"version":3,"file":"together-ai.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/together-ai.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAMzD,eAAO,MAAM,gBAAgB,yBAGO,CAAC;AAErC,eAAO,MAAM,qBAAqB,UAAmC,CAAC;AAEtE,eAAO,MAAM,kBAAkB;aAC7B,aAAa,EAAE,8BAA8B;aAC7C,mBAAmB,EAAE,oCAAoC;CACjD,CAAC"}
1
+ {"version":3,"file":"together-ai.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/together-ai.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAMzD,eAAO,MAAM,gBAAgB,yBAOM,CAAC;AAEpC,eAAO,MAAM,qBAAqB,UAAmC,CAAC;AAEtE,eAAO,MAAM,kBAAkB;aAC7B,aAAa,EAAE,8BAA8B;aAC7C,mBAAmB,EAAE,oCAAoC;CACjD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"instrumentation.d.ts","sourceRoot":"","sources":["../../../src/orchestrion/instrumentation.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAQ3C,QAAA,MAAM,YAAY,eAA8C,CAAC;AAIjE,KAAK,iBAAiB,GAAG,CAAC,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC,GAAG;IAAE,CAAC,YAAY,CAAC,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAMnF;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,gCAAgC,CAAC,QAAQ,SAAS,iBAAiB,EACjF,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,SAAS,MAAM,EAAE,EAC9B,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,EAK1B,EAAE,6BAAoC,EAAE,GAAE;IAAE,6BAA6B,CAAC,EAAE,OAAO,CAAA;CAAO,GACzF,IAAI,CAuEN"}
1
+ {"version":3,"file":"instrumentation.d.ts","sourceRoot":"","sources":["../../../src/orchestrion/instrumentation.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAQ3C,QAAA,MAAM,YAAY,eAA8C,CAAC;AAIjE,KAAK,iBAAiB,GAAG,CAAC,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC,GAAG;IAAE,CAAC,YAAY,CAAC,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AASnF;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,gCAAgC,CAAC,QAAQ,SAAS,iBAAiB,EACjF,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,SAAS,MAAM,EAAE,EAC9B,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,EAK1B,EAAE,6BAAoC,EAAE,GAAE;IAAE,6BAA6B,CAAC,EAAE,OAAO,CAAA;CAAO,GACzF,IAAI,CAsFN"}
@@ -0,0 +1,3 @@
1
+ /** Monitor the source without reading ahead or treating cancellation as a source failure. */
2
+ export declare function monitorStream(stream: ReadableStream<Uint8Array>, onDone: () => void, onError: (error: unknown) => void): ReadableStream<Uint8Array>;
3
+ //# sourceMappingURL=monitorStream.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"monitorStream.d.ts","sourceRoot":"","sources":["../../../src/utils/monitorStream.ts"],"names":[],"mappings":"AAEA,6FAA6F;AAC7F,wBAAgB,aAAa,CAC3B,MAAM,EAAE,cAAc,CAAC,UAAU,CAAC,EAClC,MAAM,EAAE,MAAM,IAAI,EAClB,OAAO,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,GAChC,cAAc,CAAC,UAAU,CAAC,CAsC5B"}
@@ -0,0 +1,38 @@
1
+ import type { Client, Mechanism, Scope, SpanAttributes } from '@sentry/core';
2
+ import type { ServerRequestOptions } from '@sentry/core/server';
3
+ export interface ServerRequestHandlerConfig {
4
+ request: Request;
5
+ client: Client;
6
+ /** The isolation scope of this request. */
7
+ isolationScope: Scope;
8
+ /** The options of the runtime's integration for incoming requests. */
9
+ options: ServerRequestOptions<Request, Response> | undefined;
10
+ /** Origin of the span, e.g. `auto.http.deno`. */
11
+ origin: string;
12
+ /** Mechanism of errors that the handler or the response stream throws. */
13
+ mechanism: Mechanism;
14
+ /** The address and port of the socket, if the runtime knows them. */
15
+ getSocketAddress?: () => {
16
+ address: string;
17
+ port?: number;
18
+ } | undefined;
19
+ /** The matched route of the server framework, e.g. `/users/:id`. Sets `http.route` and the span name. */
20
+ routeName?: string;
21
+ /** Span attributes that only the runtime knows, e.g. the route parameters. */
22
+ attributes?: SpanAttributes;
23
+ }
24
+ /**
25
+ * Wraps a handler of a web `Request`, as used by `Deno.serve`, `Bun.serve` and Cloudflare Workers.
26
+ *
27
+ * It records the request session, attaches the request data and body, continues the incoming
28
+ * trace, creates the `http.server` span, and captures errors that the handler throws. The rules
29
+ * follow core's `node:http` server code:
30
+ *
31
+ * - `OPTIONS` and `HEAD` requests get no span and no body capture.
32
+ * - The static asset filter applies only to `GET`.
33
+ * - The span and the session of a streamed response end when the stream finishes.
34
+ *
35
+ * The handler can return no response, as Bun's `fetch` does after a WebSocket upgrade.
36
+ */
37
+ export declare function wrapServerRequestHandler<R extends Response | undefined = Response>(config: ServerRequestHandlerConfig, handler: () => R | Promise<R>): Promise<R>;
38
+ //# sourceMappingURL=wrapServerRequestHandler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wrapServerRequestHandler.d.ts","sourceRoot":"","sources":["../../../src/utils/wrapServerRequestHandler.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,EAAQ,cAAc,EAAE,MAAM,cAAc,CAAC;AAkBnF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAUhE,MAAM,WAAW,0BAA0B;IACzC,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,2CAA2C;IAC3C,cAAc,EAAE,KAAK,CAAC;IACtB,sEAAsE;IACtE,OAAO,EAAE,oBAAoB,CAAC,OAAO,EAAE,QAAQ,CAAC,GAAG,SAAS,CAAC;IAC7D,iDAAiD;IACjD,MAAM,EAAE,MAAM,CAAC;IACf,0EAA0E;IAC1E,SAAS,EAAE,SAAS,CAAC;IACrB,qEAAqE;IACrE,gBAAgB,CAAC,EAAE,MAAM;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,SAAS,CAAC;IACxE,yGAAyG;IACzG,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,8EAA8E;IAC9E,UAAU,CAAC,EAAE,cAAc,CAAC;CAC7B;AAED;;;;;;;;;;;;GAYG;AACH,wBAAsB,wBAAwB,CAAC,CAAC,SAAS,QAAQ,GAAG,SAAS,GAAG,QAAQ,EACtF,MAAM,EAAE,0BAA0B,EAClC,OAAO,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,GAC5B,OAAO,CAAC,CAAC,CAAC,CAuKZ"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/server-utils",
3
- "version": "11.9.0",
3
+ "version": "11.10.0",
4
4
  "description": "Server Utilities for all Sentry JavaScript SDKs",
5
5
  "repository": "git://github.com/getsentry/sentry-javascript.git",
6
6
  "homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/server-utils",
@@ -97,15 +97,17 @@
97
97
  },
98
98
  "dependencies": {
99
99
  "@opentelemetry/api": "^1.9.1",
100
- "@sentry/conventions": "^0.27.0",
101
- "@sentry/core": "11.9.0"
100
+ "@sentry/conventions": "^0.29.0",
101
+ "@sentry/core": "11.10.0"
102
102
  },
103
103
  "devDependencies": {
104
104
  "@apm-js-collab/code-transformer-bundler-plugins": "^0.7.4",
105
105
  "@neondatabase/serverless": "1.2.0",
106
+ "@sentry-internal/rollup-utils": "11.10.0",
106
107
  "@types/node": "^20.19.0",
107
108
  "meriyah": "^6.1.4",
108
- "vite": "^8.3.1"
109
+ "vite": "^8.3.1",
110
+ "webpack": "^5.104.1"
109
111
  },
110
112
  "scripts": {
111
113
  "build": "run-p build:transpile build:types",
@@ -126,9 +128,6 @@
126
128
  "test:watch": "vitest --watch",
127
129
  "yalc:publish": "yalc publish --push --sig"
128
130
  },
129
- "volta": {
130
- "extends": "../../package.json"
131
- },
132
131
  "sideEffects": false,
133
132
  "nx": {
134
133
  "targets": {