UNPKG

@code-yeongyu/senpi

Version:

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

17 lines • 1.08 kB
import type { ResourceLoader } from "../../core/resource-loader.ts"; import type { ToolRegistryBuild } from "../../core/runtime/bootstrap.ts"; import type { LooplessLoopHooks } from "./loopless-loop-hooks.ts"; /** What a runtime knows that a session on the same cwd, flags and settings would decide its tool list from. */ export interface HandToolCatalogSource { readonly registry: ToolRegistryBuild; readonly initialActiveToolNames: readonly string[]; readonly allowedToolNames: ReadonlySet<string> | undefined; readonly resources: Pick<ResourceLoader, "getAgentsFiles" | "getSkills">; } /** * `hooks`, answering `describe_tools` itself: the catalog is no extension loop hook (no handler runs and nothing is * sent), so it is served by any hand, whether or not it is its extensions' home. The scope comes with the payload, as * for every loop hook; `sessionId` and `idle` are checked like theirs. */ export declare function withToolCatalog(hooks: LooplessLoopHooks, source: HandToolCatalogSource): LooplessLoopHooks; //# sourceMappingURL=hand-tool-catalog.d.ts.map