@caspian2026/agent-sdk 0.0.11 → 0.0.13

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 (257) hide show
  1. package/dist/{chunk-vf9c1649.js → chunk-0259ffd5.js} +34 -36
  2. package/dist/{chunk-8vkv63c5.js → chunk-04493mqv.js} +1 -1
  3. package/dist/{chunk-wskkym13.js → chunk-07hj3a7t.js} +5 -7
  4. package/dist/{chunk-a3gq2vv4.js → chunk-08de1bkc.js} +9 -9
  5. package/dist/{chunk-rkvwts6v.js → chunk-0f66wzb1.js} +5 -5
  6. package/dist/{chunk-tgmettzd.js → chunk-0f6sd60f.js} +6 -6
  7. package/dist/{chunk-pe3n0w2t.js → chunk-0kadewva.js} +36 -38
  8. package/dist/{chunk-0ac6r0fw.js → chunk-0kf7k9m5.js} +34 -36
  9. package/dist/{chunk-tj6hejny.js → chunk-0px6jj0k.js} +34 -36
  10. package/dist/{chunk-aqq5qh2y.js → chunk-0vewdqr2.js} +38 -40
  11. package/dist/{chunk-hadww3nd.js → chunk-0wy4ckdx.js} +6 -8
  12. package/dist/{chunk-j3awswy3.js → chunk-1a1vxr0c.js} +34 -36
  13. package/dist/{chunk-cexw1jmv.js → chunk-1a5w7wdt.js} +2 -2
  14. package/dist/{chunk-qb88vpgy.js → chunk-1py8an1f.js} +37 -39
  15. package/dist/{chunk-3we6j8b4.js → chunk-1qy5fzfv.js} +6 -8
  16. package/dist/{chunk-ewhxddsa.js → chunk-1sy6bdrv.js} +1 -1
  17. package/dist/{chunk-67808qek.js → chunk-1ty5asgx.js} +4 -4
  18. package/dist/{chunk-41en0cc6.js → chunk-1vzz9b06.js} +11 -13
  19. package/dist/{chunk-n36xjgtj.js → chunk-214tavdv.js} +36 -38
  20. package/dist/{chunk-xemw9d52.js → chunk-23v0rkfx.js} +3 -3
  21. package/dist/{chunk-s213xmp8.js → chunk-2731ytyz.js} +34 -36
  22. package/dist/{chunk-awdftfcf.js → chunk-28zk60za.js} +35 -37
  23. package/dist/{chunk-vgk0nymz.js → chunk-2apvtmkd.js} +5 -7
  24. package/dist/{chunk-83b2frat.js → chunk-2avrzsjc.js} +2 -2
  25. package/dist/{chunk-sdfvr9ps.js → chunk-2h6f45jx.js} +5 -7
  26. package/dist/{chunk-tzzzbb9d.js → chunk-2jcrkn8m.js} +4 -4
  27. package/dist/{chunk-bzatg35k.js → chunk-2k3y6fnp.js} +1 -1
  28. package/dist/{chunk-qcrpqjya.js → chunk-2nya3j5t.js} +1 -1
  29. package/dist/{chunk-9ewnsd7f.js → chunk-2tm611h9.js} +2 -2
  30. package/dist/{chunk-9nj016rn.js → chunk-2wks5tbp.js} +2 -2
  31. package/dist/{chunk-fcww10dt.js → chunk-35ezdbnv.js} +16 -18
  32. package/dist/{chunk-erj5nc8b.js → chunk-3f5qszvs.js} +37 -39
  33. package/dist/{chunk-jqmr6ag1.js → chunk-3j2d5r8z.js} +37 -39
  34. package/dist/{chunk-1etzkkxs.js → chunk-3nahqj60.js} +1 -1
  35. package/dist/{chunk-ggq2y3tn.js → chunk-3pydh5j4.js} +162 -166
  36. package/dist/{chunk-1gz2wrhq.js → chunk-41n0ay0p.js} +37 -39
  37. package/dist/{chunk-dsqfe05n.js → chunk-43jvrt4d.js} +34 -36
  38. package/dist/{chunk-fybanr7d.js → chunk-45d8h5fm.js} +10 -14
  39. package/dist/{chunk-snxp8mxj.js → chunk-45fm4zby.js} +2 -2
  40. package/dist/{chunk-4hgxxzdw.js → chunk-46yrjrpt.js} +37 -39
  41. package/dist/{chunk-esrkw9v4.js → chunk-4750qavh.js} +2 -2
  42. package/dist/{chunk-bvdzmdw4.js → chunk-4c622mwe.js} +35 -37
  43. package/dist/{chunk-kj4m0j4n.js → chunk-4ch0yj7k.js} +7 -9
  44. package/dist/{chunk-r5bf0h0t.js → chunk-4dee9ybp.js} +37 -39
  45. package/dist/{chunk-tn0xnp8a.js → chunk-4mf6kgx2.js} +46 -48
  46. package/dist/{chunk-tq4vws6e.js → chunk-4pqjrr8y.js} +2 -2
  47. package/dist/{chunk-49bs7x5p.js → chunk-4r5k4e1k.js} +62 -65
  48. package/dist/{chunk-h4dnamt5.js → chunk-4swpnh0b.js} +34 -36
  49. package/dist/{chunk-s3s0611n.js → chunk-50ccstzb.js} +1 -1
  50. package/dist/{chunk-6696fngv.js → chunk-542phb5x.js} +10 -14
  51. package/dist/{chunk-8r5eevap.js → chunk-546yeymz.js} +14 -16
  52. package/dist/{chunk-tpn6rh31.js → chunk-57190x8z.js} +14 -16
  53. package/dist/chunk-5evd2zse.js +148 -0
  54. package/dist/{chunk-gw1g065z.js → chunk-5pa7rye9.js} +1 -1
  55. package/dist/{chunk-2072dpbx.js → chunk-5vp228m5.js} +4 -6
  56. package/dist/{chunk-b8f5dz5b.js → chunk-61s4nyrq.js} +5 -7
  57. package/dist/{chunk-dmyedkpw.js → chunk-657y059h.js} +6 -7
  58. package/dist/{chunk-rm4c8zd9.js → chunk-6ad9zkxx.js} +38 -40
  59. package/dist/{chunk-pbeee2kp.js → chunk-6e48t2eg.js} +6 -6
  60. package/dist/{chunk-dhwr4fz4.js → chunk-6e84jw8j.js} +1 -1
  61. package/dist/{chunk-6ebvysef.js → chunk-6j0rkk59.js} +35 -37
  62. package/dist/{chunk-e82vbky2.js → chunk-6napjp29.js} +36 -39
  63. package/dist/{chunk-vc59jf3q.js → chunk-6sf1v2cq.js} +46 -49
  64. package/dist/{chunk-z16txqz0.js → chunk-6w51dnv1.js} +2 -2
  65. package/dist/{chunk-peh3mj19.js → chunk-6ydz9pjp.js} +7 -8
  66. package/dist/{chunk-brng9f4q.js → chunk-7177yqpa.js} +34 -36
  67. package/dist/{chunk-q1j8ebyf.js → chunk-73fcxjts.js} +12 -14
  68. package/dist/{chunk-0k9sft0s.js → chunk-78e5yhhq.js} +35 -37
  69. package/dist/{chunk-d2g976qe.js → chunk-7cdb1dmj.js} +8 -10
  70. package/dist/{chunk-w1h5z2sy.js → chunk-7m88tgnf.js} +34 -36
  71. package/dist/{chunk-8kmna3cc.js → chunk-7we9b3rw.js} +12 -14
  72. package/dist/{chunk-jyz65rfv.js → chunk-7zwyj3jm.js} +38 -41
  73. package/dist/{chunk-99ck62v1.js → chunk-80nhm5kv.js} +37 -39
  74. package/dist/{chunk-q2fn2p7y.js → chunk-83gk1qqt.js} +34 -36
  75. package/dist/{chunk-b3nkagky.js → chunk-8r6fbt5c.js} +2 -2
  76. package/dist/{chunk-8dzg4nr5.js → chunk-8rc8jtgd.js} +35 -37
  77. package/dist/{chunk-h7dm24cc.js → chunk-8s7kcstd.js} +4 -4
  78. package/dist/{chunk-7etkb4pr.js → chunk-8y55mc4q.js} +2 -3
  79. package/dist/{chunk-50art2hr.js → chunk-8zct692x.js} +7 -9
  80. package/dist/{chunk-4re879ja.js → chunk-92tdswr4.js} +35 -37
  81. package/dist/{chunk-r0m970pk.js → chunk-95t7bqz3.js} +1 -1
  82. package/dist/{chunk-9nk34wee.js → chunk-99w11kb7.js} +38 -40
  83. package/dist/{chunk-40s88wdg.js → chunk-9an46bhy.js} +3 -5
  84. package/dist/{chunk-k9z36r5q.js → chunk-9ax032z9.js} +36 -38
  85. package/dist/{chunk-ewbvcf88.js → chunk-9gvm6tmk.js} +6 -8
  86. package/dist/{chunk-h5mkzk0z.js → chunk-9t6ktd1k.js} +2 -2
  87. package/dist/{chunk-ey1pg5v8.js → chunk-9v8bfqqf.js} +46 -48
  88. package/dist/{chunk-eseq7djh.js → chunk-a1e7apvj.js} +4 -4
  89. package/dist/{chunk-na63s9wn.js → chunk-a4f2eabx.js} +13 -15
  90. package/dist/{chunk-nrjtxhyr.js → chunk-a4vds27m.js} +1 -1
  91. package/dist/{chunk-ygwcq4vd.js → chunk-a5xn5zcr.js} +4 -4
  92. package/dist/{chunk-eba0b85f.js → chunk-a7fqavjt.js} +5 -7
  93. package/dist/{chunk-jsj3fx0g.js → chunk-agfhxmaa.js} +4 -4
  94. package/dist/{chunk-8hn2xqjz.js → chunk-am6tqacd.js} +2 -2
  95. package/dist/{chunk-8w21adpe.js → chunk-an61z5e5.js} +3 -3
  96. package/dist/{chunk-zjxv5g2n.js → chunk-aphk8j5w.js} +42 -44
  97. package/dist/{chunk-bayvqjm6.js → chunk-avztt5dv.js} +35 -37
  98. package/dist/{chunk-7tphrzjj.js → chunk-bas84mgf.js} +1 -1
  99. package/dist/{chunk-nj02kck4.js → chunk-bf0apkzz.js} +1 -1
  100. package/dist/{chunk-m25yfqc3.js → chunk-bkrganba.js} +34 -36
  101. package/dist/{chunk-hkgb5y9f.js → chunk-bnyy9ktk.js} +34 -36
  102. package/dist/{chunk-w5zezk61.js → chunk-br16k3dc.js} +7 -9
  103. package/dist/{chunk-j35mw64g.js → chunk-bwtw1cbj.js} +1 -1
  104. package/dist/{chunk-1v01c96r.js → chunk-c25z9zmd.js} +1 -1
  105. package/dist/{chunk-bhabqhx1.js → chunk-cdcdm51e.js} +39 -42
  106. package/dist/{chunk-xmdny0m1.js → chunk-cdqb8pyj.js} +15 -17
  107. package/dist/{chunk-y2r5e6kv.js → chunk-cejztqqp.js} +12 -14
  108. package/dist/{chunk-pp8nrx40.js → chunk-cew3ax9k.js} +113 -117
  109. package/dist/{chunk-z6wm96eh.js → chunk-cfvgegjj.js} +2 -2
  110. package/dist/{chunk-qxmm3jbn.js → chunk-chyw2mbg.js} +38 -42
  111. package/dist/{chunk-ykv414dd.js → chunk-cn646q7m.js} +36 -38
  112. package/dist/{chunk-ys17e80d.js → chunk-cnjjhxan.js} +34 -36
  113. package/dist/{chunk-fhprmgf4.js → chunk-cxdje86s.js} +1 -1
  114. package/dist/{chunk-6zsxtysq.js → chunk-d4geyzbs.js} +3 -3
  115. package/dist/{chunk-f1v8h236.js → chunk-dag4jq4v.js} +10 -14
  116. package/dist/{chunk-3e28fvn0.js → chunk-db92x7yq.js} +2 -2
  117. package/dist/{chunk-gbztsm42.js → chunk-dcmxz2jc.js} +37 -40
  118. package/dist/{chunk-jkens34n.js → chunk-dh90decj.js} +34 -36
  119. package/dist/{chunk-24t2wjab.js → chunk-dm7fhe2p.js} +1 -1
  120. package/dist/{chunk-g5epkvz2.js → chunk-dpg9k0qm.js} +6 -8
  121. package/dist/{chunk-y1ps26mz.js → chunk-drp374qg.js} +34 -36
  122. package/dist/{chunk-skp5w8bq.js → chunk-dwyaks7s.js} +1 -1
  123. package/dist/{chunk-mmn62bh2.js → chunk-dyvrz8pf.js} +35 -37
  124. package/dist/{chunk-v6fcbmqz.js → chunk-e0k5wevz.js} +77 -81
  125. package/dist/{chunk-y41svpxw.js → chunk-e41dxjrm.js} +34 -36
  126. package/dist/{chunk-nv7vcqme.js → chunk-e9pw9h37.js} +37 -39
  127. package/dist/{chunk-2z9rak9s.js → chunk-eb59rs3b.js} +35 -37
  128. package/dist/{chunk-765zdaq8.js → chunk-efw8je3h.js} +36 -38
  129. package/dist/{chunk-qmmxwh8x.js → chunk-eh344a7h.js} +3 -3
  130. package/dist/{chunk-p4196wzm.js → chunk-ejjp1fy1.js} +4 -6
  131. package/dist/{chunk-66dk94r4.js → chunk-embf6hvv.js} +34 -36
  132. package/dist/{chunk-b5asw4tj.js → chunk-eszdke28.js} +5 -5
  133. package/dist/{chunk-psm26hv7.js → chunk-etnkcek5.js} +8 -12
  134. package/dist/{chunk-pzp8fj0a.js → chunk-expz589n.js} +46 -48
  135. package/dist/{chunk-qz0xdht6.js → chunk-eyys9mkd.js} +8 -9
  136. package/dist/{chunk-4pj88fnc.js → chunk-f2rmgh78.js} +2 -2
  137. package/dist/{chunk-bj85dnsy.js → chunk-f81crq64.js} +13 -15
  138. package/dist/{chunk-69841w77.js → chunk-fqeza860.js} +34 -36
  139. package/dist/{chunk-bgyb0z0p.js → chunk-fv93118c.js} +43 -45
  140. package/dist/{chunk-8b2y3x7a.js → chunk-fys33rtr.js} +1 -1
  141. package/dist/{chunk-xdg2rpj3.js → chunk-g1396pvw.js} +36 -38
  142. package/dist/{chunk-2sqhjnpn.js → chunk-g6bpc05g.js} +34 -36
  143. package/dist/{chunk-hekf5s9q.js → chunk-gh9nd6cm.js} +2 -2
  144. package/dist/{chunk-w2vvxj1f.js → chunk-gh9qnfb8.js} +15 -17
  145. package/dist/{chunk-8c907cv9.js → chunk-ghak0k29.js} +4 -4
  146. package/dist/{chunk-b56smerd.js → chunk-h3rtwnzt.js} +2 -2
  147. package/dist/{chunk-q6tdxy8v.js → chunk-h6bgcfma.js} +3 -4
  148. package/dist/{chunk-g5pe8dew.js → chunk-h8e89948.js} +4 -5
  149. package/dist/{chunk-31bwdrm5.js → chunk-hbjfgsq7.js} +35 -37
  150. package/dist/{chunk-7t5ymv2m.js → chunk-hd4eg6kh.js} +1 -1
  151. package/dist/{chunk-v3s93bzd.js → chunk-hqdwr6mz.js} +1 -1
  152. package/dist/{chunk-qehbwde1.js → chunk-hv17xdf2.js} +35 -37
  153. package/dist/{chunk-eqnfk1g0.js → chunk-hvd5f5h0.js} +34 -36
  154. package/dist/{chunk-cttezxcb.js → chunk-j1y56wgn.js} +7 -11
  155. package/dist/{chunk-f73trmvk.js → chunk-j6q4ew2b.js} +34 -36
  156. package/dist/{chunk-pcbm66ch.js → chunk-j74js26x.js} +36 -38
  157. package/dist/{chunk-7krg0dkt.js → chunk-j7ptfetg.js} +1 -1
  158. package/dist/{chunk-28k13wc7.js → chunk-ja27ank4.js} +2 -2
  159. package/dist/{chunk-ca72efeb.js → chunk-janv6kzf.js} +38 -41
  160. package/dist/{chunk-xswyz2es.js → chunk-jbv0d2xg.js} +1 -1
  161. package/dist/{chunk-1vhjn1j9.js → chunk-jckcqmvg.js} +34 -36
  162. package/dist/{chunk-hzceftr4.js → chunk-jdcbgzym.js} +2 -2
  163. package/dist/{chunk-38rkx4cj.js → chunk-jnssgm4f.js} +35 -37
  164. package/dist/{chunk-vhxrn87v.js → chunk-jqep56xs.js} +39 -42
  165. package/dist/{chunk-fnf4av18.js → chunk-k74dn9ed.js} +4 -4
  166. package/dist/{chunk-gpzkzg7v.js → chunk-k8m0scgj.js} +35 -37
  167. package/dist/{chunk-kjqyhxz7.js → chunk-kd5k97vr.js} +6 -8
  168. package/dist/{chunk-4d0g9n3q.js → chunk-kgbz47x2.js} +35 -37
  169. package/dist/{chunk-kamesdff.js → chunk-kj12dpfk.js} +39 -41
  170. package/dist/{chunk-fy543pwf.js → chunk-kkb0165y.js} +9 -11
  171. package/dist/{chunk-6wzg2hpc.js → chunk-kpr0q6sr.js} +1 -1
  172. package/dist/{chunk-zmwgp2sh.js → chunk-kxjfdqf8.js} +4 -6
  173. package/dist/{chunk-g8183rkv.js → chunk-mg0an997.js} +3 -3
  174. package/dist/{chunk-j2x6fp25.js → chunk-mn75r067.js} +2 -2
  175. package/dist/{chunk-j513wqe9.js → chunk-mwzzqca7.js} +34 -36
  176. package/dist/{chunk-1pr4hr5x.js → chunk-n61z171a.js} +37 -39
  177. package/dist/{chunk-400r5gmq.js → chunk-njm3ynry.js} +14 -16
  178. package/dist/{chunk-cjca0q27.js → chunk-nqen92y9.js} +6 -6
  179. package/dist/{chunk-pq5290db.js → chunk-nr0tf2mh.js} +34 -36
  180. package/dist/{chunk-wmbpjx7v.js → chunk-nxww6w6y.js} +42 -45
  181. package/dist/{chunk-394djs3v.js → chunk-nyz79eye.js} +47 -49
  182. package/dist/{chunk-pepgckn4.js → chunk-p546k5vf.js} +12 -14
  183. package/dist/{chunk-7ce8wn1f.js → chunk-p6qdjxvz.js} +36 -38
  184. package/dist/{chunk-nebntwvd.js → chunk-pcz5838z.js} +17 -19
  185. package/dist/{chunk-scrk9jbt.js → chunk-pmw1pw00.js} +17 -19
  186. package/dist/{chunk-cdact4jj.js → chunk-pn1gzpw4.js} +15 -17
  187. package/dist/{chunk-wyj3wpjv.js → chunk-prmzj577.js} +43 -45
  188. package/dist/{chunk-d7ws01qk.js → chunk-q3b963kf.js} +1 -1
  189. package/dist/{chunk-0kgwksm1.js → chunk-qb786rmk.js} +17 -19
  190. package/dist/{chunk-wc0np2zw.js → chunk-qbjs0b0k.js} +6 -8
  191. package/dist/{chunk-vz3pa5n6.js → chunk-qd2ztwsc.js} +1 -1
  192. package/dist/{chunk-pwpk3gm6.js → chunk-qd5n2h9f.js} +5 -7
  193. package/dist/{chunk-k5mckm5f.js → chunk-qgzma8ky.js} +3 -3
  194. package/dist/{chunk-2vteceqh.js → chunk-qhsd552n.js} +4 -4
  195. package/dist/{chunk-1wr6ag3j.js → chunk-qt5gdpwa.js} +6 -8
  196. package/dist/{chunk-zbb7qd0v.js → chunk-qvvyx9ng.js} +4 -4
  197. package/dist/{chunk-vgzpbh28.js → chunk-qybnayqm.js} +35 -37
  198. package/dist/{chunk-4fh25m1z.js → chunk-r2rs4j2j.js} +7 -7
  199. package/dist/{chunk-9g29z3dv.js → chunk-r328sk36.js} +5 -5
  200. package/dist/{chunk-jx6k8msx.js → chunk-rasd60cv.js} +36 -39
  201. package/dist/{chunk-942yq6xx.js → chunk-redqdwa5.js} +4 -6
  202. package/dist/{chunk-cfyvkbe5.js → chunk-rs064jvw.js} +40 -42
  203. package/dist/{chunk-8w8d1k7b.js → chunk-sfsy9bm0.js} +12 -14
  204. package/dist/{chunk-ge57c9hg.js → chunk-sga2ay5t.js} +4 -4
  205. package/dist/{chunk-90bqyqfd.js → chunk-sj3ntw5a.js} +34 -36
  206. package/dist/{chunk-xv5a2xbe.js → chunk-sqhgc03m.js} +1 -1
  207. package/dist/{chunk-gw1a82j8.js → chunk-sx1nf0bd.js} +90 -92
  208. package/dist/{chunk-vdk9b74d.js → chunk-t47pgtvn.js} +17 -19
  209. package/dist/{chunk-jperb6n2.js → chunk-t4xsmp8v.js} +34 -36
  210. package/dist/{chunk-yrqx3p9k.js → chunk-t74h1vfr.js} +11 -13
  211. package/dist/{chunk-vnzgpyrz.js → chunk-tbw0dr1x.js} +7 -9
  212. package/dist/{chunk-vqh6cjfx.js → chunk-tcjxkf7r.js} +11 -13
  213. package/dist/{chunk-k7cw1a8a.js → chunk-tmjt0nae.js} +1 -1
  214. package/dist/{chunk-n9d0gg9z.js → chunk-txckt9ke.js} +10 -10
  215. package/dist/{chunk-0dm971mw.js → chunk-v0wh0bgd.js} +2 -2
  216. package/dist/{chunk-y024419t.js → chunk-v2801hvz.js} +36 -39
  217. package/dist/{chunk-2tfe2zs1.js → chunk-v8h27d3a.js} +35 -37
  218. package/dist/{chunk-2589k4k0.js → chunk-vb6811d0.js} +35 -37
  219. package/dist/{chunk-mtv83pq4.js → chunk-vjd52x2d.js} +46 -48
  220. package/dist/{chunk-4057dtxd.js → chunk-vpqp1mq8.js} +1 -1
  221. package/dist/{chunk-rm9gb396.js → chunk-vwtdaw6w.js} +13 -17
  222. package/dist/{chunk-bp4s0gry.js → chunk-vyc4jpmd.js} +35 -37
  223. package/dist/{chunk-9z45660r.js → chunk-w22x70jh.js} +42 -45
  224. package/dist/{chunk-4ayjwyqj.js → chunk-w28t9jy7.js} +2 -4
  225. package/dist/{chunk-75qqeec8.js → chunk-w9v6bd0p.js} +2 -2
  226. package/dist/{chunk-j30g8fd1.js → chunk-wb53cfxb.js} +12 -14
  227. package/dist/{chunk-wcpmtszh.js → chunk-wbnakd1c.js} +35 -37
  228. package/dist/{chunk-r7xpsch7.js → chunk-wgy3ajgs.js} +34 -36
  229. package/dist/{chunk-488spx13.js → chunk-x0kh4peb.js} +43 -45
  230. package/dist/{chunk-wrsy4y58.js → chunk-x3c6448d.js} +36 -38
  231. package/dist/{chunk-mq94v5vn.js → chunk-xkpb3hbc.js} +4 -6
  232. package/dist/{chunk-2cr43hzw.js → chunk-xs51q1qa.js} +42 -44
  233. package/dist/{chunk-rfq9kmsy.js → chunk-xxahhkz2.js} +7 -8
  234. package/dist/{chunk-qywk2c7m.js → chunk-xzyjwk6j.js} +34 -36
  235. package/dist/{chunk-f70fwxds.js → chunk-y12r2kxd.js} +6 -8
  236. package/dist/{chunk-cs9aqzag.js → chunk-y26haxyd.js} +35 -37
  237. package/dist/{chunk-akqsq8bn.js → chunk-y5nttq3d.js} +13 -16
  238. package/dist/{chunk-0f5anjkb.js → chunk-ya4nc0ee.js} +22 -24
  239. package/dist/{chunk-pd2vy8hx.js → chunk-yb6xww2x.js} +525 -56
  240. package/dist/{chunk-wahqac7c.js → chunk-yjg74qmp.js} +19 -23
  241. package/dist/{chunk-hapvn84d.js → chunk-yqzy84qy.js} +8 -10
  242. package/dist/{chunk-ynkzfhs1.js → chunk-yrr9ykn9.js} +13 -15
  243. package/dist/{chunk-wt6v1zbe.js → chunk-yxk5gqyj.js} +3 -3
  244. package/dist/{chunk-7p2vw8qe.js → chunk-z3th2q62.js} +20 -22
  245. package/dist/{chunk-r0dpeqg0.js → chunk-zg0pfvsf.js} +8 -8
  246. package/dist/{chunk-pm67yj46.js → chunk-zgck4td9.js} +4 -4
  247. package/dist/{chunk-wdzjtdye.js → chunk-zr18x8mm.js} +6 -8
  248. package/dist/{chunk-xx709m24.js → chunk-zs8gxf6g.js} +4 -4
  249. package/dist/{chunk-5pqq0nym.js → chunk-zsm1wrwx.js} +3 -3
  250. package/dist/{chunk-msvv7dpt.js → chunk-zzgpnftk.js} +34 -36
  251. package/dist/{chunk-q347821k.js → chunk-zzs0138c.js} +42 -44
  252. package/dist/cli.js +7 -7
  253. package/dist/gateway/worker.js +1113 -1080
  254. package/package.json +1 -1
  255. package/dist/chunk-5cxjxxx8.js +0 -352
  256. package/dist/chunk-mgpj5f7h.js +0 -150
  257. package/dist/chunk-rkv8bdtr.js +0 -125
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caspian2026/agent-sdk",
3
- "version": "0.0.11",
3
+ "version": "0.0.13",
4
4
  "description": "AI-powered agent SDK for the terminal",
