@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.
9 lines • 747 B
TypeScript
/** `~/.cogent/poll-cursors/<sessionId>.<peerId>.json` */
export declare function pollCursorPath(sessionId: string, peerId: string): string;
/** The last message this peer consumed on this channel, or null when there is no record. */
export declare function loadPollCursor(sessionId: string, peerId: string): string | null;
/** Record the last consumed message. Best-effort; a failure only costs a replay next restart. */
export declare function savePollCursor(sessionId: string, peerId: string, lastMessageId: string): void;
/** Forget the cursor for this identity. Used when a peer deregisters from a channel for good. */
export declare function clearPollCursor(sessionId: string, peerId: string): void;
//# sourceMappingURL=poll-cursor.d.ts.map