@powerlines/plugin-env 0.16.110 → 0.16.111

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 (46) hide show
  1. package/dist/components/docs.d.cts +1 -2
  2. package/dist/components/docs.d.cts.map +1 -1
  3. package/dist/components/docs.d.mts +1 -2
  4. package/dist/components/docs.d.mts.map +1 -1
  5. package/dist/components/env-builtin.cjs +5 -2
  6. package/dist/components/env-builtin.d.cts +1 -2
  7. package/dist/components/env-builtin.d.cts.map +1 -1
  8. package/dist/components/env-builtin.d.mts +1 -2
  9. package/dist/components/env-builtin.d.mts.map +1 -1
  10. package/dist/components/env-builtin.mjs +5 -2
  11. package/dist/components/env-builtin.mjs.map +1 -1
  12. package/dist/components/index.d.cts +3 -3
  13. package/dist/components/index.d.mts +3 -3
  14. package/dist/helpers/index.d.cts +2 -2
  15. package/dist/helpers/index.d.mts +2 -2
  16. package/dist/helpers/reflect.cjs +3 -3
  17. package/dist/helpers/reflect.d.cts +1 -2
  18. package/dist/helpers/reflect.d.cts.map +1 -1
  19. package/dist/helpers/reflect.d.mts +1 -2
  20. package/dist/helpers/reflect.d.mts.map +1 -1
  21. package/dist/helpers/reflect.mjs +4 -4
  22. package/dist/helpers/reflect.mjs.map +1 -1
  23. package/dist/index.cjs +3 -2
  24. package/dist/index.d.cts +3 -3
  25. package/dist/index.d.cts.map +1 -1
  26. package/dist/index.d.mts +3 -3
  27. package/dist/index.d.mts.map +1 -1
  28. package/dist/index.mjs +3 -2
  29. package/dist/index.mjs.map +1 -1
  30. package/dist/node_modules/.pnpm/@stryke_helpers@0.10.8/node_modules/@stryke/helpers/dist/get-unique.cjs +14 -0
  31. package/dist/node_modules/.pnpm/@stryke_helpers@0.10.8/node_modules/@stryke/helpers/dist/get-unique.mjs +14 -0
  32. package/dist/node_modules/.pnpm/@stryke_helpers@0.10.8/node_modules/@stryke/helpers/dist/get-unique.mjs.map +1 -0
  33. package/dist/types/index.d.cts +3 -3
  34. package/dist/types/index.d.mts +3 -3
  35. package/dist/types/plugin.d.cts +1 -6
  36. package/dist/types/plugin.d.cts.map +1 -1
  37. package/dist/types/plugin.d.mts +1 -6
  38. package/dist/types/plugin.d.mts.map +1 -1
  39. package/dist/types/runtime.cjs +2 -7
  40. package/dist/types/runtime.d.cts +1 -3
  41. package/dist/types/runtime.d.cts.map +1 -1
  42. package/dist/types/runtime.d.mts +1 -3
  43. package/dist/types/runtime.d.mts.map +1 -1
  44. package/dist/types/runtime.mjs +2 -7
  45. package/dist/types/runtime.mjs.map +1 -1
  46. package/package.json +20 -19
