@sentry/server-utils 11.11.0 → 11.13.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 (1408) hide show
  1. package/LICENSE +31 -0
  2. package/build/THIRD-PARTY-LICENSES.txt +94 -94
  3. package/build/cjs/chunks/config.js +3388 -0
  4. package/build/cjs/chunks/config.js.map +1 -0
  5. package/build/cjs/{vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/core-Bd0h-mo3.js → chunks/core-BiWIBBjf.js} +40 -23
  6. package/build/cjs/chunks/core-BiWIBBjf.js.map +1 -0
  7. package/build/cjs/chunks/core.js +2 -0
  8. package/build/cjs/chunks/debug-build.js +15 -0
  9. package/build/cjs/chunks/debug-build.js.map +1 -0
  10. package/build/cjs/{vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm → chunks}/esbuild.js +20 -18
  11. package/build/cjs/chunks/esbuild.js.map +1 -0
  12. package/build/cjs/chunks/exports.js +7012 -0
  13. package/build/cjs/chunks/exports.js.map +1 -0
  14. package/build/cjs/{vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm → chunks}/instrumentation-serde-C-Xxv-jj.js +14 -6
  15. package/build/cjs/chunks/instrumentation-serde-C-Xxv-jj.js.map +1 -0
  16. package/build/cjs/chunks/module-details-from-path.js +15969 -0
  17. package/build/cjs/chunks/module-details-from-path.js.map +1 -0
  18. package/build/cjs/chunks/moduleInjectedTransform.js +10882 -0
  19. package/build/cjs/chunks/moduleInjectedTransform.js.map +1 -0
  20. package/build/cjs/chunks/options.js +66 -0
  21. package/build/cjs/chunks/options.js.map +1 -0
  22. package/build/cjs/chunks/pi-ai.js +80 -0
  23. package/build/cjs/chunks/pi-ai.js.map +1 -0
  24. package/build/cjs/chunks/registration-only.js +38 -0
  25. package/build/cjs/chunks/registration-only.js.map +1 -0
  26. package/build/cjs/chunks/resolve.js +75 -0
  27. package/build/cjs/chunks/resolve.js.map +1 -0
  28. package/build/cjs/chunks/rolldown-runtime.js +48 -0
  29. package/build/cjs/{vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/rollup-DCG8HLmh.js → chunks/rollup-CzqrjlS4.js} +17 -19
  30. package/build/cjs/chunks/rollup-CzqrjlS4.js.map +1 -0
  31. package/build/cjs/index.js +10409 -158
  32. package/build/cjs/index.js.map +1 -1
  33. package/build/cjs/index.no-diagnostic-channels.js +30 -49
  34. package/build/cjs/index.request-handler.js +240 -7
  35. package/build/cjs/index.request-handler.js.map +1 -1
  36. package/build/cjs/orchestrion/bundler/bun.js +102 -35
  37. package/build/cjs/orchestrion/bundler/bun.js.map +1 -1
  38. package/build/cjs/orchestrion/bundler/esbuild.js +59 -50
  39. package/build/cjs/orchestrion/bundler/esbuild.js.map +1 -1
  40. package/build/cjs/orchestrion/bundler/load-hook.js +24 -21
  41. package/build/cjs/orchestrion/bundler/load-hook.js.map +1 -1
  42. package/build/cjs/orchestrion/bundler/rollup.js +79 -70
  43. package/build/cjs/orchestrion/bundler/rollup.js.map +1 -1
  44. package/build/cjs/orchestrion/bundler/vite.js +212 -165
  45. package/build/cjs/orchestrion/bundler/vite.js.map +1 -1
  46. package/build/cjs/orchestrion/bundler/webpack-loader.js +134 -16
  47. package/build/cjs/orchestrion/bundler/webpack-loader.js.map +1 -1
  48. package/build/cjs/orchestrion/bundler/webpack.js +157 -77
  49. package/build/cjs/orchestrion/bundler/webpack.js.map +1 -1
  50. package/build/cjs/orchestrion/config/index.js +12 -129
  51. package/build/esm/_virtual/_@oxc-project_runtime@0.158.0/helpers/defineProperty.js +17 -0
  52. package/build/esm/_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/assertClassBrand.js +9 -0
  53. package/build/esm/_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/checkPrivateRedeclaration.js +8 -0
  54. package/build/esm/_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/classPrivateFieldGet2.js +9 -0
  55. package/build/esm/_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/classPrivateFieldInitSpec.js +9 -0
  56. package/build/esm/_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/classPrivateFieldSet2.js +9 -0
  57. package/build/esm/_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/classPrivateMethodInitSpec.js +9 -0
  58. package/build/esm/_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/defineProperty.js +11 -0
  59. package/build/esm/_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/toPrimitive.js +13 -0
  60. package/build/esm/_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/toPropertyKey.js +8 -0
  61. package/build/esm/_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/typeof.js +10 -0
  62. package/build/esm/_virtual/_@oxc-project_runtime@0.158.0/helpers/toPrimitive.js +19 -0
  63. package/build/esm/_virtual/_@oxc-project_runtime@0.158.0/helpers/toPropertyKey.js +15 -0
  64. package/build/esm/_virtual/_@oxc-project_runtime@0.158.0/helpers/typeof.js +15 -0
  65. package/build/esm/_virtual/_cjs/require_array_set.js +2 -0
  66. package/build/esm/_virtual/_cjs/require_astring.js +2 -0
  67. package/build/esm/_virtual/_cjs/require_base64.js +2 -0
  68. package/build/esm/_virtual/_cjs/require_base64_vlq.js +2 -0
  69. package/build/esm/_virtual/_cjs/require_binary_search.js +2 -0
  70. package/build/esm/_virtual/_cjs/require_esquery_min.js +2 -0
  71. package/build/esm/_virtual/_cjs/require_mapping_list.js +2 -0
  72. package/build/esm/_virtual/_cjs/require_meriyah.js +2 -0
  73. package/build/esm/_virtual/_cjs/require_quick_sort.js +2 -0
  74. package/build/esm/_virtual/_cjs/require_source_map.js +2 -0
  75. package/build/esm/_virtual/_cjs/require_source_map_consumer.js +2 -0
  76. package/build/esm/_virtual/_cjs/require_source_map_generator.js +2 -0
  77. package/build/esm/_virtual/_cjs/require_source_node.js +2 -0
  78. package/build/esm/_virtual/_cjs/require_util.js +2 -0
  79. package/build/esm/_virtual/_rolldown/runtime.js +35 -0
  80. package/build/esm/ai/anthropic-ai/constants.js +10 -6
  81. package/build/esm/ai/anthropic-ai/constants.js.map +1 -1
  82. package/build/esm/ai/anthropic-ai/index.js +183 -199
  83. package/build/esm/ai/anthropic-ai/index.js.map +1 -1
  84. package/build/esm/ai/anthropic-ai/streaming.js +176 -137
  85. package/build/esm/ai/anthropic-ai/streaming.js.map +1 -1
  86. package/build/esm/ai/anthropic-ai/tool-runner.js +103 -81
  87. package/build/esm/ai/anthropic-ai/tool-runner.js.map +1 -1
  88. package/build/esm/ai/anthropic-ai/utils.js +74 -47
  89. package/build/esm/ai/anthropic-ai/utils.js.map +1 -1
  90. package/build/esm/ai/core/apiPromise.js +35 -47
  91. package/build/esm/ai/core/apiPromise.js.map +1 -1
  92. package/build/esm/ai/core/gen-ai-attributes.js +29 -2
  93. package/build/esm/ai/core/gen-ai-attributes.js.map +1 -1
  94. package/build/esm/ai/core/streaming-tool-calls.js +37 -0
  95. package/build/esm/ai/core/streaming-tool-calls.js.map +1 -0
  96. package/build/esm/ai/core/utils.js +200 -144
  97. package/build/esm/ai/core/utils.js.map +1 -1
  98. package/build/esm/ai/flue/constants.js +31 -6
  99. package/build/esm/ai/flue/constants.js.map +1 -1
  100. package/build/esm/ai/flue/index.js +140 -136
  101. package/build/esm/ai/flue/index.js.map +1 -1
  102. package/build/esm/ai/flue/utils.js +93 -179
  103. package/build/esm/ai/flue/utils.js.map +1 -1
  104. package/build/esm/ai/google-genai/constants.js +15 -8
  105. package/build/esm/ai/google-genai/constants.js.map +1 -1
  106. package/build/esm/ai/google-genai/index.js +240 -249
  107. package/build/esm/ai/google-genai/index.js.map +1 -1
  108. package/build/esm/ai/google-genai/streaming.js +90 -64
  109. package/build/esm/ai/google-genai/streaming.js.map +1 -1
  110. package/build/esm/ai/google-genai/utils.js +115 -102
  111. package/build/esm/ai/google-genai/utils.js.map +1 -1
  112. package/build/esm/ai/index.js +12 -0
  113. package/build/esm/ai/langchain/constants.js +9 -8
  114. package/build/esm/ai/langchain/constants.js.map +1 -1
  115. package/build/esm/ai/langchain/embeddings.js +83 -67
  116. package/build/esm/ai/langchain/embeddings.js.map +1 -1
  117. package/build/esm/ai/langchain/index.js +249 -307
  118. package/build/esm/ai/langchain/index.js.map +1 -1
  119. package/build/esm/ai/langchain/typesafe-classifier.js +43 -43
  120. package/build/esm/ai/langchain/typesafe-classifier.js.map +1 -1
  121. package/build/esm/ai/langchain/utils.js +327 -292
  122. package/build/esm/ai/langchain/utils.js.map +1 -1
  123. package/build/esm/ai/langgraph/agent-span.js +83 -0
  124. package/build/esm/ai/langgraph/agent-span.js.map +1 -0
  125. package/build/esm/ai/langgraph/constants.js +3 -2
  126. package/build/esm/ai/langgraph/constants.js.map +1 -1
  127. package/build/esm/ai/langgraph/index.js +119 -159
  128. package/build/esm/ai/langgraph/index.js.map +1 -1
  129. package/build/esm/ai/langgraph/stream.js +89 -0
  130. package/build/esm/ai/langgraph/stream.js.map +1 -0
  131. package/build/esm/ai/langgraph/utils.js +171 -195
  132. package/build/esm/ai/langgraph/utils.js.map +1 -1
  133. package/build/esm/ai/mastra/classifier-evaluation.js +25 -18
  134. package/build/esm/ai/mastra/classifier-evaluation.js.map +1 -1
  135. package/build/esm/ai/mastra/constants.js +63 -18
  136. package/build/esm/ai/mastra/constants.js.map +1 -1
  137. package/build/esm/ai/mastra/index.js +164 -190
  138. package/build/esm/ai/mastra/index.js.map +1 -1
  139. package/build/esm/ai/mastra/span-registry.js +17 -8
  140. package/build/esm/ai/mastra/span-registry.js.map +1 -1
  141. package/build/esm/ai/mastra/utils.js +110 -137
  142. package/build/esm/ai/mastra/utils.js.map +1 -1
  143. package/build/esm/ai/mistral/constants.js +19 -9
  144. package/build/esm/ai/mistral/constants.js.map +1 -1
  145. package/build/esm/ai/mistral/index.js +111 -113
  146. package/build/esm/ai/mistral/index.js.map +1 -1
  147. package/build/esm/ai/mistral/streaming.js +183 -186
  148. package/build/esm/ai/mistral/streaming.js.map +1 -1
  149. package/build/esm/ai/mistral/utils.js +67 -73
  150. package/build/esm/ai/mistral/utils.js.map +1 -1
  151. package/build/esm/ai/openai/constants.js +20 -22
  152. package/build/esm/ai/openai/constants.js.map +1 -1
  153. package/build/esm/ai/openai/index.js +151 -159
  154. package/build/esm/ai/openai/index.js.map +1 -1
  155. package/build/esm/ai/openai/mapping.js +76 -53
  156. package/build/esm/ai/openai/mapping.js.map +1 -1
  157. package/build/esm/ai/openai/streaming.js +151 -152
  158. package/build/esm/ai/openai/streaming.js.map +1 -1
  159. package/build/esm/ai/openai/utils.js +94 -110
  160. package/build/esm/ai/openai/utils.js.map +1 -1
  161. package/build/esm/ai/pi-ai/chat.js +74 -0
  162. package/build/esm/ai/pi-ai/chat.js.map +1 -0
  163. package/build/esm/ai/pi-ai/constants.js +6 -0
  164. package/build/esm/ai/pi-ai/constants.js.map +1 -0
  165. package/build/esm/ai/pi-ai/messages.js +114 -107
  166. package/build/esm/ai/pi-ai/messages.js.map +1 -1
  167. package/build/esm/ai/pi-ai/providers.js +21 -18
  168. package/build/esm/ai/pi-ai/providers.js.map +1 -1
  169. package/build/esm/ai/pi-ai/recording.js +28 -0
  170. package/build/esm/ai/pi-ai/recording.js.map +1 -0
  171. package/build/esm/ai/pi-ai/usage.js +31 -27
  172. package/build/esm/ai/pi-ai/usage.js.map +1 -1
  173. package/build/esm/ai/pi-durable/constants.js +15 -5
  174. package/build/esm/ai/pi-durable/constants.js.map +1 -1
  175. package/build/esm/ai/pi-durable/index.js +164 -165
  176. package/build/esm/ai/pi-durable/index.js.map +1 -1
  177. package/build/esm/ai/pi-durable/runs.js +134 -136
  178. package/build/esm/ai/pi-durable/runs.js.map +1 -1
  179. package/build/esm/ai/pi-durable/tools.js +152 -160
  180. package/build/esm/ai/pi-durable/tools.js.map +1 -1
  181. package/build/esm/ai/pi-durable/utils.js +6 -4
  182. package/build/esm/ai/pi-durable/utils.js.map +1 -1
  183. package/build/esm/ai/typesafe/constants.js +3 -2
  184. package/build/esm/ai/typesafe/constants.js.map +1 -1
  185. package/build/esm/ai/typesafe/index.js +82 -94
  186. package/build/esm/ai/typesafe/index.js.map +1 -1
  187. package/build/esm/ai/vercel-ai/index.js +55 -60
  188. package/build/esm/ai/vercel-ai/index.js.map +1 -1
  189. package/build/esm/ai/workers-ai/constants.js +15 -2
  190. package/build/esm/ai/workers-ai/constants.js.map +1 -1
  191. package/build/esm/ai/workers-ai/index.js +82 -78
  192. package/build/esm/ai/workers-ai/index.js.map +1 -1
  193. package/build/esm/ai/workers-ai/streaming.js +136 -140
  194. package/build/esm/ai/workers-ai/streaming.js.map +1 -1
  195. package/build/esm/ai/workers-ai/utils.js +131 -143
  196. package/build/esm/ai/workers-ai/utils.js.map +1 -1
  197. package/build/esm/async-context.js +74 -63
  198. package/build/esm/async-context.js.map +1 -1
  199. package/build/esm/debug-build.js +9 -3
  200. package/build/esm/debug-build.js.map +1 -1
  201. package/build/esm/eve.js +61 -22
  202. package/build/esm/eve.js.map +1 -1
  203. package/build/esm/exports.js +21 -0
  204. package/build/esm/index.js +82 -73
  205. package/build/esm/index.js.map +1 -1
  206. package/build/esm/index.no-diagnostic-channels.js +21 -19
  207. package/build/esm/index.request-handler.js +1 -2
  208. package/build/esm/integrations/amqplib.js +338 -349
  209. package/build/esm/integrations/amqplib.js.map +1 -1
  210. package/build/esm/integrations/anthropic.js +154 -120
  211. package/build/esm/integrations/anthropic.js.map +1 -1
  212. package/build/esm/integrations/aws-sdk/constants.js +11 -2
  213. package/build/esm/integrations/aws-sdk/constants.js.map +1 -1
  214. package/build/esm/integrations/aws-sdk/index.js +118 -133
  215. package/build/esm/integrations/aws-sdk/index.js.map +1 -1
  216. package/build/esm/integrations/aws-sdk/services/MessageAttributes.js +30 -31
  217. package/build/esm/integrations/aws-sdk/services/MessageAttributes.js.map +1 -1
  218. package/build/esm/integrations/aws-sdk/services/ServicesExtensions.js +38 -44
  219. package/build/esm/integrations/aws-sdk/services/ServicesExtensions.js.map +1 -1
  220. package/build/esm/integrations/aws-sdk/services/bedrock-runtime-content.js +144 -0
  221. package/build/esm/integrations/aws-sdk/services/bedrock-runtime-content.js.map +1 -0
  222. package/build/esm/integrations/aws-sdk/services/bedrock-runtime.js +320 -405
  223. package/build/esm/integrations/aws-sdk/services/bedrock-runtime.js.map +1 -1
  224. package/build/esm/integrations/aws-sdk/services/dynamodb.js +67 -125
  225. package/build/esm/integrations/aws-sdk/services/dynamodb.js.map +1 -1
  226. package/build/esm/integrations/aws-sdk/services/index.js +1 -0
  227. package/build/esm/integrations/aws-sdk/services/kinesis.js +12 -16
  228. package/build/esm/integrations/aws-sdk/services/kinesis.js.map +1 -1
  229. package/build/esm/integrations/aws-sdk/services/lambda.js +51 -57
  230. package/build/esm/integrations/aws-sdk/services/lambda.js.map +1 -1
  231. package/build/esm/integrations/aws-sdk/services/s3.js +12 -16
  232. package/build/esm/integrations/aws-sdk/services/s3.js.map +1 -1
  233. package/build/esm/integrations/aws-sdk/services/secretsmanager.js +16 -22
  234. package/build/esm/integrations/aws-sdk/services/secretsmanager.js.map +1 -1
  235. package/build/esm/integrations/aws-sdk/services/sns.js +66 -70
  236. package/build/esm/integrations/aws-sdk/services/sns.js.map +1 -1
  237. package/build/esm/integrations/aws-sdk/services/sqs.js +104 -124
  238. package/build/esm/integrations/aws-sdk/services/sqs.js.map +1 -1
  239. package/build/esm/integrations/aws-sdk/services/stepfunctions.js +14 -20
  240. package/build/esm/integrations/aws-sdk/services/stepfunctions.js.map +1 -1
  241. package/build/esm/integrations/aws-sdk/utils.js +18 -19
  242. package/build/esm/integrations/aws-sdk/utils.js.map +1 -1
  243. package/build/esm/integrations/cron.js +33 -35
  244. package/build/esm/integrations/cron.js.map +1 -1
  245. package/build/esm/integrations/dataloader.js +101 -93
  246. package/build/esm/integrations/dataloader.js.map +1 -1
  247. package/build/esm/integrations/express/error-handled.js +13 -8
  248. package/build/esm/integrations/express/error-handled.js.map +1 -1
  249. package/build/esm/integrations/express/error-handler.js +49 -31
  250. package/build/esm/integrations/express/error-handler.js.map +1 -1
  251. package/build/esm/integrations/express/index.js +26 -17
  252. package/build/esm/integrations/express/index.js.map +1 -1
  253. package/build/esm/integrations/express/instrumentation.js +182 -196
  254. package/build/esm/integrations/express/instrumentation.js.map +1 -1
  255. package/build/esm/integrations/express/route.js +70 -45
  256. package/build/esm/integrations/express/route.js.map +1 -1
  257. package/build/esm/integrations/express/utils.js +11 -5
  258. package/build/esm/integrations/express/utils.js.map +1 -1
  259. package/build/esm/integrations/fastify/errors.js +33 -26
  260. package/build/esm/integrations/fastify/errors.js.map +1 -1
  261. package/build/esm/integrations/fastify/index.js +41 -21
  262. package/build/esm/integrations/fastify/index.js.map +1 -1
  263. package/build/esm/integrations/fastify/instrumentation.js +188 -208
  264. package/build/esm/integrations/fastify/instrumentation.js.map +1 -1
  265. package/build/esm/integrations/fastify/utils.js +21 -15
  266. package/build/esm/integrations/fastify/utils.js.map +1 -1
  267. package/build/esm/integrations/firebase/firestore.js +69 -70
  268. package/build/esm/integrations/firebase/firestore.js.map +1 -1
  269. package/build/esm/integrations/firebase/functions.js +66 -68
  270. package/build/esm/integrations/firebase/functions.js.map +1 -1
  271. package/build/esm/integrations/firebase/index.js +21 -13
  272. package/build/esm/integrations/firebase/index.js.map +1 -1
  273. package/build/esm/integrations/firebase/instrumentation.js +86 -47
  274. package/build/esm/integrations/firebase/instrumentation.js.map +1 -1
  275. package/build/esm/integrations/flue.js +46 -33
  276. package/build/esm/integrations/flue.js.map +1 -1
  277. package/build/esm/integrations/generic-pool.js +30 -27
  278. package/build/esm/integrations/generic-pool.js.map +1 -1
  279. package/build/esm/integrations/google-genai.js +90 -82
  280. package/build/esm/integrations/google-genai.js.map +1 -1
  281. package/build/esm/integrations/graphql/constants.js +6 -4
  282. package/build/esm/integrations/graphql/constants.js.map +1 -1
  283. package/build/esm/integrations/graphql/graphql-dc-subscriber.js +95 -99
  284. package/build/esm/integrations/graphql/graphql-dc-subscriber.js.map +1 -1
  285. package/build/esm/integrations/graphql/index.js +38 -47
  286. package/build/esm/integrations/graphql/index.js.map +1 -1
  287. package/build/esm/integrations/graphql/resolvers.js +117 -142
  288. package/build/esm/integrations/graphql/resolvers.js.map +1 -1
  289. package/build/esm/integrations/graphql/spans.js +110 -93
  290. package/build/esm/integrations/graphql/spans.js.map +1 -1
  291. package/build/esm/integrations/graphql/utils.js +84 -79
  292. package/build/esm/integrations/graphql/utils.js.map +1 -1
  293. package/build/esm/integrations/groq.js +22 -16
  294. package/build/esm/integrations/groq.js.map +1 -1
  295. package/build/esm/integrations/hapi/hapi-error-handler.js +47 -38
  296. package/build/esm/integrations/hapi/hapi-error-handler.js.map +1 -1
  297. package/build/esm/integrations/hapi/hapi-types.js +20 -13
  298. package/build/esm/integrations/hapi/hapi-types.js.map +1 -1
  299. package/build/esm/integrations/hapi/hapi-utils.js +165 -166
  300. package/build/esm/integrations/hapi/hapi-utils.js.map +1 -1
  301. package/build/esm/integrations/hapi/index.js +53 -64
  302. package/build/esm/integrations/hapi/index.js.map +1 -1
  303. package/build/esm/integrations/hono/applyPatches.js +43 -26
  304. package/build/esm/integrations/hono/applyPatches.js.map +1 -1
  305. package/build/esm/integrations/hono/connInfo.js +39 -30
  306. package/build/esm/integrations/hono/connInfo.js.map +1 -1
  307. package/build/esm/integrations/hono/constants.js +4 -2
  308. package/build/esm/integrations/hono/constants.js.map +1 -1
  309. package/build/esm/integrations/hono/createHonoMiddleware.js +59 -36
  310. package/build/esm/integrations/hono/createHonoMiddleware.js.map +1 -1
  311. package/build/esm/integrations/hono/defaultShouldHandleError.js +17 -9
  312. package/build/esm/integrations/hono/defaultShouldHandleError.js.map +1 -1
  313. package/build/esm/integrations/hono/hono-context.js +13 -9
  314. package/build/esm/integrations/hono/hono-context.js.map +1 -1
  315. package/build/esm/integrations/hono/honoIntegration.js +117 -81
  316. package/build/esm/integrations/hono/honoIntegration.js.map +1 -1
  317. package/build/esm/integrations/hono/index.js +3 -0
  318. package/build/esm/integrations/hono/isMiddleware.js +26 -13
  319. package/build/esm/integrations/hono/isMiddleware.js.map +1 -1
  320. package/build/esm/integrations/hono/matchResult.js +69 -11
  321. package/build/esm/integrations/hono/matchResult.js.map +1 -1
  322. package/build/esm/integrations/hono/middlewareHandlers.js +89 -73
  323. package/build/esm/integrations/hono/middlewareHandlers.js.map +1 -1
  324. package/build/esm/integrations/hono/patchAppRequest.js +77 -66
  325. package/build/esm/integrations/hono/patchAppRequest.js.map +1 -1
  326. package/build/esm/integrations/hono/patchAppUse.js +71 -56
  327. package/build/esm/integrations/hono/patchAppUse.js.map +1 -1
  328. package/build/esm/integrations/hono/patchRoute.js +73 -63
  329. package/build/esm/integrations/hono/patchRoute.js.map +1 -1
  330. package/build/esm/integrations/hono/resolveRouteName.js +21 -26
  331. package/build/esm/integrations/hono/resolveRouteName.js.map +1 -1
  332. package/build/esm/integrations/hono/sentryOriginalTraps.js +26 -0
  333. package/build/esm/integrations/hono/sentryOriginalTraps.js.map +1 -0
  334. package/build/esm/integrations/hono/wrapMiddlewareSpan.js +45 -46
  335. package/build/esm/integrations/hono/wrapMiddlewareSpan.js.map +1 -1
  336. package/build/esm/integrations/index.js +92 -85
  337. package/build/esm/integrations/index.js.map +1 -1
  338. package/build/esm/integrations/kafkajs/consumer.js +58 -60
  339. package/build/esm/integrations/kafkajs/consumer.js.map +1 -1
  340. package/build/esm/integrations/kafkajs/index.js +53 -57
  341. package/build/esm/integrations/kafkajs/index.js.map +1 -1
  342. package/build/esm/integrations/kafkajs/semconv.js +4 -2
  343. package/build/esm/integrations/kafkajs/semconv.js.map +1 -1
  344. package/build/esm/integrations/kafkajs/spans.js +107 -101
  345. package/build/esm/integrations/kafkajs/spans.js.map +1 -1
  346. package/build/esm/integrations/knex.js +133 -157
  347. package/build/esm/integrations/knex.js.map +1 -1
  348. package/build/esm/integrations/koa/index.js +122 -133
  349. package/build/esm/integrations/koa/index.js.map +1 -1
  350. package/build/esm/integrations/koa/koa-error-handler.js +43 -25
  351. package/build/esm/integrations/koa/koa-error-handler.js.map +1 -1
  352. package/build/esm/integrations/langchain.js +66 -75
  353. package/build/esm/integrations/langchain.js.map +1 -1
  354. package/build/esm/integrations/langgraph.js +55 -75
  355. package/build/esm/integrations/langgraph.js.map +1 -1
  356. package/build/esm/integrations/lru-memoizer.js +22 -20
  357. package/build/esm/integrations/lru-memoizer.js.map +1 -1
  358. package/build/esm/integrations/mastra-classifier.js +47 -50
  359. package/build/esm/integrations/mastra-classifier.js.map +1 -1
  360. package/build/esm/integrations/mastra.js +208 -209
  361. package/build/esm/integrations/mastra.js.map +1 -1
  362. package/build/esm/integrations/mcp-server.js +28 -28
  363. package/build/esm/integrations/mcp-server.js.map +1 -1
  364. package/build/esm/integrations/mistral.js +73 -56
  365. package/build/esm/integrations/mistral.js.map +1 -1
  366. package/build/esm/integrations/mongodb/index.js +101 -76
  367. package/build/esm/integrations/mongodb/index.js.map +1 -1
  368. package/build/esm/integrations/mongodb/mongodb-span.js +110 -106
  369. package/build/esm/integrations/mongodb/mongodb-span.js.map +1 -1
  370. package/build/esm/integrations/mongoose/index.js +82 -89
  371. package/build/esm/integrations/mongoose/index.js.map +1 -1
  372. package/build/esm/integrations/mongoose/mongoose-dc-subscriber.js +85 -72
  373. package/build/esm/integrations/mongoose/mongoose-dc-subscriber.js.map +1 -1
  374. package/build/esm/integrations/mongoose/mongoose-legacy-span.js +39 -36
  375. package/build/esm/integrations/mongoose/mongoose-legacy-span.js.map +1 -1
  376. package/build/esm/integrations/mysql.js +74 -83
  377. package/build/esm/integrations/mysql.js.map +1 -1
  378. package/build/esm/integrations/mysql2/index.js +86 -61
  379. package/build/esm/integrations/mysql2/index.js.map +1 -1
  380. package/build/esm/integrations/mysql2/mysql2-dc-subscriber.js +51 -38
  381. package/build/esm/integrations/mysql2/mysql2-dc-subscriber.js.map +1 -1
  382. package/build/esm/integrations/neon.js +84 -86
  383. package/build/esm/integrations/neon.js.map +1 -1
  384. package/build/esm/integrations/nitro/captureStorageEvents.js +97 -111
  385. package/build/esm/integrations/nitro/captureStorageEvents.js.map +1 -1
  386. package/build/esm/integrations/nitro/captureTracingEvents.js +139 -181
  387. package/build/esm/integrations/nitro/captureTracingEvents.js.map +1 -1
  388. package/build/esm/integrations/nitro/index.js +26 -20
  389. package/build/esm/integrations/nitro/index.js.map +1 -1
  390. package/build/esm/integrations/nitro/setServerTimingHeaders.js +31 -33
  391. package/build/esm/integrations/nitro/setServerTimingHeaders.js.map +1 -1
  392. package/build/esm/integrations/node-cron.js +53 -48
  393. package/build/esm/integrations/node-cron.js.map +1 -1
  394. package/build/esm/integrations/node-schedule.js +45 -51
  395. package/build/esm/integrations/node-schedule.js.map +1 -1
  396. package/build/esm/integrations/openai-compatible.js +84 -79
  397. package/build/esm/integrations/openai-compatible.js.map +1 -1
  398. package/build/esm/integrations/openai.js +85 -75
  399. package/build/esm/integrations/openai.js.map +1 -1
  400. package/build/esm/integrations/pg.js +147 -130
  401. package/build/esm/integrations/pg.js.map +1 -1
  402. package/build/esm/integrations/pi-ai.js +69 -0
  403. package/build/esm/integrations/pi-ai.js.map +1 -0
  404. package/build/esm/integrations/pi-durable.js +46 -42
  405. package/build/esm/integrations/pi-durable.js.map +1 -1
  406. package/build/esm/integrations/postgresjs/index.js +124 -126
  407. package/build/esm/integrations/postgresjs/index.js.map +1 -1
  408. package/build/esm/integrations/postgresjs/postgresjs-dc-subscriber.js +72 -64
  409. package/build/esm/integrations/postgresjs/postgresjs-dc-subscriber.js.map +1 -1
  410. package/build/esm/integrations/postgresjs-wrapper.js +232 -187
  411. package/build/esm/integrations/postgresjs-wrapper.js.map +1 -1
  412. package/build/esm/integrations/prisma/global.js +6 -5
  413. package/build/esm/integrations/prisma/global.js.map +1 -1
  414. package/build/esm/integrations/prisma/index.js +44 -26
  415. package/build/esm/integrations/prisma/index.js.map +1 -1
  416. package/build/esm/integrations/prisma/orchestrion.js +96 -115
  417. package/build/esm/integrations/prisma/orchestrion.js.map +1 -1
  418. package/build/esm/integrations/prisma/tracing-helper.js +192 -208
  419. package/build/esm/integrations/prisma/tracing-helper.js.map +1 -1
  420. package/build/esm/integrations/redis/index.js +173 -190
  421. package/build/esm/integrations/redis/index.js.map +1 -1
  422. package/build/esm/integrations/redis/ioredis-channel-subscriber.js +78 -72
  423. package/build/esm/integrations/redis/ioredis-channel-subscriber.js.map +1 -1
  424. package/build/esm/integrations/redis/redis-cache.js +110 -111
  425. package/build/esm/integrations/redis/redis-cache.js.map +1 -1
  426. package/build/esm/integrations/redis/redis-dc-subscriber.js +79 -84
  427. package/build/esm/integrations/redis/redis-dc-subscriber.js.map +1 -1
  428. package/build/esm/integrations/redis/redis-span-name.js +31 -21
  429. package/build/esm/integrations/redis/redis-span-name.js.map +1 -1
  430. package/build/esm/integrations/redis/redis-statement-serializer.js +38 -27
  431. package/build/esm/integrations/redis/redis-statement-serializer.js.map +1 -1
  432. package/build/esm/integrations/serveTunnel.js +36 -0
  433. package/build/esm/integrations/serveTunnel.js.map +1 -0
  434. package/build/esm/integrations/tedious.js +132 -132
  435. package/build/esm/integrations/tedious.js.map +1 -1
  436. package/build/esm/integrations/together-ai.js +22 -16
  437. package/build/esm/integrations/together-ai.js.map +1 -1
  438. package/build/esm/integrations/typesafe.js +32 -37
  439. package/build/esm/integrations/typesafe.js.map +1 -1
  440. package/build/esm/integrations/vercel-ai/gen-ai-recording-mode.js +20 -4
  441. package/build/esm/integrations/vercel-ai/gen-ai-recording-mode.js.map +1 -1
  442. package/build/esm/integrations/vercel-ai/index.js +29 -26
  443. package/build/esm/integrations/vercel-ai/index.js.map +1 -1
  444. package/build/esm/integrations/vercel-ai/util.js +86 -92
  445. package/build/esm/integrations/vercel-ai/util.js.map +1 -1
  446. package/build/esm/integrations/vercel-ai/vercel-ai-dc-subscriber.js +510 -509
  447. package/build/esm/integrations/vercel-ai/vercel-ai-dc-subscriber.js.map +1 -1
  448. package/build/esm/integrations/vercel-ai/vercel-ai-orchestrion-subscriber.js +386 -361
  449. package/build/esm/integrations/vercel-ai/vercel-ai-orchestrion-subscriber.js.map +1 -1
  450. package/build/esm/integrations/vercel-ai/vercel-ai-tool-telemetry.js +61 -34
  451. package/build/esm/integrations/vercel-ai/vercel-ai-tool-telemetry.js.map +1 -1
  452. package/build/esm/opentelemetry.js +70 -35
  453. package/build/esm/opentelemetry.js.map +1 -1
  454. package/build/esm/orchestrion/bundler/bun.js +42 -32
  455. package/build/esm/orchestrion/bundler/bun.js.map +1 -1
  456. package/build/esm/orchestrion/bundler/esbuild.js +57 -47
  457. package/build/esm/orchestrion/bundler/esbuild.js.map +1 -1
  458. package/build/esm/orchestrion/bundler/externalRequire.js +65 -62
  459. package/build/esm/orchestrion/bundler/externalRequire.js.map +1 -1
  460. package/build/esm/orchestrion/bundler/load-hook.js +23 -19
  461. package/build/esm/orchestrion/bundler/load-hook.js.map +1 -1
  462. package/build/esm/orchestrion/bundler/moduleInjectedTransform.js +118 -44
  463. package/build/esm/orchestrion/bundler/moduleInjectedTransform.js.map +1 -1
  464. package/build/esm/orchestrion/bundler/options.js +42 -13
  465. package/build/esm/orchestrion/bundler/options.js.map +1 -1
  466. package/build/esm/orchestrion/bundler/resolve.js +43 -13
  467. package/build/esm/orchestrion/bundler/resolve.js.map +1 -1
  468. package/build/esm/orchestrion/bundler/rollup.js +78 -67
  469. package/build/esm/orchestrion/bundler/rollup.js.map +1 -1
  470. package/build/esm/orchestrion/bundler/vite.js +122 -160
  471. package/build/esm/orchestrion/bundler/vite.js.map +1 -1
  472. package/build/esm/orchestrion/bundler/webpack-loader.js +18 -14
  473. package/build/esm/orchestrion/bundler/webpack-loader.js.map +1 -1
  474. package/build/esm/orchestrion/bundler/webpack.js +57 -71
  475. package/build/esm/orchestrion/bundler/webpack.js.map +1 -1
  476. package/build/esm/orchestrion/channels.js +105 -87
  477. package/build/esm/orchestrion/channels.js.map +1 -1
  478. package/build/esm/orchestrion/config/amqplib.js +152 -83
  479. package/build/esm/orchestrion/config/amqplib.js.map +1 -1
  480. package/build/esm/orchestrion/config/anthropic-ai.js +96 -43
  481. package/build/esm/orchestrion/config/anthropic-ai.js.map +1 -1
  482. package/build/esm/orchestrion/config/aws-sdk.js +46 -22
  483. package/build/esm/orchestrion/config/aws-sdk.js.map +1 -1
  484. package/build/esm/orchestrion/config/channel-integration-definitions.js +193 -51
  485. package/build/esm/orchestrion/config/channel-integration-definitions.js.map +1 -1
  486. package/build/esm/orchestrion/config/cron.js +27 -18
  487. package/build/esm/orchestrion/config/cron.js.map +1 -1
  488. package/build/esm/orchestrion/config/dataloader.js +62 -45
  489. package/build/esm/orchestrion/config/dataloader.js.map +1 -1
  490. package/build/esm/orchestrion/config/express.js +80 -71
  491. package/build/esm/orchestrion/config/express.js.map +1 -1
  492. package/build/esm/orchestrion/config/firebase.js +133 -70
  493. package/build/esm/orchestrion/config/firebase.js.map +1 -1
  494. package/build/esm/orchestrion/config/flue.js +15 -7
  495. package/build/esm/orchestrion/config/flue.js.map +1 -1
  496. package/build/esm/orchestrion/config/generic-pool.js +29 -19
  497. package/build/esm/orchestrion/config/generic-pool.js.map +1 -1
  498. package/build/esm/orchestrion/config/google-genai.js +50 -33
  499. package/build/esm/orchestrion/config/google-genai.js.map +1 -1
  500. package/build/esm/orchestrion/config/graphql.js +43 -22
  501. package/build/esm/orchestrion/config/graphql.js.map +1 -1
  502. package/build/esm/orchestrion/config/groq.js +9 -9
  503. package/build/esm/orchestrion/config/groq.js.map +1 -1
  504. package/build/esm/orchestrion/config/hapi.js +56 -38
  505. package/build/esm/orchestrion/config/hapi.js.map +1 -1
  506. package/build/esm/orchestrion/config/hono.js +23 -26
  507. package/build/esm/orchestrion/config/hono.js.map +1 -1
  508. package/build/esm/orchestrion/config/index.js +177 -111
  509. package/build/esm/orchestrion/config/index.js.map +1 -1
  510. package/build/esm/orchestrion/config/ioredis.js +65 -31
  511. package/build/esm/orchestrion/config/ioredis.js.map +1 -1
  512. package/build/esm/orchestrion/config/kafkajs.js +29 -26
  513. package/build/esm/orchestrion/config/kafkajs.js.map +1 -1
  514. package/build/esm/orchestrion/config/knex.js +57 -29
  515. package/build/esm/orchestrion/config/knex.js.map +1 -1
  516. package/build/esm/orchestrion/config/koa.js +31 -24
  517. package/build/esm/orchestrion/config/koa.js.map +1 -1
  518. package/build/esm/orchestrion/config/langchain.js +78 -49
  519. package/build/esm/orchestrion/config/langchain.js.map +1 -1
  520. package/build/esm/orchestrion/config/langgraph.js +25 -20
  521. package/build/esm/orchestrion/config/langgraph.js.map +1 -1
  522. package/build/esm/orchestrion/config/lru-memoizer.js +17 -15
  523. package/build/esm/orchestrion/config/lru-memoizer.js.map +1 -1
  524. package/build/esm/orchestrion/config/mastra.js +44 -44
  525. package/build/esm/orchestrion/config/mastra.js.map +1 -1
  526. package/build/esm/orchestrion/config/mcp-server.js +24 -32
  527. package/build/esm/orchestrion/config/mcp-server.js.map +1 -1
  528. package/build/esm/orchestrion/config/mistral.js +87 -47
  529. package/build/esm/orchestrion/config/mistral.js.map +1 -1
  530. package/build/esm/orchestrion/config/module-names.js +9 -3
  531. package/build/esm/orchestrion/config/module-names.js.map +1 -1
  532. package/build/esm/orchestrion/config/mongodb.js +101 -61
  533. package/build/esm/orchestrion/config/mongodb.js.map +1 -1
  534. package/build/esm/orchestrion/config/mongoose.js +131 -100
  535. package/build/esm/orchestrion/config/mongoose.js.map +1 -1
  536. package/build/esm/orchestrion/config/mysql.js +17 -14
  537. package/build/esm/orchestrion/config/mysql.js.map +1 -1
  538. package/build/esm/orchestrion/config/mysql2.js +64 -28
  539. package/build/esm/orchestrion/config/mysql2.js.map +1 -1
  540. package/build/esm/orchestrion/config/neon.js +33 -36
  541. package/build/esm/orchestrion/config/neon.js.map +1 -1
  542. package/build/esm/orchestrion/config/nestjs.js +151 -120
  543. package/build/esm/orchestrion/config/nestjs.js.map +1 -1
  544. package/build/esm/orchestrion/config/nitro.js +25 -7
  545. package/build/esm/orchestrion/config/nitro.js.map +1 -1
  546. package/build/esm/orchestrion/config/node-cron.js +74 -43
  547. package/build/esm/orchestrion/config/node-cron.js.map +1 -1
  548. package/build/esm/orchestrion/config/node-schedule.js +26 -21
  549. package/build/esm/orchestrion/config/node-schedule.js.map +1 -1
  550. package/build/esm/orchestrion/config/openai-compatible.js +42 -15
  551. package/build/esm/orchestrion/config/openai-compatible.js.map +1 -1
  552. package/build/esm/orchestrion/config/openai.js +72 -39
  553. package/build/esm/orchestrion/config/openai.js.map +1 -1
  554. package/build/esm/orchestrion/config/pg.js +70 -45
  555. package/build/esm/orchestrion/config/pg.js.map +1 -1
  556. package/build/esm/orchestrion/config/pi-ai.js +49 -0
  557. package/build/esm/orchestrion/config/pi-ai.js.map +1 -0
  558. package/build/esm/orchestrion/config/pi-durable.js +36 -26
  559. package/build/esm/orchestrion/config/pi-durable.js.map +1 -1
  560. package/build/esm/orchestrion/config/postgres.js +63 -48
  561. package/build/esm/orchestrion/config/postgres.js.map +1 -1
  562. package/build/esm/orchestrion/config/prisma.js +46 -36
  563. package/build/esm/orchestrion/config/prisma.js.map +1 -1
  564. package/build/esm/orchestrion/config/redis.js +133 -72
  565. package/build/esm/orchestrion/config/redis.js.map +1 -1
  566. package/build/esm/orchestrion/config/registration-only.js +23 -8
  567. package/build/esm/orchestrion/config/registration-only.js.map +1 -1
  568. package/build/esm/orchestrion/config/remix-v3.js +68 -47
  569. package/build/esm/orchestrion/config/remix-v3.js.map +1 -1
  570. package/build/esm/orchestrion/config/remix.js +77 -45
  571. package/build/esm/orchestrion/config/remix.js.map +1 -1
  572. package/build/esm/orchestrion/config/tedious.js +31 -16
  573. package/build/esm/orchestrion/config/tedious.js.map +1 -1
  574. package/build/esm/orchestrion/config/together-ai.js +17 -15
  575. package/build/esm/orchestrion/config/together-ai.js.map +1 -1
  576. package/build/esm/orchestrion/config/typesafe.js +16 -10
  577. package/build/esm/orchestrion/config/typesafe.js.map +1 -1
  578. package/build/esm/orchestrion/config/vercel-ai.js +54 -44
  579. package/build/esm/orchestrion/config/vercel-ai.js.map +1 -1
  580. package/build/esm/orchestrion/detect.js +50 -21
  581. package/build/esm/orchestrion/detect.js.map +1 -1
  582. package/build/esm/orchestrion/instrumentation.js +90 -70
  583. package/build/esm/orchestrion/instrumentation.js.map +1 -1
  584. package/build/esm/package.json +1 -1
  585. package/build/esm/tracing-channel.js +143 -135
  586. package/build/esm/tracing-channel.js.map +1 -1
  587. package/build/esm/utils/cronMonitoring.js +152 -125
  588. package/build/esm/utils/cronMonitoring.js.map +1 -1
  589. package/build/esm/utils/diagnosticsChannel.js +27 -21
  590. package/build/esm/utils/diagnosticsChannel.js.map +1 -1
  591. package/build/esm/utils/moduleInjected.js +35 -13
  592. package/build/esm/utils/moduleInjected.js.map +1 -1
  593. package/build/esm/utils/monitorStream.js +52 -58
  594. package/build/esm/utils/monitorStream.js.map +1 -1
  595. package/build/esm/utils/runtime.js +17 -0
  596. package/build/esm/utils/runtime.js.map +1 -0
  597. package/build/esm/utils/setHttpServerSpanRouteAttribute.js +22 -21
  598. package/build/esm/utils/setHttpServerSpanRouteAttribute.js.map +1 -1
  599. package/build/esm/utils/sql.js +260 -225
  600. package/build/esm/utils/sql.js.map +1 -1
  601. package/build/esm/utils/tunnelServer.js +31 -0
  602. package/build/esm/utils/tunnelServer.js.map +1 -0
  603. package/build/esm/utils/withCleanScopes.js +17 -12
  604. package/build/esm/utils/withCleanScopes.js.map +1 -1
  605. package/build/esm/utils/wrapServerRequestHandler.js +180 -196
  606. package/build/esm/utils/wrapServerRequestHandler.js.map +1 -1
  607. package/build/esm/vendored/@apm-js-collab/code-transformer/index.js +9 -5
  608. package/build/esm/vendored/@apm-js-collab/code-transformer/index.js.map +1 -1
  609. package/build/esm/vendored/@apm-js-collab/code-transformer/lib/index.js +21 -9
  610. package/build/esm/vendored/@apm-js-collab/code-transformer/lib/index.js.map +1 -1
  611. package/build/esm/vendored/@apm-js-collab/code-transformer/lib/matcher.js +80 -83
  612. package/build/esm/vendored/@apm-js-collab/code-transformer/lib/matcher.js.map +1 -1
  613. package/build/esm/vendored/@apm-js-collab/code-transformer/lib/transformer.js +289 -313
  614. package/build/esm/vendored/@apm-js-collab/code-transformer/lib/transformer.js.map +1 -1
  615. package/build/esm/vendored/@apm-js-collab/code-transformer/lib/transforms.js +488 -284
  616. package/build/esm/vendored/@apm-js-collab/code-transformer/lib/transforms.js.map +1 -1
  617. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/bun.js +5 -6
  618. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/bun.js.map +1 -1
  619. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/{core-Bd0h-mo3.js → core-BiWIBBjf.js} +15 -14
  620. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/core-BiWIBBjf.js.map +1 -0
  621. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/core.js +3 -0
  622. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/esbuild.js +6 -7
  623. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/esbuild.js.map +1 -1
  624. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/instrumentation-serde-C-Xxv-jj.js +3 -3
  625. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/instrumentation-serde-C-Xxv-jj.js.map +1 -1
  626. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/{rollup-DCG8HLmh.js → rollup-CzqrjlS4.js} +8 -13
  627. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/rollup-CzqrjlS4.js.map +1 -0
  628. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/rollup.js +1 -0
  629. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/vite.js +4 -5
  630. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/vite.js.map +1 -1
  631. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/webpack-loader-factory.js +13 -12
  632. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/webpack-loader-factory.js.map +1 -1
  633. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/webpack.js +7 -8
  634. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/webpack.js.map +1 -1
  635. package/build/esm/vendored/astring/dist/astring.js +910 -1065
  636. package/build/esm/vendored/astring/dist/astring.js.map +1 -1
  637. package/build/esm/vendored/esquery/dist/esquery.min.js +1312 -0
  638. package/build/esm/vendored/esquery/dist/esquery.min.js.map +1 -0
  639. package/build/esm/vendored/meriyah/dist/meriyah.js +10539 -9189
  640. package/build/esm/vendored/meriyah/dist/meriyah.js.map +1 -1
  641. package/build/esm/vendored/meriyah/dist/meriyah2.js +10122 -8806
  642. package/build/esm/vendored/meriyah/dist/meriyah2.js.map +1 -1
  643. package/build/esm/vendored/module-details-from-path/index.js +31 -40
  644. package/build/esm/vendored/module-details-from-path/index.js.map +1 -1
  645. package/build/esm/vendored/semifies/index.js +106 -108
  646. package/build/esm/vendored/semifies/index.js.map +1 -1
  647. package/build/esm/vendored/source-map/lib/array-set.js +100 -70
  648. package/build/esm/vendored/source-map/lib/array-set.js.map +1 -1
  649. package/build/esm/vendored/source-map/lib/base64-vlq.js +71 -54
  650. package/build/esm/vendored/source-map/lib/base64-vlq.js.map +1 -1
  651. package/build/esm/vendored/source-map/lib/base64.js +38 -39
  652. package/build/esm/vendored/source-map/lib/base64.js.map +1 -1
  653. package/build/esm/vendored/source-map/lib/binary-search.js +61 -50
  654. package/build/esm/vendored/source-map/lib/binary-search.js.map +1 -1
  655. package/build/esm/vendored/source-map/lib/mapping-list.js +75 -39
  656. package/build/esm/vendored/source-map/lib/mapping-list.js.map +1 -1
  657. package/build/esm/vendored/source-map/lib/quick-sort.js +73 -33
  658. package/build/esm/vendored/source-map/lib/quick-sort.js.map +1 -1
  659. package/build/esm/vendored/source-map/lib/source-map-consumer.js +763 -609
  660. package/build/esm/vendored/source-map/lib/source-map-consumer.js.map +1 -1
  661. package/build/esm/vendored/source-map/lib/source-map-generator.js +281 -282
  662. package/build/esm/vendored/source-map/lib/source-map-generator.js.map +1 -1
  663. package/build/esm/vendored/source-map/lib/source-node.js +294 -267
  664. package/build/esm/vendored/source-map/lib/source-node.js.map +1 -1
  665. package/build/esm/vendored/source-map/lib/util.js +241 -252
  666. package/build/esm/vendored/source-map/lib/util.js.map +1 -1
  667. package/build/esm/vendored/source-map/source-map.js +17 -13
  668. package/build/esm/vendored/source-map/source-map.js.map +1 -1
  669. package/build/types/ai/anthropic-ai/index.d.ts +1 -1
  670. package/build/types/ai/anthropic-ai/index.d.ts.map +1 -1
  671. package/build/types/ai/anthropic-ai/streaming.d.ts +2 -1
  672. package/build/types/ai/anthropic-ai/streaming.d.ts.map +1 -1
  673. package/build/types/ai/anthropic-ai/tool-runner.d.ts +1 -1
  674. package/build/types/ai/anthropic-ai/tool-runner.d.ts.map +1 -1
  675. package/build/types/ai/anthropic-ai/utils.d.ts +7 -2
  676. package/build/types/ai/anthropic-ai/utils.d.ts.map +1 -1
  677. package/build/types/ai/core/streaming-tool-calls.d.ts +19 -0
  678. package/build/types/ai/core/streaming-tool-calls.d.ts.map +1 -0
  679. package/build/types/ai/core/utils.d.ts +18 -1
  680. package/build/types/ai/core/utils.d.ts.map +1 -1
  681. package/build/types/ai/flue/constants.d.ts +5 -7
  682. package/build/types/ai/flue/constants.d.ts.map +1 -1
  683. package/build/types/ai/flue/index.d.ts +7 -4
  684. package/build/types/ai/flue/index.d.ts.map +1 -1
  685. package/build/types/ai/flue/types.d.ts +1 -38
  686. package/build/types/ai/flue/types.d.ts.map +1 -1
  687. package/build/types/ai/flue/utils.d.ts +1 -13
  688. package/build/types/ai/flue/utils.d.ts.map +1 -1
  689. package/build/types/ai/google-genai/index.d.ts +4 -0
  690. package/build/types/ai/google-genai/index.d.ts.map +1 -1
  691. package/build/types/ai/google-genai/streaming.d.ts +1 -1
  692. package/build/types/ai/google-genai/streaming.d.ts.map +1 -1
  693. package/build/types/ai/langchain/utils.d.ts +6 -0
  694. package/build/types/ai/langchain/utils.d.ts.map +1 -1
  695. package/build/types/ai/langgraph/agent-span.d.ts +15 -0
  696. package/build/types/ai/langgraph/agent-span.d.ts.map +1 -0
  697. package/build/types/ai/langgraph/index.d.ts +7 -1
  698. package/build/types/ai/langgraph/index.d.ts.map +1 -1
  699. package/build/types/ai/langgraph/stream.d.ts +10 -0
  700. package/build/types/ai/langgraph/stream.d.ts.map +1 -0
  701. package/build/types/ai/langgraph/types.d.ts +1 -0
  702. package/build/types/ai/langgraph/types.d.ts.map +1 -1
  703. package/build/types/ai/mastra/utils.d.ts +1 -1
  704. package/build/types/ai/openai/index.d.ts.map +1 -1
  705. package/build/types/ai/openai/streaming.d.ts.map +1 -1
  706. package/build/types/ai/pi-ai/chat.d.ts +20 -0
  707. package/build/types/ai/pi-ai/chat.d.ts.map +1 -0
  708. package/build/types/ai/pi-ai/constants.d.ts +3 -0
  709. package/build/types/ai/pi-ai/constants.d.ts.map +1 -0
  710. package/build/types/ai/pi-ai/providers.d.ts +9 -6
  711. package/build/types/ai/pi-ai/providers.d.ts.map +1 -1
  712. package/build/types/ai/pi-ai/recording.d.ts +15 -0
  713. package/build/types/ai/pi-ai/recording.d.ts.map +1 -0
  714. package/build/types/ai/pi-ai/types.d.ts +31 -0
  715. package/build/types/ai/pi-ai/types.d.ts.map +1 -0
  716. package/build/types/ai/pi-durable/index.d.ts +5 -5
  717. package/build/types/ai/pi-durable/index.d.ts.map +1 -1
  718. package/build/types/ai/pi-durable/types.d.ts +3 -43
  719. package/build/types/ai/pi-durable/types.d.ts.map +1 -1
  720. package/build/types/ai/workers-ai/index.d.ts.map +1 -1
  721. package/build/types/ai/workers-ai/streaming.d.ts.map +1 -1
  722. package/build/types/ai/workers-ai/types.d.ts +13 -0
  723. package/build/types/ai/workers-ai/types.d.ts.map +1 -1
  724. package/build/types/ai/workers-ai/utils.d.ts.map +1 -1
  725. package/build/types/eve.d.ts +13 -0
  726. package/build/types/eve.d.ts.map +1 -1
  727. package/build/types/exports.d.ts +1 -0
  728. package/build/types/exports.d.ts.map +1 -1
  729. package/build/types/index.d.ts +4 -1
  730. package/build/types/index.d.ts.map +1 -1
  731. package/build/types/integrations/anthropic.d.ts.map +1 -1
  732. package/build/types/integrations/aws-sdk/index.d.ts +3 -1
  733. package/build/types/integrations/aws-sdk/index.d.ts.map +1 -1
  734. package/build/types/integrations/aws-sdk/services/ServicesExtensions.d.ts +2 -0
  735. package/build/types/integrations/aws-sdk/services/ServicesExtensions.d.ts.map +1 -1
  736. package/build/types/integrations/aws-sdk/services/bedrock-runtime-content.d.ts +30 -0
  737. package/build/types/integrations/aws-sdk/services/bedrock-runtime-content.d.ts.map +1 -0
  738. package/build/types/integrations/aws-sdk/services/bedrock-runtime.d.ts +5 -0
  739. package/build/types/integrations/aws-sdk/services/bedrock-runtime.d.ts.map +1 -1
  740. package/build/types/integrations/aws-sdk/types.d.ts +2 -0
  741. package/build/types/integrations/aws-sdk/types.d.ts.map +1 -1
  742. package/build/types/integrations/flue.d.ts.map +1 -1
  743. package/build/types/integrations/google-genai.d.ts.map +1 -1
  744. package/build/types/integrations/hono/constants.d.ts +1 -0
  745. package/build/types/integrations/hono/constants.d.ts.map +1 -1
  746. package/build/types/integrations/hono/createHonoMiddleware.d.ts +0 -1
  747. package/build/types/integrations/hono/createHonoMiddleware.d.ts.map +1 -1
  748. package/build/types/integrations/hono/honoIntegration.d.ts.map +1 -1
  749. package/build/types/integrations/hono/matchResult.d.ts +21 -4
  750. package/build/types/integrations/hono/matchResult.d.ts.map +1 -1
  751. package/build/types/integrations/hono/middlewareHandlers.d.ts +1 -2
  752. package/build/types/integrations/hono/middlewareHandlers.d.ts.map +1 -1
  753. package/build/types/integrations/hono/patchAppRequest.d.ts.map +1 -1
  754. package/build/types/integrations/hono/patchRoute.d.ts.map +1 -1
  755. package/build/types/integrations/hono/resolveRouteName.d.ts +4 -7
  756. package/build/types/integrations/hono/resolveRouteName.d.ts.map +1 -1
  757. package/build/types/integrations/hono/sentryOriginalTraps.d.ts +9 -0
  758. package/build/types/integrations/hono/sentryOriginalTraps.d.ts.map +1 -0
  759. package/build/types/integrations/hono/wrapMiddlewareSpan.d.ts.map +1 -1
  760. package/build/types/integrations/index.d.ts.map +1 -1
  761. package/build/types/integrations/langgraph.d.ts.map +1 -1
  762. package/build/types/integrations/mistral.d.ts.map +1 -1
  763. package/build/types/integrations/nitro/captureStorageEvents.d.ts.map +1 -1
  764. package/build/types/integrations/nitro/captureTracingEvents.d.ts.map +1 -1
  765. package/build/types/integrations/nitro/setServerTimingHeaders.d.ts.map +1 -1
  766. package/build/types/integrations/openai-compatible.d.ts.map +1 -1
  767. package/build/types/integrations/openai.d.ts.map +1 -1
  768. package/build/types/integrations/pi-ai.d.ts +19 -0
  769. package/build/types/integrations/pi-ai.d.ts.map +1 -0
  770. package/build/types/integrations/pi-durable.d.ts +3 -4
  771. package/build/types/integrations/pi-durable.d.ts.map +1 -1
  772. package/build/types/integrations/serveTunnel.d.ts +14 -0
  773. package/build/types/integrations/serveTunnel.d.ts.map +1 -0
  774. package/build/types/integrations/vercel-ai/gen-ai-recording-mode.d.ts +5 -1
  775. package/build/types/integrations/vercel-ai/gen-ai-recording-mode.d.ts.map +1 -1
  776. package/build/types/integrations/vercel-ai/vercel-ai-dc-subscriber.d.ts +6 -4
  777. package/build/types/integrations/vercel-ai/vercel-ai-dc-subscriber.d.ts.map +1 -1
  778. package/build/types/integrations/vercel-ai/vercel-ai-orchestrion-subscriber.d.ts.map +1 -1
  779. package/build/types/integrations/vercel-ai/vercel-ai-tool-telemetry.d.ts +3 -3
  780. package/build/types/integrations/vercel-ai/vercel-ai-tool-telemetry.d.ts.map +1 -1
  781. package/build/types/orchestrion/bundler/moduleInjectedTransform.d.ts +5 -1
  782. package/build/types/orchestrion/bundler/moduleInjectedTransform.d.ts.map +1 -1
  783. package/build/types/orchestrion/bundler/options.d.ts +6 -0
  784. package/build/types/orchestrion/bundler/options.d.ts.map +1 -1
  785. package/build/types/orchestrion/channels.d.ts +4 -0
  786. package/build/types/orchestrion/channels.d.ts.map +1 -1
  787. package/build/types/orchestrion/config/anthropic-ai.d.ts +1 -0
  788. package/build/types/orchestrion/config/anthropic-ai.d.ts.map +1 -1
  789. package/build/types/orchestrion/config/channel-integration-definitions.d.ts +3 -0
  790. package/build/types/orchestrion/config/channel-integration-definitions.d.ts.map +1 -1
  791. package/build/types/orchestrion/config/flue.d.ts +1 -1
  792. package/build/types/orchestrion/config/index.d.ts.map +1 -1
  793. package/build/types/orchestrion/config/pi-ai.d.ts +8 -0
  794. package/build/types/orchestrion/config/pi-ai.d.ts.map +1 -0
  795. package/build/types/orchestrion/config/vercel-ai.d.ts +1 -0
  796. package/build/types/orchestrion/config/vercel-ai.d.ts.map +1 -1
  797. package/build/types/orchestrion/detect.d.ts.map +1 -1
  798. package/build/types/orchestrion/instrumentation.d.ts.map +1 -1
  799. package/build/types/utils/diagnosticsChannel.d.ts.map +1 -1
  800. package/build/types/utils/runtime.d.ts +7 -0
  801. package/build/types/utils/runtime.d.ts.map +1 -0
  802. package/build/types/utils/tunnelServer.d.ts +10 -0
  803. package/build/types/utils/tunnelServer.d.ts.map +1 -0
  804. package/build/types/utils/wrapServerRequestHandler.d.ts +5 -0
  805. package/build/types/utils/wrapServerRequestHandler.d.ts.map +1 -1
  806. package/package.json +27 -27
  807. package/build/cjs/_virtual/_commonjsHelpers.js +0 -8
  808. package/build/cjs/_virtual/_commonjsHelpers.js.map +0 -1
  809. package/build/cjs/_virtual/array-set.js +0 -6
  810. package/build/cjs/_virtual/array-set.js.map +0 -1
  811. package/build/cjs/_virtual/astring.js +0 -6
  812. package/build/cjs/_virtual/astring.js.map +0 -1
  813. package/build/cjs/_virtual/base64-vlq.js +0 -6
  814. package/build/cjs/_virtual/base64-vlq.js.map +0 -1
  815. package/build/cjs/_virtual/base64.js +0 -6
  816. package/build/cjs/_virtual/base64.js.map +0 -1
  817. package/build/cjs/_virtual/binary-search.js +0 -6
  818. package/build/cjs/_virtual/binary-search.js.map +0 -1
  819. package/build/cjs/_virtual/mapping-list.js +0 -6
  820. package/build/cjs/_virtual/mapping-list.js.map +0 -1
  821. package/build/cjs/_virtual/meriyah.js +0 -6
  822. package/build/cjs/_virtual/meriyah.js.map +0 -1
  823. package/build/cjs/_virtual/quick-sort.js +0 -6
  824. package/build/cjs/_virtual/quick-sort.js.map +0 -1
  825. package/build/cjs/_virtual/source-map-consumer.js +0 -6
  826. package/build/cjs/_virtual/source-map-consumer.js.map +0 -1
  827. package/build/cjs/_virtual/source-map-generator.js +0 -6
  828. package/build/cjs/_virtual/source-map-generator.js.map +0 -1
  829. package/build/cjs/_virtual/source-map.js +0 -6
  830. package/build/cjs/_virtual/source-map.js.map +0 -1
  831. package/build/cjs/_virtual/source-node.js +0 -6
  832. package/build/cjs/_virtual/source-node.js.map +0 -1
  833. package/build/cjs/_virtual/util.js +0 -6
  834. package/build/cjs/_virtual/util.js.map +0 -1
  835. package/build/cjs/ai/anthropic-ai/constants.js +0 -15
  836. package/build/cjs/ai/anthropic-ai/constants.js.map +0 -1
  837. package/build/cjs/ai/anthropic-ai/index.js +0 -225
  838. package/build/cjs/ai/anthropic-ai/index.js.map +0 -1
  839. package/build/cjs/ai/anthropic-ai/streaming.js +0 -158
  840. package/build/cjs/ai/anthropic-ai/streaming.js.map +0 -1
  841. package/build/cjs/ai/anthropic-ai/tool-runner.js +0 -100
  842. package/build/cjs/ai/anthropic-ai/tool-runner.js.map +0 -1
  843. package/build/cjs/ai/anthropic-ai/utils.js +0 -62
  844. package/build/cjs/ai/anthropic-ai/utils.js.map +0 -1
  845. package/build/cjs/ai/core/apiPromise.js +0 -54
  846. package/build/cjs/ai/core/apiPromise.js.map +0 -1
  847. package/build/cjs/ai/core/gen-ai-attributes.js +0 -14
  848. package/build/cjs/ai/core/gen-ai-attributes.js.map +0 -1
  849. package/build/cjs/ai/core/utils.js +0 -182
  850. package/build/cjs/ai/core/utils.js.map +0 -1
  851. package/build/cjs/ai/flue/constants.js +0 -20
  852. package/build/cjs/ai/flue/constants.js.map +0 -1
  853. package/build/cjs/ai/flue/index.js +0 -143
  854. package/build/cjs/ai/flue/index.js.map +0 -1
  855. package/build/cjs/ai/flue/utils.js +0 -200
  856. package/build/cjs/ai/flue/utils.js.map +0 -1
  857. package/build/cjs/ai/google-genai/constants.js +0 -17
  858. package/build/cjs/ai/google-genai/constants.js.map +0 -1
  859. package/build/cjs/ai/google-genai/index.js +0 -275
  860. package/build/cjs/ai/google-genai/index.js.map +0 -1
  861. package/build/cjs/ai/google-genai/streaming.js +0 -76
  862. package/build/cjs/ai/google-genai/streaming.js.map +0 -1
  863. package/build/cjs/ai/google-genai/utils.js +0 -131
  864. package/build/cjs/ai/google-genai/utils.js.map +0 -1
  865. package/build/cjs/ai/langchain/constants.js +0 -19
  866. package/build/cjs/ai/langchain/constants.js.map +0 -1
  867. package/build/cjs/ai/langchain/embeddings.js +0 -82
  868. package/build/cjs/ai/langchain/embeddings.js.map +0 -1
  869. package/build/cjs/ai/langchain/index.js +0 -312
  870. package/build/cjs/ai/langchain/index.js.map +0 -1
  871. package/build/cjs/ai/langchain/typesafe-classifier.js +0 -62
  872. package/build/cjs/ai/langchain/typesafe-classifier.js.map +0 -1
  873. package/build/cjs/ai/langchain/utils.js +0 -354
  874. package/build/cjs/ai/langchain/utils.js.map +0 -1
  875. package/build/cjs/ai/langgraph/constants.js +0 -8
  876. package/build/cjs/ai/langgraph/constants.js.map +0 -1
  877. package/build/cjs/ai/langgraph/index.js +0 -174
  878. package/build/cjs/ai/langgraph/index.js.map +0 -1
  879. package/build/cjs/ai/langgraph/utils.js +0 -221
  880. package/build/cjs/ai/langgraph/utils.js.map +0 -1
  881. package/build/cjs/ai/mastra/classifier-evaluation.js +0 -30
  882. package/build/cjs/ai/mastra/classifier-evaluation.js.map +0 -1
  883. package/build/cjs/ai/mastra/constants.js +0 -41
  884. package/build/cjs/ai/mastra/constants.js.map +0 -1
  885. package/build/cjs/ai/mastra/index.js +0 -195
  886. package/build/cjs/ai/mastra/index.js.map +0 -1
  887. package/build/cjs/ai/mastra/span-registry.js +0 -20
  888. package/build/cjs/ai/mastra/span-registry.js.map +0 -1
  889. package/build/cjs/ai/mastra/utils.js +0 -177
  890. package/build/cjs/ai/mastra/utils.js.map +0 -1
  891. package/build/cjs/ai/mistral/constants.js +0 -20
  892. package/build/cjs/ai/mistral/constants.js.map +0 -1
  893. package/build/cjs/ai/mistral/index.js +0 -130
  894. package/build/cjs/ai/mistral/index.js.map +0 -1
  895. package/build/cjs/ai/mistral/streaming.js +0 -208
  896. package/build/cjs/ai/mistral/streaming.js.map +0 -1
  897. package/build/cjs/ai/mistral/utils.js +0 -87
  898. package/build/cjs/ai/mistral/utils.js.map +0 -1
  899. package/build/cjs/ai/openai/constants.js +0 -35
  900. package/build/cjs/ai/openai/constants.js.map +0 -1
  901. package/build/cjs/ai/openai/index.js +0 -176
  902. package/build/cjs/ai/openai/index.js.map +0 -1
  903. package/build/cjs/ai/openai/mapping.js +0 -67
  904. package/build/cjs/ai/openai/mapping.js.map +0 -1
  905. package/build/cjs/ai/openai/streaming.js +0 -163
  906. package/build/cjs/ai/openai/streaming.js.map +0 -1
  907. package/build/cjs/ai/openai/utils.js +0 -128
  908. package/build/cjs/ai/openai/utils.js.map +0 -1
  909. package/build/cjs/ai/pi-ai/messages.js +0 -135
  910. package/build/cjs/ai/pi-ai/messages.js.map +0 -1
  911. package/build/cjs/ai/pi-ai/providers.js +0 -22
  912. package/build/cjs/ai/pi-ai/providers.js.map +0 -1
  913. package/build/cjs/ai/pi-ai/usage.js +0 -34
  914. package/build/cjs/ai/pi-ai/usage.js.map +0 -1
  915. package/build/cjs/ai/pi-durable/constants.js +0 -22
  916. package/build/cjs/ai/pi-durable/constants.js.map +0 -1
  917. package/build/cjs/ai/pi-durable/index.js +0 -176
  918. package/build/cjs/ai/pi-durable/index.js.map +0 -1
  919. package/build/cjs/ai/pi-durable/models.js +0 -140
  920. package/build/cjs/ai/pi-durable/models.js.map +0 -1
  921. package/build/cjs/ai/pi-durable/runs.js +0 -159
  922. package/build/cjs/ai/pi-durable/runs.js.map +0 -1
  923. package/build/cjs/ai/pi-durable/tools.js +0 -178
  924. package/build/cjs/ai/pi-durable/tools.js.map +0 -1
  925. package/build/cjs/ai/pi-durable/utils.js +0 -9
  926. package/build/cjs/ai/pi-durable/utils.js.map +0 -1
  927. package/build/cjs/ai/typesafe/constants.js +0 -10
  928. package/build/cjs/ai/typesafe/constants.js.map +0 -1
  929. package/build/cjs/ai/typesafe/index.js +0 -112
  930. package/build/cjs/ai/typesafe/index.js.map +0 -1
  931. package/build/cjs/ai/vercel-ai/index.js +0 -70
  932. package/build/cjs/ai/vercel-ai/index.js.map +0 -1
  933. package/build/cjs/ai/workers-ai/constants.js +0 -10
  934. package/build/cjs/ai/workers-ai/constants.js.map +0 -1
  935. package/build/cjs/ai/workers-ai/index.js +0 -85
  936. package/build/cjs/ai/workers-ai/index.js.map +0 -1
  937. package/build/cjs/ai/workers-ai/streaming.js +0 -149
  938. package/build/cjs/ai/workers-ai/streaming.js.map +0 -1
  939. package/build/cjs/ai/workers-ai/utils.js +0 -166
  940. package/build/cjs/ai/workers-ai/utils.js.map +0 -1
  941. package/build/cjs/async-context.js +0 -68
  942. package/build/cjs/async-context.js.map +0 -1
  943. package/build/cjs/debug-build.js +0 -6
  944. package/build/cjs/debug-build.js.map +0 -1
  945. package/build/cjs/eve.js +0 -30
  946. package/build/cjs/eve.js.map +0 -1
  947. package/build/cjs/index.no-diagnostic-channels.js.map +0 -1
  948. package/build/cjs/integrations/amqplib.js +0 -417
  949. package/build/cjs/integrations/amqplib.js.map +0 -1
  950. package/build/cjs/integrations/anthropic.js +0 -145
  951. package/build/cjs/integrations/anthropic.js.map +0 -1
  952. package/build/cjs/integrations/aws-sdk/constants.js +0 -16
  953. package/build/cjs/integrations/aws-sdk/constants.js.map +0 -1
  954. package/build/cjs/integrations/aws-sdk/index.js +0 -145
  955. package/build/cjs/integrations/aws-sdk/index.js.map +0 -1
  956. package/build/cjs/integrations/aws-sdk/services/MessageAttributes.js +0 -46
  957. package/build/cjs/integrations/aws-sdk/services/MessageAttributes.js.map +0 -1
  958. package/build/cjs/integrations/aws-sdk/services/ServicesExtensions.js +0 -47
  959. package/build/cjs/integrations/aws-sdk/services/ServicesExtensions.js.map +0 -1
  960. package/build/cjs/integrations/aws-sdk/services/bedrock-runtime.js +0 -424
  961. package/build/cjs/integrations/aws-sdk/services/bedrock-runtime.js.map +0 -1
  962. package/build/cjs/integrations/aws-sdk/services/dynamodb.js +0 -130
  963. package/build/cjs/integrations/aws-sdk/services/dynamodb.js.map +0 -1
  964. package/build/cjs/integrations/aws-sdk/services/kinesis.js +0 -19
  965. package/build/cjs/integrations/aws-sdk/services/kinesis.js.map +0 -1
  966. package/build/cjs/integrations/aws-sdk/services/lambda.js +0 -63
  967. package/build/cjs/integrations/aws-sdk/services/lambda.js.map +0 -1
  968. package/build/cjs/integrations/aws-sdk/services/s3.js +0 -19
  969. package/build/cjs/integrations/aws-sdk/services/s3.js.map +0 -1
  970. package/build/cjs/integrations/aws-sdk/services/secretsmanager.js +0 -25
  971. package/build/cjs/integrations/aws-sdk/services/secretsmanager.js.map +0 -1
  972. package/build/cjs/integrations/aws-sdk/services/sns.js +0 -79
  973. package/build/cjs/integrations/aws-sdk/services/sns.js.map +0 -1
  974. package/build/cjs/integrations/aws-sdk/services/sqs.js +0 -135
  975. package/build/cjs/integrations/aws-sdk/services/sqs.js.map +0 -1
  976. package/build/cjs/integrations/aws-sdk/services/stepfunctions.js +0 -23
  977. package/build/cjs/integrations/aws-sdk/services/stepfunctions.js.map +0 -1
  978. package/build/cjs/integrations/aws-sdk/utils.js +0 -30
  979. package/build/cjs/integrations/aws-sdk/utils.js.map +0 -1
  980. package/build/cjs/integrations/cron.js +0 -49
  981. package/build/cjs/integrations/cron.js.map +0 -1
  982. package/build/cjs/integrations/dataloader.js +0 -118
  983. package/build/cjs/integrations/dataloader.js.map +0 -1
  984. package/build/cjs/integrations/express/error-handled.js +0 -17
  985. package/build/cjs/integrations/express/error-handled.js.map +0 -1
  986. package/build/cjs/integrations/express/error-handler.js +0 -43
  987. package/build/cjs/integrations/express/error-handler.js.map +0 -1
  988. package/build/cjs/integrations/express/index.js +0 -24
  989. package/build/cjs/integrations/express/index.js.map +0 -1
  990. package/build/cjs/integrations/express/instrumentation.js +0 -222
  991. package/build/cjs/integrations/express/instrumentation.js.map +0 -1
  992. package/build/cjs/integrations/express/route.js +0 -76
  993. package/build/cjs/integrations/express/route.js.map +0 -1
  994. package/build/cjs/integrations/express/utils.js +0 -12
  995. package/build/cjs/integrations/express/utils.js.map +0 -1
  996. package/build/cjs/integrations/fastify/errors.js +0 -36
  997. package/build/cjs/integrations/fastify/errors.js.map +0 -1
  998. package/build/cjs/integrations/fastify/index.js +0 -28
  999. package/build/cjs/integrations/fastify/index.js.map +0 -1
  1000. package/build/cjs/integrations/fastify/instrumentation.js +0 -252
  1001. package/build/cjs/integrations/fastify/instrumentation.js.map +0 -1
  1002. package/build/cjs/integrations/fastify/utils.js +0 -26
  1003. package/build/cjs/integrations/fastify/utils.js.map +0 -1
  1004. package/build/cjs/integrations/firebase/firestore.js +0 -93
  1005. package/build/cjs/integrations/firebase/firestore.js.map +0 -1
  1006. package/build/cjs/integrations/firebase/functions.js +0 -79
  1007. package/build/cjs/integrations/firebase/functions.js.map +0 -1
  1008. package/build/cjs/integrations/firebase/index.js +0 -20
  1009. package/build/cjs/integrations/firebase/index.js.map +0 -1
  1010. package/build/cjs/integrations/firebase/instrumentation.js +0 -56
  1011. package/build/cjs/integrations/firebase/instrumentation.js.map +0 -1
  1012. package/build/cjs/integrations/flue.js +0 -40
  1013. package/build/cjs/integrations/flue.js.map +0 -1
  1014. package/build/cjs/integrations/generic-pool.js +0 -36
  1015. package/build/cjs/integrations/generic-pool.js.map +0 -1
  1016. package/build/cjs/integrations/google-genai.js +0 -99
  1017. package/build/cjs/integrations/google-genai.js.map +0 -1
  1018. package/build/cjs/integrations/graphql/constants.js +0 -36
  1019. package/build/cjs/integrations/graphql/constants.js.map +0 -1
  1020. package/build/cjs/integrations/graphql/graphql-dc-subscriber.js +0 -122
  1021. package/build/cjs/integrations/graphql/graphql-dc-subscriber.js.map +0 -1
  1022. package/build/cjs/integrations/graphql/index.js +0 -60
  1023. package/build/cjs/integrations/graphql/index.js.map +0 -1
  1024. package/build/cjs/integrations/graphql/resolvers.js +0 -175
  1025. package/build/cjs/integrations/graphql/resolvers.js.map +0 -1
  1026. package/build/cjs/integrations/graphql/spans.js +0 -114
  1027. package/build/cjs/integrations/graphql/spans.js.map +0 -1
  1028. package/build/cjs/integrations/graphql/utils.js +0 -98
  1029. package/build/cjs/integrations/graphql/utils.js.map +0 -1
  1030. package/build/cjs/integrations/groq.js +0 -21
  1031. package/build/cjs/integrations/groq.js.map +0 -1
  1032. package/build/cjs/integrations/hapi/hapi-error-handler.js +0 -46
  1033. package/build/cjs/integrations/hapi/hapi-error-handler.js.map +0 -1
  1034. package/build/cjs/integrations/hapi/hapi-types.js +0 -23
  1035. package/build/cjs/integrations/hapi/hapi-types.js.map +0 -1
  1036. package/build/cjs/integrations/hapi/hapi-utils.js +0 -202
  1037. package/build/cjs/integrations/hapi/hapi-utils.js.map +0 -1
  1038. package/build/cjs/integrations/hapi/index.js +0 -73
  1039. package/build/cjs/integrations/hapi/index.js.map +0 -1
  1040. package/build/cjs/integrations/hono/applyPatches.js +0 -38
  1041. package/build/cjs/integrations/hono/applyPatches.js.map +0 -1
  1042. package/build/cjs/integrations/hono/connInfo.js +0 -37
  1043. package/build/cjs/integrations/hono/connInfo.js.map +0 -1
  1044. package/build/cjs/integrations/hono/constants.js +0 -6
  1045. package/build/cjs/integrations/hono/constants.js.map +0 -1
  1046. package/build/cjs/integrations/hono/createHonoMiddleware.js +0 -44
  1047. package/build/cjs/integrations/hono/createHonoMiddleware.js.map +0 -1
  1048. package/build/cjs/integrations/hono/defaultShouldHandleError.js +0 -14
  1049. package/build/cjs/integrations/hono/defaultShouldHandleError.js.map +0 -1
  1050. package/build/cjs/integrations/hono/hono-context.js +0 -14
  1051. package/build/cjs/integrations/hono/hono-context.js.map +0 -1
  1052. package/build/cjs/integrations/hono/honoIntegration.js +0 -98
  1053. package/build/cjs/integrations/hono/honoIntegration.js.map +0 -1
  1054. package/build/cjs/integrations/hono/isMiddleware.js +0 -22
  1055. package/build/cjs/integrations/hono/isMiddleware.js.map +0 -1
  1056. package/build/cjs/integrations/hono/matchResult.js +0 -18
  1057. package/build/cjs/integrations/hono/matchResult.js.map +0 -1
  1058. package/build/cjs/integrations/hono/middlewareHandlers.js +0 -91
  1059. package/build/cjs/integrations/hono/middlewareHandlers.js.map +0 -1
  1060. package/build/cjs/integrations/hono/patchAppRequest.js +0 -82
  1061. package/build/cjs/integrations/hono/patchAppRequest.js.map +0 -1
  1062. package/build/cjs/integrations/hono/patchAppUse.js +0 -70
  1063. package/build/cjs/integrations/hono/patchAppUse.js.map +0 -1
  1064. package/build/cjs/integrations/hono/patchRoute.js +0 -73
  1065. package/build/cjs/integrations/hono/patchRoute.js.map +0 -1
  1066. package/build/cjs/integrations/hono/resolveRouteName.js +0 -31
  1067. package/build/cjs/integrations/hono/resolveRouteName.js.map +0 -1
  1068. package/build/cjs/integrations/hono/wrapMiddlewareSpan.js +0 -52
  1069. package/build/cjs/integrations/hono/wrapMiddlewareSpan.js.map +0 -1
  1070. package/build/cjs/integrations/index.js +0 -93
  1071. package/build/cjs/integrations/index.js.map +0 -1
  1072. package/build/cjs/integrations/kafkajs/consumer.js +0 -71
  1073. package/build/cjs/integrations/kafkajs/consumer.js.map +0 -1
  1074. package/build/cjs/integrations/kafkajs/index.js +0 -70
  1075. package/build/cjs/integrations/kafkajs/index.js.map +0 -1
  1076. package/build/cjs/integrations/kafkajs/semconv.js +0 -14
  1077. package/build/cjs/integrations/kafkajs/semconv.js.map +0 -1
  1078. package/build/cjs/integrations/kafkajs/spans.js +0 -127
  1079. package/build/cjs/integrations/kafkajs/spans.js.map +0 -1
  1080. package/build/cjs/integrations/knex.js +0 -187
  1081. package/build/cjs/integrations/knex.js.map +0 -1
  1082. package/build/cjs/integrations/koa/index.js +0 -155
  1083. package/build/cjs/integrations/koa/index.js.map +0 -1
  1084. package/build/cjs/integrations/koa/koa-error-handler.js +0 -33
  1085. package/build/cjs/integrations/koa/koa-error-handler.js.map +0 -1
  1086. package/build/cjs/integrations/langchain.js +0 -92
  1087. package/build/cjs/integrations/langchain.js.map +0 -1
  1088. package/build/cjs/integrations/langgraph.js +0 -87
  1089. package/build/cjs/integrations/langgraph.js.map +0 -1
  1090. package/build/cjs/integrations/lru-memoizer.js +0 -29
  1091. package/build/cjs/integrations/lru-memoizer.js.map +0 -1
  1092. package/build/cjs/integrations/mastra-classifier.js +0 -57
  1093. package/build/cjs/integrations/mastra-classifier.js.map +0 -1
  1094. package/build/cjs/integrations/mastra.js +0 -247
  1095. package/build/cjs/integrations/mastra.js.map +0 -1
  1096. package/build/cjs/integrations/mcp-server.js +0 -37
  1097. package/build/cjs/integrations/mcp-server.js.map +0 -1
  1098. package/build/cjs/integrations/mistral.js +0 -69
  1099. package/build/cjs/integrations/mistral.js.map +0 -1
  1100. package/build/cjs/integrations/mongodb/index.js +0 -94
  1101. package/build/cjs/integrations/mongodb/index.js.map +0 -1
  1102. package/build/cjs/integrations/mongodb/mongodb-span.js +0 -135
  1103. package/build/cjs/integrations/mongodb/mongodb-span.js.map +0 -1
  1104. package/build/cjs/integrations/mongoose/index.js +0 -109
  1105. package/build/cjs/integrations/mongoose/index.js.map +0 -1
  1106. package/build/cjs/integrations/mongoose/mongoose-dc-subscriber.js +0 -101
  1107. package/build/cjs/integrations/mongoose/mongoose-dc-subscriber.js.map +0 -1
  1108. package/build/cjs/integrations/mongoose/mongoose-legacy-span.js +0 -41
  1109. package/build/cjs/integrations/mongoose/mongoose-legacy-span.js.map +0 -1
  1110. package/build/cjs/integrations/mysql.js +0 -101
  1111. package/build/cjs/integrations/mysql.js.map +0 -1
  1112. package/build/cjs/integrations/mysql2/index.js +0 -80
  1113. package/build/cjs/integrations/mysql2/index.js.map +0 -1
  1114. package/build/cjs/integrations/mysql2/mysql2-dc-subscriber.js +0 -57
  1115. package/build/cjs/integrations/mysql2/mysql2-dc-subscriber.js.map +0 -1
  1116. package/build/cjs/integrations/neon.js +0 -107
  1117. package/build/cjs/integrations/neon.js.map +0 -1
  1118. package/build/cjs/integrations/nitro/captureStorageEvents.js +0 -132
  1119. package/build/cjs/integrations/nitro/captureStorageEvents.js.map +0 -1
  1120. package/build/cjs/integrations/nitro/captureTracingEvents.js +0 -202
  1121. package/build/cjs/integrations/nitro/captureTracingEvents.js.map +0 -1
  1122. package/build/cjs/integrations/nitro/index.js +0 -27
  1123. package/build/cjs/integrations/nitro/index.js.map +0 -1
  1124. package/build/cjs/integrations/nitro/setServerTimingHeaders.js +0 -40
  1125. package/build/cjs/integrations/nitro/setServerTimingHeaders.js.map +0 -1
  1126. package/build/cjs/integrations/node-cron.js +0 -68
  1127. package/build/cjs/integrations/node-cron.js.map +0 -1
  1128. package/build/cjs/integrations/node-schedule.js +0 -76
  1129. package/build/cjs/integrations/node-schedule.js.map +0 -1
  1130. package/build/cjs/integrations/openai-compatible.js +0 -90
  1131. package/build/cjs/integrations/openai-compatible.js.map +0 -1
  1132. package/build/cjs/integrations/openai.js +0 -93
  1133. package/build/cjs/integrations/openai.js.map +0 -1
  1134. package/build/cjs/integrations/pg.js +0 -171
  1135. package/build/cjs/integrations/pg.js.map +0 -1
  1136. package/build/cjs/integrations/pi-durable.js +0 -50
  1137. package/build/cjs/integrations/pi-durable.js.map +0 -1
  1138. package/build/cjs/integrations/postgresjs/index.js +0 -147
  1139. package/build/cjs/integrations/postgresjs/index.js.map +0 -1
  1140. package/build/cjs/integrations/postgresjs/postgresjs-dc-subscriber.js +0 -81
  1141. package/build/cjs/integrations/postgresjs/postgresjs-dc-subscriber.js.map +0 -1
  1142. package/build/cjs/integrations/postgresjs-wrapper.js +0 -219
  1143. package/build/cjs/integrations/postgresjs-wrapper.js.map +0 -1
  1144. package/build/cjs/integrations/prisma/global.js +0 -14
  1145. package/build/cjs/integrations/prisma/global.js.map +0 -1
  1146. package/build/cjs/integrations/prisma/index.js +0 -36
  1147. package/build/cjs/integrations/prisma/index.js.map +0 -1
  1148. package/build/cjs/integrations/prisma/orchestrion.js +0 -137
  1149. package/build/cjs/integrations/prisma/orchestrion.js.map +0 -1
  1150. package/build/cjs/integrations/prisma/tracing-helper.js +0 -241
  1151. package/build/cjs/integrations/prisma/tracing-helper.js.map +0 -1
  1152. package/build/cjs/integrations/redis/index.js +0 -223
  1153. package/build/cjs/integrations/redis/index.js.map +0 -1
  1154. package/build/cjs/integrations/redis/ioredis-channel-subscriber.js +0 -87
  1155. package/build/cjs/integrations/redis/ioredis-channel-subscriber.js.map +0 -1
  1156. package/build/cjs/integrations/redis/redis-cache.js +0 -144
  1157. package/build/cjs/integrations/redis/redis-cache.js.map +0 -1
  1158. package/build/cjs/integrations/redis/redis-dc-subscriber.js +0 -107
  1159. package/build/cjs/integrations/redis/redis-dc-subscriber.js.map +0 -1
  1160. package/build/cjs/integrations/redis/redis-span-name.js +0 -32
  1161. package/build/cjs/integrations/redis/redis-span-name.js.map +0 -1
  1162. package/build/cjs/integrations/redis/redis-statement-serializer.js +0 -34
  1163. package/build/cjs/integrations/redis/redis-statement-serializer.js.map +0 -1
  1164. package/build/cjs/integrations/tedious.js +0 -160
  1165. package/build/cjs/integrations/tedious.js.map +0 -1
  1166. package/build/cjs/integrations/together-ai.js +0 -19
  1167. package/build/cjs/integrations/together-ai.js.map +0 -1
  1168. package/build/cjs/integrations/typesafe.js +0 -45
  1169. package/build/cjs/integrations/typesafe.js.map +0 -1
  1170. package/build/cjs/integrations/vercel-ai/gen-ai-recording-mode.js +0 -13
  1171. package/build/cjs/integrations/vercel-ai/gen-ai-recording-mode.js.map +0 -1
  1172. package/build/cjs/integrations/vercel-ai/index.js +0 -34
  1173. package/build/cjs/integrations/vercel-ai/index.js.map +0 -1
  1174. package/build/cjs/integrations/vercel-ai/util.js +0 -108
  1175. package/build/cjs/integrations/vercel-ai/util.js.map +0 -1
  1176. package/build/cjs/integrations/vercel-ai/vercel-ai-dc-subscriber.js +0 -581
  1177. package/build/cjs/integrations/vercel-ai/vercel-ai-dc-subscriber.js.map +0 -1
  1178. package/build/cjs/integrations/vercel-ai/vercel-ai-orchestrion-subscriber.js +0 -409
  1179. package/build/cjs/integrations/vercel-ai/vercel-ai-orchestrion-subscriber.js.map +0 -1
  1180. package/build/cjs/integrations/vercel-ai/vercel-ai-tool-telemetry.js +0 -40
  1181. package/build/cjs/integrations/vercel-ai/vercel-ai-tool-telemetry.js.map +0 -1
  1182. package/build/cjs/opentelemetry.js +0 -45
  1183. package/build/cjs/opentelemetry.js.map +0 -1
  1184. package/build/cjs/orchestrion/bundler/externalRequire.js +0 -82
  1185. package/build/cjs/orchestrion/bundler/externalRequire.js.map +0 -1
  1186. package/build/cjs/orchestrion/bundler/moduleInjectedTransform.js +0 -55
  1187. package/build/cjs/orchestrion/bundler/moduleInjectedTransform.js.map +0 -1
  1188. package/build/cjs/orchestrion/bundler/options.js +0 -25
  1189. package/build/cjs/orchestrion/bundler/options.js.map +0 -1
  1190. package/build/cjs/orchestrion/bundler/resolve.js +0 -27
  1191. package/build/cjs/orchestrion/bundler/resolve.js.map +0 -1
  1192. package/build/cjs/orchestrion/channels.js +0 -92
  1193. package/build/cjs/orchestrion/channels.js.map +0 -1
  1194. package/build/cjs/orchestrion/config/amqplib.js +0 -93
  1195. package/build/cjs/orchestrion/config/amqplib.js.map +0 -1
  1196. package/build/cjs/orchestrion/config/anthropic-ai.js +0 -53
  1197. package/build/cjs/orchestrion/config/anthropic-ai.js.map +0 -1
  1198. package/build/cjs/orchestrion/config/aws-sdk.js +0 -32
  1199. package/build/cjs/orchestrion/config/aws-sdk.js.map +0 -1
  1200. package/build/cjs/orchestrion/config/channel-integration-definitions.js +0 -59
  1201. package/build/cjs/orchestrion/config/channel-integration-definitions.js.map +0 -1
  1202. package/build/cjs/orchestrion/config/cron.js +0 -26
  1203. package/build/cjs/orchestrion/config/cron.js.map +0 -1
  1204. package/build/cjs/orchestrion/config/dataloader.js +0 -53
  1205. package/build/cjs/orchestrion/config/dataloader.js.map +0 -1
  1206. package/build/cjs/orchestrion/config/express.js +0 -81
  1207. package/build/cjs/orchestrion/config/express.js.map +0 -1
  1208. package/build/cjs/orchestrion/config/firebase.js +0 -85
  1209. package/build/cjs/orchestrion/config/firebase.js.map +0 -1
  1210. package/build/cjs/orchestrion/config/flue.js +0 -10
  1211. package/build/cjs/orchestrion/config/flue.js.map +0 -1
  1212. package/build/cjs/orchestrion/config/generic-pool.js +0 -25
  1213. package/build/cjs/orchestrion/config/generic-pool.js.map +0 -1
  1214. package/build/cjs/orchestrion/config/google-genai.js +0 -43
  1215. package/build/cjs/orchestrion/config/google-genai.js.map +0 -1
  1216. package/build/cjs/orchestrion/config/graphql.js +0 -32
  1217. package/build/cjs/orchestrion/config/graphql.js.map +0 -1
  1218. package/build/cjs/orchestrion/config/groq.js +0 -19
  1219. package/build/cjs/orchestrion/config/groq.js.map +0 -1
  1220. package/build/cjs/orchestrion/config/hapi.js +0 -48
  1221. package/build/cjs/orchestrion/config/hapi.js.map +0 -1
  1222. package/build/cjs/orchestrion/config/hono.js +0 -34
  1223. package/build/cjs/orchestrion/config/hono.js.map +0 -1
  1224. package/build/cjs/orchestrion/config/index.js.map +0 -1
  1225. package/build/cjs/orchestrion/config/ioredis.js +0 -41
  1226. package/build/cjs/orchestrion/config/ioredis.js.map +0 -1
  1227. package/build/cjs/orchestrion/config/kafkajs.js +0 -34
  1228. package/build/cjs/orchestrion/config/kafkajs.js.map +0 -1
  1229. package/build/cjs/orchestrion/config/knex.js +0 -43
  1230. package/build/cjs/orchestrion/config/knex.js.map +0 -1
  1231. package/build/cjs/orchestrion/config/koa.js +0 -32
  1232. package/build/cjs/orchestrion/config/koa.js.map +0 -1
  1233. package/build/cjs/orchestrion/config/langchain.js +0 -66
  1234. package/build/cjs/orchestrion/config/langchain.js.map +0 -1
  1235. package/build/cjs/orchestrion/config/langgraph.js +0 -32
  1236. package/build/cjs/orchestrion/config/langgraph.js.map +0 -1
  1237. package/build/cjs/orchestrion/config/lru-memoizer.js +0 -21
  1238. package/build/cjs/orchestrion/config/lru-memoizer.js.map +0 -1
  1239. package/build/cjs/orchestrion/config/mastra.js +0 -54
  1240. package/build/cjs/orchestrion/config/mastra.js.map +0 -1
  1241. package/build/cjs/orchestrion/config/mcp-server.js +0 -41
  1242. package/build/cjs/orchestrion/config/mcp-server.js.map +0 -1
  1243. package/build/cjs/orchestrion/config/mistral.js +0 -57
  1244. package/build/cjs/orchestrion/config/mistral.js.map +0 -1
  1245. package/build/cjs/orchestrion/config/module-names.js +0 -8
  1246. package/build/cjs/orchestrion/config/module-names.js.map +0 -1
  1247. package/build/cjs/orchestrion/config/mongodb.js +0 -71
  1248. package/build/cjs/orchestrion/config/mongodb.js.map +0 -1
  1249. package/build/cjs/orchestrion/config/mongoose.js +0 -113
  1250. package/build/cjs/orchestrion/config/mongoose.js.map +0 -1
  1251. package/build/cjs/orchestrion/config/mysql.js +0 -20
  1252. package/build/cjs/orchestrion/config/mysql.js.map +0 -1
  1253. package/build/cjs/orchestrion/config/mysql2.js +0 -38
  1254. package/build/cjs/orchestrion/config/mysql2.js.map +0 -1
  1255. package/build/cjs/orchestrion/config/neon.js +0 -46
  1256. package/build/cjs/orchestrion/config/neon.js.map +0 -1
  1257. package/build/cjs/orchestrion/config/nestjs.js +0 -130
  1258. package/build/cjs/orchestrion/config/nestjs.js.map +0 -1
  1259. package/build/cjs/orchestrion/config/nitro.js +0 -10
  1260. package/build/cjs/orchestrion/config/nitro.js.map +0 -1
  1261. package/build/cjs/orchestrion/config/node-cron.js +0 -53
  1262. package/build/cjs/orchestrion/config/node-cron.js.map +0 -1
  1263. package/build/cjs/orchestrion/config/node-schedule.js +0 -29
  1264. package/build/cjs/orchestrion/config/node-schedule.js.map +0 -1
  1265. package/build/cjs/orchestrion/config/openai-compatible.js +0 -19
  1266. package/build/cjs/orchestrion/config/openai-compatible.js.map +0 -1
  1267. package/build/cjs/orchestrion/config/openai.js +0 -49
  1268. package/build/cjs/orchestrion/config/openai.js.map +0 -1
  1269. package/build/cjs/orchestrion/config/pg.js +0 -55
  1270. package/build/cjs/orchestrion/config/pg.js.map +0 -1
  1271. package/build/cjs/orchestrion/config/pi-durable.js +0 -34
  1272. package/build/cjs/orchestrion/config/pi-durable.js.map +0 -1
  1273. package/build/cjs/orchestrion/config/postgres.js +0 -58
  1274. package/build/cjs/orchestrion/config/postgres.js.map +0 -1
  1275. package/build/cjs/orchestrion/config/prisma.js +0 -53
  1276. package/build/cjs/orchestrion/config/prisma.js.map +0 -1
  1277. package/build/cjs/orchestrion/config/redis.js +0 -82
  1278. package/build/cjs/orchestrion/config/redis.js.map +0 -1
  1279. package/build/cjs/orchestrion/config/registration-only.js +0 -15
  1280. package/build/cjs/orchestrion/config/registration-only.js.map +0 -1
  1281. package/build/cjs/orchestrion/config/remix-v3.js +0 -55
  1282. package/build/cjs/orchestrion/config/remix-v3.js.map +0 -1
  1283. package/build/cjs/orchestrion/config/remix.js +0 -54
  1284. package/build/cjs/orchestrion/config/remix.js.map +0 -1
  1285. package/build/cjs/orchestrion/config/tedious.js +0 -28
  1286. package/build/cjs/orchestrion/config/tedious.js.map +0 -1
  1287. package/build/cjs/orchestrion/config/together-ai.js +0 -23
  1288. package/build/cjs/orchestrion/config/together-ai.js.map +0 -1
  1289. package/build/cjs/orchestrion/config/typesafe.js +0 -18
  1290. package/build/cjs/orchestrion/config/typesafe.js.map +0 -1
  1291. package/build/cjs/orchestrion/config/vercel-ai.js +0 -56
  1292. package/build/cjs/orchestrion/config/vercel-ai.js.map +0 -1
  1293. package/build/cjs/orchestrion/detect.js +0 -29
  1294. package/build/cjs/orchestrion/detect.js.map +0 -1
  1295. package/build/cjs/orchestrion/instrumentation.js +0 -80
  1296. package/build/cjs/orchestrion/instrumentation.js.map +0 -1
  1297. package/build/cjs/tracing-channel.js +0 -152
  1298. package/build/cjs/tracing-channel.js.map +0 -1
  1299. package/build/cjs/utils/cronMonitoring.js +0 -160
  1300. package/build/cjs/utils/cronMonitoring.js.map +0 -1
  1301. package/build/cjs/utils/diagnosticsChannel.js +0 -47
  1302. package/build/cjs/utils/diagnosticsChannel.js.map +0 -1
  1303. package/build/cjs/utils/moduleInjected.js +0 -18
  1304. package/build/cjs/utils/moduleInjected.js.map +0 -1
  1305. package/build/cjs/utils/monitorStream.js +0 -63
  1306. package/build/cjs/utils/monitorStream.js.map +0 -1
  1307. package/build/cjs/utils/setHttpServerSpanRouteAttribute.js +0 -26
  1308. package/build/cjs/utils/setHttpServerSpanRouteAttribute.js.map +0 -1
  1309. package/build/cjs/utils/sql.js +0 -285
  1310. package/build/cjs/utils/sql.js.map +0 -1
  1311. package/build/cjs/utils/withCleanScopes.js +0 -17
  1312. package/build/cjs/utils/withCleanScopes.js.map +0 -1
  1313. package/build/cjs/utils/wrapServerRequestHandler.js +0 -209
  1314. package/build/cjs/utils/wrapServerRequestHandler.js.map +0 -1
  1315. package/build/cjs/vendored/@apm-js-collab/code-transformer/index.js +0 -8
  1316. package/build/cjs/vendored/@apm-js-collab/code-transformer/index.js.map +0 -1
  1317. package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/index.js +0 -12
  1318. package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/index.js.map +0 -1
  1319. package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/matcher.js +0 -86
  1320. package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/matcher.js.map +0 -1
  1321. package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/transformer.js +0 -316
  1322. package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/transformer.js.map +0 -1
  1323. package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/transforms.js +0 -470
  1324. package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/transforms.js.map +0 -1
  1325. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/bun.js +0 -65
  1326. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/bun.js.map +0 -1
  1327. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/core-Bd0h-mo3.js.map +0 -1
  1328. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/esbuild.js.map +0 -1
  1329. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/instrumentation-serde-C-Xxv-jj.js.map +0 -1
  1330. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/rollup-DCG8HLmh.js.map +0 -1
  1331. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/vite.js +0 -14
  1332. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/vite.js.map +0 -1
  1333. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/webpack-loader-factory.js +0 -117
  1334. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/webpack-loader-factory.js.map +0 -1
  1335. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/webpack.js +0 -103
  1336. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/webpack.js.map +0 -1
  1337. package/build/cjs/vendored/astring/dist/astring.js +0 -1068
  1338. package/build/cjs/vendored/astring/dist/astring.js.map +0 -1
  1339. package/build/cjs/vendored/esquery/dist/esquery.esm.min.js +0 -847
  1340. package/build/cjs/vendored/esquery/dist/esquery.esm.min.js.map +0 -1
  1341. package/build/cjs/vendored/meriyah/dist/meriyah.js +0 -9192
  1342. package/build/cjs/vendored/meriyah/dist/meriyah.js.map +0 -1
  1343. package/build/cjs/vendored/meriyah/dist/meriyah2.js +0 -9209
  1344. package/build/cjs/vendored/meriyah/dist/meriyah2.js.map +0 -1
  1345. package/build/cjs/vendored/module-details-from-path/index.js +0 -43
  1346. package/build/cjs/vendored/module-details-from-path/index.js.map +0 -1
  1347. package/build/cjs/vendored/semifies/index.js +0 -111
  1348. package/build/cjs/vendored/semifies/index.js.map +0 -1
  1349. package/build/cjs/vendored/source-map/lib/array-set.js +0 -73
  1350. package/build/cjs/vendored/source-map/lib/array-set.js.map +0 -1
  1351. package/build/cjs/vendored/source-map/lib/base64-vlq.js +0 -57
  1352. package/build/cjs/vendored/source-map/lib/base64-vlq.js.map +0 -1
  1353. package/build/cjs/vendored/source-map/lib/base64.js +0 -42
  1354. package/build/cjs/vendored/source-map/lib/base64.js.map +0 -1
  1355. package/build/cjs/vendored/source-map/lib/binary-search.js +0 -55
  1356. package/build/cjs/vendored/source-map/lib/binary-search.js.map +0 -1
  1357. package/build/cjs/vendored/source-map/lib/mapping-list.js +0 -42
  1358. package/build/cjs/vendored/source-map/lib/mapping-list.js.map +0 -1
  1359. package/build/cjs/vendored/source-map/lib/quick-sort.js +0 -36
  1360. package/build/cjs/vendored/source-map/lib/quick-sort.js.map +0 -1
  1361. package/build/cjs/vendored/source-map/lib/source-map-consumer.js +0 -612
  1362. package/build/cjs/vendored/source-map/lib/source-map-consumer.js.map +0 -1
  1363. package/build/cjs/vendored/source-map/lib/source-map-generator.js +0 -285
  1364. package/build/cjs/vendored/source-map/lib/source-map-generator.js.map +0 -1
  1365. package/build/cjs/vendored/source-map/lib/source-node.js +0 -270
  1366. package/build/cjs/vendored/source-map/lib/source-node.js.map +0 -1
  1367. package/build/cjs/vendored/source-map/lib/util.js +0 -300
  1368. package/build/cjs/vendored/source-map/lib/util.js.map +0 -1
  1369. package/build/cjs/vendored/source-map/source-map.js +0 -16
  1370. package/build/cjs/vendored/source-map/source-map.js.map +0 -1
  1371. package/build/esm/_virtual/_commonjsHelpers.js +0 -6
  1372. package/build/esm/_virtual/_commonjsHelpers.js.map +0 -1
  1373. package/build/esm/_virtual/array-set.js +0 -4
  1374. package/build/esm/_virtual/array-set.js.map +0 -1
  1375. package/build/esm/_virtual/astring.js +0 -4
  1376. package/build/esm/_virtual/astring.js.map +0 -1
  1377. package/build/esm/_virtual/base64-vlq.js +0 -4
  1378. package/build/esm/_virtual/base64-vlq.js.map +0 -1
  1379. package/build/esm/_virtual/base64.js +0 -4
  1380. package/build/esm/_virtual/base64.js.map +0 -1
  1381. package/build/esm/_virtual/binary-search.js +0 -4
  1382. package/build/esm/_virtual/binary-search.js.map +0 -1
  1383. package/build/esm/_virtual/mapping-list.js +0 -4
  1384. package/build/esm/_virtual/mapping-list.js.map +0 -1
  1385. package/build/esm/_virtual/meriyah.js +0 -4
  1386. package/build/esm/_virtual/meriyah.js.map +0 -1
  1387. package/build/esm/_virtual/quick-sort.js +0 -4
  1388. package/build/esm/_virtual/quick-sort.js.map +0 -1
  1389. package/build/esm/_virtual/source-map-consumer.js +0 -4
  1390. package/build/esm/_virtual/source-map-consumer.js.map +0 -1
  1391. package/build/esm/_virtual/source-map-generator.js +0 -4
  1392. package/build/esm/_virtual/source-map-generator.js.map +0 -1
  1393. package/build/esm/_virtual/source-map.js +0 -4
  1394. package/build/esm/_virtual/source-map.js.map +0 -1
  1395. package/build/esm/_virtual/source-node.js +0 -4
  1396. package/build/esm/_virtual/source-node.js.map +0 -1
  1397. package/build/esm/_virtual/util.js +0 -4
  1398. package/build/esm/_virtual/util.js.map +0 -1
  1399. package/build/esm/ai/pi-durable/models.js +0 -138
  1400. package/build/esm/ai/pi-durable/models.js.map +0 -1
  1401. package/build/esm/index.no-diagnostic-channels.js.map +0 -1
  1402. package/build/esm/index.request-handler.js.map +0 -1
  1403. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/core-Bd0h-mo3.js.map +0 -1
  1404. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/rollup-DCG8HLmh.js.map +0 -1
  1405. package/build/esm/vendored/esquery/dist/esquery.esm.min.js +0 -845
  1406. package/build/esm/vendored/esquery/dist/esquery.esm.min.js.map +0 -1
  1407. package/build/types/ai/pi-durable/models.d.ts +0 -10
  1408. package/build/types/ai/pi-durable/models.d.ts.map +0 -1
