@ecopages/core 0.2.0-alpha.54 → 0.2.0-alpha.55

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 (594) hide show
  1. package/package.json +196 -91
  2. package/src/adapters/abstract/application-adapter.d.ts +194 -0
  3. package/src/adapters/abstract/application-adapter.js +121 -0
  4. package/src/adapters/abstract/router-adapter.d.ts +26 -0
  5. package/src/adapters/abstract/router-adapter.js +5 -0
  6. package/src/adapters/abstract/server-adapter.d.ts +69 -0
  7. package/src/adapters/abstract/server-adapter.js +15 -0
  8. package/src/adapters/bun/client-bridge.d.ts +34 -0
  9. package/src/adapters/bun/client-bridge.js +48 -0
  10. package/src/adapters/bun/create-app.d.ts +60 -0
  11. package/src/adapters/bun/create-app.js +140 -0
  12. package/src/adapters/bun/hmr-manager.d.ts +47 -0
  13. package/src/adapters/bun/hmr-manager.js +58 -0
  14. package/src/adapters/bun/index.d.ts +2 -0
  15. package/src/adapters/bun/index.js +8 -0
  16. package/src/adapters/bun/runtime-host.d.ts +52 -0
  17. package/src/adapters/bun/runtime-host.js +56 -0
  18. package/src/adapters/bun/server-adapter.d.ts +223 -0
  19. package/src/adapters/bun/server-adapter.js +450 -0
  20. package/src/adapters/bun/static-preview-host.d.ts +28 -0
  21. package/src/adapters/bun/static-preview-host.js +45 -0
  22. package/src/adapters/create-app.d.ts +20 -0
  23. package/src/adapters/create-app.js +66 -0
  24. package/src/adapters/index.d.ts +2 -0
  25. package/src/adapters/index.js +8 -0
  26. package/src/adapters/node/create-app.d.ts +24 -0
  27. package/src/adapters/node/create-app.js +92 -0
  28. package/src/adapters/node/http-request-bridge.d.ts +57 -0
  29. package/src/adapters/node/http-request-bridge.js +118 -0
  30. package/src/adapters/node/node-client-bridge.d.ts +26 -0
  31. package/src/adapters/node/node-client-bridge.js +66 -0
  32. package/src/adapters/node/node-hmr-manager.d.ts +52 -0
  33. package/src/adapters/node/node-hmr-manager.js +49 -0
  34. package/src/adapters/node/runtime-host.d.ts +57 -0
  35. package/src/adapters/node/runtime-host.js +92 -0
  36. package/src/adapters/node/server-adapter-dependencies.d.ts +19 -0
  37. package/src/adapters/node/server-adapter-dependencies.js +18 -0
  38. package/src/adapters/node/server-adapter.d.ts +138 -0
  39. package/src/adapters/node/server-adapter.js +313 -0
  40. package/src/adapters/node/static-content-server.d.ts +60 -0
  41. package/src/adapters/node/static-content-server.js +194 -0
  42. package/src/adapters/node/static-preview-host.d.ts +55 -0
  43. package/src/adapters/node/static-preview-host.js +68 -0
  44. package/src/adapters/shared/api-response.d.ts +52 -0
  45. package/src/adapters/shared/api-response.js +96 -0
  46. package/src/adapters/shared/application-adapter.d.ts +18 -0
  47. package/src/adapters/shared/application-adapter.js +90 -0
  48. package/src/adapters/shared/define-api-handler.d.ts +25 -0
  49. package/src/adapters/shared/define-api-handler.js +15 -0
  50. package/src/adapters/shared/explicit-static-render-preparation.d.ts +25 -0
  51. package/src/adapters/shared/explicit-static-render-preparation.js +26 -0
  52. package/src/adapters/shared/explicit-static-route-matcher.d.ts +41 -0
  53. package/src/adapters/shared/explicit-static-route-matcher.js +101 -0
  54. package/src/adapters/shared/file-route-middleware-pipeline.d.ts +62 -0
  55. package/src/adapters/shared/file-route-middleware-pipeline.js +90 -0
  56. package/src/adapters/shared/fs-server-response-factory.d.ts +23 -0
  57. package/src/adapters/shared/fs-server-response-factory.js +81 -0
  58. package/src/adapters/shared/fs-server-response-matcher.d.ts +75 -0
  59. package/src/adapters/shared/fs-server-response-matcher.js +186 -0
  60. package/src/adapters/shared/hmr-entrypoint-registrar.d.ts +55 -0
  61. package/src/adapters/shared/hmr-entrypoint-registrar.js +87 -0
  62. package/src/adapters/shared/hmr-html-response.d.ts +22 -0
  63. package/src/adapters/shared/hmr-html-response.js +33 -0
  64. package/src/adapters/shared/render-context.d.ts +16 -0
  65. package/src/adapters/shared/render-context.js +93 -0
  66. package/src/adapters/shared/runtime-app-bootstrap.d.ts +26 -0
  67. package/src/adapters/shared/runtime-app-bootstrap.js +46 -0
  68. package/src/adapters/shared/runtime-host.d.ts +12 -0
  69. package/src/adapters/shared/runtime-host.js +0 -0
  70. package/src/adapters/shared/server-adapter.d.ts +108 -0
  71. package/src/adapters/shared/server-adapter.js +436 -0
  72. package/src/adapters/shared/server-route-handler.d.ts +89 -0
  73. package/src/adapters/shared/server-route-handler.js +111 -0
  74. package/src/adapters/shared/server-static-builder.d.ts +71 -0
  75. package/src/adapters/shared/server-static-builder.js +100 -0
  76. package/src/adapters/shared/shared-hmr-manager.d.ts +59 -0
  77. package/src/adapters/shared/shared-hmr-manager.js +241 -0
  78. package/src/adapters/shared/static-preview-host.d.ts +10 -0
  79. package/src/adapters/shared/static-preview-host.js +0 -0
  80. package/src/build/browser-runtime-manifest.d.ts +31 -0
  81. package/src/build/browser-runtime-manifest.js +61 -0
  82. package/src/build/{browser-runtime-plugin-helpers.ts → browser-runtime-plugin-helpers.d.ts} +2 -13
  83. package/src/build/browser-runtime-plugin-helpers.js +14 -0
  84. package/src/build/browser-runtime-plugin.d.ts +78 -0
  85. package/src/build/browser-runtime-plugin.js +172 -0
  86. package/src/build/build-adapter.d.ts +504 -0
  87. package/src/build/build-adapter.js +240 -0
  88. package/src/build/build-manifest.d.ts +33 -0
  89. package/src/build/build-manifest.js +49 -0
  90. package/src/build/build-types.d.ts +57 -0
  91. package/src/build/build-types.js +0 -0
  92. package/src/build/rolldown-build-adapter.d.ts +32 -0
  93. package/src/build/rolldown-build-adapter.js +260 -0
  94. package/src/build/rolldown-plugin-bridge.d.ts +50 -0
  95. package/src/build/rolldown-plugin-bridge.js +194 -0
  96. package/src/build/{runtime-build-executor.ts → runtime-build-executor.d.ts} +3 -19
  97. package/src/build/runtime-build-executor.js +19 -0
  98. package/src/build/runtime-build-output-normalizer.d.ts +3 -0
  99. package/src/build/runtime-build-output-normalizer.js +111 -0
  100. package/src/build/serialized-build-executor.d.ts +64 -0
  101. package/src/build/serialized-build-executor.js +63 -0
  102. package/src/build/server-side-css-shim-plugin.d.ts +41 -0
  103. package/src/build/server-side-css-shim-plugin.js +35 -0
  104. package/src/cache/{index.ts → index.d.ts} +1 -1
  105. package/src/cache/index.js +6 -0
  106. package/src/cache/module-parse-cache.d.ts +65 -0
  107. package/src/cache/module-parse-cache.js +75 -0
  108. package/src/config/config-builder.d.ts +252 -0
  109. package/src/config/config-builder.js +589 -0
  110. package/src/config/{constants.ts → constants.d.ts} +13 -22
  111. package/src/config/constants.js +25 -0
  112. package/src/dev/host-runtime.d.ts +10 -0
  113. package/src/dev/host-runtime.js +24 -0
  114. package/src/dev/sc-server.d.ts +30 -0
  115. package/src/dev/sc-server.js +111 -0
  116. package/src/eco/eco.browser.d.ts +2 -0
  117. package/src/eco/eco.browser.js +88 -0
  118. package/src/eco/eco.d.ts +9 -0
  119. package/src/eco/eco.js +119 -0
  120. package/src/eco/eco.types.d.ts +230 -0
  121. package/src/eco/eco.types.js +0 -0
  122. package/src/eco/eco.utils.d.ts +1 -0
  123. package/src/eco/eco.utils.js +10 -0
  124. package/src/eco/global-injector-map.d.ts +16 -0
  125. package/src/eco/global-injector-map.js +80 -0
  126. package/src/eco/lazy-injector-map.d.ts +8 -0
  127. package/src/eco/lazy-injector-map.js +70 -0
  128. package/src/eco/module-dependencies.d.ts +18 -0
  129. package/src/eco/module-dependencies.js +49 -0
  130. package/src/errors/http-error.d.ts +31 -0
  131. package/src/errors/http-error.js +50 -0
  132. package/src/errors/index.d.ts +3 -0
  133. package/src/errors/index.js +6 -0
  134. package/src/errors/locals-access-error.d.ts +4 -0
  135. package/src/errors/locals-access-error.js +9 -0
  136. package/src/global/app-logger.d.ts +2 -0
  137. package/src/global/app-logger.js +6 -0
  138. package/src/hmr/client/hmr-runtime.d.ts +5 -0
  139. package/src/hmr/client/hmr-runtime.js +117 -0
  140. package/src/hmr/hmr-strategy.d.ts +162 -0
  141. package/src/hmr/hmr-strategy.js +44 -0
  142. package/src/hmr/hmr.postcss.test.e2e.d.ts +1 -0
  143. package/src/hmr/hmr.postcss.test.e2e.js +31 -0
  144. package/src/hmr/hmr.test.e2e.d.ts +1 -0
  145. package/src/hmr/hmr.test.e2e.js +43 -0
  146. package/src/hmr/strategies/default-hmr-strategy.d.ts +43 -0
  147. package/src/hmr/strategies/default-hmr-strategy.js +34 -0
  148. package/src/hmr/strategies/js-hmr-strategy.d.ts +134 -0
  149. package/src/hmr/strategies/js-hmr-strategy.js +173 -0
  150. package/src/index.browser.d.ts +3 -0
  151. package/src/index.browser.js +4 -0
  152. package/src/index.d.ts +6 -0
  153. package/src/index.js +21 -0
  154. package/src/integrations/ghtml/ghtml-renderer.d.ts +16 -0
  155. package/src/integrations/ghtml/ghtml-renderer.js +57 -0
  156. package/src/integrations/ghtml/ghtml.constants.d.ts +1 -0
  157. package/src/integrations/ghtml/ghtml.constants.js +4 -0
  158. package/src/integrations/ghtml/ghtml.plugin.d.ts +16 -0
  159. package/src/integrations/ghtml/ghtml.plugin.js +20 -0
  160. package/src/plugins/alias-resolver-cache.d.ts +68 -0
  161. package/src/plugins/alias-resolver-cache.js +106 -0
  162. package/src/plugins/alias-resolver-plugin.d.ts +6 -0
  163. package/src/plugins/alias-resolver-plugin.js +65 -0
  164. package/src/plugins/eco-component-meta-plugin.d.ts +108 -0
  165. package/src/plugins/eco-component-meta-plugin.js +175 -0
  166. package/src/plugins/foreign-jsx-override-plugin.d.ts +33 -0
  167. package/src/plugins/foreign-jsx-override-plugin.js +41 -0
  168. package/src/plugins/integration-plugin.d.ts +230 -0
  169. package/src/plugins/integration-plugin.js +201 -0
  170. package/src/plugins/processor.d.ts +97 -0
  171. package/src/plugins/processor.js +141 -0
  172. package/src/plugins/{runtime-capability.ts → runtime-capability.d.ts} +3 -8
  173. package/src/plugins/runtime-capability.js +0 -0
  174. package/src/plugins/source-transform.d.ts +46 -0
  175. package/src/plugins/source-transform.js +71 -0
  176. package/src/route-renderer/orchestration/component-render-context.d.ts +97 -0
  177. package/src/route-renderer/orchestration/component-render-context.js +147 -0
  178. package/src/route-renderer/orchestration/declared-ownership-graph.d.ts +18 -0
  179. package/src/route-renderer/orchestration/declared-ownership-graph.js +34 -0
  180. package/src/route-renderer/orchestration/foreign-subtree-execution.service.d.ts +110 -0
  181. package/src/route-renderer/orchestration/foreign-subtree-execution.service.js +233 -0
  182. package/src/route-renderer/orchestration/integration-renderer.d.ts +534 -0
  183. package/src/route-renderer/orchestration/integration-renderer.js +991 -0
  184. package/src/route-renderer/orchestration/ownership-planning.service.d.ts +24 -0
  185. package/src/route-renderer/orchestration/ownership-planning.service.js +63 -0
  186. package/src/route-renderer/orchestration/ownership-validation.service.d.ts +29 -0
  187. package/src/route-renderer/orchestration/ownership-validation.service.js +53 -0
  188. package/src/route-renderer/orchestration/processed-asset-dedupe.d.ts +3 -0
  189. package/src/route-renderer/orchestration/processed-asset-dedupe.js +27 -0
  190. package/src/route-renderer/orchestration/queued-foreign-subtree-resolution.service.d.ts +91 -0
  191. package/src/route-renderer/orchestration/queued-foreign-subtree-resolution.service.js +170 -0
  192. package/src/route-renderer/orchestration/render-output.utils.d.ts +66 -0
  193. package/src/route-renderer/orchestration/render-output.utils.js +171 -0
  194. package/src/route-renderer/orchestration/route-render-orchestrator.d.ts +156 -0
  195. package/src/route-renderer/orchestration/route-render-orchestrator.js +577 -0
  196. package/src/route-renderer/orchestration/template-serialization.d.ts +38 -0
  197. package/src/route-renderer/orchestration/template-serialization.js +45 -0
  198. package/src/route-renderer/page-loading/component-dependency-collection.d.ts +37 -0
  199. package/src/route-renderer/page-loading/component-dependency-collection.js +132 -0
  200. package/src/route-renderer/page-loading/declared-asset-collection.d.ts +24 -0
  201. package/src/route-renderer/page-loading/declared-asset-collection.js +106 -0
  202. package/src/route-renderer/page-loading/dependency-resolver.d.ts +35 -0
  203. package/src/route-renderer/page-loading/dependency-resolver.js +115 -0
  204. package/src/route-renderer/page-loading/ecopages-virtual-imports.d.ts +11 -0
  205. package/src/route-renderer/page-loading/ecopages-virtual-imports.js +57 -0
  206. package/src/route-renderer/page-loading/lazy-entry-collection.d.ts +45 -0
  207. package/src/route-renderer/page-loading/lazy-entry-collection.js +105 -0
  208. package/src/route-renderer/page-loading/lazy-trigger-planning.d.ts +19 -0
  209. package/src/route-renderer/page-loading/lazy-trigger-planning.js +40 -0
  210. package/src/route-renderer/page-loading/module-declaration-aggregation.d.ts +5 -0
  211. package/src/route-renderer/page-loading/module-declaration-aggregation.js +33 -0
  212. package/src/route-renderer/page-loading/module-declaration-scripts.d.ts +3 -0
  213. package/src/route-renderer/page-loading/module-declaration-scripts.js +18 -0
  214. package/src/route-renderer/page-loading/page-dependency-bundling.d.ts +13 -0
  215. package/src/route-renderer/page-loading/page-dependency-bundling.js +137 -0
  216. package/src/route-renderer/page-loading/page-module-loader.d.ts +90 -0
  217. package/src/route-renderer/page-loading/page-module-loader.js +127 -0
  218. package/src/route-renderer/route-renderer.d.ts +69 -0
  219. package/src/route-renderer/route-renderer.js +80 -0
  220. package/src/router/client/link-intent.js +34 -0
  221. package/src/router/client/link-intent.test.browser.d.ts +1 -0
  222. package/src/router/client/link-intent.test.browser.js +43 -0
  223. package/src/router/client/navigation-coordinator.d.ts +169 -0
  224. package/src/router/client/navigation-coordinator.js +215 -0
  225. package/src/router/server/route-registry.d.ts +78 -0
  226. package/src/router/server/route-registry.js +262 -0
  227. package/src/services/assets/asset-processing-service/asset-dependency-keys.d.ts +3 -0
  228. package/src/services/assets/asset-processing-service/asset-dependency-keys.js +56 -0
  229. package/src/services/assets/asset-processing-service/asset-processing.service.d.ts +103 -0
  230. package/src/services/assets/asset-processing-service/asset-processing.service.js +285 -0
  231. package/src/services/assets/asset-processing-service/asset.factory.d.ts +17 -0
  232. package/src/services/assets/asset-processing-service/asset.factory.js +82 -0
  233. package/src/services/assets/asset-processing-service/assets.types.d.ts +103 -0
  234. package/src/services/assets/asset-processing-service/assets.types.js +0 -0
  235. package/src/services/assets/asset-processing-service/browser-runtime-asset.factory.d.ts +57 -0
  236. package/src/services/assets/asset-processing-service/browser-runtime-asset.factory.js +49 -0
  237. package/src/services/assets/asset-processing-service/browser-runtime-entry.factory.d.ts +20 -0
  238. package/src/services/assets/asset-processing-service/browser-runtime-entry.factory.js +41 -0
  239. package/src/services/assets/asset-processing-service/grouped-content-bundles.d.ts +30 -0
  240. package/src/services/assets/asset-processing-service/grouped-content-bundles.js +65 -0
  241. package/src/services/assets/asset-processing-service/index.d.ts +6 -0
  242. package/src/services/assets/asset-processing-service/index.js +6 -0
  243. package/src/services/assets/asset-processing-service/page-package.d.ts +6 -0
  244. package/src/services/assets/asset-processing-service/page-package.js +80 -0
  245. package/src/services/assets/asset-processing-service/{processor.interface.ts → processor.interface.d.ts} +5 -10
  246. package/src/services/assets/asset-processing-service/processor.interface.js +6 -0
  247. package/src/services/assets/asset-processing-service/processor.registry.d.ts +8 -0
  248. package/src/services/assets/asset-processing-service/processor.registry.js +15 -0
  249. package/src/services/assets/asset-processing-service/processors/base/base-processor.d.ts +24 -0
  250. package/src/services/assets/asset-processing-service/processors/base/base-processor.js +65 -0
  251. package/src/services/assets/asset-processing-service/processors/base/base-script-processor.d.ts +22 -0
  252. package/src/services/assets/asset-processing-service/processors/base/base-script-processor.js +136 -0
  253. package/src/services/assets/asset-processing-service/processors/index.d.ts +5 -0
  254. package/src/services/assets/asset-processing-service/processors/index.js +5 -0
  255. package/src/services/assets/asset-processing-service/processors/script/content-script.processor.d.ts +6 -0
  256. package/src/services/assets/asset-processing-service/processors/script/content-script.processor.js +120 -0
  257. package/src/services/assets/asset-processing-service/processors/script/file-script.processor.d.ts +9 -0
  258. package/src/services/assets/asset-processing-service/processors/script/file-script.processor.js +97 -0
  259. package/src/services/assets/asset-processing-service/processors/script/node-module-script.processor.d.ts +42 -0
  260. package/src/services/assets/asset-processing-service/processors/script/node-module-script.processor.js +126 -0
  261. package/src/services/assets/asset-processing-service/processors/stylesheet/content-stylesheet.processor.d.ts +8 -0
  262. package/src/services/assets/asset-processing-service/processors/stylesheet/content-stylesheet.processor.js +59 -0
  263. package/src/services/assets/asset-processing-service/processors/stylesheet/file-stylesheet.processor.d.ts +9 -0
  264. package/src/services/assets/asset-processing-service/processors/stylesheet/file-stylesheet.processor.js +69 -0
  265. package/src/services/assets/asset-processing-service/ungrouped-dependency-processing.d.ts +18 -0
  266. package/src/services/assets/asset-processing-service/ungrouped-dependency-processing.js +45 -0
  267. package/src/services/assets/browser-bundle.service.d.ts +73 -0
  268. package/src/services/assets/browser-bundle.service.js +41 -0
  269. package/src/services/cache/cache.types.d.ts +107 -0
  270. package/src/services/cache/cache.types.js +0 -0
  271. package/src/services/cache/index.d.ts +7 -0
  272. package/src/services/cache/index.js +7 -0
  273. package/src/services/cache/memory-cache-store.d.ts +42 -0
  274. package/src/services/cache/memory-cache-store.js +98 -0
  275. package/src/services/cache/page-cache-service.d.ts +70 -0
  276. package/src/services/cache/page-cache-service.js +152 -0
  277. package/src/services/cache/page-request-cache-coordinator.service.d.ts +75 -0
  278. package/src/services/cache/page-request-cache-coordinator.service.js +109 -0
  279. package/src/services/html/html-rewriter-provider.service.d.ts +40 -0
  280. package/src/services/html/html-rewriter-provider.service.js +68 -0
  281. package/src/services/html/html-transformer.service.d.ts +96 -0
  282. package/src/services/html/html-transformer.service.js +287 -0
  283. package/src/services/invalidation/development-invalidation.service.d.ts +74 -0
  284. package/src/services/invalidation/development-invalidation.service.js +190 -0
  285. package/src/services/module-loading/app-module-loader.service.d.ts +7 -0
  286. package/src/services/module-loading/app-module-loader.service.js +0 -0
  287. package/src/services/module-loading/app-server-module-transpiler.service.d.ts +24 -0
  288. package/src/services/module-loading/app-server-module-transpiler.service.js +130 -0
  289. package/src/services/module-loading/host-module-loader-registry.d.ts +4 -0
  290. package/src/services/module-loading/host-module-loader-registry.js +15 -0
  291. package/src/services/module-loading/{module-loading-types.ts → module-loading-types.d.ts} +0 -1
  292. package/src/services/module-loading/module-loading-types.js +0 -0
  293. package/src/services/module-loading/page-module-import.service.d.ts +95 -0
  294. package/src/services/module-loading/page-module-import.service.js +193 -0
  295. package/src/services/module-loading/server-module-transpiler.service.d.ts +63 -0
  296. package/src/services/module-loading/server-module-transpiler.service.js +64 -0
  297. package/src/services/module-loading/source-module-support.d.ts +5 -0
  298. package/src/services/module-loading/source-module-support.js +8 -0
  299. package/src/services/runtime-state/dev-graph.service.d.ts +118 -0
  300. package/src/services/runtime-state/dev-graph.service.js +162 -0
  301. package/src/services/runtime-state/entrypoint-dependency-graph.service.d.ts +41 -0
  302. package/src/services/runtime-state/entrypoint-dependency-graph.service.js +85 -0
  303. package/src/services/runtime-state/server-invalidation-state.service.d.ts +26 -0
  304. package/src/services/runtime-state/server-invalidation-state.service.js +35 -0
  305. package/src/services/validation/schema-validation-service.d.ts +122 -0
  306. package/src/services/validation/schema-validation-service.js +101 -0
  307. package/src/services/validation/{standard-schema.types.ts → standard-schema.types.d.ts} +17 -20
  308. package/src/services/validation/standard-schema.types.js +0 -0
  309. package/src/static-site-generator/static-site-generator.d.ts +104 -0
  310. package/src/static-site-generator/static-site-generator.js +316 -0
  311. package/src/types/internal-types.d.ts +232 -0
  312. package/src/types/internal-types.js +0 -0
  313. package/src/types/public-types.d.ts +1307 -0
  314. package/src/types/public-types.js +0 -0
  315. package/src/utils/deep-merge.d.ts +14 -0
  316. package/src/utils/deep-merge.js +32 -0
  317. package/src/utils/hash.d.ts +1 -0
  318. package/src/utils/hash.js +7 -0
  319. package/src/utils/html-escaping.d.ts +7 -0
  320. package/src/utils/html-escaping.js +6 -0
  321. package/src/utils/html.js +4 -0
  322. package/src/utils/invariant.d.ts +5 -0
  323. package/src/utils/invariant.js +11 -0
  324. package/src/utils/locals-utils.d.ts +15 -0
  325. package/src/utils/locals-utils.js +24 -0
  326. package/src/utils/parse-cli-args.d.ts +27 -0
  327. package/src/utils/parse-cli-args.js +62 -0
  328. package/src/utils/path-utils.module.d.ts +5 -0
  329. package/src/utils/path-utils.module.js +14 -0
  330. package/src/utils/resolve-work-dir.d.ts +11 -0
  331. package/src/utils/resolve-work-dir.js +31 -0
  332. package/src/utils/runtime.d.ts +11 -0
  333. package/src/utils/runtime.js +40 -0
  334. package/src/utils/server-utils.module.d.ts +19 -0
  335. package/src/utils/server-utils.module.js +56 -0
  336. package/src/watchers/project-watcher.d.ts +136 -0
  337. package/src/watchers/project-watcher.js +275 -0
  338. package/src/watchers/project-watcher.test-helpers.d.ts +4 -0
  339. package/src/watchers/project-watcher.test-helpers.js +52 -0
  340. package/src/adapters/abstract/application-adapter.test.ts +0 -218
  341. package/src/adapters/abstract/application-adapter.ts +0 -379
  342. package/src/adapters/abstract/router-adapter.ts +0 -30
  343. package/src/adapters/abstract/server-adapter.ts +0 -79
  344. package/src/adapters/bun/client-bridge.ts +0 -62
  345. package/src/adapters/bun/create-app.ts +0 -214
  346. package/src/adapters/bun/hmr-manager.test.ts +0 -265
  347. package/src/adapters/bun/hmr-manager.ts +0 -88
  348. package/src/adapters/bun/index.ts +0 -2
  349. package/src/adapters/bun/runtime-host.ts +0 -76
  350. package/src/adapters/bun/server-adapter.ts +0 -605
  351. package/src/adapters/bun/static-preview-host.ts +0 -70
  352. package/src/adapters/create-app.test.ts +0 -10
  353. package/src/adapters/create-app.ts +0 -91
  354. package/src/adapters/index.ts +0 -2
  355. package/src/adapters/node/create-app.test.ts +0 -76
  356. package/src/adapters/node/create-app.ts +0 -116
  357. package/src/adapters/node/http-request-bridge.test.ts +0 -146
  358. package/src/adapters/node/http-request-bridge.ts +0 -176
  359. package/src/adapters/node/node-client-bridge.test.ts +0 -198
  360. package/src/adapters/node/node-client-bridge.ts +0 -79
  361. package/src/adapters/node/node-hmr-manager.test.ts +0 -374
  362. package/src/adapters/node/node-hmr-manager.ts +0 -72
  363. package/src/adapters/node/runtime-host.test.ts +0 -49
  364. package/src/adapters/node/runtime-host.ts +0 -113
  365. package/src/adapters/node/server-adapter-dependencies.ts +0 -28
  366. package/src/adapters/node/server-adapter.test.ts +0 -84
  367. package/src/adapters/node/server-adapter.ts +0 -423
  368. package/src/adapters/node/static-content-server.test.ts +0 -60
  369. package/src/adapters/node/static-content-server.ts +0 -239
  370. package/src/adapters/node/static-preview-host.test.ts +0 -89
  371. package/src/adapters/node/static-preview-host.ts +0 -101
  372. package/src/adapters/shared/api-response.test.ts +0 -97
  373. package/src/adapters/shared/api-response.ts +0 -104
  374. package/src/adapters/shared/application-adapter.ts +0 -199
  375. package/src/adapters/shared/define-api-handler.ts +0 -66
  376. package/src/adapters/shared/explicit-static-render-preparation.ts +0 -58
  377. package/src/adapters/shared/explicit-static-route-matcher.test.ts +0 -381
  378. package/src/adapters/shared/explicit-static-route-matcher.ts +0 -131
  379. package/src/adapters/shared/file-route-middleware-pipeline.test.ts +0 -85
  380. package/src/adapters/shared/file-route-middleware-pipeline.ts +0 -118
  381. package/src/adapters/shared/fs-server-response-factory.test.ts +0 -176
  382. package/src/adapters/shared/fs-server-response-factory.ts +0 -96
  383. package/src/adapters/shared/fs-server-response-matcher.test.ts +0 -311
  384. package/src/adapters/shared/fs-server-response-matcher.ts +0 -240
  385. package/src/adapters/shared/hmr-entrypoint-registrar.ts +0 -149
  386. package/src/adapters/shared/hmr-html-response.ts +0 -54
  387. package/src/adapters/shared/hmr-manager.contract.test.ts +0 -228
  388. package/src/adapters/shared/hmr-manager.dispatch.test.ts +0 -229
  389. package/src/adapters/shared/render-context.test.ts +0 -244
  390. package/src/adapters/shared/render-context.ts +0 -161
  391. package/src/adapters/shared/runtime-app-bootstrap.test.ts +0 -96
  392. package/src/adapters/shared/runtime-app-bootstrap.ts +0 -72
  393. package/src/adapters/shared/runtime-host.ts +0 -11
  394. package/src/adapters/shared/server-adapter.test.ts +0 -130
  395. package/src/adapters/shared/server-adapter.ts +0 -571
  396. package/src/adapters/shared/server-route-handler.test.ts +0 -112
  397. package/src/adapters/shared/server-route-handler.ts +0 -153
  398. package/src/adapters/shared/server-static-builder.test.ts +0 -338
  399. package/src/adapters/shared/server-static-builder.ts +0 -170
  400. package/src/adapters/shared/shared-hmr-manager.ts +0 -298
  401. package/src/adapters/shared/static-preview-host.ts +0 -12
  402. package/src/build/browser-runtime-manifest.test.ts +0 -121
  403. package/src/build/browser-runtime-manifest.ts +0 -105
  404. package/src/build/browser-runtime-plugin-helpers.test.ts +0 -49
  405. package/src/build/browser-runtime-plugin.test.ts +0 -256
  406. package/src/build/browser-runtime-plugin.ts +0 -306
  407. package/src/build/build-adapter.test.ts +0 -463
  408. package/src/build/build-adapter.ts +0 -788
  409. package/src/build/build-manifest.ts +0 -79
  410. package/src/build/build-types.ts +0 -83
  411. package/src/build/rolldown-build-adapter.test.ts +0 -352
  412. package/src/build/rolldown-build-adapter.ts +0 -363
  413. package/src/build/rolldown-plugin-bridge.test.ts +0 -256
  414. package/src/build/rolldown-plugin-bridge.ts +0 -309
  415. package/src/build/runtime-build-executor.test.ts +0 -130
  416. package/src/build/runtime-build-output-normalizer.ts +0 -137
  417. package/src/build/serialized-build-executor.test.ts +0 -96
  418. package/src/build/serialized-build-executor.ts +0 -90
  419. package/src/build/server-side-css-shim-plugin.ts +0 -77
  420. package/src/cache/module-parse-cache.test.ts +0 -73
  421. package/src/cache/module-parse-cache.ts +0 -137
  422. package/src/config/config-builder.test.ts +0 -456
  423. package/src/config/config-builder.ts +0 -728
  424. package/src/config/config-builder.typecheck.test.ts +0 -96
  425. package/src/dev/host-runtime.ts +0 -34
  426. package/src/dev/sc-server.ts +0 -143
  427. package/src/eco/eco.browser.test.ts +0 -43
  428. package/src/eco/eco.browser.ts +0 -137
  429. package/src/eco/eco.test.ts +0 -781
  430. package/src/eco/eco.ts +0 -262
  431. package/src/eco/eco.types.ts +0 -293
  432. package/src/eco/eco.utils.test.ts +0 -219
  433. package/src/eco/eco.utils.ts +0 -5
  434. package/src/eco/global-injector-map.test.ts +0 -42
  435. package/src/eco/global-injector-map.ts +0 -112
  436. package/src/eco/lazy-injector-map.test.ts +0 -66
  437. package/src/eco/lazy-injector-map.ts +0 -120
  438. package/src/eco/module-dependencies.test.ts +0 -30
  439. package/src/eco/module-dependencies.ts +0 -75
  440. package/src/errors/http-error.test.ts +0 -134
  441. package/src/errors/http-error.ts +0 -72
  442. package/src/errors/index.ts +0 -3
  443. package/src/errors/locals-access-error.ts +0 -7
  444. package/src/global/app-logger.ts +0 -4
  445. package/src/global/utils.test.ts +0 -12
  446. package/src/hmr/client/__screenshots__/hmr-runtime.test.browser.ts/HMR-Runtime-HMR-Server-Integration-should-have-HMR-script-injected-in-page-1.png +0 -0
  447. package/src/hmr/client/__screenshots__/hmr-runtime.test.browser.ts/HMR-Runtime-HMR-Server-Integration-should-load-fixture-app-page-1.png +0 -0
  448. package/src/hmr/client/__screenshots__/hmr-runtime.test.browser.ts/HMR-Runtime-WebSocket-Connection-should-connect-to-correct-HMR-endpoint-1.png +0 -0
  449. package/src/hmr/client/hmr-runtime.ts +0 -162
  450. package/src/hmr/hmr-strategy.test.ts +0 -124
  451. package/src/hmr/hmr-strategy.ts +0 -177
  452. package/src/hmr/hmr.postcss.test.e2e.ts +0 -41
  453. package/src/hmr/hmr.test.e2e.ts +0 -66
  454. package/src/hmr/strategies/default-hmr-strategy.ts +0 -60
  455. package/src/hmr/strategies/js-hmr-strategy.test.ts +0 -344
  456. package/src/hmr/strategies/js-hmr-strategy.ts +0 -307
  457. package/src/index.browser.ts +0 -3
  458. package/src/index.ts +0 -15
  459. package/src/integrations/ghtml/ghtml-renderer.test.ts +0 -253
  460. package/src/integrations/ghtml/ghtml-renderer.ts +0 -87
  461. package/src/integrations/ghtml/ghtml.constants.ts +0 -1
  462. package/src/integrations/ghtml/ghtml.plugin.ts +0 -28
  463. package/src/plugins/alias-resolver-cache.test.ts +0 -110
  464. package/src/plugins/alias-resolver-cache.ts +0 -145
  465. package/src/plugins/alias-resolver-plugin.test.ts +0 -41
  466. package/src/plugins/alias-resolver-plugin.ts +0 -75
  467. package/src/plugins/eco-component-meta-plugin.test.ts +0 -421
  468. package/src/plugins/eco-component-meta-plugin.ts +0 -518
  469. package/src/plugins/foreign-jsx-override-plugin.test.ts +0 -65
  470. package/src/plugins/foreign-jsx-override-plugin.ts +0 -76
  471. package/src/plugins/integration-plugin.test.ts +0 -151
  472. package/src/plugins/integration-plugin.ts +0 -344
  473. package/src/plugins/processor.test.ts +0 -148
  474. package/src/plugins/processor.ts +0 -257
  475. package/src/plugins/source-transform.test.ts +0 -82
  476. package/src/plugins/source-transform.ts +0 -123
  477. package/src/route-renderer/orchestration/component-render-context.ts +0 -338
  478. package/src/route-renderer/orchestration/declared-ownership-graph.ts +0 -62
  479. package/src/route-renderer/orchestration/foreign-subtree-execution.service.ts +0 -431
  480. package/src/route-renderer/orchestration/integration-renderer.test.ts +0 -2251
  481. package/src/route-renderer/orchestration/integration-renderer.ts +0 -1384
  482. package/src/route-renderer/orchestration/ownership-planning.service.ts +0 -97
  483. package/src/route-renderer/orchestration/ownership-validation.service.ts +0 -76
  484. package/src/route-renderer/orchestration/processed-asset-dedupe.ts +0 -29
  485. package/src/route-renderer/orchestration/queued-foreign-subtree-resolution.service.test.ts +0 -435
  486. package/src/route-renderer/orchestration/queued-foreign-subtree-resolution.service.ts +0 -310
  487. package/src/route-renderer/orchestration/render-output.utils.ts +0 -310
  488. package/src/route-renderer/orchestration/route-render-orchestrator.prepare-render-options.test.ts +0 -1365
  489. package/src/route-renderer/orchestration/route-render-orchestrator.test.ts +0 -267
  490. package/src/route-renderer/orchestration/route-render-orchestrator.ts +0 -879
  491. package/src/route-renderer/orchestration/template-serialization.test.ts +0 -110
  492. package/src/route-renderer/orchestration/template-serialization.ts +0 -117
  493. package/src/route-renderer/page-loading/component-dependency-collection.ts +0 -202
  494. package/src/route-renderer/page-loading/declared-asset-collection.ts +0 -153
  495. package/src/route-renderer/page-loading/dependency-resolver.test.ts +0 -761
  496. package/src/route-renderer/page-loading/dependency-resolver.ts +0 -144
  497. package/src/route-renderer/page-loading/ecopages-virtual-imports.ts +0 -75
  498. package/src/route-renderer/page-loading/lazy-entry-collection.ts +0 -167
  499. package/src/route-renderer/page-loading/lazy-trigger-planning.ts +0 -74
  500. package/src/route-renderer/page-loading/module-declaration-aggregation.ts +0 -60
  501. package/src/route-renderer/page-loading/module-declaration-scripts.ts +0 -16
  502. package/src/route-renderer/page-loading/page-dependency-bundling.ts +0 -244
  503. package/src/route-renderer/page-loading/page-module-loader.test.ts +0 -183
  504. package/src/route-renderer/page-loading/page-module-loader.ts +0 -184
  505. package/src/route-renderer/route-renderer.ts +0 -133
  506. package/src/router/client/link-intent.test.browser.ts +0 -51
  507. package/src/router/client/link-intent.ts +0 -92
  508. package/src/router/client/navigation-coordinator.test.ts +0 -237
  509. package/src/router/client/navigation-coordinator.ts +0 -453
  510. package/src/router/server/route-registry.test.ts +0 -176
  511. package/src/router/server/route-registry.ts +0 -382
  512. package/src/services/assets/asset-processing-service/asset-dependency-keys.ts +0 -66
  513. package/src/services/assets/asset-processing-service/asset-processing.service.test.ts +0 -473
  514. package/src/services/assets/asset-processing-service/asset-processing.service.ts +0 -344
  515. package/src/services/assets/asset-processing-service/asset.factory.test.ts +0 -63
  516. package/src/services/assets/asset-processing-service/asset.factory.ts +0 -105
  517. package/src/services/assets/asset-processing-service/assets.types.ts +0 -128
  518. package/src/services/assets/asset-processing-service/browser-runtime-asset.factory.test.ts +0 -74
  519. package/src/services/assets/asset-processing-service/browser-runtime-asset.factory.ts +0 -98
  520. package/src/services/assets/asset-processing-service/browser-runtime-entry.factory.test.ts +0 -67
  521. package/src/services/assets/asset-processing-service/browser-runtime-entry.factory.ts +0 -78
  522. package/src/services/assets/asset-processing-service/grouped-content-bundles.ts +0 -104
  523. package/src/services/assets/asset-processing-service/index.ts +0 -6
  524. package/src/services/assets/asset-processing-service/page-package.test.ts +0 -135
  525. package/src/services/assets/asset-processing-service/page-package.ts +0 -103
  526. package/src/services/assets/asset-processing-service/processor.registry.ts +0 -18
  527. package/src/services/assets/asset-processing-service/processors/base/base-processor.test.ts +0 -59
  528. package/src/services/assets/asset-processing-service/processors/base/base-processor.ts +0 -83
  529. package/src/services/assets/asset-processing-service/processors/base/base-script-processor.ts +0 -173
  530. package/src/services/assets/asset-processing-service/processors/index.ts +0 -5
  531. package/src/services/assets/asset-processing-service/processors/script/content-script.processor.test.ts +0 -188
  532. package/src/services/assets/asset-processing-service/processors/script/content-script.processor.ts +0 -138
  533. package/src/services/assets/asset-processing-service/processors/script/file-script.processor.test.ts +0 -326
  534. package/src/services/assets/asset-processing-service/processors/script/file-script.processor.ts +0 -116
  535. package/src/services/assets/asset-processing-service/processors/script/node-module-script.processor.test.ts +0 -270
  536. package/src/services/assets/asset-processing-service/processors/script/node-module-script.processor.ts +0 -145
  537. package/src/services/assets/asset-processing-service/processors/stylesheet/content-stylesheet.processor.test.ts +0 -261
  538. package/src/services/assets/asset-processing-service/processors/stylesheet/content-stylesheet.processor.ts +0 -72
  539. package/src/services/assets/asset-processing-service/processors/stylesheet/file-stylesheet.processor.ts +0 -83
  540. package/src/services/assets/asset-processing-service/ungrouped-dependency-processing.ts +0 -65
  541. package/src/services/assets/browser-bundle.service.test.ts +0 -66
  542. package/src/services/assets/browser-bundle.service.ts +0 -109
  543. package/src/services/cache/cache.types.ts +0 -126
  544. package/src/services/cache/index.ts +0 -18
  545. package/src/services/cache/memory-cache-store.test.ts +0 -225
  546. package/src/services/cache/memory-cache-store.ts +0 -130
  547. package/src/services/cache/page-cache-service.test.ts +0 -175
  548. package/src/services/cache/page-cache-service.ts +0 -202
  549. package/src/services/cache/page-request-cache-coordinator.service.test.ts +0 -79
  550. package/src/services/cache/page-request-cache-coordinator.service.ts +0 -131
  551. package/src/services/html/html-rewriter-provider.service.test.ts +0 -183
  552. package/src/services/html/html-rewriter-provider.service.ts +0 -105
  553. package/src/services/html/html-transformer.service.test.ts +0 -544
  554. package/src/services/html/html-transformer.service.ts +0 -369
  555. package/src/services/invalidation/development-invalidation.service.test.ts +0 -87
  556. package/src/services/invalidation/development-invalidation.service.ts +0 -262
  557. package/src/services/module-loading/app-module-loader.service.ts +0 -9
  558. package/src/services/module-loading/app-server-module-transpiler.service.test.ts +0 -297
  559. package/src/services/module-loading/app-server-module-transpiler.service.ts +0 -168
  560. package/src/services/module-loading/host-module-loader-registry.ts +0 -15
  561. package/src/services/module-loading/page-module-import.service.test.ts +0 -652
  562. package/src/services/module-loading/page-module-import.service.ts +0 -302
  563. package/src/services/module-loading/server-module-transpiler.service.test.ts +0 -242
  564. package/src/services/module-loading/server-module-transpiler.service.ts +0 -104
  565. package/src/services/module-loading/source-module-support.ts +0 -19
  566. package/src/services/runtime-state/dev-graph.service.ts +0 -217
  567. package/src/services/runtime-state/entrypoint-dependency-graph.service.ts +0 -136
  568. package/src/services/runtime-state/server-invalidation-state.service.ts +0 -68
  569. package/src/services/validation/schema-validation-service.test.ts +0 -223
  570. package/src/services/validation/schema-validation-service.ts +0 -204
  571. package/src/static-site-generator/static-site-generator.test.ts +0 -408
  572. package/src/static-site-generator/static-site-generator.ts +0 -445
  573. package/src/types/internal-types.ts +0 -243
  574. package/src/types/public-types.ts +0 -1508
  575. package/src/utils/deep-merge.test.ts +0 -114
  576. package/src/utils/deep-merge.ts +0 -47
  577. package/src/utils/hash.ts +0 -5
  578. package/src/utils/html-escaping.ts +0 -9
  579. package/src/utils/invariant.test.ts +0 -22
  580. package/src/utils/invariant.ts +0 -15
  581. package/src/utils/locals-utils.ts +0 -37
  582. package/src/utils/parse-cli-args.test.ts +0 -69
  583. package/src/utils/parse-cli-args.ts +0 -105
  584. package/src/utils/path-utils.module.ts +0 -14
  585. package/src/utils/path-utils.test.ts +0 -15
  586. package/src/utils/resolve-work-dir.ts +0 -45
  587. package/src/utils/runtime.ts +0 -44
  588. package/src/utils/server-utils.module.ts +0 -67
  589. package/src/utils/server-utils.test.ts +0 -38
  590. package/src/watchers/project-watcher.integration.test.ts +0 -337
  591. package/src/watchers/project-watcher.test-helpers.ts +0 -42
  592. package/src/watchers/project-watcher.test.ts +0 -768
  593. package/src/watchers/project-watcher.ts +0 -357
  594. /package/src/utils/{html.ts → html.d.ts} +0 -0
