22 lines
No EOL
799 B
TypeScript
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
|