@powerlines/core 0.48.32 → 0.48.33

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 (445) hide show
  1. package/dist/{chunk-C_NdSu1c.cjs → _virtual/_rolldown/runtime.cjs} +1 -6
  2. package/dist/constants/api.d.cts +6 -2
  3. package/dist/constants/api.d.cts.map +1 -0
  4. package/dist/constants/api.d.mts +6 -2
  5. package/dist/constants/api.d.mts.map +1 -0
  6. package/dist/constants/commands.d.cts +5 -2
  7. package/dist/constants/commands.d.cts.map +1 -0
  8. package/dist/constants/commands.d.mts +5 -2
  9. package/dist/constants/commands.d.mts.map +1 -0
  10. package/dist/constants/devtools.d.cts +13 -2
  11. package/dist/constants/devtools.d.cts.map +1 -0
  12. package/dist/constants/devtools.d.mts +13 -2
  13. package/dist/constants/devtools.d.mts.map +1 -0
  14. package/dist/constants/environments.d.cts +10 -2
  15. package/dist/constants/environments.d.cts.map +1 -0
  16. package/dist/constants/environments.d.mts +10 -2
  17. package/dist/constants/environments.d.mts.map +1 -0
  18. package/dist/constants/extensions.d.cts +5 -2
  19. package/dist/constants/extensions.d.cts.map +1 -0
  20. package/dist/constants/extensions.d.mts +5 -2
  21. package/dist/constants/extensions.d.mts.map +1 -0
  22. package/dist/constants/fs.d.cts +7 -2
  23. package/dist/constants/fs.d.cts.map +1 -0
  24. package/dist/constants/fs.d.mts +7 -2
  25. package/dist/constants/fs.d.mts.map +1 -0
  26. package/dist/constants/hooks.d.cts +5 -2
  27. package/dist/constants/hooks.d.cts.map +1 -0
  28. package/dist/constants/hooks.d.mts +5 -2
  29. package/dist/constants/hooks.d.mts.map +1 -0
  30. package/dist/constants/index.d.cts +10 -10
  31. package/dist/constants/index.d.mts +10 -10
  32. package/dist/constants/log-level.d.cts +67 -2
  33. package/dist/constants/log-level.d.cts.map +1 -0
  34. package/dist/constants/log-level.d.mts +67 -2
  35. package/dist/constants/log-level.d.mts.map +1 -0
  36. package/dist/constants/meta.d.cts +6 -2
  37. package/dist/constants/meta.d.cts.map +1 -0
  38. package/dist/constants/meta.d.mts +6 -2
  39. package/dist/constants/meta.d.mts.map +1 -0
  40. package/dist/constants/plugin.d.cts +9 -2
  41. package/dist/constants/plugin.d.cts.map +1 -0
  42. package/dist/constants/plugin.d.mts +9 -2
  43. package/dist/constants/plugin.d.mts.map +1 -0
  44. package/dist/context/base-context.cjs +2 -2
  45. package/dist/context/base-context.d.cts +81 -2
  46. package/dist/context/base-context.d.cts.map +1 -0
  47. package/dist/context/base-context.d.mts +81 -2
  48. package/dist/context/base-context.d.mts.map +1 -0
  49. package/dist/context/context.cjs +2 -2
  50. package/dist/context/context.d.cts +373 -2
  51. package/dist/context/context.d.cts.map +1 -0
  52. package/dist/context/context.d.mts +373 -2
  53. package/dist/context/context.d.mts.map +1 -0
  54. package/dist/context/environment-context.d.cts +5 -2
  55. package/dist/context/environment-context.d.cts.map +1 -1
  56. package/dist/context/environment-context.d.mts +5 -2
  57. package/dist/context/environment-context.d.mts.map +1 -1
  58. package/dist/context/execution-context.cjs +2 -2
  59. package/dist/context/execution-context.d.cts +6 -2
  60. package/dist/context/execution-context.d.cts.map +1 -1
  61. package/dist/context/execution-context.d.mts +6 -2
  62. package/dist/context/execution-context.d.mts.map +1 -1
  63. package/dist/context/index.d.cts +2 -2
  64. package/dist/context/index.d.mts +2 -2
  65. package/dist/context/plugin-context.d.cts +3 -1
  66. package/dist/context/plugin-context.d.cts.map +1 -1
  67. package/dist/context/plugin-context.d.mts +3 -1
  68. package/dist/context/plugin-context.d.mts.map +1 -1
  69. package/dist/index.cjs +1 -1
  70. package/dist/index.d.cts +32 -24
  71. package/dist/index.d.mts +32 -24
  72. package/dist/index.mjs +1 -1
  73. package/dist/lib/config.cjs +2 -2
  74. package/dist/lib/config.d.cts +140 -2
  75. package/dist/lib/config.d.cts.map +1 -0
  76. package/dist/lib/config.d.mts +140 -2
  77. package/dist/lib/config.d.mts.map +1 -0
  78. package/dist/lib/context-helpers.d.cts +16 -2
  79. package/dist/lib/context-helpers.d.cts.map +1 -0
  80. package/dist/lib/context-helpers.d.mts +16 -2
  81. package/dist/lib/context-helpers.d.mts.map +1 -0
  82. package/dist/lib/entry.d.cts +47 -2
  83. package/dist/lib/entry.d.cts.map +1 -0
  84. package/dist/lib/entry.d.mts +47 -2
  85. package/dist/lib/entry.d.mts.map +1 -0
  86. package/dist/lib/environment.cjs +2 -2
  87. package/dist/lib/environment.d.cts +2 -1
  88. package/dist/lib/environment.d.cts.map +1 -1
  89. package/dist/lib/environment.d.mts +2 -1
  90. package/dist/lib/environment.d.mts.map +1 -1
  91. package/dist/lib/events.d.cts +10 -2
  92. package/dist/lib/events.d.cts.map +1 -0
  93. package/dist/lib/events.d.mts +10 -2
  94. package/dist/lib/events.d.mts.map +1 -0
  95. package/dist/lib/generate-types.d.cts +66 -2
  96. package/dist/lib/generate-types.d.cts.map +1 -0
  97. package/dist/lib/generate-types.d.mts +66 -2
  98. package/dist/lib/generate-types.d.mts.map +1 -0
  99. package/dist/lib/hooks.cjs +2 -2
  100. package/dist/lib/hooks.d.cts +28 -2
  101. package/dist/lib/hooks.d.cts.map +1 -0
  102. package/dist/lib/hooks.d.mts +28 -2
  103. package/dist/lib/hooks.d.mts.map +1 -0
  104. package/dist/lib/index.cjs +1 -1
  105. package/dist/lib/index.d.cts +23 -23
  106. package/dist/lib/index.d.mts +23 -23
  107. package/dist/lib/index.mjs +1 -1
  108. package/dist/lib/install-dependencies.d.cts +12 -2
  109. package/dist/lib/install-dependencies.d.cts.map +1 -0
  110. package/dist/lib/install-dependencies.d.mts +12 -2
  111. package/dist/lib/install-dependencies.d.mts.map +1 -0
  112. package/dist/lib/meta.d.cts +33 -2
  113. package/dist/lib/meta.d.cts.map +1 -0
  114. package/dist/lib/meta.d.mts +33 -2
  115. package/dist/lib/meta.d.mts.map +1 -0
  116. package/dist/lib/plugins.cjs +2 -2
  117. package/dist/lib/plugins.d.cts +39 -2
  118. package/dist/lib/plugins.d.cts.map +1 -0
  119. package/dist/lib/plugins.d.mts +39 -2
  120. package/dist/lib/plugins.d.mts.map +1 -0
  121. package/dist/lib/resolver.cjs +2 -2
  122. package/dist/lib/resolver.d.cts +20 -2
  123. package/dist/lib/resolver.d.cts.map +1 -0
  124. package/dist/lib/resolver.d.mts +20 -2
  125. package/dist/lib/resolver.d.mts.map +1 -0
  126. package/dist/lib/schemas.cjs +1 -1
  127. package/dist/lib/schemas.d.cts +1 -1
  128. package/dist/lib/schemas.d.mts +1 -1
  129. package/dist/lib/schemas.mjs +1 -1
  130. package/dist/lib/streaming-channel.d.cts +126 -2
  131. package/dist/lib/streaming-channel.d.cts.map +1 -0
  132. package/dist/lib/streaming-channel.d.mts +126 -2
  133. package/dist/lib/streaming-channel.d.mts.map +1 -0
  134. package/dist/lib/typescript/index.d.cts +2 -2
  135. package/dist/lib/typescript/index.d.mts +2 -2
  136. package/dist/lib/typescript/ts-morph.cjs +2 -2
  137. package/dist/lib/typescript/ts-morph.d.cts +38 -2
  138. package/dist/lib/typescript/ts-morph.d.cts.map +1 -0
  139. package/dist/lib/typescript/ts-morph.d.mts +38 -2
  140. package/dist/lib/typescript/ts-morph.d.mts.map +1 -0
  141. package/dist/lib/typescript/tsconfig.cjs +4 -4
  142. package/dist/lib/typescript/tsconfig.d.cts +77 -2
  143. package/dist/lib/typescript/tsconfig.d.cts.map +1 -0
  144. package/dist/lib/typescript/tsconfig.d.mts +77 -2
  145. package/dist/lib/typescript/tsconfig.d.mts.map +1 -0
  146. package/dist/lib/unplugin/helpers.d.cts +23 -2
  147. package/dist/lib/unplugin/helpers.d.cts.map +1 -0
  148. package/dist/lib/unplugin/helpers.d.mts +23 -2
  149. package/dist/lib/unplugin/helpers.d.mts.map +1 -0
  150. package/dist/lib/unplugin/index.d.cts +3 -3
  151. package/dist/lib/unplugin/index.d.mts +3 -3
  152. package/dist/lib/unplugin/module-resolution.cjs +2 -2
  153. package/dist/lib/unplugin/module-resolution.d.cts +41 -2
  154. package/dist/lib/unplugin/module-resolution.d.cts.map +1 -0
  155. package/dist/lib/unplugin/module-resolution.d.mts +41 -2
  156. package/dist/lib/unplugin/module-resolution.d.mts.map +1 -0
  157. package/dist/lib/unplugin/plugin.d.cts +40 -2
  158. package/dist/lib/unplugin/plugin.d.cts.map +1 -0
  159. package/dist/lib/unplugin/plugin.d.mts +40 -2
  160. package/dist/lib/unplugin/plugin.d.mts.map +1 -0
  161. package/dist/lib/utilities/file-header.d.cts +41 -2
  162. package/dist/lib/utilities/file-header.d.cts.map +1 -0
  163. package/dist/lib/utilities/file-header.d.mts +41 -2
  164. package/dist/lib/utilities/file-header.d.mts.map +1 -0
  165. package/dist/lib/utilities/format.cjs +2 -2
  166. package/dist/lib/utilities/format.d.cts +24 -2
  167. package/dist/lib/utilities/format.d.cts.map +1 -0
  168. package/dist/lib/utilities/format.d.mts +24 -2
  169. package/dist/lib/utilities/format.d.mts.map +1 -0
  170. package/dist/lib/utilities/index.d.cts +5 -5
  171. package/dist/lib/utilities/index.d.mts +5 -5
  172. package/dist/lib/utilities/source-file.cjs +2 -2
  173. package/dist/lib/utilities/source-file.d.cts +30 -2
  174. package/dist/lib/utilities/source-file.d.cts.map +1 -0
  175. package/dist/lib/utilities/source-file.d.mts +30 -2
  176. package/dist/lib/utilities/source-file.d.mts.map +1 -0
  177. package/dist/lib/utilities/source-map.cjs +2 -2
  178. package/dist/lib/utilities/source-map.d.cts +16 -2
  179. package/dist/lib/utilities/source-map.d.cts.map +1 -0
  180. package/dist/lib/utilities/source-map.d.mts +16 -2
  181. package/dist/lib/utilities/source-map.d.mts.map +1 -0
  182. package/dist/lib/utilities/write-file.d.cts +15 -2
  183. package/dist/lib/utilities/write-file.d.cts.map +1 -0
  184. package/dist/lib/utilities/write-file.d.mts +15 -2
  185. package/dist/lib/utilities/write-file.d.mts.map +1 -0
  186. package/dist/lib/vfs.cjs +3 -3
  187. package/dist/lib/vfs.d.cts +321 -2
  188. package/dist/lib/vfs.d.cts.map +1 -0
  189. package/dist/lib/vfs.d.mts +321 -2
  190. package/dist/lib/vfs.d.mts.map +1 -0
  191. package/dist/lib/vfs.mjs +1 -1
  192. package/dist/plugin-base.d.cts +3 -1
  193. package/dist/plugin-base.d.cts.map +1 -1
  194. package/dist/plugin-base.d.mts +3 -1
  195. package/dist/plugin-base.d.mts.map +1 -1
  196. package/dist/plugin-utils/build-helpers.d.cts +2 -1
  197. package/dist/plugin-utils/build-helpers.d.cts.map +1 -1
  198. package/dist/plugin-utils/build-helpers.d.mts +2 -1
  199. package/dist/plugin-utils/build-helpers.d.mts.map +1 -1
  200. package/dist/plugin-utils/combine-plugins.d.cts +1 -1
  201. package/dist/plugin-utils/combine-plugins.d.mts +1 -1
  202. package/dist/plugin-utils/context-helpers.d.cts +1 -1
  203. package/dist/plugin-utils/context-helpers.d.mts +1 -1
  204. package/dist/plugin-utils/enable-plugin.d.cts +2 -1
  205. package/dist/plugin-utils/enable-plugin.d.cts.map +1 -1
  206. package/dist/plugin-utils/enable-plugin.d.mts +2 -1
  207. package/dist/plugin-utils/enable-plugin.d.mts.map +1 -1
  208. package/dist/plugin-utils/extend.d.cts +3 -1
  209. package/dist/plugin-utils/extend.d.cts.map +1 -1
  210. package/dist/plugin-utils/extend.d.mts +3 -1
  211. package/dist/plugin-utils/extend.d.mts.map +1 -1
  212. package/dist/plugin-utils/filter.cjs +2 -2
  213. package/dist/plugin-utils/filter.d.cts +1 -1
  214. package/dist/plugin-utils/filter.d.mts +1 -1
  215. package/dist/plugin-utils/format-package-json.d.cts +1 -1
  216. package/dist/plugin-utils/format-package-json.d.mts +1 -1
  217. package/dist/plugin-utils/get-config-path.d.cts +1 -1
  218. package/dist/plugin-utils/get-config-path.d.mts +1 -1
  219. package/dist/plugin-utils/helpers.d.cts +5 -1
  220. package/dist/plugin-utils/helpers.d.cts.map +1 -1
  221. package/dist/plugin-utils/helpers.d.mts +5 -1
  222. package/dist/plugin-utils/helpers.d.mts.map +1 -1
  223. package/dist/plugin-utils/install.d.cts +1 -1
  224. package/dist/plugin-utils/install.d.mts +1 -1
  225. package/dist/plugin-utils/logging.cjs +2 -2
  226. package/dist/plugin-utils/logging.d.cts +3 -1
  227. package/dist/plugin-utils/logging.d.cts.map +1 -1
  228. package/dist/plugin-utils/logging.d.mts +3 -1
  229. package/dist/plugin-utils/logging.d.mts.map +1 -1
  230. package/dist/plugin-utils/merge.cjs +2 -2
  231. package/dist/plugin-utils/merge.d.cts +3 -1
  232. package/dist/plugin-utils/merge.d.cts.map +1 -1
  233. package/dist/plugin-utils/merge.d.mts +3 -1
  234. package/dist/plugin-utils/merge.d.mts.map +1 -1
  235. package/dist/plugin-utils/modules.d.cts +1 -1
  236. package/dist/plugin-utils/modules.d.mts +1 -1
  237. package/dist/plugin-utils/paths.d.cts +1 -1
  238. package/dist/plugin-utils/paths.d.mts +1 -1
  239. package/dist/{fs-C2lru696.cjs → schemas/fs.cjs} +8 -38
  240. package/dist/{schemas-Zvqwdrw_.d.mts → schemas/fs.d.cts} +2 -2
  241. package/dist/schemas/fs.d.cts.map +1 -0
  242. package/dist/{schemas-Zvqwdrw_.d.cts → schemas/fs.d.mts} +2 -2
  243. package/dist/schemas/fs.d.mts.map +1 -0
  244. package/dist/{fs-DqLn15uU.mjs → schemas/fs.mjs} +2 -2
  245. package/dist/schemas/fs.mjs.map +1 -0
  246. package/dist/storage/base.d.cts +2 -1
  247. package/dist/storage/base.d.cts.map +1 -1
  248. package/dist/storage/base.d.mts +2 -1
  249. package/dist/storage/base.d.mts.map +1 -1
  250. package/dist/storage/file-system.d.cts +1 -1
  251. package/dist/storage/file-system.d.mts +1 -1
  252. package/dist/storage/virtual.d.cts +1 -1
  253. package/dist/storage/virtual.d.mts +1 -1
  254. package/dist/types/api.d.cts +16 -0
  255. package/dist/types/api.d.cts.map +1 -0
  256. package/dist/types/api.d.mts +16 -0
  257. package/dist/types/api.d.mts.map +1 -0
  258. package/dist/types/config.d.cts +739 -0
  259. package/dist/types/config.d.cts.map +1 -0
  260. package/dist/types/config.d.mts +739 -0
  261. package/dist/types/config.d.mts.map +1 -0
  262. package/dist/types/context.d.cts +682 -0
  263. package/dist/types/context.d.cts.map +1 -0
  264. package/dist/types/context.d.mts +682 -0
  265. package/dist/types/context.d.mts.map +1 -0
  266. package/dist/types/fs.d.cts +538 -0
  267. package/dist/types/fs.d.cts.map +1 -0
  268. package/dist/types/fs.d.mts +538 -0
  269. package/dist/types/fs.d.mts.map +1 -0
  270. package/dist/types/hooks.d.cts +96 -0
  271. package/dist/types/hooks.d.cts.map +1 -0
  272. package/dist/types/hooks.d.mts +96 -0
  273. package/dist/types/hooks.d.mts.map +1 -0
  274. package/dist/types/index.d.cts +9 -0
  275. package/dist/types/index.d.mts +9 -0
  276. package/dist/types/logging.d.cts +145 -0
  277. package/dist/types/logging.d.cts.map +1 -0
  278. package/dist/types/logging.d.mts +145 -0
  279. package/dist/types/logging.d.mts.map +1 -0
  280. package/dist/types/plugin.d.cts +207 -0
  281. package/dist/types/plugin.d.cts.map +1 -0
  282. package/dist/types/plugin.d.mts +207 -0
  283. package/dist/types/plugin.d.mts.map +1 -0
  284. package/dist/types/tsconfig.d.cts +73 -0
  285. package/dist/types/tsconfig.d.cts.map +1 -0
  286. package/dist/types/tsconfig.d.mts +73 -0
  287. package/dist/types/tsconfig.d.mts.map +1 -0
  288. package/dist/types/unplugin.d.cts +22 -0
  289. package/dist/types/unplugin.d.cts.map +1 -0
  290. package/dist/types/unplugin.d.mts +22 -0
  291. package/dist/types/unplugin.d.mts.map +1 -0
  292. package/package.json +7 -7
  293. package/dist/api-DTCbbtSH.d.cts +0 -6
  294. package/dist/api-DTCbbtSH.d.cts.map +0 -1
  295. package/dist/api-DTCbbtSH.d.mts +0 -6
  296. package/dist/api-DTCbbtSH.d.mts.map +0 -1
  297. package/dist/base-context-BmxgDD3S.d.mts +0 -79
  298. package/dist/base-context-BmxgDD3S.d.mts.map +0 -1
  299. package/dist/base-context-mHoSEqHf.d.cts +0 -79
  300. package/dist/base-context-mHoSEqHf.d.cts.map +0 -1
  301. package/dist/commands-DzGd8pnR.d.cts +0 -5
  302. package/dist/commands-DzGd8pnR.d.cts.map +0 -1
  303. package/dist/commands-DzGd8pnR.d.mts +0 -5
  304. package/dist/commands-DzGd8pnR.d.mts.map +0 -1
  305. package/dist/config-BnV_o0Es.d.cts +0 -2461
  306. package/dist/config-BnV_o0Es.d.cts.map +0 -1
  307. package/dist/config-DKeDSykZ.d.cts +0 -138
  308. package/dist/config-DKeDSykZ.d.cts.map +0 -1
  309. package/dist/config-DbOP5nVu.d.mts +0 -138
  310. package/dist/config-DbOP5nVu.d.mts.map +0 -1
  311. package/dist/config-DboKmDhl.d.mts +0 -2461
  312. package/dist/config-DboKmDhl.d.mts.map +0 -1
  313. package/dist/context-C6oL3mPw.d.mts +0 -368
  314. package/dist/context-C6oL3mPw.d.mts.map +0 -1
  315. package/dist/context-DcY6YqBQ.d.cts +0 -368
  316. package/dist/context-DcY6YqBQ.d.cts.map +0 -1
  317. package/dist/context-helpers-BRt-Eq-v.d.mts +0 -15
  318. package/dist/context-helpers-BRt-Eq-v.d.mts.map +0 -1
  319. package/dist/context-helpers-Cnsku6fQ.d.cts +0 -15
  320. package/dist/context-helpers-Cnsku6fQ.d.cts.map +0 -1
  321. package/dist/devtools-h0du-bSj.d.cts +0 -13
  322. package/dist/devtools-h0du-bSj.d.cts.map +0 -1
  323. package/dist/devtools-h0du-bSj.d.mts +0 -13
  324. package/dist/devtools-h0du-bSj.d.mts.map +0 -1
  325. package/dist/entry-BC_V2K2U.d.cts +0 -46
  326. package/dist/entry-BC_V2K2U.d.cts.map +0 -1
  327. package/dist/entry-CHIaWcmk.d.mts +0 -46
  328. package/dist/entry-CHIaWcmk.d.mts.map +0 -1
  329. package/dist/environments-BYv_kHRG.d.cts +0 -10
  330. package/dist/environments-BYv_kHRG.d.cts.map +0 -1
  331. package/dist/environments-BYv_kHRG.d.mts +0 -10
  332. package/dist/environments-BYv_kHRG.d.mts.map +0 -1
  333. package/dist/events-NA1XM2Vz.d.cts +0 -10
  334. package/dist/events-NA1XM2Vz.d.cts.map +0 -1
  335. package/dist/events-NA1XM2Vz.d.mts +0 -10
  336. package/dist/events-NA1XM2Vz.d.mts.map +0 -1
  337. package/dist/extensions-ctxXzgay.d.cts +0 -5
  338. package/dist/extensions-ctxXzgay.d.cts.map +0 -1
  339. package/dist/extensions-ctxXzgay.d.mts +0 -5
  340. package/dist/extensions-ctxXzgay.d.mts.map +0 -1
  341. package/dist/file-header-Co9oo7aI.d.cts +0 -41
  342. package/dist/file-header-Co9oo7aI.d.cts.map +0 -1
  343. package/dist/file-header-rHqeXgRV.d.mts +0 -41
  344. package/dist/file-header-rHqeXgRV.d.mts.map +0 -1
  345. package/dist/format-Cf-cgZ-s.d.cts +0 -24
  346. package/dist/format-Cf-cgZ-s.d.cts.map +0 -1
  347. package/dist/format-IQPqgWIe.d.mts +0 -24
  348. package/dist/format-IQPqgWIe.d.mts.map +0 -1
  349. package/dist/fs-BzXT5ZPj.d.cts +0 -7
  350. package/dist/fs-BzXT5ZPj.d.cts.map +0 -1
  351. package/dist/fs-BzXT5ZPj.d.mts +0 -7
  352. package/dist/fs-BzXT5ZPj.d.mts.map +0 -1
  353. package/dist/fs-DqLn15uU.mjs.map +0 -1
  354. package/dist/generate-types-CDkVosrS.d.cts +0 -65
  355. package/dist/generate-types-CDkVosrS.d.cts.map +0 -1
  356. package/dist/generate-types-Dw6p3cB_.d.mts +0 -65
  357. package/dist/generate-types-Dw6p3cB_.d.mts.map +0 -1
  358. package/dist/helpers-CrRRFQl5.d.mts +0 -22
  359. package/dist/helpers-CrRRFQl5.d.mts.map +0 -1
  360. package/dist/helpers-DBLIQW3U.d.cts +0 -22
  361. package/dist/helpers-DBLIQW3U.d.cts.map +0 -1
  362. package/dist/hooks-Dhc3ahex.d.cts +0 -5
  363. package/dist/hooks-Dhc3ahex.d.cts.map +0 -1
  364. package/dist/hooks-Dhc3ahex.d.mts +0 -5
  365. package/dist/hooks-Dhc3ahex.d.mts.map +0 -1
  366. package/dist/index-BKZ67WMa.d.cts +0 -1
  367. package/dist/index-BKZ67WMa.d.mts +0 -1
  368. package/dist/index-BVVgDSdq.d.cts +0 -1
  369. package/dist/index-BVVgDSdq.d.mts +0 -1
  370. package/dist/index-Den-MsLx.d.cts +0 -1
  371. package/dist/index-Den-MsLx.d.mts +0 -1
  372. package/dist/index-DmtQKWjk.d.cts +0 -1
  373. package/dist/index-DmtQKWjk.d.mts +0 -1
  374. package/dist/index-LtpXjuJR.d.mts +0 -25
  375. package/dist/index-LtpXjuJR.d.mts.map +0 -1
  376. package/dist/index-_6s0AX1B.d.cts +0 -1
  377. package/dist/index-_6s0AX1B.d.mts +0 -1
  378. package/dist/index-xk4vSgtB.d.cts +0 -25
  379. package/dist/index-xk4vSgtB.d.cts.map +0 -1
  380. package/dist/install-dependencies-CCjZfS9Y.d.mts +0 -12
  381. package/dist/install-dependencies-CCjZfS9Y.d.mts.map +0 -1
  382. package/dist/install-dependencies-CyeYsrfz.d.cts +0 -12
  383. package/dist/install-dependencies-CyeYsrfz.d.cts.map +0 -1
  384. package/dist/log-level-BC8g4BBL.d.cts +0 -67
  385. package/dist/log-level-BC8g4BBL.d.cts.map +0 -1
  386. package/dist/log-level-BC8g4BBL.d.mts +0 -67
  387. package/dist/log-level-BC8g4BBL.d.mts.map +0 -1
  388. package/dist/meta-CdDd2ykC.d.cts +0 -33
  389. package/dist/meta-CdDd2ykC.d.cts.map +0 -1
  390. package/dist/meta-CfTCHU_o.d.mts +0 -33
  391. package/dist/meta-CfTCHU_o.d.mts.map +0 -1
  392. package/dist/meta-QA_SN1j3.d.cts +0 -6
  393. package/dist/meta-QA_SN1j3.d.cts.map +0 -1
  394. package/dist/meta-QA_SN1j3.d.mts +0 -6
  395. package/dist/meta-QA_SN1j3.d.mts.map +0 -1
  396. package/dist/module-resolution-CRMNPsdn.d.mts +0 -40
  397. package/dist/module-resolution-CRMNPsdn.d.mts.map +0 -1
  398. package/dist/module-resolution-D-w-EZaK.d.cts +0 -40
  399. package/dist/module-resolution-D-w-EZaK.d.cts.map +0 -1
  400. package/dist/plugin-B_b7XqaN.d.mts +0 -39
  401. package/dist/plugin-B_b7XqaN.d.mts.map +0 -1
  402. package/dist/plugin-CzV-aFwU.d.cts +0 -39
  403. package/dist/plugin-CzV-aFwU.d.cts.map +0 -1
  404. package/dist/plugin-fhBG7SSQ.d.cts +0 -9
  405. package/dist/plugin-fhBG7SSQ.d.cts.map +0 -1
  406. package/dist/plugin-fhBG7SSQ.d.mts +0 -9
  407. package/dist/plugin-fhBG7SSQ.d.mts.map +0 -1
  408. package/dist/plugins-DfL1fBZi.d.cts +0 -37
  409. package/dist/plugins-DfL1fBZi.d.cts.map +0 -1
  410. package/dist/plugins-zG2X2LA8.d.mts +0 -37
  411. package/dist/plugins-zG2X2LA8.d.mts.map +0 -1
  412. package/dist/resolver-CdBAh8dA.d.mts +0 -19
  413. package/dist/resolver-CdBAh8dA.d.mts.map +0 -1
  414. package/dist/resolver-CfCl--Eh.d.cts +0 -19
  415. package/dist/resolver-CfCl--Eh.d.cts.map +0 -1
  416. package/dist/schemas-Zvqwdrw_.d.cts.map +0 -1
  417. package/dist/schemas-Zvqwdrw_.d.mts.map +0 -1
  418. package/dist/source-file-CLw13fKE.d.mts +0 -30
  419. package/dist/source-file-CLw13fKE.d.mts.map +0 -1
  420. package/dist/source-file-CuuHaBL5.d.cts +0 -30
  421. package/dist/source-file-CuuHaBL5.d.cts.map +0 -1
  422. package/dist/source-map-Cy0aqSpe.d.mts +0 -16
  423. package/dist/source-map-Cy0aqSpe.d.mts.map +0 -1
  424. package/dist/source-map-HU4IoICc.d.cts +0 -16
  425. package/dist/source-map-HU4IoICc.d.cts.map +0 -1
  426. package/dist/streaming-channel-CiyFd_6l.d.cts +0 -126
  427. package/dist/streaming-channel-CiyFd_6l.d.cts.map +0 -1
  428. package/dist/streaming-channel-CiyFd_6l.d.mts +0 -126
  429. package/dist/streaming-channel-CiyFd_6l.d.mts.map +0 -1
  430. package/dist/ts-morph-BGgjbOgM.d.cts +0 -38
  431. package/dist/ts-morph-BGgjbOgM.d.cts.map +0 -1
  432. package/dist/ts-morph-zLvdifpA.d.mts +0 -38
  433. package/dist/ts-morph-zLvdifpA.d.mts.map +0 -1
  434. package/dist/tsconfig-DExoZEQ0.d.cts +0 -75
  435. package/dist/tsconfig-DExoZEQ0.d.cts.map +0 -1
  436. package/dist/tsconfig-De09cBeX.d.mts +0 -75
  437. package/dist/tsconfig-De09cBeX.d.mts.map +0 -1
  438. package/dist/vfs-B9Vhnajc.d.cts +0 -320
  439. package/dist/vfs-B9Vhnajc.d.cts.map +0 -1
  440. package/dist/vfs-Dl6nPqdS.d.mts +0 -320
  441. package/dist/vfs-Dl6nPqdS.d.mts.map +0 -1
  442. package/dist/write-file-BVMnXVPo.d.cts +0 -15
  443. package/dist/write-file-BVMnXVPo.d.cts.map +0 -1
  444. package/dist/write-file-CWf9Xxwd.d.mts +0 -15
  445. package/dist/write-file-CWf9Xxwd.d.mts.map +0 -1
