nuxt-ai-ready 2.5.3 → 3.0.0

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 (286) hide show
  1. package/README.md +13 -12
  2. package/dist/chunks/agent-skills.mjs +35 -12
  3. package/dist/chunks/prerender.mjs +35 -24
  4. package/dist/cli.mjs +5 -2
  5. package/dist/module.d.mts +4 -0
  6. package/dist/module.json +2 -2
  7. package/dist/module.mjs +8 -4
  8. package/dist/runtime/app/index.d.ts +3 -0
  9. package/dist/runtime/app/index.js +2 -0
  10. package/dist/runtime/cache-control.d.ts +2 -0
  11. package/dist/runtime/cache-control.js +11 -0
  12. package/dist/runtime/llms-txt-utils.js +1 -1
  13. package/dist/runtime/server/db/context.d.ts +13 -0
  14. package/dist/runtime/server/db/drizzle/client.d.ts +6 -7
  15. package/dist/runtime/server/db/drizzle/client.js +13 -2
  16. package/dist/runtime/server/db/drizzle/providers/bun.d.ts +2 -2
  17. package/dist/runtime/server/db/drizzle/providers/bun.js +2 -2
  18. package/dist/runtime/server/db/drizzle/providers/d1.d.ts +2 -2
  19. package/dist/runtime/server/db/drizzle/providers/d1.js +3 -2
  20. package/dist/runtime/server/db/drizzle/providers/libsql.d.ts +2 -2
  21. package/dist/runtime/server/db/drizzle/providers/libsql.js +2 -2
  22. package/dist/runtime/server/db/drizzle/providers/neon.d.ts +2 -2
  23. package/dist/runtime/server/db/drizzle/providers/neon.js +2 -2
  24. package/dist/runtime/server/db/drizzle/providers/node-sqlite.d.ts +2 -2
  25. package/dist/runtime/server/db/drizzle/providers/node-sqlite.js +2 -2
  26. package/dist/runtime/server/db/drizzle/providers/postgres.d.ts +2 -2
  27. package/dist/runtime/server/db/drizzle/providers/postgres.js +2 -2
  28. package/dist/runtime/server/db/drizzle/queries.d.ts +27 -27
  29. package/dist/runtime/server/db/drizzle/queries.js +6 -5
  30. package/dist/runtime/server/db/drizzle/raw.d.ts +2 -6
  31. package/dist/runtime/server/db/index.d.ts +1 -1
  32. package/dist/runtime/server/db/index.js +1 -1
  33. package/dist/runtime/server/db/queries.d.ts +36 -36
  34. package/dist/runtime/server/db/queries.js +8 -9
  35. package/dist/runtime/server/db/seed.d.ts +2 -2
  36. package/dist/runtime/server/db/seed.js +4 -3
  37. package/dist/runtime/server/db/shared.d.ts +8 -0
  38. package/dist/runtime/server/db/shared.js +8 -2
  39. package/dist/runtime/server/index.d.ts +2 -0
  40. package/dist/runtime/server/index.js +17 -0
  41. package/dist/runtime/server/mcp/tools/get-page-markdown.js +1 -1
  42. package/dist/runtime/server/mcp/tools/list-pages.js +1 -1
  43. package/dist/runtime/server/mcp/tools/search-pages.js +1 -1
  44. package/dist/runtime/server/middleware/markdown.prerender.js +1 -1
  45. package/dist/runtime/server/plugins/db-lifecycle-nitro3.d.ts +2 -0
  46. package/dist/runtime/server/plugins/db-lifecycle-nitro3.js +16 -0
  47. package/dist/runtime/server/plugins/html-capture.prerender.js +6 -4
  48. package/dist/runtime/server/plugins/link-header-nitro3.d.ts +2 -0
  49. package/dist/runtime/server/plugins/link-header-nitro3.js +20 -0
  50. package/dist/runtime/server/plugins/link-header.d.ts +6 -0
  51. package/dist/runtime/server/plugins/link-header.js +7 -11
  52. package/dist/runtime/server/plugins/markdown-negotiation.js +8 -1
  53. package/dist/runtime/server/plugins/sitemap-seeder.js +3 -3
  54. package/dist/runtime/server/routes/agent-skills-artifact.d.ts +1 -1
  55. package/dist/runtime/server/routes/agent-skills-artifact.js +10 -10
  56. package/dist/runtime/server/routes/agent-skills-index.d.ts +1 -1
  57. package/dist/runtime/server/routes/agent-skills-index.js +7 -6
  58. package/dist/runtime/server/routes/ai-catalog.d.ts +2 -1
  59. package/dist/runtime/server/routes/ai-catalog.js +7 -8
  60. package/dist/runtime/server/routes/api-catalog.d.ts +3 -1
  61. package/dist/runtime/server/routes/api-catalog.js +12 -12
  62. package/dist/runtime/server/routes/llms-full.txt.get.js +1 -1
  63. package/dist/runtime/server/routes/mcp-server-card.d.ts +1 -1
  64. package/dist/runtime/server/routes/mcp-server-card.js +7 -8
  65. package/dist/runtime/server/utils/checkStale.d.ts +2 -2
  66. package/dist/runtime/server/utils/cloudflare-prerendered.d.ts +3 -0
  67. package/dist/runtime/server/utils/cloudflare-prerendered.js +23 -0
  68. package/dist/runtime/server/utils/cloudflare.d.ts +5 -5
  69. package/dist/runtime/server/utils/cloudflare.js +31 -7
  70. package/dist/runtime/server/utils/content-negotiation.d.ts +5 -3
  71. package/dist/runtime/server/utils/content-negotiation.js +8 -7
  72. package/dist/runtime/server/utils/context.d.ts +3 -3
  73. package/dist/runtime/server/utils/context.js +1 -1
  74. package/dist/runtime/server/utils/discovery-response.d.ts +2 -0
  75. package/dist/runtime/server/utils/link-header.d.ts +5 -3
  76. package/dist/runtime/server/utils/link-header.js +26 -2
  77. package/dist/runtime/server/utils/markdown-request.d.ts +4 -3
  78. package/dist/runtime/server/utils/markdown-request.js +15 -13
  79. package/dist/runtime/server/utils/negotiation-decision.d.ts +4 -0
  80. package/dist/runtime/server/utils/negotiation-decision.js +6 -5
  81. package/dist/runtime/server/utils/negotiation-response.js +47 -22
  82. package/dist/runtime/server/utils/prerender-html.d.ts +2 -1
  83. package/dist/runtime/server/utils/prerender-html.js +3 -1
  84. package/dist/runtime/types.d.ts +15 -7
  85. package/dist/shared/nuxt-ai-ready.B3hAuOLQ.mjs +29 -0
  86. package/dist/shared/{nuxt-ai-ready.CLSWou20.mjs → nuxt-ai-ready.C34F0LJo.mjs} +560 -219
  87. package/package.json +85 -20
  88. package/skills/nuxt-ai-ready/SKILL.md +26 -12
  89. package/skills/nuxt-ai-ready/references/runtime-indexing.md +7 -6
  90. package/dist/runtime/server/db/drizzle/providers/sqlite.d.ts +0 -8
  91. package/dist/runtime/server/db/drizzle/providers/sqlite.js +0 -15
  92. package/node_modules/@mdream/js/LICENSE.md +0 -9
  93. package/node_modules/@mdream/js/README.md +0 -792
  94. package/node_modules/@mdream/js/bin/mdream.mjs +0 -2
  95. package/node_modules/@mdream/js/dist/_chunks/const.mjs +0 -134
  96. package/node_modules/@mdream/js/dist/_chunks/index.d.mts +0 -9
  97. package/node_modules/@mdream/js/dist/_chunks/markdown-processor.mjs +0 -1968
  98. package/node_modules/@mdream/js/dist/_chunks/minimal.d.mts +0 -6
  99. package/node_modules/@mdream/js/dist/_chunks/parse.mjs +0 -2756
  100. package/node_modules/@mdream/js/dist/_chunks/plugins.mjs +0 -725
  101. package/node_modules/@mdream/js/dist/_chunks/resolve-plugins.mjs +0 -44
  102. package/node_modules/@mdream/js/dist/_chunks/stream.mjs +0 -37
  103. package/node_modules/@mdream/js/dist/_chunks/types.d.mts +0 -473
  104. package/node_modules/@mdream/js/dist/cli.d.mts +0 -1
  105. package/node_modules/@mdream/js/dist/cli.mjs +0 -32
  106. package/node_modules/@mdream/js/dist/core.d.mts +0 -15
  107. package/node_modules/@mdream/js/dist/core.mjs +0 -28
  108. package/node_modules/@mdream/js/dist/index.d.mts +0 -4
  109. package/node_modules/@mdream/js/dist/index.mjs +0 -58
  110. package/node_modules/@mdream/js/dist/llms-txt.d.mts +0 -86
  111. package/node_modules/@mdream/js/dist/llms-txt.mjs +0 -308
  112. package/node_modules/@mdream/js/dist/negotiate.d.mts +0 -35
  113. package/node_modules/@mdream/js/dist/negotiate.mjs +0 -121
  114. package/node_modules/@mdream/js/dist/parse.d.mts +0 -90
  115. package/node_modules/@mdream/js/dist/parse.mjs +0 -2
  116. package/node_modules/@mdream/js/dist/plugins.d.mts +0 -85
  117. package/node_modules/@mdream/js/dist/plugins.mjs +0 -2
  118. package/node_modules/@mdream/js/dist/preset/minimal.d.mts +0 -2
  119. package/node_modules/@mdream/js/dist/preset/minimal.mjs +0 -33
  120. package/node_modules/@mdream/js/dist/splitter.d.mts +0 -18
  121. package/node_modules/@mdream/js/dist/splitter.mjs +0 -194
  122. package/node_modules/@mdream/js/package.json +0 -103
  123. package/node_modules/cac/LICENSE +0 -21
  124. package/node_modules/cac/README.md +0 -492
  125. package/node_modules/cac/dist/index.d.ts +0 -196
  126. package/node_modules/cac/dist/index.js +0 -638
  127. package/node_modules/cac/package.json +0 -72
  128. package/node_modules/mdream/LICENSE.md +0 -9
  129. package/node_modules/mdream/README.md +0 -1091
  130. package/node_modules/mdream/bin/mdream.mjs +0 -46
  131. package/node_modules/mdream/dist/browser.d.mts +0 -105
  132. package/node_modules/mdream/dist/browser.mjs +0 -262
  133. package/node_modules/mdream/dist/edge.d.mts +0 -100
  134. package/node_modules/mdream/dist/edge.mjs +0 -250
  135. package/node_modules/mdream/dist/iife.js +0 -605
  136. package/node_modules/mdream/dist/index.d.mts +0 -89
  137. package/node_modules/mdream/dist/index.mjs +0 -184
  138. package/node_modules/mdream/dist/wasm.d.mts +0 -100
  139. package/node_modules/mdream/dist/wasm.mjs +0 -140
  140. package/node_modules/mdream/dist/worker.d.mts +0 -101
  141. package/node_modules/mdream/dist/worker.mjs +0 -217
  142. package/node_modules/mdream/napi/index.d.mts +0 -127
  143. package/node_modules/mdream/napi/index.d.ts +0 -127
  144. package/node_modules/mdream/napi/index.mjs +0 -725
  145. package/node_modules/mdream/napi/rust.android-arm-eabi.node +0 -0
  146. package/node_modules/mdream/napi/rust.android-arm64.node +0 -0
  147. package/node_modules/mdream/napi/rust.darwin-arm64.node +0 -0
  148. package/node_modules/mdream/napi/rust.darwin-x64.node +0 -0
  149. package/node_modules/mdream/napi/rust.freebsd-x64.node +0 -0
  150. package/node_modules/mdream/napi/rust.linux-arm-gnueabihf.node +0 -0
  151. package/node_modules/mdream/napi/rust.linux-arm64-gnu.node +0 -0
  152. package/node_modules/mdream/napi/rust.linux-arm64-musl.node +0 -0
  153. package/node_modules/mdream/napi/rust.linux-x64-gnu.node +0 -0
  154. package/node_modules/mdream/napi/rust.linux-x64-musl.node +0 -0
  155. package/node_modules/mdream/napi/rust.wasi.cjs +0 -2144
  156. package/node_modules/mdream/napi/rust.wasm32-wasi.wasm +0 -0
  157. package/node_modules/mdream/napi/rust.win32-arm64-msvc.node +0 -0
  158. package/node_modules/mdream/napi/rust.win32-x64-msvc.node +0 -0
  159. package/node_modules/mdream/node_modules/@emnapi/core/LICENSE +0 -21
  160. package/node_modules/mdream/node_modules/@emnapi/core/README.md +0 -1
  161. package/node_modules/mdream/node_modules/@emnapi/core/dist/emnapi-core.d.ts +0 -392
  162. package/node_modules/mdream/node_modules/@emnapi/core/dist/emnapi-core.full.d.ts +0 -392
  163. package/node_modules/mdream/node_modules/@emnapi/core/dist/emnapi-core.full.js +0 -8351
  164. package/node_modules/mdream/node_modules/@emnapi/core/dist/emnapi-core.js +0 -7268
  165. package/node_modules/mdream/node_modules/@emnapi/core/dist/plugins/async-work.d.ts +0 -5
  166. package/node_modules/mdream/node_modules/@emnapi/core/dist/plugins/async-work.js +0 -843
  167. package/node_modules/mdream/node_modules/@emnapi/core/dist/plugins/index.d.ts +0 -4
  168. package/node_modules/mdream/node_modules/@emnapi/core/dist/plugins/index.js +0 -3
  169. package/node_modules/mdream/node_modules/@emnapi/core/dist/plugins/threadsafe-function.d.ts +0 -5
  170. package/node_modules/mdream/node_modules/@emnapi/core/dist/plugins/threadsafe-function.js +0 -1010
  171. package/node_modules/mdream/node_modules/@emnapi/core/dist/plugins/v8.d.ts +0 -5
  172. package/node_modules/mdream/node_modules/@emnapi/core/dist/plugins/v8.js +0 -1446
  173. package/node_modules/mdream/node_modules/@emnapi/core/node_modules/@emnapi/wasi-threads/LICENSE +0 -21
  174. package/node_modules/mdream/node_modules/@emnapi/core/node_modules/@emnapi/wasi-threads/README.md +0 -203
  175. package/node_modules/mdream/node_modules/@emnapi/core/node_modules/@emnapi/wasi-threads/dist/wasi-threads.d.ts +0 -236
  176. package/node_modules/mdream/node_modules/@emnapi/core/node_modules/@emnapi/wasi-threads/dist/wasi-threads.js +0 -1086
  177. package/node_modules/mdream/node_modules/@emnapi/core/node_modules/@emnapi/wasi-threads/package.json +0 -35
  178. package/node_modules/mdream/node_modules/@emnapi/core/node_modules/@emnapi/wasi-threads/rollup.config.js +0 -6
  179. package/node_modules/mdream/node_modules/@emnapi/core/package.json +0 -39
  180. package/node_modules/mdream/node_modules/@emnapi/core/rollup.config.js +0 -60
  181. package/node_modules/mdream/node_modules/@emnapi/runtime/LICENSE +0 -21
  182. package/node_modules/mdream/node_modules/@emnapi/runtime/README.md +0 -1
  183. package/node_modules/mdream/node_modules/@emnapi/runtime/dist/emnapi.d.ts +0 -833
  184. package/node_modules/mdream/node_modules/@emnapi/runtime/dist/emnapi.js +0 -2306
  185. package/node_modules/mdream/node_modules/@emnapi/runtime/dist/emnapi.js.map +0 -1
  186. package/node_modules/mdream/node_modules/@emnapi/runtime/index.cjs +0 -63
  187. package/node_modules/mdream/node_modules/@emnapi/runtime/package.json +0 -39
  188. package/node_modules/mdream/node_modules/@emnapi/runtime/rollup.config.js +0 -25
  189. package/node_modules/mdream/node_modules/@emnapi/wasi-threads/LICENSE +0 -21
  190. package/node_modules/mdream/node_modules/@emnapi/wasi-threads/README.md +0 -203
  191. package/node_modules/mdream/node_modules/@emnapi/wasi-threads/dist/wasi-threads.d.ts +0 -240
  192. package/node_modules/mdream/node_modules/@emnapi/wasi-threads/dist/wasi-threads.js +0 -1118
  193. package/node_modules/mdream/node_modules/@emnapi/wasi-threads/package.json +0 -35
  194. package/node_modules/mdream/node_modules/@emnapi/wasi-threads/rollup.config.js +0 -6
  195. package/node_modules/mdream/node_modules/@napi-rs/wasm-runtime/dist/emnapi-plugins.cjs +0 -1472
  196. package/node_modules/mdream/node_modules/@napi-rs/wasm-runtime/dist/emnapi-plugins.js +0 -1470
  197. package/node_modules/mdream/node_modules/@napi-rs/wasm-runtime/dist/fs-proxy.cjs +0 -237
  198. package/node_modules/mdream/node_modules/@napi-rs/wasm-runtime/dist/fs.js +0 -17578
  199. package/node_modules/mdream/node_modules/@napi-rs/wasm-runtime/fs-proxy.js +0 -317
  200. package/node_modules/mdream/node_modules/@napi-rs/wasm-runtime/package.json +0 -67
  201. package/node_modules/mdream/node_modules/@napi-rs/wasm-runtime/runtime.cjs +0 -39
  202. package/node_modules/mdream/node_modules/@napi-rs/wasm-runtime/runtime.js +0 -36
  203. package/node_modules/mdream/node_modules/@tybys/wasm-util/LICENSE +0 -21
  204. package/node_modules/mdream/node_modules/@tybys/wasm-util/README.md +0 -193
  205. package/node_modules/mdream/node_modules/@tybys/wasm-util/dist/tsdoc-metadata.json +0 -11
  206. package/node_modules/mdream/node_modules/@tybys/wasm-util/dist/wasm-util.d.ts +0 -423
  207. package/node_modules/mdream/node_modules/@tybys/wasm-util/dist/wasm-util.esm-bundler.js +0 -2932
  208. package/node_modules/mdream/node_modules/@tybys/wasm-util/dist/wasm-util.esm.js +0 -2932
  209. package/node_modules/mdream/node_modules/@tybys/wasm-util/dist/wasm-util.esm.min.js +0 -1
  210. package/node_modules/mdream/node_modules/@tybys/wasm-util/dist/wasm-util.js +0 -2954
  211. package/node_modules/mdream/node_modules/@tybys/wasm-util/dist/wasm-util.min.js +0 -1
  212. package/node_modules/mdream/node_modules/@tybys/wasm-util/lib/cjs/asyncify.js +0 -158
  213. package/node_modules/mdream/node_modules/@tybys/wasm-util/lib/cjs/index.js +0 -13
  214. package/node_modules/mdream/node_modules/@tybys/wasm-util/lib/cjs/jspi.js +0 -46
  215. package/node_modules/mdream/node_modules/@tybys/wasm-util/lib/cjs/load.js +0 -97
  216. package/node_modules/mdream/node_modules/@tybys/wasm-util/lib/cjs/memory.js +0 -35
  217. package/node_modules/mdream/node_modules/@tybys/wasm-util/lib/cjs/wasi/error.js +0 -103
  218. package/node_modules/mdream/node_modules/@tybys/wasm-util/lib/cjs/wasi/fd.js +0 -268
  219. package/node_modules/mdream/node_modules/@tybys/wasm-util/lib/cjs/wasi/fs.js +0 -3
  220. package/node_modules/mdream/node_modules/@tybys/wasm-util/lib/cjs/wasi/index.js +0 -192
  221. package/node_modules/mdream/node_modules/@tybys/wasm-util/lib/cjs/wasi/path.js +0 -316
  222. package/node_modules/mdream/node_modules/@tybys/wasm-util/lib/cjs/wasi/preview1.js +0 -1599
  223. package/node_modules/mdream/node_modules/@tybys/wasm-util/lib/cjs/wasi/rights.js +0 -141
  224. package/node_modules/mdream/node_modules/@tybys/wasm-util/lib/cjs/wasi/types.js +0 -220
  225. package/node_modules/mdream/node_modules/@tybys/wasm-util/lib/cjs/wasi/util.js +0 -128
  226. package/node_modules/mdream/node_modules/@tybys/wasm-util/lib/cjs/webassembly.js +0 -13
  227. package/node_modules/mdream/node_modules/@tybys/wasm-util/lib/mjs/asyncify.mjs +0 -153
  228. package/node_modules/mdream/node_modules/@tybys/wasm-util/lib/mjs/index.mjs +0 -9
  229. package/node_modules/mdream/node_modules/@tybys/wasm-util/lib/mjs/jspi.mjs +0 -39
  230. package/node_modules/mdream/node_modules/@tybys/wasm-util/lib/mjs/load.mjs +0 -89
  231. package/node_modules/mdream/node_modules/@tybys/wasm-util/lib/mjs/memory.mjs +0 -28
  232. package/node_modules/mdream/node_modules/@tybys/wasm-util/lib/mjs/wasi/error.mjs +0 -97
  233. package/node_modules/mdream/node_modules/@tybys/wasm-util/lib/mjs/wasi/fd.mjs +0 -256
  234. package/node_modules/mdream/node_modules/@tybys/wasm-util/lib/mjs/wasi/fs.mjs +0 -1
  235. package/node_modules/mdream/node_modules/@tybys/wasm-util/lib/mjs/wasi/index.mjs +0 -186
  236. package/node_modules/mdream/node_modules/@tybys/wasm-util/lib/mjs/wasi/path.mjs +0 -310
  237. package/node_modules/mdream/node_modules/@tybys/wasm-util/lib/mjs/wasi/preview1.mjs +0 -1593
  238. package/node_modules/mdream/node_modules/@tybys/wasm-util/lib/mjs/wasi/rights.mjs +0 -135
  239. package/node_modules/mdream/node_modules/@tybys/wasm-util/lib/mjs/wasi/types.mjs +0 -216
  240. package/node_modules/mdream/node_modules/@tybys/wasm-util/lib/mjs/wasi/util.mjs +0 -113
  241. package/node_modules/mdream/node_modules/@tybys/wasm-util/lib/mjs/webassembly.mjs +0 -9
  242. package/node_modules/mdream/node_modules/@tybys/wasm-util/package.json +0 -58
  243. package/node_modules/mdream/node_modules/tslib/CopyrightNotice.txt +0 -15
  244. package/node_modules/mdream/node_modules/tslib/LICENSE.txt +0 -12
  245. package/node_modules/mdream/node_modules/tslib/README.md +0 -164
  246. package/node_modules/mdream/node_modules/tslib/SECURITY.md +0 -41
  247. package/node_modules/mdream/node_modules/tslib/modules/index.d.ts +0 -38
  248. package/node_modules/mdream/node_modules/tslib/modules/index.js +0 -70
  249. package/node_modules/mdream/node_modules/tslib/modules/package.json +0 -3
  250. package/node_modules/mdream/node_modules/tslib/package.json +0 -47
  251. package/node_modules/mdream/node_modules/tslib/tslib.d.ts +0 -460
  252. package/node_modules/mdream/node_modules/tslib/tslib.es6.html +0 -1
  253. package/node_modules/mdream/node_modules/tslib/tslib.es6.js +0 -402
  254. package/node_modules/mdream/node_modules/tslib/tslib.es6.mjs +0 -401
  255. package/node_modules/mdream/node_modules/tslib/tslib.html +0 -1
  256. package/node_modules/mdream/node_modules/tslib/tslib.js +0 -484
  257. package/node_modules/mdream/package.json +0 -110
  258. package/node_modules/mdream/skills/mdream/SKILL.md +0 -124
  259. package/node_modules/mdream/skills/mdream/references/runtimes.md +0 -49
  260. package/node_modules/mdream/wasm/mdream_edge.d.ts +0 -90
  261. package/node_modules/mdream/wasm/mdream_edge.js +0 -517
  262. package/node_modules/mdream/wasm/mdream_edge_bg.wasm +0 -0
  263. package/node_modules/mdream/wasm/mdream_edge_bg.wasm.d.ts +0 -20
  264. package/node_modules/mdream/wasm/package.json +0 -17
  265. package/node_modules/mdream/wasm-bundler/mdream_edge.d.ts +0 -45
  266. package/node_modules/mdream/wasm-bundler/mdream_edge.js +0 -13
  267. package/node_modules/mdream/wasm-bundler/mdream_edge_bg.js +0 -413
  268. package/node_modules/mdream/wasm-bundler/mdream_edge_bg.wasm +0 -0
  269. package/node_modules/mdream/wasm-bundler/mdream_edge_bg.wasm.d.ts +0 -20
  270. package/node_modules/mdream/wasm-bundler/package.json +0 -19
  271. package/node_modules/pathe/LICENSE +0 -70
  272. package/node_modules/pathe/README.md +0 -73
  273. package/node_modules/pathe/dist/index.cjs +0 -39
  274. package/node_modules/pathe/dist/index.d.cts +0 -47
  275. package/node_modules/pathe/dist/index.d.mts +0 -47
  276. package/node_modules/pathe/dist/index.d.ts +0 -47
  277. package/node_modules/pathe/dist/index.mjs +0 -19
  278. package/node_modules/pathe/dist/shared/pathe.BSlhyZSM.cjs +0 -266
  279. package/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs +0 -249
  280. package/node_modules/pathe/dist/utils.cjs +0 -82
  281. package/node_modules/pathe/dist/utils.d.cts +0 -32
  282. package/node_modules/pathe/dist/utils.d.mts +0 -32
  283. package/node_modules/pathe/dist/utils.d.ts +0 -32
  284. package/node_modules/pathe/dist/utils.mjs +0 -77
  285. package/node_modules/pathe/package.json +0 -61
  286. package/node_modules/pathe/utils.d.ts +0 -1
