veryfront 0.0.84 → 0.0.88

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 (442) hide show
  1. package/README.md +18 -44
  2. package/esm/deno.d.ts +0 -1
  3. package/esm/deno.js +8 -9
  4. package/esm/deps/esm.sh/react-dom@19.1.1/client.d.ts +2 -0
  5. package/esm/deps/esm.sh/react-dom@19.1.1/client.d.ts.map +1 -0
  6. package/esm/deps/esm.sh/react-dom@19.1.1/client.js +5 -0
  7. package/esm/deps/esm.sh/react-dom@19.1.1/server.d.ts +2 -0
  8. package/esm/deps/esm.sh/react-dom@19.1.1/server.d.ts.map +1 -0
  9. package/esm/deps/esm.sh/react-dom@19.1.1/server.js +5 -0
  10. package/esm/deps/esm.sh/react@19.1.1/jsx-runtime.d.ts +2 -0
  11. package/esm/deps/esm.sh/react@19.1.1/jsx-runtime.d.ts.map +1 -0
  12. package/esm/deps/esm.sh/react@19.1.1/jsx-runtime.js +3 -0
  13. package/esm/deps/esm.sh/react@19.1.1.d.ts +2 -0
  14. package/esm/deps/esm.sh/react@19.1.1.d.ts.map +1 -0
  15. package/esm/deps/esm.sh/react@19.1.1.js +3 -0
  16. package/esm/deps/esm.sh/scheduler@^0.26.0.d.ts +2 -0
  17. package/esm/deps/esm.sh/scheduler@^0.26.0.d.ts.map +1 -0
  18. package/esm/deps/esm.sh/scheduler@^0.26.0.js +3 -0
  19. package/esm/proxy/main.d.ts +2 -0
  20. package/esm/proxy/main.d.ts.map +1 -0
  21. package/esm/proxy/main.js +400 -0
  22. package/esm/src/agent/react/use-agent.js +1 -1
  23. package/esm/src/agent/react/use-chat/use-chat.js +1 -1
  24. package/esm/src/agent/react/use-completion.js +1 -1
  25. package/esm/src/agent/react/use-streaming.js +1 -1
  26. package/esm/src/agent/react/use-voice-input.js +1 -1
  27. package/esm/src/cli/app/components/list-select.js +2 -2
  28. package/esm/src/cli/app/index.d.ts +1 -1
  29. package/esm/src/cli/app/index.d.ts.map +1 -1
  30. package/esm/src/cli/app/index.js +26 -33
  31. package/esm/src/cli/app/state.d.ts +3 -0
  32. package/esm/src/cli/app/state.d.ts.map +1 -1
  33. package/esm/src/cli/app/state.js +4 -0
  34. package/esm/src/cli/app/views/dashboard.d.ts.map +1 -1
  35. package/esm/src/cli/app/views/dashboard.js +45 -57
  36. package/esm/src/cli/app/views/startup.d.ts +39 -0
  37. package/esm/src/cli/app/views/startup.d.ts.map +1 -0
  38. package/esm/src/cli/app/views/startup.js +103 -0
  39. package/esm/src/cli/commands/init/config-generator.js +1 -1
  40. package/esm/src/cli/index/arg-parser.d.ts.map +1 -1
  41. package/esm/src/cli/index/arg-parser.js +1 -0
  42. package/esm/src/cli/index/command-router.d.ts.map +1 -1
  43. package/esm/src/cli/index/command-router.js +54 -39
  44. package/esm/src/cli/index/types.d.ts +4 -0
  45. package/esm/src/cli/index/types.d.ts.map +1 -1
  46. package/esm/src/cli/mcp/advanced-tools.d.ts +2 -2
  47. package/esm/src/cli/ui/colors.d.ts +8 -0
  48. package/esm/src/cli/ui/colors.d.ts.map +1 -1
  49. package/esm/src/cli/ui/colors.js +34 -0
  50. package/esm/src/cli/ui/dot-matrix.d.ts +8 -0
  51. package/esm/src/cli/ui/dot-matrix.d.ts.map +1 -1
  52. package/esm/src/cli/ui/dot-matrix.js +67 -2
  53. package/esm/src/config/loader.d.ts.map +1 -1
  54. package/esm/src/config/loader.js +5 -4
  55. package/esm/src/html/utils.js +2 -2
  56. package/esm/src/modules/component-registry/registry.d.ts +1 -1
  57. package/esm/src/modules/component-registry/registry.d.ts.map +1 -1
  58. package/esm/src/modules/import-map/default-import-map.d.ts +1 -11
  59. package/esm/src/modules/import-map/default-import-map.d.ts.map +1 -1
  60. package/esm/src/modules/import-map/default-import-map.js +3 -20
  61. package/esm/src/modules/import-map/loader.d.ts.map +1 -1
  62. package/esm/src/modules/import-map/loader.js +7 -22
  63. package/esm/src/modules/import-map/resolver.d.ts.map +1 -1
  64. package/esm/src/modules/import-map/resolver.js +12 -8
  65. package/esm/src/modules/react-loader/component-loader.d.ts +1 -1
  66. package/esm/src/modules/react-loader/component-loader.d.ts.map +1 -1
  67. package/esm/src/modules/react-loader/component-loader.js +2 -0
  68. package/esm/src/modules/react-loader/extract-component.d.ts +1 -1
  69. package/esm/src/modules/react-loader/extract-component.d.ts.map +1 -1
  70. package/esm/src/modules/react-loader/ssr-module-loader/loader.d.ts +2 -7
  71. package/esm/src/modules/react-loader/ssr-module-loader/loader.d.ts.map +1 -1
  72. package/esm/src/modules/react-loader/ssr-module-loader/loader.js +68 -38
  73. package/esm/src/modules/react-loader/ssr-module-loader/types.d.ts +2 -0
  74. package/esm/src/modules/react-loader/ssr-module-loader/types.d.ts.map +1 -1
  75. package/esm/src/modules/react-loader/types.d.ts +3 -1
  76. package/esm/src/modules/react-loader/types.d.ts.map +1 -1
  77. package/esm/src/modules/react-loader/unified-loader.d.ts.map +1 -1
  78. package/esm/src/modules/react-loader/unified-loader.js +7 -4
  79. package/esm/src/modules/server/module-batch-handler.d.ts +2 -0
  80. package/esm/src/modules/server/module-batch-handler.d.ts.map +1 -1
  81. package/esm/src/modules/server/module-batch-handler.js +3 -1
  82. package/esm/src/modules/server/module-server.d.ts +2 -0
  83. package/esm/src/modules/server/module-server.d.ts.map +1 -1
  84. package/esm/src/modules/server/module-server.js +4 -2
  85. package/esm/src/modules/server/ssr-import-rewriter.d.ts.map +1 -1
  86. package/esm/src/modules/server/ssr-import-rewriter.js +9 -17
  87. package/esm/src/react/compat/hooks-adapter.d.ts +1 -1
  88. package/esm/src/react/compat/hooks-adapter.d.ts.map +1 -1
  89. package/esm/src/react/compat/hooks-adapter.js +1 -1
  90. package/esm/src/react/compat/ssr-adapter/response-builder.d.ts +1 -1
  91. package/esm/src/react/compat/ssr-adapter/response-builder.d.ts.map +1 -1
  92. package/esm/src/react/compat/ssr-adapter/server-loader.d.ts +5 -5
  93. package/esm/src/react/compat/ssr-adapter/server-loader.d.ts.map +1 -1
  94. package/esm/src/react/compat/ssr-adapter/server-loader.js +2 -2
  95. package/esm/src/react/compat/ssr-adapter/stream-renderer.d.ts +1 -1
  96. package/esm/src/react/compat/ssr-adapter/stream-renderer.d.ts.map +1 -1
  97. package/esm/src/react/compat/ssr-adapter/string-renderer.d.ts +1 -1
  98. package/esm/src/react/compat/ssr-adapter/string-renderer.d.ts.map +1 -1
  99. package/esm/src/react/compat/ssr-adapter/string-renderer.js +1 -1
  100. package/esm/src/react/compat/version-detector/feature-detector.js +1 -1
  101. package/esm/src/react/components/AppWrapper.d.ts +1 -1
  102. package/esm/src/react/components/AppWrapper.d.ts.map +1 -1
  103. package/esm/src/react/components/AppWrapper.js +1 -1
  104. package/esm/src/react/components/Head.d.ts +1 -1
  105. package/esm/src/react/components/Head.d.ts.map +1 -1
  106. package/esm/src/react/components/Head.js +7 -3
  107. package/esm/src/react/components/LayoutComponent.d.ts +1 -1
  108. package/esm/src/react/components/LayoutComponent.d.ts.map +1 -1
  109. package/esm/src/react/components/LayoutComponent.js +1 -1
  110. package/esm/src/react/components/Link.d.ts +1 -1
  111. package/esm/src/react/components/Link.d.ts.map +1 -1
  112. package/esm/src/react/components/Link.js +1 -1
  113. package/esm/src/react/components/MDXProvider.d.ts +1 -1
  114. package/esm/src/react/components/MDXProvider.d.ts.map +1 -1
  115. package/esm/src/react/components/MDXProvider.js +2 -2
  116. package/esm/src/react/components/ProviderComponent.d.ts +1 -1
  117. package/esm/src/react/components/ProviderComponent.d.ts.map +1 -1
  118. package/esm/src/react/components/ProviderComponent.js +1 -1
  119. package/esm/src/react/components/ai/agent-card.d.ts +2 -2
  120. package/esm/src/react/components/ai/agent-card.d.ts.map +1 -1
  121. package/esm/src/react/components/ai/agent-card.js +1 -1
  122. package/esm/src/react/components/ai/chat/components/animations.d.ts +1 -1
  123. package/esm/src/react/components/ai/chat/components/animations.d.ts.map +1 -1
  124. package/esm/src/react/components/ai/chat/components/animations.js +1 -1
  125. package/esm/src/react/components/ai/chat/components/empty-state.d.ts +1 -1
  126. package/esm/src/react/components/ai/chat/components/empty-state.d.ts.map +1 -1
  127. package/esm/src/react/components/ai/chat/components/empty-state.js +1 -1
  128. package/esm/src/react/components/ai/chat/components/message-actions.d.ts +1 -1
  129. package/esm/src/react/components/ai/chat/components/message-actions.d.ts.map +1 -1
  130. package/esm/src/react/components/ai/chat/components/message-actions.js +1 -1
  131. package/esm/src/react/components/ai/chat/components/reasoning.d.ts +1 -1
  132. package/esm/src/react/components/ai/chat/components/reasoning.d.ts.map +1 -1
  133. package/esm/src/react/components/ai/chat/components/reasoning.js +1 -1
  134. package/esm/src/react/components/ai/chat/components/tool-ui.d.ts +1 -1
  135. package/esm/src/react/components/ai/chat/components/tool-ui.d.ts.map +1 -1
  136. package/esm/src/react/components/ai/chat/components/tool-ui.js +1 -1
  137. package/esm/src/react/components/ai/chat/composition/api.d.ts +5 -4
  138. package/esm/src/react/components/ai/chat/composition/api.d.ts.map +1 -1
  139. package/esm/src/react/components/ai/chat/composition/api.js +1 -1
  140. package/esm/src/react/components/ai/chat/index.d.ts +8 -3
  141. package/esm/src/react/components/ai/chat/index.d.ts.map +1 -1
  142. package/esm/src/react/components/ai/chat/index.js +1 -1
  143. package/esm/src/react/components/ai/error-boundary.d.ts +1 -1
  144. package/esm/src/react/components/ai/error-boundary.d.ts.map +1 -1
  145. package/esm/src/react/components/ai/error-boundary.js +1 -1
  146. package/esm/src/react/components/ai/icons/index.d.ts +1 -1
  147. package/esm/src/react/components/ai/icons/index.d.ts.map +1 -1
  148. package/esm/src/react/components/ai/icons/index.js +1 -1
  149. package/esm/src/react/components/ai/markdown.d.ts +1 -1
  150. package/esm/src/react/components/ai/markdown.d.ts.map +1 -1
  151. package/esm/src/react/components/ai/markdown.js +1 -1
  152. package/esm/src/react/components/ai/message.d.ts +3 -3
  153. package/esm/src/react/components/ai/message.d.ts.map +1 -1
  154. package/esm/src/react/components/ai/message.js +1 -1
  155. package/esm/src/react/components/optimized-image/OptimizedBackgroundImage.d.ts +1 -1
  156. package/esm/src/react/components/optimized-image/OptimizedBackgroundImage.d.ts.map +1 -1
  157. package/esm/src/react/components/optimized-image/OptimizedBackgroundImage.js +1 -1
  158. package/esm/src/react/components/optimized-image/OptimizedImage.d.ts +1 -1
  159. package/esm/src/react/components/optimized-image/OptimizedImage.d.ts.map +1 -1
  160. package/esm/src/react/components/optimized-image/OptimizedImage.js +1 -1
  161. package/esm/src/react/components/optimized-image/SimpleOptimizedImage.d.ts +1 -1
  162. package/esm/src/react/components/optimized-image/SimpleOptimizedImage.d.ts.map +1 -1
  163. package/esm/src/react/components/optimized-image/utils.d.ts +1 -1
  164. package/esm/src/react/components/optimized-image/utils.d.ts.map +1 -1
  165. package/esm/src/react/components/optimized-image/utils.js +1 -1
  166. package/esm/src/react/context/index.d.ts +1 -1
  167. package/esm/src/react/context/index.d.ts.map +1 -1
  168. package/esm/src/react/context/index.js +1 -1
  169. package/esm/src/react/fonts/index.d.ts +1 -1
  170. package/esm/src/react/fonts/index.d.ts.map +1 -1
  171. package/esm/src/react/fonts/index.js +1 -1
  172. package/esm/src/react/primitives/agent-primitives.d.ts +4 -4
  173. package/esm/src/react/primitives/agent-primitives.d.ts.map +1 -1
  174. package/esm/src/react/primitives/agent-primitives.js +1 -1
  175. package/esm/src/react/primitives/chat-container.d.ts +2 -2
  176. package/esm/src/react/primitives/chat-container.d.ts.map +1 -1
  177. package/esm/src/react/primitives/chat-container.js +1 -1
  178. package/esm/src/react/primitives/input-box.d.ts +4 -4
  179. package/esm/src/react/primitives/input-box.d.ts.map +1 -1
  180. package/esm/src/react/primitives/input-box.js +7 -3
  181. package/esm/src/react/primitives/message-list.d.ts +5 -5
  182. package/esm/src/react/primitives/message-list.d.ts.map +1 -1
  183. package/esm/src/react/primitives/message-list.js +1 -1
  184. package/esm/src/react/primitives/tool-primitives.d.ts +4 -4
  185. package/esm/src/react/primitives/tool-primitives.d.ts.map +1 -1
  186. package/esm/src/react/primitives/tool-primitives.js +1 -1
  187. package/esm/src/react/router/index.d.ts +1 -1
  188. package/esm/src/react/router/index.d.ts.map +1 -1
  189. package/esm/src/react/router/index.js +1 -1
  190. package/esm/src/rendering/app-reserved.d.ts +1 -1
  191. package/esm/src/rendering/app-reserved.d.ts.map +1 -1
  192. package/esm/src/rendering/app-reserved.js +1 -1
  193. package/esm/src/rendering/client/router.js +1 -1
  194. package/esm/src/rendering/client/state-bridge.d.ts +1 -1
  195. package/esm/src/rendering/client/state-bridge.d.ts.map +1 -1
  196. package/esm/src/rendering/client/state-bridge.js +1 -1
  197. package/esm/src/rendering/component-handling.d.ts +3 -1
  198. package/esm/src/rendering/component-handling.d.ts.map +1 -1
  199. package/esm/src/rendering/component-handling.js +4 -2
  200. package/esm/src/rendering/element-validator/element-normalizer.d.ts +1 -1
  201. package/esm/src/rendering/element-validator/element-normalizer.d.ts.map +1 -1
  202. package/esm/src/rendering/element-validator/element-normalizer.js +1 -1
  203. package/esm/src/rendering/element-validator/primitive-checks.d.ts +1 -1
  204. package/esm/src/rendering/element-validator/primitive-checks.d.ts.map +1 -1
  205. package/esm/src/rendering/element-validator/primitive-checks.js +1 -1
  206. package/esm/src/rendering/element-validator/validator-core.d.ts +1 -1
  207. package/esm/src/rendering/element-validator/validator-core.d.ts.map +1 -1
  208. package/esm/src/rendering/layouts/layout-applicator.d.ts +1 -1
  209. package/esm/src/rendering/layouts/layout-applicator.d.ts.map +1 -1
  210. package/esm/src/rendering/layouts/layout-applicator.js +2 -0
  211. package/esm/src/rendering/layouts/utils/applicator.d.ts +1 -1
  212. package/esm/src/rendering/layouts/utils/applicator.d.ts.map +1 -1
  213. package/esm/src/rendering/layouts/utils/component-loader.d.ts +1 -1
  214. package/esm/src/rendering/layouts/utils/component-loader.d.ts.map +1 -1
  215. package/esm/src/rendering/layouts/utils/ensure-valid-child.d.ts +1 -1
  216. package/esm/src/rendering/layouts/utils/ensure-valid-child.d.ts.map +1 -1
  217. package/esm/src/rendering/orchestrator/layout.d.ts +1 -1
  218. package/esm/src/rendering/orchestrator/layout.d.ts.map +1 -1
  219. package/esm/src/rendering/orchestrator/module-loader/index.d.ts +3 -0
  220. package/esm/src/rendering/orchestrator/module-loader/index.d.ts.map +1 -1
  221. package/esm/src/rendering/orchestrator/module-loader/index.js +74 -19
  222. package/esm/src/rendering/orchestrator/pipeline.d.ts.map +1 -1
  223. package/esm/src/rendering/orchestrator/pipeline.js +2 -0
  224. package/esm/src/rendering/orchestrator/ssr-orchestrator.d.ts +1 -1
  225. package/esm/src/rendering/orchestrator/ssr-orchestrator.d.ts.map +1 -1
  226. package/esm/src/rendering/page-renderer.d.ts +1 -1
  227. package/esm/src/rendering/page-renderer.d.ts.map +1 -1
  228. package/esm/src/rendering/page-rendering.d.ts +1 -1
  229. package/esm/src/rendering/page-rendering.d.ts.map +1 -1
  230. package/esm/src/rendering/rsc/server-renderer/component-detector.d.ts +1 -1
  231. package/esm/src/rendering/rsc/server-renderer/component-detector.d.ts.map +1 -1
  232. package/esm/src/rendering/rsc/server-renderer/rsc-renderer.d.ts +1 -1
  233. package/esm/src/rendering/rsc/server-renderer/rsc-renderer.d.ts.map +1 -1
  234. package/esm/src/rendering/rsc/server-renderer/tree-processor.d.ts +1 -1
  235. package/esm/src/rendering/rsc/server-renderer/tree-processor.d.ts.map +1 -1
  236. package/esm/src/rendering/rsc/server-renderer/tree-processor.js +4 -2
  237. package/esm/src/rendering/snippet-renderer.js +2 -2
  238. package/esm/src/rendering/ssr/component-registry.d.ts +1 -1
  239. package/esm/src/rendering/ssr/component-registry.d.ts.map +1 -1
  240. package/esm/src/rendering/ssr/component-registry.js +1 -1
  241. package/esm/src/rendering/ssr-renderer.d.ts +1 -1
  242. package/esm/src/rendering/ssr-renderer.d.ts.map +1 -1
  243. package/esm/src/rendering/utils/react-helpers.d.ts +1 -1
  244. package/esm/src/rendering/utils/react-helpers.d.ts.map +1 -1
  245. package/esm/src/rendering/utils/react-helpers.js +1 -1
  246. package/esm/src/server/handlers/request/ssr/error-page-fallback.js +1 -1
  247. package/esm/src/server/handlers/request/ssr/not-found-fallback.js +1 -1
  248. package/esm/src/transforms/esm/http-bundler.d.ts +15 -4
  249. package/esm/src/transforms/esm/http-bundler.d.ts.map +1 -1
  250. package/esm/src/transforms/esm/http-bundler.js +105 -12
  251. package/esm/src/transforms/esm/http-cache.d.ts.map +1 -1
  252. package/esm/src/transforms/esm/http-cache.js +51 -44
  253. package/esm/src/transforms/esm/import-rewriter.d.ts.map +1 -1
  254. package/esm/src/transforms/esm/import-rewriter.js +3 -3
  255. package/esm/src/transforms/esm/package-registry.d.ts +15 -13
  256. package/esm/src/transforms/esm/package-registry.d.ts.map +1 -1
  257. package/esm/src/transforms/esm/package-registry.js +45 -32
  258. package/esm/src/transforms/esm/react-imports.d.ts.map +1 -1
  259. package/esm/src/transforms/esm/react-imports.js +3 -7
  260. package/esm/src/transforms/esm/types.d.ts +2 -0
  261. package/esm/src/transforms/esm/types.d.ts.map +1 -1
  262. package/esm/src/transforms/mdx/esm-module-loader/cache/index.d.ts +14 -0
  263. package/esm/src/transforms/mdx/esm-module-loader/cache/index.d.ts.map +1 -1
  264. package/esm/src/transforms/mdx/esm-module-loader/cache/index.js +67 -0
  265. package/esm/src/transforms/mdx/esm-module-loader/loader.d.ts.map +1 -1
  266. package/esm/src/transforms/mdx/esm-module-loader/loader.js +1 -1
  267. package/esm/src/transforms/mdx/esm-module-loader/module-fetcher/index.d.ts +1 -0
  268. package/esm/src/transforms/mdx/esm-module-loader/module-fetcher/index.d.ts.map +1 -1
  269. package/esm/src/transforms/mdx/esm-module-loader/module-fetcher/index.js +1 -0
  270. package/esm/src/transforms/mdx/esm-module-loader/types.d.ts +4 -0
  271. package/esm/src/transforms/mdx/esm-module-loader/types.d.ts.map +1 -1
  272. package/esm/src/transforms/mdx/index.d.ts +1 -1
  273. package/esm/src/transforms/mdx/index.d.ts.map +1 -1
  274. package/esm/src/transforms/mdx/index.js +1 -1
  275. package/esm/src/transforms/mdx/mdx-cache-adapter.js +1 -1
  276. package/esm/src/transforms/mdx/module-loader/types.d.ts +1 -1
  277. package/esm/src/transforms/mdx/module-loader/types.d.ts.map +1 -1
  278. package/esm/src/transforms/mdx/types.d.ts +2 -2
  279. package/esm/src/transforms/mdx/types.d.ts.map +1 -1
  280. package/esm/src/transforms/pipeline/context.d.ts.map +1 -1
  281. package/esm/src/transforms/pipeline/context.js +7 -15
  282. package/esm/src/transforms/pipeline/stages/finalize.d.ts.map +1 -1
  283. package/esm/src/transforms/pipeline/stages/finalize.js +1 -1
  284. package/esm/src/types/app.d.ts +1 -1
  285. package/esm/src/types/app.d.ts.map +1 -1
  286. package/esm/src/types/global-guards.d.ts +1 -1
  287. package/esm/src/types/global-guards.d.ts.map +1 -1
  288. package/esm/src/types/index.d.ts +1 -1
  289. package/esm/src/types/index.d.ts.map +1 -1
  290. package/esm/src/utils/constants/cdn.d.ts.map +1 -1
  291. package/esm/src/utils/constants/cdn.js +22 -11
  292. package/esm/src/utils/hash-utils.d.ts +2 -0
  293. package/esm/src/utils/hash-utils.d.ts.map +1 -1
  294. package/esm/src/utils/hash-utils.js +4 -0
  295. package/esm/src/workflow/react/use-approval.js +1 -1
  296. package/esm/src/workflow/react/use-workflow-list.js +1 -1
  297. package/esm/src/workflow/react/use-workflow-start.js +1 -1
  298. package/esm/src/workflow/react/use-workflow.js +1 -1
  299. package/package.json +2 -1
  300. package/src/deno.js +8 -9
  301. package/src/deps/esm.sh/@types/react-dom@19.1.11/X-ZGNzc3R5cGVAMy4yLjMKZXJlYWN0/client.d.ts +105 -0
  302. package/src/deps/esm.sh/@types/react-dom@19.1.11/X-ZGNzc3R5cGVAMy4yLjMKZXJlYWN0/server.d.ts +162 -0
  303. package/src/deps/esm.sh/@types/react@19.1.17/X-ZGNzc3R5cGVAMy4yLjM/global.d.ts +165 -0
  304. package/src/deps/esm.sh/@types/react@19.1.17/X-ZGNzc3R5cGVAMy4yLjM/index.d.ts +4267 -0
  305. package/src/deps/esm.sh/@types/react@19.1.17/X-ZGNzc3R5cGVAMy4yLjMKZXJlYWN0/global.d.ts +165 -0
  306. package/src/deps/esm.sh/@types/react@19.1.17/X-ZGNzc3R5cGVAMy4yLjMKZXJlYWN0/index.d.ts +4267 -0
  307. package/src/deps/esm.sh/@types/react@19.1.17/X-ZGNzc3R5cGVAMy4yLjMKZXJlYWN0/jsx-runtime.d.ts +36 -0
  308. package/src/deps/esm.sh/@types/scheduler@0.26.0/index.d.ts +30 -0
  309. package/src/deps/esm.sh/csstype@3.2.3/index.d.ts +22569 -0
  310. package/src/deps/esm.sh/react-dom@19.1.1/client.d.ts +105 -0
  311. package/src/deps/esm.sh/react-dom@19.1.1/client.js +5 -0
  312. package/src/deps/esm.sh/react-dom@19.1.1/server.d.ts +162 -0
  313. package/src/deps/esm.sh/react-dom@19.1.1/server.js +5 -0
  314. package/src/deps/esm.sh/react@19.1.1/jsx-runtime.d.ts +36 -0
  315. package/src/deps/esm.sh/react@19.1.1/jsx-runtime.js +3 -0
  316. package/src/deps/esm.sh/react@19.1.1.d.ts +4267 -0
  317. package/src/deps/esm.sh/react@19.1.1.js +3 -0
  318. package/src/deps/esm.sh/scheduler@^0.26.0.d.ts +30 -0
  319. package/src/deps/esm.sh/scheduler@^0.26.0.js +3 -0
  320. package/src/proxy/main.ts +471 -0
  321. package/src/src/agent/react/use-agent.ts +1 -1
  322. package/src/src/agent/react/use-chat/use-chat.ts +1 -1
  323. package/src/src/agent/react/use-completion.ts +1 -1
  324. package/src/src/agent/react/use-streaming.ts +1 -1
  325. package/src/src/agent/react/use-voice-input.ts +1 -1
  326. package/src/src/cli/app/components/list-select.ts +2 -2
  327. package/src/src/cli/app/index.ts +34 -35
  328. package/src/src/cli/app/state.ts +7 -0
  329. package/src/src/cli/app/views/dashboard.ts +46 -60
  330. package/src/src/cli/app/views/startup.ts +132 -0
  331. package/src/src/cli/commands/init/config-generator.ts +1 -1
  332. package/src/src/cli/index/arg-parser.ts +1 -0
  333. package/src/src/cli/index/command-router.ts +57 -40
  334. package/src/src/cli/index/types.ts +5 -0
  335. package/src/src/cli/ui/colors.ts +37 -0
  336. package/src/src/cli/ui/dot-matrix.ts +77 -1
  337. package/src/src/config/loader.ts +5 -4
  338. package/src/src/html/utils.ts +2 -2
  339. package/src/src/modules/component-registry/registry.ts +1 -1
  340. package/src/src/modules/import-map/default-import-map.ts +3 -25
  341. package/src/src/modules/import-map/loader.ts +7 -23
  342. package/src/src/modules/import-map/resolver.ts +13 -8
  343. package/src/src/modules/react-loader/component-loader.ts +3 -1
  344. package/src/src/modules/react-loader/extract-component.ts +1 -1
  345. package/src/src/modules/react-loader/ssr-module-loader/loader.ts +95 -68
  346. package/src/src/modules/react-loader/ssr-module-loader/types.ts +2 -0
  347. package/src/src/modules/react-loader/types.ts +3 -1
  348. package/src/src/modules/react-loader/unified-loader.ts +7 -4
  349. package/src/src/modules/server/module-batch-handler.ts +7 -0
  350. package/src/src/modules/server/module-server.ts +6 -1
  351. package/src/src/modules/server/ssr-import-rewriter.ts +9 -17
  352. package/src/src/react/compat/hooks-adapter.ts +1 -1
  353. package/src/src/react/compat/ssr-adapter/response-builder.ts +1 -1
  354. package/src/src/react/compat/ssr-adapter/server-loader.ts +10 -10
  355. package/src/src/react/compat/ssr-adapter/stream-renderer.ts +2 -2
  356. package/src/src/react/compat/ssr-adapter/string-renderer.ts +3 -3
  357. package/src/src/react/compat/version-detector/feature-detector.ts +1 -1
  358. package/src/src/react/components/AppWrapper.tsx +1 -1
  359. package/src/src/react/components/Head.tsx +7 -3
  360. package/src/src/react/components/LayoutComponent.tsx +2 -2
  361. package/src/src/react/components/Link.tsx +1 -1
  362. package/src/src/react/components/MDXProvider.tsx +2 -2
  363. package/src/src/react/components/ProviderComponent.tsx +2 -2
  364. package/src/src/react/components/ai/agent-card.tsx +1 -1
  365. package/src/src/react/components/ai/chat/components/animations.tsx +1 -1
  366. package/src/src/react/components/ai/chat/components/empty-state.tsx +1 -1
  367. package/src/src/react/components/ai/chat/components/message-actions.tsx +1 -1
  368. package/src/src/react/components/ai/chat/components/reasoning.tsx +1 -1
  369. package/src/src/react/components/ai/chat/components/tool-ui.tsx +1 -1
  370. package/src/src/react/components/ai/chat/composition/api.tsx +1 -1
  371. package/src/src/react/components/ai/chat/index.tsx +1 -1
  372. package/src/src/react/components/ai/error-boundary.tsx +1 -1
  373. package/src/src/react/components/ai/icons/index.ts +1 -1
  374. package/src/src/react/components/ai/markdown.tsx +1 -1
  375. package/src/src/react/components/ai/message.tsx +1 -1
  376. package/src/src/react/components/optimized-image/OptimizedBackgroundImage.tsx +1 -1
  377. package/src/src/react/components/optimized-image/OptimizedImage.tsx +1 -1
  378. package/src/src/react/components/optimized-image/SimpleOptimizedImage.tsx +1 -1
  379. package/src/src/react/components/optimized-image/utils.tsx +1 -1
  380. package/src/src/react/context/index.ts +1 -1
  381. package/src/src/react/fonts/index.ts +1 -1
  382. package/src/src/react/primitives/agent-primitives.tsx +1 -1
  383. package/src/src/react/primitives/chat-container.tsx +1 -1
  384. package/src/src/react/primitives/input-box.tsx +5 -3
  385. package/src/src/react/primitives/message-list.tsx +1 -1
  386. package/src/src/react/primitives/tool-primitives.tsx +1 -1
  387. package/src/src/react/router/index.ts +1 -1
  388. package/src/src/rendering/app-reserved.ts +1 -1
  389. package/src/src/rendering/client/router.ts +2 -2
  390. package/src/src/rendering/client/state-bridge.ts +2 -2
  391. package/src/src/rendering/component-handling.ts +7 -1
  392. package/src/src/rendering/element-validator/element-inspector.ts +1 -1
  393. package/src/src/rendering/element-validator/element-normalizer.ts +1 -1
  394. package/src/src/rendering/element-validator/primitive-checks.ts +1 -1
  395. package/src/src/rendering/element-validator/validator-core.ts +1 -1
  396. package/src/src/rendering/layouts/layout-applicator.ts +5 -6
  397. package/src/src/rendering/layouts/utils/applicator.ts +1 -1
  398. package/src/src/rendering/layouts/utils/component-loader.ts +1 -1
  399. package/src/src/rendering/layouts/utils/ensure-valid-child.ts +1 -1
  400. package/src/src/rendering/orchestrator/layout.ts +1 -1
  401. package/src/src/rendering/orchestrator/module-loader/index.ts +91 -20
  402. package/src/src/rendering/orchestrator/pipeline.ts +2 -0
  403. package/src/src/rendering/orchestrator/ssr-orchestrator.ts +2 -2
  404. package/src/src/rendering/page-renderer.ts +1 -1
  405. package/src/src/rendering/page-rendering.ts +1 -1
  406. package/src/src/rendering/rsc/server-renderer/component-detector.ts +1 -1
  407. package/src/src/rendering/rsc/server-renderer/rsc-renderer.ts +1 -1
  408. package/src/src/rendering/rsc/server-renderer/tree-processor.ts +14 -4
  409. package/src/src/rendering/snippet-renderer.ts +2 -2
  410. package/src/src/rendering/ssr/component-registry.ts +1 -1
  411. package/src/src/rendering/ssr-renderer.ts +1 -1
  412. package/src/src/rendering/utils/react-helpers.ts +1 -1
  413. package/src/src/server/build-app-route-renderer.ts +2 -2
  414. package/src/src/server/handlers/request/rsc/handlers/render-handler.ts +1 -1
  415. package/src/src/server/handlers/request/ssr/error-page-fallback.ts +2 -2
  416. package/src/src/server/handlers/request/ssr/not-found-fallback.ts +1 -1
  417. package/src/src/transforms/esm/http-bundler.ts +101 -11
  418. package/src/src/transforms/esm/http-cache.ts +53 -45
  419. package/src/src/transforms/esm/import-rewriter.ts +5 -3
  420. package/src/src/transforms/esm/package-registry.ts +46 -32
  421. package/src/src/transforms/esm/react-imports.ts +3 -7
  422. package/src/src/transforms/esm/types.ts +2 -0
  423. package/src/src/transforms/mdx/esm-module-loader/cache/index.ts +84 -0
  424. package/src/src/transforms/mdx/esm-module-loader/loader.ts +2 -1
  425. package/src/src/transforms/mdx/esm-module-loader/module-fetcher/index.ts +2 -1
  426. package/src/src/transforms/mdx/esm-module-loader/types.ts +4 -0
  427. package/src/src/transforms/mdx/index.ts +1 -1
  428. package/src/src/transforms/mdx/mdx-cache-adapter.ts +1 -1
  429. package/src/src/transforms/mdx/module-loader/types.ts +1 -1
  430. package/src/src/transforms/mdx/types.ts +2 -2
  431. package/src/src/transforms/pipeline/context.ts +7 -18
  432. package/src/src/transforms/pipeline/stages/finalize.ts +6 -1
  433. package/src/src/transforms/plugins/babel-node-positions.ts +2 -2
  434. package/src/src/types/app.ts +1 -1
  435. package/src/src/types/global-guards.ts +1 -1
  436. package/src/src/types/index.ts +1 -1
  437. package/src/src/utils/constants/cdn.ts +21 -12
  438. package/src/src/utils/hash-utils.ts +5 -0
  439. package/src/src/workflow/react/use-approval.ts +1 -1
  440. package/src/src/workflow/react/use-workflow-list.ts +1 -1
  441. package/src/src/workflow/react/use-workflow-start.ts +1 -1
  442. package/src/src/workflow/react/use-workflow.ts +1 -1
