@opencode-ai/core 0.0.0-next-17400 → 0.0.0-next-17428

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.
Files changed (718) hide show
  1. package/dist/account/sql.js +2 -2
  2. package/dist/agent.js +71 -71
  3. package/dist/aisdk-native.js +3 -3
  4. package/dist/aisdk.js +4 -4
  5. package/dist/app.js +2 -2
  6. package/dist/bus.js +69 -69
  7. package/dist/catalog.js +79 -79
  8. package/dist/chunks/{location-service-map-02dbfq60.js → wellknown-02dbfq60.js} +1 -1
  9. package/dist/chunks/{location-service-map-04kwjb53.js → wellknown-04kwjb53.js} +2 -2
  10. package/dist/chunks/{location-service-map-1wef48rc.js → wellknown-0cjwzmdv.js} +6 -6
  11. package/dist/chunks/{location-service-map-asrddqkc.js → wellknown-0f6ca4zc.js} +2 -2
  12. package/dist/chunks/{location-service-map-0kvmztkf.js → wellknown-0kvmztkf.js} +1 -1
  13. package/dist/chunks/{location-service-map-0r325ptc.js → wellknown-0r325ptc.js} +2 -2
  14. package/dist/chunks/{location-service-map-eve1pas4.js → wellknown-0rnmdg6p.js} +27 -27
  15. package/dist/chunks/{location-service-map-10xtr3be.js → wellknown-10xtr3be.js} +2 -2
  16. package/dist/chunks/{location-service-map-18pv8fg3.js → wellknown-18pv8fg3.js} +2 -2
  17. package/dist/chunks/{location-service-map-1c00jchy.js → wellknown-1c00jchy.js} +2 -2
  18. package/dist/chunks/{location-service-map-1kvtxahz.js → wellknown-1kvtxahz.js} +1 -1
  19. package/dist/chunks/{location-service-map-qqga8y9x.js → wellknown-1ne78j78.js} +4 -4
  20. package/dist/chunks/{location-service-map-wg4j2pdv.js → wellknown-1r0604ha.js} +23 -23
  21. package/dist/chunks/{location-service-map-rv2azgkw.js → wellknown-1swmyd9s.js} +2 -2
  22. package/dist/chunks/{location-service-map-1xksxgzs.js → wellknown-1xksxgzs.js} +2 -2
  23. package/dist/chunks/{location-service-map-ncdx06nj.js → wellknown-20mhz48y.js} +42 -20
  24. package/dist/chunks/{location-service-map-5sj3wb5t.js → wellknown-25552m23.js} +3 -3
  25. package/dist/chunks/{location-service-map-25pxtba7.js → wellknown-25pxtba7.js} +1 -1
  26. package/dist/chunks/{location-service-map-bdf2xhmf.js → wellknown-2jtfzwaa.js} +3 -3
  27. package/dist/chunks/{location-service-map-4wpc9qcn.js → wellknown-2kz33ygq.js} +10 -10
  28. package/dist/chunks/{location-service-map-2m0g72hh.js → wellknown-2m0g72hh.js} +1 -1
  29. package/dist/chunks/{location-service-map-5gjp8fzx.js → wellknown-2m1cqesy.js} +3 -3
  30. package/dist/chunks/{location-service-map-hcs0g1eg.js → wellknown-2nfxgcca.js} +3 -3
  31. package/dist/chunks/{location-service-map-2nmyybe0.js → wellknown-2nmyybe0.js} +1 -1
  32. package/dist/chunks/{location-service-map-48x92z30.js → wellknown-30nzded7.js} +7 -7
  33. package/dist/chunks/{location-service-map-sqeavdqr.js → wellknown-3667weqr.js} +9 -9
  34. package/dist/chunks/{location-service-map-37rcj8p3.js → wellknown-37rcj8p3.js} +3 -3
  35. package/dist/chunks/{location-service-map-8hhe8tje.js → wellknown-3a4qzh5k.js} +3 -3
  36. package/dist/chunks/{location-service-map-3mfgaav1.js → wellknown-3mfgaav1.js} +4 -4
  37. package/dist/chunks/{location-service-map-3thh6229.js → wellknown-3thh6229.js} +2 -2
  38. package/dist/chunks/{location-service-map-3vh42rcr.js → wellknown-3vh42rcr.js} +2 -2
  39. package/dist/chunks/{location-service-map-3w0f1yxt.js → wellknown-3w0f1yxt.js} +3 -3
  40. package/dist/chunks/{location-service-map-dynxpp0v.js → wellknown-45af57yr.js} +6 -6
  41. package/dist/chunks/{location-service-map-f0z0ng59.js → wellknown-4d3rgnp3.js} +6 -6
  42. package/dist/chunks/{location-service-map-jsrmnps6.js → wellknown-4e4pa5kh.js} +22 -22
  43. package/dist/chunks/{location-service-map-x0yd4a2x.js → wellknown-4hxh2c3r.js} +9 -9
  44. package/dist/chunks/{location-service-map-4s2xwh5d.js → wellknown-4s2xwh5d.js} +3 -3
  45. package/dist/chunks/{location-service-map-ca3e773a.js → wellknown-4sx1mfdx.js} +3 -3
  46. package/dist/chunks/{location-service-map-dttn8q0n.js → wellknown-4yexey5z.js} +6 -6
  47. package/dist/chunks/{location-service-map-hp1tv4xh.js → wellknown-4zjfew5g.js} +7 -7
  48. package/dist/chunks/{location-service-map-4zzdwbaz.js → wellknown-4zzdwbaz.js} +2 -2
  49. package/dist/chunks/{location-service-map-50jxp3hw.js → wellknown-50jxp3hw.js} +1 -1
  50. package/dist/chunks/{location-service-map-52jzav25.js → wellknown-52jzav25.js} +1 -1
  51. package/dist/chunks/{location-service-map-mgr7xmgc.js → wellknown-54ec2rpx.js} +11 -11
  52. package/dist/chunks/{location-service-map-56p2m126.js → wellknown-56p2m126.js} +1 -1
  53. package/dist/chunks/{location-service-map-57tzwnz4.js → wellknown-57tzwnz4.js} +1 -1
  54. package/dist/chunks/{location-service-map-5fvy871a.js → wellknown-5fvy871a.js} +4 -4
  55. package/dist/chunks/{location-service-map-5p2sx24b.js → wellknown-5p2sx24b.js} +3 -3
  56. package/dist/chunks/{location-service-map-5pfeh60c.js → wellknown-5pfeh60c.js} +2 -2
  57. package/dist/chunks/{location-service-map-5rs65q6p.js → wellknown-5rs65q6p.js} +1 -1
  58. package/dist/chunks/{location-service-map-5sgbvx3z.js → wellknown-5sgbvx3z.js} +2 -2
  59. package/dist/chunks/{location-service-map-0b2h3xrk.js → wellknown-657k7zj4.js} +2 -2
  60. package/dist/chunks/{location-service-map-zrjctvc1.js → wellknown-659gdbm3.js} +9 -9
  61. package/dist/chunks/{location-service-map-byg7zh2r.js → wellknown-68kcdzx8.js} +8 -8
  62. package/dist/chunks/{location-service-map-6emj9sd6.js → wellknown-6f3c0gvx.js} +4 -4
  63. package/dist/chunks/{location-service-map-6sc9h3ca.js → wellknown-6sc9h3ca.js} +1 -1
  64. package/dist/chunks/{location-service-map-wny8kgm1.js → wellknown-6t3tjp1t.js} +2 -2
  65. package/dist/chunks/{location-service-map-kacjd6kq.js → wellknown-6vbsjkr0.js} +12 -12
  66. package/dist/chunks/{location-service-map-cfe3peje.js → wellknown-6y9cy4ak.js} +8 -8
  67. package/dist/chunks/{location-service-map-706a4azd.js → wellknown-706a4azd.js} +1 -1
  68. package/dist/chunks/{location-service-map-qx5jmq00.js → wellknown-71dk037r.js} +3 -3
  69. package/dist/chunks/{location-service-map-7mrpdsq5.js → wellknown-7mrpdsq5.js} +1 -1
  70. package/dist/chunks/{location-service-map-7wcmqxrc.js → wellknown-7wcmqxrc.js} +1 -1
  71. package/dist/chunks/{location-service-map-7xr87jjf.js → wellknown-82vs55eb.js} +10 -10
  72. package/dist/chunks/{location-service-map-857g7h76.js → wellknown-857g7h76.js} +1 -1
  73. package/dist/chunks/{location-service-map-88jbfw8z.js → wellknown-88jbfw8z.js} +2 -2
  74. package/dist/chunks/{location-service-map-5gcdyz0j.js → wellknown-88mbd3pa.js} +6 -6
  75. package/dist/chunks/{location-service-map-8zqa9s0e.js → wellknown-8mwggd1z.js} +18 -18
  76. package/dist/chunks/{location-service-map-basyqm07.js → wellknown-8wgdza7z.js} +29 -18
  77. package/dist/chunks/{location-service-map-8ywqk2j9.js → wellknown-8ywqk2j9.js} +1 -1
  78. package/dist/chunks/{location-service-map-93qdgxxd.js → wellknown-93qdgxxd.js} +1 -1
  79. package/dist/chunks/{location-service-map-fg8nts69.js → wellknown-95mjgmfz.js} +115 -115
  80. package/dist/chunks/{location-service-map-999qd968.js → wellknown-999qd968.js} +1 -1
  81. package/dist/chunks/{location-service-map-cn1p5ps9.js → wellknown-99wwwqzn.js} +8 -8
  82. package/dist/chunks/{location-service-map-53fdwbfj.js → wellknown-9axst7sz.js} +18 -19
  83. package/dist/chunks/{location-service-map-9d2xhdr4.js → wellknown-9d2xhdr4.js} +3 -3
  84. package/dist/chunks/{location-service-map-navk7tk9.js → wellknown-9e8aeag2.js} +7 -7
  85. package/dist/chunks/{location-service-map-9f0rnpkn.js → wellknown-9f0rnpkn.js} +1 -1
  86. package/dist/chunks/{location-service-map-fs1mxa11.js → wellknown-9j70epm2.js} +3 -3
  87. package/dist/chunks/{location-service-map-jd6z3t89.js → wellknown-9md6srn9.js} +10 -10
  88. package/dist/chunks/{location-service-map-9q1hedyj.js → wellknown-9q1hedyj.js} +2 -2
  89. package/dist/chunks/{location-service-map-4197zwmy.js → wellknown-9qang0mx.js} +4 -4
  90. package/dist/chunks/{location-service-map-9r0qzhnf.js → wellknown-9r0qzhnf.js} +2 -2
  91. package/dist/chunks/{location-service-map-x7s8hdn6.js → wellknown-9s951t4s.js} +4 -4
  92. package/dist/chunks/{location-service-map-d2ka05k1.js → wellknown-9zy456m4.js} +2 -2
  93. package/dist/chunks/{location-service-map-a65h300v.js → wellknown-a65h300v.js} +2 -2
  94. package/dist/chunks/{location-service-map-pm08071a.js → wellknown-adt1c913.js} +4 -4
  95. package/dist/chunks/{location-service-map-zptqwss0.js → wellknown-akkksjcs.js} +16 -16
  96. package/dist/chunks/{location-service-map-f47zygt9.js → wellknown-apayjrxn.js} +60 -60
  97. package/dist/chunks/{location-service-map-b2vwmb8d.js → wellknown-at7d33az.js} +6 -6
  98. package/dist/chunks/{location-service-map-q3w3p23r.js → wellknown-avq9khkd.js} +6 -6
  99. package/dist/chunks/{location-service-map-34n6qn5p.js → wellknown-axyymfph.js} +6 -6
  100. package/dist/chunks/{location-service-map-ayfwnm78.js → wellknown-ayfwnm78.js} +2 -2
  101. package/dist/chunks/{location-service-map-gk2wp0bt.js → wellknown-b5g9y9jx.js} +1 -1
  102. package/dist/chunks/{location-service-map-xy12y7yz.js → wellknown-bfh4wnyx.js} +3 -3
  103. package/dist/chunks/{location-service-map-c6c2fhpe.js → wellknown-bp2jeqhw.js} +7 -7
  104. package/dist/chunks/{location-service-map-vgmc0af4.js → wellknown-bt7xmf0d.js} +34 -32
  105. package/dist/chunks/{location-service-map-byab506k.js → wellknown-byab506k.js} +1 -1
  106. package/dist/chunks/{location-service-map-dkrp3hsc.js → wellknown-cdaj9a7h.js} +3 -3
  107. package/dist/chunks/{location-service-map-cgvnqv92.js → wellknown-cgvnqv92.js} +1 -1
  108. package/dist/chunks/{location-service-map-cz3dkvcz.js → wellknown-cz3dkvcz.js} +1 -1
  109. package/dist/chunks/{location-service-map-d076mabj.js → wellknown-d076mabj.js} +2 -2
  110. package/dist/chunks/{location-service-map-d6vvk673.js → wellknown-d6vvk673.js} +1 -1
  111. package/dist/chunks/{location-service-map-ddn74qps.js → wellknown-ddn74qps.js} +2 -2
  112. package/dist/chunks/{location-service-map-xcdf3nqx.js → wellknown-dfaxpxmf.js} +3 -3
  113. package/dist/chunks/{location-service-map-dhphtf1x.js → wellknown-dhphtf1x.js} +1 -1
  114. package/dist/chunks/{location-service-map-5mb267ff.js → wellknown-dkcxqm1a.js} +10 -10
  115. package/dist/chunks/{location-service-map-e1z9a0ts.js → wellknown-e1z9a0ts.js} +2 -2
  116. package/dist/chunks/{location-service-map-68np9b88.js → wellknown-e9899ctm.js} +2 -2
  117. package/dist/chunks/{location-service-map-ed4jjjcc.js → wellknown-ed4jjjcc.js} +2 -2
  118. package/dist/chunks/{location-service-map-dw724xaa.js → wellknown-edpjba35.js} +4 -4
  119. package/dist/chunks/{location-service-map-erj4j75s.js → wellknown-erj4j75s.js} +1 -1
  120. package/dist/chunks/{location-service-map-eyk9wdct.js → wellknown-eyk9wdct.js} +2 -2
  121. package/dist/chunks/{location-service-map-f05p34aa.js → wellknown-f05p34aa.js} +3 -3
  122. package/dist/chunks/{location-service-map-xr2eg7bd.js → wellknown-f378j7vw.js} +7 -7
  123. package/dist/chunks/{location-service-map-k7rg7zyh.js → wellknown-f77j3bk1.js} +3 -3
  124. package/dist/chunks/{location-service-map-fm1nvm5g.js → wellknown-fm1nvm5g.js} +1 -1
  125. package/dist/chunks/{location-service-map-fmyre8m1.js → wellknown-fmyre8m1.js} +1 -1
  126. package/dist/chunks/{location-service-map-1hkg3p29.js → wellknown-fqxe1avk.js} +8 -8
  127. package/dist/chunks/{location-service-map-q7t8h9wv.js → wellknown-ft7h7q1f.js} +5 -5
  128. package/dist/chunks/{location-service-map-68s3h4ef.js → wellknown-fzc1wfxm.js} +2 -2
  129. package/dist/chunks/{location-service-map-9web3b9e.js → wellknown-g2ddtk1s.js} +10 -10
  130. package/dist/chunks/{location-service-map-5yccqcx8.js → wellknown-g4j6fhwe.js} +2 -2
  131. package/dist/chunks/{location-service-map-2nbc0nes.js → wellknown-g70fvz2n.js} +9 -9
  132. package/dist/chunks/{location-service-map-g9yygpzr.js → wellknown-g9yygpzr.js} +1 -1
  133. package/dist/chunks/{location-service-map-gcay93cp.js → wellknown-gcay93cp.js} +1 -1
  134. package/dist/chunks/{location-service-map-gd2xppx8.js → wellknown-gd2xppx8.js} +1 -1
  135. package/dist/chunks/{location-service-map-gm8kdh5e.js → wellknown-gm8kdh5e.js} +2 -2
  136. package/dist/chunks/{location-service-map-9mgewg8n.js → wellknown-gzs1fz36.js} +5 -5
  137. package/dist/chunks/{location-service-map-k59yqb47.js → wellknown-h23rd83w.js} +5 -5
  138. package/dist/chunks/{location-service-map-h8ecejt5.js → wellknown-h8ecejt5.js} +1 -1
  139. package/dist/chunks/{location-service-map-yz4bq0na.js → wellknown-hgbdyp9r.js} +32 -32
  140. package/dist/chunks/{location-service-map-kfh0w4bn.js → wellknown-hm63m8ez.js} +53 -53
  141. package/dist/chunks/{location-service-map-m0j7p73q.js → wellknown-hskb502a.js} +5 -5
  142. package/dist/chunks/wellknown-j1x99epj.js +1022 -0
  143. package/dist/chunks/{location-service-map-961czkg8.js → wellknown-j8ka1twd.js} +11 -11
  144. package/dist/chunks/{location-service-map-wm2grga9.js → wellknown-jcb8x4bq.js} +6 -6
  145. package/dist/chunks/{location-service-map-npfy80rq.js → wellknown-jhdzjt2r.js} +88 -88
  146. package/dist/chunks/{location-service-map-88efxt2c.js → wellknown-jq70kwhh.js} +9 -9
  147. package/dist/chunks/{location-service-map-jssy2dr3.js → wellknown-jssy2dr3.js} +2 -2
  148. package/dist/chunks/{location-service-map-k6vwd7kr.js → wellknown-k6vwd7kr.js} +3 -3
  149. package/dist/chunks/{location-service-map-tqkzvvcw.js → wellknown-k9y1gart.js} +3 -3
  150. package/dist/chunks/{location-service-map-kcwh27nh.js → wellknown-kcwh27nh.js} +3 -3
  151. package/dist/chunks/{location-service-map-kg1345f7.js → wellknown-kg1345f7.js} +1 -1
  152. package/dist/chunks/{location-service-map-m01ryvbe.js → wellknown-m01ryvbe.js} +1 -1
  153. package/dist/chunks/{location-service-map-mf0hyk7z.js → wellknown-mf0hyk7z.js} +1 -1
  154. package/dist/chunks/{location-service-map-sy26wrwg.js → wellknown-mmnmpsem.js} +3 -3
  155. package/dist/chunks/{location-service-map-c8bda48h.js → wellknown-mv93rkcb.js} +7 -7
  156. package/dist/chunks/{location-service-map-mwceq5am.js → wellknown-mwceq5am.js} +1 -1
  157. package/dist/chunks/{location-service-map-3t9mtsgw.js → wellknown-n7fgxfv6.js} +5 -5
  158. package/dist/chunks/{location-service-map-nesb2rcz.js → wellknown-nesb2rcz.js} +2 -2
  159. package/dist/chunks/{location-service-map-hv8esefc.js → wellknown-njsy6pae.js} +5 -5
  160. package/dist/chunks/{location-service-map-13zf289g.js → wellknown-nqyy66w8.js} +14 -14
  161. package/dist/chunks/{location-service-map-nr76rjj3.js → wellknown-nr76rjj3.js} +2 -2
  162. package/dist/chunks/{location-service-map-nv7zjdpe.js → wellknown-nv7zjdpe.js} +2 -2
  163. package/dist/chunks/{location-service-map-nzrjycs5.js → wellknown-nzrjycs5.js} +1 -1
  164. package/dist/chunks/{location-service-map-4b2vfsrd.js → wellknown-p3e59vfk.js} +30 -8
  165. package/dist/chunks/{location-service-map-raw5wf61.js → wellknown-p8zd5xzf.js} +3 -3
  166. package/dist/chunks/{location-service-map-8q3zkfjw.js → wellknown-pbwysafm.js} +8 -8
  167. package/dist/chunks/{location-service-map-pfqehjmy.js → wellknown-pfqehjmy.js} +2 -2
  168. package/dist/chunks/{location-service-map-ph1me6ah.js → wellknown-ph1me6ah.js} +2 -2
  169. package/dist/chunks/{location-service-map-h9yk14v5.js → wellknown-ppcrn5r0.js} +8 -8
  170. package/dist/chunks/{location-service-map-pq4b4pqk.js → wellknown-pq4b4pqk.js} +2 -2
  171. package/dist/chunks/{location-service-map-prf9bavk.js → wellknown-prf9bavk.js} +3 -3
  172. package/dist/chunks/{location-service-map-p83x70pq.js → wellknown-ptr7bqe1.js} +4 -4
  173. package/dist/chunks/{location-service-map-veyph9f9.js → wellknown-q16dfqy6.js} +4 -4
  174. package/dist/chunks/{location-service-map-2evxv0ew.js → wellknown-q17rnp67.js} +3 -3
  175. package/dist/chunks/{location-service-map-q4r4pzs4.js → wellknown-q4r4pzs4.js} +1 -1
  176. package/dist/chunks/{location-service-map-55s96f1k.js → wellknown-qb3ddt1e.js} +8 -8
  177. package/dist/chunks/{location-service-map-qe0d689s.js → wellknown-qe0d689s.js} +2 -2
  178. package/dist/chunks/{location-service-map-r3k9abhd.js → wellknown-r3k9abhd.js} +2 -2
  179. package/dist/chunks/{location-service-map-fqrsfg53.js → wellknown-r7cbhthp.js} +5 -5
  180. package/dist/chunks/{location-service-map-rqswsgbs.js → wellknown-rqswsgbs.js} +2 -2
  181. package/dist/chunks/{location-service-map-rt6yg6j2.js → wellknown-rt6yg6j2.js} +2 -2
  182. package/dist/chunks/{location-service-map-ryap75b3.js → wellknown-ryap75b3.js} +1 -1
  183. package/dist/chunks/{location-service-map-6f954a5w.js → wellknown-ryrm2gj3.js} +2 -2
  184. package/dist/chunks/{location-service-map-s6by3cc4.js → wellknown-s6by3cc4.js} +3 -3
  185. package/dist/chunks/{location-service-map-5hv8eskh.js → wellknown-s8da7qpe.js} +17 -17
  186. package/dist/chunks/{location-service-map-6jg6hbt2.js → wellknown-s99aagmk.js} +9 -9
  187. package/dist/chunks/{location-service-map-s9f13v9h.js → wellknown-s9f13v9h.js} +1 -1
  188. package/dist/chunks/{location-service-map-s2fmn6ka.js → wellknown-scpmsk9g.js} +5 -5
  189. package/dist/chunks/{location-service-map-7gt5dsmk.js → wellknown-sk3rf249.js} +7 -7
  190. package/dist/chunks/{location-service-map-smpeg8c9.js → wellknown-smpeg8c9.js} +2 -2
  191. package/dist/chunks/{location-service-map-r7t4tdcz.js → wellknown-sxf2cmhg.js} +7 -7
  192. package/dist/chunks/{location-service-map-szax8zgv.js → wellknown-szax8zgv.js} +2 -2
  193. package/dist/chunks/{location-service-map-szjq6xea.js → wellknown-szjq6xea.js} +2 -2
  194. package/dist/chunks/{location-service-map-t2j2ttmx.js → wellknown-t2j2ttmx.js} +1 -1
  195. package/dist/chunks/{location-service-map-vph5r54q.js → wellknown-t30hh3v8.js} +7 -7
  196. package/dist/chunks/{location-service-map-3tzn0dgr.js → wellknown-t3jbn7nf.js} +9 -9
  197. package/dist/chunks/{location-service-map-wqwvtz8q.js → wellknown-t8end1qd.js} +9 -18
  198. package/dist/chunks/{location-service-map-mc2hfyz5.js → wellknown-tbecz2nc.js} +27 -27
  199. package/dist/chunks/{location-service-map-tcn24h1d.js → wellknown-tcn24h1d.js} +1 -1
  200. package/dist/chunks/{location-service-map-tenv3kfs.js → wellknown-tenv3kfs.js} +2 -2
  201. package/dist/chunks/{location-service-map-thstd87d.js → wellknown-thstd87d.js} +1 -1
  202. package/dist/chunks/{location-service-map-ts4t4v20.js → wellknown-ts4t4v20.js} +2 -2
  203. package/dist/chunks/{location-service-map-xnhh08hw.js → wellknown-tsxyhgjv.js} +10 -10
  204. package/dist/chunks/{location-service-map-tyh0a1hs.js → wellknown-tyh0a1hs.js} +3 -3
  205. package/dist/chunks/{location-service-map-v972xay6.js → wellknown-v972xay6.js} +1 -1
  206. package/dist/chunks/{location-service-map-v9bfv94f.js → wellknown-v9bfv94f.js} +1 -1
  207. package/dist/chunks/{location-service-map-p0wgmtc1.js → wellknown-vphy579y.js} +4 -4
  208. package/dist/chunks/{location-service-map-vynn1k31.js → wellknown-vynn1k31.js} +2 -2
  209. package/dist/chunks/{location-service-map-vz89hfgr.js → wellknown-vz89hfgr.js} +1 -1
  210. package/dist/chunks/{location-service-map-fd2bsr0e.js → wellknown-w5ywr3ab.js} +85 -85
  211. package/dist/chunks/{location-service-map-pmdfzvfh.js → wellknown-w6055s4r.js} +18 -18
  212. package/dist/chunks/{location-service-map-dv05k4vk.js → wellknown-w6jkse96.js} +4 -4
  213. package/dist/chunks/{location-service-map-cmb9arpt.js → wellknown-w6y7qp8t.js} +4 -4
  214. package/dist/chunks/{location-service-map-wd268jeg.js → wellknown-wd268jeg.js} +1 -1
  215. package/dist/chunks/{location-service-map-we2zmhe4.js → wellknown-we2zmhe4.js} +2 -2
  216. package/dist/chunks/{location-service-map-wf37p1a1.js → wellknown-wf37p1a1.js} +1 -1
  217. package/dist/chunks/{location-service-map-90haymnb.js → wellknown-wjrkb032.js} +4 -4
  218. package/dist/chunks/{location-service-map-90yej94p.js → wellknown-wk8da17y.js} +11 -11
  219. package/dist/chunks/{location-service-map-jsemb3k6.js → wellknown-wkc2sg7c.js} +2 -2
  220. package/dist/chunks/{location-service-map-wmxdh12w.js → wellknown-wmxdh12w.js} +1 -1
  221. package/dist/chunks/{location-service-map-wps8gh8n.js → wellknown-wps8gh8n.js} +2 -2
  222. package/dist/chunks/{location-service-map-bcb9d5da.js → wellknown-wr3k63ve.js} +5 -5
  223. package/dist/chunks/{location-service-map-ysf6c9n3.js → wellknown-wsddybb2.js} +1 -1
  224. package/dist/chunks/{location-service-map-wt193r4g.js → wellknown-wt193r4g.js} +1 -1
  225. package/dist/chunks/{location-service-map-793za4gb.js → wellknown-wt1vmgpp.js} +29 -29
  226. package/dist/chunks/{location-service-map-yyd08bqh.js → wellknown-wvfnazp2.js} +3 -3
  227. package/dist/chunks/{location-service-map-89w1hsjb.js → wellknown-ww5r1ab5.js} +3 -3
  228. package/dist/chunks/{location-service-map-0fwwbgb0.js → wellknown-ww5x4bmh.js} +7 -7
  229. package/dist/chunks/{location-service-map-5xygqm5w.js → wellknown-x6fskmqx.js} +2 -2
  230. package/dist/chunks/{location-service-map-9y858mxt.js → wellknown-x7rkvn5e.js} +11 -11
  231. package/dist/chunks/{location-service-map-eeztfnkt.js → wellknown-xdyax1v4.js} +7 -7
  232. package/dist/chunks/{location-service-map-xfd1xnk3.js → wellknown-xfd1xnk3.js} +2 -2
  233. package/dist/chunks/{location-service-map-dahq4r21.js → wellknown-xfhg1qv2.js} +12 -12
  234. package/dist/chunks/{location-service-map-xfrawapx.js → wellknown-xfrawapx.js} +1 -1
  235. package/dist/chunks/{location-service-map-6wgg7rdy.js → wellknown-xgtvhkz1.js} +10 -10
  236. package/dist/chunks/{location-service-map-xgv25zxy.js → wellknown-xgv25zxy.js} +1 -1
  237. package/dist/chunks/wellknown-xhz3jyrc.js +674 -0
  238. package/dist/chunks/{location-service-map-c993da84.js → wellknown-xkd017fx.js} +3 -3
  239. package/dist/chunks/{location-service-map-xq1vkeee.js → wellknown-xq1vkeee.js} +2 -2
  240. package/dist/chunks/{location-service-map-dmtrrpwn.js → wellknown-xq9jfs3k.js} +8 -8
  241. package/dist/chunks/{location-service-map-gshpyffv.js → wellknown-xrt9v94p.js} +2 -2
  242. package/dist/chunks/{location-service-map-xwftk1fd.js → wellknown-xwftk1fd.js} +2 -2
  243. package/dist/chunks/{location-service-map-y0x38cee.js → wellknown-y0x38cee.js} +1 -1
  244. package/dist/chunks/{location-service-map-ex0n41xn.js → wellknown-y2kycdcv.js} +8 -4
  245. package/dist/chunks/{location-service-map-y67x6rf6.js → wellknown-y67x6rf6.js} +1 -1
  246. package/dist/chunks/{location-service-map-y8rs54ne.js → wellknown-y8rs54ne.js} +1 -1
  247. package/dist/chunks/{location-service-map-enwqcqpp.js → wellknown-ycvdvag8.js} +14 -14
  248. package/dist/chunks/{location-service-map-qc0mc90f.js → wellknown-ydpcg630.js} +5 -5
  249. package/dist/chunks/{location-service-map-yz0wm9s3.js → wellknown-yz0wm9s3.js} +2 -2
  250. package/dist/chunks/{location-service-map-4kp3w9ct.js → wellknown-z5wnp00d.js} +15 -15
  251. package/dist/chunks/{location-service-map-zbqqnp0n.js → wellknown-zbqqnp0n.js} +1 -1
  252. package/dist/chunks/{location-service-map-zdkg1k91.js → wellknown-zdkg1k91.js} +1 -1
  253. package/dist/chunks/{location-service-map-zfxc0ze5.js → wellknown-zfxc0ze5.js} +1 -1
  254. package/dist/chunks/{location-service-map-zthe9zqc.js → wellknown-zthe9zqc.js} +1 -1
  255. package/dist/codemode/catalog.js +2 -2
  256. package/dist/codemode/instructions.js +4 -4
  257. package/dist/codemode/tool.js +3 -3
  258. package/dist/command.js +129 -129
  259. package/dist/config/markdown.js +2 -2
  260. package/dist/config/normalize.js +20 -20
  261. package/dist/config/plugin/agent.js +130 -130
  262. package/dist/config/plugin/command.js +131 -131
  263. package/dist/config/plugin/instruction.js +86 -86
  264. package/dist/config/plugin/policy.js +111 -111
  265. package/dist/config/plugin/provider.js +110 -110
  266. package/dist/config/plugin/reference.js +114 -114
  267. package/dist/config/plugin/skill-file.js +103 -103
  268. package/dist/config/plugin/skill.js +133 -133
  269. package/dist/config/plugin/source.js +110 -110
  270. package/dist/config/plugin/websearch.js +110 -110
  271. package/dist/config/variable.js +4 -4
  272. package/dist/config.js +109 -109
  273. package/dist/credential/sql.js +3 -3
  274. package/dist/credential.js +69 -69
  275. package/dist/database/database.js +66 -66
  276. package/dist/database/drizzle/effect-sqlite/driver.js +16 -16
  277. package/dist/database/drizzle/effect-sqlite/index.js +16 -16
  278. package/dist/database/drizzle/effect-sqlite/migrator.js +15 -15
  279. package/dist/database/drizzle/effect-sqlite/session.js +15 -15
  280. package/dist/database/drizzle/index.js +18 -18
  281. package/dist/database/drizzle/internal/drizzle-utils.js +2 -2
  282. package/dist/database/drizzle/sqlite-core/effect/count.js +2 -2
  283. package/dist/database/drizzle/sqlite-core/effect/db.js +10 -10
  284. package/dist/database/drizzle/sqlite-core/effect/delete.js +3 -3
  285. package/dist/database/drizzle/sqlite-core/effect/index.js +21 -21
  286. package/dist/database/drizzle/sqlite-core/effect/insert.js +3 -3
  287. package/dist/database/drizzle/sqlite-core/effect/query.js +2 -2
  288. package/dist/database/drizzle/sqlite-core/effect/raw.js +2 -2
  289. package/dist/database/drizzle/sqlite-core/effect/select.js +3 -3
  290. package/dist/database/drizzle/sqlite-core/effect/session.js +14 -14
  291. package/dist/database/drizzle/sqlite-core/effect/update.js +3 -3
  292. package/dist/database/drizzle/up-migrations/effect-sqlite.js +4 -4
  293. package/dist/database/drizzle/up-migrations/sqlite.js +3 -3
  294. package/dist/database/drizzle/up-migrations/utils.js +2 -2
  295. package/dist/database/drizzle.js +19 -19
  296. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +2 -2
  297. package/dist/database/migration/20260211171708_add_project_commands.js +2 -2
  298. package/dist/database/migration/20260213144116_wakeful_the_professor.js +2 -2
  299. package/dist/database/migration/20260225215848_workspace.js +2 -2
  300. package/dist/database/migration/20260227213759_add_session_workspace_id.js +2 -2
  301. package/dist/database/migration/20260228203230_blue_harpoon.js +2 -2
  302. package/dist/database/migration/20260303231226_add_workspace_fields.js +2 -2
  303. package/dist/database/migration/20260309230000_move_org_to_state.js +2 -2
  304. package/dist/database/migration/20260312043431_session_message_cursor.js +2 -2
  305. package/dist/database/migration/20260323234822_events.js +2 -2
  306. package/dist/database/migration/20260410174513_workspace-name.js +2 -2
  307. package/dist/database/migration/20260413175956_chief_energizer.js +2 -2
  308. package/dist/database/migration/20260423070820_add_icon_url_override.js +2 -2
  309. package/dist/database/migration/20260427172553_slow_nightmare.js +2 -2
  310. package/dist/database/migration/20260428004200_add_session_path.js +2 -2
  311. package/dist/database/migration/20260501142318_next_venus.js +2 -2
  312. package/dist/database/migration/20260504145000_add_sync_owner.js +2 -2
  313. package/dist/database/migration/20260507164347_add_workspace_time.js +2 -2
  314. package/dist/database/migration/20260510033149_session_usage.js +2 -2
  315. package/dist/database/migration/20260511000411_data_migration_state.js +2 -2
  316. package/dist/database/migration/20260511173437_session-metadata.js +2 -2
  317. package/dist/database/migration/20260601010001_normalize_storage_paths.js +2 -2
  318. package/dist/database/migration/20260601202201_amazing_prowler.js +2 -2
  319. package/dist/database/migration/20260602002951_lowly_union_jack.js +2 -2
  320. package/dist/database/migration/20260602182828_add_project_directories.js +2 -2
  321. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +2 -2
  322. package/dist/database/migration/20260603040000_session_message_projection_order.js +2 -2
  323. package/dist/database/migration/20260603141458_session_input_inbox.js +2 -2
  324. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +2 -2
  325. package/dist/database/migration/20260604172448_event_sourced_session_input.js +2 -2
  326. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +2 -2
  327. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +2 -2
  328. package/dist/database/migration/20260611035744_credential.js +2 -2
  329. package/dist/database/migration/20260611192811_lush_chimera.js +2 -2
  330. package/dist/database/migration/20260612174303_project_dir_strategy.js +2 -2
  331. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +2 -2
  332. package/dist/database/migration/20260622170816_reset_v2_session_state.js +2 -2
  333. package/dist/database/migration/20260622202450_simplify_session_input.js +2 -2
  334. package/dist/database/migration/20260804233008_loose_psylocke.js +2 -2
  335. package/dist/database/migration/20260805200742_import_legacy_credentials.js +2 -2
  336. package/dist/database/migration/20260808023530_workspace_domain.js +2 -2
  337. package/dist/database/migration/20260811161259_execution_claim_attempts.js +2 -2
  338. package/dist/database/migration/20260812181746_session_inbox.js +2 -2
  339. package/dist/database/migration.gen.js +45 -45
  340. package/dist/database/migration.js +47 -47
  341. package/dist/database/path.js +3 -3
  342. package/dist/database/schema.gen.js +2 -2
  343. package/dist/database/schema.sql.js +2 -2
  344. package/dist/database/sqlite.bun.js +2 -2
  345. package/dist/database/sqlite.js +2 -2
  346. package/dist/database/sqlite.node.js +2 -2
  347. package/dist/database/sqlite.workerd.js +2 -2
  348. package/dist/database/v1-migration.bun.js +76 -76
  349. package/dist/database/v1-migration.js +2 -2
  350. package/dist/database/v1-migration.noop.js +1 -1
  351. package/dist/effect/app-node-builder.js +312 -311
  352. package/dist/effect/app-node-platform.js +2 -2
  353. package/dist/effect/keyed-mutex.js +2 -2
  354. package/dist/environment/driver.js +1 -1
  355. package/dist/environment/environment.js +87 -87
  356. package/dist/environment/exec-defaults.js +3 -3
  357. package/dist/environment/files.js +2 -2
  358. package/dist/environment/index.js +89 -89
  359. package/dist/environment/local.js +3 -3
  360. package/dist/environment/memory.js +3 -3
  361. package/dist/environment/unavailable.js +1 -1
  362. package/dist/event/sql.js +2 -2
  363. package/dist/event-logger.js +69 -69
  364. package/dist/file-mutation.js +88 -88
  365. package/dist/file.js +2 -2
  366. package/dist/filesystem/fff.bun.js +2 -2
  367. package/dist/filesystem/fff.js +2 -2
  368. package/dist/filesystem/fff.node.js +2 -2
  369. package/dist/filesystem/fff.workerd.js +2 -2
  370. package/dist/filesystem/ignore.js +1 -1
  371. package/dist/filesystem/location-watcher.js +110 -110
  372. package/dist/filesystem/protected.js +2 -2
  373. package/dist/filesystem/search.js +92 -92
  374. package/dist/filesystem/watcher-binding.js +2 -2
  375. package/dist/filesystem/watcher.js +4 -4
  376. package/dist/filesystem.js +92 -92
  377. package/dist/form.js +70 -70
  378. package/dist/formatter/builtins.js +3 -3
  379. package/dist/formatter.js +112 -112
  380. package/dist/generate.js +84 -84
  381. package/dist/git.js +5 -5
  382. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +2 -2
  383. package/dist/github-copilot/chat/get-response-metadata.js +2 -2
  384. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +2 -2
  385. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +8 -8
  386. package/dist/github-copilot/chat/openai-compatible-chat-options.js +2 -2
  387. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +2 -2
  388. package/dist/github-copilot/copilot-provider.js +21 -21
  389. package/dist/github-copilot/models.js +4 -4
  390. package/dist/github-copilot/openai-compatible-error.js +2 -2
  391. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +3 -3
  392. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +2 -2
  393. package/dist/github-copilot/responses/openai-error.js +2 -2
  394. package/dist/github-copilot/responses/openai-responses-language-model.js +12 -12
  395. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +7 -7
  396. package/dist/github-copilot/responses/tool/code-interpreter.js +2 -2
  397. package/dist/github-copilot/responses/tool/file-search.js +2 -2
  398. package/dist/github-copilot/responses/tool/image-generation.js +2 -2
  399. package/dist/github-copilot/responses/tool/local-shell.js +2 -2
  400. package/dist/github-copilot/responses/tool/web-search-preview.js +2 -2
  401. package/dist/github-copilot/responses/tool/web-search.js +2 -2
  402. package/dist/id/id.js +2 -2
  403. package/dist/image/photon-wasm.bun.js +1 -1
  404. package/dist/image/photon-wasm.node.js +1 -1
  405. package/dist/image/photon-wasm.workerd.js +1 -1
  406. package/dist/image/photon.js +123 -123
  407. package/dist/image.js +123 -123
  408. package/dist/instruction-discovery.js +73 -73
  409. package/dist/instructions/builtins.js +82 -82
  410. package/dist/instructions/index.js +2 -2
  411. package/dist/integration/connection.js +2 -2
  412. package/dist/integration.js +76 -76
  413. package/dist/job.js +4 -4
  414. package/dist/kv/sql.js +3 -3
  415. package/dist/kv.js +69 -69
  416. package/dist/location-mutation.js +80 -80
  417. package/dist/location-service-map.js +80 -80
  418. package/dist/location-services.js +312 -311
  419. package/dist/location.js +79 -79
  420. package/dist/mcp/client.js +89 -89
  421. package/dist/mcp/index.js +126 -126
  422. package/dist/mcp/instructions.js +154 -154
  423. package/dist/mcp/oauth.js +3 -3
  424. package/dist/mcp/stdio.js +88 -88
  425. package/dist/mime.js +2 -2
  426. package/dist/model-resolver.js +82 -82
  427. package/dist/model.js +3 -3
  428. package/dist/models-dev.js +76 -76
  429. package/dist/oauth/page.js +2 -2
  430. package/dist/permission/saved.js +80 -80
  431. package/dist/permission/sql.js +6 -6
  432. package/dist/permission.js +100 -100
  433. package/dist/plugin/agent.js +101 -101
  434. package/dist/plugin/command.js +80 -80
  435. package/dist/plugin/hooks.js +3 -3
  436. package/dist/plugin/host.js +185 -185
  437. package/dist/plugin/internal.js +272 -271
  438. package/dist/plugin/models-dev.js +77 -77
  439. package/dist/plugin/plan.js +73 -73
  440. package/dist/plugin/promise.js +145 -145
  441. package/dist/plugin/provider/alibaba.js +3 -3
  442. package/dist/plugin/provider/amazon-bedrock.js +3 -3
  443. package/dist/plugin/provider/anthropic.js +3 -3
  444. package/dist/plugin/provider/azure.js +117 -117
  445. package/dist/plugin/provider/cerebras.js +3 -3
  446. package/dist/plugin/provider/cloudflare-ai-gateway.js +118 -118
  447. package/dist/plugin/provider/cloudflare-workers-ai.js +118 -118
  448. package/dist/plugin/provider/cohere.js +3 -3
  449. package/dist/plugin/provider/configured.js +115 -115
  450. package/dist/plugin/provider/deepinfra.js +3 -3
  451. package/dist/plugin/provider/dynamic.js +2 -2
  452. package/dist/plugin/provider/factory.js +2 -2
  453. package/dist/plugin/provider/gateway.js +3 -3
  454. package/dist/plugin/provider/github-copilot.js +83 -83
  455. package/dist/plugin/provider/gitlab.js +4 -4
  456. package/dist/plugin/provider/google-vertex.js +3 -3
  457. package/dist/plugin/provider/groq.js +3 -3
  458. package/dist/plugin/provider/kilo.js +3 -3
  459. package/dist/plugin/provider/llmgateway.js +78 -78
  460. package/dist/plugin/provider/mistral.js +3 -3
  461. package/dist/plugin/provider/nvidia.js +3 -3
  462. package/dist/plugin/provider/openai-compatible.js +2 -2
  463. package/dist/plugin/provider/openai.js +80 -80
  464. package/dist/plugin/provider/opencode.js +94 -94
  465. package/dist/plugin/provider/openrouter.js +4 -4
  466. package/dist/plugin/provider/perplexity.js +3 -3
  467. package/dist/plugin/provider/sap-ai-core.js +3 -3
  468. package/dist/plugin/provider/snowflake-cortex.js +3 -3
  469. package/dist/plugin/provider/togetherai.js +3 -3
  470. package/dist/plugin/provider/venice.js +3 -3
  471. package/dist/plugin/provider/vercel.js +3 -3
  472. package/dist/plugin/provider/xai.js +78 -78
  473. package/dist/plugin/provider/zenmux.js +3 -3
  474. package/dist/plugin/provider.js +153 -153
  475. package/dist/plugin/runtime.js +176 -176
  476. package/dist/plugin/sdk.js +70 -70
  477. package/dist/plugin/skill.js +131 -131
  478. package/dist/plugin/supervisor.js +277 -276
  479. package/dist/plugin/system-prompt.js +2 -2
  480. package/dist/plugin/variant.js +4 -4
  481. package/dist/plugin/warming.js +111 -111
  482. package/dist/plugin/websearch/exa.js +4 -4
  483. package/dist/plugin/websearch/firecrawl.js +5 -5
  484. package/dist/plugin/websearch/index.js +8 -8
  485. package/dist/plugin/websearch/mcp.js +3 -3
  486. package/dist/plugin/websearch/parallel.js +5 -5
  487. package/dist/plugin.js +186 -186
  488. package/dist/project/copy-strategies.js +81 -81
  489. package/dist/project/copy.js +81 -81
  490. package/dist/project/directories.js +72 -72
  491. package/dist/project/schema.js +3 -3
  492. package/dist/project/sql.js +5 -5
  493. package/dist/project.js +78 -78
  494. package/dist/provider.js +2 -2
  495. package/dist/pty/protocol.js +1 -1
  496. package/dist/pty/pty.bun.js +1 -1
  497. package/dist/pty/pty.node.js +1 -1
  498. package/dist/pty/pty.workerd.js +1 -1
  499. package/dist/pty/schema.js +2 -2
  500. package/dist/pty/ticket.js +71 -71
  501. package/dist/pty.js +113 -113
  502. package/dist/question.js +71 -71
  503. package/dist/reference/instructions.js +78 -78
  504. package/dist/reference.js +76 -76
  505. package/dist/repository-cache.js +7 -7
  506. package/dist/repository.js +2 -2
  507. package/dist/ripgrep/binary.js +3 -3
  508. package/dist/ripgrep.js +90 -90
  509. package/dist/schema.js +2 -2
  510. package/dist/session/compaction.js +147 -147
  511. package/dist/session/context.js +285 -284
  512. package/dist/session/error.js +4 -4
  513. package/dist/session/event.js +2 -2
  514. package/dist/session/execution/restart.js +116 -116
  515. package/dist/session/execution.js +116 -116
  516. package/dist/session/generate-node.js +291 -290
  517. package/dist/session/generate.js +2 -2
  518. package/dist/session/history.js +78 -78
  519. package/dist/session/inbox.js +78 -78
  520. package/dist/session/info.js +88 -88
  521. package/dist/session/instruction-entry.js +74 -74
  522. package/dist/session/instruction-state.js +10 -10
  523. package/dist/session/instructions.js +97 -97
  524. package/dist/session/message-updater.js +4 -4
  525. package/dist/session/message.js +2 -2
  526. package/dist/session/model-headers.js +4 -4
  527. package/dist/session/model-http.js +4 -4
  528. package/dist/session/model-request.js +293 -292
  529. package/dist/session/projector.js +90 -90
  530. package/dist/session/prompt-cache-diagnostics.js +2 -2
  531. package/dist/session/prompt-cache-key.js +3 -3
  532. package/dist/session/revert.js +115 -115
  533. package/dist/session/run-coordinator.js +2 -2
  534. package/dist/session/runner/index.js +85 -85
  535. package/dist/session/runner/llm.js +301 -300
  536. package/dist/session/runner/max-steps.js +2 -2
  537. package/dist/session/runner/model.js +84 -84
  538. package/dist/session/runner/publish-llm-event.js +4 -4
  539. package/dist/session/runner/retry.js +73 -73
  540. package/dist/session/runner/to-llm-message.js +2 -2
  541. package/dist/session/schema.js +2 -2
  542. package/dist/session/sql.js +6 -6
  543. package/dist/session/store.js +96 -96
  544. package/dist/session/title.js +113 -113
  545. package/dist/session/to-session-error.js +112 -112
  546. package/dist/session/transfer.js +178 -178
  547. package/dist/session/usage.js +2 -2
  548. package/dist/session.js +175 -175
  549. package/dist/shell/parse.js +4 -4
  550. package/dist/shell/select.js +3 -3
  551. package/dist/shell.js +122 -122
  552. package/dist/skill/discovery.js +3 -3
  553. package/dist/skill/instructions.js +102 -102
  554. package/dist/skill.js +101 -101
  555. package/dist/snapshot.js +110 -110
  556. package/dist/state.js +2 -2
  557. package/dist/tool/html-markdown.js +9 -0
  558. package/dist/tool/http-body.js +2 -2
  559. package/dist/tool/mcp.js +153 -153
  560. package/dist/tool/plugin/edit.js +140 -140
  561. package/dist/tool/plugin/file-diff.js +2 -2
  562. package/dist/tool/plugin/glob.js +112 -112
  563. package/dist/tool/plugin/grep.js +112 -112
  564. package/dist/tool/plugin/patch.js +139 -139
  565. package/dist/tool/plugin/question.js +103 -103
  566. package/dist/tool/plugin/read.js +115 -115
  567. package/dist/tool/plugin/shell.js +180 -180
  568. package/dist/tool/plugin/skill.js +102 -102
  569. package/dist/tool/plugin/subagent.js +177 -177
  570. package/dist/tool/plugin/webfetch.js +105 -103
  571. package/dist/tool/plugin/websearch.js +105 -105
  572. package/dist/tool/plugin/write.js +140 -140
  573. package/dist/tool/read-filesystem.js +94 -94
  574. package/dist/tool/runtime.js +2 -2
  575. package/dist/tool-output.js +111 -111
  576. package/dist/tool.js +144 -144
  577. package/dist/types/permission.d.ts +10 -8
  578. package/dist/types/shell/parse.d.ts +17 -1
  579. package/dist/types/tool/html-markdown.d.ts +2 -0
  580. package/dist/types/tool/plugin/webfetch.d.ts +2 -1
  581. package/dist/util/array.js +1 -1
  582. package/dist/util/binary.js +1 -1
  583. package/dist/util/encode.js +1 -1
  584. package/dist/util/error.js +2 -2
  585. package/dist/util/identifier.js +1 -1
  586. package/dist/util/iife.js +2 -2
  587. package/dist/util/lazy.js +2 -2
  588. package/dist/util/path.js +1 -1
  589. package/dist/util/process-lock-ffi.bun.js +1 -1
  590. package/dist/util/process-lock-ffi.node.js +1 -1
  591. package/dist/util/process-lock-ffi.workerd.js +1 -1
  592. package/dist/util/process-lock.js +1 -1
  593. package/dist/util/retry.js +1 -1
  594. package/dist/util/slug.js +2 -2
  595. package/dist/util/token.js +2 -2
  596. package/dist/util/which.js +2 -2
  597. package/dist/util/wildcard.js +2 -2
  598. package/dist/v1/config/agent.js +4 -4
  599. package/dist/v1/config/attachment.js +3 -3
  600. package/dist/v1/config/command.js +2 -2
  601. package/dist/v1/config/config.js +15 -15
  602. package/dist/v1/config/error.js +3 -3
  603. package/dist/v1/config/formatter.js +2 -2
  604. package/dist/v1/config/layout.js +2 -2
  605. package/dist/v1/config/lsp.js +2 -2
  606. package/dist/v1/config/mcp.js +3 -3
  607. package/dist/v1/config/migrate.js +19 -19
  608. package/dist/v1/config/permission.js +2 -2
  609. package/dist/v1/config/plugin.js +2 -2
  610. package/dist/v1/config/provider-options.js +2 -2
  611. package/dist/v1/config/provider.js +3 -3
  612. package/dist/v1/config/server.js +3 -3
  613. package/dist/v1/config/skills.js +2 -2
  614. package/dist/v1/permission.js +1 -1
  615. package/dist/vcs/git.js +3 -3
  616. package/dist/vcs/hg.js +3 -3
  617. package/dist/vcs/patch.js +2 -2
  618. package/dist/vcs.js +83 -83
  619. package/dist/websearch.js +74 -74
  620. package/dist/wellknown/plugin.js +74 -74
  621. package/dist/wellknown.js +73 -73
  622. package/dist/workspace/driver.js +2 -2
  623. package/dist/workspace/sql.js +2 -2
  624. package/dist/workspace.js +70 -70
  625. package/package.json +8 -18
  626. package/dist/chunks/location-service-map-7mpw7j43.js +0 -287
  627. package/dist/shell/parser-wasm.bun.js +0 -10
  628. package/dist/shell/parser-wasm.node.js +0 -13
  629. package/dist/shell/parser-wasm.workerd.js +0 -7
  630. package/dist/types/shell/parser-wasm.bun.d.ts +0 -5
  631. package/dist/types/shell/parser-wasm.node.d.ts +0 -5
  632. package/dist/types/shell/parser-wasm.workerd.d.ts +0 -5
  633. /package/dist/chunks/{location-service-map-0cgt0xh2.js → wellknown-0cgt0xh2.js} +0 -0
  634. /package/dist/chunks/{location-service-map-0f48qthw.js → wellknown-0f48qthw.js} +0 -0
  635. /package/dist/chunks/{location-service-map-0zz82cjq.js → wellknown-0zz82cjq.js} +0 -0
  636. /package/dist/chunks/{location-service-map-1fb7bmpf.js → wellknown-1fb7bmpf.js} +0 -0
  637. /package/dist/chunks/{location-service-map-1wcz8fvj.js → wellknown-1wcz8fvj.js} +0 -0
  638. /package/dist/chunks/{location-service-map-2qdx6zz3.js → wellknown-2qdx6zz3.js} +0 -0
  639. /package/dist/chunks/{location-service-map-3c4nztf9.js → wellknown-3c4nztf9.js} +0 -0
  640. /package/dist/chunks/{location-service-map-3g3rpp2x.js → wellknown-3g3rpp2x.js} +0 -0
  641. /package/dist/chunks/{location-service-map-3q6gbwmd.js → wellknown-3q6gbwmd.js} +0 -0
  642. /package/dist/chunks/{location-service-map-3w3ybtfd.js → wellknown-3w3ybtfd.js} +0 -0
  643. /package/dist/chunks/{location-service-map-47ty4mvs.js → wellknown-47ty4mvs.js} +0 -0
  644. /package/dist/chunks/{location-service-map-4b2tz2m9.js → wellknown-4b2tz2m9.js} +0 -0
  645. /package/dist/chunks/{location-service-map-5a5ch9ts.js → wellknown-5a5ch9ts.js} +0 -0
  646. /package/dist/chunks/{location-service-map-5va1yh78.js → wellknown-5va1yh78.js} +0 -0
  647. /package/dist/chunks/{location-service-map-69qrqpw0.js → wellknown-69qrqpw0.js} +0 -0
  648. /package/dist/chunks/{location-service-map-6jtjggv5.js → wellknown-6jtjggv5.js} +0 -0
  649. /package/dist/chunks/{location-service-map-6yt963b8.js → wellknown-6yt963b8.js} +0 -0
  650. /package/dist/chunks/{location-service-map-7n9qwqk4.js → wellknown-7n9qwqk4.js} +0 -0
  651. /package/dist/chunks/{location-service-map-8m0qaa0v.js → wellknown-8m0qaa0v.js} +0 -0
  652. /package/dist/chunks/{location-service-map-8nn8kqcn.js → wellknown-8nn8kqcn.js} +0 -0
  653. /package/dist/chunks/{location-service-map-8sj3ajy5.js → wellknown-8sj3ajy5.js} +0 -0
  654. /package/dist/chunks/{location-service-map-8w9tzfz1.js → wellknown-8w9tzfz1.js} +0 -0
  655. /package/dist/chunks/{location-service-map-906y0b6d.js → wellknown-906y0b6d.js} +0 -0
  656. /package/dist/chunks/{location-service-map-9dct5xhx.js → wellknown-9dct5xhx.js} +0 -0
  657. /package/dist/chunks/{location-service-map-9sdtsapf.js → wellknown-9sdtsapf.js} +0 -0
  658. /package/dist/chunks/{location-service-map-a02svayp.js → wellknown-a02svayp.js} +0 -0
  659. /package/dist/chunks/{location-service-map-a83yvq99.js → wellknown-a83yvq99.js} +0 -0
  660. /package/dist/chunks/{location-service-map-ayevdmef.js → wellknown-ayevdmef.js} +0 -0
  661. /package/dist/chunks/{location-service-map-b02txbh8.js → wellknown-b02txbh8.js} +0 -0
  662. /package/dist/chunks/{location-service-map-bbqs2y60.js → wellknown-bbqs2y60.js} +0 -0
  663. /package/dist/chunks/{location-service-map-brsh5f65.js → wellknown-brsh5f65.js} +0 -0
  664. /package/dist/chunks/{location-service-map-bxdhjb3y.js → wellknown-bxdhjb3y.js} +0 -0
  665. /package/dist/chunks/{location-service-map-c77ad0vh.js → wellknown-c77ad0vh.js} +0 -0
  666. /package/dist/chunks/{location-service-map-cm67rqy2.js → wellknown-cm67rqy2.js} +0 -0
  667. /package/dist/chunks/{location-service-map-d6s8p2vk.js → wellknown-d6s8p2vk.js} +0 -0
  668. /package/dist/chunks/{location-service-map-dbah77c1.js → wellknown-dbah77c1.js} +0 -0
  669. /package/dist/chunks/{location-service-map-df3v2q6j.js → wellknown-df3v2q6j.js} +0 -0
  670. /package/dist/chunks/{location-service-map-dhcq6c44.js → wellknown-dhcq6c44.js} +0 -0
  671. /package/dist/chunks/{location-service-map-dht5baf0.js → wellknown-dht5baf0.js} +0 -0
  672. /package/dist/chunks/{location-service-map-dkmkay92.js → wellknown-dkmkay92.js} +0 -0
  673. /package/dist/chunks/{location-service-map-dppgrtwb.js → wellknown-dppgrtwb.js} +0 -0
  674. /package/dist/chunks/{location-service-map-ehj9csmv.js → wellknown-ehj9csmv.js} +0 -0
  675. /package/dist/chunks/{location-service-map-emmqknsm.js → wellknown-emmqknsm.js} +0 -0
  676. /package/dist/chunks/{location-service-map-ezs3tagn.js → wellknown-ezs3tagn.js} +0 -0
  677. /package/dist/chunks/{location-service-map-f4cp4g4a.js → wellknown-f4cp4g4a.js} +0 -0
  678. /package/dist/chunks/{location-service-map-f84sxdqn.js → wellknown-f84sxdqn.js} +0 -0
  679. /package/dist/chunks/{location-service-map-faypg4r1.js → wellknown-faypg4r1.js} +0 -0
  680. /package/dist/chunks/{location-service-map-g7k9te92.js → wellknown-g7k9te92.js} +0 -0
  681. /package/dist/chunks/{location-service-map-gd5xeqc2.js → wellknown-gd5xeqc2.js} +0 -0
  682. /package/dist/chunks/{location-service-map-ghm4673n.js → wellknown-ghm4673n.js} +0 -0
  683. /package/dist/chunks/{location-service-map-ghwjy7my.js → wellknown-ghwjy7my.js} +0 -0
  684. /package/dist/chunks/{location-service-map-gy500k2r.js → wellknown-gy500k2r.js} +0 -0
  685. /package/dist/chunks/{location-service-map-hzeg9cfr.js → wellknown-hzeg9cfr.js} +0 -0
  686. /package/dist/chunks/{location-service-map-j07kk359.js → wellknown-j07kk359.js} +0 -0
  687. /package/dist/chunks/{location-service-map-jkrm4ad7.js → wellknown-jkrm4ad7.js} +0 -0
  688. /package/dist/chunks/{location-service-map-jve7t217.js → wellknown-jve7t217.js} +0 -0
  689. /package/dist/chunks/{location-service-map-kpdbz7gn.js → wellknown-kpdbz7gn.js} +0 -0
  690. /package/dist/chunks/{location-service-map-kxy11nzk.js → wellknown-kxy11nzk.js} +0 -0
  691. /package/dist/chunks/{location-service-map-kyyqvx4s.js → wellknown-kyyqvx4s.js} +0 -0
  692. /package/dist/chunks/{location-service-map-m8cbvarh.js → wellknown-m8cbvarh.js} +0 -0
  693. /package/dist/chunks/{location-service-map-ma07p6tt.js → wellknown-ma07p6tt.js} +0 -0
  694. /package/dist/chunks/{location-service-map-ma60vzgv.js → wellknown-ma60vzgv.js} +0 -0
  695. /package/dist/chunks/{location-service-map-n3m50c2t.js → wellknown-n3m50c2t.js} +0 -0
  696. /package/dist/chunks/{location-service-map-nkm1m8dz.js → wellknown-nkm1m8dz.js} +0 -0
  697. /package/dist/chunks/{location-service-map-nsc0c3zb.js → wellknown-nsc0c3zb.js} +0 -0
  698. /package/dist/chunks/{location-service-map-qaarhjrp.js → wellknown-qaarhjrp.js} +0 -0
  699. /package/dist/chunks/{location-service-map-qc167nrn.js → wellknown-qc167nrn.js} +0 -0
  700. /package/dist/chunks/{location-service-map-qp95y4jb.js → wellknown-qp95y4jb.js} +0 -0
  701. /package/dist/chunks/{location-service-map-r8f4w671.js → wellknown-r8f4w671.js} +0 -0
  702. /package/dist/chunks/{location-service-map-rdfev9jy.js → wellknown-rdfev9jy.js} +0 -0
  703. /package/dist/chunks/{location-service-map-rvfvac9x.js → wellknown-rvfvac9x.js} +0 -0
  704. /package/dist/chunks/{location-service-map-s7whb9gt.js → wellknown-s7whb9gt.js} +0 -0
  705. /package/dist/chunks/{location-service-map-se76j685.js → wellknown-se76j685.js} +0 -0
  706. /package/dist/chunks/{location-service-map-sem2g21k.js → wellknown-sem2g21k.js} +0 -0
  707. /package/dist/chunks/{location-service-map-tmb1f636.js → wellknown-tmb1f636.js} +0 -0
  708. /package/dist/chunks/{location-service-map-ttxf0gsy.js → wellknown-ttxf0gsy.js} +0 -0
  709. /package/dist/chunks/{location-service-map-tvmhrvfj.js → wellknown-tvmhrvfj.js} +0 -0
  710. /package/dist/chunks/{location-service-map-v2adqbbe.js → wellknown-v2adqbbe.js} +0 -0
  711. /package/dist/chunks/{location-service-map-wj4sxzqa.js → wellknown-wj4sxzqa.js} +0 -0
  712. /package/dist/chunks/{location-service-map-wwntjmk1.js → wellknown-wwntjmk1.js} +0 -0
  713. /package/dist/chunks/{location-service-map-wx89ywv3.js → wellknown-wx89ywv3.js} +0 -0
  714. /package/dist/chunks/{location-service-map-wyqjaaa5.js → wellknown-wyqjaaa5.js} +0 -0
  715. /package/dist/chunks/{location-service-map-x4q807cx.js → wellknown-x4q807cx.js} +0 -0
  716. /package/dist/chunks/{location-service-map-yrqrg4vp.js → wellknown-yrqrg4vp.js} +0 -0
  717. /package/dist/chunks/{location-service-map-z47nswr2.js → wellknown-z47nswr2.js} +0 -0
  718. /package/dist/chunks/{location-service-map-zsf8rs93.js → wellknown-zsf8rs93.js} +0 -0
