@opencode/core 0.0.0-dev-1180 → 0.0.0-dev-1216
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 +90 -90
- package/dist/aisdk-native.js +1 -1
- package/dist/aisdk.js +109 -109
- package/dist/app.js +11 -11
- package/dist/artifact.js +257 -253
- package/dist/bus.js +80 -80
- package/dist/chunks/{instance-z2t5bq98.js → model-retry-02fhhstm.js} +8 -8
- package/dist/chunks/{instance-034tev2y.js → model-retry-034tev2y.js} +2 -2
- package/dist/chunks/{instance-7vjscx46.js → model-retry-09rceteh.js} +7 -7
- package/dist/chunks/{instance-gg96ja28.js → model-retry-0a8xczw5.js} +23 -23
- package/dist/chunks/{instance-d5chd28k.js → model-retry-0ddtt1rb.js} +16 -16
- package/dist/chunks/{instance-bq73e4br.js → model-retry-0dy226kc.js} +41 -41
- package/dist/chunks/{instance-bg1wv99j.js → model-retry-0ext5n9t.js} +11 -11
- package/dist/chunks/{instance-c7cw818c.js → model-retry-0fvxehme.js} +8 -2
- package/dist/chunks/{instance-1ch7sqbe.js → model-retry-0gx6fzah.js} +6 -6
- package/dist/chunks/{instance-0ma9gw4f.js → model-retry-0ma9gw4f.js} +2 -2
- package/dist/chunks/model-retry-0qyw66gp.js +273 -0
- package/dist/chunks/{instance-s77qrx8k.js → model-retry-0zvwhvr5.js} +10 -10
- package/dist/chunks/{instance-4ajra63f.js → model-retry-1abx79xn.js} +10 -10
- package/dist/chunks/{instance-1aqsckx4.js → model-retry-1aqsckx4.js} +1 -1
- package/dist/chunks/{instance-0j7gp832.js → model-retry-1aryjtsy.js} +22 -5
- package/dist/chunks/{instance-801enpa2.js → model-retry-1b2cxmga.js} +22 -22
- package/dist/chunks/{instance-1ep2p91f.js → model-retry-1ep2p91f.js} +2 -2
- package/dist/chunks/{instance-atqrmyhp.js → model-retry-1k2wffy4.js} +8 -8
- package/dist/chunks/{instance-1x2knyw4.js → model-retry-1x2knyw4.js} +1 -1
- package/dist/chunks/{instance-w687dnns.js → model-retry-1yped5qa.js} +4 -4
- package/dist/chunks/{instance-kpa09rhw.js → model-retry-20px12h8.js} +4 -4
- package/dist/chunks/{instance-ant8s0m4.js → model-retry-2cc0zt21.js} +20 -20
- package/dist/chunks/{instance-c6j4mpqd.js → model-retry-2cnxsjyc.js} +16 -16
- package/dist/chunks/{instance-x7jjzhf0.js → model-retry-2e32zktp.js} +4 -4
- package/dist/chunks/{instance-2fc7eemy.js → model-retry-2fc7eemy.js} +1 -1
- package/dist/chunks/{instance-jnrfdc60.js → model-retry-2fp0jt6s.js} +32 -32
- package/dist/chunks/{instance-cedg8p6b.js → model-retry-2jk2eaf8.js} +8 -8
- package/dist/chunks/{instance-3k17hp5t.js → model-retry-2prt43t7.js} +6 -4
- package/dist/chunks/{instance-5mysncq6.js → model-retry-2v3capeq.js} +10 -10
- package/dist/chunks/{instance-yjm3z17a.js → model-retry-30qkek6h.js} +6 -6
- package/dist/chunks/{instance-7g9mj4xg.js → model-retry-30swr9rt.js} +13 -13
- package/dist/chunks/{instance-e7ymkg80.js → model-retry-31c9mc6y.js} +24 -24
- package/dist/chunks/{instance-nfmb9mbn.js → model-retry-329aeaw0.js} +47 -47
- package/dist/chunks/{instance-pmr4zg21.js → model-retry-35xwmx6k.js} +12 -12
- package/dist/chunks/{instance-xshmb9w3.js → model-retry-380f7ky3.js} +8 -8
- package/dist/chunks/{instance-y8x5n6sr.js → model-retry-3adw4bt5.js} +9 -9
- package/dist/chunks/{instance-x1wf0nx8.js → model-retry-3gjensde.js} +17 -13
- package/dist/chunks/{instance-3hepkmqq.js → model-retry-3hepkmqq.js} +1 -1
- package/dist/chunks/{instance-sn26z8tj.js → model-retry-3j862yd2.js} +4 -4
- package/dist/chunks/{instance-3nnrz6f6.js → model-retry-3nnrz6f6.js} +1 -1
- package/dist/chunks/{instance-e0nd6rg0.js → model-retry-3qevzq3v.js} +11 -11
- package/dist/chunks/{instance-3mpwhmm1.js → model-retry-3r1ydfdn.js} +12 -12
- package/dist/chunks/{instance-7ffybbfj.js → model-retry-3ryz99p0.js} +7 -7
- package/dist/chunks/{instance-cb2y7pgv.js → model-retry-3syj8115.js} +19 -19
- package/dist/chunks/{instance-w2eysc6j.js → model-retry-40za9wsf.js} +9 -9
- package/dist/chunks/{instance-be5vg1t5.js → model-retry-42je62vc.js} +3 -3
- package/dist/chunks/{instance-6ck6771w.js → model-retry-432cy2ab.js} +23 -15
- package/dist/chunks/{instance-kkx4wk6n.js → model-retry-47q1swan.js} +22 -22
- package/dist/chunks/{instance-s1xc4ekk.js → model-retry-48sb3xry.js} +11 -11
- package/dist/chunks/{instance-245wmc8j.js → model-retry-48vkv2zp.js} +29 -29
- package/dist/chunks/{instance-esm8mf6f.js → model-retry-4dk3ggh9.js} +4 -4
- package/dist/chunks/{instance-4dx1dgte.js → model-retry-4dx1dgte.js} +1 -1
- package/dist/chunks/{instance-4f25tdd0.js → model-retry-4f25tdd0.js} +1 -1
- package/dist/chunks/{instance-9w3gj65q.js → model-retry-4jyt793m.js} +2 -2
- package/dist/chunks/{instance-4pyp9zr9.js → model-retry-4pyp9zr9.js} +1 -1
- package/dist/chunks/{instance-g2c6yhad.js → model-retry-4rx53fa9.js} +51 -51
- package/dist/chunks/{instance-f7hq32m0.js → model-retry-4sp0pwej.js} +19 -19
- package/dist/chunks/{instance-wye9xsyk.js → model-retry-4tmv59f3.js} +20 -20
- package/dist/chunks/{instance-4v008n1t.js → model-retry-4v008n1t.js} +1 -1
- package/dist/chunks/{instance-rj7jtxy8.js → model-retry-4vzr2b15.js} +3 -3
- package/dist/chunks/{instance-sgdepe2s.js → model-retry-4wxtepaa.js} +3 -3
- package/dist/chunks/{instance-8s01pjdv.js → model-retry-50380zjw.js} +14 -14
- package/dist/chunks/{instance-jcjb5z6s.js → model-retry-56zc6607.js} +12 -12
- package/dist/chunks/{instance-jdecztzq.js → model-retry-5cgn0v09.js} +15 -15
- package/dist/chunks/{instance-3sz5vjsj.js → model-retry-5g9v6hdw.js} +11 -11
- package/dist/chunks/{instance-5m9w47nd.js → model-retry-5m9w47nd.js} +1 -1
- package/dist/chunks/{instance-t0tr59sz.js → model-retry-5x3grz7y.js} +12 -12
- package/dist/chunks/{instance-9153ypvn.js → model-retry-5xadkbnd.js} +23 -23
- package/dist/chunks/{instance-1yq9hg58.js → model-retry-5zrxpy3q.js} +5 -5
- package/dist/chunks/{instance-9jneya3b.js → model-retry-5zzzgtm0.js} +12 -12
- package/dist/chunks/{instance-m7r6jz38.js → model-retry-630f57dr.js} +15 -15
- package/dist/chunks/{instance-bys6f9s7.js → model-retry-67zhfnr5.js} +5 -5
- package/dist/chunks/{instance-8ed81smd.js → model-retry-6ab8246z.js} +14 -14
- package/dist/chunks/{instance-n5jpthfj.js → model-retry-6e4ngh43.js} +22 -22
- package/dist/chunks/{instance-y2cjaz0t.js → model-retry-6h8nkgjb.js} +11 -11
- package/dist/chunks/{instance-5nn1tcck.js → model-retry-6wvdj9kp.js} +19 -19
- package/dist/chunks/{instance-49s3zfc2.js → model-retry-7bgajff9.js} +96 -93
- package/dist/chunks/{instance-7bmhse3q.js → model-retry-7bmhse3q.js} +1 -1
- package/dist/chunks/{instance-v7hbk1t3.js → model-retry-7cf5w11a.js} +5 -5
- package/dist/chunks/model-retry-7enabm5z.js +26 -0
- package/dist/chunks/{instance-1v5rhnq5.js → model-retry-7mxcsx9x.js} +11 -11
- package/dist/chunks/{instance-7w2ypzdf.js → model-retry-7w2ypzdf.js} +1 -1
- package/dist/chunks/{instance-7weczvnd.js → model-retry-7weczvnd.js} +1 -1
- package/dist/chunks/{instance-hr6qxdqm.js → model-retry-7zxbyqhz.js} +18 -18
- package/dist/chunks/{instance-80mg3ag8.js → model-retry-80mg3ag8.js} +3 -3
- package/dist/chunks/{instance-80pdk984.js → model-retry-80pdk984.js} +1 -1
- package/dist/chunks/{instance-85jq8dht.js → model-retry-85jq8dht.js} +1 -1
- package/dist/chunks/{instance-tqaa5gkw.js → model-retry-881fy3d8.js} +17 -17
- package/dist/chunks/{instance-8b3vzgkx.js → model-retry-8b3vzgkx.js} +1 -1
- package/dist/chunks/{instance-3arc8jc6.js → model-retry-8cja266h.js} +19 -19
- package/dist/chunks/{instance-8kjyvwy5.js → model-retry-8kjyvwy5.js} +1 -1
- package/dist/chunks/{instance-t62dywgn.js → model-retry-8rt25ezk.js} +6 -6
- package/dist/chunks/{instance-8sxe6kv8.js → model-retry-8sxe6kv8.js} +2 -2
- package/dist/chunks/{instance-d51n70vn.js → model-retry-8vb53tx0.js} +35 -35
- package/dist/chunks/{instance-8wtp7s3z.js → model-retry-8wtp7s3z.js} +1 -1
- package/dist/chunks/{instance-hq0f89q4.js → model-retry-8xvx9gbc.js} +21 -21
- package/dist/chunks/{instance-6qgt4c1d.js → model-retry-8zqzm5np.js} +5 -5
- package/dist/chunks/{instance-8zv0xmg5.js → model-retry-8zv0xmg5.js} +1 -1
- package/dist/chunks/{instance-fca0ht54.js → model-retry-90bxm3w0.js} +25 -25
- package/dist/chunks/{instance-38aws4xb.js → model-retry-90ct6wq4.js} +4 -4
- package/dist/chunks/{instance-5dfshqfk.js → model-retry-93fz3ark.js} +11 -11
- package/dist/chunks/{instance-faeg2djs.js → model-retry-93sddvhm.js} +10 -10
- package/dist/chunks/{instance-963hk181.js → model-retry-963hk181.js} +2 -2
- package/dist/chunks/{instance-89p7632h.js → model-retry-96j1qp1j.js} +33 -33
- package/dist/chunks/{instance-2y8q1569.js → model-retry-9907wfrv.js} +9 -9
- package/dist/chunks/{instance-1nvk7vcw.js → model-retry-99z197m3.js} +3 -3
- package/dist/chunks/{instance-s7kyse9r.js → model-retry-9q8g9sv8.js} +4 -4
- package/dist/chunks/{instance-v827tagj.js → model-retry-9rqfe4ad.js} +3 -3
- package/dist/chunks/{instance-kqpnf7xq.js → model-retry-9wc9780e.js} +5 -5
- package/dist/chunks/{instance-fjwkbb1x.js → model-retry-9wp8fvve.js} +5 -5
- package/dist/chunks/{instance-z6cftxwr.js → model-retry-a0pwz2ja.js} +16 -16
- package/dist/chunks/{instance-6m18wczj.js → model-retry-a0vpc40p.js} +146 -146
- package/dist/chunks/{instance-vphasnz4.js → model-retry-a1832zrw.js} +47 -50
- package/dist/chunks/{instance-vj50rhab.js → model-retry-a1qwck5h.js} +8 -8
- package/dist/chunks/{instance-7h0xs0hp.js → model-retry-a3dc5jdz.js} +5 -5
- package/dist/chunks/{instance-kjx557te.js → model-retry-a4fgwpxr.js} +27 -27
- package/dist/chunks/{instance-a9gr5w5f.js → model-retry-a52bkq65.js} +79 -79
- package/dist/chunks/{instance-2p60zmnr.js → model-retry-ad21tgm2.js} +4 -4
- package/dist/chunks/{instance-spe18341.js → model-retry-adg8bb2p.js} +19 -19
- package/dist/chunks/{instance-gc8t5na7.js → model-retry-aemyyd40.js} +7 -7
- package/dist/chunks/{instance-79k544d0.js → model-retry-agje4kmn.js} +7 -7
- package/dist/chunks/{instance-4265tj9f.js → model-retry-aq5rdsap.js} +81 -57
- package/dist/chunks/{instance-8bhy31nw.js → model-retry-aq6k3cf3.js} +146 -47
- package/dist/chunks/{instance-ayjs7tqn.js → model-retry-ayjs7tqn.js} +2 -2
- package/dist/chunks/{instance-kg226ns3.js → model-retry-azmzce5q.js} +11 -11
- package/dist/chunks/{instance-xgh5a4mc.js → model-retry-b8gjcvbw.js} +2 -2
- package/dist/chunks/{instance-fy56txwz.js → model-retry-b9902ptq.js} +16 -3
- package/dist/chunks/{instance-5vc26m93.js → model-retry-baefqw34.js} +1 -1
- package/dist/chunks/{instance-k9hdmkpm.js → model-retry-bb3pv0r8.js} +7 -7
- package/dist/chunks/{instance-jkdcm5hg.js → model-retry-bhfd478d.js} +4 -4
- package/dist/chunks/{instance-syc2my4y.js → model-retry-bhrptrfq.js} +19 -19
- package/dist/chunks/{instance-bz4wh0y9.js → model-retry-brz3f9n9.js} +18 -18
- package/dist/chunks/{instance-bstexjd6.js → model-retry-bstexjd6.js} +1 -1
- package/dist/chunks/{instance-yfsjc66k.js → model-retry-c6fbha32.js} +12 -12
- package/dist/chunks/{instance-np06tg3q.js → model-retry-c8xv9zc0.js} +11 -11
- package/dist/chunks/{instance-x7r36z6a.js → model-retry-caeva7y1.js} +16 -12
- package/dist/chunks/{instance-3pq4v287.js → model-retry-cb67h20a.js} +6 -6
- package/dist/chunks/{instance-5n0hxdr1.js → model-retry-cc6s66e5.js} +13 -13
- package/dist/chunks/{instance-wf80xz5e.js → model-retry-cerajcym.js} +4 -4
- package/dist/chunks/{instance-98d6yky8.js → model-retry-cj2zr1px.js} +12 -12
- package/dist/chunks/{instance-ch819tj3.js → model-retry-cn285h91.js} +8 -8
- package/dist/chunks/{instance-6wz2e538.js → model-retry-cvht37xw.js} +21 -21
- package/dist/chunks/{instance-cwrgdav8.js → model-retry-cwrgdav8.js} +2 -2
- package/dist/chunks/{instance-4jwxvp8p.js → model-retry-cx8yve48.js} +18 -18
- package/dist/chunks/{instance-vt4r9rmy.js → model-retry-d28v9scs.js} +9 -9
- package/dist/chunks/{instance-90nzw1ff.js → model-retry-d3q9v104.js} +1 -1
- package/dist/chunks/{instance-d4v9tmah.js → model-retry-d4v9tmah.js} +2 -2
- package/dist/chunks/{instance-w7pq0wsq.js → model-retry-d5z41q63.js} +1 -1
- package/dist/chunks/model-retry-d77dj7jw.js +18 -0
- package/dist/chunks/{instance-dtnn69z2.js → model-retry-dc3sk665.js} +59 -59
- package/dist/chunks/{instance-w8217685.js → model-retry-denh2jb2.js} +8 -6
- package/dist/chunks/{instance-dt77769w.js → model-retry-dt77769w.js} +1 -1
- package/dist/chunks/{instance-1sed8t76.js → model-retry-dv57xqt1.js} +14 -14
- package/dist/chunks/{instance-56t85pva.js → model-retry-dvjpmffy.js} +18 -23
- package/dist/chunks/{instance-1qpse3kw.js → model-retry-e2fbpykw.js} +24 -24
- package/dist/chunks/{instance-0hydfbmz.js → model-retry-e3qgsftg.js} +14 -14
- package/dist/chunks/{instance-s918xf0d.js → model-retry-e6h0js2y.js} +8 -8
- package/dist/chunks/{instance-qa8wq1bx.js → model-retry-e8xb975w.js} +9 -9
- package/dist/chunks/{instance-116nxpgg.js → model-retry-ea4xbpys.js} +2 -2
- package/dist/chunks/{instance-5zj1e96r.js → model-retry-ebqkfy2r.js} +9 -9
- package/dist/chunks/{instance-baah4y26.js → model-retry-ec77n7yf.js} +15 -15
- package/dist/chunks/{instance-gpkk1cvs.js → model-retry-edapz20f.js} +5 -5
- package/dist/chunks/{instance-es3e1tax.js → model-retry-eg34w9c3.js} +4 -4
- package/dist/chunks/{instance-85s0z2wh.js → model-retry-ejazfhce.js} +5 -5
- package/dist/chunks/{instance-eqw4pqj1.js → model-retry-eqw4pqj1.js} +2 -2
- package/dist/chunks/{instance-vdfjdqtv.js → model-retry-esn0ce8j.js} +14 -14
- package/dist/chunks/{instance-gy2999xp.js → model-retry-evbf0h8n.js} +4 -4
- package/dist/chunks/{instance-zpjtzyq9.js → model-retry-evy3hmsj.js} +12 -12
- package/dist/chunks/{instance-m06qa9cv.js → model-retry-exwhc5hz.js} +8 -8
- package/dist/chunks/{instance-f3bg7yfz.js → model-retry-f761xza1.js} +34 -34
- package/dist/chunks/{instance-ezfbat2v.js → model-retry-f7bpy73v.js} +20 -25
- package/dist/chunks/{instance-e5d320mb.js → model-retry-fcskamac.js} +9 -9
- package/dist/chunks/model-retry-ff9rbk43.js +144 -0
- package/dist/chunks/{instance-fg9p65nk.js → model-retry-fg9p65nk.js} +2 -2
- package/dist/chunks/{instance-6tdz0wx0.js → model-retry-fjr1tg8h.js} +27 -27
- package/dist/chunks/{instance-d0pmvwgf.js → model-retry-fkqnmv7m.js} +9 -9
- package/dist/chunks/{instance-2w765we9.js → model-retry-fm88cqwd.js} +10 -10
- package/dist/chunks/{instance-sjk7jrpb.js → model-retry-fng6r8ys.js} +17 -17
- package/dist/chunks/{instance-fhn6v8vb.js → model-retry-g1m8att5.js} +21 -20
- package/dist/chunks/{instance-yd37hfn2.js → model-retry-g1x3338p.js} +3 -3
- package/dist/chunks/{instance-0b61wrfe.js → model-retry-g5cw3qgb.js} +7 -7
- package/dist/chunks/{instance-a1fb2a23.js → model-retry-g6fhsb58.js} +11 -11
- package/dist/chunks/{instance-h59yzhhv.js → model-retry-g8n6nxn7.js} +35 -35
- package/dist/chunks/{instance-gbjdnr5j.js → model-retry-gbjdnr5j.js} +2 -2
- package/dist/chunks/{instance-a9a6mwsr.js → model-retry-gbm37efj.js} +10 -10
- package/dist/chunks/{instance-yrcywdqn.js → model-retry-gdq3b2dw.js} +31 -31
- package/dist/chunks/model-retry-ge0z7z6r.js +54 -0
- package/dist/chunks/{instance-b3ny1w86.js → model-retry-ggq1y9n4.js} +28 -28
- package/dist/chunks/{instance-ggx84v7x.js → model-retry-ggx84v7x.js} +3 -3
- package/dist/chunks/{instance-v876xee0.js → model-retry-gh5gjszb.js} +36 -36
- package/dist/chunks/{instance-ghrv1g9c.js → model-retry-ghrv1g9c.js} +1 -1
- package/dist/chunks/{instance-26wfx3k0.js → model-retry-gmemj5zs.js} +4 -4
- package/dist/chunks/{instance-er5j98fp.js → model-retry-gny4fw8g.js} +2 -2
- package/dist/chunks/{instance-tg7s7b5t.js → model-retry-gxs71cxp.js} +4 -4
- package/dist/chunks/{instance-yt9cj8c5.js → model-retry-gyfe4a17.js} +20 -20
- package/dist/chunks/{instance-4e7xy1yt.js → model-retry-gzet49gd.js} +28 -28
- package/dist/chunks/{instance-69mphjqq.js → model-retry-h0nvnzve.js} +17 -17
- package/dist/chunks/{instance-99eawj82.js → model-retry-h7mck9ey.js} +74 -40
- package/dist/chunks/{instance-4ba3czjr.js → model-retry-h99kpe06.js} +15 -15
- package/dist/chunks/{instance-hgzwgvze.js → model-retry-hgzwgvze.js} +2 -2
- package/dist/chunks/{instance-8tvvez7v.js → model-retry-hjs6kb92.js} +35 -35
- package/dist/chunks/{instance-h3f5k4xv.js → model-retry-hq1yfezb.js} +6 -6
- package/dist/chunks/{instance-ydsespw1.js → model-retry-hy8c1z76.js} +8 -8
- package/dist/chunks/{instance-w3ym8wyt.js → model-retry-j1aj7ka8.js} +15 -15
- package/dist/chunks/{instance-hkmmagrb.js → model-retry-j3n8xjy6.js} +7 -7
- package/dist/chunks/{instance-782pvxav.js → model-retry-j6vesw1n.js} +11 -11
- package/dist/chunks/model-retry-jaq18jgp.js +16 -0
- package/dist/chunks/{instance-msd2a3qm.js → model-retry-jcz74541.js} +6 -6
- package/dist/chunks/{instance-kw76mj88.js → model-retry-jfvyzykx.js} +16 -16
- package/dist/chunks/{instance-tr8x705m.js → model-retry-jht64jd1.js} +4 -4
- package/dist/chunks/{instance-jm70asfg.js → model-retry-jm70asfg.js} +1 -1
- package/dist/chunks/{instance-pw5jc9q3.js → model-retry-jn02p7w8.js} +27 -27
- package/dist/chunks/{instance-w76xjer3.js → model-retry-jns4gqy7.js} +4 -4
- package/dist/chunks/{instance-3rph647x.js → model-retry-jx75pjbb.js} +12 -12
- package/dist/chunks/{instance-0erfcbxq.js → model-retry-jzyf28t6.js} +28 -28
- package/dist/chunks/{instance-k5mavme4.js → model-retry-k08th43v.js} +8 -8
- package/dist/chunks/{instance-q558kfb7.js → model-retry-k28r1t9f.js} +30 -26
- package/dist/chunks/{instance-hc401pc4.js → model-retry-k2w93ba9.js} +33 -33
- package/dist/chunks/{instance-24878mnr.js → model-retry-k34er33s.js} +20 -20
- package/dist/chunks/{instance-6ssgn520.js → model-retry-ke6ptzrg.js} +3 -3
- package/dist/chunks/{instance-b7djxcmj.js → model-retry-kpjr6knp.js} +12 -12
- package/dist/chunks/{instance-kt3bjfbg.js → model-retry-kt3bjfbg.js} +1 -1
- package/dist/chunks/{instance-q8r5ktmh.js → model-retry-kxamksb3.js} +17 -17
- package/dist/chunks/{instance-tc6z5s9r.js → model-retry-kyc0r0ht.js} +7 -7
- package/dist/chunks/{instance-kzczzf4v.js → model-retry-kzczzf4v.js} +1 -1
- package/dist/chunks/{instance-m1714858.js → model-retry-m1714858.js} +1 -1
- package/dist/chunks/{instance-zpdbqgja.js → model-retry-m4p4r8nc.js} +26 -3
- package/dist/chunks/model-retry-m8prejn4.js +35 -0
- package/dist/chunks/{instance-m90tx7mw.js → model-retry-m90tx7mw.js} +1 -1
- package/dist/chunks/{instance-swyq773a.js → model-retry-m91bny15.js} +13 -13
- package/dist/chunks/{instance-j2g410ns.js → model-retry-m998j73k.js} +8 -8
- package/dist/chunks/{instance-p3dvk7tw.js → model-retry-m9a9fe6f.js} +25 -12
- package/dist/chunks/{instance-m9w0rfyh.js → model-retry-m9w0rfyh.js} +1 -1
- package/dist/chunks/{instance-mb7mbhnz.js → model-retry-mb7mbhnz.js} +3 -3
- package/dist/chunks/{instance-3qbvs0a3.js → model-retry-mesdejg4.js} +26 -26
- package/dist/chunks/{instance-ec60ya00.js → model-retry-mrjhcth0.js} +2 -2
- package/dist/chunks/{instance-m4n9kcyr.js → model-retry-mzj1qzjq.js} +25 -25
- package/dist/chunks/{instance-s615qp07.js → model-retry-n0q6v9g9.js} +6 -6
- package/dist/chunks/{instance-n320gsn2.js → model-retry-n320gsn2.js} +1 -1
- package/dist/chunks/{instance-d4qb2rc3.js → model-retry-n3na61j9.js} +4 -4
- package/dist/chunks/{instance-gqsbgj66.js → model-retry-n4chev15.js} +39 -39
- package/dist/chunks/{instance-6edbc7zm.js → model-retry-nn2nd58t.js} +7 -7
- package/dist/chunks/{instance-eet5ftjn.js → model-retry-nq3gw3nz.js} +23 -23
- package/dist/chunks/{instance-mv3k10m3.js → model-retry-nw314s9d.js} +2 -2
- package/dist/chunks/{instance-6yakppr8.js → model-retry-p9jvgf3w.js} +6 -6
- package/dist/chunks/{instance-xfk7s2rd.js → model-retry-phy3xrma.js} +11 -11
- package/dist/chunks/{instance-bneqzcg2.js → model-retry-pkbe14me.js} +32 -32
- package/dist/chunks/{instance-pknna89w.js → model-retry-pknna89w.js} +1 -1
- package/dist/chunks/{instance-vm2714gw.js → model-retry-pm5952we.js} +34 -34
- package/dist/chunks/{instance-8ykqf5wm.js → model-retry-pnwsrq7c.js} +8 -8
- package/dist/chunks/{instance-qdvd3swc.js → model-retry-pqr3184k.js} +13 -13
- package/dist/chunks/{instance-jq33a8bt.js → model-retry-pr9etnbc.js} +17 -17
- package/dist/chunks/{instance-rbmv0qrb.js → model-retry-pv9k69qc.js} +81 -81
- package/dist/chunks/{instance-50zs15hr.js → model-retry-pvjmct39.js} +13 -6
- package/dist/chunks/{instance-32x9r523.js → model-retry-pwjd9d5z.js} +27 -28
- package/dist/chunks/{instance-rj7j5fvs.js → model-retry-px7qpgcn.js} +4 -4
- package/dist/chunks/{instance-epa10x1h.js → model-retry-pzj8t5rk.js} +11 -11
- package/dist/chunks/{instance-zs8mchrd.js → model-retry-q8hw2skb.js} +9 -9
- package/dist/chunks/{instance-azxn0vfy.js → model-retry-qacp188h.js} +8 -8
- package/dist/chunks/{instance-vq06w5cr.js → model-retry-qbqyqs78.js} +10 -10
- package/dist/chunks/{instance-1844ecb2.js → model-retry-qdc1w9ks.js} +26 -26
- package/dist/chunks/{instance-qdxk7dqv.js → model-retry-qeg6dv9a.js} +25 -25
- package/dist/chunks/{instance-kj9n5bvh.js → model-retry-qfz6bxfd.js} +4 -4
- package/dist/chunks/{instance-qp7r0hxv.js → model-retry-qp7r0hxv.js} +1 -1
- package/dist/chunks/{instance-8wqgh9dj.js → model-retry-qpqdpqrv.js} +14 -14
- package/dist/chunks/{instance-1zeqvgkp.js → model-retry-qv7g05k4.js} +7 -7
- package/dist/chunks/{instance-hbk0hwen.js → model-retry-r61v17gv.js} +43 -43
- package/dist/chunks/{instance-rb9dy4dg.js → model-retry-rb9dy4dg.js} +1 -1
- package/dist/chunks/{instance-rgc9cx3e.js → model-retry-rgc9cx3e.js} +2 -2
- package/dist/chunks/{instance-9wptakxf.js → model-retry-rhg4046s.js} +17 -17
- package/dist/chunks/{instance-s2yjk1ar.js → model-retry-rja7p7xq.js} +3 -3
- package/dist/chunks/{instance-dkpvrnfv.js → model-retry-rmfzdfxf.js} +13 -13
- package/dist/chunks/{instance-cb7z7gjr.js → model-retry-rpqdece5.js} +4 -4
- package/dist/chunks/{instance-30b05xge.js → model-retry-rv31kkjr.js} +4 -4
- package/dist/chunks/{instance-5whx36p1.js → model-retry-s47rahr7.js} +4 -4
- package/dist/chunks/{instance-tgtbxz93.js → model-retry-s5g14t6y.js} +6 -6
- package/dist/chunks/{instance-6rkx64xd.js → model-retry-s70c1f4z.js} +18 -18
- package/dist/chunks/{instance-vxz9zfh4.js → model-retry-s9xvbj60.js} +4 -4
- package/dist/chunks/{instance-sbya78hr.js → model-retry-sbya78hr.js} +1 -1
- package/dist/chunks/{instance-axvxv4yy.js → model-retry-sd1es34h.js} +3 -3
- package/dist/chunks/{instance-40y6dtc2.js → model-retry-sh9dx4s1.js} +4 -4
- package/dist/chunks/{instance-q55m01sh.js → model-retry-sp5gfv0g.js} +34 -34
- package/dist/chunks/{instance-s6mcjv72.js → model-retry-srb5ekkn.js} +18 -18
- package/dist/chunks/{instance-svcy3p9a.js → model-retry-svcy3p9a.js} +1 -1
- package/dist/chunks/{instance-wz4dy3mx.js → model-retry-t84ct0bh.js} +6 -6
- package/dist/chunks/{instance-tbpn7jtk.js → model-retry-tbpn7jtk.js} +1 -1
- package/dist/chunks/{instance-gbggqar9.js → model-retry-tck9nc1r.js} +31 -31
- package/dist/chunks/{instance-tczq8hjw.js → model-retry-tczq8hjw.js} +1 -1
- package/dist/chunks/{instance-vqnrv5ss.js → model-retry-tenwd8mx.js} +11 -11
- package/dist/chunks/model-retry-tn2h78aa.js +40 -0
- package/dist/chunks/{instance-b26ddj6h.js → model-retry-tp1jb13k.js} +7 -7
- package/dist/chunks/{instance-bxt8he58.js → model-retry-tv9fhf77.js} +6 -6
- package/dist/chunks/{instance-e2mg8vga.js → model-retry-tve6atr2.js} +31 -36
- package/dist/chunks/{instance-tvtps2q9.js → model-retry-tvtps2q9.js} +1 -1
- package/dist/chunks/{instance-44pmzq9c.js → model-retry-twhtcdx9.js} +4 -4
- package/dist/chunks/{instance-twssxy5n.js → model-retry-twssxy5n.js} +2 -2
- package/dist/chunks/{instance-v2r1d0zg.js → model-retry-v2r1d0zg.js} +1 -1
- package/dist/chunks/{instance-13td3p00.js → model-retry-v32atjwq.js} +21 -21
- package/dist/chunks/{instance-95zgn1f9.js → model-retry-v5w4jpez.js} +6 -6
- package/dist/chunks/{instance-3f3z22em.js → model-retry-vb8zbt9n.js} +7 -7
- package/dist/chunks/{instance-3kfexme8.js → model-retry-vfy39f1m.js} +23 -23
- package/dist/chunks/{instance-vjf35v1f.js → model-retry-vjf35v1f.js} +1 -1
- package/dist/chunks/{instance-10pn4eb5.js → model-retry-vjhrddsw.js} +5 -5
- package/dist/chunks/{instance-px00hf90.js → model-retry-vrkt2gzc.js} +18 -18
- package/dist/chunks/{instance-yyd8mswt.js → model-retry-vzep8vzj.js} +12 -12
- package/dist/chunks/{instance-yz6tk0cp.js → model-retry-w03ds3y6.js} +8 -8
- package/dist/chunks/{instance-w3wsvvr9.js → model-retry-w3wsvvr9.js} +1 -1
- package/dist/chunks/{instance-hmhcwfpk.js → model-retry-w4xw9ac5.js} +8 -8
- package/dist/chunks/{instance-xmxh6hrv.js → model-retry-w5v5zxbk.js} +6 -6
- package/dist/chunks/{instance-racjgfee.js → model-retry-w6sqcs8d.js} +27 -27
- package/dist/chunks/{instance-tgjrgwnv.js → model-retry-w71w1vyw.js} +48 -48
- package/dist/chunks/{instance-8vb0va39.js → model-retry-w89hjt3b.js} +19 -15
- package/dist/chunks/{instance-wakvkjy4.js → model-retry-wakvkjy4.js} +1 -1
- package/dist/chunks/{instance-wd87259q.js → model-retry-wd87259q.js} +1 -1
- package/dist/chunks/{instance-yn770g8s.js → model-retry-weexxn37.js} +5 -5
- package/dist/chunks/{instance-wegkxhrn.js → model-retry-wegkxhrn.js} +2 -2
- package/dist/chunks/{instance-8h741rz1.js → model-retry-wha2430v.js} +3 -3
- package/dist/chunks/{instance-89f6sgg9.js → model-retry-wnyqvj32.js} +18 -18
- package/dist/chunks/{instance-xnw4kvm5.js → model-retry-wsy64217.js} +15 -15
- package/dist/chunks/{instance-9g2hcbat.js → model-retry-wt8qw9kc.js} +13 -13
- package/dist/chunks/{instance-g0ptqx7f.js → model-retry-x19yfq7e.js} +28 -28
- package/dist/chunks/{instance-rbh2bs3a.js → model-retry-x2vkwk6x.js} +4 -4
- package/dist/chunks/{instance-3qgwywyc.js → model-retry-xacrkbdt.js} +4 -4
- package/dist/chunks/{instance-v4h87rkc.js → model-retry-xd5qa272.js} +67 -84
- package/dist/chunks/{instance-qyxvc8bz.js → model-retry-xg7gtsp9.js} +6 -6
- package/dist/chunks/{instance-xxschbft.js → model-retry-xjr6c8m4.js} +4 -4
- package/dist/chunks/{instance-6cxvesht.js → model-retry-xxf442y8.js} +33 -33
- package/dist/chunks/{instance-qec9wkq8.js → model-retry-xxfjb0zd.js} +10 -10
- package/dist/chunks/{instance-a1z8ky6b.js → model-retry-y2wfh8nz.js} +7 -7
- package/dist/chunks/{instance-hm3m1sdj.js → model-retry-y3jkqygv.js} +41 -41
- package/dist/chunks/{instance-y4gv9tc7.js → model-retry-y9dg44tb.js} +20 -20
- package/dist/chunks/{instance-yb20nhc3.js → model-retry-yb20nhc3.js} +1 -1
- package/dist/chunks/{instance-pppfy90j.js → model-retry-ybv2sjse.js} +26 -26
- package/dist/chunks/{instance-b1yhtaba.js → model-retry-ye051wpe.js} +3 -3
- package/dist/chunks/{instance-yr705xyq.js → model-retry-yr705xyq.js} +1 -1
- package/dist/chunks/{instance-yvtc2x31.js → model-retry-yvtc2x31.js} +1 -1
- package/dist/chunks/{instance-gzbweqa7.js → model-retry-ywb0hxgs.js} +21 -21
- package/dist/chunks/{instance-xksw6ev0.js → model-retry-yybgvvmq.js} +4 -4
- package/dist/chunks/{instance-4pw98qd4.js → model-retry-yydqqga9.js} +4 -4
- package/dist/chunks/model-retry-z0wbgq7s.js +30 -0
- package/dist/chunks/{instance-6ke2x4rr.js → model-retry-zdty93sz.js} +4 -4
- package/dist/chunks/{instance-ze75qvmd.js → model-retry-ze75qvmd.js} +3 -3
- package/dist/chunks/{instance-4crq3wsj.js → model-retry-zgxh77gy.js} +364 -364
- package/dist/chunks/{instance-ge5ycmax.js → model-retry-zkybrta7.js} +8 -8
- package/dist/chunks/{instance-yp6q9tde.js → model-retry-zmmx3t8v.js} +9 -9
- package/dist/chunks/{instance-eaaqrmje.js → model-retry-zr3s1x67.js} +37 -37
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/execution.js +5 -5
- package/dist/codemode/fetch.js +149 -149
- package/dist/codemode/instructions.js +7 -7
- package/dist/codemode/tool.js +156 -156
- package/dist/command.js +96 -96
- package/dist/config/discovery.js +95 -95
- package/dist/config/integration.js +3 -3
- package/dist/config/managed.js +1 -1
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +113 -113
- package/dist/config/plugin/agent.js +134 -134
- package/dist/config/plugin/command.js +248 -245
- package/dist/config/plugin/compaction.js +174 -174
- package/dist/config/plugin/compatibility.js +154 -154
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +132 -132
- package/dist/config/plugin/image.js +131 -131
- package/dist/config/plugin/instruction.js +131 -131
- package/dist/config/plugin/location-watcher.js +133 -133
- package/dist/config/plugin/mcp.js +148 -148
- package/dist/config/plugin/policy.js +131 -131
- package/dist/config/plugin/provider.js +131 -131
- package/dist/config/plugin/reference.js +133 -133
- package/dist/config/plugin/shell.js +133 -133
- package/dist/config/plugin/skill-file.js +150 -150
- package/dist/config/plugin/skill-scan.js +1 -1
- package/dist/config/plugin/skill.js +157 -157
- package/dist/config/plugin/snapshot.js +131 -131
- package/dist/config/plugin/source.js +135 -135
- package/dist/config/plugin/tool-output.js +132 -132
- package/dist/config/plugin/websearch.js +132 -132
- package/dist/config/plugin/worktree.js +133 -133
- package/dist/config/variable.js +1 -1
- package/dist/config/watch.js +1 -1
- package/dist/config.js +136 -136
- package/dist/console-access.js +1 -1
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +90 -90
- package/dist/database/batch.js +1 -1
- package/dist/database/database.js +79 -79
- 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/20261024002554_session_allowance.js +1 -1
- package/dist/database/migration/20261024175301_drop_session_allowance.js +1 -1
- package/dist/database/migration/20261025123711_blob.js +1 -1
- package/dist/database/migration/20261025154125_drop_session_pending.js +1 -1
- package/dist/database/migration/20261026223005_schedule.js +1 -1
- package/dist/database/migration/20261029002625_session_part.js +1 -1
- package/dist/database/migration/20261029073502_session_time_busy.js +1 -1
- package/dist/database/migration/20261029165540_schedule_checks.js +1 -1
- package/dist/database/migration/20261030054400_job.js +1 -1
- package/dist/database/migration.gen.js +60 -60
- package/dist/database/migration.js +78 -78
- 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/v1-migration.bun.js +98 -98
- package/dist/effect/app-node-builder.js +449 -446
- 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 +101 -101
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +103 -103
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +3 -3
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +81 -81
- package/dist/file-access.js +161 -161
- package/dist/file-mutation.js +108 -108
- package/dist/file-retention.js +1 -1
- package/dist/file-write.js +165 -165
- 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/file-watch.js +88 -88
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +259 -255
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +111 -111
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +11 -11
- package/dist/filesystem.js +118 -118
- package/dist/flag.js +134 -134
- package/dist/form.js +89 -89
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +100 -100
- package/dist/generate.js +117 -117
- package/dist/git.js +7 -7
- package/dist/github-copilot/models.js +105 -105
- package/dist/image/notice.js +1 -1
- package/dist/image/photon-normalize.js +1 -1
- package/dist/image/photon-worker.js +1 -1
- package/dist/image/photon.js +4 -4
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +440 -437
- package/dist/instruction-discovery.js +93 -93
- package/dist/instructions/builtins.js +100 -100
- package/dist/instructions/index.js +5 -5
- package/dist/integration/connection.js +1 -1
- package/dist/integration.js +94 -94
- package/dist/job/list.js +7 -7
- package/dist/job/recovery.js +2 -2
- package/dist/job/sql.js +2 -2
- package/dist/job.js +90 -90
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +84 -84
- package/dist/location-activity.js +187 -183
- package/dist/location-lifecycle.js +154 -154
- package/dist/location-service-map.js +99 -99
- package/dist/location-services.js +437 -434
- package/dist/location.js +94 -94
- package/dist/managed-policy.js +3 -3
- package/dist/mcp/client.js +159 -159
- package/dist/mcp/connection.js +104 -104
- package/dist/mcp/index.js +145 -145
- package/dist/mcp/instructions.js +190 -190
- package/dist/mcp/oauth.js +97 -107
- package/dist/mcp/pool.js +108 -108
- package/dist/mcp/socket-client.js +1 -1
- package/dist/mcp/stdio.js +160 -160
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +107 -107
- package/dist/model-resolver.js +113 -113
- package/dist/model-retry.js +1 -1
- package/dist/model.js +110 -110
- package/dist/models-dev/v1.js +1 -1
- package/dist/models-dev.js +118 -118
- package/dist/oauth/page.js +1 -1
- package/dist/oauth/redirect.js +10 -0
- package/dist/permission/saved.js +91 -91
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +155 -155
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +97 -97
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +86 -86
- package/dist/plugin/agent.js +87 -87
- package/dist/plugin/command.js +146 -146
- package/dist/plugin/fork-notice.js +3 -3
- package/dist/plugin/goal.js +3 -3
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +250 -246
- package/dist/plugin/identity.js +5 -5
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +417 -413
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +111 -111
- package/dist/plugin/module.js +130 -130
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +150 -150
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +107 -107
- package/dist/plugin/provider/azure.js +134 -134
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +135 -134
- package/dist/plugin/provider/claude-agent/aisdk.js +118 -118
- package/dist/plugin/provider/claude-agent/claude/fork.js +2 -2
- package/dist/plugin/provider/claude-agent/claude/io.js +4 -4
- package/dist/plugin/provider/claude-agent/claude/probe.js +2 -2
- package/dist/plugin/provider/claude-agent/claude/query-options.js +4 -4
- package/dist/plugin/provider/claude-agent/claude/sdk.js +3 -3
- package/dist/plugin/provider/claude-agent/claude/session.js +4 -4
- package/dist/plugin/provider/claude-agent/claude/sessions.js +16 -16
- package/dist/plugin/provider/claude-agent/claude/status.js +7 -7
- package/dist/plugin/provider/claude-agent/index.js +149 -149
- package/dist/plugin/provider/claude-agent/instructions.js +113 -113
- package/dist/plugin/provider/claude-agent/integration.js +116 -116
- package/dist/plugin/provider/claude-agent/language-model/claude-agent-error.js +3 -3
- package/dist/plugin/provider/claude-agent/language-model/claude-agent-language-model.js +7 -7
- package/dist/plugin/provider/claude-agent/language-model/convert-claude-stream.js +6 -6
- package/dist/plugin/provider/claude-agent/language-model/convert-to-claude-message.js +1 -1
- package/dist/plugin/provider/claude-agent/language-model/request-kind.js +1 -1
- package/dist/plugin/provider/claude-agent/language-model/system-prompt.js +3 -3
- package/dist/plugin/provider/claude-agent/language-model/usage.js +3 -3
- package/dist/plugin/provider/claude-agent/provider.js +111 -111
- package/dist/plugin/provider/claude-agent/session.js +113 -113
- package/dist/plugin/provider/claude-agent/sync/catch-up.js +3 -3
- package/dist/plugin/provider/claude-agent/sync/checkpoints.js +2 -2
- package/dist/plugin/provider/claude-agent/sync/decide.js +2 -2
- package/dist/plugin/provider/claude-agent/sync/fingerprint.js +1 -1
- package/dist/plugin/provider/claude-agent/sync/record.js +3 -3
- package/dist/plugin/provider/claude-agent/tools/hooks.js +3 -3
- package/dist/plugin/provider/claude-agent/tools/names.js +3 -3
- package/dist/plugin/provider/claude-agent/tools/pending.js +3 -3
- package/dist/plugin/provider/claude-agent/tools/result.js +3 -3
- package/dist/plugin/provider/claude-agent/tools/server.js +4 -4
- package/dist/plugin/provider/cloudflare-ai-gateway.js +131 -131
- package/dist/plugin/provider/cloudflare-workers-ai.js +131 -131
- package/dist/plugin/provider/configured.js +127 -127
- package/dist/plugin/provider/credential-settings.js +88 -88
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +110 -110
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/github-copilot.js +112 -112
- package/dist/plugin/provider/gitlab.js +111 -110
- package/dist/plugin/provider/google-vertex.js +128 -128
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +89 -89
- package/dist/plugin/provider/lmstudio.js +144 -144
- package/dist/plugin/provider/local.js +141 -141
- package/dist/plugin/provider/modal.js +109 -109
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +144 -144
- package/dist/plugin/provider/openai-context-caps.js +107 -107
- package/dist/plugin/provider/openai.js +137 -136
- package/dist/plugin/provider/opencode-watches.js +4 -4
- package/dist/plugin/provider/opencode.js +162 -162
- package/dist/plugin/provider/openrouter.js +105 -105
- package/dist/plugin/provider/poe.js +91 -90
- package/dist/plugin/provider/prompt-cache-key.js +1 -1
- package/dist/plugin/provider/refresh.js +87 -87
- package/dist/plugin/provider/sap-ai-core.js +105 -105
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +133 -132
- package/dist/plugin/provider/vllm.js +144 -144
- package/dist/plugin/provider/xai.js +105 -105
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +241 -240
- package/dist/plugin/sdk.js +87 -87
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +153 -153
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +425 -421
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +99 -99
- package/dist/plugin/vcs/hg.js +99 -99
- package/dist/plugin/verbosity.js +107 -107
- package/dist/plugin/warming.js +131 -131
- package/dist/plugin/websearch/exa.js +8 -8
- package/dist/plugin/websearch/firecrawl.js +9 -9
- package/dist/plugin/websearch/index.js +10 -10
- package/dist/plugin/websearch/mcp.js +6 -6
- package/dist/plugin/websearch/parallel.js +9 -9
- package/dist/plugin/websearch/provider.js +3 -3
- package/dist/plugin/websearch/tavily.js +7 -7
- package/dist/plugin/websearch/tinyfish.js +9 -9
- package/dist/plugin.js +261 -257
- package/dist/project/icon.js +5 -5
- package/dist/project/schema.js +2 -2
- package/dist/project/sql.js +4 -4
- package/dist/project.js +93 -93
- package/dist/provider.js +109 -109
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +113 -113
- package/dist/reference/instructions.js +101 -101
- package/dist/reference.js +103 -103
- package/dist/repository-cache.js +93 -93
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +111 -111
- package/dist/rpc.js +99 -99
- package/dist/schedule/check.js +255 -251
- package/dist/schedule/sql.js +6 -6
- package/dist/schedule.js +261 -257
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/background.js +1 -1
- package/dist/session/blob.js +135 -135
- package/dist/session/command.js +85 -85
- package/dist/session/compaction.js +174 -174
- package/dist/session/context.js +206 -206
- package/dist/session/diff.js +101 -101
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +5 -5
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +375 -319
- package/dist/session/execution/subagent-report.js +152 -0
- package/dist/session/execution.js +176 -172
- package/dist/session/generate.js +206 -206
- package/dist/session/history.js +140 -140
- package/dist/session/inbox.js +151 -151
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +86 -86
- package/dist/session/instruction-state.js +10 -10
- package/dist/session/instructions.js +141 -141
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +172 -172
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +176 -172
- package/dist/session/projector.js +148 -147
- package/dist/session/prompt.js +152 -152
- package/dist/session/recent-text.js +1 -1
- package/dist/session/revert.js +143 -143
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +260 -257
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +115 -115
- package/dist/session/runner/publish-llm-event.js +154 -154
- package/dist/session/runner/retry.js +3 -3
- package/dist/session/runner/step.js +167 -167
- package/dist/session/runner/to-llm-message.js +141 -141
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +196 -192
- package/dist/session/shell.js +151 -151
- package/dist/session/skill.js +151 -151
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +85 -85
- package/dist/session/store.js +146 -146
- package/dist/session/stored.js +2 -2
- package/dist/session/subagent-completion.js +3 -1
- package/dist/session/subagent-job.js +175 -242
- package/dist/session/subagent-metadata.js +18 -0
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +210 -210
- package/dist/session/to-session-error.js +153 -153
- package/dist/session/transfer.js +253 -249
- package/dist/session/usage.js +1 -1
- package/dist/session.js +250 -246
- package/dist/shared-cache.js +5 -5
- 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 +151 -151
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +155 -155
- package/dist/skill.js +160 -160
- package/dist/snapshot.js +104 -104
- package/dist/state.js +3 -3
- package/dist/tool/html-markdown.js +1 -1
- package/dist/tool/http-body.js +1 -1
- package/dist/tool/mcp.js +189 -189
- package/dist/tool/plugin/artifact.js +245 -241
- package/dist/tool/plugin/edit.js +171 -171
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +175 -175
- package/dist/tool/plugin/grep.js +174 -174
- package/dist/tool/plugin/image-generate.js +256 -252
- package/dist/tool/plugin/mcp-events.js +166 -166
- package/dist/tool/plugin/mcp-resource.js +170 -170
- package/dist/tool/plugin/opencode.js +165 -165
- package/dist/tool/plugin/patch.js +168 -168
- package/dist/tool/plugin/question.js +152 -152
- package/dist/tool/plugin/read.js +176 -176
- package/dist/tool/plugin/schedule.js +259 -255
- package/dist/tool/plugin/shell.js +252 -248
- package/dist/tool/plugin/skill.js +159 -159
- package/dist/tool/plugin/subagent.js +252 -249
- package/dist/tool/plugin/todo.js +157 -157
- package/dist/tool/plugin/webfetch.js +159 -159
- package/dist/tool/plugin/websearch.js +159 -159
- package/dist/tool/plugin/write.js +168 -168
- package/dist/tool/read-filesystem.js +116 -116
- package/dist/tool/runtime.js +1 -1
- package/dist/tool/search.js +109 -109
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +166 -166
- package/dist/types/codemode/tool.d.ts +2 -3
- package/dist/types/flag.d.ts +2 -2
- package/dist/types/job/list.d.ts +2 -0
- package/dist/types/job.d.ts +30 -0
- package/dist/types/mcp/oauth.d.ts +1 -1
- package/dist/types/oauth/redirect.d.ts +26 -0
- package/dist/types/session/background.d.ts +26 -31
- package/dist/types/session/blob.d.ts +6 -0
- package/dist/types/session/execution/subagent-report.d.ts +45 -0
- package/dist/types/session/execution.d.ts +2 -1
- package/dist/types/session/history.d.ts +14 -0
- package/dist/types/session/run-coordinator.d.ts +2 -0
- package/dist/types/session/store.d.ts +9 -0
- package/dist/types/session/subagent-completion.d.ts +16 -4
- package/dist/types/session/subagent-job.d.ts +5 -4
- package/dist/types/session/subagent-metadata.d.ts +22 -0
- package/dist/types/session/transfer.d.ts +1 -0
- package/dist/types/tool/plugin/shell.d.ts +1 -2
- package/dist/types/tool/plugin/subagent.d.ts +2 -2
- package/dist/usage-limits.js +98 -98
- package/dist/util/error-summary.js +1 -1
- package/dist/util/git-executable.js +3 -3
- 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 +5 -5
- package/dist/v1/config/command.js +5 -5
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +106 -106
- package/dist/v1/config/permission.js +3 -3
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/variant.js +105 -105
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +102 -102
- package/dist/voice.js +97 -97
- package/dist/websearch.js +101 -101
- package/dist/wellknown/plugin.js +87 -87
- package/dist/wellknown.js +90 -90
- package/dist/workspace/driver.js +3 -3
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +89 -89
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +11 -11
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +102 -102
- package/dist/worktree.js +113 -113
- package/package.json +9 -9
- package/dist/chunks/instance-4a3ph93e.js +0 -273
- package/dist/chunks/instance-adzz9gjd.js +0 -35
- package/dist/chunks/instance-da71jhpv.js +0 -73
- package/dist/chunks/instance-g8xjta2p.js +0 -26
- package/dist/chunks/instance-me0dhgxs.js +0 -18
- package/dist/chunks/instance-qwz12hkq.js +0 -16
- /package/dist/chunks/{instance-0qkdqm5v.js → model-retry-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{instance-0zkw76rk.js → model-retry-0zkw76rk.js} +0 -0
- /package/dist/chunks/{instance-17cy0kzp.js → model-retry-17cy0kzp.js} +0 -0
- /package/dist/chunks/{instance-1cnp2v09.js → model-retry-1cnp2v09.js} +0 -0
- /package/dist/chunks/{instance-1kah00gy.js → model-retry-1kah00gy.js} +0 -0
- /package/dist/chunks/{instance-24dcb14g.js → model-retry-24dcb14g.js} +0 -0
- /package/dist/chunks/{instance-2710q6r3.js → model-retry-2710q6r3.js} +0 -0
- /package/dist/chunks/{instance-2c3vjs8z.js → model-retry-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{instance-359p4xyc.js → model-retry-359p4xyc.js} +0 -0
- /package/dist/chunks/{instance-3v8g72cx.js → model-retry-3v8g72cx.js} +0 -0
- /package/dist/chunks/{instance-43n2bw4t.js → model-retry-43n2bw4t.js} +0 -0
- /package/dist/chunks/{instance-4knz6hnm.js → model-retry-4knz6hnm.js} +0 -0
- /package/dist/chunks/{instance-4qk9sjk2.js → model-retry-4qk9sjk2.js} +0 -0
- /package/dist/chunks/{instance-53557ph1.js → model-retry-53557ph1.js} +0 -0
- /package/dist/chunks/{instance-5w3e23ze.js → model-retry-5w3e23ze.js} +0 -0
- /package/dist/chunks/{instance-6agm2x70.js → model-retry-6agm2x70.js} +0 -0
- /package/dist/chunks/{instance-6prwharc.js → model-retry-6prwharc.js} +0 -0
- /package/dist/chunks/{instance-6q2bdcd1.js → model-retry-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{instance-7akdwqpd.js → model-retry-7akdwqpd.js} +0 -0
- /package/dist/chunks/{instance-7m9af43g.js → model-retry-7m9af43g.js} +0 -0
- /package/dist/chunks/{instance-7rvsyqjv.js → model-retry-7rvsyqjv.js} +0 -0
- /package/dist/chunks/{instance-822emrt2.js → model-retry-822emrt2.js} +0 -0
- /package/dist/chunks/{instance-84wd9syh.js → model-retry-84wd9syh.js} +0 -0
- /package/dist/chunks/{instance-88xbtdfr.js → model-retry-88xbtdfr.js} +0 -0
- /package/dist/chunks/{instance-8n3pysct.js → model-retry-8n3pysct.js} +0 -0
- /package/dist/chunks/{instance-8wj87zfr.js → model-retry-8wj87zfr.js} +0 -0
- /package/dist/chunks/{instance-9a4afbnw.js → model-retry-9a4afbnw.js} +0 -0
- /package/dist/chunks/{instance-9rqn6x4v.js → model-retry-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{instance-aqzs7mqg.js → model-retry-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{instance-atq7p7m5.js → model-retry-atq7p7m5.js} +0 -0
- /package/dist/chunks/{instance-beh6qq61.js → model-retry-beh6qq61.js} +0 -0
- /package/dist/chunks/{instance-bkyjaxrp.js → model-retry-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{instance-bmr6ed5q.js → model-retry-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{instance-cf4snx6d.js → model-retry-cf4snx6d.js} +0 -0
- /package/dist/chunks/{instance-cqv5kn06.js → model-retry-cqv5kn06.js} +0 -0
- /package/dist/chunks/{instance-cvy3z8tj.js → model-retry-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{instance-d9fn303g.js → model-retry-d9fn303g.js} +0 -0
- /package/dist/chunks/{instance-d9jj8t3e.js → model-retry-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{instance-df08tz66.js → model-retry-df08tz66.js} +0 -0
- /package/dist/chunks/{instance-dy18nga0.js → model-retry-dy18nga0.js} +0 -0
- /package/dist/chunks/{instance-e5kj55wp.js → model-retry-e5kj55wp.js} +0 -0
- /package/dist/chunks/{instance-ean2d8b5.js → model-retry-ean2d8b5.js} +0 -0
- /package/dist/chunks/{instance-ec1grn59.js → model-retry-ec1grn59.js} +0 -0
- /package/dist/chunks/{instance-emrn6kk6.js → model-retry-emrn6kk6.js} +0 -0
- /package/dist/chunks/{instance-f0mxakyp.js → model-retry-f0mxakyp.js} +0 -0
- /package/dist/chunks/{instance-f6n9ztr4.js → model-retry-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{instance-faypxj3z.js → model-retry-faypxj3z.js} +0 -0
- /package/dist/chunks/{instance-fd410y7t.js → model-retry-fd410y7t.js} +0 -0
- /package/dist/chunks/{instance-fkpq3x5p.js → model-retry-fkpq3x5p.js} +0 -0
- /package/dist/chunks/{instance-g86h250q.js → model-retry-g86h250q.js} +0 -0
- /package/dist/chunks/{instance-gebd4c9n.js → model-retry-gebd4c9n.js} +0 -0
- /package/dist/chunks/{instance-gftt206x.js → model-retry-gftt206x.js} +0 -0
- /package/dist/chunks/{instance-hcxmzztb.js → model-retry-hcxmzztb.js} +0 -0
- /package/dist/chunks/{instance-hk9envan.js → model-retry-hk9envan.js} +0 -0
- /package/dist/chunks/{instance-j2ntwpah.js → model-retry-j2ntwpah.js} +0 -0
- /package/dist/chunks/{instance-jjkms2e6.js → model-retry-jjkms2e6.js} +0 -0
- /package/dist/chunks/{instance-jr7sbwjy.js → model-retry-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{instance-jwfs4k6c.js → model-retry-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{instance-jwr30sdr.js → model-retry-jwr30sdr.js} +0 -0
- /package/dist/chunks/{instance-jzg6c2d5.js → model-retry-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{instance-m18g726c.js → model-retry-m18g726c.js} +0 -0
- /package/dist/chunks/{instance-mp448xyj.js → model-retry-mp448xyj.js} +0 -0
- /package/dist/chunks/{instance-msx8hqn2.js → model-retry-msx8hqn2.js} +0 -0
- /package/dist/chunks/{instance-n05xt0ee.js → model-retry-n05xt0ee.js} +0 -0
- /package/dist/chunks/{instance-n3j8tn72.js → model-retry-n3j8tn72.js} +0 -0
- /package/dist/chunks/{instance-nh4v3znn.js → model-retry-nh4v3znn.js} +0 -0
- /package/dist/chunks/{instance-njntx4h6.js → model-retry-njntx4h6.js} +0 -0
- /package/dist/chunks/{instance-p71gwv9c.js → model-retry-p71gwv9c.js} +0 -0
- /package/dist/chunks/{instance-q3sfg36h.js → model-retry-q3sfg36h.js} +0 -0
- /package/dist/chunks/{instance-q74kybfr.js → model-retry-q74kybfr.js} +0 -0
- /package/dist/chunks/{instance-qb87gjwd.js → model-retry-qb87gjwd.js} +0 -0
- /package/dist/chunks/{instance-qfa1cgps.js → model-retry-qfa1cgps.js} +0 -0
- /package/dist/chunks/{instance-qg3g05ea.js → model-retry-qg3g05ea.js} +0 -0
- /package/dist/chunks/{instance-qrg20bc0.js → model-retry-qrg20bc0.js} +0 -0
- /package/dist/chunks/{instance-rcb2kzg1.js → model-retry-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{instance-sdp7kfr6.js → model-retry-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{instance-ssg3fenm.js → model-retry-ssg3fenm.js} +0 -0
- /package/dist/chunks/{instance-syrav9an.js → model-retry-syrav9an.js} +0 -0
- /package/dist/chunks/{instance-t03h4f5z.js → model-retry-t03h4f5z.js} +0 -0
- /package/dist/chunks/{instance-ty7weeps.js → model-retry-ty7weeps.js} +0 -0
- /package/dist/chunks/{instance-v2dnd5dt.js → model-retry-v2dnd5dt.js} +0 -0
- /package/dist/chunks/{instance-ve7vex1e.js → model-retry-ve7vex1e.js} +0 -0
- /package/dist/chunks/{instance-vtarvj67.js → model-retry-vtarvj67.js} +0 -0
- /package/dist/chunks/{instance-w803qqfp.js → model-retry-w803qqfp.js} +0 -0
- /package/dist/chunks/{instance-wc3fc9cn.js → model-retry-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{instance-wer8tq1h.js → model-retry-wer8tq1h.js} +0 -0
- /package/dist/chunks/{instance-wtztk69x.js → model-retry-wtztk69x.js} +0 -0
- /package/dist/chunks/{instance-x4th4bpe.js → model-retry-x4th4bpe.js} +0 -0
- /package/dist/chunks/{instance-y44na4kk.js → model-retry-y44na4kk.js} +0 -0
- /package/dist/chunks/{instance-y8f7s663.js → model-retry-y8f7s663.js} +0 -0
- /package/dist/chunks/{instance-ygaqb7jw.js → model-retry-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{instance-z5v4ffb3.js → model-retry-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{instance-z9919s4g.js → model-retry-z9919s4g.js} +0 -0
- /package/dist/chunks/{instance-zxpyjp51.js → model-retry-zxpyjp51.js} +0 -0
- /package/dist/chunks/{instance-zz5vv3aq.js → model-retry-zz5vv3aq.js} +0 -0
|
@@ -2,14 +2,13 @@ export * as CodeModeTool from "./tool.js";
|
|
|
2
2
|
import { CodeMode } from "@opencode/codemode";
|
|
3
3
|
import type { Context as ToolContext, Error, Info, Namespace as ToolNamespace, Result } from "@opencode/schema/tool";
|
|
4
4
|
import { Effect, Schema } from "effect";
|
|
5
|
-
import { Flag } from "../flag.js";
|
|
6
5
|
import { Permission } from "../permission.js";
|
|
7
6
|
import { CodeModeCatalog } from "./catalog.js";
|
|
8
7
|
export type Inventory = {
|
|
9
8
|
readonly tools: ReadonlyMap<string, Info>;
|
|
10
9
|
readonly namespaces?: ReadonlyMap<string, ToolNamespace>;
|
|
11
10
|
};
|
|
12
|
-
export declare const create: (inventory: Inventory, executeTool: (name: string, tool: Info, input: unknown, context: ToolContext) => Effect.Effect<Result, Error>, permission: Permission.Interface
|
|
11
|
+
export declare const create: (inventory: Inventory, executeTool: (name: string, tool: Info, input: unknown, context: ToolContext) => Effect.Effect<Result, Error>, permission: Permission.Interface) => {
|
|
13
12
|
name: string;
|
|
14
13
|
description: string;
|
|
15
14
|
input: Schema.Struct<{
|
|
@@ -67,7 +66,7 @@ export declare const catalog: (inventory: Inventory) => {
|
|
|
67
66
|
/**
|
|
68
67
|
* Runs one program over `inventory` alone with no model step and no `fetch`, binding `bindings` as outer globals.
|
|
69
68
|
*/
|
|
70
|
-
export declare const check: (inventory: Inventory, code: string, bindings: Readonly<Record<string, CodeMode.DataValue>>, limits: CodeMode.ExecutionLimits, executeTool: (name: string, tool: Info, input: unknown) => Effect.Effect<Result, Error
|
|
69
|
+
export declare const check: (inventory: Inventory, code: string, bindings: Readonly<Record<string, CodeMode.DataValue>>, limits: CodeMode.ExecutionLimits, executeTool: (name: string, tool: Info, input: unknown) => Effect.Effect<Result, Error>) => Effect.Effect<{
|
|
71
70
|
readonly ok: true;
|
|
72
71
|
readonly value: Schema.Json;
|
|
73
72
|
readonly warnings?: readonly {
|
package/dist/types/flag.d.ts
CHANGED
|
@@ -34,7 +34,7 @@ export declare function resolve(input: {
|
|
|
34
34
|
readonly entries: readonly Entry[];
|
|
35
35
|
readonly channel: string;
|
|
36
36
|
readonly overrides?: string;
|
|
37
|
-
}): Record<"artifacts" | "background_compaction" | "
|
|
37
|
+
}): Record<"artifacts" | "background_compaction" | "console_watches" | "mcp_events" | "media_blob" | "schedules" | "shell_timeout_background" | "todo", State>;
|
|
38
38
|
export declare const layer: Layer.Layer<Service, never, App.Service | Config.Service>;
|
|
39
39
|
export declare const testLayer: (entries?: Entry[], options?: {
|
|
40
40
|
readonly app?: Partial<App.Info>;
|
|
@@ -42,5 +42,5 @@ export declare const testLayer: (entries?: Entry[], options?: {
|
|
|
42
42
|
}) => Layer.Layer<App.Service | Config.Service | Service | Config.Test, never, never>;
|
|
43
43
|
export declare const node: import("@opencode/util/effect/layer-node").Provider<Service, never, import("@opencode/util/effect/layer-node").Tag<"location">>;
|
|
44
44
|
/** Every flag with its value and where it came from, read from the location's Config on each call. */
|
|
45
|
-
export declare const all: Effect.Effect<Record<"artifacts" | "background_compaction" | "
|
|
45
|
+
export declare const all: Effect.Effect<Record<"artifacts" | "background_compaction" | "console_watches" | "mcp_events" | "media_blob" | "schedules" | "shell_timeout_background" | "todo", State>, never, Service>;
|
|
46
46
|
export declare const enabled: (key: Key) => Effect.Effect<boolean, never, Service>;
|
package/dist/types/job/list.d.ts
CHANGED
|
@@ -8,6 +8,8 @@ export type Item = Job.Info;
|
|
|
8
8
|
export type Live = {
|
|
9
9
|
readonly info: Info;
|
|
10
10
|
readonly isBackgrounded: boolean;
|
|
11
|
+
readonly consumed?: boolean;
|
|
12
|
+
readonly settling?: boolean;
|
|
11
13
|
readonly recovery?: Recovery;
|
|
12
14
|
};
|
|
13
15
|
export declare function read<Entry extends Live>(db: Database.Interface["db"], jobs: SynchronizedRef.SynchronizedRef<Map<string, Entry>>): Effect.Effect<readonly Job.Info[]>;
|
package/dist/types/job.d.ts
CHANGED
|
@@ -43,6 +43,26 @@ declare const Background: Schema.Struct<{
|
|
|
43
43
|
}>;
|
|
44
44
|
export type Background = typeof Background.Type;
|
|
45
45
|
export type Status = Background["status"];
|
|
46
|
+
export type SubagentReportState = {
|
|
47
|
+
readonly mode: "background";
|
|
48
|
+
readonly notificationID: SessionMessage.ID;
|
|
49
|
+
readonly recovery: Extract<Recovery, {
|
|
50
|
+
kind: "subagent";
|
|
51
|
+
}>;
|
|
52
|
+
readonly startedAt: number;
|
|
53
|
+
} | {
|
|
54
|
+
readonly mode: "none";
|
|
55
|
+
};
|
|
56
|
+
export type SubagentOutboxReport = {
|
|
57
|
+
readonly notificationID: SessionMessage.ID;
|
|
58
|
+
readonly recovery: Extract<Recovery, {
|
|
59
|
+
kind: "subagent";
|
|
60
|
+
}>;
|
|
61
|
+
readonly status: Exclude<Status, "running">;
|
|
62
|
+
readonly output?: string;
|
|
63
|
+
readonly error?: string;
|
|
64
|
+
readonly startedAt?: number;
|
|
65
|
+
};
|
|
46
66
|
export type Info = {
|
|
47
67
|
id: string;
|
|
48
68
|
type: string;
|
|
@@ -62,6 +82,7 @@ export type StartInput = {
|
|
|
62
82
|
metadata?: Record<string, unknown>;
|
|
63
83
|
recovery?: Recovery;
|
|
64
84
|
notificationID?: SessionMessage.ID;
|
|
85
|
+
background?: boolean;
|
|
65
86
|
run: Effect.Effect<string, unknown>;
|
|
66
87
|
cancel?: Effect.Effect<void>;
|
|
67
88
|
};
|
|
@@ -101,6 +122,15 @@ export interface Interface {
|
|
|
101
122
|
readonly runningBackground: Effect.Effect<readonly Recovery[]>;
|
|
102
123
|
readonly backgroundJobs: Effect.Effect<readonly JobList.Item[]>;
|
|
103
124
|
readonly completeBackground: (notificationID: SessionMessage.ID) => Effect.Effect<void>;
|
|
125
|
+
/** Whether an explicit caller cancellation stopped this job (not shutdown teardown). */
|
|
126
|
+
readonly isCancelled: (id: string) => Effect.Effect<boolean>;
|
|
127
|
+
readonly currentGeneration: (id: string) => Effect.Effect<{
|
|
128
|
+
readonly generation: number;
|
|
129
|
+
readonly running: boolean;
|
|
130
|
+
} | undefined>;
|
|
131
|
+
readonly prepareSubagentReport: (id: string, boundGeneration?: number) => Effect.Effect<SubagentReportState>;
|
|
132
|
+
readonly recordSubagentReport: (report: SubagentOutboxReport) => Effect.Effect<void>;
|
|
133
|
+
readonly deleteBackgroundRow: (notificationID: SessionMessage.ID) => Effect.Effect<void>;
|
|
104
134
|
}
|
|
105
135
|
declare const Service_base: Context.ServiceClass<Service, "@opencode/Job", Interface>;
|
|
106
136
|
export declare class Service extends Service_base {
|
|
@@ -31,5 +31,5 @@ export declare const authorize: (input: {
|
|
|
31
31
|
instructions: string;
|
|
32
32
|
mode: "auto";
|
|
33
33
|
callback: Effect.Effect<import("@opencode/schema/credential").OAuth, Error, never>;
|
|
34
|
-
submit: (pasted: string) => Effect.Effect<
|
|
34
|
+
submit: (pasted: string) => Effect.Effect<void, Error, never>;
|
|
35
35
|
}, Error, import("effect/Scope").Scope | Credential.Service>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Deferred, Effect } from "effect";
|
|
2
|
+
/**
|
|
3
|
+
* Builds an automatic sign-in's `submit`: reads the redirect URL the user pasted with `pasted`, then settles the
|
|
4
|
+
* sign-in's pending `callback` as the browser's redirect would. `received` turns the redirect into that value.
|
|
5
|
+
*/
|
|
6
|
+
export declare const submit: <A>(input: {
|
|
7
|
+
state: string;
|
|
8
|
+
callback: Deferred.Deferred<A, Error>;
|
|
9
|
+
received: (code: string, params: URLSearchParams) => A;
|
|
10
|
+
}) => (text: string) => Effect.Effect<void, Error, never>;
|
|
11
|
+
/**
|
|
12
|
+
* Reads the redirect URL a user pasted when the browser could not reach this machine's callback server
|
|
13
|
+
* (SSH, a remote desktop, a container). It must carry the sign-in's `state`, the same check the browser's
|
|
14
|
+
* redirect passes. A failure here rejects only this paste, so the sign-in keeps waiting; an `error` the
|
|
15
|
+
* provider put in a valid redirect is returned, and ends the sign-in as it would in the browser.
|
|
16
|
+
*/
|
|
17
|
+
export declare const pasted: (text: string, state: string) => Effect.Effect<{
|
|
18
|
+
params: import("url").URLSearchParams;
|
|
19
|
+
error: string;
|
|
20
|
+
code?: undefined;
|
|
21
|
+
} | {
|
|
22
|
+
error?: undefined;
|
|
23
|
+
params: import("url").URLSearchParams;
|
|
24
|
+
code: string;
|
|
25
|
+
}, Error, never>;
|
|
26
|
+
export * as OauthRedirect from "./redirect.js";
|
|
@@ -6,8 +6,27 @@ import type { SessionSchema } from "./schema.js";
|
|
|
6
6
|
export type Lookup = {
|
|
7
7
|
readonly get: (sessionID: SessionSchema.ID) => Effect.Effect<{
|
|
8
8
|
readonly parentID?: SessionSchema.ID;
|
|
9
|
+
readonly agent?: string;
|
|
10
|
+
readonly title?: string;
|
|
9
11
|
} | undefined>;
|
|
10
12
|
};
|
|
13
|
+
export type OutstandingItem = {
|
|
14
|
+
readonly kind: "shell";
|
|
15
|
+
readonly sessionID: SessionSchema.ID;
|
|
16
|
+
readonly shellID: string;
|
|
17
|
+
readonly command: string;
|
|
18
|
+
} | {
|
|
19
|
+
readonly kind: "image";
|
|
20
|
+
readonly sessionID: SessionSchema.ID;
|
|
21
|
+
readonly model: string;
|
|
22
|
+
readonly path: string;
|
|
23
|
+
} | {
|
|
24
|
+
readonly kind: "subagent";
|
|
25
|
+
readonly sessionID: SessionSchema.ID;
|
|
26
|
+
readonly childSessionID: SessionSchema.ID;
|
|
27
|
+
readonly agent: string;
|
|
28
|
+
readonly description: string;
|
|
29
|
+
};
|
|
11
30
|
export type ListFilter = {
|
|
12
31
|
readonly sessionID?: SessionSchema.ID;
|
|
13
32
|
readonly kind?: Kind;
|
|
@@ -18,38 +37,14 @@ export type ListFilter = {
|
|
|
18
37
|
* Background jobs still running for a Session or any of its descendants. A child's own
|
|
19
38
|
* background shell counts even after the child reported to its parent: its notice wakes
|
|
20
39
|
* the child again, so the child's work is not finished.
|
|
40
|
+
*
|
|
41
|
+
* `active` adds executions that hold a claim right now, such as a subagent mid-turn
|
|
42
|
+
* whose Job record already settled. Only descendants are added, and a child already
|
|
43
|
+
* represented by a running background job is not repeated.
|
|
21
44
|
*/
|
|
22
|
-
export declare const outstanding: (jobs: Pick<Job.Interface, "runningBackground"
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
shellID: string;
|
|
26
|
-
command: string;
|
|
27
|
-
path?: undefined;
|
|
28
|
-
model?: undefined;
|
|
29
|
-
childSessionID?: undefined;
|
|
30
|
-
agent?: undefined;
|
|
31
|
-
description?: undefined;
|
|
32
|
-
} | {
|
|
33
|
-
shellID?: undefined;
|
|
34
|
-
command?: undefined;
|
|
35
|
-
kind: "image";
|
|
36
|
-
sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
37
|
-
path: string;
|
|
38
|
-
model: string;
|
|
39
|
-
childSessionID?: undefined;
|
|
40
|
-
agent?: undefined;
|
|
41
|
-
description?: undefined;
|
|
42
|
-
} | {
|
|
43
|
-
shellID?: undefined;
|
|
44
|
-
command?: undefined;
|
|
45
|
-
path?: undefined;
|
|
46
|
-
model?: undefined;
|
|
47
|
-
kind: "subagent";
|
|
48
|
-
sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
49
|
-
childSessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
50
|
-
agent: string;
|
|
51
|
-
description: string;
|
|
52
|
-
})[], never, never>;
|
|
45
|
+
export declare const outstanding: (jobs: Pick<Job.Interface, "runningBackground"> & {
|
|
46
|
+
readonly get?: Job.Interface["get"];
|
|
47
|
+
}, store: Lookup, sessionID: string & import("effect/Brand").Brand<"SessionID">, active?: ReadonlySet<string & import("effect/Brand").Brand<"SessionID">> | undefined) => Effect.Effect<OutstandingItem[], never, never>;
|
|
53
48
|
/** Active and unconsumed background jobs matching the requested Session, kind, status, and descendant scope. */
|
|
54
49
|
export declare const list: (jobs: Pick<Job.Interface, "backgroundJobs">, store: Lookup, filter?: ListFilter | undefined) => Effect.Effect<({
|
|
55
50
|
readonly id: string;
|
|
@@ -285,6 +285,7 @@ export declare const hydrate: (db: import("../database/drizzle.js").EffectSQLite
|
|
|
285
285
|
} | undefined;
|
|
286
286
|
readonly time: {
|
|
287
287
|
readonly created: number;
|
|
288
|
+
readonly firstToken?: number | undefined;
|
|
288
289
|
readonly streamed?: number | undefined;
|
|
289
290
|
readonly completed?: number | undefined;
|
|
290
291
|
};
|
|
@@ -712,6 +713,7 @@ export declare const hydrate: (db: import("../database/drizzle.js").EffectSQLite
|
|
|
712
713
|
} | undefined;
|
|
713
714
|
readonly time: {
|
|
714
715
|
readonly created: number;
|
|
716
|
+
readonly firstToken?: number | undefined;
|
|
715
717
|
readonly streamed?: number | undefined;
|
|
716
718
|
readonly completed?: number | undefined;
|
|
717
719
|
};
|
|
@@ -1172,6 +1174,7 @@ export declare const keepRefs: (db: import("../database/drizzle.js").EffectSQLit
|
|
|
1172
1174
|
} | undefined;
|
|
1173
1175
|
readonly time: {
|
|
1174
1176
|
readonly created: number;
|
|
1177
|
+
readonly firstToken?: number | undefined;
|
|
1175
1178
|
readonly streamed?: number | undefined;
|
|
1176
1179
|
readonly completed?: number | undefined;
|
|
1177
1180
|
};
|
|
@@ -1600,6 +1603,7 @@ export declare const keepRefs: (db: import("../database/drizzle.js").EffectSQLit
|
|
|
1600
1603
|
} | undefined;
|
|
1601
1604
|
readonly time: {
|
|
1602
1605
|
readonly created: number;
|
|
1606
|
+
readonly firstToken?: number | undefined;
|
|
1603
1607
|
readonly streamed?: number | undefined;
|
|
1604
1608
|
readonly completed?: number | undefined;
|
|
1605
1609
|
};
|
|
@@ -2337,6 +2341,7 @@ export declare const externalizeRow: (db: import("../database/drizzle.js").Effec
|
|
|
2337
2341
|
} | undefined;
|
|
2338
2342
|
readonly time: {
|
|
2339
2343
|
readonly created: number;
|
|
2344
|
+
readonly firstToken?: number | undefined;
|
|
2340
2345
|
readonly streamed?: number | undefined;
|
|
2341
2346
|
readonly completed?: number | undefined;
|
|
2342
2347
|
};
|
|
@@ -2756,6 +2761,7 @@ export declare const externalizeRow: (db: import("../database/drizzle.js").Effec
|
|
|
2756
2761
|
} | undefined;
|
|
2757
2762
|
readonly time: {
|
|
2758
2763
|
readonly created: number;
|
|
2764
|
+
readonly firstToken?: number | undefined;
|
|
2759
2765
|
readonly streamed?: number | undefined;
|
|
2760
2766
|
readonly completed?: number | undefined;
|
|
2761
2767
|
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export * as SubagentReport from "./subagent-report.js";
|
|
2
|
+
import { Effect } from "effect";
|
|
3
|
+
import type { Job } from "../../job.js";
|
|
4
|
+
import { SessionInbox } from "../inbox.js";
|
|
5
|
+
import { SessionMessage } from "../message.js";
|
|
6
|
+
import type { SessionSchema } from "../schema.js";
|
|
7
|
+
import type { SessionStore } from "../store.js";
|
|
8
|
+
export type Outcome = {
|
|
9
|
+
readonly type: "succeeded";
|
|
10
|
+
} | {
|
|
11
|
+
readonly type: "failed";
|
|
12
|
+
readonly error: {
|
|
13
|
+
readonly message: string;
|
|
14
|
+
};
|
|
15
|
+
} | {
|
|
16
|
+
readonly type: "interrupted";
|
|
17
|
+
readonly reason: "user" | "shutdown";
|
|
18
|
+
};
|
|
19
|
+
export type Period = {
|
|
20
|
+
readonly startedSeq: number;
|
|
21
|
+
readonly boundGeneration?: number;
|
|
22
|
+
};
|
|
23
|
+
export type Deps = {
|
|
24
|
+
readonly store: Pick<SessionStore.Interface, "get" | "lastAssistantAfter" | "release">;
|
|
25
|
+
readonly jobs: Job.Interface;
|
|
26
|
+
readonly inbox: Inbox;
|
|
27
|
+
readonly wake: (sessionID: SessionSchema.ID) => Effect.Effect<void>;
|
|
28
|
+
readonly draining: Effect.Effect<ReadonlySet<SessionSchema.ID>>;
|
|
29
|
+
};
|
|
30
|
+
/** Narrow inbox admission so delivery does not depend on the full lifecycle service shape. */
|
|
31
|
+
export type Inbox = {
|
|
32
|
+
readonly admit: (request: {
|
|
33
|
+
readonly id: SessionMessage.ID;
|
|
34
|
+
readonly sessionID: SessionSchema.ID;
|
|
35
|
+
readonly item: SessionInbox.Item;
|
|
36
|
+
}) => Effect.Effect<unknown, SessionInbox.LifecycleConflict>;
|
|
37
|
+
};
|
|
38
|
+
export declare const make: (deps: Deps) => {
|
|
39
|
+
started: (sessionID: SessionSchema.ID, period: Period) => void;
|
|
40
|
+
clear: (sessionID: SessionSchema.ID) => void;
|
|
41
|
+
prepare: (sessionID: string & import("effect/Brand").Brand<"SessionID">, outcome: Outcome) => Effect.Effect<{
|
|
42
|
+
commit: () => Effect.Effect<void, never, never>;
|
|
43
|
+
deliver: Effect.Effect<void, never, never>;
|
|
44
|
+
}, never, never>;
|
|
45
|
+
};
|
|
@@ -4,6 +4,7 @@ import { Bus } from "../bus.js";
|
|
|
4
4
|
import { Database } from "../database/database.js";
|
|
5
5
|
import { Job } from "../job.js";
|
|
6
6
|
import { Instance } from "../instance/service.js";
|
|
7
|
+
import { SessionInbox } from "./inbox.js";
|
|
7
8
|
import { SessionRunner } from "./runner/index.js";
|
|
8
9
|
import { SessionSchema } from "./schema.js";
|
|
9
10
|
import { SessionStore } from "./store.js";
|
|
@@ -47,7 +48,7 @@ export declare function terminal(exit: Exit.Exit<void, SessionRunner.RunError>,
|
|
|
47
48
|
error: import("@opencode/schema/session-error").Error;
|
|
48
49
|
};
|
|
49
50
|
/** Process-local execution: drains run in this process using the selected instance. */
|
|
50
|
-
export declare const layer: Layer.Layer<Service, never, Database.Service | SessionStore.Service | Job.Service | Instance.Service | Bus.Service>;
|
|
51
|
+
export declare const layer: Layer.Layer<Service, never, Database.Service | SessionStore.Service | Job.Service | Instance.Service | SessionInbox.Service | Bus.Service>;
|
|
51
52
|
export declare const node: import("@opencode/util/effect/layer-node").Provider<Service, never, import("@opencode/util/effect/layer-node").Tag<"global">>;
|
|
52
53
|
/** Low-level compatibility layer for callers that only need durable Session recording. */
|
|
53
54
|
export declare const noopLayer: Layer.Layer<Service, never, never>;
|
|
@@ -585,6 +585,7 @@ export declare const withParts: (db: import("../database/drizzle.js").EffectSQLi
|
|
|
585
585
|
} | undefined;
|
|
586
586
|
readonly time: {
|
|
587
587
|
readonly created: number;
|
|
588
|
+
readonly firstToken?: number | undefined;
|
|
588
589
|
readonly streamed?: number | undefined;
|
|
589
590
|
readonly completed?: number | undefined;
|
|
590
591
|
};
|
|
@@ -1012,6 +1013,7 @@ export declare const withParts: (db: import("../database/drizzle.js").EffectSQLi
|
|
|
1012
1013
|
} | undefined;
|
|
1013
1014
|
readonly time: {
|
|
1014
1015
|
readonly created: number;
|
|
1016
|
+
readonly firstToken?: number | undefined;
|
|
1015
1017
|
readonly streamed?: number | undefined;
|
|
1016
1018
|
readonly completed?: number | undefined;
|
|
1017
1019
|
};
|
|
@@ -1329,6 +1331,7 @@ export declare const withParts: (db: import("../database/drizzle.js").EffectSQLi
|
|
|
1329
1331
|
} | undefined;
|
|
1330
1332
|
time: {
|
|
1331
1333
|
readonly created: number;
|
|
1334
|
+
readonly firstToken?: number | undefined;
|
|
1332
1335
|
readonly streamed?: number | undefined;
|
|
1333
1336
|
readonly completed?: number | undefined;
|
|
1334
1337
|
};
|
|
@@ -1752,6 +1755,7 @@ export declare const withParts: (db: import("../database/drizzle.js").EffectSQLi
|
|
|
1752
1755
|
} | undefined;
|
|
1753
1756
|
readonly time: {
|
|
1754
1757
|
readonly created: number;
|
|
1758
|
+
readonly firstToken?: number | undefined;
|
|
1755
1759
|
readonly streamed?: number | undefined;
|
|
1756
1760
|
readonly completed?: number | undefined;
|
|
1757
1761
|
};
|
|
@@ -2325,6 +2329,7 @@ export declare const decodeMessageRowSync: (row: typeof SessionMessageTable.$inf
|
|
|
2325
2329
|
} | undefined;
|
|
2326
2330
|
readonly time: {
|
|
2327
2331
|
readonly created: import("effect/DateTime").Utc;
|
|
2332
|
+
readonly firstToken?: import("effect/DateTime").Utc | undefined;
|
|
2328
2333
|
readonly streamed?: import("effect/DateTime").Utc | undefined;
|
|
2329
2334
|
readonly completed?: import("effect/DateTime").Utc | undefined;
|
|
2330
2335
|
};
|
|
@@ -2729,6 +2734,7 @@ export declare const decodeMessageRow: (row: typeof SessionMessageTable.$inferSe
|
|
|
2729
2734
|
} | undefined;
|
|
2730
2735
|
readonly time: {
|
|
2731
2736
|
readonly created: import("effect/DateTime").Utc;
|
|
2737
|
+
readonly firstToken?: import("effect/DateTime").Utc | undefined;
|
|
2732
2738
|
readonly streamed?: import("effect/DateTime").Utc | undefined;
|
|
2733
2739
|
readonly completed?: import("effect/DateTime").Utc | undefined;
|
|
2734
2740
|
};
|
|
@@ -3092,6 +3098,7 @@ export declare const decodeMessageRows: (db: import("../database/drizzle.js").Ef
|
|
|
3092
3098
|
} | undefined;
|
|
3093
3099
|
readonly time: {
|
|
3094
3100
|
readonly created: number;
|
|
3101
|
+
readonly firstToken?: number | undefined;
|
|
3095
3102
|
readonly streamed?: number | undefined;
|
|
3096
3103
|
readonly completed?: number | undefined;
|
|
3097
3104
|
};
|
|
@@ -3563,6 +3570,7 @@ export declare const decodeMessageRows: (db: import("../database/drizzle.js").Ef
|
|
|
3563
3570
|
} | undefined;
|
|
3564
3571
|
readonly time: {
|
|
3565
3572
|
readonly created: import("effect/DateTime").Utc;
|
|
3573
|
+
readonly firstToken?: import("effect/DateTime").Utc | undefined;
|
|
3566
3574
|
readonly streamed?: import("effect/DateTime").Utc | undefined;
|
|
3567
3575
|
readonly completed?: import("effect/DateTime").Utc | undefined;
|
|
3568
3576
|
};
|
|
@@ -3926,6 +3934,7 @@ export declare const loadMessageRow: (db: import("../database/drizzle.js").Effec
|
|
|
3926
3934
|
} | undefined;
|
|
3927
3935
|
readonly time: {
|
|
3928
3936
|
readonly created: number;
|
|
3937
|
+
readonly firstToken?: number | undefined;
|
|
3929
3938
|
readonly streamed?: number | undefined;
|
|
3930
3939
|
readonly completed?: number | undefined;
|
|
3931
3940
|
};
|
|
@@ -4397,6 +4406,7 @@ export declare const loadMessageRow: (db: import("../database/drizzle.js").Effec
|
|
|
4397
4406
|
} | undefined;
|
|
4398
4407
|
readonly time: {
|
|
4399
4408
|
readonly created: import("effect/DateTime").Utc;
|
|
4409
|
+
readonly firstToken?: import("effect/DateTime").Utc | undefined;
|
|
4400
4410
|
readonly streamed?: import("effect/DateTime").Utc | undefined;
|
|
4401
4411
|
readonly completed?: import("effect/DateTime").Utc | undefined;
|
|
4402
4412
|
};
|
|
@@ -4760,6 +4770,7 @@ export declare const decodeMessageRowsWithRefs: (db: import("../database/drizzle
|
|
|
4760
4770
|
} | undefined;
|
|
4761
4771
|
readonly time: {
|
|
4762
4772
|
readonly created: number;
|
|
4773
|
+
readonly firstToken?: number | undefined;
|
|
4763
4774
|
readonly streamed?: number | undefined;
|
|
4764
4775
|
readonly completed?: number | undefined;
|
|
4765
4776
|
};
|
|
@@ -5250,6 +5261,7 @@ export declare const decodeMessageRowsWithRefs: (db: import("../database/drizzle
|
|
|
5250
5261
|
} | undefined;
|
|
5251
5262
|
readonly time: {
|
|
5252
5263
|
readonly created: import("effect/DateTime").Utc;
|
|
5264
|
+
readonly firstToken?: import("effect/DateTime").Utc | undefined;
|
|
5253
5265
|
readonly streamed?: import("effect/DateTime").Utc | undefined;
|
|
5254
5266
|
readonly completed?: import("effect/DateTime").Utc | undefined;
|
|
5255
5267
|
};
|
|
@@ -5679,6 +5691,7 @@ export declare const synthetics: (db: import("../database/drizzle.js").EffectSQL
|
|
|
5679
5691
|
} | undefined;
|
|
5680
5692
|
readonly time: {
|
|
5681
5693
|
readonly created: import("effect/DateTime").Utc;
|
|
5694
|
+
readonly firstToken?: import("effect/DateTime").Utc | undefined;
|
|
5682
5695
|
readonly streamed?: import("effect/DateTime").Utc | undefined;
|
|
5683
5696
|
readonly completed?: import("effect/DateTime").Utc | undefined;
|
|
5684
5697
|
};
|
|
@@ -6089,6 +6102,7 @@ export declare const incompleteAssistants: (db: import("../database/drizzle.js")
|
|
|
6089
6102
|
} | undefined;
|
|
6090
6103
|
readonly time: {
|
|
6091
6104
|
readonly created: import("effect/DateTime").Utc;
|
|
6105
|
+
readonly firstToken?: import("effect/DateTime").Utc | undefined;
|
|
6092
6106
|
readonly streamed?: import("effect/DateTime").Utc | undefined;
|
|
6093
6107
|
readonly completed?: import("effect/DateTime").Utc | undefined;
|
|
6094
6108
|
};
|
|
@@ -5,6 +5,8 @@ import type { Promotable } from "./inbox.js";
|
|
|
5
5
|
export interface Coordinator<Key, E, Reason = never> {
|
|
6
6
|
/** Snapshots keys with an execution owned by this coordinator. */
|
|
7
7
|
readonly active: Effect.Effect<ReadonlySet<Key>>;
|
|
8
|
+
/** Snapshots keys genuinely draining: owned and not stopping. Settlement windows are excluded. */
|
|
9
|
+
readonly draining: Effect.Effect<ReadonlySet<Key>>;
|
|
8
10
|
/** Checks ownership for one key, including cleanup and terminal settlement. */
|
|
9
11
|
readonly isActive: (key: Key) => Effect.Effect<boolean>;
|
|
10
12
|
/** Starts an execution while idle, or joins the active execution and returns its exit. */
|
|
@@ -82,6 +82,15 @@ export interface Interface {
|
|
|
82
82
|
readonly list: (input?: ListInput) => Effect.Effect<Session.Info[]>;
|
|
83
83
|
readonly messages: (input: MessagesInput) => Effect.Effect<SessionMessage.Info[], MessageDecodeError>;
|
|
84
84
|
readonly context: (sessionID: Session.ID) => Effect.Effect<SessionMessage.Info[], MessageDecodeError>;
|
|
85
|
+
/**
|
|
86
|
+
* The newest completed, error-free assistant message above the sequence
|
|
87
|
+
* bound. Reads newest-first in pages so a long run of incomplete steps does
|
|
88
|
+
* not decode the whole history.
|
|
89
|
+
*/
|
|
90
|
+
readonly lastAssistantAfter: (input: {
|
|
91
|
+
readonly sessionID: Session.ID;
|
|
92
|
+
readonly afterSeq?: number;
|
|
93
|
+
}) => Effect.Effect<SessionMessage.Assistant | undefined, MessageDecodeError>;
|
|
85
94
|
readonly message: (messageID: SessionMessage.ID) => Effect.Effect<{
|
|
86
95
|
readonly sessionID: Session.ID;
|
|
87
96
|
readonly message: SessionMessage.Info;
|
|
@@ -1,13 +1,25 @@
|
|
|
1
1
|
export * as SubagentCompletion from "./subagent-completion.js";
|
|
2
2
|
import { Effect } from "effect";
|
|
3
3
|
import type { Job } from "../job.js";
|
|
4
|
-
import type {
|
|
4
|
+
import type { SessionBackground } from "./background.js";
|
|
5
5
|
import type { SessionMessage } from "./message.js";
|
|
6
|
+
import type { SessionSchema } from "./schema.js";
|
|
6
7
|
export declare const NO_TEXT = "Subagent completed without a text response.";
|
|
8
|
+
export type RunningBackgroundItem = SessionBackground.OutstandingItem;
|
|
9
|
+
/** A Session handle narrow enough for both Session.Service and SessionExecution to deliver a report. */
|
|
10
|
+
export interface SyntheticSession<E = never> {
|
|
11
|
+
readonly synthetic: (input: {
|
|
12
|
+
readonly id?: SessionMessage.ID;
|
|
13
|
+
readonly sessionID: SessionSchema.ID;
|
|
14
|
+
readonly text: string;
|
|
15
|
+
readonly description?: string;
|
|
16
|
+
readonly metadata?: SessionSchema.Metadata;
|
|
17
|
+
}) => Effect.Effect<unknown, E>;
|
|
18
|
+
}
|
|
7
19
|
export declare function text(message: SessionMessage.Info | undefined): string;
|
|
8
|
-
export declare
|
|
20
|
+
export declare function formatBody(body: string, childSessionID: SessionSchema.ID, background?: ReadonlyArray<RunningBackgroundItem>): string;
|
|
21
|
+
export declare const deliver: <E>(sessions: SyntheticSession<E>, jobs: Pick<Job.Interface, "completeBackground">, input: Pick<Job.Info, "error" | "notificationID" | "output" | "status"> & {
|
|
9
22
|
recovery: Extract<Job.Recovery, {
|
|
10
23
|
kind: "subagent";
|
|
11
24
|
}>;
|
|
12
|
-
|
|
13
|
-
}) => Effect.Effect<void, Session.NotFoundError | Session.SyntheticConflictError, never>;
|
|
25
|
+
}) => Effect.Effect<void, E, never>;
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
export * as SubagentJob from "./subagent-job.js";
|
|
2
|
-
import { Context, Effect } from "effect";
|
|
2
|
+
import { Context, Effect, Layer } from "effect";
|
|
3
3
|
import { Node } from "@opencode/util/effect/app-node";
|
|
4
4
|
import type { LayerNode } from "@opencode/util/effect/layer-node";
|
|
5
5
|
import { Job } from "../job.js";
|
|
6
|
+
import { SessionExecution } from "./execution.js";
|
|
6
7
|
type Recovery = Extract<Job.Recovery, {
|
|
7
8
|
kind: "subagent";
|
|
8
9
|
}>;
|
|
9
10
|
export interface Interface {
|
|
10
|
-
start: (recovery: Recovery) => Effect.Effect<Job.Info>;
|
|
11
|
-
background: (recovery: Recovery) => Effect.Effect<void>;
|
|
12
|
-
notify: (recovery: Recovery, startedAt: number) => Effect.Effect<void>;
|
|
11
|
+
readonly start: (recovery: Recovery) => Effect.Effect<Job.Info>;
|
|
13
12
|
}
|
|
14
13
|
declare const Service_base: Context.ServiceClass<Service, "@opencode/SubagentJob", Interface>;
|
|
15
14
|
export declare class Service extends Service_base {
|
|
16
15
|
}
|
|
16
|
+
export declare function start(jobs: Job.Interface, execution: SessionExecution.Interface, recovery: Recovery, notificationID?: Job.Background["notificationID"]): Effect.Effect<Job.Info, never, never>;
|
|
17
|
+
export declare const layer: Layer.Layer<Service, never, Job.Service | SessionExecution.Service>;
|
|
17
18
|
export declare const node: LayerNode.Provider<Service, never, typeof Node.tags.values.global>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export * as SubagentMetadata from "./subagent-metadata.js";
|
|
2
|
+
import type { SessionSchema } from "./schema.js";
|
|
3
|
+
/** Per-link switch for reporting a subagent's idle transition to its parent. */
|
|
4
|
+
export declare const KEY = "subagent.notify";
|
|
5
|
+
/** Absence means loud: only an explicit `false` silences the link. */
|
|
6
|
+
export declare function notify(metadata: SessionSchema.Metadata | undefined): boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Strips the per-link switch when metadata moves to a child or fork. Host
|
|
9
|
+
* annotations belong to the family, but a silent link must not silence the
|
|
10
|
+
* sessions created beneath it.
|
|
11
|
+
*/
|
|
12
|
+
export declare function inherit(metadata: SessionSchema.Metadata | undefined): SessionSchema.Metadata | undefined;
|
|
13
|
+
/** Writes the switch, keeping default-loud sessions free of redundant keys. */
|
|
14
|
+
export declare function apply(metadata: SessionSchema.Metadata | undefined, value: boolean): SessionSchema.Metadata | undefined;
|
|
15
|
+
/** Metadata for a child created from `metadata` with the requested link state. */
|
|
16
|
+
export declare function withNotify(metadata: SessionSchema.Metadata | undefined, value: boolean): SessionSchema.Metadata | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Metadata to persist with `sessions.setMetadata` on an existing session.
|
|
19
|
+
* `undefined` means the requested state already holds, so the caller can skip
|
|
20
|
+
* the write; `{}` clears the last key.
|
|
21
|
+
*/
|
|
22
|
+
export declare function update(metadata: SessionSchema.Metadata | undefined, value: boolean): SessionSchema.Metadata | undefined;
|
|
@@ -744,6 +744,7 @@ export declare const Data: Schema.Struct<{
|
|
|
744
744
|
}>>, never, never>;
|
|
745
745
|
readonly time: Schema.Struct<{
|
|
746
746
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
747
|
+
readonly firstToken: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
747
748
|
readonly streamed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
748
749
|
readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
749
750
|
}>;
|
|
@@ -41,11 +41,10 @@ export declare const backgroundToolResult: (info: ShellSchema.Info) => {
|
|
|
41
41
|
export declare const reattach: (input: {
|
|
42
42
|
readonly shell: Shell.Interface;
|
|
43
43
|
readonly jobs: Job.Interface;
|
|
44
|
-
readonly sessions: Session.Interface
|
|
44
|
+
readonly sessions: Pick<Session.Interface, "synthetic">;
|
|
45
45
|
readonly sessionID: SessionSchema.ID;
|
|
46
46
|
readonly info: ShellSchema.Info;
|
|
47
47
|
readonly notificationID?: SessionMessage.ID;
|
|
48
|
-
readonly resume?: () => false | undefined;
|
|
49
48
|
}) => Effect.Effect<void, never, never>;
|
|
50
49
|
export declare const Plugin: {
|
|
51
50
|
id: string;
|
|
@@ -17,13 +17,13 @@ export declare const Input: Schema.Struct<{
|
|
|
17
17
|
readonly sessionID: Schema.optionalKey<Schema.brand<Schema.String, "SessionID"> & {
|
|
18
18
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
19
19
|
}>;
|
|
20
|
-
readonly
|
|
20
|
+
readonly notify: Schema.optionalKey<Schema.Boolean>;
|
|
21
21
|
}>;
|
|
22
22
|
export declare const Output: Schema.Struct<{
|
|
23
23
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
24
24
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
25
25
|
};
|
|
26
|
-
readonly status: Schema.
|
|
26
|
+
readonly status: Schema.Literal<"running">;
|
|
27
27
|
readonly output: Schema.String;
|
|
28
28
|
}>;
|
|
29
29
|
export declare const description: string;
|