@caspian2026/agent-sdk 0.0.13 → 0.0.15

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 (172) hide show
  1. package/dist/{chunk-0vewdqr2.js → chunk-05d4nbqx.js} +3 -3
  2. package/dist/{chunk-p6qdjxvz.js → chunk-083agw6a.js} +4 -4
  3. package/dist/{chunk-46yrjrpt.js → chunk-0emm0yvn.js} +5 -5
  4. package/dist/{chunk-dyvrz8pf.js → chunk-0ghamvvb.js} +3 -3
  5. package/dist/{chunk-yxk5gqyj.js → chunk-0ns77w8v.js} +1 -1
  6. package/dist/{chunk-vb6811d0.js → chunk-0q33zpny.js} +2 -2
  7. package/dist/{chunk-k8m0scgj.js → chunk-12hq1ha7.js} +3 -3
  8. package/dist/{chunk-eb59rs3b.js → chunk-15g2mh9p.js} +2 -2
  9. package/dist/{chunk-kj12dpfk.js → chunk-16tnp97x.js} +6 -6
  10. package/dist/{chunk-5evd2zse.js → chunk-1ek78rsf.js} +47 -47
  11. package/dist/{chunk-yjg74qmp.js → chunk-29es5rq8.js} +3 -3
  12. package/dist/{chunk-y26haxyd.js → chunk-2ekqmqv3.js} +3 -3
  13. package/dist/{chunk-28zk60za.js → chunk-2j63162w.js} +3 -3
  14. package/dist/{chunk-1qy5fzfv.js → chunk-31bd2413.js} +2 -2
  15. package/dist/{chunk-3pydh5j4.js → chunk-33wa5mwn.js} +67 -67
  16. package/dist/{chunk-78e5yhhq.js → chunk-34mcd0qr.js} +3 -3
  17. package/dist/{chunk-2731ytyz.js → chunk-34xvctr4.js} +2 -2
  18. package/dist/{chunk-80nhm5kv.js → chunk-3gcmk93c.js} +4 -4
  19. package/dist/{chunk-nqen92y9.js → chunk-3wf6bqn4.js} +2 -2
  20. package/dist/{chunk-6napjp29.js → chunk-419x8722.js} +2 -2
  21. package/dist/{chunk-wgy3ajgs.js → chunk-508wvc51.js} +2 -2
  22. package/dist/{chunk-61s4nyrq.js → chunk-54dg6e30.js} +1 -1
  23. package/dist/{chunk-chyw2mbg.js → chunk-5rm8he7t.js} +2 -2
  24. package/dist/{chunk-214tavdv.js → chunk-5ty68mqk.js} +4 -4
  25. package/dist/{chunk-w22x70jh.js → chunk-5vp2v5da.js} +7 -7
  26. package/dist/{chunk-mn75r067.js → chunk-64qyep5d.js} +1 -1
  27. package/dist/{chunk-6ad9zkxx.js → chunk-6bngm91w.js} +2 -2
  28. package/dist/{chunk-hd4eg6kh.js → chunk-6pg8j8vx.js} +1 -1
  29. package/dist/{chunk-41n0ay0p.js → chunk-6v0ae1nh.js} +2 -2
  30. package/dist/{chunk-dag4jq4v.js → chunk-77n6cc7y.js} +3 -3
  31. package/dist/{chunk-prmzj577.js → chunk-790ey6rw.js} +8 -8
  32. package/dist/{chunk-k74dn9ed.js → chunk-7kge6zer.js} +2 -2
  33. package/dist/{chunk-a5xn5zcr.js → chunk-7rdye8qk.js} +1 -1
  34. package/dist/{chunk-0f66wzb1.js → chunk-7vjnedhb.js} +1 -1
  35. package/dist/{chunk-08de1bkc.js → chunk-7wezmwtb.js} +1 -1
  36. package/dist/{chunk-95t7bqz3.js → chunk-84qdsc71.js} +1 -1
  37. package/dist/{chunk-t4xsmp8v.js → chunk-89942kk1.js} +2 -2
  38. package/dist/{chunk-kgbz47x2.js → chunk-89f6szhy.js} +3 -3
  39. package/dist/{chunk-4dee9ybp.js → chunk-8csnkgj5.js} +2 -2
  40. package/dist/{chunk-avztt5dv.js → chunk-8gqhtswj.js} +3 -3
  41. package/dist/{chunk-vyc4jpmd.js → chunk-8mffwag2.js} +3 -3
  42. package/dist/{chunk-0kf7k9m5.js → chunk-8nw0be5v.js} +2 -2
  43. package/dist/{chunk-nxww6w6y.js → chunk-8qdr12kk.js} +8 -8
  44. package/dist/{chunk-dcmxz2jc.js → chunk-9a9721qa.js} +2 -2
  45. package/dist/{chunk-3nahqj60.js → chunk-9fv8x4z9.js} +1 -1
  46. package/dist/{chunk-04493mqv.js → chunk-9m9gda9b.js} +1 -1
  47. package/dist/{chunk-hv17xdf2.js → chunk-9rf5w469.js} +3 -3
  48. package/dist/{chunk-9v8bfqqf.js → chunk-a9pa363t.js} +13 -13
  49. package/dist/{chunk-92tdswr4.js → chunk-a9pj298y.js} +3 -3
  50. package/dist/{chunk-wbnakd1c.js → chunk-aazd62g0.js} +3 -3
  51. package/dist/{chunk-7m88tgnf.js → chunk-agk30cva.js} +2 -2
  52. package/dist/{chunk-fqeza860.js → chunk-aq40hm18.js} +2 -2
  53. package/dist/{chunk-ghak0k29.js → chunk-avessfjm.js} +1 -1
  54. package/dist/{chunk-drp374qg.js → chunk-b2944ttb.js} +2 -2
  55. package/dist/{chunk-nr0tf2mh.js → chunk-b2hzefb3.js} +2 -2
  56. package/dist/{chunk-ja27ank4.js → chunk-bk2sebs7.js} +1 -1
  57. package/dist/{chunk-r2rs4j2j.js → chunk-bm77yw1t.js} +2 -2
  58. package/dist/{chunk-d4geyzbs.js → chunk-bz1xarje.js} +1 -1
  59. package/dist/{chunk-7cdb1dmj.js → chunk-c7d1xq2c.js} +2 -2
  60. package/dist/{chunk-dh90decj.js → chunk-cbtdzn4n.js} +2 -2
  61. package/dist/{chunk-0kadewva.js → chunk-cejp895f.js} +4 -4
  62. package/dist/{chunk-zg0pfvsf.js → chunk-chrhnfm2.js} +4 -4
  63. package/dist/{chunk-hbjfgsq7.js → chunk-d3mqz65a.js} +3 -3
  64. package/dist/{chunk-janv6kzf.js → chunk-d55rhsae.js} +2 -2
  65. package/dist/{chunk-x0kh4peb.js → chunk-e3t1kxzw.js} +11 -11
  66. package/dist/{chunk-1a1vxr0c.js → chunk-e6sthm24.js} +2 -2
  67. package/dist/{chunk-gh9nd6cm.js → chunk-ebj6051b.js} +2 -2
  68. package/dist/{chunk-xzyjwk6j.js → chunk-eeap3z6b.js} +2 -2
  69. package/dist/{chunk-jckcqmvg.js → chunk-egfj2v2a.js} +2 -2
  70. package/dist/{chunk-xs51q1qa.js → chunk-f3er7pr9.js} +9 -9
  71. package/dist/{chunk-nyz79eye.js → chunk-f4vvjw02.js} +9 -9
  72. package/dist/{chunk-qt5gdpwa.js → chunk-fghry534.js} +1 -1
  73. package/dist/{chunk-hvd5f5h0.js → chunk-fmer4sbv.js} +2 -2
  74. package/dist/{chunk-45d8h5fm.js → chunk-fpm7gj3m.js} +1 -1
  75. package/dist/{chunk-zsm1wrwx.js → chunk-fqrvrhhq.js} +1 -1
  76. package/dist/{chunk-jdcbgzym.js → chunk-g28z03f9.js} +1 -1
  77. package/dist/{chunk-1ty5asgx.js → chunk-g4pe7bay.js} +3 -3
  78. package/dist/{chunk-0f6sd60f.js → chunk-g9pvzjby.js} +1 -1
  79. package/dist/{chunk-07hj3a7t.js → chunk-ghsrqk8m.js} +1 -1
  80. package/dist/{chunk-n61z171a.js → chunk-gx8kpmhv.js} +5 -5
  81. package/dist/{chunk-4pqjrr8y.js → chunk-h3mmevhg.js} +2 -2
  82. package/dist/{chunk-sj3ntw5a.js → chunk-h4jsnhjf.js} +2 -2
  83. package/dist/{chunk-23v0rkfx.js → chunk-hbfyv3xf.js} +2 -2
  84. package/dist/{chunk-v8h27d3a.js → chunk-hqpx8yrz.js} +3 -3
  85. package/dist/{chunk-qvvyx9ng.js → chunk-hrkpj9f6.js} +2 -2
  86. package/dist/{chunk-cdcdm51e.js → chunk-htzsbyg5.js} +2 -2
  87. package/dist/{chunk-4c622mwe.js → chunk-hvgh4jrm.js} +3 -3
  88. package/dist/{chunk-efw8je3h.js → chunk-hwycnsc7.js} +4 -4
  89. package/dist/{chunk-j74js26x.js → chunk-hz0ezmdm.js} +4 -4
  90. package/dist/{chunk-v0wh0bgd.js → chunk-j1knpstd.js} +2 -2
  91. package/dist/{chunk-43jvrt4d.js → chunk-j31pvw9j.js} +2 -2
  92. package/dist/{chunk-zzgpnftk.js → chunk-jawam8jk.js} +2 -2
  93. package/dist/{chunk-yqzy84qy.js → chunk-jf0p1r1c.js} +2 -2
  94. package/dist/{chunk-8r6fbt5c.js → chunk-jqdye8m8.js} +1 -1
  95. package/dist/{chunk-4mf6kgx2.js → chunk-js6e203p.js} +12 -12
  96. package/dist/{chunk-rs064jvw.js → chunk-js7s44zm.js} +8 -8
  97. package/dist/{chunk-expz589n.js → chunk-jses8c9v.js} +12 -12
  98. package/dist/{chunk-an61z5e5.js → chunk-jsjfmttc.js} +1 -1
  99. package/dist/{chunk-cnjjhxan.js → chunk-jtcbz8sp.js} +2 -2
  100. package/dist/{chunk-6ydz9pjp.js → chunk-k1q59mr6.js} +1 -1
  101. package/dist/{chunk-am6tqacd.js → chunk-k2ge5dx4.js} +1 -1
  102. package/dist/{chunk-3f5qszvs.js → chunk-k6vc8tfj.js} +5 -5
  103. package/dist/{chunk-f2rmgh78.js → chunk-k8dbm0a7.js} +2 -2
  104. package/dist/{chunk-2wks5tbp.js → chunk-kxpjg8s7.js} +1 -1
  105. package/dist/{chunk-aphk8j5w.js → chunk-m0xzgepc.js} +10 -10
  106. package/dist/{chunk-jqep56xs.js → chunk-m4pfn45q.js} +4 -4
  107. package/dist/{chunk-e41dxjrm.js → chunk-mfen6g48.js} +2 -2
  108. package/dist/{chunk-j6q4ew2b.js → chunk-mfrcqzvc.js} +2 -2
  109. package/dist/{chunk-546yeymz.js → chunk-mxax3zmr.js} +6 -6
  110. package/dist/{chunk-fv93118c.js → chunk-mxxgnbsz.js} +10 -10
  111. package/dist/{chunk-qybnayqm.js → chunk-n3en8vmf.js} +2 -2
  112. package/dist/{chunk-kkb0165y.js → chunk-n3xygbvg.js} +1 -1
  113. package/dist/{chunk-e0k5wevz.js → chunk-naknrbs1.js} +38 -38
  114. package/dist/{chunk-x3c6448d.js → chunk-nc2rrtb6.js} +4 -4
  115. package/dist/{chunk-mwzzqca7.js → chunk-nfy58jsw.js} +2 -2
  116. package/dist/{chunk-1sy6bdrv.js → chunk-ng7kq563.js} +1 -1
  117. package/dist/{chunk-0259ffd5.js → chunk-nhfafbej.js} +2 -2
  118. package/dist/{chunk-83gk1qqt.js → chunk-nhhkfxt1.js} +2 -2
  119. package/dist/{chunk-eh344a7h.js → chunk-nkaap81r.js} +1 -1
  120. package/dist/{chunk-cew3ax9k.js → chunk-pemaxw36.js} +58 -58
  121. package/dist/{chunk-7177yqpa.js → chunk-pf4csnkm.js} +2 -2
  122. package/dist/{chunk-redqdwa5.js → chunk-pgjn7b4n.js} +1 -1
  123. package/dist/{chunk-z3th2q62.js → chunk-pgjqafjx.js} +5 -5
  124. package/dist/{chunk-2jcrkn8m.js → chunk-ptrxmfcx.js} +1 -1
  125. package/dist/{chunk-g6bpc05g.js → chunk-q09gqme7.js} +78 -61
  126. package/dist/{chunk-3j2d5r8z.js → chunk-q26mw5w6.js} +5 -5
  127. package/dist/{chunk-vjd52x2d.js → chunk-qfkdzwpw.js} +12 -12
  128. package/dist/{chunk-pcz5838z.js → chunk-qj29yvdp.js} +6 -6
  129. package/dist/{chunk-4r5k4e1k.js → chunk-qqd2twg2.js} +21 -21
  130. package/dist/{chunk-sga2ay5t.js → chunk-qrjx16m7.js} +2 -2
  131. package/dist/{chunk-zgck4td9.js → chunk-qxv6dbef.js} +1 -1
  132. package/dist/{chunk-zzs0138c.js → chunk-qy4x4thf.js} +9 -9
  133. package/dist/{chunk-v2801hvz.js → chunk-r54ccfvf.js} +2 -2
  134. package/dist/{chunk-qd2ztwsc.js → chunk-r6817wsv.js} +1 -1
  135. package/dist/{chunk-cn646q7m.js → chunk-r6vmfgvb.js} +4 -4
  136. package/dist/{chunk-sqhgc03m.js → chunk-rbb8aadm.js} +1 -1
  137. package/dist/{chunk-ya4nc0ee.js → chunk-reekeaw0.js} +5 -5
  138. package/dist/{chunk-pmw1pw00.js → chunk-rgxzwbc5.js} +8 -8
  139. package/dist/{chunk-8s7kcstd.js → chunk-rppwqq3c.js} +2 -2
  140. package/dist/{chunk-e9pw9h37.js → chunk-rqb3d1ab.js} +4 -4
  141. package/dist/{chunk-zr18x8mm.js → chunk-rrsttgrq.js} +2 -2
  142. package/dist/{chunk-br16k3dc.js → chunk-s8pbd9x3.js} +1 -1
  143. package/dist/{chunk-bkrganba.js → chunk-sjpeqc4n.js} +2 -2
  144. package/dist/{chunk-txckt9ke.js → chunk-sq8qey5q.js} +6 -6
  145. package/dist/{chunk-50ccstzb.js → chunk-sxajcbmn.js} +1 -1
  146. package/dist/{chunk-qbjs0b0k.js → chunk-sxcqg6k8.js} +2 -2
  147. package/dist/{chunk-jnssgm4f.js → chunk-syh85y45.js} +2 -2
  148. package/dist/{chunk-99w11kb7.js → chunk-tsskxz6d.js} +5 -5
  149. package/dist/{chunk-6sf1v2cq.js → chunk-tvp4vqf3.js} +7 -7
  150. package/dist/{chunk-yrr9ykn9.js → chunk-v5kncmyk.js} +5 -5
  151. package/dist/{chunk-1py8an1f.js → chunk-vg42jd58.js} +2 -2
  152. package/dist/{chunk-4swpnh0b.js → chunk-vkhs95be.js} +2 -2
  153. package/dist/{chunk-1vzz9b06.js → chunk-w59ckbap.js} +3 -3
  154. package/dist/{chunk-y12r2kxd.js → chunk-w6d8vh5z.js} +1 -1
  155. package/dist/{chunk-4750qavh.js → chunk-wat7dk7j.js} +2 -2
  156. package/dist/{chunk-6j0rkk59.js → chunk-wmxe6b8n.js} +2 -2
  157. package/dist/{chunk-9gvm6tmk.js → chunk-wpddkjvd.js} +2 -2
  158. package/dist/{chunk-rasd60cv.js → chunk-x0cydsvq.js} +2 -2
  159. package/dist/{chunk-9ax032z9.js → chunk-x1yrt86q.js} +4 -4
  160. package/dist/{chunk-g1396pvw.js → chunk-x5kkaerc.js} +4 -4
  161. package/dist/{chunk-8rc8jtgd.js → chunk-x9tq1eew.js} +3 -3
  162. package/dist/{chunk-embf6hvv.js → chunk-xt2v8y2n.js} +2 -2
  163. package/dist/{chunk-bnyy9ktk.js → chunk-y6xwhrtg.js} +2 -2
  164. package/dist/{chunk-8zct692x.js → chunk-yazxcv11.js} +3 -3
  165. package/dist/{chunk-7zwyj3jm.js → chunk-yza03kxz.js} +3 -3
  166. package/dist/{chunk-0px6jj0k.js → chunk-z7kpj5vh.js} +2 -2
  167. package/dist/{chunk-sx1nf0bd.js → chunk-zet2vkqz.js} +48 -48
  168. package/dist/{chunk-cxdje86s.js → chunk-zzmt0165.js} +1 -1
  169. package/dist/cli.js +3 -3
  170. package/dist/gateway/index.js +2 -2
  171. package/dist/gateway/worker.js +86 -67
  172. package/package.json +1 -1
