@phren/cli
Version:
Knowledge layer for AI agents - CLI, MCP server, and data layer
19 lines (18 loc) • 977 B
TypeScript
import { type WaitingOn } from "./worker-unfinished.js";
import type { TurnPhase } from "./turn-records.js";
/** What a session row's ended turn still waits on (`tab.waiting`): CI, the
* background work it started, a queue, or something else it named. The same
* kinds a dispatch return's `waitingOn` carries. */
export type TabWaiting = WaitingOn;
/**
* Why a row whose turn has ended is not done, for the phone's live board:
* absent while a turn runs, while the owner is needed (an ask or question),
* and when nothing is waited on. A sentence in the ended turn's reply that
* waits on CI or a queue says so; otherwise background work still running is
* `background`; otherwise the awaited sentence's kind, if the reply has one.
* Most "needs you" notices were workers waiting on CI (owner, 2026-11-26).
*/
export declare function tabWaiting(phase: TurnPhase | undefined, tab: {
agentStatus?: unknown;
backgroundTasks?: unknown;
}): TabWaiting | undefined;