@caspian2026/agent-sdk 0.0.24 → 0.0.26

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 (362) hide show
  1. package/dist/gateway/index.js +98 -22
  2. package/dist/gateway/worker.js +196 -47
  3. package/dist/sdk/query.cjs +2 -362
  4. package/dist/sdk/query.js +2 -367
  5. package/package.json +4 -6
  6. package/dist/chunk-05kvhzd7.js +0 -3561
  7. package/dist/chunk-07069jq1.js +0 -30
  8. package/dist/chunk-0731m51q.js +0 -8
  9. package/dist/chunk-08bspa4b.js +0 -673
  10. package/dist/chunk-0brkf8q8.js +0 -89
  11. package/dist/chunk-0n843xh7.js +0 -261
  12. package/dist/chunk-0nbp5jwx.js +0 -8583
  13. package/dist/chunk-0nj16az9.js +0 -169
  14. package/dist/chunk-0paqc2yw.js +0 -15
  15. package/dist/chunk-0q6b50ps.js +0 -111
  16. package/dist/chunk-0r5bb9j4.js +0 -477
  17. package/dist/chunk-0rpz1wgn.js +0 -1030
  18. package/dist/chunk-0t81d427.js +0 -41
  19. package/dist/chunk-0vaw02wq.js +0 -24
  20. package/dist/chunk-0vkfrmqm.js +0 -690
  21. package/dist/chunk-0vp3wfab.js +0 -12
  22. package/dist/chunk-0vr10742.js +0 -1809
  23. package/dist/chunk-0xjaqda8.js +0 -1124
  24. package/dist/chunk-13ehyphg.js +0 -223
  25. package/dist/chunk-15jsw9bb.js +0 -349
  26. package/dist/chunk-16m7eyyw.js +0 -1385
  27. package/dist/chunk-1ae3nt9j.js +0 -31
  28. package/dist/chunk-1gq4r3v1.js +0 -308
  29. package/dist/chunk-1gx78081.js +0 -66
  30. package/dist/chunk-1h2famwb.js +0 -49
  31. package/dist/chunk-1n546sfg.js +0 -200
  32. package/dist/chunk-1qg06d60.js +0 -494
  33. package/dist/chunk-1t0rqstn.js +0 -146
  34. package/dist/chunk-1z8p2eqd.js +0 -40
  35. package/dist/chunk-1zjh9cc5.js +0 -266
  36. package/dist/chunk-20ahkkrb.js +0 -132
  37. package/dist/chunk-21pbfch8.js +0 -105
  38. package/dist/chunk-26wtxbdc.js +0 -13870
  39. package/dist/chunk-2fwze72g.js +0 -24
  40. package/dist/chunk-2gcbr1c7.js +0 -107
  41. package/dist/chunk-2grc1yr8.js +0 -654
  42. package/dist/chunk-2gzv8nrw.js +0 -205
  43. package/dist/chunk-2r212cvt.js +0 -253
  44. package/dist/chunk-2s74bt6e.js +0 -317
  45. package/dist/chunk-2v385w7r.js +0 -7422
  46. package/dist/chunk-2wtkvpp2.js +0 -167
  47. package/dist/chunk-31rsspfr.js +0 -418
  48. package/dist/chunk-3c25bcsw.js +0 -17
  49. package/dist/chunk-3jm08aaw.js +0 -91
  50. package/dist/chunk-3mgywd32.js +0 -8
  51. package/dist/chunk-3nk79af8.js +0 -8
  52. package/dist/chunk-3v4sk2py.js +0 -101
  53. package/dist/chunk-3vwft0eh.js +0 -349
  54. package/dist/chunk-3vy1jt9p.js +0 -1010
  55. package/dist/chunk-3wvqzq9w.js +0 -92
  56. package/dist/chunk-3wvv2s8d.js +0 -336
  57. package/dist/chunk-4060b3s2.js +0 -108
  58. package/dist/chunk-434e0vh4.js +0 -275
  59. package/dist/chunk-46dm23zs.js +0 -344
  60. package/dist/chunk-4bh4qs70.js +0 -209
  61. package/dist/chunk-4cxzbqws.js +0 -94
  62. package/dist/chunk-4jm600zv.js +0 -13
  63. package/dist/chunk-4k9d7gxv.js +0 -118
  64. package/dist/chunk-4nc3t6ms.js +0 -396
  65. package/dist/chunk-4pbx3g7s.js +0 -26
  66. package/dist/chunk-4qhh8bpa.js +0 -54
  67. package/dist/chunk-4v63px9y.js +0 -133
  68. package/dist/chunk-4xnnzt3j.js +0 -74
  69. package/dist/chunk-4zchh01h.js +0 -201
  70. package/dist/chunk-5216fha8.js +0 -1163
  71. package/dist/chunk-55raexh7.js +0 -14358
  72. package/dist/chunk-5bffhf64.js +0 -81
  73. package/dist/chunk-5ccdsxgy.js +0 -74
  74. package/dist/chunk-5ddh2hyn.js +0 -91
  75. package/dist/chunk-5e6ncq5j.js +0 -61
  76. package/dist/chunk-5ekyhb1w.js +0 -422
  77. package/dist/chunk-5fy4r8rv.js +0 -52
  78. package/dist/chunk-5h5kx2jd.js +0 -34
  79. package/dist/chunk-5mbgdvyz.js +0 -847
  80. package/dist/chunk-5n1jc02d.js +0 -87
  81. package/dist/chunk-5pysjah8.js +0 -1543
  82. package/dist/chunk-5ssfz438.js +0 -323
  83. package/dist/chunk-5z28bqne.js +0 -6748
  84. package/dist/chunk-603y0mmg.js +0 -50
  85. package/dist/chunk-62v5kkff.js +0 -90
  86. package/dist/chunk-64c1avct.js +0 -13
  87. package/dist/chunk-64r16v22.js +0 -162
  88. package/dist/chunk-64smdx4a.js +0 -418
  89. package/dist/chunk-66zry909.js +0 -11
  90. package/dist/chunk-68ffk5qa.js +0 -14
  91. package/dist/chunk-69n11zng.js +0 -436
  92. package/dist/chunk-6dj5t602.js +0 -341
  93. package/dist/chunk-6dngjwkh.js +0 -63
  94. package/dist/chunk-6nsd9606.js +0 -790
  95. package/dist/chunk-6pkh8frk.js +0 -253
  96. package/dist/chunk-6qcmt5eb.js +0 -251
  97. package/dist/chunk-6ww7451s.js +0 -60
  98. package/dist/chunk-6xgb0kqz.js +0 -90
  99. package/dist/chunk-72ys9m07.js +0 -121
  100. package/dist/chunk-741sgvtx.js +0 -121
  101. package/dist/chunk-7aw745vx.js +0 -40175
  102. package/dist/chunk-7c8b8cfb.js +0 -219
  103. package/dist/chunk-7mwt4e1z.js +0 -234
  104. package/dist/chunk-7sgtxrsc.js +0 -1059
  105. package/dist/chunk-7wm5s02e.js +0 -216
  106. package/dist/chunk-7xyswgjh.js +0 -8
  107. package/dist/chunk-80a197ez.js +0 -1438
  108. package/dist/chunk-83hfzbx3.js +0 -10
  109. package/dist/chunk-8akrsgad.js +0 -55
  110. package/dist/chunk-8g5pe1gr.js +0 -37
  111. package/dist/chunk-8s07t4k7.js +0 -40
  112. package/dist/chunk-8yhf030a.js +0 -69
  113. package/dist/chunk-928tzaa8.js +0 -107
  114. package/dist/chunk-949pjzj9.js +0 -266
  115. package/dist/chunk-9aycd4z9.js +0 -490
  116. package/dist/chunk-9bzqvsz5.js +0 -211
  117. package/dist/chunk-9q3xfy27.js +0 -460
  118. package/dist/chunk-9vzg1360.js +0 -153
  119. package/dist/chunk-9wbh8n1y.js +0 -63
  120. package/dist/chunk-9x5zgy22.js +0 -12
  121. package/dist/chunk-9zdj4ypz.js +0 -206
  122. package/dist/chunk-a0bvcgyd.js +0 -127
  123. package/dist/chunk-a4m3yr2q.js +0 -117
  124. package/dist/chunk-a8jd4gee.js +0 -227
  125. package/dist/chunk-ase86y73.js +0 -15
  126. package/dist/chunk-atfzpm6r.js +0 -325
  127. package/dist/chunk-awqsddp2.js +0 -338
  128. package/dist/chunk-awrgzpk6.js +0 -29
  129. package/dist/chunk-b0kf00ff.js +0 -637
  130. package/dist/chunk-b1kcd3ss.js +0 -27
  131. package/dist/chunk-b4hy21c4.js +0 -140
  132. package/dist/chunk-b9mkm8mg.js +0 -111
  133. package/dist/chunk-bdjx14rd.js +0 -594
  134. package/dist/chunk-bfb41q9h.js +0 -295
  135. package/dist/chunk-bg4x9ex0.js +0 -21
  136. package/dist/chunk-bh5zqvyc.js +0 -36
  137. package/dist/chunk-bn0zv2y2.js +0 -1154
  138. package/dist/chunk-bn7t681c.js +0 -2669
  139. package/dist/chunk-br4wgffc.js +0 -393
  140. package/dist/chunk-brjd9zmk.js +0 -42
  141. package/dist/chunk-byfawrfx.js +0 -121
  142. package/dist/chunk-c6sjhj89.js +0 -1284
  143. package/dist/chunk-c7jwbe76.js +0 -29030
  144. package/dist/chunk-cdef9v7b.js +0 -27
  145. package/dist/chunk-cdz5yb0r.js +0 -57
  146. package/dist/chunk-cevq1787.js +0 -2718
  147. package/dist/chunk-cgfdkzhb.js +0 -12
  148. package/dist/chunk-cgqw4x5z.js +0 -155
  149. package/dist/chunk-cmmmc8e0.js +0 -212
  150. package/dist/chunk-cnsj3vq2.js +0 -35
  151. package/dist/chunk-cxrktb5g.js +0 -51
  152. package/dist/chunk-cyhrb0bk.js +0 -251
  153. package/dist/chunk-d23rmn8r.js +0 -62
  154. package/dist/chunk-d4mdda98.js +0 -94
  155. package/dist/chunk-dcwp94cj.js +0 -152
  156. package/dist/chunk-ddsjkqs4.js +0 -39
  157. package/dist/chunk-ddv56j39.js +0 -148
  158. package/dist/chunk-dfq6pbq7.js +0 -5822
  159. package/dist/chunk-dfzkwynj.js +0 -5368
  160. package/dist/chunk-dkgkd8b7.js +0 -516
  161. package/dist/chunk-dpnmf0pq.js +0 -312
  162. package/dist/chunk-dygx7vcc.js +0 -226
  163. package/dist/chunk-e0abab5b.js +0 -445
  164. package/dist/chunk-e5qhvhjy.js +0 -168
  165. package/dist/chunk-e60y6r1n.js +0 -20
  166. package/dist/chunk-e68kgvcq.js +0 -79
  167. package/dist/chunk-e9w9zc0g.js +0 -392
  168. package/dist/chunk-ecj9w6tm.js +0 -558
  169. package/dist/chunk-ehtwnxpg.js +0 -1591
  170. package/dist/chunk-eqp1rfft.js +0 -17
  171. package/dist/chunk-etdt1xz3.js +0 -19
  172. package/dist/chunk-ewadzrm8.js +0 -103
  173. package/dist/chunk-f03s83vj.js +0 -91
  174. package/dist/chunk-f3kk0p3s.js +0 -150
  175. package/dist/chunk-f3pjerx4.js +0 -4265
  176. package/dist/chunk-f6h5weh6.js +0 -61
  177. package/dist/chunk-fajg8x36.js +0 -8158
  178. package/dist/chunk-fbv4apne.js +0 -51
  179. package/dist/chunk-fcynwjpm.js +0 -1072
  180. package/dist/chunk-fdvaf6nn.js +0 -20
  181. package/dist/chunk-feyzykye.js +0 -10
  182. package/dist/chunk-ff85rwvc.js +0 -180
  183. package/dist/chunk-fqak69ft.js +0 -458
  184. package/dist/chunk-fxdkbabd.js +0 -195
  185. package/dist/chunk-fyc5fepv.js +0 -10
  186. package/dist/chunk-g78c6ztj.js +0 -89
  187. package/dist/chunk-g8ee7yza.js +0 -105
  188. package/dist/chunk-g9f19ttm.js +0 -15
  189. package/dist/chunk-gcktsbxb.js +0 -77
  190. package/dist/chunk-gdwdqewd.js +0 -19
  191. package/dist/chunk-gg55fns0.js +0 -6440
  192. package/dist/chunk-gnpt1t6q.js +0 -209364
  193. package/dist/chunk-gsbw2j2b.js +0 -276
  194. package/dist/chunk-gybt680f.js +0 -9114
  195. package/dist/chunk-gz1e8y1w.js +0 -33
  196. package/dist/chunk-gz7vn2gg.js +0 -114
  197. package/dist/chunk-h0d5eat0.js +0 -101
  198. package/dist/chunk-h27tjbp3.js +0 -33118
  199. package/dist/chunk-h2yy8k4c.js +0 -58
  200. package/dist/chunk-h5acpdqt.js +0 -103
  201. package/dist/chunk-h63r8vps.js +0 -2840
  202. package/dist/chunk-h64x5b04.js +0 -860
  203. package/dist/chunk-h92snc84.js +0 -420
  204. package/dist/chunk-h9n54swm.js +0 -27
  205. package/dist/chunk-hafcrnpc.js +0 -145
  206. package/dist/chunk-hakdhagh.js +0 -16606
  207. package/dist/chunk-hk4phsaw.js +0 -388
  208. package/dist/chunk-hph1bmqw.js +0 -65
  209. package/dist/chunk-hvnztnp3.js +0 -71
  210. package/dist/chunk-hwfknpxv.js +0 -39
  211. package/dist/chunk-j2xxd002.js +0 -1052
  212. package/dist/chunk-j3qbygme.js +0 -105
  213. package/dist/chunk-j5bth84e.js +0 -97
  214. package/dist/chunk-j64ga6ta.js +0 -8035
  215. package/dist/chunk-jbwgyskk.js +0 -385
  216. package/dist/chunk-jd32zbps.js +0 -15
  217. package/dist/chunk-jdhkh2bb.js +0 -618
  218. package/dist/chunk-jeqcwgt7.js +0 -177
  219. package/dist/chunk-jf75p9ap.js +0 -445
  220. package/dist/chunk-jgvk0za1.js +0 -260
  221. package/dist/chunk-jhpaevah.js +0 -565
  222. package/dist/chunk-jmjwrbwd.js +0 -635
  223. package/dist/chunk-jpdbfwvq.js +0 -100
  224. package/dist/chunk-jps4m6sz.js +0 -183
  225. package/dist/chunk-jwf0s51s.js +0 -867
  226. package/dist/chunk-jxge4dgh.js +0 -83
  227. package/dist/chunk-jz71gv95.js +0 -1161
  228. package/dist/chunk-jzthz1bx.js +0 -15
  229. package/dist/chunk-jzvd2ycp.js +0 -120
  230. package/dist/chunk-k0p9w03v.js +0 -4957
  231. package/dist/chunk-k4dcreh0.js +0 -442
  232. package/dist/chunk-k7akhwkn.js +0 -151
  233. package/dist/chunk-k8vp0atq.js +0 -2331
  234. package/dist/chunk-kgd7gfvk.js +0 -407
  235. package/dist/chunk-km5ycg1j.js +0 -87
  236. package/dist/chunk-kvyrxzj8.js +0 -26
  237. package/dist/chunk-kwekc97v.js +0 -18
  238. package/dist/chunk-ky1z78ve.js +0 -119
  239. package/dist/chunk-mcws22k3.js +0 -42
  240. package/dist/chunk-mjazvyd8.js +0 -528
  241. package/dist/chunk-mswx2nma.js +0 -103
  242. package/dist/chunk-mz6a0phh.js +0 -2962
  243. package/dist/chunk-n2tg12hg.js +0 -374
  244. package/dist/chunk-n3fv4ya7.js +0 -146
  245. package/dist/chunk-n4eabmqd.js +0 -93
  246. package/dist/chunk-n4tx7baq.js +0 -193
  247. package/dist/chunk-n6g4jbeh.js +0 -289
  248. package/dist/chunk-n6wzfxf1.js +0 -100
  249. package/dist/chunk-ndcmqfkv.js +0 -244
  250. package/dist/chunk-netzwgv1.js +0 -154
  251. package/dist/chunk-nhcg04jt.js +0 -120
  252. package/dist/chunk-nhsm3ntd.js +0 -439
  253. package/dist/chunk-njev89d1.js +0 -2335
  254. package/dist/chunk-nmgj86tt.js +0 -24
  255. package/dist/chunk-ns7x6xam.js +0 -22820
  256. package/dist/chunk-p7vkh4wx.js +0 -15
  257. package/dist/chunk-p8na2wwp.js +0 -14
  258. package/dist/chunk-p97fd5af.js +0 -684
  259. package/dist/chunk-pe3rkfp2.js +0 -74
  260. package/dist/chunk-pgtnj1mt.js +0 -705
  261. package/dist/chunk-phmnkw9y.js +0 -283
  262. package/dist/chunk-pnds7g1q.js +0 -130
  263. package/dist/chunk-ppwjyveh.js +0 -8
  264. package/dist/chunk-pqqxdk5f.js +0 -543
  265. package/dist/chunk-ps49ymvj.js +0 -43
  266. package/dist/chunk-pwwa7s62.js +0 -11
  267. package/dist/chunk-q3hfrat2.js +0 -313
  268. package/dist/chunk-qajrkk97.js +0 -298
  269. package/dist/chunk-qatfdxvd.js +0 -34
  270. package/dist/chunk-qb5qcctj.js +0 -206
  271. package/dist/chunk-qb6k2afy.js +0 -153
  272. package/dist/chunk-qgk93a75.js +0 -85
  273. package/dist/chunk-qkczt8cr.js +0 -24
  274. package/dist/chunk-qn1be1vf.js +0 -267
  275. package/dist/chunk-qnfx3qtx.js +0 -617
  276. package/dist/chunk-qnwne2m4.js +0 -87
  277. package/dist/chunk-qp2qdcda.js +0 -100
  278. package/dist/chunk-qpp3wwh5.js +0 -697
  279. package/dist/chunk-r0bx1gc7.js +0 -174
  280. package/dist/chunk-radnwk8x.js +0 -107
  281. package/dist/chunk-rkv5jq0y.js +0 -71
  282. package/dist/chunk-rmbbmd3s.js +0 -68
  283. package/dist/chunk-rmgbs5an.js +0 -640
  284. package/dist/chunk-rn0v1hk8.js +0 -34
  285. package/dist/chunk-rnxctq9p.js +0 -1646
  286. package/dist/chunk-rtd39n81.js +0 -95
  287. package/dist/chunk-s8gy4ky9.js +0 -122
  288. package/dist/chunk-s8kj6ajy.js +0 -32
  289. package/dist/chunk-sd36yzx8.js +0 -954
  290. package/dist/chunk-sdenh194.js +0 -121
  291. package/dist/chunk-sdtqp75c.js +0 -55
  292. package/dist/chunk-sedbc8ep.js +0 -212
  293. package/dist/chunk-sfrb15b2.js +0 -321
  294. package/dist/chunk-sgpmpn90.js +0 -35
  295. package/dist/chunk-sh02d2qn.js +0 -38
  296. package/dist/chunk-shd4yhsf.js +0 -32
  297. package/dist/chunk-shkycj1q.js +0 -178
  298. package/dist/chunk-sk7h93je.js +0 -153
  299. package/dist/chunk-sm8g6fsm.js +0 -122
  300. package/dist/chunk-snrjy66h.js +0 -671
  301. package/dist/chunk-sq4a0yjh.js +0 -116
  302. package/dist/chunk-sr3t4thh.js +0 -895
  303. package/dist/chunk-srj6qnf6.js +0 -107
  304. package/dist/chunk-sz62n77p.js +0 -155
  305. package/dist/chunk-szj5wvdy.js +0 -28
  306. package/dist/chunk-t29a6zb5.js +0 -45
  307. package/dist/chunk-t2ecddwj.js +0 -731
  308. package/dist/chunk-t33hmmmm.js +0 -113
  309. package/dist/chunk-t4khqff1.js +0 -16
  310. package/dist/chunk-t9p85zff.js +0 -24
  311. package/dist/chunk-ta3jyvxs.js +0 -984
  312. package/dist/chunk-tkx5eec8.js +0 -54
  313. package/dist/chunk-v1kzp02e.js +0 -785
  314. package/dist/chunk-v4t6dyyh.js +0 -9076
  315. package/dist/chunk-v78fj8by.js +0 -145
  316. package/dist/chunk-v8kjswxt.js +0 -61
  317. package/dist/chunk-v9smspw2.js +0 -4301
  318. package/dist/chunk-vf612n57.js +0 -472
  319. package/dist/chunk-vkhrrvfq.js +0 -44
  320. package/dist/chunk-vt5wm07k.js +0 -74
  321. package/dist/chunk-vvvrv61g.js +0 -875
  322. package/dist/chunk-vyjeh50y.js +0 -2149
  323. package/dist/chunk-w0kxcv73.js +0 -97
  324. package/dist/chunk-w6m6trzq.js +0 -58
  325. package/dist/chunk-wa8yn2p0.js +0 -2007
  326. package/dist/chunk-wb18cecv.js +0 -995
  327. package/dist/chunk-wgk9sxk7.js +0 -329
  328. package/dist/chunk-wh0ev1bw.js +0 -111
  329. package/dist/chunk-wka1647p.js +0 -98
  330. package/dist/chunk-wnwfwyj4.js +0 -90
  331. package/dist/chunk-wpdchyy2.js +0 -97
  332. package/dist/chunk-x3g44n7k.js +0 -114
  333. package/dist/chunk-x47h283a.js +0 -56
  334. package/dist/chunk-x6r4v44b.js +0 -8
  335. package/dist/chunk-x7fdwq3d.js +0 -33
  336. package/dist/chunk-x8d2ehd7.js +0 -19
  337. package/dist/chunk-xbeg2hej.js +0 -257
  338. package/dist/chunk-xeb6075z.js +0 -3435
  339. package/dist/chunk-xhfmdq1y.js +0 -147
  340. package/dist/chunk-xhscn33a.js +0 -138
  341. package/dist/chunk-xv3era3s.js +0 -8
  342. package/dist/chunk-xz5gbhc3.js +0 -93
  343. package/dist/chunk-y1784krc.js +0 -19
  344. package/dist/chunk-y1vyezct.js +0 -123
  345. package/dist/chunk-y45ecntg.js +0 -942
  346. package/dist/chunk-y4ca9kqz.js +0 -3830
  347. package/dist/chunk-y9bhjjdz.js +0 -145
  348. package/dist/chunk-yb3bxv3w.js +0 -30
  349. package/dist/chunk-ye2q9gqj.js +0 -332
  350. package/dist/chunk-yfg3adfq.js +0 -88
  351. package/dist/chunk-yst0wmgw.js +0 -269
  352. package/dist/chunk-ywe9dbnz.js +0 -460
  353. package/dist/chunk-yyex5gsf.js +0 -269
  354. package/dist/chunk-yz2kzqk5.js +0 -439
  355. package/dist/chunk-z263ehpg.js +0 -131
  356. package/dist/chunk-z2dp53wn.js +0 -17
  357. package/dist/chunk-zaq348h2.js +0 -281
  358. package/dist/chunk-zr0qx9q0.js +0 -642
  359. package/dist/chunk-zxh62ved.js +0 -31
  360. package/dist/chunk-zy5vn8sd.js +0 -329
  361. package/dist/chunk-zzm33q8x.js +0 -8
  362. package/dist/cli.js +0 -91
