@powerlines/core 0.14.5 → 0.15.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (391) hide show
  1. package/dist/constants/api.cjs +6 -5
  2. package/dist/constants/api.d.cts +3 -3
  3. package/dist/constants/api.d.cts.map +1 -1
  4. package/dist/constants/api.d.mts +3 -3
  5. package/dist/constants/api.d.mts.map +1 -1
  6. package/dist/constants/api.mjs +4 -4
  7. package/dist/constants/api.mjs.map +1 -1
  8. package/dist/constants/commands.cjs +3 -2
  9. package/dist/constants/commands.d.cts +1 -1
  10. package/dist/constants/commands.d.mts +1 -1
  11. package/dist/constants/commands.mjs +2 -2
  12. package/dist/constants/commands.mjs.map +1 -1
  13. package/dist/constants/devtools.cjs +23 -0
  14. package/dist/constants/devtools.d.cts +13 -0
  15. package/dist/constants/devtools.d.cts.map +1 -0
  16. package/dist/constants/devtools.d.mts +13 -0
  17. package/dist/constants/devtools.d.mts.map +1 -0
  18. package/dist/constants/devtools.mjs +14 -0
  19. package/dist/constants/devtools.mjs.map +1 -0
  20. package/dist/constants/environments.cjs +1 -0
  21. package/dist/constants/extensions.cjs +21 -0
  22. package/dist/constants/extensions.d.cts +5 -0
  23. package/dist/constants/extensions.d.cts.map +1 -0
  24. package/dist/constants/extensions.d.mts +5 -0
  25. package/dist/constants/extensions.d.mts.map +1 -0
  26. package/dist/constants/extensions.mjs +20 -0
  27. package/dist/constants/extensions.mjs.map +1 -0
  28. package/dist/constants/fs.cjs +1 -0
  29. package/dist/constants/hooks.cjs +1 -0
  30. package/dist/constants/index.cjs +48 -30
  31. package/dist/constants/index.d.cts +5 -3
  32. package/dist/constants/index.d.mts +5 -3
  33. package/dist/constants/index.mjs +5 -3
  34. package/dist/constants/log-level.cjs +90 -0
  35. package/dist/constants/log-level.d.cts +63 -0
  36. package/dist/constants/log-level.d.cts.map +1 -0
  37. package/dist/constants/log-level.d.mts +63 -0
  38. package/dist/constants/log-level.d.mts.map +1 -0
  39. package/dist/constants/log-level.mjs +82 -0
  40. package/dist/constants/log-level.mjs.map +1 -0
  41. package/dist/constants/meta.cjs +1 -0
  42. package/dist/constants/plugin.cjs +3 -2
  43. package/dist/constants/plugin.d.cts +2 -2
  44. package/dist/constants/plugin.d.mts +2 -2
  45. package/dist/context/base-context.cjs +127 -0
  46. package/dist/context/base-context.d.cts +81 -0
  47. package/dist/context/base-context.d.cts.map +1 -0
  48. package/dist/context/base-context.d.mts +81 -0
  49. package/dist/context/base-context.d.mts.map +1 -0
  50. package/dist/context/base-context.mjs +125 -0
  51. package/dist/context/base-context.mjs.map +1 -0
  52. package/dist/context/context.cjs +934 -0
  53. package/dist/context/context.d.cts +369 -0
  54. package/dist/context/context.d.cts.map +1 -0
  55. package/dist/context/context.d.mts +369 -0
  56. package/dist/context/context.d.mts.map +1 -0
  57. package/dist/context/context.mjs +932 -0
  58. package/dist/context/context.mjs.map +1 -0
  59. package/dist/context/environment-context.cjs +219 -0
  60. package/dist/context/environment-context.d.cts +100 -0
  61. package/dist/context/environment-context.d.cts.map +1 -0
  62. package/dist/context/environment-context.d.mts +100 -0
  63. package/dist/context/environment-context.d.mts.map +1 -0
  64. package/dist/context/environment-context.mjs +218 -0
  65. package/dist/context/environment-context.mjs.map +1 -0
  66. package/dist/context/execution-context.cjs +230 -0
  67. package/dist/context/execution-context.d.cts +101 -0
  68. package/dist/context/execution-context.d.cts.map +1 -0
  69. package/dist/context/execution-context.d.mts +101 -0
  70. package/dist/context/execution-context.d.mts.map +1 -0
  71. package/dist/context/execution-context.mjs +228 -0
  72. package/dist/context/execution-context.mjs.map +1 -0
  73. package/dist/context/index.cjs +12 -0
  74. package/dist/context/index.d.cts +6 -0
  75. package/dist/context/index.d.mts +6 -0
  76. package/dist/context/index.mjs +7 -0
  77. package/dist/context/plugin-context.cjs +83 -0
  78. package/dist/context/plugin-context.d.cts +18 -0
  79. package/dist/context/plugin-context.d.cts.map +1 -0
  80. package/dist/context/plugin-context.d.mts +18 -0
  81. package/dist/context/plugin-context.d.mts.map +1 -0
  82. package/dist/context/plugin-context.mjs +82 -0
  83. package/dist/context/plugin-context.mjs.map +1 -0
  84. package/dist/index.cjs +62 -9
  85. package/dist/index.d.cts +20 -9
  86. package/dist/index.d.mts +20 -9
  87. package/dist/index.mjs +17 -5
  88. package/dist/lib/config.cjs +160 -15
  89. package/dist/lib/config.d.cts +92 -6
  90. package/dist/lib/config.d.cts.map +1 -1
  91. package/dist/lib/config.d.mts +92 -6
  92. package/dist/lib/config.d.mts.map +1 -1
  93. package/dist/lib/config.mjs +154 -16
  94. package/dist/lib/config.mjs.map +1 -1
  95. package/dist/lib/context-helpers.cjs +43 -0
  96. package/dist/lib/context-helpers.d.cts +19 -0
  97. package/dist/lib/context-helpers.d.cts.map +1 -0
  98. package/dist/lib/context-helpers.d.mts +19 -0
  99. package/dist/lib/context-helpers.d.mts.map +1 -0
  100. package/dist/lib/context-helpers.mjs +41 -0
  101. package/dist/lib/context-helpers.mjs.map +1 -0
  102. package/dist/lib/entry.cjs +5 -5
  103. package/dist/lib/entry.d.cts.map +1 -1
  104. package/dist/lib/entry.d.mts.map +1 -1
  105. package/dist/lib/entry.mjs +5 -5
  106. package/dist/lib/entry.mjs.map +1 -1
  107. package/dist/lib/environment.cjs +72 -0
  108. package/dist/lib/environment.d.cts +12 -0
  109. package/dist/lib/environment.d.cts.map +1 -0
  110. package/dist/lib/environment.d.mts +12 -0
  111. package/dist/lib/environment.d.mts.map +1 -0
  112. package/dist/lib/environment.mjs +67 -0
  113. package/dist/lib/environment.mjs.map +1 -0
  114. package/dist/lib/events.cjs +43 -0
  115. package/dist/lib/events.d.cts +10 -0
  116. package/dist/lib/events.d.cts.map +1 -0
  117. package/dist/lib/events.d.mts +10 -0
  118. package/dist/lib/events.d.mts.map +1 -0
  119. package/dist/lib/events.mjs +42 -0
  120. package/dist/lib/events.mjs.map +1 -0
  121. package/dist/lib/generate-types.cjs +371 -0
  122. package/dist/lib/generate-types.d.cts +67 -0
  123. package/dist/lib/generate-types.d.cts.map +1 -0
  124. package/dist/lib/generate-types.d.mts +67 -0
  125. package/dist/lib/generate-types.d.mts.map +1 -0
  126. package/dist/lib/generate-types.mjs +368 -0
  127. package/dist/lib/generate-types.mjs.map +1 -0
  128. package/dist/lib/hooks.cjs +152 -0
  129. package/dist/lib/hooks.d.cts +28 -0
  130. package/dist/lib/hooks.d.cts.map +1 -0
  131. package/dist/lib/hooks.d.mts +28 -0
  132. package/dist/lib/hooks.d.mts.map +1 -0
  133. package/dist/lib/hooks.mjs +147 -0
  134. package/dist/lib/hooks.mjs.map +1 -0
  135. package/dist/lib/index.cjs +64 -9
  136. package/dist/lib/index.d.cts +15 -3
  137. package/dist/lib/index.d.mts +15 -3
  138. package/dist/lib/index.mjs +19 -5
  139. package/dist/lib/install-dependencies.cjs +25 -0
  140. package/dist/lib/install-dependencies.d.cts +12 -0
  141. package/dist/lib/install-dependencies.d.cts.map +1 -0
  142. package/dist/lib/install-dependencies.d.mts +12 -0
  143. package/dist/lib/install-dependencies.d.mts.map +1 -0
  144. package/dist/lib/install-dependencies.mjs +24 -0
  145. package/dist/lib/install-dependencies.mjs.map +1 -0
  146. package/dist/lib/meta.cjs +57 -0
  147. package/dist/lib/meta.d.cts +34 -0
  148. package/dist/lib/meta.d.cts.map +1 -0
  149. package/dist/lib/meta.d.mts +34 -0
  150. package/dist/lib/meta.d.mts.map +1 -0
  151. package/dist/lib/meta.mjs +54 -0
  152. package/dist/lib/meta.mjs.map +1 -0
  153. package/dist/lib/plugins.cjs +150 -0
  154. package/dist/lib/plugins.d.cts +40 -0
  155. package/dist/lib/plugins.d.cts.map +1 -0
  156. package/dist/lib/plugins.d.mts +40 -0
  157. package/dist/lib/plugins.d.mts.map +1 -0
  158. package/dist/lib/plugins.mjs +146 -0
  159. package/dist/lib/plugins.mjs.map +1 -0
  160. package/dist/lib/resolver.cjs +35 -0
  161. package/dist/lib/resolver.d.cts +21 -0
  162. package/dist/lib/resolver.d.cts.map +1 -0
  163. package/dist/lib/resolver.d.mts +21 -0
  164. package/dist/lib/resolver.d.mts.map +1 -0
  165. package/dist/lib/resolver.mjs +33 -0
  166. package/dist/lib/resolver.mjs.map +1 -0
  167. package/dist/lib/schemas.cjs +9 -0
  168. package/dist/lib/schemas.d.cts +2 -0
  169. package/dist/lib/schemas.d.mts +2 -0
  170. package/dist/lib/schemas.mjs +3 -0
  171. package/dist/lib/streaming-channel.cjs +260 -0
  172. package/dist/lib/streaming-channel.d.cts +133 -0
  173. package/dist/lib/streaming-channel.d.cts.map +1 -0
  174. package/dist/lib/streaming-channel.d.mts +133 -0
  175. package/dist/lib/streaming-channel.d.mts.map +1 -0
  176. package/dist/lib/streaming-channel.mjs +258 -0
  177. package/dist/lib/streaming-channel.mjs.map +1 -0
  178. package/dist/lib/typescript/index.cjs +16 -0
  179. package/dist/lib/typescript/index.d.cts +3 -0
  180. package/dist/lib/typescript/index.d.mts +3 -0
  181. package/dist/lib/typescript/index.mjs +4 -0
  182. package/dist/lib/typescript/ts-morph.cjs +105 -0
  183. package/dist/lib/typescript/ts-morph.d.cts +38 -0
  184. package/dist/lib/typescript/ts-morph.d.cts.map +1 -0
  185. package/dist/lib/typescript/ts-morph.d.mts +38 -0
  186. package/dist/lib/typescript/ts-morph.d.mts.map +1 -0
  187. package/dist/lib/typescript/ts-morph.mjs +102 -0
  188. package/dist/lib/typescript/ts-morph.mjs.map +1 -0
  189. package/dist/lib/typescript/tsconfig.cjs +253 -0
  190. package/dist/lib/typescript/tsconfig.d.cts +77 -0
  191. package/dist/lib/typescript/tsconfig.d.cts.map +1 -0
  192. package/dist/lib/typescript/tsconfig.d.mts +77 -0
  193. package/dist/lib/typescript/tsconfig.d.mts.map +1 -0
  194. package/dist/lib/typescript/tsconfig.mjs +240 -0
  195. package/dist/lib/typescript/tsconfig.mjs.map +1 -0
  196. package/dist/lib/unplugin/helpers.cjs +2 -2
  197. package/dist/lib/unplugin/module-resolution.cjs +18 -18
  198. package/dist/lib/unplugin/module-resolution.mjs +18 -18
  199. package/dist/lib/unplugin/module-resolution.mjs.map +1 -1
  200. package/dist/lib/unplugin/plugin.cjs +55 -62
  201. package/dist/lib/unplugin/plugin.d.cts +10 -11
  202. package/dist/lib/unplugin/plugin.d.cts.map +1 -1
  203. package/dist/lib/unplugin/plugin.d.mts +10 -11
  204. package/dist/lib/unplugin/plugin.d.mts.map +1 -1
  205. package/dist/lib/unplugin/plugin.mjs +55 -62
  206. package/dist/lib/unplugin/plugin.mjs.map +1 -1
  207. package/dist/lib/utilities/file-header.cjs +2 -2
  208. package/dist/lib/utilities/file-header.mjs +2 -2
  209. package/dist/lib/utilities/file-header.mjs.map +1 -1
  210. package/dist/lib/utilities/format.cjs +1 -1
  211. package/dist/lib/utilities/format.mjs +1 -1
  212. package/dist/lib/utilities/index.cjs +2 -2
  213. package/dist/lib/utilities/index.mjs +2 -2
  214. package/dist/lib/utilities/write-file.cjs +1 -2
  215. package/dist/lib/utilities/write-file.d.cts +1 -1
  216. package/dist/lib/utilities/write-file.d.cts.map +1 -1
  217. package/dist/lib/utilities/write-file.d.mts +1 -1
  218. package/dist/lib/utilities/write-file.d.mts.map +1 -1
  219. package/dist/lib/utilities/write-file.mjs +1 -2
  220. package/dist/lib/utilities/write-file.mjs.map +1 -1
  221. package/dist/lib/vfs.cjs +1104 -0
  222. package/dist/lib/vfs.d.cts +321 -0
  223. package/dist/lib/vfs.d.cts.map +1 -0
  224. package/dist/lib/vfs.d.mts +321 -0
  225. package/dist/lib/vfs.d.mts.map +1 -0
  226. package/dist/lib/vfs.mjs +1102 -0
  227. package/dist/lib/vfs.mjs.map +1 -0
  228. package/dist/plugin-base.cjs +1 -1
  229. package/dist/plugin-base.mjs +1 -1
  230. package/dist/plugin-base.mjs.map +1 -1
  231. package/dist/plugin-utils/build-helpers.cjs +2 -2
  232. package/dist/plugin-utils/build-helpers.mjs +2 -2
  233. package/dist/plugin-utils/build-helpers.mjs.map +1 -1
  234. package/dist/plugin-utils/context-helpers.cjs +22 -12
  235. package/dist/plugin-utils/context-helpers.d.cts +9 -1
  236. package/dist/plugin-utils/context-helpers.d.cts.map +1 -1
  237. package/dist/plugin-utils/context-helpers.d.mts +9 -1
  238. package/dist/plugin-utils/context-helpers.d.mts.map +1 -1
  239. package/dist/plugin-utils/context-helpers.mjs +22 -13
  240. package/dist/plugin-utils/context-helpers.mjs.map +1 -1
  241. package/dist/plugin-utils/filter.cjs +13 -5
  242. package/dist/plugin-utils/filter.d.cts +2 -1
  243. package/dist/plugin-utils/filter.d.cts.map +1 -1
  244. package/dist/plugin-utils/filter.d.mts +2 -1
  245. package/dist/plugin-utils/filter.d.mts.map +1 -1
  246. package/dist/plugin-utils/filter.mjs +13 -6
  247. package/dist/plugin-utils/filter.mjs.map +1 -1
  248. package/dist/plugin-utils/format.cjs +44 -0
  249. package/dist/plugin-utils/format.d.cts +11 -0
  250. package/dist/plugin-utils/format.d.cts.map +1 -0
  251. package/dist/plugin-utils/format.d.mts +11 -0
  252. package/dist/plugin-utils/format.d.mts.map +1 -0
  253. package/dist/plugin-utils/format.mjs +43 -0
  254. package/dist/plugin-utils/format.mjs.map +1 -0
  255. package/dist/plugin-utils/helpers.cjs +6 -6
  256. package/dist/plugin-utils/helpers.d.cts +15 -15
  257. package/dist/plugin-utils/helpers.d.cts.map +1 -1
  258. package/dist/plugin-utils/helpers.d.mts +15 -15
  259. package/dist/plugin-utils/helpers.d.mts.map +1 -1
  260. package/dist/plugin-utils/helpers.mjs +1 -1
  261. package/dist/plugin-utils/helpers.mjs.map +1 -1
  262. package/dist/plugin-utils/index.cjs +34 -4
  263. package/dist/plugin-utils/index.d.cts +7 -4
  264. package/dist/plugin-utils/index.d.mts +7 -4
  265. package/dist/plugin-utils/index.mjs +9 -6
  266. package/dist/plugin-utils/install.cjs +47 -0
  267. package/dist/plugin-utils/install.d.cts +23 -0
  268. package/dist/plugin-utils/install.d.cts.map +1 -0
  269. package/dist/plugin-utils/install.d.mts +23 -0
  270. package/dist/plugin-utils/install.d.mts.map +1 -0
  271. package/dist/plugin-utils/install.mjs +45 -0
  272. package/dist/plugin-utils/install.mjs.map +1 -0
  273. package/dist/plugin-utils/logging.cjs +588 -1
  274. package/dist/plugin-utils/logging.d.cts +93 -1
  275. package/dist/plugin-utils/logging.d.cts.map +1 -1
  276. package/dist/plugin-utils/logging.d.mts +93 -1
  277. package/dist/plugin-utils/logging.d.mts.map +1 -1
  278. package/dist/plugin-utils/logging.mjs +572 -1
  279. package/dist/plugin-utils/logging.mjs.map +1 -1
  280. package/dist/plugin-utils/merge.cjs +1 -1
  281. package/dist/plugin-utils/merge.mjs +1 -1
  282. package/dist/plugin-utils/modules.cjs +1 -1
  283. package/dist/plugin-utils/modules.mjs +1 -1
  284. package/dist/plugin-utils/modules.mjs.map +1 -1
  285. package/dist/plugin-utils/paths.cjs +6 -2
  286. package/dist/plugin-utils/paths.mjs +6 -2
  287. package/dist/plugin-utils/paths.mjs.map +1 -1
  288. package/dist/plugin-utils/virtual.cjs +80 -0
  289. package/dist/plugin-utils/virtual.d.cts +69 -0
  290. package/dist/plugin-utils/virtual.d.cts.map +1 -0
  291. package/dist/plugin-utils/virtual.d.mts +69 -0
  292. package/dist/plugin-utils/virtual.d.mts.map +1 -0
  293. package/dist/plugin-utils/virtual.mjs +73 -0
  294. package/dist/plugin-utils/virtual.mjs.map +1 -0
  295. package/dist/schemas/fs.cjs +232 -0
  296. package/dist/schemas/fs.d.cts +127 -0
  297. package/dist/schemas/fs.d.cts.map +1 -0
  298. package/dist/schemas/fs.d.mts +127 -0
  299. package/dist/schemas/fs.d.mts.map +1 -0
  300. package/dist/schemas/fs.mjs +226 -0
  301. package/dist/schemas/fs.mjs.map +1 -0
  302. package/dist/storage/base.cjs +216 -0
  303. package/dist/storage/base.d.cts +201 -0
  304. package/dist/storage/base.d.cts.map +1 -0
  305. package/dist/storage/base.d.mts +201 -0
  306. package/dist/storage/base.d.mts.map +1 -0
  307. package/dist/storage/base.mjs +215 -0
  308. package/dist/storage/base.mjs.map +1 -0
  309. package/dist/storage/file-system.cjs +180 -0
  310. package/dist/storage/file-system.d.cts +129 -0
  311. package/dist/storage/file-system.d.cts.map +1 -0
  312. package/dist/storage/file-system.d.mts +129 -0
  313. package/dist/storage/file-system.d.mts.map +1 -0
  314. package/dist/storage/file-system.mjs +179 -0
  315. package/dist/storage/file-system.mjs.map +1 -0
  316. package/dist/storage/helpers.cjs +37 -0
  317. package/dist/storage/helpers.d.cts +25 -0
  318. package/dist/storage/helpers.d.cts.map +1 -0
  319. package/dist/storage/helpers.d.mts +25 -0
  320. package/dist/storage/helpers.d.mts.map +1 -0
  321. package/dist/storage/helpers.mjs +34 -0
  322. package/dist/storage/helpers.mjs.map +1 -0
  323. package/dist/storage/index.cjs +12 -0
  324. package/dist/storage/index.d.cts +5 -0
  325. package/dist/storage/index.d.mts +5 -0
  326. package/dist/storage/index.mjs +6 -0
  327. package/dist/storage/virtual.cjs +98 -0
  328. package/dist/storage/virtual.d.cts +80 -0
  329. package/dist/storage/virtual.d.cts.map +1 -0
  330. package/dist/storage/virtual.d.mts +80 -0
  331. package/dist/storage/virtual.d.mts.map +1 -0
  332. package/dist/storage/virtual.mjs +97 -0
  333. package/dist/storage/virtual.mjs.map +1 -0
  334. package/dist/types/api.d.cts +18 -152
  335. package/dist/types/api.d.cts.map +1 -1
  336. package/dist/types/api.d.mts +18 -152
  337. package/dist/types/api.d.mts.map +1 -1
  338. package/dist/types/config.d.cts +194 -135
  339. package/dist/types/config.d.cts.map +1 -1
  340. package/dist/types/config.d.mts +195 -136
  341. package/dist/types/config.d.mts.map +1 -1
  342. package/dist/types/context.d.cts +152 -128
  343. package/dist/types/context.d.cts.map +1 -1
  344. package/dist/types/context.d.mts +155 -131
  345. package/dist/types/context.d.mts.map +1 -1
  346. package/dist/types/fs.d.mts +1 -1
  347. package/dist/types/index.d.cts +5 -6
  348. package/dist/types/index.d.mts +5 -6
  349. package/dist/types/logging.d.cts +161 -0
  350. package/dist/types/logging.d.cts.map +1 -0
  351. package/dist/types/logging.d.mts +161 -0
  352. package/dist/types/logging.d.mts.map +1 -0
  353. package/dist/types/plugin.d.cts +6 -9
  354. package/dist/types/plugin.d.cts.map +1 -1
  355. package/dist/types/plugin.d.mts +6 -9
  356. package/dist/types/plugin.d.mts.map +1 -1
  357. package/dist/types/tsconfig.d.mts +1 -1
  358. package/dist/types/unplugin.d.cts +5 -26
  359. package/dist/types/unplugin.d.cts.map +1 -1
  360. package/dist/types/unplugin.d.mts +5 -26
  361. package/dist/types/unplugin.d.mts.map +1 -1
  362. package/package.json +259 -457
  363. package/schemas/fs.capnp +42 -0
  364. package/dist/constants/virtual-modules.cjs +0 -8
  365. package/dist/constants/virtual-modules.d.cts +0 -6
  366. package/dist/constants/virtual-modules.d.cts.map +0 -1
  367. package/dist/constants/virtual-modules.d.mts +0 -6
  368. package/dist/constants/virtual-modules.d.mts.map +0 -1
  369. package/dist/constants/virtual-modules.mjs +0 -7
  370. package/dist/constants/virtual-modules.mjs.map +0 -1
  371. package/dist/lib/logger.cjs +0 -99
  372. package/dist/lib/logger.d.cts +0 -53
  373. package/dist/lib/logger.d.cts.map +0 -1
  374. package/dist/lib/logger.d.mts +0 -53
  375. package/dist/lib/logger.d.mts.map +0 -1
  376. package/dist/lib/logger.mjs +0 -93
  377. package/dist/lib/logger.mjs.map +0 -1
  378. package/dist/types/_internal.cjs +0 -0
  379. package/dist/types/_internal.d.cts +0 -106
  380. package/dist/types/_internal.d.cts.map +0 -1
  381. package/dist/types/_internal.d.mts +0 -106
  382. package/dist/types/_internal.d.mts.map +0 -1
  383. package/dist/types/_internal.mjs +0 -1
  384. package/dist/types/commands.d.cts +0 -16
  385. package/dist/types/commands.d.cts.map +0 -1
  386. package/dist/types/commands.d.mts +0 -16
  387. package/dist/types/commands.d.mts.map +0 -1
  388. package/dist/types/utils.d.cts +0 -9
  389. package/dist/types/utils.d.cts.map +0 -1
  390. package/dist/types/utils.d.mts +0 -9
  391. package/dist/types/utils.d.mts.map +0 -1
