@powerlines/core 0.8.4 → 0.8.67

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 (434) hide show
  1. package/dist/constants/api.cjs +18 -0
  2. package/dist/constants/api.d.cts +6 -0
  3. package/dist/constants/api.d.cts.map +1 -0
  4. package/dist/constants/api.d.mts +6 -0
  5. package/dist/constants/api.d.mts.map +1 -0
  6. package/dist/constants/api.mjs +16 -0
  7. package/dist/constants/api.mjs.map +1 -0
  8. package/dist/constants/commands.cjs +3 -11
  9. package/dist/constants/commands.d.cts +1 -1
  10. package/dist/constants/commands.d.cts.map +1 -1
  11. package/dist/constants/commands.d.mts +1 -1
  12. package/dist/constants/commands.d.mts.map +1 -1
  13. package/dist/constants/commands.mjs +3 -11
  14. package/dist/constants/commands.mjs.map +1 -1
  15. package/dist/constants/devtools.cjs +23 -0
  16. package/dist/constants/devtools.d.cts +13 -0
  17. package/dist/constants/devtools.d.cts.map +1 -0
  18. package/dist/constants/devtools.d.mts +13 -0
  19. package/dist/constants/devtools.d.mts.map +1 -0
  20. package/dist/constants/devtools.mjs +14 -0
  21. package/dist/constants/devtools.mjs.map +1 -0
  22. package/dist/constants/environments.cjs +1 -0
  23. package/dist/constants/extensions.cjs +21 -0
  24. package/dist/constants/extensions.d.cts +5 -0
  25. package/dist/constants/extensions.d.cts.map +1 -0
  26. package/dist/constants/extensions.d.mts +5 -0
  27. package/dist/constants/extensions.d.mts.map +1 -0
  28. package/dist/constants/extensions.mjs +20 -0
  29. package/dist/constants/extensions.mjs.map +1 -0
  30. package/dist/constants/fs.cjs +1 -0
  31. package/dist/constants/hooks.cjs +1 -0
  32. package/dist/constants/index.cjs +48 -24
  33. package/dist/constants/index.d.cts +5 -1
  34. package/dist/constants/index.d.mts +5 -1
  35. package/dist/constants/index.mjs +6 -2
  36. package/dist/constants/log-level.cjs +90 -0
  37. package/dist/constants/log-level.d.cts +63 -0
  38. package/dist/constants/log-level.d.cts.map +1 -0
  39. package/dist/constants/log-level.d.mts +63 -0
  40. package/dist/constants/log-level.d.mts.map +1 -0
  41. package/dist/constants/log-level.mjs +82 -0
  42. package/dist/constants/log-level.mjs.map +1 -0
  43. package/dist/constants/meta.cjs +1 -0
  44. package/dist/constants/plugin.cjs +4 -3
  45. package/dist/constants/plugin.d.cts +2 -2
  46. package/dist/constants/plugin.d.mts +2 -2
  47. package/dist/constants/plugin.mjs +1 -1
  48. package/dist/constants/plugin.mjs.map +1 -1
  49. package/dist/context/base-context.cjs +127 -0
  50. package/dist/context/base-context.d.cts +81 -0
  51. package/dist/context/base-context.d.cts.map +1 -0
  52. package/dist/context/base-context.d.mts +81 -0
  53. package/dist/context/base-context.d.mts.map +1 -0
  54. package/dist/context/base-context.mjs +125 -0
  55. package/dist/context/base-context.mjs.map +1 -0
  56. package/dist/context/context.cjs +934 -0
  57. package/dist/context/context.d.cts +369 -0
  58. package/dist/context/context.d.cts.map +1 -0
  59. package/dist/context/context.d.mts +369 -0
  60. package/dist/context/context.d.mts.map +1 -0
  61. package/dist/context/context.mjs +932 -0
  62. package/dist/context/context.mjs.map +1 -0
  63. package/dist/context/environment-context.cjs +219 -0
  64. package/dist/context/environment-context.d.cts +100 -0
  65. package/dist/context/environment-context.d.cts.map +1 -0
  66. package/dist/context/environment-context.d.mts +100 -0
  67. package/dist/context/environment-context.d.mts.map +1 -0
  68. package/dist/context/environment-context.mjs +218 -0
  69. package/dist/context/environment-context.mjs.map +1 -0
  70. package/dist/context/execution-context.cjs +230 -0
  71. package/dist/context/execution-context.d.cts +101 -0
  72. package/dist/context/execution-context.d.cts.map +1 -0
  73. package/dist/context/execution-context.d.mts +101 -0
  74. package/dist/context/execution-context.d.mts.map +1 -0
  75. package/dist/context/execution-context.mjs +228 -0
  76. package/dist/context/execution-context.mjs.map +1 -0
  77. package/dist/context/index.cjs +12 -0
  78. package/dist/context/index.d.cts +6 -0
  79. package/dist/context/index.d.mts +6 -0
  80. package/dist/context/index.mjs +7 -0
  81. package/dist/context/plugin-context.cjs +83 -0
  82. package/dist/context/plugin-context.d.cts +18 -0
  83. package/dist/context/plugin-context.d.cts.map +1 -0
  84. package/dist/context/plugin-context.d.mts +18 -0
  85. package/dist/context/plugin-context.d.mts.map +1 -0
  86. package/dist/context/plugin-context.mjs +82 -0
  87. package/dist/context/plugin-context.mjs.map +1 -0
  88. package/dist/index.cjs +62 -6
  89. package/dist/index.d.cts +23 -11
  90. package/dist/index.d.mts +23 -11
  91. package/dist/index.mjs +17 -5
  92. package/dist/lib/config.cjs +167 -28
  93. package/dist/lib/config.d.cts +95 -14
  94. package/dist/lib/config.d.cts.map +1 -1
  95. package/dist/lib/config.d.mts +95 -14
  96. package/dist/lib/config.d.mts.map +1 -1
  97. package/dist/lib/config.mjs +160 -28
  98. package/dist/lib/config.mjs.map +1 -1
  99. package/dist/lib/context-helpers.cjs +43 -0
  100. package/dist/lib/context-helpers.d.cts +19 -0
  101. package/dist/lib/context-helpers.d.cts.map +1 -0
  102. package/dist/lib/context-helpers.d.mts +19 -0
  103. package/dist/lib/context-helpers.d.mts.map +1 -0
  104. package/dist/lib/context-helpers.mjs +41 -0
  105. package/dist/lib/context-helpers.mjs.map +1 -0
  106. package/dist/lib/entry.cjs +9 -9
  107. package/dist/lib/entry.d.cts.map +1 -1
  108. package/dist/lib/entry.d.mts.map +1 -1
  109. package/dist/lib/entry.mjs +9 -9
  110. package/dist/lib/entry.mjs.map +1 -1
  111. package/dist/lib/environment.cjs +72 -0
  112. package/dist/lib/environment.d.cts +12 -0
  113. package/dist/lib/environment.d.cts.map +1 -0
  114. package/dist/lib/environment.d.mts +12 -0
  115. package/dist/lib/environment.d.mts.map +1 -0
  116. package/dist/lib/environment.mjs +67 -0
  117. package/dist/lib/environment.mjs.map +1 -0
  118. package/dist/lib/events.cjs +43 -0
  119. package/dist/lib/events.d.cts +10 -0
  120. package/dist/lib/events.d.cts.map +1 -0
  121. package/dist/lib/events.d.mts +10 -0
  122. package/dist/lib/events.d.mts.map +1 -0
  123. package/dist/lib/events.mjs +42 -0
  124. package/dist/lib/events.mjs.map +1 -0
  125. package/dist/lib/generate-types.cjs +371 -0
  126. package/dist/lib/generate-types.d.cts +67 -0
  127. package/dist/lib/generate-types.d.cts.map +1 -0
  128. package/dist/lib/generate-types.d.mts +67 -0
  129. package/dist/lib/generate-types.d.mts.map +1 -0
  130. package/dist/lib/generate-types.mjs +368 -0
  131. package/dist/lib/generate-types.mjs.map +1 -0
  132. package/dist/lib/hooks.cjs +152 -0
  133. package/dist/lib/hooks.d.cts +28 -0
  134. package/dist/lib/hooks.d.cts.map +1 -0
  135. package/dist/lib/hooks.d.mts +28 -0
  136. package/dist/lib/hooks.d.mts.map +1 -0
  137. package/dist/lib/hooks.mjs +147 -0
  138. package/dist/lib/hooks.mjs.map +1 -0
  139. package/dist/lib/index.cjs +64 -6
  140. package/dist/lib/index.d.cts +15 -3
  141. package/dist/lib/index.d.mts +15 -3
  142. package/dist/lib/index.mjs +19 -5
  143. package/dist/lib/install-dependencies.cjs +25 -0
  144. package/dist/lib/install-dependencies.d.cts +12 -0
  145. package/dist/lib/install-dependencies.d.cts.map +1 -0
  146. package/dist/lib/install-dependencies.d.mts +12 -0
  147. package/dist/lib/install-dependencies.d.mts.map +1 -0
  148. package/dist/lib/install-dependencies.mjs +24 -0
  149. package/dist/lib/install-dependencies.mjs.map +1 -0
  150. package/dist/lib/meta.cjs +57 -0
  151. package/dist/lib/meta.d.cts +34 -0
  152. package/dist/lib/meta.d.cts.map +1 -0
  153. package/dist/lib/meta.d.mts +34 -0
  154. package/dist/lib/meta.d.mts.map +1 -0
  155. package/dist/lib/meta.mjs +54 -0
  156. package/dist/lib/meta.mjs.map +1 -0
  157. package/dist/lib/plugins.cjs +150 -0
  158. package/dist/lib/plugins.d.cts +40 -0
  159. package/dist/lib/plugins.d.cts.map +1 -0
  160. package/dist/lib/plugins.d.mts +40 -0
  161. package/dist/lib/plugins.d.mts.map +1 -0
  162. package/dist/lib/plugins.mjs +146 -0
  163. package/dist/lib/plugins.mjs.map +1 -0
  164. package/dist/lib/resolver.cjs +35 -0
  165. package/dist/lib/resolver.d.cts +21 -0
  166. package/dist/lib/resolver.d.cts.map +1 -0
  167. package/dist/lib/resolver.d.mts +21 -0
  168. package/dist/lib/resolver.d.mts.map +1 -0
  169. package/dist/lib/resolver.mjs +33 -0
  170. package/dist/lib/resolver.mjs.map +1 -0
  171. package/dist/lib/schemas.cjs +9 -0
  172. package/dist/lib/schemas.d.cts +2 -0
  173. package/dist/lib/schemas.d.mts +2 -0
  174. package/dist/lib/schemas.mjs +3 -0
  175. package/dist/lib/streaming-channel.cjs +260 -0
  176. package/dist/lib/streaming-channel.d.cts +133 -0
  177. package/dist/lib/streaming-channel.d.cts.map +1 -0
  178. package/dist/lib/streaming-channel.d.mts +133 -0
  179. package/dist/lib/streaming-channel.d.mts.map +1 -0
  180. package/dist/lib/streaming-channel.mjs +258 -0
  181. package/dist/lib/streaming-channel.mjs.map +1 -0
  182. package/dist/lib/typescript/index.cjs +16 -0
  183. package/dist/lib/typescript/index.d.cts +3 -0
  184. package/dist/lib/typescript/index.d.mts +3 -0
  185. package/dist/lib/typescript/index.mjs +4 -0
  186. package/dist/lib/typescript/ts-morph.cjs +105 -0
  187. package/dist/lib/typescript/ts-morph.d.cts +38 -0
  188. package/dist/lib/typescript/ts-morph.d.cts.map +1 -0
  189. package/dist/lib/typescript/ts-morph.d.mts +38 -0
  190. package/dist/lib/typescript/ts-morph.d.mts.map +1 -0
  191. package/dist/lib/typescript/ts-morph.mjs +102 -0
  192. package/dist/lib/typescript/ts-morph.mjs.map +1 -0
  193. package/dist/lib/typescript/tsconfig.cjs +253 -0
  194. package/dist/lib/typescript/tsconfig.d.cts +77 -0
  195. package/dist/lib/typescript/tsconfig.d.cts.map +1 -0
  196. package/dist/lib/typescript/tsconfig.d.mts +77 -0
  197. package/dist/lib/typescript/tsconfig.d.mts.map +1 -0
  198. package/dist/lib/typescript/tsconfig.mjs +240 -0
  199. package/dist/lib/typescript/tsconfig.mjs.map +1 -0
  200. package/dist/lib/unplugin/helpers.cjs +2 -2
  201. package/dist/lib/unplugin/module-resolution.cjs +21 -20
  202. package/dist/lib/unplugin/module-resolution.d.cts +8 -0
  203. package/dist/lib/unplugin/module-resolution.d.cts.map +1 -1
  204. package/dist/lib/unplugin/module-resolution.d.mts +8 -0
  205. package/dist/lib/unplugin/module-resolution.d.mts.map +1 -1
  206. package/dist/lib/unplugin/module-resolution.mjs +20 -20
  207. package/dist/lib/unplugin/module-resolution.mjs.map +1 -1
  208. package/dist/lib/unplugin/plugin.cjs +57 -63
  209. package/dist/lib/unplugin/plugin.d.cts +11 -5
  210. package/dist/lib/unplugin/plugin.d.cts.map +1 -1
  211. package/dist/lib/unplugin/plugin.d.mts +11 -5
  212. package/dist/lib/unplugin/plugin.d.mts.map +1 -1
  213. package/dist/lib/unplugin/plugin.mjs +57 -63
  214. package/dist/lib/unplugin/plugin.mjs.map +1 -1
  215. package/dist/lib/utilities/file-header.cjs +2 -2
  216. package/dist/lib/utilities/file-header.mjs +2 -2
  217. package/dist/lib/utilities/file-header.mjs.map +1 -1
  218. package/dist/lib/utilities/format.cjs +16 -8
  219. package/dist/lib/utilities/format.d.cts.map +1 -1
  220. package/dist/lib/utilities/format.d.mts.map +1 -1
  221. package/dist/lib/utilities/format.mjs +15 -8
  222. package/dist/lib/utilities/format.mjs.map +1 -1
  223. package/dist/lib/utilities/index.cjs +2 -2
  224. package/dist/lib/utilities/index.mjs +2 -2
  225. package/dist/lib/utilities/source-file.cjs +1 -1
  226. package/dist/lib/utilities/source-map.cjs +1 -1
  227. package/dist/lib/utilities/write-file.cjs +1 -2
  228. package/dist/lib/utilities/write-file.d.cts +1 -1
  229. package/dist/lib/utilities/write-file.d.cts.map +1 -1
  230. package/dist/lib/utilities/write-file.d.mts +1 -1
  231. package/dist/lib/utilities/write-file.d.mts.map +1 -1
  232. package/dist/lib/utilities/write-file.mjs +1 -2
  233. package/dist/lib/utilities/write-file.mjs.map +1 -1
  234. package/dist/lib/vfs.cjs +1104 -0
  235. package/dist/lib/vfs.d.cts +321 -0
  236. package/dist/lib/vfs.d.cts.map +1 -0
  237. package/dist/lib/vfs.d.mts +321 -0
  238. package/dist/lib/vfs.d.mts.map +1 -0
  239. package/dist/lib/vfs.mjs +1102 -0
  240. package/dist/lib/vfs.mjs.map +1 -0
  241. package/dist/plugin-base.cjs +5 -9
  242. package/dist/plugin-base.mjs +5 -9
  243. package/dist/plugin-base.mjs.map +1 -1
  244. package/dist/plugin-utils/build-helpers.cjs +2 -2
  245. package/dist/plugin-utils/build-helpers.mjs +2 -2
  246. package/dist/plugin-utils/build-helpers.mjs.map +1 -1
  247. package/dist/plugin-utils/combine-plugins.d.cts +7 -8
  248. package/dist/plugin-utils/combine-plugins.d.cts.map +1 -1
  249. package/dist/plugin-utils/combine-plugins.d.mts +7 -8
  250. package/dist/plugin-utils/combine-plugins.d.mts.map +1 -1
  251. package/dist/plugin-utils/combine-plugins.mjs.map +1 -1
  252. package/dist/plugin-utils/context-helpers.cjs +29 -16
  253. package/dist/plugin-utils/context-helpers.d.cts +10 -2
  254. package/dist/plugin-utils/context-helpers.d.cts.map +1 -1
  255. package/dist/plugin-utils/context-helpers.d.mts +10 -2
  256. package/dist/plugin-utils/context-helpers.d.mts.map +1 -1
  257. package/dist/plugin-utils/context-helpers.mjs +29 -17
  258. package/dist/plugin-utils/context-helpers.mjs.map +1 -1
  259. package/dist/plugin-utils/docs-helper.cjs +17 -0
  260. package/dist/plugin-utils/docs-helper.d.cts +11 -0
  261. package/dist/plugin-utils/docs-helper.d.cts.map +1 -0
  262. package/dist/plugin-utils/docs-helper.d.mts +11 -0
  263. package/dist/plugin-utils/docs-helper.d.mts.map +1 -0
  264. package/dist/plugin-utils/docs-helper.mjs +16 -0
  265. package/dist/plugin-utils/docs-helper.mjs.map +1 -0
  266. package/dist/plugin-utils/extend.mjs.map +1 -1
  267. package/dist/plugin-utils/filter.cjs +101 -0
  268. package/dist/plugin-utils/filter.d.cts +16 -0
  269. package/dist/plugin-utils/filter.d.cts.map +1 -0
  270. package/dist/plugin-utils/filter.d.mts +16 -0
  271. package/dist/plugin-utils/filter.d.mts.map +1 -0
  272. package/dist/plugin-utils/filter.mjs +91 -0
  273. package/dist/plugin-utils/filter.mjs.map +1 -0
  274. package/dist/plugin-utils/format-package-json.cjs +1 -1
  275. package/dist/plugin-utils/format-package-json.mjs +1 -1
  276. package/dist/plugin-utils/format-package-json.mjs.map +1 -1
  277. package/dist/plugin-utils/format.cjs +44 -0
  278. package/dist/plugin-utils/format.d.cts +11 -0
  279. package/dist/plugin-utils/format.d.cts.map +1 -0
  280. package/dist/plugin-utils/format.d.mts +11 -0
  281. package/dist/plugin-utils/format.d.mts.map +1 -0
  282. package/dist/plugin-utils/format.mjs +43 -0
  283. package/dist/plugin-utils/format.mjs.map +1 -0
  284. package/dist/plugin-utils/get-config-path.cjs +34 -32
  285. package/dist/plugin-utils/get-config-path.d.cts +4 -1
  286. package/dist/plugin-utils/get-config-path.d.cts.map +1 -1
  287. package/dist/plugin-utils/get-config-path.d.mts +4 -1
  288. package/dist/plugin-utils/get-config-path.d.mts.map +1 -1
  289. package/dist/plugin-utils/get-config-path.mjs +34 -32
  290. package/dist/plugin-utils/get-config-path.mjs.map +1 -1
  291. package/dist/plugin-utils/helpers.cjs +25 -10
  292. package/dist/plugin-utils/helpers.d.cts +32 -25
  293. package/dist/plugin-utils/helpers.d.cts.map +1 -1
  294. package/dist/plugin-utils/helpers.d.mts +32 -25
  295. package/dist/plugin-utils/helpers.d.mts.map +1 -1
  296. package/dist/plugin-utils/helpers.mjs +22 -8
  297. package/dist/plugin-utils/helpers.mjs.map +1 -1
  298. package/dist/plugin-utils/index.cjs +48 -4
  299. package/dist/plugin-utils/index.d.cts +9 -3
  300. package/dist/plugin-utils/index.d.mts +9 -3
  301. package/dist/plugin-utils/index.mjs +11 -5
  302. package/dist/plugin-utils/install.cjs +47 -0
  303. package/dist/plugin-utils/install.d.cts +23 -0
  304. package/dist/plugin-utils/install.d.cts.map +1 -0
  305. package/dist/plugin-utils/install.d.mts +23 -0
  306. package/dist/plugin-utils/install.d.mts.map +1 -0
  307. package/dist/plugin-utils/install.mjs +45 -0
  308. package/dist/plugin-utils/install.mjs.map +1 -0
  309. package/dist/plugin-utils/logging.cjs +605 -0
  310. package/dist/plugin-utils/logging.d.cts +111 -0
  311. package/dist/plugin-utils/logging.d.cts.map +1 -0
  312. package/dist/plugin-utils/logging.d.mts +111 -0
  313. package/dist/plugin-utils/logging.d.mts.map +1 -0
  314. package/dist/plugin-utils/logging.mjs +588 -0
  315. package/dist/plugin-utils/logging.mjs.map +1 -0
  316. package/dist/plugin-utils/merge.cjs +21 -3
  317. package/dist/plugin-utils/merge.d.cts +0 -1
  318. package/dist/plugin-utils/merge.d.cts.map +1 -1
  319. package/dist/plugin-utils/merge.d.mts.map +1 -1
  320. package/dist/plugin-utils/merge.mjs +20 -2
  321. package/dist/plugin-utils/merge.mjs.map +1 -1
  322. package/dist/plugin-utils/modules.cjs +1 -1
  323. package/dist/plugin-utils/modules.mjs +1 -1
  324. package/dist/plugin-utils/modules.mjs.map +1 -1
  325. package/dist/plugin-utils/paths.cjs +18 -4
  326. package/dist/plugin-utils/paths.d.cts +12 -2
  327. package/dist/plugin-utils/paths.d.cts.map +1 -1
  328. package/dist/plugin-utils/paths.d.mts +12 -2
  329. package/dist/plugin-utils/paths.d.mts.map +1 -1
  330. package/dist/plugin-utils/paths.mjs +18 -4
  331. package/dist/plugin-utils/paths.mjs.map +1 -1
  332. package/dist/plugin-utils/virtual.cjs +80 -0
  333. package/dist/plugin-utils/virtual.d.cts +69 -0
  334. package/dist/plugin-utils/virtual.d.cts.map +1 -0
  335. package/dist/plugin-utils/virtual.d.mts +69 -0
  336. package/dist/plugin-utils/virtual.d.mts.map +1 -0
  337. package/dist/plugin-utils/virtual.mjs +73 -0
  338. package/dist/plugin-utils/virtual.mjs.map +1 -0
  339. package/dist/schemas/fs.cjs +232 -0
  340. package/dist/schemas/fs.d.cts +127 -0
  341. package/dist/schemas/fs.d.cts.map +1 -0
  342. package/dist/schemas/fs.d.mts +127 -0
  343. package/dist/schemas/fs.d.mts.map +1 -0
  344. package/dist/schemas/fs.mjs +226 -0
  345. package/dist/schemas/fs.mjs.map +1 -0
  346. package/dist/storage/base.cjs +216 -0
  347. package/dist/storage/base.d.cts +201 -0
  348. package/dist/storage/base.d.cts.map +1 -0
  349. package/dist/storage/base.d.mts +201 -0
  350. package/dist/storage/base.d.mts.map +1 -0
  351. package/dist/storage/base.mjs +215 -0
  352. package/dist/storage/base.mjs.map +1 -0
  353. package/dist/storage/file-system.cjs +180 -0
  354. package/dist/storage/file-system.d.cts +129 -0
  355. package/dist/storage/file-system.d.cts.map +1 -0
  356. package/dist/storage/file-system.d.mts +129 -0
  357. package/dist/storage/file-system.d.mts.map +1 -0
  358. package/dist/storage/file-system.mjs +179 -0
  359. package/dist/storage/file-system.mjs.map +1 -0
  360. package/dist/storage/helpers.cjs +37 -0
  361. package/dist/storage/helpers.d.cts +25 -0
  362. package/dist/storage/helpers.d.cts.map +1 -0
  363. package/dist/storage/helpers.d.mts +25 -0
  364. package/dist/storage/helpers.d.mts.map +1 -0
  365. package/dist/storage/helpers.mjs +34 -0
  366. package/dist/storage/helpers.mjs.map +1 -0
  367. package/dist/storage/index.cjs +12 -0
  368. package/dist/storage/index.d.cts +5 -0
  369. package/dist/storage/index.d.mts +5 -0
  370. package/dist/storage/index.mjs +6 -0
  371. package/dist/storage/virtual.cjs +98 -0
  372. package/dist/storage/virtual.d.cts +80 -0
  373. package/dist/storage/virtual.d.cts.map +1 -0
  374. package/dist/storage/virtual.d.mts +80 -0
  375. package/dist/storage/virtual.d.mts.map +1 -0
  376. package/dist/storage/virtual.mjs +97 -0
  377. package/dist/storage/virtual.mjs.map +1 -0
  378. package/dist/types/api.d.cts +18 -99
  379. package/dist/types/api.d.cts.map +1 -1
  380. package/dist/types/api.d.mts +18 -99
  381. package/dist/types/api.d.mts.map +1 -1
  382. package/dist/types/config.d.cts +241 -143
  383. package/dist/types/config.d.cts.map +1 -1
  384. package/dist/types/config.d.mts +242 -144
  385. package/dist/types/config.d.mts.map +1 -1
  386. package/dist/types/context.d.cts +228 -117
  387. package/dist/types/context.d.cts.map +1 -1
  388. package/dist/types/context.d.mts +231 -120
  389. package/dist/types/context.d.mts.map +1 -1
  390. package/dist/types/fs.d.cts +49 -5
  391. package/dist/types/fs.d.cts.map +1 -1
  392. package/dist/types/fs.d.mts +50 -6
  393. package/dist/types/fs.d.mts.map +1 -1
  394. package/dist/types/hooks.d.cts +26 -38
  395. package/dist/types/hooks.d.cts.map +1 -1
  396. package/dist/types/hooks.d.mts +26 -38
  397. package/dist/types/hooks.d.mts.map +1 -1
  398. package/dist/types/index.d.cts +9 -0
  399. package/dist/types/index.d.mts +8 -8
  400. package/dist/types/logging.d.cts +161 -0
  401. package/dist/types/logging.d.cts.map +1 -0
  402. package/dist/types/logging.d.mts +161 -0
  403. package/dist/types/logging.d.mts.map +1 -0
  404. package/dist/types/plugin.d.cts +27 -28
  405. package/dist/types/plugin.d.cts.map +1 -1
  406. package/dist/types/plugin.d.mts +27 -28
  407. package/dist/types/plugin.d.mts.map +1 -1
  408. package/dist/types/tsconfig.d.cts +15 -12
  409. package/dist/types/tsconfig.d.cts.map +1 -1
  410. package/dist/types/tsconfig.d.mts +16 -13
  411. package/dist/types/tsconfig.d.mts.map +1 -1
  412. package/dist/types/unplugin.d.cts +10 -23
  413. package/dist/types/unplugin.d.cts.map +1 -1
  414. package/dist/types/unplugin.d.mts +10 -23
  415. package/dist/types/unplugin.d.mts.map +1 -1
  416. package/package.json +270 -425
  417. package/schemas/fs.capnp +42 -0
  418. package/dist/lib/logger.cjs +0 -59
  419. package/dist/lib/logger.d.cts +0 -23
  420. package/dist/lib/logger.d.cts.map +0 -1
  421. package/dist/lib/logger.d.mts +0 -23
  422. package/dist/lib/logger.d.mts.map +0 -1
  423. package/dist/lib/logger.mjs +0 -56
  424. package/dist/lib/logger.mjs.map +0 -1
  425. package/dist/types/_internal.cjs +0 -0
  426. package/dist/types/_internal.d.cts +0 -106
  427. package/dist/types/_internal.d.cts.map +0 -1
  428. package/dist/types/_internal.d.mts +0 -106
  429. package/dist/types/_internal.d.mts.map +0 -1
  430. package/dist/types/_internal.mjs +0 -1
  431. package/dist/types/commands.d.cts +0 -13
  432. package/dist/types/commands.d.cts.map +0 -1
  433. package/dist/types/commands.d.mts +0 -13
  434. package/dist/types/commands.d.mts.map +0 -1
