UNPKG

@phren/cli

Version:

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

13 lines (12 loc) • 628 B
import type { IncomingMessage } from "node:http"; import type { Json } from "./protocol.js"; /** Owner phone/desktop gateways and the owner's local CLI carry no agent or * peer origin. Peer keys are forced through the peer scope, which rebuilds * the request with its own origin header; MCP calls carry an agent origin. */ export declare function ownerRequest(request: Pick<IncomingMessage, "headers">, data: Json): boolean; export interface PeerIdentity { name?: string; id?: string; fingerprint: string; } export declare function requestPeer(request: Pick<IncomingMessage, "headers">): PeerIdentity | undefined;