autosnippet
Version:
Extract code patterns into a knowledge base for AI coding assistants
81 lines (80 loc) • 2.33 kB
TypeScript
/**
* ai-analysis.js — AI 分析类工具 (2)
*
* 9. enrich_candidate 结构补齐
* 9b. refine_bootstrap_candidates 内容润色
*
* 注意: summarize_code / extract_recipes 已删除。
* 代码摘要和 Recipe 提取由 Agent LLM 直接推理完成,不再需要专用工具。
*/
import type { ToolHandlerContext } from './_shared.js';
export declare const enrichCandidate: {
name: string;
description: string;
parameters: {
type: string;
properties: {
candidateIds: {
type: string;
items: {
type: string;
};
description: string;
};
};
required: string[];
};
handler: (params: Record<string, unknown>, ctx: ToolHandlerContext) => Promise<{
total: number;
needsEnrichment: number;
needsRecipeFields: number;
fullyComplete: number;
entries: import("../../external/mcp/handlers/types.js").EnrichResultEntry[];
hint: string;
} | {
success: boolean;
errorCode: string | null;
message: string;
data: {
total: number;
needsEnrichment: number;
needsRecipeFields: number;
fullyComplete: number;
entries: import("../../external/mcp/handlers/types.js").EnrichResultEntry[];
hint: string;
} | null;
meta: {
source?: string | undefined;
responseTimeMs?: number | undefined;
version: string;
tool?: string | undefined;
};
} | {
error: string;
}>;
};
export declare const refineBootstrapCandidates: {
name: string;
description: string;
parameters: {
type: string;
properties: {
candidateIds: {
type: string;
items: {
type: string;
};
description: string;
};
userPrompt: {
type: string;
description: string;
};
dryRun: {
type: string;
description: string;
};
};
};
handler: (params: Record<string, unknown>, ctx: ToolHandlerContext) => Promise<{}>;
};