alchemylab-opencode 2.0.1 → 2.0.4

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 (232) hide show
  1. package/NODE_COMPAT.md +8 -1
  2. package/dist/20260127222353_familiar_lady_ursula-YYOFSQD5.js +18 -0
  3. package/dist/20260211171708_add_project_commands-3GKQTPBZ.js +18 -0
  4. package/dist/20260213144116_wakeful_the_professor-ROO7OAVL.js +18 -0
  5. package/dist/20260225215848_workspace-V2OZTNFF.js +18 -0
  6. package/dist/20260227213759_add_session_workspace_id-GVDWAXKM.js +18 -0
  7. package/dist/20260228203230_blue_harpoon-Z5QP2II5.js +18 -0
  8. package/dist/20260303231226_add_workspace_fields-QOVAFN7W.js +18 -0
  9. package/dist/20260309230000_move_org_to_state-RQURSDZD.js +18 -0
  10. package/dist/20260312043431_session_message_cursor-VBISKDXL.js +18 -0
  11. package/dist/20260323234822_events-PILJHLNA.js +18 -0
  12. package/dist/20260410174513_workspace-name-63YCZ5NS.js +18 -0
  13. package/dist/20260413175956_chief_energizer-NMAZYGDO.js +18 -0
  14. package/dist/20260423070820_add_icon_url_override-RAJCVNEP.js +18 -0
  15. package/dist/20260427172553_slow_nightmare-ULYYZLR4.js +18 -0
  16. package/dist/20260428004200_add_session_path-U4WO2TGE.js +18 -0
  17. package/dist/20260501142318_next_venus-6BCYATSC.js +18 -0
  18. package/dist/20260504145000_add_sync_owner-RGVHV6LN.js +18 -0
  19. package/dist/20260507164347_add_workspace_time-GE6UHNPM.js +18 -0
  20. package/dist/{20260510033149_session_usage-UGBVOXZB.js → 20260510033149_session_usage-7XHCFVKY.js} +5 -1
  21. package/dist/20260511000411_data_migration_state-2EGZKFLB.js +18 -0
  22. package/dist/20260511173437_session-metadata-K322YY33.js +18 -0
  23. package/dist/20260601010001_normalize_storage_paths-VZDTY366.js +18 -0
  24. package/dist/{20260225215848_workspace-ZMSOZSPA.js → 20260601202201_amazing_prowler-YT6PLK3L.js} +5 -1
  25. package/dist/{20260228203230_blue_harpoon-IW3Z4TQZ.js → 20260602002951_lowly_union_jack-6VLQTBVB.js} +5 -1
  26. package/dist/20260602182828_add_project_directories-TVSRD25A.js +18 -0
  27. package/dist/20260603001617_session_message_projection_indexes-PHKTF6HK.js +18 -0
  28. package/dist/{20260622170816_reset_v2_session_state-5JPHJTZG.js → 20260603040000_session_message_projection_order-7RTV2POG.js} +5 -1
  29. package/dist/20260603141458_session_input_inbox-RSBWABG7.js +18 -0
  30. package/dist/20260603160727_jittery_ezekiel_stane-DXBLLRVV.js +18 -0
  31. package/dist/20260604172448_event_sourced_session_input-H6Z3JEBD.js +18 -0
  32. package/dist/20260605003541_add_session_context_snapshot-6FDPM2TK.js +18 -0
  33. package/dist/20260605042240_add_context_epoch_agent-C2OF2UKR.js +18 -0
  34. package/dist/20260611035744_credential-YNZ47FSH.js +18 -0
  35. package/dist/20260611192811_lush_chimera-E357VI6P.js +18 -0
  36. package/dist/20260612174303_project_dir_strategy-VUGGK42O.js +18 -0
  37. package/dist/20260622142730_simplify_session_context_epoch-UYGXZ5BX.js +18 -0
  38. package/dist/20260622170816_reset_v2_session_state-EILLPCJQ.js +18 -0
  39. package/dist/20260622202450_simplify_session_input-Y65GDGBO.js +18 -0
  40. package/dist/NodeSdk-AGMQWBHH.js +18 -0
  41. package/dist/anthropic-45OFTLAW.js +18 -0
  42. package/dist/anthropic-FVULF7C3.js +18 -0
  43. package/dist/app-runtime-LDQWNGWP.js +18 -0
  44. package/dist/chunk-2JE3QYG6.js +18 -0
  45. package/dist/chunk-2MRHL4B2.js +18 -0
  46. package/dist/chunk-4GJE6OMN.js +190 -0
  47. package/dist/chunk-4MBUHJHY.js +22 -0
  48. package/dist/chunk-5BLZCAU6.js +55 -0
  49. package/dist/chunk-7XX6TY62.js +259 -0
  50. package/dist/chunk-ANF3QA3Z.js +48 -0
  51. package/dist/chunk-AZUMH3TO.js +18 -0
  52. package/dist/chunk-B74WSFN4.js +878 -0
  53. package/dist/chunk-BQ4IEPN3.js +19 -0
  54. package/dist/chunk-CYRZU5QM.js +33 -0
  55. package/dist/chunk-DADVNQTM.js +1490 -0
  56. package/dist/chunk-DO2UZ6NY.js +18 -0
  57. package/dist/chunk-DWEYXIQI.js +780 -0
  58. package/dist/chunk-EK6FQQHY.js +20 -0
  59. package/dist/chunk-ELPXQ32J.js +90 -0
  60. package/dist/chunk-FGLPSSRK.js +19 -0
  61. package/dist/chunk-FOHYZ7MJ.js +55 -0
  62. package/dist/chunk-FV7U6PVP.js +18 -0
  63. package/dist/chunk-FYYAOZPU.js +18 -0
  64. package/dist/chunk-G7PFO5HG.js +920 -0
  65. package/dist/chunk-GDWO6EXN.js +22 -0
  66. package/dist/chunk-GW3ZRKAI.js +20 -0
  67. package/dist/chunk-IYUSBBGY.js +35 -0
  68. package/dist/chunk-JPOFLMNH.js +18 -0
  69. package/dist/{chunk-VURLSDCB.js → chunk-K5LKDIVU.js} +4 -0
  70. package/dist/chunk-KS4WLVK5.js +19 -0
  71. package/dist/chunk-LIXP4TPL.js +18 -0
  72. package/dist/chunk-LSC4RT5V.js +36 -0
  73. package/dist/chunk-M5A6NFHQ.js +28 -0
  74. package/dist/chunk-M6E6KNLV.js +30 -0
  75. package/dist/chunk-MLFZXUGQ.js +18 -0
  76. package/dist/chunk-NDI67DRG.js +31 -0
  77. package/dist/chunk-NGT6LCW6.js +18 -0
  78. package/dist/chunk-OCWGUTZJ.js +36 -0
  79. package/dist/chunk-OGDRUXMJ.js +18 -0
  80. package/dist/chunk-OGJKLJC7.js +29 -0
  81. package/dist/chunk-OT2YNR56.js +19 -0
  82. package/dist/chunk-OUVSKG2H.js +19 -0
  83. package/dist/chunk-P5RLCJUV.js +18 -0
  84. package/dist/chunk-Q3WIUQXB.js +18 -0
  85. package/dist/{20260227213759_add_session_workspace_id-ROENWPKA.js → chunk-QCRIXKIC.js} +5 -1
  86. package/dist/chunk-QD24DLUD.js +18 -0
  87. package/dist/chunk-R2GWBJEP.js +18 -0
  88. package/dist/chunk-RPAXSOGH.js +18 -0
  89. package/dist/chunk-TK5R7QUN.js +18 -0
  90. package/dist/chunk-TNQWZFIZ.js +28 -0
  91. package/dist/chunk-UCLPBO4I.js +18 -0
  92. package/dist/chunk-UPEPL4I2.js +18 -0
  93. package/dist/chunk-V6FDDNGV.js +117 -0
  94. package/dist/chunk-V6HERYFV.js +18 -0
  95. package/dist/chunk-V7XKKJ7X.js +24 -0
  96. package/dist/chunk-VHDYUBBS.js +23 -0
  97. package/dist/chunk-VWLJXTZ5.js +18 -0
  98. package/dist/chunk-VXAPFOIL.js +22 -0
  99. package/dist/chunk-WKZYINC7.js +29 -0
  100. package/dist/chunk-WPMP2ZFE.js +40 -0
  101. package/dist/chunk-WRTNIOI3.js +18 -0
  102. package/dist/chunk-X5F46HR5.js +18 -0
  103. package/dist/chunk-XPS7TQZG.js +22 -0
  104. package/dist/chunk-YJPP6IQ3.js +23 -0
  105. package/dist/chunk-ZYQWFC55.js +22 -0
  106. package/dist/code-mode-YYOGD36U.js +502 -0
  107. package/dist/copilot-provider-QVMLQZZC.js +18 -0
  108. package/dist/dist-5NQOHNPL.js +18 -0
  109. package/dist/dist-7CT3XCNN.js +32 -0
  110. package/dist/dist-CL46WFZG.js +18 -0
  111. package/dist/{20260605042240_add_context_epoch_agent-W6IQYZXE.js → dist-CYBRID2F.js} +5 -1
  112. package/dist/dist-HXJTF22W.js +32 -0
  113. package/dist/dist-JFXI53ZF.js +22 -0
  114. package/dist/dist-KBYKWVT5.js +22 -0
  115. package/dist/dist-KM5HCPZX.js +35 -0
  116. package/dist/dist-KTNLTEHB.js +18 -0
  117. package/dist/dist-KZ5R5QM5.js +24 -0
  118. package/dist/dist-NLXUYBW7.js +32 -0
  119. package/dist/dist-O4DF72J2.js +22 -0
  120. package/dist/dist-PH4MEGVR.js +22 -0
  121. package/dist/{20260511000411_data_migration_state-FB4LBFSE.js → dist-QJPOJCLB.js} +5 -1
  122. package/dist/dist-QYH62TCJ.js +22 -0
  123. package/dist/{20260303231226_add_workspace_fields-OUVZMNAG.js → dist-RIC4WKHC.js} +5 -1
  124. package/dist/dist-T776XKTM.js +22 -0
  125. package/dist/dist-TCE5MKZQ.js +23 -0
  126. package/dist/dist-TH2Q44RX.js +50 -0
  127. package/dist/dist-VV5FV5RT.js +101 -0
  128. package/dist/dist-XAFENVUS.js +22 -0
  129. package/dist/dist-XPFB35TX.js +32 -0
  130. package/dist/dist-YUH4RKR5.js +28 -0
  131. package/dist/dist-es-43ZM44MP.js +18 -0
  132. package/dist/dist-es-6PLFRCS4.js +18 -0
  133. package/dist/dist-es-G5UIJOU7.js +26 -0
  134. package/dist/{20260428004200_add_session_path-LGW75WYA.js → dist-es-HYIIGUNX.js} +5 -1
  135. package/dist/dist-es-L2GU465G.js +18 -0
  136. package/dist/dist-es-LSR2QCFZ.js +18 -0
  137. package/dist/dist-es-RGEIM2BP.js +18 -0
  138. package/dist/dist-es-SITTNOGV.js +18 -0
  139. package/dist/dist-es-W5GYOX6F.js +18 -0
  140. package/dist/esm-NN5W7YCL.js +18 -0
  141. package/dist/esm-XWJSHYHG.js +18 -0
  142. package/dist/getMachineId-bsd-L5I5TZ5I.js +18 -0
  143. package/dist/getMachineId-darwin-YB7KG37W.js +19 -0
  144. package/dist/getMachineId-linux-EL47KXX7.js +18 -0
  145. package/dist/getMachineId-unsupported-QOWPEBPN.js +18 -0
  146. package/dist/getMachineId-win-HCRYRDFJ.js +18 -0
  147. package/dist/lib-ZP7Q6A3E.js +199 -0
  148. package/dist/loadCognitoIdentity-EWT55EI7.js +18 -0
  149. package/dist/loadSso-AGOUE6RL.js +18 -0
  150. package/dist/{20260213144116_wakeful_the_professor-ZVDD54AK.js → loadSts-RH5L3PIX.js} +5 -1
  151. package/dist/mantle-IJXDXT4M.js +25 -0
  152. package/dist/mime-types-46EO4HOZ.js +18 -0
  153. package/dist/multipart-parser-KZWMKXA4.js +19 -0
  154. package/dist/{20260211171708_add_project_commands-GDOHPDPF.js → open-7KXTRM37.js} +5 -1
  155. package/dist/openai-ZOJI6I5R.js +18 -0
  156. package/dist/p-map-CYL6ILJW.js +18 -0
  157. package/dist/photon-W56QZY4L.js +18 -0
  158. package/dist/{20260423070820_add_icon_url_override-X5SHFGTI.js → pkce-VT4ITJTB.js} +5 -1
  159. package/dist/{pty.node-Y3N2XKYG.js → pty.node-IWULXXG6.js} +5 -1
  160. package/dist/run.js +5 -1
  161. package/dist/serve.js +143 -1
  162. package/dist/server-LVIHYOCY.js +21 -0
  163. package/dist/session-6OPJNJMK.js +18 -0
  164. package/dist/signin-OCIW23YM.js +18 -0
  165. package/dist/src-3NCXEROI.js +18 -0
  166. package/dist/src-LXWGIUZH.js +18 -0
  167. package/dist/src-WDYKISPD.js +20 -0
  168. package/dist/src-YAAFIGTW.js +18 -0
  169. package/dist/sso-oidc-OMMKINFE.js +18 -0
  170. package/dist/sts-MWK22JIX.js +18 -0
  171. package/dist/token-QPO3OAGS.js +18 -0
  172. package/dist/token-util-YGPCEEPO.js +18 -0
  173. package/dist/unified-W3ZKZ4HG.js +18 -0
  174. package/dist/worktree-32M5MTFE.js +18 -0
  175. package/package.json +40 -40
  176. package/postinstall.cjs +4 -2
  177. package/dist/20260127222353_familiar_lady_ursula-KV747FJX.js +0 -14
  178. package/dist/20260309230000_move_org_to_state-NOXAPU5V.js +0 -14
  179. package/dist/20260312043431_session_message_cursor-DJ4T3T4R.js +0 -14
  180. package/dist/20260323234822_events-72GIKJ2A.js +0 -14
  181. package/dist/20260410174513_workspace-name-JXSWFBJN.js +0 -14
  182. package/dist/20260413175956_chief_energizer-4HEWZ6U3.js +0 -14
  183. package/dist/20260427172553_slow_nightmare-PS5T2AH2.js +0 -14
  184. package/dist/20260501142318_next_venus-J3TLVXZ6.js +0 -14
  185. package/dist/20260504145000_add_sync_owner-3R52GB4C.js +0 -14
  186. package/dist/20260507164347_add_workspace_time-JHDRCZAR.js +0 -14
  187. package/dist/20260511173437_session-metadata-T2XHGWHS.js +0 -14
  188. package/dist/20260601010001_normalize_storage_paths-5MAY5GT3.js +0 -14
  189. package/dist/20260601202201_amazing_prowler-PET224YG.js +0 -14
  190. package/dist/20260602002951_lowly_union_jack-PG6XDMGL.js +0 -14
  191. package/dist/20260602182828_add_project_directories-ZCH2ACGG.js +0 -14
  192. package/dist/20260603001617_session_message_projection_indexes-XVLJTUF2.js +0 -14
  193. package/dist/20260603040000_session_message_projection_order-XG6RACZQ.js +0 -14
  194. package/dist/20260603141458_session_input_inbox-K2VQ7V6E.js +0 -14
  195. package/dist/20260603160727_jittery_ezekiel_stane-WKJLRDO7.js +0 -14
  196. package/dist/20260604172448_event_sourced_session_input-NTXOECR7.js +0 -14
  197. package/dist/20260605003541_add_session_context_snapshot-DXMQEXMT.js +0 -14
  198. package/dist/20260611035744_credential-XTMSYTJD.js +0 -14
  199. package/dist/20260611192811_lush_chimera-XPLIQMJD.js +0 -14
  200. package/dist/20260612174303_project_dir_strategy-FR2NGQKK.js +0 -14
  201. package/dist/20260622142730_simplify_session_context_epoch-NTQZR3RE.js +0 -14
  202. package/dist/20260622202450_simplify_session_input-2EXF2HMV.js +0 -14
  203. package/dist/app-runtime-HQBOCDV5.js +0 -14
  204. package/dist/chunk-4FEBIOI5.js +0 -865
  205. package/dist/chunk-4K2RXRZL.js +0 -14
  206. package/dist/chunk-4RFMKEKM.js +0 -1455
  207. package/dist/chunk-BM2C7NHL.js +0 -41
  208. package/dist/chunk-MKEMZFJI.js +0 -393
  209. package/dist/chunk-OMDJ6ZZ2.js +0 -684
  210. package/dist/chunk-OWMG4NNF.js +0 -186
  211. package/dist/chunk-QRABYJKL.js +0 -14
  212. package/dist/chunk-RHIWAYN5.js +0 -14
  213. package/dist/chunk-Z5TLIUAI.js +0 -28
  214. package/dist/code-mode-7BQJUARW.js +0 -40
  215. package/dist/copilot-provider-TX4YFKJZ.js +0 -14
  216. package/dist/photon-VQS5F5BI.js +0 -14
  217. package/dist/server-BFUQR7MX.js +0 -17
  218. package/dist/session-6RNXZNG6.js +0 -14
  219. package/dist/worktree-QHQHX3SG.js +0 -14
  220. package/patches/@ai-sdk%2Famazon-bedrock@4.0.166.patch +0 -164
  221. package/patches/@ai-sdk%2Fanthropic@3.0.111.patch +0 -528
  222. package/patches/@ai-sdk%2Fgoogle@3.0.73.patch +0 -69
  223. package/patches/@ai-sdk%2Fgroq@3.0.31.patch +0 -79
  224. package/patches/@ai-sdk%2Fmistral@3.0.51.patch +0 -714
  225. package/patches/@ai-sdk%2Fopenai-compatible@2.0.41.patch +0 -39
  226. package/patches/@ai-sdk%2Fopenai@3.0.88.patch +0 -280
  227. package/patches/@ai-sdk%2Fxai@3.0.139.patch +0 -296
  228. package/patches/@modelcontextprotocol%2Fsdk@1.29.0.patch +0 -647
  229. package/patches/@npmcli%2Fagent@4.0.2.patch +0 -13
  230. package/patches/effect@4.0.0-beta.83.patch +0 -57
  231. package/patches/gcp-metadata@8.1.2.patch +0 -14
  232. package/patches/pacote@21.5.0.patch +0 -18
