@harrylabsj/kiwi-merchant-cloud 0.12.5 → 0.12.7

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 (1874) hide show
  1. package/app/a2a/access/workbuddy-address.d.ts +45 -0
  2. package/app/a2a/access/workbuddy-address.js +88 -0
  3. package/app/a2a/access/workbuddy-address.js.map +1 -0
  4. package/app/a2a/client/client.d.ts +6 -0
  5. package/app/a2a/client/client.js +27 -2
  6. package/app/a2a/client/client.js.map +1 -1
  7. package/app/a2a/client/types.d.ts +5 -0
  8. package/app/a2a/server/server.d.ts +5 -0
  9. package/app/a2a/server/server.js +10 -2
  10. package/app/a2a/server/server.js.map +1 -1
  11. package/app/buyer-core/a2a-knp.d.ts +18 -1
  12. package/app/buyer-core/a2a-knp.js +29 -5
  13. package/app/buyer-core/a2a-knp.js.map +1 -1
  14. package/app/buyer-core/a2a-negotiator.d.ts +4 -0
  15. package/app/buyer-core/a2a-negotiator.js +3 -0
  16. package/app/buyer-core/a2a-negotiator.js.map +1 -1
  17. package/app/buyer-core/a2a-quote-fetcher.d.ts +47 -0
  18. package/app/buyer-core/a2a-quote-fetcher.js +109 -11
  19. package/app/buyer-core/a2a-quote-fetcher.js.map +1 -1
  20. package/app/buyer-core/build-service.d.ts +7 -0
  21. package/app/buyer-core/build-service.js +67 -0
  22. package/app/buyer-core/build-service.js.map +1 -1
  23. package/app/buyer-core/merchant-index.js +3 -0
  24. package/app/buyer-core/merchant-index.js.map +1 -1
  25. package/app/buyer-core/protocol-recovery.js +7 -0
  26. package/app/buyer-core/protocol-recovery.js.map +1 -1
  27. package/app/buyer-core/service.d.ts +36 -1
  28. package/app/buyer-core/service.js +325 -33
  29. package/app/buyer-core/service.js.map +1 -1
  30. package/app/buyer-core/store.d.ts +23 -0
  31. package/app/buyer-core/store.js +71 -8
  32. package/app/buyer-core/store.js.map +1 -1
  33. package/app/cloud/access/workbuddy-share-link.d.ts +92 -0
  34. package/app/cloud/access/workbuddy-share-link.js +150 -0
  35. package/app/cloud/access/workbuddy-share-link.js.map +1 -0
  36. package/app/cloud/bootstrap.d.ts +13 -0
  37. package/app/cloud/bootstrap.js +60 -4
  38. package/app/cloud/bootstrap.js.map +1 -1
  39. package/app/cloud/catalog-client.d.ts +66 -0
  40. package/app/cloud/catalog-client.js +155 -0
  41. package/app/cloud/catalog-client.js.map +1 -1
  42. package/app/cloud/config.d.ts +32 -0
  43. package/app/cloud/config.js +79 -3
  44. package/app/cloud/config.js.map +1 -1
  45. package/app/cloud/connect-service.d.ts +68 -0
  46. package/app/cloud/connect-service.js +198 -0
  47. package/app/cloud/connect-service.js.map +1 -1
  48. package/app/cloud/http-router.d.ts +5 -0
  49. package/app/cloud/http-router.js +7 -0
  50. package/app/cloud/http-router.js.map +1 -1
  51. package/app/cloud/main.d.ts +69 -0
  52. package/app/cloud/main.js +285 -0
  53. package/app/cloud/main.js.map +1 -1
  54. package/app/cloud/owned-clock.d.ts +27 -0
  55. package/app/cloud/owned-clock.js +98 -0
  56. package/app/cloud/owned-clock.js.map +1 -0
  57. package/app/cloud/owned-runtime.d.ts +188 -0
  58. package/app/cloud/owned-runtime.js +1041 -0
  59. package/app/cloud/owned-runtime.js.map +1 -0
  60. package/app/cloud-sample/products.json +3 -3
  61. package/app/demo/demo-runner.js +6 -0
  62. package/app/demo/demo-runner.js.map +1 -1
  63. package/app/discovery/catalog-source/kiwi-record.d.ts +10 -0
  64. package/app/discovery/catalog-source/kiwi-record.js.map +1 -1
  65. package/app/discovery/catalog-source/merchant-access.d.ts +77 -0
  66. package/app/discovery/catalog-source/merchant-access.js +279 -0
  67. package/app/discovery/catalog-source/merchant-access.js.map +1 -0
  68. package/app/handoff/destination.d.ts +2 -0
  69. package/app/handoff/destination.js +4 -0
  70. package/app/handoff/destination.js.map +1 -1
  71. package/app/http/merchant-management/api.d.ts +21 -0
  72. package/app/http/merchant-management/api.js +79 -0
  73. package/app/http/merchant-management/api.js.map +1 -1
  74. package/app/http/merchant-management/page.js +81 -1
  75. package/app/http/merchant-management/page.js.map +1 -1
  76. package/app/tools/trusted-buyer-keys.d.ts +31 -0
  77. package/app/tools/trusted-buyer-keys.js +98 -0
  78. package/app/tools/trusted-buyer-keys.js.map +1 -0
  79. package/app/tools/workbuddy-echo.d.ts +69 -0
  80. package/app/tools/workbuddy-echo.js +132 -0
  81. package/app/tools/workbuddy-echo.js.map +1 -0
  82. package/build-manifest.json +42847 -41772
  83. package/contracts/kiwi-catalog/1.0/agent-record.schema.json +21 -0
  84. package/contracts/kiwi-contracts.lock.json +2 -2
  85. package/contracts/manifest.json +2 -2
  86. package/node_modules/@earendil-works/pi-durable/node_modules/@earendil-works/pi-codemode/README.md +356 -0
  87. package/node_modules/@earendil-works/pi-durable/node_modules/@earendil-works/pi-codemode/dist/cloudflare.d.ts +53 -0
  88. package/node_modules/@earendil-works/pi-durable/node_modules/@earendil-works/pi-codemode/dist/cloudflare.d.ts.map +1 -0
  89. package/node_modules/@earendil-works/pi-durable/node_modules/@earendil-works/pi-codemode/dist/cloudflare.js +64 -0
  90. package/node_modules/@earendil-works/pi-durable/node_modules/@earendil-works/pi-codemode/dist/cloudflare.js.map +1 -0
  91. package/node_modules/@earendil-works/pi-durable/node_modules/@earendil-works/pi-codemode/dist/declarations.d.ts +43 -0
  92. package/node_modules/@earendil-works/pi-durable/node_modules/@earendil-works/pi-codemode/dist/declarations.d.ts.map +1 -0
  93. package/node_modules/@earendil-works/pi-durable/node_modules/@earendil-works/pi-codemode/dist/declarations.js +320 -0
  94. package/node_modules/@earendil-works/pi-durable/node_modules/@earendil-works/pi-codemode/dist/declarations.js.map +1 -0
  95. package/node_modules/@earendil-works/pi-durable/node_modules/@earendil-works/pi-codemode/dist/identifier.d.ts +6 -0
  96. package/node_modules/@earendil-works/pi-durable/node_modules/@earendil-works/pi-codemode/dist/identifier.d.ts.map +1 -0
  97. package/node_modules/@earendil-works/pi-durable/node_modules/@earendil-works/pi-codemode/dist/identifier.js +13 -0
  98. package/node_modules/@earendil-works/pi-durable/node_modules/@earendil-works/pi-codemode/dist/identifier.js.map +1 -0
  99. package/node_modules/@earendil-works/pi-durable/node_modules/@earendil-works/pi-codemode/dist/index.d.ts +11 -0
  100. package/node_modules/@earendil-works/pi-durable/node_modules/@earendil-works/pi-codemode/dist/index.d.ts.map +1 -0
  101. package/node_modules/@earendil-works/pi-durable/node_modules/@earendil-works/pi-codemode/dist/index.js +10 -0
  102. package/node_modules/@earendil-works/pi-durable/node_modules/@earendil-works/pi-codemode/dist/index.js.map +1 -0
  103. package/node_modules/@earendil-works/pi-durable/node_modules/@earendil-works/pi-codemode/dist/portable.d.ts +15 -0
  104. package/node_modules/@earendil-works/pi-durable/node_modules/@earendil-works/pi-codemode/dist/portable.d.ts.map +1 -0
  105. package/node_modules/@earendil-works/pi-durable/node_modules/@earendil-works/pi-codemode/dist/portable.js +12 -0
  106. package/node_modules/@earendil-works/pi-durable/node_modules/@earendil-works/pi-codemode/dist/portable.js.map +1 -0
  107. package/node_modules/@earendil-works/pi-durable/node_modules/@earendil-works/pi-codemode/dist/runtime/execution.d.ts +66 -0
  108. package/node_modules/@earendil-works/pi-durable/node_modules/@earendil-works/pi-codemode/dist/runtime/execution.d.ts.map +1 -0
  109. package/node_modules/@earendil-works/pi-durable/node_modules/@earendil-works/pi-codemode/dist/runtime/execution.js +494 -0
  110. package/node_modules/@earendil-works/pi-durable/node_modules/@earendil-works/pi-codemode/dist/runtime/execution.js.map +1 -0
  111. package/node_modules/@earendil-works/pi-durable/node_modules/@earendil-works/pi-codemode/dist/runtime/host.d.ts +13 -0
  112. package/node_modules/@earendil-works/pi-durable/node_modules/@earendil-works/pi-codemode/dist/runtime/host.d.ts.map +1 -0
  113. package/node_modules/@earendil-works/pi-durable/node_modules/@earendil-works/pi-codemode/dist/runtime/host.js +72 -0
  114. package/node_modules/@earendil-works/pi-durable/node_modules/@earendil-works/pi-codemode/dist/runtime/host.js.map +1 -0
  115. package/node_modules/@earendil-works/pi-durable/node_modules/@earendil-works/pi-codemode/dist/runtime/inline.d.ts +63 -0
  116. package/node_modules/@earendil-works/pi-durable/node_modules/@earendil-works/pi-codemode/dist/runtime/inline.d.ts.map +1 -0
  117. package/node_modules/@earendil-works/pi-durable/node_modules/@earendil-works/pi-codemode/dist/runtime/inline.js +80 -0
  118. package/node_modules/@earendil-works/pi-durable/node_modules/@earendil-works/pi-codemode/dist/runtime/inline.js.map +1 -0
  119. package/node_modules/@earendil-works/pi-durable/node_modules/@earendil-works/pi-codemode/dist/runtime/prelude-source.d.ts +45 -0
  120. package/node_modules/@earendil-works/pi-durable/node_modules/@earendil-works/pi-codemode/dist/runtime/prelude-source.d.ts.map +1 -0
  121. package/node_modules/@earendil-works/pi-durable/node_modules/@earendil-works/pi-codemode/dist/runtime/prelude-source.js +520 -0
  122. package/node_modules/@earendil-works/pi-durable/node_modules/@earendil-works/pi-codemode/dist/runtime/prelude-source.js.map +1 -0
  123. package/node_modules/@earendil-works/pi-durable/node_modules/@earendil-works/pi-codemode/dist/runtime/protocol.d.ts +110 -0
  124. package/node_modules/@earendil-works/pi-durable/node_modules/@earendil-works/pi-codemode/dist/runtime/protocol.d.ts.map +1 -0
  125. package/node_modules/@earendil-works/pi-durable/node_modules/@earendil-works/pi-codemode/dist/runtime/protocol.js +15 -0
  126. package/node_modules/@earendil-works/pi-durable/node_modules/@earendil-works/pi-codemode/dist/runtime/protocol.js.map +1 -0
  127. package/node_modules/@earendil-works/pi-durable/node_modules/@earendil-works/pi-codemode/dist/runtime/remote.d.ts +102 -0
  128. package/node_modules/@earendil-works/pi-durable/node_modules/@earendil-works/pi-codemode/dist/runtime/remote.d.ts.map +1 -0
  129. package/node_modules/@earendil-works/pi-durable/node_modules/@earendil-works/pi-codemode/dist/runtime/remote.js +175 -0
  130. package/node_modules/@earendil-works/pi-durable/node_modules/@earendil-works/pi-codemode/dist/runtime/remote.js.map +1 -0
  131. package/node_modules/@earendil-works/pi-durable/node_modules/@earendil-works/pi-codemode/dist/runtime/vm.d.ts +24 -0
  132. package/node_modules/@earendil-works/pi-durable/node_modules/@earendil-works/pi-codemode/dist/runtime/vm.d.ts.map +1 -0
  133. package/node_modules/@earendil-works/pi-durable/node_modules/@earendil-works/pi-codemode/dist/runtime/vm.js +293 -0
  134. package/node_modules/@earendil-works/pi-durable/node_modules/@earendil-works/pi-codemode/dist/runtime/vm.js.map +1 -0
  135. package/node_modules/@earendil-works/pi-durable/node_modules/@earendil-works/pi-codemode/dist/runtime/worker.d.ts +2 -0
  136. package/node_modules/@earendil-works/pi-durable/node_modules/@earendil-works/pi-codemode/dist/runtime/worker.d.ts.map +1 -0
  137. package/node_modules/@earendil-works/pi-durable/node_modules/@earendil-works/pi-codemode/dist/runtime/worker.js +38 -0
  138. package/node_modules/@earendil-works/pi-durable/node_modules/@earendil-works/pi-codemode/dist/runtime/worker.js.map +1 -0
  139. package/node_modules/@earendil-works/pi-durable/node_modules/@earendil-works/pi-codemode/dist/source.d.ts +36 -0
  140. package/node_modules/@earendil-works/pi-durable/node_modules/@earendil-works/pi-codemode/dist/source.d.ts.map +1 -0
  141. package/node_modules/@earendil-works/pi-durable/node_modules/@earendil-works/pi-codemode/dist/source.js +98 -0
  142. package/node_modules/@earendil-works/pi-durable/node_modules/@earendil-works/pi-codemode/dist/source.js.map +1 -0
  143. package/node_modules/@earendil-works/pi-durable/node_modules/@earendil-works/pi-codemode/dist/types.d.ts +232 -0
  144. package/node_modules/@earendil-works/pi-durable/node_modules/@earendil-works/pi-codemode/dist/types.d.ts.map +1 -0
  145. package/node_modules/@earendil-works/pi-durable/node_modules/@earendil-works/pi-codemode/dist/types.js +2 -0
  146. package/node_modules/@earendil-works/pi-durable/node_modules/@earendil-works/pi-codemode/dist/types.js.map +1 -0
  147. package/node_modules/@earendil-works/pi-durable/node_modules/@earendil-works/pi-codemode/dist/wasm.d.ts +12 -0
  148. package/node_modules/@earendil-works/pi-durable/node_modules/@earendil-works/pi-codemode/dist/wasm.d.ts.map +1 -0
  149. package/node_modules/@earendil-works/pi-durable/node_modules/@earendil-works/pi-codemode/dist/wasm.js +24 -0
  150. package/node_modules/@earendil-works/pi-durable/node_modules/@earendil-works/pi-codemode/dist/wasm.js.map +1 -0
  151. package/node_modules/@earendil-works/pi-durable/node_modules/@earendil-works/pi-codemode/package.json +76 -0
  152. package/node_modules/body-parser/README.md +17 -13
  153. package/node_modules/body-parser/lib/read.js +74 -57
  154. package/node_modules/body-parser/lib/types/json.js +11 -11
  155. package/node_modules/body-parser/lib/types/urlencoded.js +5 -5
  156. package/node_modules/body-parser/lib/utils.js +0 -15
  157. package/node_modules/body-parser/package.json +7 -12
  158. package/node_modules/fast-uri/.github/workflows/release.yml +35 -0
  159. package/node_modules/fast-uri/README.md +8 -0
  160. package/node_modules/fast-uri/index.js +98 -18
  161. package/node_modules/fast-uri/lib/utils.js +52 -0
  162. package/node_modules/fast-uri/package.json +1 -1
  163. package/node_modules/fast-uri/test/host-delimiter-security.test.js +94 -0
  164. package/node_modules/fast-uri/test/relative-normalization-security.test.js +156 -0
  165. package/node_modules/fast-uri/test/reserved-path-normalization.test.js +32 -4
  166. package/node_modules/fast-uri/test/scheme-validation.test.js +53 -14
  167. package/node_modules/hono/README.md +1 -1
  168. package/node_modules/hono/dist/_virtual/_rolldown/runtime.js +13 -0
  169. package/node_modules/hono/dist/adapter/aws-lambda/conninfo.js +42 -23
  170. package/node_modules/hono/dist/adapter/aws-lambda/handler.js +320 -342
  171. package/node_modules/hono/dist/adapter/aws-lambda/index.js +2 -8
  172. package/node_modules/hono/dist/adapter/aws-lambda/types.js +1 -0
  173. package/node_modules/hono/dist/adapter/bun/conninfo.js +20 -25
  174. package/node_modules/hono/dist/adapter/bun/index.js +3 -13
  175. package/node_modules/hono/dist/adapter/bun/serve-static.js +27 -27
  176. package/node_modules/hono/dist/adapter/bun/server.js +11 -5
  177. package/node_modules/hono/dist/adapter/bun/ssg.js +25 -15
  178. package/node_modules/hono/dist/adapter/bun/websocket.js +61 -68
  179. package/node_modules/hono/dist/adapter/cloudflare-pages/conninfo.js +24 -9
  180. package/node_modules/hono/dist/adapter/cloudflare-pages/handler.js +59 -62
  181. package/node_modules/hono/dist/adapter/cloudflare-pages/index.js +2 -8
  182. package/node_modules/hono/dist/adapter/cloudflare-workers/conninfo.js +7 -9
  183. package/node_modules/hono/dist/adapter/cloudflare-workers/index.js +3 -8
  184. package/node_modules/hono/dist/adapter/cloudflare-workers/serve-static-module.js +5 -6
  185. package/node_modules/hono/dist/adapter/cloudflare-workers/serve-static.js +26 -20
  186. package/node_modules/hono/dist/adapter/cloudflare-workers/utils.js +21 -34
  187. package/node_modules/hono/dist/adapter/cloudflare-workers/websocket.js +31 -39
  188. package/node_modules/hono/dist/adapter/deno/conninfo.js +16 -13
  189. package/node_modules/hono/dist/adapter/deno/deno.d.js +1 -0
  190. package/node_modules/hono/dist/adapter/deno/index.js +3 -10
  191. package/node_modules/hono/dist/adapter/deno/serve-static.js +33 -38
  192. package/node_modules/hono/dist/adapter/deno/ssg.js +27 -16
  193. package/node_modules/hono/dist/adapter/deno/websocket.js +30 -30
  194. package/node_modules/hono/dist/adapter/lambda-edge/conninfo.js +7 -9
  195. package/node_modules/hono/dist/adapter/lambda-edge/handler.js +102 -87
  196. package/node_modules/hono/dist/adapter/lambda-edge/index.js +2 -6
  197. package/node_modules/hono/dist/adapter/netlify/conninfo.js +24 -9
  198. package/node_modules/hono/dist/adapter/netlify/handler.js +10 -8
  199. package/node_modules/hono/dist/adapter/netlify/index.js +3 -2
  200. package/node_modules/hono/dist/adapter/netlify/mod.js +2 -6
  201. package/node_modules/hono/dist/adapter/service-worker/handler.js +15 -19
  202. package/node_modules/hono/dist/adapter/service-worker/index.js +23 -7
  203. package/node_modules/hono/dist/adapter/service-worker/types.js +1 -0
  204. package/node_modules/hono/dist/adapter/vercel/conninfo.js +7 -10
  205. package/node_modules/hono/dist/adapter/vercel/handler.js +8 -6
  206. package/node_modules/hono/dist/adapter/vercel/index.js +2 -6
  207. package/node_modules/hono/dist/cjs/_virtual/_rolldown/runtime.js +33 -0
  208. package/node_modules/hono/dist/cjs/adapter/aws-lambda/conninfo.js +42 -44
  209. package/node_modules/hono/dist/cjs/adapter/aws-lambda/handler.js +328 -371
  210. package/node_modules/hono/dist/cjs/adapter/aws-lambda/index.js +7 -34
  211. package/node_modules/hono/dist/cjs/adapter/aws-lambda/types.js +0 -15
  212. package/node_modules/hono/dist/cjs/adapter/bun/conninfo.js +21 -47
  213. package/node_modules/hono/dist/cjs/adapter/bun/index.js +14 -45
  214. package/node_modules/hono/dist/cjs/adapter/bun/serve-static.js +29 -50
  215. package/node_modules/hono/dist/cjs/adapter/bun/server.js +11 -26
  216. package/node_modules/hono/dist/cjs/adapter/bun/ssg.js +24 -35
  217. package/node_modules/hono/dist/cjs/adapter/bun/websocket.js +63 -91
  218. package/node_modules/hono/dist/cjs/adapter/cloudflare-pages/conninfo.js +25 -31
  219. package/node_modules/hono/dist/cjs/adapter/cloudflare-pages/handler.js +61 -85
  220. package/node_modules/hono/dist/cjs/adapter/cloudflare-pages/index.js +7 -34
  221. package/node_modules/hono/dist/cjs/adapter/cloudflare-workers/conninfo.js +8 -31
  222. package/node_modules/hono/dist/cjs/adapter/cloudflare-workers/index.js +7 -33
  223. package/node_modules/hono/dist/cjs/adapter/cloudflare-workers/serve-static-module.js +7 -29
  224. package/node_modules/hono/dist/cjs/adapter/cloudflare-workers/serve-static.js +27 -42
  225. package/node_modules/hono/dist/cjs/adapter/cloudflare-workers/utils.js +21 -55
  226. package/node_modules/hono/dist/cjs/adapter/cloudflare-workers/websocket.js +33 -62
  227. package/node_modules/hono/dist/cjs/adapter/deno/conninfo.js +16 -34
  228. package/node_modules/hono/dist/cjs/adapter/deno/index.js +10 -38
  229. package/node_modules/hono/dist/cjs/adapter/deno/serve-static.js +33 -59
  230. package/node_modules/hono/dist/cjs/adapter/deno/ssg.js +27 -37
  231. package/node_modules/hono/dist/cjs/adapter/deno/websocket.js +32 -53
  232. package/node_modules/hono/dist/cjs/adapter/lambda-edge/conninfo.js +8 -31
  233. package/node_modules/hono/dist/cjs/adapter/lambda-edge/handler.js +105 -119
  234. package/node_modules/hono/dist/cjs/adapter/lambda-edge/index.js +5 -30
  235. package/node_modules/hono/dist/cjs/adapter/netlify/conninfo.js +25 -31
  236. package/node_modules/hono/dist/cjs/adapter/netlify/handler.js +10 -29
  237. package/node_modules/hono/dist/cjs/adapter/netlify/index.js +5 -21
  238. package/node_modules/hono/dist/cjs/adapter/netlify/mod.js +5 -30
  239. package/node_modules/hono/dist/cjs/adapter/service-worker/handler.js +16 -41
  240. package/node_modules/hono/dist/cjs/adapter/service-worker/index.js +25 -30
  241. package/node_modules/hono/dist/cjs/adapter/service-worker/types.js +0 -15
  242. package/node_modules/hono/dist/cjs/adapter/vercel/conninfo.js +8 -32
  243. package/node_modules/hono/dist/cjs/adapter/vercel/handler.js +8 -27
  244. package/node_modules/hono/dist/cjs/adapter/vercel/index.js +5 -30
  245. package/node_modules/hono/dist/cjs/client/client.js +139 -212
  246. package/node_modules/hono/dist/cjs/client/fetch-result-please.js +62 -80
  247. package/node_modules/hono/dist/cjs/client/index.js +7 -32
  248. package/node_modules/hono/dist/cjs/client/types.js +0 -15
  249. package/node_modules/hono/dist/cjs/client/utils.js +54 -92
  250. package/node_modules/hono/dist/cjs/compose.js +49 -66
  251. package/node_modules/hono/dist/cjs/context.js +379 -450
  252. package/node_modules/hono/dist/cjs/helper/accepts/accepts.js +47 -70
  253. package/node_modules/hono/dist/cjs/helper/accepts/index.js +3 -27
  254. package/node_modules/hono/dist/cjs/helper/adapter/index.js +33 -73
  255. package/node_modules/hono/dist/cjs/helper/conninfo/index.js +0 -15
  256. package/node_modules/hono/dist/cjs/helper/conninfo/types.js +0 -15
  257. package/node_modules/hono/dist/cjs/helper/cookie/index.js +75 -116
  258. package/node_modules/hono/dist/cjs/helper/css/common.js +165 -244
  259. package/node_modules/hono/dist/cjs/helper/css/index.js +136 -151
  260. package/node_modules/hono/dist/cjs/helper/dev/index.js +45 -71
  261. package/node_modules/hono/dist/cjs/helper/factory/index.js +30 -51
  262. package/node_modules/hono/dist/cjs/helper/html/index.js +32 -62
  263. package/node_modules/hono/dist/cjs/helper/proxy/index.js +113 -106
  264. package/node_modules/hono/dist/cjs/helper/route/index.js +123 -66
  265. package/node_modules/hono/dist/cjs/helper/ssg/index.js +19 -43
  266. package/node_modules/hono/dist/cjs/helper/ssg/middleware.js +56 -64
  267. package/node_modules/hono/dist/cjs/helper/ssg/plugins.js +55 -57
  268. package/node_modules/hono/dist/cjs/helper/ssg/ssg.js +196 -296
  269. package/node_modules/hono/dist/cjs/helper/ssg/utils.js +47 -90
  270. package/node_modules/hono/dist/cjs/helper/streaming/index.js +8 -35
  271. package/node_modules/hono/dist/cjs/helper/streaming/sse.js +53 -85
  272. package/node_modules/hono/dist/cjs/helper/streaming/stream.js +23 -53
  273. package/node_modules/hono/dist/cjs/helper/streaming/text.js +10 -32
  274. package/node_modules/hono/dist/cjs/helper/streaming/utils.js +13 -32
  275. package/node_modules/hono/dist/cjs/helper/testing/index.js +16 -31
  276. package/node_modules/hono/dist/cjs/helper/websocket/index.js +51 -76
  277. package/node_modules/hono/dist/cjs/hono-base.js +345 -403
  278. package/node_modules/hono/dist/cjs/hono.js +28 -42
  279. package/node_modules/hono/dist/cjs/http-exception.js +55 -56
  280. package/node_modules/hono/dist/cjs/index.js +22 -30
  281. package/node_modules/hono/dist/cjs/jsx/base.js +237 -366
  282. package/node_modules/hono/dist/cjs/jsx/children.js +16 -41
  283. package/node_modules/hono/dist/cjs/jsx/components.js +119 -192
  284. package/node_modules/hono/dist/cjs/jsx/constants.js +15 -42
  285. package/node_modules/hono/dist/cjs/jsx/context.js +144 -162
  286. package/node_modules/hono/dist/cjs/jsx/dom/client.js +49 -69
  287. package/node_modules/hono/dist/cjs/jsx/dom/components.js +23 -52
  288. package/node_modules/hono/dist/cjs/jsx/dom/context.js +39 -67
  289. package/node_modules/hono/dist/cjs/jsx/dom/css.js +143 -158
  290. package/node_modules/hono/dist/cjs/jsx/dom/hooks/index.js +55 -64
  291. package/node_modules/hono/dist/cjs/jsx/dom/index.js +114 -173
  292. package/node_modules/hono/dist/cjs/jsx/dom/intrinsic-element/components.js +282 -375
  293. package/node_modules/hono/dist/cjs/jsx/dom/jsx-dev-runtime.js +14 -49
  294. package/node_modules/hono/dist/cjs/jsx/dom/jsx-runtime.js +5 -32
  295. package/node_modules/hono/dist/cjs/jsx/dom/render.js +471 -589
  296. package/node_modules/hono/dist/cjs/jsx/dom/server.js +37 -64
  297. package/node_modules/hono/dist/cjs/jsx/dom/utils.js +7 -30
  298. package/node_modules/hono/dist/cjs/jsx/hooks/index.js +225 -318
  299. package/node_modules/hono/dist/cjs/jsx/index.js +86 -135
  300. package/node_modules/hono/dist/cjs/jsx/intrinsic-element/common.js +20 -43
  301. package/node_modules/hono/dist/cjs/jsx/intrinsic-element/components.js +117 -168
  302. package/node_modules/hono/dist/cjs/jsx/intrinsic-elements.js +0 -15
  303. package/node_modules/hono/dist/cjs/jsx/jsx-dev-runtime.js +14 -39
  304. package/node_modules/hono/dist/cjs/jsx/jsx-runtime.js +34 -68
  305. package/node_modules/hono/dist/cjs/jsx/streaming.js +123 -166
  306. package/node_modules/hono/dist/cjs/jsx/types.js +0 -15
  307. package/node_modules/hono/dist/cjs/jsx/utils.js +91 -175
  308. package/node_modules/hono/dist/cjs/middleware/basic-auth/index.js +98 -86
  309. package/node_modules/hono/dist/cjs/middleware/bearer-auth/index.js +92 -109
  310. package/node_modules/hono/dist/cjs/middleware/body-limit/index.js +66 -72
  311. package/node_modules/hono/dist/cjs/middleware/cache/index.js +153 -199
  312. package/node_modules/hono/dist/cjs/middleware/combine/index.js +133 -95
  313. package/node_modules/hono/dist/cjs/middleware/compress/index.js +73 -88
  314. package/node_modules/hono/dist/cjs/middleware/context-storage/index.js +49 -41
  315. package/node_modules/hono/dist/cjs/middleware/cors/index.js +107 -107
  316. package/node_modules/hono/dist/cjs/middleware/csrf/index.js +101 -72
  317. package/node_modules/hono/dist/cjs/middleware/etag/digest.js +58 -97
  318. package/node_modules/hono/dist/cjs/middleware/etag/index.js +71 -91
  319. package/node_modules/hono/dist/cjs/middleware/ip-restriction/index.js +161 -169
  320. package/node_modules/hono/dist/cjs/middleware/jsx-renderer/index.js +99 -77
  321. package/node_modules/hono/dist/cjs/middleware/jwk/index.js +3 -27
  322. package/node_modules/hono/dist/cjs/middleware/jwk/jwk.js +118 -135
  323. package/node_modules/hono/dist/cjs/middleware/jwt/index.js +9 -38
  324. package/node_modules/hono/dist/cjs/middleware/jwt/jwt.js +120 -141
  325. package/node_modules/hono/dist/cjs/middleware/language/index.js +7 -35
  326. package/node_modules/hono/dist/cjs/middleware/language/language.js +184 -179
  327. package/node_modules/hono/dist/cjs/middleware/logger/index.js +41 -62
  328. package/node_modules/hono/dist/cjs/middleware/method-not-allowed/index.js +82 -88
  329. package/node_modules/hono/dist/cjs/middleware/method-override/index.js +101 -102
  330. package/node_modules/hono/dist/cjs/middleware/powered-by/index.js +23 -30
  331. package/node_modules/hono/dist/cjs/middleware/pretty-json/index.js +38 -36
  332. package/node_modules/hono/dist/cjs/middleware/request-id/index.js +3 -27
  333. package/node_modules/hono/dist/cjs/middleware/request-id/request-id.js +34 -42
  334. package/node_modules/hono/dist/cjs/middleware/secure-headers/index.js +4 -29
  335. package/node_modules/hono/dist/cjs/middleware/secure-headers/permissions-policy.js +0 -15
  336. package/node_modules/hono/dist/cjs/middleware/secure-headers/secure-headers.js +142 -174
  337. package/node_modules/hono/dist/cjs/middleware/serve-static/index.js +56 -93
  338. package/node_modules/hono/dist/cjs/middleware/serve-static/path.js +15 -38
  339. package/node_modules/hono/dist/cjs/middleware/timeout/index.js +40 -45
  340. package/node_modules/hono/dist/cjs/middleware/timing/index.js +7 -35
  341. package/node_modules/hono/dist/cjs/middleware/timing/timing.js +177 -118
  342. package/node_modules/hono/dist/cjs/middleware/trailing-slash/index.js +85 -58
  343. package/node_modules/hono/dist/cjs/preset/quick.js +18 -37
  344. package/node_modules/hono/dist/cjs/preset/tiny.js +15 -33
  345. package/node_modules/hono/dist/cjs/request/constants.js +5 -27
  346. package/node_modules/hono/dist/cjs/request.js +334 -343
  347. package/node_modules/hono/dist/cjs/router/linear-router/index.js +3 -27
  348. package/node_modules/hono/dist/cjs/router/linear-router/router.js +95 -143
  349. package/node_modules/hono/dist/cjs/router/pattern-router/index.js +3 -27
  350. package/node_modules/hono/dist/cjs/router/pattern-router/router.js +41 -63
  351. package/node_modules/hono/dist/cjs/router/reg-exp-router/index.js +7 -34
  352. package/node_modules/hono/dist/cjs/router/reg-exp-router/matcher.js +18 -45
  353. package/node_modules/hono/dist/cjs/router/reg-exp-router/node.js +91 -135
  354. package/node_modules/hono/dist/cjs/router/reg-exp-router/prepared-router.js +92 -161
  355. package/node_modules/hono/dist/cjs/router/reg-exp-router/router.js +98 -147
  356. package/node_modules/hono/dist/cjs/router/reg-exp-router/trie.js +73 -89
  357. package/node_modules/hono/dist/cjs/router/smart-router/index.js +3 -27
  358. package/node_modules/hono/dist/cjs/router/smart-router/router.js +49 -79
  359. package/node_modules/hono/dist/cjs/router/trie-router/index.js +3 -27
  360. package/node_modules/hono/dist/cjs/router/trie-router/node.js +134 -186
  361. package/node_modules/hono/dist/cjs/router/trie-router/router.js +15 -39
  362. package/node_modules/hono/dist/cjs/router/utils.js +5 -27
  363. package/node_modules/hono/dist/cjs/router.js +37 -37
  364. package/node_modules/hono/dist/cjs/types.js +5 -28
  365. package/node_modules/hono/dist/cjs/utils/accept.js +177 -228
  366. package/node_modules/hono/dist/cjs/utils/basic-auth.js +16 -40
  367. package/node_modules/hono/dist/cjs/utils/body.js +84 -110
  368. package/node_modules/hono/dist/cjs/utils/buffer.js +43 -91
  369. package/node_modules/hono/dist/cjs/utils/color.js +35 -44
  370. package/node_modules/hono/dist/cjs/utils/compress.js +11 -26
  371. package/node_modules/hono/dist/cjs/utils/concurrent.js +29 -59
  372. package/node_modules/hono/dist/cjs/utils/constants.js +7 -26
  373. package/node_modules/hono/dist/cjs/utils/cookie.js +107 -177
  374. package/node_modules/hono/dist/cjs/utils/crypto.js +30 -61
  375. package/node_modules/hono/dist/cjs/utils/encode.js +31 -48
  376. package/node_modules/hono/dist/cjs/utils/filepath.js +23 -54
  377. package/node_modules/hono/dist/cjs/utils/handler.js +11 -33
  378. package/node_modules/hono/dist/cjs/utils/headers.js +0 -15
  379. package/node_modules/hono/dist/cjs/utils/html.js +96 -137
  380. package/node_modules/hono/dist/cjs/utils/http-status.js +0 -15
  381. package/node_modules/hono/dist/cjs/utils/ipaddr.js +213 -286
  382. package/node_modules/hono/dist/cjs/utils/jwt/index.js +14 -27
  383. package/node_modules/hono/dist/cjs/utils/jwt/jwa.js +25 -42
  384. package/node_modules/hono/dist/cjs/utils/jwt/jws.js +119 -199
  385. package/node_modules/hono/dist/cjs/utils/jwt/jwt.js +122 -205
  386. package/node_modules/hono/dist/cjs/utils/jwt/types.js +122 -159
  387. package/node_modules/hono/dist/cjs/utils/jwt/utf8.js +9 -28
  388. package/node_modules/hono/dist/cjs/utils/mime.js +75 -101
  389. package/node_modules/hono/dist/cjs/utils/stream.js +88 -111
  390. package/node_modules/hono/dist/cjs/utils/types.js +0 -15
  391. package/node_modules/hono/dist/cjs/utils/url.js +185 -234
  392. package/node_modules/hono/dist/cjs/validator/index.js +3 -27
  393. package/node_modules/hono/dist/cjs/validator/utils.js +0 -15
  394. package/node_modules/hono/dist/cjs/validator/validator.js +60 -103
  395. package/node_modules/hono/dist/client/client.js +138 -197
  396. package/node_modules/hono/dist/client/fetch-result-please.js +59 -56
  397. package/node_modules/hono/dist/client/index.js +3 -7
  398. package/node_modules/hono/dist/client/types.js +1 -0
  399. package/node_modules/hono/dist/client/utils.js +51 -68
  400. package/node_modules/hono/dist/compose.js +49 -45
  401. package/node_modules/hono/dist/context.js +376 -426
  402. package/node_modules/hono/dist/helper/accepts/accepts.js +47 -49
  403. package/node_modules/hono/dist/helper/accepts/index.js +1 -4
  404. package/node_modules/hono/dist/helper/adapter/index.js +33 -52
  405. package/node_modules/hono/dist/helper/conninfo/index.js +1 -0
  406. package/node_modules/hono/dist/helper/conninfo/types.js +1 -0
  407. package/node_modules/hono/dist/helper/cookie/index.js +74 -94
  408. package/node_modules/hono/dist/helper/css/common.js +167 -225
  409. package/node_modules/hono/dist/helper/css/index.js +132 -137
  410. package/node_modules/hono/dist/helper/dev/index.js +44 -49
  411. package/node_modules/hono/dist/helper/factory/index.js +27 -27
  412. package/node_modules/hono/dist/helper/html/index.js +30 -39
  413. package/node_modules/hono/dist/helper/proxy/index.js +116 -88
  414. package/node_modules/hono/dist/helper/route/index.js +121 -43
  415. package/node_modules/hono/dist/helper/ssg/index.js +3 -18
  416. package/node_modules/hono/dist/helper/ssg/middleware.js +53 -40
  417. package/node_modules/hono/dist/helper/ssg/plugins.js +55 -36
  418. package/node_modules/hono/dist/helper/ssg/ssg.js +198 -283
  419. package/node_modules/hono/dist/helper/ssg/utils.js +53 -75
  420. package/node_modules/hono/dist/helper/streaming/index.js +2 -8
  421. package/node_modules/hono/dist/helper/streaming/sse.js +50 -61
  422. package/node_modules/hono/dist/helper/streaming/stream.js +22 -31
  423. package/node_modules/hono/dist/helper/streaming/text.js +9 -10
  424. package/node_modules/hono/dist/helper/streaming/utils.js +9 -12
  425. package/node_modules/hono/dist/helper/testing/index.js +16 -10
  426. package/node_modules/hono/dist/helper/websocket/index.js +49 -53
  427. package/node_modules/hono/dist/hono-base.js +342 -379
  428. package/node_modules/hono/dist/hono.js +27 -20
  429. package/node_modules/hono/dist/http-exception.js +53 -33
  430. package/node_modules/hono/dist/index.js +19 -6
  431. package/node_modules/hono/dist/jsx/base.js +231 -340
  432. package/node_modules/hono/dist/jsx/children.js +16 -20
  433. package/node_modules/hono/dist/jsx/components.js +118 -170
  434. package/node_modules/hono/dist/jsx/constants.js +9 -15
  435. package/node_modules/hono/dist/jsx/context.js +153 -150
  436. package/node_modules/hono/dist/jsx/dom/client.js +45 -48
  437. package/node_modules/hono/dist/jsx/dom/components.js +21 -29
  438. package/node_modules/hono/dist/jsx/dom/context.js +37 -44
  439. package/node_modules/hono/dist/jsx/dom/css.js +142 -147
  440. package/node_modules/hono/dist/jsx/dom/hooks/index.js +52 -40
  441. package/node_modules/hono/dist/jsx/dom/index.js +71 -134
  442. package/node_modules/hono/dist/jsx/dom/intrinsic-element/components.js +275 -359
  443. package/node_modules/hono/dist/jsx/dom/jsx-dev-runtime.js +14 -18
  444. package/node_modules/hono/dist/jsx/dom/jsx-runtime.js +2 -8
  445. package/node_modules/hono/dist/jsx/dom/render.js +492 -595
  446. package/node_modules/hono/dist/jsx/dom/server.js +32 -32
  447. package/node_modules/hono/dist/jsx/dom/utils.js +6 -8
  448. package/node_modules/hono/dist/jsx/hooks/index.js +236 -308
  449. package/node_modules/hono/dist/jsx/index.js +45 -98
  450. package/node_modules/hono/dist/jsx/intrinsic-element/common.js +20 -22
  451. package/node_modules/hono/dist/jsx/intrinsic-element/components.js +113 -154
  452. package/node_modules/hono/dist/jsx/intrinsic-elements.js +1 -0
  453. package/node_modules/hono/dist/jsx/jsx-dev-runtime.js +12 -16
  454. package/node_modules/hono/dist/jsx/jsx-runtime.js +29 -42
  455. package/node_modules/hono/dist/jsx/streaming.js +120 -142
  456. package/node_modules/hono/dist/jsx/types.js +1 -0
  457. package/node_modules/hono/dist/jsx/utils.js +105 -168
  458. package/node_modules/hono/dist/middleware/basic-auth/index.js +96 -63
  459. package/node_modules/hono/dist/middleware/bearer-auth/index.js +93 -89
  460. package/node_modules/hono/dist/middleware/body-limit/index.js +66 -51
  461. package/node_modules/hono/dist/middleware/cache/index.js +165 -190
  462. package/node_modules/hono/dist/middleware/combine/index.js +132 -73
  463. package/node_modules/hono/dist/middleware/compress/index.js +75 -69
  464. package/node_modules/hono/dist/middleware/context-storage/index.js +49 -19
  465. package/node_modules/hono/dist/middleware/cors/index.js +107 -86
  466. package/node_modules/hono/dist/middleware/csrf/index.js +103 -53
  467. package/node_modules/hono/dist/middleware/etag/digest.js +59 -77
  468. package/node_modules/hono/dist/middleware/etag/index.js +71 -70
  469. package/node_modules/hono/dist/middleware/ip-restriction/index.js +163 -158
  470. package/node_modules/hono/dist/middleware/jsx-renderer/index.js +97 -54
  471. package/node_modules/hono/dist/middleware/jwk/index.js +1 -4
  472. package/node_modules/hono/dist/middleware/jwk/jwk.js +116 -112
  473. package/node_modules/hono/dist/middleware/jwt/index.js +2 -10
  474. package/node_modules/hono/dist/middleware/jwt/jwt.js +114 -114
  475. package/node_modules/hono/dist/middleware/language/index.js +2 -15
  476. package/node_modules/hono/dist/middleware/language/language.js +180 -154
  477. package/node_modules/hono/dist/middleware/logger/index.js +43 -37
  478. package/node_modules/hono/dist/middleware/method-not-allowed/index.js +81 -66
  479. package/node_modules/hono/dist/middleware/method-override/index.js +101 -81
  480. package/node_modules/hono/dist/middleware/powered-by/index.js +23 -9
  481. package/node_modules/hono/dist/middleware/pretty-json/index.js +39 -16
  482. package/node_modules/hono/dist/middleware/request-id/index.js +1 -4
  483. package/node_modules/hono/dist/middleware/request-id/request-id.js +33 -20
  484. package/node_modules/hono/dist/middleware/secure-headers/index.js +1 -5
  485. package/node_modules/hono/dist/middleware/secure-headers/permissions-policy.js +1 -0
  486. package/node_modules/hono/dist/middleware/secure-headers/secure-headers.js +144 -155
  487. package/node_modules/hono/dist/middleware/serve-static/index.js +56 -72
  488. package/node_modules/hono/dist/middleware/serve-static/path.js +15 -17
  489. package/node_modules/hono/dist/middleware/timeout/index.js +40 -23
  490. package/node_modules/hono/dist/middleware/timing/index.js +2 -9
  491. package/node_modules/hono/dist/middleware/timing/timing.js +177 -97
  492. package/node_modules/hono/dist/middleware/trailing-slash/index.js +85 -37
  493. package/node_modules/hono/dist/preset/quick.js +17 -15
  494. package/node_modules/hono/dist/preset/tiny.js +14 -11
  495. package/node_modules/hono/dist/request/constants.js +4 -5
  496. package/node_modules/hono/dist/request.js +328 -316
  497. package/node_modules/hono/dist/router/linear-router/index.js +1 -4
  498. package/node_modules/hono/dist/router/linear-router/router.js +93 -120
  499. package/node_modules/hono/dist/router/pattern-router/index.js +1 -4
  500. package/node_modules/hono/dist/router/pattern-router/router.js +39 -40
  501. package/node_modules/hono/dist/router/reg-exp-router/index.js +1 -7
  502. package/node_modules/hono/dist/router/reg-exp-router/matcher.js +17 -23
  503. package/node_modules/hono/dist/router/reg-exp-router/node.js +87 -110
  504. package/node_modules/hono/dist/router/reg-exp-router/prepared-router.js +89 -137
  505. package/node_modules/hono/dist/router/reg-exp-router/router.js +92 -129
  506. package/node_modules/hono/dist/router/reg-exp-router/trie.js +69 -64
  507. package/node_modules/hono/dist/router/smart-router/index.js +1 -4
  508. package/node_modules/hono/dist/router/smart-router/router.js +46 -55
  509. package/node_modules/hono/dist/router/trie-router/index.js +1 -4
  510. package/node_modules/hono/dist/router/trie-router/node.js +131 -162
  511. package/node_modules/hono/dist/router/trie-router/router.js +11 -14
  512. package/node_modules/hono/dist/router/utils.js +4 -5
  513. package/node_modules/hono/dist/router.js +35 -14
  514. package/node_modules/hono/dist/types/adapter/aws-lambda/conninfo.d.ts +4 -1
  515. package/node_modules/hono/dist/types/adapter/aws-lambda/handler.d.ts +150 -105
  516. package/node_modules/hono/dist/types/adapter/aws-lambda/index.d.ts +4 -8
  517. package/node_modules/hono/dist/types/adapter/aws-lambda/types.d.ts +152 -123
  518. package/node_modules/hono/dist/types/adapter/bun/conninfo.d.ts +4 -1
  519. package/node_modules/hono/dist/types/adapter/bun/index.d.ts +6 -10
  520. package/node_modules/hono/dist/types/adapter/bun/serve-static.d.ts +7 -2
  521. package/node_modules/hono/dist/types/adapter/bun/server.d.ts +4 -5
  522. package/node_modules/hono/dist/types/adapter/bun/ssg.d.ts +5 -1
  523. package/node_modules/hono/dist/types/adapter/bun/websocket.d.ts +31 -17
  524. package/node_modules/hono/dist/types/adapter/cloudflare-pages/conninfo.d.ts +4 -1
  525. package/node_modules/hono/dist/types/adapter/cloudflare-pages/handler.d.ts +29 -18
  526. package/node_modules/hono/dist/types/adapter/cloudflare-pages/index.d.ts +3 -7
  527. package/node_modules/hono/dist/types/adapter/cloudflare-workers/conninfo.d.ts +6 -1
  528. package/node_modules/hono/dist/types/adapter/cloudflare-workers/index.d.ts +4 -7
  529. package/node_modules/hono/dist/types/adapter/cloudflare-workers/serve-static-module.d.ts +5 -3
  530. package/node_modules/hono/dist/types/adapter/cloudflare-workers/serve-static.d.ts +10 -5
  531. package/node_modules/hono/dist/types/adapter/cloudflare-workers/utils.d.ts +10 -2
  532. package/node_modules/hono/dist/types/adapter/cloudflare-workers/websocket.d.ts +6 -1
  533. package/node_modules/hono/dist/types/adapter/deno/conninfo.d.ts +4 -1
  534. package/node_modules/hono/dist/types/adapter/deno/deno.d.ts +1 -0
  535. package/node_modules/hono/dist/types/adapter/deno/index.d.ts +5 -8
  536. package/node_modules/hono/dist/types/adapter/deno/serve-static.d.ts +7 -2
  537. package/node_modules/hono/dist/types/adapter/deno/ssg.d.ts +5 -1
  538. package/node_modules/hono/dist/types/adapter/deno/websocket.d.ts +6 -1
  539. package/node_modules/hono/dist/types/adapter/lambda-edge/conninfo.d.ts +6 -1
  540. package/node_modules/hono/dist/types/adapter/lambda-edge/handler.d.ts +83 -58
  541. package/node_modules/hono/dist/types/adapter/lambda-edge/index.d.ts +3 -7
  542. package/node_modules/hono/dist/types/adapter/netlify/conninfo.d.ts +4 -1
  543. package/node_modules/hono/dist/types/adapter/netlify/handler.d.ts +6 -1
  544. package/node_modules/hono/dist/types/adapter/netlify/index.d.ts +3 -5
  545. package/node_modules/hono/dist/types/adapter/netlify/mod.d.ts +3 -2
  546. package/node_modules/hono/dist/types/adapter/service-worker/handler.d.ts +9 -8
  547. package/node_modules/hono/dist/types/adapter/service-worker/index.d.ts +6 -9
  548. package/node_modules/hono/dist/types/adapter/service-worker/types.d.ts +12 -8
  549. package/node_modules/hono/dist/types/adapter/vercel/conninfo.d.ts +6 -1
  550. package/node_modules/hono/dist/types/adapter/vercel/handler.d.ts +6 -1
  551. package/node_modules/hono/dist/types/adapter/vercel/index.d.ts +3 -6
  552. package/node_modules/hono/dist/types/client/client.d.ts +5 -3
  553. package/node_modules/hono/dist/types/client/fetch-result-please.d.ts +21 -19
  554. package/node_modules/hono/dist/types/client/index.d.ts +5 -7
  555. package/node_modules/hono/dist/types/client/types.d.ts +134 -160
  556. package/node_modules/hono/dist/types/client/utils.d.ts +6 -4
  557. package/node_modules/hono/dist/types/compose.d.ts +4 -2
  558. package/node_modules/hono/dist/types/context.d.ts +335 -336
  559. package/node_modules/hono/dist/types/helper/accepts/accepts.d.ts +11 -9
  560. package/node_modules/hono/dist/types/helper/accepts/index.d.ts +2 -5
  561. package/node_modules/hono/dist/types/helper/adapter/index.d.ts +4 -6
  562. package/node_modules/hono/dist/types/helper/conninfo/index.d.ts +2 -5
  563. package/node_modules/hono/dist/types/helper/conninfo/types.d.ts +25 -23
  564. package/node_modules/hono/dist/types/helper/cookie/index.d.ts +10 -13
  565. package/node_modules/hono/dist/types/helper/css/common.d.ts +11 -10
  566. package/node_modules/hono/dist/types/helper/css/index.d.ts +25 -28
  567. package/node_modules/hono/dist/types/helper/dev/index.d.ts +10 -13
  568. package/node_modules/hono/dist/types/helper/factory/index.d.ts +26 -74
  569. package/node_modules/hono/dist/types/helper/html/index.d.ts +4 -7
  570. package/node_modules/hono/dist/types/helper/proxy/index.d.ts +20 -23
  571. package/node_modules/hono/dist/types/helper/route/index.d.ts +6 -4
  572. package/node_modules/hono/dist/types/helper/ssg/index.d.ts +4 -7
  573. package/node_modules/hono/dist/types/helper/ssg/middleware.d.ts +8 -7
  574. package/node_modules/hono/dist/types/helper/ssg/plugins.d.ts +3 -1
  575. package/node_modules/hono/dist/types/helper/ssg/ssg.d.ts +38 -36
  576. package/node_modules/hono/dist/types/helper/ssg/utils.d.ts +5 -4
  577. package/node_modules/hono/dist/types/helper/streaming/index.d.ts +4 -8
  578. package/node_modules/hono/dist/types/helper/streaming/sse.d.ts +10 -8
  579. package/node_modules/hono/dist/types/helper/streaming/stream.d.ts +4 -2
  580. package/node_modules/hono/dist/types/helper/streaming/text.d.ts +4 -2
  581. package/node_modules/hono/dist/types/helper/streaming/utils.d.ts +2 -0
  582. package/node_modules/hono/dist/types/helper/testing/index.d.ts +7 -10
  583. package/node_modules/hono/dist/types/helper/websocket/index.d.ts +30 -33
  584. package/node_modules/hono/dist/types/hono-base.d.ts +208 -211
  585. package/node_modules/hono/dist/types/hono.d.ts +11 -10
  586. package/node_modules/hono/dist/types/http-exception.d.ts +20 -23
  587. package/node_modules/hono/dist/types/index.d.ts +6 -37
  588. package/node_modules/hono/dist/types/jsx/base.d.ts +36 -35
  589. package/node_modules/hono/dist/types/jsx/children.d.ts +8 -6
  590. package/node_modules/hono/dist/types/jsx/components.d.ts +8 -5
  591. package/node_modules/hono/dist/types/jsx/constants.d.ts +2 -0
  592. package/node_modules/hono/dist/types/jsx/context.d.ts +9 -7
  593. package/node_modules/hono/dist/types/jsx/dom/client.d.ts +8 -10
  594. package/node_modules/hono/dist/types/jsx/dom/components.d.ts +9 -6
  595. package/node_modules/hono/dist/types/jsx/dom/context.d.ts +3 -1
  596. package/node_modules/hono/dist/types/jsx/dom/css.d.ts +26 -30
  597. package/node_modules/hono/dist/types/jsx/dom/hooks/index.d.ts +11 -13
  598. package/node_modules/hono/dist/types/jsx/dom/index.d.ts +78 -83
  599. package/node_modules/hono/dist/types/jsx/dom/intrinsic-element/components.d.ts +9 -5
  600. package/node_modules/hono/dist/types/jsx/dom/jsx-dev-runtime.d.ts +4 -6
  601. package/node_modules/hono/dist/types/jsx/dom/jsx-runtime.d.ts +3 -7
  602. package/node_modules/hono/dist/types/jsx/dom/render.d.ts +32 -51
  603. package/node_modules/hono/dist/types/jsx/dom/server.d.ts +86 -85
  604. package/node_modules/hono/dist/types/jsx/dom/utils.d.ts +2 -0
  605. package/node_modules/hono/dist/types/jsx/hooks/index.d.ts +16 -17
  606. package/node_modules/hono/dist/types/jsx/index.d.ts +70 -73
  607. package/node_modules/hono/dist/types/jsx/intrinsic-element/common.d.ts +3 -1
  608. package/node_modules/hono/dist/types/jsx/intrinsic-element/components.d.ts +7 -4
  609. package/node_modules/hono/dist/types/jsx/intrinsic-elements.d.ts +708 -708
  610. package/node_modules/hono/dist/types/jsx/jsx-dev-runtime.d.ts +4 -7
  611. package/node_modules/hono/dist/types/jsx/jsx-runtime.d.ts +7 -10
  612. package/node_modules/hono/dist/types/jsx/streaming.d.ts +9 -10
  613. package/node_modules/hono/dist/types/jsx/types.d.ts +11 -13
  614. package/node_modules/hono/dist/types/jsx/utils.d.ts +2 -0
  615. package/node_modules/hono/dist/types/middleware/basic-auth/index.d.ts +17 -20
  616. package/node_modules/hono/dist/types/middleware/bearer-auth/index.d.ts +46 -49
  617. package/node_modules/hono/dist/types/middleware/body-limit/index.d.ts +6 -9
  618. package/node_modules/hono/dist/types/middleware/cache/index.d.ts +13 -15
  619. package/node_modules/hono/dist/types/middleware/combine/index.d.ts +7 -8
  620. package/node_modules/hono/dist/types/middleware/compress/index.d.ts +8 -10
  621. package/node_modules/hono/dist/types/middleware/context-storage/index.d.ts +4 -6
  622. package/node_modules/hono/dist/types/middleware/cors/index.d.ts +10 -13
  623. package/node_modules/hono/dist/types/middleware/csrf/index.d.ts +6 -9
  624. package/node_modules/hono/dist/types/middleware/etag/digest.d.ts +2 -0
  625. package/node_modules/hono/dist/types/middleware/etag/index.d.ts +6 -9
  626. package/node_modules/hono/dist/types/middleware/ip-restriction/index.d.ts +11 -13
  627. package/node_modules/hono/dist/types/middleware/jsx-renderer/index.d.ts +11 -12
  628. package/node_modules/hono/dist/types/middleware/jwk/index.d.ts +2 -1
  629. package/node_modules/hono/dist/types/middleware/jwk/jwk.d.ts +20 -23
  630. package/node_modules/hono/dist/types/middleware/jwt/index.d.ts +6 -6
  631. package/node_modules/hono/dist/types/middleware/jwt/jwt.d.ts +28 -30
  632. package/node_modules/hono/dist/types/middleware/language/index.d.ts +5 -5
  633. package/node_modules/hono/dist/types/middleware/language/language.d.ts +42 -44
  634. package/node_modules/hono/dist/types/middleware/logger/index.d.ts +3 -6
  635. package/node_modules/hono/dist/types/middleware/method-not-allowed/index.d.ts +7 -10
  636. package/node_modules/hono/dist/types/middleware/method-override/index.d.ts +14 -17
  637. package/node_modules/hono/dist/types/middleware/powered-by/index.d.ts +8 -11
  638. package/node_modules/hono/dist/types/middleware/pretty-json/index.d.ts +18 -21
  639. package/node_modules/hono/dist/types/middleware/request-id/index.d.ts +5 -5
  640. package/node_modules/hono/dist/types/middleware/request-id/request-id.d.ts +9 -11
  641. package/node_modules/hono/dist/types/middleware/secure-headers/index.d.ts +5 -6
  642. package/node_modules/hono/dist/types/middleware/secure-headers/permissions-policy.d.ts +2 -1
  643. package/node_modules/hono/dist/types/middleware/secure-headers/secure-headers.d.ts +55 -58
  644. package/node_modules/hono/dist/types/middleware/serve-static/index.d.ts +24 -24
  645. package/node_modules/hono/dist/types/middleware/serve-static/path.d.ts +2 -0
  646. package/node_modules/hono/dist/types/middleware/timeout/index.d.ts +5 -7
  647. package/node_modules/hono/dist/types/middleware/timing/index.d.ts +5 -5
  648. package/node_modules/hono/dist/types/middleware/timing/timing.d.ts +17 -21
  649. package/node_modules/hono/dist/types/middleware/trailing-slash/index.d.ts +35 -38
  650. package/node_modules/hono/dist/types/preset/quick.d.ts +6 -9
  651. package/node_modules/hono/dist/types/preset/tiny.d.ts +6 -9
  652. package/node_modules/hono/dist/types/request/constants.d.ts +2 -0
  653. package/node_modules/hono/dist/types/request.d.ts +288 -287
  654. package/node_modules/hono/dist/types/router/linear-router/index.d.ts +2 -5
  655. package/node_modules/hono/dist/types/router/linear-router/router.d.ts +7 -5
  656. package/node_modules/hono/dist/types/router/pattern-router/index.d.ts +2 -5
  657. package/node_modules/hono/dist/types/router/pattern-router/router.d.ts +7 -5
  658. package/node_modules/hono/dist/types/router/reg-exp-router/index.d.ts +3 -6
  659. package/node_modules/hono/dist/types/router/reg-exp-router/matcher.d.ts +3 -1
  660. package/node_modules/hono/dist/types/router/reg-exp-router/node.d.ts +6 -4
  661. package/node_modules/hono/dist/types/router/reg-exp-router/prepared-router.d.ts +11 -11
  662. package/node_modules/hono/dist/types/router/reg-exp-router/router.d.ts +10 -9
  663. package/node_modules/hono/dist/types/router/reg-exp-router/trie.d.ts +7 -5
  664. package/node_modules/hono/dist/types/router/smart-router/index.d.ts +2 -5
  665. package/node_modules/hono/dist/types/router/smart-router/router.d.ts +11 -9
  666. package/node_modules/hono/dist/types/router/trie-router/index.d.ts +2 -5
  667. package/node_modules/hono/dist/types/router/trie-router/node.d.ts +6 -4
  668. package/node_modules/hono/dist/types/router/trie-router/router.d.ts +7 -5
  669. package/node_modules/hono/dist/types/router/utils.d.ts +2 -0
  670. package/node_modules/hono/dist/types/router.d.ts +23 -22
  671. package/node_modules/hono/dist/types/types.d.ts +146 -506
  672. package/node_modules/hono/dist/types/utils/accept.d.ts +5 -3
  673. package/node_modules/hono/dist/types/utils/basic-auth.d.ts +4 -2
  674. package/node_modules/hono/dist/types/utils/body.d.ts +46 -51
  675. package/node_modules/hono/dist/types/utils/buffer.d.ts +7 -6
  676. package/node_modules/hono/dist/types/utils/color.d.ts +2 -0
  677. package/node_modules/hono/dist/types/utils/compress.d.ts +2 -0
  678. package/node_modules/hono/dist/types/utils/concurrent.d.ts +6 -4
  679. package/node_modules/hono/dist/types/utils/constants.d.ts +2 -0
  680. package/node_modules/hono/dist/types/utils/cookie.d.ts +20 -19
  681. package/node_modules/hono/dist/types/utils/crypto.d.ts +5 -8
  682. package/node_modules/hono/dist/types/utils/encode.d.ts +2 -0
  683. package/node_modules/hono/dist/types/utils/filepath.d.ts +5 -4
  684. package/node_modules/hono/dist/types/utils/handler.d.ts +2 -0
  685. package/node_modules/hono/dist/types/utils/headers.d.ts +2 -0
  686. package/node_modules/hono/dist/types/utils/html.d.ts +11 -10
  687. package/node_modules/hono/dist/types/utils/http-status.d.ts +2 -0
  688. package/node_modules/hono/dist/types/utils/ipaddr.d.ts +4 -6
  689. package/node_modules/hono/dist/types/utils/jwt/index.d.ts +18 -12
  690. package/node_modules/hono/dist/types/utils/jwt/jwa.d.ts +15 -13
  691. package/node_modules/hono/dist/types/utils/jwt/jws.d.ts +4 -7
  692. package/node_modules/hono/dist/types/utils/jwt/jwt.d.ts +26 -29
  693. package/node_modules/hono/dist/types/utils/jwt/types.d.ts +48 -45
  694. package/node_modules/hono/dist/types/utils/jwt/utf8.d.ts +2 -0
  695. package/node_modules/hono/dist/types/utils/mime.d.ts +59 -57
  696. package/node_modules/hono/dist/types/utils/stream.d.ts +27 -25
  697. package/node_modules/hono/dist/types/utils/types.d.ts +15 -28
  698. package/node_modules/hono/dist/types/utils/url.d.ts +2 -1
  699. package/node_modules/hono/dist/types/validator/index.d.ts +3 -7
  700. package/node_modules/hono/dist/types/validator/utils.d.ts +6 -9
  701. package/node_modules/hono/dist/types/validator/validator.d.ts +11 -10
  702. package/node_modules/hono/dist/types.js +4 -6
  703. package/node_modules/hono/dist/utils/accept.js +185 -215
  704. package/node_modules/hono/dist/utils/basic-auth.js +18 -21
  705. package/node_modules/hono/dist/utils/body.js +87 -92
  706. package/node_modules/hono/dist/utils/buffer.js +44 -71
  707. package/node_modules/hono/dist/utils/color.js +33 -21
  708. package/node_modules/hono/dist/utils/compress.js +11 -5
  709. package/node_modules/hono/dist/utils/concurrent.js +29 -38
  710. package/node_modules/hono/dist/utils/constants.js +7 -5
  711. package/node_modules/hono/dist/utils/cookie.js +114 -163
  712. package/node_modules/hono/dist/utils/crypto.js +30 -40
  713. package/node_modules/hono/dist/utils/encode.js +30 -26
  714. package/node_modules/hono/dist/utils/filepath.js +23 -33
  715. package/node_modules/hono/dist/utils/handler.js +10 -11
  716. package/node_modules/hono/dist/utils/headers.js +1 -0
  717. package/node_modules/hono/dist/utils/html.js +97 -117
  718. package/node_modules/hono/dist/utils/http-status.js +1 -0
  719. package/node_modules/hono/dist/utils/ipaddr.js +227 -279
  720. package/node_modules/hono/dist/utils/jwt/index.js +12 -4
  721. package/node_modules/hono/dist/utils/jwt/jwa.js +24 -20
  722. package/node_modules/hono/dist/utils/jwt/jws.js +115 -174
  723. package/node_modules/hono/dist/utils/jwt/jwt.js +120 -197
  724. package/node_modules/hono/dist/utils/jwt/types.js +79 -95
  725. package/node_modules/hono/dist/utils/jwt/utf8.js +9 -7
  726. package/node_modules/hono/dist/utils/mime.js +74 -79
  727. package/node_modules/hono/dist/utils/stream.js +86 -88
  728. package/node_modules/hono/dist/utils/types.js +1 -0
  729. package/node_modules/hono/dist/utils/url.js +187 -215
  730. package/node_modules/hono/dist/validator/index.js +1 -4
  731. package/node_modules/hono/dist/validator/utils.js +1 -0
  732. package/node_modules/hono/dist/validator/validator.js +61 -83
  733. package/node_modules/hono/package.json +27 -27
  734. package/node_modules/ip-address/README.md +104 -104
  735. package/node_modules/ip-address/dist/common.js +2 -2
  736. package/node_modules/ip-address/dist/common.js.map +1 -1
  737. package/node_modules/ip-address/dist/ipv4.js +7 -0
  738. package/node_modules/ip-address/dist/ipv4.js.map +1 -1
  739. package/node_modules/ip-address/dist/ipv6.js +7 -4
  740. package/node_modules/ip-address/dist/ipv6.js.map +1 -1
  741. package/node_modules/ip-address/dist/v6/constants.d.ts +3 -0
  742. package/node_modules/ip-address/dist/v6/constants.js +3 -0
  743. package/node_modules/ip-address/dist/v6/constants.js.map +1 -1
  744. package/node_modules/ip-address/package.json +3 -2
  745. package/node_modules/qs/.editorconfig +1 -1
  746. package/node_modules/qs/.github/THREAT_MODEL.md +4 -2
  747. package/node_modules/qs/CHANGELOG.md +61 -14
  748. package/node_modules/qs/README.md +57 -4
  749. package/node_modules/qs/dist/qs.js +19 -19
  750. package/node_modules/qs/eslint.config.mjs +61 -50
  751. package/node_modules/qs/lib/formats.js +7 -2
  752. package/node_modules/qs/lib/parse.js +105 -8
  753. package/node_modules/qs/lib/stringify.js +9 -7
  754. package/node_modules/qs/lib/utils.js +145 -13
  755. package/node_modules/qs/package.json +8 -8
  756. package/node_modules/qs/test/parse.js +440 -2
  757. package/node_modules/qs/test/stringify.js +485 -33
  758. package/node_modules/qs/test/utils.js +245 -3
  759. package/node_modules/zod/README.md +29 -2
  760. package/node_modules/zod/compile.cjs +96 -0
  761. package/node_modules/zod/compile.d.cts +1 -0
  762. package/node_modules/zod/compile.d.ts +1 -0
  763. package/node_modules/zod/compile.js +52 -0
  764. package/node_modules/zod/index.cjs +21 -2
  765. package/node_modules/zod/index.d.cts +1 -2
  766. package/node_modules/zod/index.d.ts +1 -2
  767. package/node_modules/zod/index.js +5 -2
  768. package/node_modules/zod/locales/index.cjs +19 -0
  769. package/node_modules/zod/mini/index.cjs +19 -0
  770. package/node_modules/zod/package.json +20 -8
  771. package/node_modules/zod/src/compile.ts +56 -0
  772. package/node_modules/zod/src/index.ts +5 -2
  773. package/node_modules/zod/src/v3/ZodError.ts +22 -12
  774. package/node_modules/zod/src/v3/helpers/errorUtil.ts +1 -1
  775. package/node_modules/zod/src/v3/tests/error.test.ts +35 -0
  776. package/node_modules/zod/src/v3/tests/intersection.test.ts +18 -0
  777. package/node_modules/zod/src/v3/tests/language-server.test.ts +1 -2
  778. package/node_modules/zod/src/v3/tests/object.test.ts +3 -6
  779. package/node_modules/zod/src/v3/tests/readonly.test.ts +0 -80
  780. package/node_modules/zod/src/v3/tests/string.test.ts +6 -0
  781. package/node_modules/zod/src/v3/types.ts +5 -5
  782. package/node_modules/zod/src/v4/classic/checks.ts +1 -0
  783. package/node_modules/zod/src/v4/classic/compat.ts +26 -18
  784. package/node_modules/zod/src/v4/classic/deep-partial.ts +76 -0
  785. package/node_modules/zod/src/v4/classic/errors.ts +59 -44
  786. package/node_modules/zod/src/v4/classic/external.ts +14 -9
  787. package/node_modules/zod/src/v4/classic/from-json-schema.ts +363 -78
  788. package/node_modules/zod/src/v4/classic/in-out.ts +45 -0
  789. package/node_modules/zod/src/v4/classic/index.ts +2 -2
  790. package/node_modules/zod/src/v4/classic/iso.ts +2 -72
  791. package/node_modules/zod/src/v4/classic/parse.ts +10 -4
  792. package/node_modules/zod/src/v4/classic/schemas.ts +640 -375
  793. package/node_modules/zod/src/v4/classic/tests/apply.test.ts +27 -0
  794. package/node_modules/zod/src/v4/classic/tests/array.test.ts +29 -2
  795. package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +186 -0
  796. package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +36 -1
  797. package/node_modules/zod/src/v4/classic/tests/catch.test.ts +278 -0
  798. package/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +1 -2
  799. package/node_modules/zod/src/v4/classic/tests/codec.test.ts +2 -1
  800. package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +3 -3
  801. package/node_modules/zod/src/v4/classic/tests/credit-card.test.ts +76 -0
  802. package/node_modules/zod/src/v4/classic/tests/cyclic-data.test.ts +985 -0
  803. package/node_modules/zod/src/v4/classic/tests/date.test.ts +30 -0
  804. package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +32 -18
  805. package/node_modules/zod/src/v4/classic/tests/deep-partial.test.ts +380 -0
  806. package/node_modules/zod/src/v4/classic/tests/default-locale.test.ts +32 -0
  807. package/node_modules/zod/src/v4/classic/tests/default.test.ts +46 -0
  808. package/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +31 -7
  809. package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +261 -13
  810. package/node_modules/zod/src/v4/classic/tests/enum.test.ts +20 -0
  811. package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +112 -2
  812. package/node_modules/zod/src/v4/classic/tests/error.test.ts +403 -6
  813. package/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +582 -10
  814. package/node_modules/zod/src/v4/classic/tests/function.test.ts +31 -0
  815. package/node_modules/zod/src/v4/classic/tests/global-config.test.ts +2 -9
  816. package/node_modules/zod/src/v4/classic/tests/hash.test.ts +1 -2
  817. package/node_modules/zod/src/v4/classic/tests/iban.test.ts +81 -0
  818. package/node_modules/zod/src/v4/classic/tests/in-out.test.ts +159 -0
  819. package/node_modules/zod/src/v4/classic/tests/index.test.ts +21 -2
  820. package/node_modules/zod/src/v4/classic/tests/instance-footprint.test.ts +319 -0
  821. package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +67 -0
  822. package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +136 -0
  823. package/node_modules/zod/src/v4/classic/tests/issue-schema.test.ts +215 -0
  824. package/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +3 -10
  825. package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +36 -1
  826. package/node_modules/zod/src/v4/classic/tests/literal.test.ts +12 -1
  827. package/node_modules/zod/src/v4/classic/tests/map.test.ts +19 -0
  828. package/node_modules/zod/src/v4/classic/tests/number.test.ts +85 -9
  829. package/node_modules/zod/src/v4/classic/tests/object.test.ts +301 -12
  830. package/node_modules/zod/src/v4/classic/tests/optin-ladder.test.ts +235 -0
  831. package/node_modules/zod/src/v4/classic/tests/optional.test.ts +49 -16
  832. package/node_modules/zod/src/v4/classic/tests/partial.test.ts +51 -4
  833. package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +70 -0
  834. package/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +20 -2
  835. package/node_modules/zod/src/v4/classic/tests/properties.test.ts +141 -0
  836. package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +0 -68
  837. package/node_modules/zod/src/v4/classic/tests/record.test.ts +186 -18
  838. package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +79 -3
  839. package/node_modules/zod/src/v4/classic/tests/redos.test.ts +68 -0
  840. package/node_modules/zod/src/v4/classic/tests/refine.test.ts +60 -0
  841. package/node_modules/zod/src/v4/classic/tests/set.test.ts +15 -0
  842. package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +19 -0
  843. package/node_modules/zod/src/v4/classic/tests/string.test.ts +222 -6
  844. package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +18 -0
  845. package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +44 -3
  846. package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +1812 -204
  847. package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +45 -30
  848. package/node_modules/zod/src/v4/classic/tests/union.test.ts +39 -2
  849. package/node_modules/zod/src/v4/classic/tests/validate.test.ts +645 -0
  850. package/node_modules/zod/src/v4/classic/tests/validations.test.ts +2 -2
  851. package/node_modules/zod/src/v4/core/api.ts +87 -35
  852. package/node_modules/zod/src/v4/core/checks.ts +119 -146
  853. package/node_modules/zod/src/v4/core/compile.ts +2322 -0
  854. package/node_modules/zod/src/v4/core/core.ts +99 -22
  855. package/node_modules/zod/src/v4/core/doc.ts +17 -9
  856. package/node_modules/zod/src/v4/core/errors.ts +113 -25
  857. package/node_modules/zod/src/v4/core/index.ts +3 -0
  858. package/node_modules/zod/src/v4/core/json-schema-generator.ts +8 -3
  859. package/node_modules/zod/src/v4/core/json-schema-processors.ts +424 -156
  860. package/node_modules/zod/src/v4/core/json-schema.ts +2 -1
  861. package/node_modules/zod/src/v4/core/memoizer.ts +331 -0
  862. package/node_modules/zod/src/v4/core/parse.ts +164 -50
  863. package/node_modules/zod/src/v4/core/regexes.ts +42 -15
  864. package/node_modules/zod/src/v4/core/registries.ts +2 -2
  865. package/node_modules/zod/src/v4/core/schemas.ts +1035 -539
  866. package/node_modules/zod/src/v4/core/tests/cached.test.ts +54 -0
  867. package/node_modules/zod/src/v4/core/tests/compile-differential.test.ts +1004 -0
  868. package/node_modules/zod/src/v4/core/tests/compile-generative.test.ts +445 -0
  869. package/node_modules/zod/src/v4/core/tests/compile-global.test.ts +89 -0
  870. package/node_modules/zod/src/v4/core/tests/compile-off-by-default.test.ts +26 -0
  871. package/node_modules/zod/src/v4/core/tests/compile-stats.test.ts +34 -0
  872. package/node_modules/zod/src/v4/core/tests/compile.test.ts +2036 -0
  873. package/node_modules/zod/src/v4/core/tests/email-regex.test.ts +140 -0
  874. package/node_modules/zod/src/v4/core/tests/locales/el.test.ts +1 -2
  875. package/node_modules/zod/src/v4/core/tests/locales/es.test.ts +1 -2
  876. package/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +3 -3
  877. package/node_modules/zod/src/v4/core/tests/locales/parity.test.ts +42 -0
  878. package/node_modules/zod/src/v4/core/tests/locales/tg.test.ts +85 -0
  879. package/node_modules/zod/src/v4/core/tests/locales/tk.test.ts +69 -0
  880. package/node_modules/zod/src/v4/core/tests/polyfill-collision.test.ts +46 -0
  881. package/node_modules/zod/src/v4/core/tests/treeshake.test.ts +51 -0
  882. package/node_modules/zod/src/v4/core/tests/url-no-canparse.test.ts +133 -0
  883. package/node_modules/zod/src/v4/core/to-json-schema.ts +283 -48
  884. package/node_modules/zod/src/v4/core/util.ts +467 -157
  885. package/node_modules/zod/src/v4/core/versions.ts +2 -2
  886. package/node_modules/zod/src/v4/core/visit.ts +193 -0
  887. package/node_modules/zod/src/v4/index.ts +3 -3
  888. package/node_modules/zod/src/v4/locales/ar.ts +5 -0
  889. package/node_modules/zod/src/v4/locales/az.ts +5 -0
  890. package/node_modules/zod/src/v4/locales/be.ts +12 -0
  891. package/node_modules/zod/src/v4/locales/bg.ts +5 -0
  892. package/node_modules/zod/src/v4/locales/bn.ts +123 -0
  893. package/node_modules/zod/src/v4/locales/ca.ts +5 -0
  894. package/node_modules/zod/src/v4/locales/ckb.ts +140 -0
  895. package/node_modules/zod/src/v4/locales/cs.ts +5 -0
  896. package/node_modules/zod/src/v4/locales/da.ts +7 -2
  897. package/node_modules/zod/src/v4/locales/de.ts +5 -0
  898. package/node_modules/zod/src/v4/locales/el.ts +3 -0
  899. package/node_modules/zod/src/v4/locales/en.ts +17 -4
  900. package/node_modules/zod/src/v4/locales/eo.ts +5 -0
  901. package/node_modules/zod/src/v4/locales/es.ts +4 -0
  902. package/node_modules/zod/src/v4/locales/fa.ts +5 -0
  903. package/node_modules/zod/src/v4/locales/fi.ts +5 -0
  904. package/node_modules/zod/src/v4/locales/fr-CA.ts +5 -0
  905. package/node_modules/zod/src/v4/locales/fr.ts +21 -14
  906. package/node_modules/zod/src/v4/locales/gu.ts +123 -0
  907. package/node_modules/zod/src/v4/locales/he.ts +8 -1
  908. package/node_modules/zod/src/v4/locales/hi.ts +126 -0
  909. package/node_modules/zod/src/v4/locales/hr.ts +4 -0
  910. package/node_modules/zod/src/v4/locales/hu.ts +5 -0
  911. package/node_modules/zod/src/v4/locales/hy.ts +11 -0
  912. package/node_modules/zod/src/v4/locales/id.ts +5 -0
  913. package/node_modules/zod/src/v4/locales/index.ts +11 -0
  914. package/node_modules/zod/src/v4/locales/is.ts +5 -0
  915. package/node_modules/zod/src/v4/locales/it.ts +5 -0
  916. package/node_modules/zod/src/v4/locales/ja.ts +5 -0
  917. package/node_modules/zod/src/v4/locales/ka.ts +5 -0
  918. package/node_modules/zod/src/v4/locales/km.ts +5 -0
  919. package/node_modules/zod/src/v4/locales/kn.ts +126 -0
  920. package/node_modules/zod/src/v4/locales/ko.ts +5 -0
  921. package/node_modules/zod/src/v4/locales/lt.ts +4 -0
  922. package/node_modules/zod/src/v4/locales/mk.ts +5 -0
  923. package/node_modules/zod/src/v4/locales/ms.ts +5 -0
  924. package/node_modules/zod/src/v4/locales/ne.ts +128 -0
  925. package/node_modules/zod/src/v4/locales/nl.ts +5 -0
  926. package/node_modules/zod/src/v4/locales/nn.ts +121 -0
  927. package/node_modules/zod/src/v4/locales/no.ts +7 -2
  928. package/node_modules/zod/src/v4/locales/ota.ts +5 -0
  929. package/node_modules/zod/src/v4/locales/pl.ts +5 -0
  930. package/node_modules/zod/src/v4/locales/ps.ts +5 -0
  931. package/node_modules/zod/src/v4/locales/pt-BR.ts +161 -0
  932. package/node_modules/zod/src/v4/locales/pt.ts +101 -58
  933. package/node_modules/zod/src/v4/locales/ro.ts +3 -0
  934. package/node_modules/zod/src/v4/locales/ru.ts +12 -0
  935. package/node_modules/zod/src/v4/locales/sk.ts +123 -0
  936. package/node_modules/zod/src/v4/locales/sl.ts +5 -0
  937. package/node_modules/zod/src/v4/locales/sv.ts +7 -2
  938. package/node_modules/zod/src/v4/locales/ta.ts +5 -0
  939. package/node_modules/zod/src/v4/locales/tg.ts +135 -0
  940. package/node_modules/zod/src/v4/locales/th.ts +5 -0
  941. package/node_modules/zod/src/v4/locales/tk.ts +113 -0
  942. package/node_modules/zod/src/v4/locales/tr.ts +5 -0
  943. package/node_modules/zod/src/v4/locales/uk.ts +5 -0
  944. package/node_modules/zod/src/v4/locales/ur.ts +5 -0
  945. package/node_modules/zod/src/v4/locales/uz.ts +3 -0
  946. package/node_modules/zod/src/v4/locales/vi.ts +5 -0
  947. package/node_modules/zod/src/v4/locales/yo.ts +5 -0
  948. package/node_modules/zod/src/v4/locales/zh-CN.ts +5 -0
  949. package/node_modules/zod/src/v4/locales/zh-TW.ts +5 -0
  950. package/node_modules/zod/src/v4/mini/checks.ts +1 -0
  951. package/node_modules/zod/src/v4/mini/deep-partial.ts +73 -0
  952. package/node_modules/zod/src/v4/mini/external.ts +12 -1
  953. package/node_modules/zod/src/v4/mini/in-out.ts +45 -0
  954. package/node_modules/zod/src/v4/mini/parse.ts +2 -0
  955. package/node_modules/zod/src/v4/mini/schemas.ts +167 -63
  956. package/node_modules/zod/src/v4/mini/tests/apply.test.ts +33 -0
  957. package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +62 -1
  958. package/node_modules/zod/src/v4/mini/tests/checks.test.ts +14 -0
  959. package/node_modules/zod/src/v4/mini/tests/codec.test.ts +35 -1
  960. package/node_modules/zod/src/v4/mini/tests/computed.test.ts +11 -17
  961. package/node_modules/zod/src/v4/mini/tests/cyclic-data.test.ts +84 -0
  962. package/node_modules/zod/src/v4/mini/tests/deep-partial.test.ts +54 -0
  963. package/node_modules/zod/src/v4/mini/tests/error.test.ts +23 -4
  964. package/node_modules/zod/src/v4/mini/tests/functions.test.ts +9 -0
  965. package/node_modules/zod/src/v4/mini/tests/index.test.ts +158 -5
  966. package/node_modules/zod/src/v4/mini/tests/number.test.ts +14 -0
  967. package/node_modules/zod/src/v4/mini/tests/object.test.ts +65 -0
  968. package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +16 -0
  969. package/node_modules/zod/src/v4/mini/tests/string.test.ts +44 -0
  970. package/node_modules/zod/v3/ZodError.cjs +41 -12
  971. package/node_modules/zod/v3/ZodError.d.cts +1 -1
  972. package/node_modules/zod/v3/ZodError.d.ts +1 -1
  973. package/node_modules/zod/v3/ZodError.js +22 -12
  974. package/node_modules/zod/v3/errors.cjs +19 -0
  975. package/node_modules/zod/v3/external.cjs +19 -0
  976. package/node_modules/zod/v3/helpers/enumUtil.cjs +19 -0
  977. package/node_modules/zod/v3/helpers/errorUtil.cjs +20 -1
  978. package/node_modules/zod/v3/helpers/errorUtil.js +1 -1
  979. package/node_modules/zod/v3/helpers/parseUtil.cjs +19 -0
  980. package/node_modules/zod/v3/helpers/partialUtil.cjs +19 -0
  981. package/node_modules/zod/v3/helpers/typeAliases.cjs +19 -0
  982. package/node_modules/zod/v3/helpers/util.cjs +19 -0
  983. package/node_modules/zod/v3/index.cjs +19 -0
  984. package/node_modules/zod/v3/standard-schema.cjs +19 -0
  985. package/node_modules/zod/v3/types.cjs +26 -5
  986. package/node_modules/zod/v3/types.js +7 -5
  987. package/node_modules/zod/v4/classic/checks.cjs +21 -1
  988. package/node_modules/zod/v4/classic/checks.d.cts +1 -1
  989. package/node_modules/zod/v4/classic/checks.d.ts +1 -1
  990. package/node_modules/zod/v4/classic/checks.js +1 -1
  991. package/node_modules/zod/v4/classic/coerce.cjs +19 -0
  992. package/node_modules/zod/v4/classic/compat.cjs +19 -0
  993. package/node_modules/zod/v4/classic/compat.d.cts +9 -11
  994. package/node_modules/zod/v4/classic/compat.d.ts +9 -11
  995. package/node_modules/zod/v4/classic/deep-partial.cjs +58 -0
  996. package/node_modules/zod/v4/classic/deep-partial.d.cts +14 -0
  997. package/node_modules/zod/v4/classic/deep-partial.d.ts +14 -0
  998. package/node_modules/zod/v4/classic/deep-partial.js +13 -0
  999. package/node_modules/zod/v4/classic/errors.cjs +62 -34
  1000. package/node_modules/zod/v4/classic/errors.d.cts +3 -4
  1001. package/node_modules/zod/v4/classic/errors.d.ts +3 -4
  1002. package/node_modules/zod/v4/classic/errors.js +43 -34
  1003. package/node_modules/zod/v4/classic/external.cjs +51 -27
  1004. package/node_modules/zod/v4/classic/external.d.cts +5 -2
  1005. package/node_modules/zod/v4/classic/external.d.ts +5 -2
  1006. package/node_modules/zod/v4/classic/external.js +5 -8
  1007. package/node_modules/zod/v4/classic/from-json-schema.cjs +376 -75
  1008. package/node_modules/zod/v4/classic/from-json-schema.js +357 -75
  1009. package/node_modules/zod/v4/classic/in-out.cjs +82 -0
  1010. package/node_modules/zod/v4/classic/in-out.d.cts +8 -0
  1011. package/node_modules/zod/v4/classic/in-out.d.ts +8 -0
  1012. package/node_modules/zod/v4/classic/in-out.js +36 -0
  1013. package/node_modules/zod/v4/classic/index.cjs +21 -2
  1014. package/node_modules/zod/v4/classic/index.d.cts +1 -2
  1015. package/node_modules/zod/v4/classic/index.d.ts +1 -2
  1016. package/node_modules/zod/v4/classic/index.js +2 -2
  1017. package/node_modules/zod/v4/classic/iso.cjs +30 -22
  1018. package/node_modules/zod/v4/classic/iso.d.cts +2 -17
  1019. package/node_modules/zod/v4/classic/iso.d.ts +2 -17
  1020. package/node_modules/zod/v4/classic/iso.js +2 -17
  1021. package/node_modules/zod/v4/classic/parse.cjs +23 -1
  1022. package/node_modules/zod/v4/classic/parse.d.cts +17 -4
  1023. package/node_modules/zod/v4/classic/parse.d.ts +17 -4
  1024. package/node_modules/zod/v4/classic/parse.js +1 -0
  1025. package/node_modules/zod/v4/classic/schemas.cjs +591 -426
  1026. package/node_modules/zod/v4/classic/schemas.d.cts +68 -19
  1027. package/node_modules/zod/v4/classic/schemas.d.ts +68 -19
  1028. package/node_modules/zod/v4/classic/schemas.js +564 -424
  1029. package/node_modules/zod/v4/core/api.cjs +66 -24
  1030. package/node_modules/zod/v4/core/api.d.cts +22 -12
  1031. package/node_modules/zod/v4/core/api.d.ts +22 -12
  1032. package/node_modules/zod/v4/core/api.js +44 -24
  1033. package/node_modules/zod/v4/core/checks.cjs +88 -128
  1034. package/node_modules/zod/v4/core/checks.d.cts +29 -13
  1035. package/node_modules/zod/v4/core/checks.d.ts +29 -13
  1036. package/node_modules/zod/v4/core/checks.js +68 -127
  1037. package/node_modules/zod/v4/core/compile.cjs +1916 -0
  1038. package/node_modules/zod/v4/core/compile.d.cts +65 -0
  1039. package/node_modules/zod/v4/core/compile.d.ts +65 -0
  1040. package/node_modules/zod/v4/core/compile.js +1866 -0
  1041. package/node_modules/zod/v4/core/core.cjs +101 -19
  1042. package/node_modules/zod/v4/core/core.d.cts +16 -4
  1043. package/node_modules/zod/v4/core/core.d.ts +16 -4
  1044. package/node_modules/zod/v4/core/core.js +83 -20
  1045. package/node_modules/zod/v4/core/doc.cjs +31 -9
  1046. package/node_modules/zod/v4/core/doc.d.cts +3 -1
  1047. package/node_modules/zod/v4/core/doc.d.ts +3 -1
  1048. package/node_modules/zod/v4/core/doc.js +12 -9
  1049. package/node_modules/zod/v4/core/errors.cjs +126 -25
  1050. package/node_modules/zod/v4/core/errors.d.cts +4 -0
  1051. package/node_modules/zod/v4/core/errors.d.ts +4 -0
  1052. package/node_modules/zod/v4/core/errors.js +107 -25
  1053. package/node_modules/zod/v4/core/index.cjs +24 -1
  1054. package/node_modules/zod/v4/core/index.d.cts +3 -0
  1055. package/node_modules/zod/v4/core/index.d.ts +3 -0
  1056. package/node_modules/zod/v4/core/index.js +3 -0
  1057. package/node_modules/zod/v4/core/json-schema-generator.cjs +24 -1
  1058. package/node_modules/zod/v4/core/json-schema-generator.d.cts +2 -2
  1059. package/node_modules/zod/v4/core/json-schema-generator.d.ts +2 -2
  1060. package/node_modules/zod/v4/core/json-schema-generator.js +6 -2
  1061. package/node_modules/zod/v4/core/json-schema-processors.cjs +441 -156
  1062. package/node_modules/zod/v4/core/json-schema-processors.d.cts +16 -0
  1063. package/node_modules/zod/v4/core/json-schema-processors.d.ts +16 -0
  1064. package/node_modules/zod/v4/core/json-schema-processors.js +400 -158
  1065. package/node_modules/zod/v4/core/json-schema.cjs +19 -0
  1066. package/node_modules/zod/v4/core/json-schema.d.cts +2 -1
  1067. package/node_modules/zod/v4/core/json-schema.d.ts +2 -1
  1068. package/node_modules/zod/v4/core/memoizer.cjs +360 -0
  1069. package/node_modules/zod/v4/core/memoizer.d.cts +15 -0
  1070. package/node_modules/zod/v4/core/memoizer.d.ts +15 -0
  1071. package/node_modules/zod/v4/core/memoizer.js +311 -0
  1072. package/node_modules/zod/v4/core/parse.cjs +148 -46
  1073. package/node_modules/zod/v4/core/parse.d.cts +14 -11
  1074. package/node_modules/zod/v4/core/parse.d.ts +14 -11
  1075. package/node_modules/zod/v4/core/parse.js +127 -45
  1076. package/node_modules/zod/v4/core/regexes.cjs +54 -17
  1077. package/node_modules/zod/v4/core/regexes.d.cts +5 -0
  1078. package/node_modules/zod/v4/core/regexes.d.ts +5 -0
  1079. package/node_modules/zod/v4/core/regexes.js +32 -15
  1080. package/node_modules/zod/v4/core/registries.cjs +19 -0
  1081. package/node_modules/zod/v4/core/registries.js +2 -2
  1082. package/node_modules/zod/v4/core/schemas.cjs +815 -386
  1083. package/node_modules/zod/v4/core/schemas.d.cts +126 -35
  1084. package/node_modules/zod/v4/core/schemas.d.ts +126 -35
  1085. package/node_modules/zod/v4/core/schemas.js +783 -386
  1086. package/node_modules/zod/v4/core/standard-schema.cjs +19 -0
  1087. package/node_modules/zod/v4/core/to-json-schema.cjs +269 -45
  1088. package/node_modules/zod/v4/core/to-json-schema.d.cts +45 -5
  1089. package/node_modules/zod/v4/core/to-json-schema.d.ts +45 -5
  1090. package/node_modules/zod/v4/core/to-json-schema.js +247 -44
  1091. package/node_modules/zod/v4/core/util.cjs +387 -157
  1092. package/node_modules/zod/v4/core/util.d.cts +81 -1
  1093. package/node_modules/zod/v4/core/util.d.ts +81 -1
  1094. package/node_modules/zod/v4/core/util.js +355 -156
  1095. package/node_modules/zod/v4/core/versions.cjs +21 -2
  1096. package/node_modules/zod/v4/core/versions.d.cts +1 -1
  1097. package/node_modules/zod/v4/core/versions.d.ts +1 -1
  1098. package/node_modules/zod/v4/core/versions.js +2 -2
  1099. package/node_modules/zod/v4/core/visit.cjs +214 -0
  1100. package/node_modules/zod/v4/core/visit.d.cts +30 -0
  1101. package/node_modules/zod/v4/core/visit.d.ts +30 -0
  1102. package/node_modules/zod/v4/core/visit.js +169 -0
  1103. package/node_modules/zod/v4/index.cjs +34 -5
  1104. package/node_modules/zod/v4/index.d.cts +2 -2
  1105. package/node_modules/zod/v4/index.d.ts +2 -2
  1106. package/node_modules/zod/v4/index.js +3 -2
  1107. package/node_modules/zod/v4/locales/ar.cjs +5 -0
  1108. package/node_modules/zod/v4/locales/ar.js +5 -0
  1109. package/node_modules/zod/v4/locales/az.cjs +5 -0
  1110. package/node_modules/zod/v4/locales/az.js +5 -0
  1111. package/node_modules/zod/v4/locales/be.cjs +12 -0
  1112. package/node_modules/zod/v4/locales/be.js +12 -0
  1113. package/node_modules/zod/v4/locales/bg.cjs +5 -0
  1114. package/node_modules/zod/v4/locales/bg.js +5 -0
  1115. package/node_modules/zod/v4/locales/bn.cjs +140 -0
  1116. package/node_modules/zod/v4/locales/bn.d.cts +5 -0
  1117. package/node_modules/zod/v4/locales/bn.d.ts +4 -0
  1118. package/node_modules/zod/v4/locales/bn.js +113 -0
  1119. package/node_modules/zod/v4/locales/ca.cjs +5 -0
  1120. package/node_modules/zod/v4/locales/ca.js +5 -0
  1121. package/node_modules/zod/v4/locales/ckb.cjs +160 -0
  1122. package/node_modules/zod/v4/locales/ckb.d.cts +5 -0
  1123. package/node_modules/zod/v4/locales/ckb.d.ts +4 -0
  1124. package/node_modules/zod/v4/locales/ckb.js +133 -0
  1125. package/node_modules/zod/v4/locales/cs.cjs +5 -0
  1126. package/node_modules/zod/v4/locales/cs.js +5 -0
  1127. package/node_modules/zod/v4/locales/da.cjs +7 -2
  1128. package/node_modules/zod/v4/locales/da.js +7 -2
  1129. package/node_modules/zod/v4/locales/de.cjs +5 -0
  1130. package/node_modules/zod/v4/locales/de.js +5 -0
  1131. package/node_modules/zod/v4/locales/el.cjs +3 -0
  1132. package/node_modules/zod/v4/locales/el.js +3 -0
  1133. package/node_modules/zod/v4/locales/en.cjs +16 -4
  1134. package/node_modules/zod/v4/locales/en.js +16 -4
  1135. package/node_modules/zod/v4/locales/eo.cjs +5 -0
  1136. package/node_modules/zod/v4/locales/eo.js +5 -0
  1137. package/node_modules/zod/v4/locales/es.cjs +4 -0
  1138. package/node_modules/zod/v4/locales/es.js +4 -0
  1139. package/node_modules/zod/v4/locales/fa.cjs +5 -0
  1140. package/node_modules/zod/v4/locales/fa.js +5 -0
  1141. package/node_modules/zod/v4/locales/fi.cjs +5 -0
  1142. package/node_modules/zod/v4/locales/fi.js +5 -0
  1143. package/node_modules/zod/v4/locales/fr-CA.cjs +5 -0
  1144. package/node_modules/zod/v4/locales/fr-CA.js +5 -0
  1145. package/node_modules/zod/v4/locales/fr.cjs +18 -14
  1146. package/node_modules/zod/v4/locales/fr.js +18 -14
  1147. package/node_modules/zod/v4/locales/gu.cjs +140 -0
  1148. package/node_modules/zod/v4/locales/gu.d.cts +5 -0
  1149. package/node_modules/zod/v4/locales/gu.d.ts +4 -0
  1150. package/node_modules/zod/v4/locales/gu.js +113 -0
  1151. package/node_modules/zod/v4/locales/he.cjs +7 -0
  1152. package/node_modules/zod/v4/locales/he.js +7 -0
  1153. package/node_modules/zod/v4/locales/hi.cjs +138 -0
  1154. package/node_modules/zod/v4/locales/hi.d.cts +5 -0
  1155. package/node_modules/zod/v4/locales/hi.d.ts +4 -0
  1156. package/node_modules/zod/v4/locales/hi.js +111 -0
  1157. package/node_modules/zod/v4/locales/hr.cjs +4 -0
  1158. package/node_modules/zod/v4/locales/hr.js +4 -0
  1159. package/node_modules/zod/v4/locales/hu.cjs +5 -0
  1160. package/node_modules/zod/v4/locales/hu.js +5 -0
  1161. package/node_modules/zod/v4/locales/hy.cjs +11 -0
  1162. package/node_modules/zod/v4/locales/hy.js +11 -0
  1163. package/node_modules/zod/v4/locales/id.cjs +5 -0
  1164. package/node_modules/zod/v4/locales/id.js +5 -0
  1165. package/node_modules/zod/v4/locales/index.cjs +43 -2
  1166. package/node_modules/zod/v4/locales/index.d.cts +11 -0
  1167. package/node_modules/zod/v4/locales/index.d.ts +11 -0
  1168. package/node_modules/zod/v4/locales/index.js +11 -0
  1169. package/node_modules/zod/v4/locales/is.cjs +5 -0
  1170. package/node_modules/zod/v4/locales/is.js +5 -0
  1171. package/node_modules/zod/v4/locales/it.cjs +5 -0
  1172. package/node_modules/zod/v4/locales/it.js +5 -0
  1173. package/node_modules/zod/v4/locales/ja.cjs +5 -0
  1174. package/node_modules/zod/v4/locales/ja.js +5 -0
  1175. package/node_modules/zod/v4/locales/ka.cjs +5 -0
  1176. package/node_modules/zod/v4/locales/ka.js +5 -0
  1177. package/node_modules/zod/v4/locales/km.cjs +5 -0
  1178. package/node_modules/zod/v4/locales/km.js +5 -0
  1179. package/node_modules/zod/v4/locales/kn.cjs +143 -0
  1180. package/node_modules/zod/v4/locales/kn.d.cts +5 -0
  1181. package/node_modules/zod/v4/locales/kn.d.ts +4 -0
  1182. package/node_modules/zod/v4/locales/kn.js +116 -0
  1183. package/node_modules/zod/v4/locales/ko.cjs +5 -0
  1184. package/node_modules/zod/v4/locales/ko.js +5 -0
  1185. package/node_modules/zod/v4/locales/lt.cjs +4 -0
  1186. package/node_modules/zod/v4/locales/lt.js +4 -0
  1187. package/node_modules/zod/v4/locales/mk.cjs +5 -0
  1188. package/node_modules/zod/v4/locales/mk.js +5 -0
  1189. package/node_modules/zod/v4/locales/ms.cjs +5 -0
  1190. package/node_modules/zod/v4/locales/ms.js +5 -0
  1191. package/node_modules/zod/v4/locales/ne.cjs +138 -0
  1192. package/node_modules/zod/v4/locales/ne.d.cts +5 -0
  1193. package/node_modules/zod/v4/locales/ne.d.ts +4 -0
  1194. package/node_modules/zod/v4/locales/ne.js +111 -0
  1195. package/node_modules/zod/v4/locales/nl.cjs +5 -0
  1196. package/node_modules/zod/v4/locales/nl.js +5 -0
  1197. package/node_modules/zod/v4/locales/nn.cjs +140 -0
  1198. package/node_modules/zod/v4/locales/nn.d.cts +5 -0
  1199. package/node_modules/zod/v4/locales/nn.d.ts +4 -0
  1200. package/node_modules/zod/v4/locales/nn.js +113 -0
  1201. package/node_modules/zod/v4/locales/no.cjs +7 -2
  1202. package/node_modules/zod/v4/locales/no.js +7 -2
  1203. package/node_modules/zod/v4/locales/ota.cjs +5 -0
  1204. package/node_modules/zod/v4/locales/ota.js +5 -0
  1205. package/node_modules/zod/v4/locales/pl.cjs +5 -0
  1206. package/node_modules/zod/v4/locales/pl.js +5 -0
  1207. package/node_modules/zod/v4/locales/ps.cjs +5 -0
  1208. package/node_modules/zod/v4/locales/ps.js +5 -0
  1209. package/node_modules/zod/v4/locales/pt-BR.cjs +170 -0
  1210. package/node_modules/zod/v4/locales/pt-BR.d.cts +5 -0
  1211. package/node_modules/zod/v4/locales/pt-BR.d.ts +4 -0
  1212. package/node_modules/zod/v4/locales/pt-BR.js +143 -0
  1213. package/node_modules/zod/v4/locales/pt.cjs +89 -55
  1214. package/node_modules/zod/v4/locales/pt.js +89 -55
  1215. package/node_modules/zod/v4/locales/ro.cjs +3 -0
  1216. package/node_modules/zod/v4/locales/ro.js +3 -0
  1217. package/node_modules/zod/v4/locales/ru.cjs +12 -0
  1218. package/node_modules/zod/v4/locales/ru.js +12 -0
  1219. package/node_modules/zod/v4/locales/sk.cjs +143 -0
  1220. package/node_modules/zod/v4/locales/sk.d.cts +5 -0
  1221. package/node_modules/zod/v4/locales/sk.d.ts +4 -0
  1222. package/node_modules/zod/v4/locales/sk.js +116 -0
  1223. package/node_modules/zod/v4/locales/sl.cjs +5 -0
  1224. package/node_modules/zod/v4/locales/sl.js +5 -0
  1225. package/node_modules/zod/v4/locales/sv.cjs +7 -2
  1226. package/node_modules/zod/v4/locales/sv.js +7 -2
  1227. package/node_modules/zod/v4/locales/ta.cjs +5 -0
  1228. package/node_modules/zod/v4/locales/ta.js +5 -0
  1229. package/node_modules/zod/v4/locales/tg.cjs +144 -0
  1230. package/node_modules/zod/v4/locales/tg.d.cts +5 -0
  1231. package/node_modules/zod/v4/locales/tg.d.ts +4 -0
  1232. package/node_modules/zod/v4/locales/tg.js +117 -0
  1233. package/node_modules/zod/v4/locales/th.cjs +5 -0
  1234. package/node_modules/zod/v4/locales/th.js +5 -0
  1235. package/node_modules/zod/v4/locales/tk.cjs +134 -0
  1236. package/node_modules/zod/v4/locales/tk.d.cts +5 -0
  1237. package/node_modules/zod/v4/locales/tk.d.ts +4 -0
  1238. package/node_modules/zod/v4/locales/tk.js +107 -0
  1239. package/node_modules/zod/v4/locales/tr.cjs +5 -0
  1240. package/node_modules/zod/v4/locales/tr.js +5 -0
  1241. package/node_modules/zod/v4/locales/uk.cjs +5 -0
  1242. package/node_modules/zod/v4/locales/uk.js +5 -0
  1243. package/node_modules/zod/v4/locales/ur.cjs +5 -0
  1244. package/node_modules/zod/v4/locales/ur.js +5 -0
  1245. package/node_modules/zod/v4/locales/uz.cjs +3 -0
  1246. package/node_modules/zod/v4/locales/uz.js +3 -0
  1247. package/node_modules/zod/v4/locales/vi.cjs +5 -0
  1248. package/node_modules/zod/v4/locales/vi.js +5 -0
  1249. package/node_modules/zod/v4/locales/yo.cjs +5 -0
  1250. package/node_modules/zod/v4/locales/yo.js +5 -0
  1251. package/node_modules/zod/v4/locales/zh-CN.cjs +5 -0
  1252. package/node_modules/zod/v4/locales/zh-CN.js +5 -0
  1253. package/node_modules/zod/v4/locales/zh-TW.cjs +5 -0
  1254. package/node_modules/zod/v4/locales/zh-TW.js +5 -0
  1255. package/node_modules/zod/v4/mini/checks.cjs +21 -1
  1256. package/node_modules/zod/v4/mini/checks.d.cts +1 -1
  1257. package/node_modules/zod/v4/mini/checks.d.ts +1 -1
  1258. package/node_modules/zod/v4/mini/checks.js +1 -1
  1259. package/node_modules/zod/v4/mini/coerce.cjs +19 -0
  1260. package/node_modules/zod/v4/mini/deep-partial.cjs +58 -0
  1261. package/node_modules/zod/v4/mini/deep-partial.d.cts +14 -0
  1262. package/node_modules/zod/v4/mini/deep-partial.d.ts +14 -0
  1263. package/node_modules/zod/v4/mini/deep-partial.js +13 -0
  1264. package/node_modules/zod/v4/mini/external.cjs +33 -1
  1265. package/node_modules/zod/v4/mini/external.d.cts +5 -2
  1266. package/node_modules/zod/v4/mini/external.d.ts +5 -2
  1267. package/node_modules/zod/v4/mini/external.js +3 -1
  1268. package/node_modules/zod/v4/mini/in-out.cjs +82 -0
  1269. package/node_modules/zod/v4/mini/in-out.d.cts +8 -0
  1270. package/node_modules/zod/v4/mini/in-out.d.ts +8 -0
  1271. package/node_modules/zod/v4/mini/in-out.js +36 -0
  1272. package/node_modules/zod/v4/mini/index.cjs +19 -0
  1273. package/node_modules/zod/v4/mini/iso.cjs +19 -0
  1274. package/node_modules/zod/v4/mini/parse.cjs +22 -1
  1275. package/node_modules/zod/v4/mini/parse.d.cts +1 -1
  1276. package/node_modules/zod/v4/mini/parse.d.ts +1 -1
  1277. package/node_modules/zod/v4/mini/parse.js +1 -1
  1278. package/node_modules/zod/v4/mini/schemas.cjs +117 -53
  1279. package/node_modules/zod/v4/mini/schemas.d.cts +49 -14
  1280. package/node_modules/zod/v4/mini/schemas.d.ts +49 -14
  1281. package/node_modules/zod/v4/mini/schemas.js +92 -51
  1282. package/node_modules/zod/v4-mini/index.cjs +19 -0
  1283. package/package.json +7 -7
  1284. package/prepare.mjs +109 -4
  1285. package/runtime-package.json +13 -8
  1286. package/shipping-sbom.cdx.json +167 -168
  1287. package/shipping-source.json +12 -12
  1288. package/node_modules/zod/src/v4/core/config.ts +0 -15
  1289. /package/node_modules/@earendil-works/{pi-telemetry → pi-ai/node_modules/@earendil-works/pi-telemetry}/README.md +0 -0
  1290. /package/node_modules/@earendil-works/{pi-telemetry → pi-ai/node_modules/@earendil-works/pi-telemetry}/dist/index.d.ts +0 -0
  1291. /package/node_modules/@earendil-works/{pi-telemetry → pi-ai/node_modules/@earendil-works/pi-telemetry}/dist/index.d.ts.map +0 -0
  1292. /package/node_modules/@earendil-works/{pi-telemetry → pi-ai/node_modules/@earendil-works/pi-telemetry}/dist/index.js +0 -0
  1293. /package/node_modules/@earendil-works/{pi-telemetry → pi-ai/node_modules/@earendil-works/pi-telemetry}/dist/index.js.map +0 -0
  1294. /package/node_modules/@earendil-works/{pi-telemetry → pi-ai/node_modules/@earendil-works/pi-telemetry}/dist/memory.d.ts +0 -0
  1295. /package/node_modules/@earendil-works/{pi-telemetry → pi-ai/node_modules/@earendil-works/pi-telemetry}/dist/memory.d.ts.map +0 -0
  1296. /package/node_modules/@earendil-works/{pi-telemetry → pi-ai/node_modules/@earendil-works/pi-telemetry}/dist/memory.js +0 -0
  1297. /package/node_modules/@earendil-works/{pi-telemetry → pi-ai/node_modules/@earendil-works/pi-telemetry}/dist/memory.js.map +0 -0
  1298. /package/node_modules/@earendil-works/{pi-telemetry → pi-ai/node_modules/@earendil-works/pi-telemetry}/dist/noop.d.ts +0 -0
  1299. /package/node_modules/@earendil-works/{pi-telemetry → pi-ai/node_modules/@earendil-works/pi-telemetry}/dist/noop.d.ts.map +0 -0
  1300. /package/node_modules/@earendil-works/{pi-telemetry → pi-ai/node_modules/@earendil-works/pi-telemetry}/dist/noop.js +0 -0
  1301. /package/node_modules/@earendil-works/{pi-telemetry → pi-ai/node_modules/@earendil-works/pi-telemetry}/dist/noop.js.map +0 -0
  1302. /package/node_modules/@earendil-works/{pi-telemetry → pi-ai/node_modules/@earendil-works/pi-telemetry}/dist/testing/conformance.d.ts +0 -0
  1303. /package/node_modules/@earendil-works/{pi-telemetry → pi-ai/node_modules/@earendil-works/pi-telemetry}/dist/testing/conformance.d.ts.map +0 -0
  1304. /package/node_modules/@earendil-works/{pi-telemetry → pi-ai/node_modules/@earendil-works/pi-telemetry}/dist/testing/conformance.js +0 -0
  1305. /package/node_modules/@earendil-works/{pi-telemetry → pi-ai/node_modules/@earendil-works/pi-telemetry}/dist/testing/conformance.js.map +0 -0
  1306. /package/node_modules/@earendil-works/{pi-telemetry → pi-ai/node_modules/@earendil-works/pi-telemetry}/dist/testing/index.d.ts +0 -0
  1307. /package/node_modules/@earendil-works/{pi-telemetry → pi-ai/node_modules/@earendil-works/pi-telemetry}/dist/testing/index.d.ts.map +0 -0
  1308. /package/node_modules/@earendil-works/{pi-telemetry → pi-ai/node_modules/@earendil-works/pi-telemetry}/dist/testing/index.js +0 -0
  1309. /package/node_modules/@earendil-works/{pi-telemetry → pi-ai/node_modules/@earendil-works/pi-telemetry}/dist/testing/index.js.map +0 -0
  1310. /package/node_modules/@earendil-works/{pi-telemetry → pi-ai/node_modules/@earendil-works/pi-telemetry}/dist/testing/types.d.ts +0 -0
  1311. /package/node_modules/@earendil-works/{pi-telemetry → pi-ai/node_modules/@earendil-works/pi-telemetry}/dist/testing/types.d.ts.map +0 -0
  1312. /package/node_modules/@earendil-works/{pi-codemode/dist → pi-ai/node_modules/@earendil-works/pi-telemetry/dist/testing}/types.js +0 -0
  1313. /package/node_modules/@earendil-works/{pi-telemetry → pi-ai/node_modules/@earendil-works/pi-telemetry}/dist/testing/types.js.map +0 -0
  1314. /package/node_modules/@earendil-works/{pi-telemetry → pi-ai/node_modules/@earendil-works/pi-telemetry}/package.json +0 -0
  1315. /package/node_modules/@earendil-works/{pi-codemode → pi-coding-agent/node_modules/@earendil-works/pi-codemode}/README.md +0 -0
  1316. /package/node_modules/@earendil-works/{pi-codemode → pi-coding-agent/node_modules/@earendil-works/pi-codemode}/dist/cloudflare.d.ts +0 -0
  1317. /package/node_modules/@earendil-works/{pi-codemode → pi-coding-agent/node_modules/@earendil-works/pi-codemode}/dist/cloudflare.d.ts.map +0 -0
  1318. /package/node_modules/@earendil-works/{pi-codemode → pi-coding-agent/node_modules/@earendil-works/pi-codemode}/dist/cloudflare.js +0 -0
  1319. /package/node_modules/@earendil-works/{pi-codemode → pi-coding-agent/node_modules/@earendil-works/pi-codemode}/dist/cloudflare.js.map +0 -0
  1320. /package/node_modules/@earendil-works/{pi-codemode → pi-coding-agent/node_modules/@earendil-works/pi-codemode}/dist/declarations.d.ts +0 -0
  1321. /package/node_modules/@earendil-works/{pi-codemode → pi-coding-agent/node_modules/@earendil-works/pi-codemode}/dist/declarations.d.ts.map +0 -0
  1322. /package/node_modules/@earendil-works/{pi-codemode → pi-coding-agent/node_modules/@earendil-works/pi-codemode}/dist/declarations.js +0 -0
  1323. /package/node_modules/@earendil-works/{pi-codemode → pi-coding-agent/node_modules/@earendil-works/pi-codemode}/dist/declarations.js.map +0 -0
  1324. /package/node_modules/@earendil-works/{pi-codemode → pi-coding-agent/node_modules/@earendil-works/pi-codemode}/dist/identifier.d.ts +0 -0
  1325. /package/node_modules/@earendil-works/{pi-codemode → pi-coding-agent/node_modules/@earendil-works/pi-codemode}/dist/identifier.d.ts.map +0 -0
  1326. /package/node_modules/@earendil-works/{pi-codemode → pi-coding-agent/node_modules/@earendil-works/pi-codemode}/dist/identifier.js +0 -0
  1327. /package/node_modules/@earendil-works/{pi-codemode → pi-coding-agent/node_modules/@earendil-works/pi-codemode}/dist/identifier.js.map +0 -0
  1328. /package/node_modules/@earendil-works/{pi-codemode → pi-coding-agent/node_modules/@earendil-works/pi-codemode}/dist/index.d.ts +0 -0
  1329. /package/node_modules/@earendil-works/{pi-codemode → pi-coding-agent/node_modules/@earendil-works/pi-codemode}/dist/index.d.ts.map +0 -0
  1330. /package/node_modules/@earendil-works/{pi-codemode → pi-coding-agent/node_modules/@earendil-works/pi-codemode}/dist/index.js +0 -0
  1331. /package/node_modules/@earendil-works/{pi-codemode → pi-coding-agent/node_modules/@earendil-works/pi-codemode}/dist/index.js.map +0 -0
  1332. /package/node_modules/@earendil-works/{pi-codemode → pi-coding-agent/node_modules/@earendil-works/pi-codemode}/dist/portable.d.ts +0 -0
  1333. /package/node_modules/@earendil-works/{pi-codemode → pi-coding-agent/node_modules/@earendil-works/pi-codemode}/dist/portable.d.ts.map +0 -0
  1334. /package/node_modules/@earendil-works/{pi-codemode → pi-coding-agent/node_modules/@earendil-works/pi-codemode}/dist/portable.js +0 -0
  1335. /package/node_modules/@earendil-works/{pi-codemode → pi-coding-agent/node_modules/@earendil-works/pi-codemode}/dist/portable.js.map +0 -0
  1336. /package/node_modules/@earendil-works/{pi-codemode → pi-coding-agent/node_modules/@earendil-works/pi-codemode}/dist/runtime/execution.d.ts +0 -0
  1337. /package/node_modules/@earendil-works/{pi-codemode → pi-coding-agent/node_modules/@earendil-works/pi-codemode}/dist/runtime/execution.d.ts.map +0 -0
  1338. /package/node_modules/@earendil-works/{pi-codemode → pi-coding-agent/node_modules/@earendil-works/pi-codemode}/dist/runtime/execution.js +0 -0
  1339. /package/node_modules/@earendil-works/{pi-codemode → pi-coding-agent/node_modules/@earendil-works/pi-codemode}/dist/runtime/execution.js.map +0 -0
  1340. /package/node_modules/@earendil-works/{pi-codemode → pi-coding-agent/node_modules/@earendil-works/pi-codemode}/dist/runtime/host.d.ts +0 -0
  1341. /package/node_modules/@earendil-works/{pi-codemode → pi-coding-agent/node_modules/@earendil-works/pi-codemode}/dist/runtime/host.d.ts.map +0 -0
  1342. /package/node_modules/@earendil-works/{pi-codemode → pi-coding-agent/node_modules/@earendil-works/pi-codemode}/dist/runtime/host.js +0 -0
  1343. /package/node_modules/@earendil-works/{pi-codemode → pi-coding-agent/node_modules/@earendil-works/pi-codemode}/dist/runtime/host.js.map +0 -0
  1344. /package/node_modules/@earendil-works/{pi-codemode → pi-coding-agent/node_modules/@earendil-works/pi-codemode}/dist/runtime/inline.d.ts +0 -0
  1345. /package/node_modules/@earendil-works/{pi-codemode → pi-coding-agent/node_modules/@earendil-works/pi-codemode}/dist/runtime/inline.d.ts.map +0 -0
  1346. /package/node_modules/@earendil-works/{pi-codemode → pi-coding-agent/node_modules/@earendil-works/pi-codemode}/dist/runtime/inline.js +0 -0
  1347. /package/node_modules/@earendil-works/{pi-codemode → pi-coding-agent/node_modules/@earendil-works/pi-codemode}/dist/runtime/inline.js.map +0 -0
  1348. /package/node_modules/@earendil-works/{pi-codemode → pi-coding-agent/node_modules/@earendil-works/pi-codemode}/dist/runtime/prelude-source.d.ts +0 -0
  1349. /package/node_modules/@earendil-works/{pi-codemode → pi-coding-agent/node_modules/@earendil-works/pi-codemode}/dist/runtime/prelude-source.d.ts.map +0 -0
  1350. /package/node_modules/@earendil-works/{pi-codemode → pi-coding-agent/node_modules/@earendil-works/pi-codemode}/dist/runtime/prelude-source.js +0 -0
  1351. /package/node_modules/@earendil-works/{pi-codemode → pi-coding-agent/node_modules/@earendil-works/pi-codemode}/dist/runtime/prelude-source.js.map +0 -0
  1352. /package/node_modules/@earendil-works/{pi-codemode → pi-coding-agent/node_modules/@earendil-works/pi-codemode}/dist/runtime/protocol.d.ts +0 -0
  1353. /package/node_modules/@earendil-works/{pi-codemode → pi-coding-agent/node_modules/@earendil-works/pi-codemode}/dist/runtime/protocol.d.ts.map +0 -0
  1354. /package/node_modules/@earendil-works/{pi-codemode → pi-coding-agent/node_modules/@earendil-works/pi-codemode}/dist/runtime/protocol.js +0 -0
  1355. /package/node_modules/@earendil-works/{pi-codemode → pi-coding-agent/node_modules/@earendil-works/pi-codemode}/dist/runtime/protocol.js.map +0 -0
  1356. /package/node_modules/@earendil-works/{pi-codemode → pi-coding-agent/node_modules/@earendil-works/pi-codemode}/dist/runtime/remote.d.ts +0 -0
  1357. /package/node_modules/@earendil-works/{pi-codemode → pi-coding-agent/node_modules/@earendil-works/pi-codemode}/dist/runtime/remote.d.ts.map +0 -0
  1358. /package/node_modules/@earendil-works/{pi-codemode → pi-coding-agent/node_modules/@earendil-works/pi-codemode}/dist/runtime/remote.js +0 -0
  1359. /package/node_modules/@earendil-works/{pi-codemode → pi-coding-agent/node_modules/@earendil-works/pi-codemode}/dist/runtime/remote.js.map +0 -0
  1360. /package/node_modules/@earendil-works/{pi-codemode → pi-coding-agent/node_modules/@earendil-works/pi-codemode}/dist/runtime/vm.d.ts +0 -0
  1361. /package/node_modules/@earendil-works/{pi-codemode → pi-coding-agent/node_modules/@earendil-works/pi-codemode}/dist/runtime/vm.d.ts.map +0 -0
  1362. /package/node_modules/@earendil-works/{pi-codemode → pi-coding-agent/node_modules/@earendil-works/pi-codemode}/dist/runtime/vm.js +0 -0
  1363. /package/node_modules/@earendil-works/{pi-codemode → pi-coding-agent/node_modules/@earendil-works/pi-codemode}/dist/runtime/vm.js.map +0 -0
  1364. /package/node_modules/@earendil-works/{pi-codemode → pi-coding-agent/node_modules/@earendil-works/pi-codemode}/dist/runtime/worker.d.ts +0 -0
  1365. /package/node_modules/@earendil-works/{pi-codemode → pi-coding-agent/node_modules/@earendil-works/pi-codemode}/dist/runtime/worker.d.ts.map +0 -0
  1366. /package/node_modules/@earendil-works/{pi-codemode → pi-coding-agent/node_modules/@earendil-works/pi-codemode}/dist/runtime/worker.js +0 -0
  1367. /package/node_modules/@earendil-works/{pi-codemode → pi-coding-agent/node_modules/@earendil-works/pi-codemode}/dist/runtime/worker.js.map +0 -0
  1368. /package/node_modules/@earendil-works/{pi-codemode → pi-coding-agent/node_modules/@earendil-works/pi-codemode}/dist/source.d.ts +0 -0
  1369. /package/node_modules/@earendil-works/{pi-codemode → pi-coding-agent/node_modules/@earendil-works/pi-codemode}/dist/source.d.ts.map +0 -0
  1370. /package/node_modules/@earendil-works/{pi-codemode → pi-coding-agent/node_modules/@earendil-works/pi-codemode}/dist/source.js +0 -0
  1371. /package/node_modules/@earendil-works/{pi-codemode → pi-coding-agent/node_modules/@earendil-works/pi-codemode}/dist/source.js.map +0 -0
  1372. /package/node_modules/@earendil-works/{pi-codemode → pi-coding-agent/node_modules/@earendil-works/pi-codemode}/dist/types.d.ts +0 -0
  1373. /package/node_modules/@earendil-works/{pi-codemode → pi-coding-agent/node_modules/@earendil-works/pi-codemode}/dist/types.d.ts.map +0 -0
  1374. /package/node_modules/@earendil-works/{pi-telemetry/dist/testing → pi-coding-agent/node_modules/@earendil-works/pi-codemode/dist}/types.js +0 -0
  1375. /package/node_modules/@earendil-works/{pi-codemode → pi-coding-agent/node_modules/@earendil-works/pi-codemode}/dist/types.js.map +0 -0
  1376. /package/node_modules/@earendil-works/{pi-codemode → pi-coding-agent/node_modules/@earendil-works/pi-codemode}/dist/wasm.d.ts +0 -0
  1377. /package/node_modules/@earendil-works/{pi-codemode → pi-coding-agent/node_modules/@earendil-works/pi-codemode}/dist/wasm.d.ts.map +0 -0
  1378. /package/node_modules/@earendil-works/{pi-codemode → pi-coding-agent/node_modules/@earendil-works/pi-codemode}/dist/wasm.js +0 -0
  1379. /package/node_modules/@earendil-works/{pi-codemode → pi-coding-agent/node_modules/@earendil-works/pi-codemode}/dist/wasm.js.map +0 -0
  1380. /package/node_modules/@earendil-works/{pi-codemode → pi-coding-agent/node_modules/@earendil-works/pi-codemode}/package.json +0 -0
  1381. /package/node_modules/@earendil-works/{pi-mcp → pi-coding-agent/node_modules/@earendil-works/pi-mcp}/CHANGELOG.md +0 -0
  1382. /package/node_modules/@earendil-works/{pi-mcp → pi-coding-agent/node_modules/@earendil-works/pi-mcp}/LICENSES/modelcontextprotocol-typescript-sdk.txt +0 -0
  1383. /package/node_modules/@earendil-works/{pi-mcp → pi-coding-agent/node_modules/@earendil-works/pi-mcp}/README.md +0 -0
  1384. /package/node_modules/@earendil-works/{pi-mcp → pi-coding-agent/node_modules/@earendil-works/pi-mcp}/dist/auth-provider.d.ts +0 -0
  1385. /package/node_modules/@earendil-works/{pi-mcp → pi-coding-agent/node_modules/@earendil-works/pi-mcp}/dist/auth-provider.d.ts.map +0 -0
  1386. /package/node_modules/@earendil-works/{pi-mcp → pi-coding-agent/node_modules/@earendil-works/pi-mcp}/dist/auth-provider.js +0 -0
  1387. /package/node_modules/@earendil-works/{pi-mcp → pi-coding-agent/node_modules/@earendil-works/pi-mcp}/dist/auth-provider.js.map +0 -0
  1388. /package/node_modules/@earendil-works/{pi-mcp → pi-coding-agent/node_modules/@earendil-works/pi-mcp}/dist/client.d.ts +0 -0
  1389. /package/node_modules/@earendil-works/{pi-mcp → pi-coding-agent/node_modules/@earendil-works/pi-mcp}/dist/client.d.ts.map +0 -0
  1390. /package/node_modules/@earendil-works/{pi-mcp → pi-coding-agent/node_modules/@earendil-works/pi-mcp}/dist/client.js +0 -0
  1391. /package/node_modules/@earendil-works/{pi-mcp → pi-coding-agent/node_modules/@earendil-works/pi-mcp}/dist/client.js.map +0 -0
  1392. /package/node_modules/@earendil-works/{pi-mcp → pi-coding-agent/node_modules/@earendil-works/pi-mcp}/dist/index.d.ts +0 -0
  1393. /package/node_modules/@earendil-works/{pi-mcp → pi-coding-agent/node_modules/@earendil-works/pi-mcp}/dist/index.d.ts.map +0 -0
  1394. /package/node_modules/@earendil-works/{pi-mcp → pi-coding-agent/node_modules/@earendil-works/pi-mcp}/dist/index.js +0 -0
  1395. /package/node_modules/@earendil-works/{pi-mcp → pi-coding-agent/node_modules/@earendil-works/pi-mcp}/dist/index.js.map +0 -0
  1396. /package/node_modules/@earendil-works/{pi-mcp → pi-coding-agent/node_modules/@earendil-works/pi-mcp}/dist/oauth/callback.d.ts +0 -0
  1397. /package/node_modules/@earendil-works/{pi-mcp → pi-coding-agent/node_modules/@earendil-works/pi-mcp}/dist/oauth/callback.d.ts.map +0 -0
  1398. /package/node_modules/@earendil-works/{pi-mcp → pi-coding-agent/node_modules/@earendil-works/pi-mcp}/dist/oauth/callback.js +0 -0
  1399. /package/node_modules/@earendil-works/{pi-mcp → pi-coding-agent/node_modules/@earendil-works/pi-mcp}/dist/oauth/callback.js.map +0 -0
  1400. /package/node_modules/@earendil-works/{pi-mcp → pi-coding-agent/node_modules/@earendil-works/pi-mcp}/dist/oauth/discovery.d.ts +0 -0
  1401. /package/node_modules/@earendil-works/{pi-mcp → pi-coding-agent/node_modules/@earendil-works/pi-mcp}/dist/oauth/discovery.d.ts.map +0 -0
  1402. /package/node_modules/@earendil-works/{pi-mcp → pi-coding-agent/node_modules/@earendil-works/pi-mcp}/dist/oauth/discovery.js +0 -0
  1403. /package/node_modules/@earendil-works/{pi-mcp → pi-coding-agent/node_modules/@earendil-works/pi-mcp}/dist/oauth/discovery.js.map +0 -0
  1404. /package/node_modules/@earendil-works/{pi-mcp → pi-coding-agent/node_modules/@earendil-works/pi-mcp}/dist/oauth/errors.d.ts +0 -0
  1405. /package/node_modules/@earendil-works/{pi-mcp → pi-coding-agent/node_modules/@earendil-works/pi-mcp}/dist/oauth/errors.d.ts.map +0 -0
  1406. /package/node_modules/@earendil-works/{pi-mcp → pi-coding-agent/node_modules/@earendil-works/pi-mcp}/dist/oauth/errors.js +0 -0
  1407. /package/node_modules/@earendil-works/{pi-mcp → pi-coding-agent/node_modules/@earendil-works/pi-mcp}/dist/oauth/errors.js.map +0 -0
  1408. /package/node_modules/@earendil-works/{pi-mcp → pi-coding-agent/node_modules/@earendil-works/pi-mcp}/dist/oauth/flow.d.ts +0 -0
  1409. /package/node_modules/@earendil-works/{pi-mcp → pi-coding-agent/node_modules/@earendil-works/pi-mcp}/dist/oauth/flow.d.ts.map +0 -0
  1410. /package/node_modules/@earendil-works/{pi-mcp → pi-coding-agent/node_modules/@earendil-works/pi-mcp}/dist/oauth/flow.js +0 -0
  1411. /package/node_modules/@earendil-works/{pi-mcp → pi-coding-agent/node_modules/@earendil-works/pi-mcp}/dist/oauth/flow.js.map +0 -0
  1412. /package/node_modules/@earendil-works/{pi-mcp → pi-coding-agent/node_modules/@earendil-works/pi-mcp}/dist/oauth/index.d.ts +0 -0
  1413. /package/node_modules/@earendil-works/{pi-mcp → pi-coding-agent/node_modules/@earendil-works/pi-mcp}/dist/oauth/index.d.ts.map +0 -0
  1414. /package/node_modules/@earendil-works/{pi-mcp → pi-coding-agent/node_modules/@earendil-works/pi-mcp}/dist/oauth/index.js +0 -0
  1415. /package/node_modules/@earendil-works/{pi-mcp → pi-coding-agent/node_modules/@earendil-works/pi-mcp}/dist/oauth/index.js.map +0 -0
  1416. /package/node_modules/@earendil-works/{pi-mcp → pi-coding-agent/node_modules/@earendil-works/pi-mcp}/dist/oauth/provider.d.ts +0 -0
  1417. /package/node_modules/@earendil-works/{pi-mcp → pi-coding-agent/node_modules/@earendil-works/pi-mcp}/dist/oauth/provider.d.ts.map +0 -0
  1418. /package/node_modules/@earendil-works/{pi-mcp → pi-coding-agent/node_modules/@earendil-works/pi-mcp}/dist/oauth/provider.js +0 -0
  1419. /package/node_modules/@earendil-works/{pi-mcp → pi-coding-agent/node_modules/@earendil-works/pi-mcp}/dist/oauth/provider.js.map +0 -0
  1420. /package/node_modules/@earendil-works/{pi-mcp → pi-coding-agent/node_modules/@earendil-works/pi-mcp}/dist/oauth/types.d.ts +0 -0
  1421. /package/node_modules/@earendil-works/{pi-mcp → pi-coding-agent/node_modules/@earendil-works/pi-mcp}/dist/oauth/types.d.ts.map +0 -0
  1422. /package/node_modules/@earendil-works/{pi-mcp → pi-coding-agent/node_modules/@earendil-works/pi-mcp}/dist/oauth/types.js +0 -0
  1423. /package/node_modules/@earendil-works/{pi-mcp → pi-coding-agent/node_modules/@earendil-works/pi-mcp}/dist/oauth/types.js.map +0 -0
  1424. /package/node_modules/@earendil-works/{pi-mcp → pi-coding-agent/node_modules/@earendil-works/pi-mcp}/dist/protocol/content.d.ts +0 -0
  1425. /package/node_modules/@earendil-works/{pi-mcp → pi-coding-agent/node_modules/@earendil-works/pi-mcp}/dist/protocol/content.d.ts.map +0 -0
  1426. /package/node_modules/@earendil-works/{pi-mcp → pi-coding-agent/node_modules/@earendil-works/pi-mcp}/dist/protocol/content.js +0 -0
  1427. /package/node_modules/@earendil-works/{pi-mcp → pi-coding-agent/node_modules/@earendil-works/pi-mcp}/dist/protocol/content.js.map +0 -0
  1428. /package/node_modules/@earendil-works/{pi-mcp → pi-coding-agent/node_modules/@earendil-works/pi-mcp}/dist/protocol/jsonrpc.d.ts +0 -0
  1429. /package/node_modules/@earendil-works/{pi-mcp → pi-coding-agent/node_modules/@earendil-works/pi-mcp}/dist/protocol/jsonrpc.d.ts.map +0 -0
  1430. /package/node_modules/@earendil-works/{pi-mcp → pi-coding-agent/node_modules/@earendil-works/pi-mcp}/dist/protocol/jsonrpc.js +0 -0
  1431. /package/node_modules/@earendil-works/{pi-mcp → pi-coding-agent/node_modules/@earendil-works/pi-mcp}/dist/protocol/jsonrpc.js.map +0 -0
  1432. /package/node_modules/@earendil-works/{pi-mcp → pi-coding-agent/node_modules/@earendil-works/pi-mcp}/dist/protocol/types.d.ts +0 -0
  1433. /package/node_modules/@earendil-works/{pi-mcp → pi-coding-agent/node_modules/@earendil-works/pi-mcp}/dist/protocol/types.d.ts.map +0 -0
  1434. /package/node_modules/@earendil-works/{pi-mcp → pi-coding-agent/node_modules/@earendil-works/pi-mcp}/dist/protocol/types.js +0 -0
  1435. /package/node_modules/@earendil-works/{pi-mcp → pi-coding-agent/node_modules/@earendil-works/pi-mcp}/dist/protocol/types.js.map +0 -0
  1436. /package/node_modules/@earendil-works/{pi-mcp → pi-coding-agent/node_modules/@earendil-works/pi-mcp}/dist/testing/index.d.ts +0 -0
  1437. /package/node_modules/@earendil-works/{pi-mcp → pi-coding-agent/node_modules/@earendil-works/pi-mcp}/dist/testing/index.d.ts.map +0 -0
  1438. /package/node_modules/@earendil-works/{pi-mcp → pi-coding-agent/node_modules/@earendil-works/pi-mcp}/dist/testing/index.js +0 -0
  1439. /package/node_modules/@earendil-works/{pi-mcp → pi-coding-agent/node_modules/@earendil-works/pi-mcp}/dist/testing/index.js.map +0 -0
  1440. /package/node_modules/@earendil-works/{pi-mcp → pi-coding-agent/node_modules/@earendil-works/pi-mcp}/dist/transports/in-memory.d.ts +0 -0
  1441. /package/node_modules/@earendil-works/{pi-mcp → pi-coding-agent/node_modules/@earendil-works/pi-mcp}/dist/transports/in-memory.d.ts.map +0 -0
  1442. /package/node_modules/@earendil-works/{pi-mcp → pi-coding-agent/node_modules/@earendil-works/pi-mcp}/dist/transports/in-memory.js +0 -0
  1443. /package/node_modules/@earendil-works/{pi-mcp → pi-coding-agent/node_modules/@earendil-works/pi-mcp}/dist/transports/in-memory.js.map +0 -0
  1444. /package/node_modules/@earendil-works/{pi-mcp → pi-coding-agent/node_modules/@earendil-works/pi-mcp}/dist/transports/stdio.d.ts +0 -0
  1445. /package/node_modules/@earendil-works/{pi-mcp → pi-coding-agent/node_modules/@earendil-works/pi-mcp}/dist/transports/stdio.d.ts.map +0 -0
  1446. /package/node_modules/@earendil-works/{pi-mcp → pi-coding-agent/node_modules/@earendil-works/pi-mcp}/dist/transports/stdio.js +0 -0
  1447. /package/node_modules/@earendil-works/{pi-mcp → pi-coding-agent/node_modules/@earendil-works/pi-mcp}/dist/transports/stdio.js.map +0 -0
  1448. /package/node_modules/@earendil-works/{pi-mcp → pi-coding-agent/node_modules/@earendil-works/pi-mcp}/dist/transports/streamable-http.d.ts +0 -0
  1449. /package/node_modules/@earendil-works/{pi-mcp → pi-coding-agent/node_modules/@earendil-works/pi-mcp}/dist/transports/streamable-http.d.ts.map +0 -0
  1450. /package/node_modules/@earendil-works/{pi-mcp → pi-coding-agent/node_modules/@earendil-works/pi-mcp}/dist/transports/streamable-http.js +0 -0
  1451. /package/node_modules/@earendil-works/{pi-mcp → pi-coding-agent/node_modules/@earendil-works/pi-mcp}/dist/transports/streamable-http.js.map +0 -0
  1452. /package/node_modules/@earendil-works/{pi-mcp → pi-coding-agent/node_modules/@earendil-works/pi-mcp}/dist/transports/transport.d.ts +0 -0
  1453. /package/node_modules/@earendil-works/{pi-mcp → pi-coding-agent/node_modules/@earendil-works/pi-mcp}/dist/transports/transport.d.ts.map +0 -0
  1454. /package/node_modules/@earendil-works/{pi-mcp → pi-coding-agent/node_modules/@earendil-works/pi-mcp}/dist/transports/transport.js +0 -0
  1455. /package/node_modules/@earendil-works/{pi-mcp → pi-coding-agent/node_modules/@earendil-works/pi-mcp}/dist/transports/transport.js.map +0 -0
  1456. /package/node_modules/@earendil-works/{pi-mcp → pi-coding-agent/node_modules/@earendil-works/pi-mcp}/package.json +0 -0
  1457. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/README.md +0 -0
  1458. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/alt-screen-search.d.ts +0 -0
  1459. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/alt-screen-search.d.ts.map +0 -0
  1460. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/alt-screen-search.js +0 -0
  1461. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/alt-screen-search.js.map +0 -0
  1462. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/autocomplete.d.ts +0 -0
  1463. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/autocomplete.d.ts.map +0 -0
  1464. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/autocomplete.js +0 -0
  1465. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/autocomplete.js.map +0 -0
  1466. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/colors.d.ts +0 -0
  1467. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/colors.d.ts.map +0 -0
  1468. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/colors.js +0 -0
  1469. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/colors.js.map +0 -0
  1470. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/components/alt-screen-flash.d.ts +0 -0
  1471. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/components/alt-screen-flash.d.ts.map +0 -0
  1472. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/components/alt-screen-flash.js +0 -0
  1473. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/components/alt-screen-flash.js.map +0 -0
  1474. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/components/box.d.ts +0 -0
  1475. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/components/box.d.ts.map +0 -0
  1476. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/components/box.js +0 -0
  1477. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/components/box.js.map +0 -0
  1478. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/components/cancellable-loader.d.ts +0 -0
  1479. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/components/cancellable-loader.d.ts.map +0 -0
  1480. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/components/cancellable-loader.js +0 -0
  1481. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/components/cancellable-loader.js.map +0 -0
  1482. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/components/editor.d.ts +0 -0
  1483. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/components/editor.d.ts.map +0 -0
  1484. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/components/editor.js +0 -0
  1485. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/components/editor.js.map +0 -0
  1486. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/components/h-stack.d.ts +0 -0
  1487. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/components/h-stack.d.ts.map +0 -0
  1488. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/components/h-stack.js +0 -0
  1489. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/components/h-stack.js.map +0 -0
  1490. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/components/image.d.ts +0 -0
  1491. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/components/image.d.ts.map +0 -0
  1492. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/components/image.js +0 -0
  1493. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/components/image.js.map +0 -0
  1494. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/components/input.d.ts +0 -0
  1495. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/components/input.d.ts.map +0 -0
  1496. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/components/input.js +0 -0
  1497. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/components/input.js.map +0 -0
  1498. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/components/loader.d.ts +0 -0
  1499. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/components/loader.d.ts.map +0 -0
  1500. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/components/loader.js +0 -0
  1501. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/components/loader.js.map +0 -0
  1502. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/components/markdown.d.ts +0 -0
  1503. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/components/markdown.d.ts.map +0 -0
  1504. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/components/markdown.js +0 -0
  1505. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/components/markdown.js.map +0 -0
  1506. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/components/mouse-region.d.ts +0 -0
  1507. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/components/mouse-region.d.ts.map +0 -0
  1508. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/components/mouse-region.js +0 -0
  1509. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/components/mouse-region.js.map +0 -0
  1510. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/components/scroll-view.d.ts +0 -0
  1511. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/components/scroll-view.d.ts.map +0 -0
  1512. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/components/scroll-view.js +0 -0
  1513. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/components/scroll-view.js.map +0 -0
  1514. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/components/select-list.d.ts +0 -0
  1515. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/components/select-list.d.ts.map +0 -0
  1516. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/components/select-list.js +0 -0
  1517. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/components/select-list.js.map +0 -0
  1518. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/components/settings-list.d.ts +0 -0
  1519. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/components/settings-list.d.ts.map +0 -0
  1520. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/components/settings-list.js +0 -0
  1521. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/components/settings-list.js.map +0 -0
  1522. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/components/spacer.d.ts +0 -0
  1523. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/components/spacer.d.ts.map +0 -0
  1524. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/components/spacer.js +0 -0
  1525. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/components/spacer.js.map +0 -0
  1526. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/components/stack.d.ts +0 -0
  1527. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/components/stack.d.ts.map +0 -0
  1528. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/components/stack.js +0 -0
  1529. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/components/stack.js.map +0 -0
  1530. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/components/text.d.ts +0 -0
  1531. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/components/text.d.ts.map +0 -0
  1532. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/components/text.js +0 -0
  1533. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/components/text.js.map +0 -0
  1534. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/components/truncated-text.d.ts +0 -0
  1535. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/components/truncated-text.d.ts.map +0 -0
  1536. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/components/truncated-text.js +0 -0
  1537. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/components/truncated-text.js.map +0 -0
  1538. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/components/v-stack.d.ts +0 -0
  1539. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/components/v-stack.d.ts.map +0 -0
  1540. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/components/v-stack.js +0 -0
  1541. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/components/v-stack.js.map +0 -0
  1542. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/editor-component.d.ts +0 -0
  1543. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/editor-component.d.ts.map +0 -0
  1544. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/editor-component.js +0 -0
  1545. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/editor-component.js.map +0 -0
  1546. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/fuzzy.d.ts +0 -0
  1547. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/fuzzy.d.ts.map +0 -0
  1548. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/fuzzy.js +0 -0
  1549. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/fuzzy.js.map +0 -0
  1550. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/index.d.ts +0 -0
  1551. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/index.d.ts.map +0 -0
  1552. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/index.js +0 -0
  1553. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/index.js.map +0 -0
  1554. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/keybindings.d.ts +0 -0
  1555. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/keybindings.d.ts.map +0 -0
  1556. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/keybindings.js +0 -0
  1557. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/keybindings.js.map +0 -0
  1558. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/keys.d.ts +0 -0
  1559. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/keys.d.ts.map +0 -0
  1560. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/keys.js +0 -0
  1561. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/keys.js.map +0 -0
  1562. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/kill-ring.d.ts +0 -0
  1563. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/kill-ring.d.ts.map +0 -0
  1564. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/kill-ring.js +0 -0
  1565. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/kill-ring.js.map +0 -0
  1566. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/latex.d.ts +0 -0
  1567. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/latex.d.ts.map +0 -0
  1568. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/latex.js +0 -0
  1569. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/latex.js.map +0 -0
  1570. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/layout-node.d.ts +0 -0
  1571. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/layout-node.d.ts.map +0 -0
  1572. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/layout-node.js +0 -0
  1573. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/layout-node.js.map +0 -0
  1574. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/layout.d.ts +0 -0
  1575. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/layout.d.ts.map +0 -0
  1576. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/layout.js +0 -0
  1577. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/layout.js.map +0 -0
  1578. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/native-modifiers.d.ts +0 -0
  1579. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/native-modifiers.d.ts.map +0 -0
  1580. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/native-modifiers.js +0 -0
  1581. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/native-modifiers.js.map +0 -0
  1582. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/native-module-path.d.ts +0 -0
  1583. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/native-module-path.d.ts.map +0 -0
  1584. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/native-module-path.js +0 -0
  1585. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/native-module-path.js.map +0 -0
  1586. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/native-platform.d.ts +0 -0
  1587. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/native-platform.d.ts.map +0 -0
  1588. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/native-platform.js +0 -0
  1589. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/native-platform.js.map +0 -0
  1590. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/oklab.d.ts +0 -0
  1591. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/oklab.d.ts.map +0 -0
  1592. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/oklab.js +0 -0
  1593. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/oklab.js.map +0 -0
  1594. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/program-status.d.ts +0 -0
  1595. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/program-status.d.ts.map +0 -0
  1596. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/program-status.js +0 -0
  1597. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/program-status.js.map +0 -0
  1598. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/stdin-buffer.d.ts +0 -0
  1599. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/stdin-buffer.d.ts.map +0 -0
  1600. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/stdin-buffer.js +0 -0
  1601. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/stdin-buffer.js.map +0 -0
  1602. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/terminal-colors.d.ts +0 -0
  1603. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/terminal-colors.d.ts.map +0 -0
  1604. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/terminal-colors.js +0 -0
  1605. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/terminal-colors.js.map +0 -0
  1606. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/terminal-image.d.ts +0 -0
  1607. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/terminal-image.d.ts.map +0 -0
  1608. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/terminal-image.js +0 -0
  1609. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/terminal-image.js.map +0 -0
  1610. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/terminal.d.ts +0 -0
  1611. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/terminal.d.ts.map +0 -0
  1612. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/terminal.js +0 -0
  1613. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/terminal.js.map +0 -0
  1614. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/tui-alt-screen.d.ts +0 -0
  1615. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/tui-alt-screen.d.ts.map +0 -0
  1616. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/tui-alt-screen.js +0 -0
  1617. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/tui-alt-screen.js.map +0 -0
  1618. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/tui-main-screen.d.ts +0 -0
  1619. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/tui-main-screen.d.ts.map +0 -0
  1620. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/tui-main-screen.js +0 -0
  1621. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/tui-main-screen.js.map +0 -0
  1622. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/tui.d.ts +0 -0
  1623. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/tui.d.ts.map +0 -0
  1624. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/tui.js +0 -0
  1625. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/tui.js.map +0 -0
  1626. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/undo-stack.d.ts +0 -0
  1627. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/undo-stack.d.ts.map +0 -0
  1628. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/undo-stack.js +0 -0
  1629. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/undo-stack.js.map +0 -0
  1630. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/utils.d.ts +0 -0
  1631. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/utils.d.ts.map +0 -0
  1632. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/utils.js +0 -0
  1633. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/utils.js.map +0 -0
  1634. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/wheel-scroll.d.ts +0 -0
  1635. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/wheel-scroll.d.ts.map +0 -0
  1636. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/wheel-scroll.js +0 -0
  1637. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/wheel-scroll.js.map +0 -0
  1638. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/word-navigation.d.ts +0 -0
  1639. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/word-navigation.d.ts.map +0 -0
  1640. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/word-navigation.js +0 -0
  1641. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/dist/word-navigation.js.map +0 -0
  1642. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/native/clipboard.h +0 -0
  1643. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/native/darwin/README.md +0 -0
  1644. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/native/darwin/build.sh +0 -0
  1645. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/native/darwin/prebuilds/darwin-arm64/darwin-platform.node +0 -0
  1646. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/native/darwin/prebuilds/darwin-x64/darwin-platform.node +0 -0
  1647. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/native/darwin/src/darwin-platform.m +0 -0
  1648. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/native/linux/README.md +0 -0
  1649. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/native/linux/build.sh +0 -0
  1650. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/native/linux/prebuilds/linux-arm64/linux-platform-x11.node +0 -0
  1651. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/native/linux/prebuilds/linux-x64/linux-platform-x11.node +0 -0
  1652. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/native/linux/src/clipboard-worker.h +0 -0
  1653. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/native/linux/src/linux-platform-x11.c +0 -0
  1654. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/native/napi.h +0 -0
  1655. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/native/win32/README.md +0 -0
  1656. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/native/win32/build.mjs +0 -0
  1657. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/native/win32/prebuilds/win32-arm64/win32-platform.node +0 -0
  1658. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/native/win32/prebuilds/win32-x64/win32-platform.node +0 -0
  1659. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/native/win32/src/win32-platform.c +0 -0
  1660. /package/node_modules/@earendil-works/{pi-tui → pi-coding-agent/node_modules/@earendil-works/pi-tui}/package.json +0 -0
  1661. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/LICENSE +0 -0
  1662. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/README.md +0 -0
  1663. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/docs/docs/api/Agent.md +0 -0
  1664. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/docs/docs/api/BalancedPool.md +0 -0
  1665. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/docs/docs/api/CacheStorage.md +0 -0
  1666. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/docs/docs/api/CacheStore.md +0 -0
  1667. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/docs/docs/api/Client.md +0 -0
  1668. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/docs/docs/api/ClientStats.md +0 -0
  1669. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/docs/docs/api/Connector.md +0 -0
  1670. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/docs/docs/api/ContentType.md +0 -0
  1671. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/docs/docs/api/Cookies.md +0 -0
  1672. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/docs/docs/api/Debug.md +0 -0
  1673. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/docs/docs/api/DiagnosticsChannel.md +0 -0
  1674. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/docs/docs/api/Dispatcher.md +0 -0
  1675. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/docs/docs/api/EnvHttpProxyAgent.md +0 -0
  1676. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/docs/docs/api/Errors.md +0 -0
  1677. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/docs/docs/api/EventSource.md +0 -0
  1678. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/docs/docs/api/Fetch.md +0 -0
  1679. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/docs/docs/api/GlobalInstallation.md +0 -0
  1680. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/docs/docs/api/H2CClient.md +0 -0
  1681. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/docs/docs/api/Interceptors.md +0 -0
  1682. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/docs/docs/api/MockAgent.md +0 -0
  1683. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/docs/docs/api/MockCallHistory.md +0 -0
  1684. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/docs/docs/api/MockCallHistoryLog.md +0 -0
  1685. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/docs/docs/api/MockClient.md +0 -0
  1686. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/docs/docs/api/MockErrors.md +0 -0
  1687. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/docs/docs/api/MockPool.md +0 -0
  1688. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/docs/docs/api/Pool.md +0 -0
  1689. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/docs/docs/api/PoolStats.md +0 -0
  1690. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/docs/docs/api/ProxyAgent.md +0 -0
  1691. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/docs/docs/api/RedirectHandler.md +0 -0
  1692. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/docs/docs/api/RetryAgent.md +0 -0
  1693. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/docs/docs/api/RetryHandler.md +0 -0
  1694. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/docs/docs/api/RoundRobinPool.md +0 -0
  1695. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/docs/docs/api/SnapshotAgent.md +0 -0
  1696. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/docs/docs/api/Socks5ProxyAgent.md +0 -0
  1697. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/docs/docs/api/Util.md +0 -0
  1698. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/docs/docs/api/WebSocket.md +0 -0
  1699. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/docs/docs/api/api-lifecycle.md +0 -0
  1700. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/docs/docs/best-practices/client-certificate.md +0 -0
  1701. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/docs/docs/best-practices/crawling.md +0 -0
  1702. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/docs/docs/best-practices/migrating-from-v7-to-v8.md +0 -0
  1703. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/docs/docs/best-practices/mocking-request.md +0 -0
  1704. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/docs/docs/best-practices/proxy.md +0 -0
  1705. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/docs/docs/best-practices/undici-vs-builtin-fetch.md +0 -0
  1706. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/docs/docs/best-practices/writing-tests.md +0 -0
  1707. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/docs/docs/getting-started.md +0 -0
  1708. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/docs/docs/index.md +0 -0
  1709. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/docs/docs/site.json +0 -0
  1710. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/docs/docs/type-map.json +0 -0
  1711. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/index-fetch.js +0 -0
  1712. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/index.d.ts +0 -0
  1713. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/index.js +0 -0
  1714. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/api/abort-signal.js +0 -0
  1715. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/api/api-connect.js +0 -0
  1716. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/api/api-pipeline.js +0 -0
  1717. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/api/api-request.js +0 -0
  1718. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/api/api-stream.js +0 -0
  1719. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/api/api-upgrade.js +0 -0
  1720. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/api/index.js +0 -0
  1721. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/api/readable.js +0 -0
  1722. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/cache/memory-cache-store.js +0 -0
  1723. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/cache/sqlite-cache-store.js +0 -0
  1724. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/core/connect.js +0 -0
  1725. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/core/constants.js +0 -0
  1726. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/core/diagnostics.js +0 -0
  1727. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/core/errors.js +0 -0
  1728. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/core/request.js +0 -0
  1729. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/core/socks5-client.js +0 -0
  1730. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/core/socks5-utils.js +0 -0
  1731. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/core/symbols.js +0 -0
  1732. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/core/tree.js +0 -0
  1733. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/core/util.js +0 -0
  1734. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/dispatcher/agent.js +0 -0
  1735. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/dispatcher/balanced-pool.js +0 -0
  1736. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/dispatcher/client-h1.js +0 -0
  1737. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/dispatcher/client-h2.js +0 -0
  1738. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/dispatcher/client.js +0 -0
  1739. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/dispatcher/dispatcher-base.js +0 -0
  1740. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/dispatcher/dispatcher.js +0 -0
  1741. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/dispatcher/dispatcher1-wrapper.js +0 -0
  1742. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/dispatcher/env-http-proxy-agent.js +0 -0
  1743. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/dispatcher/fixed-queue.js +0 -0
  1744. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/dispatcher/h2c-client.js +0 -0
  1745. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/dispatcher/pool-base.js +0 -0
  1746. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/dispatcher/pool.js +0 -0
  1747. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/dispatcher/proxy-agent.js +0 -0
  1748. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/dispatcher/retry-agent.js +0 -0
  1749. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/dispatcher/round-robin-pool.js +0 -0
  1750. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/dispatcher/socks5-proxy-agent.js +0 -0
  1751. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/encoding/index.js +0 -0
  1752. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/global.js +0 -0
  1753. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/handler/cache-handler.js +0 -0
  1754. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/handler/cache-revalidation-handler.js +0 -0
  1755. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/handler/decorator-handler.js +0 -0
  1756. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/handler/deduplication-handler.js +0 -0
  1757. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/handler/redirect-handler.js +0 -0
  1758. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/handler/retry-handler.js +0 -0
  1759. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/interceptor/cache.js +0 -0
  1760. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/interceptor/decompress.js +0 -0
  1761. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/interceptor/deduplicate.js +0 -0
  1762. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/interceptor/dns.js +0 -0
  1763. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/interceptor/dump.js +0 -0
  1764. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/interceptor/redirect.js +0 -0
  1765. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/interceptor/response-error.js +0 -0
  1766. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/interceptor/retry.js +0 -0
  1767. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/llhttp/constants.d.ts +0 -0
  1768. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/llhttp/constants.js +0 -0
  1769. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/llhttp/llhttp-wasm.js +0 -0
  1770. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/llhttp/llhttp_simd-wasm.js +0 -0
  1771. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/llhttp/utils.d.ts +0 -0
  1772. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/llhttp/utils.js +0 -0
  1773. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/mock/mock-agent.js +0 -0
  1774. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/mock/mock-call-history.js +0 -0
  1775. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/mock/mock-client.js +0 -0
  1776. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/mock/mock-errors.js +0 -0
  1777. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/mock/mock-interceptor.js +0 -0
  1778. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/mock/mock-pool.js +0 -0
  1779. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/mock/mock-symbols.js +0 -0
  1780. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/mock/mock-utils.js +0 -0
  1781. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/mock/pending-interceptors-formatter.js +0 -0
  1782. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/mock/snapshot-agent.js +0 -0
  1783. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/mock/snapshot-recorder.js +0 -0
  1784. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/mock/snapshot-utils.js +0 -0
  1785. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/util/cache.js +0 -0
  1786. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/util/date.js +0 -0
  1787. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/util/runtime-features.js +0 -0
  1788. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/util/stats.js +0 -0
  1789. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/util/timers.js +0 -0
  1790. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/web/cache/cache.js +0 -0
  1791. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/web/cache/cachestorage.js +0 -0
  1792. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/web/cache/util.js +0 -0
  1793. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/web/cookies/constants.js +0 -0
  1794. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/web/cookies/index.js +0 -0
  1795. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/web/cookies/parse.js +0 -0
  1796. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/web/cookies/util.js +0 -0
  1797. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/web/eventsource/eventsource-stream.js +0 -0
  1798. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/web/eventsource/eventsource.js +0 -0
  1799. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/web/eventsource/util.js +0 -0
  1800. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/web/fetch/LICENSE +0 -0
  1801. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/web/fetch/body.js +0 -0
  1802. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/web/fetch/constants.js +0 -0
  1803. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/web/fetch/data-url.js +0 -0
  1804. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/web/fetch/formdata-parser.js +0 -0
  1805. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/web/fetch/formdata.js +0 -0
  1806. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/web/fetch/global.js +0 -0
  1807. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/web/fetch/headers.js +0 -0
  1808. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/web/fetch/index.js +0 -0
  1809. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/web/fetch/request.js +0 -0
  1810. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/web/fetch/response.js +0 -0
  1811. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/web/fetch/util.js +0 -0
  1812. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/web/infra/index.js +0 -0
  1813. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/web/subresource-integrity/Readme.md +0 -0
  1814. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/web/subresource-integrity/subresource-integrity.js +0 -0
  1815. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/web/webidl/index.js +0 -0
  1816. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/web/websocket/connection.js +0 -0
  1817. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/web/websocket/constants.js +0 -0
  1818. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/web/websocket/events.js +0 -0
  1819. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/web/websocket/frame.js +0 -0
  1820. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/web/websocket/permessage-deflate.js +0 -0
  1821. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/web/websocket/receiver.js +0 -0
  1822. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/web/websocket/sender.js +0 -0
  1823. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/web/websocket/stream/websocketerror.js +0 -0
  1824. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/web/websocket/stream/websocketstream.js +0 -0
  1825. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/web/websocket/util.js +0 -0
  1826. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/lib/web/websocket/websocket.js +0 -0
  1827. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/package.json +0 -0
  1828. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/scripts/strip-comments.js +0 -0
  1829. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/types/README.md +0 -0
  1830. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/types/agent.d.ts +0 -0
  1831. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/types/api.d.ts +0 -0
  1832. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/types/balanced-pool.d.ts +0 -0
  1833. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/types/cache-interceptor.d.ts +0 -0
  1834. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/types/cache.d.ts +0 -0
  1835. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/types/client-stats.d.ts +0 -0
  1836. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/types/client.d.ts +0 -0
  1837. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/types/connector.d.ts +0 -0
  1838. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/types/content-type.d.ts +0 -0
  1839. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/types/cookies.d.ts +0 -0
  1840. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/types/diagnostics-channel.d.ts +0 -0
  1841. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/types/dispatcher.d.ts +0 -0
  1842. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/types/dispatcher1-wrapper.d.ts +0 -0
  1843. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/types/env-http-proxy-agent.d.ts +0 -0
  1844. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/types/errors.d.ts +0 -0
  1845. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/types/eventsource.d.ts +0 -0
  1846. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/types/fetch.d.ts +0 -0
  1847. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/types/formdata.d.ts +0 -0
  1848. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/types/global-dispatcher.d.ts +0 -0
  1849. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/types/global-origin.d.ts +0 -0
  1850. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/types/h2c-client.d.ts +0 -0
  1851. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/types/handlers.d.ts +0 -0
  1852. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/types/header.d.ts +0 -0
  1853. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/types/index.d.ts +0 -0
  1854. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/types/interceptors.d.ts +0 -0
  1855. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/types/mock-agent.d.ts +0 -0
  1856. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/types/mock-call-history.d.ts +0 -0
  1857. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/types/mock-client.d.ts +0 -0
  1858. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/types/mock-errors.d.ts +0 -0
  1859. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/types/mock-interceptor.d.ts +0 -0
  1860. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/types/mock-pool.d.ts +0 -0
  1861. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/types/patch.d.ts +0 -0
  1862. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/types/pool-stats.d.ts +0 -0
  1863. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/types/pool.d.ts +0 -0
  1864. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/types/proxy-agent.d.ts +0 -0
  1865. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/types/readable.d.ts +0 -0
  1866. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/types/retry-agent.d.ts +0 -0
  1867. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/types/retry-handler.d.ts +0 -0
  1868. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/types/round-robin-pool.d.ts +0 -0
  1869. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/types/snapshot-agent.d.ts +0 -0
  1870. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/types/socks5-proxy-agent.d.ts +0 -0
  1871. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/types/util.d.ts +0 -0
  1872. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/types/utility.d.ts +0 -0
  1873. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/types/webidl.d.ts +0 -0
  1874. /package/node_modules/{undici → @earendil-works/pi-coding-agent/node_modules/undici}/types/websocket.d.ts +0 -0
