every-plugin 2.10.0 → 3.0.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (462) hide show
  1. package/bin/every-plugin-serve.mjs +12 -0
  2. package/bin/every-plugin.mjs +59 -0
  3. package/dist/_virtual/_rolldown/runtime.cjs +1 -2
  4. package/dist/build/artifact-names.cjs +119 -0
  5. package/dist/build/artifact-names.cjs.map +1 -0
  6. package/dist/build/artifact-names.d.cts +68 -0
  7. package/dist/build/artifact-names.d.cts.map +1 -0
  8. package/dist/build/artifact-names.d.mts +68 -0
  9. package/dist/build/artifact-names.d.mts.map +1 -0
  10. package/dist/build/artifact-names.mjs +102 -0
  11. package/dist/build/artifact-names.mjs.map +1 -0
  12. package/dist/build/contract-types.cjs +89 -0
  13. package/dist/build/contract-types.cjs.map +1 -0
  14. package/dist/build/contract-types.mjs +81 -0
  15. package/dist/build/contract-types.mjs.map +1 -0
  16. package/dist/build/rspack/build-report-plugin.cjs +37 -0
  17. package/dist/build/rspack/build-report-plugin.cjs.map +1 -0
  18. package/dist/build/rspack/build-report-plugin.d.cts +18 -0
  19. package/dist/build/rspack/build-report-plugin.d.cts.map +1 -0
  20. package/dist/build/rspack/build-report-plugin.d.mts +18 -0
  21. package/dist/build/rspack/build-report-plugin.d.mts.map +1 -0
  22. package/dist/build/rspack/build-report-plugin.mjs +37 -0
  23. package/dist/build/rspack/build-report-plugin.mjs.map +1 -0
  24. package/dist/build/rspack/chunk-completeness-plugin.cjs +47 -0
  25. package/dist/build/rspack/chunk-completeness-plugin.cjs.map +1 -0
  26. package/dist/build/rspack/chunk-completeness-plugin.mjs +47 -0
  27. package/dist/build/rspack/chunk-completeness-plugin.mjs.map +1 -0
  28. package/dist/build/rspack/compose.cjs +69 -0
  29. package/dist/build/rspack/compose.cjs.map +1 -0
  30. package/dist/build/rspack/compose.d.cts +20 -0
  31. package/dist/build/rspack/compose.d.cts.map +1 -0
  32. package/dist/build/rspack/compose.d.mts +20 -0
  33. package/dist/build/rspack/compose.d.mts.map +1 -0
  34. package/dist/build/rspack/compose.mjs +65 -0
  35. package/dist/build/rspack/compose.mjs.map +1 -0
  36. package/dist/build/rspack/fix-mf-data-uri-plugin.cjs +11 -11
  37. package/dist/build/rspack/fix-mf-data-uri-plugin.cjs.map +1 -1
  38. package/dist/build/rspack/fix-mf-data-uri-plugin.d.cts +2 -0
  39. package/dist/build/rspack/fix-mf-data-uri-plugin.d.cts.map +1 -1
  40. package/dist/build/rspack/fix-mf-data-uri-plugin.d.mts +2 -0
  41. package/dist/build/rspack/fix-mf-data-uri-plugin.d.mts.map +1 -1
  42. package/dist/build/rspack/fix-mf-data-uri-plugin.mjs +11 -10
  43. package/dist/build/rspack/fix-mf-data-uri-plugin.mjs.map +1 -1
  44. package/dist/build/rspack/generated-config.cjs +35 -0
  45. package/dist/build/rspack/generated-config.cjs.map +1 -0
  46. package/dist/build/rspack/generated-config.mjs +32 -0
  47. package/dist/build/rspack/generated-config.mjs.map +1 -0
  48. package/dist/build/rspack/index.cjs +8 -5
  49. package/dist/build/rspack/index.d.cts +5 -3
  50. package/dist/build/rspack/index.d.mts +5 -3
  51. package/dist/build/rspack/index.mjs +5 -3
  52. package/dist/build/rspack/module-federation.cjs +2 -2
  53. package/dist/build/rspack/module-federation.cjs.map +1 -1
  54. package/dist/build/rspack/module-federation.mjs +1 -1
  55. package/dist/build/rspack/module-federation.mjs.map +1 -1
  56. package/dist/build/rspack/plugin.cjs +44 -69
  57. package/dist/build/rspack/plugin.cjs.map +1 -1
  58. package/dist/build/rspack/plugin.d.cts +4 -13
  59. package/dist/build/rspack/plugin.d.cts.map +1 -1
  60. package/dist/build/rspack/plugin.d.mts +4 -13
  61. package/dist/build/rspack/plugin.d.mts.map +1 -1
  62. package/dist/build/rspack/plugin.mjs +44 -69
  63. package/dist/build/rspack/plugin.mjs.map +1 -1
  64. package/dist/build/rspack/utils.cjs +7 -5
  65. package/dist/build/rspack/utils.cjs.map +1 -1
  66. package/dist/build/rspack/utils.mjs +7 -6
  67. package/dist/build/rspack/utils.mjs.map +1 -1
  68. package/dist/build/ui/factory.cjs +88 -0
  69. package/dist/build/ui/factory.cjs.map +1 -0
  70. package/dist/build/ui/factory.d.cts +11 -0
  71. package/dist/build/ui/factory.d.cts.map +1 -0
  72. package/dist/build/ui/factory.d.mts +11 -0
  73. package/dist/build/ui/factory.d.mts.map +1 -0
  74. package/dist/build/ui/factory.mjs +80 -0
  75. package/dist/build/ui/factory.mjs.map +1 -0
  76. package/dist/build/ui/generated-config.cjs +118 -0
  77. package/dist/build/ui/generated-config.cjs.map +1 -0
  78. package/dist/build/ui/generated-config.d.cts +33 -0
  79. package/dist/build/ui/generated-config.d.cts.map +1 -0
  80. package/dist/build/ui/generated-config.d.mts +33 -0
  81. package/dist/build/ui/generated-config.d.mts.map +1 -0
  82. package/dist/build/ui/generated-config.mjs +111 -0
  83. package/dist/build/ui/generated-config.mjs.map +1 -0
  84. package/dist/build/ui/hash-artifacts-plugin.cjs +61 -0
  85. package/dist/build/ui/hash-artifacts-plugin.cjs.map +1 -0
  86. package/dist/build/ui/hash-artifacts-plugin.d.cts +20 -0
  87. package/dist/build/ui/hash-artifacts-plugin.d.cts.map +1 -0
  88. package/dist/build/ui/hash-artifacts-plugin.d.mts +20 -0
  89. package/dist/build/ui/hash-artifacts-plugin.d.mts.map +1 -0
  90. package/dist/build/ui/hash-artifacts-plugin.mjs +58 -0
  91. package/dist/build/ui/hash-artifacts-plugin.mjs.map +1 -0
  92. package/dist/build/ui/index.cjs +90 -0
  93. package/dist/build/ui/index.cjs.map +1 -0
  94. package/dist/build/ui/index.d.cts +29 -0
  95. package/dist/build/ui/index.d.cts.map +1 -0
  96. package/dist/build/ui/index.d.mts +29 -0
  97. package/dist/build/ui/index.d.mts.map +1 -0
  98. package/dist/build/ui/index.mjs +68 -0
  99. package/dist/build/ui/index.mjs.map +1 -0
  100. package/dist/build/ui/manifest-plugin.cjs +37 -0
  101. package/dist/build/ui/manifest-plugin.cjs.map +1 -0
  102. package/dist/build/ui/manifest-plugin.d.cts +19 -0
  103. package/dist/build/ui/manifest-plugin.d.cts.map +1 -0
  104. package/dist/build/ui/manifest-plugin.d.mts +19 -0
  105. package/dist/build/ui/manifest-plugin.d.mts.map +1 -0
  106. package/dist/build/ui/manifest-plugin.mjs +37 -0
  107. package/dist/build/ui/manifest-plugin.mjs.map +1 -0
  108. package/dist/build/ui/rsbuild-config.cjs +203 -0
  109. package/dist/build/ui/rsbuild-config.cjs.map +1 -0
  110. package/dist/build/ui/rsbuild-config.d.cts +45 -0
  111. package/dist/build/ui/rsbuild-config.d.cts.map +1 -0
  112. package/dist/build/ui/rsbuild-config.d.mts +45 -0
  113. package/dist/build/ui/rsbuild-config.d.mts.map +1 -0
  114. package/dist/build/ui/rsbuild-config.mjs +200 -0
  115. package/dist/build/ui/rsbuild-config.mjs.map +1 -0
  116. package/dist/build/ui/stubs.cjs +107 -0
  117. package/dist/build/ui/stubs.cjs.map +1 -0
  118. package/dist/build/ui/stubs.d.cts +25 -0
  119. package/dist/build/ui/stubs.d.cts.map +1 -0
  120. package/dist/build/ui/stubs.d.mts +25 -0
  121. package/dist/build/ui/stubs.d.mts.map +1 -0
  122. package/dist/build/ui/stubs.mjs +106 -0
  123. package/dist/build/ui/stubs.mjs.map +1 -0
  124. package/dist/cli.cjs +83 -0
  125. package/dist/cli.cjs.map +1 -0
  126. package/dist/cli.d.cts +6 -0
  127. package/dist/cli.d.cts.map +1 -0
  128. package/dist/cli.d.mts +6 -0
  129. package/dist/cli.d.mts.map +1 -0
  130. package/dist/cli.mjs +82 -0
  131. package/dist/cli.mjs.map +1 -0
  132. package/dist/dev/serve.cjs +390 -0
  133. package/dist/dev/serve.cjs.map +1 -0
  134. package/dist/dev/serve.d.cts +23 -0
  135. package/dist/dev/serve.d.cts.map +1 -0
  136. package/dist/dev/serve.d.mts +23 -0
  137. package/dist/dev/serve.d.mts.map +1 -0
  138. package/dist/dev/serve.mjs +384 -0
  139. package/dist/dev/serve.mjs.map +1 -0
  140. package/dist/dev/watch-kill.cjs +39 -0
  141. package/dist/dev/watch-kill.cjs.map +1 -0
  142. package/dist/dev/watch-kill.mjs +38 -0
  143. package/dist/dev/watch-kill.mjs.map +1 -0
  144. package/dist/effect-helpers.cjs +23 -0
  145. package/dist/effect-helpers.cjs.map +1 -0
  146. package/dist/effect-helpers.d.cts +20 -0
  147. package/dist/effect-helpers.d.cts.map +1 -0
  148. package/dist/effect-helpers.d.mts +20 -0
  149. package/dist/effect-helpers.d.mts.map +1 -0
  150. package/dist/effect-helpers.mjs +22 -0
  151. package/dist/effect-helpers.mjs.map +1 -0
  152. package/dist/errors.cjs +49 -69
  153. package/dist/errors.cjs.map +1 -1
  154. package/dist/errors.d.cts +13 -96
  155. package/dist/errors.d.cts.map +1 -1
  156. package/dist/errors.d.mts +13 -96
  157. package/dist/errors.d.mts.map +1 -1
  158. package/dist/errors.mjs +16 -34
  159. package/dist/errors.mjs.map +1 -1
  160. package/dist/identity.cjs +19 -0
  161. package/dist/identity.cjs.map +1 -0
  162. package/dist/identity.d.cts +33 -0
  163. package/dist/identity.d.cts.map +1 -0
  164. package/dist/identity.d.mts +33 -0
  165. package/dist/identity.d.mts.map +1 -0
  166. package/dist/identity.mjs +16 -0
  167. package/dist/identity.mjs.map +1 -0
  168. package/dist/index.cjs +8 -5
  169. package/dist/index.d.cts +8 -6
  170. package/dist/index.d.mts +8 -6
  171. package/dist/index.mjs +6 -4
  172. package/dist/plugin.cjs +12 -26
  173. package/dist/plugin.cjs.map +1 -1
  174. package/dist/plugin.d.cts +44 -25
  175. package/dist/plugin.d.cts.map +1 -1
  176. package/dist/plugin.d.mts +45 -26
  177. package/dist/plugin.d.mts.map +1 -1
  178. package/dist/plugin.mjs +15 -29
  179. package/dist/plugin.mjs.map +1 -1
  180. package/dist/remote-entry.cjs +103 -0
  181. package/dist/remote-entry.cjs.map +1 -0
  182. package/dist/remote-entry.d.cts +53 -0
  183. package/dist/remote-entry.d.cts.map +1 -0
  184. package/dist/remote-entry.d.mts +53 -0
  185. package/dist/remote-entry.d.mts.map +1 -0
  186. package/dist/remote-entry.mjs +98 -0
  187. package/dist/remote-entry.mjs.map +1 -0
  188. package/dist/runtime/errors.cjs +140 -34
  189. package/dist/runtime/errors.cjs.map +1 -1
  190. package/dist/runtime/errors.d.cts +42 -7
  191. package/dist/runtime/errors.d.cts.map +1 -1
  192. package/dist/runtime/errors.d.mts +42 -7
  193. package/dist/runtime/errors.d.mts.map +1 -1
  194. package/dist/runtime/errors.mjs +136 -31
  195. package/dist/runtime/errors.mjs.map +1 -1
  196. package/dist/runtime/index.cjs +95 -23
  197. package/dist/runtime/index.cjs.map +1 -1
  198. package/dist/runtime/index.d.cts +16 -0
  199. package/dist/runtime/index.d.cts.map +1 -1
  200. package/dist/runtime/index.d.mts +16 -0
  201. package/dist/runtime/index.d.mts.map +1 -1
  202. package/dist/runtime/index.mjs +98 -26
  203. package/dist/runtime/index.mjs.map +1 -1
  204. package/dist/runtime/mf-config.cjs +3 -78
  205. package/dist/runtime/mf-config.cjs.map +1 -1
  206. package/dist/runtime/mf-config.d.cts +3 -49
  207. package/dist/runtime/mf-config.d.cts.map +1 -1
  208. package/dist/runtime/mf-config.d.mts +3 -49
  209. package/dist/runtime/mf-config.d.mts.map +1 -1
  210. package/dist/runtime/mf-config.mjs +5 -78
  211. package/dist/runtime/mf-config.mjs.map +1 -1
  212. package/dist/runtime/services/module-federation.service.cjs +63 -12
  213. package/dist/runtime/services/module-federation.service.cjs.map +1 -1
  214. package/dist/runtime/services/module-federation.service.d.cts +4 -13
  215. package/dist/runtime/services/module-federation.service.d.mts +4 -13
  216. package/dist/runtime/services/module-federation.service.mjs +63 -14
  217. package/dist/runtime/services/module-federation.service.mjs.map +1 -1
  218. package/dist/runtime/services/normalize.cjs +2 -22
  219. package/dist/runtime/services/normalize.d.cts +2 -21
  220. package/dist/runtime/services/normalize.d.mts +2 -21
  221. package/dist/runtime/services/normalize.mjs +2 -21
  222. package/dist/runtime/services/plugin-lifecycle.service.cjs +9 -11
  223. package/dist/runtime/services/plugin-lifecycle.service.cjs.map +1 -1
  224. package/dist/runtime/services/plugin-lifecycle.service.d.cts +3 -16
  225. package/dist/runtime/services/plugin-lifecycle.service.d.mts +3 -16
  226. package/dist/runtime/services/plugin-lifecycle.service.mjs +10 -13
  227. package/dist/runtime/services/plugin-lifecycle.service.mjs.map +1 -1
  228. package/dist/runtime/services/plugin-loader.service.cjs +30 -29
  229. package/dist/runtime/services/plugin-loader.service.cjs.map +1 -1
  230. package/dist/runtime/services/plugin-loader.service.d.cts +6 -53
  231. package/dist/runtime/services/plugin-loader.service.d.mts +6 -53
  232. package/dist/runtime/services/plugin-loader.service.mjs +29 -30
  233. package/dist/runtime/services/plugin-loader.service.mjs.map +1 -1
  234. package/dist/runtime/services/plugin.service.cjs +10 -12
  235. package/dist/runtime/services/plugin.service.cjs.map +1 -1
  236. package/dist/runtime/services/plugin.service.d.cts +14 -36
  237. package/dist/runtime/services/plugin.service.d.cts.map +1 -1
  238. package/dist/runtime/services/plugin.service.d.mts +14 -36
  239. package/dist/runtime/services/plugin.service.d.mts.map +1 -1
  240. package/dist/runtime/services/plugin.service.mjs +14 -18
  241. package/dist/runtime/services/plugin.service.mjs.map +1 -1
  242. package/dist/runtime/services/secrets.service.cjs +12 -12
  243. package/dist/runtime/services/secrets.service.cjs.map +1 -1
  244. package/dist/runtime/services/secrets.service.d.cts +3 -15
  245. package/dist/runtime/services/secrets.service.d.mts +3 -15
  246. package/dist/runtime/services/secrets.service.mjs +12 -13
  247. package/dist/runtime/services/secrets.service.mjs.map +1 -1
  248. package/dist/runtime/services/shared-identity.cjs +40 -0
  249. package/dist/runtime/services/shared-identity.cjs.map +1 -0
  250. package/dist/runtime/services/shared-identity.mjs +38 -0
  251. package/dist/runtime/services/shared-identity.mjs.map +1 -0
  252. package/dist/runtime/validation.cjs +2 -2
  253. package/dist/runtime/validation.cjs.map +1 -1
  254. package/dist/runtime/validation.mjs +2 -2
  255. package/dist/runtime/validation.mjs.map +1 -1
  256. package/dist/shared-deps-spec.cjs +384 -0
  257. package/dist/shared-deps-spec.cjs.map +1 -0
  258. package/dist/shared-deps-spec.d.cts +182 -0
  259. package/dist/shared-deps-spec.d.cts.map +1 -0
  260. package/dist/shared-deps-spec.d.mts +182 -0
  261. package/dist/shared-deps-spec.d.mts.map +1 -0
  262. package/dist/shared-deps-spec.mjs +368 -0
  263. package/dist/shared-deps-spec.mjs.map +1 -0
  264. package/dist/types.d.cts +22 -41
  265. package/dist/types.d.cts.map +1 -1
  266. package/dist/types.d.mts +22 -41
  267. package/dist/types.d.mts.map +1 -1
  268. package/dist/ui/manifest/construct.cjs +268 -0
  269. package/dist/ui/manifest/construct.cjs.map +1 -0
  270. package/dist/ui/manifest/construct.d.cts +48 -0
  271. package/dist/ui/manifest/construct.d.cts.map +1 -0
  272. package/dist/ui/manifest/construct.d.mts +48 -0
  273. package/dist/ui/manifest/construct.d.mts.map +1 -0
  274. package/dist/ui/manifest/construct.mjs +268 -0
  275. package/dist/ui/manifest/construct.mjs.map +1 -0
  276. package/dist/ui/manifest/contract.cjs +34 -0
  277. package/dist/ui/manifest/contract.cjs.map +1 -0
  278. package/dist/ui/manifest/contract.d.cts +26 -0
  279. package/dist/ui/manifest/contract.d.cts.map +1 -0
  280. package/dist/ui/manifest/contract.d.mts +26 -0
  281. package/dist/ui/manifest/contract.d.mts.map +1 -0
  282. package/dist/ui/manifest/contract.mjs +26 -0
  283. package/dist/ui/manifest/contract.mjs.map +1 -0
  284. package/dist/ui/manifest/descriptor.cjs +64 -0
  285. package/dist/ui/manifest/descriptor.cjs.map +1 -0
  286. package/dist/ui/manifest/descriptor.d.cts +60 -0
  287. package/dist/ui/manifest/descriptor.d.cts.map +1 -0
  288. package/dist/ui/manifest/descriptor.d.mts +60 -0
  289. package/dist/ui/manifest/descriptor.d.mts.map +1 -0
  290. package/dist/ui/manifest/descriptor.mjs +61 -0
  291. package/dist/ui/manifest/descriptor.mjs.map +1 -0
  292. package/dist/ui/manifest/generator.cjs +128 -0
  293. package/dist/ui/manifest/generator.cjs.map +1 -0
  294. package/dist/ui/manifest/generator.d.cts +41 -0
  295. package/dist/ui/manifest/generator.d.cts.map +1 -0
  296. package/dist/ui/manifest/generator.d.mts +41 -0
  297. package/dist/ui/manifest/generator.d.mts.map +1 -0
  298. package/dist/ui/manifest/generator.mjs +125 -0
  299. package/dist/ui/manifest/generator.mjs.map +1 -0
  300. package/dist/ui/manifest/index.cjs +35 -0
  301. package/dist/ui/manifest/index.d.cts +9 -0
  302. package/dist/ui/manifest/index.d.mts +9 -0
  303. package/dist/ui/manifest/index.mjs +9 -0
  304. package/dist/ui/manifest/manifest-schema.cjs +97 -0
  305. package/dist/ui/manifest/manifest-schema.cjs.map +1 -0
  306. package/dist/ui/manifest/manifest-schema.d.cts +132 -0
  307. package/dist/ui/manifest/manifest-schema.d.cts.map +1 -0
  308. package/dist/ui/manifest/manifest-schema.d.mts +132 -0
  309. package/dist/ui/manifest/manifest-schema.d.mts.map +1 -0
  310. package/dist/ui/manifest/manifest-schema.mjs +90 -0
  311. package/dist/ui/manifest/manifest-schema.mjs.map +1 -0
  312. package/dist/ui/manifest/mount-registry.cjs +52 -0
  313. package/dist/ui/manifest/mount-registry.cjs.map +1 -0
  314. package/dist/ui/manifest/mount-registry.d.cts +61 -0
  315. package/dist/ui/manifest/mount-registry.d.cts.map +1 -0
  316. package/dist/ui/manifest/mount-registry.d.mts +61 -0
  317. package/dist/ui/manifest/mount-registry.d.mts.map +1 -0
  318. package/dist/ui/manifest/mount-registry.mjs +48 -0
  319. package/dist/ui/manifest/mount-registry.mjs.map +1 -0
  320. package/dist/ui/manifest/nav.cjs +13 -0
  321. package/dist/ui/manifest/nav.cjs.map +1 -0
  322. package/dist/ui/manifest/nav.d.cts +34 -0
  323. package/dist/ui/manifest/nav.d.cts.map +1 -0
  324. package/dist/ui/manifest/nav.d.mts +34 -0
  325. package/dist/ui/manifest/nav.d.mts.map +1 -0
  326. package/dist/ui/manifest/nav.mjs +13 -0
  327. package/dist/ui/manifest/nav.mjs.map +1 -0
  328. package/dist/ui/manifest/route-config.cjs +33 -0
  329. package/dist/ui/manifest/route-config.cjs.map +1 -0
  330. package/dist/ui/manifest/route-config.d.cts +40 -0
  331. package/dist/ui/manifest/route-config.d.cts.map +1 -0
  332. package/dist/ui/manifest/route-config.d.mts +40 -0
  333. package/dist/ui/manifest/route-config.d.mts.map +1 -0
  334. package/dist/ui/manifest/route-config.mjs +33 -0
  335. package/dist/ui/manifest/route-config.mjs.map +1 -0
  336. package/dist/version-manifest.cjs +65 -0
  337. package/dist/version-manifest.cjs.map +1 -0
  338. package/dist/version-manifest.d.cts +52 -0
  339. package/dist/version-manifest.d.cts.map +1 -0
  340. package/dist/version-manifest.d.mts +52 -0
  341. package/dist/version-manifest.d.mts.map +1 -0
  342. package/dist/version-manifest.mjs +63 -0
  343. package/dist/version-manifest.mjs.map +1 -0
  344. package/package.json +165 -68
  345. package/skills/plugin-client/SKILL.md +24 -5
  346. package/skills/plugin-development/SKILL.md +79 -47
  347. package/skills/plugin-testing/SKILL.md +41 -12
  348. package/src/build/artifact-names.ts +117 -0
  349. package/src/build/contract-types.ts +101 -0
  350. package/src/build/rspack/build-report-plugin.ts +34 -0
  351. package/src/build/rspack/chunk-completeness-plugin.ts +57 -0
  352. package/src/build/rspack/compose.ts +87 -0
  353. package/src/build/rspack/fix-mf-data-uri-plugin.ts +23 -12
  354. package/src/build/rspack/generated-config.ts +35 -0
  355. package/src/build/rspack/index.ts +10 -5
  356. package/src/build/rspack/module-federation.ts +1 -1
  357. package/src/build/rspack/plugin.ts +103 -105
  358. package/src/build/rspack/utils.ts +8 -2
  359. package/src/build/ui/factory.ts +96 -0
  360. package/src/build/ui/generated-config.ts +133 -0
  361. package/src/build/ui/hash-artifacts-plugin.ts +79 -0
  362. package/src/build/ui/index.ts +98 -0
  363. package/src/build/ui/manifest-plugin.ts +54 -0
  364. package/src/build/ui/rsbuild-config.ts +256 -0
  365. package/src/build/ui/stubs.ts +103 -0
  366. package/src/cli.ts +100 -0
  367. package/src/dev/serve.ts +477 -0
  368. package/src/dev/watch-kill.ts +58 -0
  369. package/src/effect-helpers.ts +25 -0
  370. package/src/errors.ts +16 -18
  371. package/src/identity.ts +36 -0
  372. package/src/index.ts +4 -0
  373. package/src/plugin.ts +70 -92
  374. package/src/remote-entry.ts +171 -0
  375. package/src/runtime/errors.ts +186 -27
  376. package/src/runtime/index.ts +132 -43
  377. package/src/runtime/mf-config.ts +12 -107
  378. package/src/runtime/services/module-federation.service.ts +221 -117
  379. package/src/runtime/services/normalize.ts +1 -18
  380. package/src/runtime/services/plugin-lifecycle.service.ts +66 -75
  381. package/src/runtime/services/plugin-loader.service.ts +239 -212
  382. package/src/runtime/services/plugin.service.ts +61 -43
  383. package/src/runtime/services/secrets.service.ts +20 -15
  384. package/src/runtime/services/shared-identity.ts +68 -0
  385. package/src/runtime/validation.ts +5 -7
  386. package/src/shared-deps-spec.ts +478 -0
  387. package/src/types.ts +22 -48
  388. package/src/ui/manifest/construct.ts +403 -0
  389. package/src/ui/manifest/contract.ts +33 -0
  390. package/src/ui/manifest/descriptor.ts +96 -0
  391. package/src/ui/manifest/generator.ts +238 -0
  392. package/src/ui/manifest/index.ts +55 -0
  393. package/src/ui/manifest/manifest-schema.ts +107 -0
  394. package/src/ui/manifest/mount-registry.ts +50 -0
  395. package/src/ui/manifest/nav.ts +43 -0
  396. package/src/ui/manifest/route-config.ts +82 -0
  397. package/src/version-manifest.ts +88 -0
  398. package/dist/build/rspack/dev-server-middleware.cjs +0 -194
  399. package/dist/build/rspack/dev-server-middleware.cjs.map +0 -1
  400. package/dist/build/rspack/dev-server-middleware.mjs +0 -193
  401. package/dist/build/rspack/dev-server-middleware.mjs.map +0 -1
  402. package/dist/build/shared-deps.cjs +0 -83
  403. package/dist/build/shared-deps.cjs.map +0 -1
  404. package/dist/build/shared-deps.d.cts +0 -67
  405. package/dist/build/shared-deps.d.cts.map +0 -1
  406. package/dist/build/shared-deps.d.mts +0 -67
  407. package/dist/build/shared-deps.d.mts.map +0 -1
  408. package/dist/build/shared-deps.mjs +0 -79
  409. package/dist/build/shared-deps.mjs.map +0 -1
  410. package/dist/effect.cjs +0 -9
  411. package/dist/effect.d.cts +0 -1
  412. package/dist/effect.d.mts +0 -1
  413. package/dist/effect.mjs +0 -3
  414. package/dist/orpc-openapi.cjs +0 -17
  415. package/dist/orpc-openapi.d.cts +0 -2
  416. package/dist/orpc-openapi.d.mts +0 -2
  417. package/dist/orpc-openapi.mjs +0 -5
  418. package/dist/orpc.cjs +0 -46
  419. package/dist/orpc.d.cts +0 -7
  420. package/dist/orpc.d.mts +0 -7
  421. package/dist/orpc.mjs +0 -11
  422. package/dist/package.cjs +0 -23
  423. package/dist/package.cjs.map +0 -1
  424. package/dist/package.mjs +0 -17
  425. package/dist/package.mjs.map +0 -1
  426. package/dist/runtime/services/module-federation.service.d.cts.map +0 -1
  427. package/dist/runtime/services/module-federation.service.d.mts.map +0 -1
  428. package/dist/runtime/services/normalize.cjs.map +0 -1
  429. package/dist/runtime/services/normalize.d.cts.map +0 -1
  430. package/dist/runtime/services/normalize.d.mts.map +0 -1
  431. package/dist/runtime/services/normalize.mjs.map +0 -1
  432. package/dist/runtime/services/plugin-lifecycle.service.d.cts.map +0 -1
  433. package/dist/runtime/services/plugin-lifecycle.service.d.mts.map +0 -1
  434. package/dist/runtime/services/plugin-loader.service.d.cts.map +0 -1
  435. package/dist/runtime/services/plugin-loader.service.d.mts.map +0 -1
  436. package/dist/runtime/services/secrets.service.d.cts.map +0 -1
  437. package/dist/runtime/services/secrets.service.d.mts.map +0 -1
  438. package/dist/testing/index.cjs +0 -57
  439. package/dist/testing/index.cjs.map +0 -1
  440. package/dist/testing/index.d.cts +0 -54
  441. package/dist/testing/index.d.cts.map +0 -1
  442. package/dist/testing/index.d.mts +0 -54
  443. package/dist/testing/index.d.mts.map +0 -1
  444. package/dist/testing/index.mjs +0 -55
  445. package/dist/testing/index.mjs.map +0 -1
  446. package/dist/zod-core.cjs +0 -9
  447. package/dist/zod-core.d.cts +0 -1
  448. package/dist/zod-core.d.mts +0 -1
  449. package/dist/zod-core.mjs +0 -3
  450. package/dist/zod.cjs +0 -11
  451. package/dist/zod.d.cts +0 -2
  452. package/dist/zod.d.mts +0 -2
  453. package/dist/zod.mjs +0 -3
  454. package/src/build/rspack/dev-server-middleware.ts +0 -250
  455. package/src/build/shared-deps.ts +0 -102
  456. package/src/effect.ts +0 -1
  457. package/src/orpc-openapi.ts +0 -2
  458. package/src/orpc.ts +0 -9
  459. package/src/testing/index.ts +0 -87
  460. package/src/testing/mocks/module-federation.service.ts +0 -41
  461. package/src/zod-core.ts +0 -1
  462. package/src/zod.ts +0 -3
