@powerlines/plugin-env 0.15.122 → 0.15.124

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 (219) hide show
  1. package/dist/babel/plugin.cjs +11 -11
  2. package/dist/babel/plugin.d.cts +2 -2
  3. package/dist/babel/plugin.d.mts +2 -3
  4. package/dist/babel/plugin.mjs +5 -5
  5. package/dist/components/docs.cjs +6 -6
  6. package/dist/components/docs.d.cts +1 -1
  7. package/dist/components/docs.d.mts +1 -1
  8. package/dist/components/docs.mjs +3 -3
  9. package/dist/components/env.cjs +40 -40
  10. package/dist/components/env.d.cts +2 -2
  11. package/dist/components/env.d.mts +2 -2
  12. package/dist/components/env.mjs +11 -11
  13. package/dist/helpers/automd-generator.cjs +2 -2
  14. package/dist/helpers/automd-generator.d.cts +1 -1
  15. package/dist/helpers/automd-generator.d.mts +1 -1
  16. package/dist/helpers/automd-generator.mjs +1 -1
  17. package/dist/helpers/load.cjs +7 -7
  18. package/dist/helpers/load.mjs +8 -8
  19. package/dist/helpers/persistence.cjs +23 -23
  20. package/dist/helpers/persistence.d.cts +1 -1
  21. package/dist/helpers/persistence.d.mts +1 -1
  22. package/dist/helpers/persistence.mjs +5 -5
  23. package/dist/helpers/reflect.cjs +5 -5
  24. package/dist/helpers/reflect.mjs +1 -1
  25. package/dist/helpers/source-file-env.cjs +1 -1
  26. package/dist/helpers/source-file-env.mjs +1 -1
  27. package/dist/index.cjs +13 -10
  28. package/dist/index.d.cts +1 -1
  29. package/dist/index.d.mts +1 -1
  30. package/dist/index.mjs +12 -12
  31. package/dist/types/plugin.cjs +19 -18
  32. package/dist/types/plugin.d.cts +5 -6
  33. package/dist/types/plugin.d.mts +4 -6
  34. package/dist/types/plugin.mjs +4 -4
  35. package/package.json +7 -7
  36. package/dist/deepkit/schemas/reflection.cjs +0 -5426
  37. package/dist/deepkit/schemas/reflection.d.cts +0 -1560
  38. package/dist/deepkit/schemas/reflection.d.mts +0 -1560
  39. package/dist/deepkit/schemas/reflection.mjs +0 -5423
  40. package/dist/deepkit/schemas/reflection2.cjs +0 -4112
  41. package/dist/deepkit/schemas/reflection2.mjs +0 -4110
  42. package/dist/deepkit/src/capnp.cjs +0 -1692
  43. package/dist/deepkit/src/capnp.mjs +0 -1690
  44. package/dist/deepkit/src/esbuild-plugin.cjs +0 -99
  45. package/dist/deepkit/src/esbuild-plugin.mjs +0 -98
  46. package/dist/deepkit/src/reflect-type.cjs +0 -40
  47. package/dist/deepkit/src/reflect-type.mjs +0 -38
  48. package/dist/deepkit/src/resolve-reflections.cjs +0 -23
  49. package/dist/deepkit/src/resolve-reflections.mjs +0 -22
  50. package/dist/deepkit/src/transformer.cjs +0 -92
  51. package/dist/deepkit/src/transformer.mjs +0 -89
  52. package/dist/deepkit/src/transpile.cjs +0 -39
  53. package/dist/deepkit/src/transpile.mjs +0 -37
  54. package/dist/deepkit/src/types.cjs +0 -22
  55. package/dist/deepkit/src/types.d.cts +0 -10
  56. package/dist/deepkit/src/types.d.mts +0 -10
  57. package/dist/deepkit/src/types.mjs +0 -21
  58. package/dist/deepkit/src/utilities.cjs +0 -184
  59. package/dist/deepkit/src/utilities.mjs +0 -183
  60. package/dist/plugin-alloy/src/core/components/output.cjs +0 -43
  61. package/dist/plugin-alloy/src/core/components/output.mjs +0 -42
  62. package/dist/plugin-alloy/src/core/components/single-line-comment.cjs +0 -22
  63. package/dist/plugin-alloy/src/core/components/single-line-comment.mjs +0 -21
  64. package/dist/plugin-alloy/src/core/components/source-file.cjs +0 -64
  65. package/dist/plugin-alloy/src/core/components/source-file.d.cts +0 -23
  66. package/dist/plugin-alloy/src/core/components/source-file.d.mts +0 -23
  67. package/dist/plugin-alloy/src/core/components/source-file.mjs +0 -62
  68. package/dist/plugin-alloy/src/core/contexts/context.cjs +0 -134
  69. package/dist/plugin-alloy/src/core/contexts/context.mjs +0 -126
  70. package/dist/plugin-alloy/src/core/contexts/index.cjs +0 -2
  71. package/dist/plugin-alloy/src/core/contexts/index.mjs +0 -4
  72. package/dist/plugin-alloy/src/core/contexts/reflection.cjs +0 -110
  73. package/dist/plugin-alloy/src/core/contexts/reflection.mjs +0 -101
  74. package/dist/plugin-alloy/src/helpers/refkey.cjs +0 -23
  75. package/dist/plugin-alloy/src/helpers/refkey.mjs +0 -22
  76. package/dist/plugin-alloy/src/index.cjs +0 -105
  77. package/dist/plugin-alloy/src/index.mjs +0 -103
  78. package/dist/plugin-alloy/src/markdown/components/markdown-file.cjs +0 -115
  79. package/dist/plugin-alloy/src/markdown/components/markdown-file.d.cts +0 -8
  80. package/dist/plugin-alloy/src/markdown/components/markdown-file.d.mts +0 -8
  81. package/dist/plugin-alloy/src/markdown/components/markdown-file.mjs +0 -114
  82. package/dist/plugin-alloy/src/markdown/components/markdown-table.cjs +0 -39
  83. package/dist/plugin-alloy/src/markdown/components/markdown-table.mjs +0 -38
  84. package/dist/plugin-alloy/src/markdown/contexts/markdown-table.cjs +0 -72
  85. package/dist/plugin-alloy/src/markdown/contexts/markdown-table.mjs +0 -71
  86. package/dist/plugin-alloy/src/types/components.cjs +0 -22
  87. package/dist/plugin-alloy/src/types/components.d.cts +0 -20
  88. package/dist/plugin-alloy/src/types/components.d.mts +0 -21
  89. package/dist/plugin-alloy/src/types/components.mjs +0 -21
  90. package/dist/plugin-alloy/src/types/index.d.cts +0 -2
  91. package/dist/plugin-alloy/src/types/index.d.mts +0 -2
  92. package/dist/plugin-alloy/src/types/plugin.cjs +0 -53
  93. package/dist/plugin-alloy/src/types/plugin.d.cts +0 -36
  94. package/dist/plugin-alloy/src/types/plugin.d.mts +0 -36
  95. package/dist/plugin-alloy/src/types/plugin.mjs +0 -50
  96. package/dist/plugin-alloy/src/typescript/components/builtin-file.cjs +0 -62
  97. package/dist/plugin-alloy/src/typescript/components/builtin-file.d.cts +0 -26
  98. package/dist/plugin-alloy/src/typescript/components/builtin-file.d.mts +0 -26
  99. package/dist/plugin-alloy/src/typescript/components/builtin-file.mjs +0 -61
  100. package/dist/plugin-alloy/src/typescript/components/tsdoc-reflection.cjs +0 -131
  101. package/dist/plugin-alloy/src/typescript/components/tsdoc-reflection.mjs +0 -129
  102. package/dist/plugin-alloy/src/typescript/components/tsdoc.cjs +0 -451
  103. package/dist/plugin-alloy/src/typescript/components/tsdoc.d.cts +0 -37
  104. package/dist/plugin-alloy/src/typescript/components/tsdoc.d.mts +0 -37
  105. package/dist/plugin-alloy/src/typescript/components/tsdoc.mjs +0 -442
  106. package/dist/plugin-alloy/src/typescript/components/typescript-file.cjs +0 -216
  107. package/dist/plugin-alloy/src/typescript/components/typescript-file.d.cts +0 -16
  108. package/dist/plugin-alloy/src/typescript/components/typescript-file.d.mts +0 -16
  109. package/dist/plugin-alloy/src/typescript/components/typescript-file.mjs +0 -213
  110. package/dist/plugin-alloy/src/typescript/components/typescript-interface.cjs +0 -72
  111. package/dist/plugin-alloy/src/typescript/components/typescript-interface.d.cts +0 -12
  112. package/dist/plugin-alloy/src/typescript/components/typescript-interface.d.mts +0 -12
  113. package/dist/plugin-alloy/src/typescript/components/typescript-interface.mjs +0 -71
  114. package/dist/plugin-alloy/src/typescript/components/typescript-object.cjs +0 -124
  115. package/dist/plugin-alloy/src/typescript/components/typescript-object.mjs +0 -123
  116. package/dist/plugin-automd/src/index.cjs +0 -127
  117. package/dist/plugin-automd/src/index.mjs +0 -124
  118. package/dist/plugin-automd/src/types/plugin.cjs +0 -47
  119. package/dist/plugin-automd/src/types/plugin.d.cts +0 -38
  120. package/dist/plugin-automd/src/types/plugin.d.mts +0 -40
  121. package/dist/plugin-automd/src/types/plugin.mjs +0 -47
  122. package/dist/plugin-automd/src/types/toc.cjs +0 -26
  123. package/dist/plugin-automd/src/types/toc.d.cts +0 -33
  124. package/dist/plugin-automd/src/types/toc.d.mts +0 -33
  125. package/dist/plugin-automd/src/types/toc.mjs +0 -25
  126. package/dist/plugin-babel/src/helpers/ast-utils.cjs +0 -74
  127. package/dist/plugin-babel/src/helpers/ast-utils.mjs +0 -70
  128. package/dist/plugin-babel/src/helpers/create-plugin.cjs +0 -71
  129. package/dist/plugin-babel/src/helpers/create-plugin.mjs +0 -69
  130. package/dist/plugin-babel/src/helpers/filters.cjs +0 -158
  131. package/dist/plugin-babel/src/helpers/filters.mjs +0 -154
  132. package/dist/plugin-babel/src/helpers/index.cjs +0 -5
  133. package/dist/plugin-babel/src/helpers/index.mjs +0 -7
  134. package/dist/plugin-babel/src/helpers/module-helpers.cjs +0 -200
  135. package/dist/plugin-babel/src/helpers/module-helpers.mjs +0 -192
  136. package/dist/plugin-babel/src/helpers/options.cjs +0 -73
  137. package/dist/plugin-babel/src/helpers/options.mjs +0 -70
  138. package/dist/plugin-babel/src/index.cjs +0 -125
  139. package/dist/plugin-babel/src/index.mjs +0 -123
  140. package/dist/plugin-babel/src/types/index.d.mts +0 -1
  141. package/dist/plugin-babel/src/types/plugin.cjs +0 -42
  142. package/dist/plugin-babel/src/types/plugin.d.cts +0 -15
  143. package/dist/plugin-babel/src/types/plugin.d.mts +0 -15
  144. package/dist/plugin-babel/src/types/plugin.mjs +0 -39
  145. package/dist/powerlines/src/internal/helpers/hooks.cjs +0 -136
  146. package/dist/powerlines/src/internal/helpers/hooks.d.cts +0 -47
  147. package/dist/powerlines/src/internal/helpers/hooks.d.mts +0 -49
  148. package/dist/powerlines/src/internal/helpers/hooks.mjs +0 -134
  149. package/dist/powerlines/src/lib/build/esbuild.cjs +0 -142
  150. package/dist/powerlines/src/lib/build/esbuild.mjs +0 -140
  151. package/dist/powerlines/src/lib/constants/environments.cjs +0 -6
  152. package/dist/powerlines/src/lib/constants/environments.mjs +0 -5
  153. package/dist/powerlines/src/lib/entry.cjs +0 -195
  154. package/dist/powerlines/src/lib/entry.mjs +0 -194
  155. package/dist/powerlines/src/lib/logger.cjs +0 -108
  156. package/dist/powerlines/src/lib/logger.mjs +0 -106
  157. package/dist/powerlines/src/lib/unplugin/helpers.cjs +0 -41
  158. package/dist/powerlines/src/lib/unplugin/helpers.mjs +0 -40
  159. package/dist/powerlines/src/lib/unplugin/module-resolution.cjs +0 -98
  160. package/dist/powerlines/src/lib/unplugin/module-resolution.mjs +0 -97
  161. package/dist/powerlines/src/lib/unplugin/plugin.cjs +0 -139
  162. package/dist/powerlines/src/lib/unplugin/plugin.mjs +0 -138
  163. package/dist/powerlines/src/lib/utilities/bundle.cjs +0 -74
  164. package/dist/powerlines/src/lib/utilities/bundle.mjs +0 -72
  165. package/dist/powerlines/src/lib/utilities/resolve.cjs +0 -69
  166. package/dist/powerlines/src/lib/utilities/resolve.mjs +0 -68
  167. package/dist/powerlines/src/lib/utilities/source-file.cjs +0 -68
  168. package/dist/powerlines/src/lib/utilities/source-file.mjs +0 -66
  169. package/dist/powerlines/src/plugin-utils/paths.cjs +0 -46
  170. package/dist/powerlines/src/plugin-utils/paths.mjs +0 -45
  171. package/dist/powerlines/src/types/api.cjs +0 -62
  172. package/dist/powerlines/src/types/api.d.cts +0 -104
  173. package/dist/powerlines/src/types/api.d.mts +0 -104
  174. package/dist/powerlines/src/types/api.mjs +0 -62
  175. package/dist/powerlines/src/types/babel.cjs +0 -156
  176. package/dist/powerlines/src/types/babel.d.cts +0 -23
  177. package/dist/powerlines/src/types/babel.d.mts +0 -23
  178. package/dist/powerlines/src/types/babel.mjs +0 -147
  179. package/dist/powerlines/src/types/build.cjs +0 -127
  180. package/dist/powerlines/src/types/build.d.cts +0 -185
  181. package/dist/powerlines/src/types/build.d.mts +0 -185
  182. package/dist/powerlines/src/types/build.mjs +0 -121
  183. package/dist/powerlines/src/types/commands.cjs +0 -16
  184. package/dist/powerlines/src/types/commands.d.cts +0 -8
  185. package/dist/powerlines/src/types/commands.d.mts +0 -9
  186. package/dist/powerlines/src/types/commands.mjs +0 -15
  187. package/dist/powerlines/src/types/config.cjs +0 -420
  188. package/dist/powerlines/src/types/config.d.cts +0 -435
  189. package/dist/powerlines/src/types/config.d.mts +0 -436
  190. package/dist/powerlines/src/types/config.mjs +0 -397
  191. package/dist/powerlines/src/types/context.cjs +0 -388
  192. package/dist/powerlines/src/types/context.d.cts +0 -514
  193. package/dist/powerlines/src/types/context.d.mts +0 -514
  194. package/dist/powerlines/src/types/context.mjs +0 -371
  195. package/dist/powerlines/src/types/fs.cjs +0 -78
  196. package/dist/powerlines/src/types/fs.d.cts +0 -486
  197. package/dist/powerlines/src/types/fs.d.mts +0 -486
  198. package/dist/powerlines/src/types/fs.mjs +0 -75
  199. package/dist/powerlines/src/types/hooks.cjs +0 -71
  200. package/dist/powerlines/src/types/hooks.d.cts +0 -32
  201. package/dist/powerlines/src/types/hooks.d.mts +0 -32
  202. package/dist/powerlines/src/types/hooks.mjs +0 -68
  203. package/dist/powerlines/src/types/index.cjs +0 -11
  204. package/dist/powerlines/src/types/index.d.mts +0 -12
  205. package/dist/powerlines/src/types/index.mjs +0 -13
  206. package/dist/powerlines/src/types/plugin.cjs +0 -184
  207. package/dist/powerlines/src/types/plugin.d.cts +0 -205
  208. package/dist/powerlines/src/types/plugin.d.mts +0 -205
  209. package/dist/powerlines/src/types/plugin.mjs +0 -178
  210. package/dist/powerlines/src/types/resolved.cjs +0 -149
  211. package/dist/powerlines/src/types/resolved.d.cts +0 -94
  212. package/dist/powerlines/src/types/resolved.d.mts +0 -94
  213. package/dist/powerlines/src/types/resolved.mjs +0 -144
  214. package/dist/powerlines/src/types/tsconfig.d.cts +0 -69
  215. package/dist/powerlines/src/types/tsconfig.d.mts +0 -69
  216. package/dist/powerlines/src/types/unplugin.cjs +0 -64
  217. package/dist/powerlines/src/types/unplugin.d.cts +0 -22
  218. package/dist/powerlines/src/types/unplugin.d.mts +0 -23
  219. package/dist/powerlines/src/types/unplugin.mjs +0 -62
