@linktogo/ai-config
v0.6.0
Published
Load and validate the ai-sync repository config from a local file or a shared git repository.
Maintainers
Readme
@linktogo/ai-config
Loads and validates the repository config for ai-sync, from either a local JSON file or a shared git repository (shallow-cloned into a temp dir and cleaned up after).
import { resolveConfigSource } from '@linktogo/ai-config';
const config = await resolveConfigSource({ config: 'repos.json' });
// or: { configRepo: 'https://github.com/example-org/ai-config.git', configFile: 'repos.json' }Exactly one of config / configRepo must be provided. Each repo entry needs
name, url, and a non-empty technologies array.
