autosnippet 3.1.5 → 3.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. package/dashboard/dist/assets/{index-D9fV5GGQ.js → index-Ciz4nd_4.js} +2 -2
  2. package/dashboard/dist/index.html +1 -1
  3. package/lib/external/mcp/handlers/bootstrap/MissionBriefingBuilder.js +36 -5
  4. package/lib/external/mcp/handlers/bootstrap/base-dimensions.js +5 -5
  5. package/lib/external/mcp/handlers/bootstrap/pipeline/EpisodicMemory.js +1 -1
  6. package/lib/external/mcp/handlers/bootstrap/pipeline/ToolResultCache.js +1 -1
  7. package/lib/external/mcp/handlers/bootstrap/pipeline/dimension-configs.js +2 -2
  8. package/lib/external/mcp/handlers/bootstrap/pipeline/noAiFallback.js +1 -1
  9. package/lib/external/mcp/handlers/bootstrap/shared/dimension-sop.js +670 -0
  10. package/lib/external/mcp/handlers/bootstrap/shared/dimension-text.js +2 -2
  11. package/lib/external/mcp/handlers/bootstrap/shared/skill-generator.js +86 -10
  12. package/lib/external/mcp/handlers/system.js +21 -2
  13. package/lib/external/mcp/tools.js +23 -10
  14. package/lib/platform/ios/xcode/XcodeIntegration.js +2 -2
  15. package/lib/service/candidate/CandidateAggregator.js +52 -0
  16. package/lib/service/chat/tools/ai-analysis.js +3 -3
  17. package/lib/service/chat/tools/ast-graph.js +2 -2
  18. package/lib/shared/RecipeReadinessChecker.js +13 -5
  19. package/package.json +1 -1
  20. package/scripts/migrate-md-to-knowledge.mjs +5 -2
  21. package/skills/autosnippet-analysis/SKILL.md +5 -5
  22. package/skills/autosnippet-coldstart/SKILL.md +75 -60
  23. package/skills/autosnippet-concepts/SKILL.md +2 -2
  24. package/skills/autosnippet-guard/SKILL.md +3 -3
  25. package/skills/autosnippet-intent/SKILL.md +1 -1
  26. package/templates/copilot-instructions.md +18 -2
