@phren/cli
Version:
Knowledge layer for AI agents - CLI, MCP server, and data layer
24 lines (23 loc) • 1.43 kB
TypeScript
import type { Readable } from "node:stream";
import { type DispatchInput } from "./dispatch.js";
import { type Json } from "./protocol.js";
export declare function runDispatch(args: string[]): Promise<number>;
/** The brief limit shared with dispatchSchema. */
export declare const PROMPT_LIMIT = 32768;
/** A brief from a file, or stdin for `-`. The text never goes through argv. */
export declare function readPromptFile(file: string, stdin?: Readable): Promise<string>;
/** The dispatch form's argv, prompt file/stdin and defaults, without reaching a Hook. */
export declare function dispatchInputFromArgs(args: string[], stdin?: Readable): Promise<DispatchInput>;
/** Exactly one of a dispatch id and an idempotency key, for `dispatch close`. */
export declare function closeRequestFromArgs(args: string[]): {
dispatch: string;
} | {
idempotencyKey: string;
};
export declare function runHandOff(args: string[]): Promise<number>;
/** `phren move`: a live session, named by its session id or its pane id (`wC9:p1`), to another agent, through its computer's Hook (session-move.ts). */
export declare function runMove(args: string[]): Promise<number>;
/** One line per computer: name, reachability, link and conductor. */
export declare function formatSets(view: Json): string;
export declare function runConductor(args: string[]): Promise<number>;
export declare function runOwnerInbox(args: string[]): Promise<number>;