@@ -0,0 +1,3388 @@
1
+ const require_pi_ai = require("./pi-ai.js");
2
+ const require_registration_only = require("./registration-only.js");
3
+ let _sentry_core = require("@sentry/core");
4
+ // src/orchestrion/config/aws-sdk.ts
5
+ const awsSdkConfig = [
6
+ {
7
+ channelName: "send",
8
+ module: {
9
+ name: "@smithy/core",
10
+ versionRange: ">=3.24.0 <4",
11
+ filePath: "dist-cjs/submodules/client/index.js"
12
+ },
13
+ functionQuery: {
14
+ className: "Client",
15
+ methodName: "send",
16
+ kind: "Async"
17
+ }
18
+ },
19
+ {
20
+ channelName: "send",
21
+ module: {
22
+ name: "@smithy/smithy-client",
23
+ versionRange: ">=1.0.3 <5",
24
+ filePath: "dist-cjs/index.js"
25
+ },
26
+ functionQuery: {
27
+ className: "Client",
28
+ methodName: "send",
29
+ kind: "Async"
30
+ }
31
+ },
32
+ {
33
+ channelName: "send",
34
+ module: {
35
+ name: "@aws-sdk/smithy-client",
36
+ versionRange: "^3.1.0",
37
+ filePath: "dist-cjs/index.js"
38
+ },
39
+ functionQuery: {
40
+ className: "Client",
41
+ methodName: "send",
42
+ kind: "Async"
43
+ }
44
+ }
45
+ ];
46
+ const awsSdkModuleNames = require_pi_ai.getModuleNames(awsSdkConfig);
47
+ const awsSdkChannels = {
48
+ AWS_SMITHY_CORE_SEND: "orchestrion:@smithy/core:send",
49
+ AWS_SMITHY_CLIENT_SEND: "orchestrion:@smithy/smithy-client:send",
50
+ AWS_SDK_SMITHY_CLIENT_SEND: "orchestrion:@aws-sdk/smithy-client:send"
51
+ };
52
+ // src/orchestrion/config/amqplib.ts
53
+ const module$7 = {
54
+ name: "amqplib",
55
+ versionRange: ">=0.5.5 <3"
56
+ };
57
+ const amqplibConfig = [
58
+ ...["lib/channel_model.js", "lib/callback_model.js"].flatMap((filePath) => [
59
+ {
60
+ channelName: "publish",
61
+ module: {
62
+ ...module$7,
63
+ filePath
64
+ },
65
+ functionQuery: {
66
+ className: "Channel",
67
+ methodName: "publish",
68
+ kind: "Sync"
69
+ }
70
+ },
71
+ {
72
+ channelName: "confirmPublish",
73
+ module: {
74
+ ...module$7,
75
+ filePath
76
+ },
77
+ functionQuery: {
78
+ className: "ConfirmChannel",
79
+ methodName: "publish",
80
+ kind: "Callback"
81
+ }
82
+ },
83
+ {
84
+ channelName: "consume",
85
+ module: {
86
+ ...module$7,
87
+ filePath
88
+ },
89
+ functionQuery: {
90
+ className: "Channel",
91
+ methodName: "consume",
92
+ kind: "Sync"
93
+ }
94
+ },
95
+ {
96
+ channelName: "ack",
97
+ module: {
98
+ ...module$7,
99
+ filePath
100
+ },
101
+ functionQuery: {
102
+ className: "Channel",
103
+ methodName: "ack",
104
+ kind: "Sync"
105
+ }
106
+ },
107
+ {
108
+ channelName: "nack",
109
+ module: {
110
+ ...module$7,
111
+ filePath
112
+ },
113
+ functionQuery: {
114
+ className: "Channel",
115
+ methodName: "nack",
116
+ kind: "Sync"
117
+ }
118
+ },
119
+ {
120
+ channelName: "reject",
121
+ module: {
122
+ ...module$7,
123
+ filePath
124
+ },
125
+ functionQuery: {
126
+ className: "Channel",
127
+ methodName: "reject",
128
+ kind: "Sync"
129
+ }
130
+ },
131
+ {
132
+ channelName: "ackAll",
133
+ module: {
134
+ ...module$7,
135
+ filePath
136
+ },
137
+ functionQuery: {
138
+ className: "Channel",
139
+ methodName: "ackAll",
140
+ kind: "Sync"
141
+ }
142
+ },
143
+ {
144
+ channelName: "nackAll",
145
+ module: {
146
+ ...module$7,
147
+ filePath
148
+ },
149
+ functionQuery: {
150
+ className: "Channel",
151
+ methodName: "nackAll",
152
+ kind: "Sync"
153
+ }
154
+ }
155
+ ]),
156
+ {
157
+ channelName: "registerConsumer",
158
+ module: {
159
+ ...module$7,
160
+ filePath: "lib/channel.js"
161
+ },
162
+ functionQuery: {
163
+ className: "BaseChannel",
164
+ methodName: "registerConsumer",
165
+ kind: "Sync"
166
+ }
167
+ },
168
+ {
169
+ channelName: "dispatch",
170
+ module: {
171
+ ...module$7,
172
+ filePath: "lib/channel.js"
173
+ },
174
+ functionQuery: {
175
+ className: "BaseChannel",
176
+ methodName: "dispatchMessage",
177
+ kind: "Sync"
178
+ }
179
+ },
180
+ {
181
+ channelName: "connect",
182
+ module: {
183
+ ...module$7,
184
+ filePath: "lib/connect.js"
185
+ },
186
+ functionQuery: {
187
+ functionName: "connect",
188
+ kind: "Callback"
189
+ }
190
+ }
191
+ ];
192
+ const amqplibModuleNames = require_pi_ai.getModuleNames(amqplibConfig);
193
+ const amqplibChannels = {
194
+ AMQPLIB_PUBLISH: "orchestrion:amqplib:publish",
195
+ AMQPLIB_CONFIRM_PUBLISH: "orchestrion:amqplib:confirmPublish",
196
+ AMQPLIB_CONSUME: "orchestrion:amqplib:consume",
197
+ AMQPLIB_REGISTER_CONSUMER: "orchestrion:amqplib:registerConsumer",
198
+ AMQPLIB_DISPATCH: "orchestrion:amqplib:dispatch",
199
+ AMQPLIB_ACK: "orchestrion:amqplib:ack",
200
+ AMQPLIB_NACK: "orchestrion:amqplib:nack",
201
+ AMQPLIB_REJECT: "orchestrion:amqplib:reject",
202
+ AMQPLIB_ACK_ALL: "orchestrion:amqplib:ackAll",
203
+ AMQPLIB_NACK_ALL: "orchestrion:amqplib:nackAll",
204
+ AMQPLIB_CONNECT: "orchestrion:amqplib:connect"
205
+ };
206
+ // src/orchestrion/config/anthropic-ai.ts
207
+ const anthropicAiConfig = [
208
+ ...["resources/messages/messages.js", "resources/messages/messages.mjs"].map((filePath) => ({
209
+ channelName: "chat",
210
+ module: {
211
+ name: "@anthropic-ai/sdk",
212
+ versionRange: ">=0.19.2 <2",
213
+ filePath
214
+ },
215
+ functionQuery: {
216
+ className: "Messages",
217
+ methodName: "create",
218
+ kind: "Sync"
219
+ }
220
+ })),
221
+ ...["resources/completions.js", "resources/completions.mjs"].map((filePath) => ({
222
+ channelName: "chat",
223
+ module: {
224
+ name: "@anthropic-ai/sdk",
225
+ versionRange: ">=0.19.2 <1",
226
+ filePath
227
+ },
228
+ functionQuery: {
229
+ className: "Completions",
230
+ methodName: "create",
231
+ kind: "Sync"
232
+ }
233
+ })),
234
+ ...["resources/beta/messages/messages.js", "resources/beta/messages/messages.mjs"].map((filePath) => ({
235
+ channelName: "chat",
236
+ module: {
237
+ name: "@anthropic-ai/sdk",
238
+ versionRange: ">=0.19.2 <2",
239
+ filePath
240
+ },
241
+ functionQuery: {
242
+ className: "Messages",
243
+ methodName: "create",
244
+ kind: "Sync"
245
+ }
246
+ })),
247
+ ...["resources/messages/messages.js", "resources/messages/messages.mjs"].map((filePath) => ({
248
+ channelName: "messages-stream",
249
+ module: {
250
+ name: "@anthropic-ai/sdk",
251
+ versionRange: ">=0.19.2 <2",
252
+ filePath
253
+ },
254
+ functionQuery: {
255
+ className: "Messages",
256
+ methodName: "stream",
257
+ kind: "Sync"
258
+ }
259
+ })),
260
+ ...["resources/beta/messages/messages.js", "resources/beta/messages/messages.mjs"].map((filePath) => ({
261
+ channelName: "tool-runner",
262
+ module: {
263
+ name: "@anthropic-ai/sdk",
264
+ versionRange: ">=0.63.0 <2",
265
+ filePath
266
+ },
267
+ functionQuery: {
268
+ className: "Messages",
269
+ methodName: "toolRunner",
270
+ kind: "Sync"
271
+ }
272
+ })),
273
+ ...["lib/tools/SessionToolRunner.js", "lib/tools/SessionToolRunner.mjs"].map((filePath) => ({
274
+ channelName: "session-tool-runner",
275
+ module: {
276
+ name: "@anthropic-ai/sdk",
277
+ versionRange: ">=0.97.0 <2",
278
+ filePath
279
+ },
280
+ functionQuery: { className: "SessionToolRunner" }
281
+ })),
282
+ ...["lib/BetaMessageStream.js", "lib/BetaMessageStream.mjs"].map((filePath) => ({
283
+ channelName: "thread-stream",
284
+ module: {
285
+ name: "@anthropic-ai/sdk",
286
+ versionRange: ">=1.2.0 <2",
287
+ filePath
288
+ },
289
+ functionQuery: {
290
+ className: "BetaMessageStream",
291
+ methodName: "_start",
292
+ kind: "Sync"
293
+ }
294
+ }))
295
+ ];
296
+ const anthropicAiModuleNames = require_pi_ai.getModuleNames(anthropicAiConfig);
297
+ const anthropicAiChannels = {
298
+ ANTHROPIC_CHAT: "orchestrion:@anthropic-ai/sdk:chat",
299
+ ANTHROPIC_MESSAGES_STREAM: "orchestrion:@anthropic-ai/sdk:messages-stream",
300
+ ANTHROPIC_TOOL_RUNNER: "orchestrion:@anthropic-ai/sdk:tool-runner",
301
+ ANTHROPIC_SESSION_TOOL_RUNNER: "orchestrion:@anthropic-ai/sdk:session-tool-runner",
302
+ ANTHROPIC_THREAD_STREAM: "orchestrion:@anthropic-ai/sdk:thread-stream"
303
+ };
304
+ // src/orchestrion/config/cron.ts
305
+ const cronConfig = [{
306
+ channelName: "cronJobConstructor",
307
+ module: {
308
+ name: "cron",
309
+ versionRange: ">=4.3.0 <5",
310
+ filePath: "dist/job.js"
311
+ },
312
+ functionQuery: { className: "CronJob" }
313
+ }, {
314
+ channelName: "cronJobSetTime",
315
+ module: {
316
+ name: "cron",
317
+ versionRange: ">=4.3.0 <5",
318
+ filePath: "dist/job.js"
319
+ },
320
+ functionQuery: {
321
+ className: "CronJob",
322
+ methodName: "setTime",
323
+ kind: "Sync"
324
+ }
325
+ }];
326
+ const cronModuleNames = require_pi_ai.getModuleNames(cronConfig);
327
+ const cronChannels = {
328
+ CRON_JOB_CONSTRUCTOR: "orchestrion:cron:cronJobConstructor",
329
+ CRON_JOB_SET_TIME: "orchestrion:cron:cronJobSetTime"
330
+ };
331
+ // src/orchestrion/config/dataloader.ts
332
+ const module$6 = {
333
+ name: "dataloader",
334
+ versionRange: ">=2.0.0 <3",
335
+ filePath: "index.js"
336
+ };
337
+ const dataloaderConfig = [
338
+ {
339
+ channelName: "construct",
340
+ module: module$6,
341
+ functionQuery: {
342
+ functionName: "DataLoader",
343
+ kind: "Sync"
344
+ }
345
+ },
346
+ {
347
+ channelName: "load",
348
+ module: module$6,
349
+ functionQuery: {
350
+ expressionName: "load",
351
+ kind: "Async"
352
+ }
353
+ },
354
+ {
355
+ channelName: "loadMany",
356
+ module: module$6,
357
+ functionQuery: {
358
+ expressionName: "loadMany",
359
+ kind: "Async"
360
+ }
361
+ },
362
+ {
363
+ channelName: "prime",
364
+ module: module$6,
365
+ functionQuery: {
366
+ expressionName: "prime",
367
+ kind: "Sync"
368
+ }
369
+ },
370
+ {
371
+ channelName: "clear",
372
+ module: module$6,
373
+ functionQuery: {
374
+ expressionName: "clear",
375
+ kind: "Sync"
376
+ }
377
+ },
378
+ {
379
+ channelName: "clearAll",
380
+ module: module$6,
381
+ functionQuery: {
382
+ expressionName: "clearAll",
383
+ kind: "Sync"
384
+ }
385
+ }
386
+ ];
387
+ const dataloaderChannels = {
388
+ DATALOADER_CONSTRUCT: "orchestrion:dataloader:construct",
389
+ DATALOADER_LOAD: "orchestrion:dataloader:load",
390
+ DATALOADER_LOAD_MANY: "orchestrion:dataloader:loadMany",
391
+ DATALOADER_PRIME: "orchestrion:dataloader:prime",
392
+ DATALOADER_CLEAR: "orchestrion:dataloader:clear",
393
+ DATALOADER_CLEAR_ALL: "orchestrion:dataloader:clearAll"
394
+ };
395
+ // src/orchestrion/config/express.ts
396
+ const expressConfig = [
397
+ {
398
+ channelName: "handle",
399
+ module: {
400
+ name: "express",
401
+ versionRange: ">=4.0.0 <5",
402
+ filePath: "lib/router/layer.js"
403
+ },
404
+ functionQuery: {
405
+ expressionName: "handle_request",
406
+ kind: "Callback"
407
+ }
408
+ },
409
+ {
410
+ channelName: "handle",
411
+ module: {
412
+ name: "router",
413
+ versionRange: ">=2.0.0 <3",
414
+ filePath: "lib/layer.js"
415
+ },
416
+ functionQuery: {
417
+ expressionName: "handleRequest",
418
+ kind: "Callback"
419
+ }
420
+ },
421
+ {
422
+ channelName: "register",
423
+ module: {
424
+ name: "express",
425
+ versionRange: ">=4.0.0 <5",
426
+ filePath: "lib/router/index.js"
427
+ },
428
+ functionQuery: {
429
+ expressionName: "route",
430
+ kind: "Sync"
431
+ }
432
+ },
433
+ {
434
+ channelName: "register",
435
+ module: {
436
+ name: "express",
437
+ versionRange: ">=4.0.0 <5",
438
+ filePath: "lib/router/index.js"
439
+ },
440
+ functionQuery: {
441
+ expressionName: "use",
442
+ kind: "Sync"
443
+ }
444
+ },
445
+ {
446
+ channelName: "register",
447
+ module: {
448
+ name: "router",
449
+ versionRange: ">=2.0.0 <3",
450
+ filePath: "index.js"
451
+ },
452
+ functionQuery: {
453
+ expressionName: "route",
454
+ kind: "Sync"
455
+ }
456
+ },
457
+ {
458
+ channelName: "register",
459
+ module: {
460
+ name: "router",
461
+ versionRange: ">=2.0.0 <3",
462
+ filePath: "index.js"
463
+ },
464
+ functionQuery: {
465
+ expressionName: "use",
466
+ kind: "Sync"
467
+ }
468
+ }
469
+ ];
470
+ const expressModuleNames = require_pi_ai.getModuleNames(expressConfig);
471
+ const expressChannels = {
472
+ EXPRESS_HANDLE: "orchestrion:express:handle",
473
+ ROUTER_HANDLE: "orchestrion:router:handle",
474
+ EXPRESS_REGISTER: "orchestrion:express:register",
475
+ ROUTER_REGISTER: "orchestrion:router:register"
476
+ };
477
+ // src/orchestrion/config/firebase.ts
478
+ const FIRESTORE_VERSION_RANGE = ">=3.0.0 <5";
479
+ const FIRESTORE_FILE = /dist\/lite\/(index|common-[^/]+)\.node\.(cjs\.js|mjs)$/;
480
+ const FIRESTORE_OPERATIONS = [
481
+ {
482
+ functionName: "addDoc",
483
+ channelName: "add-doc"
484
+ },
485
+ {
486
+ functionName: "getDocs",
487
+ channelName: "get-docs"
488
+ },
489
+ {
490
+ functionName: "setDoc",
491
+ channelName: "set-doc"
492
+ },
493
+ {
494
+ functionName: "deleteDoc",
495
+ channelName: "delete-doc"
496
+ }
497
+ ];
498
+ const FUNCTIONS_VERSION_RANGE = ">=6.0.0 <7";
499
+ const FUNCTIONS_TRIGGERS = [
500
+ {
501
+ file: "lib/v2/providers/https.js",
502
+ functionName: "onRequest",
503
+ channelName: "http-request"
504
+ },
505
+ {
506
+ file: "lib/v2/providers/https.js",
507
+ functionName: "onCall",
508
+ channelName: "http-call"
509
+ },
510
+ {
511
+ file: "lib/v2/providers/firestore.js",
512
+ functionName: "onDocumentCreated",
513
+ channelName: "firestore-created"
514
+ },
515
+ {
516
+ file: "lib/v2/providers/firestore.js",
517
+ functionName: "onDocumentCreatedWithAuthContext",
518
+ channelName: "firestore-created"
519
+ },
520
+ {
521
+ file: "lib/v2/providers/firestore.js",
522
+ functionName: "onDocumentUpdated",
523
+ channelName: "firestore-updated"
524
+ },
525
+ {
526
+ file: "lib/v2/providers/firestore.js",
527
+ functionName: "onDocumentUpdatedWithAuthContext",
528
+ channelName: "firestore-updated"
529
+ },
530
+ {
531
+ file: "lib/v2/providers/firestore.js",
532
+ functionName: "onDocumentDeleted",
533
+ channelName: "firestore-deleted"
534
+ },
535
+ {
536
+ file: "lib/v2/providers/firestore.js",
537
+ functionName: "onDocumentDeletedWithAuthContext",
538
+ channelName: "firestore-deleted"
539
+ },
540
+ {
541
+ file: "lib/v2/providers/firestore.js",
542
+ functionName: "onDocumentWritten",
543
+ channelName: "firestore-written"
544
+ },
545
+ {
546
+ file: "lib/v2/providers/firestore.js",
547
+ functionName: "onDocumentWrittenWithAuthContext",
548
+ channelName: "firestore-written"
549
+ },
550
+ {
551
+ file: "lib/v2/providers/scheduler.js",
552
+ functionName: "onSchedule",
553
+ channelName: "scheduler"
554
+ },
555
+ {
556
+ file: "lib/v2/providers/storage.js",
557
+ functionName: "onObjectFinalized",
558
+ channelName: "storage-finalized"
559
+ },
560
+ {
561
+ file: "lib/v2/providers/storage.js",
562
+ functionName: "onObjectArchived",
563
+ channelName: "storage-archived"
564
+ },
565
+ {
566
+ file: "lib/v2/providers/storage.js",
567
+ functionName: "onObjectDeleted",
568
+ channelName: "storage-deleted"
569
+ },
570
+ {
571
+ file: "lib/v2/providers/storage.js",
572
+ functionName: "onObjectMetadataUpdated",
573
+ channelName: "storage-metadata-updated"
574
+ }
575
+ ];
576
+ const firebaseConfig = [...FIRESTORE_OPERATIONS.map(({ functionName, channelName }) => ({
577
+ channelName,
578
+ module: {
579
+ name: "@firebase/firestore",
580
+ versionRange: FIRESTORE_VERSION_RANGE,
581
+ filePath: FIRESTORE_FILE
582
+ },
583
+ functionQuery: {
584
+ functionName,
585
+ kind: "Auto"
586
+ }
587
+ })), ...FUNCTIONS_TRIGGERS.map(({ file, functionName, channelName }) => ({
588
+ channelName,
589
+ module: {
590
+ name: "firebase-functions",
591
+ versionRange: FUNCTIONS_VERSION_RANGE,
592
+ filePath: file
593
+ },
594
+ functionQuery: {
595
+ functionName,
596
+ kind: "Sync"
597
+ }
598
+ }))];
599
+ const firebaseModuleNames = require_pi_ai.getModuleNames(firebaseConfig);
600
+ const firebaseChannels = {
601
+ FIREBASE_FIRESTORE_ADD_DOC: "orchestrion:@firebase/firestore:add-doc",
602
+ FIREBASE_FIRESTORE_GET_DOCS: "orchestrion:@firebase/firestore:get-docs",
603
+ FIREBASE_FIRESTORE_SET_DOC: "orchestrion:@firebase/firestore:set-doc",
604
+ FIREBASE_FIRESTORE_DELETE_DOC: "orchestrion:@firebase/firestore:delete-doc",
605
+ FIREBASE_FUNCTIONS_HTTP_REQUEST: "orchestrion:firebase-functions:http-request",
606
+ FIREBASE_FUNCTIONS_HTTP_CALL: "orchestrion:firebase-functions:http-call",
607
+ FIREBASE_FUNCTIONS_FIRESTORE_CREATED: "orchestrion:firebase-functions:firestore-created",
608
+ FIREBASE_FUNCTIONS_FIRESTORE_UPDATED: "orchestrion:firebase-functions:firestore-updated",
609
+ FIREBASE_FUNCTIONS_FIRESTORE_DELETED: "orchestrion:firebase-functions:firestore-deleted",
610
+ FIREBASE_FUNCTIONS_FIRESTORE_WRITTEN: "orchestrion:firebase-functions:firestore-written",
611
+ FIREBASE_FUNCTIONS_SCHEDULER: "orchestrion:firebase-functions:scheduler",
612
+ FIREBASE_FUNCTIONS_STORAGE_FINALIZED: "orchestrion:firebase-functions:storage-finalized",
613
+ FIREBASE_FUNCTIONS_STORAGE_ARCHIVED: "orchestrion:firebase-functions:storage-archived",
614
+ FIREBASE_FUNCTIONS_STORAGE_DELETED: "orchestrion:firebase-functions:storage-deleted",
615
+ FIREBASE_FUNCTIONS_STORAGE_METADATA_UPDATED: "orchestrion:firebase-functions:storage-metadata-updated"
616
+ };
617
+ // src/orchestrion/config/generic-pool.ts
618
+ const genericPoolConfig = [{
619
+ channelName: "acquire",
620
+ module: {
621
+ name: "generic-pool",
622
+ versionRange: ">=3.0.0 <4",
623
+ filePath: "lib/Pool.js"
624
+ },
625
+ functionQuery: {
626
+ className: "Pool",
627
+ methodName: "acquire",
628
+ kind: "Auto"
629
+ }
630
+ }, {
631
+ channelName: "acquire",
632
+ module: {
633
+ name: "generic-pool",
634
+ versionRange: ">=2.4.0 <3",
635
+ filePath: "lib/generic-pool.js"
636
+ },
637
+ functionQuery: {
638
+ expressionName: "acquire",
639
+ kind: "Callback"
640
+ }
641
+ }];
642
+ const genericPoolModuleNames = require_pi_ai.getModuleNames(genericPoolConfig);
643
+ const genericPoolChannels = { GENERIC_POOL_ACQUIRE: "orchestrion:generic-pool:acquire" };
644
+ // src/orchestrion/config/google-genai.ts
645
+ const NODE_DIST_FILES = [
646
+ "dist/node/index.js",
647
+ "dist/node/index.mjs",
648
+ "dist/node/index.cjs"
649
+ ];
650
+ const googleGenAiConfig = [
651
+ ...NODE_DIST_FILES.flatMap((filePath) => ["generateContent", "generateContentStream"].map((expressionName) => ({
652
+ channelName: "generate-content",
653
+ module: {
654
+ name: "@google/genai",
655
+ versionRange: ">=0.10.0 <3",
656
+ filePath
657
+ },
658
+ functionQuery: {
659
+ expressionName,
660
+ kind: "Auto"
661
+ }
662
+ }))),
663
+ ...NODE_DIST_FILES.map((filePath) => ({
664
+ channelName: "embed-content",
665
+ module: {
666
+ name: "@google/genai",
667
+ versionRange: ">=0.10.0 <3",
668
+ filePath
669
+ },
670
+ functionQuery: {
671
+ className: "Models",
672
+ methodName: "embedContent",
673
+ kind: "Auto"
674
+ }
675
+ })),
676
+ ...NODE_DIST_FILES.flatMap((filePath) => ["sendMessage", "sendMessageStream"].map((methodName) => ({
677
+ channelName: "chat",
678
+ module: {
679
+ name: "@google/genai",
680
+ versionRange: ">=0.10.0 <3",
681
+ filePath
682
+ },
683
+ functionQuery: {
684
+ className: "Chat",
685
+ methodName,
686
+ kind: "Auto"
687
+ }
688
+ })))
689
+ ];
690
+ const googleGenAiModuleNames = require_pi_ai.getModuleNames(googleGenAiConfig);
691
+ const googleGenAiChannels = {
692
+ GOOGLE_GENAI_GENERATE_CONTENT: "orchestrion:@google/genai:generate-content",
693
+ GOOGLE_GENAI_EMBED_CONTENT: "orchestrion:@google/genai:embed-content",
694
+ GOOGLE_GENAI_CHAT: "orchestrion:@google/genai:chat"
695
+ };
696
+ // src/orchestrion/config/graphql.ts
697
+ const graphqlConfig = [
698
+ ...["language/parser.js", "language/parser.mjs"].map((filePath) => ({
699
+ channelName: "parse",
700
+ module: {
701
+ name: "graphql",
702
+ versionRange: ">=14.0.0 <17",
703
+ filePath
704
+ },
705
+ functionQuery: {
706
+ functionName: "parse",
707
+ kind: "Sync"
708
+ }
709
+ })),
710
+ ...["validation/validate.js", "validation/validate.mjs"].map((filePath) => ({
711
+ channelName: "validate",
712
+ module: {
713
+ name: "graphql",
714
+ versionRange: ">=14.0.0 <17",
715
+ filePath
716
+ },
717
+ functionQuery: {
718
+ functionName: "validate",
719
+ kind: "Sync"
720
+ }
721
+ })),
722
+ ...["execution/execute.js", "execution/execute.mjs"].map((filePath) => ({
723
+ channelName: "execute",
724
+ module: {
725
+ name: "graphql",
726
+ versionRange: ">=14.0.0 <17",
727
+ filePath
728
+ },
729
+ functionQuery: {
730
+ functionName: "execute",
731
+ kind: "Auto"
732
+ }
733
+ }))
734
+ ];
735
+ const graphqlChannels = {
736
+ GRAPHQL_PARSE: "orchestrion:graphql:parse",
737
+ GRAPHQL_VALIDATE: "orchestrion:graphql:validate",
738
+ GRAPHQL_EXECUTE: "orchestrion:graphql:execute"
739
+ };
740
+ const graphqlModuleNames = require_pi_ai.getModuleNames(graphqlConfig);
741
+ // src/orchestrion/config/openai-compatible.ts
742
+ /**
743
+ * Many providers (Groq, Together, ...) ship a Stainless-generated SDK that mirrors the classic `openai`
744
+ * file layout: `resources/chat/completions.{js,mjs}` (class `Completions`) and
745
+ * `resources/embeddings.{js,mjs}` (class `Embeddings`), each with a `create(body, options)` that returns
746
+ * a thenable `APIPromise`. Sync tracing preserves its lazy body parsing; Auto would trigger it via `.then()`.
747
+ * A streaming call resolves to the same OpenAI-style async-iterable `Stream` the openai integration consumes. These
748
+ * SDKs ship dual CJS/ESM and the matcher compares `filePath` exactly, hence one entry per built file.
749
+ * `classNames` covers SDKs that moved `create` onto a base class while keeping this layout.
750
+ *
751
+ * Because the wire format is OpenAI-compatible, the span building, streaming and response parsing are all
752
+ * reused from `ai/openai`; only the module name, channels and `gen_ai.provider.name` differ per provider.
753
+ */
754
+ function openAiCompatibleConfig(module, classNames = {
755
+ chat: "Completions",
756
+ embeddings: "Embeddings"
757
+ }) {
758
+ return [...["resources/chat/completions.js", "resources/chat/completions.mjs"].map((filePath) => ({
759
+ channelName: "chat",
760
+ module: {
761
+ ...module,
762
+ filePath
763
+ },
764
+ functionQuery: {
765
+ className: classNames.chat,
766
+ methodName: "create",
767
+ kind: "Sync"
768
+ }
769
+ })), ...["resources/embeddings.js", "resources/embeddings.mjs"].map((filePath) => ({
770
+ channelName: "embeddings",
771
+ module: {
772
+ ...module,
773
+ filePath
774
+ },
775
+ functionQuery: {
776
+ className: classNames.embeddings,
777
+ methodName: "create",
778
+ kind: "Sync"
779
+ }
780
+ }))];
781
+ }
782
+ // src/orchestrion/config/groq.ts
783
+ const groqConfig = openAiCompatibleConfig({
784
+ name: "groq-sdk",
785
+ versionRange: ">=0.3.0 <2"
786
+ });
787
+ const groqModuleNames = require_pi_ai.getModuleNames(groqConfig);
788
+ const groqChannels = {
789
+ GROQ_CHAT: "orchestrion:groq-sdk:chat",
790
+ GROQ_EMBEDDINGS: "orchestrion:groq-sdk:embeddings"
791
+ };
792
+ // src/orchestrion/config/hapi.ts
793
+ const hapiConfig = [
794
+ {
795
+ channelName: "route",
796
+ module: {
797
+ name: "@hapi/hapi",
798
+ versionRange: ">=17.0.0 <22.0.0",
799
+ filePath: "lib/server.js"
800
+ },
801
+ functionQuery: {
802
+ methodName: "route",
803
+ kind: "Sync"
804
+ }
805
+ },
806
+ {
807
+ channelName: "ext",
808
+ module: {
809
+ name: "@hapi/hapi",
810
+ versionRange: ">=17.0.0 <22.0.0",
811
+ filePath: "lib/server.js"
812
+ },
813
+ functionQuery: {
814
+ methodName: "ext",
815
+ kind: "Sync"
816
+ }
817
+ },
818
+ {
819
+ channelName: "start",
820
+ module: {
821
+ name: "@hapi/hapi",
822
+ versionRange: ">=17.0.0 <22.0.0",
823
+ filePath: "lib/server.js"
824
+ },
825
+ functionQuery: {
826
+ methodName: "start",
827
+ kind: "Sync"
828
+ }
829
+ },
830
+ {
831
+ channelName: "initialize",
832
+ module: {
833
+ name: "@hapi/hapi",
834
+ versionRange: ">=17.0.0 <22.0.0",
835
+ filePath: "lib/server.js"
836
+ },
837
+ functionQuery: {
838
+ methodName: "initialize",
839
+ kind: "Sync"
840
+ }
841
+ }
842
+ ];
843
+ const hapiModuleNames = require_pi_ai.getModuleNames(hapiConfig);
844
+ const hapiChannels = {
845
+ HAPI_ROUTE: "orchestrion:@hapi/hapi:route",
846
+ HAPI_EXT: "orchestrion:@hapi/hapi:ext",
847
+ HAPI_START: "orchestrion:@hapi/hapi:start",
848
+ HAPI_INITIALIZE: "orchestrion:@hapi/hapi:initialize"
849
+ };
850
+ const honoConfig = [{
851
+ channelName: "context",
852
+ module: {
853
+ name: "hono",
854
+ versionRange: ">=4.0.0 <5",
855
+ filePath: /^dist\/(?:cjs\/)?context\.js$/
856
+ },
857
+ functionQuery: { className: "Context" }
858
+ }, {
859
+ channelName: "request",
860
+ module: {
861
+ name: "hono",
862
+ versionRange: ">=4.0.0 <5",
863
+ filePath: /^dist\/(?:cjs\/)?hono-base\.js$/
864
+ },
865
+ astQuery: "PropertyDefinition[key.name='request'] > ArrowFunctionExpression",
866
+ functionQuery: { kind: "Auto" }
867
+ }];
868
+ const honoModuleNames = require_pi_ai.getModuleNames(honoConfig);
869
+ const honoChannels = {
870
+ HONO_CONTEXT: "orchestrion:hono:context",
871
+ HONO_REQUEST: "orchestrion:hono:request"
872
+ };
873
+ // src/orchestrion/config/ioredis.ts
874
+ const ioredisConfig = [
875
+ require_registration_only.registrationOnly({
876
+ name: "ioredis",
877
+ versionRange: ">=5.11.0",
878
+ filePath: "built/Redis.js"
879
+ }),
880
+ ...[
881
+ "lib/redis.js",
882
+ "built/redis.js",
883
+ "built/redis/index.js"
884
+ ].flatMap((filePath) => [{
885
+ channelName: "command",
886
+ module: {
887
+ name: "ioredis",
888
+ versionRange: ">=2.0.0 <5.0.0",
889
+ filePath
890
+ },
891
+ functionQuery: {
892
+ expressionName: "sendCommand",
893
+ kind: "Async"
894
+ }
895
+ }, {
896
+ channelName: "connect",
897
+ module: {
898
+ name: "ioredis",
899
+ versionRange: ">=2.0.0 <5.0.0",
900
+ filePath
901
+ },
902
+ functionQuery: {
903
+ expressionName: "connect",
904
+ kind: "Async"
905
+ }
906
+ }]),
907
+ {
908
+ channelName: "command",
909
+ module: {
910
+ name: "ioredis",
911
+ versionRange: ">=5.0.0 <5.11.0",
912
+ filePath: "built/Redis.js"
913
+ },
914
+ functionQuery: {
915
+ className: "Redis",
916
+ methodName: "sendCommand",
917
+ kind: "Async"
918
+ }
919
+ },
920
+ {
921
+ channelName: "connect",
922
+ module: {
923
+ name: "ioredis",
924
+ versionRange: ">=5.0.0 <5.11.0",
925
+ filePath: "built/Redis.js"
926
+ },
927
+ functionQuery: {
928
+ className: "Redis",
929
+ methodName: "connect",
930
+ kind: "Async"
931
+ }
932
+ }
933
+ ];
934
+ const ioredisModuleNames = require_pi_ai.getModuleNames(ioredisConfig);
935
+ const ioredisChannels = {
936
+ IOREDIS_COMMAND: "orchestrion:ioredis:command",
937
+ IOREDIS_CONNECT: "orchestrion:ioredis:connect"
938
+ };
939
+ // src/orchestrion/config/kafkajs.ts
940
+ const kafkajsConfig = [{
941
+ channelName: "send_batch",
942
+ module: {
943
+ name: "kafkajs",
944
+ versionRange: ">=2.0.0 <3",
945
+ filePath: "src/producer/messageProducer.js"
946
+ },
947
+ functionQuery: {
948
+ expressionName: "sendBatch",
949
+ kind: "Async"
950
+ }
951
+ }, {
952
+ channelName: "consumer_run",
953
+ module: {
954
+ name: "kafkajs",
955
+ versionRange: ">=2.0.0 <3",
956
+ filePath: "src/consumer/index.js"
957
+ },
958
+ functionQuery: {
959
+ expressionName: "run",
960
+ kind: "Async"
961
+ }
962
+ }];
963
+ const kafkajsModuleNames = require_pi_ai.getModuleNames(kafkajsConfig);
964
+ const kafkajsChannels = {
965
+ KAFKAJS_SEND_BATCH: "orchestrion:kafkajs:send_batch",
966
+ KAFKAJS_CONSUMER_RUN: "orchestrion:kafkajs:consumer_run"
967
+ };
968
+ // src/orchestrion/config/knex.ts
969
+ const MODULE_NAME$2 = "knex";
970
+ const RUNNER_FILES = [
971
+ {
972
+ filePath: "lib/execution/runner.js",
973
+ versionRange: ">=0.22.0 <4"
974
+ },
975
+ {
976
+ filePath: "lib/runner.js",
977
+ versionRange: ">=0.10.0 <0.22.0"
978
+ },
979
+ {
980
+ filePath: "src/runner.js",
981
+ versionRange: ">=0.18.0 <0.19.0"
982
+ }
983
+ ];
984
+ const CLIENT_FILES = [{
985
+ filePath: "lib/client.js",
986
+ versionRange: ">=0.10.0 <4"
987
+ }, {
988
+ filePath: "src/client.js",
989
+ versionRange: ">=0.18.0 <0.19.0"
990
+ }];
991
+ const CLIENT_METHODS = [
992
+ "queryBuilder",
993
+ "schemaBuilder",
994
+ "raw"
995
+ ];
996
+ function runnerQuery(filePath, versionRange) {
997
+ return {
998
+ channelName: "query",
999
+ module: {
1000
+ name: MODULE_NAME$2,
1001
+ versionRange,
1002
+ filePath
1003
+ },
1004
+ functionQuery: {
1005
+ className: "Runner",
1006
+ methodName: "query",
1007
+ kind: "Async"
1008
+ }
1009
+ };
1010
+ }
1011
+ function clientMethod(methodName, filePath, versionRange) {
1012
+ return {
1013
+ channelName: methodName,
1014
+ module: {
1015
+ name: MODULE_NAME$2,
1016
+ versionRange,
1017
+ filePath
1018
+ },
1019
+ functionQuery: {
1020
+ className: "Client",
1021
+ methodName,
1022
+ kind: "Sync"
1023
+ }
1024
+ };
1025
+ }
1026
+ const knexConfig = [...RUNNER_FILES.map(({ filePath, versionRange }) => runnerQuery(filePath, versionRange)), ...CLIENT_FILES.flatMap(({ filePath, versionRange }) => CLIENT_METHODS.map((methodName) => clientMethod(methodName, filePath, versionRange)))];
1027
+ const knexChannels = {
1028
+ KNEX_QUERY: "orchestrion:knex:query",
1029
+ KNEX_QUERY_BUILDER: "orchestrion:knex:queryBuilder",
1030
+ KNEX_SCHEMA_BUILDER: "orchestrion:knex:schemaBuilder",
1031
+ KNEX_RAW: "orchestrion:knex:raw"
1032
+ };
1033
+ // src/orchestrion/config/koa.ts
1034
+ const koaConfig = [{
1035
+ channelName: "use",
1036
+ module: {
1037
+ name: "koa",
1038
+ versionRange: ">=2.0.0 <4",
1039
+ filePath: "lib/application.js"
1040
+ },
1041
+ functionQuery: {
1042
+ className: "Application",
1043
+ methodName: "use",
1044
+ kind: "Sync"
1045
+ }
1046
+ }, {
1047
+ channelName: "callback",
1048
+ module: {
1049
+ name: "koa",
1050
+ versionRange: ">=2.0.0 <4",
1051
+ filePath: "lib/application.js"
1052
+ },
1053
+ functionQuery: {
1054
+ className: "Application",
1055
+ methodName: "callback",
1056
+ kind: "Sync"
1057
+ }
1058
+ }];
1059
+ const koaModuleNames = require_pi_ai.getModuleNames(koaConfig);
1060
+ const koaChannels = {
1061
+ KOA_USE: "orchestrion:koa:use",
1062
+ KOA_CALLBACK: "orchestrion:koa:callback"
1063
+ };
1064
+ // src/orchestrion/config/langchain.ts
1065
+ const chatModelConfig = ["dist/language_models/chat_models.cjs", "dist/language_models/chat_models.js"].flatMap((filePath) => {
1066
+ const module = {
1067
+ name: "@langchain/core",
1068
+ versionRange: ">=0.1.0 <2.0.0",
1069
+ filePath
1070
+ };
1071
+ return [{
1072
+ channelName: "chatModelInvoke",
1073
+ module,
1074
+ functionQuery: {
1075
+ className: "BaseChatModel",
1076
+ methodName: "invoke",
1077
+ kind: "Async"
1078
+ }
1079
+ }, {
1080
+ channelName: "chatModelStream",
1081
+ module,
1082
+ functionQuery: {
1083
+ className: "BaseChatModel",
1084
+ methodName: "_streamIterator",
1085
+ kind: "Async"
1086
+ }
1087
+ }];
1088
+ });
1089
+ const EMBED_QUERY = "embedQuery";
1090
+ const EMBED_DOCUMENTS = "embedDocuments";
1091
+ const EMBEDDINGS_PROVIDERS = [
1092
+ {
1093
+ name: "@langchain/openai",
1094
+ versionRange: ">=0.1.0 <2.0.0",
1095
+ methods: [EMBED_QUERY, EMBED_DOCUMENTS]
1096
+ },
1097
+ {
1098
+ name: "@langchain/google-genai",
1099
+ versionRange: ">=0.1.0 <3.0.0",
1100
+ methods: [EMBED_QUERY, EMBED_DOCUMENTS]
1101
+ },
1102
+ {
1103
+ name: "@langchain/mistralai",
1104
+ versionRange: ">=0.1.0 <2.0.0",
1105
+ methods: [EMBED_QUERY, EMBED_DOCUMENTS]
1106
+ },
1107
+ {
1108
+ name: "@langchain/google-common",
1109
+ versionRange: ">=0.1.0 <3.0.0",
1110
+ methods: [EMBED_DOCUMENTS]
1111
+ }
1112
+ ];
1113
+ const embeddingsConfig = EMBEDDINGS_PROVIDERS.flatMap(({ name, versionRange, methods }) => ["dist/embeddings.cjs", "dist/embeddings.js"].flatMap((filePath) => methods.map((method) => ({
1114
+ channelName: method,
1115
+ module: {
1116
+ name,
1117
+ versionRange,
1118
+ filePath
1119
+ },
1120
+ functionQuery: {
1121
+ methodName: method,
1122
+ kind: "Async"
1123
+ }
1124
+ }))));
1125
+ const typesafeClassifierConfig = ["dist/classifier.cjs", "dist/classifier.js"].map((filePath) => ({
1126
+ channelName: "typesafeClassifierInvoke",
1127
+ module: {
1128
+ name: "@langchain/typesafe",
1129
+ versionRange: ">=0.0.1 <1.0.0",
1130
+ filePath
1131
+ },
1132
+ functionQuery: {
1133
+ className: "TypeSafeClassifier",
1134
+ methodName: "invoke",
1135
+ kind: "Async"
1136
+ }
1137
+ }));
1138
+ const langchainConfig = [
1139
+ ...chatModelConfig,
1140
+ ...embeddingsConfig,
1141
+ ...typesafeClassifierConfig
1142
+ ];
1143
+ const langchainEmbeddingsChannels = EMBEDDINGS_PROVIDERS.flatMap(({ name, methods }) => methods.map((method) => `orchestrion:${name}:${method}`));
1144
+ const langchainModuleNames = require_pi_ai.getModuleNames(langchainConfig);
1145
+ const langchainChannels = {
1146
+ LANGCHAIN_CHAT_MODEL_INVOKE: "orchestrion:@langchain/core:chatModelInvoke",
1147
+ LANGCHAIN_CHAT_MODEL_STREAM: "orchestrion:@langchain/core:chatModelStream",
1148
+ LANGCHAIN_TYPESAFE_CLASSIFIER_INVOKE: "orchestrion:@langchain/typesafe:typesafeClassifierInvoke"
1149
+ };
1150
+ // src/orchestrion/config/langgraph.ts
1151
+ const module$5 = (filePath) => ({
1152
+ name: "@langchain/langgraph",
1153
+ versionRange: ">=0.0.0 <2.0.0",
1154
+ filePath
1155
+ });
1156
+ const compileConfig = ["dist/graph/state.cjs", "dist/graph/state.js"].map((filePath) => ({
1157
+ channelName: "stateGraphCompile",
1158
+ module: module$5(filePath),
1159
+ functionQuery: {
1160
+ className: "StateGraph",
1161
+ methodName: "compile",
1162
+ kind: "Sync"
1163
+ }
1164
+ }));
1165
+ const createReactAgentConfig = ["dist/prebuilt/react_agent_executor.cjs", "dist/prebuilt/react_agent_executor.js"].map((filePath) => ({
1166
+ channelName: "createReactAgent",
1167
+ module: module$5(filePath),
1168
+ functionQuery: {
1169
+ functionName: "createReactAgent",
1170
+ kind: "Sync"
1171
+ }
1172
+ }));
1173
+ const langgraphConfig = [...compileConfig, ...createReactAgentConfig];
1174
+ const langgraphModuleNames = require_pi_ai.getModuleNames(langgraphConfig);
1175
+ const langgraphChannels = {
1176
+ LANGGRAPH_STATE_GRAPH_COMPILE: "orchestrion:@langchain/langgraph:stateGraphCompile",
1177
+ LANGGRAPH_CREATE_REACT_AGENT: "orchestrion:@langchain/langgraph:createReactAgent"
1178
+ };
1179
+ // src/orchestrion/config/lru-memoizer.ts
1180
+ const lruMemoizerConfig = [{
1181
+ channelName: "load",
1182
+ module: {
1183
+ name: "lru-memoizer",
1184
+ versionRange: ">=2.1.0 <4",
1185
+ filePath: "lib/async.js"
1186
+ },
1187
+ functionQuery: {
1188
+ functionName: "memoizedFunction",
1189
+ kind: "Callback"
1190
+ }
1191
+ }];
1192
+ const lruMemoizerModuleNames = require_pi_ai.getModuleNames(lruMemoizerConfig);
1193
+ const lruMemoizerChannels = { LRU_MEMOIZER_LOAD: "orchestrion:lru-memoizer:load" };
1194
+ // src/orchestrion/config/flue.ts
1195
+ /**
1196
+ * Flue publishes no diagnostics channels and needs none: it is instrumented by registering with
1197
+ * `instrument()`, not by patching call sites. Transforming the entry is only how the module's
1198
+ * integration gets registered at evaluation time, which is what installs it on a bundler-only SDK
1199
+ * like `@sentry/cloudflare`. With `selfProvidedModules`, the entry also publishes its namespace.
1200
+ */
1201
+ const flueConfig = [require_registration_only.registrationOnly({
1202
+ name: "@flue/runtime",
1203
+ versionRange: ">=2.0.0 <3.0.0",
1204
+ filePath: "dist/index.mjs"
1205
+ })];
1206
+ // src/orchestrion/config/mastra.ts
1207
+ const mastraConstructorConfig = [{
1208
+ channelName: "mastraConstructor",
1209
+ module: {
1210
+ name: "@mastra/core",
1211
+ versionRange: ">=1.63.2 <2.0.0",
1212
+ filePath: /^dist\/(?:[\w.-]+\/)?mastra[\w.-]*\.(?:cjs|mjs|js)$/
1213
+ },
1214
+ functionQuery: { className: "Mastra" }
1215
+ }];
1216
+ const mastraContextConfig = ["executeWithContext", "executeWithContextSync"].map((functionName) => ({
1217
+ channelName: "mastraExecuteWithContext",
1218
+ module: {
1219
+ name: "@mastra/core",
1220
+ versionRange: ">=1.63.2 <2.0.0",
1221
+ filePath: /^dist\/observability\/context-storage\.(?:cjs|mjs|js)$/
1222
+ },
1223
+ functionQuery: {
1224
+ functionName,
1225
+ kind: "Auto"
1226
+ }
1227
+ }));
1228
+ const mastraClassifierConfig = [{
1229
+ channelName: "mastraClassifierEvaluate",
1230
+ module: {
1231
+ name: "@mastra/core",
1232
+ versionRange: ">=1.63.2 <2.0.0",
1233
+ filePath: /^dist\/classifier\/index\.(?:cjs|mjs|js)$/
1234
+ },
1235
+ functionQuery: {
1236
+ className: "Classifier",
1237
+ methodName: "evaluate",
1238
+ kind: "Async"
1239
+ }
1240
+ }];
1241
+ const mastraConfig = [
1242
+ ...mastraConstructorConfig,
1243
+ ...mastraContextConfig,
1244
+ ...mastraClassifierConfig
1245
+ ];
1246
+ const mastraModuleNames = require_pi_ai.getModuleNames(mastraConfig);
1247
+ const mastraChannels = {
1248
+ MASTRA_CONSTRUCTOR: "orchestrion:@mastra/core:mastraConstructor",
1249
+ MASTRA_EXECUTE_WITH_CONTEXT: "orchestrion:@mastra/core:mastraExecuteWithContext",
1250
+ MASTRA_CLASSIFIER_EVALUATE: "orchestrion:@mastra/core:mastraClassifierEvaluate"
1251
+ };
1252
+ // src/orchestrion/config/pi-durable.ts
1253
+ const module$4 = {
1254
+ name: "@earendil-works/pi-durable",
1255
+ versionRange: ">=1.0.0 <2.0.0"
1256
+ };
1257
+ const piDurableConfig = [{
1258
+ channelName: "harnessOpen",
1259
+ module: {
1260
+ ...module$4,
1261
+ filePath: "dist/harness/harness.js"
1262
+ },
1263
+ functionQuery: {
1264
+ methodName: "open",
1265
+ kind: "Async"
1266
+ }
1267
+ }, ...[
1268
+ ["bash", "createBashTool"],
1269
+ ["read", "createReadTool"],
1270
+ ["edit", "createEditTool"],
1271
+ ["write", "createWriteTool"]
1272
+ ].map(([file, functionName]) => ({
1273
+ channelName: "codingTool",
1274
+ module: {
1275
+ ...module$4,
1276
+ filePath: `dist/tools/${file}.js`
1277
+ },
1278
+ functionQuery: {
1279
+ functionName,
1280
+ kind: "Sync"
1281
+ }
1282
+ }))];
1283
+ const piDurableModuleNames = require_pi_ai.getModuleNames(piDurableConfig);
1284
+ const piDurableChannels = {
1285
+ PI_DURABLE_HARNESS_OPEN: "orchestrion:@earendil-works/pi-durable:harnessOpen",
1286
+ PI_DURABLE_CODING_TOOL: "orchestrion:@earendil-works/pi-durable:codingTool"
1287
+ };
1288
+ // src/orchestrion/config/mcp-server.ts
1289
+ const mcpServerV2Config = [{
1290
+ channelName: "mcpServerConstructor",
1291
+ module: {
1292
+ name: "@modelcontextprotocol/server",
1293
+ versionRange: ">=2.0.0 <3",
1294
+ filePath: /^dist\/mcp-[\w-]+\.(?:cjs|mjs)$/
1295
+ },
1296
+ functionQuery: { className: "McpServer" }
1297
+ }];
1298
+ const mcpServerV1Config = [{
1299
+ channelName: "mcpServerConstructor",
1300
+ module: {
1301
+ name: "@modelcontextprotocol/sdk",
1302
+ versionRange: ">=1.9.0 <2",
1303
+ filePath: /(?:^|\/)server\/mcp\.js$/
1304
+ },
1305
+ functionQuery: { className: "McpServer" }
1306
+ }];
1307
+ const mcpServerConfig = [...mcpServerV2Config, ...mcpServerV1Config];
1308
+ const mcpServerModuleNames = require_pi_ai.getModuleNames(mcpServerConfig);
1309
+ const mcpServerChannels = {
1310
+ MCP_SERVER_V2_CONSTRUCTOR: "orchestrion:@modelcontextprotocol/server:mcpServerConstructor",
1311
+ MCP_SERVER_V1_CONSTRUCTOR: "orchestrion:@modelcontextprotocol/sdk:mcpServerConstructor"
1312
+ };
1313
+ // src/orchestrion/config/mistral.ts
1314
+ const MODULE = {
1315
+ name: "@mistralai/mistralai",
1316
+ versionRange: ">=2.0.0 <4"
1317
+ };
1318
+ const CHAT_FILE = {
1319
+ ...MODULE,
1320
+ filePath: "esm/sdk/chat.js"
1321
+ };
1322
+ const AGENTS_FILE = {
1323
+ ...MODULE,
1324
+ filePath: "esm/sdk/agents.js"
1325
+ };
1326
+ const mistralConfig = [
1327
+ {
1328
+ channelName: "chat",
1329
+ module: CHAT_FILE,
1330
+ functionQuery: {
1331
+ className: "Chat",
1332
+ methodName: "complete",
1333
+ kind: "Auto"
1334
+ }
1335
+ },
1336
+ {
1337
+ channelName: "chat",
1338
+ module: CHAT_FILE,
1339
+ functionQuery: {
1340
+ className: "Chat",
1341
+ methodName: "parse",
1342
+ kind: "Auto"
1343
+ }
1344
+ },
1345
+ {
1346
+ channelName: "chat-stream",
1347
+ module: CHAT_FILE,
1348
+ functionQuery: {
1349
+ className: "Chat",
1350
+ methodName: "stream",
1351
+ kind: "Auto"
1352
+ }
1353
+ },
1354
+ {
1355
+ channelName: "chat-stream",
1356
+ module: CHAT_FILE,
1357
+ functionQuery: {
1358
+ className: "Chat",
1359
+ methodName: "parseStream",
1360
+ kind: "Auto"
1361
+ }
1362
+ },
1363
+ {
1364
+ channelName: "embeddings",
1365
+ module: {
1366
+ ...MODULE,
1367
+ filePath: "esm/sdk/embeddings.js"
1368
+ },
1369
+ functionQuery: {
1370
+ className: "Embeddings",
1371
+ methodName: "create",
1372
+ kind: "Auto"
1373
+ }
1374
+ },
1375
+ {
1376
+ channelName: "agents",
1377
+ module: AGENTS_FILE,
1378
+ functionQuery: {
1379
+ className: "Agents",
1380
+ methodName: "complete",
1381
+ kind: "Auto"
1382
+ }
1383
+ },
1384
+ {
1385
+ channelName: "agents-stream",
1386
+ module: AGENTS_FILE,
1387
+ functionQuery: {
1388
+ className: "Agents",
1389
+ methodName: "stream",
1390
+ kind: "Auto"
1391
+ }
1392
+ }
1393
+ ];
1394
+ const mistralModuleNames = require_pi_ai.getModuleNames(mistralConfig);
1395
+ const mistralChannels = {
1396
+ MISTRAL_CHAT: "orchestrion:@mistralai/mistralai:chat",
1397
+ MISTRAL_CHAT_STREAM: "orchestrion:@mistralai/mistralai:chat-stream",
1398
+ MISTRAL_EMBEDDINGS: "orchestrion:@mistralai/mistralai:embeddings",
1399
+ MISTRAL_AGENTS: "orchestrion:@mistralai/mistralai:agents",
1400
+ MISTRAL_AGENTS_STREAM: "orchestrion:@mistralai/mistralai:agents-stream"
1401
+ };
1402
+ // src/orchestrion/config/mongodb.ts
1403
+ const module$3 = { name: "mongodb" };
1404
+ const mongodbConfig = [
1405
+ {
1406
+ channelName: "command",
1407
+ module: {
1408
+ ...module$3,
1409
+ versionRange: ">=6.4.0 <8",
1410
+ filePath: "lib/cmap/connection.js"
1411
+ },
1412
+ functionQuery: {
1413
+ methodName: "command",
1414
+ kind: "Async"
1415
+ }
1416
+ },
1417
+ {
1418
+ channelName: "command",
1419
+ module: {
1420
+ ...module$3,
1421
+ versionRange: ">=4.0.0 <6.4",
1422
+ filePath: "lib/cmap/connection.js"
1423
+ },
1424
+ functionQuery: {
1425
+ methodName: "command",
1426
+ kind: "Callback"
1427
+ }
1428
+ },
1429
+ {
1430
+ channelName: "checkout",
1431
+ module: {
1432
+ ...module$3,
1433
+ versionRange: ">=4.0.0 <6.4",
1434
+ filePath: "lib/cmap/connection_pool.js"
1435
+ },
1436
+ functionQuery: {
1437
+ methodName: "checkOut",
1438
+ kind: "Callback"
1439
+ }
1440
+ },
1441
+ ...[
1442
+ "insert",
1443
+ "update",
1444
+ "remove"
1445
+ ].map((op) => ({
1446
+ channelName: `v3_${op}`,
1447
+ module: {
1448
+ ...module$3,
1449
+ versionRange: ">=3.3.0 <4",
1450
+ filePath: "lib/core/wireprotocol/index.js"
1451
+ },
1452
+ functionQuery: {
1453
+ expressionName: op,
1454
+ kind: "Callback"
1455
+ }
1456
+ })),
1457
+ {
1458
+ channelName: "v3_command",
1459
+ module: {
1460
+ ...module$3,
1461
+ versionRange: ">=3.3.0 <4",
1462
+ filePath: "lib/core/wireprotocol/command.js"
1463
+ },
1464
+ functionQuery: {
1465
+ functionName: "command",
1466
+ kind: "Callback"
1467
+ }
1468
+ },
1469
+ {
1470
+ channelName: "v3_query",
1471
+ module: {
1472
+ ...module$3,
1473
+ versionRange: ">=3.3.0 <4",
1474
+ filePath: "lib/core/wireprotocol/query.js"
1475
+ },
1476
+ functionQuery: {
1477
+ functionName: "query",
1478
+ kind: "Callback"
1479
+ }
1480
+ },
1481
+ {
1482
+ channelName: "v3_get_more",
1483
+ module: {
1484
+ ...module$3,
1485
+ versionRange: ">=3.3.0 <4",
1486
+ filePath: "lib/core/wireprotocol/get_more.js"
1487
+ },
1488
+ functionQuery: {
1489
+ functionName: "getMore",
1490
+ kind: "Callback"
1491
+ }
1492
+ }
1493
+ ];
1494
+ const mongodbModuleNames = require_pi_ai.getModuleNames(mongodbConfig);
1495
+ const mongodbChannels = {
1496
+ MONGODB_COMMAND: "orchestrion:mongodb:command",
1497
+ MONGODB_CHECKOUT: "orchestrion:mongodb:checkout",
1498
+ MONGODB_V3_INSERT: "orchestrion:mongodb:v3_insert",
1499
+ MONGODB_V3_UPDATE: "orchestrion:mongodb:v3_update",
1500
+ MONGODB_V3_REMOVE: "orchestrion:mongodb:v3_remove",
1501
+ MONGODB_V3_COMMAND: "orchestrion:mongodb:v3_command",
1502
+ MONGODB_V3_QUERY: "orchestrion:mongodb:v3_query",
1503
+ MONGODB_V3_GET_MORE: "orchestrion:mongodb:v3_get_more"
1504
+ };
1505
+ // src/orchestrion/config/mongoose.ts
1506
+ const module$2 = {
1507
+ name: "mongoose",
1508
+ versionRange: ">=5.9.7 <9.7.0"
1509
+ };
1510
+ const CONTEXT_CAPTURE_QUERY_METHODS = [
1511
+ "find",
1512
+ "findOne",
1513
+ "deleteOne",
1514
+ "deleteMany",
1515
+ "estimatedDocumentCount",
1516
+ "countDocuments",
1517
+ "distinct",
1518
+ "where",
1519
+ "$where",
1520
+ "findOneAndUpdate",
1521
+ "findOneAndDelete",
1522
+ "findOneAndReplace",
1523
+ "remove",
1524
+ "count",
1525
+ "findOneAndRemove"
1526
+ ];
1527
+ const mongooseConfig = [
1528
+ require_registration_only.registrationOnly({
1529
+ name: "mongoose",
1530
+ versionRange: ">=9.7.0",
1531
+ filePath: "lib/query.js"
1532
+ }),
1533
+ {
1534
+ channelName: "query_exec",
1535
+ module: {
1536
+ ...module$2,
1537
+ filePath: "lib/query.js"
1538
+ },
1539
+ functionQuery: {
1540
+ expressionName: "exec",
1541
+ kind: "Auto"
1542
+ }
1543
+ },
1544
+ {
1545
+ channelName: "aggregate_exec",
1546
+ module: {
1547
+ ...module$2,
1548
+ filePath: "lib/aggregate.js"
1549
+ },
1550
+ functionQuery: {
1551
+ expressionName: "exec",
1552
+ kind: "Auto"
1553
+ }
1554
+ },
1555
+ {
1556
+ channelName: "model_save",
1557
+ module: {
1558
+ ...module$2,
1559
+ filePath: "lib/model.js"
1560
+ },
1561
+ functionQuery: {
1562
+ expressionName: "save",
1563
+ kind: "Auto"
1564
+ }
1565
+ },
1566
+ {
1567
+ channelName: "model_insert_many",
1568
+ module: {
1569
+ ...module$2,
1570
+ filePath: "lib/model.js"
1571
+ },
1572
+ functionQuery: {
1573
+ expressionName: "insertMany",
1574
+ kind: "Auto"
1575
+ }
1576
+ },
1577
+ {
1578
+ channelName: "model_bulk_write",
1579
+ module: {
1580
+ ...module$2,
1581
+ filePath: "lib/model.js"
1582
+ },
1583
+ functionQuery: {
1584
+ expressionName: "bulkWrite",
1585
+ kind: "Auto"
1586
+ }
1587
+ },
1588
+ {
1589
+ channelName: "model_remove",
1590
+ module: {
1591
+ ...module$2,
1592
+ filePath: "lib/model.js"
1593
+ },
1594
+ functionQuery: {
1595
+ expressionName: "remove",
1596
+ kind: "Auto"
1597
+ }
1598
+ },
1599
+ {
1600
+ channelName: "model_aggregate",
1601
+ module: {
1602
+ ...module$2,
1603
+ filePath: "lib/model.js"
1604
+ },
1605
+ functionQuery: {
1606
+ expressionName: "aggregate",
1607
+ kind: "Sync"
1608
+ }
1609
+ },
1610
+ ...CONTEXT_CAPTURE_QUERY_METHODS.map((methodName) => ({
1611
+ channelName: `ctx_${methodName}`,
1612
+ module: {
1613
+ ...module$2,
1614
+ filePath: "lib/query.js"
1615
+ },
1616
+ functionQuery: {
1617
+ expressionName: methodName,
1618
+ kind: "Sync"
1619
+ }
1620
+ }))
1621
+ ];
1622
+ const mongooseModuleNames = require_pi_ai.getModuleNames(mongooseConfig);
1623
+ const mongooseChannels = {
1624
+ MONGOOSE_QUERY_EXEC: "orchestrion:mongoose:query_exec",
1625
+ MONGOOSE_AGGREGATE_EXEC: "orchestrion:mongoose:aggregate_exec",
1626
+ MONGOOSE_MODEL_SAVE: "orchestrion:mongoose:model_save",
1627
+ MONGOOSE_MODEL_INSERT_MANY: "orchestrion:mongoose:model_insert_many",
1628
+ MONGOOSE_MODEL_BULK_WRITE: "orchestrion:mongoose:model_bulk_write",
1629
+ MONGOOSE_MODEL_REMOVE: "orchestrion:mongoose:model_remove",
1630
+ MONGOOSE_MODEL_AGGREGATE: "orchestrion:mongoose:model_aggregate"
1631
+ };
1632
+ /**
1633
+ * Fully-qualified names of the context-capture channels, derived from the
1634
+ * same method list the transform config uses so the two can't drift. The
1635
+ * subscriber subscribes to all of them uniformly to stash the build-time
1636
+ * parent span (see `mongooseChannels` for the span-creating channels).
1637
+ */
1638
+ const MONGOOSE_CONTEXT_CAPTURE_CHANNELS = CONTEXT_CAPTURE_QUERY_METHODS.map((methodName) => `orchestrion:mongoose:ctx_${methodName}`);
1639
+ // src/orchestrion/config/mysql2.ts
1640
+ const mysql2Config = [
1641
+ require_registration_only.registrationOnly({
1642
+ name: "mysql2",
1643
+ versionRange: ">=3.20.0",
1644
+ filePath: "lib/base/connection.js"
1645
+ }),
1646
+ {
1647
+ channelName: "query",
1648
+ module: {
1649
+ name: "mysql2",
1650
+ versionRange: ">=1.4.2 <3.11.5",
1651
+ filePath: "lib/connection.js"
1652
+ },
1653
+ functionQuery: {
1654
+ className: "Connection",
1655
+ methodName: "query",
1656
+ kind: "Callback"
1657
+ }
1658
+ },
1659
+ {
1660
+ channelName: "execute",
1661
+ module: {
1662
+ name: "mysql2",
1663
+ versionRange: ">=1.4.2 <3.11.5",
1664
+ filePath: "lib/connection.js"
1665
+ },
1666
+ functionQuery: {
1667
+ className: "Connection",
1668
+ methodName: "execute",
1669
+ kind: "Callback"
1670
+ }
1671
+ },
1672
+ {
1673
+ channelName: "query",
1674
+ module: {
1675
+ name: "mysql2",
1676
+ versionRange: ">=3.11.5 <3.20.0",
1677
+ filePath: "lib/base/connection.js"
1678
+ },
1679
+ functionQuery: {
1680
+ className: "BaseConnection",
1681
+ methodName: "query",
1682
+ kind: "Callback"
1683
+ }
1684
+ },
1685
+ {
1686
+ channelName: "execute",
1687
+ module: {
1688
+ name: "mysql2",
1689
+ versionRange: ">=3.11.5 <3.20.0",
1690
+ filePath: "lib/base/connection.js"
1691
+ },
1692
+ functionQuery: {
1693
+ className: "BaseConnection",
1694
+ methodName: "execute",
1695
+ kind: "Callback"
1696
+ }
1697
+ }
1698
+ ];
1699
+ const mysql2ModuleNames = require_pi_ai.getModuleNames(mysql2Config);
1700
+ const mysql2Channels = {
1701
+ MYSQL2_QUERY: "orchestrion:mysql2:query",
1702
+ MYSQL2_EXECUTE: "orchestrion:mysql2:execute"
1703
+ };
1704
+ // src/orchestrion/config/mysql.ts
1705
+ const mysqlConfig = [{
1706
+ channelName: "query",
1707
+ module: {
1708
+ name: "mysql",
1709
+ versionRange: ">=2.0.0 <3",
1710
+ filePath: "lib/Connection.js"
1711
+ },
1712
+ functionQuery: {
1713
+ expressionName: "query",
1714
+ kind: "Auto"
1715
+ }
1716
+ }];
1717
+ const mysqlModuleNames = require_pi_ai.getModuleNames(mysqlConfig);
1718
+ const mysqlChannels = { MYSQL_QUERY: "orchestrion:mysql:query" };
1719
+ // src/orchestrion/config/neon.ts
1720
+ const module$1 = {
1721
+ name: "@neondatabase/serverless",
1722
+ versionRange: ">=1.0.0 <2",
1723
+ filePath: /^index\.m?js$/
1724
+ };
1725
+ const neonConfig = [
1726
+ {
1727
+ channelName: "query",
1728
+ module: module$1,
1729
+ astQuery: "ClassBody:has(MethodDefinition[key.name=\"_pulseQueryQueue\"]) > MethodDefinition[key.name=\"query\"] > FunctionExpression",
1730
+ functionQuery: {
1731
+ methodName: "query",
1732
+ kind: "Auto"
1733
+ }
1734
+ },
1735
+ {
1736
+ channelName: "http-query",
1737
+ module: module$1,
1738
+ astQuery: "FunctionDeclaration[async=true]:has(Literal[value=\"Neon-Connection-String\"])",
1739
+ functionQuery: { kind: "Async" }
1740
+ },
1741
+ {
1742
+ channelName: "resolve-connection",
1743
+ module: module$1,
1744
+ astQuery: "FunctionDeclaration[async=true]:has(ReturnStatement > ObjectExpression > Property[key.name=\"resolvedURL\"])",
1745
+ functionQuery: { kind: "Async" }
1746
+ }
1747
+ ];
1748
+ const neonModuleNames = require_pi_ai.getModuleNames(neonConfig);
1749
+ const neonChannels = {
1750
+ NEON_QUERY: "orchestrion:@neondatabase/serverless:query",
1751
+ NEON_HTTP_QUERY: "orchestrion:@neondatabase/serverless:http-query",
1752
+ NEON_RESOLVE_CONNECTION: "orchestrion:@neondatabase/serverless:resolve-connection"
1753
+ };
1754
+ // src/orchestrion/config/nestjs.ts
1755
+ /**
1756
+ * Wrap an instrumentation that targets nodes via a raw esquery selector
1757
+ * (`NstQuery`) rather than the structured `functionQuery`. Needed when the
1758
+ * target can't be named, e.g. the anonymous arrow a decorator factory returns
1759
+ * The transformer supports `astQuery` at runtime (it takes precedence over
1760
+ * `functionQuery`, which then only supplies `kind`), but it isn't in the
1761
+ * published `InstrumentationConfig` type. Hence the cast.
1762
+ */
1763
+ function astQueryInstrumentation(config) {
1764
+ return config;
1765
+ }
1766
+ /**
1767
+ * NestJS is different from the other instrumentations here. It's a standalone
1768
+ * metaframework SDK (`@sentry/nestjs`), so its channel LISTENER lives in that
1769
+ * package rather than in `server-utils`. Only the code-transform config (and
1770
+ * the channel names below) live here, so `@nestjs/*` is transformed whenever
1771
+ * orchestrion is enabled, same as every other library.
1772
+ *
1773
+ * `@sentry/nestjs` imports {@link nestjsChannels} to subscribe, and picks the
1774
+ * channel-vs-OTel path based on the global injection flag.
1775
+ */
1776
+ const nestjsConfig = [
1777
+ {
1778
+ channelName: "nestFactoryCreate",
1779
+ module: {
1780
+ name: "@nestjs/core",
1781
+ versionRange: ">=8.0.0 <13",
1782
+ filePath: "nest-factory.js"
1783
+ },
1784
+ functionQuery: {
1785
+ className: "NestFactoryStatic",
1786
+ methodName: "create",
1787
+ kind: "Async"
1788
+ }
1789
+ },
1790
+ {
1791
+ channelName: "routerExecutionContextCreate",
1792
+ module: {
1793
+ name: "@nestjs/core",
1794
+ versionRange: ">=8.0.0 <13",
1795
+ filePath: "router/router-execution-context.js"
1796
+ },
1797
+ functionQuery: {
1798
+ className: "RouterExecutionContext",
1799
+ methodName: "create",
1800
+ kind: "Sync"
1801
+ }
1802
+ },
1803
+ astQueryInstrumentation({
1804
+ channelName: "injectableDecorator",
1805
+ module: {
1806
+ name: "@nestjs/common",
1807
+ versionRange: ">=8.0.0 <13",
1808
+ filePath: "decorators/core/injectable.decorator.js"
1809
+ },
1810
+ astQuery: "FunctionDeclaration[id.name=\"Injectable\"] ReturnStatement > ArrowFunctionExpression",
1811
+ functionQuery: { kind: "Sync" }
1812
+ }),
1813
+ astQueryInstrumentation({
1814
+ channelName: "catchDecorator",
1815
+ module: {
1816
+ name: "@nestjs/common",
1817
+ versionRange: ">=8.0.0 <13",
1818
+ filePath: "decorators/core/catch.decorator.js"
1819
+ },
1820
+ astQuery: "FunctionDeclaration[id.name=\"Catch\"] ReturnStatement > ArrowFunctionExpression",
1821
+ functionQuery: { kind: "Sync" }
1822
+ }),
1823
+ {
1824
+ channelName: "cronDecorator",
1825
+ module: {
1826
+ name: "@nestjs/schedule",
1827
+ versionRange: ">=2.0.0",
1828
+ filePath: "dist/decorators/cron.decorator.js"
1829
+ },
1830
+ functionQuery: {
1831
+ functionName: "Cron",
1832
+ kind: "Sync"
1833
+ }
1834
+ },
1835
+ {
1836
+ channelName: "intervalDecorator",
1837
+ module: {
1838
+ name: "@nestjs/schedule",
1839
+ versionRange: ">=2.0.0",
1840
+ filePath: "dist/decorators/interval.decorator.js"
1841
+ },
1842
+ functionQuery: {
1843
+ functionName: "Interval",
1844
+ kind: "Sync"
1845
+ }
1846
+ },
1847
+ {
1848
+ channelName: "timeoutDecorator",
1849
+ module: {
1850
+ name: "@nestjs/schedule",
1851
+ versionRange: ">=2.0.0",
1852
+ filePath: "dist/decorators/timeout.decorator.js"
1853
+ },
1854
+ functionQuery: {
1855
+ functionName: "Timeout",
1856
+ kind: "Sync"
1857
+ }
1858
+ },
1859
+ {
1860
+ channelName: "scheduleExplorerWrap",
1861
+ module: {
1862
+ name: "@nestjs/schedule",
1863
+ versionRange: ">=6.0.0",
1864
+ filePath: "dist/schedule.explorer.js"
1865
+ },
1866
+ functionQuery: {
1867
+ className: "ScheduleExplorer",
1868
+ methodName: "wrapFunctionInTryCatchBlocks",
1869
+ kind: "Sync"
1870
+ }
1871
+ },
1872
+ {
1873
+ channelName: "onEventDecorator",
1874
+ module: {
1875
+ name: "@nestjs/event-emitter",
1876
+ versionRange: ">=2.0.0",
1877
+ filePath: "dist/decorators/on-event.decorator.js"
1878
+ },
1879
+ functionQuery: {
1880
+ expressionName: "OnEvent",
1881
+ kind: "Sync"
1882
+ }
1883
+ },
1884
+ {
1885
+ channelName: "processorDecorator",
1886
+ module: {
1887
+ name: "@nestjs/bullmq",
1888
+ versionRange: ">=10.0.0",
1889
+ filePath: "dist/decorators/processor.decorator.js"
1890
+ },
1891
+ functionQuery: {
1892
+ functionName: "Processor",
1893
+ kind: "Sync"
1894
+ }
1895
+ }
1896
+ ];
1897
+ const nestjsChannels = {
1898
+ NESTJS_APP_CREATION: "orchestrion:@nestjs/core:nestFactoryCreate",
1899
+ NESTJS_ROUTER_CONTEXT: "orchestrion:@nestjs/core:routerExecutionContextCreate",
1900
+ NESTJS_INJECTABLE: "orchestrion:@nestjs/common:injectableDecorator",
1901
+ NESTJS_CATCH: "orchestrion:@nestjs/common:catchDecorator",
1902
+ NESTJS_SCHEDULE_CRON: "orchestrion:@nestjs/schedule:cronDecorator",
1903
+ NESTJS_SCHEDULE_INTERVAL: "orchestrion:@nestjs/schedule:intervalDecorator",
1904
+ NESTJS_SCHEDULE_TIMEOUT: "orchestrion:@nestjs/schedule:timeoutDecorator",
1905
+ NESTJS_SCHEDULE_EXPLORER_WRAP: "orchestrion:@nestjs/schedule:scheduleExplorerWrap",
1906
+ NESTJS_ONEVENT: "orchestrion:@nestjs/event-emitter:onEventDecorator",
1907
+ NESTJS_PROCESSOR: "orchestrion:@nestjs/bullmq:processorDecorator"
1908
+ };
1909
+ // src/orchestrion/config/nitro.ts
1910
+ /**
1911
+ * Nitro's instrumentation consumes tracing channels that h3, srvx and unstorage publish natively, so
1912
+ * no channels are injected: transforming h3's entry file only registers `nitroIntegration` at
1913
+ * evaluation time, which is what installs it on a bundler-only SDK like `@sentry/cloudflare`. On
1914
+ * `@sentry/node` (and deno/bun) the integration is registered statically, so this is a no-op there.
1915
+ *
1916
+ * Anchored on `h3` because every HTTP-serving Nitro app loads it. The anchor only triggers
1917
+ * registration; the integration then subscribes to all of its channels (including unstorage's),
1918
+ * independent of which module loaded it.
1919
+ *
1920
+ * The `-0` in the version range matters: h3 ships the version Nitro 3 uses as a prerelease
1921
+ * (`2.0.1-rc.*`). The orchestrion matcher is the vendored `semifies` (used by both the runtime loader
1922
+ * and the bundler plugins), where a range carrying a prerelease tag enables prerelease matching
1923
+ * across patch tuples — so `>=2.0.0-0` matches `2.0.1-rc.*`. (Plain node-semver would not: it drops
1924
+ * prereleases of a higher patch tuple.)
1925
+ */
1926
+ const nitroConfig = [require_registration_only.registrationOnly({
1927
+ name: "h3",
1928
+ versionRange: ">=2.0.0-0",
1929
+ filePath: "dist/h3.mjs"
1930
+ })];
1931
+ // src/orchestrion/config/node-cron.ts
1932
+ const createTask = {
1933
+ functionName: "createTask",
1934
+ kind: "Sync"
1935
+ };
1936
+ const nodeCronConfig = [
1937
+ {
1938
+ channelName: "createTask",
1939
+ module: {
1940
+ name: "node-cron",
1941
+ versionRange: ">=4.6.0 <5",
1942
+ filePath: "dist/node-cron.cjs"
1943
+ },
1944
+ functionQuery: createTask
1945
+ },
1946
+ {
1947
+ channelName: "createTask",
1948
+ module: {
1949
+ name: "node-cron",
1950
+ versionRange: ">=4.6.0 <5",
1951
+ filePath: "dist/node-cron.js"
1952
+ },
1953
+ functionQuery: createTask
1954
+ },
1955
+ {
1956
+ channelName: "v4_createTask",
1957
+ module: {
1958
+ name: "node-cron",
1959
+ versionRange: ">=4.3.0 <4.6.0",
1960
+ filePath: "dist/node-cron.cjs"
1961
+ },
1962
+ functionQuery: createTask
1963
+ },
1964
+ {
1965
+ channelName: "v4_createTask",
1966
+ module: {
1967
+ name: "node-cron",
1968
+ versionRange: ">=4.0.0 <4.6.0",
1969
+ filePath: "dist/node-cron.js"
1970
+ },
1971
+ functionQuery: createTask
1972
+ },
1973
+ {
1974
+ channelName: "v4_createTask",
1975
+ module: {
1976
+ name: "node-cron",
1977
+ versionRange: ">=4.0.0 <4.3.0",
1978
+ filePath: "dist/cjs/node-cron.js"
1979
+ },
1980
+ functionQuery: createTask
1981
+ },
1982
+ {
1983
+ channelName: "v4_createTask",
1984
+ module: {
1985
+ name: "node-cron",
1986
+ versionRange: ">=4.0.0 <4.3.0",
1987
+ filePath: "dist/esm/node-cron.js"
1988
+ },
1989
+ functionQuery: createTask
1990
+ },
1991
+ {
1992
+ channelName: "v3_createTask",
1993
+ module: {
1994
+ name: "node-cron",
1995
+ versionRange: ">=3.0.0 <4",
1996
+ filePath: "src/node-cron.js"
1997
+ },
1998
+ functionQuery: createTask
1999
+ }
2000
+ ];
2001
+ const nodeCronModuleNames = require_pi_ai.getModuleNames(nodeCronConfig);
2002
+ const nodeCronChannels = {
2003
+ NODE_CRON_CREATE_TASK: "orchestrion:node-cron:createTask",
2004
+ NODE_CRON_V4_CREATE_TASK: "orchestrion:node-cron:v4_createTask",
2005
+ NODE_CRON_V3_CREATE_TASK: "orchestrion:node-cron:v3_createTask"
2006
+ };
2007
+ // src/orchestrion/config/node-schedule.ts
2008
+ const schedule = {
2009
+ channelName: "schedule",
2010
+ astQuery: "AssignmentExpression[left.object.property.name='prototype'][left.property.name='schedule'] > FunctionExpression",
2011
+ functionQuery: {
2012
+ methodName: "schedule",
2013
+ kind: "Sync"
2014
+ }
2015
+ };
2016
+ const nodeScheduleConfig = [{
2017
+ ...schedule,
2018
+ module: {
2019
+ name: "node-schedule",
2020
+ versionRange: ">=1.3.0 <2",
2021
+ filePath: "lib/schedule.js"
2022
+ }
2023
+ }, {
2024
+ ...schedule,
2025
+ module: {
2026
+ name: "node-schedule",
2027
+ versionRange: ">=2.0.0 <3",
2028
+ filePath: "lib/Job.js"
2029
+ }
2030
+ }];
2031
+ const nodeScheduleModuleNames = require_pi_ai.getModuleNames(nodeScheduleConfig);
2032
+ const nodeScheduleChannels = { NODE_SCHEDULE_SCHEDULE: "orchestrion:node-schedule:schedule" };
2033
+ // src/orchestrion/config/openai.ts
2034
+ const openaiConfig = [
2035
+ ...["resources/chat/completions/completions.js", "resources/chat/completions/completions.mjs"].map((filePath) => ({
2036
+ channelName: "chat",
2037
+ module: {
2038
+ name: "openai",
2039
+ versionRange: ">=4.0.0 <8",
2040
+ filePath
2041
+ },
2042
+ functionQuery: {
2043
+ className: "Completions",
2044
+ methodName: "create",
2045
+ kind: "Sync"
2046
+ }
2047
+ })),
2048
+ ...["resources/responses/responses.js", "resources/responses/responses.mjs"].map((filePath) => ({
2049
+ channelName: "chat",
2050
+ module: {
2051
+ name: "openai",
2052
+ versionRange: ">=4.0.0 <8",
2053
+ filePath
2054
+ },
2055
+ functionQuery: {
2056
+ className: "Responses",
2057
+ methodName: "create",
2058
+ kind: "Sync"
2059
+ }
2060
+ })),
2061
+ ...["resources/embeddings.js", "resources/embeddings.mjs"].map((filePath) => ({
2062
+ channelName: "embeddings",
2063
+ module: {
2064
+ name: "openai",
2065
+ versionRange: ">=4.0.0 <8",
2066
+ filePath
2067
+ },
2068
+ functionQuery: {
2069
+ className: "Embeddings",
2070
+ methodName: "create",
2071
+ kind: "Sync"
2072
+ }
2073
+ })),
2074
+ ...["resources/conversations/conversations.js", "resources/conversations/conversations.mjs"].map((filePath) => ({
2075
+ channelName: "chat",
2076
+ module: {
2077
+ name: "openai",
2078
+ versionRange: ">=4.0.0 <8",
2079
+ filePath
2080
+ },
2081
+ functionQuery: {
2082
+ className: "Conversations",
2083
+ methodName: "create",
2084
+ kind: "Sync"
2085
+ }
2086
+ })),
2087
+ ...["resources/decisions.js", "resources/decisions.mjs"].map((filePath) => ({
2088
+ channelName: "decide",
2089
+ module: {
2090
+ name: "openai",
2091
+ versionRange: ">=7.30.0 <8",
2092
+ filePath
2093
+ },
2094
+ functionQuery: {
2095
+ className: "Decisions",
2096
+ methodName: "create",
2097
+ kind: "Sync"
2098
+ }
2099
+ }))
2100
+ ];
2101
+ const openaiModuleNames = require_pi_ai.getModuleNames(openaiConfig);
2102
+ const openaiChannels = {
2103
+ OPENAI_CHAT: "orchestrion:openai:chat",
2104
+ OPENAI_EMBEDDINGS: "orchestrion:openai:embeddings",
2105
+ OPENAI_DECIDE: "orchestrion:openai:decide"
2106
+ };
2107
+ // src/orchestrion/config/pg.ts
2108
+ const pgConfig = [
2109
+ {
2110
+ channelName: "query",
2111
+ module: {
2112
+ name: "pg",
2113
+ versionRange: ">=8.0.3 <9",
2114
+ filePath: "lib/client.js"
2115
+ },
2116
+ functionQuery: {
2117
+ className: "Client",
2118
+ methodName: "query",
2119
+ kind: "Auto"
2120
+ }
2121
+ },
2122
+ {
2123
+ channelName: "connect",
2124
+ module: {
2125
+ name: "pg",
2126
+ versionRange: ">=8.0.3 <9",
2127
+ filePath: "lib/client.js"
2128
+ },
2129
+ functionQuery: {
2130
+ className: "Client",
2131
+ methodName: "connect",
2132
+ kind: "Auto"
2133
+ }
2134
+ },
2135
+ {
2136
+ channelName: "query",
2137
+ module: {
2138
+ name: "pg",
2139
+ versionRange: ">=8.0.3 <9",
2140
+ filePath: "lib/native/client.js"
2141
+ },
2142
+ functionQuery: {
2143
+ expressionName: "query",
2144
+ kind: "Auto"
2145
+ }
2146
+ },
2147
+ {
2148
+ channelName: "connect",
2149
+ module: {
2150
+ name: "pg",
2151
+ versionRange: ">=8.0.3 <9",
2152
+ filePath: "lib/native/client.js"
2153
+ },
2154
+ functionQuery: {
2155
+ expressionName: "connect",
2156
+ kind: "Auto"
2157
+ }
2158
+ },
2159
+ {
2160
+ channelName: "connect",
2161
+ module: {
2162
+ name: "pg-pool",
2163
+ versionRange: ">=2.0.0 <4",
2164
+ filePath: "index.js"
2165
+ },
2166
+ functionQuery: {
2167
+ className: "Pool",
2168
+ methodName: "connect",
2169
+ kind: "Auto"
2170
+ }
2171
+ }
2172
+ ];
2173
+ const pgModuleNames = require_pi_ai.getModuleNames(pgConfig);
2174
+ const pgChannels = {
2175
+ PG_QUERY: "orchestrion:pg:query",
2176
+ PG_CONNECT: "orchestrion:pg:connect",
2177
+ PGPOOL_CONNECT: "orchestrion:pg-pool:connect"
2178
+ };
2179
+ // src/orchestrion/config/postgres.ts
2180
+ const postgresJsInstrumentationConfig = (dir) => [
2181
+ {
2182
+ channelName: "handle",
2183
+ module: {
2184
+ name: "postgres",
2185
+ versionRange: ">=3.0.0 <4",
2186
+ filePath: `${dir}/query.js`
2187
+ },
2188
+ functionQuery: {
2189
+ className: "Query",
2190
+ methodName: "handle",
2191
+ kind: "Async"
2192
+ }
2193
+ },
2194
+ {
2195
+ channelName: "connection",
2196
+ module: {
2197
+ name: "postgres",
2198
+ versionRange: ">=3.0.0 <4",
2199
+ filePath: `${dir}/connection.js`
2200
+ },
2201
+ functionQuery: {
2202
+ functionName: "Connection",
2203
+ kind: "Sync"
2204
+ }
2205
+ },
2206
+ {
2207
+ channelName: "execute",
2208
+ module: {
2209
+ name: "postgres",
2210
+ versionRange: ">=3.0.0 <4",
2211
+ filePath: `${dir}/connection.js`
2212
+ },
2213
+ functionQuery: {
2214
+ functionName: "execute",
2215
+ kind: "Sync"
2216
+ }
2217
+ },
2218
+ {
2219
+ channelName: "connect",
2220
+ module: {
2221
+ name: "postgres",
2222
+ versionRange: ">=3.0.0 <4",
2223
+ filePath: `${dir}/connection.js`
2224
+ },
2225
+ functionQuery: {
2226
+ methodName: "connect",
2227
+ kind: "Sync"
2228
+ }
2229
+ }
2230
+ ];
2231
+ const postgresJsConfig = [require_registration_only.registrationOnly({
2232
+ name: "postgres",
2233
+ versionRange: ">=4.0.0",
2234
+ filePath: "src/query.js"
2235
+ }), ...["src", "cjs/src"].flatMap(postgresJsInstrumentationConfig)];
2236
+ const postgresJsModuleNames = require_pi_ai.getModuleNames(postgresJsConfig);
2237
+ const postgresJsChannels = {
2238
+ POSTGRESJS_HANDLE: "orchestrion:postgres:handle",
2239
+ POSTGRESJS_CONNECTION: "orchestrion:postgres:connection",
2240
+ POSTGRESJS_EXECUTE: "orchestrion:postgres:execute",
2241
+ POSTGRESJS_CONNECT: "orchestrion:postgres:connect"
2242
+ };
2243
+ // src/orchestrion/config/prisma.ts
2244
+ const MODULE_NAME$1 = "@prisma/orm-family-sql";
2245
+ const ORM_CLIENT_FILE = "dist/orm-client.mjs";
2246
+ const VERSION_RANGE$1 = ">=8.0.0-rc.15 <9";
2247
+ const PRISMA_ASYNC_TERMINALS = [
2248
+ "aggregate",
2249
+ "first",
2250
+ "create",
2251
+ "createAndCount",
2252
+ "upsert",
2253
+ "update",
2254
+ "updateAndCount",
2255
+ "delete",
2256
+ "deleteAndCount"
2257
+ ];
2258
+ const PRISMA_LAZY_TERMINALS = [
2259
+ "all",
2260
+ "createAll",
2261
+ "updateAll",
2262
+ "deleteAll"
2263
+ ];
2264
+ function terminalConfig(methodName, kind) {
2265
+ return {
2266
+ channelName: methodName,
2267
+ module: {
2268
+ name: MODULE_NAME$1,
2269
+ versionRange: VERSION_RANGE$1,
2270
+ filePath: ORM_CLIENT_FILE
2271
+ },
2272
+ functionQuery: {
2273
+ className: "CollectionBase",
2274
+ methodName,
2275
+ kind
2276
+ }
2277
+ };
2278
+ }
2279
+ const prismaConfig = [...PRISMA_ASYNC_TERMINALS.map((methodName) => terminalConfig(methodName, "Async")), ...PRISMA_LAZY_TERMINALS.map((methodName) => terminalConfig(methodName, "Sync"))];
2280
+ const prismaModuleNames = require_pi_ai.getModuleNames(prismaConfig);
2281
+ const prismaChannels = {
2282
+ PRISMA_AGGREGATE: "orchestrion:@prisma/orm-family-sql:aggregate",
2283
+ PRISMA_FIRST: "orchestrion:@prisma/orm-family-sql:first",
2284
+ PRISMA_CREATE: "orchestrion:@prisma/orm-family-sql:create",
2285
+ PRISMA_CREATE_AND_COUNT: "orchestrion:@prisma/orm-family-sql:createAndCount",
2286
+ PRISMA_UPSERT: "orchestrion:@prisma/orm-family-sql:upsert",
2287
+ PRISMA_UPDATE: "orchestrion:@prisma/orm-family-sql:update",
2288
+ PRISMA_UPDATE_AND_COUNT: "orchestrion:@prisma/orm-family-sql:updateAndCount",
2289
+ PRISMA_DELETE: "orchestrion:@prisma/orm-family-sql:delete",
2290
+ PRISMA_DELETE_AND_COUNT: "orchestrion:@prisma/orm-family-sql:deleteAndCount",
2291
+ PRISMA_ALL: "orchestrion:@prisma/orm-family-sql:all",
2292
+ PRISMA_CREATE_ALL: "orchestrion:@prisma/orm-family-sql:createAll",
2293
+ PRISMA_UPDATE_ALL: "orchestrion:@prisma/orm-family-sql:updateAll",
2294
+ PRISMA_DELETE_ALL: "orchestrion:@prisma/orm-family-sql:deleteAll"
2295
+ };
2296
+ // src/orchestrion/config/redis.ts
2297
+ const redisConfig = [
2298
+ require_registration_only.registrationOnly({
2299
+ name: "@redis/client",
2300
+ versionRange: ">=5.12.0",
2301
+ filePath: "dist/lib/client/index.js"
2302
+ }),
2303
+ {
2304
+ channelName: "command",
2305
+ module: {
2306
+ name: "redis",
2307
+ versionRange: ">=2.6.0 <4",
2308
+ filePath: "index.js"
2309
+ },
2310
+ functionQuery: {
2311
+ expressionName: "internal_send_command",
2312
+ kind: "Sync"
2313
+ }
2314
+ },
2315
+ {
2316
+ channelName: "executor",
2317
+ module: {
2318
+ name: "@redis/client",
2319
+ versionRange: "^1.0.0",
2320
+ filePath: "dist/lib/client/index.js"
2321
+ },
2322
+ functionQuery: {
2323
+ className: "RedisClient",
2324
+ methodName: "commandsExecutor",
2325
+ kind: "Async"
2326
+ }
2327
+ },
2328
+ {
2329
+ channelName: "command",
2330
+ module: {
2331
+ name: "@redis/client",
2332
+ versionRange: "^1.0.0",
2333
+ filePath: "dist/lib/client/index.js"
2334
+ },
2335
+ functionQuery: {
2336
+ className: "RedisClient",
2337
+ methodName: "sendCommand",
2338
+ kind: "Async"
2339
+ }
2340
+ },
2341
+ {
2342
+ channelName: "connect",
2343
+ module: {
2344
+ name: "@redis/client",
2345
+ versionRange: "^1.0.0",
2346
+ filePath: "dist/lib/client/index.js"
2347
+ },
2348
+ functionQuery: {
2349
+ className: "RedisClient",
2350
+ methodName: "connect",
2351
+ kind: "Async"
2352
+ }
2353
+ },
2354
+ {
2355
+ channelName: "command",
2356
+ module: {
2357
+ name: "@redis/client",
2358
+ versionRange: ">=5.0.0 <5.12.0",
2359
+ filePath: "dist/lib/client/index.js"
2360
+ },
2361
+ functionQuery: {
2362
+ className: "RedisClient",
2363
+ methodName: "sendCommand",
2364
+ kind: "Async"
2365
+ }
2366
+ },
2367
+ {
2368
+ channelName: "connect",
2369
+ module: {
2370
+ name: "@redis/client",
2371
+ versionRange: ">=5.0.0 <5.12.0",
2372
+ filePath: "dist/lib/client/index.js"
2373
+ },
2374
+ functionQuery: {
2375
+ className: "RedisClient",
2376
+ methodName: "connect",
2377
+ kind: "Async"
2378
+ }
2379
+ },
2380
+ {
2381
+ channelName: "multi",
2382
+ module: {
2383
+ name: "@redis/client",
2384
+ versionRange: ">=5.0.0 <5.12.0",
2385
+ filePath: "dist/lib/client/index.js"
2386
+ },
2387
+ functionQuery: {
2388
+ className: "RedisClient",
2389
+ methodName: "_executeMulti",
2390
+ kind: "Async"
2391
+ }
2392
+ },
2393
+ {
2394
+ channelName: "pipeline",
2395
+ module: {
2396
+ name: "@redis/client",
2397
+ versionRange: ">=5.0.0 <5.12.0",
2398
+ filePath: "dist/lib/client/index.js"
2399
+ },
2400
+ functionQuery: {
2401
+ className: "RedisClient",
2402
+ methodName: "_executePipeline",
2403
+ kind: "Async"
2404
+ }
2405
+ },
2406
+ {
2407
+ channelName: "batch",
2408
+ module: {
2409
+ name: "@redis/client",
2410
+ versionRange: "^1.0.0",
2411
+ filePath: "dist/lib/client/index.js"
2412
+ },
2413
+ functionQuery: {
2414
+ className: "RedisClient",
2415
+ methodName: "multiExecutor",
2416
+ kind: "Async"
2417
+ }
2418
+ }
2419
+ ];
2420
+ const redisModuleNames = require_pi_ai.getModuleNames(redisConfig);
2421
+ const redisChannels = {
2422
+ REDIS_COMMAND: "orchestrion:redis:command",
2423
+ NODE_REDIS_COMMAND: "orchestrion:@redis/client:command",
2424
+ NODE_REDIS_EXECUTOR: "orchestrion:@redis/client:executor",
2425
+ NODE_REDIS_CONNECT: "orchestrion:@redis/client:connect",
2426
+ NODE_REDIS_MULTI: "orchestrion:@redis/client:multi",
2427
+ NODE_REDIS_PIPELINE: "orchestrion:@redis/client:pipeline",
2428
+ NODE_REDIS_BATCH: "orchestrion:@redis/client:batch"
2429
+ };
2430
+ // src/orchestrion/config/remix.ts
2431
+ const remixInstrumentationConfig = (dir) => [
2432
+ {
2433
+ channelName: "requestHandler",
2434
+ module: {
2435
+ name: "@remix-run/server-runtime",
2436
+ versionRange: ">=2.0.0 <3",
2437
+ filePath: `${dir}/server.js`
2438
+ },
2439
+ astQuery: "FunctionExpression[id.name=\"requestHandler\"]",
2440
+ functionQuery: { kind: "Async" }
2441
+ },
2442
+ {
2443
+ channelName: "matchServerRoutes",
2444
+ module: {
2445
+ name: "@remix-run/server-runtime",
2446
+ versionRange: ">=2.0.0 <3",
2447
+ filePath: `${dir}/routeMatching.js`
2448
+ },
2449
+ functionQuery: {
2450
+ functionName: "matchServerRoutes",
2451
+ kind: "Sync"
2452
+ }
2453
+ },
2454
+ {
2455
+ channelName: "callRouteLoader",
2456
+ module: {
2457
+ name: "@remix-run/server-runtime",
2458
+ versionRange: ">=2.9.0 <3",
2459
+ filePath: `${dir}/data.js`
2460
+ },
2461
+ functionQuery: {
2462
+ functionName: "callRouteLoader",
2463
+ kind: "Async"
2464
+ }
2465
+ },
2466
+ {
2467
+ channelName: "callRouteAction",
2468
+ module: {
2469
+ name: "@remix-run/server-runtime",
2470
+ versionRange: ">=2.9.0 <3",
2471
+ filePath: `${dir}/data.js`
2472
+ },
2473
+ functionQuery: {
2474
+ functionName: "callRouteAction",
2475
+ kind: "Async"
2476
+ }
2477
+ },
2478
+ {
2479
+ channelName: "callRouteLoader",
2480
+ module: {
2481
+ name: "@remix-run/server-runtime",
2482
+ versionRange: ">=2.0.0 <2.9.0",
2483
+ filePath: `${dir}/data.js`
2484
+ },
2485
+ functionQuery: {
2486
+ functionName: "callRouteLoaderRR",
2487
+ kind: "Async"
2488
+ }
2489
+ },
2490
+ {
2491
+ channelName: "callRouteAction",
2492
+ module: {
2493
+ name: "@remix-run/server-runtime",
2494
+ versionRange: ">=2.0.0 <2.9.0",
2495
+ filePath: `${dir}/data.js`
2496
+ },
2497
+ functionQuery: {
2498
+ functionName: "callRouteActionRR",
2499
+ kind: "Async"
2500
+ }
2501
+ }
2502
+ ];
2503
+ const remixConfig = ["dist", "dist/esm"].flatMap(remixInstrumentationConfig);
2504
+ const remixChannels = {
2505
+ REMIX_REQUEST_HANDLER: "orchestrion:@remix-run/server-runtime:requestHandler",
2506
+ REMIX_MATCH_SERVER_ROUTES: "orchestrion:@remix-run/server-runtime:matchServerRoutes",
2507
+ REMIX_CALL_ROUTE_LOADER: "orchestrion:@remix-run/server-runtime:callRouteLoader",
2508
+ REMIX_CALL_ROUTE_ACTION: "orchestrion:@remix-run/server-runtime:callRouteAction"
2509
+ };
2510
+ // src/orchestrion/config/remix-v3.ts
2511
+ const remixV3Config = [
2512
+ {
2513
+ channelName: "createRouter",
2514
+ module: {
2515
+ name: "@remix-run/fetch-router",
2516
+ versionRange: ">=0.21.0 <2",
2517
+ filePath: "dist/lib/router.js"
2518
+ },
2519
+ functionQuery: {
2520
+ functionName: "createRouter",
2521
+ kind: "Sync"
2522
+ }
2523
+ },
2524
+ {
2525
+ channelName: "createAssetServer",
2526
+ module: {
2527
+ name: "@remix-run/assets",
2528
+ versionRange: ">=0.6.0 <2",
2529
+ filePath: "dist/lib/asset-server.js"
2530
+ },
2531
+ functionQuery: {
2532
+ functionName: "createAssetServer",
2533
+ kind: "Sync"
2534
+ }
2535
+ },
2536
+ {
2537
+ channelName: "createRequestListener",
2538
+ module: {
2539
+ name: "@remix-run/node-fetch-server",
2540
+ versionRange: ">=0.14.0 <2",
2541
+ filePath: "dist/lib/request-listener.js"
2542
+ },
2543
+ functionQuery: {
2544
+ functionName: "createRequestListener",
2545
+ kind: "Sync"
2546
+ }
2547
+ },
2548
+ {
2549
+ channelName: "run",
2550
+ module: {
2551
+ name: "@remix-run/ui",
2552
+ versionRange: ">=0.8.0 <1",
2553
+ filePath: "dist/runtime/run.js"
2554
+ },
2555
+ functionQuery: {
2556
+ functionName: "run",
2557
+ kind: "Sync"
2558
+ }
2559
+ },
2560
+ {
2561
+ channelName: "run",
2562
+ module: {
2563
+ name: "@remix-run/component",
2564
+ versionRange: ">=1.0.0 <2",
2565
+ filePath: "dist/runtime/run.js"
2566
+ },
2567
+ functionQuery: {
2568
+ functionName: "run",
2569
+ kind: "Sync"
2570
+ }
2571
+ }
2572
+ ];
2573
+ const remixV3Channels = {
2574
+ REMIX_V3_CREATE_ROUTER: "orchestrion:@remix-run/fetch-router:createRouter",
2575
+ REMIX_V3_CREATE_ASSET_SERVER: "orchestrion:@remix-run/assets:createAssetServer",
2576
+ REMIX_V3_CREATE_REQUEST_LISTENER: "orchestrion:@remix-run/node-fetch-server:createRequestListener",
2577
+ REMIX_V3_UI_RUN: "orchestrion:@remix-run/ui:run",
2578
+ REMIX_V3_COMPONENT_RUN: "orchestrion:@remix-run/component:run"
2579
+ };
2580
+ // src/orchestrion/config/tedious.ts
2581
+ const MODULE_NAME = "tedious";
2582
+ const FILE_PATH = "lib/connection.js";
2583
+ const VERSION_RANGE = ">=1.11.0 <21";
2584
+ const tediousConfig = [
2585
+ "connect",
2586
+ "execSql",
2587
+ "execSqlBatch",
2588
+ "callProcedure",
2589
+ "execBulkLoad",
2590
+ "prepare",
2591
+ "execute"
2592
+ ].map((methodName) => ({
2593
+ channelName: methodName,
2594
+ module: {
2595
+ name: MODULE_NAME,
2596
+ versionRange: VERSION_RANGE,
2597
+ filePath: FILE_PATH
2598
+ },
2599
+ functionQuery: {
2600
+ className: "Connection",
2601
+ methodName,
2602
+ kind: "Sync"
2603
+ }
2604
+ }));
2605
+ const tediousModuleNames = require_pi_ai.getModuleNames(tediousConfig);
2606
+ const tediousChannels = {
2607
+ TEDIOUS_CONNECT: "orchestrion:tedious:connect",
2608
+ TEDIOUS_EXEC_SQL: "orchestrion:tedious:execSql",
2609
+ TEDIOUS_EXEC_SQL_BATCH: "orchestrion:tedious:execSqlBatch",
2610
+ TEDIOUS_CALL_PROCEDURE: "orchestrion:tedious:callProcedure",
2611
+ TEDIOUS_EXEC_BULK_LOAD: "orchestrion:tedious:execBulkLoad",
2612
+ TEDIOUS_PREPARE: "orchestrion:tedious:prepare",
2613
+ TEDIOUS_EXECUTE: "orchestrion:tedious:execute"
2614
+ };
2615
+ // src/orchestrion/config/together-ai.ts
2616
+ const togetherAiConfig = [...openAiCompatibleConfig({
2617
+ name: "together-ai",
2618
+ versionRange: ">=0.6.0 <1"
2619
+ }), ...openAiCompatibleConfig({
2620
+ name: "together-ai",
2621
+ versionRange: ">=1.0.0 <2"
2622
+ }, {
2623
+ chat: "BaseCompletions",
2624
+ embeddings: "BaseEmbeddings"
2625
+ })];
2626
+ const togetherAiModuleNames = require_pi_ai.getModuleNames(togetherAiConfig);
2627
+ const togetherAiChannels = {
2628
+ TOGETHER_CHAT: "orchestrion:together-ai:chat",
2629
+ TOGETHER_EMBEDDINGS: "orchestrion:together-ai:embeddings"
2630
+ };
2631
+ // src/orchestrion/config/typesafe.ts
2632
+ const typesafeConfig = ["dist/index.mjs", "dist/index.cjs"].map((filePath) => ({
2633
+ channelName: "system-one",
2634
+ module: {
2635
+ name: "@typesafe-ai/sdk",
2636
+ versionRange: ">=0.5.0 <1",
2637
+ filePath
2638
+ },
2639
+ functionQuery: {
2640
+ className: "TypeSafeClient",
2641
+ methodName: "systemOne",
2642
+ kind: "Sync"
2643
+ }
2644
+ }));
2645
+ const typesafeModuleNames = require_pi_ai.getModuleNames(typesafeConfig);
2646
+ const typesafeChannels = { TYPESAFE_SYSTEM_ONE: "orchestrion:@typesafe-ai/sdk:system-one" };
2647
+ // src/orchestrion/config/vercel-ai.ts
2648
+ const vercelAiConfig = [
2649
+ ...["dist/index.js", "dist/index.mjs"].map((filePath) => require_registration_only.registrationOnly({
2650
+ name: "ai",
2651
+ versionRange: ">=7.0.0",
2652
+ filePath
2653
+ })),
2654
+ ...vercelAiEntries(">=4.0.0 <7.0.0", "generateText", "generateText", "Async"),
2655
+ ...vercelAiEntries(">=4.0.0 <7.0.0", "streamText", "streamText", "Sync"),
2656
+ ...vercelAiEntries(">=4.0.0 <7.0.0", "streamObject", "streamObject", "Sync"),
2657
+ ...vercelAiEntries(">=4.0.0 <7.0.0", "generateObject", "generateObject", "Async"),
2658
+ ...vercelAiEntries(">=4.0.0 <7.0.0", "embed", "embed", "Async"),
2659
+ ...vercelAiEntries(">=4.0.0 <7.0.0", "embedMany", "embedMany", "Async"),
2660
+ ...vercelAiEntries(">=5.0.0 <7.0.0", "resolveLanguageModel", "resolveLanguageModel", "Sync"),
2661
+ ...vercelAiEntries(">=6.0.0 <7.0.0", "executeToolCall", "executeToolCall", "Async")
2662
+ ];
2663
+ const vercelAiChannels = {
2664
+ VERCEL_AI_GENERATE_TEXT: "orchestrion:ai:generateText",
2665
+ VERCEL_AI_STREAM_TEXT: "orchestrion:ai:streamText",
2666
+ VERCEL_AI_STREAM_OBJECT: "orchestrion:ai:streamObject",
2667
+ VERCEL_AI_GENERATE_OBJECT: "orchestrion:ai:generateObject",
2668
+ VERCEL_AI_EMBED: "orchestrion:ai:embed",
2669
+ VERCEL_AI_EMBED_MANY: "orchestrion:ai:embedMany",
2670
+ VERCEL_AI_EXECUTE_TOOL_CALL: "orchestrion:ai:executeToolCall",
2671
+ VERCEL_AI_RESOLVE_LANGUAGE_MODEL: "orchestrion:ai:resolveLanguageModel"
2672
+ };
2673
+ /**
2674
+ * The central list of channel injections orchestrion should perform.
2675
+ *
2676
+ * This module has NO side effects — it's the only thing both the runtime hook
2677
+ * (`runtime/import-hook.mjs`) and the bundler plugins (`bundler/vite.ts`, …)
2678
+ * import from. Adding a new instrumented method is one entry here plus one
2679
+ * subscriber in `integrations/<lib>/tracing-channel.ts`.
2680
+ *
2681
+ * `channelName` here is the unprefixed suffix; the actual diagnostics_channel
2682
+ * name is `orchestrion:${module.name}:${channelName}` (see `channels.ts`).
2683
+ */
2684
+ /**
2685
+ * `ai` ships a single bundled entry per module system, so each instrumented
2686
+ * function needs one config entry per file (the app loads whichever matches its
2687
+ * module system). This expands a single target into both.
2688
+ */
2689
+ function vercelAiEntries(versionRange, channelName, functionName, kind) {
2690
+ return ["dist/index.js", "dist/index.mjs"].map((filePath) => ({
2691
+ channelName,
2692
+ module: {
2693
+ name: "ai",
2694
+ versionRange,
2695
+ filePath
2696
+ },
2697
+ functionQuery: {
2698
+ functionName,
2699
+ kind
2700
+ }
2701
+ }));
2702
+ }
2703
+ const vercelAiModuleNames = require_pi_ai.getModuleNames(vercelAiConfig);
2704
+ // src/orchestrion/config/index.ts
2705
+ /**
2706
+ * The orchestrion code-transform configs. Every instrumentable library is here
2707
+ * so the transform is all-or-nothing: whenever orchestrion is enabled, all of
2708
+ * these are injected. The channel LISTENERS may live elsewhere (e.g. the NestJS
2709
+ * one lives in `@sentry/nestjs`), but the config that decides what gets
2710
+ * transformed is centralized here.
2711
+ *
2712
+ * This module MUST stay pure, stateless data. It is loaded in more than one realm
2713
+ * at once — the build-time bundler plugin inlines it into the server chunk, while
2714
+ * `@sentry/server-runtime-injection`'s external `register` loads its own copy from
2715
+ * `node_modules` at runtime. Two identical, side-effect-free arrays are harmless;
2716
+ * any module-level mutable state here would silently diverge between those copies.
2717
+ */
2718
+ const SENTRY_INSTRUMENTATIONS = [
2719
+ ...amqplibConfig,
2720
+ ...anthropicAiConfig,
2721
+ ...awsSdkConfig,
2722
+ ...cronConfig,
2723
+ ...dataloaderConfig,
2724
+ ...expressConfig,
2725
+ ...firebaseConfig,
2726
+ ...genericPoolConfig,
2727
+ ...googleGenAiConfig,
2728
+ ...graphqlConfig,
2729
+ ...groqConfig,
2730
+ ...hapiConfig,
2731
+ ...honoConfig,
2732
+ ...ioredisConfig,
2733
+ ...kafkajsConfig,
2734
+ ...knexConfig,
2735
+ ...koaConfig,
2736
+ ...langchainConfig,
2737
+ ...langgraphConfig,
2738
+ ...lruMemoizerConfig,
2739
+ ...flueConfig,
2740
+ ...mastraConfig,
2741
+ ...mcpServerConfig,
2742
+ ...mistralConfig,
2743
+ ...mongodbConfig,
2744
+ ...mongooseConfig,
2745
+ ...mysql2Config,
2746
+ ...mysqlConfig,
2747
+ ...neonConfig,
2748
+ ...nestjsConfig,
2749
+ ...nitroConfig,
2750
+ ...nodeCronConfig,
2751
+ ...nodeScheduleConfig,
2752
+ ...openaiConfig,
2753
+ ...pgConfig,
2754
+ ...require_pi_ai.piAiConfig,
2755
+ ...piDurableConfig,
2756
+ ...postgresJsConfig,
2757
+ ...prismaConfig,
2758
+ ...redisConfig,
2759
+ ...remixConfig,
2760
+ ...remixV3Config,
2761
+ ...tediousConfig,
2762
+ ...togetherAiConfig,
2763
+ ...typesafeConfig,
2764
+ ...vercelAiConfig
2765
+ ];
2766
+ /**
2767
+ * The subset of {@link SENTRY_INSTRUMENTATIONS} the RUNTIME loader
2768
+ * (`@sentry/server-runtime-injection`'s `register`, reached via `--import` or
2769
+ * `Sentry.init()`) can actually apply.
2770
+ *
2771
+ * Registration-only configs (native-channel libraries such as `ai` v7,
2772
+ * `ioredis`, `@redis/client`, `mysql2`, `mongoose`) carry the custom
2773
+ * `MODULE_REGISTRATION_TRANSFORM` operator. That operator is wired into the
2774
+ * BUNDLER plugins only (see `orchestrion/bundler/moduleInjectedTransform.ts`,
2775
+ * applied via `bundler/options.ts`'s `customTransforms`); the runtime loader's
2776
+ * `initialize()` receives no custom transforms. Attempting one of these at
2777
+ * runtime therefore throws `TypeError: transform is not a function`, which the
2778
+ * loader misreports as the always-on "`@sentry/server-runtime-injection` was
2779
+ * bundled ... loads uninstrumented" warning even though nothing is wrong.
2780
+ *
2781
+ * Excluding them at runtime is correct, not just a way to silence the warning:
2782
+ * these libraries publish their own tracing channels, and their integrations
2783
+ * subscribe through `setupOnce()` / `waitForTracingChannelBinding`,
2784
+ * independently of the module-injected snippet. That snippet only fires
2785
+ * `orchestrion.module-injected`, which drives the `setup()` /
2786
+ * `invokeOrchestrionInstrumentation` path; for a native-channel version that
2787
+ * path subscribes to the injected `orchestrion:*` channels the library never
2788
+ * publishes — a no-op. So running these at runtime would add no spans. The
2789
+ * snippet earns its keep only on the BUNDLER path — notably bundler-only SDKs
2790
+ * (e.g. `@sentry/cloudflare`) that discover a loaded module via that event to
2791
+ * instantiate its integration factory. `@sentry/node` registers its
2792
+ * integrations statically, so it does not need it.
2793
+ */
2794
+ const SENTRY_RUNTIME_INSTRUMENTATIONS = SENTRY_INSTRUMENTATIONS.filter((config) => !config.transform);
2795
+ /**
2796
+ * The unique set of package names instrumented by `SENTRY_INSTRUMENTATIONS`
2797
+ * merged with any caller-provided `instrumentations` (e.g. `['mysql']`).
2798
+ *
2799
+ * Bundler plugins MUST ensure these are actually bundled rather than
2800
+ * externalized: an externalized dependency is resolved from `node_modules` at
2801
+ * runtime and never passes through the code transform's `onLoad`, so its
2802
+ * diagnostics_channel calls are silently never injected. This includes a
2803
+ * plugin's custom `instrumentations`, otherwise those extra packages can stay
2804
+ * externalized and their transform never runs.
2805
+ */
2806
+ function instrumentedModuleNames(instrumentations = []) {
2807
+ return [...(0, _sentry_core.uniq)([...SENTRY_INSTRUMENTATIONS, ...instrumentations].map((i) => i.module.name)), "@remix-run/node"];
2808
+ }
2809
+ /** The instrumented module names from the default Sentry config, with no custom additions. */
2810
+ const INSTRUMENTED_MODULE_NAMES = instrumentedModuleNames();
2811
+ /**
2812
+ * The package names the SDK instruments through the orchestrion module transform (its
2813
+ * diagnostics-channel injection). Pass these to a server bundler's "keep external" option so the
2814
+ * packages load through Node's module loader — the only path the transform can hook — instead of
2815
+ * being inlined into the server bundle. A framework that has no Sentry bundler plugin (e.g. eve, via
2816
+ * `build.externalDependencies`) is the main caller; a listed package the app doesn't use is simply
2817
+ * ignored by the bundler.
2818
+ *
2819
+ * Unlike {@link INSTRUMENTED_MODULE_NAMES}, this is the plain instrumented set with no bundler-only
2820
+ * additions — those force a helper package to be *bundled*, the opposite of keeping it external.
2821
+ */
2822
+ function getInstrumentedModuleNames() {
2823
+ return (0, _sentry_core.uniq)(SENTRY_INSTRUMENTATIONS.map((instrumentation) => instrumentation.module.name));
2824
+ }
2825
+ /**
2826
+ * Returns `external` with any instrumented packages removed, so a bundler that
2827
+ * uses an "external" denylist (esbuild, Bun, Rollup) still bundles — and thus
2828
+ * transforms — them. Matches an exact package name (`'mysql'`) or a subpath
2829
+ * (`'mysql/lib/...'`); wildcard/other patterns are left untouched. `undefined`
2830
+ * is returned unchanged.
2831
+ *
2832
+ * Pass `moduleNames` from `instrumentedModuleNames(options.instrumentations)` so
2833
+ * custom instrumentations are stripped too; it defaults to the Sentry config
2834
+ * list. (Vite uses an `ssr.noExternal` allowlist instead, so it consumes
2835
+ * `instrumentedModuleNames` directly rather than this helper.)
2836
+ */
2837
+ function withoutInstrumentedExternals(external, moduleNames = INSTRUMENTED_MODULE_NAMES) {
2838
+ if (!external) return;
2839
+ return external.filter((entry) => !moduleNames.some((name) => entry === name || entry.startsWith(`${name}/`)));
2840
+ }
2841
+ Object.defineProperty(exports, "INSTRUMENTED_MODULE_NAMES", {
2842
+ enumerable: true,
2843
+ get: function() {
2844
+ return INSTRUMENTED_MODULE_NAMES;
2845
+ }
2846
+ });
2847
+ Object.defineProperty(exports, "MONGOOSE_CONTEXT_CAPTURE_CHANNELS", {
2848
+ enumerable: true,
2849
+ get: function() {
2850
+ return MONGOOSE_CONTEXT_CAPTURE_CHANNELS;
2851
+ }
2852
+ });
2853
+ Object.defineProperty(exports, "PRISMA_LAZY_TERMINALS", {
2854
+ enumerable: true,
2855
+ get: function() {
2856
+ return PRISMA_LAZY_TERMINALS;
2857
+ }
2858
+ });
2859
+ Object.defineProperty(exports, "SENTRY_INSTRUMENTATIONS", {
2860
+ enumerable: true,
2861
+ get: function() {
2862
+ return SENTRY_INSTRUMENTATIONS;
2863
+ }
2864
+ });
2865
+ Object.defineProperty(exports, "SENTRY_RUNTIME_INSTRUMENTATIONS", {
2866
+ enumerable: true,
2867
+ get: function() {
2868
+ return SENTRY_RUNTIME_INSTRUMENTATIONS;
2869
+ }
2870
+ });
2871
+ Object.defineProperty(exports, "amqplibChannels", {
2872
+ enumerable: true,
2873
+ get: function() {
2874
+ return amqplibChannels;
2875
+ }
2876
+ });
2877
+ Object.defineProperty(exports, "amqplibModuleNames", {
2878
+ enumerable: true,
2879
+ get: function() {
2880
+ return amqplibModuleNames;
2881
+ }
2882
+ });
2883
+ Object.defineProperty(exports, "anthropicAiChannels", {
2884
+ enumerable: true,
2885
+ get: function() {
2886
+ return anthropicAiChannels;
2887
+ }
2888
+ });
2889
+ Object.defineProperty(exports, "anthropicAiModuleNames", {
2890
+ enumerable: true,
2891
+ get: function() {
2892
+ return anthropicAiModuleNames;
2893
+ }
2894
+ });
2895
+ Object.defineProperty(exports, "awsSdkChannels", {
2896
+ enumerable: true,
2897
+ get: function() {
2898
+ return awsSdkChannels;
2899
+ }
2900
+ });
2901
+ Object.defineProperty(exports, "awsSdkModuleNames", {
2902
+ enumerable: true,
2903
+ get: function() {
2904
+ return awsSdkModuleNames;
2905
+ }
2906
+ });
2907
+ Object.defineProperty(exports, "cronChannels", {
2908
+ enumerable: true,
2909
+ get: function() {
2910
+ return cronChannels;
2911
+ }
2912
+ });
2913
+ Object.defineProperty(exports, "cronModuleNames", {
2914
+ enumerable: true,
2915
+ get: function() {
2916
+ return cronModuleNames;
2917
+ }
2918
+ });
2919
+ Object.defineProperty(exports, "dataloaderChannels", {
2920
+ enumerable: true,
2921
+ get: function() {
2922
+ return dataloaderChannels;
2923
+ }
2924
+ });
2925
+ Object.defineProperty(exports, "expressChannels", {
2926
+ enumerable: true,
2927
+ get: function() {
2928
+ return expressChannels;
2929
+ }
2930
+ });
2931
+ Object.defineProperty(exports, "expressModuleNames", {
2932
+ enumerable: true,
2933
+ get: function() {
2934
+ return expressModuleNames;
2935
+ }
2936
+ });
2937
+ Object.defineProperty(exports, "firebaseChannels", {
2938
+ enumerable: true,
2939
+ get: function() {
2940
+ return firebaseChannels;
2941
+ }
2942
+ });
2943
+ Object.defineProperty(exports, "firebaseModuleNames", {
2944
+ enumerable: true,
2945
+ get: function() {
2946
+ return firebaseModuleNames;
2947
+ }
2948
+ });
2949
+ Object.defineProperty(exports, "genericPoolChannels", {
2950
+ enumerable: true,
2951
+ get: function() {
2952
+ return genericPoolChannels;
2953
+ }
2954
+ });
2955
+ Object.defineProperty(exports, "genericPoolModuleNames", {
2956
+ enumerable: true,
2957
+ get: function() {
2958
+ return genericPoolModuleNames;
2959
+ }
2960
+ });
2961
+ Object.defineProperty(exports, "getInstrumentedModuleNames", {
2962
+ enumerable: true,
2963
+ get: function() {
2964
+ return getInstrumentedModuleNames;
2965
+ }
2966
+ });
2967
+ Object.defineProperty(exports, "googleGenAiChannels", {
2968
+ enumerable: true,
2969
+ get: function() {
2970
+ return googleGenAiChannels;
2971
+ }
2972
+ });
2973
+ Object.defineProperty(exports, "googleGenAiModuleNames", {
2974
+ enumerable: true,
2975
+ get: function() {
2976
+ return googleGenAiModuleNames;
2977
+ }
2978
+ });
2979
+ Object.defineProperty(exports, "graphqlChannels", {
2980
+ enumerable: true,
2981
+ get: function() {
2982
+ return graphqlChannels;
2983
+ }
2984
+ });
2985
+ Object.defineProperty(exports, "graphqlModuleNames", {
2986
+ enumerable: true,
2987
+ get: function() {
2988
+ return graphqlModuleNames;
2989
+ }
2990
+ });
2991
+ Object.defineProperty(exports, "groqChannels", {
2992
+ enumerable: true,
2993
+ get: function() {
2994
+ return groqChannels;
2995
+ }
2996
+ });
2997
+ Object.defineProperty(exports, "groqModuleNames", {
2998
+ enumerable: true,
2999
+ get: function() {
3000
+ return groqModuleNames;
3001
+ }
3002
+ });
3003
+ Object.defineProperty(exports, "hapiChannels", {
3004
+ enumerable: true,
3005
+ get: function() {
3006
+ return hapiChannels;
3007
+ }
3008
+ });
3009
+ Object.defineProperty(exports, "hapiModuleNames", {
3010
+ enumerable: true,
3011
+ get: function() {
3012
+ return hapiModuleNames;
3013
+ }
3014
+ });
3015
+ Object.defineProperty(exports, "honoChannels", {
3016
+ enumerable: true,
3017
+ get: function() {
3018
+ return honoChannels;
3019
+ }
3020
+ });
3021
+ Object.defineProperty(exports, "honoModuleNames", {
3022
+ enumerable: true,
3023
+ get: function() {
3024
+ return honoModuleNames;
3025
+ }
3026
+ });
3027
+ Object.defineProperty(exports, "instrumentedModuleNames", {
3028
+ enumerable: true,
3029
+ get: function() {
3030
+ return instrumentedModuleNames;
3031
+ }
3032
+ });
3033
+ Object.defineProperty(exports, "ioredisChannels", {
3034
+ enumerable: true,
3035
+ get: function() {
3036
+ return ioredisChannels;
3037
+ }
3038
+ });
3039
+ Object.defineProperty(exports, "ioredisModuleNames", {
3040
+ enumerable: true,
3041
+ get: function() {
3042
+ return ioredisModuleNames;
3043
+ }
3044
+ });
3045
+ Object.defineProperty(exports, "kafkajsChannels", {
3046
+ enumerable: true,
3047
+ get: function() {
3048
+ return kafkajsChannels;
3049
+ }
3050
+ });
3051
+ Object.defineProperty(exports, "kafkajsModuleNames", {
3052
+ enumerable: true,
3053
+ get: function() {
3054
+ return kafkajsModuleNames;
3055
+ }
3056
+ });
3057
+ Object.defineProperty(exports, "knexChannels", {
3058
+ enumerable: true,
3059
+ get: function() {
3060
+ return knexChannels;
3061
+ }
3062
+ });
3063
+ Object.defineProperty(exports, "koaChannels", {
3064
+ enumerable: true,
3065
+ get: function() {
3066
+ return koaChannels;
3067
+ }
3068
+ });
3069
+ Object.defineProperty(exports, "koaModuleNames", {
3070
+ enumerable: true,
3071
+ get: function() {
3072
+ return koaModuleNames;
3073
+ }
3074
+ });
3075
+ Object.defineProperty(exports, "langchainChannels", {
3076
+ enumerable: true,
3077
+ get: function() {
3078
+ return langchainChannels;
3079
+ }
3080
+ });
3081
+ Object.defineProperty(exports, "langchainEmbeddingsChannels", {
3082
+ enumerable: true,
3083
+ get: function() {
3084
+ return langchainEmbeddingsChannels;
3085
+ }
3086
+ });
3087
+ Object.defineProperty(exports, "langchainModuleNames", {
3088
+ enumerable: true,
3089
+ get: function() {
3090
+ return langchainModuleNames;
3091
+ }
3092
+ });
3093
+ Object.defineProperty(exports, "langgraphChannels", {
3094
+ enumerable: true,
3095
+ get: function() {
3096
+ return langgraphChannels;
3097
+ }
3098
+ });
3099
+ Object.defineProperty(exports, "langgraphModuleNames", {
3100
+ enumerable: true,
3101
+ get: function() {
3102
+ return langgraphModuleNames;
3103
+ }
3104
+ });
3105
+ Object.defineProperty(exports, "lruMemoizerChannels", {
3106
+ enumerable: true,
3107
+ get: function() {
3108
+ return lruMemoizerChannels;
3109
+ }
3110
+ });
3111
+ Object.defineProperty(exports, "lruMemoizerModuleNames", {
3112
+ enumerable: true,
3113
+ get: function() {
3114
+ return lruMemoizerModuleNames;
3115
+ }
3116
+ });
3117
+ Object.defineProperty(exports, "mastraChannels", {
3118
+ enumerable: true,
3119
+ get: function() {
3120
+ return mastraChannels;
3121
+ }
3122
+ });
3123
+ Object.defineProperty(exports, "mastraModuleNames", {
3124
+ enumerable: true,
3125
+ get: function() {
3126
+ return mastraModuleNames;
3127
+ }
3128
+ });
3129
+ Object.defineProperty(exports, "mcpServerChannels", {
3130
+ enumerable: true,
3131
+ get: function() {
3132
+ return mcpServerChannels;
3133
+ }
3134
+ });
3135
+ Object.defineProperty(exports, "mcpServerModuleNames", {
3136
+ enumerable: true,
3137
+ get: function() {
3138
+ return mcpServerModuleNames;
3139
+ }
3140
+ });
3141
+ Object.defineProperty(exports, "mistralChannels", {
3142
+ enumerable: true,
3143
+ get: function() {
3144
+ return mistralChannels;
3145
+ }
3146
+ });
3147
+ Object.defineProperty(exports, "mistralModuleNames", {
3148
+ enumerable: true,
3149
+ get: function() {
3150
+ return mistralModuleNames;
3151
+ }
3152
+ });
3153
+ Object.defineProperty(exports, "mongodbChannels", {
3154
+ enumerable: true,
3155
+ get: function() {
3156
+ return mongodbChannels;
3157
+ }
3158
+ });
3159
+ Object.defineProperty(exports, "mongodbModuleNames", {
3160
+ enumerable: true,
3161
+ get: function() {
3162
+ return mongodbModuleNames;
3163
+ }
3164
+ });
3165
+ Object.defineProperty(exports, "mongooseChannels", {
3166
+ enumerable: true,
3167
+ get: function() {
3168
+ return mongooseChannels;
3169
+ }
3170
+ });
3171
+ Object.defineProperty(exports, "mongooseModuleNames", {
3172
+ enumerable: true,
3173
+ get: function() {
3174
+ return mongooseModuleNames;
3175
+ }
3176
+ });
3177
+ Object.defineProperty(exports, "mysql2Channels", {
3178
+ enumerable: true,
3179
+ get: function() {
3180
+ return mysql2Channels;
3181
+ }
3182
+ });
3183
+ Object.defineProperty(exports, "mysql2ModuleNames", {
3184
+ enumerable: true,
3185
+ get: function() {
3186
+ return mysql2ModuleNames;
3187
+ }
3188
+ });
3189
+ Object.defineProperty(exports, "mysqlChannels", {
3190
+ enumerable: true,
3191
+ get: function() {
3192
+ return mysqlChannels;
3193
+ }
3194
+ });
3195
+ Object.defineProperty(exports, "mysqlModuleNames", {
3196
+ enumerable: true,
3197
+ get: function() {
3198
+ return mysqlModuleNames;
3199
+ }
3200
+ });
3201
+ Object.defineProperty(exports, "neonChannels", {
3202
+ enumerable: true,
3203
+ get: function() {
3204
+ return neonChannels;
3205
+ }
3206
+ });
3207
+ Object.defineProperty(exports, "neonModuleNames", {
3208
+ enumerable: true,
3209
+ get: function() {
3210
+ return neonModuleNames;
3211
+ }
3212
+ });
3213
+ Object.defineProperty(exports, "nestjsChannels", {
3214
+ enumerable: true,
3215
+ get: function() {
3216
+ return nestjsChannels;
3217
+ }
3218
+ });
3219
+ Object.defineProperty(exports, "nodeCronChannels", {
3220
+ enumerable: true,
3221
+ get: function() {
3222
+ return nodeCronChannels;
3223
+ }
3224
+ });
3225
+ Object.defineProperty(exports, "nodeCronModuleNames", {
3226
+ enumerable: true,
3227
+ get: function() {
3228
+ return nodeCronModuleNames;
3229
+ }
3230
+ });
3231
+ Object.defineProperty(exports, "nodeScheduleChannels", {
3232
+ enumerable: true,
3233
+ get: function() {
3234
+ return nodeScheduleChannels;
3235
+ }
3236
+ });
3237
+ Object.defineProperty(exports, "nodeScheduleModuleNames", {
3238
+ enumerable: true,
3239
+ get: function() {
3240
+ return nodeScheduleModuleNames;
3241
+ }
3242
+ });
3243
+ Object.defineProperty(exports, "openaiChannels", {
3244
+ enumerable: true,
3245
+ get: function() {
3246
+ return openaiChannels;
3247
+ }
3248
+ });
3249
+ Object.defineProperty(exports, "openaiModuleNames", {
3250
+ enumerable: true,
3251
+ get: function() {
3252
+ return openaiModuleNames;
3253
+ }
3254
+ });
3255
+ Object.defineProperty(exports, "pgChannels", {
3256
+ enumerable: true,
3257
+ get: function() {
3258
+ return pgChannels;
3259
+ }
3260
+ });
3261
+ Object.defineProperty(exports, "pgModuleNames", {
3262
+ enumerable: true,
3263
+ get: function() {
3264
+ return pgModuleNames;
3265
+ }
3266
+ });
3267
+ Object.defineProperty(exports, "piDurableChannels", {
3268
+ enumerable: true,
3269
+ get: function() {
3270
+ return piDurableChannels;
3271
+ }
3272
+ });
3273
+ Object.defineProperty(exports, "piDurableModuleNames", {
3274
+ enumerable: true,
3275
+ get: function() {
3276
+ return piDurableModuleNames;
3277
+ }
3278
+ });
3279
+ Object.defineProperty(exports, "postgresJsChannels", {
3280
+ enumerable: true,
3281
+ get: function() {
3282
+ return postgresJsChannels;
3283
+ }
3284
+ });
3285
+ Object.defineProperty(exports, "postgresJsModuleNames", {
3286
+ enumerable: true,
3287
+ get: function() {
3288
+ return postgresJsModuleNames;
3289
+ }
3290
+ });
3291
+ Object.defineProperty(exports, "prismaChannels", {
3292
+ enumerable: true,
3293
+ get: function() {
3294
+ return prismaChannels;
3295
+ }
3296
+ });
3297
+ Object.defineProperty(exports, "prismaModuleNames", {
3298
+ enumerable: true,
3299
+ get: function() {
3300
+ return prismaModuleNames;
3301
+ }
3302
+ });
3303
+ Object.defineProperty(exports, "redisChannels", {
3304
+ enumerable: true,
3305
+ get: function() {
3306
+ return redisChannels;
3307
+ }
3308
+ });
3309
+ Object.defineProperty(exports, "redisModuleNames", {
3310
+ enumerable: true,
3311
+ get: function() {
3312
+ return redisModuleNames;
3313
+ }
3314
+ });
3315
+ Object.defineProperty(exports, "remixChannels", {
3316
+ enumerable: true,
3317
+ get: function() {
3318
+ return remixChannels;
3319
+ }
3320
+ });
3321
+ Object.defineProperty(exports, "remixV3Channels", {
3322
+ enumerable: true,
3323
+ get: function() {
3324
+ return remixV3Channels;
3325
+ }
3326
+ });
3327
+ Object.defineProperty(exports, "remixV3Config", {
3328
+ enumerable: true,
3329
+ get: function() {
3330
+ return remixV3Config;
3331
+ }
3332
+ });
3333
+ Object.defineProperty(exports, "tediousChannels", {
3334
+ enumerable: true,
3335
+ get: function() {
3336
+ return tediousChannels;
3337
+ }
3338
+ });
3339
+ Object.defineProperty(exports, "tediousModuleNames", {
3340
+ enumerable: true,
3341
+ get: function() {
3342
+ return tediousModuleNames;
3343
+ }
3344
+ });
3345
+ Object.defineProperty(exports, "togetherAiChannels", {
3346
+ enumerable: true,
3347
+ get: function() {
3348
+ return togetherAiChannels;
3349
+ }
3350
+ });
3351
+ Object.defineProperty(exports, "togetherAiModuleNames", {
3352
+ enumerable: true,
3353
+ get: function() {
3354
+ return togetherAiModuleNames;
3355
+ }
3356
+ });
3357
+ Object.defineProperty(exports, "typesafeChannels", {
3358
+ enumerable: true,
3359
+ get: function() {
3360
+ return typesafeChannels;
3361
+ }
3362
+ });
3363
+ Object.defineProperty(exports, "typesafeModuleNames", {
3364
+ enumerable: true,
3365
+ get: function() {
3366
+ return typesafeModuleNames;
3367
+ }
3368
+ });
3369
+ Object.defineProperty(exports, "vercelAiChannels", {
3370
+ enumerable: true,
3371
+ get: function() {
3372
+ return vercelAiChannels;
3373
+ }
3374
+ });
3375
+ Object.defineProperty(exports, "vercelAiModuleNames", {
3376
+ enumerable: true,
3377
+ get: function() {
3378
+ return vercelAiModuleNames;
3379
+ }
3380
+ });
3381
+ Object.defineProperty(exports, "withoutInstrumentedExternals", {
3382
+ enumerable: true,
3383
+ get: function() {
3384
+ return withoutInstrumentedExternals;
3385
+ }
3386
+ });
3387
+
3388
+ //# sourceMappingURL=config.js.map