import * as fsPromises from "node:fs/promises"; import type { AgentPlugin } from "../runtime/plugin-types.js"; import type { ToolContext } from "../runtime/types.js"; import type { PluginSpec } from "./registry.js"; type RunCommandOptions = { signal: AbortSignal; timeoutMs: number; notify?: ToolContext["notify"]; }; type RunCommandFn = (command: string, cwd: string, options: RunCommandOptions) => Promise; type ShellPluginOptions = { cwd?: string; allowedPaths?: string[]; fs?: Pick; runCommand?: RunCommandFn; }; export type ShellPluginConfigOptions = Pick; declare const shellPlugin: (options?: ShellPluginOptions) => AgentPlugin; export default shellPlugin; export declare const spec: PluginSpec;