@@ -0,0 +1,674 @@
1
+ // src/tool/html-markdown.ts
2
+ import { Parser } from "htmlparser2";
3
+ var omitted = new Set(["script", "style", "noscript", "iframe", "object", "embed", "meta", "link", "template"]);
4
+ var blocks = new Set([
5
+ "address",
6
+ "article",
7
+ "aside",
8
+ "details",
9
+ "dialog",
10
+ "div",
11
+ "dl",
12
+ "fieldset",
13
+ "figcaption",
14
+ "figure",
15
+ "footer",
16
+ "form",
17
+ "header",
18
+ "main",
19
+ "nav",
20
+ "p",
21
+ "section",
22
+ "summary"
23
+ ]);
24
+ var MAX_MARKDOWN_BYTES = 5 * 1024 * 1024;
25
+ var CONTENT_BYTES = MAX_MARKDOWN_BYTES - 64 * 1024;
26
+ function convertHTMLToMarkdown(html) {
27
+ const output = [];
28
+ const stack = [];
29
+ const encoder = new TextEncoder;
30
+ let pendingSpace = false;
31
+ let pendingIndent = "";
32
+ let last = "";
33
+ let quoteDepth = 0;
34
+ let needsQuotePrefix = false;
35
+ let blockCount = 0;
36
+ let depth = 0;
37
+ let stopped = false;
38
+ let outputBytes = 0;
39
+ let activeCode;
40
+ let activeLink;
41
+ let linkOpen = false;
42
+ let activeMarker;
43
+ let activeList;
44
+ let activeItem;
45
+ let activeTable;
46
+ let activeCell;
47
+ let tableDepth = 0;
48
+ let fallbackSuppressedDepth = 0;
49
+ let fallbackOmittedDepth = 0;
50
+ let activeDetails;
51
+ const sliceBytes = (value, bytes) => {
52
+ if (encoder.encode(value).byteLength <= bytes)
53
+ return value;
54
+ const characters = Array.from(value);
55
+ let low = 0;
56
+ let high = characters.length;
57
+ while (low < high) {
58
+ const middle = Math.ceil((low + high) / 2);
59
+ if (encoder.encode(characters.slice(0, middle).join("")).byteLength <= bytes)
60
+ low = middle;
61
+ else
62
+ high = middle - 1;
63
+ }
64
+ return characters.slice(0, low).join("");
65
+ };
66
+ const append = (value, content = false) => {
67
+ const limit = content ? CONTENT_BYTES : MAX_MARKDOWN_BYTES;
68
+ if (!value || outputBytes >= limit)
69
+ return;
70
+ const bytes = encoder.encode(value);
71
+ const remaining = limit - outputBytes;
72
+ const next = bytes.byteLength <= remaining ? value : sliceBytes(value, remaining);
73
+ output.push(next);
74
+ outputBytes += encoder.encode(next).byteLength;
75
+ last = next.at(-1) ?? last;
76
+ };
77
+ const appendRaw = (value) => {
78
+ const before = output.length;
79
+ append(value);
80
+ if (output.length > before)
81
+ output[output.length - 1] = { raw: output[output.length - 1] };
82
+ };
83
+ const take = (start) => {
84
+ const chunks = output.splice(start);
85
+ const value = chunks.map((chunk) => typeof chunk === "string" ? chunk : chunk.raw).join("");
86
+ outputBytes -= encoder.encode(value).byteLength;
87
+ return value;
88
+ };
89
+ const prefixQuote = () => {
90
+ if (!needsQuotePrefix || quoteDepth === 0 || activeCell)
91
+ return;
92
+ append(`${"> ".repeat(Math.min(8, quoteDepth))}`);
93
+ needsQuotePrefix = false;
94
+ };
95
+ const flushSpace = () => {
96
+ if (!pendingSpace)
97
+ return;
98
+ const marker = activeMarker;
99
+ if (marker && output.length === marker.index + 1 && last !== " " && last !== `
100
+ `) {
101
+ const value = output[marker.index];
102
+ if (typeof value === "string")
103
+ output[marker.index] = ` ${value}`;
104
+ outputBytes++;
105
+ marker.leadingSpace = true;
106
+ pendingSpace = false;
107
+ return;
108
+ }
109
+ if (last && last !== `
110
+ ` && last !== " ")
111
+ append(" ");
112
+ pendingSpace = false;
113
+ };
114
+ const inline = (value, open = false) => {
115
+ if (open)
116
+ flushSpace();
117
+ prefixQuote();
118
+ if (pendingIndent) {
119
+ append(pendingIndent);
120
+ pendingIndent = "";
121
+ }
122
+ if (activeLink && !linkOpen) {
123
+ append("[");
124
+ linkOpen = true;
125
+ }
126
+ append(value);
127
+ };
128
+ const block = () => {
129
+ if (activeLink && linkOpen) {
130
+ append(`](${destination(activeLink.href)}${title(activeLink.title)})`);
131
+ linkOpen = false;
132
+ }
133
+ pendingSpace = false;
134
+ append(`
135
+
136
+ `);
137
+ blockCount++;
138
+ needsQuotePrefix = quoteDepth > 0;
139
+ pendingIndent = activeItem?.indent ?? "";
140
+ };
141
+ const suspendLink = (frame) => {
142
+ if (!activeLink)
143
+ return;
144
+ frame.suspendedLink = activeLink;
145
+ block();
146
+ activeLink = undefined;
147
+ linkOpen = false;
148
+ };
149
+ const text = (value) => {
150
+ if (activeCode) {
151
+ activeCode.text += value;
152
+ return;
153
+ }
154
+ for (const part of value.split(/([\t\n\f\r ]+)/)) {
155
+ if (!part)
156
+ continue;
157
+ if (/^[\t\n\f\r ]+$/.test(part)) {
158
+ pendingSpace = true;
159
+ continue;
160
+ }
161
+ flushSpace();
162
+ prefixQuote();
163
+ if (pendingIndent) {
164
+ append(pendingIndent);
165
+ pendingIndent = "";
166
+ }
167
+ if (activeLink && !linkOpen) {
168
+ append("[");
169
+ linkOpen = true;
170
+ }
171
+ const escaped = part.replace(/([\\`*_[\]<>|])/g, "\\$1").replace(/~/g, "\\~").replace(/^([#+-])/, "\\$1").replace(/^(\d+)\./, "$1\\.");
172
+ append(escaped, true);
173
+ }
174
+ };
175
+ const destination = (value) => value.replace(/([\\()])/g, "\\$1").replace(/[\t\n\r ]+/g, "%20");
176
+ const title = (value) => value ? ` "${value.replace(/[\t\n\r ]+/g, " ").trim().replace(/([\\"])/g, "\\$1")}"` : "";
177
+ const finishCode = (code) => {
178
+ if (code.inline && !code.text)
179
+ return;
180
+ let backticks = 0;
181
+ let tildes = 0;
182
+ let currentBackticks = 0;
183
+ let currentTildes = 0;
184
+ for (const character of code.text) {
185
+ currentBackticks = character === "`" ? currentBackticks + 1 : 0;
186
+ currentTildes = character === "~" ? currentTildes + 1 : 0;
187
+ backticks = Math.max(backticks, currentBackticks);
188
+ tildes = Math.max(tildes, currentTildes);
189
+ }
190
+ if (code.inline) {
191
+ const fence2 = "`".repeat(Math.max(1, backticks + 1));
192
+ const padding = /^ | $/.test(code.text) && !/^ +$/.test(code.text) ? " " : "";
193
+ flushSpace();
194
+ prefixQuote();
195
+ const wrapper = encoder.encode(`${fence2}${padding}${padding}${fence2}`).byteLength;
196
+ appendRaw(`${fence2}${padding}${sliceBytes(code.text, Math.max(0, CONTENT_BYTES - outputBytes - wrapper))}${padding}${fence2}`);
197
+ return;
198
+ }
199
+ if (activeCell) {
200
+ text(code.text);
201
+ return;
202
+ }
203
+ const marker = backticks <= tildes ? "`" : "~";
204
+ const length = Math.max(3, (marker === "`" ? backticks : tildes) + 1);
205
+ const fence = marker.repeat(length);
206
+ block();
207
+ const prefix = `${fence}${code.language ?? ""}
208
+ `;
209
+ const quote = quoteDepth > 0 ? `${"> ".repeat(Math.min(8, quoteDepth))}` : "";
210
+ const closing = `${code.text.endsWith(`
211
+ `) ? "" : `
212
+ `}${fence}`;
213
+ let payload = code.text;
214
+ for (;; ) {
215
+ const candidate = `${prefix}${payload}${payload.endsWith(`
216
+ `) ? "" : `
217
+ `}${fence}`;
218
+ const value = quote ? candidate.replace(/^/gm, quote) : candidate;
219
+ const valueBytes = encoder.encode(value).byteLength;
220
+ if (outputBytes + valueBytes <= CONTENT_BYTES) {
221
+ appendRaw(value);
222
+ block();
223
+ return;
224
+ }
225
+ const excess = valueBytes - Math.max(0, CONTENT_BYTES - outputBytes);
226
+ payload = sliceBytes(payload, Math.max(0, encoder.encode(payload).byteLength - Math.ceil(excess)));
227
+ }
228
+ };
229
+ const parser = new Parser({
230
+ onopentag(name, attributes) {
231
+ depth++;
232
+ if (depth > 1e4) {
233
+ if (stack.at(-1)?.suppressed) {
234
+ const visibleParent = stack.findLastIndex((frame2) => !frame2.suppressed);
235
+ fallbackSuppressedDepth = visibleParent + 2;
236
+ }
237
+ activeCode = undefined;
238
+ stopped = true;
239
+ }
240
+ if (stopped) {
241
+ if (omitted.has(name))
242
+ fallbackOmittedDepth++;
243
+ else
244
+ pendingSpace = true;
245
+ return;
246
+ }
247
+ const suppressed = (stack.at(-1)?.suppressed ?? false) || omitted.has(name);
248
+ const frame = { suppressed };
249
+ const hidden = "hidden" in attributes || attributes["aria-hidden"]?.toLowerCase() === "true" || name === "head";
250
+ const details = activeDetails;
251
+ if (hidden || details && !details.open && !details.summary && name !== "summary")
252
+ frame.suppressed = true;
253
+ stack.push(frame);
254
+ if (frame.suppressed)
255
+ return;
256
+ if (activeCode && !activeCode.inline) {
257
+ if (name === "br")
258
+ activeCode.text += `
259
+ `;
260
+ if (name === "code" && attributes.class)
261
+ activeCode.language = attributes.class.match(/(?:language-|lang-)([^\s]+)/)?.[1];
262
+ return;
263
+ }
264
+ if (name === "details") {
265
+ frame.details = { open: "open" in attributes, summary: false, previous: activeDetails };
266
+ activeDetails = frame.details;
267
+ block();
268
+ return;
269
+ }
270
+ if (name === "summary") {
271
+ if (details)
272
+ details.summary = true;
273
+ block();
274
+ return;
275
+ }
276
+ if (name === "pre") {
277
+ suspendLink(frame);
278
+ frame.code = { inline: false, text: "" };
279
+ activeCode = frame.code;
280
+ return;
281
+ }
282
+ if (name === "code") {
283
+ if (activeCode?.inline)
284
+ return;
285
+ frame.code = { inline: true, text: "" };
286
+ activeCode = frame.code;
287
+ return;
288
+ }
289
+ if (/^h[1-6]$/.test(name)) {
290
+ block();
291
+ inline(`${"#".repeat(Number(name[1]))} `);
292
+ return;
293
+ }
294
+ if (blocks.has(name)) {
295
+ suspendLink(frame);
296
+ if (name === "p" && last === " ")
297
+ return;
298
+ block();
299
+ return;
300
+ }
301
+ if (name === "br") {
302
+ pendingSpace = false;
303
+ inline(`
304
+ `);
305
+ needsQuotePrefix = quoteDepth > 0;
306
+ return;
307
+ }
308
+ if (name === "hr") {
309
+ block();
310
+ inline("---");
311
+ block();
312
+ return;
313
+ }
314
+ if (name === "strong" || name === "b") {
315
+ inline("**", true);
316
+ frame.marker = { index: output.length - 1, block: blockCount, previous: activeMarker };
317
+ activeMarker = frame.marker;
318
+ return;
319
+ }
320
+ if (name === "em" || name === "i") {
321
+ inline("*", true);
322
+ frame.marker = { index: output.length - 1, block: blockCount, previous: activeMarker };
323
+ activeMarker = frame.marker;
324
+ return;
325
+ }
326
+ if (name === "s" || name === "strike" || name === "del") {
327
+ inline("~~", true);
328
+ frame.marker = { index: output.length - 1, block: blockCount, previous: activeMarker };
329
+ activeMarker = frame.marker;
330
+ return;
331
+ }
332
+ if (name === "a") {
333
+ if (activeLink && activeCode?.inline) {
334
+ const parent = stack.findLast((candidate) => candidate.link === activeLink && candidate.linkCode === activeCode);
335
+ if (parent) {
336
+ finishCode(activeCode);
337
+ if (linkOpen)
338
+ append(`](${destination(activeLink.href)}${title(activeLink.title)})`);
339
+ activeCode = parent.resumedCode;
340
+ parent.link = undefined;
341
+ parent.linkCode = undefined;
342
+ activeLink = undefined;
343
+ linkOpen = false;
344
+ }
345
+ }
346
+ if (activeCode?.inline) {
347
+ frame.resumedCode = activeCode;
348
+ if (activeCode.text)
349
+ finishCode(activeCode);
350
+ activeCode.text = "";
351
+ activeCode = undefined;
352
+ frame.link = { href: attributes.href ?? "", title: attributes.title };
353
+ activeLink = frame.link;
354
+ linkOpen = true;
355
+ inline("[", true);
356
+ frame.linkCode = { inline: true, text: "" };
357
+ activeCode = frame.linkCode;
358
+ return;
359
+ }
360
+ if (activeLink) {
361
+ if (linkOpen)
362
+ append(`](${destination(activeLink.href)}${title(activeLink.title)})`);
363
+ const parent = stack.findLast((candidate) => candidate.link === activeLink);
364
+ if (parent)
365
+ parent.link = undefined;
366
+ activeLink = undefined;
367
+ linkOpen = false;
368
+ }
369
+ frame.link = { href: attributes.href ?? "", title: attributes.title };
370
+ activeLink = frame.link;
371
+ linkOpen = true;
372
+ return inline("[", true);
373
+ }
374
+ if (name === "img") {
375
+ const alt = (attributes.alt ?? "").replace(/([\\\]])/g, "\\$1");
376
+ const close = `](${destination(attributes.src ?? "")}${title(attributes.title)})`;
377
+ const open = "![";
378
+ const available = CONTENT_BYTES - outputBytes - encoder.encode(open + close).byteLength;
379
+ inline(`${open}${sliceBytes(alt, Math.max(0, available))}${close}`, true);
380
+ return;
381
+ }
382
+ if (name === "blockquote") {
383
+ suspendLink(frame);
384
+ block();
385
+ quoteDepth++;
386
+ needsQuotePrefix = true;
387
+ return;
388
+ }
389
+ if (name === "ul" || name === "ol") {
390
+ suspendLink(frame);
391
+ const start = Number.parseInt(attributes.start ?? "1");
392
+ frame.list = { ordered: name === "ol", next: Number.isNaN(start) ? 1 : start, previous: activeList };
393
+ activeList = frame.list;
394
+ block();
395
+ return;
396
+ }
397
+ if (name === "li") {
398
+ block();
399
+ const value = Number.parseInt(attributes.value ?? "");
400
+ if (activeList?.ordered && !Number.isNaN(value))
401
+ activeList.next = value;
402
+ const marker = activeList?.ordered ? `${activeList.next++}.` : "-";
403
+ const prefix = `${(activeItem?.indent ?? "").slice(0, 24)}${marker} `;
404
+ frame.item = { indent: " ".repeat(prefix.length), previous: activeItem };
405
+ activeItem = frame.item;
406
+ pendingIndent = "";
407
+ inline(prefix);
408
+ return;
409
+ }
410
+ if (name === "table") {
411
+ suspendLink(frame);
412
+ tableDepth++;
413
+ if (tableDepth === 1) {
414
+ block();
415
+ frame.table = { start: output.length, rows: [], fallback: false, previous: activeTable };
416
+ activeTable = frame.table;
417
+ } else
418
+ pendingSpace = true;
419
+ return;
420
+ }
421
+ if (name === "tr") {
422
+ if (tableDepth !== 1) {
423
+ pendingSpace = true;
424
+ return;
425
+ }
426
+ if (activeTable)
427
+ activeTable.row = [];
428
+ return;
429
+ }
430
+ if (name === "th" || name === "td") {
431
+ if (tableDepth !== 1) {
432
+ pendingSpace = true;
433
+ return;
434
+ }
435
+ if (attributes.colspan || attributes.rowspan)
436
+ activeTable.fallback = true;
437
+ frame.cell = { start: output.length };
438
+ activeCell = frame.cell;
439
+ return;
440
+ }
441
+ if (name === "caption") {
442
+ frame.caption = { start: output.length };
443
+ return;
444
+ }
445
+ if (name === "dt") {
446
+ block();
447
+ inline("**");
448
+ return;
449
+ }
450
+ if (name === "dd") {
451
+ inline(`
452
+ : `);
453
+ return;
454
+ }
455
+ },
456
+ ontext(value) {
457
+ if (stopped) {
458
+ if (fallbackSuppressedDepth === 0 && fallbackOmittedDepth === 0)
459
+ text(value);
460
+ return;
461
+ }
462
+ if (stack.at(-1)?.suppressed)
463
+ return;
464
+ text(value);
465
+ },
466
+ onclosetag(name) {
467
+ depth--;
468
+ if (stopped) {
469
+ if (fallbackOmittedDepth > 0 && omitted.has(name))
470
+ fallbackOmittedDepth--;
471
+ if (fallbackSuppressedDepth > 0 && depth < fallbackSuppressedDepth)
472
+ fallbackSuppressedDepth = 0;
473
+ return;
474
+ }
475
+ const frame = stack.pop();
476
+ if (!frame || frame.suppressed)
477
+ return;
478
+ if (frame.linkCode) {
479
+ if (activeLink !== frame.link || !linkOpen) {
480
+ frame.resumedCode.text += frame.linkCode.text;
481
+ activeCode = frame.resumedCode;
482
+ if (activeLink === frame.link)
483
+ activeLink = undefined;
484
+ linkOpen = false;
485
+ return;
486
+ }
487
+ activeCode = undefined;
488
+ finishCode(frame.linkCode);
489
+ if (frame.link && linkOpen)
490
+ append(`](${destination(frame.link.href)}${title(frame.link.title)})`);
491
+ activeLink = undefined;
492
+ linkOpen = false;
493
+ activeCode = frame.resumedCode;
494
+ return;
495
+ }
496
+ if (activeCode && !activeCode.inline && !frame.code)
497
+ return;
498
+ if (frame.code) {
499
+ activeCode = undefined;
500
+ finishCode(frame.code);
501
+ if (frame.suspendedLink)
502
+ activeLink = frame.suspendedLink;
503
+ return;
504
+ }
505
+ if (name === "summary") {
506
+ if (activeDetails)
507
+ activeDetails.summary = false;
508
+ return block();
509
+ }
510
+ if (name === "details") {
511
+ activeDetails = frame.details?.previous;
512
+ return block();
513
+ }
514
+ if (name === "dt") {
515
+ inline("**");
516
+ return;
517
+ }
518
+ if (name === "dd")
519
+ return block();
520
+ if (name === "strong" || name === "b" || name === "em" || name === "i" || name === "s" || name === "strike" || name === "del") {
521
+ const value = name === "strong" || name === "b" ? "**" : name === "em" || name === "i" ? "*" : "~~";
522
+ const trailingSpace = pendingSpace;
523
+ pendingSpace = false;
524
+ if (frame.marker)
525
+ activeMarker = frame.marker.previous;
526
+ if (frame.marker && (frame.marker.block !== blockCount || output.length === frame.marker.index + 1)) {
527
+ output[frame.marker.index] = "";
528
+ pendingSpace = trailingSpace || frame.marker.leadingSpace === true;
529
+ return;
530
+ }
531
+ inline(value);
532
+ pendingSpace = trailingSpace || frame.marker?.leadingSpace === true;
533
+ return;
534
+ }
535
+ if (name === "a") {
536
+ if (frame.link && (activeLink === frame.link || !activeLink)) {
537
+ activeLink = frame.link;
538
+ if (linkOpen)
539
+ append(`](${destination(frame.link?.href ?? "")}${title(frame.link?.title)})`);
540
+ else if (last && last !== `
541
+ `)
542
+ append(`](${destination(frame.link?.href ?? "")}${title(frame.link?.title)})`);
543
+ linkOpen = false;
544
+ activeLink = undefined;
545
+ }
546
+ return;
547
+ }
548
+ if (/^h[1-6]$/.test(name) || blocks.has(name)) {
549
+ block();
550
+ if (frame.suspendedLink)
551
+ activeLink = frame.suspendedLink;
552
+ return;
553
+ }
554
+ if (name === "blockquote") {
555
+ quoteDepth--;
556
+ block();
557
+ if (frame.suspendedLink)
558
+ activeLink = frame.suspendedLink;
559
+ return;
560
+ }
561
+ if (name === "li") {
562
+ activeItem = frame.item?.previous;
563
+ return block();
564
+ }
565
+ if (name === "ul" || name === "ol") {
566
+ activeList = frame.list?.previous;
567
+ block();
568
+ if (frame.suspendedLink)
569
+ activeLink = frame.suspendedLink;
570
+ return;
571
+ }
572
+ if ((name === "th" || name === "td") && tableDepth === 1) {
573
+ activeCell = undefined;
574
+ if (frame.cell) {
575
+ const value = take(frame.cell.start).replace(/[\t\r\n ]+/g, " ").trim().replace(/(?<!\\)\|/g, "\\|");
576
+ activeTable?.row?.push(value);
577
+ }
578
+ return;
579
+ }
580
+ if (name === "tr") {
581
+ if (tableDepth !== 1)
582
+ return;
583
+ if (activeTable?.row)
584
+ activeTable.rows.push(activeTable.row);
585
+ if (activeTable)
586
+ activeTable.row = undefined;
587
+ pendingSpace = true;
588
+ return;
589
+ }
590
+ if (name === "caption" && frame.caption && activeTable) {
591
+ activeTable.caption = take(frame.caption.start).replace(/[\t\r\n ]+/g, " ").trim();
592
+ return;
593
+ }
594
+ if (name === "table") {
595
+ tableDepth--;
596
+ if (tableDepth === 0) {
597
+ const table = frame.table;
598
+ activeTable = table?.previous;
599
+ if (table) {
600
+ const loose = take(table.start).replace(/[\t\r\n ]+/g, " ").trim();
601
+ const width = table.rows[0]?.length ?? 0;
602
+ const rectangular = width > 0 && table.rows.every((row) => row.length === width);
603
+ if (loose) {
604
+ append(loose);
605
+ block();
606
+ }
607
+ if (table.caption) {
608
+ append(table.caption);
609
+ block();
610
+ }
611
+ if (!table.fallback && rectangular) {
612
+ const prefix = `${quoteDepth > 0 ? `${"> ".repeat(Math.min(8, quoteDepth))}` : ""}${pendingIndent}`;
613
+ pendingIndent = "";
614
+ append(`${prefix}| ${table.rows[0].join(" | ")} |
615
+ ${prefix}|${" --- |".repeat(width)}`);
616
+ for (const row of table.rows.slice(1))
617
+ append(`
618
+ ${prefix}| ${row.join(" | ")} |`);
619
+ } else {
620
+ for (const [index, row] of table.rows.entries()) {
621
+ if (index > 0)
622
+ block();
623
+ append(row.join(" | "));
624
+ }
625
+ }
626
+ }
627
+ block();
628
+ if (frame.suspendedLink)
629
+ activeLink = frame.suspendedLink;
630
+ return;
631
+ }
632
+ pendingSpace = true;
633
+ }
634
+ }
635
+ });
636
+ for (let index = 0;index < html.length; index += 64 * 1024)
637
+ parser.write(html.slice(index, index + 64 * 1024));
638
+ parser.end();
639
+ const normalized = [];
640
+ let pendingText = "";
641
+ const flushText = () => {
642
+ if (!pendingText)
643
+ return;
644
+ const lines = pendingText.replace(/[ \t]+\n/g, (space) => space.startsWith(" ") ? `
645
+ ` : `
646
+ `).replace(/\n{3,}/g, `
647
+
648
+ `).split(`
649
+ `);
650
+ normalized.push(lines.map((line, index) => {
651
+ if (line)
652
+ return line;
653
+ const before = lines[index - 1]?.match(/^(?:> )+/)?.[0];
654
+ const after = lines[index + 1]?.match(/^(?:> )+/)?.[0];
655
+ if (!before || !after || before.length === after.length)
656
+ return line;
657
+ return "> ".repeat(Math.min(before.length, after.length) / 2).trimEnd();
658
+ }).join(`
659
+ `));
660
+ pendingText = "";
661
+ };
662
+ for (const chunk of output) {
663
+ if (typeof chunk !== "string") {
664
+ flushText();
665
+ normalized.push(chunk.raw);
666
+ continue;
667
+ }
668
+ pendingText += chunk;
669
+ }
670
+ flushText();
671
+ return sliceBytes(normalized.join("").trim(), MAX_MARKDOWN_BYTES);
672
+ }
673
+
674
+ export { MAX_MARKDOWN_BYTES, convertHTMLToMarkdown };
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  exports_wellknown
3
- } from "./location-service-map-xcdf3nqx.js";
3
+ } from "./wellknown-dfaxpxmf.js";
4
4
  import {
5
5
  exports_bus
6
- } from "./location-service-map-cmb9arpt.js";
6
+ } from "./wellknown-w6y7qp8t.js";
7
7
  import {
8
8
  __export
9
- } from "./location-service-map-rvfvac9x.js";
9
+ } from "./wellknown-rvfvac9x.js";
10
10
 
11
11
  // src/wellknown/plugin.ts
12
12
  var exports_plugin = {};
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  exports_page
3
- } from "./location-service-map-7mrpdsq5.js";
3
+ } from "./wellknown-7mrpdsq5.js";
4
4
  import {
5
5
  __export,
6
6
  __require
7
- } from "./location-service-map-rvfvac9x.js";
7
+ } from "./wellknown-rvfvac9x.js";
8
8
 
9
9
  // src/mcp/oauth.ts
10
10
  var exports_oauth = {};