@powerlines/plugin-env 0.15.121 → 0.15.122

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 (277) hide show
  1. package/dist/_virtual/rolldown_runtime.cjs +0 -4
  2. package/dist/babel/plugin.cjs +11 -11
  3. package/dist/babel/plugin.d.mts +2 -2
  4. package/dist/babel/plugin.mjs +5 -5
  5. package/dist/components/docs.cjs +8 -8
  6. package/dist/components/docs.d.mts +1 -1
  7. package/dist/components/docs.mjs +4 -4
  8. package/dist/components/env.cjs +43 -42
  9. package/dist/components/env.d.mts +2 -2
  10. package/dist/components/env.mjs +11 -11
  11. package/dist/deepkit/schemas/reflection.cjs +5426 -0
  12. package/dist/deepkit/schemas/reflection.mjs +5423 -0
  13. package/dist/deepkit/schemas/reflection2.cjs +4112 -0
  14. package/dist/deepkit/schemas/reflection2.mjs +4110 -0
  15. package/dist/deepkit/src/capnp.cjs +1692 -0
  16. package/dist/deepkit/src/capnp.mjs +1690 -0
  17. package/dist/deepkit/src/esbuild-plugin.cjs +99 -0
  18. package/dist/deepkit/src/esbuild-plugin.mjs +98 -0
  19. package/dist/deepkit/src/reflect-type.cjs +40 -0
  20. package/dist/deepkit/src/reflect-type.mjs +38 -0
  21. package/dist/deepkit/src/resolve-reflections.cjs +23 -0
  22. package/dist/deepkit/src/resolve-reflections.mjs +22 -0
  23. package/dist/deepkit/src/transformer.cjs +92 -0
  24. package/dist/deepkit/src/transformer.mjs +89 -0
  25. package/dist/deepkit/src/transpile.cjs +39 -0
  26. package/dist/deepkit/src/transpile.mjs +37 -0
  27. package/dist/deepkit/src/types.cjs +22 -0
  28. package/dist/deepkit/src/types.mjs +21 -0
  29. package/dist/deepkit/src/utilities.cjs +184 -0
  30. package/dist/deepkit/src/utilities.mjs +183 -0
  31. package/dist/helpers/automd-generator.cjs +4 -4
  32. package/dist/helpers/automd-generator.d.mts +1 -1
  33. package/dist/helpers/automd-generator.mjs +2 -2
  34. package/dist/helpers/docs-helper.cjs +3 -2
  35. package/dist/helpers/docs-helper.mjs +1 -1
  36. package/dist/helpers/load.cjs +15 -14
  37. package/dist/helpers/load.mjs +10 -10
  38. package/dist/helpers/persistence.cjs +23 -23
  39. package/dist/helpers/persistence.d.mts +1 -1
  40. package/dist/helpers/persistence.mjs +5 -5
  41. package/dist/helpers/reflect.cjs +9 -9
  42. package/dist/helpers/reflect.mjs +3 -3
  43. package/dist/helpers/source-file-env.cjs +1 -1
  44. package/dist/helpers/source-file-env.mjs +1 -1
  45. package/dist/index.cjs +24 -26
  46. package/dist/index.d.mts +1 -1
  47. package/dist/index.mjs +14 -14
  48. package/dist/plugin-alloy/src/core/components/output.cjs +43 -0
  49. package/dist/plugin-alloy/src/core/components/output.mjs +42 -0
  50. package/dist/plugin-alloy/src/core/components/single-line-comment.cjs +22 -0
  51. package/dist/plugin-alloy/src/core/components/single-line-comment.mjs +21 -0
  52. package/dist/plugin-alloy/src/core/components/source-file.cjs +64 -0
  53. package/dist/plugin-alloy/src/core/components/source-file.mjs +62 -0
  54. package/dist/plugin-alloy/src/core/contexts/context.cjs +134 -0
  55. package/dist/plugin-alloy/src/core/contexts/context.mjs +126 -0
  56. package/dist/plugin-alloy/src/core/contexts/index.cjs +2 -0
  57. package/dist/plugin-alloy/src/core/contexts/index.mjs +4 -0
  58. package/dist/plugin-alloy/src/core/contexts/reflection.cjs +110 -0
  59. package/dist/plugin-alloy/src/core/contexts/reflection.mjs +101 -0
  60. package/dist/plugin-alloy/src/helpers/refkey.cjs +23 -0
  61. package/dist/plugin-alloy/src/helpers/refkey.mjs +22 -0
  62. package/dist/plugin-alloy/src/index.cjs +105 -0
  63. package/dist/plugin-alloy/src/index.mjs +103 -0
  64. package/dist/plugin-alloy/src/markdown/components/markdown-file.cjs +115 -0
  65. package/dist/plugin-alloy/src/markdown/components/markdown-file.mjs +114 -0
  66. package/dist/plugin-alloy/src/markdown/components/markdown-table.cjs +39 -0
  67. package/dist/plugin-alloy/src/markdown/components/markdown-table.mjs +38 -0
  68. package/dist/plugin-alloy/src/markdown/contexts/markdown-table.cjs +72 -0
  69. package/dist/plugin-alloy/src/markdown/contexts/markdown-table.mjs +71 -0
  70. package/dist/plugin-alloy/src/types/components.cjs +22 -0
  71. package/dist/{packages/plugin-alloy → plugin-alloy}/src/types/components.d.mts +1 -1
  72. package/dist/plugin-alloy/src/types/components.mjs +21 -0
  73. package/dist/plugin-alloy/src/types/plugin.cjs +53 -0
  74. package/dist/plugin-alloy/src/types/plugin.mjs +50 -0
  75. package/dist/plugin-alloy/src/typescript/components/builtin-file.cjs +62 -0
  76. package/dist/plugin-alloy/src/typescript/components/builtin-file.mjs +61 -0
  77. package/dist/plugin-alloy/src/typescript/components/tsdoc-reflection.cjs +131 -0
  78. package/dist/plugin-alloy/src/typescript/components/tsdoc-reflection.mjs +129 -0
  79. package/dist/plugin-alloy/src/typescript/components/tsdoc.cjs +451 -0
  80. package/dist/{packages/plugin-alloy → plugin-alloy}/src/typescript/components/tsdoc.d.mts +1 -1
  81. package/dist/plugin-alloy/src/typescript/components/tsdoc.mjs +442 -0
  82. package/dist/plugin-alloy/src/typescript/components/typescript-file.cjs +216 -0
  83. package/dist/{packages/plugin-alloy → plugin-alloy}/src/typescript/components/typescript-file.d.mts +1 -1
  84. package/dist/plugin-alloy/src/typescript/components/typescript-file.mjs +213 -0
  85. package/dist/plugin-alloy/src/typescript/components/typescript-interface.cjs +72 -0
  86. package/dist/{packages/plugin-alloy → plugin-alloy}/src/typescript/components/typescript-interface.d.mts +1 -1
  87. package/dist/plugin-alloy/src/typescript/components/typescript-interface.mjs +71 -0
  88. package/dist/plugin-alloy/src/typescript/components/typescript-object.cjs +124 -0
  89. package/dist/plugin-alloy/src/typescript/components/typescript-object.mjs +123 -0
  90. package/dist/plugin-automd/src/index.cjs +127 -0
  91. package/dist/plugin-automd/src/index.mjs +124 -0
  92. package/dist/plugin-automd/src/types/plugin.cjs +47 -0
  93. package/dist/plugin-automd/src/types/plugin.mjs +47 -0
  94. package/dist/plugin-automd/src/types/toc.cjs +26 -0
  95. package/dist/plugin-automd/src/types/toc.mjs +25 -0
  96. package/dist/plugin-babel/src/helpers/ast-utils.cjs +74 -0
  97. package/dist/plugin-babel/src/helpers/ast-utils.mjs +70 -0
  98. package/dist/plugin-babel/src/helpers/create-plugin.cjs +71 -0
  99. package/dist/plugin-babel/src/helpers/create-plugin.mjs +69 -0
  100. package/dist/plugin-babel/src/helpers/filters.cjs +158 -0
  101. package/dist/plugin-babel/src/helpers/filters.mjs +154 -0
  102. package/dist/plugin-babel/src/helpers/index.cjs +5 -0
  103. package/dist/plugin-babel/src/helpers/index.mjs +7 -0
  104. package/dist/plugin-babel/src/helpers/module-helpers.cjs +200 -0
  105. package/dist/plugin-babel/src/helpers/module-helpers.mjs +192 -0
  106. package/dist/plugin-babel/src/helpers/options.cjs +73 -0
  107. package/dist/plugin-babel/src/helpers/options.mjs +70 -0
  108. package/dist/plugin-babel/src/index.cjs +125 -0
  109. package/dist/plugin-babel/src/index.mjs +123 -0
  110. package/dist/plugin-babel/src/types/plugin.cjs +42 -0
  111. package/dist/plugin-babel/src/types/plugin.mjs +39 -0
  112. package/dist/powerlines/src/internal/helpers/hooks.cjs +136 -0
  113. package/dist/powerlines/src/internal/helpers/hooks.mjs +134 -0
  114. package/dist/powerlines/src/lib/build/esbuild.cjs +142 -0
  115. package/dist/powerlines/src/lib/build/esbuild.mjs +140 -0
  116. package/dist/powerlines/src/lib/constants/environments.cjs +6 -0
  117. package/dist/powerlines/src/lib/constants/environments.mjs +5 -0
  118. package/dist/powerlines/src/lib/entry.cjs +195 -0
  119. package/dist/powerlines/src/lib/entry.mjs +194 -0
  120. package/dist/powerlines/src/lib/logger.cjs +108 -0
  121. package/dist/powerlines/src/lib/logger.mjs +106 -0
  122. package/dist/powerlines/src/lib/unplugin/helpers.cjs +41 -0
  123. package/dist/powerlines/src/lib/unplugin/helpers.mjs +40 -0
  124. package/dist/powerlines/src/lib/unplugin/module-resolution.cjs +98 -0
  125. package/dist/powerlines/src/lib/unplugin/module-resolution.mjs +97 -0
  126. package/dist/powerlines/src/lib/unplugin/plugin.cjs +139 -0
  127. package/dist/powerlines/src/lib/unplugin/plugin.mjs +138 -0
  128. package/dist/powerlines/src/lib/utilities/bundle.cjs +74 -0
  129. package/dist/powerlines/src/lib/utilities/bundle.mjs +72 -0
  130. package/dist/powerlines/src/lib/utilities/resolve.cjs +69 -0
  131. package/dist/powerlines/src/lib/utilities/resolve.mjs +68 -0
  132. package/dist/powerlines/src/lib/utilities/source-file.cjs +68 -0
  133. package/dist/powerlines/src/lib/utilities/source-file.mjs +66 -0
  134. package/dist/powerlines/src/plugin-utils/paths.cjs +46 -0
  135. package/dist/powerlines/src/plugin-utils/paths.mjs +45 -0
  136. package/dist/powerlines/src/types/api.cjs +62 -0
  137. package/dist/powerlines/src/types/api.mjs +62 -0
  138. package/dist/powerlines/src/types/babel.cjs +156 -0
  139. package/dist/powerlines/src/types/babel.mjs +147 -0
  140. package/dist/powerlines/src/types/build.cjs +127 -0
  141. package/dist/{packages/powerlines → powerlines}/src/types/build.d.mts +6 -6
  142. package/dist/powerlines/src/types/build.mjs +121 -0
  143. package/dist/powerlines/src/types/commands.cjs +16 -0
  144. package/dist/powerlines/src/types/commands.mjs +15 -0
  145. package/dist/powerlines/src/types/config.cjs +420 -0
  146. package/dist/{packages/powerlines → powerlines}/src/types/config.d.mts +2 -1
  147. package/dist/powerlines/src/types/config.mjs +397 -0
  148. package/dist/powerlines/src/types/context.cjs +388 -0
  149. package/dist/{packages/powerlines → powerlines}/src/types/context.d.mts +2 -2
  150. package/dist/powerlines/src/types/context.mjs +371 -0
  151. package/dist/powerlines/src/types/fs.cjs +78 -0
  152. package/dist/powerlines/src/types/fs.mjs +75 -0
  153. package/dist/powerlines/src/types/hooks.cjs +71 -0
  154. package/dist/powerlines/src/types/hooks.mjs +68 -0
  155. package/dist/powerlines/src/types/index.cjs +11 -0
  156. package/dist/powerlines/src/types/index.mjs +13 -0
  157. package/dist/powerlines/src/types/plugin.cjs +184 -0
  158. package/dist/{packages/powerlines → powerlines}/src/types/plugin.d.mts +1 -1
  159. package/dist/powerlines/src/types/plugin.mjs +178 -0
  160. package/dist/powerlines/src/types/resolved.cjs +149 -0
  161. package/dist/powerlines/src/types/resolved.mjs +144 -0
  162. package/dist/{packages/powerlines → powerlines}/src/types/tsconfig.d.mts +1 -1
  163. package/dist/powerlines/src/types/unplugin.cjs +64 -0
  164. package/dist/{packages/powerlines → powerlines}/src/types/unplugin.d.mts +1 -1
  165. package/dist/powerlines/src/types/unplugin.mjs +62 -0
  166. package/dist/types/plugin.cjs +18 -19
  167. package/dist/types/plugin.d.mts +6 -6
  168. package/dist/types/plugin.mjs +4 -4
  169. package/package.json +7 -7
  170. package/dist/_virtual/rolldown_runtime.mjs +0 -33
  171. package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/parse-type-definition.cjs +0 -37
  172. package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/parse-type-definition.mjs +0 -37
  173. package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/to-array.cjs +0 -15
  174. package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/to-array.mjs +0 -14
  175. package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/type-checks/src/get-object-tag.cjs +0 -15
  176. package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/type-checks/src/get-object-tag.mjs +0 -14
  177. package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/type-checks/src/index.cjs +0 -3
  178. package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/type-checks/src/index.mjs +0 -5
  179. package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/type-checks/src/is-buffer.cjs +0 -6
  180. package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/type-checks/src/is-buffer.mjs +0 -6
  181. package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/type-checks/src/is-collection.cjs +0 -1
  182. package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/type-checks/src/is-collection.mjs +0 -3
  183. package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/type-checks/src/is-object.cjs +0 -19
  184. package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/type-checks/src/is-object.mjs +0 -19
  185. package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/type-checks/src/is-plain-object.cjs +0 -63
  186. package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/type-checks/src/is-plain-object.mjs +0 -63
  187. package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/type-checks/src/is-string.cjs +0 -12
  188. package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/type-checks/src/is-string.mjs +0 -11
  189. package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/type-checks/src/type-detect.cjs +0 -15
  190. package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/type-checks/src/type-detect.mjs +0 -16
  191. package/dist/node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/is-parent-path.cjs +0 -32
  192. package/dist/node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/is-parent-path.mjs +0 -32
  193. package/dist/node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/is-type.cjs +0 -28
  194. package/dist/node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/is-type.mjs +0 -28
  195. package/dist/node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/join-paths.cjs +0 -106
  196. package/dist/node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/join-paths.mjs +0 -106
  197. package/dist/node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/regex.cjs +0 -12
  198. package/dist/node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/regex.mjs +0 -8
  199. package/dist/node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/slash.cjs +0 -15
  200. package/dist/node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/slash.mjs +0 -14
  201. package/dist/node_modules/.pnpm/c12@3.3.3_magicast@0.5.1/node_modules/c12/dist/index.cjs +0 -346
  202. package/dist/node_modules/.pnpm/c12@3.3.3_magicast@0.5.1/node_modules/c12/dist/index.mjs +0 -346
  203. package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/json5.cjs +0 -786
  204. package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/json5.mjs +0 -786
  205. package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/jsonc.cjs +0 -3
  206. package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/jsonc.mjs +0 -3
  207. package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DA7CpUDY.cjs +0 -23
  208. package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DA7CpUDY.mjs +0 -22
  209. package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DnMsyigM.cjs +0 -405
  210. package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DnMsyigM.mjs +0 -404
  211. package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/toml.cjs +0 -657
  212. package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/toml.mjs +0 -657
  213. package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/yaml.cjs +0 -1054
  214. package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/yaml.mjs +0 -1054
  215. package/dist/node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.cjs +0 -43
  216. package/dist/node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.mjs +0 -42
  217. package/dist/node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.cjs +0 -46
  218. package/dist/node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.mjs +0 -45
  219. package/dist/node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/lib/main.cjs +0 -288
  220. package/dist/node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/lib/main.mjs +0 -285
  221. package/dist/node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/package.cjs +0 -71
  222. package/dist/node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/package.mjs +0 -68
  223. package/dist/node_modules/.pnpm/exsolve@1.0.8/node_modules/exsolve/dist/index.cjs +0 -1013
  224. package/dist/node_modules/.pnpm/exsolve@1.0.8/node_modules/exsolve/dist/index.mjs +0 -1007
  225. package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/index.cjs +0 -23
  226. package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/index.mjs +0 -13
  227. package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/shared/giget.OCaTp9b-.cjs +0 -2698
  228. package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/shared/giget.OCaTp9b-.mjs +0 -2685
  229. package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/dist/jiti.cjs +0 -4457
  230. package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/dist/jiti.mjs +0 -4454
  231. package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/jiti.cjs +0 -29
  232. package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/jiti.mjs +0 -29
  233. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.cjs +0 -181
  234. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.mjs +0 -176
  235. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/index.cjs +0 -22
  236. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/index.mjs +0 -17
  237. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/node.cjs +0 -3967
  238. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/node.mjs +0 -3962
  239. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/proxy.cjs +0 -11768
  240. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/proxy.mjs +0 -11763
  241. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/shared/node-fetch-native.DhEqb06g.cjs +0 -25
  242. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/shared/node-fetch-native.DhEqb06g.mjs +0 -20
  243. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/lib/index.cjs +0 -20
  244. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/lib/index.mjs +0 -17
  245. package/dist/node_modules/.pnpm/nypm@0.6.4/node_modules/nypm/dist/index.cjs +0 -194
  246. package/dist/node_modules/.pnpm/nypm@0.6.4/node_modules/nypm/dist/index.mjs +0 -191
  247. package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/crypto/node/index.cjs +0 -13
  248. package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/crypto/node/index.mjs +0 -12
  249. package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/index.cjs +0 -3
  250. package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/index.mjs +0 -3
  251. package/dist/node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.cjs +0 -145
  252. package/dist/node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs +0 -138
  253. package/dist/node_modules/.pnpm/pkg-types@2.3.0/node_modules/pkg-types/dist/index.cjs +0 -127
  254. package/dist/node_modules/.pnpm/pkg-types@2.3.0/node_modules/pkg-types/dist/index.mjs +0 -125
  255. package/dist/node_modules/.pnpm/rc9@2.1.2/node_modules/rc9/dist/index.cjs +0 -138
  256. package/dist/node_modules/.pnpm/rc9@2.1.2/node_modules/rc9/dist/index.mjs +0 -136
  257. package/dist/node_modules/.pnpm/tinyexec@1.0.2/node_modules/tinyexec/dist/main.cjs +0 -629
  258. package/dist/node_modules/.pnpm/tinyexec@1.0.2/node_modules/tinyexec/dist/main.mjs +0 -627
  259. /package/dist/{packages/deepkit → deepkit}/schemas/reflection.d.mts +0 -0
  260. /package/dist/{packages/deepkit → deepkit}/src/types.d.mts +0 -0
  261. /package/dist/{packages/plugin-alloy → plugin-alloy}/src/core/components/source-file.d.mts +0 -0
  262. /package/dist/{packages/plugin-alloy → plugin-alloy}/src/markdown/components/markdown-file.d.mts +0 -0
  263. /package/dist/{packages/plugin-alloy → plugin-alloy}/src/types/index.d.mts +0 -0
  264. /package/dist/{packages/plugin-alloy → plugin-alloy}/src/types/plugin.d.mts +0 -0
  265. /package/dist/{packages/plugin-alloy → plugin-alloy}/src/typescript/components/builtin-file.d.mts +0 -0
  266. /package/dist/{packages/plugin-automd → plugin-automd}/src/types/plugin.d.mts +0 -0
  267. /package/dist/{packages/plugin-automd → plugin-automd}/src/types/toc.d.mts +0 -0
  268. /package/dist/{packages/plugin-babel → plugin-babel}/src/types/index.d.mts +0 -0
  269. /package/dist/{packages/plugin-babel → plugin-babel}/src/types/plugin.d.mts +0 -0
  270. /package/dist/{packages/powerlines → powerlines}/src/internal/helpers/hooks.d.mts +0 -0
  271. /package/dist/{packages/powerlines → powerlines}/src/types/api.d.mts +0 -0
  272. /package/dist/{packages/powerlines → powerlines}/src/types/babel.d.mts +0 -0
  273. /package/dist/{packages/powerlines → powerlines}/src/types/commands.d.mts +0 -0
  274. /package/dist/{packages/powerlines → powerlines}/src/types/fs.d.mts +0 -0
  275. /package/dist/{packages/powerlines → powerlines}/src/types/hooks.d.mts +0 -0
  276. /package/dist/{packages/powerlines → powerlines}/src/types/index.d.mts +0 -0
  277. /package/dist/{packages/powerlines → powerlines}/src/types/resolved.d.mts +0 -0
