"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var _chunkDFJNOFN2cjs = require('./chunk-DFJNOFN2.cjs');

// ../config/src/constants.ts
_chunkDFJNOFN2cjs.init_cjs_shims.call(void 0, );
var STORM_DEFAULT_DOCS = "https://docs.stormsoftware.com";
var STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
var STORM_DEFAULT_LICENSING = "https://license.stormsoftware.com";
var STORM_DEFAULT_LICENSE = "Apache-2.0";

// ../config/src/schema.ts
_chunkDFJNOFN2cjs.init_cjs_shims.call(void 0, );
var _zod = require('zod'); var _zod2 = _interopRequireDefault(_zod);
var DarkColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1d1e22").describe("The dark background color of the workspace");
var LightColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#f4f4f5").describe("The light background color of the workspace");
var BrandColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1fb2a6").describe("The primary brand specific color of the workspace");
var AlternateColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The alternate brand specific color of the workspace");
var AccentColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The secondary brand specific color of the workspace");
var LinkColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The color used to display hyperlink text");
var HelpColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#8256D0").describe("The second brand specific color of the workspace");
var SuccessColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#12B66A").describe("The success color of the workspace");
var InfoColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#0070E0").describe("The informational color of the workspace");
var WarningColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#fcc419").describe("The warning color of the workspace");
var DangerColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#D8314A").describe("The danger color of the workspace");
var FatalColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The fatal color of the workspace");
var PositiveColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#4ade80").describe("The positive number color of the workspace");
var NegativeColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#ef4444").describe("The negative number color of the workspace");
var DarkThemeColorConfigSchema = _zod2.default.object({
  foreground: LightColorSchema,
  background: DarkColorSchema,
  brand: BrandColorSchema,
  alternate: AlternateColorSchema,
  accent: AccentColorSchema,
  link: LinkColorSchema,
  help: HelpColorSchema,
  success: SuccessColorSchema,
  info: InfoColorSchema,
  warning: WarningColorSchema,
  danger: DangerColorSchema,
  fatal: FatalColorSchema,
  positive: PositiveColorSchema,
  negative: NegativeColorSchema
});
var LightThemeColorConfigSchema = _zod2.default.object({
  foreground: DarkColorSchema,
  background: LightColorSchema,
  brand: BrandColorSchema,
  alternate: AlternateColorSchema,
  accent: AccentColorSchema,
  link: LinkColorSchema,
  help: HelpColorSchema,
  success: SuccessColorSchema,
  info: InfoColorSchema,
  warning: WarningColorSchema,
  danger: DangerColorSchema,
  fatal: FatalColorSchema,
  positive: PositiveColorSchema,
  negative: NegativeColorSchema
});
var MultiThemeColorConfigSchema = _zod2.default.object({
  dark: DarkThemeColorConfigSchema,
  light: LightThemeColorConfigSchema
});
var SingleThemeColorConfigSchema = _zod2.default.object({
  dark: DarkColorSchema,
  light: LightColorSchema,
  brand: BrandColorSchema,
  alternate: AlternateColorSchema,
  accent: AccentColorSchema,
  link: LinkColorSchema,
  help: HelpColorSchema,
  success: SuccessColorSchema,
  info: InfoColorSchema,
  warning: WarningColorSchema,
  danger: DangerColorSchema,
  fatal: FatalColorSchema,
  positive: PositiveColorSchema,
  negative: NegativeColorSchema
});
var RegistryUrlConfigSchema = _zod2.default.string().trim().toLowerCase().url().optional().describe("A remote registry URL used to publish distributable packages");
var RegistryConfigSchema = _zod2.default.object({
  github: RegistryUrlConfigSchema,
  npm: RegistryUrlConfigSchema,
  cargo: RegistryUrlConfigSchema,
  cyclone: RegistryUrlConfigSchema,
  container: RegistryUrlConfigSchema
}).default({}).describe("A list of remote registry URLs used by Storm Software");
var ColorConfigSchema = SingleThemeColorConfigSchema.or(MultiThemeColorConfigSchema).describe("Colors used for various workspace elements");
var ColorConfigMapSchema = _zod2.default.union([
  _zod2.default.object({
    "base": ColorConfigSchema
  }),
  _zod2.default.record(_zod2.default.string(), ColorConfigSchema)
]);
var WorkspaceBotConfigSchema = _zod2.default.object({
  name: _zod2.default.string().trim().default("Stormie-Bot").describe("The workspace bot user's name (this is the bot that will be used to perform various tasks)"),
  email: _zod2.default.string().trim().email().default("bot@stormsoftware.com").describe("The email of the workspace bot")
}).describe("The workspace's bot user's config used to automated various operations tasks");
var WorkspaceDirectoryConfigSchema = _zod2.default.object({
  cache: _zod2.default.string().trim().optional().describe("The directory used to store the environment's cached file data"),
  data: _zod2.default.string().trim().optional().describe("The directory used to store the environment's data files"),
  config: _zod2.default.string().trim().optional().describe("The directory used to store the environment's configuration files"),
  temp: _zod2.default.string().trim().optional().describe("The directory used to store the environment's temp files"),
  log: _zod2.default.string().trim().optional().describe("The directory used to store the environment's temp files"),
  build: _zod2.default.string().trim().default("dist").describe("The directory used to store the workspace's distributable files after a build (relative to the workspace root)")
}).describe("Various directories used by the workspace to store data, cache, and configuration files");
var StormConfigSchema = _zod2.default.object({
  $schema: _zod2.default.string().trim().default("https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm.schema.json").optional().nullish().describe("The URL to the JSON schema file that describes the Storm configuration file"),
  extends: _zod2.default.string().trim().optional().describe("The path to a base JSON file to use as a configuration preset file"),
  name: _zod2.default.string().trim().toLowerCase().optional().describe("The name of the service/package/scope using this configuration"),
  namespace: _zod2.default.string().trim().toLowerCase().optional().describe("The namespace of the package"),
  organization: _zod2.default.string().trim().default("storm-software").describe("The organization of the workspace"),
  repository: _zod2.default.string().trim().url().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
  license: _zod2.default.string().trim().default("Apache-2.0").describe("The license type of the package"),
  homepage: _zod2.default.string().trim().url().default(STORM_DEFAULT_HOMEPAGE).describe("The homepage of the workspace"),
  docs: _zod2.default.string().trim().url().default(STORM_DEFAULT_DOCS).describe("The base documentation site for the workspace"),
  licensing: _zod2.default.string().trim().url().default(STORM_DEFAULT_LICENSING).describe("The base licensing site for the workspace"),
  branch: _zod2.default.string().trim().default("main").describe("The branch of the workspace"),
  preid: _zod2.default.string().optional().describe("A tag specifying the version pre-release identifier"),
  owner: _zod2.default.string().trim().default("@storm-software/admin").describe("The owner of the package"),
  bot: WorkspaceBotConfigSchema,
  env: _zod2.default.enum([
    "development",
    "staging",
    "production"
  ]).default("production").describe("The current runtime environment name for the package"),
  workspaceRoot: _zod2.default.string().trim().default("").describe("The root directory of the workspace"),
  externalPackagePatterns: _zod2.default.array(_zod2.default.string()).default([]).describe("The build will use these package patterns to determine if they should be external to the bundle"),
  skipCache: _zod2.default.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
  directories: WorkspaceDirectoryConfigSchema,
  packageManager: _zod2.default.enum([
    "npm",
    "yarn",
    "pnpm",
    "bun"
  ]).default("npm").describe("The JavaScript/TypeScript package manager used by the repository"),
  timezone: _zod2.default.string().trim().default("America/New_York").describe("The default timezone of the workspace"),
  locale: _zod2.default.string().trim().default("en-US").describe("The default locale of the workspace"),
  logLevel: _zod2.default.enum([
    "silent",
    "fatal",
    "error",
    "warn",
    "success",
    "info",
    "debug",
    "trace",
    "all"
  ]).default("info").describe("The log level used to filter out lower priority log messages. If not provided, this is defaulted using the `environment` config value (if `environment` is set to `production` then `level` is `error`, else `level` is `debug`)."),
  registry: RegistryConfigSchema,
  configFile: _zod2.default.string().trim().nullable().default(null).describe("The filepath of the Storm config. When this field is null, no config file was found in the current workspace."),
  colors: ColorConfigSchema.or(ColorConfigMapSchema).describe("Storm theme config values used for styling various package elements"),
  extensions: _zod2.default.record(_zod2.default.any()).optional().default({}).describe("Configuration of each used extension")
}).describe("Storm Workspace config values used during various dev-ops processes. This type is a combination of the StormPackageConfig and StormProject types. It represents the config of the entire monorepo.");

// ../config/src/types.ts
_chunkDFJNOFN2cjs.init_cjs_shims.call(void 0, );
var COLOR_KEYS = [
  "dark",
  "light",
  "base",
  "brand",
  "alternate",
  "accent",
  "link",
  "success",
  "help",
  "info",
  "warning",
  "danger",
  "fatal",
  "positive",
  "negative"
];

// ../config/src/index.ts
_chunkDFJNOFN2cjs.init_cjs_shims.call(void 0, );

// ../config/src/define-config.ts
_chunkDFJNOFN2cjs.init_cjs_shims.call(void 0, );








exports.STORM_DEFAULT_DOCS = STORM_DEFAULT_DOCS; exports.STORM_DEFAULT_HOMEPAGE = STORM_DEFAULT_HOMEPAGE; exports.STORM_DEFAULT_LICENSING = STORM_DEFAULT_LICENSING; exports.STORM_DEFAULT_LICENSE = STORM_DEFAULT_LICENSE; exports.StormConfigSchema = StormConfigSchema; exports.COLOR_KEYS = COLOR_KEYS;
