clearai-dsh 0.5.1 → 0.5.3

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.
package/lib/client.js CHANGED
@@ -185,8 +185,8 @@ window.__ModuleLoader__.load({
185
185
 
186
186
  /** 语言命名空间。表按**源文**索引:键就是中文原文,所以漏翻译一条只会退回中文,不会把 key 显示给人。 */
187
187
  const LOCALE_NS = 'clearai'
188
- const LOCALE_ZH = {"待执行":"待执行","已交付":"已交付","已作废":"已作废","支持":"支持","推翻":"推翻","不确定":"不确定","第 n 步":"第 n 步","判据:":"判据:","判据":"判据"," · 已修订 ":" · 已修订 "," 次":" 次"," · 最近一次修订的独立裁决:":" · 最近一次修订的独立裁决:","打开目标文档(原生预览)":"打开目标文档(原生预览)","全文在 ":"全文在 ","背景(不参与判定):":"背景(不参与判定):","目标":"目标","命题":"命题","计划":"计划","验证":"验证","观测":"观测","评估":"评估","证据":"证据","事实":"事实","批准":"批准","未解释":"未解释","评估卡":"评估卡","查看评估者":"查看评估者","审批记录":"审批记录","产物":"产物","已验证":"已验证","待核验":"待核验","验证中":"验证中","已推翻":"已推翻","已替换":"已替换","自行检验":"自行检验","独立核验":"独立核验","人工批准":"人工批准","判断":"判断","检验":"检验","纳入本体":"纳入本体","下一步:安排步骤对其进行检验":"下一步:安排步骤对其进行检验","下一步:通过独立核验后标记为已验证":"下一步:通过独立核验后标记为已验证","下一步:改用其他方法重新检验":"下一步:改用其他方法重新检验","下一步:结案时写入长期知识":"下一步:结案时写入长期知识","陈述":"陈述","数值":"数值","公式":"公式","代码":"代码","引用":"引用","概念":"概念","取值形态":"取值形态","实例":"实例","取值":"取值","关系":"关系","在检验阶段被推翻,不再推进。":"在检验阶段被推翻,不再推进。","已被替换,不再推进。":"已被替换,不再推进。","提出":"提出","单步检验":"单步检验",":":":","写入长期知识":"写入长期知识","人工撤回":"人工撤回","进度":"进度","可信度变化":"可信度变化","补充说明":"补充说明","依据":"依据","查看核验":"查看核验","查看记录":"查看记录","范围":"范围","推翻条件":"推翻条件","相关":"相关","在图中定位":"在图中定位","来源":"来源","收起":"收起","点击查看进度与来源":"点击查看进度与来源","暂无结论。模型提出判断后,将在此逐条列出。":"暂无结论。模型提出判断后,将在此逐条列出。","尚未设立目标":"尚未设立目标","暂无内容。发送第一条消息后,此处将显示本体图与结论。":"暂无内容。发送第一条消息后,此处将显示本体图与结论。","仅显示与「":"仅显示与「","」相关的内容":"」相关的内容","清除":"清除","已确立的事实":"已确立的事实","暂无已确立的事实。判断经检验与独立核验后,将在此列出;检验过程见探索货架。":"暂无已确立的事实。判断经检验与独立核验后,将在此列出;检验过程见探索货架。","经验(":"经验(",")":")","广度调研":"广度调研","定向求解":"定向求解","先调研后求解":"先调研后求解","考察中":"考察中","已排除":"已排除","已采纳":"已采纳","暂不考察":"暂不考察","未开始":"未开始","调研中":"调研中","已厘清":"已厘清","常见误区":"常见误区","前置核查":"前置核查","不可取的捷径":"不可取的捷径","先验知识":"先验知识","提出依据":"提出依据","未注明(直觉)":"未注明(直觉)","直觉":"直觉","本体关系「":"本体关系「","」":"」","主张":"主张","预测":"预测","排除依据":"排除依据","采纳依据":"采纳依据","关联记录":"关联记录","支持 ":"支持 "," 条 · 推翻 ":" 条 · 推翻 "," 条 · 无法判定 ":" 条 · 无法判定 "," 条":" 条","在本体货架中展开此结论":"在本体货架中展开此结论","已得出结论 · 查看结论":"已得出结论 · 查看结论","已暂缓":"已暂缓","新发现,待您决定":"新发现,待您决定","尚无候选假设":"尚无候选假设","候选假设 ":"候选假设 "," 个:":" 个:","问题 ":"问题 ","候选假设":"候选假设","展开":"展开","已请求立为问题,待模型修订立题后生效。":"已请求立为问题,待模型修订立题后生效。","已请求暂缓,结案时列入「尚未确定的事项」。":"已请求暂缓,结案时列入「尚未确定的事项」。","无法自动发送,请在对话中说明。":"无法自动发送,请在对话中说明。","新发现的问题":"新发现的问题","请将新发现的问题「":"请将新发现的问题「","」立为问题深入研究(问题 ":"」立为问题深入研究(问题 ",")。":")。","立为问题":"立为问题","请暂缓问题「":"请暂缓问题「","」(问题 ":"」(问题 ","),结案时列入「尚未确定的事项」。":"),结案时列入「尚未确定的事项」。","暂缓":"暂缓","调研板块":"调研板块","判断 ":"判断 "," 条 · 已采纳 ":" 条 · 已采纳 ","未解释的现象 ":"未解释的现象 "," 项":" 项","下一步":"下一步","预测:":"预测:","若「":"若「","」成立,预测":"」成立,预测","各候选假设的预测相同,此步骤无法区分它们。":"各候选假设的预测相同,此步骤无法区分它们。","如需调整计划,请在对话中说明。":"如需调整计划,请在对话中说明。","未解释的现象(":"未解释的现象(","结案前须解释、排除或写入「尚未确定的事项」":"结案前须解释、排除或写入「尚未确定的事项」","独立评估发现":"独立评估发现","涉及:":"涉及:","、":"、","暂无内容。发送第一条消息后,此处将显示问题、候选假设与下一步。":"暂无内容。发送第一条消息后,此处将显示问题、候选假设与下一步。","尚未设立目标。模型立题后,此处将显示问题、候选假设与下一步。":"尚未设立目标。模型立题后,此处将显示问题、候选假设与下一步。","阶段 · ":"阶段 · ","调研板块 ":"调研板块 "," 个 · 已厘清 ":" 个 · 已厘清 "," 个":" 个","当前问题 ":"当前问题 "," / 共 ":" / 共 ","计划 已完成 ":"计划 已完成 "," / ":" / "," 步":" 步","独立评估 ":"独立评估 ","计划共 ":"计划共 ","(":"(","进行中)":"进行中)","课题":"课题","待您处理(":"待您处理(","过程记录":"过程记录","结论":"结论","未能回答:":"未能回答:","查看探索记录":"查看探索记录","尚未确定的事项":"尚未确定的事项","待您决策":"待您决策","不适用:":"不适用:","暂无计划。建立计划后,此处将显示计划的步骤与闸门。":"暂无计划。建立计划后,此处将显示计划的步骤与闸门。","切换到以前的计划(计划均保留,文档归档在 clear/goals/plans/)":"切换到以前的计划(计划均保留,文档归档在 clear/goals/plans/)","计划 ":"计划 ","已完成 · 可查看存档":"已完成 · 可查看存档","步 ":"步 ","打开计划文档(原生预览)":"打开计划文档(原生预览)","计划文档":"计划文档","点击查看详情":"点击查看详情","查看步骤详情":"查看步骤详情"," 轮":" 轮","已派出评估者 ":"已派出评估者 ","收起详情":"收起详情","任务内容":"任务内容","状态":"状态","未声明":"未声明","磁盘上未找到该文件":"磁盘上未找到该文件","(缺失)":"(缺失)","在原生预览中打开":"在原生预览中打开","在原生预览中打开(计划声明的产物)":"在原生预览中打开(计划声明的产物)","查看此步骤的证据":"查看此步骤的证据","检验结果:":"检验结果:","独立核验:":"独立核验:","正在裁决":"正在裁决"," 查看核验过程":" 查看核验过程"," 查看核验记录":" 查看核验记录","待处理":"待处理","板块 ":"板块 "," · ":" · "," 个问题待您决定":" 个问题待您决定"," · 待检验假设 ":" · 待检验假设 ","计划受阻,待人工处理":"计划受阻,待人工处理","计划已收尾(":"计划已收尾("," 步)":" 步)","计划已交付 ":"计划已交付 ","待处理 ":"待处理 ","(点击打开探索货架)":"(点击打开探索货架)","仅显示相关项":"仅显示相关项","关闭":"关闭","正在加载…":"正在加载…","无法获取":"无法获取","该项已不在当前词表中(可能已被废止)。":"该项已不在当前词表中(可能已被废止)。","释义":"释义","上位":"上位","下位":"下位","主体":"主体","类型":"类型","该术语已废止,既有结论中的用法仍可查看。":"该术语已废止,既有结论中的用法仍可查看。","引用此项的结论":"引用此项的结论","有矛盾":"有矛盾","范围:":"范围:","展开下一层":"展开下一层","收起下一层":"收起下一层","共 ":"共 "," 条断言的主体尚未建立实体文件。":" 条断言的主体尚未建立实体文件。","实体图暂无内容。":"实体图暂无内容。","clear/ontology/entities/ 下的实体文件与写入长期知识的断言将在此显示。":"clear/ontology/entities/ 下的实体文件与写入长期知识的断言将在此显示。","本体图暂无内容。模型在 clear/ontology/concepts/ 与 relations/ 下建立概念与关系文件后,将在此显示。":"本体图暂无内容。模型在 clear/ontology/concepts/ 与 relations/ 下建立概念与关系文件后,将在此显示。","本体图":"本体图","实体图":"实体图","矛盾":"矛盾","适配":"适配","退出全屏":"退出全屏","全屏":"全屏","图组件不可用":"图组件不可用","结论仍可正常查看。":"结论仍可正常查看。","本体文件有 ":"本体文件有 "," 项问题(不纳入图中)":" 项问题(不纳入图中)","已提出":"已提出","探索":"探索","本体":"本体","clearai-loop: 席位跟着会话预设进出":"clearai-loop: 席位跟着会话预设进出"}
189
- const LOCALE_EN = {"待执行":"to do","已交付":"delivered","已作废":"voided","支持":"Support","推翻":"Refute","不确定":"Uncertain","第 n 步":"Step n","判据:":"Criterion: ","判据":"Criterion"," · 已修订 ":" · revised "," 次":" times"," · 最近一次修订的独立裁决:":" · latest revision decided by an independent verdict: ","打开目标文档(原生预览)":"Open the goal document (native preview)","全文在 ":"Full text at ","背景(不参与判定):":"Background (not part of the verdict): ","目标":"Goal","命题":"Propositions","计划":"Plan","验证":"Verification","观测":"Observation","评估":"Evaluation","证据":"Evidence","事实":"Facts","批准":"approval","未解释":"Unexplained","评估卡":"evaluation card","查看评估者":"view evaluator","审批记录":"approval record","产物":"Deliverables","已验证":"Verified","待核验":"Awaiting check","验证中":"Testing","已推翻":"Refuted","已替换":"Replaced","自行检验":"Self-tested","独立核验":"Independent check","人工批准":"Approved by a person","判断":"Judgment","检验":"Test","纳入本体":"In ontology","下一步:安排步骤对其进行检验":"Next: schedule a step to test it","下一步:通过独立核验后标记为已验证":"Next: marked Verified after an independent check","下一步:改用其他方法重新检验":"Next: test it again by another method","下一步:结案时写入长期知识":"Next: written to long-term knowledge at close","陈述":"Statement","数值":"Quantity","公式":"Formula","代码":"Code","引用":"Reference","概念":"concepts","取值形态":"Value form","实例":"Instances","取值":"Value","关系":"Relation","在检验阶段被推翻,不再推进。":"Refuted at the test stage; it goes no further.","已被替换,不再推进。":"Replaced; it goes no further.","提出":"Proposed","单步检验":"A single test",":":": ","写入长期知识":"Written to long-term knowledge","人工撤回":"Withdrawn by a person","进度":"Progress","可信度变化":"Trust history","补充说明":"Details","依据":"Basis","查看核验":"View check","查看记录":"View record","范围":"Scope","推翻条件":"Refuted if","相关":"Related","在图中定位":"Locate on the graph","来源":"Source","收起":"Collapse","点击查看进度与来源":"Click to view progress and source","暂无结论。模型提出判断后,将在此逐条列出。":"No judgments yet. Each judgment the model proposes is listed here.","尚未设立目标":"No goal set yet","暂无内容。发送第一条消息后,此处将显示本体图与结论。":"Nothing yet. After the first message, the ontology graph and conclusions appear here.","仅显示与「":"Showing only items related to \"","」相关的内容":"\"","清除":"Clear","已确立的事实":"ESTABLISHED FACTS","暂无已确立的事实。判断经检验与独立核验后,将在此列出;检验过程见探索货架。":"No established facts yet. Judgments appear here once tested and independently checked; the testing process is in the Explore shelf.","经验(":"LESSONS (",")":")","广度调研":"Broad survey","定向求解":"Targeted solving","先调研后求解":"Survey, then solve","考察中":"Being examined","已排除":"Excluded","已采纳":"Adopted","暂不考察":"Set aside","未开始":"Not started","调研中":"In progress","已厘清":"Clarified","常见误区":"Common pitfall","前置核查":"Check first","不可取的捷径":"Misleading shortcut","先验知识":"Prior knowledge","提出依据":"Proposed from","未注明(直觉)":"Not stated (intuition)","直觉":"Intuition","本体关系「":"Ontology relation \"","」":"\"","主张":"Claim","预测":"Prediction","排除依据":"Grounds for exclusion","采纳依据":"Grounds for adoption","关联记录":"Related records","支持 ":"Support "," 条 · 推翻 ":" · refute "," 条 · 无法判定 ":" · inconclusive "," 条":"","在本体货架中展开此结论":"Expand this conclusion in the Ontology shelf","已得出结论 · 查看结论":"Concluded · view the conclusion","已暂缓":"Parked","新发现,待您决定":"Newly found, awaiting your decision","尚无候选假设":"No candidate hypotheses yet","候选假设 ":"Candidate hypotheses: "," 个:":" — ","问题 ":"Question ","候选假设":"Candidate hypotheses","展开":"Expand","已请求立为问题,待模型修订立题后生效。":"Requested as a question; it takes effect once the model revises the framing.","已请求暂缓,结案时列入「尚未确定的事项」。":"Requested to park; it will be listed under open points at conclusion.","无法自动发送,请在对话中说明。":"Could not send automatically; please say it in the conversation.","新发现的问题":"Newly found question","请将新发现的问题「":"Please make the newly found question \"","」立为问题深入研究(问题 ":"\" a question to pursue (question ",")。":").","立为问题":"Make it a question","请暂缓问题「":"Please park the question \"","」(问题 ":"\" (question ","),结案时列入「尚未确定的事项」。":") and list it under open points at conclusion.","暂缓":"Park","调研板块":"Survey areas","判断 ":"Judgments: "," 条 · 已采纳 ":" · adopted ","未解释的现象 ":"Unexplained observations: "," 项":"","下一步":"Next step","预测:":"Prediction: ","若「":"If \"","」成立,预测":"\" holds, the prediction is","各候选假设的预测相同,此步骤无法区分它们。":"All candidate hypotheses predict the same result, so this step cannot tell them apart.","如需调整计划,请在对话中说明。":"To change the plan, say so in the conversation.","未解释的现象(":"Unexplained observations (","结案前须解释、排除或写入「尚未确定的事项」":"Before concluding, each must be explained, ruled out, or written into the open points","独立评估发现":"Found by the independent evaluator","涉及:":"Concerns: ","、":", ","暂无内容。发送第一条消息后,此处将显示问题、候选假设与下一步。":"Nothing yet. After the first message, questions, candidate hypotheses and the next step appear here.","尚未设立目标。模型立题后,此处将显示问题、候选假设与下一步。":"No goal set yet. Once the model frames the goal, questions, candidate hypotheses and the next step appear here.","阶段 · ":"Mode · ","调研板块 ":"Survey areas: "," 个 · 已厘清 ":" · clarified "," 个":"","当前问题 ":"Current question "," / 共 ":" of ","计划 已完成 ":"Plan: completed "," / ":" / "," 步":" steps","独立评估 ":"Independent evaluations: ","计划共 ":"Plan: ","(":" (","进行中)":" in progress)","课题":"Topic","待您处理(":"Awaiting you (","过程记录":"Process record","结论":"Conclusion","未能回答:":"Could not be answered: ","查看探索记录":"View the exploration record","尚未确定的事项":"Open points","待您决策":"For you to decide","不适用:":"Does not apply: ","暂无计划。建立计划后,此处将显示计划的步骤与闸门。":"No plan yet. Once a plan is created, its steps and gates appear here.","切换到以前的计划(计划均保留,文档归档在 clear/goals/plans/)":"Switch to an earlier plan (all plans are kept; documents are archived under clear/goals/plans/)","计划 ":"Plan ","已完成 · 可查看存档":"closed · archive available","步 ":"step ","打开计划文档(原生预览)":"Open the plan document (native preview)","计划文档":"Plan document","点击查看详情":"click for details","查看步骤详情":"view step details"," 轮":" rounds","已派出评估者 ":"Evaluators dispatched: ","收起详情":"Collapse details","任务内容":"Task","状态":"Status","未声明":"not declared","磁盘上未找到该文件":"this file was not found on disk","(缺失)":" (missing)","在原生预览中打开":"Open in the native preview","在原生预览中打开(计划声明的产物)":"Open in the native preview (an artifact declared by the plan)","查看此步骤的证据":"see the evidence for this step","检验结果:":"Result: ","独立核验:":"Independent check: ","正在裁决":"Deciding"," 查看核验过程":" View the review"," 查看核验记录":" View the review record","待处理":"To handle","板块 ":"Areas "," · ":" · "," 个问题待您决定":" question(s) awaiting your decision"," · 待检验假设 ":" · hypotheses to test: ","计划受阻,待人工处理":"plan blocked, awaiting a person","计划已收尾(":"Plan closed ("," 步)":" steps)","计划已交付 ":"Plan delivered ","待处理 ":"to handle ","(点击打开探索货架)":" (click to open the Explore shelf)","仅显示相关项":"Related only","关闭":"Close","正在加载…":"Loading…","无法获取":"Unavailable","该项已不在当前词表中(可能已被废止)。":"This item is no longer in the vocabulary (it may have been deprecated).","释义":"Gloss","上位":"Broader","下位":"Narrower","主体":"Subject","类型":"Type","该术语已废止,既有结论中的用法仍可查看。":"This term is deprecated; its use in existing conclusions remains readable.","引用此项的结论":"Conclusions citing it","有矛盾":"Conflicting","范围:":"Scope: ","展开下一层":"Expand the next level","收起下一层":"Collapse the next level","共 ":""," 条断言的主体尚未建立实体文件。":" assertion subjects have no entity file yet. ","实体图暂无内容。":"The entity graph is empty. ","clear/ontology/entities/ 下的实体文件与写入长期知识的断言将在此显示。":"Entity files under clear/ontology/entities/ and assertions in long-term knowledge appear here.","本体图暂无内容。模型在 clear/ontology/concepts/ 与 relations/ 下建立概念与关系文件后,将在此显示。":"The ontology graph is empty. Concepts and relations appear once the model creates files under clear/ontology/concepts/ and relations/.","本体图":"Ontology graph","实体图":"Entity graph","矛盾":"Conflicts","适配":"Fit","退出全屏":"Exit full screen","全屏":"Full screen","图组件不可用":"The graph component is unavailable","结论仍可正常查看。":"conclusions remain readable.","本体文件有 ":"Ontology files have "," 项问题(不纳入图中)":" problems (kept off the graph)","已提出":"proposed","探索":"Explore","本体":"Ontology","clearai-loop: 席位跟着会话预设进出":"clearai-loop: seats come and go with the session's preset"}
188
+ const LOCALE_ZH = {"待执行":"待执行","已交付":"已交付","已作废":"已作废","支持":"支持","推翻":"推翻","不确定":"不确定","第 n 步":"第 n 步","判据:":"判据:","判据":"判据"," · 已修订 ":" · 已修订 "," 次":" 次"," · 最近一次修订的独立裁决:":" · 最近一次修订的独立裁决:","打开目标文档(原生预览)":"打开目标文档(原生预览)","全文在 ":"全文在 ","背景(不参与判定):":"背景(不参与判定):","目标":"目标","命题":"命题","计划":"计划","验证":"验证","观测":"观测","评估":"评估","证据":"证据","事实":"事实","批准":"批准","未解释":"未解释","评估卡":"评估卡","查看评估者":"查看评估者","审批记录":"审批记录","产物":"产物","已验证":"已验证","待核验":"待核验","验证中":"验证中","已推翻":"已推翻","已替换":"已替换","自行检验":"自行检验","独立核验":"独立核验","人工批准":"人工批准","判断":"判断","检验":"检验","纳入本体":"纳入本体","下一步:安排步骤对其进行检验":"下一步:安排步骤对其进行检验","下一步:通过独立核验后标记为已验证":"下一步:通过独立核验后标记为已验证","下一步:改用其他方法重新检验":"下一步:改用其他方法重新检验","下一步:结案时写入长期知识":"下一步:结案时写入长期知识","陈述":"陈述","数值":"数值","公式":"公式","代码":"代码","引用":"引用","概念":"概念","取值形态":"取值形态","实例":"实例","取值":"取值","关系":"关系","在检验阶段被推翻,不再推进。":"在检验阶段被推翻,不再推进。","已被替换,不再推进。":"已被替换,不再推进。","提出":"提出","单步检验":"单步检验",":":":","写入长期知识":"写入长期知识","人工撤回":"人工撤回","进度":"进度","可信度变化":"可信度变化","补充说明":"补充说明","依据":"依据","查看核验":"查看核验","查看记录":"查看记录","范围":"范围","推翻条件":"推翻条件","相关":"相关","在图中定位":"在图中定位","来源":"来源","收起":"收起","点击查看进度与来源":"点击查看进度与来源","暂无结论。模型提出判断后,将在此逐条列出。":"暂无结论。模型提出判断后,将在此逐条列出。","尚未设立目标":"尚未设立目标","暂无内容。发送第一条消息后,此处将显示本体图与结论。":"暂无内容。发送第一条消息后,此处将显示本体图与结论。","仅显示与「":"仅显示与「","」相关的内容":"」相关的内容","清除":"清除","已确立的事实":"已确立的事实","暂无已确立的事实。判断经检验与独立核验后,将在此列出;检验过程见探索货架。":"暂无已确立的事实。判断经检验与独立核验后,将在此列出;检验过程见探索货架。","经验(":"经验(",")":")","广度调研":"广度调研","定向求解":"定向求解","先调研后求解":"先调研后求解","考察中":"考察中","已排除":"已排除","已采纳":"已采纳","暂不考察":"暂不考察","未开始":"未开始","调研中":"调研中","已厘清":"已厘清","常见误区":"常见误区","前置核查":"前置核查","不可取的捷径":"不可取的捷径","先验知识":"先验知识","提出依据":"提出依据","未注明(直觉)":"未注明(直觉)","直觉":"直觉","本体关系「":"本体关系「","」":"」","主张":"主张","预测":"预测","排除依据":"排除依据","采纳依据":"采纳依据","关联记录":"关联记录","支持 ":"支持 "," 条 · 推翻 ":" 条 · 推翻 "," 条 · 无法判定 ":" 条 · 无法判定 "," 条":" 条","在本体货架中展开此结论":"在本体货架中展开此结论","已得出结论 · 查看结论":"已得出结论 · 查看结论","已暂缓":"已暂缓","新发现,待您决定":"新发现,待您决定","尚无候选假设":"尚无候选假设","候选假设 ":"候选假设 "," 个:":" 个:","问题 ":"问题 ","候选假设":"候选假设","展开":"展开","已请求立为问题,待模型修订立题后生效。":"已请求立为问题,待模型修订立题后生效。","已请求暂缓,结案时列入「尚未确定的事项」。":"已请求暂缓,结案时列入「尚未确定的事项」。","无法自动发送,请在对话中说明。":"无法自动发送,请在对话中说明。","新发现的问题":"新发现的问题","请将新发现的问题「":"请将新发现的问题「","」立为问题深入研究(问题 ":"」立为问题深入研究(问题 ",")。":")。","立为问题":"立为问题","请暂缓问题「":"请暂缓问题「","」(问题 ":"」(问题 ","),结案时列入「尚未确定的事项」。":"),结案时列入「尚未确定的事项」。","暂缓":"暂缓","调研板块":"调研板块","判断 ":"判断 "," 条 · 已采纳 ":" 条 · 已采纳 ","未解释的现象 ":"未解释的现象 "," 项":" 项","下一步":"下一步","预测:":"预测:","若「":"若「","」成立,预测":"」成立,预测","各候选假设的预测相同,此步骤无法区分它们。":"各候选假设的预测相同,此步骤无法区分它们。","如需调整计划,请在对话中说明。":"如需调整计划,请在对话中说明。","未解释的现象(":"未解释的现象(","结案前须解释、排除或写入「尚未确定的事项」":"结案前须解释、排除或写入「尚未确定的事项」","独立评估发现":"独立评估发现","涉及:":"涉及:","、":"、","暂无内容。发送第一条消息后,此处将显示问题、候选假设与下一步。":"暂无内容。发送第一条消息后,此处将显示问题、候选假设与下一步。","尚未设立目标。模型立题后,此处将显示问题、候选假设与下一步。":"尚未设立目标。模型立题后,此处将显示问题、候选假设与下一步。","阶段 · ":"阶段 · ","调研板块 ":"调研板块 "," 个 · 已厘清 ":" 个 · 已厘清 "," 个":" 个","当前问题 ":"当前问题 "," / 共 ":" / 共 ","计划 已完成 ":"计划 已完成 "," / ":" / "," 步":" 步","独立评估 ":"独立评估 ","计划共 ":"计划共 ","(":"(","进行中)":"进行中)","课题":"课题","待您处理(":"待您处理(","过程记录":"过程记录","结论":"结论","未能回答:":"未能回答:","查看探索记录":"查看探索记录","尚未确定的事项":"尚未确定的事项","待您决策":"待您决策","不适用:":"不适用:","暂无计划。建立计划后,此处将显示计划的步骤与闸门。":"暂无计划。建立计划后,此处将显示计划的步骤与闸门。","切换到以前的计划(计划均保留,文档归档在 clear/goals/plans/)":"切换到以前的计划(计划均保留,文档归档在 clear/goals/plans/)","计划 ":"计划 ","已完成 · 可查看存档":"已完成 · 可查看存档","步 ":"步 ","打开计划文档(原生预览)":"打开计划文档(原生预览)","计划文档":"计划文档","点击查看详情":"点击查看详情","查看步骤详情":"查看步骤详情"," 轮":" 轮","已派出评估者 ":"已派出评估者 ","收起详情":"收起详情","任务内容":"任务内容","状态":"状态","未声明":"未声明","磁盘上未找到该文件":"磁盘上未找到该文件","(缺失)":"(缺失)","在原生预览中打开":"在原生预览中打开","在原生预览中打开(计划声明的产物)":"在原生预览中打开(计划声明的产物)","查看此步骤的证据":"查看此步骤的证据","检验结果:":"检验结果:","独立核验:":"独立核验:","正在裁决":"正在裁决"," 查看核验过程":" 查看核验过程"," 查看核验记录":" 查看核验记录","待处理":"待处理","板块 ":"板块 "," · ":" · "," 个问题待您决定":" 个问题待您决定"," · 待检验假设 ":" · 待检验假设 ","计划受阻,待人工处理":"计划受阻,待人工处理","计划已收尾(":"计划已收尾("," 步)":" 步)","计划已交付 ":"计划已交付 ","待处理 ":"待处理 ","(点击打开探索货架)":"(点击打开探索货架)","仅显示相关项":"仅显示相关项","关闭":"关闭","正在加载…":"正在加载…","无法获取":"无法获取","该项已不在当前词表中(可能已被废止)。":"该项已不在当前词表中(可能已被废止)。","释义":"释义","上位":"上位","下位":"下位","主体":"主体","类型":"类型","该术语已废止,既有结论中的用法仍可查看。":"该术语已废止,既有结论中的用法仍可查看。","引用此项的结论":"引用此项的结论","有矛盾":"有矛盾","范围:":"范围:","展开下一层":"展开下一层","收起下一层":"收起下一层","共 ":"共 "," 条断言的主体尚未建立实体文件。":" 条断言的主体尚未建立实体文件。","实体图暂无内容。":"实体图暂无内容。","clear/ontology/entities/ 下的实体文件与写入长期知识的断言将在此显示。":"clear/ontology/entities/ 下的实体文件与写入长期知识的断言将在此显示。","本体图暂无内容。模型在 clear/ontology/concepts/ 与 relations/ 下建立概念与关系文件后,将在此显示。":"本体图暂无内容。模型在 clear/ontology/concepts/ 与 relations/ 下建立概念与关系文件后,将在此显示。","本体图":"本体图","实体图":"实体图","矛盾":"矛盾","适配":"适配","退出全屏":"退出全屏","全屏":"全屏","图组件不可用":"图组件不可用","结论仍可正常查看。":"结论仍可正常查看。","本体文件有 ":"本体文件有 "," 项问题(不纳入图中)":" 项问题(不纳入图中)","已提出":"已提出","探索":"探索","本体":"本体","clearai-loop: 席位跟着会话预设进出":"clearai-loop: 席位跟着会话预设进出","适用":"适用","超出适用范围":"超出适用范围","超出取值范围":"超出取值范围","本次条件未声明":"本次条件未声明","条目未声明适用范围":"条目未声明适用范围","口径已变更":"口径已变更","已撤回":"已撤回","本次不能直接沿用,需重新检验":"本次不能直接沿用,需重新检验","补充本次条件后重新判定":"补充本次条件后重新判定","沿用时需自行确认":"沿用时需自行确认","按新口径换算或重新检验":"按新口径换算或重新检验","先复检再沿用":"先复检再沿用","不得沿用":"不得沿用","已确立":"已确立","初步排除":"初步排除","测量或方法缺陷":"测量或方法缺陷","已解释":"已解释","已判定无关":"已判定无关","已提交您处理":"已提交您处理","请求复检":"请求复检","请复检条目「":"请复检条目「","」(":"」(","请求撤回":"请求撤回","请撤回条目「":"请撤回条目「","),并说明对已有结论的影响。":"),并说明对已有结论的影响。","请求修改适用范围":"请求修改适用范围","请与我确认条目「":"请与我确认条目「",")的适用范围应如何修改。":")的适用范围应如何修改。","推翻证据 ":"推翻证据 "," · 独立核验 ":" · 独立核验 ","受质疑":"受质疑","已发送请求,由模型处理后更新。":"已发送请求,由模型处理后更新。","适用边界":"适用边界","测量与口径":"测量与口径","校准关系":"校准关系","未解释的现象":"未解释的现象","经验":"经验","该实体暂无沉淀的知识。":"该实体暂无沉淀的知识。","引用的已有知识(":"引用的已有知识(","引用的已有知识":"引用的已有知识","引用者:":"引用者:","将沉淀的内容":"将沉淀的内容","已写入的排除与未解释项;结案时待独立核验的结论":"已写入的排除与未解释项;结案时待独立核验的结论","待独立核验":"待独立核验","已确立 ":"已确立 ","已排除 ":"已排除 ","未解释 ":"未解释 ","经验 ":"经验 ","本次沉淀":"本次沉淀","点击查看可发出的请求":"点击查看可发出的请求","初步排除(":"初步排除(","测量或方法缺陷 ":"测量或方法缺陷 "}
189
+ const LOCALE_EN = {"待执行":"to do","已交付":"delivered","已作废":"voided","支持":"Support","推翻":"Refute","不确定":"Uncertain","第 n 步":"Step n","判据:":"Criterion: ","判据":"Criterion"," · 已修订 ":" · revised "," 次":" times"," · 最近一次修订的独立裁决:":" · latest revision decided by an independent verdict: ","打开目标文档(原生预览)":"Open the goal document (native preview)","全文在 ":"Full text at ","背景(不参与判定):":"Background (not part of the verdict): ","目标":"Goal","命题":"Propositions","计划":"Plan","验证":"Verification","观测":"Observation","评估":"Evaluation","证据":"Evidence","事实":"Facts","批准":"approval","未解释":"Unexplained","评估卡":"evaluation card","查看评估者":"view evaluator","审批记录":"approval record","产物":"Deliverables","已验证":"Verified","待核验":"Awaiting check","验证中":"Testing","已推翻":"Refuted","已替换":"Replaced","自行检验":"Self-tested","独立核验":"Independent check","人工批准":"Approved by a person","判断":"Judgment","检验":"Test","纳入本体":"In ontology","下一步:安排步骤对其进行检验":"Next: schedule a step to test it","下一步:通过独立核验后标记为已验证":"Next: marked Verified after an independent check","下一步:改用其他方法重新检验":"Next: test it again by another method","下一步:结案时写入长期知识":"Next: written to long-term knowledge at close","陈述":"Statement","数值":"Quantity","公式":"Formula","代码":"Code","引用":"Reference","概念":"concepts","取值形态":"Value form","实例":"Instances","取值":"Value","关系":"Relation","在检验阶段被推翻,不再推进。":"Refuted at the test stage; it goes no further.","已被替换,不再推进。":"Replaced; it goes no further.","提出":"Proposed","单步检验":"A single test",":":": ","写入长期知识":"Written to long-term knowledge","人工撤回":"Withdrawn by a person","进度":"Progress","可信度变化":"Trust history","补充说明":"Details","依据":"Basis","查看核验":"View check","查看记录":"View record","范围":"Scope","推翻条件":"Refuted if","相关":"Related","在图中定位":"Locate on the graph","来源":"Source","收起":"Collapse","点击查看进度与来源":"Click to view progress and source","暂无结论。模型提出判断后,将在此逐条列出。":"No judgments yet. Each judgment the model proposes is listed here.","尚未设立目标":"No goal set yet","暂无内容。发送第一条消息后,此处将显示本体图与结论。":"Nothing yet. After the first message, the ontology graph and conclusions appear here.","仅显示与「":"Showing only items related to \"","」相关的内容":"\"","清除":"Clear","已确立的事实":"ESTABLISHED FACTS","暂无已确立的事实。判断经检验与独立核验后,将在此列出;检验过程见探索货架。":"No established facts yet. Judgments appear here once tested and independently checked; the testing process is in the Explore shelf.","经验(":"LESSONS (",")":")","广度调研":"Broad survey","定向求解":"Targeted solving","先调研后求解":"Survey, then solve","考察中":"Being examined","已排除":"Excluded","已采纳":"Adopted","暂不考察":"Set aside","未开始":"Not started","调研中":"In progress","已厘清":"Clarified","常见误区":"Common pitfall","前置核查":"Check first","不可取的捷径":"Misleading shortcut","先验知识":"Prior knowledge","提出依据":"Proposed from","未注明(直觉)":"Not stated (intuition)","直觉":"Intuition","本体关系「":"Ontology relation \"","」":"\"","主张":"Claim","预测":"Prediction","排除依据":"Grounds for exclusion","采纳依据":"Grounds for adoption","关联记录":"Related records","支持 ":"Support "," 条 · 推翻 ":" · refute "," 条 · 无法判定 ":" · inconclusive "," 条":"","在本体货架中展开此结论":"Expand this conclusion in the Ontology shelf","已得出结论 · 查看结论":"Concluded · view the conclusion","已暂缓":"Parked","新发现,待您决定":"Newly found, awaiting your decision","尚无候选假设":"No candidate hypotheses yet","候选假设 ":"Candidate hypotheses: "," 个:":" — ","问题 ":"Question ","候选假设":"Candidate hypotheses","展开":"Expand","已请求立为问题,待模型修订立题后生效。":"Requested as a question; it takes effect once the model revises the framing.","已请求暂缓,结案时列入「尚未确定的事项」。":"Requested to park; it will be listed under open points at conclusion.","无法自动发送,请在对话中说明。":"Could not send automatically; please say it in the conversation.","新发现的问题":"Newly found question","请将新发现的问题「":"Please make the newly found question \"","」立为问题深入研究(问题 ":"\" a question to pursue (question ",")。":").","立为问题":"Make it a question","请暂缓问题「":"Please park the question \"","」(问题 ":"\" (question ","),结案时列入「尚未确定的事项」。":") and list it under open points at conclusion.","暂缓":"Park","调研板块":"Survey areas","判断 ":"Judgments: "," 条 · 已采纳 ":" · adopted ","未解释的现象 ":"Unexplained observations: "," 项":"","下一步":"Next step","预测:":"Prediction: ","若「":"If \"","」成立,预测":"\" holds, the prediction is","各候选假设的预测相同,此步骤无法区分它们。":"All candidate hypotheses predict the same result, so this step cannot tell them apart.","如需调整计划,请在对话中说明。":"To change the plan, say so in the conversation.","未解释的现象(":"Unexplained observations (","结案前须解释、排除或写入「尚未确定的事项」":"Before concluding, each must be explained, ruled out, or written into the open points","独立评估发现":"Found by the independent evaluator","涉及:":"Concerns: ","、":", ","暂无内容。发送第一条消息后,此处将显示问题、候选假设与下一步。":"Nothing yet. After the first message, questions, candidate hypotheses and the next step appear here.","尚未设立目标。模型立题后,此处将显示问题、候选假设与下一步。":"No goal set yet. Once the model frames the goal, questions, candidate hypotheses and the next step appear here.","阶段 · ":"Mode · ","调研板块 ":"Survey areas: "," 个 · 已厘清 ":" · clarified "," 个":"","当前问题 ":"Current question "," / 共 ":" of ","计划 已完成 ":"Plan: completed "," / ":" / "," 步":" steps","独立评估 ":"Independent evaluations: ","计划共 ":"Plan: ","(":" (","进行中)":" in progress)","课题":"Topic","待您处理(":"Awaiting you (","过程记录":"Process record","结论":"Conclusion","未能回答:":"Could not be answered: ","查看探索记录":"View the exploration record","尚未确定的事项":"Open points","待您决策":"For you to decide","不适用:":"Does not apply: ","暂无计划。建立计划后,此处将显示计划的步骤与闸门。":"No plan yet. Once a plan is created, its steps and gates appear here.","切换到以前的计划(计划均保留,文档归档在 clear/goals/plans/)":"Switch to an earlier plan (all plans are kept; documents are archived under clear/goals/plans/)","计划 ":"Plan ","已完成 · 可查看存档":"closed · archive available","步 ":"step ","打开计划文档(原生预览)":"Open the plan document (native preview)","计划文档":"Plan document","点击查看详情":"click for details","查看步骤详情":"view step details"," 轮":" rounds","已派出评估者 ":"Evaluators dispatched: ","收起详情":"Collapse details","任务内容":"Task","状态":"Status","未声明":"not declared","磁盘上未找到该文件":"this file was not found on disk","(缺失)":" (missing)","在原生预览中打开":"Open in the native preview","在原生预览中打开(计划声明的产物)":"Open in the native preview (an artifact declared by the plan)","查看此步骤的证据":"see the evidence for this step","检验结果:":"Result: ","独立核验:":"Independent check: ","正在裁决":"Deciding"," 查看核验过程":" View the review"," 查看核验记录":" View the review record","待处理":"To handle","板块 ":"Areas "," · ":" · "," 个问题待您决定":" question(s) awaiting your decision"," · 待检验假设 ":" · hypotheses to test: ","计划受阻,待人工处理":"plan blocked, awaiting a person","计划已收尾(":"Plan closed ("," 步)":" steps)","计划已交付 ":"Plan delivered ","待处理 ":"to handle ","(点击打开探索货架)":" (click to open the Explore shelf)","仅显示相关项":"Related only","关闭":"Close","正在加载…":"Loading…","无法获取":"Unavailable","该项已不在当前词表中(可能已被废止)。":"This item is no longer in the vocabulary (it may have been deprecated).","释义":"Gloss","上位":"Broader","下位":"Narrower","主体":"Subject","类型":"Type","该术语已废止,既有结论中的用法仍可查看。":"This term is deprecated; its use in existing conclusions remains readable.","引用此项的结论":"Conclusions citing it","有矛盾":"Conflicting","范围:":"Scope: ","展开下一层":"Expand the next level","收起下一层":"Collapse the next level","共 ":""," 条断言的主体尚未建立实体文件。":" assertion subjects have no entity file yet. ","实体图暂无内容。":"The entity graph is empty. ","clear/ontology/entities/ 下的实体文件与写入长期知识的断言将在此显示。":"Entity files under clear/ontology/entities/ and assertions in long-term knowledge appear here.","本体图暂无内容。模型在 clear/ontology/concepts/ 与 relations/ 下建立概念与关系文件后,将在此显示。":"The ontology graph is empty. Concepts and relations appear once the model creates files under clear/ontology/concepts/ and relations/.","本体图":"Ontology graph","实体图":"Entity graph","矛盾":"Conflicts","适配":"Fit","退出全屏":"Exit full screen","全屏":"Full screen","图组件不可用":"The graph component is unavailable","结论仍可正常查看。":"conclusions remain readable.","本体文件有 ":"Ontology files have "," 项问题(不纳入图中)":" problems (kept off the graph)","已提出":"proposed","探索":"Explore","本体":"Ontology","clearai-loop: 席位跟着会话预设进出":"clearai-loop: seats come and go with the session's preset","适用":"Applies","超出适用范围":"Outside its scope","超出取值范围":"Outside its value range","本次条件未声明":"Conditions of this run not declared","条目未声明适用范围":"Item declares no scope","口径已变更":"Definition changed","已撤回":"Retracted","本次不能直接沿用,需重新检验":"Cannot be reused as is here; test it again","补充本次条件后重新判定":"Declare this run's conditions, then judge again","沿用时需自行确认":"Confirm it applies before reusing it","按新口径换算或重新检验":"Convert to the new definition or test it again","先复检再沿用":"Re-check it before reusing it","不得沿用":"Must not be reused","已确立":"Established","初步排除":"Preliminarily excluded","测量或方法缺陷":"Measurement or method defect","已解释":"Explained","已判定无关":"Ruled irrelevant","已提交您处理":"Handed to you","请求复检":"Request a re-check","请复检条目「":"Please re-check the item \"","」(":"\" (","请求撤回":"Request retraction","请撤回条目「":"Please retract the item \"","),并说明对已有结论的影响。":") and state the effect on existing conclusions.","请求修改适用范围":"Request a scope change","请与我确认条目「":"Please confirm with me how the scope of the item \"",")的适用范围应如何修改。":") should be changed.","推翻证据 ":"Refuting evidence: "," · 独立核验 ":" · independently checked: ","受质疑":"Challenged","已发送请求,由模型处理后更新。":"Request sent; it updates once the model handles it.","适用边界":"Limits of applicability","测量与口径":"Measurement and definitions","校准关系":"Calibration","未解释的现象":"Unexplained observations","经验":"Lessons","该实体暂无沉淀的知识。":"No knowledge has been recorded for this entity yet.","引用的已有知识(":"Existing knowledge cited (","引用的已有知识":"Existing knowledge cited","引用者:":"Cited by: ","将沉淀的内容":"To be recorded","已写入的排除与未解释项;结案时待独立核验的结论":"Exclusions and unexplained items already written; conclusions awaiting an independent check at close","待独立核验":"Awaiting independent check","已确立 ":"Established: ","已排除 ":"Excluded: ","未解释 ":"Unexplained: ","经验 ":"Lessons: ","本次沉淀":"Recorded this time","点击查看可发出的请求":"Click to see the requests you can send","初步排除(":"Preliminarily excluded (","测量或方法缺陷 ":"Measurement or method defects: "}
190
190
 
191
191
  /**
192
192
  * 翻译函数:**由原生 locale 座位绑定**(`ctx.locale.bind`),不是我们自建的一套 i18n。
@@ -261,8 +261,6 @@ window.__ModuleLoader__.load({
261
261
  .clearai-btn[data-tone="warn"]{border-color:var(--dsw-alias-state-warn-primary)}
262
262
  /* 工具行里的控制(控制归工具行):照原生那一行的形状——无边框、次级文字色、悬浮才出底。
263
263
  刻意不做成我们自己那种药丸:它坐在原生「完全权限」旁边,长得像原生才不突兀。 */
264
- .clearai-toolctl{box-sizing:border-box;display:inline-flex;align-items:center;gap:2px;padding:2px 6px;border:0;border-radius:4px;background:transparent;color:var(--dsw-alias-label-secondary);font-size:12px;line-height:18px;cursor:pointer}
265
- .clearai-toolctl:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}
266
264
  .clearai-chip{box-sizing:border-box;display:inline-flex;align-items:center;gap:4px;padding:1px 8px;border:.5px solid var(--dsw-alias-border-l4);border-radius:999px;background:var(--dsw-alias-bg-base);color:var(--dsw-alias-label-secondary);font-size:11px;line-height:16px;cursor:pointer}
267
265
  .clearai-chip:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover)}
