@happyvertical/smrt-config 0.62.10 → 0.62.12
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.
- package/dist/index.js +6 -4
- package/dist/index.js.map +1 -1
- package/dist/loader.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import { A as canonicalizeAIConfig, B as getExplorer, C as mergeConfigs, D as AIProviderNotConfiguredError, E as resolveApplicationRuntime, F as resolveAIProviderConfig, H as setExplorer, I as toAIClientOptions, L as tryResolveAIProviderConfig, M as getDefaultAIKeyEnvName, N as mergeAIConfigObjects, O as AI_PROVIDER_KEY_ENV, P as redactBaseUrl, R as withAIAliases, S as getRuntimeConfig, T as getApplicationRuntimePreset, U as setLoadedConfig, V as setCachedConfig, _ as mergeExportedConfig, a as getConfig, b as sanitizeConfig, c as getSiteConfig, d as resolveConfiguredAIProvider, f as resolveConfiguredApplicationRuntime, g as exportConfig, h as tryResolveConfiguredAIProvider, i as getAIConfigBlock, j as describeAIProviderConfig, k as DEFAULT_AI_ENV_PREFIXES, l as mergeAIConfigLayers, m as setConfig, n as clearCache, o as getModuleConfig, p as resolveEffectiveApplicationRuntime, r as defineConfig, s as getPackageConfig, t as RUNTIME_ENVIRONMENT_SETTINGS, u as resolveCliDatabaseConfig, v as parseExportedConfig, w as RuntimeProfileValidationError, x as clearRuntimeConfig, y as redactValueSecrets, z as getCachedConfig } from "./chunks/shared-Cr921uFJ.js";
|
|
2
2
|
import { cosmiconfig } from "cosmiconfig";
|
|
3
|
-
import { createJiti } from "jiti";
|
|
4
3
|
//#region src/loader.ts
|
|
5
4
|
var MODULE_NAME = "smrt";
|
|
6
5
|
var jitiInstance;
|
|
7
|
-
function getJiti() {
|
|
8
|
-
if (!jitiInstance)
|
|
6
|
+
async function getJiti() {
|
|
7
|
+
if (!jitiInstance) {
|
|
8
|
+
const { createJiti } = await import("jiti");
|
|
9
|
+
jitiInstance = createJiti(import.meta.url, { moduleCache: false });
|
|
10
|
+
}
|
|
9
11
|
return jitiInstance;
|
|
10
12
|
}
|
|
11
13
|
var typeScriptLoader = async (filepath) => {
|
|
12
|
-
return getJiti().import(filepath, { default: true });
|
|
14
|
+
return (await getJiti()).import(filepath, { default: true });
|
|
13
15
|
};
|
|
14
16
|
function isFileNotFound(error) {
|
|
15
17
|
if (!error || typeof error !== "object") return false;
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../src/loader.ts","../src/index.ts"],"sourcesContent":["import type { Loader } from 'cosmiconfig';\nimport { cosmiconfig } from 'cosmiconfig';\nimport { createJiti } from 'jiti';\nimport {\n getCachedConfig,\n getExplorer,\n setCachedConfig,\n setExplorer,\n} from './loader-state.js';\nimport type { LoadConfigOptions, SmrtConfig } from './types.js';\n\nexport { clearConfigCache } from './loader-state.js';\n\nconst MODULE_NAME = 'smrt';\n\n/**\n * Lazily-created jiti instance used to load TypeScript config files.\n *\n * cosmiconfig ships no TypeScript loader (dropped in v8+), so a project whose\n * config is `smrt.config.ts` — the SvelteKit template default — silently fell\n * back to empty config, breaking `smrt db:setup` / `db:migrate` (#1783). jiti\n * transpiles and imports the `.ts`/`.mts`/`.cts` file on demand (it is the same\n * engine cosmiconfig-typescript-loader wraps), honoring the config's own\n * relative imports and `process.env` reads. Created once and reused so repeated\n * `loadConfig()` calls don't rebuild the transform pipeline.\n */\nlet jitiInstance: ReturnType<typeof createJiti> | undefined;\n\nfunction getJiti(): ReturnType<typeof createJiti> {\n if (!jitiInstance) {\n // moduleCache: false so a re-read after the file changes on disk (hot\n // reload, or `loadConfig({ cache: false })`) re-evaluates instead of\n // returning jiti's in-memory copy. The common `cache: true` path is already\n // short-circuited by our own config cache before it reaches jiti, so this\n // adds no cost to steady-state loads. fsCache (default) still disk-caches\n // the content-hashed transpile output.\n jitiInstance = createJiti(import.meta.url, { moduleCache: false });\n }\n return jitiInstance;\n}\n\n/**\n * cosmiconfig loader for TypeScript config files. Returns the config's default\n * export (or the module namespace when there is no default), matching how the\n * JS loaders treat `export default` / `module.exports`.\n */\nconst typeScriptLoader: Loader = async (filepath: string) => {\n return getJiti().import(filepath, { default: true });\n};\n\n/**\n * Distinguish \"config file does not exist\" (a benign, expected condition that\n * falls back to empty config) from \"config file exists but failed to load/parse\"\n * (a real error that should surface). cosmiconfig reads via Node `fs`, so a\n * missing explicit path raises an `ENOENT` error.\n */\nfunction isFileNotFound(error: unknown): boolean {\n if (!error || typeof error !== 'object') {\n return false;\n }\n if ((error as { code?: unknown }).code === 'ENOENT') {\n return true;\n }\n const message = (error as { message?: unknown }).message;\n return (\n typeof message === 'string' &&\n (message.includes('ENOENT') || message.includes('no such file'))\n );\n}\n\n/**\n * Load and parse configuration from the project root using cosmiconfig.\n *\n * Searches for `smrt.config.{js,mjs,cjs,ts,mts,cts,json}` starting from `cwd`,\n * walking up the directory tree unless `searchParents` is `false`. TypeScript\n * configs are transpiled on demand via jiti (#1783). The result is\n * cached in `globalThis.__smrtLoaderCachedConfig` so that all modules sharing\n * the same runtime (including pnpm workspace symlinks) see the same config.\n *\n * Returns an empty object (`{}`) when no config file is found, so callers\n * should always treat every field as optional. A config file that **exists but\n * fails to load/parse** (syntax error, bad import, invalid JSON) throws instead\n * of being silently ignored (#1579).\n *\n * @param options - Search and caching options.\n * @returns The parsed {@link SmrtConfig}, or `{}` if no config file is found.\n * @throws If a config file exists but cannot be loaded or parsed.\n *\n * @example\n * ```ts\n * import { loadConfig } from '@happyvertical/smrt-config';\n *\n * const config = await loadConfig();\n * console.log(config.smrt?.logLevel); // 'debug'\n * ```\n *\n * @example Load a specific file (useful in tests):\n * ```ts\n * const config = await loadConfig({ configPath: './fixtures/smrt.config.js', cache: false });\n * ```\n *\n * @see {@link LoadConfigOptions}\n * @see {@link clearConfigCache}\n */\nexport async function loadConfig(\n options: LoadConfigOptions = {},\n): Promise<SmrtConfig> {\n const {\n configPath,\n searchParents = true,\n searchFrom,\n cache = true,\n } = options;\n\n // Return cached config if available\n const cached = getCachedConfig();\n if (cache && cached) {\n return cached;\n }\n\n // Initialize or reuse cosmiconfig explorer\n let explorer = getExplorer();\n if (!explorer || !cache) {\n explorer = cosmiconfig(MODULE_NAME, {\n searchPlaces: [\n `${MODULE_NAME}.config.js`,\n `${MODULE_NAME}.config.mjs`,\n `${MODULE_NAME}.config.cjs`,\n `${MODULE_NAME}.config.ts`,\n `${MODULE_NAME}.config.mts`,\n `${MODULE_NAME}.config.cts`,\n `${MODULE_NAME}.config.json`,\n ],\n // cosmiconfig has no built-in TypeScript loader; register jiti for the TS\n // extensions so a `smrt.config.ts` scaffold loads end to end (#1783).\n loaders: {\n '.ts': typeScriptLoader,\n '.mts': typeScriptLoader,\n '.cts': typeScriptLoader,\n },\n // When not searching parents, stop at the actual search root so\n // `searchParents: false` is honored even if `searchFrom` is outside the\n // cwd tree (otherwise the upward walk from `searchFrom` never hits cwd and\n // runs to the filesystem root).\n stopDir: searchParents ? undefined : (searchFrom ?? process.cwd()),\n cache: cache, // Respect cache option\n });\n setExplorer(explorer);\n }\n\n let result: Awaited<ReturnType<typeof explorer.load>> = null;\n\n // Load from specific path or search\n try {\n if (configPath) {\n result = await explorer.load(configPath);\n } else {\n result = await explorer.search(searchFrom ?? process.cwd());\n }\n } catch (error) {\n // A genuinely-absent config file is not an error: an explicit `configPath`\n // that doesn't exist (ENOENT) legitimately falls back to empty config, and\n // `search()` returns null (never throws) when no file is found.\n if (isFileNotFound(error)) {\n return {};\n }\n // A config file that EXISTS but fails to load/parse — syntax error, bad\n // import, invalid JSON — is a real problem. Surface it loudly instead of\n // silently returning {} and falling back to defaults, which masks broken\n // config and leaves the developer thinking their settings applied (#1579).\n const where = configPath ? ` \"${configPath}\"` : '';\n throw new Error(\n `Failed to load smrt config${where}: ${\n error instanceof Error ? error.message : String(error)\n }`,\n { cause: error },\n );\n }\n\n const config: SmrtConfig = result?.config || {};\n\n // Cache the config\n if (cache) {\n setCachedConfig(config);\n }\n\n return config;\n}\n","/**\n * Node entry of `@happyvertical/smrt-config`: the shared config surface plus\n * the filesystem `loadConfig()` (cosmiconfig + jiti). The `browser` export\n * condition resolves `browser.ts` instead, which carries the same surface\n * without the Node-only loader (#3625).\n */\nimport { setLoadedConfig } from './loaded-config.js';\nimport { loadConfig as _loadConfig } from './loader.js';\nimport type { LoadConfigOptions, SmrtConfig } from './types.js';\n\nexport * from './shared.js';\n\n/**\n * Load and parse configuration from the project root.\n *\n * Searches for `smrt.config.{js,mjs,cjs,json}` starting from the current\n * working directory and walking up the tree (unless `searchParents: false`).\n * The result is stored in `globalThis.__smrtConfigCache` so every module in\n * the process — including pnpm workspace packages loaded from different paths\n * — sees the same instance.\n *\n * Must be called before {@link getConfig}, {@link getModuleConfig}, or\n * {@link getPackageConfig} return meaningful values (they fall back to an\n * empty config if called before loading).\n *\n * @param options - Optional search path, parent traversal, and cache control.\n * @returns The parsed {@link SmrtConfig}. Returns `{}` if no file is found.\n *\n * @example\n * ```ts\n * // Typical app startup\n * import { loadConfig } from '@happyvertical/smrt-config';\n * await loadConfig();\n * ```\n *\n * @example\n * ```ts\n * // Load a specific file (tests / scripts)\n * const config = await loadConfig({ configPath: './fixtures/smrt.config.js', cache: false });\n * ```\n *\n * @see {@link getConfig}\n * @see {@link clearCache}\n * @see {@link LoadConfigOptions}\n */\nexport async function loadConfig(\n options?: LoadConfigOptions,\n): Promise<SmrtConfig> {\n const config = await _loadConfig(options);\n // Always update config cache (even if caching is disabled)\n setLoadedConfig(config);\n return config;\n}\n"],"mappings":";;;;AAaA,IAAM,cAAc;AAapB,IAAI;AAEJ,SAAS,UAAyC;CAChD,IAAI,CAAC,cAOH,eAAe,WAAW,OAAA,KAAY,KAAK,EAAE,aAAa,MAAM,CAAC;CAEnE,OAAO;AACT;AAOA,IAAM,mBAA2B,OAAO,aAAqB;CAC3D,OAAO,QAAQ,CAAA,CAAE,OAAO,UAAU,EAAE,SAAS,KAAK,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,SAAS,MAAM,aAAY,OAAO;CAExC,gBAAgB,MAAM;CACtB,OAAO;AACT"}
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../src/loader.ts","../src/index.ts"],"sourcesContent":["import type { Loader } from 'cosmiconfig';\nimport { cosmiconfig } from 'cosmiconfig';\nimport type { createJiti } from 'jiti';\nimport {\n getCachedConfig,\n getExplorer,\n setCachedConfig,\n setExplorer,\n} from './loader-state.js';\nimport type { LoadConfigOptions, SmrtConfig } from './types.js';\n\nexport { clearConfigCache } from './loader-state.js';\n\nconst MODULE_NAME = 'smrt';\n\n/**\n * Lazily-created jiti instance used to load TypeScript config files.\n *\n * cosmiconfig ships no TypeScript loader (dropped in v8+), so a project whose\n * config is `smrt.config.ts` — the SvelteKit template default — silently fell\n * back to empty config, breaking `smrt db:setup` / `db:migrate` (#1783). jiti\n * transpiles and imports the `.ts`/`.mts`/`.cts` file on demand (it is the same\n * engine cosmiconfig-typescript-loader wraps), honoring the config's own\n * relative imports and `process.env` reads. Created once and reused so repeated\n * `loadConfig()` calls don't rebuild the transform pipeline.\n */\nlet jitiInstance: ReturnType<typeof createJiti> | undefined;\n\nasync function getJiti(): Promise<ReturnType<typeof createJiti>> {\n if (!jitiInstance) {\n // Imported on first use so a process that never loads a TypeScript config\n // does not pay for jiti at module load (#5215).\n const { createJiti } = await import('jiti');\n // moduleCache: false so a re-read after the file changes on disk (hot\n // reload, or `loadConfig({ cache: false })`) re-evaluates instead of\n // returning jiti's in-memory copy. The common `cache: true` path is already\n // short-circuited by our own config cache before it reaches jiti, so this\n // adds no cost to steady-state loads. fsCache (default) still disk-caches\n // the content-hashed transpile output.\n jitiInstance = createJiti(import.meta.url, { moduleCache: false });\n }\n return jitiInstance;\n}\n\n/**\n * cosmiconfig loader for TypeScript config files. Returns the config's default\n * export (or the module namespace when there is no default), matching how the\n * JS loaders treat `export default` / `module.exports`.\n */\nconst typeScriptLoader: Loader = async (filepath: string) => {\n return (await getJiti()).import(filepath, { default: true });\n};\n\n/**\n * Distinguish \"config file does not exist\" (a benign, expected condition that\n * falls back to empty config) from \"config file exists but failed to load/parse\"\n * (a real error that should surface). cosmiconfig reads via Node `fs`, so a\n * missing explicit path raises an `ENOENT` error.\n */\nfunction isFileNotFound(error: unknown): boolean {\n if (!error || typeof error !== 'object') {\n return false;\n }\n if ((error as { code?: unknown }).code === 'ENOENT') {\n return true;\n }\n const message = (error as { message?: unknown }).message;\n return (\n typeof message === 'string' &&\n (message.includes('ENOENT') || message.includes('no such file'))\n );\n}\n\n/**\n * Load and parse configuration from the project root using cosmiconfig.\n *\n * Searches for `smrt.config.{js,mjs,cjs,ts,mts,cts,json}` starting from `cwd`,\n * walking up the directory tree unless `searchParents` is `false`. TypeScript\n * configs are transpiled on demand via jiti (#1783). The result is\n * cached in `globalThis.__smrtLoaderCachedConfig` so that all modules sharing\n * the same runtime (including pnpm workspace symlinks) see the same config.\n *\n * Returns an empty object (`{}`) when no config file is found, so callers\n * should always treat every field as optional. A config file that **exists but\n * fails to load/parse** (syntax error, bad import, invalid JSON) throws instead\n * of being silently ignored (#1579).\n *\n * @param options - Search and caching options.\n * @returns The parsed {@link SmrtConfig}, or `{}` if no config file is found.\n * @throws If a config file exists but cannot be loaded or parsed.\n *\n * @example\n * ```ts\n * import { loadConfig } from '@happyvertical/smrt-config';\n *\n * const config = await loadConfig();\n * console.log(config.smrt?.logLevel); // 'debug'\n * ```\n *\n * @example Load a specific file (useful in tests):\n * ```ts\n * const config = await loadConfig({ configPath: './fixtures/smrt.config.js', cache: false });\n * ```\n *\n * @see {@link LoadConfigOptions}\n * @see {@link clearConfigCache}\n */\nexport async function loadConfig(\n options: LoadConfigOptions = {},\n): Promise<SmrtConfig> {\n const {\n configPath,\n searchParents = true,\n searchFrom,\n cache = true,\n } = options;\n\n // Return cached config if available\n const cached = getCachedConfig();\n if (cache && cached) {\n return cached;\n }\n\n // Initialize or reuse cosmiconfig explorer\n let explorer = getExplorer();\n if (!explorer || !cache) {\n explorer = cosmiconfig(MODULE_NAME, {\n searchPlaces: [\n `${MODULE_NAME}.config.js`,\n `${MODULE_NAME}.config.mjs`,\n `${MODULE_NAME}.config.cjs`,\n `${MODULE_NAME}.config.ts`,\n `${MODULE_NAME}.config.mts`,\n `${MODULE_NAME}.config.cts`,\n `${MODULE_NAME}.config.json`,\n ],\n // cosmiconfig has no built-in TypeScript loader; register jiti for the TS\n // extensions so a `smrt.config.ts` scaffold loads end to end (#1783).\n loaders: {\n '.ts': typeScriptLoader,\n '.mts': typeScriptLoader,\n '.cts': typeScriptLoader,\n },\n // When not searching parents, stop at the actual search root so\n // `searchParents: false` is honored even if `searchFrom` is outside the\n // cwd tree (otherwise the upward walk from `searchFrom` never hits cwd and\n // runs to the filesystem root).\n stopDir: searchParents ? undefined : (searchFrom ?? process.cwd()),\n cache: cache, // Respect cache option\n });\n setExplorer(explorer);\n }\n\n let result: Awaited<ReturnType<typeof explorer.load>> = null;\n\n // Load from specific path or search\n try {\n if (configPath) {\n result = await explorer.load(configPath);\n } else {\n result = await explorer.search(searchFrom ?? process.cwd());\n }\n } catch (error) {\n // A genuinely-absent config file is not an error: an explicit `configPath`\n // that doesn't exist (ENOENT) legitimately falls back to empty config, and\n // `search()` returns null (never throws) when no file is found.\n if (isFileNotFound(error)) {\n return {};\n }\n // A config file that EXISTS but fails to load/parse — syntax error, bad\n // import, invalid JSON — is a real problem. Surface it loudly instead of\n // silently returning {} and falling back to defaults, which masks broken\n // config and leaves the developer thinking their settings applied (#1579).\n const where = configPath ? ` \"${configPath}\"` : '';\n throw new Error(\n `Failed to load smrt config${where}: ${\n error instanceof Error ? error.message : String(error)\n }`,\n { cause: error },\n );\n }\n\n const config: SmrtConfig = result?.config || {};\n\n // Cache the config\n if (cache) {\n setCachedConfig(config);\n }\n\n return config;\n}\n","/**\n * Node entry of `@happyvertical/smrt-config`: the shared config surface plus\n * the filesystem `loadConfig()` (cosmiconfig + jiti). The `browser` export\n * condition resolves `browser.ts` instead, which carries the same surface\n * without the Node-only loader (#3625).\n */\nimport { setLoadedConfig } from './loaded-config.js';\nimport { loadConfig as _loadConfig } from './loader.js';\nimport type { LoadConfigOptions, SmrtConfig } from './types.js';\n\nexport * from './shared.js';\n\n/**\n * Load and parse configuration from the project root.\n *\n * Searches for `smrt.config.{js,mjs,cjs,json}` starting from the current\n * working directory and walking up the tree (unless `searchParents: false`).\n * The result is stored in `globalThis.__smrtConfigCache` so every module in\n * the process — including pnpm workspace packages loaded from different paths\n * — sees the same instance.\n *\n * Must be called before {@link getConfig}, {@link getModuleConfig}, or\n * {@link getPackageConfig} return meaningful values (they fall back to an\n * empty config if called before loading).\n *\n * @param options - Optional search path, parent traversal, and cache control.\n * @returns The parsed {@link SmrtConfig}. Returns `{}` if no file is found.\n *\n * @example\n * ```ts\n * // Typical app startup\n * import { loadConfig } from '@happyvertical/smrt-config';\n * await loadConfig();\n * ```\n *\n * @example\n * ```ts\n * // Load a specific file (tests / scripts)\n * const config = await loadConfig({ configPath: './fixtures/smrt.config.js', cache: false });\n * ```\n *\n * @see {@link getConfig}\n * @see {@link clearCache}\n * @see {@link LoadConfigOptions}\n */\nexport async function loadConfig(\n options?: LoadConfigOptions,\n): Promise<SmrtConfig> {\n const config = await _loadConfig(options);\n // Always update config cache (even if caching is disabled)\n setLoadedConfig(config);\n return config;\n}\n"],"mappings":";;;AAaA,IAAM,cAAc;AAapB,IAAI;AAEJ,eAAe,UAAkD;CAC/D,IAAI,CAAC,cAAc;EAGjB,MAAM,EAAE,eAAe,MAAM,OAAO;EAOpC,eAAe,WAAW,OAAA,KAAY,KAAK,EAAE,aAAa,MAAM,CAAC;CACnE;CACA,OAAO;AACT;AAOA,IAAM,mBAA2B,OAAO,aAAqB;CAC3D,QAAQ,MAAM,QAAQ,EAAA,CAAG,OAAO,UAAU,EAAE,SAAS,KAAK,CAAC;AAC7D;AAQA,SAAS,eAAe,OAAyB;CAC/C,IAAI,CAAC,SAAS,OAAO,UAAU,UAC7B,OAAO;CAET,IAAK,MAA6B,S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@
|
|
|
1
|
-
{"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../src/loader.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAEhE,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../src/loader.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAEhE,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AA8DrD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,wBAAsB,UAAU,CAC9B,OAAO,GAAE,iBAAsB,GAC9B,OAAO,CAAC,UAAU,CAAC,CAiFrB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@happyvertical/smrt-config",
|
|
3
|
-
"version": "0.62.
|
|
3
|
+
"version": "0.62.12",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Centralized configuration management for SMRT modules",
|
|
6
6
|
"author": "HappyVertical",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"AGENTS.md"
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@happyvertical/smrt-types": "0.62.
|
|
33
|
+
"@happyvertical/smrt-types": "0.62.12",
|
|
34
34
|
"cosmiconfig": "^10.0.1",
|
|
35
35
|
"jiti": "^2.7.0",
|
|
36
36
|
"yaml": "^2.9.1"
|