@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,41 @@
1
- import { n as createUnpluginModuleResolutionFunctions, t as CreateUnpluginModuleResolutionFunctionsOptions } from "../../module-resolution-CRMNPsdn.mjs";
2
- export { CreateUnpluginModuleResolutionFunctionsOptions, createUnpluginModuleResolutionFunctions };
1
+ import { ResolveOptions } from "../../types/fs.mjs";
2
+ import { UnresolvedContext } from "../../types/context.mjs";
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.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"module-resolution.d.mts","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"}
@@ -1,2 +1,40 @@
1
- import { i as createUnpluginResolver, n as CreateUnpluginResolverOptions, r as createUnplugin, t as CreateUnpluginOptions } from "../../plugin-CzV-aFwU.cjs";
2
- export { CreateUnpluginOptions, CreateUnpluginResolverOptions, createUnplugin, createUnpluginResolver };
1
+ import { UnpluginOptions } from "../../types/unplugin.cjs";
2
+ import { PluginContext, UnresolvedContext } from "../../types/context.cjs";
3
+ import { CreateUnpluginModuleResolutionFunctionsOptions } from "./module-resolution.cjs";
4
+
5
+ //#region src/lib/unplugin/plugin.d.ts
6
+ interface CreateUnpluginResolverOptions extends CreateUnpluginModuleResolutionFunctionsOptions {
7
+ /**
8
+ * A name to use for the unplugin instance. This is used for logging and to generate the plugin name. It does not affect the functionality of the plugin.
9
+ *
10
+ * @remarks
11
+ * If not provided, the plugin will be named "powerlines". If provided, the plugin will be named `${name} - Powerlines` (e.g., "MyPlugin - Powerlines").
12
+ *
13
+ * @defaultValue "powerlines"
14
+ */
15
+ name?: string;
16
+ /**
17
+ * Whether to silence logging for the plugin hooks. This can be useful for plugins that run frequently or have hooks that are called often, to reduce noise in the logs. When set to `true`, the plugin will not log any messages for its hooks. When set to `false` (the default), the plugin will log messages for its hooks as normal.
18
+ *
19
+ * @defaultValue false
20
+ */
21
+ silenceHookLogging?: boolean;
22
+ }
23
+ /**
24
+ * Creates a Powerlines unplugin instance.
25
+ *
26
+ * @param context - The plugin context.
27
+ * @returns The unplugin instance.
28
+ */
29
+ declare function createUnpluginResolver<TContext extends UnresolvedContext>(context: TContext, options?: CreateUnpluginResolverOptions): () => UnpluginOptions<TContext>;
30
+ interface CreateUnpluginOptions extends CreateUnpluginResolverOptions {}
31
+ /**
32
+ * Creates a Powerlines unplugin instance.
33
+ *
34
+ * @param context - The plugin context.
35
+ * @returns The unplugin instance.
36
+ */
37
+ declare function createUnplugin<TContext extends PluginContext = PluginContext>(context: TContext, options?: CreateUnpluginOptions): () => UnpluginOptions<TContext>;
38
+ //#endregion
39
+ export { CreateUnpluginOptions, CreateUnpluginResolverOptions, createUnplugin, createUnpluginResolver };
40
+ //# sourceMappingURL=plugin.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.d.cts","names":[],"sources":["../../../src/lib/unplugin/plugin.ts"],"mappings":";;;;;UAoCiB,6BAAA,SAAsC,8CAA8C;;AAArG;;;;;;;EASE,IAAA;EAOkB;AASpB;;;;EATE,kBAAA;AAAA;;;;;;;iBASc,sBAAA,kBAAwC,iBAAA,EACtD,OAAA,EAAS,QAAA,EACT,OAAA,GAAS,6BAAA,SACF,eAAA,CAAgB,QAAA;AAAA,UA8BR,qBAAA,SAA8B,6BAA6B;;;;;AA9B3C;AA8BjC;iBAQgB,cAAA,kBAAgC,aAAA,GAAgB,aAAA,EAC9D,OAAA,EAAS,QAAA,EACT,OAAA,GAAS,qBAAA,SACF,eAAA,CAAgB,QAAA"}
@@ -1,2 +1,40 @@
1
- import { i as createUnpluginResolver, n as CreateUnpluginResolverOptions, r as createUnplugin, t as CreateUnpluginOptions } from "../../plugin-B_b7XqaN.mjs";
2
- export { CreateUnpluginOptions, CreateUnpluginResolverOptions, createUnplugin, createUnpluginResolver };
1
+ import { UnpluginOptions } from "../../types/unplugin.mjs";
2
+ import { PluginContext, UnresolvedContext } from "../../types/context.mjs";
3
+ import { CreateUnpluginModuleResolutionFunctionsOptions } from "./module-resolution.mjs";
4
+
5
+ //#region src/lib/unplugin/plugin.d.ts
6
+ interface CreateUnpluginResolverOptions extends CreateUnpluginModuleResolutionFunctionsOptions {
7
+ /**
8
+ * A name to use for the unplugin instance. This is used for logging and to generate the plugin name. It does not affect the functionality of the plugin.
9
+ *
10
+ * @remarks
11
+ * If not provided, the plugin will be named "powerlines". If provided, the plugin will be named `${name} - Powerlines` (e.g., "MyPlugin - Powerlines").
12
+ *
13
+ * @defaultValue "powerlines"
14
+ */
15
+ name?: string;
16
+ /**
17
+ * Whether to silence logging for the plugin hooks. This can be useful for plugins that run frequently or have hooks that are called often, to reduce noise in the logs. When set to `true`, the plugin will not log any messages for its hooks. When set to `false` (the default), the plugin will log messages for its hooks as normal.
18
+ *
19
+ * @defaultValue false
20
+ */
21
+ silenceHookLogging?: boolean;
22
+ }
23
+ /**
24
+ * Creates a Powerlines unplugin instance.
25
+ *
26
+ * @param context - The plugin context.
27
+ * @returns The unplugin instance.
28
+ */
29
+ declare function createUnpluginResolver<TContext extends UnresolvedContext>(context: TContext, options?: CreateUnpluginResolverOptions): () => UnpluginOptions<TContext>;
30
+ interface CreateUnpluginOptions extends CreateUnpluginResolverOptions {}
31
+ /**
32
+ * Creates a Powerlines unplugin instance.
33
+ *
34
+ * @param context - The plugin context.
35
+ * @returns The unplugin instance.
36
+ */
37
+ declare function createUnplugin<TContext extends PluginContext = PluginContext>(context: TContext, options?: CreateUnpluginOptions): () => UnpluginOptions<TContext>;
38
+ //#endregion
39
+ export { CreateUnpluginOptions, CreateUnpluginResolverOptions, createUnplugin, createUnpluginResolver };
40
+ //# sourceMappingURL=plugin.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.d.mts","names":[],"sources":["../../../src/lib/unplugin/plugin.ts"],"mappings":";;;;;UAoCiB,6BAAA,SAAsC,8CAA8C;;AAArG;;;;;;;EASE,IAAA;EAOkB;AASpB;;;;EATE,kBAAA;AAAA;;;;;;;iBASc,sBAAA,kBAAwC,iBAAA,EACtD,OAAA,EAAS,QAAA,EACT,OAAA,GAAS,6BAAA,SACF,eAAA,CAAgB,QAAA;AAAA,UA8BR,qBAAA,SAA8B,6BAA6B;;;;;AA9B3C;AA8BjC;iBAQgB,cAAA,kBAAgC,aAAA,GAAgB,aAAA,EAC9D,OAAA,EAAS,QAAA,EACT,OAAA,GAAS,qBAAA,SACF,eAAA,CAAgB,QAAA"}
@@ -1,2 +1,41 @@
1
- import { a as getTypescriptFileHeader, i as getFileHeaderWarningText, n as getFileHeader, r as getFileHeaderWarning, t as FileHeaderOptions } from "../../file-header-Co9oo7aI.cjs";
2
- export { FileHeaderOptions, getFileHeader, getFileHeaderWarning, getFileHeaderWarningText, getTypescriptFileHeader };
1
+ import { Context } from "../../types/context.cjs";
2
+
3
+ //#region src/lib/utilities/file-header.d.ts
4
+ interface FileHeaderOptions {
5
+ directive?: string | null;
6
+ prettierIgnore?: boolean;
7
+ }
8
+ /**
9
+ * Generates a file header comment with a warning about automatic overwriting.
10
+ *
11
+ * @param overwrite - Whether the file will be automatically overwritten. If `false`, the warning will indicate that the file will not be overwritten. If `true` or omitted, the warning will indicate that the file will be overwritten.
12
+ * @param framework - The name of the framework to include in the warning message. Defaults to "powerlines".
13
+ * @returns A string containing the file header warning message.
14
+ */
15
+ declare function getFileHeaderWarningText(overwrite?: boolean, framework?: string): string;
16
+ /**
17
+ * Generates a file header warning message based on the provided context.
18
+ *
19
+ * @param context - The Powerlines context.
20
+ * @returns A string containing the file header warning message.
21
+ */
22
+ declare function getFileHeaderWarning(context: Context): string;
23
+ /**
24
+ * Generates a file header comment for a generated source file, including a warning about automatic overwriting.
25
+ *
26
+ * @param context - The Powerlines context.
27
+ * @param comment - The comment syntax to use for the header (e.g., `//` for JavaScript/TypeScript, `#` for Python). Defaults to `//`.
28
+ * @returns A string containing the file header comment.
29
+ */
30
+ declare function getFileHeader(context: Context, comment?: string): string;
31
+ /**
32
+ * Generates a file header comment for a generated TypeScript source file, including a warning about automatic overwriting.
33
+ *
34
+ * @param context - The Powerlines context.
35
+ * @param options - Additional options for generating the file header, such as a directive to include and whether to add a Prettier ignore comment.
36
+ * @returns A string containing the file header comment for a TypeScript file.
37
+ */
38
+ declare function getTypescriptFileHeader(context: Context, options?: FileHeaderOptions): string;
39
+ //#endregion
40
+ export { FileHeaderOptions, getFileHeader, getFileHeaderWarning, getFileHeaderWarningText, getTypescriptFileHeader };
41
+ //# sourceMappingURL=file-header.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file-header.d.cts","names":[],"sources":["../../../src/lib/utilities/file-header.ts"],"mappings":";;;UAqBiB,iBAAA;EACf,SAAA;EACA,cAAc;AAAA;;;AAAA;AAUhB;;;;iBAAgB,wBAAA,CACd,SAAA,YACA,SAAwB;AAa1B;;;;AAAqD;AAcrD;AAdA,iBAAgB,oBAAA,CAAqB,OAAgB,EAAP,OAAO;;;;;;;AAcS;iBAA9C,aAAA,CAAc,OAAA,EAAS,OAAO,EAAE,OAAA;;;;;;;;iBAchC,uBAAA,CACd,OAAA,EAAS,OAAA,EACT,OAAA,GAAS,iBAAsB"}
@@ -1,2 +1,41 @@
1
- import { a as getTypescriptFileHeader, i as getFileHeaderWarningText, n as getFileHeader, r as getFileHeaderWarning, t as FileHeaderOptions } from "../../file-header-rHqeXgRV.mjs";
2
- export { FileHeaderOptions, getFileHeader, getFileHeaderWarning, getFileHeaderWarningText, getTypescriptFileHeader };
1
+ import { Context } from "../../types/context.mjs";
2
+
3
+ //#region src/lib/utilities/file-header.d.ts
4
+ interface FileHeaderOptions {
5
+ directive?: string | null;
6
+ prettierIgnore?: boolean;
7
+ }
8
+ /**
9
+ * Generates a file header comment with a warning about automatic overwriting.
10
+ *
11
+ * @param overwrite - Whether the file will be automatically overwritten. If `false`, the warning will indicate that the file will not be overwritten. If `true` or omitted, the warning will indicate that the file will be overwritten.
12
+ * @param framework - The name of the framework to include in the warning message. Defaults to "powerlines".
13
+ * @returns A string containing the file header warning message.
14
+ */
15
+ declare function getFileHeaderWarningText(overwrite?: boolean, framework?: string): string;
16
+ /**
17
+ * Generates a file header warning message based on the provided context.
18
+ *
19
+ * @param context - The Powerlines context.
20
+ * @returns A string containing the file header warning message.
21
+ */
22
+ declare function getFileHeaderWarning(context: Context): string;
23
+ /**
24
+ * Generates a file header comment for a generated source file, including a warning about automatic overwriting.
25
+ *
26
+ * @param context - The Powerlines context.
27
+ * @param comment - The comment syntax to use for the header (e.g., `//` for JavaScript/TypeScript, `#` for Python). Defaults to `//`.
28
+ * @returns A string containing the file header comment.
29
+ */
30
+ declare function getFileHeader(context: Context, comment?: string): string;
31
+ /**
32
+ * Generates a file header comment for a generated TypeScript source file, including a warning about automatic overwriting.
33
+ *
34
+ * @param context - The Powerlines context.
35
+ * @param options - Additional options for generating the file header, such as a directive to include and whether to add a Prettier ignore comment.
36
+ * @returns A string containing the file header comment for a TypeScript file.
37
+ */
38
+ declare function getTypescriptFileHeader(context: Context, options?: FileHeaderOptions): string;
39
+ //#endregion
40
+ export { FileHeaderOptions, getFileHeader, getFileHeaderWarning, getFileHeaderWarningText, getTypescriptFileHeader };
41
+ //# sourceMappingURL=file-header.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file-header.d.mts","names":[],"sources":["../../../src/lib/utilities/file-header.ts"],"mappings":";;;UAqBiB,iBAAA;EACf,SAAA;EACA,cAAc;AAAA;;;AAAA;AAUhB;;;;iBAAgB,wBAAA,CACd,SAAA,YACA,SAAwB;AAa1B;;;;AAAqD;AAcrD;AAdA,iBAAgB,oBAAA,CAAqB,OAAgB,EAAP,OAAO;;;;;;;AAcS;iBAA9C,aAAA,CAAc,OAAA,EAAS,OAAO,EAAE,OAAA;;;;;;;;iBAchC,uBAAA,CACd,OAAA,EAAS,OAAA,EACT,OAAA,GAAS,iBAAsB"}
@@ -1,5 +1,5 @@
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_path_append = require("@stryke/path/append");
4
4
  let _stryke_path_file_path_fns = require("@stryke/path/file-path-fns");