268
266
  .clearai-tag{display:inline-block;padding:0 6px;border:.5px solid var(--dsw-alias-border-l3);border-radius:999px;color:var(--dsw-alias-label-secondary);font-size:11px;line-height:16px;white-space:nowrap}
@@ -461,6 +459,37 @@ window.__ModuleLoader__.load({
461
459
  .clearai-lesson{display:flex;flex-wrap:wrap;gap:4px 10px;align-items:baseline;font-size:12.5px}
462
460
  .clearai-lesson-kind{font-size:11px;padding:0 7px;border-radius:6px;border:.5px solid var(--dsw-alias-border-l3);color:var(--dsw-alias-label-secondary)}
463
461
  .clearai-lesson-meta{font-size:11.5px;color:var(--dsw-alias-label-tertiary)}
462
+ /* 沉淀与取用:条目、实体卡、图上的计数 */
463
+ .clearai-kitem{display:flex;flex-direction:column;gap:3px;padding:7px 14px;border-top:.5px solid var(--dsw-alias-border-l1);font-size:12.5px}
464
+ .clearai-kitem-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px}
465
+ .clearai-kitem-meta{font-size:11.5px;color:var(--dsw-alias-label-tertiary)}
466
+ .clearai-kitem-asks{display:flex;flex-wrap:wrap;gap:6px}
467
+ .clearai-btn[data-small="1"]{min-height:24px;padding:0 9px;font-size:11.5px}
468
+ .clearai-state[data-s="preliminary_excluded"]{border-style:dashed;border-color:var(--dsw-alias-state-error-primary);color:var(--dsw-alias-state-error-primary)}
469
+ .clearai-state[data-s="established"],.clearai-state[data-s="applies"]{border-color:var(--dsw-alias-label-secondary);color:var(--dsw-alias-label-primary)}
470
+ .clearai-state[data-s="pending"],.clearai-state[data-s="undeclared"],.clearai-state[data-s="unscoped"]{border-style:dashed}
471
+ .clearai-state[data-s="bounded"],.clearai-state[data-s="out_of_scope"],.clearai-state[data-s="out_of_range"],.clearai-state[data-s="definition_changed"],.clearai-state[data-s="defect"]{border-color:var(--dsw-alias-state-warn-primary);color:var(--dsw-alias-state-warn-primary)}
472
+ .clearai-state[data-s="retracted"]{border-color:var(--dsw-alias-state-error-primary);color:var(--dsw-alias-state-error-primary)}
473
+ .clearai-state[data-s="unresolved"],.clearai-state[data-s="escalated"]{border-color:var(--dsw-alias-brand-primary);color:var(--dsw-alias-brand-primary)}
474
+ .clearai-ecard{display:flex;flex-direction:column;gap:6px;margin-bottom:10px;border:.5px solid var(--dsw-alias-border-l2);border-radius:10px;padding:10px 0 4px}
475
+ .clearai-ecard-title{display:flex;align-items:center;gap:8px;padding:0 14px;font-size:14px;font-weight:600}
476
+ .clearai-ecard-head{padding:4px 14px 2px;font-size:11.5px;font-weight:600;color:var(--dsw-alias-label-tertiary)}
477
+ .clearai-kcount{display:inline-flex;gap:2px;font-family:ui-sans-serif,system-ui,sans-serif}
478
+ .clearai-kcount>em{font-style:normal;font-size:10px;line-height:13px;padding:0 4px;border-radius:4px;border:.5px solid var(--dsw-alias-border-l3);color:var(--dsw-alias-label-secondary)}
479
+ .clearai-kcount>em[data-b="excluded"]{border-color:var(--dsw-alias-state-error-primary);color:var(--dsw-alias-state-error-primary)}
480
+ .clearai-kcount>em[data-b="bounded"]{border-color:var(--dsw-alias-state-warn-primary);color:var(--dsw-alias-state-warn-primary)}
481
+ .clearai-kcount>em[data-b="pending"]{border-style:dashed}
482
+ .clearai-kcount>em[data-b="unresolved"]{border-color:var(--dsw-alias-brand-primary);color:var(--dsw-alias-brand-primary)}
483
+ .clearai-kitem-head[data-click="1"]{cursor:pointer}
484
+ .clearai-ecard-fold>summary{padding:4px 14px;font-size:12px;color:var(--dsw-alias-label-secondary);cursor:pointer}
485
+ .clearai-kcount-legend{display:inline-flex;gap:8px;margin-left:6px}
486
+ .clearai-kcount-legend>span{display:inline-flex;align-items:center;gap:3px}
487
+ .clearai-kcount-legend em{display:inline-block;width:8px;height:8px;border-radius:2px;border:.5px solid var(--dsw-alias-border-l3)}
488
+ .clearai-kcount-legend em[data-b="excluded"]{border-color:var(--dsw-alias-state-error-primary)}
489
+ .clearai-kcount-legend em[data-b="bounded"]{border-color:var(--dsw-alias-state-warn-primary)}
490
+ .clearai-kcount-legend em[data-b="pending"]{border-style:dashed}
491
+ .clearai-kcount-legend em[data-b="unresolved"]{border-color:var(--dsw-alias-brand-primary)}
492
+ .clearai-settled{display:flex;flex-wrap:wrap;gap:4px 10px;align-items:baseline;padding:2px 2px 0;font-size:12.5px}
464
493
  `
465
494
  /** 把上面那段 CSS 挂进页面(带 data-plugin 标记,宿主按包名记账,卸载时收掉)。 */
466
495
  function installStyles() {
@@ -1102,6 +1131,8 @@ window.__ModuleLoader__.load({
1102
1131
  h(AnswerCards, { data, openExplore: props.openExplore }),
1103
1132
  h(GraphBand, {
1104
1133
  lexicon,
1134
+ data,
1135
+ send: props.send,
1105
1136
  layer,
1106
1137
  unlanded: typeof unlandedRow?.count === 'number' ? unlandedRow.count : null,
1107
1138
  onLayer: setLayer,
@@ -1155,8 +1186,6 @@ window.__ModuleLoader__.load({
1155
1186
  const AREA_WORD = lazyTable(() => ({ not_started: t('未开始'), in_progress: t('调研中'), clear: t('已厘清') }))
1156
1187
  const LESSON_WORD = lazyTable(() => ({ trap: t('常见误区'), check: t('前置核查'), shortcut: t('不可取的捷径'), prior: t('先验知识') }))
1157
1188
 
1158
- /** 关系 id → 名字(本体里登记的 label);找不到就如实给 id。 */
1159
- const relationLabel = (data, id) => String((data?.lexicon?.predicates ?? []).find((item) => item.id === id)?.label ?? id)
1160
1189
 
1161
1190
  /** 一条候选最近一条某种结论的依据(排除依据 / 采纳依据都从证据里来)。 */
1162
1191
  const latestBasis = (data, hypothesis, verdict) => {
@@ -1164,13 +1193,17 @@ window.__ModuleLoader__.load({
1164
1193
  return rows.length === 0 ? null : String(rows[rows.length - 1].basis ?? '') || null
1165
1194
  }
1166
1195
 
1167
- /** 候选假设展开后的几行(标签按界面用语规范:提出依据 / 推翻条件 / 预测 / 排除依据 / 采纳依据 / 关联记录)。 */
1196
+ /** 候选假设展开后的几行(标签按界面用语规范:引用的已有知识 / 主张 / 推翻条件 / 预测 / 排除依据 / 采纳依据 / 关联记录)。 */
1168
1197
  function candidateDetail(data, candidate, prediction) {
1169
1198
  const rows = []
1170
1199
  const push = (label, value) => {
1171
1200
  if (value !== null && value !== undefined && value !== '') rows.push([label, value])
1172
1201
  }
1173
- push(t('提出依据'), candidate.from === null ? t('未注明(直觉)') : candidate.from === '直觉' || candidate.from === 'intuition' ? t('直觉') : `${t('本体关系「')}${relationLabel(data, candidate.from)}${t('」')}`)
1202
+ /** 引用的已有条目与系统的判定(取代原来的「提出依据」):判断写了 `uses` 才有。 */
1203
+ const hypothesis = (Array.isArray(data?.goal?.hypotheses) ? data.goal.hypotheses : []).find((item) => item.id === candidate.id)
1204
+ const uses = Array.isArray(hypothesis?.uses) ? hypothesis.uses : []
1205
+ const byKey = itemsByKey(data)
1206
+ push(t('引用的已有知识'), uses.length === 0 ? null : uses.map((use) => `${byKey.get(`${use.kind}:${use.id}`)?.text ? brief(byKey.get(`${use.kind}:${use.id}`).text, 40) : use.id}(${VERDICT_WORD[use.verdict] ?? use.verdict})`).join(t('、')))
1174
1207
  push(t('主张'), candidate.claim !== candidate.name ? candidate.claim : null)
1175
1208
  push(t('推翻条件'), candidate.refuteWhen)
1176
1209
  push(t('预测'), prediction)
@@ -1425,6 +1458,7 @@ window.__ModuleLoader__.load({
1425
1458
  ...questionList.map((question) => h(QuestionBox, { key: question.id, data, question, index: declared.indexOf(question), current: question.id === exploration?.current, next: exploration?.next ?? null, open, onToggle: setOpen, openFacts, send: props.send, sent, onSent })),
1426
1459
  h(NextBox, { next: exploration?.next ?? null }),
1427
1460
  h(AnomalyBox, { data }),
1461
+ h(KnowledgeFlowBox, { data, openPreview: props.openPreview }),
1428
1462
  h(
1429
1463
  'section',
1430
1464
  { className: 'clearai-process' },
@@ -1460,6 +1494,164 @@ window.__ModuleLoader__.load({
1460
1494
  )
1461
1495
  }
1462
1496
 
1497
+ /**
1498
+ * **沉淀与取用**(0.5.2):条目、它在这次情形下是否适用、这次会留下什么。
1499
+ * 读的是投影算好的 `knowledgeItems` / `entityKnowledge` / `knowledgeFlow`;界面不判定适用性,
1500
+ * 条目上的按钮只替人向模型发一句话,由模型复检、撤回或修改后落账。
1501
+ */
1502
+ const VERDICT_WORD = lazyTable(() => ({ applies: t('适用'), out_of_scope: t('超出适用范围'), out_of_range: t('超出取值范围'), undeclared: t('本次条件未声明'), unscoped: t('条目未声明适用范围'), definition_changed: t('口径已变更'), pending: t('待核验'), retracted: t('已撤回') }))
1503
+ const VERDICT_NEXT = lazyTable(() => ({ out_of_scope: t('本次不能直接沿用,需重新检验'), out_of_range: t('本次不能直接沿用,需重新检验'), undeclared: t('补充本次条件后重新判定'), unscoped: t('沿用时需自行确认'), definition_changed: t('按新口径换算或重新检验'), pending: t('先复检再沿用'), retracted: t('不得沿用') }))
1504
+ const ITEM_WORD = lazyTable(() => ({ established: t('已确立'), pending: t('待核验'), excluded: t('已排除'), preliminary_excluded: t('初步排除'), unresolved: t('未解释'), defect: t('测量或方法缺陷'), explained: t('已解释'), ruled_out: t('已判定无关'), escalated: t('已提交您处理') }))
1505
+ const COUNT_WORD = lazyTable(() => ({ established: t('已确立'), excluded: t('已排除'), bounded: t('超出适用范围'), pending: t('待核验'), unresolved: t('未解释') }))
1506
+ const COUNT_ORDER = ['established', 'excluded', 'bounded', 'pending', 'unresolved']
1507
+
1508
+ /** 条目键(`kind:id`)→ 条目。 */
1509
+ const itemsByKey = (data) => new Map((Array.isArray(data?.knowledgeItems) ? data.knowledgeItems : []).map((item) => [`${item.kind}:${item.id}`, item]))
1510
+
1511
+ /** 一条条目的出处:文件路径,没有就是 id。发给模型的话里用它,模型据此找到文件。 */
1512
+ const itemRef = (item) => String(item.path ?? item.id)
1513
+
1514
+ /** 条目上的三个请求:只发一句话,不写任何状态。 */
1515
+ const ITEM_ASKS = () => [
1516
+ ['retest', t('请求复检'), (item) => `${t('请复检条目「')}${item.text}${t('」(')}${itemRef(item)}${t(')。')}`],
1517
+ ['retract', t('请求撤回'), (item) => `${t('请撤回条目「')}${item.text}${t('」(')}${itemRef(item)}${t('),并说明对已有结论的影响。')}`],
1518
+ ['rescope', t('请求修改适用范围'), (item) => `${t('请与我确认条目「')}${item.text}${t('」(')}${itemRef(item)}${t(')的适用范围应如何修改。')}`],
1519
+ ]
1520
+
1521
+ function KnowledgeItemRow(props) {
1522
+ const { item } = props
1523
+ const meta = []
1524
+ if (item.scope) meta.push(`${t('范围:')}${item.scope}`)
1525
+ if (item.kind === 'negative' && item.strength && typeof item.strength.count === 'number') meta.push(`${t('推翻证据 ')}${item.strength.count}${t(' 条')}${item.strength.independent > 0 ? `${t(' · 独立核验 ')}${item.strength.independent}${t(' 条')}` : ''}`)
1526
+ if (item.basis) meta.push(`${t('依据')}${t(':')}${brief(item.basis, 80)}`)
1527
+ if (item.challenged === true) meta.push(t('受质疑'))
1528
+ for (const reason of item.rechecks ?? []) meta.push(`${reason.kind}: ${reason.detail ?? reason.model ?? ''}`)
1529
+ if ((item.rechecks ?? []).length) meta.push(item.recovery)
1530
+ const sent = props.sent ?? {}
1531
+ const [open, setOpen] = React.useState(false)
1532
+ const asks = props.asks === true && typeof props.send === 'function' && (open || props.open === true) ? ITEM_ASKS() : []
1533
+ const canAsk = props.asks === true && typeof props.send === 'function'
1534
+ const done = asks.find(([key]) => sent[`${item.kind}:${item.id}:${key}`] !== undefined)
1535
+ return h(
1536
+ 'div',
1537
+ { className: 'clearai-kitem', 'data-open': open ? '1' : '0' },
1538
+ h('div', { className: 'clearai-kitem-head', 'data-click': canAsk ? '1' : '0', title: canAsk ? (open ? t('收起') : t('点击查看可发出的请求')) : undefined, onClick: canAsk ? () => setOpen(!open) : undefined }, h(StateTag, { state: item.status }, item.kind === 'lesson' ? (LESSON_WORD[item.status] ?? item.status) : (ITEM_WORD[item.status] ?? item.status)), h('span', null, item.text), item.path ? h('span', { className: 'clearai-link', onClick: () => props.openPreview?.(item.path), title: item.path }, t('查看记录')) : null),
1539
+ meta.length === 0 ? null : h('div', { className: 'clearai-kitem-meta' }, meta.join(' · ')),
1540
+ ...(item.rechecks ?? []).filter((reason) => reason.evidence).map((reason) => h('span', { className: 'clearai-link', onClick: () => props.openPreview?.(reason.evidence), title: reason.evidence }, t('查看核验'))),
1541
+ ...(item.evidencePaths ?? []).map((path) => h('span', { className: 'clearai-link', onClick: () => props.openPreview?.(path), title: path }, t('查看核验'))),
1542
+ asks.length === 0
1543
+ ? null
1544
+ : done !== undefined
1545
+ ? h('div', { className: 'clearai-kitem-meta' }, sent[`${item.kind}:${item.id}:${done[0]}`] === 'failed' ? t('无法自动发送,请在对话中说明。') : t('已发送请求,由模型处理后更新。'))
1546
+ : h('div', { className: 'clearai-kitem-asks' }, ...asks.map(([key, label, say]) => h('button', { key, type: 'button', className: 'clearai-btn', 'data-small': '1', onClick: () => props.onSent?.(`${item.kind}:${item.id}:${key}`, props.send(say(item)) === true ? 'sent' : 'failed') }, label))),
1547
+ )
1548
+ }
1549
+
1550
+ /** 图上实体旁的条目计数(只列非零的格)。 */
1551
+ function CountMarks(props) {
1552
+ const counts = props.counts ?? {}
1553
+ const shown = COUNT_ORDER.filter((key) => (counts[key] ?? 0) > 0)
1554
+ if (shown.length === 0) return null
1555
+ return h('span', { className: 'clearai-kcount', title: shown.map((key) => `${COUNT_WORD[key]} ${counts[key]}`).join(' · ') }, ...shown.map((key) => h('em', { key, 'data-b': key }, String(counts[key]))))
1556
+ }
1557
+
1558
+ /**
1559
+ * **实体卡**:点实体图上的实例打开。六栏:已确立的事实 / 已排除 / 适用边界 / 测量与口径 / 未解释的现象 / 经验。
1560
+ * 空栏不出现;全空就如实说还没有沉淀。
1561
+ */
1562
+ function EntityCard(props) {
1563
+ const { node, data } = props
1564
+ const byKey = itemsByKey(data)
1565
+ const items = (data?.entityKnowledge?.[node.id]?.items ?? []).map((key) => byKey.get(key)).filter((item) => item !== undefined)
1566
+ const facts = items.filter((item) => item.kind === 'fact')
1567
+ const excluded = items.filter((item) => item.kind === 'negative' && (item.status === 'excluded' || item.status === 'preliminary_excluded'))
1568
+ const bounds = facts.flatMap((item) => item.boundaries.map((bound, index) => ({ key: `${item.id}#${index}`, text: item.text, bound })))
1569
+ const defects = items.filter((item) => item.kind === 'negative' && item.status === 'defect')
1570
+ const measures = (Array.isArray(data?.lexicon?.predicates) ? data.lexicon.predicates : []).filter((predicate) => predicate.kind === 'measures' && node.type !== null && (predicate.domain === node.type || predicate.range?.term === node.type))
1571
+ const unresolved = items.filter((item) => item.kind === 'negative' && (item.status === 'unresolved' || item.status === 'escalated'))
1572
+ const lessons = items.filter((item) => item.kind === 'lesson')
1573
+ const row = (item) => h(KnowledgeItemRow, { key: `${item.kind}:${item.id}`, item, asks: item.kind !== 'lesson', send: props.send, sent: props.sent, onSent: props.onSent, openPreview: data?.openPreview })
1574
+ const section = (title, children, count = children.length) => (children.length === 0 ? null : h('div', { className: 'clearai-ecard-sec' }, h('div', { className: 'clearai-ecard-head' }, `${title}(${count})`), ...children))
1575
+ const sections = [
1576
+ section(t('已确立的事实'), facts.map(row)),
1577
+ section(t('已排除'), [
1578
+ ...excluded.filter((item) => item.status === 'excluded').map(row),
1579
+ ...(excluded.some((item) => item.status === 'preliminary_excluded')
1580
+ ? [h('details', { key: 'preliminary', className: 'clearai-ecard-fold' }, h('summary', null, `${t('初步排除(')}${excluded.filter((item) => item.status === 'preliminary_excluded').length}${t(')')}`), ...excluded.filter((item) => item.status === 'preliminary_excluded').map(row))]
1581
+ : []),
1582
+ ], excluded.length),
1583
+ section(
1584
+ t('适用边界'),
1585
+ bounds.map(({ key, text, bound }) => h('div', { key, className: 'clearai-kitem' }, h('div', { className: 'clearai-kitem-head' }, h(StateTag, { state: 'bounded' }, VERDICT_WORD[bound.verdict] ?? bound.verdict), h('span', null, text)), bound.basis ? h('div', { className: 'clearai-kitem-meta' }, brief(bound.basis, 120)) : null)),
1586
+ ),
1587
+ section(t('测量与口径'), [
1588
+ ...measures.map((predicate) => h('div', { key: `m-${predicate.id}`, className: 'clearai-kitem' }, h('div', { className: 'clearai-kitem-head' }, h('span', null, String(predicate.label ?? predicate.id))), predicate.check ? h('div', { className: 'clearai-kitem-meta' }, `${t('校准关系')}${t(':')}${predicate.check}`) : null)),
1589
+ ...defects.map(row),
1590
+ ]),
1591
+ section(t('未解释的现象'), unresolved.map(row)),
1592
+ section(t('经验'), lessons.map(row)),
1593
+ ].filter((item) => item !== null)
1594
+ return h(
1595
+ 'div',
1596
+ { className: 'clearai-ecard' },
1597
+ h('div', { className: 'clearai-ecard-title' }, String(node.label ?? node.ref ?? node.id), h(CountMarks, { counts: data?.entityKnowledge?.[node.id]?.counts })),
1598
+ sections.length === 0 ? h('div', { className: 'clearai-quiet' }, t('该实体暂无沉淀的知识。')) : null,
1599
+ ...sections,
1600
+ )
1601
+ }
1602
+
1603
+ /** 探索货架:引用的已有知识(系统判定)与将沉淀的内容。两节都空就不出现。 */
1604
+ function KnowledgeFlowBox(props) {
1605
+ const flow = props.data?.knowledgeFlow ?? null
1606
+ if (flow === null) return null
1607
+ const cited = Array.isArray(flow.cited) ? flow.cited : []
1608
+ const negatives = Array.isArray(flow.settling?.negatives) ? flow.settling.negatives : []
1609
+ const awaiting = Array.isArray(flow.settling?.awaiting) ? flow.settling.awaiting : []
1610
+ return h(
1611
+ React.Fragment,
1612
+ null,
1613
+ cited.length === 0
1614
+ ? null
1615
+ : h(
1616
+ 'section',
1617
+ { className: 'clearai-box' },
1618
+ h('div', { className: 'clearai-box-head' }, h('span', { className: 'clearai-box-title' }, `${t('引用的已有知识(')}${cited.length}${t(')')}`)),
1619
+ ...cited.map((item) =>
1620
+ h(
1621
+ 'div',
1622
+ { key: `${item.id}|${item.verdict}`, className: 'clearai-kitem' },
1623
+ h('div', { className: 'clearai-kitem-head' }, h(StateTag, { state: item.verdict }, VERDICT_WORD[item.verdict] ?? item.verdict), h('span', null, item.text ?? item.id), item.path ? h('span', { className: 'clearai-link', onClick: () => props.openPreview?.(item.path), title: item.path }, t('查看记录')) : null),
1624
+ h('div', { className: 'clearai-kitem-meta' }, [`${t('引用者:')}${item.by.join(t('、'))}`, VERDICT_NEXT[item.verdict] ?? null].filter((line) => line !== null).join(' · ')),
1625
+ ),
1626
+ ),
1627
+ ),
1628
+ negatives.length === 0 && awaiting.length === 0
1629
+ ? null
1630
+ : h(
1631
+ 'section',
1632
+ { className: 'clearai-box' },
1633
+ h('div', { className: 'clearai-box-head' }, h('span', { className: 'clearai-box-title' }, t('将沉淀的内容')), h('span', { className: 'clearai-box-note' }, t('已写入的排除与未解释项;结案时待独立核验的结论'))),
1634
+ ...negatives.map((item) => h(KnowledgeItemRow, { key: item.id, item, openPreview: props.openPreview })),
1635
+ ...awaiting.map((item) => h('div', { key: item.id, className: 'clearai-kitem' }, h('div', { className: 'clearai-kitem-head' }, h(StateTag, { state: 'examining' }, t('待独立核验')), h('span', null, item.name), item.claim !== item.name ? h('span', { className: 'clearai-kitem-meta' }, brief(item.claim, 80)) : null))),
1636
+ ),
1637
+ )
1638
+ }
1639
+
1640
+ /** 结论卡底部:本目标已沉淀的条数。 */
1641
+ function SettledLine(props) {
1642
+ const settled = props.data?.knowledgeFlow?.settled ?? null
1643
+ if (settled === null) return null
1644
+ const parts = [
1645
+ settled.established > 0 ? `${t('已确立 ')}${settled.established}${t(' 条')}` : null,
1646
+ settled.excluded > 0 ? `${t('已排除 ')}${settled.excluded}${t(' 条')}` : null,
1647
+ settled.unresolved > 0 ? `${t('未解释 ')}${settled.unresolved}${t(' 项')}` : null,
1648
+ (settled.defects ?? 0) > 0 ? `${t('测量或方法缺陷 ')}${settled.defects}${t(' 项')}` : null,
1649
+ settled.lessons > 0 ? `${t('经验 ')}${settled.lessons}${t(' 条')}` : null,
1650
+ ].filter((item) => item !== null)
1651
+ if (parts.length === 0) return null
1652
+ return h('div', { className: 'clearai-settled' }, h('span', { className: 'clearai-answer-label' }, t('本次沉淀')), h('span', null, parts.join(' · ')))
1653
+ }
1654
+
1463
1655
  /** 本体货架的结论卡:按问题切换,四部分(结论 / 依据 / 尚未确定的事项 / 待您决策)。 */