@@ -0,0 +1,230 @@
1
+ import type { EcoBuildPlugin } from '../build/build-types.js';
2
+ import { type BrowserRuntimeManifest } from '../build/browser-runtime-manifest.js';
3
+ import type { EcoPagesAppConfig, IHmrManager } from '../types/internal-types.js';
4
+ import type { HmrStrategy } from '../hmr/hmr-strategy.js';
5
+ import type { EcoPagesElement } from '../types/public-types.js';
6
+ import type { IntegrationRenderer } from '../route-renderer/orchestration/integration-renderer.js';
7
+ import { AssetProcessingService } from '../services/assets/asset-processing-service/asset-processing.service.js';
8
+ import type { AssetDefinition, ProcessedAsset } from '../services/assets/asset-processing-service/assets.types.js';
9
+ import type { RuntimeCapabilityDeclaration } from './runtime-capability.js';
10
+ export type { RuntimeCapabilityDeclaration, RuntimeCapabilityTag } from './runtime-capability.js';
11
+ export type { EcoBuildLoader, EcoBuildOnLoadArgs, EcoBuildOnLoadResult, EcoBuildOnResolveArgs, EcoBuildOnResolveResult, EcoBuildPlugin, EcoBuildPluginBuilder, } from '../build/build-types.js';
12
+ export type { PageBrowserGraphContribution, PageBrowserGraphContributionContext } from '../types/public-types.js';
13
+ export type { HtmlDocumentContribution, HtmlDocumentContributionContext, } from '../route-renderer/orchestration/integration-renderer.js';
14
+ /**
15
+ * Type-erased integration plugin stored in app-level registries.
16
+ *
17
+ * Ecopages keeps one heterogeneous integration list, while each plugin and
18
+ * renderer still owns its framework-specific render payload type internally.
19
+ */
20
+ export type AnyIntegrationPlugin = IntegrationPlugin<unknown>;
21
+ export declare const INTEGRATION_PLUGIN_ERRORS: {
22
+ readonly NOT_INITIALIZED_WITH_APP_CONFIG: "Plugin not initialized with app config";
23
+ readonly NOT_INITIALIZED_WITH_ASSET_SERVICE: "Plugin not initialized with asset dependency service";
24
+ };
25
+ export declare function mergeIntegrationOptions<TDefaults, TOverrides>(defaults: TDefaults, overrides: TOverrides): TDefaults & TOverrides;
26
+ export declare function assertIntegrationInvariant(condition: boolean, message?: string): asserts condition;
27
+ /**
28
+ * Base configuration shared by all integration plugins.
29
+ *
30
+ * @remarks
31
+ * Integrations declare their file ownership, optional runtime requirements, and
32
+ * any global assets or build-time contributions here. Runtime-only side effects
33
+ * belong in `setup()` rather than the constructor.
34
+ */
35
+ export interface IntegrationPluginConfig {
36
+ /**
37
+ * The name of the integration plugin.
38
+ */
39
+ name: string;
40
+ /**
41
+ * The extensions that this plugin supports (e.g., ['.kita.js', '.kita.tsx']).
42
+ */
43
+ extensions: string[];
44
+ /**
45
+ * The dependencies that this plugin requires on a global level.
46
+ * These dependencies will be resolved during the setup process and injected into the global scope of the application.
47
+ * They are not specific to any particular page or component.
48
+ */
49
+ integrationDependencies?: AssetDefinition[];
50
+ /**
51
+ * The strategy to use for static building.
52
+ * - 'render': Execute component function directly (faster, efficient).
53
+ * - 'fetch': Start server and fetch URL (slower, needed for some SSR like Lit).
54
+ * @default 'render'
55
+ */
56
+ staticBuildStep?: 'render' | 'fetch';
57
+ /**
58
+ * Declares runtime-specific requirements that must be satisfied before the
59
+ * app can start with this integration enabled.
60
+ */
61
+ runtimeCapability?: RuntimeCapabilityDeclaration;
62
+ /**
63
+ * JSX import source owned by this integration.
64
+ *
65
+ * @remarks
66
+ * This is primarily used by mixed-JSX flows where host-owned browser bundles
67
+ * need to preserve the correct JSX runtime for files claimed by the
68
+ * integration.
69
+ */
70
+ jsxImportSource?: string;
71
+ }
72
+ type RendererClass<C> = new (options: {
73
+ appConfig: EcoPagesAppConfig;
74
+ assetProcessingService: AssetProcessingService;
75
+ resolvedIntegrationDependencies: ProcessedAsset[];
76
+ rendererModules?: unknown;
77
+ runtimeOrigin: string;
78
+ }) => IntegrationRenderer<C>;
79
+ /**
80
+ * Base class for framework integrations.
81
+ *
82
+ * @remarks
83
+ * An integration owns three main concerns:
84
+ * - which file extensions it claims
85
+ * - which renderer class turns those files into HTML
86
+ * - which build-time or runtime contributions must be registered for that framework
87
+ *
88
+ * Core owns lifecycle ordering. Integrations declare contributions through the
89
+ * hooks on this class, while `ConfigBuilder.build()` and app startup decide when
90
+ * those hooks run. For page-browser and document shaping, integrations should
91
+ * prefer the contribution contracts re-exported from this module:
92
+ * `PageBrowserGraphContribution` / `PageBrowserGraphContributionContext` and
93
+ * `HtmlDocumentContribution` / `HtmlDocumentContributionContext`.
94
+ */
95
+ export declare abstract class IntegrationPlugin<C = EcoPagesElement> {
96
+ readonly name: string;
97
+ readonly extensions: string[];
98
+ abstract renderer: RendererClass<C>;
99
+ readonly staticBuildStep: 'render' | 'fetch';
100
+ readonly runtimeCapability?: RuntimeCapabilityDeclaration;
101
+ readonly jsxImportSource?: string;
102
+ protected integrationDependencies: AssetDefinition[];
103
+ protected resolvedIntegrationDependencies: ProcessedAsset[];
104
+ protected options?: Record<string, unknown>;
105
+ protected appConfig?: EcoPagesAppConfig;
106
+ protected assetProcessingService?: AssetProcessingService;
107
+ protected hmrManager?: IHmrManager;
108
+ runtimeOrigin: string;
109
+ get plugins(): EcoBuildPlugin[];
110
+ /**
111
+ * Returns build plugins that should only apply to browser-oriented bundles.
112
+ *
113
+ * @remarks
114
+ * Browser-only transforms such as runtime import aliasing belong here so they
115
+ * do not affect server bundles or static-page module generation.
116
+ */
117
+ get browserBuildPlugins(): EcoBuildPlugin[];
118
+ /**
119
+ * Returns shared browser runtime asset declarations owned by this integration.
120
+ *
121
+ * @remarks
122
+ * Core seals these declarations into the app build manifest so app-owned browser
123
+ * bundle paths can rewrite manifest-owned imports even when a specific build
124
+ * request does not install an integration-local runtime rewrite plugin.
125
+ */
126
+ get browserRuntimeManifest(): BrowserRuntimeManifest;
127
+ /**
128
+ * Creates the integration with static declaration-only configuration.
129
+ *
130
+ * @remarks
131
+ * Constructors are expected to stay side-effect free. Build-manifest
132
+ * contributions belong in `prepareBuildContributions()` and runtime-only setup
133
+ * belongs in `setup()`.
134
+ */
135
+ constructor(config: IntegrationPluginConfig);
136
+ /**
137
+ * Attaches the finalized app config to the integration.
138
+ *
139
+ * Core calls this during config finalization before runtime setup so the
140
+ * integration can resolve asset paths and other app-owned services later.
141
+ */
142
+ setConfig(appConfig: EcoPagesAppConfig): void;
143
+ /**
144
+ * Records the runtime origin used for page-module loading and renderer setup.
145
+ */
146
+ setRuntimeOrigin(runtimeOrigin: string): void;
147
+ /**
148
+ * Returns an HMR strategy for this integration, if applicable.
149
+ * The strategy will be registered with the HmrManager during initialization.
150
+ *
151
+ * @returns HmrStrategy instance or undefined if no custom HMR handling needed
152
+ *
153
+ * @example
154
+ * ```typescript
155
+ * getHmrStrategy(): HmrStrategy {
156
+ * const context = this.hmrManager!.getDefaultContext();
157
+ * return new ReactHmrStrategy({ context, pageMetadataCache, runtimeManifest });
158
+ * }
159
+ * ```
160
+ */
161
+ getHmrStrategy?(): HmrStrategy | undefined;
162
+ /**
163
+ * Attaches the shared HMR manager and registers integration-owned development hooks.
164
+ *
165
+ * @remarks
166
+ * The default implementation registers the optional integration HMR strategy.
167
+ * Integrations should override this only when they need to extend that shared
168
+ * behavior rather than replace it.
169
+ */
170
+ setHmrManager(hmrManager: IHmrManager): void;
171
+ /**
172
+ * Creates the asset-processing service used for global integration dependencies.
173
+ */
174
+ initializeAssetDefinitionService(): void;
175
+ /**
176
+ * Returns processed global assets resolved during `setup()`.
177
+ */
178
+ getResolvedIntegrationDependencies(): ProcessedAsset[];
179
+ /**
180
+ * Creates the shared renderer options owned by core lifecycle setup.
181
+ */
182
+ protected createRendererOptions(options?: {
183
+ rendererModules?: unknown;
184
+ }): {
185
+ appConfig: EcoPagesAppConfig;
186
+ assetProcessingService: AssetProcessingService;
187
+ resolvedIntegrationDependencies: ProcessedAsset[];
188
+ rendererModules: unknown;
189
+ runtimeOrigin: string;
190
+ };
191
+ /**
192
+ * Attaches runtime-only services after a renderer instance has been created.
193
+ */
194
+ protected attachRendererRuntimeServices<T extends IntegrationRenderer<C>>(renderer: T): T;
195
+ /**
196
+ * Instantiates the integration renderer with app-owned services.
197
+ *
198
+ * @remarks
199
+ * Renderers are cheap runtime objects. They receive the finalized app config,
200
+ * a fresh asset-processing service, integration-global processed assets, and
201
+ * any renderer module context supplied by the active runtime.
202
+ renderer.name ||= this.name;
203
+ */
204
+ initializeRenderer(options?: {
205
+ rendererModules?: unknown;
206
+ }): IntegrationRenderer<C>;
207
+ /**
208
+ * Prepares build-facing contributions before the app build manifest is sealed.
209
+ *
210
+ * @remarks
211
+ * Integrations can override this when runtime or build plugin declarations must
212
+ * be materialized ahead of runtime startup. Runtime-only side effects stay in
213
+ * `setup()`.
214
+ */
215
+ prepareBuildContributions(): Promise<void>;
216
+ /**
217
+ * Performs runtime-only integration setup after config build has already
218
+ * sealed manifest contributions.
219
+ */
220
+ setup(): Promise<void>;
221
+ /**
222
+ * Releases runtime resources owned by the integration.
223
+ *
224
+ * @remarks
225
+ * Most integrations do not need custom teardown. Override this only for
226
+ * explicit cleanup such as watchers, compiler handles, or runtime registries
227
+ * that outlive individual requests.
228
+ */
229
+ teardown(): Promise<void>;
230
+ }
@@ -0,0 +1,201 @@
1
+ import { createBrowserRuntimeManifest } from "../build/browser-runtime-manifest.js";
2
+ import { AssetProcessingService } from "../services/assets/asset-processing-service/asset-processing.service.js";
3
+ import { deepMerge } from "../utils/deep-merge.js";
4
+ import { invariant } from "../utils/invariant.js";
5
+ const INTEGRATION_PLUGIN_ERRORS = {
6
+ NOT_INITIALIZED_WITH_APP_CONFIG: "Plugin not initialized with app config",
7
+ NOT_INITIALIZED_WITH_ASSET_SERVICE: "Plugin not initialized with asset dependency service"
8
+ };
9
+ function mergeIntegrationOptions(defaults, overrides) {
10
+ return deepMerge(defaults, overrides);
11
+ }
12
+ function assertIntegrationInvariant(condition, message) {
13
+ invariant(condition, message);
14
+ }
15
+ class IntegrationPlugin {
16
+ name;
17
+ extensions;
18
+ staticBuildStep;
19
+ runtimeCapability;
20
+ jsxImportSource;
21
+ integrationDependencies;
22
+ resolvedIntegrationDependencies = [];
23
+ options;
24
+ appConfig;
25
+ assetProcessingService;
26
+ hmrManager;
27
+ get plugins() {
28
+ return [];
29
+ }
30
+ /**
31
+ * Returns build plugins that should only apply to browser-oriented bundles.
32
+ *
33
+ * @remarks
34
+ * Browser-only transforms such as runtime import aliasing belong here so they
35
+ * do not affect server bundles or static-page module generation.
36
+ */
37
+ get browserBuildPlugins() {
38
+ return [];
39
+ }
40
+ /**
41
+ * Returns shared browser runtime asset declarations owned by this integration.
42
+ *
43
+ * @remarks
44
+ * Core seals these declarations into the app build manifest so app-owned browser
45
+ * bundle paths can rewrite manifest-owned imports even when a specific build
46
+ * request does not install an integration-local runtime rewrite plugin.
47
+ */
48
+ get browserRuntimeManifest() {
49
+ return createBrowserRuntimeManifest();
50
+ }
51
+ /**
52
+ * Creates the integration with static declaration-only configuration.
53
+ *
54
+ * @remarks
55
+ * Constructors are expected to stay side-effect free. Build-manifest
56
+ * contributions belong in `prepareBuildContributions()` and runtime-only setup
57
+ * belongs in `setup()`.
58
+ */
59
+ constructor(config) {
60
+ this.name = config.name;
61
+ this.extensions = config.extensions;
62
+ this.integrationDependencies = config.integrationDependencies || [];
63
+ this.staticBuildStep = config.staticBuildStep || "render";
64
+ this.runtimeCapability = config.runtimeCapability;
65
+ this.jsxImportSource = config.jsxImportSource;
66
+ }
67
+ /**
68
+ * Attaches the finalized app config to the integration.
69
+ *
70
+ * Core calls this during config finalization before runtime setup so the
71
+ * integration can resolve asset paths and other app-owned services later.
72
+ */
73
+ setConfig(appConfig) {
74
+ this.appConfig = appConfig;
75
+ this.initializeAssetDefinitionService();
76
+ }
77
+ /**
78
+ * Records the runtime origin used for page-module loading and renderer setup.
79
+ */
80
+ setRuntimeOrigin(runtimeOrigin) {
81
+ this.runtimeOrigin = runtimeOrigin;
82
+ }
83
+ /**
84
+ * Attaches the shared HMR manager and registers integration-owned development hooks.
85
+ *
86
+ * @remarks
87
+ * The default implementation registers the optional integration HMR strategy.
88
+ * Integrations should override this only when they need to extend that shared
89
+ * behavior rather than replace it.
90
+ */
91
+ setHmrManager(hmrManager) {
92
+ this.hmrManager = hmrManager;
93
+ const strategy = this.getHmrStrategy?.();
94
+ if (strategy) {
95
+ hmrManager.registerStrategy(strategy);
96
+ }
97
+ if (this.assetProcessingService) {
98
+ this.assetProcessingService.setHmrManager(hmrManager);
99
+ }
100
+ }
101
+ /**
102
+ * Creates the asset-processing service used for global integration dependencies.
103
+ */
104
+ initializeAssetDefinitionService() {
105
+ if (!this.appConfig) throw new Error(INTEGRATION_PLUGIN_ERRORS.NOT_INITIALIZED_WITH_APP_CONFIG);
106
+ this.assetProcessingService = AssetProcessingService.createWithDefaultProcessors(this.appConfig);
107
+ if (this.hmrManager) {
108
+ this.assetProcessingService.setHmrManager(this.hmrManager);
109
+ }
110
+ }
111
+ /**
112
+ * Returns processed global assets resolved during `setup()`.
113
+ */
114
+ getResolvedIntegrationDependencies() {
115
+ return this.resolvedIntegrationDependencies;
116
+ }
117
+ /**
118
+ * Creates the shared renderer options owned by core lifecycle setup.
119
+ */
120
+ createRendererOptions(options) {
121
+ if (!this.appConfig) {
122
+ throw new Error(INTEGRATION_PLUGIN_ERRORS.NOT_INITIALIZED_WITH_APP_CONFIG);
123
+ }
124
+ const assetProcessingService = AssetProcessingService.createWithDefaultProcessors(this.appConfig);
125
+ if (this.hmrManager) {
126
+ assetProcessingService.setHmrManager(this.hmrManager);
127
+ }
128
+ return {
129
+ appConfig: this.appConfig,
130
+ assetProcessingService,
131
+ resolvedIntegrationDependencies: this.resolvedIntegrationDependencies,
132
+ rendererModules: options?.rendererModules,
133
+ runtimeOrigin: this.runtimeOrigin
134
+ };
135
+ }
136
+ /**
137
+ * Attaches runtime-only services after a renderer instance has been created.
138
+ */
139
+ attachRendererRuntimeServices(renderer) {
140
+ if (typeof renderer.name !== "string" || renderer.name.length === 0) {
141
+ renderer.name = this.name;
142
+ }
143
+ if (this.hmrManager) {
144
+ renderer.setHmrManager(this.hmrManager);
145
+ }
146
+ return renderer;
147
+ }
148
+ /**
149
+ * Instantiates the integration renderer with app-owned services.
150
+ *
151
+ * @remarks
152
+ * Renderers are cheap runtime objects. They receive the finalized app config,
153
+ * a fresh asset-processing service, integration-global processed assets, and
154
+ * any renderer module context supplied by the active runtime.
155
+ renderer.name ||= this.name;
156
+ */
157
+ initializeRenderer(options) {
158
+ const renderer = new this.renderer(this.createRendererOptions(options));
159
+ renderer.name ||= this.name;
160
+ return this.attachRendererRuntimeServices(renderer);
161
+ }
162
+ /**
163
+ * Prepares build-facing contributions before the app build manifest is sealed.
164
+ *
165
+ * @remarks
166
+ * Integrations can override this when runtime or build plugin declarations must
167
+ * be materialized ahead of runtime startup. Runtime-only side effects stay in
168
+ * `setup()`.
169
+ */
170
+ async prepareBuildContributions() {
171
+ }
172
+ /**
173
+ * Performs runtime-only integration setup after config build has already
174
+ * sealed manifest contributions.
175
+ */
176
+ async setup() {
177
+ if (this.integrationDependencies.length === 0) return;
178
+ if (!this.assetProcessingService) throw new Error(INTEGRATION_PLUGIN_ERRORS.NOT_INITIALIZED_WITH_ASSET_SERVICE);
179
+ this.resolvedIntegrationDependencies = await this.assetProcessingService.processDependencies(
180
+ this.integrationDependencies,
181
+ this.name
182
+ );
183
+ this.initializeRenderer();
184
+ }
185
+ /**
186
+ * Releases runtime resources owned by the integration.
187
+ *
188
+ * @remarks
189
+ * Most integrations do not need custom teardown. Override this only for
190
+ * explicit cleanup such as watchers, compiler handles, or runtime registries
191
+ * that outlive individual requests.
192
+ */
193
+ async teardown() {
194
+ }
195
+ }
196
+ export {
197
+ INTEGRATION_PLUGIN_ERRORS,
198
+ IntegrationPlugin,
199
+ assertIntegrationInvariant,
200
+ mergeIntegrationOptions
201
+ };
@@ -0,0 +1,97 @@
1
+ import type { EcoBuildPlugin } from '../build/build-types.js';
2
+ import type { EcoPagesAppConfig, IClientBridge } from '../types/internal-types.js';
3
+ import type { AssetDefinition } from '../services/assets/asset-processing-service/assets.types.js';
4
+ import type { RuntimeCapabilityDeclaration } from './runtime-capability.js';
5
+ export type { RuntimeCapabilityDeclaration, RuntimeCapabilityTag } from './runtime-capability.js';
6
+ export type { EcoBuildLoader, EcoBuildOnLoadArgs, EcoBuildOnLoadResult, EcoBuildOnResolveArgs, EcoBuildOnResolveResult, EcoBuildPlugin, EcoBuildPluginBuilder, } from '../build/build-types.js';
7
+ export declare const PROCESSOR_ERRORS: {
8
+ readonly CACHE_DIRECTORY_NOT_SET: "Cache directory not set in context";
9
+ };
10
+ export declare function mergeProcessorOptions<TDefaults, TOverrides>(defaults: TDefaults, overrides: TOverrides): TDefaults & TOverrides;
11
+ export interface ProcessorWatchContext {
12
+ path: string;
13
+ bridge: IClientBridge;
14
+ }
15
+ export interface ProcessorWatchConfig {
16
+ paths: string[];
17
+ extensions?: string[];
18
+ onCreate?: (ctx: ProcessorWatchContext) => Promise<void>;
19
+ onChange?: (ctx: ProcessorWatchContext) => Promise<void>;
20
+ onDelete?: (ctx: ProcessorWatchContext) => Promise<void>;
21
+ onError?: (error: Error) => void;
22
+ }
23
+ export type ProcessorAssetKind = 'script' | 'stylesheet' | 'image';
24
+ export type ProcessorExtensionPattern = string;
25
+ export interface ProcessorAssetCapability {
26
+ kind: ProcessorAssetKind;
27
+ /**
28
+ * Supported patterns:
29
+ * - `*` (all extensions)
30
+ * - `.css` or `css`
31
+ * - `*.css`
32
+ * - `*.{css,scss,sass}`
33
+ *
34
+ * Pattern matching is case-insensitive and trims surrounding spaces,
35
+ * including grouped values (e.g. `*.{ CSS, ScSs }`).
36
+ */
37
+ extensions?: ProcessorExtensionPattern[];
38
+ }
39
+ export interface ProcessorConfig<TOptions = Record<string, unknown>> {
40
+ name: string;
41
+ description?: string;
42
+ options?: TOptions;
43
+ watch?: ProcessorWatchConfig;
44
+ capabilities?: ProcessorAssetCapability[];
45
+ runtimeCapability?: RuntimeCapabilityDeclaration;
46
+ }
47
+ export interface ProcessorContext {
48
+ config: EcoPagesAppConfig;
49
+ rootDir: string;
50
+ srcDir: string;
51
+ distDir: string;
52
+ cache?: string;
53
+ }
54
+ /**
55
+ * Interface for processor build plugins
56
+ * This is used to pass plugins to the build process directly from the processor
57
+ * For instance it can become very handy when dealing with virtual modules that needs to be recognized by the bundler
58
+ * i.e. @ecopages/image-processor
59
+ */
60
+ export declare abstract class Processor<TOptions = Record<string, unknown>> {
61
+ readonly name: string;
62
+ protected dependencies: AssetDefinition[];
63
+ protected context?: ProcessorContext;
64
+ protected options?: TOptions;
65
+ protected watchConfig?: ProcessorWatchConfig;
66
+ protected capabilities: ProcessorAssetCapability[];
67
+ readonly runtimeCapability?: RuntimeCapabilityDeclaration;
68
+ /** Plugins that are only used during the build process */
69
+ abstract buildPlugins?: EcoBuildPlugin[];
70
+ /** Plugins that are used during runtime for file processing */
71
+ abstract plugins?: EcoBuildPlugin[];
72
+ constructor(config: ProcessorConfig<TOptions>);
73
+ setContext(appConfig: EcoPagesAppConfig): void;
74
+ /**
75
+ * Prepares build-facing processor contributions before config finalization.
76
+ *
77
+ * @remarks
78
+ * Override this when a processor must compute runtime/build plugins or other
79
+ * manifest-owned state before startup. Runtime-only work such as cache
80
+ * warming or watcher registration should stay in `setup()`.
81
+ */
82
+ prepareBuildContributions(): Promise<void>;
83
+ abstract setup(): Promise<void>;
84
+ abstract teardown(): Promise<void>;
85
+ abstract process(input: unknown, filePath?: string): Promise<unknown>;
86
+ protected getCachePath(key: string): string;
87
+ protected readCache<T>(key: string): Promise<T | null>;
88
+ protected writeCache<T>(key: string, data: T): Promise<void>;
89
+ getWatchConfig(): ProcessorWatchConfig | undefined;
90
+ getDependencies(): AssetDefinition[];
91
+ getName(): string;
92
+ getAssetCapabilities(): ProcessorAssetCapability[];
93
+ matchesFileFilter(_filepath: string): boolean;
94
+ canProcessAsset(kind: ProcessorAssetKind, filepath?: string): boolean;
95
+ private matchesCapabilityExtensions;
96
+ private normalizeExtensionPattern;
97
+ }
@@ -0,0 +1,141 @@
1
+ import path from "node:path";
2
+ import { fileSystem } from "@ecopages/file-system";
3
+ import { DEFAULT_ECOPAGES_WORK_DIR } from "../config/constants.js";
4
+ import { GENERATED_BASE_PATHS } from "../config/constants.js";
5
+ import { deepMerge } from "../utils/deep-merge.js";
6
+ const PROCESSOR_ERRORS = {
7
+ CACHE_DIRECTORY_NOT_SET: "Cache directory not set in context"
8
+ };
9
+ function mergeProcessorOptions(defaults, overrides) {
10
+ return deepMerge(defaults, overrides);
11
+ }
12
+ function resolveGeneratedPath(type, options) {
13
+ const { root, module, subPath } = options;
14
+ const parts = [root, GENERATED_BASE_PATHS[type], module, subPath].filter(Boolean);
15
+ return path.join(...parts);
16
+ }
17
+ class Processor {
18
+ name;
19
+ dependencies = [];
20
+ context;
21
+ options;
22
+ watchConfig;
23
+ capabilities = [];
24
+ runtimeCapability;
25
+ constructor(config) {
26
+ this.name = config.name;
27
+ this.options = config.options;
28
+ this.watchConfig = config.watch;
29
+ this.capabilities = config.capabilities ?? [];
30
+ this.runtimeCapability = config.runtimeCapability;
31
+ }
32
+ setContext(appConfig) {
33
+ const workDir = appConfig.absolutePaths.workDir ?? path.join(appConfig.rootDir, appConfig.workDir ?? DEFAULT_ECOPAGES_WORK_DIR);
34
+ const cachePath = resolveGeneratedPath("cache", {
35
+ root: workDir,
36
+ module: this.name
37
+ });
38
+ fileSystem.ensureDir(cachePath);
39
+ this.context = {
40
+ config: appConfig,
41
+ rootDir: appConfig.rootDir,
42
+ srcDir: appConfig.absolutePaths.srcDir,
43
+ distDir: appConfig.absolutePaths.distDir,
44
+ cache: cachePath
45
+ };
46
+ }
47
+ /**
48
+ * Prepares build-facing processor contributions before config finalization.
49
+ *
50
+ * @remarks
51
+ * Override this when a processor must compute runtime/build plugins or other
52
+ * manifest-owned state before startup. Runtime-only work such as cache
53
+ * warming or watcher registration should stay in `setup()`.
54
+ */
55
+ async prepareBuildContributions() {
56
+ }
57
+ getCachePath(key) {
58
+ return `${this.context?.cache}/${key}`;
59
+ }
60
+ async readCache(key) {
61
+ const cachePath = this.getCachePath(key);
62
+ try {
63
+ const data = await fileSystem.readFile(cachePath);
64
+ return JSON.parse(data);
65
+ } catch {
66
+ return null;
67
+ }
68
+ }
69
+ async writeCache(key, data) {
70
+ if (!this.context?.cache) {
71
+ throw new Error(PROCESSOR_ERRORS.CACHE_DIRECTORY_NOT_SET);
72
+ }
73
+ const cachePath = this.getCachePath(key);
74
+ fileSystem.write(cachePath, JSON.stringify(data, null, 2));
75
+ }
76
+ getWatchConfig() {
77
+ return this.watchConfig;
78
+ }
79
+ getDependencies() {
80
+ return this.dependencies;
81
+ }
82
+ getName() {
83
+ return this.name;
84
+ }
85
+ getAssetCapabilities() {
86
+ return this.capabilities;
87
+ }
88
+ matchesFileFilter(_filepath) {
89
+ return true;
90
+ }
91
+ canProcessAsset(kind, filepath) {
92
+ const capabilities = this.getAssetCapabilities();
93
+ if (capabilities.length === 0) {
94
+ return false;
95
+ }
96
+ const matchingKind = capabilities.filter((capability) => capability.kind === kind);
97
+ if (matchingKind.length === 0) {
98
+ return false;
99
+ }
100
+ if (!filepath) {
101
+ return true;
102
+ }
103
+ return matchingKind.some((capability) => this.matchesCapabilityExtensions(filepath, capability.extensions));
104
+ }
105
+ matchesCapabilityExtensions(filepath, extensions) {
106
+ if (!extensions || extensions.length === 0) {
107
+ return true;
108
+ }
109
+ const normalizedExt = path.extname(filepath).toLowerCase();
110
+ return extensions.some((rawPattern) => {
111
+ const pattern = this.normalizeExtensionPattern(rawPattern);
112
+ if (!pattern) {
113
+ return false;
114
+ }
115
+ if (pattern === "*") {
116
+ return true;
117
+ }
118
+ const groupedMatch = pattern.match(/^\*\.\{(.+)\}$/);
119
+ if (groupedMatch) {
120
+ const groupItems = groupedMatch[1].split(",").map((item) => this.normalizeExtensionPattern(item)).filter(Boolean);
121
+ return groupItems.some((item) => normalizedExt === item || normalizedExt === `.${item}`);
122
+ }
123
+ if (pattern.startsWith("*")) {
124
+ const suffix = pattern.slice(1);
125
+ return normalizedExt.endsWith(suffix);
126
+ }
127
+ if (pattern.startsWith(".")) {
128
+ return normalizedExt === pattern;
129
+ }
130
+ return normalizedExt === `.${pattern}`;
131
+ });
132
+ }
133
+ normalizeExtensionPattern(rawPattern) {
134
+ return rawPattern.trim().toLowerCase();
135
+ }
136
+ }
137
+ export {
138
+ PROCESSOR_ERRORS,
139
+ Processor,
140
+ mergeProcessorOptions
141
+ };
@@ -1,14 +1,9 @@
1
- export type RuntimeCapabilityTag =
2
- | 'bun-only'
3
- | 'node-compatible'
4
- | 'requires-native-bun-api'
5
- | 'requires-node-builtins';
6
-
1
+ export type RuntimeCapabilityTag = 'bun-only' | 'node-compatible' | 'requires-native-bun-api' | 'requires-node-builtins';
7
2
  /**
8
3
  * Declares the runtime assumptions a plugin makes so config finalization can
9
4
  * reject incompatible startup environments before bootstrapping the app.
10
5
  */
11
6
  export interface RuntimeCapabilityDeclaration {
12
- tags: RuntimeCapabilityTag[];
13
- minRuntimeVersion?: string;
7
+ tags: RuntimeCapabilityTag[];
8
+ minRuntimeVersion?: string;
14
9
  }
File without changes