5
5
  let defu = require("defu");
@@ -7,7 +7,7 @@ let _stryke_fs_list_files = require("@stryke/fs/list-files");
7
7
  let _stryke_path_is_parent_path = require("@stryke/path/is-parent-path");
8
8
  let prettier = require("prettier");
9
9
  let prettier_plugin_organize_imports = require("prettier-plugin-organize-imports");
10
- prettier_plugin_organize_imports = require_chunk.__toESM(prettier_plugin_organize_imports, 1);
10
+ prettier_plugin_organize_imports = require_runtime.__toESM(prettier_plugin_organize_imports, 1);
11
11
 
12
12
  //#region src/lib/utilities/format.ts
13
13
  /**
@@ -1,2 +1,24 @@
1
- import { n as formatFolder, t as format } from "../../format-Cf-cgZ-s.cjs";
2
- export { format, formatFolder };
1
+ import { Context } from "../../types/context.cjs";
2
+
3
+ //#region src/lib/utilities/format.d.ts
4
+ /**
5
+ * Formats code using Prettier based on the file path.
6
+ *
7
+ * @param context - The Powerlines context.
8
+ * @param path - The file path to use for resolving Prettier configuration.
9
+ * @param data - The code string to format.
10
+ * @param force - Whether to force formatting even for output/build paths.
11
+ * @returns A promise that resolves to the formatted code string.
12
+ */
13
+ declare function format(context: Context, path: string, data: string, force?: boolean): Promise<string>;
14
+ /**
15
+ * Formats all files in a folder using Prettier based on their file paths.
16
+ *
17
+ * @param context - The Powerlines context.
18
+ * @param path - The folder path containing files to format.
19
+ * @returns A promise that resolves when all files have been formatted.
20
+ */
21
+ declare function formatFolder(context: Context, path: string): Promise<void>;
22
+ //#endregion
23
+ export { format, formatFolder };
24
+ //# sourceMappingURL=format.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format.d.cts","names":[],"sources":["../../../src/lib/utilities/format.ts"],"mappings":";;;;;AAoCA;;;;;;;iBAAsB,MAAA,CACpB,OAAA,EAAS,OAAA,EACT,IAAA,UACA,IAAA,UACA,KAAA,aACC,OAAO;;;;AAAA;AAoDV;;;iBAAsB,YAAA,CAAa,OAAA,EAAS,OAAA,EAAS,IAAA,WAAY,OAAA"}
@@ -1,2 +1,24 @@
1
- import { n as formatFolder, t as format } from "../../format-IQPqgWIe.mjs";
2
- export { format, formatFolder };
1
+ import { Context } from "../../types/context.mjs";
2
+
3
+ //#region src/lib/utilities/format.d.ts
4
+ /**
5
+ * Formats code using Prettier based on the file path.
6
+ *
7
+ * @param context - The Powerlines context.
8
+ * @param path - The file path to use for resolving Prettier configuration.
9
+ * @param data - The code string to format.
10
+ * @param force - Whether to force formatting even for output/build paths.
11
+ * @returns A promise that resolves to the formatted code string.
12
+ */
13
+ declare function format(context: Context, path: string, data: string, force?: boolean): Promise<string>;
14
+ /**
15
+ * Formats all files in a folder using Prettier based on their file paths.
16
+ *
17
+ * @param context - The Powerlines context.
18
+ * @param path - The folder path containing files to format.
19
+ * @returns A promise that resolves when all files have been formatted.
20
+ */
21
+ declare function formatFolder(context: Context, path: string): Promise<void>;
22
+ //#endregion
23
+ export { format, formatFolder };
24
+ //# sourceMappingURL=format.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format.d.mts","names":[],"sources":["../../../src/lib/utilities/format.ts"],"mappings":";;;;;AAoCA;;;;;;;iBAAsB,MAAA,CACpB,OAAA,EAAS,OAAA,EACT,IAAA,UACA,IAAA,UACA,KAAA,aACC,OAAO;;;;AAAA;AAoDV;;;iBAAsB,YAAA,CAAa,OAAA,EAAS,OAAA,EAAS,IAAA,WAAY,OAAA"}
@@ -1,6 +1,6 @@
1
- import { a as getTypescriptFileHeader, i as getFileHeaderWarningText, n as getFileHeader, r as getFileHeaderWarning, t as FileHeaderOptions } from "../../file-header-Co9oo7aI.cjs";
2
- import { n as formatFolder, t as format } from "../../format-Cf-cgZ-s.cjs";
3
- import { n as getSourceFile, r as getString, t as getMagicString } from "../../source-file-CuuHaBL5.cjs";
4
- import { t as generateSourceMap } from "../../source-map-HU4IoICc.cjs";
5
- import { t as writeFile } from "../../write-file-BVMnXVPo.cjs";
1
+ import { FileHeaderOptions, getFileHeader, getFileHeaderWarning, getFileHeaderWarningText, getTypescriptFileHeader } from "./file-header.cjs";
2
+ import { format, formatFolder } from "./format.cjs";
3
+ import { getMagicString, getSourceFile, getString } from "./source-file.cjs";
4
+ import { generateSourceMap } from "./source-map.cjs";
5
+ import { writeFile } from "./write-file.cjs";
6
6
  export { FileHeaderOptions, format, formatFolder, generateSourceMap, getFileHeader, getFileHeaderWarning, getFileHeaderWarningText, getMagicString, getSourceFile, getString, getTypescriptFileHeader, writeFile };