@@ -1,35 +1,37 @@
1
1
  import { ResolveOptions, VirtualFile, VirtualFileSystemInterface, WriteOptions } from "./fs.cjs";
2
2
  import { Plugin } from "./plugin.cjs";
3
- import { HooksList, HooksListItem } from "./hooks.cjs";
3
+ import { CallHookOptions, HooksList, HooksListItem, InferHookParameters, InferHookReturnType } from "./hooks.cjs";
4
+ import { LogFn, LogMessage, Logger, LoggerOptions } from "./logging.cjs";
4
5
  import { ParsedTypeScriptConfig } from "./tsconfig.cjs";
5
- import { EnvironmentResolvedConfig, LogFn, LogLevel, ParsedUserConfig, ResolvedConfig, ResolvedEngineOptions, ResolvedEntryTypeDefinition, ResolvedExecutionOptions } from "./config.cjs";
6
- import { Jiti } from "jiti";
6
+ import { EnvironmentResolvedConfig, ExecutionOptions, Options, PluginConfig, ResolvedConfig, ResolvedEntryTypeDefinition } from "./config.cjs";
7
7
  import { EnvPaths } from "@stryke/env/get-env-paths";
8
+ import { DeepReadonly } from "@stryke/types/base";
8
9
  import { FetchRequestOptions } from "@stryke/http/fetch";
