Something went wrong. Try again.
fork of prime agent with changes i want but are not upstreamable probqbly (and some fixes)
Something went wrong. Try again.
1.5 kB · 57 lines
TypeScript
at main
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758export { acpMcpToolNames, createAcpMcpToolDefinitions } from "./acp-mcp.js";export { type BashOperations, type BashSpawnContext, type BashSpawnHook, type BashToolDetails, type BashToolInput, type BashToolOptions, createBashTool, createBashToolDefinition, createLocalBashOperations,} from "./bash.js";export { createEditTool, createEditToolDefinition, type EditOperations, type EditToolDetails, type EditToolInput, type EditToolOptions,} from "./edit.js";export { withFileMutationQueue } from "./file-mutation-queue.js";export { createIpythonTool, createIpythonToolDefinition, IpythonKernelProvisioner, type IpythonToolDetails, type IpythonToolInput, type IpythonToolOptions,} from "./ipython.js";export { DEFAULT_MAX_BYTES, DEFAULT_MAX_LINES, formatSize, type TruncationOptions, type TruncationResult, truncateHead, truncateLine, truncateTail,} from "./truncate.js";
import type { AgentTool } from "@earendil-works/pi-agent-core";import type { ToolDefinition } from "../extensions/types.js";import { createIpythonToolDefinition, type IpythonToolOptions } from "./ipython.js";
export type Tool = AgentTool<any>;export type ToolDef = ToolDefinition<any, any>;export type ToolName = "ipython";
export interface ToolsOptions { ipython?: IpythonToolOptions;}
export function createAllToolDefinitions(cwd: string, options?: ToolsOptions): Record<ToolName, ToolDef> { return { ipython: createIpythonToolDefinition(cwd, options?.ipython), };}