@@ -1,14 +1,14 @@
1
1
  const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
2
+ const require_context = require('../powerlines/src/types/context.cjs');
2
3
  const require_types_plugin = require('../types/plugin.cjs');
3
- const require_join_paths = require('../node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/join-paths.cjs');
4
+ const require_capnp = require('../deepkit/src/capnp.cjs');
5
+ const require_resolve_reflections = require('../deepkit/src/resolve-reflections.cjs');
6
+ const require_reflection = require('../deepkit/schemas/reflection2.cjs');
4
7
  const require_helpers_reflect = require('./reflect.cjs');
5
8
  let __powerlines_deepkit_vendor_type = require("@powerlines/deepkit/vendor/type");
6
- let powerlines_types_context = require("powerlines/types/context");
7
- let __powerlines_deepkit_capnp = require("@powerlines/deepkit/capnp");
8
- let __powerlines_deepkit_resolve_reflections = require("@powerlines/deepkit/resolve-reflections");
9
- let __powerlines_deepkit_schemas_reflection = require("@powerlines/deepkit/schemas/reflection");
10
9
  let __stryke_capnp = require("@stryke/capnp");
11
10
  __stryke_capnp = require_rolldown_runtime.__toESM(__stryke_capnp);
11
+ let __stryke_path_join_paths = require("@stryke/path/join-paths");
12
12
  let __stryke_fs_buffer = require("@stryke/fs/buffer");
