@powerlines/plugin-env 0.14.8 → 0.14.10

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 (245) hide show
  1. package/dist/_virtual/rolldown_runtime.cjs +1 -0
  2. package/dist/{chunk-D1UamjDs.mjs → _virtual/rolldown_runtime.mjs} +1 -1
  3. package/dist/babel/index.cjs +1 -0
  4. package/dist/babel/index.d.cts +1 -0
  5. package/dist/babel/index.d.mts +1 -0
  6. package/dist/babel/index.mjs +1 -0
  7. package/dist/babel/plugin.cjs +5 -0
  8. package/dist/babel/plugin.d.cts +8 -0
  9. package/dist/babel/plugin.d.mts +8 -0
  10. package/dist/babel/plugin.mjs +5 -0
  11. package/dist/components/docs.cjs +1 -1
  12. package/dist/components/docs.d.cts +8 -1
  13. package/dist/components/docs.d.mts +8 -1
  14. package/dist/components/docs.mjs +1 -1
  15. package/dist/components/env.cjs +34 -1
  16. package/dist/components/env.d.cts +19 -1
  17. package/dist/components/env.d.mts +19 -1
  18. package/dist/components/env.mjs +31 -1
  19. package/dist/components/index.cjs +1 -1
  20. package/dist/components/index.d.cts +2 -3
  21. package/dist/components/index.d.mts +2 -3
  22. package/dist/components/index.mjs +1 -1
  23. package/dist/deepkit/schemas/reflection.cjs +1 -0
  24. package/dist/{plugin-vBgCrEuY.d.cts → deepkit/schemas/reflection.d.cts} +1 -260
  25. package/dist/{plugin-D9GLc9S_.d.mts → deepkit/schemas/reflection.d.mts} +1 -261
  26. package/dist/deepkit/schemas/reflection.mjs +1 -0
  27. package/dist/deepkit/schemas/reflection2.cjs +1 -0
  28. package/dist/deepkit/schemas/reflection2.mjs +1 -0
  29. package/dist/deepkit/src/capnp.cjs +1 -0
  30. package/dist/deepkit/src/capnp.mjs +1 -0
  31. package/dist/deepkit/src/esbuild-plugin.cjs +4 -0
  32. package/dist/deepkit/src/esbuild-plugin.mjs +4 -0
  33. package/dist/deepkit/src/reflect-type.cjs +1 -0
  34. package/dist/deepkit/src/reflect-type.mjs +1 -0
  35. package/dist/deepkit/src/resolve-reflections.cjs +1 -0
  36. package/dist/deepkit/src/resolve-reflections.mjs +1 -0
  37. package/dist/deepkit/src/transformer.cjs +1 -0
  38. package/dist/deepkit/src/transformer.mjs +1 -0
  39. package/dist/deepkit/src/transpile.cjs +1 -0
  40. package/dist/deepkit/src/transpile.mjs +1 -0
  41. package/dist/deepkit/src/types.d.cts +10 -0
  42. package/dist/deepkit/src/types.d.mts +10 -0
  43. package/dist/deepkit/src/utilities.cjs +1 -0
  44. package/dist/deepkit/src/utilities.mjs +1 -0
  45. package/dist/deepkit/src/vendor/core.cjs +1 -0
  46. package/dist/deepkit/src/vendor/core.mjs +1 -0
  47. package/dist/deepkit/src/vendor/type-compiler/index.cjs +1 -0
  48. package/dist/deepkit/src/vendor/type-compiler/index.mjs +1 -0
  49. package/dist/deepkit/src/vendor/type.cjs +1 -0
  50. package/dist/deepkit/src/vendor/type.d.cts +7 -0
  51. package/dist/deepkit/src/vendor/type.d.mts +7 -0
  52. package/dist/deepkit/src/vendor/type.mjs +1 -0
  53. package/dist/helpers/automd-generator.cjs +1 -0
  54. package/dist/helpers/automd-generator.mjs +1 -0
  55. package/dist/helpers/create-reflection-resource.cjs +1 -0
  56. package/dist/helpers/create-reflection-resource.d.cts +15 -0
  57. package/dist/helpers/create-reflection-resource.d.mts +15 -0
  58. package/dist/helpers/create-reflection-resource.mjs +1 -0
  59. package/dist/helpers/index.cjs +1 -0
  60. package/dist/helpers/index.d.cts +6 -0
  61. package/dist/helpers/index.d.mts +6 -0
  62. package/dist/helpers/index.mjs +1 -0
  63. package/dist/helpers/load.cjs +1 -0
  64. package/dist/helpers/load.d.cts +35 -0
  65. package/dist/helpers/load.d.mts +35 -0
  66. package/dist/helpers/load.mjs +1 -0
  67. package/dist/helpers/persistence.cjs +1 -0
  68. package/dist/helpers/persistence.d.cts +84 -0
  69. package/dist/helpers/persistence.d.mts +84 -0
  70. package/dist/helpers/persistence.mjs +1 -0
  71. package/dist/helpers/reflect.cjs +1 -0
  72. package/dist/helpers/reflect.d.cts +46 -0
  73. package/dist/helpers/reflect.d.mts +46 -0
  74. package/dist/helpers/reflect.mjs +1 -0
  75. package/dist/helpers/source-file-env.cjs +1 -0
  76. package/dist/helpers/source-file-env.d.cts +8 -0
  77. package/dist/helpers/source-file-env.d.mts +8 -0
  78. package/dist/helpers/source-file-env.mjs +1 -0
  79. package/dist/helpers/template-helpers.cjs +1 -0
  80. package/dist/helpers/template-helpers.d.cts +15 -0
  81. package/dist/helpers/template-helpers.d.mts +15 -0
  82. package/dist/helpers/template-helpers.mjs +1 -0
  83. package/dist/index.cjs +4 -8
  84. package/dist/index.d.cts +13 -184
  85. package/dist/index.d.mts +15 -184
  86. package/dist/index.mjs +4 -8
  87. package/dist/plugin-alloy/src/core/components/index.cjs +1 -0
  88. package/dist/plugin-alloy/src/core/components/index.mjs +1 -0
  89. package/dist/plugin-alloy/src/core/components/output.cjs +1 -0
  90. package/dist/plugin-alloy/src/core/components/output.mjs +1 -0
  91. package/dist/plugin-alloy/src/core/components/single-line-comment.cjs +1 -0
  92. package/dist/plugin-alloy/src/core/components/single-line-comment.mjs +1 -0
  93. package/dist/plugin-alloy/src/core/components/source-file.cjs +1 -0
  94. package/dist/plugin-alloy/src/core/components/source-file.mjs +1 -0
  95. package/dist/plugin-alloy/src/core/contexts/context.cjs +1 -0
  96. package/dist/plugin-alloy/src/core/contexts/context.mjs +1 -0
  97. package/dist/plugin-alloy/src/core/contexts/index.cjs +1 -0
  98. package/dist/plugin-alloy/src/core/contexts/index.mjs +1 -0
  99. package/dist/plugin-alloy/src/core/contexts/reflection.cjs +1 -0
  100. package/dist/plugin-alloy/src/core/contexts/reflection.mjs +1 -0
  101. package/dist/plugin-alloy/src/core/index.cjs +1 -0
  102. package/dist/plugin-alloy/src/core/index.mjs +1 -0
  103. package/dist/plugin-alloy/src/helpers/capnp.cjs +1 -0
  104. package/dist/plugin-alloy/src/helpers/capnp.mjs +1 -0
  105. package/dist/plugin-alloy/src/helpers/create-builtin.cjs +1 -0
  106. package/dist/plugin-alloy/src/helpers/create-builtin.mjs +1 -0
  107. package/dist/plugin-alloy/src/helpers/index.cjs +1 -0
  108. package/dist/plugin-alloy/src/helpers/index.mjs +1 -0
  109. package/dist/plugin-alloy/src/helpers/refkey.cjs +1 -0
  110. package/dist/plugin-alloy/src/helpers/refkey.mjs +1 -0
  111. package/dist/plugin-alloy/src/helpers/typescript.cjs +1 -0
  112. package/dist/plugin-alloy/src/helpers/typescript.mjs +1 -0
  113. package/dist/plugin-alloy/src/index.cjs +2 -0
  114. package/dist/plugin-alloy/src/index.mjs +2 -0
  115. package/dist/plugin-alloy/src/markdown/components/index.cjs +1 -0
  116. package/dist/plugin-alloy/src/markdown/components/index.mjs +1 -0
  117. package/dist/plugin-alloy/src/markdown/components/markdown-file.cjs +1 -0
  118. package/dist/plugin-alloy/src/markdown/components/markdown-file.mjs +1 -0
  119. package/dist/plugin-alloy/src/markdown/components/markdown-table.cjs +1 -0
  120. package/dist/plugin-alloy/src/markdown/components/markdown-table.mjs +1 -0
  121. package/dist/plugin-alloy/src/markdown/contexts/index.cjs +1 -0
  122. package/dist/plugin-alloy/src/markdown/contexts/index.mjs +1 -0
  123. package/dist/plugin-alloy/src/markdown/contexts/markdown-table.cjs +1 -0
  124. package/dist/plugin-alloy/src/markdown/contexts/markdown-table.mjs +1 -0
  125. package/dist/plugin-alloy/src/markdown/index.cjs +1 -0
  126. package/dist/plugin-alloy/src/markdown/index.mjs +1 -0
  127. package/dist/plugin-alloy/src/types/components.d.mts +5 -0
  128. package/dist/plugin-alloy/src/types/index.d.mts +2 -0
  129. package/dist/plugin-alloy/src/types/plugin.d.cts +38 -0
  130. package/dist/plugin-alloy/src/types/plugin.d.mts +38 -0
  131. package/dist/plugin-alloy/src/typescript/components/builtin-file.cjs +1 -0
  132. package/dist/plugin-alloy/src/typescript/components/builtin-file.mjs +1 -0
  133. package/dist/plugin-alloy/src/typescript/components/dynamic-import-statement.cjs +1 -0
  134. package/dist/plugin-alloy/src/typescript/components/dynamic-import-statement.mjs +1 -0
  135. package/dist/plugin-alloy/src/typescript/components/entry-file.cjs +1 -0
  136. package/dist/plugin-alloy/src/typescript/components/entry-file.mjs +1 -0
  137. package/dist/plugin-alloy/src/typescript/components/index.cjs +1 -0
  138. package/dist/plugin-alloy/src/typescript/components/index.mjs +1 -0
  139. package/dist/plugin-alloy/src/typescript/components/record-expression.cjs +1 -0
  140. package/dist/plugin-alloy/src/typescript/components/record-expression.mjs +1 -0
  141. package/dist/plugin-alloy/src/typescript/components/tsdoc-reflection.cjs +1 -0
  142. package/dist/plugin-alloy/src/typescript/components/tsdoc-reflection.mjs +1 -0
  143. package/dist/plugin-alloy/src/typescript/components/tsdoc.cjs +1 -0
  144. package/dist/plugin-alloy/src/typescript/components/tsdoc.mjs +1 -0
  145. package/dist/plugin-alloy/src/typescript/components/typescript-file.cjs +1 -0
  146. package/dist/plugin-alloy/src/typescript/components/typescript-file.mjs +1 -0
  147. package/dist/plugin-alloy/src/typescript/components/typescript-interface.cjs +1 -0
  148. package/dist/plugin-alloy/src/typescript/components/typescript-interface.mjs +1 -0
  149. package/dist/plugin-alloy/src/typescript/components/typescript-object.cjs +1 -0
  150. package/dist/plugin-alloy/src/typescript/components/typescript-object.mjs +1 -0
  151. package/dist/plugin-alloy/src/typescript/index.cjs +1 -0
  152. package/dist/plugin-alloy/src/typescript/index.mjs +1 -0
  153. package/dist/plugin-automd/src/index.cjs +1 -0
  154. package/dist/plugin-automd/src/index.mjs +1 -0
  155. package/dist/plugin-automd/src/types/plugin.d.cts +38 -0
  156. package/dist/plugin-automd/src/types/plugin.d.mts +40 -0
  157. package/dist/plugin-automd/src/types/toc.d.cts +33 -0
  158. package/dist/plugin-automd/src/types/toc.d.mts +33 -0
  159. package/dist/plugin-babel/src/helpers/ast-utils.cjs +1 -0
  160. package/dist/plugin-babel/src/helpers/ast-utils.mjs +1 -0
  161. package/dist/plugin-babel/src/helpers/create-plugin.cjs +1 -0
  162. package/dist/plugin-babel/src/helpers/create-plugin.mjs +1 -0
  163. package/dist/plugin-babel/src/helpers/filters.cjs +1 -0
  164. package/dist/plugin-babel/src/helpers/filters.mjs +1 -0
  165. package/dist/plugin-babel/src/helpers/index.cjs +1 -0
  166. package/dist/plugin-babel/src/helpers/index.mjs +1 -0
  167. package/dist/plugin-babel/src/helpers/module-helpers.cjs +1 -0
  168. package/dist/plugin-babel/src/helpers/module-helpers.mjs +1 -0
  169. package/dist/plugin-babel/src/helpers/options.cjs +1 -0
  170. package/dist/plugin-babel/src/helpers/options.mjs +1 -0
  171. package/dist/plugin-babel/src/index.cjs +1 -0
  172. package/dist/plugin-babel/src/index.mjs +1 -0
  173. package/dist/plugin-babel/src/types/index.d.mts +1 -0
  174. package/dist/plugin-babel/src/types/plugin.d.cts +15 -0
  175. package/dist/plugin-babel/src/types/plugin.d.mts +15 -0
  176. package/dist/powerlines/src/lib/build/esbuild.cjs +14 -0
  177. package/dist/powerlines/src/lib/build/esbuild.mjs +14 -0
  178. package/dist/powerlines/src/lib/entry.cjs +1 -0
  179. package/dist/powerlines/src/lib/entry.mjs +1 -0
  180. package/dist/powerlines/src/lib/logger.cjs +1 -0
  181. package/dist/powerlines/src/lib/logger.mjs +1 -0
  182. package/dist/powerlines/src/lib/utilities/bundle.cjs +1 -0
  183. package/dist/powerlines/src/lib/utilities/bundle.mjs +1 -0
  184. package/dist/powerlines/src/lib/utilities/file-header.cjs +1 -0
  185. package/dist/powerlines/src/lib/utilities/file-header.mjs +1 -0
  186. package/dist/powerlines/src/lib/utilities/resolve.cjs +1 -0
  187. package/dist/powerlines/src/lib/utilities/resolve.mjs +1 -0
  188. package/dist/powerlines/src/plugin-utils/paths.cjs +1 -0
  189. package/dist/powerlines/src/plugin-utils/paths.mjs +1 -0
  190. package/dist/powerlines/src/types/babel.d.cts +22 -0
  191. package/dist/powerlines/src/types/babel.d.mts +22 -0
  192. package/dist/powerlines/src/types/build.d.cts +145 -0
  193. package/dist/powerlines/src/types/build.d.mts +147 -0
  194. package/dist/powerlines/src/types/commands.d.cts +8 -0
  195. package/dist/powerlines/src/types/commands.d.mts +9 -0
  196. package/dist/powerlines/src/types/config.d.cts +368 -0
  197. package/dist/powerlines/src/types/config.d.mts +369 -0
  198. package/dist/powerlines/src/types/context.d.cts +373 -0
  199. package/dist/powerlines/src/types/context.d.mts +375 -0
  200. package/dist/powerlines/src/types/fs.d.cts +458 -0
  201. package/dist/powerlines/src/types/fs.d.mts +458 -0
  202. package/dist/powerlines/src/types/hooks.d.mts +2 -0
  203. package/dist/powerlines/src/types/plugin.d.cts +231 -0
  204. package/dist/powerlines/src/types/plugin.d.mts +231 -0
  205. package/dist/powerlines/src/types/resolved.d.cts +82 -0
  206. package/dist/powerlines/src/types/resolved.d.mts +83 -0
  207. package/dist/powerlines/src/types/tsconfig.d.cts +69 -0
  208. package/dist/powerlines/src/types/tsconfig.d.mts +69 -0
  209. package/dist/types/index.cjs +0 -1
  210. package/dist/types/index.d.cts +2 -3
  211. package/dist/types/index.d.mts +2 -3
  212. package/dist/types/index.mjs +1 -1
  213. package/dist/types/plugin.cjs +0 -1
  214. package/dist/types/plugin.d.cts +156 -2
  215. package/dist/types/plugin.d.mts +158 -2
  216. package/dist/types/plugin.mjs +1 -1
  217. package/dist/types/runtime.cjs +0 -1
  218. package/dist/types/runtime.d.cts +793 -1
  219. package/dist/types/runtime.d.mts +793 -1
  220. package/dist/types/runtime.mjs +1 -1
  221. package/package.json +13 -20
  222. package/dist/components-ByVHjWXF.mjs +0 -1
  223. package/dist/components-C9bYrQVK.cjs +0 -0
  224. package/dist/create-reflection-resource-B9d8LEWF.mjs +0 -17
  225. package/dist/create-reflection-resource-BEDScc6f.cjs +0 -17
  226. package/dist/docs--ddXDQBx.cjs +0 -1
  227. package/dist/docs-CKCRAUnO.d.mts +0 -9
  228. package/dist/docs-CdtUw4WA.d.cts +0 -9
  229. package/dist/docs-DwPacakH.mjs +0 -1
  230. package/dist/env-COWzTupf.d.cts +0 -20
  231. package/dist/env-CdR46Bis.mjs +0 -31
  232. package/dist/env-DqPOEUEu.d.mts +0 -20
  233. package/dist/env-k_8Sz-kF.cjs +0 -34
  234. package/dist/index-B_e8BwCm.d.cts +0 -1
  235. package/dist/index-CW2WHUXP.d.mts +0 -1
  236. package/dist/index-DCQ5Y2ED.d.mts +0 -1
  237. package/dist/index-DWPDThxu.d.cts +0 -1
  238. package/dist/plugin-CyRU_Pln.mjs +0 -1
  239. package/dist/plugin-D5qyQPqC.cjs +0 -0
  240. package/dist/runtime-Bisl_1Ja.cjs +0 -0
  241. package/dist/runtime-CRLPiOqf.d.mts +0 -2499
  242. package/dist/runtime-g_eXGBBi.mjs +0 -1
  243. package/dist/runtime-rhT2IfSg.d.cts +0 -2497
  244. package/dist/types-DMh7K7VC.mjs +0 -1
  245. package/dist/types-MYBaygjr.cjs +0 -0
