UNPKG

@code-yeongyu/senpi

Version:

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

28 lines • 1.04 kB
/** * Host capability that lets an eval cell wait on, inspect and control work the host owns (agent runs, * workpools). The task owner implements it and registers it; codemode only consumes it. Every operation is * fenced by the owning session, the handle id and its run epoch: a ref whose epoch is no longer live is * refused with `eval_handle_stale`, never silently redirected to a successor run. */ export const EVAL_HANDLE_ERROR_CODES = [ "eval_handle_stale", "eval_handle_forbidden", "eval_handle_not_found", "eval_handle_pending", "eval_handle_operation_unsupported", "eval_wait_unavailable", "eval_wait_timeout", "eval_wait_empty", "eval_pool_open", "eval_workpool_failed", ]; export class EvalHandleError extends Error { constructor(code, message, details) { super(`${code}: ${message}`); this.name = "EvalHandleError"; this.code = code; if (details !== undefined) this.details = details; } } //# sourceMappingURL=eval-handle-host.js.map