@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
|
@@ -1,56 +1,61 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service94,
|
|
3
3
|
node96
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./model-retry-1abx79xn.js";
|
|
5
5
|
import {
|
|
6
6
|
Service93,
|
|
7
7
|
node95
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./model-retry-4dk3ggh9.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
10
|
+
Service76,
|
|
11
|
+
node78
|
|
12
|
+
} from "./model-retry-aq6k3cf3.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
14
|
+
Service43,
|
|
15
|
+
node45
|
|
16
|
+
} from "./model-retry-p9jvgf3w.js";
|
|
17
17
|
import {
|
|
18
18
|
SessionEvent2
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./model-retry-ec1grn59.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
Service42,
|
|
22
|
+
node44,
|
|
23
|
+
nextPromotable2
|
|
24
|
+
} from "./model-retry-6e4ngh43.js";
|
|
25
|
+
import {
|
|
26
|
+
make28
|
|
27
|
+
} from "./model-retry-ff9rbk43.js";
|
|
28
|
+
import {
|
|
29
|
+
make29
|
|
30
|
+
} from "./model-retry-2prt43t7.js";
|
|
23
31
|
import {
|
|
24
32
|
DrainResult2,
|
|
25
|
-
|
|
26
|
-
} from "./
|
|
33
|
+
Service41
|
|
34
|
+
} from "./model-retry-jns4gqy7.js";
|
|
27
35
|
import {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
} from "./
|
|
36
|
+
Service65,
|
|
37
|
+
node67
|
|
38
|
+
} from "./model-retry-m9a9fe6f.js";
|
|
31
39
|
import {
|
|
32
40
|
toSessionError2
|
|
33
|
-
} from "./
|
|
34
|
-
import {
|
|
35
|
-
nextPromotable2
|
|
36
|
-
} from "./instance-n5jpthfj.js";
|
|
41
|
+
} from "./model-retry-xg7gtsp9.js";
|
|
37
42
|
import {
|
|
38
43
|
__export
|
|
39
|
-
} from "./
|
|
44
|
+
} from "./model-retry-9rqn6x4v.js";
|
|
40
45
|
|
|
41
46
|
// src/session/execution.ts
|
|
42
|
-
var
|
|
43
|
-
__export(
|
|
44
|
-
Service: () =>
|
|
45
|
-
SessionExecution: () =>
|
|
46
|
-
layer: () =>
|
|
47
|
-
node: () =>
|
|
48
|
-
noopLayer: () =>
|
|
47
|
+
var exports_execution = {};
|
|
48
|
+
__export(exports_execution, {
|
|
49
|
+
Service: () => Service40,
|
|
50
|
+
SessionExecution: () => exports_execution,
|
|
51
|
+
layer: () => layer18,
|
|
52
|
+
node: () => node43,
|
|
53
|
+
noopLayer: () => noopLayer2,
|
|
49
54
|
terminal: () => terminal2
|
|
50
55
|
});
|
|
51
56
|
import { Cause, Context, Effect, Exit, Layer } from "effect";
|
|
52
57
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
53
|
-
class
|
|
58
|
+
class Service40 extends Context.Service()("@opencode/SessionExecution") {
|
|
54
59
|
}
|
|
55
60
|
function terminal2(exit, reason) {
|
|
56
61
|
if (Exit.isSuccess(exit))
|
|
@@ -59,18 +64,24 @@ function terminal2(exit, reason) {
|
|
|
59
64
|
return { type: "interrupted", reason: reason ?? "shutdown" };
|
|
60
65
|
return { type: "failed", error: toSessionError2(Cause.squash(exit.cause)) };
|
|
61
66
|
}
|
|
62
|
-
var
|
|
63
|
-
const store = yield*
|
|
64
|
-
const instances = yield*
|
|
67
|
+
var layer18 = Layer.effect(Service40, Effect.gen(function* () {
|
|
68
|
+
const store = yield* Service65;
|
|
69
|
+
const instances = yield* Service43;
|
|
65
70
|
const bus = yield* Service93;
|
|
66
|
-
const jobs = yield*
|
|
71
|
+
const jobs = yield* Service76;
|
|
72
|
+
const inbox = yield* Service42;
|
|
67
73
|
const db = (yield* Service94).db;
|
|
68
74
|
const reportLifecycle = (sessionID, effect) => effect.pipe(Effect.tapCause((cause) => Cause.hasInterruptsOnly(cause) ? Effect.void : Effect.logError("Failed to publish Session execution lifecycle", cause).pipe(Effect.annotateLogs({ sessionID }))), Effect.asVoid);
|
|
69
75
|
const claimOnCommit = (sessionID) => ({
|
|
70
76
|
commit: () => store.claim(sessionID)
|
|
71
77
|
});
|
|
72
|
-
const
|
|
73
|
-
|
|
78
|
+
const holder = {};
|
|
79
|
+
const subagentReport = make28({
|
|
80
|
+
store,
|
|
81
|
+
jobs,
|
|
82
|
+
inbox,
|
|
83
|
+
wake: (sessionID) => Effect.suspend(() => holder.coordinator ? holder.coordinator.wake(sessionID) : Effect.void),
|
|
84
|
+
draining: Effect.suspend(() => holder.coordinator ? holder.coordinator.draining : Effect.succeed(new Set))
|
|
74
85
|
});
|
|
75
86
|
let interruption = () => {
|
|
76
87
|
return;
|
|
@@ -79,7 +90,7 @@ var layer17 = Layer.effect(Service46, Effect.gen(function* () {
|
|
|
79
90
|
const session = yield* store.get(sessionID);
|
|
80
91
|
if (!session)
|
|
81
92
|
return yield* Effect.die(new Error(`Session not found: ${sessionID}`));
|
|
82
|
-
const result = yield*
|
|
93
|
+
const result = yield* Service41.use((runner) => runner.drain({
|
|
83
94
|
sessionID,
|
|
84
95
|
force,
|
|
85
96
|
continuation,
|
|
@@ -93,29 +104,34 @@ var layer17 = Layer.effect(Service46, Effect.gen(function* () {
|
|
|
93
104
|
Reloaded: (result) => drain(sessionID, result.force, result.continuation, promotable, result.stepped)
|
|
94
105
|
});
|
|
95
106
|
});
|
|
96
|
-
const coordinator = yield*
|
|
97
|
-
started: (sessionID) => reportLifecycle(sessionID,
|
|
107
|
+
const coordinator = yield* make29({
|
|
108
|
+
started: (sessionID) => reportLifecycle(sessionID, Effect.gen(function* () {
|
|
109
|
+
const before = yield* jobs.currentGeneration(sessionID);
|
|
110
|
+
const event = yield* bus.publish(SessionEvent2.Execution.Started, { sessionID }, claimOnCommit(sessionID));
|
|
111
|
+
const bound = before?.running ? before : yield* jobs.currentGeneration(sessionID);
|
|
112
|
+
subagentReport.started(sessionID, {
|
|
113
|
+
startedSeq: event.durable.seq,
|
|
114
|
+
boundGeneration: bound?.running ? bound.generation : undefined
|
|
115
|
+
});
|
|
116
|
+
})),
|
|
98
117
|
drain: (sessionID, force, promotable) => drain(sessionID, force, undefined, promotable),
|
|
99
118
|
settled: (sessionID, exit, reason) => reportLifecycle(sessionID, Effect.gen(function* () {
|
|
100
119
|
const outcome = terminal2(exit, reason);
|
|
101
|
-
if (outcome.type === "
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
}
|
|
105
|
-
if (outcome.type === "interrupted") {
|
|
106
|
-
if (outcome.reason !== "shutdown")
|
|
107
|
-
yield* jobs.cancel(sessionID);
|
|
108
|
-
yield* bus.publish(SessionEvent2.Execution.Interrupted, { sessionID, reason: outcome.reason }, outcome.reason === "shutdown" ? undefined : releaseOnCommit(sessionID));
|
|
120
|
+
if (outcome.type === "interrupted" && outcome.reason === "shutdown") {
|
|
121
|
+
subagentReport.clear(sessionID);
|
|
122
|
+
yield* bus.publish(SessionEvent2.Execution.Interrupted, { sessionID, reason: "shutdown" });
|
|
109
123
|
return;
|
|
110
124
|
}
|
|
111
|
-
yield*
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
125
|
+
const settlement = yield* subagentReport.prepare(sessionID, outcome);
|
|
126
|
+
if (outcome.type === "interrupted")
|
|
127
|
+
yield* jobs.cancel(sessionID);
|
|
128
|
+
yield* publishTerminal(bus, sessionID, outcome, settlement.commit);
|
|
129
|
+
yield* settlement.deliver.pipe(Effect.ignoreCause({ log: "Error", message: "Subagent report delivery failed" }));
|
|
115
130
|
}))
|
|
116
131
|
});
|
|
132
|
+
holder.coordinator = coordinator;
|
|
117
133
|
interruption = coordinator.interruption;
|
|
118
|
-
return
|
|
134
|
+
return Service40.of({
|
|
119
135
|
active: coordinator.active,
|
|
120
136
|
isActive: coordinator.isActive,
|
|
121
137
|
interrupt: (sessionID, options) => Effect.gen(function* () {
|
|
@@ -134,12 +150,20 @@ var layer17 = Layer.effect(Service46, Effect.gen(function* () {
|
|
|
134
150
|
awaitIdle: coordinator.awaitIdle
|
|
135
151
|
});
|
|
136
152
|
}));
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
153
|
+
function publishTerminal(bus, sessionID, outcome, commit) {
|
|
154
|
+
if (outcome.type === "succeeded")
|
|
155
|
+
return bus.publish(SessionEvent2.Execution.Succeeded, { sessionID }, { commit });
|
|
156
|
+
if (outcome.type === "interrupted") {
|
|
157
|
+
return bus.publish(SessionEvent2.Execution.Interrupted, { sessionID, reason: outcome.reason }, { commit });
|
|
158
|
+
}
|
|
159
|
+
return bus.publish(SessionEvent2.Execution.Failed, { sessionID, error: outcome.error }, { commit });
|
|
160
|
+
}
|
|
161
|
+
var node43 = makeGlobalNode({
|
|
162
|
+
service: Service40,
|
|
163
|
+
layer: layer18,
|
|
164
|
+
deps: [node67, node45, node95, node96, node78, node44]
|
|
141
165
|
});
|
|
142
|
-
var
|
|
166
|
+
var noopLayer2 = Layer.succeed(Service40, Service40.of({
|
|
143
167
|
active: Effect.succeed(new Set),
|
|
144
168
|
isActive: () => Effect.succeed(false),
|
|
145
169
|
resume: () => Effect.void,
|
|
@@ -148,4 +172,4 @@ var noopLayer3 = Layer.succeed(Service46, Service46.of({
|
|
|
148
172
|
awaitIdle: () => Effect.void
|
|
149
173
|
}));
|
|
150
174
|
|
|
151
|
-
export {
|
|
175
|
+
export { Service40, terminal2, layer18, node43, noopLayer2, exports_execution };
|
|
@@ -1,33 +1,46 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service94,
|
|
3
3
|
node96
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./model-retry-1abx79xn.js";
|
|
5
5
|
import {
|
|
6
6
|
RecoverySchema2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./model-retry-baefqw34.js";
|
|
8
8
|
import {
|
|
9
9
|
JobTable2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./model-retry-kzczzf4v.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
} from "./
|
|
12
|
+
read5
|
|
13
|
+
} from "./model-retry-denh2jb2.js";
|
|
14
14
|
import {
|
|
15
15
|
SessionMessage2
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./model-retry-gftt206x.js";
|
|
17
17
|
import {
|
|
18
18
|
__export
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./model-retry-9rqn6x4v.js";
|
|
20
20
|
|
|
21
21
|
// src/job.ts
|
|
22
22
|
var exports_job = {};
|
|
23
23
|
__export(exports_job, {
|
|
24
24
|
Job: () => exports_job,
|
|
25
|
-
Service: () =>
|
|
26
|
-
make: () =>
|
|
27
|
-
node: () =>
|
|
25
|
+
Service: () => Service76,
|
|
26
|
+
make: () => make35,
|
|
27
|
+
node: () => node78
|
|
28
28
|
});
|
|
29
29
|
import { asc, eq, or } from "drizzle-orm";
|
|
30
|
-
import {
|
|
30
|
+
import {
|
|
31
|
+
Array,
|
|
32
|
+
Cause,
|
|
33
|
+
Clock,
|
|
34
|
+
Context,
|
|
35
|
+
Deferred,
|
|
36
|
+
Effect,
|
|
37
|
+
Exit,
|
|
38
|
+
Layer,
|
|
39
|
+
Ref,
|
|
40
|
+
Schema,
|
|
41
|
+
Scope,
|
|
42
|
+
SynchronizedRef
|
|
43
|
+
} from "effect";
|
|
31
44
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
32
45
|
var Background = Schema.Struct({
|
|
33
46
|
id: Schema.String,
|
|
@@ -40,7 +53,7 @@ var Background = Schema.Struct({
|
|
|
40
53
|
var decodeBackground = Schema.decodeUnknownResult(Background);
|
|
41
54
|
var COMPLETED_LIMIT = 25;
|
|
42
55
|
|
|
43
|
-
class
|
|
56
|
+
class Service76 extends Context.Service()("@opencode/Job") {
|
|
44
57
|
}
|
|
45
58
|
function snapshot(job) {
|
|
46
59
|
return {
|
|
@@ -98,10 +111,11 @@ function decrementSession(input, sessionID) {
|
|
|
98
111
|
next.set(sessionID, count - 1);
|
|
99
112
|
return next;
|
|
100
113
|
}
|
|
101
|
-
var
|
|
114
|
+
var make35 = Effect.gen(function* () {
|
|
102
115
|
const db = (yield* Service94).db;
|
|
103
116
|
const state = {
|
|
104
117
|
jobs: yield* SynchronizedRef.make(new Map),
|
|
118
|
+
generations: yield* Ref.make(0),
|
|
105
119
|
scope: yield* Scope.Scope
|
|
106
120
|
};
|
|
107
121
|
const consume = (id, generation) => SynchronizedRef.update(state.jobs, (jobs) => {
|
|
@@ -145,31 +159,38 @@ var make29 = Effect.gen(function* () {
|
|
|
145
159
|
}
|
|
146
160
|
}).run().pipe(Effect.orDie);
|
|
147
161
|
});
|
|
148
|
-
const settle = Effect.fnUntraced(function* (id,
|
|
162
|
+
const settle = Effect.fnUntraced(function* (id, active, exit) {
|
|
149
163
|
const completed_at = yield* Clock.currentTimeMillis;
|
|
164
|
+
const status = Exit.isSuccess(exit) ? "completed" : Cause.hasInterruptsOnly(exit.cause) ? "cancelled" : "error";
|
|
165
|
+
const output = Exit.isSuccess(exit) ? exit.value : undefined;
|
|
166
|
+
const error = Exit.isFailure(exit) ? errorText(exit.cause) : undefined;
|
|
167
|
+
const terminal = (job) => ({
|
|
168
|
+
...job,
|
|
169
|
+
blockingSessions: new Map,
|
|
170
|
+
info: {
|
|
171
|
+
...job.info,
|
|
172
|
+
status,
|
|
173
|
+
completed_at,
|
|
174
|
+
...output !== undefined ? { output } : {},
|
|
175
|
+
...error !== undefined ? { error } : {}
|
|
176
|
+
}
|
|
177
|
+
});
|
|
150
178
|
const result = yield* SynchronizedRef.modifyEffect(state.jobs, Effect.fnUntraced(function* (jobs) {
|
|
151
179
|
const job = jobs.get(id);
|
|
152
|
-
if (
|
|
153
|
-
return [{}, jobs];
|
|
154
|
-
if (job.scope !== scope)
|
|
180
|
+
if (status === "cancelled" && active.scope.state._tag === "Closed")
|
|
155
181
|
return [{}, jobs];
|
|
182
|
+
if (!job || job.scope !== active.scope) {
|
|
183
|
+
return [{ info: snapshot(terminal(active)), done: active.done, scope: active.scope }, jobs];
|
|
184
|
+
}
|
|
156
185
|
if (job.info.status !== "running")
|
|
157
186
|
return [{ info: snapshot(job) }, jobs];
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
...job.info,
|
|
166
|
-
status,
|
|
167
|
-
completed_at,
|
|
168
|
-
...Exit.isSuccess(exit) ? { output: exit.value } : {},
|
|
169
|
-
...Exit.isFailure(exit) ? { error: errorText(exit.cause) } : {}
|
|
170
|
-
}
|
|
171
|
-
};
|
|
172
|
-
if (status !== "cancelled")
|
|
187
|
+
const next = terminal(job);
|
|
188
|
+
if (job.consumed) {
|
|
189
|
+
const remaining = new Map(jobs);
|
|
190
|
+
remaining.delete(id);
|
|
191
|
+
return [{ info: snapshot(next), done: job.done, scope: job.scope }, remaining];
|
|
192
|
+
}
|
|
193
|
+
if (status !== "cancelled" && !job.settling && !job.consumed)
|
|
173
194
|
yield* persistBackground(next);
|
|
174
195
|
return [{ info: snapshot(next), done: job.done, scope: job.scope }, new Map(jobs).set(id, next)];
|
|
175
196
|
}));
|
|
@@ -193,11 +214,12 @@ var make29 = Effect.gen(function* () {
|
|
|
193
214
|
const backgrounded = yield* Deferred.make();
|
|
194
215
|
const result = yield* SynchronizedRef.modifyEffect(state.jobs, Effect.fnUntraced(function* (jobs) {
|
|
195
216
|
const existing = jobs.get(input.id);
|
|
196
|
-
if (existing?.info.status === "running") {
|
|
217
|
+
if (existing?.info.status === "running" && !existing.settling) {
|
|
197
218
|
return [{ info: snapshot(existing) }, jobs];
|
|
198
219
|
}
|
|
199
220
|
const scope = yield* Scope.fork(state.scope, "parallel");
|
|
200
221
|
yield* Scope.addFinalizer(scope, Deferred.interrupt(done));
|
|
222
|
+
const notificationID = input.notificationID ?? (input.background && input.recovery ? SessionMessage2.ID.create() : undefined);
|
|
201
223
|
const job = {
|
|
202
224
|
info: {
|
|
203
225
|
id: input.id,
|
|
@@ -206,21 +228,27 @@ var make29 = Effect.gen(function* () {
|
|
|
206
228
|
status: "running",
|
|
207
229
|
started_at,
|
|
208
230
|
metadata: input.metadata,
|
|
209
|
-
...
|
|
231
|
+
...notificationID ? { notificationID } : {}
|
|
210
232
|
},
|
|
211
233
|
done,
|
|
212
234
|
backgrounded,
|
|
213
235
|
scope,
|
|
236
|
+
generation: yield* Ref.updateAndGet(state.generations, (generation) => generation + 1),
|
|
214
237
|
blockingSessions: new Map,
|
|
215
|
-
isBackgrounded:
|
|
238
|
+
isBackgrounded: input.background === true,
|
|
239
|
+
settling: false,
|
|
216
240
|
consumed: false,
|
|
241
|
+
reported: false,
|
|
242
|
+
cancelledByCaller: false,
|
|
217
243
|
recovery: input.recovery,
|
|
218
244
|
cancel: input.cancel
|
|
219
245
|
};
|
|
220
|
-
|
|
246
|
+
if (job.isBackgrounded)
|
|
247
|
+
yield* persistBackground(job);
|
|
248
|
+
return [{ info: snapshot(job), job }, new Map(jobs).set(input.id, job)];
|
|
221
249
|
}));
|
|
222
|
-
if ("
|
|
223
|
-
yield* restore(input.run).pipe(Effect.exit, Effect.flatMap((exit) => settle(input.id, result.
|
|
250
|
+
if ("job" in result)
|
|
251
|
+
yield* restore(input.run).pipe(Effect.exit, Effect.flatMap((exit) => settle(input.id, result.job, exit)), Effect.asVoid, Effect.forkIn(result.job.scope, { startImmediately: true }));
|
|
224
252
|
return result.info;
|
|
225
253
|
}));
|
|
226
254
|
});
|
|
@@ -339,13 +367,14 @@ var make29 = Effect.gen(function* () {
|
|
|
339
367
|
const next = {
|
|
340
368
|
...job,
|
|
341
369
|
blockingSessions: new Map,
|
|
370
|
+
cancelledByCaller: persist,
|
|
342
371
|
info: {
|
|
343
372
|
...job.info,
|
|
344
373
|
status: "cancelled",
|
|
345
374
|
completed_at
|
|
346
375
|
}
|
|
347
376
|
};
|
|
348
|
-
if (persist)
|
|
377
|
+
if (persist && !job.settling)
|
|
349
378
|
yield* persistBackground(next);
|
|
350
379
|
return [
|
|
351
380
|
{ info: snapshot(next), done: job.done, scope: job.scope, generation: job.scope, cancel: job.cancel },
|
|
@@ -388,17 +417,82 @@ var make29 = Effect.gen(function* () {
|
|
|
388
417
|
...row.error !== null ? { error: row.error } : {}
|
|
389
418
|
}));
|
|
390
419
|
}).pipe(Effect.withSpan("Job.pendingBackground"));
|
|
391
|
-
const runningBackground = SynchronizedRef.get(state.jobs).pipe(Effect.map((jobs) => [...jobs.values()].flatMap((job) => job.isBackgrounded && job.info.status === "running" && job.recovery ? [job.recovery] : [])), Effect.withSpan("Job.runningBackground"));
|
|
420
|
+
const runningBackground = SynchronizedRef.get(state.jobs).pipe(Effect.map((jobs) => [...jobs.values()].flatMap((job) => job.isBackgrounded && job.info.status === "running" && !job.settling && !job.consumed && job.recovery ? [job.recovery] : [])), Effect.withSpan("Job.runningBackground"));
|
|
392
421
|
const completeBackground = Effect.fn("Job.completeBackground")((notificationID) => SynchronizedRef.updateEffect(state.jobs, (jobs) => Effect.gen(function* () {
|
|
393
422
|
yield* db.delete(JobTable2).where(eq(JobTable2.notification_id, notificationID)).run().pipe(Effect.orDie);
|
|
394
423
|
const entry = [...jobs].find(([, job]) => job.info.notificationID === notificationID);
|
|
395
|
-
if (!entry
|
|
424
|
+
if (!entry)
|
|
396
425
|
return jobs;
|
|
426
|
+
if (entry[1].info.status === "running")
|
|
427
|
+
return new Map(jobs).set(entry[0], { ...entry[1], consumed: true });
|
|
397
428
|
const next = new Map(jobs);
|
|
398
429
|
next.delete(entry[0]);
|
|
399
430
|
return next;
|
|
400
431
|
})));
|
|
401
|
-
|
|
432
|
+
const currentGeneration = Effect.fn("Job.currentGeneration")(function* (id) {
|
|
433
|
+
const job = (yield* SynchronizedRef.get(state.jobs)).get(id);
|
|
434
|
+
if (!job)
|
|
435
|
+
return;
|
|
436
|
+
return { generation: job.generation, running: job.info.status === "running" && !job.settling };
|
|
437
|
+
});
|
|
438
|
+
const isCancelled = Effect.fn("Job.isCancelled")(function* (id) {
|
|
439
|
+
return (yield* SynchronizedRef.get(state.jobs)).get(id)?.cancelledByCaller === true;
|
|
440
|
+
});
|
|
441
|
+
const prepareSubagentReport = Effect.fn("Job.prepareSubagentReport")(function* (id, boundGeneration) {
|
|
442
|
+
return yield* SynchronizedRef.modify(state.jobs, (jobs) => {
|
|
443
|
+
const job = jobs.get(id);
|
|
444
|
+
if (!job?.isBackgrounded || job.reported || !job.info.notificationID || job.recovery?.kind !== "subagent") {
|
|
445
|
+
return [{ mode: "none" }, jobs];
|
|
446
|
+
}
|
|
447
|
+
const live = job.info.status === "running" && !job.settling;
|
|
448
|
+
const cancelled = job.info.status === "cancelled" && (boundGeneration === undefined || job.generation === boundGeneration);
|
|
449
|
+
if (!live && !cancelled)
|
|
450
|
+
return [{ mode: "none" }, jobs];
|
|
451
|
+
const updated = {
|
|
452
|
+
...job,
|
|
453
|
+
reported: true,
|
|
454
|
+
...job.info.status === "running" ? { settling: true } : {}
|
|
455
|
+
};
|
|
456
|
+
const next = new Map(jobs).set(id, updated);
|
|
457
|
+
return [
|
|
458
|
+
{
|
|
459
|
+
mode: "background",
|
|
460
|
+
notificationID: job.info.notificationID,
|
|
461
|
+
recovery: job.recovery,
|
|
462
|
+
startedAt: job.info.started_at
|
|
463
|
+
},
|
|
464
|
+
next
|
|
465
|
+
];
|
|
466
|
+
});
|
|
467
|
+
});
|
|
468
|
+
const recordSubagentReport = Effect.fn("Job.recordSubagentReport")(function* (report) {
|
|
469
|
+
const now = yield* Clock.currentTimeMillis;
|
|
470
|
+
yield* db.insert(JobTable2).values({
|
|
471
|
+
notification_id: report.notificationID,
|
|
472
|
+
id: report.recovery.childSessionID,
|
|
473
|
+
session_id: report.recovery.parentSessionID,
|
|
474
|
+
child_session_id: report.recovery.childSessionID,
|
|
475
|
+
kind: "subagent",
|
|
476
|
+
title: report.recovery.description,
|
|
477
|
+
status: report.status,
|
|
478
|
+
output: report.output ?? null,
|
|
479
|
+
error: report.error ?? null,
|
|
480
|
+
recovery: report.recovery,
|
|
481
|
+
time_created: report.startedAt ?? now,
|
|
482
|
+
time_updated: now
|
|
483
|
+
}).onConflictDoUpdate({
|
|
484
|
+
target: JobTable2.notification_id,
|
|
485
|
+
set: {
|
|
486
|
+
status: report.status,
|
|
487
|
+
output: report.output ?? null,
|
|
488
|
+
error: report.error ?? null,
|
|
489
|
+
recovery: report.recovery,
|
|
490
|
+
time_updated: now
|
|
491
|
+
}
|
|
492
|
+
}).run().pipe(Effect.orDie);
|
|
493
|
+
});
|
|
494
|
+
const deleteBackgroundRow = Effect.fn("Job.deleteBackgroundRow")((notificationID) => db.delete(JobTable2).where(eq(JobTable2.notification_id, notificationID)).run().pipe(Effect.orDie, Effect.asVoid));
|
|
495
|
+
return Service76.of({
|
|
402
496
|
get,
|
|
403
497
|
start,
|
|
404
498
|
wait,
|
|
@@ -409,11 +503,16 @@ var make29 = Effect.gen(function* () {
|
|
|
409
503
|
cancelSession,
|
|
410
504
|
pendingBackground,
|
|
411
505
|
runningBackground,
|
|
412
|
-
backgroundJobs:
|
|
413
|
-
completeBackground
|
|
506
|
+
backgroundJobs: read5(db, state.jobs),
|
|
507
|
+
completeBackground,
|
|
508
|
+
isCancelled,
|
|
509
|
+
currentGeneration,
|
|
510
|
+
prepareSubagentReport,
|
|
511
|
+
recordSubagentReport,
|
|
512
|
+
deleteBackgroundRow
|
|
414
513
|
});
|
|
415
514
|
});
|
|
416
|
-
var layer = Layer.effect(
|
|
417
|
-
var
|
|
515
|
+
var layer = Layer.effect(Service76, make35);
|
|
516
|
+
var node78 = makeGlobalNode({ service: Service76, layer, deps: [node96] });
|
|
418
517
|
|
|
419
|
-
export {
|
|
518
|
+
export { Service76, make35, node78, exports_job };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
absoluteColumn2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./model-retry-wakvkjy4.js";
|
|
4
4
|
import {
|
|
5
5
|
ProjectTable2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./model-retry-034tev2y.js";
|
|
7
7
|
|
|
8
8
|
// src/worktree/sql.ts
|
|
9
9
|
import { integer, primaryKey, sqliteTable, text } from "drizzle-orm/sqlite-core";
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service71
|
|
3
|
+
} from "./model-retry-0dy226kc.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service51
|
|
6
|
+
} from "./model-retry-fkqnmv7m.js";
|
|
7
7
|
import {
|
|
8
8
|
observe2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./model-retry-tvtps2q9.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./model-retry-9rqn6x4v.js";
|
|
13
13
|
|
|
14
14
|
// src/config/plugin/image.ts
|
|
15
15
|
var exports_image = {};
|
|
16
16
|
__export(exports_image, {
|
|
17
17
|
ConfigImagePlugin: () => exports_image,
|
|
18
|
-
Plugin: () =>
|
|
18
|
+
Plugin: () => Plugin49
|
|
19
19
|
});
|
|
20
20
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
21
21
|
import { Effect } from "effect";
|
|
22
|
-
var
|
|
22
|
+
var Plugin49 = define({
|
|
23
23
|
id: "opencode.config.image",
|
|
24
24
|
effect: Effect.fn(function* (ctx) {
|
|
25
|
-
const config = yield*
|
|
26
|
-
const image = yield*
|
|
25
|
+
const config = yield* Service71;
|
|
26
|
+
const image = yield* Service51;
|
|
27
27
|
const loaded = yield* observe2(config, ctx.event, image.reload());
|
|
28
28
|
yield* image.transform((editor) => {
|
|
29
29
|
for (const entry of loaded.entries) {
|
|
@@ -43,4 +43,4 @@ var Plugin7 = define({
|
|
|
43
43
|
})
|
|
44
44
|
});
|
|
45
45
|
|
|
46
|
-
export {
|
|
46
|
+
export { Plugin49, exports_image };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ID17
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./model-retry-g1m8att5.js";
|
|
4
4
|
import {
|
|
5
5
|
loadSDKFactory2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./model-retry-6q2bdcd1.js";
|
|
7
7
|
|
|
8
8
|
// src/plugin/provider/sap-ai-core.ts
|
|
9
9
|
import { Effect } from "effect";
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SessionEvent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./model-retry-ec1grn59.js";
|
|
4
4
|
import {
|
|
5
5
|
stringify2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./model-retry-7rvsyqjv.js";
|
|
7
7
|
import {
|
|
8
8
|
contentFilterError2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./model-retry-xg7gtsp9.js";
|
|
10
10
|
|
|
11
11
|
// src/session/runner/publish-llm-event.ts
|
|
12
12
|
import { isRecord } from "@opencode/util/record";
|
|
13
13
|
import { Effect, Fiber, Iterable } from "effect";
|
|
14
14
|
import { isReadonlyArrayNonEmpty } from "effect/Array";
|
|
15
15
|
var asRecord = (value) => isRecord(value) ? value : { value };
|
|
16
|
+
var beginsOutput = (event) => event.type === "text-start" || event.type === "reasoning-start" || event.type === "tool-input-start" || event.type === "tool-input-error" || event.type === "tool-call";
|
|
16
17
|
var INPUT_EXCERPT_LIMIT = 2048;
|
|
17
18
|
var INPUT_FAILURES = {
|
|
18
19
|
malformed: {
|
|
@@ -73,6 +74,16 @@ var createLLMEventPublisher2 = (bus, input) => {
|
|
|
73
74
|
assistantMessageID: yield* startAssistant()
|
|
74
75
|
});
|
|
75
76
|
});
|
|
77
|
+
let firstTokenPublished = false;
|
|
78
|
+
const firstToken = Effect.fnUntraced(function* () {
|
|
79
|
+
if (firstTokenPublished)
|
|
80
|
+
return;
|
|
81
|
+
firstTokenPublished = true;
|
|
82
|
+
yield* bus.publish(SessionEvent2.Step.FirstToken, {
|
|
83
|
+
sessionID: input.sessionID,
|
|
84
|
+
assistantMessageID: yield* startAssistant()
|
|
85
|
+
});
|
|
86
|
+
});
|
|
76
87
|
const native = (metadata) => metadata?.[input.providerMetadataKey];
|
|
77
88
|
const fragments = (name, ended, delta, single = false) => {
|
|
78
89
|
const chunks = new Map;
|
|
@@ -289,6 +300,8 @@ var createLLMEventPublisher2 = (bus, input) => {
|
|
|
289
300
|
});
|
|
290
301
|
const failUnsettledTools = Effect.fn("SessionRunner.failUnsettledTools")((error, scope = "all") => failTools(error, scope));
|
|
291
302
|
const publish = Effect.fnUntraced(function* (event) {
|
|
303
|
+
if (beginsOutput(event))
|
|
304
|
+
yield* firstToken();
|
|
292
305
|
switch (event.type) {
|
|
293
306
|
case "step-start":
|
|
294
307
|
yield* startAssistant();
|