@@ -1,15 +1,5 @@
1
- import { a as BabelResolvedConfig, c as UserConfig, n as SecretsInterface, o as ResolvedConfig, s as BabelUserConfig, t as EnvInterface, u as PluginContext } from "./runtime-rhT2IfSg.cjs";
2
- import { PrintTreeOptions } from "@alloy-js/core";
3
- import { Children as Children$1 } from "@alloy-js/core/jsx-runtime";
4
1
  import * as $ from "@stryke/capnp";
5
- import { DotenvConfiguration, TypeDefinition, TypeDefinitionParameter } from "@stryke/types/configuration";
6
- import { Config } from "automd";
7
- import { DotenvParseOutput } from "@stryke/env/types";
8
2
 
9
- //#region rolldown:runtime
10
-
11
- import * as import___deepkit_type from "@deepkit/type";
12
- //#endregion
13
3
  //#region ../deepkit/schemas/reflection.d.ts
14
4
  declare const ReflectionKind: {
15
5
  readonly NEVER: 0;
@@ -1567,253 +1557,4 @@ declare class SerializedTypes extends $.Struct {
1567
1557
  toString(): string;
1568
1558
  }
1569
1559
  //#endregion
1570
- //#region ../deepkit/src/types.d.ts
1571
- type Reflection<T extends Record<string, any> = Record<string, any>> = type_d_exports.ReflectionClass<T> & {
1572
- dataBuffer?: ArrayBuffer;
1573
- messageRoot?: SerializedTypes;
1574
- };
1575
- //#endregion
1576
- //#region ../plugin-alloy/src/types/plugin.d.ts
1577
- type AlloyPluginOptions = Partial<PrintTreeOptions> & {
1578
- /**
1579
- * If true, the Alloy framework is used to generate Typescript output files.
1580
- *
1581
- * @defaultValue true
1582
- */
1583
- typescript?: boolean;
1584
- /**
1585
- * If true, the Alloy framework is used to generate JSON output files.
1586
- *
1587
- * @defaultValue false
1588
- */
1589
- json?: boolean;
1590
- /**
1591
- * If true, the Alloy framework is used to generate Markdown output files.
1592
- *
1593
- * @defaultValue false
1594
- */
1595
- markdown?: boolean;
1596
- };
1597
- type AlloyPluginResolvedConfig = ResolvedConfig & {
1598
- alloy: AlloyPluginOptions;
1599
- };
1600
- type AlloyPluginContext<TResolvedConfig extends AlloyPluginResolvedConfig = AlloyPluginResolvedConfig> = PluginContext<TResolvedConfig> & {
1601
- render: <TContext extends AlloyPluginContext>(this: TContext, children: Children$1) => Promise<void>;
1602
- };
1603
- //#endregion
1604
- //#region ../plugin-automd/src/types/toc.d.ts
1605
- interface TOCOptions {
1606
- /**
1607
- * A slugify function to generate slugs for the headings.
1608
- */
1609
- slugify?: (str: string) => string;
1610
- /**
1611
- * The maximum depth of headings to include in the TOC.
1612
- *
1613
- * @defaultValue 6
1614
- */
1615
- maxDepth?: number;
1616
- /**
1617
- * Whether to include the first H1 heading in the TOC.
1618
- */
1619
- firstH1?: boolean;
1620
- /**
1621
- * The bullet character to use for list items in the TOC.
1622
- *
1623
- * @defaultValue "-"
1624
- */
1625
- bullets?: string;
1626
- /**
1627
- * A prefix to add to each heading in the TOC.
1628
- */
1629
- prefix?: string;
1630
- /**
1631
- * A filter function to determine which headings to include in the TOC.
1632
- */
1633
- filter?: (str: string, level: number) => boolean;
1634
- }
1635
- //#endregion
1636
- //#region ../plugin-automd/src/types/plugin.d.ts
1637
- type AutoMDPluginOptions = Omit<Config, "dir" | "watch" | "onWatch" | "prefix"> & {
1638
- /**
1639
- * Path to the AutoMD configuration file.
1640
- *
1641
- * @remarks
1642
- * If not provided, the plugin will use the default AutoMD configuration resolution mechanism.
1643
- */
1644
- configFile?: string;
1645
- /**
1646
- * An indicator specifying whether or not issues found by AutoMD during the prepare task are considered fatal.
1647
- *
1648
- * @defaultValue true
1649
- */
1650
- allowIssues?: boolean;
1651
- /**
1652
- * Alternate prefix strings to use for finding generators
1653
- *
1654
- * @remarks
1655
- * By default, AutoMD looks for generators with the "automd" prefix, so that any `<!-- automd:generator [...args] --> ... <!-- /automd -->` comments will be picked up. If you want to use different prefixes (for example, to avoid conflicts with other tools), you would provide a value like "myPrefix" and AutoMD would also look for `<!-- myPrefix:generator [...args] --> ... <!-- /myPrefix -->` comments.
1656
- *
1657
- * @defaultValue ["automd", "powerlines", "\{framework\}"]
1658
- */
1659
- prefix?: string | string[];
1660
- /**
1661
- * Table of Contents generator options
1662
- *
1663
- * @remarks
1664
- * If set to `false`, the built-in Table of Contents generator will be disabled.
1665
- */
1666
- toc?: false | TOCOptions;
1667
- };
1668
- //#endregion
1669
- //#region ../plugin-babel/src/types/plugin.d.ts
1670
- type BabelPluginOptions = Partial<BabelUserConfig>;
1671
- type BabelPluginUserConfig = UserConfig;
1672
- interface BabelPluginResolvedConfig extends ResolvedConfig {
1673
- transform: {
1674
- babel: BabelResolvedConfig;
1675
- };
1676
- }
1677
- type BabelPluginContext<TResolvedConfig extends BabelPluginResolvedConfig = BabelPluginResolvedConfig> = PluginContext<TResolvedConfig>;
1678
- //#endregion
1679
- //#region src/types/plugin.d.ts
1680
- type EnvType = "env" | "secrets";
1681
- type EnvPluginOptions = Omit<DotenvConfiguration, "types"> & {
1682
- /**
1683
- * A path to the type definition for the expected env configuration parameters. This value can include both a path to the typescript file and the name of the type definition to use separated by a `":"` or `"#"` character. For example: `"./src/types/env.ts#ConfigConfiguration"`.
1684
- */
1685
- types?: TypeDefinitionParameter;
1686
- /**
1687
- * A path to the type definition for the expected env secret parameters. This value can include both a path to the typescript file and the name of the type definition to use separated by a `":"` or `"#"` character. For example: `"./src/types/env.ts#ConfigSecrets"`.
1688
- */
1689
- secrets?: TypeDefinitionParameter;
1690
- /**
1691
- * An additional prefix (or list of additional prefixes) to apply to the environment variables
1692
- *
1693
- * @remarks
1694
- * By default, the plugin will use the `POWERLINES_` prefix. This option is useful for avoiding conflicts with other environment variables.
1695
- */
1696
- prefix?: string | string[];
1697
- /**
1698
- * Should the plugin inject the env variables in the source code with their values?
1699
- *
1700
- * @remarks
1701
- * This option is set to `true` when building an application project.
1702
- *
1703
- * @defaultValue false
1704
- */
1705
- inject?: boolean;
1706
- /**
1707
- * The default configuration to use when loading environment variables.
1708
- *
1709
- * @remarks
1710
- * This configuration is used as the base configuration when loading environment variables, and will be overridden by any values found in the `.env` file or the process environment.
1711
- */
1712
- defaultConfig?: Children$1;
1713
- /**
1714
- * Babel configuration options to use when injecting environment variables into the source code.
1715
- *
1716
- * @remarks
1717
- * This option allows you to customize the Babel transformation process used to inject environment variables into the source code. If not provided, the plugin will use default Babel settings.
1718
- */
1719
- babel?: BabelPluginOptions;
1720
- /**
1721
- * AutoMD configuration options to allow injecting environment variables documentation into a markdown file such as a README.md.
1722
- *
1723
- * @remarks
1724
- * The README.md file should contain the `<!-- automd:env --><!-- /automd -->` comment block where the documentation will be injected.
1725
- */
1726
- automd?: AutoMDPluginOptions;
1727
- };
1728
- type EnvPluginUserConfig = BabelPluginUserConfig & {
1729
- env: EnvPluginOptions;
1730
- };
1731
- type EnvPluginResolvedConfig = BabelPluginResolvedConfig & {
1732
- env: Required<Pick<DotenvConfiguration, "additionalFiles">> & Required<Pick<EnvPluginOptions, "defaultConfig">> & {
1733
- /**
1734
- * The type definition for the expected env variable parameters
1735
- *
1736
- * @remarks
1737
- * This value is parsed from the {@link EnvPluginOptions.types} option.
1738
- */
1739
- types: TypeDefinition;
1740
- /**
1741
- * The type definition for the expected env secret parameters
1742
- *
1743
- * @remarks
1744
- * This value is parsed from the {@link EnvPluginOptions.secrets} option.
1745
- */
1746
- secrets: TypeDefinition;
1747
- /**
1748
- * Should the plugin inject the env variables in the source code with their values?
1749
- *
1750
- * @remarks
1751
- * This value is the result of reflecting the {@link EnvPluginOptions.inject} option.
1752
- */
1753
- inject: EnvPluginOptions["inject"];
1754
- /**
1755
- * The prefix used for environment variables
1756
- *
1757
- * @remarks
1758
- * This value is used to filter environment variables that are loaded from the .env file and the process environment.
1759
- */
1760
- prefix: string[];
1761
- };
1762
- };
1763
- interface EnvPluginContext<TResolvedConfig extends EnvPluginResolvedConfig = EnvPluginResolvedConfig> extends BabelPluginContext<TResolvedConfig>, AlloyPluginContext<TResolvedConfig> {
1764
- env: {
1765
- /**
1766
- * The type definitions reflection for the env variables and secrets
1767
- *
1768
- * @remarks
1769
- * These reflections contains the structure of the expected environment variables and secrets as defined by the type definitions provided in the plugin configuration.
1770
- */
1771
- types: {
1772
- /**
1773
- * The type definitions for the expected env variables
1774
- */
1775
- env: Reflection;
1776
- /**
1777
- * The type definitions for the expected env secrets
1778
- */
1779
- secrets: Reflection;
1780
- };
1781
- /**
1782
- * The current **used** environment variables and secrets reflection
1783
- *
1784
- * @remarks
1785
- * This reflection contains the structure of the current environment variables and secrets as defined during the plugin initialization by extracting the values from the source code.
1786
- */
1787
- used: {
1788
- /**
1789
- * The current env variables reflection
1790
- */
1791
- env: Reflection<EnvInterface>;
1792
- /**
1793
- * The current env secrets reflection
1794
- */
1795
- secrets: Reflection<SecretsInterface>;
1796
- };
1797
- /**
1798
- * The parsed .env configuration object
1799
- *
1800
- * @remarks
1801
- * This value is the result of loading the .env configuration file found in the project root directory and merging it with the values provided at {@link EnvPluginOptions.values}
1802
- */
1803
- parsed: DotenvParseOutput;
1804
- /**
1805
- * The injected environment variables and secrets reflection
1806
- *
1807
- * @remarks
1808
- * This reflection contains the structure of the injected environment variables and secrets that were injected into the source code during the build process.
1809
- */
1810
- injected: Reflection;
1811
- };
1812
- }
1813
- declare type __ΩEnvType = any[];
1814
- declare type __ΩEnvPluginOptions = any[];
1815
- declare type __ΩEnvPluginUserConfig = any[];
1816
- declare type __ΩEnvPluginResolvedConfig = any[];
1817
- declare type __ΩEnvPluginContext = any[];
1818
- //#endregion
1819
- export { EnvType as a, __ΩEnvPluginResolvedConfig as c, type_d_exports as d, EnvPluginUserConfig as i, __ΩEnvPluginUserConfig as l, EnvPluginOptions as n, __ΩEnvPluginContext as o, EnvPluginResolvedConfig as r, __ΩEnvPluginOptions as s, EnvPluginContext as t, __ΩEnvType as u };
1560
+ export { SerializedTypes };
@@ -1,16 +1,5 @@
1
- import { a as BabelResolvedConfig, c as UserConfig, n as SecretsInterface, o as ResolvedConfig, s as BabelUserConfig, t as EnvInterface, u as PluginContext } from "./runtime-CRLPiOqf.mjs";
2
- import { Children } from "@alloy-js/core/jsx-runtime";
3
- import { Config } from "automd";
4
- import { DotenvParseOutput } from "@stryke/env/types";
5
1
  import * as $ from "@stryke/capnp";
6
- import { PrintTreeOptions } from "@alloy-js/core";
7
- import "@alloy-js/typescript";
8
- import { DotenvConfiguration, TypeDefinition, TypeDefinitionParameter } from "@stryke/types/configuration";
9
2
 
10
- //#region ../deepkit/src/vendor/type.d.ts
11
-
12
- import * as import___deepkit_type from "@deepkit/type";
13
- //#endregion
14
3
  //#region ../deepkit/schemas/reflection.d.ts
15
4
  declare const ReflectionKind: {
16
5
  readonly NEVER: 0;
@@ -1568,253 +1557,4 @@ declare class SerializedTypes extends $.Struct {
1568
1557
  toString(): string;
1569
1558
  }
1570
1559
  //#endregion
1571
- //#region ../deepkit/src/types.d.ts
1572
- type Reflection<T extends Record<string, any> = Record<string, any>> = type_d_exports.ReflectionClass<T> & {
1573
- dataBuffer?: ArrayBuffer;
1574
- messageRoot?: SerializedTypes;
1575
- };
1576
- //#endregion
1577
- //#region ../plugin-alloy/src/types/plugin.d.ts
1578
- type AlloyPluginOptions = Partial<PrintTreeOptions> & {
1579
- /**
1580
- * If true, the Alloy framework is used to generate Typescript output files.
1581
- *
1582
- * @defaultValue true
1583
- */
1584
- typescript?: boolean;
1585
- /**
1586
- * If true, the Alloy framework is used to generate JSON output files.
1587
- *
1588
- * @defaultValue false
1589
- */
1590
- json?: boolean;
1591
- /**
1592
- * If true, the Alloy framework is used to generate Markdown output files.
1593
- *
1594
- * @defaultValue false
1595
- */
1596
- markdown?: boolean;
1597
- };
1598
- type AlloyPluginResolvedConfig = ResolvedConfig & {
1599
- alloy: AlloyPluginOptions;
1600
- };
1601
- type AlloyPluginContext<TResolvedConfig extends AlloyPluginResolvedConfig = AlloyPluginResolvedConfig> = PluginContext<TResolvedConfig> & {
1602
- render: <TContext extends AlloyPluginContext>(this: TContext, children: Children) => Promise<void>;
1603
- };
1604
- //#endregion
1605
- //#region ../plugin-automd/src/types/toc.d.ts
1606
- interface TOCOptions {
1607
- /**
1608
- * A slugify function to generate slugs for the headings.
1609
- */
1610
- slugify?: (str: string) => string;
1611
- /**
1612
- * The maximum depth of headings to include in the TOC.
1613
- *
1614
- * @defaultValue 6
1615
- */
1616
- maxDepth?: number;
1617
- /**
1618
- * Whether to include the first H1 heading in the TOC.
1619
- */
1620
- firstH1?: boolean;
1621
- /**
1622
- * The bullet character to use for list items in the TOC.
1623
- *
1624
- * @defaultValue "-"
1625
- */
1626
- bullets?: string;
1627
- /**
1628
- * A prefix to add to each heading in the TOC.
1629
- */
1630
- prefix?: string;
1631
- /**
1632
- * A filter function to determine which headings to include in the TOC.
1633
- */
1634
- filter?: (str: string, level: number) => boolean;
1635
- }
1636
- //#endregion
1637
- //#region ../plugin-automd/src/types/plugin.d.ts
1638
- type AutoMDPluginOptions = Omit<Config, "dir" | "watch" | "onWatch" | "prefix"> & {
1639
- /**
1640
- * Path to the AutoMD configuration file.
1641
- *
1642
- * @remarks
1643
- * If not provided, the plugin will use the default AutoMD configuration resolution mechanism.
1644
- */
1645
- configFile?: string;
1646
- /**
1647
- * An indicator specifying whether or not issues found by AutoMD during the prepare task are considered fatal.
1648
- *
1649
- * @defaultValue true
1650
- */
1651
- allowIssues?: boolean;
1652
- /**
1653
- * Alternate prefix strings to use for finding generators
1654
- *
1655
- * @remarks
1656
- * By default, AutoMD looks for generators with the "automd" prefix, so that any `<!-- automd:generator [...args] --> ... <!-- /automd -->` comments will be picked up. If you want to use different prefixes (for example, to avoid conflicts with other tools), you would provide a value like "myPrefix" and AutoMD would also look for `<!-- myPrefix:generator [...args] --> ... <!-- /myPrefix -->` comments.
1657
- *
1658
- * @defaultValue ["automd", "powerlines", "\{framework\}"]
1659
- */
1660
- prefix?: string | string[];
1661
- /**
1662
- * Table of Contents generator options
1663
- *
1664
- * @remarks
1665
- * If set to `false`, the built-in Table of Contents generator will be disabled.
1666
- */
1667
- toc?: false | TOCOptions;
1668
- };
1669
- //#endregion
1670
- //#region ../plugin-babel/src/types/plugin.d.ts
1671
- type BabelPluginOptions = Partial<BabelUserConfig>;
1672
- type BabelPluginUserConfig = UserConfig;
1673
- interface BabelPluginResolvedConfig extends ResolvedConfig {
1674
- transform: {
1675
- babel: BabelResolvedConfig;
1676
- };
1677
- }
1678
- type BabelPluginContext<TResolvedConfig extends BabelPluginResolvedConfig = BabelPluginResolvedConfig> = PluginContext<TResolvedConfig>;
1679
- //#endregion
1680
- //#region src/types/plugin.d.ts
1681
- type EnvType = "env" | "secrets";
1682
- type EnvPluginOptions = Omit<DotenvConfiguration, "types"> & {
1683
- /**
1684
- * A path to the type definition for the expected env configuration parameters. This value can include both a path to the typescript file and the name of the type definition to use separated by a `":"` or `"#"` character. For example: `"./src/types/env.ts#ConfigConfiguration"`.
1685
- */
1686
- types?: TypeDefinitionParameter;
1687
- /**
1688
- * A path to the type definition for the expected env secret parameters. This value can include both a path to the typescript file and the name of the type definition to use separated by a `":"` or `"#"` character. For example: `"./src/types/env.ts#ConfigSecrets"`.
1689
- */
1690
- secrets?: TypeDefinitionParameter;
1691
- /**
1692
- * An additional prefix (or list of additional prefixes) to apply to the environment variables
1693
- *
1694
- * @remarks
1695
- * By default, the plugin will use the `POWERLINES_` prefix. This option is useful for avoiding conflicts with other environment variables.
1696
- */
1697
- prefix?: string | string[];
1698
- /**
1699
- * Should the plugin inject the env variables in the source code with their values?
1700
- *
1701
- * @remarks
1702
- * This option is set to `true` when building an application project.
1703
- *
1704
- * @defaultValue false
1705
- */
1706
- inject?: boolean;
1707
- /**
1708
- * The default configuration to use when loading environment variables.
1709
- *
1710
- * @remarks
1711
- * This configuration is used as the base configuration when loading environment variables, and will be overridden by any values found in the `.env` file or the process environment.
1712
- */
1713
- defaultConfig?: Children;
1714
- /**
1715
- * Babel configuration options to use when injecting environment variables into the source code.
1716
- *
1717
- * @remarks
1718
- * This option allows you to customize the Babel transformation process used to inject environment variables into the source code. If not provided, the plugin will use default Babel settings.
1719
- */
1720
- babel?: BabelPluginOptions;
1721
- /**
1722
- * AutoMD configuration options to allow injecting environment variables documentation into a markdown file such as a README.md.
1723
- *
1724
- * @remarks
1725
- * The README.md file should contain the `<!-- automd:env --><!-- /automd -->` comment block where the documentation will be injected.
1726
- */
1727
- automd?: AutoMDPluginOptions;
1728
- };
1729
- type EnvPluginUserConfig = BabelPluginUserConfig & {
1730
- env: EnvPluginOptions;
1731
- };
1732
- type EnvPluginResolvedConfig = BabelPluginResolvedConfig & {
1733
- env: Required<Pick<DotenvConfiguration, "additionalFiles">> & Required<Pick<EnvPluginOptions, "defaultConfig">> & {
1734
- /**
1735
- * The type definition for the expected env variable parameters
1736
- *
1737
- * @remarks
1738
- * This value is parsed from the {@link EnvPluginOptions.types} option.
1739
- */
1740
- types: TypeDefinition;
1741
- /**
1742
- * The type definition for the expected env secret parameters
1743
- *
1744
- * @remarks
1745
- * This value is parsed from the {@link EnvPluginOptions.secrets} option.
1746
- */
1747
- secrets: TypeDefinition;
1748
- /**
1749
- * Should the plugin inject the env variables in the source code with their values?
1750
- *
1751
- * @remarks
1752
- * This value is the result of reflecting the {@link EnvPluginOptions.inject} option.
1753
- */
1754
- inject: EnvPluginOptions["inject"];
1755
- /**
1756
- * The prefix used for environment variables
1757
- *
1758
- * @remarks
1759
- * This value is used to filter environment variables that are loaded from the .env file and the process environment.
1760
- */
1761
- prefix: string[];
1762
- };
1763
- };
1764
- interface EnvPluginContext<TResolvedConfig extends EnvPluginResolvedConfig = EnvPluginResolvedConfig> extends BabelPluginContext<TResolvedConfig>, AlloyPluginContext<TResolvedConfig> {
1765
- env: {
1766
- /**
1767
- * The type definitions reflection for the env variables and secrets
1768
- *
1769
- * @remarks
1770
- * These reflections contains the structure of the expected environment variables and secrets as defined by the type definitions provided in the plugin configuration.
1771
- */
1772
- types: {
1773
- /**
1774
- * The type definitions for the expected env variables
1775
- */
1776
- env: Reflection;
1777
- /**
1778
- * The type definitions for the expected env secrets
1779
- */
1780
- secrets: Reflection;
1781
- };
1782
- /**
1783
- * The current **used** environment variables and secrets reflection
1784
- *
1785
- * @remarks
1786
- * This reflection contains the structure of the current environment variables and secrets as defined during the plugin initialization by extracting the values from the source code.
1787
- */
1788
- used: {
1789
- /**
1790
- * The current env variables reflection
1791
- */
1792
- env: Reflection<EnvInterface>;
1793
- /**
1794
- * The current env secrets reflection
1795
- */
1796
- secrets: Reflection<SecretsInterface>;
1797
- };
1798
- /**
1799
- * The parsed .env configuration object
1800
- *
1801
- * @remarks
1802
- * This value is the result of loading the .env configuration file found in the project root directory and merging it with the values provided at {@link EnvPluginOptions.values}
1803
- */
1804
- parsed: DotenvParseOutput;
1805
- /**
1806
- * The injected environment variables and secrets reflection
1807
- *
1808
- * @remarks
1809
- * This reflection contains the structure of the injected environment variables and secrets that were injected into the source code during the build process.
1810
- */
1811
- injected: Reflection;
1812
- };
1813
- }
1814
- declare type __ΩEnvType = any[];
1815
- declare type __ΩEnvPluginOptions = any[];
1816
- declare type __ΩEnvPluginUserConfig = any[];
1817
- declare type __ΩEnvPluginResolvedConfig = any[];
1818
- declare type __ΩEnvPluginContext = any[];
1819
- //#endregion
1820
- export { EnvType as a, __ΩEnvPluginResolvedConfig as c, type_d_exports as d, EnvPluginUserConfig as i, __ΩEnvPluginUserConfig as l, EnvPluginOptions as n, __ΩEnvPluginContext as o, EnvPluginResolvedConfig as r, __ΩEnvPluginOptions as s, EnvPluginContext as t, __ΩEnvType as u };
1560
+ export { SerializedTypes };