@@ -1,6 +1,6 @@
1
- import { a as getTypescriptFileHeader, i as getFileHeaderWarningText, n as getFileHeader, r as getFileHeaderWarning, t as FileHeaderOptions } from "../../file-header-rHqeXgRV.mjs";
2
- import { n as formatFolder, t as format } from "../../format-IQPqgWIe.mjs";
3
- import { n as getSourceFile, r as getString, t as getMagicString } from "../../source-file-CLw13fKE.mjs";
4
- import { t as generateSourceMap } from "../../source-map-Cy0aqSpe.mjs";
5
- import { t as writeFile } from "../../write-file-CWf9Xxwd.mjs";
1
+ import { FileHeaderOptions, getFileHeader, getFileHeaderWarning, getFileHeaderWarningText, getTypescriptFileHeader } from "./file-header.mjs";
2
+ import { format, formatFolder } from "./format.mjs";
3
+ import { getMagicString, getSourceFile, getString } from "./source-file.mjs";
4
+ import { generateSourceMap } from "./source-map.mjs";
5
+ import { writeFile } from "./write-file.mjs";
6
6
  export { FileHeaderOptions, format, formatFolder, generateSourceMap, getFileHeader, getFileHeaderWarning, getFileHeaderWarningText, getMagicString, getSourceFile, getString, getTypescriptFileHeader, writeFile };
