/** * Structural host interface consumed by the `build*Tools` builders. * * The tool definitions returned by `DkgNodePlugin.tools()` are pure metadata * whose `execute` callbacks delegate to the plugin's `handle*` methods. To * keep those definitions in cohesive sibling modules without coupling them to * the full `DkgNodePlugin` class, each builder receives a `DkgToolHost` — the * structural subset of `DkgNodePlugin` it actually calls. The `handle*` methods * stay `private` on `DkgNodePlugin` (so they are not part of its public/exported * type surface); `DkgNodePlugin.toolHost()` builds a bound object implementing * this interface and passes it to the builders. No behavior change: builders * simply forward to the same handler methods the inline definitions used to call. */ import type { OpenClawToolResult } from '../types.js'; type ToolArgs = Record; export interface DkgToolHost { handleStatus(): Promise; handleWalletBalances(): Promise; handleListContextGraphs(args: ToolArgs): Promise; handleContextGraphCreate(args: ToolArgs): Promise; handleContextGraphInvite(args: ToolArgs): Promise; handleParticipantAdd(args: ToolArgs): Promise; handleParticipantRemove(args: ToolArgs): Promise; handleParticipantList(args: ToolArgs): Promise; handleJoinRequestList(args: ToolArgs): Promise; handleJoinRequestApprove(args: ToolArgs): Promise; handleJoinRequestReject(args: ToolArgs): Promise; handleSubscribe(args: ToolArgs): Promise; handleQuery(args: ToolArgs): Promise; handleQueryCatalogList(args: ToolArgs): Promise; handleQueryCatalogRun(args: ToolArgs): Promise; handleQueryCatalogSave(args: ToolArgs): Promise; handleFindAgents(args: ToolArgs): Promise; handleSendMessage(args: ToolArgs): Promise; handleReadMessages(args: ToolArgs): Promise; handleInvokeSkill(args: ToolArgs): Promise; handleAssertionCreate(args: ToolArgs): Promise; handleAssertionWrite(args: ToolArgs): Promise; handleAssertionFinalize(args: ToolArgs): Promise; handleAssertionPromote(args: ToolArgs): Promise; handleAssertionPublish(args: ToolArgs): Promise; handleAssertionPullFrom(args: ToolArgs): Promise; handleAssertionDiscard(args: ToolArgs): Promise; handleAssertionImportFile(args: ToolArgs): Promise; handleAssertionQuery(args: ToolArgs): Promise; handleImportArtifactResolve(args: ToolArgs): Promise; handleImportArtifactReadMarkdown(args: ToolArgs): Promise; handleSemanticEnrichmentWrite(args: ToolArgs): Promise; handleAssertionHistory(args: ToolArgs): Promise; handleSubGraphCreate(args: ToolArgs): Promise; handleSubGraphList(args: ToolArgs): Promise; handleMemorySearch(args: ToolArgs): Promise; } export {}; //# sourceMappingURL=tool-host.d.ts.map