@@ -1,4 +1,4 @@
1
- import{r as o,j as e,z as ka,l as sl,h as Ca,o as Sa,m as Aa,M as al,a as ll,R as St,F as rl,b as nl}from"./vendor-CEnWn7aV.js";import{a as ss}from"./axios-C0Zqfgkc.js";import{Z as Ze,L as Da,S as ol,B as rs,H as as,C as il,a as ct,W as cl,G as $s,b as et,c as st,d as ws,e as dl,f as ul,D as Ia,g as ns,P as pl,h as Lt,i as xl,F as kt,j as pt,k as Ls,l as rt,M as Mt,m as ml,n as Bs,o as hl,p as gl,q as Je,E as os,r as bl,s as fl,U as Ra,t as yl,u as wt,X as Ye,v as Me,w as Ct,R as Ta,x as lt,y as Gs,A as Ea,z as yt,I as jl,J as Pa,K as Gt,N as jt,O as vl,Q as Nl,T as wl,V as kl,Y as is,_ as Cl,$ as Sl,a0 as La,a1 as Al,a2 as Dl,a3 as Pt,a4 as nt,a5 as ls,a6 as gt,a7 as Hs,a8 as Cs,a9 as Ht,aa as Ss,ab as qs,ac as vt,ad as Ma,ae as Xt,af as Il,ag as Qs,ah as Xs,ai as fs,aj as Fa,ak as cs,al as ys,am as qt,an as Zs,ao as Ot,ap as Rl,aq as za,ar as Ms,as as Tt,at as Tl,au as _a,av as Fs,aw as $a,ax as El,ay as Pl,az as zs,aA as Ll,aB as Os,aC as Ml,aD as Fl,aE as zl,aF as _l,aG as $l}from"./icons-eQ_rWCus.js";import"./yaml-qRaU8Ldn.js";(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))l(d);new MutationObserver(d=>{for(const c of d)if(c.type==="childList")for(const u of c.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&l(u)}).observe(document,{childList:!0,subtree:!0});function a(d){const c={};return d.integrity&&(c.integrity=d.integrity),d.referrerPolicy&&(c.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?c.credentials="include":d.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function l(d){if(d.ep)return;d.ep=!0;const c=a(d);fetch(d.href,c)}})();const _s={common:{save:"保存",saving:"保存中...",saved:"已保存",cancel:"取消",confirm:"确认",delete:"删除",edit:"编辑",close:"关闭",copy:"复制",copied:"已复制",loading:"加载中...",retry:"重试",refresh:"刷新页面",back:"返回",search:"搜索",noData:"暂无数据",operationFailed:"操作失败",saveFailed:"保存失败",deleteFailed:"删除失败",loadFailed:"加载失败",areYouSure:"Are you sure?",yes:"是",no:"否",all:"全部",none:"无",preview:"预览",apply:"应用",applying:"应用中...",stop:"停止",export:"导出",import:"导入",more:"更多",collapse:"折叠",expand:"展开"},sidebar:{recipes:"Recipes",moduleExplorer:"Modules",candidates:"候选 ({count})",batchManage:"批量管理",depGraph:"依赖关系",knowledgeGraph:"知识图谱",guard:"代码审计",skills:"Skills",repoWiki:"Wiki",aiAssistant:"AI 助手",help:"使用说明",collapseNav:"折叠导航",expandNav:"展开导航",roleDeveloper:"开发者",roleAgent:"Agent",roleChatAgent:"ChatAgent",modeLogin:"登录",modeProbe:"探针",logout:"登出",tokenLabel:"7日 Token",tokenCalls:"次调用",tokenCallsFull:"{count} 次 AI 调用"},header:{searchPlaceholder:"搜索知识库...",semanticSearch:"语义搜索",semanticSearchTitle:"语义搜索 (AI 向量检索)",semanticSearchFailed:"语义搜索失败。请确保已运行 asd embed 构建索引。",aiSwitchFailed:"切换 AI 失败,请检查项目根目录是否可写。",aiNotConfigured:"AI 未配置 — 点击设置 LLM",configureLlm:"配置 LLM",clickSwitchAi:"点击切换 AI 提供商",switchAi:"切换 AI",editEnvConfig:"修改 .env 配置",closeAiChat:"关闭 AI 对话",openAiChat:"打开 AI 对话",aiChat:"AI 对话",newRecipe:"新建 Recipe",syncSnippets:"同步 Snippets",langSwitch:"中 / EN"},login:{title:"AutoSnippet",subtitle:"连接开发者、AI 与项目知识库",heading:"登录 Dashboard",username:"用户名",password:"密码",usernamePlaceholder:"输入用户名",passwordPlaceholder:"输入密码",usernameRequired:"请输入用户名",passwordRequired:"请输入密码",loginFailed:"登录失败,请重试",loggingIn:"登录中...",loginBtn:"登录",envHint:"登录功能由 VITE_AUTH_ENABLED 环境变量控制"},pagination:{showing:"显示 {start}-{end},共 {total} 条",perPage:"每页",unit:"条",firstPage:"第一页",prevPage:"上一页",nextPage:"下一页",lastPage:"最后一页"},recipes:{title:"Recipe 知识库",sortNewest:"最新",sortAlpha:"字母",sortQuality:"质量",filterAll:"全部类型",filterSnippet:"仅 Snippet",filterKnowledge:"仅 Knowledge",searchPlaceholder:"搜索 Recipes...",totalCount:"共 {count} 条",noResults:"没有匹配的 Recipe",batchActions:"批量操作",selectAll:"全选",deselectAll:"取消全选",batchDelete:"删除选中",batchDeleteConfirm:"确定删除选中的 {count} 条 Recipe?",batchDeleteDone:"已删除 {count} 条",qualityAuthorityScore:"权威分",qualityExcellent:"Excellent",qualityGreat:"Great",qualitySolid:"Solid",qualityGood:"Good",qualityBasic:"Basic",knowledgeType:"类型",typeSnippet:"Snippet",typeKnowledge:"Knowledge",sourceLabel:"来源",sourceBootstrap:"bootstrap",sourceManual:"manual",sourceAiScan:"ai-scan",sourceExtract:"extract",sourceClipboard:"clipboard",editRecipe:"编辑",deleteRecipe:"删除",pushToCandidate:"推入候选",recipeDetail:"Recipe 详情",editBtn:"Edit",description:"描述",markdown:"Markdown",code:"代码",designRationale:"设计原理",steps:"实施步骤",codeChanges:"代码变更",validation:"验证方法",tags:"标签",constraints:"约束条件",guardRules:"Guard 规则",boundaryConstraints:"边界约束",preconditions:"前置条件",sideEffects:"副作用",relations:"关系图 (Relations)",headers:"Headers",noContent:"No content",semanticResults:"语义搜索结果",semanticSimilarity:"相似度",insertToFile:"插入到文件",viewInRecipes:"在 Recipes 中查看",reasoning:"推理依据",sourceColon:"来源:",confidenceColon:"置信度:",alternativesLabel:"备选:",qualityGrade:"质量评级",qualityCompleteness:"完整性",qualityAdaptation:"适配度",qualityDocumentation:"文档度",usageCount:"使用 {count}",emptyValue:"(空)",verificationMethod:"方法:",verificationExpected:"预期:",knowledgeTypes:{codePattern:"代码模式",architecture:"架构设计",bestPractice:"最佳实践",codeStandard:"代码规范",callChain:"调用链路",rule:"规则"}},candidates:{title:"Candidate 审核池",tabs:{pending:"待审",approved:"已批准",rejected:"已拒绝"},sortNewest:"最新优先",sortOldest:"最早优先",sortConfidence:"按置信度",searchPlaceholder:"搜索候选...",totalCount:"共 {count} 条待审",noResults:"没有待审候选",noPending:"已全部审核",confidenceHigh:"高",confidenceMedium:"中",confidenceLow:"低",sourceBootstrap:"冷启动",sourceManual:"manual",sourceAiScan:"ai-scan",sourceExtract:"extract",sourceClipboard:"clipboard",sourceSignal:"signal",approve:"批准",reject:"拒绝",approveAndSave:"批准并保存为 Recipe",batchApprove:"批量批准 ({count})",batchReject:"批量拒绝 ({count})",batchDeleteConfirm:"确定移除选中的 {count} 条候选?",batchDeleteDone:"已删除 {count} 条",approveSuccess:"已批准为 Recipe",rejectSuccess:"已拒绝",aiRefine:"AI 润色",viewDetail:"查看详情",selectAll:"全选",deselectAll:"取消全选",silent:"静默",expandedDetail:"展开详情",collapse:"收起",qualityDimensions:"质量维度",authorityScore:"权威分",trigger:"Trigger",category:"Category",language:"Language",path:"Path",description:"描述",code:"代码",markdown:"Markdown",rationale:"设计原理",tags:"标签",headers:"Headers",confidence:"置信度",source:"来源",createdAt:"创建时间",updatedAt:"更新时间",groupByTarget:"按 Target 分组",clearGroup:"确定移除「{name}」下的全部候选?",clearGroupDone:"已移除 {name} 下的全部候选",coldStartTitle:"冷启动:结构收集 + 9 维度 Candidate 创建(与 MCP 一致)",enrichTitle:"① 结构补齐:填充缺失的 rationale / knowledgeType / complexity / scope / steps / constraints(只填空不覆盖,建议先于润色执行)",refineTitle:"② 内容润色:改善 summary 描述、补充架构洞察、推断 relations 关联、调整 confidence 评分(逐条 AI 精炼,建议在结构补齐之后执行)",withCode:"(含代码 {count})",emptyHint:"点击下方按钮冷启动知识库,或使用 CLI 命令手动创建",fullScanBtn:"全量扫描 ·",clipboardCreate:"从剪贴板创建",scanningHint:"各维度知识正在后台提取并接受 AI 审查,完成后候选内容将自动展示",scannedAt:"扫描于 {time}",similarOnly:"只看相似",resetFilters:"重置",approveCurrentPage:"当前页进入审核",removeCurrentPage:"移除当前页",deleteAll:"全部删除",overallScore:"综合 {score}",similarPrefix:"相似",linesCount:"{count} 行",enrichTitleSingle:"① 结构补齐:填充缺失的语义字段(rationale / knowledgeType / complexity 等)",refineTitleSingle:"② 内容润色:改善描述、补充洞察、推断关联(支持自定义提示词)",projectProfile:"项目特写",recipeCompare:"Recipe 对比",refineEnhanced:"润色增强信息",agentNotes:"Agent 笔记:",similarRecipe:"相似 Recipe",similarWith:"与 {name} 相似 {score}%",enrichShort:"补齐",refineShort:"润色",enrichTitleBottom:"① 结构补齐",refineTitleBottom:"② 内容润色",timeJustNow:"刚刚",timeMinutesAgo:"{n} 分钟前",timeHoursAgo:"{n} 小时前",timeDaysAgo:"{n} 天前",confidenceHighLabel:"高",confidenceMediumLabel:"中",confidenceMediumLowLabel:"中低",confidenceLowLabel:"低",sourceAiScanLabel:"AI 全量扫描",sourceMcpLabel:"MCP 提交",sourceManualLabel:"手动创建",sourceFileWatcherLabel:"文件监听",sourceClipboardLabel:"剪贴板",sourceSignalLabel:"信号",sourceSubmitCheckLabel:"AI 审查提交"},knowledge:{title:"批量管理",lifecycle:"生命周期",lifecycleCandidate:"Candidate",lifecycleRecipe:"Recipe",lifecycleArchived:"Archived",searchPlaceholder:"搜索知识条目...",totalCount:"共 {count} 条",noResults:"无匹配条目",batchActions:"批量操作",batchPromote:"批量晋升",batchDemote:"批量降级",batchArchive:"批量归档",batchDelete:"批量删除",batchDeleteConfirm:"确定删除选中的 {count} 条知识?",batchDeleteDone:"已删除 {count} 条",selectAll:"全选",deselectAll:"取消全选",detail:"知识详情",detailContent:"内容",detailQuality:"质量",detailMeta:"元数据",qualityCompleteness:"完整度",qualityClarity:"清晰度",qualityRelevance:"关联性",qualityAccuracy:"精确度",qualityUsability:"可用性",authorityScore:"权威分",source:"来源",category:"分类",language:"语言",createdAt:"创建时间",updatedAt:"更新时间",path:"路径",trigger:"触发词",lifecyclePending:"待审核",lifecycleActive:"已发布",lifecycleDeprecated:"已废弃",actionPublish:"发布",actionDeprecate:"废弃",actionReactivate:"重新激活",sourceBootstrap:"AI 全量扫描",sourceMcp:"MCP 提交",sourceManual:"手动创建",sourceFileWatcher:"文件监听",sourceClipboard:"剪贴板",sourceCli:"CLI",sourceAgent:"AI Agent",sourceSubmitCheck:"AI 审查提交",allCategories:"所有分类",selectedCount:"已选 {count} 条",batchPublish:"批量发布",quickBatchPublish:"快速批量发布",batchPublishResult:"发布 {success} 条,失败 {fail} 条",batchPublishFailed:"批量发布失败",batchPublishComplete:"批量发布完成",noAutoApprovable:"当前没有可自动通过的待审核条目",noPublishable:"无可发布项",autoPublishResult:"已发布 {count} 条可自动通过的条目",autoApprovable:"可自动通过",clearFilters:"清除筛选条件",loadFailed:"加载知识条目失败",operationSuccess:"操作成功",deleteConfirmMsg:"确定删除「{title}」?此操作不可恢复。",deleteSuccess:"已删除「{title}」",deleteFailed:"删除失败",deprecateReasonPrompt:"请输入废弃原因:",rejectionReason:"驳回原因",summary:"摘要",relatedKnowledge:"关联知识",reasoning:"推理依据",confidence:"置信度",alternatives:"备选",qualityGrade:"质量评级",qualityAdaptation:"适配度",qualityDocumentation:"文档度",qualityCompletionLabel:"完整性",markdownDoc:"Markdown 文档",importHeaders:"导入头文件",codePattern:"代码 / 标准用法",designRationale:"设计原理",implementSteps:"实施步骤",constraintsLabel:"约束条件",aiInsight:"AI 洞察",lifecycleHistoryLabel:"生命周期历史",scope:"范围",scopeUniversal:"通用",scopeProject:"项目级",scopeModule:"模块级",complexity:"复杂度",complexityAdvanced:"高级",complexityIntermediate:"中级",complexityBeginner:"初级",sourceFile:"源文件",prev:"上一条",next:"下一条",narrow:"收窄",widen:"展宽",guardHits:"Guard",adoptions:"采纳",searchHits:"搜索",statViews:"浏览",statApplications:"应用",published:"发布"},knowledgeGraph:{title:"知识图谱",nodeTypes:"节点类型",nodeRecipe:"Recipe",nodeModule:"Module",nodeFile:"File",nodeSymbol:"Symbol",relationInherits:"继承",relationImplements:"实现",relationCalls:"调用",relationDependsOn:"依赖",relationDataFlow:"数据流",relationConflicts:"冲突",relationExtends:"扩展",relationAssociates:"关联",relationContains:"包含",relationImports:"导入",relationOverrides:"覆盖",relationComposedOf:"组合",relationReferencedBy:"被引用",relationTestedBy:"被测试",relationDocumentedIn:"被记录",tools:"工具",zoomIn:"放大",zoomOut:"缩小",resetView:"重置视图",fitView:"适应画布",toggleLabels:"显示/隐藏标签",nodeDetail:"节点详情",relatedNodes:"关联节点",noSelection:"点击节点查看详情",legend:"图例",searchPlaceholder:"搜索节点...",noResults:"没有匹配的节点",totalNodes:"共 {count} 个节点",totalEdges:"共 {count} 条边",loadFailed:"加载知识图谱失败",empty:"知识图谱为空",emptyDesc:"当前没有 Recipe 之间的关系数据。点击下方按钮让 AI 自动分析已有 Recipe 之间的潜在关系(requires / extends / enforces / calls 等)。",discoverRelations:"AI 发现关系",discovering:"AI 分析中…",refresh:"刷新",retry:"重试",statsLabel:"{nodes} 节点 · {edges} 关系",cancelSelection:"取消选中",outEdges:"出边(依赖)",inEdges:"入边(被依赖)",none:"无",relationRequires:"需要",relationEnforces:"约束",relationPrerequisite:"前置",relationReferences:"引用",relationAlternative:"替代",relationDeprecatedBy:"废弃",relationSolves:"解决",discoverAnalyzing:"AI 分析中…(已运行 {elapsed}s)",discoverPollTimeout:"轮询超时,任务可能仍在后台运行。请稍后刷新页面查看结果。",discoverNoResults:"分析完成,共检查 {pairs} 对 Recipe,未发现关系。待 Recipe 数量增加后可再次尝试。",discoverBatchErrors:"分析完成,但 {errors} 个批次 AI 调用失败,未发现关系。请检查 AI Provider 配置。",discoverSuccess:"发现 {count} 条关系(共分析 {pairs} 对{failMsg})",discoverBatchFailed:",{count} 个批次失败",discoverAiNotConfigured:"AI 服务未配置: {error}",discoverTimeout:"任务超时: {error}",discoverFailed:"发现失败: {error}",discoverRunning:"AI 分析仍在进行中…",discoverStarted:"AI 分析已启动,正在后台运行…",discoverInsufficientRecipes:"Recipe 数量不足,无法分析",discoverPreviousTimeout:"上次任务超时,请重试",discoverAiUnavailable:"AI 服务不可用: {error}",discoverStartFailed:"启动失败: {error}",unknownError:"未知错误",discoverTooltip:"AI 自动发现 Recipe 关系"},guard:{title:"Guard 审计",summary:"概览",totalViolations:"共 {count} 项违规",noViolations:"没有违规项",searchPlaceholder:"搜索规则或文件...",severityError:"错误",severityWarning:"警告",severityInfo:"信息",ruleId:"规则 ID",file:"文件",line:"行",message:"消息",severity:"严重性",statusOpen:"待处理",statusResolved:"已解决",statusIgnored:"已忽略",resolve:"标记为已解决",ignore:"忽略",reopen:"重新打开",aiGenRule:"AI 生成规则",aiGenRuleDesc:"描述你想要检测的模式,AI 将生成 Guard 规则",aiGenPlaceholder:"例: 禁止在 View 中直接调用网络请求",aiGenerating:"AI 生成中...",aiGenSuccess:"规则已生成",aiGenFailed:"规则生成失败",refreshAudit:"刷新审计",refreshing:"审计刷新中...",refreshSuccess:"审计已刷新",reportIssue:"提交误报",clearHistory:"清空历史",clearConfirm:"确定清空所有 Guard 违反记录?",addRuleValidation:"请填写规则 ID、说明、正则和至少一种语言",patternLabel:"正则(对每行匹配,JSON 中反斜杠需双写)",languagesLabel:"语言",dimensionLabel:"审查规模",noteLabel:"备注",allLanguages:"所有语言",noMatchingRules:"无匹配规则,请调整筛选条件",violationRecords:"违反记录(共 {runs} 次运行,{count} 处违反)",dimFile:"同文件",dimTarget:"同 target",dimProject:"同项目",rationale:"技术原因",fixSuggestion:"修复建议",sourceRecipe:"来源 Recipe",categorySafety:"安全",categoryCorrectness:"正确性",categoryPerformance:"性能",categoryStyle:"风格",category:"分类",currentProject:"当前项目",generatedRuleId:"已生成规则 ID",dimNoLimit:"不限制",notePlaceholder:"仅作简单模式提示",copyFixSuggestion:"复制修复建议",codeLevelConfigTip:"Code-Level 和 Cross-File 检查(如过度 unwrap、循环 import 等)可通过配置禁用或调整阈值。",codeLevelConfigPath:"配置路径:config/default.json → guard.disabledRules / guard.codeLevelThresholds",tableHeaders:{rule:"规则",file:"文件",line:"行号",message:"描述",severity:"级别",status:"状态",actions:"操作"}},skills:{title:"Skills 管理",searchPlaceholder:"搜索 Skills...",totalCount:"共 {count} 条",noResults:"没有匹配的 Skill",addSkill:"新增 Skill",editSkill:"编辑 Skill",deleteSkill:"删除 Skill",deleteConfirm:"确定删除此 Skill?",deleteSuccess:"已删除",saveSuccess:"已保存",skillName:"名称",skillNamePlaceholder:"输入 Skill 名称",skillDescription:"描述",skillDescPlaceholder:"输入 Skill 描述",skillTrigger:"触发器",skillTriggerPlaceholder:"输入触发条件",skillAction:"动作",skillActionPlaceholder:"输入动作内容",skillEnabled:"已启用",skillDisabled:"已禁用",toggleEnable:"启用/禁用",aiRecommend:"AI 推荐",aiRecommendDesc:"基于项目分析,AI 推荐以下 Skills",aiRecommending:"AI 分析中...",aiRecommendSuccess:"已推荐 {count} 条",aiRecommendFailed:"推荐失败",acceptRecommend:"采纳",rejectRecommend:"忽略",bulkAccept:"全部采纳",signalBadge:"信号",category:"类别",priority:"优先级",priorityHigh:"高",priorityMedium:"中",priorityLow:"低",subtitle:"Agent 技能文档 — 指导 AI 如何正确使用 AutoSnippet 工具",fetchFailed:"获取 Skills 列表失败",loadError:"不存在或读取出错",loadSkillFailed:"加载 Skill 失败",updateSuccess:"更新成功",updateFailed:"更新 Skill 失败",deleteFailed:"删除 Skill 失败",createSuccess:"创建成功",createFailed:"创建 Skill 失败",createAddedToKB:"已创建并加入知识库",filterProject:"项目级",filterBuiltin:"内置",noRecommendations:"当前暂无推荐。继续使用后会积累更多信号。",aiRecommendTooltip:"基于使用模式分析推荐 Skill",creating:"创建中",useCase:"适用",chars:"字符",related:"相关",confirmDelete:"确认删除",deleteSkillConfirmMsg:'删除 Skill "{name}"?此操作不可撤销。',selectToView:"选择左侧 Skill 查看详情",checkGenerated:"请检查并确认生成的内容",aiGenerated:"AI 已生成 Skill",aiGenFailed:"AI 生成失败",fillRequired:"请填写名称、描述和内容",savedToKB:"已保存到知识库",aiGenMode:"AI 生成",manualMode:"手动填写",describeSkill:"描述你想创建的 Skill",aiGeneratingContent:"AI 正在生成...",generateSkill:"生成 Skill",skillContent:"Skill 文档内容",createdBy:{manual:"手动创建","user-ai":"AI 协助创建","system-ai":"自动创建","external-ai":"外部 AI 创建"}},depGraph:{title:"依赖关系图",searchPlaceholder:"搜索模块...",noResults:"没有匹配的模块",totalModules:"共 {count} 个模块",totalDeps:"共 {count} 条依赖",layout:"布局",layoutTree:"树形",layoutForce:"力导向",layoutCircular:"环形",zoomIn:"放大",zoomOut:"缩小",resetView:"重置视图",fitView:"适应画布",nodeDetail:"模块详情",dependencies:"依赖",dependents:"被依赖",legend:"图例",noSelection:"点击节点查看详情",depTypes:{direct:"直接依赖",transitive:"传递依赖",devOnly:"开发依赖"},refresh:"刷新",retry:"重试",noDataTitle:"当前项目内未扫描到模块依赖关系。",noDataDesc:"请确保项目包含模块定义文件(go.mod / package.json / Package.swift / build.gradle 等),然后点击 Refresh 重新扫描。",filterAll:"全部",filterInternal:"内部包",filterExternal:"外部依赖",packages:"包",packageList:"包列表",depRelations:"依赖关系(小图)",depRelationsDesc:"主图不显示连线,点击节点可在浮窗查看该包依赖;此处列出全部 From → To。",labelExternal:"外部",labelInternal:"内部",labelIndirect:"间接",projectRoot:"项目根",close:"关闭",none:"无",visualization:"模块依赖结构可视化",targetHint:"Target 级节点格式:"},bootstrap:{title:"冷启动进度",pipelineSteps:{collecting:"收集项目结构",scanning:"扫描源代码",analyzing:"AI 分析",enriching:"知识增强",indexing:"建立索引"},taskStatus:{pending:"等待中",running:"执行中",completed:"已完成",failed:"失败",skipped:"已跳过"},stats:{totalFiles:"文件总数",totalTargets:"Target 数",totalRecipes:"Recipe 数",totalTime:"总耗时",aiCalls:"AI 调用数"},notifications:{started:"冷启动已开始",completed:"冷启动完成",failed:"冷启动失败",partialComplete:"部分完成"},retryFailed:"重试失败任务",viewDetails:"查看详情",dimLabels:{architecture:"架构与设计",bestPractice:"规范与实践",eventAndDataFlow:"事件与数据流",objcDeepScan:"深度扫描",agentGuidelines:"Agent 注意事项",bootstrap:"Bootstrap",codeStandard:"代码规范",codePattern:"设计模式",projectProfile:"项目特征",categoryScan:"Category 分类方法"},pipelineLabels:{"project-profile":"项目概貌","objc-deep-scan":"深度扫描(常量/Hook)","category-scan":"基础类分类方法扫描","code-standard":"代码规范",architecture:"架构模式","code-pattern":"设计模式","event-and-data-flow":"事件与数据流","best-practice":"最佳实践","agent-guidelines":"Agent 开发注意事项"},statusLabels:{skeleton:"等待中",filling:"填充中",completed:"已完成",failed:"失败"},allCompleted:"全部完成",completedWithErrors:"完成(有错误)",elapsed:"已用",estimatedRemaining:"预计剩余",toolCalls:"工具调用",dimensions:"{done}/{total} 维度",notifySuccess:"{completed} 个维度全部填充成功",notifyPartial:"{completed}/{total} 成功,{failed} 失败",coldStartComplete:"冷启动完成",close:"关闭",reviewPipeline:"AI 审查管线",reviewRounds:{round1Label:"资格审查",round1Desc:"过滤误报 · 识别合并",round2Label:"内容精炼",round2Desc:"AI 改写摘要 · 动态置信度",round3Label:"去重 & 关系",round3Desc:"语义去重 · 关系推断"},round1Done:"保留 {kept} · 合并 {merged} · 丢弃 {dropped}",round2Progress:"{current}/{total} 条",round2Done:"已精炼 {refined}/{total} 条",round3Done:"去重后 {afterDedup} 条 · {relationsFound} 条关系",noMatch:"✓ 无匹配内容",featuresOnly:"✓ {sourceCount} 项特征",featuresAndCandidates:"✓ {sourceCount} 项特征 · {extracted} 条候选",candidatesOnly:"✓ {extracted} 条候选"},wiki:{title:"Repo Wiki",sidebar:"Wiki",fileCount:"{count} 篇",searchPlaceholder:"搜索文件...",generating:"文件生成中,新文档将自动出现…",backToList:"返回文件列表",aiBadge:"AI 增强",copySuccess:"已复制",copyBtn:"复制",loadFailed:"加载失败",incrementalUpdate:"增量更新",fullGeneration:"全量生成",genStarted:"Wiki 生成已启动",genFailed:"生成失败",selectPlaceholder:"从左侧文件树选择,或使用下方快捷入口",phases:{outline:"大纲",content:"内容",review:"审校"},fileTypes:{overview:"概述",module:"模块",api:"API",guide:"指南"},synced:"同步",wikiGenerating:"Wiki 正在生成中",outOfDateHint:"检测到代码变更,Wiki 可能已过期,建议增量更新",emptyTitle:"尚未生成 Repo Wiki",emptyDesc:"Wiki 在冷启动时自动全量生成,后续通过增量更新保持同步",emptyHint:"运行 asd setup 冷启动 · asd wiki --update 增量更新",quickOverview:"项目概述",quickOverviewDesc:"项目信息、技术栈与数据统计",quickArch:"架构总览",quickArchDesc:"模块依赖图、项目结构分析",quickStart:"快速上手",quickStartDesc:"构建、运行与入口分析",quickProtocols:"协议与组件",quickProtocolsDesc:"核心协议、委托和组件关系",selectFile:"选择一个文件开始阅读",lastGenerated:"最后生成",duration:"耗时",incrementalUpdating:"增量更新中...",loadFailedDesc:"无法读取文件内容。"},aiChat:{title:"AI Assistant",emptyTitle:"开始与 AI 对话",emptyDesc:"你可以询问项目相关问题,AI 将帮你分析代码、推荐模式。",inputPlaceholder:"输入你的问题...",inputHint:"Enter 发送 · Shift+Enter 换行",thinking:"AI 思考中...",analyzing:"AI 正在分析...",topicPanel:"话题列表",newTopic:"开启新话题",deleteTopic:"删除话题",deleteTopicConfirm:"确定删除此话题?",quickPrompts:{analyzeArch:"分析项目架构",findDuplicates:"查找重复代码",suggestOptimize:"推荐优化方向"},timeJustNow:"刚刚",timeMinutesAgo:"{n} 分钟前",timeHoursAgo:"{n} 小时前",timeDaysAgo:"{n} 天前",codeBlock:"代码块",diffView:"变更对比",diffBefore:"Before",diffAfter:"After",contextLabel:"AI Context / 项目特写",copyCode:"复制代码",topicRecords:"话题记录",noHistory:"暂无聊天记录",autoSaveHint:"开始对话后自动保存",topicCount:"{count} 个话题 · 本地存储",askAnything:"询问任何关于项目的问题",startChat:"开始 AI 对话",emptyDescLong:"询问关于你项目的任何问题 — 代码分析、架构建议、优化方向等。",aiAssistant:"AI 助手",messageCount:"{n} 条",requestFailed:"请求失败: {error}",cancelled:"(已取消)",expandTopics:"展开话题列表",diffEmpty:"(空)",quickPromptSummarize:"总结项目概况"},help:{title:"使用说明",gettingStarted:"快速开始",commands:"命令参考",faq:"常见问题",tokenUsage:"Token 用量",about:"关于",pageTitle:"AutoSnippet V3 使用说明",subtitle:"连接开发者、AI 与项目知识库:ChatAgent 智能对话 · Skills 开放平台 · 知识库持续生长",techSpecs:"Node.js ≥ 20 · 13 Skills · AI 可自建 · 16 MCP 工具 · ChatAgent 对话 · 4 层检索管线",viewGithub:"查看 GitHub",fullDocs:"完整文档",tokenUsageLast7Days:"Token 用量(近 7 日)",quickStart:"快速开始",coreConcepts:"核心概念",coreFeatures:"核心功能",editorDirectives:"编辑器指令",cursorIntegration:"Cursor AI 集成",v3Architecture:"V3 架构",cliReference:"命令行速查",step1Title:"安装与初始化",step2Title:"启动 Dashboard",step2Desc:"启动 HTTP API + Dashboard + FileWatcher",step3Title:"IDE 集成",step3Desc:"安装 MCP + Skills + Cursor Rules",step4Title:"创建第一个 Recipe",step4Desc1:"Dashboard → New Recipe",step4Desc2:"Use Copied Code → AI 填充 → 保存",threeRoles:"三大角色",roleColumn:"角色",responsibilityColumn:"职责",capabilityColumn:"能力",roleDeveloper:"开发者",roleCursorAgent:"Cursor Agent",roleChatAgent:"ChatAgent",developerResp:"审核与决策、维护项目标准",cursorAgentResp:"按规范生成代码、检索知识库",chatAgentResp:"提取、摘要、扫描、审查",coreComponents:"核心组件",bootstrapLabel:"Bootstrap(冷启动)",bootstrapDesc:"9 维度自动知识提取引擎",candidatesLabel:"Candidates(候选)",candidatesDesc:"待审核的 Recipe 草案",recipeLabel:"Recipe(配方)",recipeDesc:"Markdown 知识文档(Source of Truth)",chatAgentLabel:"ChatAgent(智能对话)",chatAgentDesc:"多 Agent 协作架构,可持续扩展",searchPipelineLabel:"4 层检索管线",searchPipelineDesc:"多模式语义搜索引擎",guardLabel:"Guard(代码审查)",guardDesc:"知识库驱动的代码审查",knowledgeLoop:"知识库闭环",loopStep1:"扫描提取",loopStep1Sub:"AI/Cursor",loopStep2:"人工审核",loopStep2Sub:"Dashboard",loopStep3:"知识沉淀",loopStep3Sub:".md 落盘",loopStep4:"智能使用",loopStep4Sub:"Cursor/Xcode",loopStep5:"持续优化",loopStep5Sub:"asd sync",knowledgeBuild:"知识库构建",semanticSearchLabel:"语义检索",codeAudit:"代码审查(Audit)",dataSync:"数据同步",usageExamples:"使用示例",exampleSearchKB:"检索知识库",exampleSearchKBDesc:'对 Cursor 说:"查找网络请求错误处理的代码"',exampleBatchScan:"批量扫描",exampleBatchScanDesc:'对 Cursor 说:"扫描 NetworkModule,生成 Recipes 到候选"',exampleSubmitCode:"提交代码",exampleSubmitCodeDesc:'对 Cursor 说:"把这段代码保存为 Recipe"',skills10:"10 个 Skills",mcp16:"16 个 MCP 工具(V3 参数化统合)",bootstrapEngine:"Bootstrap 冷启动引擎",bootstrapEngineDesc:"3 步完成知识库从 0 → 1:",fourLayerPipeline:"4 层检索管线",fourLayerPipelineDesc:"多信号融合的精准检索:",chatAgentSystem:"ChatAgent 对话系统",chatAgentSystemDesc:"多 Agent 协作架构,可持续扩展:",fiveEntryChannels:"五个入口通道",initAndEnv:"初始化与环境",kbManagement:"知识库管理",searchAndAudit:"搜索与审查",maintenanceUpgrade:"维护与升级",footerHint:"需要更详细的说明?查看 {link} 或运行 {cmd} 检查环境",footerGithubReadme:"GitHub README",mcpWriteNote:"写操作工具(submit_knowledge、guard、bootstrap 等)通过 Gateway 权限 / 宪法 / 审计三重保护。",editorDirectivesNote:"需先运行 asd watch 或 asd ui;支持快捷写法 asc / ass / asa",createDirective:"创建 Recipe/Snippet",searchDirective:"搜索并插入",auditDirective:"代码审查",includeDirective:"自动注入头文件/模块",developerCap:'Dashboard 审核候选、保存 Recipe;Snippet 补全、<code class="bg-slate-100 px-1 rounded">// as:search</code>;运行 <code class="bg-slate-100 px-1 rounded">asd ui</code>',cursorAgentCap:"13 个 Skills 理解规范;16 个 MCP 工具按需检索、提交候选;写操作经 Gateway 审核",chatAgentCap:'<code class="bg-slate-100 px-1 rounded">asd ais</code> 批量扫描;分析剪贴板;Guard 审查;Dashboard RAG',bootstrapBullet1:"扫描项目模块 + AST 分析源码",bootstrapBullet2:"启发式提取 → AI 精炼 → 生成 Candidate",bootstrapBullet3:'MCP 工具:<code class="bg-green-100 px-1 rounded">bootstrap</code>(operation: knowledge / refine / scan)',candidatesBullet1:"来源:AI 扫描、Cursor、剪贴板、Dashboard",candidatesBullet2:"审核后入库为 Recipe,确保质量",candidatesBullet3:"Reasoning 字段记录 AI 推理过程",recipeBullet1:'位置:<code class="bg-blue-100 px-1 rounded">AutoSnippet/recipes/*.md</code>',recipeBullet2:".md 文件 = 唯一数据源,DB 仅作索引缓存",recipeBullet3:'<code class="bg-blue-100 px-1 rounded">asd sync</code> 增量同步 .md → DB',chatAgentCompBullet1:"AnalystAgent 分析意图 → ProducerAgent 执行操作",chatAgentCompBullet2:"HandoffProtocol 自动切换 + 轻量记忆持久化",chatAgentCompBullet3:"项目感知:自动注入知识库状态上下文",searchPipelineBullet1:"InvertedIndex → CoarseRanker → MultiSignalRanker → RetrievalFunnel",searchPipelineBullet2:"BM25 + keyword + semantic 三路融合",searchPipelineBullet3:"search MCP 工具:mode 参数路由 auto / keyword / semantic / context 四种模式",guardCompBullet1:"内建规则 + 自定义规则 + Recipe 关联",guardCompBullet3:'MCP:<code class="bg-rose-100 px-1 rounded">guard</code>(code=单文件 / files=批量)、<code class="bg-rose-100 px-1 rounded">bootstrap</code>(operation: scan)',kbBuildBullet1:'<strong>AI 扫描</strong>:<code class="bg-slate-100 px-1 rounded text-xs">asd ais [Target]</code> 批量提取',kbBuildBullet2:'<strong>Cursor 扫描</strong>:对 Copilot 说 "扫描 Module"',kbBuildBullet3:"<strong>手动创建</strong>:New Recipe → Use Copied Code",kbBuildBullet4:'<strong>编辑器内</strong>:复制代码 → <code class="bg-slate-100 px-1 rounded text-xs">// as:create -c</code>',semSearchBullet1:"<strong>4 层管线</strong>:InvertedIndex → CoarseRanker → MultiSignalRanker → RetrievalFunnel",semSearchBullet2:'<strong>编辑器内</strong>:<code class="bg-slate-100 px-1 rounded text-xs">// as:search keyword</code>',semSearchBullet3:"<strong>Cursor MCP</strong>:search 统合工具(mode 路由 4 种模式)",semSearchBullet4:"<strong>Dashboard</strong>:搜索框支持语义 + 关键词",auditFeatureBullet1:'<strong>文件审查</strong>:<code class="bg-slate-100 px-1 rounded text-xs">// as:audit</code>',auditFeatureBullet2:'<strong>Target 审查</strong>:<code class="bg-slate-100 px-1 rounded text-xs">// as:audit target</code>',auditFeatureBullet3:'<strong>Guard 审查</strong>:MCP <code class="bg-slate-100 px-1 rounded text-xs">guard</code>(code / files 参数)',auditFeatureBullet4:"<strong>Dashboard</strong>:Guard 页面可视化审查",syncBullet1:'<strong>同步</strong>:<code class="bg-slate-100 px-1 rounded text-xs">asd sync</code> .md → DB(增量)',syncBullet2:'<strong>Hash 校验</strong>:<code class="bg-slate-100 px-1 rounded text-xs">_contentHash</code> 检测手动编辑',syncBullet3:"<strong>向量索引</strong>:启动时自动构建语义索引",syncBullet4:'<strong>依赖图</strong>:<code class="bg-slate-100 px-1 rounded text-xs">structure</code>(operation: targets / files)MCP 工具',createDirBullet1:"无选项:打开 Dashboard",createDirBullet2:"<code>-c</code>:从剪贴板静默创建",createDirBullet3:"<code>-f</code>:扫描当前文件",searchDirBullet1:"从知识库检索 Recipe/Snippet",searchDirBullet2:"选择后插入代码,替换该行",searchDirBullet3:"记录一次人工使用",auditDirBullet1:"无后缀:审查当前文件",auditDirBullet2:"<code>target</code>:审查当前 Target",auditDirBullet3:"<code>project</code>:审查整个项目",includeDirBullet1:"Snippet 中包含此标记",includeDirBullet2:"补全后自动注入 import",skillIntent:"意图路由",skillConcepts:"概念教学",skillCandidates:"候选提交",skillRecipes:"Recipe 检索",skillGuard:"代码合规",skillStructure:"项目结构",skillAnalysis:"深度分析",skillColdstart:"冷启动",skillCreate:"引导创建",skillLifecycle:"生命周期",mcpLayerHeader:"层级",mcpToolHeader:"工具",mcpDescHeader:"说明",mcpAgentLayerHeader:"Agent 层(12 个)— 默认对外暴露",mcpAdminLayerHeader:"Admin 层(4 个)— 需设置 ASD_MCP_TIER=admin",mcpHealthDesc:"服务健康检查",mcpCapabilitiesDesc:"服务能力清单(Agent 自发现)",mcpGuardDesc:"code=单文件审查 / files=批量审查",mcpSubmitDesc:"提交候选 / 批量 / 保存文档",mcpEnrichDesc:"AI 润色 / 校验 / 查重",mcpLifecycleDesc:"批量生命周期操作",mcpSearchDesc:"mode 路由 auto / keyword / semantic / context",mcpKnowledgeDesc:"operation 路由 list / get / insights / confirm_usage",mcpStructureDesc:"operation 路由 targets / files / metadata",mcpGraphDesc:"operation 路由 query / impact / path / stats",mcpSkillDesc:"operation 路由 list / load / create / update / delete / suggest",mcpBootstrapDesc:"operation 路由 knowledge / refine / scan",archBootstrapStep1:"① 项目扫描 → 依赖 / 目录 / 入口分析",archBootstrapStep2:"② AI 批量提取 → Candidate 候选列表",archBootstrapStep3:"③ 审阅 + Promote → Recipe 知识库就绪",archBootstrapNote:"支持 bootstrap 工具(operation: refine)持续迭代、resume 断点续跑",archPipelineL1:"InvertedIndex — 倒排索引快速召回",archPipelineL2:"CoarseRanker — BM25 + TF-IDF 粗排",archPipelineL3:"MultiSignalRanker — 多维信号精排",archPipelineL4:"RetrievalFunnel — 漏斗截断 + 上下文装配",archAnalystAgent:"<strong>AnalystAgent</strong>:分析用户意图 → 检索知识库 → 给出建议 → 信心信号分级",archProducerAgent:"<strong>ProducerAgent</strong>:生成代码 → 创建候选 → 执行操作 → 结果聚合",archHandoff:"<strong>HandoffProtocol</strong>:两个 Agent 之间的自动切换协议",archMemory:"<strong>轻量记忆</strong>:跨对话偏好/决策/上下文持久化(JSONL,TTL 过期)",archProjectAware:"<strong>项目感知</strong>:自动注入知识库状态(Recipe 分布、候选积压量、Guard 规则数)",archCliDesc:"asd × 10 命令",archMcpDesc:"stdio × 16 工具",archHttpDesc:"Express × 14 路由模块",archSkillsDesc:"13 个 Cursor/Copilot",cliSetupDesc:"初始化项目",cliStatusDesc:"环境自检",cliUiDesc:"启动 Dashboard",cliUpgradeDesc:"升级 IDE 集成",cliSyncDesc:".md → DB 增量同步",cliAisDesc:"AI 扫描提取 Candidates",cliAisForceDesc:"强制重新扫描全量",cliWatchDesc:"文件监控 + 指令触发",cliSearchDesc:"搜索知识库",cliSearchSemanticDesc:"语义搜索模式",cliGuardDesc:"Guard 规则检查",cliServerDesc:"单独启动 API 服务",cliUpgradeMcpDesc:"升级 MCP / Skills / Rules",cliInstallFullDesc:"全量安装 IDE 集成",cliSyncForceDesc:"全量重建 DB",cliSyncDryDesc:"预览同步变更"},moduleExplorer:{title:"Module Explorer",scanTargets:"扫描 Targets",scanning:"扫描中...",scanComplete:"扫描完成",targetFiles:"{count} 个文件",noTargets:"未发现 Target",recipesInTarget:"关联 Recipes",guardSummary:"Guard 概况",guardViolations:"{count} 项违规",noViolations:"无违规",openFile:"打开文件",refreshTree:"刷新文件树",extractFromFile:"提取代码",fileDetail:"文件详情",projectModules:"项目模块 ({count})",addFolderScan:"添加目录扫描",refreshProject:"刷新项目结构",discovererFolderScan:"目录扫描",removeFolder:"移除此目录",fullProjectResults:"全项目扫描结果",moduleLabel:"模块: {name}",reviewResults:"审核提取结果",resultsCount:"{count} 条",candidateSuffix:" Candidate",fullProjectScanning:"全项目扫描中",moduleScanLabel:"模块扫描: {name}",filesInScan:"本次扫描的文件 ({count})",knowledgeExtract:"知识提取",knowledgeExtractHint:"在左侧选择模块扫描,或点击 + 添加任意目录。提取代码模式并生成 Recipe 知识卡片。",guardAuditSummary:"Guard 审计摘要",auditedFiles:"已审计文件:",totalViolationsLabel:"违反总数:",errorsCount:"{count} 错误",warningsCount:"{count} 警告",recipeNotExist:"「{name}」不存在于当前知识库",recipeNotExistTitle:"Recipe 不存在",loadRecipeFailed:"加载 Recipe 失败",browseFailedTitle:"目录浏览失败",browseFailedDefault:"无法加载目录列表",selectFolderTitle:"选择要扫描的目录",scanningDirs:"正在扫描项目目录...",noDirs:"未发现可扫描的目录",sourceFileCount:"{count} 文件",selectFolderHint:"选择包含源码文件的目录,系统将自动检测语言并执行 AI 扫描",modulesTabLabel:"模块 ({count})",foldersTabLabel:"目录"},search:{title:"智能搜索",searchPlaceholder:"输入搜索关键词...",noResults:"未找到匹配结果",resultCount:"找到 {count} 条结果",relevance:"相关度",source:"来源",category:"分类",language:"语言",matchType:"匹配类型",matchExact:"精确",matchFuzzy:"模糊",matchSemantic:"语义匹配",matchKeyword:"关键词匹配",viewRecipe:"查看 Recipe",insertCode:"插入代码",searchFailed:"搜索失败。请重试。",searching:"搜索中...",searchBtn:"搜索",emptyHint:"输入关键词后点击搜索",contextRelevant:"上下文相关",authorityScore:"权威分",usage:"使用",usageCount:"{count}次",recommendReason:"推荐理由",viewFullContent:"查看完整内容",similarity:"相似度",quality:"质量",noContent:"无内容",useSnippet:"使用此片段",importedFrameworks:"导入的框架:",relatedApis:"相关 APIs:"},scanResult:{title:"扫描结果",trigger:"Trigger",triggerPlaceholder:"@kebab-case-id",description:"描述",descPlaceholder:"中文简述 ≤80 字,引用真实类名",category:"分类",language:"语言",code:"代码模板",markdown:"项目特写",rationale:"设计原理",tags:"标签",tagsPlaceholder:"标签: 按 Enter/逗号添加...",headers:"Imports",headersPlaceholder:"#import <Header.h>",confidence:"置信度",confidenceHigh:"高",confidenceMedium:"中",confidenceLow:"低",source:"来源",authorityScore:"权威分",saveAsRecipe:"保存为 Recipe",saveAsKnowledge:"保存知识",discard:"丢弃",keepCandidate:"保留候选",qualityWarning:"质量提醒",lowQualityHint:"该条目质量较低,建议润色后再保存",editBeforeSave:"编辑后保存",triggerRequired:"请输入 Trigger",savedAsRecipe:"已保存并发布为 Recipe",savedToKb:"已保存到 KB",validation:"验证方法",validationMethod:"方法:",validationExpected:"预期:",steps:"实施步骤",codeChanges:"代码变更",constraints:"约束条件",guardRules:"Guard 规则",boundaryConstraints:"边界约束",preconditions:"前置条件",sideEffects:"副作用",relations:"关系图 (Relations)",knowledgeEntryTitle:"知识条目标题",aiScan:"AI 扫描",lifecyclePending:"待审核",lifecycleActive:"已发布",lifecycleDeprecated:"已废弃",saving:"保存中...",cursorDelivery:"Cursor Delivery",aiReasoning:"AI 推理",confidenceLabel:"置信度 {value}%",sourceLabel:"来源:",noArticle:"(无项目特写内容)",noCode:"(无代码模板)",done:"完成",formatHeaders:"格式化",cleanUnused:"清理未引用",addHeader:"+ 添加",usedInCode:"代码中有引用",unusedInCode:"代码中未找到引用",unknown:"无法判断",unreferenced:"未引用",removeTag:"移除",deleteHeader:"删除",module:"模块",mode:"模式",difficulty:"难度",difficultyBeginner:"初级",difficultyIntermediate:"中级",difficultyAdvanced:"高级",highDuplicateRisk:"高重复风险:",compareBeforeSave:"建议先对比再保存",similarRecipes:"相似 Recipe:",referenced:"引用",collapseHeaders:"收起",editHeaders:"编辑"},createModal:{title:"New Recipe",importFromPath:"Import from Project Path",or:"Or",importFromClipboard:"Import from Clipboard",scanFile:"Scan File",useClipboard:"Use Copied Code",pathPlaceholder:"e.g. Sources/MyModule/Auth.swift",aiThinking:"AI is thinking..."},llmConfig:{title:"LLM 配置",provider:"AI Provider",model:"Model",apiKey:"API Key",proxy:"代理",optional:"(可选)",apiKeyPlaceholderSet:"留空保持当前 Key 不变",apiKeyPlaceholderEmpty:"请输入 API Key",envWarning:"项目尚未配置 .env 文件,保存后将自动创建。",cancel:"取消",saved:"已保存",saveToEnv:"保存到 .env",apiKeyRequired:"请填写 API Key",configured:"已配置:",saveSuccess:"保存成功",saveFailed:"保存失败",providers:{gemini:"Google Gemini",openai:"OpenAI",deepseek:"DeepSeek",claude:"Claude",ollama:"Ollama (本地)"}},recipeEditor:{title:"Edit Recipe",authorityScore:"权威分",path:"Path",description:"描述",markdown:"Markdown 文档",code:"代码 / 标准用法",rationale:"设计原理",steps:"实施步骤",codeChanges:"代码变更",validation:"验证方法",validationMethod:"方法:",validationExpected:"预期:",tags:"标签",constraints:"约束条件",guardRules:"Guard 规则",boundaryConstraints:"边界约束",preconditions:"前置条件",sideEffects:"副作用",relations:"关系图 (Relations)",preview:"Preview",edit:"Edit",cancel:"Cancel",saveChanges:"Save Changes",saving:"保存中...",qualityLevels:{basic:"Basic",good:"Good",solid:"Solid",great:"Great",excellent:"Excellent"},descPlaceholder:"Recipe 摘要描述...",rationalePlaceholder:"为何采用此方案...",relationTypes:{inherits:"继承",implements:"实现",calls:"调用",dependsOn:"依赖",dataFlow:"数据流",conflicts:"冲突",extends:"扩展",associates:"关联"},noContent:"No content",authorityFailed:"设置权威分失败:"},searchModal:{title:"as:search — 选择并插入",keyword:"关键词:",keywordAll:"(全部)",insertTo:"插入到:",noResults:"未找到匹配的 Recipe",quality:"质量:",insertBtn:"插入",inserting:"插入中...",insertSuccess:"✅ 已插入到",insertFailed:"❌ 插入失败"},refineProgress:{refining:"润色中",completed:"已完成",reviewing:"审核中",progress:"{current}/{total}",fields:"字段:",timeElapsed:"已用时",eta:"预计剩余",title:"AI 润色",doneTitle:"AI 润色完成",runningTitle:"AI 润色中",doneMsg:"{refined} 条已更新",doneMsgWithFail:"{refined} 条已更新,{failed} 条失败",progressMsg:"{done}/{total} 条候选",closeBtn:"关闭"},spmCompare:{title:"SPM 版本对比",current:"当前版本",latest:"最新版本",diff:"差异",added:"新增",removed:"移除",changed:"变更",unchanged:"未变",updateAvailable:"可更新",upToDate:"已是最新",updateBtn:"更新依赖",closeBtn:"关闭",package:"包名",from:"从",to:"到",noChanges:"无变更",candidateCopied:"候选内容已复制到剪贴板",recipeCopied:"Recipe 内容已复制到剪贴板",copied:"已复制",deleteConfirm:"确定删除该候选?",deleteFailed:"删除失败",compareTitle:"对比:候选 vs Recipe",deleteCandidate:"删除候选",auditCandidate:"审核候选",editRecipe:"编辑 Recipe",switchRecipe:"切换 Recipe:",candidateTitle:"候选:{title}",copyCandidate:"复制候选",noCode:"(无代码)",aiContextProfile:"AI Context / 项目特写",noGuide:"(无使用指南)",copyRecipe:"复制 Recipe"},silentLabels:{watch:"as:create",draft:"草稿",cli:"CLI",pending:"待审核(24h)",recipe:"新建片段"},lifecycle:{pending:"待审核",active:"已发布",deprecated:"已废弃"},kind:{rule:"规则",pattern:"模式",fact:"事实"},app:{errorBoundary:{title:"页面出现异常",refreshBtn:"刷新页面"},sync:{success:"Recipes 已同步到 IDE Snippets",successTitle:"Snippet 同步成功",failed:"同步失败",failedHint:"请检查 IDE 配置并重试"},projectRefresh:{success:"Target 列表与文件树已更新",successTitle:"项目结构已刷新",failed:"刷新失败"},extract:{success:"提取结果已进入候选池,请在 Candidates 页审核",successTitle:"提取完成",markerSuccess:"精准锁定标记代码,已加入候选池",normalSuccess:"提取结果已加入候选池",noMarker:"未找到 ASD 标记,AI 将分析完整文件",extracting:"提取中",failed:"Extraction failed"},clipboard:{empty:"请先复制代码到剪贴板",emptyTitle:"剪贴板为空",analyzing:"已收到代码,AI 正在识别可复用模式...",analyzingTitle:"剪贴板分析中",resultMulti:"已识别 {count} 条 Recipe,请在候选池审核",resultTitle:"AI 识别完成",aiFailed:"AI 识别失败",permissionError:"浏览器可能未授权剪贴板访问",permissionTitle:"剪贴板读取失败"},load:{failed:"无法加载项目数据",failedTitle:"加载失败",failedHint:"请确认项目路径有效后重试"},scan:{events:{initializing:"正在启动扫描...",filesLoaded:"已加载 {count} 个源文件",readingFiles:"正在读取 {count} 个文件内容...",aiAnalyzing:"正在 AI 分析提取可复用模式...",enriching:"正在增强 {count} 条结果...",completing:"扫描完成,正在加载结果..."},streamInit:"正在建立流式连接...",completed:"扫描完成",targetSuccess:"发现 {count} 条可复用代码模式,请在右侧审核",targetSuccessTitle:"Target 扫描完成",aiNotConfigured:"AI 未配置",noResults:"AI 扫描未返回结果",noSnippets:"该 Target 中未找到可复用的代码片段",scanComplete:"扫描完成",scanFailedHint:"请确认 Target 包含有效的源代码文件",scanFailed:"扫描失败",timeout:"扫描超时,请尝试减少 Target 文件数量",timeoutTitle:"扫描超时",scanError:"扫描出错"},coldStart:{collecting:"正在收集项目结构...",skeletonCreated:"骨架已创建,正在后台填充...",skeletonDetail:"冷启动骨架已创建: {targets} 个 Target, {files} 个文件, {deps} 条依赖...正在后台逐维度填充...",guardSuffix:"Guard: {count} 项违规",timeout:"冷启动超时,请检查项目文件数量"},fullScan:{collecting:"正在收集所有 Target 文件...",phase5:"正在收集源文件...",phase15:"正在 AI 分析代码模式...",phase25:"AI 提取中(大项目可能需要数分钟)...",phase35:"AI 提取中...",phase45:"AI 深度分析中...",phase55:"持续处理中...",phase65:"正在运行 Guard 审计...",phase75:"正在汇总结果...",phase85:"即将完成...",partialComplete:"扫描部分完成(超时)",completed:"全项目扫描完成",resultDetail:"全项目扫描完成: {count} 条候选",guardSuffix:"Guard: {count} 处违反",timeoutSuffix:"(部分结果,AI 超时)",noContent:"全项目扫描完成,未发现可提取内容",timeout:"扫描超时,请尝试减少项目文件数量或分 Target 扫描",timeoutTitle:"扫描超时",scanError:"扫描出错"},recipe:{triggerRequired:"请输入 Trigger",savedAsRecipe:"已保存并发布为 Recipe",savedToKb:"已保存到 KB",saveFailed:"保存失败",saveRecipeFailed:"保存 Recipe 失败",deleteFailed:"删除失败"},candidate:{clearConfirm:"确定移除「{name}」下的全部候选?",clearDone:"已移除 {name} 下的全部候选",pushSuccess:"已加入 Candidate 待审核队列",pushFailed:"创建 Candidate 失败"}},globalChat:{refineFields:{summary:"摘要",code:"代码/标准用法",markdown:"Markdown 文档",rationale:"设计原理",tags:"标签",confidence:"置信度",aiInsights:"AI 洞察",agentNotes:"Agent 笔记",relations:"关联关系"},diff:{noChanges:"未检测到变更",excludedRestore:"已排除 · 恢复",exclude:"排除",before:"Before",after:"After",empty:"(空)"},system:{refinePrefix:`🎯 润色模式 — **{title}**
1
+ import{r as o,j as e,z as ka,l as sl,h as Ca,o as Sa,m as Aa,M as al,a as ll,R as St,F as rl,b as nl}from"./vendor-CEnWn7aV.js";import{a as ss}from"./axios-C0Zqfgkc.js";import{Z as Ze,L as Da,S as ol,B as rs,H as as,C as il,a as ct,W as cl,G as $s,b as et,c as st,d as ws,e as dl,f as ul,D as Ia,g as ns,P as pl,h as Lt,i as xl,F as kt,j as pt,k as Ls,l as rt,M as Mt,m as ml,n as Bs,o as hl,p as gl,q as Je,E as os,r as bl,s as fl,U as Ra,t as yl,u as wt,X as Ye,v as Me,w as Ct,R as Ta,x as lt,y as Gs,A as Ea,z as yt,I as jl,J as Pa,K as Gt,N as jt,O as vl,Q as Nl,T as wl,V as kl,Y as is,_ as Cl,$ as Sl,a0 as La,a1 as Al,a2 as Dl,a3 as Pt,a4 as nt,a5 as ls,a6 as gt,a7 as Hs,a8 as Cs,a9 as Ht,aa as Ss,ab as qs,ac as vt,ad as Ma,ae as Xt,af as Il,ag as Qs,ah as Xs,ai as fs,aj as Fa,ak as cs,al as ys,am as qt,an as Zs,ao as Ot,ap as Rl,aq as za,ar as Ms,as as Tt,at as Tl,au as _a,av as Fs,aw as $a,ax as El,ay as Pl,az as zs,aA as Ll,aB as Os,aC as Ml,aD as Fl,aE as zl,aF as _l,aG as $l}from"./icons-eQ_rWCus.js";import"./yaml-qRaU8Ldn.js";(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))l(d);new MutationObserver(d=>{for(const c of d)if(c.type==="childList")for(const u of c.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&l(u)}).observe(document,{childList:!0,subtree:!0});function a(d){const c={};return d.integrity&&(c.integrity=d.integrity),d.referrerPolicy&&(c.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?c.credentials="include":d.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function l(d){if(d.ep)return;d.ep=!0;const c=a(d);fetch(d.href,c)}})();const _s={common:{save:"保存",saving:"保存中...",saved:"已保存",cancel:"取消",confirm:"确认",delete:"删除",edit:"编辑",close:"关闭",copy:"复制",copied:"已复制",loading:"加载中...",retry:"重试",refresh:"刷新页面",back:"返回",search:"搜索",noData:"暂无数据",operationFailed:"操作失败",saveFailed:"保存失败",deleteFailed:"删除失败",loadFailed:"加载失败",areYouSure:"Are you sure?",yes:"是",no:"否",all:"全部",none:"无",preview:"预览",apply:"应用",applying:"应用中...",stop:"停止",export:"导出",import:"导入",more:"更多",collapse:"折叠",expand:"展开"},sidebar:{recipes:"Recipes",moduleExplorer:"Modules",candidates:"候选 ({count})",batchManage:"批量管理",depGraph:"依赖关系",knowledgeGraph:"知识图谱",guard:"代码审计",skills:"Skills",repoWiki:"Wiki",aiAssistant:"AI 助手",help:"使用说明",collapseNav:"折叠导航",expandNav:"展开导航",roleDeveloper:"开发者",roleAgent:"Agent",roleChatAgent:"ChatAgent",modeLogin:"登录",modeProbe:"探针",logout:"登出",tokenLabel:"7日 Token",tokenCalls:"次调用",tokenCallsFull:"{count} 次 AI 调用"},header:{searchPlaceholder:"搜索知识库...",semanticSearch:"语义搜索",semanticSearchTitle:"语义搜索 (AI 向量检索)",semanticSearchFailed:"语义搜索失败。请确保已运行 asd embed 构建索引。",aiSwitchFailed:"切换 AI 失败,请检查项目根目录是否可写。",aiNotConfigured:"AI 未配置 — 点击设置 LLM",configureLlm:"配置 LLM",clickSwitchAi:"点击切换 AI 提供商",switchAi:"切换 AI",editEnvConfig:"修改 .env 配置",closeAiChat:"关闭 AI 对话",openAiChat:"打开 AI 对话",aiChat:"AI 对话",newRecipe:"新建 Recipe",syncSnippets:"同步 Snippets",langSwitch:"中 / EN"},login:{title:"AutoSnippet",subtitle:"连接开发者、AI 与项目知识库",heading:"登录 Dashboard",username:"用户名",password:"密码",usernamePlaceholder:"输入用户名",passwordPlaceholder:"输入密码",usernameRequired:"请输入用户名",passwordRequired:"请输入密码",loginFailed:"登录失败,请重试",loggingIn:"登录中...",loginBtn:"登录",envHint:"登录功能由 VITE_AUTH_ENABLED 环境变量控制"},pagination:{showing:"显示 {start}-{end},共 {total} 条",perPage:"每页",unit:"条",firstPage:"第一页",prevPage:"上一页",nextPage:"下一页",lastPage:"最后一页"},recipes:{title:"Recipe 知识库",sortNewest:"最新",sortAlpha:"字母",sortQuality:"质量",filterAll:"全部类型",filterSnippet:"仅 Snippet",filterKnowledge:"仅 Knowledge",searchPlaceholder:"搜索 Recipes...",totalCount:"共 {count} 条",noResults:"没有匹配的 Recipe",batchActions:"批量操作",selectAll:"全选",deselectAll:"取消全选",batchDelete:"删除选中",batchDeleteConfirm:"确定删除选中的 {count} 条 Recipe?",batchDeleteDone:"已删除 {count} 条",qualityAuthorityScore:"权威分",qualityExcellent:"Excellent",qualityGreat:"Great",qualitySolid:"Solid",qualityGood:"Good",qualityBasic:"Basic",knowledgeType:"类型",typeSnippet:"Snippet",typeKnowledge:"Knowledge",sourceLabel:"来源",sourceBootstrap:"bootstrap",sourceManual:"manual",sourceAiScan:"ai-scan",sourceExtract:"extract",sourceClipboard:"clipboard",editRecipe:"编辑",deleteRecipe:"删除",pushToCandidate:"推入候选",recipeDetail:"Recipe 详情",editBtn:"Edit",description:"描述",markdown:"Markdown",code:"代码",designRationale:"设计原理",steps:"实施步骤",codeChanges:"代码变更",validation:"验证方法",tags:"标签",constraints:"约束条件",guardRules:"Guard 规则",boundaryConstraints:"边界约束",preconditions:"前置条件",sideEffects:"副作用",relations:"关系图 (Relations)",headers:"Headers",noContent:"No content",semanticResults:"语义搜索结果",semanticSimilarity:"相似度",insertToFile:"插入到文件",viewInRecipes:"在 Recipes 中查看",reasoning:"推理依据",sourceColon:"来源:",confidenceColon:"置信度:",alternativesLabel:"备选:",qualityGrade:"质量评级",qualityCompleteness:"完整性",qualityAdaptation:"适配度",qualityDocumentation:"文档度",usageCount:"使用 {count}",emptyValue:"(空)",verificationMethod:"方法:",verificationExpected:"预期:",knowledgeTypes:{codePattern:"代码模式",architecture:"架构设计",bestPractice:"最佳实践",codeStandard:"代码规范",callChain:"调用链路",rule:"规则"}},candidates:{title:"Candidate 审核池",tabs:{pending:"待审",approved:"已批准",rejected:"已拒绝"},sortNewest:"最新优先",sortOldest:"最早优先",sortConfidence:"按置信度",searchPlaceholder:"搜索候选...",totalCount:"共 {count} 条待审",noResults:"没有待审候选",noPending:"已全部审核",confidenceHigh:"高",confidenceMedium:"中",confidenceLow:"低",sourceBootstrap:"冷启动",sourceManual:"manual",sourceAiScan:"ai-scan",sourceExtract:"extract",sourceClipboard:"clipboard",sourceSignal:"signal",approve:"批准",reject:"拒绝",approveAndSave:"批准并保存为 Recipe",batchApprove:"批量批准 ({count})",batchReject:"批量拒绝 ({count})",batchDeleteConfirm:"确定移除选中的 {count} 条候选?",batchDeleteDone:"已删除 {count} 条",approveSuccess:"已批准为 Recipe",rejectSuccess:"已拒绝",aiRefine:"AI 润色",viewDetail:"查看详情",selectAll:"全选",deselectAll:"取消全选",silent:"静默",expandedDetail:"展开详情",collapse:"收起",qualityDimensions:"质量维度",authorityScore:"权威分",trigger:"Trigger",category:"Category",language:"Language",path:"Path",description:"描述",code:"代码",markdown:"Markdown",rationale:"设计原理",tags:"标签",headers:"Headers",confidence:"置信度",source:"来源",createdAt:"创建时间",updatedAt:"更新时间",groupByTarget:"按 Target 分组",clearGroup:"确定移除「{name}」下的全部候选?",clearGroupDone:"已移除 {name} 下的全部候选",coldStartTitle:"冷启动:结构收集 + 9 维度 Candidate 创建(与 MCP 一致)",enrichTitle:"① 结构补齐:填充缺失的 rationale / knowledgeType / complexity / scope / steps / constraints(只填空不覆盖,建议先于润色执行)",refineTitle:"② 内容润色:改善 summary 描述、补充架构洞察、推断 relations 关联、调整 confidence 评分(逐条 AI 精炼,建议在结构补齐之后执行)",withCode:"(含代码 {count})",emptyHint:"点击下方按钮冷启动知识库,或使用 CLI 命令手动创建",fullScanBtn:"全量扫描 ·",clipboardCreate:"从剪贴板创建",scanningHint:"各维度知识正在后台提取并接受 AI 审查,完成后候选内容将自动展示",scannedAt:"扫描于 {time}",similarOnly:"只看相似",resetFilters:"重置",approveCurrentPage:"当前页进入审核",removeCurrentPage:"移除当前页",deleteAll:"全部删除",overallScore:"综合 {score}",similarPrefix:"相似",linesCount:"{count} 行",enrichTitleSingle:"① 结构补齐:填充缺失的语义字段(rationale / knowledgeType / complexity 等)",refineTitleSingle:"② 内容润色:改善描述、补充洞察、推断关联(支持自定义提示词)",projectProfile:"项目特写",recipeCompare:"Recipe 对比",refineEnhanced:"润色增强信息",agentNotes:"Agent 笔记:",similarRecipe:"相似 Recipe",similarWith:"与 {name} 相似 {score}%",enrichShort:"补齐",refineShort:"润色",enrichTitleBottom:"① 结构补齐",refineTitleBottom:"② 内容润色",timeJustNow:"刚刚",timeMinutesAgo:"{n} 分钟前",timeHoursAgo:"{n} 小时前",timeDaysAgo:"{n} 天前",confidenceHighLabel:"高",confidenceMediumLabel:"中",confidenceMediumLowLabel:"中低",confidenceLowLabel:"低",sourceAiScanLabel:"AI 全量扫描",sourceMcpLabel:"MCP 提交",sourceManualLabel:"手动创建",sourceFileWatcherLabel:"文件监听",sourceClipboardLabel:"剪贴板",sourceSignalLabel:"信号",sourceSubmitCheckLabel:"AI 审查提交"},knowledge:{title:"批量管理",lifecycle:"生命周期",lifecycleCandidate:"Candidate",lifecycleRecipe:"Recipe",lifecycleArchived:"Archived",searchPlaceholder:"搜索知识条目...",totalCount:"共 {count} 条",noResults:"无匹配条目",batchActions:"批量操作",batchPromote:"批量晋升",batchDemote:"批量降级",batchArchive:"批量归档",batchDelete:"批量删除",batchDeleteConfirm:"确定删除选中的 {count} 条知识?",batchDeleteDone:"已删除 {count} 条",selectAll:"全选",deselectAll:"取消全选",detail:"知识详情",detailContent:"内容",detailQuality:"质量",detailMeta:"元数据",qualityCompleteness:"完整度",qualityClarity:"清晰度",qualityRelevance:"关联性",qualityAccuracy:"精确度",qualityUsability:"可用性",authorityScore:"权威分",source:"来源",category:"分类",language:"语言",createdAt:"创建时间",updatedAt:"更新时间",path:"路径",trigger:"触发词",lifecyclePending:"待审核",lifecycleActive:"已发布",lifecycleDeprecated:"已废弃",actionPublish:"发布",actionDeprecate:"废弃",actionReactivate:"重新激活",sourceBootstrap:"AI 全量扫描",sourceMcp:"MCP 提交",sourceManual:"手动创建",sourceFileWatcher:"文件监听",sourceClipboard:"剪贴板",sourceCli:"CLI",sourceAgent:"AI Agent",sourceSubmitCheck:"AI 审查提交",allCategories:"所有分类",selectedCount:"已选 {count} 条",batchPublish:"批量发布",quickBatchPublish:"快速批量发布",batchPublishResult:"发布 {success} 条,失败 {fail} 条",batchPublishFailed:"批量发布失败",batchPublishComplete:"批量发布完成",noAutoApprovable:"当前没有可自动通过的待审核条目",noPublishable:"无可发布项",autoPublishResult:"已发布 {count} 条可自动通过的条目",autoApprovable:"可自动通过",clearFilters:"清除筛选条件",loadFailed:"加载知识条目失败",operationSuccess:"操作成功",deleteConfirmMsg:"确定删除「{title}」?此操作不可恢复。",deleteSuccess:"已删除「{title}」",deleteFailed:"删除失败",deprecateReasonPrompt:"请输入废弃原因:",rejectionReason:"驳回原因",summary:"摘要",relatedKnowledge:"关联知识",reasoning:"推理依据",confidence:"置信度",alternatives:"备选",qualityGrade:"质量评级",qualityAdaptation:"适配度",qualityDocumentation:"文档度",qualityCompletionLabel:"完整性",markdownDoc:"Markdown 文档",importHeaders:"导入头文件",codePattern:"代码 / 标准用法",designRationale:"设计原理",implementSteps:"实施步骤",constraintsLabel:"约束条件",aiInsight:"AI 洞察",lifecycleHistoryLabel:"生命周期历史",scope:"范围",scopeUniversal:"通用",scopeProject:"项目级",scopeModule:"模块级",complexity:"复杂度",complexityAdvanced:"高级",complexityIntermediate:"中级",complexityBeginner:"初级",sourceFile:"源文件",prev:"上一条",next:"下一条",narrow:"收窄",widen:"展宽",guardHits:"Guard",adoptions:"采纳",searchHits:"搜索",statViews:"浏览",statApplications:"应用",published:"发布"},knowledgeGraph:{title:"知识图谱",nodeTypes:"节点类型",nodeRecipe:"Recipe",nodeModule:"Module",nodeFile:"File",nodeSymbol:"Symbol",relationInherits:"继承",relationImplements:"实现",relationCalls:"调用",relationDependsOn:"依赖",relationDataFlow:"数据流",relationConflicts:"冲突",relationExtends:"扩展",relationAssociates:"关联",relationContains:"包含",relationImports:"导入",relationOverrides:"覆盖",relationComposedOf:"组合",relationReferencedBy:"被引用",relationTestedBy:"被测试",relationDocumentedIn:"被记录",tools:"工具",zoomIn:"放大",zoomOut:"缩小",resetView:"重置视图",fitView:"适应画布",toggleLabels:"显示/隐藏标签",nodeDetail:"节点详情",relatedNodes:"关联节点",noSelection:"点击节点查看详情",legend:"图例",searchPlaceholder:"搜索节点...",noResults:"没有匹配的节点",totalNodes:"共 {count} 个节点",totalEdges:"共 {count} 条边",loadFailed:"加载知识图谱失败",empty:"知识图谱为空",emptyDesc:"当前没有 Recipe 之间的关系数据。点击下方按钮让 AI 自动分析已有 Recipe 之间的潜在关系(requires / extends / enforces / calls 等)。",discoverRelations:"AI 发现关系",discovering:"AI 分析中…",refresh:"刷新",retry:"重试",statsLabel:"{nodes} 节点 · {edges} 关系",cancelSelection:"取消选中",outEdges:"出边(依赖)",inEdges:"入边(被依赖)",none:"无",relationRequires:"需要",relationEnforces:"约束",relationPrerequisite:"前置",relationReferences:"引用",relationAlternative:"替代",relationDeprecatedBy:"废弃",relationSolves:"解决",discoverAnalyzing:"AI 分析中…(已运行 {elapsed}s)",discoverPollTimeout:"轮询超时,任务可能仍在后台运行。请稍后刷新页面查看结果。",discoverNoResults:"分析完成,共检查 {pairs} 对 Recipe,未发现关系。待 Recipe 数量增加后可再次尝试。",discoverBatchErrors:"分析完成,但 {errors} 个批次 AI 调用失败,未发现关系。请检查 AI Provider 配置。",discoverSuccess:"发现 {count} 条关系(共分析 {pairs} 对{failMsg})",discoverBatchFailed:",{count} 个批次失败",discoverAiNotConfigured:"AI 服务未配置: {error}",discoverTimeout:"任务超时: {error}",discoverFailed:"发现失败: {error}",discoverRunning:"AI 分析仍在进行中…",discoverStarted:"AI 分析已启动,正在后台运行…",discoverInsufficientRecipes:"Recipe 数量不足,无法分析",discoverPreviousTimeout:"上次任务超时,请重试",discoverAiUnavailable:"AI 服务不可用: {error}",discoverStartFailed:"启动失败: {error}",unknownError:"未知错误",discoverTooltip:"AI 自动发现 Recipe 关系"},guard:{title:"Guard 审计",summary:"概览",totalViolations:"共 {count} 项违规",noViolations:"没有违规项",searchPlaceholder:"搜索规则或文件...",severityError:"错误",severityWarning:"警告",severityInfo:"信息",ruleId:"规则 ID",file:"文件",line:"行",message:"消息",severity:"严重性",statusOpen:"待处理",statusResolved:"已解决",statusIgnored:"已忽略",resolve:"标记为已解决",ignore:"忽略",reopen:"重新打开",aiGenRule:"AI 生成规则",aiGenRuleDesc:"描述你想要检测的模式,AI 将生成 Guard 规则",aiGenPlaceholder:"例: 禁止在 View 中直接调用网络请求",aiGenerating:"AI 生成中...",aiGenSuccess:"规则已生成",aiGenFailed:"规则生成失败",refreshAudit:"刷新审计",refreshing:"审计刷新中...",refreshSuccess:"审计已刷新",reportIssue:"提交误报",clearHistory:"清空历史",clearConfirm:"确定清空所有 Guard 违反记录?",addRuleValidation:"请填写规则 ID、说明、正则和至少一种语言",patternLabel:"正则(对每行匹配,JSON 中反斜杠需双写)",languagesLabel:"语言",dimensionLabel:"审查规模",noteLabel:"备注",allLanguages:"所有语言",noMatchingRules:"无匹配规则,请调整筛选条件",violationRecords:"违反记录(共 {runs} 次运行,{count} 处违反)",dimFile:"同文件",dimTarget:"同 target",dimProject:"同项目",rationale:"技术原因",fixSuggestion:"修复建议",sourceRecipe:"来源 Recipe",categorySafety:"安全",categoryCorrectness:"正确性",categoryPerformance:"性能",categoryStyle:"风格",category:"分类",currentProject:"当前项目",generatedRuleId:"已生成规则 ID",dimNoLimit:"不限制",notePlaceholder:"仅作简单模式提示",copyFixSuggestion:"复制修复建议",codeLevelConfigTip:"Code-Level 和 Cross-File 检查(如过度 unwrap、循环 import 等)可通过配置禁用或调整阈值。",codeLevelConfigPath:"配置路径:config/default.json → guard.disabledRules / guard.codeLevelThresholds",tableHeaders:{rule:"规则",file:"文件",line:"行号",message:"描述",severity:"级别",status:"状态",actions:"操作"}},skills:{title:"Skills 管理",searchPlaceholder:"搜索 Skills...",totalCount:"共 {count} 条",noResults:"没有匹配的 Skill",addSkill:"新增 Skill",editSkill:"编辑 Skill",deleteSkill:"删除 Skill",deleteConfirm:"确定删除此 Skill?",deleteSuccess:"已删除",saveSuccess:"已保存",skillName:"名称",skillNamePlaceholder:"输入 Skill 名称",skillDescription:"描述",skillDescPlaceholder:"输入 Skill 描述",skillTrigger:"触发器",skillTriggerPlaceholder:"输入触发条件",skillAction:"动作",skillActionPlaceholder:"输入动作内容",skillEnabled:"已启用",skillDisabled:"已禁用",toggleEnable:"启用/禁用",aiRecommend:"AI 推荐",aiRecommendDesc:"基于项目分析,AI 推荐以下 Skills",aiRecommending:"AI 分析中...",aiRecommendSuccess:"已推荐 {count} 条",aiRecommendFailed:"推荐失败",acceptRecommend:"采纳",rejectRecommend:"忽略",bulkAccept:"全部采纳",signalBadge:"信号",category:"类别",priority:"优先级",priorityHigh:"高",priorityMedium:"中",priorityLow:"低",subtitle:"Agent 技能文档 — 指导 AI 如何正确使用 AutoSnippet 工具",fetchFailed:"获取 Skills 列表失败",loadError:"不存在或读取出错",loadSkillFailed:"加载 Skill 失败",updateSuccess:"更新成功",updateFailed:"更新 Skill 失败",deleteFailed:"删除 Skill 失败",createSuccess:"创建成功",createFailed:"创建 Skill 失败",createAddedToKB:"已创建并加入知识库",filterProject:"项目级",filterBuiltin:"内置",noRecommendations:"当前暂无推荐。继续使用后会积累更多信号。",aiRecommendTooltip:"基于使用模式分析推荐 Skill",creating:"创建中",useCase:"适用",chars:"字符",related:"相关",confirmDelete:"确认删除",deleteSkillConfirmMsg:'删除 Skill "{name}"?此操作不可撤销。',selectToView:"选择左侧 Skill 查看详情",checkGenerated:"请检查并确认生成的内容",aiGenerated:"AI 已生成 Skill",aiGenFailed:"AI 生成失败",fillRequired:"请填写名称、描述和内容",savedToKB:"已保存到知识库",aiGenMode:"AI 生成",manualMode:"手动填写",describeSkill:"描述你想创建的 Skill",aiGeneratingContent:"AI 正在生成...",generateSkill:"生成 Skill",skillContent:"Skill 文档内容",createdBy:{manual:"手动创建","user-ai":"AI 协助创建","system-ai":"自动创建","external-ai":"外部 AI 创建"}},depGraph:{title:"依赖关系图",searchPlaceholder:"搜索模块...",noResults:"没有匹配的模块",totalModules:"共 {count} 个模块",totalDeps:"共 {count} 条依赖",layout:"布局",layoutTree:"树形",layoutForce:"力导向",layoutCircular:"环形",zoomIn:"放大",zoomOut:"缩小",resetView:"重置视图",fitView:"适应画布",nodeDetail:"模块详情",dependencies:"依赖",dependents:"被依赖",legend:"图例",noSelection:"点击节点查看详情",depTypes:{direct:"直接依赖",transitive:"传递依赖",devOnly:"开发依赖"},refresh:"刷新",retry:"重试",noDataTitle:"当前项目内未扫描到模块依赖关系。",noDataDesc:"请确保项目包含模块定义文件(go.mod / package.json / Package.swift / build.gradle 等),然后点击 Refresh 重新扫描。",filterAll:"全部",filterInternal:"内部包",filterExternal:"外部依赖",packages:"包",packageList:"包列表",depRelations:"依赖关系(小图)",depRelationsDesc:"主图不显示连线,点击节点可在浮窗查看该包依赖;此处列出全部 From → To。",labelExternal:"外部",labelInternal:"内部",labelIndirect:"间接",projectRoot:"项目根",close:"关闭",none:"无",visualization:"模块依赖结构可视化",targetHint:"Target 级节点格式:"},bootstrap:{title:"冷启动进度",pipelineSteps:{collecting:"收集项目结构",scanning:"扫描源代码",analyzing:"AI 分析",enriching:"知识增强",indexing:"建立索引"},taskStatus:{pending:"等待中",running:"执行中",completed:"已完成",failed:"失败",skipped:"已跳过"},stats:{totalFiles:"文件总数",totalTargets:"Target 数",totalRecipes:"Recipe 数",totalTime:"总耗时",aiCalls:"AI 调用数"},notifications:{started:"冷启动已开始",completed:"冷启动完成",failed:"冷启动失败",partialComplete:"部分完成"},retryFailed:"重试失败任务",viewDetails:"查看详情",dimLabels:{architecture:"架构与设计",bestPractice:"规范与实践",eventAndDataFlow:"事件与数据流",objcDeepScan:"深度扫描",agentGuidelines:"Agent 注意事项",bootstrap:"Bootstrap",codeStandard:"代码规范",codePattern:"设计模式",projectProfile:"项目特征",categoryScan:"Category 分类方法"},pipelineLabels:{"project-profile":"项目概貌","objc-deep-scan":"深度扫描(常量/Hook)","category-scan":"基础类分类方法扫描","code-standard":"代码规范",architecture:"架构模式","code-pattern":"设计模式","event-and-data-flow":"事件与数据流","best-practice":"最佳实践","agent-guidelines":"Agent 开发注意事项"},statusLabels:{skeleton:"等待中",filling:"填充中",completed:"已完成",failed:"失败"},allCompleted:"全部完成",completedWithErrors:"完成(有错误)",elapsed:"已用",estimatedRemaining:"预计剩余",toolCalls:"工具调用",dimensions:"{done}/{total} 维度",notifySuccess:"{completed} 个维度全部填充成功",notifyPartial:"{completed}/{total} 成功,{failed} 失败",coldStartComplete:"冷启动完成",close:"关闭",reviewPipeline:"AI 审查管线",reviewRounds:{round1Label:"资格审查",round1Desc:"过滤误报 · 识别合并",round2Label:"内容精炼",round2Desc:"AI 改写摘要 · 动态置信度",round3Label:"去重 & 关系",round3Desc:"语义去重 · 关系推断"},round1Done:"保留 {kept} · 合并 {merged} · 丢弃 {dropped}",round2Progress:"{current}/{total} 条",round2Done:"已精炼 {refined}/{total} 条",round3Done:"去重后 {afterDedup} 条 · {relationsFound} 条关系",noMatch:"✓ 无匹配内容",featuresOnly:"✓ {sourceCount} 项特征",featuresAndCandidates:"✓ {sourceCount} 项特征 · {extracted} 条候选",candidatesOnly:"✓ {extracted} 条候选"},wiki:{title:"Repo Wiki",sidebar:"Wiki",fileCount:"{count} 篇",searchPlaceholder:"搜索文件...",generating:"文件生成中,新文档将自动出现…",backToList:"返回文件列表",aiBadge:"AI 增强",copySuccess:"已复制",copyBtn:"复制",loadFailed:"加载失败",incrementalUpdate:"增量更新",fullGeneration:"全量生成",genStarted:"Wiki 生成已启动",genFailed:"生成失败",selectPlaceholder:"从左侧文件树选择,或使用下方快捷入口",phases:{outline:"大纲",content:"内容",review:"审校"},fileTypes:{overview:"概述",module:"模块",api:"API",guide:"指南"},synced:"同步",wikiGenerating:"Wiki 正在生成中",outOfDateHint:"检测到代码变更,Wiki 可能已过期,建议增量更新",emptyTitle:"尚未生成 Repo Wiki",emptyDesc:"Wiki 在冷启动时自动全量生成,后续通过增量更新保持同步",emptyHint:"运行 asd setup 冷启动 · asd wiki --update 增量更新",quickOverview:"项目概述",quickOverviewDesc:"项目信息、技术栈与数据统计",quickArch:"架构总览",quickArchDesc:"模块依赖图、项目结构分析",quickStart:"快速上手",quickStartDesc:"构建、运行与入口分析",quickProtocols:"协议与组件",quickProtocolsDesc:"核心协议、委托和组件关系",selectFile:"选择一个文件开始阅读",lastGenerated:"最后生成",duration:"耗时",incrementalUpdating:"增量更新中...",loadFailedDesc:"无法读取文件内容。"},aiChat:{title:"AI Assistant",emptyTitle:"开始与 AI 对话",emptyDesc:"你可以询问项目相关问题,AI 将帮你分析代码、推荐模式。",inputPlaceholder:"输入你的问题...",inputHint:"Enter 发送 · Shift+Enter 换行",thinking:"AI 思考中...",analyzing:"AI 正在分析...",topicPanel:"话题列表",newTopic:"开启新话题",deleteTopic:"删除话题",deleteTopicConfirm:"确定删除此话题?",quickPrompts:{analyzeArch:"分析项目架构",findDuplicates:"查找重复代码",suggestOptimize:"推荐优化方向"},timeJustNow:"刚刚",timeMinutesAgo:"{n} 分钟前",timeHoursAgo:"{n} 小时前",timeDaysAgo:"{n} 天前",codeBlock:"代码块",diffView:"变更对比",diffBefore:"Before",diffAfter:"After",contextLabel:"AI Context / 项目特写",copyCode:"复制代码",topicRecords:"话题记录",noHistory:"暂无聊天记录",autoSaveHint:"开始对话后自动保存",topicCount:"{count} 个话题 · 本地存储",askAnything:"询问任何关于项目的问题",startChat:"开始 AI 对话",emptyDescLong:"询问关于你项目的任何问题 — 代码分析、架构建议、优化方向等。",aiAssistant:"AI 助手",messageCount:"{n} 条",requestFailed:"请求失败: {error}",cancelled:"(已取消)",expandTopics:"展开话题列表",diffEmpty:"(空)",quickPromptSummarize:"总结项目概况"},help:{title:"使用说明",gettingStarted:"快速开始",commands:"命令参考",faq:"常见问题",tokenUsage:"Token 用量",about:"关于",pageTitle:"AutoSnippet V3 使用说明",subtitle:"连接开发者、AI 与项目知识库:ChatAgent 智能对话 · Skills 开放平台 · 知识库持续生长",techSpecs:"Node.js ≥ 20 · 13 Skills · AI 可自建 · 16 MCP 工具 · ChatAgent 对话 · 4 层检索管线",viewGithub:"查看 GitHub",fullDocs:"完整文档",tokenUsageLast7Days:"Token 用量(近 7 日)",quickStart:"快速开始",coreConcepts:"核心概念",coreFeatures:"核心功能",editorDirectives:"编辑器指令",cursorIntegration:"Cursor AI 集成",v3Architecture:"V3 架构",cliReference:"命令行速查",step1Title:"安装与初始化",step2Title:"启动 Dashboard",step2Desc:"启动 HTTP API + Dashboard + FileWatcher",step3Title:"IDE 集成",step3Desc:"安装 MCP + Skills + Cursor Rules",step4Title:"创建第一个 Recipe",step4Desc1:"Dashboard → New Recipe",step4Desc2:"Use Copied Code → AI 填充 → 保存",threeRoles:"三大角色",roleColumn:"角色",responsibilityColumn:"职责",capabilityColumn:"能力",roleDeveloper:"开发者",roleCursorAgent:"Cursor Agent",roleChatAgent:"ChatAgent",developerResp:"审核与决策、维护项目标准",cursorAgentResp:"按规范生成代码、检索知识库",chatAgentResp:"提取、摘要、扫描、审查",coreComponents:"核心组件",bootstrapLabel:"Bootstrap(冷启动)",bootstrapDesc:"9 维度自动知识提取引擎",candidatesLabel:"Candidates(候选)",candidatesDesc:"待审核的 Recipe 草案",recipeLabel:"Recipe(配方)",recipeDesc:"Markdown 知识文档(Source of Truth)",chatAgentLabel:"ChatAgent(智能对话)",chatAgentDesc:"多 Agent 协作架构,可持续扩展",searchPipelineLabel:"4 层检索管线",searchPipelineDesc:"多模式语义搜索引擎",guardLabel:"Guard(代码审查)",guardDesc:"知识库驱动的代码审查",knowledgeLoop:"知识库闭环",loopStep1:"扫描提取",loopStep1Sub:"AI/Cursor",loopStep2:"人工审核",loopStep2Sub:"Dashboard",loopStep3:"知识沉淀",loopStep3Sub:".md 落盘",loopStep4:"智能使用",loopStep4Sub:"Cursor/Xcode",loopStep5:"持续优化",loopStep5Sub:"asd sync",knowledgeBuild:"知识库构建",semanticSearchLabel:"语义检索",codeAudit:"代码审查(Audit)",dataSync:"数据同步",usageExamples:"使用示例",exampleSearchKB:"检索知识库",exampleSearchKBDesc:'对 Cursor 说:"查找网络请求错误处理的代码"',exampleBatchScan:"批量扫描",exampleBatchScanDesc:'对 Cursor 说:"扫描 NetworkModule,生成 Recipes 到候选"',exampleSubmitCode:"提交代码",exampleSubmitCodeDesc:'对 Cursor 说:"把这段代码保存为 Recipe"',skills10:"10 个 Skills",mcp16:"16 个 MCP 工具(V3 参数化统合)",bootstrapEngine:"Bootstrap 冷启动引擎",bootstrapEngineDesc:"3 步完成知识库从 0 → 1:",fourLayerPipeline:"4 层检索管线",fourLayerPipelineDesc:"多信号融合的精准检索:",chatAgentSystem:"ChatAgent 对话系统",chatAgentSystemDesc:"多 Agent 协作架构,可持续扩展:",fiveEntryChannels:"五个入口通道",initAndEnv:"初始化与环境",kbManagement:"知识库管理",searchAndAudit:"搜索与审查",maintenanceUpgrade:"维护与升级",footerHint:"需要更详细的说明?查看 {link} 或运行 {cmd} 检查环境",footerGithubReadme:"GitHub README",mcpWriteNote:"写操作工具(submit_knowledge、guard、bootstrap 等)通过 Gateway 权限 / 宪法 / 审计三重保护。",editorDirectivesNote:"需先运行 asd watch 或 asd ui;支持快捷写法 asc / ass / asa",createDirective:"创建 Recipe/Snippet",searchDirective:"搜索并插入",auditDirective:"代码审查",includeDirective:"自动注入头文件/模块",developerCap:'Dashboard 审核候选、保存 Recipe;Snippet 补全、<code class="bg-slate-100 px-1 rounded">// as:search</code>;运行 <code class="bg-slate-100 px-1 rounded">asd ui</code>',cursorAgentCap:"13 个 Skills 理解规范;16 个 MCP 工具按需检索、提交候选;写操作经 Gateway 审核",chatAgentCap:'<code class="bg-slate-100 px-1 rounded">asd ais</code> 批量扫描;分析剪贴板;Guard 审查;Dashboard RAG',bootstrapBullet1:"扫描项目模块 + AST 分析源码",bootstrapBullet2:"启发式提取 → AI 精炼 → 生成 Candidate",bootstrapBullet3:'MCP 工具:<code class="bg-green-100 px-1 rounded">bootstrap</code>(无参数)→ Mission Briefing + <code class="bg-green-100 px-1 rounded">dimension_complete</code>',candidatesBullet1:"来源:AI 扫描、Cursor、剪贴板、Dashboard",candidatesBullet2:"审核后入库为 Recipe,确保质量",candidatesBullet3:"Reasoning 字段记录 AI 推理过程",recipeBullet1:'位置:<code class="bg-blue-100 px-1 rounded">AutoSnippet/recipes/*.md</code>',recipeBullet2:".md 文件 = 唯一数据源,DB 仅作索引缓存",recipeBullet3:'<code class="bg-blue-100 px-1 rounded">asd sync</code> 增量同步 .md → DB',chatAgentCompBullet1:"AnalystAgent 分析意图 → ProducerAgent 执行操作",chatAgentCompBullet2:"HandoffProtocol 自动切换 + 轻量记忆持久化",chatAgentCompBullet3:"项目感知:自动注入知识库状态上下文",searchPipelineBullet1:"InvertedIndex → CoarseRanker → MultiSignalRanker → RetrievalFunnel",searchPipelineBullet2:"BM25 + keyword + semantic 三路融合",searchPipelineBullet3:"search MCP 工具:mode 参数路由 auto / keyword / semantic / context 四种模式",guardCompBullet1:"内建规则 + 自定义规则 + Recipe 关联",guardCompBullet3:'MCP:<code class="bg-rose-100 px-1 rounded">guard</code>(code=单文件 / files=批量)、<code class="bg-rose-100 px-1 rounded">bootstrap</code>(含 Guard 审计)',kbBuildBullet1:'<strong>AI 扫描</strong>:<code class="bg-slate-100 px-1 rounded text-xs">asd ais [Target]</code> 批量提取',kbBuildBullet2:'<strong>Cursor 扫描</strong>:对 Copilot 说 "扫描 Module"',kbBuildBullet3:"<strong>手动创建</strong>:New Recipe → Use Copied Code",kbBuildBullet4:'<strong>编辑器内</strong>:复制代码 → <code class="bg-slate-100 px-1 rounded text-xs">// as:create -c</code>',semSearchBullet1:"<strong>4 层管线</strong>:InvertedIndex → CoarseRanker → MultiSignalRanker → RetrievalFunnel",semSearchBullet2:'<strong>编辑器内</strong>:<code class="bg-slate-100 px-1 rounded text-xs">// as:search keyword</code>',semSearchBullet3:"<strong>Cursor MCP</strong>:search 统合工具(mode 路由 4 种模式)",semSearchBullet4:"<strong>Dashboard</strong>:搜索框支持语义 + 关键词",auditFeatureBullet1:'<strong>文件审查</strong>:<code class="bg-slate-100 px-1 rounded text-xs">// as:audit</code>',auditFeatureBullet2:'<strong>Target 审查</strong>:<code class="bg-slate-100 px-1 rounded text-xs">// as:audit target</code>',auditFeatureBullet3:'<strong>Guard 审查</strong>:MCP <code class="bg-slate-100 px-1 rounded text-xs">guard</code>(code / files 参数)',auditFeatureBullet4:"<strong>Dashboard</strong>:Guard 页面可视化审查",syncBullet1:'<strong>同步</strong>:<code class="bg-slate-100 px-1 rounded text-xs">asd sync</code> .md → DB(增量)',syncBullet2:'<strong>Hash 校验</strong>:<code class="bg-slate-100 px-1 rounded text-xs">_contentHash</code> 检测手动编辑',syncBullet3:"<strong>向量索引</strong>:启动时自动构建语义索引",syncBullet4:'<strong>依赖图</strong>:<code class="bg-slate-100 px-1 rounded text-xs">structure</code>(operation: targets / files)MCP 工具',createDirBullet1:"无选项:打开 Dashboard",createDirBullet2:"<code>-c</code>:从剪贴板静默创建",createDirBullet3:"<code>-f</code>:扫描当前文件",searchDirBullet1:"从知识库检索 Recipe/Snippet",searchDirBullet2:"选择后插入代码,替换该行",searchDirBullet3:"记录一次人工使用",auditDirBullet1:"无后缀:审查当前文件",auditDirBullet2:"<code>target</code>:审查当前 Target",auditDirBullet3:"<code>project</code>:审查整个项目",includeDirBullet1:"Snippet 中包含此标记",includeDirBullet2:"补全后自动注入 import",skillIntent:"意图路由",skillConcepts:"概念教学",skillCandidates:"候选提交",skillRecipes:"Recipe 检索",skillGuard:"代码合规",skillStructure:"项目结构",skillAnalysis:"深度分析",skillColdstart:"冷启动",skillCreate:"引导创建",skillLifecycle:"生命周期",mcpLayerHeader:"层级",mcpToolHeader:"工具",mcpDescHeader:"说明",mcpAgentLayerHeader:"Agent 层(12 个)— 默认对外暴露",mcpAdminLayerHeader:"Admin 层(4 个)— 需设置 ASD_MCP_TIER=admin",mcpHealthDesc:"服务健康检查",mcpCapabilitiesDesc:"服务能力清单(Agent 自发现)",mcpGuardDesc:"code=单文件审查 / files=批量审查",mcpSubmitDesc:"提交候选 / 批量 / 保存文档",mcpEnrichDesc:"AI 润色 / 校验 / 查重",mcpLifecycleDesc:"批量生命周期操作",mcpSearchDesc:"mode 路由 auto / keyword / semantic / context",mcpKnowledgeDesc:"operation 路由 list / get / insights / confirm_usage",mcpStructureDesc:"operation 路由 targets / files / metadata",mcpGraphDesc:"operation 路由 query / impact / path / stats",mcpSkillDesc:"operation 路由 list / load / create / update / delete / suggest",mcpBootstrapDesc:"无参数,返回 Mission Briefing + 维度任务清单",archBootstrapStep1:"① 项目扫描 → 依赖 / 目录 / 入口分析",archBootstrapStep2:"② AI 批量提取 → Candidate 候选列表",archBootstrapStep3:"③ 审阅 + Promote → Recipe 知识库就绪",archBootstrapNote:"支持 bootstrap → dimension_complete 循环迭代、session 断点续跑",archPipelineL1:"InvertedIndex — 倒排索引快速召回",archPipelineL2:"CoarseRanker — BM25 + TF-IDF 粗排",archPipelineL3:"MultiSignalRanker — 多维信号精排",archPipelineL4:"RetrievalFunnel — 漏斗截断 + 上下文装配",archAnalystAgent:"<strong>AnalystAgent</strong>:分析用户意图 → 检索知识库 → 给出建议 → 信心信号分级",archProducerAgent:"<strong>ProducerAgent</strong>:生成代码 → 创建候选 → 执行操作 → 结果聚合",archHandoff:"<strong>HandoffProtocol</strong>:两个 Agent 之间的自动切换协议",archMemory:"<strong>轻量记忆</strong>:跨对话偏好/决策/上下文持久化(JSONL,TTL 过期)",archProjectAware:"<strong>项目感知</strong>:自动注入知识库状态(Recipe 分布、候选积压量、Guard 规则数)",archCliDesc:"asd × 10 命令",archMcpDesc:"stdio × 16 工具",archHttpDesc:"Express × 14 路由模块",archSkillsDesc:"13 个 Cursor/Copilot",cliSetupDesc:"初始化项目",cliStatusDesc:"环境自检",cliUiDesc:"启动 Dashboard",cliUpgradeDesc:"升级 IDE 集成",cliSyncDesc:".md → DB 增量同步",cliAisDesc:"AI 扫描提取 Candidates",cliAisForceDesc:"强制重新扫描全量",cliWatchDesc:"文件监控 + 指令触发",cliSearchDesc:"搜索知识库",cliSearchSemanticDesc:"语义搜索模式",cliGuardDesc:"Guard 规则检查",cliServerDesc:"单独启动 API 服务",cliUpgradeMcpDesc:"升级 MCP / Skills / Rules",cliInstallFullDesc:"全量安装 IDE 集成",cliSyncForceDesc:"全量重建 DB",cliSyncDryDesc:"预览同步变更"},moduleExplorer:{title:"Module Explorer",scanTargets:"扫描 Targets",scanning:"扫描中...",scanComplete:"扫描完成",targetFiles:"{count} 个文件",noTargets:"未发现 Target",recipesInTarget:"关联 Recipes",guardSummary:"Guard 概况",guardViolations:"{count} 项违规",noViolations:"无违规",openFile:"打开文件",refreshTree:"刷新文件树",extractFromFile:"提取代码",fileDetail:"文件详情",projectModules:"项目模块 ({count})",addFolderScan:"添加目录扫描",refreshProject:"刷新项目结构",discovererFolderScan:"目录扫描",removeFolder:"移除此目录",fullProjectResults:"全项目扫描结果",moduleLabel:"模块: {name}",reviewResults:"审核提取结果",resultsCount:"{count} 条",candidateSuffix:" Candidate",fullProjectScanning:"全项目扫描中",moduleScanLabel:"模块扫描: {name}",filesInScan:"本次扫描的文件 ({count})",knowledgeExtract:"知识提取",knowledgeExtractHint:"在左侧选择模块扫描,或点击 + 添加任意目录。提取代码模式并生成 Recipe 知识卡片。",guardAuditSummary:"Guard 审计摘要",auditedFiles:"已审计文件:",totalViolationsLabel:"违反总数:",errorsCount:"{count} 错误",warningsCount:"{count} 警告",recipeNotExist:"「{name}」不存在于当前知识库",recipeNotExistTitle:"Recipe 不存在",loadRecipeFailed:"加载 Recipe 失败",browseFailedTitle:"目录浏览失败",browseFailedDefault:"无法加载目录列表",selectFolderTitle:"选择要扫描的目录",scanningDirs:"正在扫描项目目录...",noDirs:"未发现可扫描的目录",sourceFileCount:"{count} 文件",selectFolderHint:"选择包含源码文件的目录,系统将自动检测语言并执行 AI 扫描",modulesTabLabel:"模块 ({count})",foldersTabLabel:"目录"},search:{title:"智能搜索",searchPlaceholder:"输入搜索关键词...",noResults:"未找到匹配结果",resultCount:"找到 {count} 条结果",relevance:"相关度",source:"来源",category:"分类",language:"语言",matchType:"匹配类型",matchExact:"精确",matchFuzzy:"模糊",matchSemantic:"语义匹配",matchKeyword:"关键词匹配",viewRecipe:"查看 Recipe",insertCode:"插入代码",searchFailed:"搜索失败。请重试。",searching:"搜索中...",searchBtn:"搜索",emptyHint:"输入关键词后点击搜索",contextRelevant:"上下文相关",authorityScore:"权威分",usage:"使用",usageCount:"{count}次",recommendReason:"推荐理由",viewFullContent:"查看完整内容",similarity:"相似度",quality:"质量",noContent:"无内容",useSnippet:"使用此片段",importedFrameworks:"导入的框架:",relatedApis:"相关 APIs:"},scanResult:{title:"扫描结果",trigger:"Trigger",triggerPlaceholder:"@kebab-case-id",description:"描述",descPlaceholder:"中文简述 ≤80 字,引用真实类名",category:"分类",language:"语言",code:"代码模板",markdown:"项目特写",rationale:"设计原理",tags:"标签",tagsPlaceholder:"标签: 按 Enter/逗号添加...",headers:"Imports",headersPlaceholder:"#import <Header.h>",confidence:"置信度",confidenceHigh:"高",confidenceMedium:"中",confidenceLow:"低",source:"来源",authorityScore:"权威分",saveAsRecipe:"保存为 Recipe",saveAsKnowledge:"保存知识",discard:"丢弃",keepCandidate:"保留候选",qualityWarning:"质量提醒",lowQualityHint:"该条目质量较低,建议润色后再保存",editBeforeSave:"编辑后保存",triggerRequired:"请输入 Trigger",savedAsRecipe:"已保存并发布为 Recipe",savedToKb:"已保存到 KB",validation:"验证方法",validationMethod:"方法:",validationExpected:"预期:",steps:"实施步骤",codeChanges:"代码变更",constraints:"约束条件",guardRules:"Guard 规则",boundaryConstraints:"边界约束",preconditions:"前置条件",sideEffects:"副作用",relations:"关系图 (Relations)",knowledgeEntryTitle:"知识条目标题",aiScan:"AI 扫描",lifecyclePending:"待审核",lifecycleActive:"已发布",lifecycleDeprecated:"已废弃",saving:"保存中...",cursorDelivery:"Cursor Delivery",aiReasoning:"AI 推理",confidenceLabel:"置信度 {value}%",sourceLabel:"来源:",noArticle:"(无项目特写内容)",noCode:"(无代码模板)",done:"完成",formatHeaders:"格式化",cleanUnused:"清理未引用",addHeader:"+ 添加",usedInCode:"代码中有引用",unusedInCode:"代码中未找到引用",unknown:"无法判断",unreferenced:"未引用",removeTag:"移除",deleteHeader:"删除",module:"模块",mode:"模式",difficulty:"难度",difficultyBeginner:"初级",difficultyIntermediate:"中级",difficultyAdvanced:"高级",highDuplicateRisk:"高重复风险:",compareBeforeSave:"建议先对比再保存",similarRecipes:"相似 Recipe:",referenced:"引用",collapseHeaders:"收起",editHeaders:"编辑"},createModal:{title:"New Recipe",importFromPath:"Import from Project Path",or:"Or",importFromClipboard:"Import from Clipboard",scanFile:"Scan File",useClipboard:"Use Copied Code",pathPlaceholder:"e.g. Sources/MyModule/Auth.swift",aiThinking:"AI is thinking..."},llmConfig:{title:"LLM 配置",provider:"AI Provider",model:"Model",apiKey:"API Key",proxy:"代理",optional:"(可选)",apiKeyPlaceholderSet:"留空保持当前 Key 不变",apiKeyPlaceholderEmpty:"请输入 API Key",envWarning:"项目尚未配置 .env 文件,保存后将自动创建。",cancel:"取消",saved:"已保存",saveToEnv:"保存到 .env",apiKeyRequired:"请填写 API Key",configured:"已配置:",saveSuccess:"保存成功",saveFailed:"保存失败",providers:{gemini:"Google Gemini",openai:"OpenAI",deepseek:"DeepSeek",claude:"Claude",ollama:"Ollama (本地)"}},recipeEditor:{title:"Edit Recipe",authorityScore:"权威分",path:"Path",description:"描述",markdown:"Markdown 文档",code:"代码 / 标准用法",rationale:"设计原理",steps:"实施步骤",codeChanges:"代码变更",validation:"验证方法",validationMethod:"方法:",validationExpected:"预期:",tags:"标签",constraints:"约束条件",guardRules:"Guard 规则",boundaryConstraints:"边界约束",preconditions:"前置条件",sideEffects:"副作用",relations:"关系图 (Relations)",preview:"Preview",edit:"Edit",cancel:"Cancel",saveChanges:"Save Changes",saving:"保存中...",qualityLevels:{basic:"Basic",good:"Good",solid:"Solid",great:"Great",excellent:"Excellent"},descPlaceholder:"Recipe 摘要描述...",rationalePlaceholder:"为何采用此方案...",relationTypes:{inherits:"继承",implements:"实现",calls:"调用",dependsOn:"依赖",dataFlow:"数据流",conflicts:"冲突",extends:"扩展",associates:"关联"},noContent:"No content",authorityFailed:"设置权威分失败:"},searchModal:{title:"as:search — 选择并插入",keyword:"关键词:",keywordAll:"(全部)",insertTo:"插入到:",noResults:"未找到匹配的 Recipe",quality:"质量:",insertBtn:"插入",inserting:"插入中...",insertSuccess:"✅ 已插入到",insertFailed:"❌ 插入失败"},refineProgress:{refining:"润色中",completed:"已完成",reviewing:"审核中",progress:"{current}/{total}",fields:"字段:",timeElapsed:"已用时",eta:"预计剩余",title:"AI 润色",doneTitle:"AI 润色完成",runningTitle:"AI 润色中",doneMsg:"{refined} 条已更新",doneMsgWithFail:"{refined} 条已更新,{failed} 条失败",progressMsg:"{done}/{total} 条候选",closeBtn:"关闭"},spmCompare:{title:"SPM 版本对比",current:"当前版本",latest:"最新版本",diff:"差异",added:"新增",removed:"移除",changed:"变更",unchanged:"未变",updateAvailable:"可更新",upToDate:"已是最新",updateBtn:"更新依赖",closeBtn:"关闭",package:"包名",from:"从",to:"到",noChanges:"无变更",candidateCopied:"候选内容已复制到剪贴板",recipeCopied:"Recipe 内容已复制到剪贴板",copied:"已复制",deleteConfirm:"确定删除该候选?",deleteFailed:"删除失败",compareTitle:"对比:候选 vs Recipe",deleteCandidate:"删除候选",auditCandidate:"审核候选",editRecipe:"编辑 Recipe",switchRecipe:"切换 Recipe:",candidateTitle:"候选:{title}",copyCandidate:"复制候选",noCode:"(无代码)",aiContextProfile:"AI Context / 项目特写",noGuide:"(无使用指南)",copyRecipe:"复制 Recipe"},silentLabels:{watch:"as:create",draft:"草稿",cli:"CLI",pending:"待审核(24h)",recipe:"新建片段"},lifecycle:{pending:"待审核",active:"已发布",deprecated:"已废弃"},kind:{rule:"规则",pattern:"模式",fact:"事实"},app:{errorBoundary:{title:"页面出现异常",refreshBtn:"刷新页面"},sync:{success:"Recipes 已同步到 IDE Snippets",successTitle:"Snippet 同步成功",failed:"同步失败",failedHint:"请检查 IDE 配置并重试"},projectRefresh:{success:"Target 列表与文件树已更新",successTitle:"项目结构已刷新",failed:"刷新失败"},extract:{success:"提取结果已进入候选池,请在 Candidates 页审核",successTitle:"提取完成",markerSuccess:"精准锁定标记代码,已加入候选池",normalSuccess:"提取结果已加入候选池",noMarker:"未找到 ASD 标记,AI 将分析完整文件",extracting:"提取中",failed:"Extraction failed"},clipboard:{empty:"请先复制代码到剪贴板",emptyTitle:"剪贴板为空",analyzing:"已收到代码,AI 正在识别可复用模式...",analyzingTitle:"剪贴板分析中",resultMulti:"已识别 {count} 条 Recipe,请在候选池审核",resultTitle:"AI 识别完成",aiFailed:"AI 识别失败",permissionError:"浏览器可能未授权剪贴板访问",permissionTitle:"剪贴板读取失败"},load:{failed:"无法加载项目数据",failedTitle:"加载失败",failedHint:"请确认项目路径有效后重试"},scan:{events:{initializing:"正在启动扫描...",filesLoaded:"已加载 {count} 个源文件",readingFiles:"正在读取 {count} 个文件内容...",aiAnalyzing:"正在 AI 分析提取可复用模式...",enriching:"正在增强 {count} 条结果...",completing:"扫描完成,正在加载结果..."},streamInit:"正在建立流式连接...",completed:"扫描完成",targetSuccess:"发现 {count} 条可复用代码模式,请在右侧审核",targetSuccessTitle:"Target 扫描完成",aiNotConfigured:"AI 未配置",noResults:"AI 扫描未返回结果",noSnippets:"该 Target 中未找到可复用的代码片段",scanComplete:"扫描完成",scanFailedHint:"请确认 Target 包含有效的源代码文件",scanFailed:"扫描失败",timeout:"扫描超时,请尝试减少 Target 文件数量",timeoutTitle:"扫描超时",scanError:"扫描出错"},coldStart:{collecting:"正在收集项目结构...",skeletonCreated:"骨架已创建,正在后台填充...",skeletonDetail:"冷启动骨架已创建: {targets} 个 Target, {files} 个文件, {deps} 条依赖...正在后台逐维度填充...",guardSuffix:"Guard: {count} 项违规",timeout:"冷启动超时,请检查项目文件数量"},fullScan:{collecting:"正在收集所有 Target 文件...",phase5:"正在收集源文件...",phase15:"正在 AI 分析代码模式...",phase25:"AI 提取中(大项目可能需要数分钟)...",phase35:"AI 提取中...",phase45:"AI 深度分析中...",phase55:"持续处理中...",phase65:"正在运行 Guard 审计...",phase75:"正在汇总结果...",phase85:"即将完成...",partialComplete:"扫描部分完成(超时)",completed:"全项目扫描完成",resultDetail:"全项目扫描完成: {count} 条候选",guardSuffix:"Guard: {count} 处违反",timeoutSuffix:"(部分结果,AI 超时)",noContent:"全项目扫描完成,未发现可提取内容",timeout:"扫描超时,请尝试减少项目文件数量或分 Target 扫描",timeoutTitle:"扫描超时",scanError:"扫描出错"},recipe:{triggerRequired:"请输入 Trigger",savedAsRecipe:"已保存并发布为 Recipe",savedToKb:"已保存到 KB",saveFailed:"保存失败",saveRecipeFailed:"保存 Recipe 失败",deleteFailed:"删除失败"},candidate:{clearConfirm:"确定移除「{name}」下的全部候选?",clearDone:"已移除 {name} 下的全部候选",pushSuccess:"已加入 Candidate 待审核队列",pushFailed:"创建 Candidate 失败"}},globalChat:{refineFields:{summary:"摘要",code:"代码/标准用法",markdown:"Markdown 文档",rationale:"设计原理",tags:"标签",confidence:"置信度",aiInsights:"AI 洞察",agentNotes:"Agent 笔记",relations:"关联关系"},diff:{noChanges:"未检测到变更",excludedRestore:"已排除 · 恢复",exclude:"排除",before:"Before",after:"After",empty:"(空)"},system:{refinePrefix:`🎯 润色模式 — **{title}**
2
2
 
3
3
  当前摘要: {description}
4
4
 
@@ -6,7 +6,7 @@ import{r as o,j as e,z as ka,l as sl,h as Ca,o as Sa,m as Aa,M as al,a as ll,R a
6
6
 
7
7
  ## 使用场景
8
8
 
9
- ## 操作步骤`},guardRuleMessages:{"no-main-thread-sync":"禁止在主线程上使用 dispatch_sync(main),易死锁","main-thread-sync-swift":"禁止在主线程上使用 DispatchQueue.main.sync,易死锁","objc-dealloc-async":"dealloc 内禁止使用 dispatch_async/dispatch_after/postNotification 等","objc-block-retain-cycle":"block 内直接使用 self 可能循环引用,建议 weakSelf","objc-assign-object":"assign 用于对象类型会产生悬垂指针,建议改为 weak 或 strong","swift-force-cast":"强制类型转换 as! 在失败时崩溃,建议 as? 或 guard let","swift-force-try":"try! 在异常时崩溃,建议 do-catch 或 try?","objc-timer-retain-cycle":"NSTimer 以 self 为 target 会强引用 self,需在 dealloc 前 invalidate 或使用 block 形式","objc-possible-main-thread-blocking":"sleep/usleep 可能造成主线程阻塞","js-no-eval":"eval() 存在安全风险和性能问题,应避免使用","js-no-var":"使用 let/const 替代 var,避免变量提升问题","js-no-console-log":"生产代码应移除 console.log,使用专用日志库","js-no-debugger":"生产代码中不应包含 debugger 语句","js-no-alert":"生产代码中不应使用 alert(),影响用户体验","ts-no-non-null-assertion":"非空断言 ! 可能掩盖 null/undefined 错误","py-no-bare-except":"裸 except: 会捕获所有异常(含 SystemExit),应指定异常类型","py-no-exec":"exec() 存在安全风险,应避免使用","py-no-mutable-default":"函数默认参数使用可变对象(list/dict/set)会导致共享状态 bug","py-no-star-import":"from module import * 导致命名空间污染,应显式导入","py-no-assert-in-prod":"assert 在 -O 模式下会被移除,不应用于生产逻辑校验","java-no-system-exit":"System.exit() 直接终止 JVM,应抛异常或返回状态码","java-no-raw-type":"使用泛型集合替代原始类型 (如 List<String> 替代 List)","java-no-empty-catch":"空 catch 块会静默吞掉异常,至少应记录日志","java-no-thread-stop":"Thread.stop() 已废弃且不安全,使用 interrupt() 协作式终止","kotlin-no-force-unwrap":"!! 非空断言在值为 null 时抛 NPE,应使用 ?. 或 ?: 安全访问","go-no-panic":"panic 应仅用于不可恢复错误,库代码应返回 error","go-no-err-ignored":"错误值不应用 _ 忽略,应处理或明确标注","go-no-init-abuse":"init() 函数副作用难以追踪,避免在 init 中执行复杂逻辑","go-no-global-var":"全局可变变量导致并发安全问题,考虑使用依赖注入","dart-no-print":"生产代码应使用 logger 替代 print(),便于日志分级和关闭","dart-avoid-dynamic":"避免使用 dynamic 类型,使用具体类型或泛型提升类型安全","dart-no-set-state-after-dispose":"setState 调用前应检查 mounted 状态,避免 disposed 后调用","dart-avoid-bang-operator":"避免使用 ! 空断言操作符,优先使用 ?? 默认值或 ?. 安全调用","dart-prefer-const-constructor":"当所有字段均为 final 时,构造函数应声明为 const 以优化 Widget 重建","dart-no-relative-import":"lib/ 目录内应使用 package: 形式的绝对导入,避免相对路径导入","dart-dispose-controller":"TextEditingController/AnimationController 等须在 dispose() 中释放","dart-no-build-context-across-async":"BuildContext 不应跨越 async gap 使用,可能导致引用已卸载的 Widget"},guardRuleFixSuggestions:{"objc-block-retain-cycle":"声明 __weak typeof(self) weakSelf = self; 后在 block 内使用 weakSelf","swift-force-cast":"使用 as? 配合 guard let / if let 进行安全转换","kotlin-no-force-unwrap":"使用 ?. 安全调用或 ?: 提供默认值","dart-no-set-state-after-dispose":"使用 if (mounted) setState(...) 守卫","dart-avoid-bang-operator":"使用 ?. 安全调用或 ?? 提供默认值","dart-prefer-const-constructor":"移除 new 关键字,并在 Widget 构造调用前加 const","dart-dispose-controller":"在 State.dispose() 中调用 controller.dispose()","dart-no-build-context-across-async":"在 await 前缓存所需数据,或在 await 后检查 mounted"}},Bl={common:{save:"Save",saving:"Saving...",saved:"Saved",cancel:"Cancel",confirm:"Confirm",delete:"Delete",edit:"Edit",close:"Close",copy:"Copy",copied:"Copied",loading:"Loading...",retry:"Retry",refresh:"Refresh Page",back:"Back",search:"Search",noData:"No data",operationFailed:"Operation failed",saveFailed:"Save failed",deleteFailed:"Delete failed",loadFailed:"Load failed",areYouSure:"Are you sure?",yes:"Yes",no:"No",all:"All",none:"None",preview:"Preview",apply:"Apply",applying:"Applying...",stop:"Stop",export:"Export",import:"Import",more:"More",collapse:"Collapse",expand:"Expand"},sidebar:{recipes:"Recipes",moduleExplorer:"Module Explorer",candidates:"Candidates ({count})",batchManage:"Batch Manage",depGraph:"Dependency Graph",knowledgeGraph:"Knowledge Graph",guard:"Guard",skills:"Skills",repoWiki:"Repo Wiki",aiAssistant:"AI Assistant",help:"Help",collapseNav:"Collapse navigation",expandNav:"Expand navigation",roleDeveloper:"Developer",roleAgent:"Agent",roleChatAgent:"ChatAgent",modeLogin:"Login",modeProbe:"Probe",logout:"Log out",tokenLabel:"7-Day Tokens",tokenCalls:"calls",tokenCallsFull:"{count} AI calls"},header:{searchPlaceholder:"Search knowledge...",semanticSearch:"Semantic",semanticSearchTitle:"Semantic Search (Brain AI)",semanticSearchFailed:"Semantic search failed. Make sure you have run `asd embed` to build the index.",aiSwitchFailed:"Failed to switch AI provider. Check if the project root is writable.",aiNotConfigured:"AI not configured — click to set up LLM",configureLlm:"Configure LLM",clickSwitchAi:"Click to switch AI provider",switchAi:"Switch AI",editEnvConfig:"Edit .env config",closeAiChat:"Close AI Chat",openAiChat:"Open AI Chat",aiChat:"AI Chat",newRecipe:"New Recipe",syncSnippets:"Sync Snippets",langSwitch:"EN / 中"},login:{title:"AutoSnippet",subtitle:"Connect developers, AI & project knowledge",heading:"Sign in to Dashboard",username:"Username",password:"Password",usernamePlaceholder:"Enter username",passwordPlaceholder:"Enter password",usernameRequired:"Username is required",passwordRequired:"Password is required",loginFailed:"Login failed, please try again",loggingIn:"Signing in...",loginBtn:"Sign in",envHint:"Authentication is controlled by the VITE_AUTH_ENABLED environment variable"},pagination:{showing:"Showing {start}-{end} of {total}",perPage:"Per page",unit:"",firstPage:"First page",prevPage:"Previous page",nextPage:"Next page",lastPage:"Last page"},recipes:{title:"Recipe Knowledge Base",sortNewest:"Newest",sortAlpha:"A-Z",sortQuality:"Quality",filterAll:"All types",filterSnippet:"Snippets only",filterKnowledge:"Knowledge only",searchPlaceholder:"Search Recipes...",totalCount:"{count} total",noResults:"No matching Recipes",batchActions:"Batch Actions",selectAll:"Select all",deselectAll:"Deselect all",batchDelete:"Delete selected",batchDeleteConfirm:"Delete {count} selected Recipes?",batchDeleteDone:"{count} deleted",qualityAuthorityScore:"Authority",qualityExcellent:"Excellent",qualityGreat:"Great",qualitySolid:"Solid",qualityGood:"Good",qualityBasic:"Basic",knowledgeType:"Type",typeSnippet:"Snippet",typeKnowledge:"Knowledge",sourceLabel:"Source",sourceBootstrap:"bootstrap",sourceManual:"manual",sourceAiScan:"ai-scan",sourceExtract:"extract",sourceClipboard:"clipboard",editRecipe:"Edit",deleteRecipe:"Delete",pushToCandidate:"Push to Candidate",recipeDetail:"Recipe Detail",editBtn:"Edit",description:"Description",markdown:"Markdown",code:"Code",designRationale:"Design Rationale",steps:"Implementation Steps",codeChanges:"Code Changes",validation:"Validation",tags:"Tags",constraints:"Constraints",guardRules:"Guard Rules",boundaryConstraints:"Boundary Constraints",preconditions:"Preconditions",sideEffects:"Side Effects",relations:"Relations",headers:"Headers",noContent:"No content",semanticResults:"Semantic Search Results",semanticSimilarity:"Similarity",insertToFile:"Insert to file",viewInRecipes:"View in Recipes",reasoning:"Reasoning",sourceColon:"Source:",confidenceColon:"Confidence:",alternativesLabel:"Alternatives:",qualityGrade:"Quality Grade",qualityCompleteness:"Completeness",qualityAdaptation:"Adaptation",qualityDocumentation:"Documentation",usageCount:"Uses {count}",emptyValue:"(empty)",verificationMethod:"Method:",verificationExpected:"Expected:",knowledgeTypes:{codePattern:"Code Pattern",architecture:"Architecture",bestPractice:"Best Practice",codeStandard:"Code Standard",callChain:"Call Chain",rule:"Rule"}},candidates:{title:"Candidate Review Pool",tabs:{pending:"Pending",approved:"Approved",rejected:"Rejected"},sortNewest:"Newest first",sortOldest:"Oldest first",sortConfidence:"By confidence",searchPlaceholder:"Search candidates...",totalCount:"{count} pending",noResults:"No pending candidates",noPending:"All reviewed",confidenceHigh:"High",confidenceMedium:"Medium",confidenceLow:"Low",sourceBootstrap:"bootstrap",sourceManual:"manual",sourceAiScan:"ai-scan",sourceExtract:"extract",sourceClipboard:"clipboard",sourceSignal:"signal",approve:"Approve",reject:"Reject",approveAndSave:"Approve & Save as Recipe",batchApprove:"Approve ({count})",batchReject:"Reject ({count})",batchDeleteConfirm:"Remove {count} selected candidates?",batchDeleteDone:"{count} deleted",approveSuccess:"Approved as Recipe",rejectSuccess:"Rejected",aiRefine:"AI Refine",viewDetail:"View Detail",selectAll:"Select all",deselectAll:"Deselect all",silent:"Silent",expandedDetail:"Expanded Detail",collapse:"Collapse",qualityDimensions:"Quality Dimensions",authorityScore:"Authority",trigger:"Trigger",category:"Category",language:"Language",path:"Path",description:"Description",code:"Code",markdown:"Markdown",rationale:"Rationale",tags:"Tags",headers:"Headers",confidence:"Confidence",source:"Source",createdAt:"Created",updatedAt:"Updated",groupByTarget:"Group by Target",clearGroup:'Remove all candidates under "{name}"?',clearGroupDone:"Removed all candidates under {name}",coldStartTitle:"Cold Start: structural collection + 9-dimension Candidate creation (MCP compatible)",enrichTitle:"① Structure Fill: populate missing rationale / knowledgeType / complexity / scope / steps / constraints (fill only, no overwrite; run before Refine)",refineTitle:"② Content Refine: improve summary, add architectural insights, infer relations, adjust confidence (per-item AI refinement; run after Structure Fill)",withCode:"(with code {count})",emptyHint:"Click the button below to cold-start the knowledge base, or use CLI to create manually",fullScanBtn:"Full Scan ·",clipboardCreate:"From Clipboard",scanningHint:"Knowledge dimensions are being extracted and reviewed by AI in the background. Results will appear automatically.",scannedAt:"Scanned at {time}",similarOnly:"Similar only",resetFilters:"Reset",approveCurrentPage:"Approve current page",removeCurrentPage:"Remove current page",deleteAll:"Delete all",overallScore:"Overall {score}",similarPrefix:"Similar",linesCount:"{count} lines",enrichTitleSingle:"① Structure Fill: populate missing semantic fields (rationale / knowledgeType / complexity, etc.)",refineTitleSingle:"② Content Refine: improve descriptions, add insights, infer relations (supports custom prompts)",projectProfile:"Project Profile",recipeCompare:"Recipe Compare",refineEnhanced:"Refine Enhanced Info",agentNotes:"Agent Notes:",similarRecipe:"Similar Recipes",similarWith:"Similar to {name} {score}%",enrichShort:"Fill",refineShort:"Refine",enrichTitleBottom:"① Structure Fill",refineTitleBottom:"② Content Refine",timeJustNow:"Just now",timeMinutesAgo:"{n} min ago",timeHoursAgo:"{n} hr ago",timeDaysAgo:"{n} days ago",confidenceHighLabel:"High",confidenceMediumLabel:"Medium",confidenceMediumLowLabel:"Med-Low",confidenceLowLabel:"Low",sourceAiScanLabel:"AI Full Scan",sourceMcpLabel:"MCP Submit",sourceManualLabel:"Manual",sourceFileWatcherLabel:"File Watcher",sourceClipboardLabel:"Clipboard",sourceSignalLabel:"Signal",sourceSubmitCheckLabel:"AI Review Submit"},knowledge:{title:"Batch Management",lifecycle:"Lifecycle",lifecycleCandidate:"Candidate",lifecycleRecipe:"Recipe",lifecycleArchived:"Archived",searchPlaceholder:"Search knowledge entries...",totalCount:"{count} total",noResults:"No matching entries",batchActions:"Batch Actions",batchPromote:"Promote",batchDemote:"Demote",batchArchive:"Archive",batchDelete:"Delete",batchDeleteConfirm:"Delete {count} selected entries?",batchDeleteDone:"{count} deleted",selectAll:"Select all",deselectAll:"Deselect all",detail:"Detail",detailContent:"Content",detailQuality:"Quality",detailMeta:"Metadata",qualityCompleteness:"Completeness",qualityClarity:"Clarity",qualityRelevance:"Relevance",qualityAccuracy:"Accuracy",qualityUsability:"Usability",authorityScore:"Authority",source:"Source",category:"Category",language:"Language",createdAt:"Created",updatedAt:"Updated",path:"Path",trigger:"Trigger",lifecyclePending:"Pending",lifecycleActive:"Active",lifecycleDeprecated:"Deprecated",actionPublish:"Publish",actionDeprecate:"Deprecate",actionReactivate:"Reactivate",sourceBootstrap:"AI Full Scan",sourceMcp:"MCP Submit",sourceManual:"Manual Create",sourceFileWatcher:"File Watcher",sourceClipboard:"Clipboard",sourceCli:"CLI",sourceAgent:"AI Agent",sourceSubmitCheck:"AI Review Submit",allCategories:"All categories",selectedCount:"{count} selected",batchPublish:"Batch Publish",quickBatchPublish:"Quick Publish",batchPublishResult:"{success} published, {fail} failed",batchPublishFailed:"Batch publish failed",batchPublishComplete:"Batch publish complete",noAutoApprovable:"No auto-approvable pending entries",noPublishable:"Nothing to publish",autoPublishResult:"{count} auto-approvable entries published",autoApprovable:"Auto-approvable",clearFilters:"Clear filters",loadFailed:"Failed to load knowledge entries",operationSuccess:"Operation successful",deleteConfirmMsg:'Delete "{title}"? This cannot be undone.',deleteSuccess:'Deleted "{title}"',deleteFailed:"Delete failed",deprecateReasonPrompt:"Enter deprecation reason:",rejectionReason:"Rejection Reason",summary:"Summary",relatedKnowledge:"Related Knowledge",reasoning:"Reasoning",confidence:"Confidence",alternatives:"Alternatives",qualityGrade:"Quality Grade",qualityAdaptation:"Adaptation",qualityDocumentation:"Documentation",qualityCompletionLabel:"Completeness",markdownDoc:"Markdown Document",importHeaders:"Import Headers",codePattern:"Code / Standard Usage",designRationale:"Design Rationale",implementSteps:"Implementation Steps",constraintsLabel:"Constraints",aiInsight:"AI Insight",lifecycleHistoryLabel:"Lifecycle History",scope:"Scope",scopeUniversal:"Universal",scopeProject:"Project-specific",scopeModule:"Module-level",complexity:"Complexity",complexityAdvanced:"Advanced",complexityIntermediate:"Intermediate",complexityBeginner:"Beginner",sourceFile:"Source File",prev:"Previous",next:"Next",narrow:"Narrow",widen:"Widen",guardHits:"Guard",adoptions:"Adoptions",searchHits:"Searches",statViews:"Views",statApplications:"Applications",published:"Published"},knowledgeGraph:{title:"Knowledge Graph",nodeTypes:"Node Types",nodeRecipe:"Recipe",nodeModule:"Module",nodeFile:"File",nodeSymbol:"Symbol",relationInherits:"Inherits",relationImplements:"Implements",relationCalls:"Calls",relationDependsOn:"Depends on",relationDataFlow:"Data flow",relationConflicts:"Conflicts",relationExtends:"Extends",relationAssociates:"Associates",relationContains:"Contains",relationImports:"Imports",relationOverrides:"Overrides",relationComposedOf:"Composed of",relationReferencedBy:"Referenced by",relationTestedBy:"Tested by",relationDocumentedIn:"Documented in",tools:"Tools",zoomIn:"Zoom in",zoomOut:"Zoom out",resetView:"Reset view",fitView:"Fit to canvas",toggleLabels:"Toggle labels",nodeDetail:"Node Detail",relatedNodes:"Related Nodes",noSelection:"Click a node to see details",legend:"Legend",searchPlaceholder:"Search nodes...",noResults:"No matching nodes",totalNodes:"{count} nodes",totalEdges:"{count} edges",loadFailed:"Failed to load knowledge graph",empty:"Knowledge graph is empty",emptyDesc:"No relation data between Recipes. Click below to let AI analyze potential relations (requires / extends / enforces / calls, etc.).",discoverRelations:"AI Discover Relations",discovering:"AI analyzing…",refresh:"Refresh",retry:"Retry",statsLabel:"{nodes} nodes · {edges} relations",cancelSelection:"Deselect",outEdges:"Outgoing (dependencies)",inEdges:"Incoming (dependents)",none:"None",relationRequires:"Requires",relationEnforces:"Enforces",relationPrerequisite:"Prerequisite",relationReferences:"References",relationAlternative:"Alternative",relationDeprecatedBy:"Deprecated by",relationSolves:"Solves",discoverAnalyzing:"AI analyzing… ({elapsed}s elapsed)",discoverPollTimeout:"Poll timeout. The task may still be running in the background. Please refresh the page later.",discoverNoResults:"Analysis complete, checked {pairs} Recipe pairs, no relations found. Try again after adding more Recipes.",discoverBatchErrors:"Analysis complete, but {errors} AI batch calls failed, no relations found. Check AI Provider config.",discoverSuccess:"Discovered {count} relations ({pairs} pairs analyzed{failMsg})",discoverBatchFailed:", {count} batches failed",discoverAiNotConfigured:"AI not configured: {error}",discoverTimeout:"Task timeout: {error}",discoverFailed:"Discovery failed: {error}",discoverRunning:"AI analysis still running…",discoverStarted:"AI analysis started, running in background…",discoverInsufficientRecipes:"Not enough Recipes to analyze",discoverPreviousTimeout:"Previous task timed out, please retry",discoverAiUnavailable:"AI service unavailable: {error}",discoverStartFailed:"Start failed: {error}",unknownError:"Unknown error",discoverTooltip:"AI automatically discover Recipe relations"},guard:{title:"Guard Audit",summary:"Summary",totalViolations:"{count} violations",noViolations:"No violations",searchPlaceholder:"Search rules or files...",severityError:"Error",severityWarning:"Warning",severityInfo:"Info",ruleId:"Rule ID",file:"File",line:"Line",message:"Message",severity:"Severity",statusOpen:"Open",statusResolved:"Resolved",statusIgnored:"Ignored",resolve:"Mark as resolved",ignore:"Ignore",reopen:"Reopen",aiGenRule:"AI Generate Rule",aiGenRuleDesc:"Describe the pattern to detect and AI will generate a Guard rule",aiGenPlaceholder:"e.g. Disallow direct network calls in Views",aiGenerating:"AI Generating...",aiGenSuccess:"Rule generated",aiGenFailed:"Rule generation failed",refreshAudit:"Refresh Audit",refreshing:"Refreshing audit...",refreshSuccess:"Audit refreshed",reportIssue:"Report false positive",clearHistory:"Clear History",clearConfirm:"Are you sure to clear all Guard violation records?",addRuleValidation:"Please fill in rule ID, message, regex and at least one language",patternLabel:"Regex (matched per line)",languagesLabel:"Languages",dimensionLabel:"Audit Scope",noteLabel:"Note",allLanguages:"All Languages",noMatchingRules:"No matching rules, adjust filters",violationRecords:"Violations ({runs} runs, {count} violations)",dimFile:"Same file",dimTarget:"Same target",dimProject:"Same project",rationale:"Rationale",fixSuggestion:"Fix suggestion",sourceRecipe:"Source Recipe",categorySafety:"Safety",categoryCorrectness:"Correctness",categoryPerformance:"Performance",categoryStyle:"Style",category:"Category",currentProject:"Current project",generatedRuleId:"Generated rule ID",dimNoLimit:"No limit",notePlaceholder:"Simple pattern hint only",copyFixSuggestion:"Copy fix suggestion",codeLevelConfigTip:"Code-Level and Cross-File checks (e.g. excessive unwrap, circular import) can be disabled or threshold-adjusted via config.",codeLevelConfigPath:"Config path: config/default.json → guard.disabledRules / guard.codeLevelThresholds",tableHeaders:{rule:"Rule",file:"File",line:"Line",message:"Description",severity:"Severity",status:"Status",actions:"Actions"}},skills:{title:"Skills Management",searchPlaceholder:"Search Skills...",totalCount:"{count} total",noResults:"No matching Skills",addSkill:"Add Skill",editSkill:"Edit Skill",deleteSkill:"Delete Skill",deleteConfirm:"Delete this Skill?",deleteSuccess:"Deleted",saveSuccess:"Saved",skillName:"Name",skillNamePlaceholder:"Enter Skill name",skillDescription:"Description",skillDescPlaceholder:"Enter Skill description",skillTrigger:"Trigger",skillTriggerPlaceholder:"Enter trigger condition",skillAction:"Action",skillActionPlaceholder:"Enter action content",skillEnabled:"Enabled",skillDisabled:"Disabled",toggleEnable:"Enable/Disable",aiRecommend:"AI Recommend",aiRecommendDesc:"Based on project analysis, AI recommends the following Skills",aiRecommending:"AI analyzing...",aiRecommendSuccess:"{count} recommended",aiRecommendFailed:"Recommendation failed",acceptRecommend:"Accept",rejectRecommend:"Ignore",bulkAccept:"Accept all",signalBadge:"Signal",category:"Category",priority:"Priority",priorityHigh:"High",priorityMedium:"Medium",priorityLow:"Low",subtitle:"Agent skill docs — guide AI on how to use AutoSnippet tools",fetchFailed:"Failed to fetch Skills list",loadError:"does not exist or read error",loadSkillFailed:"Failed to load Skill",updateSuccess:"updated",updateFailed:"Failed to update Skill",deleteFailed:"Failed to delete Skill",createSuccess:"created",createFailed:"Failed to create Skill",createAddedToKB:"Created and added to knowledge base",filterProject:"Project",filterBuiltin:"Built-in",noRecommendations:"No recommendations yet. More signals will accumulate with usage.",aiRecommendTooltip:"Recommend Skills based on usage patterns",creating:"Creating",useCase:"Use case",chars:"chars",related:"Related",confirmDelete:"Confirm Delete",deleteSkillConfirmMsg:'Delete Skill "{name}"? This cannot be undone.',selectToView:"Select a Skill on the left to view details",checkGenerated:"Please review the generated content",aiGenerated:"AI generated Skill",aiGenFailed:"AI generation failed",fillRequired:"Please fill in name, description and content",savedToKB:"Saved to knowledge base",aiGenMode:"AI Generate",manualMode:"Manual",describeSkill:"Describe the Skill you want to create",aiGeneratingContent:"AI generating...",generateSkill:"Generate Skill",skillContent:"Skill document content",createdBy:{manual:"Manual","user-ai":"AI Assisted","system-ai":"Auto","external-ai":"External AI"}},depGraph:{title:"Dependency Graph",searchPlaceholder:"Search modules...",noResults:"No matching modules",totalModules:"{count} modules",totalDeps:"{count} dependencies",layout:"Layout",layoutTree:"Tree",layoutForce:"Force",layoutCircular:"Circular",zoomIn:"Zoom in",zoomOut:"Zoom out",resetView:"Reset view",fitView:"Fit to canvas",nodeDetail:"Module Detail",dependencies:"Dependencies",dependents:"Dependents",legend:"Legend",noSelection:"Click a node to see details",depTypes:{direct:"Direct",transitive:"Transitive",devOnly:"Dev only"},refresh:"Refresh",retry:"Retry",noDataTitle:"No module dependency data found in this project.",noDataDesc:'Ensure your project contains module definition files (go.mod / package.json / Package.swift / build.gradle, etc.), then click "Refresh" to rescan.',filterAll:"All",filterInternal:"Internal",filterExternal:"External",packages:"Packages",packageList:"Package List",depRelations:"Dependencies (Mini)",depRelationsDesc:"The main graph doesn't show edges. Click nodes to see deps in the popup. All From → To listed here.",labelExternal:"External",labelInternal:"Internal",labelIndirect:"Indirect",projectRoot:"Project root",close:"Close",none:"None",visualization:"Module dependency structure visualization",targetHint:"Target node format:"},bootstrap:{title:"Bootstrap Progress",pipelineSteps:{collecting:"Collecting project structure",scanning:"Scanning source code",analyzing:"AI analyzing",enriching:"Knowledge enrichment",indexing:"Building index"},taskStatus:{pending:"Pending",running:"Running",completed:"Completed",failed:"Failed",skipped:"Skipped"},stats:{totalFiles:"Total files",totalTargets:"Targets",totalRecipes:"Recipes",totalTime:"Total time",aiCalls:"AI calls"},notifications:{started:"Bootstrap started",completed:"Bootstrap completed",failed:"Bootstrap failed",partialComplete:"Partially completed"},retryFailed:"Retry failed tasks",viewDetails:"View details",dimLabels:{architecture:"Architecture & Design",bestPractice:"Standards & Practices",eventAndDataFlow:"Events & Data Flow",objcDeepScan:"Deep Scan",agentGuidelines:"Agent Guidelines",bootstrap:"Bootstrap",codeStandard:"Code Standards",codePattern:"Design Patterns",projectProfile:"Project Profile",categoryScan:"Category Scan"},pipelineLabels:{"project-profile":"Project Overview","objc-deep-scan":"Deep Scan (Constants/Hooks)","category-scan":"Base Class Category Method Scan","code-standard":"Code Standards",architecture:"Architecture Patterns","code-pattern":"Design Patterns","event-and-data-flow":"Events & Data Flow","best-practice":"Best Practices","agent-guidelines":"Agent Development Guidelines"},statusLabels:{skeleton:"Pending",filling:"Filling",completed:"Completed",failed:"Failed"},allCompleted:"All completed",completedWithErrors:"Completed with errors",elapsed:"Elapsed",estimatedRemaining:"Est. remaining",toolCalls:"Tool calls",dimensions:"{done}/{total} dimensions",notifySuccess:"All {completed} dimensions filled successfully",notifyPartial:"{completed}/{total} succeeded, {failed} failed",coldStartComplete:"Bootstrap complete",close:"Close",reviewPipeline:"AI Review Pipeline",reviewRounds:{round1Label:"Eligibility Check",round1Desc:"Filter false positives · Identify merges",round2Label:"Content Refinement",round2Desc:"AI rewrite summary · Dynamic confidence",round3Label:"Dedup & Relations",round3Desc:"Semantic dedup · Relation inference"},round1Done:"Kept {kept} · Merged {merged} · Dropped {dropped}",round2Progress:"{current}/{total} items",round2Done:"Refined {refined}/{total} items",round3Done:"{afterDedup} after dedup · {relationsFound} relations",noMatch:"✓ No matching content",featuresOnly:"✓ {sourceCount} features",featuresAndCandidates:"✓ {sourceCount} features · {extracted} candidates",candidatesOnly:"✓ {extracted} candidates"},wiki:{title:"Repo Wiki",sidebar:"Wiki",fileCount:"{count} articles",searchPlaceholder:"Search files...",generating:"Generating files, new docs will appear automatically…",backToList:"Back to file list",aiBadge:"AI Enhanced",copySuccess:"Copied",copyBtn:"Copy",loadFailed:"Failed to load",incrementalUpdate:"Incremental Update",fullGeneration:"Full Generation",genStarted:"Wiki generation started",genFailed:"Generation failed",selectPlaceholder:"Select from the file tree on the left, or use the shortcuts below",phases:{outline:"Outline",content:"Content",review:"Review"},fileTypes:{overview:"Overview",module:"Module",api:"API",guide:"Guide"},synced:"Synced",wikiGenerating:"Wiki is generating",outOfDateHint:"Code changes detected, Wiki may be outdated — incremental update recommended",emptyTitle:"Repo Wiki not generated yet",emptyDesc:"Wiki is auto-generated during cold start, then kept in sync via incremental updates",emptyHint:"Run asd setup for cold start · asd wiki --update for incremental update",quickOverview:"Project Overview",quickOverviewDesc:"Project info, tech stack & statistics",quickArch:"Architecture",quickArchDesc:"Module dependency graph & structure analysis",quickStart:"Getting Started",quickStartDesc:"Build, run & entry point analysis",quickProtocols:"Protocols & Components",quickProtocolsDesc:"Core protocols, delegates and component relations",selectFile:"Select a file to start reading",lastGenerated:"Last generated",duration:"Duration",incrementalUpdating:"Incremental updating...",loadFailedDesc:"Unable to read file content."},aiChat:{title:"AI Assistant",emptyTitle:"Start a conversation with AI",emptyDesc:"Ask questions about your project. AI will help analyze code and recommend patterns.",inputPlaceholder:"Type your question...",inputHint:"Enter to send · Shift+Enter for new line",thinking:"AI is thinking...",analyzing:"AI is analyzing...",topicPanel:"Topics",newTopic:"New Topic",deleteTopic:"Delete Topic",deleteTopicConfirm:"Delete this topic?",quickPrompts:{analyzeArch:"Analyze project architecture",findDuplicates:"Find duplicate code",suggestOptimize:"Suggest optimizations"},timeJustNow:"just now",timeMinutesAgo:"{n} min ago",timeHoursAgo:"{n} hr ago",timeDaysAgo:"{n} days ago",codeBlock:"Code Block",diffView:"Diff View",diffBefore:"Before",diffAfter:"After",contextLabel:"AI Context / Project Profile",copyCode:"Copy Code",topicRecords:"Topics",noHistory:"No chat history",autoSaveHint:"Auto-saved after conversation starts",topicCount:"{count} topics · Local storage",askAnything:"Ask anything about your project",startChat:"Start AI Chat",emptyDescLong:"Ask about your project — code analysis, architecture suggestions, optimization directions, etc.",aiAssistant:"AI Assistant",messageCount:"{n} messages",requestFailed:"Request failed: {error}",cancelled:"(Cancelled)",expandTopics:"Expand topics",diffEmpty:"(empty)",quickPromptSummarize:"Summarize project overview"},help:{title:"Help",gettingStarted:"Getting Started",commands:"Command Reference",faq:"FAQ",tokenUsage:"Token Usage",about:"About",pageTitle:"AutoSnippet V3 Guide",subtitle:"Connect developers, AI & project knowledge: ChatAgent smart dialog · Skills open platform · Knowledge base continuous growth",techSpecs:"Node.js ≥ 20 · 13 Skills · Self-host AI · 16 MCP Tools · ChatAgent Dialog · 4-Layer Retrieval Pipeline",viewGithub:"View on GitHub",fullDocs:"Full Documentation",tokenUsageLast7Days:"Token Usage (Last 7 Days)",quickStart:"Quick Start",coreConcepts:"Core Concepts",coreFeatures:"Core Features",editorDirectives:"Editor Directives",cursorIntegration:"Cursor AI Integration",v3Architecture:"V3 Architecture",cliReference:"CLI Quick Reference",step1Title:"Install & Initialize",step2Title:"Start Dashboard",step2Desc:"Start HTTP API + Dashboard + FileWatcher",step3Title:"IDE Integration",step3Desc:"Install MCP + Skills + Cursor Rules",step4Title:"Create First Recipe",step4Desc1:"Dashboard → New Recipe",step4Desc2:"Use Copied Code → AI Fill → Save",threeRoles:"Three Roles",roleColumn:"Role",responsibilityColumn:"Responsibility",capabilityColumn:"Capabilities",roleDeveloper:"Developer",roleCursorAgent:"Cursor Agent",roleChatAgent:"ChatAgent",developerResp:"Review & decide, maintain project standards",cursorAgentResp:"Generate code per standards, search knowledge base",chatAgentResp:"Extract, summarize, scan, review",coreComponents:"Core Components",bootstrapLabel:"Bootstrap (Cold Start)",bootstrapDesc:"9-dimension auto knowledge extraction engine",candidatesLabel:"Candidates",candidatesDesc:"Draft Recipes pending review",recipeLabel:"Recipe",recipeDesc:"Markdown knowledge document (Source of Truth)",chatAgentLabel:"ChatAgent (Smart Dialog)",chatAgentDesc:"Multi-Agent collaboration architecture, continuously extensible",searchPipelineLabel:"4-Layer Retrieval Pipeline",searchPipelineDesc:"Multi-mode semantic search engine",guardLabel:"Guard (Code Review)",guardDesc:"Knowledge-base driven code review",knowledgeLoop:"Knowledge Loop",loopStep1:"Scan & Extract",loopStep1Sub:"AI/Cursor",loopStep2:"Human Review",loopStep2Sub:"Dashboard",loopStep3:"Knowledge Persist",loopStep3Sub:".md to disk",loopStep4:"Smart Usage",loopStep4Sub:"Cursor/Xcode",loopStep5:"Continuous Optimization",loopStep5Sub:"asd sync",knowledgeBuild:"Knowledge Base Building",semanticSearchLabel:"Semantic Search",codeAudit:"Code Audit",dataSync:"Data Sync",usageExamples:"Usage Examples",exampleSearchKB:"Search Knowledge Base",exampleSearchKBDesc:'Tell Cursor: "Find error handling code for network requests"',exampleBatchScan:"Batch Scan",exampleBatchScanDesc:'Tell Cursor: "Scan NetworkModule, generate Recipes to candidates"',exampleSubmitCode:"Submit Code",exampleSubmitCodeDesc:'Tell Cursor: "Save this code as a Recipe"',skills10:"10 Skills",mcp16:"16 MCP Tools (V3 Parameterized)",bootstrapEngine:"Bootstrap Cold Start Engine",bootstrapEngineDesc:"3 steps from 0 → 1 knowledge base:",fourLayerPipeline:"4-Layer Retrieval Pipeline",fourLayerPipelineDesc:"Multi-signal fusion precision retrieval:",chatAgentSystem:"ChatAgent Dialog System",chatAgentSystemDesc:"Multi-Agent collaboration architecture, continuously extensible:",fiveEntryChannels:"Five Entry Channels",initAndEnv:"Init & Environment",kbManagement:"Knowledge Base Management",searchAndAudit:"Search & Audit",maintenanceUpgrade:"Maintenance & Upgrade",footerHint:"Need more details? Check {link} or run {cmd} to verify your environment",footerGithubReadme:"GitHub README",mcpWriteNote:"Write tools (submit_knowledge, guard, bootstrap, etc.) are protected by Gateway permissions / constitution / audit triple protection.",editorDirectivesNote:"Requires asd watch or asd ui running; supports shortcuts asc / ass / asa",createDirective:"Create Recipe/Snippet",searchDirective:"Search & Insert",auditDirective:"Code Audit",includeDirective:"Auto-inject headers/modules",developerCap:'Dashboard review candidates, save Recipes; Snippet completion, <code class="bg-slate-100 px-1 rounded">// as:search</code>; run <code class="bg-slate-100 px-1 rounded">asd ui</code>',cursorAgentCap:"13 Skills understand conventions; 16 MCP tools for on-demand retrieval & candidate submission; writes go through Gateway review",chatAgentCap:'<code class="bg-slate-100 px-1 rounded">asd ais</code> batch scan; clipboard analysis; Guard audit; Dashboard RAG',bootstrapBullet1:"Scan project modules + AST source analysis",bootstrapBullet2:"Heuristic extraction → AI refinement → generate Candidate",bootstrapBullet3:'MCP tool: <code class="bg-green-100 px-1 rounded">bootstrap</code> (operation: knowledge / refine / scan)',candidatesBullet1:"Sources: AI scan, Cursor, clipboard, Dashboard",candidatesBullet2:"Reviewed and promoted to Recipe for quality assurance",candidatesBullet3:"Reasoning field records AI inference process",recipeBullet1:'Location: <code class="bg-blue-100 px-1 rounded">AutoSnippet/recipes/*.md</code>',recipeBullet2:".md files = single source of truth, DB is only index cache",recipeBullet3:'<code class="bg-blue-100 px-1 rounded">asd sync</code> incremental sync .md → DB',chatAgentCompBullet1:"AnalystAgent analyze intent → ProducerAgent execute actions",chatAgentCompBullet2:"HandoffProtocol auto-switch + lightweight memory persistence",chatAgentCompBullet3:"Project-aware: auto-inject knowledge base state context",searchPipelineBullet1:"InvertedIndex → CoarseRanker → MultiSignalRanker → RetrievalFunnel",searchPipelineBullet2:"BM25 + keyword + semantic triple fusion",searchPipelineBullet3:"search MCP tool: mode routes auto / keyword / semantic / context four modes",guardCompBullet1:"Built-in rules + custom rules + Recipe association",guardCompBullet3:'MCP: <code class="bg-rose-100 px-1 rounded">guard</code> (code=single file / files=batch), <code class="bg-rose-100 px-1 rounded">bootstrap</code> (operation: scan)',kbBuildBullet1:'<strong>AI Scan</strong>: <code class="bg-slate-100 px-1 rounded text-xs">asd ais [Target]</code> batch extraction',kbBuildBullet2:'<strong>Cursor Scan</strong>: Tell Copilot "scan Module"',kbBuildBullet3:"<strong>Manual Create</strong>: New Recipe → Use Copied Code",kbBuildBullet4:'<strong>In Editor</strong>: Copy code → <code class="bg-slate-100 px-1 rounded text-xs">// as:create -c</code>',semSearchBullet1:"<strong>4-Layer Pipeline</strong>: InvertedIndex → CoarseRanker → MultiSignalRanker → RetrievalFunnel",semSearchBullet2:'<strong>In Editor</strong>: <code class="bg-slate-100 px-1 rounded text-xs">// as:search keyword</code>',semSearchBullet3:"<strong>Cursor MCP</strong>: search unified tool (mode routes 4 modes)",semSearchBullet4:"<strong>Dashboard</strong>: Search box supports semantic + keyword",auditFeatureBullet1:'<strong>File Audit</strong>: <code class="bg-slate-100 px-1 rounded text-xs">// as:audit</code>',auditFeatureBullet2:'<strong>Target Audit</strong>: <code class="bg-slate-100 px-1 rounded text-xs">// as:audit target</code>',auditFeatureBullet3:'<strong>Guard Audit</strong>: MCP <code class="bg-slate-100 px-1 rounded text-xs">guard</code> (code / files param)',auditFeatureBullet4:"<strong>Dashboard</strong>: Guard page visual audit",syncBullet1:'<strong>Sync</strong>: <code class="bg-slate-100 px-1 rounded text-xs">asd sync</code> .md → DB (incremental)',syncBullet2:'<strong>Hash Check</strong>: <code class="bg-slate-100 px-1 rounded text-xs">_contentHash</code> detect manual edits',syncBullet3:"<strong>Vector Index</strong>: Auto-build semantic index on startup",syncBullet4:'<strong>Dependency Graph</strong>: <code class="bg-slate-100 px-1 rounded text-xs">structure</code> (operation: targets / files) MCP tool',createDirBullet1:"No options: open Dashboard",createDirBullet2:"<code>-c</code>: silently create from clipboard",createDirBullet3:"<code>-f</code>: scan current file",searchDirBullet1:"Retrieve Recipe/Snippet from knowledge base",searchDirBullet2:"Insert code after selection, replacing the line",searchDirBullet3:"Records one manual usage",auditDirBullet1:"No suffix: audit current file",auditDirBullet2:"<code>target</code>: audit current Target",auditDirBullet3:"<code>project</code>: audit entire project",includeDirBullet1:"Snippet contains this marker",includeDirBullet2:"Auto-inject import after completion",skillIntent:"Intent Routing",skillConcepts:"Concept Teaching",skillCandidates:"Candidate Submit",skillRecipes:"Recipe Search",skillGuard:"Code Compliance",skillStructure:"Project Structure",skillAnalysis:"Deep Analysis",skillColdstart:"Cold Start",skillCreate:"Guided Creation",skillLifecycle:"Lifecycle",mcpLayerHeader:"Layer",mcpToolHeader:"Tool",mcpDescHeader:"Description",mcpAgentLayerHeader:"Agent Layer (12) — exposed by default",mcpAdminLayerHeader:"Admin Layer (4) — requires ASD_MCP_TIER=admin",mcpHealthDesc:"Service health check",mcpCapabilitiesDesc:"Service capabilities list (Agent self-discovery)",mcpGuardDesc:"code=single file audit / files=batch audit",mcpSubmitDesc:"Submit candidate / batch / save document",mcpEnrichDesc:"AI enrich / validate / dedup",mcpLifecycleDesc:"Batch lifecycle operations",mcpSearchDesc:"mode routes auto / keyword / semantic / context",mcpKnowledgeDesc:"operation routes list / get / insights / confirm_usage",mcpStructureDesc:"operation routes targets / files / metadata",mcpGraphDesc:"operation routes query / impact / path / stats",mcpSkillDesc:"operation routes list / load / create / update / delete / suggest",mcpBootstrapDesc:"operation routes knowledge / refine / scan",archBootstrapStep1:"① Project scan → dependency / directory / entry analysis",archBootstrapStep2:"② AI batch extraction → Candidate list",archBootstrapStep3:"③ Review + Promote → Recipe knowledge base ready",archBootstrapNote:"Supports bootstrap tool (operation: refine) for continuous iteration & resume from breakpoint",archPipelineL1:"InvertedIndex — inverted index fast recall",archPipelineL2:"CoarseRanker — BM25 + TF-IDF coarse ranking",archPipelineL3:"MultiSignalRanker — multi-dimensional signal fine ranking",archPipelineL4:"RetrievalFunnel — funnel truncation + context assembly",archAnalystAgent:"<strong>AnalystAgent</strong>: Analyze user intent → retrieve knowledge base → provide suggestions → confidence signal grading",archProducerAgent:"<strong>ProducerAgent</strong>: Generate code → create candidates → execute operations → aggregate results",archHandoff:"<strong>HandoffProtocol</strong>: Automatic switching protocol between two Agents",archMemory:"<strong>Lightweight Memory</strong>: Cross-conversation preference/decision/context persistence (JSONL, TTL expiry)",archProjectAware:"<strong>Project-Aware</strong>: Auto-inject knowledge base state (Recipe distribution, candidate backlog, Guard rule count)",archCliDesc:"asd × 10 commands",archMcpDesc:"stdio × 16 tools",archHttpDesc:"Express × 14 route modules",archSkillsDesc:"13 Cursor/Copilot",cliSetupDesc:"Initialize project",cliStatusDesc:"Environment check",cliUiDesc:"Start Dashboard",cliUpgradeDesc:"Upgrade IDE integration",cliSyncDesc:".md → DB incremental sync",cliAisDesc:"AI scan extract Candidates",cliAisForceDesc:"Force full rescan",cliWatchDesc:"File watch + directive trigger",cliSearchDesc:"Search knowledge base",cliSearchSemanticDesc:"Semantic search mode",cliGuardDesc:"Guard rule check",cliServerDesc:"Start API server only",cliUpgradeMcpDesc:"Upgrade MCP / Skills / Rules",cliInstallFullDesc:"Full IDE integration install",cliSyncForceDesc:"Full DB rebuild",cliSyncDryDesc:"Preview sync changes"},moduleExplorer:{title:"Module Explorer",scanTargets:"Scan Targets",scanning:"Scanning...",scanComplete:"Scan complete",targetFiles:"{count} files",noTargets:"No Targets found",recipesInTarget:"Related Recipes",guardSummary:"Guard Summary",guardViolations:"{count} violations",noViolations:"No violations",openFile:"Open file",refreshTree:"Refresh file tree",extractFromFile:"Extract code",fileDetail:"File Detail",projectModules:"Project Modules ({count})",addFolderScan:"Add folder scan",refreshProject:"Refresh project structure",discovererFolderScan:"Folder Scan",removeFolder:"Remove this folder",fullProjectResults:"Full project scan results",moduleLabel:"Module: {name}",reviewResults:"Review extraction results",resultsCount:"{count} items",candidateSuffix:" Candidate",fullProjectScanning:"Full project scanning",moduleScanLabel:"Module scan: {name}",filesInScan:"Scanned files ({count})",knowledgeExtract:"Knowledge Extraction",knowledgeExtractHint:"Select a module on the left to scan, or click + to add a folder. Extract code patterns and generate Recipe knowledge cards.",guardAuditSummary:"Guard Audit Summary",auditedFiles:"Audited files:",totalViolationsLabel:"Total violations:",errorsCount:"{count} errors",warningsCount:"{count} warnings",recipeNotExist:'"{name}" does not exist in the current knowledge base',recipeNotExistTitle:"Recipe not found",loadRecipeFailed:"Failed to load Recipe",browseFailedTitle:"Browse folder failed",browseFailedDefault:"Unable to load directory listing",selectFolderTitle:"Select folder to scan",scanningDirs:"Scanning project directories...",noDirs:"No scannable directories found",sourceFileCount:"{count} files",selectFolderHint:"Select a folder with source files. Language will be auto-detected and AI scan will run.",modulesTabLabel:"Modules ({count})",foldersTabLabel:"Folders"},search:{title:"Smart Search",searchPlaceholder:"Enter search keywords...",noResults:"No matching results",resultCount:"{count} results found",relevance:"Relevance",source:"Source",category:"Category",language:"Language",matchType:"Match Type",matchExact:"Exact",matchFuzzy:"Fuzzy",matchSemantic:"Semantic Match",matchKeyword:"Keyword Match",viewRecipe:"View Recipe",insertCode:"Insert Code",searchFailed:"Search failed. Please try again.",searching:"Searching...",searchBtn:"Search",emptyHint:"Enter keywords and click Search",contextRelevant:"Context Relevant",authorityScore:"Authority",usage:"Usage",usageCount:"{count} times",recommendReason:"Recommendation Reason",viewFullContent:"View Full Content",similarity:"Similarity",quality:"Quality",noContent:"No content",useSnippet:"Use This Snippet",importedFrameworks:"Imported Frameworks:",relatedApis:"Related APIs:"},scanResult:{title:"Scan Result",trigger:"Trigger",triggerPlaceholder:"@kebab-case-id",description:"Description",descPlaceholder:"Brief description ≤80 chars, reference real class names",category:"Category",language:"Language",code:"Code Template",markdown:"Project Profile",rationale:"Design Rationale",tags:"Tags",tagsPlaceholder:"Tags: press Enter/comma to add...",headers:"Imports",headersPlaceholder:"#import <Header.h>",confidence:"Confidence",confidenceHigh:"High",confidenceMedium:"Medium",confidenceLow:"Low",source:"Source",authorityScore:"Authority",saveAsRecipe:"Save as Recipe",saveAsKnowledge:"Save Knowledge",discard:"Discard",keepCandidate:"Keep as Candidate",qualityWarning:"Quality Warning",lowQualityHint:"This item has low quality. Consider refining before saving.",editBeforeSave:"Edit before saving",triggerRequired:"Trigger is required",savedAsRecipe:"Saved and published as Recipe",savedToKb:"Saved to Knowledge Base",validation:"Validation",validationMethod:"Method:",validationExpected:"Expected:",steps:"Implementation Steps",codeChanges:"Code Changes",constraints:"Constraints",guardRules:"Guard Rules",boundaryConstraints:"Boundary Constraints",preconditions:"Preconditions",sideEffects:"Side Effects",relations:"Relations",knowledgeEntryTitle:"Knowledge Entry Title",aiScan:"AI Scan",lifecyclePending:"Pending Review",lifecycleActive:"Published",lifecycleDeprecated:"Deprecated",saving:"Saving...",cursorDelivery:"Cursor Delivery",aiReasoning:"AI Reasoning",confidenceLabel:"Confidence {value}%",sourceLabel:"Sources:",noArticle:"(No project profile content)",noCode:"(No code template)",done:"Done",formatHeaders:"Format",cleanUnused:"Clean Unused",addHeader:"+ Add",usedInCode:"Referenced in code",unusedInCode:"Not found in code",unknown:"Cannot determine",unreferenced:"Unused",removeTag:"Remove",deleteHeader:"Delete",module:"Module",mode:"Mode",difficulty:"Difficulty",difficultyBeginner:"Beginner",difficultyIntermediate:"Intermediate",difficultyAdvanced:"Advanced",highDuplicateRisk:"High Duplicate Risk:",compareBeforeSave:"Compare before saving",similarRecipes:"Similar Recipes:",referenced:"referenced",collapseHeaders:"Collapse",editHeaders:"Edit"},createModal:{title:"New Recipe",importFromPath:"Import from Project Path",or:"Or",importFromClipboard:"Import from Clipboard",scanFile:"Scan File",useClipboard:"Use Copied Code",pathPlaceholder:"e.g. Sources/MyModule/Auth.swift",aiThinking:"AI is thinking..."},llmConfig:{title:"LLM Configuration",provider:"AI Provider",model:"Model",apiKey:"API Key",proxy:"Proxy",optional:"(optional)",apiKeyPlaceholderSet:"Leave blank to keep current key",apiKeyPlaceholderEmpty:"Enter API Key",envWarning:"No .env file found. It will be created automatically on save.",cancel:"Cancel",saved:"Saved",saveToEnv:"Save to .env",apiKeyRequired:"API Key is required",configured:"Configured:",saveSuccess:"Saved successfully",saveFailed:"Save failed",providers:{gemini:"Google Gemini",openai:"OpenAI",deepseek:"DeepSeek",claude:"Claude",ollama:"Ollama (Local)"}},recipeEditor:{title:"Edit Recipe",authorityScore:"Authority",path:"Path",description:"Description",markdown:"Markdown Document",code:"Code / Standard Usage",rationale:"Design Rationale",steps:"Implementation Steps",codeChanges:"Code Changes",validation:"Validation",validationMethod:"Method:",validationExpected:"Expected:",tags:"Tags",constraints:"Constraints",guardRules:"Guard Rules",boundaryConstraints:"Boundary Constraints",preconditions:"Preconditions",sideEffects:"Side Effects",relations:"Relations",preview:"Preview",edit:"Edit",cancel:"Cancel",saveChanges:"Save Changes",saving:"Saving...",qualityLevels:{basic:"Basic",good:"Good",solid:"Solid",great:"Great",excellent:"Excellent"},descPlaceholder:"Recipe summary description...",rationalePlaceholder:"Why this approach...",relationTypes:{inherits:"Inherits",implements:"Implements",calls:"Calls",dependsOn:"Depends on",dataFlow:"Data flow",conflicts:"Conflicts",extends:"Extends",associates:"Associates"},noContent:"No content",authorityFailed:"Failed to set authority score:"},searchModal:{title:"as:search — Select & Insert",keyword:"Keyword:",keywordAll:"(all)",insertTo:"Insert to:",noResults:"No matching Recipe found",quality:"Quality:",insertBtn:"Insert",inserting:"Inserting...",insertSuccess:"✅ Inserted to",insertFailed:"❌ Insert failed"},refineProgress:{refining:"Refining",completed:"Completed",reviewing:"Reviewing",progress:"{current}/{total}",fields:"Fields:",timeElapsed:"Elapsed",eta:"ETA",title:"AI Refine",doneTitle:"AI Refine Complete",runningTitle:"AI Refining",doneMsg:"{refined} items updated",doneMsgWithFail:"{refined} updated, {failed} failed",progressMsg:"{done}/{total} candidates",closeBtn:"Close"},spmCompare:{title:"SPM Version Compare",current:"Current",latest:"Latest",diff:"Diff",added:"Added",removed:"Removed",changed:"Changed",unchanged:"Unchanged",updateAvailable:"Update available",upToDate:"Up to date",updateBtn:"Update Dependencies",closeBtn:"Close",package:"Package",from:"From",to:"To",noChanges:"No changes",candidateCopied:"Candidate content copied to clipboard",recipeCopied:"Recipe content copied to clipboard",copied:"Copied",deleteConfirm:"Are you sure you want to delete this candidate?",deleteFailed:"Delete failed",compareTitle:"Compare: Candidate vs Recipe",deleteCandidate:"Delete Candidate",auditCandidate:"Audit Candidate",editRecipe:"Edit Recipe",switchRecipe:"Switch Recipe:",candidateTitle:"Candidate: {title}",copyCandidate:"Copy Candidate",noCode:"(No code)",aiContextProfile:"AI Context / Project Profile",noGuide:"(No guide)",copyRecipe:"Copy Recipe"},silentLabels:{watch:"as:create",draft:"Draft",cli:"CLI",pending:"Pending (24h)",recipe:"New Recipe"},lifecycle:{pending:"Pending",active:"Published",deprecated:"Deprecated"},kind:{rule:"Rule",pattern:"Pattern",fact:"Fact"},app:{errorBoundary:{title:"Something went wrong",refreshBtn:"Refresh Page"},sync:{success:"Recipes synced to IDE Snippets",successTitle:"Snippet Sync Success",failed:"Sync failed",failedHint:"Check IDE configuration and try again"},projectRefresh:{success:"Target list and file tree updated",successTitle:"Project Structure Refreshed",failed:"Refresh failed"},extract:{success:"Extracted results are in the candidate pool. Review in Candidates.",successTitle:"Extraction Complete",markerSuccess:"Pinpointed marked code, added to candidate pool",normalSuccess:"Extracted results added to candidate pool",noMarker:"No ASD markers found, AI will analyze the full file",extracting:"Extracting",failed:"Extraction failed"},clipboard:{empty:"Please copy code to clipboard first",emptyTitle:"Clipboard Empty",analyzing:"Code received, AI is identifying reusable patterns...",analyzingTitle:"Analyzing Clipboard",resultMulti:"Identified {count} Recipes, review in candidate pool",resultTitle:"AI Identification Complete",aiFailed:"AI Identification Failed",permissionError:"Browser may not have clipboard permission",permissionTitle:"Clipboard Read Failed"},load:{failed:"Unable to load project data",failedTitle:"Load Failed",failedHint:"Confirm the project path is valid and try again"},scan:{events:{initializing:"Starting scan...",filesLoaded:"Loaded {count} source files",readingFiles:"Reading {count} file contents...",aiAnalyzing:"AI analyzing reusable patterns...",enriching:"Enriching {count} results...",completing:"Scan complete, loading results..."},streamInit:"Establishing stream connection...",completed:"Scan complete",targetSuccess:"Found {count} reusable code patterns, review on the right",targetSuccessTitle:"Target Scan Complete",aiNotConfigured:"AI Not Configured",noResults:"AI scan returned no results",noSnippets:"No reusable code snippets found in this Target",scanComplete:"Scan Complete",scanFailedHint:"Confirm the Target contains valid source files",scanFailed:"Scan Failed",timeout:"Scan timed out. Try reducing the number of Target files.",timeoutTitle:"Scan Timeout",scanError:"Scan Error"},coldStart:{collecting:"Collecting project structure...",skeletonCreated:"Skeleton created, filling in background...",skeletonDetail:"Cold-start skeleton created: {targets} Targets, {files} files, {deps} dependencies... Filling dimensions in background...",guardSuffix:"Guard: {count} violations",timeout:"Cold-start timed out. Check project file count."},fullScan:{collecting:"Collecting all Target files...",phase5:"Collecting source files...",phase15:"AI analyzing code patterns...",phase25:"AI extracting (large projects may take several minutes)...",phase35:"AI extracting...",phase45:"AI deep analysis...",phase55:"Continuing processing...",phase65:"Running Guard audit...",phase75:"Summarizing results...",phase85:"Almost done...",partialComplete:"Scan partially complete (timeout)",completed:"Full project scan complete",resultDetail:"Full project scan complete: {count} candidates",guardSuffix:"Guard: {count} violations",timeoutSuffix:"(partial results, AI timeout)",noContent:"Full project scan complete, no extractable content found",timeout:"Scan timed out. Try reducing file count or scanning per-Target.",timeoutTitle:"Scan Timeout",scanError:"Scan Error"},recipe:{triggerRequired:"Trigger is required",savedAsRecipe:"Saved and published as Recipe",savedToKb:"Saved to Knowledge Base",saveFailed:"Save failed",saveRecipeFailed:"Failed to save Recipe",deleteFailed:"Delete failed"},candidate:{clearConfirm:'Remove all candidates under "{name}"?',clearDone:"Removed all candidates under {name}",pushSuccess:"Added to Candidate review queue",pushFailed:"Failed to create Candidate"}},globalChat:{refineFields:{summary:"Summary",code:"Code / Standard Usage",markdown:"Markdown Document",rationale:"Design Rationale",tags:"Tags",confidence:"Confidence",aiInsights:"AI Insights",agentNotes:"Agent Notes",relations:"Relations"},diff:{noChanges:"No changes detected",excludedRestore:"Excluded · Restore",exclude:"Exclude",before:"Before",after:"After",empty:"(empty)"},system:{refinePrefix:`🎯 Refine Mode — **{title}**
9
+ ## 操作步骤`},guardRuleMessages:{"no-main-thread-sync":"禁止在主线程上使用 dispatch_sync(main),易死锁","main-thread-sync-swift":"禁止在主线程上使用 DispatchQueue.main.sync,易死锁","objc-dealloc-async":"dealloc 内禁止使用 dispatch_async/dispatch_after/postNotification 等","objc-block-retain-cycle":"block 内直接使用 self 可能循环引用,建议 weakSelf","objc-assign-object":"assign 用于对象类型会产生悬垂指针,建议改为 weak 或 strong","swift-force-cast":"强制类型转换 as! 在失败时崩溃,建议 as? 或 guard let","swift-force-try":"try! 在异常时崩溃,建议 do-catch 或 try?","objc-timer-retain-cycle":"NSTimer 以 self 为 target 会强引用 self,需在 dealloc 前 invalidate 或使用 block 形式","objc-possible-main-thread-blocking":"sleep/usleep 可能造成主线程阻塞","js-no-eval":"eval() 存在安全风险和性能问题,应避免使用","js-no-var":"使用 let/const 替代 var,避免变量提升问题","js-no-console-log":"生产代码应移除 console.log,使用专用日志库","js-no-debugger":"生产代码中不应包含 debugger 语句","js-no-alert":"生产代码中不应使用 alert(),影响用户体验","ts-no-non-null-assertion":"非空断言 ! 可能掩盖 null/undefined 错误","py-no-bare-except":"裸 except: 会捕获所有异常(含 SystemExit),应指定异常类型","py-no-exec":"exec() 存在安全风险,应避免使用","py-no-mutable-default":"函数默认参数使用可变对象(list/dict/set)会导致共享状态 bug","py-no-star-import":"from module import * 导致命名空间污染,应显式导入","py-no-assert-in-prod":"assert 在 -O 模式下会被移除,不应用于生产逻辑校验","java-no-system-exit":"System.exit() 直接终止 JVM,应抛异常或返回状态码","java-no-raw-type":"使用泛型集合替代原始类型 (如 List<String> 替代 List)","java-no-empty-catch":"空 catch 块会静默吞掉异常,至少应记录日志","java-no-thread-stop":"Thread.stop() 已废弃且不安全,使用 interrupt() 协作式终止","kotlin-no-force-unwrap":"!! 非空断言在值为 null 时抛 NPE,应使用 ?. 或 ?: 安全访问","go-no-panic":"panic 应仅用于不可恢复错误,库代码应返回 error","go-no-err-ignored":"错误值不应用 _ 忽略,应处理或明确标注","go-no-init-abuse":"init() 函数副作用难以追踪,避免在 init 中执行复杂逻辑","go-no-global-var":"全局可变变量导致并发安全问题,考虑使用依赖注入","dart-no-print":"生产代码应使用 logger 替代 print(),便于日志分级和关闭","dart-avoid-dynamic":"避免使用 dynamic 类型,使用具体类型或泛型提升类型安全","dart-no-set-state-after-dispose":"setState 调用前应检查 mounted 状态,避免 disposed 后调用","dart-avoid-bang-operator":"避免使用 ! 空断言操作符,优先使用 ?? 默认值或 ?. 安全调用","dart-prefer-const-constructor":"当所有字段均为 final 时,构造函数应声明为 const 以优化 Widget 重建","dart-no-relative-import":"lib/ 目录内应使用 package: 形式的绝对导入,避免相对路径导入","dart-dispose-controller":"TextEditingController/AnimationController 等须在 dispose() 中释放","dart-no-build-context-across-async":"BuildContext 不应跨越 async gap 使用,可能导致引用已卸载的 Widget"},guardRuleFixSuggestions:{"objc-block-retain-cycle":"声明 __weak typeof(self) weakSelf = self; 后在 block 内使用 weakSelf","swift-force-cast":"使用 as? 配合 guard let / if let 进行安全转换","kotlin-no-force-unwrap":"使用 ?. 安全调用或 ?: 提供默认值","dart-no-set-state-after-dispose":"使用 if (mounted) setState(...) 守卫","dart-avoid-bang-operator":"使用 ?. 安全调用或 ?? 提供默认值","dart-prefer-const-constructor":"移除 new 关键字,并在 Widget 构造调用前加 const","dart-dispose-controller":"在 State.dispose() 中调用 controller.dispose()","dart-no-build-context-across-async":"在 await 前缓存所需数据,或在 await 后检查 mounted"}},Bl={common:{save:"Save",saving:"Saving...",saved:"Saved",cancel:"Cancel",confirm:"Confirm",delete:"Delete",edit:"Edit",close:"Close",copy:"Copy",copied:"Copied",loading:"Loading...",retry:"Retry",refresh:"Refresh Page",back:"Back",search:"Search",noData:"No data",operationFailed:"Operation failed",saveFailed:"Save failed",deleteFailed:"Delete failed",loadFailed:"Load failed",areYouSure:"Are you sure?",yes:"Yes",no:"No",all:"All",none:"None",preview:"Preview",apply:"Apply",applying:"Applying...",stop:"Stop",export:"Export",import:"Import",more:"More",collapse:"Collapse",expand:"Expand"},sidebar:{recipes:"Recipes",moduleExplorer:"Module Explorer",candidates:"Candidates ({count})",batchManage:"Batch Manage",depGraph:"Dependency Graph",knowledgeGraph:"Knowledge Graph",guard:"Guard",skills:"Skills",repoWiki:"Repo Wiki",aiAssistant:"AI Assistant",help:"Help",collapseNav:"Collapse navigation",expandNav:"Expand navigation",roleDeveloper:"Developer",roleAgent:"Agent",roleChatAgent:"ChatAgent",modeLogin:"Login",modeProbe:"Probe",logout:"Log out",tokenLabel:"7-Day Tokens",tokenCalls:"calls",tokenCallsFull:"{count} AI calls"},header:{searchPlaceholder:"Search knowledge...",semanticSearch:"Semantic",semanticSearchTitle:"Semantic Search (Brain AI)",semanticSearchFailed:"Semantic search failed. Make sure you have run `asd embed` to build the index.",aiSwitchFailed:"Failed to switch AI provider. Check if the project root is writable.",aiNotConfigured:"AI not configured — click to set up LLM",configureLlm:"Configure LLM",clickSwitchAi:"Click to switch AI provider",switchAi:"Switch AI",editEnvConfig:"Edit .env config",closeAiChat:"Close AI Chat",openAiChat:"Open AI Chat",aiChat:"AI Chat",newRecipe:"New Recipe",syncSnippets:"Sync Snippets",langSwitch:"EN / 中"},login:{title:"AutoSnippet",subtitle:"Connect developers, AI & project knowledge",heading:"Sign in to Dashboard",username:"Username",password:"Password",usernamePlaceholder:"Enter username",passwordPlaceholder:"Enter password",usernameRequired:"Username is required",passwordRequired:"Password is required",loginFailed:"Login failed, please try again",loggingIn:"Signing in...",loginBtn:"Sign in",envHint:"Authentication is controlled by the VITE_AUTH_ENABLED environment variable"},pagination:{showing:"Showing {start}-{end} of {total}",perPage:"Per page",unit:"",firstPage:"First page",prevPage:"Previous page",nextPage:"Next page",lastPage:"Last page"},recipes:{title:"Recipe Knowledge Base",sortNewest:"Newest",sortAlpha:"A-Z",sortQuality:"Quality",filterAll:"All types",filterSnippet:"Snippets only",filterKnowledge:"Knowledge only",searchPlaceholder:"Search Recipes...",totalCount:"{count} total",noResults:"No matching Recipes",batchActions:"Batch Actions",selectAll:"Select all",deselectAll:"Deselect all",batchDelete:"Delete selected",batchDeleteConfirm:"Delete {count} selected Recipes?",batchDeleteDone:"{count} deleted",qualityAuthorityScore:"Authority",qualityExcellent:"Excellent",qualityGreat:"Great",qualitySolid:"Solid",qualityGood:"Good",qualityBasic:"Basic",knowledgeType:"Type",typeSnippet:"Snippet",typeKnowledge:"Knowledge",sourceLabel:"Source",sourceBootstrap:"bootstrap",sourceManual:"manual",sourceAiScan:"ai-scan",sourceExtract:"extract",sourceClipboard:"clipboard",editRecipe:"Edit",deleteRecipe:"Delete",pushToCandidate:"Push to Candidate",recipeDetail:"Recipe Detail",editBtn:"Edit",description:"Description",markdown:"Markdown",code:"Code",designRationale:"Design Rationale",steps:"Implementation Steps",codeChanges:"Code Changes",validation:"Validation",tags:"Tags",constraints:"Constraints",guardRules:"Guard Rules",boundaryConstraints:"Boundary Constraints",preconditions:"Preconditions",sideEffects:"Side Effects",relations:"Relations",headers:"Headers",noContent:"No content",semanticResults:"Semantic Search Results",semanticSimilarity:"Similarity",insertToFile:"Insert to file",viewInRecipes:"View in Recipes",reasoning:"Reasoning",sourceColon:"Source:",confidenceColon:"Confidence:",alternativesLabel:"Alternatives:",qualityGrade:"Quality Grade",qualityCompleteness:"Completeness",qualityAdaptation:"Adaptation",qualityDocumentation:"Documentation",usageCount:"Uses {count}",emptyValue:"(empty)",verificationMethod:"Method:",verificationExpected:"Expected:",knowledgeTypes:{codePattern:"Code Pattern",architecture:"Architecture",bestPractice:"Best Practice",codeStandard:"Code Standard",callChain:"Call Chain",rule:"Rule"}},candidates:{title:"Candidate Review Pool",tabs:{pending:"Pending",approved:"Approved",rejected:"Rejected"},sortNewest:"Newest first",sortOldest:"Oldest first",sortConfidence:"By confidence",searchPlaceholder:"Search candidates...",totalCount:"{count} pending",noResults:"No pending candidates",noPending:"All reviewed",confidenceHigh:"High",confidenceMedium:"Medium",confidenceLow:"Low",sourceBootstrap:"bootstrap",sourceManual:"manual",sourceAiScan:"ai-scan",sourceExtract:"extract",sourceClipboard:"clipboard",sourceSignal:"signal",approve:"Approve",reject:"Reject",approveAndSave:"Approve & Save as Recipe",batchApprove:"Approve ({count})",batchReject:"Reject ({count})",batchDeleteConfirm:"Remove {count} selected candidates?",batchDeleteDone:"{count} deleted",approveSuccess:"Approved as Recipe",rejectSuccess:"Rejected",aiRefine:"AI Refine",viewDetail:"View Detail",selectAll:"Select all",deselectAll:"Deselect all",silent:"Silent",expandedDetail:"Expanded Detail",collapse:"Collapse",qualityDimensions:"Quality Dimensions",authorityScore:"Authority",trigger:"Trigger",category:"Category",language:"Language",path:"Path",description:"Description",code:"Code",markdown:"Markdown",rationale:"Rationale",tags:"Tags",headers:"Headers",confidence:"Confidence",source:"Source",createdAt:"Created",updatedAt:"Updated",groupByTarget:"Group by Target",clearGroup:'Remove all candidates under "{name}"?',clearGroupDone:"Removed all candidates under {name}",coldStartTitle:"Cold Start: structural collection + 9-dimension Candidate creation (MCP compatible)",enrichTitle:"① Structure Fill: populate missing rationale / knowledgeType / complexity / scope / steps / constraints (fill only, no overwrite; run before Refine)",refineTitle:"② Content Refine: improve summary, add architectural insights, infer relations, adjust confidence (per-item AI refinement; run after Structure Fill)",withCode:"(with code {count})",emptyHint:"Click the button below to cold-start the knowledge base, or use CLI to create manually",fullScanBtn:"Full Scan ·",clipboardCreate:"From Clipboard",scanningHint:"Knowledge dimensions are being extracted and reviewed by AI in the background. Results will appear automatically.",scannedAt:"Scanned at {time}",similarOnly:"Similar only",resetFilters:"Reset",approveCurrentPage:"Approve current page",removeCurrentPage:"Remove current page",deleteAll:"Delete all",overallScore:"Overall {score}",similarPrefix:"Similar",linesCount:"{count} lines",enrichTitleSingle:"① Structure Fill: populate missing semantic fields (rationale / knowledgeType / complexity, etc.)",refineTitleSingle:"② Content Refine: improve descriptions, add insights, infer relations (supports custom prompts)",projectProfile:"Project Profile",recipeCompare:"Recipe Compare",refineEnhanced:"Refine Enhanced Info",agentNotes:"Agent Notes:",similarRecipe:"Similar Recipes",similarWith:"Similar to {name} {score}%",enrichShort:"Fill",refineShort:"Refine",enrichTitleBottom:"① Structure Fill",refineTitleBottom:"② Content Refine",timeJustNow:"Just now",timeMinutesAgo:"{n} min ago",timeHoursAgo:"{n} hr ago",timeDaysAgo:"{n} days ago",confidenceHighLabel:"High",confidenceMediumLabel:"Medium",confidenceMediumLowLabel:"Med-Low",confidenceLowLabel:"Low",sourceAiScanLabel:"AI Full Scan",sourceMcpLabel:"MCP Submit",sourceManualLabel:"Manual",sourceFileWatcherLabel:"File Watcher",sourceClipboardLabel:"Clipboard",sourceSignalLabel:"Signal",sourceSubmitCheckLabel:"AI Review Submit"},knowledge:{title:"Batch Management",lifecycle:"Lifecycle",lifecycleCandidate:"Candidate",lifecycleRecipe:"Recipe",lifecycleArchived:"Archived",searchPlaceholder:"Search knowledge entries...",totalCount:"{count} total",noResults:"No matching entries",batchActions:"Batch Actions",batchPromote:"Promote",batchDemote:"Demote",batchArchive:"Archive",batchDelete:"Delete",batchDeleteConfirm:"Delete {count} selected entries?",batchDeleteDone:"{count} deleted",selectAll:"Select all",deselectAll:"Deselect all",detail:"Detail",detailContent:"Content",detailQuality:"Quality",detailMeta:"Metadata",qualityCompleteness:"Completeness",qualityClarity:"Clarity",qualityRelevance:"Relevance",qualityAccuracy:"Accuracy",qualityUsability:"Usability",authorityScore:"Authority",source:"Source",category:"Category",language:"Language",createdAt:"Created",updatedAt:"Updated",path:"Path",trigger:"Trigger",lifecyclePending:"Pending",lifecycleActive:"Active",lifecycleDeprecated:"Deprecated",actionPublish:"Publish",actionDeprecate:"Deprecate",actionReactivate:"Reactivate",sourceBootstrap:"AI Full Scan",sourceMcp:"MCP Submit",sourceManual:"Manual Create",sourceFileWatcher:"File Watcher",sourceClipboard:"Clipboard",sourceCli:"CLI",sourceAgent:"AI Agent",sourceSubmitCheck:"AI Review Submit",allCategories:"All categories",selectedCount:"{count} selected",batchPublish:"Batch Publish",quickBatchPublish:"Quick Publish",batchPublishResult:"{success} published, {fail} failed",batchPublishFailed:"Batch publish failed",batchPublishComplete:"Batch publish complete",noAutoApprovable:"No auto-approvable pending entries",noPublishable:"Nothing to publish",autoPublishResult:"{count} auto-approvable entries published",autoApprovable:"Auto-approvable",clearFilters:"Clear filters",loadFailed:"Failed to load knowledge entries",operationSuccess:"Operation successful",deleteConfirmMsg:'Delete "{title}"? This cannot be undone.',deleteSuccess:'Deleted "{title}"',deleteFailed:"Delete failed",deprecateReasonPrompt:"Enter deprecation reason:",rejectionReason:"Rejection Reason",summary:"Summary",relatedKnowledge:"Related Knowledge",reasoning:"Reasoning",confidence:"Confidence",alternatives:"Alternatives",qualityGrade:"Quality Grade",qualityAdaptation:"Adaptation",qualityDocumentation:"Documentation",qualityCompletionLabel:"Completeness",markdownDoc:"Markdown Document",importHeaders:"Import Headers",codePattern:"Code / Standard Usage",designRationale:"Design Rationale",implementSteps:"Implementation Steps",constraintsLabel:"Constraints",aiInsight:"AI Insight",lifecycleHistoryLabel:"Lifecycle History",scope:"Scope",scopeUniversal:"Universal",scopeProject:"Project-specific",scopeModule:"Module-level",complexity:"Complexity",complexityAdvanced:"Advanced",complexityIntermediate:"Intermediate",complexityBeginner:"Beginner",sourceFile:"Source File",prev:"Previous",next:"Next",narrow:"Narrow",widen:"Widen",guardHits:"Guard",adoptions:"Adoptions",searchHits:"Searches",statViews:"Views",statApplications:"Applications",published:"Published"},knowledgeGraph:{title:"Knowledge Graph",nodeTypes:"Node Types",nodeRecipe:"Recipe",nodeModule:"Module",nodeFile:"File",nodeSymbol:"Symbol",relationInherits:"Inherits",relationImplements:"Implements",relationCalls:"Calls",relationDependsOn:"Depends on",relationDataFlow:"Data flow",relationConflicts:"Conflicts",relationExtends:"Extends",relationAssociates:"Associates",relationContains:"Contains",relationImports:"Imports",relationOverrides:"Overrides",relationComposedOf:"Composed of",relationReferencedBy:"Referenced by",relationTestedBy:"Tested by",relationDocumentedIn:"Documented in",tools:"Tools",zoomIn:"Zoom in",zoomOut:"Zoom out",resetView:"Reset view",fitView:"Fit to canvas",toggleLabels:"Toggle labels",nodeDetail:"Node Detail",relatedNodes:"Related Nodes",noSelection:"Click a node to see details",legend:"Legend",searchPlaceholder:"Search nodes...",noResults:"No matching nodes",totalNodes:"{count} nodes",totalEdges:"{count} edges",loadFailed:"Failed to load knowledge graph",empty:"Knowledge graph is empty",emptyDesc:"No relation data between Recipes. Click below to let AI analyze potential relations (requires / extends / enforces / calls, etc.).",discoverRelations:"AI Discover Relations",discovering:"AI analyzing…",refresh:"Refresh",retry:"Retry",statsLabel:"{nodes} nodes · {edges} relations",cancelSelection:"Deselect",outEdges:"Outgoing (dependencies)",inEdges:"Incoming (dependents)",none:"None",relationRequires:"Requires",relationEnforces:"Enforces",relationPrerequisite:"Prerequisite",relationReferences:"References",relationAlternative:"Alternative",relationDeprecatedBy:"Deprecated by",relationSolves:"Solves",discoverAnalyzing:"AI analyzing… ({elapsed}s elapsed)",discoverPollTimeout:"Poll timeout. The task may still be running in the background. Please refresh the page later.",discoverNoResults:"Analysis complete, checked {pairs} Recipe pairs, no relations found. Try again after adding more Recipes.",discoverBatchErrors:"Analysis complete, but {errors} AI batch calls failed, no relations found. Check AI Provider config.",discoverSuccess:"Discovered {count} relations ({pairs} pairs analyzed{failMsg})",discoverBatchFailed:", {count} batches failed",discoverAiNotConfigured:"AI not configured: {error}",discoverTimeout:"Task timeout: {error}",discoverFailed:"Discovery failed: {error}",discoverRunning:"AI analysis still running…",discoverStarted:"AI analysis started, running in background…",discoverInsufficientRecipes:"Not enough Recipes to analyze",discoverPreviousTimeout:"Previous task timed out, please retry",discoverAiUnavailable:"AI service unavailable: {error}",discoverStartFailed:"Start failed: {error}",unknownError:"Unknown error",discoverTooltip:"AI automatically discover Recipe relations"},guard:{title:"Guard Audit",summary:"Summary",totalViolations:"{count} violations",noViolations:"No violations",searchPlaceholder:"Search rules or files...",severityError:"Error",severityWarning:"Warning",severityInfo:"Info",ruleId:"Rule ID",file:"File",line:"Line",message:"Message",severity:"Severity",statusOpen:"Open",statusResolved:"Resolved",statusIgnored:"Ignored",resolve:"Mark as resolved",ignore:"Ignore",reopen:"Reopen",aiGenRule:"AI Generate Rule",aiGenRuleDesc:"Describe the pattern to detect and AI will generate a Guard rule",aiGenPlaceholder:"e.g. Disallow direct network calls in Views",aiGenerating:"AI Generating...",aiGenSuccess:"Rule generated",aiGenFailed:"Rule generation failed",refreshAudit:"Refresh Audit",refreshing:"Refreshing audit...",refreshSuccess:"Audit refreshed",reportIssue:"Report false positive",clearHistory:"Clear History",clearConfirm:"Are you sure to clear all Guard violation records?",addRuleValidation:"Please fill in rule ID, message, regex and at least one language",patternLabel:"Regex (matched per line)",languagesLabel:"Languages",dimensionLabel:"Audit Scope",noteLabel:"Note",allLanguages:"All Languages",noMatchingRules:"No matching rules, adjust filters",violationRecords:"Violations ({runs} runs, {count} violations)",dimFile:"Same file",dimTarget:"Same target",dimProject:"Same project",rationale:"Rationale",fixSuggestion:"Fix suggestion",sourceRecipe:"Source Recipe",categorySafety:"Safety",categoryCorrectness:"Correctness",categoryPerformance:"Performance",categoryStyle:"Style",category:"Category",currentProject:"Current project",generatedRuleId:"Generated rule ID",dimNoLimit:"No limit",notePlaceholder:"Simple pattern hint only",copyFixSuggestion:"Copy fix suggestion",codeLevelConfigTip:"Code-Level and Cross-File checks (e.g. excessive unwrap, circular import) can be disabled or threshold-adjusted via config.",codeLevelConfigPath:"Config path: config/default.json → guard.disabledRules / guard.codeLevelThresholds",tableHeaders:{rule:"Rule",file:"File",line:"Line",message:"Description",severity:"Severity",status:"Status",actions:"Actions"}},skills:{title:"Skills Management",searchPlaceholder:"Search Skills...",totalCount:"{count} total",noResults:"No matching Skills",addSkill:"Add Skill",editSkill:"Edit Skill",deleteSkill:"Delete Skill",deleteConfirm:"Delete this Skill?",deleteSuccess:"Deleted",saveSuccess:"Saved",skillName:"Name",skillNamePlaceholder:"Enter Skill name",skillDescription:"Description",skillDescPlaceholder:"Enter Skill description",skillTrigger:"Trigger",skillTriggerPlaceholder:"Enter trigger condition",skillAction:"Action",skillActionPlaceholder:"Enter action content",skillEnabled:"Enabled",skillDisabled:"Disabled",toggleEnable:"Enable/Disable",aiRecommend:"AI Recommend",aiRecommendDesc:"Based on project analysis, AI recommends the following Skills",aiRecommending:"AI analyzing...",aiRecommendSuccess:"{count} recommended",aiRecommendFailed:"Recommendation failed",acceptRecommend:"Accept",rejectRecommend:"Ignore",bulkAccept:"Accept all",signalBadge:"Signal",category:"Category",priority:"Priority",priorityHigh:"High",priorityMedium:"Medium",priorityLow:"Low",subtitle:"Agent skill docs — guide AI on how to use AutoSnippet tools",fetchFailed:"Failed to fetch Skills list",loadError:"does not exist or read error",loadSkillFailed:"Failed to load Skill",updateSuccess:"updated",updateFailed:"Failed to update Skill",deleteFailed:"Failed to delete Skill",createSuccess:"created",createFailed:"Failed to create Skill",createAddedToKB:"Created and added to knowledge base",filterProject:"Project",filterBuiltin:"Built-in",noRecommendations:"No recommendations yet. More signals will accumulate with usage.",aiRecommendTooltip:"Recommend Skills based on usage patterns",creating:"Creating",useCase:"Use case",chars:"chars",related:"Related",confirmDelete:"Confirm Delete",deleteSkillConfirmMsg:'Delete Skill "{name}"? This cannot be undone.',selectToView:"Select a Skill on the left to view details",checkGenerated:"Please review the generated content",aiGenerated:"AI generated Skill",aiGenFailed:"AI generation failed",fillRequired:"Please fill in name, description and content",savedToKB:"Saved to knowledge base",aiGenMode:"AI Generate",manualMode:"Manual",describeSkill:"Describe the Skill you want to create",aiGeneratingContent:"AI generating...",generateSkill:"Generate Skill",skillContent:"Skill document content",createdBy:{manual:"Manual","user-ai":"AI Assisted","system-ai":"Auto","external-ai":"External AI"}},depGraph:{title:"Dependency Graph",searchPlaceholder:"Search modules...",noResults:"No matching modules",totalModules:"{count} modules",totalDeps:"{count} dependencies",layout:"Layout",layoutTree:"Tree",layoutForce:"Force",layoutCircular:"Circular",zoomIn:"Zoom in",zoomOut:"Zoom out",resetView:"Reset view",fitView:"Fit to canvas",nodeDetail:"Module Detail",dependencies:"Dependencies",dependents:"Dependents",legend:"Legend",noSelection:"Click a node to see details",depTypes:{direct:"Direct",transitive:"Transitive",devOnly:"Dev only"},refresh:"Refresh",retry:"Retry",noDataTitle:"No module dependency data found in this project.",noDataDesc:'Ensure your project contains module definition files (go.mod / package.json / Package.swift / build.gradle, etc.), then click "Refresh" to rescan.',filterAll:"All",filterInternal:"Internal",filterExternal:"External",packages:"Packages",packageList:"Package List",depRelations:"Dependencies (Mini)",depRelationsDesc:"The main graph doesn't show edges. Click nodes to see deps in the popup. All From → To listed here.",labelExternal:"External",labelInternal:"Internal",labelIndirect:"Indirect",projectRoot:"Project root",close:"Close",none:"None",visualization:"Module dependency structure visualization",targetHint:"Target node format:"},bootstrap:{title:"Bootstrap Progress",pipelineSteps:{collecting:"Collecting project structure",scanning:"Scanning source code",analyzing:"AI analyzing",enriching:"Knowledge enrichment",indexing:"Building index"},taskStatus:{pending:"Pending",running:"Running",completed:"Completed",failed:"Failed",skipped:"Skipped"},stats:{totalFiles:"Total files",totalTargets:"Targets",totalRecipes:"Recipes",totalTime:"Total time",aiCalls:"AI calls"},notifications:{started:"Bootstrap started",completed:"Bootstrap completed",failed:"Bootstrap failed",partialComplete:"Partially completed"},retryFailed:"Retry failed tasks",viewDetails:"View details",dimLabels:{architecture:"Architecture & Design",bestPractice:"Standards & Practices",eventAndDataFlow:"Events & Data Flow",objcDeepScan:"Deep Scan",agentGuidelines:"Agent Guidelines",bootstrap:"Bootstrap",codeStandard:"Code Standards",codePattern:"Design Patterns",projectProfile:"Project Profile",categoryScan:"Category Scan"},pipelineLabels:{"project-profile":"Project Overview","objc-deep-scan":"Deep Scan (Constants/Hooks)","category-scan":"Base Class Category Method Scan","code-standard":"Code Standards",architecture:"Architecture Patterns","code-pattern":"Design Patterns","event-and-data-flow":"Events & Data Flow","best-practice":"Best Practices","agent-guidelines":"Agent Development Guidelines"},statusLabels:{skeleton:"Pending",filling:"Filling",completed:"Completed",failed:"Failed"},allCompleted:"All completed",completedWithErrors:"Completed with errors",elapsed:"Elapsed",estimatedRemaining:"Est. remaining",toolCalls:"Tool calls",dimensions:"{done}/{total} dimensions",notifySuccess:"All {completed} dimensions filled successfully",notifyPartial:"{completed}/{total} succeeded, {failed} failed",coldStartComplete:"Bootstrap complete",close:"Close",reviewPipeline:"AI Review Pipeline",reviewRounds:{round1Label:"Eligibility Check",round1Desc:"Filter false positives · Identify merges",round2Label:"Content Refinement",round2Desc:"AI rewrite summary · Dynamic confidence",round3Label:"Dedup & Relations",round3Desc:"Semantic dedup · Relation inference"},round1Done:"Kept {kept} · Merged {merged} · Dropped {dropped}",round2Progress:"{current}/{total} items",round2Done:"Refined {refined}/{total} items",round3Done:"{afterDedup} after dedup · {relationsFound} relations",noMatch:"✓ No matching content",featuresOnly:"✓ {sourceCount} features",featuresAndCandidates:"✓ {sourceCount} features · {extracted} candidates",candidatesOnly:"✓ {extracted} candidates"},wiki:{title:"Repo Wiki",sidebar:"Wiki",fileCount:"{count} articles",searchPlaceholder:"Search files...",generating:"Generating files, new docs will appear automatically…",backToList:"Back to file list",aiBadge:"AI Enhanced",copySuccess:"Copied",copyBtn:"Copy",loadFailed:"Failed to load",incrementalUpdate:"Incremental Update",fullGeneration:"Full Generation",genStarted:"Wiki generation started",genFailed:"Generation failed",selectPlaceholder:"Select from the file tree on the left, or use the shortcuts below",phases:{outline:"Outline",content:"Content",review:"Review"},fileTypes:{overview:"Overview",module:"Module",api:"API",guide:"Guide"},synced:"Synced",wikiGenerating:"Wiki is generating",outOfDateHint:"Code changes detected, Wiki may be outdated — incremental update recommended",emptyTitle:"Repo Wiki not generated yet",emptyDesc:"Wiki is auto-generated during cold start, then kept in sync via incremental updates",emptyHint:"Run asd setup for cold start · asd wiki --update for incremental update",quickOverview:"Project Overview",quickOverviewDesc:"Project info, tech stack & statistics",quickArch:"Architecture",quickArchDesc:"Module dependency graph & structure analysis",quickStart:"Getting Started",quickStartDesc:"Build, run & entry point analysis",quickProtocols:"Protocols & Components",quickProtocolsDesc:"Core protocols, delegates and component relations",selectFile:"Select a file to start reading",lastGenerated:"Last generated",duration:"Duration",incrementalUpdating:"Incremental updating...",loadFailedDesc:"Unable to read file content."},aiChat:{title:"AI Assistant",emptyTitle:"Start a conversation with AI",emptyDesc:"Ask questions about your project. AI will help analyze code and recommend patterns.",inputPlaceholder:"Type your question...",inputHint:"Enter to send · Shift+Enter for new line",thinking:"AI is thinking...",analyzing:"AI is analyzing...",topicPanel:"Topics",newTopic:"New Topic",deleteTopic:"Delete Topic",deleteTopicConfirm:"Delete this topic?",quickPrompts:{analyzeArch:"Analyze project architecture",findDuplicates:"Find duplicate code",suggestOptimize:"Suggest optimizations"},timeJustNow:"just now",timeMinutesAgo:"{n} min ago",timeHoursAgo:"{n} hr ago",timeDaysAgo:"{n} days ago",codeBlock:"Code Block",diffView:"Diff View",diffBefore:"Before",diffAfter:"After",contextLabel:"AI Context / Project Profile",copyCode:"Copy Code",topicRecords:"Topics",noHistory:"No chat history",autoSaveHint:"Auto-saved after conversation starts",topicCount:"{count} topics · Local storage",askAnything:"Ask anything about your project",startChat:"Start AI Chat",emptyDescLong:"Ask about your project — code analysis, architecture suggestions, optimization directions, etc.",aiAssistant:"AI Assistant",messageCount:"{n} messages",requestFailed:"Request failed: {error}",cancelled:"(Cancelled)",expandTopics:"Expand topics",diffEmpty:"(empty)",quickPromptSummarize:"Summarize project overview"},help:{title:"Help",gettingStarted:"Getting Started",commands:"Command Reference",faq:"FAQ",tokenUsage:"Token Usage",about:"About",pageTitle:"AutoSnippet V3 Guide",subtitle:"Connect developers, AI & project knowledge: ChatAgent smart dialog · Skills open platform · Knowledge base continuous growth",techSpecs:"Node.js ≥ 20 · 13 Skills · Self-host AI · 16 MCP Tools · ChatAgent Dialog · 4-Layer Retrieval Pipeline",viewGithub:"View on GitHub",fullDocs:"Full Documentation",tokenUsageLast7Days:"Token Usage (Last 7 Days)",quickStart:"Quick Start",coreConcepts:"Core Concepts",coreFeatures:"Core Features",editorDirectives:"Editor Directives",cursorIntegration:"Cursor AI Integration",v3Architecture:"V3 Architecture",cliReference:"CLI Quick Reference",step1Title:"Install & Initialize",step2Title:"Start Dashboard",step2Desc:"Start HTTP API + Dashboard + FileWatcher",step3Title:"IDE Integration",step3Desc:"Install MCP + Skills + Cursor Rules",step4Title:"Create First Recipe",step4Desc1:"Dashboard → New Recipe",step4Desc2:"Use Copied Code → AI Fill → Save",threeRoles:"Three Roles",roleColumn:"Role",responsibilityColumn:"Responsibility",capabilityColumn:"Capabilities",roleDeveloper:"Developer",roleCursorAgent:"Cursor Agent",roleChatAgent:"ChatAgent",developerResp:"Review & decide, maintain project standards",cursorAgentResp:"Generate code per standards, search knowledge base",chatAgentResp:"Extract, summarize, scan, review",coreComponents:"Core Components",bootstrapLabel:"Bootstrap (Cold Start)",bootstrapDesc:"9-dimension auto knowledge extraction engine",candidatesLabel:"Candidates",candidatesDesc:"Draft Recipes pending review",recipeLabel:"Recipe",recipeDesc:"Markdown knowledge document (Source of Truth)",chatAgentLabel:"ChatAgent (Smart Dialog)",chatAgentDesc:"Multi-Agent collaboration architecture, continuously extensible",searchPipelineLabel:"4-Layer Retrieval Pipeline",searchPipelineDesc:"Multi-mode semantic search engine",guardLabel:"Guard (Code Review)",guardDesc:"Knowledge-base driven code review",knowledgeLoop:"Knowledge Loop",loopStep1:"Scan & Extract",loopStep1Sub:"AI/Cursor",loopStep2:"Human Review",loopStep2Sub:"Dashboard",loopStep3:"Knowledge Persist",loopStep3Sub:".md to disk",loopStep4:"Smart Usage",loopStep4Sub:"Cursor/Xcode",loopStep5:"Continuous Optimization",loopStep5Sub:"asd sync",knowledgeBuild:"Knowledge Base Building",semanticSearchLabel:"Semantic Search",codeAudit:"Code Audit",dataSync:"Data Sync",usageExamples:"Usage Examples",exampleSearchKB:"Search Knowledge Base",exampleSearchKBDesc:'Tell Cursor: "Find error handling code for network requests"',exampleBatchScan:"Batch Scan",exampleBatchScanDesc:'Tell Cursor: "Scan NetworkModule, generate Recipes to candidates"',exampleSubmitCode:"Submit Code",exampleSubmitCodeDesc:'Tell Cursor: "Save this code as a Recipe"',skills10:"10 Skills",mcp16:"16 MCP Tools (V3 Parameterized)",bootstrapEngine:"Bootstrap Cold Start Engine",bootstrapEngineDesc:"3 steps from 0 → 1 knowledge base:",fourLayerPipeline:"4-Layer Retrieval Pipeline",fourLayerPipelineDesc:"Multi-signal fusion precision retrieval:",chatAgentSystem:"ChatAgent Dialog System",chatAgentSystemDesc:"Multi-Agent collaboration architecture, continuously extensible:",fiveEntryChannels:"Five Entry Channels",initAndEnv:"Init & Environment",kbManagement:"Knowledge Base Management",searchAndAudit:"Search & Audit",maintenanceUpgrade:"Maintenance & Upgrade",footerHint:"Need more details? Check {link} or run {cmd} to verify your environment",footerGithubReadme:"GitHub README",mcpWriteNote:"Write tools (submit_knowledge, guard, bootstrap, etc.) are protected by Gateway permissions / constitution / audit triple protection.",editorDirectivesNote:"Requires asd watch or asd ui running; supports shortcuts asc / ass / asa",createDirective:"Create Recipe/Snippet",searchDirective:"Search & Insert",auditDirective:"Code Audit",includeDirective:"Auto-inject headers/modules",developerCap:'Dashboard review candidates, save Recipes; Snippet completion, <code class="bg-slate-100 px-1 rounded">// as:search</code>; run <code class="bg-slate-100 px-1 rounded">asd ui</code>',cursorAgentCap:"13 Skills understand conventions; 16 MCP tools for on-demand retrieval & candidate submission; writes go through Gateway review",chatAgentCap:'<code class="bg-slate-100 px-1 rounded">asd ais</code> batch scan; clipboard analysis; Guard audit; Dashboard RAG',bootstrapBullet1:"Scan project modules + AST source analysis",bootstrapBullet2:"Heuristic extraction → AI refinement → generate Candidate",bootstrapBullet3:'MCP tool: <code class="bg-green-100 px-1 rounded">bootstrap</code> (no params) → Mission Briefing + <code class="bg-green-100 px-1 rounded">dimension_complete</code>',candidatesBullet1:"Sources: AI scan, Cursor, clipboard, Dashboard",candidatesBullet2:"Reviewed and promoted to Recipe for quality assurance",candidatesBullet3:"Reasoning field records AI inference process",recipeBullet1:'Location: <code class="bg-blue-100 px-1 rounded">AutoSnippet/recipes/*.md</code>',recipeBullet2:".md files = single source of truth, DB is only index cache",recipeBullet3:'<code class="bg-blue-100 px-1 rounded">asd sync</code> incremental sync .md → DB',chatAgentCompBullet1:"AnalystAgent analyze intent → ProducerAgent execute actions",chatAgentCompBullet2:"HandoffProtocol auto-switch + lightweight memory persistence",chatAgentCompBullet3:"Project-aware: auto-inject knowledge base state context",searchPipelineBullet1:"InvertedIndex → CoarseRanker → MultiSignalRanker → RetrievalFunnel",searchPipelineBullet2:"BM25 + keyword + semantic triple fusion",searchPipelineBullet3:"search MCP tool: mode routes auto / keyword / semantic / context four modes",guardCompBullet1:"Built-in rules + custom rules + Recipe association",guardCompBullet3:'MCP: <code class="bg-rose-100 px-1 rounded">guard</code> (code=single file / files=batch), <code class="bg-rose-100 px-1 rounded">bootstrap</code> (includes Guard audit)',kbBuildBullet1:'<strong>AI Scan</strong>: <code class="bg-slate-100 px-1 rounded text-xs">asd ais [Target]</code> batch extraction',kbBuildBullet2:'<strong>Cursor Scan</strong>: Tell Copilot "scan Module"',kbBuildBullet3:"<strong>Manual Create</strong>: New Recipe → Use Copied Code",kbBuildBullet4:'<strong>In Editor</strong>: Copy code → <code class="bg-slate-100 px-1 rounded text-xs">// as:create -c</code>',semSearchBullet1:"<strong>4-Layer Pipeline</strong>: InvertedIndex → CoarseRanker → MultiSignalRanker → RetrievalFunnel",semSearchBullet2:'<strong>In Editor</strong>: <code class="bg-slate-100 px-1 rounded text-xs">// as:search keyword</code>',semSearchBullet3:"<strong>Cursor MCP</strong>: search unified tool (mode routes 4 modes)",semSearchBullet4:"<strong>Dashboard</strong>: Search box supports semantic + keyword",auditFeatureBullet1:'<strong>File Audit</strong>: <code class="bg-slate-100 px-1 rounded text-xs">// as:audit</code>',auditFeatureBullet2:'<strong>Target Audit</strong>: <code class="bg-slate-100 px-1 rounded text-xs">// as:audit target</code>',auditFeatureBullet3:'<strong>Guard Audit</strong>: MCP <code class="bg-slate-100 px-1 rounded text-xs">guard</code> (code / files param)',auditFeatureBullet4:"<strong>Dashboard</strong>: Guard page visual audit",syncBullet1:'<strong>Sync</strong>: <code class="bg-slate-100 px-1 rounded text-xs">asd sync</code> .md → DB (incremental)',syncBullet2:'<strong>Hash Check</strong>: <code class="bg-slate-100 px-1 rounded text-xs">_contentHash</code> detect manual edits',syncBullet3:"<strong>Vector Index</strong>: Auto-build semantic index on startup",syncBullet4:'<strong>Dependency Graph</strong>: <code class="bg-slate-100 px-1 rounded text-xs">structure</code> (operation: targets / files) MCP tool',createDirBullet1:"No options: open Dashboard",createDirBullet2:"<code>-c</code>: silently create from clipboard",createDirBullet3:"<code>-f</code>: scan current file",searchDirBullet1:"Retrieve Recipe/Snippet from knowledge base",searchDirBullet2:"Insert code after selection, replacing the line",searchDirBullet3:"Records one manual usage",auditDirBullet1:"No suffix: audit current file",auditDirBullet2:"<code>target</code>: audit current Target",auditDirBullet3:"<code>project</code>: audit entire project",includeDirBullet1:"Snippet contains this marker",includeDirBullet2:"Auto-inject import after completion",skillIntent:"Intent Routing",skillConcepts:"Concept Teaching",skillCandidates:"Candidate Submit",skillRecipes:"Recipe Search",skillGuard:"Code Compliance",skillStructure:"Project Structure",skillAnalysis:"Deep Analysis",skillColdstart:"Cold Start",skillCreate:"Guided Creation",skillLifecycle:"Lifecycle",mcpLayerHeader:"Layer",mcpToolHeader:"Tool",mcpDescHeader:"Description",mcpAgentLayerHeader:"Agent Layer (12) — exposed by default",mcpAdminLayerHeader:"Admin Layer (4) — requires ASD_MCP_TIER=admin",mcpHealthDesc:"Service health check",mcpCapabilitiesDesc:"Service capabilities list (Agent self-discovery)",mcpGuardDesc:"code=single file audit / files=batch audit",mcpSubmitDesc:"Submit candidate / batch / save document",mcpEnrichDesc:"AI enrich / validate / dedup",mcpLifecycleDesc:"Batch lifecycle operations",mcpSearchDesc:"mode routes auto / keyword / semantic / context",mcpKnowledgeDesc:"operation routes list / get / insights / confirm_usage",mcpStructureDesc:"operation routes targets / files / metadata",mcpGraphDesc:"operation routes query / impact / path / stats",mcpSkillDesc:"operation routes list / load / create / update / delete / suggest",mcpBootstrapDesc:"No params — returns Mission Briefing + dimension task list",archBootstrapStep1:"① Project scan → dependency / directory / entry analysis",archBootstrapStep2:"② AI batch extraction → Candidate list",archBootstrapStep3:"③ Review + Promote → Recipe knowledge base ready",archBootstrapNote:"Supports bootstrap → dimension_complete loop iteration & session resume from breakpoint",archPipelineL1:"InvertedIndex — inverted index fast recall",archPipelineL2:"CoarseRanker — BM25 + TF-IDF coarse ranking",archPipelineL3:"MultiSignalRanker — multi-dimensional signal fine ranking",archPipelineL4:"RetrievalFunnel — funnel truncation + context assembly",archAnalystAgent:"<strong>AnalystAgent</strong>: Analyze user intent → retrieve knowledge base → provide suggestions → confidence signal grading",archProducerAgent:"<strong>ProducerAgent</strong>: Generate code → create candidates → execute operations → aggregate results",archHandoff:"<strong>HandoffProtocol</strong>: Automatic switching protocol between two Agents",archMemory:"<strong>Lightweight Memory</strong>: Cross-conversation preference/decision/context persistence (JSONL, TTL expiry)",archProjectAware:"<strong>Project-Aware</strong>: Auto-inject knowledge base state (Recipe distribution, candidate backlog, Guard rule count)",archCliDesc:"asd × 10 commands",archMcpDesc:"stdio × 16 tools",archHttpDesc:"Express × 14 route modules",archSkillsDesc:"13 Cursor/Copilot",cliSetupDesc:"Initialize project",cliStatusDesc:"Environment check",cliUiDesc:"Start Dashboard",cliUpgradeDesc:"Upgrade IDE integration",cliSyncDesc:".md → DB incremental sync",cliAisDesc:"AI scan extract Candidates",cliAisForceDesc:"Force full rescan",cliWatchDesc:"File watch + directive trigger",cliSearchDesc:"Search knowledge base",cliSearchSemanticDesc:"Semantic search mode",cliGuardDesc:"Guard rule check",cliServerDesc:"Start API server only",cliUpgradeMcpDesc:"Upgrade MCP / Skills / Rules",cliInstallFullDesc:"Full IDE integration install",cliSyncForceDesc:"Full DB rebuild",cliSyncDryDesc:"Preview sync changes"},moduleExplorer:{title:"Module Explorer",scanTargets:"Scan Targets",scanning:"Scanning...",scanComplete:"Scan complete",targetFiles:"{count} files",noTargets:"No Targets found",recipesInTarget:"Related Recipes",guardSummary:"Guard Summary",guardViolations:"{count} violations",noViolations:"No violations",openFile:"Open file",refreshTree:"Refresh file tree",extractFromFile:"Extract code",fileDetail:"File Detail",projectModules:"Project Modules ({count})",addFolderScan:"Add folder scan",refreshProject:"Refresh project structure",discovererFolderScan:"Folder Scan",removeFolder:"Remove this folder",fullProjectResults:"Full project scan results",moduleLabel:"Module: {name}",reviewResults:"Review extraction results",resultsCount:"{count} items",candidateSuffix:" Candidate",fullProjectScanning:"Full project scanning",moduleScanLabel:"Module scan: {name}",filesInScan:"Scanned files ({count})",knowledgeExtract:"Knowledge Extraction",knowledgeExtractHint:"Select a module on the left to scan, or click + to add a folder. Extract code patterns and generate Recipe knowledge cards.",guardAuditSummary:"Guard Audit Summary",auditedFiles:"Audited files:",totalViolationsLabel:"Total violations:",errorsCount:"{count} errors",warningsCount:"{count} warnings",recipeNotExist:'"{name}" does not exist in the current knowledge base',recipeNotExistTitle:"Recipe not found",loadRecipeFailed:"Failed to load Recipe",browseFailedTitle:"Browse folder failed",browseFailedDefault:"Unable to load directory listing",selectFolderTitle:"Select folder to scan",scanningDirs:"Scanning project directories...",noDirs:"No scannable directories found",sourceFileCount:"{count} files",selectFolderHint:"Select a folder with source files. Language will be auto-detected and AI scan will run.",modulesTabLabel:"Modules ({count})",foldersTabLabel:"Folders"},search:{title:"Smart Search",searchPlaceholder:"Enter search keywords...",noResults:"No matching results",resultCount:"{count} results found",relevance:"Relevance",source:"Source",category:"Category",language:"Language",matchType:"Match Type",matchExact:"Exact",matchFuzzy:"Fuzzy",matchSemantic:"Semantic Match",matchKeyword:"Keyword Match",viewRecipe:"View Recipe",insertCode:"Insert Code",searchFailed:"Search failed. Please try again.",searching:"Searching...",searchBtn:"Search",emptyHint:"Enter keywords and click Search",contextRelevant:"Context Relevant",authorityScore:"Authority",usage:"Usage",usageCount:"{count} times",recommendReason:"Recommendation Reason",viewFullContent:"View Full Content",similarity:"Similarity",quality:"Quality",noContent:"No content",useSnippet:"Use This Snippet",importedFrameworks:"Imported Frameworks:",relatedApis:"Related APIs:"},scanResult:{title:"Scan Result",trigger:"Trigger",triggerPlaceholder:"@kebab-case-id",description:"Description",descPlaceholder:"Brief description ≤80 chars, reference real class names",category:"Category",language:"Language",code:"Code Template",markdown:"Project Profile",rationale:"Design Rationale",tags:"Tags",tagsPlaceholder:"Tags: press Enter/comma to add...",headers:"Imports",headersPlaceholder:"#import <Header.h>",confidence:"Confidence",confidenceHigh:"High",confidenceMedium:"Medium",confidenceLow:"Low",source:"Source",authorityScore:"Authority",saveAsRecipe:"Save as Recipe",saveAsKnowledge:"Save Knowledge",discard:"Discard",keepCandidate:"Keep as Candidate",qualityWarning:"Quality Warning",lowQualityHint:"This item has low quality. Consider refining before saving.",editBeforeSave:"Edit before saving",triggerRequired:"Trigger is required",savedAsRecipe:"Saved and published as Recipe",savedToKb:"Saved to Knowledge Base",validation:"Validation",validationMethod:"Method:",validationExpected:"Expected:",steps:"Implementation Steps",codeChanges:"Code Changes",constraints:"Constraints",guardRules:"Guard Rules",boundaryConstraints:"Boundary Constraints",preconditions:"Preconditions",sideEffects:"Side Effects",relations:"Relations",knowledgeEntryTitle:"Knowledge Entry Title",aiScan:"AI Scan",lifecyclePending:"Pending Review",lifecycleActive:"Published",lifecycleDeprecated:"Deprecated",saving:"Saving...",cursorDelivery:"Cursor Delivery",aiReasoning:"AI Reasoning",confidenceLabel:"Confidence {value}%",sourceLabel:"Sources:",noArticle:"(No project profile content)",noCode:"(No code template)",done:"Done",formatHeaders:"Format",cleanUnused:"Clean Unused",addHeader:"+ Add",usedInCode:"Referenced in code",unusedInCode:"Not found in code",unknown:"Cannot determine",unreferenced:"Unused",removeTag:"Remove",deleteHeader:"Delete",module:"Module",mode:"Mode",difficulty:"Difficulty",difficultyBeginner:"Beginner",difficultyIntermediate:"Intermediate",difficultyAdvanced:"Advanced",highDuplicateRisk:"High Duplicate Risk:",compareBeforeSave:"Compare before saving",similarRecipes:"Similar Recipes:",referenced:"referenced",collapseHeaders:"Collapse",editHeaders:"Edit"},createModal:{title:"New Recipe",importFromPath:"Import from Project Path",or:"Or",importFromClipboard:"Import from Clipboard",scanFile:"Scan File",useClipboard:"Use Copied Code",pathPlaceholder:"e.g. Sources/MyModule/Auth.swift",aiThinking:"AI is thinking..."},llmConfig:{title:"LLM Configuration",provider:"AI Provider",model:"Model",apiKey:"API Key",proxy:"Proxy",optional:"(optional)",apiKeyPlaceholderSet:"Leave blank to keep current key",apiKeyPlaceholderEmpty:"Enter API Key",envWarning:"No .env file found. It will be created automatically on save.",cancel:"Cancel",saved:"Saved",saveToEnv:"Save to .env",apiKeyRequired:"API Key is required",configured:"Configured:",saveSuccess:"Saved successfully",saveFailed:"Save failed",providers:{gemini:"Google Gemini",openai:"OpenAI",deepseek:"DeepSeek",claude:"Claude",ollama:"Ollama (Local)"}},recipeEditor:{title:"Edit Recipe",authorityScore:"Authority",path:"Path",description:"Description",markdown:"Markdown Document",code:"Code / Standard Usage",rationale:"Design Rationale",steps:"Implementation Steps",codeChanges:"Code Changes",validation:"Validation",validationMethod:"Method:",validationExpected:"Expected:",tags:"Tags",constraints:"Constraints",guardRules:"Guard Rules",boundaryConstraints:"Boundary Constraints",preconditions:"Preconditions",sideEffects:"Side Effects",relations:"Relations",preview:"Preview",edit:"Edit",cancel:"Cancel",saveChanges:"Save Changes",saving:"Saving...",qualityLevels:{basic:"Basic",good:"Good",solid:"Solid",great:"Great",excellent:"Excellent"},descPlaceholder:"Recipe summary description...",rationalePlaceholder:"Why this approach...",relationTypes:{inherits:"Inherits",implements:"Implements",calls:"Calls",dependsOn:"Depends on",dataFlow:"Data flow",conflicts:"Conflicts",extends:"Extends",associates:"Associates"},noContent:"No content",authorityFailed:"Failed to set authority score:"},searchModal:{title:"as:search — Select & Insert",keyword:"Keyword:",keywordAll:"(all)",insertTo:"Insert to:",noResults:"No matching Recipe found",quality:"Quality:",insertBtn:"Insert",inserting:"Inserting...",insertSuccess:"✅ Inserted to",insertFailed:"❌ Insert failed"},refineProgress:{refining:"Refining",completed:"Completed",reviewing:"Reviewing",progress:"{current}/{total}",fields:"Fields:",timeElapsed:"Elapsed",eta:"ETA",title:"AI Refine",doneTitle:"AI Refine Complete",runningTitle:"AI Refining",doneMsg:"{refined} items updated",doneMsgWithFail:"{refined} updated, {failed} failed",progressMsg:"{done}/{total} candidates",closeBtn:"Close"},spmCompare:{title:"SPM Version Compare",current:"Current",latest:"Latest",diff:"Diff",added:"Added",removed:"Removed",changed:"Changed",unchanged:"Unchanged",updateAvailable:"Update available",upToDate:"Up to date",updateBtn:"Update Dependencies",closeBtn:"Close",package:"Package",from:"From",to:"To",noChanges:"No changes",candidateCopied:"Candidate content copied to clipboard",recipeCopied:"Recipe content copied to clipboard",copied:"Copied",deleteConfirm:"Are you sure you want to delete this candidate?",deleteFailed:"Delete failed",compareTitle:"Compare: Candidate vs Recipe",deleteCandidate:"Delete Candidate",auditCandidate:"Audit Candidate",editRecipe:"Edit Recipe",switchRecipe:"Switch Recipe:",candidateTitle:"Candidate: {title}",copyCandidate:"Copy Candidate",noCode:"(No code)",aiContextProfile:"AI Context / Project Profile",noGuide:"(No guide)",copyRecipe:"Copy Recipe"},silentLabels:{watch:"as:create",draft:"Draft",cli:"CLI",pending:"Pending (24h)",recipe:"New Recipe"},lifecycle:{pending:"Pending",active:"Published",deprecated:"Deprecated"},kind:{rule:"Rule",pattern:"Pattern",fact:"Fact"},app:{errorBoundary:{title:"Something went wrong",refreshBtn:"Refresh Page"},sync:{success:"Recipes synced to IDE Snippets",successTitle:"Snippet Sync Success",failed:"Sync failed",failedHint:"Check IDE configuration and try again"},projectRefresh:{success:"Target list and file tree updated",successTitle:"Project Structure Refreshed",failed:"Refresh failed"},extract:{success:"Extracted results are in the candidate pool. Review in Candidates.",successTitle:"Extraction Complete",markerSuccess:"Pinpointed marked code, added to candidate pool",normalSuccess:"Extracted results added to candidate pool",noMarker:"No ASD markers found, AI will analyze the full file",extracting:"Extracting",failed:"Extraction failed"},clipboard:{empty:"Please copy code to clipboard first",emptyTitle:"Clipboard Empty",analyzing:"Code received, AI is identifying reusable patterns...",analyzingTitle:"Analyzing Clipboard",resultMulti:"Identified {count} Recipes, review in candidate pool",resultTitle:"AI Identification Complete",aiFailed:"AI Identification Failed",permissionError:"Browser may not have clipboard permission",permissionTitle:"Clipboard Read Failed"},load:{failed:"Unable to load project data",failedTitle:"Load Failed",failedHint:"Confirm the project path is valid and try again"},scan:{events:{initializing:"Starting scan...",filesLoaded:"Loaded {count} source files",readingFiles:"Reading {count} file contents...",aiAnalyzing:"AI analyzing reusable patterns...",enriching:"Enriching {count} results...",completing:"Scan complete, loading results..."},streamInit:"Establishing stream connection...",completed:"Scan complete",targetSuccess:"Found {count} reusable code patterns, review on the right",targetSuccessTitle:"Target Scan Complete",aiNotConfigured:"AI Not Configured",noResults:"AI scan returned no results",noSnippets:"No reusable code snippets found in this Target",scanComplete:"Scan Complete",scanFailedHint:"Confirm the Target contains valid source files",scanFailed:"Scan Failed",timeout:"Scan timed out. Try reducing the number of Target files.",timeoutTitle:"Scan Timeout",scanError:"Scan Error"},coldStart:{collecting:"Collecting project structure...",skeletonCreated:"Skeleton created, filling in background...",skeletonDetail:"Cold-start skeleton created: {targets} Targets, {files} files, {deps} dependencies... Filling dimensions in background...",guardSuffix:"Guard: {count} violations",timeout:"Cold-start timed out. Check project file count."},fullScan:{collecting:"Collecting all Target files...",phase5:"Collecting source files...",phase15:"AI analyzing code patterns...",phase25:"AI extracting (large projects may take several minutes)...",phase35:"AI extracting...",phase45:"AI deep analysis...",phase55:"Continuing processing...",phase65:"Running Guard audit...",phase75:"Summarizing results...",phase85:"Almost done...",partialComplete:"Scan partially complete (timeout)",completed:"Full project scan complete",resultDetail:"Full project scan complete: {count} candidates",guardSuffix:"Guard: {count} violations",timeoutSuffix:"(partial results, AI timeout)",noContent:"Full project scan complete, no extractable content found",timeout:"Scan timed out. Try reducing file count or scanning per-Target.",timeoutTitle:"Scan Timeout",scanError:"Scan Error"},recipe:{triggerRequired:"Trigger is required",savedAsRecipe:"Saved and published as Recipe",savedToKb:"Saved to Knowledge Base",saveFailed:"Save failed",saveRecipeFailed:"Failed to save Recipe",deleteFailed:"Delete failed"},candidate:{clearConfirm:'Remove all candidates under "{name}"?',clearDone:"Removed all candidates under {name}",pushSuccess:"Added to Candidate review queue",pushFailed:"Failed to create Candidate"}},globalChat:{refineFields:{summary:"Summary",code:"Code / Standard Usage",markdown:"Markdown Document",rationale:"Design Rationale",tags:"Tags",confidence:"Confidence",aiInsights:"AI Insights",agentNotes:"Agent Notes",relations:"Relations"},diff:{noChanges:"No changes detected",excludedRestore:"Excluded · Restore",exclude:"Exclude",before:"Before",after:"After",empty:"(empty)"},system:{refinePrefix:`🎯 Refine Mode — **{title}**
10
10
 
11
11
  Current summary: {description}
12
12