UNPKG

@phren/cli

Version:

Knowledge layer for AI agents - CLI, MCP server, and data layer

23 lines (22 loc) • 1.45 kB
import type { AgentHooks } from "./agent-hooks.js"; import { type Receipt } from "./dispatch.js"; import { type InboxItem, type InboxSnapshot, type InboxSource } from "./owner-inbox.js"; /** Push eligibility for rows from this Hook's reconciliation. Classify each * source prefix here. Peer aggregation is only used to list rows. */ export declare function isOwnerInboxPushSource(item: Pick<InboxItem, "kind" | "source" | "computer"> & { blocks?: boolean; }): boolean; export declare function storeSyncInboxSources(primary: string, now?: number): InboxSource[]; /** Read the actual panes and pending asks, never a stored inbox's live flag. * Called on reads and on the Hook's five-second activity tick. */ export declare function ownerInboxSources(hooks: AgentHooks): Promise<InboxSnapshot>; /** How often the inbox asks another computer about its receipts past the returns loop's watch, failed or not. */ export declare const AGED_CHECK_MS: number; /** Forgets the hourly answers (tests). */ export declare function resetAgedChecks(): void; /** * A dispatch on another computer, within the returns loop's watch, as that loop last saw it, with no SSH of its * own: waiting on an approval it forwarded (blocked, answerable by its `actionId`), blocked, or stopped with a * question for the owner. A worker the loop saw back at work, or gone, has no row. */ export declare function remoteSource(receipt: Receipt): InboxSource | undefined;