@opencode/core 0.0.0-dev-21005 → 0.0.0-dev-21009
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/account/sql.js +1 -1
- package/dist/agent.js +85 -85
- package/dist/aisdk-native.js +91 -91
- package/dist/aisdk.js +96 -96
- package/dist/app.js +9 -9
- package/dist/bus.js +77 -77
- package/dist/chunks/{aisdk-x3j5jrq4.js → state-0459jf51.js} +24 -24
- package/dist/chunks/{aisdk-z54ycqme.js → state-0pnnt7d9.js} +4 -4
- package/dist/chunks/{aisdk-pxhapvbp.js → state-0ssmrtzc.js} +28 -28
- package/dist/chunks/{aisdk-0vbcp93d.js → state-0vbcp93d.js} +2 -2
- package/dist/chunks/{aisdk-phrp6p9p.js → state-1baxmn5d.js} +13 -13
- package/dist/chunks/state-1dtj47kj.js +253 -0
- package/dist/chunks/{aisdk-q4fmv0xv.js → state-1q5awywt.js} +5 -5
- package/dist/chunks/{aisdk-zrrfg2gv.js → state-1trdtce6.js} +11 -11
- package/dist/chunks/{aisdk-qdz5kzjt.js → state-1xk6wedh.js} +7 -7
- package/dist/chunks/{aisdk-dqvyxd2t.js → state-233w7mxv.js} +11 -11
- package/dist/chunks/{aisdk-we8z2qby.js → state-26j8sc83.js} +25 -25
- package/dist/chunks/{aisdk-ekz6r8mk.js → state-28dwcykx.js} +20 -20
- package/dist/chunks/{aisdk-n9kwckp6.js → state-2910nsk0.js} +180 -180
- package/dist/chunks/{aisdk-wkkz5rq7.js → state-29gc7pfd.js} +11 -11
- package/dist/chunks/{aisdk-ptm6zg7e.js → state-2ncd5bhh.js} +6 -6
- package/dist/chunks/{aisdk-1ryh243x.js → state-2sfc2842.js} +7 -7
- package/dist/chunks/{aisdk-31xfzrxg.js → state-31xfzrxg.js} +2 -2
- package/dist/chunks/{aisdk-wfktfps2.js → state-36zsp7wt.js} +6 -6
- package/dist/chunks/{aisdk-8t76jbpz.js → state-37gkaztk.js} +9 -9
- package/dist/chunks/{aisdk-5hd7zffw.js → state-39v2tedr.js} +27 -27
- package/dist/chunks/{aisdk-dg8gqthx.js → state-3f2m75s5.js} +11 -11
- package/dist/chunks/{aisdk-3fc6dm20.js → state-3fc6dm20.js} +1 -1
- package/dist/chunks/{aisdk-3hepkmqq.js → state-3hepkmqq.js} +1 -1
- package/dist/chunks/{aisdk-3hwn7j4h.js → state-3hwn7j4h.js} +2 -2
- package/dist/chunks/{aisdk-7mdm34a6.js → state-3nfzk0qa.js} +36 -36
- package/dist/chunks/{aisdk-mhasz1kk.js → state-3q7f1x34.js} +18 -18
- package/dist/chunks/{aisdk-3smtnn6g.js → state-3smtnn6g.js} +1 -1
- package/dist/chunks/{aisdk-qhr2m0ep.js → state-3sn1tjkz.js} +15 -15
- package/dist/chunks/{aisdk-3tvqynh2.js → state-3tvqynh2.js} +1 -1
- package/dist/chunks/{aisdk-365avqd2.js → state-3wfkz6s1.js} +16 -16
- package/dist/chunks/{aisdk-3zsf4n22.js → state-3zsf4n22.js} +1 -1
- package/dist/chunks/{aisdk-sa6vc7k5.js → state-412yfsac.js} +13 -13
- package/dist/chunks/{aisdk-qqf4dp9r.js → state-44swrvp1.js} +15 -15
- package/dist/chunks/{aisdk-461nxmbv.js → state-461nxmbv.js} +2 -2
- package/dist/chunks/{aisdk-qjrg9a9h.js → state-468w6mzd.js} +4 -4
- package/dist/chunks/{aisdk-n7d88tpn.js → state-48kw51zw.js} +3 -3
- package/dist/chunks/{aisdk-wd548sk2.js → state-4kvet074.js} +20 -20
- package/dist/chunks/{aisdk-0jkw1j53.js → state-4mwpykj0.js} +6 -6
- package/dist/chunks/{aisdk-1nnhzer0.js → state-4scw7yhd.js} +15 -15
- package/dist/chunks/{aisdk-w2h15q85.js → state-4xpgt2w9.js} +5 -5
- package/dist/chunks/{aisdk-2c0fecmm.js → state-4z23ab3a.js} +3 -3
- package/dist/chunks/{aisdk-xk4xmd42.js → state-4z92mb94.js} +37 -37
- package/dist/chunks/{aisdk-qk0y1qkc.js → state-4zchtw5z.js} +37 -37
- package/dist/chunks/{aisdk-54ma36ye.js → state-54ma36ye.js} +1 -1
- package/dist/chunks/{aisdk-1besy32e.js → state-55t5gfwz.js} +11 -11
- package/dist/chunks/{aisdk-5m9w47nd.js → state-5m9w47nd.js} +1 -1
- package/dist/chunks/{aisdk-e3qxr5gk.js → state-5qd3pb7m.js} +2 -2
- package/dist/chunks/state-5ykcsxae.js +26 -0
- package/dist/chunks/{aisdk-pvpwwz14.js → state-62mp1sb5.js} +11 -11
- package/dist/chunks/{aisdk-yeygkejg.js → state-699dywbp.js} +20 -20
- package/dist/chunks/{aisdk-26r1cp2c.js → state-6hj0q4cz.js} +8 -8
- package/dist/chunks/{aisdk-prq7hedt.js → state-6hjx5zpb.js} +9 -9
- package/dist/chunks/{aisdk-886p3wav.js → state-6s0n9v0f.js} +14 -14
- package/dist/chunks/{aisdk-kmnb828p.js → state-6vcva7hs.js} +8 -8
- package/dist/chunks/{aisdk-6xb47vfp.js → state-6xb47vfp.js} +1 -1
- package/dist/chunks/{aisdk-7hq2xq6d.js → state-6zgzw1pt.js} +8 -8
- package/dist/chunks/{aisdk-336bt5mt.js → state-71f49j0g.js} +13 -13
- package/dist/chunks/{aisdk-775gj3j1.js → state-775gj3j1.js} +2 -2
- package/dist/chunks/{aisdk-7bmhse3q.js → state-7bmhse3q.js} +1 -1
- package/dist/chunks/{aisdk-anfg2bq0.js → state-7rtv58sh.js} +337 -337
- package/dist/chunks/{aisdk-k1rdhcyh.js → state-7tdp8yk2.js} +21 -21
- package/dist/chunks/{aisdk-jhdf29st.js → state-7zt5x37y.js} +1 -1
- package/dist/chunks/{aisdk-1x9qgtwf.js → state-7zy47b61.js} +4 -4
- package/dist/chunks/{aisdk-g7gkzvvb.js → state-86e23919.js} +45 -45
- package/dist/chunks/{aisdk-2edpkczn.js → state-8b6w8cc4.js} +10 -10
- package/dist/chunks/{aisdk-8m6m0r52.js → state-8m6m0r52.js} +1 -1
- package/dist/chunks/{aisdk-3nba0ncb.js → state-8raxsvkz.js} +4 -4
- package/dist/chunks/{aisdk-py3kkmfq.js → state-8sze2n9a.js} +6 -6
- package/dist/chunks/{aisdk-7gbf977a.js → state-8xrzt693.js} +11 -11
- package/dist/chunks/{aisdk-91qna3x0.js → state-91qna3x0.js} +3 -3
- package/dist/chunks/{aisdk-wa7335xs.js → state-96pr1f0k.js} +12 -12
- package/dist/chunks/{aisdk-kfa5xe3b.js → state-9hwsx7sz.js} +48 -48
- package/dist/chunks/{aisdk-arderc4p.js → state-9mxpbgmg.js} +34 -34
- package/dist/chunks/{aisdk-pwm71fpt.js → state-9rpz2hw9.js} +34 -34
- package/dist/chunks/{aisdk-22sd1qqc.js → state-a2qe2ev9.js} +8 -8
- package/dist/chunks/{aisdk-yhb062ff.js → state-a4hhctr7.js} +12 -12
- package/dist/chunks/{aisdk-85zvhnyw.js → state-adv4y98c.js} +17 -17
- package/dist/chunks/{aisdk-m9tvgbxh.js → state-akbvn2q2.js} +15 -15
- package/dist/chunks/{aisdk-gmcs4n02.js → state-as456vm3.js} +5 -5
- package/dist/chunks/{aisdk-bj2bytkv.js → state-aw5wphbn.js} +22 -22
- package/dist/chunks/{aisdk-bf08y2sg.js → state-axe469zx.js} +17 -17
- package/dist/chunks/{aisdk-cddbd36g.js → state-b1kaysck.js} +28 -28
- package/dist/chunks/{aisdk-scgrse2b.js → state-b3f8fkhc.js} +5 -5
- package/dist/chunks/{aisdk-be25vhzd.js → state-b69axjbw.js} +33 -33
- package/dist/chunks/{aisdk-hjec5844.js → state-b7tca0vw.js} +11 -11
- package/dist/chunks/{aisdk-5whdm1cm.js → state-bap0endh.js} +5 -5
- package/dist/chunks/{aisdk-p7x95z9c.js → state-bbb0pzjs.js} +22 -22
- package/dist/chunks/{aisdk-thwz582m.js → state-bc42rdv0.js} +22 -22
- package/dist/chunks/{aisdk-tmfxf5e7.js → state-bfegkxfd.js} +11 -11
- package/dist/chunks/{aisdk-bjx1sjef.js → state-bjx1sjef.js} +2 -2
- package/dist/chunks/{aisdk-pkj8hqbd.js → state-bmr56wjg.js} +9 -9
- package/dist/chunks/{aisdk-qgkx2jy9.js → state-bst6928h.js} +12 -12
- package/dist/chunks/{aisdk-r0nk0p6g.js → state-bsvaasas.js} +26 -26
- package/dist/chunks/{aisdk-g96e57nb.js → state-btc7z31r.js} +24 -24
- package/dist/chunks/{aisdk-ny14mhqf.js → state-bwpn7kg9.js} +8 -8
- package/dist/chunks/{aisdk-phz50fbd.js → state-bxqk5pf5.js} +9 -9
- package/dist/chunks/state-by5v678g.js +18 -0
- package/dist/chunks/{aisdk-0ft0yr9w.js → state-bybntgg6.js} +6 -6
- package/dist/chunks/{aisdk-es1vcfrp.js → state-c1fqxshp.js} +3 -3
- package/dist/chunks/{aisdk-q75zv39y.js → state-c60ns7m9.js} +11 -11
- package/dist/chunks/{aisdk-jdgav92x.js → state-caywxy8s.js} +23 -23
- package/dist/chunks/{aisdk-8p19n2xp.js → state-cccpa7j0.js} +5 -5
- package/dist/chunks/{aisdk-gm44sk89.js → state-cczz7jj2.js} +4 -4
- package/dist/chunks/{aisdk-t2pq6zw8.js → state-cy4fvjtm.js} +17 -17
- package/dist/chunks/{aisdk-qbtfqa8n.js → state-cy6fv8hx.js} +34 -34
- package/dist/chunks/{aisdk-xdjq0qq8.js → state-d5fw341f.js} +10 -10
- package/dist/chunks/{aisdk-cydzxar4.js → state-d7mw2e25.js} +13 -13
- package/dist/chunks/{aisdk-kp9cc527.js → state-dkh8aq6g.js} +33 -33
- package/dist/chunks/{aisdk-7dgwhepd.js → state-dkyft7f8.js} +9 -9
- package/dist/chunks/{aisdk-dqxsqydv.js → state-dqxsqydv.js} +1 -1
- package/dist/chunks/{aisdk-tm8amqmt.js → state-dtvsbb8r.js} +11 -11
- package/dist/chunks/{aisdk-rpjgfq5s.js → state-dvep9rg9.js} +9 -9
- package/dist/chunks/{aisdk-7vtykagd.js → state-e0ynfkzs.js} +7 -7
- package/dist/chunks/{aisdk-yptrx5rd.js → state-e197ggya.js} +5 -5
- package/dist/chunks/{aisdk-t550f9t1.js → state-eaj1djv9.js} +8 -8
- package/dist/chunks/{aisdk-mfxg20sq.js → state-ebee5761.js} +21 -21
- package/dist/chunks/{aisdk-eej6y6fw.js → state-eej6y6fw.js} +2 -2
- package/dist/chunks/{aisdk-ef5x83kb.js → state-ef5x83kb.js} +1 -1
- package/dist/chunks/{aisdk-q829ppmn.js → state-en8t5366.js} +17 -17
- package/dist/chunks/{aisdk-5zfh5grb.js → state-enztmqw1.js} +18 -18
- package/dist/chunks/{aisdk-0w62qmxp.js → state-eq20ba7x.js} +4 -4
- package/dist/chunks/{aisdk-z5xt4pvb.js → state-ex0n3awc.js} +16 -16
- package/dist/chunks/{aisdk-erbh5zzh.js → state-f24gb5bq.js} +11 -11
- package/dist/chunks/{aisdk-tz8b7tyw.js → state-f747k6ef.js} +23 -23
- package/dist/chunks/{aisdk-qek94as6.js → state-fatn83ad.js} +11 -11
- package/dist/chunks/{aisdk-fcrkznn8.js → state-fcrkznn8.js} +1 -1
- package/dist/chunks/{aisdk-tga0nja1.js → state-fv0c2at4.js} +28 -28
- package/dist/chunks/{aisdk-fxaymqdw.js → state-fxaymqdw.js} +1 -1
- package/dist/chunks/{aisdk-5yzzbxa7.js → state-g0445xdp.js} +8 -8
- package/dist/chunks/{aisdk-7h0wf518.js → state-gbt3zgba.js} +23 -23
- package/dist/chunks/{aisdk-gd4qta3r.js → state-gd4qta3r.js} +1 -1
- package/dist/chunks/{aisdk-h6fg8q0q.js → state-gdqt70vf.js} +22 -22
- package/dist/chunks/{aisdk-addxnjmp.js → state-gqtdsdt7.js} +4 -4
- package/dist/chunks/{aisdk-5dkn69vz.js → state-gw7cjrad.js} +4 -4
- package/dist/chunks/{aisdk-tsxt64vg.js → state-gxn02pch.js} +13 -13
- package/dist/chunks/{aisdk-562rv7bx.js → state-gychpwz0.js} +48 -48
- package/dist/chunks/{aisdk-517c0j3a.js → state-h1rgn063.js} +8 -8
- package/dist/chunks/{aisdk-h6vf3j39.js → state-h6vf3j39.js} +1 -1
- package/dist/chunks/{aisdk-hqhp0zxs.js → state-hbk0ph6g.js} +4 -4
- package/dist/chunks/{aisdk-hgz4x7wa.js → state-hgz4x7wa.js} +1 -1
- package/dist/chunks/{aisdk-2k4yddvp.js → state-hmj70r58.js} +8 -8
- package/dist/chunks/{aisdk-s2twap76.js → state-hqqj3jg8.js} +5 -5
- package/dist/chunks/{aisdk-8aysegkf.js → state-hrqq7wtc.js} +30 -30
- package/dist/chunks/{aisdk-re585wd9.js → state-hsjvmpjh.js} +8 -8
- package/dist/chunks/{aisdk-7vv9z2ed.js → state-hwms0995.js} +4 -4
- package/dist/chunks/{aisdk-4v7ngy20.js → state-j34bs4nz.js} +4 -4
- package/dist/chunks/{aisdk-rm2vb102.js → state-j45y3r9x.js} +3 -3
- package/dist/chunks/{aisdk-khm3esh1.js → state-japjqhmp.js} +15 -15
- package/dist/chunks/{aisdk-6g107h22.js → state-jk540des.js} +2 -2
- package/dist/chunks/{aisdk-rbtqkbmf.js → state-jsd15znb.js} +14 -14
- package/dist/chunks/{aisdk-s8v304em.js → state-jsfpkejg.js} +18 -18
- package/dist/chunks/{aisdk-x0j36s06.js → state-jxzdswa4.js} +43 -43
- package/dist/chunks/{aisdk-yy6txsae.js → state-k1441ryq.js} +48 -48
- package/dist/chunks/{aisdk-6t5yvsqf.js → state-k1df0snj.js} +31 -31
- package/dist/chunks/{aisdk-ejsmjn7x.js → state-kcrfwvke.js} +11 -11
- package/dist/chunks/{aisdk-5xnb4j2b.js → state-kpk4pj14.js} +25 -25
- package/dist/chunks/{aisdk-4g566920.js → state-kre9xjyw.js} +21 -21
- package/dist/chunks/{aisdk-jyntbr3k.js → state-kwft1sg7.js} +2 -2
- package/dist/chunks/{aisdk-sg2v8j4q.js → state-kyabj12g.js} +29 -29
- package/dist/chunks/{aisdk-w7e5kpev.js → state-m2gc894p.js} +58 -58
- package/dist/chunks/{aisdk-m9w0rfyh.js → state-m9w0rfyh.js} +1 -1
- package/dist/chunks/{aisdk-maspj1v3.js → state-maspj1v3.js} +1 -1
- package/dist/chunks/{aisdk-qgbrgq2v.js → state-mbganbbe.js} +13 -13
- package/dist/chunks/{aisdk-b5wmejpr.js → state-mc9ntjar.js} +20 -20
- package/dist/chunks/{aisdk-d7cgkmja.js → state-mcj02nxj.js} +11 -11
- package/dist/chunks/{aisdk-2rg3ypq9.js → state-mdqzwza3.js} +94 -94
- package/dist/chunks/{aisdk-nx80r8mj.js → state-mfzxjtt0.js} +3 -3
- package/dist/chunks/{aisdk-wbkvhq24.js → state-mkk9p8j3.js} +46 -46
- package/dist/chunks/{aisdk-69w9nwc9.js → state-mkrpb653.js} +9 -9
- package/dist/chunks/{aisdk-7ndqc6qy.js → state-mpkqfp7v.js} +6 -6
- package/dist/chunks/{aisdk-d6nd3jxb.js → state-mrh1dx2s.js} +5 -5
- package/dist/chunks/{aisdk-qjf34qp8.js → state-mswaxh11.js} +29 -29
- package/dist/chunks/{aisdk-nryfw457.js → state-mt9qx574.js} +11 -11
- package/dist/chunks/{aisdk-zz0kenfz.js → state-mzmrm6vj.js} +33 -33
- package/dist/chunks/{aisdk-jawwkm55.js → state-n4pbfpj5.js} +30 -30
- package/dist/chunks/{aisdk-sdmdcrw9.js → state-n51ng4sf.js} +12 -12
- package/dist/chunks/{aisdk-6s1dab92.js → state-n5b2wwq8.js} +7 -7
- package/dist/chunks/{aisdk-yc062aj4.js → state-n5xbav3a.js} +31 -31
- package/dist/chunks/{aisdk-nz68rjzz.js → state-ndtd5qrz.js} +32 -32
- package/dist/chunks/{aisdk-p463a5js.js → state-nfyst927.js} +25 -25
- package/dist/chunks/{aisdk-e80seqcp.js → state-nma959mg.js} +3 -3
- package/dist/chunks/{aisdk-5qpywvrf.js → state-pck7vvdx.js} +5 -5
- package/dist/chunks/{aisdk-277eer69.js → state-ph842b28.js} +4 -4
- package/dist/chunks/{aisdk-pjvnvgmy.js → state-pjvnvgmy.js} +1 -1
- package/dist/chunks/{aisdk-pknna89w.js → state-pknna89w.js} +1 -1
- package/dist/chunks/{aisdk-x5hx00nt.js → state-pn82kknm.js} +15 -15
- package/dist/chunks/{aisdk-320m6bvr.js → state-psw8jam6.js} +15 -15
- package/dist/chunks/{aisdk-c7mxpfa1.js → state-pxfcehez.js} +3 -3
- package/dist/chunks/{aisdk-0j77ygfz.js → state-q0xm7vwc.js} +6 -6
- package/dist/chunks/{aisdk-p5881kk5.js → state-q1tvsgae.js} +12 -12
- package/dist/chunks/{aisdk-p7h48vns.js → state-q8t4c571.js} +21 -21
- package/dist/chunks/{aisdk-pm7rb62s.js → state-qbxb7qd6.js} +47 -47
- package/dist/chunks/{aisdk-4644t75q.js → state-qcmwxm77.js} +7 -7
- package/dist/chunks/{aisdk-92n1m1fa.js → state-qjk7rny4.js} +14 -14
- package/dist/chunks/{aisdk-qttzb7x8.js → state-qnbwvk35.js} +3 -3
- package/dist/chunks/{aisdk-qnc92qwc.js → state-qnc92qwc.js} +1 -1
- package/dist/chunks/{aisdk-qsdy395h.js → state-qsdy395h.js} +1 -1
- package/dist/chunks/{aisdk-xnys9azd.js → state-qv9j2mcm.js} +12 -12
- package/dist/chunks/{aisdk-czt16v0h.js → state-qwtxsz6h.js} +20 -20
- package/dist/chunks/{aisdk-djszqvmq.js → state-r2m716tb.js} +9 -9
- package/dist/chunks/{aisdk-c86e41aq.js → state-r5n5j0f6.js} +5 -5
- package/dist/chunks/{aisdk-4ktppzyc.js → state-rdd5jy1e.js} +20 -20
- package/dist/chunks/{aisdk-rdw6cm16.js → state-rdw6cm16.js} +1 -1
- package/dist/chunks/{aisdk-tkb22qbm.js → state-rert0e01.js} +2 -2
- package/dist/chunks/{aisdk-f7wzesye.js → state-rfh5dkmr.js} +22 -22
- package/dist/chunks/{aisdk-c41wscbt.js → state-rj3eygr5.js} +2 -2
- package/dist/chunks/{aisdk-706phk7x.js → state-rqa1jxse.js} +2 -2
- package/dist/chunks/{aisdk-7ckjrabt.js → state-rxqq4vmb.js} +18 -18
- package/dist/chunks/{aisdk-anrd6afq.js → state-s2a95s6w.js} +19 -19
- package/dist/chunks/{aisdk-h1q8jnec.js → state-s8nse3sh.js} +41 -41
- package/dist/chunks/{aisdk-7tven9c0.js → state-s9n56xqt.js} +23 -23
- package/dist/chunks/{aisdk-c8ax2afj.js → state-sa8ekw3f.js} +2 -2
- package/dist/chunks/{aisdk-858m0wch.js → state-sdtdanhm.js} +11 -11
- package/dist/chunks/{aisdk-8n9eerv3.js → state-sgfwww2a.js} +10 -10
- package/dist/chunks/{aisdk-bhfpg5wx.js → state-sm965ndy.js} +8 -8
- package/dist/chunks/{aisdk-6a78g3gj.js → state-svcw9x3w.js} +12 -12
- package/dist/chunks/{aisdk-9910eere.js → state-sw0cpgwh.js} +11 -11
- package/dist/chunks/{aisdk-k8jvzrwv.js → state-syfte0ky.js} +28 -28
- package/dist/chunks/{aisdk-syv4x271.js → state-syv4x271.js} +1 -1
- package/dist/chunks/{aisdk-jpb42pwq.js → state-t32deht2.js} +10 -10
- package/dist/chunks/{aisdk-mvk40rx3.js → state-t5br7zt2.js} +50 -50
- package/dist/chunks/{aisdk-24nt8bd8.js → state-t96xapfm.js} +44 -44
- package/dist/chunks/{aisdk-tazgh4e4.js → state-tazgh4e4.js} +1 -1
- package/dist/chunks/{aisdk-tcezcvh9.js → state-tcezcvh9.js} +1 -1
- package/dist/chunks/{aisdk-x8wa486h.js → state-tdgts0x2.js} +33 -33
- package/dist/chunks/{aisdk-tdstcens.js → state-tdstcens.js} +1 -1
- package/dist/chunks/{aisdk-xr09p91z.js → state-teqqnftj.js} +25 -25
- package/dist/chunks/{aisdk-48pevnde.js → state-tjntatma.js} +20 -20
- package/dist/chunks/{aisdk-5g0qe9a8.js → state-tjx18q08.js} +32 -32
- package/dist/chunks/{aisdk-b27vhd2z.js → state-tkmwgdpd.js} +7 -7
- package/dist/chunks/{aisdk-tm0kqsz3.js → state-tm0kqsz3.js} +1 -1
- package/dist/chunks/{aisdk-setc7ajv.js → state-twwzjqdf.js} +9 -9
- package/dist/chunks/{aisdk-tyytaxap.js → state-tyytaxap.js} +1 -1
- package/dist/chunks/{aisdk-v0es1rhs.js → state-v0es1rhs.js} +2 -2
- package/dist/chunks/{aisdk-v7p4zvkq.js → state-v7p4zvkq.js} +2 -2
- package/dist/chunks/{aisdk-veqvce7d.js → state-veqvce7d.js} +1 -1
- package/dist/chunks/{aisdk-b9jm2ncp.js → state-vgmdqk35.js} +90 -90
- package/dist/chunks/{aisdk-6wy3h861.js → state-vjvwfxwz.js} +19 -19
- package/dist/chunks/{aisdk-175je098.js → state-vxrbht7e.js} +18 -18
- package/dist/chunks/{aisdk-vzs5sf6e.js → state-vzs5sf6e.js} +1 -1
- package/dist/chunks/{aisdk-84txncab.js → state-w1eejvng.js} +5 -5
- package/dist/chunks/{aisdk-w3wsvvr9.js → state-w3wsvvr9.js} +1 -1
- package/dist/chunks/{aisdk-fb0560r9.js → state-w53s0d5e.js} +4 -4
- package/dist/chunks/{aisdk-wd87259q.js → state-wd87259q.js} +1 -1
- package/dist/chunks/{aisdk-ysb2aahv.js → state-whtn744p.js} +78 -78
- package/dist/chunks/{aisdk-dh73y53h.js → state-wk4eqn65.js} +5 -5
- package/dist/chunks/{aisdk-jrbwspxf.js → state-ws9zqs95.js} +34 -34
- package/dist/chunks/{aisdk-hk8qf1ba.js → state-wtag1fy8.js} +7 -7
- package/dist/chunks/{aisdk-mne8yjzc.js → state-wvce6prw.js} +28 -28
- package/dist/chunks/{aisdk-7trecd3h.js → state-wvdx2ek6.js} +9 -9
- package/dist/chunks/{aisdk-ypkbb8va.js → state-x004tdjz.js} +17 -17
- package/dist/chunks/{aisdk-z16etnk0.js → state-x28btc3q.js} +28 -28
- package/dist/chunks/{aisdk-4kxdvvn7.js → state-x4k5jtsf.js} +1 -1
- package/dist/chunks/{aisdk-rd57npgt.js → state-x5y4snx4.js} +322 -322
- package/dist/chunks/{aisdk-vdc3n46x.js → state-xahyd3q0.js} +4 -4
- package/dist/chunks/{aisdk-36asfxsj.js → state-xc05z2m7.js} +29 -29
- package/dist/chunks/{aisdk-xfkkasph.js → state-xfkkasph.js} +1 -1
- package/dist/chunks/{aisdk-5gayeh3h.js → state-xwmagqs5.js} +32 -32
- package/dist/chunks/{aisdk-q6y4xd80.js → state-y15tw7vc.js} +11 -11
- package/dist/chunks/{aisdk-y1fvbwt7.js → state-y1fvbwt7.js} +1 -1
- package/dist/chunks/{aisdk-7b7phb11.js → state-y6877jmf.js} +22 -22
- package/dist/chunks/{aisdk-dpkg50ah.js → state-y71avatq.js} +4 -4
- package/dist/chunks/{aisdk-xjt5peaa.js → state-yfgf9xhk.js} +26 -26
- package/dist/chunks/{aisdk-zmr78fwr.js → state-ygdna4kr.js} +5 -5
- package/dist/chunks/{aisdk-acxqcypa.js → state-yntsa6by.js} +15 -15
- package/dist/chunks/{aisdk-yp2x3t23.js → state-yp2x3t23.js} +1 -1
- package/dist/chunks/{aisdk-qjthctvt.js → state-ypb1yt5b.js} +1 -1
- package/dist/chunks/{aisdk-wcfkssy8.js → state-ypy7t2zt.js} +22 -22
- package/dist/chunks/{aisdk-z0bkrqjs.js → state-z0bkrqjs.js} +1 -1
- package/dist/chunks/{aisdk-qp9zqy8y.js → state-z4vev6b8.js} +8 -8
- package/dist/chunks/{aisdk-k76fn4kw.js → state-zcrspsvn.js} +4 -4
- package/dist/chunks/{aisdk-s4mbn964.js → state-zf0999f0.js} +31 -31
- package/dist/chunks/{aisdk-vkn90r97.js → state-zfwgv53e.js} +40 -40
- package/dist/chunks/{aisdk-z8f110mj.js → state-zk57ev3y.js} +61 -61
- package/dist/chunks/{aisdk-zr2ceqn5.js → state-zr2ceqn5.js} +1 -1
- package/dist/chunks/{aisdk-v3xd9sm1.js → state-zw7vdsjy.js} +18 -18
- package/dist/chunks/{aisdk-7mnjq4d7.js → state-zws9m538.js} +14 -14
- package/dist/chunks/{aisdk-zxq2ej10.js → state-zxq2ej10.js} +1 -1
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +5 -5
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +87 -87
- package/dist/config/discovery.js +84 -84
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +101 -101
- package/dist/config/plugin/agent.js +118 -118
- package/dist/config/plugin/command.js +207 -207
- package/dist/config/plugin/compaction.js +156 -156
- package/dist/config/plugin/compatibility.js +136 -136
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +119 -119
- package/dist/config/plugin/image.js +118 -118
- package/dist/config/plugin/instruction.js +118 -118
- package/dist/config/plugin/location-watcher.js +118 -118
- package/dist/config/plugin/mcp.js +125 -125
- package/dist/config/plugin/policy.js +119 -119
- package/dist/config/plugin/provider.js +118 -118
- package/dist/config/plugin/reference.js +120 -120
- package/dist/config/plugin/shell.js +120 -120
- package/dist/config/plugin/skill-file.js +104 -104
- package/dist/config/plugin/skill.js +139 -139
- package/dist/config/plugin/snapshot.js +118 -118
- package/dist/config/plugin/source.js +121 -121
- package/dist/config/plugin/tool-output.js +117 -117
- package/dist/config/plugin/websearch.js +119 -119
- package/dist/config/plugin/worktree.js +120 -120
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +119 -119
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +87 -87
- package/dist/database/database.js +76 -76
- package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
- package/dist/database/drizzle/effect-sqlite/index.js +14 -14
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +15 -15
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +16 -16
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
- package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
- package/dist/database/migration.gen.js +51 -51
- package/dist/database/migration.js +53 -53
- package/dist/database/path.js +2 -2
- package/dist/database/schema.gen.js +1 -1
- package/dist/database/schema.sql.js +1 -1
- package/dist/database/sqlite.bun.js +1 -1
- package/dist/database/sqlite.js +1 -1
- package/dist/database/sqlite.node.js +1 -1
- package/dist/database/sqlite.workerd.js +1 -1
- package/dist/database/v1-migration.bun.js +81 -81
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +365 -365
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +3 -3
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +95 -95
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +95 -95
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +1 -1
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +76 -76
- package/dist/file-access.js +106 -106
- package/dist/file-mutation.js +96 -96
- package/dist/file-retention.js +1 -1
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +1 -1
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +220 -220
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +101 -101
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +11 -11
- package/dist/filesystem.js +104 -104
- package/dist/form.js +88 -88
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +89 -89
- package/dist/generate.js +107 -107
- package/dist/git.js +10 -10
- package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
- package/dist/github-copilot/chat/get-response-metadata.js +1 -1
- package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
- package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
- package/dist/github-copilot/copilot-provider.js +17 -17
- package/dist/github-copilot/models.js +93 -93
- package/dist/github-copilot/openai-compatible-error.js +1 -1
- package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
- package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
- package/dist/github-copilot/responses/openai-error.js +1 -1
- package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
- package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
- package/dist/github-copilot/responses/tool/file-search.js +1 -1
- package/dist/github-copilot/responses/tool/image-generation.js +1 -1
- package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
- package/dist/github-copilot/responses/tool/web-search.js +1 -1
- package/dist/image/photon.js +2 -2
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +359 -359
- package/dist/instruction-discovery.js +86 -86
- package/dist/instructions/builtins.js +89 -89
- package/dist/instructions/index.js +5 -5
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +89 -89
- package/dist/job.js +78 -78
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +75 -75
- package/dist/location-activity.js +135 -135
- package/dist/location-lifecycle.js +109 -109
- package/dist/location-service-map.js +86 -86
- package/dist/location-services.js +356 -356
- package/dist/location.js +85 -85
- package/dist/managed-policy.js +8 -8
- package/dist/mcp/client.js +93 -93
- package/dist/mcp/index.js +107 -107
- package/dist/mcp/instructions.js +131 -131
- package/dist/mcp/oauth.js +80 -80
- package/dist/mcp/stdio.js +92 -92
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +93 -93
- package/dist/model-resolver.js +100 -100
- package/dist/model.js +104 -104
- package/dist/models-dev.js +109 -109
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +84 -84
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +119 -119
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +88 -88
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +77 -77
- package/dist/plugin/agent.js +76 -76
- package/dist/plugin/command.js +102 -102
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +213 -213
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +331 -331
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +98 -98
- package/dist/plugin/module.js +119 -119
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +104 -104
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +92 -92
- package/dist/plugin/provider/azure.js +118 -118
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +118 -118
- package/dist/plugin/provider/cloudflare-ai-gateway.js +115 -115
- package/dist/plugin/provider/cloudflare-workers-ai.js +116 -116
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +114 -114
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +95 -95
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/github-copilot.js +97 -97
- package/dist/plugin/provider/gitlab.js +95 -95
- package/dist/plugin/provider/google-vertex.js +115 -115
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +80 -80
- package/dist/plugin/provider/lmstudio.js +127 -127
- package/dist/plugin/provider/local.js +124 -124
- package/dist/plugin/provider/modal.js +94 -94
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +127 -127
- package/dist/plugin/provider/openai.js +120 -120
- package/dist/plugin/provider/opencode.js +99 -99
- package/dist/plugin/provider/openrouter.js +93 -93
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +81 -81
- package/dist/plugin/provider/prompt-cache-key.js +1 -1
- package/dist/plugin/provider/sap-ai-core.js +93 -93
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +117 -117
- package/dist/plugin/provider/vercel.js +92 -92
- package/dist/plugin/provider/vllm.js +127 -127
- package/dist/plugin/provider/xai.js +93 -93
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +169 -169
- package/dist/plugin/sdk.js +76 -76
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +134 -134
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +348 -348
- package/dist/plugin/tool-input-repair.js +2 -2
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +88 -88
- package/dist/plugin/vcs/hg.js +88 -88
- package/dist/plugin/verbosity.js +95 -95
- package/dist/plugin/warming.js +116 -116
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +2 -2
- package/dist/plugin/websearch/parallel.js +6 -6
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +220 -220
- package/dist/project/schema.js +2 -2
- package/dist/project/sql.js +4 -4
- package/dist/project.js +84 -84
- package/dist/provider.js +103 -103
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +99 -99
- package/dist/reference/instructions.js +89 -89
- package/dist/reference.js +91 -91
- package/dist/repository-cache.js +83 -83
- package/dist/repository.js +3 -3
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +97 -97
- package/dist/rpc.js +88 -88
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/command.js +76 -76
- package/dist/session/compaction.js +135 -135
- package/dist/session/context.js +155 -155
- package/dist/session/diff.js +90 -90
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +7 -7
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +219 -219
- package/dist/session/execution.js +129 -129
- package/dist/session/generate.js +156 -156
- package/dist/session/history.js +15 -15
- package/dist/session/inbox.js +90 -90
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +79 -79
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +99 -99
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +122 -122
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +131 -131
- package/dist/session/projector.js +88 -88
- package/dist/session/prompt.js +107 -107
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +92 -92
- package/dist/session/run-coordinator.js +1 -1
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +226 -226
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +100 -100
- package/dist/session/runner/publish-llm-event.js +115 -115
- package/dist/session/runner/retry.js +4 -4
- package/dist/session/runner/step.js +127 -127
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +166 -166
- package/dist/session/shell.js +132 -132
- package/dist/session/skill.js +105 -105
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +77 -77
- package/dist/session/store.js +89 -89
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +203 -203
- package/dist/session/system-prompt.js +1 -1
- package/dist/session/title.js +159 -159
- package/dist/session/to-session-error.js +113 -113
- package/dist/session/transfer.js +216 -216
- package/dist/session/usage.js +1 -1
- package/dist/session.js +213 -213
- package/dist/shell/parse.js +6 -6
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +13 -13
- package/dist/shell.js +134 -134
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +109 -109
- package/dist/skill.js +112 -112
- package/dist/snapshot.js +93 -93
- package/dist/state.js +1 -1
- package/dist/tool/html-markdown.js +1 -1
- package/dist/tool/http-body.js +1 -1
- package/dist/tool/mcp.js +128 -128
- package/dist/tool/plugin/edit.js +122 -122
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +126 -126
- package/dist/tool/plugin/grep.js +126 -126
- package/dist/tool/plugin/mcp-resource.js +119 -119
- package/dist/tool/plugin/opencode.js +111 -111
- package/dist/tool/plugin/patch.js +124 -124
- package/dist/tool/plugin/question.js +103 -103
- package/dist/tool/plugin/read.js +127 -127
- package/dist/tool/plugin/shell.js +212 -212
- package/dist/tool/plugin/skill.js +113 -113
- package/dist/tool/plugin/subagent.js +208 -208
- package/dist/tool/plugin/webfetch.js +112 -112
- package/dist/tool/plugin/websearch.js +110 -110
- package/dist/tool/plugin/write.js +124 -124
- package/dist/tool/read-filesystem.js +102 -102
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +14 -14
- package/dist/util/error-summary.js +1 -1
- package/dist/util/error.js +1 -1
- package/dist/util/git-executable.js +2 -2
- package/dist/util/iife.js +1 -1
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +7 -7
- package/dist/v1/config/command.js +5 -5
- package/dist/v1/config/error.js +4 -4
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +94 -94
- package/dist/v1/config/permission.js +7 -7
- package/dist/v1/config/plugin.js +1 -1
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/variant.js +93 -93
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +91 -91
- package/dist/websearch.js +84 -84
- package/dist/wellknown/plugin.js +78 -78
- package/dist/wellknown.js +81 -81
- package/dist/workspace/driver.js +3 -3
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +84 -84
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +8 -8
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +91 -91
- package/dist/worktree.js +98 -98
- package/package.json +8 -8
- package/dist/chunks/aisdk-1yt1z7t3.js +0 -253
- package/dist/chunks/aisdk-619r8v3y.js +0 -18
- package/dist/chunks/aisdk-k0c4p5kd.js +0 -26
- /package/dist/chunks/{aisdk-0qkdqm5v.js → state-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{aisdk-0zkw76rk.js → state-0zkw76rk.js} +0 -0
- /package/dist/chunks/{aisdk-17cy0kzp.js → state-17cy0kzp.js} +0 -0
- /package/dist/chunks/{aisdk-1cnp2v09.js → state-1cnp2v09.js} +0 -0
- /package/dist/chunks/{aisdk-1kg9ymc8.js → state-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{aisdk-24dcb14g.js → state-24dcb14g.js} +0 -0
- /package/dist/chunks/{aisdk-2710q6r3.js → state-2710q6r3.js} +0 -0
- /package/dist/chunks/{aisdk-2axfhc9x.js → state-2axfhc9x.js} +0 -0
- /package/dist/chunks/{aisdk-2bv980vf.js → state-2bv980vf.js} +0 -0
- /package/dist/chunks/{aisdk-2c3vjs8z.js → state-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{aisdk-359p4xyc.js → state-359p4xyc.js} +0 -0
- /package/dist/chunks/{aisdk-3asan66x.js → state-3asan66x.js} +0 -0
- /package/dist/chunks/{aisdk-3t0ybcrp.js → state-3t0ybcrp.js} +0 -0
- /package/dist/chunks/{aisdk-3v8g72cx.js → state-3v8g72cx.js} +0 -0
- /package/dist/chunks/{aisdk-3wcehsnq.js → state-3wcehsnq.js} +0 -0
- /package/dist/chunks/{aisdk-43n2bw4t.js → state-43n2bw4t.js} +0 -0
- /package/dist/chunks/{aisdk-4knz6hnm.js → state-4knz6hnm.js} +0 -0
- /package/dist/chunks/{aisdk-4vcrnpx2.js → state-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{aisdk-4y7fprxs.js → state-4y7fprxs.js} +0 -0
- /package/dist/chunks/{aisdk-53557ph1.js → state-53557ph1.js} +0 -0
- /package/dist/chunks/{aisdk-550bvhaj.js → state-550bvhaj.js} +0 -0
- /package/dist/chunks/{aisdk-6prwharc.js → state-6prwharc.js} +0 -0
- /package/dist/chunks/{aisdk-6q2bdcd1.js → state-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{aisdk-7akdwqpd.js → state-7akdwqpd.js} +0 -0
- /package/dist/chunks/{aisdk-7m9af43g.js → state-7m9af43g.js} +0 -0
- /package/dist/chunks/{aisdk-822emrt2.js → state-822emrt2.js} +0 -0
- /package/dist/chunks/{aisdk-84wd9syh.js → state-84wd9syh.js} +0 -0
- /package/dist/chunks/{aisdk-88xbtdfr.js → state-88xbtdfr.js} +0 -0
- /package/dist/chunks/{aisdk-8n3pysct.js → state-8n3pysct.js} +0 -0
- /package/dist/chunks/{aisdk-8wj87zfr.js → state-8wj87zfr.js} +0 -0
- /package/dist/chunks/{aisdk-9a4afbnw.js → state-9a4afbnw.js} +0 -0
- /package/dist/chunks/{aisdk-9rqn6x4v.js → state-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{aisdk-a6k6eb26.js → state-a6k6eb26.js} +0 -0
- /package/dist/chunks/{aisdk-af5trqkr.js → state-af5trqkr.js} +0 -0
- /package/dist/chunks/{aisdk-afrmfg78.js → state-afrmfg78.js} +0 -0
- /package/dist/chunks/{aisdk-aqzs7mqg.js → state-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{aisdk-atq7p7m5.js → state-atq7p7m5.js} +0 -0
- /package/dist/chunks/{aisdk-bkyjaxrp.js → state-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{aisdk-bmr6ed5q.js → state-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{aisdk-cf4snx6d.js → state-cf4snx6d.js} +0 -0
- /package/dist/chunks/{aisdk-cvy3z8tj.js → state-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{aisdk-d9fn303g.js → state-d9fn303g.js} +0 -0
- /package/dist/chunks/{aisdk-d9jj8t3e.js → state-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{aisdk-dajrwvna.js → state-dajrwvna.js} +0 -0
- /package/dist/chunks/{aisdk-dap0rakb.js → state-dap0rakb.js} +0 -0
- /package/dist/chunks/{aisdk-df08tz66.js → state-df08tz66.js} +0 -0
- /package/dist/chunks/{aisdk-dy18nga0.js → state-dy18nga0.js} +0 -0
- /package/dist/chunks/{aisdk-e5kj55wp.js → state-e5kj55wp.js} +0 -0
- /package/dist/chunks/{aisdk-e73j6tqm.js → state-e73j6tqm.js} +0 -0
- /package/dist/chunks/{aisdk-ec1grn59.js → state-ec1grn59.js} +0 -0
- /package/dist/chunks/{aisdk-eh3zwz77.js → state-eh3zwz77.js} +0 -0
- /package/dist/chunks/{aisdk-emrn6kk6.js → state-emrn6kk6.js} +0 -0
- /package/dist/chunks/{aisdk-f0mxakyp.js → state-f0mxakyp.js} +0 -0
- /package/dist/chunks/{aisdk-f6n9ztr4.js → state-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{aisdk-faypxj3z.js → state-faypxj3z.js} +0 -0
- /package/dist/chunks/{aisdk-fd410y7t.js → state-fd410y7t.js} +0 -0
- /package/dist/chunks/{aisdk-g4wezp1m.js → state-g4wezp1m.js} +0 -0
- /package/dist/chunks/{aisdk-g86h250q.js → state-g86h250q.js} +0 -0
- /package/dist/chunks/{aisdk-gebd4c9n.js → state-gebd4c9n.js} +0 -0
- /package/dist/chunks/{aisdk-gftt206x.js → state-gftt206x.js} +0 -0
- /package/dist/chunks/{aisdk-hcxmzztb.js → state-hcxmzztb.js} +0 -0
- /package/dist/chunks/{aisdk-hk9envan.js → state-hk9envan.js} +0 -0
- /package/dist/chunks/{aisdk-j2ntwpah.js → state-j2ntwpah.js} +0 -0
- /package/dist/chunks/{aisdk-j5zkgpj8.js → state-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{aisdk-jjkms2e6.js → state-jjkms2e6.js} +0 -0
- /package/dist/chunks/{aisdk-jr7sbwjy.js → state-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{aisdk-jwfs4k6c.js → state-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{aisdk-jze0r7bz.js → state-jze0r7bz.js} +0 -0
- /package/dist/chunks/{aisdk-jzg6c2d5.js → state-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{aisdk-m18g726c.js → state-m18g726c.js} +0 -0
- /package/dist/chunks/{aisdk-mp448xyj.js → state-mp448xyj.js} +0 -0
- /package/dist/chunks/{aisdk-msx8hqn2.js → state-msx8hqn2.js} +0 -0
- /package/dist/chunks/{aisdk-n05xt0ee.js → state-n05xt0ee.js} +0 -0
- /package/dist/chunks/{aisdk-n3j8tn72.js → state-n3j8tn72.js} +0 -0
- /package/dist/chunks/{aisdk-njntx4h6.js → state-njntx4h6.js} +0 -0
- /package/dist/chunks/{aisdk-pkyv6v7h.js → state-pkyv6v7h.js} +0 -0
- /package/dist/chunks/{aisdk-pyv0edze.js → state-pyv0edze.js} +0 -0
- /package/dist/chunks/{aisdk-q3sfg36h.js → state-q3sfg36h.js} +0 -0
- /package/dist/chunks/{aisdk-q74kybfr.js → state-q74kybfr.js} +0 -0
- /package/dist/chunks/{aisdk-qaymkmh1.js → state-qaymkmh1.js} +0 -0
- /package/dist/chunks/{aisdk-qb87gjwd.js → state-qb87gjwd.js} +0 -0
- /package/dist/chunks/{aisdk-qfa1cgps.js → state-qfa1cgps.js} +0 -0
- /package/dist/chunks/{aisdk-qg3g05ea.js → state-qg3g05ea.js} +0 -0
- /package/dist/chunks/{aisdk-qrg20bc0.js → state-qrg20bc0.js} +0 -0
- /package/dist/chunks/{aisdk-rcb2kzg1.js → state-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{aisdk-sdp7kfr6.js → state-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{aisdk-ssg3fenm.js → state-ssg3fenm.js} +0 -0
- /package/dist/chunks/{aisdk-ve7vex1e.js → state-ve7vex1e.js} +0 -0
- /package/dist/chunks/{aisdk-w803qqfp.js → state-w803qqfp.js} +0 -0
- /package/dist/chunks/{aisdk-wc3fc9cn.js → state-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{aisdk-wer8tq1h.js → state-wer8tq1h.js} +0 -0
- /package/dist/chunks/{aisdk-wjj7prxr.js → state-wjj7prxr.js} +0 -0
- /package/dist/chunks/{aisdk-wtztk69x.js → state-wtztk69x.js} +0 -0
- /package/dist/chunks/{aisdk-x0ckcb58.js → state-x0ckcb58.js} +0 -0
- /package/dist/chunks/{aisdk-x61499pn.js → state-x61499pn.js} +0 -0
- /package/dist/chunks/{aisdk-y44na4kk.js → state-y44na4kk.js} +0 -0
- /package/dist/chunks/{aisdk-y8f7s663.js → state-y8f7s663.js} +0 -0
- /package/dist/chunks/{aisdk-ygaqb7jw.js → state-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{aisdk-ym463w8f.js → state-ym463w8f.js} +0 -0
- /package/dist/chunks/{aisdk-z5v4ffb3.js → state-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{aisdk-z9919s4g.js → state-z9919s4g.js} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service84,
|
|
3
|
+
node88
|
|
4
|
+
} from "./state-vxrbht7e.js";
|
|
5
5
|
import {
|
|
6
6
|
__export
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./state-9rqn6x4v.js";
|
|
8
8
|
|
|
9
9
|
// src/form.ts
|
|
10
10
|
var exports_form = {};
|
|
@@ -12,40 +12,40 @@ __export(exports_form, {
|
|
|
12
12
|
AlreadyExistsError: () => AlreadyExistsError2,
|
|
13
13
|
AlreadySettledError: () => AlreadySettledError2,
|
|
14
14
|
Answer: () => Answer2,
|
|
15
|
-
Event: () =>
|
|
15
|
+
Event: () => Event18,
|
|
16
16
|
Field: () => Field2,
|
|
17
17
|
Fields: () => Fields2,
|
|
18
18
|
Form: () => exports_form,
|
|
19
|
-
ID: () =>
|
|
20
|
-
Info: () =>
|
|
19
|
+
ID: () => ID11,
|
|
20
|
+
Info: () => Info21,
|
|
21
21
|
InvalidAnswerError: () => InvalidAnswerError2,
|
|
22
22
|
InvalidFormError: () => InvalidFormError2,
|
|
23
|
-
NotFoundError: () =>
|
|
24
|
-
Reply: () =>
|
|
25
|
-
Service: () =>
|
|
23
|
+
NotFoundError: () => NotFoundError8,
|
|
24
|
+
Reply: () => Reply2,
|
|
25
|
+
Service: () => Service70,
|
|
26
26
|
State: () => State3,
|
|
27
27
|
When: () => When2,
|
|
28
|
-
layer: () =>
|
|
29
|
-
node: () =>
|
|
28
|
+
layer: () => layer27,
|
|
29
|
+
node: () => node73,
|
|
30
30
|
validateAnswer: () => validateAnswer2,
|
|
31
31
|
validateFields: () => validateFields2
|
|
32
32
|
});
|
|
33
33
|
import { Form } from "@opencode/schema/form";
|
|
34
34
|
import { Cache, Context, Deferred, Duration, Effect, Exit, Layer, Option, Schema } from "effect";
|
|
35
35
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
36
|
-
import { Event as
|
|
36
|
+
import { Event as Event18 } from "@opencode/schema/form";
|
|
37
37
|
var RETENTION = Duration.minutes(10);
|
|
38
|
-
var
|
|
39
|
-
var
|
|
38
|
+
var ID11 = Form.ID;
|
|
39
|
+
var Info21 = Form.Info;
|
|
40
40
|
var Field2 = Form.Field;
|
|
41
41
|
var Fields2 = Form.Fields;
|
|
42
42
|
var When2 = Form.When;
|
|
43
43
|
var State3 = Form.State;
|
|
44
44
|
var Answer2 = Form.Answer;
|
|
45
|
-
var
|
|
45
|
+
var Reply2 = Form.Reply;
|
|
46
46
|
|
|
47
|
-
class
|
|
48
|
-
id:
|
|
47
|
+
class NotFoundError8 extends Schema.TaggedError()("Form.NotFoundError", {
|
|
48
|
+
id: ID11
|
|
49
49
|
}) {
|
|
50
50
|
get message() {
|
|
51
51
|
return `Form not found: ${this.id}`;
|
|
@@ -53,7 +53,7 @@ class NotFoundError10 extends Schema.TaggedError()("Form.NotFoundError", {
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
class AlreadySettledError2 extends Schema.TaggedError()("Form.AlreadySettledError", {
|
|
56
|
-
id:
|
|
56
|
+
id: ID11
|
|
57
57
|
}) {
|
|
58
58
|
get message() {
|
|
59
59
|
return `Form already settled: ${this.id}`;
|
|
@@ -61,7 +61,7 @@ class AlreadySettledError2 extends Schema.TaggedError()("Form.AlreadySettledErro
|
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
class AlreadyExistsError2 extends Schema.TaggedError()("Form.AlreadyExistsError", {
|
|
64
|
-
id:
|
|
64
|
+
id: ID11
|
|
65
65
|
}) {
|
|
66
66
|
get message() {
|
|
67
67
|
return `Form already exists: ${this.id}`;
|
|
@@ -69,7 +69,7 @@ class AlreadyExistsError2 extends Schema.TaggedError()("Form.AlreadyExistsError"
|
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
class InvalidAnswerError2 extends Schema.TaggedError()("Form.InvalidAnswerError", {
|
|
72
|
-
id:
|
|
72
|
+
id: ID11,
|
|
73
73
|
message: Schema.String
|
|
74
74
|
}) {
|
|
75
75
|
}
|
|
@@ -79,18 +79,18 @@ class InvalidFormError2 extends Schema.TaggedError()("Form.InvalidFormError", {
|
|
|
79
79
|
}) {
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
class
|
|
82
|
+
class Service70 extends Context.Service()("@opencode/Form") {
|
|
83
83
|
}
|
|
84
|
-
var
|
|
85
|
-
const bus = yield*
|
|
84
|
+
var layer27 = Layer.effect(Service70, Effect.gen(function* () {
|
|
85
|
+
const bus = yield* Service84;
|
|
86
86
|
let closed = false;
|
|
87
87
|
const forms = yield* Cache.makeWith(() => Effect.die(new Error("Form cache must be used via set/getSuccess, never get")), {
|
|
88
88
|
capacity: Number.MAX_SAFE_INTEGER,
|
|
89
89
|
timeToLive: (exit) => Exit.isSuccess(exit) && exit.value.state.status === "pending" ? Duration.infinity : RETENTION
|
|
90
90
|
});
|
|
91
|
-
const requireEntry = Effect.fn("Form.requireEntry")((id) => Cache.getSuccess(forms, id).pipe(Effect.flatMap((entry) => Effect.fromOption(entry, () => new
|
|
91
|
+
const requireEntry = Effect.fn("Form.requireEntry")((id) => Cache.getSuccess(forms, id).pipe(Effect.flatMap((entry) => Effect.fromOption(entry, () => new NotFoundError8({ id })))));
|
|
92
92
|
const create = Effect.fn("Form.create")((input) => Effect.uninterruptible(Effect.gen(function* () {
|
|
93
|
-
const id = input.id ??
|
|
93
|
+
const id = input.id ?? ID11.create();
|
|
94
94
|
const existing = yield* Cache.getSuccess(forms, id);
|
|
95
95
|
if (Option.isSome(existing))
|
|
96
96
|
return yield* new AlreadyExistsError2({ id });
|
|
@@ -162,9 +162,9 @@ var layer26 = Layer.effect(Service80, Effect.gen(function* () {
|
|
|
162
162
|
closed = true;
|
|
163
163
|
}).pipe(Effect.andThen(Cache.values(forms)), Effect.flatMap((entries) => Effect.forEach(Array.from(entries).filter((entry) => entry.state.status === "pending"), (entry) => cancel(entry.form.id).pipe(Effect.ignore), { discard: true })));
|
|
164
164
|
yield* Effect.addFinalizer(() => close);
|
|
165
|
-
return
|
|
165
|
+
return Service70.of({ create, ask, get, list, state, reply, cancel, close });
|
|
166
166
|
}));
|
|
167
|
-
var
|
|
167
|
+
var node73 = makeLocationNode({ service: Service70, layer: layer27, deps: [node88] });
|
|
168
168
|
function validateAnswer2(form, answer) {
|
|
169
169
|
const fields = new Map(form.map((field) => [field.key, field]));
|
|
170
170
|
for (const key of Object.keys(answer)) {
|
|
@@ -316,4 +316,4 @@ function isDateTime(value) {
|
|
|
316
316
|
return !Number.isNaN(new Date(value).getTime());
|
|
317
317
|
}
|
|
318
318
|
|
|
319
|
-
export {
|
|
319
|
+
export { ID11, Info21, Field2, Fields2, When2, State3, Answer2, Reply2, NotFoundError8, AlreadySettledError2, AlreadyExistsError2, InvalidAnswerError2, InvalidFormError2, Service70, layer27, node73, validateAnswer2, validateFields2, exports_form, Event18 };
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
latest2,
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
3
|
+
Service53
|
|
4
|
+
} from "./state-t96xapfm.js";
|
|
5
5
|
import {
|
|
6
6
|
observe2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./state-qsdy395h.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./state-9rqn6x4v.js";
|
|
11
11
|
|
|
12
12
|
// src/config/plugin/websearch.ts
|
|
13
|
-
var
|
|
14
|
-
__export(
|
|
15
|
-
ConfigWebSearchPlugin: () =>
|
|
16
|
-
Plugin: () =>
|
|
13
|
+
var exports_websearch = {};
|
|
14
|
+
__export(exports_websearch, {
|
|
15
|
+
ConfigWebSearchPlugin: () => exports_websearch,
|
|
16
|
+
Plugin: () => Plugin27
|
|
17
17
|
});
|
|
18
18
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
19
19
|
import { Effect } from "effect";
|
|
20
|
-
var
|
|
20
|
+
var Plugin27 = define({
|
|
21
21
|
id: "opencode.config.websearch",
|
|
22
22
|
effect: Effect.fn(function* (ctx) {
|
|
23
|
-
const config = yield*
|
|
23
|
+
const config = yield* Service53;
|
|
24
24
|
const loaded = yield* observe2(config, ctx.event, ctx.websearch.reload());
|
|
25
25
|
yield* ctx.websearch.transform((websearch) => {
|
|
26
26
|
const selection = latest2(loaded.entries, "websearch");
|
|
@@ -32,4 +32,4 @@ var Plugin36 = define({
|
|
|
32
32
|
})
|
|
33
33
|
});
|
|
34
34
|
|
|
35
|
-
export {
|
|
35
|
+
export { Plugin27, exports_websearch };
|
|
@@ -1,49 +1,49 @@
|
|
|
1
1
|
import {
|
|
2
2
|
typeFollowing2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./state-hgz4x7wa.js";
|
|
4
4
|
import {
|
|
5
5
|
RelativePath2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./state-z5v4ffb3.js";
|
|
7
7
|
import {
|
|
8
8
|
Service81
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./state-2sfc2842.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
Service72
|
|
12
|
+
} from "./state-ypy7t2zt.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./
|
|
14
|
+
Service23
|
|
15
|
+
} from "./state-zws9m538.js";
|
|
16
16
|
import {
|
|
17
17
|
DEFAULT_SEARCH_LIMIT2,
|
|
18
18
|
DEFAULT_SEARCH_TIMEOUT_MS2,
|
|
19
19
|
GlobInput2,
|
|
20
20
|
Entry2
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./state-syfte0ky.js";
|
|
22
22
|
import {
|
|
23
|
-
|
|
24
|
-
} from "./
|
|
23
|
+
Service76
|
|
24
|
+
} from "./state-zk57ev3y.js";
|
|
25
25
|
import {
|
|
26
|
-
|
|
27
|
-
} from "./
|
|
26
|
+
Service75
|
|
27
|
+
} from "./state-ex0n3awc.js";
|
|
28
28
|
import {
|
|
29
29
|
__export
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./state-9rqn6x4v.js";
|
|
31
31
|
|
|
32
32
|
// src/tool/plugin/glob.ts
|
|
33
33
|
var exports_glob = {};
|
|
34
34
|
__export(exports_glob, {
|
|
35
35
|
GlobTool: () => exports_glob,
|
|
36
|
-
Input: () =>
|
|
37
|
-
Output: () =>
|
|
38
|
-
Plugin: () =>
|
|
39
|
-
name: () =>
|
|
40
|
-
toModelContent: () =>
|
|
36
|
+
Input: () => Input3,
|
|
37
|
+
Output: () => Output3,
|
|
38
|
+
Plugin: () => Plugin38,
|
|
39
|
+
name: () => name3,
|
|
40
|
+
toModelContent: () => toModelContent3
|
|
41
41
|
});
|
|
42
42
|
import { ToolFailure } from "@opencode/ai";
|
|
43
43
|
import { Effect, Schema } from "effect";
|
|
44
44
|
import path from "path";
|
|
45
|
-
var
|
|
46
|
-
var
|
|
45
|
+
var name3 = "glob";
|
|
46
|
+
var Input3 = Schema.Struct({
|
|
47
47
|
pattern: GlobInput2.fields.pattern.annotate({ description: "Glob pattern to match files against" }),
|
|
48
48
|
path: Schema.optionalKey(RelativePath2).annotate({
|
|
49
49
|
description: "Directory to search. Defaults to the current working directory."
|
|
@@ -55,35 +55,35 @@ var Input9 = Schema.Struct({
|
|
|
55
55
|
description: `Maximum number of matching files to return (default: ${DEFAULT_SEARCH_LIMIT2})`
|
|
56
56
|
})
|
|
57
57
|
});
|
|
58
|
-
var
|
|
59
|
-
var
|
|
58
|
+
var Output3 = Schema.Array(Entry2);
|
|
59
|
+
var toModelContent3 = (entries, truncated = false) => {
|
|
60
60
|
const lines = entries.length === 0 ? ["No files found"] : entries.map((item) => item.path);
|
|
61
61
|
if (truncated)
|
|
62
62
|
lines.push("", `(Results are truncated: showing first ${entries.length} results. Consider using a more specific path or pattern.)`);
|
|
63
63
|
return lines.join(`
|
|
64
64
|
`);
|
|
65
65
|
};
|
|
66
|
-
var
|
|
66
|
+
var Plugin38 = {
|
|
67
67
|
id: "opencode.tool.glob",
|
|
68
68
|
effect: Effect.fn("GlobTool.Plugin")(function* (ctx) {
|
|
69
|
-
const environment = yield*
|
|
70
|
-
const ripgrep = yield*
|
|
69
|
+
const environment = yield* Service72;
|
|
70
|
+
const ripgrep = yield* Service23;
|
|
71
71
|
const location = yield* Service81;
|
|
72
|
-
const access = yield*
|
|
73
|
-
const permission = yield*
|
|
72
|
+
const access = yield* Service75;
|
|
73
|
+
const permission = yield* Service76;
|
|
74
74
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
75
|
-
name:
|
|
75
|
+
name: name3,
|
|
76
76
|
options: { codemode: false },
|
|
77
77
|
description: 'Search file paths using a glob pattern (examples: "**/*.ts", "src/**/*.tsx").',
|
|
78
|
-
input:
|
|
79
|
-
output:
|
|
78
|
+
input: Input3,
|
|
79
|
+
output: Output3,
|
|
80
80
|
execute: (input, context) => Effect.gen(function* () {
|
|
81
81
|
const searchPath = input.path === "undefined" || input.path === "null" ? undefined : input.path;
|
|
82
82
|
const source = { type: "tool", messageID: context.messageID, id: context.id };
|
|
83
83
|
const target = yield* access.resolve({ path: searchPath ?? ".", kind: "directory" });
|
|
84
84
|
yield* access.authorizeExternal([target], context);
|
|
85
85
|
yield* permission.assert({
|
|
86
|
-
action:
|
|
86
|
+
action: name3,
|
|
87
87
|
resources: [input.pattern],
|
|
88
88
|
save: ["*"],
|
|
89
89
|
metadata: {
|
|
@@ -118,11 +118,11 @@ var Plugin27 = {
|
|
|
118
118
|
return { entries: entries.slice(0, limit), truncated: entries.length > limit };
|
|
119
119
|
}).pipe(Effect.map((result) => ({
|
|
120
120
|
output: result.entries,
|
|
121
|
-
content:
|
|
121
|
+
content: toModelContent3(result.entries.map((entry) => ({ ...entry, path: path.resolve(location.directory, entry.path) })), result.truncated),
|
|
122
122
|
metadata: { count: result.entries.length, truncated: result.truncated }
|
|
123
123
|
})), Effect.mapError((error) => error instanceof ToolFailure ? error : new ToolFailure({ message: `Unable to find files matching ${input.pattern}`, error })))
|
|
124
124
|
})).pipe(Effect.orDie);
|
|
125
125
|
})
|
|
126
126
|
};
|
|
127
127
|
|
|
128
|
-
export {
|
|
128
|
+
export { name3, Input3, Output3, toModelContent3, Plugin38, exports_glob };
|
|
@@ -1,46 +1,46 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service81
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./state-2sfc2842.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service72
|
|
6
|
+
} from "./state-ypy7t2zt.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
8
|
+
Service71,
|
|
9
9
|
readText2,
|
|
10
10
|
syncTextBom2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./state-1baxmn5d.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
} from "./
|
|
13
|
+
Service18
|
|
14
|
+
} from "./state-gxn02pch.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
17
|
-
} from "./
|
|
16
|
+
Service76
|
|
17
|
+
} from "./state-zk57ev3y.js";
|
|
18
18
|
import {
|
|
19
|
-
|
|
19
|
+
Service75,
|
|
20
20
|
resolvePath2
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./state-ex0n3awc.js";
|
|
22
22
|
import {
|
|
23
23
|
fileDiff2
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./state-6prwharc.js";
|
|
25
25
|
import {
|
|
26
26
|
__export
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./state-9rqn6x4v.js";
|
|
28
28
|
|
|
29
29
|
// src/tool/plugin/edit.ts
|
|
30
30
|
var exports_edit = {};
|
|
31
31
|
__export(exports_edit, {
|
|
32
32
|
EditTool: () => exports_edit,
|
|
33
|
-
Input: () =>
|
|
34
|
-
Output: () =>
|
|
35
|
-
Plugin: () =>
|
|
36
|
-
name: () =>
|
|
33
|
+
Input: () => Input12,
|
|
34
|
+
Output: () => Output8,
|
|
35
|
+
Plugin: () => Plugin49,
|
|
36
|
+
name: () => name12
|
|
37
37
|
});
|
|
38
38
|
import { ToolFailure } from "@opencode/ai";
|
|
39
39
|
import { FileDiff } from "@opencode/schema/file-diff";
|
|
40
40
|
import { Bom } from "@opencode/util/bom";
|
|
41
41
|
import { Effect, Schema } from "effect";
|
|
42
|
-
var
|
|
43
|
-
var
|
|
42
|
+
var name12 = "edit";
|
|
43
|
+
var Input12 = Schema.Struct({
|
|
44
44
|
path: Schema.String.annotate({
|
|
45
45
|
description: "File to edit"
|
|
46
46
|
}),
|
|
@@ -50,7 +50,7 @@ var Input10 = Schema.Struct({
|
|
|
50
50
|
description: "Whether to replace every occurrence of oldString. When false, oldString must match exactly once. Defaults to false."
|
|
51
51
|
})
|
|
52
52
|
});
|
|
53
|
-
var
|
|
53
|
+
var Output8 = Schema.Struct({
|
|
54
54
|
files: Schema.Array(FileDiff.Info),
|
|
55
55
|
replacements: Schema.Number
|
|
56
56
|
});
|
|
@@ -190,21 +190,21 @@ var countBefore = (positions, offset) => {
|
|
|
190
190
|
}
|
|
191
191
|
return low;
|
|
192
192
|
};
|
|
193
|
-
var
|
|
193
|
+
var Plugin49 = {
|
|
194
194
|
id: "opencode.tool.edit",
|
|
195
195
|
effect: Effect.fn("EditTool.Plugin")(function* (ctx) {
|
|
196
|
-
const access = yield*
|
|
197
|
-
const fileMutation = yield*
|
|
198
|
-
const environment = yield*
|
|
199
|
-
const formatter = yield*
|
|
196
|
+
const access = yield* Service75;
|
|
197
|
+
const fileMutation = yield* Service71;
|
|
198
|
+
const environment = yield* Service72;
|
|
199
|
+
const formatter = yield* Service18;
|
|
200
200
|
const location = yield* Service81;
|
|
201
|
-
const permission = yield*
|
|
201
|
+
const permission = yield* Service76;
|
|
202
202
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
203
|
-
name:
|
|
203
|
+
name: name12,
|
|
204
204
|
options: { codemode: false, permission: "edit" },
|
|
205
205
|
description: "Edit the contents of a file by finding and replacing exact text. When editing text from Read output, preserve the exact indentation (tabs or spaces) and omit the line-number prefix, such as `1: `. Never include the prefix in oldString or newString. Write line breaks as \\n; the file's existing CRLF or LF line endings are matched and preserved. To change line endings themselves, make oldString and newString differ only in \\r; that edit applies to the exact bytes. If there is no exact match, the edit retries while ignoring typographic quote, dash, and space variants, then trailing whitespace on each line. The edit fails if oldString is not found. By default, oldString must identify a UNIQUE location. Multiple matches FAIL unless replaceAll is true. Add more surrounding context to disambiguate, or set replaceAll to true to replace every occurrence. Use replaceAll when the change should apply to every occurrence, such as renaming a variable.",
|
|
206
|
-
input:
|
|
207
|
-
output:
|
|
206
|
+
input: Input12,
|
|
207
|
+
output: Output8,
|
|
208
208
|
execute: (input, context) => {
|
|
209
209
|
return Effect.gen(function* () {
|
|
210
210
|
const permissionSource = {
|
|
@@ -276,4 +276,4 @@ var Plugin28 = {
|
|
|
276
276
|
})
|
|
277
277
|
};
|
|
278
278
|
|
|
279
|
-
export {
|
|
279
|
+
export { name12, Input12, Output8, Plugin49, exports_edit };
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./state-8xrzt693.js";
|
|
4
4
|
import {
|
|
5
5
|
collectBoundedResponseBody2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./state-3v8g72cx.js";
|
|
7
7
|
import {
|
|
8
8
|
MAX_RESPONSE_BYTES2,
|
|
9
9
|
call2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./state-bjx1sjef.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./state-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/plugin/websearch/tinyfish.ts
|
|
16
16
|
var exports_tinyfish = {};
|
|
17
17
|
__export(exports_tinyfish, {
|
|
18
|
-
Plugin: () =>
|
|
18
|
+
Plugin: () => Plugin9,
|
|
19
19
|
WebSearchTinyFish: () => exports_tinyfish,
|
|
20
|
-
endpoint: () =>
|
|
20
|
+
endpoint: () => endpoint6
|
|
21
21
|
});
|
|
22
22
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
23
23
|
import { Duration, Effect, Option, Schema } from "effect";
|
|
24
24
|
import { HttpClient, HttpClientRequest } from "effect/http";
|
|
25
|
-
var
|
|
25
|
+
var endpoint6 = "https://agent.tinyfish.ai/mcp";
|
|
26
26
|
var McpInput = Schema.Struct({
|
|
27
27
|
query: Schema.String
|
|
28
28
|
});
|
|
@@ -51,7 +51,7 @@ var InitializedNotification = Schema.Struct({
|
|
|
51
51
|
jsonrpc: Schema.Literal("2.0"),
|
|
52
52
|
method: Schema.Literal("notifications/initialized")
|
|
53
53
|
});
|
|
54
|
-
var
|
|
54
|
+
var Plugin9 = define({
|
|
55
55
|
id: "opencode.websearch.tinyfish",
|
|
56
56
|
effect: Effect.fn("WebSearchTinyFish.Plugin")(function* (ctx) {
|
|
57
57
|
const http = yield* HttpClient.HttpClient;
|
|
@@ -78,7 +78,7 @@ var Plugin6 = define({
|
|
|
78
78
|
...credential?.type === "key" ? { "X-API-Key": credential.key } : { "X-TinyFish-Access-Mode": "keyless" }
|
|
79
79
|
};
|
|
80
80
|
const session = credential?.type === "key" ? yield* initialize(http, headers) : undefined;
|
|
81
|
-
const result = yield* call2(http,
|
|
81
|
+
const result = yield* call2(http, endpoint6, "search", { input: McpInput, output: McpOutput }, { query: input.query }, { ...headers, ...session === undefined ? {} : { "Mcp-Session-Id": session } });
|
|
82
82
|
const content = result?.content.find((item) => item.text);
|
|
83
83
|
const response = content ? Option.getOrUndefined(decodeSearchResponse(content.text)) : undefined;
|
|
84
84
|
return response?.results.map((item) => ({
|
|
@@ -94,7 +94,7 @@ var Plugin6 = define({
|
|
|
94
94
|
});
|
|
95
95
|
var initialize = (http, headers) => Effect.gen(function* () {
|
|
96
96
|
const client = HttpClient.withScope(HttpClient.filterStatusOk(http));
|
|
97
|
-
const request = yield* HttpClientRequest.post(
|
|
97
|
+
const request = yield* HttpClientRequest.post(endpoint6).pipe(HttpClientRequest.accept("application/json, text/event-stream"), HttpClientRequest.setHeaders(headers), HttpClientRequest.schemaBodyJson(InitializeRequest)({
|
|
98
98
|
jsonrpc: "2.0",
|
|
99
99
|
id: 1,
|
|
100
100
|
method: "initialize",
|
|
@@ -109,7 +109,7 @@ var initialize = (http, headers) => Effect.gen(function* () {
|
|
|
109
109
|
const session = response.headers["mcp-session-id"];
|
|
110
110
|
if (session === undefined)
|
|
111
111
|
return yield* Effect.fail(new Error("TinyFish MCP initialize did not return an Mcp-Session-Id header"));
|
|
112
|
-
const notification = yield* HttpClientRequest.post(
|
|
112
|
+
const notification = yield* HttpClientRequest.post(endpoint6).pipe(HttpClientRequest.accept("application/json, text/event-stream"), HttpClientRequest.setHeaders({ ...headers, "Mcp-Session-Id": session }), HttpClientRequest.schemaBodyJson(InitializedNotification)({
|
|
113
113
|
jsonrpc: "2.0",
|
|
114
114
|
method: "notifications/initialized"
|
|
115
115
|
}));
|
|
@@ -120,4 +120,4 @@ var initialize = (http, headers) => Effect.gen(function* () {
|
|
|
120
120
|
orElse: () => Effect.fail(new Error("TinyFish initialize request timed out"))
|
|
121
121
|
}));
|
|
122
122
|
|
|
123
|
-
export {
|
|
123
|
+
export { endpoint6, Plugin9, exports_tinyfish };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service70
|
|
3
|
+
} from "./state-mswaxh11.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service76
|
|
6
|
+
} from "./state-zk57ev3y.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./state-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/tool/plugin/question.ts
|
|
12
12
|
var exports_question = {};
|
|
@@ -53,8 +53,8 @@ var toModelContent7 = (questions, answers) => {
|
|
|
53
53
|
var Plugin50 = {
|
|
54
54
|
id: "opencode.tool.question",
|
|
55
55
|
effect: Effect.fn("QuestionTool.Plugin")(function* (ctx) {
|
|
56
|
-
const forms = yield*
|
|
57
|
-
const permission = yield*
|
|
56
|
+
const forms = yield* Service70;
|
|
57
|
+
const permission = yield* Service76;
|
|
58
58
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
59
59
|
name: name13,
|
|
60
60
|
options: { codemode: false },
|
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Failed2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./state-hgz4x7wa.js";
|
|
4
4
|
import {
|
|
5
5
|
execDefaults2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./state-eej6y6fw.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
8
|
+
Service85,
|
|
9
|
+
node89
|
|
10
|
+
} from "./state-3sn1tjkz.js";
|
|
11
11
|
import {
|
|
12
12
|
makeUnsafe2
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./state-y71avatq.js";
|
|
14
14
|
import {
|
|
15
15
|
Binding2,
|
|
16
16
|
RegistryService2,
|
|
17
|
-
|
|
18
|
-
} from "./
|
|
17
|
+
node77
|
|
18
|
+
} from "./state-eq20ba7x.js";
|
|
19
19
|
import {
|
|
20
20
|
WorkspaceTable2
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./state-faypxj3z.js";
|
|
22
22
|
import {
|
|
23
23
|
__export
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./state-9rqn6x4v.js";
|
|
25
25
|
|
|
26
26
|
// src/workspace.ts
|
|
27
27
|
var exports_workspace = {};
|
|
28
28
|
__export(exports_workspace, {
|
|
29
29
|
CreateConflict: () => CreateConflict2,
|
|
30
|
-
ID: () =>
|
|
31
|
-
Info: () =>
|
|
30
|
+
ID: () => ID12,
|
|
31
|
+
Info: () => Info22,
|
|
32
32
|
NotFound: () => NotFound2,
|
|
33
|
-
Service: () =>
|
|
33
|
+
Service: () => Service73,
|
|
34
34
|
Workspace: () => exports_workspace,
|
|
35
|
-
configured: () =>
|
|
36
|
-
node: () =>
|
|
35
|
+
configured: () => configured11,
|
|
36
|
+
node: () => node76
|
|
37
37
|
});
|
|
38
38
|
import { Workspace } from "@opencode/schema/workspace";
|
|
39
39
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
@@ -41,10 +41,10 @@ import { eq } from "drizzle-orm";
|
|
|
41
41
|
import { Clock, Context, Deferred, Duration, Effect, Exit, FiberSet, Layer, Ref, Schedule, Schema, Scope } from "effect";
|
|
42
42
|
import { systemError } from "effect/PlatformError";
|
|
43
43
|
import { make } from "effect/process/ChildProcessSpawner";
|
|
44
|
-
var
|
|
44
|
+
var ID12 = Workspace.ID;
|
|
45
45
|
|
|
46
|
-
class
|
|
47
|
-
id:
|
|
46
|
+
class Info22 extends Schema.Class("Workspace.Info")({
|
|
47
|
+
id: ID12,
|
|
48
48
|
provider: Schema.String,
|
|
49
49
|
binding: Binding2,
|
|
50
50
|
createdAt: Schema.Number,
|
|
@@ -52,25 +52,25 @@ class Info15 extends Schema.Class("Workspace.Info")({
|
|
|
52
52
|
}) {
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
class NotFound2 extends Schema.TaggedError()("Workspace.NotFound", { workspaceID:
|
|
55
|
+
class NotFound2 extends Schema.TaggedError()("Workspace.NotFound", { workspaceID: ID12 }) {
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
class CreateConflict2 extends Schema.TaggedError()("Workspace.CreateConflict", {
|
|
59
|
-
workspaceID:
|
|
59
|
+
workspaceID: ID12,
|
|
60
60
|
provider: Schema.String,
|
|
61
61
|
existingProvider: Schema.String
|
|
62
62
|
}) {
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
class
|
|
65
|
+
class Service73 extends Context.Service()("@opencode/Workspace") {
|
|
66
66
|
}
|
|
67
|
-
var
|
|
68
|
-
service:
|
|
67
|
+
var configured11 = (options = {}) => makeGlobalNode({
|
|
68
|
+
service: Service73,
|
|
69
69
|
layer: layer(options),
|
|
70
|
-
deps: [
|
|
70
|
+
deps: [node89, node77]
|
|
71
71
|
});
|
|
72
|
-
var layer = (options) => Layer.effect(
|
|
73
|
-
const db = (yield*
|
|
72
|
+
var layer = (options) => Layer.effect(Service73, Effect.gen(function* () {
|
|
73
|
+
const db = (yield* Service85).db;
|
|
74
74
|
const registry = yield* RegistryService2;
|
|
75
75
|
const lifetime = yield* Scope.Scope;
|
|
76
76
|
const connections = new Map;
|
|
@@ -86,7 +86,7 @@ var layer = (options) => Layer.effect(Service70, Effect.gen(function* () {
|
|
|
86
86
|
return row;
|
|
87
87
|
});
|
|
88
88
|
const saveBinding = (workspaceID, binding) => db.update(WorkspaceTable2).set({ binding }).where(eq(WorkspaceTable2.id, workspaceID)).run().pipe(Effect.orDie);
|
|
89
|
-
const info = (row, binding) => new
|
|
89
|
+
const info = (row, binding) => new Info22({
|
|
90
90
|
id: row.id,
|
|
91
91
|
provider: row.provider,
|
|
92
92
|
binding,
|
|
@@ -164,9 +164,9 @@ var layer = (options) => Layer.effect(Service70, Effect.gen(function* () {
|
|
|
164
164
|
yield* Scope.close(connection.scope, Exit.void);
|
|
165
165
|
}).pipe(Effect.catchCause((cause) => Effect.logError("workspace idle suspension failed", cause)))), { concurrency: "unbounded", discard: true });
|
|
166
166
|
}).pipe(Effect.repeat(Schedule.spaced(options.pollInterval ?? Duration.minutes(1))), Effect.forkScoped);
|
|
167
|
-
return
|
|
167
|
+
return Service73.of({
|
|
168
168
|
create: Effect.fn("Workspace.create")(function* (input) {
|
|
169
|
-
const workspaceID = input.id ??
|
|
169
|
+
const workspaceID = input.id ?? ID12.create();
|
|
170
170
|
const existing = yield* db.select({ provider: WorkspaceTable2.provider }).from(WorkspaceTable2).where(eq(WorkspaceTable2.id, workspaceID)).get().pipe(Effect.orDie);
|
|
171
171
|
if (existing) {
|
|
172
172
|
if (existing.provider === input.provider)
|
|
@@ -242,6 +242,6 @@ var layer = (options) => Layer.effect(Service70, Effect.gen(function* () {
|
|
|
242
242
|
})
|
|
243
243
|
});
|
|
244
244
|
}));
|
|
245
|
-
var
|
|
245
|
+
var node76 = configured11();
|
|
246
246
|
|
|
247
|
-
export {
|
|
247
|
+
export { ID12, Info22, NotFound2, CreateConflict2, Service73, configured11, node76, exports_workspace };
|