@sentry/server-utils 11.8.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 (386) hide show
  1. package/README.md +5 -1
  2. package/build/THIRD-PARTY-LICENSES.txt +32 -32
  3. package/build/cjs/ai/anthropic-ai/constants.js +2 -0
  4. package/build/cjs/ai/anthropic-ai/constants.js.map +1 -1
  5. package/build/cjs/ai/anthropic-ai/index.js +9 -1
  6. package/build/cjs/ai/anthropic-ai/index.js.map +1 -1
  7. package/build/cjs/ai/anthropic-ai/streaming.js +17 -9
  8. package/build/cjs/ai/anthropic-ai/streaming.js.map +1 -1
  9. package/build/cjs/ai/anthropic-ai/tool-runner.js +100 -0
  10. package/build/cjs/ai/anthropic-ai/tool-runner.js.map +1 -0
  11. package/build/cjs/ai/flue/index.js +36 -1
  12. package/build/cjs/ai/flue/index.js.map +1 -1
  13. package/build/cjs/ai/google-genai/index.js +18 -3
  14. package/build/cjs/ai/google-genai/index.js.map +1 -1
  15. package/build/cjs/ai/langchain/constants.js +2 -0
  16. package/build/cjs/ai/langchain/constants.js.map +1 -1
  17. package/build/cjs/ai/langchain/index.js +102 -50
  18. package/build/cjs/ai/langchain/index.js.map +1 -1
  19. package/build/cjs/ai/openai/index.js +18 -4
  20. package/build/cjs/ai/openai/index.js.map +1 -1
  21. package/build/cjs/ai/openai/streaming.js +40 -9
  22. package/build/cjs/ai/openai/streaming.js.map +1 -1
  23. package/build/cjs/ai/pi-durable/constants.js +2 -0
  24. package/build/cjs/ai/pi-durable/constants.js.map +1 -1
  25. package/build/cjs/ai/pi-durable/index.js +12 -2
  26. package/build/cjs/ai/pi-durable/index.js.map +1 -1
  27. package/build/cjs/ai/pi-durable/runs.js +14 -1
  28. package/build/cjs/ai/pi-durable/runs.js.map +1 -1
  29. package/build/cjs/ai/workers-ai/utils.js +39 -1
  30. package/build/cjs/ai/workers-ai/utils.js.map +1 -1
  31. package/build/cjs/index.js +10 -6
  32. package/build/cjs/index.js.map +1 -1
  33. package/build/cjs/index.no-diagnostic-channels.js +2 -0
  34. package/build/cjs/index.no-diagnostic-channels.js.map +1 -1
  35. package/build/cjs/integrations/amqplib.js +2 -2
  36. package/build/cjs/integrations/amqplib.js.map +1 -1
  37. package/build/cjs/integrations/anthropic.js +9 -2
  38. package/build/cjs/integrations/anthropic.js.map +1 -1
  39. package/build/cjs/integrations/aws-sdk/constants.js +2 -2
  40. package/build/cjs/integrations/aws-sdk/constants.js.map +1 -1
  41. package/build/cjs/integrations/aws-sdk/index.js +8 -4
  42. package/build/cjs/integrations/aws-sdk/index.js.map +1 -1
  43. package/build/cjs/integrations/firebase/firestore.js +1 -1
  44. package/build/cjs/integrations/firebase/firestore.js.map +1 -1
  45. package/build/cjs/integrations/firebase/functions.js +1 -1
  46. package/build/cjs/integrations/firebase/functions.js.map +1 -1
  47. package/build/cjs/integrations/graphql/constants.js +1 -1
  48. package/build/cjs/integrations/graphql/constants.js.map +1 -1
  49. package/build/cjs/integrations/hapi/hapi-error-handler.js +1 -1
  50. package/build/cjs/integrations/hapi/hapi-error-handler.js.map +1 -1
  51. package/build/cjs/integrations/hapi/hapi-types.js +0 -7
  52. package/build/cjs/integrations/hapi/hapi-types.js.map +1 -1
  53. package/build/cjs/integrations/hapi/hapi-utils.js +26 -21
  54. package/build/cjs/integrations/hapi/hapi-utils.js.map +1 -1
  55. package/build/cjs/integrations/hono/connInfo.js +37 -0
  56. package/build/cjs/integrations/hono/connInfo.js.map +1 -0
  57. package/build/cjs/integrations/hono/createHonoMiddleware.js +2 -2
  58. package/build/cjs/integrations/hono/createHonoMiddleware.js.map +1 -1
  59. package/build/cjs/integrations/hono/honoIntegration.js +14 -42
  60. package/build/cjs/integrations/hono/honoIntegration.js.map +1 -1
  61. package/build/cjs/integrations/hono/isMiddleware.js +8 -0
  62. package/build/cjs/integrations/hono/isMiddleware.js.map +1 -1
  63. package/build/cjs/integrations/hono/matchResult.js +18 -0
  64. package/build/cjs/integrations/hono/matchResult.js.map +1 -0
  65. package/build/cjs/integrations/hono/middlewareHandlers.js +31 -19
  66. package/build/cjs/integrations/hono/middlewareHandlers.js.map +1 -1
  67. package/build/cjs/integrations/hono/patchRoute.js +2 -10
  68. package/build/cjs/integrations/hono/patchRoute.js.map +1 -1
  69. package/build/cjs/integrations/index.js +29 -21
  70. package/build/cjs/integrations/index.js.map +1 -1
  71. package/build/cjs/integrations/kafkajs/spans.js +2 -2
  72. package/build/cjs/integrations/kafkajs/spans.js.map +1 -1
  73. package/build/cjs/integrations/mongoose/mongoose-dc-subscriber.js +1 -1
  74. package/build/cjs/integrations/mongoose/mongoose-dc-subscriber.js.map +1 -1
  75. package/build/cjs/integrations/mysql2/mysql2-dc-subscriber.js +1 -1
  76. package/build/cjs/integrations/mysql2/mysql2-dc-subscriber.js.map +1 -1
  77. package/build/cjs/integrations/nitro/captureStorageEvents.js +132 -0
  78. package/build/cjs/integrations/nitro/captureStorageEvents.js.map +1 -0
  79. package/build/cjs/integrations/nitro/captureTracingEvents.js +202 -0
  80. package/build/cjs/integrations/nitro/captureTracingEvents.js.map +1 -0
  81. package/build/cjs/integrations/nitro/index.js +27 -0
  82. package/build/cjs/integrations/nitro/index.js.map +1 -0
  83. package/build/cjs/integrations/nitro/setServerTimingHeaders.js +40 -0
  84. package/build/cjs/integrations/nitro/setServerTimingHeaders.js.map +1 -0
  85. package/build/cjs/integrations/redis/redis-dc-subscriber.js +1 -1
  86. package/build/cjs/integrations/redis/redis-dc-subscriber.js.map +1 -1
  87. package/build/cjs/integrations/vercel-ai/index.js +2 -0
  88. package/build/cjs/integrations/vercel-ai/index.js.map +1 -1
  89. package/build/cjs/integrations/vercel-ai/vercel-ai-dc-subscriber.js +25 -12
  90. package/build/cjs/integrations/vercel-ai/vercel-ai-dc-subscriber.js.map +1 -1
  91. package/build/cjs/integrations/vercel-ai/vercel-ai-tool-telemetry.js +40 -0
  92. package/build/cjs/integrations/vercel-ai/vercel-ai-tool-telemetry.js.map +1 -0
  93. package/build/cjs/orchestrion/bundler/externalRequire.js +82 -0
  94. package/build/cjs/orchestrion/bundler/externalRequire.js.map +1 -0
  95. package/build/cjs/orchestrion/bundler/vite.js +17 -3
  96. package/build/cjs/orchestrion/bundler/vite.js.map +1 -1
  97. package/build/cjs/orchestrion/config/anthropic-ai.js +14 -1
  98. package/build/cjs/orchestrion/config/anthropic-ai.js.map +1 -1
  99. package/build/cjs/orchestrion/config/channel-integration-definitions.js +2 -1
  100. package/build/cjs/orchestrion/config/channel-integration-definitions.js.map +1 -1
  101. package/build/cjs/orchestrion/config/hono.js +2 -0
  102. package/build/cjs/orchestrion/config/hono.js.map +1 -1
  103. package/build/cjs/orchestrion/config/index.js +2 -0
  104. package/build/cjs/orchestrion/config/index.js.map +1 -1
  105. package/build/cjs/orchestrion/config/nitro.js +10 -0
  106. package/build/cjs/orchestrion/config/nitro.js.map +1 -0
  107. package/build/cjs/orchestrion/config/openai-compatible.js +3 -3
  108. package/build/cjs/orchestrion/config/openai-compatible.js.map +1 -1
  109. package/build/cjs/orchestrion/config/together-ai.js +8 -4
  110. package/build/cjs/orchestrion/config/together-ai.js.map +1 -1
  111. package/build/cjs/orchestrion/instrumentation.js +7 -0
  112. package/build/cjs/orchestrion/instrumentation.js.map +1 -1
  113. package/build/cjs/utils/monitorStream.js +42 -0
  114. package/build/cjs/utils/monitorStream.js.map +1 -0
  115. package/build/cjs/utils/wrapServerRequestHandler.js +180 -0
  116. package/build/cjs/utils/wrapServerRequestHandler.js.map +1 -0
  117. package/build/cjs/vendored/@apm-js-collab/code-transformer/index.js.map +1 -1
  118. package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/index.js.map +1 -1
  119. package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/matcher.js.map +1 -1
  120. package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/transformer.js.map +1 -1
  121. package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/transforms.js.map +1 -1
  122. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/bun.js.map +1 -1
  123. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/core-dC9TN3Ev.js.map +1 -1
  124. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/esbuild.js.map +1 -1
  125. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/instrumentation-serde-C-Xxv-jj.js.map +1 -1
  126. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/rollup-OTS4ktWb.js.map +1 -1
  127. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/vite.js.map +1 -1
  128. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/webpack-loader-factory.js.map +1 -1
  129. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/webpack.js.map +1 -1
  130. package/build/cjs/vendored/astring/dist/astring.js.map +1 -1
  131. package/build/cjs/vendored/esquery/dist/esquery.esm.min.js.map +1 -1
  132. package/build/cjs/vendored/meriyah/dist/meriyah.js.map +1 -1
  133. package/build/cjs/vendored/meriyah/dist/meriyah2.js.map +1 -1
  134. package/build/cjs/vendored/module-details-from-path/index.js.map +1 -1
  135. package/build/cjs/vendored/semifies/index.js.map +1 -1
  136. package/build/cjs/vendored/source-map/lib/array-set.js.map +1 -1
  137. package/build/cjs/vendored/source-map/lib/base64-vlq.js.map +1 -1
  138. package/build/cjs/vendored/source-map/lib/base64.js.map +1 -1
  139. package/build/cjs/vendored/source-map/lib/binary-search.js.map +1 -1
  140. package/build/cjs/vendored/source-map/lib/mapping-list.js.map +1 -1
  141. package/build/cjs/vendored/source-map/lib/quick-sort.js.map +1 -1
  142. package/build/cjs/vendored/source-map/lib/source-map-consumer.js.map +1 -1
  143. package/build/cjs/vendored/source-map/lib/source-map-generator.js.map +1 -1
  144. package/build/cjs/vendored/source-map/lib/source-node.js.map +1 -1
  145. package/build/cjs/vendored/source-map/lib/util.js.map +1 -1
  146. package/build/cjs/vendored/source-map/source-map.js.map +1 -1
  147. package/build/esm/ai/anthropic-ai/constants.js +2 -1
  148. package/build/esm/ai/anthropic-ai/constants.js.map +1 -1
  149. package/build/esm/ai/anthropic-ai/index.js +10 -2
  150. package/build/esm/ai/anthropic-ai/index.js.map +1 -1
  151. package/build/esm/ai/anthropic-ai/streaming.js +17 -9
  152. package/build/esm/ai/anthropic-ai/streaming.js.map +1 -1
  153. package/build/esm/ai/anthropic-ai/tool-runner.js +96 -0
  154. package/build/esm/ai/anthropic-ai/tool-runner.js.map +1 -0
  155. package/build/esm/ai/flue/index.js +37 -2
  156. package/build/esm/ai/flue/index.js.map +1 -1
  157. package/build/esm/ai/google-genai/index.js +18 -3
  158. package/build/esm/ai/google-genai/index.js.map +1 -1
  159. package/build/esm/ai/langchain/constants.js +2 -1
  160. package/build/esm/ai/langchain/constants.js.map +1 -1
  161. package/build/esm/ai/langchain/index.js +105 -53
  162. package/build/esm/ai/langchain/index.js.map +1 -1
  163. package/build/esm/ai/openai/index.js +19 -5
  164. package/build/esm/ai/openai/index.js.map +1 -1
  165. package/build/esm/ai/openai/streaming.js +40 -9
  166. package/build/esm/ai/openai/streaming.js.map +1 -1
  167. package/build/esm/ai/pi-durable/constants.js +2 -1
  168. package/build/esm/ai/pi-durable/constants.js.map +1 -1
  169. package/build/esm/ai/pi-durable/index.js +14 -4
  170. package/build/esm/ai/pi-durable/index.js.map +1 -1
  171. package/build/esm/ai/pi-durable/runs.js +15 -3
  172. package/build/esm/ai/pi-durable/runs.js.map +1 -1
  173. package/build/esm/ai/workers-ai/utils.js +41 -3
  174. package/build/esm/ai/workers-ai/utils.js.map +1 -1
  175. package/build/esm/index.js +2 -0
  176. package/build/esm/index.js.map +1 -1
  177. package/build/esm/index.no-diagnostic-channels.js +1 -0
  178. package/build/esm/index.no-diagnostic-channels.js.map +1 -1
  179. package/build/esm/integrations/amqplib.js +2 -2
  180. package/build/esm/integrations/amqplib.js.map +1 -1
  181. package/build/esm/integrations/anthropic.js +9 -2
  182. package/build/esm/integrations/anthropic.js.map +1 -1
  183. package/build/esm/integrations/aws-sdk/constants.js +2 -2
  184. package/build/esm/integrations/aws-sdk/constants.js.map +1 -1
  185. package/build/esm/integrations/aws-sdk/index.js +9 -5
  186. package/build/esm/integrations/aws-sdk/index.js.map +1 -1
  187. package/build/esm/integrations/firebase/firestore.js +1 -1
  188. package/build/esm/integrations/firebase/firestore.js.map +1 -1
  189. package/build/esm/integrations/firebase/functions.js +1 -1
  190. package/build/esm/integrations/firebase/functions.js.map +1 -1
  191. package/build/esm/integrations/graphql/constants.js +1 -1
  192. package/build/esm/integrations/graphql/constants.js.map +1 -1
  193. package/build/esm/integrations/hapi/hapi-error-handler.js +1 -1
  194. package/build/esm/integrations/hapi/hapi-error-handler.js.map +1 -1
  195. package/build/esm/integrations/hapi/hapi-types.js +1 -7
  196. package/build/esm/integrations/hapi/hapi-types.js.map +1 -1
  197. package/build/esm/integrations/hapi/hapi-utils.js +29 -24
  198. package/build/esm/integrations/hapi/hapi-utils.js.map +1 -1
  199. package/build/esm/integrations/hono/connInfo.js +35 -0
  200. package/build/esm/integrations/hono/connInfo.js.map +1 -0
  201. package/build/esm/integrations/hono/createHonoMiddleware.js +2 -2
  202. package/build/esm/integrations/hono/createHonoMiddleware.js.map +1 -1
  203. package/build/esm/integrations/hono/honoIntegration.js +16 -44
  204. package/build/esm/integrations/hono/honoIntegration.js.map +1 -1
  205. package/build/esm/integrations/hono/isMiddleware.js +8 -1
  206. package/build/esm/integrations/hono/isMiddleware.js.map +1 -1
  207. package/build/esm/integrations/hono/matchResult.js +16 -0
  208. package/build/esm/integrations/hono/matchResult.js.map +1 -0
  209. package/build/esm/integrations/hono/middlewareHandlers.js +33 -21
  210. package/build/esm/integrations/hono/middlewareHandlers.js.map +1 -1
  211. package/build/esm/integrations/hono/patchRoute.js +3 -11
  212. package/build/esm/integrations/hono/patchRoute.js.map +1 -1
  213. package/build/esm/integrations/index.js +9 -1
  214. package/build/esm/integrations/index.js.map +1 -1
  215. package/build/esm/integrations/kafkajs/spans.js +2 -2
  216. package/build/esm/integrations/kafkajs/spans.js.map +1 -1
  217. package/build/esm/integrations/mongoose/mongoose-dc-subscriber.js +1 -1
  218. package/build/esm/integrations/mongoose/mongoose-dc-subscriber.js.map +1 -1
  219. package/build/esm/integrations/mysql2/mysql2-dc-subscriber.js +1 -1
  220. package/build/esm/integrations/mysql2/mysql2-dc-subscriber.js.map +1 -1
  221. package/build/esm/integrations/nitro/captureStorageEvents.js +130 -0
  222. package/build/esm/integrations/nitro/captureStorageEvents.js.map +1 -0
  223. package/build/esm/integrations/nitro/captureTracingEvents.js +200 -0
  224. package/build/esm/integrations/nitro/captureTracingEvents.js.map +1 -0
  225. package/build/esm/integrations/nitro/index.js +25 -0
  226. package/build/esm/integrations/nitro/index.js.map +1 -0
  227. package/build/esm/integrations/nitro/setServerTimingHeaders.js +38 -0
  228. package/build/esm/integrations/nitro/setServerTimingHeaders.js.map +1 -0
  229. package/build/esm/integrations/redis/redis-dc-subscriber.js +1 -1
  230. package/build/esm/integrations/redis/redis-dc-subscriber.js.map +1 -1
  231. package/build/esm/integrations/vercel-ai/index.js +2 -0
  232. package/build/esm/integrations/vercel-ai/index.js.map +1 -1
  233. package/build/esm/integrations/vercel-ai/vercel-ai-dc-subscriber.js +25 -13
  234. package/build/esm/integrations/vercel-ai/vercel-ai-dc-subscriber.js.map +1 -1
  235. package/build/esm/integrations/vercel-ai/vercel-ai-tool-telemetry.js +38 -0
  236. package/build/esm/integrations/vercel-ai/vercel-ai-tool-telemetry.js.map +1 -0
  237. package/build/esm/orchestrion/bundler/externalRequire.js +80 -0
  238. package/build/esm/orchestrion/bundler/externalRequire.js.map +1 -0
  239. package/build/esm/orchestrion/bundler/vite.js +17 -3
  240. package/build/esm/orchestrion/bundler/vite.js.map +1 -1
  241. package/build/esm/orchestrion/config/anthropic-ai.js +14 -1
  242. package/build/esm/orchestrion/config/anthropic-ai.js.map +1 -1
  243. package/build/esm/orchestrion/config/channel-integration-definitions.js +2 -1
  244. package/build/esm/orchestrion/config/channel-integration-definitions.js.map +1 -1
  245. package/build/esm/orchestrion/config/hono.js +2 -0
  246. package/build/esm/orchestrion/config/hono.js.map +1 -1
  247. package/build/esm/orchestrion/config/index.js +2 -0
  248. package/build/esm/orchestrion/config/index.js.map +1 -1
  249. package/build/esm/orchestrion/config/nitro.js +8 -0
  250. package/build/esm/orchestrion/config/nitro.js.map +1 -0
  251. package/build/esm/orchestrion/config/openai-compatible.js +3 -3
  252. package/build/esm/orchestrion/config/openai-compatible.js.map +1 -1
  253. package/build/esm/orchestrion/config/together-ai.js +8 -4
  254. package/build/esm/orchestrion/config/together-ai.js.map +1 -1
  255. package/build/esm/orchestrion/instrumentation.js +8 -1
  256. package/build/esm/orchestrion/instrumentation.js.map +1 -1
  257. package/build/esm/package.json +1 -1
  258. package/build/esm/utils/monitorStream.js +40 -0
  259. package/build/esm/utils/monitorStream.js.map +1 -0
  260. package/build/esm/utils/wrapServerRequestHandler.js +178 -0
  261. package/build/esm/utils/wrapServerRequestHandler.js.map +1 -0
  262. package/build/esm/vendored/@apm-js-collab/code-transformer/index.js.map +1 -1
  263. package/build/esm/vendored/@apm-js-collab/code-transformer/lib/index.js.map +1 -1
  264. package/build/esm/vendored/@apm-js-collab/code-transformer/lib/matcher.js.map +1 -1
  265. package/build/esm/vendored/@apm-js-collab/code-transformer/lib/transformer.js.map +1 -1
  266. package/build/esm/vendored/@apm-js-collab/code-transformer/lib/transforms.js.map +1 -1
  267. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/bun.js.map +1 -1
  268. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/core-dC9TN3Ev.js.map +1 -1
  269. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/esbuild.js.map +1 -1
  270. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/instrumentation-serde-C-Xxv-jj.js.map +1 -1
  271. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/rollup-OTS4ktWb.js.map +1 -1
  272. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/vite.js.map +1 -1
  273. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/webpack-loader-factory.js.map +1 -1
  274. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/webpack.js.map +1 -1
  275. package/build/esm/vendored/astring/dist/astring.js.map +1 -1
  276. package/build/esm/vendored/esquery/dist/esquery.esm.min.js.map +1 -1
  277. package/build/esm/vendored/meriyah/dist/meriyah.js.map +1 -1
  278. package/build/esm/vendored/meriyah/dist/meriyah2.js.map +1 -1
  279. package/build/esm/vendored/module-details-from-path/index.js.map +1 -1
  280. package/build/esm/vendored/semifies/index.js.map +1 -1
  281. package/build/esm/vendored/source-map/lib/array-set.js.map +1 -1
  282. package/build/esm/vendored/source-map/lib/base64-vlq.js.map +1 -1
  283. package/build/esm/vendored/source-map/lib/base64.js.map +1 -1
  284. package/build/esm/vendored/source-map/lib/binary-search.js.map +1 -1
  285. package/build/esm/vendored/source-map/lib/mapping-list.js.map +1 -1
  286. package/build/esm/vendored/source-map/lib/quick-sort.js.map +1 -1
  287. package/build/esm/vendored/source-map/lib/source-map-consumer.js.map +1 -1
  288. package/build/esm/vendored/source-map/lib/source-map-generator.js.map +1 -1
  289. package/build/esm/vendored/source-map/lib/source-node.js.map +1 -1
  290. package/build/esm/vendored/source-map/lib/util.js.map +1 -1
  291. package/build/esm/vendored/source-map/source-map.js.map +1 -1
  292. package/build/types/ai/anthropic-ai/constants.d.ts +1 -0
  293. package/build/types/ai/anthropic-ai/constants.d.ts.map +1 -1
  294. package/build/types/ai/anthropic-ai/index.d.ts.map +1 -1
  295. package/build/types/ai/anthropic-ai/streaming.d.ts.map +1 -1
  296. package/build/types/ai/anthropic-ai/tool-runner.d.ts +8 -0
  297. package/build/types/ai/anthropic-ai/tool-runner.d.ts.map +1 -0
  298. package/build/types/ai/anthropic-ai/types.d.ts +3 -0
  299. package/build/types/ai/anthropic-ai/types.d.ts.map +1 -1
  300. package/build/types/ai/flue/index.d.ts.map +1 -1
  301. package/build/types/ai/google-genai/index.d.ts.map +1 -1
  302. package/build/types/ai/langchain/constants.d.ts +1 -0
  303. package/build/types/ai/langchain/constants.d.ts.map +1 -1
  304. package/build/types/ai/langchain/index.d.ts.map +1 -1
  305. package/build/types/ai/openai/index.d.ts.map +1 -1
  306. package/build/types/ai/openai/streaming.d.ts.map +1 -1
  307. package/build/types/ai/openai/types.d.ts +1 -1
  308. package/build/types/ai/openai/types.d.ts.map +1 -1
  309. package/build/types/ai/pi-durable/constants.d.ts +2 -0
  310. package/build/types/ai/pi-durable/constants.d.ts.map +1 -1
  311. package/build/types/ai/pi-durable/index.d.ts.map +1 -1
  312. package/build/types/ai/pi-durable/runs.d.ts +13 -3
  313. package/build/types/ai/pi-durable/runs.d.ts.map +1 -1
  314. package/build/types/ai/pi-durable/types.d.ts +5 -0
  315. package/build/types/ai/pi-durable/types.d.ts.map +1 -1
  316. package/build/types/ai/workers-ai/utils.d.ts +1 -1
  317. package/build/types/ai/workers-ai/utils.d.ts.map +1 -1
  318. package/build/types/exports.d.ts +2 -0
  319. package/build/types/exports.d.ts.map +1 -1
  320. package/build/types/index.d.ts +2 -0
  321. package/build/types/index.d.ts.map +1 -1
  322. package/build/types/integrations/anthropic.d.ts.map +1 -1
  323. package/build/types/integrations/aws-sdk/constants.d.ts +2 -2
  324. package/build/types/integrations/aws-sdk/constants.d.ts.map +1 -1
  325. package/build/types/integrations/aws-sdk/index.d.ts.map +1 -1
  326. package/build/types/integrations/graphql/constants.d.ts +1 -1
  327. package/build/types/integrations/graphql/constants.d.ts.map +1 -1
  328. package/build/types/integrations/hapi/hapi-types.d.ts +2 -6
  329. package/build/types/integrations/hapi/hapi-types.d.ts.map +1 -1
  330. package/build/types/integrations/hapi/hapi-utils.d.ts +6 -2
  331. package/build/types/integrations/hapi/hapi-utils.d.ts.map +1 -1
  332. package/build/types/integrations/hono/connInfo.d.ts +12 -0
  333. package/build/types/integrations/hono/connInfo.d.ts.map +1 -0
  334. package/build/types/integrations/hono/createHonoMiddleware.d.ts +5 -7
  335. package/build/types/integrations/hono/createHonoMiddleware.d.ts.map +1 -1
  336. package/build/types/integrations/hono/honoIntegration.d.ts.map +1 -1
  337. package/build/types/integrations/hono/honoTypes.d.ts +2 -11
  338. package/build/types/integrations/hono/honoTypes.d.ts.map +1 -1
  339. package/build/types/integrations/hono/isMiddleware.d.ts +9 -1
  340. package/build/types/integrations/hono/isMiddleware.d.ts.map +1 -1
  341. package/build/types/integrations/hono/matchResult.d.ts +7 -0
  342. package/build/types/integrations/hono/matchResult.d.ts.map +1 -0
  343. package/build/types/integrations/hono/middlewareHandlers.d.ts +3 -2
  344. package/build/types/integrations/hono/middlewareHandlers.d.ts.map +1 -1
  345. package/build/types/integrations/hono/patchRoute.d.ts +1 -8
  346. package/build/types/integrations/hono/patchRoute.d.ts.map +1 -1
  347. package/build/types/integrations/index.d.ts +5 -1
  348. package/build/types/integrations/index.d.ts.map +1 -1
  349. package/build/types/integrations/nitro/captureStorageEvents.d.ts +5 -0
  350. package/build/types/integrations/nitro/captureStorageEvents.d.ts.map +1 -0
  351. package/build/types/integrations/nitro/captureTracingEvents.d.ts +5 -0
  352. package/build/types/integrations/nitro/captureTracingEvents.d.ts.map +1 -0
  353. package/build/types/integrations/nitro/index.d.ts +29 -0
  354. package/build/types/integrations/nitro/index.d.ts.map +1 -0
  355. package/build/types/integrations/nitro/nitroTypes.d.ts +72 -0
  356. package/build/types/integrations/nitro/nitroTypes.d.ts.map +1 -0
  357. package/build/types/integrations/nitro/setServerTimingHeaders.d.ts +10 -0
  358. package/build/types/integrations/nitro/setServerTimingHeaders.d.ts.map +1 -0
  359. package/build/types/integrations/vercel-ai/index.d.ts.map +1 -1
  360. package/build/types/integrations/vercel-ai/vercel-ai-dc-subscriber.d.ts +7 -1
  361. package/build/types/integrations/vercel-ai/vercel-ai-dc-subscriber.d.ts.map +1 -1
  362. package/build/types/integrations/vercel-ai/vercel-ai-tool-telemetry.d.ts +8 -0
  363. package/build/types/integrations/vercel-ai/vercel-ai-tool-telemetry.d.ts.map +1 -0
  364. package/build/types/orchestrion/bundler/externalRequire.d.ts +15 -0
  365. package/build/types/orchestrion/bundler/externalRequire.d.ts.map +1 -0
  366. package/build/types/orchestrion/bundler/vite.d.ts.map +1 -1
  367. package/build/types/orchestrion/channels.d.ts +2 -0
  368. package/build/types/orchestrion/channels.d.ts.map +1 -1
  369. package/build/types/orchestrion/config/anthropic-ai.d.ts +2 -2
  370. package/build/types/orchestrion/config/anthropic-ai.d.ts.map +1 -1
  371. package/build/types/orchestrion/config/channel-integration-definitions.d.ts +3 -0
  372. package/build/types/orchestrion/config/channel-integration-definitions.d.ts.map +1 -1
  373. package/build/types/orchestrion/config/hono.d.ts.map +1 -1
  374. package/build/types/orchestrion/config/index.d.ts.map +1 -1
  375. package/build/types/orchestrion/config/nitro.d.ts +19 -0
  376. package/build/types/orchestrion/config/nitro.d.ts.map +1 -0
  377. package/build/types/orchestrion/config/openai-compatible.d.ts +4 -0
  378. package/build/types/orchestrion/config/openai-compatible.d.ts.map +1 -1
  379. package/build/types/orchestrion/config/pg.d.ts +1 -1
  380. package/build/types/orchestrion/config/together-ai.d.ts.map +1 -1
  381. package/build/types/orchestrion/instrumentation.d.ts.map +1 -1
  382. package/build/types/utils/monitorStream.d.ts +3 -0
  383. package/build/types/utils/monitorStream.d.ts.map +1 -0
  384. package/build/types/utils/wrapServerRequestHandler.d.ts +38 -0
  385. package/build/types/utils/wrapServerRequestHandler.d.ts.map +1 -0
  386. package/package.json +8 -9
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/integrations/graphql/constants.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,MAAM,oCAAoC,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,MAAM,kBAAkB,uBAAuB,CAAC;AACvD,eAAO,MAAM,kBAAkB,uBAAuB,CAAC;AACvD,eAAO,MAAM,mBAAmB,wBAAwB,CAAC;AAKzD,eAAO,MAAM,mBAAmB,eAA2C,CAAC;AAC5E,eAAO,MAAM,sBAAsB,eAAsC,CAAC"}
@@ -7,7 +7,7 @@ export interface ServerRouteOptions {
7
7
  }