13
13
  let __stryke_type_checks_is_empty_object = require("@stryke/type-checks/is-empty-object");
14
14
  let node_fs = require("node:fs");
@@ -26,7 +26,7 @@ async function resolveRuntimeTypeFile(context) {
26
26
  return resolved;
27
27
  }
28
28
  resolveRuntimeTypeFile.__type = [
29
- () => powerlines_types_context.__ΩUnresolvedContext,
29
+ () => require_context.__ΩUnresolvedContext,
30
30
  () => require_types_plugin.__ΩEnvPluginResolvedConfig,
31
31
  "context",
32
32
  "resolveRuntimeTypeFile",
@@ -46,7 +46,7 @@ async function getEnvDefaultTypeDefinition(context) {
46
46
  };
47
47
  }
48
48
  getEnvDefaultTypeDefinition.__type = [
49
- () => powerlines_types_context.__ΩUnresolvedContext,
49
+ () => require_context.__ΩUnresolvedContext,
50
50
  () => require_types_plugin.__ΩEnvPluginResolvedConfig,
51
51
  "context",
52
52
  "getEnvDefaultTypeDefinition",
@@ -65,7 +65,7 @@ async function getSecretsDefaultTypeDefinition(context) {
65
65
  };
66
66
  }
67
67
  getSecretsDefaultTypeDefinition.__type = [
68
- () => powerlines_types_context.__ΩUnresolvedContext,
68
+ () => require_context.__ΩUnresolvedContext,
69
69
  () => require_types_plugin.__ΩEnvPluginResolvedConfig,
70
70
  "context",
71
71
  "getSecretsDefaultTypeDefinition",
@@ -79,10 +79,10 @@ getSecretsDefaultTypeDefinition.__type = [
79
79
  * @returns The path to the environment type reflections.
80
80
  */
81
81
  function getEnvTypeReflectionsPath(context, name = "env") {
82
- return require_join_paths.joinPaths((0, __powerlines_deepkit_resolve_reflections.getReflectionsPath)(context), "env", `${name}-types.bin`);
82
+ return (0, __stryke_path_join_paths.joinPaths)(require_resolve_reflections.getReflectionsPath(context), "env", `${name}-types.bin`);
83
83
  }
84
84
  getEnvTypeReflectionsPath.__type = [
85
- () => powerlines_types_context.__ΩContext,
85
+ () => require_context.__ΩContext,
86
86
  () => require_types_plugin.__ΩEnvPluginResolvedConfig,
87
87
  "context",
88
88
  () => require_types_plugin.__ΩEnvType,
@@ -105,7 +105,7 @@ async function readEnvTypeReflection(context, name = "env") {
105
105
  if (!context.env.types.env || (0, __stryke_type_checks_is_empty_object.isEmptyObject)(context.env.types.env)) {
106
106
  const reflection$1 = require_helpers_reflect.createEnvReflection(context);
107
107
  const message = new __stryke_capnp.Message();
108
- reflection$1.messageRoot = message.initRoot(__powerlines_deepkit_schemas_reflection.SerializedTypes);
108
+ reflection$1.messageRoot = message.initRoot(require_reflection.SerializedTypes);
109
109
  reflection$1.dataBuffer = message.toArrayBuffer();
110
110
  context.env.types.env = reflection$1;
111
111
  await writeEnvTypeReflection(context, context.env.types.env, name);
@@ -113,8 +113,8 @@ async function readEnvTypeReflection(context, name = "env") {
113
113
  return context.env.types.env;
114
114
  }
115
115
  const buffer = await (0, __stryke_fs_buffer.readFileBuffer)(filePath);
116
- const messageRoot = new __stryke_capnp.Message(buffer, false).getRoot(__powerlines_deepkit_schemas_reflection.SerializedTypes);
117
- const reflection = (0, __powerlines_deepkit_vendor_type.resolveClassType)((0, __powerlines_deepkit_vendor_type.deserializeType)((0, __powerlines_deepkit_capnp.convertFromCapnp)(messageRoot.types)));
116
+ const messageRoot = new __stryke_capnp.Message(buffer, false).getRoot(require_reflection.SerializedTypes);
117
+ const reflection = (0, __powerlines_deepkit_vendor_type.resolveClassType)((0, __powerlines_deepkit_vendor_type.deserializeType)(require_capnp.convertFromCapnp(messageRoot.types)));
118
118
  context.env.types[name] = reflection;
119
119
  context.env.types[name].messageRoot = messageRoot;
120
120
  context.env.types[name].dataBuffer = buffer;
@@ -141,7 +141,7 @@ readEnvTypeReflection.__type = [
141
141
  async function writeEnvTypeReflection(context, reflection, name = "env") {
142
142
  const serialized = reflection.serializeType();
143
143
  const message = new __stryke_capnp.Message();
144
- (0, __powerlines_deepkit_capnp.convertToCapnp)(serialized, message.initRoot(__powerlines_deepkit_schemas_reflection.SerializedTypes)._initTypes(serialized.length));
144
+ require_capnp.convertToCapnp(serialized, message.initRoot(require_reflection.SerializedTypes)._initTypes(serialized.length));
145
145
  await (0, __stryke_fs_buffer.writeFileBuffer)(getEnvTypeReflectionsPath(context, name), message.toArrayBuffer());
146
146
  }
147
147
  writeEnvTypeReflection.__type = [
@@ -157,7 +157,7 @@ writeEnvTypeReflection.__type = [
157
157
  "Pn!2\"P\"7#2$n%2&>'\"/(?)"
158
158
  ];
159
159
  function getEnvReflectionsPath(context, name) {
160
- return require_join_paths.joinPaths((0, __powerlines_deepkit_resolve_reflections.getReflectionsPath)(context), "env", `${name}.bin`);
160
+ return (0, __stryke_path_join_paths.joinPaths)(require_resolve_reflections.getReflectionsPath(context), "env", `${name}.bin`);
161
161
  }
162
162
  getEnvReflectionsPath.__type = [
163
163
  () => require_types_plugin.__ΩEnvPluginContext,
@@ -189,7 +189,7 @@ async function readEnvReflection(context) {
189
189
  });
190
190
  reflection$1.name = "Env";
191
191
  const message = new __stryke_capnp.Message();
192
- reflection$1.messageRoot = message.initRoot(__powerlines_deepkit_schemas_reflection.SerializedTypes);
192
+ reflection$1.messageRoot = message.initRoot(require_reflection.SerializedTypes);
193
193
  reflection$1.dataBuffer = message.toArrayBuffer();
194
194
  context.env.used.env = reflection$1;
195
195
  await writeEnvReflection(context, context.env.used.env, "env");
@@ -197,8 +197,8 @@ async function readEnvReflection(context) {
197
197
  return context.env.used.env;
198
198
  }
199
199
  const buffer = await (0, __stryke_fs_buffer.readFileBuffer)(filePath);
200
- const messageRoot = new __stryke_capnp.Message(buffer, false).getRoot(__powerlines_deepkit_schemas_reflection.SerializedTypes);
201
- const reflection = (0, __powerlines_deepkit_vendor_type.resolveClassType)((0, __powerlines_deepkit_vendor_type.deserializeType)((0, __powerlines_deepkit_capnp.convertFromCapnp)(messageRoot.types)));
200
+ const messageRoot = new __stryke_capnp.Message(buffer, false).getRoot(require_reflection.SerializedTypes);
201
+ const reflection = (0, __powerlines_deepkit_vendor_type.resolveClassType)((0, __powerlines_deepkit_vendor_type.deserializeType)(require_capnp.convertFromCapnp(messageRoot.types)));
202
202
  context.env.used.env = reflection;
203
203
  context.env.used.env.messageRoot = messageRoot;
204
204
  context.env.used.env.dataBuffer = buffer;
@@ -234,7 +234,7 @@ async function readSecretsReflection(context) {
234
234
  });
235
235
  reflection$1.name = "Secrets";
236
236
  const message = new __stryke_capnp.Message();
237
- reflection$1.messageRoot = message.initRoot(__powerlines_deepkit_schemas_reflection.SerializedTypes);
237
+ reflection$1.messageRoot = message.initRoot(require_reflection.SerializedTypes);
238
238
  reflection$1.dataBuffer = message.toArrayBuffer();
239
239
  context.env.used.secrets = reflection$1;
240
240
  await writeEnvReflection(context, context.env.used.secrets, "secrets");
@@ -242,8 +242,8 @@ async function readSecretsReflection(context) {
242
242
  return context.env.used.secrets;
243
243
  }
244
244
  const buffer = await (0, __stryke_fs_buffer.readFileBuffer)(filePath);
245
- const messageRoot = new __stryke_capnp.Message(buffer, false).getRoot(__powerlines_deepkit_schemas_reflection.SerializedTypes);
246
- const reflection = (0, __powerlines_deepkit_vendor_type.resolveClassType)((0, __powerlines_deepkit_vendor_type.deserializeType)((0, __powerlines_deepkit_capnp.convertFromCapnp)(messageRoot.types)));
245
+ const messageRoot = new __stryke_capnp.Message(buffer, false).getRoot(require_reflection.SerializedTypes);
246
+ const reflection = (0, __powerlines_deepkit_vendor_type.resolveClassType)((0, __powerlines_deepkit_vendor_type.deserializeType)(require_capnp.convertFromCapnp(messageRoot.types)));
247
247
  context.env.used.secrets = reflection;
248
248
  context.env.used.secrets.messageRoot = messageRoot;
249
249
  context.env.used.secrets.dataBuffer = buffer;
@@ -267,7 +267,7 @@ readSecretsReflection.__type = [
267
267
  async function writeEnvReflection(context, reflection, name = "env") {
268
268
  const serialized = reflection.serializeType();
269
269
  const message = new __stryke_capnp.Message();
270
- (0, __powerlines_deepkit_capnp.convertToCapnp)(serialized, message.initRoot(__powerlines_deepkit_schemas_reflection.SerializedTypes)._initTypes(serialized.length));
270
+ require_capnp.convertToCapnp(serialized, message.initRoot(require_reflection.SerializedTypes)._initTypes(serialized.length));
271
271
  await (0, __stryke_fs_buffer.writeFileBuffer)(getEnvReflectionsPath(context, name), message.toArrayBuffer());
272
272
  }
273
273
  writeEnvReflection.__type = [
@@ -292,7 +292,7 @@ writeEnvReflection.__type = [
292
292
  function writeEnvReflectionSync(context, reflection, name = "env") {
293
293
  const serialized = reflection.serializeType();
294
294
  const message = new __stryke_capnp.Message();
295
- (0, __powerlines_deepkit_capnp.convertToCapnp)(serialized, message.initRoot(__powerlines_deepkit_schemas_reflection.SerializedTypes)._initTypes(serialized.length));
295
+ require_capnp.convertToCapnp(serialized, message.initRoot(require_reflection.SerializedTypes)._initTypes(serialized.length));
296
296
  (0, __stryke_fs_buffer.writeFileBufferSync)(getEnvReflectionsPath(context, name), message.toArrayBuffer());
297
297
  }
298
298
  writeEnvReflectionSync.__type = [
@@ -1,4 +1,4 @@
1
- import { Context, UnresolvedContext } from "../packages/powerlines/src/types/context.mjs";
1
+ import { Context, UnresolvedContext } from "../powerlines/src/types/context.mjs";
2
2
  import { EnvPluginContext, EnvPluginResolvedConfig, EnvType } from "../types/plugin.mjs";
3
3
  import { ReflectionClass } from "@powerlines/deepkit/vendor/type";
4
4
  import { TypeDefinition } from "@stryke/types/configuration";
@@ -1,12 +1,12 @@
1
+ import { __ΩContext, __ΩUnresolvedContext } from "../powerlines/src/types/context.mjs";
1
2
  import { __ΩEnvPluginContext, __ΩEnvPluginResolvedConfig, __ΩEnvType } from "../types/plugin.mjs";
2
- import { joinPaths } from "../node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/join-paths.mjs";
3
+ import { convertFromCapnp, convertToCapnp } from "../deepkit/src/capnp.mjs";
4
+ import { getReflectionsPath } from "../deepkit/src/resolve-reflections.mjs";
5
+ import { SerializedTypes } from "../deepkit/schemas/reflection2.mjs";
3
6
  import { createEnvReflection } from "./reflect.mjs";
4
7
  import { ReflectionClass, ReflectionKind, deserializeType, resolveClassType } from "@powerlines/deepkit/vendor/type";
5
- import { __ΩContext, __ΩUnresolvedContext } from "powerlines/types/context";
6
- import { convertFromCapnp, convertToCapnp } from "@powerlines/deepkit/capnp";
7
- import { getReflectionsPath } from "@powerlines/deepkit/resolve-reflections";
8
- import { SerializedTypes } from "@powerlines/deepkit/schemas/reflection";
9
8
  import * as capnp from "@stryke/capnp";
9
+ import { joinPaths } from "@stryke/path/join-paths";
10
10
  import { readFileBuffer, writeFileBuffer, writeFileBufferSync } from "@stryke/fs/buffer";
11
11
  import { isEmptyObject } from "@stryke/type-checks/is-empty-object";
12
12
  import { existsSync } from "node:fs";
@@ -1,12 +1,12 @@
1
1
  const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
2
2
  const require_types_runtime = require('../types/runtime.cjs');
3
3
  const require_types_plugin = require('../types/plugin.cjs');
4
- const require_join_paths = require('../node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/join-paths.cjs');
5
- const require_is_parent_path = require('../node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/is-parent-path.cjs');
4
+ const require_reflect_type = require('../deepkit/src/reflect-type.cjs');
6
5
  const require_helpers_persistence = require('./persistence.cjs');
7
6
  let __powerlines_deepkit_vendor_type = require("@powerlines/deepkit/vendor/type");
8
7
  let __stryke_string_format_title_case = require("@stryke/string-format/title-case");
9
- let __powerlines_deepkit_reflect_type = require("@powerlines/deepkit/reflect-type");
8
+ let __stryke_path_join_paths = require("@stryke/path/join-paths");
9
+ let __stryke_path_is_parent_path = require("@stryke/path/is-parent-path");
10
10
 
11
11
  //#region src/helpers/reflect.ts
12
12
  function __assignType(fn, args) {
@@ -223,11 +223,11 @@ createSecretsReflection.__type = [
223
223
  ];
224
224
  async function reflectEnv(context, file, name) {
225
225
  let config;
226
- if (file) config = (0, __powerlines_deepkit_vendor_type.resolveClassType)(await (0, __powerlines_deepkit_reflect_type.reflectType)(context, {
227
- file: !require_is_parent_path.isParentPath(file, context.workspaceConfig.workspaceRoot) ? require_join_paths.joinPaths(context.workspaceConfig.workspaceRoot, file) : file,
226
+ if (file) config = (0, __powerlines_deepkit_vendor_type.resolveClassType)(await require_reflect_type.reflectType(context, {
227
+ file: !(0, __stryke_path_is_parent_path.isParentPath)(file, context.workspaceConfig.workspaceRoot) ? (0, __stryke_path_join_paths.joinPaths)(context.workspaceConfig.workspaceRoot, file) : file,
228
228
  name
229
229
  }));
230
- const defaultConfigType = await (0, __powerlines_deepkit_reflect_type.reflectType)(context, await require_helpers_persistence.getEnvDefaultTypeDefinition(context));
230
+ const defaultConfigType = await require_reflect_type.reflectType(context, await require_helpers_persistence.getEnvDefaultTypeDefinition(context));
231
231
  return mergeEnvReflections(context, [
232
232
  await require_helpers_persistence.readEnvTypeReflection(context, "env"),
233
233
  config,
@@ -244,11 +244,11 @@ reflectEnv.__type = [
244
244
  ];
245
245
  async function reflectSecrets(context, file, name) {
246
246
  let config;
247
- if (file) config = (0, __powerlines_deepkit_vendor_type.resolveClassType)(await (0, __powerlines_deepkit_reflect_type.reflectType)(context, {
248
- file: !require_is_parent_path.isParentPath(file, context.workspaceConfig.workspaceRoot) ? require_join_paths.joinPaths(context.workspaceConfig.workspaceRoot, file) : file,
247
+ if (file) config = (0, __powerlines_deepkit_vendor_type.resolveClassType)(await require_reflect_type.reflectType(context, {
248
+ file: !(0, __stryke_path_is_parent_path.isParentPath)(file, context.workspaceConfig.workspaceRoot) ? (0, __stryke_path_join_paths.joinPaths)(context.workspaceConfig.workspaceRoot, file) : file,
249
249
  name
250
250
  }));
251
- const defaultSecretsType = await (0, __powerlines_deepkit_reflect_type.reflectType)(context, await require_helpers_persistence.getSecretsDefaultTypeDefinition(context));
251
+ const defaultSecretsType = await require_reflect_type.reflectType(context, await require_helpers_persistence.getSecretsDefaultTypeDefinition(context));
252
252
  return mergeSecretsReflections(context, [
253
253
  await require_helpers_persistence.readSecretsReflection(context),
254
254
  config,
@@ -1,11 +1,11 @@
1
1
  import { __ΩEnvInterface, __ΩSecretsInterface } from "../types/runtime.mjs";
2
2
  import { __ΩEnvPluginContext } from "../types/plugin.mjs";
3
- import { joinPaths } from "../node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/join-paths.mjs";
4
- import { isParentPath } from "../node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/is-parent-path.mjs";
3
+ import { reflectType } from "../deepkit/src/reflect-type.mjs";
5
4
  import { getEnvDefaultTypeDefinition, getSecretsDefaultTypeDefinition, readEnvTypeReflection, readSecretsReflection } from "./persistence.mjs";
6
5
  import { ReflectionClass, ReflectionKind, __ΩTypeClass, __ΩTypeObjectLiteral, merge, resolveClassType } from "@powerlines/deepkit/vendor/type";
7
6
  import { titleCase } from "@stryke/string-format/title-case";
8
- import { reflectType } from "@powerlines/deepkit/reflect-type";
7
+ import { joinPaths } from "@stryke/path/join-paths";
8
+ import { isParentPath } from "@stryke/path/is-parent-path";
9
9
 
10
10
  //#region src/helpers/reflect.ts
11
11
  function __assignType(fn, args) {
@@ -1,7 +1,7 @@
1
1
  const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
2
- let __stryke_env_types = require("@stryke/env/types");
3
2
  let __stryke_string_format_camel_case = require("@stryke/string-format/camel-case");
4
3
  let __stryke_type_checks_is_string = require("@stryke/type-checks/is-string");
4
+ let __stryke_env_types = require("@stryke/env/types");
5
5
 
6
6
  //#region src/helpers/source-file-env.ts
7
7
  function __assignType(fn, args) {
@@ -1,6 +1,6 @@
1
- import { ENV_PREFIXES } from "@stryke/env/types";
2
1
  import { camelCase } from "@stryke/string-format/camel-case";
3
2
  import { isString } from "@stryke/type-checks/is-string";
3
+ import { ENV_PREFIXES } from "@stryke/env/types";
4
4
 
5
5
  //#region src/helpers/source-file-env.ts
6
6
  function __assignType(fn, args) {
package/dist/index.cjs CHANGED
@@ -3,13 +3,10 @@ const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
3
3
  const require_types_runtime = require('./types/runtime.cjs');
4
4
  const require_types_plugin = require('./types/plugin.cjs');
5
5
  require('./types/index.cjs');
6
- const require_join_paths = require('./node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/join-paths.cjs');
7
- const require_is_parent_path = require('./node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/is-parent-path.cjs');
8
6
  const require_helpers_reflect = require('./helpers/reflect.cjs');
9
7
  const require_helpers_persistence = require('./helpers/persistence.cjs');
10
8
  const require_helpers_template_helpers = require('./helpers/template-helpers.cjs');
11
9
  const require_helpers_source_file_env = require('./helpers/source-file-env.cjs');
12
- const require_defu = require('./node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.cjs');
13
10
  const require_helpers_load = require('./helpers/load.cjs');
14
11
  const require_helpers_create_reflection_resource = require('./helpers/create-reflection-resource.cjs');
15
12
  require('./helpers/index.cjs');
@@ -20,17 +17,18 @@ const require_components_env = require('./components/env.cjs');
20
17
  require('./components/index.cjs');
21
18
  const require_babel_plugin = require('./babel/plugin.cjs');
22
19
  require('./babel/index.cjs');
23
- const require_parse_type_definition = require('./node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/parse-type-definition.cjs');
24
- const require_to_array = require('./node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/to-array.cjs');
20
+ const require_index = require('./plugin-babel/src/index.cjs');
21
+ const require_index$1 = require('./plugin-alloy/src/index.cjs');
22
+ const require_index$2 = require('./plugin-automd/src/index.cjs');
25
23
  let __powerlines_deepkit_vendor_type = require("@powerlines/deepkit/vendor/type");
24
+ let defu = require("defu");
25
+ defu = require_rolldown_runtime.__toESM(defu);
26
+ let __stryke_convert_parse_type_definition = require("@stryke/convert/parse-type-definition");
27
+ let __stryke_convert_to_array = require("@stryke/convert/to-array");
28
+ let __stryke_path_is_parent_path = require("@stryke/path/is-parent-path");
26
29
  let __stryke_env_types = require("@stryke/env/types");
30
+ let __stryke_path_join = require("@stryke/path/join");
27
31
  let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
28
- let __powerlines_plugin_alloy = require("@powerlines/plugin-alloy");
29
- __powerlines_plugin_alloy = require_rolldown_runtime.__toESM(__powerlines_plugin_alloy);
30
- let __powerlines_plugin_automd = require("@powerlines/plugin-automd");
31
- __powerlines_plugin_automd = require_rolldown_runtime.__toESM(__powerlines_plugin_automd);
32
- let __powerlines_plugin_babel = require("@powerlines/plugin-babel");
33
- __powerlines_plugin_babel = require_rolldown_runtime.__toESM(__powerlines_plugin_babel);
34
32
  let __stryke_fs_exists = require("@stryke/fs/exists");
35
33
  let __stryke_string_format_constant_case = require("@stryke/string-format/constant-case");
36
34
 
@@ -40,31 +38,31 @@ let __stryke_string_format_constant_case = require("@stryke/string-format/consta
40
38
  */
41
39
  const plugin = (options = {}) => {
42
40
  return [
43
- (0, __powerlines_plugin_alloy.default)(options.alloy),
44
- (0, __powerlines_plugin_babel.default)(options.babel),
41
+ require_index$1.default(options.alloy),
42
+ require_index.default(options.babel),
45
43
  {
46
44
  name: "env",
47
45
  async config() {
48
46
  this.debug("Providing default configuration for the Powerlines `env` build plugin.");
49
47
  const config = {
50
- env: require_defu.defu(options, {
48
+ env: (0, defu.default)(options, {
51
49
  types: {},
52
50
  prefix: []
53
51
  }),
54
52
  transform: { babel: { plugins: [require_babel_plugin.envBabelPlugin] } }
55
53
  };
56
- if (config.env.types) config.env.types = require_parse_type_definition.parseTypeDefinition(config.env.types);
54
+ if (config.env.types) config.env.types = (0, __stryke_convert_parse_type_definition.parseTypeDefinition)(config.env.types);
57
55
  else {
58
56
  this.warn("The `env.types` configuration parameter was not provided. Please ensure this is expected.");
59
57
  const envDefaultTypeDefinition = await require_helpers_persistence.getEnvDefaultTypeDefinition(this);
60
- config.env.types = require_parse_type_definition.parseTypeDefinition(`${envDefaultTypeDefinition.file}#${envDefaultTypeDefinition.name}`);
58
+ config.env.types = (0, __stryke_convert_parse_type_definition.parseTypeDefinition)(`${envDefaultTypeDefinition.file}#${envDefaultTypeDefinition.name}`);
61
59
  }
62
- if (config.env.secrets) config.env.secrets = require_parse_type_definition.parseTypeDefinition(config.env.secrets);
60
+ if (config.env.secrets) config.env.secrets = (0, __stryke_convert_parse_type_definition.parseTypeDefinition)(config.env.secrets);
63
61
  else {
64
62
  const secretsDefaultTypeDefinition = await require_helpers_persistence.getSecretsDefaultTypeDefinition(this);
65
- config.env.secrets = require_parse_type_definition.parseTypeDefinition(`${secretsDefaultTypeDefinition.file}#${secretsDefaultTypeDefinition.name}`);
63
+ config.env.secrets = (0, __stryke_convert_parse_type_definition.parseTypeDefinition)(`${secretsDefaultTypeDefinition.file}#${secretsDefaultTypeDefinition.name}`);
66
64
  }
67
- config.env.prefix = require_to_array.toArray(config.env.prefix ?? []).reduce((ret, prefix) => {
65
+ config.env.prefix = (0, __stryke_convert_to_array.toArray)(config.env.prefix ?? []).reduce((ret, prefix) => {
68
66
  const formattedPrefix = (0, __stryke_string_format_constant_case.constantCase)(prefix);
69
67
  if (!ret.includes(formattedPrefix)) ret.push(formattedPrefix);
70
68
  return ret;
@@ -73,7 +71,7 @@ const plugin = (options = {}) => {
73
71
  "POWERLINES_",
74
72
  this.config.framework && this.config.framework !== "powerlines" && `${(0, __stryke_string_format_constant_case.constantCase)(this.config.framework)}_`
75
73
  ].filter(Boolean));
76
- config.env.prefix = require_to_array.toArray(config.env.prefix).reduce((ret, prefix) => {
74
+ config.env.prefix = (0, __stryke_convert_to_array.toArray)(config.env.prefix).reduce((ret, prefix) => {
77
75
  if (!ret.includes(prefix.replace(/_$/g, ""))) ret.push(prefix.replace(/_$/g, ""));
78
76
  return ret;
79
77
  }, []);
@@ -81,7 +79,7 @@ const plugin = (options = {}) => {
81
79
  },
82
80
  async configResolved() {
83
81
  this.debug(`Environment plugin configuration has been resolved for the Powerlines project.`);
84
- this.env = require_defu.defu({ parsed: await require_helpers_load.loadEnv(this, this.config.env) }, this.env ?? {}, {
82
+ this.env = (0, defu.default)({ parsed: await require_helpers_load.loadEnv(this, this.config.env) }, this.env ?? {}, {
85
83
  types: { env: {} },
86
84
  used: {
87
85
  env: {},
@@ -98,10 +96,10 @@ const plugin = (options = {}) => {
98
96
  if ((0, __stryke_fs_exists.existsSync)(require_helpers_persistence.getEnvReflectionsPath(this, "secrets"))) this.env.used.secrets = await require_helpers_persistence.readSecretsReflection(this);
99
97
  } else {
100
98
  this.debug(`Starting environment configuration reflection initialization.`);
101
- this.env.types.env = await require_helpers_reflect.reflectEnv(this, this.config.env.types?.file ? require_is_parent_path.isParentPath(this.config.env.types?.file, this.workspaceConfig.workspaceRoot) ? this.config.env.types?.file : require_join_paths.joinPaths(this.config.projectRoot, this.config.env.types?.file) : void 0, this.config.env.types?.name);
99
+ this.env.types.env = await require_helpers_reflect.reflectEnv(this, this.config.env.types?.file ? (0, __stryke_path_is_parent_path.isParentPath)(this.config.env.types?.file, this.workspaceConfig.workspaceRoot) ? this.config.env.types?.file : (0, __stryke_path_join.joinPaths)(this.config.projectRoot, this.config.env.types?.file) : void 0, this.config.env.types?.name);
102
100
  if (!this.env.types.env) throw new Error("Failed to find the environment configuration type reflection in the context.");
103
101
  await require_helpers_persistence.writeEnvTypeReflection(this, this.env.types.env, "env");
104
- this.env.types.secrets = await require_helpers_reflect.reflectSecrets(this, this.config.env.secrets?.file ? require_is_parent_path.isParentPath(this.config.env.secrets?.file, this.workspaceConfig.workspaceRoot) ? this.config.env.secrets?.file : require_join_paths.joinPaths(this.config.projectRoot, this.config.env.secrets?.file) : void 0, this.config.env.secrets?.name);
102
+ this.env.types.secrets = await require_helpers_reflect.reflectSecrets(this, this.config.env.secrets?.file ? (0, __stryke_path_is_parent_path.isParentPath)(this.config.env.secrets?.file, this.workspaceConfig.workspaceRoot) ? this.config.env.secrets?.file : (0, __stryke_path_join.joinPaths)(this.config.projectRoot, this.config.env.secrets?.file) : void 0, this.config.env.secrets?.name);
105
103
  if (!this.env.types.secrets) throw new Error("Failed to find the secrets configuration type reflection in the context.");
106
104
  await require_helpers_persistence.writeEnvTypeReflection(this, this.env.types.secrets, "secrets");
107
105
  this.debug(`Resolved ${this.env.types.env.getProperties().length ?? 0} environment configuration parameters and ${this.env.types.secrets?.getProperties().length ?? 0} secret configuration parameters`);
@@ -154,7 +152,7 @@ const plugin = (options = {}) => {
154
152
  }
155
153
  },
156
154
  async docs() {
157
- this.debug(`Documenting environment variables configuration values in "${require_join_paths.joinPaths(require_helpers_docs_helper.getDocsOutputPath(this), "env.md")}"`);
155
+ this.debug(`Documenting environment variables configuration values in "${(0, __stryke_path_join.joinPaths)(require_helpers_docs_helper.getDocsOutputPath(this), "env.md")}"`);
158
156
  return this.render((0, __alloy_js_core_jsx_runtime.createComponent)(require_components_docs.EnvDocsFile, { levelOffset: 0 }));
159
157
  },
160
158
  async buildEnd() {
@@ -166,7 +164,7 @@ const plugin = (options = {}) => {
166
164
  {
167
165
  name: "env:automd-generator",
168
166
  config() {
169
- return { automd: require_defu.defu(options.automd ?? {}, { generators: { "env": require_helpers_automd_generator.env(this) } }) };
167
+ return { automd: (0, defu.default)(options.automd ?? {}, { generators: { "env": require_helpers_automd_generator.env(this) } }) };
170
168
  }
171
169
  },
172
170
  {
@@ -175,7 +173,7 @@ const plugin = (options = {}) => {
175
173
  return { envPrefix: this.config?.env?.prefix };
176
174
  } }
177
175
  },
178
- (0, __powerlines_plugin_automd.default)(options.automd)
176
+ require_index$2.default(options.automd)
179
177
  ];
180
178
  };
181
179
  var src_default = plugin;
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { Plugin } from "./packages/powerlines/src/types/plugin.mjs";
1
+ import { Plugin } from "./powerlines/src/types/plugin.mjs";
2
2
  import { EnvInterface, SecretsInterface, __ΩEnvInterface, __ΩSecretsInterface } from "./types/runtime.mjs";
3
3
  import { EnvPluginContext, EnvPluginOptions, EnvPluginResolvedConfig, EnvPluginUserConfig, EnvType, __ΩEnvPluginContext, __ΩEnvPluginOptions, __ΩEnvPluginResolvedConfig, __ΩEnvPluginUserConfig, __ΩEnvType } from "./types/plugin.mjs";
4
4
  import { EnvDocsFile, EnvDocsFileProps, __ΩEnvDocsFileProps } from "./components/docs.mjs";
package/dist/index.mjs CHANGED
@@ -1,13 +1,10 @@
1
1
  import { __ΩEnvInterface, __ΩSecretsInterface } from "./types/runtime.mjs";
2
2
  import { __ΩEnvPluginContext, __ΩEnvPluginOptions, __ΩEnvPluginResolvedConfig, __ΩEnvPluginUserConfig, __ΩEnvType } from "./types/plugin.mjs";
3
3
  import "./types/index.mjs";
4
- import { joinPaths } from "./node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/join-paths.mjs";
5
- import { isParentPath } from "./node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/is-parent-path.mjs";
6
4
  import { BaseEnv, BaseSecrets, __ΩCreateEnvReflectionOptions, createEnvReflection, createSecretsReflection, mergeEnvReflections, mergeSecretsReflections, reflectEnv, reflectSecrets } from "./helpers/reflect.mjs";
7
5
  import { getEnvDefaultTypeDefinition, getEnvReflectionsPath, getEnvTypeReflectionsPath, getSecretsDefaultTypeDefinition, readEnvReflection, readEnvTypeReflection, readSecretsReflection, resolveRuntimeTypeFile, writeEnvReflection, writeEnvReflectionSync, writeEnvTypeReflection } from "./helpers/persistence.mjs";
8
6
  import { createTemplateReflection } from "./helpers/template-helpers.mjs";
9
7
  import { formatEnvField, removeEnvPrefix } from "./helpers/source-file-env.mjs";
10
- import { defu } from "./node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.mjs";
11
8
  import { loadEnv, loadEnvFromContext } from "./helpers/load.mjs";
12
9
  import { createReflectionResource } from "./helpers/create-reflection-resource.mjs";
13
10
  import "./helpers/index.mjs";
@@ -18,14 +15,17 @@ import { EnvBuiltin, EnvTypeDefinition } from "./components/env.mjs";
18
15
  import "./components/index.mjs";
19
16
  import { envBabelPlugin } from "./babel/plugin.mjs";
20
17
  import "./babel/index.mjs";
21
- import { parseTypeDefinition } from "./node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/parse-type-definition.mjs";
22
- import { toArray } from "./node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/to-array.mjs";
18
+ import src_default$3 from "./plugin-babel/src/index.mjs";
19
+ import src_default$1 from "./plugin-alloy/src/index.mjs";
20
+ import src_default$2 from "./plugin-automd/src/index.mjs";
23
21
  import { ReflectionClass, ReflectionKind } from "@powerlines/deepkit/vendor/type";
22
+ import defu$1 from "defu";
23
+ import { parseTypeDefinition } from "@stryke/convert/parse-type-definition";
24
+ import { toArray } from "@stryke/convert/to-array";
25
+ import { isParentPath } from "@stryke/path/is-parent-path";
24
26
  import { ENV_PREFIXES } from "@stryke/env/types";
27
+ import { joinPaths } from "@stryke/path/join";
25
28
  import { createComponent } from "@alloy-js/core/jsx-runtime";
26
- import alloy from "@powerlines/plugin-alloy";
27
- import automd from "@powerlines/plugin-automd";
28
- import babel from "@powerlines/plugin-babel";
29
29
  import { existsSync } from "@stryke/fs/exists";
30
30
  import { constantCase } from "@stryke/string-format/constant-case";
31
31
 
@@ -35,14 +35,14 @@ import { constantCase } from "@stryke/string-format/constant-case";
35
35
  */
36
36
  const plugin = (options = {}) => {
37
37
  return [
38
- alloy(options.alloy),
39
- babel(options.babel),
38
+ src_default$1(options.alloy),
39
+ src_default$3(options.babel),
40
40
  {
41
41
  name: "env",
42
42
  async config() {
43
43
  this.debug("Providing default configuration for the Powerlines `env` build plugin.");
44
44
  const config = {
45
- env: defu(options, {
45
+ env: defu$1(options, {
46
46
  types: {},
47
47
  prefix: []
48
48
  }),
@@ -76,7 +76,7 @@ const plugin = (options = {}) => {
76
76
  },
77
77
  async configResolved() {
78
78
  this.debug(`Environment plugin configuration has been resolved for the Powerlines project.`);
79
- this.env = defu({ parsed: await loadEnv(this, this.config.env) }, this.env ?? {}, {
79
+ this.env = defu$1({ parsed: await loadEnv(this, this.config.env) }, this.env ?? {}, {
80
80
  types: { env: {} },
81
81
  used: {
82
82
  env: {},
@@ -161,7 +161,7 @@ const plugin = (options = {}) => {
161
161
  {
162
162
  name: "env:automd-generator",
163
163
  config() {
164
- return { automd: defu(options.automd ?? {}, { generators: { "env": env(this) } }) };
164
+ return { automd: defu$1(options.automd ?? {}, { generators: { "env": env(this) } }) };
165
165
  }
166
166
  },
167
167
  {
@@ -170,7 +170,7 @@ const plugin = (options = {}) => {
170
170
  return { envPrefix: this.config?.env?.prefix };
171
171
  } }
172
172
  },
173
- automd(options.automd)
173
+ src_default$2(options.automd)
174
174
  ];
175
175
  };
176
176
  var src_default = plugin;
@@ -0,0 +1,43 @@
1
+ const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.cjs');
2
+ const require_context = require('../contexts/context.cjs');
3
+ let __stryke_path_replace = require("@stryke/path/replace");
4
+ let __alloy_js_core = require("@alloy-js/core");
5
+ let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
6
+
7
+ //#region ../plugin-alloy/src/core/components/output.tsx
8
+ /**
9
+ * Output component for rendering the Powerlines plugin's output files via templates.
10
+ */
11
+ function Output(props) {
12
+ const [{ children, context, meta, basePath }, rest] = (0, __alloy_js_core.splitProps)(props, [
13
+ "children",
14
+ "context",
15
+ "meta",
16
+ "basePath"
17
+ ]);
18
+ const basePathRef = (0, __alloy_js_core.computed)(() => basePath ? (0, __stryke_path_replace.replacePath)(basePath, context.workspaceConfig.workspaceRoot) : context.workspaceConfig.workspaceRoot);
19
+ return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Output, (0, __alloy_js_core_jsx_runtime.mergeProps)(rest, {
20
+ get basePath() {
21
+ return basePathRef.value;
22
+ },
23
+ get children() {
24
+ return (0, __alloy_js_core_jsx_runtime.createComponent)(require_context.PowerlinesContext.Provider, {
25
+ value: {
26
+ value: context,
27
+ meta: meta ?? {}
28
+ },
29
+ get children() {
30
+ return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
31
+ get when() {
32
+ return Boolean(context);
33
+ },
34
+ children
35
+ });
36
+ }
37
+ });
38
+ }
39
+ }));
40
+ }
41
+
42
+ //#endregion
43
+ exports.Output = Output;
@@ -0,0 +1,42 @@
1
+ import { PowerlinesContext } from "../contexts/context.mjs";
2
+ import { replacePath } from "@stryke/path/replace";
3
+ import { Output, Show, computed, splitProps } from "@alloy-js/core";
4
+ import { createComponent, mergeProps } from "@alloy-js/core/jsx-runtime";
5
+
6
+ //#region ../plugin-alloy/src/core/components/output.tsx
7
+ /**
8
+ * Output component for rendering the Powerlines plugin's output files via templates.
9
+ */
10
+ function Output$1(props) {
11
+ const [{ children, context, meta, basePath }, rest] = splitProps(props, [
12
+ "children",
13
+ "context",
14
+ "meta",
15
+ "basePath"
16
+ ]);
17
+ const basePathRef = computed(() => basePath ? replacePath(basePath, context.workspaceConfig.workspaceRoot) : context.workspaceConfig.workspaceRoot);
18
+ return createComponent(Output, mergeProps(rest, {
19
+ get basePath() {
20
+ return basePathRef.value;
21
+ },
22
+ get children() {
23
+ return createComponent(PowerlinesContext.Provider, {
24
+ value: {
25
+ value: context,
26
+ meta: meta ?? {}
27
+ },
28
+ get children() {
29
+ return createComponent(Show, {
30
+ get when() {
31
+ return Boolean(context);
32
+ },
33
+ children
34
+ });
35
+ }
36
+ });
37
+ }
38
+ }));
39
+ }
40
+
41
+ //#endregion
42
+ export { Output$1 as Output };
@@ -0,0 +1,22 @@
1
+ const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.cjs');
2
+ let __alloy_js_core = require("@alloy-js/core");
3
+ let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
4
+
5
+ //#region ../plugin-alloy/src/core/components/single-line-comment.tsx
6
+ /**
7
+ * A single line comment block. The children are rendered as a prose element, which means that they
8
+ * are broken into multiple lines
9
+ */
10
+ function SingleLineComment(props) {
11
+ const { variant = "double-slash", children } = props;
12
+ const commentStart = variant === "slash-star" ? "/* " : variant === "slash-star-star" ? "/** " : variant === "triple-slash" ? "/// " : variant === "markdown" ? "<!-- " : "// ";
13
+ return [commentStart, (0, __alloy_js_core_jsx_runtime.createIntrinsic)("align", {
14
+ string: commentStart,
15
+ get children() {
16
+ return [(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Prose, { children }), variant === "slash-star" || variant === "slash-star-star" ? " */ " : variant === "markdown" ? " -->" : ""];
17
+ }
18
+ })];
19
+ }
20
+
21
+ //#endregion
22
+ exports.SingleLineComment = SingleLineComment;
@@ -0,0 +1,21 @@
1
+ import { Prose } from "@alloy-js/core";
2
+ import { createComponent, createIntrinsic } from "@alloy-js/core/jsx-runtime";
3
+
4
+ //#region ../plugin-alloy/src/core/components/single-line-comment.tsx
5
+ /**
6
+ * A single line comment block. The children are rendered as a prose element, which means that they
7
+ * are broken into multiple lines
8
+ */
9
+ function SingleLineComment(props) {
10
+ const { variant = "double-slash", children } = props;
11
+ const commentStart = variant === "slash-star" ? "/* " : variant === "slash-star-star" ? "/** " : variant === "triple-slash" ? "/// " : variant === "markdown" ? "<!-- " : "// ";
12
+ return [commentStart, createIntrinsic("align", {
13
+ string: commentStart,
14
+ get children() {
15
+ return [createComponent(Prose, { children }), variant === "slash-star" || variant === "slash-star-star" ? " */ " : variant === "markdown" ? " -->" : ""];
16
+ }
17
+ })];
18
+ }
19
+
20
+ //#endregion
21
+ export { SingleLineComment };