@@ -0,0 +1,293 @@
1
+ /**
2
+ * Drives one QuickJS VM through one script, independent of the transport that connects it to the
3
+ * host. The worker thread, the in-thread launcher, and the remote server all run the VM through
4
+ * this module, so the bridge between prelude and host exists once.
5
+ *
6
+ * Contract with the caller:
7
+ * - `post` receives every message for the host, synchronously from inside VM callbacks. The
8
+ * caller must not re-enter the VM from `post` (no `deliver`, no `dispose`); a worker posts to
9
+ * another thread, and the in-thread launcher defers delivery to a microtask.
10
+ * - `deliver` hands the VM a tool result and runs the script until it waits again. It must only be
11
+ * called while the VM is idle, which holds for any caller that never re-enters from `post`.
12
+ * - `shouldInterrupt` is polled by QuickJS while the script runs, and here between batches of
13
+ * promise jobs. Returning true throws an uncatchable error in the script; the VM then reports
14
+ * `crash` or a failed `done`. The job batches matter for a script such as `while (true) await
15
+ * null`: every iteration is a separate job that executes only a few opcodes, so QuickJS's own
16
+ * polling, which counts opcodes, would let it run for a long time between polls.
17
+ * - The VM never decides on its own when it is finished: after `done` or `crash` it stays alive
18
+ * until the caller disposes it (or terminates the worker that hosts it).
19
+ *
20
+ * Failures after the VM exists are reported as a `crash` message; `startVm` only rejects when the
21
+ * VM cannot be created at all.
22
+ *
23
+ * Deterministic mode (`data.deterministic`, used by `CodemodeSandboxBase.start()`): a script must make the same
24
+ * calls with the same arguments every time it runs with the same results, so a host can replay it after a restart.
25
+ * The VM is otherwise deterministic, because it only runs when the host delivers something and has no timers.
26
+ * What remains is fixed here:
27
+ * - Time: every WASI clock reads virtual time, `startedAt` and then the `now` of the result being processed, never going backwards.
28
+ * While the context is created, the realtime clock reads a value derived from the seed instead, because QuickJS
29
+ * seeds `Math.random()` from the first clock read, and which read comes first is the engine's business.
30
+ * - Randomness: `random_get` draws from a PRNG over the seed.
31
+ * - Timezone: UTC, not the host's.
32
+ * - Garbage collection: `WeakRef` and `FinalizationRegistry` are not available; collection timing is not.
33
+ * - Delivery order: results carry a `seq` and are applied strictly in that order, buffering early ones, because a
34
+ * transport (RPC replies) may deliver them in another order than the host sent them.
35
+ * The VM reports `started` with its fingerprint before the script runs, and `idle` with the number of calls issued
36
+ * after each drain, so the host can check a replay step by step.
37
+ */
38
+ import { Intrinsics, JSException, MAX_STACK_SIZE, QuickJS } from "quickjs-wasi";
39
+ import { PRELUDE_SOURCE } from "./prelude-source.js";
40
+ /**
41
+ * Bumped whenever this module or the prelude changes what a deterministic script observes, beyond what the
42
+ * fingerprint's other parts (engine versions, prelude hash, limits) already capture.
43
+ */
44
+ const DETERMINISTIC_VERSION = 1;
45
+ /** FNV-1a over UTF-16 code units, as 8 hex digits: identifies the prelude in the fingerprint. */
46
+ function fnv1a(text) {
47
+ let hash = 0x811c9dc5;
48
+ for (let index = 0; index < text.length; index++) {
49
+ hash ^= text.charCodeAt(index);
50
+ hash = Math.imul(hash, 0x01000193);
51
+ }
52
+ return (hash >>> 0).toString(16).padStart(8, "0");
53
+ }
54
+ const PRELUDE_HASH = fnv1a(PRELUDE_SOURCE);
55
+ /** mulberry32: a small, fast PRNG; one 32-bit draw per call. */
56
+ function prng(seed) {
57
+ let state = seed >>> 0;
58
+ return () => {
59
+ state = (state + 0x6d2b79f5) >>> 0;
60
+ let value = Math.imul(state ^ (state >>> 15), 1 | state);
61
+ value = (value + Math.imul(value ^ (value >>> 7), 61 | value)) ^ value;
62
+ return (value ^ (value >>> 14)) >>> 0;
63
+ };
64
+ }
65
+ /** WASI clock and random functions for deterministic mode, on top of {@link discardOutput}. */
66
+ function deterministicWasi(clock) {
67
+ const random = prng(clock.seed ^ 0x9e3779b9);
68
+ return (memory) => ({
69
+ ...discardOutput(memory),
70
+ clock_time_get(clockId, _precision, resultPtr) {
71
+ let nanoseconds;
72
+ // QuickJS seeds Math.random() from this reading in microseconds and turns 0 into 1, so seed s reads s + 1.
73
+ if (clock.creating)
74
+ nanoseconds = clockId === 0 ? BigInt(clock.seed + 1) * 1000n : 0n;
75
+ else if (clockId === 0)
76
+ nanoseconds = BigInt(Math.round(clock.now)) * 1000000n;
77
+ else
78
+ nanoseconds = BigInt(Math.round(clock.now - clock.startedAt)) * 1000000n;
79
+ new DataView(memory.buffer).setBigUint64(resultPtr, nanoseconds, true);
80
+ return 0;
81
+ },
82
+ random_get(bufPtr, bufLen) {
83
+ const bytes = new Uint8Array(memory.buffer, bufPtr, bufLen);
84
+ for (let index = 0; index < bufLen; index += 4) {
85
+ const value = random();
86
+ for (let byte = 0; byte < 4 && index + byte < bufLen; byte++)
87
+ bytes[index + byte] = value >>> (byte * 8);
88
+ }
89
+ return 0;
90
+ },
91
+ });
92
+ }
93
+ /**
94
+ * QuickJS writes engine diagnostics to fd 1 and 2, which the default shim
95
+ * forwards to the host's stdout and stderr. That output belongs to the host
96
+ * application (for example a TUI), so it is discarded. Reporting every byte as
97
+ * written keeps libc from retrying.
98
+ */
99
+ function discardOutput(memory) {
100
+ return {
101
+ fd_write(_fd, iovsPtr, iovsLen, nwrittenPtr) {
102
+ const view = new DataView(memory.buffer);
103
+ let written = 0;
104
+ for (let i = 0; i < iovsLen; i++) {
105
+ written += view.getUint32(iovsPtr + i * 8 + 4, true);
106
+ }
107
+ view.setUint32(nwrittenPtr, written, true);
108
+ return 0;
109
+ },
110
+ };
111
+ }
112
+ function describeException(error) {
113
+ const head = error.message ? `${error.name}: ${error.message}` : error.name;
114
+ const stack = error.stack?.trimEnd();
115
+ return JSON.stringify({ name: error.name, message: error.message, stack: stack ? `${head}\n${stack}` : head });
116
+ }
117
+ /** Promise jobs run between two `shouldInterrupt` polls while draining the job queue. */
118
+ const JOBS_PER_POLL = 50;
119
+ function crashMessage(error) {
120
+ return { type: "crash", message: error instanceof Error ? `${error.name}: ${error.message}` : String(error) };
121
+ }
122
+ export async function startVm(options) {
123
+ const { data, post } = options;
124
+ const maxStackSize = options.maxStackSize ?? MAX_STACK_SIZE;
125
+ const deterministic = data.deterministic;
126
+ const clock = deterministic && {
127
+ creating: true,
128
+ startedAt: deterministic.startedAt,
129
+ now: deterministic.startedAt,
130
+ seed: deterministic.seed >>> 0,
131
+ };
132
+ const vm = await QuickJS.create({
133
+ wasm: options.wasm,
134
+ memoryLimit: data.memoryLimitBytes,
135
+ // Without a guard, deep recursion overflows the wasm stack and traps instead of throwing a
136
+ // catchable RangeError.
137
+ maxStackSize,
138
+ interruptHandler: options.shouldInterrupt,
139
+ wasi: clock ? deterministicWasi(clock) : discardOutput,
140
+ ...(clock ? { timezoneOffset: 0, intrinsics: Intrinsics.ALL & ~Intrinsics.WEAK_REF } : {}),
141
+ });
142
+ if (clock)
143
+ clock.creating = false;
144
+ let disposed = false;
145
+ /** Calls the script has issued, tools and globals; reported with every `idle`. */
146
+ let issued = 0;
147
+ /** Deterministic mode: the next result to apply, and results that arrived before it. */
148
+ let nextSeq = 1;
149
+ /** The result being processed, 0 during the script's first run; reported with `done`. */
150
+ let current = 0;
151
+ const early = new Map();
152
+ const apply = (message) => {
153
+ vm.withScope(() => {
154
+ vm.callFunction(settle, api, vm.newNumber(message.id), message.ok ? vm.true : vm.false, message.payload === undefined ? vm.undefined : vm.newString(message.payload), message.properties === undefined ? vm.undefined : vm.newString(message.properties));
155
+ });
156
+ drain();
157
+ };
158
+ const session = {
159
+ deliver(message) {
160
+ if (disposed)
161
+ return;
162
+ try {
163
+ if (!clock) {
164
+ apply(message);
165
+ return;
166
+ }
167
+ const { seq } = message;
168
+ if (seq === undefined || !Number.isInteger(seq) || seq < nextSeq || early.has(seq)) {
169
+ throw new Error(`Result ${message.id} has sequence number ${seq}, expected ${nextSeq} or later, once`);
170
+ }
171
+ early.set(seq, message);
172
+ for (let next = early.get(nextSeq); next !== undefined; next = early.get(nextSeq)) {
173
+ early.delete(nextSeq);
174
+ // Never backwards: a resumed host's clock may be behind the one that started the run.
175
+ if (next.now !== undefined && Number.isFinite(next.now))
176
+ clock.now = Math.max(clock.now, next.now);
177
+ current = nextSeq;
178
+ apply(next);
179
+ post({ type: "idle", seq: nextSeq, issued });
180
+ nextSeq++;
181
+ }
182
+ }
183
+ catch (error) {
184
+ post(crashMessage(error));
185
+ }
186
+ },
187
+ dispose() {
188
+ if (disposed)
189
+ return;
190
+ disposed = true;
191
+ vm.dispose();
192
+ },
193
+ };
194
+ let api;
195
+ let settle;
196
+ let stalled;
197
+ // `executePendingJobs()` runs the queue to empty without a chance to interrupt, so jobs run one at a
198
+ // time through the (internal, but public) exports; quickjs-wasi is pinned to an exact version.
199
+ const exports = vm._getExports();
200
+ /** Run queued jobs, then fail a script that waits on nothing that can ever resume it. */
201
+ const drain = () => {
202
+ let jobs = 0;
203
+ while (exports.qjs_is_job_pending()) {
204
+ // A job only fails for uncatchable errors, such as an interrupt.
205
+ if (exports.qjs_execute_pending_job() < 0)
206
+ throw new Error("Promise job failed");
207
+ if (++jobs % JOBS_PER_POLL === 0 && options.shouldInterrupt())
208
+ throw new Error("Execution interrupted");
209
+ }
210
+ vm.callFunction(stalled, api).dispose();
211
+ };
212
+ try {
213
+ // Called from the prelude with primitives only.
214
+ const bridge = vm.newFunction("bridge", (kind, a, b, c) => {
215
+ switch (kind.toString()) {
216
+ case "call":
217
+ case "global":
218
+ issued++;
219
+ post({
220
+ type: "call",
221
+ id: a.toNumber(),
222
+ target: kind.toString() === "call" ? "tool" : "global",
223
+ name: b.toString(),
224
+ args: c === undefined || c.isUndefined ? undefined : c.toString(),
225
+ });
226
+ break;
227
+ case "output":
228
+ post({
229
+ type: "output",
230
+ item: a.toString() === "image"
231
+ ? { type: "image", data: b.toString(), mimeType: c.toString() }
232
+ : a.toString() === "console"
233
+ ? { type: "text", text: b.toString(), console: true }
234
+ : { type: "text", text: b.toString() },
235
+ });
236
+ break;
237
+ case "done": {
238
+ // The host stops the VM on `done`, so the `idle` of this drain never arrives: report its numbers here.
239
+ const during = clock ? { during: { seq: current, issued } } : {};
240
+ if (a.toBoolean()) {
241
+ post({
242
+ type: "done",
243
+ ok: true,
244
+ value: b === undefined || b.isUndefined ? undefined : b.toString(),
245
+ writes: c.toString(),
246
+ ...during,
247
+ });
248
+ }
249
+ else {
250
+ post({ type: "done", ok: false, error: b.toString(), ...during });
251
+ }
252
+ break;
253
+ }
254
+ }
255
+ return vm.undefined;
256
+ });
257
+ // These handles live as long as the VM, which the caller disposes as a whole.
258
+ api = vm.withScope((scope) => scope.escape(vm.callFunction(vm.evalCode(PRELUDE_SOURCE, "codemode-prelude.js"), vm.undefined, bridge, vm.newString(JSON.stringify(data.tools)), vm.newString(JSON.stringify(data.globals)), vm.newString(JSON.stringify(data.store)))));
259
+ settle = api.getProp("settle");
260
+ const run = api.getProp("run");
261
+ stalled = api.getProp("stalled");
262
+ if (clock) {
263
+ const versions = vm.versions;
264
+ const budget = options.interruptBudget ?? "none";
265
+ post({
266
+ type: "started",
267
+ fingerprint: `quickjs-wasi ${versions["quickjs-wasi"]}, quickjs ${versions.quickjs}, prelude ${PRELUDE_HASH}, deterministic ${DETERMINISTIC_VERSION}, stack ${maxStackSize}, heap ${data.memoryLimitBytes ?? "none"}, budget ${budget}`,
268
+ });
269
+ }
270
+ // The prefix shares the first line with the script so reported line numbers
271
+ // match the script as written.
272
+ let fn;
273
+ try {
274
+ fn = vm.evalCode(`(async (tools, console) => {${data.code}\n})`, "codemode.js");
275
+ }
276
+ catch (error) {
277
+ if (!(error instanceof JSException))
278
+ throw error;
279
+ post({ type: "done", ok: false, error: describeException(error) });
280
+ return session;
281
+ }
282
+ vm.callFunction(run, api, fn).dispose();
283
+ fn.dispose();
284
+ drain();
285
+ if (clock)
286
+ post({ type: "idle", seq: 0, issued });
287
+ }
288
+ catch (error) {
289
+ post(crashMessage(error));
290
+ }
291
+ return session;
292
+ }
293
+ //# sourceMappingURL=vm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vm.js","sourceRoot":"","sources":["../../src/runtime/vm.ts"],"names":[],"mappings":"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","sourcesContent":["/**\n * Drives one QuickJS VM through one script, independent of the transport that connects it to the\n * host. The worker thread, the in-thread launcher, and the remote server all run the VM through\n * this module, so the bridge between prelude and host exists once.\n *\n * Contract with the caller:\n * - `post` receives every message for the host, synchronously from inside VM callbacks. The\n * caller must not re-enter the VM from `post` (no `deliver`, no `dispose`); a worker posts to\n * another thread, and the in-thread launcher defers delivery to a microtask.\n * - `deliver` hands the VM a tool result and runs the script until it waits again. It must only be\n * called while the VM is idle, which holds for any caller that never re-enters from `post`.\n * - `shouldInterrupt` is polled by QuickJS while the script runs, and here between batches of\n * promise jobs. Returning true throws an uncatchable error in the script; the VM then reports\n * `crash` or a failed `done`. The job batches matter for a script such as `while (true) await\n * null`: every iteration is a separate job that executes only a few opcodes, so QuickJS's own\n * polling, which counts opcodes, would let it run for a long time between polls.\n * - The VM never decides on its own when it is finished: after `done` or `crash` it stays alive\n * until the caller disposes it (or terminates the worker that hosts it).\n *\n * Failures after the VM exists are reported as a `crash` message; `startVm` only rejects when the\n * VM cannot be created at all.\n *\n * Deterministic mode (`data.deterministic`, used by `CodemodeSandboxBase.start()`): a script must make the same\n * calls with the same arguments every time it runs with the same results, so a host can replay it after a restart.\n * The VM is otherwise deterministic, because it only runs when the host delivers something and has no timers.\n * What remains is fixed here:\n * - Time: every WASI clock reads virtual time, `startedAt` and then the `now` of the result being processed, never going backwards.\n * While the context is created, the realtime clock reads a value derived from the seed instead, because QuickJS\n * seeds `Math.random()` from the first clock read, and which read comes first is the engine's business.\n * - Randomness: `random_get` draws from a PRNG over the seed.\n * - Timezone: UTC, not the host's.\n * - Garbage collection: `WeakRef` and `FinalizationRegistry` are not available; collection timing is not.\n * - Delivery order: results carry a `seq` and are applied strictly in that order, buffering early ones, because a\n * transport (RPC replies) may deliver them in another order than the host sent them.\n * The VM reports `started` with its fingerprint before the script runs, and `idle` with the number of calls issued\n * after each drain, so the host can check a replay step by step.\n */\nimport { Intrinsics, JSException, type JSValueHandle, MAX_STACK_SIZE, QuickJS } from \"quickjs-wasi\";\nimport type { CodemodeWasmModule } from \"../wasm.ts\";\nimport { PRELUDE_SOURCE } from \"./prelude-source.ts\";\nimport type { HostToWorkerMessage, VmStartData, WorkerToHostMessage } from \"./protocol.ts\";\n\nexport interface VmSession {\n\tdeliver(message: HostToWorkerMessage): void;\n\t/** Releases the VM's wasm instance. The session must not be used afterwards. */\n\tdispose(): void;\n}\n\nexport interface StartVmOptions {\n\tdata: VmStartData;\n\twasm: CodemodeWasmModule;\n\t/**\n\t * QuickJS's guard on its own stack, which turns deep recursion into a catchable `RangeError`.\n\t * The wasm frames also use the host thread's native stack, so the guard must trip before that\n\t * stack runs out: a host overflow fails the whole execution instead. Default: `MAX_STACK_SIZE`\n\t * (512 KiB), which fits the 4 MB stack of a Node worker thread but not a 1 MB main thread.\n\t */\n\tmaxStackSize?: number;\n\t/** Interrupt polls this VM may use, if the launcher counts them; part of the fingerprint. */\n\tinterruptBudget?: number;\n\tpost(message: WorkerToHostMessage): void;\n\tshouldInterrupt(): boolean;\n}\n\n/**\n * Bumped whenever this module or the prelude changes what a deterministic script observes, beyond what the\n * fingerprint's other parts (engine versions, prelude hash, limits) already capture.\n */\nconst DETERMINISTIC_VERSION = 1;\n\n/** FNV-1a over UTF-16 code units, as 8 hex digits: identifies the prelude in the fingerprint. */\nfunction fnv1a(text: string): string {\n\tlet hash = 0x811c9dc5;\n\tfor (let index = 0; index < text.length; index++) {\n\t\thash ^= text.charCodeAt(index);\n\t\thash = Math.imul(hash, 0x01000193);\n\t}\n\treturn (hash >>> 0).toString(16).padStart(8, \"0\");\n}\n\nconst PRELUDE_HASH = fnv1a(PRELUDE_SOURCE);\n\n/** mulberry32: a small, fast PRNG; one 32-bit draw per call. */\nfunction prng(seed: number): () => number {\n\tlet state = seed >>> 0;\n\treturn () => {\n\t\tstate = (state + 0x6d2b79f5) >>> 0;\n\t\tlet value = Math.imul(state ^ (state >>> 15), 1 | state);\n\t\tvalue = (value + Math.imul(value ^ (value >>> 7), 61 | value)) ^ value;\n\t\treturn (value ^ (value >>> 14)) >>> 0;\n\t};\n}\n\n/** The deterministic VM's clock: seed-derived while the context is created, then virtual time. */\ninterface VirtualClock {\n\tcreating: boolean;\n\tstartedAt: number;\n\tnow: number;\n\tseed: number;\n}\n\n/** WASI clock and random functions for deterministic mode, on top of {@link discardOutput}. */\nfunction deterministicWasi(clock: VirtualClock) {\n\tconst random = prng(clock.seed ^ 0x9e3779b9);\n\treturn (memory: { readonly buffer: ArrayBufferLike }) => ({\n\t\t...discardOutput(memory),\n\t\tclock_time_get(clockId: number, _precision: bigint, resultPtr: number): number {\n\t\t\tlet nanoseconds: bigint;\n\t\t\t// QuickJS seeds Math.random() from this reading in microseconds and turns 0 into 1, so seed s reads s + 1.\n\t\t\tif (clock.creating) nanoseconds = clockId === 0 ? BigInt(clock.seed + 1) * 1000n : 0n;\n\t\t\telse if (clockId === 0) nanoseconds = BigInt(Math.round(clock.now)) * 1_000_000n;\n\t\t\telse nanoseconds = BigInt(Math.round(clock.now - clock.startedAt)) * 1_000_000n;\n\t\t\tnew DataView(memory.buffer).setBigUint64(resultPtr, nanoseconds, true);\n\t\t\treturn 0;\n\t\t},\n\t\trandom_get(bufPtr: number, bufLen: number): number {\n\t\t\tconst bytes = new Uint8Array(memory.buffer, bufPtr, bufLen);\n\t\t\tfor (let index = 0; index < bufLen; index += 4) {\n\t\t\t\tconst value = random();\n\t\t\t\tfor (let byte = 0; byte < 4 && index + byte < bufLen; byte++) bytes[index + byte] = value >>> (byte * 8);\n\t\t\t}\n\t\t\treturn 0;\n\t\t},\n\t});\n}\n\n/**\n * QuickJS writes engine diagnostics to fd 1 and 2, which the default shim\n * forwards to the host's stdout and stderr. That output belongs to the host\n * application (for example a TUI), so it is discarded. Reporting every byte as\n * written keeps libc from retrying.\n */\nfunction discardOutput(memory: { readonly buffer: ArrayBufferLike }) {\n\treturn {\n\t\tfd_write(_fd: number, iovsPtr: number, iovsLen: number, nwrittenPtr: number): number {\n\t\t\tconst view = new DataView(memory.buffer);\n\t\t\tlet written = 0;\n\t\t\tfor (let i = 0; i < iovsLen; i++) {\n\t\t\t\twritten += view.getUint32(iovsPtr + i * 8 + 4, true);\n\t\t\t}\n\t\t\tview.setUint32(nwrittenPtr, written, true);\n\t\t\treturn 0;\n\t\t},\n\t};\n}\n\nfunction describeException(error: JSException): string {\n\tconst head = error.message ? `${error.name}: ${error.message}` : error.name;\n\tconst stack = error.stack?.trimEnd();\n\treturn JSON.stringify({ name: error.name, message: error.message, stack: stack ? `${head}\\n${stack}` : head });\n}\n\n/** Promise jobs run between two `shouldInterrupt` polls while draining the job queue. */\nconst JOBS_PER_POLL = 50;\n\nfunction crashMessage(error: unknown): WorkerToHostMessage {\n\treturn { type: \"crash\", message: error instanceof Error ? `${error.name}: ${error.message}` : String(error) };\n}\n\nexport async function startVm(options: StartVmOptions): Promise<VmSession> {\n\tconst { data, post } = options;\n\tconst maxStackSize = options.maxStackSize ?? MAX_STACK_SIZE;\n\tconst deterministic = data.deterministic;\n\tconst clock: VirtualClock | undefined = deterministic && {\n\t\tcreating: true,\n\t\tstartedAt: deterministic.startedAt,\n\t\tnow: deterministic.startedAt,\n\t\tseed: deterministic.seed >>> 0,\n\t};\n\tconst vm = await QuickJS.create({\n\t\twasm: options.wasm,\n\t\tmemoryLimit: data.memoryLimitBytes,\n\t\t// Without a guard, deep recursion overflows the wasm stack and traps instead of throwing a\n\t\t// catchable RangeError.\n\t\tmaxStackSize,\n\t\tinterruptHandler: options.shouldInterrupt,\n\t\twasi: clock ? deterministicWasi(clock) : discardOutput,\n\t\t...(clock ? { timezoneOffset: 0, intrinsics: Intrinsics.ALL & ~Intrinsics.WEAK_REF } : {}),\n\t});\n\tif (clock) clock.creating = false;\n\tlet disposed = false;\n\t/** Calls the script has issued, tools and globals; reported with every `idle`. */\n\tlet issued = 0;\n\t/** Deterministic mode: the next result to apply, and results that arrived before it. */\n\tlet nextSeq = 1;\n\t/** The result being processed, 0 during the script's first run; reported with `done`. */\n\tlet current = 0;\n\tconst early = new Map<number, HostToWorkerMessage>();\n\tconst apply = (message: HostToWorkerMessage): void => {\n\t\tvm.withScope(() => {\n\t\t\tvm.callFunction(\n\t\t\t\tsettle,\n\t\t\t\tapi,\n\t\t\t\tvm.newNumber(message.id),\n\t\t\t\tmessage.ok ? vm.true : vm.false,\n\t\t\t\tmessage.payload === undefined ? vm.undefined : vm.newString(message.payload),\n\t\t\t\tmessage.properties === undefined ? vm.undefined : vm.newString(message.properties),\n\t\t\t);\n\t\t});\n\t\tdrain();\n\t};\n\tconst session: VmSession = {\n\t\tdeliver(message) {\n\t\t\tif (disposed) return;\n\t\t\ttry {\n\t\t\t\tif (!clock) {\n\t\t\t\t\tapply(message);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tconst { seq } = message;\n\t\t\t\tif (seq === undefined || !Number.isInteger(seq) || seq < nextSeq || early.has(seq)) {\n\t\t\t\t\tthrow new Error(`Result ${message.id} has sequence number ${seq}, expected ${nextSeq} or later, once`);\n\t\t\t\t}\n\t\t\t\tearly.set(seq, message);\n\t\t\t\tfor (let next = early.get(nextSeq); next !== undefined; next = early.get(nextSeq)) {\n\t\t\t\t\tearly.delete(nextSeq);\n\t\t\t\t\t// Never backwards: a resumed host's clock may be behind the one that started the run.\n\t\t\t\t\tif (next.now !== undefined && Number.isFinite(next.now)) clock.now = Math.max(clock.now, next.now);\n\t\t\t\t\tcurrent = nextSeq;\n\t\t\t\t\tapply(next);\n\t\t\t\t\tpost({ type: \"idle\", seq: nextSeq, issued });\n\t\t\t\t\tnextSeq++;\n\t\t\t\t}\n\t\t\t} catch (error) {\n\t\t\t\tpost(crashMessage(error));\n\t\t\t}\n\t\t},\n\t\tdispose() {\n\t\t\tif (disposed) return;\n\t\t\tdisposed = true;\n\t\t\tvm.dispose();\n\t\t},\n\t};\n\n\tlet api: JSValueHandle;\n\tlet settle: JSValueHandle;\n\tlet stalled: JSValueHandle;\n\t// `executePendingJobs()` runs the queue to empty without a chance to interrupt, so jobs run one at a\n\t// time through the (internal, but public) exports; quickjs-wasi is pinned to an exact version.\n\tconst exports = vm._getExports();\n\t/** Run queued jobs, then fail a script that waits on nothing that can ever resume it. */\n\tconst drain = () => {\n\t\tlet jobs = 0;\n\t\twhile (exports.qjs_is_job_pending()) {\n\t\t\t// A job only fails for uncatchable errors, such as an interrupt.\n\t\t\tif (exports.qjs_execute_pending_job() < 0) throw new Error(\"Promise job failed\");\n\t\t\tif (++jobs % JOBS_PER_POLL === 0 && options.shouldInterrupt()) throw new Error(\"Execution interrupted\");\n\t\t}\n\t\tvm.callFunction(stalled, api).dispose();\n\t};\n\n\ttry {\n\t\t// Called from the prelude with primitives only.\n\t\tconst bridge = vm.newFunction(\"bridge\", (kind, a, b, c) => {\n\t\t\tswitch (kind.toString()) {\n\t\t\t\tcase \"call\":\n\t\t\t\tcase \"global\":\n\t\t\t\t\tissued++;\n\t\t\t\t\tpost({\n\t\t\t\t\t\ttype: \"call\",\n\t\t\t\t\t\tid: a.toNumber(),\n\t\t\t\t\t\ttarget: kind.toString() === \"call\" ? \"tool\" : \"global\",\n\t\t\t\t\t\tname: b.toString(),\n\t\t\t\t\t\targs: c === undefined || c.isUndefined ? undefined : c.toString(),\n\t\t\t\t\t});\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"output\":\n\t\t\t\t\tpost({\n\t\t\t\t\t\ttype: \"output\",\n\t\t\t\t\t\titem:\n\t\t\t\t\t\t\ta.toString() === \"image\"\n\t\t\t\t\t\t\t\t? { type: \"image\", data: b.toString(), mimeType: c.toString() }\n\t\t\t\t\t\t\t\t: a.toString() === \"console\"\n\t\t\t\t\t\t\t\t\t? { type: \"text\", text: b.toString(), console: true }\n\t\t\t\t\t\t\t\t\t: { type: \"text\", text: b.toString() },\n\t\t\t\t\t});\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"done\": {\n\t\t\t\t\t// The host stops the VM on `done`, so the `idle` of this drain never arrives: report its numbers here.\n\t\t\t\t\tconst during = clock ? { during: { seq: current, issued } } : {};\n\t\t\t\t\tif (a.toBoolean()) {\n\t\t\t\t\t\tpost({\n\t\t\t\t\t\t\ttype: \"done\",\n\t\t\t\t\t\t\tok: true,\n\t\t\t\t\t\t\tvalue: b === undefined || b.isUndefined ? undefined : b.toString(),\n\t\t\t\t\t\t\twrites: c.toString(),\n\t\t\t\t\t\t\t...during,\n\t\t\t\t\t\t});\n\t\t\t\t\t} else {\n\t\t\t\t\t\tpost({ type: \"done\", ok: false, error: b.toString(), ...during });\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn vm.undefined;\n\t\t});\n\n\t\t// These handles live as long as the VM, which the caller disposes as a whole.\n\t\tapi = vm.withScope((scope) =>\n\t\t\tscope.escape(\n\t\t\t\tvm.callFunction(\n\t\t\t\t\tvm.evalCode(PRELUDE_SOURCE, \"codemode-prelude.js\"),\n\t\t\t\t\tvm.undefined,\n\t\t\t\t\tbridge,\n\t\t\t\t\tvm.newString(JSON.stringify(data.tools)),\n\t\t\t\t\tvm.newString(JSON.stringify(data.globals)),\n\t\t\t\t\tvm.newString(JSON.stringify(data.store)),\n\t\t\t\t),\n\t\t\t),\n\t\t);\n\t\tsettle = api.getProp(\"settle\");\n\t\tconst run = api.getProp(\"run\");\n\t\tstalled = api.getProp(\"stalled\");\n\t\tif (clock) {\n\t\t\tconst versions = vm.versions;\n\t\t\tconst budget = options.interruptBudget ?? \"none\";\n\t\t\tpost({\n\t\t\t\ttype: \"started\",\n\t\t\t\tfingerprint: `quickjs-wasi ${versions[\"quickjs-wasi\"]}, quickjs ${versions.quickjs}, prelude ${PRELUDE_HASH}, deterministic ${DETERMINISTIC_VERSION}, stack ${maxStackSize}, heap ${data.memoryLimitBytes ?? \"none\"}, budget ${budget}`,\n\t\t\t});\n\t\t}\n\n\t\t// The prefix shares the first line with the script so reported line numbers\n\t\t// match the script as written.\n\t\tlet fn: JSValueHandle;\n\t\ttry {\n\t\t\tfn = vm.evalCode(`(async (tools, console) => {${data.code}\\n})`, \"codemode.js\");\n\t\t} catch (error) {\n\t\t\tif (!(error instanceof JSException)) throw error;\n\t\t\tpost({ type: \"done\", ok: false, error: describeException(error) });\n\t\t\treturn session;\n\t\t}\n\t\tvm.callFunction(run, api, fn).dispose();\n\t\tfn.dispose();\n\t\tdrain();\n\t\tif (clock) post({ type: \"idle\", seq: 0, issued });\n\t} catch (error) {\n\t\tpost(crashMessage(error));\n\t}\n\treturn session;\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=worker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"worker.d.ts","sourceRoot":"","sources":["../../src/runtime/worker.ts"],"names":[],"mappings":""}
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Worker thread entry. One worker runs one script inside a fresh QuickJS VM
3
+ * (a separate wasm instance), relays tool calls and output to the host, and
4
+ * reports the result. The host terminates the worker when the script settles,
5
+ * times out, or is aborted; the worker exists so that a spinning script never
6
+ * blocks the host thread.
7
+ *
8
+ * Importing this module starts the worker. Hosts that bundle their code (for
9
+ * example a Bun compiled executable) add a file that imports
10
+ * `@earendil-works/pi-codemode/worker` as a separate entrypoint and pass its URL
11
+ * or embedded-module string specifier as `workerUrl`.
12
+ */
13
+ import { parentPort, workerData } from "node:worker_threads";
14
+ import { isHostToWorkerMessage } from "./protocol.js";
15
+ import { startVm } from "./vm.js";
16
+ function post(message) {
17
+ parentPort?.postMessage(message);
18
+ }
19
+ async function main(data) {
20
+ const interrupt = new Int32Array(data.interrupt);
21
+ // The VM lives until the host terminates the worker, so the session is never disposed.
22
+ const session = await startVm({
23
+ data,
24
+ wasm: data.wasm,
25
+ post,
26
+ shouldInterrupt: () => Atomics.load(interrupt, 0) !== 0,
27
+ });
28
+ parentPort?.on("message", (message) => {
29
+ if (isHostToWorkerMessage(message))
30
+ session.deliver(message);
31
+ });
32
+ }
33
+ if (parentPort) {
34
+ main(workerData).catch((error) => {
35
+ post({ type: "crash", message: error instanceof Error ? `${error.name}: ${error.message}` : String(error) });
36
+ });
37
+ }
38
+ //# sourceMappingURL=worker.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"worker.js","sourceRoot":"","sources":["../../src/runtime/worker.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAE,qBAAqB,EAA6C,MAAM,eAAe,CAAC;AACjG,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAElC,SAAS,IAAI,CAAC,OAA4B;IACzC,UAAU,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;AAClC,CAAC;AAED,KAAK,UAAU,IAAI,CAAC,IAAgB;IACnC,MAAM,SAAS,GAAG,IAAI,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IACjD,uFAAuF;IACvF,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC;QAC7B,IAAI;QACJ,IAAI,EAAE,IAAI,CAAC,IAAI;QACf,IAAI;QACJ,eAAe,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC;KACvD,CAAC,CAAC;IACH,UAAU,EAAE,EAAE,CAAC,SAAS,EAAE,CAAC,OAAgB,EAAE,EAAE;QAC9C,IAAI,qBAAqB,CAAC,OAAO,CAAC;YAAE,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAC9D,CAAC,CAAC,CAAC;AACJ,CAAC;AAED,IAAI,UAAU,EAAE,CAAC;IAChB,IAAI,CAAC,UAAwB,CAAC,CAAC,KAAK,CAAC,CAAC,KAAc,EAAE,EAAE;QACvD,IAAI,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,IAAI,KAAK,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IAC9G,CAAC,CAAC,CAAC;AACJ,CAAC","sourcesContent":["/**\n * Worker thread entry. One worker runs one script inside a fresh QuickJS VM\n * (a separate wasm instance), relays tool calls and output to the host, and\n * reports the result. The host terminates the worker when the script settles,\n * times out, or is aborted; the worker exists so that a spinning script never\n * blocks the host thread.\n *\n * Importing this module starts the worker. Hosts that bundle their code (for\n * example a Bun compiled executable) add a file that imports\n * `@earendil-works/pi-codemode/worker` as a separate entrypoint and pass its URL\n * or embedded-module string specifier as `workerUrl`.\n */\nimport { parentPort, workerData } from \"node:worker_threads\";\nimport { isHostToWorkerMessage, type WorkerData, type WorkerToHostMessage } from \"./protocol.ts\";\nimport { startVm } from \"./vm.ts\";\n\nfunction post(message: WorkerToHostMessage): void {\n\tparentPort?.postMessage(message);\n}\n\nasync function main(data: WorkerData): Promise<void> {\n\tconst interrupt = new Int32Array(data.interrupt);\n\t// The VM lives until the host terminates the worker, so the session is never disposed.\n\tconst session = await startVm({\n\t\tdata,\n\t\twasm: data.wasm,\n\t\tpost,\n\t\tshouldInterrupt: () => Atomics.load(interrupt, 0) !== 0,\n\t});\n\tparentPort?.on(\"message\", (message: unknown) => {\n\t\tif (isHostToWorkerMessage(message)) session.deliver(message);\n\t});\n}\n\nif (parentPort) {\n\tmain(workerData as WorkerData).catch((error: unknown) => {\n\t\tpost({ type: \"crash\", message: error instanceof Error ? `${error.name}: ${error.message}` : String(error) });\n\t});\n}\n"]}
@@ -0,0 +1,36 @@
1
+ /**
2
+ * Codemode source format: JavaScript, optionally preceded by one options line.
3
+ *
4
+ * ```js
5
+ * // @options: {"max_output_tokens": 2000, "timeout_ms": 30000}
6
+ * const text = await tools.read({ path: "package.json" });
7
+ * text(JSON.parse(text).name);
8
+ * ```
9
+ */
10
+ export declare const CODEMODE_OPTIONS_PREFIX = "// @options:";
11
+ /**
12
+ * Lark grammar for providers with grammar-constrained tool input. It only fixes the shape of the
13
+ * options line; the options JSON and the code are checked by {@link parseCodemodeSource}.
14
+ */
15
+ export declare const CODEMODE_SOURCE_GRAMMAR: string;
16
+ export interface CodemodeSourceOptions {
17
+ /** Token budget for the script's output. */
18
+ maxOutputTokens?: number;
19
+ /** Hard deadline for the whole script in milliseconds, including tool calls. */
20
+ timeoutMs?: number;
21
+ }
22
+ export interface ParsedCodemodeSource {
23
+ /** The script with the options line replaced by an empty line, so line numbers are unchanged. */
24
+ code: string;
25
+ options: CodemodeSourceOptions;
26
+ }
27
+ export declare class CodemodeSourceError extends Error {
28
+ constructor(message: string);
29
+ }
30
+ /**
31
+ * Split an optional first-line `// @options: {...}` from the script. Throws
32
+ * {@link CodemodeSourceError} for empty input, invalid options, and an options line that is not the
33
+ * first line, which would otherwise be ignored without notice.
34
+ */
35
+ export declare function parseCodemodeSource(input: string): ParsedCodemodeSource;
36
+ //# sourceMappingURL=source.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"source.d.ts","sourceRoot":"","sources":["../src/source.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,eAAO,MAAM,uBAAuB,iBAAiB,CAAC;AAOtD;;;GAGG;AACH,eAAO,MAAM,uBAAuB,QAQnC,CAAC;AAEF,MAAM,WAAW,qBAAqB;IACrC,4CAA4C;IAC5C,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,gFAAgF;IAChF,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,oBAAoB;IACpC,iGAAiG;IACjG,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,qBAAqB,CAAC;CAC/B;AAED,qBAAa,mBAAoB,SAAQ,KAAK;IAC7C,YAAY,OAAO,EAAE,MAAM,EAG1B;CACD;AA8CD;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,oBAAoB,CAwBvE"}
@@ -0,0 +1,98 @@
1
+ /**
2
+ * Codemode source format: JavaScript, optionally preceded by one options line.
3
+ *
4
+ * ```js
5
+ * // @options: {"max_output_tokens": 2000, "timeout_ms": 30000}
6
+ * const text = await tools.read({ path: "package.json" });
7
+ * text(JSON.parse(text).name);
8
+ * ```
9
+ */
10
+ export const CODEMODE_OPTIONS_PREFIX = "// @options:";
11
+ const SUPPORTED_FIELDS = ["max_output_tokens", "timeout_ms"];
12
+ const SUPPORTED_FIELDS_TEXT = "`max_output_tokens` and `timeout_ms`";
13
+ /** Largest delay `setTimeout` supports, which bounds `timeout_ms`. */
14
+ const MAX_TIMEOUT_MS = 2_147_483_647;
15
+ /**
16
+ * Lark grammar for providers with grammar-constrained tool input. It only fixes the shape of the
17
+ * options line; the options JSON and the code are checked by {@link parseCodemodeSource}.
18
+ */
19
+ export const CODEMODE_SOURCE_GRAMMAR = String.raw `
20
+ start: options_source | plain_source
21
+ options_source: OPTIONS_LINE NEWLINE SOURCE
22
+ plain_source: SOURCE
23
+
24
+ OPTIONS_LINE: /[ \t]*\/\/ @options:[^\r\n]*/
25
+ NEWLINE: /\r?\n/
26
+ SOURCE: /[\s\S]+/
27
+ `;
28
+ export class CodemodeSourceError extends Error {
29
+ constructor(message) {
30
+ super(message);
31
+ this.name = "CodemodeSourceError";
32
+ }
33
+ }
34
+ function isSafeInteger(value) {
35
+ return typeof value === "number" && Number.isSafeInteger(value) && value >= 0;
36
+ }
37
+ function parseOptions(directive) {
38
+ if (directive === "") {
39
+ throw new CodemodeSourceError(`@options must be a JSON object with supported fields ${SUPPORTED_FIELDS_TEXT}`);
40
+ }
41
+ let value;
42
+ try {
43
+ value = JSON.parse(directive);
44
+ }
45
+ catch (error) {
46
+ throw new CodemodeSourceError(`@options must be valid JSON with supported fields ${SUPPORTED_FIELDS_TEXT}: ${error instanceof Error ? error.message : String(error)}`);
47
+ }
48
+ if (typeof value !== "object" || value === null || Array.isArray(value)) {
49
+ throw new CodemodeSourceError(`@options must be a JSON object with supported fields ${SUPPORTED_FIELDS_TEXT}`);
50
+ }
51
+ const fields = value;
52
+ for (const key of Object.keys(fields)) {
53
+ if (!SUPPORTED_FIELDS.includes(key)) {
54
+ throw new CodemodeSourceError(`@options only supports ${SUPPORTED_FIELDS_TEXT}; got \`${key}\``);
55
+ }
56
+ }
57
+ const options = {};
58
+ const { max_output_tokens, timeout_ms } = fields;
59
+ if (max_output_tokens !== undefined) {
60
+ if (!isSafeInteger(max_output_tokens)) {
61
+ throw new CodemodeSourceError("@options field `max_output_tokens` must be a non-negative safe integer");
62
+ }
63
+ options.maxOutputTokens = max_output_tokens;
64
+ }
65
+ if (timeout_ms !== undefined) {
66
+ if (!isSafeInteger(timeout_ms) || timeout_ms === 0 || timeout_ms > MAX_TIMEOUT_MS) {
67
+ throw new CodemodeSourceError(`@options field \`timeout_ms\` must be a positive integer up to ${MAX_TIMEOUT_MS}`);
68
+ }
69
+ options.timeoutMs = timeout_ms;
70
+ }
71
+ return options;
72
+ }
73
+ /**
74
+ * Split an optional first-line `// @options: {...}` from the script. Throws
75
+ * {@link CodemodeSourceError} for empty input, invalid options, and an options line that is not the
76
+ * first line, which would otherwise be ignored without notice.
77
+ */
78
+ export function parseCodemodeSource(input) {
79
+ if (input.trim() === "") {
80
+ throw new CodemodeSourceError('Expected JavaScript source text (non-empty). Provide JS only, optionally with a first line `// @options: {"max_output_tokens": 1000}`.');
81
+ }
82
+ const lines = input.split("\n");
83
+ const misplaced = lines.findIndex((line, index) => index > 0 && line.trimStart().startsWith(CODEMODE_OPTIONS_PREFIX));
84
+ if (misplaced !== -1) {
85
+ throw new CodemodeSourceError(`The ${CODEMODE_OPTIONS_PREFIX} line must be the first line of the input; found one on line ${misplaced + 1}`);
86
+ }
87
+ const newline = input.indexOf("\n");
88
+ const firstLine = lines[0].replace(/\r$/, "");
89
+ const trimmed = firstLine.trimStart();
90
+ if (!trimmed.startsWith(CODEMODE_OPTIONS_PREFIX))
91
+ return { code: input, options: {} };
92
+ const code = newline === -1 ? "" : input.slice(newline);
93
+ if (code.trim() === "") {
94
+ throw new CodemodeSourceError("The @options line must be followed by JavaScript source on subsequent lines");
95
+ }
96
+ return { code, options: parseOptions(trimmed.slice(CODEMODE_OPTIONS_PREFIX.length).trim()) };
97
+ }
98
+ //# sourceMappingURL=source.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"source.js","sourceRoot":"","sources":["../src/source.ts"],"names":[],"mappings":"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","sourcesContent":["/**\n * Codemode source format: JavaScript, optionally preceded by one options line.\n *\n * ```js\n * // @options: {\"max_output_tokens\": 2000, \"timeout_ms\": 30000}\n * const text = await tools.read({ path: \"package.json\" });\n * text(JSON.parse(text).name);\n * ```\n */\n\nexport const CODEMODE_OPTIONS_PREFIX = \"// @options:\";\n\nconst SUPPORTED_FIELDS = [\"max_output_tokens\", \"timeout_ms\"] as const;\nconst SUPPORTED_FIELDS_TEXT = \"`max_output_tokens` and `timeout_ms`\";\n/** Largest delay `setTimeout` supports, which bounds `timeout_ms`. */\nconst MAX_TIMEOUT_MS = 2_147_483_647;\n\n/**\n * Lark grammar for providers with grammar-constrained tool input. It only fixes the shape of the\n * options line; the options JSON and the code are checked by {@link parseCodemodeSource}.\n */\nexport const CODEMODE_SOURCE_GRAMMAR = String.raw`\nstart: options_source | plain_source\noptions_source: OPTIONS_LINE NEWLINE SOURCE\nplain_source: SOURCE\n\nOPTIONS_LINE: /[ \\t]*\\/\\/ @options:[^\\r\\n]*/\nNEWLINE: /\\r?\\n/\nSOURCE: /[\\s\\S]+/\n`;\n\nexport interface CodemodeSourceOptions {\n\t/** Token budget for the script's output. */\n\tmaxOutputTokens?: number;\n\t/** Hard deadline for the whole script in milliseconds, including tool calls. */\n\ttimeoutMs?: number;\n}\n\nexport interface ParsedCodemodeSource {\n\t/** The script with the options line replaced by an empty line, so line numbers are unchanged. */\n\tcode: string;\n\toptions: CodemodeSourceOptions;\n}\n\nexport class CodemodeSourceError extends Error {\n\tconstructor(message: string) {\n\t\tsuper(message);\n\t\tthis.name = \"CodemodeSourceError\";\n\t}\n}\n\nfunction isSafeInteger(value: unknown): value is number {\n\treturn typeof value === \"number\" && Number.isSafeInteger(value) && value >= 0;\n}\n\nfunction parseOptions(directive: string): CodemodeSourceOptions {\n\tif (directive === \"\") {\n\t\tthrow new CodemodeSourceError(`@options must be a JSON object with supported fields ${SUPPORTED_FIELDS_TEXT}`);\n\t}\n\tlet value: unknown;\n\ttry {\n\t\tvalue = JSON.parse(directive);\n\t} catch (error) {\n\t\tthrow new CodemodeSourceError(\n\t\t\t`@options must be valid JSON with supported fields ${SUPPORTED_FIELDS_TEXT}: ${error instanceof Error ? error.message : String(error)}`,\n\t\t);\n\t}\n\tif (typeof value !== \"object\" || value === null || Array.isArray(value)) {\n\t\tthrow new CodemodeSourceError(`@options must be a JSON object with supported fields ${SUPPORTED_FIELDS_TEXT}`);\n\t}\n\tconst fields = value as Record<string, unknown>;\n\tfor (const key of Object.keys(fields)) {\n\t\tif (!(SUPPORTED_FIELDS as readonly string[]).includes(key)) {\n\t\t\tthrow new CodemodeSourceError(`@options only supports ${SUPPORTED_FIELDS_TEXT}; got \\`${key}\\``);\n\t\t}\n\t}\n\tconst options: CodemodeSourceOptions = {};\n\tconst { max_output_tokens, timeout_ms } = fields;\n\tif (max_output_tokens !== undefined) {\n\t\tif (!isSafeInteger(max_output_tokens)) {\n\t\t\tthrow new CodemodeSourceError(\"@options field `max_output_tokens` must be a non-negative safe integer\");\n\t\t}\n\t\toptions.maxOutputTokens = max_output_tokens;\n\t}\n\tif (timeout_ms !== undefined) {\n\t\tif (!isSafeInteger(timeout_ms) || timeout_ms === 0 || timeout_ms > MAX_TIMEOUT_MS) {\n\t\t\tthrow new CodemodeSourceError(\n\t\t\t\t`@options field \\`timeout_ms\\` must be a positive integer up to ${MAX_TIMEOUT_MS}`,\n\t\t\t);\n\t\t}\n\t\toptions.timeoutMs = timeout_ms;\n\t}\n\treturn options;\n}\n\n/**\n * Split an optional first-line `// @options: {...}` from the script. Throws\n * {@link CodemodeSourceError} for empty input, invalid options, and an options line that is not the\n * first line, which would otherwise be ignored without notice.\n */\nexport function parseCodemodeSource(input: string): ParsedCodemodeSource {\n\tif (input.trim() === \"\") {\n\t\tthrow new CodemodeSourceError(\n\t\t\t'Expected JavaScript source text (non-empty). Provide JS only, optionally with a first line `// @options: {\"max_output_tokens\": 1000}`.',\n\t\t);\n\t}\n\tconst lines = input.split(\"\\n\");\n\tconst misplaced = lines.findIndex(\n\t\t(line, index) => index > 0 && line.trimStart().startsWith(CODEMODE_OPTIONS_PREFIX),\n\t);\n\tif (misplaced !== -1) {\n\t\tthrow new CodemodeSourceError(\n\t\t\t`The ${CODEMODE_OPTIONS_PREFIX} line must be the first line of the input; found one on line ${misplaced + 1}`,\n\t\t);\n\t}\n\tconst newline = input.indexOf(\"\\n\");\n\tconst firstLine = lines[0].replace(/\\r$/, \"\");\n\tconst trimmed = firstLine.trimStart();\n\tif (!trimmed.startsWith(CODEMODE_OPTIONS_PREFIX)) return { code: input, options: {} };\n\tconst code = newline === -1 ? \"\" : input.slice(newline);\n\tif (code.trim() === \"\") {\n\t\tthrow new CodemodeSourceError(\"The @options line must be followed by JavaScript source on subsequent lines\");\n\t}\n\treturn { code, options: parseOptions(trimmed.slice(CODEMODE_OPTIONS_PREFIX.length).trim()) };\n}\n"]}