1464
1656
  function AnswerCards(props) {
1465
1657
  const answers = Array.isArray(props.data?.goal?.answers) ? props.data.goal.answers : []
@@ -1496,6 +1688,7 @@ window.__ModuleLoader__.load({
1496
1688
  open.length === 0 ? null : part(t('尚未确定的事项'), h('div', { className: 'clearai-answer-lines' }, ...open.map((entry, index) => h('div', { key: `o-${index}` }, entry.effect)))),
1497
1689
  decide.length === 0 ? null : part(t('待您决策'), h('div', { className: 'clearai-answer-lines' }, ...decide.map((line, index) => h('div', { key: `d-${index}` }, line))), true),
1498
1690
  ),
1691
+ h(SettledLine, { data: props.data }),
1499
1692
  )
1500
1693
  }
1501
1694
 
@@ -2035,94 +2228,6 @@ window.__ModuleLoader__.load({
2035
2228
  * 为什么要有它:工具行是要抢地盘的地方(两个字面项能占掉整行近三成,
2036
2229
  * 窄窗口下会把发送键挤到第二行)。图标能省一半宽度,而它指向的正是「世界树」那一页。
2037
2230
  */
2038
- function PlanGlyph() {
2039
- return h(
2040
- 'svg',
2041
- { width: 12, height: 12, viewBox: '0 0 12 12', 'aria-hidden': 'true', style: { flex: '0 0 auto', display: 'block' } },
2042
- h('path', { d: 'M3 2.2 V10.2', stroke: 'currentColor', strokeWidth: 1.2, fill: 'none', strokeLinecap: 'round' }),
2043
- h('path', { d: 'M3 5.2 H8.4', stroke: 'currentColor', strokeWidth: 1.2, fill: 'none', strokeLinecap: 'round' }),
2044
- h('circle', { cx: 3, cy: 2.2, r: 1.5, fill: 'currentColor' }),
2045
- h('circle', { cx: 3, cy: 9.4, r: 1.4, fill: 'none', stroke: 'currentColor', strokeWidth: 1.1 }),
2046
- h('circle', { cx: 9.2, cy: 5.2, r: 1.4, fill: 'none', stroke: 'currentColor', strokeWidth: 1.1 }),
2047
- )
2048
- }
2049
-
2050
- /**
2051
- * 计划芯片:坐在原生 plan 座位上的那一格。
2052
- *
2053
- * 只说**计划**这一件事(进度、受阻、待确认),不重复状态条已经说过的话——
2054
- * 一个事实只在一块面上说,是这个面板与原生 dock 之间的分工。
2055
- * 没有计划时渲染 `null`:座位保持空着,而不是显一个「什么都没有」的假控件。
2056
- * 它也不造第二个动词:推进的唯一动词是 `AdvancePlan`,那属于模型,不属于界面;
2057
- * 这一格能做的只有一件——把右栏的「世界树」打开。
2058
- */
2059
- function PlanChip(props) {
2060
- const data = typeof props.useProjection === 'function' ? props.useProjection('clearai') : undefined
2061
- const plan = data === null || data === undefined ? null : data.plan
2062
- if (plan === null || plan === undefined) return null
2063
- const total = plan.totalCount ?? 0
2064
- const done = plan.advancedCount ?? 0
2065
- /**
2066
- * 说人话:内部 id(`p-xxxx`)不进这一格——它对人没有信息量,只让芯片变长;
2067
- * 状态优先于数字(等人确认 / 受阻 / 已收尾都是**要人注意**的那一类)。
2068
- */
2069
- /**
2070
- * 一格只放**一个符号**:进度。要人注意的事不换符号,只换颜色。
2071
- *
2072
- * 这条工具行上的格子只承担**可点、且只有我们知道**的两句:
2073
- * 待处理 N(人门计数,点了开世界树)· 续跑停着(为什么停,人是可以处置的)。
2074
- * 「已达成 · 100%」那一类与原生目标提示说的是同一件事,不在这里重复。
2075
- */
2076
- const inboxCount = Array.isArray(data?.needYou) ? data.needYou.length : 0
2077
- const blocked = plan.blocked !== null && plan.blocked !== undefined
2078
- const attention = blocked
2079
- /**
2080
- * 符号**恒定是进度**(形状稳定才学得会):要人注意不在符号上换字,
2081
- * 而是换颜色(与世界树同一条规矩:形状说状态,别让人去猜一个 '?')。
2082
- * 「待处理 N」就在这一格(`waiting`):门开着是**事实面**上最要紧的一句,
2083
- * 而它可点——点一下开世界树,那里才看得到要裁什么。
2084
- */
2085
- /**
2086
- * 符号说**探索到了哪**:调研时是「板块 已厘清/总数」,求解时是「问题 当前/总数 · 待检验假设 N 个」;
2087
- * 没列问题也没列板块的目标(旧会话、单问题)退回步数 `N/M`。
2088
- */
2089
- const exploration = data?.exploration ?? null
2090
- const areas = Array.isArray(exploration?.areas) ? exploration.areas : []
2091
- const declared = (Array.isArray(exploration?.questions) ? exploration.questions : []).filter((question) => !question.implicit)
2092
- const current = (Array.isArray(exploration?.questions) ? exploration.questions : []).find((question) => question.id === exploration?.current) ?? null
2093
- const emergent = declared.filter((question) => question.status === 'emergent').length
2094
- const examining = current === null ? 0 : (current.counts?.examining ?? 0)
2095
- const symbol =
2096
- areas.length > 0
2097
- ? `${t('板块 ')}${areas.filter((area) => area.state === 'clear').length}/${areas.length}${emergent > 0 ? `${t(' · ')}${emergent}${t(' 个问题待您决定')}` : ''}`
2098
- : declared.length > 0 && current !== null
2099
- ? `${t('问题 ')}${declared.indexOf(current) + 1}/${declared.length}${t(' · 待检验假设 ')}${examining}${t(' 个')}`
2100
- : `${done}/${total}`
2101
- const brief = typeof plan.brief === 'string' && plan.brief.trim() !== '' ? plan.brief.trim() : null
2102
- const meaning = blocked ? t('计划受阻,待人工处理') : plan.status === 'closed' ? `${t('计划已收尾(')}${done}/${total}${t(' 步)')}` : `${t('计划已交付 ')}${done}/${total}${t(' 步')}`
2103
- /**
2104
- * 等人时**只说一句**:先「待处理 N」(人门计数),没有门才说续跑停着的原因。
2105
- * 两者是同一根轴(为什么在等人)⇒ 一格只放一个,不并列。
2106
- */
2107
- const waiting = inboxCount > 0 ? `${t('待处理 ')}${inboxCount}` : null
2108
- const attentionNow = attention || waiting !== null
2109
- return h(
2110
- 'button',
2111
- {
2112
- type: 'button',
2113
- className: 'clearai-toolctl',
2114
- disabled: props.locked === true,
2115
- title: `${meaning}${waiting === null ? '' : ` · ${waiting}`} · ${plan.id}${brief === null ? '' : ` · ${brief}`}${t('(点击打开探索货架)')}`,
2116
- 'aria-label': `${meaning}${waiting === null ? '' : ` · ${waiting}`}${t('(点击打开探索货架)')}`,
2117
- // 「要人注意」用与世界树同一族的琥珀(同一套主题令牌,不新造颜色)。
2118
- style: attentionNow ? { color: 'rgb(var(--dsw-color-warning, 245 158 11))', fontWeight: 600 } : undefined,
2119
- onClick: () => props.openExplore?.(),
2120
- },
2121
- h(PlanGlyph, null),
2122
- h('span', { style: { minWidth: 14, textAlign: 'center' } }, symbol),
2123
- waiting === null ? null : h('span', { style: { marginLeft: 6, fontSize: 11.5 } }, waiting),
2124
- )
2125
- }
2126
2231
 
2127
2232
  /**
2128
2233
  * 一步的**人话**名字:`do` 是模型写的那句「做什么」,截短了放进一行。
@@ -2356,8 +2461,9 @@ window.__ModuleLoader__.load({
2356
2461
  * · **点击语义**:点节点 / 边 = 打开小卡;「只看相关」是卡上的显式动作。
2357
2462
  * · **全屏**:position: fixed 的真 overlay,打开时自动适配。
2358
2463
  */
2359
- const GraphBand = ({ lexicon, layer, onLayer, fullscreen, onToggleFullscreen, onFilter, sessionId, unlanded, focus }) => {
2464
+ const GraphBand = ({ lexicon, data, send, layer, onLayer, fullscreen, onToggleFullscreen, onFilter, sessionId, unlanded, focus }) => {
2360
2465
  const [picked, setPicked] = React.useState(null)
2466
+ const [asked, setAsked] = React.useState({})
2361
2467
  const graph = lexicon?.graph ?? { nodes: [], edges: [], bounds: { width: 0, height: 0 } }
2362
2468
  const conflicts = Array.isArray(lexicon?.conflicts) ? lexicon.conflicts : []
2363
2469
  const conflicted = new Set(conflicts.flatMap((item) => item.sides.map((side) => side.fact)).filter((id) => typeof id === 'string'))
@@ -2510,6 +2616,7 @@ window.__ModuleLoader__.load({
2510
2616
  { className: 'clearai-star', 'data-kind': node.kind, 'data-state': nodeState(node), 'data-sel': node.id === selectedId ? '1' : '0' },
2511
2617
  h('i', null),
2512
2618
  h('span', null, trimLabel(node.kind === 'value_type' ? (FORM_WORD[node.ref] ?? node.label ?? node.ref) : (node.label ?? node.ref ?? node.id), 16)),
2619
+ node.layer === 'entity' ? h(CountMarks, { counts: data?.entityKnowledge?.[node.id]?.counts }) : null,
2513
2620
  (childCount.get(node.id) ?? 0) > 0
2514
2621
  ? h(
2515
2622
  'b',
@@ -2609,6 +2716,7 @@ window.__ModuleLoader__.load({
2609
2716
  { className: 'clearai-legend' },
2610
2717
  h('span', { 'data-l': 'solid' }, t('已验证')),
2611
2718
  h('span', { 'data-l': 'dash' }, t('待核验')),
2719
+ layer === 'entity' ? h('span', { className: 'clearai-kcount-legend' }, ...COUNT_ORDER.map((key) => h('span', { key }, h('em', { 'data-b': key }), COUNT_WORD[key]))) : null,
2612
2720
  conflicts.length > 0 ? h('span', { 'data-l': 'warn' }, `${t('矛盾')} ${conflicts.length}`) : null,
2613
2721
  ),
2614
2722
  h('span', { style: { flex: '1 1 auto' } }),
@@ -2658,6 +2766,7 @@ window.__ModuleLoader__.load({
2658
2766
  : h(
2659
2767
  'div',
2660
2768
  { className: 'clearai-graph-side' },
2769
+ picked.kind === 'node' && picked.node.layer === 'entity' && picked.node.kind === 'instance' ? h(EntityCard, { node: picked.node, data, send, sent: asked, onSent: (key, kind) => setAsked({ ...asked, [key]: kind }) }) : null,
2661
2770
  h(GraphInspector, { selection: inspection, sessionId, names: entityNames, onFilter: () => onFilter(filterTarget), onClose: () => setPicked(null) }),
2662
2771
  ),
2663
2772
  ),
@@ -2866,30 +2975,9 @@ window.__ModuleLoader__.load({
2866
2975
  occupy('conversation.view', () => ({ id: 'clearai-explore', order: 19, label: t('探索') }), (props) =>
2867
2976
  h(LocalizedExplore, { ...props, openSpectator, openPreview: openPreviewFor(props), send: sendFor(props), openFacts: () => openPanel(props, 'clearai-facts') }),
2868
2977
  )
2869
- occupy('conversation.view', () => ({ id: 'clearai-facts', order: 20, label: t('本体') }), (props) => h(LocalizedFacts, { ...props, openSpectator, openPreview: openPreviewFor(props), openExplore: () => openPanel(props, 'clearai-explore') }))
2870
- /**
2871
- * **计划面坐在原生 plan 那个座位上**。
2872
- *
2873
- * 为什么是这个座位:DSH 把「计划」这件事的控件固定在 composer 工具行的
2874
- * `conversation.input.plan` 上(`dsh-client-ui-plan` 的「Plan ×」),而它只在
2875
- * `plan/mode` 投影存在时才渲染——我们的预设不挂 `plan-mode`(计划是我们自己的事实,
2876
- * 不是每回合的策略),所以那个座位在本模式下**一直空着**:位置在,没人说话。
2877
- * 把自己的计划面放进去,就是「同一个位置、两种预设各自的计划面」,而不是另起一块浮层。
2878
- *
2879
- * 两条实现约束(读原生实现量出来的,不是猜的):
2880
- * · 这个座位是 `single`:同 priority 再注册会**直接抛错**(核心的报错原文是
2881
- * 「register at a different priority to shadow it (lowest renders)」),
2882
- * 所以必须给一个更低的 priority 才遮蔽得住;
2883
- * · 遮蔽的代价是零——原生那个 occupant 在本模式下本来 `return null`。
2884
- * 而我们只在**当前会话是本预设**时占座(`occupy`),会话切走就还给它。
2885
- */
2886
- occupy('conversation.input.plan', { priority: -1 }, (props) => h(PlanChip, { ...props, openExplore: () => openPanel(props, 'clearai-explore') }))
2887
- // 输入框下方的常驻派生条(运行态卡在人这一侧的对应物)
2888
- /**
2889
- * **输入框下那一条不再注册**:它说的话(阶段 / 完成度 / 当前步)与原生目标提示、
2890
- * 与工具行那颗计划 chip 重复 ✗,却**独占一行把输入框顶上去** ✗。
2891
- * 唯一可点、且只有我们知道的那件事(「待处理 N」)已经并进计划 chip(同一行,一点直达探索货架)。
2892
- */
2978
+ occupy('conversation.view', () => ({ id: 'clearai-facts', order: 20, label: t('本体') }), (props) => h(LocalizedFacts, { ...props, openSpectator, openPreview: openPreviewFor(props), send: sendFor(props), openExplore: () => openPanel(props, 'clearai-explore') }))
2979
+ // Plan progress uses DSH's native todo dock; no composer chip or shadow plan slot.
2980
+
2893
2981
  ctx.effect(() => sessions.list.subscribe(() => {
2894
2982
  for (const sync of seats) sync()
2895
2983
  }), t('clearai-loop: 席位跟着会话预设进出'))
@@ -2908,7 +2996,7 @@ window.__ModuleLoader__.load({
2908
2996
  * 真的跑一遍渲染路径(捕 undefined 字段访问这类只有渲染时才炸的错)。
2909
2997
  * 仍然不是给别的包用的接口。
2910
2998
  */
2911
- exports.__components = { PlanChip, WorldTree, ExploreView, AnswerCards, QuestionBox, NextBox, EmergentActions, GraphBand, GraphInspector, NeedYou, TreeDetail, Atlas, AtlasHeader, ConclusionList, ConclusionRow, ConclusionDetail, StationBar, TrustTimeline, ClearAIMark, LOOP_LABEL }
2999
+ exports.__components = { WorldTree, ExploreView, AnswerCards, QuestionBox, NextBox, EmergentActions, GraphBand, GraphInspector, NeedYou, TreeDetail, Atlas, AtlasHeader, ConclusionList, ConclusionRow, ConclusionDetail, StationBar, TrustTimeline, ClearAIMark, LOOP_LABEL, EntityCard, KnowledgeFlowBox, KnowledgeItemRow, SettledLine, CountMarks }
2912
3000
  /**
2913
3001
  * 测试缝之三:命题那一列的**派生**是纯函数(分组、处境、来路、证据链),
2914
3002
  * 渲染本身没法在没浏览器的地方细究——把它导出去,让测试直接断言派生结果。