gatelineAPI reference
  • Resolve sources in precedence order: explicit --repo paths, then the config file, then the cwd's repository.

    Each source is named by nameRepository (§6). Throws RepositoryIdError when an id is unusable, or when two repositories share an id or a display name; throws ConfigError when the config file breaks a rule of §7. Both are startup errors, since serving either reading of a clash would be a guess. A listed repository whose content is the problem — its path is not a repository, or it fails the framework check (§7.2) — is left out with a warning and the rest load; only when every entry is left out is that a ConfigError too.

    The framework check applies to config entries only. A repository given by --repo or the working directory is served as before, unchecked.

    Parameters

    • opts: {
          configPath?: string;
          cwd?: string;
          engine?: boolean;
          localOnly?: boolean;
          push?: boolean;
          repoOverrides?: string[];
          settingsWithRepo?: boolean;
      }
      • OptionalconfigPath?: string
      • Optionalcwd?: string
      • Optionalengine?: boolean

        Whether this process runs an engine (up). It decides the mode of a repository with no config entry (dispatch under up, decide otherwise), and whether a dispatch entry keeps that mode or behaves as decide (§7.3, R3).

      • OptionallocalOnly?: boolean

        Explicit local-only designator for zero-config (CLI-tier) sources — gateline up --local-only.

      • Optionalpush?: boolean

        Overrides the origin-exists push auto-detection for zero-config sources — false honors an operator's explicit no-push ceiling (gateline up --no-push), which at this CLI tier also implies local-only (ADR-1) unless localOnly says otherwise. Config-file sources always keep their own push/local_only entries.

      • OptionalrepoOverrides?: string[]
      • OptionalsettingsWithRepo?: boolean

        With repoOverrides, still read and check the config file, and return its limits: and engine: (gateline up, review of #550): --repo chooses the set, and never the limits. A --repo repository that an entry names takes that entry's ceiling. Off, --repo replaces the file whole, as the CLI and ui have always had it.

    Returns Promise<LoadedConfig>