@frontmcp/uipack 0.6.1

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 (417) hide show
  1. package/CLAUDE.md +246 -0
  2. package/LICENSE +201 -0
  3. package/README.md +150 -0
  4. package/adapters/index.d.ts +13 -0
  5. package/adapters/index.d.ts.map +1 -0
  6. package/adapters/index.js +462 -0
  7. package/adapters/platform-meta.d.ts +166 -0
  8. package/adapters/platform-meta.d.ts.map +1 -0
  9. package/adapters/response-builder.d.ts +108 -0
  10. package/adapters/response-builder.d.ts.map +1 -0
  11. package/adapters/serving-mode.d.ts +107 -0
  12. package/adapters/serving-mode.d.ts.map +1 -0
  13. package/base-template/bridge.d.ts +90 -0
  14. package/base-template/bridge.d.ts.map +1 -0
  15. package/base-template/default-base-template.d.ts +92 -0
  16. package/base-template/default-base-template.d.ts.map +1 -0
  17. package/base-template/index.d.ts +15 -0
  18. package/base-template/index.d.ts.map +1 -0
  19. package/base-template/index.js +1398 -0
  20. package/base-template/polyfills.d.ts +31 -0
  21. package/base-template/polyfills.d.ts.map +1 -0
  22. package/base-template/theme-styles.d.ts +74 -0
  23. package/base-template/theme-styles.d.ts.map +1 -0
  24. package/bridge-runtime/iife-generator.d.ts +62 -0
  25. package/bridge-runtime/iife-generator.d.ts.map +1 -0
  26. package/bridge-runtime/index.d.ts +10 -0
  27. package/bridge-runtime/index.d.ts.map +1 -0
  28. package/bridge-runtime/index.js +883 -0
  29. package/build/cdn-resources.d.ts +243 -0
  30. package/build/cdn-resources.d.ts.map +1 -0
  31. package/build/index.d.ts +295 -0
  32. package/build/index.d.ts.map +1 -0
  33. package/build/index.js +6861 -0
  34. package/build/widget-manifest.d.ts +362 -0
  35. package/build/widget-manifest.d.ts.map +1 -0
  36. package/bundler/cache.d.ts +173 -0
  37. package/bundler/cache.d.ts.map +1 -0
  38. package/bundler/file-cache/component-builder.d.ts +167 -0
  39. package/bundler/file-cache/component-builder.d.ts.map +1 -0
  40. package/bundler/file-cache/hash-calculator.d.ts +155 -0
  41. package/bundler/file-cache/hash-calculator.d.ts.map +1 -0
  42. package/bundler/file-cache/index.d.ts +12 -0
  43. package/bundler/file-cache/index.d.ts.map +1 -0
  44. package/bundler/file-cache/storage/filesystem.d.ts +149 -0
  45. package/bundler/file-cache/storage/filesystem.d.ts.map +1 -0
  46. package/bundler/file-cache/storage/index.d.ts +11 -0
  47. package/bundler/file-cache/storage/index.d.ts.map +1 -0
  48. package/bundler/file-cache/storage/interface.d.ts +152 -0
  49. package/bundler/file-cache/storage/interface.d.ts.map +1 -0
  50. package/bundler/file-cache/storage/redis.d.ts +139 -0
  51. package/bundler/file-cache/storage/redis.d.ts.map +1 -0
  52. package/bundler/index.d.ts +35 -0
  53. package/bundler/index.d.ts.map +1 -0
  54. package/bundler/index.js +2947 -0
  55. package/bundler/sandbox/enclave-adapter.d.ts +121 -0
  56. package/bundler/sandbox/enclave-adapter.d.ts.map +1 -0
  57. package/bundler/sandbox/executor.d.ts +14 -0
  58. package/bundler/sandbox/executor.d.ts.map +1 -0
  59. package/bundler/sandbox/policy.d.ts +62 -0
  60. package/bundler/sandbox/policy.d.ts.map +1 -0
  61. package/bundler/types.d.ts +702 -0
  62. package/bundler/types.d.ts.map +1 -0
  63. package/dependency/cdn-registry.d.ts +98 -0
  64. package/dependency/cdn-registry.d.ts.map +1 -0
  65. package/dependency/import-map.d.ts +186 -0
  66. package/dependency/import-map.d.ts.map +1 -0
  67. package/dependency/import-parser.d.ts +82 -0
  68. package/dependency/import-parser.d.ts.map +1 -0
  69. package/dependency/index.d.ts +17 -0
  70. package/dependency/index.d.ts.map +1 -0
  71. package/dependency/index.js +3215 -0
  72. package/dependency/resolver.d.ts +164 -0
  73. package/dependency/resolver.d.ts.map +1 -0
  74. package/dependency/schemas.d.ts +486 -0
  75. package/dependency/schemas.d.ts.map +1 -0
  76. package/dependency/template-loader.d.ts +204 -0
  77. package/dependency/template-loader.d.ts.map +1 -0
  78. package/dependency/template-processor.d.ts +118 -0
  79. package/dependency/template-processor.d.ts.map +1 -0
  80. package/dependency/types.d.ts +739 -0
  81. package/dependency/types.d.ts.map +1 -0
  82. package/esm/adapters/index.d.ts +13 -0
  83. package/esm/adapters/index.d.ts.map +1 -0
  84. package/esm/adapters/index.js +427 -0
  85. package/esm/adapters/platform-meta.d.ts +166 -0
  86. package/esm/adapters/platform-meta.d.ts.map +1 -0
  87. package/esm/adapters/response-builder.d.ts +108 -0
  88. package/esm/adapters/response-builder.d.ts.map +1 -0
  89. package/esm/adapters/serving-mode.d.ts +107 -0
  90. package/esm/adapters/serving-mode.d.ts.map +1 -0
  91. package/esm/base-template/bridge.d.ts +90 -0
  92. package/esm/base-template/bridge.d.ts.map +1 -0
  93. package/esm/base-template/default-base-template.d.ts +92 -0
  94. package/esm/base-template/default-base-template.d.ts.map +1 -0
  95. package/esm/base-template/index.d.ts +15 -0
  96. package/esm/base-template/index.d.ts.map +1 -0
  97. package/esm/base-template/index.js +1364 -0
  98. package/esm/base-template/polyfills.d.ts +31 -0
  99. package/esm/base-template/polyfills.d.ts.map +1 -0
  100. package/esm/base-template/theme-styles.d.ts +74 -0
  101. package/esm/base-template/theme-styles.d.ts.map +1 -0
  102. package/esm/bridge-runtime/iife-generator.d.ts +62 -0
  103. package/esm/bridge-runtime/iife-generator.d.ts.map +1 -0
  104. package/esm/bridge-runtime/index.d.ts +10 -0
  105. package/esm/bridge-runtime/index.d.ts.map +1 -0
  106. package/esm/bridge-runtime/index.js +853 -0
  107. package/esm/build/cdn-resources.d.ts +243 -0
  108. package/esm/build/cdn-resources.d.ts.map +1 -0
  109. package/esm/build/index.d.ts +295 -0
  110. package/esm/build/index.d.ts.map +1 -0
  111. package/esm/build/index.js +6786 -0
  112. package/esm/build/widget-manifest.d.ts +362 -0
  113. package/esm/build/widget-manifest.d.ts.map +1 -0
  114. package/esm/bundler/cache.d.ts +173 -0
  115. package/esm/bundler/cache.d.ts.map +1 -0
  116. package/esm/bundler/file-cache/component-builder.d.ts +167 -0
  117. package/esm/bundler/file-cache/component-builder.d.ts.map +1 -0
  118. package/esm/bundler/file-cache/hash-calculator.d.ts +155 -0
  119. package/esm/bundler/file-cache/hash-calculator.d.ts.map +1 -0
  120. package/esm/bundler/file-cache/index.d.ts +12 -0
  121. package/esm/bundler/file-cache/index.d.ts.map +1 -0
  122. package/esm/bundler/file-cache/storage/filesystem.d.ts +149 -0
  123. package/esm/bundler/file-cache/storage/filesystem.d.ts.map +1 -0
  124. package/esm/bundler/file-cache/storage/index.d.ts +11 -0
  125. package/esm/bundler/file-cache/storage/index.d.ts.map +1 -0
  126. package/esm/bundler/file-cache/storage/interface.d.ts +152 -0
  127. package/esm/bundler/file-cache/storage/interface.d.ts.map +1 -0
  128. package/esm/bundler/file-cache/storage/redis.d.ts +139 -0
  129. package/esm/bundler/file-cache/storage/redis.d.ts.map +1 -0
  130. package/esm/bundler/index.d.ts +35 -0
  131. package/esm/bundler/index.d.ts.map +1 -0
  132. package/esm/bundler/index.js +2882 -0
  133. package/esm/bundler/sandbox/enclave-adapter.d.ts +121 -0
  134. package/esm/bundler/sandbox/enclave-adapter.d.ts.map +1 -0
  135. package/esm/bundler/sandbox/executor.d.ts +14 -0
  136. package/esm/bundler/sandbox/executor.d.ts.map +1 -0
  137. package/esm/bundler/sandbox/policy.d.ts +62 -0
  138. package/esm/bundler/sandbox/policy.d.ts.map +1 -0
  139. package/esm/bundler/types.d.ts +702 -0
  140. package/esm/bundler/types.d.ts.map +1 -0
  141. package/esm/dependency/cdn-registry.d.ts +98 -0
  142. package/esm/dependency/cdn-registry.d.ts.map +1 -0
  143. package/esm/dependency/import-map.d.ts +186 -0
  144. package/esm/dependency/import-map.d.ts.map +1 -0
  145. package/esm/dependency/import-parser.d.ts +82 -0
  146. package/esm/dependency/import-parser.d.ts.map +1 -0
  147. package/esm/dependency/index.d.ts +17 -0
  148. package/esm/dependency/index.d.ts.map +1 -0
  149. package/esm/dependency/index.js +3096 -0
  150. package/esm/dependency/resolver.d.ts +164 -0
  151. package/esm/dependency/resolver.d.ts.map +1 -0
  152. package/esm/dependency/schemas.d.ts +486 -0
  153. package/esm/dependency/schemas.d.ts.map +1 -0
  154. package/esm/dependency/template-loader.d.ts +204 -0
  155. package/esm/dependency/template-loader.d.ts.map +1 -0
  156. package/esm/dependency/template-processor.d.ts +118 -0
  157. package/esm/dependency/template-processor.d.ts.map +1 -0
  158. package/esm/dependency/types.d.ts +739 -0
  159. package/esm/dependency/types.d.ts.map +1 -0
  160. package/esm/handlebars/expression-extractor.d.ts +147 -0
  161. package/esm/handlebars/expression-extractor.d.ts.map +1 -0
  162. package/esm/handlebars/helpers.d.ts +339 -0
  163. package/esm/handlebars/helpers.d.ts.map +1 -0
  164. package/esm/handlebars/index.d.ts +195 -0
  165. package/esm/handlebars/index.d.ts.map +1 -0
  166. package/esm/handlebars/index.js +587 -0
  167. package/esm/index.d.ts +50 -0
  168. package/esm/index.d.ts.map +1 -0
  169. package/esm/index.js +12434 -0
  170. package/esm/package.json +68 -0
  171. package/esm/registry/index.d.ts +46 -0
  172. package/esm/registry/index.d.ts.map +1 -0
  173. package/esm/registry/index.js +6237 -0
  174. package/esm/registry/render-template.d.ts +91 -0
  175. package/esm/registry/render-template.d.ts.map +1 -0
  176. package/esm/registry/tool-ui.registry.d.ts +294 -0
  177. package/esm/registry/tool-ui.registry.d.ts.map +1 -0
  178. package/esm/registry/uri-utils.d.ts +56 -0
  179. package/esm/registry/uri-utils.d.ts.map +1 -0
  180. package/esm/renderers/cache.d.ts +145 -0
  181. package/esm/renderers/cache.d.ts.map +1 -0
  182. package/esm/renderers/html.renderer.d.ts +123 -0
  183. package/esm/renderers/html.renderer.d.ts.map +1 -0
  184. package/esm/renderers/index.d.ts +36 -0
  185. package/esm/renderers/index.d.ts.map +1 -0
  186. package/esm/renderers/index.js +1654 -0
  187. package/esm/renderers/mdx.renderer.d.ts +120 -0
  188. package/esm/renderers/mdx.renderer.d.ts.map +1 -0
  189. package/esm/renderers/registry.d.ts +133 -0
  190. package/esm/renderers/registry.d.ts.map +1 -0
  191. package/esm/renderers/types.d.ts +342 -0
  192. package/esm/renderers/types.d.ts.map +1 -0
  193. package/esm/renderers/utils/detect.d.ts +107 -0
  194. package/esm/renderers/utils/detect.d.ts.map +1 -0
  195. package/esm/renderers/utils/hash.d.ts +40 -0
  196. package/esm/renderers/utils/hash.d.ts.map +1 -0
  197. package/esm/renderers/utils/index.d.ts +9 -0
  198. package/esm/renderers/utils/index.d.ts.map +1 -0
  199. package/esm/renderers/utils/transpiler.d.ts +89 -0
  200. package/esm/renderers/utils/transpiler.d.ts.map +1 -0
  201. package/esm/runtime/adapters/html.adapter.d.ts +59 -0
  202. package/esm/runtime/adapters/html.adapter.d.ts.map +1 -0
  203. package/esm/runtime/adapters/index.d.ts +26 -0
  204. package/esm/runtime/adapters/index.d.ts.map +1 -0
  205. package/esm/runtime/adapters/mdx.adapter.d.ts +73 -0
  206. package/esm/runtime/adapters/mdx.adapter.d.ts.map +1 -0
  207. package/esm/runtime/adapters/types.d.ts +95 -0
  208. package/esm/runtime/adapters/types.d.ts.map +1 -0
  209. package/esm/runtime/csp.d.ts +48 -0
  210. package/esm/runtime/csp.d.ts.map +1 -0
  211. package/esm/runtime/index.d.ts +17 -0
  212. package/esm/runtime/index.d.ts.map +1 -0
  213. package/esm/runtime/index.js +4976 -0
  214. package/esm/runtime/mcp-bridge.d.ts +101 -0
  215. package/esm/runtime/mcp-bridge.d.ts.map +1 -0
  216. package/esm/runtime/renderer-runtime.d.ts +133 -0
  217. package/esm/runtime/renderer-runtime.d.ts.map +1 -0
  218. package/esm/runtime/sanitizer.d.ts +172 -0
  219. package/esm/runtime/sanitizer.d.ts.map +1 -0
  220. package/esm/runtime/types.d.ts +415 -0
  221. package/esm/runtime/types.d.ts.map +1 -0
  222. package/esm/runtime/wrapper.d.ts +421 -0
  223. package/esm/runtime/wrapper.d.ts.map +1 -0
  224. package/esm/styles/index.d.ts +8 -0
  225. package/esm/styles/index.d.ts.map +1 -0
  226. package/esm/styles/index.js +171 -0
  227. package/esm/styles/variants.d.ts +51 -0
  228. package/esm/styles/variants.d.ts.map +1 -0
  229. package/esm/theme/cdn.d.ts +195 -0
  230. package/esm/theme/cdn.d.ts.map +1 -0
  231. package/esm/theme/index.d.ts +18 -0
  232. package/esm/theme/index.d.ts.map +1 -0
  233. package/esm/theme/index.js +700 -0
  234. package/esm/theme/platforms.d.ts +107 -0
  235. package/esm/theme/platforms.d.ts.map +1 -0
  236. package/esm/theme/presets/github-openai.d.ts +50 -0
  237. package/esm/theme/presets/github-openai.d.ts.map +1 -0
  238. package/esm/theme/presets/index.d.ts +11 -0
  239. package/esm/theme/presets/index.d.ts.map +1 -0
  240. package/esm/theme/theme.d.ts +396 -0
  241. package/esm/theme/theme.d.ts.map +1 -0
  242. package/esm/tool-template/builder.d.ts +213 -0
  243. package/esm/tool-template/builder.d.ts.map +1 -0
  244. package/esm/tool-template/index.d.ts +16 -0
  245. package/esm/tool-template/index.d.ts.map +1 -0
  246. package/esm/tool-template/index.js +3518 -0
  247. package/esm/types/index.d.ts +14 -0
  248. package/esm/types/index.d.ts.map +1 -0
  249. package/esm/types/index.js +75 -0
  250. package/esm/types/ui-config.d.ts +641 -0
  251. package/esm/types/ui-config.d.ts.map +1 -0
  252. package/esm/types/ui-runtime.d.ts +1008 -0
  253. package/esm/types/ui-runtime.d.ts.map +1 -0
  254. package/esm/typings/cache/cache-adapter.d.ts +125 -0
  255. package/esm/typings/cache/cache-adapter.d.ts.map +1 -0
  256. package/esm/typings/cache/index.d.ts +10 -0
  257. package/esm/typings/cache/index.d.ts.map +1 -0
  258. package/esm/typings/cache/memory-cache.d.ts +92 -0
  259. package/esm/typings/cache/memory-cache.d.ts.map +1 -0
  260. package/esm/typings/dts-parser.d.ts +90 -0
  261. package/esm/typings/dts-parser.d.ts.map +1 -0
  262. package/esm/typings/index.d.ts +48 -0
  263. package/esm/typings/index.d.ts.map +1 -0
  264. package/esm/typings/index.js +812 -0
  265. package/esm/typings/schemas.d.ts +232 -0
  266. package/esm/typings/schemas.d.ts.map +1 -0
  267. package/esm/typings/type-fetcher.d.ts +89 -0
  268. package/esm/typings/type-fetcher.d.ts.map +1 -0
  269. package/esm/typings/types.d.ts +320 -0
  270. package/esm/typings/types.d.ts.map +1 -0
  271. package/esm/utils/escape-html.d.ts +58 -0
  272. package/esm/utils/escape-html.d.ts.map +1 -0
  273. package/esm/utils/index.d.ts +10 -0
  274. package/esm/utils/index.d.ts.map +1 -0
  275. package/esm/utils/index.js +40 -0
  276. package/esm/utils/safe-stringify.d.ts +30 -0
  277. package/esm/utils/safe-stringify.d.ts.map +1 -0
  278. package/esm/validation/error-box.d.ts +56 -0
  279. package/esm/validation/error-box.d.ts.map +1 -0
  280. package/esm/validation/index.d.ts +13 -0
  281. package/esm/validation/index.d.ts.map +1 -0
  282. package/esm/validation/index.js +542 -0
  283. package/esm/validation/schema-paths.d.ts +118 -0
  284. package/esm/validation/schema-paths.d.ts.map +1 -0
  285. package/esm/validation/template-validator.d.ts +143 -0
  286. package/esm/validation/template-validator.d.ts.map +1 -0
  287. package/esm/validation/wrapper.d.ts +97 -0
  288. package/esm/validation/wrapper.d.ts.map +1 -0
  289. package/handlebars/expression-extractor.d.ts +147 -0
  290. package/handlebars/expression-extractor.d.ts.map +1 -0
  291. package/handlebars/helpers.d.ts +339 -0
  292. package/handlebars/helpers.d.ts.map +1 -0
  293. package/handlebars/index.d.ts +195 -0
  294. package/handlebars/index.d.ts.map +1 -0
  295. package/handlebars/index.js +666 -0
  296. package/index.d.ts +50 -0
  297. package/index.d.ts.map +1 -0
  298. package/index.js +12683 -0
  299. package/package.json +66 -0
  300. package/registry/index.d.ts +46 -0
  301. package/registry/index.d.ts.map +1 -0
  302. package/registry/index.js +6280 -0
  303. package/registry/render-template.d.ts +91 -0
  304. package/registry/render-template.d.ts.map +1 -0
  305. package/registry/tool-ui.registry.d.ts +294 -0
  306. package/registry/tool-ui.registry.d.ts.map +1 -0
  307. package/registry/uri-utils.d.ts +56 -0
  308. package/registry/uri-utils.d.ts.map +1 -0
  309. package/renderers/cache.d.ts +145 -0
  310. package/renderers/cache.d.ts.map +1 -0
  311. package/renderers/html.renderer.d.ts +123 -0
  312. package/renderers/html.renderer.d.ts.map +1 -0
  313. package/renderers/index.d.ts +36 -0
  314. package/renderers/index.d.ts.map +1 -0
  315. package/renderers/index.js +1706 -0
  316. package/renderers/mdx.renderer.d.ts +120 -0
  317. package/renderers/mdx.renderer.d.ts.map +1 -0
  318. package/renderers/registry.d.ts +133 -0
  319. package/renderers/registry.d.ts.map +1 -0
  320. package/renderers/types.d.ts +342 -0
  321. package/renderers/types.d.ts.map +1 -0
  322. package/renderers/utils/detect.d.ts +107 -0
  323. package/renderers/utils/detect.d.ts.map +1 -0
  324. package/renderers/utils/hash.d.ts +40 -0
  325. package/renderers/utils/hash.d.ts.map +1 -0
  326. package/renderers/utils/index.d.ts +9 -0
  327. package/renderers/utils/index.d.ts.map +1 -0
  328. package/renderers/utils/transpiler.d.ts +89 -0
  329. package/renderers/utils/transpiler.d.ts.map +1 -0
  330. package/runtime/adapters/html.adapter.d.ts +59 -0
  331. package/runtime/adapters/html.adapter.d.ts.map +1 -0
  332. package/runtime/adapters/index.d.ts +26 -0
  333. package/runtime/adapters/index.d.ts.map +1 -0
  334. package/runtime/adapters/mdx.adapter.d.ts +73 -0
  335. package/runtime/adapters/mdx.adapter.d.ts.map +1 -0
  336. package/runtime/adapters/types.d.ts +95 -0
  337. package/runtime/adapters/types.d.ts.map +1 -0
  338. package/runtime/csp.d.ts +48 -0
  339. package/runtime/csp.d.ts.map +1 -0
  340. package/runtime/index.d.ts +17 -0
  341. package/runtime/index.d.ts.map +1 -0
  342. package/runtime/index.js +5052 -0
  343. package/runtime/mcp-bridge.d.ts +101 -0
  344. package/runtime/mcp-bridge.d.ts.map +1 -0
  345. package/runtime/renderer-runtime.d.ts +133 -0
  346. package/runtime/renderer-runtime.d.ts.map +1 -0
  347. package/runtime/sanitizer.d.ts +172 -0
  348. package/runtime/sanitizer.d.ts.map +1 -0
  349. package/runtime/types.d.ts +415 -0
  350. package/runtime/types.d.ts.map +1 -0
  351. package/runtime/wrapper.d.ts +421 -0
  352. package/runtime/wrapper.d.ts.map +1 -0
  353. package/styles/index.d.ts +8 -0
  354. package/styles/index.d.ts.map +1 -0
  355. package/styles/index.js +222 -0
  356. package/styles/variants.d.ts +51 -0
  357. package/styles/variants.d.ts.map +1 -0
  358. package/theme/cdn.d.ts +195 -0
  359. package/theme/cdn.d.ts.map +1 -0
  360. package/theme/index.d.ts +18 -0
  361. package/theme/index.d.ts.map +1 -0
  362. package/theme/index.js +757 -0
  363. package/theme/platforms.d.ts +107 -0
  364. package/theme/platforms.d.ts.map +1 -0
  365. package/theme/presets/github-openai.d.ts +50 -0
  366. package/theme/presets/github-openai.d.ts.map +1 -0
  367. package/theme/presets/index.d.ts +11 -0
  368. package/theme/presets/index.d.ts.map +1 -0
  369. package/theme/theme.d.ts +396 -0
  370. package/theme/theme.d.ts.map +1 -0
  371. package/tool-template/builder.d.ts +213 -0
  372. package/tool-template/builder.d.ts.map +1 -0
  373. package/tool-template/index.d.ts +16 -0
  374. package/tool-template/index.d.ts.map +1 -0
  375. package/tool-template/index.js +3562 -0
  376. package/types/index.d.ts +14 -0
  377. package/types/index.d.ts.map +1 -0
  378. package/types/index.js +108 -0
  379. package/types/ui-config.d.ts +641 -0
  380. package/types/ui-config.d.ts.map +1 -0
  381. package/types/ui-runtime.d.ts +1008 -0
  382. package/types/ui-runtime.d.ts.map +1 -0
  383. package/typings/cache/cache-adapter.d.ts +125 -0
  384. package/typings/cache/cache-adapter.d.ts.map +1 -0
  385. package/typings/cache/index.d.ts +10 -0
  386. package/typings/cache/index.d.ts.map +1 -0
  387. package/typings/cache/memory-cache.d.ts +92 -0
  388. package/typings/cache/memory-cache.d.ts.map +1 -0
  389. package/typings/dts-parser.d.ts +90 -0
  390. package/typings/dts-parser.d.ts.map +1 -0
  391. package/typings/index.d.ts +48 -0
  392. package/typings/index.d.ts.map +1 -0
  393. package/typings/index.js +868 -0
  394. package/typings/schemas.d.ts +232 -0
  395. package/typings/schemas.d.ts.map +1 -0
  396. package/typings/type-fetcher.d.ts +89 -0
  397. package/typings/type-fetcher.d.ts.map +1 -0
  398. package/typings/types.d.ts +320 -0
  399. package/typings/types.d.ts.map +1 -0
  400. package/utils/escape-html.d.ts +58 -0
  401. package/utils/escape-html.d.ts.map +1 -0
  402. package/utils/index.d.ts +10 -0
  403. package/utils/index.d.ts.map +1 -0
  404. package/utils/index.js +70 -0
  405. package/utils/safe-stringify.d.ts +30 -0
  406. package/utils/safe-stringify.d.ts.map +1 -0
  407. package/validation/error-box.d.ts +56 -0
  408. package/validation/error-box.d.ts.map +1 -0
  409. package/validation/index.d.ts +13 -0
  410. package/validation/index.d.ts.map +1 -0
  411. package/validation/index.js +583 -0
  412. package/validation/schema-paths.d.ts +118 -0
  413. package/validation/schema-paths.d.ts.map +1 -0
  414. package/validation/template-validator.d.ts +143 -0
  415. package/validation/template-validator.d.ts.map +1 -0
  416. package/validation/wrapper.d.ts +97 -0
  417. package/validation/wrapper.d.ts.map +1 -0
