@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
10 lines • 773 B
TypeScript
import type { AgentSession } from "../../core/agent-session.ts";
import type { RpcResponse } from "./rpc-types.ts";
import type { RouterContext } from "./session-router-context.ts";
export declare function error(id: string | undefined, command: string, code: string, data?: Readonly<Record<string, unknown>>): RpcResponse;
export declare function code(cause: unknown): string;
/** The machine-readable half of a refusal, when the registry attached one. */
export declare function detail(cause: unknown): Readonly<Record<string, unknown>> | undefined;
/** The routing id this host answers `session` on, if it holds it. */
export declare function routingIdOf(host: RouterContext, session: AgentSession): string | undefined;
//# sourceMappingURL=session-router-errors.d.ts.map