@powerlines/plugin-env 0.14.9 → 0.14.11

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 (247) 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-CbIYUQ4Z.d.mts → deepkit/schemas/reflection.d.cts} +1 -271
  25. package/dist/{plugin-Bub_SPEB.d.cts → deepkit/schemas/reflection.d.mts} +1 -271
  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 -9
  84. package/dist/index.d.cts +15 -184
  85. package/dist/index.d.mts +15 -184
  86. package/dist/index.mjs +4 -9
  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.cts +2 -0
  128. package/dist/plugin-alloy/src/types/components.d.mts +5 -0
  129. package/dist/plugin-alloy/src/types/index.d.cts +2 -0
  130. package/dist/plugin-alloy/src/types/index.d.mts +2 -0
  131. package/dist/plugin-alloy/src/types/plugin.d.cts +38 -0
  132. package/dist/plugin-alloy/src/types/plugin.d.mts +38 -0
  133. package/dist/plugin-alloy/src/typescript/components/builtin-file.cjs +1 -0
  134. package/dist/plugin-alloy/src/typescript/components/builtin-file.mjs +1 -0
  135. package/dist/plugin-alloy/src/typescript/components/dynamic-import-statement.cjs +1 -0
  136. package/dist/plugin-alloy/src/typescript/components/dynamic-import-statement.mjs +1 -0
  137. package/dist/plugin-alloy/src/typescript/components/entry-file.cjs +1 -0
  138. package/dist/plugin-alloy/src/typescript/components/entry-file.mjs +1 -0
  139. package/dist/plugin-alloy/src/typescript/components/index.cjs +1 -0
  140. package/dist/plugin-alloy/src/typescript/components/index.mjs +1 -0
  141. package/dist/plugin-alloy/src/typescript/components/record-expression.cjs +1 -0
  142. package/dist/plugin-alloy/src/typescript/components/record-expression.mjs +1 -0
  143. package/dist/plugin-alloy/src/typescript/components/tsdoc-reflection.cjs +1 -0
  144. package/dist/plugin-alloy/src/typescript/components/tsdoc-reflection.mjs +1 -0
  145. package/dist/plugin-alloy/src/typescript/components/tsdoc.cjs +1 -0
  146. package/dist/plugin-alloy/src/typescript/components/tsdoc.mjs +1 -0
  147. package/dist/plugin-alloy/src/typescript/components/typescript-file.cjs +1 -0
  148. package/dist/plugin-alloy/src/typescript/components/typescript-file.mjs +1 -0
  149. package/dist/plugin-alloy/src/typescript/components/typescript-interface.cjs +1 -0
  150. package/dist/plugin-alloy/src/typescript/components/typescript-interface.mjs +1 -0
  151. package/dist/plugin-alloy/src/typescript/components/typescript-object.cjs +1 -0
  152. package/dist/plugin-alloy/src/typescript/components/typescript-object.mjs +1 -0
  153. package/dist/plugin-alloy/src/typescript/index.cjs +1 -0
  154. package/dist/plugin-alloy/src/typescript/index.mjs +1 -0
  155. package/dist/plugin-automd/src/index.cjs +1 -0
  156. package/dist/plugin-automd/src/index.mjs +1 -0
  157. package/dist/plugin-automd/src/types/plugin.d.cts +38 -0
  158. package/dist/plugin-automd/src/types/plugin.d.mts +40 -0
  159. package/dist/plugin-automd/src/types/toc.d.cts +33 -0
  160. package/dist/plugin-automd/src/types/toc.d.mts +33 -0
  161. package/dist/plugin-babel/src/helpers/ast-utils.cjs +1 -0
  162. package/dist/plugin-babel/src/helpers/ast-utils.mjs +1 -0
  163. package/dist/plugin-babel/src/helpers/create-plugin.cjs +1 -0
  164. package/dist/plugin-babel/src/helpers/create-plugin.mjs +1 -0
  165. package/dist/plugin-babel/src/helpers/filters.cjs +1 -0
  166. package/dist/plugin-babel/src/helpers/filters.mjs +1 -0
  167. package/dist/plugin-babel/src/helpers/index.cjs +1 -0
  168. package/dist/plugin-babel/src/helpers/index.mjs +1 -0
  169. package/dist/plugin-babel/src/helpers/module-helpers.cjs +1 -0
  170. package/dist/plugin-babel/src/helpers/module-helpers.mjs +1 -0
  171. package/dist/plugin-babel/src/helpers/options.cjs +1 -0
  172. package/dist/plugin-babel/src/helpers/options.mjs +1 -0
  173. package/dist/plugin-babel/src/index.cjs +1 -0
  174. package/dist/plugin-babel/src/index.mjs +1 -0
  175. package/dist/plugin-babel/src/types/index.d.mts +1 -0
  176. package/dist/plugin-babel/src/types/plugin.d.cts +15 -0
  177. package/dist/plugin-babel/src/types/plugin.d.mts +15 -0
  178. package/dist/powerlines/src/lib/build/esbuild.cjs +14 -0
  179. package/dist/powerlines/src/lib/build/esbuild.mjs +14 -0
  180. package/dist/powerlines/src/lib/entry.cjs +1 -0
  181. package/dist/powerlines/src/lib/entry.mjs +1 -0
  182. package/dist/powerlines/src/lib/logger.cjs +1 -0
  183. package/dist/powerlines/src/lib/logger.mjs +1 -0
  184. package/dist/powerlines/src/lib/utilities/bundle.cjs +1 -0
  185. package/dist/powerlines/src/lib/utilities/bundle.mjs +1 -0
  186. package/dist/powerlines/src/lib/utilities/file-header.cjs +1 -0
  187. package/dist/powerlines/src/lib/utilities/file-header.mjs +1 -0
  188. package/dist/powerlines/src/lib/utilities/resolve.cjs +1 -0
  189. package/dist/powerlines/src/lib/utilities/resolve.mjs +1 -0
  190. package/dist/powerlines/src/plugin-utils/paths.cjs +1 -0
  191. package/dist/powerlines/src/plugin-utils/paths.mjs +1 -0
  192. package/dist/powerlines/src/types/babel.d.cts +22 -0
  193. package/dist/powerlines/src/types/babel.d.mts +22 -0
  194. package/dist/powerlines/src/types/build.d.cts +145 -0
  195. package/dist/powerlines/src/types/build.d.mts +147 -0
  196. package/dist/powerlines/src/types/commands.d.cts +8 -0
  197. package/dist/powerlines/src/types/commands.d.mts +9 -0
  198. package/dist/powerlines/src/types/config.d.cts +380 -0
  199. package/dist/powerlines/src/types/config.d.mts +381 -0
  200. package/dist/powerlines/src/types/context.d.cts +373 -0
  201. package/dist/powerlines/src/types/context.d.mts +375 -0
  202. package/dist/powerlines/src/types/fs.d.cts +458 -0
  203. package/dist/powerlines/src/types/fs.d.mts +458 -0
  204. package/dist/powerlines/src/types/hooks.d.mts +2 -0
  205. package/dist/powerlines/src/types/plugin.d.cts +231 -0
  206. package/dist/powerlines/src/types/plugin.d.mts +231 -0
  207. package/dist/powerlines/src/types/resolved.d.cts +82 -0
  208. package/dist/powerlines/src/types/resolved.d.mts +83 -0
  209. package/dist/powerlines/src/types/tsconfig.d.cts +69 -0
  210. package/dist/powerlines/src/types/tsconfig.d.mts +69 -0
  211. package/dist/types/index.cjs +0 -1
  212. package/dist/types/index.d.cts +2 -3
  213. package/dist/types/index.d.mts +2 -3
  214. package/dist/types/index.mjs +1 -1
  215. package/dist/types/plugin.cjs +0 -1
  216. package/dist/types/plugin.d.cts +157 -2
  217. package/dist/types/plugin.d.mts +158 -2
  218. package/dist/types/plugin.mjs +1 -1
  219. package/dist/types/runtime.cjs +0 -1
  220. package/dist/types/runtime.d.cts +793 -1
  221. package/dist/types/runtime.d.mts +793 -1
  222. package/dist/types/runtime.mjs +1 -1
  223. package/package.json +10 -19
  224. package/dist/components-ByVHjWXF.mjs +0 -1
  225. package/dist/components-C9bYrQVK.cjs +0 -0
  226. package/dist/create-reflection-resource-B1734Oqz.mjs +0 -17
  227. package/dist/create-reflection-resource-JGnGa1lq.cjs +0 -17
  228. package/dist/docs-B_eQmaOI.mjs +0 -1
  229. package/dist/docs-CKCRAUnO.d.mts +0 -9
  230. package/dist/docs-CdtUw4WA.d.cts +0 -9
  231. package/dist/docs-ChC5Pu1X.cjs +0 -1
  232. package/dist/env-COWzTupf.d.cts +0 -20
  233. package/dist/env-Dco1ouC9.mjs +0 -31
  234. package/dist/env-DqPOEUEu.d.mts +0 -20
  235. package/dist/env-N-X_-s2s.cjs +0 -34
  236. package/dist/index-B_e8BwCm.d.cts +0 -1
  237. package/dist/index-CW2WHUXP.d.mts +0 -1
  238. package/dist/index-DCQ5Y2ED.d.mts +0 -1
  239. package/dist/index-DWPDThxu.d.cts +0 -1
  240. package/dist/plugin-CyRU_Pln.mjs +0 -1
  241. package/dist/plugin-D5qyQPqC.cjs +0 -0
  242. package/dist/runtime-AfBxUosz.d.mts +0 -2499
  243. package/dist/runtime-Bisl_1Ja.cjs +0 -0
  244. package/dist/runtime-g_eXGBBi.mjs +0 -1
  245. package/dist/runtime-rhT2IfSg.d.cts +0 -2497
  246. package/dist/types-DMh7K7VC.mjs +0 -1
  247. package/dist/types-MYBaygjr.cjs +0 -0
