import type { AgentToolResult, SourceInfo } from "@earendil-works/pi-coding-agent"; import { CapturedToolCatalog, type CapturedToolEntry } from "../capture/catalog.js"; import type { FabricActionDescriptor, FabricInvocationContext, FabricProvider, FabricProviderListRequest } from "../protocol.js"; export interface CapturedToolInvocationResult { content: AgentToolResult["content"]; text: string; details?: unknown; isError: boolean; structuredContent?: unknown; terminate?: boolean; source: SourceInfo; } export declare class CapturedToolsProvider implements FabricProvider { #private; readonly catalog: CapturedToolCatalog; private readonly omitFromDiscovery; readonly name = "extensions"; readonly description = "Tools captured from other Pi extensions and invoked lazily through Fabric"; constructor(catalog: CapturedToolCatalog, omitFromDiscovery?: (entry: CapturedToolEntry) => boolean); list(request: FabricProviderListRequest, _context: FabricInvocationContext): Promise; describe(actionName: string, _context: FabricInvocationContext): Promise; prepareArguments(actionName: string, args: Record): Record; invoke(actionName: string, args: Record, context: FabricInvocationContext): Promise; /** * Why a captured tool the parent has is unavailable to this child, so the * registry reports the allowlist instead of an unknown action. */ notPermitted(name: string): string | undefined; } //# sourceMappingURL=captured-tools-provider.d.ts.map