@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,31 +0,0 @@
1
- // @bun
2
- import {
3
- init_browser,
4
- openBrowser
5
- } from "./chunk-v8kjswxt.js";
6
- import {
7
- init_log,
8
- logError
9
- } from "./chunk-gg55fns0.js";
10
- import {
11
- __esm
12
- } from "./chunk-qp2qdcda.js";
13
-
14
- // src/commands/upgrade/upgrade.tsx
15
- async function call(onDone, _context) {
16
- try {
17
- const url = "https://claude.ai/upgrade/max";
18
- await openBrowser(url);
19
- onDone("Opened browser to upgrade page.");
20
- } catch (error) {
21
- logError(error);
22
- setTimeout(onDone, 0, "Failed to open browser. Please visit https://claude.ai/upgrade/max to upgrade.");
23
- }
24
- return null;
25
- }
26
- var init_upgrade = __esm(() => {
27
- init_browser();
28
- init_log();
29
- });
30
-
31
- export { call, init_upgrade };
@@ -1,308 +0,0 @@
1
- // @bun
2
- import {
3
- Cursor,
4
- getLastKill,
5
- init_Cursor,
6
- init_useTerminalSize,
7
- pushToKillRing,
8
- recordYank,
9
- resetKillAccumulation,
10
- resetYankState,
11
- updateYankLength,
12
- yankPop
13
- } from "./chunk-gnpt1t6q.js";
14
- import {
15
- KeyboardEvent,
16
- init_src,
17
- useTerminalSize,
18
- use_input_default
19
- } from "./chunk-c7jwbe76.js";
20
- import {
21
- require_react
22
- } from "./chunk-7sgtxrsc.js";
23
- import {
24
- __esm,
25
- __toESM
26
- } from "./chunk-qp2qdcda.js";
27
-
28
- // src/hooks/useSearchInput.ts
29
- function isKillKey(e) {
30
- if (e.ctrl && (e.key === "k" || e.key === "u" || e.key === "w")) {
31
- return true;
32
- }
33
- if (e.meta && e.key === "backspace") {
34
- return true;
35
- }
36
- return false;
37
- }
38
- function isYankKey(e) {
39
- return (e.ctrl || e.meta) && e.key === "y";
40
- }
41
- function useSearchInput({
42
- isActive,
43
- onExit,
44
- onCancel,
45
- onExitUp,
46
- columns,
47
- passthroughCtrlKeys = [],
48
- initialQuery = "",
49
- backspaceExitsOnEmpty = true
50
- }) {
51
- const { columns: terminalColumns } = useTerminalSize();
52
- const effectiveColumns = columns ?? terminalColumns;
53
- const [query, setQueryState] = import_react.useState(initialQuery);
54
- const [cursorOffset, setCursorOffset] = import_react.useState(initialQuery.length);
55
- const setQuery = import_react.useCallback((q) => {
56
- setQueryState(q);
57
- setCursorOffset(q.length);
58
- }, []);
59
- const handleKeyDown = (e) => {
60
- if (!isActive)
61
- return;
62
- const cursor = Cursor.fromText(query, effectiveColumns, cursorOffset);
63
- if (e.ctrl && passthroughCtrlKeys.includes(e.key.toLowerCase())) {
64
- return;
65
- }
66
- if (!isKillKey(e)) {
67
- resetKillAccumulation();
68
- }
69
- if (!isYankKey(e)) {
70
- resetYankState();
71
- }
72
- if (e.key === "return" || e.key === "down") {
73
- e.preventDefault();
74
- onExit();
75
- return;
76
- }
77
- if (e.key === "up") {
78
- e.preventDefault();
79
- if (onExitUp) {
80
- onExitUp();
81
- }
82
- return;
83
- }
84
- if (e.key === "escape") {
85
- e.preventDefault();
86
- if (onCancel) {
87
- onCancel();
88
- } else if (query.length > 0) {
89
- setQueryState("");
90
- setCursorOffset(0);
91
- } else {
92
- onExit();
93
- }
94
- return;
95
- }
96
- if (e.key === "backspace") {
97
- e.preventDefault();
98
- if (e.meta) {
99
- const { cursor: newCursor2, killed } = cursor.deleteWordBefore();
100
- pushToKillRing(killed, "prepend");
101
- setQueryState(newCursor2.text);
102
- setCursorOffset(newCursor2.offset);
103
- return;
104
- }
105
- if (query.length === 0) {
106
- if (backspaceExitsOnEmpty)
107
- (onCancel ?? onExit)();
108
- return;
109
- }
110
- const newCursor = cursor.backspace();
111
- setQueryState(newCursor.text);
112
- setCursorOffset(newCursor.offset);
113
- return;
114
- }
115
- if (e.key === "delete") {
116
- e.preventDefault();
117
- const newCursor = cursor.del();
118
- setQueryState(newCursor.text);
119
- setCursorOffset(newCursor.offset);
120
- return;
121
- }
122
- if (e.key === "left" && (e.ctrl || e.meta || e.fn)) {
123
- e.preventDefault();
124
- const newCursor = cursor.prevWord();
125
- setCursorOffset(newCursor.offset);
126
- return;
127
- }
128
- if (e.key === "right" && (e.ctrl || e.meta || e.fn)) {
129
- e.preventDefault();
130
- const newCursor = cursor.nextWord();
131
- setCursorOffset(newCursor.offset);
132
- return;
133
- }
134
- if (e.key === "left") {
135
- e.preventDefault();
136
- const newCursor = cursor.left();
137
- setCursorOffset(newCursor.offset);
138
- return;
139
- }
140
- if (e.key === "right") {
141
- e.preventDefault();
142
- const newCursor = cursor.right();
143
- setCursorOffset(newCursor.offset);
144
- return;
145
- }
146
- if (e.key === "home") {
147
- e.preventDefault();
148
- setCursorOffset(0);
149
- return;
150
- }
151
- if (e.key === "end") {
152
- e.preventDefault();
153
- setCursorOffset(query.length);
154
- return;
155
- }
156
- if (e.ctrl) {
157
- e.preventDefault();
158
- switch (e.key.toLowerCase()) {
159
- case "a":
160
- setCursorOffset(0);
161
- return;
162
- case "e":
163
- setCursorOffset(query.length);
164
- return;
165
- case "b":
166
- setCursorOffset(cursor.left().offset);
167
- return;
168
- case "f":
169
- setCursorOffset(cursor.right().offset);
170
- return;
171
- case "d": {
172
- if (query.length === 0) {
173
- (onCancel ?? onExit)();
174
- return;
175
- }
176
- const newCursor = cursor.del();
177
- setQueryState(newCursor.text);
178
- setCursorOffset(newCursor.offset);
179
- return;
180
- }
181
- case "h": {
182
- if (query.length === 0) {
183
- if (backspaceExitsOnEmpty)
184
- (onCancel ?? onExit)();
185
- return;
186
- }
187
- const newCursor = cursor.backspace();
188
- setQueryState(newCursor.text);
189
- setCursorOffset(newCursor.offset);
190
- return;
191
- }
192
- case "k": {
193
- const { cursor: newCursor, killed } = cursor.deleteToLineEnd();
194
- pushToKillRing(killed, "append");
195
- setQueryState(newCursor.text);
196
- setCursorOffset(newCursor.offset);
197
- return;
198
- }
199
- case "u": {
200
- const { cursor: newCursor, killed } = cursor.deleteToLineStart();
201
- pushToKillRing(killed, "prepend");
202
- setQueryState(newCursor.text);
203
- setCursorOffset(newCursor.offset);
204
- return;
205
- }
206
- case "w": {
207
- const { cursor: newCursor, killed } = cursor.deleteWordBefore();
208
- pushToKillRing(killed, "prepend");
209
- setQueryState(newCursor.text);
210
- setCursorOffset(newCursor.offset);
211
- return;
212
- }
213
- case "y": {
214
- const text = getLastKill();
215
- if (text.length > 0) {
216
- const startOffset = cursor.offset;
217
- const newCursor = cursor.insert(text);
218
- recordYank(startOffset, text.length);
219
- setQueryState(newCursor.text);
220
- setCursorOffset(newCursor.offset);
221
- }
222
- return;
223
- }
224
- case "g":
225
- case "c":
226
- if (onCancel) {
227
- onCancel();
228
- return;
229
- }
230
- }
231
- return;
232
- }
233
- if (e.meta) {
234
- e.preventDefault();
235
- switch (e.key.toLowerCase()) {
236
- case "b":
237
- setCursorOffset(cursor.prevWord().offset);
238
- return;
239
- case "f":
240
- setCursorOffset(cursor.nextWord().offset);
241
- return;
242
- case "d": {
243
- const newCursor = cursor.deleteWordAfter();
244
- setQueryState(newCursor.text);
245
- setCursorOffset(newCursor.offset);
246
- return;
247
- }
248
- case "y": {
249
- const popResult = yankPop();
250
- if (popResult) {
251
- const { text, start, length } = popResult;
252
- const before = query.slice(0, start);
253
- const after = query.slice(start + length);
254
- const newText = before + text + after;
255
- const newOffset = start + text.length;
256
- updateYankLength(text.length);
257
- setQueryState(newText);
258
- setCursorOffset(newOffset);
259
- }
260
- return;
261
- }
262
- }
263
- return;
264
- }
265
- if (e.key === "tab") {
266
- return;
267
- }
268
- if (e.key.length >= 1 && !UNHANDLED_SPECIAL_KEYS.has(e.key)) {
269
- e.preventDefault();
270
- const newCursor = cursor.insert(e.key);
271
- setQueryState(newCursor.text);
272
- setCursorOffset(newCursor.offset);
273
- }
274
- };
275
- use_input_default((_input, _key, event) => {
276
- handleKeyDown(new KeyboardEvent(event.keypress));
277
- }, { isActive });
278
- return { query, setQuery, cursorOffset, handleKeyDown };
279
- }
280
- var import_react, UNHANDLED_SPECIAL_KEYS;
281
- var init_useSearchInput = __esm(() => {
282
- init_src();
283
- init_Cursor();
284
- init_useTerminalSize();
285
- import_react = __toESM(require_react(), 1);
286
- UNHANDLED_SPECIAL_KEYS = new Set([
287
- "pageup",
288
- "pagedown",
289
- "insert",
290
- "wheelup",
291
- "wheeldown",
292
- "mouse",
293
- "f1",
294
- "f2",
295
- "f3",
296
- "f4",
297
- "f5",
298
- "f6",
299
- "f7",
300
- "f8",
301
- "f9",
302
- "f10",
303
- "f11",
304
- "f12"
305
- ]);
306
- });
307
-
308
- export { useSearchInput, init_useSearchInput };
@@ -1,66 +0,0 @@
1
- // @bun
2
- import {
3
- __esm
4
- } from "./chunk-qp2qdcda.js";
5
-
6
- // src/utils/claudeInChrome/prompt.ts
7
- function getChromeSystemPrompt() {
8
- return BASE_CHROME_PROMPT;
9
- }
10
- var BASE_CHROME_PROMPT = `# Chrome browser automation
11
-
12
- You have access to browser automation tools (mcp__claude-in-chrome__*) for interacting with web pages in Chrome. Follow these guidelines for effective browser automation.
13
-
14
- ## GIF recording
15
-
16
- When performing multi-step browser interactions that the user may want to review or share, use mcp__claude-in-chrome__gif_creator to record them.
17
-
18
- You must ALWAYS:
19
- * Capture extra frames before and after taking actions to ensure smooth playback
20
- * Name the file meaningfully to help the user identify it later (e.g., "login_process.gif")
21
-
22
- ## Console log debugging
23
-
24
- You can use mcp__claude-in-chrome__read_console_messages to read console output. Console output may be verbose. If you are looking for specific log entries, use the 'pattern' parameter with a regex-compatible pattern. This filters results efficiently and avoids overwhelming output. For example, use pattern: "[MyApp]" to filter for application-specific logs rather than reading all console output.
25
-
26
- ## Alerts and dialogs
27
-
28
- IMPORTANT: Do not trigger JavaScript alerts, confirms, prompts, or browser modal dialogs through your actions. These browser dialogs block all further browser events and will prevent the extension from receiving any subsequent commands. Instead, when possible, use console.log for debugging and then use the mcp__claude-in-chrome__read_console_messages tool to read those log messages. If a page has dialog-triggering elements:
29
- 1. Avoid clicking buttons or links that may trigger alerts (e.g., "Delete" buttons with confirmation dialogs)
30
- 2. If you must interact with such elements, warn the user first that this may interrupt the session
31
- 3. Use mcp__claude-in-chrome__javascript_tool to check for and dismiss any existing dialogs before proceeding
32
-
33
- If you accidentally trigger a dialog and lose responsiveness, inform the user they need to manually dismiss it in the browser.
34
-
35
- ## Avoid rabbit holes and loops
36
-
37
- When using browser automation tools, stay focused on the specific task. If you encounter any of the following, stop and ask the user for guidance:
38
- - Unexpected complexity or tangential browser exploration
39
- - Browser tool calls failing or returning errors after 2-3 attempts
40
- - No response from the browser extension
41
- - Page elements not responding to clicks or input
42
- - Pages not loading or timing out
43
- - Unable to complete the browser task despite multiple approaches
44
-
45
- Explain what you attempted, what went wrong, and ask how the user would like to proceed. Do not keep retrying the same failing browser action or explore unrelated pages without checking in first.
46
-
47
- ## Tab context and session startup
48
-
49
- IMPORTANT: At the start of each browser automation session, call mcp__claude-in-chrome__tabs_context_mcp first to get information about the user's current browser tabs. Use this context to understand what the user might want to work with before creating new tabs.
50
-
51
- Never reuse tab IDs from a previous/other session. Follow these guidelines:
52
- 1. Only reuse an existing tab if the user explicitly asks to work with it
53
- 2. Otherwise, create a new tab with mcp__claude-in-chrome__tabs_create_mcp
54
- 3. If a tool returns an error indicating the tab doesn't exist or is invalid, call tabs_context_mcp to get fresh tab IDs
55
- 4. When a tab is closed by the user or a navigation error occurs, call tabs_context_mcp to see what tabs are available`, CHROME_TOOL_SEARCH_INSTRUCTIONS = `**IMPORTANT: Before using any chrome browser tools, you MUST first load them using ToolSearch.**
56
-
57
- Chrome browser tools are MCP tools that require loading before use. Before calling any mcp__claude-in-chrome__* tool:
58
- 1. Use ToolSearch with \`select:mcp__claude-in-chrome__<tool_name>\` to load the specific tool
59
- 2. Then call the tool
60
-
61
- For example, to get tab context:
62
- 1. First: ToolSearch with query "select:mcp__claude-in-chrome__tabs_context_mcp"
63
- 2. Then: Call mcp__claude-in-chrome__tabs_context_mcp`, CLAUDE_IN_CHROME_SKILL_HINT = `**Browser Automation**: Chrome browser tools are available via the "claude-in-chrome" skill. CRITICAL: Before using any mcp__claude-in-chrome__* tools, invoke the skill by calling the Skill tool with skill: "claude-in-chrome". The skill provides browser automation instructions and enables the tools.`;
64
- var init_prompt = () => {};
65
-
66
- export { BASE_CHROME_PROMPT, CHROME_TOOL_SEARCH_INSTRUCTIONS, getChromeSystemPrompt, CLAUDE_IN_CHROME_SKILL_HINT, init_prompt };
@@ -1,49 +0,0 @@
1
- // @bun
2
- import {
3
- __esm
4
- } from "./chunk-qp2qdcda.js";
5
-
6
- // src/services/mcp/InProcessTransport.ts
7
- class InProcessTransport {
8
- peer;
9
- closed = false;
10
- onclose;
11
- onerror;
12
- onmessage;
13
- _setPeer(peer) {
14
- this.peer = peer;
15
- }
16
- async start() {}
17
- async send(message) {
18
- if (this.closed) {
19
- throw new Error("Transport is closed");
20
- }
21
- queueMicrotask(() => {
22
- this.peer?.onmessage?.(message);
23
- });
24
- }
25
- async close() {
26
- if (this.closed) {
27
- return;
28
- }
29
- this.closed = true;
30
- this.onclose?.();
31
- if (this.peer && !this.peer.closed) {
32
- this.peer.closed = true;
33
- this.peer.onclose?.();
34
- }
35
- }
36
- }
37
- function createLinkedTransportPair() {
38
- const a = new InProcessTransport;
39
- const b = new InProcessTransport;
40
- a._setPeer(b);
41
- b._setPeer(a);
42
- return [a, b];
43
- }
44
- var init_InProcessTransport = () => {};
45
- init_InProcessTransport();
46
-
47
- export {
48
- createLinkedTransportPair
49
- };
@@ -1,200 +0,0 @@
1
- // @bun
2
- import {
3
- disableAllPluginsOp,
4
- disablePluginOp,
5
- enablePluginOp,
6
- init_pluginOperations,
7
- installPluginOp,
8
- uninstallPluginOp,
9
- updatePluginOp
10
- } from "./chunk-zr0qx9q0.js";
11
- import {
12
- buildPluginTelemetryFields,
13
- classifyPluginCommandError,
14
- getManagedPluginNames,
15
- gracefulShutdown,
16
- init_gracefulShutdown,
17
- init_managedPlugins,
18
- init_pluginIdentifier,
19
- init_pluginTelemetry,
20
- parsePluginIdentifier
21
- } from "./chunk-gnpt1t6q.js";
22
- import {
23
- init_analytics,
24
- logEvent
25
- } from "./chunk-x8d2ehd7.js";
26
- import {
27
- figures_default,
28
- init_figures
29
- } from "./chunk-qajrkk97.js";
30
- import {
31
- errorMessage,
32
- init_errors,
33
- init_log,
34
- logError
35
- } from "./chunk-gg55fns0.js";
36
- import {
37
- init_process,
38
- writeToStdout
39
- } from "./chunk-fbv4apne.js";
40
-
41
- // src/services/plugins/pluginCliCommands.ts
42
- init_figures();
43
- init_errors();
44
- init_gracefulShutdown();
45
- init_log();
46
- init_managedPlugins();
47
- init_pluginIdentifier();
48
- init_process();
49
- init_pluginTelemetry();
50
- init_analytics();
51
- init_pluginOperations();
52
- function handlePluginCommandError(error, command, plugin) {
53
- logError(error);
54
- const operation = plugin ? `${command} plugin "${plugin}"` : command === "disable-all" ? "disable all plugins" : `${command} plugins`;
55
- console.error(`${figures_default.cross} Failed to ${operation}: ${errorMessage(error)}`);
56
- const telemetryFields = plugin ? (() => {
57
- const { name, marketplace } = parsePluginIdentifier(plugin);
58
- return {
59
- _PROTO_plugin_name: name,
60
- ...marketplace && {
61
- _PROTO_marketplace_name: marketplace
62
- },
63
- ...buildPluginTelemetryFields(name, marketplace, getManagedPluginNames())
64
- };
65
- })() : {};
66
- logEvent("tengu_plugin_command_failed", {
67
- command,
68
- error_category: classifyPluginCommandError(error),
69
- ...telemetryFields
70
- });
71
- process.exit(1);
72
- }
73
- async function installPlugin(plugin, scope = "user") {
74
- try {
75
- console.log(`Installing plugin "${plugin}"...`);
76
- const result = await installPluginOp(plugin, scope);
77
- if (!result.success) {
78
- throw new Error(result.message);
79
- }
80
- console.log(`${figures_default.tick} ${result.message}`);
81
- const { name, marketplace } = parsePluginIdentifier(result.pluginId || plugin);
82
- logEvent("tengu_plugin_installed_cli", {
83
- _PROTO_plugin_name: name,
84
- ...marketplace && {
85
- _PROTO_marketplace_name: marketplace
86
- },
87
- scope: result.scope || scope,
88
- install_source: "cli-explicit",
89
- ...buildPluginTelemetryFields(name, marketplace, getManagedPluginNames())
90
- });
91
- process.exit(0);
92
- } catch (error) {
93
- handlePluginCommandError(error, "install", plugin);
94
- }
95
- }
96
- async function uninstallPlugin(plugin, scope = "user", keepData = false) {
97
- try {
98
- const result = await uninstallPluginOp(plugin, scope, !keepData);
99
- if (!result.success) {
100
- throw new Error(result.message);
101
- }
102
- console.log(`${figures_default.tick} ${result.message}`);
103
- const { name, marketplace } = parsePluginIdentifier(result.pluginId || plugin);
104
- logEvent("tengu_plugin_uninstalled_cli", {
105
- _PROTO_plugin_name: name,
106
- ...marketplace && {
107
- _PROTO_marketplace_name: marketplace
108
- },
109
- scope: result.scope || scope,
110
- ...buildPluginTelemetryFields(name, marketplace, getManagedPluginNames())
111
- });
112
- process.exit(0);
113
- } catch (error) {
114
- handlePluginCommandError(error, "uninstall", plugin);
115
- }
116
- }
117
- async function enablePlugin(plugin, scope) {
118
- try {
119
- const result = await enablePluginOp(plugin, scope);
120
- if (!result.success) {
121
- throw new Error(result.message);
122
- }
123
- console.log(`${figures_default.tick} ${result.message}`);
124
- const { name, marketplace } = parsePluginIdentifier(result.pluginId || plugin);
125
- logEvent("tengu_plugin_enabled_cli", {
126
- _PROTO_plugin_name: name,
127
- ...marketplace && {
128
- _PROTO_marketplace_name: marketplace
129
- },
130
- scope: result.scope,
131
- ...buildPluginTelemetryFields(name, marketplace, getManagedPluginNames())
132
- });
133
- process.exit(0);
134
- } catch (error) {
135
- handlePluginCommandError(error, "enable", plugin);
136
- }
137
- }
138
- async function disablePlugin(plugin, scope) {
139
- try {
140
- const result = await disablePluginOp(plugin, scope);
141
- if (!result.success) {
142
- throw new Error(result.message);
143
- }
144
- console.log(`${figures_default.tick} ${result.message}`);
145
- const { name, marketplace } = parsePluginIdentifier(result.pluginId || plugin);
146
- logEvent("tengu_plugin_disabled_cli", {
147
- _PROTO_plugin_name: name,
148
- ...marketplace && {
149
- _PROTO_marketplace_name: marketplace
150
- },
151
- scope: result.scope,
152
- ...buildPluginTelemetryFields(name, marketplace, getManagedPluginNames())
153
- });
154
- process.exit(0);
155
- } catch (error) {
156
- handlePluginCommandError(error, "disable", plugin);
157
- }
158
- }
159
- async function disableAllPlugins() {
160
- try {
161
- const result = await disableAllPluginsOp();
162
- if (!result.success) {
163
- throw new Error(result.message);
164
- }
165
- console.log(`${figures_default.tick} ${result.message}`);
166
- logEvent("tengu_plugin_disabled_all_cli", {});
167
- process.exit(0);
168
- } catch (error) {
169
- handlePluginCommandError(error, "disable-all");
170
- }
171
- }
172
- async function updatePluginCli(plugin, scope) {
173
- try {
174
- writeToStdout(`Checking for updates for plugin "${plugin}" at ${scope} scope\u2026
175
- `);
176
- const result = await updatePluginOp(plugin, scope);
177
- if (!result.success) {
178
- throw new Error(result.message);
179
- }
180
- writeToStdout(`${figures_default.tick} ${result.message}
181
- `);
182
- if (!result.alreadyUpToDate) {
183
- const { name, marketplace } = parsePluginIdentifier(result.pluginId || plugin);
184
- logEvent("tengu_plugin_updated_cli", {
185
- _PROTO_plugin_name: name,
186
- ...marketplace && {
187
- _PROTO_marketplace_name: marketplace
188
- },
189
- old_version: result.oldVersion || "unknown",
190
- new_version: result.newVersion || "unknown",
191
- ...buildPluginTelemetryFields(name, marketplace, getManagedPluginNames())
192
- });
193
- }
194
- await gracefulShutdown(0);
195
- } catch (error) {
196
- handlePluginCommandError(error, "update", plugin);
197
- }
198
- }
199
-
200
- export { installPlugin, uninstallPlugin, enablePlugin, disablePlugin, disableAllPlugins, updatePluginCli };