@@ -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-AfBxUosz.mjs";
2
- import { Children } from "@alloy-js/core/jsx-runtime";
3
- import { PrintTreeOptions } from "@alloy-js/core";
4
- import "@alloy-js/typescript";
5
- import { Config } from "automd";
6
- import { DotenvParseOutput } from "@stryke/env/types";
7
1
  import * as $ from "@stryke/capnp";
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,263 +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 AlloyPluginUserConfig = UserConfig & {
1599
- alloy?: AlloyPluginOptions;
1600
- };
1601
- type AlloyPluginResolvedConfig = ResolvedConfig & {
1602
- alloy: AlloyPluginOptions;
1603
- };
1604
- type AlloyPluginContext<TResolvedConfig extends AlloyPluginResolvedConfig = AlloyPluginResolvedConfig> = PluginContext<TResolvedConfig> & {
1605
- render: <TContext extends AlloyPluginContext>(this: TContext, children: Children) => Promise<void>;
1606
- };
1607
- //#endregion
1608
- //#region ../plugin-automd/src/types/toc.d.ts
1609
- interface TOCOptions {
1610
- /**
1611
- * A slugify function to generate slugs for the headings.
1612
- */
1613
- slugify?: (str: string) => string;
1614
- /**
1615
- * The maximum depth of headings to include in the TOC.
1616
- *
1617
- * @defaultValue 6
1618
- */
1619
- maxDepth?: number;
1620
- /**
1621
- * Whether to include the first H1 heading in the TOC.
1622
- */
1623
- firstH1?: boolean;
1624
- /**
1625
- * The bullet character to use for list items in the TOC.
1626
- *
1627
- * @defaultValue "-"
1628
- */
1629
- bullets?: string;
1630
- /**
1631
- * A prefix to add to each heading in the TOC.
1632
- */
1633
- prefix?: string;
1634
- /**
1635
- * A filter function to determine which headings to include in the TOC.
1636
- */
1637
- filter?: (str: string, level: number) => boolean;
1638
- }
1639
- //#endregion
1640
- //#region ../plugin-automd/src/types/plugin.d.ts
1641
- type AutoMDPluginOptions = Omit<Config, "dir" | "watch" | "onWatch" | "prefix"> & {
1642
- /**
1643
- * Path to the AutoMD configuration file.
1644
- *
1645
- * @remarks
1646
- * If not provided, the plugin will use the default AutoMD configuration resolution mechanism.
1647
- */
1648
- configFile?: string;
1649
- /**
1650
- * An indicator specifying whether or not issues found by AutoMD during the prepare task are considered fatal.
1651
- *
1652
- * @defaultValue true
1653
- */
1654
- allowIssues?: boolean;
1655
- /**
1656
- * Alternate prefix strings to use for finding generators
1657
- *
1658
- * @remarks
1659
- * 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.
1660
- *
1661
- * @defaultValue ["automd", "powerlines", "\{framework\}"]
1662
- */
1663
- prefix?: string | string[];
1664
- /**
1665
- * Table of Contents generator options
1666
- *
1667
- * @remarks
1668
- * If set to `false`, the built-in Table of Contents generator will be disabled.
1669
- */
1670
- toc?: false | TOCOptions;
1671
- };
1672
- //#endregion
1673
- //#region ../plugin-babel/src/types/plugin.d.ts
1674
- type BabelPluginOptions = Partial<BabelUserConfig>;
1675
- type BabelPluginUserConfig = UserConfig;
1676
- interface BabelPluginResolvedConfig extends ResolvedConfig {
1677
- transform: {
1678
- babel: BabelResolvedConfig;
1679
- };
1680
- }
1681
- type BabelPluginContext<TResolvedConfig extends BabelPluginResolvedConfig = BabelPluginResolvedConfig> = PluginContext<TResolvedConfig>;
1682
- //#endregion
1683
- //#region src/types/plugin.d.ts
1684
- type EnvType = "env" | "secrets";
1685
- type EnvPluginOptions = Omit<DotenvConfiguration, "types"> & {
1686
- /**
1687
- * 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"`.
1688
- */
1689
- types?: TypeDefinitionParameter;
1690
- /**
1691
- * 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"`.
1692
- */
1693
- secrets?: TypeDefinitionParameter;
1694
- /**
1695
- * An additional prefix (or list of additional prefixes) to apply to the environment variables
1696
- *
1697
- * @remarks
1698
- * By default, the plugin will use the `POWERLINES_` prefix. This option is useful for avoiding conflicts with other environment variables.
1699
- */
1700
- prefix?: string | string[];
1701
- /**
1702
- * Should the plugin inject the env variables in the source code with their values?
1703
- *
1704
- * @remarks
1705
- * This option is set to `true` when building an application project.
1706
- *
1707
- * @defaultValue false
1708
- */
1709
- inject?: boolean;
1710
- /**
1711
- * The default configuration to use when loading environment variables.
1712
- *
1713
- * @remarks
1714
- * 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.
1715
- */
1716
- defaultConfig?: Children;
1717
- /**
1718
- * Babel configuration options to use when injecting environment variables into the source code.
1719
- *
1720
- * @remarks
1721
- * 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.
1722
- */
1723
- babel?: BabelPluginOptions;
1724
- /**
1725
- * AutoMD configuration options to allow injecting environment variables documentation into a markdown file such as a README.md.
1726
- *
1727
- * @remarks
1728
- * The README.md file should contain the `<!-- automd:env --><!-- /automd -->` comment block where the documentation will be injected.
1729
- */
1730
- automd?: AutoMDPluginOptions;
1731
- /**
1732
- * Alloy configuration options to use when injecting environment variables into the source code.
1733
- *
1734
- * @remarks
1735
- * This option allows you to customize the Alloy transformation process used to inject environment variables into the source code. If not provided, the plugin will use default Alloy settings.
1736
- */
1737
- alloy?: AlloyPluginOptions;
1738
- };
1739
- type EnvPluginUserConfig = BabelPluginUserConfig & AlloyPluginUserConfig & {
1740
- env: EnvPluginOptions;
1741
- };
1742
- type EnvPluginResolvedConfig = BabelPluginResolvedConfig & AlloyPluginResolvedConfig & {
1743
- env: Required<Pick<DotenvConfiguration, "additionalFiles">> & Required<Pick<EnvPluginOptions, "defaultConfig">> & {
1744
- /**
1745
- * The type definition for the expected env variable parameters
1746
- *
1747
- * @remarks
1748
- * This value is parsed from the {@link EnvPluginOptions.types} option.
1749
- */
1750
- types: TypeDefinition;
1751
- /**
1752
- * The type definition for the expected env secret parameters
1753
- *
1754
- * @remarks
1755
- * This value is parsed from the {@link EnvPluginOptions.secrets} option.
1756
- */
1757
- secrets: TypeDefinition;
1758
- /**
1759
- * Should the plugin inject the env variables in the source code with their values?
1760
- *
1761
- * @remarks
1762
- * This value is the result of reflecting the {@link EnvPluginOptions.inject} option.
1763
- */
1764
- inject: EnvPluginOptions["inject"];
1765
- /**
1766
- * The prefix used for environment variables
1767
- *
1768
- * @remarks
1769
- * This value is used to filter environment variables that are loaded from the .env file and the process environment.
1770
- */
1771
- prefix: string[];
1772
- };
1773
- };
1774
- interface EnvPluginContext<TResolvedConfig extends EnvPluginResolvedConfig = EnvPluginResolvedConfig> extends BabelPluginContext<TResolvedConfig>, AlloyPluginContext<TResolvedConfig> {
1775
- env: {
1776
- /**
1777
- * The type definitions reflection for the env variables and secrets
1778
- *
1779
- * @remarks
1780
- * These reflections contains the structure of the expected environment variables and secrets as defined by the type definitions provided in the plugin configuration.
1781
- */
1782
- types: {
1783
- /**
1784
- * The type definitions for the expected env variables
1785
- */
1786
- env: Reflection;
1787
- /**
1788
- * The type definitions for the expected env secrets
1789
- */
1790
- secrets: Reflection;
1791
- };
1792
- /**
1793
- * The current **used** environment variables and secrets reflection
1794
- *
1795
- * @remarks
1796
- * 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.
1797
- */
1798
- used: {
1799
- /**
1800
- * The current env variables reflection
1801
- */
1802
- env: Reflection<EnvInterface>;
1803
- /**
1804
- * The current env secrets reflection
1805
- */
1806
- secrets: Reflection<SecretsInterface>;
1807
- };
1808
- /**
1809
- * The parsed .env configuration object
1810
- *
1811
- * @remarks
1812
- * 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}
1813
- */
1814
- parsed: DotenvParseOutput;
1815
- /**
1816
- * The injected environment variables and secrets reflection
1817
- *
1818
- * @remarks
1819
- * This reflection contains the structure of the injected environment variables and secrets that were injected into the source code during the build process.
1820
- */
1821
- injected: Reflection;
1822
- };
1823
- }
1824
- declare type __ΩEnvType = any[];
1825
- declare type __ΩEnvPluginOptions = any[];
1826
- declare type __ΩEnvPluginUserConfig = any[];
1827
- declare type __ΩEnvPluginResolvedConfig = any[];
1828
- declare type __ΩEnvPluginContext = any[];
1829
- //#endregion
1830
- 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-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 "@alloy-js/typescript";
6
- import { DotenvConfiguration, TypeDefinition, TypeDefinitionParameter } from "@stryke/types/configuration";
7
- import { Config } from "automd";
8
- import { DotenvParseOutput } from "@stryke/env/types";
9
2
 