@@ -1,2 +1,126 @@
1
- import { a as StreamReader, c as createStreamReader, i as StreamErrorPayload, l as createStreamSink, n as CreateStreamReaderOptions, o as StreamSink, r as CreateStreamSinkOptions, s as StreamSinkEvents, t as BufferedChunk } from "../streaming-channel-CiyFd_6l.mjs";
2
- export { BufferedChunk, CreateStreamReaderOptions, CreateStreamSinkOptions, StreamErrorPayload, StreamReader, StreamSink, StreamSinkEvents, createStreamReader, createStreamSink };
1
+ import { EventEmitter } from "devframe/types";
2
+
3
+ //#region src/lib/streaming-channel.d.ts
4
+ /**
5
+ * Serialized error shape sent over the wire when a stream ends with a failure.
6
+ * Stays JSON-safe so the strict-JSON encoder can carry it without coercion.
7
+ */
8
+ interface StreamErrorPayload {
9
+ name: string;
10
+ message: string;
11
+ }
12
+ /**
13
+ * Single buffered chunk in the server-side ring buffer.
14
+ *
15
+ * Sequence numbers start at 1 and increment per write. Subscribers track
16
+ * `lastSeenSeq` and ask for `afterSeq` on resubscribe so the server can
17
+ * replay any chunks the client missed during a brief disconnect.
18
+ */
19
+ interface BufferedChunk<T> {
20
+ seq: number;
21
+ chunk: T;
22
+ }
23
+ interface StreamSinkEvents<T> {
24
+ /** Fired for each `write()`. The RPC layer subscribes and broadcasts. */
25
+ chunk: (seq: number, chunk: T) => void;
26
+ /** Terminal — fired exactly once per sink lifetime. */
27
+ end: (error?: StreamErrorPayload) => void;
28
+ }
29
+ interface CreateStreamSinkOptions {
30
+ id?: string;
31
+ /**
32
+ * Size of the per-stream ring buffer kept for replay-on-resubscribe.
33
+ * `0` (default) disables replay.
34
+ */
35
+ replayWindow?: number;
36
+ }
37
+ /**
38
+ * Server-side producer handle. Two equivalent surfaces share one piece of
39
+ * state: the imperative `write/error/close` triple, and a `WritableStream<T>`
40
+ * for `pipeTo`-style consumption.
41
+ */
42
+ interface StreamSink<T> {
43
+ /** Stable id used by clients to subscribe. */
44
+ readonly id: string;
45
+ /**
46
+ * Aborts when the consumer cancels (server-side) or when the transport
47
+ * loses every subscriber. Producers should poll `signal.aborted` and exit
48
+ * cleanly.
49
+ */
50
+ readonly signal: AbortSignal;
51
+ /** `true` after `close()` / `error()`. Further writes throw. */
52
+ readonly closed: boolean;
53
+ /** Last allocated sequence number. `0` until the first write. */
54
+ readonly lastSeq: number;
55
+ write: (chunk: T) => void;
56
+ error: (reason: unknown) => void;
57
+ close: () => void;
58
+ /** External-cancel path. Aborts the signal so handlers can short-circuit. */
59
+ abort: (reason?: unknown) => void;
60
+ /** `WritableStream<T>` adapter — same in-memory state as the imperative API. */
61
+ readonly writable: WritableStream<T>;
62
+ /**
63
+ * Internal — RPC layer subscribes to receive chunk/end notifications.
64
+ * Not part of the public contract; do not call directly.
65
+ *
66
+ * @internal
67
+ */
68
+ readonly events: EventEmitter<StreamSinkEvents<T>>;
69
+ /**
70
+ * Internal — replay buffer. RPC layer reads on (re)subscribe to feed
71
+ * missed chunks before going live.
72
+ *
73
+ * @internal
74
+ */
75
+ readonly buffer: ReadonlyArray<BufferedChunk<T>>;
76
+ }
77
+ interface CreateStreamReaderOptions {
78
+ id?: string;
79
+ /**
80
+ * Maximum number of buffered chunks held client-side while the consumer
81
+ * isn't draining. On overflow, the oldest chunk is dropped.
82
+ */
83
+ highWaterMark?: number;
84
+ /**
85
+ * Called when the chunk queue overflows the high-water mark. The RPC
86
+ * layer wires this to a coded warning; the primitive itself is
87
+ * RPC-agnostic.
88
+ */
89
+ onOverflow?: (dropped: number) => void;
90
+ /** Called when the consumer cancels — the RPC layer sends `:cancel` upstream. */
91
+ onCancel?: () => void;
92
+ }
93
+ /**
94
+ * Client-side consumer handle. Both an `AsyncIterable<T>` (for `for await`)
95
+ * and exposes `readable: ReadableStream<T>` (for `pipeTo`). Pick one — they
96
+ * share a single internal queue, so concurrent draining will race.
97
+ */
98
+ interface StreamReader<T> extends AsyncIterable<T> {
99
+ readonly id: string;
100
+ readonly cancelled: boolean;
101
+ readonly done: boolean;
102
+ /** Highest `seq` observed. Used for replay on reconnect. */
103
+ readonly lastSeenSeq: number;
104
+ /** `ReadableStream<T>` adapter for `pipeTo`-style consumption. */
105
+ readonly readable: ReadableStream<T>;
106
+ cancel: () => void;
107
+ /** @internal */
108
+ _push: (seq: number, chunk: T) => void;
109
+ /** @internal */
110
+ _end: (error?: StreamErrorPayload) => void;
111
+ }
112
+ /**
113
+ * Build a server-side stream sink. RPC-agnostic — the RPC host wires
114
+ * `events.on('chunk' | 'end')` to broadcast, and reads `buffer` to replay
115
+ * for late or reconnecting subscribers.
116
+ */
117
+ declare function createStreamSink<T>(options?: CreateStreamSinkOptions): StreamSink<T>;
118
+ /**
119
+ * Build a client-side stream reader. RPC-agnostic — the RPC host calls
120
+ * `_push(seq, chunk)` on each incoming chunk and `_end(error?)` on the
121
+ * terminal frame. Consumers iterate with `for await` or pipe `readable`.
122
+ */
123
+ declare function createStreamReader<T>(options?: CreateStreamReaderOptions): StreamReader<T>;
124
+ //#endregion
125
+ export { BufferedChunk, CreateStreamReaderOptions, CreateStreamSinkOptions, StreamErrorPayload, StreamReader, StreamSink, StreamSinkEvents, createStreamReader, createStreamSink };
126
+ //# sourceMappingURL=streaming-channel.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"streaming-channel.d.mts","names":[],"sources":["../../src/lib/streaming-channel.ts"],"mappings":";;;;;AA0BA;;UAAiB,kBAAA;EACf,IAAA;EACA,OAAO;AAAA;;;;;;;;UAUQ,aAAA;EACf,GAAA;EACA,KAAA,EAAO,CAAC;AAAA;AAAA,UAGO,gBAAA;EAIiB;EAFhC,KAAA,GAAQ,GAAA,UAAa,KAAA,EAAO,CAAA;EAA5B;EAEA,GAAA,GAAM,KAAA,GAAQ,kBAAkB;AAAA;AAAA,UAGjB,uBAAA;EACf,EAAA;EAJc;;;AAAkB;EAShC,YAAY;AAAA;;;AAAA;AAQd;;UAAiB,UAAA;EAQE;EAAA,SANR,EAAA;EAmByB;;;;;EAAA,SAbzB,MAAA,EAAQ,WAAA;EA6Bc;EAAA,SA3BtB,MAAA;EA2BqB;EAAA,SAzBrB,OAAA;EAET,KAAA,GAAQ,KAAA,EAAO,CAAA;EACf,KAAA,GAAQ,MAAA;EACR,KAAA;EARiB;EAUjB,KAAA,GAAQ,MAAA;EANC;EAAA,SASA,QAAA,EAAU,cAAA,CAAe,CAAA;EAPnB;;;;;;EAAA,SAeN,MAAA,EAAQ,YAAA,CAAa,gBAAA,CAAiB,CAAA;EARtC;;;;;;EAAA,SAgBA,MAAA,EAAQ,aAAA,CAAc,aAAA,CAAc,CAAA;AAAA;AAAA,UAG9B,yBAAA;EACf,EAAA;EAJ6C;;AAAC;AAGhD;EAME,aAAA;;;;;;EAMA,UAAA,IAAc,OAAA;EAEd;EAAA,QAAA;AAAA;AAQF;;;;;AAAA,UAAiB,YAAA,YAAwB,aAAA,CAAc,CAAA;EAAA,SAC5C,EAAA;EAAA,SACA,SAAA;EAAA,SACA,IAAA;EAH2C;EAAA,SAK3C,WAAA;EALmB;EAAA,SAOnB,QAAA,EAAU,cAAA,CAAe,CAAA;EAElC,MAAA;EARS;EAWT,KAAA,GAAQ,GAAA,UAAa,KAAA,EAAO,CAAA;EATnB;EAWT,IAAA,GAAO,KAAA,GAAQ,kBAAA;AAAA;;;;;;iBAcD,gBAAA,IACd,OAAA,GAAS,uBAAA,GACR,UAAA,CAAW,CAAA;;;;;;iBA+EE,kBAAA,IACd,OAAA,GAAS,yBAAA,GACR,YAAA,CAAa,CAAA"}
@@ -1,3 +1,3 @@
1
- import { n as createProgram, t as VirtualFileSystemHost } from "../../ts-morph-BGgjbOgM.cjs";
2
- import { a as getTsconfigFilePath, c as isMatchFound, i as getTsconfigDtsPath, l as resolveTsconfig, n as findMatch, o as initializeTsconfig, r as getParsedTypeScriptConfig, s as isIncludeMatchFound, t as findIncludeMatch, u as tryTsconfigFilePath } from "../../tsconfig-DExoZEQ0.cjs";
1
+ import { VirtualFileSystemHost, createProgram } from "./ts-morph.cjs";
2
+ import { findIncludeMatch, findMatch, getParsedTypeScriptConfig, getTsconfigDtsPath, getTsconfigFilePath, initializeTsconfig, isIncludeMatchFound, isMatchFound, resolveTsconfig, tryTsconfigFilePath } from "./tsconfig.cjs";
3
3
  export { VirtualFileSystemHost, createProgram, findIncludeMatch, findMatch, getParsedTypeScriptConfig, getTsconfigDtsPath, getTsconfigFilePath, initializeTsconfig, isIncludeMatchFound, isMatchFound, resolveTsconfig, tryTsconfigFilePath };
