@hivetechs/hive-ai
Version:
Real-time streaming AI consensus platform with HTTP+SSE MCP integration for Claude Code, VS Code, Cursor, and Windsurf - powered by OpenRouter's unified API
56 lines • 2.08 kB
TypeScript
/**
* hive-tools Capture Tool
*
* This tool captures content generated by an AI assistant and saves it to the knowledge base.
* It's particularly useful for storing code analyses and other insights that should be preserved
* for future reference.
*/
import { z } from "zod";
export declare const hiveCaptureToolName = "capture";
export declare const hiveCaptureToolDescription = "Capture insights, code analyses, and other valuable content into the hive-tools knowledge base for future reference.";
export declare const HiveCaptureToolSchema: z.ZodObject<{
content: z.ZodString;
title: z.ZodString;
content_type: z.ZodEnum<["code_analysis", "architecture_insight", "design_pattern", "best_practice", "general"]>;
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
source_path: z.ZodOptional<z.ZodString>;
conversation_id: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
content: string;
title: string;
content_type: "general" | "code_analysis" | "architecture_insight" | "design_pattern" | "best_practice";
tags?: string[] | undefined;
source_path?: string | undefined;
conversation_id?: string | undefined;
}, {
content: string;
title: string;
content_type: "general" | "code_analysis" | "architecture_insight" | "design_pattern" | "best_practice";
tags?: string[] | undefined;
source_path?: string | undefined;
conversation_id?: string | undefined;
}>;
/**
* Main function to run the capture tool
*/
export declare function runHiveCaptureTool(args: z.infer<typeof HiveCaptureToolSchema>): Promise<{
content: {
type: string;
text: string;
}[];
metadata: {
conversation_id: string;
processing_time_ms: number;
content_type: "general" | "code_analysis" | "architecture_insight" | "design_pattern" | "best_practice";
title: string;
tags: string;
source_path: string;
};
} | {
content: {
type: string;
text: string;
}[];
metadata?: undefined;
}>;
//# sourceMappingURL=capture.d.ts.map