UNPKG

@code-yeongyu/senpi

Version:

Coding agent CLI with read, bash, edit, write tools and session management

18 lines • 1.2 kB
export declare const RPC_AUTH_CAPABILITY = "socket_auth"; export declare const RPC_AUTH_HEX: RegExp; export declare const RPC_LAUNCH_ID: RegExp; /** * The record a public-key filter hands the host core, in band and in order, once its client proved the launch key * (senpi#5632). Only a filter writes it: every filter refuses it from a client. */ export declare const RPC_LAUNCH_PROOF_RECORD = "launch_proven"; export declare function launchProofRecordRefusal(id: unknown): Readonly<Record<string, unknown>>; export declare function rpcAuthProof(key: Uint8Array, label: "server" | "client", ...parts: readonly string[]): string; export declare function rpcProofMatches(expected: string, received: unknown): boolean; export type RpcEndpointAuthErrorCode = "unsafe_key_record" | "host_identity_unproven" | "key_publication_failed" | "auth_required" | "auth_failed"; export declare class RpcEndpointAuthError extends Error { readonly code: RpcEndpointAuthErrorCode; constructor(code: RpcEndpointAuthErrorCode, detail: string, options?: ErrorOptions); } export declare function authRecord(value: unknown): Readonly<Record<string, unknown>> | undefined; //# sourceMappingURL=rpc-auth-proof.d.ts.map