9
10
  import { PackageJson } from "@stryke/types/package-json";
11
+ import { Jiti } from "jiti";
10
12
  import MagicString, { SourceMap } from "magic-string";
11
13
  import { ParseResult, ParserOptions } from "oxc-parser";
12
14
  import { Range } from "semver";
13
15
  import { RequestInfo, Response } from "undici";
14
16
  import { Unimport } from "unimport";
15
- import { ExternalIdResult, UnpluginBuildContext, UnpluginContext, UnpluginMessage } from "unplugin";
17
+ import { ExternalIdResult, UnpluginBuildContext } from "unplugin";
16
18
 
17
19
  //#region src/types/context.d.ts
18
- interface MetaInfo {
20
+ type MetaInfo = Record<string, any> & {
19
21
  /**
20
22
  * The checksum generated from the resolved options
21
23
  */
22
24
  checksum: string;
23
25
  /**
24
- * The build id
26
+ * The execution id
25
27
  */
26
- buildId: string;
28
+ executionId: string;
27
29
  /**
28
30
  * The release id
29
31
  */
30
32
  releaseId: string;
31
33
  /**
32
- * The build timestamp
34
+ * The execution timestamp
33
35
  */
34
36
  timestamp: number;
35
37
  /**
@@ -40,7 +42,7 @@ interface MetaInfo {
40
42
  * A hash that represents the path to the configuration root directory
41
43
  */
42
44
  configHash: string;
43
- }
45
+ };
44
46
  interface Resolver extends Jiti {
45
47
  plugin: Jiti;
46
48
  }