@@ -1,18 +1,18 @@
1
1
  const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
2
2
  const require_types_plugin = require('../types/plugin.cjs');
3
- const require_utilities = require('../deepkit/src/utilities.cjs');
4
- const require_babel = require('../powerlines/src/types/babel.cjs');
5
- const require_create_plugin = require('../plugin-babel/src/helpers/create-plugin.cjs');
6
- const require_module_helpers = require('../plugin-babel/src/helpers/module-helpers.cjs');
7
- let __storm_software_config_tools_types = require("@storm-software/config-tools/types");
3
+ let powerlines_types_babel = require("powerlines/types/babel");
8
4
  let __babel_core = require("@babel/core");
5
+ let __powerlines_deepkit_utilities = require("@powerlines/deepkit/utilities");
6
+ let __powerlines_plugin_babel_helpers_create_plugin = require("@powerlines/plugin-babel/helpers/create-plugin");
7
+ let __powerlines_plugin_babel_helpers_module_helpers = require("@powerlines/plugin-babel/helpers/module-helpers");
8
+ let __storm_software_config_tools_types = require("@storm-software/config-tools/types");
9
9
 
10
10
  //#region src/babel/plugin.ts
11
11
  function __assignType(fn, args) {
12
12
  fn.__type = args;
13
13
  return fn;
14
14
  }
