@powerlines/plugin-react 0.1.49 → 0.1.52

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 (81) hide show
  1. package/README.md +5 -1
  2. package/dist/index.cjs +1 -67
  3. package/dist/index.d.cts +4 -44
  4. package/dist/index.d.mts +4 -47
  5. package/dist/index.mjs +1 -65
  6. package/dist/{plugin-C9ZuWdaR.d.cts → plugin-BU0wy__m.d.cts} +3 -5
  7. package/dist/{plugin-JgSIR_pC.d.mts → plugin-TBSgdu4B.d.mts} +6 -6
  8. package/dist/plugin.cjs +1 -0
  9. package/dist/{types/plugin.d.cts → plugin.d.cts} +2 -3
  10. package/dist/{types/plugin.d.mts → plugin.d.mts} +2 -3
  11. package/dist/plugin.mjs +1 -0
  12. package/dist/{runtime-CH2w8aTC.d.mts → runtime-1VVIzvUj.d.mts} +2 -3
  13. package/dist/{resolved-C8Vvfp78.d.cts → runtime-B2KsRASa.d.cts} +842 -55
  14. package/dist/{resolved-cGosdCt1.d.mts → runtime-Bn9852yo.d.mts} +844 -59
  15. package/dist/{runtime-FcS-im6N.d.mts → runtime-Lv-DI-PR.d.cts} +2 -3
  16. package/dist/runtime.cjs +1 -0
  17. package/dist/runtime.d.cts +3 -0
  18. package/dist/runtime.d.mts +3 -0
  19. package/dist/runtime.mjs +1 -0
  20. package/package.json +9 -9
  21. package/dist/chunk-CF6LXmkI.mjs +0 -1
  22. package/dist/components/index.cjs +0 -1
  23. package/dist/components/index.d.cts +0 -4
  24. package/dist/components/index.d.mts +0 -4
  25. package/dist/components/index.mjs +0 -1
  26. package/dist/components/react-optimized.cjs +0 -1
  27. package/dist/components/react-optimized.d.cts +0 -3
  28. package/dist/components/react-optimized.d.mts +0 -3
  29. package/dist/components/react-optimized.mjs +0 -1
  30. package/dist/index-B8OHl-c_.d.mts +0 -1
  31. package/dist/index-BR1oNnaF.d.cts +0 -1
  32. package/dist/index-CFG0_wK4.d.cts +0 -1
  33. package/dist/index-DNLi60D-.d.mts +0 -1
  34. package/dist/index.d.cts.map +0 -1
  35. package/dist/index.d.mts.map +0 -1
  36. package/dist/index.mjs.map +0 -1
  37. package/dist/plugin-C9ZuWdaR.d.cts.map +0 -1
  38. package/dist/plugin-JgSIR_pC.d.mts.map +0 -1
  39. package/dist/plugin-sboatcNU.d.mts +0 -1779
  40. package/dist/plugin-sboatcNU.d.mts.map +0 -1
  41. package/dist/react-optimized-B4-nlx1E.d.mts +0 -103
  42. package/dist/react-optimized-B4-nlx1E.d.mts.map +0 -1
  43. package/dist/react-optimized-BO9knQDM.cjs +0 -1
  44. package/dist/react-optimized-B_P6YxHv.mjs +0 -2
  45. package/dist/react-optimized-B_P6YxHv.mjs.map +0 -1
  46. package/dist/react-optimized-CY318RuO.d.cts +0 -102
  47. package/dist/react-optimized-CY318RuO.d.cts.map +0 -1
  48. package/dist/react-optimized-CbXKgStb.d.mts +0 -103
  49. package/dist/react-optimized-CbXKgStb.d.mts.map +0 -1
  50. package/dist/resolved-C3sdBJbK.d.mts +0 -1680
  51. package/dist/resolved-C3sdBJbK.d.mts.map +0 -1
  52. package/dist/resolved-C8Vvfp78.d.cts.map +0 -1
  53. package/dist/resolved-cGosdCt1.d.mts.map +0 -1
  54. package/dist/runtime-Bp9G0scd.cjs +0 -0
  55. package/dist/runtime-CH2w8aTC.d.mts.map +0 -1
  56. package/dist/runtime-DEBqRdSt.d.mts +0 -793
  57. package/dist/runtime-DEBqRdSt.d.mts.map +0 -1
  58. package/dist/runtime-DRosxZBg.d.mts +0 -793
  59. package/dist/runtime-DRosxZBg.d.mts.map +0 -1
  60. package/dist/runtime-FcS-im6N.d.mts.map +0 -1
  61. package/dist/runtime-ag6w6CSq.d.cts +0 -793
  62. package/dist/runtime-ag6w6CSq.d.cts.map +0 -1
  63. package/dist/runtime-cDYyRPa0.mjs +0 -1
  64. package/dist/runtime-e8zq29Og.d.cts +0 -16
  65. package/dist/runtime-e8zq29Og.d.cts.map +0 -1
  66. package/dist/types/index.cjs +0 -1
  67. package/dist/types/index.d.cts +0 -6
  68. package/dist/types/index.d.mts +0 -6
  69. package/dist/types/index.mjs +0 -1
  70. package/dist/types/plugin.cjs +0 -1
  71. package/dist/types/plugin.mjs +0 -1
  72. package/dist/types/runtime.cjs +0 -1
  73. package/dist/types/runtime.d.cts +0 -4
  74. package/dist/types/runtime.d.mts +0 -4
  75. package/dist/types/runtime.mjs +0 -1
  76. package/dist/types-C5ggNT4K.mjs +0 -1
  77. package/dist/types-a8gm_IaQ.cjs +0 -0
  78. /package/dist/{components-BWLXb7a2.cjs → plugin-DHXHjv16.cjs} +0 -0
  79. /package/dist/{components-MTvNCZDU.mjs → plugin-DzeYlbKJ.mjs} +0 -0
  80. /package/dist/{plugin-G4qbpIjB.mjs → runtime-2grn5p5x.mjs} +0 -0
  81. /package/dist/{plugin-pBKbb5K9.cjs → runtime-D4zTdSwv.cjs} +0 -0