@@ -0,0 +1,42 @@
1
+ @0xa56c61324b9d6e49;
2
+
3
+ # Additional metadata associated with a file in the file system.
4
+ struct FileMetadata {
5
+ # The identifier for the file data.
6
+ id @0 :Text;
7
+ # The type of the file.
8
+ type @1 :Text = "normal";
9
+ # The timestamp representing the file's creation date.
10
+ timestamp @2 :UInt32;
11
+ # Additional metadata associated with the file.
12
+ properties @3 :List(KeyValuePair);
13
+
14
+ struct KeyValuePair {
15
+ key @0 :Text;
16
+ value @1 :Text;
17
+ }
18
+ }
19
+
20
+ # A mapping between a file path and its unique identifier.
21
+ # Note: Multiple paths can map to the same identifier (e.g., symlinks).
22
+ struct FileId {
23
+ # An identifier for the file.
24
+ id @0 :Text;
25
+ # A virtual (or actual) path to the file in the file system.
26
+ path @1 :Text;
27
+ }
28
+
29
+ # The content of a file in the file system.
30
+ struct FileStorage {
31
+ # An identifier for the file.
32
+ path @0 :Text;
33
+ # A virtual (or actual) path to the file in the file system.
34
+ code @1 :Text;
35
+ }
36
+
37
+ # A virtual representation of a file system containing multiple files.
38
+ struct FileSystem {
39
+ ids @0 :List(FileId);
40
+ storage @1 :List(FileStorage);
41
+ metadata @2 :List(FileMetadata);
42
+ }
@@ -1,59 +0,0 @@
1
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_runtime = require('../_virtual/_rolldown/runtime.cjs');
3
- let _storm_software_config_tools_logger = require("@storm-software/config-tools/logger");
4
- let _storm_software_config_tools_types = require("@storm-software/config-tools/types");
5
- let _storm_software_config_tools_utilities_colors = require("@storm-software/config-tools/utilities/colors");
6
- let _stryke_helpers_noop = require("@stryke/helpers/noop");
7
- let _stryke_string_format_kebab_case = require("@stryke/string-format/kebab-case");
8
- let _stryke_string_format_title_case = require("@stryke/string-format/title-case");
9
- let chalk = require("chalk");
10
- chalk = require_runtime.__toESM(chalk);
11
-
12
- //#region src/lib/logger.ts
13
- /**
14
- * Create a logging function with a specific name and options.
15
- *
16
- * @param name - The name of the logging function.
17
- * @param options - The options to configure the logging function.
18
- * @returns A logging function.
19
- */
20
- const createLog = (name, options = {}) => {
21
- const logLevel = options.logLevel === null ? _storm_software_config_tools_types.LogLevelLabel.SILENT : options.logLevel || _storm_software_config_tools_types.LogLevelLabel.INFO;
22
- if (logLevel === _storm_software_config_tools_types.LogLevelLabel.SILENT) return _stryke_helpers_noop.noop;
23
- if (options.customLogger) return options.customLogger;
24
- return (type, ...args) => (0, _storm_software_config_tools_logger.getLogFn)((0, _storm_software_config_tools_logger.getLogLevel)(type), {
25
- ...options,
26
- logLevel
27
- })(`${chalk.default.bold.hex((0, _storm_software_config_tools_utilities_colors.getColor)("brand", options))(`${name ? (0, _stryke_string_format_kebab_case.kebabCase)(name) : ""}${options.name ? `${name ? chalk.default.gray(" > ") : ""}${(0, _stryke_string_format_kebab_case.kebabCase)(options.name)}` : ""}${chalk.default.gray(" > ")}`)}${args.join(" ")} `.trim());
28
- };
29
- const BADGE_COLORS = [
30
- "#00A0DD",
31
- "#6FCE4E",
32
- "#FBBF24",
33
- "#F43F5E",
34
- "#3B82F6",
35
- "#A855F7",
36
- "#469592",
37
- "#288EDF",
38
- "#D8B4FE",
39
- "#10B981",
40
- "#EF4444",
41
- "#F0EC56",
42
- "#F472B6",
43
- "#22D3EE",
44
- "#EAB308",
45
- "#84CC16",
46
- "#F87171",
47
- "#0EA5E9",
48
- "#D946EF",
49
- "#FACC15",
50
- "#34D399",
51
- "#8B5CF6"
52
- ];
53
- const extendLog = (logFn, name) => {
54
- return (type, ...args) => logFn(type, ` ${chalk.default.inverse.hex(BADGE_COLORS[name.split("").map((char) => char.charCodeAt(0)).reduce((ret, charCode) => ret + charCode, 0) % BADGE_COLORS.length] || BADGE_COLORS[0])(` ${(0, _stryke_string_format_title_case.titleCase)(name)} `)} ${args.join(" ")} `);
55
- };
56
-
57
- //#endregion
58
- exports.createLog = createLog;
59
- exports.extendLog = extendLog;
@@ -1,23 +0,0 @@
1
- import { LogFn, WorkspaceConfig } from "../types/config.cjs";
2
- import { LogLevelLabel } from "@storm-software/config-tools/types";
3
-
4
- //#region src/lib/logger.d.ts
5
- interface CreateLogOptions {
6
- name?: string;
7
- logLevel?: LogLevelLabel | null;
8
- customLogger?: LogFn;
9
- colors?: WorkspaceConfig["colors"];
10
- }
11
- /**
12
- * Create a logging function with a specific name and options.
13
- *
14
- * @param name - The name of the logging function.
15
- * @param options - The options to configure the logging function.
16
- * @returns A logging function.
17
- */
18
- declare const createLog: (name: string | null, options?: CreateLogOptions) => LogFn;
19
- declare const extendLog: (logFn: LogFn, name: string) => LogFn;
20
- declare type __ΩCreateLogOptions = any[];
21
- //#endregion
22
- export { CreateLogOptions, __ΩCreateLogOptions, createLog, extendLog };
23
- //# sourceMappingURL=logger.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"logger.d.cts","names":[],"sources":["../../src/lib/logger.ts"],"mappings":";;;;UA2BiB,gBAAA;EACf,IAAA;EACA,QAAA,GAAW,aAAA;EACX,YAAA,GAAe,KAAA;EACf,MAAA,GAAS,eAAA;AAAA;;;;;;;;cAUE,SAAA,GACX,IAAA,iBACA,OAAA,GAAS,gBAAA,KACR,KAAA;AAAA,cAmDU,SAAA,GAAa,KAAA,EAAO,KAAA,EAAO,IAAA,aAAe,KAAA;AAAA"}
@@ -1,23 +0,0 @@
1
- import { LogFn, WorkspaceConfig } from "../types/config.mjs";
2
- import { LogLevelLabel } from "@storm-software/config-tools/types";
3
-
4
- //#region src/lib/logger.d.ts
5
- interface CreateLogOptions {
6
- name?: string;
7
- logLevel?: LogLevelLabel | null;
8
- customLogger?: LogFn;
9
- colors?: WorkspaceConfig["colors"];
10
- }
11
- /**
12
- * Create a logging function with a specific name and options.
13
- *
14
- * @param name - The name of the logging function.
15
- * @param options - The options to configure the logging function.
16
- * @returns A logging function.
17
- */
18
- declare const createLog: (name: string | null, options?: CreateLogOptions) => LogFn;
19
- declare const extendLog: (logFn: LogFn, name: string) => LogFn;
20
- declare type __ΩCreateLogOptions = any[];
21
- //#endregion
22
- export { CreateLogOptions, __ΩCreateLogOptions, createLog, extendLog };
23
- //# sourceMappingURL=logger.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"logger.d.mts","names":[],"sources":["../../src/lib/logger.ts"],"mappings":";;;;UA2BiB,gBAAA;EACf,IAAA;EACA,QAAA,GAAW,aAAA;EACX,YAAA,GAAe,KAAA;EACf,MAAA,GAAS,eAAA;AAAA;;;;;;;;cAUE,SAAA,GACX,IAAA,iBACA,OAAA,GAAS,gBAAA,KACR,KAAA;AAAA,cAmDU,SAAA,GAAa,KAAA,EAAO,KAAA,EAAO,IAAA,aAAe,KAAA;AAAA"}
@@ -1,56 +0,0 @@
1
- import { getLogFn, getLogLevel } from "@storm-software/config-tools/logger";
2
- import { LogLevelLabel } from "@storm-software/config-tools/types";
3
- import { getColor } from "@storm-software/config-tools/utilities/colors";
4
- import { noop } from "@stryke/helpers/noop";
5
- import { kebabCase } from "@stryke/string-format/kebab-case";
6
- import { titleCase } from "@stryke/string-format/title-case";
7
- import chalk from "chalk";
8
-
9
- //#region src/lib/logger.ts
10
- /**
11
- * Create a logging function with a specific name and options.
12
- *
13
- * @param name - The name of the logging function.
14
- * @param options - The options to configure the logging function.
15
- * @returns A logging function.
16
- */
17
- const createLog = (name, options = {}) => {
18
- const logLevel = options.logLevel === null ? LogLevelLabel.SILENT : options.logLevel || LogLevelLabel.INFO;
19
- if (logLevel === LogLevelLabel.SILENT) return noop;
20
- if (options.customLogger) return options.customLogger;
21
- return (type, ...args) => getLogFn(getLogLevel(type), {
22
- ...options,
23
- logLevel
24
- })(`${chalk.bold.hex(getColor("brand", options))(`${name ? kebabCase(name) : ""}${options.name ? `${name ? chalk.gray(" > ") : ""}${kebabCase(options.name)}` : ""}${chalk.gray(" > ")}`)}${args.join(" ")} `.trim());
25
- };
26
- const BADGE_COLORS = [
27
- "#00A0DD",
28
- "#6FCE4E",
29
- "#FBBF24",
30
- "#F43F5E",
31
- "#3B82F6",
32
- "#A855F7",
33
- "#469592",
34
- "#288EDF",
35
- "#D8B4FE",
36
- "#10B981",
37
- "#EF4444",
38
- "#F0EC56",
39
- "#F472B6",
40
- "#22D3EE",
41
- "#EAB308",
42
- "#84CC16",
43
- "#F87171",
44
- "#0EA5E9",
45
- "#D946EF",
46
- "#FACC15",
47
- "#34D399",
48
- "#8B5CF6"
49
- ];
50
- const extendLog = (logFn, name) => {
51
- return (type, ...args) => logFn(type, ` ${chalk.inverse.hex(BADGE_COLORS[name.split("").map((char) => char.charCodeAt(0)).reduce((ret, charCode) => ret + charCode, 0) % BADGE_COLORS.length] || BADGE_COLORS[0])(` ${titleCase(name)} `)} ${args.join(" ")} `);
52
- };
53
-
54
- //#endregion
55
- export { createLog, extendLog };
56
- //# sourceMappingURL=logger.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"logger.mjs","names":[],"sources":["../../src/lib/logger.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { getLogFn, getLogLevel } from \"@storm-software/config-tools/logger\";\nimport { LogLevelLabel } from \"@storm-software/config-tools/types\";\nimport { getColor } from \"@storm-software/config-tools/utilities/colors\";\nimport { noop } from \"@stryke/helpers/noop\";\nimport { kebabCase } from \"@stryke/string-format/kebab-case\";\nimport { titleCase } from \"@stryke/string-format/title-case\";\nimport chalk from \"chalk\";\nimport type { LogFn, WorkspaceConfig } from \"../types\";\n\nexport interface CreateLogOptions {\n name?: string;\n logLevel?: LogLevelLabel | null;\n customLogger?: LogFn;\n colors?: WorkspaceConfig[\"colors\"];\n}\n\n/**\n * Create a logging function with a specific name and options.\n *\n * @param name - The name of the logging function.\n * @param options - The options to configure the logging function.\n * @returns A logging function.\n */\nexport const createLog = (\n name: string | null,\n options: CreateLogOptions = {}\n): LogFn => {\n const logLevel =\n options.logLevel === null\n ? LogLevelLabel.SILENT\n : options.logLevel || LogLevelLabel.INFO;\n if (logLevel === LogLevelLabel.SILENT) {\n return noop;\n }\n\n if (options.customLogger) {\n return options.customLogger;\n }\n\n return (type: LogLevelLabel, ...args: string[]) =>\n getLogFn(getLogLevel(type), {\n ...options,\n logLevel\n })(\n `${chalk.bold.hex(\n getColor(\"brand\", options as Parameters<typeof getColor>[1])\n )(\n `${name ? kebabCase(name) : \"\"}${options.name ? `${name ? chalk.gray(\" > \") : \"\"}${kebabCase(options.name)}` : \"\"}${chalk.gray(\" > \")}`\n )}${args.join(\" \")} `.trim()\n );\n};\n\nconst BADGE_COLORS = [\n \"#00A0DD\",\n \"#6FCE4E\",\n \"#FBBF24\",\n \"#F43F5E\",\n \"#3B82F6\",\n \"#A855F7\",\n \"#469592\",\n \"#288EDF\",\n \"#D8B4FE\",\n \"#10B981\",\n \"#EF4444\",\n \"#F0EC56\",\n \"#F472B6\",\n \"#22D3EE\",\n \"#EAB308\",\n \"#84CC16\",\n \"#F87171\",\n \"#0EA5E9\",\n \"#D946EF\",\n \"#FACC15\",\n \"#34D399\",\n \"#8B5CF6\"\n] as const;\n\nexport const extendLog = (logFn: LogFn, name: string): LogFn => {\n return (type: LogLevelLabel, ...args: string[]) =>\n logFn(\n type,\n ` ${chalk.inverse.hex(\n BADGE_COLORS[\n name\n .split(\"\")\n .map(char => char.charCodeAt(0))\n .reduce((ret, charCode) => ret + charCode, 0) % BADGE_COLORS.length\n ] || BADGE_COLORS[0]\n )(` ${titleCase(name)} `)} ${args.join(\" \")} `\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;AAyCA,MAAa,aACX,MACA,UAA4B,EAAE,KACpB;CACV,MAAM,WACJ,QAAQ,aAAa,OACjB,cAAc,SACd,QAAQ,YAAY,cAAc;AACxC,KAAI,aAAa,cAAc,OAC7B,QAAO;AAGT,KAAI,QAAQ,aACV,QAAO,QAAQ;AAGjB,SAAQ,MAAqB,GAAG,SAC9B,SAAS,YAAY,KAAK,EAAE;EAC1B,GAAG;EACH;EACD,CAAC,CACA,GAAG,MAAM,KAAK,IACZ,SAAS,SAAS,QAA0C,CAC7D,CACC,GAAG,OAAO,UAAU,KAAK,GAAG,KAAK,QAAQ,OAAO,GAAG,OAAO,MAAM,KAAK,MAAM,GAAG,KAAK,UAAU,QAAQ,KAAK,KAAK,KAAK,MAAM,KAAK,MAAM,GACtI,GAAG,KAAK,KAAK,IAAI,CAAC,GAAG,MAAM,CAC7B;;AAGL,MAAM,eAAe;CACnB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD;AAED,MAAa,aAAa,OAAc,SAAwB;AAC9D,SAAQ,MAAqB,GAAG,SAC9B,MACE,MACA,IAAI,MAAM,QAAQ,IAChB,aACE,KACG,MAAM,GAAG,CACT,KAAI,SAAQ,KAAK,WAAW,EAAE,CAAC,CAC/B,QAAQ,KAAK,aAAa,MAAM,UAAU,EAAE,GAAG,aAAa,WAC5D,aAAa,GACnB,CAAC,IAAI,UAAU,KAAK,CAAC,GAAG,CAAC,IAAI,KAAK,KAAK,IAAI,CAAC,GAC9C"}
File without changes
@@ -1,106 +0,0 @@
1
- import { API } from "./api.cjs";
2
- import { CallHookOptions, InferHookParameters, InferHookReturnType } from "./hooks.cjs";
3
- import { APIContext, Context, EnvironmentContext, PluginContext } from "./context.cjs";
4
- import { PluginConfig, ResolvedConfig } from "./config.cjs";
5
-
6
- //#region src/types/_internal.d.ts
7
- /**
8
- * Internal fields and methods for internal contexts
9
- *
10
- * @internal
11
- */
12
- interface UNSAFE_ContextInternal<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
13
- /**
14
- * The API instance for interacting with Powerlines
15
- *
16
- * @internal
17
- */
18
- api: API<TResolvedConfig>;
19
- /**
20
- * Add a Powerlines plugin used in the build process
21
- *
22
- * @internal
23
- *
24
- * @param config - The import path of the plugin to add
25
- */
26
- addPlugin: (config: PluginConfig<PluginContext<TResolvedConfig>>) => Promise<void>;
27
- }
28
- /**
29
- * An internal representation of the context, used for managing hooks and environment data.
30
- *
31
- * @internal
32
- */
33
- interface UNSAFE_Context<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends Context<TResolvedConfig> {
34
- $$internal: UNSAFE_ContextInternal<TResolvedConfig>;
35
- }
36
- /**
37
- * An internal representation of the API context, used for managing hooks and environment data.
38
- *
39
- * @internal
40
- */
41
- interface UNSAFE_APIContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends APIContext<TResolvedConfig> {
42
- $$internal: UNSAFE_ContextInternal<TResolvedConfig>;
43
- }
44
- /**
45
- * An internal representation of the environment context, used for managing hooks and environment data.
46
- *
47
- * @internal
48
- */
49
- interface UNSAFE_EnvironmentContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends EnvironmentContext<TResolvedConfig> {
50
- $$internal: UNSAFE_ContextInternal<TResolvedConfig>;
51
- }
52
- /**
53
- * Internal fields and methods for the internal plugin context
54
- *
55
- * @internal
56
- */
57
- interface UNSAFE_PluginContextInternal<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends UNSAFE_ContextInternal<TResolvedConfig> {
58
- /**
59
- * The API instance for interacting with Powerlines
60
- *
61
- * @internal
62
- */
63
- api: API<TResolvedConfig>;
64
- /**
65
- * The environment context associated with this plugin context
66
- *
67
- * @internal
68
- */
69
- environment: UNSAFE_EnvironmentContext<TResolvedConfig>;
70
- /**
71
- * Call a hook within the Powerlines system
72
- *
73
- * @internal
74
- *
75
- * @param hook - The name of the hook to call
76
- * @param options - Options for calling the hook
77
- * @param args - Arguments to pass to the hook
78
- * @returns The result of the hook call
79
- */
80
- callHook: <TKey extends string>(hook: TKey, options: CallHookOptions & {
81
- environment?: string | EnvironmentContext<TResolvedConfig>;
82
- }, ...args: InferHookParameters<PluginContext<TResolvedConfig>, TKey>) => Promise<InferHookReturnType<PluginContext<TResolvedConfig>, TKey> | undefined>;
83
- /**
84
- * A place to store internal data for the plugin context
85
- *
86
- * @internal
87
- */
88
- meta: Record<string, any>;
89
- }
90
- /**
91
- * An internal representation of the plugin context, used for managing hooks and environment data.
92
- *
93
- * @internal
94
- */
95
- interface UNSAFE_PluginContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends PluginContext<TResolvedConfig> {
96
- $$internal: UNSAFE_PluginContextInternal<TResolvedConfig>;
97
- }
98
- declare type __ΩUNSAFE_ContextInternal = any[];
99
- declare type __ΩUNSAFE_Context = any[];
100
- declare type __ΩUNSAFE_APIContext = any[];
101
- declare type __ΩUNSAFE_EnvironmentContext = any[];
102
- declare type __ΩUNSAFE_PluginContextInternal = any[];
103
- declare type __ΩUNSAFE_PluginContext = any[];
104
- //#endregion
105
- export { UNSAFE_APIContext, UNSAFE_Context, UNSAFE_ContextInternal, UNSAFE_EnvironmentContext, UNSAFE_PluginContext, UNSAFE_PluginContextInternal, __ΩUNSAFE_APIContext, __ΩUNSAFE_Context, __ΩUNSAFE_ContextInternal, __ΩUNSAFE_EnvironmentContext, __ΩUNSAFE_PluginContext, __ΩUNSAFE_PluginContextInternal };
106
- //# sourceMappingURL=_internal.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"_internal.d.cts","names":[],"sources":["../../src/types/_internal.ts"],"mappings":";;;;;;;;AAuCA;;;UAAiB,sBAAA,yBACS,cAAA,GAAiB,cAAA;EAAA;;;;;EAOzC,GAAA,EAAK,GAAA,CAAI,eAAA;EAWJ;;;;;;;EAFL,SAAA,GACE,MAAA,EAAQ,YAAA,CAAa,aAAA,CAAc,eAAA,OAChC,OAAA;AAAA;;;;;;UAQU,cAAA,yBACS,cAAA,GAAiB,cAAA,UACjC,OAAA,CAAQ,eAAA;EAChB,UAAA,EAAY,sBAAA,CAAuB,eAAA;AAAA;AAHrC;;;;;AAAA,UAWiB,iBAAA,yBACS,cAAA,GAAiB,cAAA,UACjC,UAAA,CAAW,eAAA;EACnB,UAAA,EAAY,sBAAA,CAAuB,eAAA;AAAA;;;;;;UAQpB,yBAAA,yBACS,cAAA,GAAiB,cAAA,UACjC,kBAAA,CAAmB,eAAA;EAC3B,UAAA,EAAY,sBAAA,CAAuB,eAAA;AAAA;;;;;;UAQpB,4BAAA,yBACS,cAAA,GAAiB,cAAA,UACjC,sBAAA,CAAuB,eAAA;EAxBC;;;;;EA8BhC,GAAA,EAAK,GAAA,CAAI,eAAA;EA3BG;;;;;EAkCZ,WAAA,EAAa,yBAAA,CAA0B,eAAA;EApCE;;;;;;;;AAU3C;;EAsCE,QAAA,wBACE,IAAA,EAAM,IAAA,EACN,OAAA,EAAS,eAAA;IACP,WAAA,YAAuB,kBAAA,CAAmB,eAAA;EAAA,MAEzC,IAAA,EAAM,mBAAA,CAAoB,aAAA,CAAc,eAAA,GAAkB,IAAA,MAC1D,OAAA,CACH,mBAAA,CAAoB,aAAA,CAAc,eAAA,GAAkB,IAAA;EA3C3B;;;;;EAmD3B,IAAA,EAAM,MAAA;AAAA;;;;;;UAQS,oBAAA,yBACS,cAAA,GAAiB,cAAA,UACjC,aAAA,CAAc,eAAA;EACtB,UAAA,EAAY,4BAAA,CAA6B,eAAA;AAAA;AAAA"}
@@ -1,106 +0,0 @@
1
- import { API } from "./api.mjs";
2
- import { CallHookOptions, InferHookParameters, InferHookReturnType } from "./hooks.mjs";
3
- import { APIContext, Context, EnvironmentContext, PluginContext } from "./context.mjs";
4
- import { PluginConfig, ResolvedConfig } from "./config.mjs";
5
-
6
- //#region src/types/_internal.d.ts
7
- /**
8
- * Internal fields and methods for internal contexts
9
- *
10
- * @internal
11
- */
12
- interface UNSAFE_ContextInternal<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
13
- /**
14
- * The API instance for interacting with Powerlines
15
- *
16
- * @internal
17
- */
18
- api: API<TResolvedConfig>;
19
- /**
20
- * Add a Powerlines plugin used in the build process
21
- *
22
- * @internal
23
- *
24
- * @param config - The import path of the plugin to add
25
- */
26
- addPlugin: (config: PluginConfig<PluginContext<TResolvedConfig>>) => Promise<void>;
27
- }
28
- /**
29
- * An internal representation of the context, used for managing hooks and environment data.
30
- *
31
- * @internal
32
- */
33
- interface UNSAFE_Context<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends Context<TResolvedConfig> {
34
- $$internal: UNSAFE_ContextInternal<TResolvedConfig>;
35
- }
36
- /**
37
- * An internal representation of the API context, used for managing hooks and environment data.
38
- *
39
- * @internal
40
- */
41
- interface UNSAFE_APIContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends APIContext<TResolvedConfig> {
42
- $$internal: UNSAFE_ContextInternal<TResolvedConfig>;
43
- }
44
- /**
45
- * An internal representation of the environment context, used for managing hooks and environment data.
46
- *
47
- * @internal
48
- */
49
- interface UNSAFE_EnvironmentContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends EnvironmentContext<TResolvedConfig> {
50
- $$internal: UNSAFE_ContextInternal<TResolvedConfig>;
51
- }
52
- /**
53
- * Internal fields and methods for the internal plugin context
54
- *
55
- * @internal
56
- */
57
- interface UNSAFE_PluginContextInternal<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends UNSAFE_ContextInternal<TResolvedConfig> {
58
- /**
59
- * The API instance for interacting with Powerlines
60
- *
61
- * @internal
62
- */
63
- api: API<TResolvedConfig>;
64
- /**
65
- * The environment context associated with this plugin context
66
- *
67
- * @internal
68
- */
69
- environment: UNSAFE_EnvironmentContext<TResolvedConfig>;
70
- /**
71
- * Call a hook within the Powerlines system
72
- *
73
- * @internal
74
- *
75
- * @param hook - The name of the hook to call
76
- * @param options - Options for calling the hook
77
- * @param args - Arguments to pass to the hook
78
- * @returns The result of the hook call
79
- */
80
- callHook: <TKey extends string>(hook: TKey, options: CallHookOptions & {
81
- environment?: string | EnvironmentContext<TResolvedConfig>;
82
- }, ...args: InferHookParameters<PluginContext<TResolvedConfig>, TKey>) => Promise<InferHookReturnType<PluginContext<TResolvedConfig>, TKey> | undefined>;
83
- /**
84
- * A place to store internal data for the plugin context
85
- *
86
- * @internal
87
- */
88
- meta: Record<string, any>;
89
- }
90
- /**
91
- * An internal representation of the plugin context, used for managing hooks and environment data.
92
- *
93
- * @internal
94
- */
95
- interface UNSAFE_PluginContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends PluginContext<TResolvedConfig> {
96
- $$internal: UNSAFE_PluginContextInternal<TResolvedConfig>;
97
- }
98
- declare type __ΩUNSAFE_ContextInternal = any[];
99
- declare type __ΩUNSAFE_Context = any[];
100
- declare type __ΩUNSAFE_APIContext = any[];
101
- declare type __ΩUNSAFE_EnvironmentContext = any[];
102
- declare type __ΩUNSAFE_PluginContextInternal = any[];
103
- declare type __ΩUNSAFE_PluginContext = any[];
104
- //#endregion
105
- export { UNSAFE_APIContext, UNSAFE_Context, UNSAFE_ContextInternal, UNSAFE_EnvironmentContext, UNSAFE_PluginContext, UNSAFE_PluginContextInternal, __ΩUNSAFE_APIContext, __ΩUNSAFE_Context, __ΩUNSAFE_ContextInternal, __ΩUNSAFE_EnvironmentContext, __ΩUNSAFE_PluginContext, __ΩUNSAFE_PluginContextInternal };
106
- //# sourceMappingURL=_internal.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"_internal.d.mts","names":[],"sources":["../../src/types/_internal.ts"],"mappings":";;;;;;;;AAuCA;;;UAAiB,sBAAA,yBACS,cAAA,GAAiB,cAAA;EAAA;;;;;EAOzC,GAAA,EAAK,GAAA,CAAI,eAAA;EAWJ;;;;;;;EAFL,SAAA,GACE,MAAA,EAAQ,YAAA,CAAa,aAAA,CAAc,eAAA,OAChC,OAAA;AAAA;;;;;;UAQU,cAAA,yBACS,cAAA,GAAiB,cAAA,UACjC,OAAA,CAAQ,eAAA;EAChB,UAAA,EAAY,sBAAA,CAAuB,eAAA;AAAA;AAHrC;;;;;AAAA,UAWiB,iBAAA,yBACS,cAAA,GAAiB,cAAA,UACjC,UAAA,CAAW,eAAA;EACnB,UAAA,EAAY,sBAAA,CAAuB,eAAA;AAAA;;;;;;UAQpB,yBAAA,yBACS,cAAA,GAAiB,cAAA,UACjC,kBAAA,CAAmB,eAAA;EAC3B,UAAA,EAAY,sBAAA,CAAuB,eAAA;AAAA;;;;;;UAQpB,4BAAA,yBACS,cAAA,GAAiB,cAAA,UACjC,sBAAA,CAAuB,eAAA;EAxBC;;;;;EA8BhC,GAAA,EAAK,GAAA,CAAI,eAAA;EA3BG;;;;;EAkCZ,WAAA,EAAa,yBAAA,CAA0B,eAAA;EApCE;;;;;;;;AAU3C;;EAsCE,QAAA,wBACE,IAAA,EAAM,IAAA,EACN,OAAA,EAAS,eAAA;IACP,WAAA,YAAuB,kBAAA,CAAmB,eAAA;EAAA,MAEzC,IAAA,EAAM,mBAAA,CAAoB,aAAA,CAAc,eAAA,GAAkB,IAAA,MAC1D,OAAA,CACH,mBAAA,CAAoB,aAAA,CAAc,eAAA,GAAkB,IAAA;EA3C3B;;;;;EAmD3B,IAAA,EAAM,MAAA;AAAA;;;;;;UAQS,oBAAA,yBACS,cAAA,GAAiB,cAAA,UACjC,aAAA,CAAc,eAAA;EACtB,UAAA,EAAY,4BAAA,CAA6B,eAAA;AAAA;AAAA"}
@@ -1 +0,0 @@
1
- export { };
@@ -1,13 +0,0 @@
1
- import { SUPPORTED_COMMANDS } from "../constants/commands.cjs";
2
- import { Context } from "./context.cjs";
3
- import { MaybePromise } from "@stryke/types/base";
4
- import { ArrayValues } from "@stryke/types/array";
5
-
6
- //#region src/types/commands.d.ts
7
- type CommandType = ArrayValues<typeof SUPPORTED_COMMANDS>;
8
- type Commands<TContext extends Context = Context> = Record<CommandType, (this: TContext) => MaybePromise<void>>;
9
- declare type __ΩCommandType = any[];
10
- declare type __ΩCommands = any[];
11
- //#endregion
12
- export { CommandType, Commands, __ΩCommandType, __ΩCommands };
13
- //# sourceMappingURL=commands.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"commands.d.cts","names":[],"sources":["../../src/types/commands.ts"],"mappings":";;;;;;KAuBY,WAAA,GAAc,WAAA,QAAmB,kBAAA;AAAA,KACjC,QAAA,kBAA0B,OAAA,GAAU,OAAA,IAAW,MAAA,CACzD,WAAA,GACC,IAAA,EAAM,QAAA,KAAa,YAAA;AAAA"}
@@ -1,13 +0,0 @@
1
- import { SUPPORTED_COMMANDS } from "../constants/commands.mjs";
2
- import { Context } from "./context.mjs";
3
- import { MaybePromise } from "@stryke/types/base";
4
- import { ArrayValues } from "@stryke/types/array";
5
-
6
- //#region src/types/commands.d.ts
7
- type CommandType = ArrayValues<typeof SUPPORTED_COMMANDS>;
8
- type Commands<TContext extends Context = Context> = Record<CommandType, (this: TContext) => MaybePromise<void>>;
9
- declare type __ΩCommandType = any[];
10
- declare type __ΩCommands = any[];
11
- //#endregion
12
- export { CommandType, Commands, __ΩCommandType, __ΩCommands };
13
- //# sourceMappingURL=commands.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"commands.d.mts","names":[],"sources":["../../src/types/commands.ts"],"mappings":";;;;;;KAuBY,WAAA,GAAc,WAAA,QAAmB,kBAAA;AAAA,KACjC,QAAA,kBAA0B,OAAA,GAAU,OAAA,IAAW,MAAA,CACzD,WAAA,GACC,IAAA,EAAM,QAAA,KAAa,YAAA;AAAA"}