disclaw/dist/config/loader.d.ts
Nick Tabeling ca461d0da6
Some checks failed
CI / build-and-test (ubuntu-latest) (pull_request) Has been cancelled
CI / build-and-test (windows-latest) (pull_request) Has been cancelled
CI / lint (pull_request) Has been cancelled
fix(env): remove CI=true from sanitizedEnv, breaks Claude Code OAuth login
2026-04-09 13:18:25 +02:00

22 lines
No EOL
799 B
TypeScript

export interface DisclawConfig {
workspaces_root: string;
management_channel: string;
claude_command: string;
claude_timeout_seconds: number;
env_blocklist: string[];
}
export interface EnvConfig {
DISCORD_BOT_TOKEN: string;
DISCORD_GUILD_ID?: string;
CLAUDE_PATH?: string;
}
/**
* Expands a leading `~` in a path to the user's home directory and resolves
* the result to an absolute, normalised path. No shell expansion is used.
*
* Exported as a pure function so it can be unit-tested independently.
*/
export declare function expandWorkspacesRoot(raw: string, repoRoot: string): string;
export declare function loadEnv(rootDir: string): EnvConfig;
export declare function loadDisclawConfig(rootDir: string): DisclawConfig;
//# sourceMappingURL=loader.d.ts.map