@noodleseed/one 0.4.0 → 0.5.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 (369) hide show
  1. package/dist/agents.d.ts +5 -2
  2. package/dist/agents.d.ts.map +1 -1
  3. package/dist/agents.js +103 -11
  4. package/dist/agents.js.map +1 -1
  5. package/dist/commands/author-loop.d.ts.map +1 -1
  6. package/dist/commands/author-loop.js +23 -1
  7. package/dist/commands/author-loop.js.map +1 -1
  8. package/dist/commands/shared.d.ts.map +1 -1
  9. package/dist/commands/shared.js +2 -1
  10. package/dist/commands/shared.js.map +1 -1
  11. package/dist/config.d.ts +1 -0
  12. package/dist/config.d.ts.map +1 -1
  13. package/dist/config.js.map +1 -1
  14. package/dist/deploy.d.ts.map +1 -1
  15. package/dist/deploy.js +15 -3
  16. package/dist/deploy.js.map +1 -1
  17. package/dist/react-widget-build.d.ts +4 -0
  18. package/dist/react-widget-build.d.ts.map +1 -0
  19. package/dist/react-widget-build.js +176 -0
  20. package/dist/react-widget-build.js.map +1 -0
  21. package/dist/skills-update.d.ts +43 -0
  22. package/dist/skills-update.d.ts.map +1 -0
  23. package/dist/skills-update.js +191 -0
  24. package/dist/skills-update.js.map +1 -0
  25. package/dist/tunnel.d.ts +42 -0
  26. package/dist/tunnel.d.ts.map +1 -0
  27. package/dist/tunnel.js +60 -0
  28. package/dist/tunnel.js.map +1 -0
  29. package/dist/update.d.ts +1 -0
  30. package/dist/update.d.ts.map +1 -1
  31. package/dist/update.js +23 -11
  32. package/dist/update.js.map +1 -1
  33. package/node_modules/@noodle-borg/agent-kit/dist/curated/command-groups.d.ts +10 -0
  34. package/node_modules/@noodle-borg/agent-kit/dist/curated/command-groups.d.ts.map +1 -0
  35. package/node_modules/@noodle-borg/agent-kit/dist/curated/command-groups.js +151 -0
  36. package/node_modules/@noodle-borg/agent-kit/dist/curated/command-groups.js.map +1 -0
  37. package/node_modules/@noodle-borg/agent-kit/dist/curated/error-fixes.d.ts +2 -0
  38. package/node_modules/@noodle-borg/agent-kit/dist/curated/error-fixes.d.ts.map +1 -0
  39. package/node_modules/@noodle-borg/agent-kit/dist/curated/error-fixes.js +49 -0
  40. package/node_modules/@noodle-borg/agent-kit/dist/curated/error-fixes.js.map +1 -0
  41. package/node_modules/@noodle-borg/agent-kit/dist/generated/surface.d.ts +7 -0
  42. package/node_modules/@noodle-borg/agent-kit/dist/generated/surface.d.ts.map +1 -0
  43. package/node_modules/@noodle-borg/agent-kit/dist/generated/surface.js +108 -0
  44. package/node_modules/@noodle-borg/agent-kit/dist/generated/surface.js.map +1 -0
  45. package/node_modules/@noodle-borg/agent-kit/dist/index.d.ts +29 -1
  46. package/node_modules/@noodle-borg/agent-kit/dist/index.d.ts.map +1 -1
  47. package/node_modules/@noodle-borg/agent-kit/dist/index.js +87 -114
  48. package/node_modules/@noodle-borg/agent-kit/dist/index.js.map +1 -1
  49. package/node_modules/@noodle-borg/agent-kit/dist/skill-content.d.ts +17 -0
  50. package/node_modules/@noodle-borg/agent-kit/dist/skill-content.d.ts.map +1 -0
  51. package/node_modules/@noodle-borg/agent-kit/dist/skill-content.js +360 -0
  52. package/node_modules/@noodle-borg/agent-kit/dist/skill-content.js.map +1 -0
  53. package/node_modules/@noodle-borg/agent-kit/package.json +4 -2
  54. package/node_modules/@noodle-borg/authoring/dist/connectors.d.ts +2 -2
  55. package/node_modules/@noodle-borg/authoring/dist/connectors.d.ts.map +1 -1
  56. package/node_modules/@noodle-borg/authoring/dist/connectors.js +4 -2
  57. package/node_modules/@noodle-borg/authoring/dist/connectors.js.map +1 -1
  58. package/node_modules/@noodle-borg/authoring/dist/customer-auth.d.ts +2 -2
  59. package/node_modules/@noodle-borg/authoring/dist/customer-auth.d.ts.map +1 -1
  60. package/node_modules/@noodle-borg/authoring/dist/customer-auth.js +6 -3
  61. package/node_modules/@noodle-borg/authoring/dist/customer-auth.js.map +1 -1
  62. package/node_modules/@noodle-borg/authoring/dist/react.d.ts.map +1 -1
  63. package/node_modules/@noodle-borg/authoring/dist/react.js +148 -9
  64. package/node_modules/@noodle-borg/authoring/dist/react.js.map +1 -1
  65. package/node_modules/@noodle-borg/authoring/package.json +3 -1
  66. package/node_modules/@noodle-borg/compiler/dist/manifest/schema.d.ts +4 -3
  67. package/node_modules/@noodle-borg/compiler/dist/manifest/schema.d.ts.map +1 -1
  68. package/node_modules/@noodle-borg/compiler/dist/manifest/schema.js +20 -9
  69. package/node_modules/@noodle-borg/compiler/dist/manifest/schema.js.map +1 -1
  70. package/node_modules/@noodle-borg/compiler/dist/widget-emit.js +2 -0
  71. package/node_modules/@noodle-borg/compiler/dist/widget-emit.js.map +1 -1
  72. package/node_modules/@noodle-borg/connector-defs/dist/auth-variables.d.ts +3 -0
  73. package/node_modules/@noodle-borg/connector-defs/dist/auth-variables.d.ts.map +1 -0
  74. package/node_modules/@noodle-borg/connector-defs/dist/auth-variables.js +21 -0
  75. package/node_modules/@noodle-borg/connector-defs/dist/auth-variables.js.map +1 -0
  76. package/node_modules/@noodle-borg/connector-defs/dist/compile.d.ts.map +1 -1
  77. package/node_modules/@noodle-borg/connector-defs/dist/compile.js +5 -0
  78. package/node_modules/@noodle-borg/connector-defs/dist/compile.js.map +1 -1
  79. package/node_modules/@noodle-borg/connector-defs/dist/schema.d.ts.map +1 -1
  80. package/node_modules/@noodle-borg/connector-defs/dist/schema.js +11 -2
  81. package/node_modules/@noodle-borg/connector-defs/dist/schema.js.map +1 -1
  82. package/node_modules/@noodle-borg/connector-defs/dist/variables.d.ts +1 -0
  83. package/node_modules/@noodle-borg/connector-defs/dist/variables.d.ts.map +1 -1
  84. package/node_modules/@noodle-borg/connector-defs/dist/variables.js +7 -0
  85. package/node_modules/@noodle-borg/connector-defs/dist/variables.js.map +1 -1
  86. package/node_modules/@noodle-borg/protocol/dist/widget/bootstrap.d.ts.map +1 -1
  87. package/node_modules/@noodle-borg/protocol/dist/widget/bootstrap.js +14 -0
  88. package/node_modules/@noodle-borg/protocol/dist/widget/bootstrap.js.map +1 -1
  89. package/node_modules/@noodle-borg/protocol/dist/widget/react-bridge-bootstrap.d.ts +3 -0
  90. package/node_modules/@noodle-borg/protocol/dist/widget/react-bridge-bootstrap.d.ts.map +1 -0
  91. package/node_modules/@noodle-borg/protocol/dist/widget/react-bridge-bootstrap.js +30 -0
  92. package/node_modules/@noodle-borg/protocol/dist/widget/react-bridge-bootstrap.js.map +1 -0
  93. package/node_modules/@noodle-borg/service/dist/credential-broker.d.ts.map +1 -1
  94. package/node_modules/@noodle-borg/service/dist/credential-broker.js +27 -6
  95. package/node_modules/@noodle-borg/service/dist/credential-broker.js.map +1 -1
  96. package/node_modules/@noodle-borg/service/dist/managed-config-expressions.d.ts +6 -0
  97. package/node_modules/@noodle-borg/service/dist/managed-config-expressions.d.ts.map +1 -0
  98. package/node_modules/@noodle-borg/service/dist/managed-config-expressions.js +80 -0
  99. package/node_modules/@noodle-borg/service/dist/managed-config-expressions.js.map +1 -0
  100. package/node_modules/@noodle-borg/service/dist/registry.d.ts.map +1 -1
  101. package/node_modules/@noodle-borg/service/dist/registry.js +5 -1
  102. package/node_modules/@noodle-borg/service/dist/registry.js.map +1 -1
  103. package/node_modules/@noodle-borg/service/dist/serve.d.ts.map +1 -1
  104. package/node_modules/@noodle-borg/service/dist/serve.js +5 -1
  105. package/node_modules/@noodle-borg/service/dist/serve.js.map +1 -1
  106. package/node_modules/@oxc-project/types/LICENSE +22 -0
  107. package/node_modules/@oxc-project/types/README.md +3 -0
  108. package/node_modules/@oxc-project/types/package.json +26 -0
  109. package/node_modules/@oxc-project/types/types.d.ts +1912 -0
  110. package/node_modules/@rolldown/binding-linux-x64-gnu/README.md +3 -0
  111. package/node_modules/@rolldown/binding-linux-x64-gnu/package.json +40 -0
  112. package/node_modules/@rolldown/binding-linux-x64-gnu/rolldown-binding.linux-x64-gnu.node +0 -0
  113. package/node_modules/@rolldown/pluginutils/LICENSE +21 -0
  114. package/node_modules/@rolldown/pluginutils/README.md +145 -0
  115. package/node_modules/@rolldown/pluginutils/dist/filter/index.d.mts +194 -0
  116. package/node_modules/@rolldown/pluginutils/dist/filter/index.mjs +2 -0
  117. package/node_modules/@rolldown/pluginutils/dist/filter-B_mD-HGz.mjs +323 -0
  118. package/node_modules/@rolldown/pluginutils/dist/index.d.mts +2 -0
  119. package/node_modules/@rolldown/pluginutils/dist/index.mjs +2 -0
  120. package/node_modules/@rolldown/pluginutils/package.json +40 -0
  121. package/node_modules/@vitejs/plugin-react/LICENSE +21 -0
  122. package/node_modules/@vitejs/plugin-react/README.md +169 -0
  123. package/node_modules/@vitejs/plugin-react/dist/index.d.ts +48 -0
  124. package/node_modules/@vitejs/plugin-react/dist/index.js +200 -0
  125. package/node_modules/@vitejs/plugin-react/dist/refresh-runtime.js +663 -0
  126. package/node_modules/@vitejs/plugin-react/package.json +87 -0
  127. package/node_modules/@vitejs/plugin-react/types/optionalTypes.d.ts +12 -0
  128. package/node_modules/@vitejs/plugin-react/types/preamble.d.ts +1 -0
  129. package/node_modules/detect-libc/LICENSE +201 -0
  130. package/node_modules/detect-libc/README.md +163 -0
  131. package/node_modules/detect-libc/index.d.ts +14 -0
  132. package/node_modules/detect-libc/lib/detect-libc.js +313 -0
  133. package/node_modules/detect-libc/lib/elf.js +39 -0
  134. package/node_modules/detect-libc/lib/filesystem.js +51 -0
  135. package/node_modules/detect-libc/lib/process.js +24 -0
  136. package/node_modules/detect-libc/package.json +44 -0
  137. package/node_modules/fdir/LICENSE +7 -0
  138. package/node_modules/fdir/README.md +91 -0
  139. package/node_modules/fdir/dist/index.cjs +588 -0
  140. package/node_modules/fdir/dist/index.d.cts +155 -0
  141. package/node_modules/fdir/dist/index.d.mts +155 -0
  142. package/node_modules/fdir/dist/index.mjs +570 -0
  143. package/node_modules/fdir/package.json +103 -0
  144. package/node_modules/lightningcss/LICENSE +373 -0
  145. package/node_modules/lightningcss/README.md +105 -0
  146. package/node_modules/lightningcss/node/ast.d.ts +9892 -0
  147. package/node_modules/lightningcss/node/ast.js.flow +10539 -0
  148. package/node_modules/lightningcss/node/browserslistToTargets.js +48 -0
  149. package/node_modules/lightningcss/node/composeVisitors.js +450 -0
  150. package/node_modules/lightningcss/node/flags.js +28 -0
  151. package/node_modules/lightningcss/node/index.d.ts +494 -0
  152. package/node_modules/lightningcss/node/index.js +59 -0
  153. package/node_modules/lightningcss/node/index.js.flow +843 -0
  154. package/node_modules/lightningcss/node/index.mjs +4 -0
  155. package/node_modules/lightningcss/node/targets.d.ts +40 -0
  156. package/node_modules/lightningcss/node/targets.js.flow +39 -0
  157. package/node_modules/lightningcss/package.json +110 -0
  158. package/node_modules/lightningcss-linux-x64-gnu/LICENSE +373 -0
  159. package/node_modules/lightningcss-linux-x64-gnu/README.md +1 -0
  160. package/node_modules/lightningcss-linux-x64-gnu/lightningcss.linux-x64-gnu.node +0 -0
  161. package/node_modules/lightningcss-linux-x64-gnu/package.json +37 -0
  162. package/node_modules/nanoid/.claude/settings.local.json +14 -0
  163. package/node_modules/nanoid/LICENSE +20 -0
  164. package/node_modules/nanoid/README.md +39 -0
  165. package/node_modules/nanoid/async/index.browser.cjs +69 -0
  166. package/node_modules/nanoid/async/index.browser.js +34 -0
  167. package/node_modules/nanoid/async/index.cjs +71 -0
  168. package/node_modules/nanoid/async/index.d.ts +56 -0
  169. package/node_modules/nanoid/async/index.js +35 -0
  170. package/node_modules/nanoid/async/index.native.js +26 -0
  171. package/node_modules/nanoid/async/package.json +12 -0
  172. package/node_modules/nanoid/bin/nanoid.cjs +55 -0
  173. package/node_modules/nanoid/index.browser.cjs +72 -0
  174. package/node_modules/nanoid/index.browser.js +34 -0
  175. package/node_modules/nanoid/index.cjs +86 -0
  176. package/node_modules/nanoid/index.d.cts +91 -0
  177. package/node_modules/nanoid/index.d.ts +91 -0
  178. package/node_modules/nanoid/index.js +46 -0
  179. package/node_modules/nanoid/nanoid.js +1 -0
  180. package/node_modules/nanoid/non-secure/index.cjs +34 -0
  181. package/node_modules/nanoid/non-secure/index.d.ts +33 -0
  182. package/node_modules/nanoid/non-secure/index.js +21 -0
  183. package/node_modules/nanoid/non-secure/package.json +6 -0
  184. package/node_modules/nanoid/package.json +89 -0
  185. package/node_modules/nanoid/url-alphabet/index.cjs +7 -0
  186. package/node_modules/nanoid/url-alphabet/index.js +3 -0
  187. package/node_modules/nanoid/url-alphabet/package.json +6 -0
  188. package/node_modules/picocolors/LICENSE +15 -0
  189. package/node_modules/picocolors/README.md +21 -0
  190. package/node_modules/picocolors/package.json +25 -0
  191. package/node_modules/picocolors/picocolors.browser.js +4 -0
  192. package/node_modules/picocolors/picocolors.d.ts +5 -0
  193. package/node_modules/picocolors/picocolors.js +75 -0
  194. package/node_modules/picocolors/types.d.ts +51 -0
  195. package/node_modules/picomatch/LICENSE +21 -0
  196. package/node_modules/picomatch/README.md +749 -0
  197. package/node_modules/picomatch/index.js +17 -0
  198. package/node_modules/picomatch/lib/constants.js +184 -0
  199. package/node_modules/picomatch/lib/parse.js +1386 -0
  200. package/node_modules/picomatch/lib/picomatch.js +349 -0
  201. package/node_modules/picomatch/lib/scan.js +391 -0
  202. package/node_modules/picomatch/lib/utils.js +72 -0
  203. package/node_modules/picomatch/package.json +82 -0
  204. package/node_modules/picomatch/posix.js +3 -0
  205. package/node_modules/postcss/LICENSE +20 -0
  206. package/node_modules/postcss/README.md +28 -0
  207. package/node_modules/postcss/lib/at-rule.d.ts +139 -0
  208. package/node_modules/postcss/lib/at-rule.js +25 -0
  209. package/node_modules/postcss/lib/comment.d.ts +67 -0
  210. package/node_modules/postcss/lib/comment.js +13 -0
  211. package/node_modules/postcss/lib/container.d.ts +478 -0
  212. package/node_modules/postcss/lib/container.js +447 -0
  213. package/node_modules/postcss/lib/css-syntax-error.d.ts +247 -0
  214. package/node_modules/postcss/lib/css-syntax-error.js +133 -0
  215. package/node_modules/postcss/lib/declaration.d.ts +150 -0
  216. package/node_modules/postcss/lib/declaration.js +24 -0
  217. package/node_modules/postcss/lib/document.d.ts +68 -0
  218. package/node_modules/postcss/lib/document.js +33 -0
  219. package/node_modules/postcss/lib/fromJSON.d.ts +9 -0
  220. package/node_modules/postcss/lib/fromJSON.js +54 -0
  221. package/node_modules/postcss/lib/input.d.ts +226 -0
  222. package/node_modules/postcss/lib/input.js +273 -0
  223. package/node_modules/postcss/lib/lazy-result.d.ts +189 -0
  224. package/node_modules/postcss/lib/lazy-result.js +563 -0
  225. package/node_modules/postcss/lib/list.d.ts +60 -0
  226. package/node_modules/postcss/lib/list.js +58 -0
  227. package/node_modules/postcss/lib/map-generator.js +376 -0
  228. package/node_modules/postcss/lib/no-work-result.d.ts +45 -0
  229. package/node_modules/postcss/lib/no-work-result.js +137 -0
  230. package/node_modules/postcss/lib/node.d.ts +555 -0
  231. package/node_modules/postcss/lib/node.js +449 -0
  232. package/node_modules/postcss/lib/parse.d.ts +9 -0
  233. package/node_modules/postcss/lib/parse.js +42 -0
  234. package/node_modules/postcss/lib/parser.js +618 -0
  235. package/node_modules/postcss/lib/postcss.d.mts +66 -0
  236. package/node_modules/postcss/lib/postcss.d.ts +461 -0
  237. package/node_modules/postcss/lib/postcss.js +101 -0
  238. package/node_modules/postcss/lib/postcss.mjs +30 -0
  239. package/node_modules/postcss/lib/previous-map.d.ts +80 -0
  240. package/node_modules/postcss/lib/previous-map.js +161 -0
  241. package/node_modules/postcss/lib/processor.d.ts +114 -0
  242. package/node_modules/postcss/lib/processor.js +67 -0
  243. package/node_modules/postcss/lib/result.d.ts +204 -0
  244. package/node_modules/postcss/lib/result.js +42 -0
  245. package/node_modules/postcss/lib/root.d.ts +86 -0
  246. package/node_modules/postcss/lib/root.js +61 -0
  247. package/node_modules/postcss/lib/rule.d.ts +126 -0
  248. package/node_modules/postcss/lib/rule.js +27 -0
  249. package/node_modules/postcss/lib/stringifier.d.ts +45 -0
  250. package/node_modules/postcss/lib/stringifier.js +374 -0
  251. package/node_modules/postcss/lib/stringify.d.ts +9 -0
  252. package/node_modules/postcss/lib/stringify.js +11 -0
  253. package/node_modules/postcss/lib/symbols.js +5 -0
  254. package/node_modules/postcss/lib/terminal-highlight.js +70 -0
  255. package/node_modules/postcss/lib/tokenize.js +270 -0
  256. package/node_modules/postcss/lib/warn-once.js +13 -0
  257. package/node_modules/postcss/lib/warning.d.ts +146 -0
  258. package/node_modules/postcss/lib/warning.js +37 -0
  259. package/node_modules/postcss/package.json +88 -0
  260. package/node_modules/rolldown/LICENSE +25 -0
  261. package/node_modules/rolldown/README.md +11 -0
  262. package/node_modules/rolldown/bin/cli.mjs +2 -0
  263. package/node_modules/rolldown/dist/cli.d.mts +1 -0
  264. package/node_modules/rolldown/dist/cli.mjs +1202 -0
  265. package/node_modules/rolldown/dist/config.d.mts +14 -0
  266. package/node_modules/rolldown/dist/config.mjs +4 -0
  267. package/node_modules/rolldown/dist/experimental-index.d.mts +280 -0
  268. package/node_modules/rolldown/dist/experimental-index.mjs +330 -0
  269. package/node_modules/rolldown/dist/experimental-runtime-types.d.ts +107 -0
  270. package/node_modules/rolldown/dist/filter-index.d.mts +195 -0
  271. package/node_modules/rolldown/dist/filter-index.mjs +380 -0
  272. package/node_modules/rolldown/dist/get-log-filter.d.mts +3 -0
  273. package/node_modules/rolldown/dist/get-log-filter.mjs +68 -0
  274. package/node_modules/rolldown/dist/index.d.mts +4 -0
  275. package/node_modules/rolldown/dist/index.mjs +50 -0
  276. package/node_modules/rolldown/dist/parallel-plugin-worker.d.mts +1 -0
  277. package/node_modules/rolldown/dist/parallel-plugin-worker.mjs +28 -0
  278. package/node_modules/rolldown/dist/parallel-plugin.d.mts +13 -0
  279. package/node_modules/rolldown/dist/parallel-plugin.mjs +6 -0
  280. package/node_modules/rolldown/dist/parse-ast-index.d.mts +32 -0
  281. package/node_modules/rolldown/dist/parse-ast-index.mjs +60 -0
  282. package/node_modules/rolldown/dist/plugins-index.d.mts +33 -0
  283. package/node_modules/rolldown/dist/plugins-index.mjs +40 -0
  284. package/node_modules/rolldown/dist/shared/binding-B1q9aYT-.d.mts +1947 -0
  285. package/node_modules/rolldown/dist/shared/binding-Dh6LYCIB.mjs +589 -0
  286. package/node_modules/rolldown/dist/shared/bindingify-input-options-CzVhGygm.mjs +2240 -0
  287. package/node_modules/rolldown/dist/shared/constructors-688OwP2q.mjs +65 -0
  288. package/node_modules/rolldown/dist/shared/constructors-awZ1VNvg.d.mts +36 -0
  289. package/node_modules/rolldown/dist/shared/define-config-Demdg3_4.mjs +6 -0
  290. package/node_modules/rolldown/dist/shared/define-config-sxBscJ3M.d.mts +3901 -0
  291. package/node_modules/rolldown/dist/shared/error-B68YLzl3.mjs +85 -0
  292. package/node_modules/rolldown/dist/shared/get-log-filter-BpNVNJ5-.d.mts +35 -0
  293. package/node_modules/rolldown/dist/shared/load-config-BvPPEM7l.mjs +120 -0
  294. package/node_modules/rolldown/dist/shared/logging-BSNejiLS.d.mts +50 -0
  295. package/node_modules/rolldown/dist/shared/logs-aMKUxRpj.mjs +180 -0
  296. package/node_modules/rolldown/dist/shared/misc-CoQm4NHO.mjs +21 -0
  297. package/node_modules/rolldown/dist/shared/normalize-string-or-regex-BpXHYeN4.mjs +68 -0
  298. package/node_modules/rolldown/dist/shared/parse-CTgsjpo8.mjs +74 -0
  299. package/node_modules/rolldown/dist/shared/prompt-B1Yc1NPt.mjs +847 -0
  300. package/node_modules/rolldown/dist/shared/resolve-tsconfig-BkhP9bkX.mjs +124 -0
  301. package/node_modules/rolldown/dist/shared/rolldown-Brph2NSU.mjs +40 -0
  302. package/node_modules/rolldown/dist/shared/rolldown-build-DR0wzp0V.mjs +3264 -0
  303. package/node_modules/rolldown/dist/shared/transform-CEmFsvJW.d.mts +149 -0
  304. package/node_modules/rolldown/dist/shared/watch-FrHSqg24.mjs +374 -0
  305. package/node_modules/rolldown/dist/utils-index.d.mts +376 -0
  306. package/node_modules/rolldown/dist/utils-index.mjs +2414 -0
  307. package/node_modules/rolldown/package.json +153 -0
  308. package/node_modules/source-map-js/LICENSE +28 -0
  309. package/node_modules/source-map-js/README.md +765 -0
  310. package/node_modules/source-map-js/lib/array-set.js +121 -0
  311. package/node_modules/source-map-js/lib/base64-vlq.js +140 -0
  312. package/node_modules/source-map-js/lib/base64.js +67 -0
  313. package/node_modules/source-map-js/lib/binary-search.js +111 -0
  314. package/node_modules/source-map-js/lib/mapping-list.js +79 -0
  315. package/node_modules/source-map-js/lib/quick-sort.js +132 -0
  316. package/node_modules/source-map-js/lib/source-map-consumer.d.ts +1 -0
  317. package/node_modules/source-map-js/lib/source-map-consumer.js +1188 -0
  318. package/node_modules/source-map-js/lib/source-map-generator.d.ts +1 -0
  319. package/node_modules/source-map-js/lib/source-map-generator.js +444 -0
  320. package/node_modules/source-map-js/lib/source-node.d.ts +1 -0
  321. package/node_modules/source-map-js/lib/source-node.js +413 -0
  322. package/node_modules/source-map-js/lib/util.js +594 -0
  323. package/node_modules/source-map-js/package.json +71 -0
  324. package/node_modules/source-map-js/source-map.d.ts +104 -0
  325. package/node_modules/source-map-js/source-map.js +8 -0
  326. package/node_modules/tinyglobby/LICENSE +21 -0
  327. package/node_modules/tinyglobby/README.md +25 -0
  328. package/node_modules/tinyglobby/dist/index.cjs +335 -0
  329. package/node_modules/tinyglobby/dist/index.d.cts +148 -0
  330. package/node_modules/tinyglobby/dist/index.d.mts +148 -0
  331. package/node_modules/tinyglobby/dist/index.mjs +307 -0
  332. package/node_modules/tinyglobby/package.json +70 -0
  333. package/node_modules/vite/LICENSE.md +2287 -0
  334. package/node_modules/vite/README.md +20 -0
  335. package/node_modules/vite/bin/openChrome.js +68 -0
  336. package/node_modules/vite/bin/vite.js +79 -0
  337. package/node_modules/vite/client.d.ts +285 -0
  338. package/node_modules/vite/dist/client/client.mjs +1269 -0
  339. package/node_modules/vite/dist/client/env.mjs +18 -0
  340. package/node_modules/vite/dist/node/chunks/build.js +5371 -0
  341. package/node_modules/vite/dist/node/chunks/dist.js +6784 -0
  342. package/node_modules/vite/dist/node/chunks/lib.js +371 -0
  343. package/node_modules/vite/dist/node/chunks/logger.js +364 -0
  344. package/node_modules/vite/dist/node/chunks/moduleRunnerTransport.d.ts +96 -0
  345. package/node_modules/vite/dist/node/chunks/node.js +35770 -0
  346. package/node_modules/vite/dist/node/chunks/postcss-import.js +467 -0
  347. package/node_modules/vite/dist/node/cli.js +836 -0
  348. package/node_modules/vite/dist/node/index.d.ts +4010 -0
  349. package/node_modules/vite/dist/node/index.js +3 -0
  350. package/node_modules/vite/dist/node/internal.d.ts +2 -0
  351. package/node_modules/vite/dist/node/internal.js +2 -0
  352. package/node_modules/vite/dist/node/module-runner.d.ts +314 -0
  353. package/node_modules/vite/dist/node/module-runner.js +1274 -0
  354. package/node_modules/vite/misc/false.js +1 -0
  355. package/node_modules/vite/misc/true.js +1 -0
  356. package/node_modules/vite/package.json +194 -0
  357. package/node_modules/vite/types/customEvent.d.ts +79 -0
  358. package/node_modules/vite/types/hmrPayload.d.ts +80 -0
  359. package/node_modules/vite/types/hot.d.ts +39 -0
  360. package/node_modules/vite/types/import-meta.d.ts +5 -0
  361. package/node_modules/vite/types/importGlob.d.ts +131 -0
  362. package/node_modules/vite/types/importMeta.d.ts +30 -0
  363. package/node_modules/vite/types/internal/cssPreprocessorOptions.d.ts +44 -0
  364. package/node_modules/vite/types/internal/esbuildOptions.d.ts +28 -0
  365. package/node_modules/vite/types/internal/lightningcssOptions.d.ts +18 -0
  366. package/node_modules/vite/types/internal/rollupTypeCompat.d.ts +24 -0
  367. package/node_modules/vite/types/internal/terserOptions.d.ts +11 -0
  368. package/node_modules/vite/types/metadata.d.ts +47 -0
  369. package/package.json +22 -2