@@ -19,7 +19,6 @@ interface EnvDocsFileProps extends Partial<MarkdownFileProps> {
19
19
  * Generates the environment configuration markdown documentation for the Powerlines project.
20
20
  */
21
21
  declare function EnvDocsFile(props: EnvDocsFileProps): _$_alloy_js_core0.Children;
22
- declare type __ΩEnvDocsFileProps = any[];
23
22
  //#endregion
24
- export { EnvDocsFile, EnvDocsFileProps, __ΩEnvDocsFileProps };
23
+ export { EnvDocsFile, EnvDocsFileProps };
25
24
  //# sourceMappingURL=docs.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"docs.d.cts","names":[],"sources":["../../src/components/docs.tsx"],"mappings":";;;;;UAmCiB,gBAAA,SAAyB,OAAA,CAAQ,iBAAA;;;AAAlD;;;;;;EASE,WAAA;EAEA,UAAA,EAAY,eAAA;AAAA;;;;iBAME,WAAA,CAAY,KAAA,EAAO,gBAAA,GAAgB,iBAAA,CAAA,QAAA;AAAA"}
1
+ {"version":3,"file":"docs.d.cts","names":[],"sources":["../../src/components/docs.tsx"],"mappings":";;;;;UAmCiB,gBAAA,SAAyB,OAAA,CAAQ,iBAAA;;;AAAlD;;;;;;EASE,WAAA;EAEA,UAAA,EAAY,eAAA;AAAA;;;;iBAME,WAAA,CAAY,KAAA,EAAO,gBAAA,GAAgB,iBAAA,CAAA,QAAA"}
@@ -19,7 +19,6 @@ interface EnvDocsFileProps extends Partial<MarkdownFileProps> {
19
19
  * Generates the environment configuration markdown documentation for the Powerlines project.
20
20
  */
21
21
  declare function EnvDocsFile(props: EnvDocsFileProps): _$_alloy_js_core0.Children;
22
- declare type __ΩEnvDocsFileProps = any[];
23
22
  //#endregion
24
- export { EnvDocsFile, EnvDocsFileProps, __ΩEnvDocsFileProps };
23
+ export { EnvDocsFile, EnvDocsFileProps };
25
24
  //# sourceMappingURL=docs.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"docs.d.mts","names":[],"sources":["../../src/components/docs.tsx"],"mappings":";;;;;UAmCiB,gBAAA,SAAyB,OAAA,CAAQ,iBAAA;;;AAAlD;;;;;;EASE,WAAA;EAEA,UAAA,EAAY,eAAA;AAAA;;;;iBAME,WAAA,CAAY,KAAA,EAAO,gBAAA,GAAgB,iBAAA,CAAA,QAAA;AAAA"}
1
+ {"version":3,"file":"docs.d.mts","names":[],"sources":["../../src/components/docs.tsx"],"mappings":";;;;;UAmCiB,gBAAA,SAAyB,OAAA,CAAQ,iBAAA;;;AAAlD;;;;;;EASE,WAAA;EAEA,UAAA,EAAY,eAAA;AAAA;;;;iBAME,WAAA,CAAY,KAAA,EAAO,gBAAA,GAAgB,iBAAA,CAAA,QAAA"}
@@ -203,11 +203,15 @@ function EnvBuiltin(props) {
203
203
  const context = (0, _powerlines_plugin_alloy_core_contexts_context.usePowerlines)();
204
204
  const defaultValue = (0, _alloy_js_core.computed)(() => context && require_helpers_load.loadEnvFromContext(context, process.env));
205
205
  const envInstance = (0, _alloy_js_core.computed)(() => {
206
- return new _powerlines_deepkit_vendor_type.ReflectionClass({
206
+ const result = new _powerlines_deepkit_vendor_type.ReflectionClass({
207
207
  kind: _powerlines_deepkit_vendor_type.ReflectionKind.objectLiteral,
208
208
  description: `The initial environment configuration state for the ${(0, _stryke_string_format_title_case.titleCase)(context?.config?.name)} project.`,
209
209
  types: []
210
210
  }, reflection);
211
+ result.getProperties().filter((property) => property.isRuntime() || property.getTags().runtime === true).forEach((property) => {
212
+ result.removeProperty(property.getNameAsString());
213
+ });
214
+ return result;
211
215
  });
212
216
  const reflectionGetProperties = (0, _alloy_js_core.computed)(() => reflection?.getProperties().filter((property) => !property.isIgnored()).sort((a, b) => a.getNameAsString().localeCompare(b.getNameAsString())) ?? []);
213
217
  const reflectionSetProperties = (0, _alloy_js_core.computed)(() => reflection?.getProperties().filter((property) => !property.isIgnored() && !property.isReadonly()).sort((a, b) => a.getNameAsString().localeCompare(b.getNameAsString())) ?? []);
@@ -217,7 +221,6 @@ function EnvBuiltin(props) {
217
221
  }, rest, {
218
222
  get imports() {
219
223
  return (0, defu.default)({ "@powerlines/deepkit/vendor/type": [
220
- "serializer",
221
224
  "serializeFunction",
222
225
  "deserializeFunction",
223
226
  "ReflectionKind",
@@ -16,7 +16,6 @@ interface EnvBuiltinProps extends Omit<BuiltinFileProps, "id"> {
16
16
  * Generates the environment configuration module for the Powerlines project.
17
17
  */
18
18
  declare function EnvBuiltin(props: EnvBuiltinProps): Children;
19
- declare type __ΩEnvBuiltinProps = any[];
20
19
  //#endregion
21
- export { EnvBuiltin, EnvBuiltinProps, EnvTypeDefinition, __ΩEnvBuiltinProps };
20
+ export { EnvBuiltin, EnvBuiltinProps, EnvTypeDefinition };
22
21
  //# sourceMappingURL=env-builtin.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"env-builtin.d.cts","names":[],"sources":["../../src/components/env-builtin.tsx"],"mappings":";;;;;;;;AAqEA;iBAAgB,iBAAA,CACd,KAAA,EAAO,IAAA,CAAK,yBAAA,YAAkC,QAAA;AAAA,UAkL/B,eAAA,SAAwB,IAAA,CAAK,gBAAA;EAC5C,aAAA,GAAgB,QAAA;EAChB,UAAA,EAAY,eAAA;AAAA;;;;iBAUE,UAAA,CAAW,KAAA,EAAO,eAAA,GAAe,QAAA;AAAA"}
1
+ {"version":3,"file":"env-builtin.d.cts","names":[],"sources":["../../src/components/env-builtin.tsx"],"mappings":";;;;;;;;AAqEA;iBAAgB,iBAAA,CACd,KAAA,EAAO,IAAA,CAAK,yBAAA,YAAkC,QAAA;AAAA,UAkL/B,eAAA,SAAwB,IAAA,CAAK,gBAAA;EAC5C,aAAA,GAAgB,QAAA;EAChB,UAAA,EAAY,eAAA;AAAA;;;;iBAUE,UAAA,CAAW,KAAA,EAAO,eAAA,GAAe,QAAA"}
@@ -16,7 +16,6 @@ interface EnvBuiltinProps extends Omit<BuiltinFileProps, "id"> {
16
16
  * Generates the environment configuration module for the Powerlines project.
17
17
  */
18
18
  declare function EnvBuiltin(props: EnvBuiltinProps): Children;
19
- declare type __ΩEnvBuiltinProps = any[];
20
19
  //#endregion
21
- export { EnvBuiltin, EnvBuiltinProps, EnvTypeDefinition, __ΩEnvBuiltinProps };
20
+ export { EnvBuiltin, EnvBuiltinProps, EnvTypeDefinition };
22
21
  //# sourceMappingURL=env-builtin.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"env-builtin.d.mts","names":[],"sources":["../../src/components/env-builtin.tsx"],"mappings":";;;;;;;;AAqEA;iBAAgB,iBAAA,CACd,KAAA,EAAO,IAAA,CAAK,yBAAA,YAAkC,QAAA;AAAA,UAkL/B,eAAA,SAAwB,IAAA,CAAK,gBAAA;EAC5C,aAAA,GAAgB,QAAA;EAChB,UAAA,EAAY,eAAA;AAAA;;;;iBAUE,UAAA,CAAW,KAAA,EAAO,eAAA,GAAe,QAAA;AAAA"}
1
+ {"version":3,"file":"env-builtin.d.mts","names":[],"sources":["../../src/components/env-builtin.tsx"],"mappings":";;;;;;;;AAqEA;iBAAgB,iBAAA,CACd,KAAA,EAAO,IAAA,CAAK,yBAAA,YAAkC,QAAA;AAAA,UAkL/B,eAAA,SAAwB,IAAA,CAAK,gBAAA;EAC5C,aAAA,GAAgB,QAAA;EAChB,UAAA,EAAY,eAAA;AAAA;;;;iBAUE,UAAA,CAAW,KAAA,EAAO,eAAA,GAAe,QAAA"}
@@ -200,11 +200,15 @@ function EnvBuiltin(props) {
200
200
  const context = usePowerlines();
201
201
  const defaultValue = computed(() => context && loadEnvFromContext(context, process.env));
202
202
  const envInstance = computed(() => {
203
- return new ReflectionClass({
203
+ const result = new ReflectionClass({
204
204
  kind: ReflectionKind.objectLiteral,
205
205
  description: `The initial environment configuration state for the ${titleCase(context?.config?.name)} project.`,
206
206
  types: []
207
207
  }, reflection);
208
+ result.getProperties().filter((property) => property.isRuntime() || property.getTags().runtime === true).forEach((property) => {
209
+ result.removeProperty(property.getNameAsString());
210
+ });
211
+ return result;
208
212
  });
209
213
  const reflectionGetProperties = computed(() => reflection?.getProperties().filter((property) => !property.isIgnored()).sort((a, b) => a.getNameAsString().localeCompare(b.getNameAsString())) ?? []);
210
214
  const reflectionSetProperties = computed(() => reflection?.getProperties().filter((property) => !property.isIgnored() && !property.isReadonly()).sort((a, b) => a.getNameAsString().localeCompare(b.getNameAsString())) ?? []);
@@ -214,7 +218,6 @@ function EnvBuiltin(props) {
214
218
  }, rest, {
215
219
  get imports() {
216
220
  return defu({ "@powerlines/deepkit/vendor/type": [
217
- "serializer",
218
221
  "serializeFunction",
219
222
  "deserializeFunction",
220
223
  "ReflectionKind",
@@ -1 +1 @@
1
- {"version":3,"file":"env-builtin.mjs","names":[],"sources":["../../src/components/env-builtin.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport {\n Children,\n code,\n computed,\n For,\n Show,\n splitProps\n} from \"@alloy-js/core\";\nimport {\n ClassDeclaration,\n ClassMethod,\n ElseIfClause,\n FunctionDeclaration,\n IfStatement,\n NewExpression,\n TypeDeclaration,\n VarDeclaration\n} from \"@alloy-js/typescript\";\nimport {\n ReflectionClass,\n ReflectionKind,\n ReflectionProperty\n} from \"@powerlines/deepkit/vendor/type\";\nimport { Spacing } from \"@powerlines/plugin-alloy/core/components/spacing\";\nimport { usePowerlines } from \"@powerlines/plugin-alloy/core/contexts/context\";\nimport { refkey } from \"@powerlines/plugin-alloy/helpers/refkey\";\nimport { ComponentProps } from \"@powerlines/plugin-alloy/types/components\";\nimport {\n BuiltinFile,\n BuiltinFileProps\n} from \"@powerlines/plugin-alloy/typescript/components/builtin-file\";\nimport type { InterfaceDeclarationProps } from \"@powerlines/plugin-alloy/typescript/components/interface-declaration\";\nimport { InterfaceDeclaration } from \"@powerlines/plugin-alloy/typescript/components/interface-declaration\";\nimport { ObjectDeclaration } from \"@powerlines/plugin-alloy/typescript/components/object-declaration\";\nimport {\n TSDoc,\n TSDocExample,\n TSDocLink,\n TSDocParam,\n TSDocRemarks,\n TSDocReturns,\n TSDocThrows\n} from \"@powerlines/plugin-alloy/typescript/components/tsdoc\";\nimport { titleCase } from \"@stryke/string-format/title-case\";\nimport defu from \"defu\";\nimport { loadEnvFromContext } from \"../helpers/load\";\nimport { EnvPluginContext } from \"../types/plugin\";\n\n/**\n * Generates the environment configuration typescript definition for the Powerlines project.\n */\nexport function EnvTypeDefinition(\n props: Omit<InterfaceDeclarationProps, \"name\">\n) {\n const [{ defaultValue, reflection }] = splitProps(props, [\n \"defaultValue\",\n \"reflection\"\n ]);\n\n const context = usePowerlines<EnvPluginContext>();\n\n return (\n <>\n <InterfaceDeclaration\n name=\" EnvBase\"\n defaultValue={defaultValue}\n reflection={reflection}\n export={true}\n />\n <Spacing />\n <TSDoc heading=\"The environment configuration object with prefixed keys.\">\n <TSDocRemarks>\n {`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.`}\n </TSDocRemarks>\n </TSDoc>\n <TypeDeclaration name=\"Env\" export={true}>\n {code` {\n [Key in keyof EnvBase as Key ${context.config.env.prefix\n .map(prefix => `| \\`${prefix.replace(/_$/g, \"\")}_\\${Key}\\``)\n .join(\" \")}]: EnvBase[Key];\n}\n`}\n </TypeDeclaration>\n <Spacing />\n </>\n );\n}\n\ninterface ConfigPropertyConditionalProps extends ComponentProps {\n context: EnvPluginContext;\n name: string;\n}\n\nfunction ConfigPropertyConditional(props: ConfigPropertyConditionalProps) {\n const [{ context, name }] = splitProps(props, [\"context\", \"name\"]);\n\n return code`propertyName === \"${name}\" || propertyName.replace(/^(${context.config.env.prefix\n .sort((a, b) =>\n a.startsWith(b) ? -1 : b.startsWith(a) ? 1 : a.localeCompare(b)\n )\n .map(prefix => `${prefix.replace(/_$/, \"\")}_`)\n .join(\"|\")})/g, \"\").toLowerCase().replace(/[\\\\s\\\\-_]+/g, \"\") === \"${name\n .toLowerCase()\n .replace(/[\\s\\-_]+/g, \"\")}\"`;\n}\n\ninterface ConfigPropertyProps extends ComponentProps {\n index: number;\n context: EnvPluginContext;\n property: ReflectionProperty;\n}\n\nfunction ConfigPropertyGet(props: ConfigPropertyProps) {\n const [{ context, property, index }] = splitProps(props, [\n \"context\",\n \"property\",\n \"index\"\n ]);\n\n return (\n <>\n {index === 0 ? (\n <IfStatement\n condition={\n <>\n <ConfigPropertyConditional\n name={property.getNameAsString()}\n context={context}\n />\n <Show\n when={property.getAlias() && property.getAlias().length > 0}>\n {code` || `}\n <For each={property.getAlias()} joiner={code` || `}>\n {alias => (\n <ConfigPropertyConditional name={alias} context={context} />\n )}\n </For>\n </Show>\n </>\n }>\n {code`return target[\"${property.getNameAsString()}\"];`}\n </IfStatement>\n ) : (\n <ElseIfClause\n condition={\n <>\n <ConfigPropertyConditional\n name={property.getNameAsString()}\n context={context}\n />\n <Show\n when={property.getAlias() && property.getAlias().length > 0}>\n {code` || `}\n <For each={property.getAlias()} joiner={code` || `}>\n {alias => (\n <ConfigPropertyConditional name={alias} context={context} />\n )}\n </For>\n </Show>\n </>\n }>\n {code`return target[\"${property.getNameAsString()}\"];`}\n </ElseIfClause>\n )}\n </>\n );\n}\n\nfunction ConfigPropertySet(props: ConfigPropertyProps) {\n const [{ context, property, index }] = splitProps(props, [\n \"context\",\n \"property\",\n \"index\"\n ]);\n\n return (\n <>\n {index === 0 ? (\n <IfStatement\n condition={\n <>\n <ConfigPropertyConditional\n name={property.getNameAsString()}\n context={context}\n />\n <Show\n when={property.getAlias() && property.getAlias().length > 0}>\n {code` || `}\n <For each={property.getAlias()} joiner={code` || `}>\n {alias => (\n <ConfigPropertyConditional name={alias} context={context} />\n )}\n </For>\n </Show>\n </>\n }>\n {code`\n target[\"${property.getNameAsString()}\"] = newValue;\n return true;\n`}\n </IfStatement>\n ) : (\n <ElseIfClause\n condition={\n <>\n <ConfigPropertyConditional\n name={property.getNameAsString()}\n context={context}\n />\n <Show\n when={property.getAlias() && property.getAlias().length > 0}>\n {code` || `}\n <For each={property.getAlias()} joiner={code` || `}>\n {alias => (\n <ConfigPropertyConditional name={alias} context={context} />\n )}\n </For>\n </Show>\n </>\n }>\n {code`\n target[\"${property.getNameAsString()}\"] = newValue;\n return true;\n`}\n </ElseIfClause>\n )}\n </>\n );\n}\n\nexport interface EnvBuiltinProps extends Omit<BuiltinFileProps, \"id\"> {\n defaultConfig?: Children;\n reflection: ReflectionClass<any>;\n}\n\nconst createEnvRefkey = refkey(\"createEnv\");\nconst envRefkey = refkey(\"env\");\nconst envSerializerRefkey = refkey(\"EnvSerializer\");\n\n/**\n * Generates the environment configuration module for the Powerlines project.\n */\nexport function EnvBuiltin(props: EnvBuiltinProps) {\n const [{ defaultConfig, reflection, children }, rest] = splitProps(props, [\n \"defaultConfig\",\n \"reflection\",\n \"children\"\n ]);\n\n const context = usePowerlines<EnvPluginContext>();\n const defaultValue = computed(\n () => context && loadEnvFromContext(context, process.env)\n );\n\n const envInstance = computed(() => {\n const result = new ReflectionClass(\n {\n kind: ReflectionKind.objectLiteral,\n description: `The initial environment configuration state for the ${titleCase(\n context?.config?.name\n )} project.`,\n types: []\n },\n reflection\n );\n\n return result;\n });\n\n const reflectionGetProperties = computed(\n () =>\n reflection\n ?.getProperties()\n .filter(property => !property.isIgnored())\n .sort((a, b) =>\n a.getNameAsString().localeCompare(b.getNameAsString())\n ) ?? []\n );\n const reflectionSetProperties = computed(\n () =>\n reflection\n ?.getProperties()\n .filter(property => !property.isIgnored() && !property.isReadonly())\n .sort((a, b) =>\n a.getNameAsString().localeCompare(b.getNameAsString())\n ) ?? []\n );\n\n return (\n <BuiltinFile\n id=\"env\"\n description=\"The environment configuration module provides an interface to define environment configuration parameters.\"\n {...rest}\n imports={defu(\n {\n \"@powerlines/deepkit/vendor/type\": [\n \"serializer\",\n \"serializeFunction\",\n \"deserializeFunction\",\n \"ReflectionKind\",\n \"Serializer\",\n \"TemplateState\",\n \"Type\",\n \"TypeProperty\",\n \"TypePropertySignature\"\n ]\n },\n rest.imports ?? {}\n )}>\n <Show when={Boolean(reflection)}>\n <EnvTypeDefinition\n defaultValue={defaultValue}\n reflection={reflection}\n />\n <hbr />\n <hbr />\n </Show>\n\n <ObjectDeclaration\n name=\"initialEnv\"\n type=\"Partial<EnvBase>\"\n defaultValue={defaultValue}\n reflection={envInstance}\n export={true}\n const={true}\n doc=\"The initial environment configuration object values for the runtime.\"\n />\n <Spacing />\n\n <TSDoc heading=\"The environment configuration serializer for the Powerlines application.\">\n <TSDocLink>\n {`https://deepkit.io/docs/serialization/serializers`}\n </TSDocLink>\n <TSDocLink>\n {`https://github.com/marcj/untitled-code/blob/master/packages/type/src/serializer.ts#L1918`}\n </TSDocLink>\n <TSDocRemarks>\n {`This serializer is used to serialize and deserialize the Powerlines environment configuration.`}\n </TSDocRemarks>\n </TSDoc>\n <ClassDeclaration\n refkey={envSerializerRefkey}\n name=\"EnvSerializer\"\n extends=\"Serializer\"\n export={true}>\n <ClassMethod\n name=\"constructor\"\n public={true}\n doc=\"Initializes a new instance of the `EnvSerializer` class.\">\n {code`super(\"env\");\n\n this.deserializeRegistry.register(\n ReflectionKind.boolean,\n (type: Type, state: TemplateState) => {\n state.addSetter(\n \\`typeof \\${state.accessor.toString()} !== \"boolean\" ? \\${state.accessor.toString()} === 1 || \\${state.accessor.toString()} === \"1\" || \\${state.accessor.toString()}.toLowerCase() === \"t\" || \\${state.accessor.toString()}.toLowerCase() === \"true\" || \\${state.accessor.toString()}.toLowerCase() === \"y\" || \\${state.accessor.toString()}.toLowerCase() === \"yes\" : \\${state.accessor.toString()}\\`\n );\n }\n ); `}\n </ClassMethod>\n </ClassDeclaration>\n <Spacing />\n\n <TSDoc heading=\"A {@link EnvSerializer | environment configuration serializer} instance for the Powerlines application.\">\n <TSDocLink>\n {`https://deepkit.io/docs/serialization/serializers`}\n </TSDocLink>\n <TSDocLink>\n {`https://github.com/marcj/untitled-code/blob/master/packages/type/src/serializer.ts#L1918`}\n </TSDocLink>\n <TSDocRemarks>\n {`This serializer is used to serialize and deserialize the Powerlines environment configuration.`}\n </TSDocRemarks>\n </TSDoc>\n <VarDeclaration\n name=\"envSerializer\"\n export={false}\n const={true}\n initializer={<NewExpression args={[]} target=\"EnvSerializer\" />}\n />\n <Spacing />\n\n <TSDoc heading=\"Serialize a environment configuration object to JSON data objects (not a JSON string).\">\n <TSDocRemarks>\n {`The resulting JSON object can be stringified using \\`JSON.stringify()\\`.`}\n </TSDocRemarks>\n <TSDocExample>{`const json = serializeEnv(env);`}</TSDocExample>\n <TSDocThrows>\n {`ValidationError when serialization or validation fails.`}\n </TSDocThrows>\n </TSDoc>\n <VarDeclaration\n name=\"serializeEnv\"\n export={true}\n const={true}\n initializer={\"serializeFunction<EnvBase>(envSerializer)\"}\n />\n <Spacing />\n\n <TSDoc heading=\"Deserialize a environment configuration object from JSON data objects to JavaScript objects, without running any validators.\">\n <TSDocRemarks>\n {`Types that are already correct will be used as-is.`}\n </TSDocRemarks>\n <TSDocExample>{`const env = deserializeEnv(json);`}</TSDocExample>\n <TSDocThrows>\n {`ValidationError when deserialization fails.`}\n </TSDocThrows>\n </TSDoc>\n <VarDeclaration\n name=\"deserializeEnv\"\n export={true}\n const={true}\n initializer=\"deserializeFunction<EnvBase>(envSerializer)\"\n />\n <Spacing />\n\n <TSDoc heading=\"Initializes the Powerlines environment configuration module.\">\n <TSDocRemarks>\n {`This function initializes the Powerlines environment configuration object.`}\n </TSDocRemarks>\n <TSDocParam name=\"environmentConfig\">\n {`The dynamic/runtime configuration - this could include the current environment variables or any other environment-specific settings provided by the runtime.`}\n </TSDocParam>\n <TSDocReturns>\n {`The initialized Powerlines configuration object.`}\n </TSDocReturns>\n </TSDoc>\n <Show when={Boolean(context?.entryPath)}>\n <FunctionDeclaration\n refkey={createEnvRefkey}\n async={false}\n export={true}\n name=\"createEnv\"\n parameters={[\n {\n name: \"environmentConfig\",\n type: `Partial<Env>`,\n optional: false,\n default: \"{}\"\n }\n ]}\n returnType=\"Env\">\n {code`\n return new Proxy<Env>(\n deserializeEnv({\n ...initialEnv,\n ...environmentConfig\n }) as Env,\n {\n get: (target: EnvBase, propertyName: string) => { `}\n <hbr />\n\n <For each={reflectionGetProperties}>\n {(property: ReflectionProperty, index: number) => (\n <ConfigPropertyGet\n index={index}\n context={context}\n property={property}\n />\n )}\n </For>\n {code`\n return undefined;\n }, `}\n\n <Spacing />\n {code` set: (target: EnvBase, propertyName: string, newValue: any) => { `}\n <hbr />\n\n <For each={reflectionSetProperties} ender={code` else `}>\n {(property: ReflectionProperty, index: number) => (\n <ConfigPropertySet\n index={index}\n context={context}\n property={property}\n />\n )}\n </For>\n\n <hbr />\n {code`return false;\n }\n }\n );\n`}\n </FunctionDeclaration>\n </Show>\n <Spacing />\n <hbr />\n\n <TSDoc heading=\"The environment configuration object.\">\n <TSDocRemarks>\n {`This object provides access to the environment configuration parameters in the application runtime.`}\n </TSDocRemarks>\n </TSDoc>\n <VarDeclaration\n refkey={envRefkey}\n name=\"env\"\n type=\"Env\"\n export={true}\n const={true}\n initializer={\n <>{code`createEnv(${defaultConfig || \"{}\"} as Partial<Env>);`}</>\n }\n />\n <Spacing />\n\n <VarDeclaration\n export\n const\n name=\"isCI\"\n doc=\"Detect if the application is running in a continuous integration (CI) environment.\"\n initializer={code`Boolean(\n env.CI ||\n env.RUN_ID ||\n env.AGOLA_GIT_REF ||\n env.AC_APPCIRCLE ||\n env.APPVEYOR ||\n env.CODEBUILD ||\n env.TF_BUILD ||\n env.bamboo_planKey ||\n env.BITBUCKET_COMMIT ||\n env.BITRISE_IO ||\n env.BUDDY_WORKSPACE_ID ||\n env.BUILDKITE ||\n env.CIRCLECI ||\n env.CIRRUS_CI ||\n env.CF_BUILD_ID ||\n env.CM_BUILD_ID ||\n env.CI_NAME ||\n env.DRONE ||\n env.DSARI ||\n env.EARTHLY_CI ||\n env.EAS_BUILD ||\n env.GERRIT_PROJECT ||\n env.GITEA_ACTIONS ||\n env.GITHUB_ACTIONS ||\n env.GITLAB_CI ||\n env.GOCD ||\n env.BUILDER_OUTPUT ||\n env.HARNESS_BUILD_ID ||\n env.JENKINS_URL ||\n env.LAYERCI ||\n env.MAGNUM ||\n env.NETLIFY ||\n env.NEVERCODE ||\n env.PROW_JOB_ID ||\n env.RELEASE_BUILD_ID ||\n env.RENDER ||\n env.SAILCI ||\n env.HUDSON ||\n env.SCREWDRIVER ||\n env.SEMAPHORE ||\n env.SOURCEHUT ||\n env.STRIDER ||\n env.TASK_ID ||\n env.RUN_ID ||\n env.TEAMCITY_VERSION ||\n env.TRAVIS ||\n env.VELA ||\n env.NOW_BUILDER ||\n env.APPCENTER_BUILD_ID ||\n env.CI_XCODE_PROJECT ||\n env.XCS || false\n );\n `}\n />\n <Spacing />\n\n <TSDoc heading=\"Detect the \\`mode\\` of the current runtime environment.\">\n <TSDocRemarks>\n {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:\n - \\`production\\`\n - \\`test\\`\n - \\`development\\`\n `}\n </TSDocRemarks>\n </TSDoc>\n <VarDeclaration\n export\n const\n name=\"mode\"\n initializer={code`String(env.MODE) || \"production\"; `}\n />\n <Spacing />\n\n <VarDeclaration\n export\n const\n name=\"isProduction\"\n doc='Detect if the application is running in `\"production\"` mode'\n initializer={code`[\"prd\", \"prod\", \"production\"].includes(mode.toLowerCase()); `}\n />\n <Spacing />\n\n <VarDeclaration\n export\n const\n name=\"isTest\"\n doc='Detect if the application is running in `\"test\"` mode'\n initializer={code`[\"tst\", \"test\", \"testing\", \"stg\", \"stage\", \"staging\"].includes(mode.toLowerCase()) || env.TEST; `}\n />\n <Spacing />\n\n <VarDeclaration\n export\n const\n name=\"isDevelopment\"\n doc='Detect if the application is running in `\"development\"` mode'\n initializer={code`[\"dev\", \"development\"].includes(mode.toLowerCase()); `}\n />\n <Spacing />\n\n <VarDeclaration\n export\n const\n name=\"isDebug\"\n doc=\"Detect if the application is currently being debugged\"\n initializer={code`Boolean(isDevelopment && env.DEBUG); `}\n />\n <Spacing />\n <Show when={Boolean(children)}>{children}</Show>\n </BuiltinFile>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAuCA,SAAE,kBAAA,OAAA;CACA,MAAM,CAAC,EACT,cACA,gBACO,WAAW,OAAO,CAAA,gBAAiB,aAAO,CAAO;CACxD,MAAQ,UAAC,eAA0C;AACnD,QAAO;EAAA,gBAAA,sBAAA;GACL,MAAA;GACA;GACO;GACT,UAAc;GACd,CAAA;EAAM,gBAAG,SAAuB,EAAA,CAAI;EAAE,gBAAkB,OAAO;GAC/D,SAAS;GACT,IAAO,WAAA;AACL,WAAK,gBAAA,cAAA,EACL,UAAY,iPACZ,CAAA;;GAEA,CAAA;EAAA,gBAAY,iBAAA;GACZ,MAAA;GACA,UAAA;GACA,IAAM,WAAW;AACb,WAAG,IAAA;mCACc,QAAA,OAAA,IAAA,OAAA,KAAA,WAAA,OAAA,OAAA,QAAA,OAAA,GAAA,CAAA,YAAA,CAAA,KAAA,IAA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O;;KAEP,aAAA,IAAA;KACA,CAAC;IAAA,gBAAA,SAAA,EAAA,CAAA;IAAA,gBAAA,gBAAA;KACA,UAAA;KACA,SAAM;KACN,MAAK;KACL,KAAA;KACA,aAAU,IAAA;KACX,CAAC;IAAE,gBAAY,SAAA,EAAA,CAAA;IAAA,gBAAA,gBAAA;KACd,UAAM;KACN,SAAM;KACN,MAAM;KACN,KAAK;KACL,aAAM,IAAU;KACjB,CAAC;IAAE,gBAAkB,SAAE,EAAA,CAAA;IAAA,gBAAA,MAAA;KACtB,IAAE,OAAI;AACJ,aAAI,QAAW,SAAC;;KAEZ;KACP,CAAC;IAAC;;EAEN,CAAC,CAAC"}
1
+ {"version":3,"file":"env-builtin.mjs","names":[],"sources":["../../src/components/env-builtin.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport {\n Children,\n code,\n computed,\n For,\n Show,\n splitProps\n} from \"@alloy-js/core\";\nimport {\n ClassDeclaration,\n ClassMethod,\n ElseIfClause,\n FunctionDeclaration,\n IfStatement,\n NewExpression,\n TypeDeclaration,\n VarDeclaration\n} from \"@alloy-js/typescript\";\nimport {\n ReflectionClass,\n ReflectionKind,\n ReflectionProperty\n} from \"@powerlines/deepkit/vendor/type\";\nimport { Spacing } from \"@powerlines/plugin-alloy/core/components/spacing\";\nimport { usePowerlines } from \"@powerlines/plugin-alloy/core/contexts/context\";\nimport { refkey } from \"@powerlines/plugin-alloy/helpers/refkey\";\nimport { ComponentProps } from \"@powerlines/plugin-alloy/types/components\";\nimport {\n BuiltinFile,\n BuiltinFileProps\n} from \"@powerlines/plugin-alloy/typescript/components/builtin-file\";\nimport type { InterfaceDeclarationProps } from \"@powerlines/plugin-alloy/typescript/components/interface-declaration\";\nimport { InterfaceDeclaration } from \"@powerlines/plugin-alloy/typescript/components/interface-declaration\";\nimport { ObjectDeclaration } from \"@powerlines/plugin-alloy/typescript/components/object-declaration\";\nimport {\n TSDoc,\n TSDocExample,\n TSDocLink,\n TSDocParam,\n TSDocRemarks,\n TSDocReturns,\n TSDocThrows\n} from \"@powerlines/plugin-alloy/typescript/components/tsdoc\";\nimport { titleCase } from \"@stryke/string-format/title-case\";\nimport defu from \"defu\";\nimport { loadEnvFromContext } from \"../helpers/load\";\nimport { EnvPluginContext } from \"../types/plugin\";\n\n/**\n * Generates the environment configuration typescript definition for the Powerlines project.\n */\nexport function EnvTypeDefinition(\n props: Omit<InterfaceDeclarationProps, \"name\">\n) {\n const [{ defaultValue, reflection }] = splitProps(props, [\n \"defaultValue\",\n \"reflection\"\n ]);\n\n const context = usePowerlines<EnvPluginContext>();\n\n return (\n <>\n <InterfaceDeclaration\n name=\" EnvBase\"\n defaultValue={defaultValue}\n reflection={reflection}\n export\n />\n <Spacing />\n <TSDoc heading=\"The environment configuration object with prefixed keys.\">\n <TSDocRemarks>\n {`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.`}\n </TSDocRemarks>\n </TSDoc>\n <TypeDeclaration name=\"Env\" export>\n {code` {\n [Key in keyof EnvBase as Key ${context.config.env.prefix\n .map(prefix => `| \\`${prefix.replace(/_$/g, \"\")}_\\${Key}\\``)\n .join(\" \")}]: EnvBase[Key];\n}\n`}\n </TypeDeclaration>\n <Spacing />\n </>\n );\n}\n\ninterface ConfigPropertyConditionalProps extends ComponentProps {\n context: EnvPluginContext;\n name: string;\n}\n\nfunction ConfigPropertyConditional(props: ConfigPropertyConditionalProps) {\n const [{ context, name }] = splitProps(props, [\"context\", \"name\"]);\n\n return code`propertyName === \"${name}\" || propertyName.replace(/^(${context.config.env.prefix\n .sort((a, b) =>\n a.startsWith(b) ? -1 : b.startsWith(a) ? 1 : a.localeCompare(b)\n )\n .map(prefix => `${prefix.replace(/_$/, \"\")}_`)\n .join(\"|\")})/g, \"\").toLowerCase().replace(/[\\\\s\\\\-_]+/g, \"\") === \"${name\n .toLowerCase()\n .replace(/[\\s\\-_]+/g, \"\")}\"`;\n}\n\ninterface ConfigPropertyProps extends ComponentProps {\n index: number;\n context: EnvPluginContext;\n property: ReflectionProperty;\n}\n\nfunction ConfigPropertyGet(props: ConfigPropertyProps) {\n const [{ context, property, index }] = splitProps(props, [\n \"context\",\n \"property\",\n \"index\"\n ]);\n\n return (\n <>\n {index === 0 ? (\n <IfStatement\n condition={\n <>\n <ConfigPropertyConditional\n name={property.getNameAsString()}\n context={context}\n />\n <Show\n when={property.getAlias() && property.getAlias().length > 0}>\n {code` || `}\n <For each={property.getAlias()} joiner={code` || `}>\n {alias => (\n <ConfigPropertyConditional name={alias} context={context} />\n )}\n </For>\n </Show>\n </>\n }>\n {code`return target[\"${property.getNameAsString()}\"];`}\n </IfStatement>\n ) : (\n <ElseIfClause\n condition={\n <>\n <ConfigPropertyConditional\n name={property.getNameAsString()}\n context={context}\n />\n <Show\n when={property.getAlias() && property.getAlias().length > 0}>\n {code` || `}\n <For each={property.getAlias()} joiner={code` || `}>\n {alias => (\n <ConfigPropertyConditional name={alias} context={context} />\n )}\n </For>\n </Show>\n </>\n }>\n {code`return target[\"${property.getNameAsString()}\"];`}\n </ElseIfClause>\n )}\n </>\n );\n}\n\nfunction ConfigPropertySet(props: ConfigPropertyProps) {\n const [{ context, property, index }] = splitProps(props, [\n \"context\",\n \"property\",\n \"index\"\n ]);\n\n return (\n <>\n {index === 0 ? (\n <IfStatement\n condition={\n <>\n <ConfigPropertyConditional\n name={property.getNameAsString()}\n context={context}\n />\n <Show\n when={property.getAlias() && property.getAlias().length > 0}>\n {code` || `}\n <For each={property.getAlias()} joiner={code` || `}>\n {alias => (\n <ConfigPropertyConditional name={alias} context={context} />\n )}\n </For>\n </Show>\n </>\n }>\n {code`\n target[\"${property.getNameAsString()}\"] = newValue;\n return true;\n`}\n </IfStatement>\n ) : (\n <ElseIfClause\n condition={\n <>\n <ConfigPropertyConditional\n name={property.getNameAsString()}\n context={context}\n />\n <Show\n when={property.getAlias() && property.getAlias().length > 0}>\n {code` || `}\n <For each={property.getAlias()} joiner={code` || `}>\n {alias => (\n <ConfigPropertyConditional name={alias} context={context} />\n )}\n </For>\n </Show>\n </>\n }>\n {code`\n target[\"${property.getNameAsString()}\"] = newValue;\n return true;\n`}\n </ElseIfClause>\n )}\n </>\n );\n}\n\nexport interface EnvBuiltinProps extends Omit<BuiltinFileProps, \"id\"> {\n defaultConfig?: Children;\n reflection: ReflectionClass<any>;\n}\n\nconst createEnvRefkey = refkey(\"createEnv\");\nconst envRefkey = refkey(\"env\");\nconst envSerializerRefkey = refkey(\"EnvSerializer\");\n\n/**\n * Generates the environment configuration module for the Powerlines project.\n */\nexport function EnvBuiltin(props: EnvBuiltinProps) {\n const [{ defaultConfig, reflection, children }, rest] = splitProps(props, [\n \"defaultConfig\",\n \"reflection\",\n \"children\"\n ]);\n\n const context = usePowerlines<EnvPluginContext>();\n const defaultValue = computed(\n () => context && loadEnvFromContext(context, process.env)\n );\n\n const envInstance = computed(() => {\n const result = new ReflectionClass(\n {\n kind: ReflectionKind.objectLiteral,\n description: `The initial environment configuration state for the ${titleCase(\n context?.config?.name\n )} project.`,\n types: []\n },\n reflection\n );\n\n result\n .getProperties()\n .filter(\n property => property.isRuntime() || property.getTags().runtime === true\n )\n .forEach(property => {\n result.removeProperty(property.getNameAsString());\n });\n\n return result;\n });\n\n const reflectionGetProperties = computed(\n () =>\n reflection\n ?.getProperties()\n .filter(property => !property.isIgnored())\n .sort((a, b) =>\n a.getNameAsString().localeCompare(b.getNameAsString())\n ) ?? []\n );\n const reflectionSetProperties = computed(\n () =>\n reflection\n ?.getProperties()\n .filter(property => !property.isIgnored() && !property.isReadonly())\n .sort((a, b) =>\n a.getNameAsString().localeCompare(b.getNameAsString())\n ) ?? []\n );\n\n return (\n <BuiltinFile\n id=\"env\"\n description=\"The environment configuration module provides an interface to define environment configuration parameters.\"\n {...rest}\n imports={defu(\n {\n \"@powerlines/deepkit/vendor/type\": [\n \"serializeFunction\",\n \"deserializeFunction\",\n \"ReflectionKind\",\n \"Serializer\",\n \"TemplateState\",\n \"Type\",\n \"TypeProperty\",\n \"TypePropertySignature\"\n ]\n },\n rest.imports ?? {}\n )}>\n <Show when={Boolean(reflection)}>\n <EnvTypeDefinition\n defaultValue={defaultValue}\n reflection={reflection}\n />\n <hbr />\n <hbr />\n </Show>\n\n <ObjectDeclaration\n name=\"initialEnv\"\n type=\"Partial<EnvBase>\"\n defaultValue={defaultValue}\n reflection={envInstance}\n export\n const\n doc=\"The initial environment configuration object values for the runtime.\"\n />\n <Spacing />\n\n <TSDoc heading=\"The environment configuration serializer for the Powerlines application.\">\n <TSDocLink>\n {`https://deepkit.io/docs/serialization/serializers`}\n </TSDocLink>\n <TSDocLink>\n {`https://github.com/marcj/untitled-code/blob/master/packages/type/src/serializer.ts#L1918`}\n </TSDocLink>\n <TSDocRemarks>\n {`This serializer is used to serialize and deserialize the Powerlines environment configuration.`}\n </TSDocRemarks>\n </TSDoc>\n <ClassDeclaration\n refkey={envSerializerRefkey}\n name=\"EnvSerializer\"\n extends=\"Serializer\"\n export>\n <ClassMethod\n name=\"constructor\"\n public\n doc=\"Initializes a new instance of the `EnvSerializer` class.\">\n {code`super(\"env\");\n\n this.deserializeRegistry.register(\n ReflectionKind.boolean,\n (type: Type, state: TemplateState) => {\n state.addSetter(\n \\`typeof \\${state.accessor.toString()} !== \"boolean\" ? \\${state.accessor.toString()} === 1 || \\${state.accessor.toString()} === \"1\" || \\${state.accessor.toString()}.toLowerCase() === \"t\" || \\${state.accessor.toString()}.toLowerCase() === \"true\" || \\${state.accessor.toString()}.toLowerCase() === \"y\" || \\${state.accessor.toString()}.toLowerCase() === \"yes\" : \\${state.accessor.toString()}\\`\n );\n }\n ); `}\n </ClassMethod>\n </ClassDeclaration>\n <Spacing />\n\n <TSDoc heading=\"A {@link EnvSerializer | environment configuration serializer} instance for the Powerlines application.\">\n <TSDocLink>\n {`https://deepkit.io/docs/serialization/serializers`}\n </TSDocLink>\n <TSDocLink>\n {`https://github.com/marcj/untitled-code/blob/master/packages/type/src/serializer.ts#L1918`}\n </TSDocLink>\n <TSDocRemarks>\n {`This serializer is used to serialize and deserialize the Powerlines environment configuration.`}\n </TSDocRemarks>\n </TSDoc>\n <VarDeclaration\n name=\"envSerializer\"\n export={false}\n const\n initializer={<NewExpression args={[]} target=\"EnvSerializer\" />}\n />\n <Spacing />\n\n <TSDoc heading=\"Serialize a environment configuration object to JSON data objects (not a JSON string).\">\n <TSDocRemarks>\n {`The resulting JSON object can be stringified using \\`JSON.stringify()\\`.`}\n </TSDocRemarks>\n <TSDocExample>{`const json = serializeEnv(env);`}</TSDocExample>\n <TSDocThrows>\n {`ValidationError when serialization or validation fails.`}\n </TSDocThrows>\n </TSDoc>\n <VarDeclaration\n name=\"serializeEnv\"\n export\n const\n initializer={\"serializeFunction<EnvBase>(envSerializer)\"}\n />\n <Spacing />\n\n <TSDoc heading=\"Deserialize a environment configuration object from JSON data objects to JavaScript objects, without running any validators.\">\n <TSDocRemarks>\n {`Types that are already correct will be used as-is.`}\n </TSDocRemarks>\n <TSDocExample>{`const env = deserializeEnv(json);`}</TSDocExample>\n <TSDocThrows>\n {`ValidationError when deserialization fails.`}\n </TSDocThrows>\n </TSDoc>\n <VarDeclaration\n name=\"deserializeEnv\"\n export\n const\n initializer=\"deserializeFunction<EnvBase>(envSerializer)\"\n />\n <Spacing />\n\n <TSDoc heading=\"Initializes the Powerlines environment configuration module.\">\n <TSDocRemarks>\n {`This function initializes the Powerlines environment configuration object.`}\n </TSDocRemarks>\n <TSDocParam name=\"environmentConfig\">\n {`The dynamic/runtime configuration - this could include the current environment variables or any other environment-specific settings provided by the runtime.`}\n </TSDocParam>\n <TSDocReturns>\n {`The initialized Powerlines configuration object.`}\n </TSDocReturns>\n </TSDoc>\n <Show when={Boolean(context?.entryPath)}>\n <FunctionDeclaration\n refkey={createEnvRefkey}\n async={false}\n export\n name=\"createEnv\"\n parameters={[\n {\n name: \"environmentConfig\",\n type: `Partial<Env>`,\n optional: false,\n default: \"{}\"\n }\n ]}\n returnType=\"Env\">\n {code`\n return new Proxy<Env>(\n deserializeEnv({\n ...initialEnv,\n ...environmentConfig\n }) as Env,\n {\n get: (target: EnvBase, propertyName: string) => { `}\n <hbr />\n\n <For each={reflectionGetProperties}>\n {(property: ReflectionProperty, index: number) => (\n <ConfigPropertyGet\n index={index}\n context={context}\n property={property}\n />\n )}\n </For>\n {code`\n return undefined;\n }, `}\n\n <Spacing />\n {code` set: (target: EnvBase, propertyName: string, newValue: any) => { `}\n <hbr />\n\n <For each={reflectionSetProperties} ender={code` else `}>\n {(property: ReflectionProperty, index: number) => (\n <ConfigPropertySet\n index={index}\n context={context}\n property={property}\n />\n )}\n </For>\n\n <hbr />\n {code`return false;\n }\n }\n );\n`}\n </FunctionDeclaration>\n </Show>\n <Spacing />\n <hbr />\n\n <TSDoc heading=\"The environment configuration object.\">\n <TSDocRemarks>\n {`This object provides access to the environment configuration parameters in the application runtime.`}\n </TSDocRemarks>\n </TSDoc>\n <VarDeclaration\n refkey={envRefkey}\n name=\"env\"\n type=\"Env\"\n export\n const\n initializer={\n <>{code`createEnv(${defaultConfig || \"{}\"} as Partial<Env>);`}</>\n }\n />\n <Spacing />\n\n <VarDeclaration\n export\n const\n name=\"isCI\"\n doc=\"Detect if the application is running in a continuous integration (CI) environment.\"\n initializer={code`Boolean(\n env.CI ||\n env.RUN_ID ||\n env.AGOLA_GIT_REF ||\n env.AC_APPCIRCLE ||\n env.APPVEYOR ||\n env.CODEBUILD ||\n env.TF_BUILD ||\n env.bamboo_planKey ||\n env.BITBUCKET_COMMIT ||\n env.BITRISE_IO ||\n env.BUDDY_WORKSPACE_ID ||\n env.BUILDKITE ||\n env.CIRCLECI ||\n env.CIRRUS_CI ||\n env.CF_BUILD_ID ||\n env.CM_BUILD_ID ||\n env.CI_NAME ||\n env.DRONE ||\n env.DSARI ||\n env.EARTHLY_CI ||\n env.EAS_BUILD ||\n env.GERRIT_PROJECT ||\n env.GITEA_ACTIONS ||\n env.GITHUB_ACTIONS ||\n env.GITLAB_CI ||\n env.GOCD ||\n env.BUILDER_OUTPUT ||\n env.HARNESS_BUILD_ID ||\n env.JENKINS_URL ||\n env.LAYERCI ||\n env.MAGNUM ||\n env.NETLIFY ||\n env.NEVERCODE ||\n env.PROW_JOB_ID ||\n env.RELEASE_BUILD_ID ||\n env.RENDER ||\n env.SAILCI ||\n env.HUDSON ||\n env.SCREWDRIVER ||\n env.SEMAPHORE ||\n env.SOURCEHUT ||\n env.STRIDER ||\n env.TASK_ID ||\n env.RUN_ID ||\n env.TEAMCITY_VERSION ||\n env.TRAVIS ||\n env.VELA ||\n env.NOW_BUILDER ||\n env.APPCENTER_BUILD_ID ||\n env.CI_XCODE_PROJECT ||\n env.XCS || false\n );\n `}\n />\n <Spacing />\n\n <TSDoc heading=\"Detect the \\`mode\\` of the current runtime environment.\">\n <TSDocRemarks>\n {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:\n - \\`production\\`\n - \\`test\\`\n - \\`development\\`\n `}\n </TSDocRemarks>\n </TSDoc>\n <VarDeclaration\n export\n const\n name=\"mode\"\n initializer={code`String(env.MODE) || \"production\"; `}\n />\n <Spacing />\n\n <VarDeclaration\n export\n const\n name=\"isProduction\"\n doc='Detect if the application is running in `\"production\"` mode'\n initializer={code`[\"prd\", \"prod\", \"production\"].includes(mode.toLowerCase()); `}\n />\n <Spacing />\n\n <VarDeclaration\n export\n const\n name=\"isTest\"\n doc='Detect if the application is running in `\"test\"` mode'\n initializer={code`[\"tst\", \"test\", \"testing\", \"stg\", \"stage\", \"staging\"].includes(mode.toLowerCase()) || env.TEST; `}\n />\n <Spacing />\n\n <VarDeclaration\n export\n const\n name=\"isDevelopment\"\n doc='Detect if the application is running in `\"development\"` mode'\n initializer={code`[\"dev\", \"development\"].includes(mode.toLowerCase()); `}\n />\n <Spacing />\n\n <VarDeclaration\n export\n const\n name=\"isDebug\"\n doc=\"Detect if the application is currently being debugged\"\n initializer={code`Boolean(isDevelopment && env.DEBUG); `}\n />\n <Spacing />\n <Show when={Boolean(children)}>{children}</Show>\n </BuiltinFile>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAuCA,SAAE,kBAAA,OAAA;CACA,MAAM,CAAC,EACT,cACA,gBACO,WAAW,OAAO,CAAA,gBAAiB,aAAO,CAAO;CACxD,MAAQ,UAAC,eAA0C;AACnD,QAAO;EAAA,gBAAA,sBAAA;GACL,MAAA;GACA;GACO;GACT,UAAc;GACd,CAAA;EAAM,gBAAG,SAAuB,EAAA,CAAI;EAAE,gBAAkB,OAAO;GAC/D,SAAS;GACT,IAAO,WAAA;AACL,WAAK,gBAAA,cAAA,EACL,UAAY,iPACZ,CAAA;;GAEA,CAAA;EAAA,gBAAY,iBAAA;GACZ,MAAA;GACA,UAAA;GACA,IAAM,WAAW;AACb,WAAG,IAAA;mCACc,QAAA,OAAA,IAAA,OAAA,KAAA,WAAA,OAAA,OAAA,QAAA,OAAA,GAAA,CAAA,YAAA,CAAA,KAAA,IAAA,CAAA;;;;GAIrB,CAAA;EAAA,gBAAA,SAAA,EAAA,CAAA;EAAA;;AAMF,SAAS,0BAA0B,OAAwB;CACzD,MAAG,CAAA,EACD,SACA;AAEF,QAAM,IAAA,qBAAwB,KAAA,+BAAmB,QAAA,OAAA,IAAA,OAAA,MAAA,GAAA,MAAA,EAAA,WAAA,EAAA,GAAA,KAAA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A,gBAAA;KACA,UAAU;KACV,SAAK;KACL,MAAA;KACA,KAAK;KACL,aAAa,IAAC;KACf,CAAC;IAAE,gBAAkB,SAAC,EAAA,CAAA;IAAA,gBAAA,MAAA;KACrB,IAAE,OAAI;AACJ,aAAI,QAAU,SAAA;;KAEV;KACP,CAAC;IAAC;;EAEN,CAAC,CAAC"}
@@ -1,3 +1,3 @@
1
- import { EnvDocsFile, EnvDocsFileProps, __ΩEnvDocsFileProps } from "./docs.cjs";
2
- import { EnvBuiltin, EnvBuiltinProps, EnvTypeDefinition, __ΩEnvBuiltinProps } from "./env-builtin.cjs";
3
- export { EnvBuiltin, EnvBuiltinProps, EnvDocsFile, EnvDocsFileProps, EnvTypeDefinition, __ΩEnvBuiltinProps, __ΩEnvDocsFileProps };
1
+ import { EnvDocsFile, EnvDocsFileProps } from "./docs.cjs";
2
+ import { EnvBuiltin, EnvBuiltinProps, EnvTypeDefinition } from "./env-builtin.cjs";
3
+ export { EnvBuiltin, EnvBuiltinProps, EnvDocsFile, EnvDocsFileProps, EnvTypeDefinition };
@@ -1,3 +1,3 @@
1
- import { EnvDocsFile, EnvDocsFileProps, __ΩEnvDocsFileProps } from "./docs.mjs";
2
- import { EnvBuiltin, EnvBuiltinProps, EnvTypeDefinition, __ΩEnvBuiltinProps } from "./env-builtin.mjs";
3
- export { EnvBuiltin, EnvBuiltinProps, EnvDocsFile, EnvDocsFileProps, EnvTypeDefinition, __ΩEnvBuiltinProps, __ΩEnvDocsFileProps };
1
+ import { EnvDocsFile, EnvDocsFileProps } from "./docs.mjs";
2
+ import { EnvBuiltin, EnvBuiltinProps, EnvTypeDefinition } from "./env-builtin.mjs";
3
+ export { EnvBuiltin, EnvBuiltinProps, EnvDocsFile, EnvDocsFileProps, EnvTypeDefinition };
@@ -1,7 +1,7 @@
1
1
  import { createReflection } from "./create-reflection-resource.cjs";
2
2
  import { loadEnv, loadEnvFromContext } from "./load.cjs";
3
3
  import { getEnvDefaultTypeDefinition, getEnvReflectionsPath, getEnvTypeReflectionsPath, getSecretsDefaultTypeDefinition, readEnvReflection, readEnvTypeReflection, readSecretsReflection, resolveRuntimeTypeFile, writeEnvReflection, writeEnvReflectionSync, writeEnvTypeReflection } from "./persistence.cjs";
4
- import { BaseEnv, BaseSecrets, CreateEnvReflectionOptions, __ΩCreateEnvReflectionOptions, createEnvReflection, createSecretsReflection, mergeEnvReflections, mergeSecretsReflections, reflectEnv, reflectSecrets } from "./reflect.cjs";
4
+ import { BaseEnv, BaseSecrets, CreateEnvReflectionOptions, createEnvReflection, createSecretsReflection, mergeEnvReflections, mergeSecretsReflections, reflectEnv, reflectSecrets } from "./reflect.cjs";
5
5
  import { formatEnvField, removeEnvPrefix } from "./source-file-env.cjs";
6
6
  import { createTemplateReflection } from "./template-helpers.cjs";
7
- export { BaseEnv, BaseSecrets, CreateEnvReflectionOptions, __ΩCreateEnvReflectionOptions, createEnvReflection, createReflection, createSecretsReflection, createTemplateReflection, formatEnvField, getEnvDefaultTypeDefinition, getEnvReflectionsPath, getEnvTypeReflectionsPath, getSecretsDefaultTypeDefinition, loadEnv, loadEnvFromContext, mergeEnvReflections, mergeSecretsReflections, readEnvReflection, readEnvTypeReflection, readSecretsReflection, reflectEnv, reflectSecrets, removeEnvPrefix, resolveRuntimeTypeFile, writeEnvReflection, writeEnvReflectionSync, writeEnvTypeReflection };
7
+ export { BaseEnv, BaseSecrets, CreateEnvReflectionOptions, createEnvReflection, createReflection, createSecretsReflection, createTemplateReflection, formatEnvField, getEnvDefaultTypeDefinition, getEnvReflectionsPath, getEnvTypeReflectionsPath, getSecretsDefaultTypeDefinition, loadEnv, loadEnvFromContext, mergeEnvReflections, mergeSecretsReflections, readEnvReflection, readEnvTypeReflection, readSecretsReflection, reflectEnv, reflectSecrets, removeEnvPrefix, resolveRuntimeTypeFile, writeEnvReflection, writeEnvReflectionSync, writeEnvTypeReflection };
@@ -1,7 +1,7 @@
1
1
  import { createReflection } from "./create-reflection-resource.mjs";
2
2
  import { loadEnv, loadEnvFromContext } from "./load.mjs";
3
3
  import { getEnvDefaultTypeDefinition, getEnvReflectionsPath, getEnvTypeReflectionsPath, getSecretsDefaultTypeDefinition, readEnvReflection, readEnvTypeReflection, readSecretsReflection, resolveRuntimeTypeFile, writeEnvReflection, writeEnvReflectionSync, writeEnvTypeReflection } from "./persistence.mjs";
4
- import { BaseEnv, BaseSecrets, CreateEnvReflectionOptions, __ΩCreateEnvReflectionOptions, createEnvReflection, createSecretsReflection, mergeEnvReflections, mergeSecretsReflections, reflectEnv, reflectSecrets } from "./reflect.mjs";
4
+ import { BaseEnv, BaseSecrets, CreateEnvReflectionOptions, createEnvReflection, createSecretsReflection, mergeEnvReflections, mergeSecretsReflections, reflectEnv, reflectSecrets } from "./reflect.mjs";
5
5
  import { formatEnvField, removeEnvPrefix } from "./source-file-env.mjs";
6
6
  import { createTemplateReflection } from "./template-helpers.mjs";
7
- export { BaseEnv, BaseSecrets, CreateEnvReflectionOptions, __ΩCreateEnvReflectionOptions, createEnvReflection, createReflection, createSecretsReflection, createTemplateReflection, formatEnvField, getEnvDefaultTypeDefinition, getEnvReflectionsPath, getEnvTypeReflectionsPath, getSecretsDefaultTypeDefinition, loadEnv, loadEnvFromContext, mergeEnvReflections, mergeSecretsReflections, readEnvReflection, readEnvTypeReflection, readSecretsReflection, reflectEnv, reflectSecrets, removeEnvPrefix, resolveRuntimeTypeFile, writeEnvReflection, writeEnvReflectionSync, writeEnvTypeReflection };
7
+ export { BaseEnv, BaseSecrets, CreateEnvReflectionOptions, createEnvReflection, createReflection, createSecretsReflection, createTemplateReflection, formatEnvField, getEnvDefaultTypeDefinition, getEnvReflectionsPath, getEnvTypeReflectionsPath, getSecretsDefaultTypeDefinition, loadEnv, loadEnvFromContext, mergeEnvReflections, mergeSecretsReflections, readEnvReflection, readEnvTypeReflection, readSecretsReflection, reflectEnv, reflectSecrets, removeEnvPrefix, resolveRuntimeTypeFile, writeEnvReflection, writeEnvReflectionSync, writeEnvTypeReflection };
@@ -47,13 +47,13 @@ mergeSecretsReflections.__type = [
47
47
  "Pn!2\"P\"7#F2$P\"7%/&"
48
48
  ];
49
49
  const __ΩCreateEnvReflectionOptions = [
50
- () => _powerlines_deepkit_vendor_type.__ΩTypeObjectLiteral,
51
- () => _powerlines_deepkit_vendor_type.__ΩTypeClass,
50
+ "TypeObjectLiteral",
51
+ "TypeClass",
52
52
  "type",
53
53
  () => _powerlines_deepkit_vendor_type.ReflectionClass,
54
54
  "superReflection",
55
55
  "CreateEnvReflectionOptions",
56
- "PPn!n\"J4#8P\"7$4%8Mw&y"
56
+ "PP\"w!\"w\"J4#8P\"7$4%8Mw&y"
57
57
  ];
58
58
  var BaseEnv = class {
59
59
  APP_NAME;
@@ -63,7 +63,6 @@ declare function reflectEnv(context: EnvPluginContext, file?: string, name?: str
63
63
  * @returns A reflection of the secrets configuration type definition, merged with the default secrets configuration reflection and the currently used secrets configuration reflection. The resulting reflection will contain the structure of the expected environment secrets as defined by the type definitions provided in the plugin configuration, as well as any additional properties that are currently used in the source code and defined in the default secrets configuration reflection.
64
64
  */
65
65
  declare function reflectSecrets(context: EnvPluginContext, file?: string, name?: string): Promise<ReflectionClass<any>>;
66
- declare type __ΩCreateEnvReflectionOptions = any[];
67
66
  //#endregion
68
- export { BaseEnv, BaseSecrets, CreateEnvReflectionOptions, __ΩCreateEnvReflectionOptions, createEnvReflection, createSecretsReflection, mergeEnvReflections, mergeSecretsReflections, reflectEnv, reflectSecrets };
67
+ export { BaseEnv, BaseSecrets, CreateEnvReflectionOptions, createEnvReflection, createSecretsReflection, mergeEnvReflections, mergeSecretsReflections, reflectEnv, reflectSecrets };
69
68
  //# sourceMappingURL=reflect.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"reflect.d.cts","names":[],"sources":["../../src/helpers/reflect.ts"],"mappings":";;;;;iBAuCgB,mBAAA,CACd,OAAA,EAAS,gBAAA,EACT,WAAA,EAAa,eAAA,UACZ,eAAA;AAAA,iBAQa,uBAAA,CACd,OAAA,E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EA,WAAA;EAEA,QAAA;EAEA,eAAA;EAEA,cAAA;EAEA,UAAA;EAEA,WAAA;EAEA,YAAA;EAEA,QAAA;EAEA,IAAA;EAEA,WAAA;EAEA,KAAA;EAEA,IAAA;EAEA,OAAA;EAEA,QAAA;EAEA,WAAA;EAEA,eAAA;EAEA,UAAA;EAEA,kBAAA;EAEA,SAAA;EAEA,gBAAA;EAEA,cAAA;EAEA,EAAA;AAAA;AAAA,cAGW,WAAA,YAAuB,gBAAA;EAClC,cAAA;AAAA;AAAA,iBAGc,mBAAA,CACd,OAAA,EAAS,gBAAA,EACT,OAAA,GAAS,0BAAA,GACR,eAAA;AAAA,iBAyCa,uBAAA,CACd,OAAA,EAAS,gBAAA,EACT,OAAA,GAAS,0BAAA,GACR,eAAA;;;;;;;;;;;;iBAoDmB,UAAA,CACpB,OAAA,EAAS,gBAAA,EACT,IAAA,WACA,IAAA,YAAa,OAAA,CAAA,eAAA;;;;;;;;;;;;iBAqCO,cAAA,CACpB,OAAA,EAAS,gBAAA,EACT,IAAA,WACA,IAAA,YAAa,OAAA,CAAA,eAAA"}
@@ -63,7 +63,6 @@ declare function reflectEnv(context: EnvPluginContext, file?: string, name?: str
63
63
  * @returns A reflection of the secrets configuration type definition, merged with the default secrets configuration reflection and the currently used secrets configuration reflection. The resulting reflection will contain the structure of the expected environment secrets as defined by the type definitions provided in the plugin configuration, as well as any additional properties that are currently used in the source code and defined in the default secrets configuration reflection.
64
64
  */
65
65
  declare function reflectSecrets(context: EnvPluginContext, file?: string, name?: string): Promise<ReflectionClass<any>>;
66
- declare type __ΩCreateEnvReflectionOptions = any[];
67
66
  //#endregion
68
- export { BaseEnv, BaseSecrets, CreateEnvReflectionOptions, __ΩCreateEnvReflectionOptions, createEnvReflection, createSecretsReflection, mergeEnvReflections, mergeSecretsReflections, reflectEnv, reflectSecrets };
67
+ export { BaseEnv, BaseSecrets, CreateEnvReflectionOptions, createEnvReflection, createSecretsReflection, mergeEnvReflections, mergeSecretsReflections, reflectEnv, reflectSecrets };
69
68
  //# sourceMappingURL=reflect.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"reflect.d.mts","names":[],"sources":["../../src/helpers/reflect.ts"],"mappings":";;;;;iBAuCgB,mBAAA,CACd,OAAA,EAAS,gBAAA,EACT,WAAA,EAAa,eAAA,UACZ,eAAA;AAAA,iBAQa,uBAAA,CACd,OAAA,EAAS,gBAAA,EACT,WAAA,EAAa,eAAA,UACZ,eAAA;AAAA,UAQc,0BAAA;EACf,IAAA,GAAO,iBAAA,GAAoB,SAAA;EAC3B,eAAA,GAAkB,eAAA;AAAA;AAAA,cAGP,OAAA,YAAmB,YAAA;EAC9B,QAAA;EAEA,WAAA;EAEA,QAAA;EAEA,eAAA;EAEA,cAAA;EAEA,UAAA;EAEA,WAAA;EAEA,YAAA;EAEA,QAAA;EAEA,IAAA;EAEA,WAAA;EAEA,KAAA;EAEA,IAAA;EAEA,OAAA;EAEA,QAAA;EAEA,WAAA;EAEA,eAAA;EAEA,UAAA;EAEA,kBAAA;EAEA,SAAA;EAEA,gBAAA;EAEA,cAAA;EAEA,EAAA;AAAA;AAAA,cAGW,WAAA,YAAuB,gBAAA;EAClC,cAAA;AAAA;AAAA,iBAGc,mBAAA,CACd,OAAA,EAAS,gBAAA,EACT,OAAA,GAAS,0BAAA,GACR,eAAA;AAAA,iBAyCa,uBAAA,CACd,OAAA,EAAS,gBAAA,EACT,OAAA,GAAS,0BAAA,GACR,eAAA;;;;;;;;;;;;iBAoDmB,UAAA,CACpB,OAAA,EAAS,gBAAA,EACT,IAAA,WACA,IAAA,YAAa,OAAA,CAAA,eAAA;;;;;;;;;;;;iBAqCO,cAAA,CACpB,OAAA,EAAS,gBAAA,EACT,IAAA,WACA,IAAA,YAAa,OAAA,CAAA,eAAA;AAAA"}
1
+ {"version":3,"file":"reflect.d.mts","names":[],"sources":["../../src/helpers/reflect.ts"],"mappings":";;;;;iBAuCgB,mBAAA,CACd,OAAA,EAAS,gBAAA,EACT,WAAA,EAAa,eAAA,UACZ,eAAA;AAAA,iBAQa,uBAAA,CACd,OAAA,EAAS,gBAAA,EACT,WAAA,EAAa,eAAA,UACZ,eAAA;AAAA,UAQc,0BAAA;EACf,IAAA,GAAO,iBAAA,GAAoB,SAAA;EAC3B,eAAA,GAAkB,eAAA;AAAA;AAAA,cAGP,OAAA,YAAmB,YAAA;EAC9B,QAAA;EAEA,WAAA;EAEA,QAAA;EAEA,eAAA;EAEA,cAAA;EAEA,UAAA;EAEA,WAAA;EAEA,YAAA;EAEA,QAAA;EAEA,IAAA;EAEA,WAAA;EAEA,KAAA;EAEA,IAAA;EAEA,OAAA;EAEA,QAAA;EAEA,WAAA;EAEA,eAAA;EAEA,UAAA;EAEA,kBAAA;EAEA,SAAA;EAEA,gBAAA;EAEA,cAAA;EAEA,EAAA;AAAA;AAAA,cAGW,WAAA,YAAuB,gBAAA;EAClC,cAAA;AAAA;AAAA,iBAGc,mBAAA,CACd,OAAA,EAAS,gBAAA,EACT,OAAA,GAAS,0BAAA,GACR,eAAA;AAAA,iBAyCa,uBAAA,CACd,OAAA,EAAS,gBAAA,EACT,OAAA,GAAS,0BAAA,GACR,eAAA;;;;;;;;;;;;iBAoDmB,UAAA,CACpB,OAAA,EAAS,gBAAA,EACT,IAAA,WACA,IAAA,YAAa,OAAA,CAAA,eAAA;;;;;;;;;;;;iBAqCO,cAAA,CACpB,OAAA,EAAS,gBAAA,EACT,IAAA,WACA,IAAA,YAAa,OAAA,CAAA,eAAA"}
@@ -1,7 +1,7 @@
1
1
  import { __ΩEnvInterface, __ΩSecretsInterface } from "../types/runtime.mjs";
2
2
  import { __ΩEnvPluginContext } from "../types/plugin.mjs";
3
3
  import { getEnvDefaultTypeDefinition, getSecretsDefaultTypeDefinition, readEnvTypeReflection, readSecretsReflection } from "./persistence.mjs";
4
- import { ReflectionClass, ReflectionKind, __ΩTypeClass, __ΩTypeObjectLiteral, merge, resolveClassType } from "@powerlines/deepkit/vendor/type";
4
+ import { ReflectionClass, ReflectionKind, merge, resolveClassType } from "@powerlines/deepkit/vendor/type";
5
5
  import { titleCase } from "@stryke/string-format/title-case";
6
6
  import { joinPaths } from "@stryke/path/join-paths";
7
7
  import { reflectType } from "@powerlines/deepkit/reflect-type";
@@ -45,13 +45,13 @@ mergeSecretsReflections.__type = [
45
45
  "Pn!2\"P\"7#F2$P\"7%/&"
46
46
  ];
47
47
  const __ΩCreateEnvReflectionOptions = [
48
- () => __ΩTypeObjectLiteral,
49
- () => __ΩTypeClass,
48
+ "TypeObjectLiteral",
49
+ "TypeClass",
50
50
  "type",
51
51
  () => ReflectionClass,
52
52
  "superReflection",
53
53
  "CreateEnvReflectionOptions",
54
- "PPn!n\"J4#8P\"7$4%8Mw&y"
54
+ "PP\"w!\"w\"J4#8P\"7$4%8Mw&y"
55
55
  ];
56
56
  var BaseEnv = class {
57
57
  APP_NAME;
@@ -1 +1 @@
1
- {"version":3,"file":"reflect.mjs","names":[],"sources":["../../src/helpers/reflect.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { reflectType } from \"@powerlines/deepkit/reflect-type\";\nimport {\n merge,\n ReflectionClass,\n ReflectionKind,\n resolveClassType,\n TypeClass,\n TypeObjectLiteral\n} from \"@powerlines/deepkit/vendor/type\";\nimport { isParentPath } from \"@stryke/path/is-parent-path\";\nimport { joinPaths } from \"@stryke/path/join-paths\";\nimport { titleCase } from \"@stryke/string-format/title-case\";\nimport { EnvPluginContext } from \"../types/plugin\";\nimport { EnvInterface, SecretsInterface } from \"../types/runtime\";\nimport {\n getEnvDefaultTypeDefinition,\n getSecretsDefaultTypeDefinition,\n readEnvTypeReflection,\n readSecretsReflection\n} from \"./persistence\";\n\nexport function mergeEnvReflections(\n context: EnvPluginContext,\n reflections: ReflectionClass<any>[]\n): ReflectionClass<any> {\n const reflection = createEnvReflection(context, {\n type: merge(reflections.map(reflection => reflection.type))\n });\n\n return reflection;\n}\n\nexport function mergeSecretsReflections(\n context: EnvPluginContext,\n reflections: ReflectionClass<any>[]\n): ReflectionClass<any> {\n const reflection = createSecretsReflection(context, {\n type: merge(reflections.map(reflection => reflection.type))\n });\n\n return reflection;\n}\n\nexport interface CreateEnvReflectionOptions {\n type?: TypeObjectLiteral | TypeClass;\n superReflection?: ReflectionClass<any>;\n}\n\nexport class BaseEnv implements EnvInterface {\n APP_NAME!: string;\n\n APP_VERSION!: string;\n\n BUILD_ID!: string;\n\n BUILD_TIMESTAMP!: string;\n\n BUILD_CHECKSUM!: string;\n\n RELEASE_ID!: string;\n\n RELEASE_TAG!: string;\n\n ORGANIZATION!: string;\n\n PLATFORM: \"node\" | \"browser\" | \"neutral\" = \"neutral\";\n\n MODE: \"development\" | \"test\" | \"production\" = \"production\";\n\n ENVIRONMENT!: string;\n\n DEBUG: boolean = false;\n\n TEST: boolean = false;\n\n MINIMAL: boolean = false;\n\n NO_COLOR: boolean = false;\n\n FORCE_COLOR: number | boolean = false;\n\n FORCE_HYPERLINK: number | boolean = false;\n\n STACKTRACE: boolean = false;\n\n INCLUDE_ERROR_DATA: boolean = false;\n\n ERROR_URL!: string;\n\n DEFAULT_TIMEZONE!: string;\n\n DEFAULT_LOCALE!: string;\n\n CI: boolean = false;\n}\n\nexport class BaseSecrets implements SecretsInterface {\n ENCRYPTION_KEY!: string;\n}\n\nexport function createEnvReflection(\n context: EnvPluginContext,\n options: CreateEnvReflectionOptions = {}\n): ReflectionClass<any> {\n const parent =\n options.superReflection ??\n new ReflectionClass({\n kind: ReflectionKind.class,\n description: `The base environment configuration definition for the ${titleCase(\n context.config.name\n )} project.`,\n classType: BaseEnv,\n types: [],\n implements: [\n {\n kind: ReflectionKind.objectLiteral,\n typeName: \"EnvInterface\",\n description: `The environment configuration interface definition for the ${titleCase(\n context.config.name\n )} project.`,\n types: []\n }\n ]\n });\n parent.name = \"Env\";\n\n const result = new ReflectionClass(\n options.type ?? {\n kind: ReflectionKind.objectLiteral,\n typeName: \"Env\",\n description: `A schema describing the list of available environment variables that can be used by the ${\n context.config.name\n ? `${titleCase(context.config.name)} application`\n : \"application\"\n }.`,\n types: []\n },\n parent\n );\n result.name = \"Env\";\n\n return result;\n}\n\nexport function createSecretsReflection(\n context: EnvPluginContext,\n options: CreateEnvReflectionOptions = {}\n): ReflectionClass<any> {\n const parent =\n options.superReflection ??\n new ReflectionClass({\n kind: ReflectionKind.class,\n description: `The base secrets configuration definition for the ${titleCase(\n context.config.name\n )} project.`,\n classType: BaseSecrets,\n types: [],\n implements: [\n {\n kind: ReflectionKind.objectLiteral,\n typeName: \"SecretsInterface\",\n description: `The secrets configuration interface definition for the ${titleCase(\n context.config.name\n )} project.`,\n types: []\n }\n ]\n });\n parent.name = \"Secrets\";\n\n const result = new ReflectionClass(\n options.type ?? {\n kind: ReflectionKind.objectLiteral,\n typeName: \"Secrets\",\n description: `A schema describing the list of available environment secrets that can be used by the ${\n context.config.name\n ? `${titleCase(context.config.name)} application`\n : \"application\"\n }.`,\n types: []\n },\n parent\n );\n result.name = \"Secrets\";\n\n return result;\n}\n\n/**\n * Reflects the environment configuration type definition from the provided file and name, and merges it with the default environment configuration reflection and the currently used environment configuration reflection.\n *\n * @remarks\n * The resulting reflection will contain the structure of the expected environment variables as defined by the type definitions provided in the plugin configuration, as well as any additional properties that are currently used in the source code and defined in the default environment configuration reflection.\n *\n * @param context - The plugin context\n * @param file - The file path to reflect the environment configuration type definition from\n * @param name - The name of the type definition to reflect the environment configuration from, if the file contains multiple type definitions. If not provided, the first type definition found in the file will be used.\n * @returns A reflection of the environment configuration type definition, merged with the default environment configuration reflection and the currently used environment configuration reflection. The resulting reflection will contain the structure of the expected environment variables as defined by the type definitions provided in the plugin configuration, as well as any additional properties that are currently used in the source code and defined in the default environment configuration reflection.\n */\nexport async function reflectEnv(\n context: EnvPluginContext,\n file?: string,\n name?: string\n) {\n let config: ReflectionClass<any> | undefined;\n if (file) {\n const configType = await reflectType(context, {\n file: !isParentPath(file, context.workspaceConfig.workspaceRoot)\n ? joinPaths(context.workspaceConfig.workspaceRoot, file)\n : file,\n name\n });\n\n config = resolveClassType(configType);\n }\n\n return mergeEnvReflections(\n context,\n [\n await readEnvTypeReflection(context, \"env\"),\n config,\n resolveClassType(\n await reflectType(context, await getEnvDefaultTypeDefinition(context))\n )\n ].filter(Boolean) as ReflectionClass<any>[]\n );\n}\n\n/**\n * Reflects the secrets configuration type definition from the provided file and name, and merges it with the default secrets configuration reflection and the currently used secrets configuration reflection.\n *\n * @remarks\n * The resulting reflection will contain the structure of the expected environment secrets as defined by the type definitions provided in the plugin configuration, as well as any additional properties that are currently used in the source code and defined in the default secrets configuration reflection.\n *\n * @param context - The plugin context\n * @param file - The file path to reflect the secrets configuration type definition from\n * @param name - The name of the type definition to reflect the secrets configuration from, if the file contains multiple type definitions. If not provided, the first type definition found in the file will be used.\n * @returns A reflection of the secrets configuration type definition, merged with the default secrets configuration reflection and the currently used secrets configuration reflection. The resulting reflection will contain the structure of the expected environment secrets as defined by the type definitions provided in the plugin configuration, as well as any additional properties that are currently used in the source code and defined in the default secrets configuration reflection.\n */\nexport async function reflectSecrets(\n context: EnvPluginContext,\n file?: string,\n name?: string\n) {\n let config: ReflectionClass<any> | undefined;\n if (file) {\n const configType = await reflectType(context, {\n file: !isParentPath(file, context.workspaceConfig.workspaceRoot)\n ? joinPaths(context.workspaceConfig.workspaceRoot, file)\n : file,\n name\n });\n\n config = resolveClassType(configType);\n }\n\n return mergeSecretsReflections(\n context,\n [\n await readSecretsReflection(context),\n config,\n resolveClassType(\n await reflectType(\n context,\n await getSecretsDefaultTypeD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AAA,KAAA;EAEZ;EACT,CAAA;AAGE,QAAS,oBAAgB,SAAA;EACzB,MAAS,sBAAA,SAA8B,MAAA;EACtC;EACK,iBAAO,MAAA,YAAA,SAAA,MAAA,4BAAA,QAAA,CAAA,CAAA;EACX,CAAA,OAAQ,QAAA,CAAA;;AAEZ,WAAW,SAAC;OAAe;CAAK;CAAA;CAAA;CAAA;CAAA;CAAA;CAAA;;;;;;;;;;;;AAYhC,eAAsB,eAAA,SAAA,MAAA,MAAA;CAClB,IAAI;AACJ,KAAI,KAOF,UAAM,iBANN,MAAA,YAAA,SAAA;EACA,MAAA,CAAA,aAAA,MAAA,QAAA,gBAAA,cAAA,GACW,UAAQ,QAAA,gBAAA,eAAA,KAAA;EAEjB;EACJ,CAAA,CACoC;AAEpC,QAAE,wBAAuB,SAAe;EACpC,MAAA,sBAAe,QAAA;EACf;EACA,iBAAgB,MAAA,YAAA,SAAA,MAAA,gCAAA,QAAA,CAAA,CAAA;EACnB,CAAC,OAAG,QAAA,CAAA;;AAET,eAAK,SAAA;OAAA;CAAA;CAAA;CAAA;CAAA;CAAA;CAAA;CAAA"}
1
+ {"version":3,"file":"reflect.mjs","names":[],"sources":["../../src/helpers/reflect.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { reflectType } from \"@powerlines/deepkit/reflect-type\";\nimport {\n merge,\n ReflectionClass,\n ReflectionKind,\n resolveClassType,\n TypeClass,\n TypeObjectLiteral\n} from \"@powerlines/deepkit/vendor/type\";\nimport { isParentPath } from \"@stryke/path/is-parent-path\";\nimport { joinPaths } from \"@stryke/path/join-paths\";\nimport { titleCase } from \"@stryke/string-format/title-case\";\nimport { EnvPluginContext } from \"../types/plugin\";\nimport { EnvInterface, SecretsInterface } from \"../types/runtime\";\nimport {\n getEnvDefaultTypeDefinition,\n getSecretsDefaultTypeDefinition,\n readEnvTypeReflection,\n readSecretsReflection\n} from \"./persistence\";\n\nexport function mergeEnvReflections(\n context: EnvPluginContext,\n reflections: ReflectionClass<any>[]\n): ReflectionClass<any> {\n const reflection = createEnvReflection(context, {\n type: merge(reflections.map(reflection => reflection.type))\n });\n\n return reflection;\n}\n\nexport function mergeSecretsReflections(\n context: EnvPluginContext,\n reflections: ReflectionClass<any>[]\n): ReflectionClass<any> {\n const reflection = createSecretsReflection(context, {\n type: merge(reflections.map(reflection => reflection.type))\n });\n\n return reflection;\n}\n\nexport interface CreateEnvReflectionOptions {\n type?: TypeObjectLiteral | TypeClass;\n superReflection?: ReflectionClass<any>;\n}\n\nexport class BaseEnv implements EnvInterface {\n APP_NAME!: string;\n\n APP_VERSION!: string;\n\n BUILD_ID!: string;\n\n BUILD_TIMESTAMP!: string;\n\n BUILD_CHECKSUM!: string;\n\n RELEASE_ID!: string;\n\n RELEASE_TAG!: string;\n\n ORGANIZATION!: string;\n\n PLATFORM: \"node\" | \"browser\" | \"neutral\" = \"neutral\";\n\n MODE: \"development\" | \"test\" | \"production\" = \"production\";\n\n ENVIRONMENT!: string;\n\n DEBUG: boolean = false;\n\n TEST: boolean = false;\n\n MINIMAL: boolean = false;\n\n NO_COLOR: boolean = false;\n\n FORCE_COLOR: number | boolean = false;\n\n FORCE_HYPERLINK: number | boolean = false;\n\n STACKTRACE: boolean = false;\n\n INCLUDE_ERROR_DATA: boolean = false;\n\n ERROR_URL!: string;\n\n DEFAULT_TIMEZONE!: string;\n\n DEFAULT_LOCALE!: string;\n\n CI: boolean = false;\n}\n\nexport class BaseSecrets implements SecretsInterface {\n ENCRYPTION_KEY!: string;\n}\n\nexport function createEnvReflection(\n context: EnvPluginContext,\n options: CreateEnvReflectionOptions = {}\n): ReflectionClass<any> {\n const parent =\n options.superReflection ??\n new ReflectionClass({\n kind: ReflectionKind.class,\n description: `The base environment configuration definition for the ${titleCase(\n context.config.name\n )} project.`,\n classType: BaseEnv,\n types: [],\n implements: [\n {\n kind: ReflectionKind.objectLiteral,\n typeName: \"EnvInterface\",\n description: `The environment configuration interface definition for the ${titleCase(\n context.config.name\n )} project.`,\n types: []\n }\n ]\n });\n parent.name = \"Env\";\n\n const result = new ReflectionClass(\n options.type ?? {\n kind: ReflectionKind.objectLiteral,\n typeName: \"Env\",\n description: `A schema describing the list of available environment variables that can be used by the ${\n context.config.name\n ? `${titleCase(context.config.name)} application`\n : \"application\"\n }.`,\n types: []\n },\n parent\n );\n result.name = \"Env\";\n\n return result;\n}\n\nexport function createSecretsReflection(\n context: EnvPluginContext,\n options: CreateEnvReflectionOptions = {}\n): ReflectionClass<any> {\n const parent =\n options.superReflection ??\n new ReflectionClass({\n kind: ReflectionKind.class,\n description: `The base secrets configuration definition for the ${titleCase(\n context.config.name\n )} project.`,\n classType: BaseSecrets,\n types: [],\n implements: [\n {\n kind: ReflectionKind.objectLiteral,\n typeName: \"SecretsInterface\",\n description: `The secrets configuration interface definition for the ${titleCase(\n context.config.name\n )} project.`,\n types: []\n }\n ]\n });\n parent.name = \"Secrets\";\n\n const result = new ReflectionClass(\n options.type ?? {\n kind: ReflectionKind.objectLiteral,\n typeName: \"Secrets\",\n description: `A schema describing the list of available environment secrets that can be used by the ${\n context.config.name\n ? `${titleCase(context.config.name)} application`\n : \"application\"\n }.`,\n types: []\n },\n parent\n );\n result.name = \"Secrets\";\n\n return result;\n}\n\n/**\n * Reflects the environment configuration type definition from the provided file and name, and merges it with the default environment configuration reflection and the currently used environment configuration reflection.\n *\n * @remarks\n * The resulting reflection will contain the structure of the expected environment variables as defined by the type definitions provided in the plugin configuration, as well as any additional properties that are currently used in the source code and defined in the default environment configuration reflection.\n *\n * @param context - The plugin context\n * @param file - The file path to reflect the environment configuration type definition from\n * @param name - The name of the type definition to reflect the environment configuration from, if the file contains multiple type definitions. If not provided, the first type definition found in the file will be used.\n * @returns A reflection of the environment configuration type definition, merged with the default environment configuration reflection and the currently used environment configuration reflection. The resulting reflection will contain the structure of the expected environment variables as defined by the type definitions provided in the plugin configuration, as well as any additional properties that are currently used in the source code and defined in the default environment configuration reflection.\n */\nexport async function reflectEnv(\n context: EnvPluginContext,\n file?: string,\n name?: string\n) {\n let config: ReflectionClass<any> | undefined;\n if (file) {\n const configType = await reflectType(context, {\n file: !isParentPath(file, context.workspaceConfig.workspaceRoot)\n ? joinPaths(context.workspaceConfig.workspaceRoot, file)\n : file,\n name\n });\n\n config = resolveClassType(configType);\n }\n\n return mergeEnvReflections(\n context,\n [\n await readEnvTypeReflection(context, \"env\"),\n config,\n resolveClassType(\n await reflectType(context, await getEnvDefaultTypeDefinition(context))\n )\n ].filter(Boolean) as ReflectionClass<any>[]\n );\n}\n\n/**\n * Reflects the secrets configuration type definition from the provided file and name, and merges it with the default secrets configuration reflection and the currently used secrets configuration reflection.\n *\n * @remarks\n * The resulting reflection will contain the structure of the expected environment secrets as defined by the type definitions provided in the plugin configuration, as well as any additional properties that are currently used in the source code and defined in the default secrets configuration reflection.\n *\n * @param context - The plugin context\n * @param file - The file path to reflect the secrets configuration type definition from\n * @param name - The name of the type definition to reflect the secrets configuration from, if the file contains multiple type definitions. If not provided, the first type definition found in the file will be used.\n * @returns A reflection of the secrets configuration type definition, merged with the default secrets configuration reflection and the currently used secrets configuration reflection. The resulting reflection will contain the structure of the expected environment secrets as defined by the type definitions provided in the plugin configuration, as well as any additional properties that are currently used in the source code and defined in the default secrets configuration reflection.\n */\nexport async function reflectSecrets(\n context: EnvPluginContext,\n file?: string,\n name?: string\n) {\n let config: ReflectionClass<any> | undefined;\n if (file) {\n const configType = await reflectType(context, {\n file: !isParentPath(file, context.workspaceConfig.workspaceRoot)\n ? joinPaths(context.workspaceConfig.workspaceRoot, file)\n : file,\n name\n });\n\n config = resolveClassType(configType);\n }\n\n return mergeSecretsReflections(\n context,\n [\n await readSecretsReflection(context),\n config,\n resolveClassType(\n await reflectType(\n context,\n await getSecretsDefaultTypeDefinition(context)\n )\n )\n ].filter(Boolean) as ReflectionClass<any>[]\n );\n}\n"],"mappings":";;;;;;;;;;AAMA,SAAS,aAAY,IAAI,MAAO;AAC5B,IAAC,SAAU;;;AA0Bf,SAAE,oBAA2B,SAAA,aAAA;AAI3B,QAHA,oBAA+B,SAAA,EAC/B,MAAA,MAAA,YAAqB,IAAA,cAAA,eAAA,WAAA,MAAA;EAAA;EAAA;EAAA;EAAA,CAAA,CAAA,CAAA,EACrB,CAAA;;AAGF,oBAAgB,SAAA;OAAmB;CAAA;OAAA;CAAA;OAAA;CAAA;CAAA;CAAA;AACnC,SAAW,wBAAgB,SAAA,aAAA;AAIvB,QAHW,wBAAqB,SAAA,EACjC,MAAA,MAAgB,YAAK,IAAA,cAAA,eAAA,WAAA,MAAA;EAAA;EAAA;EAAA;EAAA,CAAA,CAAA,CAAA,EACtB,CAAA;;;;;;;;;;;AAIF,MAAE,gCAAiB;CAAA;CAAA;CAAA;OAAA;CAAA;CAAA;CAAA;CAAA;;CAGnB;CACE;CACA;CACC;CACD;CACE;CACA;;CAEF,WAAO;CACT,OAAA;;CAEA,QAAO;CACL,OAAO;CACP,UAAA;CACF,WAAA;;CAEA,kBAAqB;CACnB,aAAW;;CAEX;;CAEA;;CAEA,OAAA,SAAkB;EAAA;EAAM;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA,WAAA;AAAA,UAAA;;EAAA;EAAA;EAAA;EAAA;EAAA,WAAA;AAAA,UAAA;;EAAA;EAAA;EAAA,WAAA;AAAA,UAAA;;EAAA;EAAA,WAAA;AAAA,UAAA;;EAAA;EAAA,WAAA;AAAA,UAAA;;EAAA;EAAA,WAAA;AAAA,UAAA;;EAAA;EAAA,WAAA;AA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AsB,WAAO,SAAW,MAAQ,MAAI;CAChD,IAAI;AACJ,KAAI,KAOA,UAAS,iBANO,MAAA,YAAA,SAAA;EACf,MAAA,CAAA,aAAA,MAAA,QAAA,gBAAA,cAAA,GACK,UAAA,QAAA,gBAAA,eAAA,KAAA,GACT;EACD;EACD,CAAA,CACkB;AAEnB,QAAO,oBAAM,SAAA;EACf,MAAA,sBAAA,SAAA,MAAA;;EAEO,iBAAS,MAAA,YAAuB,SAAA,MAAA,4BAAA,QAAA,CAAA,CAAA;EACrC,CAAA,OAAS,QAAA,CAAA;;AAEX,WAAG,SAAgB;OAAK;CAAA;CAAA;CAAA;CAAA;CAAA;CAAA;CAAA;;;;;;;;;;;;AAYxB,eAAgB,eAAe,SAAa,MAAA,MAAA;CACxC,IAAI;AACJ,KAAI,KAOA,UAAS,iBANU,MAAA,YAAA,SAAA;EACf,MAAC,CAAA,aAAS,MAAA,QAAA,gBAAA,cAAA,GACJ,UAAA,QAAA,gBAAA,eAAA,KAAA,GACV;EACF;EACA,CAAA,CACmB;AAEvB,QAAM,wBAAa,SAAe;EAChC,MAAQ,sBAAQ,QAAA;EACd;EACA,iBAAmB,MAAA,YAAA,SAAA,MAAA,gCAAA,QAAA,CAAA,CAAA;EACpB,CAAC,OAAA,QAAe,CAAC;;AAEtB,eAAe,SAAS;OAAC;CAAsB;CAAW;CAAA;CAAA;CAAA;CAAA;CAAA"}
package/dist/index.cjs CHANGED
@@ -8,6 +8,7 @@ const require_helpers_automd_generator = require('./helpers/automd-generator.cjs
8
8
  const require_components_docs = require('./components/docs.cjs');
9
9
  const require_components_env_builtin = require('./components/env-builtin.cjs');
10
10
  const require_babel_plugin = require('./babel/plugin.cjs');
11
+ const require_get_unique = require('./node_modules/.pnpm/@stryke_helpers@0.10.8/node_modules/@stryke/helpers/dist/get-unique.cjs');
11
12
  let _powerlines_deepkit_vendor_type = require("@powerlines/deepkit/vendor/type");
12
13
  let _stryke_env_types = require("@stryke/env/types");
13
14
  let defu = require("defu");
@@ -76,10 +77,10 @@ const plugin = (options = {}) => {
76
77
  "POWERLINES_",
77
78
  this.config.framework && this.config.framework !== "powerlines" && `${(0, _stryke_string_format_constant_case.constantCase)(this.config.framework)}_`
78
79
  ].filter(Boolean));
79
- config.env.prefix = (0, _stryke_convert_to_array.toArray)(config.env.prefix).reduce((ret, prefix) => {
80
+ config.env.prefix = require_get_unique.getUnique((0, _stryke_convert_to_array.toArray)(config.env.prefix).reduce((ret, prefix) => {
80
81
  if (!ret.includes(prefix.replace(/_$/g, ""))) ret.push(prefix.replace(/_$/g, ""));
81
82
  return ret;
82
- }, []);
83
+ }, []));
83
84
  return config;
84
85
  },
85
86
  async configResolved() {
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { EnvInterface, SecretsInterface, __ΩEnvInterface, __ΩSecretsInterface } from "./types/runtime.cjs";
2
- import { EnvPluginContext, EnvPluginOptions, EnvPluginResolvedConfig, EnvPluginUserConfig, EnvType, __ΩEnvPluginContext, __ΩEnvPluginOptions, __ΩEnvPluginResolvedConfig, __ΩEnvPluginUserConfig, __ΩEnvType } from "./types/plugin.cjs";
1
+ import { EnvInterface, SecretsInterface } from "./types/runtime.cjs";
2
+ import { EnvPluginContext, EnvPluginOptions, EnvPluginResolvedConfig, EnvPluginUserConfig, EnvType } from "./types/plugin.cjs";
3
3
  import { Plugin } from "powerlines";
4
4
 
5
5
  //#region src/index.d.ts
@@ -13,5 +13,5 @@ declare module "powerlines" {
13
13
  */
14
14
  declare const plugin: <TContext extends EnvPluginContext = EnvPluginContext>(options?: EnvPluginOptions) => Plugin<TContext>[];
15
15
  //#endregion
16
- export { EnvInterface, EnvPluginContext, EnvPluginOptions, EnvPluginResolvedConfig, EnvPluginUserConfig, EnvType, SecretsInterface, __ΩEnvInterface, __ΩEnvPluginContext, __ΩEnvPluginOptions, __ΩEnvPluginResolvedConfig, __ΩEnvPluginUserConfig, __ΩEnvType, __ΩSecretsInterface, plugin as default, plugin };
16
+ export { EnvInterface, EnvPluginContext, EnvPluginOptions, EnvPluginResolvedConfig, EnvPluginUserConfig, EnvType, SecretsInterface, plugin as default, plugin };
17
17
  //# sourceMappingURL=index.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.tsx"],"mappings":";;;;;;YA+DY,MAAA;IACR,GAAA,GAAM,gBAAA;EAAA;AAAA;;;;cAOG,MAAA,oBAA2B,gBAAA,GAAmB,gBAAA,EACzD,OAAA,GAAS,gBAAA,KAyVJ,MAAA,CAAO,QAAA"}
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.tsx"],"mappings":";;;;;;YAgEY,MAAA;IACR,GAAA,GAAM,gBAAA;EAAA;AAAA;;;;cAOG,MAAA,oBAA2B,gBAAA,GAAmB,gBAAA,EACzD,OAAA,GAAS,gBAAA,KA2VJ,MAAA,CAAO,QAAA"}
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { EnvInterface, SecretsInterface, __ΩEnvInterface, __ΩSecretsInterface } from "./types/runtime.mjs";
2
- import { EnvPluginContext, EnvPluginOptions, EnvPluginResolvedConfig, EnvPluginUserConfig, EnvType, __ΩEnvPluginContext, __ΩEnvPluginOptions, __ΩEnvPluginResolvedConfig, __ΩEnvPluginUserConfig, __ΩEnvType } from "./types/plugin.mjs";
1
+ import { EnvInterface, SecretsInterface } from "./types/runtime.mjs";
2
+ import { EnvPluginContext, EnvPluginOptions, EnvPluginResolvedConfig, EnvPluginUserConfig, EnvType } from "./types/plugin.mjs";
3
3
  import { Plugin } from "powerlines";
4
4
 
5
5
  //#region src/index.d.ts
@@ -13,5 +13,5 @@ declare module "powerlines" {
13
13
  */
14
14
  declare const plugin: <TContext extends EnvPluginContext = EnvPluginContext>(options?: EnvPluginOptions) => Plugin<TContext>[];
15
15
  //#endregion
16
- export { EnvInterface, EnvPluginContext, EnvPluginOptions, EnvPluginResolvedConfig, EnvPluginUserConfig, EnvType, SecretsInterface, __ΩEnvInterface, __ΩEnvPluginContext, __ΩEnvPluginOptions, __ΩEnvPluginResolvedConfig, __ΩEnvPluginUserConfig, __ΩEnvType, __ΩSecretsInterface, plugin as default, plugin };
16
+ export { EnvInterface, EnvPluginContext, EnvPluginOptions, EnvPluginResolvedConfig, EnvPluginUserConfig, EnvType, SecretsInterface, plugin as default, plugin };
17
17
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.tsx"],"mappings":";;;;;;YA+DY,MAAA;IACR,GAAA,GAAM,gBAAA;EAAA;AAAA;;;;cAOG,MAAA,oBAA2B,gBAAA,GAAmB,gBAAA,EACzD,OAAA,GAAS,gBAAA,KAyVJ,MAAA,CAAO,QAAA"}
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.tsx"],"mappings":";;;;;;YAgEY,MAAA;IACR,GAAA,GAAM,gBAAA;EAAA;AAAA;;;;cAOG,MAAA,oBAA2B,gBAAA,GAAmB,gBAAA,EACzD,OAAA,GAAS,gBAAA,KA2VJ,MAAA,CAAO,QAAA"}
package/dist/index.mjs CHANGED
@@ -6,6 +6,7 @@ import { env } from "./helpers/automd-generator.mjs";
6
6
  import { EnvDocsFile } from "./components/docs.mjs";
7
7
  import { EnvBuiltin } from "./components/env-builtin.mjs";
8
8
  import { envBabelPlugin } from "./babel/plugin.mjs";
9
+ import { getUnique } from "./node_modules/.pnpm/@stryke_helpers@0.10.8/node_modules/@stryke/helpers/dist/get-unique.mjs";
9
10
  import { ReflectionClass, ReflectionKind } from "@powerlines/deepkit/vendor/type";
10
11
  import { ENV_PREFIXES } from "@stryke/env/types";
11
12
  import defu from "defu";
@@ -70,10 +71,10 @@ const plugin = (options = {}) => {
70
71
  "POWERLINES_",
71
72
  this.config.framework && this.config.framework !== "powerlines" && `${constantCase(this.config.framework)}_`
72
73
  ].filter(Boolean));
73
- config.env.prefix = toArray(config.env.prefix).reduce((ret, prefix) => {
74
+ config.env.prefix = getUnique(toArray(config.env.prefix).reduce((ret, prefix) => {
74
75
  if (!ret.includes(prefix.replace(/_$/g, ""))) ret.push(prefix.replace(/_$/g, ""));
75
76
  return ret;
76
- }, []);
77
+ }, []));
77
78
  return config;
78
79
  },
79
80
  async configResolved() {
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","names":[],"sources":["../src/index.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport {\n ReflectionClass,\n ReflectionKind\n} from \"@powerlines/deepkit/vendor/type\";\nimport alloy from \"@powerlines/plugin-alloy\";\nimport { render } from \"@powerlines/plugin-alloy/render\";\nimport automd from \"@powerlines/plugin-automd\";\nimport babel from \"@powerlines/plugin-babel\";\nimport { parseTypeDefinition } from \"@stryke/convert/parse-type-definition\";\nimport { toArray } from \"@stryke/convert/to-array\";\nimport { ENV_PREFIXES } from \"@stryke/env/types\";\nimport { existsSync } from \"@stryke/fs/exists\";\nimport { joinPaths } from \"@stryke/path/join\";\nimport { constantCase } from \"@stryke/string-format/constant-case\";\nimport { isSetString } from \"@stryke/type-checks/is-set-string\";\nimport {\n TypeDefinition,\n TypeDefinitionParameter\n} from \"@stryke/types/configuration\";\nimport defu from \"defu\";\nimport { Plugin } from \"powerlines\";\nimport type { UserConfig as ViteUserConfig } from \"vite\";\nimport { envBabelPlugin } from \"./babel/plugin\";\nimport { EnvDocsFile } from \"./components/docs\";\nimport { EnvBuiltin } from \"./components/env-builtin\";\nimport { env } from \"./helpers/automd-generator\";\nimport { getDocsOutputPath } from \"./helpers/docs-helper\";\nimport { loadEnv } from \"./helpers/load\";\nimport {\n getEnvDefaultTypeDefinition,\n getEnvReflectionsPath,\n getEnvTypeReflectionsPath,\n getSecretsDefaultTypeDefinition,\n readEnvReflection,\n readEnvTypeReflection,\n readSecretsReflection,\n writeEnvReflection,\n writeEnvTypeReflection\n} from \"./helpers/persistence\";\nimport { reflectEnv, reflectSecrets } from \"./helpers/reflect\";\nimport { EnvPluginContext, EnvPluginOptions } from \"./types/plugin\";\n\nexport type * from \"./types\";\n\ndeclare module \"powerlines\" {\n interface Config {\n env?: EnvPluginOptions;\n }\n}\n\n/**\n * A Powerlines plugin to inject environment variables into the source code.\n */\nexport const plugin = <TContext extends EnvPluginContext = EnvPluginContext>(\n options: EnvPluginOptions = {}\n) => {\n return [\n alloy(options.alloy),\n babel(options.babel),\n {\n name: \"env\",\n async config() {\n this.debug(\n \"Providing default configuration for the Powerlines `env` build plugin.\"\n );\n\n const config = {\n env: defu(options, {\n types: {} as TypeDefinitionParameter,\n validate: false,\n inject: false,\n prefix: []\n }),\n babel: {\n plugins: [envBabelPlugin]\n }\n };\n\n if (\n isSetString(config.env.types) ||\n (config.env.types && isSetString(config.env.types.file))\n ) {\n config.env.types = parseTypeDefinition(\n config.env.types\n ) as TypeDefinition;\n\n const file = await this.fs.resolve(config.env.types.file);\n if (file) {\n config.env.types.file = file;\n }\n } else {\n this.warn(\n \"The `env.types` configuration parameter was not provided. Please ensure this is expected.\"\n );\n\n const envDefaultTypeDefinition =\n await getEnvDefaultTypeDefinition(this);\n\n const file = await this.fs.resolve(envDefaultTypeDefinition.file);\n if (file) {\n config.env.types = parseTypeDefinition(\n `${file}#${envDefaultTypeDefinition.name}`\n ) as TypeDefinition;\n }\n }\n\n if (\n isSetString(config.env.secrets) ||\n (config.env.secrets && isSetString(config.env.secrets.file))\n ) {\n config.env.secrets = parseTypeDefinition(\n config.env.secrets\n ) as TypeDefinition;\n\n const file = await this.fs.resolve(config.env.secrets.file);\n if (file) {\n config.env.secrets.file = file;\n }\n } else {\n const secretsDefaultTypeDefinition =\n await getSecretsDefaultTypeDefinition(this);\n\n const file = await this.fs.resolve(secretsDefaultTypeDefinition.file);\n if (file) {\n config.env.secrets = parseTypeDefinition(\n `${file}#${secretsDefaultTypeDefinition.name}`\n ) as TypeDefinition;\n }\n }\n\n config.env.prefix = toArray(\n (config.env.prefix ?? []) as string[]\n ).reduce(\n (ret: string[], prefix: string) => {\n const formattedPrefix = constantCase(prefix);\n if (!ret.includes(formattedPrefix)) {\n ret.push(formattedPrefix);\n }\n\n return ret;\n },\n [\n ...ENV_PREFIXES,\n \"POWERLINES_\",\n this.config.framework &&\n this.config.framework !== \"powerlines\" &&\n `${constantCase(this.config.framework)}_`\n ].filter(Boolean) as string[]\n );\n\n config.env.prefix = toArray(config.env.prefix).reduce((ret, prefix) => {\n if (!ret.includes(prefix.replace(/_$/g, \"\"))) {\n ret.push(prefix.replace(/_$/g, \"\"));\n }\n return ret;\n }, [] as string[]);\n\n return config;\n },\n async configResolved() {\n this.debug(\n `Environment plugin configuration has been resolved for the Powerlines project.`\n );\n\n this.env = defu(\n {\n parsed: await loadEnv(this, this.config.env)\n },\n this.env ?? {},\n {\n types: {\n env: {}\n },\n used: {\n env: {},\n secrets: {}\n },\n parsed: {},\n injected: {}\n }\n ) as EnvPluginContext[\"env\"];\n\n if (\n this.config.command !== \"prepare\" &&\n !this.config.skipCache &&\n this.persistedMeta?.checksum === this.meta.checksum &&\n existsSync(getEnvTypeReflectionsPath(this, \"env\"))\n ) {\n this.debug(\n `Skipping reflection initialization as the meta checksum has not changed.`\n );\n\n this.env.types.env = await readEnvTypeReflection(this, \"env\");\n\n if (existsSync(getEnvReflectionsPath(this, \"env\"))) {\n this.env.used.env = await readEnvReflection(this);\n }\n\n if (existsSync(getEnvTypeReflectionsPath(this, \"secrets\"))) {\n this.env.types.secrets = await readEnvTypeReflection(\n this,\n \"secrets\"\n );\n }\n\n if (existsSync(getEnvReflectionsPath(this, \"secrets\"))) {\n this.env.used.secrets = await readSecretsReflection(this);\n }\n } else {\n this.debug(\n `Starting environment configuration reflection initialization.`\n );\n\n this.env.types.env = await reflectEnv(\n this,\n this.config.env.types?.file,\n this.config.env.types?.name\n );\n if (!this.env.types.env) {\n throw new Error(\n \"Failed to find the environment configuration type reflection in the context.\"\n );\n }\n\n await writeEnvTypeReflection(this, this.env.types.env, \"env\");\n\n this.env.types.secrets = await reflectSecrets(\n this,\n this.config.env.secrets?.file,\n this.config.env.secrets?.name\n );\n if (!this.env.types.secrets) {\n throw new Error(\n \"Failed to find the secrets configuration type reflection in the context.\"\n );\n }\n\n await writeEnvTypeReflection(this, this.env.types.secrets, \"secrets\");\n\n this.debug(\n `Resolved ${\n this.env.types.env.getProperties().length ?? 0\n } environment configuration parameters and ${\n this.env.types.secrets?.getProperties().length ?? 0\n } secret configuration parameters`\n );\n\n const envWithAlias = this.env.types.env\n .getProperties()\n .filter(prop => prop.getAlias().length > 0);\n\n Object.entries(await loadEnv(this, this.config.env)).forEach(\n ([key, value]) => {\n const unprefixedKey = this.config.env.prefix.reduce(\n (ret, prefix) => {\n if (key.replace(/_$/g, \"\").startsWith(prefix)) {\n return key.replace(/_$/g, \"\").slice(prefix.length);\n }\n return ret;\n },\n key\n );\n\n const aliasKey = envWithAlias.find(prop =>\n prop?.getAlias().reverse().includes(unprefixedKey)\n );\n if (this.env.types.env?.hasProperty(unprefixedKey) || aliasKey) {\n this.env.types.env\n .getProperty(unprefixedKey)\n .setDefaultValue(value);\n }\n }\n );\n\n this.env.used.env = new ReflectionClass(\n {\n kind: ReflectionKind.objectLiteral,\n typeName: \"Env\",\n description: `An object containing the environment configuration parameters used by the ${\n this.config.name\n ? `${this.config.name} application`\n : \"application\"\n }.`,\n types: []\n },\n this.env.types.env\n );\n\n await writeEnvReflection(this, this.env.used.env, \"env\");\n\n if (this.env.types.secrets) {\n await writeEnvTypeReflection(\n this,\n this.env.types.secrets,\n \"secrets\"\n );\n\n this.env.used.secrets = new ReflectionClass(\n {\n kind: ReflectionKind.objectLiteral,\n typeName: \"Secrets\",\n description: `An object containing the secret configuration parameters used by the ${\n this.config.name\n ? `${this.config.name} application`\n : \"application\"\n }.`,\n types: []\n },\n this.env.types.secrets\n );\n await writeEnvReflection(this, this.env.used.secrets, \"secrets\");\n }\n }\n },\n async prepare() {\n this.debug(\n `Preparing the Environment runtime artifacts for the Powerlines project.`\n );\n\n const result = await readEnvTypeReflection(this, \"env\");\n\n return render(\n this,\n <EnvBuiltin\n defaultConfig={this.config.env.defaultConfig}\n reflection={result}\n />\n );\n },\n transform: {\n order: \"post\",\n async handler() {\n if (this.env.used.env.getProperties().length > 0) {\n this.trace(\n `Persisting used environment configuration reflections to ${getEnvReflectionsPath(\n this,\n \"env\"\n )}.`\n );\n await writeEnvReflection(this, this.env.used.env, \"env\");\n }\n\n if (this.env.used.secrets.getProperties().length > 0) {\n this.trace(\n `Persisting used secret configuration reflections to ${getEnvReflectionsPath(\n this,\n \"secrets\"\n )}.`\n );\n await writeEnvReflection(this, this.env.used.secrets, \"secrets\");\n }\n }\n },\n async docs() {\n this.debug(\n `Documenting environment variables configuration values in \"${joinPaths(\n getDocsOutputPath(this),\n \"env.md\"\n )}\"`\n );\n\n const result = await readEnvTypeReflection(this, \"env\");\n\n return render(\n this,\n <EnvDocsFile levelOffset={0} reflection={result} />\n );\n },\n async buildEnd() {\n const reflectionPath = getEnvReflectionsPath(this, \"env\");\n\n this.debug(`Writing env reflection types to ${reflectionPath}.`);\n\n await writeEnvReflection(this, this.env.used.env, \"env\");\n }\n },\n {\n name: \"env:automd-generator\",\n config() {\n return {\n automd: defu(options.automd ?? {}, {\n generators: {\n env: env(this)\n }\n })\n };\n }\n },\n {\n name: \"env:vite\",\n vite: {\n configResolved(this: TContext) {\n return {\n envPrefix: this.config?.env?.prefix\n } as ViteUserConfig;\n }\n }\n },\n automd(options.automd)\n ] as Plugin<TContext>[];\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAsDA,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QAAK,KAAA,QAClB;MAEJ"}
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../src/index.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport {\n ReflectionClass,\n ReflectionKind\n} from \"@powerlines/deepkit/vendor/type\";\nimport alloy from \"@powerlines/plugin-alloy\";\nimport { render } from \"@powerlines/plugin-alloy/render\";\nimport automd from \"@powerlines/plugin-automd\";\nimport babel from \"@powerlines/plugin-babel\";\nimport { parseTypeDefinition } from \"@stryke/convert/parse-type-definition\";\nimport { toArray } from \"@stryke/convert/to-array\";\nimport { ENV_PREFIXES } from \"@stryke/env/types\";\nimport { existsSync } from \"@stryke/fs/exists\";\nimport { getUnique } from \"@stryke/helpers/get-unique\";\nimport { joinPaths } from \"@stryke/path/join\";\nimport { constantCase } from \"@stryke/string-format/constant-case\";\nimport { isSetString } from \"@stryke/type-checks/is-set-string\";\nimport {\n TypeDefinition,\n TypeDefinitionParameter\n} from \"@stryke/types/configuration\";\nimport defu from \"defu\";\nimport { Plugin } from \"powerlines\";\nimport type { UserConfig as ViteUserConfig } from \"vite\";\nimport { envBabelPlugin } from \"./babel/plugin\";\nimport { EnvDocsFile } from \"./components/docs\";\nimport { EnvBuiltin } from \"./components/env-builtin\";\nimport { env } from \"./helpers/automd-generator\";\nimport { getDocsOutputPath } from \"./helpers/docs-helper\";\nimport { loadEnv } from \"./helpers/load\";\nimport {\n getEnvDefaultTypeDefinition,\n getEnvReflectionsPath,\n getEnvTypeReflectionsPath,\n getSecretsDefaultTypeDefinition,\n readEnvReflection,\n readEnvTypeReflection,\n readSecretsReflection,\n writeEnvReflection,\n writeEnvTypeReflection\n} from \"./helpers/persistence\";\nimport { reflectEnv, reflectSecrets } from \"./helpers/reflect\";\nimport { EnvPluginContext, EnvPluginOptions } from \"./types/plugin\";\n\nexport type * from \"./types\";\n\ndeclare module \"powerlines\" {\n interface Config {\n env?: EnvPluginOptions;\n }\n}\n\n/**\n * A Powerlines plugin to inject environment variables into the source code.\n */\nexport const plugin = <TContext extends EnvPluginContext = EnvPluginContext>(\n options: EnvPluginOptions = {}\n) => {\n return [\n alloy(options.alloy),\n babel(options.babel),\n {\n name: \"env\",\n async config() {\n this.debug(\n \"Providing default configuration for the Powerlines `env` build plugin.\"\n );\n\n const config = {\n env: defu(options, {\n types: {} as TypeDefinitionParameter,\n validate: false,\n inject: false,\n prefix: []\n }),\n babel: {\n plugins: [envBabelPlugin]\n }\n };\n\n if (\n isSetString(config.env.types) ||\n (config.env.types && isSetString(config.env.types.file))\n ) {\n config.env.types = parseTypeDefinition(\n config.env.types\n ) as TypeDefinition;\n\n const file = await this.fs.resolve(config.env.types.file);\n if (file) {\n config.env.types.file = file;\n }\n } else {\n this.warn(\n \"The `env.types` configuration parameter was not provided. Please ensure this is expected.\"\n );\n\n const envDefaultTypeDefinition =\n await getEnvDefaultTypeDefinition(this);\n\n const file = await this.fs.resolve(envDefaultTypeDefinition.file);\n if (file) {\n config.env.types = parseTypeDefinition(\n `${file}#${envDefaultTypeDefinition.name}`\n ) as TypeDefinition;\n }\n }\n\n if (\n isSetString(config.env.secrets) ||\n (config.env.secrets && isSetString(config.env.secrets.file))\n ) {\n config.env.secrets = parseTypeDefinition(\n config.env.secrets\n ) as TypeDefinition;\n\n const file = await this.fs.resolve(config.env.secrets.file);\n if (file) {\n config.env.secrets.file = file;\n }\n } else {\n const secretsDefaultTypeDefinition =\n await getSecretsDefaultTypeDefinition(this);\n\n const file = await this.fs.resolve(secretsDefaultTypeDefinition.file);\n if (file) {\n config.env.secrets = parseTypeDefinition(\n `${file}#${secretsDefaultTypeDefinition.name}`\n ) as TypeDefinition;\n }\n }\n\n config.env.prefix = toArray(\n (config.env.prefix ?? []) as string[]\n ).reduce(\n (ret: string[], prefix: string) => {\n const formattedPrefix = constantCase(prefix);\n if (!ret.includes(formattedPrefix)) {\n ret.push(formattedPrefix);\n }\n\n return ret;\n },\n [\n ...ENV_PREFIXES,\n \"POWERLINES_\",\n this.config.framework &&\n this.config.framework !== \"powerlines\" &&\n `${constantCase(this.config.framework)}_`\n ].filter(Boolean) as string[]\n );\n\n config.env.prefix = getUnique(\n toArray(config.env.prefix).reduce((ret, prefix) => {\n if (!ret.includes(prefix.replace(/_$/g, \"\"))) {\n ret.push(prefix.replace(/_$/g, \"\"));\n }\n return ret;\n }, [] as string[])\n );\n\n return config;\n },\n async configResolved() {\n this.debug(\n `Environment plugin configuration has been resolved for the Powerlines project.`\n );\n\n this.env = defu(\n {\n parsed: await loadEnv(this, this.config.env)\n },\n this.env ?? {},\n {\n types: {\n env: {}\n },\n used: {\n env: {},\n secrets: {}\n },\n parsed: {},\n injected: {}\n }\n ) as EnvPluginContext[\"env\"];\n\n if (\n this.config.command !== \"prepare\" &&\n !this.config.skipCache &&\n this.persistedMeta?.checksum === this.meta.checksum &&\n existsSync(getEnvTypeReflectionsPath(this, \"env\"))\n ) {\n this.debug(\n `Skipping reflection initialization as the meta checksum has not changed.`\n );\n\n this.env.types.env = await readEnvTypeReflection(this, \"env\");\n\n if (existsSync(getEnvReflectionsPath(this, \"env\"))) {\n this.env.used.env = await readEnvReflection(this);\n }\n\n if (existsSync(getEnvTypeReflectionsPath(this, \"secrets\"))) {\n this.env.types.secrets = await readEnvTypeReflection(\n this,\n \"secrets\"\n );\n }\n\n if (existsSync(getEnvReflectionsPath(this, \"secrets\"))) {\n this.env.used.secrets = await readSecretsReflection(this);\n }\n } else {\n this.debug(\n `Starting environment configuration reflection initialization.`\n );\n\n this.env.types.env = await reflectEnv(\n this,\n this.config.env.types?.file,\n this.config.env.types?.name\n );\n if (!this.env.types.env) {\n throw new Error(\n \"Failed to find the environment configuration type reflection in the context.\"\n );\n }\n\n await writeEnvTypeReflection(this, this.env.types.env, \"env\");\n\n this.env.types.secrets = await reflectSecrets(\n this,\n this.config.env.secrets?.file,\n this.config.env.secrets?.name\n );\n if (!this.env.types.secrets) {\n throw new Error(\n \"Failed to find the secrets configuration type reflection in the context.\"\n );\n }\n\n await writeEnvTypeReflection(this, this.env.types.secrets, \"secrets\");\n\n this.debug(\n `Resolved ${\n this.env.types.env.getProperties().length ?? 0\n } environment configuration parameters and ${\n this.env.types.secrets?.getProperties().length ?? 0\n } secret configuration parameters`\n );\n\n const envWithAlias = this.env.types.env\n .getProperties()\n .filter(prop => prop.getAlias().length > 0);\n\n Object.entries(await loadEnv(this, this.config.env)).forEach(\n ([key, value]) => {\n const unprefixedKey = this.config.env.prefix.reduce(\n (ret, prefix) => {\n if (key.replace(/_$/g, \"\").startsWith(prefix)) {\n return key.replace(/_$/g, \"\").slice(prefix.length);\n }\n return ret;\n },\n key\n );\n\n const aliasKey = envWithAlias.find(prop =>\n prop?.getAlias().reverse().includes(unprefixedKey)\n );\n if (this.env.types.env?.hasProperty(unprefixedKey) || aliasKey) {\n this.env.types.env\n .getProperty(unprefixedKey)\n .setDefaultValue(value);\n }\n }\n );\n\n this.env.used.env = new ReflectionClass(\n {\n kind: ReflectionKind.objectLiteral,\n typeName: \"Env\",\n description: `An object containing the environment configuration parameters used by the ${\n this.config.name\n ? `${this.config.name} application`\n : \"application\"\n }.`,\n types: []\n },\n this.env.types.env\n );\n\n await writeEnvReflection(this, this.env.used.env, \"env\");\n\n if (this.env.types.secrets) {\n await writeEnvTypeReflection(\n this,\n this.env.types.secrets,\n \"secrets\"\n );\n\n this.env.used.secrets = new ReflectionClass(\n {\n kind: ReflectionKind.objectLiteral,\n typeName: \"Secrets\",\n description: `An object containing the secret configuration parameters used by the ${\n this.config.name\n ? `${this.config.name} application`\n : \"application\"\n }.`,\n types: []\n },\n this.env.types.secrets\n );\n await writeEnvReflection(this, this.env.used.secrets, \"secrets\");\n }\n }\n },\n async prepare() {\n this.debug(\n `Preparing the Environment runtime artifacts for the Powerlines project.`\n );\n\n const result = await readEnvTypeReflection(this, \"env\");\n\n return render(\n this,\n <EnvBuiltin\n defaultConfig={this.config.env.defaultConfig}\n reflection={result}\n />\n );\n },\n transform: {\n order: \"post\",\n async handler() {\n if (this.env.used.env.getProperties().length > 0) {\n this.trace(\n `Persisting used environment configuration reflections to ${getEnvReflectionsPath(\n this,\n \"env\"\n )}.`\n );\n await writeEnvReflection(this, this.env.used.env, \"env\");\n }\n\n if (this.env.used.secrets.getProperties().length > 0) {\n this.trace(\n `Persisting used secret configuration reflections to ${getEnvReflectionsPath(\n this,\n \"secrets\"\n )}.`\n );\n await writeEnvReflection(this, this.env.used.secrets, \"secrets\");\n }\n }\n },\n async docs() {\n this.debug(\n `Documenting environment variables configuration values in \"${joinPaths(\n getDocsOutputPath(this),\n \"env.md\"\n )}\"`\n );\n\n const result = await readEnvTypeReflection(this, \"env\");\n\n return render(\n this,\n <EnvDocsFile levelOffset={0} reflection={result} />\n );\n },\n async buildEnd() {\n const reflectionPath = getEnvReflectionsPath(this, \"env\");\n\n this.debug(`Writing env reflection types to ${reflectionPath}.`);\n\n await writeEnvReflection(this, this.env.used.env, \"env\");\n }\n },\n {\n name: \"env:automd-generator\",\n config() {\n return {\n automd: defu(options.automd ?? {}, {\n generators: {\n env: env(this)\n }\n })\n };\n }\n },\n {\n name: \"env:vite\",\n vite: {\n configResolved(this: TContext) {\n return {\n envPrefix: this.config?.env?.prefix\n } as ViteUserConfig;\n }\n }\n },\n automd(options.automd)\n ] as Plugin<TContext>[];\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuDA,MAAE,UAAkB,UAAA,EAAA,KAAA;AAClB,QAAA;EAAA,MAAA,QAAA,MAAA;EAAA,MAAA,QAAA,MAAA;EAA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C3B,WAAI,EACF,WAAC,KAAA,QAAA,KAAA,QACF;MAEJ;GACF;EAAE,OAAO,QAAC,OAAA;EAAA"}
@@ -0,0 +1,14 @@
1
+
2
+ //#region ../../node_modules/.pnpm/@stryke+helpers@0.10.8/node_modules/@stryke/helpers/dist/get-unique.mjs
3
+ /**
4
+ * Returns an array of unique values from the given array.
5
+ *
6
+ * @param arr - The array to get unique values from.
7
+ * @returns An array of unique values.
8
+ */
9
+ const getUnique = (arr) => {
10
+ return [...new Set(arr)];
11
+ };
12
+
13
+ //#endregion
14
+ exports.getUnique = getUnique;
@@ -0,0 +1,14 @@
1
+ //#region ../../node_modules/.pnpm/@stryke+helpers@0.10.8/node_modules/@stryke/helpers/dist/get-unique.mjs
2
+ /**
3
+ * Returns an array of unique values from the given array.
4
+ *
5
+ * @param arr - The array to get unique values from.
6
+ * @returns An array of unique values.
7
+ */
8
+ const getUnique = (arr) => {
9
+ return [...new Set(arr)];
10
+ };
11
+
12
+ //#endregion
13
+ export { getUnique };
14
+ //# sourceMappingURL=get-unique.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-unique.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/@stryke+helpers@0.10.8/node_modules/@stryke/helpers/dist/get-unique.mjs"],"sourcesContent":["//#region src/get-unique.ts\n/**\n* Returns an array of unique values from the given array.\n*\n* @param arr - The array to get unique values from.\n* @returns An array of unique values.\n*/\nconst getUnique = (arr) => {\n\treturn [...new Set(arr)];\n};\n/**\n* Returns a new array containing only the unique elements from the original array,\n* based on the values returned by the mapper function.\n*\n* @example\n* ```ts\n* uniqBy([1.2, 1.5, 2.1, 3.2, 5.7, 5.3, 7.19], Math.floor);\n* // [1.2, 2.1, 3.2, 5.7, 7.19]\n* ```\n*\n* @param arr - The array to process.\n* @param mapper - The function used to convert the array elements.\n* @returns A new array containing only the unique elements from the original array, based on the values returned by the mapper function.\n*/\nfunction getUniqueBy(arr, mapper = (item) => item) {\n\tconst map = /* @__PURE__ */ new Map();\n\tfor (const item of arr) {\n\t\tconst key = mapper(item);\n\t\tif (!map.has(key)) map.set(key, item);\n\t}\n\treturn [...map.values()];\n}\n\n//#endregion\nexport { getUnique, getUniqueBy };\n//# sourceMappingURL=get-unique.mjs.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;AAOA,MAAM,aAAa,QAAQ;AAC1B,QAAO,CAAC,GAAG,IAAI,IAAI,IAAI,CAAC"}
@@ -1,3 +1,3 @@
1
- import { EnvInterface, SecretsInterface, __ΩEnvInterface, __ΩSecretsInterface } from "./runtime.cjs";
2
- import { EnvPluginContext, EnvPluginOptions, EnvPluginResolvedConfig, EnvPluginUserConfig, EnvType, __ΩEnvPluginContext, __ΩEnvPluginOptions, __ΩEnvPluginResolvedConfig, __ΩEnvPluginUserConfig, __ΩEnvType } from "./plugin.cjs";
3
- export { EnvInterface, EnvPluginContext, EnvPluginOptions, EnvPluginResolvedConfig, EnvPluginUserConfig, EnvType, SecretsInterface, __ΩEnvInterface, __ΩEnvPluginContext, __ΩEnvPluginOptions, __ΩEnvPluginResolvedConfig, __ΩEnvPluginUserConfig, __ΩEnvType, __ΩSecretsInterface };
1
+ import { EnvInterface, SecretsInterface } from "./runtime.cjs";
2
+ import { EnvPluginContext, EnvPluginOptions, EnvPluginResolvedConfig, EnvPluginUserConfig, EnvType } from "./plugin.cjs";
3
+ export { EnvInterface, EnvPluginContext, EnvPluginOptions, EnvPluginResolvedConfig, EnvPluginUserConfig, EnvType, SecretsInterface };
@@ -1,3 +1,3 @@
1
- import { EnvInterface, SecretsInterface, __ΩEnvInterface, __ΩSecretsInterface } from "./runtime.mjs";
2
- import { EnvPluginContext, EnvPluginOptions, EnvPluginResolvedConfig, EnvPluginUserConfig, EnvType, __ΩEnvPluginContext, __ΩEnvPluginOptions, __ΩEnvPluginResolvedConfig, __ΩEnvPluginUserConfig, __ΩEnvType } from "./plugin.mjs";
3
- export { EnvInterface, EnvPluginContext, EnvPluginOptions, EnvPluginResolvedConfig, EnvPluginUserConfig, EnvType, SecretsInterface, __ΩEnvInterface, __ΩEnvPluginContext, __ΩEnvPluginOptions, __ΩEnvPluginResolvedConfig, __ΩEnvPluginUserConfig, __ΩEnvType, __ΩSecretsInterface };
1
+ import { EnvInterface, SecretsInterface } from "./runtime.mjs";
2
+ import { EnvPluginContext, EnvPluginOptions, EnvPluginResolvedConfig, EnvPluginUserConfig, EnvType } from "./plugin.mjs";
3
+ export { EnvInterface, EnvPluginContext, EnvPluginOptions, EnvPluginResolvedConfig, EnvPluginUserConfig, EnvType, SecretsInterface };
@@ -158,11 +158,6 @@ interface EnvPluginContext<TResolvedConfig extends EnvPluginResolvedConfig = Env
158
158
  injected: Reflection;
159
159
  };
160
160
  }
161
- declare type __ΩEnvType = any[];
162
- declare type __ΩEnvPluginOptions = any[];
163
- declare type __ΩEnvPluginUserConfig = any[];
164
- declare type __ΩEnvPluginResolvedConfig = any[];
165
- declare type __ΩEnvPluginContext = any[];
166
161
  //#endregion
167
- export { EnvPluginContext, EnvPluginOptions, EnvPluginResolvedConfig, EnvPluginUserConfig, EnvType, __ΩEnvPluginContext, __ΩEnvPluginOptions, __ΩEnvPluginResolvedConfig, __ΩEnvPluginUserConfig, __ΩEnvType };
162
+ export { EnvPluginContext, EnvPluginOptions, EnvPluginResolvedConfig, EnvPluginUserConfig, EnvType };
168
163
  //# sourceMappingURL=plugin.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;;;;;;;KAyCY,OAAA;AAAA,KAEA,gBAAA,GAAmB,IAAA,CAAK,mBAAA;EAFxB;;;EAMV,KAAA,GAAQ,uBAAA;EANS;AAEnB;;EASE,OAAA,GAAU,uBAAA;EATwB;;;;;;EAiBlC,MAAA;EA8CQ;;;;;EAvCR,MAAA;EApBQ;;;;;EA2BR,QAAA;EAQA;;;;;;EAAA,aAAA,GAAgB,QAAA;EAwBR;;;AAGV;;;EAnBE,KAAA,GAAQ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A,GAAQ,kBAAA;EAoBR;;;;;;EAZA,MAAA,GAAS,mBAAA;EAaF;;;AAGT;;;EARE,KAAA,GAAQ,kBAAA;AAAA;AAAA,KAGE,mBAAA,GAAsB,qBAAA,GAChC,qBAAA;EACE,GAAA,EAAK,gBAAA;AAAA;AAAA,KAGG,uBAAA,GAA0B,yBAAA,GACpC,yBAAA;EACE,GAAA,EAAK,QAAA,CAAS,IAAA,CAAK,mBAAA,wBACjB,QAAA,CAAS,IAAA,CAAK,gBAAA;IAAd;;;;;;IAOE,KAAA,EAAO,cAAA;IARX;;;;;;IAgBI,OAAA,EAAS,cAAA;IART;;;;;;IAgBA,MAAA;IAgBM;;AAId;;;;IAZQ,QAAA;IAgBe;;;;;;IARf,MAAA;EAAA;AAAA;AAAA,UAIS,gBAAA,yBACS,uBAAA,GAA0B,uBAAA,UAGhD,kBAAA,CAAmB,eAAA,GACnB,kBAAA,CAAmB,eAAA;EACrB,GAAA;IADE;;;;;;IAQA,KAAA;MATmB;;;MAajB,GAAA,EAAK,UAAA;MAJP;;;MASE,OAAA,EAAS,UAAA;IAAA;IASX;;;;;;IAAA,IAAA;MAkBA;;;MAdE,GAAA,EAAK,UAAA,CAAW,YAAA;MAsBE;;;MAjBlB,OAAA,EAAS,UAAA,CAAW,gBAAA;IAAA;;;;;;;IAStB,MAAA,EAAQ,iBAAA;;;;;;;IAQR,QAAA,EAAU,UAAA;EAAA;AAAA"}
@@ -158,11 +158,6 @@ interface EnvPluginContext<TResolvedConfig extends EnvPluginResolvedConfig = Env
158
158
  injected: Reflection;
159
159
  };
160
160
  }
161
- declare type __ΩEnvType = any[];
162
- declare type __ΩEnvPluginOptions = any[];
163
- declare type __ΩEnvPluginUserConfig = any[];
164
- declare type __ΩEnvPluginResolvedConfig = any[];
165
- declare type __ΩEnvPluginContext = any[];
166
161
  //#endregion
167
- export { EnvPluginContext, EnvPluginOptions, EnvPluginResolvedConfig, EnvPluginUserConfig, EnvType, __ΩEnvPluginContext, __ΩEnvPluginOptions, __ΩEnvPluginResolvedConfig, __ΩEnvPluginUserConfig, __ΩEnvType };
162
+ export { EnvPluginContext, EnvPluginOptions, EnvPluginResolvedConfig, EnvPluginUserConfig, EnvType };
168
163
  //# sourceMappingURL=plugin.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;;;;;;;KAyCY,OAAA;AAAA,KAEA,gBAAA,GAAmB,IAAA,CAAK,mBAAA;EAFxB;;;EAMV,KAAA,GAAQ,uBAAA;EANS;AAEnB;;EASE,OAAA,GAAU,uBAAA;EATwB;;;;;;EAiBlC,MAAA;EA8CQ;;;;;EAvCR,MAAA;EApBQ;;;;;EA2BR,QAAA;EAQA;;;;;;EAAA,aAAA,GAAgB,QAAA;EAwBR;;;AAGV;;;EAnBE,KAAA,GAAQ,kBAAA;EAoBR;;;;;;EAZA,MAAA,GAAS,mBAAA;EAaF;;;AAGT;;;EARE,KAAA,GAAQ,kBAAA;AAAA;AAAA,KAGE,mBAAA,GAAsB,qBAAA,GAChC,qBAAA;EACE,GAAA,EAAK,gBAAA;AAAA;AAAA,KAGG,uBAAA,GAA0B,yBAAA,GACpC,yBAAA;EACE,GAAA,EAAK,QAAA,CAAS,IAAA,CAAK,mBAAA,wBACjB,QAAA,CAAS,IAAA,CAAK,gBAAA;IAAd;;;;;;IAOE,KAAA,EAAO,cAAA;IARX;;;;;;IAgBI,OAAA,EAAS,cAAA;IART;;;;;;IAgBA,MAAA;IAgBM;;AAId;;;;IAZQ,QAAA;IAgBe;;;;;;IARf,MAAA;EAAA;AAAA;AAAA,UAIS,gBAAA,yBACS,uBAAA,GAA0B,uBAAA,UAGhD,kBAAA,CAAmB,eAAA,GACnB,kBAAA,CAAmB,eAAA;EACrB,GAAA;IADE;;;;;;IAQA,KAAA;MATmB;;;MAajB,GAAA,EAAK,UAAA;MAJP;;;MASE,OAAA,EAAS,UAAA;IAAA;IASX;;;;;;IAAA,IAAA;MAk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AAA;MAkBA;;;MAdE,GAAA,EAAK,UAAA,CAAW,YAAA;MAsBE;;;MAjBlB,OAAA,EAAS,UAAA,CAAW,gBAAA;IAAA;;;;;;;IAStB,MAAA,EAAQ,iBAAA;;;;;;;IAQR,QAAA,EAAU,UAAA;EAAA;AAAA"}
@@ -19,7 +19,6 @@ const __ΩEnvInterface = [
19
19
  "The tag for the release. This is generally in the format of \"\\<APP_NAME\\>\\@\\<APP_VERSION\\>\".",
20
20
  "ORGANIZATION",
21
21
  "The name of the organization that maintains the application.",
22
- { alias: ["ORG"] },
23
22
  "node",
24
23
  "neutral",
25
24
  "browser",
@@ -32,7 +31,6 @@ const __ΩEnvInterface = [
32
31
  "MODE",
33
32
  "production",
34
33
  "The mode in which the application is running.",
35
- { alias: ["NODE_ENV", "VERCEL_ENV"] },
36
34
  "ENVIRONMENT",
37
35
  "The environment the application is running in. This value will be populated with the value of `MODE` if not provided.",
38
36
  "DEBUG",
@@ -91,10 +89,7 @@ const __ΩEnvInterface = [
91
89
  "The default lowest log level to accept. If `null`, the logger will reject all records.",
92
90
  "CI",
93
91
  "An indicator that specifies the current runtime is a continuous integration environment.",
94
- {
95
- alias: ["CONTINUOUS_INTEGRATION"],
96
- title: "Continuous Integration"
97
- },
92
+ { title: "Continuous Integration" },
98
93
  "RUN_ID",
99
94
  "The unique identifier for the current run. This value is set by certain CI/CD systems.",
100
95
  "AGOLA_GIT_REF",
@@ -228,7 +223,7 @@ const __ΩEnvInterface = [
228
223
  "A variable that specifies the [Devenv](https://devenv.sh/) runtime directory.",
229
224
  "The base environment configuration used by Powerlines applications",
230
225
  "EnvInterface",
231
- "P&4!9?\"&4#9>$?%&4&9?'&4(9?)&4*9?+&4,9?-&4.9?/&40?1z2P.3.4.5J46>7?8P.9.:.;J4<>=?>z?&4@>=?A)4B?C)4D?E)4F?G)4H?IP)'J4J?KP)'J4L?M&4N89?O&4P89?Q&4R89?S&4T89?U&4V89?W&4X89?Y&4Z89?[)4\\89?]&4^89?_&4`89?a&4b89?c)4d?e)4f?g&4h?izj&4k>l?m&4n>o?pP.q.r.s.t,J4u8>v?w)4x?yzz&4{89?|&4}89?~&489?€&489?‚&4ƒ89?„&4…89?†&4‡89?ˆ&4‰89?Š&4‹89?Œ&489?Ž&489?&4‘89?’&4“89?”&4•89?–&4—89?˜&4™89?š&4›89?œ&489?ž&4Ÿ89?\xA0&4¡89?¢&4£89?¤&4¥89?¦&4§89?¨&4©89?ª&4«89?¬&4­89?®&4¯89?°&4±89?²&4³89?´&4µ89?¶&4·89?¸&4¹89?º&4»89?¼&4½89?¾&4¿89?À&4Á89?Â&4Ã89?Ä&4Å89?Æ&4Ç89?È&4É89?Ê&4Ë89?Ì&4Í89?Î&4Ï89?Ð&4Ñ89?Ò&4Ó89?Ô&4Õ89?Ö&4×89?Ø&4Ù89?Ú&4Û89?Ü&4Ý89?Þ&4ß8zá&4â8zä&4å8zç&4è8zê&4ë8zí&4î89?ï&4ð89?ñ&4ò89?ó&4ô89?õ&4ö89?÷&4ø89?ù&4ú89?û&4ü8M?þwÿy"
226
+ "P&4!9?\"&4#9>$?%&4&9?'&4(9?)&4*9?+&4,9?-&4.9?/&40?1P.2.3.4J45>6?7P.8.9.:J4;><?=&4>><??)4@?A)4B?C)4D?E)4F?GP)'J4H?IP)'J4J?K&4L89?M&4N89?O&4P89?Q&4R89?S&4T89?U&4V89?W&4X89?Y)4Z89?[&4\\89?]&4^89?_&4`89?a)4b?c)4d?e&4f?gzh&4i>j?k&4l>m?nP.o.p.q.r,J4s8>t?u)4v?wzx&4y89?z&4{89?|&4}89?~&489?€&489?‚&4ƒ89?„&4…89?†&4‡89?ˆ&4‰89?Š&4‹89?Œ&489?Ž&489?&4‘89?’&4“89?”&4•89?–&4—89?˜&4™89?š&4›89?œ&489?ž&4Ÿ89?\xA0&4¡89?¢&4£89?¤&4¥89?¦&4§89?¨&4©89?ª&4«89?¬&4­89?®&4¯89?°&4±89?²&4³89?´&4µ89?¶&4·89?¸&4¹89?º&4»89?¼&4½89?¾&4¿89?À&4Á89?Â&4Ã89?Ä&4Å89?Æ&4Ç89?È&4É89?Ê&4Ë89?Ì&4Í89?Î&4Ï89?Ð&4Ñ89?Ò&4Ó89?Ô&4Õ89?Ö&4×89?Ø&4Ù89?Ú&4Û89?Ü&4Ý8zß&4à8zâ&4ã8zå&4æ8zè&4é8zë&4ì89?í&4î89?ï&4ð89?ñ&4ò89?ó&4ô89?õ&4ö89?÷&4ø89?ù&4ú8M?üwýy"
232
227
  ];
233
228
  const __ΩSecretsInterface = [
234
229
  "ENCRYPTION_KEY",
@@ -785,8 +785,6 @@ interface SecretsInterface {
785
785
  */
786
786
  ENCRYPTION_KEY: string;
787
787
  }
788
- declare type __ΩEnvInterface = any[];
789
- declare type __ΩSecretsInterface = any[];
790
788
  //#endregion
791
- export { EnvInterface, SecretsInterface, __ΩEnvInterface, __ΩSecretsInterface };
789
+ export { EnvInterface, SecretsInterface };
792
790
  //# sourceMappingURL=runtime.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"runtime.d.cts","names":[],"sources":["../../src/types/runtime.ts"],"mappings":";;AA6BA;;;;;;;;;;UAAiB,YAAA;EAqEf;;;;;;EAAA,SA9DS,QAAA;EAyHT;;;;;;;;EAAA,SA/GS,WAAA;EA2LA;;;;;;EAAA,SAnLA,QAAA;EA4OT;;;;;;EAAA,SApOS,eAAA;EA8RA;;;;;;EAAA,SAtRA,cAAA;EA8UA;;;;;;EAAA,SAtUA,UAAA;EA8XA;;;;;;EAAA,SAtXA,WAAA;EA8aA;;;;;;;;;;EAlaT,YAAA;EA0fS;;;;;;;EAjfT,QAAA;EAgjBS;;;;;;;;;;;EAniBT,IAAA;EAkpBA;;;;;;;EAzoBA,WAAA;EAivBA;;;AASF;;EAnvBE,KAAA;EA4vBA;;;;;EArvBA,IAAA;;;;;;EAOA,OAAA;;;;;;EAOA,QAAA;;;;;;EAOA,WAAA;;;;;;;;EAUA,eAAA;;;;;;;WAQS,UAAA;;;;;;;WAQA,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;;;;;;;;WAaS,YAAA;;;;;;;;;;;;WAaA,OAAA;;;;;;;;;;;;WAaA,aAAA;;;;;;;;;;;;WAaA,eAAA;;;;;;;;;;;;WAaA,cAAA;;;;;;;;;;;;WAaA,cAAA;;;;;;;;;;;;WAaA,eAAA;;;;;;;;;;;;EAaT,cAAA;AAAA;;;;;;;UASe,gBAAA;;;;;;;;;EASf,cAAA;AAAA"}
@@ -785,8 +785,6 @@ interface SecretsInterface {
785
785
  */
786
786
  ENCRYPTION_KEY: string;
787
787
  }
788
- declare type __ΩEnvInterface = any[];
789
- declare type __ΩSecretsInterface = any[];
790
788
  //#endregion
791
- export { EnvInterface, SecretsInterface, __ΩEnvInterface, __ΩSecretsInterface };
789
+ export { EnvInterface, SecretsInterface };
792
790
  //# sourceMappingURL=runtime.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"runtime.d.mts","names":[],"sources":["../../src/types/runtime.ts"],"mappings":";;AA6BA;;;;;;;;;;UAAiB,YAAA;EAqEf;;;;;;EAAA,SA9DS,QAAA;EAyHT;;;;;;;;EAAA,SA/GS,WAAA;EA2LA;;;;;;EAAA,SAnLA,QAAA;EA4OT;;;;;;EAAA,SApOS,eAAA;EA8RA;;;;;;EAAA,SAtRA,cAAA;EA8UA;;;;;;EAAA,SAtUA,UAAA;EA8XA;;;;;;EAAA,SAtXA,WAAA;EA8aA;;;;;;;;;;EAlaT,YAAA;EA0fS;;;;;;;EAjfT,QAAA;EAgjBS;;;;;;;;;;;EAniBT,IAAA;EAkpBA;;;;;;;EAzoBA,WAAA;EAivBA;;;AASF;;EAnvBE,KAAA;EA4vBA;;;;;EArvBA,IAAA;;;;;;EAOA,OAAA;;;;;;EAOA,QAAA;;;;;;EAOA,WAAA;;;;;;;;EAUA,eAAA;;;;;;;WAQS,UAAA;;;;;;;WAQA,SAAA;;;;;;;;;;WAWA,IAAA;;;;;;;WAQA,YAAA;;;;;;;WAQA,oBAAA;;;;;;;WAQA,iBAAA;;;;;;;WAQA,UA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;;;;;WAaA,cAAA;;;;;;;;;;;;WAaA,cAAA;;;;;;;;;;;;WAaA,eAAA;;;;;;;;;;;;EAaT,cAAA;AAAA;;;;;;;UASe,gBAAA;;;;;;;;;EASf,cAAA;AAAA"}
@@ -17,7 +17,6 @@ const __ΩEnvInterface = [
17
17
  "The tag for the release. This is generally in the format of \"\\<APP_NAME\\>\\@\\<APP_VERSION\\>\".",
18
18
  "ORGANIZATION",
19
19
  "The name of the organization that maintains the application.",
20
- { alias: ["ORG"] },
21
20
  "node",
22
21
  "neutral",
23
22
  "browser",
@@ -30,7 +29,6 @@ const __ΩEnvInterface = [
30
29
  "MODE",
31
30
  "production",
32
31
  "The mode in which the application is running.",
33
- { alias: ["NODE_ENV", "VERCEL_ENV"] },
34
32
  "ENVIRONMENT",
35
33
  "The environment the application is running in. This value will be populated with the value of `MODE` if not provided.",
36
34
  "DEBUG",
@@ -89,10 +87,7 @@ const __ΩEnvInterface = [
89
87
  "The default lowest log level to accept. If `null`, the logger will reject all records.",
90
88
  "CI",
91
89
  "An indicator that specifies the current runtime is a continuous integration environment.",
92
- {
93
- alias: ["CONTINUOUS_INTEGRATION"],
94
- title: "Continuous Integration"
95
- },
90
+ { title: "Continuous Integration" },
96
91
  "RUN_ID",
97
92
  "The unique identifier for the current run. This value is set by certain CI/CD systems.",
98
93
  "AGOLA_GIT_REF",
@@ -226,7 +221,7 @@ const __ΩEnvInterface = [
226
221
  "A variable that specifies the [Devenv](https://devenv.sh/) runtime directory.",
227
222
  "The base environment configuration used by Powerlines applications",
228
223
  "EnvInterface",
229
- "P&4!9?\"&4#9>$?%&4&9?'&4(9?)&4*9?+&4,9?-&4.9?/&40?1z2P.3.4.5J46>7?8P.9.:.;J4<>=?>z?&4@>=?A)4B?C)4D?E)4F?G)4H?IP)'J4J?KP)'J4L?M&4N89?O&4P89?Q&4R89?S&4T89?U&4V89?W&4X89?Y&4Z89?[)4\\89?]&4^89?_&4`89?a&4b89?c)4d?e)4f?g&4h?izj&4k>l?m&4n>o?pP.q.r.s.t,J4u8>v?w)4x?yzz&4{89?|&4}89?~&489?€&489?‚&4ƒ89?„&4…89?†&4‡89?ˆ&4‰89?Š&4‹89?Œ&489?Ž&489?&4‘89?’&4“89?”&4•89?–&4—89?˜&4™89?š&4›89?œ&489?ž&4Ÿ89?\xA0&4¡89?¢&4£89?¤&4¥89?¦&4§89?¨&4©89?ª&4«89?¬&4­89?®&4¯89?°&4±89?²&4³89?´&4µ89?¶&4·89?¸&4¹89?º&4»89?¼&4½89?¾&4¿89?À&4Á89?Â&4Ã89?Ä&4Å89?Æ&4Ç89?È&4É89?Ê&4Ë89?Ì&4Í89?Î&4Ï89?Ð&4Ñ89?Ò&4Ó89?Ô&4Õ89?Ö&4×89?Ø&4Ù89?Ú&4Û89?Ü&4Ý89?Þ&4ß8zá&4â8zä&4å8zç&4è8zê&4ë8zí&4î89?ï&4ð89?ñ&4ò89?ó&4ô89?õ&4ö89?÷&4ø89?ù&4ú89?û&4ü8M?þwÿy"
224
+ "P&4!9?\"&4#9>$?%&4&9?'&4(9?)&4*9?+&4,9?-&4.9?/&40?1P.2.3.4J45>6?7P.8.9.:J4;><?=&4>><??)4@?A)4B?C)4D?E)4F?GP)'J4H?IP)'J4J?K&4L89?M&4N89?O&4P89?Q&4R89?S&4T89?U&4V89?W&4X89?Y)4Z89?[&4\\89?]&4^89?_&4`89?a)4b?c)4d?e&4f?gzh&4i>j?k&4l>m?nP.o.p.q.r,J4s8>t?u)4v?wzx&4y89?z&4{89?|&4}89?~&489?€&489?‚&4ƒ89?„&4…89?†&4‡89?ˆ&4‰89?Š&4‹89?Œ&489?Ž&489?&4‘89?’&4“89?”&4•89?–&4—89?˜&4™89?š&4›89?œ&489?ž&4Ÿ89?\xA0&4¡89?¢&4£89?¤&4¥89?¦&4§89?¨&4©89?ª&4«89?¬&4­89?®&4¯89?°&4±89?²&4³89?´&4µ89?¶&4·89?¸&4¹89?º&4»89?¼&4½89?¾&4¿89?À&4Á89?Â&4Ã89?Ä&4Å89?Æ&4Ç89?È&4É89?Ê&4Ë89?Ì&4Í89?Î&4Ï89?Ð&4Ñ89?Ò&4Ó89?Ô&4Õ89?Ö&4×89?Ø&4Ù89?Ú&4Û89?Ü&4Ý8zß&4à8zâ&4ã8zå&4æ8zè&4é8zë&4ì89?í&4î89?ï&4ð89?ñ&4ò89?ó&4ô89?õ&4ö89?÷&4ø89?ù&4ú8M?üwýy"
230
225
  ];
231
226
  const __ΩSecretsInterface = [
232
227
  "ENCRYPTION_KEY",
@@ -1 +1 @@
1
- {"version":3,"file":"runtime.mjs","names":[],"sources":["../../src/types/runtime.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\n/**\n * The base environment configuration used by Powerlines applications\n *\n * @remarks\n * This interface is used to define the environment variables, configuration options, and runtime settings used by applications. It is used to provide type safety, autocompletion, and default values for the environment variables. The comments of each variable are used to provide documentation descriptions when running the \\`powerlines docs\\` command.\n *\n * @categoryDescription Platform\n * The name of the platform the configuration parameter is intended for use in.\n *\n * @showCategories\n */\nexport interface EnvInterface {\n /**\n * The name of the application.\n *\n * @readonly\n * @category neutral\n */\n readonly APP_NAME: string;\n\n /**\n * The version of the application.\n *\n * @defaultValue \"1.0.0\"\n *\n * @readonly\n * @category neutral\n */\n readonly APP_VERSION: string;\n\n /**\n * The unique identifier for the build.\n *\n * @readonly\n * @category neutral\n */\n readonly BUILD_ID: string;\n\n /**\n * The timestamp the build was ran at.\n *\n * @readonly\n * @category neutral\n */\n readonly BUILD_TIMESTAMP: string;\n\n /**\n * A checksum hash created during the build.\n *\n * @readonly\n * @category neutral\n */\n readonly BUILD_CHECKSUM: string;\n\n /**\n * The unique identifier for the release.\n *\n * @readonly\n * @category neutral\n */\n readonly RELEASE_ID: string;\n\n /**\n * The tag for the release. This is generally in the format of \"\\<APP_NAME\\>\\@\\<APP_VERSION\\>\".\n *\n * @readonly\n * @category neutral\n */\n readonly RELEASE_TAG: string;\n\n /**\n * The name of the organization that maintains the application.\n *\n * @remarks\n * This variable is used to specify the name of the organization that maintains the application. If not provided in an environment, it will try to use the value in {@link @storm-software/config-tools/StormWorkspaceConfig#organization}.\n *\n * @alias ORG\n * @alias ORG_ID\n * @category neutral\n */\n ORGANIZATION: string;\n\n /**\n * The platform for which the application was built.\n *\n * @defaultValue \"neutral\"\n *\n * @category neutral\n */\n PLATFORM: \"node\" | \"neutral\" | \"browser\";\n\n /**\n * The mode in which the application is running.\n *\n * @defaultValue \"production\"\n *\n * @alias NODE_ENV\n * @alias ENV\n * @alias VERCEL_ENV\n *\n * @category neutral\n */\n MODE: \"development\" | \"test\" | \"production\";\n\n /**\n * The environment the application is running in. This value will be populated with the value of `MODE` if not provided.\n *\n * @defaultValue \"production\"\n *\n * @category neutral\n */\n ENVIRONMENT: string;\n\n /**\n * Indicates if the application is running in debug mode.\n *\n * @category neutral\n */\n DEBUG: boolean;\n\n /**\n * An indicator that specifies the current runtime is a test environment.\n *\n * @category neutral\n */\n TEST: boolean;\n\n /**\n * An indicator that specifies the current runtime is a minimal environment.\n *\n * @category node\n */\n MINIMAL: boolean;\n\n /**\n * An indicator that specifies the current runtime is a no color environment.\n *\n * @category node\n */\n NO_COLOR: boolean;\n\n /**\n * An indicator that specifies the current runtime is a force color environment.\n *\n * @category node\n */\n FORCE_COLOR: boolean | number;\n\n /**\n * An indicator that specifies the current runtime should force hyperlinks in terminal output.\n *\n * @remarks\n * This variable is used to force hyperlinks in terminal output, even if the terminal does not support them. This is useful for debugging and development purposes.\n\n * @category node\n */\n FORCE_HYPERLINK: boolean | number;\n\n /**\n * The name of the agent running the application. This variable is set by certain CI/CD systems.\n *\n * @readonly\n * @category neutral\n */\n readonly AGENT_NAME?: string;\n\n /**\n * The color terminal type. This variable is set by certain terminal emulators.\n *\n * @readonly\n * @category node\n */\n readonly COLORTERM?: string;\n\n /**\n * The terminal type. This variable is set by certain CI/CD systems.\n *\n * @remarks\n * This variable is used to specify the terminal type that the application is running in. It can be used to determine how to format output for the terminal.\n *\n * @readonly\n * @category node\n */\n readonly TERM?: string;\n\n /**\n * The terminal program name. This variable is set by certain terminal emulators.\n *\n * @readonly\n * @category node\n */\n readonly TERM_PROGRAM?: string;\n\n /**\n * The terminal program version. This variable is set by certain terminal emulators.\n *\n * @readonly\n * @category node\n */\n readonly TERM_PROGRAM_VERSION?: string;\n\n /**\n * The terminal emulator name. This variable is set by certain terminal emulators.\n *\n * @readonly\n * @category node\n */\n readonly TERMINAL_EMULATOR?: string;\n\n /**\n * The terminal emulator session ID. This variable is set by certain terminal emulators.\n *\n * @readonly\n * @category node\n */\n readonly WT_SESSION?: string;\n\n /**\n * An indicator that specifies the current terminal is running Terminus Sublime. This variable is set by certain terminal emulators.\n *\n * @readonly\n * @category node\n */\n readonly TERMINUS_SUBLIME?: boolean;\n\n /**\n * The ConEmu task name. This variable is set by certain terminal emulators.\n *\n * @readonly\n * @category node\n */\n readonly ConEmuTask?: string;\n\n /**\n * The cursor trace ID. This variable is set by certain terminal emulators.\n *\n * @readonly\n * @category node\n */\n readonly CURSOR_TRACE_ID?: string;\n\n /**\n * The VTE version. This variable is set by certain terminal emulators.\n *\n * @readonly\n * @category node\n */\n readonly VTE_VERSION?: string;\n\n /**\n * Indicates if error stack traces should be captured.\n *\n * @category neutral\n */\n STACKTRACE: boolean;\n\n /**\n * Indicates if error data should be included.\n *\n * @category neutral\n */\n INCLUDE_ERROR_DATA: boolean;\n\n /**\n * A web page to lookup error messages and display additional information given an error code.\n *\n * @remarks\n * This variable is used to provide a URL to a page that can be used to look up error messages given an error code. This is used to provide a more user-friendly error message to the user.\n *\n * @title Error Details URL\n * @category neutral\n */\n ERROR_URL: string;\n\n /**\n * The default timezone for the application.\n *\n * @defaultValue \"America/New_York\"\n * @category neutral\n */\n DEFAULT_TIMEZONE: string;\n\n /**\n * The default locale to be used in the application.\n *\n * @defaultValue \"en_US\"\n * @category neutral\n */\n DEFAULT_LOCALE: string;\n\n /**\n * The default lowest log level to accept. If `null`, the logger will reject all records.\n *\n * @defaultValue \"info\"\n *\n * @category neutral\n */\n LOG_LEVEL?: \"error\" | \"warn\" | \"info\" | \"debug\" | null;\n\n /**\n * An indicator that specifies the current runtime is a continuous integration environment.\n *\n * @title Continuous Integration\n * @alias CONTINUOUS_INTEGRATION\n * @category neutral\n */\n CI: boolean;\n\n /**\n * The unique identifier for the current run. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly RUN_ID?: string;\n\n /**\n * The agola git reference. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly AGOLA_GIT_REF?: string;\n\n /**\n * The appcircle build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly AC_APPCIRCLE?: string;\n\n /**\n * The appveyor build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly APPVEYOR?: string;\n\n /**\n * The codebuild build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly CODEBUILD?: string;\n\n /**\n * The task force build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly TF_BUILD?: string;\n\n /**\n * The bamboo plan key. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly bamboo_planKey?: string;\n\n /**\n * The bitbucket commit. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly BITBUCKET_COMMIT?: string;\n\n /**\n * The bitrise build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly BITRISE_IO?: string;\n\n /**\n * The buddy workspace ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly BUDDY_WORKSPACE_ID?: string;\n\n /**\n * The buildkite build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly BUILDKITE?: string;\n\n /**\n * The circleci build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly CIRCLECI?: string;\n\n /**\n * The cirrus-ci build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly CIRRUS_CI?: string;\n\n /**\n * The cf build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly CF_BUILD_ID?: string;\n\n /**\n * The cm build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly CM_BUILD_ID?: string;\n\n /**\n * The ci name. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly CI_NAME?: string;\n\n /**\n * The drone build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly DRONE?: string;\n\n /**\n * The dsari build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly DSARI?: string;\n\n /**\n * The earthly build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly EARTHLY_CI?: string;\n\n /**\n * The eas build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly EAS_BUILD?: string;\n\n /**\n * The gerrit project. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly GERRIT_PROJECT?: string;\n\n /**\n * The gitea actions build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly GITEA_ACTIONS?: string;\n\n /**\n * The github actions build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly GITHUB_ACTIONS?: string;\n\n /**\n * The gitlab ci build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly GITLAB_CI?: string;\n\n /**\n * The go cd build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly GOCD?: string;\n\n /**\n * The builder output build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly BUILDER_OUTPUT?: string;\n\n /**\n * The harness build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly HARNESS_BUILD_ID?: string;\n\n /**\n * The jenkins url. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly JENKINS_URL?: string;\n\n /**\n * The layerci build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly LAYERCI?: string;\n\n /**\n * The magnum build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly MAGNUM?: string;\n\n /**\n * The netlify build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly NETLIFY?: string;\n\n /**\n * The nevercode build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly NEVERCODE?: string;\n\n /**\n * The prow job ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly PROW_JOB_ID?: string;\n\n /**\n * The release build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly RELEASE_BUILD_ID?: string;\n\n /**\n * The render build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly RENDER?: string;\n\n /**\n * The sailci build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly SAILCI?: string;\n\n /**\n * The hudson build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly HUDSON?: string;\n\n /**\n * The screwdriver build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly SCREWDRIVER?: string;\n\n /**\n * The semaphore build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly SEMAPHORE?: string;\n\n /**\n * The sourcehut build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly SOURCEHUT?: string;\n /**\n * The spaceship build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly SPACESHIP_CI?: string;\n\n /**\n * The strider build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly STRIDER?: string;\n\n /**\n * The task ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly TASK_ID?: string;\n\n /**\n * The teamcity version. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly TEAMCITY_VERSION?: string;\n\n /**\n * The travis build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly TRAVIS?: string;\n\n /**\n * The vela build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly VELA?: string;\n\n /**\n * The now builder build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly NOW_BUILDER?: string;\n\n /**\n * The appcenter build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly APPCENTER_BUILD_ID?: string;\n\n /**\n * The xcode project build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly CI_XCODE_PROJECT?: string;\n\n /**\n * The xcode server build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly XCS?: string;\n\n /**\n * The application's runtime data directory.\n *\n * @remarks\n * This variable is used to override the base path of the system's local application data directory. This variable is used to set the \\`$storm.paths.data\\` property.\n *\n * @title Data Directory\n * @category node\n */\n DATA_DIR?: string;\n\n /**\n * The application's configuration data directory.\n *\n * @remarks\n * This variable is used to override the base path of the system's local application configuration directory. This variable is used to set the \\`$storm.paths.config\\` property.\n *\n * @title Configuration Directory\n * @category node\n */\n CONFIG_DIR?: string;\n\n /**\n * The application's cached data directory.\n *\n * @remarks\n * This variable is used to override the base path of the system's local cache data directory. This variable is used to set the \\`$storm.paths.cache\\` property.\n *\n * @title Cache Directory\n * @category node\n */\n CACHE_DIR?: string;\n\n /**\n * The application's logging directory.\n *\n * @remarks\n * This variable is used to override the base path of the system's local application log directory. This variable is used to set the \\`$storm.paths.log\\` property.\n *\n * @title Log Directory\n * @category node\n */\n LOG_DIR?: string;\n\n /**\n * The application's temporary data directory.\n *\n * @remarks\n * This variable is used to override the base path of the system's local temporary data directory. This variable is used to set the \\`$storm.paths.temp\\` property.\n *\n * @title Temporary Directory\n * @category node\n */\n TEMP_DIR?: string;\n\n /**\n * A variable that specifies the current user's local application data directory on Windows.\n *\n * @see https://www.advancedinstaller.com/appdata-localappdata-programdata.html\n *\n * @remarks\n * This variable is used to specify a path to application data that is specific to the current user. This variable can be used to set the \\`$storm.paths.data\\`, \\`$storm.paths.cache\\`, and \\`$storm.paths.log\\` properties.\n *\n * @readonly\n * @category node\n */\n readonly LOCALAPPDATA?: string;\n\n /**\n * A variable that specifies the application data directory on Windows.\n *\n * @see https://www.advancedinstaller.com/appdata-localappdata-programdata.html\n *\n * @remarks\n * This variable is used to specify a path to application data that is specific to the current user. This variable can be used to set the \\`$storm.paths.config\\` property.\n *\n * @readonly\n * @category node\n */\n readonly APPDATA?: string;\n\n /**\n * A variable that specifies the data path in the home directory on Linux systems using the XDG base directory specification.\n *\n * @see https://gist.github.com/roalcantara/107ba66dfa3b9d023ac9329e639bc58c\n *\n * @remarks\n * This variable is used to specify a path to application data that is specific to the current user. This variable can be used to set the \\`$storm.paths.data\\` property.\n *\n * @readonly\n * @category node\n */\n readonly XDG_DATA_HOME?: string;\n\n /**\n * A variable that specifies the configuration path in the home directory on Linux systems using the XDG base directory specification.\n *\n * @see https://gist.github.com/roalcantara/107ba66dfa3b9d023ac9329e639bc58c\n *\n * @remarks\n * This variable is used to specify a path to configuration data that is specific to the current user. This variable can be used to set the \\`$storm.paths.config\\` property.\n *\n * @readonly\n * @category node\n */\n readonly XDG_CONFIG_HOME?: string;\n\n /**\n * A variable that specifies the cache path in the home directory on Linux systems using the XDG base directory specification.\n *\n * @see https://gist.github.com/roalcantara/107ba66dfa3b9d023ac9329e639bc58c\n *\n * @remarks\n * This variable is used to specify a path to cache data that is specific to the current user. This variable can be used to set the \\`$storm.paths.cache\\` property.\n *\n * @readonly\n * @category node\n */\n readonly XDG_CACHE_HOME?: string;\n\n /**\n * A variable that specifies the state directory on Linux systems using the XDG base directory specification.\n *\n * @see https://gist.github.com/roalcantara/107ba66dfa3b9d023ac9329e639bc58c\n *\n * @remarks\n * This variable is used to specify a path to application state data that is specific to the current user. This variable can be used to set the \\`$storm.paths.state\\` property.\n *\n * @readonly\n * @category node\n */\n readonly XDG_STATE_HOME?: string;\n\n /**\n * A variable that specifies the runtime directory on Linux systems using the XDG base directory specification.\n *\n * @see https://gist.github.com/roalcantara/107ba66dfa3b9d023ac9329e639bc58c\n *\n * @remarks\n * This variable is used to specify a path to runtime data that is specific to the current user. This variable can be used to set the \\`$storm.paths.temp\\` property.\n *\n * @readonly\n * @category node\n */\n readonly XDG_RUNTIME_DIR?: string;\n\n /**\n * A variable that specifies the [Devenv](https://devenv.sh/) runtime directory.\n *\n * @see https://devenv.sh/files-and-variables/#devenv_dotfile\n * @see https://nixos.org/\n *\n * @remarks\n * This variable is used to specify a path to application data that is specific to the current [Nix](https://nixos.org/) environment. This variable can be used to set the \\`$storm.paths.temp\\` property.\n *\n * @category node\n */\n DEVENV_RUNTIME?: string;\n}\n\n/**\n * The base secrets configuration used by Powerlines applications\n *\n * @remarks\n * This interface is used to define the secret configuration options used by Powerlines applications. It is used to provide type safety, autocompletion, and default values for the environment variables. The comments of each variable are used to provide documentation descriptions when running the \\`storm docs\\` command. Since these are secrets, no default values should be provided and the values should be kept confidential (excluded from the client).\n */\nexport interface SecretsInterface {\n /**\n * The secret key used for encryption and decryption.\n *\n * @remarks\n * This variable is used to provide a secret key for encryption and decryption of sensitive data. It is important that this value is kept confidential and not exposed in client-side code or public repositories.\n *\n * @title Encryption Key\n */\n ENCRYPTION_KEY: string;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmBA,MAAM,sBAAkB;CAAA;CAAsB;CAAW,EAAA,OAAA,kBAAA;CAAA;CAAA;CAAA;CAAA"}
1
+ {"version":3,"file":"runtime.mjs","names":[],"sources":["../../src/types/runtime.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\n/**\n * The base environment configuration used by Powerlines applications\n *\n * @remarks\n * This interface is used to define the environment variables, configuration options, and runtime settings used by applications. It is used to provide type safety, autocompletion, and default values for the environment variables. The comments of each variable are used to provide documentation descriptions when running the \\`powerlines docs\\` command.\n *\n * @categoryDescription Platform\n * The name of the platform the configuration parameter is intended for use in.\n *\n * @showCategories\n */\nexport interface EnvInterface {\n /**\n * The name of the application.\n *\n * @readonly\n * @category neutral\n */\n readonly APP_NAME: string;\n\n /**\n * The version of the application.\n *\n * @defaultValue \"1.0.0\"\n *\n * @readonly\n * @category neutral\n */\n readonly APP_VERSION: string;\n\n /**\n * The unique identifier for the build.\n *\n * @readonly\n * @category neutral\n */\n readonly BUILD_ID: string;\n\n /**\n * The timestamp the build was ran at.\n *\n * @readonly\n * @category neutral\n */\n readonly BUILD_TIMESTAMP: string;\n\n /**\n * A checksum hash created during the build.\n *\n * @readonly\n * @category neutral\n */\n readonly BUILD_CHECKSUM: string;\n\n /**\n * The unique identifier for the release.\n *\n * @readonly\n * @category neutral\n */\n readonly RELEASE_ID: string;\n\n /**\n * The tag for the release. This is generally in the format of \"\\<APP_NAME\\>\\@\\<APP_VERSION\\>\".\n *\n * @readonly\n * @category neutral\n */\n readonly RELEASE_TAG: string;\n\n /**\n * The name of the organization that maintains the application.\n *\n * @remarks\n * This variable is used to specify the name of the organization that maintains the application. If not provided in an environment, it will try to use the value in {@link @storm-software/config-tools/StormWorkspaceConfig#organization}.\n *\n * @alias ORG\n * @alias ORG_ID\n * @category neutral\n */\n ORGANIZATION: string;\n\n /**\n * The platform for which the application was built.\n *\n * @defaultValue \"neutral\"\n *\n * @category neutral\n */\n PLATFORM: \"node\" | \"neutral\" | \"browser\";\n\n /**\n * The mode in which the application is running.\n *\n * @defaultValue \"production\"\n *\n * @alias NODE_ENV\n * @alias ENV\n * @alias VERCEL_ENV\n *\n * @category neutral\n */\n MODE: \"development\" | \"test\" | \"production\";\n\n /**\n * The environment the application is running in. This value will be populated with the value of `MODE` if not provided.\n *\n * @defaultValue \"production\"\n *\n * @category neutral\n */\n ENVIRONMENT: string;\n\n /**\n * Indicates if the application is running in debug mode.\n *\n * @category neutral\n */\n DEBUG: boolean;\n\n /**\n * An indicator that specifies the current runtime is a test environment.\n *\n * @category neutral\n */\n TEST: boolean;\n\n /**\n * An indicator that specifies the current runtime is a minimal environment.\n *\n * @category node\n */\n MINIMAL: boolean;\n\n /**\n * An indicator that specifies the current runtime is a no color environment.\n *\n * @category node\n */\n NO_COLOR: boolean;\n\n /**\n * An indicator that specifies the current runtime is a force color environment.\n *\n * @category node\n */\n FORCE_COLOR: boolean | number;\n\n /**\n * An indicator that specifies the current runtime should force hyperlinks in terminal output.\n *\n * @remarks\n * This variable is used to force hyperlinks in terminal output, even if the terminal does not support them. This is useful for debugging and development purposes.\n\n * @category node\n */\n FORCE_HYPERLINK: boolean | number;\n\n /**\n * The name of the agent running the application. This variable is set by certain CI/CD systems.\n *\n * @readonly\n * @category neutral\n */\n readonly AGENT_NAME?: string;\n\n /**\n * The color terminal type. This variable is set by certain terminal emulators.\n *\n * @readonly\n * @category node\n */\n readonly COLORTERM?: string;\n\n /**\n * The terminal type. This variable is set by certain CI/CD systems.\n *\n * @remarks\n * This variable is used to specify the terminal type that the application is running in. It can be used to determine how to format output for the terminal.\n *\n * @readonly\n * @category node\n */\n readonly TERM?: string;\n\n /**\n * The terminal program name. This variable is set by certain terminal emulators.\n *\n * @readonly\n * @category node\n */\n readonly TERM_PROGRAM?: string;\n\n /**\n * The terminal program version. This variable is set by certain terminal emulators.\n *\n * @readonly\n * @category node\n */\n readonly TERM_PROGRAM_VERSION?: string;\n\n /**\n * The terminal emulator name. This variable is set by certain terminal emulators.\n *\n * @readonly\n * @category node\n */\n readonly TERMINAL_EMULATOR?: string;\n\n /**\n * The terminal emulator session ID. This variable is set by certain terminal emulators.\n *\n * @readonly\n * @category node\n */\n readonly WT_SESSION?: string;\n\n /**\n * An indicator that specifies the current terminal is running Terminus Sublime. This variable is set by certain terminal emulators.\n *\n * @readonly\n * @category node\n */\n readonly TERMINUS_SUBLIME?: boolean;\n\n /**\n * The ConEmu task name. This variable is set by certain terminal emulators.\n *\n * @readonly\n * @category node\n */\n readonly ConEmuTask?: string;\n\n /**\n * The cursor trace ID. This variable is set by certain terminal emulators.\n *\n * @readonly\n * @category node\n */\n readonly CURSOR_TRACE_ID?: string;\n\n /**\n * The VTE version. This variable is set by certain terminal emulators.\n *\n * @readonly\n * @category node\n */\n readonly VTE_VERSION?: string;\n\n /**\n * Indicates if error stack traces should be captured.\n *\n * @category neutral\n */\n STACKTRACE: boolean;\n\n /**\n * Indicates if error data should be included.\n *\n * @category neutral\n */\n INCLUDE_ERROR_DATA: boolean;\n\n /**\n * A web page to lookup error messages and display additional information given an error code.\n *\n * @remarks\n * This variable is used to provide a URL to a page that can be used to look up error messages given an error code. This is used to provide a more user-friendly error message to the user.\n *\n * @title Error Details URL\n * @category neutral\n */\n ERROR_URL: string;\n\n /**\n * The default timezone for the application.\n *\n * @defaultValue \"America/New_York\"\n * @category neutral\n */\n DEFAULT_TIMEZONE: string;\n\n /**\n * The default locale to be used in the application.\n *\n * @defaultValue \"en_US\"\n * @category neutral\n */\n DEFAULT_LOCALE: string;\n\n /**\n * The default lowest log level to accept. If `null`, the logger will reject all records.\n *\n * @defaultValue \"info\"\n *\n * @category neutral\n */\n LOG_LEVEL?: \"error\" | \"warn\" | \"info\" | \"debug\" | null;\n\n /**\n * An indicator that specifies the current runtime is a continuous integration environment.\n *\n * @title Continuous Integration\n * @alias CONTINUOUS_INTEGRATION\n * @category neutral\n */\n CI: boolean;\n\n /**\n * The unique identifier for the current run. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly RUN_ID?: string;\n\n /**\n * The agola git reference. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly AGOLA_GIT_REF?: string;\n\n /**\n * The appcircle build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly AC_APPCIRCLE?: string;\n\n /**\n * The appveyor build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly APPVEYOR?: string;\n\n /**\n * The codebuild build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly CODEBUILD?: string;\n\n /**\n * The task force build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly TF_BUILD?: string;\n\n /**\n * The bamboo plan key. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly bamboo_planKey?: string;\n\n /**\n * The bitbucket commit. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly BITBUCKET_COMMIT?: string;\n\n /**\n * The bitrise build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly BITRISE_IO?: string;\n\n /**\n * The buddy workspace ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly BUDDY_WORKSPACE_ID?: string;\n\n /**\n * The buildkite build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly BUILDKITE?: string;\n\n /**\n * The circleci build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly CIRCLECI?: string;\n\n /**\n * The cirrus-ci build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly CIRRUS_CI?: string;\n\n /**\n * The cf build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly CF_BUILD_ID?: string;\n\n /**\n * The cm build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly CM_BUILD_ID?: string;\n\n /**\n * The ci name. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly CI_NAME?: string;\n\n /**\n * The drone build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly DRONE?: string;\n\n /**\n * The dsari build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly DSARI?: string;\n\n /**\n * The earthly build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly EARTHLY_CI?: string;\n\n /**\n * The eas build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly EAS_BUILD?: string;\n\n /**\n * The gerrit project. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly GERRIT_PROJECT?: string;\n\n /**\n * The gitea actions build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly GITEA_ACTIONS?: string;\n\n /**\n * The github actions build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly GITHUB_ACTIONS?: string;\n\n /**\n * The gitlab ci build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly GITLAB_CI?: string;\n\n /**\n * The go cd build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly GOCD?: string;\n\n /**\n * The builder output build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly BUILDER_OUTPUT?: string;\n\n /**\n * The harness build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly HARNESS_BUILD_ID?: string;\n\n /**\n * The jenkins url. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly JENKINS_URL?: string;\n\n /**\n * The layerci build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly LAYERCI?: string;\n\n /**\n * The magnum build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly MAGNUM?: string;\n\n /**\n * The netlify build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly NETLIFY?: string;\n\n /**\n * The nevercode build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly NEVERCODE?: string;\n\n /**\n * The prow job ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly PROW_JOB_ID?: string;\n\n /**\n * The release build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly RELEASE_BUILD_ID?: string;\n\n /**\n * The render build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly RENDER?: string;\n\n /**\n * The sailci build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly SAILCI?: string;\n\n /**\n * The hudson build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly HUDSON?: string;\n\n /**\n * The screwdriver build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly SCREWDRIVER?: string;\n\n /**\n * The semaphore build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly SEMAPHORE?: string;\n\n /**\n * The sourcehut build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly SOURCEHUT?: string;\n /**\n * The spaceship build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly SPACESHIP_CI?: string;\n\n /**\n * The strider build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly STRIDER?: string;\n\n /**\n * The task ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly TASK_ID?: string;\n\n /**\n * The teamcity version. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly TEAMCITY_VERSION?: string;\n\n /**\n * The travis build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly TRAVIS?: string;\n\n /**\n * The vela build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly VELA?: string;\n\n /**\n * The now builder build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly NOW_BUILDER?: string;\n\n /**\n * The appcenter build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly APPCENTER_BUILD_ID?: string;\n\n /**\n * The xcode project build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly CI_XCODE_PROJECT?: string;\n\n /**\n * The xcode server build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @category node\n */\n readonly XCS?: string;\n\n /**\n * The application's runtime data directory.\n *\n * @remarks\n * This variable is used to override the base path of the system's local application data directory. This variable is used to set the \\`$storm.paths.data\\` property.\n *\n * @title Data Directory\n * @category node\n */\n DATA_DIR?: string;\n\n /**\n * The application's configuration data directory.\n *\n * @remarks\n * This variable is used to override the base path of the system's local application configuration directory. This variable is used to set the \\`$storm.paths.config\\` property.\n *\n * @title Configuration Directory\n * @category node\n */\n CONFIG_DIR?: string;\n\n /**\n * The application's cached data directory.\n *\n * @remarks\n * This variable is used to override the base path of the system's local cache data directory. This variable is used to set the \\`$storm.paths.cache\\` property.\n *\n * @title Cache Directory\n * @category node\n */\n CACHE_DIR?: string;\n\n /**\n * The application's logging directory.\n *\n * @remarks\n * This variable is used to override the base path of the system's local application log directory. This variable is used to set the \\`$storm.paths.log\\` property.\n *\n * @title Log Directory\n * @category node\n */\n LOG_DIR?: string;\n\n /**\n * The application's temporary data directory.\n *\n * @remarks\n * This variable is used to override the base path of the system's local temporary data directory. This variable is used to set the \\`$storm.paths.temp\\` property.\n *\n * @title Temporary Directory\n * @category node\n */\n TEMP_DIR?: string;\n\n /**\n * A variable that specifies the current user's local application data directory on Windows.\n *\n * @see https://www.advancedinstaller.com/appdata-localappdata-programdata.html\n *\n * @remarks\n * This variable is used to specify a path to application data that is specific to the current user. This variable can be used to set the \\`$storm.paths.data\\`, \\`$storm.paths.cache\\`, and \\`$storm.paths.log\\` properties.\n *\n * @readonly\n * @category node\n */\n readonly LOCALAPPDATA?: string;\n\n /**\n * A variable that specifies the application data directory on Windows.\n *\n * @see https://www.advancedinstaller.com/appdata-localappdata-programdata.html\n *\n * @remarks\n * This variable is used to specify a path to application data that is specific to the current user. This variable can be used to set the \\`$storm.paths.config\\` property.\n *\n * @readonly\n * @category node\n */\n readonly APPDATA?: string;\n\n /**\n * A variable that specifies the data path in the home directory on Linux systems using the XDG base directory specification.\n *\n * @see https://gist.github.com/roalcantara/107ba66dfa3b9d023ac9329e639bc58c\n *\n * @remarks\n * This variable is used to specify a path to application data that is specific to the current user. This variable can be used to set the \\`$storm.paths.data\\` property.\n *\n * @readonly\n * @category node\n */\n readonly XDG_DATA_HOME?: string;\n\n /**\n * A variable that specifies the configuration path in the home directory on Linux systems using the XDG base directory specification.\n *\n * @see https://gist.github.com/roalcantara/107ba66dfa3b9d023ac9329e639bc58c\n *\n * @remarks\n * This variable is used to specify a path to configuration data that is specific to the current user. This variable can be used to set the \\`$storm.paths.config\\` property.\n *\n * @readonly\n * @category node\n */\n readonly XDG_CONFIG_HOME?: string;\n\n /**\n * A variable that specifies the cache path in the home directory on Linux systems using the XDG base directory specification.\n *\n * @see https://gist.github.com/roalcantara/107ba66dfa3b9d023ac9329e639bc58c\n *\n * @remarks\n * This variable is used to specify a path to cache data that is specific to the current user. This variable can be used to set the \\`$storm.paths.cache\\` property.\n *\n * @readonly\n * @category node\n */\n readonly XDG_CACHE_HOME?: string;\n\n /**\n * A variable that specifies the state directory on Linux systems using the XDG base directory specification.\n *\n * @see https://gist.github.com/roalcantara/107ba66dfa3b9d023ac9329e639bc58c\n *\n * @remarks\n * This variable is used to specify a path to application state data that is specific to the current user. This variable can be used to set the \\`$storm.paths.state\\` property.\n *\n * @readonly\n * @category node\n */\n readonly XDG_STATE_HOME?: string;\n\n /**\n * A variable that specifies the runtime directory on Linux systems using the XDG base directory specification.\n *\n * @see https://gist.github.com/roalcantara/107ba66dfa3b9d023ac9329e639bc58c\n *\n * @remarks\n * This variable is used to specify a path to runtime data that is specific to the current user. This variable can be used to set the \\`$storm.paths.temp\\` property.\n *\n * @readonly\n * @category node\n */\n readonly XDG_RUNTIME_DIR?: string;\n\n /**\n * A variable that specifies the [Devenv](https://devenv.sh/) runtime directory.\n *\n * @see https://devenv.sh/files-and-variables/#devenv_dotfile\n * @see https://nixos.org/\n *\n * @remarks\n * This variable is used to specify a path to application data that is specific to the current [Nix](https://nixos.org/) environment. This variable can be used to set the \\`$storm.paths.temp\\` property.\n *\n * @category node\n */\n DEVENV_RUNTIME?: string;\n}\n\n/**\n * The base secrets configuration used by Powerlines applications\n *\n * @remarks\n * This interface is used to define the secret configuration options used by Powerlines applications. It is used to provide type safety, autocompletion, and default values for the environment variables. The comments of each variable are used to provide documentation descriptions when running the \\`storm docs\\` command. Since these are secrets, no default values should be provided and the values should be kept confidential (excluded from the client).\n */\nexport interface SecretsInterface {\n /**\n * The secret key used for encryption and decryption.\n *\n * @remarks\n * This variable is used to provide a secret key for encryption and decryption of sensitive data. It is important that this value is kept confidential and not exposed in client-side code or public repositories.\n *\n * @title Encryption Key\n */\n ENCRYPTION_KEY: string;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmBA,MAAM,sBAAkB;CAAA;CAAsB;CAAW,EAAA,OAAA,kBAAA;CAAA;CAAA;CAAA;CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-env",
3
- "version": "0.16.110",
3
+ "version": "0.16.111",
4
4
  "private": false,
5
5
  "description": "A package containing a Powerlines plugin for injecting static .env configuration values to the code so that they're accessible at runtime.",
6
6
  "keywords": ["dotenv", "powerlines", "storm-software", "powerlines-plugin"],
@@ -306,28 +306,29 @@
306
306
  "@alloy-js/typescript": "0.23.0-dev.4",
307
307
  "@babel/core": "^7.29.0",
308
308
  "@babel/types": "^7.29.0",
309
- "@powerlines/plugin-alloy": "^0.26.4",
310
- "@powerlines/plugin-automd": "^0.1.388",
311
- "@powerlines/plugin-babel": "^0.12.384",
312
- "@powerlines/plugin-plugin": "^0.12.339",
313
- "@powerlines/deepkit": "^0.6.167",
314
- "@powerlines/plugin-deepkit": "^0.11.267",
309
+ "@powerlines/plugin-alloy": "^0.26.5",
310
+ "@powerlines/plugin-automd": "^0.1.389",
311
+ "@powerlines/plugin-babel": "^0.12.385",
312
+ "@powerlines/plugin-plugin": "^0.12.340",
313
+ "@powerlines/deepkit": "^0.7.0",
314
+ "@powerlines/plugin-deepkit": "^0.11.268",
315
315
  "@storm-software/config-tools": "^1.189.72",
316
- "@stryke/capnp": "^0.12.90",
317
- "@stryke/convert": "^0.6.57",
318
- "@stryke/env": "^0.20.81",
319
- "@stryke/fs": "^0.33.64",
320
- "@stryke/json": "^0.14.11",
321
- "@stryke/path": "^0.27.3",
322
- "@stryke/string-format": "^0.17.7",
323
- "@stryke/type-checks": "^0.6.0",
324
- "@stryke/types": "^0.11.2",
316
+ "@stryke/capnp": "^0.12.92",
317
+ "@stryke/convert": "^0.6.58",
318
+ "@stryke/env": "^0.20.83",
319
+ "@stryke/fs": "^0.33.66",
320
+ "@stryke/json": "^0.14.12",
321
+ "@stryke/path": "^0.27.4",
322
+ "@stryke/string-format": "^0.17.9",
323
+ "@stryke/type-checks": "^0.6.1",
324
+ "@stryke/types": "^0.11.3",
325
325
  "automd": "^0.4.3",
326
326
  "defu": "^6.1.6",
327
- "powerlines": "^0.42.29",
327
+ "powerlines": "^0.42.30",
328
328
  "c12": "^3.3.4"
329
329
  },
330
- "devDependencies": { "@types/node": "^25.5.2", "vite": "^8.0.3" },
330
+ "devDependencies": { "@types/node": "^25.5.2", "vite": "^8.0.5" },
331
331
  "publishConfig": { "access": "public" },
332
- "gitHead": "a3bf899dc847341452a0c384eb598c096b186a11"
332
+ "inlinedDependencies": { "@stryke/helpers": "0.10.8" },
333
+ "gitHead": "454fceda20c6f4dda53f6bc5901e5768ac253365"
333
334
  }