5
5
  "type": "module",
6
6
  "engines": {
@@ -1,352 +0,0 @@
1
- // @bun
2
- import {
3
- getFsImplementation,
4
- init_errors,
5
- init_fsOperations,
6
- init_slowOperations,
7
- toError
8
- } from "./chunk-pd2vy8hx.js";
9
- import {
10
- init_state,
11
- setLastAPIRequest,
12
- setLastAPIRequestMessages
13
- } from "./chunk-k8vp0atq.js";
14
- import {
15
- init_memoize,
16
- memoize_default
17
- } from "./chunk-vf612n57.js";
18
- import {
19
- __esm,
20
- __require
21
- } from "./chunk-qp2qdcda.js";
22
-
23
- // src/constants/xml.ts
24
- var COMMAND_NAME_TAG = "command-name", COMMAND_MESSAGE_TAG = "command-message", COMMAND_ARGS_TAG = "command-args", BASH_INPUT_TAG = "bash-input", BASH_STDOUT_TAG = "bash-stdout", BASH_STDERR_TAG = "bash-stderr", LOCAL_COMMAND_STDOUT_TAG = "local-command-stdout", LOCAL_COMMAND_STDERR_TAG = "local-command-stderr", LOCAL_COMMAND_CAVEAT_TAG = "local-command-caveat", TERMINAL_OUTPUT_TAGS, TICK_TAG = "tick", TASK_NOTIFICATION_TAG = "task-notification", TASK_ID_TAG = "task-id", TOOL_USE_ID_TAG = "tool-use-id", TASK_TYPE_TAG = "task-type", OUTPUT_FILE_TAG = "output-file", STATUS_TAG = "status", SUMMARY_TAG = "summary", WORKTREE_TAG = "worktree", WORKTREE_PATH_TAG = "worktreePath", WORKTREE_BRANCH_TAG = "worktreeBranch", REMOTE_REVIEW_TAG = "remote-review", REMOTE_REVIEW_PROGRESS_TAG = "remote-review-progress", TEAMMATE_MESSAGE_TAG = "teammate-message", CHANNEL_TAG = "channel", FORK_BOILERPLATE_TAG = "fork-boilerplate", FORK_DIRECTIVE_PREFIX = "Your directive: ", COMMON_HELP_ARGS, COMMON_INFO_ARGS;
25
- var init_xml = __esm(() => {
26
- TERMINAL_OUTPUT_TAGS = [
27
- BASH_INPUT_TAG,
28
- BASH_STDOUT_TAG,
29
- BASH_STDERR_TAG,
30
- LOCAL_COMMAND_STDOUT_TAG,
31
- LOCAL_COMMAND_STDERR_TAG,
32
- LOCAL_COMMAND_CAVEAT_TAG
33
- ];
34
- COMMON_HELP_ARGS = ["help", "-h", "--help"];
35
- COMMON_INFO_ARGS = [
36
- "list",
37
- "show",
38
- "display",
39
- "current",
40
- "view",
41
- "get",
42
- "check",
43
- "describe",
44
- "print",
45
- "version",
46
- "about",
47
- "status",
48
- "?"
49
- ];
50
- });
51
-
52
- // src/types/logs.ts
53
- function sortLogs(logs) {
54
- return logs.sort((a, b) => {
55
- const modifiedDiff = b.modified.getTime() - a.modified.getTime();
56
- if (modifiedDiff !== 0) {
57
- return modifiedDiff;
58
- }
59
- return b.created.getTime() - a.created.getTime();
60
- });
61
- }
62
- var init_logs = () => {};
63
-
64
- // src/utils/privacyLevel.ts
65
- function getPrivacyLevel() {
66
- if (process.env.CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC) {
67
- return "essential-traffic";
68
- }
69
- if (process.env.DISABLE_TELEMETRY) {
70
- return "no-telemetry";
71
- }
72
- return "default";
73
- }
74
- function isEssentialTrafficOnly() {
75
- return getPrivacyLevel() === "essential-traffic";
76
- }
77
- function isTelemetryDisabled() {
78
- return getPrivacyLevel() !== "default";
79
- }
80
- function getEssentialTrafficOnlyReason() {
81
- if (process.env.CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC) {
82
- return "CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC";
83
- }
84
- return null;
85
- }
86
- var init_privacyLevel = () => {};
87
-
88
- // node_modules/.bun/is-safe-filename@0.1.1/node_modules/is-safe-filename/index.js
89
- function isSafeFilename(filename) {
90
- if (typeof filename !== "string") {
91
- return false;
92
- }
93
- const trimmed = filename.trim();
94
- return trimmed !== "" && trimmed !== "." && trimmed !== ".." && !filename.includes("/") && !filename.includes("\\") && !filename.includes("\x00");
95
- }
96
- function assertSafeFilename(filename) {
97
- if (typeof filename !== "string") {
98
- throw new TypeError("Expected a string");
99
- }
100
- if (!isSafeFilename(filename)) {
101
- throw new Error(`Unsafe filename: ${JSON.stringify(filename)}`);
102
- }
103
- }
104
- var unsafeFilenameFixtures;
105
- var init_is_safe_filename = __esm(() => {
106
- unsafeFilenameFixtures = Object.freeze([
107
- "",
108
- " ",
109
- ".",
110
- "..",
111
- " .",
112
- ". ",
113
- " ..",
114
- ".. ",
115
- "../",
116
- "../foo",
117
- "foo/../bar",
118
- "foo/bar",
119
- "foo\\bar",
120
- "foo\x00bar"
121
- ]);
122
- });
123
-
124
- // node_modules/.bun/env-paths@4.0.0/node_modules/env-paths/index.js
125
- import path from "path";
126
- import os from "os";
127
- import process2 from "process";
128
- function envPaths(name, { suffix = "nodejs" } = {}) {
129
- assertSafeFilename(name);
130
- if (suffix) {
131
- name += `-${suffix}`;
132
- }
133
- assertSafeFilename(name);
134
- if (process2.platform === "darwin") {
135
- return macos(name);
136
- }
137
- if (process2.platform === "win32") {
138
- return windows(name);
139
- }
140
- return linux(name);
141
- }
142
- var homedir, tmpdir, env, macos = (name) => {
143
- const library = path.join(homedir, "Library");
144
- return {
145
- data: path.join(library, "Application Support", name),
146
- config: path.join(library, "Preferences", name),
147
- cache: path.join(library, "Caches", name),
148
- log: path.join(library, "Logs", name),
149
- temp: path.join(tmpdir, name)
150
- };
151
- }, windows = (name) => {
152
- const appData = env.APPDATA || path.join(homedir, "AppData", "Roaming");
153
- const localAppData = env.LOCALAPPDATA || path.join(homedir, "AppData", "Local");
154
- return {
155
- data: path.join(localAppData, name, "Data"),
156
- config: path.join(appData, name, "Config"),
157
- cache: path.join(localAppData, name, "Cache"),
158
- log: path.join(localAppData, name, "Log"),
159
- temp: path.join(tmpdir, name)
160
- };
161
- }, linux = (name) => {
162
- const username = path.basename(homedir);
163
- return {
164
- data: path.join(env.XDG_DATA_HOME || path.join(homedir, ".local", "share"), name),
165
- config: path.join(env.XDG_CONFIG_HOME || path.join(homedir, ".config"), name),
166
- cache: path.join(env.XDG_CACHE_HOME || path.join(homedir, ".cache"), name),
167
- log: path.join(env.XDG_STATE_HOME || path.join(homedir, ".local", "state"), name),
168
- temp: path.join(tmpdir, username, name)
169
- };
170
- };
171
- var init_env_paths = __esm(() => {
172
- init_is_safe_filename();
173
- homedir = os.homedir();
174
- tmpdir = os.tmpdir();
175
- ({ env } = process2);
176
- });
177
-
178
- // src/utils/hash.ts
179
- function djb2Hash(str) {
180
- let hash = 0;
181
- for (let i = 0;i < str.length; i++) {
182
- hash = (hash << 5) - hash + str.charCodeAt(i) | 0;
183
- }
184
- return hash;
185
- }
186
- function hashContent(content) {
187
- if (typeof Bun !== "undefined") {
188
- return Bun.hash(content).toString();
189
- }
190
- const crypto = __require("crypto");
191
- return crypto.createHash("sha256").update(content).digest("hex");
192
- }
193
- function hashPair(a, b) {
194
- if (typeof Bun !== "undefined") {
195
- return Bun.hash(b, Bun.hash(a)).toString();
196
- }
197
- const crypto = __require("crypto");
198
- return crypto.createHash("sha256").update(a).update("\x00").update(b).digest("hex");
199
- }
200
- var init_hash = () => {};
201
-
202
- // src/utils/cachePaths.ts
203
- import { join } from "path";
204
- function sanitizePath(name) {
205
- const sanitized = name.replace(/[^a-zA-Z0-9]/g, "-");
206
- if (sanitized.length <= MAX_SANITIZED_LENGTH) {
207
- return sanitized;
208
- }
209
- return `${sanitized.slice(0, MAX_SANITIZED_LENGTH)}-${Math.abs(djb2Hash(name)).toString(36)}`;
210
- }
211
- function getProjectDir(cwd) {
212
- return sanitizePath(cwd);
213
- }
214
- var paths, MAX_SANITIZED_LENGTH = 200, CACHE_PATHS;
215
- var init_cachePaths = __esm(() => {
216
- init_env_paths();
217
- init_fsOperations();
218
- init_hash();
219
- paths = envPaths("claude-cli");
220
- CACHE_PATHS = {
221
- baseLogs: () => join(paths.cache, getProjectDir(getFsImplementation().cwd())),
222
- errors: () => join(paths.cache, getProjectDir(getFsImplementation().cwd()), "errors"),
223
- messages: () => join(paths.cache, getProjectDir(getFsImplementation().cwd()), "messages"),
224
- mcpLogs: (serverName) => join(paths.cache, getProjectDir(getFsImplementation().cwd()), `mcp-logs-${sanitizePath(serverName)}`)
225
- };
226
- });
227
-
228
- // src/utils/displayTags.ts
229
- function stripDisplayTags(text) {
230
- const result = text.replace(XML_TAG_BLOCK_PATTERN, "").trim();
231
- return result || text;
232
- }
233
- function stripDisplayTagsAllowEmpty(text) {
234
- return text.replace(XML_TAG_BLOCK_PATTERN, "").trim();
235
- }
236
- function stripIdeContextTags(text) {
237
- return text.replace(IDE_CONTEXT_TAGS_PATTERN, "").trim();
238
- }
239
- var XML_TAG_BLOCK_PATTERN, IDE_CONTEXT_TAGS_PATTERN;
240
- var init_displayTags = __esm(() => {
241
- XML_TAG_BLOCK_PATTERN = /<([a-z][\w-]*)(?:\s[^>]*)?>[\s\S]*?<\/\1>\n?/g;
242
- IDE_CONTEXT_TAGS_PATTERN = /<(ide_opened_file|ide_selection)(?:\s[^>]*)?>[\s\S]*?<\/\1>\n?/g;
243
- });
244
-
245
- // src/utils/log.ts
246
- function getLogDisplayTitle(log, defaultTitle) {
247
- const isAutonomousPrompt = log.firstPrompt?.startsWith(`<${TICK_TAG}>`);
248
- const strippedFirstPrompt = log.firstPrompt ? stripDisplayTagsAllowEmpty(log.firstPrompt) : "";
249
- const useFirstPrompt = strippedFirstPrompt && !isAutonomousPrompt;
250
- const title = log.agentName || log.customTitle || log.summary || (useFirstPrompt ? strippedFirstPrompt : undefined) || defaultTitle || (isAutonomousPrompt ? "Autonomous session" : undefined) || (log.sessionId ? log.sessionId.slice(0, 8) : "") || "";
251
- return stripDisplayTags(title).trim();
252
- }
253
- function dateToFilename(date) {
254
- return date.toISOString().replace(/[:.]/g, "-");
255
- }
256
- function addToInMemoryErrorLog(errorInfo) {
257
- if (inMemoryErrorLog.length >= MAX_IN_MEMORY_ERRORS) {
258
- inMemoryErrorLog.shift();
259
- }
260
- inMemoryErrorLog.push(errorInfo);
261
- }
262
- function attachErrorLogSink(newSink) {
263
- if (errorLogSink !== null) {
264
- return;
265
- }
266
- errorLogSink = newSink;
267
- if (errorQueue.length > 0) {
268
- const queuedEvents = [...errorQueue];
269
- errorQueue.length = 0;
270
- for (const event of queuedEvents) {
271
- switch (event.type) {
272
- case "error":
273
- errorLogSink.logError(event.error);
274
- break;
275
- case "mcpError":
276
- errorLogSink.logMCPError(event.serverName, event.error);
277
- break;
278
- case "mcpDebug":
279
- errorLogSink.logMCPDebug(event.serverName, event.message);
280
- break;
281
- }
282
- }
283
- }
284
- }
285
- function logError(error) {
286
- const err = toError(error);
287
- if (false) {}
288
- try {
289
- if (process.env.DISABLE_ERROR_REPORTING || isEssentialTrafficOnly()) {
290
- return;
291
- }
292
- const errorStr = err.stack || err.message;
293
- const errorInfo = {
294
- error: errorStr,
295
- timestamp: new Date().toISOString()
296
- };
297
- addToInMemoryErrorLog(errorInfo);
298
- if (errorLogSink === null) {
299
- errorQueue.push({ type: "error", error: err });
300
- return;
301
- }
302
- errorLogSink.logError(err);
303
- } catch {}
304
- }
305
- function getInMemoryErrors() {
306
- return [...inMemoryErrorLog];
307
- }
308
- function logMCPError(serverName, error) {
309
- try {
310
- if (errorLogSink === null) {
311
- errorQueue.push({ type: "mcpError", serverName, error });
312
- return;
313
- }
314
- errorLogSink.logMCPError(serverName, error);
315
- } catch {}
316
- }
317
- function logMCPDebug(serverName, message) {
318
- try {
319
- if (errorLogSink === null) {
320
- errorQueue.push({ type: "mcpDebug", serverName, message });
321
- return;
322
- }
323
- errorLogSink.logMCPDebug(serverName, message);
324
- } catch {}
325
- }
326
- function captureAPIRequest(params, querySource) {
327
- if (!querySource || !querySource.startsWith("repl_main_thread")) {
328
- return;
329
- }
330
- const { messages, ...paramsWithoutMessages } = params;
331
- setLastAPIRequest(paramsWithoutMessages);
332
- setLastAPIRequestMessages(process.env.USER_TYPE === "ant" ? messages : null);
333
- }
334
- var MAX_IN_MEMORY_ERRORS = 100, inMemoryErrorLog, errorQueue, errorLogSink = null, isHardFailMode;
335
- var init_log = __esm(() => {
336
- init_memoize();
337
- init_state();
338
- init_xml();
339
- init_logs();
340
- init_cachePaths();
341
- init_displayTags();
342
- init_errors();
343
- init_privacyLevel();
344
- init_slowOperations();
345
- inMemoryErrorLog = [];
346
- errorQueue = [];
347
- isHardFailMode = memoize_default(() => {
348
- return process.argv.includes("--hard-fail");
349
- });
350
- });
351
-
352
- export { COMMAND_NAME_TAG, COMMAND_MESSAGE_TAG, COMMAND_ARGS_TAG, BASH_INPUT_TAG, BASH_STDOUT_TAG, BASH_STDERR_TAG, LOCAL_COMMAND_STDOUT_TAG, LOCAL_COMMAND_STDERR_TAG, LOCAL_COMMAND_CAVEAT_TAG, TERMINAL_OUTPUT_TAGS, TICK_TAG, TASK_NOTIFICATION_TAG, TASK_ID_TAG, TOOL_USE_ID_TAG, TASK_TYPE_TAG, OUTPUT_FILE_TAG, STATUS_TAG, SUMMARY_TAG, WORKTREE_TAG, WORKTREE_PATH_TAG, WORKTREE_BRANCH_TAG, REMOTE_REVIEW_TAG, REMOTE_REVIEW_PROGRESS_TAG, TEAMMATE_MESSAGE_TAG, CHANNEL_TAG, FORK_BOILERPLATE_TAG, FORK_DIRECTIVE_PREFIX, COMMON_HELP_ARGS, COMMON_INFO_ARGS, init_xml, sortLogs, init_logs, djb2Hash, hashContent, hashPair, init_hash, CACHE_PATHS, init_cachePaths, stripDisplayTags, stripIdeContextTags, init_displayTags, isEssentialTrafficOnly, isTelemetryDisabled, getEssentialTrafficOnlyReason, init_privacyLevel, getLogDisplayTitle, dateToFilename, attachErrorLogSink, logError, getInMemoryErrors, logMCPError, logMCPDebug, captureAPIRequest, init_log };
@@ -1,150 +0,0 @@
1
- // @bun
2
- import {
3
- REPL
4
- } from "./chunk-v6fcbmqz.js";
5
- import"./chunk-50art2hr.js";
6
- import"./chunk-wahqac7c.js";
7
- import"./chunk-ynkzfhs1.js";
8
- import"./chunk-0f5anjkb.js";
9
- import"./chunk-67808qek.js";
10
- import"./chunk-4fh25m1z.js";
11
- import"./chunk-eseq7djh.js";
12
- import"./chunk-mswx2nma.js";
13
- import"./chunk-h5mkzk0z.js";
14
- import"./chunk-xhfmdq1y.js";
15
- import"./chunk-h9n54swm.js";
16
- import"./chunk-8vkv63c5.js";
17
- import"./chunk-3mgywd32.js";
18
- import"./chunk-942yq6xx.js";
19
- import"./chunk-kj4m0j4n.js";
20
- import"./chunk-5pqq0nym.js";
21
- import"./chunk-tq4vws6e.js";
22
- import"./chunk-tzzzbb9d.js";
23
- import"./chunk-0dm971mw.js";
24
- import"./chunk-esrkw9v4.js";
25
- import"./chunk-7t5ymv2m.js";
26
- import"./chunk-0paqc2yw.js";
27
- import"./chunk-zbb7qd0v.js";
28
- import"./chunk-wt6v1zbe.js";
29
- import"./chunk-c6sjhj89.js";
30
- import"./chunk-7p2vw8qe.js";
31
- import"./chunk-ygwcq4vd.js";
32
- import"./chunk-cnsj3vq2.js";
33
- import"./chunk-8w21adpe.js";
34
- import"./chunk-zmwgp2sh.js";
35
- import"./chunk-cjca0q27.js";
36
- import"./chunk-hzceftr4.js";
37
- import"./chunk-hapvn84d.js";
38
- import"./chunk-wc0np2zw.js";
39
- import"./chunk-1wr6ag3j.js";
40
- import"./chunk-3we6j8b4.js";
41
- import"./chunk-b8f5dz5b.js";
42
- import"./chunk-5ccdsxgy.js";
43
- import"./chunk-hekf5s9q.js";
44
- import"./chunk-xv5a2xbe.js";
45
- import"./chunk-1etzkkxs.js";
46
- import"./chunk-8c907cv9.js";
47
- import"./chunk-a3gq2vv4.js";
48
- import"./chunk-fnf4av18.js";
49
- import"./chunk-8r5eevap.js";
50
- import"./chunk-qmmxwh8x.js";
51
- import"./chunk-rkvwts6v.js";
52
- import"./chunk-d2g976qe.js";
53
- import"./chunk-pm67yj46.js";
54
- import"./chunk-k5mckm5f.js";
55
- import"./chunk-s3s0611n.js";
56
- import"./chunk-ewhxddsa.js";
57
- import"./chunk-j2x6fp25.js";
58
- import"./chunk-fybanr7d.js";
59
- import"./chunk-x7fdwq3d.js";
60
- import"./chunk-eba0b85f.js";
61
- import"./chunk-9nj016rn.js";
62
- import"./chunk-r0m970pk.js";
63
- import"./chunk-t9p85zff.js";
64
- import"./chunk-fy543pwf.js";
65
- import"./chunk-v3s93bzd.js";
66
- import"./chunk-rn0v1hk8.js";
67
- import"./chunk-wa8yn2p0.js";
68
- import"./chunk-ggq2y3tn.js";
69
- import"./chunk-mcws22k3.js";
70
- import"./chunk-jzthz1bx.js";
71
- import"./chunk-mq94v5vn.js";
72
- import"./chunk-hwfknpxv.js";
73
- import"./chunk-1gx78081.js";
74
- import"./chunk-ehtwnxpg.js";
75
- import"./chunk-75qqeec8.js";
76
- import"./chunk-hadww3nd.js";
77
- import"./chunk-87xg6yb4.js";
78
- import"./chunk-w5zezk61.js";
79
- import"./chunk-2gzv8nrw.js";
80
- import"./chunk-sdfvr9ps.js";
81
- import"./chunk-cgfdkzhb.js";
82
- import"./chunk-xswyz2es.js";
83
- import"./chunk-j5bth84e.js";
84
- import"./chunk-6696fngv.js";
85
- import"./chunk-ps49ymvj.js";
86
- import"./chunk-68ffk5qa.js";
87
- import"./chunk-g8183rkv.js";
88
- import"./chunk-vnzgpyrz.js";
89
- import"./chunk-7krg0dkt.js";
90
- import"./chunk-4057dtxd.js";
91
- import"./chunk-p7vkh4wx.js";
92
- import"./chunk-6wzg2hpc.js";
93
- import"./chunk-9g29z3dv.js";
94
- import"./chunk-7tphrzjj.js";
95
- import"./chunk-2vteceqh.js";
96
- import"./chunk-xeb6075z.js";
97
- import"./chunk-nrjtxhyr.js";
98
- import"./chunk-v4t6dyyh.js";
99
- import"./chunk-g5epkvz2.js";
100
- import"./chunk-bzatg35k.js";
101
- import"./chunk-rm9gb396.js";
102
- import"./chunk-p4196wzm.js";
103
- import"./chunk-cttezxcb.js";
104
- import"./chunk-6nsd9606.js";
105
- import"./chunk-rkv8bdtr.js";
106
- import"./chunk-64c1avct.js";
107
- import"./chunk-8g5pe1gr.js";
108
- import"./chunk-4pbx3g7s.js";
109
- import"./chunk-26wtxbdc.js";
110
- import"./chunk-z6wm96eh.js";
111
- import"./chunk-4jm600zv.js";
112
- import"./chunk-1v01c96r.js";
113
- import"./chunk-8b2y3x7a.js";
114
- import"./chunk-3c25bcsw.js";
115
- import"./chunk-cexw1jmv.js";
116
- import"./chunk-j35mw64g.js";
117
- import"./chunk-cdz5yb0r.js";
118
- import"./chunk-c7jwbe76.js";
119
- import"./chunk-0vkfrmqm.js";
120
- import"./chunk-7sgtxrsc.js";
121
- import"./chunk-0xjaqda8.js";
122
- import"./chunk-x8d2ehd7.js";
123
- import"./chunk-3e28fvn0.js";
124
- import"./chunk-kjqyhxz7.js";
125
- import"./chunk-4ayjwyqj.js";
126
- import"./chunk-qnfx3qtx.js";
127
- import"./chunk-40s88wdg.js";
128
- import"./chunk-5cxjxxx8.js";
129
- import"./chunk-s8kj6ajy.js";
130
- import"./chunk-qcrpqjya.js";
131
- import"./chunk-skp5w8bq.js";
132
- import"./chunk-5z28bqne.js";
133
- import"./chunk-qajrkk97.js";
134
- import"./chunk-pd2vy8hx.js";
135
- import"./chunk-nsc89h0n.js";
136
- import"./chunk-fbv4apne.js";
137
- import"./chunk-k8vp0atq.js";
138
- import"./chunk-vf612n57.js";
139
- import"./chunk-07069jq1.js";
140
- import"./chunk-d4mdda98.js";
141
- import"./chunk-55raexh7.js";
142
- import"./chunk-v9smspw2.js";
143
- import"./chunk-v1kzp02e.js";
144
- import"./chunk-7wm5s02e.js";
145
- import"./chunk-b0kf00ff.js";
146
- import"./chunk-netzwgv1.js";
147
- import"./chunk-qp2qdcda.js";
148
- export {
149
- REPL
150
- };
@@ -1,125 +0,0 @@
1
- // @bun
2
- import {
3
- init_log,
4
- logError
5
- } from "./chunk-5cxjxxx8.js";
6
- import {
7
- getFsImplementation,
8
- init_fsOperations
9
- } from "./chunk-pd2vy8hx.js";
10
- import {
11
- init_memoize,
12
- memoize_default
13
- } from "./chunk-vf612n57.js";
14
- import {
15
- __esm
16
- } from "./chunk-qp2qdcda.js";
17
-
18
- // src/utils/platform.ts
19
- import { readdir, readFile } from "fs/promises";
20
- import { release as osRelease } from "os";
21
- async function detectVcs(dir) {
22
- const detected = new Set;
23
- if (process.env.P4PORT) {
24
- detected.add("perforce");
25
- }
26
- try {
27
- const targetDir = dir ?? getFsImplementation().cwd();
28
- const entries = new Set(await readdir(targetDir));
29
- for (const [marker, vcs] of VCS_MARKERS) {
30
- if (entries.has(marker)) {
31
- detected.add(vcs);
32
- }
33
- }
34
- } catch {}
35
- return [...detected];
36
- }
37
- var SUPPORTED_PLATFORMS, getPlatform, getWslVersion, getLinuxDistroInfo, VCS_MARKERS;
38
- var init_platform = __esm(() => {
39
- init_memoize();
40
- init_fsOperations();
41
- init_log();
42
- SUPPORTED_PLATFORMS = ["macos", "wsl"];
43
- getPlatform = memoize_default(() => {
44
- try {
45
- if (process.platform === "darwin") {
46
- return "macos";
47
- }
48
- if (process.platform === "win32") {
49
- return "windows";
50
- }
51
- if (process.platform === "linux") {
52
- try {
53
- const procVersion = getFsImplementation().readFileSync("/proc/version", { encoding: "utf8" });
54
- if (procVersion.toLowerCase().includes("microsoft") || procVersion.toLowerCase().includes("wsl")) {
55
- return "wsl";
56
- }
57
- } catch (error) {
58
- logError(error);
59
- }
60
- return "linux";
61
- }
62
- return "unknown";
63
- } catch (error) {
64
- logError(error);
65
- return "unknown";
66
- }
67
- });
68
- getWslVersion = memoize_default(() => {
69
- if (process.platform !== "linux") {
70
- return;
71
- }
72
- try {
73
- const procVersion = getFsImplementation().readFileSync("/proc/version", {
74
- encoding: "utf8"
75
- });
76
- const wslVersionMatch = procVersion.match(/WSL(\d+)/i);
77
- if (wslVersionMatch && wslVersionMatch[1]) {
78
- return wslVersionMatch[1];
79
- }
80
- if (procVersion.toLowerCase().includes("microsoft")) {
81
- return "1";
82
- }
83
- return;
84
- } catch (error) {
85
- logError(error);
86
- return;
87
- }
88
- });
89
- getLinuxDistroInfo = memoize_default(async () => {
90
- if (process.platform !== "linux") {
91
- return;
92
- }
93
- const result = {
94
- linuxKernel: osRelease()
95
- };
96
- try {
97
- const content = await readFile("/etc/os-release", "utf8");
98
- for (const line of content.split(`
99
- `)) {
100
- const match = line.match(/^(ID|VERSION_ID)=(.*)$/);
101
- if (match && match[1] && match[2]) {
102
- const value = match[2].replace(/^"|"$/g, "");
103
- if (match[1] === "ID") {
104
- result.linuxDistroId = value;
105
- } else {
106
- result.linuxDistroVersion = value;
107
- }
108
- }
109
- }
110
- } catch {}
111
- return result;
112
- });
113
- VCS_MARKERS = [
114
- [".git", "git"],
115
- [".hg", "mercurial"],
116
- [".svn", "svn"],
117
- [".p4config", "perforce"],
118
- ["$tf", "tfs"],
119
- [".tfvc", "tfs"],
120
- [".jj", "jujutsu"],
121
- [".sl", "sapling"]
122
- ];
123
- });
124
-
125
- export { SUPPORTED_PLATFORMS, getPlatform, getWslVersion, getLinuxDistroInfo, detectVcs, init_platform };