@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
21 lines • 1.45 kB
TypeScript
import type { RpcSessionEntry, RpcSessionRow } from "./session-registry-types.ts";
import type { SessionStatusRuntimeView } from "./session-status.ts";
import type { SessionStatusSource } from "./session-status-stream.ts";
type LiveSession = NonNullable<NonNullable<RpcSessionEntry["runtime"]>["session"]>;
/** What a live in-process session contributes; `pendingQuestions` defaults to its RPC question bridge. */
export declare function sessionRuntimeView(session: LiveSession, pendingQuestions?: number): SessionStatusRuntimeView;
/**
* The `list_sessions` row fields, read from the same sources a `session_status` row is derived from. A row shows
* only whether a turn runs, its retry wait and the model, so it reads those and never the queue or question counts.
* The wait is redacted: a listing reaches every connection that can list sessions, so it carries the typed kind
* and its timing but never the provider's error text, which stays on `get_state` and on `session_status`.
*/
export declare function sessionRowStatusFields(entry: RpcSessionEntry): Pick<RpcSessionRow, "archived" | "settled" | "settledBy" | "activity" | "waiting" | "model">;
export declare function registryStatusSource(registry: {
readonly peek: (sessionId: string) => RpcSessionEntry | undefined;
readonly list: () => readonly {
readonly sessionId: string;
}[];
}): SessionStatusSource;
export {};
//# sourceMappingURL=session-status-source.d.ts.map