@@ -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
  let _stryke_type_checks_is_set_object = require("@stryke/type-checks/is-set-object");
4
4
  let _stryke_type_checks_is_string = require("@stryke/type-checks/is-string");
5
5
  let _stryke_fs_read_file = require("@stryke/fs/read-file");
6
6
  let magic_string = require("magic-string");
7
- magic_string = require_chunk.__toESM(magic_string, 1);
7
+ magic_string = require_runtime.__toESM(magic_string, 1);
8
8
 
9
9
  //#region src/lib/utilities/source-file.ts
10
10
  /**
@@ -1,2 +1,30 @@
1
- import { n as getSourceFile, r as getString, t as getMagicString } from "../../source-file-CuuHaBL5.cjs";
2
- export { getMagicString, getSourceFile, getString };
1
+ import { SourceFile } from "../../types/context.cjs";
2
+ import MagicString from "magic-string";
3
+ import { TransformResult } from "unplugin";
4
+
5
+ //#region src/lib/utilities/source-file.d.ts
6
+ /**
7
+ * Get the string from the source.
8
+ *
9
+ * @param code - The source string or magic string.
10
+ * @returns The source string.
11
+ */
12
+ declare function getString(code: string | MagicString | TransformResult): string;
13
+ /**
14
+ * Get the magic string.
15
+ *
16
+ * @param code - The source string or magic string.
17
+ * @returns The magic string.
18
+ */
19
+ declare function getMagicString(code: string | MagicString): MagicString;
20
+ /**
21
+ * Get the source file.
22
+ *
23
+ * @param code - The source code.
24
+ * @param id - The name of the file.
25
+ * @returns The source file.
26
+ */
27
+ declare function getSourceFile(code: string | MagicString, id: string): SourceFile;
28
+ //#endregion
29
+ export { getMagicString, getSourceFile, getString };
30
+ //# sourceMappingURL=source-file.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"source-file.d.cts","names":[],"sources":["../../../src/lib/utilities/source-file.ts"],"mappings":";;;;;;;AA+BA;;;;iBAAgB,SAAA,CACd,IAAA,WAAe,WAAA,GAAc,eAAe;;;;AAAA;AAuB9C;;iBAAgB,cAAA,CAAe,IAAA,WAAe,WAAA,GAAc,WAAW;;;;;;AAAA;AAevE;iBAAgB,aAAA,CACd,IAAA,WAAe,WAAA,EACf,EAAA,WACC,UAAU"}
@@ -1,2 +1,30 @@
1
- import { n as getSourceFile, r as getString, t as getMagicString } from "../../source-file-CLw13fKE.mjs";
2
- export { getMagicString, getSourceFile, getString };
1
+ import { SourceFile } from "../../types/context.mjs";
2
+ import { TransformResult } from "unplugin";
3
+ import MagicString from "magic-string";
4
+
5
+ //#region src/lib/utilities/source-file.d.ts
6
+ /**
7
+ * Get the string from the source.
8
+ *
9
+ * @param code - The source string or magic string.
10
+ * @returns The source string.
11
+ */
12
+ declare function getString(code: string | MagicString | TransformResult): string;
13
+ /**
14
+ * Get the magic string.
15
+ *
16
+ * @param code - The source string or magic string.
17
+ * @returns The magic string.
18
+ */
19
+ declare function getMagicString(code: string | MagicString): MagicString;
20
+ /**
21
+ * Get the source file.
22
+ *
23
+ * @param code - The source code.
24
+ * @param id - The name of the file.
25
+ * @returns The source file.
26
+ */
27
+ declare function getSourceFile(code: string | MagicString, id: string): SourceFile;
28
+ //#endregion
29
+ export { getMagicString, getSourceFile, getString };
30
+ //# sourceMappingURL=source-file.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"source-file.d.mts","names":[],"sources":["../../../src/lib/utilities/source-file.ts"],"mappings":";;;;;;;AA+BA;;;;iBAAgB,SAAA,CACd,IAAA,WAAe,WAAA,GAAc,eAAe;;;;AAAA;AAuB9C;;iBAAgB,cAAA,CAAe,IAAA,WAAe,WAAA,GAAc,WAAW;;;;;;AAAA;AAevE;iBAAgB,aAAA,CACd,IAAA,WAAe,WAAA,EACf,EAAA,WACC,UAAU"}
@@ -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 diff_match_patch = require("diff-match-patch");
4
- diff_match_patch = require_chunk.__toESM(diff_match_patch, 1);
4
+ diff_match_patch = require_runtime.__toESM(diff_match_patch, 1);
5
5
 