@@ -134,15 +136,15 @@ interface ResolveResult extends ExternalIdResult {
134
136
  * @remarks
135
137
  * This context provides the foundational structure for interacting with the Powerlines engine.
136
138
  */
137
- interface BaseContext {
139
+ interface BaseContext<TSystemContext = unknown> extends Pick<Required<Options>, "cwd"> {
138
140
  /**
139
- * The options provided to the Powerlines process
141
+ * The system instance associated with the context, which can be used to interact with the Powerlines engine and perform various operations during the build process. The specific type of the system may vary depending on the environment and use case, but it typically provides methods for logging, file system operations, and other interactions with the Powerlines engine.
140
142
  */
141
- options: ResolvedEngineOptions;
143
+ system: TSystemContext;
142
144
  /**
143
145
  * The timestamp when the context was initialized
144
146
  */
145
- timestamp: Date;
147
+ timestamp: number;
146
148
  /**
147
149
  * The Powerlines environment paths
148
150
  */
@@ -152,41 +154,37 @@ interface BaseContext {
152
154
  */
153
155
  powerlinesPath: string;
154
156
  /**
155
- * The parsed user configuration file provided to the Powerlines process before any resolution or merging
156
- */
157
- configFile: ParsedUserConfig;
158
- /**
159
- * The log level to use for the Powerlines processes.
157
+ * The options provided to the Powerlines process.
160
158
  */
161
- logLevel: LogLevel | null;
159
+ options: Options;
162
160
  /**
163
- * A logging function for the Powerlines engine
161
+ * An instance of the Powerlines logger client that can be used to generate log messages with consistent formatting and metadata.
164
162
  */
165
- log: LogFn;
163
+ logger: Logger;
166
164
  /**
167
165
  * A logging function for fatal messages
168
166
  */
169
- fatal: (message: string | UnpluginMessage) => void;
167
+ fatal: (message: string | LogMessage | Error) => void;
170
168
  /**
171
169
  * A logging function for error messages
172
170
  */
173
- error: (message: string | UnpluginMessage) => void;
171
+ error: (message: string | LogMessage | Error) => void;
174
172
  /**
175
173
  * A logging function for warning messages
176
174
  */
177
- warn: (message: string | UnpluginMessage) => void;
175
+ warn: (message: string | LogMessage) => void;
178
176
  /**
179
177
  * A logging function for informational messages
180
178
  */
181
- info: (message: string | UnpluginMessage) => void;
179
+ info: (message: string | LogMessage) => void;
182
180
  /**
183
181
  * A logging function for debug messages
184
182
  */
185
- debug: (message: string | UnpluginMessage) => void;
183
+ debug: (message: string | LogMessage) => void;
186
184
  /**
187
185
  * A logging function for trace messages
188
186
  */
189
- trace: (message: string | UnpluginMessage) => void;
187
+ trace: (message: string | LogMessage) => void;
190
188
  /**
191
189
  * A function to create a timer for measuring the duration of asynchronous operations
192
190
  *
@@ -204,36 +202,17 @@ interface BaseContext {
204
202
  /**
205
203
  * Create a new logger instance
206
204
  *
207
- * @param name - The name to use for the logger instance
208
- * @returns A logger function
205
+ * @param options - The configuration options to use for the logger instance, which can be used to customize the appearance and behavior of the log messages generated by the logger. This is typically the name of the plugin or module that is creating the logger instance.
206
+ * @returns A logger client instance that can be used to generate log messages with consistent formatting and metadata.
209
207
  */
210
- createLog: (name: string | null) => LogFn;
208
+ createLogger: (options: LoggerOptions, logFn?: LogFn) => Logger;
211
209
  /**
212
- * Extend the current logger instance with a new name
210
+ * Extend the current logger instance with a new source
213
211
  *
214
- * @param name - The name to use for the extended logger instance
215
- * @returns A logger function
216
- */
217
- extendLog: (name: string) => LogFn;
218
- /**
219
- * A function to create a deep clone of the context
220
- *
221
- * @remarks
222
- * This function is used to create a copy of the context for a specific environment, allowing for environment-specific modifications without affecting the global context.
223
- */
224
- clone: () => Promise<BaseContext>;
225
- }
226
- /**
227
- * The Powerlines engine context.
228
- *
229
- * @remarks
230
- * This context is used during the execution of the Powerlines engine, providing access to the input user configurations.
231
- */
232
- interface EngineContext extends BaseContext {
233
- /**
234
- * A list of API contexts for each configured run instance
212
+ * @param options - The overlay metadata to use for the badge in the log output.
213
+ * @returns A logger client instance that extends the current logger with the provided configuration options.
235
214
  */
236
- executions: ResolvedExecutionOptions[];
215
+ extendLogger: (options: LoggerOptions, logFn?: LogFn) => Logger;
237
216
  }
238
217
  /**
239
218
  * The unresolved Powerlines context.
@@ -241,19 +220,30 @@ interface EngineContext extends BaseContext {
241
220
  * @remarks
242
221
  * This context is used before the user configuration has been fully resolved after the `config`.
243
222
  */
244
- interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends BaseContext {
223
+ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig, TSystemContext = unknown> extends BaseContext<TSystemContext> {
245
224
  /**
246
- * The options provided to the Powerlines process
225
+ * The options provided to the Powerlines process, resolved with default values and merged with any configuration provided by plugins or other sources. This is typically the final configuration used during the build process, but may also include additional options that are relevant to the context and its interactions with the Powerlines engine.
247
226
  */
248
- options: ResolvedExecutionOptions;
227
+ options: ExecutionOptions;
249
228
  /**
250
229
  * An object containing the options provided to Powerlines
251
230
  */
252
- config: Omit<TResolvedConfig["userConfig"], "output"> & Required<Pick<TResolvedConfig["userConfig"], "output">> & {
231
+ config: Omit<TResolvedConfig["userConfig"], "output"> & Required<Pick<TResolvedConfig["userConfig"], "output">> & Pick<TResolvedConfig, "cwd" | "mode" | "root" | "framework" | "configFile" | "name" | "logLevel"> & {
232
+ /**
233
+ * The output configuration options for the Powerlines process, which may include settings related to the output directory, file naming conventions, and other options that affect how the compiled output is generated and structured. This is typically derived from the user configuration but may also include additional options provided by plugins or other sources.
234
+ */
253
235
  output: TResolvedConfig["output"];
236
+ /**
237
+ * The configuration values read from the user configuration file before any resolution or merging with default values or plugin-provided configurations. This represents the raw configuration as defined by the user, and can be useful for debugging or for plugins that need to access the original configuration values before they are processed by Powerlines.
238
+ */
239
+ readonly userConfig: DeepReadonly<TResolvedConfig["userConfig"]>;
240
+ /**
241
+ * The configuration options that were provided inline to the Powerlines CLI.
242
+ */
243
+ readonly inlineConfig: DeepReadonly<TResolvedConfig["inlineConfig"]>;
254
244
  };
255
245
  /**
256
- * The metadata information
246
+ * A place to store metadata information on the context for access in plugins and other parts of the system. This can be used to store information about the current execution, such as a unique identifier for the execution, timestamps, or any other relevant data that may be useful for plugins or other parts of the system to access during the build process.
257
247
  */
258
248
  meta: MetaInfo;
259
249
  /**
@@ -263,31 +253,49 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
263
253
  /**
264
254
  * The path to a directory where the reflection data buffers (used by the build processes) are stored
265
255
  */
266
- dataPath: string;
256
+ readonly dataPath: string;
267
257
  /**
268
258
  * The path to a directory where the project cache (used by the build processes) is stored
269
259
  */
270
- cachePath: string;
260
+ readonly cachePath: string;
271
261
  /**
272
262
  * The Powerlines artifacts directory
273
263
  */
274
- artifactsPath: string;
264
+ readonly artifactsPath: string;
275
265
  /**
276
266
  * The path to the Powerlines builtin runtime modules directory
277
267
  */
278
- builtinsPath: string;
268
+ readonly builtinsPath: string;
279
269
  /**
280
270
  * The path to the Powerlines entry modules directory
281
271
  */
282
- entryPath: string;
272
+ readonly entryPath: string;
283
273
  /**
284
274
  * The path to the Powerlines infrastructure modules directory
285
275
  */
286
- infrastructurePath: string;
276
+ readonly infrastructurePath: string;
287
277
  /**
288
278
  * The path to the Powerlines TypeScript declaration files directory
289
279
  */
290
- typesPath: string;
280
+ readonly typesPath: string;
281
+ /**
282
+ * Invokes the configured plugin hooks
283
+ *
284
+ * @remarks
285
+ * By default, it will call the `"pre"`, `"normal"`, and `"post"` ordered hooks in sequence
286
+ *
287
+ * @param hook - The hook to call
288
+ * @param options - The options to provide to the hook
289
+ * @param args - The arguments to pass to the hook
290
+ * @returns The result of the hook call
291
+ */
292
+ callHook: <TKey extends string>(hook: TKey, options: CallHookOptions & {
293
+ environment?: string | EnvironmentContext<TResolvedConfig>;
294
+ }, ...args: InferHookParameters<PluginContext<TResolvedConfig>, TKey>) => Promise<InferHookReturnType<PluginContext<TResolvedConfig>, TKey> | undefined>;
295
+ /**
296
+ * The virtual file system interface for managing files during the build process
297
+ */
298
+ fs: VirtualFileSystemInterface;
291
299
  /**
292
300
  * The project's `package.json` file content
293
301
  */
@@ -312,10 +320,6 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
312
320
  * The entry points of the source code
313
321
  */
314
322
  entry: ResolvedEntryTypeDefinition[];
315
- /**
316
- * The virtual file system manager used during the build process to reference generated runtime files
317
- */
318
- fs: VirtualFileSystemInterface;
319
323
  /**
320
324
  * The Jiti module resolver
321
325
  */
@@ -490,39 +494,42 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
490
494
  * @remarks
491
495
  * This context is used after the user configuration has been fully resolved and merged with default values, providing access to the final configuration options and utility functions for interacting with the Powerlines engine.
492
496
  */
493
- type Context<TResolvedConfig extends ResolvedConfig = ResolvedConfig> = Omit<UnresolvedContext<TResolvedConfig>, "config"> & {
497
+ type Context<TResolvedConfig extends ResolvedConfig = ResolvedConfig, TSystemContext = unknown> = Omit<UnresolvedContext<TResolvedConfig, TSystemContext>, "config" | "callHook"> & {
494
498
  /**
495
499
  * The fully resolved Powerlines configuration
496
500
  */
497
501
  config: TResolvedConfig;
498
502
  /**
499
- * Initialize the context with the provided configuration options
500
- */
501
- setup: () => Promise<void>;
502
- /**
503
- * A function to create a deep clone of the context
503
+ * Invokes the configured plugin hooks
504
504
  *
505
505
  * @remarks
506
- * This function is used to create a copy of the context for a specific environment, allowing for environment-specific modifications without affecting the global context.
506
+ * By default, it will call the `"pre"`, `"normal"`, and `"post"` ordered hooks in sequence
507
+ *
508
+ * @param hook - The hook to call
509
+ * @param options - The options to provide to the hook
510
+ * @param args - The arguments to pass to the hook
511
+ * @returns The result of the hook call
507
512
  */
508
- clone: () => Promise<Context<TResolvedConfig>>;
513
+ callHook: <TKey extends string>(hook: TKey, options: CallHookOptions & {
514
+ environment?: string | EnvironmentContext<any, any>;
515
+ }, ...args: InferHookParameters<PluginContext<any, any>, TKey>) => Promise<InferHookReturnType<PluginContext<any, any>, TKey> | undefined>;
509
516
  };
510
- interface ExecutionContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends Context<TResolvedConfig> {
517
+ interface ExecutionContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig, TSystemContext = unknown> extends Context<TResolvedConfig, TSystemContext> {
518
+ /**
519
+ * The unique identifier of the execution context, which can be used for logging and other purposes to distinguish between different executions in the same process.
520
+ */
521
+ readonly id: string;
511
522
  /**
512
523
  * The expected plugins options for the Powerlines project.
513
524
  *
514
525
  * @remarks
515
526
  * This is a record of plugin identifiers to their respective options. This field is populated by the Powerlines engine during both plugin initialization and the `init` command.
516
527
  */
517
- plugins: Plugin<PluginContext<TResolvedConfig>>[];
518
- /**
519
- * A function to add a plugin to the context and update the configuration options
520
- */
521
- addPlugin: (plugin: Plugin<PluginContext<TResolvedConfig>>) => Promise<void>;
528
+ plugins: Plugin<PluginContext<TResolvedConfig, TSystemContext>>[];
522
529
  /**
523
530
  * A table for storing the current context for each configured environment
524
531
  */
525
- environments: Record<string, EnvironmentContext<TResolvedConfig>>;
532
+ environments: Record<string, EnvironmentContext<TResolvedConfig, TSystemContext>>;
526
533
  /**
527
534
  * Retrieves the context for a specific environment by name
528
535
  *
@@ -537,7 +544,7 @@ interface ExecutionContext<TResolvedConfig extends ResolvedConfig = ResolvedConf
537
544
  * const defaultEnv = await apiContext.getEnvironment();
538
545
  * ```
539
546
  */
540
- getEnvironment: (name?: string) => Promise<EnvironmentContext<TResolvedConfig>>;
547
+ getEnvironment: (name?: string) => Promise<EnvironmentContext<TResolvedConfig, TSystemContext>>;
541
548
  /**
542
549
  * Safely retrieves the context for a specific environment by name
543
550
  *
@@ -565,87 +572,105 @@ interface ExecutionContext<TResolvedConfig extends ResolvedConfig = ResolvedConf
565
572
  *
566
573
  * Using this method helps avoid unhandled exceptions in cases where an environment might not be defined.
567
574
  */
568
- getEnvironmentSafe: (name?: string) => Promise<EnvironmentContext<TResolvedConfig> | undefined>;
575
+ getEnvironmentSafe: (name?: string) => Promise<EnvironmentContext<TResolvedConfig, TSystemContext> | undefined>;
569
576
  /**
570
577
  * A function to copy the context and update the fields for a specific environment
571
578
  *
572
579
  * @param environment - The environment configuration to use.
573
580
  * @returns A new context instance with the updated environment.
574
581
  */
575
- in: (environment: EnvironmentResolvedConfig) => Promise<EnvironmentContext<TResolvedConfig>>;
582
+ createEnvironment: (environment: EnvironmentResolvedConfig<TResolvedConfig>["environment"]) => Promise<EnvironmentContext<TResolvedConfig, TSystemContext>>;
576
583
  /**
577
584
  * A function to merge all configured environments into a single context
578
585
  *
579
586
  * @returns A promise that resolves to the merged environment context.
580
587
  */
581
- toEnvironment: () => Promise<EnvironmentContext<TResolvedConfig>>;
588
+ toEnvironment: () => Promise<EnvironmentContext<TResolvedConfig, TSystemContext>>;
582
589
  /**
583
- * A function to create a deep clone of the context
590
+ * A function used internally to add a plugin to the context and update the configuration options
584
591
  *
585
- * @remarks
586
- * This function is used to create a copy of the context for a specific environment, allowing for environment-specific modifications without affecting the global context.
592
+ * @danger
593
+ * This field is for internal use only and should not be accessed or modified directly. It is unstable and can be changed at anytime.
594
+ *
595
+ * @internal
587
596
  */
588
- clone: () => Promise<ExecutionContext<TResolvedConfig>>;
597
+ unstable_addPlugin: (plugin: PluginConfig<PluginContext<TResolvedConfig, TSystemContext>>) => Promise<void>;
589
598
  }
590
- interface EnvironmentContextPlugin<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
591
- plugin: Plugin<PluginContext<TResolvedConfig>>;
592
- context: PluginContext<TResolvedConfig>;
599
+ interface EnvironmentPlugin<TResolvedConfig extends ResolvedConfig = ResolvedConfig, TSystemContext = unknown> extends Plugin<PluginContext<TResolvedConfig, TSystemContext>> {
600
+ /**
601
+ * A internal field to store the plugin configuration and context for the environment context
602
+ *
603
+ * @danger
604
+ * This field is for internal use only and should not be accessed or modified directly. It is unstable and can be changed at anytime.
605
+ *
606
+ * @internal
607
+ */
608
+ $$internal: {
609
+ /**
610
+ * The unique identifier of the plugin, which can be used for logging and other purposes to distinguish between different plugins in the same process.
611
+ */
612
+ readonly id: string;
613
+ /**
614
+ * The context for the plugin, which provides access to the Powerlines engine and other utilities for interacting with the build process.
615
+ *
616
+ * @remarks
617
+ * This context is specific to the plugin and environment, allowing for environment-specific modifications without affecting the global context.
618
+ */
619
+ readonly context: PluginContext<TResolvedConfig, TSystemContext>;
620
+ };
593
621
  }
594
622
  type SelectHookResultItem<TContext extends PluginContext, TKey extends string> = HooksListItem<TContext, TKey> & {
595
623
  context: TContext;
596
624
  };
597
625
  type SelectHookResult<TContext extends PluginContext, TKey extends string> = SelectHookResultItem<TContext, TKey>[];
598
- interface EnvironmentContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends Context<TResolvedConfig> {
626
+ interface EnvironmentContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig, TSystemContext = unknown> extends Context<EnvironmentResolvedConfig<TResolvedConfig>, TSystemContext> {
627
+ /**
628
+ * The unique identifier of the environment associated with this context, which can be used for logging and other purposes to distinguish between different environments in the same process.
629
+ */
630
+ readonly id: string;
599
631
  /**
600
632
  * The expected plugins options for the Powerlines project.
601
633
  *
602
634
  * @remarks
603
635
  * This is a record of plugin identifiers to their respective options. This field is populated by the Powerlines engine during both plugin initialization and the `init` command.
604
636
  */
605
- plugins: EnvironmentContextPlugin<TResolvedConfig>[];
637
+ plugins: EnvironmentPlugin<TResolvedConfig, TSystemContext>[];
606
638
  /**
607
- * A function to add a plugin to the context and update the configuration options
608
- */
609
- addPlugin: (plugin: Plugin<PluginContext<TResolvedConfig>>) => Promise<void>;
610
- /**
611
- * The environment specific resolved configuration
639
+ * A table holding references to hook functions registered by plugins
612
640
  */
613
- environment: EnvironmentResolvedConfig;
641
+ hooks: HooksList<PluginContext<TResolvedConfig, TSystemContext>>;
614
642
  /**
615
- * A table holding references to hook functions registered by plugins
643
+ * The execution context associated with this environment, which provides access to the project configuration, environment, and utility functions for performing the build. The execution context is used to manage the state and behavior of the build process across multiple environments, allowing for hooks to be called at different stages of the build and for environment-specific configurations to be applied.
644
+ *
645
+ * @danger
646
+ * This field is for internal use only and should not be accessed or modified directly. It is unstable and can be changed at anytime.
647
+ *
648
+ * @internal
616
649
  */
617
- hooks: HooksList<PluginContext<TResolvedConfig>>;
650
+ unstable_execution: ExecutionContext<TResolvedConfig, TSystemContext>;
618
651
  /**
619
652
  * Retrieves the hook handlers for a specific hook name
620
653
  */
621
- selectHooks: <TKey extends string>(key: TKey, options?: SelectHooksOptions) => SelectHookResult<PluginContext<TResolvedConfig>, TKey>;
654
+ selectHooks: <TKey extends string>(key: TKey, options?: SelectHooksOptions) => SelectHookResult<PluginContext<TResolvedConfig, TSystemContext>, TKey>;
622
655
  /**
623
- * A function to create a deep clone of the context
656
+ * A function used internally to add a plugin to the context and update the configuration options
624
657
  *
625
- * @remarks
626
- * This function is used to create a copy of the context for a specific environment, allowing for environment-specific modifications without affecting the global context.
658
+ * @danger
659
+ * This field is for internal use only and should not be accessed or modified directly. It is unstable and can be changed at anytime.
660
+ *
661
+ * @internal
627
662
  */
628
- clone: () => Promise<EnvironmentContext<TResolvedConfig>>;
663
+ unstable_addPlugin: (plugin: PluginConfig<PluginContext<TResolvedConfig, TSystemContext>>) => Promise<void>;
629
664
  }
630
- interface PluginContext<out TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends Context<TResolvedConfig>, UnpluginContext {
665
+ interface PluginContext<out TResolvedConfig extends ResolvedConfig = ResolvedConfig, TSystemContext = unknown> extends Context<EnvironmentResolvedConfig<TResolvedConfig>, TSystemContext> {
631
666
  /**
632
- * The environment specific resolved configuration
667
+ * The unique identifier of the plugin associated with this context, which can be used for logging and other purposes to distinguish between different plugins in the same process.
633
668
  */
634
- environment: EnvironmentResolvedConfig;
669
+ readonly id: string;
635
670
  /**
636
- * An alternative property name for the {@link log} property
637
- *
638
- * @remarks
639
- * This is provided for compatibility with other logging libraries that expect a `logger` property.
640
- */
641
- logger: LogFn;
642
- /**
643
- * A function to create a deep clone of the context
644
- *
645
- * @remarks
646
- * This function is used to create a copy of the context for a specific environment, allowing for environment-specific modifications without affecting the global context.
671
+ * The context for the environment associated with this plugin context, which provides access to the Powerlines engine and other utilities for interacting with the build process. This context is specific to the plugin and environment, allowing for environment-specific modifications without affecting the global context.
647
672
  */
648
- clone: () => Promise<PluginContext<TResolvedConfig>>;
673
+ readonly environment: EnvironmentContext;
649
674
  }
650
675
  type BuildPluginContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> = UnpluginBuildContext & PluginContext<TResolvedConfig>;
651
676
  type WithUnpluginBuildContext<TContext extends PluginContext> = UnpluginBuildContext & TContext;
@@ -662,11 +687,10 @@ declare type __ΩEmitOptions = any[];
662
687
  declare type __ΩEmitEntryOptions = any[];
663
688
  declare type __ΩResolveResult = any[];
664
689
  declare type __ΩBaseContext = any[];
665
- declare type __ΩEngineContext = any[];
666
690
  declare type __ΩUnresolvedContext = any[];
667
691
  declare type __ΩContext = any[];
668
692
  declare type __ΩExecutionContext = any[];
669
- declare type __ΩEnvironmentContextPlugin = any[];
693
+ declare type __ΩEnvironmentPlugin = any[];
670
694
  declare type __ΩSelectHookResultItem = any[];
671
695
  declare type __ΩSelectHookResult = any[];
672
696
  declare type __ΩEnvironmentContext = any[];
@@ -674,5 +698,5 @@ declare type __ΩPluginContext = any[];
674
698
  declare type __ΩBuildPluginContext = any[];
675
699
  declare type __ΩWithUnpluginBuildContext = any[];
676
700
  //#endregion
677
- export { BaseContext, BuildPluginContext, Context, EmitEntryOptions, EmitOptions, EngineContext, EnvironmentContext, EnvironmentContextPlugin, ExecutionContext, FetchOptions, InitContextOptions, MetaInfo, ParseOptions, PluginContext, ResolveResult, Resolver, SelectHookResult, SelectHookResultItem, SelectHooksOptions, SourceFile, TransformResult$1 as TransformResult, UnimportContext, UnresolvedContext, WithUnpluginBuildContext, __ΩBaseContext, __ΩBuildPluginContext, __ΩContext, __ΩEmitEntryOptions, __ΩEmitOptions, __ΩEngineContext, __ΩEnvironmentContext, __ΩEnvironmentContextPlugin, __ΩExecutionContext, __ΩFetchOptions, __ΩInitContextOptions, __ΩMetaInfo, __ΩParseOptions, __ΩPluginContext, __ΩResolveResult, __ΩResolver, __ΩSelectHookResult, __ΩSelectHookResultItem, __ΩSelectHooksOptions, __ΩSourceFile, __ΩTransformResult, __ΩUnimportContext, __ΩUnresolvedContext, __ΩWithUnpluginBuildContext };
701
+ export { BaseContext, BuildPluginContext, Context, EmitEntryOptions, EmitOptions, EnvironmentContext, EnvironmentPlugin, ExecutionContext, FetchOptions, InitContextOptions, MetaInfo, ParseOptions, PluginContext, ResolveResult, Resolver, SelectHookResult, SelectHookResultItem, SelectHooksOptions, SourceFile, TransformResult$1 as TransformResult, UnimportContext, UnresolvedContext, WithUnpluginBuildContext, __ΩBaseContext, __ΩBuildPluginContext, __ΩContext, __ΩEmitEntryOptions, __ΩEmitOptions, __ΩEnvironmentContext, __ΩEnvironmentPlugin, __ΩExecutionContext, __ΩFetchOptions, __ΩInitContextOptions, __ΩMetaInfo, __ΩParseOptions, __ΩPluginContext, __ΩResolveResult, __ΩResolver, __ΩSelectHookResult, __ΩSelectHookResultItem, __ΩSelectHooksOptions, __ΩSourceFile, __ΩTransformResult, __ΩUnimportContext, __ΩUnresolvedContext, __ΩWithUnpluginBuildContext };
678
702
  //# sourceMappingURL=context.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"context.d.cts","names":[],"sources":["../../src/types/context.ts"],"mappings":";;;;;;;;;;;;;;;;;UAsDiB,QAAA;EAAA;;;EAIf,QAAA;EAAA;;;EAKA,OAAA;EAeA;;;EAVA,SAAA;EAkBe;;;EAbf,SAAA;EAagC;;;EARhC,QAAA;EASY;AAGd;;EAPE,UAAA;AAAA;AAAA,UAGe,QAAA,SAAiB,IAAA;EAChC,MAAA,EAAQ,IAAA;AAAA;AAAA,UAGO,iBAAA;EACf,IAAA;EACA,GAAA,EAAK,SAAA;AAAA;;;;UAMU,UAAA;EAST;;;EALN,EAAA;EAewB;;AAG1B;EAbE,IAAA,EAAM,WAAA;;;;EAKN,GAAA;EAUwB;;;EALxB,MAAA,GAAS,iBAAA;AAAA;AAAA,KAGC,eAAA,GAAkB,IAAA,CA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