UNPKG

autosnippet

Version:

Extract code patterns into a knowledge base for AI coding assistants

16 lines (15 loc) 734 B
/** * RuleRecallStrategy — 将 SkillAdvisor 包装为 RecallStrategy 接口 * * 零 AI 依赖、零延迟,作为离线 fallback 和基础召回来源。 * 复用 SkillAdvisor 的 4 维分析(Guard 违规、Memory 偏好、Recipe 分布、候选积压), * 将 SkillSuggestion 转换为标准 RecommendationCandidate。 */ import type { RecallStrategy, RecommendationCandidate, RecommendationContext } from './types.js'; export declare class RuleRecallStrategy implements RecallStrategy { readonly name = "rule"; readonly type: "rule"; recall(context: RecommendationContext): Promise<RecommendationCandidate[]>; isAvailable(_context: RecommendationContext): boolean; } export default RuleRecallStrategy;