@@ -0,0 +1,702 @@
1
+ /**
2
+ * Bundler Types
3
+ *
4
+ * Type definitions for the in-memory bundler system.
5
+ *
6
+ * @packageDocumentation
7
+ */
8
+ /**
9
+ * Source type for bundler input.
10
+ */
11
+ export type SourceType = 'jsx' | 'tsx' | 'mdx' | 'html' | 'auto';
12
+ /**
13
+ * Output format for bundles.
14
+ */
15
+ export type OutputFormat = 'iife' | 'esm' | 'cjs';
16
+ /**
17
+ * Options for bundling source code.
18
+ */
19
+ export interface BundleOptions {
20
+ /**
21
+ * Source code to bundle.
22
+ */
23
+ source: string;
24
+ /**
25
+ * Source type (jsx, tsx, mdx, html, or auto).
26
+ * @default 'auto'
27
+ */
28
+ sourceType?: SourceType;
29
+ /**
30
+ * Output format.
31
+ * @default 'iife'
32
+ */
33
+ format?: OutputFormat;
34
+ /**
35
+ * Minify output code.
36
+ * @default false
37
+ */
38
+ minify?: boolean;
39
+ /**
40
+ * Generate source maps.
41
+ * @default false
42
+ */
43
+ sourceMaps?: boolean | 'inline';
44
+ /**
45
+ * External modules (not bundled).
46
+ * @default ['react', 'react-dom']
47
+ */
48
+ externals?: string[];
49
+ /**
50
+ * JSX configuration.
51
+ */
52
+ jsx?: {
53
+ /**
54
+ * JSX runtime mode.
55
+ * @default 'automatic'
56
+ */
57
+ runtime?: 'automatic' | 'classic';
58
+ /**
59
+ * Import source for automatic runtime.
60
+ * @default 'react'
61
+ */
62
+ importSource?: string;
63
+ };
64
+ /**
65
+ * Security policy for bundling.
66
+ */
67
+ security?: SecurityPolicy;
68
+ /**
69
+ * Target environment.
70
+ * @default 'es2020'
71
+ */
72
+ target?: string;
73
+ /**
74
+ * Global variable name for IIFE format.
75
+ * @default 'Widget'
76
+ */
77
+ globalName?: string;
78
+ /**
79
+ * Cache key override. If not provided, computed from source hash.
80
+ */
81
+ cacheKey?: string;
82
+ /**
83
+ * Skip cache lookup.
84
+ * @default false
85
+ */
86
+ skipCache?: boolean;
87
+ }
88
+ /**
89
+ * Options specifically for SSR bundling.
90
+ */
91
+ export interface SSRBundleOptions extends BundleOptions {
92
+ /**
93
+ * Context data to inject during SSR.
94
+ */
95
+ context?: Record<string, unknown>;
96
+ /**
97
+ * Component export name to render.
98
+ * @default 'default'
99
+ */
100
+ componentExport?: string;
101
+ /**
102
+ * Whether to include hydration script.
103
+ * @default false
104
+ */
105
+ includeHydration?: boolean;
106
+ }
107
+ /**
108
+ * Result of a bundle operation.
109
+ */
110
+ export interface BundleResult {
111
+ /**
112
+ * Bundled/transformed code.
113
+ */
114
+ code: string;
115
+ /**
116
+ * Content hash of the bundle.
117
+ */
118
+ hash: string;
119
+ /**
120
+ * Whether result was served from cache.
121
+ */
122
+ cached: boolean;
123
+ /**
124
+ * Bundle size in bytes.
125
+ */
126
+ size: number;
127
+ /**
128
+ * Source map (if generated).
129
+ */
130
+ map?: string;
131
+ /**
132
+ * Performance metrics.
133
+ */
134
+ metrics: BundleMetrics;
135
+ /**
136
+ * Detected or specified source type.
137
+ */
138
+ sourceType: SourceType;
139
+ /**
140
+ * Output format used.
141
+ */
142
+ format: OutputFormat;
143
+ }
144
+ /**
145
+ * Performance metrics for bundling.
146
+ */
147
+ export interface BundleMetrics {
148
+ /**
149
+ * Time to transform source (ms).
150
+ */
151
+ transformTime: number;
152
+ /**
153
+ * Time to bundle (ms).
154
+ */
155
+ bundleTime: number;
156
+ /**
157
+ * Total processing time (ms).
158
+ */
159
+ totalTime: number;
160
+ /**
161
+ * Cache lookup time (ms).
162
+ */
163
+ cacheTime?: number;
164
+ }
165
+ /**
166
+ * Result of SSR rendering.
167
+ */
168
+ export interface SSRResult extends BundleResult {
169
+ /**
170
+ * Rendered HTML output.
171
+ */
172
+ html: string;
173
+ /**
174
+ * Hydration script (if included).
175
+ */
176
+ hydrationScript?: string;
177
+ /**
178
+ * SSR-specific metrics.
179
+ */
180
+ ssrMetrics: {
181
+ /**
182
+ * Time to render component (ms).
183
+ */
184
+ renderTime: number;
185
+ };
186
+ }
187
+ /**
188
+ * Security policy for bundler execution.
189
+ */
190
+ export interface SecurityPolicy {
191
+ /**
192
+ * Allowed import patterns (regex).
193
+ * @default [/^react/, /^@frontmcp\/ui/]
194
+ */
195
+ allowedImports?: RegExp[];
196
+ /**
197
+ * Blocked import patterns (regex).
198
+ * @default [/^fs/, /^net/, /^child_process/, /^os/, /^path/]
199
+ */
200
+ blockedImports?: RegExp[];
201
+ /**
202
+ * Maximum bundle size in bytes.
203
+ * @default 512000 (500KB)
204
+ */
205
+ maxBundleSize?: number;
206
+ /**
207
+ * Maximum transform time in ms.
208
+ * @default 5000 (5s)
209
+ */
210
+ maxTransformTime?: number;
211
+ /**
212
+ * Block eval() and Function() usage.
213
+ * @default true
214
+ */
215
+ noEval?: boolean;
216
+ /**
217
+ * Block dynamic imports.
218
+ * @default true
219
+ */
220
+ noDynamicImports?: boolean;
221
+ /**
222
+ * Block require() usage.
223
+ * @default true
224
+ */
225
+ noRequire?: boolean;
226
+ /**
227
+ * Allowed global variables.
228
+ * @default ['console', 'Math', 'JSON', 'Date', 'Array', 'Object', 'String', 'Number', 'Boolean', 'Promise', 'Map', 'Set', 'WeakMap', 'WeakSet', 'Symbol', 'Reflect', 'Proxy', 'Error', 'TypeError', 'RangeError', 'parseInt', 'parseFloat', 'isNaN', 'isFinite', 'encodeURI', 'encodeURIComponent', 'decodeURI', 'decodeURIComponent', 'setTimeout', 'clearTimeout', 'setInterval', 'clearInterval']
229
+ */
230
+ allowedGlobals?: string[];
231
+ }
232
+ /**
233
+ * Security violation details.
234
+ */
235
+ export interface SecurityViolation {
236
+ /**
237
+ * Type of violation.
238
+ */
239
+ type: 'blocked-import' | 'disallowed-import' | 'eval-usage' | 'dynamic-import' | 'require-usage' | 'size-exceeded' | 'timeout' | 'blocked-global';
240
+ /**
241
+ * Human-readable message.
242
+ */
243
+ message: string;
244
+ /**
245
+ * Location in source (if available).
246
+ */
247
+ location?: {
248
+ line: number;
249
+ column: number;
250
+ };
251
+ /**
252
+ * Offending pattern/value.
253
+ */
254
+ value?: string;
255
+ }
256
+ /**
257
+ * Options passed to esbuild transform API.
258
+ * @see https://esbuild.github.io/api/#transform
259
+ */
260
+ export interface EsbuildTransformOptions {
261
+ /**
262
+ * File type for the input.
263
+ */
264
+ loader?: 'js' | 'jsx' | 'ts' | 'tsx' | 'json' | 'text' | 'css';
265
+ /**
266
+ * Minify the output.
267
+ */
268
+ minify?: boolean;
269
+ /**
270
+ * Generate source maps.
271
+ */
272
+ sourcemap?: boolean | 'inline' | 'external' | 'both';
273
+ /**
274
+ * Target environment (e.g., 'es2020', 'esnext').
275
+ */
276
+ target?: string | string[];
277
+ /**
278
+ * Output format.
279
+ */
280
+ format?: 'iife' | 'cjs' | 'esm';
281
+ /**
282
+ * JSX factory function (classic mode).
283
+ */
284
+ jsxFactory?: string;
285
+ /**
286
+ * JSX fragment factory function (classic mode).
287
+ */
288
+ jsxFragment?: string;
289
+ /**
290
+ * JSX mode: 'transform' (classic) or 'automatic' (React 17+).
291
+ */
292
+ jsx?: 'transform' | 'preserve' | 'automatic';
293
+ /**
294
+ * Import source for automatic JSX runtime.
295
+ */
296
+ jsxImportSource?: string;
297
+ /**
298
+ * Global name for IIFE output.
299
+ */
300
+ globalName?: string;
301
+ /**
302
+ * Keep names (function/class names) for debugging.
303
+ */
304
+ keepNames?: boolean;
305
+ /**
306
+ * Drop console/debugger statements.
307
+ */
308
+ drop?: ('console' | 'debugger')[];
309
+ /**
310
+ * Define global constants.
311
+ */
312
+ define?: Record<string, string>;
313
+ /**
314
+ * Pure function calls that can be removed if unused.
315
+ */
316
+ pure?: string[];
317
+ /**
318
+ * Charset for output files.
319
+ */
320
+ charset?: 'ascii' | 'utf8';
321
+ /**
322
+ * Legal comments handling.
323
+ */
324
+ legalComments?: 'none' | 'inline' | 'eof' | 'linked' | 'external';
325
+ /**
326
+ * Supported features override.
327
+ */
328
+ supported?: Record<string, boolean>;
329
+ }
330
+ /**
331
+ * Configuration options for creating a bundler instance.
332
+ */
333
+ export interface BundlerOptions {
334
+ /**
335
+ * Default security policy.
336
+ */
337
+ defaultSecurity?: SecurityPolicy;
338
+ /**
339
+ * Cache configuration.
340
+ */
341
+ cache?: {
342
+ /**
343
+ * Maximum number of cached entries.
344
+ * @default 100
345
+ */
346
+ maxSize?: number;
347
+ /**
348
+ * TTL for cache entries in ms.
349
+ * @default 300000 (5 minutes)
350
+ */
351
+ ttl?: number;
352
+ /**
353
+ * Disable caching entirely.
354
+ * @default false
355
+ */
356
+ disabled?: boolean;
357
+ };
358
+ /**
359
+ * Enable verbose logging.
360
+ * @default false
361
+ */
362
+ verbose?: boolean;
363
+ /**
364
+ * Custom esbuild transform options.
365
+ * @see EsbuildTransformOptions
366
+ */
367
+ esbuildOptions?: EsbuildTransformOptions;
368
+ }
369
+ /**
370
+ * Cache entry for bundled results.
371
+ */
372
+ export interface CacheEntry {
373
+ /**
374
+ * Bundle result.
375
+ */
376
+ result: BundleResult;
377
+ /**
378
+ * Creation timestamp.
379
+ */
380
+ createdAt: number;
381
+ /**
382
+ * Last access timestamp.
383
+ */
384
+ lastAccessedAt: number;
385
+ /**
386
+ * Access count.
387
+ */
388
+ accessCount: number;
389
+ }
390
+ /**
391
+ * Context for transform operations.
392
+ */
393
+ export interface TransformContext {
394
+ /**
395
+ * Source type being transformed.
396
+ */
397
+ sourceType: SourceType;
398
+ /**
399
+ * File path (for source maps).
400
+ */
401
+ filename?: string;
402
+ /**
403
+ * Source code.
404
+ */
405
+ source: string;
406
+ /**
407
+ * Active security policy.
408
+ */
409
+ security: SecurityPolicy;
410
+ }
411
+ /**
412
+ * Default security policy.
413
+ */
414
+ export declare const DEFAULT_SECURITY_POLICY: SecurityPolicy;
415
+ /**
416
+ * Default bundle options.
417
+ */
418
+ export declare const DEFAULT_BUNDLE_OPTIONS: Required<Pick<BundleOptions, 'sourceType' | 'format' | 'minify' | 'sourceMaps' | 'externals' | 'jsx' | 'target' | 'globalName' | 'skipCache'>>;
419
+ /**
420
+ * Default bundler options.
421
+ */
422
+ export declare const DEFAULT_BUNDLER_OPTIONS: Required<BundlerOptions>;
423
+ /**
424
+ * Target platform for CDN selection.
425
+ * Affects which CDN URLs are used for externals.
426
+ *
427
+ * - 'auto': Auto-detect from environment (default)
428
+ * - 'openai': OpenAI ChatGPT/Plugins - uses esm.sh
429
+ * - 'claude': Claude Artifacts - uses cdnjs.cloudflare.com (only trusted CDN)
430
+ * - 'cursor': Cursor IDE - uses esm.sh
431
+ * - 'generic': Generic platform - uses esm.sh
432
+ */
433
+ export type TargetPlatform = 'auto' | 'openai' | 'claude' | 'cursor' | 'generic';
434
+ /**
435
+ * Configuration for external dependencies in static HTML bundling.
436
+ * Each dependency can be:
437
+ * - 'cdn': Load from platform-appropriate CDN (default)
438
+ * - 'inline': Embed script content directly in HTML
439
+ * - string: Custom CDN URL
440
+ */
441
+ export interface StaticHTMLExternalConfig {
442
+ /**
443
+ * React runtime configuration.
444
+ * @default 'cdn' - Uses esm.sh for most platforms, cdnjs for Claude
445
+ */
446
+ react?: 'cdn' | 'inline' | string;
447
+ /**
448
+ * react-dom/client runtime configuration.
449
+ * @default 'cdn' - Uses esm.sh for most platforms, cdnjs for Claude
450
+ */
451
+ reactDom?: 'cdn' | 'inline' | string;
452
+ /**
453
+ * Tailwind CSS configuration.
454
+ * @default 'cdn' - Uses jsdelivr for most platforms, cdnjs for Claude
455
+ */
456
+ tailwind?: 'cdn' | 'inline' | string;
457
+ /**
458
+ * FrontMCP UI components (Card, Badge, Button, etc.) and hooks.
459
+ * @default 'inline' - Always inlined for reliability
460
+ */
461
+ frontmcpUi?: 'cdn' | 'inline' | string;
462
+ }
463
+ /**
464
+ * Options for bundling a component to static HTML.
465
+ */
466
+ export interface StaticHTMLOptions {
467
+ /**
468
+ * Source code of the component (JSX/TSX).
469
+ */
470
+ source: string;
471
+ /**
472
+ * Source type for the component.
473
+ * @default 'auto' - Auto-detect from content
474
+ */
475
+ sourceType?: SourceType;
476
+ /**
477
+ * Tool name (used for page title and data injection).
478
+ */
479
+ toolName: string;
480
+ /**
481
+ * Tool input arguments to embed in HTML.
482
+ */
483
+ input?: Record<string, unknown>;
484
+ /**
485
+ * Tool output to embed in HTML.
486
+ */
487
+ output?: unknown;
488
+ /**
489
+ * Structured content to embed in HTML.
490
+ */
491
+ structuredContent?: unknown;
492
+ /**
493
+ * External dependency configuration.
494
+ * Controls whether dependencies are loaded from CDN or inlined.
495
+ */
496
+ externals?: StaticHTMLExternalConfig;
497
+ /**
498
+ * Target platform for CDN selection.
499
+ * @default 'auto'
500
+ */
501
+ targetPlatform?: TargetPlatform;
502
+ /**
503
+ * Page title.
504
+ * @default `${toolName} - Widget`
505
+ */
506
+ title?: string;
507
+ /**
508
+ * Whether the widget can call tools via the bridge.
509
+ * @default false
510
+ */
511
+ widgetAccessible?: boolean;
512
+ /**
513
+ * Minify the transpiled component code.
514
+ * @default true
515
+ */
516
+ minify?: boolean;
517
+ /**
518
+ * Security policy for transpilation.
519
+ */
520
+ security?: SecurityPolicy;
521
+ /**
522
+ * Skip bundle cache lookup.
523
+ * @default false
524
+ */
525
+ skipCache?: boolean;
526
+ /**
527
+ * Root element ID for React rendering.
528
+ * @default 'frontmcp-widget-root'
529
+ */
530
+ rootId?: string;
531
+ /**
532
+ * Custom CSS to inject after Tailwind CSS.
533
+ * Can be used to add component-specific styles or override Tailwind defaults.
534
+ *
535
+ * @example
536
+ * ```typescript
537
+ * customCss: `
538
+ * .custom-card { border-radius: 12px; }
539
+ * h2 { font-size: 1.5rem; font-weight: 600; }
540
+ * `
541
+ * ```
542
+ */
543
+ customCss?: string;
544
+ /**
545
+ * Enable universal rendering mode.
546
+ * When true, the bundler generates a universal React app that can
547
+ * render multiple content types (HTML, Markdown, React, MDX) with
548
+ * auto-detection.
549
+ *
550
+ * @default false
551
+ */
552
+ universal?: boolean;
553
+ /**
554
+ * Content type for universal mode.
555
+ * Only used when `universal: true`.
556
+ *
557
+ * - 'html': Raw HTML (rendered with dangerouslySetInnerHTML)
558
+ * - 'markdown': Markdown content (rendered with react-markdown)
559
+ * - 'react': React component (rendered directly)
560
+ * - 'mdx': MDX content (Markdown + JSX)
561
+ *
562
+ * @default 'auto' - Auto-detect from content
563
+ */
564
+ contentType?: 'html' | 'markdown' | 'react' | 'mdx' | 'auto';
565
+ /**
566
+ * Include markdown renderer in universal mode.
567
+ * Adds react-markdown from esm.sh (~15KB gzipped).
568
+ * For Claude (UMD mode), uses inline minimal parser instead.
569
+ *
570
+ * @default false
571
+ */
572
+ includeMarkdown?: boolean;
573
+ /**
574
+ * Include MDX renderer in universal mode.
575
+ * Adds @mdx-js/react from esm.sh (~40KB gzipped).
576
+ * Note: MDX is not available on Claude (no cdnjs package).
577
+ *
578
+ * @default false
579
+ */
580
+ includeMdx?: boolean;
581
+ /**
582
+ * Custom components available for Markdown/MDX rendering.
583
+ * Provided as inline JavaScript code that defines the components.
584
+ *
585
+ * @example
586
+ * ```typescript
587
+ * customComponents: `
588
+ * const WeatherCard = ({ temp }) => (
589
+ * React.createElement('div', { className: 'text-4xl' }, temp + '°F')
590
+ * );
591
+ * window.__frontmcp.components = { WeatherCard };
592
+ * `
593
+ * ```
594
+ */
595
+ customComponents?: string;
596
+ }
597
+ /**
598
+ * Result of bundling a component to static HTML.
599
+ */
600
+ export interface StaticHTMLResult {
601
+ /**
602
+ * Complete HTML document ready for rendering.
603
+ */
604
+ html: string;
605
+ /**
606
+ * Transpiled component code (for debugging/inspection).
607
+ */
608
+ componentCode: string;
609
+ /**
610
+ * Bundle metrics from transpilation.
611
+ */
612
+ metrics: BundleMetrics;
613
+ /**
614
+ * Content hash of the HTML document.
615
+ */
616
+ hash: string;
617
+ /**
618
+ * HTML document size in bytes.
619
+ */
620
+ size: number;
621
+ /**
622
+ * Whether the component was served from cache.
623
+ */
624
+ cached: boolean;
625
+ /**
626
+ * Detected source type.
627
+ */
628
+ sourceType: SourceType;
629
+ /**
630
+ * Target platform used for CDN selection.
631
+ */
632
+ targetPlatform: TargetPlatform;
633
+ /**
634
+ * Whether universal rendering mode was used.
635
+ */
636
+ universal?: boolean;
637
+ /**
638
+ * Content type detected/used (when universal mode is enabled).
639
+ */
640
+ contentType?: 'html' | 'markdown' | 'react' | 'mdx';
641
+ }
642
+ /**
643
+ * CDN URLs for different platforms.
644
+ * - esm: ES modules (OpenAI, Cursor, generic)
645
+ * - umd: UMD globals (Claude - only trusts cdnjs.cloudflare.com)
646
+ */
647
+ export declare const STATIC_HTML_CDN: {
648
+ /**
649
+ * ES modules from esm.sh (React 19, modern platforms)
650
+ */
651
+ readonly esm: {
652
+ readonly react: "https://esm.sh/react@19";
653
+ readonly reactDom: "https://esm.sh/react-dom@19/client";
654
+ };
655
+ /**
656
+ * UMD builds from cdnjs (React 18.2, Claude only trusts cloudflare)
657
+ */
658
+ readonly umd: {
659
+ readonly react: "https://cdnjs.cloudflare.com/ajax/libs/react/18.2.0/umd/react.production.min.js";
660
+ readonly reactDom: "https://cdnjs.cloudflare.com/ajax/libs/react-dom/18.2.0/umd/react-dom.production.min.js";
661
+ };
662
+ /**
663
+ * Tailwind CSS from cdnjs (cloudflare) - works on all platforms
664
+ * Using CSS file instead of JS browser version to avoid style normalization issues
665
+ */
666
+ readonly tailwind: "https://cdnjs.cloudflare.com/ajax/libs/tailwindcss/3.4.1/tailwind.min.css";
667
+ /**
668
+ * Font CDN URLs
669
+ */
670
+ readonly fonts: {
671
+ readonly preconnect: readonly ["https://fonts.googleapis.com", "https://fonts.gstatic.com"];
672
+ readonly inter: "https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap";
673
+ };
674
+ };
675
+ /**
676
+ * Get the CDN type for a target platform.
677
+ * @param platform - Target platform
678
+ * @returns 'esm' for ES modules, 'umd' for UMD globals
679
+ */
680
+ export declare function getCdnTypeForPlatform(platform: TargetPlatform): 'esm' | 'umd';
681
+ /**
682
+ * Default static HTML options.
683
+ */
684
+ export declare const DEFAULT_STATIC_HTML_OPTIONS: {
685
+ readonly sourceType: SourceType;
686
+ readonly targetPlatform: TargetPlatform;
687
+ readonly minify: true;
688
+ readonly skipCache: false;
689
+ readonly rootId: "frontmcp-widget-root";
690
+ readonly widgetAccessible: false;
691
+ readonly externals: {
692
+ readonly react: "cdn";
693
+ readonly reactDom: "cdn";
694
+ readonly tailwind: "cdn";
695
+ readonly frontmcpUi: "inline";
696
+ };
697
+ readonly universal: false;
698
+ readonly contentType: "auto";
699
+ readonly includeMarkdown: false;
700
+ readonly includeMdx: false;
701
+ };
702
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/bundler/types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,CAAC;AAEjE;;GAEG;AACH,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