@@ -1,17 +1,17 @@
1
1
  // @bun
2
2
  import {
3
3
  REPL
4
- } from "./chunk-e0k5wevz.js";
5
- import"./chunk-8zct692x.js";
6
- import"./chunk-yjg74qmp.js";
7
- import"./chunk-yrr9ykn9.js";
8
- import"./chunk-ya4nc0ee.js";
9
- import"./chunk-1ty5asgx.js";
4
+ } from "./chunk-naknrbs1.js";
5
+ import"./chunk-yazxcv11.js";
6
+ import"./chunk-29es5rq8.js";
7
+ import"./chunk-v5kncmyk.js";
8
+ import"./chunk-reekeaw0.js";
9
+ import"./chunk-g4pe7bay.js";
10
10
  import {
11
11
  computeStandaloneAgentContext,
12
12
  restoreAgentFromSession,
13
13
  restoreWorktreeForResume
14
- } from "./chunk-r2rs4j2j.js";
14
+ } from "./chunk-bm77yw1t.js";
15
15
  import"./chunk-a1e7apvj.js";
16
16
  import"./chunk-mswx2nma.js";
17
17
  import {
@@ -19,19 +19,19 @@ import {
19
19
  } from "./chunk-9t6ktd1k.js";
20
20
  import"./chunk-xhfmdq1y.js";
21
21
  import"./chunk-h9n54swm.js";
22
- import"./chunk-04493mqv.js";
22
+ import"./chunk-9m9gda9b.js";
23
23
  import"./chunk-3mgywd32.js";
24
- import"./chunk-redqdwa5.js";
24
+ import"./chunk-pgjn7b4n.js";
25
25
  import"./chunk-4ch0yj7k.js";
26
- import"./chunk-zsm1wrwx.js";
27
- import"./chunk-4pqjrr8y.js";
28
- import"./chunk-2jcrkn8m.js";
29
- import"./chunk-v0wh0bgd.js";
30
- import"./chunk-4750qavh.js";
31
- import"./chunk-hd4eg6kh.js";
26
+ import"./chunk-fqrvrhhq.js";
27
+ import"./chunk-h3mmevhg.js";
28
+ import"./chunk-ptrxmfcx.js";
29
+ import"./chunk-j1knpstd.js";
30
+ import"./chunk-wat7dk7j.js";
31
+ import"./chunk-6pg8j8vx.js";
32
32
  import"./chunk-0paqc2yw.js";
33
- import"./chunk-qvvyx9ng.js";
34
- import"./chunk-yxk5gqyj.js";
33
+ import"./chunk-hrkpj9f6.js";
34
+ import"./chunk-0ns77w8v.js";
35
35
  import {
36
36
  LogSelector,
37
37
  agenticSessionSearch,
@@ -39,44 +39,44 @@ import {
39
39
  init_LogSelector,
40
40
  init_agenticSessionSearch,
41
41
  init_crossProjectResume
42
- } from "./chunk-1vzz9b06.js";
42
+ } from "./chunk-w59ckbap.js";
43
43
  import"./chunk-c6sjhj89.js";
44
- import"./chunk-z3th2q62.js";
45
- import"./chunk-a5xn5zcr.js";
44
+ import"./chunk-pgjqafjx.js";
45
+ import"./chunk-7rdye8qk.js";
46
46
  import"./chunk-cnsj3vq2.js";
47
- import"./chunk-an61z5e5.js";
47
+ import"./chunk-jsjfmttc.js";
48
48
  import"./chunk-kxjfdqf8.js";
49
- import"./chunk-nqen92y9.js";
50
- import"./chunk-jdcbgzym.js";
51
- import"./chunk-yqzy84qy.js";
52
- import"./chunk-qbjs0b0k.js";
53
- import"./chunk-qt5gdpwa.js";
54
- import"./chunk-1qy5fzfv.js";
55
- import"./chunk-61s4nyrq.js";
49
+ import"./chunk-3wf6bqn4.js";
50
+ import"./chunk-g28z03f9.js";
51
+ import"./chunk-jf0p1r1c.js";
52
+ import"./chunk-sxcqg6k8.js";
53
+ import"./chunk-fghry534.js";
54
+ import"./chunk-31bd2413.js";
55
+ import"./chunk-54dg6e30.js";
56
56
  import"./chunk-5ccdsxgy.js";
57
- import"./chunk-gh9nd6cm.js";
58
- import"./chunk-sqhgc03m.js";
59
- import"./chunk-3nahqj60.js";
60
- import"./chunk-ghak0k29.js";
61
- import"./chunk-08de1bkc.js";
62
- import"./chunk-k74dn9ed.js";
63
- import"./chunk-546yeymz.js";
64
- import"./chunk-eh344a7h.js";
65
- import"./chunk-0f66wzb1.js";
66
- import"./chunk-7cdb1dmj.js";
67
- import"./chunk-zgck4td9.js";
57
+ import"./chunk-ebj6051b.js";
58
+ import"./chunk-rbb8aadm.js";
59
+ import"./chunk-9fv8x4z9.js";
60
+ import"./chunk-avessfjm.js";
61
+ import"./chunk-7wezmwtb.js";
62
+ import"./chunk-7kge6zer.js";
63
+ import"./chunk-mxax3zmr.js";
64
+ import"./chunk-nkaap81r.js";
65
+ import"./chunk-7vjnedhb.js";
66
+ import"./chunk-c7d1xq2c.js";
67
+ import"./chunk-qxv6dbef.js";
68
68
  import"./chunk-qgzma8ky.js";
69
69
  import"./chunk-p8na2wwp.js";
70
- import"./chunk-50ccstzb.js";
71
- import"./chunk-1sy6bdrv.js";
72
- import"./chunk-mn75r067.js";
73
- import"./chunk-45d8h5fm.js";
70
+ import"./chunk-sxajcbmn.js";
71
+ import"./chunk-ng7kq563.js";
72
+ import"./chunk-64qyep5d.js";
73
+ import"./chunk-fpm7gj3m.js";
74
74
  import"./chunk-x7fdwq3d.js";
75
75
  import"./chunk-a7fqavjt.js";
76
- import"./chunk-2wks5tbp.js";
77
- import"./chunk-95t7bqz3.js";
76
+ import"./chunk-kxpjg8s7.js";
77
+ import"./chunk-84qdsc71.js";
78
78
  import"./chunk-t9p85zff.js";
79
- import"./chunk-kkb0165y.js";
79
+ import"./chunk-n3xygbvg.js";
80
80
  import"./chunk-hqdwr6mz.js";
81
81
  import"./chunk-rn0v1hk8.js";
82
82
  import"./chunk-wa8yn2p0.js";
@@ -103,7 +103,7 @@ import {
103
103
  updateSessionName,
104
104
  useAppState,
105
105
  useSetAppState
106
- } from "./chunk-3pydh5j4.js";
106
+ } from "./chunk-33wa5mwn.js";
107
107
  import"./chunk-mcws22k3.js";
