@caspian2026/agent-sdk 0.0.2 → 0.0.3
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.
- package/dist/{chunk-6gh20s05.js → chunk-0ey4cg5k.js} +16 -16
- package/dist/{chunk-s4cb0bcb.js → chunk-0fqnpjb8.js} +1 -1
- package/dist/{chunk-qfk94vcn.js → chunk-0g5cy3wj.js} +4 -4
- package/dist/{chunk-p11xp4xp.js → chunk-0q8745s9.js} +1 -1
- package/dist/{chunk-e97mp86b.js → chunk-0x81g48x.js} +21 -21
- package/dist/{chunk-vrf54kmt.js → chunk-0ze8q2yz.js} +1 -1
- package/dist/{chunk-prcah3ys.js → chunk-11mzpgem.js} +15 -15
- package/dist/{chunk-etgh9xvt.js → chunk-18c4q7fg.js} +17 -17
- package/dist/{chunk-9grztvcg.js → chunk-19fq1kwa.js} +18 -18
- package/dist/{chunk-vmbfv1y5.js → chunk-1dtg5p61.js} +2 -2
- package/dist/{chunk-kqggbte3.js → chunk-1ef43gpq.js} +15 -15
- package/dist/{chunk-3qbdzsvm.js → chunk-1xfvkmkt.js} +2 -2
- package/dist/{chunk-gkyzz8er.js → chunk-2bhq6mq2.js} +2 -2
- package/dist/{chunk-pkkngdv0.js → chunk-2dgcm775.js} +64 -64
- package/dist/{chunk-46n7byh8.js → chunk-2dzpw3wn.js} +18 -18
- package/dist/{chunk-wby6yd4m.js → chunk-2ht8gq9b.js} +16 -16
- package/dist/{chunk-rsq0h0rz.js → chunk-2me4kc29.js} +21 -21
- package/dist/{chunk-7gvwg1v9.js → chunk-2t3805kp.js} +18 -18
- package/dist/{chunk-0kxcq8h9.js → chunk-361d4z05.js} +16 -16
- package/dist/{chunk-mpk1sjyk.js → chunk-3bfn2a4v.js} +23 -23
- package/dist/{chunk-waqwgprq.js → chunk-3jty4gzq.js} +25 -25
- package/dist/{chunk-cxq7gc42.js → chunk-408jazm9.js} +15 -15
- package/dist/{chunk-mpbfkp8j.js → chunk-44pwvyq7.js} +15 -15
- package/dist/{chunk-spybh2dy.js → chunk-4be5h0yc.js} +15 -15
- package/dist/{chunk-yg4vgpxs.js → chunk-4nf2fyk9.js} +2 -2
- package/dist/{chunk-80a8vabn.js → chunk-56sxesq4.js} +18 -18
- package/dist/{chunk-8qhxyqj9.js → chunk-5ansv95b.js} +15 -15
- package/dist/{chunk-572vjq78.js → chunk-5d6qszza.js} +3 -3
- package/dist/{chunk-msecaxyj.js → chunk-5fczbwbd.js} +1 -1
- package/dist/{chunk-ne5r3k03.js → chunk-5seqsaw2.js} +16 -16
- package/dist/{chunk-nebezy1d.js → chunk-6a1a7h81.js} +1 -1
- package/dist/{chunk-hzgnejb1.js → chunk-6ap6tj51.js} +2 -2
- package/dist/{chunk-jss0azv7.js → chunk-6cv9d7sq.js} +15 -15
- package/dist/{chunk-nxgsnh2y.js → chunk-6d4v1hv4.js} +1 -1
- package/dist/{chunk-46hd1gyd.js → chunk-6dkz81cc.js} +1 -1
- package/dist/{chunk-ahr1r7c6.js → chunk-6g08p77s.js} +14 -14
- package/dist/{chunk-wtjt9qyk.js → chunk-6hw0f4ym.js} +10 -10
- package/dist/{chunk-1yrcnrs7.js → chunk-6zkha0yn.js} +16 -16
- package/dist/{chunk-ysanv95x.js → chunk-71kpm320.js} +1 -1
- package/dist/{chunk-ratvcbmn.js → chunk-72eqezp9.js} +16 -16
- package/dist/{chunk-zpmwvd09.js → chunk-72wwwagz.js} +2 -2
- package/dist/{chunk-wjcq2vkf.js → chunk-73hk10ba.js} +15 -15
- package/dist/{chunk-7h2ybnf3.js → chunk-75sn3f0z.js} +15 -15
- package/dist/{chunk-ercvcek8.js → chunk-7800bmte.js} +15 -15
- package/dist/{chunk-zf47r1b7.js → chunk-781e202z.js} +15 -15
- package/dist/{chunk-2n7bbxm6.js → chunk-79vgx5xx.js} +16 -16
- package/dist/{chunk-7kcm5hn2.js → chunk-7ft9zhef.js} +3 -3
- package/dist/{chunk-xzhaa7gd.js → chunk-7h07x96r.js} +15 -15
- package/dist/{chunk-3389cj3w.js → chunk-7kbkx0yy.js} +15 -15
- package/dist/{chunk-n0kmh4ra.js → chunk-7thhwqxr.js} +1 -1
- package/dist/{chunk-jyw3np47.js → chunk-7ty8tj56.js} +3 -3
- package/dist/{chunk-8mkwsdk1.js → chunk-7xshmwm1.js} +1 -1
- package/dist/{chunk-5dmhsqap.js → chunk-7yr67s8x.js} +2 -2
- package/dist/{chunk-68w91pzt.js → chunk-89cp87ps.js} +2 -2
- package/dist/{chunk-jgwd85hp.js → chunk-8b84wjgw.js} +18 -18
- package/dist/{chunk-fn1vvj8k.js → chunk-8c2eawmj.js} +15 -15
- package/dist/{chunk-jk69qtzx.js → chunk-8jjqfmfc.js} +15 -15
- package/dist/{chunk-q6cfkntd.js → chunk-8mp4fwz4.js} +20 -20
- package/dist/{chunk-chakj069.js → chunk-8pq8e1bn.js} +2 -2
- package/dist/{chunk-my40g5hp.js → chunk-9159pxty.js} +17 -17
- package/dist/{chunk-sfcpjh4r.js → chunk-96aeszqf.js} +15 -15
- package/dist/{chunk-p1hwrf72.js → chunk-9e0gg5n6.js} +6 -6
- package/dist/{chunk-pqvr8jq7.js → chunk-9gmagxgg.js} +16 -16
- package/dist/{chunk-v8g3kad0.js → chunk-9jpgcgjx.js} +16 -16
- package/dist/{chunk-162ewhvy.js → chunk-9w6vmnwm.js} +15 -15
- package/dist/{chunk-w004kfw0.js → chunk-a2g1kkb0.js} +23 -23
- package/dist/{chunk-qj2mk79w.js → chunk-abfc6bsz.js} +2 -2
- package/dist/{chunk-a8792r1c.js → chunk-ac5wa5c1.js} +3 -3
- package/dist/{chunk-nhapyawz.js → chunk-b63w1za4.js} +55 -55
- package/dist/{chunk-7acgdm7x.js → chunk-b7j8wgza.js} +3 -3
- package/dist/{chunk-q7zpf4r2.js → chunk-bch5pzsb.js} +1 -1
- package/dist/{chunk-5rt4b8q9.js → chunk-bdepkffm.js} +23 -23
- package/dist/{chunk-gdg6411p.js → chunk-bjhshbab.js} +15 -15
- package/dist/{chunk-50bay5qy.js → chunk-bjqfz533.js} +27 -27
- package/dist/{chunk-p39a677r.js → chunk-bpye0b8s.js} +23 -23
- package/dist/{chunk-vjn8mbcw.js → chunk-bvm1dctd.js} +3 -3
- package/dist/{chunk-n18q5yqs.js → chunk-c18kgbb7.js} +25 -25
- package/dist/{chunk-v0qraze5.js → chunk-cfx7wfk6.js} +15 -15
- package/dist/{chunk-5nchekqe.js → chunk-cpmn4fjt.js} +3 -3
- package/dist/{chunk-kvfg8eeg.js → chunk-cpyrcg4y.js} +1 -1
- package/dist/{chunk-zx5kw7z4.js → chunk-crsch4vf.js} +2 -2
- package/dist/{chunk-fbvw6wq9.js → chunk-cscdr443.js} +23 -23
- package/dist/{chunk-mxr2s6d1.js → chunk-ct6rynsc.js} +16 -16
- package/dist/{chunk-tqmtkm0k.js → chunk-dhk1bbnx.js} +15 -15
- package/dist/{chunk-pcb7fbyg.js → chunk-dn3wnpzd.js} +3 -3
- package/dist/{chunk-26hg7303.js → chunk-dqb56c5c.js} +2 -2
- package/dist/{chunk-q6xs51jj.js → chunk-dyb2pz6v.js} +2 -2
- package/dist/{chunk-35sgv3er.js → chunk-e2msjgt3.js} +3 -3
- package/dist/{chunk-7yxvpj5j.js → chunk-e927d4zv.js} +16 -16
- package/dist/{chunk-5pp28k2r.js → chunk-eaecret8.js} +1 -1
- package/dist/{chunk-cdhmrbj4.js → chunk-ecn92eyg.js} +46 -46
- package/dist/{chunk-8hj8ms5q.js → chunk-ek8yfknw.js} +4 -4
- package/dist/{chunk-jfja8q7w.js → chunk-ekabtxs5.js} +16 -16
- package/dist/{chunk-e4p1jbs4.js → chunk-enw0tvvd.js} +3 -3
- package/dist/{chunk-0kj8bq80.js → chunk-epbatqnz.js} +15 -15
- package/dist/{chunk-2352ts05.js → chunk-ethz3kk6.js} +5 -5
- package/dist/{chunk-10qhq6f8.js → chunk-exzfhqcw.js} +7 -7
- package/dist/{chunk-d7f1pzkq.js → chunk-ez5g4s3x.js} +3 -3
- package/dist/{chunk-69fgaak0.js → chunk-ezewb24j.js} +20 -20
- package/dist/{chunk-21bcvwr7.js → chunk-f8k2m8t5.js} +2 -2
- package/dist/{chunk-e8p3fy6v.js → chunk-f9pmx93x.js} +15 -15
- package/dist/{chunk-qygmcg7w.js → chunk-fahjtsky.js} +3 -3
- package/dist/{chunk-jxpmkae9.js → chunk-fddncz1a.js} +17 -17
- package/dist/{chunk-3e20cj49.js → chunk-fn27e5q1.js} +4 -4
- package/dist/{chunk-15sfg4bs.js → chunk-ftqr2rnb.js} +1 -1
- package/dist/{chunk-npnvheft.js → chunk-fy3wj80e.js} +18 -18
- package/dist/{chunk-gcpfxk0c.js → chunk-fzhwt8cv.js} +3 -3
- package/dist/{chunk-kjh11txh.js → chunk-g1mv9mvv.js} +15 -15
- package/dist/{chunk-5apfzkpy.js → chunk-g7e5d5p6.js} +2 -2
- package/dist/{chunk-505mxxa9.js → chunk-ga86yjm1.js} +4 -4
- package/dist/{chunk-h6fsks9j.js → chunk-gh22pv06.js} +16 -16
- package/dist/{chunk-70cw4cg9.js → chunk-gksbas59.js} +8 -8
- package/dist/{chunk-e2mv8ts8.js → chunk-gnhmax8q.js} +16 -16
- package/dist/{chunk-d4kwjqjy.js → chunk-gy8bxg6y.js} +1 -1
- package/dist/{chunk-vzgkedm9.js → chunk-h0xhdme4.js} +139 -139
- package/dist/{chunk-8y30k9pz.js → chunk-h7g702xg.js} +2 -2
- package/dist/{chunk-tc1aazk4.js → chunk-hmvgaxcy.js} +16 -16
- package/dist/{chunk-bktfq0ns.js → chunk-hp36phn4.js} +21 -21
- package/dist/{chunk-htpehq9t.js → chunk-hy6v0p5h.js} +2 -2
- package/dist/{chunk-c5mz5vw2.js → chunk-hzr8wcet.js} +2 -2
- package/dist/{chunk-0htx82k2.js → chunk-j814rssk.js} +3 -3
- package/dist/{chunk-q6m26rc8.js → chunk-j8tgj0nj.js} +15 -15
- package/dist/{chunk-q3jr5t07.js → chunk-ja0e0n2h.js} +2 -2
- package/dist/{chunk-f0rzvqmq.js → chunk-jck1zn7p.js} +1 -1
- package/dist/{chunk-fshfxw2q.js → chunk-jdkxtvsq.js} +1 -1
- package/dist/{chunk-b2fd462a.js → chunk-jfndcmsy.js} +1 -1
- package/dist/{chunk-537qfvn5.js → chunk-jsmf95r7.js} +17 -17
- package/dist/{chunk-3yprydpw.js → chunk-jx1pp4q8.js} +16 -16
- package/dist/{chunk-k3939ggz.js → chunk-ke2cy3b6.js} +15 -15
- package/dist/{chunk-qwqjesx7.js → chunk-kh6vcrwx.js} +5 -5
- package/dist/{chunk-zghtdbat.js → chunk-khdcvjdb.js} +3 -3
- package/dist/{chunk-3mr5ryx4.js → chunk-kt7bv7ky.js} +3 -3
- package/dist/{chunk-w0yhbmxn.js → chunk-kxjevttw.js} +18 -18
- package/dist/{chunk-k2rybwww.js → chunk-kzmh7ra2.js} +16 -16
- package/dist/{chunk-hchy0hq6.js → chunk-m0v0xgsr.js} +3 -3
- package/dist/{chunk-efgjfast.js → chunk-m1f7cfnj.js} +1 -1
- package/dist/{chunk-bvf2z3g6.js → chunk-m7emb9zr.js} +18 -18
- package/dist/{chunk-960ze3jj.js → chunk-mcfc152r.js} +15 -15
- package/dist/{chunk-ebqwkhyf.js → chunk-mf0c3jdd.js} +63 -63
- package/dist/{chunk-yk62vxj2.js → chunk-mk23f69h.js} +7 -7
- package/dist/{chunk-0jmt5sx1.js → chunk-mw580pc6.js} +15 -15
- package/dist/{chunk-hyb749hd.js → chunk-mw970f89.js} +15 -15
- package/dist/{chunk-2vqrdwx9.js → chunk-mx77s51x.js} +5 -5
- package/dist/{chunk-5fs6nkjr.js → chunk-nmk3h03d.js} +1 -1
- package/dist/{chunk-tvgvt220.js → chunk-nqn45znr.js} +9 -9
- package/dist/{chunk-m1cehfta.js → chunk-nstcd31j.js} +15 -15
- package/dist/{chunk-018smjq7.js → chunk-nvkqnxse.js} +1 -1
- package/dist/{chunk-zshzdw1n.js → chunk-nvqyjpk0.js} +16 -16
- package/dist/{chunk-beg7bdyz.js → chunk-p897jpw3.js} +15 -15
- package/dist/{chunk-f1m9pect.js → chunk-pkxf7b8m.js} +15 -15
- package/dist/{chunk-yff68ex1.js → chunk-prmmnxrv.js} +2 -2
- package/dist/{chunk-k5ez1h65.js → chunk-qaafznja.js} +15 -15
- package/dist/{chunk-zb8f6h5g.js → chunk-qcm6cec5.js} +98 -98
- package/dist/{chunk-2h05vtpv.js → chunk-qgrxp31t.js} +2 -2
- package/dist/{chunk-ctdg0qxh.js → chunk-qkn0t7qw.js} +22 -22
- package/dist/{chunk-c37j5zxe.js → chunk-qrxnqq1e.js} +4 -4
- package/dist/{chunk-tjcfpk38.js → chunk-qrzch8z1.js} +2 -2
- package/dist/{chunk-kajf3jgq.js → chunk-qybvf59x.js} +21 -21
- package/dist/{chunk-hx3j6n92.js → chunk-r25gxvfw.js} +16 -16
- package/dist/{chunk-430yrtmk.js → chunk-r9wd5vyt.js} +16 -16
- package/dist/{chunk-8n42zyfx.js → chunk-rahj2cma.js} +2 -2
- package/dist/{chunk-055q0a2m.js → chunk-rv3mfwbg.js} +2 -2
- package/dist/{chunk-j3zhb8vv.js → chunk-s6x5f0r9.js} +1 -1
- package/dist/{chunk-qzj4e8fn.js → chunk-sa05epz2.js} +4 -4
- package/dist/{chunk-nb6abcch.js → chunk-sbtw37tw.js} +2 -2
- package/dist/{chunk-exah13mz.js → chunk-sbxet7s6.js} +15 -15
- package/dist/{chunk-6t4a9cgj.js → chunk-sdv9rd2d.js} +7 -7
- package/dist/{chunk-e4bhfc6d.js → chunk-sk71mpcs.js} +15 -15
- package/dist/{chunk-4dn3n459.js → chunk-spkndfy1.js} +15 -15
- package/dist/{chunk-ev3qkf76.js → chunk-t1ad6f2g.js} +16 -16
- package/dist/{chunk-kbm69rtz.js → chunk-t1jxa0p1.js} +2 -2
- package/dist/{chunk-sw9ax3ym.js → chunk-t2s1skd1.js} +19 -19
- package/dist/{chunk-682qgta2.js → chunk-t4z5dzj5.js} +15 -15
- package/dist/{chunk-2nv3d0he.js → chunk-tba8ad4h.js} +15 -15
- package/dist/{chunk-ped973jn.js → chunk-tbkmn3tw.js} +2 -2
- package/dist/{chunk-7m2hp89m.js → chunk-tcwb3a2s.js} +3 -3
- package/dist/{chunk-p1zj9mg9.js → chunk-tg8c7b7e.js} +15 -15
- package/dist/{chunk-q8c88vjm.js → chunk-tj0q283m.js} +1 -1
- package/dist/{chunk-zesnmkg3.js → chunk-tm5jd44f.js} +3 -3
- package/dist/{chunk-k591cwbg.js → chunk-tr74vr8t.js} +16 -16
- package/dist/{chunk-jy9rxxqe.js → chunk-ttzbsh14.js} +3 -3
- package/dist/{chunk-mg7pbk0r.js → chunk-v270w96b.js} +1 -1
- package/dist/{chunk-6maej1hh.js → chunk-v6qkcn3c.js} +2 -2
- package/dist/{chunk-zr6mz36s.js → chunk-v89zna4t.js} +2 -2
- package/dist/{chunk-jr1xm1dd.js → chunk-vh316r81.js} +20 -20
- package/dist/{chunk-zqncgyf6.js → chunk-vh5hef50.js} +16 -16
- package/dist/{chunk-1c4j7qn2.js → chunk-vnd60kzr.js} +17 -17
- package/dist/{chunk-46hdszda.js → chunk-w1qjz3ym.js} +1 -1
- package/dist/{chunk-rvnb2gn6.js → chunk-wdbd36jw.js} +15 -15
- package/dist/{chunk-d1pyf9as.js → chunk-wgx1c22r.js} +10 -10
- package/dist/{chunk-1xvcvdef.js → chunk-wpr48ga6.js} +17 -17
- package/dist/{chunk-pckwmrzd.js → chunk-wtjrbc18.js} +3 -3
- package/dist/{chunk-b0qptb1k.js → chunk-wxbfyvkv.js} +1 -1
- package/dist/{chunk-bdrjvs5k.js → chunk-x0zq9nvp.js} +2 -2
- package/dist/{chunk-cc2tg4q8.js → chunk-x5y2at68.js} +1 -1
- package/dist/{chunk-vb3x3cxe.js → chunk-xa4rted0.js} +24 -24
- package/dist/{chunk-19e603rv.js → chunk-xds4gydx.js} +15 -15
- package/dist/{chunk-qq0phwn8.js → chunk-xk154b34.js} +16 -16
- package/dist/{chunk-rx278zpa.js → chunk-xn9m0kzv.js} +1 -1
- package/dist/{chunk-177s15bv.js → chunk-xpb339s9.js} +1 -1
- package/dist/{chunk-6vthy0fj.js → chunk-xr0306g4.js} +15 -15
- package/dist/{chunk-2h0y6m16.js → chunk-xwtahnmz.js} +4 -4
- package/dist/{chunk-6t8yqfks.js → chunk-y06wew00.js} +17 -17
- package/dist/{chunk-nw9t5pq9.js → chunk-y3hd0azg.js} +1 -1
- package/dist/{chunk-qj2e1apf.js → chunk-yfwxjr5b.js} +17 -17
- package/dist/{chunk-kr6qfwq0.js → chunk-yhrmtb28.js} +1 -1
- package/dist/{chunk-en8wkxh7.js → chunk-yr9sczgc.js} +4 -4
- package/dist/{chunk-gxahdggv.js → chunk-z4t6b6c4.js} +1 -1
- package/dist/{chunk-qk7dfae6.js → chunk-za4s66jw.js} +1 -1
- package/dist/{chunk-1xct96nd.js → chunk-znbw4gde.js} +15 -15
- package/dist/{chunk-pxdzy0jh.js → chunk-zngg9gmy.js} +17 -17
- package/dist/{chunk-hqqkj5pg.js → chunk-zph33jdm.js} +2 -2
- package/dist/{chunk-evp5pb9x.js → chunk-zsvtrqrz.js} +21 -21
- package/dist/{chunk-xd6kmmb1.js → chunk-zzyebz89.js} +22 -22
- package/dist/cli.js +5 -5
- package/dist/sdk/query.cjs +407 -0
- package/dist/sdk/query.js +372 -0
- package/package.json +9 -2
- package/dist/{chunk-tp2jxmcx.js → chunk-tr9rx7f4.js} +4 -4
|
@@ -2,49 +2,49 @@
|
|
|
2
2
|
import {
|
|
3
3
|
call,
|
|
4
4
|
init_extra_usage
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import"./chunk-
|
|
7
|
-
import"./chunk-
|
|
8
|
-
import"./chunk-
|
|
9
|
-
import"./chunk-
|
|
10
|
-
import"./chunk-
|
|
11
|
-
import"./chunk-
|
|
12
|
-
import"./chunk-
|
|
13
|
-
import"./chunk-
|
|
5
|
+
} from "./chunk-rahj2cma.js";
|
|
6
|
+
import"./chunk-ek8yfknw.js";
|
|
7
|
+
import"./chunk-jck1zn7p.js";
|
|
8
|
+
import"./chunk-h7g702xg.js";
|
|
9
|
+
import"./chunk-yr9sczgc.js";
|
|
10
|
+
import"./chunk-1xfvkmkt.js";
|
|
11
|
+
import"./chunk-ja0e0n2h.js";
|
|
12
|
+
import"./chunk-h0xhdme4.js";
|
|
13
|
+
import"./chunk-w1qjz3ym.js";
|
|
14
14
|
import"./chunk-hwfknpxv.js";
|
|
15
15
|
import"./chunk-4nspekjp.js";
|
|
16
16
|
import"./chunk-jzthz1bx.js";
|
|
17
17
|
import"./chunk-1gx78081.js";
|
|
18
|
+
import"./chunk-89cp87ps.js";
|
|
19
|
+
import"./chunk-6a1a7h81.js";
|
|
18
20
|
import"./chunk-2gzv8nrw.js";
|
|
19
21
|
import"./chunk-ehtwnxpg.js";
|
|
20
|
-
import"./chunk-
|
|
21
|
-
import"./chunk-
|
|
22
|
+
import"./chunk-0fqnpjb8.js";
|
|
23
|
+
import"./chunk-wayfjcwt.js";
|
|
22
24
|
import"./chunk-cgfdkzhb.js";
|
|
23
25
|
import"./chunk-bxcfz5gy.js";
|
|
24
|
-
import"./chunk-
|
|
25
|
-
import"./chunk-wayfjcwt.js";
|
|
26
|
-
import"./chunk-kbm69rtz.js";
|
|
26
|
+
import"./chunk-t1jxa0p1.js";
|
|
27
27
|
import"./chunk-j5bth84e.js";
|
|
28
|
-
import"./chunk-
|
|
28
|
+
import"./chunk-6d4v1hv4.js";
|
|
29
29
|
import"./chunk-68ffk5qa.js";
|
|
30
30
|
import"./chunk-ps49ymvj.js";
|
|
31
|
-
import"./chunk-bmbq6nt1.js";
|
|
32
|
-
import"./chunk-15sfg4bs.js";
|
|
33
31
|
import"./chunk-p7vkh4wx.js";
|
|
34
|
-
import"./chunk-
|
|
32
|
+
import"./chunk-bmbq6nt1.js";
|
|
33
|
+
import"./chunk-ftqr2rnb.js";
|
|
34
|
+
import"./chunk-wxbfyvkv.js";
|
|
35
35
|
import"./chunk-m87bhhqv.js";
|
|
36
|
-
import"./chunk-
|
|
37
|
-
import"./chunk-
|
|
36
|
+
import"./chunk-s6x5f0r9.js";
|
|
37
|
+
import"./chunk-jfndcmsy.js";
|
|
38
38
|
import"./chunk-c11swzas.js";
|
|
39
39
|
import"./chunk-chsyvavm.js";
|
|
40
40
|
import"./chunk-5rv9c8yd.js";
|
|
41
|
-
import"./chunk-
|
|
41
|
+
import"./chunk-tr9rx7f4.js";
|
|
42
42
|
import"./chunk-z19sd3bt.js";
|
|
43
43
|
import"./chunk-1ax1znzj.js";
|
|
44
|
-
import"./chunk-wha6v7za.js";
|
|
45
44
|
import"./chunk-6nsd9606.js";
|
|
46
45
|
import"./chunk-xp61y5ba.js";
|
|
47
46
|
import"./chunk-64c1avct.js";
|
|
47
|
+
import"./chunk-wha6v7za.js";
|
|
48
48
|
import"./chunk-8g5pe1gr.js";
|
|
49
49
|
import"./chunk-4cp6193g.js";
|
|
50
50
|
import"./chunk-8g747a8x.js";
|
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-
|
|
36
|
+
const { runClaudeInChromeMcpServer } = await import("./chunk-vnd60kzr.js");
|
|
37
37
|
await runClaudeInChromeMcpServer();
|
|
38
38
|
return;
|
|
39
39
|
} else if (process.argv[2] === "--chrome-native-host") {
|
|
@@ -43,7 +43,7 @@ async function main() {
|
|
|
43
43
|
return;
|
|
44
44
|
} else if (process.argv[2] === "--computer-use-mcp") {
|
|
45
45
|
profileCheckpoint("cli_computer_use_mcp_path");
|
|
46
|
-
const { runComputerUseMcpServer } = await import("./chunk-
|
|
46
|
+
const { runComputerUseMcpServer } = await import("./chunk-kh6vcrwx.js");
|
|
47
47
|
await runComputerUseMcpServer();
|
|
48
48
|
return;
|
|
49
49
|
}
|
|
@@ -62,11 +62,11 @@ async function main() {
|
|
|
62
62
|
const hasTmuxFlag = args.includes("--tmux") || args.includes("--tmux=classic");
|
|
63
63
|
if (hasTmuxFlag && (args.includes("-w") || args.includes("--worktree") || args.some((a) => a.startsWith("--worktree=")))) {
|
|
64
64
|
profileCheckpoint("cli_tmux_worktree_fast_path");
|
|
65
|
-
const { enableConfigs } = await import("./chunk-
|
|
65
|
+
const { enableConfigs } = await import("./chunk-prmmnxrv.js");
|
|
66
66
|
enableConfigs();
|
|
67
67
|
const { isWorktreeModeEnabled } = await import("./chunk-pwwa7s62.js");
|
|
68
68
|
if (isWorktreeModeEnabled()) {
|
|
69
|
-
const { execIntoTmuxWorktree } = await import("./chunk-
|
|
69
|
+
const { execIntoTmuxWorktree } = await import("./chunk-mcfc152r.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-jgpmpgx6.js");
|
|
84
84
|
startCapturingEarlyInput();
|
|
85
85
|
profileCheckpoint("cli_before_main_import");
|
|
86
|
-
const { main: cliMain } = await import("./chunk-
|
|
86
|
+
const { main: cliMain } = await import("./chunk-qcm6cec5.js");
|
|
87
87
|
profileCheckpoint("cli_after_main_import");
|
|
88
88
|
await cliMain();
|
|
89
89
|
profileCheckpoint("cli_after_main_complete");
|
|
@@ -0,0 +1,407 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
function __accessProp(key) {
|
|
6
|
+
return this[key];
|
|
7
|
+
}
|
|
8
|
+
var __toCommonJS = (from) => {
|
|
9
|
+
var entry = (__moduleCache ??= new WeakMap).get(from), desc;
|
|
10
|
+
if (entry)
|
|
11
|
+
return entry;
|
|
12
|
+
entry = __defProp({}, "__esModule", { value: true });
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (var key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(entry, key))
|
|
16
|
+
__defProp(entry, key, {
|
|
17
|
+
get: __accessProp.bind(from, key),
|
|
18
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
__moduleCache.set(from, entry);
|
|
22
|
+
return entry;
|
|
23
|
+
};
|
|
24
|
+
var __moduleCache;
|
|
25
|
+
var __returnValue = (v) => v;
|
|
26
|
+
function __exportSetter(name, newValue) {
|
|
27
|
+
this[name] = __returnValue.bind(null, newValue);
|
|
28
|
+
}
|
|
29
|
+
var __export = (target, all) => {
|
|
30
|
+
for (var name in all)
|
|
31
|
+
__defProp(target, name, {
|
|
32
|
+
get: all[name],
|
|
33
|
+
enumerable: true,
|
|
34
|
+
configurable: true,
|
|
35
|
+
set: __exportSetter.bind(all, name)
|
|
36
|
+
});
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
// src/entrypoints/sdk/query.ts
|
|
40
|
+
var exports_query = {};
|
|
41
|
+
__export(exports_query, {
|
|
42
|
+
query: () => query
|
|
43
|
+
});
|
|
44
|
+
module.exports = __toCommonJS(exports_query);
|
|
45
|
+
var import_node_child_process = require("node:child_process");
|
|
46
|
+
var import_node_readline = require("node:readline");
|
|
47
|
+
var require_ = require;
|
|
48
|
+
function resolveCliPath(options) {
|
|
49
|
+
if (options.pathToClaudeCodeExecutable) {
|
|
50
|
+
return options.pathToClaudeCodeExecutable;
|
|
51
|
+
}
|
|
52
|
+
try {
|
|
53
|
+
return require_.resolve("@caspian2026/agent-sdk/dist/cli.js");
|
|
54
|
+
} catch {
|
|
55
|
+
throw new Error("Cannot resolve CLI path. Set options.pathToClaudeCodeExecutable or install @caspian2026/agent-sdk.");
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
function buildCliArgs(options) {
|
|
59
|
+
const args = ["-p", "--output-format", "stream-json", "--input-format", "stream-json", "--verbose"];
|
|
60
|
+
if (options.model) {
|
|
61
|
+
args.push("--model", options.model);
|
|
62
|
+
}
|
|
63
|
+
if (options.resume) {
|
|
64
|
+
args.push("--resume", options.resume);
|
|
65
|
+
}
|
|
66
|
+
if (options.continue) {
|
|
67
|
+
args.push("--continue");
|
|
68
|
+
}
|
|
69
|
+
if (options.permissionMode) {
|
|
70
|
+
args.push("--permission-mode", options.permissionMode);
|
|
71
|
+
}
|
|
72
|
+
if (options.maxTurns !== undefined) {
|
|
73
|
+
args.push("--max-turns", String(options.maxTurns));
|
|
74
|
+
}
|
|
75
|
+
if (options.maxBudgetUsd !== undefined) {
|
|
76
|
+
args.push("--max-budget-usd", String(options.maxBudgetUsd));
|
|
77
|
+
}
|
|
78
|
+
if (options.thinking) {
|
|
79
|
+
args.push("--thinking", options.thinking);
|
|
80
|
+
}
|
|
81
|
+
if (options.allowedTools?.length) {
|
|
82
|
+
args.push("--allowed-tools", ...options.allowedTools);
|
|
83
|
+
}
|
|
84
|
+
if (options.includePartialMessages) {
|
|
85
|
+
args.push("--include-partial-messages");
|
|
86
|
+
}
|
|
87
|
+
if (options.allowDangerouslySkipPermissions) {
|
|
88
|
+
args.push("--dangerously-skip-permissions");
|
|
89
|
+
}
|
|
90
|
+
if (options.permissionPromptToolName) {
|
|
91
|
+
args.push("--permission-prompt-tool", options.permissionPromptToolName);
|
|
92
|
+
}
|
|
93
|
+
if (options.plugins?.length) {
|
|
94
|
+
for (const plugin of options.plugins) {
|
|
95
|
+
args.push("--plugin-dir", plugin.path);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
if (options.additionalDirectories?.length) {
|
|
99
|
+
args.push("--add-dir", ...options.additionalDirectories);
|
|
100
|
+
}
|
|
101
|
+
if (options.settingSources?.length) {
|
|
102
|
+
args.push("--setting-sources", ...options.settingSources);
|
|
103
|
+
}
|
|
104
|
+
if (typeof options.systemPrompt === "string") {
|
|
105
|
+
args.push("--system-prompt", options.systemPrompt);
|
|
106
|
+
} else if (options.systemPrompt && typeof options.systemPrompt === "object") {
|
|
107
|
+
if (options.systemPrompt.type === "preset" && options.systemPrompt.append) {
|
|
108
|
+
args.push("--append-system-prompt", options.systemPrompt.append);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
if (options.fallbackModel) {
|
|
112
|
+
args.push("--fallback-model", options.fallbackModel);
|
|
113
|
+
}
|
|
114
|
+
if (options.mcpServers && Object.keys(options.mcpServers).length > 0) {
|
|
115
|
+
args.push("--mcp-config", JSON.stringify(options.mcpServers));
|
|
116
|
+
}
|
|
117
|
+
if (options.extraArgs) {
|
|
118
|
+
for (const [key, value] of Object.entries(options.extraArgs)) {
|
|
119
|
+
if (value === null) {
|
|
120
|
+
args.push(key);
|
|
121
|
+
} else {
|
|
122
|
+
args.push(key, value);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
return args;
|
|
127
|
+
}
|
|
128
|
+
function ndjsonParse(line) {
|
|
129
|
+
if (!line.trim())
|
|
130
|
+
return;
|
|
131
|
+
return JSON.parse(line);
|
|
132
|
+
}
|
|
133
|
+
function ndjsonStringify(obj) {
|
|
134
|
+
return JSON.stringify(obj) + `
|
|
135
|
+
`;
|
|
136
|
+
}
|
|
137
|
+
function buildHookCallbackMap(hooks) {
|
|
138
|
+
const map = new Map;
|
|
139
|
+
if (!hooks)
|
|
140
|
+
return map;
|
|
141
|
+
for (const [_event, matchers] of Object.entries(hooks)) {
|
|
142
|
+
if (!matchers)
|
|
143
|
+
continue;
|
|
144
|
+
for (const matcher of matchers) {
|
|
145
|
+
for (const hook of matcher.hooks) {
|
|
146
|
+
const id = `hook_${_event}_${matcher.matcher || "all"}_${map.size}`;
|
|
147
|
+
map.set(id, { callback: hook, timeout: matcher.timeout });
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
return map;
|
|
152
|
+
}
|
|
153
|
+
function buildHooksConfig(hooks) {
|
|
154
|
+
if (!hooks)
|
|
155
|
+
return;
|
|
156
|
+
const config = {};
|
|
157
|
+
for (const [event, matchers] of Object.entries(hooks)) {
|
|
158
|
+
if (!matchers)
|
|
159
|
+
continue;
|
|
160
|
+
const eventHooks = [];
|
|
161
|
+
for (const matcher of matchers) {
|
|
162
|
+
const callbackIds = [];
|
|
163
|
+
for (let i = 0;i < matcher.hooks.length; i++) {
|
|
164
|
+
callbackIds.push(`hook_${event}_${matcher.matcher || "all"}_${eventHooks.length * matcher.hooks.length + i}`);
|
|
165
|
+
}
|
|
166
|
+
eventHooks.push({
|
|
167
|
+
matcher: matcher.matcher,
|
|
168
|
+
hookCallbackIds: callbackIds,
|
|
169
|
+
timeout: matcher.timeout
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
if (eventHooks.length > 0) {
|
|
173
|
+
config[event] = eventHooks;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
return Object.keys(config).length > 0 ? config : undefined;
|
|
177
|
+
}
|
|
178
|
+
async function* query(params) {
|
|
179
|
+
const { prompt, options } = params;
|
|
180
|
+
const abortController = options.abortController ?? new AbortController;
|
|
181
|
+
const signal = abortController.signal;
|
|
182
|
+
const cliPath = resolveCliPath(options);
|
|
183
|
+
const cliArgs = buildCliArgs(options);
|
|
184
|
+
const cliDir = options.cwd ?? process.cwd();
|
|
185
|
+
const env = {
|
|
186
|
+
...process.env,
|
|
187
|
+
...options.env,
|
|
188
|
+
ELECTRON_RUN_AS_NODE: "1"
|
|
189
|
+
};
|
|
190
|
+
const child = import_node_child_process.spawn(process.execPath, [cliPath, ...cliArgs], {
|
|
191
|
+
cwd: cliDir,
|
|
192
|
+
env,
|
|
193
|
+
stdio: ["pipe", "pipe", "pipe"],
|
|
194
|
+
signal
|
|
195
|
+
});
|
|
196
|
+
const stdin = child.stdin;
|
|
197
|
+
const stdout = child.stdout;
|
|
198
|
+
const stderr = child.stderr;
|
|
199
|
+
if (options.stderr) {
|
|
200
|
+
stderr.on("data", (chunk) => {
|
|
201
|
+
options.stderr(chunk.toString());
|
|
202
|
+
});
|
|
203
|
+
} else {
|
|
204
|
+
stderr.resume();
|
|
205
|
+
}
|
|
206
|
+
const hookCallbacks = buildHookCallbackMap(options.hooks);
|
|
207
|
+
const pendingControlRequests = new Map;
|
|
208
|
+
const hooksConfig = buildHooksConfig(options.hooks);
|
|
209
|
+
if (hooksConfig) {
|
|
210
|
+
const initRequestId = "sdk-init-hooks";
|
|
211
|
+
const initRequest = {
|
|
212
|
+
type: "control_request",
|
|
213
|
+
request_id: initRequestId,
|
|
214
|
+
request: {
|
|
215
|
+
subtype: "initialize",
|
|
216
|
+
hooks: hooksConfig
|
|
217
|
+
}
|
|
218
|
+
};
|
|
219
|
+
stdin.write(ndjsonStringify(initRequest));
|
|
220
|
+
}
|
|
221
|
+
const promptQueue = [];
|
|
222
|
+
async function writePrompt() {
|
|
223
|
+
if (typeof prompt === "string") {
|
|
224
|
+
const msg = {
|
|
225
|
+
type: "user",
|
|
226
|
+
content: prompt,
|
|
227
|
+
uuid: "",
|
|
228
|
+
session_id: "",
|
|
229
|
+
message: { role: "user", content: prompt },
|
|
230
|
+
parent_tool_use_id: null
|
|
231
|
+
};
|
|
232
|
+
stdin.write(ndjsonStringify(msg));
|
|
233
|
+
} else {
|
|
234
|
+
for await (const userMsg of prompt) {
|
|
235
|
+
if (signal.aborted)
|
|
236
|
+
break;
|
|
237
|
+
stdin.write(ndjsonStringify(userMsg));
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
const promptPromise = writePrompt().catch((err) => {
|
|
242
|
+
if (!signal.aborted) {
|
|
243
|
+
throw err;
|
|
244
|
+
}
|
|
245
|
+
});
|
|
246
|
+
const rl = import_node_readline.createInterface({ input: stdout });
|
|
247
|
+
async function handleControlRequest(msg) {
|
|
248
|
+
const { request_id, request } = msg;
|
|
249
|
+
try {
|
|
250
|
+
switch (request.subtype) {
|
|
251
|
+
case "can_use_tool": {
|
|
252
|
+
if (!options.canUseTool) {
|
|
253
|
+
const response2 = {
|
|
254
|
+
type: "control_response",
|
|
255
|
+
response: { subtype: "success", request_id, response: { behavior: "deny", message: "No permission handler configured" } }
|
|
256
|
+
};
|
|
257
|
+
stdin.write(ndjsonStringify(response2));
|
|
258
|
+
break;
|
|
259
|
+
}
|
|
260
|
+
const toolName = request.tool_name;
|
|
261
|
+
const toolInput = request.input ?? {};
|
|
262
|
+
const toolUseID = request.tool_use_id;
|
|
263
|
+
const suggestions = request.permission_suggestions;
|
|
264
|
+
const blockedPath = request.blocked_path;
|
|
265
|
+
const decisionReason = request.decision_reason;
|
|
266
|
+
const agentID = request.agent_id;
|
|
267
|
+
const result = await options.canUseTool(toolName, toolInput, {
|
|
268
|
+
signal,
|
|
269
|
+
suggestions,
|
|
270
|
+
blockedPath,
|
|
271
|
+
decisionReason,
|
|
272
|
+
toolUseID,
|
|
273
|
+
agentID
|
|
274
|
+
});
|
|
275
|
+
const response = {
|
|
276
|
+
type: "control_response",
|
|
277
|
+
response: {
|
|
278
|
+
subtype: "success",
|
|
279
|
+
request_id,
|
|
280
|
+
response: result
|
|
281
|
+
}
|
|
282
|
+
};
|
|
283
|
+
stdin.write(ndjsonStringify(response));
|
|
284
|
+
break;
|
|
285
|
+
}
|
|
286
|
+
case "hook_callback": {
|
|
287
|
+
const callbackId = request.callback_id;
|
|
288
|
+
const hookInput = request.input;
|
|
289
|
+
const toolUseId = request.tool_use_id;
|
|
290
|
+
const hookEntry = hookCallbacks.get(callbackId);
|
|
291
|
+
if (hookEntry) {
|
|
292
|
+
const result = await hookEntry.callback(hookInput, toolUseId, { signal });
|
|
293
|
+
const response = {
|
|
294
|
+
type: "control_response",
|
|
295
|
+
response: {
|
|
296
|
+
subtype: "success",
|
|
297
|
+
request_id,
|
|
298
|
+
response: result
|
|
299
|
+
}
|
|
300
|
+
};
|
|
301
|
+
stdin.write(ndjsonStringify(response));
|
|
302
|
+
} else {
|
|
303
|
+
const response = {
|
|
304
|
+
type: "control_response",
|
|
305
|
+
response: {
|
|
306
|
+
subtype: "success",
|
|
307
|
+
request_id,
|
|
308
|
+
response: {}
|
|
309
|
+
}
|
|
310
|
+
};
|
|
311
|
+
stdin.write(ndjsonStringify(response));
|
|
312
|
+
}
|
|
313
|
+
break;
|
|
314
|
+
}
|
|
315
|
+
case "initialize": {
|
|
316
|
+
const response = {
|
|
317
|
+
type: "control_response",
|
|
318
|
+
response: { subtype: "success", request_id, response: {} }
|
|
319
|
+
};
|
|
320
|
+
stdin.write(ndjsonStringify(response));
|
|
321
|
+
break;
|
|
322
|
+
}
|
|
323
|
+
default: {
|
|
324
|
+
const response = {
|
|
325
|
+
type: "control_response",
|
|
326
|
+
response: { subtype: "success", request_id, response: {} }
|
|
327
|
+
};
|
|
328
|
+
stdin.write(ndjsonStringify(response));
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
} catch (err) {
|
|
332
|
+
const errorMsg = err instanceof Error ? err.message : String(err);
|
|
333
|
+
const response = {
|
|
334
|
+
type: "control_response",
|
|
335
|
+
response: { subtype: "error", request_id, error: errorMsg }
|
|
336
|
+
};
|
|
337
|
+
try {
|
|
338
|
+
stdin.write(ndjsonStringify(response));
|
|
339
|
+
} catch {}
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
try {
|
|
343
|
+
for await (const line of rl) {
|
|
344
|
+
if (signal.aborted)
|
|
345
|
+
break;
|
|
346
|
+
let msg;
|
|
347
|
+
try {
|
|
348
|
+
msg = ndjsonParse(line);
|
|
349
|
+
} catch {
|
|
350
|
+
continue;
|
|
351
|
+
}
|
|
352
|
+
if (!msg || typeof msg !== "object")
|
|
353
|
+
continue;
|
|
354
|
+
const typed = msg;
|
|
355
|
+
switch (typed.type) {
|
|
356
|
+
case "control_request": {
|
|
357
|
+
handleControlRequest(typed).catch(() => {});
|
|
358
|
+
break;
|
|
359
|
+
}
|
|
360
|
+
case "control_response": {
|
|
361
|
+
const resp = typed;
|
|
362
|
+
const pending = pendingControlRequests.get(resp.response.request_id);
|
|
363
|
+
if (pending) {
|
|
364
|
+
pendingControlRequests.delete(resp.response.request_id);
|
|
365
|
+
if (resp.response.subtype === "error") {
|
|
366
|
+
pending.reject(new Error(resp.response.error));
|
|
367
|
+
} else {
|
|
368
|
+
pending.resolve(resp.response);
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
break;
|
|
372
|
+
}
|
|
373
|
+
case "control_cancel_request": {
|
|
374
|
+
const cancel = typed;
|
|
375
|
+
const pending = pendingControlRequests.get(cancel.request_id);
|
|
376
|
+
if (pending) {
|
|
377
|
+
pendingControlRequests.delete(cancel.request_id);
|
|
378
|
+
pending.reject(new Error("Request cancelled"));
|
|
379
|
+
}
|
|
380
|
+
break;
|
|
381
|
+
}
|
|
382
|
+
case "keep_alive": {
|
|
383
|
+
stdin.write(ndjsonStringify({ type: "keep_alive" }));
|
|
384
|
+
break;
|
|
385
|
+
}
|
|
386
|
+
default: {
|
|
387
|
+
if (typed.type === "assistant" || typed.type === "user" || typed.type === "system" || typed.type === "result" || typed.type === "stream_event" || typed.type === "tool_progress") {
|
|
388
|
+
yield typed;
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
} finally {
|
|
394
|
+
rl.close();
|
|
395
|
+
try {
|
|
396
|
+
stdin.end();
|
|
397
|
+
} catch {}
|
|
398
|
+
if (!child.killed) {
|
|
399
|
+
child.kill();
|
|
400
|
+
}
|
|
401
|
+
for (const pending of pendingControlRequests.values()) {
|
|
402
|
+
pending.reject(new Error("Query ended"));
|
|
403
|
+
}
|
|
404
|
+
pendingControlRequests.clear();
|
|
405
|
+
await promptPromise.catch(() => {});
|
|
406
|
+
}
|
|
407
|
+
}
|