@@ -1,517 +0,0 @@
1
- /* @ts-self-types="./mdream_edge.d.ts" */
2
-
3
- export class MarkdownStream {
4
- __destroy_into_raw() {
5
- const ptr = this.__wbg_ptr;
6
- this.__wbg_ptr = 0;
7
- MarkdownStreamFinalization.unregister(this);
8
- return ptr;
9
- }
10
- free() {
11
- const ptr = this.__destroy_into_raw();
12
- wasm.__wbg_markdownstream_free(ptr, 0);
13
- }
14
- /**
15
- * @returns {string}
16
- */
17
- finish() {
18
- let deferred1_0;
19
- let deferred1_1;
20
- try {
21
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
22
- wasm.markdownstream_finish(retptr, this.__wbg_ptr);
23
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
24
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
25
- deferred1_0 = r0;
26
- deferred1_1 = r1;
27
- return getStringFromWasm0(r0, r1);
28
- } finally {
29
- wasm.__wbindgen_add_to_stack_pointer(16);
30
- wasm.__wbindgen_export4(deferred1_0, deferred1_1, 1);
31
- }
32
- }
33
- /**
34
- * @param {any} options
35
- */
36
- constructor(options) {
37
- const ret = wasm.markdownstream_new(addHeapObject(options));
38
- this.__wbg_ptr = ret;
39
- MarkdownStreamFinalization.register(this, this.__wbg_ptr, this);
40
- return this;
41
- }
42
- /**
43
- * Byte chunk in, string out, skipping the transcode per chunk. A sequence
44
- * split across chunks carries to the next call rather than decoding early,
45
- * matching `TextDecoder({ stream: true })`; invalid bytes become U+FFFD.
46
- * @param {Uint8Array} chunk
47
- * @returns {string}
48
- */
49
- processChunkBytes(chunk) {
50
- let deferred2_0;
51
- let deferred2_1;
52
- try {
53
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
54
- const ptr0 = passArray8ToWasm0(chunk, wasm.__wbindgen_export);
55
- const len0 = WASM_VECTOR_LEN;
56
- wasm.markdownstream_processChunkBytes(retptr, this.__wbg_ptr, ptr0, len0);
57
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
58
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
59
- deferred2_0 = r0;
60
- deferred2_1 = r1;
61
- return getStringFromWasm0(r0, r1);
62
- } finally {
63
- wasm.__wbindgen_add_to_stack_pointer(16);
64
- wasm.__wbindgen_export4(deferred2_0, deferred2_1, 1);
65
- }
66
- }
67
- /**
68
- * A carried byte tail cannot be completed by a string chunk, so it is
69
- * flushed first. Byte and string chunks may be mixed freely.
70
- * @param {string} chunk
71
- * @returns {string}
72
- */
73
- processChunk(chunk) {
74
- let deferred2_0;
75
- let deferred2_1;
76
- try {
77
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
78
- const ptr0 = passStringToWasm0(chunk, wasm.__wbindgen_export, wasm.__wbindgen_export2);
79
- const len0 = WASM_VECTOR_LEN;
80
- wasm.markdownstream_processChunk(retptr, this.__wbg_ptr, ptr0, len0);
81
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
82
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
83
- deferred2_0 = r0;
84
- deferred2_1 = r1;
85
- return getStringFromWasm0(r0, r1);
86
- } finally {
87
- wasm.__wbindgen_add_to_stack_pointer(16);
88
- wasm.__wbindgen_export4(deferred2_0, deferred2_1, 1);
89
- }
90
- }
91
- /**
92
- * Frontmatter and extracted elements collected so far, as
93
- * `{ frontmatter?, extracted? }`. Call after `finish()` for the complete
94
- * data. Extracted elements drain on each call.
95
- * @returns {any}
96
- */
97
- takeData() {
98
- const ret = wasm.markdownstream_takeData(this.__wbg_ptr);
99
- return takeObject(ret);
100
- }
101
- }
102
- if (Symbol.dispose) MarkdownStream.prototype[Symbol.dispose] = MarkdownStream.prototype.free;
103
-
104
- /**
105
- * Consumes the message of the panic that aborted the last export call.
106
- * @returns {string | undefined}
107
- */
108
- export function __mdreamTakePanicMessage() {
109
- try {
110
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
111
- wasm.__mdreamTakePanicMessage(retptr);
112
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
113
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
114
- let v1;
115
- if (r0 !== 0) {
116
- v1 = getStringFromWasm0(r0, r1);
117
- wasm.__wbindgen_export4(r0, r1 * 1, 1);
118
- }
119
- return v1;
120
- } finally {
121
- wasm.__wbindgen_add_to_stack_pointer(16);
122
- }
123
- }
124
-
125
- /**
126
- * @param {string} html
127
- * @param {any} options
128
- * @returns {string}
129
- */
130
- export function htmlToMarkdown(html, options) {
131
- let deferred2_0;
132
- let deferred2_1;
133
- try {
134
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
135
- const ptr0 = passStringToWasm0(html, wasm.__wbindgen_export, wasm.__wbindgen_export2);
136
- const len0 = WASM_VECTOR_LEN;
137
- wasm.htmlToMarkdown(retptr, ptr0, len0, addHeapObject(options));
138
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
139
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
140
- deferred2_0 = r0;
141
- deferred2_1 = r1;
142
- return getStringFromWasm0(r0, r1);
143
- } finally {
144
- wasm.__wbindgen_add_to_stack_pointer(16);
145
- wasm.__wbindgen_export4(deferred2_0, deferred2_1, 1);
146
- }
147
- }
148
-
149
- /**
150
- * Bytes in, string out: skips the transcode (~14% of a convert) for a
151
- * caller already holding UTF-8 bytes. Encoding a string to get here
152
- * measures 1-16% *slower* than [`html_to_markdown`] — only worth it when
153
- * the bytes are already in hand.
154
- * @param {Uint8Array} html
155
- * @param {any} options
156
- * @returns {string}
157
- */
158
- export function htmlToMarkdownBytes(html, options) {
159
- let deferred2_0;
160
- let deferred2_1;
161
- try {
162
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
163
- const ptr0 = passArray8ToWasm0(html, wasm.__wbindgen_export);
164
- const len0 = WASM_VECTOR_LEN;
165
- wasm.htmlToMarkdownBytes(retptr, ptr0, len0, addHeapObject(options));
166
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
167
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
168
- deferred2_0 = r0;
169
- deferred2_1 = r1;
170
- return getStringFromWasm0(r0, r1);
171
- } finally {
172
- wasm.__wbindgen_add_to_stack_pointer(16);
173
- wasm.__wbindgen_export4(deferred2_0, deferred2_1, 1);
174
- }
175
- }
176
-
177
- /**
178
- * @param {string} html
179
- * @param {any} options
180
- * @returns {any}
181
- */
182
- export function htmlToMarkdownResult(html, options) {
183
- const ptr0 = passStringToWasm0(html, wasm.__wbindgen_export, wasm.__wbindgen_export2);
184
- const len0 = WASM_VECTOR_LEN;
185
- const ret = wasm.htmlToMarkdownResult(ptr0, len0, addHeapObject(options));
186
- return takeObject(ret);
187
- }
188
-
189
- export function install_panic_hook() {
190
- wasm.install_panic_hook();
191
- }
192
- function __wbg_get_imports() {
193
- const import0 = {
194
- __proto__: null,
195
- __wbg___wbindgen_boolean_get_5b446f51afd21013: function(arg0) {
196
- const v = getObject(arg0);
197
- const ret = typeof(v) === 'boolean' ? v : undefined;
198
- return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
199
- },
200
- __wbg___wbindgen_is_null_e343b7d08827ba72: function(arg0) {
201
- const ret = getObject(arg0) === null;
202
- return ret;
203
- },
204
- __wbg___wbindgen_is_undefined_8865fb403f8fe9d8: function(arg0) {
205
- const ret = getObject(arg0) === undefined;
206
- return ret;
207
- },
208
- __wbg___wbindgen_number_get_2e0e7dee9f701a71: function(arg0, arg1) {
209
- const obj = getObject(arg1);
210
- const ret = typeof(obj) === 'number' ? obj : undefined;
211
- getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
212
- getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
213
- },
214
- __wbg___wbindgen_string_get_0380ccaa2f57f0d9: function(arg0, arg1) {
215
- const obj = getObject(arg1);
216
- const ret = typeof(obj) === 'string' ? obj : undefined;
217
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
218
- var len1 = WASM_VECTOR_LEN;
219
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
220
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
221
- },
222
- __wbg___wbindgen_throw_41e9ee4f547fc59a: function(arg0, arg1) {
223
- throw new Error(getStringFromWasm0(arg0, arg1));
224
- },
225
- __wbg_entries_fb6397112b1de25f: function(arg0) {
226
- const ret = Object.entries(getObject(arg0));
227
- return addHeapObject(ret);
228
- },
229
- __wbg_from_296ca31f8d0f1c52: function(arg0) {
230
- const ret = Array.from(getObject(arg0));
231
- return addHeapObject(ret);
232
- },
233
- __wbg_get_31af05bd4842a84f: function() { return handleError(function (arg0, arg1) {
234
- const ret = Reflect.get(getObject(arg0), getObject(arg1));
235
- return addHeapObject(ret);
236
- }, arguments); },
237
- __wbg_get_6c896e0571ddae51: function(arg0, arg1) {
238
- const ret = getObject(arg0)[arg1 >>> 0];
239
- return addHeapObject(ret);
240
- },
241
- __wbg_isArray_e15a2ff68ffdbef2: function(arg0) {
242
- const ret = Array.isArray(getObject(arg0));
243
- return ret;
244
- },
245
- __wbg_length_d4bdea10311bd9cf: function(arg0) {
246
- const ret = getObject(arg0).length;
247
- return ret;
248
- },
249
- __wbg_new_617a8cdb8bb1130e: function() {
250
- const ret = new Object();
251
- return addHeapObject(ret);
252
- },
253
- __wbg_new_ee2291f50781bf1d: function() {
254
- const ret = new Array();
255
- return addHeapObject(ret);
256
- },
257
- __wbg_push_2baf45db356cf468: function(arg0, arg1) {
258
- const ret = getObject(arg0).push(getObject(arg1));
259
- return ret;
260
- },
261
- __wbg_set_145a351398b48c65: function() { return handleError(function (arg0, arg1, arg2) {
262
- const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
263
- return ret;
264
- }, arguments); },
265
- __wbindgen_generic_0000000000000001: function(arg0, arg1) {
266
- // Cast intrinsic for `Ref(String) -> Externref`.
267
- const ret = getStringFromWasm0(arg0, arg1);
268
- return addHeapObject(ret);
269
- },
270
- __wbindgen_object_clone_ref: function(arg0) {
271
- const ret = getObject(arg0);
272
- return addHeapObject(ret);
273
- },
274
- __wbindgen_object_drop_ref: function(arg0) {
275
- takeObject(arg0);
276
- },
277
- };
278
- return {
279
- __proto__: null,
280
- "./mdream_edge_bg.js": import0,
281
- };
282
- }
283
-
284
- const MarkdownStreamFinalization = (typeof FinalizationRegistry === 'undefined')
285
- ? { register: () => {}, unregister: () => {} }
286
- : new FinalizationRegistry(ptr => wasm.__wbg_markdownstream_free(ptr, 1));
287
-
288
- function addHeapObject(obj) {
289
- if (heap_next === heap.length) heap.push(heap.length + 1);
290
- const idx = heap_next;
291
- heap_next = heap[idx];
292
-
293
- heap[idx] = obj;
294
- return idx;
295
- }
296
-
297
- function dropObject(idx) {
298
- if (idx < 1028) return;
299
- heap[idx] = heap_next;
300
- heap_next = idx;
301
- }
302
-
303
- let cachedDataViewMemory0 = null;
304
- function getDataViewMemory0() {
305
- if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
306
- cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
307
- }
308
- return cachedDataViewMemory0;
309
- }
310
-
311
- function getStringFromWasm0(ptr, len) {
312
- return decodeText(ptr >>> 0, len);
313
- }
314
-
315
- let cachedUint8ArrayMemory0 = null;
316
- function getUint8ArrayMemory0() {
317
- if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
318
- cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
319
- }
320
- return cachedUint8ArrayMemory0;
321
- }
322
-
323
- function getObject(idx) { return heap[idx]; }
324
-
325
- function handleError(f, args) {
326
- try {
327
- return f.apply(this, args);
328
- } catch (e) {
329
- wasm.__wbindgen_export3(addHeapObject(e));
330
- }
331
- }
332
-
333
- let heap = new Array(1024).fill(undefined);
334
- heap.push(undefined, null, true, false);
335
-
336
- let heap_next = heap.length;
337
-
338
- function isLikeNone(x) {
339
- return x === undefined || x === null;
340
- }
341
-
342
- function passArray8ToWasm0(arg, malloc) {
343
- const ptr = malloc(arg.length * 1, 1) >>> 0;
344
- getUint8ArrayMemory0().set(arg, ptr / 1);
345
- WASM_VECTOR_LEN = arg.length;
346
- return ptr;
347
- }
348
-
349
- function passStringToWasm0(arg, malloc, realloc) {
350
- if (realloc === undefined) {
351
- const buf = cachedTextEncoder.encode(arg);
352
- const ptr = malloc(buf.length, 1) >>> 0;
353
- getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
354
- WASM_VECTOR_LEN = buf.length;
355
- return ptr;
356
- }
357
-
358
- let len = arg.length;
359
- let ptr = malloc(len, 1) >>> 0;
360
-
361
- const mem = getUint8ArrayMemory0();
362
-
363
- let offset = 0;
364
-
365
- for (; offset < len; offset++) {
366
- const code = arg.charCodeAt(offset);
367
- if (code > 0x7F) break;
368
- mem[ptr + offset] = code;
369
- }
370
- if (offset !== len) {
371
- if (offset !== 0) {
372
- arg = arg.slice(offset);
373
- }
374
- ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
375
- const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
376
- const ret = cachedTextEncoder.encodeInto(arg, view);
377
-
378
- offset += ret.written;
379
- ptr = realloc(ptr, len, offset, 1) >>> 0;
380
- }
381
-
382
- WASM_VECTOR_LEN = offset;
383
- return ptr;
384
- }
385
-
386
- function takeObject(idx) {
387
- const ret = getObject(idx);
388
- dropObject(idx);
389
- return ret;
390
- }
391
-
392
- let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
393
- cachedTextDecoder.decode();
394
- const MAX_SAFARI_DECODE_BYTES = 2146435072;
395
- let numBytesDecoded = 0;
396
- function decodeText(ptr, len) {
397
- numBytesDecoded += len;
398
- if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
399
- cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
400
- cachedTextDecoder.decode();
401
- numBytesDecoded = len;
402
- }
403
- return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
404
- }
405
-
406
- const cachedTextEncoder = new TextEncoder();
407
-
408
- if (!('encodeInto' in cachedTextEncoder)) {
409
- cachedTextEncoder.encodeInto = function (arg, view) {
410
- const buf = cachedTextEncoder.encode(arg);
411
- view.set(buf);
412
- return {
413
- read: arg.length,
414
- written: buf.length
415
- };
416
- };
417
- }
418
-
419
- let WASM_VECTOR_LEN = 0;
420
-
421
- let wasmModule, wasmInstance, wasm;
422
- function __wbg_finalize_init(instance, module) {
423
- wasmInstance = instance;
424
- wasm = instance.exports;
425
- wasmModule = module;
426
- cachedDataViewMemory0 = null;
427
- cachedUint8ArrayMemory0 = null;
428
- wasm.__wbindgen_start();
429
- return wasm;
430
- }
431
-
432
- async function __wbg_load(module, imports) {
433
- if (typeof Response === 'function' && module instanceof Response) {
434
- if (!module.ok) {
435
- throw new Error(`failed to fetch Wasm: ${module.status} ${module.statusText} fetching '${module.url}'`);
436
- }
437
-
438
- if (typeof WebAssembly.instantiateStreaming === 'function') {
439
- try {
440
- return await WebAssembly.instantiateStreaming(module, imports);
441
- } catch (e) {
442
- const validResponse = expectedResponseType(module.type);
443
-
444
- if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
445
- console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
446
-
447
- } else { throw e; }
448
- }
449
- }
450
-
451
- const bytes = await module.arrayBuffer();
452
- return await WebAssembly.instantiate(bytes, imports);
453
- } else {
454
- const instance = await WebAssembly.instantiate(module, imports);
455
-
456
- if (instance instanceof WebAssembly.Instance) {
457
- return { instance, module };
458
- } else {
459
- return instance;
460
- }
461
- }
462
-
463
- function expectedResponseType(type) {
464
- switch (type) {
465
- case 'basic': case 'cors': case 'default': return true;
466
- }
467
- return false;
468
- }
469
- }
470
-
471
- function initSync(module) {
472
- if (wasm !== undefined) return wasm;
473
-
474
-
475
- if (module !== undefined) {
476
- if (Object.getPrototypeOf(module) === Object.prototype) {
477
- ({module} = module)
478
- } else {
479
- console.warn('using deprecated parameters for `initSync()`; pass a single object instead')
480
- }
481
- }
482
-
483
- const imports = __wbg_get_imports();
484
- if (!(module instanceof WebAssembly.Module)) {
485
- module = new WebAssembly.Module(module);
486
- }
487
- const instance = new WebAssembly.Instance(module, imports);
488
- return __wbg_finalize_init(instance, module);
489
- }
490
-
491
- async function __wbg_init(module_or_path) {
492
- if (wasm !== undefined) return wasm;
493
-
494
-
495
- if (module_or_path !== undefined) {
496
- if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
497
- ({module_or_path} = module_or_path)
498
- } else {
499
- console.warn('using deprecated parameters for the initialization function; pass a single object instead')
500
- }
501
- }
502
-
503
- if (module_or_path === undefined) {
504
- module_or_path = new URL('mdream_edge_bg.wasm', import.meta.url);
505
- }
506
- const imports = __wbg_get_imports();
507
-
508
- if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {
509
- module_or_path = fetch(module_or_path);
510
- }
511
-
512
- const { instance, module } = await __wbg_load(await module_or_path, imports);
513
-
514
- return __wbg_finalize_init(instance, module);
515
- }
516
-
517
- export { initSync, __wbg_init as default };
@@ -1,20 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- export const memory: WebAssembly.Memory;
4
- export const __mdreamTakePanicMessage: (a: number) => void;
5
- export const __wbg_markdownstream_free: (a: number, b: number) => void;
6
- export const htmlToMarkdown: (a: number, b: number, c: number, d: number) => void;
7
- export const htmlToMarkdownBytes: (a: number, b: number, c: number, d: number) => void;
8
- export const htmlToMarkdownResult: (a: number, b: number, c: number) => number;
9
- export const install_panic_hook: () => void;
10
- export const markdownstream_finish: (a: number, b: number) => void;
11
- export const markdownstream_new: (a: number) => number;
12
- export const markdownstream_processChunk: (a: number, b: number, c: number, d: number) => void;
13
- export const markdownstream_processChunkBytes: (a: number, b: number, c: number, d: number) => void;
14
- export const markdownstream_takeData: (a: number) => number;
15
- export const __wbindgen_export: (a: number, b: number) => number;
16
- export const __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
17
- export const __wbindgen_export3: (a: number) => void;
18
- export const __wbindgen_add_to_stack_pointer: (a: number) => number;
19
- export const __wbindgen_export4: (a: number, b: number, c: number) => void;
20
- export const __wbindgen_start: () => void;
@@ -1,17 +0,0 @@
1
- {
2
- "name": "mdream-edge",
3
- "type": "module",
4
- "description": "WebAssembly edge runtime bindings for mdream HTML-to-Markdown converter",
5
- "version": "2.0.0-beta.1",
6
- "license": "MIT",
7
- "files": [
8
- "mdream_edge_bg.wasm",
9
- "mdream_edge.js",
10
- "mdream_edge.d.ts"
11
- ],
12
- "main": "mdream_edge.js",
13
- "types": "mdream_edge.d.ts",
14
- "sideEffects": [
15
- "./snippets/*"
16
- ]
17
- }
@@ -1,45 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
-
4
- export class MarkdownStream {
5
- free(): void;
6
- [Symbol.dispose](): void;
7
- finish(): string;
8
- constructor(options: any);
9
- /**
10
- * Byte chunk in, string out, skipping the transcode per chunk. A sequence
11
- * split across chunks carries to the next call rather than decoding early,
12
- * matching `TextDecoder({ stream: true })`; invalid bytes become U+FFFD.
13
- */
14
- processChunkBytes(chunk: Uint8Array): string;
15
- /**
16
- * A carried byte tail cannot be completed by a string chunk, so it is
17
- * flushed first. Byte and string chunks may be mixed freely.
18
- */
19
- processChunk(chunk: string): string;
20
- /**
21
- * Frontmatter and extracted elements collected so far, as
22
- * `{ frontmatter?, extracted? }`. Call after `finish()` for the complete
23
- * data. Extracted elements drain on each call.
24
- */
25
- takeData(): any;
26
- }
27
-
28
- /**
29
- * Consumes the message of the panic that aborted the last export call.
30
- */
31
- export function __mdreamTakePanicMessage(): string | undefined;
32
-
33
- export function htmlToMarkdown(html: string, options: any): string;
34
-
35
- /**
36
- * Bytes in, string out: skips the transcode (~14% of a convert) for a
37
- * caller already holding UTF-8 bytes. Encoding a string to get here
38
- * measures 1-16% *slower* than [`html_to_markdown`] — only worth it when
39
- * the bytes are already in hand.
40
- */
41
- export function htmlToMarkdownBytes(html: Uint8Array, options: any): string;
42
-
43
- export function htmlToMarkdownResult(html: string, options: any): any;
44
-
45
- export function install_panic_hook(): void;
@@ -1,13 +0,0 @@
1
- /* @ts-self-types="./mdream_edge.d.ts" */
2
- import wasmModule from "./mdream_edge_bg.wasm";
3
- import * as imports from "./mdream_edge_bg.js";
4
- const wasm = wasmModule instanceof WebAssembly.Module
5
- ? new WebAssembly.Instance(wasmModule, { "./mdream_edge_bg.js": imports }).exports
6
- : wasmModule;
7
- import { __wbg_set_wasm } from "./mdream_edge_bg.js";
8
-
9
- __wbg_set_wasm(wasm);
10
- wasm.__wbindgen_start();
11
- export {
12
- MarkdownStream, __mdreamTakePanicMessage, htmlToMarkdown, htmlToMarkdownBytes, htmlToMarkdownResult, install_panic_hook
13
- } from "./mdream_edge_bg.js";