@@ -1,92 +0,0 @@
1
- // @bun
2
- import {
3
- call,
4
- init_thinkback,
5
- playAnimation
6
- } from "./chunk-nhsm3ntd.js";
7
- import"./chunk-zr0qx9q0.js";
8
- import"./chunk-9zdj4ypz.js";
9
- import"./chunk-gnpt1t6q.js";
10
- import"./chunk-mcws22k3.js";
11
- import"./chunk-jzthz1bx.js";
12
- import"./chunk-f6h5weh6.js";
13
- import"./chunk-hwfknpxv.js";
14
- import"./chunk-1gx78081.js";
15
- import"./chunk-ehtwnxpg.js";
16
- import"./chunk-e68kgvcq.js";
17
- import"./chunk-p97fd5af.js";
18
- import"./chunk-x47h283a.js";
19
- import"./chunk-wb18cecv.js";
20
- import"./chunk-2gzv8nrw.js";
21
- import"./chunk-e0abab5b.js";
22
- import"./chunk-cgfdkzhb.js";
23
- import"./chunk-4k9d7gxv.js";
24
- import"./chunk-j5bth84e.js";
25
- import"./chunk-t2ecddwj.js";
26
- import"./chunk-68ffk5qa.js";
27
- import"./chunk-ps49ymvj.js";
28
- import"./chunk-dkgkd8b7.js";
29
- import"./chunk-5pysjah8.js";
30
- import"./chunk-pgtnj1mt.js";
31
- import"./chunk-hph1bmqw.js";
32
- import"./chunk-p7vkh4wx.js";
33
- import"./chunk-y9bhjjdz.js";
34
- import"./chunk-dcwp94cj.js";
35
- import"./chunk-tkx5eec8.js";
36
- import"./chunk-dfzkwynj.js";
37
- import"./chunk-xeb6075z.js";
38
- import"./chunk-fcynwjpm.js";
39
- import"./chunk-v4t6dyyh.js";
40
- import"./chunk-zy5vn8sd.js";
41
- import"./chunk-v8kjswxt.js";
42
- import"./chunk-dfq6pbq7.js";
43
- import"./chunk-rnxctq9p.js";
44
- import"./chunk-pqqxdk5f.js";
45
- import"./chunk-6nsd9606.js";
46
- import"./chunk-64c1avct.js";
47
- import"./chunk-8g5pe1gr.js";
48
- import"./chunk-4pbx3g7s.js";
49
- import"./chunk-26wtxbdc.js";
50
- import"./chunk-6dngjwkh.js";
51
- import"./chunk-4jm600zv.js";
52
- import"./chunk-s8gy4ky9.js";
53
- import"./chunk-cxrktb5g.js";
54
- import"./chunk-3c25bcsw.js";
55
- import"./chunk-5ekyhb1w.js";
56
- import"./chunk-fqak69ft.js";
57
- import"./chunk-cdz5yb0r.js";
58
- import"./chunk-c7jwbe76.js";
59
- import"./chunk-0vkfrmqm.js";
60
- import"./chunk-7sgtxrsc.js";
61
- import"./chunk-0xjaqda8.js";
62
- import"./chunk-x8d2ehd7.js";
63
- import"./chunk-byfawrfx.js";
64
- import"./chunk-3vy1jt9p.js";
65
- import"./chunk-vkhrrvfq.js";
66
- import"./chunk-qnfx3qtx.js";
67
- import"./chunk-64r16v22.js";
68
- import"./chunk-s8kj6ajy.js";
69
- import"./chunk-8yhf030a.js";
70
- import"./chunk-zxh62ved.js";
71
- import"./chunk-5z28bqne.js";
72
- import"./chunk-qajrkk97.js";
73
- import"./chunk-gg55fns0.js";
74
- import"./chunk-5n1jc02d.js";
75
- import"./chunk-fbv4apne.js";
76
- import"./chunk-k8vp0atq.js";
77
- import"./chunk-vf612n57.js";
78
- import"./chunk-07069jq1.js";
79
- import"./chunk-d4mdda98.js";
80
- import"./chunk-55raexh7.js";
81
- import"./chunk-v9smspw2.js";
82
- import"./chunk-v1kzp02e.js";
83
- import"./chunk-7wm5s02e.js";
84
- import"./chunk-b0kf00ff.js";
85
- import"./chunk-netzwgv1.js";
86
- import"./chunk-qp2qdcda.js";
87
- init_thinkback();
88
-
89
- export {
90
- playAnimation,
91
- call
92
- };
@@ -1,336 +0,0 @@
1
- // @bun
2
- import {
3
- BROWSER_TOOLS,
4
- init_src
5
- } from "./chunk-wa8yn2p0.js";
6
- import {
7
- getChromeSystemPrompt,
8
- init_prompt
9
- } from "./chunk-1gx78081.js";
10
- import {
11
- CLAUDE_IN_CHROME_MCP_SERVER_NAME,
12
- getAllBrowserDataPaths,
13
- getAllNativeMessagingHostsDirs,
14
- getAllWindowsRegistryKeys,
15
- init_common,
16
- openInChrome
17
- } from "./chunk-e0abab5b.js";
18
- import {
19
- getFeatureValue_CACHED_MAY_BE_STALE,
20
- getGlobalConfig,
21
- init_config,
22
- init_growthbook,
23
- saveGlobalConfig
24
- } from "./chunk-dfq6pbq7.js";
25
- import {
26
- init_bundledMode,
27
- isInBundledMode
28
- } from "./chunk-5ekyhb1w.js";
29
- import {
30
- execFileNoThrowWithCwd,
31
- init_execFileNoThrow
32
- } from "./chunk-64r16v22.js";
33
- import {
34
- getPlatform,
35
- init_debug,
36
- init_errors,
37
- init_platform,
38
- init_slowOperations,
39
- isFsInaccessible,
40
- jsonStringify,
41
- logForDebugging
42
- } from "./chunk-gg55fns0.js";
43
- import {
44
- getClaudeConfigHomeDir,
45
- init_envUtils,
46
- isEnvDefinedFalsy,
47
- isEnvTruthy
48
- } from "./chunk-5n1jc02d.js";
49
- import {
50
- getIsInteractive,
51
- getIsNonInteractiveSession,
52
- getSessionBypassPermissionsMode,
53
- init_state
54
- } from "./chunk-k8vp0atq.js";
55
- import {
56
- __esm
57
- } from "./chunk-qp2qdcda.js";
58
-
59
- // src/utils/claudeInChrome/setupPortable.ts
60
- import { readdir } from "fs/promises";
61
- import { join } from "path";
62
- function getExtensionIds() {
63
- return process.env.USER_TYPE === "ant" ? [PROD_EXTENSION_ID, DEV_EXTENSION_ID, ANT_EXTENSION_ID] : [PROD_EXTENSION_ID];
64
- }
65
- async function detectExtensionInstallationPortable(browserPaths, log) {
66
- if (browserPaths.length === 0) {
67
- log?.(`[Claude in Chrome] No browser paths to check`);
68
- return { isInstalled: false, browser: null };
69
- }
70
- const extensionIds = getExtensionIds();
71
- for (const { browser, path: browserBasePath } of browserPaths) {
72
- let browserProfileEntries = [];
73
- try {
74
- browserProfileEntries = await readdir(browserBasePath, {
75
- withFileTypes: true
76
- });
77
- } catch (e) {
78
- if (isFsInaccessible(e))
79
- continue;
80
- throw e;
81
- }
82
- const profileDirs = browserProfileEntries.filter((entry) => entry.isDirectory()).filter((entry) => entry.name === "Default" || entry.name.startsWith("Profile ")).map((entry) => entry.name);
83
- if (profileDirs.length > 0) {
84
- log?.(`[Claude in Chrome] Found ${browser} profiles: ${profileDirs.join(", ")}`);
85
- }
86
- for (const profile of profileDirs) {
87
- for (const extensionId of extensionIds) {
88
- const extensionPath = join(browserBasePath, profile, "Extensions", extensionId);
89
- try {
90
- await readdir(extensionPath);
91
- log?.(`[Claude in Chrome] Extension ${extensionId} found in ${browser} ${profile}`);
92
- return { isInstalled: true, browser };
93
- } catch {}
94
- }
95
- }
96
- }
97
- log?.(`[Claude in Chrome] Extension not found in any browser`);
98
- return { isInstalled: false, browser: null };
99
- }
100
- async function isChromeExtensionInstalledPortable(browserPaths, log) {
101
- const result = await detectExtensionInstallationPortable(browserPaths, log);
102
- return result.isInstalled;
103
- }
104
- var PROD_EXTENSION_ID = "fcoeoabgfenejglbffodgkkbkcdhcgfn", DEV_EXTENSION_ID = "dihbgbndebgnbjfmelmegjepbnkhlgni", ANT_EXTENSION_ID = "dngcpimnedloihjnnfngkgjoidhnaolf";
105
- var init_setupPortable = __esm(() => {
106
- init_errors();
107
- });
108
-
109
- // src/utils/claudeInChrome/setup.ts
110
- import { chmod, mkdir, readFile, writeFile } from "fs/promises";
111
- import { homedir } from "os";
112
- import { join as join2 } from "path";
113
- import { fileURLToPath } from "url";
114
- function shouldEnableClaudeInChrome(chromeFlag) {
115
- if (getIsNonInteractiveSession() && chromeFlag !== true) {
116
- return false;
117
- }
118
- if (chromeFlag === true) {
119
- return true;
120
- }
121
- if (chromeFlag === false) {
122
- return false;
123
- }
124
- if (isEnvTruthy(process.env.CLAUDE_CODE_ENABLE_CFC)) {
125
- return true;
126
- }
127
- if (isEnvDefinedFalsy(process.env.CLAUDE_CODE_ENABLE_CFC)) {
128
- return false;
129
- }
130
- const config = getGlobalConfig();
131
- if (config.claudeInChromeDefaultEnabled !== undefined) {
132
- return config.claudeInChromeDefaultEnabled;
133
- }
134
- return false;
135
- }
136
- function shouldAutoEnableClaudeInChrome() {
137
- if (shouldAutoEnable !== undefined) {
138
- return shouldAutoEnable;
139
- }
140
- shouldAutoEnable = getIsInteractive() && isChromeExtensionInstalled_CACHED_MAY_BE_STALE() && (process.env.USER_TYPE === "ant" || getFeatureValue_CACHED_MAY_BE_STALE("tengu_chrome_auto_enable", false));
141
- return shouldAutoEnable;
142
- }
143
- function setupClaudeInChrome() {
144
- const isNativeBuild = isInBundledMode();
145
- const allowedTools = BROWSER_TOOLS.map((tool) => `mcp__claude-in-chrome__${tool.name}`);
146
- const env = {};
147
- if (getSessionBypassPermissionsMode()) {
148
- env.CLAUDE_CHROME_PERMISSION_MODE = "skip_all_permission_checks";
149
- }
150
- const hasEnv = Object.keys(env).length > 0;
151
- if (isNativeBuild) {
152
- const execCommand = `"${process.execPath}" --chrome-native-host`;
153
- createWrapperScript(execCommand).then((manifestBinaryPath) => installChromeNativeHostManifest(manifestBinaryPath)).catch((e) => logForDebugging(`[Claude in Chrome] Failed to install native host: ${e}`, { level: "error" }));
154
- return {
155
- mcpConfig: {
156
- [CLAUDE_IN_CHROME_MCP_SERVER_NAME]: {
157
- type: "stdio",
158
- command: process.execPath,
159
- args: ["--claude-in-chrome-mcp"],
160
- scope: "dynamic",
161
- ...hasEnv && { env }
162
- }
163
- },
164
- allowedTools,
165
- systemPrompt: getChromeSystemPrompt()
166
- };
167
- } else {
168
- const __filename2 = fileURLToPath(import.meta.url);
169
- const __dirname2 = join2(__filename2, "..");
170
- const cliPath = join2(__dirname2, "cli.js");
171
- createWrapperScript(`"${process.execPath}" "${cliPath}" --chrome-native-host`).then((manifestBinaryPath) => installChromeNativeHostManifest(manifestBinaryPath)).catch((e) => logForDebugging(`[Claude in Chrome] Failed to install native host: ${e}`, { level: "error" }));
172
- const mcpConfig = {
173
- [CLAUDE_IN_CHROME_MCP_SERVER_NAME]: {
174
- type: "stdio",
175
- command: process.execPath,
176
- args: [`${cliPath}`, "--claude-in-chrome-mcp"],
177
- scope: "dynamic",
178
- ...hasEnv && { env }
179
- }
180
- };
181
- return {
182
- mcpConfig,
183
- allowedTools,
184
- systemPrompt: getChromeSystemPrompt()
185
- };
186
- }
187
- }
188
- function getNativeMessagingHostsDirs() {
189
- const platform = getPlatform();
190
- if (platform === "windows") {
191
- const home = homedir();
192
- const appData = process.env.APPDATA || join2(home, "AppData", "Local");
193
- return [join2(appData, "Claude Code", "ChromeNativeHost")];
194
- }
195
- return getAllNativeMessagingHostsDirs().map(({ path }) => path);
196
- }
197
- async function installChromeNativeHostManifest(manifestBinaryPath) {
198
- const manifestDirs = getNativeMessagingHostsDirs();
199
- if (manifestDirs.length === 0) {
200
- throw Error("Claude in Chrome Native Host not supported on this platform");
201
- }
202
- const manifest = {
203
- name: NATIVE_HOST_IDENTIFIER,
204
- description: "Claude Code Browser Extension Native Host",
205
- path: manifestBinaryPath,
206
- type: "stdio",
207
- allowed_origins: [
208
- `chrome-extension://fcoeoabgfenejglbffodgkkbkcdhcgfn/`,
209
- ...process.env.USER_TYPE === "ant" ? [
210
- "chrome-extension://dihbgbndebgnbjfmelmegjepbnkhlgni/",
211
- "chrome-extension://dngcpimnedloihjnnfngkgjoidhnaolf/"
212
- ] : []
213
- ]
214
- };
215
- const manifestContent = jsonStringify(manifest, null, 2);
216
- let anyManifestUpdated = false;
217
- for (const manifestDir of manifestDirs) {
218
- const manifestPath = join2(manifestDir, NATIVE_HOST_MANIFEST_NAME);
219
- const existingContent = await readFile(manifestPath, "utf-8").catch(() => null);
220
- if (existingContent === manifestContent) {
221
- continue;
222
- }
223
- try {
224
- await mkdir(manifestDir, { recursive: true });
225
- await writeFile(manifestPath, manifestContent);
226
- logForDebugging(`[Claude in Chrome] Installed native host manifest at: ${manifestPath}`);
227
- anyManifestUpdated = true;
228
- } catch (error) {
229
- logForDebugging(`[Claude in Chrome] Failed to install manifest at ${manifestPath}: ${error}`);
230
- }
231
- }
232
- if (getPlatform() === "windows") {
233
- const manifestPath = join2(manifestDirs[0], NATIVE_HOST_MANIFEST_NAME);
234
- registerWindowsNativeHosts(manifestPath);
235
- }
236
- if (anyManifestUpdated) {
237
- isChromeExtensionInstalled().then((isInstalled) => {
238
- if (isInstalled) {
239
- logForDebugging(`[Claude in Chrome] First-time install detected, opening reconnect page in browser`);
240
- openInChrome(CHROME_EXTENSION_RECONNECT_URL);
241
- } else {
242
- logForDebugging(`[Claude in Chrome] First-time install detected, but extension not installed, skipping reconnect`);
243
- }
244
- });
245
- }
246
- }
247
- function registerWindowsNativeHosts(manifestPath) {
248
- const registryKeys = getAllWindowsRegistryKeys();
249
- for (const { browser, key } of registryKeys) {
250
- const fullKey = `${key}\\${NATIVE_HOST_IDENTIFIER}`;
251
- execFileNoThrowWithCwd("reg", [
252
- "add",
253
- fullKey,
254
- "/ve",
255
- "/t",
256
- "REG_SZ",
257
- "/d",
258
- manifestPath,
259
- "/f"
260
- ]).then((result) => {
261
- if (result.code === 0) {
262
- logForDebugging(`[Claude in Chrome] Registered native host for ${browser} in Windows registry: ${fullKey}`);
263
- } else {
264
- logForDebugging(`[Claude in Chrome] Failed to register native host for ${browser} in Windows registry: ${result.stderr}`);
265
- }
266
- });
267
- }
268
- }
269
- async function createWrapperScript(command) {
270
- const platform = getPlatform();
271
- const chromeDir = join2(getClaudeConfigHomeDir(), "chrome");
272
- const wrapperPath = platform === "windows" ? join2(chromeDir, "chrome-native-host.bat") : join2(chromeDir, "chrome-native-host");
273
- const scriptContent = platform === "windows" ? `@echo off
274
- REM Chrome native host wrapper script
275
- REM Generated by Claude Code - do not edit manually
276
- ${command}
277
- ` : `#!/bin/sh
278
- # Chrome native host wrapper script
279
- # Generated by Claude Code - do not edit manually
280
- exec ${command}
281
- `;
282
- const existingContent = await readFile(wrapperPath, "utf-8").catch(() => null);
283
- if (existingContent === scriptContent) {
284
- return wrapperPath;
285
- }
286
- await mkdir(chromeDir, { recursive: true });
287
- await writeFile(wrapperPath, scriptContent);
288
- if (platform !== "windows") {
289
- await chmod(wrapperPath, 493);
290
- }
291
- logForDebugging(`[Claude in Chrome] Created Chrome native host wrapper script: ${wrapperPath}`);
292
- return wrapperPath;
293
- }
294
- function isChromeExtensionInstalled_CACHED_MAY_BE_STALE() {
295
- isChromeExtensionInstalled().then((isInstalled) => {
296
- if (!isInstalled) {
297
- return;
298
- }
299
- const config = getGlobalConfig();
300
- if (config.cachedChromeExtensionInstalled !== isInstalled) {
301
- saveGlobalConfig((prev) => ({
302
- ...prev,
303
- cachedChromeExtensionInstalled: isInstalled
304
- }));
305
- }
306
- });
307
- const cached = getGlobalConfig().cachedChromeExtensionInstalled;
308
- return cached ?? false;
309
- }
310
- async function isChromeExtensionInstalled() {
311
- const browserPaths = getAllBrowserDataPaths();
312
- if (browserPaths.length === 0) {
313
- logForDebugging(`[Claude in Chrome] Unsupported platform for extension detection: ${getPlatform()}`);
314
- return false;
315
- }
316
- return isChromeExtensionInstalledPortable(browserPaths, logForDebugging);
317
- }
318
- var CHROME_EXTENSION_RECONNECT_URL = "https://clau.de/chrome/reconnect", NATIVE_HOST_IDENTIFIER = "com.anthropic.claude_code_browser_extension", NATIVE_HOST_MANIFEST_NAME, shouldAutoEnable = undefined;
319
- var init_setup = __esm(() => {
320
- init_src();
321
- init_state();
322
- init_growthbook();
323
- init_bundledMode();
324
- init_config();
325
- init_debug();
326
- init_envUtils();
327
- init_execFileNoThrow();
328
- init_platform();
329
- init_slowOperations();
330
- init_common();
331
- init_prompt();
332
- init_setupPortable();
333
- NATIVE_HOST_MANIFEST_NAME = `${NATIVE_HOST_IDENTIFIER}.json`;
334
- });
335
-
336
- export { shouldEnableClaudeInChrome, shouldAutoEnableClaudeInChrome, setupClaudeInChrome, isChromeExtensionInstalled, init_setup };
@@ -1,108 +0,0 @@
1
- // @bun
2
- import {
3
- getGroveNoticeConfig,
4
- getGroveSettings,
5
- init_grove
6
- } from "./chunk-4bh4qs70.js";
7
- import {
8
- clearPolicyLimitsCache,
9
- clearToolSchemaCache,
10
- getSecureStorage,
11
- gracefulShutdownSync,
12
- init_gracefulShutdown,
13
- init_policyLimits,
14
- init_secureStorage,
15
- init_toolSchemaCache
16
- } from "./chunk-gnpt1t6q.js";
17
- import {
18
- clearBetasCaches,
19
- init_betas
20
- } from "./chunk-dkgkd8b7.js";
21
- import {
22
- init_auth,
23
- init_config,
24
- init_growthbook,
25
- init_user,
26
- refreshGrowthBookAfterAuthChange,
27
- removeApiKey,
28
- resetUserCache,
29
- saveGlobalConfig
30
- } from "./chunk-dfq6pbq7.js";
31
- import {
32
- ThemedText,
33
- init_src
34
- } from "./chunk-c7jwbe76.js";
35
- import {
36
- require_jsx_dev_runtime
37
- } from "./chunk-7sgtxrsc.js";
38
- import {
39
- __esm,
40
- __require,
41
- __toESM
42
- } from "./chunk-qp2qdcda.js";
43
-
44
- // src/commands/logout/logout.tsx
45
- async function performLogout({
46
- clearOnboarding = false
47
- }) {
48
- const { flushTelemetry } = await import("./chunk-b1kcd3ss.js");
49
- await flushTelemetry();
50
- await removeApiKey();
51
- const secureStorage = getSecureStorage();
52
- secureStorage.delete();
53
- await clearAuthRelatedCaches();
54
- saveGlobalConfig((current) => {
55
- const updated = { ...current };
56
- if (clearOnboarding) {
57
- updated.hasCompletedOnboarding = false;
58
- updated.subscriptionNoticeCount = 0;
59
- updated.hasAvailableSubscription = false;
60
- if (updated.customApiKeyResponses?.approved) {
61
- updated.customApiKeyResponses = {
62
- ...updated.customApiKeyResponses,
63
- approved: []
64
- };
65
- }
66
- }
67
- updated.oauthAccount = undefined;
68
- return updated;
69
- });
70
- }
71
- async function clearAuthRelatedCaches() {
72
- clearTrustedDeviceTokenCache();
73
- clearBetasCaches();
74
- clearToolSchemaCache();
75
- resetUserCache();
76
- refreshGrowthBookAfterAuthChange();
77
- getGroveNoticeConfig.cache?.clear?.();
78
- getGroveSettings.cache?.clear?.();
79
- await clearRemoteManagedSettingsCache();
80
- await clearPolicyLimitsCache();
81
- }
82
- async function call() {
83
- await performLogout({ clearOnboarding: true });
84
- const message = /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
85
- children: "Successfully logged out from your Anthropic account."
86
- }, undefined, false, undefined, this);
87
- setTimeout(() => {
88
- gracefulShutdownSync(0, "logout");
89
- }, 200);
90
- return message;
91
- }
92
- var jsx_dev_runtime, clearTrustedDeviceTokenCache = () => {}, clearRemoteManagedSettingsCache = async () => {};
93
- var init_logout = __esm(() => {
94
- init_src();
95
- init_growthbook();
96
- init_grove();
97
- init_policyLimits();
98
- init_auth();
99
- init_betas();
100
- init_config();
101
- init_gracefulShutdown();
102
- init_secureStorage();
103
- init_toolSchemaCache();
104
- init_user();
105
- jsx_dev_runtime = __toESM(require_jsx_dev_runtime(), 1);
106
- });
107
-
108
- export { performLogout, clearAuthRelatedCaches, call, init_logout };