@@ -1,3 +1,3 @@
1
- import { n as createProgram, t as VirtualFileSystemHost } from "../../ts-morph-zLvdifpA.mjs";
2
- import { a as getTsconfigFilePath, c as isMatchFound, i as getTsconfigDtsPath, l as resolveTsconfig, n as findMatch, o as initializeTsconfig, r as getParsedTypeScriptConfig, s as isIncludeMatchFound, t as findIncludeMatch, u as tryTsconfigFilePath } from "../../tsconfig-De09cBeX.mjs";
1
+ import { VirtualFileSystemHost, createProgram } from "./ts-morph.mjs";
2
+ import { findIncludeMatch, findMatch, getParsedTypeScriptConfig, getTsconfigDtsPath, getTsconfigFilePath, initializeTsconfig, isIncludeMatchFound, isMatchFound, resolveTsconfig, tryTsconfigFilePath } from "./tsconfig.mjs";
3
3
  export { VirtualFileSystemHost, createProgram, findIncludeMatch, findMatch, getParsedTypeScriptConfig, getTsconfigDtsPath, getTsconfigFilePath, initializeTsconfig, isIncludeMatchFound, isMatchFound, resolveTsconfig, tryTsconfigFilePath };
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_chunk = require('../../chunk-C_NdSu1c.cjs');
2
+ const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
3
3
  let defu = require("defu");
