@essentialai/cogent-bridge
Version:
Cogent Bridge — cross-agent comms for Claude Code, OpenAI Codex and Slack. Codex users: install with `curl -fsSL https://cogent.tools/install.sh | sh`, then start with `cogent-codex` for real-time peer wake.
22 lines • 954 B
TypeScript
export type CommandRunner = (cmd: string, args: string[]) => Promise<void>;
/**
* Build the platform-appropriate notifier command, or null on an unsupported OS
* (the caller then falls back to stdout). macOS uses `osascript`; Linux uses
* `notify-send`. Args are passed as an argv array (no shell), so only the
* AppleScript string literal needs sanitizing.
*/
export declare function notifierCommand(platform: NodeJS.Platform, title: string, body: string): {
cmd: string;
args: string[];
} | null;
export interface NotifyOptions {
platform?: NodeJS.Platform;
runner?: CommandRunner;
}
/**
* Fire an OS notification. Never rejects: an unsupported platform or a failing
* command falls back to a stdout line (with a terminal bell), so the watch loop
* is never broken by a notifier problem.
*/
export declare function notify(title: string, body: string, opts?: NotifyOptions): Promise<void>;
//# sourceMappingURL=notifier.d.ts.map