Files
modelstudioai__cli/packages/core/src/config/index.ts
T
若麒 84805f287c fix(core): normalize model base URLs across all sources
- preserve custom gateway path prefixes
- strip query, fragment, trailing slash, and known SDK suffixes
- normalize flag, environment, config, and fallback sources
- normalize auth and config writes before persistence
- add resolver, login, config, and UI coverage
2026-07-16 14:43:26 +08:00

16 lines
783 B
TypeScript

export type { ConfigFile, Region, Identity, Settings } from "./schema.ts";
export { BAILIAN_HOST, CONFIG_FILE_KEYS, DOCS_HOSTS, REGIONS, parseConfigFile } from "./schema.ts";
export { normalizeConfigName, readConfigFile, writeConfigFile } from "./loader.ts";
export {
activateConfigProfile,
validateConfigProfileActivation,
readConfigProfiles,
deleteConfigProfile,
type ConfigProfiles,
} from "./loader.ts";
export { buildSources, buildSettings, type ResolutionSources } from "./loader.ts";
export { makeConfigStore, type ConfigStore } from "./store.ts";
export { ensureConfigDir, getConfigDir, getConfigPath, getCredentialsPath } from "./paths.ts";
export { getModelProfilePreset } from "./profile-presets.ts";
export { normalizeModelBaseUrl } from "./model-base-url.ts";