15
- const envBabelPlugin = (require_create_plugin.createBabelPlugin.Ω = [[() => require_types_plugin.__ΩEnvPluginContext, "n!"]], require_create_plugin.createBabelPlugin("env", __assignType(({ log, context }) => {
15
+ const envBabelPlugin = (__powerlines_plugin_babel_helpers_create_plugin.createBabelPlugin.Ω = [[() => require_types_plugin.__ΩEnvPluginContext, "n!"]], (0, __powerlines_plugin_babel_helpers_create_plugin.createBabelPlugin)("env", __assignType(({ log, context }) => {
16
16
  function extractEnv(node, pass, isInjectable = false) {
17
17
  const envTypesAliasProperties = context.env.types.env?.getProperties().filter(__assignType((prop) => prop.getAlias().length > 0, [
18
18
  "prop",
@@ -61,7 +61,7 @@ const envBabelPlugin = (require_create_plugin.createBabelPlugin.Ω = [[() => req
61
61
  }
62
62
  value ??= envProperty.getDefaultValue();
63
63
  if (envProperty.isValueRequired() && value === void 0) throw new Error(`Environment variable \`${name}\` is not defined in the .env configuration files`);
64
- return require_utilities.stringifyDefaultValue(envProperty, value);
64
+ return (0, __powerlines_deepkit_utilities.stringifyDefaultValue)(envProperty, value);
65
65
  }
66
66
  } else throw new Error(`The "${name}" environment variable is not defined in the \`env\` type definition, but is used in the source code file ${pass.filename ? pass.filename : "unknown"}.
67
67
 
@@ -91,7 +91,7 @@ const envBabelPlugin = (require_create_plugin.createBabelPlugin.Ω = [[() => req
91
91
  }
92
92
  extractEnv.__type = [
93
93
  "node",
94
- () => require_babel.__ΩBabelPluginPass,
94
+ () => powerlines_types_babel.__ΩBabelPluginPass,
95
95
  "pass",
96
96
  "isInjectable",
97
97
  "extractEnv",
@@ -103,7 +103,7 @@ const envBabelPlugin = (require_create_plugin.createBabelPlugin.Ω = [[() => req
103
103
  if (!identifier.name) return;
104
104
  extractEnv(identifier, pass, false);
105
105
  path.replaceWithSourceString(`env.${identifier.name}`);
106
- require_module_helpers.addImport(path, {
106
+ (0, __powerlines_plugin_babel_helpers_module_helpers.addImport)(path, {
107
107
  module: `${context.config.framework || "powerlines"}:env`,
108
108
  name: "env",
109
109
  imported: "env"
@@ -113,7 +113,7 @@ const envBabelPlugin = (require_create_plugin.createBabelPlugin.Ω = [[() => req
113
113
  if (!identifier.name) return;
114
114
  extractEnv(identifier, pass, false);
115
115
  path.replaceWithSourceString(`env.${identifier.name}`);
116
- require_module_helpers.addImport(path, {
116
+ (0, __powerlines_plugin_babel_helpers_module_helpers.addImport)(path, {
117
117
  module: `${context.config.framework || "powerlines"}:env`,
118
118
  name: "env",
119
119
  imported: "env"
@@ -126,7 +126,7 @@ const envBabelPlugin = (require_create_plugin.createBabelPlugin.Ω = [[() => req
126
126
  }, [
127
127
  () => __babel_core.NodePath,
128
128
  "path",
129
- () => require_babel.__ΩBabelPluginPass,
129
+ () => powerlines_types_babel.__ΩBabelPluginPass,
130
130
  "pass",
131
131
  "MemberExpression",
132
132
  "PP!7!2\"n#2$\"/%"
@@ -1,8 +1,8 @@
1
- import { DeclareBabelTransformPluginReturn } from "../powerlines/src/types/babel.cjs";
2
1
  import { EnvPluginContext, EnvPluginResolvedConfig } from "../types/plugin.cjs";
3
2
  import "../index.cjs";
3
+ import * as powerlines_types0 from "powerlines/types";
4
4
 
5
5
  //#region src/babel/plugin.d.ts
6
- declare const envBabelPlugin: DeclareBabelTransformPluginReturn<EnvPluginContext<EnvPluginResolvedConfig>, Record<string, any>>;
6
+ declare const envBabelPlugin: powerlines_types0.DeclareBabelTransformPluginReturn<EnvPluginContext<EnvPluginResolvedConfig>, Record<string, any>>;
7
7
  //#endregion
8
8
  export { envBabelPlugin };
@@ -1,9 +1,8 @@
1
- import { DeclareBabelTransformPluginReturn } from "../powerlines/src/types/babel.mjs";
2
1
  import { EnvPluginContext, EnvPluginResolvedConfig } from "../types/plugin.mjs";
3
2
  import "../index.mjs";
4
- import "../powerlines/src/types/index.mjs";
3
+ import * as powerlines_types0 from "powerlines/types";
5
4
 
6
5
  //#region src/babel/plugin.d.ts
7
- declare const envBabelPlugin: DeclareBabelTransformPluginReturn<EnvPluginContext<EnvPluginResolvedConfig>, Record<string, any>>;
6
+ declare const envBabelPlugin: powerlines_types0.DeclareBabelTransformPluginReturn<EnvPluginContext<EnvPluginResolvedConfig>, Record<string, any>>;
8
7
  //#endregion
9
8
  export { envBabelPlugin };
@@ -1,10 +1,10 @@
1
1
  import { __ΩEnvPluginContext } from "../types/plugin.mjs";
2
- import { stringifyDefaultValue } from "../deepkit/src/utilities.mjs";
3
- import { __ΩBabelPluginPass } from "../powerlines/src/types/babel.mjs";
4
- import { createBabelPlugin } from "../plugin-babel/src/helpers/create-plugin.mjs";
5
- import { addImport } from "../plugin-babel/src/helpers/module-helpers.mjs";
6
- import { LogLevelLabel } from "@storm-software/config-tools/types";
2
+ import { __ΩBabelPluginPass } from "powerlines/types/babel";
7
3
  import { NodePath } from "@babel/core";
4
+ import { stringifyDefaultValue } from "@powerlines/deepkit/utilities";
5
+ import { createBabelPlugin } from "@powerlines/plugin-babel/helpers/create-plugin";
6
+ import { addImport } from "@powerlines/plugin-babel/helpers/module-helpers";
7
+ import { LogLevelLabel } from "@storm-software/config-tools/types";
8
8
 
9
9
  //#region src/babel/plugin.ts
10
10
  function __assignType(fn, args) {
@@ -1,14 +1,14 @@
1
1
  const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
2
2
  const require_helpers_create_reflection_resource = require('../helpers/create-reflection-resource.cjs');
3
3
  const require_helpers_docs_helper = require('../helpers/docs-helper.cjs');
4
- const require_context = require('../plugin-alloy/src/core/contexts/context.cjs');
5
- const require_markdown_file = require('../plugin-alloy/src/markdown/components/markdown-file.cjs');
6
- const require_markdown_table = require('../plugin-alloy/src/markdown/components/markdown-table.cjs');
7
4
  let __powerlines_deepkit_vendor_type = require("@powerlines/deepkit/vendor/type");
8
5
  let __alloy_js_core = require("@alloy-js/core");
9
6
  let __stryke_path_join = require("@stryke/path/join");
10
7
  let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
11
8
  let __alloy_js_markdown = require("@alloy-js/markdown");
9
+ let __powerlines_plugin_alloy_core_contexts_context = require("@powerlines/plugin-alloy/core/contexts/context");
10
+ let __powerlines_plugin_alloy_markdown_components_markdown_file = require("@powerlines/plugin-alloy/markdown/components/markdown-file");
11
+ let __powerlines_plugin_alloy_markdown_components_markdown_table = require("@powerlines/plugin-alloy/markdown/components/markdown-table");
12
12
 
13
13
  //#region src/components/docs.tsx
14
14
  /**
@@ -16,10 +16,10 @@ let __alloy_js_markdown = require("@alloy-js/markdown");
16
16
  */
17
17
  function EnvDocsFile(props) {
18
18
  const { levelOffset = 0, ...rest } = props;
19
- const context = require_context.usePowerlinesSafe();
19
+ const context = (0, __powerlines_plugin_alloy_core_contexts_context.usePowerlinesSafe)();
20
20
  if (!context) return null;
21
21
  const reflection = require_helpers_create_reflection_resource.createReflectionResource(context);
22
- return (0, __alloy_js_core_jsx_runtime.createComponent)(require_markdown_file.MarkdownFile, (0, __alloy_js_core_jsx_runtime.mergeProps)({ get path() {
22
+ return (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_markdown_components_markdown_file.MarkdownFile, (0, __alloy_js_core_jsx_runtime.mergeProps)({ get path() {
23
23
  return (0, __stryke_path_join.joinPaths)(require_helpers_docs_helper.getDocsOutputPath(context), "env.md");
24
24
  } }, rest, { get children() {
25
25
  return [
@@ -51,7 +51,7 @@ function EnvDocsFile(props) {
51
51
  }),
52
52
  __alloy_js_core.code`The below list of environment variables are used as configuration parameters to drive the processing of the application. The data contained in these variables are **not** considered sensitive or confidential. Any values provided in these variables will be available in plain text to the public.`,
53
53
  (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
54
- (0, __alloy_js_core_jsx_runtime.createComponent)(require_markdown_table.MarkdownTable, { get data() {
54
+ (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_markdown_components_markdown_table.MarkdownTable, { get data() {
55
55
  return reflection.data?.getProperties().filter((property) => property.getNameAsString() !== "__STORM_INJECTED__").sort((a, b) => a.getNameAsString().localeCompare(b.getNameAsString())).map((reflectionProperty) => {
56
56
  return {
57
57
  name: reflectionProperty.getNameAsString().trim(),
@@ -1,5 +1,5 @@
1
- import { MarkdownFileProps } from "../plugin-alloy/src/markdown/components/markdown-file.cjs";
2
1
  import * as _alloy_js_core0 from "@alloy-js/core";
2
+ import { MarkdownFileProps } from "@powerlines/plugin-alloy/markdown/components/markdown-file";
3
3
 
4
4
  //#region src/components/docs.d.ts
5
5
  interface EnvDocsFileProps extends Partial<MarkdownFileProps> {
@@ -1,5 +1,5 @@
1
- import { MarkdownFileProps } from "../plugin-alloy/src/markdown/components/markdown-file.mjs";
2
1
  import * as _alloy_js_core0 from "@alloy-js/core";
2
+ import { MarkdownFileProps } from "@powerlines/plugin-alloy/markdown/components/markdown-file";
3
3
 
4
4
  //#region src/components/docs.d.ts
5
5
  interface EnvDocsFileProps extends Partial<MarkdownFileProps> {
@@ -1,13 +1,13 @@
1
1
  import { createReflectionResource } from "../helpers/create-reflection-resource.mjs";
2
2
  import { getDocsOutputPath } from "../helpers/docs-helper.mjs";
3
- import { usePowerlinesSafe } from "../plugin-alloy/src/core/contexts/context.mjs";
4
- import { MarkdownFile } from "../plugin-alloy/src/markdown/components/markdown-file.mjs";
5
- import { MarkdownTable } from "../plugin-alloy/src/markdown/components/markdown-table.mjs";
6
3
  import { stringifyType } from "@powerlines/deepkit/vendor/type";
7
4
  import { Show, code } from "@alloy-js/core";
8
5
  import { joinPaths } from "@stryke/path/join";
9
6
  import { createComponent, createIntrinsic, mergeProps } from "@alloy-js/core/jsx-runtime";
10
7
  import { Heading, Link } from "@alloy-js/markdown";
8
+ import { usePowerlinesSafe } from "@powerlines/plugin-alloy/core/contexts/context";
9
+ import { MarkdownFile } from "@powerlines/plugin-alloy/markdown/components/markdown-file";
10
+ import { MarkdownTable } from "@powerlines/plugin-alloy/markdown/components/markdown-table";
11
11
 
12
12
  //#region src/components/docs.tsx
13
13
  /**
@@ -1,19 +1,19 @@
1
1
  const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
2
2
  const require_helpers_load = require('../helpers/load.cjs');
3
3
  const require_helpers_create_reflection_resource = require('../helpers/create-reflection-resource.cjs');
4
- const require_context = require('../plugin-alloy/src/core/contexts/context.cjs');
5
- const require_refkey = require('../plugin-alloy/src/helpers/refkey.cjs');
6
- const require_tsdoc = require('../plugin-alloy/src/typescript/components/tsdoc.cjs');
7
- const require_builtin_file = require('../plugin-alloy/src/typescript/components/builtin-file.cjs');
8
- const require_typescript_interface = require('../plugin-alloy/src/typescript/components/typescript-interface.cjs');
9
- const require_typescript_object = require('../plugin-alloy/src/typescript/components/typescript-object.cjs');
10
4
  let __powerlines_deepkit_vendor_type = require("@powerlines/deepkit/vendor/type");
11
5
  let __stryke_string_format_title_case = require("@stryke/string-format/title-case");
12
6
  let defu = require("defu");
13
7
  defu = require_rolldown_runtime.__toESM(defu);
14
8
  let __alloy_js_core = require("@alloy-js/core");
15
9
  let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
10
+ let __powerlines_plugin_alloy_core_contexts_context = require("@powerlines/plugin-alloy/core/contexts/context");
16
11
  let __alloy_js_typescript = require("@alloy-js/typescript");
12
+ let __powerlines_plugin_alloy_helpers_refkey = require("@powerlines/plugin-alloy/helpers/refkey");
13
+ let __powerlines_plugin_alloy_typescript_components_builtin_file = require("@powerlines/plugin-alloy/typescript/components/builtin-file");
14
+ let __powerlines_plugin_alloy_typescript_components_tsdoc = require("@powerlines/plugin-alloy/typescript/components/tsdoc");
15
+ let __powerlines_plugin_alloy_typescript_components_typescript_interface = require("@powerlines/plugin-alloy/typescript/components/typescript-interface");
16
+ let __powerlines_plugin_alloy_typescript_components_typescript_object = require("@powerlines/plugin-alloy/typescript/components/typescript-object");
17
17
  let __stryke_type_checks_is_null = require("@stryke/type-checks/is-null");
18
18
 
19
19
  //#region src/components/env.tsx
@@ -22,10 +22,10 @@ let __stryke_type_checks_is_null = require("@stryke/type-checks/is-null");
22
22
  */
23
23
  function EnvTypeDefinition(props) {
24
24
  const [{ defaultValue, reflection }] = (0, __alloy_js_core.splitProps)(props, ["defaultValue", "reflection"]);
25
- const context = require_context.usePowerlinesSafe();
25
+ const context = (0, __powerlines_plugin_alloy_core_contexts_context.usePowerlinesSafe)();
26
26
  if (!context) return null;
27
27
  return [
28
- (0, __alloy_js_core_jsx_runtime.createComponent)(require_typescript_interface.TypeScriptInterface, {
28
+ (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_typescript_interface.TypeScriptInterface, {
29
29
  name: " EnvBase",
30
30
  defaultValue,
31
31
  reflection,
@@ -33,10 +33,10 @@ function EnvTypeDefinition(props) {
33
33
  }),
34
34
  (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
35
35
  (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
36
- (0, __alloy_js_core_jsx_runtime.createComponent)(require_tsdoc.TSDoc, {
36
+ (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, {
37
37
  heading: "The environment configuration object with prefixed keys.",
38
38
  get children() {
39
- return (0, __alloy_js_core_jsx_runtime.createComponent)(require_tsdoc.TSDocRemarks, { children: `The \`Env\` type extends the \`EnvBase\` interface by including additional keys that are prefixed according to the project's configuration. This allows for flexibility in accessing environment variables with different naming conventions.` });
39
+ return (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_tsdoc.TSDocRemarks, { children: `The \`Env\` type extends the \`EnvBase\` interface by including additional keys that are prefixed according to the project's configuration. This allows for flexibility in accessing environment variables with different naming conventions.` });
40
40
  }
41
41
  }),
42
42
  (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.TypeDeclaration, {
@@ -194,15 +194,15 @@ function ConfigPropertySet(props) {
194
194
  }
195
195
  })];
196
196
  }
197
- const createEnvRefkey = require_refkey.refkey("createEnv");
198
- const envRefkey = require_refkey.refkey("env");
199
- const envSerializerRefkey = require_refkey.refkey("EnvSerializer");
197
+ const createEnvRefkey = (0, __powerlines_plugin_alloy_helpers_refkey.refkey)("createEnv");
198
+ const envRefkey = (0, __powerlines_plugin_alloy_helpers_refkey.refkey)("env");
199
+ const envSerializerRefkey = (0, __powerlines_plugin_alloy_helpers_refkey.refkey)("EnvSerializer");
200
200
  /**
201
201
  * Generates the environment configuration module for the Powerlines project.
202
202
  */
203
203
  function EnvBuiltin(props) {
204
204
  const [{ defaultConfig, children }, rest] = (0, __alloy_js_core.splitProps)(props, ["defaultConfig", "children"]);
205
- const context = require_context.usePowerlinesSafe();
205
+ const context = (0, __powerlines_plugin_alloy_core_contexts_context.usePowerlinesSafe)();
206
206
  const defaultValue = (0, __alloy_js_core.computed)(() => context && require_helpers_load.loadEnvFromContext(context, process.env));
207
207
  const reflection = require_helpers_create_reflection_resource.createReflectionResource(context);
208
208
  const envInstance = (0, __alloy_js_core.computed)(() => {
@@ -214,7 +214,7 @@ function EnvBuiltin(props) {
214
214
  });
215
215
  const reflectionGetProperties = (0, __alloy_js_core.computed)(() => reflection.data?.getProperties().filter((property) => !property.isIgnored()).sort((a, b) => a.getNameAsString().localeCompare(b.getNameAsString())) ?? []);
216
216
  const reflectionSetProperties = (0, __alloy_js_core.computed)(() => reflection.data?.getProperties().filter((property) => !property.isIgnored() && !property.isReadonly()).sort((a, b) => a.getNameAsString().localeCompare(b.getNameAsString())) ?? []);
217
- return (0, __alloy_js_core_jsx_runtime.createComponent)(require_builtin_file.BuiltinFile, (0, __alloy_js_core_jsx_runtime.mergeProps)({
217
+ return (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_builtin_file.BuiltinFile, (0, __alloy_js_core_jsx_runtime.mergeProps)({
218
218
  id: "env",
219
219
  description: "The environment configuration module provides an interface to define environment configuration parameters."
220
220
  }, rest, {
@@ -253,7 +253,7 @@ function EnvBuiltin(props) {
253
253
  ];
254
254
  }
255
255
  }),
256
- (0, __alloy_js_core_jsx_runtime.createComponent)(require_typescript_object.TypescriptObject, {
256
+ (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_typescript_object.TypescriptObject, {
257
257
  name: "initialEnv",
258
258
  type: "Partial<EnvBase>",
259
259
  defaultValue,
@@ -264,13 +264,13 @@ function EnvBuiltin(props) {
264
264
  }),
265
265
  (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
266
266
  (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
267
- (0, __alloy_js_core_jsx_runtime.createComponent)(require_tsdoc.TSDoc, {
267
+ (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, {
268
268
  heading: "The environment configuration serializer for the Powerlines application.",
269
269
  get children() {
270
270
  return [
271
- (0, __alloy_js_core_jsx_runtime.createComponent)(require_tsdoc.TSDocLink, { children: `https://deepkit.io/docs/serialization/serializers` }),
272
- (0, __alloy_js_core_jsx_runtime.createComponent)(require_tsdoc.TSDocLink, { children: `https://github.com/marcj/untitled-code/blob/master/packages/type/src/serializer.ts#L1918` }),
273
- (0, __alloy_js_core_jsx_runtime.createComponent)(require_tsdoc.TSDocRemarks, { children: `This serializer is used to serialize and deserialize the Powerlines environment configuration.` })
271
+ (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_tsdoc.TSDocLink, { children: `https://deepkit.io/docs/serialization/serializers` }),
272
+ (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_tsdoc.TSDocLink, { children: `https://github.com/marcj/untitled-code/blob/master/packages/type/src/serializer.ts#L1918` }),
273
+ (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_tsdoc.TSDocRemarks, { children: `This serializer is used to serialize and deserialize the Powerlines environment configuration.` })
274
274
  ];
275
275
  }
276
276
  }),
@@ -301,13 +301,13 @@ function EnvBuiltin(props) {
301
301
  }),
302
302
  (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
303
303
  (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
304
- (0, __alloy_js_core_jsx_runtime.createComponent)(require_tsdoc.TSDoc, {
304
+ (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, {
305
305
  heading: "A {@link EnvSerializer | environment configuration serializer} instance for the Powerlines application.",
306
306
  get children() {
307
307
  return [
308
- (0, __alloy_js_core_jsx_runtime.createComponent)(require_tsdoc.TSDocLink, { children: `https://deepkit.io/docs/serialization/serializers` }),
309
- (0, __alloy_js_core_jsx_runtime.createComponent)(require_tsdoc.TSDocLink, { children: `https://github.com/marcj/untitled-code/blob/master/packages/type/src/serializer.ts#L1918` }),
310
- (0, __alloy_js_core_jsx_runtime.createComponent)(require_tsdoc.TSDocRemarks, { children: `This serializer is used to serialize and deserialize the Powerlines environment configuration.` })
308
+ (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_tsdoc.TSDocLink, { children: `https://deepkit.io/docs/serialization/serializers` }),
309
+ (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_tsdoc.TSDocLink, { children: `https://github.com/marcj/untitled-code/blob/master/packages/type/src/serializer.ts#L1918` }),
310
+ (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_tsdoc.TSDocRemarks, { children: `This serializer is used to serialize and deserialize the Powerlines environment configuration.` })
311
311
  ];
312
312
  }
313
313
  }),
@@ -324,13 +324,13 @@ function EnvBuiltin(props) {
324
324
  }),
325
325
  (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
326
326
  (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
327
- (0, __alloy_js_core_jsx_runtime.createComponent)(require_tsdoc.TSDoc, {
327
+ (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, {
328
328
  heading: "Serialize a environment configuration object to JSON data objects (not a JSON string).",
329
329
  get children() {
330
330
  return [
331
- (0, __alloy_js_core_jsx_runtime.createComponent)(require_tsdoc.TSDocRemarks, { children: `The resulting JSON object can be stringified using \`JSON.stringify()\`.` }),
332
- (0, __alloy_js_core_jsx_runtime.createComponent)(require_tsdoc.TSDocExample, { children: `const json = serializeEnv(env);` }),
333
- (0, __alloy_js_core_jsx_runtime.createComponent)(require_tsdoc.TSDocThrows, { children: `ValidationError when serialization or validation fails.` })
331
+ (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_tsdoc.TSDocRemarks, { children: `The resulting JSON object can be stringified using \`JSON.stringify()\`.` }),
332
+ (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_tsdoc.TSDocExample, { children: `const json = serializeEnv(env);` }),
333
+ (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_tsdoc.TSDocThrows, { children: `ValidationError when serialization or validation fails.` })
334
334
  ];
335
335
  }
336
336
  }),
@@ -342,13 +342,13 @@ function EnvBuiltin(props) {
342
342
  }),
343
343
  (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
344
344
  (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
345
- (0, __alloy_js_core_jsx_runtime.createComponent)(require_tsdoc.TSDoc, {
345
+ (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, {
346
346
  heading: "Deserialize a environment configuration object from JSON data objects to JavaScript objects, without running any validators.",
347
347
  get children() {
348
348
  return [
349
- (0, __alloy_js_core_jsx_runtime.createComponent)(require_tsdoc.TSDocRemarks, { children: `Types that are already correct will be used as-is.` }),
350
- (0, __alloy_js_core_jsx_runtime.createComponent)(require_tsdoc.TSDocExample, { children: `const env = deserializeEnv(json);` }),
351
- (0, __alloy_js_core_jsx_runtime.createComponent)(require_tsdoc.TSDocThrows, { children: `ValidationError when deserialization fails.` })
349
+ (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_tsdoc.TSDocRemarks, { children: `Types that are already correct will be used as-is.` }),
350
+ (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_tsdoc.TSDocExample, { children: `const env = deserializeEnv(json);` }),
351
+ (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_tsdoc.TSDocThrows, { children: `ValidationError when deserialization fails.` })
352
352
  ];
353
353
  }
354
354
  }),
@@ -360,16 +360,16 @@ function EnvBuiltin(props) {
360
360
  }),
361
361
  (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
362
362
  (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
363
- (0, __alloy_js_core_jsx_runtime.createComponent)(require_tsdoc.TSDoc, {
363
+ (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, {
364
364
  heading: "Initializes the Powerlines environment configuration module.",
365
365
  get children() {
366
366
  return [
367
- (0, __alloy_js_core_jsx_runtime.createComponent)(require_tsdoc.TSDocRemarks, { children: `This function initializes the Powerlines environment configuration object.` }),
368
- (0, __alloy_js_core_jsx_runtime.createComponent)(require_tsdoc.TSDocParam, {
367
+ (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_tsdoc.TSDocRemarks, { children: `This function initializes the Powerlines environment configuration object.` }),
368
+ (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_tsdoc.TSDocParam, {
369
369
  name: "environmentConfig",
370
370
  children: `The dynamic/runtime configuration - this could include the current environment variables or any other environment-specific settings provided by the runtime.`
371
371
  }),
372
- (0, __alloy_js_core_jsx_runtime.createComponent)(require_tsdoc.TSDocReturns, { children: `The initialized Powerlines configuration object.` })
372
+ (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_tsdoc.TSDocReturns, { children: `The initialized Powerlines configuration object.` })
373
373
  ];
374
374
  }
375
375
  }),
@@ -439,10 +439,10 @@ function EnvBuiltin(props) {
439
439
  (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
440
440
  (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
441
441
  (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
442
- (0, __alloy_js_core_jsx_runtime.createComponent)(require_tsdoc.TSDoc, {
442
+ (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, {
443
443
  heading: "The environment configuration object.",
444
444
  get children() {
445
- return (0, __alloy_js_core_jsx_runtime.createComponent)(require_tsdoc.TSDocRemarks, { children: `This object provides access to the environment configuration parameters in the application runtime.` });
445
+ return (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_tsdoc.TSDocRemarks, { children: `This object provides access to the environment configuration parameters in the application runtime.` });
446
446
  }
447
447
  }),
448
448
  (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.VarDeclaration, {
@@ -519,10 +519,10 @@ function EnvBuiltin(props) {
519
519
  }),
520
520
  (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
521
521
  (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
522
- (0, __alloy_js_core_jsx_runtime.createComponent)(require_tsdoc.TSDoc, {
522
+ (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, {
523
523
  heading: "Detect the \\`mode\\` of the current runtime environment.",
524
524
  get children() {
525
- return (0, __alloy_js_core_jsx_runtime.createComponent)(require_tsdoc.TSDocRemarks, { children: __alloy_js_core.code`The \`mode\` is determined by the \`MODE\` environment variable, or falls back to the \`NEXT_PUBLIC_VERCEL_ENV\`, \`NODE_ENV\`, or defaults to \`production\`. While the value can potentially be any string, it is generally recommended to only allow a value in the following list:
525
+ return (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_tsdoc.TSDocRemarks, { children: __alloy_js_core.code`The \`mode\` is determined by the \`MODE\` environment variable, or falls back to the \`NEXT_PUBLIC_VERCEL_ENV\`, \`NODE_ENV\`, or defaults to \`production\`. While the value can potentially be any string, it is generally recommended to only allow a value in the following list:
526
526
  - \`production\`
527
527
  - \`test\`
528
528
  - \`development\`
@@ -1,6 +1,6 @@
1
- import { BuiltinFileProps } from "../plugin-alloy/src/typescript/components/builtin-file.cjs";
2
- import { TypeScriptInterfaceProps } from "../plugin-alloy/src/typescript/components/typescript-interface.cjs";
3
1
  import { Children } from "@alloy-js/core";
2
+ import { BuiltinFileProps } from "@powerlines/plugin-alloy/typescript/components/builtin-file";
3
+ import { TypeScriptInterfaceProps } from "@powerlines/plugin-alloy/typescript/components/typescript-interface";
4
4
 
5
5
  //#region src/components/env.d.ts
6
6
 
@@ -1,6 +1,6 @@
1
- import { BuiltinFileProps } from "../plugin-alloy/src/typescript/components/builtin-file.mjs";
2
- import { TypeScriptInterfaceProps } from "../plugin-alloy/src/typescript/components/typescript-interface.mjs";
3
1
  import { Children } from "@alloy-js/core";
2
+ import { BuiltinFileProps } from "@powerlines/plugin-alloy/typescript/components/builtin-file";
3
+ import { TypeScriptInterfaceProps } from "@powerlines/plugin-alloy/typescript/components/typescript-interface";
4
4
 
5
5
  //#region src/components/env.d.ts
6
6
 
@@ -1,17 +1,17 @@
1
1
  import { loadEnvFromContext } from "../helpers/load.mjs";
2
2
  import { createReflectionResource } from "../helpers/create-reflection-resource.mjs";
3
- import { usePowerlinesSafe } from "../plugin-alloy/src/core/contexts/context.mjs";
4
- import { refkey as refkey$1 } from "../plugin-alloy/src/helpers/refkey.mjs";
5
- import { TSDoc, TSDocExample, TSDocLink, TSDocParam, TSDocRemarks, TSDocReturns, TSDocThrows } from "../plugin-alloy/src/typescript/components/tsdoc.mjs";
6
- import { BuiltinFile } from "../plugin-alloy/src/typescript/components/builtin-file.mjs";
7
- import { TypeScriptInterface } from "../plugin-alloy/src/typescript/components/typescript-interface.mjs";
8
- import { TypescriptObject } from "../plugin-alloy/src/typescript/components/typescript-object.mjs";
9
3
  import { ReflectionClass, ReflectionKind } from "@powerlines/deepkit/vendor/type";
10
4
  import { titleCase } from "@stryke/string-format/title-case";
11
- import defu$1 from "defu";
5
+ import defu from "defu";
12
6
  import { For, Show, code, computed, splitProps } from "@alloy-js/core";
13
7
  import { createComponent, createIntrinsic, memo, mergeProps } from "@alloy-js/core/jsx-runtime";
8
+ import { usePowerlinesSafe } from "@powerlines/plugin-alloy/core/contexts/context";
14
9
  import { ClassDeclaration, ClassMethod, ElseIfClause, FunctionDeclaration, IfStatement, NewExpression, TypeDeclaration, VarDeclaration } from "@alloy-js/typescript";
10
+ import { refkey } from "@powerlines/plugin-alloy/helpers/refkey";
11
+ import { BuiltinFile } from "@powerlines/plugin-alloy/typescript/components/builtin-file";
12
+ import { TSDoc, TSDocExample, TSDocLink, TSDocParam, TSDocRemarks, TSDocReturns, TSDocThrows } from "@powerlines/plugin-alloy/typescript/components/tsdoc";
13
+ import { TypeScriptInterface } from "@powerlines/plugin-alloy/typescript/components/typescript-interface";
14
+ import { TypescriptObject } from "@powerlines/plugin-alloy/typescript/components/typescript-object";
15
15
  import { isNull } from "@stryke/type-checks/is-null";
16
16
 
17
17
  //#region src/components/env.tsx
@@ -192,9 +192,9 @@ function ConfigPropertySet(props) {
192
192
  }
193
193
  })];
194
194
  }
195
- const createEnvRefkey = refkey$1("createEnv");
196
- const envRefkey = refkey$1("env");
197
- const envSerializerRefkey = refkey$1("EnvSerializer");
195
+ const createEnvRefkey = refkey("createEnv");
196
+ const envRefkey = refkey("env");
197
+ const envSerializerRefkey = refkey("EnvSerializer");
198
198
  /**
199
199
  * Generates the environment configuration module for the Powerlines project.
200
200
  */
@@ -217,7 +217,7 @@ function EnvBuiltin(props) {
217
217
  description: "The environment configuration module provides an interface to define environment configuration parameters."
218
218
  }, rest, {
219
219
  get imports() {
220
- return defu$1({ "@powerlines/deepkit/vendor/type": [
220
+ return defu({ "@powerlines/deepkit/vendor/type": [
221
221
  "stringify",
222
222
  "serializer",
223
223
  "serializeFunction",
@@ -1,5 +1,5 @@
1
1
  const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
2
- const require_context = require('../powerlines/src/types/context.cjs');
2
+ let powerlines_types_context = require("powerlines/types/context");
3
3
  let __stryke_path_join_paths = require("@stryke/path/join-paths");
4
4
  let automd = require("automd");
5
5
 
@@ -22,7 +22,7 @@ const env = __assignType((context) => (0, automd.defineGenerator)({
22
22
  return { contents: await context.fs.read(envDocFile) || "" };
23
23
  }, ["generate", "P\"/!"])
24
24
  }), [
25
- () => require_context.__ΩUnresolvedContext,
25
+ () => powerlines_types_context.__ΩUnresolvedContext,
26
26
  "context",
27
27
  "",
28
28
  "Pn!2\"\"/#"
@@ -1,4 +1,4 @@
1
- import { UnresolvedContext } from "../powerlines/src/types/context.cjs";
1
+ import { UnresolvedContext } from "powerlines/types/context";
2
2
  import * as automd0 from "automd";
3
3
 
4
4
  //#region src/helpers/automd-generator.d.ts
@@ -1,4 +1,4 @@
1
- import { UnresolvedContext } from "../powerlines/src/types/context.mjs";
1
+ import { UnresolvedContext } from "powerlines/types/context";
2
2
  import * as automd0 from "automd";
3
3
 
4
4
  //#region src/helpers/automd-generator.d.ts
@@ -1,4 +1,4 @@
1
- import { __ΩUnresolvedContext } from "../powerlines/src/types/context.mjs";
1
+ import { __ΩUnresolvedContext } from "powerlines/types/context";
2
2
  import { joinPaths } from "@stryke/path/join-paths";
3
3
  import { defineGenerator } from "automd";
4
4
 
@@ -1,15 +1,15 @@
1
1
  const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
2
- const require_config = require('../powerlines/src/types/config.cjs');
3
2
  const require_types_plugin = require('../types/plugin.cjs');
4
3
  const require_helpers_source_file_env = require('./source-file-env.cjs');
5
- const require_environments = require('../powerlines/src/lib/constants/environments.cjs');
6
4
  let __stryke_path_join_paths = require("@stryke/path/join-paths");
7
- let defu = require("defu");
8
- defu = require_rolldown_runtime.__toESM(defu);
5
+ let powerlines_types_config = require("powerlines/types/config");
6
+ let __stryke_env_load_env = require("@stryke/env/load-env");
9
7
  let __stryke_string_format_kebab_case = require("@stryke/string-format/kebab-case");
10
8
  let __stryke_type_checks_is_set_object = require("@stryke/type-checks/is-set-object");
11
- let __stryke_env_load_env = require("@stryke/env/load-env");
12
9
  let c12 = require("c12");
10
+ let defu = require("defu");
11
+ defu = require_rolldown_runtime.__toESM(defu);
12
+ let powerlines_lib_constants_environments = require("powerlines/lib/constants/environments");
13
13
 
14
14
  //#region src/helpers/load.ts
15
15
  function __assignType(fn, args) {
@@ -63,7 +63,7 @@ loadEnvDirectory.__type = [
63
63
  "mode",
64
64
  "cacheDir",
65
65
  "packageJson",
66
- () => require_config.__ΩWorkspaceConfig,
66
+ () => powerlines_types_config.__ΩWorkspaceConfig,
67
67
  "workspaceConfig",
68
68
  "loadEnvDirectory",
69
69
  "Pn!2\"&2#&2$&2%!2&n'2(\"`/)"
@@ -94,7 +94,7 @@ function loadEnvFromContext(context, parsed) {
94
94
  TEST: context.config.mode === "test",
95
95
  DEBUG: context.config.mode === "development",
96
96
  STACKTRACE: context.config.mode !== "production",
97
- ENVIRONMENT: !context.environment.name || context.environment.name === require_environments.DEFAULT_ENVIRONMENT ? context.config.mode : context.environment.name
97
+ ENVIRONMENT: !context.environment.name || context.environment.name === powerlines_lib_constants_environments.DEFAULT_ENVIRONMENT ? context.config.mode : context.environment.name
98
98
  }, (0, __stryke_type_checks_is_set_object.isSetObject)(context?.env?.types?.env) ? context.env.types.env?.getProperties().reduce(__assignType((ret, prop) => {
99
99
  ret[prop.name] = parsed[prop.name] ?? prop.getDefaultValue();
100
100
  return ret;
@@ -1,13 +1,13 @@
1
- import { __ΩWorkspaceConfig } from "../powerlines/src/types/config.mjs";
2
1
  import { __ΩEnvPluginContext, __ΩEnvPluginOptions } from "../types/plugin.mjs";
3
2
  import { removeEnvPrefix } from "./source-file-env.mjs";
4
- import { DEFAULT_ENVIRONMENT } from "../powerlines/src/lib/constants/environments.mjs";
5
3
  import { joinPaths } from "@stryke/path/join-paths";
6
- import defu$1 from "defu";
4
+ import { __ΩWorkspaceConfig } from "powerlines/types/config";
5
+ import { loadEnv as loadEnv$1, loadEnvFile } from "@stryke/env/load-env";
7
6
  import { kebabCase } from "@stryke/string-format/kebab-case";
8
7
  import { isSetObject } from "@stryke/type-checks/is-set-object";
9
- import { loadEnv as loadEnv$1, loadEnvFile } from "@stryke/env/load-env";
10
8
  import { loadConfig } from "c12";
9
+ import defu from "defu";
10
+ import { DEFAULT_ENVIRONMENT } from "powerlines/lib/constants/environments";
11
11
 
12
12
  //#region src/helpers/load.ts
13
13
  function __assignType(fn, args) {
@@ -22,7 +22,7 @@ async function loadEnvFiles(options, mode, cwd) {
22
22
  "",
23
23
  "P\"2!\"/\""
24
24
  ])));
25
- for (const additionalEnvFile of additionalEnvFiles) env = defu$1(additionalEnvFile, env);
25
+ for (const additionalEnvFile of additionalEnvFiles) env = defu(additionalEnvFile, env);
26
26
  }
27
27
  return removeEnvPrefix(env);
28
28
  }
@@ -52,7 +52,7 @@ async function loadEnvDirectory(options, directory, mode, cacheDir, packageJson,
52
52
  moduleCache: true
53
53
  }
54
54
  })]);
55
- return defu$1(envResult, c12Result.config, workspaceConfig);
55
+ return defu(envResult, c12Result.config, workspaceConfig);
56
56
  }
57
57
  loadEnvDirectory.__type = [
58
58
  () => __ΩEnvPluginOptions,
@@ -74,7 +74,7 @@ loadEnvDirectory.__type = [
74
74
  * @returns An object containing the dotenv configuration.
75
75
  */
76
76
  function loadEnvFromContext(context, parsed) {
77
- return defu$1({
77
+ return defu({
78
78
  APP_NAME: kebabCase(context.config.name || context.packageJson.name?.replace(`/${context.workspaceConfig.namespace}`, "")),
79
79
  APP_VERSION: context.packageJson.version,
80
80
  BUILD_ID: context.meta.buildId,
@@ -117,7 +117,7 @@ async function loadEnv(context, options) {
117
117
  (loadEnvDirectory.Ω = [["!"]], loadEnvDirectory(options, context.workspaceConfig.workspaceRoot, context.config.mode, context.cachePath, context.packageJson, context.workspaceConfig)),
118
118
  (loadEnvDirectory.Ω = [["!"]], loadEnvDirectory(options, context.envPaths.config, context.config.mode, context.cachePath, context.packageJson, context.workspaceConfig))
119
119
  ]);
120
- return defu$1(loadEnvFromContext(context, process.env), project, workspace, config);
120
+ return defu(loadEnvFromContext(context, process.env), project, workspace, config);
121
121
  }
122
122
  loadEnv.__type = [
123
123
  () => __ΩEnvPluginContext,