@phren/cli
Version:
Knowledge layer for AI agents - CLI, MCP server, and data layer
10 lines (9 loc) • 609 B
TypeScript
import { type RequestOptions } from "node:http";
import { type Json } from "./protocol.js";
export declare function hookRequest(route: string, data?: Json, options?: RequestOptions, timeout?: number): Promise<Json>;
/**
* An owner-only action from the terminal. Once the phone signs owner actions,
* the Hook holds this request and asks the phone to confirm it (owner-confirm.ts);
* the command waits for that answer. Before then it goes straight through.
*/
export declare function ownerHookRequest(route: string, data?: Json, method?: "POST" | "DELETE", notice?: (line: string) => void): Promise<Json>;