gatelineAPI reference
interface LoadedConfig {
    configPath: null | string;
    engine: EngineDefaults;
    limits: OperatorLimits;
    matchedEntries?: Record<string, string>;
    repositoryLimits: Record<string, { spendLimitUsd?: number }>;
    repositorySettings: Record<string, RepositorySettings>;
    settingsPath: null | string;
    sources: RunSource[];
    warnings: string[];
}

Properties

configPath: null | string

Where the set came from: the config file's path when it listed the set, or null (--repo, the working directory).

The config file's engine:; empty when no config file was read.

The config file's limits:; empty when no config file was read (--repo, or the working directory with no file).

matchedEntries?: Record<string, string>

With --repo and settingsWithRepo (#502, review of #550): each --repo repository that a config entry also names, by source id, with that entry's label (repositories[0] (~/repos/billing)). The entry's ceiling applies to it; its mode, push and local_only do not. Absent otherwise.

repositoryLimits: Record<string, { spendLimitUsd?: number }>

Each listed repository's own limits:, by source id; a repository with none is absent.

repositorySettings: Record<string, RepositorySettings>

How each source in sources is served, by source id (every source has an entry).

settingsPath: null | string

The config file whose limits: and engine: were read, or null when none was (#502). The same as configPath when the file listed the set; set with a null configPath when the file lists no repositories and the working directory is served under the file's limits.

sources: RunSource[]
warnings: string[]