108
108
  import"./chunk-jzthz1bx.js";
109
109
  import"./chunk-xkpb3hbc.js";
@@ -113,7 +113,7 @@ import"./chunk-ehtwnxpg.js";
113
113
  import"./chunk-w9v6bd0p.js";
114
114
  import"./chunk-0wy4ckdx.js";
115
115
  import"./chunk-87xg6yb4.js";
116
- import"./chunk-br16k3dc.js";
116
+ import"./chunk-s8pbd9x3.js";
117
117
  import"./chunk-2gzv8nrw.js";
118
118
  import"./chunk-2h6f45jx.js";
119
119
  import"./chunk-cgfdkzhb.js";
@@ -10,7 +10,7 @@ import {
10
10
 
11
11
  // src/commands/diff/diff.tsx
12
12
  var jsx_dev_runtime, call = async (onDone, context) => {
13
- const { DiffDialog } = await import("./chunk-y26haxyd.js");
13
+ const { DiffDialog } = await import("./chunk-2ekqmqv3.js");
14
14
  return /* @__PURE__ */ jsx_dev_runtime.jsxDEV(DiffDialog, {
15
15
  messages: context.messages,
16
16
  onDone
package/dist/cli.js CHANGED
@@ -33,7 +33,7 @@ async function main() {
33
33
  if (false) {}
34
34
  if (process.argv[2] === "--claude-in-chrome-mcp") {
35
35
  profileCheckpoint("cli_claude_in_chrome_mcp_path");
36
- const { runClaudeInChromeMcpServer } = await import("./chunk-6j0rkk59.js");
36
+ const { runClaudeInChromeMcpServer } = await import("./chunk-wmxe6b8n.js");
37
37
  await runClaudeInChromeMcpServer();
38
38
  return;
39
39
  } else if (process.argv[2] === "--chrome-native-host") {
@@ -66,7 +66,7 @@ async function main() {
66
66
  enableConfigs();
67
67
  const { isWorktreeModeEnabled } = await import("./chunk-pwwa7s62.js");
68
68
  if (isWorktreeModeEnabled()) {
69
- const { execIntoTmuxWorktree } = await import("./chunk-bnyy9ktk.js");
69
+ const { execIntoTmuxWorktree } = await import("./chunk-y6xwhrtg.js");
70
70
  const result = await execIntoTmuxWorktree(args);
71
71
  if (result.handled) {
72
72
  return;
@@ -83,7 +83,7 @@ async function main() {
83
83
  const { startCapturingEarlyInput } = await import("./chunk-etdt1xz3.js");
84
84
  startCapturingEarlyInput();
85
85
  profileCheckpoint("cli_before_main_import");
86
- const { main: cliMain } = await import("./chunk-cew3ax9k.js");
86
+ const { main: cliMain } = await import("./chunk-pemaxw36.js");
87
87
  profileCheckpoint("cli_after_main_import");
88
88
  await cliMain();
89
89
  profileCheckpoint("cli_after_main_complete");
@@ -338,9 +338,9 @@ async function handleRequest(req) {
338
338
  break;
339
339
  }
340
340
  case "session.prompt": {
341
- const { session_key, text } = req.params;
341
+ const { session_key, input, text } = req.params;
342
342
  try {
343
- router.send(session_key, { type: "prompt", text });
343
+ router.send(session_key, { type: "prompt", input: input ?? text ?? "" });
344
344
  } catch (err) {
345
345
  notify({
346
346
  method: "session.error",
@@ -116228,7 +116228,7 @@ var init_metadata = __esm(() => {
116228
116228
  isClaudeAiAuth: false,
116229
116229
  version: "2.1.888",
116230
116230
  versionBase: getVersionBase(),
116231
- buildTime: "2026-05-07T09:55:01.690Z",
116231
+ buildTime: "2026-05-21T07:40:06.717Z",
116232
116232
  deploymentEnvironment: env3.detectDeploymentEnvironment(),
116233
116233
  ...isEnvTruthy(process.env.GITHUB_ACTIONS) && {
116234
116234
  githubEventName: process.env.GITHUB_EVENT_NAME,
@@ -384467,7 +384467,7 @@ function getAnthropicEnvMetadata() {
384467
384467
  function getBuildAgeMinutes() {
384468
384468
  if (false)
384469
384469
  ;
384470
- const buildTime = new Date("2026-05-07T09:55:01.690Z").getTime();
384470
+ const buildTime = new Date("2026-05-21T07:40:06.717Z").getTime();
384471
384471
  if (isNaN(buildTime))
384472
384472
  return;
384473
384473
  return Math.floor((Date.now() - buildTime) / 60000);
@@ -452773,7 +452773,7 @@ var init_bridge_kick = __esm(() => {
452773
452773
  var call55 = async () => {
452774
452774
  return {
452775
452775
  type: "text",
452776
- value: `${"2.1.888"} (built ${"2026-05-07T09:55:01.690Z"})`
452776
+ value: `${"2.1.888"} (built ${"2026-05-21T07:40:06.717Z"})`
452777
452777
  };
452778
452778
  }, version2, version_default;
452779
452779
  var init_version = __esm(() => {
@@ -477231,6 +477231,26 @@ var init_openai = __esm(() => {
477231
477231
  });
477232
477232
 
477233
477233
  // src/services/api/openai/client.ts
477234
+ function getOpenAICustomHeaders() {
477235
+ const customHeaders = {};
477236
+ const customHeadersEnv = process.env.OPENAI_CUSTOM_HEADERS;
477237
+ if (!customHeadersEnv)
477238
+ return customHeaders;
477239
+ const headerStrings = customHeadersEnv.split(/\n|\r\n/);
477240
+ for (const headerString of headerStrings) {
477241
+ if (!headerString.trim())
477242
+ continue;
477243
+ const colonIdx = headerString.indexOf(":");
477244
+ if (colonIdx === -1)
477245
+ continue;
477246
+ const name = headerString.slice(0, colonIdx).trim();
477247
+ const value = headerString.slice(colonIdx + 1).trim();
477248
+ if (name) {
477249
+ customHeaders[name] = value;
477250
+ }
477251
+ }
477252
+ return customHeaders;
477253
+ }
477234
477254
  function getOpenAIClient(options) {
477235
477255
  if (cachedClient)
477236
477256
  return cachedClient;
@@ -477244,6 +477264,7 @@ function getOpenAIClient(options) {
477244
477264
  dangerouslyAllowBrowser: true,
477245
477265
  ...process.env.OPENAI_ORG_ID && { organization: process.env.OPENAI_ORG_ID },
477246
477266
  ...process.env.OPENAI_PROJECT_ID && { project: process.env.OPENAI_PROJECT_ID },
477267
+ defaultHeaders: getOpenAICustomHeaders(),
477247
477268
  fetchOptions: getProxyFetchOptions({ forAnthropicAPI: false }),
477248
477269
  ...options?.fetchOverride && { fetch: options.fetchOverride }
477249
477270
  });
@@ -477326,8 +477347,8 @@ function convertInternalUserMessage(msg) {
477326
477347
  });
477327
477348
  } else if (Array.isArray(content)) {
477328
477349
  const textParts = [];
477329
- const toolResults = [];
477330
477350
  const imageParts = [];
477351
+ const toolResults = [];
477331
477352
  for (const block of content) {
477332
477353
  if (typeof block === "string") {
477333
477354
  textParts.push(block);
@@ -477336,57 +477357,76 @@ function convertInternalUserMessage(msg) {
477336
477357
  } else if (block.type === "tool_result") {
477337
477358
  toolResults.push(block);
477338
477359
  } else if (block.type === "image") {
477339
- const imagePart = convertImageBlockToOpenAI(block);
477340
- if (imagePart) {
477341
- imageParts.push(imagePart);
477360
+ if (block.source.type === "base64") {
477361
+ imageParts.push({
477362
+ type: "image_url",
477363
+ image_url: { url: `data:${block.source.media_type};base64,${block.source.data}` }
477364
+ });
477365
+ } else if (block.source.type === "url") {
477366
+ imageParts.push({
477367
+ type: "image_url",
477368
+ image_url: { url: block.source.url }
477369
+ });
477342
477370
  }
477343
477371
  }
477344
477372
  }
477373
+ const toolFollowUpMessages = [];
477345
477374
  for (const tr of toolResults) {
477346
- result.push(convertToolResult(tr));
477347
- }
477348
- if (imageParts.length > 0) {
477349
- const multiContent = [];
477350
- if (textParts.length > 0) {
477351
- multiContent.push({ type: "text", text: textParts.join(`
477375
+ const [toolMessage, ...followUpMessages] = convertToolResult(tr);
477376
+ result.push(toolMessage);
477377
+ toolFollowUpMessages.push(...followUpMessages);
477378
+ }
477379
+ result.push(...toolFollowUpMessages);
477380
+ if (textParts.length > 0 || imageParts.length > 0) {
477381
+ if (imageParts.length > 0) {
477382
+ const contentParts = [];
477383
+ if (textParts.length > 0) {
477384
+ contentParts.push({ type: "text", text: textParts.join(`
477352
477385
  `) });
477353
- }
477354
- multiContent.push(...imageParts);
477355
- result.push({
477356
- role: "user",
477357
- content: multiContent
477358
- });
477359
- } else if (textParts.length > 0) {
477360
- result.push({
477361
- role: "user",
477362
- content: textParts.join(`
477386
+ }
477387
+ contentParts.push(...imageParts);
477388
+ result.push({
477389
+ role: "user",
477390
+ content: contentParts
477391
+ });
477392
+ } else {
477393
+ result.push({
477394
+ role: "user",
477395
+ content: textParts.join(`
477363
477396
  `)
477364
- });
477397
+ });
477398
+ }
477365
477399
  }
477366
477400
  }
477367
477401
  return result;
477368
477402
  }
477369
477403
  function convertToolResult(block) {
477370
- let content;
477404
+ const textParts = [];
477371
477405
  if (typeof block.content === "string") {
477372
- content = block.content;
477406
+ textParts.push(block.content);
477373
477407
  } else if (Array.isArray(block.content)) {
477374
- content = block.content.map((c6) => {
477375
- if (typeof c6 === "string")
477376
- return c6;
477377
- if ("text" in c6)
477378
- return c6.text;
477379
- return "";
477380
- }).filter(Boolean).join(`
477381
- `);
477382
- } else {
477383
- content = "";
477408
+ for (const c6 of block.content) {
477409
+ if (typeof c6 === "string") {
477410
+ textParts.push(c6);
477411
+ continue;
477412
+ }
477413
+ if ("text" in c6 && typeof c6.text === "string") {
477414
+ textParts.push(c6.text);
477415
+ continue;
477416
+ }
477417
+ if (c6.type === "image") {
477418
+ textParts.push("[image returned by tool]");
477419
+ } else if (c6.type === "document") {
477420
+ textParts.push("[document returned by tool]");
477421
+ }
477422
+ }
477384
477423
  }
477385
- return {
477424
+ return [{
477386
477425
  role: "tool",
477387
477426
  tool_call_id: block.tool_use_id,
477388
- content
477389
- };
477427
+ content: textParts.filter(Boolean).join(`
477428
+ `) || ""
477429
+ }];
477390
477430
  }
477391
477431
  function convertInternalAssistantMessage(msg, preserveReasoning = false) {
477392
477432
  const content = msg.message.content;
@@ -477441,29 +477481,6 @@ function convertInternalAssistantMessage(msg, preserveReasoning = false) {
477441
477481
  };
477442
477482
  return [result];
477443
477483
  }
477444
- function convertImageBlockToOpenAI(block) {
477445
- const source = block.source;
477446
- if (!source)
477447
- return null;
477448
- if (source.type === "base64" && typeof source.data === "string") {
477449
- const mediaType = source.media_type || "image/png";
477450
- return {
477451
- type: "image_url",
477452
- image_url: {
477453
- url: `data:${mediaType};base64,${source.data}`
477454
- }
477455
- };
477456
- }
477457
- if (source.type === "url" && typeof source.url === "string") {
477458
- return {
477459
- type: "image_url",
477460
- image_url: {
477461
- url: source.url
477462
- }
477463
- };
477464
- }
477465
- return null;
477466
- }
477467
477484
 
477468
477485
  // src/services/api/openai/convertTools.ts
477469
477486
  function anthropicToolsToOpenAI(tools) {
@@ -482249,7 +482266,8 @@ class Session {
482249
482266
  if (state === "prompting" || state === "aborting") {
482250
482267
  throw new SessionBusyError;
482251
482268
  }
482252
- this.sm.transition("prompting", `prompt(${input.slice(0, 50)})`);
482269
+ const inputPreview = typeof input === "string" ? input.slice(0, 50) : `[multimodal: ${input.length} blocks]`;
482270
+ this.sm.transition("prompting", `prompt(${inputPreview})`);
482253
482271
  this.lastPromptAt = Date.now();
482254
482272
  try {
482255
482273
  yield* this.engine.submitMessage(input);
@@ -482531,7 +482549,7 @@ async function dequeueAndProcess(msg) {
482531
482549
  try {
482532
482550
  switch (msg.type) {
482533
482551
  case "prompt":
482534
- await handlePrompt(msg.text);
482552
+ await handlePrompt(msg.input);
482535
482553
  break;
482536
482554
  case "update":
482537
482555
  await handleUpdate(msg.config);
@@ -482548,7 +482566,7 @@ async function dequeueAndProcess(msg) {
482548
482566
  }
482549
482567
  }
482550
482568
  }
482551
- async function handlePrompt(text2) {
482569
+ async function handlePrompt(input) {
482552
482570
  const state = session2.getState().state;
482553
482571
  if (state !== "idle") {
482554
482572
  process.stderr.write(`[Worker ${sessionKey}] Prompt rejected: session state is ${state}
@@ -482560,9 +482578,10 @@ async function handlePrompt(text2) {
482560
482578
  });
482561
482579
  return;
482562
482580
  }
482563
- logState(`prompt(${text2.slice(0, 50)})`);
482581
+ const inputPreview = typeof input === "string" ? input.slice(0, 50) : `[multimodal: ${input.length} blocks]`;
482582
+ logState(`prompt(${inputPreview})`);
482564
482583
  try {
482565
- for await (const sdkMsg of session2.prompt(text2)) {
482584
+ for await (const sdkMsg of session2.prompt(input)) {
482566
482585
  send({
482567
482586
  type: "stream",
482568
482587
  session_key: sessionKey,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caspian2026/agent-sdk",
3
- "version": "0.0.13",
3
+ "version": "0.0.15",
4
4
  "description": "AI-powered agent SDK for the terminal",
5
5
  "type": "module",
6
6
  "engines": {