@opencode/core 0.0.0-dev-1136 → 0.0.0-dev-1141
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 +94 -94
- package/dist/aisdk-native.js +1 -1
- package/dist/aisdk.js +109 -109
- package/dist/app.js +5 -5
- package/dist/artifact.js +238 -238
- package/dist/bus.js +80 -80
- package/dist/chunks/{usage-limits-c2q9zfkf.js → persistent-pty-00pzdxvb.js} +4 -4
- package/dist/chunks/{usage-limits-p6se6c3r.js → persistent-pty-018pvm7c.js} +9 -9
- package/dist/chunks/{usage-limits-4vzr2b15.js → persistent-pty-04qc8z7j.js} +3 -3
- package/dist/chunks/{usage-limits-j1egny1s.js → persistent-pty-0806n7cm.js} +19 -19
- package/dist/chunks/{usage-limits-dvde2pc4.js → persistent-pty-0cggdvrh.js} +23 -23
- package/dist/chunks/{usage-limits-1v2g13eq.js → persistent-pty-0h86f0az.js} +4 -4
- package/dist/chunks/{usage-limits-0j7gp832.js → persistent-pty-0j7gp832.js} +1 -1
- package/dist/chunks/{usage-limits-f50vp3tr.js → persistent-pty-0jx3paz9.js} +32 -32
- package/dist/chunks/{usage-limits-0ma9gw4f.js → persistent-pty-0ma9gw4f.js} +2 -2
- package/dist/chunks/{usage-limits-2y8q1569.js → persistent-pty-0mgprbja.js} +4 -4
- package/dist/chunks/{usage-limits-963hk181.js → persistent-pty-0mtp185z.js} +9 -9
- package/dist/chunks/{usage-limits-bsfkzme1.js → persistent-pty-0n28khqy.js} +9 -9
- package/dist/chunks/{usage-limits-y9azjp7e.js → persistent-pty-0wgvkt2x.js} +11 -11
- package/dist/chunks/{usage-limits-pe00mm5s.js → persistent-pty-1791cqk2.js} +10 -10
- package/dist/chunks/{usage-limits-txjws9vm.js → persistent-pty-19b2ztj7.js} +11 -11
- package/dist/chunks/{usage-limits-1aqsckx4.js → persistent-pty-1aqsckx4.js} +1 -1
- package/dist/chunks/{usage-limits-wn08rbng.js → persistent-pty-1n1ng8zx.js} +25 -25
- package/dist/chunks/{usage-limits-1x2knyw4.js → persistent-pty-1x2knyw4.js} +1 -1
- package/dist/chunks/{usage-limits-1yq9hg58.js → persistent-pty-1yq9hg58.js} +1 -1
- package/dist/chunks/{usage-limits-6gtbfcr3.js → persistent-pty-23spy735.js} +43 -43
- package/dist/chunks/{usage-limits-hmktf0nf.js → persistent-pty-25ng7087.js} +52 -52
- package/dist/chunks/{usage-limits-1ep2p91f.js → persistent-pty-27w5k9zf.js} +2 -2
- package/dist/chunks/{usage-limits-1j2q7rrr.js → persistent-pty-29kaqwyv.js} +39 -39
- package/dist/chunks/{usage-limits-h9nn55c5.js → persistent-pty-2dvjapqv.js} +25 -25
- package/dist/chunks/{usage-limits-2fc7eemy.js → persistent-pty-2fc7eemy.js} +1 -1
- package/dist/chunks/{usage-limits-kq5y9fax.js → persistent-pty-2ft1psgd.js} +13 -13
- package/dist/chunks/{usage-limits-xvn32npp.js → persistent-pty-2kgqety0.js} +5 -5
- package/dist/chunks/{usage-limits-ght93wgr.js → persistent-pty-2kk794q2.js} +34 -34
- package/dist/chunks/{usage-limits-qtf35215.js → persistent-pty-2n444ktb.js} +3 -3
- package/dist/chunks/{usage-limits-5asgddgx.js → persistent-pty-2s9mae96.js} +6 -6
- package/dist/chunks/{usage-limits-kwjvsxtm.js → persistent-pty-2xawt0y1.js} +48 -37
- package/dist/chunks/{usage-limits-z080rjh6.js → persistent-pty-38aws4xb.js} +4 -4
- package/dist/chunks/{usage-limits-3adw4bt5.js → persistent-pty-3adw4bt5.js} +2 -2
- package/dist/chunks/{usage-limits-ayjs7tqn.js → persistent-pty-3cbjf1nt.js} +2 -2
- package/dist/chunks/{usage-limits-2368y051.js → persistent-pty-3h3skxty.js} +14 -14
- package/dist/chunks/{usage-limits-3hepkmqq.js → persistent-pty-3hepkmqq.js} +1 -1
- package/dist/chunks/{usage-limits-3nnrz6f6.js → persistent-pty-3nnrz6f6.js} +1 -1
- package/dist/chunks/{usage-limits-wk0531zk.js → persistent-pty-3tf4v4ep.js} +16 -16
- package/dist/chunks/{usage-limits-mzxjpf7k.js → persistent-pty-3x0shmrv.js} +11 -11
- package/dist/chunks/{usage-limits-qft9y4hy.js → persistent-pty-401vphjz.js} +5 -5
- package/dist/chunks/{usage-limits-40y6dtc2.js → persistent-pty-40y6dtc2.js} +1 -1
- package/dist/chunks/{usage-limits-ww791pww.js → persistent-pty-42gj811x.js} +20 -20
- package/dist/chunks/{usage-limits-4dx1dgte.js → persistent-pty-4dx1dgte.js} +1 -1
- package/dist/chunks/{usage-limits-mth3cj04.js → persistent-pty-4epqmd1h.js} +13 -13
- package/dist/chunks/{usage-limits-4f25tdd0.js → persistent-pty-4f25tdd0.js} +1 -1
- package/dist/chunks/{usage-limits-yk4ram99.js → persistent-pty-4krr2nde.js} +3 -3
- package/dist/chunks/{usage-limits-4pyp9zr9.js → persistent-pty-4pyp9zr9.js} +1 -1
- package/dist/chunks/{usage-limits-4v008n1t.js → persistent-pty-4v008n1t.js} +1 -1
- package/dist/chunks/{usage-limits-shsvp7vp.js → persistent-pty-52b88tdw.js} +62 -30
- package/dist/chunks/{usage-limits-5zpqhmp2.js → persistent-pty-530xg6vw.js} +3 -3
- package/dist/chunks/{usage-limits-trsth5nr.js → persistent-pty-5j9ncfs4.js} +6 -6
- package/dist/chunks/{usage-limits-22z20x00.js → persistent-pty-5kjbjby5.js} +10 -10
- package/dist/chunks/{usage-limits-5m9w47nd.js → persistent-pty-5m9w47nd.js} +1 -1
- package/dist/chunks/{usage-limits-wvqyzeay.js → persistent-pty-5mw7s1b6.js} +16 -16
- package/dist/chunks/{usage-limits-v325dg72.js → persistent-pty-62kpm1kv.js} +20 -20
- package/dist/chunks/{usage-limits-sbh2sz2j.js → persistent-pty-641mgq21.js} +18 -18
- package/dist/chunks/{usage-limits-s6p6xy3r.js → persistent-pty-6a334k2e.js} +25 -25
- package/dist/chunks/{usage-limits-01zfkgbg.js → persistent-pty-6ddb8hxf.js} +36 -36
- package/dist/chunks/{usage-limits-sx27c7qs.js → persistent-pty-6edbc7zm.js} +7 -7
- package/dist/chunks/{usage-limits-ctmpqb7w.js → persistent-pty-6h8vcvjm.js} +9 -9
- package/dist/chunks/{usage-limits-7ew4ds6e.js → persistent-pty-6jpx4839.js} +17 -17
- package/dist/chunks/{usage-limits-yswt24xe.js → persistent-pty-6qm8pmbm.js} +5 -5
- package/dist/chunks/{usage-limits-sf85ryyv.js → persistent-pty-6s2jamp7.js} +15 -15
- package/dist/chunks/{usage-limits-5w1mdqt7.js → persistent-pty-6ss6ngz0.js} +4 -4
- package/dist/chunks/{usage-limits-q855xgy8.js → persistent-pty-6w5ta17s.js} +7 -7
- package/dist/chunks/{usage-limits-6y2b864j.js → persistent-pty-6y2b864j.js} +1 -1
- package/dist/chunks/{usage-limits-e3qg51pp.js → persistent-pty-6zkjwwbt.js} +82 -82
- package/dist/chunks/{usage-limits-775hqbnd.js → persistent-pty-775hqbnd.js} +3 -3
- package/dist/chunks/{usage-limits-ftc624e5.js → persistent-pty-77y0kkm0.js} +30 -30
- package/dist/chunks/{usage-limits-dbzr9wdf.js → persistent-pty-7arz4r0c.js} +16 -16
- package/dist/chunks/{usage-limits-7bmhse3q.js → persistent-pty-7bmhse3q.js} +1 -1
- package/dist/chunks/{usage-limits-kxvavz0b.js → persistent-pty-7ecvj7xx.js} +17 -17
- package/dist/chunks/{usage-limits-a1tswj55.js → persistent-pty-7mrx0efj.js} +12 -12
- package/dist/chunks/{usage-limits-ynzdgah7.js → persistent-pty-7nb8tm12.js} +5 -5
- package/dist/chunks/{usage-limits-mfmt126m.js → persistent-pty-7r8842f6.js} +33 -33
- package/dist/chunks/{usage-limits-fcv1wwdz.js → persistent-pty-7snvzf9y.js} +30 -30
- package/dist/chunks/{usage-limits-1ce0p61k.js → persistent-pty-7taaxv95.js} +4 -4
- package/dist/chunks/{usage-limits-7tpyp9vw.js → persistent-pty-7tpyp9vw.js} +1 -1
- package/dist/chunks/{usage-limits-7w2ypzdf.js → persistent-pty-7w2ypzdf.js} +1 -1
- package/dist/chunks/{usage-limits-7weczvnd.js → persistent-pty-7weczvnd.js} +1 -1
- package/dist/chunks/{usage-limits-vb7smdbq.js → persistent-pty-7xcsqsge.js} +5 -5
- package/dist/chunks/persistent-pty-7yv5xa0k.js +18 -0
- package/dist/chunks/{usage-limits-gfv3bamm.js → persistent-pty-80hpafj9.js} +9 -9
- package/dist/chunks/{usage-limits-6f6jm3cp.js → persistent-pty-80m5xgxj.js} +11 -11
- package/dist/chunks/{usage-limits-80pdk984.js → persistent-pty-80pdk984.js} +1 -1
- package/dist/chunks/{usage-limits-85jq8dht.js → persistent-pty-85jq8dht.js} +1 -1
- package/dist/chunks/{usage-limits-vbfqpmv9.js → persistent-pty-85m29sf4.js} +21 -21
- package/dist/chunks/{usage-limits-8b3vzgkx.js → persistent-pty-8b3vzgkx.js} +1 -1
- package/dist/chunks/persistent-pty-8b48q1nb.js +577 -0
- package/dist/chunks/{usage-limits-dc51qbmr.js → persistent-pty-8gzgd6gz.js} +18 -18
- package/dist/chunks/{usage-limits-8wtp7s3z.js → persistent-pty-8wtp7s3z.js} +1 -1
- package/dist/chunks/{usage-limits-ypj1acmt.js → persistent-pty-8xz27cp9.js} +4 -4
- package/dist/chunks/{usage-limits-0bdk8pxj.js → persistent-pty-8ydxba3r.js} +5 -5
- package/dist/chunks/{usage-limits-e3xbncmc.js → persistent-pty-8ym9cpdp.js} +22 -22
- package/dist/chunks/{usage-limits-mb7mbhnz.js → persistent-pty-8z6m94af.js} +3 -3
- package/dist/chunks/{usage-limits-8zv0xmg5.js → persistent-pty-8zv0xmg5.js} +1 -1
- package/dist/chunks/{usage-limits-93f0ne34.js → persistent-pty-910ch34w.js} +15 -15
- package/dist/chunks/{usage-limits-hdyhwc9f.js → persistent-pty-9262x70e.js} +16 -16
- package/dist/chunks/{usage-limits-37hhv4wy.js → persistent-pty-92j6mbn0.js} +12 -12
- package/dist/chunks/{usage-limits-fas9x0zj.js → persistent-pty-9b0bxgxr.js} +8 -8
- package/dist/chunks/{usage-limits-pbr6dek6.js → persistent-pty-9b5pg85y.js} +7 -7
- package/dist/chunks/{usage-limits-rsh3wnz1.js → persistent-pty-9d52fs69.js} +5 -5
- package/dist/chunks/{usage-limits-qr56g015.js → persistent-pty-9ddw59ht.js} +16 -16
- package/dist/chunks/{usage-limits-00wmrtha.js → persistent-pty-9f4njfb9.js} +17 -17
- package/dist/chunks/{usage-limits-14vpqtw6.js → persistent-pty-9pdxmcf6.js} +7 -7
- package/dist/chunks/{usage-limits-w79nt68w.js → persistent-pty-9q8g9sv8.js} +4 -4
- package/dist/chunks/{usage-limits-tfxry2e2.js → persistent-pty-a2pckt3d.js} +11 -11
- package/dist/chunks/{usage-limits-x150ncgg.js → persistent-pty-a3fn0gmm.js} +2 -2
- package/dist/chunks/{usage-limits-m7razs27.js → persistent-pty-a77wsd01.js} +43 -43
- package/dist/chunks/{usage-limits-r0wkvse5.js → persistent-pty-aa0xks2t.js} +14 -14
- package/dist/chunks/{usage-limits-034tev2y.js → persistent-pty-aj7mw0zk.js} +2 -2
- package/dist/chunks/{usage-limits-q42tzrxa.js → persistent-pty-as8a156g.js} +16 -2
- package/dist/chunks/{usage-limits-xa9a76g6.js → persistent-pty-asjr210a.js} +18 -18
- package/dist/chunks/{usage-limits-ymq5559q.js → persistent-pty-avt42cn0.js} +15 -15
- package/dist/chunks/{usage-limits-w8ex0f27.js → persistent-pty-avv30etj.js} +4 -4
- package/dist/chunks/{usage-limits-v4bj6baw.js → persistent-pty-ba5f9dy2.js} +4 -4
- package/dist/chunks/{usage-limits-8sxe6kv8.js → persistent-pty-bb3mmwvh.js} +2 -2
- package/dist/chunks/{usage-limits-g7q2rrzt.js → persistent-pty-bbbm1kqg.js} +8 -8
- package/dist/chunks/{usage-limits-163rzv3x.js → persistent-pty-bbwawm4r.js} +4 -4
- package/dist/chunks/{usage-limits-nc5q8vet.js → persistent-pty-bdhhrrav.js} +23 -23
- package/dist/chunks/{usage-limits-0n720z3p.js → persistent-pty-bkk47srm.js} +5 -5
- package/dist/chunks/{usage-limits-bstexjd6.js → persistent-pty-bstexjd6.js} +1 -1
- package/dist/chunks/{usage-limits-73128jds.js → persistent-pty-btr9eed2.js} +75 -74
- package/dist/chunks/{usage-limits-pj4g6jw6.js → persistent-pty-btz4vdf2.js} +9 -9
- package/dist/chunks/{usage-limits-by8ty0bx.js → persistent-pty-by8ty0bx.js} +1 -1
- package/dist/chunks/{usage-limits-b4nm0waw.js → persistent-pty-c1rvjqwp.js} +16 -16
- package/dist/chunks/{usage-limits-fc93665r.js → persistent-pty-c1sfsxsr.js} +8 -8
- package/dist/chunks/{usage-limits-c7cw818c.js → persistent-pty-c7cw818c.js} +2 -2
- package/dist/chunks/{usage-limits-6czvh5et.js → persistent-pty-caem11c1.js} +9 -9
- package/dist/chunks/{usage-limits-m30pzkfp.js → persistent-pty-ce3n5tw7.js} +10 -10
- package/dist/chunks/{usage-limits-a0qf5rjp.js → persistent-pty-cjtgxjhq.js} +18 -18
- package/dist/chunks/{usage-limits-nwyc7xwk.js → persistent-pty-cqeqcmsf.js} +12 -12
- package/dist/chunks/{usage-limits-cwrgdav8.js → persistent-pty-cwrgdav8.js} +2 -2
- package/dist/chunks/{usage-limits-6hmpncep.js → persistent-pty-d1rkk357.js} +8 -8
- package/dist/chunks/{usage-limits-07zvewtp.js → persistent-pty-d4rk8056.js} +30 -30
- package/dist/chunks/{usage-limits-d4v9tmah.js → persistent-pty-d4v9tmah.js} +2 -2
- package/dist/chunks/{usage-limits-cfh2c4vx.js → persistent-pty-d60v4tfr.js} +33 -32
- package/dist/chunks/{usage-limits-dka29ds1.js → persistent-pty-d73h4c6n.js} +24 -24
- package/dist/chunks/{usage-limits-p7qb8jbp.js → persistent-pty-dbvvr5ca.js} +22 -22
- package/dist/chunks/{usage-limits-d6zsrev0.js → persistent-pty-dczf9fhp.js} +19 -19
- package/dist/chunks/{usage-limits-8tnpwq6r.js → persistent-pty-dg4atj78.js} +7 -7
- package/dist/chunks/{usage-limits-r7zprqr5.js → persistent-pty-dhnnehwj.js} +7 -7
- package/dist/chunks/{usage-limits-e3jz9n7h.js → persistent-pty-dmvn3jq9.js} +7 -7
- package/dist/chunks/{usage-limits-9gqwytrb.js → persistent-pty-dqahggxs.js} +87 -87
- package/dist/chunks/{usage-limits-bepf8h36.js → persistent-pty-dt1mxvjw.js} +5 -5
- package/dist/chunks/{usage-limits-dt77769w.js → persistent-pty-dt77769w.js} +1 -1
- package/dist/chunks/{usage-limits-hvk1hafx.js → persistent-pty-e8xdkctn.js} +4 -4
- package/dist/chunks/{usage-limits-2rqsj4wa.js → persistent-pty-e9hvxvkn.js} +45 -45
- package/dist/chunks/{usage-limits-3gv0pst8.js → persistent-pty-e9v43avg.js} +29 -29
- package/dist/chunks/{usage-limits-3px36xtd.js → persistent-pty-ecb6c39z.js} +4 -4
- package/dist/chunks/{usage-limits-bk4k41m0.js → persistent-pty-enyb2kw5.js} +20 -20
- package/dist/chunks/{usage-limits-vw4p4fbt.js → persistent-pty-epayv3ej.js} +4 -4
- package/dist/chunks/{usage-limits-eqw4pqj1.js → persistent-pty-eqw4pqj1.js} +2 -2
- package/dist/chunks/{usage-limits-gk943ye1.js → persistent-pty-ewfepv21.js} +12 -12
- package/dist/chunks/{usage-limits-eh25zjz2.js → persistent-pty-f598hcd5.js} +10 -10
- package/dist/chunks/{usage-limits-t8ypkyyc.js → persistent-pty-f5cd42r9.js} +12 -12
- package/dist/chunks/{usage-limits-fg9p65nk.js → persistent-pty-fg9p65nk.js} +2 -2
- package/dist/chunks/{usage-limits-x36pdner.js → persistent-pty-fqp7nk4g.js} +9 -9
- package/dist/chunks/{usage-limits-8x3hmqtd.js → persistent-pty-ft7hwc8g.js} +3 -3
- package/dist/chunks/{usage-limits-x3eexw8z.js → persistent-pty-fw2bfwd4.js} +4 -4
- package/dist/chunks/{usage-limits-ywz68vkg.js → persistent-pty-fw468rj7.js} +44 -44
- package/dist/chunks/{usage-limits-xsact9zs.js → persistent-pty-fwp9mfc9.js} +4 -4
- package/dist/chunks/{usage-limits-y40wf3tb.js → persistent-pty-fxxxatdc.js} +34 -34
- package/dist/chunks/{usage-limits-c30j6zhw.js → persistent-pty-fy27yj1t.js} +10 -10
- package/dist/chunks/{usage-limits-p0dbwaqv.js → persistent-pty-fzndy2x2.js} +14 -14
- package/dist/chunks/{usage-limits-wr3re1en.js → persistent-pty-fznmdakp.js} +4 -4
- package/dist/chunks/{usage-limits-786y1vw3.js → persistent-pty-fzwn6aqp.js} +5 -5
- package/dist/chunks/{usage-limits-9vcbn99r.js → persistent-pty-g12t90cy.js} +5 -5
- package/dist/chunks/{usage-limits-b26ddj6h.js → persistent-pty-g4txs7zc.js} +4 -4
- package/dist/chunks/{usage-limits-td0ccqka.js → persistent-pty-g75vsea6.js} +9 -9
- package/dist/chunks/{usage-limits-gbjdnr5j.js → persistent-pty-gbjdnr5j.js} +2 -2
- package/dist/chunks/{usage-limits-zabc2wfq.js → persistent-pty-gckn4wsj.js} +19 -19
- package/dist/chunks/{usage-limits-net9d0fx.js → persistent-pty-gfn6vbsv.js} +22 -22
- package/dist/chunks/{usage-limits-ghrv1g9c.js → persistent-pty-ghrv1g9c.js} +1 -1
- package/dist/chunks/{usage-limits-8wnsjf6c.js → persistent-pty-gjkwpsd8.js} +9 -9
- package/dist/chunks/{usage-limits-ms258ef6.js → persistent-pty-h8s79my2.js} +15 -15
- package/dist/chunks/{usage-limits-32720cxc.js → persistent-pty-he60h9w2.js} +13 -13
- package/dist/chunks/{usage-limits-y4zf405k.js → persistent-pty-hgsqba75.js} +59 -59
- package/dist/chunks/{usage-limits-hgzwgvze.js → persistent-pty-hgzwgvze.js} +2 -2
- package/dist/chunks/{usage-limits-vmxh67a6.js → persistent-pty-hkwmenkt.js} +4 -4
- package/dist/chunks/{usage-limits-5s6k48sx.js → persistent-pty-hpz6vwek.js} +11 -10
- package/dist/chunks/{usage-limits-zmtdeb8k.js → persistent-pty-hrpg1pdd.js} +7 -7
- package/dist/chunks/{usage-limits-54cbb0bw.js → persistent-pty-htqc7tfk.js} +13 -13
- package/dist/chunks/{usage-limits-378jpew0.js → persistent-pty-hzpe7dhw.js} +33 -33
- package/dist/chunks/{usage-limits-tr8x705m.js → persistent-pty-j376ae4e.js} +5 -5
- package/dist/chunks/{usage-limits-xmx7xj34.js → persistent-pty-j3f8hyeg.js} +4 -4
- package/dist/chunks/{usage-limits-g3qdsj3j.js → persistent-pty-j4zs9bxr.js} +23 -23
- package/dist/chunks/{usage-limits-q5bd917m.js → persistent-pty-j6g0vqez.js} +5 -5
- package/dist/chunks/{usage-limits-j9nxzz3g.js → persistent-pty-j9nxzz3g.js} +3 -3
- package/dist/chunks/{usage-limits-gnqkjjxq.js → persistent-pty-jf9aqpdw.js} +36 -36
- package/dist/chunks/{usage-limits-0sqkmrgk.js → persistent-pty-jgat5a1s.js} +35 -35
- package/dist/chunks/{usage-limits-jm70asfg.js → persistent-pty-jm70asfg.js} +1 -1
- package/dist/chunks/{usage-limits-0v9zvpyd.js → persistent-pty-js8n3d73.js} +11 -11
- package/dist/chunks/{usage-limits-jv5ccajn.js → persistent-pty-jv5ccajn.js} +2 -2
- package/dist/chunks/{usage-limits-44pmzq9c.js → persistent-pty-jxd6f16v.js} +2 -2
- package/dist/chunks/{usage-limits-3aj095vc.js → persistent-pty-jxswh7p3.js} +32 -32
- package/dist/chunks/{usage-limits-p239k93p.js → persistent-pty-k0z9bhgz.js} +40 -40
- package/dist/chunks/{usage-limits-6f38jrmr.js → persistent-pty-k72s33b7.js} +31 -31
- package/dist/chunks/{usage-limits-4dtvemx5.js → persistent-pty-k732j073.js} +8 -8
- package/dist/chunks/{usage-limits-s6bqntgs.js → persistent-pty-k822k1ne.js} +15 -15
- package/dist/chunks/{usage-limits-h6c1ek8j.js → persistent-pty-kad2wbhh.js} +2 -2
- package/dist/chunks/{usage-limits-hhc7y5y0.js → persistent-pty-kkt22k82.js} +14 -14
- package/dist/chunks/{usage-limits-cjeshgaf.js → persistent-pty-kny8q9fm.js} +8 -8
- package/dist/chunks/{usage-limits-kt3bjfbg.js → persistent-pty-kt3bjfbg.js} +1 -1
- package/dist/chunks/{usage-limits-70rrpkbb.js → persistent-pty-ktf53k0y.js} +23 -23
- package/dist/chunks/{usage-limits-twtdr6y0.js → persistent-pty-kvqpqygy.js} +24 -24
- package/dist/chunks/{usage-limits-kzczzf4v.js → persistent-pty-kzczzf4v.js} +1 -1
- package/dist/chunks/{usage-limits-m1714858.js → persistent-pty-m1714858.js} +1 -1
- package/dist/chunks/{usage-limits-zq5y2v36.js → persistent-pty-m7v9vvkp.js} +15 -15
- package/dist/chunks/{usage-limits-m90tx7mw.js → persistent-pty-m90tx7mw.js} +1 -1
- package/dist/chunks/{usage-limits-m9w0rfyh.js → persistent-pty-m9w0rfyh.js} +1 -1
- package/dist/chunks/{usage-limits-r8ec70nh.js → persistent-pty-me0bf12n.js} +13 -13
- package/dist/chunks/{usage-limits-b7nkz392.js → persistent-pty-me215f18.js} +1 -1
- package/dist/chunks/{usage-limits-85sd3wwa.js → persistent-pty-mjeqg7zk.js} +21 -21
- package/dist/chunks/{usage-limits-pas7cje7.js → persistent-pty-mkavw0c0.js} +8 -8
- package/dist/chunks/{usage-limits-fjn6cgzk.js → persistent-pty-mr12hyfn.js} +10 -10
- package/dist/chunks/{usage-limits-601qms6t.js → persistent-pty-mv92c7a8.js} +31 -31
- package/dist/chunks/{usage-limits-7e467hjm.js → persistent-pty-mvnh7ykz.js} +13 -13
- package/dist/chunks/{usage-limits-18ftbw9s.js → persistent-pty-mwqan0d7.js} +60 -46
- package/dist/chunks/{usage-limits-3rnrta3c.js → persistent-pty-n2a0zv08.js} +2 -2
- package/dist/chunks/{usage-limits-7j5gw7wh.js → persistent-pty-n3ntzjw4.js} +15 -15
- package/dist/chunks/{usage-limits-yv0mxjwc.js → persistent-pty-n7hqy2cw.js} +7 -7
- package/dist/chunks/{usage-limits-526zrbs5.js → persistent-pty-n7k76nxf.js} +20 -20
- package/dist/chunks/{usage-limits-hced1q2j.js → persistent-pty-nemnqzpn.js} +4 -4
- package/dist/chunks/{usage-limits-0xzz5bc5.js → persistent-pty-nextbzqp.js} +4 -4
- package/dist/chunks/{usage-limits-xs8fxyyv.js → persistent-pty-nfdebbev.js} +12 -12
- package/dist/chunks/{usage-limits-3k376a4c.js → persistent-pty-njn4p9sa.js} +41 -41
- package/dist/chunks/{usage-limits-1xx8jyp0.js → persistent-pty-nm0p4dxw.js} +1 -1
- package/dist/chunks/{usage-limits-5rk89tzr.js → persistent-pty-nn55eax9.js} +12 -12
- package/dist/chunks/{usage-limits-ny73nq33.js → persistent-pty-nnnffw0j.js} +12 -12
- package/dist/chunks/{usage-limits-tr2nk892.js → persistent-pty-nqqq7twm.js} +18 -18
- package/dist/chunks/{usage-limits-wegkxhrn.js → persistent-pty-nx4vzyjd.js} +2 -2
- package/dist/chunks/{usage-limits-rv5b319h.js → persistent-pty-p5gdk4af.js} +3 -3
- package/dist/chunks/{usage-limits-8xgserg9.js → persistent-pty-p6stnjrt.js} +17 -17
- package/dist/chunks/{usage-limits-qah7t4da.js → persistent-pty-p9jvgf3w.js} +6 -6
- package/dist/chunks/{usage-limits-wfdx5ztx.js → persistent-pty-pb8daj1x.js} +14 -5
- package/dist/chunks/{usage-limits-hjhzj75t.js → persistent-pty-pfbhb58w.js} +146 -44
- package/dist/chunks/{usage-limits-v73ga3me.js → persistent-pty-pfndqkpz.js} +31 -31
- package/dist/chunks/{usage-limits-qw6m5vap.js → persistent-pty-pg5jck48.js} +11 -11
- package/dist/chunks/{usage-limits-pknna89w.js → persistent-pty-pknna89w.js} +1 -1
- package/dist/chunks/{usage-limits-42p2d32x.js → persistent-pty-ppsbp1qn.js} +15 -15
- package/dist/chunks/{usage-limits-q9s971fk.js → persistent-pty-pzy7y2j2.js} +19 -19
- package/dist/chunks/{usage-limits-ffv17rwk.js → persistent-pty-q0xawjdj.js} +3 -3
- package/dist/chunks/persistent-pty-q1mqkmnx.js +273 -0
- package/dist/chunks/{usage-limits-wn13ypz9.js → persistent-pty-q3dkjkk5.js} +15 -15
- package/dist/chunks/{usage-limits-1jh4g484.js → persistent-pty-q4aadatb.js} +13 -13
- package/dist/chunks/{usage-limits-jyf1m81b.js → persistent-pty-q69esqp1.js} +23 -23
- package/dist/chunks/{usage-limits-vz8yk5dt.js → persistent-pty-qfgdng4e.js} +3 -3
- package/dist/chunks/{usage-limits-q2t4f8zk.js → persistent-pty-qhbx12za.js} +10 -10
- package/dist/chunks/{usage-limits-xx0bwd8h.js → persistent-pty-qhyv5122.js} +33 -33
- package/dist/chunks/{usage-limits-qp7r0hxv.js → persistent-pty-qp7r0hxv.js} +1 -1
- package/dist/chunks/{usage-limits-n6k0bagf.js → persistent-pty-qqsphv3g.js} +34 -34
- package/dist/chunks/{usage-limits-m07x43ss.js → persistent-pty-qxagq6p8.js} +9 -9
- package/dist/chunks/{usage-limits-5enarcya.js → persistent-pty-r41sfy63.js} +9 -9
- package/dist/chunks/{usage-limits-9w9varqp.js → persistent-pty-ra7b1vmx.js} +34 -34
- package/dist/chunks/{usage-limits-rb9dy4dg.js → persistent-pty-rb9dy4dg.js} +1 -1
- package/dist/chunks/{usage-limits-rgc9cx3e.js → persistent-pty-rgc9cx3e.js} +2 -2
- package/dist/chunks/{usage-limits-p3nfbtvb.js → persistent-pty-rmh25tnk.js} +12 -12
- package/dist/chunks/{usage-limits-9n5f64nr.js → persistent-pty-rn9cpdem.js} +28 -28
- package/dist/chunks/{usage-limits-91fd3s93.js → persistent-pty-rw4j4fc0.js} +5 -5
- package/dist/chunks/{usage-limits-2p60zmnr.js → persistent-pty-s1ba0vj0.js} +2 -2
- package/dist/chunks/{usage-limits-3e5a50ew.js → persistent-pty-s2am029e.js} +22 -22
- package/dist/chunks/{usage-limits-5whx36p1.js → persistent-pty-s47rahr7.js} +4 -4
- package/dist/chunks/{usage-limits-qhbe3ak7.js → persistent-pty-s8qkskz1.js} +7 -7
- package/dist/chunks/{usage-limits-sbya78hr.js → persistent-pty-sbya78hr.js} +1 -1
- package/dist/chunks/{usage-limits-gh3tqavf.js → persistent-pty-sq0tbe5w.js} +11 -11
- package/dist/chunks/{usage-limits-svcy3p9a.js → persistent-pty-svcy3p9a.js} +1 -1
- package/dist/chunks/{usage-limits-9q7f1dnx.js → persistent-pty-t1dd3zqa.js} +6 -6
- package/dist/chunks/{usage-limits-sf7z16qf.js → persistent-pty-t3qxs7f5.js} +9 -9
- package/dist/chunks/{usage-limits-nq1mg43n.js → persistent-pty-t48jrnqq.js} +3 -3
- package/dist/chunks/{usage-limits-13g31adg.js → persistent-pty-t4z9p5b8.js} +9 -9
- package/dist/chunks/{usage-limits-m7bb3gwb.js → persistent-pty-t5k0t6ys.js} +8 -8
- package/dist/chunks/{usage-limits-t62dywgn.js → persistent-pty-t62dywgn.js} +1 -1
- package/dist/chunks/{usage-limits-x4qkf6h2.js → persistent-pty-t67npm6c.js} +21 -21
- package/dist/chunks/{usage-limits-ea2m5hc4.js → persistent-pty-ta7amrd8.js} +5 -5
- package/dist/chunks/{usage-limits-tbpn7jtk.js → persistent-pty-tbpn7jtk.js} +1 -1
- package/dist/chunks/{usage-limits-tczq8hjw.js → persistent-pty-tczq8hjw.js} +1 -1
- package/dist/chunks/{usage-limits-grnwbwna.js → persistent-pty-tdjfqr95.js} +11 -11
- package/dist/chunks/{usage-limits-qh3gs631.js → persistent-pty-teyezz5v.js} +27 -27
- package/dist/chunks/{usage-limits-gxs71cxp.js → persistent-pty-tg7s7b5t.js} +4 -4
- package/dist/chunks/{usage-limits-1yrs5r5s.js → persistent-pty-tq501wp9.js} +3 -3
- package/dist/chunks/{usage-limits-tvtps2q9.js → persistent-pty-tvtps2q9.js} +1 -1
- package/dist/chunks/{usage-limits-4vk5s36p.js → persistent-pty-twbmbqg9.js} +11 -11
- package/dist/chunks/{usage-limits-twssxy5n.js → persistent-pty-twssxy5n.js} +2 -2
- package/dist/chunks/{usage-limits-rkj43f4z.js → persistent-pty-txaz18nt.js} +6 -6
- package/dist/chunks/{usage-limits-zt2mz163.js → persistent-pty-txhfg7az.js} +31 -31
- package/dist/chunks/{usage-limits-y3sw9ykq.js → persistent-pty-v07x4jg1.js} +16 -16
- package/dist/chunks/{usage-limits-hgyfjph1.js → persistent-pty-v0p8fkzz.js} +14 -14
- package/dist/chunks/{usage-limits-qra2yhaf.js → persistent-pty-v186fz10.js} +11 -11
- package/dist/chunks/{usage-limits-m8rxqpkg.js → persistent-pty-v1hqtkt1.js} +3 -3
- package/dist/chunks/{usage-limits-bhmrqjy3.js → persistent-pty-v2dnd5dt.js} +91 -43
- package/dist/chunks/{usage-limits-v2r1d0zg.js → persistent-pty-v2r1d0zg.js} +1 -1
- package/dist/chunks/{usage-limits-1h178xsr.js → persistent-pty-v73g02es.js} +18 -18
- package/dist/chunks/{usage-limits-45n8x791.js → persistent-pty-vaz51hez.js} +3 -3
- package/dist/chunks/{usage-limits-vjf35v1f.js → persistent-pty-vjf35v1f.js} +1 -1
- package/dist/chunks/{usage-limits-5p8ng2jk.js → persistent-pty-vmhkvkjy.js} +5 -5
- package/dist/chunks/{usage-limits-20pht57w.js → persistent-pty-vmqe41cb.js} +4 -4
- package/dist/chunks/{usage-limits-cr4rfj9z.js → persistent-pty-vmxsyvj6.js} +4 -4
- package/dist/chunks/{usage-limits-4c54bdmv.js → persistent-pty-vrn9h1g0.js} +12 -12
- package/dist/chunks/{usage-limits-dg5naf6e.js → persistent-pty-vt2d6wap.js} +4 -4
- package/dist/chunks/{usage-limits-0p1t9ayv.js → persistent-pty-w19fy49x.js} +15 -15
- package/dist/chunks/{usage-limits-w3wsvvr9.js → persistent-pty-w3wsvvr9.js} +1 -1
- package/dist/chunks/{usage-limits-vjf1wnjw.js → persistent-pty-w8rr6c7d.js} +30 -30
- package/dist/chunks/{usage-limits-wakvkjy4.js → persistent-pty-wakvkjy4.js} +1 -1
- package/dist/chunks/{usage-limits-00tzm6xw.js → persistent-pty-wb5wsb2j.js} +8 -8
- package/dist/chunks/{usage-limits-wd87259q.js → persistent-pty-wd87259q.js} +1 -1
- package/dist/chunks/{usage-limits-eqz858fr.js → persistent-pty-wedqffd6.js} +11 -11
- package/dist/chunks/{usage-limits-db48qj7n.js → persistent-pty-wgap4h5r.js} +16 -16
- package/dist/chunks/{usage-limits-k50gg9mr.js → persistent-pty-wgkargf7.js} +5 -5
- package/dist/chunks/{usage-limits-007v2xwb.js → persistent-pty-wgtcexd1.js} +11 -11
- package/dist/chunks/{usage-limits-adfw2kqv.js → persistent-pty-wrexcg9h.js} +123 -93
- package/dist/chunks/{usage-limits-krqy0qqf.js → persistent-pty-wrwtw7ga.js} +22 -22
- package/dist/chunks/{usage-limits-ar7h7cxw.js → persistent-pty-wywdv46c.js} +9 -9
- package/dist/chunks/{usage-limits-89zxy6kj.js → persistent-pty-x23x0wry.js} +4 -4
- package/dist/chunks/{usage-limits-sjt0mtq1.js → persistent-pty-x50d9hj1.js} +25 -25
- package/dist/chunks/{usage-limits-qa2jv7nb.js → persistent-pty-x58n5ad0.js} +22 -22
- package/dist/chunks/{usage-limits-xacrkbdt.js → persistent-pty-xacrkbdt.js} +1 -1
- package/dist/chunks/{usage-limits-xfrnyd0a.js → persistent-pty-xfrnyd0a.js} +3 -3
- package/dist/chunks/{usage-limits-xxschbft.js → persistent-pty-xjr6c8m4.js} +4 -4
- package/dist/chunks/{usage-limits-gkqyq5r9.js → persistent-pty-xqf1esm3.js} +15 -15
- package/dist/chunks/{usage-limits-n320gsn2.js → persistent-pty-xvn8mnch.js} +4 -4
- package/dist/chunks/{usage-limits-xz07m27x.js → persistent-pty-xz07m27x.js} +2 -2
- package/dist/chunks/{usage-limits-ejgeqqx1.js → persistent-pty-y1m2rnym.js} +8 -8
- package/dist/chunks/{usage-limits-sfrpj36e.js → persistent-pty-y1y23t3y.js} +30 -30
- package/dist/chunks/{usage-limits-hvd5tw3z.js → persistent-pty-y2w37hak.js} +13 -13
- package/dist/chunks/{usage-limits-6529fwjr.js → persistent-pty-y41qxc5h.js} +177 -177
- package/dist/chunks/{usage-limits-a4ycrxnw.js → persistent-pty-y97mqv4w.js} +11 -11
- package/dist/chunks/{usage-limits-yb20nhc3.js → persistent-pty-yb20nhc3.js} +1 -1
- package/dist/chunks/{usage-limits-qf9gv2d2.js → persistent-pty-yph8mn9x.js} +19 -19
- package/dist/chunks/{usage-limits-mcxvs31m.js → persistent-pty-yqx1adnq.js} +8 -8
- package/dist/chunks/{usage-limits-yr705xyq.js → persistent-pty-yr705xyq.js} +1 -1
- package/dist/chunks/{usage-limits-yvtc2x31.js → persistent-pty-yvtc2x31.js} +1 -1
- package/dist/chunks/{usage-limits-y32xxt00.js → persistent-pty-ywh3xphk.js} +4 -4
- package/dist/chunks/{usage-limits-9dckqgd9.js → persistent-pty-yy55rm4m.js} +13 -13
- package/dist/chunks/{usage-limits-kkshxp48.js → persistent-pty-z513bby0.js} +16 -16
- package/dist/chunks/{usage-limits-ac1r7wtz.js → persistent-pty-z748rwvz.js} +47 -47
- package/dist/chunks/{usage-limits-gtg5artq.js → persistent-pty-z89td5m9.js} +10 -10
- package/dist/chunks/{usage-limits-204d346f.js → persistent-pty-zg7tww6y.js} +8 -8
- package/dist/chunks/{usage-limits-8aq22acg.js → persistent-pty-zhqvvmqm.js} +8 -8
- package/dist/chunks/{usage-limits-kzb30q6z.js → persistent-pty-znnqj7m1.js} +16 -16
- package/dist/chunks/{usage-limits-z67zmw03.js → persistent-pty-zzha20a8.js} +39 -39
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/execution.js +3 -3
- package/dist/codemode/fetch.js +149 -149
- package/dist/codemode/instructions.js +5 -5
- package/dist/codemode/tool.js +156 -156
- package/dist/command.js +92 -92
- package/dist/config/discovery.js +95 -95
- package/dist/config/integration.js +1 -1
- 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 +242 -242
- 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 +146 -146
- 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 +126 -126
- 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 +77 -77
- 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 +76 -76
- 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 +105 -105
- package/dist/effect/app-node-builder.js +442 -442
- 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 +105 -105
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +109 -109
- 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 +84 -84
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +255 -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 +3 -3
- package/dist/filesystem.js +116 -116
- package/dist/flag.js +132 -132
- package/dist/form.js +87 -87
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +100 -100
- package/dist/generate.js +119 -119
- package/dist/git.js +11 -11
- 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 +433 -433
- package/dist/instruction-discovery.js +91 -91
- package/dist/instructions/builtins.js +100 -100
- package/dist/instructions/index.js +1 -1
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +94 -94
- package/dist/job/list.js +5 -5
- package/dist/job/recovery.js +2 -2
- package/dist/job/sql.js +2 -2
- package/dist/job.js +88 -88
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +84 -84
- package/dist/location-activity.js +181 -181
- package/dist/location-lifecycle.js +154 -154
- package/dist/location-service-map.js +99 -99
- package/dist/location-services.js +430 -430
- package/dist/location.js +100 -100
- 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 +118 -118
- package/dist/mcp/instructions.js +190 -190
- package/dist/mcp/oauth.js +86 -86
- package/dist/mcp/pool.js +110 -110
- package/dist/mcp/socket-client.js +1 -1
- package/dist/mcp/stdio.js +158 -158
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +105 -105
- package/dist/model-resolver.js +113 -113
- package/dist/model-retry.js +1 -1
- package/dist/model.js +114 -114
- package/dist/models-dev/v1.js +1 -1
- package/dist/models-dev.js +118 -118
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +87 -87
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +151 -151
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +5 -3
- package/dist/persistent-pty/index.js +97 -93
- 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 +119 -119
- package/dist/plugin/goal.js +3 -3
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +246 -246
- package/dist/plugin/identity.js +5 -5
- package/dist/plugin/instance.js +1 -1
- package/dist/plugin/internal.js +409 -409
- 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 +2 -2
- 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 +134 -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 +9 -9
- 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 +114 -114
- 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 +111 -111
- 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 +110 -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 +141 -141
- package/dist/plugin/provider/local.js +138 -138
- 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 +141 -141
- package/dist/plugin/provider/openai-context-caps.js +107 -107
- package/dist/plugin/provider/openai.js +134 -134
- 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 +90 -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 +132 -132
- package/dist/plugin/provider/vllm.js +141 -141
- package/dist/plugin/provider/xai.js +105 -105
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +240 -240
- package/dist/plugin/sdk.js +87 -87
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +151 -151
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +419 -419
- 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 +129 -129
- package/dist/plugin/websearch/exa.js +8 -8
- package/dist/plugin/websearch/firecrawl.js +7 -7
- 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 +7 -7
- package/dist/plugin.js +253 -253
- package/dist/project/icon.js +5 -5
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +101 -101
- package/dist/provider.js +113 -113
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +111 -111
- package/dist/reference/instructions.js +101 -101
- package/dist/reference.js +97 -97
- package/dist/repository-cache.js +93 -93
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +109 -109
- package/dist/rpc.js +99 -99
- package/dist/schedule/check.js +251 -251
- package/dist/schedule/sql.js +6 -6
- package/dist/schedule.js +265 -265
- 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 +133 -133
- package/dist/session/command.js +85 -85
- package/dist/session/compaction.js +176 -176
- 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 +3 -3
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +249 -249
- package/dist/session/execution.js +170 -170
- 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 +88 -88
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +147 -147
- 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 +172 -172
- package/dist/session/projector.js +147 -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 +257 -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 +5 -5
- package/dist/session/runner/step.js +165 -165
- package/dist/session/runner/to-llm-message.js +141 -141
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +187 -187
- package/dist/session/shell.js +146 -146
- 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 +1 -1
- package/dist/session/subagent-job.js +235 -235
- package/dist/session/system-prompt.js +1 -1
- package/dist/session/title.js +204 -204
- package/dist/session/to-session-error.js +153 -153
- package/dist/session/transfer.js +249 -249
- package/dist/session/usage.js +1 -1
- package/dist/session.js +241 -241
- package/dist/shared-cache.js +5 -5
- package/dist/shell/parse.js +6 -6
- package/dist/shell/result.js +3 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +9 -9
- package/dist/shell.js +146 -146
- package/dist/skill/discovery.js +2 -2
- package/dist/skill/instructions.js +155 -155
- package/dist/skill.js +156 -156
- package/dist/snapshot.js +104 -104
- package/dist/state.js +1 -1
- package/dist/tool/html-markdown.js +1 -1
- package/dist/tool/http-body.js +1 -1
- package/dist/tool/mcp.js +189 -189
- package/dist/tool/plugin/artifact.js +238 -238
- package/dist/tool/plugin/edit.js +171 -171
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +173 -173
- package/dist/tool/plugin/grep.js +174 -174
- package/dist/tool/plugin/image-generate.js +249 -249
- package/dist/tool/plugin/mcp-resource.js +170 -170
- package/dist/tool/plugin/opencode.js +167 -167
- package/dist/tool/plugin/patch.js +170 -170
- package/dist/tool/plugin/question.js +150 -150
- package/dist/tool/plugin/read.js +176 -176
- package/dist/tool/plugin/schedule.js +257 -257
- package/dist/tool/plugin/shell.js +241 -241
- package/dist/tool/plugin/skill.js +159 -159
- package/dist/tool/plugin/subagent.js +244 -244
- 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 +172 -172
- package/dist/tool/read-filesystem.js +114 -114
- 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 +164 -164
- package/dist/types/persistent-pty/daemon.d.ts +691 -231
- package/dist/types/persistent-pty/index.d.ts +77 -8
- package/dist/types/session/run-coordinator.d.ts +2 -0
- package/dist/types/session/runner/index.d.ts +2 -0
- package/dist/types/session/runner/step.d.ts +2 -0
- package/dist/types/shell/result.d.ts +5 -0
- package/dist/types/shell.d.ts +5 -1
- package/dist/types/tool.d.ts +2 -0
- package/dist/usage-limits.js +100 -100
- 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 +7 -7
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/mcp.js +2 -2
- package/dist/v1/config/migrate.js +106 -106
- package/dist/v1/config/permission.js +3 -3
- package/dist/v1/config/plugin.js +1 -1
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/variant.js +105 -105
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +100 -100
- package/dist/voice.js +101 -101
- package/dist/websearch.js +91 -91
- package/dist/wellknown/plugin.js +87 -87
- package/dist/wellknown.js +86 -86
- 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 +9 -9
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +98 -98
- package/dist/worktree.js +105 -105
- package/package.json +9 -9
- package/dist/chunks/usage-limits-67zk70a4.js +0 -273
- package/dist/chunks/usage-limits-cs4r3jr9.js +0 -577
- package/dist/chunks/usage-limits-grzehpz7.js +0 -18
- /package/dist/chunks/{usage-limits-0qkdqm5v.js → persistent-pty-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{usage-limits-0zkw76rk.js → persistent-pty-0zkw76rk.js} +0 -0
- /package/dist/chunks/{usage-limits-17cy0kzp.js → persistent-pty-17cy0kzp.js} +0 -0
- /package/dist/chunks/{usage-limits-1cnp2v09.js → persistent-pty-1cnp2v09.js} +0 -0
- /package/dist/chunks/{usage-limits-1kah00gy.js → persistent-pty-1kah00gy.js} +0 -0
- /package/dist/chunks/{usage-limits-24dcb14g.js → persistent-pty-24dcb14g.js} +0 -0
- /package/dist/chunks/{usage-limits-2710q6r3.js → persistent-pty-2710q6r3.js} +0 -0
- /package/dist/chunks/{usage-limits-2c3vjs8z.js → persistent-pty-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{usage-limits-359p4xyc.js → persistent-pty-359p4xyc.js} +0 -0
- /package/dist/chunks/{usage-limits-3v8g72cx.js → persistent-pty-3v8g72cx.js} +0 -0
- /package/dist/chunks/{usage-limits-43n2bw4t.js → persistent-pty-43n2bw4t.js} +0 -0
- /package/dist/chunks/{usage-limits-4knz6hnm.js → persistent-pty-4knz6hnm.js} +0 -0
- /package/dist/chunks/{usage-limits-4qk9sjk2.js → persistent-pty-4qk9sjk2.js} +0 -0
- /package/dist/chunks/{usage-limits-53557ph1.js → persistent-pty-53557ph1.js} +0 -0
- /package/dist/chunks/{usage-limits-5w3e23ze.js → persistent-pty-5w3e23ze.js} +0 -0
- /package/dist/chunks/{usage-limits-6agm2x70.js → persistent-pty-6agm2x70.js} +0 -0
- /package/dist/chunks/{usage-limits-6prwharc.js → persistent-pty-6prwharc.js} +0 -0
- /package/dist/chunks/{usage-limits-6q2bdcd1.js → persistent-pty-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{usage-limits-7akdwqpd.js → persistent-pty-7akdwqpd.js} +0 -0
- /package/dist/chunks/{usage-limits-7m9af43g.js → persistent-pty-7m9af43g.js} +0 -0
- /package/dist/chunks/{usage-limits-822emrt2.js → persistent-pty-822emrt2.js} +0 -0
- /package/dist/chunks/{usage-limits-84wd9syh.js → persistent-pty-84wd9syh.js} +0 -0
- /package/dist/chunks/{usage-limits-88xbtdfr.js → persistent-pty-88xbtdfr.js} +0 -0
- /package/dist/chunks/{usage-limits-8n3pysct.js → persistent-pty-8n3pysct.js} +0 -0
- /package/dist/chunks/{usage-limits-8wj87zfr.js → persistent-pty-8wj87zfr.js} +0 -0
- /package/dist/chunks/{usage-limits-9a4afbnw.js → persistent-pty-9a4afbnw.js} +0 -0
- /package/dist/chunks/{usage-limits-9rqn6x4v.js → persistent-pty-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{usage-limits-aqzs7mqg.js → persistent-pty-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{usage-limits-atq7p7m5.js → persistent-pty-atq7p7m5.js} +0 -0
- /package/dist/chunks/{usage-limits-beh6qq61.js → persistent-pty-beh6qq61.js} +0 -0
- /package/dist/chunks/{usage-limits-bkyjaxrp.js → persistent-pty-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{usage-limits-bmr6ed5q.js → persistent-pty-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{usage-limits-cf4snx6d.js → persistent-pty-cf4snx6d.js} +0 -0
- /package/dist/chunks/{usage-limits-cqv5kn06.js → persistent-pty-cqv5kn06.js} +0 -0
- /package/dist/chunks/{usage-limits-cvy3z8tj.js → persistent-pty-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{usage-limits-d9fn303g.js → persistent-pty-d9fn303g.js} +0 -0
- /package/dist/chunks/{usage-limits-d9jj8t3e.js → persistent-pty-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{usage-limits-df08tz66.js → persistent-pty-df08tz66.js} +0 -0
- /package/dist/chunks/{usage-limits-dy18nga0.js → persistent-pty-dy18nga0.js} +0 -0
- /package/dist/chunks/{usage-limits-e5kj55wp.js → persistent-pty-e5kj55wp.js} +0 -0
- /package/dist/chunks/{usage-limits-ean2d8b5.js → persistent-pty-ean2d8b5.js} +0 -0
- /package/dist/chunks/{usage-limits-ec1grn59.js → persistent-pty-ec1grn59.js} +0 -0
- /package/dist/chunks/{usage-limits-emrn6kk6.js → persistent-pty-emrn6kk6.js} +0 -0
- /package/dist/chunks/{usage-limits-f0mxakyp.js → persistent-pty-f0mxakyp.js} +0 -0
- /package/dist/chunks/{usage-limits-f6n9ztr4.js → persistent-pty-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{usage-limits-faypxj3z.js → persistent-pty-faypxj3z.js} +0 -0
- /package/dist/chunks/{usage-limits-fd410y7t.js → persistent-pty-fd410y7t.js} +0 -0
- /package/dist/chunks/{usage-limits-fkpq3x5p.js → persistent-pty-fkpq3x5p.js} +0 -0
- /package/dist/chunks/{usage-limits-g86h250q.js → persistent-pty-g86h250q.js} +0 -0
- /package/dist/chunks/{usage-limits-gebd4c9n.js → persistent-pty-gebd4c9n.js} +0 -0
- /package/dist/chunks/{usage-limits-gftt206x.js → persistent-pty-gftt206x.js} +0 -0
- /package/dist/chunks/{usage-limits-hcxmzztb.js → persistent-pty-hcxmzztb.js} +0 -0
- /package/dist/chunks/{usage-limits-hk9envan.js → persistent-pty-hk9envan.js} +0 -0
- /package/dist/chunks/{usage-limits-j2ntwpah.js → persistent-pty-j2ntwpah.js} +0 -0
- /package/dist/chunks/{usage-limits-jjkms2e6.js → persistent-pty-jjkms2e6.js} +0 -0
- /package/dist/chunks/{usage-limits-jr7sbwjy.js → persistent-pty-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{usage-limits-jwfs4k6c.js → persistent-pty-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{usage-limits-jwr30sdr.js → persistent-pty-jwr30sdr.js} +0 -0
- /package/dist/chunks/{usage-limits-jzg6c2d5.js → persistent-pty-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{usage-limits-m18g726c.js → persistent-pty-m18g726c.js} +0 -0
- /package/dist/chunks/{usage-limits-mp448xyj.js → persistent-pty-mp448xyj.js} +0 -0
- /package/dist/chunks/{usage-limits-msx8hqn2.js → persistent-pty-msx8hqn2.js} +0 -0
- /package/dist/chunks/{usage-limits-n05xt0ee.js → persistent-pty-n05xt0ee.js} +0 -0
- /package/dist/chunks/{usage-limits-n3j8tn72.js → persistent-pty-n3j8tn72.js} +0 -0
- /package/dist/chunks/{usage-limits-nh4v3znn.js → persistent-pty-nh4v3znn.js} +0 -0
- /package/dist/chunks/{usage-limits-njntx4h6.js → persistent-pty-njntx4h6.js} +0 -0
- /package/dist/chunks/{usage-limits-p71gwv9c.js → persistent-pty-p71gwv9c.js} +0 -0
- /package/dist/chunks/{usage-limits-q3sfg36h.js → persistent-pty-q3sfg36h.js} +0 -0
- /package/dist/chunks/{usage-limits-q74kybfr.js → persistent-pty-q74kybfr.js} +0 -0
- /package/dist/chunks/{usage-limits-qb87gjwd.js → persistent-pty-qb87gjwd.js} +0 -0
- /package/dist/chunks/{usage-limits-qfa1cgps.js → persistent-pty-qfa1cgps.js} +0 -0
- /package/dist/chunks/{usage-limits-qg3g05ea.js → persistent-pty-qg3g05ea.js} +0 -0
- /package/dist/chunks/{usage-limits-qrg20bc0.js → persistent-pty-qrg20bc0.js} +0 -0
- /package/dist/chunks/{usage-limits-rcb2kzg1.js → persistent-pty-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{usage-limits-sdp7kfr6.js → persistent-pty-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{usage-limits-ssg3fenm.js → persistent-pty-ssg3fenm.js} +0 -0
- /package/dist/chunks/{usage-limits-syrav9an.js → persistent-pty-syrav9an.js} +0 -0
- /package/dist/chunks/{usage-limits-t03h4f5z.js → persistent-pty-t03h4f5z.js} +0 -0
- /package/dist/chunks/{usage-limits-ty7weeps.js → persistent-pty-ty7weeps.js} +0 -0
- /package/dist/chunks/{usage-limits-ve7vex1e.js → persistent-pty-ve7vex1e.js} +0 -0
- /package/dist/chunks/{usage-limits-vtarvj67.js → persistent-pty-vtarvj67.js} +0 -0
- /package/dist/chunks/{usage-limits-w803qqfp.js → persistent-pty-w803qqfp.js} +0 -0
- /package/dist/chunks/{usage-limits-wc3fc9cn.js → persistent-pty-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{usage-limits-wer8tq1h.js → persistent-pty-wer8tq1h.js} +0 -0
- /package/dist/chunks/{usage-limits-wtztk69x.js → persistent-pty-wtztk69x.js} +0 -0
- /package/dist/chunks/{usage-limits-x4th4bpe.js → persistent-pty-x4th4bpe.js} +0 -0
- /package/dist/chunks/{usage-limits-y44na4kk.js → persistent-pty-y44na4kk.js} +0 -0
- /package/dist/chunks/{usage-limits-y8f7s663.js → persistent-pty-y8f7s663.js} +0 -0
- /package/dist/chunks/{usage-limits-ygaqb7jw.js → persistent-pty-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{usage-limits-z0h12gs8.js → persistent-pty-z0h12gs8.js} +0 -0
- /package/dist/chunks/{usage-limits-z5v4ffb3.js → persistent-pty-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{usage-limits-z9919s4g.js → persistent-pty-z9919s4g.js} +0 -0
- /package/dist/chunks/{usage-limits-zxpyjp51.js → persistent-pty-zxpyjp51.js} +0 -0
- /package/dist/chunks/{usage-limits-zz5vv3aq.js → persistent-pty-zz5vv3aq.js} +0 -0
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PositiveInt2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./persistent-pty-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
5
|
Action2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./persistent-pty-9q8g9sv8.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
Info18
|
|
9
|
+
} from "./persistent-pty-80m5xgxj.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
Info22
|
|
12
|
+
} from "./persistent-pty-j3f8hyeg.js";
|
|
13
13
|
import {
|
|
14
14
|
Info20
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./persistent-pty-jv5ccajn.js";
|
|
16
16
|
import {
|
|
17
17
|
Spec2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./persistent-pty-1yq9hg58.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
21
|
-
} from "./
|
|
20
|
+
Info21
|
|
21
|
+
} from "./persistent-pty-7nb8tm12.js";
|
|
22
22
|
import {
|
|
23
23
|
normalizeAction2,
|
|
24
24
|
migrateAgent2,
|
|
@@ -28,10 +28,10 @@ import {
|
|
|
28
28
|
migrateMcp2,
|
|
29
29
|
migrateProvider2,
|
|
30
30
|
providerID2
|
|
31
|
-
} from "./
|
|
31
|
+
} from "./persistent-pty-7taaxv95.js";
|
|
32
32
|
import {
|
|
33
33
|
__export
|
|
34
|
-
} from "./
|
|
34
|
+
} from "./persistent-pty-9rqn6x4v.js";
|
|
35
35
|
|
|
36
36
|
// src/config/normalize.ts
|
|
37
37
|
var exports_normalize = {};
|
|
@@ -98,12 +98,12 @@ function normalize3(input) {
|
|
|
98
98
|
const legacyReferences = decodeMap(input.reference, ConfigReference.Entry, ["reference"], diagnostics, decodeEncoded);
|
|
99
99
|
const nativeReferences = decodeMap(input.references, ConfigReference.Entry, ["references"], diagnostics, decodeEncoded);
|
|
100
100
|
mergeMap(encoded, "references", legacyReferences, nativeReferences, isRecord(input.reference) || isRecord(input.references), diagnostics);
|
|
101
|
-
const legacyCommands = decodeMap(input.command,
|
|
101
|
+
const legacyCommands = decodeMap(input.command, Info22, ["command"], diagnostics, decodeValue);
|
|
102
102
|
diagnoseSelectionMap(input.command, ["command"], diagnostics);
|
|
103
103
|
const migratedCommands = mapValues(legacyCommands, (value) => canonical(ConfigCommand.Info, migrateCommand2(value)));
|
|
104
104
|
const nativeCommands = decodeMap(input.commands, ConfigCommand.Info, ["commands"], diagnostics, decodeEncoded);
|
|
105
105
|
mergeMap(encoded, "commands", migratedCommands, nativeCommands, isRecord(input.command) || isRecord(input.commands), diagnostics);
|
|
106
|
-
const legacyAgents = mapValues(decodeMap(input.agent,
|
|
106
|
+
const legacyAgents = mapValues(decodeMap(input.agent, Info18, ["agent"], diagnostics, decodeValue), (value) => canonical(ConfigAgent.Info, migrateAgent2(value)));
|
|
107
107
|
const legacySmallModel = own(input, "small_model") ? decodeValue(Schema.String, input.small_model, ["small_model"], diagnostics) : undefined;
|
|
108
108
|
const migratedSmallModel = modelSelection2(legacySmallModel);
|
|
109
109
|
if (legacySmallModel && !migratedSmallModel)
|
|
@@ -117,7 +117,7 @@ function normalize3(input) {
|
|
|
117
117
|
model: migratedSmallModel,
|
|
118
118
|
...legacyAgents.title
|
|
119
119
|
};
|
|
120
|
-
const modeAgents = mapValues(decodeMap(input.mode,
|
|
120
|
+
const modeAgents = mapValues(decodeMap(input.mode, Info18, ["mode"], diagnostics, decodeValue), (value) => canonical(ConfigAgent.Info, migrateAgent2({ ...value, mode: "primary" })));
|
|
121
121
|
const migratedAgents = mergeMaps(legacyAgents, modeAgents, ["agents"], diagnostics);
|
|
122
122
|
const nativeAgents = decodeMap(input.agents, ConfigAgent.Info, ["agents"], diagnostics, decodeEncoded);
|
|
123
123
|
diagnoseAgentUnsupported(input.agent, ["agent"], diagnostics);
|
|
@@ -428,7 +428,7 @@ function migrateProviders(value, diagnostics) {
|
|
|
428
428
|
diagnoseProviderUnsupported(raw, path, diagnostics);
|
|
429
429
|
if (invalidProviderOverlays(raw, path, diagnostics))
|
|
430
430
|
return [];
|
|
431
|
-
const provider = decodeValue(
|
|
431
|
+
const provider = decodeValue(Info21, raw, path, diagnostics);
|
|
432
432
|
if (provider === undefined)
|
|
433
433
|
return [];
|
|
434
434
|
const destination = providerID2(name);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service93,
|
|
3
3
|
node95
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./persistent-pty-epayv3ej.js";
|
|
5
5
|
import {
|
|
6
6
|
__export
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./persistent-pty-9rqn6x4v.js";
|
|
8
8
|
|
|
9
9
|
// src/form.ts
|
|
10
10
|
var exports_form = {};
|
|
@@ -12,12 +12,12 @@ __export(exports_form, {
|
|
|
12
12
|
AlreadyExistsError: () => AlreadyExistsError2,
|
|
13
13
|
AlreadySettledError: () => AlreadySettledError2,
|
|
14
14
|
Answer: () => Answer2,
|
|
15
|
-
Event: () =>
|
|
15
|
+
Event: () => Event19,
|
|
16
16
|
Field: () => Field2,
|
|
17
17
|
Fields: () => Fields2,
|
|
18
18
|
Form: () => exports_form,
|
|
19
|
-
ID: () =>
|
|
20
|
-
Info: () =>
|
|
19
|
+
ID: () => ID19,
|
|
20
|
+
Info: () => Info28,
|
|
21
21
|
InvalidAnswerError: () => InvalidAnswerError2,
|
|
22
22
|
InvalidFormError: () => InvalidFormError2,
|
|
23
23
|
NotFoundError: () => NotFoundError13,
|
|
@@ -33,10 +33,10 @@ __export(exports_form, {
|
|
|
33
33
|
import { Form } from "@opencode/schema/form";
|
|
34
34
|
import { Cache, Context, Deferred, Duration, Effect, Exit, Layer, Option, Schema } from "effect";
|
|
35
35
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
36
|
-
import { Event as
|
|
36
|
+
import { Event as Event19 } from "@opencode/schema/form";
|
|
37
37
|
var RETENTION = Duration.minutes(10);
|
|
38
|
-
var
|
|
39
|
-
var
|
|
38
|
+
var ID19 = Form.ID;
|
|
39
|
+
var Info28 = Form.Info;
|
|
40
40
|
var Field2 = Form.Field;
|
|
41
41
|
var Fields2 = Form.Fields;
|
|
42
42
|
var When3 = Form.When;
|
|
@@ -45,7 +45,7 @@ var Answer2 = Form.Answer;
|
|
|
45
45
|
var Reply3 = Form.Reply;
|
|
46
46
|
|
|
47
47
|
class NotFoundError13 extends Schema.TaggedError()("Form.NotFoundError", {
|
|
48
|
-
id:
|
|
48
|
+
id: ID19
|
|
49
49
|
}) {
|
|
50
50
|
get message() {
|
|
51
51
|
return `Form not found: ${this.id}`;
|
|
@@ -53,7 +53,7 @@ class NotFoundError13 extends Schema.TaggedError()("Form.NotFoundError", {
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
class AlreadySettledError2 extends Schema.TaggedError()("Form.AlreadySettledError", {
|
|
56
|
-
id:
|
|
56
|
+
id: ID19
|
|
57
57
|
}) {
|
|
58
58
|
get message() {
|
|
59
59
|
return `Form already settled: ${this.id}`;
|
|
@@ -61,7 +61,7 @@ class AlreadySettledError2 extends Schema.TaggedError()("Form.AlreadySettledErro
|
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
class AlreadyExistsError2 extends Schema.TaggedError()("Form.AlreadyExistsError", {
|
|
64
|
-
id:
|
|
64
|
+
id: ID19
|
|
65
65
|
}) {
|
|
66
66
|
get message() {
|
|
67
67
|
return `Form already exists: ${this.id}`;
|
|
@@ -69,7 +69,7 @@ class AlreadyExistsError2 extends Schema.TaggedError()("Form.AlreadyExistsError"
|
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
class InvalidAnswerError2 extends Schema.TaggedError()("Form.InvalidAnswerError", {
|
|
72
|
-
id:
|
|
72
|
+
id: ID19,
|
|
73
73
|
message: Schema.String
|
|
74
74
|
}) {
|
|
75
75
|
}
|
|
@@ -90,7 +90,7 @@ var layer29 = Layer.effect(Service88, Effect.gen(function* () {
|
|
|
90
90
|
});
|
|
91
91
|
const requireEntry = Effect.fn("Form.requireEntry")((id) => Cache.getSuccess(forms, id).pipe(Effect.flatMap((entry) => Effect.fromOption(entry, () => new NotFoundError13({ id })))));
|
|
92
92
|
const create = Effect.fn("Form.create")((input) => Effect.uninterruptible(Effect.gen(function* () {
|
|
93
|
-
const id = input.id ??
|
|
93
|
+
const id = input.id ?? ID19.create();
|
|
94
94
|
const existing = yield* Cache.getSuccess(forms, id);
|
|
95
95
|
if (Option.isSome(existing))
|
|
96
96
|
return yield* new AlreadyExistsError2({ id });
|
|
@@ -316,4 +316,4 @@ function isDateTime(value) {
|
|
|
316
316
|
return !Number.isNaN(new Date(value).getTime());
|
|
317
317
|
}
|
|
318
318
|
|
|
319
|
-
export {
|
|
319
|
+
export { ID19, Info28, Field2, Fields2, When3, State3, Answer2, Reply3, NotFoundError13, AlreadySettledError2, AlreadyExistsError2, InvalidAnswerError2, InvalidFormError2, Service88, layer29, node90, validateAnswer2, validateFields2, exports_form, Event19 };
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./persistent-pty-wb5wsb2j.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
register2
|
|
6
|
+
} from "./persistent-pty-xjr6c8m4.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./persistent-pty-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/plugin/websearch/tavily.ts
|
|
12
12
|
var exports_tavily = {};
|
|
13
13
|
__export(exports_tavily, {
|
|
14
|
-
Plugin: () =>
|
|
14
|
+
Plugin: () => Plugin24,
|
|
15
15
|
WebSearchTavily: () => exports_tavily,
|
|
16
|
-
endpoint: () =>
|
|
16
|
+
endpoint: () => endpoint6
|
|
17
17
|
});
|
|
18
18
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
19
19
|
import { Duration, Effect, Schema } from "effect";
|
|
20
20
|
import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/http";
|
|
21
|
-
var
|
|
21
|
+
var endpoint6 = "https://api.tavily.com/search";
|
|
22
22
|
var SearchRequest = Schema.Struct({
|
|
23
23
|
query: Schema.String,
|
|
24
24
|
search_depth: Schema.Literal("basic"),
|
|
@@ -32,16 +32,16 @@ var SearchResponse = Schema.Struct({
|
|
|
32
32
|
content: Schema.String
|
|
33
33
|
}))
|
|
34
34
|
});
|
|
35
|
-
var
|
|
35
|
+
var Plugin24 = define({
|
|
36
36
|
id: "opencode.websearch.tavily",
|
|
37
37
|
effect: Effect.fn("WebSearchTavily.Plugin")(function* (ctx) {
|
|
38
38
|
const http = yield* HttpClient.HttpClient;
|
|
39
|
-
yield*
|
|
39
|
+
yield* register2(ctx, {
|
|
40
40
|
id: "tavily",
|
|
41
41
|
name: "Tavily",
|
|
42
42
|
env: "TAVILY_API_KEY",
|
|
43
43
|
execute: (input, credential) => Effect.gen(function* () {
|
|
44
|
-
const request = yield* HttpClientRequest.post(
|
|
44
|
+
const request = yield* HttpClientRequest.post(endpoint6).pipe(HttpClientRequest.acceptJson, HttpClientRequest.setHeaders({
|
|
45
45
|
"User-Agent": useragent2(ctx.app),
|
|
46
46
|
"X-Client-Name": "opencode2",
|
|
47
47
|
...credential?.type === "key" ? { Authorization: `Bearer ${credential.key}` } : { "X-Tavily-Access-Mode": "keyless" }
|
|
@@ -66,4 +66,4 @@ var Plugin21 = define({
|
|
|
66
66
|
})
|
|
67
67
|
});
|
|
68
68
|
|
|
69
|
-
export {
|
|
69
|
+
export { endpoint6, Plugin24, exports_tavily };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
typeFollowing2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./persistent-pty-svcy3p9a.js";
|
|
4
4
|
import {
|
|
5
5
|
DEFAULT_SEARCH_TIMEOUT_MS2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./persistent-pty-7snvzf9y.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./persistent-pty-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/tool/search.ts
|
|
12
12
|
var exports_search = {};
|
|
@@ -1,31 +1,48 @@
|
|
|
1
1
|
// src/persistent-pty/daemon.ts
|
|
2
2
|
import { spawn } from "node:child_process";
|
|
3
|
-
import {
|
|
3
|
+
import { readFile } from "node:fs/promises";
|
|
4
4
|
import net from "node:net";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import { Cause, Data, Duration, Effect, Schema, Semaphore } from "effect";
|
|
7
|
-
|
|
8
|
-
var ProtocolVersion = 7;
|
|
7
|
+
var ProtocolVersion = 8;
|
|
9
8
|
var MaxFrameBytes = 8 * 1024 * 1024;
|
|
10
9
|
var Lifecycle = Schema.Union([
|
|
11
10
|
Schema.Struct({ status: Schema.Literal("running") }),
|
|
12
|
-
Schema.Struct({
|
|
11
|
+
Schema.Struct({
|
|
12
|
+
status: Schema.Literal("exited"),
|
|
13
|
+
exit_code: Schema.NullOr(Schema.Number),
|
|
14
|
+
signal: Schema.optional(Schema.NullOr(Schema.String))
|
|
15
|
+
}),
|
|
13
16
|
Schema.Struct({ status: Schema.Literal("failed"), message: Schema.String })
|
|
14
17
|
]);
|
|
15
|
-
var
|
|
16
|
-
id: Schema.Number,
|
|
17
|
-
pid: Schema.NullOr(Schema.Number),
|
|
18
|
+
var PtyInfo = Schema.Struct({
|
|
18
19
|
title: Schema.String,
|
|
19
|
-
user_title: Schema.
|
|
20
|
+
user_title: Schema.NullOr(Schema.String),
|
|
20
21
|
foreground_process: Schema.NullOr(Schema.String),
|
|
21
|
-
|
|
22
|
+
cols: Schema.Number,
|
|
23
|
+
rows: Schema.Number
|
|
24
|
+
});
|
|
25
|
+
var Metadata2 = Schema.Record(Schema.String, Schema.Unknown);
|
|
26
|
+
var PipeInfo = Schema.Struct({
|
|
27
|
+
output_path: Schema.String,
|
|
28
|
+
output_lines: Schema.Number,
|
|
29
|
+
output_error: Schema.optional(Schema.NullOr(Schema.String)),
|
|
30
|
+
metadata: Metadata2
|
|
31
|
+
});
|
|
32
|
+
var ProcessInfo2 = Schema.Struct({
|
|
33
|
+
id: Schema.Number,
|
|
34
|
+
mode: Schema.Literals(["pty", "pipe"]),
|
|
35
|
+
pid: Schema.NullOr(Schema.Number),
|
|
22
36
|
command: Schema.Array(Schema.String),
|
|
23
37
|
cwd: Schema.String,
|
|
24
|
-
|
|
25
|
-
rows: Schema.Number,
|
|
38
|
+
group_id: Schema.String,
|
|
26
39
|
lifecycle: Lifecycle,
|
|
27
40
|
output_head: Schema.Number,
|
|
28
|
-
output_tail: Schema.Number
|
|
41
|
+
output_tail: Schema.Number,
|
|
42
|
+
started_at: Schema.Number,
|
|
43
|
+
exited_at: Schema.optional(Schema.NullOr(Schema.Number)),
|
|
44
|
+
pty: Schema.optional(Schema.NullOr(PtyInfo)),
|
|
45
|
+
pipe: Schema.optional(Schema.NullOr(PipeInfo))
|
|
29
46
|
});
|
|
30
47
|
var Registration = Schema.Struct({
|
|
31
48
|
instance_id: Schema.String,
|
|
@@ -33,7 +50,7 @@ var Registration = Schema.Struct({
|
|
|
33
50
|
protocol: Schema.Number,
|
|
34
51
|
socket: Schema.String,
|
|
35
52
|
token: Schema.String,
|
|
36
|
-
features: Schema.
|
|
53
|
+
features: Schema.Array(Schema.String)
|
|
37
54
|
});
|
|
38
55
|
var WireResponse2 = Schema.Union([
|
|
39
56
|
Schema.Struct({
|
|
@@ -41,16 +58,17 @@ var WireResponse2 = Schema.Union([
|
|
|
41
58
|
instance_id: Schema.String,
|
|
42
59
|
pid: Schema.Number,
|
|
43
60
|
protocol: Schema.Number,
|
|
44
|
-
features: Schema.
|
|
61
|
+
features: Schema.Array(Schema.String)
|
|
45
62
|
}),
|
|
46
|
-
Schema.Struct({ type: Schema.Literal("created"),
|
|
47
|
-
Schema.Struct({ type: Schema.Literal("
|
|
63
|
+
Schema.Struct({ type: Schema.Literal("created"), process: ProcessInfo2 }),
|
|
64
|
+
Schema.Struct({ type: Schema.Literal("processes"), processes: Schema.Array(ProcessInfo2) }),
|
|
65
|
+
Schema.Struct({ type: Schema.Literal("process"), process: ProcessInfo2 }),
|
|
48
66
|
Schema.Struct({ type: Schema.Literal("ok") }),
|
|
49
67
|
Schema.Struct({ type: Schema.Literal("owned") }),
|
|
50
68
|
Schema.Struct({ type: Schema.Literal("handoff"), ticket: Schema.String, expires_at: Schema.Number }),
|
|
51
69
|
Schema.Struct({
|
|
52
70
|
type: Schema.Literal("snapshot"),
|
|
53
|
-
|
|
71
|
+
process: ProcessInfo2,
|
|
54
72
|
text: Schema.String,
|
|
55
73
|
checkpoint_base64: Schema.String,
|
|
56
74
|
cursor_x: Schema.Number,
|
|
@@ -58,14 +76,14 @@ var WireResponse2 = Schema.Union([
|
|
|
58
76
|
}),
|
|
59
77
|
Schema.Struct({
|
|
60
78
|
type: Schema.Literal("rows"),
|
|
61
|
-
|
|
79
|
+
process: ProcessInfo2,
|
|
62
80
|
lines: Schema.Array(Schema.String),
|
|
63
81
|
cursor_x: Schema.Number,
|
|
64
82
|
cursor_y: Schema.Number
|
|
65
83
|
}),
|
|
66
84
|
Schema.Struct({
|
|
67
85
|
type: Schema.Literal("attached"),
|
|
68
|
-
|
|
86
|
+
process: ProcessInfo2,
|
|
69
87
|
role: Schema.Literals(["controller", "observer"]),
|
|
70
88
|
generation: Schema.Number,
|
|
71
89
|
requested_offset: Schema.Number,
|
|
@@ -84,7 +102,11 @@ var WireResponse2 = Schema.Union([
|
|
|
84
102
|
Schema.Struct({
|
|
85
103
|
type: Schema.Literal("exited"),
|
|
86
104
|
exit_code: Schema.NullOr(Schema.Number),
|
|
87
|
-
|
|
105
|
+
signal: Schema.optional(Schema.NullOr(Schema.String)),
|
|
106
|
+
final_offset: Schema.Number,
|
|
107
|
+
output_lines: Schema.optional(Schema.Number),
|
|
108
|
+
output_error: Schema.optional(Schema.NullOr(Schema.String)),
|
|
109
|
+
exited_at: Schema.Number
|
|
88
110
|
}),
|
|
89
111
|
Schema.Struct({
|
|
90
112
|
type: Schema.Literal("controller_changed"),
|
|
@@ -104,6 +126,7 @@ var makeDaemonTransport2 = Effect.fn("PersistentPty.makeDaemonTransport")(functi
|
|
|
104
126
|
let registration;
|
|
105
127
|
let owner;
|
|
106
128
|
let closed = false;
|
|
129
|
+
let incompatible;
|
|
107
130
|
yield* Effect.addFinalizer(() => Effect.sync(() => {
|
|
108
131
|
closed = true;
|
|
109
132
|
owner?.socket.destroy();
|
|
@@ -144,13 +167,17 @@ var makeDaemonTransport2 = Effect.fn("PersistentPty.makeDaemonTransport")(functi
|
|
|
144
167
|
const response = yield* oneShot(decoded, { op: "ping" });
|
|
145
168
|
if (response.type !== "pong" || response.instance_id !== decoded.instance_id || response.pid !== decoded.pid || response.protocol !== ProtocolVersion)
|
|
146
169
|
return yield* Effect.fail(new DaemonError2({ kind: "protocol", message: "opencode-pty registration mismatch" }));
|
|
147
|
-
return
|
|
170
|
+
return decoded;
|
|
148
171
|
});
|
|
149
172
|
const spawnDaemon = Effect.fn("PersistentPty.daemon.spawn")(function* () {
|
|
150
173
|
const executable = yield* Effect.tryPromise({ try: binary, catch: (cause) => failure("spawn", cause) });
|
|
151
174
|
const child = yield* Effect.tryPromise({
|
|
152
175
|
try: () => new Promise((resolve, reject) => {
|
|
153
|
-
const child = spawn(executable, ["daemon", "--runtime-dir", root, "--name", id], {
|
|
176
|
+
const child = spawn(executable, ["daemon", "--runtime-dir", root, "--name", id], {
|
|
177
|
+
detached: true,
|
|
178
|
+
windowsHide: true,
|
|
179
|
+
stdio: "ignore"
|
|
180
|
+
});
|
|
154
181
|
child.once("spawn", () => {
|
|
155
182
|
child.unref();
|
|
156
183
|
resolve(child);
|
|
@@ -164,6 +191,10 @@ var makeDaemonTransport2 = Effect.fn("PersistentPty.makeDaemonTransport")(functi
|
|
|
164
191
|
let last;
|
|
165
192
|
while (Date.now() < deadline && child.exitCode === null && child.signalCode === null) {
|
|
166
193
|
const found = yield* discover().pipe(Effect.map((value) => ({ value })), Effect.catch((error) => {
|
|
194
|
+
if (error.kind === "protocol" && error.pid !== undefined && error.pid === child.pid) {
|
|
195
|
+
incompatible = error;
|
|
196
|
+
return Effect.fail(error);
|
|
197
|
+
}
|
|
167
198
|
last = error;
|
|
168
199
|
return Effect.succeed(undefined);
|
|
169
200
|
}));
|
|
@@ -179,6 +210,8 @@ var makeDaemonTransport2 = Effect.fn("PersistentPty.makeDaemonTransport")(functi
|
|
|
179
210
|
})));
|
|
180
211
|
});
|
|
181
212
|
const start = () => spawnDaemon().pipe(Effect.catch((error) => Effect.gen(function* () {
|
|
213
|
+
if (error.kind === "spawn" || error === incompatible)
|
|
214
|
+
return yield* Effect.fail(error);
|
|
182
215
|
yield* Effect.logWarning("Starting opencode-pty in a fresh runtime directory", { cause: error.message });
|
|
183
216
|
abandon();
|
|
184
217
|
return yield* spawnDaemon();
|
|
@@ -199,7 +232,7 @@ var makeDaemonTransport2 = Effect.fn("PersistentPty.makeDaemonTransport")(functi
|
|
|
199
232
|
return registration;
|
|
200
233
|
const found = yield* discover().pipe(Effect.catch((error) => {
|
|
201
234
|
if (shouldStart && error.kind === "connect")
|
|
202
|
-
return start();
|
|
235
|
+
return incompatible ? Effect.fail(incompatible) : start();
|
|
203
236
|
return Effect.fail(error);
|
|
204
237
|
}));
|
|
205
238
|
if (!owner)
|
|
@@ -230,9 +263,12 @@ var makeDaemonTransport2 = Effect.fn("PersistentPty.makeDaemonTransport")(functi
|
|
|
230
263
|
}));
|
|
231
264
|
});
|
|
232
265
|
const requestIfRunning = (value) => request(value).pipe(Effect.catch((error) => error.kind === "connect" ? Effect.succeed(undefined) : Effect.fail(error)));
|
|
233
|
-
const
|
|
234
|
-
const
|
|
235
|
-
|
|
266
|
+
const wait = Effect.fn("PersistentPty.daemon.wait")(function* (processID) {
|
|
267
|
+
const attempt = withRegistration(false, (current) => Effect.tryPromise({
|
|
268
|
+
try: (signal) => waitPromise(current, processID, signal),
|
|
269
|
+
catch: (cause) => cause instanceof DaemonError2 ? cause : failure("connect", cause)
|
|
270
|
+
}));
|
|
271
|
+
return yield* attempt.pipe(Effect.catch((error) => error.kind === "registration" ? attempt : Effect.fail(error)));
|
|
236
272
|
});
|
|
237
273
|
const shutdown = Effect.gen(function* () {
|
|
238
274
|
const response = yield* requestIfRunning({ op: "shutdown" });
|
|
@@ -285,8 +321,6 @@ var makeDaemonTransport2 = Effect.fn("PersistentPty.makeDaemonTransport")(functi
|
|
|
285
321
|
found = yield* discover(inherited.directory);
|
|
286
322
|
if (found.instance_id !== inherited.instanceID)
|
|
287
323
|
return yield* Effect.fail(new DaemonError2({ kind: "registration", message: "PTY restart daemon changed" }));
|
|
288
|
-
if (path.resolve(inherited.directory) !== path.resolve(root, id))
|
|
289
|
-
yield* migrate(inherited.directory, path.join(root, id));
|
|
290
324
|
yield* claim(found, inherited.ticket);
|
|
291
325
|
}).pipe(Effect.catchCause((cause) => Effect.gen(function* () {
|
|
292
326
|
if (Cause.hasInterruptsOnly(cause))
|
|
@@ -299,17 +333,7 @@ var makeDaemonTransport2 = Effect.fn("PersistentPty.makeDaemonTransport")(functi
|
|
|
299
333
|
abandon();
|
|
300
334
|
})));
|
|
301
335
|
}
|
|
302
|
-
return { request, requestIfRunning,
|
|
303
|
-
});
|
|
304
|
-
var migrate = Effect.fn("PersistentPty.daemon.migrate")(function* (directory, target) {
|
|
305
|
-
yield* Effect.tryPromise({
|
|
306
|
-
try: async () => {
|
|
307
|
-
await mkdir(target, { recursive: true, mode: 448 });
|
|
308
|
-
await rename(path.join(directory, "service.lock"), path.join(target, "service.lock"));
|
|
309
|
-
await rename(path.join(directory, "service.json"), path.join(target, "service.json"));
|
|
310
|
-
},
|
|
311
|
-
catch: (cause) => failure("registration", cause)
|
|
312
|
-
});
|
|
336
|
+
return { request, requestIfRunning, wait, shutdown, handoff, subscribe };
|
|
313
337
|
});
|
|
314
338
|
async function openOwner(registration, ticket, signal) {
|
|
315
339
|
const socket = net.createConnection({ path: registration.socket });
|
|
@@ -390,7 +414,7 @@ var oneShot = Effect.fn("PersistentPty.daemon.oneShot")(function* (registration,
|
|
|
390
414
|
});
|
|
391
415
|
const response = yield* Effect.try({
|
|
392
416
|
try: () => decode(first),
|
|
393
|
-
catch: (cause) => failure("
|
|
417
|
+
catch: (cause) => failure("response", cause)
|
|
394
418
|
});
|
|
395
419
|
if (response.type === "error")
|
|
396
420
|
return yield* Effect.fail(responseError(response.message));
|
|
@@ -480,7 +504,7 @@ async function subscribePromise(registration, id, input) {
|
|
|
480
504
|
};
|
|
481
505
|
let activated = false;
|
|
482
506
|
return {
|
|
483
|
-
terminal: response.
|
|
507
|
+
terminal: response.process,
|
|
484
508
|
role: response.role,
|
|
485
509
|
generation: response.generation,
|
|
486
510
|
replay: {
|
|
@@ -508,6 +532,30 @@ async function subscribePromise(registration, id, input) {
|
|
|
508
532
|
throw error;
|
|
509
533
|
}
|
|
510
534
|
}
|
|
535
|
+
async function waitPromise(registration, id, signal) {
|
|
536
|
+
const socket = net.createConnection({ path: registration.socket });
|
|
537
|
+
const abort = () => socket.destroy();
|
|
538
|
+
signal.addEventListener("abort", abort, { once: true });
|
|
539
|
+
try {
|
|
540
|
+
await new Promise((resolve, reject) => {
|
|
541
|
+
socket.once("connect", resolve);
|
|
542
|
+
socket.once("error", reject);
|
|
543
|
+
});
|
|
544
|
+
socket.write(encode({ token: registration.token, request: { op: "wait", id } }));
|
|
545
|
+
const frame = await decoder(socket).next();
|
|
546
|
+
if (frame.done)
|
|
547
|
+
throw failure("connect", "opencode-pty closed before the process exited");
|
|
548
|
+
const response = decode(frame.value);
|
|
549
|
+
if (response.type === "error")
|
|
550
|
+
throw responseError(response.message);
|
|
551
|
+
if (response.type !== "exited")
|
|
552
|
+
throw failure("response", `unexpected opencode-pty response: ${response.type}`);
|
|
553
|
+
return response;
|
|
554
|
+
} finally {
|
|
555
|
+
signal.removeEventListener("abort", abort);
|
|
556
|
+
socket.destroy();
|
|
557
|
+
}
|
|
558
|
+
}
|
|
511
559
|
function encode(value) {
|
|
512
560
|
const payload = Buffer.from(JSON.stringify(value));
|
|
513
561
|
if (payload.length > MaxFrameBytes)
|
|
@@ -540,10 +588,10 @@ function decode(payload) {
|
|
|
540
588
|
return decodeWireResponse(Buffer.from(payload).toString("utf8"));
|
|
541
589
|
}
|
|
542
590
|
function responseError(message) {
|
|
543
|
-
return new DaemonError2({ kind: message === "authentication failed" ? "registration" : "
|
|
591
|
+
return new DaemonError2({ kind: message === "authentication failed" ? "registration" : "request", message });
|
|
544
592
|
}
|
|
545
593
|
function failure(kind, cause) {
|
|
546
594
|
return new DaemonError2({ kind, message: cause instanceof Error ? cause.message : String(cause) });
|
|
547
595
|
}
|
|
548
596
|
|
|
549
|
-
export {
|
|
597
|
+
export { Metadata2, ProcessInfo2, WireResponse2, DaemonError2, makeDaemonTransport2 };
|
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./persistent-pty-wb5wsb2j.js";
|
|
4
4
|
import {
|
|
5
5
|
OAuth3
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./persistent-pty-wrwtw7ga.js";
|
|
7
7
|
import {
|
|
8
8
|
key3
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./persistent-pty-xvn8mnch.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
11
|
+
ID17,
|
|
12
12
|
MethodID2
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./persistent-pty-n3ntzjw4.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
15
|
+
ID16
|
|
16
|
+
} from "./persistent-pty-rn9cpdem.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
18
|
+
ID15,
|
|
19
19
|
Family2
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./persistent-pty-7r8842f6.js";
|
|
21
21
|
import {
|
|
22
22
|
bootstrap2
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./persistent-pty-yb20nhc3.js";
|
|
24
24
|
import {
|
|
25
|
-
|
|
26
|
-
} from "./
|
|
25
|
+
Service64
|
|
26
|
+
} from "./persistent-pty-y1m2rnym.js";
|
|
27
27
|
import {
|
|
28
28
|
start3
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./persistent-pty-dg4atj78.js";
|
|
30
30
|
import {
|
|
31
31
|
activeCredential2
|
|
32
|
-
} from "./
|
|
32
|
+
} from "./persistent-pty-hkwmenkt.js";
|
|
33
33
|
|
|
34
34
|
// src/plugin/provider/digitalocean.ts
|
|
35
35
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
36
36
|
import { Clock, Deferred, Effect, Option, Schema } from "effect";
|
|
37
37
|
import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/http";
|
|
38
|
-
var providerID =
|
|
39
|
-
var integrationID =
|
|
38
|
+
var providerID = ID16.make("digitalocean");
|
|
39
|
+
var integrationID = ID17.make("digitalocean");
|
|
40
40
|
var methodID = MethodID2.make("browser");
|
|
41
41
|
var clientID = "b1a6c5158156caac821fd1b30253ca8acb52454a48fa744420e41889cb589f82";
|
|
42
42
|
var authorizeEndpoint = "https://cloud.digitalocean.com/v1/oauth/authorize";
|
|
@@ -124,7 +124,7 @@ var oauth = {
|
|
|
124
124
|
var DigitalOceanPlugin2 = define({
|
|
125
125
|
id: "opencode.provider.digitalocean",
|
|
126
126
|
effect: Effect.fn(function* (ctx) {
|
|
127
|
-
const cache = yield*
|
|
127
|
+
const cache = yield* Service64;
|
|
128
128
|
const http = HttpClient.filterStatusOk(yield* HttpClient.HttpClient);
|
|
129
129
|
const discovered = yield* start3({
|
|
130
130
|
integrationID,
|
|
@@ -160,7 +160,7 @@ var DigitalOceanPlugin2 = define({
|
|
|
160
160
|
return;
|
|
161
161
|
for (const router of discovered.current.routers) {
|
|
162
162
|
const id = `router:${router.name}`;
|
|
163
|
-
if (evt.get(providerID)?.models.has(
|
|
163
|
+
if (evt.get(providerID)?.models.has(ID15.make(id)))
|
|
164
164
|
continue;
|
|
165
165
|
evt.models.update(providerID, id, (draft) => {
|
|
166
166
|
draft.name = router.name;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SessionEvent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./persistent-pty-ec1grn59.js";
|
|
4
4
|
import {
|
|
5
5
|
stringify2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./persistent-pty-z0h12gs8.js";
|
|
7
7
|
import {
|
|
8
8
|
contentFilterError2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./persistent-pty-t1dd3zqa.js";
|
|
10
10
|
|
|
11
11
|
// src/session/runner/publish-llm-event.ts
|
|
12
12
|
import { isRecord } from "@opencode/util/record";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service72
|
|
3
|
+
} from "./persistent-pty-n7k76nxf.js";
|
|
4
4
|
import {
|
|
5
5
|
resolvePath2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./persistent-pty-1n1ng8zx.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./persistent-pty-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/mcp/stdio.ts
|
|
12
12
|
var exports_stdio = {};
|
|
@@ -26,7 +26,7 @@ var EXIT_WAIT = Duration.seconds(1);
|
|
|
26
26
|
var STDERR_TAIL = 1000;
|
|
27
27
|
var resolveCwd2 = (directory, cwd) => cwd ? resolvePath2(directory, cwd) : directory;
|
|
28
28
|
var make2 = Effect.fnUntraced(function* (options) {
|
|
29
|
-
const environment = yield*
|
|
29
|
+
const environment = yield* Service72;
|
|
30
30
|
const scope = yield* Effect.scope;
|
|
31
31
|
const outgoing = yield* Queue.bounded(OUTGOING_CAPACITY);
|
|
32
32
|
const state = { phase: "ready" };
|