6
6
  //#region src/lib/utilities/source-map.ts
7
7
  const dmp = new diff_match_patch.default();
@@ -1,2 +1,16 @@
1
- import { t as generateSourceMap } from "../../source-map-HU4IoICc.cjs";
2
- export { generateSourceMap };
1
+ import { TransformResult } from "../../types/context.cjs";
2
+ import MagicString from "magic-string";
3
+
4
+ //#region src/lib/utilities/source-map.d.ts
5
+ /**
6
+ * Generate code with source map.
7
+ *
8
+ * @param code - The source code.
9
+ * @param id - The file name.
10
+ * @param transpiled - The transpiled code.
11
+ * @returns The compiler result.
12
+ */
13
+ declare function generateSourceMap(code: MagicString, id: string, transpiled?: string): TransformResult | undefined;
14
+ //#endregion
15
+ export { generateSourceMap };
16
+ //# sourceMappingURL=source-map.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"source-map.d.cts","names":[],"sources":["../../../src/lib/utilities/source-map.ts"],"mappings":";;;;;;AAgCA;;;;;;iBAAgB,iBAAA,CACd,IAAA,EAAM,WAAA,EACN,EAAA,UACA,UAAA,YACC,eAAe"}
@@ -1,2 +1,16 @@
1
- import { t as generateSourceMap } from "../../source-map-Cy0aqSpe.mjs";
2
- export { generateSourceMap };
1
+ import { TransformResult } from "../../types/context.mjs";
2
+ import MagicString from "magic-string";
3
+
4
+ //#region src/lib/utilities/source-map.d.ts
5
+ /**
6
+ * Generate code with source map.
7
+ *
8
+ * @param code - The source code.
9
+ * @param id - The file name.
10
+ * @param transpiled - The transpiled code.
11
+ * @returns The compiler result.
12
+ */
13
+ declare function generateSourceMap(code: MagicString, id: string, transpiled?: string): TransformResult | undefined;
14
+ //#endregion
15
+ export { generateSourceMap };
16
+ //# sourceMappingURL=source-map.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"source-map.d.mts","names":[],"sources":["../../../src/lib/utilities/source-map.ts"],"mappings":";;;;;;AAgCA;;;;;;iBAAgB,iBAAA,CACd,IAAA,EAAM,WAAA,EACN,EAAA,UACA,UAAA,YACC,eAAe"}
@@ -1,2 +1,15 @@
1
- import { t as writeFile } from "../../write-file-BVMnXVPo.cjs";
2
- export { writeFile };
1
+ import { LogFn } from "../../types/logging.cjs";
2
+
3
+ //#region src/lib/utilities/write-file.d.ts
4
+ /**
5
+ * Writes and formats a file to the file system
6
+ *
7
+ * @param log - The logging function to use for logging errors
8
+ * @param filepath - The file path to write the file
9
+ * @param content - The content to write to the file
10
+ * @param skipFormat - Should the plugin skip formatting the `content` string with Prettier
11
+ */
12
+ declare function writeFile(log: LogFn, filepath: string, content: string, skipFormat?: boolean): Promise<void>;
13
+ //#endregion
14
+ export { writeFile };
15
+ //# sourceMappingURL=write-file.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"write-file.d.cts","names":[],"sources":["../../../src/lib/utilities/write-file.ts"],"mappings":";;;;;AA8BA;;;;;;iBAAsB,SAAA,CACpB,GAAA,EAAK,KAAA,EACL,QAAA,UACA,OAAA,UACA,UAAA,aAAkB,OAAA"}
@@ -1,2 +1,15 @@
1
- import { t as writeFile } from "../../write-file-CWf9Xxwd.mjs";
2
- export { writeFile };
1
+ import { LogFn } from "../../types/logging.mjs";
2
+
3
+ //#region src/lib/utilities/write-file.d.ts
4
+ /**
5
+ * Writes and formats a file to the file system
6
+ *
7
+ * @param log - The logging function to use for logging errors
8
+ * @param filepath - The file path to write the file
9
+ * @param content - The content to write to the file
10
+ * @param skipFormat - Should the plugin skip formatting the `content` string with Prettier
11
+ */
12
+ declare function writeFile(log: LogFn, filepath: string, content: string, skipFormat?: boolean): Promise<void>;
13
+ //#endregion
14
+ export { writeFile };
15
+ //# sourceMappingURL=write-file.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"write-file.d.mts","names":[],"sources":["../../../src/lib/utilities/write-file.ts"],"mappings":";;;;;AA8BA;;;;;;iBAAsB,SAAA,CACpB,GAAA,EAAK,KAAA,EACL,QAAA,UACA,OAAA,UACA,UAAA,aAAkB,OAAA"}
package/dist/lib/vfs.cjs CHANGED
@@ -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_lib_utilities_format = require('./utilities/format.cjs');
4
4
  const require_plugin_utils_paths = require('../plugin-utils/paths.cjs');
5
5
  require('../plugin-utils/index.cjs');
6
6
  const require_constants_extensions = require('../constants/extensions.cjs');
7
- const require_fs = require('../fs-C2lru696.cjs');
7
+ const require_fs = require('../schemas/fs.cjs');
8
8
  const require_storage_file_system = require('../storage/file-system.cjs');
9
9
  const require_storage_virtual = require('../storage/virtual.cjs');
10
10
  let _stryke_fs_exists = require("@stryke/fs/exists");
@@ -25,7 +25,7 @@ let _stryke_hash = require("@stryke/hash");
25
25
  let _stryke_fs_resolve = require("@stryke/fs/resolve");
26
26
  let _stryke_string_format_pretty_bytes = require("@stryke/string-format/pretty-bytes");
27
27
  let _stryke_capnp = require("@stryke/capnp");
28
- _stryke_capnp = require_chunk.__toESM(_stryke_capnp, 1);
28
+ _stryke_capnp = require_runtime.__toESM(_stryke_capnp, 1);
29
29
  let _stryke_fs_buffer = require("@stryke/fs/buffer");
30
30
  let _stryke_path_correct_path = require("@stryke/path/correct-path");
31
31
  let _stryke_path_glob_to_regex = require("@stryke/path/glob-to-regex");