@@ -1,12 +1,11 @@
1
- import { ResolveOptions } from "@stryke/fs/resolve";
2
- import { FunctionLike, MaybePromise, NonUndefined } from "@stryke/types/base";
3
- import { AssetGlob } from "@stryke/types/file";
4
- import { TypeDefinition, TypeDefinitionParameter } from "@stryke/types/configuration";
5
- import { PreviewOptions, ResolvedPreviewOptions } from "vite";
6
1
  import { PluginItem, PluginObj, PluginPass, transformAsync } from "@babel/core";
7
2
  import { Format } from "@storm-software/build-tools/types";
8
3
  import { LogLevelLabel } from "@storm-software/config-tools/types";
9
4
  import { StormWorkspaceConfig } from "@storm-software/config/types";
5
+ import { FunctionLike, MaybePromise, NonUndefined } from "@stryke/types/base";
6
+ import { TypeDefinition, TypeDefinitionParameter } from "@stryke/types/configuration";
7
+ import { AssetGlob } from "@stryke/types/file";
8
+ import { PreviewOptions, ResolvedPreviewOptions } from "vite";
10
9
  import { BabelAPI } from "@babel/helper-plugin-utils";
11
10
  import { EnvPaths } from "@stryke/env/get-env-paths";
12
11
  import { FetchRequestOptions } from "@stryke/http/fetch";
@@ -18,6 +17,7 @@ import { Range } from "semver";
18
17
  import { Project } from "ts-morph";
19
18
  import { RequestInfo, Response } from "undici";
20
19
  import { ExternalIdResult, HookFilter, TransformResult, UnpluginBuildContext, UnpluginContext, UnpluginMessage, UnpluginOptions } from "unplugin";
20
+ import { ResolveOptions } from "@stryke/fs/resolve";
21
21
  import { ArrayValues } from "@stryke/types/array";
22
22
  import { CompilerOptions, TsConfigJson } from "@stryke/types/tsconfig";
23
23
  import ts from "typescript";
@@ -618,6 +618,81 @@ type BuildResolvedConfig = Omit<BuildConfig, "override">;
618
618
  declare const SUPPORTED_COMMANDS: readonly ["new", "clean", "prepare", "lint", "test", "build", "docs", "deploy", "finalize"];
619
619
  type CommandType = ArrayValues<typeof SUPPORTED_COMMANDS>;
620
620
  //#endregion
621
+ //#region ../powerlines/src/types/resolved.d.ts
622
+ interface ResolvedEntryTypeDefinition extends TypeDefinition {
623
+ /**
624
+ * The user provided entry point in the source code
625
+ */
626
+ input: TypeDefinition;
627
+ /**
628
+ * An optional name to use in the package export during the build process
629
+ */
630
+ output?: string;
631
+ }
632
+ type BabelResolvedConfig = Omit<BabelUserConfig, "plugins" | "presets"> & Required<Pick<BabelUserConfig, "plugins" | "presets">>;
633
+ type EnvironmentResolvedConfig = Omit<EnvironmentConfig, "consumer" | "ssr" | "preview"> & Required<Pick<EnvironmentConfig, "consumer" | "ssr">> & {
634
+ /**
635
+ * The name of the environment
636
+ */
637
+ name: string;
638
+ /**
639
+ * Configuration options for the preview server
640
+ */
641
+ preview?: ResolvedPreviewOptions;
642
+ };
643
+ type ResolvedAssetGlob = AssetGlob & Required<Pick<AssetGlob, "input">>;
644
+ type OutputResolvedConfig = Required<Omit<OutputConfig, "assets" | "storage"> & {
645
+ assets: ResolvedAssetGlob[];
646
+ }> & Pick<OutputConfig, "storage">;
647
+ /**
648
+ * The resolved options for the Powerlines project configuration.
649
+ */
650
+ type ResolvedConfig$1<TUserConfig extends UserConfig = UserConfig> = Omit<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "platform" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "variant" | "type" | "output" | "logLevel" | "framework" | "sourceRoot"> & Required<Pick<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "framework" | "sourceRoot">> & {
651
+ /**
652
+ * The configuration options that were provided inline to the Powerlines CLI.
653
+ */
654
+ inlineConfig: InlineConfig<TUserConfig>;
655
+ /**
656
+ * The original configuration options that were provided by the user to the Powerlines process.
657
+ */
658
+ userConfig: TUserConfig;
659
+ /**
660
+ * A string identifier for the Powerlines command being executed.
661
+ */
662
+ command: NonUndefined<InlineConfig<TUserConfig>["command"]>;
663
+ /**
664
+ * The root directory of the project's source code
665
+ *
666
+ * @defaultValue "\{projectRoot\}/src"
667
+ */
668
+ sourceRoot: NonUndefined<TUserConfig["sourceRoot"]>;
669
+ /**
670
+ * The root directory of the project.
671
+ */
672
+ projectRoot: NonUndefined<TUserConfig["root"]>;
673
+ /**
674
+ * The type of project being built.
675
+ */
676
+ projectType: NonUndefined<TUserConfig["type"]>;
677
+ /**
678
+ * The output configuration options to use for the build process
679
+ */
680
+ output: OutputResolvedConfig;
681
+ /**
682
+ * Configuration provided to build processes
683
+ *
684
+ * @remarks
685
+ * This configuration can be used by plugins during the `build` command. It will generally contain options specific to the selected {@link BuildVariant | build variant}.
686
+ */
687
+ build: Omit<TUserConfig["build"], "override"> & Required<Pick<Required<TUserConfig["build"]>, "override">>;
688
+ /**
689
+ * The log level to use for the Powerlines processes.
690
+ *
691
+ * @defaultValue "info"
692
+ */
693
+ logLevel: "error" | "warn" | "info" | "debug" | "trace" | null;
694
+ };
695
+ //#endregion
621
696
  //#region ../powerlines/src/types/plugin.d.ts