4
- defu = require_chunk.__toESM(defu, 1);
4
+ defu = require_runtime.__toESM(defu, 1);
5
5
  let ts_morph = require("ts-morph");
6
6
 
7
7
  //#region src/lib/typescript/ts-morph.ts
@@ -1,2 +1,38 @@
1
- import { n as createProgram, t as VirtualFileSystemHost } from "../../ts-morph-BGgjbOgM.cjs";
2
- export { VirtualFileSystemHost, createProgram };
1
+ import { Context } from "../../types/context.cjs";
2
+ import { FileSystemHost, InMemoryFileSystemHost, Project, ProjectOptions, RuntimeDirEntry } from "ts-morph";
3
+
4
+ //#region src/lib/typescript/ts-morph.d.ts
5
+ declare class VirtualFileSystemHost extends InMemoryFileSystemHost implements FileSystemHost {
6
+ #private;
7
+ constructor(context: Context);
8
+ deleteSync(path: string): void;
9
+ readDirSync(dirPath: string): RuntimeDirEntry[];
10
+ readFile(filePath: string): Promise<string>;
11
+ readFileSync(filePath: string): string;
12
+ writeFile(filePath: string, fileText: string): Promise<void>;
13
+ writeFileSync(filePath: string, fileText: string): void;
14
+ mkdir(dirPath: string): Promise<void>;
15
+ mkdirSync(dirPath: string): void;
16
+ move(srcPath: string, destPath: string): Promise<void>;
17
+ moveSync(srcPath: string, destPath: string): void;
18
+ copy(srcPath: string, destPath: string): Promise<void>;
19
+ copySync(srcPath: string, destPath: string): void;
20
+ fileExists(filePath: string): Promise<boolean>;
21
+ fileExistsSync(filePath: string): boolean;
22
+ directoryExists(dirPath: string): Promise<boolean>;
23
+ directoryExistsSync(dirPath: string): boolean;
24
+ realpathSync(path: string): string;
25
+ getCurrentDirectory(): string;
26
+ glob(patterns: ReadonlyArray<string>): Promise<string[]>;
27
+ globSync(patterns: ReadonlyArray<string>): string[];
28
+ }
29
+ /**
30
+ * Create a ts-morph {@link Project} instance used for type reflection and module manipulation during processing
31
+ *
32
+ * @param context - The Powerlines context
33
+ * @returns A ts-morph {@link Project} instance
34
+ */
35
+ declare function createProgram(context: Context, override: Partial<ProjectOptions>): Project;
36
+ //#endregion
37
+ export { VirtualFileSystemHost, createProgram };
38
+ //# sourceMappingURL=ts-morph.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ts-morph.d.cts","names":[],"sources":["../../../src/lib/typescript/ts-morph.ts"],"mappings":";;;;cA6Ba,qBAAA,SACH,sBAAA,YACG,cAAA;EAAA;cAIQ,OAAA,EAAS,OAAA;EAMZ,UAAA,CAAW,IAAA;EAIX,WAAA,CAAY,OAAA,WAAkB,eAAA;EAoBxB,QAAA,CAAS,QAAA,WAAgB,OAAA;EAQ/B,YAAA,CAAa,QAAA;EAQP,SAAA,CAAU,QAAA,UAAkB,QAAA,WAAgB,OAAA;EAIlD,aAAA,CAAc,QAAA,UAAkB,QAAA;EAI1B,KAAA,CAAM,OAAA,WAAe,OAAA;EAI3B,SAAA,CAAU,OAAA;EAIJ,IAAA,CAAK,OAAA,UAAiB,QAAA,WAAgB,OAAA;EAI5C,QAAA,CAAS,OAAA,UAAiB,QAAA;EAIpB,IAAA,CAAK,OAAA,UAAiB,QAAA,WAAgB,OAAA;EAI5C,QAAA,CAAS,OAAA,UAAiB,QAAA;EAIpB,UAAA,CAAW,QAAA,WAAgB,OAAA;EAIjC,cAAA,CAAe,QAAA;EAIT,eAAA,CAAgB,OAAA,WAAe,OAAA;EAIrC,mBAAA,CAAoB,OAAA;EAIpB,YAAA,CAAa,IAAA;EAIb,mBAAA;EAIM,IAAA,CACpB,QAAA,EAAU,aAAA,WACT,OAAA;EAIa,QAAA,CAAS,QAAA,EAAU,aAAA;AAAA;;;;;;;iBAWrB,aAAA,CACd,OAAA,EAAS,OAAA,EACT,QAAA,EAAU,OAAA,CAAQ,cAAA,IACjB,OAAA"}
@@ -1,2 +1,38 @@
1
- import { n as createProgram, t as VirtualFileSystemHost } from "../../ts-morph-zLvdifpA.mjs";
2
- export { VirtualFileSystemHost, createProgram };
1
+ import { Context } from "../../types/context.mjs";
2
+ import { FileSystemHost, InMemoryFileSystemHost, Project, ProjectOptions, RuntimeDirEntry } from "ts-morph";
3
+
4
+ //#region src/lib/typescript/ts-morph.d.ts
5
+ declare class VirtualFileSystemHost extends InMemoryFileSystemHost implements FileSystemHost {
6
+ #private;
7
+ constructor(context: Context);
8
+ deleteSync(path: string): void;
9
+ readDirSync(dirPath: string): RuntimeDirEntry[];
10
+ readFile(filePath: string): Promise<string>;
11
+ readFileSync(filePath: string): string;
12
+ writeFile(filePath: string, fileText: string): Promise<void>;
13
+ writeFileSync(filePath: string, fileText: string): void;
14
+ mkdir(dirPath: string): Promise<void>;
15
+ mkdirSync(dirPath: string): void;
16
+ move(srcPath: string, destPath: string): Promise<void>;
17
+ moveSync(srcPath: string, destPath: string): void;
18
+ copy(srcPath: string, destPath: string): Promise<void>;
19
+ copySync(srcPath: string, destPath: string): void;
20
+ fileExists(filePath: string): Promise<boolean>;
21
+ fileExistsSync(filePath: string): boolean;
22
+ directoryExists(dirPath: string): Promise<boolean>;
23
+ directoryExistsSync(dirPath: string): boolean;
24
+ realpathSync(path: string): string;
25
+ getCurrentDirectory(): string;
26
+ glob(patterns: ReadonlyArray<string>): Promise<string[]>;
27
+ globSync(patterns: ReadonlyArray<string>): string[];
28
+ }
29
+ /**
30
+ * Create a ts-morph {@link Project} instance used for type reflection and module manipulation during processing
31
+ *
32
+ * @param context - The Powerlines context
33
+ * @returns A ts-morph {@link Project} instance
34
+ */
35
+ declare function createProgram(context: Context, override: Partial<ProjectOptions>): Project;
36
+ //#endregion
37
+ export { VirtualFileSystemHost, createProgram };
38
+ //# sourceMappingURL=ts-morph.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ts-morph.d.mts","names":[],"sources":["../../../src/lib/typescript/ts-morph.ts"],"mappings":";;;;cA6Ba,qBAAA,SACH,sBAAA,YACG,cAAA;EAAA;cAIQ,OAAA,EAAS,OAAA;EAMZ,UAAA,CAAW,IAAA;EAIX,WAAA,CAAY,OAAA,WAAkB,eAAA;EAoBxB,QAAA,CAAS,QAAA,WAAgB,OAAA;EAQ/B,YAAA,CAAa,QAAA;EAQP,SAAA,CAAU,QAAA,UAAkB,QAAA,WAAgB,OAAA;EAIlD,aAAA,CAAc,QAAA,UAAkB,QAAA;EAI1B,KAAA,CAAM,OAAA,WAAe,OAAA;EAI3B,SAAA,CAAU,OAAA;EAIJ,IAAA,CAAK,OAAA,UAAiB,QAAA,WAAgB,OAAA;EAI5C,QAAA,CAAS,OAAA,UAAiB,QAAA;EAIpB,IAAA,CAAK,OAAA,UAAiB,QAAA,WAAgB,OAAA;EAI5C,QAAA,CAAS,OAAA,UAAiB,QAAA;EAIpB,UAAA,CAAW,QAAA,WAAgB,OAAA;EAIjC,cAAA,CAAe,QAAA;EAIT,eAAA,CAAgB,OAAA,WAAe,OAAA;EAIrC,mBAAA,CAAoB,OAAA;EAIpB,YAAA,CAAa,IAAA;EAIb,mBAAA;EAIM,IAAA,CACpB,QAAA,EAAU,aAAA,WACT,OAAA;EAIa,QAAA,CAAS,QAAA,EAAU,aAAA;AAAA;;;;;;;iBAWrB,aAAA,CACd,OAAA,EAAS,OAAA,EACT,QAAA,EAAU,OAAA,CAAQ,cAAA,IACjB,OAAA"}
@@ -1,20 +1,20 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_chunk = require('../../chunk-C_NdSu1c.cjs');
2
+ const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
3
3
  let _stryke_fs_exists = require("@stryke/fs/exists");