@@ -1,67 +0,0 @@
1
- //#region src/build/shared-deps.d.ts
2
- interface SharedDependencyConfig {
3
- version: string;
4
- requiredVersion: string | false;
5
- singleton: boolean;
6
- strictVersion: boolean;
7
- eager: boolean;
8
- shareScope: string;
9
- }
10
- type SharedDependencies = Record<string, SharedDependencyConfig>;
11
- declare const pluginSharedDependencies: {
12
- "every-plugin": {
13
- requiredVersion: string | false;
14
- singleton: boolean;
15
- strictVersion: boolean;
16
- eager: boolean;
17
- shareScope: string;
18
- version: string;
19
- };
20
- effect: {
21
- requiredVersion: string | false;
22
- singleton: boolean;
23
- strictVersion: boolean;
24
- eager: boolean;
25
- shareScope: string;
26
- version: string;
27
- };
28
- zod: {
29
- requiredVersion: string | false;
30
- singleton: boolean;
31
- strictVersion: boolean;
32
- eager: boolean;
33
- shareScope: string;
34
- version: string;
35
- };
36
- "@orpc/contract": {
37
- requiredVersion: string | false;
38
- singleton: boolean;
39
- strictVersion: boolean;
40
- eager: boolean;
41
- shareScope: string;
42
- version: string;
43
- };
44
- "@orpc/client": {
45
- requiredVersion: string | false;
46
- singleton: boolean;
47
- strictVersion: boolean;
48
- eager: boolean;
49
- shareScope: string;
50
- version: string;
51
- };
52
- "@orpc/server": {
53
- requiredVersion: string | false;
54
- singleton: boolean;
55
- strictVersion: boolean;
56
- eager: boolean;
57
- shareScope: string;
58
- version: string;
59
- };
60
- };
61
- type PluginSharedDependencyName = keyof typeof pluginSharedDependencies;
62
- declare function getPluginSharedDependencies(): SharedDependencies;
63
- declare function getPluginSharedDependenciesVersionRange(): Record<string, string>;
64
- declare function getMajorMinorVersion(version: string): string;
65
- //#endregion
66
- export { PluginSharedDependencyName, SharedDependencies, SharedDependencyConfig, getMajorMinorVersion, getPluginSharedDependencies, getPluginSharedDependenciesVersionRange, pluginSharedDependencies };
67
- //# sourceMappingURL=shared-deps.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"shared-deps.d.mts","names":[],"sources":["../../src/build/shared-deps.ts"],"mappings":";UAgBiB;EACf;EACA;EACA;EACA;EACA;EACA;;KAGU,qBAAqB,eAAe;cAgCnC;;IAvCM;IACN;IACI;IACR;IACK;;;;IAJK;IACN;IACI;IACR;IACK;;;;IAJK;IACN;IACI;IACR;IACK;;;;IAJK;IACN;IACI;IACR;IACK;;;;IAJK;IACN;IACI;IACR;IACK;;;;IAJK;IACN;IACI;IACR;IACK;;;;KA2DF,0CAA0C;iBAEtC,+BAA+B;iBAI/B,2CAA2C;iBAS3C,qBAAqB"}
@@ -1,79 +0,0 @@
1
- import { createRequire } from "node:module";
2
- import { existsSync, readFileSync } from "node:fs";
3
- import { dirname, join } from "node:path";
4
- import { fileURLToPath } from "node:url";
5
-
6
- //#region src/build/shared-deps.ts
7
- const __dirname = dirname(fileURLToPath(import.meta.url));
8
- const require = createRequire(import.meta.url);
9
- let pkg;
10
- try {
11
- pkg = JSON.parse(readFileSync(join(__dirname, "../../package.json"), "utf-8"));
12
- } catch {
13
- pkg = require("every-plugin/package.json");
14
- }
15
- const DEFAULT_SHARE_CONFIG = {
16
- requiredVersion: false,
17
- singleton: true,
18
- strictVersion: false,
19
- eager: false,
20
- shareScope: "default"
21
- };
22
- function extractExactVersion(input) {
23
- const match = input.match(/\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?/);
24
- return match ? match[0] : input.replace(/^[\^~>=<\s]+/, "");
25
- }
26
- function getInstalledPackageVersion(packageName, fallbackVersion) {
27
- try {
28
- let currentDir = dirname(require.resolve(packageName));
29
- for (let i = 0; i < 5; i += 1) {
30
- const packageJsonPath = join(currentDir, "package.json");
31
- if (existsSync(packageJsonPath)) return JSON.parse(readFileSync(packageJsonPath, "utf-8")).version;
32
- currentDir = dirname(currentDir);
33
- }
34
- throw new Error(`Could not resolve installed version for ${packageName}`);
35
- } catch {
36
- return extractExactVersion(fallbackVersion);
37
- }
38
- }
39
- const pluginSharedDependencies = {
40
- "every-plugin": {
41
- version: pkg.version,
42
- ...DEFAULT_SHARE_CONFIG
43
- },
44
- effect: {
45
- version: getInstalledPackageVersion("effect", pkg.peerDependencies.effect),
46
- ...DEFAULT_SHARE_CONFIG
47
- },
48
- zod: {
49
- version: getInstalledPackageVersion("zod", pkg.peerDependencies.zod),
50
- ...DEFAULT_SHARE_CONFIG
51
- },
52
- "@orpc/contract": {
53
- version: getInstalledPackageVersion("@orpc/contract", pkg.peerDependencies["@orpc/contract"]),
54
- ...DEFAULT_SHARE_CONFIG
55
- },
56
- "@orpc/client": {
57
- version: getInstalledPackageVersion("@orpc/client", pkg.peerDependencies["@orpc/client"]),
58
- ...DEFAULT_SHARE_CONFIG
59
- },
60
- "@orpc/server": {
61
- version: getInstalledPackageVersion("@orpc/server", pkg.peerDependencies["@orpc/server"]),
62
- ...DEFAULT_SHARE_CONFIG
63
- }
64
- };
65
- function getPluginSharedDependencies() {
66
- return pluginSharedDependencies;
67
- }
68
- function getPluginSharedDependenciesVersionRange() {
69
- return Object.fromEntries(Object.entries(getPluginSharedDependencies()).map(([name, config]) => [name, getMajorMinorVersion(config.version)]));
70
- }
71
- function getMajorMinorVersion(version) {
72
- const match = version.replace(/^[\^~>=<]+/, "").match(/^(\d+)\.(\d+)/);
73
- if (!match) return "^0.0.0";
74
- return `^${match[1]}.${match[2]}.0`;
75
- }
76
-
77
- //#endregion
78
- export { getMajorMinorVersion, getPluginSharedDependencies, getPluginSharedDependenciesVersionRange, pluginSharedDependencies };
79
- //# sourceMappingURL=shared-deps.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"shared-deps.mjs","names":[],"sources":["../../src/build/shared-deps.ts"],"sourcesContent":["import { existsSync, readFileSync } from \"node:fs\";\nimport { createRequire } from \"node:module\";\nimport { dirname, join } from \"node:path\";\nimport { fileURLToPath } from \"node:url\";\n\nconst __dirname = dirname(fileURLToPath(import.meta.url));\nconst require = createRequire(import.meta.url);\n\nlet pkg: typeof import(\"../../package.json\");\n\ntry {\n pkg = JSON.parse(readFileSync(join(__dirname, \"../../package.json\"), \"utf-8\"));\n} catch {\n pkg = require(\"every-plugin/package.json\");\n}\n\nexport interface SharedDependencyConfig {\n version: string;\n requiredVersion: string | false;\n singleton: boolean;\n strictVersion: boolean;\n eager: boolean;\n shareScope: string;\n}\n\nexport type SharedDependencies = Record<string, SharedDependencyConfig>;\n\nconst DEFAULT_SHARE_CONFIG: Omit<SharedDependencyConfig, \"version\"> = {\n requiredVersion: false,\n singleton: true,\n strictVersion: false,\n eager: false,\n shareScope: \"default\",\n};\n\nfunction extractExactVersion(input: string): string {\n const match = input.match(/\\d+\\.\\d+\\.\\d+(?:-[0-9A-Za-z.-]+)?/);\n return match ? match[0] : input.replace(/^[\\^~>=<\\s]+/, \"\");\n}\n\nfunction getInstalledPackageVersion(packageName: string, fallbackVersion: string): string {\n try {\n let currentDir = dirname(require.resolve(packageName));\n for (let i = 0; i < 5; i += 1) {\n const packageJsonPath = join(currentDir, \"package.json\");\n if (existsSync(packageJsonPath)) {\n return (JSON.parse(readFileSync(packageJsonPath, \"utf-8\")) as { version: string }).version;\n }\n currentDir = dirname(currentDir);\n }\n\n throw new Error(`Could not resolve installed version for ${packageName}`);\n } catch {\n return extractExactVersion(fallbackVersion);\n }\n}\n\nexport const pluginSharedDependencies = {\n \"every-plugin\": { version: pkg.version, ...DEFAULT_SHARE_CONFIG },\n effect: {\n version: getInstalledPackageVersion(\"effect\", pkg.peerDependencies.effect),\n ...DEFAULT_SHARE_CONFIG,\n },\n zod: {\n version: getInstalledPackageVersion(\"zod\", pkg.peerDependencies.zod),\n ...DEFAULT_SHARE_CONFIG,\n },\n \"@orpc/contract\": {\n version: getInstalledPackageVersion(\"@orpc/contract\", pkg.peerDependencies[\"@orpc/contract\"]),\n ...DEFAULT_SHARE_CONFIG,\n },\n \"@orpc/client\": {\n version: getInstalledPackageVersion(\"@orpc/client\", pkg.peerDependencies[\"@orpc/client\"]),\n ...DEFAULT_SHARE_CONFIG,\n },\n \"@orpc/server\": {\n version: getInstalledPackageVersion(\"@orpc/server\", pkg.peerDependencies[\"@orpc/server\"]),\n ...DEFAULT_SHARE_CONFIG,\n },\n} satisfies SharedDependencies;\n\nexport type PluginSharedDependencyName = keyof typeof pluginSharedDependencies;\n\nexport function getPluginSharedDependencies(): SharedDependencies {\n return pluginSharedDependencies;\n}\n\nexport function getPluginSharedDependenciesVersionRange(): Record<string, string> {\n return Object.fromEntries(\n Object.entries(getPluginSharedDependencies()).map(([name, config]) => [\n name,\n getMajorMinorVersion(config.version),\n ]),\n );\n}\n\nexport function getMajorMinorVersion(version: string): string {\n const clean = version.replace(/^[\\^~>=<]+/, \"\");\n const match = clean.match(/^(\\d+)\\.(\\d+)/);\n if (!match) return \"^0.0.0\";\n return `^${match[1]}.${match[2]}.0`;\n}\n"],"mappings":";;;;;;AAKA,MAAM,YAAY,QAAQ,cAAc,OAAO,KAAK,GAAG,CAAC;AACxD,MAAM,UAAU,cAAc,OAAO,KAAK,GAAG;AAE7C,IAAI;AAEJ,IAAI;CACF,MAAM,KAAK,MAAM,aAAa,KAAK,WAAW,oBAAoB,GAAG,OAAO,CAAC;AAC/E,QAAQ;CACN,MAAM,QAAQ,2BAA2B;AAC3C;AAaA,MAAM,uBAAgE;CACpE,iBAAiB;CACjB,WAAW;CACX,eAAe;CACf,OAAO;CACP,YAAY;AACd;AAEA,SAAS,oBAAoB,OAAuB;CAClD,MAAM,QAAQ,MAAM,MAAM,mCAAmC;CAC7D,OAAO,QAAQ,MAAM,KAAK,MAAM,QAAQ,gBAAgB,EAAE;AAC5D;AAEA,SAAS,2BAA2B,aAAqB,iBAAiC;CACxF,IAAI;EACF,IAAI,aAAa,QAAQ,QAAQ,QAAQ,WAAW,CAAC;EACrD,KAAK,IAAI,IAAI,GAAG,IAAI,GAAG,KAAK,GAAG;GAC7B,MAAM,kBAAkB,KAAK,YAAY,cAAc;GACvD,IAAI,WAAW,eAAe,GAC5B,OAAQ,KAAK,MAAM,aAAa,iBAAiB,OAAO,CAAC,CAAC,CAAyB;GAErF,aAAa,QAAQ,UAAU;EACjC;EAEA,MAAM,IAAI,MAAM,2CAA2C,aAAa;CAC1E,QAAQ;EACN,OAAO,oBAAoB,eAAe;CAC5C;AACF;AAEA,MAAa,2BAA2B;CACtC,gBAAgB;EAAE,SAAS,IAAI;EAAS,GAAG;CAAqB;CAChE,QAAQ;EACN,SAAS,2BAA2B,UAAU,IAAI,iBAAiB,MAAM;EACzE,GAAG;CACL;CACA,KAAK;EACH,SAAS,2BAA2B,OAAO,IAAI,iBAAiB,GAAG;EACnE,GAAG;CACL;CACA,kBAAkB;EAChB,SAAS,2BAA2B,kBAAkB,IAAI,iBAAiB,iBAAiB;EAC5F,GAAG;CACL;CACA,gBAAgB;EACd,SAAS,2BAA2B,gBAAgB,IAAI,iBAAiB,eAAe;EACxF,GAAG;CACL;CACA,gBAAgB;EACd,SAAS,2BAA2B,gBAAgB,IAAI,iBAAiB,eAAe;EACxF,GAAG;CACL;AACF;AAIA,SAAgB,8BAAkD;CAChE,OAAO;AACT;AAEA,SAAgB,0CAAkE;CAChF,OAAO,OAAO,YACZ,OAAO,QAAQ,4BAA4B,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,YAAY,CACpE,MACA,qBAAqB,OAAO,OAAO,CACrC,CAAC,CACH;AACF;AAEA,SAAgB,qBAAqB,SAAyB;CAE5D,MAAM,QADQ,QAAQ,QAAQ,cAAc,EAC1B,CAAC,CAAC,MAAM,eAAe;CACzC,IAAI,CAAC,OAAO,OAAO;CACnB,OAAO,IAAI,MAAM,GAAG,GAAG,MAAM,GAAG;AAClC"}
package/dist/effect.cjs DELETED
@@ -1,9 +0,0 @@
1
-
2
-
3
- var effect = require("effect");
4
- Object.keys(effect).forEach(function (k) {
5
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
6
- enumerable: true,
7
- get: function () { return effect[k]; }
8
- });
9
- });
package/dist/effect.d.cts DELETED
@@ -1 +0,0 @@
1
- export * from "effect";
package/dist/effect.d.mts DELETED
@@ -1 +0,0 @@
1
- export * from "effect";
package/dist/effect.mjs DELETED
@@ -1,3 +0,0 @@
1
- export * from "effect"
2
-
3
- export { };
@@ -1,17 +0,0 @@
1
-
2
-
3
- var _orpc_openapi = require("@orpc/openapi");
4
- Object.keys(_orpc_openapi).forEach(function (k) {
5
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
6
- enumerable: true,
7
- get: function () { return _orpc_openapi[k]; }
8
- });
9
- });
10
-
11
- var _orpc_zod = require("@orpc/zod");
12
- Object.keys(_orpc_zod).forEach(function (k) {
13
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
14
- enumerable: true,
15
- get: function () { return _orpc_zod[k]; }
16
- });
17
- });
@@ -1,2 +0,0 @@
1
- export * from "@orpc/openapi";
2
- export * from "@orpc/zod";
@@ -1,2 +0,0 @@
1
- export * from "@orpc/openapi";
2
- export * from "@orpc/zod";
@@ -1,5 +0,0 @@
1
- export * from "@orpc/openapi"
2
-
3
- export * from "@orpc/zod"
4
-
5
- export { };
package/dist/orpc.cjs DELETED
@@ -1,46 +0,0 @@
1
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- let _orpc_experimental_publisher_ioredis = require("@orpc/experimental-publisher/ioredis");
3
- let _orpc_experimental_publisher_memory = require("@orpc/experimental-publisher/memory");
4
- let _orpc_experimental_publisher_upstash_redis = require("@orpc/experimental-publisher/upstash-redis");
5
-
6
- Object.defineProperty(exports, 'IORedisPublisher', {
7
- enumerable: true,
8
- get: function () {
9
- return _orpc_experimental_publisher_ioredis.IORedisPublisher;
10
- }
11
- });
12
- Object.defineProperty(exports, 'MemoryPublisher', {
13
- enumerable: true,
14
- get: function () {
15
- return _orpc_experimental_publisher_memory.MemoryPublisher;
16
- }
17
- });
18
- Object.defineProperty(exports, 'UpstashRedisPublisher', {
19
- enumerable: true,
20
- get: function () {
21
- return _orpc_experimental_publisher_upstash_redis.UpstashRedisPublisher;
22
- }
23
- });
24
- var _orpc_contract = require("@orpc/contract");
25
- Object.keys(_orpc_contract).forEach(function (k) {
26
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
27
- enumerable: true,
28
- get: function () { return _orpc_contract[k]; }
29
- });
30
- });
31
-
32
- var _orpc_experimental_publisher = require("@orpc/experimental-publisher");
33
- Object.keys(_orpc_experimental_publisher).forEach(function (k) {
34
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
35
- enumerable: true,
36
- get: function () { return _orpc_experimental_publisher[k]; }
37
- });
38
- });
39
-
40
- var _orpc_server = require("@orpc/server");
41
- Object.keys(_orpc_server).forEach(function (k) {
42
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
43
- enumerable: true,
44
- get: function () { return _orpc_server[k]; }
45
- });
46
- });
package/dist/orpc.d.cts DELETED
@@ -1,7 +0,0 @@
1
- import { IORedisPublisher, IORedisPublisherOptions } from "@orpc/experimental-publisher/ioredis";
2
- import { MemoryPublisher, MemoryPublisherOptions } from "@orpc/experimental-publisher/memory";
3
- import { UpstashRedisPublisher, UpstashRedisPublisherOptions } from "@orpc/experimental-publisher/upstash-redis";
4
- export * from "@orpc/contract";
5
- export * from "@orpc/server";
6
- export * from "@orpc/experimental-publisher";
7
- export { IORedisPublisher, type IORedisPublisherOptions, MemoryPublisher, type MemoryPublisherOptions, UpstashRedisPublisher, type UpstashRedisPublisherOptions };
package/dist/orpc.d.mts DELETED
@@ -1,7 +0,0 @@
1
- import { IORedisPublisher, IORedisPublisherOptions } from "@orpc/experimental-publisher/ioredis";
2
- import { MemoryPublisher, MemoryPublisherOptions } from "@orpc/experimental-publisher/memory";
3
- import { UpstashRedisPublisher, UpstashRedisPublisherOptions } from "@orpc/experimental-publisher/upstash-redis";
4
- export * from "@orpc/contract";
5
- export * from "@orpc/server";
6
- export * from "@orpc/experimental-publisher";
7
- export { IORedisPublisher, type IORedisPublisherOptions, MemoryPublisher, type MemoryPublisherOptions, UpstashRedisPublisher, type UpstashRedisPublisherOptions };
package/dist/orpc.mjs DELETED
@@ -1,11 +0,0 @@
1
- import { IORedisPublisher } from "@orpc/experimental-publisher/ioredis";
2
- import { MemoryPublisher } from "@orpc/experimental-publisher/memory";
3
- import { UpstashRedisPublisher } from "@orpc/experimental-publisher/upstash-redis";
4
-
5
- export * from "@orpc/contract"
6
-
7
- export * from "@orpc/server"
8
-
9
- export * from "@orpc/experimental-publisher"
10
-
11
- export { IORedisPublisher, MemoryPublisher, UpstashRedisPublisher };
package/dist/package.cjs DELETED
@@ -1,23 +0,0 @@
1
-
2
- //#region package.json
3
- var peerDependencies = {
4
- "@rspack/core": "catalog:",
5
- "typescript": "^5.9.3",
6
- "effect": "catalog:",
7
- "zod": "catalog:",
8
- "@orpc/contract": "catalog:",
9
- "@orpc/server": "catalog:",
10
- "@orpc/client": "catalog:",
11
- "@orpc/openapi": "catalog:",
12
- "@orpc/zod": "catalog:",
13
- "@orpc/tanstack-query": "catalog:"
14
- };
15
-
16
- //#endregion
17
- Object.defineProperty(exports, 'peerDependencies', {
18
- enumerable: true,
19
- get: function () {
20
- return peerDependencies;
21
- }
22
- });
23
- //# sourceMappingURL=package.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"package.cjs","names":[],"sources":["../package.json"],"sourcesContent":[""],"mappings":""}
package/dist/package.mjs DELETED
@@ -1,17 +0,0 @@
1
- //#region package.json
2
- var peerDependencies = {
3
- "@rspack/core": "catalog:",
4
- "typescript": "^5.9.3",
5
- "effect": "catalog:",
6
- "zod": "catalog:",
7
- "@orpc/contract": "catalog:",
8
- "@orpc/server": "catalog:",
9
- "@orpc/client": "catalog:",
10
- "@orpc/openapi": "catalog:",
11
- "@orpc/zod": "catalog:",
12
- "@orpc/tanstack-query": "catalog:"
13
- };
14
-
15
- //#endregion
16
- export { peerDependencies };
17
- //# sourceMappingURL=package.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"package.mjs","names":[],"sources":["../package.json"],"sourcesContent":[""],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"module-federation.service.d.cts","names":[],"sources":["../../../src/runtime/services/module-federation.service.ts"],"mappings":";;;;;IAsFmC,iBAAA,kBAAM,gBAAa,OAAA,aAAA;IA+BZ,wBAAA,kBAAM,gBAAa,OAAA,YAAA;;;cAtChD,gCAAgC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"module-federation.service.d.mts","names":[],"sources":["../../../src/runtime/services/module-federation.service.ts"],"mappings":";;;;;IAsFmC,iBAAA,kBAAM,gBAAa,OAAA,aAAA;IA+BZ,wBAAA,kBAAM,gBAAa,OAAA,YAAA;;;cAtChD,gCAAgC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"normalize.cjs","names":[],"sources":["../../../src/runtime/services/normalize.ts"],"sourcesContent":["/**\n * Normalizes a package name into the module federation remote name.\n * This function must produce identical results in both runtime and build contexts.\n *\n * Normalization rules:\n * - Convert to lowercase\n * - Strip a single leading '@' symbol\n * - Replace '/' with '_'\n * - Preserve hyphens and other characters\n *\n * Examples:\n * - \"@scope/my-plugin\" → \"scope_my-plugin\"\n * - \"@SCOPE/Foo/Bar\" → \"scope_foo_bar\"\n * - \"foo/bar\" → \"foo_bar\"\n * - \"simple-plugin\" → \"simple-plugin\"\n */\nexport const getNormalizedRemoteName = (name: string): string =>\n name.toLowerCase().replace(/^@/, \"\").replace(/\\//g, \"_\");\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAgBA,MAAa,2BAA2B,SACtC,KAAK,YAAY,CAAC,CAAC,QAAQ,MAAM,EAAE,CAAC,CAAC,QAAQ,OAAO,GAAG"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"normalize.d.cts","names":[],"sources":["../../../src/runtime/services/normalize.ts"],"mappings":";;;;;;;;;;;;;;;;;cAgBa,0BAA2B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"normalize.d.mts","names":[],"sources":["../../../src/runtime/services/normalize.ts"],"mappings":";;;;;;;;;;;;;;;;;cAgBa,0BAA2B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"normalize.mjs","names":[],"sources":["../../../src/runtime/services/normalize.ts"],"sourcesContent":["/**\n * Normalizes a package name into the module federation remote name.\n * This function must produce identical results in both runtime and build contexts.\n *\n * Normalization rules:\n * - Convert to lowercase\n * - Strip a single leading '@' symbol\n * - Replace '/' with '_'\n * - Preserve hyphens and other characters\n *\n * Examples:\n * - \"@scope/my-plugin\" → \"scope_my-plugin\"\n * - \"@SCOPE/Foo/Bar\" → \"scope_foo_bar\"\n * - \"foo/bar\" → \"foo_bar\"\n * - \"simple-plugin\" → \"simple-plugin\"\n */\nexport const getNormalizedRemoteName = (name: string): string =>\n name.toLowerCase().replace(/^@/, \"\").replace(/\\//g, \"_\");\n"],"mappings":";;;;;;;;;;;;;;;;;AAgBA,MAAa,2BAA2B,SACtC,KAAK,YAAY,CAAC,CAAC,QAAQ,MAAM,EAAE,CAAC,CAAC,QAAQ,OAAO,GAAG"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugin-lifecycle.service.d.cts","names":[],"sources":["../../../src/runtime/services/plugin-lifecycle.service.ts"],"mappings":";;;;;;IAWmB,WAAA,UAAU,WAAS,QAAU,kBAAkB,OAAE,OAAA;IAKvC,aAAA,QAAA,kBAAkB,eAAU,OAAA;IAO9B,WAAA,QAAA,kBAAkB,eAAU,OAAA,aAA5B;;;;cAnBd,+BAA+B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugin-lifecycle.service.d.mts","names":[],"sources":["../../../src/runtime/services/plugin-lifecycle.service.ts"],"mappings":";;;;;;IAWmB,WAAA,UAAU,WAAS,QAAU,kBAAkB,OAAE,OAAA;IAKvC,aAAA,QAAA,kBAAkB,eAAU,OAAA;IAO9B,WAAA,QAAA,kBAAkB,eAAU,OAAA,aAA5B;;;;cAnBd,+BAA+B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugin-loader.service.d.cts","names":[],"sources":["../../../src/runtime/services/plugin-loader.service.ts"],"mappings":";;;;;;;;cAkBa,0BAA0B;;cAK1B,qBAAqB;;;IAWZ,MAAA,qBAAM,OAAA;;MAsBT,UAAA;;;MAUF,UAAA;;IAIW,YAAA,qBAAM,OAAA,OAAA;;;cA1CrB,wBAAwB;;;IA2DN,aAAA,qBAAM,OAAA;;;;IAuDT,oBAAA,UAAU,WAAS,kBAAkB,cAAgB,aAAa,OAAE,OAAA;;;;IAmBrE,mBAAA,UAAU,WAAS,gBACpB,eAAe,IAAE;MAE/B,WAAW,iBAAiB;MAC5B,SAAS,iBAAiB;OAC3B,UACS,4BAAuB,OAAA;;;;;;;;;;;;cA5F9B,4BAA4B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugin-loader.service.d.mts","names":[],"sources":["../../../src/runtime/services/plugin-loader.service.ts"],"mappings":";;;;;;;;cAkBa,0BAA0B;;cAK1B,qBAAqB;;;IAWZ,MAAA,qBAAM,OAAA;;MAsBT,UAAA;;;MAUF,UAAA;;IAIW,YAAA,qBAAM,OAAA,OAAA;;;cA1CrB,wBAAwB;;;IA2DN,aAAA,qBAAM,OAAA;;;;IAuDT,oBAAA,UAAU,WAAS,kBAAkB,cAAgB,aAAa,OAAE,OAAA;;;;IAmBrE,mBAAA,UAAU,WAAS,gBACpB,eAAe,IAAE;MAE/B,WAAW,iBAAiB;MAC5B,SAAS,iBAAiB;OAC3B,UACS,4BAAuB,OAAA;;;;;;;;;;;;cA5F9B,4BAA4B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"secrets.service.d.cts","names":[],"sources":["../../../src/runtime/services/secrets.service.ts"],"mappings":";;;;;cAWa,yBAAyB;;;IA6Cf,iBAAA,GAAC,QAAU,MAAC,OAAA,OAAA,GAAA;;;cAxCtB,uBAAuB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"secrets.service.d.mts","names":[],"sources":["../../../src/runtime/services/secrets.service.ts"],"mappings":";;;;;cAWa,yBAAyB;;;IA6Cf,iBAAA,GAAC,QAAU,MAAC,OAAA,OAAA,GAAA;;;cAxCtB,uBAAuB"}
@@ -1,57 +0,0 @@
1
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_runtime_index = require('../runtime/index.cjs');
3
-
4
- //#region src/testing/index.ts
5
- /**
6
- * Converts old pluginMap format to new registry format
7
- */
8
- function convertPluginMapToRegistry(oldRegistry, pluginMap) {
9
- const registry = {};
10
- for (const [pluginId, ctor] of Object.entries(pluginMap)) {
11
- const oldEntry = oldRegistry[pluginId];
12
- registry[pluginId] = {
13
- module: ctor,
14
- remote: oldEntry?.remoteUrl,
15
- version: oldEntry?.version,
16
- description: oldEntry?.description
17
- };
18
- }
19
- return registry;
20
- }
21
- /**
22
- * Creates a plugin runtime for locally available plugins (non-remote).
23
- * Automatically infers type bindings from the plugin map, eliminating
24
- * the need for manual RegistryBindings definitions.
25
- *
26
- * @deprecated Use `createPluginRuntime` with module entries directly instead.
27
- * @example
28
- * ```ts
29
- * // Old API (deprecated)
30
- * const runtime = createLocalPluginRuntime(
31
- * { registry: { "my-plugin": { remoteUrl: "..." } }, secrets },
32
- * { "my-plugin": MyPlugin }
33
- * );
34
- *
35
- * // New API (recommended)
36
- * const runtime = createPluginRuntime({
37
- * registry: { "my-plugin": { module: MyPlugin } },
38
- * secrets
39
- * });
40
- * ```
41
- */
42
- function createLocalPluginRuntime(config, pluginMap) {
43
- return require_runtime_index.createPluginRuntime({
44
- registry: convertPluginMapToRegistry(config.registry, pluginMap),
45
- secrets: config.secrets,
46
- options: config.options
47
- });
48
- }
49
- /**
50
- * @deprecated Use `createLocalPluginRuntime` or `createPluginRuntime` instead.
51
- */
52
- const createTestPluginRuntime = createLocalPluginRuntime;
53
-
54
- //#endregion
55
- exports.createLocalPluginRuntime = createLocalPluginRuntime;
56
- exports.createTestPluginRuntime = createTestPluginRuntime;
57
- //# sourceMappingURL=index.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.cjs","names":["createPluginRuntime"],"sources":["../../src/testing/index.ts"],"sourcesContent":["import type { LoadedPluginWithBinding } from \"../plugin\";\nimport { createPluginRuntime } from \"../runtime\";\nimport type { AnyPluginConstructor, PluginRegistryEntry, PluginRuntimeConfig } from \"../types\";\n\nexport type PluginMap = Record<string, LoadedPluginWithBinding<any, any, any, any>>;\n\n/**\n * Simplified type inference for local plugin maps.\n * Just use the constructor types directly.\n *\n * @example\n * ```ts\n * const pluginMap = { \"my-plugin\": MyPlugin } as const;\n * type MyBindings = InferBindingsFromMap<typeof pluginMap>;\n * ```\n */\nexport type InferBindingsFromMap<T extends PluginMap> = {\n [K in keyof T]: T[K];\n};\n\n/**\n * Converts old pluginMap format to new registry format\n */\nfunction convertPluginMapToRegistry<T extends PluginMap>(\n oldRegistry: Record<string, { remoteUrl: string; version?: string; description?: string }>,\n pluginMap: T,\n): Record<keyof T, PluginRegistryEntry> {\n const registry: Record<string, PluginRegistryEntry> = {};\n\n for (const [pluginId, ctor] of Object.entries(pluginMap)) {\n const oldEntry = oldRegistry[pluginId];\n registry[pluginId] = {\n module: ctor as AnyPluginConstructor,\n remote: oldEntry?.remoteUrl,\n version: oldEntry?.version,\n description: oldEntry?.description,\n };\n }\n\n return registry as Record<keyof T, PluginRegistryEntry>;\n}\n\n/**\n * Creates a plugin runtime for locally available plugins (non-remote).\n * Automatically infers type bindings from the plugin map, eliminating\n * the need for manual RegistryBindings definitions.\n *\n * @deprecated Use `createPluginRuntime` with module entries directly instead.\n * @example\n * ```ts\n * // Old API (deprecated)\n * const runtime = createLocalPluginRuntime(\n * { registry: { \"my-plugin\": { remoteUrl: \"...\" } }, secrets },\n * { \"my-plugin\": MyPlugin }\n * );\n *\n * // New API (recommended)\n * const runtime = createPluginRuntime({\n * registry: { \"my-plugin\": { module: MyPlugin } },\n * secrets\n * });\n * ```\n */\nexport function createLocalPluginRuntime<TMap extends PluginMap>(\n config: {\n registry: Record<string, { remoteUrl: string; version?: string; description?: string }>;\n secrets?: Record<string, string>;\n options?: any;\n },\n pluginMap: TMap,\n) {\n const newRegistry = convertPluginMapToRegistry(config.registry, pluginMap);\n\n return createPluginRuntime({\n registry: newRegistry,\n secrets: config.secrets,\n options: config.options,\n });\n}\n\n/**\n * @deprecated Use `createLocalPluginRuntime` or `createPluginRuntime` instead.\n */\nexport const createTestPluginRuntime = createLocalPluginRuntime;\n\nexport type { EveryPlugin, PluginRegistry, RegisteredPlugins } from \"../types\";\nexport type { PluginRuntimeConfig };\n"],"mappings":";;;;;;;AAuBA,SAAS,2BACP,aACA,WACsC;CACtC,MAAM,WAAgD,CAAC;CAEvD,KAAK,MAAM,CAAC,UAAU,SAAS,OAAO,QAAQ,SAAS,GAAG;EACxD,MAAM,WAAW,YAAY;EAC7B,SAAS,YAAY;GACnB,QAAQ;GACR,QAAQ,UAAU;GAClB,SAAS,UAAU;GACnB,aAAa,UAAU;EACzB;CACF;CAEA,OAAO;AACT;;;;;;;;;;;;;;;;;;;;;;AAuBA,SAAgB,yBACd,QAKA,WACA;CAGA,OAAOA,0CAAoB;EACzB,UAHkB,2BAA2B,OAAO,UAAU,SAG1C;EACpB,SAAS,OAAO;EAChB,SAAS,OAAO;CAClB,CAAC;AACH;;;;AAKA,MAAa,0BAA0B"}
@@ -1,54 +0,0 @@
1
- import { LoadedPluginWithBinding } from "../plugin.cjs";
2
- import { EveryPlugin, InferRegistryFromEntries, PluginRegistry, PluginRegistryEntry, PluginRuntimeConfig, RegisteredPlugins } from "../types.cjs";
3
- import { PluginRuntime } from "../runtime/index.cjs";
4
- import "../index.cjs";
5
- //#region src/testing/index.d.ts
6
- type PluginMap = Record<string, LoadedPluginWithBinding<any, any, any, any>>;
7
- /**
8
- * Simplified type inference for local plugin maps.
9
- * Just use the constructor types directly.
10
- *
11
- * @example
12
- * ```ts
13
- * const pluginMap = { "my-plugin": MyPlugin } as const;
14
- * type MyBindings = InferBindingsFromMap<typeof pluginMap>;
15
- * ```
16
- */
17
- type InferBindingsFromMap<T extends PluginMap> = { [K in keyof T]: T[K]; };
18
- /**
19
- * Creates a plugin runtime for locally available plugins (non-remote).
20
- * Automatically infers type bindings from the plugin map, eliminating
21
- * the need for manual RegistryBindings definitions.
22
- *
23
- * @deprecated Use `createPluginRuntime` with module entries directly instead.
24
- * @example
25
- * ```ts
26
- * // Old API (deprecated)
27
- * const runtime = createLocalPluginRuntime(
28
- * { registry: { "my-plugin": { remoteUrl: "..." } }, secrets },
29
- * { "my-plugin": MyPlugin }
30
- * );
31
- *
32
- * // New API (recommended)
33
- * const runtime = createPluginRuntime({
34
- * registry: { "my-plugin": { module: MyPlugin } },
35
- * secrets
36
- * });
37
- * ```
38
- */
39
- declare function createLocalPluginRuntime<TMap extends PluginMap>(config: {
40
- registry: Record<string, {
41
- remoteUrl: string;
42
- version?: string;
43
- description?: string;
44
- }>;
45
- secrets?: Record<string, string>;
46
- options?: any;
47
- }, pluginMap: TMap): PluginRuntime<InferRegistryFromEntries<Record<keyof TMap, PluginRegistryEntry>>>;
48
- /**
49
- * @deprecated Use `createLocalPluginRuntime` or `createPluginRuntime` instead.
50
- */
51
- declare const createTestPluginRuntime: typeof createLocalPluginRuntime;
52
- //#endregion
53
- export { type EveryPlugin, InferBindingsFromMap, PluginMap, type PluginRegistry, type PluginRuntimeConfig, type RegisteredPlugins, createLocalPluginRuntime, createTestPluginRuntime };
54
- //# sourceMappingURL=index.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.cts","names":[],"sources":["../../src/testing/index.ts"],"mappings":";;;;;KAIY,YAAY,eAAe;;;;;;;;;;;KAY3B,qBAAqB,UAAU,gBACxC,WAAW,IAAI,EAAE;;;;;;;;;;;;;;;;;;;;;;iBA8CJ,yBAAyB,aAAa,WACpD;EACE,UAAU;IAAiB;IAAmB;IAAkB;;EAChE,UAAU;EACV;GAEF,WAAW,OAAI,cAAA,yBAAA,aAAA,MAAA;;;;cAcJ,gCAAuB"}
@@ -1,54 +0,0 @@
1
- import { LoadedPluginWithBinding } from "../plugin.mjs";
2
- import { EveryPlugin, InferRegistryFromEntries, PluginRegistry, PluginRegistryEntry, PluginRuntimeConfig, RegisteredPlugins } from "../types.mjs";
3
- import { PluginRuntime } from "../runtime/index.mjs";
4
- import "../index.mjs";
5
- //#region src/testing/index.d.ts
6
- type PluginMap = Record<string, LoadedPluginWithBinding<any, any, any, any>>;
7
- /**
8
- * Simplified type inference for local plugin maps.
9
- * Just use the constructor types directly.
10
- *
11
- * @example
12
- * ```ts
13
- * const pluginMap = { "my-plugin": MyPlugin } as const;
14
- * type MyBindings = InferBindingsFromMap<typeof pluginMap>;
15
- * ```
16
- */
17
- type InferBindingsFromMap<T extends PluginMap> = { [K in keyof T]: T[K]; };
18
- /**
19
- * Creates a plugin runtime for locally available plugins (non-remote).
20
- * Automatically infers type bindings from the plugin map, eliminating
21
- * the need for manual RegistryBindings definitions.
22
- *
23
- * @deprecated Use `createPluginRuntime` with module entries directly instead.
24
- * @example
25
- * ```ts
26
- * // Old API (deprecated)
27
- * const runtime = createLocalPluginRuntime(
28
- * { registry: { "my-plugin": { remoteUrl: "..." } }, secrets },
29
- * { "my-plugin": MyPlugin }
30
- * );
31
- *
32
- * // New API (recommended)
33
- * const runtime = createPluginRuntime({
34
- * registry: { "my-plugin": { module: MyPlugin } },
35
- * secrets
36
- * });
37
- * ```
38
- */
39
- declare function createLocalPluginRuntime<TMap extends PluginMap>(config: {
40
- registry: Record<string, {
41
- remoteUrl: string;
42
- version?: string;
43
- description?: string;
44
- }>;
45
- secrets?: Record<string, string>;
46
- options?: any;
47
- }, pluginMap: TMap): PluginRuntime<InferRegistryFromEntries<Record<keyof TMap, PluginRegistryEntry>>>;
48
- /**
49
- * @deprecated Use `createLocalPluginRuntime` or `createPluginRuntime` instead.
50
- */
51
- declare const createTestPluginRuntime: typeof createLocalPluginRuntime;
52
- //#endregion
53
- export { type EveryPlugin, InferBindingsFromMap, PluginMap, type PluginRegistry, type PluginRuntimeConfig, type RegisteredPlugins, createLocalPluginRuntime, createTestPluginRuntime };
54
- //# sourceMappingURL=index.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../../src/testing/index.ts"],"mappings":";;;;;KAIY,YAAY,eAAe;;;;;;;;;;;KAY3B,qBAAqB,UAAU,gBACxC,WAAW,IAAI,EAAE;;;;;;;;;;;;;;;;;;;;;;iBA8CJ,yBAAyB,aAAa,WACpD;EACE,UAAU;IAAiB;IAAmB;IAAkB;;EAChE,UAAU;EACV;GAEF,WAAW,OAAI,cAAA,yBAAA,aAAA,MAAA;;;;cAcJ,gCAAuB"}
@@ -1,55 +0,0 @@
1
- import { createPluginRuntime } from "../runtime/index.mjs";
2
-
3
- //#region src/testing/index.ts
4
- /**
5
- * Converts old pluginMap format to new registry format
6
- */
7
- function convertPluginMapToRegistry(oldRegistry, pluginMap) {
8
- const registry = {};
9
- for (const [pluginId, ctor] of Object.entries(pluginMap)) {
10
- const oldEntry = oldRegistry[pluginId];
11
- registry[pluginId] = {
12
- module: ctor,
13
- remote: oldEntry?.remoteUrl,
14
- version: oldEntry?.version,
15
- description: oldEntry?.description
16
- };
17
- }
18
- return registry;
19
- }
20
- /**
21
- * Creates a plugin runtime for locally available plugins (non-remote).
22
- * Automatically infers type bindings from the plugin map, eliminating
23
- * the need for manual RegistryBindings definitions.
24
- *
25
- * @deprecated Use `createPluginRuntime` with module entries directly instead.
26
- * @example
27
- * ```ts
28
- * // Old API (deprecated)
29
- * const runtime = createLocalPluginRuntime(
30
- * { registry: { "my-plugin": { remoteUrl: "..." } }, secrets },
31
- * { "my-plugin": MyPlugin }
32
- * );
33
- *
34
- * // New API (recommended)
35
- * const runtime = createPluginRuntime({
36
- * registry: { "my-plugin": { module: MyPlugin } },
37
- * secrets
38
- * });
39
- * ```
40
- */
41
- function createLocalPluginRuntime(config, pluginMap) {
42
- return createPluginRuntime({
43
- registry: convertPluginMapToRegistry(config.registry, pluginMap),
44
- secrets: config.secrets,
45
- options: config.options
46
- });
47
- }
48
- /**
49
- * @deprecated Use `createLocalPluginRuntime` or `createPluginRuntime` instead.
50
- */
51
- const createTestPluginRuntime = createLocalPluginRuntime;
52
-
53
- //#endregion
54
- export { createLocalPluginRuntime, createTestPluginRuntime };
55
- //# sourceMappingURL=index.mjs.map