8
8
  export interface ServerRoute {
9
9
  path: string;
10
- method: string;
10
+ method: string | string[];
11
11
  handler?: LifecycleMethod | unknown;
12
12
  options?: ((server: unknown) => ServerRouteOptions) | ServerRouteOptions;
13
13
  [key: string]: unknown;
@@ -64,6 +64,7 @@ export interface HapiResponse {
64
64
  }
65
65
  /** The subset of a hapi request the error listener reads. */
66
66
  export interface HapiRequest {
67
+ method: string;
67
68
  route: {
68
69
  path?: string;
69
70
  method: string;
@@ -90,10 +91,5 @@ export interface HapiServer {
90
91
  events: HapiServerEvents;
91
92
  [key: string]: unknown;
92
93
  }
93
- export declare enum AttributeNames {
94
- HAPI_TYPE = "hapi.type",
95
- PLUGIN_NAME = "hapi.plugin.name",
96
- EXT_TYPE = "server.ext.type"
97
- }
98
94
  export {};
99
95
  //# sourceMappingURL=hapi-types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"hapi-types.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hapi/hapi-types.ts"],"names":[],"mappings":"AAUA,QAAA,MAAM,oBAAoB,YACxB,WAAW,EACX,eAAe,EACf,YAAY,EACZ,cAAc,EACd,eAAe,EACf,eAAe,EACf,WAAW,CACH,CAAC;AAEX,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEzE,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,GAAG,CAAC,EAAE,KAAK,KAAK,OAAO,CAAC;AAErF,MAAM,WAAW,kBAAkB;IACjC,OAAO,CAAC,E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AAC;QAAC,QAAQ,EAAE,MAAM,EAAE,CAAA;KAAE,EAC9C,QAAQ,EAAE,CAAC,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,gBAAgB,KAAK,IAAI,GAChE,IAAI,CAAC;IACR,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,2DAA2D;AAC3D,MAAM,WAAW,UAAU;IACzB,MAAM,EAAE,gBAAgB,CAAC;IACzB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB"}
@@ -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,EACpB,WAAW,EAEZ,MAAM,cAAc,CAAC;AAKtB;;;;;;;GAOG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,WAAW,GAAG,OAAO,CAOtF;AAyBD,KAAK,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;AAEzD,UAAU,YAAY;IACpB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I,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"}
@@ -0,0 +1,12 @@
1
+ import type { Context } from './honoTypes';
2
+ export type HonoRuntime = 'node' | 'bun' | 'deno' | 'cloudflare';
3
+ /** The client side of the request's connection. */
4
+ export interface ConnInfo {
5
+ address?: string;
6
+ port?: number;
7
+ transport?: string;
8
+ addressType?: string;
9
+ }
10
+ /** Gives `undefined` when the runtime object is missing or a read throws. */
11
+ export declare function readConnInfo(context: Context, runtime: HonoRuntime): ConnInfo | undefined;
12
+ //# sourceMappingURL=connInfo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"connInfo.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/connInfo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE3C,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,KAAK,GAAG,MAAM,GAAG,YAAY,CAAC;AAEjE,mDAAmD;AACnD,MAAM,WAAW,QAAQ;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AA0CD,6EAA6E;AAC7E,wBAAgB,YAAY,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,WAAW,GAAG,QAAQ,GAAG,SAAS,CAMzF"}
@@ -1,12 +1,10 @@
1
- import type { Context, GetConnInfo, MiddlewareHandler } from './honoTypes';
1
+ import type { HonoRuntime } from './connInfo';
2
+ import type { Context, MiddlewareHandler } from './honoTypes';
2
3
  import type { SentryHonoMiddlewareOptions } from './types';
3
4
  export declare const SENTRY_HONO_MIDDLEWARE = "__SENTRY_HONO_MIDDLEWARE__";
4
5
  export interface CreateHonoRequestMiddlewareOptions {
5
- /**
6
- * Runtime-specific `getConnInfo` helper (e.g. `@hono/node-server/conninfo`, `hono/bun`).
7
- * Optional — connection-info attributes are simply skipped when it is not provided.
8
- */
9
- getConnInfo?: GetConnInfo;
6
+ /** Selects where the connection info is read from. */
7
+ runtime: HonoRuntime;
10
8
  /** Static `shouldHandleError` callback (Node/Bun/Deno). */
11
9
  shouldHandleError?: SentryHonoMiddlewareOptions['shouldHandleError'];
12
10
  /**
@@ -29,5 +27,5 @@ export interface CreateHonoRequestMiddlewareOptions {
29
27
  * `Context` constructor hook): the deduplicated middleware records its callback on the request scope, and the
30
28
  * middleware that actually runs `responseHandler` uses it in preference to its own default.
31
29
  */
32
- export declare function createHonoRequestMiddleware(options?: CreateHonoRequestMiddlewareOptions): MiddlewareHandler;
30
+ export declare function createHonoRequestMiddleware(options: CreateHonoRequestMiddlewareOptions): MiddlewareHandler;
33
31
  //# sourceMappingURL=createHonoMiddleware.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"createHonoMiddleware.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/createHonoMiddleware.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAE3E,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAK3D,eAAO,MAAM,sBAAsB,+BAA+B,CAAC;AASnE,MAAM,WAAW,kCAAkC;IACjD;;;OAGG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;IAE1B,2DAA2D;IAC3D,iBAAiB,CAAC,EAAE,2BAA2B,CAAC,mBAAmB,CAAC,CAAC;IAErE;;;;OAIG;IACH,wBAAwB,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,2BAA2B,CAAC,mBAAmB,CAAC,CAAC;CACnG;AAqBD;;;;;;;;;;;;GAYG;AACH,wBAAgB,2BAA2B,CAAC,OAAO,GAAE,kCAAuC,GAAG,iBAAiB,CA4C/G"}
1
+ {"version":3,"file":"createHonoMiddleware.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/createHonoMiddleware.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,KAAK,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAE9D,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAK3D,eAAO,MAAM,sBAAsB,+BAA+B,CAAC;AASnE,MAAM,WAAW,kCAAkC;IACjD,sDAAsD;IACtD,OAAO,EAAE,WAAW,CAAC;IAErB,2DAA2D;IAC3D,iBAAiB,CAAC,EAAE,2BAA2B,CAAC,mBAAmB,CAAC,CAAC;IAErE;;;;OAIG;IACH,wBAAwB,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,2BAA2B,CAAC,mBAAmB,CAAC,CAAC;CACnG;AAqBD;;;;;;;;;;;;GAYG;AACH,wBAAgB,2BAA2B,CAAC,OAAO,EAAE,kCAAkC,GAAG,iBAAiB,CA4C1G"}
@@ -1 +1 @@
1
- {"version":3,"file":"honoIntegration.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/honoIntegration.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,GAAG,EAAe,IAAI,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAY7E,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAM3D,MAAM,WAAW,sBAAuB,SAAQ,2BAA2B;CAAG;AA0C9E;;;;;;;;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 {
@@ -45,13 +45,4 @@ export interface Hono<E extends Env = Env> {
45
45
  routes: HonoRoute[];
46
46
  [key: string]: any;
47
47
  }
48
- export interface ConnInfoRemote {
49
- address?: string;
50
- port?: number;
51
- transport?: string;
52
- addressType?: string;
53
- }
54
- export type GetConnInfo = (context: any) => {
55
- remote?: ConnInfoRemote;
56
- };
57
48
  //# sourceMappingURL=honoTypes.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"honoTypes.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/honoTypes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAIH,MAA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AC;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"}
@@ -1,9 +1,10 @@
1
- import type { Context, GetConnInfo } from './honoTypes';
1
+ import type { Context } from './honoTypes';
2
+ import { type HonoRuntime } from './connInfo';
2
3
  import { type SentryHonoMiddlewareOptions } from './types';
3
4
  /**
4
5
  * Request handler for Hono framework
5
6
  */
6
- export declare function requestHandler(context: Context, getConnInfo?: GetConnInfo): void;
7
+ export declare function requestHandler(context: Context, runtime: HonoRuntime): void;
7
8
  /**
8
9
  * Response handler for Hono framework
9
10
  */
@@ -1 +1 @@
1
- {"version":3,"file":"middlewareHandlers.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/middlewareHandlers.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAIxD,OAAO,EAAE,KAAK,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAG3D;;GAEG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,EAAE,WAAW,CAAC,EAAE,WAAW,GAAG,IAAI,CAchF;AA8CD;;GAEG;AACH,wBAAgB,eAAe,CAC7B,OAAO,EAAE,OAAO,EAChB,iBAAiB,CAAC,EAAE,2BAA2B,CAAC,mBAAmB,CAAC,GACnE,IAAI,CAKN;AAED;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,OAAO,EAChB,iBAAiB,CAAC,EAAE,2BAA2B,CAAC,mBAAmB,CAAC,GACnE,IAAI,CAQN"}
1
+ {"version":3,"file":"middlewareHandlers.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/middlewareHandlers.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,KAAK,WAAW,EAAgB,MAAM,YAAY,CAAC;AAI5D,OAAO,EAAE,KAAK,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAW3D;;GAEG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,WAAW,GAAG,IAAI,CAY3E;AAgED;;GAEG;AACH,wBAAgB,eAAe,CAC7B,OAAO,EAAE,OAAO,EAChB,iBAAiB,CAAC,EAAE,2BAA2B,CAAC,mBAAmB,CAAC,GACnE,IAAI,CAKN;AAED;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,OAAO,EAChB,iBAAiB,CAAC,EAAE,2BAA2B,CAAC,mBAAmB,CAAC,GACnE,IAAI,CAQN"}
@@ -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,6 +1,10 @@
1
1
  import type { Integration } from '@sentry/core';
2
2
  /** These are integrations that are tracing-only integrations. */
3
3
  export declare function getTracingIntegrations(): Integration[];
4
- /** These are integrations that cover error capture, in addition to tracing. */
4
+ /**
5
+ * These are default integrations that are registered regardless of whether tracing is enabled -
6
+ * either because they cover error capture in addition to tracing, or because they handle trace
7
+ * propagation (which must work in tracing-without-performance mode too).
8
+ */
5
9
  export declare function getErrorIntegrations(): Integration[];
6
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/integrations/index.ts"],"names":[],"mappings":"AAoCA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAGhD,iEAAiE;AACjE,wBAAgB,sBAAsB,IAAI,WAAW,EAAE,CAqCtD;AAED,+EAA+E;AAC/E,wBAAgB,oBAAoB,IAAI,WAAW,EAAE,CAEpD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/integrations/index.ts"],"names":[],"mappings":"AAqCA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAGhD,iEAAiE;AACjE,wBAAgB,sBAAsB,IAAI,WAAW,EAAE,CAqCtD;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,IAAI,WAAW,EAAE,CASpD"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Subscribes to unstorage tracing channels and creates Sentry spans for storage operations.
3
+ */
4
+ export declare function captureStorageEvents(): void;
5
+ //# sourceMappingURL=captureStorageEvents.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"captureStorageEvents.d.ts","sourceRoot":"","sources":["../../../../src/integrations/nitro/captureStorageEvents.ts"],"names":[],"mappings":"AA2DA;;GAEG;AACH,wBAAgB,oBAAoB,IAAI,IAAI,CAU3C"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Captures tracing events emitted by Nitro tracing channels.
3
+ */
4
+ export declare function captureTracingEvents(): void;
5
+ //# sourceMappingURL=captureTracingEvents.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"captureTracingEvents.d.ts","sourceRoot":"","sources":["../../../../src/integrations/nitro/captureTracingEvents.ts"],"names":[],"mappings":"AA8BA;;GAEG;AACH,wBAAgB,oBAAoB,IAAI,IAAI,CAQ3C"}
@@ -0,0 +1,29 @@
1
+ export interface NitroIntegrationOptions {
2
+ /**
3
+ * Set `Server-Timing` response headers carrying the current `sentry-trace`/`baggage`, so the browser
4
+ * SDK can connect a pageload trace to the backend trace.
5
+ *
6
+ * @default true
7
+ */
8
+ serverTiming?: boolean;
9
+ /**
10
+ * Create cache spans for unstorage operations.
11
+ *
12
+ * @default true
13
+ */
14
+ storage?: boolean;
15
+ }
16
+ /**
17
+ * Instruments a Nitro server via its `node:diagnostics_channel` tracing channels: HTTP server and
18
+ * middleware spans (h3/srvx), cache spans (unstorage) and `Server-Timing` trace-propagation headers.
19
+ * It subscribes to those channels, so it is inert unless a Nitro app (or a framework that enables the
20
+ * same tracing channels) is running.
21
+ *
22
+ * Registered regardless of whether tracing is enabled, because trace propagation must work in
23
+ * tracing-without-performance mode too; without tracing, the spans it starts are non-recording.
24
+ * Error capture is handled by the `@sentry/nitro` runtime plugin's Nitro `error` hook.
25
+ */
26
+ export declare const nitroIntegration: (options?: NitroIntegrationOptions | undefined) => import("@sentry/core").Integration & {
27
+ name: "Nitro";
28
+ };
29
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/integrations/nitro/index.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,uBAAuB;IACtC;;;;;OAKG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAqBD;;;;;;;;;GASG;AACH,eAAO,MAAM,gBAAgB;;CAAuC,CAAC"}
@@ -0,0 +1,72 @@
1
+ /**
2
+ * Vendored subset of the `nitro`/`h3`/`srvx`/`unstorage` tracing types used by the Sentry Nitro
3
+ * instrumentation.
4
+ *
5
+ * The instrumentation lives in `@sentry/server-utils`, a dependency of every server SDK — including
6
+ * apps that do not use Nitro. We therefore declare no dependency on those packages at all: the
7
+ * instrumentation only ever subscribes to `node:diagnostics_channel` channels, so these minimal
8
+ * structural types stand in for the real `nitro/h3`, `h3/tracing`, `srvx/tracing` and
9
+ * `unstorage/tracing` types at the boundary.
10
+ *
11
+ * ATTENTION: keep these permissive — the payloads are produced by the frameworks, so these types
12
+ * must stay assignable from the real ones. Only the fields the instrumentation reads are declared.
13
+ */
14
+ /** Minimal shape of an `h3` event, as read from the `h3.request` tracing channel. */
15
+ export interface NitroH3Event {
16
+ url: {
17
+ href: string;
18
+ };
19
+ req: {
20
+ method?: string;
21
+ };
22
+ res?: {
23
+ headers: {
24
+ append: (name: string, value: string) => void;
25
+ };
26
+ };
27
+ context?: {
28
+ matchedRoute?: {
29
+ route?: string;
30
+ };
31
+ params?: unknown;
32
+ /** Set by the Server-Timing instrumentation so trace headers are only appended once per request. */
33
+ _sentryServerTimingSet?: boolean;
34
+ };
35
+ }
36
+ /** Payload of the `h3.request` tracing channel (`h3/tracing`'s `TracingRequestEvent`). */
37
+ export interface H3TracingRequestEvent {
38
+ type: 'middleware' | 'route';
39
+ event: NitroH3Event;
40
+ }
41
+ /** Payload of the `srvx.request`/`srvx.middleware` tracing channels (`srvx/tracing`'s `RequestEvent`). */
42
+ export interface SrvxRequestEvent {
43
+ server: {
44
+ url?: string;
45
+ options: {
46
+ port?: number;
47
+ };
48
+ };
49
+ request: {
50
+ _url?: {
51
+ href: string;
52
+ pathname: string;
53
+ };
54
+ method: string;
55
+ headers: Headers;
56
+ };
57
+ middleware?: {
58
+ index: number;
59
+ handler: {
60
+ name?: string;
61
+ };
62
+ };
63
+ }
64
+ /** Payload of the `unstorage.*` tracing channels (`unstorage/tracing`'s `TraceContext`). */
65
+ export interface UnstorageTraceContext {
66
+ keys?: string[];
67
+ base?: string;
68
+ driver?: {
69
+ name?: string;
70
+ };
71
+ }
72
+ //# sourceMappingURL=nitroTypes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nitroTypes.d.ts","sourceRoot":"","sources":["../../../../src/integrations/nitro/nitroTypes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,qFAAqF;AACrF,MAAM,WAAW,YAAY;IAC3B,GAAG,E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I,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CAC5B"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Subscribes to the h3 request tracing channel to set Server-Timing trace headers on every response.
3
+ *
4
+ * This is deliberately independent of span sampling: `getTraceData()` returns valid trace
5
+ * propagation data even in tracing-without-performance mode, and the browser SDK reads these headers
6
+ * (via the Performance API) to connect a pageload to the backend trace regardless of whether the
7
+ * server records spans.
8
+ */
9
+ export declare function captureServerTimingHeaders(): void;
10
+ //# sourceMappingURL=setServerTimingHeaders.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setServerTimingHeaders.d.ts","sourceRoot":"","sources":["../../../../src/integrations/nitro/setServerTimingHeaders.ts"],"names":[],"mappings":"AAQA;;;;;;;GAOG;AACH,wBAAgB,0BAA0B,IAAI,IAAI,CAejD"}
@@ -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,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,MA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,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"}
@@ -0,0 +1,15 @@
1
+ import type { Plugin } from 'vite';
2
+ type ResolveIdHandler = Extract<NonNullable<Plugin['resolveId']>, (...args: never[]) => unknown>;
3
+ type ResolveIdParameters = Parameters<ResolveIdHandler>;
4
+ /**
5
+ * Creates a `resolveId` handler that bundles the external packages that bundled CommonJS `require()`s.
6
+ *
7
+ * Rolldown keeps these calls as `__require()`, which a second bundler over the server output can't follow:
8
+ * - https://vite.dev/guide/migration#require-calls-for-externalized-modules
9
+ * - https://rolldown.rs/in-depth/bundling-cjs#require-external-modules
10
+ *
11
+ * Only handles requires from packages bundled for orchestrion, and from packages bundled because of them.
12
+ */
13
+ export declare function createExternalRequireResolver(moduleNames: readonly string[]): (this: ThisParameterType<ResolveIdHandler>, ...args: ResolveIdParameters) => Promise<string | null>;
14
+ export {};
15
+ //# sourceMappingURL=externalRequire.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"externalRequire.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/bundler/externalRequire.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAEnC,KAAK,gBAAgB,GAAG,OAAO,CAAC,WAAW,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,KAAK,EAAE,KAAK,OAAO,CAAC,CAAC;AACjG,KAAK,mBAAmB,GAAG,UAAU,CAAC,gBAAgB,CAAC,CAAC;AAIxD;;;;;;;;GAQG;AACH,wBAAgB,6BAA6B,CAC3C,WAAW,EAAE,SAAS,MAAM,EAAE,GAC7B,CAAC,IAAI,EAAE,iBAAiB,CAAC,gBAAgB,CAAC,EAAE,GAAG,IAAI,EAAE,mBAAmB,KAAK,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CA4CrG"}
@@ -1 +1 @@
1
- {"version":3,"file":"vite.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/bundler/vite.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAa,MAAM,EAA8B,MAAM,MAAM,CAAC;AAE1E,YAAY,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,MAAM,CAAC;AAEjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAsC/C;;;;;;;;;;;;;GAaG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,GAAE,aAAkB,GAAG,MAAM,CAwG3E"}
1
+ {"version":3,"file":"vite.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/bundler/vite.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAa,MAAM,EAA8B,MAAM,MAAM,CAAC;AAE1E,YAAY,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,MAAM,CAAC;AAEjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AA4C/C;;;;;;;;;;;;;GAaG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,GAAE,aAAkB,GAAG,MAAM,CAkH3E"}
@@ -31,6 +31,8 @@ export declare const CHANNELS: {
31
31
  readonly AMQPLIB_CONNECT: 'orchestrion:amqplib:connect';
32
32
  readonly ANTHROPIC_CHAT: 'orchestrion:@anthropic-ai/sdk:chat';
33
33
  readonly ANTHROPIC_MESSAGES_STREAM: 'orchestrion:@anthropic-ai/sdk:messages-stream';
34
+ readonly ANTHROPIC_TOOL_RUNNER: 'orchestrion:@anthropic-ai/sdk:tool-runner';
35
+ readonly ANTHROPIC_SESSION_TOOL_RUNNER: 'orchestrion:@anthropic-ai/sdk:session-tool-runner';
34
36
  readonly DATALOADER_CONSTRUCT: 'orchestrion:dataloader:construct';
35
37
  readonly DATALOADER_LOAD: 'orchestrion:dataloader:load';
36
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,13 +7,13 @@ 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[];
15
13
  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';
16
+ readonly ANTHROPIC_TOOL_RUNNER: 'orchestrion:@anthropic-ai/sdk:tool-runner';
17
+ readonly ANTHROPIC_SESSION_TOOL_RUNNER: 'orchestrion:@anthropic-ai/sdk:session-tool-runner';
18
18
  };
19
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;;GAmB3C,CAAC;AAEpC,eAAO,MAAM,sBAAsB,UAAoC,CAAC;AAExE,eAAO,MAAM,mBAAmB;aAC9B,cAAc,EAAE,oCAAoC;aACpD,yBAAyB,EAAE,+CAA+C;CAClE,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"}
@@ -126,6 +126,9 @@ export declare const CHANNEL_INTEGRATION_DEFINITIONS: readonly [{
126
126
  }, {
127
127
  readonly exportName: 'dataloaderIntegration';
128
128
  readonly modules: readonly ["dataloader"];
129
+ }, {
130
+ readonly exportName: 'nitroIntegration';
131
+ readonly modules: readonly ["h3"];
129
132
  }];
130
133
  /** Look up the subscriber export name for an instrumented package, if any. */
131
134
  export declare function subscriberExportForModule(moduleName: string): string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"channel-integration-definitions.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/channel-integration-definitions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,+BAA+B;yBAC5B,qBAAqB;;;yBACrB,uBAAuB;;;yBACvB,iBAAiB;;;yBACjB,mBAAmB;;;yBACnB,kBAAkB;;;yBAClB,mBAAmB;;;yBACnB,kBAAkB;;;yBAClB,qBAAqB;;;yBACrB,iBAAiB;;;yBACjB,oBAAoB;;;yBACpB,wBAAwB;;;yBACxB,wBAAwB;;;yBACxB,mBAAmB;;;yBACnB,wBAAwB;;;yBACxB,wBAAwB;;;yBACxB,sBAAsB;;;yBACtB,iBAAiB;;;yBACjB,uBAAuB;;;yBACvB,qBAAqB;;;yBACrB,qBAAqB;;;yBAErB,sBAAsB;;;yBAUtB,sBAAsB;;;yBACtB,mBAAmB;;;yBACnB,iBAAiB;;;yBACjB,sBAAsB;;;yBACtB,sBAAsB;;;yBACtB,gBAAgB;;;yBAChB,qBAAqB;;;yBACrB,oBAAoB;;;yBACpB,iBAAiB;;;yBACjB,iBAAiB;;;yBACjB,gBAAgB;;;yBAChB,oBAAoB;;;yBACpB,oBAAoB;;;yBACpB,kBAAkB;;;yBAClB,kBAAkB;;;yBAClB,uBAAuB;;EAC+C,CAAC;AAEvF,8EAA8E;AAC9E,wBAAgB,yBAAyB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAEhF"}
1
+ {"version":3,"file":"channel-integration-definitions.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/channel-integration-definitions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,+BAA+B;yBAC5B,qBAAqB;;;yBACrB,uBAAuB;;;yBACvB,iBAAiB;;;yBACjB,mBAAmB;;;yBACnB,kBAAkB;;;yBAClB,mBAAmB;;;yBACnB,kBAAkB;;;yBAClB,qBAAqB;;;yBACrB,iBAAiB;;;yBACjB,oBAAoB;;;yBACpB,wBAAwB;;;yBACxB,wBAAwB;;;yBACxB,mBAAmB;;;yBACnB,wBAAwB;;;yBACxB,wBAAwB;;;yBACxB,sBAAsB;;;yBACtB,iBAAiB;;;yBACjB,uBAAuB;;;yBACvB,qBAAqB;;;yBACrB,qBAAqB;;;yBAErB,sBAAsB;;;yBAUtB,sBAAsB;;;yBACtB,mBAAmB;;;yBACnB,iBAAiB;;;yBACjB,sBAAsB;;;yBACtB,sBAAsB;;;yBACtB,gBAAgB;;;yBAChB,qBAAqB;;;yBACrB,oBAAoB;;;yBACpB,iBAAiB;;;yBACjB,iBAAiB;;;yBACjB,gBAAgB;;;yBAChB,oBAAoB;;;yBACpB,oBAAoB;;;yBACpB,kBAAkB;;;yBAClB,kBAAkB;;;yBAClB,uBAAuB;;;yBACvB,kBAAkB;;EACoD,CAAC;AAEvF,8EAA8E;AAC9E,wBAAgB,yBAAyB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAEhF"}
@@ -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"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAgDzD;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,uBAAuB,EAAE,qBAAqB,EA0C1D,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,eAAO,MAAM,+BAA+B,EAAE,qBAAqB,EAElE,CAAC;AAEF;;;;;;;;;;GAUG;AACH,wBAAgB,uBAAuB,CAAC,gBAAgB,GAAE,qBAAqB,EAAO,GAAG,MAAM,EAAE,CAOhG;AAED,8FAA8F;AAC9F,eAAO,MAAM,yBAAyB,EAAE,MAAM,EAA8B,CAAC;AAE7E;;;;;;;;;;GAUG;AACH,wBAAgB,0BAA0B,IAAI,MAAM,EAAE,CAErD;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,4BAA4B,CAC1C,QAAQ,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,EACvC,WAAW,GAAE,MAAM,EAA8B,GAChD,MAAM,EAAE,GAAG,SAAS,CAKtB;AAGD,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1C,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAGxC,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAiDzD;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,uBAAuB,EAAE,qBAAqB,EA2C1D,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,eAAO,MAAM,+BAA+B,EAAE,qBAAqB,EAElE,CAAC;AAEF;;;;;;;;;;GAUG;AACH,wBAAgB,uBAAuB,CAAC,gBAAgB,GAAE,qBAAqB,EAAO,GAAG,MAAM,EAAE,CAOhG;AAED,8FAA8F;AAC9F,eAAO,MAAM,yBAAyB,EAAE,MAAM,EAA8B,CAAC;AAE7E;;;;;;;;;;GAUG;AACH,wBAAgB,0BAA0B,IAAI,MAAM,EAAE,CAErD;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,4BAA4B,CAC1C,QAAQ,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,EACvC,WAAW,GAAE,MAAM,EAA8B,GAChD,MAAM,EAAE,GAAG,SAAS,CAKtB;AAGD,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1C,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAGxC,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC"}
@@ -0,0 +1,19 @@
1
+ import type { InstrumentationConfig } from '../apmTypes';
2
+ /**
3
+ * Nitro's instrumentation consumes tracing channels that h3, srvx and unstorage publish natively, so
4
+ * no channels are injected: transforming h3's entry file only registers `nitroIntegration` at
5
+ * evaluation time, which is what installs it on a bundler-only SDK like `@sentry/cloudflare`. On
6
+ * `@sentry/node` (and deno/bun) the integration is registered statically, so this is a no-op there.
7
+ *
8
+ * Anchored on `h3` because every HTTP-serving Nitro app loads it. The anchor only triggers
9
+ * registration; the integration then subscribes to all of its channels (including unstorage's),
10
+ * independent of which module loaded it.
11
+ *
12
+ * The `-0` in the version range matters: h3 ships the version Nitro 3 uses as a prerelease
13
+ * (`2.0.1-rc.*`). The orchestrion matcher is the vendored `semifies` (used by both the runtime loader
14
+ * and the bundler plugins), where a range carrying a prerelease tag enables prerelease matching
15
+ * across patch tuples — so `>=2.0.0-0` matches `2.0.1-rc.*`. (Plain node-semver would not: it drops
16
+ * prereleases of a higher patch tuple.)
17
+ */
18
+ export declare const nitroConfig: InstrumentationConfig[];
19
+ //# sourceMappingURL=nitro.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nitro.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/nitro.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAGzD;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,WAAW,yBAEW,CAAC"}