@@ -170,47 +170,62 @@ export async function routeCommand(args) {
170
170
  break;
171
171
  case "preview":
172
172
  case "serve": {
173
- showLogo();
174
- const { runtime } = await import("../../platform/adapters/detect.js");
175
- const adapter = await runtime.get();
176
- const { startUniversalServer } = await import("../../server/production-server.js");
177
- const projectDir = cwd();
173
+ const mode = (args.mode || args.m || "renderer");
178
174
  const port = args.port ?? DEFAULT_DEV_SERVER_PORT;
179
175
  const bindAddress = String(args.hostname || args.host || "0.0.0.0");
180
- const debug = Boolean(args.debug);
181
- const shutdownController = new AbortController();
182
- const server = await startUniversalServer({
183
- projectDir,
184
- port,
185
- bindAddress,
186
- debug,
187
- adapter,
188
- signal: shutdownController.signal,
189
- });
190
- await server.ready;
191
- let shuttingDown = false;
192
- const shutdown = async (signal) => {
193
- if (shuttingDown)
194
- return;
195
- shuttingDown = true;
196
- cliLogger.info(`Received ${signal}, shutting down production server...`);
197
- try {
198
- shutdownController.abort();
199
- await server.stop();
200
- }
201
- catch (error) {
202
- cliLogger.warn("Error while shutting down production server:", error);
203
- }
204
- finally {
205
- exitProcess(0);
206
- }
207
- };
208
- registerTerminationSignals((signal) => {
209
- void shutdown(signal);
210
- });
211
- await new Promise(() => {
212
- /* never resolve */
213
- });
176
+ if (mode === "proxy") {
177
+ // Proxy-only mode: run OAuth token proxy
178
+ showLogo();
179
+ cliLogger.info(`Starting proxy server on ${bindAddress}:${port}`);
180
+ // Set environment variables for proxy
181
+ const { setEnv } = await import("../../platform/compat/process.js");
182
+ setEnv("PORT", String(port));
183
+ setEnv("HOST", bindAddress);
184
+ // Import and run proxy main
185
+ await import("../../../proxy/main.js");
186
+ }
187
+ else if (mode === "renderer" || mode === "combined") {
188
+ // Renderer mode: run SSR production server
189
+ showLogo();
190
+ const { runtime } = await import("../../platform/adapters/detect.js");
191
+ const adapter = await runtime.get();
192
+ const { startUniversalServer } = await import("../../server/production-server.js");
193
+ const projectDir = cwd();
194
+ const debug = Boolean(args.debug);
195
+ const shutdownController = new AbortController();
196
+ const server = await startUniversalServer({
197
+ projectDir,
198
+ port,
199
+ bindAddress,
200
+ debug,
201
+ adapter,
202
+ signal: shutdownController.signal,
203
+ });
204
+ await server.ready;
205
+ let shuttingDown = false;
206
+ const shutdown = async (signal) => {
207
+ if (shuttingDown)
208
+ return;
209
+ shuttingDown = true;
210
+ cliLogger.info(`Received ${signal}, shutting down production server...`);
211
+ try {
212
+ shutdownController.abort();
213
+ await server.stop();
214
+ }
215
+ catch (error) {
216
+ cliLogger.warn("Error while shutting down production server:", error);
217
+ }
218
+ finally {
219
+ exitProcess(0);
220
+ }
221
+ };
222
+ registerTerminationSignals((signal) => {
223
+ void shutdown(signal);
224
+ });
225
+ await new Promise(() => {
226
+ /* never resolve */
227
+ });
228
+ }
214
229
  break;
215
230
  }
216
231
  case "doctor":
@@ -16,6 +16,7 @@ export interface BuildCommandArgs {
16
16
  export interface GenerateCommandArgs {
17
17
  _: (string | number)[];
18
18
  }
19
+ export type ServerMode = "combined" | "proxy" | "renderer";
19
20
  export interface ParsedArgs {
20
21
  _: (string | number)[];
21
22
  port?: number;
@@ -39,6 +40,9 @@ export interface ParsedArgs {
39
40
  j?: boolean;
40
41
  with?: string[];
41
42
  w?: string[];
43
+ /** Server mode: combined (default), proxy, or renderer */
44
+ mode?: ServerMode;
45
+ m?: ServerMode;
42
46
  [key: string]: unknown;
43
47
  }
44
48
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","s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AAM,CAAC,EAAE,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,CAAC,CAAC,EAAE,OAAO,CAAC;IACZ,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,CAAC,CAAC,EAAE,OAAO,CAAC;IACZ,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,CAAC,CAAC,EAAE,OAAO,CAAC;IACZ,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,CAAC,CAAC,EAAE,OAAO,CAAC;IACZ,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,CAAC,CAAC,EAAE,OAAO,CAAC;IACZ,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,CAAC,CAAC,EAAE,OAAO,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC;IACb,0DAA0D;IAC1D,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,CAAC,CAAC,EAAE,UAAU,CAAC;IACf,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB"}
@@ -303,13 +303,13 @@ declare const createProjectInput: z.ZodObject<{
303
303
  }, "strip", z.ZodTypeAny, {
304
304
  name: string;
305
305
  template: "app" | "docs" | "ai" | "blog" | "minimal";
306
- integrations?: string[] | undefined;
307
306
  directory?: string | undefined;
307
+ integrations?: string[] | undefined;
308
308
  }, {
309
309
  name: string;
310
310
  template?: "app" | "docs" | "ai" | "blog" | "minimal" | undefined;
311
- integrations?: string[] | undefined;
312
311
  directory?: string | undefined;
312
+ integrations?: string[] | undefined;
313
313
  }>;
314
314
  type CreateProjectInput = z.infer<typeof createProjectInput>;
315
315
  interface CreateProjectResult {
@@ -20,4 +20,12 @@ export declare const successBold: (text: string) => string;
20
20
  export declare const errorBold: (text: string) => string;
21
21
  export { RESET as reset };
22
22
  export declare function animatedMatrix(frame: number): string;
23
+ /**
24
+ * Apply shimmer effect to text - creates a wave of brightness moving across
25
+ * @param text The text to shimmer
26
+ * @param frame Current animation frame (increments over time)
27
+ * @param waveWidth Width of the bright wave (default: 3 characters)
28
+ * @returns Text with shimmer effect applied
29
+ */
30
+ export declare function shimmer(text: string, frame: number, waveWidth?: number): string;
23
31
  //# sourceMappingURL=colors.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../../../src/src/cli/ui/colors.ts"],"names":[],"mappings":"AACA,OAAO,EAAO,KAAK,EAAE,MAAM,WAAW,CAAC;AAEvC,MAAM,MAAM,UAAU,GAAG,WAAW,GAAG,KAAK,GAAG,IAAI,GAAG,MAAM,CAAC;AAE7D,wBAAgB,aAAa,IAAI,UAAU,CA+B1C;AAED,wBAAgB,cAAc,IAAI,OAAO,CAExC;AASD,wBAAgB,eAAe,IAAI,IAAI,CAEtC;AAgED,wBAAgB,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAGvD;AAED,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAGzD;AAMD,eAAO,MAAM,KAAK,SAJsC,MAAM,WAIxB,CAAC;AACvC,eAAO,MAAM,OAAO,SAJsC,MAAM,WAItB,CAAC;AAE3C,eAAO,MAAM,OAAO,SAPoC,MAAM,WAOvB,CAAC;AACxC,eAAO,MAAM,KAAK,SARsC,MAAM,WAQzB,CAAC;AACtC,eAAO,MAAM,OAAO,SAToC,MAAM,WASvB,CAAC;AACxC,eAAO,MAAM,KAAK,SAVsC,MAAM,WAUvB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OAAO,SAToC,MAAM,WASvB,CAAC;AACxC,eAAO,MAAM,KAAK,SAVsC,MAAM,WAUvB,CAAC;AAExC,eAAO,MAAM,IAAI,GAAI,MAAM,MAAM,WAA+B,CAAC;AACjE,eAAO,MAAM,GAAG,GAAI,MAAM,MAAM,WAA+B,CAAC;AAChE,eAAO,MAAM,MAAM,GAAI,MAAM,MAAM,WAA+B,CAAC;AACnE,eAAO,MAAM,SAAS,GAAI,MAAM,MAAM,WAA+B,CAAC;AAEtE,eAAO,MAAM,SAAS,GAAI,MAAM,MAAM,WAAsB,CAAC;AAC7D,eAAO,MAAM,WAAW,GAAI,MAAM,MAAM,WAAwB,CAAC;AACjE,eAAO,MAAM,SAAS,GAAI,MAAM,MAAM,WAAsB,CAAC;AAE7D,OAAO,EAAE,KAAK,IAAI,KAAK,EAAE,CAAC;AAS1B,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAGpD;AAED;;;;;;GAMG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,SAAI,GAAG,MAAM,CA4B1E"}
@@ -132,3 +132,37 @@ export function animatedMatrix(frame) {
132
132
  const state = MATRIX_STATES[frame % MATRIX_STATES.length] ?? ["●", "○", "○"];
133
133
  return state.map((dot) => (dot === "●" ? brand(dot) : muted(dot))).join("");
134
134
  }
135
+ /**
136
+ * Apply shimmer effect to text - creates a wave of brightness moving across
137
+ * @param text The text to shimmer
138
+ * @param frame Current animation frame (increments over time)
139
+ * @param waveWidth Width of the bright wave (default: 3 characters)
140
+ * @returns Text with shimmer effect applied
141
+ */
142
+ export function shimmer(text, frame, waveWidth = 3) {
143
+ // Brand orange gradient: bright → normal → dim
144
+ const bright = (char) => applyColor(char, 255, 180, 140, false); // Brighter orange
145
+ const normal = (char) => applyColor(char, 252, 143, 93, false); // Brand orange
146
+ const dimmed = (char) => applyColor(char, 180, 100, 65, false); // Dimmer orange
147
+ const len = text.length;
148
+ const wavePos = frame % (len + waveWidth * 2);
149
+ let result = "";
150
+ for (let i = 0; i < len; i++) {
151
+ const char = text[i];
152
+ const distFromWave = i - (wavePos - waveWidth);
153
+ if (distFromWave >= 0 && distFromWave < waveWidth) {
154
+ // In the bright wave
155
+ const intensity = 1 - Math.abs(distFromWave - waveWidth / 2) / (waveWidth / 2);
156
+ if (intensity > 0.6) {
157
+ result += bright(char);
158
+ }
159
+ else {
160
+ result += normal(char);
161
+ }
162
+ }
163
+ else {
164
+ result += dimmed(char);
165
+ }
166
+ }
167
+ return result;
168
+ }
@@ -48,6 +48,14 @@ export declare function getAgentFace(options?: DotMatrixOptions): string;
48
48
  * Text lines appear to the right of the face, vertically centered
49
49
  */
50
50
  export declare function getAgentFaceWithText(textLines: string[], options?: DotMatrixOptions): string;
51
+ /**
52
+ * Get the agent face with spinning blade animation
53
+ * Orange and purple dots rotate around the logo
54
+ * @param textLines Text to show next to the face
55
+ * @param frame Animation frame (0-15 for full rotation)
56
+ * @param options Dot matrix options
57
+ */
58
+ export declare function getSpinningAgentFace(textLines: string[], frame: number, options?: DotMatrixOptions): string;
51
59
  /**
52
60
  * Animated dot matrix display with spinner support
53
61
  */
@@ -1 +1 @@
1
- {"version":3,"file":"dot-matrix.d.ts","sourceRoot":"","sources":["../../../../src/src/cli/ui/dot-matrix.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,eAAO,MAAM,UAAU,EAAE,MAAM,EAAE,EAQhC,CAAC;AAIF,eAAO,MAAM,gBAAgB,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,EAiB9C,CAAC;AAEF,MAAM,WAAW,gBAAgB;IAC/B,6BAA6B;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,6BAA6B;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,uCAAuC;IACvC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,uCAAuC;IACvC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB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G;IACH,cAAc,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,MAAM;IAI3C;;OAEG;IACH,SAAS,IAAI,MAAM;IAInB,OAAO,CAAC,aAAa;IAMrB,OAAO,CAAC,aAAa;IAIrB;;;OAGG;IACH,YAAY,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,EAAE,UAAU,SAAK,GAAG,IAAI;IAerE;;OAEG;IACH,oBAAoB,CAClB,SAAS,EAAE,MAAM,EAAE,EACnB,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,EAChC,UAAU,SAAK,GACd,IAAI;IAeP;;;OAGG;IACH,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,EAAE,UAAU,SAAK,GAAG,OAAO,CAAC,IAAI,CAAC;IA2B5F;;;OAGG;IACH,kBAAkB,CAChB,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,EAAE,EACnB,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,EAChC,UAAU,SAAK,GACd,OAAO,CAAC,IAAI,CAAC;IA2BhB;;OAEG;IACH,WAAW,IAAI,IAAI;IAMnB;;OAEG;IACH,IAAI,IAAI,IAAI;IAMZ;;OAEG;IACH,KAAK,IAAI,IAAI;IAKb;;OAEG;IACH,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,GAAG,IAAI;CAGtC;AAED;;GAEG;AACH,wBAAgB,SAAS,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,GAAE,gBAAqB,GAAG,MAAM,CAEjF;AAED;;GAEG;AACH,wBAAgB,aAAa,IAAI,MAAM,CAEtC"}
@@ -52,6 +52,13 @@ const COMPACT_OPTIONS = {
52
52
  spacing: " ",
53
53
  };
54
54
  const RESET = "\x1b[0m";
55
+ // Colors for spinning animation - shades of orange
56
+ const SPIN_COLORS = {
57
+ bright: "\x1b[38;2;255;165;120m", // Bright orange (leading edge, toned down)
58
+ orange: "\x1b[38;2;252;143;93m", // Brand orange
59
+ mid: "\x1b[38;2;200;110;70m", // Mid orange (trailing)
60
+ dim: "\x1b[38;2;140;80;50m", // Dim orange/brown
61
+ };
55
62
  function resolveOptions(options) {
56
63
  if (options.compact)
57
64
  return { ...DEFAULT_OPTIONS, ...COMPACT_OPTIONS, ...options };
@@ -65,8 +72,56 @@ function renderPattern(pattern, opts) {
65
72
  return opts.prefix + dots.join(opts.spacing);
66
73
  });
67
74
  }
68
- function renderPatternWithText(pattern, textLines, opts) {
69
- const faceLines = renderPattern(pattern, opts);
75
+ /**
76
+ * Render the pattern with a spinning blade effect
77
+ * The blade sweeps across the lit dots, creating orange → purple gradient
78
+ */
79
+ function renderSpinningPattern(pattern, frame, opts) {
80
+ const centerRow = 3;
81
+ const centerCol = 3;
82
+ const totalFrames = 16; // Full rotation in 16 frames
83
+ const bladeAngle = ((frame % totalFrames) / totalFrames) * Math.PI * 2;
84
+ return pattern.map((row, rowIdx) => {
85
+ const dots = row.map((dot, colIdx) => {
86
+ if (dot !== 1) {
87
+ return `${opts.offColor}${opts.offChar}${RESET}`;
88
+ }
89
+ // Calculate angle from center to this dot
90
+ const dy = rowIdx - centerRow;
91
+ const dx = colIdx - centerCol;
92
+ let dotAngle = Math.atan2(dy, dx);
93
+ if (dotAngle < 0)
94
+ dotAngle += Math.PI * 2;
95
+ // Calculate angular distance from the blade
96
+ let angleDiff = dotAngle - bladeAngle;
97
+ if (angleDiff < 0)
98
+ angleDiff += Math.PI * 2;
99
+ if (angleDiff > Math.PI)
100
+ angleDiff = Math.PI * 2 - angleDiff;
101
+ // Color based on angular distance from blade
102
+ const normalizedDiff = angleDiff / Math.PI; // 0 = at blade, 1 = opposite
103
+ let color;
104
+ if (normalizedDiff < 0.15) {
105
+ color = SPIN_COLORS.bright; // Leading edge - brightest orange
106
+ }
107
+ else if (normalizedDiff < 0.35) {
108
+ color = SPIN_COLORS.orange; // Near blade - brand orange
109
+ }
110
+ else if (normalizedDiff < 0.6) {
111
+ color = SPIN_COLORS.mid; // Trailing - mid orange
112
+ }
113
+ else {
114
+ color = SPIN_COLORS.dim; // Far from blade - dim orange
115
+ }
116
+ return `${color}${opts.litChar}${RESET}`;
117
+ });
118
+ return opts.prefix + dots.join(opts.spacing);
119
+ });
120
+ }
121
+ function renderPatternWithText(pattern, textLines, opts, spinFrame) {
122
+ const faceLines = spinFrame !== undefined
123
+ ? renderSpinningPattern(pattern, spinFrame, opts)
124
+ : renderPattern(pattern, opts);
70
125
  const faceHeight = faceLines.length;
71
126
  const startLine = Math.floor((faceHeight - textLines.length) / 2);
72
127
  const result = faceLines.map((line, i) => {
@@ -120,6 +175,16 @@ export function getAgentFace(options = {}) {
120
175
  export function getAgentFaceWithText(textLines, options = {}) {
121
176
  return renderPatternWithText(AGENT_FACE, textLines, resolveOptions(options));
122
177
  }
178
+ /**
179
+ * Get the agent face with spinning blade animation
180
+ * Orange and purple dots rotate around the logo
181
+ * @param textLines Text to show next to the face
182
+ * @param frame Animation frame (0-15 for full rotation)
183
+ * @param options Dot matrix options
184
+ */
185
+ export function getSpinningAgentFace(textLines, frame, options = {}) {
186
+ return renderPatternWithText(AGENT_FACE, textLines, resolveOptions(options), frame);
187
+ }
123
188
  /**
124
189
  * Animated dot matrix display with spinner support
125
190
  */
@@ -1 +1 @@
1
- {"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../../../src/src/config/loader.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAGlD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAenE,YAAY,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAqSlD;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,wBAAgB,SAAS,CACvB,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,cAAc,EACvB,OAAO,CAAC,EAAE,gBAAgB,GACzB,OAAO,CAAC,eAAe,CAAC,CAsE1B;AAED,wBAAgB,gBAAgB,IAAI,IAAI,CAGvC;AAED;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,UAAU,EAAE,MAAM,GAAG,eAAe,GAAG,IAAI,CAI9E"}
1
+ {"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../../../src/src/config/loader.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAGlD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAgBnE,YAAY,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAqSlD;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,wBAAgB,SAAS,CACvB,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,cAAc,EACvB,OAAO,CAAC,EAAE,gBAAgB,GACzB,OAAO,CAAC,eAAe,CAAC,CAsE1B;AAED,wBAAgB,gBAAgB,IAAI,IAAI,CAGvC;AAED;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,UAAU,EAAE,MAAM,GAAG,eAAe,GAAG,IAAI,CAI9E"}
@@ -6,7 +6,8 @@ import { isBun } from "../platform/compat/runtime.js";
6
6
  import { serverLogger } from "../utils/logger/logger.js";
7
7
  import { getReactImportMap, REACT_DEFAULT_VERSION } from "../utils/constants/cdn.js";
8
8
  import { DEFAULT_CACHE_DIR } from "../utils/constants/server.js";
9
- import { setReactVersion } from "../transforms/esm/package-registry.js";
9
+ // React version is now passed per-request via TransformOptions.reactVersion
10
+ // No longer using global singleton: import { setReactVersion } from "#veryfront/transforms/esm/package-registry.ts";
10
11
  import { buildConfigCacheKey } from "../cache/keys.js";
11
12
  import { DEFAULT_PORT } from "./defaults.js";
12
13
  import { createFileSystem } from "../platform/compat/fs.js";
@@ -174,10 +175,10 @@ function validateAndCacheConfig(userConfig, cacheKey) {
174
175
  validateCorsConfig(userConfig);
175
176
  validateConfigShape(userConfig);
176
177
  const merged = mergeConfigs(userConfig);
177
- // Apply React version from config (sets global default for transforms)
178
+ // React version is now passed per-request via TransformOptions.reactVersion
179
+ // Config stores it at merged.react.version, accessed wherever needed
178
180
  if (merged.react?.version) {
179
- setReactVersion(merged.react.version);
180
- serverLogger.debug("[CONFIG] React version set from config", { version: merged.react.version });
181
+ serverLogger.debug("[CONFIG] React version from config", { version: merged.react.version });
181
182
  }
182
183
  configCacheByProject.set(cacheKey, { revision: cacheRevision, config: merged });
183
184
  return merged;
@@ -62,8 +62,8 @@ const PLATFORM_UTILITIES = {
62
62
  const CDN_URL_TEMPLATES = {
63
63
  "esm.sh": {
64
64
  react: (v) => `https://esm.sh/react@${v}?target=es2022`,
65
- reactDom: (v) => `https://esm.sh/react-dom@${v}?target=es2022`,
66
- reactDomClient: (v) => `https://esm.sh/react-dom@${v}/client?target=es2022`,
65
+ reactDom: (v) => `https://esm.sh/react-dom@${v}?external=react&target=es2022`,
66
+ reactDomClient: (v) => `https://esm.sh/react-dom@${v}/client?external=react&target=es2022`,
67
67
  jsxRuntime: (v) => `https://esm.sh/react@${v}/jsx-runtime?target=es2022`,
68
68
  jsxDevRuntime: (v) => `https://esm.sh/react@${v}/jsx-dev-runtime?target=es2022`,
69
69
  veryfrontAgentReact: (v) => `https://esm.sh/veryfront@${v}/agent/react?external=react,react-dom&target=es2022`,
@@ -1,5 +1,5 @@
1
1
  import type { RuntimeAdapter } from "../../platform/adapters/base.js";
2
- import type * as React from "react";
2
+ import type * as React from "../../../deps/esm.sh/react@19.1.1.js";
3
3
  export interface ComponentExports {
4
4
  default?: unknown;
5
5
  [key: string]: unknown;
@@ -1 +1 @@
1
- {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../../src/src/modules/component-registry/registry.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,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AAI,EAAE,OAAO,CAAC,aAAa,CAAC,GAAG,IAAI;IAUrD,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAI1B,KAAK,IAAI,IAAI;IAMb,iBAAiB,IAAI,MAAM,EAAE;IAIvB,cAAc,IAAI,OAAO,CAC7B,KAAK,CAAC;QACJ,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,IAAI,EAAE,MAAM,CAAC;KACd,CAAC,CACH;CA8BF"}
@@ -1,17 +1,7 @@
1
1
  import type { ImportMapConfig } from "./types.js";
2
- /**
3
- * Get React import map for SSR in Deno.
4
- * Uses npm: specifiers which Deno handles natively with automatic deduplication.
5
- * See: https://deno.com/blog/not-using-npm-specifiers-doing-it-wrong
6
- *
7
- * This replaces the previous shared-*.ts approach which required manual re-exports.
8
- */
9
- export declare function getDenoReactImportMap(): Record<string, string>;
10
2
  /**
11
3
  * Get the default import map for SSR transforms.
12
- *
13
- * For Deno SSR: Uses npm: specifiers with automatic deduplication.
14
- * For other runtimes: Uses esm.sh URLs with external=react.
4
+ * Uses esm.sh URLs consistently (NO npm: specifiers per plan requirements).
15
5
  */
16
6
  export declare function getDefaultImportMap(): ImportMapConfig;
17
7
  //# sourceMappingURL=default-import-map.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"default-import-map.d.ts","sourceRoot":"","sources":["../../../../src/src/modules/import-map/default-import-map.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AA8ClD;;;;;;GAMG;AACH,wBAAgB,qBAAqB,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAE9D;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,IAAI,eAAe,CAYrD"}
1
+ {"version":3,"file":"default-import-map.d.ts","sourceRoot":"","sources":["../../../../src/src/modules/import-map/default-import-map.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AA0ClD;;;GAGG;AACH,wBAAgB,mBAAmB,IAAI,eAAe,CAOrD"}
@@ -1,6 +1,5 @@
1
1
  import * as dntShim from "../../../_dnt.shims.js";
2
- import { isDeno } from "../../platform/compat/runtime.js";
3
- import { getDenoNpmReactMap, getReactImportMap, } from "../../transforms/esm/package-registry.js";
2
+ import { getReactImportMap } from "../../transforms/esm/package-registry.js";
4
3
  function ensureTrailingSlash(path) {
5
4
  return path.endsWith("/") ? path : `${path}/`;
6
5
  }
@@ -34,30 +33,14 @@ function getVeryfrontSsrImportMap() {
34
33
  "veryfront/react/fonts": fonts,
35
34
  };
36
35
  }
37
- /**
38
- * Get React import map for SSR in Deno.
39
- * Uses npm: specifiers which Deno handles natively with automatic deduplication.
40
- * See: https://deno.com/blog/not-using-npm-specifiers-doing-it-wrong
41
- *
42
- * This replaces the previous shared-*.ts approach which required manual re-exports.
43
- */
44
- export function getDenoReactImportMap() {
45
- return getDenoNpmReactMap();
46
- }
47
36
  /**
48
37
  * Get the default import map for SSR transforms.
49
- *
50
- * For Deno SSR: Uses npm: specifiers with automatic deduplication.
51
- * For other runtimes: Uses esm.sh URLs with external=react.
38
+ * Uses esm.sh URLs consistently (NO npm: specifiers per plan requirements).
52
39
  */
53
40
  export function getDefaultImportMap() {
54
- const reactMap = isDeno ? getDenoReactImportMap() : getReactImportMap();
41
+ const reactMap = getReactImportMap();
55
42
  const veryfrontMap = getVeryfrontSsrImportMap();
56
- // For Deno SSR, add scopes so that esm.sh modules with external=react
57
- // resolve their bare `react` imports to npm: specifiers.
58
- const scopes = isDeno ? { "https://esm.sh/": getDenoReactImportMap() } : undefined;
59
43
  return {
60
44
  imports: { ...veryfrontMap, ...reactMap },
61
- scopes,
62
45
  };
63
46
  }
@@ -1 +1 @@
1
- {"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../../../../src/src/modules/import-map/loader.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAEtE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAqElD,wBAAgB,aAAa,CAC3B,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,eAAe,CAAC,CA+C1B"}
1
+ {"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../../../../src/src/modules/import-map/loader.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAEtE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAqDlD,wBAAgB,aAAa,CAC3B,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,eAAe,CAAC,CA+C1B"}
@@ -1,14 +1,15 @@
1
1
  import { rendererLogger as logger } from "../../utils/index.js";
2
2
  import { dirname, join } from "../../platform/compat/path/index.js";
3
3
  import { getConfig } from "../../config/index.js";
4
- import { getDefaultImportMap, getDenoReactImportMap } from "./default-import-map.js";
4
+ import { getDefaultImportMap } from "./default-import-map.js";
5
5
  import { mergeImportMaps } from "./merger.js";
6
6
  import { withSpan } from "../../observability/tracing/otlp-setup.js";
7
- import { isDeno } from "../../platform/compat/runtime.js";
7
+ import { getReactImportMap } from "../../transforms/esm/package-registry.js";
8
8
  function normalizeImportMapForRuntime(importMap) {
9
9
  const normalizeValue = (value) => {
10
10
  if (!value.startsWith("npm:"))
11
11
  return value;
12
+ // Convert npm: specifiers to esm.sh URLs (should not happen with new code)
12
13
  const spec = value.slice(4);
13
14
  const [base, query] = spec.split("?");
14
15
  const url = `https://esm.sh/${base}`;
@@ -17,35 +18,19 @@ function normalizeImportMapForRuntime(importMap) {
17
18
  let imports = importMap.imports
18
19
  ? Object.fromEntries(Object.entries(importMap.imports).map(([k, v]) => [k, normalizeValue(v)]))
19
20
  : undefined;
20
- let scopes = importMap.scopes
21
+ const scopes = importMap.scopes
21
22
  ? Object.fromEntries(Object.entries(importMap.scopes).map(([scope, mappings]) => [
22
23
  scope,
23
24
  Object.fromEntries(Object.entries(mappings).map(([k, v]) => [k, normalizeValue(v)])),
24
25
  ]))
25
26
  : undefined;
26
- // CRITICAL: For Deno SSR, always use shared-*.ts files for React.
27
- // Project configs may have esm.sh URLs which would create multiple React instances.
28
27
  // Override React mappings AFTER all other processing to ensure single instance.
29
- // Also remove any "react/" prefix match since we have explicit mappings.
30
- if (isDeno && imports) {
31
- const reactMap = getDenoReactImportMap();
32
- // Remove any esm.sh "react/" prefix mapping that would break subpath resolution
28
+ // Remove any "react/" prefix match since we have explicit mappings.
29
+ if (imports) {
30
+ const reactMap = getReactImportMap();
33
31
  delete imports["react/"];
34
32
  imports = { ...imports, ...reactMap };
35
33
  }
36
- // For Deno SSR, ensure esm.sh scope has React mappings to shared-*.ts files.
37
- // This is critical because esm.sh modules with external=react have bare `react`
38
- // imports that need to resolve to our shared React instance.
39
- if (isDeno) {
40
- const reactMap = getDenoReactImportMap();
41
- const esmShScope = scopes?.["https://esm.sh/"] ?? {};
42
- // Remove any "react/" prefix match from scope as well
43
- delete esmShScope["react/"];
44
- scopes = {
45
- ...scopes,
46
- "https://esm.sh/": { ...esmShScope, ...reactMap },
47
- };
48
- }
49
34
  return { imports, scopes };
50
35
  }
51
36
  function mergeWithDefault(importMap) {
@@ -1 +1 @@
1
- {"version":3,"file":"resolver.d.ts","sourceRoot":"","sources":["../../../../src/src/modules/import-map/resolver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AA8ClD,wBAAgB,aAAa,CAC3B,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,eAAe,EAC1B,KAAK,CAAC,EAAE,MAAM,GACb,MAAM,CAkDR"}
1
+ {"version":3,"file":"resolver.d.ts","sourceRoot":"","sources":["../../../../src/src/modules/import-map/resolver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AA8ClD,wBAAgB,aAAa,CAC3B,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,eAAe,EAC1B,KAAK,CAAC,EAAE,MAAM,GACb,MAAM,CAuDR"}
@@ -46,21 +46,25 @@ export function resolveImport(specifier, importMap, scope) {
46
46
  if (isEsmShUrl(specifier)) {
47
47
  const esmShPackage = extractEsmShPackage(specifier);
48
48
  if (esmShPackage) {
49
+ const subpath = extractEsmShSubpath(specifier);
50
+ // Always check for explicit subpath mapping first (e.g., "react/jsx-runtime")
51
+ // This takes priority over appending subpath to base package mapping
52
+ if (subpath) {
53
+ const fullKey = esmShPackage + subpath; // e.g., "react/jsx-runtime"
54
+ const subpathMapping = scopedImports?.[fullKey] ?? importMap.imports?.[fullKey];
55
+ if (subpathMapping)
56
+ return subpathMapping;
57
+ }
49
58
  const mapping = scopedImports?.[esmShPackage] ?? importMap.imports?.[esmShPackage];
50
59
  if (mapping) {
51
- const subpath = extractEsmShSubpath(specifier);
52
60
  if (!subpath)
53
61
  return mapping;
54
- // If mapping target is a file path (not HTTP URL or npm: specifier), look for explicit subpath mapping
55
- // e.g., "react" local file but "react/jsx-runtime" different local file
56
- // npm: specifiers are URL-like and should have subpaths appended
62
+ // If mapping target is a file path (not HTTP URL or npm: specifier),
63
+ // fall back to base mapping since explicit subpath wasn't found above
57
64
  const isFilePath = !mapping.startsWith("http://") && !mapping.startsWith("https://") &&
58
65
  !mapping.startsWith("npm:");
59
66
  if (isFilePath) {
60
- const fullKey = esmShPackage + subpath; // e.g., "react/jsx-runtime"
61
- const subpathMapping = scopedImports?.[fullKey] ?? importMap.imports?.[fullKey];
62
- // Use explicit subpath mapping if available, otherwise fall back to base mapping
63
- return subpathMapping ?? mapping;
67
+ return mapping;
64
68
  }
65
69
  return mapping + subpath;
66
70
  }
@@ -1,4 +1,4 @@
1
- import type * as React from "react";
1
+ import type * as React from "../../../deps/esm.sh/react@19.1.1.js";
2
2
  import type { RuntimeAdapter } from "../../platform/adapters/base.js";
3
3
  import type { LoadComponentOptions } from "./types.js";
4
4
  export declare function loadComponentFromSource(source: string, filePath: string, projectDir: string, adapter: RuntimeAdapter, options?: LoadComponentOptions): Promise<React.ComponentType<Record<string, unknown>>>;
@@ -1 +1 @@
1
- {"version":3,"file":"component-loader.d.ts","sourceRoot":"","sources":["../../../../src/src/modules/react-loader/component-loader.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AACpC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAKtE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAMvD,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,cAAc,EACvB,OAAO,CAAC,EAAE,oBAAoB,GAC7B,OAAO,CAAC,KAAK,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAwDvD"}
1
+ {"version":3,"file":"component-loader.d.ts","sourceRoot":"","sources":["../../../../src/src/modules/react-loader/component-loader.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,KAAK,MAAM,sCAAsC,CAAC;AACnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAKtE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAMvD,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,cAAc,EACvB,OAAO,CAAC,EAAE,oBAAoB,GAC7B,OAAO,CAAC,KAAK,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CA0DvD"}
@@ -19,6 +19,7 @@ export function loadComponentFromSource(source, filePath, projectDir, adapter, o
19
19
  adapter,
20
20
  dev,
21
21
  contentSourceId: options?.contentSourceId,
22
+ reactVersion: options?.reactVersion,
22
23
  });
23
24
  return loader.loadModule(filePath, source);
24
25
  }
@@ -28,6 +29,7 @@ export function loadComponentFromSource(source, filePath, projectDir, adapter, o
28
29
  moduleServerUrl: options?.moduleServerUrl ?? "/_vf_modules",
29
30
  vendorBundleHash: options?.vendorBundleHash,
30
31
  ssr: false,
32
+ reactVersion: options?.reactVersion,
31
33
  };
32
34
  const transformedCode = await transformToESM(source, filePath, projectDir, adapter, transformOpts);
33
35
  const tmpDir = await getProjectTmpDir(projectId);
@@ -1,3 +1,3 @@
1
- import type * as React from "react";
1
+ import type * as React from "../../../deps/esm.sh/react@19.1.1.js";
2
2
  export declare function extractComponent(mod: unknown, filePath: string): React.ComponentType<Record<string, unknown>>;
3
3
  //# sourceMappingURL=extract-component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"extract-component.d.ts","sourceRoot":"","sources":["../../../../src/src/modules/react-loader/extract-component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAGpC,wBAAgB,gBAAgB,CAC9B,GAAG,EAAE,OAAO,EACZ,QAAQ,EAAE,MAAM,GACf,KAAK,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAgB9C"}
1
+ {"version":3,"file":"extract-component.d.ts","sourceRoot":"","sources":["../../../../src/src/modules/react-loader/extract-component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,sCAAsC,CAAC;AAGnE,wBAAgB,gBAAgB,CAC9B,GAAG,EAAE,OAAO,EACZ,QAAQ,EAAE,MAAM,GACf,KAAK,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAgB9C"}