622
697
  interface PluginHookObject<THookFunction extends FunctionLike, TFilter extends keyof HookFilter = never> {
623
698
  /**
@@ -789,7 +864,7 @@ type PluginHooks<TContext extends PluginContext = PluginContext> = { [TKey in ke
789
864
  }) => MaybePromise<string | ExternalIdResult | null | undefined>, "id">;
790
865
  };
791
866
  type PluginBuildPlugins<TContext extends PluginContext = PluginContext> = { [TBuildVariant in UnpluginBuildVariant]?: BuildPlugin<TContext, TBuildVariant> };
792
- interface Plugin<in out TContext extends PluginContext<ResolvedConfig> = PluginContext<ResolvedConfig>> extends Partial<PluginHooks<TContext>>, PluginBuildPlugins<TContext> {
867
+ interface Plugin<in out TContext extends PluginContext<ResolvedConfig$1> = PluginContext<ResolvedConfig$1>> extends Partial<PluginHooks<TContext>>, PluginBuildPlugins<TContext> {
793
868
  /**
794
869
  * The name of the plugin, for use in deduplication, error messages and logs.
795
870
  */
@@ -976,7 +1051,7 @@ interface ParseOptions extends ParserOptions {
976
1051
  * @remarks
977
1052
  * This context is used before the user configuration has been fully resolved after the `config`.
978
1053
  */
979
- interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
1054
+ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig$1 = ResolvedConfig$1> {
980
1055
  /**
981
1056
  * The Storm workspace configuration
982
1057
  */
@@ -1224,13 +1299,13 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
1224
1299
  */
1225
1300
  generateChecksum: () => Promise<string>;
1226
1301
  }
1227
- type Context<TResolvedConfig extends ResolvedConfig = ResolvedConfig> = Omit<UnresolvedContext<TResolvedConfig>, "config"> & {
1302
+ type Context<TResolvedConfig extends ResolvedConfig$1 = ResolvedConfig$1> = Omit<UnresolvedContext<TResolvedConfig>, "config"> & {
1228
1303
  /**
1229
1304
  * The fully resolved Powerlines configuration
1230
1305
  */
1231
1306
  config: TResolvedConfig;
1232
1307
  };
1233
- interface PluginContext<out TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends Context<TResolvedConfig>, UnpluginContext {
1308
+ interface PluginContext<out TResolvedConfig extends ResolvedConfig$1 = ResolvedConfig$1> extends Context<TResolvedConfig>, UnpluginContext {
1234
1309
  /**
1235
1310
  * The environment specific resolved configuration
1236
1311
  */
@@ -1243,7 +1318,7 @@ interface PluginContext<out TResolvedConfig extends ResolvedConfig = ResolvedCon
1243
1318
  */
1244
1319
  logger: LogFn;
1245
1320
  }
1246
- type BuildPluginContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> = UnpluginBuildContext & PluginContext<TResolvedConfig>;
1321
+ type BuildPluginContext<TResolvedConfig extends ResolvedConfig$1 = ResolvedConfig$1> = UnpluginBuildContext & PluginContext<TResolvedConfig>;
1247
1322
  //#endregion
1248
1323
  //#region ../powerlines/src/types/babel.d.ts
1249
1324
  type BabelPluginPass<TState = unknown> = PluginPass & TState;
@@ -1600,80 +1675,792 @@ type InlineConfig<TUserConfig extends UserConfig = UserConfig> = Partial<TUserCo
1600
1675
  command: PowerlinesCommand;
1601
1676
  };
1602
1677
  //#endregion
1603
- //#region ../powerlines/src/types/resolved.d.ts
1604
- interface ResolvedEntryTypeDefinition extends TypeDefinition {
1678
+ //#region ../plugin-env/src/types/runtime.d.ts
1679
+ /**
1680
+ * The base environment configuration used by Powerlines applications
1681
+ *
1682
+ * @remarks
1683
+ * 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.
1684
+ *
1685
+ * @categoryDescription Platform
1686
+ * The name of the platform the configuration parameter is intended for use in.
1687
+ *
1688
+ * @showCategories
1689
+ */
1690
+ interface EnvInterface {
1605
1691
  /**
1606
- * The user provided entry point in the source code
1692
+ * The name of the application.
1693
+ *
1694
+ * @readonly
1695
+ * @category neutral
1607
1696
  */
1608
- input: TypeDefinition;
1697
+ readonly APP_NAME: string;
1609
1698
  /**
1610
- * An optional name to use in the package export during the build process
1699
+ * The version of the application.
1700
+ *
1701
+ * @defaultValue "1.0.0"
1702
+ *
1703
+ * @readonly
1704
+ * @category neutral
1611
1705
  */
1612
- output?: string;
1613
- }
1614
- type BabelResolvedConfig = Omit<BabelUserConfig, "plugins" | "presets"> & Required<Pick<BabelUserConfig, "plugins" | "presets">>;
1615
- type EnvironmentResolvedConfig = Omit<EnvironmentConfig, "consumer" | "ssr" | "preview"> & Required<Pick<EnvironmentConfig, "consumer" | "ssr">> & {
1706
+ readonly APP_VERSION: string;
1616
1707
  /**
1617
- * The name of the environment
1708
+ * The unique identifier for the build.
1709
+ *
1710
+ * @readonly
1711
+ * @category neutral
1618
1712
  */
1619
- name: string;
1713
+ readonly BUILD_ID: string;
1620
1714
  /**
1621
- * Configuration options for the preview server
1715
+ * The timestamp the build was ran at.
1716
+ *
1717
+ * @readonly
1718
+ * @category neutral
1622
1719
  */
1623
- preview?: ResolvedPreviewOptions;
1624
- };
1625
- type ResolvedAssetGlob = AssetGlob & Required<Pick<AssetGlob, "input">>;
1626
- type OutputResolvedConfig = Required<Omit<OutputConfig, "assets" | "storage"> & {
1627
- assets: ResolvedAssetGlob[];
1628
- }> & Pick<OutputConfig, "storage">;
1629
- /**
1630
- * The resolved options for the Powerlines project configuration.
1631
- */
1632
- type ResolvedConfig<TUserConfig extends UserConfig = UserConfig> = Omit<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "platform" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "variant" | "type" | "output" | "logLevel" | "framework" | "sourceRoot"> & Required<Pick<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "framework" | "sourceRoot">> & {
1720
+ readonly BUILD_TIMESTAMP: string;
1633
1721
  /**
1634
- * The configuration options that were provided inline to the Powerlines CLI.
1722
+ * A checksum hash created during the build.
1723
+ *
1724
+ * @readonly
1725
+ * @category neutral
1635
1726
  */
1636
- inlineConfig: InlineConfig<TUserConfig>;
1727
+ readonly BUILD_CHECKSUM: string;
1637
1728
  /**
1638
- * The original configuration options that were provided by the user to the Powerlines process.
1729
+ * The unique identifier for the release.
1730
+ *
1731
+ * @readonly
1732
+ * @category neutral
1639
1733
  */
1640
- userConfig: TUserConfig;
1734
+ readonly RELEASE_ID: string;
1641
1735
  /**
1642
- * A string identifier for the Powerlines command being executed.
1736
+ * The tag for the release. This is generally in the format of "\<APP_NAME\>\@\<APP_VERSION\>".
1737
+ *
1738
+ * @readonly
1739
+ * @category neutral
1643
1740
  */
1644
- command: NonUndefined<InlineConfig<TUserConfig>["command"]>;
1741
+ readonly RELEASE_TAG: string;
1645
1742
  /**
1646
- * The root directory of the project's source code
1743
+ * The name of the organization that maintains the application.
1647
1744
  *
1648
- * @defaultValue "\{projectRoot\}/src"
1745
+ * @remarks
1746
+ * 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}.
1747
+ *
1748
+ * @alias ORG
1749
+ * @alias ORG_ID
1750
+ * @category neutral
1649
1751
  */
1650
- sourceRoot: NonUndefined<TUserConfig["sourceRoot"]>;
1752
+ ORGANIZATION: string;
1651
1753
  /**
1652
- * The root directory of the project.
1754
+ * The platform for which the application was built.
1755
+ *
1756
+ * @defaultValue "neutral"
1757
+ *
1758
+ * @category neutral
1653
1759
  */
1654
- projectRoot: NonUndefined<TUserConfig["root"]>;
1760
+ PLATFORM: "node" | "neutral" | "browser";
1655
1761
  /**
1656
- * The type of project being built.
1762
+ * The mode in which the application is running.
1763
+ *
1764
+ * @defaultValue "production"
1765
+ *
1766
+ * @alias NODE_ENV
1767
+ *
1768
+ * @category neutral
1657
1769
  */
1658
- projectType: NonUndefined<TUserConfig["type"]>;
1770
+ MODE: "development" | "test" | "production";
1659
1771
  /**
1660
- * The output configuration options to use for the build process
1772
+ * The environment the application is running in. This value will be populated with the value of `MODE` if not provided.
1773
+ *
1774
+ * @defaultValue "production"
1775
+ *
1776
+ * @alias ENV
1777
+ * @alias VERCEL_ENV
1778
+ * @category neutral
1661
1779
  */
1662
- output: OutputResolvedConfig;
1780
+ ENVIRONMENT: string;
1663
1781
  /**
1664
- * Configuration provided to build processes
1782
+ * Indicates if the application is running in debug mode.
1783
+ *
1784
+ * @category neutral
1785
+ */
1786
+ DEBUG: boolean;
1787
+ /**
1788
+ * An indicator that specifies the current runtime is a test environment.
1789
+ *
1790
+ * @category neutral
1791
+ */
1792
+ TEST: boolean;
1793
+ /**
1794
+ * An indicator that specifies the current runtime is a minimal environment.
1795
+ *
1796
+ * @category node
1797
+ */
1798
+ MINIMAL: boolean;
1799
+ /**
1800
+ * An indicator that specifies the current runtime is a no color environment.
1801
+ *
1802
+ * @category node
1803
+ */
1804
+ NO_COLOR: boolean;
1805
+ /**
1806
+ * An indicator that specifies the current runtime is a force color environment.
1807
+ *
1808
+ * @category node
1809
+ */
1810
+ FORCE_COLOR: boolean | number;
1811
+ /**
1812
+ * An indicator that specifies the current runtime should force hyperlinks in terminal output.
1665
1813
  *
1666
1814
  * @remarks
1667
- * This configuration can be used by plugins during the `build` command. It will generally contain options specific to the selected {@link BuildVariant | build variant}.
1815
+ * 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.
1816
+ * @category node
1668
1817
  */
1669
- build: Omit<TUserConfig["build"], "override"> & Required<Pick<Required<TUserConfig["build"]>, "override">>;
1818
+ FORCE_HYPERLINK: boolean | number;
1670
1819
  /**
1671
- * The log level to use for the Powerlines processes.
1820
+ * The name of the agent running the application. This variable is set by certain CI/CD systems.
1821
+ *
1822
+ * @readonly
1823
+ * @category neutral
1824
+ */
1825
+ readonly AGENT_NAME?: string;
1826
+ /**
1827
+ * The color terminal type. This variable is set by certain terminal emulators.
1828
+ *
1829
+ * @readonly
1830
+ * @category node
1831
+ */
1832
+ readonly COLORTERM?: string;
1833
+ /**
1834
+ * The terminal type. This variable is set by certain CI/CD systems.
1835
+ *
1836
+ * @remarks
1837
+ * 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.
1838
+ *
1839
+ * @readonly
1840
+ * @category node
1841
+ */
1842
+ readonly TERM?: string;
1843
+ /**
1844
+ * The terminal program name. This variable is set by certain terminal emulators.
1845
+ *
1846
+ * @readonly
1847
+ * @category node
1848
+ */
1849
+ readonly TERM_PROGRAM?: string;
1850
+ /**
1851
+ * The terminal program version. This variable is set by certain terminal emulators.
1852
+ *
1853
+ * @readonly
1854
+ * @category node
1855
+ */
1856
+ readonly TERM_PROGRAM_VERSION?: string;
1857
+ /**
1858
+ * The terminal emulator name. This variable is set by certain terminal emulators.
1859
+ *
1860
+ * @readonly
1861
+ * @category node
1862
+ */
1863
+ readonly TERMINAL_EMULATOR?: string;
1864
+ /**
1865
+ * The terminal emulator session ID. This variable is set by certain terminal emulators.
1866
+ *
1867
+ * @readonly
1868
+ * @category node
1869
+ */
1870
+ readonly WT_SESSION?: string;
1871
+ /**
1872
+ * An indicator that specifies the current terminal is running Terminus Sublime. This variable is set by certain terminal emulators.
1873
+ *
1874
+ * @readonly
1875
+ * @category node
1876
+ */
1877
+ readonly TERMINUS_SUBLIME?: boolean;
1878
+ /**
1879
+ * The ConEmu task name. This variable is set by certain terminal emulators.
1880
+ *
1881
+ * @readonly
1882
+ * @category node
1883
+ */
1884
+ readonly ConEmuTask?: string;
1885
+ /**
1886
+ * The cursor trace ID. This variable is set by certain terminal emulators.
1887
+ *
1888
+ * @readonly
1889
+ * @category node
1890
+ */
1891
+ readonly CURSOR_TRACE_ID?: string;
1892
+ /**
1893
+ * The VTE version. This variable is set by certain terminal emulators.
1894
+ *
1895
+ * @readonly
1896
+ * @category node
1897
+ */
1898
+ readonly VTE_VERSION?: string;
1899
+ /**
1900
+ * Indicates if error stack traces should be captured.
1901
+ *
1902
+ * @category neutral
1903
+ */
1904
+ STACKTRACE: boolean;
1905
+ /**
1906
+ * Indicates if error data should be included.
1907
+ *
1908
+ * @category neutral
1909
+ */
1910
+ INCLUDE_ERROR_DATA: boolean;
1911
+ /**
1912
+ * A web page to lookup error messages and display additional information given an error code.
1913
+ *
1914
+ * @remarks
1915
+ * 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.
1916
+ *
1917
+ * @title Error Details URL
1918
+ * @category neutral
1919
+ */
1920
+ ERROR_URL: string;
1921
+ /**
1922
+ * The default timezone for the application.
1923
+ *
1924
+ * @defaultValue "America/New_York"
1925
+ * @category neutral
1926
+ */
1927
+ DEFAULT_TIMEZONE: string;
1928
+ /**
1929
+ * The default locale to be used in the application.
1930
+ *
1931
+ * @defaultValue "en_US"
1932
+ * @category neutral
1933
+ */
1934
+ DEFAULT_LOCALE: string;
1935
+ /**
1936
+ * The default lowest log level to accept. If `null`, the logger will reject all records. This value only applies if `lowestLogLevel` is not provided to the `logs` configuration.
1672
1937
  *
1673
1938
  * @defaultValue "info"
1939
+ *
1940
+ * @category neutral
1674
1941
  */
1675
- logLevel: "error" | "warn" | "info" | "debug" | "trace" | null;
1676
- };
1942
+ LOG_LEVEL?: LogLevel | null;
1943
+ /**
1944
+ * An indicator that specifies the current runtime is a continuous integration environment.
1945
+ *
1946
+ * @title Continuous Integration
1947
+ * @alias CONTINUOUS_INTEGRATION
1948
+ * @category neutral
1949
+ */
1950
+ CI: boolean;
1951
+ /**
1952
+ * The unique identifier for the current run. This value is set by certain CI/CD systems.
1953
+ *
1954
+ * @readonly
1955
+ * @category node
1956
+ */
1957
+ readonly RUN_ID?: string;
1958
+ /**
1959
+ * The agola git reference. This value is set by certain CI/CD systems.
1960
+ *
1961
+ * @readonly
1962
+ * @category node
1963
+ */
1964
+ readonly AGOLA_GIT_REF?: string;
1965
+ /**
1966
+ * The appcircle build ID. This value is set by certain CI/CD systems.
1967
+ *
1968
+ * @readonly
1969
+ * @category node
1970
+ */
1971
+ readonly AC_APPCIRCLE?: string;
1972
+ /**
1973
+ * The appveyor build ID. This value is set by certain CI/CD systems.
1974
+ *
1975
+ * @readonly
1976
+ * @category node
1977
+ */
1978
+ readonly APPVEYOR?: string;
1979
+ /**
1980
+ * The codebuild build ID. This value is set by certain CI/CD systems.
1981
+ *
1982
+ * @readonly
1983
+ * @category node
1984
+ */
1985
+ readonly CODEBUILD?: string;
1986
+ /**
1987
+ * The task force build ID. This value is set by certain CI/CD systems.
1988
+ *
1989
+ * @readonly
1990
+ * @category node
1991
+ */
1992
+ readonly TF_BUILD?: string;
1993
+ /**
1994
+ * The bamboo plan key. This value is set by certain CI/CD systems.
1995
+ *
1996
+ * @readonly
1997
+ * @category node
1998
+ */
1999
+ readonly bamboo_planKey?: string;
2000
+ /**
2001
+ * The bitbucket commit. This value is set by certain CI/CD systems.
2002
+ *
2003
+ * @readonly
2004
+ * @category node
2005
+ */
2006
+ readonly BITBUCKET_COMMIT?: string;
2007
+ /**
2008
+ * The bitrise build ID. This value is set by certain CI/CD systems.
2009
+ *
2010
+ * @readonly
2011
+ * @category node
2012
+ */
2013
+ readonly BITRISE_IO?: string;
2014
+ /**
2015
+ * The buddy workspace ID. This value is set by certain CI/CD systems.
2016
+ *
2017
+ * @readonly
2018
+ * @category node
2019
+ */
2020
+ readonly BUDDY_WORKSPACE_ID?: string;
2021
+ /**
2022
+ * The buildkite build ID. This value is set by certain CI/CD systems.
2023
+ *
2024
+ * @readonly
2025
+ * @category node
2026
+ */
2027
+ readonly BUILDKITE?: string;
2028
+ /**
2029
+ * The circleci build ID. This value is set by certain CI/CD systems.
2030
+ *
2031
+ * @readonly
2032
+ * @category node
2033
+ */
2034
+ readonly CIRCLECI?: string;
2035
+ /**
2036
+ * The cirrus-ci build ID. This value is set by certain CI/CD systems.
2037
+ *
2038
+ * @readonly
2039
+ * @category node
2040
+ */
2041
+ readonly CIRRUS_CI?: string;
2042
+ /**
2043
+ * The cf build ID. This value is set by certain CI/CD systems.
2044
+ *
2045
+ * @readonly
2046
+ * @category node
2047
+ */
2048
+ readonly CF_BUILD_ID?: string;
2049
+ /**
2050
+ * The cm build ID. This value is set by certain CI/CD systems.
2051
+ *
2052
+ * @readonly
2053
+ * @category node
2054
+ */
2055
+ readonly CM_BUILD_ID?: string;
2056
+ /**
2057
+ * The ci name. This value is set by certain CI/CD systems.
2058
+ *
2059
+ * @readonly
2060
+ * @category node
2061
+ */
2062
+ readonly CI_NAME?: string;
2063
+ /**
2064
+ * The drone build ID. This value is set by certain CI/CD systems.
2065
+ *
2066
+ * @readonly
2067
+ * @category node
2068
+ */
2069
+ readonly DRONE?: string;
2070
+ /**
2071
+ * The dsari build ID. This value is set by certain CI/CD systems.
2072
+ *
2073
+ * @readonly
2074
+ * @category node
2075
+ */
2076
+ readonly DSARI?: string;
2077
+ /**
2078
+ * The earthly build ID. This value is set by certain CI/CD systems.
2079
+ *
2080
+ * @readonly
2081
+ * @category node
2082
+ */
2083
+ readonly EARTHLY_CI?: string;
2084
+ /**
2085
+ * The eas build ID. This value is set by certain CI/CD systems.
2086
+ *
2087
+ * @readonly
2088
+ * @category node
2089
+ */
2090
+ readonly EAS_BUILD?: string;
2091
+ /**
2092
+ * The gerrit project. This value is set by certain CI/CD systems.
2093
+ *
2094
+ * @readonly
2095
+ * @category node
2096
+ */
2097
+ readonly GERRIT_PROJECT?: string;
2098
+ /**
2099
+ * The gitea actions build ID. This value is set by certain CI/CD systems.
2100
+ *
2101
+ * @readonly
2102
+ * @category node
2103
+ */
2104
+ readonly GITEA_ACTIONS?: string;
2105
+ /**
2106
+ * The github actions build ID. This value is set by certain CI/CD systems.
2107
+ *
2108
+ * @readonly
2109
+ * @category node
2110
+ */
2111
+ readonly GITHUB_ACTIONS?: string;
2112
+ /**
2113
+ * The gitlab ci build ID. This value is set by certain CI/CD systems.
2114
+ *
2115
+ * @readonly
2116
+ * @category node
2117
+ */
2118
+ readonly GITLAB_CI?: string;
2119
+ /**
2120
+ * The go cd build ID. This value is set by certain CI/CD systems.
2121
+ *
2122
+ * @readonly
2123
+ * @category node
2124
+ */
2125
+ readonly GOCD?: string;
2126
+ /**
2127
+ * The builder output build ID. This value is set by certain CI/CD systems.
2128
+ *
2129
+ * @readonly
2130
+ * @category node
2131
+ */
2132
+ readonly BUILDER_OUTPUT?: string;
2133
+ /**
2134
+ * The harness build ID. This value is set by certain CI/CD systems.
2135
+ *
2136
+ * @readonly
2137
+ * @category node
2138
+ */
2139
+ readonly HARNESS_BUILD_ID?: string;
2140
+ /**
2141
+ * The jenkins url. This value is set by certain CI/CD systems.
2142
+ *
2143
+ * @readonly
2144
+ * @category node
2145
+ */
2146
+ readonly JENKINS_URL?: string;
2147
+ /**
2148
+ * The layerci build ID. This value is set by certain CI/CD systems.
2149
+ *
2150
+ * @readonly
2151
+ * @category node
2152
+ */
2153
+ readonly LAYERCI?: string;
2154
+ /**
2155
+ * The magnum build ID. This value is set by certain CI/CD systems.
2156
+ *
2157
+ * @readonly
2158
+ * @category node
2159
+ */
2160
+ readonly MAGNUM?: string;
2161
+ /**
2162
+ * The netlify build ID. This value is set by certain CI/CD systems.
2163
+ *
2164
+ * @readonly
2165
+ * @category node
2166
+ */
2167
+ readonly NETLIFY?: string;
2168
+ /**
2169
+ * The nevercode build ID. This value is set by certain CI/CD systems.
2170
+ *
2171
+ * @readonly
2172
+ * @category node
2173
+ */
2174
+ readonly NEVERCODE?: string;
2175
+ /**
2176
+ * The prow job ID. This value is set by certain CI/CD systems.
2177
+ *
2178
+ * @readonly
2179
+ * @category node
2180
+ */
2181
+ readonly PROW_JOB_ID?: string;
2182
+ /**
2183
+ * The release build ID. This value is set by certain CI/CD systems.
2184
+ *
2185
+ * @readonly
2186
+ * @category node
2187
+ */
2188
+ readonly RELEASE_BUILD_ID?: string;
2189
+ /**
2190
+ * The render build ID. This value is set by certain CI/CD systems.
2191
+ *
2192
+ * @readonly
2193
+ * @category node
2194
+ */
2195
+ readonly RENDER?: string;
2196
+ /**
2197
+ * The sailci build ID. This value is set by certain CI/CD systems.
2198
+ *
2199
+ * @readonly
2200
+ * @category node
2201
+ */
2202
+ readonly SAILCI?: string;
2203
+ /**
2204
+ * The hudson build ID. This value is set by certain CI/CD systems.
2205
+ *
2206
+ * @readonly
2207
+ * @category node
2208
+ */
2209
+ readonly HUDSON?: string;
2210
+ /**
2211
+ * The screwdriver build ID. This value is set by certain CI/CD systems.
2212
+ *
2213
+ * @readonly
2214
+ * @category node
2215
+ */
2216
+ readonly SCREWDRIVER?: string;
2217
+ /**
2218
+ * The semaphore build ID. This value is set by certain CI/CD systems.
2219
+ *
2220
+ * @readonly
2221
+ * @category node
2222
+ */
2223
+ readonly SEMAPHORE?: string;
2224
+ /**
2225
+ * The sourcehut build ID. This value is set by certain CI/CD systems.
2226
+ *
2227
+ * @readonly
2228
+ * @category node
2229
+ */
2230
+ readonly SOURCEHUT?: string;
2231
+ /**
2232
+ * The spaceship build ID. This value is set by certain CI/CD systems.
2233
+ *
2234
+ * @readonly
2235
+ * @category node
2236
+ */
2237
+ readonly SPACESHIP_CI?: string;
2238
+ /**
2239
+ * The strider build ID. This value is set by certain CI/CD systems.
2240
+ *
2241
+ * @readonly
2242
+ * @category node
2243
+ */
2244
+ readonly STRIDER?: string;
2245
+ /**
2246
+ * The task ID. This value is set by certain CI/CD systems.
2247
+ *
2248
+ * @readonly
2249
+ * @category node
2250
+ */
2251
+ readonly TASK_ID?: string;
2252
+ /**
2253
+ * The teamcity version. This value is set by certain CI/CD systems.
2254
+ *
2255
+ * @readonly
2256
+ * @category node
2257
+ */
2258
+ readonly TEAMCITY_VERSION?: string;
2259
+ /**
2260
+ * The travis build ID. This value is set by certain CI/CD systems.
2261
+ *
2262
+ * @readonly
2263
+ * @category node
2264
+ */
2265
+ readonly TRAVIS?: string;
2266
+ /**
2267
+ * The vela build ID. This value is set by certain CI/CD systems.
2268
+ *
2269
+ * @readonly
2270
+ * @category node
2271
+ */
2272
+ readonly VELA?: string;
2273
+ /**
2274
+ * The now builder build ID. This value is set by certain CI/CD systems.
2275
+ *
2276
+ * @readonly
2277
+ * @category node
2278
+ */
2279
+ readonly NOW_BUILDER?: string;
2280
+ /**
2281
+ * The appcenter build ID. This value is set by certain CI/CD systems.
2282
+ *
2283
+ * @readonly
2284
+ * @category node
2285
+ */
2286
+ readonly APPCENTER_BUILD_ID?: string;
2287
+ /**
2288
+ * The xcode project build ID. This value is set by certain CI/CD systems.
2289
+ *
2290
+ * @readonly
2291
+ * @category node
2292
+ */
2293
+ readonly CI_XCODE_PROJECT?: string;
2294
+ /**
2295
+ * The xcode server build ID. This value is set by certain CI/CD systems.
2296
+ *
2297
+ * @readonly
2298
+ * @category node
2299
+ */
2300
+ readonly XCS?: string;
2301
+ /**
2302
+ * The application's runtime data directory.
2303
+ *
2304
+ * @remarks
2305
+ * 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.
2306
+ *
2307
+ * @title Data Directory
2308
+ * @category node
2309
+ */
2310
+ DATA_DIR?: string;
2311
+ /**
2312
+ * The application's configuration data directory.
2313
+ *
2314
+ * @remarks
2315
+ * 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.
2316
+ *
2317
+ * @title Configuration Directory
2318
+ * @category node
2319
+ */
2320
+ CONFIG_DIR?: string;
2321
+ /**
2322
+ * The application's cached data directory.
2323
+ *
2324
+ * @remarks
2325
+ * 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.
2326
+ *
2327
+ * @title Cache Directory
2328
+ * @category node
2329
+ */
2330
+ CACHE_DIR?: string;
2331
+ /**
2332
+ * The application's logging directory.
2333
+ *
2334
+ * @remarks
2335
+ * 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.
2336
+ *
2337
+ * @title Log Directory
2338
+ * @category node
2339
+ */
2340
+ LOG_DIR?: string;
2341
+ /**
2342
+ * The application's temporary data directory.
2343
+ *
2344
+ * @remarks
2345
+ * 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.
2346
+ *
2347
+ * @title Temporary Directory
2348
+ * @category node
2349
+ */
2350
+ TEMP_DIR?: string;
2351
+ /**
2352
+ * A variable that specifies the current user's local application data directory on Windows.
2353
+ *
2354
+ * @see https://www.advancedinstaller.com/appdata-localappdata-programdata.html
2355
+ *
2356
+ * @remarks
2357
+ * 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.
2358
+ *
2359
+ * @readonly
2360
+ * @category node
2361
+ */
2362
+ readonly LOCALAPPDATA?: string;
2363
+ /**
2364
+ * A variable that specifies the application data directory on Windows.
2365
+ *
2366
+ * @see https://www.advancedinstaller.com/appdata-localappdata-programdata.html
2367
+ *
2368
+ * @remarks
2369
+ * 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.
2370
+ *
2371
+ * @readonly
2372
+ * @category node
2373
+ */
2374
+ readonly APPDATA?: string;
2375
+ /**
2376
+ * A variable that specifies the data path in the home directory on Linux systems using the XDG base directory specification.
2377
+ *
2378
+ * @see https://gist.github.com/roalcantara/107ba66dfa3b9d023ac9329e639bc58c
2379
+ *
2380
+ * @remarks
2381
+ * 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.
2382
+ *
2383
+ * @readonly
2384
+ * @category node
2385
+ */
2386
+ readonly XDG_DATA_HOME?: string;
2387
+ /**
2388
+ * A variable that specifies the configuration path in the home directory on Linux systems using the XDG base directory specification.
2389
+ *
2390
+ * @see https://gist.github.com/roalcantara/107ba66dfa3b9d023ac9329e639bc58c
2391
+ *
2392
+ * @remarks
2393
+ * 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.
2394
+ *
2395
+ * @readonly
2396
+ * @category node
2397
+ */
2398
+ readonly XDG_CONFIG_HOME?: string;
2399
+ /**
2400
+ * A variable that specifies the cache path in the home directory on Linux systems using the XDG base directory specification.
2401
+ *
2402
+ * @see https://gist.github.com/roalcantara/107ba66dfa3b9d023ac9329e639bc58c
2403
+ *
2404
+ * @remarks
2405
+ * 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.
2406
+ *
2407
+ * @readonly
2408
+ * @category node
2409
+ */
2410
+ readonly XDG_CACHE_HOME?: string;
2411
+ /**
2412
+ * A variable that specifies the state directory on Linux systems using the XDG base directory specification.
2413
+ *
2414
+ * @see https://gist.github.com/roalcantara/107ba66dfa3b9d023ac9329e639bc58c
2415
+ *
2416
+ * @remarks
2417
+ * 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.
2418
+ *
2419
+ * @readonly
2420
+ * @category node
2421
+ */
2422
+ readonly XDG_STATE_HOME?: string;
2423
+ /**
2424
+ * A variable that specifies the runtime directory on Linux systems using the XDG base directory specification.
2425
+ *
2426
+ * @see https://gist.github.com/roalcantara/107ba66dfa3b9d023ac9329e639bc58c
2427
+ *
2428
+ * @remarks
2429
+ * 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.
2430
+ *
2431
+ * @readonly
2432
+ * @category node
2433
+ */
2434
+ readonly XDG_RUNTIME_DIR?: string;
2435
+ /**
2436
+ * A variable that specifies the [Devenv](https://devenv.sh/) runtime directory.
2437
+ *
2438
+ * @see https://devenv.sh/files-and-variables/#devenv_dotfile
2439
+ * @see https://nixos.org/
2440
+ *
2441
+ * @remarks
2442
+ * 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.
2443
+ *
2444
+ * @category node
2445
+ */
2446
+ DEVENV_RUNTIME?: string;
2447
+ }
2448
+ /**
2449
+ * The base secrets configuration used by Powerlines applications
2450
+ *
2451
+ * @remarks
2452
+ * 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).
2453
+ */
2454
+ interface SecretsInterface {
2455
+ /**
2456
+ * The secret key used for encryption and decryption.
2457
+ *
2458
+ * @remarks
2459
+ * 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.
2460
+ *
2461
+ * @title Encryption Key
2462
+ */
2463
+ ENCRYPTION_KEY: string;
2464
+ }
1677
2465
  //#endregion
1678
- export { LogLevel as a, StoragePreset as c, UserConfig as i, ResolvedConfig as n, PluginContext as o, BabelUserConfig as r, Plugin as s, BabelResolvedConfig as t };
1679
- //# sourceMappingURL=resolved-C8Vvfp78.d.cts.map
2466
+ export { PluginContext as a, UserConfig as i, SecretsInterface as n, BabelResolvedConfig as o, BabelUserConfig as r, ResolvedConfig$1 as s, EnvInterface as t };