@@ -0,0 +1,14 @@
1
+ import { I as VERSION, r as defineConfig, t as ConfigExport } from "./shared/define-config-sxBscJ3M.mjs";
2
+
3
+ //#region src/utils/load-config.d.ts
4
+ /**
5
+ * Load config from a file in a way that Rolldown does.
6
+ *
7
+ * @param configPath The path to the config file. If empty, it will look for `rolldown.config` with supported extensions in the current working directory.
8
+ * @returns The loaded config export
9
+ *
10
+ * @category Config
11
+ */
12
+ declare function loadConfig(configPath: string): Promise<ConfigExport>;
13
+ //#endregion
14
+ export { VERSION, defineConfig, loadConfig };
@@ -0,0 +1,4 @@
1
+ import { x as VERSION } from "./shared/bindingify-input-options-CzVhGygm.mjs";
2
+ import { t as defineConfig } from "./shared/define-config-Demdg3_4.mjs";
3
+ import { t as loadConfig } from "./shared/load-config-BvPPEM7l.mjs";
4
+ export { VERSION, defineConfig, loadConfig };
@@ -0,0 +1,280 @@
1
+ import { B as ResolveResult, C as BindingViteManifestPluginConfig, G as isolatedDeclaration, I as NapiResolveOptions, K as isolatedDeclarationSync, M as IsolatedDeclarationsResult, O as BindingViteTransformPluginConfig, V as ResolverFactory, _ as BindingTsconfigRawOptions, f as BindingRebuildStrategy, g as BindingTsconfigCompilerOptions, i as BindingClientHmrUpdate, j as IsolatedDeclarationsOptions, n as BindingBundleAnalyzerPluginConfig, q as moduleRunnerTransform, r as BindingBundleState } from "./shared/binding-B1q9aYT-.mjs";
2
+ import { Jt as RolldownOutput, P as BuiltinPlugin, Ut as StringOrRegExp, Xt as freeExternalMemory, Z as defineParallelPlugin, ct as NormalizedOutputOptions, l as InputOptions, zt as OutputOptions } from "./shared/define-config-sxBscJ3M.mjs";
3
+ import { a as MinifyOptions$1, c as minifySync$1, d as parse$1, f as parseSync$1, i as transformSync$1, l as ParseResult$1, m as resolveTsconfig, n as TransformResult$1, o as MinifyResult$1, p as TsconfigCache$1, r as transform$1, s as minify$1, t as TransformOptions$1, u as ParserOptions$1 } from "./shared/transform-CEmFsvJW.mjs";
4
+ import { a as viteDynamicImportVarsPlugin, c as viteLoadFallbackPlugin, d as viteReporterPlugin, f as viteResolvePlugin, i as viteBuildImportAnalysisPlugin, l as viteModulePreloadPolyfillPlugin, n as isolatedDeclarationPlugin, o as viteImportGlobPlugin, p as viteWebWorkerPostPlugin, r as oxcRuntimePlugin, s as viteJsonPlugin, u as viteReactRefreshWrapperPlugin } from "./shared/constructors-awZ1VNvg.mjs";
5
+
6
+ //#region src/api/dev/dev-options.d.ts
7
+ type DevOnHmrUpdates = (result: Error | {
8
+ updates: BindingClientHmrUpdate[];
9
+ changedFiles: string[];
10
+ }) => void | Promise<void>;
11
+ type DevOnOutput = (result: Error | RolldownOutput) => void | Promise<void>;
12
+ type DevOnAdditionalAssets = (output: RolldownOutput) => void | Promise<void>;
13
+ interface DevWatchOptions {
14
+ /**
15
+ * If `true`, files are not written to disk.
16
+ * @default false
17
+ */
18
+ skipWrite?: boolean;
19
+ /**
20
+ * If `true`, use polling instead of native file system events for watching.
21
+ * @default false
22
+ */
23
+ usePolling?: boolean;
24
+ /**
25
+ * Poll interval in milliseconds (only used when usePolling is true).
26
+ * @default 100
27
+ */
28
+ pollInterval?: number;
29
+ /**
30
+ * If `true`, use debounced watcher. If `false`, use non-debounced watcher for immediate responses.
31
+ * @default true
32
+ */
33
+ useDebounce?: boolean;
34
+ /**
35
+ * Debounce duration in milliseconds (only used when useDebounce is true).
36
+ * @default 10
37
+ */
38
+ debounceDuration?: number;
39
+ /**
40
+ * Whether to compare file contents for poll-based watchers (only used when usePolling is true).
41
+ * When enabled, poll watchers will check file contents to determine if they actually changed.
42
+ * @default false
43
+ */
44
+ compareContentsForPolling?: boolean;
45
+ /**
46
+ * Tick rate in milliseconds for debounced watchers (only used when useDebounce is true).
47
+ * Controls how frequently the debouncer checks for events to process.
48
+ * When not specified, the debouncer will auto-select an appropriate tick rate (1/4 of the debounce duration).
49
+ * @default undefined (auto-select)
50
+ */
51
+ debounceTickRate?: number;
52
+ /**
53
+ * Filter to limit which discovered files are registered with the file watcher.
54
+ *
55
+ * Strings are treated as glob patterns.
56
+ *
57
+ * @default []
58
+ */
59
+ include?: StringOrRegExp | StringOrRegExp[];
60
+ /**
61
+ * Filter to prevent discovered files from being registered with the file watcher.
62
+ *
63
+ * Strings are treated as glob patterns.
64
+ *
65
+ * @default []
66
+ */
67
+ exclude?: StringOrRegExp | StringOrRegExp[];
68
+ }
69
+ interface DevOptions {
70
+ onHmrUpdates?: DevOnHmrUpdates;
71
+ onOutput?: DevOnOutput;
72
+ /**
73
+ * Called with assets emitted while generating an HMR patch or compiling a
74
+ * lazy entry (e.g. an image newly imported by the changed/lazy module).
75
+ *
76
+ * These never go through {@link onOutput}, so a consumer that serves built
77
+ * files (e.g. Vite's bundled dev server) must register this to receive them
78
+ * and write them to its in-memory file store before the client requests them.
79
+ */
80
+ onAdditionalAssets?: DevOnAdditionalAssets;
81
+ /**
82
+ * Strategy for triggering rebuilds after HMR updates.
83
+ * - `'always'`: Always trigger a rebuild after HMR updates
84
+ * - `'auto'`: Trigger rebuild only if HMR updates contain full reload updates
85
+ * - `'never'`: Never trigger rebuild after HMR updates (default)
86
+ * @default 'auto'
87
+ */
88
+ rebuildStrategy?: "always" | "auto" | "never";
89
+ watch?: DevWatchOptions;
90
+ }
91
+ //#endregion
92
+ //#region src/api/dev/dev-engine.d.ts
93
+ declare class DevEngine {
94
+ #private;
95
+ static create(inputOptions: InputOptions, outputOptions?: OutputOptions, devOptions?: DevOptions): Promise<DevEngine>;
96
+ private constructor();
97
+ run(): Promise<void>;
98
+ ensureCurrentBuildFinish(): Promise<void>;
99
+ getBundleState(): Promise<BindingBundleState>;
100
+ ensureLatestBuildOutput(): Promise<void>;
101
+ triggerFullBuild(): void;
102
+ invalidate(file: string, firstInvalidatedBy?: string): Promise<BindingClientHmrUpdate[]>;
103
+ registerModules(clientId: string, modules: string[]): Promise<void>;
104
+ removeClient(clientId: string): Promise<void>;
105
+ close(): Promise<void>;
106
+ /**
107
+ * Compile a lazy entry module and return HMR-style patch code.
108
+ *
109
+ * This is called when a dynamically imported module is first requested at runtime.
110
+ * The module was previously stubbed with a proxy, and now we need to compile the
111
+ * actual module and its dependencies.
112
+ *
113
+ * @param moduleId - The absolute file path of the module to compile
114
+ * @param clientId - The client ID requesting this compilation
115
+ * @returns The compiled JavaScript code as a string (HMR patch format)
116
+ */
117
+ compileEntry(moduleId: string, clientId: string): Promise<string>;
118
+ }
119
+ //#endregion
120
+ //#region src/api/dev/index.d.ts
121
+ declare const dev: typeof DevEngine.create;
122
+ //#endregion
123
+ //#region src/api/experimental.d.ts
124
+ /**
125
+ * This is an experimental API. Its behavior may change in the future.
126
+ *
127
+ * - Calling this API will only execute the `scan/build` stage of rolldown.
128
+ * - `scan` will clean up all resources automatically, but if you want to ensure timely cleanup, you need to wait for the returned promise to resolve.
129
+ *
130
+ * @example To ensure cleanup of resources, use the returned promise to wait for the scan to complete.
131
+ * ```ts
132
+ * import { scan } from 'rolldown/api/experimental';
133
+ *
134
+ * const cleanupPromise = await scan(...);
135
+ * await cleanupPromise;
136
+ * // Now all resources have been cleaned up.
137
+ * ```
138
+ */
139
+ declare const scan: (rawInputOptions: InputOptions, rawOutputOptions?: {}) => Promise<Promise<void>>;
140
+ //#endregion
141
+ //#region src/builtin-plugin/alias-plugin.d.ts
142
+ type ViteAliasPluginConfig = {
143
+ entries: {
144
+ find: string | RegExp;
145
+ replacement: string;
146
+ }[];
147
+ };
148
+ declare function viteAliasPlugin(config: ViteAliasPluginConfig): BuiltinPlugin;
149
+ //#endregion
150
+ //#region src/builtin-plugin/bundle-analyzer-plugin.d.ts
151
+ /**
152
+ * A plugin that analyzes bundle composition and generates detailed reports.
153
+ *
154
+ * The plugin outputs a file containing detailed information about:
155
+ * - All chunks and their relationships
156
+ * - Modules bundled in each chunk
157
+ * - Import dependencies between chunks
158
+ * - Reachable modules from each entry point
159
+ *
160
+ * @example
161
+ * ```js
162
+ * import { bundleAnalyzerPlugin } from 'rolldown/experimental';
163
+ *
164
+ * export default {
165
+ * plugins: [
166
+ * bundleAnalyzerPlugin()
167
+ * ]
168
+ * }
169
+ * ```
170
+ *
171
+ * @example
172
+ * **Custom filename**
173
+ * ```js
174
+ * import { bundleAnalyzerPlugin } from 'rolldown/experimental';
175
+ *
176
+ * export default {
177
+ * plugins: [
178
+ * bundleAnalyzerPlugin({
179
+ * fileName: 'bundle-analysis.json'
180
+ * })
181
+ * ]
182
+ * }
183
+ * ```
184
+ *
185
+ * @example
186
+ * **LLM-friendly markdown output**
187
+ * ```js
188
+ * import { bundleAnalyzerPlugin } from 'rolldown/experimental';
189
+ *
190
+ * export default {
191
+ * plugins: [
192
+ * bundleAnalyzerPlugin({
193
+ * format: 'md'
194
+ * })
195
+ * ]
196
+ * }
197
+ * ```
198
+ */
199
+ declare function bundleAnalyzerPlugin(config?: BindingBundleAnalyzerPluginConfig): BuiltinPlugin;
200
+ //#endregion
201
+ //#region src/builtin-plugin/transform-plugin.d.ts
202
+ type TransformPattern = string | RegExp | readonly (RegExp | string)[];
203
+ type TransformPluginConfig = Omit<BindingViteTransformPluginConfig, "include" | "exclude" | "jsxRefreshInclude" | "jsxRefreshExclude" | "yarnPnp"> & {
204
+ include?: TransformPattern;
205
+ exclude?: TransformPattern;
206
+ jsxRefreshInclude?: TransformPattern;
207
+ jsxRefreshExclude?: TransformPattern;
208
+ };
209
+ declare function viteTransformPlugin(config: TransformPluginConfig): BuiltinPlugin;
210
+ //#endregion
211
+ //#region src/builtin-plugin/vite-manifest-plugin.d.ts
212
+ type ViteManifestPluginConfig = Omit<BindingViteManifestPluginConfig, "isLegacy"> & {
213
+ isOutputOptionsForLegacyChunks?: (outputOptions: NormalizedOutputOptions) => boolean;
214
+ };
215
+ declare function viteManifestPlugin(config: ViteManifestPluginConfig): BuiltinPlugin;
216
+ //#endregion
217
+ //#region src/experimental-index.d.ts
218
+ /**
219
+ * In-memory file system for browser builds.
220
+ *
221
+ * This is a re-export of the {@link https://github.com/streamich/memfs | memfs} package used by the WASI runtime.
222
+ * It allows you to read and write files to a virtual filesystem when using rolldown in browser environments.
223
+ *
224
+ * - `fs`: A Node.js-compatible filesystem API (`IFs` from memfs)
225
+ * - `volume`: The underlying `Volume` instance that stores the filesystem state
226
+ *
227
+ * Returns `undefined` in Node.js builds (only available in browser builds via `@rolldown/browser`).
228
+ *
229
+ * @example
230
+ * ```typescript
231
+ * import { memfs } from 'rolldown/experimental';
232
+ *
233
+ * // Write files to virtual filesystem before bundling
234
+ * memfs?.volume.fromJSON({
235
+ * '/src/index.js': 'export const foo = 42;',
236
+ * '/package.json': '{"name": "my-app"}'
237
+ * });
238
+ *
239
+ * // Read files from the virtual filesystem
240
+ * const content = memfs?.fs.readFileSync('/src/index.js', 'utf8');
241
+ * ```
242
+ *
243
+ * @see {@link https://github.com/streamich/memfs} for more information on the memfs API.
244
+ */
245
+ declare const memfs: {
246
+ fs: any;
247
+ volume: any;
248
+ } | undefined;
249
+ /** @deprecated Use from `rolldown/utils` instead. */
250
+ declare const parse: typeof parse$1;
251
+ /** @deprecated Use from `rolldown/utils` instead. */
252
+ declare const parseSync: typeof parseSync$1;
253
+ /** @deprecated Use from `rolldown/utils` instead. */
254
+ type ParseResult = ParseResult$1;
255
+ /** @deprecated Use from `rolldown/utils` instead. */
256
+ type ParserOptions = ParserOptions$1;
257
+ /** @deprecated Use from `rolldown/utils` instead. */
258
+ declare const minify: typeof minify$1;
259
+ /** @deprecated Use from `rolldown/utils` instead. */
260
+ declare const minifySync: typeof minifySync$1;
261
+ /** @deprecated Use from `rolldown/utils` instead. */
262
+ type MinifyOptions = MinifyOptions$1;
263
+ /** @deprecated Use from `rolldown/utils` instead. */
264
+ type MinifyResult = MinifyResult$1;
265
+ /** @deprecated Use from `rolldown/utils` instead. */
266
+ declare const transform: typeof transform$1;
267
+ /** @deprecated Use from `rolldown/utils` instead. */
268
+ declare const transformSync: typeof transformSync$1;
269
+ /** @deprecated Use from `rolldown/utils` instead. */
270
+ type TransformOptions = TransformOptions$1;
271
+ /** @deprecated Use from `rolldown/utils` instead. */
272
+ type TransformResult = TransformResult$1;
273
+ /** @deprecated Use from `rolldown/utils` instead. */
274
+ declare const TsconfigCache: typeof TsconfigCache$1;
275
+ /** @deprecated Use from `rolldown/utils` instead. */
276
+ type TsconfigRawOptions = BindingTsconfigRawOptions;
277
+ /** @deprecated Use from `rolldown/utils` instead. */
278
+ type TsconfigCompilerOptions = BindingTsconfigCompilerOptions;
279
+ //#endregion
280
+ export { type BindingClientHmrUpdate, BindingRebuildStrategy, DevEngine, type DevOptions, type DevWatchOptions, type IsolatedDeclarationsOptions, type IsolatedDeclarationsResult, MinifyOptions, MinifyResult, ParseResult, ParserOptions, type NapiResolveOptions as ResolveOptions, type ResolveResult, ResolverFactory, TransformOptions, TransformResult, TsconfigCache, TsconfigCompilerOptions, TsconfigRawOptions, bundleAnalyzerPlugin, defineParallelPlugin, dev, viteDynamicImportVarsPlugin as dynamicImportVarsPlugin, viteDynamicImportVarsPlugin, freeExternalMemory, viteImportGlobPlugin as importGlobPlugin, viteImportGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, isolatedDeclarationSync, memfs, minify, minifySync, moduleRunnerTransform, oxcRuntimePlugin, parse, parseSync, resolveTsconfig, scan, transform, transformSync, viteAliasPlugin, viteBuildImportAnalysisPlugin, viteJsonPlugin, viteLoadFallbackPlugin, viteManifestPlugin, viteModulePreloadPolyfillPlugin, viteReactRefreshWrapperPlugin, viteReporterPlugin, viteResolvePlugin, viteTransformPlugin, viteWebWorkerPostPlugin };
@@ -0,0 +1,330 @@
1
+ import { n as __toESM, t as require_binding } from "./shared/binding-Dh6LYCIB.mjs";
2
+ import { n as BuiltinPlugin, t as normalizedStringOrRegex } from "./shared/normalize-string-or-regex-BpXHYeN4.mjs";
3
+ import { o as transformToRollupOutput } from "./shared/bindingify-input-options-CzVhGygm.mjs";
4
+ import { c as validateOption, n as createBundlerOptions, t as RolldownBuild, u as PluginDriver } from "./shared/rolldown-build-DR0wzp0V.mjs";
5
+ import { i as unwrapBindingResult, r as normalizeBindingResult } from "./shared/error-B68YLzl3.mjs";
6
+ import { n as parseSync$1, t as parse$1 } from "./shared/parse-CTgsjpo8.mjs";
7
+ import { a as viteDynamicImportVarsPlugin, c as viteLoadFallbackPlugin, d as viteReporterPlugin, f as viteResolvePlugin, i as viteBuildImportAnalysisPlugin, l as viteModulePreloadPolyfillPlugin, n as isolatedDeclarationPlugin, o as viteImportGlobPlugin, p as viteWebWorkerPostPlugin, r as oxcRuntimePlugin, s as viteJsonPlugin, u as viteReactRefreshWrapperPlugin } from "./shared/constructors-688OwP2q.mjs";
8
+ import { a as minify$1, i as transformSync$1, n as resolveTsconfig, o as minifySync$1, r as transform$1, t as TsconfigCache$1 } from "./shared/resolve-tsconfig-BkhP9bkX.mjs";
9
+ import { pathToFileURL } from "node:url";
10
+ //#region src/api/dev/dev-engine.ts
11
+ var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
12
+ var DevEngine = class DevEngine {
13
+ #inner;
14
+ #cachedBuildFinishPromise = null;
15
+ static async create(inputOptions, outputOptions = {}, devOptions = {}) {
16
+ inputOptions = await PluginDriver.callOptionsHook(inputOptions);
17
+ const options = await createBundlerOptions(inputOptions, outputOptions, false);
18
+ const userOnHmrUpdates = devOptions.onHmrUpdates;
19
+ const bindingOnHmrUpdates = userOnHmrUpdates ? function(rawResult) {
20
+ const result = normalizeBindingResult(rawResult);
21
+ if (result instanceof Error) {
22
+ userOnHmrUpdates(result);
23
+ return;
24
+ }
25
+ const [updates, changedFiles] = result;
26
+ userOnHmrUpdates({
27
+ updates,
28
+ changedFiles
29
+ });
30
+ } : void 0;
31
+ const userOnOutput = devOptions.onOutput;
32
+ const bindingOnOutput = userOnOutput ? function(rawResult) {
33
+ const result = normalizeBindingResult(rawResult);
34
+ if (result instanceof Error) {
35
+ userOnOutput(result);
36
+ return;
37
+ }
38
+ userOnOutput(transformToRollupOutput(result));
39
+ } : void 0;
40
+ const userOnAdditionalAssets = devOptions.onAdditionalAssets;
41
+ const bindingDevOptions = {
42
+ onHmrUpdates: bindingOnHmrUpdates,
43
+ onOutput: bindingOnOutput,
44
+ onAdditionalAssets: userOnAdditionalAssets ? function(output) {
45
+ userOnAdditionalAssets(transformToRollupOutput(output));
46
+ } : void 0,
47
+ rebuildStrategy: devOptions.rebuildStrategy ? devOptions.rebuildStrategy === "always" ? import_binding.BindingRebuildStrategy.Always : devOptions.rebuildStrategy === "auto" ? import_binding.BindingRebuildStrategy.Auto : import_binding.BindingRebuildStrategy.Never : void 0,
48
+ watch: devOptions.watch && {
49
+ skipWrite: devOptions.watch.skipWrite,
50
+ usePolling: devOptions.watch.usePolling,
51
+ pollInterval: devOptions.watch.pollInterval,
52
+ useDebounce: devOptions.watch.useDebounce,
53
+ debounceDuration: devOptions.watch.debounceDuration,
54
+ compareContentsForPolling: devOptions.watch.compareContentsForPolling,
55
+ debounceTickRate: devOptions.watch.debounceTickRate,
56
+ include: normalizedStringOrRegex(devOptions.watch.include),
57
+ exclude: normalizedStringOrRegex(devOptions.watch.exclude)
58
+ }
59
+ };
60
+ return new DevEngine(new import_binding.BindingDevEngine(options.bundlerOptions, bindingDevOptions));
61
+ }
62
+ constructor(inner) {
63
+ this.#inner = inner;
64
+ }
65
+ async run() {
66
+ await this.#inner.run();
67
+ }
68
+ async ensureCurrentBuildFinish() {
69
+ if (this.#cachedBuildFinishPromise) return this.#cachedBuildFinishPromise;
70
+ const promise = this.#inner.ensureCurrentBuildFinish().then(() => {
71
+ this.#cachedBuildFinishPromise = null;
72
+ });
73
+ this.#cachedBuildFinishPromise = promise;
74
+ return promise;
75
+ }
76
+ async getBundleState() {
77
+ return this.#inner.getBundleState();
78
+ }
79
+ async ensureLatestBuildOutput() {
80
+ unwrapBindingResult(await this.#inner.ensureLatestBuildOutput());
81
+ }
82
+ triggerFullBuild() {
83
+ this.#inner.triggerFullBuild();
84
+ }
85
+ async invalidate(file, firstInvalidatedBy) {
86
+ return unwrapBindingResult(await this.#inner.invalidate(file, firstInvalidatedBy));
87
+ }
88
+ async registerModules(clientId, modules) {
89
+ await this.#inner.registerModules(clientId, modules);
90
+ }
91
+ async removeClient(clientId) {
92
+ await this.#inner.removeClient(clientId);
93
+ }
94
+ async close() {
95
+ await this.#inner.close();
96
+ }
97
+ /**
98
+ * Compile a lazy entry module and return HMR-style patch code.
99
+ *
100
+ * This is called when a dynamically imported module is first requested at runtime.
101
+ * The module was previously stubbed with a proxy, and now we need to compile the
102
+ * actual module and its dependencies.
103
+ *
104
+ * @param moduleId - The absolute file path of the module to compile
105
+ * @param clientId - The client ID requesting this compilation
106
+ * @returns The compiled JavaScript code as a string (HMR patch format)
107
+ */
108
+ async compileEntry(moduleId, clientId) {
109
+ return this.#inner.compileEntry(moduleId, clientId);
110
+ }
111
+ };
112
+ //#endregion
113
+ //#region src/api/dev/index.ts
114
+ const dev = (...args) => DevEngine.create(...args);
115
+ //#endregion
116
+ //#region src/types/external-memory-handle.ts
117
+ const symbolForExternalMemoryHandle = "__rolldown_external_memory_handle__";
118
+ /**
119
+ * Frees the external memory held by the given handle.
120
+ *
121
+ * This is useful when you want to manually release memory held by Rust objects
122
+ * (like `OutputChunk` or `OutputAsset`) before they are garbage collected.
123
+ *
124
+ * @param handle - The object with external memory to free
125
+ * @param keepDataAlive - If true, evaluates all lazy fields before freeing memory (default: false).
126
+ * This will take time to copy data from Rust to JavaScript, but prevents errors
127
+ * when accessing properties after the memory is freed.
128
+ * @returns Status object with `freed` boolean and optional `reason` string.
129
+ * - `{ freed: true }` if memory was successfully freed
130
+ * - `{ freed: false, reason: "..." }` if memory couldn't be freed (e.g., already freed or other references exist)
131
+ *
132
+ * @example
133
+ * ```typescript
134
+ * import { freeExternalMemory } from 'rolldown/experimental';
135
+ *
136
+ * const output = await bundle.generate();
137
+ * const chunk = output.output[0];
138
+ *
139
+ * // Use the chunk...
140
+ *
141
+ * // Manually free the memory (fast, but accessing properties after will throw)
142
+ * const status = freeExternalMemory(chunk); // { freed: true }
143
+ * const statusAgain = freeExternalMemory(chunk); // { freed: false, reason: "Memory has already been freed" }
144
+ *
145
+ * // Keep data alive before freeing (slower, but data remains accessible)
146
+ * freeExternalMemory(chunk, true); // Evaluates all lazy fields first
147
+ * console.log(chunk.code); // OK - data was copied to JavaScript before freeing
148
+ *
149
+ * // Without keepDataAlive, accessing chunk properties after freeing will throw an error
150
+ * ```
151
+ */
152
+ function freeExternalMemory(handle, keepDataAlive = false) {
153
+ return handle[symbolForExternalMemoryHandle](keepDataAlive);
154
+ }
155
+ //#endregion
156
+ //#region src/api/experimental.ts
157
+ /**
158
+ * This is an experimental API. Its behavior may change in the future.
159
+ *
160
+ * - Calling this API will only execute the `scan/build` stage of rolldown.
161
+ * - `scan` will clean up all resources automatically, but if you want to ensure timely cleanup, you need to wait for the returned promise to resolve.
162
+ *
163
+ * @example To ensure cleanup of resources, use the returned promise to wait for the scan to complete.
164
+ * ```ts
165
+ * import { scan } from 'rolldown/api/experimental';
166
+ *
167
+ * const cleanupPromise = await scan(...);
168
+ * await cleanupPromise;
169
+ * // Now all resources have been cleaned up.
170
+ * ```
171
+ */
172
+ const scan = async (rawInputOptions, rawOutputOptions = {}) => {
173
+ validateOption("input", rawInputOptions);
174
+ validateOption("output", rawOutputOptions);
175
+ const ret = await createBundlerOptions(await PluginDriver.callOptionsHook(rawInputOptions), rawOutputOptions, false);
176
+ const bundler = new import_binding.BindingBundler();
177
+ if (RolldownBuild.asyncRuntimeShutdown) (0, import_binding.startAsyncRuntime)();
178
+ async function cleanup() {
179
+ await bundler.close();
180
+ await ret.stopWorkers?.();
181
+ (0, import_binding.shutdownAsyncRuntime)();
182
+ RolldownBuild.asyncRuntimeShutdown = true;
183
+ }
184
+ let cleanupPromise = Promise.resolve();
185
+ try {
186
+ unwrapBindingResult(await bundler.scan(ret.bundlerOptions));
187
+ } catch (err) {
188
+ await cleanup();
189
+ throw err;
190
+ } finally {
191
+ cleanupPromise = cleanup();
192
+ }
193
+ return cleanupPromise;
194
+ };
195
+ //#endregion
196
+ //#region src/plugin/parallel-plugin.ts
197
+ function defineParallelPlugin(pluginPath) {
198
+ return (options) => {
199
+ return { _parallel: {
200
+ fileUrl: pathToFileURL(pluginPath).href,
201
+ options
202
+ } };
203
+ };
204
+ }
205
+ //#endregion
206
+ //#region src/builtin-plugin/alias-plugin.ts
207
+ function viteAliasPlugin(config) {
208
+ return new BuiltinPlugin("builtin:vite-alias", config);
209
+ }
210
+ //#endregion
211
+ //#region src/builtin-plugin/bundle-analyzer-plugin.ts
212
+ /**
213
+ * A plugin that analyzes bundle composition and generates detailed reports.
214
+ *
215
+ * The plugin outputs a file containing detailed information about:
216
+ * - All chunks and their relationships
217
+ * - Modules bundled in each chunk
218
+ * - Import dependencies between chunks
219
+ * - Reachable modules from each entry point
220
+ *
221
+ * @example
222
+ * ```js
223
+ * import { bundleAnalyzerPlugin } from 'rolldown/experimental';
224
+ *
225
+ * export default {
226
+ * plugins: [
227
+ * bundleAnalyzerPlugin()
228
+ * ]
229
+ * }
230
+ * ```
231
+ *
232
+ * @example
233
+ * **Custom filename**
234
+ * ```js
235
+ * import { bundleAnalyzerPlugin } from 'rolldown/experimental';
236
+ *
237
+ * export default {
238
+ * plugins: [
239
+ * bundleAnalyzerPlugin({
240
+ * fileName: 'bundle-analysis.json'
241
+ * })
242
+ * ]
243
+ * }
244
+ * ```
245
+ *
246
+ * @example
247
+ * **LLM-friendly markdown output**
248
+ * ```js
249
+ * import { bundleAnalyzerPlugin } from 'rolldown/experimental';
250
+ *
251
+ * export default {
252
+ * plugins: [
253
+ * bundleAnalyzerPlugin({
254
+ * format: 'md'
255
+ * })
256
+ * ]
257
+ * }
258
+ * ```
259
+ */
260
+ function bundleAnalyzerPlugin(config) {
261
+ return new BuiltinPlugin("builtin:bundle-analyzer", config);
262
+ }
263
+ //#endregion
264
+ //#region src/builtin-plugin/transform-plugin.ts
265
+ function viteTransformPlugin(config) {
266
+ return new BuiltinPlugin("builtin:vite-transform", {
267
+ ...config,
268
+ include: normalizedStringOrRegex(config.include),
269
+ exclude: normalizedStringOrRegex(config.exclude),
270
+ jsxRefreshInclude: normalizedStringOrRegex(config.jsxRefreshInclude),
271
+ jsxRefreshExclude: normalizedStringOrRegex(config.jsxRefreshExclude),
272
+ yarnPnp: typeof process === "object" && !!process.versions?.pnp
273
+ });
274
+ }
275
+ //#endregion
276
+ //#region src/builtin-plugin/vite-manifest-plugin.ts
277
+ function viteManifestPlugin(config) {
278
+ return new BuiltinPlugin("builtin:vite-manifest", config);
279
+ }
280
+ //#endregion
281
+ //#region src/experimental-index.ts
282
+ /**
283
+ * In-memory file system for browser builds.
284
+ *
285
+ * This is a re-export of the {@link https://github.com/streamich/memfs | memfs} package used by the WASI runtime.
286
+ * It allows you to read and write files to a virtual filesystem when using rolldown in browser environments.
287
+ *
288
+ * - `fs`: A Node.js-compatible filesystem API (`IFs` from memfs)
289
+ * - `volume`: The underlying `Volume` instance that stores the filesystem state
290
+ *
291
+ * Returns `undefined` in Node.js builds (only available in browser builds via `@rolldown/browser`).
292
+ *
293
+ * @example
294
+ * ```typescript
295
+ * import { memfs } from 'rolldown/experimental';
296
+ *
297
+ * // Write files to virtual filesystem before bundling
298
+ * memfs?.volume.fromJSON({
299
+ * '/src/index.js': 'export const foo = 42;',
300
+ * '/package.json': '{"name": "my-app"}'
301
+ * });
302
+ *
303
+ * // Read files from the virtual filesystem
304
+ * const content = memfs?.fs.readFileSync('/src/index.js', 'utf8');
305
+ * ```
306
+ *
307
+ * @see {@link https://github.com/streamich/memfs} for more information on the memfs API.
308
+ */
309
+ const memfs = void 0;
310
+ /** @deprecated Use from `rolldown/utils` instead. */
311
+ const parse = parse$1;
312
+ /** @deprecated Use from `rolldown/utils` instead. */
313
+ const parseSync = parseSync$1;
314
+ /** @deprecated Use from `rolldown/utils` instead. */
315
+ const minify = minify$1;
316
+ /** @deprecated Use from `rolldown/utils` instead. */
317
+ const minifySync = minifySync$1;
318
+ /** @deprecated Use from `rolldown/utils` instead. */
319
+ const transform = transform$1;
320
+ /** @deprecated Use from `rolldown/utils` instead. */
321
+ const transformSync = transformSync$1;
322
+ /** @deprecated Use from `rolldown/utils` instead. */
323
+ const TsconfigCache = TsconfigCache$1;
324
+ //#endregion
325
+ var BindingRebuildStrategy = import_binding.BindingRebuildStrategy;
326
+ var ResolverFactory = import_binding.ResolverFactory;
327
+ var isolatedDeclaration = import_binding.isolatedDeclaration;
328
+ var isolatedDeclarationSync = import_binding.isolatedDeclarationSync;
329
+ var moduleRunnerTransform = import_binding.moduleRunnerTransform;
330
+ export { BindingRebuildStrategy, DevEngine, ResolverFactory, TsconfigCache, bundleAnalyzerPlugin, defineParallelPlugin, dev, viteDynamicImportVarsPlugin as dynamicImportVarsPlugin, viteDynamicImportVarsPlugin, freeExternalMemory, viteImportGlobPlugin as importGlobPlugin, viteImportGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, isolatedDeclarationSync, memfs, minify, minifySync, moduleRunnerTransform, oxcRuntimePlugin, parse, parseSync, resolveTsconfig, scan, transform, transformSync, viteAliasPlugin, viteBuildImportAnalysisPlugin, viteJsonPlugin, viteLoadFallbackPlugin, viteManifestPlugin, viteModulePreloadPolyfillPlugin, viteReactRefreshWrapperPlugin, viteReporterPlugin, viteResolvePlugin, viteTransformPlugin, viteWebWorkerPostPlugin };