@@ -0,0 +1,18 @@
1
+ // Built by esbuild from opencode-server source
2
+ if (typeof globalThis.Bun === 'undefined') {
3
+ globalThis.Bun = {
4
+ version: '0.0.0-node-compat',
5
+ stdin: { async text() { const chunks = []; for await (const c of process.stdin) chunks.push(c); return Buffer.concat(chunks).toString(); } },
6
+ which(cmd) { try { return require('child_process').execFileSync('which', [cmd], { encoding: 'utf8' }).trim(); } catch { return null; } },
7
+ };
8
+ }
9
+ if (typeof globalThis.__name === 'undefined') { globalThis.__name = (t, n) => { Object.defineProperty(t, 'name', { value: n, configurable: true }); return t; }; }
10
+ if (typeof globalThis.__export === 'undefined') { globalThis.__export = (t, a) => { for (const k in a) Object.defineProperty(t, k, { get: a[k], enumerable: true }); }; }
11
+ import { createRequire as __alchemyCreateRequire } from 'node:module';
12
+ const require = __alchemyCreateRequire(import.meta.url);
13
+ import { fileURLToPath as __alchemyFileURLToPath } from 'node:url';
14
+ import { dirname as __alchemyDirname } from 'node:path';
15
+ const __alchemy_filename = __alchemyFileURLToPath(import.meta.url);
16
+ const __alchemy_dirname = __alchemyDirname(__alchemy_filename);
17
+
18
+ import{o as he,y as re,z as H}from"./chunk-DO2UZ6NY.js";import{a as y}from"./chunk-AZUMH3TO.js";import{a as r,b as F,d as u,g as _e,h as te}from"./chunk-2MRHL4B2.js";var Ee=u(N=>{"use strict";Object.defineProperty(N,"__esModule",{value:!0});N.OTLPExporterBase=void 0;var ne=class{static{r(this,"OTLPExporterBase")}_delegate;constructor(t){this._delegate=t}export(t,n){this._delegate.export(t,n)}forceFlush(){return this._delegate.forceFlush()}shutdown(){return this._delegate.shutdown()}};N.OTLPExporterBase=ne});var M=u(I=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});I.OTLPExporterError=void 0;var oe=class extends Error{static{r(this,"OTLPExporterError")}code;name="OTLPExporterError";data;constructor(t,n,o){super(t),this.data=o,this.code=n}};I.OTLPExporterError=oe});var C=u(f=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0});f.getSharedConfigurationDefaults=f.mergeOtlpSharedConfigurationWithDefaults=f.wrapStaticHeadersInFunction=f.validateTimeoutMillis=void 0;function Oe(e){if(Number.isFinite(e)&&e>0)return e;throw new Error(`Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '${e}')`)}r(Oe,"validateTimeoutMillis");f.validateTimeoutMillis=Oe;function rt(e){if(e!=null)return async()=>e}r(rt,"wrapStaticHeadersInFunction");f.wrapStaticHeadersInFunction=rt;function nt(e,t,n){return{timeoutMillis:Oe(e.timeoutMillis??t.timeoutMillis??n.timeoutMillis),concurrencyLimit:e.concurrencyLimit??t.concurrencyLimit??n.concurrencyLimit,compression:e.compression??t.compression??n.compression}}r(nt,"mergeOtlpSharedConfigurationWithDefaults");f.mergeOtlpSharedConfigurationWithDefaults=nt;function ot(){return{timeoutMillis:1e4,concurrencyLimit:30,compression:"none"}}r(ot,"getSharedConfigurationDefaults");f.getSharedConfigurationDefaults=ot});var ye=u(L=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});L.CompressionAlgorithm=void 0;var it;(function(e){e.NONE="none",e.GZIP="gzip"})(it=L.CompressionAlgorithm||(L.CompressionAlgorithm={}))});var se=u(D=>{"use strict";Object.defineProperty(D,"__esModule",{value:!0});D.createBoundedQueueExportPromiseHandler=void 0;var ie=class{static{r(this,"BoundedQueueExportPromiseHandler")}_concurrencyLimit;_sendingPromises=[];constructor(t){this._concurrencyLimit=t}pushPromise(t){if(this.hasReachedLimit())throw new Error("Concurrency Limit reached");this._sendingPromises.push(t);let n=r(()=>{let o=this._sendingPromises.indexOf(t);this._sendingPromises.splice(o,1)},"popPromise");t.then(n,n)}hasReachedLimit(){return this._sendingPromises.length>=this._concurrencyLimit}async awaitAll(){await Promise.all(this._sendingPromises)}};function st(e){return new ie(e.concurrencyLimit)}r(st,"createBoundedQueueExportPromiseHandler");D.createBoundedQueueExportPromiseHandler=st});var Te=u(q=>{"use strict";Object.defineProperty(q,"__esModule",{value:!0});q.createLoggingPartialSuccessResponseHandler=void 0;var at=y();function ut(e){return Object.prototype.hasOwnProperty.call(e,"partialSuccess")}r(ut,"isPartialSuccessResponse");function ct(){return{handleResponse(e){e==null||!ut(e)||e.partialSuccess==null||Object.keys(e.partialSuccess).length===0||at.diag.warn("Received Partial Success response:",JSON.stringify(e.partialSuccess))}}}r(ct,"createLoggingPartialSuccessResponseHandler");q.createLoggingPartialSuccessResponseHandler=ct});var ue=u(U=>{"use strict";Object.defineProperty(U,"__esModule",{value:!0});U.createOtlpExportDelegate=void 0;var T=(H(),te(re)),Se=M(),pt=Te(),dt=y(),ae=class{static{r(this,"OTLPExportDelegate")}_diagLogger;_transport;_serializer;_responseHandler;_promiseQueue;_timeout;constructor(t,n,o,i,s){this._transport=t,this._serializer=n,this._responseHandler=o,this._promiseQueue=i,this._timeout=s,this._diagLogger=dt.diag.createComponentLogger({namespace:"OTLPExportDelegate"})}export(t,n){if(this._diagLogger.debug("items to be sent",t),this._promiseQueue.hasReachedLimit()){n({code:T.ExportResultCode.FAILED,error:new Error("Concurrent export limit reached")});return}let o=this._serializer.serializeRequest(t);if(o==null){n({code:T.ExportResultCode.FAILED,error:new Error("Nothing to send")});return}this._promiseQueue.pushPromise(this._transport.send(o,this._timeout).then(i=>{if(i.status==="success"){if(i.data!=null)try{this._responseHandler.handleResponse(this._serializer.deserializeResponse(i.data))}catch(s){this._diagLogger.warn("Export succeeded but could not deserialize response - is the response specification compliant?",s,i.data)}n({code:T.ExportResultCode.SUCCESS});return}else if(i.status==="failure"&&i.error){n({code:T.ExportResultCode.FAILED,error:i.error});return}else i.status==="retryable"?n({code:T.ExportResultCode.FAILED,error:i.error??new Se.OTLPExporterError("Export failed with retryable status")}):n({code:T.ExportResultCode.FAILED,error:new Se.OTLPExporterError("Export failed with unknown error")})},i=>n({code:T.ExportResultCode.FAILED,error:i})))}forceFlush(){return this._promiseQueue.awaitAll()}async shutdown(){this._diagLogger.debug("shutdown started"),await this.forceFlush(),this._transport.shutdown()}};function lt(e,t){return new ae(e.transport,e.serializer,(0,pt.createLoggingPartialSuccessResponseHandler)(),e.promiseHandler,t.timeout)}r(lt,"createOtlpExportDelegate");U.createOtlpExportDelegate=lt});var xe=u(j=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0});j.createOtlpNetworkExportDelegate=void 0;var ft=se(),gt=ue();function mt(e,t,n){return(0,gt.createOtlpExportDelegate)({transport:n,serializer:t,promiseHandler:(0,ft.createBoundedQueueExportPromiseHandler)(e)},{timeout:e.timeoutMillis})}r(mt,"createOtlpNetworkExportDelegate");j.createOtlpNetworkExportDelegate=mt});var Pe=u(p=>{"use strict";Object.defineProperty(p,"__esModule",{value:!0});p.createOtlpNetworkExportDelegate=p.CompressionAlgorithm=p.getSharedConfigurationDefaults=p.mergeOtlpSharedConfigurationWithDefaults=p.OTLPExporterError=p.OTLPExporterBase=void 0;var _t=Ee();Object.defineProperty(p,"OTLPExporterBase",{enumerable:!0,get:r(function(){return _t.OTLPExporterBase},"get")});var ht=M();Object.defineProperty(p,"OTLPExporterError",{enumerable:!0,get:r(function(){return ht.OTLPExporterError},"get")});var Re=C();Object.defineProperty(p,"mergeOtlpSharedConfigurationWithDefaults",{enumerable:!0,get:r(function(){return Re.mergeOtlpSharedConfigurationWithDefaults},"get")});Object.defineProperty(p,"getSharedConfigurationDefaults",{enumerable:!0,get:r(function(){return Re.getSharedConfigurationDefaults},"get")});var Et=ye();Object.defineProperty(p,"CompressionAlgorithm",{enumerable:!0,get:r(function(){return Et.CompressionAlgorithm},"get")});var Ot=xe();Object.defineProperty(p,"createOtlpNetworkExportDelegate",{enumerable:!0,get:r(function(){return Ot.createOtlpNetworkExportDelegate},"get")})});var Fe=u(B=>{"use strict";Object.defineProperty(B,"__esModule",{value:!0});B.validateAndNormalizeHeaders=void 0;var wt=y();function Ft(e){let t={};return Object.entries(e??{}).forEach(([n,o])=>{typeof o<"u"?t[n]=String(o):wt.diag.warn(`Header "${n}" has invalid value (${o}) and will be ignored`)}),t}r(Ft,"validateAndNormalizeHeaders");B.validateAndNormalizeHeaders=Ft});var Ne=u(x=>{"use strict";Object.defineProperty(x,"__esModule",{value:!0});x.getHttpConfigurationDefaults=x.mergeOtlpHttpConfigurationWithDefaults=void 0;var He=C(),Ht=Fe();function Nt(e,t,n){return async()=>{let o={...await n()},i={};return t!=null&&Object.assign(i,await t()),e!=null&&Object.assign(i,(0,Ht.validateAndNormalizeHeaders)(await e())),Object.assign(i,o)}}r(Nt,"mergeHeaders");function It(e){if(e!=null)try{let t=globalThis.location?.href;return new URL(e,t).href}catch{throw new Error(`Configuration: Could not parse user-provided export URL: '${e}'`)}}r(It,"validateUserProvidedUrl");function Mt(e,t,n){return{...(0,He.mergeOtlpSharedConfigurationWithDefaults)(e,t,n),headers:Nt(e.headers,t.headers,n.headers),url:It(e.url)??t.url??n.url}}r(Mt,"mergeOtlpHttpConfigurationWithDefaults");x.mergeOtlpHttpConfigurationWithDefaults=Mt;function Dt(e,t){return{...(0,He.getSharedConfigurationDefaults)(),headers:r(async()=>e,"headers"),url:"http://localhost:4318/"+t}}r(Dt,"getHttpConfigurationDefaults");x.getHttpConfigurationDefaults=Dt});var $=u(E=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0});E.getNodeHttpConfigurationDefaults=E.mergeOtlpNodeHttpConfigurationWithDefaults=E.httpAgentFactoryFromOptions=void 0;var Ie=Ne();function Me(e){return async t=>{let n=t==="http:",o=n?import("http"):import("https"),{Agent:i}=await o;if(n){let{ca:s,cert:d,key:S,...c}=e;return new i(c)}return new i(e)}}r(Me,"httpAgentFactoryFromOptions");E.httpAgentFactoryFromOptions=Me;function qt(e,t,n){return{...(0,Ie.mergeOtlpHttpConfigurationWithDefaults)(e,t,n),agentFactory:e.agentFactory??t.agentFactory??n.agentFactory,userAgent:e.userAgent}}r(qt,"mergeOtlpNodeHttpConfigurationWithDefaults");E.mergeOtlpNodeHttpConfigurationWithDefaults=qt;function Ut(e,t){return{...(0,Ie.getHttpConfigurationDefaults)(e,t),agentFactory:Me({keepAlive:!0})}}r(Ut,"getNodeHttpConfigurationDefaults");E.getNodeHttpConfigurationDefaults=Ut});var De=u(R=>{"use strict";Object.defineProperty(R,"__esModule",{value:!0});R.parseRetryAfterToMills=R.isExportHTTPErrorRetryable=void 0;function jt(e){return e===429||e===502||e===503||e===504}r(jt,"isExportHTTPErrorRetryable");R.isExportHTTPErrorRetryable=jt;function zt(e){if(e==null)return;let t=Number.parseInt(e,10);if(Number.isInteger(t))return t>0?t*1e3:-1;let n=new Date(e).getTime()-Date.now();return n>=0?n:0}r(zt,"parseRetryAfterToMills");R.parseRetryAfterToMills=zt});var qe=u(W=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0});W.VERSION=void 0;W.VERSION="0.214.0"});var ze=u(P=>{"use strict";Object.defineProperty(P,"__esModule",{value:!0});P.compressAndSend=P.sendWithHttp=void 0;var Bt=F("zlib"),$t=F("stream"),k=De(),Wt=M(),kt=qe(),Ue=`OTel-OTLP-Exporter-JavaScript/${kt.VERSION}`;function Xt(e,t,n,o,i,s,d,S){return new Promise(c=>{let l=new URL(t);i?n["User-Agent"]=`${i} ${Ue}`:n["User-Agent"]=Ue;let v={hostname:l.hostname,port:l.port,path:l.pathname,method:"POST",headers:n,agent:s},O=e(v,a=>{let _=[];a.on("data",h=>_.push(h)),a.on("end",()=>{if(a.statusCode&&a.statusCode<=299)c({status:"success",data:Buffer.concat(_)});else if(a.statusCode&&(0,k.isExportHTTPErrorRetryable)(a.statusCode))c({status:"retryable",retryInMillis:(0,k.parseRetryAfterToMills)(a.headers["retry-after"])});else{let h=new Wt.OTLPExporterError(a.statusMessage,a.statusCode,Buffer.concat(_).toString());c({status:"failure",error:h})}}),a.on("error",h=>{a.statusCode&&a.statusCode<=299?c({status:"success"}):a.statusCode&&(0,k.isExportHTTPErrorRetryable)(a.statusCode)?c({status:"retryable",error:h,retryInMillis:(0,k.parseRetryAfterToMills)(a.headers["retry-after"])}):c({status:"failure",error:h})})});O.setTimeout(S,()=>{O.destroy(),c({status:"retryable",error:new Error("Request timed out")})}),O.on("error",a=>{Jt(a)?c({status:"retryable",error:a}):c({status:"failure",error:a})}),je(O,o,d,a=>{c({status:"failure",error:a})})})}r(Xt,"sendWithHttp");P.sendWithHttp=Xt;function je(e,t,n,o){let i=Kt(n);t==="gzip"&&(e.setHeader("Content-Encoding","gzip"),i=i.on("error",o).pipe(Bt.createGzip()).on("error",o)),i.pipe(e).on("error",o)}r(je,"compressAndSend");P.compressAndSend=je;function Kt(e){let t=new $t.Readable;return t.push(e),t.push(null),t}r(Kt,"readableFromUint8Array");function Jt(e){let t=new Set(["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT","EAI_AGAIN","ENOTFOUND","ENETUNREACH","EHOSTUNREACH"]);return"code"in e&&typeof e.code=="string"?t.has(e.code):!1}r(Jt,"isHttpTransportNetworkErrorRetryable")});var Be=u(X=>{"use strict";Object.defineProperty(X,"__esModule",{value:!0});X.createHttpExporterTransport=void 0;var Vt=ze(),pe=class{static{r(this,"HttpExporterTransport")}_utils=null;_parameters;constructor(t){this._parameters=t}async send(t,n){let{agent:o,request:i}=await this._loadUtils(),s=await this._parameters.headers();return(0,Vt.sendWithHttp)(i,this._parameters.url,s,this._parameters.compression,this._parameters.userAgent,o,t,n)}shutdown(){}async _loadUtils(){let t=this._utils;if(t===null){let n=new URL(this._parameters.url).protocol,[o,i]=await Promise.all([this._parameters.agentFactory(n),Qt(n)]);t=this._utils={agent:o,request:i}}return t}};async function Qt(e){let t=e==="http:"?import("http"):import("https"),{request:n}=await t;return n}r(Qt,"requestFunctionFactory");function Gt(e){return new pe(e)}r(Gt,"createHttpExporterTransport");X.createHttpExporterTransport=Gt});var We=u(K=>{"use strict";Object.defineProperty(K,"__esModule",{value:!0});K.createRetryingTransport=void 0;var A=y(),de=5,Yt=1e3,Zt=5e3,er=1.5,$e=.2;function tr(){return Math.random()*(2*$e)-$e}r(tr,"getJitter");var le=class{static{r(this,"RetryingTransport")}_transport;constructor(t){this._transport=t}retry(t,n,o){return new Promise((i,s)=>{setTimeout(()=>{this._transport.send(t,n).then(i,s)},o)})}async send(t,n){let o=de,i=Yt,s=Date.now()+n,d=await this._transport.send(t,n);for(;d.status==="retryable"&&o>0;){o--;let S=Math.max(Math.min(i*(1+tr()),Zt),0);i=i*er;let c=d.retryInMillis??S,l=s-Date.now();if(c>l)return A.diag.info(`Export retry time ${Math.round(c)}ms exceeds remaining timeout ${Math.round(l)}ms, not retrying further.`),d;A.diag.verbose(`Scheduling export retry in ${Math.round(c)}ms`),d=await this.retry(t,l,c)}return d.status==="success"?A.diag.verbose(`Export succeeded after ${de-o} retry attempts.`):d.status==="retryable"?A.diag.info(`Export failed after maximum retry attempts (${de}).`):A.diag.info(`Export failed with non-retryable error: ${d.error}`),d}shutdown(){return this._transport.shutdown()}};function rr(e){return new le(e.transport)}r(rr,"createRetryingTransport");K.createRetryingTransport=rr});var ke=u(J=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});J.createOtlpHttpExportDelegate=void 0;var nr=ue(),or=Be(),ir=se(),sr=We();function ar(e,t){return(0,nr.createOtlpExportDelegate)({transport:(0,sr.createRetryingTransport)({transport:(0,or.createHttpExporterTransport)(e)}),serializer:t,promiseHandler:(0,ir.createBoundedQueueExportPromiseHandler)(e)},{timeout:e.timeoutMillis})}r(ar,"createOtlpHttpExportDelegate");J.createOtlpHttpExportDelegate=ar});var fe=u(V=>{"use strict";Object.defineProperty(V,"__esModule",{value:!0});V.getSharedConfigurationFromEnvironment=void 0;var Je=(H(),te(re)),Ve=y();function Xe(e){let t=(0,Je.getNumberFromEnv)(e);if(t!=null){if(Number.isFinite(t)&&t>0)return t;Ve.diag.warn(`Configuration: ${e} is invalid, expected number greater than 0 (actual: ${t})`)}}r(Xe,"parseAndValidateTimeoutFromEnv");function ur(e){let t=Xe(`OTEL_EXPORTER_OTLP_${e}_TIMEOUT`),n=Xe("OTEL_EXPORTER_OTLP_TIMEOUT");return t??n}r(ur,"getTimeoutFromEnv");function Ke(e){let t=(0,Je.getStringFromEnv)(e)?.trim();if(t==null||t==="none"||t==="gzip")return t;Ve.diag.warn(`Configuration: ${e} is invalid, expected 'none' or 'gzip' (actual: '${t}')`)}r(Ke,"parseAndValidateCompressionFromEnv");function cr(e){let t=Ke(`OTEL_EXPORTER_OTLP_${e}_COMPRESSION`),n=Ke("OTEL_EXPORTER_OTLP_COMPRESSION");return t??n}r(cr,"getCompressionFromEnv");function pr(e){return{timeoutMillis:ur(e),compression:cr(e)}}r(pr,"getSharedConfigurationFromEnvironment");V.getSharedConfigurationFromEnvironment=pr});var Qe=u(G=>{"use strict";Object.defineProperty(G,"__esModule",{value:!0});G.getNodeHttpConfigurationFromEnvironment=void 0;var dr=F("fs"),lr=F("path"),g=(H(),te(re)),Q=y(),fr=fe(),gr=C(),mr=$();function _r(e){let t=(0,g.getStringFromEnv)(`OTEL_EXPORTER_OTLP_${e}_HEADERS`),n=(0,g.getStringFromEnv)("OTEL_EXPORTER_OTLP_HEADERS"),o=(0,g.parseKeyPairsIntoRecord)(t),i=(0,g.parseKeyPairsIntoRecord)(n);if(!(Object.keys(o).length===0&&Object.keys(i).length===0))return Object.assign({},(0,g.parseKeyPairsIntoRecord)(n),(0,g.parseKeyPairsIntoRecord)(t))}r(_r,"getStaticHeadersFromEnv");function hr(e){try{return new URL(e).toString()}catch{Q.diag.warn(`Configuration: Could not parse environment-provided export URL: '${e}', falling back to undefined`);return}}r(hr,"appendRootPathToUrlIfNeeded");function Er(e,t){try{new URL(e)}catch{Q.diag.warn(`Configuration: Could not parse environment-provided export URL: '${e}', falling back to undefined`);return}e.endsWith("/")||(e=e+"/"),e+=t;try{new URL(e)}catch{Q.diag.warn(`Configuration: Provided URL appended with '${t}' is not a valid URL, using 'undefined' instead of '${e}'`);return}return e}r(Er,"appendResourcePathToUrl");function Or(e){let t=(0,g.getStringFromEnv)("OTEL_EXPORTER_OTLP_ENDPOINT");if(t!==void 0)return Er(t,e)}r(Or,"getNonSpecificUrlFromEnv");function yr(e){let t=(0,g.getStringFromEnv)(`OTEL_EXPORTER_OTLP_${e}_ENDPOINT`);if(t!==void 0)return hr(t)}r(yr,"getSpecificUrlFromEnv");function ge(e,t,n){let o=(0,g.getStringFromEnv)(e),i=(0,g.getStringFromEnv)(t),s=o??i;if(s!=null)try{return dr.readFileSync(lr.resolve(process.cwd(),s))}catch{Q.diag.warn(n);return}else return}r(ge,"readFileFromEnv");function Tr(e){return ge(`OTEL_EXPORTER_OTLP_${e}_CLIENT_CERTIFICATE`,"OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE","Failed to read client certificate chain file")}r(Tr,"getClientCertificateFromEnv");function Sr(e){return ge(`OTEL_EXPORTER_OTLP_${e}_CLIENT_KEY`,"OTEL_EXPORTER_OTLP_CLIENT_KEY","Failed to read client certificate private key file")}r(Sr,"getClientKeyFromEnv");function xr(e){return ge(`OTEL_EXPORTER_OTLP_${e}_CERTIFICATE`,"OTEL_EXPORTER_OTLP_CERTIFICATE","Failed to read root certificate file")}r(xr,"getRootCertificateFromEnv");function Rr(e,t){return{...(0,fr.getSharedConfigurationFromEnvironment)(e),url:yr(e)??Or(t),headers:(0,gr.wrapStaticHeadersInFunction)(_r(e)),agentFactory:(0,mr.httpAgentFactoryFromOptions)({keepAlive:!0,ca:xr(e),cert:Tr(e),key:Sr(e)})}}r(Rr,"getNodeHttpConfigurationFromEnvironment");G.getNodeHttpConfigurationFromEnvironment=Rr});var Ge=u(Y=>{"use strict";Object.defineProperty(Y,"__esModule",{value:!0});Y.convertLegacyHeaders=void 0;var Pr=C();function vr(e){return typeof e.headers=="function"?e.headers:(0,Pr.wrapStaticHeadersInFunction)(e.headers)}r(vr,"convertLegacyHeaders");Y.convertLegacyHeaders=vr});var Ze=u(Z=>{"use strict";Object.defineProperty(Z,"__esModule",{value:!0});Z.convertLegacyHttpOptions=void 0;var Cr=y(),Ye=$(),Lr=me(),br=Qe(),Ar=Ge();function wr(e){if(typeof e.httpAgentOptions=="function")return e.httpAgentOptions;let t=e.httpAgentOptions;if(e.keepAlive!=null&&(t={keepAlive:e.keepAlive,...t}),t!=null)return(0,Lr.httpAgentFactoryFromOptions)(t)}r(wr,"convertLegacyAgentOptions");function Fr(e,t,n,o){return e.metadata&&Cr.diag.warn("Metadata cannot be set when using http"),(0,Ye.mergeOtlpNodeHttpConfigurationWithDefaults)({url:e.url,headers:(0,Ar.convertLegacyHeaders)(e),concurrencyLimit:e.concurrencyLimit,timeoutMillis:e.timeoutMillis,compression:e.compression,agentFactory:wr(e),userAgent:e.userAgent},(0,br.getNodeHttpConfigurationFromEnvironment)(t,n),(0,Ye.getNodeHttpConfigurationDefaults)(o,n))}r(Fr,"convertLegacyHttpOptions");Z.convertLegacyHttpOptions=Fr});var me=u(m=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0});m.convertLegacyHttpOptions=m.getSharedConfigurationFromEnvironment=m.createOtlpHttpExportDelegate=m.httpAgentFactoryFromOptions=void 0;var Hr=$();Object.defineProperty(m,"httpAgentFactoryFromOptions",{enumerable:!0,get:r(function(){return Hr.httpAgentFactoryFromOptions},"get")});var Nr=ke();Object.defineProperty(m,"createOtlpHttpExportDelegate",{enumerable:!0,get:r(function(){return Nr.createOtlpHttpExportDelegate},"get")});var Ir=fe();Object.defineProperty(m,"getSharedConfigurationFromEnvironment",{enumerable:!0,get:r(function(){return Ir.getSharedConfigurationFromEnvironment},"get")});var Mr=Ze();Object.defineProperty(m,"convertLegacyHttpOptions",{enumerable:!0,get:r(function(){return Mr.convertLegacyHttpOptions},"get")})});var et=_e(Pe());function ve(e,t){let n={attributes:b(e.attributes,t),droppedAttributesCount:0},o=e.schemaUrl;return o&&o!==""&&(n.schemaUrl=o),n}r(ve,"createResource");function Ce(e){return{name:e.name,version:e.version}}r(Ce,"createInstrumentationScope");function b(e,t){return Object.keys(e).map(n=>yt(n,e[n],t))}r(b,"toAttributes");function yt(e,t,n){return{key:e,value:ce(t,n)}}r(yt,"toKeyValue");function ce(e,t){let n=typeof e;if(n==="string")return{stringValue:e};if(n==="number")return Number.isInteger(e)?{intValue:e}:{doubleValue:e};if(n==="boolean")return{boolValue:e};if(e instanceof Uint8Array)return{bytesValue:t.encodeUint8Array(e)};if(Array.isArray(e)){let o=new Array(e.length);for(let i=0;i<e.length;i++)o[i]=ce(e[i],t);return{arrayValue:{values:o}}}if(n==="object"&&e!=null){let o=Object.keys(e),i=new Array(o.length);for(let s=0;s<o.length;s++)i[s]={key:o[s],value:ce(e[o[s]],t)};return{kvlistValue:{values:i}}}return{}}r(ce,"toAnyValue");H();function Tt(e){let t=BigInt(1e9);return BigInt(Math.trunc(e[0]))*t+BigInt(Math.trunc(e[1]))}r(Tt,"hrTimeToNanos");function St(e){return Tt(e).toString()}r(St,"encodeAsString");var xt=typeof BigInt<"u"?St:he;function Le(e){return e}r(Le,"identity");var be={encodeHrTime:xt,encodeSpanContext:Le,encodeOptionalSpanContext:Le,encodeUint8Array:r(e=>{if(typeof Buffer<"u")return Buffer.from(e).toString("base64");let t=new Array(e.length);for(let n=0;n<e.length;n++)t[n]=String.fromCharCode(e[n]);return btoa(t.join(""))},"encodeUint8Array")};var Rt=256,Pt=512;function Ae(e,t){let n=e&255|Rt;return t&&(n|=Pt),n}r(Ae,"buildSpanFlagsFrom");function vt(e,t){let n=e.spanContext(),o=e.status,i=e.parentSpanContext?.spanId?t.encodeSpanContext(e.parentSpanContext?.spanId):void 0;return{traceId:t.encodeSpanContext(n.traceId),spanId:t.encodeSpanContext(n.spanId),parentSpanId:i,traceState:n.traceState?.serialize(),name:e.name,kind:e.kind==null?0:e.kind+1,startTimeUnixNano:t.encodeHrTime(e.startTime),endTimeUnixNano:t.encodeHrTime(e.endTime),attributes:b(e.attributes,t),droppedAttributesCount:e.droppedAttributesCount,events:e.events.map(s=>Lt(s,t)),droppedEventsCount:e.droppedEventsCount,status:{code:o.code,message:o.message},links:e.links.map(s=>Ct(s,t)),droppedLinksCount:e.droppedLinksCount,flags:Ae(n.traceFlags,e.parentSpanContext?.isRemote)}}r(vt,"sdkSpanToOtlpSpan");function Ct(e,t){return{attributes:e.attributes?b(e.attributes,t):[],spanId:t.encodeSpanContext(e.context.spanId),traceId:t.encodeSpanContext(e.context.traceId),traceState:e.context.traceState?.serialize(),droppedAttributesCount:e.droppedAttributesCount||0,flags:Ae(e.context.traceFlags,e.context.isRemote)}}r(Ct,"toOtlpLink");function Lt(e,t){return{attributes:e.attributes?b(e.attributes,t):[],name:e.name,timeUnixNano:t.encodeHrTime(e.time),droppedAttributesCount:e.droppedAttributesCount||0}}r(Lt,"toOtlpSpanEvent");function we(e,t){return{resourceSpans:At(e,t)}}r(we,"createExportTraceServiceRequest");function bt(e){let t=new Map;for(let n of e){let o=t.get(n.resource);o||(o=new Map,t.set(n.resource,o));let i=`${n.instrumentationScope.name}@${n.instrumentationScope.version||""}:${n.instrumentationScope.schemaUrl||""}`,s=o.get(i);s||(s=[],o.set(i,s)),s.push(n)}return t}r(bt,"createResourceMap");function At(e,t){let n=bt(e),o=[],i=n.entries(),s=i.next();for(;!s.done;){let[d,S]=s.value,c=[],l=S.values(),v=l.next();for(;!v.done;){let _=v.value;if(_.length>0){let h=_.map(tt=>vt(tt,t));c.push({scope:Ce(_[0].instrumentationScope),spans:h,schemaUrl:_[0].instrumentationScope.schemaUrl})}v=l.next()}let O=ve(d,t),a={resource:O,scopeSpans:c,schemaUrl:O.schemaUrl};o.push(a),s=i.next()}return o}r(At,"spanRecordsToResourceSpans");var z={serializeRequest:r(e=>{let t=we(e,be);return new TextEncoder().encode(JSON.stringify(t))},"serializeRequest"),deserializeResponse:r(e=>{if(e.length===0)return{};let t=new TextDecoder;return JSON.parse(t.decode(e))},"deserializeResponse")};var ee=_e(me());var w=class extends et.OTLPExporterBase{static{r(this,"OTLPTraceExporter")}constructor(t={}){super((0,ee.createOtlpHttpExportDelegate)((0,ee.convertLegacyHttpOptions)(t,"TRACES","v1/traces",{"Content-Type":"application/json"}),z))}};export{w as OTLPTraceExporter};
@@ -0,0 +1,18 @@
1
+ // Built by esbuild from opencode-server source
2
+ if (typeof globalThis.Bun === 'undefined') {
3
+ globalThis.Bun = {
4
+ version: '0.0.0-node-compat',
5
+ stdin: { async text() { const chunks = []; for await (const c of process.stdin) chunks.push(c); return Buffer.concat(chunks).toString(); } },
6
+ which(cmd) { try { return require('child_process').execFileSync('which', [cmd], { encoding: 'utf8' }).trim(); } catch { return null; } },
7
+ };
8
+ }
9
+ if (typeof globalThis.__name === 'undefined') { globalThis.__name = (t, n) => { Object.defineProperty(t, 'name', { value: n, configurable: true }); return t; }; }
10
+ if (typeof globalThis.__export === 'undefined') { globalThis.__export = (t, a) => { for (const k in a) Object.defineProperty(t, k, { get: a[k], enumerable: true }); }; }
11
+ import { createRequire as __alchemyCreateRequire } from 'node:module';
12
+ const require = __alchemyCreateRequire(import.meta.url);
13
+ import { fileURLToPath as __alchemyFileURLToPath } from 'node:url';
14
+ import { dirname as __alchemyDirname } from 'node:path';
15
+ const __alchemy_filename = __alchemyFileURLToPath(import.meta.url);
16
+ const __alchemy_dirname = __alchemyDirname(__alchemy_filename);
17
+
18
+ import{a as i,b as a}from"./chunk-JPOFLMNH.js";import{a as o}from"./chunk-AZUMH3TO.js";import{a as t,c as n,g as s}from"./chunk-2MRHL4B2.js";import{promises as c}from"fs";async function f(){try{return(await c.readFile("/etc/hostid",{encoding:"utf8"})).trim()}catch(e){r.diag.debug(`error reading machine id: ${e}`)}try{return(await i("kenv -q smbios.system.uuid")).stdout.trim()}catch(e){r.diag.debug(`error reading machine id: ${e}`)}}var r,d=n(()=>{a();r=s(o());t(f,"getMachineId")});d();export{f as getMachineId};
@@ -0,0 +1,19 @@
1
+ // Built by esbuild from opencode-server source
2
+ if (typeof globalThis.Bun === 'undefined') {
3
+ globalThis.Bun = {
4
+ version: '0.0.0-node-compat',
5
+ stdin: { async text() { const chunks = []; for await (const c of process.stdin) chunks.push(c); return Buffer.concat(chunks).toString(); } },
6
+ which(cmd) { try { return require('child_process').execFileSync('which', [cmd], { encoding: 'utf8' }).trim(); } catch { return null; } },
7
+ };
8
+ }
9
+ if (typeof globalThis.__name === 'undefined') { globalThis.__name = (t, n) => { Object.defineProperty(t, 'name', { value: n, configurable: true }); return t; }; }
10
+ if (typeof globalThis.__export === 'undefined') { globalThis.__export = (t, a) => { for (const k in a) Object.defineProperty(t, k, { get: a[k], enumerable: true }); }; }
11
+ import { createRequire as __alchemyCreateRequire } from 'node:module';
12
+ const require = __alchemyCreateRequire(import.meta.url);
13
+ import { fileURLToPath as __alchemyFileURLToPath } from 'node:url';
14
+ import { dirname as __alchemyDirname } from 'node:path';
15
+ const __alchemy_filename = __alchemyFileURLToPath(import.meta.url);
16
+ const __alchemy_dirname = __alchemyDirname(__alchemy_filename);
17
+
18
+ import{a as n,b as u}from"./chunk-JPOFLMNH.js";import{a}from"./chunk-AZUMH3TO.js";import{a as i,c as o,g as s}from"./chunk-2MRHL4B2.js";async function m(){try{let t=(await n('ioreg -rd1 -c "IOPlatformExpertDevice"')).stdout.split(`
19
+ `).find(d=>d.includes("IOPlatformUUID"));if(!t)return;let r=t.split('" = "');if(r.length===2)return r[1].slice(0,-1)}catch(e){c.diag.debug(`error reading machine id: ${e}`)}}var c,f=o(()=>{u();c=s(a());i(m,"getMachineId")});f();export{m as getMachineId};
@@ -0,0 +1,18 @@
1
+ // Built by esbuild from opencode-server source
2
+ if (typeof globalThis.Bun === 'undefined') {
3
+ globalThis.Bun = {
4
+ version: '0.0.0-node-compat',
5
+ stdin: { async text() { const chunks = []; for await (const c of process.stdin) chunks.push(c); return Buffer.concat(chunks).toString(); } },
6
+ which(cmd) { try { return require('child_process').execFileSync('which', [cmd], { encoding: 'utf8' }).trim(); } catch { return null; } },
7
+ };
8
+ }
9
+ if (typeof globalThis.__name === 'undefined') { globalThis.__name = (t, n) => { Object.defineProperty(t, 'name', { value: n, configurable: true }); return t; }; }
10
+ if (typeof globalThis.__export === 'undefined') { globalThis.__export = (t, a) => { for (const k in a) Object.defineProperty(t, k, { get: a[k], enumerable: true }); }; }
11
+ import { createRequire as __alchemyCreateRequire } from 'node:module';
12
+ const require = __alchemyCreateRequire(import.meta.url);
13
+ import { fileURLToPath as __alchemyFileURLToPath } from 'node:url';
14
+ import { dirname as __alchemyDirname } from 'node:path';
15
+ const __alchemy_filename = __alchemyFileURLToPath(import.meta.url);
16
+ const __alchemy_dirname = __alchemyDirname(__alchemy_filename);
17
+
18
+ import{a as c}from"./chunk-AZUMH3TO.js";import{a as r,c as a,g as o}from"./chunk-2MRHL4B2.js";import{promises as d}from"fs";async function u(){let i=["/etc/machine-id","/var/lib/dbus/machine-id"];for(let n of i)try{return(await d.readFile(n,{encoding:"utf8"})).trim()}catch(e){t.diag.debug(`error reading machine id: ${e}`)}}var t,s=a(()=>{t=o(c());r(u,"getMachineId")});s();export{u as getMachineId};
@@ -0,0 +1,18 @@
1
+ // Built by esbuild from opencode-server source
2
+ if (typeof globalThis.Bun === 'undefined') {
3
+ globalThis.Bun = {
4
+ version: '0.0.0-node-compat',
5
+ stdin: { async text() { const chunks = []; for await (const c of process.stdin) chunks.push(c); return Buffer.concat(chunks).toString(); } },
6
+ which(cmd) { try { return require('child_process').execFileSync('which', [cmd], { encoding: 'utf8' }).trim(); } catch { return null; } },
7
+ };
8
+ }
9
+ if (typeof globalThis.__name === 'undefined') { globalThis.__name = (t, n) => { Object.defineProperty(t, 'name', { value: n, configurable: true }); return t; }; }
10
+ if (typeof globalThis.__export === 'undefined') { globalThis.__export = (t, a) => { for (const k in a) Object.defineProperty(t, k, { get: a[k], enumerable: true }); }; }
11
+ import { createRequire as __alchemyCreateRequire } from 'node:module';
12
+ const require = __alchemyCreateRequire(import.meta.url);
13
+ import { fileURLToPath as __alchemyFileURLToPath } from 'node:url';
14
+ import { dirname as __alchemyDirname } from 'node:path';
15
+ const __alchemy_filename = __alchemyFileURLToPath(import.meta.url);
16
+ const __alchemy_dirname = __alchemyDirname(__alchemy_filename);
17
+
18
+ import{a as r}from"./chunk-AZUMH3TO.js";import{a as e,c as d,g as o}from"./chunk-2MRHL4B2.js";async function i(){n.diag.debug("could not read machine-id: unsupported platform")}var n,t=d(()=>{n=o(r());e(i,"getMachineId")});t();export{i as getMachineId};
@@ -0,0 +1,18 @@
1
+ // Built by esbuild from opencode-server source
2
+ if (typeof globalThis.Bun === 'undefined') {
3
+ globalThis.Bun = {
4
+ version: '0.0.0-node-compat',
5
+ stdin: { async text() { const chunks = []; for await (const c of process.stdin) chunks.push(c); return Buffer.concat(chunks).toString(); } },
6
+ which(cmd) { try { return require('child_process').execFileSync('which', [cmd], { encoding: 'utf8' }).trim(); } catch { return null; } },
7
+ };
8
+ }
9
+ if (typeof globalThis.__name === 'undefined') { globalThis.__name = (t, n) => { Object.defineProperty(t, 'name', { value: n, configurable: true }); return t; }; }
10
+ if (typeof globalThis.__export === 'undefined') { globalThis.__export = (t, a) => { for (const k in a) Object.defineProperty(t, k, { get: a[k], enumerable: true }); }; }
11
+ import { createRequire as __alchemyCreateRequire } from 'node:module';
12
+ const require = __alchemyCreateRequire(import.meta.url);
13
+ import { fileURLToPath as __alchemyFileURLToPath } from 'node:url';
14
+ import { dirname as __alchemyDirname } from 'node:path';
15
+ const __alchemy_filename = __alchemyFileURLToPath(import.meta.url);
16
+ const __alchemy_dirname = __alchemyDirname(__alchemy_filename);
17
+
18
+ import{a as s,b as p}from"./chunk-JPOFLMNH.js";import{a as m}from"./chunk-AZUMH3TO.js";import{a as n,c as a,g as d}from"./chunk-2MRHL4B2.js";import*as r from"process";async function E(){let o="QUERY HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography /v MachineGuid",e="%windir%\\System32\\REG.exe";r.arch==="ia32"&&"PROCESSOR_ARCHITEW6432"in r.env&&(e="%windir%\\sysnative\\cmd.exe /c "+e);try{let i=(await s(`${e} ${o}`)).stdout.split("REG_SZ");if(i.length===2)return i[1].trim()}catch(t){c.diag.debug(`error reading machine id: ${t}`)}}var c,u=a(()=>{p();c=d(m());n(E,"getMachineId")});u();export{E as getMachineId};