@phren/cli
Version:
Knowledge layer for AI agents - CLI, MCP server, and data layer
27 lines (26 loc) • 1.24 kB
TypeScript
/** The ElevenLabs key for spoken replies and Scribe dictation. It is machine
* config, like apns.json: it lives in the Hook's own directory, mode 600, and
* never in the synced store. ELEVENLABS_API_KEY, ElevenLabs' own convention
* that its SDKs and MCP server read, wins when set. The Hook runs as a service
* that doesn't see shell env, so the file is the durable source. */
export declare const SPEECH_KEY_ENV = "ELEVENLABS_API_KEY";
export type SpeechKeySource = "environment" | "file";
export declare function speechKeyFile(): string;
export declare function writeSpeechKey(key: string, file?: string): Promise<void>;
export interface SpeechKeyPaths {
env?: NodeJS.ProcessEnv;
file?: string;
}
/** ELEVENLABS_API_KEY, else the stored key. */
export declare function resolveSpeechKey(paths?: SpeechKeyPaths): Promise<{
key: string;
source: SpeechKeySource;
} | undefined>;
export declare function readSpeechKey(): Promise<string | undefined>;
export interface SpeechKeyStatus {
configured: boolean;
detail: string;
problem?: boolean;
}
/** Whether this computer has a key, for doctor. Never the key itself. */
export declare function speechKeyStatus(paths?: SpeechKeyPaths): Promise<SpeechKeyStatus>;