/** * src/config.ts — Read agent token + API base URL. * * Resolution order: * 1. process.env.SKILLFM_AGENT_TOKEN * 2. ~/.skillfm/beacon-mcp/config.json `{ agentToken, apiBaseUrl }` * 3. Fallback → degraded=true (no token, public/cached endpoints only) * * `degraded` propagates to the MCP server: every tool can still run but * brain-backed paths fall back to local cache or NOT_IMPLEMENTED. * * TODO Week 5: * - Replace ad-hoc JSON config with the same `~/.skillfm/config.json` schema * that `@skillfm/local` writes (already vault-protected). Currently the two * packages each own a slice of the homedir. * - Add `SKILLFM_DRY_RUN=1` knob so smoke tests never call brain-client. * - Plug into `skillfm-beacon-mcp bind` CLI subcommand (bin.ts) for * OAuth device-flow binding (mirror @skillfm/local activate flow). */ export declare const DEFAULT_API_BASE_URL = "https://api.skillfm.ai"; export interface BeaconConfig { agentToken: string | null; apiBaseUrl: string; degraded: boolean; } export declare function loadConfig(): BeaconConfig; /** Used by tests to assert resolution precedence; not exported for runtime. */ export declare function _resolveHomePath(): string; //# sourceMappingURL=config.d.ts.map