@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
24 lines • 1.23 kB
TypeScript
import type { AgentTool } from "@earendil-works/pi-agent-core";
import { type CoreBashToolOptions } from "./bash-core.ts";
import type { bashSchema } from "./bash-schema.ts";
import { type CoreEditToolOptions, type editSchema } from "./edit-core.ts";
import { type CoreReadToolOptions, type readSchema } from "./read-core.ts";
import type { ToolMachine } from "./tool-machine.ts";
import { type CoreWriteToolOptions, type writeSchema } from "./write-core.ts";
export interface CoreCodingToolsOptions {
/** The one effect channel of all four tools. */
machine: ToolMachine;
read?: Omit<CoreReadToolOptions, "machine">;
bash?: Omit<CoreBashToolOptions, "machine">;
edit?: Omit<CoreEditToolOptions, "machine">;
write?: Omit<CoreWriteToolOptions, "machine">;
}
/** read, bash, edit and write, in `createCodingTools` order, for a host whose only effect channel is `machine`. */
export type CoreCodingTools = [
AgentTool<typeof readSchema>,
AgentTool<typeof bashSchema>,
AgentTool<typeof editSchema>,
AgentTool<typeof writeSchema>
];
export declare function createCoreCodingTools(cwd: string, options: CoreCodingToolsOptions): CoreCodingTools;
//# sourceMappingURL=coding-tools-core.d.ts.map