10
- //#region rolldown:runtime
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,263 +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 AlloyPluginUserConfig = UserConfig & {
1599
- alloy?: AlloyPluginOptions;
1600
- };
1601
- type AlloyPluginResolvedConfig = ResolvedConfig & {
1602
- alloy: AlloyPluginOptions;
1603
- };
1604
- type AlloyPluginContext<TResolvedConfig extends AlloyPluginResolvedConfig = AlloyPluginResolvedConfig> = PluginContext<TResolvedConfig> & {
1605
- render: <TContext extends AlloyPluginContext>(this: TContext, children: Children$1) => Promise<void>;
1606
- };
1607
- //#endregion
1608
- //#region ../plugin-automd/src/types/toc.d.ts
1609
- interface TOCOptions {
1610
- /**
1611
- * A slugify function to generate slugs for the headings.
1612
- */
1613
- slugify?: (str: string) => string;
1614
- /**
1615
- * The maximum depth of headings to include in the TOC.
1616
- *
1617
- * @defaultValue 6
1618
- */
1619
- maxDepth?: number;
1620
- /**
1621
- * Whether to include the first H1 heading in the TOC.
1622
- */
1623
- firstH1?: boolean;
1624
- /**
1625
- * The bullet character to use for list items in the TOC.
1626
- *
1627
- * @defaultValue "-"
1628
- */
1629
- bullets?: string;
1630
- /**
1631
- * A prefix to add to each heading in the TOC.
1632
- */
1633
- prefix?: string;
1634
- /**
1635
- * A filter function to determine which headings to include in the TOC.
1636
- */
1637
- filter?: (str: string, level: number) => boolean;
1638
- }
1639
- //#endregion
1640
- //#region ../plugin-automd/src/types/plugin.d.ts
1641
- type AutoMDPluginOptions = Omit<Config, "dir" | "watch" | "onWatch" | "prefix"> & {
1642
- /**
1643
- * Path to the AutoMD configuration file.
1644
- *
1645
- * @remarks
1646
- * If not provided, the plugin will use the default AutoMD configuration resolution mechanism.
1647
- */
1648
- configFile?: string;
1649
- /**
1650
- * An indicator specifying whether or not issues found by AutoMD during the prepare task are considered fatal.
1651
- *
1652
- * @defaultValue true
1653
- */
1654
- allowIssues?: boolean;
1655
- /**
1656
- * Alternate prefix strings to use for finding generators
1657
- *
1658
- * @remarks
1659
- * 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.
1660
- *
1661
- * @defaultValue ["automd", "powerlines", "\{framework\}"]
1662
- */
1663
- prefix?: string | string[];
1664
- /**
1665
- * Table of Contents generator options
1666
- *
1667
- * @remarks
1668
- * If set to `false`, the built-in Table of Contents generator will be disabled.
1669
- */
1670
- toc?: false | TOCOptions;
1671
- };
1672
- //#endregion
1673
- //#region ../plugin-babel/src/types/plugin.d.ts
1674
- type BabelPluginOptions = Partial<BabelUserConfig>;
1675
- type BabelPluginUserConfig = UserConfig;
1676
- interface BabelPluginResolvedConfig extends ResolvedConfig {
1677
- transform: {
1678
- babel: BabelResolvedConfig;
1679
- };
1680
- }
1681
- type BabelPluginContext<TResolvedConfig extends BabelPluginResolvedConfig = BabelPluginResolvedConfig> = PluginContext<TResolvedConfig>;
1682
- //#endregion
1683
- //#region src/types/plugin.d.ts
1684
- type EnvType = "env" | "secrets";
1685
- type EnvPluginOptions = Omit<DotenvConfiguration, "types"> & {
1686
- /**
1687
- * 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"`.
1688
- */
1689
- types?: TypeDefinitionParameter;
1690
- /**
1691
- * 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"`.
1692
- */
1693
- secrets?: TypeDefinitionParameter;
1694
- /**
1695
- * An additional prefix (or list of additional prefixes) to apply to the environment variables
1696
- *
1697
- * @remarks
1698
- * By default, the plugin will use the `POWERLINES_` prefix. This option is useful for avoiding conflicts with other environment variables.
1699
- */
1700
- prefix?: string | string[];
1701
- /**
1702
- * Should the plugin inject the env variables in the source code with their values?
1703
- *
1704
- * @remarks
1705
- * This option is set to `true` when building an application project.
1706
- *
1707
- * @defaultValue false
1708
- */
1709
- inject?: boolean;
1710
- /**
1711
- * The default configuration to use when loading environment variables.
1712
- *
1713
- * @remarks
1714
- * 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.
1715
- */
1716
- defaultConfig?: Children$1;
1717
- /**
1718
- * Babel configuration options to use when injecting environment variables into the source code.
1719
- *
1720
- * @remarks
1721
- * 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.
1722
- */
1723
- babel?: BabelPluginOptions;
1724
- /**
1725
- * AutoMD configuration options to allow injecting environment variables documentation into a markdown file such as a README.md.
1726
- *
1727
- * @remarks
1728
- * The README.md file should contain the `<!-- automd:env --><!-- /automd -->` comment block where the documentation will be injected.
1729
- */
1730
- automd?: AutoMDPluginOptions;
1731
- /**
1732
- * Alloy configuration options to use when injecting environment variables into the source code.
1733
- *
1734
- * @remarks
1735
- * This option allows you to customize the Alloy transformation process used to inject environment variables into the source code. If not provided, the plugin will use default Alloy settings.
1736
- */
1737
- alloy?: AlloyPluginOptions;
1738
- };
1739
- type EnvPluginUserConfig = BabelPluginUserConfig & AlloyPluginUserConfig & {
1740
- env: EnvPluginOptions;
1741
- };
1742
- type EnvPluginResolvedConfig = BabelPluginResolvedConfig & AlloyPluginResolvedConfig & {
1743
- env: Required<Pick<DotenvConfiguration, "additionalFiles">> & Required<Pick<EnvPluginOptions, "defaultConfig">> & {
1744
- /**
1745
- * The type definition for the expected env variable parameters
1746
- *
1747
- * @remarks
1748
- * This value is parsed from the {@link EnvPluginOptions.types} option.
1749
- */
1750
- types: TypeDefinition;
1751
- /**
1752
- * The type definition for the expected env secret parameters
1753
- *
1754
- * @remarks
1755
- * This value is parsed from the {@link EnvPluginOptions.secrets} option.
1756
- */
1757
- secrets: TypeDefinition;
1758
- /**
1759
- * Should the plugin inject the env variables in the source code with their values?
1760
- *
1761
- * @remarks
1762
- * This value is the result of reflecting the {@link EnvPluginOptions.inject} option.
1763
- */
1764
- inject: EnvPluginOptions["inject"];
1765
- /**
1766
- * The prefix used for environment variables
1767
- *
1768
- * @remarks
1769
- * This value is used to filter environment variables that are loaded from the .env file and the process environment.
1770
- */
1771
- prefix: string[];
1772
- };
1773
- };
1774
- interface EnvPluginContext<TResolvedConfig extends EnvPluginResolvedConfig = EnvPluginResolvedConfig> extends BabelPluginContext<TResolvedConfig>, AlloyPluginContext<TResolvedConfig> {
1775
- env: {
1776
- /**
1777
- * The type definitions reflection for the env variables and secrets
1778
- *
1779
- * @remarks
1780
- * These reflections contains the structure of the expected environment variables and secrets as defined by the type definitions provided in the plugin configuration.
1781
- */
1782
- types: {
1783
- /**
1784
- * The type definitions for the expected env variables
1785
- */
1786
- env: Reflection;
1787
- /**
1788
- * The type definitions for the expected env secrets
1789
- */
1790
- secrets: Reflection;
1791
- };
1792
- /**
1793
- * The current **used** environment variables and secrets reflection
1794
- *
1795
- * @remarks
1796
- * 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.
1797
- */
1798
- used: {
1799
- /**
1800
- * The current env variables reflection
1801
- */
1802
- env: Reflection<EnvInterface>;
1803
- /**
1804
- * The current env secrets reflection
1805
- */
1806
- secrets: Reflection<SecretsInterface>;
1807
- };
1808
- /**
1809
- * The parsed .env configuration object
1810
- *
1811
- * @remarks
1812
- * 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}
1813
- */
1814
- parsed: DotenvParseOutput;
1815
- /**
1816
- * The injected environment variables and secrets reflection
1817
- *
1818
- * @remarks
1819
- * This reflection contains the structure of the injected environment variables and secrets that were injected into the source code during the build process.
1820
- */
1821
- injected: Reflection;
1822
- };
1823
- }
1824
- declare type __ΩEnvType = any[];
1825
- declare type __ΩEnvPluginOptions = any[];
1826
- declare type __ΩEnvPluginUserConfig = any[];
1827
- declare type __ΩEnvPluginResolvedConfig = any[];
1828
- declare type __ΩEnvPluginContext = any[];
1829
- //#endregion
1830
- 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 };