4
4
  let _stryke_fs_json = require("@stryke/fs/json");
5
5
  let _stryke_path_append = require("@stryke/path/append");
6
6
  let _stryke_path_file_path_fns = require("@stryke/path/file-path-fns");
7
7
  let _stryke_path_join_paths = require("@stryke/path/join-paths");
8
8
  let defu = require("defu");
9
- defu = require_chunk.__toESM(defu, 1);
9
+ defu = require_runtime.__toESM(defu, 1);
10
10
  let _stryke_string_format_title_case = require("@stryke/string-format/title-case");
11
11
  let chalk = require("chalk");
12
- chalk = require_chunk.__toESM(chalk, 1);
12
+ chalk = require_runtime.__toESM(chalk, 1);
13
13
  let _stryke_fs_package_fns = require("@stryke/fs/package-fns");
14
14
  let _donedeal0_superdiff = require("@donedeal0/superdiff");
15
15
  let _stryke_json_storm_json = require("@stryke/json/storm-json");
16
16
  let typescript = require("typescript");
17
- typescript = require_chunk.__toESM(typescript, 1);
17
+ typescript = require_runtime.__toESM(typescript, 1);
18
18
 
19
19
  //#region src/lib/typescript/tsconfig.ts
20
20
  function getTsconfigDtsPath(context) {
@@ -1,2 +1,77 @@
1
- import { a as getTsconfigFilePath, c as isMatchFound, i as getTsconfigDtsPath, l as resolveTsconfig, n as findMatch, o as initializeTsconfig, r as getParsedTypeScriptConfig, s as isIncludeMatchFound, t as findIncludeMatch, u as tryTsconfigFilePath } from "../../tsconfig-DExoZEQ0.cjs";
2
- export { findIncludeMatch, findMatch, getParsedTypeScriptConfig, getTsconfigDtsPath, getTsconfigFilePath, initializeTsconfig, isIncludeMatchFound, isMatchFound, resolveTsconfig, tryTsconfigFilePath };
1
+ import { ParsedTypeScriptConfig, TSConfig } from "../../types/tsconfig.cjs";
2
+ import { EnvironmentContext } from "../../types/context.cjs";
3
+ import { ResolvedConfig } from "../../types/config.cjs";
4
+ import { FilterPattern } from "@stryke/types/file";
5
+ import ts from "typescript";
6
+
7
+ //#region src/lib/typescript/tsconfig.d.ts
8
+ declare function getTsconfigDtsPath<TResolvedConfig extends ResolvedConfig = ResolvedConfig, TSystemContext = unknown>(context: EnvironmentContext<TResolvedConfig, TSystemContext>): string;
9
+ declare function initializeTsconfig<TResolvedConfig extends ResolvedConfig = ResolvedConfig, TSystemContext = unknown, TContext extends EnvironmentContext<TResolvedConfig, TSystemContext> = EnvironmentContext<TResolvedConfig, TSystemContext>>(context: TContext): Promise<void>;
10
+ declare function resolveTsconfig<TResolvedConfig extends ResolvedConfig = ResolvedConfig, TSystemContext = unknown, TContext extends EnvironmentContext<TResolvedConfig, TSystemContext> = EnvironmentContext<TResolvedConfig, TSystemContext>>(context: TContext): Promise<void>;
11
+ /**
12
+ * Get the path to the tsconfig.json file.
13
+ *
14
+ * @param cwd - The root directory of the workspace.
15
+ * @param root - The root directory of the project.
16
+ * @param tsconfig - The path to the tsconfig.json file.
17
+ * @returns The absolute path to the tsconfig.json file.
18
+ * @throws If the tsconfig.json file does not exist.
19
+ */
20
+ declare function getTsconfigFilePath(cwd: string, root: string, tsconfig?: string): string;
21
+ /**
22
+ * Get the path to the tsconfig.json file.
23
+ *
24
+ * @param cwd - The root directory of the workspace.
25
+ * @param root - The root directory of the project.
26
+ * @param tsconfig - The path to the tsconfig.json file.
27
+ * @returns The absolute path to the tsconfig.json file.
28
+ * @throws If the tsconfig.json file does not exist.
29
+ */
30
+ declare function tryTsconfigFilePath(cwd: string, root: string, tsconfig: string): string | undefined;
31
+ /**
32
+ * Check if the TypeScript configuration type matches any of the provided types.
33
+ *
34
+ * @param tsconfigType - The type from the TypeScript configuration.
35
+ * @param types - An array of type names to check against.
36
+ * @returns True if the TypeScript configuration type matches any of the provided types, false otherwise.
37
+ */
38
+ declare function findMatch(tsconfigType: string | RegExp | null, types: (string | RegExp | null)[], extensions?: string[]): string | RegExp | null | undefined;
39
+ /**
40
+ * Check if the TypeScript configuration type matches any of the provided types.
41
+ *
42
+ * @param tsconfigType - The type from the TypeScript configuration.
43
+ * @param types - An array of type names to check against.
44
+ * @returns True if the TypeScript configuration type matches any of the provided types, false otherwise.
45
+ */
46
+ declare function findIncludeMatch(tsconfigType: string | RegExp | null, types: (string | RegExp | null)[]): string | RegExp | null | undefined;
47
+ /**
48
+ * Check if the TypeScript configuration type matches any of the provided types.
49
+ *
50
+ * @param tsconfigType - The type from the TypeScript configuration.
51
+ * @param types - An array of type names to check against.
52
+ * @returns True if the TypeScript configuration type matches any of the provided types, false otherwise.
53
+ */
54
+ declare function isMatchFound(tsconfigType: string | RegExp | null, types: (string | RegExp | null)[]): boolean;
55
+ /**
56
+ * Check if the TypeScript configuration type matches any of the provided types.
57
+ *
58
+ * @param tsconfigType - The type from the TypeScript configuration.
59
+ * @param types - An array of type names to check against.
60
+ * @returns True if the TypeScript configuration type matches any of the provided types, false otherwise.
61
+ */
62
+ declare function isIncludeMatchFound(tsconfigType: FilterPattern, types: FilterPattern[]): boolean;
63
+ /**
64
+ * Get the parsed TypeScript configuration.
65
+ *
66
+ * @param workspaceRoot - The root directory of the workspace.
67
+ * @param projectRoot - The root directory of the project.
68
+ * @param tsconfig - The path to the tsconfig.json file.
69
+ * @param tsconfigRaw - The raw tsconfig.json content.
70
+ * @param originalTsconfigJson - The original tsconfig.json content.
71
+ * @param host - The TypeScript parse config host.
72
+ * @returns The resolved TypeScript configuration.
73
+ */
74
+ declare function getParsedTypeScriptConfig(workspaceRoot: string, projectRoot: string, tsconfig?: string, tsconfigRaw?: TSConfig, originalTsconfigJson?: TSConfig, host?: ts.ParseConfigHost): ParsedTypeScriptConfig;
75
+ //#endregion
76
+ export { findIncludeMatch, findMatch, getParsedTypeScriptConfig, getTsconfigDtsPath, getTsconfigFilePath, initializeTsconfig, isIncludeMatchFound, isMatchFound, resolveTsconfig, tryTsconfigFilePath };
77
+ //# sourceMappingURL=tsconfig.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tsconfig.d.cts","names":[],"sources":["../../../src/lib/typescript/tsconfig.ts"],"mappings":";;;;;;;iBAyCgB,kBAAA,yBACU,cAAA,GAAiB,cAAA,4BAEzC,OAAA,EAAS,kBAAA,CAAmB,eAAA,EAAiB,cAAA;AAAA,iBAiJzB,kBAAA,yBACI,cAAA,GAAiB,cAAA,6CAExB,kBAAA,CAAmB,eAAA,EAAiB,cAAA,IACnD,kBAAA,CAAmB,eAAA,EAAiB,cAAA,GACtC,OAAA,EAAS,QAAA,GAAW,OAAA;AAAA,iBA2CA,eAAA,yBACI,cAAA,GAAiB,cAAA,6CAExB,kBAAA,CAAmB,eAAA,EAAiB,cAAA,IACnD,kBAAA,CAAmB,eAAA,EAAiB,cAAA,GACtC,OAAA,EAAS,QAAA,GAAW,OAAA;;;;;;;;;;iBA+GN,mBAAA,CACd,GAAA,UACA,IAAA,UACA,QAAA;;;;;;;;;AAxT4D;iBA2V9C,mBAAA,CACd,GAAA,UACA,IAAA,UACA,QAAA;;;;;;;;iBAuBc,SAAA,CACd,YAAA,WAAuB,MAAA,SACvB,KAAA,YAAiB,MAAA,YACjB,UAAA,uBACU,MAAA;;;;;;;;iBAkCI,gBAAA,CACd,YAAA,WAAuB,MAAA,SACvB,KAAA,YAAiB,MAAA,sBACP,MAAA;;;;;;;;iBAuCI,YAAA,CACd,YAAA,WAAuB,MAAA,SACvB,KAAA,YAAiB,MAAM;;;;;;AAjTI;AA2C7B;iBAkRgB,mBAAA,CACd,YAAA,EAAc,aAAA,EACd,KAAA,EAAO,aAAa;;;;;;;;;;;;iBAqBN,yBAAA,CACd,aAAA,UACA,WAAA,UACA,QAAA,WACA,WAAA,GAAa,QAAA,EACb,oBAAA,GAAuB,QAAA,EACvB,IAAA,GAAM,EAAA,CAAG,eAAA,GACR,sBAAA"}
@@ -1,2 +1,77 @@
1
- import { a as getTsconfigFilePath, c as isMatchFound, i as getTsconfigDtsPath, l as resolveTsconfig, n as findMatch, o as initializeTsconfig, r as getParsedTypeScriptConfig, s as isIncludeMatchFound, t as findIncludeMatch, u as tryTsconfigFilePath } from "../../tsconfig-De09cBeX.mjs";
2
- export { findIncludeMatch, findMatch, getParsedTypeScriptConfig, getTsconfigDtsPath, getTsconfigFilePath, initializeTsconfig, isIncludeMatchFound, isMatchFound, resolveTsconfig, tryTsconfigFilePath };
1
+ import { ParsedTypeScriptConfig, TSConfig } from "../../types/tsconfig.mjs";
2
+ import { EnvironmentContext } from "../../types/context.mjs";
3
+ import { ResolvedConfig } from "../../types/config.mjs";
4
+ import ts from "typescript";
5
+ import { FilterPattern } from "@stryke/types/file";
6
+
7
+ //#region src/lib/typescript/tsconfig.d.ts
8
+ declare function getTsconfigDtsPath<TResolvedConfig extends ResolvedConfig = ResolvedConfig, TSystemContext = unknown>(context: EnvironmentContext<TResolvedConfig, TSystemContext>): string;
9
+ declare function initializeTsconfig<TResolvedConfig extends ResolvedConfig = ResolvedConfig, TSystemContext = unknown, TContext extends EnvironmentContext<TResolvedConfig, TSystemContext> = EnvironmentContext<TResolvedConfig, TSystemContext>>(context: TContext): Promise<void>;
10
+ declare function resolveTsconfig<TResolvedConfig extends ResolvedConfig = ResolvedConfig, TSystemContext = unknown, TContext extends EnvironmentContext<TResolvedConfig, TSystemContext> = EnvironmentContext<TResolvedConfig, TSystemContext>>(context: TContext): Promise<void>;
11
+ /**
12
+ * Get the path to the tsconfig.json file.
13
+ *
14
+ * @param cwd - The root directory of the workspace.
15
+ * @param root - The root directory of the project.
16
+ * @param tsconfig - The path to the tsconfig.json file.
17
+ * @returns The absolute path to the tsconfig.json file.
18
+ * @throws If the tsconfig.json file does not exist.
19
+ */
20
+ declare function getTsconfigFilePath(cwd: string, root: string, tsconfig?: string): string;
21
+ /**
22
+ * Get the path to the tsconfig.json file.
23
+ *
24
+ * @param cwd - The root directory of the workspace.
25
+ * @param root - The root directory of the project.
26
+ * @param tsconfig - The path to the tsconfig.json file.
27
+ * @returns The absolute path to the tsconfig.json file.
28
+ * @throws If the tsconfig.json file does not exist.
29
+ */
30
+ declare function tryTsconfigFilePath(cwd: string, root: string, tsconfig: string): string | undefined;
31
+ /**
32
+ * Check if the TypeScript configuration type matches any of the provided types.
33
+ *
34
+ * @param tsconfigType - The type from the TypeScript configuration.
35
+ * @param types - An array of type names to check against.
36
+ * @returns True if the TypeScript configuration type matches any of the provided types, false otherwise.
37
+ */
38
+ declare function findMatch(tsconfigType: string | RegExp | null, types: (string | RegExp | null)[], extensions?: string[]): string | RegExp | null | undefined;
39
+ /**
40
+ * Check if the TypeScript configuration type matches any of the provided types.
41
+ *
42
+ * @param tsconfigType - The type from the TypeScript configuration.
43
+ * @param types - An array of type names to check against.
44
+ * @returns True if the TypeScript configuration type matches any of the provided types, false otherwise.
45
+ */
46
+ declare function findIncludeMatch(tsconfigType: string | RegExp | null, types: (string | RegExp | null)[]): string | RegExp | null | undefined;
47
+ /**
48
+ * Check if the TypeScript configuration type matches any of the provided types.
49
+ *
50
+ * @param tsconfigType - The type from the TypeScript configuration.
51
+ * @param types - An array of type names to check against.
52
+ * @returns True if the TypeScript configuration type matches any of the provided types, false otherwise.
53
+ */
54
+ declare function isMatchFound(tsconfigType: string | RegExp | null, types: (string | RegExp | null)[]): boolean;
55
+ /**
56
+ * Check if the TypeScript configuration type matches any of the provided types.
57
+ *
58
+ * @param tsconfigType - The type from the TypeScript configuration.
59
+ * @param types - An array of type names to check against.
60
+ * @returns True if the TypeScript configuration type matches any of the provided types, false otherwise.
61
+ */
62
+ declare function isIncludeMatchFound(tsconfigType: FilterPattern, types: FilterPattern[]): boolean;
63
+ /**
64
+ * Get the parsed TypeScript configuration.
65
+ *
66
+ * @param workspaceRoot - The root directory of the workspace.
67
+ * @param projectRoot - The root directory of the project.
68
+ * @param tsconfig - The path to the tsconfig.json file.
69
+ * @param tsconfigRaw - The raw tsconfig.json content.
70
+ * @param originalTsconfigJson - The original tsconfig.json content.
71
+ * @param host - The TypeScript parse config host.
72
+ * @returns The resolved TypeScript configuration.
73
+ */
74
+ declare function getParsedTypeScriptConfig(workspaceRoot: string, projectRoot: string, tsconfig?: string, tsconfigRaw?: TSConfig, originalTsconfigJson?: TSConfig, host?: ts.ParseConfigHost): ParsedTypeScriptConfig;
75
+ //#endregion
76
+ export { findIncludeMatch, findMatch, getParsedTypeScriptConfig, getTsconfigDtsPath, getTsconfigFilePath, initializeTsconfig, isIncludeMatchFound, isMatchFound, resolveTsconfig, tryTsconfigFilePath };
77
+ //# sourceMappingURL=tsconfig.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tsconfig.d.mts","names":[],"sources":["../../../src/lib/typescript/tsconfig.ts"],"mappings":";;;;;;;iBAyCgB,kBAAA,yBACU,cAAA,GAAiB,cAAA,4BAEzC,OAAA,EAAS,kBAAA,CAAmB,eAAA,EAAiB,cAAA;AAAA,iBAiJzB,kBAAA,yBACI,cAAA,GAAiB,cAAA,6CAExB,kBAAA,CAAmB,eAAA,EAAiB,cAAA,IACnD,kBAAA,CAAmB,eAAA,EAAiB,cAAA,GACtC,OAAA,EAAS,QAAA,GAAW,OAAA;AAAA,iBA2CA,eAAA,yBACI,cAAA,GAAiB,cAAA,6CAExB,kBAAA,CAAmB,eAAA,EAAiB,cAAA,IACnD,kBAAA,CAAmB,eAAA,EAAiB,cAAA,GACtC,OAAA,EAAS,QAAA,GAAW,OAAA;;;;;;;;;;iBA+GN,mBAAA,CACd,GAAA,UACA,IAAA,UACA,QAAA;;;;;;;;;AAxT4D;iBA2V9C,mBAAA,CACd,GAAA,UACA,IAAA,UACA,QAAA;;;;;;;;iBAuBc,SAAA,CACd,YAAA,WAAuB,MAAA,SACvB,KAAA,YAAiB,MAAA,YACjB,UAAA,uBACU,MAAA;;;;;;;;iBAkCI,gBAAA,CACd,YAAA,WAAuB,MAAA,SACvB,KAAA,YAAiB,MAAA,sBACP,MAAA;;;;;;;;iBAuCI,YAAA,CACd,YAAA,WAAuB,MAAA,SACvB,KAAA,YAAiB,MAAM;;;;;;AAjTI;AA2C7B;iBAkRgB,mBAAA,CACd,YAAA,EAAc,aAAA,EACd,KAAA,EAAO,aAAa;;;;;;;;;;;;iBAqBN,yBAAA,CACd,aAAA,UACA,WAAA,UACA,QAAA,WACA,WAAA,GAAa,QAAA,EACb,oBAAA,GAAuB,QAAA,EACvB,IAAA,GAAM,EAAA,CAAG,eAAA,GACR,sBAAA"}
@@ -1,2 +1,23 @@
1
- import { n as isUnpluginBuilderVariant, t as combineContexts } from "../../helpers-DBLIQW3U.cjs";
2
- export { combineContexts, isUnpluginBuilderVariant };
1
+ import { UnpluginBuilderVariant } from "../../types/unplugin.cjs";
2
+ import { UnresolvedContext } from "../../types/context.cjs";
3
+ import { UnpluginBuildContext } from "unplugin";
4
+
5
+ //#region src/lib/unplugin/helpers.d.ts
6
+ /**
7
+ * Merges a base plugin context with an unplugin context, combining their properties.
8
+ *
9
+ * @param contextA - The base plugin context to merge into.
10
+ * @param contextB - The unplugin context to merge from.
11
+ * @returns The merged context.
12
+ */
13
+ declare function combineContexts<TContextA extends UnresolvedContext | UnpluginBuildContext, TContextB extends UnresolvedContext | UnpluginBuildContext>(contextA: TContextA, contextB: TContextB): TContextA & TContextB;
14
+ /**
15
+ * Checks if a value is a valid UnpluginBuilderVariant.
16
+ *
17
+ * @param str - The value to check.
18
+ * @returns True if the value is a UnpluginBuilderVariant, false otherwise.
19
+ */
20
+ declare function isUnpluginBuilderVariant(str: unknown): str is UnpluginBuilderVariant;
21
+ //#endregion
22
+ export { combineContexts, isUnpluginBuilderVariant };
23
+ //# sourceMappingURL=helpers.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers.d.cts","names":[],"sources":["../../../src/lib/unplugin/helpers.ts"],"mappings":";;;;;;;AAgCA;;;;;iBAAgB,eAAA,mBACI,iBAAA,GAAoB,oBAAA,oBACpB,iBAAA,GAAoB,oBAAA,EACtC,QAAA,EAAU,SAAA,EAAW,QAAA,EAAU,SAAA,GAAY,SAAA,GAAY,SAAA;;;;;;;iBAUzC,wBAAA,CACd,GAAA,YACC,GAAA,IAAO,sBAAsB"}
@@ -1,2 +1,23 @@
1
- import { n as isUnpluginBuilderVariant, t as combineContexts } from "../../helpers-CrRRFQl5.mjs";
2
- export { combineContexts, isUnpluginBuilderVariant };
1
+ import { UnpluginBuilderVariant } from "../../types/unplugin.mjs";
2
+ import { UnresolvedContext } from "../../types/context.mjs";
3
+ import { UnpluginBuildContext } from "unplugin";
4
+
5
+ //#region src/lib/unplugin/helpers.d.ts
6
+ /**
7
+ * Merges a base plugin context with an unplugin context, combining their properties.
8
+ *
9
+ * @param contextA - The base plugin context to merge into.
10
+ * @param contextB - The unplugin context to merge from.
11
+ * @returns The merged context.
12
+ */
13
+ declare function combineContexts<TContextA extends UnresolvedContext | UnpluginBuildContext, TContextB extends UnresolvedContext | UnpluginBuildContext>(contextA: TContextA, contextB: TContextB): TContextA & TContextB;
14
+ /**
15
+ * Checks if a value is a valid UnpluginBuilderVariant.
16
+ *
17
+ * @param str - The value to check.
18
+ * @returns True if the value is a UnpluginBuilderVariant, false otherwise.
19
+ */
20
+ declare function isUnpluginBuilderVariant(str: unknown): str is UnpluginBuilderVariant;
21
+ //#endregion
22
+ export { combineContexts, isUnpluginBuilderVariant };
23
+ //# sourceMappingURL=helpers.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers.d.mts","names":[],"sources":["../../../src/lib/unplugin/helpers.ts"],"mappings":";;;;;;;AAgCA;;;;;iBAAgB,eAAA,mBACI,iBAAA,GAAoB,oBAAA,oBACpB,iBAAA,GAAoB,oBAAA,EACtC,QAAA,EAAU,SAAA,EAAW,QAAA,EAAU,SAAA,GAAY,SAAA,GAAY,SAAA;;;;;;;iBAUzC,wBAAA,CACd,GAAA,YACC,GAAA,IAAO,sBAAsB"}
@@ -1,4 +1,4 @@
1
- import { n as isUnpluginBuilderVariant, t as combineContexts } from "../../helpers-DBLIQW3U.cjs";
2
- import { n as createUnpluginModuleResolutionFunctions, t as CreateUnpluginModuleResolutionFunctionsOptions } from "../../module-resolution-D-w-EZaK.cjs";
3
- import { i as createUnpluginResolver, n as CreateUnpluginResolverOptions, r as createUnplugin, t as CreateUnpluginOptions } from "../../plugin-CzV-aFwU.cjs";
1
+ import { combineContexts, isUnpluginBuilderVariant } from "./helpers.cjs";
2
+ import { CreateUnpluginModuleResolutionFunctionsOptions, createUnpluginModuleResolutionFunctions } from "./module-resolution.cjs";
3
+ import { CreateUnpluginOptions, CreateUnpluginResolverOptions, createUnplugin, createUnpluginResolver } from "./plugin.cjs";
4
4
  export { CreateUnpluginModuleResolutionFunctionsOptions, CreateUnpluginOptions, CreateUnpluginResolverOptions, combineContexts, createUnplugin, createUnpluginModuleResolutionFunctions, createUnpluginResolver, isUnpluginBuilderVariant };
@@ -1,4 +1,4 @@
1
- import { n as isUnpluginBuilderVariant, t as combineContexts } from "../../helpers-CrRRFQl5.mjs";
2
- import { n as createUnpluginModuleResolutionFunctions, t as CreateUnpluginModuleResolutionFunctionsOptions } from "../../module-resolution-CRMNPsdn.mjs";
3
- import { i as createUnpluginResolver, n as CreateUnpluginResolverOptions, r as createUnplugin, t as CreateUnpluginOptions } from "../../plugin-B_b7XqaN.mjs";
1
+ import { combineContexts, isUnpluginBuilderVariant } from "./helpers.mjs";
2
+ import { CreateUnpluginModuleResolutionFunctionsOptions, createUnpluginModuleResolutionFunctions } from "./module-resolution.mjs";
3
+ import { CreateUnpluginOptions, CreateUnpluginResolverOptions, createUnplugin, createUnpluginResolver } from "./plugin.mjs";
4
4
  export { CreateUnpluginModuleResolutionFunctionsOptions, CreateUnpluginOptions, CreateUnpluginResolverOptions, combineContexts, createUnplugin, createUnpluginModuleResolutionFunctions, createUnpluginResolver, isUnpluginBuilderVariant };
@@ -1,10 +1,10 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_chunk = require('../../chunk-C_NdSu1c.cjs');
2
+ const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
3
3
  const require_plugin_utils_virtual = require('../../plugin-utils/virtual.cjs');
4
4
  require('../../plugin-utils/index.cjs');
5
5
  let _stryke_type_checks_is_set_object = require("@stryke/type-checks/is-set-object");
6
6
  let defu = require("defu");
7
- defu = require_chunk.__toESM(defu, 1);
7
+ defu = require_runtime.__toESM(defu, 1);
8
8
  let _stryke_type_checks_is_set_string = require("@stryke/type-checks/is-set-string");
9
9
 
10
10
  //#region src/lib/unplugin/module-resolution.ts
@@ -1,2 +1,41 @@
1
- import { n as createUnpluginModuleResolutionFunctions, t as CreateUnpluginModuleResolutionFunctionsOptions } from "../../module-resolution-D-w-EZaK.cjs";
2
- export { CreateUnpluginModuleResolutionFunctionsOptions, createUnpluginModuleResolutionFunctions };
1
+ import { ResolveOptions } from "../../types/fs.cjs";
2
+ import { UnresolvedContext } from "../../types/context.cjs";
3
+ import { UnpluginOptions } from "unplugin";
4
+
5
+ //#region src/lib/unplugin/module-resolution.d.ts
6
+ interface CreateUnpluginModuleResolutionFunctionsOptions {
7
+ /**
8
+ * An indicator of whether to prefix virtual module IDs with a specific string. This is useful for ensuring that virtual modules are only processed by the plugin and not by other plugins or the bundler itself.
9
+ *
10
+ * @remarks
11
+ * - If set to `true`, virtual module IDs will be prefixed with the string `__powerlines-virtual:`.
12
+ * - If set to `false`, no prefix will be added to virtual module IDs.
13
+ *
14
+ * @defaultValue true
15
+ */
16
+ prefix?: boolean;
17
+ /**
18
+ * Optional overrides for the module resolution configuration.
19
+ *
20
+ * @remarks
21
+ * This allows you to customize the behavior of the module resolution hooks by providing specific configuration options.
22
+ */
23
+ overrides?: Partial<ResolveOptions>;
24
+ }
25
+ /**
26
+ * Creates the module resolution hook functions for a Powerlines unplugin plugin instance.
27
+ *
28
+ * @remarks
29
+ * This includes the `resolveId` and `load` hooks.
30
+ *
31
+ * @see https://rollupjs.org/plugin-development/#resolveid
32
+ * @see https://rollupjs.org/plugin-development/#load
33
+ *
34
+ * @param context - The plugin context.
35
+ * @param options - Options for creating the module resolution functions.
36
+ * @returns The module resolution hooks (`resolveId` and `load`).
37
+ */
38
+ declare function createUnpluginModuleResolutionFunctions<TContext extends UnresolvedContext>(context: TContext, options?: CreateUnpluginModuleResolutionFunctionsOptions): Pick<UnpluginOptions, "resolveId" | "load">;
39
+ //#endregion
40
+ export { CreateUnpluginModuleResolutionFunctionsOptions, createUnpluginModuleResolutionFunctions };
41
+ //# sourceMappingURL=module-resolution.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"module-resolution.d.cts","names":[],"sources":["../../../src/lib/unplugin/module-resolution.ts"],"mappings":";;;;;UAmCiB,8CAAA;;AAAjB;;;;;;;;EAUE,MAAA;EAQkC;AAgBpC;;;;;EAhBE,SAAA,GAAY,OAAO,CAAC,cAAA;AAAA;;;;;;;;;;;;;AAqBC;iBALP,uCAAA,kBACG,iBAAA,EAEjB,OAAA,EAAS,QAAA,EACT,OAAA,GAAS,8CAAA,GACR,IAAA,CAAK,eAAA"}